@directcryptopay/sdk 0.2.2 → 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.
- package/dist/ExchangeController-CPMQq6Q-.js +217 -0
- package/dist/HelpersUtil-DfMFC7Bf.js +120 -0
- package/dist/NavigationUtil-kj9LEOOd.js +8 -0
- package/dist/PhArrowCircleDown-lsK25DCk.js +73 -0
- package/dist/PhArrowClockwise-NeKHZ1co.js +73 -0
- package/dist/PhArrowDown-C9AkNvLs.js +73 -0
- package/dist/PhArrowLeft-RNfIQP1X.js +73 -0
- package/dist/PhArrowRight-DM1tna0G.js +73 -0
- package/dist/PhArrowSquareOut-S5XYbAZj.js +73 -0
- package/dist/PhArrowUp-DmktzOWy.js +73 -0
- package/dist/PhArrowUpRight-BkNeW_5i.js +73 -0
- package/dist/PhArrowsClockwise-CQ4pG76b.js +73 -0
- package/dist/PhArrowsDownUp-H6gxaNM6.js +73 -0
- package/dist/PhArrowsLeftRight-DZSsfMR6.js +73 -0
- package/dist/PhBank-4_9QzqIB.js +73 -0
- package/dist/PhBrowser-B-JSznId.js +73 -0
- package/dist/PhCaretDown-vV5oHMNi.js +73 -0
- package/dist/PhCaretLeft-BLo6Y_f4.js +73 -0
- package/dist/PhCaretRight-CqQN4TT3.js +73 -0
- package/dist/PhCaretUp-Df7UCAHy.js +73 -0
- package/dist/PhCheck-gtpfK4ed.js +73 -0
- package/dist/PhCircleHalf-Uq7dwDYw.js +73 -0
- package/dist/PhClock-SDCW-NmF.js +73 -0
- package/dist/PhCompass-B7hgtdx-.js +73 -0
- package/dist/PhCopy-BcnhyXCy.js +73 -0
- package/dist/PhCreditCard-BJjByVgu.js +73 -0
- package/dist/PhCurrencyDollar-B7ZXqXBy.js +73 -0
- package/dist/PhDesktop-B3VKPuJx.js +73 -0
- package/dist/PhDeviceMobile-Bnd0TYEH.js +73 -0
- package/dist/PhDotsThree-yyMWyZ-R.js +73 -0
- package/dist/PhEnvelope-67uzHbI9.js +73 -0
- package/dist/PhFunnelSimple-B-DCsloI.js +73 -0
- package/dist/PhGlobe-TMm_6qGk.js +73 -0
- package/dist/PhIdentificationCard-CePPD2xc.js +73 -0
- package/dist/PhImage-gY96WtHR.js +73 -0
- package/dist/PhInfo-DRQM_ZDP.js +73 -0
- package/dist/PhLightbulb-B0TxPfZ1.js +73 -0
- package/dist/PhMagnifyingGlass-B8si5_6W.js +73 -0
- package/dist/PhPaperPlaneRight-DVu5PLYd.js +73 -0
- package/dist/PhPlus-BfTsQnUz.js +73 -0
- package/dist/PhPower-CxYUGOWn.js +73 -0
- package/dist/PhPuzzlePiece-CQ4wh0gV.js +73 -0
- package/dist/PhQrCode-BuJ97NYJ.js +73 -0
- package/dist/PhQuestion-kJoP8Mja.js +73 -0
- package/dist/PhQuestionMark-C46ZkFpu.js +73 -0
- package/dist/PhSealCheck-Eh8jVqSN.js +73 -0
- package/dist/PhSignOut-jk97OSVt.js +73 -0
- package/dist/PhSpinner-CiYOhwMg.js +73 -0
- package/dist/PhTrash-pxerMqzd.js +73 -0
- package/dist/PhUser-BMg0VV4A.js +73 -0
- package/dist/PhVault-DYQvx5A-.js +73 -0
- package/dist/PhWarning-NLC5Mj87.js +73 -0
- package/dist/PhWarningCircle-Ch2jU9fA.js +73 -0
- package/dist/PhX-Bx4wpwm3.js +73 -0
- package/dist/SwapController-Cti0Cyxa.js +457 -0
- package/dist/{ccip-BIGqktC1.js → ccip-CKZd2XJ7.js} +4 -4
- package/dist/data-capture-7D5CL385.js +490 -0
- package/dist/dcp-sdk.umd.js +7400 -6589
- package/dist/email-AmK0INbZ.js +344 -0
- package/dist/embedded-wallet-Pn0I_XLn.js +820 -0
- package/dist/features-x8XNprEe.js +274 -0
- package/dist/{hashTypedData-ZH9ZnWu3.js → hashTypedData-B50-z0AA.js} +6 -6
- package/dist/if-defined-CdZSZ6UL.js +10 -0
- package/dist/index-4ewUtPPp.js +7981 -0
- package/dist/{index-D6h-qfpt.js → index-51l86yqx.js} +5 -5
- package/dist/index-B6K56LF_.js +85 -0
- package/dist/index-BAmv9PxJ.js +257 -0
- package/dist/index-BEswjY9r.js +117 -0
- package/dist/index-BSKRq56S.js +355 -0
- package/dist/index-BaygXQxx.js +172 -0
- package/dist/index-BcPxaHr5.js +118 -0
- package/dist/index-Bjt7nGaJ.js +199 -0
- package/dist/{index-D5r0iSq4.js → index-BkTSyAJb.js} +1 -1
- package/dist/index-Bmnl7l2U.js +555 -0
- package/dist/index-BvPvouSq.js +56 -0
- package/dist/index-C-6iznUO.js +174 -0
- package/dist/index-C4M5s_AM.js +228 -0
- package/dist/index-CEqcN8QP.js +1175 -0
- package/dist/{index-CPTcEPbD.js → index-CM3YaYca.js} +296 -298
- package/dist/{index-f3LXSfM5.js → index-CclBLA5r.js} +56 -142
- package/dist/index-ChTxJOiF.js +46 -0
- package/dist/index-CmAv0Tzr.js +86 -0
- package/dist/index-CmvoKY4x.js +125 -0
- package/dist/{index-BdSIrl-R.js → index-D7PmdQ9B.js} +578 -570
- package/dist/{index-DobBVPe4.js → index-D7k2Pc4e.js} +481 -236
- package/dist/index-D7lmgqUR.js +153 -0
- package/dist/index-DG_-qYze.js +107 -0
- package/dist/{index-Dy4NyE6l.js → index-DHot9Fdb.js} +7 -7
- package/dist/index-DV2LrPtU.js +123 -0
- package/dist/index-DYBaJQ2W.js +65 -0
- package/dist/{index-BJ7cbG3N.js → index-D_8VUmn1.js} +36688 -40208
- package/dist/index-D_gLn3rT.js +100 -0
- package/dist/index-DqcVUSC9.js +62 -0
- package/dist/index-I7VDqINw.js +128 -0
- package/dist/index-Oz72I9VP.js +209 -0
- package/dist/index-UclsHkJ0.js +118 -0
- package/dist/index-X8zir_1j.js +110 -0
- package/dist/index-XvlWKGCu.js +1281 -0
- package/dist/index-dO97xPlt.js +171 -0
- package/dist/{index-5mp7WkhV.js → index-uBeF6OAB.js} +2 -2
- package/dist/index-zeA_RiCV.js +159 -0
- package/dist/index.js +1 -1
- package/dist/{localBatchGatewayRequest-CjGcn5nM.js → localBatchGatewayRequest-BUZHGdjw.js} +1 -1
- package/dist/onramp-CdnBuF0r.js +855 -0
- package/dist/{parseSignature-S8VEpRHC.js → parseSignature-CcyTNGr4.js} +2312 -2313
- package/dist/pay-with-exchange-CSM6WCOV.js +525 -0
- package/dist/property-Bd8U3_QP.js +618 -0
- package/dist/receive-DooMu4Dx.js +232 -0
- package/dist/ref-CpgjXAw7.js +107 -0
- package/dist/send-3T7CyYic.js +1166 -0
- package/dist/socials-Dt-iHL17.js +620 -0
- package/dist/swaps-CjA9Es42.js +1760 -0
- package/dist/{transactions-DujFkB-M.js → transactions-nRm9DVzn.js} +10 -10
- package/dist/w3m-modal-NV25AXhM.js +1706 -0
- package/package.json +3 -3
- package/dist/ConstantsUtil-B-_-u8aQ.js +0 -6
- package/dist/add-sji6scSD.js +0 -19
- package/dist/all-wallets-B4H-890E.js +0 -10
- package/dist/app-store-Z433s97G.js +0 -21
- package/dist/apple-b8Lxj7nb.js +0 -22
- package/dist/arrow-bottom-M9oWWo_9.js +0 -12
- package/dist/arrow-bottom-circle-N9c4CXY1.js +0 -15
- package/dist/arrow-left-Dw8AKfwf.js +0 -12
- package/dist/arrow-right-DwLQZSC_.js +0 -12
- package/dist/arrow-top-zhUjkBe1.js +0 -12
- package/dist/bank-CbQdnILK.js +0 -18
- package/dist/browser-xAqNwt7z.js +0 -18
- package/dist/card-Dr1QBmWp.js +0 -18
- package/dist/checkmark-BhT1dTgG.js +0 -15
- package/dist/checkmark-bold-CPB29wqQ.js +0 -12
- package/dist/chevron-bottom-BhNyx2II.js +0 -12
- package/dist/chevron-left-CGuEjQlY.js +0 -12
- package/dist/chevron-right-CvIRRsqZ.js +0 -12
- package/dist/chevron-top-RSzCqjBd.js +0 -12
- package/dist/chrome-store-Cs8dAgs0.js +0 -65
- package/dist/clock-fhZO5otC.js +0 -12
- package/dist/close-BPuztrdR.js +0 -12
- package/dist/coinPlaceholder-C8X2i7Kh.js +0 -12
- package/dist/compass-WMc5huk0.js +0 -12
- package/dist/copy-DVAeT17y.js +0 -19
- package/dist/cursor-BJ4YLXfy.js +0 -7
- package/dist/cursor-transparent-DN2fLQN4.js +0 -16
- package/dist/desktop-6avxisBw.js +0 -13
- package/dist/disconnect-AReVI8Gk.js +0 -12
- package/dist/discord-CxrI30BZ.js +0 -21
- package/dist/email-B8dIIaay.js +0 -696
- package/dist/embedded-wallet-C_5hF7rM.js +0 -468
- package/dist/etherscan-BnAy8cIF.js +0 -10
- package/dist/exclamation-triangle-Bu7nHwx9.js +0 -8
- package/dist/extension-F0LIhvcf.js +0 -12
- package/dist/external-link-CP6phyaM.js +0 -12
- package/dist/facebook-BtQ-Io2y.js +0 -30
- package/dist/farcaster-BmaN1ugd.js +0 -16
- package/dist/filters-DpEwoOmy.js +0 -12
- package/dist/github-q7qO9V-b.js +0 -22
- package/dist/google-DH_ZE8bW.js +0 -22
- package/dist/help-circle-BAQVmKas.js +0 -16
- package/dist/id-Cj68Zwgo.js +0 -16
- package/dist/if-defined-CNte9B3N.js +0 -744
- package/dist/image-BKJDw6N-.js +0 -8
- package/dist/index-7toZMdtG.js +0 -573
- package/dist/index-B1uKzdvN.js +0 -170
- package/dist/index-BHFZVF-b.js +0 -257
- package/dist/index-BKwa5JSA.js +0 -559
- package/dist/index-BP4B9VUt.js +0 -54
- package/dist/index-BVdzXHpO.js +0 -181
- package/dist/index-BYND0GJ9.js +0 -146
- package/dist/index-BaJ0zEbh.js +0 -97
- package/dist/index-Bh0MPFwP.js +0 -58
- package/dist/index-Bsh7_qTp.js +0 -511
- package/dist/index-BwnXTNNg.js +0 -199
- package/dist/index-C0kPDbg_.js +0 -77
- package/dist/index-CKikVKe2.js +0 -75
- package/dist/index-ChVh0Hkp.js +0 -243
- package/dist/index-Cle_NnnS.js +0 -305
- package/dist/index-CmWdvIFT.js +0 -51
- package/dist/index-D2AMA8Bu.js +0 -65
- package/dist/index-DAUM8CO4.js +0 -65
- package/dist/index-DGjZW6uR.js +0 -78
- package/dist/index-DQe94z7X.js +0 -265
- package/dist/index-DTo6w99t.js +0 -7864
- package/dist/index-DYdXjap2.js +0 -320
- package/dist/index-DceCxNV5.js +0 -181
- package/dist/index-Uw9cSw0q.js +0 -294
- package/dist/index-qiuyrukh.js +0 -45
- package/dist/index-zddvaohA.js +0 -78
- package/dist/info-RfPsmroW.js +0 -7
- package/dist/info-circle-DFKHB_ZN.js +0 -16
- package/dist/lightbulb-B-Bykj9X.js +0 -7
- package/dist/mail-mBAgGuw5.js +0 -12
- package/dist/mobile-Dhh3ndkf.js +0 -13
- package/dist/more-D1h7UTvg.js +0 -15
- package/dist/network-placeholder-Dqynvc-t.js +0 -18
- package/dist/nftPlaceholder-Df7MW4MM.js +0 -12
- package/dist/off-BmG3cHTX.js +0 -12
- package/dist/onramp-C401Aenb.js +0 -1279
- package/dist/play-store-4q1fzL_P.js +0 -36
- package/dist/plus-603Gs3yG.js +0 -17
- package/dist/qr-code-Dgwhf6M1.js +0 -10
- package/dist/receive-CYXbbEUR.js +0 -186
- package/dist/recycle-horizontal-Bu8zZ563.js +0 -13
- package/dist/ref-DpmKRWBK.js +0 -41
- package/dist/refresh-BMZFu0mu.js +0 -12
- package/dist/reown-logo-BXph7ThY.js +0 -16
- package/dist/search-Cm_V42Y_.js +0 -12
- package/dist/secp256k1-C0iX1TUr.js +0 -1510
- package/dist/secp256k1-DOQBqE4Z.js +0 -1302
- package/dist/send-BSMYxDuP.js +0 -19
- package/dist/send-C8EeIzRB.js +0 -1038
- package/dist/socials-DQrHQajs.js +0 -574
- package/dist/swapHorizontal-98rnJewS.js +0 -12
- package/dist/swapHorizontalBold-C299FjEt.js +0 -12
- package/dist/swapHorizontalMedium-Cqm6i4WJ.js +0 -20
- package/dist/swapHorizontalRoundedBold-De7hFfqZ.js +0 -12
- package/dist/swapVertical-DSL75l8L.js +0 -12
- package/dist/swaps-BuTNp65Y.js +0 -1637
- package/dist/telegram-cJP7hgUb.js +0 -20
- package/dist/three-dots-DHnEh28O.js +0 -9
- package/dist/twitch-CR2iGcBo.js +0 -22
- package/dist/twitterIcon-E5TAQjOn.js +0 -10
- package/dist/verify-DEukUJp0.js +0 -12
- package/dist/verify-filled-BXsx1i_p.js +0 -12
- package/dist/w3m-modal-Bm7BqVng.js +0 -1037
- package/dist/wallet-CzyyvdrT.js +0 -12
- package/dist/wallet-placeholder-BrcmyGEe.js +0 -18
- package/dist/walletconnect-BSYogWiE.js +0 -36
- package/dist/warning-circle-Cgp2BW3m.js +0 -16
- package/dist/x-BJinLpTw.js +0 -16
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import { cU as y, cV as v, cW as N, cX as k, cY as u, cE as c, cH as w, dh as h, di as f, d3 as R, d4 as A, d0 as S, cG as I } from "./index-D_8VUmn1.js";
|
|
2
|
+
import { n as $, c as C, U as T, r as b } from "./index-CEqcN8QP.js";
|
|
3
|
+
import { o as E } from "./if-defined-CdZSZ6UL.js";
|
|
4
|
+
import "./index-I7VDqINw.js";
|
|
5
|
+
import "./index-D7PmdQ9B.js";
|
|
6
|
+
const O = y`
|
|
7
|
+
button {
|
|
8
|
+
width: 100%;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
gap: ${({ spacing: e }) => e[4]};
|
|
13
|
+
background-color: ${({ tokens: e }) => e.theme.foregroundPrimary};
|
|
14
|
+
border-radius: ${({ borderRadius: e }) => e[3]};
|
|
15
|
+
border: none;
|
|
16
|
+
padding: ${({ spacing: e }) => e[3]};
|
|
17
|
+
transition: background-color ${({ durations: e }) => e.lg}
|
|
18
|
+
${({ easings: e }) => e["ease-out-power-2"]};
|
|
19
|
+
will-change: background-color;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* -- Hover & Active states ----------------------------------------------------------- */
|
|
23
|
+
button:hover:enabled,
|
|
24
|
+
button:active:enabled {
|
|
25
|
+
background-color: ${({ tokens: e }) => e.theme.foregroundSecondary};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
wui-text {
|
|
29
|
+
flex: 1;
|
|
30
|
+
color: ${({ tokens: e }) => e.theme.textSecondary};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
wui-flex {
|
|
34
|
+
width: auto;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
gap: ${({ spacing: e }) => e["01"]};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
wui-icon {
|
|
41
|
+
color: ${({ tokens: e }) => e.theme.iconDefault};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.network-icon {
|
|
45
|
+
position: relative;
|
|
46
|
+
width: 20px;
|
|
47
|
+
height: 20px;
|
|
48
|
+
border-radius: ${({ borderRadius: e }) => e[4]};
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
margin-left: -8px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.network-icon:first-child {
|
|
54
|
+
margin-left: 0px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.network-icon:after {
|
|
58
|
+
position: absolute;
|
|
59
|
+
inset: 0;
|
|
60
|
+
content: '';
|
|
61
|
+
display: block;
|
|
62
|
+
height: 100%;
|
|
63
|
+
width: 100%;
|
|
64
|
+
border-radius: ${({ borderRadius: e }) => e[4]};
|
|
65
|
+
box-shadow: inset 0 0 0 1px ${({ tokens: e }) => e.core.glass010};
|
|
66
|
+
}
|
|
67
|
+
`;
|
|
68
|
+
var g = function(e, t, o, i) {
|
|
69
|
+
var s = arguments.length, r = s < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, o) : i, n;
|
|
70
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r = Reflect.decorate(e, t, o, i);
|
|
71
|
+
else for (var a = e.length - 1; a >= 0; a--) (n = e[a]) && (r = (s < 3 ? n(r) : s > 3 ? n(t, o, r) : n(t, o)) || r);
|
|
72
|
+
return s > 3 && r && Object.defineProperty(t, o, r), r;
|
|
73
|
+
};
|
|
74
|
+
let p = class extends k {
|
|
75
|
+
constructor() {
|
|
76
|
+
super(...arguments), this.networkImages = [""], this.text = "";
|
|
77
|
+
}
|
|
78
|
+
render() {
|
|
79
|
+
return u`
|
|
80
|
+
<button>
|
|
81
|
+
<wui-text variant="md-regular" color="inherit">${this.text}</wui-text>
|
|
82
|
+
<wui-flex>
|
|
83
|
+
${this.networksTemplate()}
|
|
84
|
+
<wui-icon name="chevronRight" size="sm" color="inherit"></wui-icon>
|
|
85
|
+
</wui-flex>
|
|
86
|
+
</button>
|
|
87
|
+
`;
|
|
88
|
+
}
|
|
89
|
+
networksTemplate() {
|
|
90
|
+
const t = this.networkImages.slice(0, 5);
|
|
91
|
+
return u` <wui-flex class="networks">
|
|
92
|
+
${t == null ? void 0 : t.map((o) => u` <wui-flex class="network-icon"> <wui-image src=${o}></wui-image> </wui-flex>`)}
|
|
93
|
+
</wui-flex>`;
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
p.styles = [v, N, O];
|
|
97
|
+
g([
|
|
98
|
+
$({ type: Array })
|
|
99
|
+
], p.prototype, "networkImages", void 0);
|
|
100
|
+
g([
|
|
101
|
+
$()
|
|
102
|
+
], p.prototype, "text", void 0);
|
|
103
|
+
p = g([
|
|
104
|
+
C("wui-compatible-network")
|
|
105
|
+
], p);
|
|
106
|
+
const _ = y`
|
|
107
|
+
wui-compatible-network {
|
|
108
|
+
margin-top: ${({ spacing: e }) => e[4]};
|
|
109
|
+
width: 100%;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
wui-qr-code {
|
|
113
|
+
width: unset !important;
|
|
114
|
+
height: unset !important;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
wui-icon {
|
|
118
|
+
align-items: normal;
|
|
119
|
+
}
|
|
120
|
+
`;
|
|
121
|
+
var m = function(e, t, o, i) {
|
|
122
|
+
var s = arguments.length, r = s < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, o) : i, n;
|
|
123
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r = Reflect.decorate(e, t, o, i);
|
|
124
|
+
else for (var a = e.length - 1; a >= 0; a--) (n = e[a]) && (r = (s < 3 ? n(r) : s > 3 ? n(t, o, r) : n(t, o)) || r);
|
|
125
|
+
return s > 3 && r && Object.defineProperty(t, o, r), r;
|
|
126
|
+
};
|
|
127
|
+
let d = class extends k {
|
|
128
|
+
constructor() {
|
|
129
|
+
var t, o;
|
|
130
|
+
super(), this.unsubscribe = [], this.address = (t = c.getAccountData()) == null ? void 0 : t.address, this.profileName = (o = c.getAccountData()) == null ? void 0 : o.profileName, this.network = c.state.activeCaipNetwork, this.unsubscribe.push(c.subscribeChainProp("accountState", (i) => {
|
|
131
|
+
i ? (this.address = i.address, this.profileName = i.profileName) : w.showError("Account not found");
|
|
132
|
+
}), c.subscribeKey("activeCaipNetwork", (i) => {
|
|
133
|
+
i != null && i.id && (this.network = i);
|
|
134
|
+
}));
|
|
135
|
+
}
|
|
136
|
+
disconnectedCallback() {
|
|
137
|
+
this.unsubscribe.forEach((t) => t());
|
|
138
|
+
}
|
|
139
|
+
render() {
|
|
140
|
+
if (!this.address)
|
|
141
|
+
throw new Error("w3m-wallet-receive-view: No account provided");
|
|
142
|
+
const t = h.getNetworkImage(this.network);
|
|
143
|
+
return u` <wui-flex
|
|
144
|
+
flexDirection="column"
|
|
145
|
+
.padding=${["0", "4", "4", "4"]}
|
|
146
|
+
alignItems="center"
|
|
147
|
+
>
|
|
148
|
+
<wui-chip-button
|
|
149
|
+
data-testid="receive-address-copy-button"
|
|
150
|
+
@click=${this.onCopyClick.bind(this)}
|
|
151
|
+
text=${T.getTruncateString({
|
|
152
|
+
string: this.profileName || this.address || "",
|
|
153
|
+
charsStart: this.profileName ? 18 : 4,
|
|
154
|
+
charsEnd: this.profileName ? 0 : 4,
|
|
155
|
+
truncate: this.profileName ? "end" : "middle"
|
|
156
|
+
})}
|
|
157
|
+
icon="copy"
|
|
158
|
+
size="sm"
|
|
159
|
+
imageSrc=${t || ""}
|
|
160
|
+
variant="gray"
|
|
161
|
+
></wui-chip-button>
|
|
162
|
+
<wui-flex
|
|
163
|
+
flexDirection="column"
|
|
164
|
+
.padding=${["4", "0", "0", "0"]}
|
|
165
|
+
alignItems="center"
|
|
166
|
+
gap="4"
|
|
167
|
+
>
|
|
168
|
+
<wui-qr-code
|
|
169
|
+
size=${232}
|
|
170
|
+
theme=${f.state.themeMode}
|
|
171
|
+
uri=${this.address}
|
|
172
|
+
?arenaClear=${!0}
|
|
173
|
+
color=${E(f.state.themeVariables["--apkt-qr-color"] ?? f.state.themeVariables["--w3m-qr-color"])}
|
|
174
|
+
data-testid="wui-qr-code"
|
|
175
|
+
></wui-qr-code>
|
|
176
|
+
<wui-text variant="lg-regular" color="primary" align="center">
|
|
177
|
+
Copy your address or scan this QR code
|
|
178
|
+
</wui-text>
|
|
179
|
+
<wui-button @click=${this.onCopyClick.bind(this)} size="sm" variant="neutral-secondary">
|
|
180
|
+
<wui-icon slot="iconLeft" size="sm" color="inherit" name="copy"></wui-icon>
|
|
181
|
+
<wui-text variant="md-regular" color="inherit">Copy address</wui-text>
|
|
182
|
+
</wui-button>
|
|
183
|
+
</wui-flex>
|
|
184
|
+
${this.networkTemplate()}
|
|
185
|
+
</wui-flex>`;
|
|
186
|
+
}
|
|
187
|
+
networkTemplate() {
|
|
188
|
+
var a;
|
|
189
|
+
const t = c.getAllRequestedCaipNetworks(), o = c.checkIfSmartAccountEnabled(), i = c.state.activeCaipNetwork, s = t.filter((l) => (l == null ? void 0 : l.chainNamespace) === (i == null ? void 0 : i.chainNamespace));
|
|
190
|
+
if (R(i == null ? void 0 : i.chainNamespace) === A.ACCOUNT_TYPES.SMART_ACCOUNT && o)
|
|
191
|
+
return i ? u`<wui-compatible-network
|
|
192
|
+
@click=${this.onReceiveClick.bind(this)}
|
|
193
|
+
text="Only receive assets on this network"
|
|
194
|
+
.networkImages=${[h.getNetworkImage(i) ?? ""]}
|
|
195
|
+
></wui-compatible-network>` : null;
|
|
196
|
+
const n = ((a = s == null ? void 0 : s.filter((l) => {
|
|
197
|
+
var x;
|
|
198
|
+
return (x = l == null ? void 0 : l.assets) == null ? void 0 : x.imageId;
|
|
199
|
+
})) == null ? void 0 : a.slice(0, 5)).map(h.getNetworkImage).filter(Boolean);
|
|
200
|
+
return u`<wui-compatible-network
|
|
201
|
+
@click=${this.onReceiveClick.bind(this)}
|
|
202
|
+
text="Only receive assets on these networks"
|
|
203
|
+
.networkImages=${n}
|
|
204
|
+
></wui-compatible-network>`;
|
|
205
|
+
}
|
|
206
|
+
onReceiveClick() {
|
|
207
|
+
S.push("WalletCompatibleNetworks");
|
|
208
|
+
}
|
|
209
|
+
onCopyClick() {
|
|
210
|
+
try {
|
|
211
|
+
this.address && (I.copyToClopboard(this.address), w.showSuccess("Address copied"));
|
|
212
|
+
} catch {
|
|
213
|
+
w.showError("Failed to copy");
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
d.styles = _;
|
|
218
|
+
m([
|
|
219
|
+
b()
|
|
220
|
+
], d.prototype, "address", void 0);
|
|
221
|
+
m([
|
|
222
|
+
b()
|
|
223
|
+
], d.prototype, "profileName", void 0);
|
|
224
|
+
m([
|
|
225
|
+
b()
|
|
226
|
+
], d.prototype, "network", void 0);
|
|
227
|
+
d = m([
|
|
228
|
+
C("w3m-wallet-receive-view")
|
|
229
|
+
], d);
|
|
230
|
+
export {
|
|
231
|
+
d as W3mWalletReceiveView
|
|
232
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { cT as l } from "./index-D_8VUmn1.js";
|
|
2
|
+
import { i as $, t as a, e as f } from "./index-CEqcN8QP.js";
|
|
3
|
+
/**
|
|
4
|
+
* @license
|
|
5
|
+
* Copyright 2020 Google LLC
|
|
6
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
|
+
*/
|
|
8
|
+
const _ = (t) => t.strings === void 0;
|
|
9
|
+
/**
|
|
10
|
+
* @license
|
|
11
|
+
* Copyright 2017 Google LLC
|
|
12
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
+
*/
|
|
14
|
+
const o = (t, s) => {
|
|
15
|
+
var i;
|
|
16
|
+
const e = t._$AN;
|
|
17
|
+
if (e === void 0) return !1;
|
|
18
|
+
for (const h of e) (i = h._$AO) == null || i.call(h, s, !1), o(h, s);
|
|
19
|
+
return !0;
|
|
20
|
+
}, c = (t) => {
|
|
21
|
+
let s, e;
|
|
22
|
+
do {
|
|
23
|
+
if ((s = t._$AM) === void 0) break;
|
|
24
|
+
e = s._$AN, e.delete(t), t = s;
|
|
25
|
+
} while ((e == null ? void 0 : e.size) === 0);
|
|
26
|
+
}, d = (t) => {
|
|
27
|
+
for (let s; s = t._$AM; t = s) {
|
|
28
|
+
let e = s._$AN;
|
|
29
|
+
if (e === void 0) s._$AN = e = /* @__PURE__ */ new Set();
|
|
30
|
+
else if (e.has(t)) break;
|
|
31
|
+
e.add(t), v(s);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
function A(t) {
|
|
35
|
+
this._$AN !== void 0 ? (c(this), this._$AM = t, d(this)) : this._$AM = t;
|
|
36
|
+
}
|
|
37
|
+
function u(t, s = !1, e = 0) {
|
|
38
|
+
const i = this._$AH, h = this._$AN;
|
|
39
|
+
if (h !== void 0 && h.size !== 0) if (s) if (Array.isArray(i)) for (let n = e; n < i.length; n++) o(i[n], !1), c(i[n]);
|
|
40
|
+
else i != null && (o(i, !1), c(i));
|
|
41
|
+
else o(this, t);
|
|
42
|
+
}
|
|
43
|
+
const v = (t) => {
|
|
44
|
+
t.type == a.CHILD && (t._$AP ?? (t._$AP = u), t._$AQ ?? (t._$AQ = A));
|
|
45
|
+
};
|
|
46
|
+
class p extends $ {
|
|
47
|
+
constructor() {
|
|
48
|
+
super(...arguments), this._$AN = void 0;
|
|
49
|
+
}
|
|
50
|
+
_$AT(s, e, i) {
|
|
51
|
+
super._$AT(s, e, i), d(this), this.isConnected = s._$AU;
|
|
52
|
+
}
|
|
53
|
+
_$AO(s, e = !0) {
|
|
54
|
+
var i, h;
|
|
55
|
+
s !== this.isConnected && (this.isConnected = s, s ? (i = this.reconnected) == null || i.call(this) : (h = this.disconnected) == null || h.call(this)), e && (o(this, s), c(this));
|
|
56
|
+
}
|
|
57
|
+
setValue(s) {
|
|
58
|
+
if (_(this._$Ct)) this._$Ct._$AI(s, this);
|
|
59
|
+
else {
|
|
60
|
+
const e = [...this._$Ct._$AH];
|
|
61
|
+
e[this._$Ci] = s, this._$Ct._$AI(e, this, 0);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
disconnected() {
|
|
65
|
+
}
|
|
66
|
+
reconnected() {
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @license
|
|
71
|
+
* Copyright 2020 Google LLC
|
|
72
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
73
|
+
*/
|
|
74
|
+
const N = () => new G();
|
|
75
|
+
class G {
|
|
76
|
+
}
|
|
77
|
+
const r = /* @__PURE__ */ new WeakMap(), m = f(class extends p {
|
|
78
|
+
render(t) {
|
|
79
|
+
return l;
|
|
80
|
+
}
|
|
81
|
+
update(t, [s]) {
|
|
82
|
+
var i;
|
|
83
|
+
const e = s !== this.G;
|
|
84
|
+
return e && this.G !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.G = s, this.ht = (i = t.options) == null ? void 0 : i.host, this.rt(this.ct = t.element)), l;
|
|
85
|
+
}
|
|
86
|
+
rt(t) {
|
|
87
|
+
if (this.isConnected || (t = void 0), typeof this.G == "function") {
|
|
88
|
+
const s = this.ht ?? globalThis;
|
|
89
|
+
let e = r.get(s);
|
|
90
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), r.set(s, e)), e.get(this.G) !== void 0 && this.G.call(this.ht, void 0), e.set(this.G, t), t !== void 0 && this.G.call(this.ht, t);
|
|
91
|
+
} else this.G.value = t;
|
|
92
|
+
}
|
|
93
|
+
get lt() {
|
|
94
|
+
var t, s;
|
|
95
|
+
return typeof this.G == "function" ? (t = r.get(this.ht ?? globalThis)) == null ? void 0 : t.get(this.G) : (s = this.G) == null ? void 0 : s.value;
|
|
96
|
+
}
|
|
97
|
+
disconnected() {
|
|
98
|
+
this.lt === this.ct && this.rt(void 0);
|
|
99
|
+
}
|
|
100
|
+
reconnected() {
|
|
101
|
+
this.rt(this.ct);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
export {
|
|
105
|
+
N as e,
|
|
106
|
+
m as n
|
|
107
|
+
};
|