@directcryptopay/sdk 0.2.2 → 0.2.4

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-CbO41bcH.js +217 -0
  2. package/dist/HelpersUtil-DHm6EVSE.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-Ch0FFTEt.js +457 -0
  56. package/dist/{ccip-BIGqktC1.js → ccip-BrGhNXIM.js} +4 -4
  57. package/dist/data-capture-CpafmuCb.js +490 -0
  58. package/dist/dcp-sdk.umd.js +7400 -6589
  59. package/dist/email-Dcg4jlai.js +344 -0
  60. package/dist/embedded-wallet-DeoRdAPw.js +820 -0
  61. package/dist/features-B9Nde43h.js +274 -0
  62. package/dist/{hashTypedData-ZH9ZnWu3.js → hashTypedData-a7b8tdkO.js} +6 -6
  63. package/dist/if-defined-k21LutCn.js +10 -0
  64. package/dist/index-9vLw53Xl.js +228 -0
  65. package/dist/index-B5wUyynz.js +107 -0
  66. package/dist/index-B8LkUrww.js +86 -0
  67. package/dist/{index-CPTcEPbD.js → index-BA0VwKg0.js} +296 -298
  68. package/dist/index-BB9JJ24N.js +125 -0
  69. package/dist/index-BCkEvPQ6.js +172 -0
  70. package/dist/index-BDeO_csr.js +171 -0
  71. package/dist/index-Bb7babLF.js +1281 -0
  72. package/dist/index-BjOhprVS.js +199 -0
  73. package/dist/{index-Dy4NyE6l.js → index-BjyMgZsf.js} +7 -7
  74. package/dist/index-BkThIDLX.js +159 -0
  75. package/dist/index-BmFs6nb7.js +209 -0
  76. package/dist/{index-5mp7WkhV.js → index-C4qc4PdD.js} +2 -2
  77. package/dist/{index-BdSIrl-R.js → index-CAPvUh14.js} +578 -570
  78. package/dist/index-CBMU3PTE.js +65 -0
  79. package/dist/index-CGwPkJLF.js +355 -0
  80. package/dist/index-CNGEqX3D.js +153 -0
  81. package/dist/index-CRlCq6IB.js +7981 -0
  82. package/dist/index-Cg_o-i9X.js +118 -0
  83. package/dist/index-D1BvhCbI.js +62 -0
  84. package/dist/index-DFi8TiHc.js +128 -0
  85. package/dist/index-DLwuveL9.js +555 -0
  86. package/dist/index-DMn7ktUQ.js +56 -0
  87. package/dist/index-DOXwtuwa.js +117 -0
  88. package/dist/index-DPPOW_Tp.js +118 -0
  89. package/dist/{index-f3LXSfM5.js → index-DQpzHpW-.js} +56 -142
  90. package/dist/{index-D6h-qfpt.js → index-DXHg5C-W.js} +5 -5
  91. package/dist/index-DcYjZV4H.js +110 -0
  92. package/dist/{index-BJ7cbG3N.js → index-DeL88Lwc.js} +36769 -40177
  93. package/dist/index-DrWVlf8b.js +46 -0
  94. package/dist/index-Dsfuc4rB.js +123 -0
  95. package/dist/index-DuTny38n.js +1175 -0
  96. package/dist/{index-D5r0iSq4.js → index-Nfjb6bV0.js} +1 -1
  97. package/dist/index-WwwdQSN2.js +85 -0
  98. package/dist/index-Yha9Afch.js +174 -0
  99. package/dist/index-cbQHN7GC.js +100 -0
  100. package/dist/{index-DobBVPe4.js → index-hyG3cYsv.js} +481 -236
  101. package/dist/index-qLxmmPaL.js +257 -0
  102. package/dist/index.js +1 -1
  103. package/dist/{localBatchGatewayRequest-CjGcn5nM.js → localBatchGatewayRequest-vfcvRH0G.js} +1 -1
  104. package/dist/onramp-BSiyOX4L.js +855 -0
  105. package/dist/{parseSignature-S8VEpRHC.js → parseSignature-CdCMAPZN.js} +2312 -2313
  106. package/dist/pay-with-exchange-CduNoMEz.js +525 -0
  107. package/dist/property-Bd8U3_QP.js +618 -0
  108. package/dist/receive-CrmptJlq.js +232 -0
  109. package/dist/ref-SOwYtCZb.js +107 -0
  110. package/dist/send-oMcHMEr6.js +1166 -0
  111. package/dist/socials-C0A4-FbY.js +620 -0
  112. package/dist/swaps-CbJJ9Ciu.js +1760 -0
  113. package/dist/{transactions-DujFkB-M.js → transactions-BDfCoBS5.js} +10 -10
  114. package/dist/w3m-modal-BjsTkny7.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
