@prohetamine/redstone 0.0.1

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 (160) hide show
  1. package/dist/PhArrowCircleDown-BR-zH4LC.js +14 -0
  2. package/dist/PhArrowCircleDown-Sb38khBy.mjs +73 -0
  3. package/dist/PhArrowClockwise-BE5j9P0Z.mjs +73 -0
  4. package/dist/PhArrowClockwise-BRaehQGe.js +14 -0
  5. package/dist/PhArrowDown-B_WmmmY9.js +14 -0
  6. package/dist/PhArrowDown-CFEyR2dR.mjs +73 -0
  7. package/dist/PhArrowLeft-CYfU7NZj.mjs +73 -0
  8. package/dist/PhArrowLeft-CkEd70hm.js +14 -0
  9. package/dist/PhArrowRight-C07Qkx86.js +14 -0
  10. package/dist/PhArrowRight-EermNu0V.mjs +73 -0
  11. package/dist/PhArrowSquareOut-BjTBfzOP.js +14 -0
  12. package/dist/PhArrowSquareOut-DZwTtw54.mjs +73 -0
  13. package/dist/PhArrowUp-DB4CCSss.js +14 -0
  14. package/dist/PhArrowUp-xTpLFQkg.mjs +73 -0
  15. package/dist/PhArrowUpRight-CQbvn6NO.mjs +73 -0
  16. package/dist/PhArrowUpRight-GpCIMsAh.js +14 -0
  17. package/dist/PhArrowsClockwise-BgcIUg-Z.js +14 -0
  18. package/dist/PhArrowsClockwise-DnUYZTVx.mjs +73 -0
  19. package/dist/PhArrowsDownUp-C8KXUqtu.js +14 -0
  20. package/dist/PhArrowsDownUp-DgoprEe2.mjs +73 -0
  21. package/dist/PhArrowsLeftRight-CahChzCj.js +14 -0
  22. package/dist/PhArrowsLeftRight-FD4AZiLh.mjs +73 -0
  23. package/dist/PhBank-DIqIL4x_.js +14 -0
  24. package/dist/PhBank-DbQOQ9zJ.mjs +73 -0
  25. package/dist/PhBrowser-BCBXK2IM.mjs +73 -0
  26. package/dist/PhBrowser-laCKtn7T.js +14 -0
  27. package/dist/PhCaretDown-CnjP-QjZ.mjs +73 -0
  28. package/dist/PhCaretDown-DDe42xDU.js +14 -0
  29. package/dist/PhCaretLeft-Cskc5OY9.js +14 -0
  30. package/dist/PhCaretLeft-DkuXxjf_.mjs +73 -0
  31. package/dist/PhCaretRight-CBWpghxt.mjs +73 -0
  32. package/dist/PhCaretRight-DNgI5w_B.js +14 -0
  33. package/dist/PhCaretUp-CQ-OztBV.mjs +73 -0
  34. package/dist/PhCaretUp-CUZ4g_Me.js +14 -0
  35. package/dist/PhCheck-BVV_Dwfo.js +14 -0
  36. package/dist/PhCheck-t515emYS.mjs +73 -0
  37. package/dist/PhCircleHalf-BuQTmrKW.mjs +73 -0
  38. package/dist/PhCircleHalf-DDC7rige.js +14 -0
  39. package/dist/PhClock-BqynEKWl.js +14 -0
  40. package/dist/PhClock-D6XkTmM_.mjs +73 -0
  41. package/dist/PhCompass-2QeeX5Ad.mjs +73 -0
  42. package/dist/PhCompass-BsuJwXAE.js +14 -0
  43. package/dist/PhCopy-CO34-_xD.mjs +73 -0
  44. package/dist/PhCopy-MVqtRS6X.js +14 -0
  45. package/dist/PhCreditCard-Dq4kdjCw.js +14 -0
  46. package/dist/PhCreditCard-bfnqYflD.mjs +73 -0
  47. package/dist/PhCurrencyDollar-6k8UWxal.js +14 -0
  48. package/dist/PhCurrencyDollar-BekVYPtC.mjs +73 -0
  49. package/dist/PhDesktop-BkNzf3rT.mjs +73 -0
  50. package/dist/PhDesktop-CfsXQ0vC.js +14 -0
  51. package/dist/PhDeviceMobile-BT3Mg_b0.mjs +73 -0
  52. package/dist/PhDeviceMobile-BnrrDrwf.js +14 -0
  53. package/dist/PhDotsThree-6LRvhAcL.js +14 -0
  54. package/dist/PhDotsThree-kpf2OKxJ.mjs +73 -0
  55. package/dist/PhEnvelope-CHsfC2e0.js +14 -0
  56. package/dist/PhEnvelope-UFKpKtwf.mjs +73 -0
  57. package/dist/PhFunnelSimple-CdAqSIhK.mjs +73 -0
  58. package/dist/PhFunnelSimple-JAk7X9Wo.js +14 -0
  59. package/dist/PhGlobe-B3RYXl8h.mjs +73 -0
  60. package/dist/PhGlobe-Tfs4MfpG.js +14 -0
  61. package/dist/PhIdentificationCard-Dqmd6eY1.js +14 -0
  62. package/dist/PhIdentificationCard-rSq59Czm.mjs +73 -0
  63. package/dist/PhImage-aEryzfCi.js +14 -0
  64. package/dist/PhImage-ynsEnFd_.mjs +73 -0
  65. package/dist/PhInfo-B7lsWl6m.mjs +73 -0
  66. package/dist/PhInfo-D6oUrWpA.js +14 -0
  67. package/dist/PhLightbulb-FQDaMMqu.mjs +73 -0
  68. package/dist/PhLightbulb-qbEduhPa.js +14 -0
  69. package/dist/PhMagnifyingGlass-COdRH2k5.js +14 -0
  70. package/dist/PhMagnifyingGlass-_NXk13-0.mjs +73 -0
  71. package/dist/PhPaperPlaneRight-BYi7SorW.mjs +73 -0
  72. package/dist/PhPaperPlaneRight-DrpVAQOZ.js +14 -0
  73. package/dist/PhPlus-25KQTPHG.mjs +73 -0
  74. package/dist/PhPlus-BhUXef08.js +14 -0
  75. package/dist/PhPower-BKl7gzsB.mjs +73 -0
  76. package/dist/PhPower-BNJf1AGQ.js +14 -0
  77. package/dist/PhPuzzlePiece-BkZeF8CX.js +14 -0
  78. package/dist/PhPuzzlePiece-BqUI4GRs.mjs +73 -0
  79. package/dist/PhQrCode-C-tqZKPP.mjs +73 -0
  80. package/dist/PhQrCode-C0v0iXQN.js +14 -0
  81. package/dist/PhQuestion-BBAiRWgt.js +14 -0
  82. package/dist/PhQuestion-CtYvffyD.mjs +73 -0
  83. package/dist/PhQuestionMark-BNbtL2yx.mjs +73 -0
  84. package/dist/PhQuestionMark-BvGUBZ1h.js +14 -0
  85. package/dist/PhSealCheck-B0TEqWpq.mjs +73 -0
  86. package/dist/PhSealCheck-BwNkuF7G.js +14 -0
  87. package/dist/PhSignOut-C1rMSNaS.js +14 -0
  88. package/dist/PhSignOut-HX2_BVsD.mjs +73 -0
  89. package/dist/PhSpinner-CoDYLYOX.mjs +73 -0
  90. package/dist/PhSpinner-nmsGWDQl.js +14 -0
  91. package/dist/PhTrash-CALlKx3e.js +14 -0
  92. package/dist/PhTrash-DeQHS8ZP.mjs +73 -0
  93. package/dist/PhUser-CA0e5OPI.js +14 -0
  94. package/dist/PhUser-Cy5EY3vX.mjs +73 -0
  95. package/dist/PhVault-DdXjVOO9.mjs +73 -0
  96. package/dist/PhVault-DqxV75cz.js +14 -0
  97. package/dist/PhWallet-CeQrfGYc.mjs +73 -0
  98. package/dist/PhWallet-CyCuEs2U.js +14 -0
  99. package/dist/PhWarning-BKaHv_wT.mjs +73 -0
  100. package/dist/PhWarning-C7oj86bY.js +14 -0
  101. package/dist/PhWarningCircle-8MWw-QgE.mjs +73 -0
  102. package/dist/PhWarningCircle-CrNPXGj4.js +14 -0
  103. package/dist/PhX-9lsrXjyl.js +14 -0
  104. package/dist/PhX-DgXr_Fb0.mjs +73 -0
  105. package/dist/ReownAuthentication-Bfv31LzI.mjs +274 -0
  106. package/dist/ReownAuthentication-d8aYgGOq.js +5 -0
  107. package/dist/SwapController-4lzoYsYr.js +1 -0
  108. package/dist/SwapController-DjzUWRyQ.mjs +462 -0
  109. package/dist/ccip-CvwbEhki.js +1 -0
  110. package/dist/ccip-TuO68NeE.mjs +150 -0
  111. package/dist/data-capture-BwdjH2vc.mjs +489 -0
  112. package/dist/data-capture-xVUNZJ2T.js +242 -0
  113. package/dist/email-BCZObJCY.js +90 -0
  114. package/dist/email-m-wo60fN.mjs +338 -0
  115. package/dist/embedded-wallet-CGSri-4g.js +410 -0
  116. package/dist/embedded-wallet-DdZmv5qP.mjs +808 -0
  117. package/dist/features-BJ8kNaE8.js +1 -0
  118. package/dist/features-CJ34oImB.mjs +6 -0
  119. package/dist/index-4lfXeo30.js +132 -0
  120. package/dist/index-B6Mg114Z.mjs +69182 -0
  121. package/dist/index-BX7gAgT3.mjs +35 -0
  122. package/dist/index-BYQqNbCe.js +1 -0
  123. package/dist/index-BmdHwtJo.js +1 -0
  124. package/dist/index-BvUx3ULC.js +78 -0
  125. package/dist/index-CD-QGO70.mjs +196 -0
  126. package/dist/index-CJtXfdoM.mjs +29621 -0
  127. package/dist/index-CMzdgE-y.mjs +215 -0
  128. package/dist/index-CjZQCcwG.js +7203 -0
  129. package/dist/index-D7VuOaCI.js +19 -0
  130. package/dist/index-DV7SQwgn.mjs +2688 -0
  131. package/dist/index-DVf4BnNh.mjs +352 -0
  132. package/dist/index-DhN9vL4k.js +138 -0
  133. package/dist/index-DvllakY0.mjs +274 -0
  134. package/dist/index-Ho06VKh2.mjs +151 -0
  135. package/dist/index-a8mS2Eh1.js +1062 -0
  136. package/dist/index-aamBi9Tu.js +1 -0
  137. package/dist/index.cjs.js +1 -0
  138. package/dist/index.es.js +14 -0
  139. package/dist/onramp-DLlhSPQg.js +422 -0
  140. package/dist/onramp-k-EAEepC.mjs +842 -0
  141. package/dist/parseSignature-D1tZHglo.js +16 -0
  142. package/dist/parseSignature-DM0lwcDr.mjs +8883 -0
  143. package/dist/pay-with-exchange---G2M1Ag.js +280 -0
  144. package/dist/pay-with-exchange-CFIcUXUe.mjs +512 -0
  145. package/dist/property-Bd8U3_QP.mjs +618 -0
  146. package/dist/property-DissjCbZ.js +27 -0
  147. package/dist/receive-B9LCljO6.mjs +228 -0
  148. package/dist/receive-E8H6GDOX.js +131 -0
  149. package/dist/send-B-AooLph.js +554 -0
  150. package/dist/send-DZd_xhsd.mjs +1155 -0
  151. package/dist/socials-ChWFLEFe.mjs +611 -0
  152. package/dist/socials-YSUYSh8o.js +250 -0
  153. package/dist/swaps-DpR9W9Ld.js +1050 -0
  154. package/dist/swaps-Du7-Ui_V.mjs +1752 -0
  155. package/dist/transactions-DhsK5-QJ.mjs +35 -0
  156. package/dist/transactions-VPsz2OLe.js +16 -0
  157. package/dist/w3m-modal-DhomfjKU.js +891 -0
  158. package/dist/w3m-modal-KuYD-zqQ.mjs +1759 -0
  159. package/package.json +51 -0
  160. package/readme.md +1 -0
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CjZQCcwG.js");Object.defineProperty(exports,"AppKitAccountButton",{enumerable:!0,get:()=>e.AppKitAccountButton});Object.defineProperty(exports,"AppKitButton",{enumerable:!0,get:()=>e.AppKitButton});Object.defineProperty(exports,"AppKitConnectButton",{enumerable:!0,get:()=>e.AppKitConnectButton});Object.defineProperty(exports,"AppKitNetworkButton",{enumerable:!0,get:()=>e.AppKitNetworkButton});Object.defineProperty(exports,"W3mAccountButton",{enumerable:!0,get:()=>e.W3mAccountButton});Object.defineProperty(exports,"W3mAccountSettingsView",{enumerable:!0,get:()=>e.W3mAccountSettingsView});Object.defineProperty(exports,"W3mAccountView",{enumerable:!0,get:()=>e.W3mAccountView});Object.defineProperty(exports,"W3mAllWalletsView",{enumerable:!0,get:()=>e.W3mAllWalletsView});Object.defineProperty(exports,"W3mButton",{enumerable:!0,get:()=>e.W3mButton});Object.defineProperty(exports,"W3mChooseAccountNameView",{enumerable:!0,get:()=>e.W3mChooseAccountNameView});Object.defineProperty(exports,"W3mConnectButton",{enumerable:!0,get:()=>e.W3mConnectButton});Object.defineProperty(exports,"W3mConnectView",{enumerable:!0,get:()=>e.W3mConnectView});Object.defineProperty(exports,"W3mConnectWalletsView",{enumerable:!0,get:()=>e.W3mConnectWalletsView});Object.defineProperty(exports,"W3mConnectingExternalView",{enumerable:!0,get:()=>e.W3mConnectingExternalView});Object.defineProperty(exports,"W3mConnectingMultiChainView",{enumerable:!0,get:()=>e.W3mConnectingMultiChainView});Object.defineProperty(exports,"W3mConnectingWcBasicView",{enumerable:!0,get:()=>e.W3mConnectingWcBasicView});Object.defineProperty(exports,"W3mConnectingWcView",{enumerable:!0,get:()=>e.W3mConnectingWcView});Object.defineProperty(exports,"W3mDownloadsView",{enumerable:!0,get:()=>e.W3mDownloadsView});Object.defineProperty(exports,"W3mFooter",{enumerable:!0,get:()=>e.W3mFooter});Object.defineProperty(exports,"W3mFundWalletView",{enumerable:!0,get:()=>e.W3mFundWalletView});Object.defineProperty(exports,"W3mGetWalletView",{enumerable:!0,get:()=>e.W3mGetWalletView});Object.defineProperty(exports,"W3mNetworkButton",{enumerable:!0,get:()=>e.W3mNetworkButton});Object.defineProperty(exports,"W3mNetworkSwitchView",{enumerable:!0,get:()=>e.W3mNetworkSwitchView});Object.defineProperty(exports,"W3mNetworksView",{enumerable:!0,get:()=>e.W3mNetworksView});Object.defineProperty(exports,"W3mProfileWalletsView",{enumerable:!0,get:()=>e.W3mProfileWalletsView});Object.defineProperty(exports,"W3mRouter",{enumerable:!0,get:()=>e.W3mRouter});Object.defineProperty(exports,"W3mSIWXSignMessageView",{enumerable:!0,get:()=>e.W3mSIWXSignMessageView});Object.defineProperty(exports,"W3mSwitchActiveChainView",{enumerable:!0,get:()=>e.W3mSwitchActiveChainView});Object.defineProperty(exports,"W3mUnsupportedChainView",{enumerable:!0,get:()=>e.W3mUnsupportedChainView});Object.defineProperty(exports,"W3mWalletCompatibleNetworksView",{enumerable:!0,get:()=>e.W3mWalletCompatibleNetworksView});Object.defineProperty(exports,"W3mWhatIsANetworkView",{enumerable:!0,get:()=>e.W3mWhatIsANetworkView});Object.defineProperty(exports,"W3mWhatIsAWalletView",{enumerable:!0,get:()=>e.W3mWhatIsAWalletView});
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CjZQCcwG.js");exports.Provider=e.Provider;exports.config=e.config;exports.useApp=e.useApp;exports.useCertificateCommissionID=e.useCertificateCommissionID;exports.useCounter=e.useCounter;exports.useList=e.useList;exports.useNote=e.useNote;exports.usePingNetwork=e.usePingNetwork;exports.useReadListItem=e.useReadListItem;exports.useReadNote=e.useReadStorage;exports.useReadStatistics=e.useReadStatistics;
@@ -0,0 +1,14 @@
1
+ import { dE as a, dF as d, dG as t, dH as i, dI as o, dJ as u, dK as r, dL as m, dM as n, dN as N, dO as c } from "./index-B6Mg114Z.mjs";
2
+ export {
3
+ a as Provider,
4
+ d as config,
5
+ t as useApp,
6
+ i as useCertificateCommissionID,
7
+ o as useCounter,
8
+ u as useList,
9
+ r as useNote,
10
+ m as usePingNetwork,
11
+ n as useReadListItem,
12
+ N as useReadNote,
13
+ c as useReadStatistics
14
+ };
@@ -0,0 +1,422 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CjZQCcwG.js"),b=e.css`
2
+ :host > wui-grid {
3
+ max-height: 360px;
4
+ overflow: auto;
5
+ }
6
+
7
+ wui-flex {
8
+ transition: opacity ${({easings:r})=>r["ease-out-power-1"]}
9
+ ${({durations:r})=>r.md};
10
+ will-change: opacity;
11
+ }
12
+
13
+ wui-grid::-webkit-scrollbar {
14
+ display: none;
15
+ }
16
+
17
+ wui-flex.disabled {
18
+ opacity: 0.3;
19
+ pointer-events: none;
20
+ user-select: none;
21
+ }
22
+ `;var y=function(r,t,i,o){var s=arguments.length,n=s<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,t,i,o);else for(var l=r.length-1;l>=0;l--)(a=r[l])&&(n=(s<3?a(n):s>3?a(t,i,n):a(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};exports.W3mOnrampFiatSelectView=class extends e.i{constructor(){super(),this.unsubscribe=[],this.selectedCurrency=e.OnRampController.state.paymentCurrency,this.currencies=e.OnRampController.state.paymentCurrencies,this.currencyImages=e.AssetController.state.currencyImages,this.checked=e.OptionsStateController.state.isLegalCheckboxChecked,this.unsubscribe.push(e.OnRampController.subscribe(t=>{this.selectedCurrency=t.paymentCurrency,this.currencies=t.paymentCurrencies}),e.AssetController.subscribeKey("currencyImages",t=>this.currencyImages=t),e.OptionsStateController.subscribeKey("isLegalCheckboxChecked",t=>{this.checked=t}))}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}render(){var l;const{termsConditionsUrl:t,privacyPolicyUrl:i}=e.OptionsController.state,o=(l=e.OptionsController.state.features)==null?void 0:l.legalCheckbox,a=!!(t||i)&&!!o&&!this.checked;return e.b`
23
+ <w3m-legal-checkbox></w3m-legal-checkbox>
24
+ <wui-flex
25
+ flexDirection="column"
26
+ .padding=${["0","3","3","3"]}
27
+ gap="2"
28
+ class=${e.o(a?"disabled":void 0)}
29
+ >
30
+ ${this.currenciesTemplate(a)}
31
+ </wui-flex>
32
+ `}currenciesTemplate(t=!1){return this.currencies.map(i=>{var o;return e.b`
33
+ <wui-list-item
34
+ imageSrc=${e.o((o=this.currencyImages)==null?void 0:o[i.id])}
35
+ @click=${()=>this.selectCurrency(i)}
36
+ variant="image"
37
+ tabIdx=${e.o(t?-1:void 0)}
38
+ >
39
+ <wui-text variant="md-medium" color="primary">${i.id}</wui-text>
40
+ </wui-list-item>
41
+ `})}selectCurrency(t){t&&(e.OnRampController.setPaymentCurrency(t),e.ModalController.close())}};exports.W3mOnrampFiatSelectView.styles=b;y([e.r()],exports.W3mOnrampFiatSelectView.prototype,"selectedCurrency",void 0);y([e.r()],exports.W3mOnrampFiatSelectView.prototype,"currencies",void 0);y([e.r()],exports.W3mOnrampFiatSelectView.prototype,"currencyImages",void 0);y([e.r()],exports.W3mOnrampFiatSelectView.prototype,"checked",void 0);exports.W3mOnrampFiatSelectView=y([e.customElement("w3m-onramp-fiat-select-view")],exports.W3mOnrampFiatSelectView);const g=e.css`
42
+ button {
43
+ padding: ${({spacing:r})=>r[3]};
44
+ border-radius: ${({borderRadius:r})=>r[4]};
45
+ border: none;
46
+ outline: none;
47
+ background-color: ${({tokens:r})=>r.core.glass010};
48
+ width: 100%;
49
+ display: flex;
50
+ align-items: center;
51
+ justify-content: flex-start;
52
+ gap: ${({spacing:r})=>r[3]};
53
+ transition: background-color ${({easings:r})=>r["ease-out-power-1"]}
54
+ ${({durations:r})=>r.md};
55
+ will-change: background-color;
56
+ cursor: pointer;
57
+ }
58
+
59
+ button:hover {
60
+ background-color: ${({tokens:r})=>r.theme.foregroundPrimary};
61
+ }
62
+
63
+ .provider-image {
64
+ width: ${({spacing:r})=>r[10]};
65
+ min-width: ${({spacing:r})=>r[10]};
66
+ height: ${({spacing:r})=>r[10]};
67
+ border-radius: calc(
68
+ ${({borderRadius:r})=>r[4]} - calc(${({spacing:r})=>r[3]} / 2)
69
+ );
70
+ position: relative;
71
+ overflow: hidden;
72
+ }
73
+
74
+ .network-icon {
75
+ width: ${({spacing:r})=>r[3]};
76
+ height: ${({spacing:r})=>r[3]};
77
+ border-radius: calc(${({spacing:r})=>r[3]} / 2);
78
+ overflow: hidden;
79
+ box-shadow:
80
+ 0 0 0 3px ${({tokens:r})=>r.theme.foregroundPrimary},
81
+ 0 0 0 3px ${({tokens:r})=>r.theme.backgroundPrimary};
82
+ transition: box-shadow ${({easings:r})=>r["ease-out-power-1"]}
83
+ ${({durations:r})=>r.md};
84
+ will-change: box-shadow;
85
+ }
86
+
87
+ button:hover .network-icon {
88
+ box-shadow:
89
+ 0 0 0 3px ${({tokens:r})=>r.core.glass010},
90
+ 0 0 0 3px ${({tokens:r})=>r.theme.backgroundPrimary};
91
+ }
92
+ `;var p=function(r,t,i,o){var s=arguments.length,n=s<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,t,i,o);else for(var l=r.length-1;l>=0;l--)(a=r[l])&&(n=(s<3?a(n):s>3?a(t,i,n):a(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};let c=class extends e.i{constructor(){super(...arguments),this.disabled=!1,this.color="inherit",this.label="",this.feeRange="",this.loading=!1,this.onClick=null}render(){return e.b`
93
+ <button ?disabled=${this.disabled} @click=${this.onClick} ontouchstart>
94
+ <wui-visual name=${e.o(this.name)} class="provider-image"></wui-visual>
95
+ <wui-flex flexDirection="column" gap="01">
96
+ <wui-text variant="md-regular" color="primary">${this.label}</wui-text>
97
+ <wui-flex alignItems="center" justifyContent="flex-start" gap="4">
98
+ <wui-text variant="sm-medium" color="primary">
99
+ <wui-text variant="sm-regular" color="secondary">Fees</wui-text>
100
+ ${this.feeRange}
101
+ </wui-text>
102
+ <wui-flex gap="2">
103
+ <wui-icon name="bank" size="sm" color="default"></wui-icon>
104
+ <wui-icon name="card" size="sm" color="default"></wui-icon>
105
+ </wui-flex>
106
+ ${this.networksTemplate()}
107
+ </wui-flex>
108
+ </wui-flex>
109
+ ${this.loading?e.b`<wui-loading-spinner color="secondary" size="md"></wui-loading-spinner>`:e.b`<wui-icon name="chevronRight" color="default" size="sm"></wui-icon>`}
110
+ </button>
111
+ `}networksTemplate(){var o;const t=e.ChainController.getAllRequestedCaipNetworks(),i=(o=t==null?void 0:t.filter(s=>{var n;return(n=s==null?void 0:s.assets)==null?void 0:n.imageId}))==null?void 0:o.slice(0,5);return e.b`
112
+ <wui-flex class="networks">
113
+ ${i==null?void 0:i.map(s=>e.b`
114
+ <wui-flex class="network-icon">
115
+ <wui-image src=${e.o(e.AssetUtil.getNetworkImage(s))}></wui-image>
116
+ </wui-flex>
117
+ `)}
118
+ </wui-flex>
119
+ `}};c.styles=[g];p([e.n({type:Boolean})],c.prototype,"disabled",void 0);p([e.n()],c.prototype,"color",void 0);p([e.n()],c.prototype,"name",void 0);p([e.n()],c.prototype,"label",void 0);p([e.n()],c.prototype,"feeRange",void 0);p([e.n({type:Boolean})],c.prototype,"loading",void 0);p([e.n()],c.prototype,"onClick",void 0);c=p([e.customElement("w3m-onramp-provider-item")],c);var w=function(r,t,i,o){var s=arguments.length,n=s<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,t,i,o);else for(var l=r.length-1;l>=0;l--)(a=r[l])&&(n=(s<3?a(n):s>3?a(t,i,n):a(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};exports.W3mOnRampProvidersView=class extends e.i{constructor(){super(),this.unsubscribe=[],this.providers=e.OnRampController.state.providers,this.unsubscribe.push(e.OnRampController.subscribeKey("providers",t=>{this.providers=t}))}render(){return e.b`
120
+ <wui-flex flexDirection="column" .padding=${["0","3","3","3"]} gap="2">
121
+ ${this.onRampProvidersTemplate()}
122
+ </wui-flex>
123
+ `}onRampProvidersTemplate(){return this.providers.filter(t=>t.supportedChains.includes(e.ChainController.state.activeChain??"eip155")).map(t=>e.b`
124
+ <w3m-onramp-provider-item
125
+ label=${t.label}
126
+ name=${t.name}
127
+ feeRange=${t.feeRange}
128
+ @click=${()=>{this.onClickProvider(t)}}
129
+ ?disabled=${!t.url}
130
+ data-testid=${`onramp-provider-${t.name}`}
131
+ ></w3m-onramp-provider-item>
132
+ `)}onClickProvider(t){var i;e.OnRampController.setSelectedProvider(t),e.RouterController.push("BuyInProgress"),e.CoreHelperUtil.openHref(((i=e.OnRampController.state.selectedProvider)==null?void 0:i.url)||t.url,"popupWindow","width=600,height=800,scrollbars=yes"),e.EventsController.sendEvent({type:"track",event:"SELECT_BUY_PROVIDER",properties:{provider:t.name,isSmartAccount:e.getPreferredAccountType(e.ChainController.state.activeChain)===e.W3mFrameRpcConstants.ACCOUNT_TYPES.SMART_ACCOUNT}})}};w([e.r()],exports.W3mOnRampProvidersView.prototype,"providers",void 0);exports.W3mOnRampProvidersView=w([e.customElement("w3m-onramp-providers-view")],exports.W3mOnRampProvidersView);const C=e.css`
133
+ :host > wui-grid {
134
+ max-height: 360px;
135
+ overflow: auto;
136
+ }
137
+
138
+ wui-flex {
139
+ transition: opacity ${({easings:r})=>r["ease-out-power-1"]}
140
+ ${({durations:r})=>r.md};
141
+ will-change: opacity;
142
+ }
143
+
144
+ wui-grid::-webkit-scrollbar {
145
+ display: none;
146
+ }
147
+
148
+ wui-flex.disabled {
149
+ opacity: 0.3;
150
+ pointer-events: none;
151
+ user-select: none;
152
+ }
153
+ `;var f=function(r,t,i,o){var s=arguments.length,n=s<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,t,i,o);else for(var l=r.length-1;l>=0;l--)(a=r[l])&&(n=(s<3?a(n):s>3?a(t,i,n):a(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};exports.W3mOnrampTokensView=class extends e.i{constructor(){super(),this.unsubscribe=[],this.selectedCurrency=e.OnRampController.state.purchaseCurrencies,this.tokens=e.OnRampController.state.purchaseCurrencies,this.tokenImages=e.AssetController.state.tokenImages,this.checked=e.OptionsStateController.state.isLegalCheckboxChecked,this.unsubscribe.push(e.OnRampController.subscribe(t=>{this.selectedCurrency=t.purchaseCurrencies,this.tokens=t.purchaseCurrencies}),e.AssetController.subscribeKey("tokenImages",t=>this.tokenImages=t),e.OptionsStateController.subscribeKey("isLegalCheckboxChecked",t=>{this.checked=t}))}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}render(){var l;const{termsConditionsUrl:t,privacyPolicyUrl:i}=e.OptionsController.state,o=(l=e.OptionsController.state.features)==null?void 0:l.legalCheckbox,a=!!(t||i)&&!!o&&!this.checked;return e.b`
154
+ <w3m-legal-checkbox></w3m-legal-checkbox>
155
+ <wui-flex
156
+ flexDirection="column"
157
+ .padding=${["0","3","3","3"]}
158
+ gap="2"
159
+ class=${e.o(a?"disabled":void 0)}
160
+ >
161
+ ${this.currenciesTemplate(a)}
162
+ </wui-flex>
163
+ `}currenciesTemplate(t=!1){return this.tokens.map(i=>{var o;return e.b`
164
+ <wui-list-item
165
+ imageSrc=${e.o((o=this.tokenImages)==null?void 0:o[i.symbol])}
166
+ @click=${()=>this.selectToken(i)}
167
+ variant="image"
168
+ tabIdx=${e.o(t?-1:void 0)}
169
+ >
170
+ <wui-flex gap="1" alignItems="center">
171
+ <wui-text variant="md-medium" color="primary">${i.name}</wui-text>
172
+ <wui-text variant="sm-regular" color="secondary">${i.symbol}</wui-text>
173
+ </wui-flex>
174
+ </wui-list-item>
175
+ `})}selectToken(t){t&&(e.OnRampController.setPurchaseCurrency(t),e.ModalController.close())}};exports.W3mOnrampTokensView.styles=C;f([e.r()],exports.W3mOnrampTokensView.prototype,"selectedCurrency",void 0);f([e.r()],exports.W3mOnrampTokensView.prototype,"tokens",void 0);f([e.r()],exports.W3mOnrampTokensView.prototype,"tokenImages",void 0);f([e.r()],exports.W3mOnrampTokensView.prototype,"checked",void 0);exports.W3mOnrampTokensView=f([e.customElement("w3m-onramp-token-select-view")],exports.W3mOnrampTokensView);const v=e.css`
176
+ @keyframes shake {
177
+ 0% {
178
+ transform: translateX(0);
179
+ }
180
+ 25% {
181
+ transform: translateX(3px);
182
+ }
183
+ 50% {
184
+ transform: translateX(-3px);
185
+ }
186
+ 75% {
187
+ transform: translateX(3px);
188
+ }
189
+ 100% {
190
+ transform: translateX(0);
191
+ }
192
+ }
193
+
194
+ wui-flex:first-child:not(:only-child) {
195
+ position: relative;
196
+ }
197
+
198
+ wui-loading-thumbnail {
199
+ position: absolute;
200
+ }
201
+
202
+ wui-visual {
203
+ border-radius: calc(
204
+ ${({borderRadius:r})=>r[1]} * 9 - ${({borderRadius:r})=>r[3]}
205
+ );
206
+ position: relative;
207
+ overflow: hidden;
208
+ }
209
+
210
+ wui-icon-box {
211
+ position: absolute;
212
+ right: calc(${({spacing:r})=>r[1]} * -1);
213
+ bottom: calc(${({spacing:r})=>r[1]} * -1);
214
+ opacity: 0;
215
+ transform: scale(0.5);
216
+ transition:
217
+ opacity ${({durations:r})=>r.lg} ${({easings:r})=>r["ease-out-power-2"]},
218
+ transform ${({durations:r})=>r.lg}
219
+ ${({easings:r})=>r["ease-out-power-2"]};
220
+ will-change: opacity, transform;
221
+ }
222
+
223
+ wui-text[align='center'] {
224
+ width: 100%;
225
+ padding: 0px ${({spacing:r})=>r[4]};
226
+ }
227
+
228
+ [data-error='true'] wui-icon-box {
229
+ opacity: 1;
230
+ transform: scale(1);
231
+ }
232
+
233
+ [data-error='true'] > wui-flex:first-child {
234
+ animation: shake 250ms ${({easings:r})=>r["ease-out-power-2"]} both;
235
+ }
236
+
237
+ [data-retry='false'] wui-link {
238
+ display: none;
239
+ }
240
+
241
+ [data-retry='true'] wui-link {
242
+ display: block;
243
+ opacity: 1;
244
+ }
245
+
246
+ wui-link {
247
+ padding: ${({spacing:r})=>r["01"]} ${({spacing:r})=>r[2]};
248
+ }
249
+ `;var u=function(r,t,i,o){var s=arguments.length,n=s<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,t,i,o);else for(var l=r.length-1;l>=0;l--)(a=r[l])&&(n=(s<3?a(n):s>3?a(t,i,n):a(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};exports.W3mBuyInProgressView=class extends e.i{constructor(){super(),this.unsubscribe=[],this.selectedOnRampProvider=e.OnRampController.state.selectedProvider,this.uri=e.ConnectionController.state.wcUri,this.ready=!1,this.showRetry=!1,this.buffering=!1,this.error=!1,this.isMobile=!1,this.onRetry=void 0,this.unsubscribe.push(e.OnRampController.subscribeKey("selectedProvider",t=>{this.selectedOnRampProvider=t}))}disconnectedCallback(){this.intervalId&&clearInterval(this.intervalId)}render(){var o,s;let t="Continue in external window";this.error?t="Buy failed":this.selectedOnRampProvider&&(t=`Buy in ${(o=this.selectedOnRampProvider)==null?void 0:o.label}`);const i=this.error?"Buy can be declined from your side or due to and error on the provider app":"We’ll notify you once your Buy is processed";return e.b`
250
+ <wui-flex
251
+ data-error=${e.o(this.error)}
252
+ data-retry=${this.showRetry}
253
+ flexDirection="column"
254
+ alignItems="center"
255
+ .padding=${["10","5","5","5"]}
256
+ gap="5"
257
+ >
258
+ <wui-flex justifyContent="center" alignItems="center">
259
+ <wui-visual
260
+ name=${e.o((s=this.selectedOnRampProvider)==null?void 0:s.name)}
261
+ size="lg"
262
+ class="provider-image"
263
+ >
264
+ </wui-visual>
265
+
266
+ ${this.error?null:this.loaderTemplate()}
267
+
268
+ <wui-icon-box
269
+ color="error"
270
+ icon="close"
271
+ size="sm"
272
+ border
273
+ borderColor="wui-color-bg-125"
274
+ ></wui-icon-box>
275
+ </wui-flex>
276
+
277
+ <wui-flex
278
+ flexDirection="column"
279
+ alignItems="center"
280
+ gap="2"
281
+ .padding=${["4","0","0","0"]}
282
+ >
283
+ <wui-text variant="md-medium" color=${this.error?"error":"primary"}>
284
+ ${t}
285
+ </wui-text>
286
+ <wui-text align="center" variant="sm-medium" color="secondary">${i}</wui-text>
287
+ </wui-flex>
288
+
289
+ ${this.error?this.tryAgainTemplate():null}
290
+ </wui-flex>
291
+
292
+ <wui-flex .padding=${["0","5","5","5"]} justifyContent="center">
293
+ <wui-link @click=${this.onCopyUri} color="secondary">
294
+ <wui-icon size="sm" color="default" slot="iconLeft" name="copy"></wui-icon>
295
+ Copy link
296
+ </wui-link>
297
+ </wui-flex>
298
+ `}onTryAgain(){this.selectedOnRampProvider&&(this.error=!1,e.CoreHelperUtil.openHref(this.selectedOnRampProvider.url,"popupWindow","width=600,height=800,scrollbars=yes"))}tryAgainTemplate(){var t;return(t=this.selectedOnRampProvider)!=null&&t.url?e.b`<wui-button size="md" variant="accent" @click=${this.onTryAgain.bind(this)}>
299
+ <wui-icon color="inherit" slot="iconLeft" name="refresh"></wui-icon>
300
+ Try again
301
+ </wui-button>`:null}loaderTemplate(){const t=e.ThemeController.state.themeVariables["--w3m-border-radius-master"],i=t?parseInt(t.replace("px",""),10):4;return e.b`<wui-loading-thumbnail radius=${i*9}></wui-loading-thumbnail>`}onCopyUri(){var t;if(!((t=this.selectedOnRampProvider)!=null&&t.url)){e.SnackController.showError("No link found"),e.RouterController.goBack();return}try{e.CoreHelperUtil.copyToClopboard(this.selectedOnRampProvider.url),e.SnackController.showSuccess("Link copied")}catch{e.SnackController.showError("Failed to copy")}}};exports.W3mBuyInProgressView.styles=v;u([e.r()],exports.W3mBuyInProgressView.prototype,"intervalId",void 0);u([e.r()],exports.W3mBuyInProgressView.prototype,"selectedOnRampProvider",void 0);u([e.r()],exports.W3mBuyInProgressView.prototype,"uri",void 0);u([e.r()],exports.W3mBuyInProgressView.prototype,"ready",void 0);u([e.r()],exports.W3mBuyInProgressView.prototype,"showRetry",void 0);u([e.r()],exports.W3mBuyInProgressView.prototype,"buffering",void 0);u([e.r()],exports.W3mBuyInProgressView.prototype,"error",void 0);u([e.n({type:Boolean})],exports.W3mBuyInProgressView.prototype,"isMobile",void 0);u([e.n()],exports.W3mBuyInProgressView.prototype,"onRetry",void 0);exports.W3mBuyInProgressView=u([e.customElement("w3m-buy-in-progress-view")],exports.W3mBuyInProgressView);var x=function(r,t,i,o){var s=arguments.length,n=s<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,t,i,o);else for(var l=r.length-1;l>=0;l--)(a=r[l])&&(n=(s<3?a(n):s>3?a(t,i,n):a(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};exports.W3mWhatIsABuyView=class extends e.i{render(){return e.b`
302
+ <wui-flex
303
+ flexDirection="column"
304
+ .padding=${["6","10","5","10"]}
305
+ alignItems="center"
306
+ gap="5"
307
+ >
308
+ <wui-visual name="onrampCard"></wui-visual>
309
+ <wui-flex flexDirection="column" gap="2" alignItems="center">
310
+ <wui-text align="center" variant="md-medium" color="primary">
311
+ Quickly and easily buy digital assets!
312
+ </wui-text>
313
+ <wui-text align="center" variant="sm-regular" color="secondary">
314
+ Simply select your preferred onramp provider and add digital assets to your account
315
+ using your credit card or bank transfer
316
+ </wui-text>
317
+ </wui-flex>
318
+ <wui-button @click=${e.RouterController.goBack}>
319
+ <wui-icon size="sm" color="inherit" name="add" slot="iconLeft"></wui-icon>
320
+ Buy
321
+ </wui-button>
322
+ </wui-flex>
323
+ `}};exports.W3mWhatIsABuyView=x([e.customElement("w3m-what-is-a-buy-view")],exports.W3mWhatIsABuyView);const $=e.css`
324
+ :host {
325
+ width: 100%;
326
+ }
327
+
328
+ wui-loading-spinner {
329
+ position: absolute;
330
+ top: 50%;
331
+ right: 20px;
332
+ transform: translateY(-50%);
333
+ }
334
+
335
+ .currency-container {
336
+ position: absolute;
337
+ top: 50%;
338
+ transform: translateY(-50%);
339
+ right: ${({spacing:r})=>r[2]};
340
+ height: 40px;
341
+ padding: ${({spacing:r})=>r[2]} ${({spacing:r})=>r[2]}
342
+ ${({spacing:r})=>r[2]} ${({spacing:r})=>r[2]};
343
+ min-width: 95px;
344
+ border-radius: ${({borderRadius:r})=>r.round};
345
+ border: 1px solid ${({tokens:r})=>r.theme.foregroundPrimary};
346
+ background: ${({tokens:r})=>r.theme.foregroundPrimary};
347
+ cursor: pointer;
348
+ }
349
+
350
+ .currency-container > wui-image {
351
+ height: 24px;
352
+ width: 24px;
353
+ border-radius: 50%;
354
+ }
355
+ `;var h=function(r,t,i,o){var s=arguments.length,n=s<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,t,i,o);else for(var l=r.length-1;l>=0;l--)(a=r[l])&&(n=(s<3?a(n):s>3?a(t,i,n):a(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};let d=class extends e.i{constructor(){var t;super(),this.unsubscribe=[],this.type="Token",this.value=0,this.currencies=[],this.selectedCurrency=(t=this.currencies)==null?void 0:t[0],this.currencyImages=e.AssetController.state.currencyImages,this.tokenImages=e.AssetController.state.tokenImages,this.unsubscribe.push(e.OnRampController.subscribeKey("purchaseCurrency",i=>{!i||this.type==="Fiat"||(this.selectedCurrency=this.formatPurchaseCurrency(i))}),e.OnRampController.subscribeKey("paymentCurrency",i=>{!i||this.type==="Token"||(this.selectedCurrency=this.formatPaymentCurrency(i))}),e.OnRampController.subscribe(i=>{this.type==="Fiat"?this.currencies=i.purchaseCurrencies.map(this.formatPurchaseCurrency):this.currencies=i.paymentCurrencies.map(this.formatPaymentCurrency)}),e.AssetController.subscribe(i=>{this.currencyImages={...i.currencyImages},this.tokenImages={...i.tokenImages}}))}firstUpdated(){e.OnRampController.getAvailableCurrencies()}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}render(){var o;const t=((o=this.selectedCurrency)==null?void 0:o.symbol)||"",i=this.currencyImages[t]||this.tokenImages[t];return e.b`<wui-input-text type="number" size="lg" value=${this.value}>
356
+ ${this.selectedCurrency?e.b` <wui-flex
357
+ class="currency-container"
358
+ justifyContent="space-between"
359
+ alignItems="center"
360
+ gap="1"
361
+ @click=${()=>e.ModalController.open({view:`OnRamp${this.type}Select`})}
362
+ >
363
+ <wui-image src=${e.o(i)}></wui-image>
364
+ <wui-text color="primary">${this.selectedCurrency.symbol}</wui-text>
365
+ </wui-flex>`:e.b`<wui-loading-spinner></wui-loading-spinner>`}
366
+ </wui-input-text>`}formatPaymentCurrency(t){return{name:t.id,symbol:t.id}}formatPurchaseCurrency(t){return{name:t.name,symbol:t.symbol}}};d.styles=$;h([e.n({type:String})],d.prototype,"type",void 0);h([e.n({type:Number})],d.prototype,"value",void 0);h([e.r()],d.prototype,"currencies",void 0);h([e.r()],d.prototype,"selectedCurrency",void 0);h([e.r()],d.prototype,"currencyImages",void 0);h([e.r()],d.prototype,"tokenImages",void 0);d=h([e.customElement("w3m-onramp-input")],d);const O=e.css`
367
+ :host > wui-flex {
368
+ width: 100%;
369
+ max-width: 360px;
370
+ }
371
+
372
+ :host > wui-flex > wui-flex {
373
+ border-radius: ${({borderRadius:r})=>r[8]};
374
+ width: 100%;
375
+ }
376
+
377
+ .amounts-container {
378
+ width: 100%;
379
+ }
380
+ `;var m=function(r,t,i,o){var s=arguments.length,n=s<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,t,i,o);else for(var l=r.length-1;l>=0;l--)(a=r[l])&&(n=(s<3?a(n):s>3?a(t,i,n):a(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};const R={USD:"$",EUR:"€",GBP:"£"},P=[100,250,500,1e3];exports.W3mOnrampWidget=class extends e.i{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.caipAddress=e.ChainController.state.activeCaipAddress,this.loading=e.ModalController.state.loading,this.paymentCurrency=e.OnRampController.state.paymentCurrency,this.paymentAmount=e.OnRampController.state.paymentAmount,this.purchaseAmount=e.OnRampController.state.purchaseAmount,this.quoteLoading=e.OnRampController.state.quotesLoading,this.unsubscribe.push(e.ChainController.subscribeKey("activeCaipAddress",t=>this.caipAddress=t),e.ModalController.subscribeKey("loading",t=>{this.loading=t}),e.OnRampController.subscribe(t=>{this.paymentCurrency=t.paymentCurrency,this.paymentAmount=t.paymentAmount,this.purchaseAmount=t.purchaseAmount,this.quoteLoading=t.quotesLoading}))}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}render(){return e.b`
381
+ <wui-flex flexDirection="column" justifyContent="center" alignItems="center">
382
+ <wui-flex flexDirection="column" alignItems="center" gap="2">
383
+ <w3m-onramp-input
384
+ type="Fiat"
385
+ @inputChange=${this.onPaymentAmountChange.bind(this)}
386
+ .value=${this.paymentAmount||0}
387
+ ></w3m-onramp-input>
388
+ <w3m-onramp-input
389
+ type="Token"
390
+ .value=${this.purchaseAmount||0}
391
+ .loading=${this.quoteLoading}
392
+ ></w3m-onramp-input>
393
+ <wui-flex justifyContent="space-evenly" class="amounts-container" gap="2">
394
+ ${P.map(t=>{var i;return e.b`<wui-button
395
+ variant=${this.paymentAmount===t?"accent-secondary":"neutral-secondary"}
396
+ size="md"
397
+ textVariant="md-medium"
398
+ fullWidth
399
+ @click=${()=>this.selectPresetAmount(t)}
400
+ >${`${R[((i=this.paymentCurrency)==null?void 0:i.id)||"USD"]} ${t}`}</wui-button
401
+ >`})}
402
+ </wui-flex>
403
+ ${this.templateButton()}
404
+ </wui-flex>
405
+ </wui-flex>
406
+ `}templateButton(){return this.caipAddress?e.b`<wui-button
407
+ @click=${this.getQuotes.bind(this)}
408
+ variant="accent-primary"
409
+ fullWidth
410
+ size="lg"
411
+ borderRadius="xs"
412
+ >
413
+ Get quotes
414
+ </wui-button>`:e.b`<wui-button
415
+ @click=${this.openModal.bind(this)}
416
+ variant="accent"
417
+ fullWidth
418
+ size="lg"
419
+ borderRadius="xs"
420
+ >
421
+ Connect wallet
422
+ </wui-button>`}getQuotes(){this.loading||e.ModalController.open({view:"OnRampProviders"})}openModal(){e.ModalController.open({view:"Connect"})}async onPaymentAmountChange(t){e.OnRampController.setPaymentAmount(Number(t.detail)),await e.OnRampController.getQuote()}async selectPresetAmount(t){e.OnRampController.setPaymentAmount(t),await e.OnRampController.getQuote()}};exports.W3mOnrampWidget.styles=O;m([e.n({type:Boolean})],exports.W3mOnrampWidget.prototype,"disabled",void 0);m([e.r()],exports.W3mOnrampWidget.prototype,"caipAddress",void 0);m([e.r()],exports.W3mOnrampWidget.prototype,"loading",void 0);m([e.r()],exports.W3mOnrampWidget.prototype,"paymentCurrency",void 0);m([e.r()],exports.W3mOnrampWidget.prototype,"paymentAmount",void 0);m([e.r()],exports.W3mOnrampWidget.prototype,"purchaseAmount",void 0);m([e.r()],exports.W3mOnrampWidget.prototype,"quoteLoading",void 0);exports.W3mOnrampWidget=m([e.customElement("w3m-onramp-widget")],exports.W3mOnrampWidget);