@directcryptopay/sdk 0.2.1 → 0.2.3

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 (228) hide show
  1. package/dist/ExchangeController-CPMQq6Q-.js +217 -0
  2. package/dist/HelpersUtil-DfMFC7Bf.js +120 -0
  3. package/dist/NavigationUtil-kj9LEOOd.js +8 -0
  4. package/dist/PhArrowCircleDown-lsK25DCk.js +73 -0
  5. package/dist/PhArrowClockwise-NeKHZ1co.js +73 -0
  6. package/dist/PhArrowDown-C9AkNvLs.js +73 -0
  7. package/dist/PhArrowLeft-RNfIQP1X.js +73 -0
  8. package/dist/PhArrowRight-DM1tna0G.js +73 -0
  9. package/dist/PhArrowSquareOut-S5XYbAZj.js +73 -0
  10. package/dist/PhArrowUp-DmktzOWy.js +73 -0
  11. package/dist/PhArrowUpRight-BkNeW_5i.js +73 -0
  12. package/dist/PhArrowsClockwise-CQ4pG76b.js +73 -0
  13. package/dist/PhArrowsDownUp-H6gxaNM6.js +73 -0
  14. package/dist/PhArrowsLeftRight-DZSsfMR6.js +73 -0
  15. package/dist/PhBank-4_9QzqIB.js +73 -0
  16. package/dist/PhBrowser-B-JSznId.js +73 -0
  17. package/dist/PhCaretDown-vV5oHMNi.js +73 -0
  18. package/dist/PhCaretLeft-BLo6Y_f4.js +73 -0
  19. package/dist/PhCaretRight-CqQN4TT3.js +73 -0
  20. package/dist/PhCaretUp-Df7UCAHy.js +73 -0
  21. package/dist/PhCheck-gtpfK4ed.js +73 -0
  22. package/dist/PhCircleHalf-Uq7dwDYw.js +73 -0
  23. package/dist/PhClock-SDCW-NmF.js +73 -0
  24. package/dist/PhCompass-B7hgtdx-.js +73 -0
  25. package/dist/PhCopy-BcnhyXCy.js +73 -0
  26. package/dist/PhCreditCard-BJjByVgu.js +73 -0
  27. package/dist/PhCurrencyDollar-B7ZXqXBy.js +73 -0
  28. package/dist/PhDesktop-B3VKPuJx.js +73 -0
  29. package/dist/PhDeviceMobile-Bnd0TYEH.js +73 -0
  30. package/dist/PhDotsThree-yyMWyZ-R.js +73 -0
  31. package/dist/PhEnvelope-67uzHbI9.js +73 -0
  32. package/dist/PhFunnelSimple-B-DCsloI.js +73 -0
  33. package/dist/PhGlobe-TMm_6qGk.js +73 -0
  34. package/dist/PhIdentificationCard-CePPD2xc.js +73 -0
  35. package/dist/PhImage-gY96WtHR.js +73 -0
  36. package/dist/PhInfo-DRQM_ZDP.js +73 -0
  37. package/dist/PhLightbulb-B0TxPfZ1.js +73 -0
  38. package/dist/PhMagnifyingGlass-B8si5_6W.js +73 -0
  39. package/dist/PhPaperPlaneRight-DVu5PLYd.js +73 -0
  40. package/dist/PhPlus-BfTsQnUz.js +73 -0
  41. package/dist/PhPower-CxYUGOWn.js +73 -0
  42. package/dist/PhPuzzlePiece-CQ4wh0gV.js +73 -0
  43. package/dist/PhQrCode-BuJ97NYJ.js +73 -0
  44. package/dist/PhQuestion-kJoP8Mja.js +73 -0
  45. package/dist/PhQuestionMark-C46ZkFpu.js +73 -0
  46. package/dist/PhSealCheck-Eh8jVqSN.js +73 -0
  47. package/dist/PhSignOut-jk97OSVt.js +73 -0
  48. package/dist/PhSpinner-CiYOhwMg.js +73 -0
  49. package/dist/PhTrash-pxerMqzd.js +73 -0
  50. package/dist/PhUser-BMg0VV4A.js +73 -0
  51. package/dist/PhVault-DYQvx5A-.js +73 -0
  52. package/dist/PhWarning-NLC5Mj87.js +73 -0
  53. package/dist/PhWarningCircle-Ch2jU9fA.js +73 -0
  54. package/dist/PhX-Bx4wpwm3.js +73 -0
  55. package/dist/SwapController-Cti0Cyxa.js +457 -0
  56. package/dist/{ccip-BIGqktC1.js → ccip-CKZd2XJ7.js} +4 -4
  57. package/dist/data-capture-7D5CL385.js +490 -0
  58. package/dist/dcp-sdk.umd.js +7400 -6589
  59. package/dist/email-AmK0INbZ.js +344 -0
  60. package/dist/embedded-wallet-Pn0I_XLn.js +820 -0
  61. package/dist/features-x8XNprEe.js +274 -0
  62. package/dist/{hashTypedData-ZH9ZnWu3.js → hashTypedData-B50-z0AA.js} +6 -6
  63. package/dist/if-defined-CdZSZ6UL.js +10 -0
  64. package/dist/index-4ewUtPPp.js +7981 -0
  65. package/dist/{index-D6h-qfpt.js → index-51l86yqx.js} +5 -5
  66. package/dist/index-B6K56LF_.js +85 -0
  67. package/dist/index-BAmv9PxJ.js +257 -0
  68. package/dist/index-BEswjY9r.js +117 -0
  69. package/dist/index-BSKRq56S.js +355 -0
  70. package/dist/index-BaygXQxx.js +172 -0
  71. package/dist/index-BcPxaHr5.js +118 -0
  72. package/dist/index-Bjt7nGaJ.js +199 -0
  73. package/dist/{index-D5r0iSq4.js → index-BkTSyAJb.js} +1 -1
  74. package/dist/index-Bmnl7l2U.js +555 -0
  75. package/dist/index-BvPvouSq.js +56 -0
  76. package/dist/index-C-6iznUO.js +174 -0
  77. package/dist/index-C4M5s_AM.js +228 -0
  78. package/dist/index-CEqcN8QP.js +1175 -0
  79. package/dist/{index-CPTcEPbD.js → index-CM3YaYca.js} +296 -298
  80. package/dist/{index-f3LXSfM5.js → index-CclBLA5r.js} +56 -142
  81. package/dist/index-ChTxJOiF.js +46 -0
  82. package/dist/index-CmAv0Tzr.js +86 -0
  83. package/dist/index-CmvoKY4x.js +125 -0
  84. package/dist/{index-BdSIrl-R.js → index-D7PmdQ9B.js} +578 -570
  85. package/dist/{index-DobBVPe4.js → index-D7k2Pc4e.js} +481 -236
  86. package/dist/index-D7lmgqUR.js +153 -0
  87. package/dist/index-DG_-qYze.js +107 -0
  88. package/dist/{index-Dy4NyE6l.js → index-DHot9Fdb.js} +7 -7
  89. package/dist/index-DV2LrPtU.js +123 -0
  90. package/dist/index-DYBaJQ2W.js +65 -0
  91. package/dist/{index-BJ7cbG3N.js → index-D_8VUmn1.js} +36688 -40208
  92. package/dist/index-D_gLn3rT.js +100 -0
  93. package/dist/index-DqcVUSC9.js +62 -0
  94. package/dist/index-I7VDqINw.js +128 -0
  95. package/dist/index-Oz72I9VP.js +209 -0
  96. package/dist/index-UclsHkJ0.js +118 -0
  97. package/dist/index-X8zir_1j.js +110 -0
  98. package/dist/index-XvlWKGCu.js +1281 -0
  99. package/dist/index-dO97xPlt.js +171 -0
  100. package/dist/{index-5mp7WkhV.js → index-uBeF6OAB.js} +2 -2
  101. package/dist/index-zeA_RiCV.js +159 -0
  102. package/dist/index.js +1 -1
  103. package/dist/{localBatchGatewayRequest-CjGcn5nM.js → localBatchGatewayRequest-BUZHGdjw.js} +1 -1
  104. package/dist/onramp-CdnBuF0r.js +855 -0
  105. package/dist/{parseSignature-S8VEpRHC.js → parseSignature-CcyTNGr4.js} +2312 -2313
  106. package/dist/pay-with-exchange-CSM6WCOV.js +525 -0
  107. package/dist/property-Bd8U3_QP.js +618 -0
  108. package/dist/receive-DooMu4Dx.js +232 -0
  109. package/dist/ref-CpgjXAw7.js +107 -0
  110. package/dist/send-3T7CyYic.js +1166 -0
  111. package/dist/socials-Dt-iHL17.js +620 -0
  112. package/dist/swaps-CjA9Es42.js +1760 -0
  113. package/dist/{transactions-DujFkB-M.js → transactions-nRm9DVzn.js} +10 -10
  114. package/dist/w3m-modal-NV25AXhM.js +1706 -0
  115. package/package.json +3 -3
  116. package/dist/ConstantsUtil-B-_-u8aQ.js +0 -6
  117. package/dist/add-sji6scSD.js +0 -19
  118. package/dist/all-wallets-B4H-890E.js +0 -10
  119. package/dist/app-store-Z433s97G.js +0 -21
  120. package/dist/apple-b8Lxj7nb.js +0 -22
  121. package/dist/arrow-bottom-M9oWWo_9.js +0 -12
  122. package/dist/arrow-bottom-circle-N9c4CXY1.js +0 -15
  123. package/dist/arrow-left-Dw8AKfwf.js +0 -12
  124. package/dist/arrow-right-DwLQZSC_.js +0 -12
  125. package/dist/arrow-top-zhUjkBe1.js +0 -12
  126. package/dist/bank-CbQdnILK.js +0 -18
  127. package/dist/browser-xAqNwt7z.js +0 -18
  128. package/dist/card-Dr1QBmWp.js +0 -18
  129. package/dist/checkmark-BhT1dTgG.js +0 -15
  130. package/dist/checkmark-bold-CPB29wqQ.js +0 -12
  131. package/dist/chevron-bottom-BhNyx2II.js +0 -12
  132. package/dist/chevron-left-CGuEjQlY.js +0 -12
  133. package/dist/chevron-right-CvIRRsqZ.js +0 -12
  134. package/dist/chevron-top-RSzCqjBd.js +0 -12
  135. package/dist/chrome-store-Cs8dAgs0.js +0 -65
  136. package/dist/clock-fhZO5otC.js +0 -12
  137. package/dist/close-BPuztrdR.js +0 -12
  138. package/dist/coinPlaceholder-C8X2i7Kh.js +0 -12
  139. package/dist/compass-WMc5huk0.js +0 -12
  140. package/dist/copy-DVAeT17y.js +0 -19
  141. package/dist/cursor-BJ4YLXfy.js +0 -7
  142. package/dist/cursor-transparent-DN2fLQN4.js +0 -16
  143. package/dist/desktop-6avxisBw.js +0 -13
  144. package/dist/disconnect-AReVI8Gk.js +0 -12
  145. package/dist/discord-CxrI30BZ.js +0 -21
  146. package/dist/email-B8dIIaay.js +0 -696
  147. package/dist/embedded-wallet-C_5hF7rM.js +0 -468
  148. package/dist/etherscan-BnAy8cIF.js +0 -10
  149. package/dist/exclamation-triangle-Bu7nHwx9.js +0 -8
  150. package/dist/extension-F0LIhvcf.js +0 -12
  151. package/dist/external-link-CP6phyaM.js +0 -12
  152. package/dist/facebook-BtQ-Io2y.js +0 -30
  153. package/dist/farcaster-BmaN1ugd.js +0 -16
  154. package/dist/filters-DpEwoOmy.js +0 -12
  155. package/dist/github-q7qO9V-b.js +0 -22
  156. package/dist/google-DH_ZE8bW.js +0 -22
  157. package/dist/help-circle-BAQVmKas.js +0 -16
  158. package/dist/id-Cj68Zwgo.js +0 -16
  159. package/dist/if-defined-CNte9B3N.js +0 -744
  160. package/dist/image-BKJDw6N-.js +0 -8
  161. package/dist/index-7toZMdtG.js +0 -573
  162. package/dist/index-B1uKzdvN.js +0 -170
  163. package/dist/index-BHFZVF-b.js +0 -257
  164. package/dist/index-BKwa5JSA.js +0 -559
  165. package/dist/index-BP4B9VUt.js +0 -54
  166. package/dist/index-BVdzXHpO.js +0 -181
  167. package/dist/index-BYND0GJ9.js +0 -146
  168. package/dist/index-BaJ0zEbh.js +0 -97
  169. package/dist/index-Bh0MPFwP.js +0 -58
  170. package/dist/index-Bsh7_qTp.js +0 -511
  171. package/dist/index-BwnXTNNg.js +0 -199
  172. package/dist/index-C0kPDbg_.js +0 -77
  173. package/dist/index-CKikVKe2.js +0 -75
  174. package/dist/index-ChVh0Hkp.js +0 -243
  175. package/dist/index-Cle_NnnS.js +0 -305
  176. package/dist/index-CmWdvIFT.js +0 -51
  177. package/dist/index-D2AMA8Bu.js +0 -65
  178. package/dist/index-DAUM8CO4.js +0 -65
  179. package/dist/index-DGjZW6uR.js +0 -78
  180. package/dist/index-DQe94z7X.js +0 -265
  181. package/dist/index-DTo6w99t.js +0 -7864
  182. package/dist/index-DYdXjap2.js +0 -320
  183. package/dist/index-DceCxNV5.js +0 -181
  184. package/dist/index-Uw9cSw0q.js +0 -294
  185. package/dist/index-qiuyrukh.js +0 -45
  186. package/dist/index-zddvaohA.js +0 -78
  187. package/dist/info-RfPsmroW.js +0 -7
  188. package/dist/info-circle-DFKHB_ZN.js +0 -16
  189. package/dist/lightbulb-B-Bykj9X.js +0 -7
  190. package/dist/mail-mBAgGuw5.js +0 -12
  191. package/dist/mobile-Dhh3ndkf.js +0 -13
  192. package/dist/more-D1h7UTvg.js +0 -15
  193. package/dist/network-placeholder-Dqynvc-t.js +0 -18
  194. package/dist/nftPlaceholder-Df7MW4MM.js +0 -12
  195. package/dist/off-BmG3cHTX.js +0 -12
  196. package/dist/onramp-C401Aenb.js +0 -1279
  197. package/dist/play-store-4q1fzL_P.js +0 -36
  198. package/dist/plus-603Gs3yG.js +0 -17
  199. package/dist/qr-code-Dgwhf6M1.js +0 -10
  200. package/dist/receive-CYXbbEUR.js +0 -186
  201. package/dist/recycle-horizontal-Bu8zZ563.js +0 -13
  202. package/dist/ref-DpmKRWBK.js +0 -41
  203. package/dist/refresh-BMZFu0mu.js +0 -12
  204. package/dist/reown-logo-BXph7ThY.js +0 -16
  205. package/dist/search-Cm_V42Y_.js +0 -12
  206. package/dist/secp256k1-C0iX1TUr.js +0 -1510
  207. package/dist/secp256k1-DOQBqE4Z.js +0 -1302
  208. package/dist/send-BSMYxDuP.js +0 -19
  209. package/dist/send-C8EeIzRB.js +0 -1038
  210. package/dist/socials-DQrHQajs.js +0 -574
  211. package/dist/swapHorizontal-98rnJewS.js +0 -12
  212. package/dist/swapHorizontalBold-C299FjEt.js +0 -12
  213. package/dist/swapHorizontalMedium-Cqm6i4WJ.js +0 -20
  214. package/dist/swapHorizontalRoundedBold-De7hFfqZ.js +0 -12
  215. package/dist/swapVertical-DSL75l8L.js +0 -12
  216. package/dist/swaps-BuTNp65Y.js +0 -1637
  217. package/dist/telegram-cJP7hgUb.js +0 -20
  218. package/dist/three-dots-DHnEh28O.js +0 -9
  219. package/dist/twitch-CR2iGcBo.js +0 -22
  220. package/dist/twitterIcon-E5TAQjOn.js +0 -10
  221. package/dist/verify-DEukUJp0.js +0 -12
  222. package/dist/verify-filled-BXsx1i_p.js +0 -12
  223. package/dist/w3m-modal-Bm7BqVng.js +0 -1037
  224. package/dist/wallet-CzyyvdrT.js +0 -12
  225. package/dist/wallet-placeholder-BrcmyGEe.js +0 -18
  226. package/dist/walletconnect-BSYogWiE.js +0 -36
  227. package/dist/warning-circle-Cgp2BW3m.js +0 -16
  228. package/dist/x-BJinLpTw.js +0 -16