@@ -0,0 +1,199 @@
1
+ import { cU as u, cV as g, cW as m, cX as p, cY as n } from "./index-DeL88Lwc.js";
2
+ import { n as r, c as x } from "./index-DuTny38n.js";
3
+ import "./index-DFi8TiHc.js";
4
+ import "./index-D1BvhCbI.js";
5
+ const b = u`
6
+ button {
7
+ display: block;
8
+ display: flex;
9
+ align-items: center;
10
+ padding: ${({ spacing: e }) => e[1]};
11
+ transition: background-color ${({ durations: e }) => e.lg}
12
+ ${({ easings: e }) => e["ease-out-power-2"]};
13
+ will-change: background-color;
14
+ background-color: ${({ tokens: e }) => e.theme.foregroundPrimary};
15
+ border-radius: ${({ borderRadius: e }) => e[32]};
16
+ }
17
+
18
+ wui-image {
19
+ border-radius: ${({ borderRadius: e }) => e[32]};
20
+ }
21
+
22
+ wui-text {
23
+ padding-left: ${({ spacing: e }) => e[1]};
24
+ padding-right: ${({ spacing: e }) => e[1]};
25
+ }
26
+
27
+ .left-icon-container {
28
+ width: 24px;
29
+ height: 24px;
30
+ justify-content: center;
31
+ align-items: center;
32
+ }
33
+
34
+ .left-image-container {
35
+ position: relative;
36
+ justify-content: center;
37
+ align-items: center;
38
+ }
39
+
40
+ .chain-image {
41
+ position: absolute;
42
+ border: 1px solid ${({ tokens: e }) => e.theme.foregroundPrimary};
43
+ }
44
+
45
+ /* -- Sizes --------------------------------------------------- */
46
+ button[data-size='lg'] {
47
+ height: 32px;
48
+ }
49
+
50
+ button[data-size='md'] {
51
+ height: 28px;
52
+ }
53
+
54
+ button[data-size='sm'] {
55
+ height: 24px;
56
+ }
57
+
58
+ button[data-size='lg'] .token-image {
59
+ width: 24px;
60
+ height: 24px;
61
+ }
62
+
63
+ button[data-size='md'] .token-image {
64
+ width: 20px;
65
+ height: 20px;
66
+ }
67
+
68
+ button[data-size='sm'] .token-image {
69
+ width: 16px;
70
+ height: 16px;
71
+ }
72
+
73
+ button[data-size='lg'] .left-icon-container {
74
+ width: 24px;
75
+ height: 24px;
76
+ }
77
+
78
+ button[data-size='md'] .left-icon-container {
79
+ width: 20px;
80
+ height: 20px;
81
+ }
82
+
83
+ button[data-size='sm'] .left-icon-container {
84
+ width: 16px;
85
+ height: 16px;
86
+ }
87
+
88
+ button[data-size='lg'] .chain-image {
89
+ width: 12px;
90
+ height: 12px;
91
+ bottom: 2px;
92
+ right: -4px;
93
+ }
94
+
95
+ button[data-size='md'] .chain-image {
96
+ width: 10px;
97
+ height: 10px;
98
+ bottom: 2px;
99
+ right: -4px;
100
+ }
101
+
102
+ button[data-size='sm'] .chain-image {
103
+ width: 8px;
104
+ height: 8px;
105
+ bottom: 2px;
106
+ right: -3px;
107
+ }
108
+
109
+ /* -- Focus states --------------------------------------------------- */
110
+ button:focus-visible:enabled {
111
+ background-color: ${({ tokens: e }) => e.theme.foregroundSecondary};
112
+ box-shadow: 0 0 0 4px ${({ tokens: e }) => e.core.foregroundAccent040};
113
+ }
114
+
115
+ /* -- Hover & Active states ----------------------------------------------------------- */
116
+ @media (hover: hover) {
117
+ button:hover:enabled,
118
+ button:active:enabled {
119
+ background-color: ${({ tokens: e }) => e.theme.foregroundSecondary};
120
+ }
121
+ }
122
+
123
+ /* -- Disabled states --------------------------------------------------- */
124
+ button:disabled {
125
+ background-color: ${({ tokens: e }) => e.theme.foregroundSecondary};
126
+ opacity: 0.5;
127
+ }
128
+ `;
129
+ var a = function(e, t, s, d) {
130
+ var c = arguments.length, o = c < 3 ? t : d === null ? d = Object.getOwnPropertyDescriptor(t, s) : d, l;
131
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, s, d);
132
+ else for (var h = e.length - 1; h >= 0; h--) (l = e[h]) && (o = (c < 3 ? l(o) : c > 3 ? l(t, s, o) : l(t, s)) || o);
133
+ return c > 3 && o && Object.defineProperty(t, s, o), o;
134
+ };
135
+ const f = {
136
+ lg: "lg-regular",
137
+ md: "lg-regular",
138
+ sm: "md-regular"
139
+ }, w = {
140
+ lg: "lg",
141
+ md: "md",
142
+ sm: "sm"
143
+ };
144
+ let i = class extends p {
145
+ constructor() {
146
+ super(...arguments), this.size = "md", this.disabled = !1, this.text = "", this.loading = !1;
147
+ }
148
+ render() {
149
+ return this.loading ? n` <wui-flex alignItems="center" gap="01" padding="01">
150
+ <wui-shimmer width="20px" height="20px"></wui-shimmer>
151
+ <wui-shimmer width="32px" height="18px" borderRadius="4xs"></wui-shimmer>
152
+ </wui-flex>` : n`
153
+ <button ?disabled=${this.disabled} data-size=${this.size}>
154
+ ${this.imageTemplate()} ${this.textTemplate()}
155
+ </button>
156
+ `;
157
+ }
158
+ imageTemplate() {
159
+ if (this.imageSrc && this.chainImageSrc)
160
+ return n`<wui-flex class="left-image-container">
161
+ <wui-image src=${this.imageSrc} class="token-image"></wui-image>
162
+ <wui-image src=${this.chainImageSrc} class="chain-image"></wui-image>
163
+ </wui-flex>`;
164
+ if (this.imageSrc)
165
+ return n`<wui-image src=${this.imageSrc} class="token-image"></wui-image>`;
166
+ const t = w[this.size];
167
+ return n`<wui-flex class="left-icon-container">
168
+ <wui-icon size=${t} name="networkPlaceholder"></wui-icon>
169
+ </wui-flex>`;
170
+ }
171
+ textTemplate() {
172
+ const t = f[this.size];
173
+ return n`<wui-text color="primary" variant=${t}
174
+ >${this.text}</wui-text
175
+ >`;
176
+ }
177
+ };
178
+ i.styles = [g, m, b];
179
+ a([
180
+ r()
181
+ ], i.prototype, "size", void 0);
182
+ a([
183
+ r()
184
+ ], i.prototype, "imageSrc", void 0);
185
+ a([
186
+ r()
187
+ ], i.prototype, "chainImageSrc", void 0);
188
+ a([
189
+ r({ type: Boolean })
190
+ ], i.prototype, "disabled", void 0);
191
+ a([
192
+ r()
193
+ ], i.prototype, "text", void 0);
194
+ a([
195
+ r({ type: Boolean })
196
+ ], i.prototype, "loading", void 0);
197
+ i = a([
198
+ x("wui-token-button")
199
+ ], i);
@@ -1,6 +1,6 @@
1
- import { cM as D, bp as b, aW as I, cN as C, c0 as g, b2 as A, cO as y, cn as N } from "./index-BJ7cbG3N.js";
2
- import { cP as m } from "./index-BJ7cbG3N.js";
3
- function k(u = {}) {
1
+ import { d9 as D, bp as b, aW as I, da as C, c0 as g, b2 as A, db as y, cn as _ } from "./index-DeL88Lwc.js";
2
+ import { dc as m } from "./index-DeL88Lwc.js";
3
+ function q(u = {}) {
4
4
  let l, d, s, a;
5
5
  return D((n) => ({
6
6
  id: "baseAccount",
@@ -69,7 +69,7 @@ function k(u = {}) {
69
69
  ...u.preference,
70
70
  options: ((r = u.preference) == null ? void 0 : r.options) ?? "all"
71
71
  };
72
- })(), { createBaseAccountSDK: e } = await import("./index-CPTcEPbD.js");
72
+ })(), { createBaseAccountSDK: e } = await import("./index-BA0VwKg0.js");
73
73
  l = e({
74
74
  ...u,
75
75
  appChainIds: n.chains.map((r) => r.id),
@@ -173,13 +173,13 @@ function S(u = {}) {
173
173
  async getProvider() {
174
174
  if (typeof window < "u" && (window == null ? void 0 : window.parent) !== window) {
175
175
  if (!d) {
176
- const { default: t } = await import("./index-5mp7WkhV.js"), e = new t(u), i = await N(() => e.safe.getInfo(), {
176
+ const { default: t } = await import("./index-C4qc4PdD.js"), e = new t(u), i = await _(() => e.safe.getInfo(), {
177
177
  timeout: u.unstable_getInfoTimeout ?? 10
178
178
  });
179
179
  if (!i)
180
180
  throw new Error("Could not load Safe information");
181
181
  const r = await (async () => {
182
- const c = await import("./index-D5r0iSq4.js").then((p) => p.i);
182
+ const c = await import("./index-Nfjb6bV0.js").then((p) => p.i);
183
183
  return typeof c.SafeAppProvider != "function" && typeof c.default.SafeAppProvider == "function" ? c.default.SafeAppProvider : c.SafeAppProvider;
184
184
  })();
185
185
  d = new r(i, e);
@@ -212,7 +212,7 @@ function S(u = {}) {
212
212
  }));
213
213
  }
214
214
  export {
215
- k as baseAccount,
215
+ q as baseAccount,
216
216
  m as injected,
217
217
  S as safe
218
218
  };
@@ -0,0 +1,159 @@
1
+ import { c$ as d, cC as h, cR as f, cS as g, cU as w, cX as b, cY as y } from "./index-DeL88Lwc.js";
2
+ import { r as m, c as x } from "./index-DuTny38n.js";
3
+ const o = h({
4
+ message: "",
5
+ open: !1,
6
+ triggerRect: {
7
+ width: 0,
8
+ height: 0,
9
+ top: 0,
10
+ left: 0
11
+ },
12
+ variant: "shade"
13
+ }), v = {
14
+ state: o,
15
+ subscribe(t) {
16
+ return g(o, () => t(o));
17
+ },
18
+ subscribeKey(t, e) {
19
+ return f(o, t, e);
20
+ },
21
+ showTooltip({ message: t, triggerRect: e, variant: i }) {
22
+ o.open = !0, o.message = t, o.triggerRect = e, o.variant = i;
23
+ },
24
+ hide() {
25
+ o.open = !1, o.message = "", o.triggerRect = {
26
+ width: 0,
27
+ height: 0,
28
+ top: 0,
29
+ left: 0
30
+ };
31
+ }
32
+ }, s = d(v), $ = w`
33
+ :host {
34
+ pointer-events: none;
35
+ }
36
+
37
+ :host > wui-flex {
38
+ display: var(--w3m-tooltip-display);
39
+ opacity: var(--w3m-tooltip-opacity);
40
+ padding: 9px ${({ spacing: t }) => t[3]} 10px ${({ spacing: t }) => t[3]};
41
+ border-radius: ${({ borderRadius: t }) => t[3]};
42
+ color: ${({ tokens: t }) => t.theme.backgroundPrimary};
43
+ position: absolute;
44
+ top: var(--w3m-tooltip-top);
45
+ left: var(--w3m-tooltip-left);
46
+ transform: translate(calc(-50% + var(--w3m-tooltip-parent-width)), calc(-100% - 8px));
47
+ max-width: calc(var(--apkt-modal-width) - ${({ spacing: t }) => t[5]});
48
+ transition: opacity ${({ durations: t }) => t.lg}
49
+ ${({ easings: t }) => t["ease-out-power-2"]};
50
+ will-change: opacity;
51
+ opacity: 0;
52
+ animation-duration: ${({ durations: t }) => t.xl};
53
+ animation-timing-function: ${({ easings: t }) => t["ease-out-power-2"]};
54
+ animation-name: fade-in;
55
+ animation-fill-mode: forwards;
56
+ }
57
+
58
+ :host([data-variant='shade']) > wui-flex {
59
+ background-color: ${({ tokens: t }) => t.theme.foregroundPrimary};
60
+ }
61
+
62
+ :host([data-variant='shade']) > wui-flex > wui-text {
63
+ color: ${({ tokens: t }) => t.theme.textSecondary};
64
+ }
65
+
66
+ :host([data-variant='fill']) > wui-flex {
67
+ background-color: ${({ tokens: t }) => t.theme.textPrimary};
68
+ border: none;
69
+ }
70
+
71
+ wui-icon {
72
+ position: absolute;
73
+ width: 12px !important;
74
+ height: 4px !important;
75
+ color: ${({ tokens: t }) => t.theme.foregroundPrimary};
76
+ }
77
+
78
+ wui-icon[data-placement='top'] {
79
+ bottom: 0px;
80
+ left: 50%;
81
+ transform: translate(-50%, 95%);
82
+ }
83
+
84
+ wui-icon[data-placement='bottom'] {
85
+ top: 0;
86
+ left: 50%;
87
+ transform: translate(-50%, -95%) rotate(180deg);
88
+ }
89
+
90
+ wui-icon[data-placement='right'] {
91
+ top: 50%;
92
+ left: 0;
93
+ transform: translate(-65%, -50%) rotate(90deg);
94
+ }
95
+
96
+ wui-icon[data-placement='left'] {
97
+ top: 50%;
98
+ right: 0%;
99
+ transform: translate(65%, -50%) rotate(270deg);
100
+ }
101
+
102
+ @keyframes fade-in {
103
+ from {
104
+ opacity: 0;
105
+ }
106
+ to {
107
+ opacity: 1;
108
+ }
109
+ }
110
+ `;
111
+ var n = function(t, e, i, p) {
112
+ var c = arguments.length, a = c < 3 ? e : p === null ? p = Object.getOwnPropertyDescriptor(e, i) : p, l;
113
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(t, e, i, p);
114
+ else for (var u = t.length - 1; u >= 0; u--) (l = t[u]) && (a = (c < 3 ? l(a) : c > 3 ? l(e, i, a) : l(e, i)) || a);
115
+ return c > 3 && a && Object.defineProperty(e, i, a), a;
116
+ };
117
+ let r = class extends b {
118
+ constructor() {
119
+ super(), this.unsubscribe = [], this.open = s.state.open, this.message = s.state.message, this.triggerRect = s.state.triggerRect, this.variant = s.state.variant, this.unsubscribe.push(s.subscribe((e) => {
120
+ this.open = e.open, this.message = e.message, this.triggerRect = e.triggerRect, this.variant = e.variant;
121
+ }));
122
+ }
123
+ disconnectedCallback() {
124
+ this.unsubscribe.forEach((e) => e());
125
+ }
126
+ render() {
127
+ this.dataset.variant = this.variant;
128
+ const e = this.triggerRect.top, i = this.triggerRect.left;
129
+ return this.style.cssText = `
130
+ --w3m-tooltip-top: ${e}px;
131
+ --w3m-tooltip-left: ${i}px;
132
+ --w3m-tooltip-parent-width: ${this.triggerRect.width / 2}px;
133
+ --w3m-tooltip-display: ${this.open ? "flex" : "none"};
134
+ --w3m-tooltip-opacity: ${this.open ? 1 : 0};
135
+ `, y`<wui-flex>
136
+ <wui-icon data-placement="top" size="inherit" name="cursor"></wui-icon>
137
+ <wui-text color="primary" variant="sm-regular">${this.message}</wui-text>
138
+ </wui-flex>`;
139
+ }
140
+ };
141
+ r.styles = [$];
142
+ n([
143
+ m()
144
+ ], r.prototype, "open", void 0);
145
+ n([
146
+ m()
147
+ ], r.prototype, "message", void 0);
148
+ n([
149
+ m()
150
+ ], r.prototype, "triggerRect", void 0);
151
+ n([
152
+ m()
153
+ ], r.prototype, "variant", void 0);
154
+ r = n([
155
+ x("w3m-tooltip")
156
+ ], r);
157
+ export {
158
+ s as T
159
+ };
@@ -0,0 +1,209 @@
1
+ import { cU as b, cV as g, cW as p, cX as h, cY as u } from "./index-DeL88Lwc.js";
2
+ import { n, c as v } from "./index-DuTny38n.js";
3
+ import "./index-B8LkUrww.js";
4
+ const m = b`
5
+ :host {
6
+ width: var(--local-width);
7
+ }
8
+
9
+ button {
10
+ width: var(--local-width);
11
+ white-space: nowrap;
12
+ column-gap: ${({ spacing: t }) => t[2]};
13
+ transition:
14
+ scale ${({ durations: t }) => t.lg} ${({ easings: t }) => t["ease-out-power-1"]},
15
+ background-color ${({ durations: t }) => t.lg}
16
+ ${({ easings: t }) => t["ease-out-power-2"]},
17
+ border-radius ${({ durations: t }) => t.lg}
18
+ ${({ easings: t }) => t["ease-out-power-1"]};
19
+ will-change: scale, background-color, border-radius;
20
+ cursor: pointer;
21
+ }
22
+
23
+ /* -- Sizes --------------------------------------------------- */
24
+ button[data-size='sm'] {
25
+ border-radius: ${({ borderRadius: t }) => t[2]};
26
+ padding: 0 ${({ spacing: t }) => t[2]};
27
+ height: 28px;
28
+ }
29
+
30
+ button[data-size='md'] {
31
+ border-radius: ${({ borderRadius: t }) => t[3]};
32
+ padding: 0 ${({ spacing: t }) => t[4]};
33
+ height: 38px;
34
+ }
35
+
36
+ button[data-size='lg'] {
37
+ border-radius: ${({ borderRadius: t }) => t[4]};
38
+ padding: 0 ${({ spacing: t }) => t[5]};
39
+ height: 48px;
40
+ }
41
+
42
+ /* -- Variants --------------------------------------------------------- */
43
+ button[data-variant='accent-primary'] {
44
+ background-color: ${({ tokens: t }) => t.core.backgroundAccentPrimary};
45
+ color: ${({ tokens: t }) => t.theme.textInvert};
46
+ }
47
+
48
+ button[data-variant='accent-secondary'] {
49
+ background-color: ${({ tokens: t }) => t.core.foregroundAccent010};
50
+ color: ${({ tokens: t }) => t.core.textAccentPrimary};
51
+ }
52
+
53
+ button[data-variant='neutral-primary'] {
54
+ background-color: ${({ tokens: t }) => t.theme.backgroundInvert};
55
+ color: ${({ tokens: t }) => t.theme.textInvert};
56
+ }
57
+
58
+ button[data-variant='neutral-secondary'] {
59
+ background-color: transparent;
60
+ border: 1px solid ${({ tokens: t }) => t.theme.borderSecondary};
61
+ color: ${({ tokens: t }) => t.theme.textPrimary};
62
+ }
63
+
64
+ button[data-variant='neutral-tertiary'] {
65
+ background-color: ${({ tokens: t }) => t.theme.foregroundPrimary};
66
+ color: ${({ tokens: t }) => t.theme.textPrimary};
67
+ }
68
+
69
+ button[data-variant='error-primary'] {
70
+ background-color: ${({ tokens: t }) => t.core.textError};
71
+ color: ${({ tokens: t }) => t.theme.textInvert};
72
+ }
73
+
74
+ button[data-variant='error-secondary'] {
75
+ background-color: ${({ tokens: t }) => t.core.backgroundError};
76
+ color: ${({ tokens: t }) => t.core.textError};
77
+ }
78
+
79
+ button[data-variant='shade'] {
80
+ background: var(--wui-color-gray-glass-002);
81
+ color: var(--wui-color-fg-200);
82
+ border: none;
83
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
84
+ }
85
+
86
+ /* -- Focus states --------------------------------------------------- */
87
+ button[data-size='sm']:focus-visible:enabled {
88
+ border-radius: 28px;
89
+ }
90
+
91
+ button[data-size='md']:focus-visible:enabled {
92
+ border-radius: 38px;
93
+ }
94
+
95
+ button[data-size='lg']:focus-visible:enabled {
96
+ border-radius: 48px;
97
+ }
98
+ button[data-variant='shade']:focus-visible:enabled {
99
+ background: var(--wui-color-gray-glass-005);
100
+ box-shadow:
101
+ inset 0 0 0 1px var(--wui-color-gray-glass-010),
102
+ 0 0 0 4px var(--wui-color-gray-glass-002);
103
+ }
104
+
105
+ /* -- Hover & Active states ----------------------------------------------------------- */
106
+ @media (hover: hover) {
107
+ button[data-size='sm']:hover:enabled {
108
+ border-radius: 28px;
109
+ }
110
+
111
+ button[data-size='md']:hover:enabled {
112
+ border-radius: 38px;
113
+ }
114
+
115
+ button[data-size='lg']:hover:enabled {
116
+ border-radius: 48px;
117
+ }
118
+
119
+ button[data-variant='shade']:hover:enabled {
120
+ background: var(--wui-color-gray-glass-002);
121
+ }
122
+
123
+ button[data-variant='shade']:active:enabled {
124
+ background: var(--wui-color-gray-glass-005);
125
+ }
126
+ }
127
+
128
+ button[data-size='sm']:active:enabled {
129
+ border-radius: 28px;
130
+ }
131
+
132
+ button[data-size='md']:active:enabled {
133
+ border-radius: 38px;
134
+ }
135
+
136
+ button[data-size='lg']:active:enabled {
137
+ border-radius: 48px;
138
+ }
139
+
140
+ /* -- Disabled states --------------------------------------------------- */
141
+ button:disabled {
142
+ opacity: 0.3;
143
+ }
144
+ `;
145
+ var i = function(t, a, o, s) {
146
+ var d = arguments.length, e = d < 3 ? a : s === null ? s = Object.getOwnPropertyDescriptor(a, o) : s, l;
147
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") e = Reflect.decorate(t, a, o, s);
148
+ else for (var c = t.length - 1; c >= 0; c--) (l = t[c]) && (e = (d < 3 ? l(e) : d > 3 ? l(a, o, e) : l(a, o)) || e);
149
+ return d > 3 && e && Object.defineProperty(a, o, e), e;
150
+ };
151
+ const y = {
152
+ lg: "lg-regular-mono",
153
+ md: "md-regular-mono",
154
+ sm: "sm-regular-mono"
155
+ }, $ = {
156
+ lg: "md",
157
+ md: "md",
158
+ sm: "sm"
159
+ };
160
+ let r = class extends h {
161
+ constructor() {
162
+ super(...arguments), this.size = "lg", this.disabled = !1, this.fullWidth = !1, this.loading = !1, this.variant = "accent-primary";
163
+ }
164
+ render() {
165
+ this.style.cssText = `
166
+ --local-width: ${this.fullWidth ? "100%" : "auto"};
167
+ `;
168
+ const a = this.textVariant ?? y[this.size];
169
+ return u`
170
+ <button data-variant=${this.variant} data-size=${this.size} ?disabled=${this.disabled}>
171
+ ${this.loadingTemplate()}
172
+ <slot name="iconLeft"></slot>
173
+ <wui-text variant=${a} color="inherit">
174
+ <slot></slot>
175
+ </wui-text>
176
+ <slot name="iconRight"></slot>
177
+ </button>
178
+ `;
179
+ }
180
+ loadingTemplate() {
181
+ if (this.loading) {
182
+ const a = $[this.size], o = this.variant === "neutral-primary" || this.variant === "accent-primary" ? "invert" : "primary";
183
+ return u`<wui-loading-spinner color=${o} size=${a}></wui-loading-spinner>`;
184
+ }
185
+ return null;
186
+ }
187
+ };
188
+ r.styles = [g, p, m];
189
+ i([
190
+ n()
191
+ ], r.prototype, "size", void 0);
192
+ i([
193
+ n({ type: Boolean })
194
+ ], r.prototype, "disabled", void 0);
195
+ i([
196
+ n({ type: Boolean })
197
+ ], r.prototype, "fullWidth", void 0);
198
+ i([
199
+ n({ type: Boolean })
200
+ ], r.prototype, "loading", void 0);
201
+ i([
202
+ n()
203
+ ], r.prototype, "variant", void 0);
204
+ i([
205
+ n()
206
+ ], r.prototype, "textVariant", void 0);
207
+ r = i([
208
+ v("wui-button")
209
+ ], r);
@@ -1,6 +1,6 @@
1
1
  import { r as T } from "./index-C1QEJL-2.js";
2
- import { bk as y } from "./index-BJ7cbG3N.js";
3
- import { h as k, e as I } from "./hashTypedData-ZH9ZnWu3.js";
2
+ import { bk as y } from "./index-DeL88Lwc.js";
3
+ import { h as k, e as I } from "./hashTypedData-a7b8tdkO.js";
4
4
  const q = () => "9.1.0", v = (t) => t.toString(16).padStart(2, "0"), C = (t) => {
5
5
  const e = new Uint8Array(t / 2);
6
6
  return window.crypto.getRandomValues(e), Array.from(e, v).join("");