@apollion-dsi/core 7.0.0 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/lib/chunks/{Dropdown.floating-O5GWHN6F.esm.js → Dropdown.floating-7EM6JR7N.esm.js} +1 -1
  2. package/lib/chunks/Notification.group-4FQM35YN.esm.js +1 -0
  3. package/lib/chunks/Tooltip.floating-IEWE6XP4.esm.js +1 -0
  4. package/lib/chunks/chunk-347TNROV.esm.js +1 -0
  5. package/lib/chunks/chunk-3ICGUDL7.esm.js +1 -0
  6. package/lib/chunks/chunk-42TLD4GM.esm.js +1 -0
  7. package/lib/chunks/{chunk-OHLL57EN.esm.js → chunk-4DUZ532N.esm.js} +1 -1
  8. package/lib/chunks/{chunk-DRL2R3ED.esm.js → chunk-4EVYPW5X.esm.js} +1 -1
  9. package/lib/chunks/{chunk-A77HKHNQ.esm.js → chunk-4TQV5FFJ.esm.js} +1 -1
  10. package/lib/chunks/{chunk-QAK32AY3.esm.js → chunk-57RF3T2U.esm.js} +1 -1
  11. package/lib/chunks/{chunk-X64PGKAO.esm.js → chunk-5ILT45RQ.esm.js} +1 -1
  12. package/lib/chunks/{chunk-KKFQPSAE.esm.js → chunk-62CVSGJD.esm.js} +1 -1
  13. package/lib/chunks/{chunk-H4FEHRHK.esm.js → chunk-6V6NLBEI.esm.js} +1 -1
  14. package/lib/chunks/chunk-7BPSZCSD.esm.js +1 -0
  15. package/lib/chunks/{chunk-KBBFH5LX.esm.js → chunk-7PFH2RKV.esm.js} +1 -1
  16. package/lib/chunks/{chunk-CB7EKQYI.esm.js → chunk-AM56FZLE.esm.js} +1 -1
  17. package/lib/chunks/{chunk-7HRVZJBD.esm.js → chunk-BHRDNR3A.esm.js} +1 -1
  18. package/lib/chunks/{chunk-VXAPSA5T.esm.js → chunk-CC5NKEXF.esm.js} +1 -1
  19. package/lib/chunks/chunk-CK3WBMQQ.esm.js +1 -0
  20. package/lib/chunks/chunk-CNJA3S6G.esm.js +1 -0
  21. package/lib/chunks/{chunk-FJHDGSZE.esm.js → chunk-CTFEQBY7.esm.js} +1 -1
  22. package/lib/chunks/{chunk-OQWC47RM.esm.js → chunk-CWSD3AXD.esm.js} +1 -1
  23. package/lib/chunks/{chunk-YW2TWFDF.esm.js → chunk-DKLZWHQO.esm.js} +1 -1
  24. package/lib/chunks/{chunk-VAA7V65K.esm.js → chunk-EFFENLBC.esm.js} +1 -1
  25. package/lib/chunks/{chunk-A7JDCK3C.esm.js → chunk-EK6YOJCW.esm.js} +1 -1
  26. package/lib/chunks/{chunk-4RAZZLLG.esm.js → chunk-ET2EP4QA.esm.js} +11 -7
  27. package/lib/chunks/chunk-ETEH25BP.esm.js +1 -0
  28. package/lib/chunks/{chunk-DRXC4B7Z.esm.js → chunk-FBHZTBNG.esm.js} +1 -1
  29. package/lib/chunks/chunk-GC5QKJHS.esm.js +26 -0
  30. package/lib/chunks/{chunk-DP5DDF7U.esm.js → chunk-GHDDFAEP.esm.js} +1 -1
  31. package/lib/chunks/chunk-GWC4QADH.esm.js +1 -0
  32. package/lib/chunks/{chunk-CTNZPJ47.esm.js → chunk-H4XR4LGF.esm.js} +1 -1
  33. package/lib/chunks/chunk-H7ADZSZ7.esm.js +1 -0
  34. package/lib/chunks/{chunk-DGQ46IKV.esm.js → chunk-HD42Q2PS.esm.js} +1 -1
  35. package/lib/chunks/chunk-HGOJTQ3L.esm.js +4 -0
  36. package/lib/chunks/chunk-IQWHAMQB.esm.js +48 -0
  37. package/lib/chunks/{chunk-EXHRZZ5E.esm.js → chunk-J2ZPCUOE.esm.js} +1 -1
  38. package/lib/chunks/chunk-JLUNVLUS.esm.js +1 -0
  39. package/lib/chunks/{chunk-FH54V56Y.esm.js → chunk-JY6IWPBO.esm.js} +1 -1
  40. package/lib/chunks/{chunk-SMAAEIJR.esm.js → chunk-KU2OQ3LP.esm.js} +1 -1
  41. package/lib/chunks/chunk-LPIWPCM4.esm.js +1 -0
  42. package/lib/chunks/{chunk-LCIO2E2K.esm.js → chunk-MBQGF5IM.esm.js} +1 -1
  43. package/lib/chunks/{chunk-ZACTPOXN.esm.js → chunk-MMKXCJ23.esm.js} +1 -1
  44. package/lib/chunks/{chunk-R6MCW24V.esm.js → chunk-MYGV5PMT.esm.js} +1 -1
  45. package/lib/chunks/chunk-N5QK3LZW.esm.js +1 -0
  46. package/lib/chunks/{chunk-ER6KS2SA.esm.js → chunk-O2EYNJ7I.esm.js} +1 -1
  47. package/lib/chunks/{chunk-SNZE6LRL.esm.js → chunk-ODL6ZIU7.esm.js} +1 -1
  48. package/lib/chunks/chunk-OEEVC5Y2.esm.js +1 -0
  49. package/lib/chunks/{chunk-KIFRBQYQ.esm.js → chunk-OUTATATT.esm.js} +1 -1
  50. package/lib/chunks/chunk-R2TPABZ3.esm.js +1 -0
  51. package/lib/chunks/{chunk-T6USFPVA.esm.js → chunk-R3VRFUEK.esm.js} +1 -1
  52. package/lib/chunks/{chunk-VYK6RBMI.esm.js → chunk-RKHQJTYX.esm.js} +1 -1
  53. package/lib/chunks/{chunk-NDMZLKX7.esm.js → chunk-RNAHUZE7.esm.js} +1 -1
  54. package/lib/chunks/{chunk-OHVMP5B7.esm.js → chunk-RZLOZ3NW.esm.js} +1 -1
  55. package/lib/chunks/chunk-TBHGVERY.esm.js +1 -0
  56. package/lib/chunks/{chunk-FNYWD4YI.esm.js → chunk-TBWTTUID.esm.js} +1 -1
  57. package/lib/chunks/{chunk-W37MIT56.esm.js → chunk-UACWLLHE.esm.js} +10 -6
  58. package/lib/chunks/chunk-UDQ3TYVZ.esm.js +1 -0
  59. package/lib/chunks/chunk-ULRUO4J4.esm.js +1 -0
  60. package/lib/chunks/{chunk-MJK3VHIO.esm.js → chunk-UNYBUDKE.esm.js} +1 -1
  61. package/lib/chunks/{chunk-GC2ZV3CY.esm.js → chunk-UQVJ7IG5.esm.js} +1 -1
  62. package/lib/chunks/chunk-VUK26WF2.esm.js +1 -0
  63. package/lib/chunks/{chunk-BQBDAFDE.esm.js → chunk-X2CMFDNG.esm.js} +1 -1
  64. package/lib/chunks/{chunk-WI3WPCW3.esm.js → chunk-XTY6DXMK.esm.js} +1 -1
  65. package/lib/chunks/chunk-XTYYQH7J.esm.js +1 -0
  66. package/lib/chunks/{chunk-HW42PSLQ.esm.js → chunk-YA5EBWSR.esm.js} +1 -1
  67. package/lib/chunks/{chunk-UWIWI6XE.esm.js → chunk-YHQ6S4MF.esm.js} +1 -1
  68. package/lib/chunks/{chunk-VU3NKSLB.esm.js → chunk-YSSFTYCU.esm.js} +1 -1
  69. package/lib/chunks/{chunk-WMBOZ7KA.esm.js → chunk-ZJ3V4V3H.esm.js} +1 -1
  70. package/lib/chunks/{chunk-GM3IRR2E.esm.js → chunk-ZQ5JOSGH.esm.js} +1 -1
  71. package/lib/containers/Base/index.esm.js +1 -1
  72. package/lib/containers/Box/index.esm.js +1 -1
  73. package/lib/containers/Card/index.esm.js +1 -1
  74. package/lib/containers/Content/index.esm.js +1 -1
  75. package/lib/containers/Flex/Flex.style.d.ts +0 -15
  76. package/lib/containers/Flex/index.d.ts +1 -1
  77. package/lib/containers/Flex/index.esm.js +1 -1
  78. package/lib/containers/Grid/Grid.style.d.ts +1 -12
  79. package/lib/containers/Grid/index.esm.js +1 -1
  80. package/lib/containers/Notification/Notification.style.d.ts +2 -34
  81. package/lib/containers/Notification/index.esm.js +1 -1
  82. package/lib/containers/Paper/Paper.interface.d.ts +10 -0
  83. package/lib/containers/Paper/Paper.style.d.ts +11 -75
  84. package/lib/containers/Paper/index.esm.js +1 -1
  85. package/lib/containers/Scroll/index.esm.js +1 -1
  86. package/lib/containers/index.esm.js +1 -1
  87. package/lib/dataDisplay/DataTable/index.esm.js +1 -1
  88. package/lib/dataDisplay/DescriptionList/index.esm.js +1 -1
  89. package/lib/dataDisplay/Meter/Meter.interface.d.ts +2 -1
  90. package/lib/dataDisplay/Meter/index.esm.js +1 -1
  91. package/lib/dataDisplay/Steps/index.esm.js +1 -1
  92. package/lib/dataDisplay/Table/Table/index.esm.js +1 -1
  93. package/lib/dataDisplay/Table/TableCell/index.esm.js +1 -1
  94. package/lib/dataDisplay/Table/TableCheckboxCell/index.esm.js +1 -1
  95. package/lib/dataDisplay/Table/TableEmpty/index.esm.js +1 -1
  96. package/lib/dataDisplay/Table/TableFooter/index.esm.js +1 -1
  97. package/lib/dataDisplay/Table/TableHeaderCell/index.esm.js +1 -1
  98. package/lib/dataDisplay/Table/TableHeaderCheckboxCell/index.esm.js +1 -1
  99. package/lib/dataDisplay/Table/TablePagination/index.esm.js +1 -1
  100. package/lib/dataDisplay/Table/index.esm.js +1 -1
  101. package/lib/dataDisplay/Tabs/index.esm.js +1 -1
  102. package/lib/dataDisplay/index.esm.js +1 -1
  103. package/lib/elements/Avatar/Avatar.style.d.ts +6 -38
  104. package/lib/elements/Avatar/index.esm.js +1 -1
  105. package/lib/elements/Button/index.esm.js +1 -1
  106. package/lib/elements/Divider/Divider.style.d.ts +7 -38
  107. package/lib/elements/Divider/index.esm.js +1 -1
  108. package/lib/elements/Dropdown/index.esm.js +1 -1
  109. package/lib/elements/Icon/index.esm.js +1 -1
  110. package/lib/elements/IconButton/index.esm.js +1 -1
  111. package/lib/elements/IconText/IconText.style.d.ts +7 -39
  112. package/lib/elements/IconText/index.esm.js +1 -1
  113. package/lib/elements/Image/Image.interface.d.ts +2 -1
  114. package/lib/elements/Image/index.esm.js +1 -1
  115. package/lib/elements/Label/index.esm.js +1 -1
  116. package/lib/elements/Link/index.esm.js +1 -1
  117. package/lib/elements/List/List.style.d.ts +2 -34
  118. package/lib/elements/List/index.esm.js +1 -1
  119. package/lib/elements/Modal/Modal.style.d.ts +6 -69
  120. package/lib/elements/Modal/index.esm.js +1 -1
  121. package/lib/elements/Popover/Popover.style.d.ts +13 -0
  122. package/lib/elements/Popover/index.esm.js +1 -1
  123. package/lib/elements/ProgressBar/ProgressBar.interface.d.ts +2 -1
  124. package/lib/elements/ProgressBar/index.esm.js +1 -1
  125. package/lib/elements/Sheet/index.esm.js +1 -1
  126. package/lib/elements/Spinner/index.esm.js +1 -1
  127. package/lib/elements/Svg/Svg.interface.d.ts +2 -1
  128. package/lib/elements/Svg/Svg.style.d.ts +1 -1
  129. package/lib/elements/Svg/index.esm.js +1 -1
  130. package/lib/elements/Text/index.esm.js +1 -1
  131. package/lib/elements/Tooltip/index.esm.js +1 -1
  132. package/lib/elements/index.esm.js +1 -1
  133. package/lib/factory/ContainerQueryFactory/index.esm.js +1 -1
  134. package/lib/factory/FlexFactory/FlexFactory.d.ts +3 -1
  135. package/lib/factory/FlexFactory/index.esm.js +1 -1
  136. package/lib/factory/PlacementFactory/PlacementFactory.d.ts +25 -0
  137. package/lib/factory/PlacementFactory/PlacementFactory.interface.d.ts +30 -0
  138. package/lib/factory/PlacementFactory/index.d.ts +2 -0
  139. package/lib/factory/PlacementFactory/index.esm.js +1 -0
  140. package/lib/factory/ResponsiveFactory/index.esm.js +1 -1
  141. package/lib/factory/System/index.esm.js +1 -1
  142. package/lib/factory/ViewportMediaFactory/index.esm.js +1 -1
  143. package/lib/factory/index.d.ts +1 -0
  144. package/lib/factory/index.esm.js +1 -1
  145. package/lib/form/Checkbox/Checkbox.d.ts +1 -1
  146. package/lib/form/Checkbox/Checkbox.interface.d.ts +2 -1
  147. package/lib/form/Checkbox/Checkbox.style.d.ts +4 -3
  148. package/lib/form/Checkbox/index.esm.js +1 -1
  149. package/lib/form/Field/Field.interface.d.ts +2 -2
  150. package/lib/form/Field/index.esm.js +1 -1
  151. package/lib/form/FieldGroup/index.esm.js +1 -1
  152. package/lib/form/Form/Form.interface.d.ts +2 -1
  153. package/lib/form/Form/index.esm.js +1 -1
  154. package/lib/form/Input/Input.interface.d.ts +2 -2
  155. package/lib/form/Input/Input.style.d.ts +2 -2
  156. package/lib/form/Input/index.esm.js +1 -1
  157. package/lib/form/InputCurrency/index.esm.js +1 -1
  158. package/lib/form/InputDate/index.esm.js +1 -1
  159. package/lib/form/InputMask/index.esm.js +1 -1
  160. package/lib/form/InputRange/InputRange.d.ts +1 -1
  161. package/lib/form/InputRange/InputRange.interface.d.ts +2 -1
  162. package/lib/form/InputRange/index.esm.js +1 -1
  163. package/lib/form/InputSelect/index.esm.js +1 -1
  164. package/lib/form/Option/index.esm.js +1 -1
  165. package/lib/form/Radio/Radio.d.ts +1 -1
  166. package/lib/form/Radio/Radio.interface.d.ts +2 -1
  167. package/lib/form/Radio/index.esm.js +1 -1
  168. package/lib/form/Select/Select.interface.d.ts +2 -1
  169. package/lib/form/Select/Select.style.d.ts +2 -1
  170. package/lib/form/Select/index.esm.js +1 -1
  171. package/lib/form/Switch/Switch.d.ts +1 -1
  172. package/lib/form/Switch/Switch.interface.d.ts +2 -1
  173. package/lib/form/Switch/Switch.style.d.ts +4 -3
  174. package/lib/form/Switch/index.esm.js +1 -1
  175. package/lib/form/TextArea/TextArea.interface.d.ts +2 -1
  176. package/lib/form/TextArea/index.esm.js +1 -1
  177. package/lib/form/UploadCard/UploadCard.style.d.ts +25 -11
  178. package/lib/form/UploadCard/index.esm.js +1 -1
  179. package/lib/form/index.esm.js +1 -1
  180. package/lib/hooks/index.esm.js +1 -1
  181. package/lib/index.d.ts +1 -1
  182. package/lib/index.esm.js +1 -1
  183. package/lib/index.js +1 -1
  184. package/lib/layouts/DefaultLayout/index.esm.js +1 -1
  185. package/lib/layouts/SideBarLayout/index.esm.js +1 -1
  186. package/lib/layouts/index.esm.js +1 -1
  187. package/lib/skeleton/ComposedSkeleton/index.esm.js +1 -1
  188. package/lib/skeleton/TextPreset/index.esm.js +1 -1
  189. package/lib/skeleton/index.esm.js +1 -1
  190. package/lib/themes/GlobalStyle/index.esm.js +1 -1
  191. package/lib/themes/ThemeProvider/index.esm.js +1 -1
  192. package/lib/themes/index.esm.js +1 -1
  193. package/package.json +2 -2
  194. package/lib/chunks/Notification.group-VLYQ6NRW.esm.js +0 -1
  195. package/lib/chunks/Tooltip.floating-WTJLJZJN.esm.js +0 -1
  196. package/lib/chunks/chunk-3FWZII65.esm.js +0 -1
  197. package/lib/chunks/chunk-4BZPXLAW.esm.js +0 -1
  198. package/lib/chunks/chunk-4PAEVB5H.esm.js +0 -1
  199. package/lib/chunks/chunk-5HLJ7LZZ.esm.js +0 -4
  200. package/lib/chunks/chunk-6DILIYS2.esm.js +0 -1
  201. package/lib/chunks/chunk-BFP2C5JF.esm.js +0 -1
  202. package/lib/chunks/chunk-CXBUSCOB.esm.js +0 -1
  203. package/lib/chunks/chunk-D4ZBSTRO.esm.js +0 -1
  204. package/lib/chunks/chunk-DMLGAY6T.esm.js +0 -1
  205. package/lib/chunks/chunk-FBZTXAE3.esm.js +0 -1
  206. package/lib/chunks/chunk-HG4FBLPA.esm.js +0 -1
  207. package/lib/chunks/chunk-JQSEC336.esm.js +0 -1
  208. package/lib/chunks/chunk-JTVUOZDH.esm.js +0 -1
  209. package/lib/chunks/chunk-JVIACETZ.esm.js +0 -26
  210. package/lib/chunks/chunk-NHE4GLQK.esm.js +0 -1
  211. package/lib/chunks/chunk-NW2GV6YI.esm.js +0 -1
  212. package/lib/chunks/chunk-RI7KKIJD.esm.js +0 -1
  213. package/lib/chunks/chunk-UFQAFY4P.esm.js +0 -43
  214. package/lib/chunks/chunk-UGTJEXCL.esm.js +0 -1
  215. package/lib/chunks/chunk-XYIRIYYK.esm.js +0 -1
  216. package/lib/chunks/chunk-Y75NAEIA.esm.js +0 -1
  217. /package/lib/chunks/{chunk-PMN6TVDW.esm.js → chunk-MPMCXGOX.esm.js} +0 -0
