@cfxjs/sirius-next-common 0.0.1 → 0.0.2-zg

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 (611) hide show
  1. package/dist/{components/AddressContainer/index.js → chunk-26BGPSLL.js} +30 -40
  2. package/dist/chunk-26BGPSLL.js.map +1 -0
  3. package/dist/{chunk-QNPGAFQK.js → chunk-3D3AULGE.js} +4 -4
  4. package/dist/{chunk-2CWEC36S.js.map → chunk-3D3AULGE.js.map} +1 -1
  5. package/dist/{chunk-CJQCVR64.js → chunk-3DSBII47.js} +19 -2
  6. package/dist/chunk-3DSBII47.js.map +1 -0
  7. package/dist/{chunk-GKAPQ7LN.js → chunk-43RJJ6FE.js} +44 -47
  8. package/dist/chunk-43RJJ6FE.js.map +1 -0
  9. package/dist/chunk-65X53DMW.js +47 -0
  10. package/dist/chunk-65X53DMW.js.map +1 -0
  11. package/dist/{chunk-AIAFDTQT.js → chunk-7CRUFCGX.js} +35 -20
  12. package/dist/chunk-7CRUFCGX.js.map +1 -0
  13. package/dist/chunk-7JJQSXBV.js +141 -0
  14. package/dist/chunk-7JJQSXBV.js.map +1 -0
  15. package/dist/chunk-7OAWG2IZ.js +44 -0
  16. package/dist/chunk-7OAWG2IZ.js.map +1 -0
  17. package/dist/{chunk-NCT7N5ZO.js → chunk-7SH3YCJ7.js} +98 -4
  18. package/dist/chunk-7SH3YCJ7.js.map +1 -0
  19. package/dist/chunk-A7RMNSCW.js +250 -0
  20. package/dist/chunk-A7RMNSCW.js.map +1 -0
  21. package/dist/{chunk-JZRCC4Q7.js → chunk-AA66QSDL.js} +30 -6
  22. package/dist/{chunk-M2WED4GE.js.map → chunk-AA66QSDL.js.map} +1 -1
  23. package/dist/{chunk-RLZTFLPD.js → chunk-ADPYV4OL.js} +36 -2
  24. package/dist/chunk-ADPYV4OL.js.map +1 -0
  25. package/dist/{chunk-54J4VH5Z.js → chunk-AMXXTGCE.js} +30 -6
  26. package/dist/chunk-AMXXTGCE.js.map +1 -0
  27. package/dist/chunk-BSSE7DI3.js +257 -0
  28. package/dist/chunk-BSSE7DI3.js.map +1 -0
  29. package/dist/chunk-CBLGPZ6N.js +108 -0
  30. package/dist/chunk-CBLGPZ6N.js.map +1 -0
  31. package/dist/{chunk-4V4K4OJ4.js → chunk-CDYJDIZL.js} +6 -6
  32. package/dist/{chunk-4V4K4OJ4.js.map → chunk-CDYJDIZL.js.map} +1 -1
  33. package/dist/{chunk-OBX6RJEW.js → chunk-CFRPDLWO.js} +1 -1
  34. package/dist/{chunk-IM77KPX5.js.map → chunk-CFRPDLWO.js.map} +1 -1
  35. package/dist/{chunk-2CS64Q56.js → chunk-CLGITWOX.js} +43 -18
  36. package/dist/chunk-CLGITWOX.js.map +1 -0
  37. package/dist/{chunk-2ONZ5M75.js → chunk-CQLD2WE7.js} +66 -1211
  38. package/dist/chunk-CQLD2WE7.js.map +1 -0
  39. package/dist/chunk-CZ3CBSQG.js +141 -0
  40. package/dist/chunk-CZ3CBSQG.js.map +1 -0
  41. package/dist/{chunk-MCZT23D6.js → chunk-D3CVJAPF.js} +30 -6
  42. package/dist/chunk-D3CVJAPF.js.map +1 -0
  43. package/dist/{chunk-YVIZX6QJ.js → chunk-DOYWQVTM.js} +46 -16
  44. package/dist/chunk-DOYWQVTM.js.map +1 -0
  45. package/dist/{chunk-UH5JZYVE.js → chunk-DPSCMWIB.js} +4 -4
  46. package/dist/{chunk-5AEWLDN5.js.map → chunk-DPSCMWIB.js.map} +1 -1
  47. package/dist/{chunk-JCVKAQDU.js → chunk-ESE4IOXB.js} +8 -7
  48. package/dist/chunk-ESE4IOXB.js.map +1 -0
  49. package/dist/{chunk-LDWHYCAM.js → chunk-EUWX4WGR.js} +9 -3
  50. package/dist/chunk-EUWX4WGR.js.map +1 -0
  51. package/dist/{chunk-R5ECXT74.js → chunk-EVCNR7M7.js} +2 -2
  52. package/dist/{chunk-R5ECXT74.js.map → chunk-EVCNR7M7.js.map} +1 -1
  53. package/dist/{chunk-6ITBEFLS.js → chunk-GUCQ4F2G.js} +4 -4
  54. package/dist/{chunk-6ITBEFLS.js.map → chunk-GUCQ4F2G.js.map} +1 -1
  55. package/dist/{chunk-25QWXIAS.js → chunk-HRW4BUP4.js} +18 -1
  56. package/dist/chunk-HRW4BUP4.js.map +1 -0
  57. package/dist/{chunk-M6AOTEU6.js → chunk-HVLEBJG6.js} +30 -6
  58. package/dist/chunk-HVLEBJG6.js.map +1 -0
  59. package/dist/{chunk-AEYHX3HP.js → chunk-IEPHKAPT.js} +2 -2
  60. package/dist/{chunk-ZSP5VMHE.js.map → chunk-IEPHKAPT.js.map} +1 -1
  61. package/dist/chunk-ILJFYWLB.js +353 -0
  62. package/dist/chunk-ILJFYWLB.js.map +1 -0
  63. package/dist/chunk-JUKLHM7G.js +108 -0
  64. package/dist/chunk-JUKLHM7G.js.map +1 -0
  65. package/dist/{chunk-DYCUWPED.js → chunk-K3I5KE22.js} +10 -8
  66. package/dist/chunk-K3I5KE22.js.map +1 -0
  67. package/dist/chunk-KGSYZCQQ.js +257 -0
  68. package/dist/chunk-KGSYZCQQ.js.map +1 -0
  69. package/dist/chunk-KJU5OLS3.js +150 -0
  70. package/dist/chunk-KJU5OLS3.js.map +1 -0
  71. package/dist/{chunk-4ZNTVKIA.js → chunk-KSQ43WMM.js} +2 -2
  72. package/dist/chunk-KTFYV3XJ.js +3629 -0
  73. package/dist/chunk-KTFYV3XJ.js.map +1 -0
  74. package/dist/chunk-KVUV4ZYP.js +108 -0
  75. package/dist/chunk-KVUV4ZYP.js.map +1 -0
  76. package/dist/{chunk-UBCDOZDY.js → chunk-L7LRX5XU.js} +62 -1218
  77. package/dist/chunk-L7LRX5XU.js.map +1 -0
  78. package/dist/{chunk-YO35FTDP.js → chunk-LHGQPHTE.js} +43 -18
  79. package/dist/chunk-LHGQPHTE.js.map +1 -0
  80. package/dist/{chunk-AGOKIWZZ.js → chunk-LKVGVLCW.js} +2 -2
  81. package/dist/chunk-LKVGVLCW.js.map +1 -0
  82. package/dist/{chunk-5IEZKHNQ.js → chunk-LRCAKRPK.js} +1 -1
  83. package/dist/{chunk-5IEZKHNQ.js.map → chunk-LRCAKRPK.js.map} +1 -1
  84. package/dist/{chunk-QEA5CFVU.js → chunk-MWUMNQPB.js} +10 -8
  85. package/dist/chunk-MWUMNQPB.js.map +1 -0
  86. package/dist/{chunk-C6QGEHOL.js → chunk-NDCMVJNJ.js} +28 -4
  87. package/dist/chunk-NDCMVJNJ.js.map +1 -0
  88. package/dist/{chunk-45GWWTGX.js → chunk-NQNVZ2Y2.js} +43 -18
  89. package/dist/chunk-NQNVZ2Y2.js.map +1 -0
  90. package/dist/chunk-NWAEIKOD.js +108 -0
  91. package/dist/chunk-NWAEIKOD.js.map +1 -0
  92. package/dist/{chunk-NMFJLSY5.js → chunk-P25K2ZQD.js} +6 -5
  93. package/dist/chunk-P25K2ZQD.js.map +1 -0
  94. package/dist/chunk-PH2C43JH.js +257 -0
  95. package/dist/chunk-PH2C43JH.js.map +1 -0
  96. package/dist/chunk-PT3E35FJ.js +141 -0
  97. package/dist/chunk-PT3E35FJ.js.map +1 -0
  98. package/dist/{chunk-HR2KNVPF.js → chunk-Q6F2K6RX.js} +10 -8
  99. package/dist/chunk-Q6F2K6RX.js.map +1 -0
  100. package/dist/chunk-QF5ASUBG.js +3629 -0
  101. package/dist/chunk-QF5ASUBG.js.map +1 -0
  102. package/dist/{chunk-WFCK7FPT.js → chunk-QKQG47IV.js} +31 -9
  103. package/dist/chunk-QKQG47IV.js.map +1 -0
  104. package/dist/chunk-QXH3T2BM.js +13 -0
  105. package/dist/chunk-QXH3T2BM.js.map +1 -0
  106. package/dist/{chunk-NO7KRLGV.js → chunk-RD7ICJJF.js} +8 -7
  107. package/dist/chunk-RD7ICJJF.js.map +1 -0
  108. package/dist/{chunk-T7BICPTT.js → chunk-RI63CIWZ.js} +60 -1223
  109. package/dist/chunk-RI63CIWZ.js.map +1 -0
  110. package/dist/{chunk-OK7ZHYID.js → chunk-RTUI55OW.js} +37 -21
  111. package/dist/chunk-RTUI55OW.js.map +1 -0
  112. package/dist/{chunk-2IQSVQYV.js → chunk-RVARUZVC.js} +3 -3
  113. package/dist/{chunk-WML236LE.js → chunk-RWMP7K3H.js} +4 -4
  114. package/dist/{chunk-624443IP.js → chunk-TLC6WXQ6.js} +2 -2
  115. package/dist/{chunk-624443IP.js.map → chunk-TLC6WXQ6.js.map} +1 -1
  116. package/dist/{chunk-FXBVUGRI.js → chunk-TOKKKTFG.js} +6 -6
  117. package/dist/chunk-TOKKKTFG.js.map +1 -0
  118. package/dist/{chunk-5AEWLDN5.js → chunk-TQ4T3Y2Y.js} +4 -4
  119. package/dist/{chunk-H3IMRG3I.js.map → chunk-TQ4T3Y2Y.js.map} +1 -1
  120. package/dist/chunk-TQS322QQ.js +3629 -0
  121. package/dist/chunk-TQS322QQ.js.map +1 -0
  122. package/dist/{chunk-AURJNQGW.js → chunk-TXNXFHTS.js} +10 -8
  123. package/dist/chunk-TXNXFHTS.js.map +1 -0
  124. package/dist/{chunk-OWEKHXL6.js → chunk-UZEZWJOB.js} +2 -2
  125. package/dist/{chunk-BU3LY3N5.js.map → chunk-UZEZWJOB.js.map} +1 -1
  126. package/dist/chunk-VALKQOSX.js +150 -0
  127. package/dist/chunk-VALKQOSX.js.map +1 -0
  128. package/dist/{chunk-OYJGSKTU.js → chunk-VGCTU7HB.js} +43 -18
  129. package/dist/chunk-VGCTU7HB.js.map +1 -0
  130. package/dist/{chunk-XQHSIGUO.js → chunk-VHHCKHYE.js} +37 -21
  131. package/dist/chunk-VHHCKHYE.js.map +1 -0
  132. package/dist/{chunk-BU3LY3N5.js → chunk-VXOIIFIY.js} +2 -2
  133. package/dist/{chunk-MABMW3F2.js.map → chunk-VXOIIFIY.js.map} +1 -1
  134. package/dist/{chunk-2SJLVUR5.js → chunk-WPMARG3B.js} +3 -3
  135. package/dist/{chunk-MABMW3F2.js → chunk-WPQJIRK6.js} +2 -2
  136. package/dist/{chunk-OWEKHXL6.js.map → chunk-WPQJIRK6.js.map} +1 -1
  137. package/dist/chunk-XKKCZHHP.js +150 -0
  138. package/dist/chunk-XKKCZHHP.js.map +1 -0
  139. package/dist/{chunk-AQPHS44A.js → chunk-XZPP35AP.js} +2 -2
  140. package/dist/{chunk-AQPHS44A.js.map → chunk-XZPP35AP.js.map} +1 -1
  141. package/dist/{chunk-APPX7GEO.js → chunk-ZAKHKJLN.js} +3 -3
  142. package/dist/{chunk-5A2Q4BEC.js.map → chunk-ZAKHKJLN.js.map} +1 -1
  143. package/dist/{chunk-SQZ7HX2Q.js → chunk-ZRKRTAKY.js} +56 -24
  144. package/dist/chunk-ZRKRTAKY.js.map +1 -0
  145. package/dist/components/AddressContainer/CoreAddressContainer.d.ts +8 -0
  146. package/dist/components/AddressContainer/CoreAddressContainer.js +21 -0
  147. package/dist/components/AddressContainer/EVMAddressContainer.d.ts +8 -0
  148. package/dist/components/AddressContainer/EVMAddressContainer.js +19 -0
  149. package/dist/components/AddressContainer/EVMAddressContainer.js.map +1 -0
  150. package/dist/components/AddressContainer/addressSwitcher.d.ts +3 -4
  151. package/dist/components/AddressContainer/addressSwitcher.js +11 -9
  152. package/dist/components/AddressContainer/addressView.d.ts +0 -3
  153. package/dist/components/AddressContainer/addressView.js +10 -8
  154. package/dist/components/AddressContainer/label.js +6 -4
  155. package/dist/components/AddressContainer/types.d.ts +26 -9
  156. package/dist/components/Button/BaseButton/index.d.ts +1 -1
  157. package/dist/components/Button/index.js +4 -4
  158. package/dist/components/Charts/BreadcrumbNav.js +3 -3
  159. package/dist/components/Charts/ChartOptions.js +2 -2
  160. package/dist/components/Charts/PreviewChartTemplate.js +7 -7
  161. package/dist/components/Charts/PreviewTitle.js +4 -4
  162. package/dist/components/Charts/StockChartTemplate.js +11 -11
  163. package/dist/components/Charts/config.d.ts +1 -1
  164. package/dist/components/CookieTip/index.js +2 -2
  165. package/dist/components/CopyButton/index.js +8 -8
  166. package/dist/components/CopyButton/index.js.map +1 -1
  167. package/dist/components/CountDown/index.js +7 -7
  168. package/dist/components/CountDown/index.js.map +1 -1
  169. package/dist/components/Description/index.d.ts +1 -1
  170. package/dist/components/DownloadCSV/index.js +21 -14
  171. package/dist/components/DownloadCSV/index.js.map +1 -1
  172. package/dist/components/Dropdown/index.js +2 -2
  173. package/dist/components/Dropdown/index.js.map +1 -1
  174. package/dist/components/Empty/index.d.ts +1 -1
  175. package/dist/components/Empty/index.js +1 -1
  176. package/dist/components/FileUpload/index.js.map +1 -1
  177. package/dist/components/GasPriceDropdown/index.d.ts +5 -2
  178. package/dist/components/GasPriceDropdown/index.js +32 -23
  179. package/dist/components/GasPriceDropdown/index.js.map +1 -1
  180. package/dist/components/IncreasePercent/Icons.d.ts +6 -0
  181. package/dist/components/IncreasePercent/Icons.js +9 -0
  182. package/dist/components/IncreasePercent/Icons.js.map +1 -0
  183. package/dist/components/IncreasePercent/index.d.ts +20 -0
  184. package/dist/components/IncreasePercent/index.js +42 -0
  185. package/dist/components/IncreasePercent/index.js.map +1 -0
  186. package/dist/components/InfoIconWithTooltip/index.js +5 -2
  187. package/dist/components/InfoIconWithTooltip/index.js.map +1 -1
  188. package/dist/components/Link/index.js +2 -2
  189. package/dist/components/List/index.js +3 -3
  190. package/dist/components/List/index.js.map +1 -1
  191. package/dist/components/Modal/index.js +4 -3
  192. package/dist/components/Price/index.js +7 -6
  193. package/dist/components/Price/index.js.map +1 -1
  194. package/dist/components/Remark/index.js +1 -1
  195. package/dist/components/Select/index.d.ts +3 -1
  196. package/dist/components/Select/index.js +72 -42
  197. package/dist/components/Select/index.js.map +1 -1
  198. package/dist/components/Select/select.d.ts +1 -2
  199. package/dist/components/Select/select.js +5 -6
  200. package/dist/components/Skeleton/index.d.ts +1 -1
  201. package/dist/components/SkeletonContainer/index.d.ts +1 -1
  202. package/dist/components/Text/index.d.ts +2 -1
  203. package/dist/components/Text/index.js +7 -6
  204. package/dist/components/Tooltip/index.d.ts +3 -2
  205. package/dist/components/Tooltip/index.js +5 -2
  206. package/dist/components/TransactionAction/constants.d.ts +6 -0
  207. package/dist/components/TransactionAction/constants.js +13 -0
  208. package/dist/components/TransactionAction/constants.js.map +1 -0
  209. package/dist/components/TransactionAction/coreTransactionAction.d.ts +12 -0
  210. package/dist/components/TransactionAction/coreTransactionAction.js +332 -0
  211. package/dist/components/TransactionAction/coreTransactionAction.js.map +1 -0
  212. package/dist/components/TransactionAction/evmTransactionAction.d.ts +12 -0
  213. package/dist/components/TransactionAction/evmTransactionAction.js +343 -0
  214. package/dist/components/TransactionAction/evmTransactionAction.js.map +1 -0
  215. package/dist/store/index.d.ts +3 -2
  216. package/dist/store/index.js +5 -3
  217. package/dist/store/types.d.ts +7 -1
  218. package/dist/uno.css +26 -12
  219. package/dist/utils/address.d.ts +36 -21
  220. package/dist/utils/address.js +35 -23
  221. package/dist/utils/cache.d.ts +7 -0
  222. package/dist/utils/cache.js +56 -0
  223. package/dist/utils/cache.js.map +1 -0
  224. package/dist/utils/constants.d.ts +2 -1
  225. package/dist/utils/constants.js +4 -1
  226. package/dist/utils/ga.d.ts +1 -1
  227. package/dist/utils/ga.js +1 -1
  228. package/dist/utils/hooks/useAge.js +2 -1
  229. package/dist/utils/hooks/useAge.js.map +1 -1
  230. package/dist/utils/hooks/useENS.js +7 -7
  231. package/dist/utils/hooks/useGetTxnStatus.d.ts +4 -2
  232. package/dist/utils/hooks/useGetTxnStatus.js +23 -5
  233. package/dist/utils/hooks/useGetTxnStatus.js.map +1 -1
  234. package/dist/utils/index.d.ts +8 -2
  235. package/dist/utils/index.js +5 -2
  236. package/dist/utils/media.js +1 -1
  237. package/dist/utils/request.d.ts +3 -1
  238. package/dist/utils/request.js +8 -3
  239. package/dist/utils/rpcRequest.js +4 -3
  240. package/package.json +20 -19
  241. package/dist/chunk-25QWXIAS.js.map +0 -1
  242. package/dist/chunk-2C7IFQEA.js +0 -27
  243. package/dist/chunk-2CS64Q56.js.map +0 -1
  244. package/dist/chunk-2CWEC36S.js +0 -53
  245. package/dist/chunk-2GJPZIIE.js +0 -27
  246. package/dist/chunk-2IQSVQYV.js.map +0 -1
  247. package/dist/chunk-2ONZ5M75.js.map +0 -1
  248. package/dist/chunk-2QKLQSRN.js +0 -176
  249. package/dist/chunk-2QKLQSRN.js.map +0 -1
  250. package/dist/chunk-2SJLVUR5.js.map +0 -1
  251. package/dist/chunk-2TNEFW2L.js +0 -216
  252. package/dist/chunk-2TNEFW2L.js.map +0 -1
  253. package/dist/chunk-3X7J72D7.js +0 -100
  254. package/dist/chunk-3X7J72D7.js.map +0 -1
  255. package/dist/chunk-45GWWTGX.js.map +0 -1
  256. package/dist/chunk-45HVL3QX.js +0 -27
  257. package/dist/chunk-45HVL3QX.js.map +0 -1
  258. package/dist/chunk-4BMQQQOY.js +0 -216
  259. package/dist/chunk-4BMQQQOY.js.map +0 -1
  260. package/dist/chunk-4DOTFHHM.js +0 -27
  261. package/dist/chunk-4DOTFHHM.js.map +0 -1
  262. package/dist/chunk-4LQWWDGW.js +0 -707
  263. package/dist/chunk-4LQWWDGW.js.map +0 -1
  264. package/dist/chunk-4V7MBDIS.js +0 -25
  265. package/dist/chunk-4V7MBDIS.js.map +0 -1
  266. package/dist/chunk-4YULAKSU.js +0 -27
  267. package/dist/chunk-4YULAKSU.js.map +0 -1
  268. package/dist/chunk-52EWSX7J.js +0 -27
  269. package/dist/chunk-52EWSX7J.js.map +0 -1
  270. package/dist/chunk-54J4VH5Z.js.map +0 -1
  271. package/dist/chunk-54SPUUOZ.js +0 -27
  272. package/dist/chunk-54SPUUOZ.js.map +0 -1
  273. package/dist/chunk-5A2Q4BEC.js +0 -65
  274. package/dist/chunk-5IE7FJUY.js +0 -22
  275. package/dist/chunk-5IE7FJUY.js.map +0 -1
  276. package/dist/chunk-5IGPCDW5.js +0 -60
  277. package/dist/chunk-5IGPCDW5.js.map +0 -1
  278. package/dist/chunk-5NHNBLID.js +0 -22
  279. package/dist/chunk-5NHNBLID.js.map +0 -1
  280. package/dist/chunk-5S6I7VBP.js +0 -27
  281. package/dist/chunk-5S6I7VBP.js.map +0 -1
  282. package/dist/chunk-5V3UMMXJ.js +0 -120
  283. package/dist/chunk-5V3UMMXJ.js.map +0 -1
  284. package/dist/chunk-5VHCSEOH.js +0 -179
  285. package/dist/chunk-5VHCSEOH.js.map +0 -1
  286. package/dist/chunk-5ZLN3VJU.js +0 -27
  287. package/dist/chunk-5ZLN3VJU.js.map +0 -1
  288. package/dist/chunk-653SDFEF.js +0 -27
  289. package/dist/chunk-653SDFEF.js.map +0 -1
  290. package/dist/chunk-6A2TFIV6.js +0 -100
  291. package/dist/chunk-6A2TFIV6.js.map +0 -1
  292. package/dist/chunk-6CCBKPZA.js +0 -27
  293. package/dist/chunk-6CCBKPZA.js.map +0 -1
  294. package/dist/chunk-6FOBETW2.js +0 -46
  295. package/dist/chunk-6FOBETW2.js.map +0 -1
  296. package/dist/chunk-6LDPUF6C.js +0 -60
  297. package/dist/chunk-6LDPUF6C.js.map +0 -1
  298. package/dist/chunk-6R6YFBB2.js +0 -22
  299. package/dist/chunk-6R6YFBB2.js.map +0 -1
  300. package/dist/chunk-6UEVM7Q5.js +0 -22
  301. package/dist/chunk-6UEVM7Q5.js.map +0 -1
  302. package/dist/chunk-6Z6JAP4R.js +0 -216
  303. package/dist/chunk-6Z6JAP4R.js.map +0 -1
  304. package/dist/chunk-73DPEDDS.js +0 -22
  305. package/dist/chunk-73DPEDDS.js.map +0 -1
  306. package/dist/chunk-75JL3FSB.js +0 -22
  307. package/dist/chunk-75JL3FSB.js.map +0 -1
  308. package/dist/chunk-7J3MHSMU.js +0 -176
  309. package/dist/chunk-7J3MHSMU.js.map +0 -1
  310. package/dist/chunk-7JFLXBAL.js +0 -62
  311. package/dist/chunk-7JFLXBAL.js.map +0 -1
  312. package/dist/chunk-7SZUSPWM.js +0 -179
  313. package/dist/chunk-7SZUSPWM.js.map +0 -1
  314. package/dist/chunk-7TEFIAEG.js +0 -176
  315. package/dist/chunk-7TEFIAEG.js.map +0 -1
  316. package/dist/chunk-7U5APTOH.js +0 -27
  317. package/dist/chunk-7U5APTOH.js.map +0 -1
  318. package/dist/chunk-7XAT5SZJ.js +0 -27
  319. package/dist/chunk-7XAT5SZJ.js.map +0 -1
  320. package/dist/chunk-A2SOYUX7.js +0 -22
  321. package/dist/chunk-A2SOYUX7.js.map +0 -1
  322. package/dist/chunk-A356EUBR.js +0 -27
  323. package/dist/chunk-A356EUBR.js.map +0 -1
  324. package/dist/chunk-A63F3M2G.js +0 -22
  325. package/dist/chunk-A63F3M2G.js.map +0 -1
  326. package/dist/chunk-A6U63XS7.js +0 -22
  327. package/dist/chunk-A6U63XS7.js.map +0 -1
  328. package/dist/chunk-ADTPJ4V5.js +0 -22
  329. package/dist/chunk-ADTPJ4V5.js.map +0 -1
  330. package/dist/chunk-AEYHX3HP.js.map +0 -1
  331. package/dist/chunk-AGOKIWZZ.js.map +0 -1
  332. package/dist/chunk-AGT5MA6S.js +0 -61
  333. package/dist/chunk-AGT5MA6S.js.map +0 -1
  334. package/dist/chunk-AIAFDTQT.js.map +0 -1
  335. package/dist/chunk-APPX7GEO.js.map +0 -1
  336. package/dist/chunk-AQ6P63XV.js +0 -36
  337. package/dist/chunk-AQ6P63XV.js.map +0 -1
  338. package/dist/chunk-AQUETLB4.js +0 -707
  339. package/dist/chunk-AQUETLB4.js.map +0 -1
  340. package/dist/chunk-AURJNQGW.js.map +0 -1
  341. package/dist/chunk-AXQV56I2.js +0 -22
  342. package/dist/chunk-AXQV56I2.js.map +0 -1
  343. package/dist/chunk-AYF5K4JP.js +0 -216
  344. package/dist/chunk-AYF5K4JP.js.map +0 -1
  345. package/dist/chunk-AYFCTFCN.js +0 -22
  346. package/dist/chunk-AYFCTFCN.js.map +0 -1
  347. package/dist/chunk-BO72SP7F.js +0 -111
  348. package/dist/chunk-BO72SP7F.js.map +0 -1
  349. package/dist/chunk-C6QGEHOL.js.map +0 -1
  350. package/dist/chunk-CBRX2B6Y.js +0 -22
  351. package/dist/chunk-CBRX2B6Y.js.map +0 -1
  352. package/dist/chunk-CIJA77I4.js +0 -3459
  353. package/dist/chunk-CIJA77I4.js.map +0 -1
  354. package/dist/chunk-CJOYNPNQ.js +0 -22
  355. package/dist/chunk-CJOYNPNQ.js.map +0 -1
  356. package/dist/chunk-CJQCVR64.js.map +0 -1
  357. package/dist/chunk-CXSJ4LQP.js +0 -62
  358. package/dist/chunk-CXSJ4LQP.js.map +0 -1
  359. package/dist/chunk-CXZHHWAG.js +0 -93
  360. package/dist/chunk-CXZHHWAG.js.map +0 -1
  361. package/dist/chunk-D2KNOIZJ.js +0 -27
  362. package/dist/chunk-D2KNOIZJ.js.map +0 -1
  363. package/dist/chunk-DWU7MK5E.js +0 -176
  364. package/dist/chunk-DWU7MK5E.js.map +0 -1
  365. package/dist/chunk-DYCUWPED.js.map +0 -1
  366. package/dist/chunk-E34G4YSV.js +0 -176
  367. package/dist/chunk-E34G4YSV.js.map +0 -1
  368. package/dist/chunk-ECJNCBFQ.js +0 -102
  369. package/dist/chunk-ECJNCBFQ.js.map +0 -1
  370. package/dist/chunk-ELG6GDH4.js +0 -27
  371. package/dist/chunk-ELG6GDH4.js.map +0 -1
  372. package/dist/chunk-ELZCOMBE.js +0 -707
  373. package/dist/chunk-ELZCOMBE.js.map +0 -1
  374. package/dist/chunk-ESAPWIDV.js +0 -63
  375. package/dist/chunk-ESAPWIDV.js.map +0 -1
  376. package/dist/chunk-EXW5F6NL.js +0 -46
  377. package/dist/chunk-EXW5F6NL.js.map +0 -1
  378. package/dist/chunk-F2TMU3AL.js +0 -61
  379. package/dist/chunk-F2TMU3AL.js.map +0 -1
  380. package/dist/chunk-F2UNHDUR.js +0 -16
  381. package/dist/chunk-F2UNHDUR.js.map +0 -1
  382. package/dist/chunk-FAGFAIUU.js +0 -27
  383. package/dist/chunk-FAGFAIUU.js.map +0 -1
  384. package/dist/chunk-FCMOSB7E.js +0 -65
  385. package/dist/chunk-FCMOSB7E.js.map +0 -1
  386. package/dist/chunk-FLVGMPHV.js +0 -216
  387. package/dist/chunk-FLVGMPHV.js.map +0 -1
  388. package/dist/chunk-FSLH4MIP.js +0 -62
  389. package/dist/chunk-FSLH4MIP.js.map +0 -1
  390. package/dist/chunk-FXBVUGRI.js.map +0 -1
  391. package/dist/chunk-G24D2NRU.js +0 -22
  392. package/dist/chunk-G24D2NRU.js.map +0 -1
  393. package/dist/chunk-GKAPQ7LN.js.map +0 -1
  394. package/dist/chunk-GUHILBGR.js +0 -63
  395. package/dist/chunk-GUHILBGR.js.map +0 -1
  396. package/dist/chunk-H3IMRG3I.js +0 -53
  397. package/dist/chunk-HA7FJBYQ.js +0 -60
  398. package/dist/chunk-HA7FJBYQ.js.map +0 -1
  399. package/dist/chunk-HBVMUDIG.js +0 -46
  400. package/dist/chunk-HBVMUDIG.js.map +0 -1
  401. package/dist/chunk-HOA5BC7S.js +0 -27
  402. package/dist/chunk-HOA5BC7S.js.map +0 -1
  403. package/dist/chunk-HR2KNVPF.js.map +0 -1
  404. package/dist/chunk-I3WPTSFO.js +0 -179
  405. package/dist/chunk-I3WPTSFO.js.map +0 -1
  406. package/dist/chunk-IB7T4CUM.js +0 -3459
  407. package/dist/chunk-IB7T4CUM.js.map +0 -1
  408. package/dist/chunk-ICXZGCLG.js +0 -120
  409. package/dist/chunk-ICXZGCLG.js.map +0 -1
  410. package/dist/chunk-IJ4UPXWM.js +0 -35
  411. package/dist/chunk-IJ4UPXWM.js.map +0 -1
  412. package/dist/chunk-ILQXEOSB.js +0 -61
  413. package/dist/chunk-ILQXEOSB.js.map +0 -1
  414. package/dist/chunk-IM77KPX5.js +0 -78
  415. package/dist/chunk-IS76X5TE.js +0 -100
  416. package/dist/chunk-IS76X5TE.js.map +0 -1
  417. package/dist/chunk-J5NPC6NJ.js +0 -27
  418. package/dist/chunk-J5NPC6NJ.js.map +0 -1
  419. package/dist/chunk-JACMNCWT.js +0 -215
  420. package/dist/chunk-JACMNCWT.js.map +0 -1
  421. package/dist/chunk-JCVKAQDU.js.map +0 -1
  422. package/dist/chunk-JO46BYJI.js +0 -93
  423. package/dist/chunk-JO46BYJI.js.map +0 -1
  424. package/dist/chunk-JO5JHISS.js +0 -93
  425. package/dist/chunk-JO5JHISS.js.map +0 -1
  426. package/dist/chunk-JOYMTLWQ.js +0 -176
  427. package/dist/chunk-JOYMTLWQ.js.map +0 -1
  428. package/dist/chunk-JQXQDMRC.js +0 -61
  429. package/dist/chunk-JQXQDMRC.js.map +0 -1
  430. package/dist/chunk-JRAFUCCF.js +0 -22
  431. package/dist/chunk-JRAFUCCF.js.map +0 -1
  432. package/dist/chunk-JTZF2MUU.js +0 -27
  433. package/dist/chunk-JTZF2MUU.js.map +0 -1
  434. package/dist/chunk-JZRCC4Q7.js.map +0 -1
  435. package/dist/chunk-KAGD5CB6.js +0 -100
  436. package/dist/chunk-KAGD5CB6.js.map +0 -1
  437. package/dist/chunk-KAPSY6QS.js +0 -27
  438. package/dist/chunk-KAPSY6QS.js.map +0 -1
  439. package/dist/chunk-KK7XFZMX.js +0 -46
  440. package/dist/chunk-KK7XFZMX.js.map +0 -1
  441. package/dist/chunk-KKIH2YPS.js +0 -27
  442. package/dist/chunk-KKIH2YPS.js.map +0 -1
  443. package/dist/chunk-KMV3NISR.js +0 -65
  444. package/dist/chunk-KMV3NISR.js.map +0 -1
  445. package/dist/chunk-KSSYWOD6.js +0 -93
  446. package/dist/chunk-KSSYWOD6.js.map +0 -1
  447. package/dist/chunk-L2JESTXK.js +0 -62
  448. package/dist/chunk-L2JESTXK.js.map +0 -1
  449. package/dist/chunk-LDWHYCAM.js.map +0 -1
  450. package/dist/chunk-LHGVVIEZ.js +0 -707
  451. package/dist/chunk-LHGVVIEZ.js.map +0 -1
  452. package/dist/chunk-LJWHSXL5.js +0 -61
  453. package/dist/chunk-LJWHSXL5.js.map +0 -1
  454. package/dist/chunk-LRRZQJVV.js +0 -216
  455. package/dist/chunk-LRRZQJVV.js.map +0 -1
  456. package/dist/chunk-LYI4EQZ3.js +0 -120
  457. package/dist/chunk-LYI4EQZ3.js.map +0 -1
  458. package/dist/chunk-M2WED4GE.js +0 -107
  459. package/dist/chunk-M4L4LFJJ.js +0 -22
  460. package/dist/chunk-M4L4LFJJ.js.map +0 -1
  461. package/dist/chunk-M6AOTEU6.js.map +0 -1
  462. package/dist/chunk-MCZT23D6.js.map +0 -1
  463. package/dist/chunk-MH7KB7D2.js +0 -27
  464. package/dist/chunk-MH7KB7D2.js.map +0 -1
  465. package/dist/chunk-MSQQRS5T.js +0 -63
  466. package/dist/chunk-MSQQRS5T.js.map +0 -1
  467. package/dist/chunk-MZRFBOWD.js +0 -22
  468. package/dist/chunk-MZRFBOWD.js.map +0 -1
  469. package/dist/chunk-N6V3EZQS.js +0 -46
  470. package/dist/chunk-N6V3EZQS.js.map +0 -1
  471. package/dist/chunk-NCT7N5ZO.js.map +0 -1
  472. package/dist/chunk-NFAJYSI7.js +0 -27
  473. package/dist/chunk-NFAJYSI7.js.map +0 -1
  474. package/dist/chunk-NMFJLSY5.js.map +0 -1
  475. package/dist/chunk-NO7KRLGV.js.map +0 -1
  476. package/dist/chunk-NWSIXBRD.js +0 -93
  477. package/dist/chunk-NWSIXBRD.js.map +0 -1
  478. package/dist/chunk-O4QARNTB.js +0 -179
  479. package/dist/chunk-O4QARNTB.js.map +0 -1
  480. package/dist/chunk-OBX6RJEW.js.map +0 -1
  481. package/dist/chunk-OK7ZHYID.js.map +0 -1
  482. package/dist/chunk-ONRPKCIB.js +0 -27
  483. package/dist/chunk-ONRPKCIB.js.map +0 -1
  484. package/dist/chunk-OTMKUAHM.js +0 -60
  485. package/dist/chunk-OTMKUAHM.js.map +0 -1
  486. package/dist/chunk-OYJGSKTU.js.map +0 -1
  487. package/dist/chunk-P3STXDCF.js +0 -119
  488. package/dist/chunk-P3STXDCF.js.map +0 -1
  489. package/dist/chunk-PDGP7SBR.js +0 -43
  490. package/dist/chunk-PDGP7SBR.js.map +0 -1
  491. package/dist/chunk-PWBOQ74R.js +0 -22
  492. package/dist/chunk-PWBOQ74R.js.map +0 -1
  493. package/dist/chunk-Q7C37EMA.js +0 -93
  494. package/dist/chunk-Q7C37EMA.js.map +0 -1
  495. package/dist/chunk-QEA5CFVU.js.map +0 -1
  496. package/dist/chunk-QGFBNI4G.js +0 -22
  497. package/dist/chunk-QGFBNI4G.js.map +0 -1
  498. package/dist/chunk-QI52IGHS.js +0 -27
  499. package/dist/chunk-QI52IGHS.js.map +0 -1
  500. package/dist/chunk-QNPGAFQK.js.map +0 -1
  501. package/dist/chunk-R66RPCTU.js +0 -27
  502. package/dist/chunk-R66RPCTU.js.map +0 -1
  503. package/dist/chunk-R6JXPAOX.js +0 -50
  504. package/dist/chunk-R6JXPAOX.js.map +0 -1
  505. package/dist/chunk-RLWYAD7T.js +0 -27
  506. package/dist/chunk-RLWYAD7T.js.map +0 -1
  507. package/dist/chunk-RLZTFLPD.js.map +0 -1
  508. package/dist/chunk-ROAIYVDT.js +0 -22
  509. package/dist/chunk-ROAIYVDT.js.map +0 -1
  510. package/dist/chunk-RRIL2F7M.js +0 -100
  511. package/dist/chunk-RRIL2F7M.js.map +0 -1
  512. package/dist/chunk-RV66XRFR.js +0 -111
  513. package/dist/chunk-RV66XRFR.js.map +0 -1
  514. package/dist/chunk-RVRQ2255.js +0 -60
  515. package/dist/chunk-RVRQ2255.js.map +0 -1
  516. package/dist/chunk-S4JJPIDW.js +0 -22
  517. package/dist/chunk-S4JJPIDW.js.map +0 -1
  518. package/dist/chunk-SCXHS4HO.js +0 -709
  519. package/dist/chunk-SCXHS4HO.js.map +0 -1
  520. package/dist/chunk-SI5YJXRM.js +0 -709
  521. package/dist/chunk-SI5YJXRM.js.map +0 -1
  522. package/dist/chunk-SQZ7HX2Q.js.map +0 -1
  523. package/dist/chunk-T5PU6MYN.js +0 -22
  524. package/dist/chunk-T5PU6MYN.js.map +0 -1
  525. package/dist/chunk-T7BICPTT.js.map +0 -1
  526. package/dist/chunk-TGINZWRL.js +0 -27
  527. package/dist/chunk-TGINZWRL.js.map +0 -1
  528. package/dist/chunk-TJ6J4LRS.js +0 -22
  529. package/dist/chunk-TJ6J4LRS.js.map +0 -1
  530. package/dist/chunk-TS7XJ6JK.js +0 -22
  531. package/dist/chunk-TS7XJ6JK.js.map +0 -1
  532. package/dist/chunk-TU4M4EAJ.js +0 -177
  533. package/dist/chunk-TU4M4EAJ.js.map +0 -1
  534. package/dist/chunk-TZ25WIJN.js +0 -27
  535. package/dist/chunk-TZ25WIJN.js.map +0 -1
  536. package/dist/chunk-U3JDCY6F.js +0 -100
  537. package/dist/chunk-U3JDCY6F.js.map +0 -1
  538. package/dist/chunk-UBCDOZDY.js.map +0 -1
  539. package/dist/chunk-UDM4PGUT.js +0 -62
  540. package/dist/chunk-UDM4PGUT.js.map +0 -1
  541. package/dist/chunk-UH5JZYVE.js.map +0 -1
  542. package/dist/chunk-ULQ2DZPS.js +0 -22
  543. package/dist/chunk-ULQ2DZPS.js.map +0 -1
  544. package/dist/chunk-UQLL5CUW.js +0 -112
  545. package/dist/chunk-UQLL5CUW.js.map +0 -1
  546. package/dist/chunk-UT4JDBL4.js +0 -61
  547. package/dist/chunk-UT4JDBL4.js.map +0 -1
  548. package/dist/chunk-UV6SB23I.js +0 -27
  549. package/dist/chunk-UV6SB23I.js.map +0 -1
  550. package/dist/chunk-V5QBEPMZ.js +0 -763
  551. package/dist/chunk-V5QBEPMZ.js.map +0 -1
  552. package/dist/chunk-V75DEMU4.js +0 -27
  553. package/dist/chunk-V75DEMU4.js.map +0 -1
  554. package/dist/chunk-VF7HI7RV.js +0 -22
  555. package/dist/chunk-VF7HI7RV.js.map +0 -1
  556. package/dist/chunk-W6E7LNDA.js +0 -61
  557. package/dist/chunk-W6E7LNDA.js.map +0 -1
  558. package/dist/chunk-WATQ7EQT.js +0 -22
  559. package/dist/chunk-WATQ7EQT.js.map +0 -1
  560. package/dist/chunk-WDM5CTLH.js +0 -3459
  561. package/dist/chunk-WDM5CTLH.js.map +0 -1
  562. package/dist/chunk-WDQ2AOIO.js +0 -61
  563. package/dist/chunk-WDQ2AOIO.js.map +0 -1
  564. package/dist/chunk-WFCK7FPT.js.map +0 -1
  565. package/dist/chunk-WIAW4POL.js +0 -22
  566. package/dist/chunk-WIAW4POL.js.map +0 -1
  567. package/dist/chunk-WLKMIQSZ.js +0 -22
  568. package/dist/chunk-WLKMIQSZ.js.map +0 -1
  569. package/dist/chunk-WM2V2ZCY.js +0 -100
  570. package/dist/chunk-WM2V2ZCY.js.map +0 -1
  571. package/dist/chunk-X34QEZHK.js +0 -61
  572. package/dist/chunk-X34QEZHK.js.map +0 -1
  573. package/dist/chunk-X4Y3E73B.js +0 -107
  574. package/dist/chunk-X4Y3E73B.js.map +0 -1
  575. package/dist/chunk-XQHSIGUO.js.map +0 -1
  576. package/dist/chunk-Y4M2WIUH.js +0 -27
  577. package/dist/chunk-Y4M2WIUH.js.map +0 -1
  578. package/dist/chunk-YDGIQMYG.js +0 -37
  579. package/dist/chunk-YDGIQMYG.js.map +0 -1
  580. package/dist/chunk-YK5KNGDQ.js +0 -61
  581. package/dist/chunk-YK5KNGDQ.js.map +0 -1
  582. package/dist/chunk-YMHY5AZC.js +0 -22
  583. package/dist/chunk-YMHY5AZC.js.map +0 -1
  584. package/dist/chunk-YO35FTDP.js.map +0 -1
  585. package/dist/chunk-YRCX5J3B.js +0 -22
  586. package/dist/chunk-YRCX5J3B.js.map +0 -1
  587. package/dist/chunk-YVIZX6QJ.js.map +0 -1
  588. package/dist/chunk-Z2Z6JPLB.js +0 -27
  589. package/dist/chunk-Z2Z6JPLB.js.map +0 -1
  590. package/dist/chunk-ZCC5UWKB.js +0 -61
  591. package/dist/chunk-ZCC5UWKB.js.map +0 -1
  592. package/dist/chunk-ZDW2WA4O.js +0 -61
  593. package/dist/chunk-ZDW2WA4O.js.map +0 -1
  594. package/dist/chunk-ZSP5VMHE.js +0 -61
  595. package/dist/chunk-ZWGO3274.js +0 -27
  596. package/dist/chunk-ZWGO3274.js.map +0 -1
  597. package/dist/chunk-ZXZQSDM4.js +0 -112
  598. package/dist/chunk-ZXZQSDM4.js.map +0 -1
  599. package/dist/components/AddressContainer/index.d.ts +0 -11
  600. package/dist/components/AddressContainer/index.js.map +0 -1
  601. package/dist/components/Loading/head.png.png +0 -0
  602. package/dist/components/Loading/loading.js.js +0 -7
  603. package/dist/components/SkeletonContainer copy/index.js +0 -18
  604. package/dist/components/SkeletonContainer copy/index.js.map +0 -1
  605. package/dist/head-QBKK4MAD.png +0 -0
  606. package/dist/loading-header-QBKK4MAD.png +0 -0
  607. /package/dist/{chunk-4ZNTVKIA.js.map → chunk-KSQ43WMM.js.map} +0 -0
  608. /package/dist/{chunk-2C7IFQEA.js.map → chunk-RVARUZVC.js.map} +0 -0
  609. /package/dist/{chunk-WML236LE.js.map → chunk-RWMP7K3H.js.map} +0 -0
  610. /package/dist/{chunk-2GJPZIIE.js.map → chunk-WPMARG3B.js.map} +0 -0
  611. /package/dist/components/{Loading/loading.js.js.map → AddressContainer/CoreAddressContainer.js.map} +0 -0
