@apollion-dsi/core 7.0.0 → 7.2.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 (225) 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-A77HKHNQ.esm.js → chunk-4TQV5FFJ.esm.js} +1 -1
  9. package/lib/chunks/{chunk-QAK32AY3.esm.js → chunk-57RF3T2U.esm.js} +1 -1
  10. package/lib/chunks/{chunk-X64PGKAO.esm.js → chunk-5ILT45RQ.esm.js} +1 -1
  11. package/lib/chunks/{chunk-KKFQPSAE.esm.js → chunk-62CVSGJD.esm.js} +1 -1
  12. package/lib/chunks/chunk-7BPSZCSD.esm.js +1 -0
  13. package/lib/chunks/{chunk-KBBFH5LX.esm.js → chunk-7PFH2RKV.esm.js} +1 -1
  14. package/lib/chunks/{chunk-CB7EKQYI.esm.js → chunk-AM56FZLE.esm.js} +1 -1
  15. package/lib/chunks/{chunk-7HRVZJBD.esm.js → chunk-BHRDNR3A.esm.js} +1 -1
  16. package/lib/chunks/{chunk-VXAPSA5T.esm.js → chunk-CC5NKEXF.esm.js} +1 -1
  17. package/lib/chunks/chunk-CK3WBMQQ.esm.js +1 -0
  18. package/lib/chunks/chunk-CNJA3S6G.esm.js +1 -0
  19. package/lib/chunks/{chunk-FJHDGSZE.esm.js → chunk-CTFEQBY7.esm.js} +1 -1
  20. package/lib/chunks/{chunk-OQWC47RM.esm.js → chunk-CWSD3AXD.esm.js} +1 -1
  21. package/lib/chunks/{chunk-YW2TWFDF.esm.js → chunk-DKLZWHQO.esm.js} +1 -1
  22. package/lib/chunks/{chunk-VAA7V65K.esm.js → chunk-EFFENLBC.esm.js} +1 -1
  23. package/lib/chunks/{chunk-A7JDCK3C.esm.js → chunk-EK6YOJCW.esm.js} +1 -1
  24. package/lib/chunks/{chunk-4RAZZLLG.esm.js → chunk-ET2EP4QA.esm.js} +11 -7
  25. package/lib/chunks/chunk-ETEH25BP.esm.js +1 -0
  26. package/lib/chunks/{chunk-DRXC4B7Z.esm.js → chunk-FBHZTBNG.esm.js} +1 -1
  27. package/lib/chunks/chunk-GC5QKJHS.esm.js +26 -0
  28. package/lib/chunks/{chunk-DP5DDF7U.esm.js → chunk-GHDDFAEP.esm.js} +1 -1
  29. package/lib/chunks/chunk-GWC4QADH.esm.js +1 -0
  30. package/lib/chunks/{chunk-CTNZPJ47.esm.js → chunk-H4XR4LGF.esm.js} +1 -1
  31. package/lib/chunks/chunk-H7ADZSZ7.esm.js +1 -0
  32. package/lib/chunks/{chunk-DGQ46IKV.esm.js → chunk-HD42Q2PS.esm.js} +1 -1
  33. package/lib/chunks/chunk-HGOJTQ3L.esm.js +4 -0
  34. package/lib/chunks/chunk-HKOM2JMK.esm.js +1 -0
  35. package/lib/chunks/chunk-IQWHAMQB.esm.js +48 -0
  36. package/lib/chunks/{chunk-EXHRZZ5E.esm.js → chunk-J2ZPCUOE.esm.js} +1 -1
  37. package/lib/chunks/chunk-JLUNVLUS.esm.js +1 -0
  38. package/lib/chunks/{chunk-FH54V56Y.esm.js → chunk-JY6IWPBO.esm.js} +1 -1
  39. package/lib/chunks/{chunk-SMAAEIJR.esm.js → chunk-KU2OQ3LP.esm.js} +1 -1
  40. package/lib/chunks/chunk-LPIWPCM4.esm.js +1 -0
  41. package/lib/chunks/{chunk-LCIO2E2K.esm.js → chunk-MBQGF5IM.esm.js} +1 -1
  42. package/lib/chunks/chunk-MGWZZQPO.esm.js +1 -0
  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-NDMZLKX7.esm.js → chunk-RNAHUZE7.esm.js} +1 -1
  53. package/lib/chunks/{chunk-OHVMP5B7.esm.js → chunk-RZLOZ3NW.esm.js} +1 -1
  54. package/lib/chunks/chunk-TBHGVERY.esm.js +1 -0
  55. package/lib/chunks/{chunk-FNYWD4YI.esm.js → chunk-TBWTTUID.esm.js} +1 -1
  56. package/lib/chunks/{chunk-W37MIT56.esm.js → chunk-UACWLLHE.esm.js} +10 -6
  57. package/lib/chunks/chunk-UDQ3TYVZ.esm.js +1 -0
  58. package/lib/chunks/chunk-ULRUO4J4.esm.js +1 -0
  59. package/lib/chunks/{chunk-MJK3VHIO.esm.js → chunk-UNYBUDKE.esm.js} +1 -1
  60. package/lib/chunks/{chunk-GC2ZV3CY.esm.js → chunk-UQVJ7IG5.esm.js} +1 -1
  61. package/lib/chunks/chunk-VPRTYKGB.esm.js +39 -0
  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/DataTable.filters.d.ts +5 -5
  88. package/lib/dataDisplay/DataTable/DataTable.interface.d.ts +25 -1
  89. package/lib/dataDisplay/DataTable/index.esm.js +1 -1
  90. package/lib/dataDisplay/DescriptionList/index.esm.js +1 -1
  91. package/lib/dataDisplay/Meter/Meter.interface.d.ts +2 -1
  92. package/lib/dataDisplay/Meter/index.esm.js +1 -1
  93. package/lib/dataDisplay/Steps/index.esm.js +1 -1
  94. package/lib/dataDisplay/Table/Table/Table.interface.d.ts +24 -0
  95. package/lib/dataDisplay/Table/Table/index.esm.js +1 -1
  96. package/lib/dataDisplay/Table/TableCell/index.esm.js +1 -1
  97. package/lib/dataDisplay/Table/TableCheckboxCell/index.esm.js +1 -1
  98. package/lib/dataDisplay/Table/TableEmpty/index.esm.js +1 -1
  99. package/lib/dataDisplay/Table/TableFooter/index.esm.js +1 -1
  100. package/lib/dataDisplay/Table/TableHeaderCell/index.esm.js +1 -1
  101. package/lib/dataDisplay/Table/TableHeaderCheckboxCell/index.esm.js +1 -1
  102. package/lib/dataDisplay/Table/TablePagination/TablePagination.d.ts +7 -7
  103. package/lib/dataDisplay/Table/TablePagination/TablePagination.interface.d.ts +44 -1
  104. package/lib/dataDisplay/Table/TablePagination/index.esm.js +1 -1
  105. package/lib/dataDisplay/Table/index.esm.js +1 -1
  106. package/lib/dataDisplay/Tabs/index.esm.js +1 -1
  107. package/lib/dataDisplay/index.esm.js +1 -1
  108. package/lib/elements/Avatar/Avatar.style.d.ts +6 -38
  109. package/lib/elements/Avatar/index.esm.js +1 -1
  110. package/lib/elements/Button/index.esm.js +1 -1
  111. package/lib/elements/Divider/Divider.style.d.ts +7 -38
  112. package/lib/elements/Divider/index.esm.js +1 -1
  113. package/lib/elements/Dropdown/index.esm.js +1 -1
  114. package/lib/elements/Icon/index.esm.js +1 -1
  115. package/lib/elements/IconButton/index.esm.js +1 -1
  116. package/lib/elements/IconText/IconText.style.d.ts +7 -39
  117. package/lib/elements/IconText/index.esm.js +1 -1
  118. package/lib/elements/Image/Image.interface.d.ts +2 -1
  119. package/lib/elements/Image/index.esm.js +1 -1
  120. package/lib/elements/Label/index.esm.js +1 -1
  121. package/lib/elements/Link/index.esm.js +1 -1
  122. package/lib/elements/List/List.style.d.ts +2 -34
  123. package/lib/elements/List/index.esm.js +1 -1
  124. package/lib/elements/Modal/Modal.style.d.ts +6 -69
  125. package/lib/elements/Modal/index.esm.js +1 -1
  126. package/lib/elements/Popover/Popover.style.d.ts +13 -0
  127. package/lib/elements/Popover/index.esm.js +1 -1
  128. package/lib/elements/ProgressBar/ProgressBar.interface.d.ts +2 -1
  129. package/lib/elements/ProgressBar/index.esm.js +1 -1
  130. package/lib/elements/Sheet/index.esm.js +1 -1
  131. package/lib/elements/Spinner/index.esm.js +1 -1
  132. package/lib/elements/Svg/Svg.interface.d.ts +2 -1
  133. package/lib/elements/Svg/Svg.style.d.ts +1 -1
  134. package/lib/elements/Svg/index.esm.js +1 -1
  135. package/lib/elements/Text/index.esm.js +1 -1
  136. package/lib/elements/Tooltip/index.esm.js +1 -1
  137. package/lib/elements/index.esm.js +1 -1
  138. package/lib/factory/ContainerQueryFactory/index.esm.js +1 -1
  139. package/lib/factory/FlexFactory/FlexFactory.d.ts +3 -1
  140. package/lib/factory/FlexFactory/index.esm.js +1 -1
  141. package/lib/factory/PlacementFactory/PlacementFactory.d.ts +25 -0
  142. package/lib/factory/PlacementFactory/PlacementFactory.interface.d.ts +30 -0
  143. package/lib/factory/PlacementFactory/index.d.ts +2 -0
  144. package/lib/factory/PlacementFactory/index.esm.js +1 -0
  145. package/lib/factory/ResponsiveFactory/index.esm.js +1 -1
  146. package/lib/factory/System/index.esm.js +1 -1
  147. package/lib/factory/ViewportMediaFactory/index.esm.js +1 -1
  148. package/lib/factory/index.d.ts +1 -0
  149. package/lib/factory/index.esm.js +1 -1
  150. package/lib/form/Checkbox/Checkbox.d.ts +1 -1
  151. package/lib/form/Checkbox/Checkbox.interface.d.ts +2 -1
  152. package/lib/form/Checkbox/Checkbox.style.d.ts +4 -3
  153. package/lib/form/Checkbox/index.esm.js +1 -1
  154. package/lib/form/Field/Field.interface.d.ts +2 -2
  155. package/lib/form/Field/index.esm.js +1 -1
  156. package/lib/form/FieldGroup/index.esm.js +1 -1
  157. package/lib/form/Form/Form.interface.d.ts +2 -1
  158. package/lib/form/Form/index.esm.js +1 -1
  159. package/lib/form/Input/Input.interface.d.ts +2 -2
  160. package/lib/form/Input/Input.style.d.ts +2 -2
  161. package/lib/form/Input/index.esm.js +1 -1
  162. package/lib/form/InputCurrency/index.esm.js +1 -1
  163. package/lib/form/InputDate/index.esm.js +1 -1
  164. package/lib/form/InputMask/index.esm.js +1 -1
  165. package/lib/form/InputRange/InputRange.d.ts +1 -1
  166. package/lib/form/InputRange/InputRange.interface.d.ts +2 -1
  167. package/lib/form/InputRange/index.esm.js +1 -1
  168. package/lib/form/InputSelect/index.esm.js +1 -1
  169. package/lib/form/Option/index.esm.js +1 -1
  170. package/lib/form/Radio/Radio.d.ts +1 -1
  171. package/lib/form/Radio/Radio.interface.d.ts +2 -1
  172. package/lib/form/Radio/index.esm.js +1 -1
  173. package/lib/form/Select/Select.interface.d.ts +2 -1
  174. package/lib/form/Select/Select.style.d.ts +2 -1
  175. package/lib/form/Select/index.esm.js +1 -1
  176. package/lib/form/Switch/Switch.d.ts +1 -1
  177. package/lib/form/Switch/Switch.interface.d.ts +2 -1
  178. package/lib/form/Switch/Switch.style.d.ts +4 -3
  179. package/lib/form/Switch/index.esm.js +1 -1
  180. package/lib/form/TextArea/TextArea.interface.d.ts +2 -1
  181. package/lib/form/TextArea/index.esm.js +1 -1
  182. package/lib/form/UploadCard/UploadCard.style.d.ts +25 -11
  183. package/lib/form/UploadCard/index.esm.js +1 -1
  184. package/lib/form/index.esm.js +1 -1
  185. package/lib/hooks/index.esm.js +1 -1
  186. package/lib/index.d.ts +1 -1
  187. package/lib/index.esm.js +1 -1
  188. package/lib/index.js +1 -1
  189. package/lib/layouts/DefaultLayout/index.esm.js +1 -1
  190. package/lib/layouts/SideBarLayout/index.esm.js +1 -1
  191. package/lib/layouts/index.esm.js +1 -1
  192. package/lib/skeleton/ComposedSkeleton/index.esm.js +1 -1
  193. package/lib/skeleton/TextPreset/index.esm.js +1 -1
  194. package/lib/skeleton/index.esm.js +1 -1
  195. package/lib/themes/GlobalStyle/index.esm.js +1 -1
  196. package/lib/themes/ThemeProvider/index.esm.js +1 -1
  197. package/lib/themes/index.esm.js +1 -1
  198. package/package.json +2 -2
  199. package/lib/chunks/Notification.group-VLYQ6NRW.esm.js +0 -1
  200. package/lib/chunks/Tooltip.floating-WTJLJZJN.esm.js +0 -1
  201. package/lib/chunks/chunk-3FWZII65.esm.js +0 -1
  202. package/lib/chunks/chunk-4BZPXLAW.esm.js +0 -1
  203. package/lib/chunks/chunk-4PAEVB5H.esm.js +0 -1
  204. package/lib/chunks/chunk-5HLJ7LZZ.esm.js +0 -4
  205. package/lib/chunks/chunk-6DILIYS2.esm.js +0 -1
  206. package/lib/chunks/chunk-BFP2C5JF.esm.js +0 -1
  207. package/lib/chunks/chunk-CXBUSCOB.esm.js +0 -1
  208. package/lib/chunks/chunk-D4ZBSTRO.esm.js +0 -1
  209. package/lib/chunks/chunk-DMLGAY6T.esm.js +0 -1
  210. package/lib/chunks/chunk-DRL2R3ED.esm.js +0 -1
  211. package/lib/chunks/chunk-FBZTXAE3.esm.js +0 -1
  212. package/lib/chunks/chunk-H4FEHRHK.esm.js +0 -39
  213. package/lib/chunks/chunk-HG4FBLPA.esm.js +0 -1
  214. package/lib/chunks/chunk-JQSEC336.esm.js +0 -1
  215. package/lib/chunks/chunk-JTVUOZDH.esm.js +0 -1
  216. package/lib/chunks/chunk-JVIACETZ.esm.js +0 -26
  217. package/lib/chunks/chunk-NHE4GLQK.esm.js +0 -1
  218. package/lib/chunks/chunk-NW2GV6YI.esm.js +0 -1
  219. package/lib/chunks/chunk-RI7KKIJD.esm.js +0 -1
  220. package/lib/chunks/chunk-UFQAFY4P.esm.js +0 -43
  221. package/lib/chunks/chunk-UGTJEXCL.esm.js +0 -1
  222. package/lib/chunks/chunk-VYK6RBMI.esm.js +0 -1
  223. package/lib/chunks/chunk-XYIRIYYK.esm.js +0 -1
  224. package/lib/chunks/chunk-Y75NAEIA.esm.js +0 -1
  225. /package/lib/chunks/{chunk-PMN6TVDW.esm.js → chunk-MPMCXGOX.esm.js} +0 -0