@@ -0,0 +1,48 @@
1
+ import{a as d}from"./chunk-TBHGVERY.esm.js";import{c as p}from"./chunk-62CVSGJD.esm.js";import{b as a}from"./chunk-AXUWC2WH.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";var n=r(({theme:e,$size:o})=>e.component.select.size[o],"sizeTokens");function m(e){let o=`<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M2.5 4.5L6 8l3.5-3.5" stroke="${e}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`;return`url("data:image/svg+xml,${encodeURIComponent(o)}")`}r(m,"chevron");function h({$variant:e,theme:o}){return e==="error"?{accent:o.colors.danger.base,text:o.colors.danger.dark,border:o.colors.danger.base}:e==="success"?{accent:o.colors.success.base,text:o.colors.success.dark,border:o.colors.success.base}:{accent:o.colors.primary.base,text:o.colors.primary.dark,border:o.colors.edge.border}}r(h,"variantColors");function S(e){let{theme:o}=e,{accent:s,text:c,border:t}=h(e);return a(["color:",";border:1px solid ",";box-shadow:",";&:hover,&:focus{box-shadow:none;border-color:",";}&:focus-visible{outline:2px solid ",";outline-offset:2px;}"],c,t,o.depth("level-one-minus"),t,s)}r(S,"variantStyle");function y({theme:e}){return a(["&:disabled{cursor:default;color:",";border-color:transparent;background-color:",";box-shadow:none;}"],e.colors.disabled.color,e.colors.disabled.fill)}r(y,"disabledStyle");var i=p("select").withConfig({componentId:"apollion-select"})`
2
+ appearance: none;
3
+ -webkit-appearance: none;
4
+ -moz-appearance: none;
5
+
6
+ display: block;
7
+ box-sizing: border-box;
8
+ width: ${({$width:e})=>typeof e=="number"?`${e}px`:e!=null?e:"100%"};
9
+ height: ${e=>n(e).height}px;
10
+
11
+ font-family: ${({theme:e})=>e.font.fontFamily.main};
12
+ font-size: ${({theme:e})=>e.font.fontSize.small};
13
+ line-height: ${({theme:e})=>e.font.lineHeight.close};
14
+
15
+ background-color: ${({theme:e})=>e.colors.surface.paper};
16
+ border-radius: ${({theme:e,$radius:o})=>e.border.borderRadius[o]};
17
+
18
+ /* Left padding = size token; right padding reserves room for the chevron. */
19
+ padding: ${e=>e.theme.spacing("zero",n(e).px)};
20
+ padding-right: ${e=>`calc(${e.theme.spacing(n(e).px)} + 1.25em)`};
21
+
22
+ outline: none;
23
+ cursor: pointer;
24
+ transition: ${({theme:e})=>e.animation.transitions.short};
25
+
26
+ background-image: ${({theme:e})=>m(e.colors.neutral[100])};
27
+ background-repeat: no-repeat;
28
+ background-position: right ${e=>e.theme.spacing(n(e).px)} center;
29
+
30
+ ${S}
31
+ ${y}
32
+
33
+ /* Force readable native option colors — the OS popup inherits these. */
34
+ & option {
35
+ color: ${({theme:e})=>e.colors.ink.primary};
36
+ background-color: ${({theme:e})=>e.colors.surface.paper};
37
+ }
38
+
39
+ &:disabled {
40
+ /* Fade the chevron in step with the disabled text. */
41
+ background-image: ${({theme:e})=>m(e.colors.disabled.color)};
42
+ }
43
+
44
+ /* Grid-item placement — the native root neither emits nor strips these, so
45
+ the factory interpolates the CSS here (the System \`styled\` withholds the
46
+ keys from the DOM via its \`shouldForwardProp\`). */
47
+ ${d({})}
48
+ `;i.displayName="select";import{forwardRef as x}from"react";import{jsx as u}from"react/jsx-runtime";var f=x(({options:e,size:o="medium",variant:s="default",borderRadius:c="xs",width:t,...b},g)=>u(i,{ref:g,$size:o,$variant:s,$radius:c,$width:t,...b,children:e.map(l=>u("option",{value:l.value,children:l.label},String(l.value)))}));f.displayName="Select";export{i as a,f as b};
@@ -1 +1 @@
1
- import{d as S}from"./chunk-KKFQPSAE.esm.js";import{a as T}from"./chunk-R2B57RMV.esm.js";import{k as x}from"./chunk-PXVTXO3L.esm.js";import{f as g,g as m}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";var c=m(S.span).withConfig({componentId:"sc-29xk67-0"})(["margin:0;font-family:",";line-height:",";& a:not([data-ds-link-button]){text-decoration:underline;}& a[data-ds-link-button]{display:inline-flex;vertical-align:middle;}"],({theme:e})=>e.font.fontFamily.main,({theme:e})=>e.font.lineHeight.regular),h=i((e,t)=>T(e,o=>x(o.colors[t],"base")),"tickInk"),y=m(c).withConfig({componentId:"sc-29xk67-1"})(["&[data-tick-settle]{transition:",";}&[data-tick]{transition:none;}&[data-tick='up']{color:",";}&[data-tick='down']{color:",";}@media (prefers-reduced-motion:reduce){&[data-tick-settle]{transition:none;}}"],({theme:e})=>e.animation.transitions.settle,({theme:e})=>h(e,"success"),({theme:e})=>h(e,"danger"));var C={p:{props:{fontSize:"small"}},meta:{tag:"p",props:{fontSize:"micro"}},lead:{tag:"p",props:{fontSize:"medium"}},blockquote:{props:{fontSize:"xxl"}},h1:{props:{fontSize:"xl",md_fontSize:"colossal"}},h2:{props:{fontSize:"large",md_fontSize:"giant"}},h3:{props:{fontSize:"large",fontStyle:"italic",md_fontSize:"xxl",md_fontStyle:"normal"}},h4:{props:{fontSize:"medium",md_fontSize:"xl"}},h5:{props:{fontSize:"medium",fontStyle:"italic",color:"ink.primary",md_fontSize:"large",md_fontStyle:"normal",md_color:"ink.primary"}},h6:{props:{fontSize:"small",color:"ink.primary",textTransform:"uppercase",md_fontSize:"medium",md_textTransform:"normal",md_color:"ink.primary"}},d1:{tag:"h1",props:{fontSize:"xxl",md_fontSize:"gargantua"}},d2:{tag:"h2",props:{fontSize:"xl",md_fontSize:"colossal"}},d3:{tag:"h3",props:{fontSize:"large",md_fontSize:"giant"}},d4:{tag:"h4",props:{fontSize:"medium",md_fontSize:"xxl"}}},I={fontWeight:"bold",lineHeight:"close"},V={fontWeight:"stronger",lineHeight:"close"};function E(e){switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return I;case"d1":case"d2":case"d3":case"d4":return V;default:return{}}}i(E,"getDefaultProps");function z(e,t={}){var a,s;let o=C,{tag:n=e,props:r={}}=o[e]||{};return{tag:n,variantProps:{fontWeight:(a=t.fontWeight)!=null?a:"regular",letterSpacing:"regular",color:(s=t.color)!=null?s:"ink.primary",...t.fontSize&&{fontSize:t.fontSize},...E(e),...r}}}i(z,"getTextProps");import{forwardRef as F}from"react";import{useEffect as w,useRef as D,useState as H}from"react";function k(e){let t=D(e),[o,n]=H(null);return w(()=>{if(e===void 0||t.current===void 0||e===t.current){t.current=e;return}n(e>t.current?"up":"down"),t.current=e;let r=requestAnimationFrame(()=>n(null));return()=>cancelAnimationFrame(r)},[e]),o}i(k,"useTickFlash");import{jsx as B}from"react/jsx-runtime";var _=F(({text:e,children:t,variant:o="span",type:n,tick:r,...a},s)=>{var d;let p=g(),{tag:P,variantProps:f}=z(o,(d=p==null?void 0:p.component)==null?void 0:d.text),l=k(r),R=r===void 0?c:y,b=a.color!==void 0||a.contrast!==void 0?Object.fromEntries(Object.entries(f).filter(([u])=>u!=="color"&&!u.endsWith("_color"))):f;return B(R,{as:P,ignoreResponsive:n==="mobile",enableBreakpoint:n==="desktop"?"md":void 0,...b,...a,"data-tick-settle":r===void 0?void 0:"","data-tick":l!=null?l:void 0,ref:s,children:t||e})});_.displayName="Text";var v=_;export{c as a,y as b,C as c,z as d,v as e};
1
+ import{d as S}from"./chunk-62CVSGJD.esm.js";import{a as T}from"./chunk-R2B57RMV.esm.js";import{k as x}from"./chunk-PXVTXO3L.esm.js";import{f as g,g as m}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";var c=m(S.span).withConfig({componentId:"sc-29xk67-0"})(["margin:0;font-family:",";line-height:",";& a:not([data-ds-link-button]){text-decoration:underline;}& a[data-ds-link-button]{display:inline-flex;vertical-align:middle;}"],({theme:e})=>e.font.fontFamily.main,({theme:e})=>e.font.lineHeight.regular),h=i((e,t)=>T(e,o=>x(o.colors[t],"base")),"tickInk"),y=m(c).withConfig({componentId:"sc-29xk67-1"})(["&[data-tick-settle]{transition:",";}&[data-tick]{transition:none;}&[data-tick='up']{color:",";}&[data-tick='down']{color:",";}@media (prefers-reduced-motion:reduce){&[data-tick-settle]{transition:none;}}"],({theme:e})=>e.animation.transitions.settle,({theme:e})=>h(e,"success"),({theme:e})=>h(e,"danger"));var C={p:{props:{fontSize:"small"}},meta:{tag:"p",props:{fontSize:"micro"}},lead:{tag:"p",props:{fontSize:"medium"}},blockquote:{props:{fontSize:"xxl"}},h1:{props:{fontSize:"xl",md_fontSize:"colossal"}},h2:{props:{fontSize:"large",md_fontSize:"giant"}},h3:{props:{fontSize:"large",fontStyle:"italic",md_fontSize:"xxl",md_fontStyle:"normal"}},h4:{props:{fontSize:"medium",md_fontSize:"xl"}},h5:{props:{fontSize:"medium",fontStyle:"italic",color:"ink.primary",md_fontSize:"large",md_fontStyle:"normal",md_color:"ink.primary"}},h6:{props:{fontSize:"small",color:"ink.primary",textTransform:"uppercase",md_fontSize:"medium",md_textTransform:"normal",md_color:"ink.primary"}},d1:{tag:"h1",props:{fontSize:"xxl",md_fontSize:"gargantua"}},d2:{tag:"h2",props:{fontSize:"xl",md_fontSize:"colossal"}},d3:{tag:"h3",props:{fontSize:"large",md_fontSize:"giant"}},d4:{tag:"h4",props:{fontSize:"medium",md_fontSize:"xxl"}}},I={fontWeight:"bold",lineHeight:"close"},V={fontWeight:"stronger",lineHeight:"close"};function E(e){switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return I;case"d1":case"d2":case"d3":case"d4":return V;default:return{}}}i(E,"getDefaultProps");function z(e,t={}){var a,s;let o=C,{tag:n=e,props:r={}}=o[e]||{};return{tag:n,variantProps:{fontWeight:(a=t.fontWeight)!=null?a:"regular",letterSpacing:"regular",color:(s=t.color)!=null?s:"ink.primary",...t.fontSize&&{fontSize:t.fontSize},...E(e),...r}}}i(z,"getTextProps");import{forwardRef as F}from"react";import{useEffect as w,useRef as D,useState as H}from"react";function k(e){let t=D(e),[o,n]=H(null);return w(()=>{if(e===void 0||t.current===void 0||e===t.current){t.current=e;return}n(e>t.current?"up":"down"),t.current=e;let r=requestAnimationFrame(()=>n(null));return()=>cancelAnimationFrame(r)},[e]),o}i(k,"useTickFlash");import{jsx as B}from"react/jsx-runtime";var _=F(({text:e,children:t,variant:o="span",type:n,tick:r,...a},s)=>{var d;let p=g(),{tag:P,variantProps:f}=z(o,(d=p==null?void 0:p.component)==null?void 0:d.text),l=k(r),R=r===void 0?c:y,b=a.color!==void 0||a.contrast!==void 0?Object.fromEntries(Object.entries(f).filter(([u])=>u!=="color"&&!u.endsWith("_color"))):f;return B(R,{as:P,ignoreResponsive:n==="mobile",enableBreakpoint:n==="desktop"?"md":void 0,...b,...a,"data-tick-settle":r===void 0?void 0:"","data-tick":l!=null?l:void 0,ref:s,children:t||e})});_.displayName="Text";var v=_;export{c as a,y as b,C as c,z as d,v as e};
@@ -0,0 +1 @@
1
+ import{a as l}from"./chunk-7TJO34VI.esm.js";import{b as I}from"./chunk-JLQDS5TS.esm.js";import{a as s}from"./chunk-5Q265MC7.esm.js";import{a as g}from"./chunk-TBHGVERY.esm.js";import{b as f}from"./chunk-62CVSGJD.esm.js";import{c}from"./chunk-BV6GHAF7.esm.js";import{g as i}from"./chunk-AXUWC2WH.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";var C=r(({cover:e,height:t,width:o})=>e&&{width:o!=null?o:"100%",height:t!=null?t:"100%",objectFit:"cover"},"imageCover"),d=r(e=>e?c(e):"fit-content","getSizeValue"),p=i("img").withConfig({shouldForwardProp:f}).withConfig({componentId:"sc-swtbvc-0"})(["display:block;width:",";height:",";",";&[src='']{visibility:hidden;position:absolute;}",""],({full:e,width:t})=>e?"100%":d(t),({height:e})=>d(e),C,g({}));import L,{forwardRef as h,useState as F}from"react";import{jsx as n,jsxs as z}from"react/jsx-runtime";var u=h(({src:e,...t},o)=>n(p,{src:e,ref:o,...t})),x=r(({width:e=60,height:t=60})=>n(l,{height:t,width:e,children:n(I,{width:e,height:t})}),"ImageDefaultContentLoader");function R(e){return new Promise((t,o)=>{let a=new Image;a.onload=t,a.onerror=o,a.src=e})}r(R,"loadImage");var y=r(({src:e,fallback:t,threshold:o,...a})=>{let[m,S]=F(),[w]=s({threshold:o},()=>{R(e).then(()=>S(e)).catch(()=>console.warn(`[Failed]: error on loading image: ${e}`))}),b=typeof m=="undefined";return z(L.Fragment,{children:[b?t||n(x,{...a}):null,n(u,{src:m||"",ref:w,...a})]})},"ImageLazy");y.displayName="ImageLazy";export{p as a,u as b,y as c};
@@ -1 +1 @@
1
- import{a as d}from"./chunk-EXHRZZ5E.esm.js";import{a as s}from"./chunk-GZONWSRB.esm.js";import w,{lazy as H,Suspense as k,useCallback as m,useId as z,useRef as A,useState as T}from"react";import{Fragment as M,jsx as u,jsxs as v}from"react/jsx-runtime";var B=H(()=>import("./Tooltip.floating-WTJLJZJN.esm.js")),L=40,E=s((e,c)=>typeof e=="string"?u(d,{...c,children:e}):e,"getElement"),R=s(({children:e,position:c="top",content:h,inverted:g,noArrow:y,onDismiss:t,visible:a})=>{if(a!==void 0&&typeof t=="undefined")throw new Error('Voc\xEA deve fornecer a fun\xE7\xE3o "onDismiss" quando utilizar a prop "visible"');let r=a!==void 0,[x,o]=T(!1),i=r?!!a:x,[C,S]=T(null),I=m(l=>S(l),[]),p=A(void 0),f=z(),O=m(l=>{r?!l&&t&&t():o(l)},[r,t]),n={ref:I,"aria-describedby":i?f:void 0};r||(n.onPointerEnter=()=>{clearTimeout(p.current),p.current=setTimeout(()=>o(!0),L)},n.onPointerLeave=()=>{clearTimeout(p.current),o(!1)},n.onFocus=()=>o(!0),n.onBlur=()=>o(!1));let P=E(e),b=w.cloneElement(P,n);return v(M,{children:[b,i&&u(k,{fallback:null,children:u(B,{referenceEl:C,open:i,onOpenChange:O,position:c,inverted:g,noArrow:y,tooltipId:f,content:E(h,{fontSize:"micro",lineHeight:"regular"})})})]})},"TooltipComponent");R.displayName="Tooltip";export{R as a};
1
+ import{a as d}from"./chunk-J2ZPCUOE.esm.js";import{a as s}from"./chunk-GZONWSRB.esm.js";import w,{lazy as H,Suspense as k,useCallback as m,useId as z,useRef as A,useState as T}from"react";import{Fragment as M,jsx as u,jsxs as v}from"react/jsx-runtime";var B=H(()=>import("./Tooltip.floating-IEWE6XP4.esm.js")),L=40,E=s((e,c)=>typeof e=="string"?u(d,{...c,children:e}):e,"getElement"),R=s(({children:e,position:c="top",content:h,inverted:g,noArrow:y,onDismiss:t,visible:a})=>{if(a!==void 0&&typeof t=="undefined")throw new Error('Voc\xEA deve fornecer a fun\xE7\xE3o "onDismiss" quando utilizar a prop "visible"');let r=a!==void 0,[x,o]=T(!1),i=r?!!a:x,[C,S]=T(null),I=m(l=>S(l),[]),p=A(void 0),f=z(),O=m(l=>{r?!l&&t&&t():o(l)},[r,t]),n={ref:I,"aria-describedby":i?f:void 0};r||(n.onPointerEnter=()=>{clearTimeout(p.current),p.current=setTimeout(()=>o(!0),L)},n.onPointerLeave=()=>{clearTimeout(p.current),o(!1)},n.onFocus=()=>o(!0),n.onBlur=()=>o(!1));let P=E(e),b=w.cloneElement(P,n);return v(M,{children:[b,i&&u(k,{fallback:null,children:u(B,{referenceEl:C,open:i,onOpenChange:O,position:c,inverted:g,noArrow:y,tooltipId:f,content:E(h,{fontSize:"micro",lineHeight:"regular"})})})]})},"TooltipComponent");R.displayName="Tooltip";export{R as a};
@@ -1 +1 @@
1
- import{a as i}from"./chunk-D4ZBSTRO.esm.js";import{g as r}from"./chunk-AXUWC2WH.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";function e({inverted:a,theme:o}){return a?{"--background":o.colors.surface.raised,"--color":o.colors.ink.primary}:{"--background":o.colors.ink.primary,"--color":o.colors.surface.paper}}n(e,"getContainerStyle");var t=r(i).withConfig({componentId:"sc-10yilai-0"})(["position:absolute;width:8px;height:8px;z-index:-1;&::before{content:'';transform:rotate(45deg);background:var(--background);position:absolute;width:8px;height:8px;z-index:-1;}"]),l=r(i).withConfig({componentId:"sc-10yilai-1"})([""," color:var(--color);background-color:var(--background);line-height:1;&[data-placement^='top'] > ","{bottom:-3px;}&[data-placement^='bottom'] > ","{top:-3px;}&[data-placement^='left'] > ","{right:-4px;}&[data-placement^='right'] > ","{left:-4px;}"],e,t,t,t,t);export{t as a,l as b};
1
+ import{a as i}from"./chunk-347TNROV.esm.js";import{g as r}from"./chunk-AXUWC2WH.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";function e({inverted:a,theme:o}){return a?{"--background":o.colors.surface.raised,"--color":o.colors.ink.primary}:{"--background":o.colors.ink.primary,"--color":o.colors.surface.paper}}n(e,"getContainerStyle");var t=r(i).withConfig({componentId:"sc-10yilai-0"})(["position:absolute;width:8px;height:8px;z-index:-1;&::before{content:'';transform:rotate(45deg);background:var(--background);position:absolute;width:8px;height:8px;z-index:-1;}"]),l=r(i).withConfig({componentId:"sc-10yilai-1"})([""," color:var(--color);background-color:var(--background);line-height:1;&[data-placement^='top'] > ","{bottom:-3px;}&[data-placement^='bottom'] > ","{top:-3px;}&[data-placement^='left'] > ","{right:-4px;}&[data-placement^='right'] > ","{left:-4px;}"],e,t,t,t,t);export{t as a,l as b};
@@ -0,0 +1 @@
1
+ import{a as d}from"./chunk-J2ZPCUOE.esm.js";import{a as f}from"./chunk-UDQ3TYVZ.esm.js";import{j as H}from"./chunk-BV6GHAF7.esm.js";import{g as c}from"./chunk-AXUWC2WH.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";var A=n(({theme:t,disabled:y,variant:r})=>{let e=t.colors.ink.primary,a=t.colors.ink.secondary;if(r!=="default"){let{base:g,dark:l}=r==="success"?t.colors.success:t.colors.danger;e=l,a=g}return y&&(e=t.colors.ink.disabled),{"--colorLabel":e,"--colorHint":a}},"getFieldColor"),v=c(f).withConfig({componentId:"sc-1iiu1tt-0"})(["width:100%;justify-content:center;",";"],A),k=c(d).withConfig({componentId:"sc-1iiu1tt-1"})(["color:var(--color-label);"]),I=c(d).withConfig({componentId:"sc-1iiu1tt-2"})(["color:var(--color-label);"]),L=c(d).withConfig({componentId:"sc-1iiu1tt-3"})(["color:var(--color-hint);min-height:","em;"],({theme:t})=>t.font.lineHeight.tight);import{jsx as s,jsxs as O}from"react/jsx-runtime";var j=n(({name:t,value:y,label:r,inputProps:e,hintText:a,variant:g,setFieldValue:l,readOnly:m,readOnlyText:z="apenas leitura",hintErrorText:E="Something went wrong",hintSuccessText:R="Everything is alright",...o})=>{var w;let V=o.component,x=!!o.errors||o.error,b=!!o.success,h=(w=e==null?void 0:e.readOnly)!=null?w:m,u=n(i=>{if(!m&&(e!=null&&e.onChange&&e.onChange(i),l)){let S=i;H(i)&&(S=i.target.type==="checkbox"||i.target.type==="radio"?i.target.checked:i.target.value),l(t,S)}},"onChange"),D=n(()=>{if(m)return;if(typeof(e==null?void 0:e.reset)=="function"){e.reset();return}let i=e==null?void 0:e.type;l&&l(t,i==="checkbox"||i==="radio"?!1:"")},"resetField"),B=typeof o.errors=="string"?o.errors:E,C=x&&B||b&&R||a,F=g||x&&"error"||b&&"success"||"default",N=!r||o.hideLabel,W=h||o.optionalText,q=h?z:o.optionalText,T=e&&e.disabled;return O(v,{area:o.area,alignSelf:o.alignSelf,justifySelf:o.justifySelf,variant:F,disabled:T,gap:"micro",...o.fieldProps,children:[O(f,{flexDirection:"row",justifyContent:"between",isHidden:N,children:[s(k,{as:"label",htmlFor:t,fontSize:"xs",fontWeight:"bold",lineHeight:"regular",children:r}),W&&s(I,{fontStyle:"italic",lineHeight:"tight",fontSize:"micro",children:q})]}),s(V,{...e,id:t,name:t,value:y,variant:F,readOnly:h,onChange:u,reset:D}),s(L,{lineHeight:"tight",fontSize:"micro",isHidden:T||!C,children:C})]})},"FieldComponent");j.displayName="Field";export{j as a};
@@ -1 +1 @@
1
- import{b as R}from"./chunk-IK5Z5C2R.esm.js";import{b as k}from"./chunk-BNB3KNKE.esm.js";import{b as S}from"./chunk-OXQA5WD3.esm.js";import{b as l}from"./chunk-TZQMBDGR.esm.js";import{b as h}from"./chunk-WCUEINBQ.esm.js";import{b as g}from"./chunk-QYL6LECA.esm.js";import{b as F}from"./chunk-3A7I6HM2.esm.js";import{d as b}from"./chunk-WI3WPCW3.esm.js";import{p as y}from"./chunk-BV6GHAF7.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";var d=y(t=>t.startsWith("sm_")||t.startsWith("md_")||t.startsWith("lg_")||t.startsWith("xl_")),v=a((t,n)=>{let o={theme:n};return{...k(t)(),...g(t)(o),...l(t)(o),...S(t)(o),...h(t)(o),...b(t)(o),...R(t)(o),...F(t)(o)}},"getStyles"),p=["sm","md","lg","xl"],_=a(t=>n=>{let{theme:o,...e}={...t,...n};if(e!=null&&e.ignoreResponsive)return null;let r={};Object.keys(e).forEach(i=>{if(d(i)){let[m,c]=i.split("_"),f=e[i];m in r?r[m][c]=f:r[m]={[c]:f}}});let s={};return e!=null&&e.enableBreakpoint&&(e==null?void 0:e.enableBreakpoint)in r&&Object.assign(s,v(r[e==null?void 0:e.enableBreakpoint],o)),p.forEach(i=>{i in r&&(s[o.breakpoints.up(i)]=v(r[i],o))}),s},"ResponsiveFactory");export{_ as a};
1
+ import{b as R}from"./chunk-IK5Z5C2R.esm.js";import{b as k}from"./chunk-BNB3KNKE.esm.js";import{b as S}from"./chunk-OXQA5WD3.esm.js";import{b as l}from"./chunk-TZQMBDGR.esm.js";import{b as h}from"./chunk-WCUEINBQ.esm.js";import{b as g}from"./chunk-QYL6LECA.esm.js";import{b as F}from"./chunk-3A7I6HM2.esm.js";import{e as b}from"./chunk-XTY6DXMK.esm.js";import{p as y}from"./chunk-BV6GHAF7.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";var d=y(t=>t.startsWith("sm_")||t.startsWith("md_")||t.startsWith("lg_")||t.startsWith("xl_")),v=a((t,n)=>{let o={theme:n};return{...k(t)(),...g(t)(o),...l(t)(o),...S(t)(o),...h(t)(o),...b(t)(o),...R(t)(o),...F(t)(o)}},"getStyles"),p=["sm","md","lg","xl"],_=a(t=>n=>{let{theme:o,...e}={...t,...n};if(e!=null&&e.ignoreResponsive)return null;let r={};Object.keys(e).forEach(i=>{if(d(i)){let[m,c]=i.split("_"),f=e[i];m in r?r[m][c]=f:r[m]={[c]:f}}});let s={};return e!=null&&e.enableBreakpoint&&(e==null?void 0:e.enableBreakpoint)in r&&Object.assign(s,v(r[e==null?void 0:e.enableBreakpoint],o)),p.forEach(i=>{i in r&&(s[o.breakpoints.up(i)]=v(r[i],o))}),s},"ResponsiveFactory");export{_ as a};
@@ -1 +1 @@
1
- import{a as u}from"./chunk-EXHRZZ5E.esm.js";import{d as s}from"./chunk-RWLJNXLX.esm.js";import{b as p}from"./chunk-IK5Z5C2R.esm.js";import{b}from"./chunk-OXQA5WD3.esm.js";import{a as f}from"./chunk-R2B57RMV.esm.js";import{g as d}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";function g(r){return r==="default"?"primary":r==="info"?"information":r}i(g,"getColorVariant");function L(r,t,n){let e=g(t),o=r.colors[e];if(n){let a=o==null?void 0:o.action;return{backgroundColor:a,color:a&&f(r,l=>{var m;let c=(m=l.colors[e])==null?void 0:m.action;return c&&l.colors.getContrastColor(c)})}}return{backgroundColor:o==null?void 0:o.light,color:o==null?void 0:o.onLight}}i(L,"getColor");var y=d(u).withConfig({componentId:"sc-dznqj7-0"})(["display:inline;"," "," "," ",""],p({fontSize:"micro",lineHeight:"close"}),b({px:"small",py:"xs"}),s({borderRadius:"micro"}),({theme:r,variant:t,inverted:n})=>L(r,t,n));import{jsx as x}from"react/jsx-runtime";function C(r){let{variant:t="default",text:n,children:e,alignSelf:o="start",...a}=r;return x(y,{variant:t,alignSelf:o,...a,children:e||n})}i(C,"Label");C.displayName="Label";export{y as a,C as b};
1
+ import{a as u}from"./chunk-J2ZPCUOE.esm.js";import{d as s}from"./chunk-RWLJNXLX.esm.js";import{b as p}from"./chunk-IK5Z5C2R.esm.js";import{b}from"./chunk-OXQA5WD3.esm.js";import{a as f}from"./chunk-R2B57RMV.esm.js";import{g as d}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";function g(r){return r==="default"?"primary":r==="info"?"information":r}i(g,"getColorVariant");function L(r,t,n){let e=g(t),o=r.colors[e];if(n){let a=o==null?void 0:o.action;return{backgroundColor:a,color:a&&f(r,l=>{var m;let c=(m=l.colors[e])==null?void 0:m.action;return c&&l.colors.getContrastColor(c)})}}return{backgroundColor:o==null?void 0:o.light,color:o==null?void 0:o.onLight}}i(L,"getColor");var y=d(u).withConfig({componentId:"sc-dznqj7-0"})(["display:inline;"," "," "," ",""],p({fontSize:"micro",lineHeight:"close"}),b({px:"small",py:"xs"}),s({borderRadius:"micro"}),({theme:r,variant:t,inverted:n})=>L(r,t,n));import{jsx as x}from"react/jsx-runtime";function C(r){let{variant:t="default",text:n,children:e,alignSelf:o="start",...a}=r;return x(y,{variant:t,alignSelf:o,...a,children:e||n})}i(C,"Label");C.displayName="Label";export{y as a,C as b};
@@ -1,2 +1,2 @@
1
- import{f as s}from"./chunk-A77HKHNQ.esm.js";import{b as r}from"./chunk-TLIKQFOT.esm.js";import{d as i}from"./chunk-SF2QSF7E.esm.js";import{c as m,h as a}from"./chunk-YJ6PPJQ4.esm.js";import{a as n}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import{normalize as b}from"styled-normalize";import{jsx as f}from"react/jsx-runtime";var c=n([""," *,*::before,*::after{box-sizing:inherit;}html{font-size:100%;color-scheme:light;}html[","='dark']{color-scheme:dark;}"," html,body{margin:0;padding:0;box-sizing:border-box;background-color:",";color:",";","}"," ",";"],b,({$attribute:o=r})=>o,({$system:o,$attribute:e=r})=>o?`@media (prefers-color-scheme: dark) { html:not([${e}]) { color-scheme: dark; } }`:"",({theme:o})=>{var e,t;return(t=(e=o.colors.surface)==null?void 0:e.canvas)!=null?t:o.colors.baseLight},({theme:o})=>{var e,t;return(t=(e=o.colors.ink)==null?void 0:e.primary)!=null?t:o.colors.baseDark},({theme:o})=>Object.entries(a(o,m)).map(([e,t])=>`${e}: ${t};`).join(`
1
+ import{f as s}from"./chunk-4TQV5FFJ.esm.js";import{b as r}from"./chunk-TLIKQFOT.esm.js";import{d as i}from"./chunk-SF2QSF7E.esm.js";import{c as m,h as a}from"./chunk-YJ6PPJQ4.esm.js";import{a as n}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import{normalize as b}from"styled-normalize";import{jsx as f}from"react/jsx-runtime";var c=n([""," *,*::before,*::after{box-sizing:inherit;}html{font-size:100%;color-scheme:light;}html[","='dark']{color-scheme:dark;}"," html,body{margin:0;padding:0;box-sizing:border-box;background-color:",";color:",";","}"," ",";"],b,({$attribute:o=r})=>o,({$system:o,$attribute:e=r})=>o?`@media (prefers-color-scheme: dark) { html:not([${e}]) { color-scheme: dark; } }`:"",({theme:o})=>{var e,t;return(t=(e=o.colors.surface)==null?void 0:e.canvas)!=null?t:o.colors.baseLight},({theme:o})=>{var e,t;return(t=(e=o.colors.ink)==null?void 0:e.primary)!=null?t:o.colors.baseDark},({theme:o})=>Object.entries(a(o,m)).map(([e,t])=>`${e}: ${t};`).join(`
2
2
  `),({theme:o})=>o.motion?i(o.motion):"",({extend:o})=>o);function p(o){let e=s();return f(c,{...o,$attribute:e==null?void 0:e.attribute,$system:(e==null?void 0:e.mode)==="system"})}l(p,"GlobalStyle");export{c as a,p as b};
@@ -0,0 +1 @@
1
+ import{e as le}from"./chunk-UQVJ7IG5.esm.js";import{a as ae,b as V}from"./chunk-OEEVC5Y2.esm.js";import{a as Q,b as Y}from"./chunk-EK6YOJCW.esm.js";import{a as oe}from"./chunk-A3OJEVGQ.esm.js";import{b as te}from"./chunk-KR2X2UQG.esm.js";import{a as ee}from"./chunk-BE2JDTVA.esm.js";import{I as ie,J as ne,ga as re,ja as k}from"./chunk-DAT6GD4T.esm.js";import{b as O}from"./chunk-H4XR4LGF.esm.js";import{b as X}from"./chunk-JLUNVLUS.esm.js";import{f as J}from"./chunk-CC5NKEXF.esm.js";import{e as I}from"./chunk-J2ZPCUOE.esm.js";import{b as K}from"./chunk-4TQV5FFJ.esm.js";import{a as v}from"./chunk-UDQ3TYVZ.esm.js";import{a as U}from"./chunk-347TNROV.esm.js";import{e as _}from"./chunk-XTY6DXMK.esm.js";import{m as z}from"./chunk-BV6GHAF7.esm.js";import{g as x}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";var se=i(({theme:e,readOnly:t,disabled:o,active:c})=>{if(t||o)return null;let d=e.colors.primary.base;return{borderWidth:1,borderStyle:"dashed",borderColor:c?d:"transparent","&:hover":{borderColor:d}}},"activeStyle"),de=i(({disabled:e,readOnly:t})=>(e||t)&&{cursor:"not-allowed",pointerEvents:"none",userSelect:"none"},"disabledStyle"),me=x(U).withConfig({componentId:"sc-1erdx9t-0"})([""," "," container-type:inline-size;"],se,de),j=x(U).withConfig({componentId:"sc-1erdx9t-1"})(["pointer-events:none;display:flex;justify-content:center;align-items:center;"]),N=x(U).withConfig({componentId:"sc-1erdx9t-2"})(["opacity:0.95;"]),D=x(V).withConfig({componentId:"sc-1erdx9t-3"})(["& ","{padding:0;svg{width:0.8rem;height:0.8rem;}}"],Q),ce=x(v).withConfig({componentId:"sc-1erdx9t-4"})(["min-width:0;overflow-y:auto;overflow-x:hidden;& ","{padding:"," 0;}& "," + & ","{margin-top:",";}"],D,({theme:e})=>e.spacing("xs"),D,D,({theme:e})=>e.spacing("medium")),pe=x(I).withConfig({componentId:"sc-1erdx9t-5"})(["flex:1;width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),fe=x(U).attrs(e=>({borderRadius:"micro",bgColor:"surface.sunken",...e})).withConfig({componentId:"sc-1erdx9t-6"})(["--fillColor:",";height:4px;background-image:linear-gradient(var(--fillColor),var(--fillColor));background-repeat:no-repeat;background-size:0%;transition:all var(--apollion-motion-duration-100,100ms) var(--apollion-motion-easing-linear,cubic-bezier(0,0,1,1));"],({theme:e})=>e.colors.information.base),B=x(U).attrs(e=>({borderRadius:"micro",...e})).withConfig({componentId:"sc-1erdx9t-7"})(["align-self:center;overflow:hidden;width:2rem;height:2rem;font-size:1.6rem;color:",";"],({theme:e})=>e.colors.primary.base),ue=x(U).withConfig({componentId:"sc-1erdx9t-8"})(["display:grid;"," "," ",""],ae,se,de),ge=x(U).withConfig({componentId:"sc-1erdx9t-9"})(["display:flex;flex-direction:column;"]),Fe=x(V).withConfig({componentId:"sc-1erdx9t-10"})(["",""],_({flex:"fluid"}));import{forwardRef as qe,useCallback as Me,useEffect as $e,useImperativeHandle as He,useRef as We,useState as Ge}from"react";function q(e){let t=Math.floor(Math.log(e)/Math.log(1e3));return`${(e/1e3**t).toFixed(2)} ${["B","kB","MB","GB","TB"][t]}`}i(q,"fileSize");function M(e,t){let o=t||15728640;return(Array.isArray(e)?e:[e]).filter(d=>d.size<=o)}i(M,"filterFiles");function $(e){return e.map(t=>({id:K(),file:t,fileName:t.name,fileSize:q(t.size)}))}i($,"convertFileToFileItem");function Ce(e){let{fieldName:t,file:o,requestConfig:c}=e,{endpoint:d,timeout:y,auth:f,params:F,withCredentials:r,responseType:m,headers:p,formDataParams:l}=c;return new Promise((u,h)=>{let a=new XMLHttpRequest;a.timeout=y;let b=new FormData;b.append(t,o,o.name),l&&l.forEach(s=>{b.append(s.key,s.value)});let R=new URL(d);if(F&&Object.keys(F).forEach(s=>{R.searchParams.append(s,F[s])}),a.open("post",R.href),"setRequestHeader"in a){let s={...p};if(f){let g=f.username||"",P=unescape(encodeURIComponent(f.password))||"",T=`${g}:${P}`;s.Authorization=`Basic ${btoa(T)}`}Object.keys(s).forEach(g=>{let P=s[g];P!==void 0&&a.setRequestHeader(g,P)})}r!==void 0&&(a.withCredentials=!!r),a.responseType=m||"json";let w=0;a.upload.addEventListener("progress",s=>{e.onProgress&&(w=s.loaded,e.onProgress(s.loaded))}),a.onreadystatechange=()=>{var g;if(!a||a.readyState!==4||a.status===0&&((g=a==null?void 0:a.responseURL)==null?void 0:g.indexOf("file:"))!==0)return;let s={response:a.response,status:a.status,statusText:a.statusText};e.onProgress&&e.onProgress(w,!0,s),u(s),a=null},a.onerror=()=>{e.onProgress&&e.onProgress(w,!1),h(),a=null},a.send(b)})}i(Ce,"uploadFile");import{useEffect as Ee,useState as ze}from"react";function xe(e,t){let[o,c]=ze(null);return Ee(()=>{let d="";return e&&t&&t(e)&&(d=URL.createObjectURL(e),c(d)),()=>{URL.revokeObjectURL(d)}},[e,t]),o}i(xe,"useObjectUrl");import{Fragment as je,jsx as n,jsxs as C}from"react/jsx-runtime";function ye(e){let{disabled:t,acceptLabel:o,isDragging:c,events:d,files:y,removeFile:f,openFileDialogButton:F,readOnly:r,style:m,className:p,inputFile:l}=e,u=y.length>0,h=u&&n(ce,{flexDirection:"column",flex:"fluid",p:"large",children:y.map(a=>n(be,{removeFile:f,readOnly:r,...a},a.id))});return C(me,{...d,style:m,className:p,active:c,disabled:t,readOnly:r,borderRadius:"md",bgColor:"surface.sunken",overflow:"hidden",deep:2,children:[l,C(v,{cq:{md:{flexDirection:"row",height:300,maxHeight:300}},children:[C(ge,{gap:"small",flex:"fluid",cq:u?{md:{flex:"initial"}}:void 0,p:"large",bgColor:"deepLight",justifyContent:"center",alignItems:"center",children:[C(v,{gap:"xs",alignItems:"center",children:[n(O,{icon:k,size:16,color:r||t?"ink.disabled":"secondary"}),o&&n(I,{variant:"meta",fontWeight:"bold",children:o})]}),!r&&C(je,{children:[n(I,{variant:"p",children:"Arraste e solte aqui"}),n(I,{variant:"p",fontWeight:"bold",children:"ou"}),F]})]}),h]}),c&&C(j,{absoluteFill:!0,children:[n(N,{absoluteFill:!0,bgColor:"surface.paper"}),C(v,{gap:"small",justifyContent:"center",alignItems:"center",p:8,children:[n(O,{icon:k,color:"information.dark",size:9}),n(I,{variant:"p",color:"information.dark",children:"Arraste e solte aqui"})]})]})]})}i(ye,"UploadCardRegular");function he(e){let{disabled:t,isDragging:o,events:c,files:d,removeFile:y,style:f,className:F,readOnly:r,openFileDialogButton:m,inputFile:p}=e;return C(ue,{...c,style:f,className:F,active:o,disabled:t,readOnly:r,borderRadius:"md",bgColor:"surface.sunken",overflow:"hidden",p:"large",medias:{xs:{gap:"large"},sm:{columns:"max-content 1fr"}},children:[p,n(v,{flexDirection:"row",justifyContent:"start",alignItems:"start",children:m}),n(Fe,{medias:{xs:{gap:"medium",columns:"repeat(auto-fill, minmax(240px, 1fr))"}},children:d.map(l=>n(be,{removeFile:y,readOnly:r,...l},l.id))}),o&&C(j,{children:[n(N,{}),C(v,{flexDirection:"row",gap:"small",justifyContent:"center",alignItems:"center",children:[n(O,{icon:k,color:"information.dark",size:6}),n(I,{variant:"p",children:"Arraste e solte aqui"})]})]})]})}i(he,"UploadCardCompact");function be({removeFile:e,readOnly:t,...o}){let c=o.uploadLoaded?`${o.uploadLoaded} de`:"";return C(D,{medias:{xs:{gap:"micro",columns:"2rem 1fr"}},children:[n(Ve,{...o}),C(v,{children:[C(v,{flexDirection:"row",justifyContent:"between",children:[n(pe,{variant:"meta",children:n("b",{children:o.fileName})}),!t&&n(Y,{onClick:()=>e(o.id),icon:n(O,{icon:re}),variant:"linked"})]}),o.uploadPercentage&&n(fe,{style:{backgroundSize:o.uploadPercentage}}),C(v,{flexDirection:"row",justifyContent:"between",children:[n(I,{variant:"meta",children:`${c} ${o.fileSize}`}),o.uploadPercentage&&n(I,{variant:"meta",children:`Enviando ${o.uploadPercentage}`})]})]})]})}i(be,"FileItemComponent");function Ve({file:e}){let t=xe(e,o=>o.type.startsWith("image"));return t?n(B,{children:n(X,{src:t,cover:!0})}):e.name.endsWith(".pdf")?n(B,{children:n(O,{icon:ne})}):n(B,{children:n(O,{icon:ie})})}i(Ve,"Preview");import{useState as Ne}from"react";function ve(e){let[t,o]=Ne({files:[],type:null,payload:null});return{files:t,setInitialFiles:i(r=>{var u;let m=M(r,e.maxSize),l={files:$(m),type:"ADD_INITIAL_FILES"};(u=e.onChange)==null||u.call(e,l),o(l)},"setInitialFiles"),removeFile:i(r=>{var p;let m={type:"REMOVE",files:t.files.filter(l=>l.id!==r),payload:t.files.find(l=>l.id===r)};(p=e.onChange)==null||p.call(e,m),o(m)},"removeFile"),removeAll:i(()=>{var m;let r={files:[],type:"REMOVE"};(m=e.onChange)==null||m.call(e,r),o(r)},"removeAll"),addFiles:i(r=>{var h;let m=M(r,e.maxSize),p=$(m),l=[...t.files,...p],u={files:l,type:"ADD",payload:p};e.single&&(l=p,u={files:l,type:"REPLACE",payload:l[0]}),(h=e.onChange)==null||h.call(e,u),o(u)},"addFiles"),updateFileProgress:i((r,m,p,l)=>{var s;let u=t.files.find(g=>g.id===r),h=i(()=>({uploadCompleted:p,uploadError:!p,uploadResponse:l||void 0}),"uploadResponse"),b={...u,...m!==void 0?i(()=>({uploadLoaded:q(m),uploadPercentage:`${Math.min(m/u.file.size*100,100).toFixed(0)}%`}),"progressStatus")():{},...p!==void 0?h():{}},w={files:t.files.map(g=>g.id===b.id?b:g),type:"UPDATE",payload:b};(s=e.onChange)==null||s.call(e,w),o(w)},"updateFileProgress")}}i(ve,"useFileState");import{jsx as A}from"react/jsx-runtime";var Ze=qe((e,t)=>{let{accept:o,maxSize:c,singleFile:d,uploadConfig:y,onUnsupportedFile:f,customButton:F,style:r,className:m,onChange:p,initialFiles:l,name:u}=e,[h,a]=Ge(!1),{active:b,enable:R,disable:w}=ee(),{files:s,setInitialFiles:g,addFiles:P,removeFile:T,removeAll:we,updateFileProgress:H}=ve({single:d,maxSize:c,onChange:p}),{getFiles:Pe}=oe({accept:o,single:d,onFilesSelect:P,onUnsupportedFile:f}),{isDragging:W,events:Ue}=te({accept:o,single:d,onDrop:P});$e(()=>{let S=Array.isArray(l)?l.length>0:!!l;!h&&!s.files.length&&S&&(a(!0),g(l))},[h,a,l,g,s.files]);let Se=Me(async S=>{if(s.files.length){R();let Re=s.files.map(({id:Te,file:Le})=>Ce({file:Le,fieldName:S.formDataFileKey||"file",requestConfig:{...y,...S},onProgress:i((ke,Be,Ae)=>{H(Te,ke,Be,Ae)},"onProgress")})),De=await Promise.all(Re);return w(),De}return[]},[s.files,y,R,H,w]);He(t,()=>({submit:Se,addFiles:P,removeFile:T,removeAll:we,files:s.files}));let L=We(null),E=i(()=>{var S;(S=L==null?void 0:L.current)==null||S.click()},"openFileDialog"),Oe=F?F({files:s.files,isDragging:W,openFileDialog:E,isSubmitting:b}):A(J,{onClick:E,variant:"outlined",color:"secondary",size:"small",disabled:e.readOnly||e.disabled||b,isLoading:b,type:"button",children:e.buttonText||"Enviar arquivos"}),G={...e,...!e.readOnly&&{events:Ue,isDragging:W},files:s.files,style:r,className:m,removeFile:T,openFileDialog:E,openFileDialogButton:Oe,name:u},Z=A(le,{type:"file",isHidden:!0,position:"absolute",name:u,id:u,ref:L,onChange:Pe,multiple:!d,accept:Array.isArray(o)?o.join(","):void 0});return e.compact?A(he,{...G,inputFile:Z}):A(ye,{...G,inputFile:Z})});Ze.displayName="UploadCard";import{useCallback as _e,useState as Ie}from"react";var qt=i(()=>{let[e,t]=Ie([]),[o,c]=Ie([]);return{onFilesChange:_e(f=>{if(!f.payload)return;let{payload:F}=f;f.type==="ADD"?c(r=>z(r,F)):f.type==="REMOVE"&&t(r=>z(r,F))},[]),removedFiles:e,addedFiles:o,clear:i(f=>{f==="removedFiles"&&t([]),f==="addedFiles"&&c([])},"clear")}},"useFileControl");export{me as a,j as b,N as c,D as d,ce as e,pe as f,fe as g,B as h,ue as i,ge as j,Fe as k,Ze as l,qt as m};
@@ -1 +1 @@
1
- import{a as h}from"./chunk-D4ZBSTRO.esm.js";import{b as o}from"./chunk-G5Z7USXC.esm.js";import{g as f}from"./chunk-AXUWC2WH.esm.js";import{a as m}from"./chunk-GZONWSRB.esm.js";import{forwardRef as G,useCallback as x,useLayoutEffect as X,useRef as w,useState as _}from"react";var g;function y(){if(typeof window=="undefined")return 15;if(g!==void 0)return g;let e=o.document.createElement("div"),i=o.document.createElement("div");return e.style.overflow="scroll",e.style.width="100%",i.style.width="100%",o.document.body.appendChild(e),e.appendChild(i),g=e.offsetWidth-i.offsetWidth,e.removeChild(i),o.document.body.removeChild(e),g}m(y,"getOsScrollbarWidth");function W(){let e=y();return e?e+1:20}m(W,"getScrollbarWidth");var I=f(h).withConfig({componentId:"sc-wsu612-0"})(["flex:1;height:100%;overflow:hidden;"]),k=f(h).withConfig({componentId:"sc-wsu612-1"})(["height:100%;box-sizing:border-box;overflow-y:scroll;"]),b=f(h).withConfig({componentId:"sc-wsu612-2"})(["position:absolute;top:0;right:2px;cursor:pointer;user-select:none;width:6px;min-height:30px;max-height:100%;background:rgba(0,0,0,0.4);opacity:0;transition:opacity var(--apollion-motion-duration-300,300ms) var(--apollion-motion-easing-exit,cubic-bezier(0.4,0,1,1));z-index:1;"]),M=f(h).withConfig({componentId:"sc-wsu612-3"})(["flex:1;display:flex;overscroll-behavior:auto;overflow:hidden;&:hover ","{opacity:0.75;}"],b);import{jsx as S,jsxs as J}from"react/jsx-runtime";var j=G(({children:e,onScroll:i,style:R,scrollableRef:u,...D},P)=>{let[d,z]=_(1),s=w(null),p=w(null),C=w(0),E=w({}),F=x(n=>{s.current=n,typeof u=="function"?u(n):u&&(u.current=n)},[u]);X(()=>{let n=s.current,t,r=m(()=>{cancelAnimationFrame(t),t=requestAnimationFrame(()=>{var c;if(n){let{clientHeight:l,scrollHeight:a}=n;z(l/a),E.current={clientHeight:l,scrollHeight:a,trackHeight:(c=p==null?void 0:p.current)==null?void 0:c.clientHeight}}})},"updateScrollbar");return o.addEventListener("resize",r),r(),()=>{cancelAnimationFrame(t),o.removeEventListener("resize",r)}},[s,e]);let $=x(n=>{if(i&&i(n),d===1)return;let t=s.current,r=p.current;cancelAnimationFrame(C.current),C.current=requestAnimationFrame(()=>{let{clientHeight:c,scrollHeight:l,trackHeight:a}=E.current,v=t.scrollTop/(l-c)*(c-a);r&&(r.style.transform=`translateY(${v}px)`)})},[s,d,i]),O=x(n=>{let t=s.current,r,c=n.pageY,l=(t==null?void 0:t.scrollTop)||0,a=m(({pageY:v})=>{cancelAnimationFrame(r),r=requestAnimationFrame(()=>{let Y=v-c;l+=Y/d,c=v,t&&(t.scrollTop=l)})},"drag"),A=m(()=>{o.removeEventListener("mousemove",a)},"stop");o.addEventListener("mousemove",a),o.addEventListener("mouseup",A,{once:!0})},[s,d]),L=y(),T=!!L,H=T?W():0,q={style:{marginRight:`-${H}px`}},N={...R,paddingRight:H},B={onScroll:$,ref:F,tabIndex:0,style:{width:`calc(100% + ${L}px)`,overflowX:"hidden"}},U={ref:p,onMouseDown:O,style:{height:`${d*100}%`,display:d===1?"none":void 0}};return J(M,{...D,style:N,ref:P,children:[S(I,{...q,children:S(k,{...B,children:e})}),T&&S(b,{round:"micro",...U})]})});j.displayName="CustomScroll";export{j as a};
1
+ import{a as h}from"./chunk-347TNROV.esm.js";import{b as o}from"./chunk-G5Z7USXC.esm.js";import{g as f}from"./chunk-AXUWC2WH.esm.js";import{a as m}from"./chunk-GZONWSRB.esm.js";import{forwardRef as G,useCallback as x,useLayoutEffect as X,useRef as w,useState as _}from"react";var g;function y(){if(typeof window=="undefined")return 15;if(g!==void 0)return g;let e=o.document.createElement("div"),i=o.document.createElement("div");return e.style.overflow="scroll",e.style.width="100%",i.style.width="100%",o.document.body.appendChild(e),e.appendChild(i),g=e.offsetWidth-i.offsetWidth,e.removeChild(i),o.document.body.removeChild(e),g}m(y,"getOsScrollbarWidth");function W(){let e=y();return e?e+1:20}m(W,"getScrollbarWidth");var I=f(h).withConfig({componentId:"sc-wsu612-0"})(["flex:1;height:100%;overflow:hidden;"]),k=f(h).withConfig({componentId:"sc-wsu612-1"})(["height:100%;box-sizing:border-box;overflow-y:scroll;"]),b=f(h).withConfig({componentId:"sc-wsu612-2"})(["position:absolute;top:0;right:2px;cursor:pointer;user-select:none;width:6px;min-height:30px;max-height:100%;background:rgba(0,0,0,0.4);opacity:0;transition:opacity var(--apollion-motion-duration-300,300ms) var(--apollion-motion-easing-exit,cubic-bezier(0.4,0,1,1));z-index:1;"]),M=f(h).withConfig({componentId:"sc-wsu612-3"})(["flex:1;display:flex;overscroll-behavior:auto;overflow:hidden;&:hover ","{opacity:0.75;}"],b);import{jsx as S,jsxs as J}from"react/jsx-runtime";var j=G(({children:e,onScroll:i,style:R,scrollableRef:u,...D},P)=>{let[d,z]=_(1),s=w(null),p=w(null),C=w(0),E=w({}),F=x(n=>{s.current=n,typeof u=="function"?u(n):u&&(u.current=n)},[u]);X(()=>{let n=s.current,t,r=m(()=>{cancelAnimationFrame(t),t=requestAnimationFrame(()=>{var c;if(n){let{clientHeight:l,scrollHeight:a}=n;z(l/a),E.current={clientHeight:l,scrollHeight:a,trackHeight:(c=p==null?void 0:p.current)==null?void 0:c.clientHeight}}})},"updateScrollbar");return o.addEventListener("resize",r),r(),()=>{cancelAnimationFrame(t),o.removeEventListener("resize",r)}},[s,e]);let $=x(n=>{if(i&&i(n),d===1)return;let t=s.current,r=p.current;cancelAnimationFrame(C.current),C.current=requestAnimationFrame(()=>{let{clientHeight:c,scrollHeight:l,trackHeight:a}=E.current,v=t.scrollTop/(l-c)*(c-a);r&&(r.style.transform=`translateY(${v}px)`)})},[s,d,i]),O=x(n=>{let t=s.current,r,c=n.pageY,l=(t==null?void 0:t.scrollTop)||0,a=m(({pageY:v})=>{cancelAnimationFrame(r),r=requestAnimationFrame(()=>{let Y=v-c;l+=Y/d,c=v,t&&(t.scrollTop=l)})},"drag"),A=m(()=>{o.removeEventListener("mousemove",a)},"stop");o.addEventListener("mousemove",a),o.addEventListener("mouseup",A,{once:!0})},[s,d]),L=y(),T=!!L,H=T?W():0,q={style:{marginRight:`-${H}px`}},N={...R,paddingRight:H},B={onScroll:$,ref:F,tabIndex:0,style:{width:`calc(100% + ${L}px)`,overflowX:"hidden"}},U={ref:p,onMouseDown:O,style:{height:`${d*100}%`,display:d===1?"none":void 0}};return J(M,{...D,style:N,ref:P,children:[S(I,{...q,children:S(k,{...B,children:e})}),T&&S(b,{round:"micro",...U})]})});j.displayName="CustomScroll";export{j as a};
@@ -1,3 +1,3 @@
1
- import{b as a}from"./chunk-RI7KKIJD.esm.js";import{a as i}from"./chunk-NHE4GLQK.esm.js";import{g as e}from"./chunk-AXUWC2WH.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";var f={xs:{columns:"100%",rows:"100%",areas:`
1
+ import{b as a}from"./chunk-OEEVC5Y2.esm.js";import{a as i}from"./chunk-UDQ3TYVZ.esm.js";import{g as e}from"./chunk-AXUWC2WH.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";var f={xs:{columns:"100%",rows:"100%",areas:`
2
2
  "content"
3
3
  `}};var m=e(a).attrs({medias:f}).withConfig({componentId:"sc-11xb4nx-0"})(["width:100%;height:100%;"]);import{jsx as o}from"react/jsx-runtime";var n=r(({layoutComponents:t})=>o(m,{children:o(i,{area:"content",width:"100%",justifyContent:"center",md_justifyContent:"start",children:t&&t.content&&o(t.content,{})})}),"DefaultLayout");n.displayName="DefaultLayout";export{f as a,m as b,n as c};
@@ -0,0 +1 @@
1
+ import{b as d}from"./chunk-347TNROV.esm.js";import{c as a}from"./chunk-XTY6DXMK.esm.js";import{g as o}from"./chunk-AXUWC2WH.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";var u=t(e=>{var i;if(e===void 0)return;if(typeof e=="string")return e;let r="autoFit"in e?"auto-fit":"auto-fill",n="autoFit"in e?e.autoFit:e.autoFill;return`repeat(${r}, minmax(min(${n}, 100%), ${(i=e.max)!=null?i:"1fr"}))`},"resolveColumns"),f=t((e,r)=>({gridTemplateColumns:u(r.columns),gridTemplateRows:r.rows,gridTemplateAreas:r.areas,gap:r.gap?e.spacing(r.gap):void 0,gridColumnGap:r.columnGap?e.spacing(r.columnGap):void 0,gridRowGap:r.rowGap?e.spacing(r.rowGap):void 0,...a(r)}),"getGridProps"),s=t(({medias:e,theme:r})=>e?"xs"in e?Object.keys(e).reduce((n,i)=>({...n,[r.breakpoints.up(i)]:f(r,e[i])}),{}):f(r,e):{},"setGridBreakpoints"),p=o(d).withConfig({componentId:"sc-11fh3lu-0"})(["display:grid;",""],s);export{s as a,p as b};
@@ -1 +1 @@
1
- import{a,b as o,d as s}from"./chunk-DP5DDF7U.esm.js";import{a as e}from"./chunk-EXHRZZ5E.esm.js";import{forwardRef as u}from"react";import{jsx as t,jsxs as n}from"react/jsx-runtime";var m=u(({color:i="primary",border:f,size:l="medium",progress:r=0,showProgressLabel:g=!1,...P},c)=>{let p=-100+Number(r),B=Math.min(100,Math.max(0,Number(r)));return n(s,{color:i,justifyContent:"center",alignItems:"center",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":B,...P,ref:c,children:[t(a,{size:l,border:f,children:t(o,{style:{transform:`translateX(${p}%)`}})}),g&&n(e,{children:[r,"%"]})]})});m.displayName="ProgressBar";export{m as a};
1
+ import{a,b as o,d as s}from"./chunk-GHDDFAEP.esm.js";import{a as e}from"./chunk-J2ZPCUOE.esm.js";import{forwardRef as u}from"react";import{jsx as t,jsxs as n}from"react/jsx-runtime";var m=u(({color:i="primary",border:f,size:l="medium",progress:r=0,showProgressLabel:g=!1,...P},c)=>{let p=-100+Number(r),B=Math.min(100,Math.max(0,Number(r)));return n(s,{color:i,justifyContent:"center",alignItems:"center",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":B,...P,ref:c,children:[t(a,{size:l,border:f,children:t(o,{style:{transform:`translateX(${p}%)`}})}),g&&n(e,{children:[r,"%"]})]})});m.displayName="ProgressBar";export{m as a};
@@ -0,0 +1 @@
1
+ import{a as p}from"./chunk-J2ZPCUOE.esm.js";import{a as s}from"./chunk-UDQ3TYVZ.esm.js";import{a as l}from"./chunk-347TNROV.esm.js";import{g as n}from"./chunk-AXUWC2WH.esm.js";import{a as f}from"./chunk-GZONWSRB.esm.js";import{forwardRef as g}from"react";var h=n(l).withConfig({componentId:"sc-1ulk0ua-0"})(["display:flex;flex-shrink:0;margin:0;",""],({$orientation:i})=>i==="vertical"?"border-top-width: 0; border-right-width: 0; border-bottom-width: 0;":"border-right-width: 0; border-bottom-width: 0; border-left-width: 0;"),c=n(s).withConfig({componentId:"sc-1ulk0ua-1"})(["width:100%;"]);import{jsx as v,jsxs as u}from"react/jsx-runtime";var y=g(({orientation:i="horizontal",tone:D="hairline",color:t,thickness:w="thin",spacing:o="micro",label:e,...a},m)=>{let r=i==="vertical",x=t!=null?t:`edge.${D}`,d=f((b={})=>v(h,{as:r?"div":"hr",$orientation:i,role:r?"separator":void 0,"aria-orientation":r?"vertical":void 0,borderStyle:"solid",borderWidth:w,borderPosition:r?"left":"top",borderColor:x,...r?{alignSelf:"stretch",mx:o,minHeight:"1em"}:{width:"100%",my:o},...b}),"line");return e&&!r?u(c,{role:"separator","aria-label":typeof e=="string"?e:void 0,flexDirection:"row",alignItems:"center",gap:"small",my:o,...a,ref:m,children:[d({flex:"fluid",my:0}),typeof e=="string"?v(p,{fontSize:"micro",lineHeight:"tight",color:"ink.secondary",whiteSpace:"nowrap",children:e}):e,d({flex:"fluid",my:0})]}):d({...a,ref:m})});y.displayName="Divider";export{h as a,c as b,y as c};
@@ -1 +1 @@
1
- import{a as y}from"./chunk-NHE4GLQK.esm.js";import{a as h}from"./chunk-R2B57RMV.esm.js";import{k as b}from"./chunk-PXVTXO3L.esm.js";import{b as s,g as c}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import{forwardRef as S,useRef as v}from"react";var g=c(y).withConfig({componentId:"sc-rp85te-0"})(["padding:",";border-radius:",";background:",";"],({theme:e})=>e.spacing("micro"),({theme:e})=>e.border.borderRadius.md,({theme:e})=>e.colors.surface.sunken),I={small:s(["min-height:1.75rem;padding:0 ",";font-size:","px;"],({theme:e})=>e.spacing("small"),({theme:e})=>e.font.fontSize.xs),medium:s(["min-height:2.25rem;padding:0 ",";font-size:","px;"],({theme:e})=>e.spacing("medium"),({theme:e})=>e.font.fontSize.small)},k=c.button.withConfig({componentId:"sc-rp85te-1"})(["appearance:none;border:0;margin:0;background:transparent;cursor:pointer;font-family:",";font-weight:",";line-height:",";color:",";border-radius:",";transition:",";display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;flex:",";",";&:hover:not([aria-checked='true']):not(:disabled){background:",";}&[aria-checked='true']{background:",";box-shadow:",";color:",";}&:focus-visible{outline:2px solid ",";outline-offset:1px;}&:disabled{cursor:not-allowed;color:",";}"],({theme:e})=>e.font.fontFamily.main,({theme:e})=>e.font.fontWeight.bold,({theme:e})=>e.font.lineHeight.tight,({theme:e})=>e.colors.ink.secondary,({theme:e})=>e.border.borderRadius.sm,({theme:e})=>e.animation.transitions.short,({$fullWidth:e})=>e?"1 1 0":"0 0 auto",({$size:e})=>I[e],({theme:e})=>e.colors.wash.hover,({theme:e})=>e.colors.surface.raised,({theme:e})=>e.depth("level-one"),({theme:e})=>e.colors.ink.primary,({theme:e})=>h(e,i=>b(i.colors.primary,"base")),({theme:e})=>e.colors.ink.disabled);import{jsx as x}from"react/jsx-runtime";var w=S(({options:e,value:i,onChange:O,size:R="medium",label:D,fullWidth:d=!0,...C},a)=>{let f=v(null),m=l(r=>{var o,t;let n=e[r];!n||n.disabled||n.value===i||(O(n.value),(t=(o=f.current)==null?void 0:o.querySelectorAll('[role="radio"]')[r])==null||t.focus())},"pick"),u=l((r,n)=>{let o=e.length,t=r;for(let p=0;p<o;p+=1)if(t=(t+n+o)%o,!e[t].disabled)return t;return r},"step");return x(g,{flexDirection:"row",alignItems:"stretch",gap:"micro",width:d?"100%":void 0,role:"radiogroup","aria-label":D,onKeyDown:l(r=>{let n=e.findIndex(t=>t.value===i),o=null;r.key==="ArrowRight"||r.key==="ArrowDown"?o=u(n,1):r.key==="ArrowLeft"||r.key==="ArrowUp"?o=u(n,-1):r.key==="Home"?o=e.findIndex(t=>!t.disabled):r.key==="End"&&(o=e.length-1-[...e].reverse().findIndex(t=>!t.disabled)),!(o===null||o<0)&&(r.preventDefault(),m(o))},"handleKeyDown"),...C,ref:l(r=>{f.current=r,typeof a=="function"?a(r):a&&(a.current=r)},"setRefs"),children:e.map((r,n)=>{let o=r.value===i;return x(k,{type:"button",role:"radio","aria-checked":o,tabIndex:o?0:-1,disabled:r.disabled,$size:R,$fullWidth:d,onClick:()=>m(n),children:r.label},r.value)})})});w.displayName="Option";export{g as a,k as b,w as c};
1
+ import{a as y}from"./chunk-UDQ3TYVZ.esm.js";import{a as h}from"./chunk-R2B57RMV.esm.js";import{k as b}from"./chunk-PXVTXO3L.esm.js";import{b as s,g as c}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import{forwardRef as S,useRef as v}from"react";var g=c(y).withConfig({componentId:"sc-rp85te-0"})(["padding:",";border-radius:",";background:",";"],({theme:e})=>e.spacing("micro"),({theme:e})=>e.border.borderRadius.md,({theme:e})=>e.colors.surface.sunken),I={small:s(["min-height:1.75rem;padding:0 ",";font-size:","px;"],({theme:e})=>e.spacing("small"),({theme:e})=>e.font.fontSize.xs),medium:s(["min-height:2.25rem;padding:0 ",";font-size:","px;"],({theme:e})=>e.spacing("medium"),({theme:e})=>e.font.fontSize.small)},k=c.button.withConfig({componentId:"sc-rp85te-1"})(["appearance:none;border:0;margin:0;background:transparent;cursor:pointer;font-family:",";font-weight:",";line-height:",";color:",";border-radius:",";transition:",";display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;flex:",";",";&:hover:not([aria-checked='true']):not(:disabled){background:",";}&[aria-checked='true']{background:",";box-shadow:",";color:",";}&:focus-visible{outline:2px solid ",";outline-offset:1px;}&:disabled{cursor:not-allowed;color:",";}"],({theme:e})=>e.font.fontFamily.main,({theme:e})=>e.font.fontWeight.bold,({theme:e})=>e.font.lineHeight.tight,({theme:e})=>e.colors.ink.secondary,({theme:e})=>e.border.borderRadius.sm,({theme:e})=>e.animation.transitions.short,({$fullWidth:e})=>e?"1 1 0":"0 0 auto",({$size:e})=>I[e],({theme:e})=>e.colors.wash.hover,({theme:e})=>e.colors.surface.raised,({theme:e})=>e.depth("level-one"),({theme:e})=>e.colors.ink.primary,({theme:e})=>h(e,i=>b(i.colors.primary,"base")),({theme:e})=>e.colors.ink.disabled);import{jsx as x}from"react/jsx-runtime";var w=S(({options:e,value:i,onChange:O,size:R="medium",label:D,fullWidth:d=!0,...C},a)=>{let f=v(null),m=l(r=>{var o,t;let n=e[r];!n||n.disabled||n.value===i||(O(n.value),(t=(o=f.current)==null?void 0:o.querySelectorAll('[role="radio"]')[r])==null||t.focus())},"pick"),u=l((r,n)=>{let o=e.length,t=r;for(let p=0;p<o;p+=1)if(t=(t+n+o)%o,!e[t].disabled)return t;return r},"step");return x(g,{flexDirection:"row",alignItems:"stretch",gap:"micro",width:d?"100%":void 0,role:"radiogroup","aria-label":D,onKeyDown:l(r=>{let n=e.findIndex(t=>t.value===i),o=null;r.key==="ArrowRight"||r.key==="ArrowDown"?o=u(n,1):r.key==="ArrowLeft"||r.key==="ArrowUp"?o=u(n,-1):r.key==="Home"?o=e.findIndex(t=>!t.disabled):r.key==="End"&&(o=e.length-1-[...e].reverse().findIndex(t=>!t.disabled)),!(o===null||o<0)&&(r.preventDefault(),m(o))},"handleKeyDown"),...C,ref:l(r=>{f.current=r,typeof a=="function"?a(r):a&&(a.current=r)},"setRefs"),children:e.map((r,n)=>{let o=r.value===i;return x(k,{type:"button",role:"radio","aria-checked":o,tabIndex:o?0:-1,disabled:r.disabled,$size:R,$fullWidth:d,onClick:()=>m(n),children:r.label},r.value)})})});w.displayName="Option";export{g as a,k as b,w as c};
@@ -1 +1 @@
1
- import{g as $}from"./chunk-GC2ZV3CY.esm.js";import{a as J}from"./chunk-7HRVZJBD.esm.js";import{a as Ne}from"./chunk-2FQC32AA.esm.js";import{K,X as Oe,aa as $e,ba as Ue,ca as Be,p as He,r as Ae,w as We}from"./chunk-DAT6GD4T.esm.js";import{b as I}from"./chunk-CTNZPJ47.esm.js";import{f as ie}from"./chunk-VXAPSA5T.esm.js";import{e as k}from"./chunk-EXHRZZ5E.esm.js";import{a as P}from"./chunk-NHE4GLQK.esm.js";import{a as h}from"./chunk-D4ZBSTRO.esm.js";import{h as Te}from"./chunk-BV6GHAF7.esm.js";import{f as Ve,g as C}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import F from"react";import B from"react";var U=C(h).withConfig({componentId:"sc-npwc89-0"})(({theme:e})=>({margin:0,padding:"0 0.5rem",minHeight:40,lineHeight:1.2,display:"flex",flexDirection:"row",alignItems:"center",color:e.colors.ink.primary,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontFamily:e.font.fontFamily.main})),M=C(h).withConfig({componentId:"sc-npwc89-1"})(["display:flex;flex-direction:row;align-items:stretch;min-width:max-content;border-bottom:1px solid transparent;border-left:1px solid transparent;"]),_e=C(M).attrs(e=>({bgColor:"muted",...e})).withConfig({componentId:"sc-npwc89-2"})([""]),Ge=C(h).withConfig({componentId:"sc-npwc89-3"})(["& ",":hover{border-bottom-color:"," !important;border-left-color:"," !important;}"],M,({theme:e})=>e.colors.edge.strong,({theme:e})=>e.colors.primary.base),je=C(M).withConfig({componentId:"sc-npwc89-4"})(["position:sticky;top:0;z-index:2;background:",";"],({theme:e})=>e.colors.surface.paper),qe=C(h).withConfig({componentId:"sc-npwc89-5"})(["border-spacing:0;border-top:2px solid ",";border-bottom:1px solid ",";overflow:auto;&[data-border='true'] ","{border-right:1px solid ",";border-left-color:",";border-bottom-color:",";}&[data-border='true'] ",":not(:last-child){border-right:1px solid ",";}&[data-default='true'] ","{border-bottom-color:",";}& > "," > ","{font-weight:600;align-items:center;justify-content:space-between;gap:",";padding-right:",";color:",";}"],({theme:e})=>e.colors.edge.border,({theme:e})=>e.colors.edge.border,M,({theme:e})=>e.colors.edge.border,({theme:e})=>e.colors.edge.border,({theme:e})=>e.colors.edge.border,U,({theme:e})=>e.colors.edge.border,M,({theme:e})=>e.colors.muted,M,U,({theme:e})=>e.spacing("xs"),({theme:e})=>e.spacing("xs"),({theme:e})=>e.colors.ink.secondary),Xe=C(h).withConfig({componentId:"sc-npwc89-6"})(["display:none;","{display:inline-flex;align-items:center;flex-shrink:0;}"],({theme:e})=>e.breakpoints.up("sm")),Ye=C(h).withConfig({componentId:"sc-npwc89-7"})(["cursor:col-resize;display:inline-block;width:10px;height:100%;position:absolute;right:0;top:0;transform:translateX(50%);z-index:1;touch-action:none;"]),z=C(h).withConfig({componentId:"sc-npwc89-8"})(({theme:e})=>({position:"absolute",left:0,top:"50%",transform:"translateY(-50%)",width:"var(--size)",height:"var(--size)",border:"2px solid var(--border-color)",borderRadius:e.spacing("micro"),"&:after":{content:"''",position:"absolute",display:"none"}})),le=C.input.withConfig({componentId:"sc-npwc89-9"})(["cursor:pointer;position:absolute;opacity:0;height:0;width:0;&:indeterminate ~ ",",&:checked ~ ","{background-color:var(--checked-color);border-color:var(--checked-color);}&:checked ~ ",":after{display:block;left:4px;top:0px;width:4px;height:8px;border:solid white;border-width:0 3px 3px 0;transform:rotate(45deg);}&:indeterminate ~ ",":after{display:block;left:3px;top:5px;width:9px;height:4px;background-color:white;}&:indeterminate:hover{cursor:wait;}"],z,z,z,z),se=C(h).withConfig({componentId:"sc-npwc89-10"})(({theme:e})=>({"--checked-color":e.colors.information.base,"--border-color":e.colors.edge.strong,"--size":"18px",position:"relative",minWidth:"var(--size)",minHeight:"var(--size)",width:"fit-content",cursor:"pointer",display:"inline-flex",alignItems:"center",userSelect:"none",paddingLeft:`calc(var(--size) + ${e.spacing("xs")})`})),Ke=C(h).attrs(e=>({bgColor:"surface.sunken",...e})).withConfig({componentId:"sc-npwc89-11"})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",color:e.colors.ink.primary})),Je=C(h).withConfig({componentId:"sc-npwc89-12"})(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",padding:`${e.spacing("xs")} ${e.spacing("small")}`,borderTop:`1px solid ${e.colors.muted}`,gap:e.spacing("small")})),Qe=C(h).withConfig({componentId:"sc-npwc89-13"})(({theme:e})=>({display:"inline-flex",flexDirection:"row",alignItems:"center",gap:e.spacing("xs"),flexShrink:0})),ce=C(h).withConfig({componentId:"sc-npwc89-14"})(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing("xs"),maxHeight:"240px",overflowY:"auto",minWidth:"200px",padding:e.spacing("xs")}));import{jsx as T,jsxs as Se}from"react/jsx-runtime";var Ze={select:"arrIncludesSome",range:"inNumberRange",text:"includesString"};function et(e,o){let n=B.useRef(null);return B.useCallback((...t)=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>e(...t),o)},[e,o])}l(et,"useDebounce");var Ht=l(({column:e,labels:o})=>{var a,i;let n=B.useMemo(()=>Array.from(e.getFacetedUniqueValues().entries()).sort(([c],[m])=>String(c).localeCompare(String(m))),[e,e.getFilterValue()]),t=(a=e.getFilterValue())!=null?a:[];return Se(ce,{children:[n.length===0&&T(k,{variant:"meta",text:(i=o==null?void 0:o.filterNoValues)!=null?i:"Sem valores"}),n.map(([c,m])=>{let p=String(c),f=t.includes(p);return Se(se,{as:"label",children:[T(le,{type:"checkbox",checked:f,onChange:()=>{let s=f?t.filter(S=>S!==p):[...t,p];e.setFilterValue(s.length?s:void 0)}}),T(z,{}),T(k,{variant:"meta",text:`${p} (${m})`})]},p)})]})},"SelectFilter"),At=l(({column:e})=>{var f,s;let[o,n]=(f=e.getFacetedMinMaxValues())!=null?f:[0,0],t=(s=e.getFilterValue())!=null?s:[void 0,void 0],a=et(S=>{let[w,_]=S,G=w===void 0&&_===void 0;e.setFilterValue(G?void 0:S)},200),[i,c]=B.useState(t[0]!==void 0?String(t[0]):""),[m,p]=B.useState(t[1]!==void 0?String(t[1]):"");return T(ce,{children:Se(P,{flexDirection:"row",gap:"xs",alignItems:"center",children:[T($,{type:"number",placeholder:`min (${o})`,value:i,onChange:S=>{let w=S.target.value;c(w),a([w===""?void 0:Number(w),m===""?void 0:Number(m)])}}),T(k,{variant:"meta",text:"\u2014"}),T($,{type:"number",placeholder:`max (${n})`,value:m,onChange:S=>{let w=S.target.value;p(w),a([i===""?void 0:Number(i),w===""?void 0:Number(w)])}})]})})},"RangeFilter"),Wt=l(({column:e,labels:o})=>{var c,m;let n=(c=e.getFilterValue())!=null?c:"",[t,a]=B.useState(n),i=et(p=>{e.setFilterValue(p||void 0)},200);return T(ce,{children:T($,{placeholder:(m=o==null?void 0:o.filterPlaceholder)!=null?m:"Filtrar...",value:t,onChange:p=>{let f=p.target.value;a(f),i(f)}})})},"TextFilter"),tt=l((e,o,n,t)=>{switch(e){case"select":return T(Ht,{column:o,onClose:n,labels:t});case"range":return T(At,{column:o,onClose:n,labels:t});case"text":return T(Wt,{column:o,onClose:n,labels:t})}},"filterUIForVariant");import L,{forwardRef as Ot}from"react";import{Fragment as Ut,jsx as b,jsxs as de}from"react/jsx-runtime";var ot=Ot((e,o)=>b(Ye,{...e,ref:o})),rt=l(e=>e==="asc"?Be:e==="desc"?Ue:$e,"getSortIcon"),nt=L.forwardRef(({indeterminate:e,children:o,...n},t)=>{let a=L.useRef(null),i=t||a;return L.useEffect(()=>{i.current&&(i.current.indeterminate=e!=null?e:!1)},[i,e]),de(se,{as:"label",children:[o,b(le,{type:"checkbox",ref:i,...n}),b(z,{})]})});function at(e,o){return e?{id:"expand",size:o!=null?o:48,enableSorting:!1,enableResizing:!1,header:l(()=>null,"header"),cell:l(({row:t})=>t.getCanExpand()?b(I,{icon:t.getIsExpanded()?He:Ae,onClick:t.getToggleExpandedHandler(),style:{cursor:"pointer",marginLeft:`${t.depth*16}px`}}):b("span",{style:{display:"inline-block",marginLeft:`${t.depth*16}px`}}),"cell"),meta:{selectable:!1,align:void 0}}:null}l(at,"buildExpandColumnDef");function it(e,o){return e?{id:"checkbox",size:o!=null?o:64,enableSorting:!1,enableResizing:!1,header:l(({table:t})=>b(nt,{checked:t.getIsAllRowsSelected(),indeterminate:t.getIsSomeRowsSelected(),onChange:t.getToggleAllRowsSelectedHandler(),"aria-label":Te(e)?void 0:"Select all rows",children:Te(e)?e:void 0}),"header"),cell:l(({row:t})=>{var a,i;return b(nt,{checked:t.getIsSelected(),indeterminate:(i=(a=t.getIsSomeSelected)==null?void 0:a.call(t))!=null?i:!1,onChange:t.getToggleSelectedHandler(),"aria-label":"Select row"})},"cell"),meta:{selectable:!1,align:void 0}}:null}l(it,"buildSelectableColumnDef");function $t(e,o){let n=L.useRef(null);return L.useCallback((...t)=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>e(...t),o)},[e,o])}l($t,"useDebounce");var lt=l(({globalFilter:e,setGlobalFilter:o,placeholder:n})=>{let[t,a]=L.useState(e),i=$t(c=>{o(c||"")},200);return b($,{clearable:!0,width:"250px",size:"compact",reset:()=>{a(""),i("")},value:t||"",onChange:c=>{a(c.target.value),i(c.target.value)},placeholder:n,"aria-label":n!=null?n:"Search",icon:b(I,{icon:Oe})})},"GlobalFilter"),st=l(({height:e,emptyIcon:o,emptyTitle:n="Nada foi encontrado",emptyDescription:t})=>b(Ke,{style:{height:e},children:de(P,{gap:"medium",justifyContent:"center",alignItems:"center",width:"80%",style:{height:e},children:[o,b(k,{textAlign:"center",variant:"h5",text:n}),t&&b(k,{textAlign:"center",variant:"p",text:t})]})}),"EmptyTable");function pe(e,o,n){let[t,a]=L.useState(n),i=e!==void 0,c=i?e:t,m=L.useCallback(p=>{let f=typeof p=="function"?p(c):p;i||a(f),o==null||o(f)},[i,o,c]);return[c,m]}l(pe,"useHybridState");var ct=l(({pageIndex:e,pageSize:o,pageCount:n,rowCount:t,canPreviousPage:a,canNextPage:i,pageSizeOptions:c,onPrevious:m,onNext:p,onPageSizeChange:f,labels:s})=>{var Z,ee,N,q,te;let S=t===0?0:e*o+1,w=Math.min((e+1)*o,t),_=(Z=s==null?void 0:s.showingRange)!=null?Z:((y,D,ge)=>`Mostrando ${y}-${D} de ${ge}`),G=(ee=s==null?void 0:s.perPageOption)!=null?ee:(y=>`${y} por p\xE1gina`),j=(N=s==null?void 0:s.perPageTrigger)!=null?N:(y=>`${y} / p\xE1gina`);return de(Ut,{children:[b(k,{variant:"meta",text:_(S,w,t)}),de(P,{flexDirection:"row",gap:"small",alignItems:"center",children:[c.length>1&&b(J,{position:"right",options:c.map(y=>({title:G(y),action:l(()=>f(y),"action")})),children:b(ie,{variant:"linked",size:"small",text:j(o)})}),b(ie,{variant:"linked",size:"small",disabled:!a,onClick:m,text:(q=s==null?void 0:s.previous)!=null?q:"Anterior"}),b(k,{variant:"meta",text:`${e+1} / ${Math.max(n,1)}`}),b(ie,{variant:"linked",size:"small",disabled:!i,onClick:p,text:(te=s==null?void 0:s.next)!=null?te:"Pr\xF3ximo"})]})]})},"PaginationControls");var Bt=(a=>(a.primary="primary",a.success="success",a.alert="warning",a.error="danger",a))(Bt||{}),_t=(t=>(t.left="flex-start",t.center="center",t.right="flex-end",t))(_t||{});var Q={minWidth:30,width:150,maxWidth:400};import{flexRender as ue,getCoreRowModel as dt,getExpandedRowModel as pt,getFacetedMinMaxValues as ut,getFacetedRowModel as gt,getFacetedUniqueValues as mt,getFilteredRowModel as ft,getPaginationRowModel as bt,getSortedRowModel as xt,useReactTable as Ct}from"@tanstack/react-table";import{useVirtualizer as ht}from"@tanstack/react-virtual";import{Fragment as jt,jsx as d,jsxs as V}from"react/jsx-runtime";function Gt(e,o){return e.map(n=>{var i,c,m,p,f;let t=n.accessor?String(n.accessor):void 0,a={id:(i=n.id)!=null?i:t||void 0,header:l(()=>n.Header,"header"),footer:n.Footer?s=>n.Footer({table:s.table}):void 0,enableSorting:!n.disableSortBy,enableResizing:!0,enableColumnFilter:n.disableFilters?!1:!!n.filterVariant,...n.filterVariant&&{filterFn:(c=n.filterFn)!=null?c:Ze[n.filterVariant]},size:(m=n.width)!=null?m:o.width,minSize:(p=n.minWidth)!=null?p:o.minWidth,maxSize:(f=n.maxWidth)!=null?f:o.maxWidth,meta:{align:n.align,selectable:n.selectable,filterVariant:n.filterVariant}};return t?a.accessorKey=t:a.accessorFn=()=>null,n.Cell&&(a.cell=s=>n.Cell({row:s.row,value:s.getValue()})),a})}l(Gt,"toTanstackColumns");function Gn(e){var Le;let{data:o,columns:n,onRowSelect:t,onRowClick:a,selectableColumnWidth:i,selectableColumn:c,setRowColor:m,title:p,striped:f,bordered:s,searchPlaceholder:S,hasHeader:w,hasFooter:_,hasSpacingMenu:G,inputSearchComponent:j,headerLeftComponent:Z=null,headerRightComponent:ee=null,lastRowComponent:N,height:q=400,spacing:te=0,paginated:y=!1,initialPagination:D,pagination:ge,onPaginationChange:Rt,pageSizeOptions:Fe=[10,25,50,100],getSubRows:Pe,expandedColumnWidth:ne,initialExpanded:me,expanded:wt,onExpandedChange:yt,initialColumnFilters:fe,columnFilters:Tt,onColumnFiltersChange:St,labels:ke}=e,H=!!Pe,be=F.useMemo(()=>n.some(r=>r.filterVariant&&!r.disableFilters),[n]),[Ft,xe]=F.useState(48),[Pt,kt]=F.useState([]),[ve,Ie]=F.useState(""),[Ce,vt]=F.useState({}),[he,It]=pe(ge,Rt,()=>{var r,g,u;return{pageIndex:(r=D==null?void 0:D.pageIndex)!=null?r:0,pageSize:(u=(g=D==null?void 0:D.pageSize)!=null?g:Fe[0])!=null?u:10}}),[Dt,Et]=pe(wt,yt,()=>me!=null?me:{}),[zt,Mt]=pe(Tt,St,()=>fe!=null?fe:[]),Lt=F.useMemo(()=>{let r=Gt(n,Q),g=it(c,i),u=at(H,ne!=null?ne:i),R=[];return u&&R.push(u),g&&R.push(g),[...R,...r]},[n,c,i,H,ne]),v=Ct({data:o,columns:Lt,state:{sorting:Pt,globalFilter:ve,rowSelection:Ce,...y&&{pagination:he},...H&&{expanded:Dt},...be&&{columnFilters:zt}},enableRowSelection:!!c,enableExpanding:H,...H&&{getSubRows:Pe},onSortingChange:kt,onGlobalFilterChange:Ie,onRowSelectionChange:vt,...y&&{onPaginationChange:It},...H&&{onExpandedChange:Et},...be&&{onColumnFiltersChange:Mt},getCoreRowModel:dt(),getSortedRowModel:xt(),getFilteredRowModel:ft(),...y&&{getPaginationRowModel:bt()},...H&&{getExpandedRowModel:pt()},...be&&{getFacetedRowModel:gt(),getFacetedUniqueValues:mt(),getFacetedMinMaxValues:ut()},columnResizeMode:"onChange",defaultColumn:{size:Q.width,minSize:Q.minWidth,maxSize:Q.maxWidth}}),X=v.getRowModel().rows;Ne(()=>{if(t){let r=X.filter(g=>Ce[g.id]).map(g=>g.original);t(r)}},[Ce]);let A=Ve(),Re=X.length+(N?1:0),De=F.useCallback((r,g)=>{let u=m&&m(r),R=f&&g%2===0,x=A.colors.surface.paper;return u?x=A.colors[u].light:r.getIsSelected()&&t?x=A.colors.muted:R&&(x=A.colors.surface.sunken),{backgroundColor:x}},[m,f,A,t]),oe=Ft+te,re=F.useCallback(({align:r="flex-start",cellProps:g={},header:u,hasCheckbox:R,selectable:x})=>Object.assign(g,{title:void 0,style:{height:oe,overflow:"hidden",display:"flex",alignItems:u?"flex-end":"center",justifyContent:r,paddingLeft:R?A.spacing("small"):void 0,cursor:x?"pointer":void 0}}),[oe,A]),Vt=F.useCallback(({index:r,style:g})=>{if(N&&r===Re-1)return F.cloneElement(N,{style:g});let u=X[r],R={...g,...De(u,r)};return d(M,{style:R,children:u.getVisibleCells().map(x=>{var E;let W=(E=x.column.columnDef.meta)!=null?E:{},ye=x.column.id,O;a?O=l(()=>a(u.original),"onClickAction"):t&&(O=l(()=>u.toggleSelected(),"onClickAction"));let Y=re({align:W.align,hasCheckbox:ye==="checkbox",selectable:(t||a)&&W.selectable!==!1,cellProps:W.selectable!==!1?{onClick:O}:void 0});return d(U,{...Y,style:{...Y.style,width:x.column.getSize(),flex:`${x.column.getSize()} 0 auto`},children:ue(x.column.columnDef.cell,x.getContext())},x.id)})})},[X,re,N,a,t,De,Re]),we=!!X.length,Nt=_&&we&&n.some(r=>"Footer"in r),Ee=F.useRef(null),ae=ht({count:Re,getScrollElement:l(()=>Ee.current,"getScrollElement"),estimateSize:l(()=>oe,"estimateSize"),overscan:5});F.useEffect(()=>{ae.measure()},[oe,ae]);let ze=V(qe,{ref:Ee,style:{maxHeight:q},bgColor:"baseLight","data-border":s,"data-default":!f&&!s,children:[d(je,{children:v.getFlatHeaders().map(r=>{var Y;let g=(Y=r.column.columnDef.meta)!=null?Y:{},u=r.column.getCanSort(),R=r.column.getCanResize(),x=r.column.getIsSorted(),W=!!g.filterVariant&&r.column.getCanFilter(),ye=r.column.getIsFiltered(),O=re({align:g.align,header:!0,hasCheckbox:r.column.id==="checkbox"});return V(U,{...O,style:{...O.style,width:r.getSize(),flex:`${r.getSize()} 0 auto`,cursor:u?"pointer":void 0,position:"relative"},onClick:u?r.column.getToggleSortingHandler():void 0,children:[r.isPlaceholder?null:ue(r.column.columnDef.header,r.getContext()),(W||u)&&V(Qe,{children:[W&&d("span",{role:"presentation",onClick:E=>E.stopPropagation(),children:d(J,{content:({close:E})=>tt(g.filterVariant,r.column,E,ke),children:d(I,{icon:We,color:ye?"primary.action":"ink.disabled",style:{cursor:"pointer"},role:"button",tabIndex:0,"aria-label":"Filter column"})})}),u&&d(Xe,{children:d(I,{icon:rt(x)})})]}),R&&d(ot,{onMouseDown:r.getResizeHandler(),onTouchStart:r.getResizeHandler(),onClick:E=>E.stopPropagation()})]},r.id)})}),we?d(Ge,{style:{height:ae.getTotalSize(),position:"relative",minWidth:"max-content"},children:ae.getVirtualItems().map(r=>d(h,{style:{position:"absolute",top:0,left:0,width:"100%",height:r.size,transform:`translateY(${r.start}px)`},children:Vt({index:r.index,style:{}})},r.key))}):d(st,{...e,height:q}),Nt&&d(h,{children:d(_e,{children:(Le=v.getFooterGroups()[0])==null?void 0:Le.headers.map(r=>{var R;let g=(R=r.column.columnDef.meta)!=null?R:{},u=re({align:g.align});return d(U,{...u,style:{...u.style,width:r.getSize(),flex:`${r.getSize()} 0 auto`},children:r.isPlaceholder?null:ue(r.column.columnDef.footer,r.getContext())},r.id)})})})]}),Me=y&&we&&d(Je,{children:d(ct,{pageIndex:he.pageIndex,pageSize:he.pageSize,pageCount:v.getPageCount(),rowCount:v.getFilteredRowModel().rows.length,canPreviousPage:v.getCanPreviousPage(),canNextPage:v.getCanNextPage(),pageSizeOptions:Fe,onPrevious:()=>v.previousPage(),onNext:()=>v.nextPage(),onPageSizeChange:r=>v.setPageSize(r),labels:ke})});return w?V(P,{gap:"medium",children:[V(P,{flexDirection:"row",alignItems:"center",justifyContent:"between",children:[V(P,{flexDirection:"row",gap:"medium",children:[p&&d(k,{variant:"h5",color:"primary.dark",text:p}),Z]}),V(P,{flexDirection:"row",gap:"medium",children:[j!=null?j:d(lt,{globalFilter:ve,setGlobalFilter:Ie,placeholder:S}),ee,G?d(P,{alignSelf:"center",children:d(J,{position:"right",options:[{icon:d(I,{icon:K}),title:"Layout Compacto",action:l(()=>xe(32),"action")},{icon:d(I,{icon:K}),title:"Layout Padr\xE3o",action:l(()=>xe(48),"action")},{icon:d(I,{icon:K}),title:"Layout Expandido",action:l(()=>xe(64),"action")}],children:d(I,{size:5,icon:K,color:"primary.action",style:{alignSelf:"center",cursor:"pointer"}})})}):null]})]}),ze,Me]}):V(jt,{children:[ze,Me]})}l(Gn,"DataTable");export{Bt as a,_t as b,Gn as c};
1
+ import{g as $}from"./chunk-UQVJ7IG5.esm.js";import{a as J}from"./chunk-BHRDNR3A.esm.js";import{a as Ne}from"./chunk-2FQC32AA.esm.js";import{K,X as Oe,aa as $e,ba as Ue,ca as Be,p as He,r as Ae,w as We}from"./chunk-DAT6GD4T.esm.js";import{b as I}from"./chunk-H4XR4LGF.esm.js";import{f as ie}from"./chunk-CC5NKEXF.esm.js";import{e as k}from"./chunk-J2ZPCUOE.esm.js";import{a as P}from"./chunk-UDQ3TYVZ.esm.js";import{a as h}from"./chunk-347TNROV.esm.js";import{h as Te}from"./chunk-BV6GHAF7.esm.js";import{f as Ve,g as C}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import F from"react";import B from"react";var U=C(h).withConfig({componentId:"sc-npwc89-0"})(({theme:e})=>({margin:0,padding:"0 0.5rem",minHeight:40,lineHeight:1.2,display:"flex",flexDirection:"row",alignItems:"center",color:e.colors.ink.primary,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontFamily:e.font.fontFamily.main})),M=C(h).withConfig({componentId:"sc-npwc89-1"})(["display:flex;flex-direction:row;align-items:stretch;min-width:max-content;border-bottom:1px solid transparent;border-left:1px solid transparent;"]),_e=C(M).attrs(e=>({bgColor:"muted",...e})).withConfig({componentId:"sc-npwc89-2"})([""]),Ge=C(h).withConfig({componentId:"sc-npwc89-3"})(["& ",":hover{border-bottom-color:"," !important;border-left-color:"," !important;}"],M,({theme:e})=>e.colors.edge.strong,({theme:e})=>e.colors.primary.base),je=C(M).withConfig({componentId:"sc-npwc89-4"})(["position:sticky;top:0;z-index:2;background:",";"],({theme:e})=>e.colors.surface.paper),qe=C(h).withConfig({componentId:"sc-npwc89-5"})(["border-spacing:0;border-top:2px solid ",";border-bottom:1px solid ",";overflow:auto;&[data-border='true'] ","{border-right:1px solid ",";border-left-color:",";border-bottom-color:",";}&[data-border='true'] ",":not(:last-child){border-right:1px solid ",";}&[data-default='true'] ","{border-bottom-color:",";}& > "," > ","{font-weight:600;align-items:center;justify-content:space-between;gap:",";padding-right:",";color:",";}"],({theme:e})=>e.colors.edge.border,({theme:e})=>e.colors.edge.border,M,({theme:e})=>e.colors.edge.border,({theme:e})=>e.colors.edge.border,({theme:e})=>e.colors.edge.border,U,({theme:e})=>e.colors.edge.border,M,({theme:e})=>e.colors.muted,M,U,({theme:e})=>e.spacing("xs"),({theme:e})=>e.spacing("xs"),({theme:e})=>e.colors.ink.secondary),Xe=C(h).withConfig({componentId:"sc-npwc89-6"})(["display:none;","{display:inline-flex;align-items:center;flex-shrink:0;}"],({theme:e})=>e.breakpoints.up("sm")),Ye=C(h).withConfig({componentId:"sc-npwc89-7"})(["cursor:col-resize;display:inline-block;width:10px;height:100%;position:absolute;right:0;top:0;transform:translateX(50%);z-index:1;touch-action:none;"]),z=C(h).withConfig({componentId:"sc-npwc89-8"})(({theme:e})=>({position:"absolute",left:0,top:"50%",transform:"translateY(-50%)",width:"var(--size)",height:"var(--size)",border:"2px solid var(--border-color)",borderRadius:e.spacing("micro"),"&:after":{content:"''",position:"absolute",display:"none"}})),le=C.input.withConfig({componentId:"sc-npwc89-9"})(["cursor:pointer;position:absolute;opacity:0;height:0;width:0;&:indeterminate ~ ",",&:checked ~ ","{background-color:var(--checked-color);border-color:var(--checked-color);}&:checked ~ ",":after{display:block;left:4px;top:0px;width:4px;height:8px;border:solid white;border-width:0 3px 3px 0;transform:rotate(45deg);}&:indeterminate ~ ",":after{display:block;left:3px;top:5px;width:9px;height:4px;background-color:white;}&:indeterminate:hover{cursor:wait;}"],z,z,z,z),se=C(h).withConfig({componentId:"sc-npwc89-10"})(({theme:e})=>({"--checked-color":e.colors.information.base,"--border-color":e.colors.edge.strong,"--size":"18px",position:"relative",minWidth:"var(--size)",minHeight:"var(--size)",width:"fit-content",cursor:"pointer",display:"inline-flex",alignItems:"center",userSelect:"none",paddingLeft:`calc(var(--size) + ${e.spacing("xs")})`})),Ke=C(h).attrs(e=>({bgColor:"surface.sunken",...e})).withConfig({componentId:"sc-npwc89-11"})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",color:e.colors.ink.primary})),Je=C(h).withConfig({componentId:"sc-npwc89-12"})(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",padding:`${e.spacing("xs")} ${e.spacing("small")}`,borderTop:`1px solid ${e.colors.muted}`,gap:e.spacing("small")})),Qe=C(h).withConfig({componentId:"sc-npwc89-13"})(({theme:e})=>({display:"inline-flex",flexDirection:"row",alignItems:"center",gap:e.spacing("xs"),flexShrink:0})),ce=C(h).withConfig({componentId:"sc-npwc89-14"})(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing("xs"),maxHeight:"240px",overflowY:"auto",minWidth:"200px",padding:e.spacing("xs")}));import{jsx as T,jsxs as Se}from"react/jsx-runtime";var Ze={select:"arrIncludesSome",range:"inNumberRange",text:"includesString"};function et(e,o){let n=B.useRef(null);return B.useCallback((...t)=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>e(...t),o)},[e,o])}l(et,"useDebounce");var Ht=l(({column:e,labels:o})=>{var a,i;let n=B.useMemo(()=>Array.from(e.getFacetedUniqueValues().entries()).sort(([c],[m])=>String(c).localeCompare(String(m))),[e,e.getFilterValue()]),t=(a=e.getFilterValue())!=null?a:[];return Se(ce,{children:[n.length===0&&T(k,{variant:"meta",text:(i=o==null?void 0:o.filterNoValues)!=null?i:"Sem valores"}),n.map(([c,m])=>{let p=String(c),f=t.includes(p);return Se(se,{as:"label",children:[T(le,{type:"checkbox",checked:f,onChange:()=>{let s=f?t.filter(S=>S!==p):[...t,p];e.setFilterValue(s.length?s:void 0)}}),T(z,{}),T(k,{variant:"meta",text:`${p} (${m})`})]},p)})]})},"SelectFilter"),At=l(({column:e})=>{var f,s;let[o,n]=(f=e.getFacetedMinMaxValues())!=null?f:[0,0],t=(s=e.getFilterValue())!=null?s:[void 0,void 0],a=et(S=>{let[w,_]=S,G=w===void 0&&_===void 0;e.setFilterValue(G?void 0:S)},200),[i,c]=B.useState(t[0]!==void 0?String(t[0]):""),[m,p]=B.useState(t[1]!==void 0?String(t[1]):"");return T(ce,{children:Se(P,{flexDirection:"row",gap:"xs",alignItems:"center",children:[T($,{type:"number",placeholder:`min (${o})`,value:i,onChange:S=>{let w=S.target.value;c(w),a([w===""?void 0:Number(w),m===""?void 0:Number(m)])}}),T(k,{variant:"meta",text:"\u2014"}),T($,{type:"number",placeholder:`max (${n})`,value:m,onChange:S=>{let w=S.target.value;p(w),a([i===""?void 0:Number(i),w===""?void 0:Number(w)])}})]})})},"RangeFilter"),Wt=l(({column:e,labels:o})=>{var c,m;let n=(c=e.getFilterValue())!=null?c:"",[t,a]=B.useState(n),i=et(p=>{e.setFilterValue(p||void 0)},200);return T(ce,{children:T($,{placeholder:(m=o==null?void 0:o.filterPlaceholder)!=null?m:"Filtrar...",value:t,onChange:p=>{let f=p.target.value;a(f),i(f)}})})},"TextFilter"),tt=l((e,o,n,t)=>{switch(e){case"select":return T(Ht,{column:o,onClose:n,labels:t});case"range":return T(At,{column:o,onClose:n,labels:t});case"text":return T(Wt,{column:o,onClose:n,labels:t})}},"filterUIForVariant");import L,{forwardRef as Ot}from"react";import{Fragment as Ut,jsx as b,jsxs as de}from"react/jsx-runtime";var ot=Ot((e,o)=>b(Ye,{...e,ref:o})),rt=l(e=>e==="asc"?Be:e==="desc"?Ue:$e,"getSortIcon"),nt=L.forwardRef(({indeterminate:e,children:o,...n},t)=>{let a=L.useRef(null),i=t||a;return L.useEffect(()=>{i.current&&(i.current.indeterminate=e!=null?e:!1)},[i,e]),de(se,{as:"label",children:[o,b(le,{type:"checkbox",ref:i,...n}),b(z,{})]})});function at(e,o){return e?{id:"expand",size:o!=null?o:48,enableSorting:!1,enableResizing:!1,header:l(()=>null,"header"),cell:l(({row:t})=>t.getCanExpand()?b(I,{icon:t.getIsExpanded()?He:Ae,onClick:t.getToggleExpandedHandler(),style:{cursor:"pointer",marginLeft:`${t.depth*16}px`}}):b("span",{style:{display:"inline-block",marginLeft:`${t.depth*16}px`}}),"cell"),meta:{selectable:!1,align:void 0}}:null}l(at,"buildExpandColumnDef");function it(e,o){return e?{id:"checkbox",size:o!=null?o:64,enableSorting:!1,enableResizing:!1,header:l(({table:t})=>b(nt,{checked:t.getIsAllRowsSelected(),indeterminate:t.getIsSomeRowsSelected(),onChange:t.getToggleAllRowsSelectedHandler(),"aria-label":Te(e)?void 0:"Select all rows",children:Te(e)?e:void 0}),"header"),cell:l(({row:t})=>{var a,i;return b(nt,{checked:t.getIsSelected(),indeterminate:(i=(a=t.getIsSomeSelected)==null?void 0:a.call(t))!=null?i:!1,onChange:t.getToggleSelectedHandler(),"aria-label":"Select row"})},"cell"),meta:{selectable:!1,align:void 0}}:null}l(it,"buildSelectableColumnDef");function $t(e,o){let n=L.useRef(null);return L.useCallback((...t)=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>e(...t),o)},[e,o])}l($t,"useDebounce");var lt=l(({globalFilter:e,setGlobalFilter:o,placeholder:n})=>{let[t,a]=L.useState(e),i=$t(c=>{o(c||"")},200);return b($,{clearable:!0,width:"250px",size:"compact",reset:()=>{a(""),i("")},value:t||"",onChange:c=>{a(c.target.value),i(c.target.value)},placeholder:n,"aria-label":n!=null?n:"Search",icon:b(I,{icon:Oe})})},"GlobalFilter"),st=l(({height:e,emptyIcon:o,emptyTitle:n="Nada foi encontrado",emptyDescription:t})=>b(Ke,{style:{height:e},children:de(P,{gap:"medium",justifyContent:"center",alignItems:"center",width:"80%",style:{height:e},children:[o,b(k,{textAlign:"center",variant:"h5",text:n}),t&&b(k,{textAlign:"center",variant:"p",text:t})]})}),"EmptyTable");function pe(e,o,n){let[t,a]=L.useState(n),i=e!==void 0,c=i?e:t,m=L.useCallback(p=>{let f=typeof p=="function"?p(c):p;i||a(f),o==null||o(f)},[i,o,c]);return[c,m]}l(pe,"useHybridState");var ct=l(({pageIndex:e,pageSize:o,pageCount:n,rowCount:t,canPreviousPage:a,canNextPage:i,pageSizeOptions:c,onPrevious:m,onNext:p,onPageSizeChange:f,labels:s})=>{var Z,ee,N,q,te;let S=t===0?0:e*o+1,w=Math.min((e+1)*o,t),_=(Z=s==null?void 0:s.showingRange)!=null?Z:((y,D,ge)=>`Mostrando ${y}-${D} de ${ge}`),G=(ee=s==null?void 0:s.perPageOption)!=null?ee:(y=>`${y} por p\xE1gina`),j=(N=s==null?void 0:s.perPageTrigger)!=null?N:(y=>`${y} / p\xE1gina`);return de(Ut,{children:[b(k,{variant:"meta",text:_(S,w,t)}),de(P,{flexDirection:"row",gap:"small",alignItems:"center",children:[c.length>1&&b(J,{position:"right",options:c.map(y=>({title:G(y),action:l(()=>f(y),"action")})),children:b(ie,{variant:"linked",size:"small",text:j(o)})}),b(ie,{variant:"linked",size:"small",disabled:!a,onClick:m,text:(q=s==null?void 0:s.previous)!=null?q:"Anterior"}),b(k,{variant:"meta",text:`${e+1} / ${Math.max(n,1)}`}),b(ie,{variant:"linked",size:"small",disabled:!i,onClick:p,text:(te=s==null?void 0:s.next)!=null?te:"Pr\xF3ximo"})]})]})},"PaginationControls");var Bt=(a=>(a.primary="primary",a.success="success",a.alert="warning",a.error="danger",a))(Bt||{}),_t=(t=>(t.left="flex-start",t.center="center",t.right="flex-end",t))(_t||{});var Q={minWidth:30,width:150,maxWidth:400};import{flexRender as ue,getCoreRowModel as dt,getExpandedRowModel as pt,getFacetedMinMaxValues as ut,getFacetedRowModel as gt,getFacetedUniqueValues as mt,getFilteredRowModel as ft,getPaginationRowModel as bt,getSortedRowModel as xt,useReactTable as Ct}from"@tanstack/react-table";import{useVirtualizer as ht}from"@tanstack/react-virtual";import{Fragment as jt,jsx as d,jsxs as V}from"react/jsx-runtime";function Gt(e,o){return e.map(n=>{var i,c,m,p,f;let t=n.accessor?String(n.accessor):void 0,a={id:(i=n.id)!=null?i:t||void 0,header:l(()=>n.Header,"header"),footer:n.Footer?s=>n.Footer({table:s.table}):void 0,enableSorting:!n.disableSortBy,enableResizing:!0,enableColumnFilter:n.disableFilters?!1:!!n.filterVariant,...n.filterVariant&&{filterFn:(c=n.filterFn)!=null?c:Ze[n.filterVariant]},size:(m=n.width)!=null?m:o.width,minSize:(p=n.minWidth)!=null?p:o.minWidth,maxSize:(f=n.maxWidth)!=null?f:o.maxWidth,meta:{align:n.align,selectable:n.selectable,filterVariant:n.filterVariant}};return t?a.accessorKey=t:a.accessorFn=()=>null,n.Cell&&(a.cell=s=>n.Cell({row:s.row,value:s.getValue()})),a})}l(Gt,"toTanstackColumns");function Gn(e){var Le;let{data:o,columns:n,onRowSelect:t,onRowClick:a,selectableColumnWidth:i,selectableColumn:c,setRowColor:m,title:p,striped:f,bordered:s,searchPlaceholder:S,hasHeader:w,hasFooter:_,hasSpacingMenu:G,inputSearchComponent:j,headerLeftComponent:Z=null,headerRightComponent:ee=null,lastRowComponent:N,height:q=400,spacing:te=0,paginated:y=!1,initialPagination:D,pagination:ge,onPaginationChange:Rt,pageSizeOptions:Fe=[10,25,50,100],getSubRows:Pe,expandedColumnWidth:ne,initialExpanded:me,expanded:wt,onExpandedChange:yt,initialColumnFilters:fe,columnFilters:Tt,onColumnFiltersChange:St,labels:ke}=e,H=!!Pe,be=F.useMemo(()=>n.some(r=>r.filterVariant&&!r.disableFilters),[n]),[Ft,xe]=F.useState(48),[Pt,kt]=F.useState([]),[ve,Ie]=F.useState(""),[Ce,vt]=F.useState({}),[he,It]=pe(ge,Rt,()=>{var r,g,u;return{pageIndex:(r=D==null?void 0:D.pageIndex)!=null?r:0,pageSize:(u=(g=D==null?void 0:D.pageSize)!=null?g:Fe[0])!=null?u:10}}),[Dt,Et]=pe(wt,yt,()=>me!=null?me:{}),[zt,Mt]=pe(Tt,St,()=>fe!=null?fe:[]),Lt=F.useMemo(()=>{let r=Gt(n,Q),g=it(c,i),u=at(H,ne!=null?ne:i),R=[];return u&&R.push(u),g&&R.push(g),[...R,...r]},[n,c,i,H,ne]),v=Ct({data:o,columns:Lt,state:{sorting:Pt,globalFilter:ve,rowSelection:Ce,...y&&{pagination:he},...H&&{expanded:Dt},...be&&{columnFilters:zt}},enableRowSelection:!!c,enableExpanding:H,...H&&{getSubRows:Pe},onSortingChange:kt,onGlobalFilterChange:Ie,onRowSelectionChange:vt,...y&&{onPaginationChange:It},...H&&{onExpandedChange:Et},...be&&{onColumnFiltersChange:Mt},getCoreRowModel:dt(),getSortedRowModel:xt(),getFilteredRowModel:ft(),...y&&{getPaginationRowModel:bt()},...H&&{getExpandedRowModel:pt()},...be&&{getFacetedRowModel:gt(),getFacetedUniqueValues:mt(),getFacetedMinMaxValues:ut()},columnResizeMode:"onChange",defaultColumn:{size:Q.width,minSize:Q.minWidth,maxSize:Q.maxWidth}}),X=v.getRowModel().rows;Ne(()=>{if(t){let r=X.filter(g=>Ce[g.id]).map(g=>g.original);t(r)}},[Ce]);let A=Ve(),Re=X.length+(N?1:0),De=F.useCallback((r,g)=>{let u=m&&m(r),R=f&&g%2===0,x=A.colors.surface.paper;return u?x=A.colors[u].light:r.getIsSelected()&&t?x=A.colors.muted:R&&(x=A.colors.surface.sunken),{backgroundColor:x}},[m,f,A,t]),oe=Ft+te,re=F.useCallback(({align:r="flex-start",cellProps:g={},header:u,hasCheckbox:R,selectable:x})=>Object.assign(g,{title:void 0,style:{height:oe,overflow:"hidden",display:"flex",alignItems:u?"flex-end":"center",justifyContent:r,paddingLeft:R?A.spacing("small"):void 0,cursor:x?"pointer":void 0}}),[oe,A]),Vt=F.useCallback(({index:r,style:g})=>{if(N&&r===Re-1)return F.cloneElement(N,{style:g});let u=X[r],R={...g,...De(u,r)};return d(M,{style:R,children:u.getVisibleCells().map(x=>{var E;let W=(E=x.column.columnDef.meta)!=null?E:{},ye=x.column.id,O;a?O=l(()=>a(u.original),"onClickAction"):t&&(O=l(()=>u.toggleSelected(),"onClickAction"));let Y=re({align:W.align,hasCheckbox:ye==="checkbox",selectable:(t||a)&&W.selectable!==!1,cellProps:W.selectable!==!1?{onClick:O}:void 0});return d(U,{...Y,style:{...Y.style,width:x.column.getSize(),flex:`${x.column.getSize()} 0 auto`},children:ue(x.column.columnDef.cell,x.getContext())},x.id)})})},[X,re,N,a,t,De,Re]),we=!!X.length,Nt=_&&we&&n.some(r=>"Footer"in r),Ee=F.useRef(null),ae=ht({count:Re,getScrollElement:l(()=>Ee.current,"getScrollElement"),estimateSize:l(()=>oe,"estimateSize"),overscan:5});F.useEffect(()=>{ae.measure()},[oe,ae]);let ze=V(qe,{ref:Ee,style:{maxHeight:q},bgColor:"baseLight","data-border":s,"data-default":!f&&!s,children:[d(je,{children:v.getFlatHeaders().map(r=>{var Y;let g=(Y=r.column.columnDef.meta)!=null?Y:{},u=r.column.getCanSort(),R=r.column.getCanResize(),x=r.column.getIsSorted(),W=!!g.filterVariant&&r.column.getCanFilter(),ye=r.column.getIsFiltered(),O=re({align:g.align,header:!0,hasCheckbox:r.column.id==="checkbox"});return V(U,{...O,style:{...O.style,width:r.getSize(),flex:`${r.getSize()} 0 auto`,cursor:u?"pointer":void 0,position:"relative"},onClick:u?r.column.getToggleSortingHandler():void 0,children:[r.isPlaceholder?null:ue(r.column.columnDef.header,r.getContext()),(W||u)&&V(Qe,{children:[W&&d("span",{role:"presentation",onClick:E=>E.stopPropagation(),children:d(J,{content:({close:E})=>tt(g.filterVariant,r.column,E,ke),children:d(I,{icon:We,color:ye?"primary.action":"ink.disabled",style:{cursor:"pointer"},role:"button",tabIndex:0,"aria-label":"Filter column"})})}),u&&d(Xe,{children:d(I,{icon:rt(x)})})]}),R&&d(ot,{onMouseDown:r.getResizeHandler(),onTouchStart:r.getResizeHandler(),onClick:E=>E.stopPropagation()})]},r.id)})}),we?d(Ge,{style:{height:ae.getTotalSize(),position:"relative",minWidth:"max-content"},children:ae.getVirtualItems().map(r=>d(h,{style:{position:"absolute",top:0,left:0,width:"100%",height:r.size,transform:`translateY(${r.start}px)`},children:Vt({index:r.index,style:{}})},r.key))}):d(st,{...e,height:q}),Nt&&d(h,{children:d(_e,{children:(Le=v.getFooterGroups()[0])==null?void 0:Le.headers.map(r=>{var R;let g=(R=r.column.columnDef.meta)!=null?R:{},u=re({align:g.align});return d(U,{...u,style:{...u.style,width:r.getSize(),flex:`${r.getSize()} 0 auto`},children:r.isPlaceholder?null:ue(r.column.columnDef.footer,r.getContext())},r.id)})})})]}),Me=y&&we&&d(Je,{children:d(ct,{pageIndex:he.pageIndex,pageSize:he.pageSize,pageCount:v.getPageCount(),rowCount:v.getFilteredRowModel().rows.length,canPreviousPage:v.getCanPreviousPage(),canNextPage:v.getCanNextPage(),pageSizeOptions:Fe,onPrevious:()=>v.previousPage(),onNext:()=>v.nextPage(),onPageSizeChange:r=>v.setPageSize(r),labels:ke})});return w?V(P,{gap:"medium",children:[V(P,{flexDirection:"row",alignItems:"center",justifyContent:"between",children:[V(P,{flexDirection:"row",gap:"medium",children:[p&&d(k,{variant:"h5",color:"primary.dark",text:p}),Z]}),V(P,{flexDirection:"row",gap:"medium",children:[j!=null?j:d(lt,{globalFilter:ve,setGlobalFilter:Ie,placeholder:S}),ee,G?d(P,{alignSelf:"center",children:d(J,{position:"right",options:[{icon:d(I,{icon:K}),title:"Layout Compacto",action:l(()=>xe(32),"action")},{icon:d(I,{icon:K}),title:"Layout Padr\xE3o",action:l(()=>xe(48),"action")},{icon:d(I,{icon:K}),title:"Layout Expandido",action:l(()=>xe(64),"action")}],children:d(I,{size:5,icon:K,color:"primary.action",style:{alignSelf:"center",cursor:"pointer"}})})}):null]})]}),ze,Me]}):V(jt,{children:[ze,Me]})}l(Gn,"DataTable");export{Bt as a,_t as b,Gn as c};
@@ -1 +1 @@
1
- import{Q as p}from"./chunk-DAT6GD4T.esm.js";import{b as r}from"./chunk-CTNZPJ47.esm.js";import{e as m}from"./chunk-EXHRZZ5E.esm.js";import{a as e}from"./chunk-NHE4GLQK.esm.js";import{g as n}from"./chunk-AXUWC2WH.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";var i=n(e).attrs(t=>({bgColor:"surface.sunken",...t})).withConfig({componentId:"sc-1rhi83a-0"})([""]);import{jsx as o,jsxs as l}from"react/jsx-runtime";var y=a(t=>l(i,{width:"100%",justifyContent:"center",alignItems:"center",gap:2,p:"xl",...t,children:[t.iconPropsEmpty?o(r,{...t.iconPropsEmpty}):o(r,{icon:p,size:"xl",color:"primary.dark"}),l(e,{width:"50%",children:[o(m,{variant:"h5",color:"primary",readable:5,textAlign:"center",children:t.titleEmpty?t.titleEmpty:"Nada foi encontrado"}),o(m,{variant:"p",color:"primary",readable:5,textAlign:"center",children:t.subtitleEmpty?t.subtitleEmpty:"Tente ajustar os par\xE2metros dos filtros ou tente um novo termo para a busca."})]})]}),"TableEmptyComponent");export{i as a,y as b};
1
+ import{Q as p}from"./chunk-DAT6GD4T.esm.js";import{b as r}from"./chunk-H4XR4LGF.esm.js";import{e as m}from"./chunk-J2ZPCUOE.esm.js";import{a as e}from"./chunk-UDQ3TYVZ.esm.js";import{g as n}from"./chunk-AXUWC2WH.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";var i=n(e).attrs(t=>({bgColor:"surface.sunken",...t})).withConfig({componentId:"sc-1rhi83a-0"})([""]);import{jsx as o,jsxs as l}from"react/jsx-runtime";var y=a(t=>l(i,{width:"100%",justifyContent:"center",alignItems:"center",gap:2,p:"xl",...t,children:[t.iconPropsEmpty?o(r,{...t.iconPropsEmpty}):o(r,{icon:p,size:"xl",color:"primary.dark"}),l(e,{width:"50%",children:[o(m,{variant:"h5",color:"primary",readable:5,textAlign:"center",children:t.titleEmpty?t.titleEmpty:"Nada foi encontrado"}),o(m,{variant:"p",color:"primary",readable:5,textAlign:"center",children:t.subtitleEmpty?t.subtitleEmpty:"Tente ajustar os par\xE2metros dos filtros ou tente um novo termo para a busca."})]})]}),"TableEmptyComponent");export{i as a,y as b};
@@ -1 +1 @@
1
- import{b as u}from"./chunk-IK5Z5C2R.esm.js";import{b as C}from"./chunk-BNB3KNKE.esm.js";import{b as S}from"./chunk-OXQA5WD3.esm.js";import{b as c}from"./chunk-TZQMBDGR.esm.js";import{b as y}from"./chunk-WCUEINBQ.esm.js";import{b as f}from"./chunk-QYL6LECA.esm.js";import{b as s}from"./chunk-3A7I6HM2.esm.js";import{d as p}from"./chunk-WI3WPCW3.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";var d=["cq"],h=["xs","sm","md","lg","xl"],Q=t((r,e)=>{let o={theme:e};return{...C(r)(),...f(r)(o),...c(r)(o),...S(r)(o),...y(r)(o),...p(r)(o),...u(r)(o),...s(r)(o)}},"getStyles"),j=t(r=>e=>{let{theme:o,...F}={...r,...e},{cq:n}=F;if(!n)return{};let i={};return h.forEach(m=>{let a=n[m];a&&(i[o.containerSizes.up(m)]=Q(a,o))}),i},"ContainerQueryFactory");export{d as a,j as b};
1
+ import{b as u}from"./chunk-IK5Z5C2R.esm.js";import{b as C}from"./chunk-BNB3KNKE.esm.js";import{b as S}from"./chunk-OXQA5WD3.esm.js";import{b as c}from"./chunk-TZQMBDGR.esm.js";import{b as y}from"./chunk-WCUEINBQ.esm.js";import{b as f}from"./chunk-QYL6LECA.esm.js";import{b as s}from"./chunk-3A7I6HM2.esm.js";import{e as p}from"./chunk-XTY6DXMK.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";var d=["cq"],h=["xs","sm","md","lg","xl"],Q=t((r,e)=>{let o={theme:e};return{...C(r)(),...f(r)(o),...c(r)(o),...S(r)(o),...y(r)(o),...p(r)(o),...u(r)(o),...s(r)(o)}},"getStyles"),j=t(r=>e=>{let{theme:o,...F}={...r,...e},{cq:n}=F;if(!n)return{};let i={};return h.forEach(m=>{let a=n[m];a&&(i[o.containerSizes.up(m)]=Q(a,o))}),i},"ContainerQueryFactory");export{d as a,j as b};
@@ -0,0 +1 @@
1
+ import{b as a,d as f}from"./chunk-XTY6DXMK.esm.js";import{b as n}from"./chunk-AXUWC2WH.esm.js";import{a as o}from"./chunk-GZONWSRB.esm.js";var p=o(i=>s=>{let{area:e,alignSelf:r,justifySelf:t}={...i,...s},l=r&&a("alignSelf",r,f);return n([""," "," ",""],e?`grid-area: ${e};`:"",l?`align-self: ${l};`:"",t?`justify-self: ${t};`:"")},"PlacementFactory");var g=["area","alignSelf","justifySelf"];export{p as a,g as b};
@@ -1 +1 @@
1
- import{a as w,c as E}from"./chunk-T6USFPVA.esm.js";import{a as F}from"./chunk-43YSWDK6.esm.js";import{e as N,g as k}from"./chunk-GC2ZV3CY.esm.js";import{a as T}from"./chunk-EXHRZZ5E.esm.js";import{a as v}from"./chunk-NHE4GLQK.esm.js";import{g as d}from"./chunk-AXUWC2WH.esm.js";import{a as c}from"./chunk-GZONWSRB.esm.js";import{forwardRef as H,useEffect as V,useMemo as A,useState as U}from"react";function s(e){return e.replace(/\D/g,"")}c(s,"removeNonDigits");function B(e,r="."){return s(e).replace(/\B(?=(\d{3})+(?!\d))/g,r)}c(B,"formatNumber");function b(e,r){let t=e;if(r.prefix&&t&&(t=e.replaceAll(r.prefix,"").trim()),t==="")return t;let{decimal:n,thousand:o,validate:m}=r,l=t.indexOf(n);if(l>=0){let f=t.substring(0,l),u=t.substring(l);f=B(f,o),m&&(u=`${u}00`),u=s(u).substring(0,2),t=`${f}${n}${u}`}else t=B(t),m&&(t+=`${n}00`);return t}c(b,"formatCurrency");function G(e,r=","){if(typeof e=="number")return e;try{let t=e.indexOf(r);if(t>=0){let n=s(e.substring(0,t)),o=s(e.substring(t));return+`${n}.${o}`}return Number(s(e))}catch(t){return console.log("Failed to convert string to Number"),0}}c(G,"currencyToNumber");function g(e,r){let t=e;return typeof t=="number"&&(t=t.toLocaleString("pt-BR",{style:"decimal"})),b(t,{validate:!0,...r})}c(g,"getInitialCurrencyValue");var M=d(T).withConfig({componentId:"sc-1xhba8m-0"})(["position:absolute;right:1em;align-self:center;pointer-events:none;color:var(--icon-color);z-index:100;"]),P=d(v).withConfig({componentId:"sc-1xhba8m-1"})(["","{border-bottom-left-radius:0;border-bottom-right-radius:0;}","{border-top-left-radius:0;border-top-right-radius:0;}"],N,w);import{jsx as y,jsxs as q}from"react/jsx-runtime";var W=H(({onChange:e,value:r,decimal:t=",",thousand:n=".",prefix:o="R$",suffix:m,options:l,optionValue:f,onOptionChange:u,optionsLabel:R="Percent of balance",...z},D)=>{let[x,p]=U(()=>r?g(r,{decimal:t,thousand:n,prefix:o}):"");V(()=>{p(i=>{let a=r?g(r,{decimal:t,thousand:n,prefix:o}):"";return a!==i?a:i})},[r,t,n,o]);let S=A(()=>F(i=>e==null?void 0:e(i),250),[e]),I=c((i,a)=>{var h;let $=b((h=i.target.value)!=null?h:"",{validate:a,decimal:t,thousand:n,prefix:o});p($),S($)},"handleChange"),L=c(()=>{p(""),S("")},"resetValues"),O=o?`${o} ${x}`:x,C=y(k,{...z,...m&&{icon:y(M,{fontSize:"xs",fontWeight:"bold","data-testid":"input-currency-suffix",children:m})},ref:D,reset:L,value:O,onChange:I,onBlur:i=>I(i,!0)});return l!=null&&l.length?q(P,{flexDirection:"column",width:"100%",children:[C,y(E,{size:"small",label:R,options:l,value:f!=null?f:"",onChange:i=>u==null?void 0:u(i)})]}):C});W.displayName="InputCurrency";export{b as a,G as b,g as c,W as d};
1
+ import{a as F}from"./chunk-43YSWDK6.esm.js";import{a as w,c as E}from"./chunk-R3VRFUEK.esm.js";import{e as N,g as k}from"./chunk-UQVJ7IG5.esm.js";import{a as T}from"./chunk-J2ZPCUOE.esm.js";import{a as v}from"./chunk-UDQ3TYVZ.esm.js";import{g as d}from"./chunk-AXUWC2WH.esm.js";import{a as c}from"./chunk-GZONWSRB.esm.js";import{forwardRef as H,useEffect as V,useMemo as A,useState as U}from"react";function s(e){return e.replace(/\D/g,"")}c(s,"removeNonDigits");function B(e,r="."){return s(e).replace(/\B(?=(\d{3})+(?!\d))/g,r)}c(B,"formatNumber");function b(e,r){let t=e;if(r.prefix&&t&&(t=e.replaceAll(r.prefix,"").trim()),t==="")return t;let{decimal:n,thousand:o,validate:m}=r,l=t.indexOf(n);if(l>=0){let f=t.substring(0,l),u=t.substring(l);f=B(f,o),m&&(u=`${u}00`),u=s(u).substring(0,2),t=`${f}${n}${u}`}else t=B(t),m&&(t+=`${n}00`);return t}c(b,"formatCurrency");function G(e,r=","){if(typeof e=="number")return e;try{let t=e.indexOf(r);if(t>=0){let n=s(e.substring(0,t)),o=s(e.substring(t));return+`${n}.${o}`}return Number(s(e))}catch(t){return console.log("Failed to convert string to Number"),0}}c(G,"currencyToNumber");function g(e,r){let t=e;return typeof t=="number"&&(t=t.toLocaleString("pt-BR",{style:"decimal"})),b(t,{validate:!0,...r})}c(g,"getInitialCurrencyValue");var M=d(T).withConfig({componentId:"sc-1xhba8m-0"})(["position:absolute;right:1em;align-self:center;pointer-events:none;color:var(--icon-color);z-index:100;"]),P=d(v).withConfig({componentId:"sc-1xhba8m-1"})(["","{border-bottom-left-radius:0;border-bottom-right-radius:0;}","{border-top-left-radius:0;border-top-right-radius:0;}"],N,w);import{jsx as y,jsxs as q}from"react/jsx-runtime";var W=H(({onChange:e,value:r,decimal:t=",",thousand:n=".",prefix:o="R$",suffix:m,options:l,optionValue:f,onOptionChange:u,optionsLabel:R="Percent of balance",...z},D)=>{let[x,p]=U(()=>r?g(r,{decimal:t,thousand:n,prefix:o}):"");V(()=>{p(i=>{let a=r?g(r,{decimal:t,thousand:n,prefix:o}):"";return a!==i?a:i})},[r,t,n,o]);let S=A(()=>F(i=>e==null?void 0:e(i),250),[e]),I=c((i,a)=>{var h;let $=b((h=i.target.value)!=null?h:"",{validate:a,decimal:t,thousand:n,prefix:o});p($),S($)},"handleChange"),L=c(()=>{p(""),S("")},"resetValues"),O=o?`${o} ${x}`:x,C=y(k,{...z,...m&&{icon:y(M,{fontSize:"xs",fontWeight:"bold","data-testid":"input-currency-suffix",children:m})},ref:D,reset:L,value:O,onChange:I,onBlur:i=>I(i,!0)});return l!=null&&l.length?q(P,{flexDirection:"column",width:"100%",children:[C,y(E,{size:"small",label:R,options:l,value:f!=null?f:"",onChange:i=>u==null?void 0:u(i)})]}):C});W.displayName="InputCurrency";export{b as a,G as b,g as c,W as d};
@@ -1,11 +1,11 @@
1
- import{a as i}from"./chunk-CTNZPJ47.esm.js";import{a as h}from"./chunk-NHE4GLQK.esm.js";import{c as a}from"./chunk-KKFQPSAE.esm.js";import{b as p}from"./chunk-WCUEINBQ.esm.js";import{b as c,g as d}from"./chunk-AXUWC2WH.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";var s=a("input").withConfig({componentId:"apollion-checkbox-input"})`
1
+ import{a as i}from"./chunk-H4XR4LGF.esm.js";import{a as m}from"./chunk-UDQ3TYVZ.esm.js";import{a as h}from"./chunk-TBHGVERY.esm.js";import{c as a}from"./chunk-62CVSGJD.esm.js";import{b as p}from"./chunk-WCUEINBQ.esm.js";import{b as s,g as d}from"./chunk-AXUWC2WH.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";var c=a("input").withConfig({componentId:"apollion-checkbox-input"})`
2
2
  position: absolute;