@@ -1,8 +1,19 @@
1
+ import {
2
+ arrow,
3
+ computePosition,
4
+ flip,
5
+ getOverflowAncestors,
6
+ offset,
7
+ shift,
8
+ size
9
+ } from "./chunk-LRCAKRPK.js";
10
+ import {
11
+ cn
12
+ } from "./chunk-EUWX4WGR.js";
13
+
1
14
  // src/components/Tooltip/index.tsx
2
15
  import {
3
- Children as Children2,
4
- isValidElement as isValidElement2,
5
- cloneElement as cloneElement2
16
+ useRef as useRef4
6
17
  } from "react";
7
18
 
8
19
  // ../../node_modules/.pnpm/@cfx-kit+ui-components@0.0.17_@zag-js+accordion@0.19.1_@zag-js+checkbox@0.19.1_@zag-js+dialog_fmko2yy6bkfybbxu2fwkms7fpm/node_modules/@cfx-kit/ui-components/dist/chunk-G2ADBYYC.js
@@ -138,1209 +149,6 @@ function raf(fn) {
138
149
  };
139
150
  }
140
151
 
141
- // ../../node_modules/.pnpm/@floating-ui+utils@0.2.1/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
142
- var min = Math.min;
143
- var max = Math.max;
144
- var oppositeSideMap = {
145
- left: "right",
146
- right: "left",
147
- bottom: "top",
148
- top: "bottom"
149
- };
150
- var oppositeAlignmentMap = {
151
- start: "end",
152
- end: "start"
153
- };
154
- function clamp(start, value, end) {
155
- return max(start, min(value, end));
156
- }
157
- function evaluate(value, param) {
158
- return typeof value === "function" ? value(param) : value;
159
- }
160
- function getSide(placement) {
161
- return placement.split("-")[0];
162
- }
163
- function getAlignment(placement) {
164
- return placement.split("-")[1];
165
- }
166
- function getOppositeAxis(axis) {
167
- return axis === "x" ? "y" : "x";
168
- }
169
- function getAxisLength(axis) {
170
- return axis === "y" ? "height" : "width";
171
- }
172
- function getSideAxis(placement) {
173
- return ["top", "bottom"].includes(getSide(placement)) ? "y" : "x";
174
- }
175
- function getAlignmentAxis(placement) {
176
- return getOppositeAxis(getSideAxis(placement));
177
- }
178
- function getAlignmentSides(placement, rects, rtl) {
179
- if (rtl === void 0) {
180
- rtl = false;
181
- }
182
- const alignment = getAlignment(placement);
183
- const alignmentAxis = getAlignmentAxis(placement);
184
- const length = getAxisLength(alignmentAxis);
185
- let mainAlignmentSide = alignmentAxis === "x" ? alignment === (rtl ? "end" : "start") ? "right" : "left" : alignment === "start" ? "bottom" : "top";
186
- if (rects.reference[length] > rects.floating[length]) {
187
- mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
188
- }
189
- return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
190
- }
191
- function getExpandedPlacements(placement) {
192
- const oppositePlacement = getOppositePlacement(placement);
193
- return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
194
- }
195
- function getOppositeAlignmentPlacement(placement) {
196
- return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);
197
- }
198
- function getSideList(side, isStart, rtl) {
199
- const lr = ["left", "right"];
200
- const rl = ["right", "left"];
201
- const tb = ["top", "bottom"];
202
- const bt = ["bottom", "top"];
203
- switch (side) {
204
- case "top":
205
- case "bottom":
206
- if (rtl)
207
- return isStart ? rl : lr;
208
- return isStart ? lr : rl;
209
- case "left":
210
- case "right":
211
- return isStart ? tb : bt;
212
- default:
213
- return [];
214
- }
215
- }
216
- function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
217
- const alignment = getAlignment(placement);
218
- let list = getSideList(getSide(placement), direction === "start", rtl);
219
- if (alignment) {
220
- list = list.map((side) => side + "-" + alignment);
221
- if (flipAlignment) {
222
- list = list.concat(list.map(getOppositeAlignmentPlacement));
223
- }
224
- }
225
- return list;
226
- }
227
- function getOppositePlacement(placement) {
228
- return placement.replace(/left|right|bottom|top/g, (side) => oppositeSideMap[side]);
229
- }
230
- function expandPaddingObject(padding) {
231
- return {
232
- top: 0,
233
- right: 0,
234
- bottom: 0,
235
- left: 0,
236
- ...padding
237
- };
238
- }
239
- function getPaddingObject(padding) {
240
- return typeof padding !== "number" ? expandPaddingObject(padding) : {
241
- top: padding,
242
- right: padding,
243
- bottom: padding,
244
- left: padding
245
- };
246
- }
247
- function rectToClientRect(rect) {
248
- return {
249
- ...rect,
250
- top: rect.y,
251
- left: rect.x,
252
- right: rect.x + rect.width,
253
- bottom: rect.y + rect.height
254
- };
255
- }
256
-
257
- // ../../node_modules/.pnpm/@floating-ui+core@1.6.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
258
- function computeCoordsFromPlacement(_ref, placement, rtl) {
259
- let {
260
- reference,
261
- floating
262
- } = _ref;
263
- const sideAxis = getSideAxis(placement);
264
- const alignmentAxis = getAlignmentAxis(placement);
265
- const alignLength = getAxisLength(alignmentAxis);
266
- const side = getSide(placement);
267
- const isVertical = sideAxis === "y";
268
- const commonX = reference.x + reference.width / 2 - floating.width / 2;
269
- const commonY = reference.y + reference.height / 2 - floating.height / 2;
270
- const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
271
- let coords;
272
- switch (side) {
273
- case "top":
274
- coords = {
275
- x: commonX,
276
- y: reference.y - floating.height
277
- };
278
- break;
279
- case "bottom":
280
- coords = {
281
- x: commonX,
282
- y: reference.y + reference.height
283
- };
284
- break;
285
- case "right":
286
- coords = {
287
- x: reference.x + reference.width,
288
- y: commonY
289
- };
290
- break;
291
- case "left":
292
- coords = {
293
- x: reference.x - floating.width,
294
- y: commonY
295
- };
296
- break;
297
- default:
298
- coords = {
299
- x: reference.x,
300
- y: reference.y
301
- };
302
- }
303
- switch (getAlignment(placement)) {
304
- case "start":
305
- coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
306
- break;
307
- case "end":
308
- coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
309
- break;
310
- }
311
- return coords;
312
- }
313
- var computePosition = async (reference, floating, config) => {
314
- const {
315
- placement = "bottom",
316
- strategy = "absolute",
317
- middleware = [],
318
- platform: platform2
319
- } = config;
320
- const validMiddleware = middleware.filter(Boolean);
321
- const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(floating));
322
- let rects = await platform2.getElementRects({
323
- reference,
324
- floating,
325
- strategy
326
- });
327
- let {
328
- x,
329
- y: y2
330
- } = computeCoordsFromPlacement(rects, placement, rtl);
331
- let statefulPlacement = placement;
332
- let middlewareData = {};
333
- let resetCount = 0;
334
- for (let i2 = 0; i2 < validMiddleware.length; i2++) {
335
- const {
336
- name,
337
- fn
338
- } = validMiddleware[i2];
339
- const {
340
- x: nextX,
341
- y: nextY,
342
- data,
343
- reset
344
- } = await fn({
345
- x,
346
- y: y2,
347
- initialPlacement: placement,
348
- placement: statefulPlacement,
349
- strategy,
350
- middlewareData,
351
- rects,
352
- platform: platform2,
353
- elements: {
354
- reference,
355
- floating
356
- }
357
- });
358
- x = nextX != null ? nextX : x;
359
- y2 = nextY != null ? nextY : y2;
360
- middlewareData = {
361
- ...middlewareData,
362
- [name]: {
363
- ...middlewareData[name],
364
- ...data
365
- }
366
- };
367
- if (reset && resetCount <= 50) {
368
- resetCount++;
369
- if (typeof reset === "object") {
370
- if (reset.placement) {
371
- statefulPlacement = reset.placement;
372
- }
373
- if (reset.rects) {
374
- rects = reset.rects === true ? await platform2.getElementRects({
375
- reference,
376
- floating,
377
- strategy
378
- }) : reset.rects;
379
- }
380
- ({
381
- x,
382
- y: y2
383
- } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
384
- }
385
- i2 = -1;
386
- }
387
- }
388
- return {
389
- x,
390
- y: y2,
391
- placement: statefulPlacement,
392
- strategy,
393
- middlewareData
394
- };
395
- };
396
- async function detectOverflow(state, options) {
397
- var _await$platform$isEle;
398
- if (options === void 0) {
399
- options = {};
400
- }
401
- const {
402
- x,
403
- y: y2,
404
- platform: platform2,
405
- rects,
406
- elements,
407
- strategy
408
- } = state;
409
- const {
410
- boundary = "clippingAncestors",
411
- rootBoundary = "viewport",
412
- elementContext = "floating",
413
- altBoundary = false,
414
- padding = 0
415
- } = evaluate(options, state);
416
- const paddingObject = getPaddingObject(padding);
417
- const altContext = elementContext === "floating" ? "reference" : "floating";
418
- const element = elements[altBoundary ? altContext : elementContext];
419
- const clippingClientRect = rectToClientRect(await platform2.getClippingRect({
420
- element: ((_await$platform$isEle = await (platform2.isElement == null ? void 0 : platform2.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || await (platform2.getDocumentElement == null ? void 0 : platform2.getDocumentElement(elements.floating)),
421
- boundary,
422
- rootBoundary,
423
- strategy
424
- }));
425
- const rect = elementContext === "floating" ? {
426
- ...rects.floating,
427
- x,
428
- y: y2
429
- } : rects.reference;
430
- const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
431
- const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
432
- x: 1,
433
- y: 1
434
- } : {
435
- x: 1,
436
- y: 1
437
- };
438
- const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
439
- elements,
440
- rect,
441
- offsetParent,
442
- strategy
443
- }) : rect);
444
- return {
445
- top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
446
- bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
447
- left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
448
- right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
449
- };
450
- }
451
- var arrow = (options) => ({
452
- name: "arrow",
453
- options,
454
- async fn(state) {
455
- const {
456
- x,
457
- y: y2,
458
- placement,
459
- rects,
460
- platform: platform2,
461
- elements,
462
- middlewareData
463
- } = state;
464
- const {
465
- element,
466
- padding = 0
467
- } = evaluate(options, state) || {};
468
- if (element == null) {
469
- return {};
470
- }
471
- const paddingObject = getPaddingObject(padding);
472
- const coords = {
473
- x,
474
- y: y2
475
- };
476
- const axis = getAlignmentAxis(placement);
477
- const length = getAxisLength(axis);
478
- const arrowDimensions = await platform2.getDimensions(element);
479
- const isYAxis = axis === "y";
480
- const minProp = isYAxis ? "top" : "left";
481
- const maxProp = isYAxis ? "bottom" : "right";
482
- const clientProp = isYAxis ? "clientHeight" : "clientWidth";
483
- const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
484
- const startDiff = coords[axis] - rects.reference[axis];
485
- const arrowOffsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(element));
486
- let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
487
- if (!clientSize || !await (platform2.isElement == null ? void 0 : platform2.isElement(arrowOffsetParent))) {
488
- clientSize = elements.floating[clientProp] || rects.floating[length];
489
- }
490
- const centerToReference = endDiff / 2 - startDiff / 2;
491
- const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
492
- const minPadding = min(paddingObject[minProp], largestPossiblePadding);
493
- const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
494
- const min$1 = minPadding;
495
- const max3 = clientSize - arrowDimensions[length] - maxPadding;
496
- const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
497
- const offset2 = clamp(min$1, center, max3);
498
- const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset2 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
499
- const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max3 : 0;
500
- return {
501
- [axis]: coords[axis] + alignmentOffset,
502
- data: {
503
- [axis]: offset2,
504
- centerOffset: center - offset2 - alignmentOffset,
505
- ...shouldAddOffset && {
506
- alignmentOffset
507
- }
508
- },
509
- reset: shouldAddOffset
510
- };
511
- }
512
- });
513
- var flip = function(options) {
514
- if (options === void 0) {
515
- options = {};
516
- }
517
- return {
518
- name: "flip",
519
- options,
520
- async fn(state) {
521
- var _middlewareData$arrow, _middlewareData$flip;
522
- const {
523
- placement,
524
- middlewareData,
525
- rects,
526
- initialPlacement,
527
- platform: platform2,
528
- elements
529
- } = state;
530
- const {
531
- mainAxis: checkMainAxis = true,
532
- crossAxis: checkCrossAxis = true,
533
- fallbackPlacements: specifiedFallbackPlacements,
534
- fallbackStrategy = "bestFit",
535
- fallbackAxisSideDirection = "none",
536
- flipAlignment = true,
537
- ...detectOverflowOptions
538
- } = evaluate(options, state);
539
- if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
540
- return {};
541
- }
542
- const side = getSide(placement);
543
- const isBasePlacement = getSide(initialPlacement) === initialPlacement;
544
- const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
545
- const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
546
- if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== "none") {
547
- fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
548
- }
549
- const placements2 = [initialPlacement, ...fallbackPlacements];
550
- const overflow = await detectOverflow(state, detectOverflowOptions);
551
- const overflows = [];
552
- let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
553
- if (checkMainAxis) {
554
- overflows.push(overflow[side]);
555
- }
556
- if (checkCrossAxis) {
557
- const sides2 = getAlignmentSides(placement, rects, rtl);
558
- overflows.push(overflow[sides2[0]], overflow[sides2[1]]);
559
- }
560
- overflowsData = [...overflowsData, {
561
- placement,
562
- overflows
563
- }];
564
- if (!overflows.every((side2) => side2 <= 0)) {
565
- var _middlewareData$flip2, _overflowsData$filter;
566
- const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
567
- const nextPlacement = placements2[nextIndex];
568
- if (nextPlacement) {
569
- return {
570
- data: {
571
- index: nextIndex,
572
- overflows: overflowsData
573
- },
574
- reset: {
575
- placement: nextPlacement
576
- }
577
- };
578
- }
579
- let resetPlacement = (_overflowsData$filter = overflowsData.filter((d) => d.overflows[0] <= 0).sort((a2, b) => a2.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
580
- if (!resetPlacement) {
581
- switch (fallbackStrategy) {
582
- case "bestFit": {
583
- var _overflowsData$map$so;
584
- const placement2 = (_overflowsData$map$so = overflowsData.map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a2, b) => a2[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];
585
- if (placement2) {
586
- resetPlacement = placement2;
587
- }
588
- break;
589
- }
590
- case "initialPlacement":
591
- resetPlacement = initialPlacement;
592
- break;
593
- }
594
- }
595
- if (placement !== resetPlacement) {
596
- return {
597
- reset: {
598
- placement: resetPlacement
599
- }
600
- };
601
- }
602
- }
603
- return {};
604
- }
605
- };
606
- };
607
- async function convertValueToCoords(state, options) {
608
- const {
609
- placement,
610
- platform: platform2,
611
- elements
612
- } = state;
613
- const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
614
- const side = getSide(placement);
615
- const alignment = getAlignment(placement);
616
- const isVertical = getSideAxis(placement) === "y";
617
- const mainAxisMulti = ["left", "top"].includes(side) ? -1 : 1;
618
- const crossAxisMulti = rtl && isVertical ? -1 : 1;
619
- const rawValue = evaluate(options, state);
620
- let {
621
- mainAxis,
622
- crossAxis,
623
- alignmentAxis
624
- } = typeof rawValue === "number" ? {
625
- mainAxis: rawValue,
626
- crossAxis: 0,
627
- alignmentAxis: null
628
- } : {
629
- mainAxis: 0,
630
- crossAxis: 0,
631
- alignmentAxis: null,
632
- ...rawValue
633
- };
634
- if (alignment && typeof alignmentAxis === "number") {
635
- crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
636
- }
637
- return isVertical ? {
638
- x: crossAxis * crossAxisMulti,
639
- y: mainAxis * mainAxisMulti
640
- } : {
641
- x: mainAxis * mainAxisMulti,
642
- y: crossAxis * crossAxisMulti
643
- };
644
- }
645
- var offset = function(options) {
646
- if (options === void 0) {
647
- options = 0;
648
- }
649
- return {
650
- name: "offset",
651
- options,
652
- async fn(state) {
653
- var _middlewareData$offse, _middlewareData$arrow;
654
- const {
655
- x,
656
- y: y2,
657
- placement,
658
- middlewareData
659
- } = state;
660
- const diffCoords = await convertValueToCoords(state, options);
661
- if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
662
- return {};
663
- }
664
- return {
665
- x: x + diffCoords.x,
666
- y: y2 + diffCoords.y,
667
- data: {
668
- ...diffCoords,
669
- placement
670
- }
671
- };
672
- }
673
- };
674
- };
675
- var shift = function(options) {
676
- if (options === void 0) {
677
- options = {};
678
- }
679
- return {
680
- name: "shift",
681
- options,
682
- async fn(state) {
683
- const {
684
- x,
685
- y: y2,
686
- placement
687
- } = state;
688
- const {
689
- mainAxis: checkMainAxis = true,
690
- crossAxis: checkCrossAxis = false,
691
- limiter = {
692
- fn: (_ref) => {
693
- let {
694
- x: x2,
695
- y: y3
696
- } = _ref;
697
- return {
698
- x: x2,
699
- y: y3
700
- };
701
- }
702
- },
703
- ...detectOverflowOptions
704
- } = evaluate(options, state);
705
- const coords = {
706
- x,
707
- y: y2
708
- };
709
- const overflow = await detectOverflow(state, detectOverflowOptions);
710
- const crossAxis = getSideAxis(getSide(placement));
711
- const mainAxis = getOppositeAxis(crossAxis);
712
- let mainAxisCoord = coords[mainAxis];
713
- let crossAxisCoord = coords[crossAxis];
714
- if (checkMainAxis) {
715
- const minSide = mainAxis === "y" ? "top" : "left";
716
- const maxSide = mainAxis === "y" ? "bottom" : "right";
717
- const min3 = mainAxisCoord + overflow[minSide];
718
- const max3 = mainAxisCoord - overflow[maxSide];
719
- mainAxisCoord = clamp(min3, mainAxisCoord, max3);
720
- }
721
- if (checkCrossAxis) {
722
- const minSide = crossAxis === "y" ? "top" : "left";
723
- const maxSide = crossAxis === "y" ? "bottom" : "right";
724
- const min3 = crossAxisCoord + overflow[minSide];
725
- const max3 = crossAxisCoord - overflow[maxSide];
726
- crossAxisCoord = clamp(min3, crossAxisCoord, max3);
727
- }
728
- const limitedCoords = limiter.fn({
729
- ...state,
730
- [mainAxis]: mainAxisCoord,
731
- [crossAxis]: crossAxisCoord
732
- });
733
- return {
734
- ...limitedCoords,
735
- data: {
736
- x: limitedCoords.x - x,
737
- y: limitedCoords.y - y2
738
- }
739
- };
740
- }
741
- };
742
- };
743
- var size = function(options) {
744
- if (options === void 0) {
745
- options = {};
746
- }
747
- return {
748
- name: "size",
749
- options,
750
- async fn(state) {
751
- const {
752
- placement,
753
- rects,
754
- platform: platform2,
755
- elements
756
- } = state;
757
- const {
758
- apply = () => {
759
- },
760
- ...detectOverflowOptions
761
- } = evaluate(options, state);
762
- const overflow = await detectOverflow(state, detectOverflowOptions);
763
- const side = getSide(placement);
764
- const alignment = getAlignment(placement);
765
- const isYAxis = getSideAxis(placement) === "y";
766
- const {
767
- width,
768
- height
769
- } = rects.floating;
770
- let heightSide;
771
- let widthSide;
772
- if (side === "top" || side === "bottom") {
773
- heightSide = side;
774
- widthSide = alignment === (await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating)) ? "start" : "end") ? "left" : "right";
775
- } else {
776
- widthSide = side;
777
- heightSide = alignment === "end" ? "top" : "bottom";
778
- }
779
- const overflowAvailableHeight = height - overflow[heightSide];
780
- const overflowAvailableWidth = width - overflow[widthSide];
781
- const noShift = !state.middlewareData.shift;
782
- let availableHeight = overflowAvailableHeight;
783
- let availableWidth = overflowAvailableWidth;
784
- if (isYAxis) {
785
- const maximumClippingWidth = width - overflow.left - overflow.right;
786
- availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
787
- } else {
788
- const maximumClippingHeight = height - overflow.top - overflow.bottom;
789
- availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
790
- }
791
- if (noShift && !alignment) {
792
- const xMin = max(overflow.left, 0);
793
- const xMax = max(overflow.right, 0);
794
- const yMin = max(overflow.top, 0);
795
- const yMax = max(overflow.bottom, 0);
796
- if (isYAxis) {
797
- availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
798
- } else {
799
- availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
800
- }
801
- }
802
- await apply({
803
- ...state,
804
- availableWidth,
805
- availableHeight
806
- });
807
- const nextDimensions = await platform2.getDimensions(elements.floating);
808
- if (width !== nextDimensions.width || height !== nextDimensions.height) {
809
- return {
810
- reset: {
811
- rects: true
812
- }
813
- };
814
- }
815
- return {};
816
- }
817
- };
818
- };
819
-
820
- // ../../node_modules/.pnpm/@floating-ui+utils@0.1.6/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
821
- var min2 = Math.min;
822
- var max2 = Math.max;
823
- var round = Math.round;
824
- var createCoords = (v) => ({
825
- x: v,
826
- y: v
827
- });
828
-
829
- // ../../node_modules/.pnpm/@floating-ui+utils@0.1.6/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs
830
- function getNodeName(node) {
831
- if (isNode(node)) {
832
- return (node.nodeName || "").toLowerCase();
833
- }
834
- return "#document";
835
- }
836
- function getWindow(node) {
837
- var _node$ownerDocument;
838
- return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
839
- }
840
- function getDocumentElement(node) {
841
- var _ref;
842
- return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
843
- }
844
- function isNode(value) {
845
- return value instanceof Node || value instanceof getWindow(value).Node;
846
- }
847
- function isElement(value) {
848
- return value instanceof Element || value instanceof getWindow(value).Element;
849
- }
850
- function isHTMLElement2(value) {
851
- return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
852
- }
853
- function isShadowRoot(value) {
854
- if (typeof ShadowRoot === "undefined") {
855
- return false;
856
- }
857
- return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
858
- }
859
- function isOverflowElement(element) {
860
- const {
861
- overflow,
862
- overflowX,
863
- overflowY,
864
- display
865
- } = getComputedStyle(element);
866
- return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !["inline", "contents"].includes(display);
867
- }
868
- function isTableElement(element) {
869
- return ["table", "td", "th"].includes(getNodeName(element));
870
- }
871
- function isContainingBlock(element) {
872
- const webkit = isWebKit();
873
- const css = getComputedStyle(element);
874
- return css.transform !== "none" || css.perspective !== "none" || (css.containerType ? css.containerType !== "normal" : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== "none" : false) || !webkit && (css.filter ? css.filter !== "none" : false) || ["transform", "perspective", "filter"].some((value) => (css.willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css.contain || "").includes(value));
875
- }
876
- function getContainingBlock(element) {
877
- let currentNode = getParentNode(element);
878
- while (isHTMLElement2(currentNode) && !isLastTraversableNode(currentNode)) {
879
- if (isContainingBlock(currentNode)) {
880
- return currentNode;
881
- } else {
882
- currentNode = getParentNode(currentNode);
883
- }
884
- }
885
- return null;
886
- }
887
- function isWebKit() {
888
- if (typeof CSS === "undefined" || !CSS.supports)
889
- return false;
890
- return CSS.supports("-webkit-backdrop-filter", "none");
891
- }
892
- function isLastTraversableNode(node) {
893
- return ["html", "body", "#document"].includes(getNodeName(node));
894
- }
895
- function getComputedStyle(element) {
896
- return getWindow(element).getComputedStyle(element);
897
- }
898
- function getNodeScroll(element) {
899
- if (isElement(element)) {
900
- return {
901
- scrollLeft: element.scrollLeft,
902
- scrollTop: element.scrollTop
903
- };
904
- }
905
- return {
906
- scrollLeft: element.pageXOffset,
907
- scrollTop: element.pageYOffset
908
- };
909
- }
910
- function getParentNode(node) {
911
- if (getNodeName(node) === "html") {
912
- return node;
913
- }
914
- const result = (
915
- // Step into the shadow DOM of the parent of a slotted node.
916
- node.assignedSlot || // DOM Element detected.
917
- node.parentNode || // ShadowRoot detected.
918
- isShadowRoot(node) && node.host || // Fallback.
919
- getDocumentElement(node)
920
- );
921
- return isShadowRoot(result) ? result.host : result;
922
- }
923
- function getNearestOverflowAncestor(node) {
924
- const parentNode = getParentNode(node);
925
- if (isLastTraversableNode(parentNode)) {
926
- return node.ownerDocument ? node.ownerDocument.body : node.body;
927
- }
928
- if (isHTMLElement2(parentNode) && isOverflowElement(parentNode)) {
929
- return parentNode;
930
- }
931
- return getNearestOverflowAncestor(parentNode);
932
- }
933
- function getOverflowAncestors(node, list, traverseIframes) {
934
- var _node$ownerDocument2;
935
- if (list === void 0) {
936
- list = [];
937
- }
938
- if (traverseIframes === void 0) {
939
- traverseIframes = true;
940
- }
941
- const scrollableAncestor = getNearestOverflowAncestor(node);
942
- const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
943
- const win = getWindow(scrollableAncestor);
944
- if (isBody) {
945
- return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
946
- }
947
- return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
948
- }
949
-
950
- // ../../node_modules/.pnpm/@floating-ui+dom@1.5.1/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
951
- function getCssDimensions(element) {
952
- const css = getComputedStyle(element);
953
- let width = parseFloat(css.width) || 0;
954
- let height = parseFloat(css.height) || 0;
955
- const hasOffset = isHTMLElement2(element);
956
- const offsetWidth = hasOffset ? element.offsetWidth : width;
957
- const offsetHeight = hasOffset ? element.offsetHeight : height;
958
- const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
959
- if (shouldFallback) {
960
- width = offsetWidth;
961
- height = offsetHeight;
962
- }
963
- return {
964
- width,
965
- height,
966
- $: shouldFallback
967
- };
968
- }
969
- function unwrapElement(element) {
970
- return !isElement(element) ? element.contextElement : element;
971
- }
972
- function getScale(element) {
973
- const domElement = unwrapElement(element);
974
- if (!isHTMLElement2(domElement)) {
975
- return createCoords(1);
976
- }
977
- const rect = domElement.getBoundingClientRect();
978
- const {
979
- width,
980
- height,
981
- $
982
- } = getCssDimensions(domElement);
983
- let x = ($ ? round(rect.width) : rect.width) / width;
984
- let y2 = ($ ? round(rect.height) : rect.height) / height;
985
- if (!x || !Number.isFinite(x)) {
986
- x = 1;
987
- }
988
- if (!y2 || !Number.isFinite(y2)) {
989
- y2 = 1;
990
- }
991
- return {
992
- x,
993
- y: y2
994
- };
995
- }
996
- var noOffsets = /* @__PURE__ */ createCoords(0);
997
- function getVisualOffsets(element) {
998
- const win = getWindow(element);
999
- if (!isWebKit() || !win.visualViewport) {
1000
- return noOffsets;
1001
- }
1002
- return {
1003
- x: win.visualViewport.offsetLeft,
1004
- y: win.visualViewport.offsetTop
1005
- };
1006
- }
1007
- function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
1008
- if (isFixed === void 0) {
1009
- isFixed = false;
1010
- }
1011
- if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
1012
- return false;
1013
- }
1014
- return isFixed;
1015
- }
1016
- function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
1017
- if (includeScale === void 0) {
1018
- includeScale = false;
1019
- }
1020
- if (isFixedStrategy === void 0) {
1021
- isFixedStrategy = false;
1022
- }
1023
- const clientRect = element.getBoundingClientRect();
1024
- const domElement = unwrapElement(element);
1025
- let scale = createCoords(1);
1026
- if (includeScale) {
1027
- if (offsetParent) {
1028
- if (isElement(offsetParent)) {
1029
- scale = getScale(offsetParent);
1030
- }
1031
- } else {
1032
- scale = getScale(element);
1033
- }
1034
- }
1035
- const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
1036
- let x = (clientRect.left + visualOffsets.x) / scale.x;
1037
- let y2 = (clientRect.top + visualOffsets.y) / scale.y;
1038
- let width = clientRect.width / scale.x;
1039
- let height = clientRect.height / scale.y;
1040
- if (domElement) {
1041
- const win = getWindow(domElement);
1042
- const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
1043
- let currentIFrame = win.frameElement;
1044
- while (currentIFrame && offsetParent && offsetWin !== win) {
1045
- const iframeScale = getScale(currentIFrame);
1046
- const iframeRect = currentIFrame.getBoundingClientRect();
1047
- const css = getComputedStyle(currentIFrame);
1048
- const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
1049
- const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
1050
- x *= iframeScale.x;
1051
- y2 *= iframeScale.y;
1052
- width *= iframeScale.x;
1053
- height *= iframeScale.y;
1054
- x += left;
1055
- y2 += top;
1056
- currentIFrame = getWindow(currentIFrame).frameElement;
1057
- }
1058
- }
1059
- return rectToClientRect({
1060
- width,
1061
- height,
1062
- x,
1063
- y: y2
1064
- });
1065
- }
1066
- function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
1067
- let {
1068
- rect,
1069
- offsetParent,
1070
- strategy
1071
- } = _ref;
1072
- const isOffsetParentAnElement = isHTMLElement2(offsetParent);
1073
- const documentElement = getDocumentElement(offsetParent);
1074
- if (offsetParent === documentElement) {
1075
- return rect;
1076
- }
1077
- let scroll = {
1078
- scrollLeft: 0,
1079
- scrollTop: 0
1080
- };
1081
- let scale = createCoords(1);
1082
- const offsets = createCoords(0);
1083
- if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== "fixed") {
1084
- if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
1085
- scroll = getNodeScroll(offsetParent);
1086
- }
1087
- if (isHTMLElement2(offsetParent)) {
1088
- const offsetRect = getBoundingClientRect(offsetParent);
1089
- scale = getScale(offsetParent);
1090
- offsets.x = offsetRect.x + offsetParent.clientLeft;
1091
- offsets.y = offsetRect.y + offsetParent.clientTop;
1092
- }
1093
- }
1094
- return {
1095
- width: rect.width * scale.x,
1096
- height: rect.height * scale.y,
1097
- x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
1098
- y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
1099
- };
1100
- }
1101
- function getClientRects(element) {
1102
- return Array.from(element.getClientRects());
1103
- }
1104
- function getWindowScrollBarX(element) {
1105
- return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
1106
- }
1107
- function getDocumentRect(element) {
1108
- const html = getDocumentElement(element);
1109
- const scroll = getNodeScroll(element);
1110
- const body = element.ownerDocument.body;
1111
- const width = max2(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
1112
- const height = max2(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
1113
- let x = -scroll.scrollLeft + getWindowScrollBarX(element);
1114
- const y2 = -scroll.scrollTop;
1115
- if (getComputedStyle(body).direction === "rtl") {
1116
- x += max2(html.clientWidth, body.clientWidth) - width;
1117
- }
1118
- return {
1119
- width,
1120
- height,
1121
- x,
1122
- y: y2
1123
- };
1124
- }
1125
- function getViewportRect(element, strategy) {
1126
- const win = getWindow(element);
1127
- const html = getDocumentElement(element);
1128
- const visualViewport = win.visualViewport;
1129
- let width = html.clientWidth;
1130
- let height = html.clientHeight;
1131
- let x = 0;
1132
- let y2 = 0;
1133
- if (visualViewport) {
1134
- width = visualViewport.width;
1135
- height = visualViewport.height;
1136
- const visualViewportBased = isWebKit();
1137
- if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
1138
- x = visualViewport.offsetLeft;
1139
- y2 = visualViewport.offsetTop;
1140
- }
1141
- }
1142
- return {
1143
- width,
1144
- height,
1145
- x,
1146
- y: y2
1147
- };
1148
- }
1149
- function getInnerBoundingClientRect(element, strategy) {
1150
- const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
1151
- const top = clientRect.top + element.clientTop;
1152
- const left = clientRect.left + element.clientLeft;
1153
- const scale = isHTMLElement2(element) ? getScale(element) : createCoords(1);
1154
- const width = element.clientWidth * scale.x;
1155
- const height = element.clientHeight * scale.y;
1156
- const x = left * scale.x;
1157
- const y2 = top * scale.y;
1158
- return {
1159
- width,
1160
- height,
1161
- x,
1162
- y: y2
1163
- };
1164
- }
1165
- function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
1166
- let rect;
1167
- if (clippingAncestor === "viewport") {
1168
- rect = getViewportRect(element, strategy);
1169
- } else if (clippingAncestor === "document") {
1170
- rect = getDocumentRect(getDocumentElement(element));
1171
- } else if (isElement(clippingAncestor)) {
1172
- rect = getInnerBoundingClientRect(clippingAncestor, strategy);
1173
- } else {
1174
- const visualOffsets = getVisualOffsets(element);
1175
- rect = {
1176
- ...clippingAncestor,
1177
- x: clippingAncestor.x - visualOffsets.x,
1178
- y: clippingAncestor.y - visualOffsets.y
1179
- };
1180
- }
1181
- return rectToClientRect(rect);
1182
- }
1183
- function hasFixedPositionAncestor(element, stopNode) {
1184
- const parentNode = getParentNode(element);
1185
- if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
1186
- return false;
1187
- }
1188
- return getComputedStyle(parentNode).position === "fixed" || hasFixedPositionAncestor(parentNode, stopNode);
1189
- }
1190
- function getClippingElementAncestors(element, cache) {
1191
- const cachedResult = cache.get(element);
1192
- if (cachedResult) {
1193
- return cachedResult;
1194
- }
1195
- let result = getOverflowAncestors(element).filter((el) => isElement(el) && getNodeName(el) !== "body");
1196
- let currentContainingBlockComputedStyle = null;
1197
- const elementIsFixed = getComputedStyle(element).position === "fixed";
1198
- let currentNode = elementIsFixed ? getParentNode(element) : element;
1199
- while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
1200
- const computedStyle = getComputedStyle(currentNode);
1201
- const currentNodeIsContaining = isContainingBlock(currentNode);
1202
- if (!currentNodeIsContaining && computedStyle.position === "fixed") {
1203
- currentContainingBlockComputedStyle = null;
1204
- }
1205
- const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && ["absolute", "fixed"].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
1206
- if (shouldDropCurrentNode) {
1207
- result = result.filter((ancestor) => ancestor !== currentNode);
1208
- } else {
1209
- currentContainingBlockComputedStyle = computedStyle;
1210
- }
1211
- currentNode = getParentNode(currentNode);
1212
- }
1213
- cache.set(element, result);
1214
- return result;
1215
- }
1216
- function getClippingRect(_ref) {
1217
- let {
1218
- element,
1219
- boundary,
1220
- rootBoundary,
1221
- strategy
1222
- } = _ref;
1223
- const elementClippingAncestors = boundary === "clippingAncestors" ? getClippingElementAncestors(element, this._c) : [].concat(boundary);
1224
- const clippingAncestors = [...elementClippingAncestors, rootBoundary];
1225
- const firstClippingAncestor = clippingAncestors[0];
1226
- const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
1227
- const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
1228
- accRect.top = max2(rect.top, accRect.top);
1229
- accRect.right = min2(rect.right, accRect.right);
1230
- accRect.bottom = min2(rect.bottom, accRect.bottom);
1231
- accRect.left = max2(rect.left, accRect.left);
1232
- return accRect;
1233
- }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
1234
- return {
1235
- width: clippingRect.right - clippingRect.left,
1236
- height: clippingRect.bottom - clippingRect.top,
1237
- x: clippingRect.left,
1238
- y: clippingRect.top
1239
- };
1240
- }
1241
- function getDimensions(element) {
1242
- return getCssDimensions(element);
1243
- }
1244
- function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
1245
- const isOffsetParentAnElement = isHTMLElement2(offsetParent);
1246
- const documentElement = getDocumentElement(offsetParent);
1247
- const isFixed = strategy === "fixed";
1248
- const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
1249
- let scroll = {
1250
- scrollLeft: 0,
1251
- scrollTop: 0
1252
- };
1253
- const offsets = createCoords(0);
1254
- if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
1255
- if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
1256
- scroll = getNodeScroll(offsetParent);
1257
- }
1258
- if (isOffsetParentAnElement) {
1259
- const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
1260
- offsets.x = offsetRect.x + offsetParent.clientLeft;
1261
- offsets.y = offsetRect.y + offsetParent.clientTop;
1262
- } else if (documentElement) {
1263
- offsets.x = getWindowScrollBarX(documentElement);
1264
- }
1265
- }
1266
- return {
1267
- x: rect.left + scroll.scrollLeft - offsets.x,
1268
- y: rect.top + scroll.scrollTop - offsets.y,
1269
- width: rect.width,
1270
- height: rect.height
1271
- };
1272
- }
1273
- function getTrueOffsetParent(element, polyfill) {
1274
- if (!isHTMLElement2(element) || getComputedStyle(element).position === "fixed") {
1275
- return null;
1276
- }
1277
- if (polyfill) {
1278
- return polyfill(element);
1279
- }
1280
- return element.offsetParent;
1281
- }
1282
- function getOffsetParent(element, polyfill) {
1283
- const window2 = getWindow(element);
1284
- if (!isHTMLElement2(element)) {
1285
- return window2;
1286
- }
1287
- let offsetParent = getTrueOffsetParent(element, polyfill);
1288
- while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === "static") {
1289
- offsetParent = getTrueOffsetParent(offsetParent, polyfill);
1290
- }
1291
- if (offsetParent && (getNodeName(offsetParent) === "html" || getNodeName(offsetParent) === "body" && getComputedStyle(offsetParent).position === "static" && !isContainingBlock(offsetParent))) {
1292
- return window2;
1293
- }
1294
- return offsetParent || getContainingBlock(element) || window2;
1295
- }
1296
- var getElementRects = async function(_ref) {
1297
- let {
1298
- reference,
1299
- floating,
1300
- strategy
1301
- } = _ref;
1302
- const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
1303
- const getDimensionsFn = this.getDimensions;
1304
- return {
1305
- reference: getRectRelativeToOffsetParent(reference, await getOffsetParentFn(floating), strategy),
1306
- floating: {
1307
- x: 0,
1308
- y: 0,
1309
- ...await getDimensionsFn(floating)
1310
- }
1311
- };
1312
- };
1313
- function isRTL(element) {
1314
- return getComputedStyle(element).direction === "rtl";
1315
- }
1316
- var platform = {
1317
- convertOffsetParentRelativeRectToViewportRelativeRect,
1318
- getDocumentElement,
1319
- getClippingRect,
1320
- getOffsetParent,
1321
- getElementRects,
1322
- getClientRects,
1323
- getDimensions,
1324
- getScale,
1325
- isElement,
1326
- isRTL
1327
- };
1328
- var computePosition2 = (reference, floating, options) => {
1329
- const cache = /* @__PURE__ */ new Map();
1330
- const mergedOptions = {
1331
- platform,
1332
- ...options
1333
- };
1334
- const platformWithCache = {
1335
- ...mergedOptions.platform,
1336
- _c: cache
1337
- };
1338
- return computePosition(reference, floating, {
1339
- ...mergedOptions,
1340
- platform: platformWithCache
1341
- });
1342
- };
1343
-
1344
152
  // ../../node_modules/.pnpm/@zag-js+utils@0.19.1/node_modules/@zag-js/utils/dist/index.mjs
