@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
@@ -0,0 +1,153 @@
1
+ import { cU as d, cV as c, cW as m, cX as f, cZ as v, cY as h } from "./index-D_8VUmn1.js";
2
+ import { n as r, c as y, U as b } from "./index-CEqcN8QP.js";
3
+ import { e as g, n as w } from "./ref-CpgjXAw7.js";
4
+ const x = d`
5
+ :host {
6
+ position: relative;
7
+ display: inline-block;
8
+ }
9
+
10
+ :host([data-error='true']) > input {
11
+ color: ${({ tokens: t }) => t.core.textError};
12
+ }
13
+
14
+ :host([data-error='false']) > input {
15
+ color: ${({ tokens: t }) => t.theme.textSecondary};
16
+ }
17
+
18
+ input {
19
+ background: transparent;
20
+ height: auto;
21
+ box-sizing: border-box;
22
+ color: ${({ tokens: t }) => t.theme.textPrimary};
23
+ font-feature-settings: 'case' on;
24
+ font-size: ${({ textSize: t }) => t.h4};
25
+ caret-color: ${({ tokens: t }) => t.core.backgroundAccentPrimary};
26
+ line-height: ${({ typography: t }) => t["h4-regular-mono"].lineHeight};
27
+ letter-spacing: ${({ typography: t }) => t["h4-regular-mono"].letterSpacing};
28
+ -webkit-appearance: none;
29
+ -moz-appearance: textfield;
30
+ padding: 0px;
31
+ font-family: ${({ fontFamily: t }) => t.mono};
32
+ }
33
+
34
+ :host([data-width-variant='auto']) input {
35
+ width: 100%;
36
+ }
37
+
38
+ :host([data-width-variant='fit']) input {
39
+ width: 1ch;
40
+ }
41
+
42
+ .wui-input-amount-fit-mirror {
43
+ position: absolute;
44
+ visibility: hidden;
45
+ white-space: pre;
46
+ font-size: var(--local-font-size);
47
+ line-height: 130%;
48
+ letter-spacing: -1.28px;
49
+ font-family: ${({ fontFamily: t }) => t.mono};
50
+ }
51
+
52
+ .wui-input-amount-fit-width {
53
+ display: inline-block;
54
+ position: relative;
55
+ }
56
+
57
+ input::-webkit-outer-spin-button,
58
+ input::-webkit-inner-spin-button {
59
+ -webkit-appearance: none;
60
+ margin: 0;
61
+ }
62
+
63
+ input::placeholder {
64
+ color: ${({ tokens: t }) => t.theme.textSecondary};
65
+ }
66
+ `;
67
+ var a = function(t, e, n, s) {
68
+ var p = arguments.length, o = p < 3 ? e : s === null ? s = Object.getOwnPropertyDescriptor(e, n) : s, l;
69
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(t, e, n, s);
70
+ else for (var u = t.length - 1; u >= 0; u--) (l = t[u]) && (o = (p < 3 ? l(o) : p > 3 ? l(e, n, o) : l(e, n)) || o);
71
+ return p > 3 && o && Object.defineProperty(e, n, o), o;
72
+ };
73
+ let i = class extends f {
74
+ constructor() {
75
+ super(...arguments), this.inputElementRef = g(), this.disabled = !1, this.value = "", this.placeholder = "0", this.widthVariant = "auto", this.maxDecimals = void 0, this.maxIntegers = void 0, this.fontSize = "h4", this.error = !1;
76
+ }
77
+ firstUpdated() {
78
+ this.resizeInput();
79
+ }
80
+ updated() {
81
+ this.style.setProperty("--local-font-size", v.textSize[this.fontSize]), this.resizeInput();
82
+ }
83
+ render() {
84
+ var e;
85
+ return this.dataset.widthVariant = this.widthVariant, this.dataset.error = String(this.error), (e = this.inputElementRef) != null && e.value && this.value && (this.inputElementRef.value.value = this.value), this.widthVariant === "auto" ? this.inputTemplate() : h`
86
+ <div class="wui-input-amount-fit-width">
87
+ <span class="wui-input-amount-fit-mirror"></span>
88
+ ${this.inputTemplate()}
89
+ </div>
90
+ `;
91
+ }
92
+ inputTemplate() {
93
+ return h`<input
94
+ ${w(this.inputElementRef)}
95
+ type="text"
96
+ inputmode="decimal"
97
+ pattern="[0-9,.]*"
98
+ placeholder=${this.placeholder}
99
+ ?disabled=${this.disabled}
100
+ autofocus
101
+ value=${this.value ?? ""}
102
+ @input=${this.dispatchInputChangeEvent.bind(this)}
103
+ />`;
104
+ }
105
+ dispatchInputChangeEvent() {
106
+ this.inputElementRef.value && (this.inputElementRef.value.value = b.maskInput({
107
+ value: this.inputElementRef.value.value,
108
+ decimals: this.maxDecimals,
109
+ integers: this.maxIntegers
110
+ }), this.dispatchEvent(new CustomEvent("inputChange", {
111
+ detail: this.inputElementRef.value.value,
112
+ bubbles: !0,
113
+ composed: !0
114
+ })), this.resizeInput());
115
+ }
116
+ resizeInput() {
117
+ if (this.widthVariant === "fit") {
118
+ const e = this.inputElementRef.value;
119
+ if (e) {
120
+ const n = e.previousElementSibling;
121
+ n && (n.textContent = e.value || "0", e.style.width = `${n.offsetWidth}px`);
122
+ }
123
+ }
124
+ }
125
+ };
126
+ i.styles = [c, m, x];
127
+ a([
128
+ r({ type: Boolean })
129
+ ], i.prototype, "disabled", void 0);
130
+ a([
131
+ r({ type: String })
132
+ ], i.prototype, "value", void 0);
133
+ a([
134
+ r({ type: String })
135
+ ], i.prototype, "placeholder", void 0);
136
+ a([
137
+ r({ type: String })
138
+ ], i.prototype, "widthVariant", void 0);
139
+ a([
140
+ r({ type: Number })
141
+ ], i.prototype, "maxDecimals", void 0);
142
+ a([
143
+ r({ type: Number })
144
+ ], i.prototype, "maxIntegers", void 0);
145
+ a([
146
+ r({ type: String })
147
+ ], i.prototype, "fontSize", void 0);
148
+ a([
149
+ r({ type: Boolean })
150
+ ], i.prototype, "error", void 0);
151
+ i = a([
152
+ y("wui-input-amount")
153
+ ], i);
@@ -0,0 +1,107 @@
1
+ import { cU as p, cV as f, cW as h, cX as b, cN as d, cY as m } from "./index-D_8VUmn1.js";
2
+ import { n as i, c as w } from "./index-CEqcN8QP.js";
3
+ import "./index-I7VDqINw.js";
4
+ const g = p`
5
+ :host {
6
+ width: 100%;
7
+ }
8
+
9
+ button {
10
+ padding: ${({ spacing: e }) => e[3]};
11
+ display: flex;
12
+ justify-content: space-between;
13
+ width: 100%;
14
+ border-radius: ${({ borderRadius: e }) => e[4]};
15
+ background-color: transparent;
16
+ }
17
+
18
+ @media (hover: hover) {
19
+ button:hover:enabled {
20
+ background-color: ${({ tokens: e }) => e.theme.foregroundSecondary};
21
+ }
22
+ }
23
+
24
+ button:focus-visible:enabled {
25
+ background-color: ${({ tokens: e }) => e.theme.foregroundSecondary};
26
+ box-shadow: 0 0 0 4px ${({ tokens: e }) => e.core.foregroundAccent040};
27
+ }
28
+
29
+ button[data-clickable='false'] {
30
+ pointer-events: none;
31
+ background-color: transparent;
32
+ }
33
+
34
+ wui-image,
35
+ wui-icon {
36
+ width: ${({ spacing: e }) => e[10]};
37
+ height: ${({ spacing: e }) => e[10]};
38
+ }
39
+
40
+ wui-image {
41
+ border-radius: ${({ borderRadius: e }) => e[16]};
42
+ }
43
+ `;
44
+ var n = function(e, r, a, u) {
45
+ var l = arguments.length, o = l < 3 ? r : u === null ? u = Object.getOwnPropertyDescriptor(r, a) : u, c;
46
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, r, a, u);
47
+ else for (var s = e.length - 1; s >= 0; s--) (c = e[s]) && (o = (l < 3 ? c(o) : l > 3 ? c(r, a, o) : c(r, a)) || o);
48
+ return l > 3 && o && Object.defineProperty(r, a, o), o;
49
+ };
50
+ let t = class extends b {
51
+ constructor() {
52
+ super(...arguments), this.tokenName = "", this.tokenImageUrl = "", this.tokenValue = 0, this.tokenAmount = "0.0", this.tokenCurrency = "", this.clickable = !1;
53
+ }
54
+ render() {
55
+ return m`
56
+ <button data-clickable=${String(this.clickable)}>
57
+ <wui-flex gap="2" alignItems="center">
58
+ ${this.visualTemplate()}
59
+ <wui-flex flexDirection="column" justifyContent="space-between" gap="1">
60
+ <wui-text variant="md-regular" color="primary">${this.tokenName}</wui-text>
61
+ <wui-text variant="sm-regular-mono" color="secondary">
62
+ ${d.formatNumberToLocalString(this.tokenAmount, 4)} ${this.tokenCurrency}
63
+ </wui-text>
64
+ </wui-flex>
65
+ </wui-flex>
66
+ <wui-flex
67
+ flexDirection="column"
68
+ justifyContent="space-between"
69
+ gap="1"
70
+ alignItems="flex-end"
71
+ >
72
+ <wui-text variant="md-regular-mono" color="primary"
73
+ >$${this.tokenValue.toFixed(2)}</wui-text
74
+ >
75
+ <wui-text variant="sm-regular-mono" color="secondary">
76
+ ${d.formatNumberToLocalString(this.tokenAmount, 4)}
77
+ </wui-text>
78
+ </wui-flex>
79
+ </button>
80
+ `;
81
+ }
82
+ visualTemplate() {
83
+ return this.tokenName && this.tokenImageUrl ? m`<wui-image alt=${this.tokenName} src=${this.tokenImageUrl}></wui-image>` : m`<wui-icon name="coinPlaceholder" color="default"></wui-icon>`;
84
+ }
85
+ };
86
+ t.styles = [f, h, g];
87
+ n([
88
+ i()
89
+ ], t.prototype, "tokenName", void 0);
90
+ n([
91
+ i()
92
+ ], t.prototype, "tokenImageUrl", void 0);
93
+ n([
94
+ i({ type: Number })
95
+ ], t.prototype, "tokenValue", void 0);
96
+ n([
97
+ i()
98
+ ], t.prototype, "tokenAmount", void 0);
99
+ n([
100
+ i()
101
+ ], t.prototype, "tokenCurrency", void 0);
102
+ n([
103
+ i({ type: Boolean })
104
+ ], t.prototype, "clickable", void 0);
105
+ t = n([
106
+ w("wui-list-token")
107
+ ], t);
@@ -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-D_8VUmn1.js";
2
+ import { dc as m } from "./index-D_8VUmn1.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-CM3YaYca.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-uBeF6OAB.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-BkTSyAJb.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,123 @@
1
+ import { cU as u, cV as p, cX as m, cY as c } from "./index-D_8VUmn1.js";
2
+ import { n as s, c as f } from "./index-CEqcN8QP.js";
3
+ import "./index-I7VDqINw.js";
4
+ import "./index-UclsHkJ0.js";
5
+ const w = u`
6
+ :host {
7
+ position: relative;
8
+ background-color: ${({ tokens: e }) => e.theme.foregroundTertiary};
9
+ display: flex;
10
+ justify-content: center;
11
+ align-items: center;
12
+ border-radius: inherit;
13
+ border-radius: var(--local-border-radius);
14
+ }
15
+
16
+ :host([data-image='true']) {
17
+ background-color: transparent;
18
+ }
19
+
20
+ :host > wui-flex {
21
+ overflow: hidden;
22
+ border-radius: inherit;
23
+ border-radius: var(--local-border-radius);
24
+ }
25
+
26
+ :host([data-size='sm']) {
27
+ width: 32px;
28
+ height: 32px;
29
+ }
30
+
31
+ :host([data-size='md']) {
32
+ width: 40px;
33
+ height: 40px;
34
+ }
35
+
36
+ :host([data-size='lg']) {
37
+ width: 56px;
38
+ height: 56px;
39
+ }
40
+
41
+ :host([name='Extension'])::after {
42
+ border: 1px solid ${({ colors: e }) => e.accent010};
43
+ }
44
+
45
+ :host([data-wallet-icon='allWallets'])::after {
46
+ border: 1px solid ${({ colors: e }) => e.accent010};
47
+ }
48
+
49
+ wui-icon[data-parent-size='inherit'] {
50
+ width: 75%;
51
+ height: 75%;
52
+ align-items: center;
53
+ }
54
+
55
+ wui-icon[data-parent-size='sm'] {
56
+ width: 32px;
57
+ height: 32px;
58
+ }
59
+
60
+ wui-icon[data-parent-size='md'] {
61
+ width: 40px;
62
+ height: 40px;
63
+ }
64
+
65
+ :host > wui-icon-box {
66
+ position: absolute;
67
+ overflow: hidden;
68
+ right: -1px;
69
+ bottom: -2px;
70
+ z-index: 1;
71
+ border: 2px solid ${({ tokens: e }) => e.theme.backgroundPrimary};
72
+ padding: 1px;
73
+ }
74
+ `;
75
+ var r = function(e, t, o, n) {
76
+ var l = arguments.length, a = l < 3 ? t : n === null ? n = Object.getOwnPropertyDescriptor(t, o) : n, d;
77
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, o, n);
78
+ else for (var h = e.length - 1; h >= 0; h--) (d = e[h]) && (a = (l < 3 ? d(a) : l > 3 ? d(t, o, a) : d(t, o)) || a);
79
+ return l > 3 && a && Object.defineProperty(t, o, a), a;
80
+ };
81
+ let i = class extends m {
82
+ constructor() {
83
+ super(...arguments), this.size = "md", this.name = "", this.installed = !1, this.badgeSize = "xs";
84
+ }
85
+ render() {
86
+ let t = "1";
87
+ return this.size === "lg" ? t = "4" : this.size === "md" ? t = "2" : this.size === "sm" && (t = "1"), this.style.cssText = `
88
+ --local-border-radius: var(--apkt-borderRadius-${t});
89
+ `, this.dataset.size = this.size, this.imageSrc && (this.dataset.image = "true"), this.walletIcon && (this.dataset.walletIcon = this.walletIcon), c`
90
+ <wui-flex justifyContent="center" alignItems="center"> ${this.templateVisual()} </wui-flex>
91
+ `;
92
+ }
93
+ templateVisual() {
94
+ return this.imageSrc ? c`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>` : this.walletIcon ? c`<wui-icon size="md" color="default" name=${this.walletIcon}></wui-icon>` : c`<wui-icon
95
+ data-parent-size=${this.size}
96
+ size="inherit"
97
+ color="inherit"
98
+ name="wallet"
99
+ ></wui-icon>`;
100
+ }
101
+ };
102
+ i.styles = [p, w];
103
+ r([
104
+ s()
105
+ ], i.prototype, "size", void 0);
106
+ r([
107
+ s()
108
+ ], i.prototype, "name", void 0);
109
+ r([
110
+ s()
111
+ ], i.prototype, "imageSrc", void 0);
112
+ r([
113
+ s()
114
+ ], i.prototype, "walletIcon", void 0);
115
+ r([
116
+ s({ type: Boolean })
117
+ ], i.prototype, "installed", void 0);
118
+ r([
119
+ s()
120
+ ], i.prototype, "badgeSize", void 0);
121
+ i = r([
122
+ f("wui-wallet-image")
123
+ ], i);
@@ -0,0 +1,65 @@
1
+ import { cU as h, cV as l, cX as u, cY as f } from "./index-D_8VUmn1.js";
2
+ import { n as p, c as m } from "./index-CEqcN8QP.js";
3
+ const g = h`
4
+ :host {
5
+ display: block;
6
+ width: 100px;
7
+ height: 100px;
8
+ }
9
+
10
+ svg {
11
+ width: 100px;
12
+ height: 100px;
13
+ }
14
+
15
+ rect {
16
+ fill: none;
17
+ stroke: ${(r) => r.colors.accent100};
18
+ stroke-width: 3px;
19
+ stroke-linecap: round;
20
+ animation: dash 1s linear infinite;
21
+ }
22
+
23
+ @keyframes dash {
24
+ to {
25
+ stroke-dashoffset: 0px;
26
+ }
27
+ }
28
+ `;
29
+ var c = function(r, e, a, s) {
30
+ var n = arguments.length, t = n < 3 ? e : s === null ? s = Object.getOwnPropertyDescriptor(e, a) : s, o;
31
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(r, e, a, s);
32
+ else for (var d = r.length - 1; d >= 0; d--) (o = r[d]) && (t = (n < 3 ? o(t) : n > 3 ? o(e, a, t) : o(e, a)) || t);
33
+ return n > 3 && t && Object.defineProperty(e, a, t), t;
34
+ };
35
+ let i = class extends u {
36
+ constructor() {
37
+ super(...arguments), this.radius = 36;
38
+ }
39
+ render() {
40
+ return this.svgLoaderTemplate();
41
+ }
42
+ svgLoaderTemplate() {
43
+ const e = this.radius > 50 ? 50 : this.radius, s = 36 - e, n = 116 + s, t = 245 + s, o = 360 + s * 1.75;
44
+ return f`
45
+ <svg viewBox="0 0 110 110" width="110" height="110">
46
+ <rect
47
+ x="2"
48
+ y="2"
49
+ width="106"
50
+ height="106"
51
+ rx=${e}
52
+ stroke-dasharray="${n} ${t}"
53
+ stroke-dashoffset=${o}
54
+ />
55
+ </svg>
56
+ `;
57
+ }
58
+ };
59
+ i.styles = [l, g];
60
+ c([
61
+ p({ type: Number })
62
+ ], i.prototype, "radius", void 0);
63
+ i = c([
64
+ m("wui-loading-thumbnail")
65
+ ], i);