3
3
  left: 0;
4
4
  top: 0;
5
5
  margin: 0;
6
6
  opacity: 0;
7
7
  cursor: pointer;
8
- `,r=d(h).attrs(o=>({alignItems:"center",justifyContent:"center",borderRadius:"micro",borderWidth:"thin",boderStyle:"solid",borderColor:"primary",deep:-1,mr:"small",...o})).withConfig({componentId:"sc-o1c91u-0"})(["width:20px;height:20px;flex-shrink:0;transition:",";"],({theme:o})=>o.animation.transitions.short);function b(o,t,l="primary"){var e;return t==="success"?o.colors.success:t==="error"?o.colors.danger:(e=o.colors[l])!=null?e:o.colors.primary}n(b,"resolveControlPalette");function x({variant:o,$color:t,theme:l}){let e=b(l,o,t);return c(["color:",";& > ","{border:1px solid ",";}&:hover > ",",&:focus > ","{border-color:",";box-shadow:",";}& > ",":checked ~ ","{border-color:",";background-color:",";box-shadow:",";}"],e.dark,r,e.dark,r,r,e.action,l.depth("level-zero"),s,r,e.base,e.base,l.depth("level-zero"))}n(x,"checkboxVariantStyle");function u({theme:o,disabled:t}){return t?c(["color:",";& > ",":disabled{cursor:default;& ~ ","{background-color:",";border-color:",";box-shadow:none;& > ","{color:",";}}}"],o.colors.disabled.color,s,r,o.colors.disabled.fill,o.colors.disabled.fill,i,o.colors.disabled.color):null}n(u,"disabledStyle");var k=a("label").withConfig({componentId:"apollion-checkbox-container"})`
8
+ `,r=d(m).attrs(o=>({alignItems:"center",justifyContent:"center",borderRadius:"micro",borderWidth:"thin",boderStyle:"solid",borderColor:"primary",deep:-1,mr:"small",...o})).withConfig({componentId:"sc-o1c91u-0"})(["width:20px;height:20px;flex-shrink:0;transition:",";"],({theme:o})=>o.animation.transitions.short);function b(o,t,l="primary"){var e;return t==="success"?o.colors.success:t==="error"?o.colors.danger:(e=o.colors[l])!=null?e:o.colors.primary}n(b,"resolveControlPalette");function x({variant:o,$color:t,theme:l}){let e=b(l,o,t);return s(["color:",";& > ","{border:1px solid ",";}&:hover > ",",&:focus > ","{border-color:",";box-shadow:",";}& > ",":checked ~ ","{border-color:",";background-color:",";box-shadow:",";}"],e.dark,r,e.dark,r,r,e.action,l.depth("level-zero"),c,r,e.base,e.base,l.depth("level-zero"))}n(x,"checkboxVariantStyle");function y({theme:o,disabled:t}){return t?s(["color:",";& > ",":disabled{cursor:default;& ~ ","{background-color:",";border-color:",";box-shadow:none;& > ","{color:",";}}}"],o.colors.disabled.color,c,r,o.colors.disabled.fill,o.colors.disabled.fill,i,o.colors.disabled.color):null}n(y,"disabledStyle");var w=a("label").withConfig({componentId:"apollion-checkbox-container"})`
9
9
  position: relative;