@@ -1 +0,0 @@
1
- import{e as d}from"./chunk-4PAEVB5H.esm.js";import"./chunk-A7JDCK3C.esm.js";import"./chunk-ZMHNNJNC.esm.js";import"./chunk-RR2TYGZC.esm.js";import"./chunk-2FQC32AA.esm.js";import"./chunk-HSKYQ6VP.esm.js";import"./chunk-SPHHNZVP.esm.js";import"./chunk-4UWZA5FD.esm.js";import"./chunk-KQQ7V7VG.esm.js";import"./chunk-3QSPHURU.esm.js";import"./chunk-NDIYF5SX.esm.js";import{c}from"./chunk-KZTG5TDM.esm.js";import"./chunk-A3OJEVGQ.esm.js";import"./chunk-KR2X2UQG.esm.js";import"./chunk-BE2JDTVA.esm.js";import"./chunk-X64PGKAO.esm.js";import"./chunk-DAT6GD4T.esm.js";import"./chunk-CTNZPJ47.esm.js";import"./chunk-5HLJ7LZZ.esm.js";import"./chunk-BFP2C5JF.esm.js";import"./chunk-7TJO34VI.esm.js";import"./chunk-JLQDS5TS.esm.js";import"./chunk-5Q265MC7.esm.js";import"./chunk-3V3ZEGHO.esm.js";import"./chunk-VXAPSA5T.esm.js";import"./chunk-EXHRZZ5E.esm.js";import"./chunk-EBOJSNZ5.esm.js";import"./chunk-4E3BR56X.esm.js";import"./chunk-TMIQIUOH.esm.js";import"./chunk-4L2KOZIQ.esm.js";import"./chunk-R6MCW24V.esm.js";import{d as l}from"./chunk-A77HKHNQ.esm.js";import"./chunk-TLIKQFOT.esm.js";import"./chunk-IA234JY2.esm.js";import"./chunk-TG5BCBO4.esm.js";import"./chunk-G757UD32.esm.js";import"./chunk-OSFHXCPW.esm.js";import"./chunk-LVVNQRJ2.esm.js";import"./chunk-Z7GJDO5T.esm.js";import"./chunk-P7RR4ZHS.esm.js";import"./chunk-JOKVE3IX.esm.js";import"./chunk-CWRWYU7D.esm.js";import"./chunk-PFLBU7HG.esm.js";import"./chunk-TG2P4DDY.esm.js";import"./chunk-YJHYFCT7.esm.js";import"./chunk-UHABJEDB.esm.js";import"./chunk-3DUB5C4Z.esm.js";import"./chunk-KT6QQ3UJ.esm.js";import"./chunk-BERIBF3O.esm.js";import"./chunk-HVFI7FHR.esm.js";import"./chunk-VU3NKSLB.esm.js";import"./chunk-GM3IRR2E.esm.js";import"./chunk-KT4BKJVV.esm.js";import"./chunk-NHE4GLQK.esm.js";import{a as o}from"./chunk-D4ZBSTRO.esm.js";import"./chunk-PMN6TVDW.esm.js";import"./chunk-KKFQPSAE.esm.js";import"./chunk-VMIXRIQ2.esm.js";import"./chunk-VUFEYXWD.esm.js";import"./chunk-SF2QSF7E.esm.js";import"./chunk-LCIO2E2K.esm.js";import"./chunk-HG4FBLPA.esm.js";import"./chunk-RWLJNXLX.esm.js";import"./chunk-OHVMP5B7.esm.js";import"./chunk-IK5Z5C2R.esm.js";import"./chunk-BNB3KNKE.esm.js";import"./chunk-OXQA5WD3.esm.js";import"./chunk-TZQMBDGR.esm.js";import"./chunk-WCUEINBQ.esm.js";import"./chunk-YJ6PPJQ4.esm.js";import"./chunk-QYL6LECA.esm.js";import"./chunk-3A7I6HM2.esm.js";import"./chunk-WI3WPCW3.esm.js";import"./chunk-R2B57RMV.esm.js";import"./chunk-RFUX53ZX.esm.js";import"./chunk-CQASQBD7.esm.js";import"./chunk-MREWGN5R.esm.js";import"./chunk-PXVTXO3L.esm.js";import"./chunk-BV6GHAF7.esm.js";import{c as p}from"./chunk-G5Z7USXC.esm.js";import"./chunk-AXUWC2WH.esm.js";import{a as f}from"./chunk-GZONWSRB.esm.js";import{useEffect as u,useState as y}from"react";import{createPortal as B}from"react-dom";import{jsx as t}from"react/jsx-runtime";var N=f(({toast:r,onRemove:e})=>{let{id:i,...a}=r,[n,C]=y(!0),{mounted:s,state:m,ref:g}=c(n,{property:"grid-template-rows"});return u(()=>{s||e(i)},[s,i,e]),s?t(o,{ref:g,motion:"collapse","data-state":m,"aria-hidden":m==="closing"||void 0,style:{minWidth:300,maxWidth:"30vw",zIndex:100},children:t(o,{motion:"drawer-right","data-state":m,children:t(o,{style:{margin:"0.5rem"},children:t(d,{...a,visible:!0,closable:!0,onDismiss:()=>C(!1)})})})}):null},"ToastItem"),h=f(()=>{let{notifications:r,removeNotification:e}=l(),[i,a]=y(!1);return u(()=>{a(!0)},[]),!i||!p?null:B(t(o,{style:{position:"fixed",bottom:"1rem",right:"1rem"},children:r.map(n=>t(N,{toast:n,onRemove:e},n.id))}),p)},"NotificationGroup"),I=h;export{I as default};
@@ -1 +0,0 @@
1
- import{a as s,b as p,c,e as d,f,h as m,j as u,k as g,m as w,n as x}from"./chunk-QRU4HAB3.esm.js";import{a as F,b as P}from"./chunk-SMAAEIJR.esm.js";import"./chunk-D4ZBSTRO.esm.js";import"./chunk-PMN6TVDW.esm.js";import"./chunk-KKFQPSAE.esm.js";import"./chunk-VMIXRIQ2.esm.js";import"./chunk-VUFEYXWD.esm.js";import"./chunk-SF2QSF7E.esm.js";import"./chunk-LCIO2E2K.esm.js";import"./chunk-HG4FBLPA.esm.js";import"./chunk-RWLJNXLX.esm.js";import"./chunk-OHVMP5B7.esm.js";import"./chunk-IK5Z5C2R.esm.js";import"./chunk-BNB3KNKE.esm.js";import"./chunk-OXQA5WD3.esm.js";import"./chunk-TZQMBDGR.esm.js";import"./chunk-WCUEINBQ.esm.js";import"./chunk-YJ6PPJQ4.esm.js";import"./chunk-QYL6LECA.esm.js";import"./chunk-3A7I6HM2.esm.js";import"./chunk-WI3WPCW3.esm.js";import"./chunk-R2B57RMV.esm.js";import"./chunk-RFUX53ZX.esm.js";import"./chunk-CQASQBD7.esm.js";import"./chunk-MREWGN5R.esm.js";import"./chunk-PXVTXO3L.esm.js";import"./chunk-BV6GHAF7.esm.js";import"./chunk-G5Z7USXC.esm.js";import"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";import L from"react";import{jsx as R,jsxs as K}from"react/jsx-runtime";var $=i(({referenceEl:T,open:y,onOpenChange:b,position:v,inverted:E,noArrow:h,content:C,tooltipId:D})=>{var r,a;let e=L.useRef(null),{refs:M,floatingStyles:A,context:o,placement:H,middlewareData:t}=g({open:y,onOpenChange:b,placement:v,middleware:[f(8),c(),m({padding:4}),s({element:e})],whileElementsMounted:p,elements:{reference:T}}),{getFloatingProps:I}=w([u(o,{outsidePress:!0,escapeKey:!0}),x(o,{role:"tooltip"})]),n=(r=t.arrow)==null?void 0:r.x,l=(a=t.arrow)==null?void 0:a.y;return R(d,{children:K(P,{ref:M.setFloating,id:D,inverted:E,deep:2,p:"xs",borderRadius:"xs","data-placement":H,style:A,...I(),children:[C,!h&&R(F,{ref:e,style:{left:n!=null?`${n}px`:"",top:l!=null?`${l}px`:""}})]})})},"TooltipFloating"),U=$;export{U as default};
@@ -1 +0,0 @@
1
- import{a as i,b as p,d as x}from"./chunk-W37MIT56.esm.js";import{o as n}from"./chunk-DAT6GD4T.esm.js";import{b as c}from"./chunk-CTNZPJ47.esm.js";import{a as m}from"./chunk-EXHRZZ5E.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";import{jsx as o,jsxs as k}from"react/jsx-runtime";var a=r(({label:e=null,labelProps:C,variant:f="default",color:h,...t})=>k(x,{variant:f,$color:h,disabled:t.disabled,children:[o(i,{...t,type:"checkbox",hidden:!0}),o(p,{children:o(c,{icon:n,size:"small"})}),typeof e=="string"?o(m,{fontSize:"small",color:"ink.primary",...C,children:e}):e]}),"CheckboxComponent");a.displayName="Checkbox";export{a};
@@ -1 +0,0 @@
1
- import{a as N}from"./chunk-ER6KS2SA.esm.js";import{a as M,b as H}from"./chunk-A7JDCK3C.esm.js";import{a as V}from"./chunk-RR2TYGZC.esm.js";import{f as G}from"./chunk-HSKYQ6VP.esm.js";import{c as z}from"./chunk-KZTG5TDM.esm.js";import{a as L}from"./chunk-BE2JDTVA.esm.js";import{ga as W}from"./chunk-DAT6GD4T.esm.js";import{b as T}from"./chunk-CTNZPJ47.esm.js";import{f as E}from"./chunk-VXAPSA5T.esm.js";import{a as F,e as B}from"./chunk-EXHRZZ5E.esm.js";import{a as D}from"./chunk-VU3NKSLB.esm.js";import{a as C,b as k}from"./chunk-NHE4GLQK.esm.js";import{a as h}from"./chunk-D4ZBSTRO.esm.js";import{a as R}from"./chunk-BV6GHAF7.esm.js";import{c as I}from"./chunk-G5Z7USXC.esm.js";import{b as f,g as m}from"./chunk-AXUWC2WH.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";var no=f(["max-width:30rem;min-width:20rem;"]),ao=f(["max-width:40rem;min-width:20rem;"]),lo=f(["max-width:55rem;min-width:40rem;"]),io=f(["max-width:75rem;min-width:40rem;"]),mo=f(["width:95%;"]);function so({size:o}){switch(o){case"small":return no;case"medium":return lo;case"large":return io;default:return ao}}n(so,"modalSize");function co({variant:o,theme:t}){let a=t.colors[o];return f(["--baseColor:",";--lightColor:",";--actionColor:",";"],a.base,a.light,a.action)}n(co,"modalVariantColor");var O=m(h).attrs({p:"large",borderRadius:"md",bgColor:"surface.overlay"}).withConfig({componentId:"sc-8jjm43-0"})(["",";",";","{",";}"],mo,co,({theme:o})=>o.breakpoints.up("sm"),so),Q=m(C).withConfig({componentId:"sc-8jjm43-1"})(["max-height:84vh;overflow:hidden;"]),Y=m(C).withConfig({componentId:"sc-8jjm43-2"})(["& ","{flex:1;}& ","{padding:0.3rem;color:var(--baseColor);&:only-child{margin-left:auto;}}& ",":active{color:var(--actionColor);background-color:var(--lightColor);}& ",":hover{background-color:var(--lightColor);}"],F,M,M,M),$=m(h).withConfig({componentId:"sc-8jjm43-3"})(["flex:1;display:flex;overscroll-behavior:none;overflow:hidden;"]),q=m(k).attrs({borderRadius:"circular"}).withConfig({componentId:"sc-8jjm43-4"})(["background-color:var(--lightColor);& svg{color:var(--baseColor);width:1.25rem;height:1.25rem;g{fill:var(--baseColor);}}"]),J=m(h).withConfig({componentId:"sc-8jjm43-5"})(["z-index:9999;display:flex;justify-content:center;align-items:center;position:fixed;top:0;left:0;right:0;bottom:0;"]),K=m(h).withConfig({componentId:"sc-8jjm43-6"})(["opacity:0.8;will-change:opacity;"]);import x,{cloneElement as uo,isValidElement as fo,useEffect as po,useRef as go,useState as ho}from"react";import{createPortal as Co}from"react-dom";import{Fragment as xo,jsx as e,jsxs as y}from"react/jsx-runtime";var U=n(({isOpen:o,onDismiss:t,...a})=>{if(!o&&!t)throw new Error('You must provide "isOpen" and "onDismiss" if not using "trigger" prop.');let[l,s]=ho(!1),i=go(null),{mounted:r,state:d,ref:c}=z(o!=null?o:!1);return po(()=>{s(!0)},[]),V(i,{active:!!(o&&l&&r),onEscape:t}),!l||!I?null:Co(r?y(J,{"data-testid":"modal-container",children:[e(K,{absoluteFill:!0,bgColor:"surface.scrim","data-testid":"modal-overlay",onClick:t,motion:"fade","data-state":d}),e(Mo,{ref:p=>{i.current=p,c(p)},motionState:d,onDismiss:t,...a})]}):null,I)},"ModalBaseComponent"),yo=n(({defaultOpen:o,trigger:t,isOpen:a,onDismiss:l,onModalOpen:s,...i})=>{let{active:r,disable:d,enable:c,toggle:p}=L(o,{onActive:s});return(a||l)&&R.warn('"isOpen" and "onDismiss" has no effect while using "trigger" prop'),y(xo,{children:[n(()=>{let u=null;if(typeof t=="function"&&(u=t({isOpen:r,open:c})),fo(t)&&(u=uo(t,{onClick:p})),u===null)throw new Error('"trigger" prop is not a valid element');return u},"renderTrigger")(),e(U,{isOpen:r,onDismiss:d,...i})]})},"ModalTriggerVariant"),Mo=x.forwardRef(n(function({noCloseButton:t,primaryButton:a,secondaryButton:l,primaryText:s,secondaryText:i,onDismiss:r,primaryAction:d,secondaryAction:c,children:p,tagline:v,variant:u,footer:w,title:b,size:Z,icon:P,motionState:_,closeLabel:A="Fechar"},oo){let{isMobile:S}=G(),j=x.useId(),eo=n(()=>{d({close:r})},"handlePrimary"),to=n(()=>{c({close:r})},"handleSecondary"),ro=n(()=>{let g={onClick:eo,fullWidth:w==="full"||S,"data-testid":"modal-confirm-button"};return a?x.cloneElement(a,g):e(E,{color:u,...g,children:s})},"renderPrimaryButton");return e(O,{ref:oo,role:"dialog","aria-modal":"true","aria-labelledby":b?j:void 0,tabIndex:-1,size:Z,variant:u,motion:"sheet","data-state":_,children:y(Q,{gap:"medium",children:[y(Y,{gap:"xs",children:[e(D,{opener:P&&e(q,{justifyContent:"center",alignItems:"center",p:"micro",children:P}),closer:!t&&e(H,{onClick:r,"data-testid":"modal-close-button","aria-label":A,icon:e(T,{icon:W}),variant:"linked",color:"secondary",size:"large",alignSelf:"start"}),children:b&&e(B,{id:j,variant:"h4",area:"title",color:"ink.primary",text:b})}),v&&e(B,{variant:"meta",color:"secondary.dark",area:"tagline",children:v})]}),e($,{py:"medium",children:e(N,{children:p})}),(d||c)&&y(C,{flexDirection:S?"column-reverse":"row",justifyContent:w==="expanded"?"between":"end",gap:"medium",children:[c&&n(()=>{if(w==="full")return null;let g={onClick:to,fullWidth:S,"data-testid":"modal-cancel-button"};return l?x.cloneElement(l,g):e(E,{variant:"outlined",color:"secondary",...g,children:i})},"renderSecondaryButton")(),d&&ro()]})]})})},"ModalDialog")),X=n(({noCloseButton:o=!1,secondaryText:t="Cancelar",primaryText:a="Confirmar",variant:l="primary",footer:s="right",...i})=>{let r={noCloseButton:o,secondaryText:t,primaryText:a,variant:l,footer:s,...i};return r!=null&&r.trigger?e(yo,{...r}):e(U,{...r})},"ModalComponent");X.displayName="Modal";export{O as a,Q as b,Y as c,$ as d,q as e,J as f,K as g,X as h};
@@ -1 +0,0 @@
1
- import{a as E,b as R}from"./chunk-A7JDCK3C.esm.js";import{f as A}from"./chunk-HSKYQ6VP.esm.js";import{c as z}from"./chunk-KZTG5TDM.esm.js";import{c as M}from"./chunk-X64PGKAO.esm.js";import{ga as F}from"./chunk-DAT6GD4T.esm.js";import{a as w,b as P}from"./chunk-CTNZPJ47.esm.js";import{a as T,e as y}from"./chunk-EXHRZZ5E.esm.js";import{a as B}from"./chunk-VU3NKSLB.esm.js";import{a as b,b as W}from"./chunk-NHE4GLQK.esm.js";import{a as I}from"./chunk-D4ZBSTRO.esm.js";import{c as g}from"./chunk-G5Z7USXC.esm.js";import{b as S,c as k,g as f}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";var _=k(["0%{width:0;}100%{width:100%;}"]),C=f(W).withConfig({componentId:"sc-6lckl1-0"})(["--time:15;width:0;height:0.25rem;background-color:var(--baseColor);animation:"," calc(var(--time,15) * 1s) normal forwards;"],_),L=f(b).withConfig({componentId:"sc-6lckl1-1"})(["position:absolute;top:0.25rem;left:0.5rem;right:0.5rem;"]);function J({variant:e,theme:c}){let t=c.colors[e];return S(["--baseColor:",";--lightColor:",";--darkColor:",";--activeColor:",";--actionColor:",";--inkColor:",";position:relative;background-color:var(--lightColor);border-color:var(--baseColor);",":not(button *){color:var(--inkColor);}& ","{width:intrinsic;color:var(--darkColor);&:hover{background:var(--activeColor);}&:active ","{color:var(--actionColor);}}&:hover ","{animation-play-state:paused;}"],t.base,t.light,t.dark,t.active,t.action,t.onLight,T,E,w,C)}i(J,"getWrapperStyle");var v=f(I).withConfig({componentId:"sc-6lckl1-2"})(J);v.displayName="div";var V=f(b).withConfig({componentId:"sc-6lckl1-3"})(["color:var(--darkColor);svg{width:2rem;height:2rem;}"]);import $,{useEffect as K,useState as X}from"react";import{createPortal as Y}from"react-dom";import{jsx as o,jsxs as j}from"react/jsx-runtime";var q=$.forwardRef(i(function({type:c="block",variant:t="primary",visible:d=!0,closable:p=!0,autoClose:s=null,message:r=null,action:n=null,icon:m=null,link:a,onDismiss:l,closeLabel:G="Fechar notifica\xE7\xE3o",...u},H){let{isMobile:N}=A(),O=i(()=>{let h=n;return typeof n=="function"&&(h=n({close:l})),h?$.cloneElement(h,{color:t,alignSelf:"center",justifySelf:"center"}):null},"renderActionButton"),Q=i(()=>typeof r=="function"?r({close:l}):typeof r=="string"?o(y,{text:r,variant:"p",fontSize:"xs"}):r,"renderMessage"),x=t==="danger",U=x?"alert":"status";return d?j(v,{ref:H,p:"medium",pr:9,round:N?0:"xs",borderWidth:N?"none":"thin",borderStyle:"solid",variant:t,"data-testid":`notification-${c}`,role:U,"aria-live":x?"assertive":"polite","aria-atomic":"true",...u,children:[s&&o(L,{children:o(C,{round:"micro",style:{"--time":s},onAnimationEnd:l})}),j(B,{contentGap:"medium",opener:m&&o(V,{pt:"xs",alignSelf:"start",children:m}),closer:O(),children:[u.title&&o(y,{text:u.title,variant:"h3",fontSize:"small",fontWeight:"stronger",type:"mobile"}),Q(),a&&o(M,{...a,target:"_blank"})]}),p&&o(R,{p:"xs",borderWidth:"none",icon:o(P,{size:"small",icon:F}),"aria-label":G,variant:"linked",onClick:l,alignSelf:"start",position:"absolute",right:"0.5rem",top:"0.5rem"})]}):null},"BaseNotification")),Z=i(e=>{let[c,t]=X(!1);K(()=>{t(!0)},[]);let d=e.visible!==!1,{mounted:p,state:s,ref:r}=z(d),{pageOffset:n=0,...m}=e,a=e.pagePosition==="top",l=a?{top:n}:{bottom:n};return!c||!g?null:Y(p?o(q,{...m,ref:r,round:0,borderWidth:"thin",borderPosition:a?"bottom":"top",motion:a?"sheet-top":"sheet","data-state":s,"aria-hidden":s==="closing"||void 0,visible:!0,style:{...l,zIndex:1e3,margin:0,position:"fixed",right:0,left:0}}):null,g)},"PageNotification"),D=i(e=>e.type==="page"?o(Z,{...e}):o(q,{...e}),"NotificationComponent");D.displayName="Notification";export{C as a,L as b,v as c,V as d,D as e};
@@ -1,4 +0,0 @@
1
- import{b as g,c as f}from"./chunk-KKFQPSAE.esm.js";import{g as a}from"./chunk-AXUWC2WH.esm.js";import{a as o}from"./chunk-GZONWSRB.esm.js";var I=o(({size:t,dimensions:r})=>{if(t)return{width:t,height:t};if(r){let{width:e,height:n,ratio:i}=r;if(n)return{width:e,height:n};if(i)return typeof e=="number"?{width:e,height:e/i}:e.endsWith("px")?{width:e,height:`calc(${e} / ${i})`}:{width:e,height:"auto"}}return{width:"1em",height:"1em"}},"getComputedSize"),P=o(t=>`fill: ${t.colors.getColor(t.colors.danger)};`,"getFillProps"),l=o(t=>typeof t=="number"&&Number.isFinite(t)?t:void 0,"toNativeLength"),x=o(({size:t,dimensions:r})=>{if(t!==void 0){let e=l(t);return e===void 0?{}:{width:e,height:e}}if(r){let e=l(r.width);if(e===void 0)return{};if(r.height!==void 0){let n=l(r.height);return n===void 0?{}:{width:e,height:n}}if(r.ratio)return{width:e,height:e/r.ratio}}return{}},"getNativeDims"),p=a("svg").attrs(t=>x(t)).withConfig({shouldForwardProp:g}).withConfig({componentId:"sc-16f7fwn-0"})([""," ",""],t=>({...I(t)}),({error:t,theme:r})=>t&&P(r)),C=o(t=>`transform: ${t};`,"getTransformProps"),s=f("g").withConfig({componentId:"apollion-svg-g"})`
2
- fill: ${({fill:t,theme:r})=>t||r.colors.getColor(r.colors.main)};
3
- ${({transform:t})=>t&&C(t)}
4
- `,c=f("path").withConfig({componentId:"apollion-svg-path"})``;import{jsx as m,jsxs as G}from"react/jsx-runtime";import{createElement as b}from"react";var d=o(({transform:t,fill:r,paths:e,fillAll:n,error:i,viewBox:S,title:h,...v})=>G(p,{viewBox:S,error:i,...v,children:[h&&m("title",{children:h}),m(s,{transform:t,fill:r,children:o(()=>e&&e.map(u=>{let{fill:y,...w}=u,D=n?void 0:y;return b(c,{...w,key:u.d,fill:D})}),"RenderPaths")()})]}),"SvgComponent");d.displayName="Svg";export{x as a,p as b,s as c,c as d,d as e};
@@ -1 +0,0 @@
1
- import{b as c}from"./chunk-CTNZPJ47.esm.js";import{b as g}from"./chunk-BFP2C5JF.esm.js";import{e as f}from"./chunk-EXHRZZ5E.esm.js";import{b as m}from"./chunk-NHE4GLQK.esm.js";import{g as p}from"./chunk-AXUWC2WH.esm.js";import{a}from"./chunk-GZONWSRB.esm.js";function h(r){return r==="extraLarge"?"xl":r==="giant"?"xxl":r}a(h,"getIconSize");function d({theme:r,size:i,$label:n}){let{fontSize:o}=r.font,e=(n==null?void 0:n.length)||0;switch(i){case"small":{let t=r.spacing("medium");return{width:t,height:t,fontSize:o.micro}}case"large":{let t=r.spacing("xl");return{width:t,height:t,fontSize:e===1?o.xxl:o.large}}case"extraLarge":{let t=r.spacing("xxl");return{width:t,height:t,fontSize:e===1?o.gargantua:o.giant}}case"giant":{let t=r.spacing("giant");return{width:t,height:t,fontSize:o.gargantua}}default:{let t=r.spacing("large");return{width:t,height:t,fontSize:e===1?o.medium:o.xs}}}}a(d,"getSizes");var u=p(m).withConfig({componentId:"sc-k7r87e-0"})(d);import{jsx as s}from"react/jsx-runtime";function x({imgSrc:r,icon:i,size:n,label:o,alt:e}){return r?s(g,{width:"100%",height:"100%",src:r,alt:e!=null?e:"","data-testid":"avatar-image"}):i?s(c,{icon:i,size:h(n),"data-testid":"avatar-icon"}):s(f,{textTransform:"uppercase",children:o})}a(x,"getContent");var l=a(({size:r,icon:i,imgSrc:n,label:o,alt:e,...t})=>s(u,{alignItems:"center",justifyContent:"center",overflow:"hidden",borderRadius:"circular",bgColor:"surface.sunken",color:"primary.base",$label:o,size:r,...!n&&!i&&!!o&&{role:"img","aria-label":e!=null?e:o},...t,children:x({size:r,icon:i,imgSrc:n,label:o,alt:e})}),"Avatar");l.displayName="Avatar";export{l as a};
@@ -1 +0,0 @@
1
- import{a as I}from"./chunk-7TJO34VI.esm.js";import{b as s}from"./chunk-JLQDS5TS.esm.js";import{a as f}from"./chunk-5Q265MC7.esm.js";import{b as g}from"./chunk-KKFQPSAE.esm.js";import{c as i}from"./chunk-BV6GHAF7.esm.js";import{g as c}from"./chunk-AXUWC2WH.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";var b=r(({cover:e,height:t,width:o})=>e&&{width:o!=null?o:"100%",height:t!=null?t:"100%",objectFit:"cover"},"imageCover"),l=r(e=>e?i(e):"fit-content","getSizeValue"),d=c("img").withConfig({shouldForwardProp:g}).withConfig({componentId:"sc-swtbvc-0"})(["display:block;width:",";height:",";",";&[src='']{visibility:hidden;position:absolute;}"],({full:e,width:t})=>e?"100%":l(t),({height:e})=>l(e),b);import C,{forwardRef as L,useState as h}from"react";import{jsx as n,jsxs as R}from"react/jsx-runtime";var p=L(({src:e,...t},o)=>n(d,{src:e,ref:o,...t})),x=r(({width:e=60,height:t=60})=>n(I,{height:t,width:e,children:n(s,{width:e,height:t})}),"ImageDefaultContentLoader");function F(e){return new Promise((t,o)=>{let a=new Image;a.onload=t,a.onerror=o,a.src=e})}r(F,"loadImage");var u=r(({src:e,fallback:t,threshold:o,...a})=>{let[m,y]=h(),[S]=f({threshold:o},()=>{F(e).then(()=>y(e)).catch(()=>console.warn(`[Failed]: error on loading image: ${e}`))}),w=typeof m=="undefined";return R(C.Fragment,{children:[w?t||n(x,{...a}):null,n(p,{src:m||"",ref:S,...a})]})},"ImageLazy");u.displayName="ImageLazy";export{d as a,p as b,u as c};
@@ -1 +0,0 @@
1
- import{d as G}from"./chunk-XYIRIYYK.esm.js";import{a as h}from"./chunk-3FWZII65.esm.js";import{a as o}from"./chunk-GZONWSRB.esm.js";import g,{Children as T,useCallback as H,useMemo as k}from"react";function M(e){return Array(e).fill("min-content").join(" ")}o(M,"createSpace");function y(e){return e?M(e):"1fr"}o(y,"getGridColumns");function v(e){let l=e&&e.row?e.row:e,u=e&&e.column?e.column:e;return[l,u]}o(v,"getGridGap");import{jsx as N}from"react/jsx-runtime";import{createElement as L}from"react";var I=o(e=>{let{name:l,variant:u,gap:d="Compact",columns:s,value:t,inputs:p,children:b,onChange:m,type:c,...P}=e,E=k(()=>y(s),[s]),[F,w]=k(()=>v(d),[d]),C=H((r,n)=>a=>{if(!m||!l)return;let i=null;c==="radio"?i=n:r&&Array.isArray(t)?i=t.filter(R=>R!==n):i=[...t||[],n],m(i)},[l,t,m,c]);function f(r){return Array.isArray(t)?!!t.includes(r):r===t}o(f,"isInputChecked");function x(){let r=c==="radio"?G:h;return p.map(n=>{let a=f(n.value),i=c==="radio"?l:n.name;return L(r,{...n,key:n.value,variant:u,name:i,checked:a,onChange:C(a,n.value)})})}o(x,"renderInputs");function A(){return T.map(b,r=>{if(!g.isValidElement(r))return null;let n=r.props.value,a=f(n);return g.cloneElement(r,{onChange:C(a,n),checked:a})})}return o(A,"renderChildren"),N("div",{style:{display:"grid",gridRowGap:F,gridColumnGap:w,gridTemplateColumns:E},children:p?x():A()})},"FieldGroupComponent");I.displayName="FieldGroup";export{I as a};
@@ -1 +0,0 @@
1
- import{d as o}from"./chunk-KKFQPSAE.esm.js";var t=o.div,n=t;export{t as a,n as b};
@@ -1 +0,0 @@
1
- import{b as r}from"./chunk-NHE4GLQK.esm.js";import{g as e}from"./chunk-AXUWC2WH.esm.js";var t=e(r).attrs(o=>({p:"medium",borderRadius:"micro",bgColor:"surface.paper",deep:2,...o})).withConfig({componentId:"sc-5vfy6v-0"})([""]);export{t as a};
@@ -1 +0,0 @@
1
- import{b}from"./chunk-ZZOIX6CV.esm.js";import{e as t}from"./chunk-EXHRZZ5E.esm.js";import{a as o}from"./chunk-NHE4GLQK.esm.js";import{a as e}from"./chunk-GZONWSRB.esm.js";import{jsx as r,jsxs as c}from"react/jsx-runtime";var n=e(({initialPagination:i,finalPagination:a,linesPerPage:p,totalPagination:l,showingText:f=e((s,x,T)=>`Exibindo ${s} - ${x} de ${T} itens`,"showingText"),linesPerPageLabel:m="Linhas por p\xE1gina"})=>i&&a&&l&&Array.isArray(p)?c(o,{flexDirection:"row",justifyContent:"between",alignItems:"center",children:[r(t,{color:"primary.dark",children:f(i,a,l)}),c(o,{flexDirection:"row",justifyContent:"center",alignItems:"center",gap:2,children:[r(t,{color:"primary.dark",children:m}),r(b,{width:"150px",options:p,"aria-label":m})]})]}):null,"TablePaginationComponent");n.displayName="TablePagination";export{n as a};
@@ -1 +0,0 @@
1
- import{a as m}from"./chunk-FH54V56Y.esm.js";import{e as r}from"./chunk-EXHRZZ5E.esm.js";import{a as n,b as i}from"./chunk-NHE4GLQK.esm.js";import{a as p}from"./chunk-D4ZBSTRO.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";import{jsx as o,jsxs as a}from"react/jsx-runtime";var u=t(({children:l,icon:c,title:f,description:x,...e})=>{let s=e.inverted?"ink.primary":"surface.paper";return o(m,{content:o(p,{p:"xs",children:a(i,{gap:"medium",maxWidth:400,color:s,children:[a(n,{flexDirection:"row",alignItems:"center",gap:"medium",children:[c,o(r,{variant:"h4",text:f,color:null})]}),o(r,{variant:"p",text:x,color:null})]})}),...e,children:l})},"Popover");u.displayName="Popover";export{u as a};
@@ -1,39 +0,0 @@
1
- import{a as c}from"./chunk-BQBDAFDE.esm.js";import{b as W}from"./chunk-NDMZLKX7.esm.js";import{a as T}from"./chunk-F7PA7OCV.esm.js";import{a as l}from"./chunk-DRXC4B7Z.esm.js";import{a as K}from"./chunk-CDRLVSLF.esm.js";import{a as s}from"./chunk-VAA7V65K.esm.js";import{a as V}from"./chunk-DRL2R3ED.esm.js";import{g as j}from"./chunk-GC2ZV3CY.esm.js";import{a as D}from"./chunk-7HRVZJBD.esm.js";import{a as q}from"./chunk-CLU3WNVI.esm.js";import{F as M,K as y,Y as O,v as I,w as B}from"./chunk-DAT6GD4T.esm.js";import{b as g}from"./chunk-CTNZPJ47.esm.js";import{a as z,e as A}from"./chunk-EXHRZZ5E.esm.js";import{a as f}from"./chunk-NHE4GLQK.esm.js";import{d as R}from"./chunk-RWLJNXLX.esm.js";import{b as E}from"./chunk-TZQMBDGR.esm.js";import{b as a,g as F}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";import p,{useEffect as ue,useState as S}from"react";function ie(e){switch(e){case"Compact":return a(["& ","{padding:",";}& ",",","{padding:",";}"],s,({theme:t})=>t.spacing("micro"),l,c,({theme:t})=>t.spacing("micro"));case"Expansive":return a(["& ","{padding:",";}& ",",","{padding:",";}"],s,({theme:t})=>t.spacing("large"),l,c,({theme:t})=>t.spacing("large"));default:return a(["& ","{padding:",";}& ",",","{padding:",";}"],s,({theme:t})=>t.spacing("medium"),l,c,({theme:t})=>t.spacing("medium"))}}i(ie,"getSizeStyle");function L(e){switch(e){case"left":return"flex-start";case"right":return"flex-end";default:return"center"}}i(L,"getAlignDirection");function re(e){if(typeof e=="object"){let t=e.reduce((u,o)=>{let w=`
2
- & ${l}, ${c}, ${s} {
3
- &:nth-child(${o.target}) {
4
- ${f} {
5
- text-align: ${o.direction};
6
- align-items: ${L(o.direction)}
7
- }
8
- }
9
- }
10
- `;return`${u} ${w}`},"");return a(["& ",",",",","{","{text-align:center;align-items:",";}}",""],l,c,s,f,L("center"),t)}return e!==void 0?a(["& ",",",",","{","{text-align:",";align-items:",";}}"],l,c,s,f,e,L(e)):a(["& ",",",",","{","{text-align:center;align-items:center;}}"],l,c,s,f)}i(re,"getAlignStyle");function oe(e){if(e===void 0)return a([""]);let t=e.map((u,o)=>u&&(u.type===void 0?`
11
- &:nth-child(${o+1}) {
12
- width: ${u.width}px;
13
- }
14
- `:`
15
- &:nth-child(${o+1}) {
16
- ${u.type}-width: ${u.width}px;
17
- }
18
- `));return a(["& ",",",",","{","}"],l,c,s,t)}i(oe,"getColumnSizeStyle");function ae(){return a(["& ",",",",","{& ","{width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}"],l,c,s,z)}i(ae,"getEllipsisStyle");function le(e){return e.map(t=>a(["& ","{&:nth-child(","){",";}}"],T,t+1,E({bgColor:"muted"})))}i(le,"getSelectedStyle");var ce=`
19
- & ${s} {
20
- position: sticky;
21
- top: 0;
22
- }
23
- `,se=a(["","{& ","{&:nth-child(odd){",";}}& ",",","{",";}}& ","{z-index:10;}"],q,T,E({bgColor:"surface.sunken"}),l,c,R({borderWidth:"none"}),s),de=i(e=>`
24
- & ${T}{
25
- &:hover{
26
- & ${l}, ${c}{
27
- /* box-shadow inset instead of border avoids layout shift on hover
28
- (rows would get +1px taller on mouseover, causing visible
29
- drift). Visually identical to the classic border-1px. */
30
- box-shadow: inset 0 -1px 0 ${e.colors.edge.border};
31
- &:first-child{
32
- box-shadow:
33
- inset 1px 0 0 ${e.colors.getColor(e.colors.primary,"base")},
34
- inset 0 -1px 0 ${e.colors.edge.border};
35
- }
36
- }
37
- }
38
- }
39
- `,"getHoverableProps"),Y=F.table.withConfig({componentId:"sc-u1ldbs-0"})(["position:relative;border-collapse:collapse;display:table;width:",";"," "," ",";"," "," "," "," ",""],({width:e})=>e||"100%",({stickyHeader:e})=>e&&ce,({striped:e})=>e&&se,({hoverable:e,theme:t})=>e&&de(t),({selected:e})=>le(e),({ellipsis:e})=>e?ae():"",({columnSize:e})=>oe(e),({align:e})=>re(e),({rowSize:e})=>ie(e));import{jsx as r,jsxs as C}from"react/jsx-runtime";var G=i(e=>{let[t,u]=S(""),[o,w]=S([]),[k,x]=S([]),[J,v]=S("Default"),b=p.useRef(null);ue(()=>{if(!b.current)return;let n=Array.from(b.current.children);w(n)},[]);let N=p.Children.toArray(e.children).length>1?1:0,Q=p.Children.map(e.children,(n,m)=>m===N?p.cloneElement(n,{ref:b}):n),U=i(n=>{if(n.key==="Enter"){if(!b.current)return;let m=b.current.children,d=o.map((h,P)=>{let $=m[P];return $&&(t===""&&($.style.display=""),h.innerText.toLowerCase().includes(t.toLowerCase())||($.style.display="none")),h});w(d)}},"getFilterData"),X=o.length>0&&o.every(n=>n.style.display==="none"),Z=o.length,_=i((n,m)=>{m&&x(d=>[...d,n]),m||x(k.filter(d=>d!==n))},"getSelected"),ee=i(n=>(o.forEach((m,d)=>{let h=m.children[0].querySelectorAll("input")[0];return n&&(h.checked=!0,x(P=>[...P,d])),n||(h.checked=!1,x([])),null}),n),"getAllSelected"),te=i(n=>o.map(d=>parseInt(d.children[n].innerText,10)).reduce((d,h)=>d+h,0),"getAddLines"),ne=e.initialPagination&&e.finalPagination&&e.totalPagination&&e.linesPerPage;function H(n){switch(n){case"normal":if(Z<=1)return"visible";if(e.stickyHeader||e.columnSize)return"scroll";break;case"y":if(e.columnSize&&!e.stickyHeader)return"hidden";break;default:return"visible"}return"visible"}return i(H,"getOverflow"),C(f,{overflow:H("normal"),overflowY:H("y"),gap:4,children:[C(f,{flexDirection:"row",justifyContent:"between",alignItems:"center",children:[e.title&&r(A,{color:"primary",readable:!0,variant:"h5","aria-hidden":"true",children:e.title}),C(f,{flexDirection:"row",justifyContent:"end",alignItems:"end",gap:2,children:[e.searching&&r(f,{width:"230px",children:r(j,{placeholder:"Pesquisar",type:"text",value:t,name:"search",onChange:n=>u(n.target.value),onKeyDown:n=>U(n),width:"230",icon:r(g,{icon:I}),role:"search"})}),e.rowTypes&&r(D,{options:[{icon:r(g,{icon:y}),title:"Layout Condensado",action:i(()=>v("Compact"),"action")},{icon:r(g,{icon:y}),title:"Layout Padr\xE3o",action:i(()=>v("Expansive"),"action")},{icon:r(g,{icon:y}),title:"Layout Expandido",action:i(()=>v("Default"),"action")}],children:r(g,{icon:y,color:"primary"})}),e.share&&r(D,{options:[{icon:r(g,{icon:M}),title:"Enviar por email",action:e.share.email},{icon:r(g,{icon:O}),title:"Compartilhar",action:e.share.social}],children:r(g,{icon:B,color:"primary"})})]})]}),ne&&r(V,{initialPagination:e.initialPagination,finalPagination:e.finalPagination,totalPagination:e.totalPagination,linesPerPage:e.linesPerPage,showingText:e.showingText,linesPerPageLabel:e.linesPerPageLabel}),C(Y,{...e,stickyHeader:e.stickyHeader,striped:e.striped,rowSize:J||e.rowSize,align:e.align,columnSize:e.columnSize,width:e.width,ellipsis:e.ellipsis,hoverable:e.hoverable,selected:k,children:[r(A,{as:"caption","aria-hidden":"false",hidden:!0,children:e.title}),r(K.Provider,{value:{ellipsis:e.ellipsis,getSelected:_,getAllSelected:ee,columnSum:e.columnSum!==void 0?{index:e.columnSum,sum:te(e.columnSum)}:{index:void 0,sum:void 0}},children:Q})]}),X&&r(W,{})]})},"TableComponent");export{Y as a,G as b};
@@ -1 +0,0 @@
1
- import{b as y}from"./chunk-IK5Z5C2R.esm.js";import{b as w}from"./chunk-BNB3KNKE.esm.js";import{b as F}from"./chunk-OXQA5WD3.esm.js";import{b as c}from"./chunk-TZQMBDGR.esm.js";import{b as n}from"./chunk-WCUEINBQ.esm.js";import{b as s}from"./chunk-QYL6LECA.esm.js";import{b as f}from"./chunk-3A7I6HM2.esm.js";import{d}from"./chunk-WI3WPCW3.esm.js";import{a as t}from"./chunk-GZONWSRB.esm.js";var P=["viewportMedias"],h=["sm","md","lg","xl"],u=t((r,e)=>{let o={theme:e};return{...w(r)(),...s(r)(o),...c(r)(o),...F(r)(o),...n(r)(o),...d(r)(o),...y(r)(o),...f(r)(o)}},"getStyles"),k=t(r=>e=>{let{theme:o,...M}={...r,...e},{viewportMedias:i}=M;if(!i)return{};let m={};return h.forEach(a=>{let p=i[a];p&&(m[o.breakpoints.up(a)]=u(p,o))}),m},"ViewportMediaFactory");export{P as a,k as b};
@@ -1 +0,0 @@
1
- import{e as se}from"./chunk-GC2ZV3CY.esm.js";import{b as V,c as le}from"./chunk-RI7KKIJD.esm.js";import{a as Z,b as ee}from"./chunk-A7JDCK3C.esm.js";import{a as ie}from"./chunk-A3OJEVGQ.esm.js";import{b as oe}from"./chunk-KR2X2UQG.esm.js";import{a as te}from"./chunk-BE2JDTVA.esm.js";import{I as ne,J as re,ga as ae,ja as k}from"./chunk-DAT6GD4T.esm.js";import{b as S}from"./chunk-CTNZPJ47.esm.js";import{b as J}from"./chunk-BFP2C5JF.esm.js";import{f as Y}from"./chunk-VXAPSA5T.esm.js";import{e as I}from"./chunk-EXHRZZ5E.esm.js";import{b as X}from"./chunk-A77HKHNQ.esm.js";import{a as v,b as Q}from"./chunk-NHE4GLQK.esm.js";import{a as R}from"./chunk-D4ZBSTRO.esm.js";import{d as K}from"./chunk-WI3WPCW3.esm.js";import{m as z}from"./chunk-BV6GHAF7.esm.js";import{g as b}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";var de=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"),me=i(({disabled:e,readOnly:t})=>(e||t)&&{cursor:"not-allowed",pointerEvents:"none",userSelect:"none"},"disabledStyle"),ce=b(R).withConfig({componentId:"sc-1erdx9t-0"})([""," "," container-type:inline-size;"],de,me),j=b(R).withConfig({componentId:"sc-1erdx9t-1"})(["pointer-events:none;display:flex;justify-content:center;align-items:center;"]),N=b(R).withConfig({componentId:"sc-1erdx9t-2"})(["opacity:0.95;"]),T=b(V).withConfig({componentId:"sc-1erdx9t-3"})(["& ","{padding:0;svg{width:0.8rem;height:0.8rem;}}"],Z),fe=b(v).withConfig({componentId:"sc-1erdx9t-4"})(["min-width:0;overflow-y:auto;overflow-x:hidden;& ","{padding:"," 0;}& "," + & ","{margin-top:",";}"],T,({theme:e})=>e.spacing("xs"),T,T,({theme:e})=>e.spacing("medium")),pe=b(I).withConfig({componentId:"sc-1erdx9t-5"})(["flex:1;width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),ue=b(R).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),A=b(R).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),ge=b(le).withConfig({componentId:"sc-1erdx9t-8"})([""," ",""],de,me),Fe=b(V).withConfig({componentId:"sc-1erdx9t-9"})(["",""],K({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:X(),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:x,auth:p,params:F,withCredentials:r,responseType:m,headers:f,formDataParams:l}=c;return new Promise((u,y)=>{let a=new XMLHttpRequest;a.timeout=x;let h=new FormData;h.append(t,o,o.name),l&&l.forEach(s=>{h.append(s.key,s.value)});let O=new URL(d);if(F&&Object.keys(F).forEach(s=>{O.searchParams.append(s,F[s])}),a.open("post",O.href),"setRequestHeader"in a){let s={...f};if(p){let g=p.username||"",P=unescape(encodeURIComponent(p.password))||"",D=`${g}:${P}`;s.Authorization=`Basic ${btoa(D)}`}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),y(),a=null},a.send(h)})}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:x,removeFile:p,openFileDialogButton:F,readOnly:r,style:m,className:f,inputFile:l}=e,u=x.length>0,y=u&&n(fe,{flexDirection:"column",flex:"fluid",p:"large",children:x.map(a=>n(be,{removeFile:p,readOnly:r,...a},a.id))});return C(ce,{...d,style:m,className:f,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(Q,{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(S,{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]})]}),y]}),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(S,{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:x,style:p,className:F,readOnly:r,openFileDialogButton:m,inputFile:f}=e;return C(ge,{...c,style:p,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:[f,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:x,readOnly:r,...l},l.id))}),o&&C(j,{children:[n(N,{}),C(v,{flexDirection:"row",gap:"small",justifyContent:"center",alignItems:"center",children:[n(S,{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(T,{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(ee,{onClick:()=>e(o.id),icon:n(S,{icon:ae}),variant:"linked"})]}),o.uploadPercentage&&n(ue,{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(A,{children:n(J,{src:t,cover:!0})}):e.name.endsWith(".pdf")?n(A,{children:n(S,{icon:re})}):n(A,{children:n(S,{icon:ne})})}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 f;let m={type:"REMOVE",files:t.files.filter(l=>l.id!==r),payload:t.files.find(l=>l.id===r)};(f=e.onChange)==null||f.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 y;let m=M(r,e.maxSize),f=$(m),l=[...t.files,...f],u={files:l,type:"ADD",payload:f};e.single&&(l=f,u={files:l,type:"REPLACE",payload:l[0]}),(y=e.onChange)==null||y.call(e,u),o(u)},"addFiles"),updateFileProgress:i((r,m,f,l)=>{var s;let u=t.files.find(g=>g.id===r),y=i(()=>({uploadCompleted:f,uploadError:!f,uploadResponse:l||void 0}),"uploadResponse"),h={...u,...m!==void 0?i(()=>({uploadLoaded:q(m),uploadPercentage:`${Math.min(m/u.file.size*100,100).toFixed(0)}%`}),"progressStatus")():{},...f!==void 0?y():{}},w={files:t.files.map(g=>g.id===h.id?h:g),type:"UPDATE",payload:h};(s=e.onChange)==null||s.call(e,w),o(w)},"updateFileProgress")}}i(ve,"useFileState");import{jsx as B}from"react/jsx-runtime";var _e=qe((e,t)=>{let{accept:o,maxSize:c,singleFile:d,uploadConfig:x,onUnsupportedFile:p,customButton:F,style:r,className:m,onChange:f,initialFiles:l,name:u}=e,[y,a]=Ge(!1),{active:h,enable:O,disable:w}=te(),{files:s,setInitialFiles:g,addFiles:P,removeFile:D,removeAll:we,updateFileProgress:H}=ve({single:d,maxSize:c,onChange:f}),{getFiles:Pe}=ie({accept:o,single:d,onFilesSelect:P,onUnsupportedFile:p}),{isDragging:W,events:Ue}=oe({accept:o,single:d,onDrop:P});$e(()=>{let U=Array.isArray(l)?l.length>0:!!l;!y&&!s.files.length&&U&&(a(!0),g(l))},[y,a,l,g,s.files]);let Se=Me(async U=>{if(s.files.length){O();let Re=s.files.map(({id:De,file:Le})=>Ce({file:Le,fieldName:U.formDataFileKey||"file",requestConfig:{...x,...U},onProgress:i((ke,Ae,Be)=>{H(De,ke,Ae,Be)},"onProgress")})),Te=await Promise.all(Re);return w(),Te}return[]},[s.files,x,O,H,w]);He(t,()=>({submit:Se,addFiles:P,removeFile:D,removeAll:we,files:s.files}));let L=We(null),E=i(()=>{var U;(U=L==null?void 0:L.current)==null||U.click()},"openFileDialog"),Oe=F?F({files:s.files,isDragging:W,openFileDialog:E,isSubmitting:h}):B(Y,{onClick:E,variant:"outlined",color:"secondary",size:"small",disabled:e.readOnly||e.disabled||h,isLoading:h,type:"button",children:e.buttonText||"Enviar arquivos"}),G={...e,...!e.readOnly&&{events:Ue,isDragging:W},files:s.files,style:r,className:m,removeFile:D,openFileDialog:E,openFileDialogButton:Oe,name:u},_=B(se,{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?B(he,{...G,inputFile:_}):B(ye,{...G,inputFile:_})});_e.displayName="UploadCard";import{useCallback as Ke,useState as Ie}from"react";var Nt=i(()=>{let[e,t]=Ie([]),[o,c]=Ie([]);return{onFilesChange:Ke(p=>{if(!p.payload)return;let{payload:F}=p;p.type==="ADD"?c(r=>z(r,F)):p.type==="REMOVE"&&t(r=>z(r,F))},[]),removedFiles:e,addedFiles:o,clear:i(p=>{p==="removedFiles"&&t([]),p==="addedFiles"&&c([])},"clear")}},"useFileControl");export{ce as a,j as b,N as c,T as d,fe as e,pe as f,ue as g,A as h,ge as i,Fe as j,_e as k,Nt as l};
@@ -1 +0,0 @@
1
- import{a as c}from"./chunk-EXHRZZ5E.esm.js";import{a as l,b as s}from"./chunk-NHE4GLQK.esm.js";import{g as n}from"./chunk-AXUWC2WH.esm.js";import{a as m}from"./chunk-GZONWSRB.esm.js";import{forwardRef as g}from"react";var h=n(s).withConfig({componentId:"sc-1ulk0ua-0"})(["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;"),p=n(l).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},f)=>{let r=i==="vertical",x=t!=null?t:`edge.${D}`,d=m((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(p,{role:"separator","aria-label":typeof e=="string"?e:void 0,flexDirection:"row",alignItems:"center",gap:"small",my:o,...a,ref:f,children:[d({flex:"fluid",my:0}),typeof e=="string"?v(c,{fontSize:"micro",lineHeight:"tight",color:"ink.secondary",whiteSpace:"nowrap",children:e}):e,d({flex:"fluid",my:0})]}):d({...a,ref:f})});y.displayName="Divider";export{h as a,p as b,y as c};
@@ -1,26 +0,0 @@
1
- import{a as d,b as x,c as y,f as h}from"./chunk-GC2ZV3CY.esm.js";import{a as c}from"./chunk-NHE4GLQK.esm.js";import{c as o}from"./chunk-KKFQPSAE.esm.js";import{d as s}from"./chunk-RWLJNXLX.esm.js";import{b as f}from"./chunk-IK5Z5C2R.esm.js";import{b as u}from"./chunk-OXQA5WD3.esm.js";import{b as p}from"./chunk-TZQMBDGR.esm.js";import{a as m}from"./chunk-GZONWSRB.esm.js";var T=o("textarea").withConfig({componentId:"apollion-textarea"})`
2
- -webkit-appearance: none;
3
- width: 100%;
4
- outline: none;
5
- display: block;
6
- transition: ${({theme:e})=>e.animation.transitions.short};
7
-
8
- ${d}
9
-
10
- ${y}
11
-
12
- ${x}
13
-
14
- ${s({borderRadius:"xs",borderWidth:"thin",borderStyle:"solid"})}
15
- ${f({fontFamily:"main"})}
16
- ${u({p:"small"})}
17
- ${p({bgColor:"surface.paper"})}
18
- `,S=o(c).withConfig({componentId:"apollion-textarea-counter"})`
19
- position: absolute;
20
- right: 0;
21
- bottom: 0;
22
- line-height: 1.2rem;
23
- font-size: 0.6875rem;
24
- transform: translateY(100%);
25
- color: ${({theme:e})=>e.colors.ink.primary};
26
- `;import{forwardRef as R,useState as k}from"react";import{jsx as V,jsxs as A}from"react/jsx-runtime";var w={expansive:{fontSize:"medium",py:"medium"},medium:{fontSize:"medium",py:"small"},compact:{fontSize:"medium",py:"xs"},micro:{py:"micro",fontSize:"small",borderRadius:"micro"}},g=R(({value:e,defaultValue:C,onChange:a,maxLengthHint:b="characters left",variant:n="default",resize:I=!1,size:z="medium",...r},F)=>{let t=e!==void 0,[i,$]=k(C||""),P=t?e:i;return A(h,{variant:n,children:[V(T,{value:t?e:i,defaultValue:void 0,variant:n,onChange:m(l=>{t||$(l.target.value),a&&a(l)},"handleChange"),...w[z],...r,ref:F,style:{resize:I?"both":"none"}}),r.maxLength&&A(S,{children:[Number(r.maxLength)-(P||"").length," ",b]})]})});g.displayName="TextArea";export{T as a,S as b,g as c};
@@ -1 +0,0 @@
1
- import{b as o}from"./chunk-D4ZBSTRO.esm.js";import{g as e}from"./chunk-AXUWC2WH.esm.js";var t=e(o).withConfig({componentId:"sc-atg43m-0"})(["display:flex;"]),r=t;export{t as a,r as b};
@@ -1 +0,0 @@
1
- import{a as s}from"./chunk-EXHRZZ5E.esm.js";import{a as d}from"./chunk-NHE4GLQK.esm.js";import{j as H}from"./chunk-BV6GHAF7.esm.js";import{g as c}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";var A=l(({theme:t,disabled:y,variant:r})=>{let e=t.colors.ink.primary,a=t.colors.ink.secondary;if(r!=="default"){let{base:g,dark:n}=r==="success"?t.colors.success:t.colors.danger;e=n,a=g}return y&&(e=t.colors.ink.disabled),{"--colorLabel":e,"--colorHint":a}},"getFieldColor"),v=c(d).withConfig({componentId:"sc-1iiu1tt-0"})(["width:100%;justify-content:center;",";"],A),k=c(s).withConfig({componentId:"sc-1iiu1tt-1"})(["color:var(--color-label);"]),I=c(s).withConfig({componentId:"sc-1iiu1tt-2"})(["color:var(--color-label);"]),L=c(s).withConfig({componentId:"sc-1iiu1tt-3"})(["color:var(--color-hint);min-height:","em;"],({theme:t})=>t.font.lineHeight.tight);import{jsx as f,jsxs as O}from"react/jsx-runtime";var j=l(({name:t,value:y,label:r,inputProps:e,hintText:a,variant:g,setFieldValue:n,readOnly:m,readOnlyText:z="apenas leitura",hintErrorText:E="Something went wrong",hintSuccessText:R="Everything is alright",...o})=>{var w;let V=o.component,S=!!o.errors||o.error,b=!!o.success,h=(w=e==null?void 0:e.readOnly)!=null?w:m,D=l(i=>{if(!m&&(e!=null&&e.onChange&&e.onChange(i),n)){let x=i;H(i)&&(x=i.target.type==="checkbox"||i.target.type==="radio"?i.target.checked:i.target.value),n(t,x)}},"onChange"),B=l(()=>{if(m)return;if(typeof(e==null?void 0:e.reset)=="function"){e.reset();return}let i=e==null?void 0:e.type;n&&n(t,i==="checkbox"||i==="radio"?!1:"")},"resetField"),N=typeof o.errors=="string"?o.errors:E,C=S&&N||b&&R||a,F=g||S&&"error"||b&&"success"||"default",W=!r||o.hideLabel,q=h||o.optionalText,u=h?z:o.optionalText,T=e&&e.disabled;return O(v,{area:o.area,variant:F,disabled:T,gap:"micro",...o.fieldProps,children:[O(d,{flexDirection:"row",justifyContent:"between",isHidden:W,children:[f(k,{as:"label",htmlFor:t,fontSize:"xs",fontWeight:"bold",lineHeight:"regular",children:r}),q&&f(I,{fontStyle:"italic",lineHeight:"tight",fontSize:"micro",children:u})]}),f(V,{...e,id:t,name:t,value:y,variant:F,readOnly:h,onChange:D,reset:B}),f(L,{lineHeight:"tight",fontSize:"micro",isHidden:T||!C,children:C})]})},"FieldComponent");j.displayName="Field";export{j as a};
@@ -1 +0,0 @@
1
- import{b as d}from"./chunk-D4ZBSTRO.esm.js";import{c as a}from"./chunk-WI3WPCW3.esm.js";import{g as o}from"./chunk-AXUWC2WH.esm.js";import{a as i}from"./chunk-GZONWSRB.esm.js";var p=i(e=>{var t;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%), ${(t=e.max)!=null?t:"1fr"}))`},"resolveColumns"),f=i((e,r)=>({gridTemplateColumns:p(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"),u=i(({medias:e,theme:r})=>e?"xs"in e?Object.keys(e).reduce((n,t)=>({...n,[r.breakpoints.up(t)]:f(r,e[t])}),{}):f(r,e):{},"setGridBreakpoints"),s=o(d).withConfig({componentId:"sc-11fh3lu-0"})(["display:grid;",""],u),g=s;export{u as a,s as b,g as c};
@@ -1,43 +0,0 @@
1
- import{c as d}from"./chunk-KKFQPSAE.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 p(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(p,"chevron");function g({$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(g,"variantColors");function S(e){let{theme:o}=e,{accent:s,text:c,border:t}=g(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 h({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(h,"disabledStyle");var i=d("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})=>p(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
- ${h}
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})=>p(e.colors.disabled.color)};
42
- }
43
- `;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,...m},b)=>u(i,{ref:b,$size:o,$variant:s,$radius:c,$width:t,...m,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 +0,0 @@
1
- import{c as k}from"./chunk-X64PGKAO.esm.js";import{o as C}from"./chunk-DAT6GD4T.esm.js";import{b as g}from"./chunk-CTNZPJ47.esm.js";import{e as b}from"./chunk-EXHRZZ5E.esm.js";import{b as x}from"./chunk-A77HKHNQ.esm.js";import{a as h,b as w}from"./chunk-NHE4GLQK.esm.js";import{b as S}from"./chunk-TZQMBDGR.esm.js";import{g as u}from"./chunk-AXUWC2WH.esm.js";import{a as l}from"./chunk-GZONWSRB.esm.js";import{forwardRef as B,useEffect as D,useState as H}from"react";var T=u(h).withConfig({componentId:"sc-1bknes7-0"})(["list-style:none;padding:0;margin:0;"]),E=u(w).withConfig({componentId:"sc-1bknes7-1"})(["padding:8px 12px;cursor:pointer;&:hover{","}",""],S(({isSelected:t})=>!t&&{bgColor:"muted"}),S(({isSelected:t})=>t&&{bgColor:"wash.selected"}));import{jsx as a,jsxs as U}from"react/jsx-runtime";var M=l(({item:t,showCheckIcon:d,action:p})=>{var f;if(!t.title)throw new Error("You need to pass a title to you object inside the list");let m=d&&t.isSelected&&!t.to,i=l(()=>!t.to&&p(),"onClickItem"),o=U(E,{as:"li",gap:"xs",width:"100%",flexDirection:"row",alignItems:"center",borderRadius:"micro",isSelected:t.isSelected,onClick:i,children:[(f=t.icon)!=null?f:m&&a(g,{icon:C,color:"main"}),a(b,{whiteSpace:"nowrap",children:t.title})]});return t.to?a(k,{href:t.to,children:o}):o},"ListItem"),N=B(({content:t,multiple:d,exclusive:p,showCheckIcon:m,onSelectItems:i,onItemClick:o,...f},F)=>{let[y,I]=H(()=>t.map(e=>({id:x(5),isSelected:!1,...e})));D(()=>{I(e=>e.map((s,L)=>{var n;let r=(n=t[L])==null?void 0:n.isSelected;return r===void 0||r===s.isSelected?s:{...s,isSelected:r}}))},[t]);let R=l(e=>()=>{var n;let s=e.id,L=p&&!d?!0:!e.isSelected,r=y.map(c=>c.id===s?{...c,isSelected:L}:{...c,isSelected:d?c.isSelected:!1});if(I(r),i==null||i(r),o==null||o(e),e.action){let{action:c,icon:Y,...v}=e;(n=e.action)==null||n.call(e,v)}},"toggleItem");return a(T,{as:"ul",gap:"micro",...f,ref:F,children:y.map(e=>a(M,{item:e,showCheckIcon:m,action:R(e)},e.id))})});N.displayName="List";export{T as a,E as b,N as c};
@@ -1 +0,0 @@
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 +0,0 @@
1
- import{c as f}from"./chunk-W37MIT56.esm.js";import{a as l}from"./chunk-EXHRZZ5E.esm.js";import{a as p}from"./chunk-D4ZBSTRO.esm.js";import{b as d,g as s}from"./chunk-AXUWC2WH.esm.js";import{a as n}from"./chunk-GZONWSRB.esm.js";var a=s.input.withConfig({componentId:"sc-truao3-0"})(["position:absolute;left:0;top:0;margin:0;z-index:1;opacity:0;"]);a.displayName="input";var r=s(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 x({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(x,"inputVariantStyle");function g(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(g,"getDisabledStyle");var m=s(l).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),x,({theme:o,disabled:i})=>i&&g(o),a,r);import{jsx as c,jsxs as R}from"react/jsx-runtime";var b=n(({id:o,disabled:i,label:t=null,labelProps:e,variant:u="default",color:y,...h})=>R(m,{as:"label",htmlFor:o,variant:u,$color:y,disabled:i,children:[c(a,{...h,type:"radio",id:o,disabled:i}),c(r,{}),typeof t=="string"?c(l,{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 +0,0 @@
1
- import{a as r}from"./chunk-EXHRZZ5E.esm.js";import{b as f}from"./chunk-NHE4GLQK.esm.js";import{g as n}from"./chunk-AXUWC2WH.esm.js";import{forwardRef as I}from"react";var m=n(f).withConfig({componentId:"sc-1x3so2v-0"})(["display:inline-flex;font-family:",";& > svg,& > [class*='icon']{flex-shrink:0;}"],({theme:e})=>e.font.fontFamily.main);import{jsx as T,jsxs as y}from"react/jsx-runtime";var a=I(({icon:e,text:x,children:t,iconPosition:o="left",align:p="center",gap:s="xs",as:c="span",...l},i)=>y(m,{as:c,flexDirection:"row",alignItems:p,gap:s,...l,ref:i,children:[o==="left"&&e,T(r,{as:"span",children:t!=null?t:x}),o==="right"&&e]}));a.displayName="IconText";export{m as a,a as b};