@blockend/widget 1.0.31 → 1.0.32

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 (162) hide show
  1. package/dist/AllRoutes-CPwuTwqd.js +2209 -0
  2. package/dist/Box-CIChapvH.js +55 -0
  3. package/dist/EstGas-CEFILtyf.js +12867 -0
  4. package/dist/Grow-DJZj9zjv.js +1656 -0
  5. package/dist/InputComp-DqF1JGIu.js +106 -0
  6. package/dist/LoadRoute-r3sHTYXM.js +126 -0
  7. package/dist/QuotesProgress-BXVLxZ8U.js +28 -0
  8. package/dist/SwapAsset-07WvVwl-.js +64 -0
  9. package/dist/Tooltip-CNAsCF8n.js +572 -0
  10. package/dist/TxnButton-D2TTkFYA.js +207 -0
  11. package/dist/WidgetForm.module-QHJ0-m5f.js +9 -0
  12. package/dist/{add-B8AfyNIx.js → add-t2GqC9VA.js} +3 -3
  13. package/dist/{all-wallets-BaLLU39i.js → all-wallets-DFyf0q31.js} +3 -3
  14. package/dist/{app-store-DNpoABj1.js → app-store-aAahwmBP.js} +3 -3
  15. package/dist/{apple-DzzHtaL4.js → apple-DeRgpwlc.js} +3 -3
  16. package/dist/{arrow-bottom-D2c13c51.js → arrow-bottom-DdEOkaAj.js} +3 -3
  17. package/dist/{arrow-bottom-circle-ls9OCLx1.js → arrow-bottom-circle-BWwREWcv.js} +3 -3
  18. package/dist/{arrow-left-BI3rQkNI.js → arrow-left-CulyLmoH.js} +3 -3
  19. package/dist/{arrow-right-rnMzhVod.js → arrow-right-Dwr7TISn.js} +3 -3
  20. package/dist/{arrow-top-CfA6PVMz.js → arrow-top-pL4rM_y8.js} +3 -3
  21. package/dist/{bank-CmpAmHgg.js → bank-CPuyK_08.js} +3 -3
  22. package/dist/basic-CVc9xEvb.js +5783 -0
  23. package/dist/{browser-mEcjgS1H.js → browser-Cbq2Zbp4.js} +3 -3
  24. package/dist/{card-DkgIWcMc.js → card-B_hUtPWK.js} +3 -3
  25. package/dist/ccip-BLVGcR4A.js +228 -0
  26. package/dist/{checkmark-B_A013n2.js → checkmark-WEqTsFAc.js} +3 -3
  27. package/dist/{checkmark-bold-DestuG2T.js → checkmark-bold-Du_ZvhqM.js} +3 -3
  28. package/dist/{chevron-bottom-Di3S86dj.js → chevron-bottom-C-s-lv4L.js} +3 -3
  29. package/dist/{chevron-left-A9Wj-3tj.js → chevron-left-C7NcRElx.js} +3 -3
  30. package/dist/{chevron-right-UFxJogOZ.js → chevron-right-CSzmAmdn.js} +3 -3
  31. package/dist/{chevron-top-BbZs3eaC.js → chevron-top-Dd99Wfel.js} +3 -3
  32. package/dist/{chrome-store-B4F6hJmy.js → chrome-store-C4p77Of0.js} +3 -3
  33. package/dist/{clock-BbAQ09uV.js → clock-Cib24qjH.js} +3 -3
  34. package/dist/clockIcon-C2W5xvyt.js +76 -0
  35. package/dist/{close-CY3oZP_D.js → close-BXjEkTvS.js} +3 -3
  36. package/dist/{coinPlaceholder-DpfsobZT.js → coinPlaceholder-BFNC7cQN.js} +3 -3
  37. package/dist/{compass-CHS7RZFk.js → compass-CXPX5Ycp.js} +3 -3
  38. package/dist/{copy-CEd4nGhs.js → copy-BEawMbmF.js} +3 -3
  39. package/dist/core-Bez9Ow7F.js +14967 -0
  40. package/dist/cursor-Cxq4Q9jk.js +7 -0
  41. package/dist/{cursor-transparent-Tm6k6Ws4.js → cursor-transparent-ZjJ0P2vr.js} +3 -3
  42. package/dist/{desktop-CrSyXZkL.js → desktop-BhZVovAp.js} +3 -3
  43. package/dist/{disconnect-BooT10E1.js → disconnect-AC-bffZO.js} +3 -3
  44. package/dist/{discord-B982Qaml.js → discord-dT97h-CC.js} +3 -3
  45. package/dist/down-DP56YSKp.js +606 -0
  46. package/dist/{etherscan-CFL0IcNl.js → etherscan-rYFRhRTM.js} +3 -3
  47. package/dist/ethertousd-CC_ezooz.js +6 -0
  48. package/dist/{exclamation-triangle-BBeGXYgt.js → exclamation-triangle-C-pCuC08.js} +3 -3
  49. package/dist/{extension-C5WqJw73.js → extension-BnqauLSn.js} +3 -3
  50. package/dist/{external-link-CcSxVDcd.js → external-link-M9D6e_F3.js} +3 -3
  51. package/dist/{facebook-DF0v9ED8.js → facebook-DHezcoD-.js} +3 -3
  52. package/dist/{farcaster-Boq7M4VK.js → farcaster-D0Ky-Imv.js} +3 -3
  53. package/dist/{filters-DfeymbPx.js → filters-B02NYLWq.js} +3 -3
  54. package/dist/getChainIds-CJd2TZYT.js +1888 -0
  55. package/dist/getCosmosAddress-DTZfw04G.js +9565 -0
  56. package/dist/{github-DQ8FV4bD.js → github-BzQkIMuE.js} +3 -3
  57. package/dist/{google-Dm8FDDZR.js → google-BpwCJ4Fs.js} +3 -3
  58. package/dist/hamburger-BzqwkUjE.js +3915 -0
  59. package/dist/{help-circle-CbgiAebR.js → help-circle-C0nOySHC.js} +3 -3
  60. package/dist/{id-CzqxUksI.js → id-DFP_kFd4.js} +3 -3
  61. package/dist/{image-CsCGTIN-.js → image-QiYOAGjM.js} +3 -3
  62. package/dist/index-CDq3vNnP.js +22 -0
  63. package/dist/index-CLzkn733.js +28223 -0
  64. package/dist/index-CjtwASJt.js +252 -0
  65. package/dist/index-CrC4B7xn.js +331 -0
  66. package/dist/index-D5hLIe-N.js +9 -0
  67. package/dist/index-DDk00SOL.js +159 -0
  68. package/dist/index-DTish3yr.js +1014 -0
  69. package/dist/index-DW3W7zaF.js +473 -0
  70. package/dist/index-DXdD3L9f.js +1460 -0
  71. package/dist/index-DaJ1272l.js +18613 -0
  72. package/dist/index-DxPp2gBS.js +992 -0
  73. package/dist/index-Dy_n2MPD.js +3010 -0
  74. package/dist/index-oc8HPfOF.js +13583 -0
  75. package/dist/index.es-Bsr7zP98.js +366 -0
  76. package/dist/index.es-C-j-Ghef.js +11678 -0
  77. package/dist/index.es.js +4 -4
  78. package/dist/{info-fKCfLW0k.js → info-BTLQJ-wd.js} +3 -3
  79. package/dist/{info-circle-Bt350Yzj.js → info-circle-Dla9169_.js} +3 -3
  80. package/dist/{lightbulb-BL9YBxiA.js → lightbulb-PN8DA_Wh.js} +3 -3
  81. package/dist/{mail-_g6CHQeQ.js → mail-BGYZut_4.js} +3 -3
  82. package/dist/{mobile-B-EQ4IcH.js → mobile-BM760ZzX.js} +3 -3
  83. package/dist/{more-C3rpOdUy.js → more-rHGnl2ck.js} +3 -3
  84. package/dist/{network-placeholder-D9Ak7Xj_.js → network-placeholder-CyQl-3_2.js} +3 -3
  85. package/dist/{nftPlaceholder-CIIm2V_o.js → nftPlaceholder-nuUJ8nKY.js} +3 -3
  86. package/dist/{off-DZjgI0eE.js → off-GYlwYDrT.js} +3 -3
  87. package/dist/{play-store-DvRnagoF.js → play-store-Ck01Ez1F.js} +3 -3
  88. package/dist/{plus-C2jN2huZ.js → plus-CQfXWgLw.js} +3 -3
  89. package/dist/{qr-code-B64HnZgi.js → qr-code-CyLVwLY7.js} +3 -3
  90. package/dist/{recycle-horizontal-CovcJGa_.js → recycle-horizontal-DvnWPcEQ.js} +3 -3
  91. package/dist/{refresh-J1Vw6QMA.js → refresh-BOxj8b2n.js} +3 -3
  92. package/dist/{reown-logo-BsXoZ3KT.js → reown-logo-D1iprOTg.js} +3 -3
  93. package/dist/{search-BC86wYXR.js → search-DrPaZPnc.js} +3 -3
  94. package/dist/secp256k1-DgmH1qVg.js +1251 -0
  95. package/dist/{send-BPA1bK5G.js → send-ybBREe4b.js} +3 -3
  96. package/dist/shareicon-D3Qj5j1T.js +262 -0
  97. package/dist/{sortDown-cDA6MpOw.js → sortDown-CjBaDQTU.js} +13 -13
  98. package/dist/{swapHorizontal-47_8ePle.js → swapHorizontal-BddjZdXK.js} +3 -3
  99. package/dist/{swapHorizontalBold-CJ7TzeQP.js → swapHorizontalBold-B6AWjPZ9.js} +3 -3
  100. package/dist/{swapHorizontalMedium-CTACgUR9.js → swapHorizontalMedium-CNacWoBn.js} +3 -3
  101. package/dist/{swapHorizontalRoundedBold-Ht3_LABp.js → swapHorizontalRoundedBold-B8VcPnqt.js} +3 -3
  102. package/dist/{swapVertical-DlS0V6DD.js → swapVertical-zY2BbSyQ.js} +3 -3
  103. package/dist/{telegram-UZ00kvIE.js → telegram-DS4l-8Oc.js} +3 -3
  104. package/dist/{three-dots-D9zVXr1j.js → three-dots-RctNqamK.js} +3 -3
  105. package/dist/truncate-D9t92mVX.js +7 -0
  106. package/dist/{twitch-CP6rpz4m.js → twitch-CJ0llIIH.js} +3 -3
  107. package/dist/{twitterIcon-Cm3I3FRU.js → twitterIcon-pgvN9-bP.js} +3 -3
  108. package/dist/unsupportedProp-BJVuEW_b.js +10 -0
  109. package/dist/useRegisterError-C_YLA1dw.js +9857 -0
  110. package/dist/validError-CDlJpg_f.js +6 -0
  111. package/dist/{verify-DuUE85WT.js → verify-BeZLo1Fq.js} +3 -3
  112. package/dist/{verify-filled-CfgydKPa.js → verify-filled-meyb7E16.js} +3 -3
  113. package/dist/w3m-modal-C-Jp9NVv.js +1471 -0
  114. package/dist/{wallet-BC2LSDlF.js → wallet-CFcOgSsz.js} +3 -3
  115. package/dist/{wallet-placeholder-DugEJ7xM.js → wallet-placeholder-CeUMILZq.js} +3 -3
  116. package/dist/{walletconnect-wayCaYfk.js → walletconnect-D6LB1PyC.js} +7 -9
  117. package/dist/{warning-circle-Cy9YuvwU.js → warning-circle-BRtzofvT.js} +3 -3
  118. package/dist/{x-jggPFiy-.js → x-DKQAOOh3.js} +3 -3
  119. package/package.json +1 -1
  120. package/dist/AllRoutes-Bdi5ZW8W.js +0 -2604
  121. package/dist/Box-e4gA-y_H.js +0 -60
  122. package/dist/EstGas-C5ihS0Mw.js +0 -17108
  123. package/dist/Grow-B4K-I-E-.js +0 -2212
  124. package/dist/InputComp-C_UUZxNU.js +0 -114
  125. package/dist/LoadRoute-CnDhVKdh.js +0 -142
  126. package/dist/QuotesProgress-DxgPgPJE.js +0 -29
  127. package/dist/SwapAsset-CmmuxeQF.js +0 -65
  128. package/dist/Tooltip-D8YjOOKU.js +0 -718
  129. package/dist/TxnButton-CF-TLZrD.js +0 -302
  130. package/dist/WidgetForm.module-DhUUlwZP.js +0 -13
  131. package/dist/basic-Cx2xxgd9.js +0 -7109
  132. package/dist/ccip-BKpquA5i.js +0 -250
  133. package/dist/clockIcon-jSNFFrLy.js +0 -76
  134. package/dist/core-C-gr9X18.js +0 -17217
  135. package/dist/cursor-BTtIlTHP.js +0 -7
  136. package/dist/down-DDk8OoJG.js +0 -809
  137. package/dist/ethertousd-BOknTgU4.js +0 -7
  138. package/dist/getChainIds-6iugk2h0.js +0 -2431
  139. package/dist/getCosmosAddress-BgD5iV6f.js +0 -13998
  140. package/dist/hamburger-BYe_G11E.js +0 -4562
  141. package/dist/index-BAmjBHYR.js +0 -1087
  142. package/dist/index-BxHeZ9IF.js +0 -543
  143. package/dist/index-C7cb2O7r.js +0 -16078
  144. package/dist/index-CF9p4S_X.js +0 -11
  145. package/dist/index-C_vo1L7p.js +0 -24384
  146. package/dist/index-Ch7w83dW.js +0 -4217
  147. package/dist/index-Crhenmgw.js +0 -188
  148. package/dist/index-Cz5Dosd2.js +0 -412
  149. package/dist/index-D5OnT-__.js +0 -35858
  150. package/dist/index-DArR1lwi.js +0 -1759
  151. package/dist/index-hEJSpZe-.js +0 -308
  152. package/dist/index-m2O0cbD8.js +0 -1883
  153. package/dist/index-sLx4Edw4.js +0 -22
  154. package/dist/index.es-DIbGJsfa.js +0 -475
  155. package/dist/index.es-t6sHlseh.js +0 -12916
  156. package/dist/secp256k1-BkBK0mD5.js +0 -1681
  157. package/dist/shareicon-C88Wx-AM.js +0 -314
  158. package/dist/truncate-DSxFWEga.js +0 -7
  159. package/dist/unsupportedProp-DkeDzLfM.js +0 -14
  160. package/dist/useRegisterError-W_UfecIN.js +0 -19288
  161. package/dist/validError-rariWQ7G.js +0 -14
  162. package/dist/w3m-modal-Bl-DPlah.js +0 -1721