@@ -1,199 +0,0 @@
1
- import { cE as h, cH as p, cI as w, cF as x, cG as m } from "./index-BJ7cbG3N.js";
2
- import { n as t, c as g, U as f } from "./if-defined-CNte9B3N.js";
3
- import "./index-CmWdvIFT.js";
4
- const b = h`
5
- button {
6
- padding: 6.5px var(--wui-spacing-l) 6.5px var(--wui-spacing-xs);
7
- display: flex;
8
- justify-content: space-between;
9
- width: 100%;
10
- border-radius: var(--wui-border-radius-xs);
11
- background-color: var(--wui-color-gray-glass-002);
12
- }
13
-
14
- button[data-clickable='false'] {
15
- pointer-events: none;
16
- background-color: transparent;
17
- }
18
-
19
- wui-image,
20
- wui-icon {
21
- width: var(--wui-spacing-3xl);
22
- height: var(--wui-spacing-3xl);
23
- }
24
-
25
- wui-image {
26
- border-radius: var(--wui-border-radius-3xl);
27
- }
28
- `;
29
- var u = function(a, o, r, i) {
30
- var l = arguments.length, e = l < 3 ? o : i === null ? i = Object.getOwnPropertyDescriptor(o, r) : i, c;
31
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") e = Reflect.decorate(a, o, r, i);
32
- else for (var s = a.length - 1; s >= 0; s--) (c = a[s]) && (e = (l < 3 ? c(e) : l > 3 ? c(o, r, e) : c(o, r)) || e);
33
- return l > 3 && e && Object.defineProperty(o, r, e), e;
34
- };
35
- let n = class extends x {
36
- constructor() {
37
- super(...arguments), this.tokenName = "", this.tokenImageUrl = "", this.tokenValue = 0, this.tokenAmount = "0.0", this.tokenCurrency = "", this.clickable = !1;
38
- }
39
- render() {
40
- return m`
41
- <button data-clickable=${String(this.clickable)}>
42
- <wui-flex gap="s" alignItems="center">
43
- ${this.visualTemplate()}
44
- <wui-flex flexDirection="column" justifyContent="spaceBetween">
45
- <wui-text variant="paragraph-500" color="fg-100">${this.tokenName}</wui-text>
46
- <wui-text variant="small-400" color="fg-200">
47
- ${f.formatNumberToLocalString(this.tokenAmount, 4)} ${this.tokenCurrency}
48
- </wui-text>
49
- </wui-flex>
50
- </wui-flex>
51
- <wui-text variant="paragraph-500" color="fg-100">$${this.tokenValue.toFixed(2)}</wui-text>
52
- </button>
53
- `;
54
- }
55
- visualTemplate() {
56
- return this.tokenName && this.tokenImageUrl ? m`<wui-image alt=${this.tokenName} src=${this.tokenImageUrl}></wui-image>` : m`<wui-icon name="coinPlaceholder" color="fg-100"></wui-icon>`;
57
- }
58
- };
59
- n.styles = [p, w, b];
60
- u([
61
- t()
62
- ], n.prototype, "tokenName", void 0);
63
- u([
64
- t()
65
- ], n.prototype, "tokenImageUrl", void 0);
66
- u([
67
- t({ type: Number })
68
- ], n.prototype, "tokenValue", void 0);
69
- u([
70
- t()
71
- ], n.prototype, "tokenAmount", void 0);
72
- u([
73
- t()
74
- ], n.prototype, "tokenCurrency", void 0);
75
- u([
76
- t({ type: Boolean })
77
- ], n.prototype, "clickable", void 0);
78
- n = u([
79
- g("wui-list-token")
80
- ], n);
81
- const y = h`
82
- :host {
83
- display: block;
84
- width: var(--local-width);
85
- height: var(--local-height);
86
- border-radius: var(--wui-border-radius-3xl);
87
- box-shadow: 0 0 0 8px var(--wui-color-gray-glass-005);
88
- overflow: hidden;
89
- position: relative;
90
- }
91
-
92
- :host([data-variant='generated']) {
93
- --mixed-local-color-1: var(--local-color-1);
94
- --mixed-local-color-2: var(--local-color-2);
95
- --mixed-local-color-3: var(--local-color-3);
96
- --mixed-local-color-4: var(--local-color-4);
97
- --mixed-local-color-5: var(--local-color-5);
98
- }
99
-
100
- @supports (background: color-mix(in srgb, white 50%, black)) {
101
- :host([data-variant='generated']) {
102
- --mixed-local-color-1: color-mix(
103
- in srgb,
104
- var(--w3m-color-mix) var(--w3m-color-mix-strength),
105
- var(--local-color-1)
106
- );
107
- --mixed-local-color-2: color-mix(
108
- in srgb,
109
- var(--w3m-color-mix) var(--w3m-color-mix-strength),
110
- var(--local-color-2)
111
- );
112
- --mixed-local-color-3: color-mix(
113
- in srgb,
114
- var(--w3m-color-mix) var(--w3m-color-mix-strength),
115
- var(--local-color-3)
116
- );
117
- --mixed-local-color-4: color-mix(
118
- in srgb,
119
- var(--w3m-color-mix) var(--w3m-color-mix-strength),
120
- var(--local-color-4)
121
- );
122
- --mixed-local-color-5: color-mix(
123
- in srgb,
124
- var(--w3m-color-mix) var(--w3m-color-mix-strength),
125
- var(--local-color-5)
126
- );
127
- }
128
- }
129
-
130
- :host([data-variant='generated']) {
131
- box-shadow: 0 0 0 8px var(--wui-color-gray-glass-005);
132
- background: radial-gradient(
133
- var(--local-radial-circle),
134
- #fff 0.52%,
135
- var(--mixed-local-color-5) 31.25%,
136
- var(--mixed-local-color-3) 51.56%,
137
- var(--mixed-local-color-2) 65.63%,
138
- var(--mixed-local-color-1) 82.29%,
139
- var(--mixed-local-color-4) 100%
140
- );
141
- }
142
-
143
- :host([data-variant='default']) {
144
- box-shadow: 0 0 0 8px var(--wui-color-gray-glass-005);
145
- background: radial-gradient(
146
- 75.29% 75.29% at 64.96% 24.36%,
147
- #fff 0.52%,
148
- #f5ccfc 31.25%,
149
- #dba4f5 51.56%,
150
- #9a8ee8 65.63%,
151
- #6493da 82.29%,
152
- #6ebdea 100%
153
- );
154
- }
155
- `;
156
- var v = function(a, o, r, i) {
157
- var l = arguments.length, e = l < 3 ? o : i === null ? i = Object.getOwnPropertyDescriptor(o, r) : i, c;
158
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") e = Reflect.decorate(a, o, r, i);
159
- else for (var s = a.length - 1; s >= 0; s--) (c = a[s]) && (e = (l < 3 ? c(e) : l > 3 ? c(o, r, e) : c(o, r)) || e);
160
- return l > 3 && e && Object.defineProperty(o, r, e), e;
161
- };
162
- let d = class extends x {
163
- constructor() {
164
- super(...arguments), this.imageSrc = void 0, this.alt = void 0, this.address = void 0, this.size = "xl";
165
- }
166
- render() {
167
- return this.style.cssText = `
168
- --local-width: var(--wui-icon-box-size-${this.size});
169
- --local-height: var(--wui-icon-box-size-${this.size});
170
- `, m`${this.visualTemplate()}`;
171
- }
172
- visualTemplate() {
173
- if (this.imageSrc)
174
- return this.dataset.variant = "image", m`<wui-image src=${this.imageSrc} alt=${this.alt ?? "avatar"}></wui-image>`;
175
- if (this.address) {
176
- this.dataset.variant = "generated";
177
- const o = f.generateAvatarColors(this.address);
178
- return this.style.cssText += `
179
- ${o}`, null;
180
- }
181
- return this.dataset.variant = "default", null;
182
- }
183
- };
184
- d.styles = [p, y];
185
- v([
186
- t()
187
- ], d.prototype, "imageSrc", void 0);
188
- v([
189
- t()
190
- ], d.prototype, "alt", void 0);
191
- v([
192
- t()
193
- ], d.prototype, "address", void 0);
194
- v([
195
- t()
196
- ], d.prototype, "size", void 0);
197
- d = v([
198
- g("wui-avatar")
199
- ], d);
@@ -1,77 +0,0 @@
1
- import { cE as d, cF as g, cG as h } from "./index-BJ7cbG3N.js";
2
- import { n, c as b } from "./if-defined-CNte9B3N.js";
3
- const p = d`
4
- :host {
5
- display: block;
6
- box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
7
- background: linear-gradient(
8
- 120deg,
9
- var(--wui-color-bg-200) 5%,
10
- var(--wui-color-bg-200) 48%,
11
- var(--wui-color-bg-300) 55%,
12
- var(--wui-color-bg-300) 60%,
13
- var(--wui-color-bg-300) calc(60% + 10px),
14
- var(--wui-color-bg-200) calc(60% + 12px),
15
- var(--wui-color-bg-200) 100%
16
- );
17
- background-size: 250%;
18
- animation: shimmer 3s linear infinite reverse;
19
- }
20
-
21
- :host([variant='light']) {
22
- background: linear-gradient(
23
- 120deg,
24
- var(--wui-color-bg-150) 5%,
25
- var(--wui-color-bg-150) 48%,
26
- var(--wui-color-bg-200) 55%,
27
- var(--wui-color-bg-200) 60%,
28
- var(--wui-color-bg-200) calc(60% + 10px),
29
- var(--wui-color-bg-150) calc(60% + 12px),
30
- var(--wui-color-bg-150) 100%
31
- );
32
- background-size: 250%;
33
- }
34
-
35
- @keyframes shimmer {
36
- from {
37
- background-position: -250% 0;
38
- }
39
- to {
40
- background-position: 250% 0;
41
- }
42
- }
43
- `;
44
- var t = function(a, i, e, c) {
45
- var s = arguments.length, r = s < 3 ? i : c === null ? c = Object.getOwnPropertyDescriptor(i, e) : c, l;
46
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r = Reflect.decorate(a, i, e, c);
47
- else for (var u = a.length - 1; u >= 0; u--) (l = a[u]) && (r = (s < 3 ? l(r) : s > 3 ? l(i, e, r) : l(i, e)) || r);
48
- return s > 3 && r && Object.defineProperty(i, e, r), r;
49
- };
50
- let o = class extends g {
51
- constructor() {
52
- super(...arguments), this.width = "", this.height = "", this.borderRadius = "m", this.variant = "default";
53
- }
54
- render() {
55
- return this.style.cssText = `
56
- width: ${this.width};
57
- height: ${this.height};
58
- border-radius: ${`clamp(0px,var(--wui-border-radius-${this.borderRadius}), 40px)`};
59
- `, h`<slot></slot>`;
60
- }
61
- };
62
- o.styles = [p];
63
- t([
64
- n()
65
- ], o.prototype, "width", void 0);
66
- t([
67
- n()
68
- ], o.prototype, "height", void 0);
69
- t([
70
- n()
71
- ], o.prototype, "borderRadius", void 0);
72
- t([
73
- n()
74
- ], o.prototype, "variant", void 0);
75
- o = t([
76
- b("wui-shimmer")
77
- ], o);
@@ -1,75 +0,0 @@
1
- import { cE as h, cH as g, cI as p, cF as v, cG as x } from "./index-BJ7cbG3N.js";
2
- import { n as c, c as f } from "./if-defined-CNte9B3N.js";
3
- const y = h`
4
- :host {
5
- display: inline-flex;
6
- justify-content: center;
7
- align-items: center;
8
- position: relative;
9
- overflow: hidden;
10
- background-color: var(--wui-color-gray-glass-020);
11
- border-radius: var(--local-border-radius);
12
- border: var(--local-border);
13
- box-sizing: content-box;
14
- width: var(--local-size);
15
- height: var(--local-size);
16
- min-height: var(--local-size);
17
- min-width: var(--local-size);
18
- }
19
-
20
- @supports (background: color-mix(in srgb, white 50%, black)) {
21
- :host {
22
- background-color: color-mix(in srgb, var(--local-bg-value) var(--local-bg-mix), transparent);
23
- }
24
- }
25
- `;
26
- var i = function(d, e, t, l) {
27
- var a = arguments.length, r = a < 3 ? e : l === null ? l = Object.getOwnPropertyDescriptor(e, t) : l, n;
28
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r = Reflect.decorate(d, e, t, l);
29
- else for (var s = d.length - 1; s >= 0; s--) (n = d[s]) && (r = (a < 3 ? n(r) : a > 3 ? n(e, t, r) : n(e, t)) || r);
30
- return a > 3 && r && Object.defineProperty(e, t, r), r;
31
- };
32
- let o = class extends v {
33
- constructor() {
34
- super(...arguments), this.size = "md", this.backgroundColor = "accent-100", this.iconColor = "accent-100", this.background = "transparent", this.border = !1, this.borderColor = "wui-color-bg-125", this.icon = "copy";
35
- }
36
- render() {
37
- const e = this.iconSize || this.size, t = this.size === "lg", l = this.size === "xl", a = t ? "12%" : "16%", r = t ? "xxs" : l ? "s" : "3xl", n = this.background === "gray", s = this.background === "opaque", b = this.backgroundColor === "accent-100" && s || this.backgroundColor === "success-100" && s || this.backgroundColor === "error-100" && s || this.backgroundColor === "inverse-100" && s;
38
- let u = `var(--wui-color-${this.backgroundColor})`;
39
- return b ? u = `var(--wui-icon-box-bg-${this.backgroundColor})` : n && (u = `var(--wui-color-gray-${this.backgroundColor})`), this.style.cssText = `
40
- --local-bg-value: ${u};
41
- --local-bg-mix: ${b || n ? "100%" : a};
42
- --local-border-radius: var(--wui-border-radius-${r});
43
- --local-size: var(--wui-icon-box-size-${this.size});
44
- --local-border: ${this.borderColor === "wui-color-bg-125" ? "2px" : "1px"} solid ${this.border ? `var(--${this.borderColor})` : "transparent"}
45
- `, x` <wui-icon color=${this.iconColor} size=${e} name=${this.icon}></wui-icon> `;
46
- }
47
- };
48
- o.styles = [g, p, y];
49
- i([
50
- c()
51
- ], o.prototype, "size", void 0);
52
- i([
53
- c()
54
- ], o.prototype, "backgroundColor", void 0);
55
- i([
56
- c()
57
- ], o.prototype, "iconColor", void 0);
58
- i([
59
- c()
60
- ], o.prototype, "iconSize", void 0);
61
- i([
62
- c()
63
- ], o.prototype, "background", void 0);
64
- i([
65
- c({ type: Boolean })
66
- ], o.prototype, "border", void 0);
67
- i([
68
- c()
69
- ], o.prototype, "borderColor", void 0);
70
- i([
71
- c()
72
- ], o.prototype, "icon", void 0);
73
- o = i([
74
- f("wui-icon-box")
75
- ], o);
@@ -1,243 +0,0 @@
1
- import { cE as p, cF as h, cJ as l, cK as o, cG as e } from "./index-BJ7cbG3N.js";
2
- import { r as u, c as d } from "./if-defined-CNte9B3N.js";
3
- import { T as g } from "./index-BYND0GJ9.js";
4
- const f = p`
5
- :host {
6
- --prev-height: 0px;
7
- --new-height: 0px;
8
- display: block;
9
- }
10
-
11
- div.w3m-router-container {
12
- transform: translateY(0);
13
- opacity: 1;
14
- }
15
-
16
- div.w3m-router-container[view-direction='prev'] {
17
- animation:
18
- slide-left-out 150ms forwards ease,
19
- slide-left-in 150ms forwards ease;
20
- animation-delay: 0ms, 200ms;
21
- }
22
-
23
- div.w3m-router-container[view-direction='next'] {
24
- animation:
25
- slide-right-out 150ms forwards ease,
26
- slide-right-in 150ms forwards ease;
27
- animation-delay: 0ms, 200ms;
28
- }
29
-
30
- @keyframes slide-left-out {
31
- from {
32
- transform: translateX(0px);
33
- opacity: 1;
34
- }
35
- to {
36
- transform: translateX(10px);
37
- opacity: 0;
38
- }
39
- }
40
-
41
- @keyframes slide-left-in {
42
- from {
43
- transform: translateX(-10px);
44
- opacity: 0;
45
- }
46
- to {
47
- transform: translateX(0);
48
- opacity: 1;
49
- }
50
- }
51
-
52
- @keyframes slide-right-out {
53
- from {
54
- transform: translateX(0px);
55
- opacity: 1;
56
- }
57
- to {
58
- transform: translateX(-10px);
59
- opacity: 0;
60
- }
61
- }
62
-
63
- @keyframes slide-right-in {
64
- from {
65
- transform: translateX(10px);
66
- opacity: 0;
67
- }
68
- to {
69
- transform: translateX(0);
70
- opacity: 1;
71
- }
72
- }
73
- `;
74
- var v = function(s, t, i, r) {
75
- var w = arguments.length, a = w < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, i) : r, c;
76
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(s, t, i, r);
77
- else for (var m = s.length - 1; m >= 0; m--) (c = s[m]) && (a = (w < 3 ? c(a) : w > 3 ? c(t, i, a) : c(t, i)) || a);
78
- return w > 3 && a && Object.defineProperty(t, i, a), a;
79
- };
80
- let n = class extends h {
81
- constructor() {
82
- super(), this.resizeObserver = void 0, this.prevHeight = "0px", this.prevHistoryLength = 1, this.unsubscribe = [], this.view = l.state.view, this.viewDirection = "", this.unsubscribe.push(l.subscribeKey("view", (t) => this.onViewChange(t)));
83
- }
84
- firstUpdated() {
85
- var t;
86
- this.resizeObserver = new ResizeObserver(([i]) => {
87
- const r = `${i == null ? void 0 : i.contentRect.height}px`;
88
- this.prevHeight !== "0px" && (this.style.setProperty("--prev-height", this.prevHeight), this.style.setProperty("--new-height", r), this.style.animation = "w3m-view-height 150ms forwards ease", this.style.height = "auto"), setTimeout(() => {
89
- this.prevHeight = r, this.style.animation = "unset";
90
- }, o.ANIMATION_DURATIONS.ModalHeight);
91
- }), (t = this.resizeObserver) == null || t.observe(this.getWrapper());
92
- }
93
- disconnectedCallback() {
94
- var t;
95
- (t = this.resizeObserver) == null || t.unobserve(this.getWrapper()), this.unsubscribe.forEach((i) => i());
96
- }
97
- render() {
98
- return e`<div class="w3m-router-container" view-direction="${this.viewDirection}">
99
- ${this.viewTemplate()}
100
- </div>`;
101
- }
102
- viewTemplate() {
103
- switch (this.view) {
104
- case "AccountSettings":
105
- return e`<w3m-account-settings-view></w3m-account-settings-view>`;
106
- case "Account":
107
- return e`<w3m-account-view></w3m-account-view>`;
108
- case "AllWallets":
109
- return e`<w3m-all-wallets-view></w3m-all-wallets-view>`;
110
- case "ApproveTransaction":
111
- return e`<w3m-approve-transaction-view></w3m-approve-transaction-view>`;
112
- case "BuyInProgress":
113
- return e`<w3m-buy-in-progress-view></w3m-buy-in-progress-view>`;
114
- case "ChooseAccountName":
115
- return e`<w3m-choose-account-name-view></w3m-choose-account-name-view>`;
116
- case "Connect":
117
- return e`<w3m-connect-view></w3m-connect-view>`;
118
- case "Create":
119
- return e`<w3m-connect-view walletGuide="explore"></w3m-connect-view>`;
120
- case "ConnectingWalletConnect":
121
- return e`<w3m-connecting-wc-view></w3m-connecting-wc-view>`;
122
- case "ConnectingWalletConnectBasic":
123
- return e`<w3m-connecting-wc-basic-view></w3m-connecting-wc-basic-view>`;
124
- case "ConnectingExternal":
125
- return e`<w3m-connecting-external-view></w3m-connecting-external-view>`;
126
- case "ConnectingSiwe":
127
- return e`<w3m-connecting-siwe-view></w3m-connecting-siwe-view>`;
128
- case "ConnectWallets":
129
- return e`<w3m-connect-wallets-view></w3m-connect-wallets-view>`;
130
- case "ConnectSocials":
131
- return e`<w3m-connect-socials-view></w3m-connect-socials-view>`;
132
- case "ConnectingSocial":
133
- return e`<w3m-connecting-social-view></w3m-connecting-social-view>`;
134
- case "Downloads":
135
- return e`<w3m-downloads-view></w3m-downloads-view>`;
136
- case "EmailLogin":
137
- return e`<w3m-email-login-view></w3m-email-login-view>`;
138
- case "EmailVerifyOtp":
139
- return e`<w3m-email-verify-otp-view></w3m-email-verify-otp-view>`;
140
- case "EmailVerifyDevice":
141
- return e`<w3m-email-verify-device-view></w3m-email-verify-device-view>`;
142
- case "GetWallet":
143
- return e`<w3m-get-wallet-view></w3m-get-wallet-view>`;
144
- case "Networks":
145
- return e`<w3m-networks-view></w3m-networks-view>`;
146
- case "SwitchNetwork":
147
- return e`<w3m-network-switch-view></w3m-network-switch-view>`;
148
- case "Profile":
149
- return e`<w3m-profile-view></w3m-profile-view>`;
150
- case "SwitchAddress":
151
- return e`<w3m-switch-address-view></w3m-switch-address-view>`;
152
- case "Transactions":
153
- return e`<w3m-transactions-view></w3m-transactions-view>`;
154
- case "OnRampProviders":
155
- return e`<w3m-onramp-providers-view></w3m-onramp-providers-view>`;
156
- case "OnRampActivity":
157
- return e`<w3m-onramp-activity-view></w3m-onramp-activity-view>`;
158
- case "OnRampTokenSelect":
159
- return e`<w3m-onramp-token-select-view></w3m-onramp-token-select-view>`;
160
- case "OnRampFiatSelect":
161
- return e`<w3m-onramp-fiat-select-view></w3m-onramp-fiat-select-view>`;
162
- case "UpgradeEmailWallet":
163
- return e`<w3m-upgrade-wallet-view></w3m-upgrade-wallet-view>`;
164
- case "UpdateEmailWallet":
165
- return e`<w3m-update-email-wallet-view></w3m-update-email-wallet-view>`;
166
- case "UpdateEmailPrimaryOtp":
167
- return e`<w3m-update-email-primary-otp-view></w3m-update-email-primary-otp-view>`;
168
- case "UpdateEmailSecondaryOtp":
169
- return e`<w3m-update-email-secondary-otp-view></w3m-update-email-secondary-otp-view>`;
170
- case "UnsupportedChain":
171
- return e`<w3m-unsupported-chain-view></w3m-unsupported-chain-view>`;
172
- case "Swap":
173
- return e`<w3m-swap-view></w3m-swap-view>`;
174
- case "SwapSelectToken":
175
- return e`<w3m-swap-select-token-view></w3m-swap-select-token-view>`;
176
- case "SwapPreview":
177
- return e`<w3m-swap-preview-view></w3m-swap-preview-view>`;
178
- case "WalletSend":
179
- return e`<w3m-wallet-send-view></w3m-wallet-send-view>`;
180
- case "WalletSendSelectToken":
181
- return e`<w3m-wallet-send-select-token-view></w3m-wallet-send-select-token-view>`;
182
- case "WalletSendPreview":
183
- return e`<w3m-wallet-send-preview-view></w3m-wallet-send-preview-view>`;
184
- case "WhatIsABuy":
185
- return e`<w3m-what-is-a-buy-view></w3m-what-is-a-buy-view>`;
186
- case "WalletReceive":
187
- return e`<w3m-wallet-receive-view></w3m-wallet-receive-view>`;
188
- case "WalletCompatibleNetworks":
189
- return e`<w3m-wallet-compatible-networks-view></w3m-wallet-compatible-networks-view>`;
190
- case "WhatIsAWallet":
191
- return e`<w3m-what-is-a-wallet-view></w3m-what-is-a-wallet-view>`;
192
- case "ConnectingMultiChain":
193
- return e`<w3m-connecting-multi-chain-view></w3m-connecting-multi-chain-view>`;
194
- case "WhatIsANetwork":
195
- return e`<w3m-what-is-a-network-view></w3m-what-is-a-network-view>`;
196
- case "ConnectingFarcaster":
197
- return e`<w3m-connecting-farcaster-view></w3m-connecting-farcaster-view>`;
198
- case "SwitchActiveChain":
199
- return e`<w3m-switch-active-chain-view></w3m-switch-active-chain-view>`;
200
- case "RegisterAccountName":
201
- return e`<w3m-register-account-name-view></w3m-register-account-name-view>`;
202
- case "RegisterAccountNameSuccess":
203
- return e`<w3m-register-account-name-success-view></w3m-register-account-name-success-view>`;
204
- case "SmartSessionCreated":
205
- return e`<w3m-smart-session-created-view></w3m-smart-session-created-view>`;
206
- case "SmartSessionList":
207
- return e`<w3m-smart-session-list-view></w3m-smart-session-list-view>`;
208
- case "SIWXSignMessage":
209
- return e`<w3m-siwx-sign-message-view></w3m-siwx-sign-message-view>`;
210
- case "Pay":
211
- return e`<w3m-pay-view></w3m-pay-view>`;
212
- case "PayLoading":
213
- return e`<w3m-pay-loading-view></w3m-pay-loading-view>`;
214
- default:
215
- return e`<w3m-connect-view></w3m-connect-view>`;
216
- }
217
- }
218
- onViewChange(t) {
219
- g.hide();
220
- let i = o.VIEW_DIRECTION.Next;
221
- const { history: r } = l.state;
222
- r.length < this.prevHistoryLength && (i = o.VIEW_DIRECTION.Prev), this.prevHistoryLength = r.length, this.viewDirection = i, setTimeout(() => {
223
- this.view = t;
224
- }, o.ANIMATION_DURATIONS.ViewTransition);
225
- }
226
- getWrapper() {
227
- var t;
228
- return (t = this.shadowRoot) == null ? void 0 : t.querySelector("div");
229
- }
230
- };
231
- n.styles = f;
232
- v([
233
- u()
234
- ], n.prototype, "view", void 0);
235
- v([
236
- u()
237
- ], n.prototype, "viewDirection", void 0);
238
- n = v([
239
- d("w3m-router")
240
- ], n);
241
- export {
242
- n as W
243
- };