1345
153
  var callAll = (...fns) => (...a2) => {
1346
154
  fns.forEach(function(fn) {
@@ -1432,7 +240,7 @@ function getEqualityFn(scope) {
1432
240
 
1433
241
  // ../../node_modules/.pnpm/@zag-js+popper@0.19.1/node_modules/@zag-js/popper/dist/index.mjs
1434
242
  var callAll2 = (...fns) => () => fns.forEach((fn) => fn());
1435
- var isHTMLElement3 = (el) => {
243
+ var isHTMLElement2 = (el) => {
1436
244
  return typeof el === "object" && el !== null && el.nodeType === 1;
1437
245
  };
1438
246
  var addDomEvent = (el, type, fn, options) => {
@@ -1451,12 +259,12 @@ function autoUpdate(reference, floating, update, options = false) {
1451
259
  const { ancestorScroll, ancestorResize, referenceResize } = resolveOptions(options);
1452
260
  const useAncestors = ancestorScroll || ancestorResize;
1453
261
  const ancestors = [];
1454
- if (useAncestors && isHTMLElement3(reference)) {
262
+ if (useAncestors && isHTMLElement2(reference)) {
1455
263
  ancestors.push(...getOverflowAncestors(reference));
1456
264
  }
1457
265
  function addResizeListeners() {
1458
266
  let cleanups = [trackElementRect(floating, { scope: "size", onChange: update })];
1459
- if (referenceResize && isHTMLElement3(reference)) {
267
+ if (referenceResize && isHTMLElement2(reference)) {
1460
268
  cleanups.push(trackElementRect(reference, { onChange: update }));
1461
269
  }
1462
270
  cleanups.push(callAll2(...ancestors.map((el) => addDomEvent(el, "resize", update))));
@@ -1579,7 +387,7 @@ function getPlacementImpl(reference, floating, opts = {}) {
1579
387
  if (!reference || !floating)
1580
388
  return;
1581
389
  const { placement, strategy, onComplete } = options;
1582
- computePosition2(reference, floating, {
390
+ computePosition(reference, floating, {
1583
391
  placement,
1584
392
  middleware,
1585
393
  strategy,
@@ -3412,29 +2220,41 @@ var Tooltip_default = Tooltip;
3412
2220
 
3413
2221
  // src/components/Tooltip/index.tsx
3414
2222
  import clsx from "clsx";
2223
+ import { useClickAway } from "@cfx-kit/react-utils/dist/hooks";
3415
2224
  import { jsx as jsx2 } from "react/jsx-runtime";
3416
2225
  var Tooltip2 = ({
3417
2226
  title,
3418
2227
  children = null,
3419
2228
  positioning = {},
3420
- triggerProps: _triggerProps = {},
2229
+ className,
3421
2230
  ...rest
3422
2231
  }) => {
3423
2232
  const { placement = "top" } = positioning;
2233
+ const onCloseRef = useRef4();
2234
+ const triggerRef = useRef4(null);
2235
+ const triggerContentRef = useRef4(null);
2236
+ useClickAway([triggerRef, triggerContentRef], (e2) => {
2237
+ onCloseRef.current?.(
2238
+ e2
2239
+ );
2240
+ });
3424
2241
  return /* @__PURE__ */ jsx2(
3425
2242
  Tooltip_default,
3426
2243
  {
3427
2244
  trigger: ({ triggerProps }) => {
3428
- if (Children2.count(children) === 1 && isValidElement2(children)) {
3429
- delete triggerProps.onClick;
3430
- return cloneElement2(children, {
3431
- ...triggerProps,
3432
- ...children.props,
3433
- ..._triggerProps
3434
- });
3435
- } else {
3436
- return /* @__PURE__ */ jsx2("span", { ...triggerProps, ..._triggerProps, children });
3437
- }
2245
+ onCloseRef.current = triggerProps.onClick;
2246
+ triggerProps.onClick = (e2) => {
2247
+ triggerProps.onPointerMove?.(e2);
2248
+ };
2249
+ return /* @__PURE__ */ jsx2(
2250
+ "span",
2251
+ {
2252
+ ref: triggerRef,
2253
+ ...title ? triggerProps : {},
2254
+ className: cn(className, triggerProps.className),
2255
+ children
2256
+ }
2257
+ );
3438
2258
  },
3439
2259
  containerClassName: clsx(
3440
2260
  "sirius-next-tooltip",
@@ -3443,12 +2263,29 @@ var Tooltip2 = ({
3443
2263
  "[&.ui-tooltip>[data-part=arrow]]:[--arrow-size:6px] [&.ui-tooltip>[data-part=arrow]]:[--arrow-background:#333]"
3444
2264
  ),
3445
2265
  openDelay: 0,
2266
+ closeOnPointerDown: false,
3446
2267
  ...rest,
3447
2268
  positioning: {
3448
2269
  ...positioning,
3449
2270
  placement
3450
2271
  },
3451
- children: /* @__PURE__ */ jsx2("div", { className: "px-8px py-6px text-12px text-#fff text-left shadow break-words ws-normal bg-#333 min-w-30px min-h-32px decoration-none rounded-2px", children: title })
2272
+ children: ({ contentProps }) => {
2273
+ const _onPointerLeave = contentProps.onPointerLeave;
2274
+ contentProps.onPointerLeave = (e2) => {
2275
+ if (e2.pointerType === "touch")
2276
+ return;
2277
+ _onPointerLeave?.(e2);
2278
+ };
2279
+ return /* @__PURE__ */ jsx2(
2280
+ "div",
2281
+ {
2282
+ className: "px-8px py-6px text-12px text-#fff text-left shadow break-words ws-normal bg-#333 min-w-30px min-h-32px decoration-none rounded-2px",
2283
+ ref: (_ref) => _ref ? triggerContentRef.current = _ref.parentElement : triggerContentRef.current = null,
2284
+ ...contentProps,
2285
+ children: title
2286
+ }
2287
+ );
2288
+ }
3452
2289
  }
3453
2290
  );
3454
2291
  };
@@ -3456,4 +2293,4 @@ var Tooltip2 = ({
3456
2293
  export {
3457
2294
  Tooltip2 as Tooltip
3458
2295
  };
3459
- //# sourceMappingURL=chunk-T7BICPTT.js.map
2296
+ //# sourceMappingURL=chunk-RI63CIWZ.js.map