@@ -0,0 +1,572 @@
1
+ import { g as go, _ as To, p as U, b as n, d as We, e as ze, P as e } from "./index-CLzkn733.js";
2
+ import * as p from "react";
3
+ import { g as yo, d as vo, o as Po, z as D, q as Ue, D as wo, h as Ro, x as Co, c as I, U as j, s as Q, V as xo, a as Oo, J as Mo } from "./useRegisterError-C_YLA1dw.js";
4
+ import { G as Be, b as Eo, u as _o, a as No, P as He } from "./Grow-DJZj9zjv.js";
5
+ import { jsx as A, jsxs as Se } from "react/jsx-runtime";
6
+ function Lo(r) {
7
+ return go("MuiTooltip", r);
8
+ }
9
+ const f = yo("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]), $o = ["arrow", "children", "classes", "components", "componentsProps", "describeChild", "disableFocusListener", "disableHoverListener", "disableInteractive", "disableTouchListener", "enterDelay", "enterNextDelay", "enterTouchDelay", "followCursor", "id", "leaveDelay", "leaveTouchDelay", "onClose", "onOpen", "open", "placement", "PopperComponent", "PopperProps", "slotProps", "slots", "title", "TransitionComponent", "TransitionProps"];
10
+ function Do(r) {
11
+ return Math.round(r * 1e5) / 1e5;
12
+ }
13
+ const Io = (r) => {
14
+ const {
15
+ classes: t,
16
+ disableInteractive: s,
17
+ arrow: d,
18
+ touch: R,
19
+ placement: C
20
+ } = r, x = {
21
+ popper: ["popper", !s && "popperInteractive", d && "popperArrow"],
22
+ tooltip: ["tooltip", d && "tooltipArrow", R && "touch", `tooltipPlacement${We(C.split("-")[0])}`],
23
+ arrow: ["arrow"]
24
+ };
25
+ return Oo(x, Lo, t);
26
+ }, jo = Q(He, {
27
+ name: "MuiTooltip",
28
+ slot: "Popper",
29
+ overridesResolver: (r, t) => {
30
+ const {
31
+ ownerState: s
32
+ } = r;
33
+ return [t.popper, !s.disableInteractive && t.popperInteractive, s.arrow && t.popperArrow, !s.open && t.popperClose];
34
+ }
35
+ })(({
36
+ theme: r,
37
+ ownerState: t,
38
+ open: s
39
+ }) => n({
40
+ zIndex: (r.vars || r).zIndex.tooltip,
41
+ pointerEvents: "none"
42
+ }, !t.disableInteractive && {
43
+ pointerEvents: "auto"
44
+ }, !s && {
45
+ pointerEvents: "none"
46
+ }, t.arrow && {
47
+ [`&[data-popper-placement*="bottom"] .${f.arrow}`]: {
48
+ top: 0,
49
+ marginTop: "-0.71em",
50
+ "&::before": {
51
+ transformOrigin: "0 100%"
52
+ }
53
+ },
54
+ [`&[data-popper-placement*="top"] .${f.arrow}`]: {
55
+ bottom: 0,
56
+ marginBottom: "-0.71em",
57
+ "&::before": {
58
+ transformOrigin: "100% 0"
59
+ }
60
+ },
61
+ [`&[data-popper-placement*="right"] .${f.arrow}`]: n({}, t.isRtl ? {
62
+ right: 0,
63
+ marginRight: "-0.71em"
64
+ } : {
65
+ left: 0,
66
+ marginLeft: "-0.71em"
67
+ }, {
68
+ height: "1em",
69
+ width: "0.71em",
70
+ "&::before": {
71
+ transformOrigin: "100% 100%"
72
+ }
73
+ }),
74
+ [`&[data-popper-placement*="left"] .${f.arrow}`]: n({}, t.isRtl ? {
75
+ left: 0,
76
+ marginLeft: "-0.71em"
77
+ } : {
78
+ right: 0,
79
+ marginRight: "-0.71em"
80
+ }, {
81
+ height: "1em",
82
+ width: "0.71em",
83
+ "&::before": {
84
+ transformOrigin: "0 0"
85
+ }
86
+ })
87
+ })), Ao = Q("div", {
88
+ name: "MuiTooltip",
89
+ slot: "Tooltip",
90
+ overridesResolver: (r, t) => {
91
+ const {
92
+ ownerState: s
93
+ } = r;
94
+ return [t.tooltip, s.touch && t.touch, s.arrow && t.tooltipArrow, t[`tooltipPlacement${We(s.placement.split("-")[0])}`]];
95
+ }
96
+ })(({
97
+ theme: r,
98
+ ownerState: t
99
+ }) => n({
100
+ backgroundColor: r.vars ? r.vars.palette.Tooltip.bg : ze.alpha(r.palette.grey[700], 0.92),
101
+ borderRadius: (r.vars || r).shape.borderRadius,
102
+ color: (r.vars || r).palette.common.white,
103
+ fontFamily: r.typography.fontFamily,
104
+ padding: "4px 8px",
105
+ fontSize: r.typography.pxToRem(11),
106
+ maxWidth: 300,
107
+ margin: 2,
108
+ wordWrap: "break-word",
109
+ fontWeight: r.typography.fontWeightMedium
110
+ }, t.arrow && {
111
+ position: "relative",
112
+ margin: 0
113
+ }, t.touch && {
114
+ padding: "8px 16px",
115
+ fontSize: r.typography.pxToRem(14),
116
+ lineHeight: `${Do(16 / 14)}em`,
117
+ fontWeight: r.typography.fontWeightRegular
118
+ }, {
119
+ [`.${f.popper}[data-popper-placement*="left"] &`]: n({
120
+ transformOrigin: "right center"
121
+ }, t.isRtl ? n({
122
+ marginLeft: "14px"
123
+ }, t.touch && {
124
+ marginLeft: "24px"
125
+ }) : n({
126
+ marginRight: "14px"
127
+ }, t.touch && {
128
+ marginRight: "24px"
129
+ })),
130
+ [`.${f.popper}[data-popper-placement*="right"] &`]: n({
131
+ transformOrigin: "left center"
132
+ }, t.isRtl ? n({
133
+ marginRight: "14px"
134
+ }, t.touch && {
135
+ marginRight: "24px"
136
+ }) : n({
137
+ marginLeft: "14px"
138
+ }, t.touch && {
139
+ marginLeft: "24px"
140
+ })),
141
+ [`.${f.popper}[data-popper-placement*="top"] &`]: n({
142
+ transformOrigin: "center bottom",
143
+ marginBottom: "14px"
144
+ }, t.touch && {
145
+ marginBottom: "24px"
146
+ }),
147
+ [`.${f.popper}[data-popper-placement*="bottom"] &`]: n({
148
+ transformOrigin: "center top",
149
+ marginTop: "14px"
150
+ }, t.touch && {
151
+ marginTop: "24px"
152
+ })
153
+ })), Fo = Q("span", {
154
+ name: "MuiTooltip",
155
+ slot: "Arrow",
156
+ overridesResolver: (r, t) => t.arrow
157
+ })(({
158
+ theme: r
159
+ }) => ({
160
+ overflow: "hidden",
161
+ position: "absolute",
162
+ width: "1em",
163
+ height: "0.71em",
164
+ boxSizing: "border-box",
165
+ color: r.vars ? r.vars.palette.Tooltip.bg : ze.alpha(r.palette.grey[700], 0.9),
166
+ "&::before": {
167
+ content: '""',
168
+ margin: "auto",
169
+ display: "block",
170
+ width: "100%",
171
+ height: "100%",
172
+ backgroundColor: "currentColor",
173
+ transform: "rotate(45deg)"
174
+ }
175
+ }));
176
+ let F = !1;
177
+ const Ve = new xo();
178
+ let w = {
179
+ x: 0,
180
+ y: 0
181
+ };
182
+ function k(r, t) {
183
+ return (s, ...d) => {
184
+ t && t(s, ...d), r(s, ...d);
185
+ };
186
+ }
187
+ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
188
+ var d, R, C, x, Z, ee, oe, te, re, ne, se, pe, ie, le, ae, ce, ue, de, me;
189
+ const B = vo({
190
+ props: t,
191
+ name: "MuiTooltip"
192
+ }), {
193
+ arrow: fe = !1,
194
+ children: S,
195
+ components: O = {},
196
+ componentsProps: h = {},
197
+ describeChild: Ye = !1,
198
+ disableFocusListener: qe = !1,
199
+ disableHoverListener: he = !1,
200
+ disableInteractive: Ge = !1,
201
+ disableTouchListener: Je = !1,
202
+ enterDelay: be = 100,
203
+ enterNextDelay: ge = 0,
204
+ enterTouchDelay: Ke = 700,
205
+ followCursor: V = !1,
206
+ id: Xe,
207
+ leaveDelay: Te = 0,
208
+ leaveTouchDelay: Qe = 1500,
209
+ onClose: ye,
210
+ onOpen: ve,
211
+ open: Pe,
212
+ placement: we = "bottom",
213
+ PopperComponent: W,
214
+ PopperProps: b = {},
215
+ slotProps: g = {},
216
+ slots: M = {},
217
+ title: m,
218
+ TransitionComponent: Ze = Be,
219
+ TransitionProps: eo
220
+ } = B, Re = To(B, $o), c = /* @__PURE__ */ p.isValidElement(S) ? S : /* @__PURE__ */ A("span", {
221
+ children: S
222
+ }), Ce = Po(), oo = Eo(), [l, xe] = p.useState(), [z, to] = p.useState(null), E = p.useRef(!1), H = Ge || V, Oe = D(), Y = D(), _ = D(), Me = D(), [ro, Ee] = _o({
223
+ controlled: Pe,
224
+ default: !1,
225
+ name: "Tooltip",
226
+ state: "open"
227
+ });
228
+ let u = ro;
229
+ if (U.env.NODE_ENV !== "production") {
230
+ const {
231
+ current: o
232
+ } = p.useRef(Pe !== void 0);
233
+ p.useEffect(() => {
234
+ l && l.disabled && !o && m !== "" && l.tagName.toLowerCase();
235
+ }, [m, l, o]);
236
+ }
237
+ const q = No(Xe), T = p.useRef(), N = Ue(() => {
238
+ T.current !== void 0 && (document.body.style.WebkitUserSelect = T.current, T.current = void 0), Me.clear();
239
+ });
240
+ p.useEffect(() => N, [N]);
241
+ const _e = (o) => {
242
+ Ve.clear(), F = !0, Ee(!0), ve && !u && ve(o);
243
+ }, L = Ue(
244
+ /**
245
+ * @param {React.SyntheticEvent | Event} event
246
+ */
247
+ (o) => {
248
+ Ve.start(800 + Te, () => {
249
+ F = !1;
250
+ }), Ee(!1), ye && u && ye(o), Oe.start(Ce.transitions.duration.shortest, () => {
251
+ E.current = !1;
252
+ });
253
+ }
254
+ ), $ = (o) => {
255
+ E.current && o.type !== "touchstart" || (l && l.removeAttribute("title"), Y.clear(), _.clear(), be || F && ge ? Y.start(F ? ge : be, () => {
256
+ _e(o);
257
+ }) : _e(o));
258
+ }, G = (o) => {
259
+ Y.clear(), _.start(Te, () => {
260
+ L(o);
261
+ });
262
+ }, {
263
+ isFocusVisibleRef: Ne,
264
+ onBlur: no,
265
+ onFocus: so,
266
+ ref: po
267
+ } = wo(), [, Le] = p.useState(!1), $e = (o) => {
268
+ no(o), Ne.current === !1 && (Le(!1), G(o));
269
+ }, De = (o) => {
270
+ l || xe(o.currentTarget), so(o), Ne.current === !0 && (Le(!0), $(o));
271
+ }, Ie = (o) => {
272
+ E.current = !0;
273
+ const i = c.props;
274
+ i.onTouchStart && i.onTouchStart(o);
275
+ }, io = (o) => {
276
+ Ie(o), _.clear(), Oe.clear(), N(), T.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", Me.start(Ke, () => {
277
+ document.body.style.WebkitUserSelect = T.current, $(o);
278
+ });
279
+ }, lo = (o) => {
280
+ c.props.onTouchEnd && c.props.onTouchEnd(o), N(), _.start(Qe, () => {
281
+ L(o);
282
+ });
283
+ };
284
+ p.useEffect(() => {
285
+ if (!u)
286
+ return;
287
+ function o(i) {
288
+ (i.key === "Escape" || i.key === "Esc") && L(i);
289
+ }
290
+ return document.addEventListener("keydown", o), () => {
291
+ document.removeEventListener("keydown", o);
292
+ };
293
+ }, [L, u]);
294
+ const ao = Ro(Co(c), po, xe, s);
295
+ !m && m !== 0 && (u = !1);
296
+ const J = p.useRef(), co = (o) => {
297
+ const i = c.props;
298
+ i.onMouseMove && i.onMouseMove(o), w = {
299
+ x: o.clientX,
300
+ y: o.clientY
301
+ }, J.current && J.current.update();
302
+ }, y = {}, K = typeof m == "string";
303
+ Ye ? (y.title = !u && K && !he ? m : null, y["aria-describedby"] = u ? q : null) : (y["aria-label"] = K ? m : null, y["aria-labelledby"] = u && !K ? q : null);
304
+ const a = n({}, y, Re, c.props, {
305
+ className: I(Re.className, c.props.className),
306
+ onTouchStart: Ie,
307
+ ref: ao
308
+ }, V ? {
309
+ onMouseMove: co
310
+ } : {});
311
+ U.env.NODE_ENV !== "production" && (a["data-mui-internal-clone-element"] = !0, p.useEffect(() => {
312
+ l && l.getAttribute("data-mui-internal-clone-element");
313
+ }, [l]));
314
+ const v = {};
315
+ Je || (a.onTouchStart = io, a.onTouchEnd = lo), he || (a.onMouseOver = k($, a.onMouseOver), a.onMouseLeave = k(G, a.onMouseLeave), H || (v.onMouseOver = $, v.onMouseLeave = G)), qe || (a.onFocus = k(De, a.onFocus), a.onBlur = k($e, a.onBlur), H || (v.onFocus = De, v.onBlur = $e)), U.env.NODE_ENV !== "production" && c.props.title;
316
+ const uo = p.useMemo(() => {
317
+ var o;
318
+ let i = [{
319
+ name: "arrow",
320
+ enabled: !!z,
321
+ options: {
322
+ element: z,
323
+ padding: 4
324
+ }
325
+ }];
326
+ return (o = b.popperOptions) != null && o.modifiers && (i = i.concat(b.popperOptions.modifiers)), n({}, b.popperOptions, {
327
+ modifiers: i
328
+ });
329
+ }, [z, b]), P = n({}, B, {
330
+ isRtl: oo,
331
+ arrow: fe,
332
+ disableInteractive: H,
333
+ placement: we,
334
+ PopperComponentProp: W,
335
+ touch: E.current
336
+ }), X = Io(P), je = (d = (R = M.popper) != null ? R : O.Popper) != null ? d : jo, Ae = (C = (x = (Z = M.transition) != null ? Z : O.Transition) != null ? x : Ze) != null ? C : Be, Fe = (ee = (oe = M.tooltip) != null ? oe : O.Tooltip) != null ? ee : Ao, ke = (te = (re = M.arrow) != null ? re : O.Arrow) != null ? te : Fo, mo = j(je, n({}, b, (ne = g.popper) != null ? ne : h.popper, {
337
+ className: I(X.popper, b == null ? void 0 : b.className, (se = (pe = g.popper) != null ? pe : h.popper) == null ? void 0 : se.className)
338
+ }), P), fo = j(Ae, n({}, eo, (ie = g.transition) != null ? ie : h.transition), P), ho = j(Fe, n({}, (le = g.tooltip) != null ? le : h.tooltip, {
339
+ className: I(X.tooltip, (ae = (ce = g.tooltip) != null ? ce : h.tooltip) == null ? void 0 : ae.className)
340
+ }), P), bo = j(ke, n({}, (ue = g.arrow) != null ? ue : h.arrow, {
341
+ className: I(X.arrow, (de = (me = g.arrow) != null ? me : h.arrow) == null ? void 0 : de.className)
342
+ }), P);
343
+ return /* @__PURE__ */ Se(p.Fragment, {
344
+ children: [/* @__PURE__ */ p.cloneElement(c, a), /* @__PURE__ */ A(je, n({
345
+ as: W ?? He,
346
+ placement: we,
347
+ anchorEl: V ? {
348
+ getBoundingClientRect: () => ({
349
+ top: w.y,
350
+ left: w.x,
351
+ right: w.x,
352
+ bottom: w.y,
353
+ width: 0,
354
+ height: 0
355
+ })
356
+ } : l,
357
+ popperRef: J,
358
+ open: l ? u : !1,
359
+ id: q,
360
+ transition: !0
361
+ }, v, mo, {
362
+ popperOptions: uo,
363
+ children: ({
364
+ TransitionProps: o
365
+ }) => /* @__PURE__ */ A(Ae, n({
366
+ timeout: Ce.transitions.duration.shorter
367
+ }, o, fo, {
368
+ children: /* @__PURE__ */ Se(Fe, n({}, ho, {
369
+ children: [m, fe ? /* @__PURE__ */ A(ke, n({}, bo, {
370
+ ref: to
371
+ })) : null]
372
+ }))
373
+ }))
374
+ }))]
375
+ });
376
+ });
377
+ U.env.NODE_ENV !== "production" && (ko.propTypes = {
378
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
379
+ // │ These PropTypes are generated from the TypeScript type definitions. │
380
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
381
+ // └─────────────────────────────────────────────────────────────────────┘
382
+ /**
383
+ * If `true`, adds an arrow to the tooltip.
384
+ * @default false
385
+ */
386
+ arrow: e.bool,
387
+ /**
388
+ * Tooltip reference element.
389
+ */
390
+ children: Mo.isRequired,
391
+ /**
392
+ * Override or extend the styles applied to the component.
393
+ */
394
+ classes: e.object,
395
+ /**
396
+ * @ignore
397
+ */
398
+ className: e.string,
399
+ /**
400
+ * The components used for each slot inside.
401
+ *
402
+ * This prop is an alias for the `slots` prop.
403
+ * It's recommended to use the `slots` prop instead.
404
+ *
405
+ * @default {}
406
+ */
407
+ components: e.shape({
408
+ Arrow: e.elementType,
409
+ Popper: e.elementType,
410
+ Tooltip: e.elementType,
411
+ Transition: e.elementType
412
+ }),
413
+ /**
414
+ * The extra props for the slot components.
415
+ * You can override the existing props or add new ones.
416
+ *
417
+ * This prop is an alias for the `slotProps` prop.
418
+ * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
419
+ *
420
+ * @default {}
421
+ */
422
+ componentsProps: e.shape({
423
+ arrow: e.object,
424
+ popper: e.object,
425
+ tooltip: e.object,
426
+ transition: e.object
427
+ }),
428
+ /**
429
+ * Set to `true` if the `title` acts as an accessible description.
430
+ * By default the `title` acts as an accessible label for the child.
431
+ * @default false
432
+ */
433
+ describeChild: e.bool,
434
+ /**
435
+ * Do not respond to focus-visible events.
436
+ * @default false
437
+ */
438
+ disableFocusListener: e.bool,
439
+ /**
440
+ * Do not respond to hover events.
441
+ * @default false
442
+ */
443
+ disableHoverListener: e.bool,
444
+ /**
445
+ * Makes a tooltip not interactive, i.e. it will close when the user
446
+ * hovers over the tooltip before the `leaveDelay` is expired.
447
+ * @default false
448
+ */
449
+ disableInteractive: e.bool,
450
+ /**
451
+ * Do not respond to long press touch events.
452
+ * @default false
453
+ */
454
+ disableTouchListener: e.bool,
455
+ /**
456
+ * The number of milliseconds to wait before showing the tooltip.
457
+ * This prop won't impact the enter touch delay (`enterTouchDelay`).
458
+ * @default 100
459
+ */
460
+ enterDelay: e.number,
461
+ /**
462
+ * The number of milliseconds to wait before showing the tooltip when one was already recently opened.
463
+ * @default 0
464
+ */
465
+ enterNextDelay: e.number,
466
+ /**
467
+ * The number of milliseconds a user must touch the element before showing the tooltip.
468
+ * @default 700
469
+ */
470
+ enterTouchDelay: e.number,
471
+ /**
472
+ * If `true`, the tooltip follow the cursor over the wrapped element.
473
+ * @default false
474
+ */
475
+ followCursor: e.bool,
476
+ /**
477
+ * This prop is used to help implement the accessibility logic.
478
+ * If you don't provide this prop. It falls back to a randomly generated id.
479
+ */
480
+ id: e.string,
481
+ /**
482
+ * The number of milliseconds to wait before hiding the tooltip.
483
+ * This prop won't impact the leave touch delay (`leaveTouchDelay`).
484
+ * @default 0
485
+ */
486
+ leaveDelay: e.number,
487
+ /**
488
+ * The number of milliseconds after the user stops touching an element before hiding the tooltip.
489
+ * @default 1500
490
+ */
491
+ leaveTouchDelay: e.number,
492
+ /**
493
+ * Callback fired when the component requests to be closed.
494
+ *
495
+ * @param {React.SyntheticEvent} event The event source of the callback.
496
+ */
497
+ onClose: e.func,
498
+ /**
499
+ * Callback fired when the component requests to be open.
500
+ *
501
+ * @param {React.SyntheticEvent} event The event source of the callback.
502
+ */
503
+ onOpen: e.func,
504
+ /**
505
+ * If `true`, the component is shown.
506
+ */
507
+ open: e.bool,
508
+ /**
509
+ * Tooltip placement.
510
+ * @default 'bottom'
511
+ */
512
+ placement: e.oneOf(["bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
513
+ /**
514
+ * The component used for the popper.
515
+ * @default Popper
516
+ */
517
+ PopperComponent: e.elementType,
518
+ /**
519
+ * Props applied to the [`Popper`](/material-ui/api/popper/) element.
520
+ * @default {}
521
+ */
522
+ PopperProps: e.object,
523
+ /**
524
+ * The extra props for the slot components.
525
+ * You can override the existing props or add new ones.
526
+ *
527
+ * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
528
+ *
529
+ * @default {}
530
+ */
531
+ slotProps: e.shape({
532
+ arrow: e.object,
533
+ popper: e.object,
534
+ tooltip: e.object,
535
+ transition: e.object
536
+ }),
537
+ /**
538
+ * The components used for each slot inside.
539
+ *
540
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
541
+ *
542
+ * @default {}
543
+ */
544
+ slots: e.shape({
545
+ arrow: e.elementType,
546
+ popper: e.elementType,
547
+ tooltip: e.elementType,
548
+ transition: e.elementType
549
+ }),
550
+ /**
551
+ * The system prop that allows defining system overrides as well as additional CSS styles.
552
+ */
553
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
554
+ /**
555
+ * Tooltip title. Zero-length titles string, undefined, null and false are never displayed.
556
+ */
557
+ title: e.node,
558
+ /**
559
+ * The component used for the transition.
560
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
561
+ * @default Grow
562
+ */
563
+ TransitionComponent: e.elementType,
564
+ /**
565
+ * Props applied to the transition element.
566
+ * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
567
+ */
568
+ TransitionProps: e.object
569
+ });
570
+ export {
571
+ ko as T
572
+ };