10
10
  display: inline-flex;
11
11
  flex-direction: row;
@@ -20,16 +20,20 @@ import{a as i}from"./chunk-CTNZPJ47.esm.js";import{a as h}from"./chunk-NHE4GLQK.
20
20
  margin: ${({theme:o})=>o.spacing(0,"xs","xs",0)};
21
21
  transition: ${({theme:o})=>o.animation.transitions.short};
22
22
 
23
- & > ${s} ~ ${r} > ${i} {
23
+ & > ${c} ~ ${r} > ${i} {
24
24
  ${p({color:"neutral.0"})}
25
25
  opacity: 0;
26
26
  }
27
27
 
28
28
  /* Shows the check when the native input is :checked */
29
- & > ${s}:checked ~ ${r} > ${i} {
29
+ & > ${c}:checked ~ ${r} > ${i} {
30
30
  opacity: 1;
31
31
  }
32
32
 
33
33
  ${x}
34
- ${u}
35
- `;export{s as a,r as b,b as c,k as d};
34
+ ${y}
35
+
36
+ /* Grid-item placement — native \`<label>\` root: the factory emits the CSS,
37
+ the System \`styled\` withholds the keys from the DOM. */
38
+ ${h({})}
39
+ `;export{c as a,r as b,b as c,w as d};
@@ -0,0 +1 @@
1
+ import{b as t}from"./chunk-347TNROV.esm.js";import{g as o}from"./chunk-AXUWC2WH.esm.js";var e=o(t).withConfig({componentId:"sc-atg43m-0"})(["display:flex;"]);export{e as a};
@@ -0,0 +1 @@
1
+ import{c as f}from"./chunk-UACWLLHE.esm.js";import{a as s}from"./chunk-J2ZPCUOE.esm.js";import{a as p}from"./chunk-347TNROV.esm.js";import{b as d,g as l}from"./chunk-AXUWC2WH.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";var a=l.input.withConfig({componentId:"sc-truao3-0"})(["position:absolute;left:0;top:0;margin:0;z-index:1;opacity:0;"]);a.displayName="input";var r=l(p).attrs(o=>({borderRadius:"md",borderWidth:"regular",borderStyle:"solid",borderColor:"primary",deep:-1,...o})).withConfig({componentId:"sc-truao3-1"})(["--size:20px;--checked-size:calc(var(--size) * 0.5);width:var(--size);height:var(--size);flex-shrink:0;&::before{content:'';border-radius:50%;display:inline-block;width:var(--checked-size);height:var(--checked-size);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);opacity:0;}"]);function S({variant:o,$color:i,theme:t}){let e=f(t,o,i);return d(["color:",";& > ","{border:2px solid ",";&::before{background:",";}}&:hover > ",",&:focus > ","{border-color:",";}& > ",":checked ~ ","{border-color:",";box-shadow:",";}"],e.dark,r,e.dark,e.base,r,r,e.action,a,r,e.base,t.depth("level-zero"))}n(S,"inputVariantStyle");function C(o){return d(["color:",";& > ",":disabled{cursor:default;& ~ ","{background-color:",";border-color:",";&::before{background:",";}}}"],o.colors.disabled.color,a,r,o.colors.disabled.fill,o.colors.disabled.fill,o.colors.disabled.color)}n(C,"getDisabledStyle");var m=l(s).withConfig({componentId:"sc-truao3-2"})(["cursor:pointer;position:relative;display:inline-flex;flex-direction:row;align-items:center;gap:",";margin:",";"," "," & ",":checked ~ ","::before{opacity:1;}"],({theme:o})=>o.spacing("micro"),({theme:o})=>o.spacing(0,"xs","xs",0),S,({theme:o,disabled:i})=>i&&C(o),a,r);import{jsx as c,jsxs as k}from"react/jsx-runtime";var b=n(({id:o,disabled:i,label:t=null,labelProps:e,variant:u="default",color:y,area:g,alignSelf:h,justifySelf:x,...R})=>k(m,{as:"label",htmlFor:o,variant:u,$color:y,disabled:i,area:g,alignSelf:h,justifySelf:x,children:[c(a,{...R,type:"radio",id:o,disabled:i}),c(r,{}),typeof t=="string"?c(s,{fontSize:"small",color:"ink.primary",...e,children:t}):t]}),"RadioComponent");b.displayName="Radio";export{a,r as b,m as c,b as d};
@@ -1 +1 @@
1
- import{a as k}from"./chunk-43YSWDK6.esm.js";import{g as f}from"./chunk-GC2ZV3CY.esm.js";import{r as c}from"./chunk-BV6GHAF7.esm.js";import{a as o}from"./chunk-GZONWSRB.esm.js";import{useEffect as h,useMemo as I,useState as v}from"react";import{jsx as g}from"react/jsx-runtime";function i(M){let{mask:u,value:e,onChange:t,...d}=M,a=I(()=>c(u),[u]),[C,s]=v(()=>e?a(e):"");h(()=>{s(n=>{let r=e?a(e):"";return r!==n?r:n})},[e,a]);let m=I(()=>k(t!=null?t:(()=>{}),250),[t]);return g(f,{...d,reset:o(()=>{s(""),m("")},"resetValues"),value:C,onChange:o((n,r)=>{var l;let p=a((l=n.target.value)!=null?l:"");s(p),m(p)},"handleChange")})}o(i,"InputMaskComponent");i.displayName="InputMask";export{i as a};
1
+ import{a as k}from"./chunk-43YSWDK6.esm.js";import{g as f}from"./chunk-UQVJ7IG5.esm.js";import{r as c}from"./chunk-BV6GHAF7.esm.js";import{a as o}from"./chunk-GZONWSRB.esm.js";import{useEffect as h,useMemo as I,useState as v}from"react";import{jsx as g}from"react/jsx-runtime";function i(M){let{mask:u,value:e,onChange:t,...d}=M,a=I(()=>c(u),[u]),[C,s]=v(()=>e?a(e):"");h(()=>{s(n=>{let r=e?a(e):"";return r!==n?r:n})},[e,a]);let m=I(()=>k(t!=null?t:(()=>{}),250),[t]);return g(f,{...d,reset:o(()=>{s(""),m("")},"resetValues"),value:C,onChange:o((n,r)=>{var l;let p=a((l=n.target.value)!=null?l:"");s(p),m(p)},"handleChange")})}o(i,"InputMaskComponent");i.displayName="InputMask";export{i as a};
@@ -1 +1 @@
1
- import{a as s,b as P}from"./chunk-A7JDCK3C.esm.js";import{ga as I,o as v}from"./chunk-DAT6GD4T.esm.js";import{a as c,b as m}from"./chunk-CTNZPJ47.esm.js";import{a as S}from"./chunk-NHE4GLQK.esm.js";import{d as C}from"./chunk-KKFQPSAE.esm.js";import{b}from"./chunk-TZQMBDGR.esm.js";import{b as u}from"./chunk-3A7I6HM2.esm.js";import{a as x}from"./chunk-R2B57RMV.esm.js";import{j as k}from"./chunk-PXVTXO3L.esm.js";import{b as i,f as w,g as y}from"./chunk-AXUWC2WH.esm.js";import{a as p}from"./chunk-GZONWSRB.esm.js";function D(){return i(["color:var(--dark-color);border-color:var(--border-color);"," &:focus,&:hover{","}&:focus + ","{color:var(--base-color);}"],u({deep:-1}),u({deep:0}),c)}p(D,"inputVariantStyle");var R=i(["&::placeholder{color:",";}&:disabled{&::placeholder{color:var(--disabled-color);}}"],({theme:o})=>o.colors.ink.muted),H=i(["&:disabled,&:read-only{border:1px solid var(--disabled-bg);background-color:var(--disabled-bg);color:var(--disabled-color);}&:read-only{","}"],u({deep:0}));function M({iconPosition:o}){return o==="left"?i(["& ~ ",",& ~ ","{left:1em;right:unset;}"],s,c):null}p(M,"invertIconPosition");var N=i(["&:disabled ~ ","{color:var(--disabled-color);}&:disabled ~ ","{pointer-events:none;","}& ~ ","{width:intrinsic;","}& ~ ",",& ~ ","{color:var(--icon-color);z-index:100;position:absolute;align-self:center;right:1em;& > g{fill:var(--icon-color);}}"],c,s,b(()=>({bgColor:"wash.hover"})),s,b(()=>({bgColor:"wash.pressed"})),s,c),W=y(C.input).attrs(o=>({fontFamily:"main",lineHeight:"tight",bgColor:"surface.paper",borderWidth:"thin",borderStyle:"solid",px:"small",...o})).withConfig({componentId:"sc-8elel8-0"})(["-webkit-appearance:none;display:block;width:100%;outline:none;transition:",";"," ",";",";",";",";&[type='date']::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;right:0;bottom:0;width:auto;height:auto;opacity:0;}&[type='number']::-webkit-outer-spin-button,&[type='number']::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;}"],({theme:o})=>o.animation.transitions.short,D,N,M,H,R),g=y(S).withConfig({componentId:"sc-8elel8-1"})(({theme:o,variant:r})=>{let e=o.colors.primary;r==="error"?e=o.colors.danger:r==="success"&&(e=o.colors.success);let{base:t,dark:l}=e;return{display:"flex",position:"relative","--base-color":t,"--dark-color":r==="default"?o.colors.ink.primary:x(o,n=>{var a,d;return k((d=(a=n.colors[r==="error"?"danger":"success"])==null?void 0:a.dark)!=null?d:n.colors.ink.primary,n.colors.surface.paper)}),"--disabled-bg":o.colors.disabled.fill,"--disabled-color":o.colors.disabled.color,"--icon-color":r==="default"?o.colors.ink.muted:t,"--border-color":r==="default"?o.colors.edge.border:t}});g.displayName="input";import{forwardRef as E}from"react";import{jsx as f}from"react/jsx-runtime";function F({icon:o,variant:r,clearable:e,reset:t,value:l,readOnly:n}){return e&&t&&l&&!n?f(P,{p:"micro",type:"button",borderWidth:"none",variant:"linked",onClick:t,"data-testid":"input-reset-button",icon:f(m,{size:"small",color:"grayscale.0",icon:I})}):o||(r==="error"?f(m,{icon:I,"data-testid":"input-icon-error"}):r==="success"?f(m,{icon:v,"data-testid":"input-icon-success"}):null)}p(F,"getIconComponent");import{jsx as L,jsxs as V}from"react/jsx-runtime";var T=E(({value:o,variant:r="default",iconPosition:e="right",size:t="medium",...l},n)=>{let{disabled:a,width:d,style:q,...z}=l,A=w(),h=F({...l,value:o,variant:r,size:t,iconPosition:e}),B={...A.component.input.size[t],...h&&{[e==="right"?"pr":"pl"]:"xl"}};return V(g,{variant:r,width:d,flexDirection:"row",children:[L(W,{iconPosition:e,disabled:a,variant:r,...B,...z,...o!==void 0&&{value:o},ref:n}),h]})});T.displayName="Input";export{D as a,R as b,H as c,M as d,W as e,g as f,T as g};
1
+ import{a as s,b as P}from"./chunk-EK6YOJCW.esm.js";import{ga as I,o as v}from"./chunk-DAT6GD4T.esm.js";import{a as c,b as f}from"./chunk-H4XR4LGF.esm.js";import{a as C}from"./chunk-UDQ3TYVZ.esm.js";import{d as w}from"./chunk-62CVSGJD.esm.js";import{b}from"./chunk-TZQMBDGR.esm.js";import{b as u}from"./chunk-3A7I6HM2.esm.js";import{a as S}from"./chunk-R2B57RMV.esm.js";import{j as k}from"./chunk-PXVTXO3L.esm.js";import{b as i,f as x,g as y}from"./chunk-AXUWC2WH.esm.js";import{a as p}from"./chunk-GZONWSRB.esm.js";function M(){return i(["color:var(--dark-color);border-color:var(--border-color);"," &:focus,&:hover{","}&:focus + ","{color:var(--base-color);}"],u({deep:-1}),u({deep:0}),c)}p(M,"inputVariantStyle");var N=i(["&::placeholder{color:",";}&:disabled{&::placeholder{color:var(--disabled-color);}}"],({theme:o})=>o.colors.ink.muted),E=i(["&:disabled,&:read-only{border:1px solid var(--disabled-bg);background-color:var(--disabled-bg);color:var(--disabled-color);}&:read-only{","}"],u({deep:0}));function L({iconPosition:o}){return o==="left"?i(["& ~ ",",& ~ ","{left:1em;right:unset;}"],s,c):null}p(L,"invertIconPosition");var V=i(["&:disabled ~ ","{color:var(--disabled-color);}&:disabled ~ ","{pointer-events:none;","}& ~ ","{width:intrinsic;","}& ~ ",",& ~ ","{color:var(--icon-color);z-index:100;position:absolute;align-self:center;right:1em;& > g{fill:var(--icon-color);}}"],c,s,b(()=>({bgColor:"wash.hover"})),s,b(()=>({bgColor:"wash.pressed"})),s,c),W=y(w.input).attrs(o=>({fontFamily:"main",lineHeight:"tight",bgColor:"surface.paper",borderWidth:"thin",borderStyle:"solid",px:"small",...o})).withConfig({componentId:"sc-8elel8-0"})(["-webkit-appearance:none;display:block;width:100%;outline:none;transition:",";"," ",";",";",";",";&[type='date']::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;right:0;bottom:0;width:auto;height:auto;opacity:0;}&[type='number']::-webkit-outer-spin-button,&[type='number']::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;}"],({theme:o})=>o.animation.transitions.short,M,V,L,E,N),g=y(C).withConfig({componentId:"sc-8elel8-1"})(({theme:o,variant:r})=>{let e=o.colors.primary;r==="error"?e=o.colors.danger:r==="success"&&(e=o.colors.success);let{base:t,dark:l}=e;return{display:"flex",position:"relative","--base-color":t,"--dark-color":r==="default"?o.colors.ink.primary:S(o,n=>{var a,d;return k((d=(a=n.colors[r==="error"?"danger":"success"])==null?void 0:a.dark)!=null?d:n.colors.ink.primary,n.colors.surface.paper)}),"--disabled-bg":o.colors.disabled.fill,"--disabled-color":o.colors.disabled.color,"--icon-color":r==="default"?o.colors.ink.muted:t,"--border-color":r==="default"?o.colors.edge.border:t}});g.displayName="input";import{forwardRef as j}from"react";import{jsx as m}from"react/jsx-runtime";function F({icon:o,variant:r,clearable:e,reset:t,value:l,readOnly:n}){return e&&t&&l&&!n?m(P,{p:"micro",type:"button",borderWidth:"none",variant:"linked",onClick:t,"data-testid":"input-reset-button",icon:m(f,{size:"small",color:"grayscale.0",icon:I})}):o||(r==="error"?m(f,{icon:I,"data-testid":"input-icon-error"}):r==="success"?m(f,{icon:v,"data-testid":"input-icon-success"}):null)}p(F,"getIconComponent");import{jsx as q,jsxs as G}from"react/jsx-runtime";var T=j(({value:o,variant:r="default",iconPosition:e="right",size:t="medium",...l},n)=>{let{disabled:a,width:d,style:J,area:z,alignSelf:A,justifySelf:B,...D}=l,R=x(),h=F({...l,value:o,variant:r,size:t,iconPosition:e}),H={...R.component.input.size[t],...h&&{[e==="right"?"pr":"pl"]:"xl"}};return G(g,{variant:r,width:d,flexDirection:"row",area:z,alignSelf:A,justifySelf:B,children:[q(W,{iconPosition:e,disabled:a,variant:r,...H,...D,...o!==void 0&&{value:o},ref:n}),h]})});T.displayName="Input";export{M as a,N as b,E as c,L as d,W as e,g as f,T as g};
@@ -0,0 +1 @@
1
+ import{a as r}from"./chunk-347TNROV.esm.js";import{g as e}from"./chunk-AXUWC2WH.esm.js";var a=e(r).attrs(({flat:o,...t})=>({p:"medium",borderRadius:"micro",...o?{}:{bgColor:"surface.paper",deep:2},...t})).withConfig({componentId:"sc-5vfy6v-0"})(["display:flex;"]);export{a};
@@ -1 +1 @@
1
- import{a as c}from"./chunk-DRXC4B7Z.esm.js";import{a}from"./chunk-3FWZII65.esm.js";import{a as r}from"./chunk-CDRLVSLF.esm.js";import{a as C}from"./chunk-VU3NKSLB.esm.js";import{g as n}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import d from"react";var b=n(c).withConfig({componentId:"sc-g7895e-0"})([""]);import{jsx as t}from"react/jsx-runtime";var o=l(m=>{let{getSelected:p}=d.useContext(r),x=l(e=>[...e.parentNode.children].indexOf(e),"getNodeIndex"),h=l(e=>{let T=x(e.target.closest("tr"));p(T,e.target.checked)},"handleChecked");return t(b,{children:t(C,{children:t(a,{label:m.children,onChange:h})})})},"TableCheckboxCellComponent");o.displayName="TableCheckboxCell";export{b as a,o as b};
1
+ import{a as c}from"./chunk-FBHZTBNG.esm.js";import{a}from"./chunk-7BPSZCSD.esm.js";import{a as r}from"./chunk-CDRLVSLF.esm.js";import{a as C}from"./chunk-YSSFTYCU.esm.js";import{g as n}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import d from"react";var b=n(c).withConfig({componentId:"sc-g7895e-0"})([""]);import{jsx as t}from"react/jsx-runtime";var o=l(m=>{let{getSelected:p}=d.useContext(r),x=l(e=>[...e.parentNode.children].indexOf(e),"getNodeIndex"),h=l(e=>{let T=x(e.target.closest("tr"));p(T,e.target.checked)},"handleChecked");return t(b,{children:t(C,{children:t(a,{label:m.children,onChange:h})})})},"TableCheckboxCellComponent");o.displayName="TableCheckboxCell";export{b as a,o as b};
@@ -1 +1 @@
1
- import{a}from"./chunk-GZONWSRB.esm.js";var k=["flex","gap","flexDirection","flexBasis","justifyContent","alignItems","alignContent","justifyItems","placeItems","wrap","alignSelf","grow","shrink","order","justifySelf"],C={auto:"1 1 auto",fluid:"1 1 0%",initial:"0 1 auto",none:"none"},S={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",evenly:"space-evenly"},w={start:"flex-start",end:"flex-end",center:"center",baseline:"baseline",stretch:"stretch"},h={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",evenly:"space-evenly",stretch:"stretch"},p={start:"start",end:"end",center:"center",stretch:"stretch"},A={"flex-start":"start","flex-end":"end","space-between":"between","space-around":"around","space-evenly":"evenly"},o=a((e,t,l)=>{var s;if(t==null)return;let r=(s=A[t])!=null?s:t,n=l[r];return n},"resolveAlignment"),b=a(e=>{let t=o("justifyContent",e.justifyContent,S),l=o("alignItems",e.alignItems,w),r=o("alignContent",e.alignContent,h),n=o("justifyItems",e.justifyItems,p),s=o("placeItems",e.placeItems,p);return{...t&&{justifyContent:t},...l&&{alignItems:l},...r&&{alignContent:r},...n&&{justifyItems:n},...s&&{placeItems:s}}},"alignmentCss"),v={wrap:"wrap",nowrap:"nowrap",reverse:"wrap-reverse"},O={start:"flex-start",end:"flex-end",auto:"auto",center:"center",stretch:"stretch"},P=a(e=>typeof e=="string"?{first:-999,last:999}[e]:e,"flexOrderMap"),T=a(e=>({theme:t,...l})=>{let{flex:r,flexDirection:n,flexBasis:s,gap:i,justifyContent:g,alignItems:d,alignContent:u,justifyItems:m,placeItems:y,wrap:c,justifySelf:F,alignSelf:f,grow:I,shrink:j,order:x}={...e,...l};return{...i!=null?{gap:t.spacing(i)}:void 0,...r&&{flex:C[r]},...b({justifyContent:g,alignItems:d,alignContent:u,justifyItems:m,placeItems:y}),...f&&{alignSelf:o("alignSelf",f,O)},...c&&{flexWrap:v[c]},...x&&{order:P(x)},...j&&{flexShrink:1},...I&&{flexGrow:1},...n?{flexDirection:n}:{flexDirection:"column"},flexBasis:s,justifySelf:F}},"FlexFactory");export{k as a,o as b,b as c,T as d};
1
+ import{a}from"./chunk-GZONWSRB.esm.js";var k=["flex","gap","flexDirection","flexBasis","justifyContent","alignItems","alignContent","justifyItems","placeItems","wrap","alignSelf","grow","shrink","order","justifySelf"],C={auto:"1 1 auto",fluid:"1 1 0%",initial:"0 1 auto",none:"none"},S={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",evenly:"space-evenly"},w={start:"flex-start",end:"flex-end",center:"center",baseline:"baseline",stretch:"stretch"},h={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around",evenly:"space-evenly",stretch:"stretch"},p={start:"start",end:"end",center:"center",stretch:"stretch"},A={"flex-start":"start","flex-end":"end","space-between":"between","space-around":"around","space-evenly":"evenly"},o=a((e,t,l)=>{var s;if(t==null)return;let r=(s=A[t])!=null?s:t,n=l[r];return n},"resolveAlignment"),b=a(e=>{let t=o("justifyContent",e.justifyContent,S),l=o("alignItems",e.alignItems,w),r=o("alignContent",e.alignContent,h),n=o("justifyItems",e.justifyItems,p),s=o("placeItems",e.placeItems,p);return{...t&&{justifyContent:t},...l&&{alignItems:l},...r&&{alignContent:r},...n&&{justifyItems:n},...s&&{placeItems:s}}},"alignmentCss"),v={wrap:"wrap",nowrap:"nowrap",reverse:"wrap-reverse"},O={start:"flex-start",end:"flex-end",auto:"auto",center:"center",stretch:"stretch"},P=a(e=>typeof e=="string"?{first:-999,last:999}[e]:e,"flexOrderMap"),T=a(e=>({theme:t,...l})=>{let{flex:r,flexDirection:n,flexBasis:s,gap:i,justifyContent:g,alignItems:d,alignContent:u,justifyItems:m,placeItems:y,wrap:c,justifySelf:F,alignSelf:f,grow:I,shrink:j,order:x}={...e,...l};return{...i!=null?{gap:t.spacing(i)}:void 0,...r&&{flex:C[r]},...b({justifyContent:g,alignItems:d,alignContent:u,justifyItems:m,placeItems:y}),...f&&{alignSelf:o("alignSelf",f,O)},...c&&{flexWrap:v[c]},...x&&{order:P(x)},...j&&{flexShrink:1},...I&&{flexGrow:1},...n?{flexDirection:n}:{flexDirection:"column"},flexBasis:s,justifySelf:F}},"FlexFactory");export{k as a,o as b,b as c,O as d,T as e};
@@ -0,0 +1 @@
1
+ import{b as m}from"./chunk-H4XR4LGF.esm.js";import{b as c}from"./chunk-JLUNVLUS.esm.js";import{e as f}from"./chunk-J2ZPCUOE.esm.js";import{a as g}from"./chunk-347TNROV.esm.js";import{g as p}from"./chunk-AXUWC2WH.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";function h(t){return t==="extraLarge"?"xl":t==="giant"?"xxl":t}a(h,"getIconSize");function d({theme:t,size:i,$label:e}){let{fontSize:o}=t.font,n=(e==null?void 0:e.length)||0;switch(i){case"small":{let r=t.spacing("medium");return{width:r,height:r,fontSize:o.micro}}case"large":{let r=t.spacing("xl");return{width:r,height:r,fontSize:n===1?o.xxl:o.large}}case"extraLarge":{let r=t.spacing("xxl");return{width:r,height:r,fontSize:n===1?o.gargantua:o.giant}}case"giant":{let r=t.spacing("giant");return{width:r,height:r,fontSize:o.gargantua}}default:{let r=t.spacing("large");return{width:r,height:r,fontSize:n===1?o.medium:o.xs}}}}a(d,"getSizes");var u=p(g).withConfig({componentId:"sc-k7r87e-0"})(["display:flex;",""],d);import{jsx as s}from"react/jsx-runtime";function x({imgSrc:t,icon:i,size:e,label:o,alt:n}){return t?s(c,{width:"100%",height:"100%",src:t,alt:n!=null?n:"","data-testid":"avatar-image"}):i?s(m,{icon:i,size:h(e),"data-testid":"avatar-icon"}):s(f,{textTransform:"uppercase",children:o})}a(x,"getContent");var l=a(({size:t,icon:i,imgSrc:e,label:o,alt:n,...r})=>s(u,{alignItems:"center",justifyContent:"center",overflow:"hidden",borderRadius:"circular",bgColor:"surface.sunken",color:"primary.base",$label:o,size:t,...!e&&!i&&!!o&&{role:"img","aria-label":n!=null?n:o},...r,children:x({size:t,icon:i,imgSrc:e,label:o,alt:n})}),"Avatar");l.displayName="Avatar";export{l as a};
@@ -1 +1 @@
1
- import{b as u}from"./chunk-RI7KKIJD.esm.js";import{a as m}from"./chunk-EXHRZZ5E.esm.js";import{a as t}from"./chunk-NHE4GLQK.esm.js";import{a as f}from"./chunk-R2B57RMV.esm.js";import{k as c}from"./chunk-PXVTXO3L.esm.js";import{b as h,g as l}from"./chunk-AXUWC2WH.esm.js";import{a as s}from"./chunk-GZONWSRB.esm.js";var I=h(["cursor:pointer;&:hover,&:focus-within{border-color:",";box-shadow:",";transform:translateY(-2px);}@media (prefers-reduced-motion:reduce){&:hover,&:focus-within{transform:none;}}"],({theme:e})=>f(e,r=>c(r.colors.primary,"base")),({theme:e})=>e.depth("level-three")),g=l(u).withConfig({componentId:"sc-mtfzzn-0"})(["transition:",";",""],({theme:e})=>e.animation.transitions.short,({$interactive:e})=>e&&I),C=l(t).withConfig({componentId:"sc-mtfzzn-1"})(["margin:",";overflow:hidden;border-top-left-radius:inherit;border-top-right-radius:inherit;"],({theme:e,$pad:r})=>{let o=`calc(${e.spacing(r)} * -1)`;return`${o} ${o} 0`});import{jsx as a,jsxs as y}from"react/jsx-runtime";var B=s(e=>{let r=[],o=[];return e.media&&(r.push("media"),o.push("auto")),e.title&&(r.push("title"),o.push("auto")),r.push("content"),o.push(e.action?"1fr":"auto"),e.action&&(r.push("action"),o.push("auto")),{columns:"1fr",rows:o.join(" "),areas:r.map(i=>`"${i}"`).join(" ")}},"cardTemplate"),x=s(({media:e,title:r,description:o,subtitle:i,actionComponent:n,children:b,interactive:p=!1,medias:S,p:d="large",...w})=>{let v=typeof r=="string"?a(m,{as:"h4",fontSize:"small",fontWeight:"bold",lineHeight:"regular",color:"ink.primary",children:r}):r,z=typeof o=="string"?a(m,{as:"p",fontSize:"micro",lineHeight:"wild",color:"ink.secondary",children:o}):o,F=B({media:!!e,title:!!r,action:!!n});return y(g,{borderRadius:"md",borderWidth:"thin",borderColor:"edge.hairline",bgColor:"surface.paper",overflow:p?"visible":"hidden",p:d,medias:{...F,gap:"large",...S},$interactive:p,containment:"inline-size",...w,children:[e&&a(C,{area:"media",$pad:d,children:e}),r&&a(t,{area:"title",children:v}),y(t,{area:"content",gap:"xs",children:[z,i,b]}),n&&a(t,{area:"action",children:n})]})},"CardComponent");x.displayName="Card";export{x as a};
1
+ import{b as u}from"./chunk-OEEVC5Y2.esm.js";import{a as m}from"./chunk-J2ZPCUOE.esm.js";import{a as t}from"./chunk-UDQ3TYVZ.esm.js";import{a as f}from"./chunk-R2B57RMV.esm.js";import{k as c}from"./chunk-PXVTXO3L.esm.js";import{b as h,g as l}from"./chunk-AXUWC2WH.esm.js";import{a as s}from"./chunk-GZONWSRB.esm.js";var I=h(["cursor:pointer;&:hover,&:focus-within{border-color:",";box-shadow:",";transform:translateY(-2px);}@media (prefers-reduced-motion:reduce){&:hover,&:focus-within{transform:none;}}"],({theme:e})=>f(e,r=>c(r.colors.primary,"base")),({theme:e})=>e.depth("level-three")),g=l(u).withConfig({componentId:"sc-mtfzzn-0"})(["transition:",";",""],({theme:e})=>e.animation.transitions.short,({$interactive:e})=>e&&I),C=l(t).withConfig({componentId:"sc-mtfzzn-1"})(["margin:",";overflow:hidden;border-top-left-radius:inherit;border-top-right-radius:inherit;"],({theme:e,$pad:r})=>{let o=`calc(${e.spacing(r)} * -1)`;return`${o} ${o} 0`});import{jsx as a,jsxs as y}from"react/jsx-runtime";var B=s(e=>{let r=[],o=[];return e.media&&(r.push("media"),o.push("auto")),e.title&&(r.push("title"),o.push("auto")),r.push("content"),o.push(e.action?"1fr":"auto"),e.action&&(r.push("action"),o.push("auto")),{columns:"1fr",rows:o.join(" "),areas:r.map(i=>`"${i}"`).join(" ")}},"cardTemplate"),x=s(({media:e,title:r,description:o,subtitle:i,actionComponent:n,children:b,interactive:p=!1,medias:S,p:d="large",...w})=>{let v=typeof r=="string"?a(m,{as:"h4",fontSize:"small",fontWeight:"bold",lineHeight:"regular",color:"ink.primary",children:r}):r,z=typeof o=="string"?a(m,{as:"p",fontSize:"micro",lineHeight:"wild",color:"ink.secondary",children:o}):o,F=B({media:!!e,title:!!r,action:!!n});return y(g,{borderRadius:"md",borderWidth:"thin",borderColor:"edge.hairline",bgColor:"surface.paper",overflow:p?"visible":"hidden",p:d,medias:{...F,gap:"large",...S},$interactive:p,containment:"inline-size",...w,children:[e&&a(C,{area:"media",$pad:d,children:e}),r&&a(t,{area:"title",children:v}),y(t,{area:"content",gap:"xs",children:[z,i,b]}),n&&a(t,{area:"action",children:n})]})},"CardComponent");x.displayName="Card";export{x as a};
@@ -1 +1 @@
1
- import{e as t}from"./chunk-EXHRZZ5E.esm.js";import{b as c}from"./chunk-A77HKHNQ.esm.js";import{a as i}from"./chunk-NHE4GLQK.esm.js";import{a as f}from"./chunk-GZONWSRB.esm.js";import{forwardRef as L,useMemo as T}from"react";import{jsx as r,jsxs as a}from"react/jsx-runtime";var y=L(({title:m,contents:d,direction:p="row",itemProps:x,dividers:h=!1,gap:n,...u},w)=>{let l=T(()=>d.map(e=>{var o;return{...e,id:(o=e.id)!=null?o:c()}}),[d]),s=p==="row",g=f(e=>h&&e<l.length-1?{borderPosition:"bottom",borderWidth:"thin",borderColor:"edge.strong"}:void 0,"dividerProps");return a(i,{ref:w,flexDirection:"column",gap:"small",width:"100%",...u,children:[m&&r(t,{fontWeight:"bold",lineHeight:"regular",children:m}),r(i,{as:"dl",flexDirection:"column",gap:"micro",width:"100%",m:"zero",children:l.map(({id:e,key:o,value:D},b)=>a(i,{as:"div",width:"100%",flexDirection:s?"row":"column",justifyContent:s?"between":void 0,gap:n!=null?n:s?"medium":"micro",...g(b),...x,children:[r(t,{as:"dt",fontSize:"xs",lineHeight:"tight",color:"ink.primary",children:o}),r(t,{as:"dd",fontSize:"xs",lineHeight:"tight",children:D})]},e))})]})});y.displayName="DescriptionList";export{y as a};
1
+ import{e as t}from"./chunk-J2ZPCUOE.esm.js";import{b as c}from"./chunk-4TQV5FFJ.esm.js";import{a as i}from"./chunk-UDQ3TYVZ.esm.js";import{a as f}from"./chunk-GZONWSRB.esm.js";import{forwardRef as L,useMemo as T}from"react";import{jsx as r,jsxs as a}from"react/jsx-runtime";var y=L(({title:m,contents:d,direction:p="row",itemProps:x,dividers:h=!1,gap:n,...u},w)=>{let l=T(()=>d.map(e=>{var o;return{...e,id:(o=e.id)!=null?o:c()}}),[d]),s=p==="row",g=f(e=>h&&e<l.length-1?{borderPosition:"bottom",borderWidth:"thin",borderColor:"edge.strong"}:void 0,"dividerProps");return a(i,{ref:w,flexDirection:"column",gap:"small",width:"100%",...u,children:[m&&r(t,{fontWeight:"bold",lineHeight:"regular",children:m}),r(i,{as:"dl",flexDirection:"column",gap:"micro",width:"100%",m:"zero",children:l.map(({id:e,key:o,value:D},b)=>a(i,{as:"div",width:"100%",flexDirection:s?"row":"column",justifyContent:s?"between":void 0,gap:n!=null?n:s?"medium":"micro",...g(b),...x,children:[r(t,{as:"dt",fontSize:"xs",lineHeight:"tight",color:"ink.primary",children:o}),r(t,{as:"dd",fontSize:"xs",lineHeight:"tight",children:D})]},e))})]})});y.displayName="DescriptionList";export{y as a};
@@ -1 +1 @@
1
- import{g as o}from"./chunk-GM3IRR2E.esm.js";import{a as e}from"./chunk-NHE4GLQK.esm.js";import{forwardRef as u}from"react";import{jsx as n,jsxs as i}from"react/jsx-runtime";var f=u(({loading:r,opener:l=null,closer:m=null,content:s,contentGap:p="xs",children:x,loadingComponent:t,...c},a)=>i(e,{flexDirection:"row",justifyContent:"center",alignItems:"center",...c,ref:a,children:[i(e,{flexDirection:"row",flex:"fluid",alignItems:"center",gap:p,isHidden:r,children:[l,n(e,{flex:"fluid",minWidth:0,children:x||s}),m]}),r&&(t!=null?t:n(o,{"data-testid":"content-spinner",color:"gray.0",position:"absolute"}))]}));f.displayName="Content";export{f as a};
1
+ import{g as o}from"./chunk-ZQ5JOSGH.esm.js";import{a as e}from"./chunk-UDQ3TYVZ.esm.js";import{forwardRef as u}from"react";import{jsx as n,jsxs as i}from"react/jsx-runtime";var f=u(({loading:r,opener:l=null,closer:m=null,content:s,contentGap:p="xs",children:x,loadingComponent:t,...c},a)=>i(e,{flexDirection:"row",justifyContent:"center",alignItems:"center",...c,ref:a,children:[i(e,{flexDirection:"row",flex:"fluid",alignItems:"center",gap:p,isHidden:r,children:[l,n(e,{flex:"fluid",minWidth:0,children:x||s}),m]}),r&&(t!=null?t:n(o,{"data-testid":"content-spinner",color:"gray.0",position:"absolute"}))]}));f.displayName="Content";export{f as a};
@@ -1 +1 @@
1
- import{e as g}from"./chunk-VXAPSA5T.esm.js";import{a as k}from"./chunk-EXHRZZ5E.esm.js";import{a}from"./chunk-NHE4GLQK.esm.js";import{a as I}from"./chunk-R2B57RMV.esm.js";import{k as v}from"./chunk-PXVTXO3L.esm.js";import{g as d}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import{forwardRef as F,useId as L,useMemo as K,useRef as P}from"react";var B=d(a).withConfig({componentId:"sc-1hkckjr-0"})(["border-bottom:1px solid ",";& > ","{transform:translateY(1px);}> ","{overflow-x:scroll;overflow-y:hidden;&::-webkit-scrollbar{display:none;}}","{> ","{overflow-x:visible;overflow-y:visible;}}"],({theme:t})=>t.colors.edge.hairline,a,a,({theme:t})=>t.breakpoints.up("sm"),a),S=d(g).attrs(t=>{var e,n;return{borderRadius:(e=t.borderRadius)!=null?e:"straight",borderWidth:(n=t.borderWidth)!=null?n:"none"}}).withConfig({componentId:"sc-1hkckjr-1"})(["flex-shrink:0;position:relative;z-index:1;touch-action:manipulation;-webkit-tap-highlight-color:transparent;&::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:1px;background:",";transition:",";}&&&,&&&:focus,&&&:active,&&&:hover{box-shadow:none;text-decoration:none;}"],({isActive:t,theme:e,color:n})=>t?I(e,m=>v(m.colors[n],"base")):"transparent",({theme:t})=>t.animation.transitions.short);import{jsx as f,jsxs as j}from"react/jsx-runtime";function $({isActive:t,tabTitle:e,color:n="primary",buttonProps:m}){return f(S,{as:"button",variant:"linked",isActive:t,color:n,...m,children:f(k,{fontWeight:"bold",lineHeight:"tight",children:e})})}l($,"TabButton");var W=F(({selectedIndex:t=0,onChange:e,tabs:n,tabHeaderProps:m,tabContentProps:H,...D},R)=>{var w;let y=L(),b=K(()=>n.map((o,i)=>({...o,id:`${y}-${i}`})),[n,y]),x=P(null),A=l(o=>t===o,"isCurrentIndex"),T=l(o=>`tab-${o}`,"tabId"),h=l(o=>`tabpanel-${o}`,"panelId"),s=(w=b[t])!=null?w:b[0],E=l(o=>{var r,p;e==null||e(o);let i=(r=x.current)==null?void 0:r.querySelectorAll('[role="tab"]');(p=i==null?void 0:i[o])==null||p.focus()},"selectTab");return j(a,{...D,ref:R,children:[f(B,{...m,children:f(a,{flexDirection:"row",width:"100%",gap:"medium",pageShell:!0,position:"relative",alignItems:"end",role:"tablist",onKeyDown:l(o=>{let i=b.length-1,r=null;o.key==="ArrowRight"?r=t>=i?0:t+1:o.key==="ArrowLeft"?r=t<=0?i:t-1:o.key==="Home"?r=0:o.key==="End"&&(r=i),r!==null&&(o.preventDefault(),E(r))},"handleKeyDown"),ref:x,children:b.map(({id:o,buttonProps:i,handleClick:r,...p},c)=>{let u=A(c);return f($,{isActive:u,...p,buttonProps:{...i,id:T(o),role:"tab","aria-selected":u,"aria-controls":h(o),tabIndex:u?0:-1,onClick:l(M=>{c!==t&&(r==null||r(c,M),e==null||e(c))},"onClick")}},o)})})}),f(a,{flex:"fluid",pageShell:!0,width:"100%",role:"tabpanel",id:s?h(s.id):void 0,"aria-labelledby":s?T(s.id):void 0,...H,children:s==null?void 0:s.content})]})});W.displayName="Tabs";export{B as a,S as b,$ as c,W as d};
1
+ import{e as g}from"./chunk-CC5NKEXF.esm.js";import{a as k}from"./chunk-J2ZPCUOE.esm.js";import{a}from"./chunk-UDQ3TYVZ.esm.js";import{a as I}from"./chunk-R2B57RMV.esm.js";import{k as v}from"./chunk-PXVTXO3L.esm.js";import{g as d}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import{forwardRef as F,useId as L,useMemo as K,useRef as P}from"react";var B=d(a).withConfig({componentId:"sc-1hkckjr-0"})(["border-bottom:1px solid ",";& > ","{transform:translateY(1px);}> ","{overflow-x:scroll;overflow-y:hidden;&::-webkit-scrollbar{display:none;}}","{> ","{overflow-x:visible;overflow-y:visible;}}"],({theme:t})=>t.colors.edge.hairline,a,a,({theme:t})=>t.breakpoints.up("sm"),a),S=d(g).attrs(t=>{var e,n;return{borderRadius:(e=t.borderRadius)!=null?e:"straight",borderWidth:(n=t.borderWidth)!=null?n:"none"}}).withConfig({componentId:"sc-1hkckjr-1"})(["flex-shrink:0;position:relative;z-index:1;touch-action:manipulation;-webkit-tap-highlight-color:transparent;&::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:1px;background:",";transition:",";}&&&,&&&:focus,&&&:active,&&&:hover{box-shadow:none;text-decoration:none;}"],({isActive:t,theme:e,color:n})=>t?I(e,m=>v(m.colors[n],"base")):"transparent",({theme:t})=>t.animation.transitions.short);import{jsx as f,jsxs as j}from"react/jsx-runtime";function $({isActive:t,tabTitle:e,color:n="primary",buttonProps:m}){return f(S,{as:"button",variant:"linked",isActive:t,color:n,...m,children:f(k,{fontWeight:"bold",lineHeight:"tight",children:e})})}l($,"TabButton");var W=F(({selectedIndex:t=0,onChange:e,tabs:n,tabHeaderProps:m,tabContentProps:H,...D},R)=>{var w;let y=L(),b=K(()=>n.map((o,i)=>({...o,id:`${y}-${i}`})),[n,y]),x=P(null),A=l(o=>t===o,"isCurrentIndex"),T=l(o=>`tab-${o}`,"tabId"),h=l(o=>`tabpanel-${o}`,"panelId"),s=(w=b[t])!=null?w:b[0],E=l(o=>{var r,p;e==null||e(o);let i=(r=x.current)==null?void 0:r.querySelectorAll('[role="tab"]');(p=i==null?void 0:i[o])==null||p.focus()},"selectTab");return j(a,{...D,ref:R,children:[f(B,{...m,children:f(a,{flexDirection:"row",width:"100%",gap:"medium",pageShell:!0,position:"relative",alignItems:"end",role:"tablist",onKeyDown:l(o=>{let i=b.length-1,r=null;o.key==="ArrowRight"?r=t>=i?0:t+1:o.key==="ArrowLeft"?r=t<=0?i:t-1:o.key==="Home"?r=0:o.key==="End"&&(r=i),r!==null&&(o.preventDefault(),E(r))},"handleKeyDown"),ref:x,children:b.map(({id:o,buttonProps:i,handleClick:r,...p},c)=>{let u=A(c);return f($,{isActive:u,...p,buttonProps:{...i,id:T(o),role:"tab","aria-selected":u,"aria-controls":h(o),tabIndex:u?0:-1,onClick:l(M=>{c!==t&&(r==null||r(c,M),e==null||e(c))},"onClick")}},o)})})}),f(a,{flex:"fluid",pageShell:!0,width:"100%",role:"tabpanel",id:s?h(s.id):void 0,"aria-labelledby":s?T(s.id):void 0,...H,children:s==null?void 0:s.content})]})});W.displayName="Tabs";export{B as a,S as b,$ as c,W as d};