@directcryptopay/sdk 0.1.0 → 0.2.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.
- package/README.md +202 -256
- package/dist/{add-KF4m4jFK.js → add-sji6scSD.js} +1 -1
- package/dist/{all-wallets-D6NAjQgX.js → all-wallets-B4H-890E.js} +1 -1
- package/dist/{app-store-D7TTn-EO.js → app-store-Z433s97G.js} +1 -1
- package/dist/{apple-DjX2E2hE.js → apple-b8Lxj7nb.js} +1 -1
- package/dist/{arrow-bottom-C0YrNJYB.js → arrow-bottom-M9oWWo_9.js} +1 -1
- package/dist/{arrow-bottom-circle-Dlxvx_XG.js → arrow-bottom-circle-N9c4CXY1.js} +1 -1
- package/dist/{arrow-left-x8_-lUyK.js → arrow-left-Dw8AKfwf.js} +1 -1
- package/dist/{arrow-right-BTZybj80.js → arrow-right-DwLQZSC_.js} +1 -1
- package/dist/{arrow-top-LzH7iLCp.js → arrow-top-zhUjkBe1.js} +1 -1
- package/dist/{bank-23jp-IV_.js → bank-CbQdnILK.js} +1 -1
- package/dist/{browser-EjoorDid.js → browser-xAqNwt7z.js} +1 -1
- package/dist/{card-DGgWwtwC.js → card-Dr1QBmWp.js} +1 -1
- package/dist/{ccip-BMANewTU.js → ccip-BIGqktC1.js} +6 -6
- package/dist/{checkmark-B1qcQhBo.js → checkmark-BhT1dTgG.js} +1 -1
- package/dist/{checkmark-bold-Cyc4IEEJ.js → checkmark-bold-CPB29wqQ.js} +1 -1
- package/dist/{chevron-bottom-ClHs08rB.js → chevron-bottom-BhNyx2II.js} +1 -1
- package/dist/{chevron-left-O8h_551_.js → chevron-left-CGuEjQlY.js} +1 -1
- package/dist/{chevron-right-DP3xpyIA.js → chevron-right-CvIRRsqZ.js} +1 -1
- package/dist/{chevron-top-CuwkBUs9.js → chevron-top-RSzCqjBd.js} +1 -1
- package/dist/{chrome-store-zfT_aJ3R.js → chrome-store-Cs8dAgs0.js} +1 -1
- package/dist/{clock-DHZqivIS.js → clock-fhZO5otC.js} +1 -1
- package/dist/{close-Cp9rNAw4.js → close-BPuztrdR.js} +1 -1
- package/dist/{coinPlaceholder-U7-T1KKQ.js → coinPlaceholder-C8X2i7Kh.js} +1 -1
- package/dist/{compass-Ds5-PRSR.js → compass-WMc5huk0.js} +1 -1
- package/dist/{copy-Jg4HdIMf.js → copy-DVAeT17y.js} +1 -1
- package/dist/core/api.d.ts +10 -1
- package/dist/core/wallet.d.ts +23 -2
- package/dist/{cursor-DmMevduB.js → cursor-BJ4YLXfy.js} +1 -1
- package/dist/{cursor-transparent-Dn9-1SV8.js → cursor-transparent-DN2fLQN4.js} +1 -1
- package/dist/dcp-sdk.umd.js +603 -603
- package/dist/dcp.d.ts +11 -1
- package/dist/{desktop-C4udXXlZ.js → desktop-6avxisBw.js} +1 -1
- package/dist/{disconnect-wd1BYLxt.js → disconnect-AReVI8Gk.js} +1 -1
- package/dist/{discord-DthxuCAP.js → discord-CxrI30BZ.js} +1 -1
- package/dist/{email-B3jSnUFE.js → email-B8dIIaay.js} +24 -24
- package/dist/{embedded-wallet-CJHmoBI2.js → embedded-wallet-C_5hF7rM.js} +24 -24
- package/dist/{etherscan-Cjp4xfMW.js → etherscan-BnAy8cIF.js} +1 -1
- package/dist/{exclamation-triangle-CRNR5WOy.js → exclamation-triangle-Bu7nHwx9.js} +1 -1
- package/dist/{extension-Cydk0mZt.js → extension-F0LIhvcf.js} +1 -1
- package/dist/{external-link-CuPTAoq9.js → external-link-CP6phyaM.js} +1 -1
- package/dist/{facebook-CghqXmdf.js → facebook-BtQ-Io2y.js} +1 -1
- package/dist/{farcaster-BREqMX4y.js → farcaster-BmaN1ugd.js} +1 -1
- package/dist/{filters-Dn_Ys7ew.js → filters-DpEwoOmy.js} +1 -1
- package/dist/{github-C-A7JmIY.js → github-q7qO9V-b.js} +1 -1
- package/dist/{google-CCdM_naE.js → google-DH_ZE8bW.js} +1 -1
- package/dist/{hashTypedData-D2Qmzscs.js → hashTypedData-ZH9ZnWu3.js} +6 -6
- package/dist/{help-circle-DIH4vyj3.js → help-circle-BAQVmKas.js} +1 -1
- package/dist/{id-DkJ0gBuy.js → id-Cj68Zwgo.js} +1 -1
- package/dist/{if-defined-BciplFKz.js → if-defined-CNte9B3N.js} +89 -89
- package/dist/{image-qMjyiXM0.js → image-BKJDw6N-.js} +1 -1
- package/dist/{index-BpXOsxzU.js → index-5mp7WkhV.js} +2 -2
- package/dist/{index-CX60z_g2.js → index-7toZMdtG.js} +32 -32
- package/dist/{index-CMPIqsB1.js → index-B1uKzdvN.js} +3 -3
- package/dist/{index-eW8y-mXH.js → index-BHFZVF-b.js} +3 -3
- package/dist/{index-DiHImG4L.js → index-BJ7cbG3N.js} +12400 -11573
- package/dist/{index-CqVegmN4.js → index-BKwa5JSA.js} +10 -10
- package/dist/{index-D-IzHD_8.js → index-BP4B9VUt.js} +2 -2
- package/dist/{index-DmOMXRG1.js → index-BVdzXHpO.js} +11 -11
- package/dist/{index-B2iDt0TJ.js → index-BYND0GJ9.js} +2 -2
- package/dist/{index-lbhz9evJ.js → index-BaJ0zEbh.js} +2 -2
- package/dist/{index-B7K86vWu.js → index-BdSIrl-R.js} +38 -38
- package/dist/{index-C4BX3QW8.js → index-Bh0MPFwP.js} +3 -3
- package/dist/{index-BBkcvSiY.js → index-Bsh7_qTp.js} +53 -53
- package/dist/{index-DoSYqTQg.js → index-BwnXTNNg.js} +3 -3
- package/dist/{index-Ij6XA6_4.js → index-C0kPDbg_.js} +2 -2
- package/dist/{index-fxzIDZsb.js → index-CKikVKe2.js} +2 -2
- package/dist/{index-SzyBYfzA.js → index-CPTcEPbD.js} +1582 -1881
- package/dist/{index-C27dwOyE.js → index-ChVh0Hkp.js} +3 -3
- package/dist/{index-CwB_qRfM.js → index-Cle_NnnS.js} +6 -6
- package/dist/{index-CUdQyyFn.js → index-CmWdvIFT.js} +2 -2
- package/dist/{index-1adX-Fit.js → index-D2AMA8Bu.js} +2 -2
- package/dist/{index-CTYngdl0.js → index-D5r0iSq4.js} +1 -1
- package/dist/index-D6h-qfpt.js +276 -0
- package/dist/{index-CppCc1n8.js → index-DAUM8CO4.js} +2 -2
- package/dist/{index-DtCsAVBg.js → index-DGjZW6uR.js} +2 -2
- package/dist/{index-CxOF7GqE.js → index-DQe94z7X.js} +3 -3
- package/dist/{index-AvC0IGDl.js → index-DTo6w99t.js} +101 -101
- package/dist/{index-B5zkXsLJ.js → index-DYdXjap2.js} +9 -9
- package/dist/{index-BdjxQs66.js → index-DceCxNV5.js} +5 -5
- package/dist/{index-Da8oZh8H.js → index-DobBVPe4.js} +14 -14
- package/dist/{index-DRNiFv9I.js → index-Dy4NyE6l.js} +7 -7
- package/dist/{index-Bijd4_Ns.js → index-Uw9cSw0q.js} +3 -3
- package/dist/{index-DpHXq5_E.js → index-f3LXSfM5.js} +6 -6
- package/dist/{index--3Zp0jAb.js → index-qiuyrukh.js} +2 -2
- package/dist/{index-CuiyMA8F.js → index-zddvaohA.js} +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{info-DMIGgjkL.js → info-RfPsmroW.js} +1 -1
- package/dist/{info-circle-CJuIKZSx.js → info-circle-DFKHB_ZN.js} +1 -1
- package/dist/{lightbulb-qFT6WEWV.js → lightbulb-B-Bykj9X.js} +1 -1
- package/dist/{localBatchGatewayRequest-CsMVMFBc.js → localBatchGatewayRequest-CjGcn5nM.js} +1 -1
- package/dist/{mail-DoYgQvOt.js → mail-mBAgGuw5.js} +1 -1
- package/dist/{mobile-URtsh7o-.js → mobile-Dhh3ndkf.js} +1 -1
- package/dist/{more-DoQd10TF.js → more-D1h7UTvg.js} +1 -1
- package/dist/{network-placeholder-BBA2Ue6C.js → network-placeholder-Dqynvc-t.js} +1 -1
- package/dist/{nftPlaceholder-C9RXWz9k.js → nftPlaceholder-Df7MW4MM.js} +1 -1
- package/dist/{off-YcuDQczT.js → off-BmG3cHTX.js} +1 -1
- package/dist/{onramp-BfqDIx4o.js → onramp-C401Aenb.js} +46 -46
- package/dist/{parseSignature-280HB24T.js → parseSignature-S8VEpRHC.js} +967 -1222
- package/dist/{play-store-sFaloG_r.js → play-store-4q1fzL_P.js} +1 -1
- package/dist/{plus-l0wekSht.js → plus-603Gs3yG.js} +1 -1
- package/dist/{qr-code-CihrUU4G.js → qr-code-Dgwhf6M1.js} +1 -1
- package/dist/{receive-dfY1Cu-g.js → receive-CYXbbEUR.js} +10 -10
- package/dist/{recycle-horizontal-nXu6YaPw.js → recycle-horizontal-Bu8zZ563.js} +1 -1
- package/dist/{ref-huAzXCX0.js → ref-DpmKRWBK.js} +2 -2
- package/dist/{refresh-D2ZbVeNC.js → refresh-BMZFu0mu.js} +1 -1
- package/dist/{reown-logo-BMaTMJmc.js → reown-logo-BXph7ThY.js} +1 -1
- package/dist/{search-YVM9q3J-.js → search-Cm_V42Y_.js} +1 -1
- package/dist/{secp256k1-DPQgTBwQ.js → secp256k1-C0iX1TUr.js} +19 -19
- package/dist/{secp256k1-BrysY3Sv.js → secp256k1-DOQBqE4Z.js} +1 -1
- package/dist/{send-BwQZPKxI.js → send-BSMYxDuP.js} +1 -1
- package/dist/{send-GyetMVu1.js → send-C8EeIzRB.js} +20 -20
- package/dist/{socials-B0W91J9k.js → socials-DQrHQajs.js} +15 -15
- package/dist/{swapHorizontal-Dy_oQEkp.js → swapHorizontal-98rnJewS.js} +1 -1
- package/dist/{swapHorizontalBold-C4JpaMpc.js → swapHorizontalBold-C299FjEt.js} +1 -1
- package/dist/{swapHorizontalMedium-D5NuVZFh.js → swapHorizontalMedium-Cqm6i4WJ.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-Bq4P2MCj.js → swapHorizontalRoundedBold-De7hFfqZ.js} +1 -1
- package/dist/{swapVertical-CVQ8Mg03.js → swapVertical-DSL75l8L.js} +1 -1
- package/dist/{swaps-CA04SSdK.js → swaps-BuTNp65Y.js} +24 -24
- package/dist/{telegram-BP4SgW_L.js → telegram-cJP7hgUb.js} +1 -1
- package/dist/{three-dots-BJYGJ-dQ.js → three-dots-DHnEh28O.js} +1 -1
- package/dist/{transactions-Bq-98Tsg.js → transactions-DujFkB-M.js} +3 -3
- package/dist/{twitch-DTATWo9M.js → twitch-CR2iGcBo.js} +1 -1
- package/dist/{twitterIcon-D5UWPInb.js → twitterIcon-E5TAQjOn.js} +1 -1
- package/dist/types.d.ts +60 -0
- package/dist/ui/Modal.d.ts +3 -3
- package/dist/ui/index.d.ts +2 -2
- package/dist/{verify-Byvj8Wi1.js → verify-DEukUJp0.js} +1 -1
- package/dist/{verify-filled-B40taNm0.js → verify-filled-BXsx1i_p.js} +1 -1
- package/dist/{w3m-modal-HV6SE74G.js → w3m-modal-Bm7BqVng.js} +40 -40
- package/dist/{wallet-Cp-6Kk88.js → wallet-CzyyvdrT.js} +1 -1
- package/dist/{wallet-placeholder-C3juwA9o.js → wallet-placeholder-BrcmyGEe.js} +1 -1
- package/dist/{walletconnect-CRkIiLCx.js → walletconnect-BSYogWiE.js} +1 -1
- package/dist/{warning-circle-DtvCLwG4.js → warning-circle-Cgp2BW3m.js} +1 -1
- package/dist/{x-Cqyx5eCt.js → x-BJinLpTw.js} +1 -1
- package/package.json +1 -1
- package/dist/index-B2-vKLd8.js +0 -276
package/dist/dcp.d.ts
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import { type DCPInitConfig } from './core/config';
|
|
2
|
-
import type { DCPPayOptions } from './types';
|
|
2
|
+
import type { DCPPayOptions, DCPPaymentOptions } from './types';
|
|
3
3
|
export declare class DCP {
|
|
4
4
|
private static instance;
|
|
5
5
|
private constructor();
|
|
6
6
|
static getInstance(): DCP;
|
|
7
7
|
init(initConfig: DCPInitConfig): void;
|
|
8
|
+
/**
|
|
9
|
+
* Pay using a Payment Tool (toolId).
|
|
10
|
+
* Requires DCP.init() first.
|
|
11
|
+
*/
|
|
8
12
|
pay(options: DCPPayOptions): void;
|
|
13
|
+
/**
|
|
14
|
+
* Pay using a pre-configured Integration.
|
|
15
|
+
* Supports optional currency/chainId — when omitted, shows a token selector.
|
|
16
|
+
* Requires DCP.init() first (for WalletConnect projectId).
|
|
17
|
+
*/
|
|
18
|
+
Payment(options: DCPPaymentOptions): void;
|
|
9
19
|
}
|
|
10
20
|
export declare const dcp: DCP;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as I, c as d, r as m, U as D } from "./if-defined-
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./index-
|
|
5
|
-
import "./index-
|
|
6
|
-
import { e as H, n as q } from "./ref-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
1
|
+
import { cE as E, cH as L, cI as U, cF as w, cG as u, dM as _, cJ as l, dc as h, d1 as x, cZ as v, d8 as c, cY as S, d6 as k, di as F, cS as z, dN as M, dd as B } from "./index-BJ7cbG3N.js";
|
|
2
|
+
import { n as I, c as d, r as m, U as D } from "./if-defined-CNte9B3N.js";
|
|
3
|
+
import "./index-BP4B9VUt.js";
|
|
4
|
+
import "./index-BaJ0zEbh.js";
|
|
5
|
+
import "./index-CKikVKe2.js";
|
|
6
|
+
import { e as H, n as q } from "./ref-DpmKRWBK.js";
|
|
7
|
+
import "./index-Uw9cSw0q.js";
|
|
8
|
+
import "./index-Bh0MPFwP.js";
|
|
9
9
|
const Y = E`
|
|
10
10
|
:host {
|
|
11
11
|
position: relative;
|
|
@@ -97,7 +97,7 @@ T([
|
|
|
97
97
|
g = T([
|
|
98
98
|
d("wui-input-numeric")
|
|
99
99
|
], g);
|
|
100
|
-
const
|
|
100
|
+
const G = E`
|
|
101
101
|
:host {
|
|
102
102
|
position: relative;
|
|
103
103
|
display: block;
|
|
@@ -195,8 +195,8 @@ let f = class extends w {
|
|
|
195
195
|
this.updateInput(e, n, o);
|
|
196
196
|
const r = t.substring(1);
|
|
197
197
|
if (n + 1 < this.length && r.length) {
|
|
198
|
-
const s = this.numerics[n + 1],
|
|
199
|
-
|
|
198
|
+
const s = this.numerics[n + 1], A = s ? this.getInputElement(s) : void 0;
|
|
199
|
+
A && this.handlePaste(A, r, n + 1);
|
|
200
200
|
} else
|
|
201
201
|
this.focusInputField("next", n);
|
|
202
202
|
} else
|
|
@@ -215,7 +215,7 @@ let f = class extends w {
|
|
|
215
215
|
}));
|
|
216
216
|
}
|
|
217
217
|
};
|
|
218
|
-
f.styles = [L,
|
|
218
|
+
f.styles = [L, G];
|
|
219
219
|
C([
|
|
220
220
|
I({ type: Number })
|
|
221
221
|
], f.prototype, "length", void 0);
|
|
@@ -228,7 +228,7 @@ C([
|
|
|
228
228
|
f = C([
|
|
229
229
|
d("wui-otp")
|
|
230
230
|
], f);
|
|
231
|
-
const
|
|
231
|
+
const K = E`
|
|
232
232
|
wui-loading-spinner {
|
|
233
233
|
margin: 9px auto;
|
|
234
234
|
}
|
|
@@ -344,7 +344,7 @@ let p = class extends w {
|
|
|
344
344
|
};
|
|
345
345
|
}
|
|
346
346
|
};
|
|
347
|
-
p.styles =
|
|
347
|
+
p.styles = K;
|
|
348
348
|
O([
|
|
349
349
|
m()
|
|
350
350
|
], p.prototype, "loading", void 0);
|
|
@@ -357,7 +357,7 @@ O([
|
|
|
357
357
|
p = O([
|
|
358
358
|
d("w3m-email-otp-widget")
|
|
359
359
|
], p);
|
|
360
|
-
var
|
|
360
|
+
var Z = function(a, e, t, n) {
|
|
361
361
|
var o = arguments.length, i = o < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, t) : n, r;
|
|
362
362
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") i = Reflect.decorate(a, e, t, n);
|
|
363
363
|
else for (var s = a.length - 1; s >= 0; s--) (r = a[s]) && (i = (o < 3 ? r(i) : o > 3 ? r(e, t, i) : r(e, t)) || i);
|
|
@@ -390,10 +390,10 @@ let V = class extends p {
|
|
|
390
390
|
};
|
|
391
391
|
}
|
|
392
392
|
};
|
|
393
|
-
V =
|
|
393
|
+
V = Z([
|
|
394
394
|
d("w3m-email-verify-otp-view")
|
|
395
395
|
], V);
|
|
396
|
-
const
|
|
396
|
+
const Q = E`
|
|
397
397
|
wui-icon-box {
|
|
398
398
|
height: var(--wui-icon-box-size-xl);
|
|
399
399
|
width: var(--wui-icon-box-size-xl);
|
|
@@ -476,14 +476,14 @@ let y = class extends w {
|
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
478
|
};
|
|
479
|
-
y.styles =
|
|
479
|
+
y.styles = Q;
|
|
480
480
|
W([
|
|
481
481
|
m()
|
|
482
482
|
], y.prototype, "loading", void 0);
|
|
483
483
|
y = W([
|
|
484
484
|
d("w3m-email-verify-device-view")
|
|
485
485
|
], y);
|
|
486
|
-
const
|
|
486
|
+
const X = E`
|
|
487
487
|
wui-email-input {
|
|
488
488
|
width: 100%;
|
|
489
489
|
}
|
|
@@ -494,7 +494,7 @@ const Z = E`
|
|
|
494
494
|
position: relative;
|
|
495
495
|
}
|
|
496
496
|
`;
|
|
497
|
-
var
|
|
497
|
+
var $ = function(a, e, t, n) {
|
|
498
498
|
var o = arguments.length, i = o < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, t) : n, r;
|
|
499
499
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") i = Reflect.decorate(a, e, t, n);
|
|
500
500
|
else for (var s = a.length - 1; s >= 0; s--) (r = a[s]) && (i = (o < 3 ? r(i) : o > 3 ? r(e, t, i) : r(e, t)) || i);
|
|
@@ -585,14 +585,14 @@ let b = class extends w {
|
|
|
585
585
|
`;
|
|
586
586
|
}
|
|
587
587
|
};
|
|
588
|
-
b.styles =
|
|
589
|
-
|
|
588
|
+
b.styles = X;
|
|
589
|
+
$([
|
|
590
590
|
m()
|
|
591
591
|
], b.prototype, "email", void 0);
|
|
592
|
-
|
|
592
|
+
$([
|
|
593
593
|
m()
|
|
594
594
|
], b.prototype, "loading", void 0);
|
|
595
|
-
b =
|
|
595
|
+
b = $([
|
|
596
596
|
d("w3m-update-email-wallet-view")
|
|
597
597
|
], b);
|
|
598
598
|
var ee = function(a, e, t, n) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as p, c as g, n as w, o as k } from "./if-defined-
|
|
3
|
-
import { N as
|
|
4
|
-
import { e as
|
|
5
|
-
import "./index-
|
|
6
|
-
import "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./index-
|
|
11
|
-
import "./index-
|
|
12
|
-
const
|
|
1
|
+
import { cE as x, cF as f, cS as R, cG as l, dc as U, c$ as E, dw as W, db as A, cH as j, dd as $, dx as u, cX as h, d1 as I, cY as D, d8 as y, d0 as T, cZ as M, cJ as P } from "./index-BJ7cbG3N.js";
|
|
2
|
+
import { r as p, c as g, n as w, o as k } from "./if-defined-CNte9B3N.js";
|
|
3
|
+
import { N as H } from "./index-BHFZVF-b.js";
|
|
4
|
+
import { e as z, n as F } from "./ref-DpmKRWBK.js";
|
|
5
|
+
import "./index-BaJ0zEbh.js";
|
|
6
|
+
import "./index-DQe94z7X.js";
|
|
7
|
+
import "./index-D2AMA8Bu.js";
|
|
8
|
+
import "./index-DGjZW6uR.js";
|
|
9
|
+
import "./index-Uw9cSw0q.js";
|
|
10
|
+
import "./index-CKikVKe2.js";
|
|
11
|
+
import "./index-BP4B9VUt.js";
|
|
12
|
+
const V = x`
|
|
13
13
|
div {
|
|
14
14
|
width: 100%;
|
|
15
15
|
}
|
|
@@ -30,7 +30,7 @@ var O = function(o, e, i, n) {
|
|
|
30
30
|
else for (var a = o.length - 1; a >= 0; a--) (r = o[a]) && (t = (s < 3 ? r(t) : s > 3 ? r(e, i, t) : r(e, i)) || t);
|
|
31
31
|
return s > 3 && t && Object.defineProperty(e, i, t), t;
|
|
32
32
|
};
|
|
33
|
-
const S = 600, N = 360,
|
|
33
|
+
const S = 600, N = 360, G = 64;
|
|
34
34
|
let v = class extends f {
|
|
35
35
|
constructor() {
|
|
36
36
|
super(), this.bodyObserver = void 0, this.unsubscribe = [], this.iframe = document.getElementById("w3m-iframe"), this.ready = !1, this.unsubscribe.push(R.subscribeKey("open", (e) => {
|
|
@@ -50,7 +50,7 @@ let v = class extends f {
|
|
|
50
50
|
this.bodyObserver = new ResizeObserver((n) => {
|
|
51
51
|
var r, a;
|
|
52
52
|
const s = (r = n == null ? void 0 : n[0]) == null ? void 0 : r.contentBoxSize, t = (a = s == null ? void 0 : s[0]) == null ? void 0 : a.inlineSize;
|
|
53
|
-
this.iframe.style.height = `${S}px`, e.style.height = `${S}px`, t && t <= 430 ? (this.iframe.style.width = "100%", this.iframe.style.left = "0px", this.iframe.style.bottom = "0px", this.iframe.style.top = "unset") : (this.iframe.style.width = `${N}px`, this.iframe.style.left = `calc(50% - ${N / 2}px)`, this.iframe.style.top = `calc(50% - ${S / 2}px + ${
|
|
53
|
+
this.iframe.style.height = `${S}px`, e.style.height = `${S}px`, t && t <= 430 ? (this.iframe.style.width = "100%", this.iframe.style.left = "0px", this.iframe.style.bottom = "0px", this.iframe.style.top = "unset") : (this.iframe.style.width = `${N}px`, this.iframe.style.left = `calc(50% - ${N / 2}px)`, this.iframe.style.top = `calc(50% - ${S / 2}px + ${G / 2}px)`, this.iframe.style.bottom = "unset"), this.ready = !0, this.onShowIframe();
|
|
54
54
|
}), this.bodyObserver.observe(window.document.body);
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
@@ -74,14 +74,14 @@ let v = class extends f {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
v.styles =
|
|
77
|
+
v.styles = V;
|
|
78
78
|
O([
|
|
79
79
|
p()
|
|
80
80
|
], v.prototype, "ready", void 0);
|
|
81
81
|
v = O([
|
|
82
82
|
g("w3m-approve-transaction-view")
|
|
83
83
|
], v);
|
|
84
|
-
var
|
|
84
|
+
var Y = function(o, e, i, n) {
|
|
85
85
|
var s = arguments.length, t = s < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, i) : n, r;
|
|
86
86
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(o, e, i, n);
|
|
87
87
|
else for (var a = o.length - 1; a >= 0; a--) (r = o[a]) && (t = (s < 3 ? r(t) : s > 3 ? r(e, i, t) : r(e, i)) || t);
|
|
@@ -107,10 +107,10 @@ let _ = class extends f {
|
|
|
107
107
|
`;
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
|
-
_ =
|
|
110
|
+
_ = Y([
|
|
111
111
|
g("w3m-upgrade-wallet-view")
|
|
112
112
|
], _);
|
|
113
|
-
const
|
|
113
|
+
const L = x`
|
|
114
114
|
:host {
|
|
115
115
|
position: relative;
|
|
116
116
|
width: 100%;
|
|
@@ -166,7 +166,7 @@ let d = class extends f {
|
|
|
166
166
|
>` : null;
|
|
167
167
|
}
|
|
168
168
|
};
|
|
169
|
-
d.styles = [j,
|
|
169
|
+
d.styles = [j, L];
|
|
170
170
|
b([
|
|
171
171
|
w()
|
|
172
172
|
], d.prototype, "errorMessage", void 0);
|
|
@@ -182,7 +182,7 @@ b([
|
|
|
182
182
|
d = b([
|
|
183
183
|
g("wui-ens-input")
|
|
184
184
|
], d);
|
|
185
|
-
const
|
|
185
|
+
const B = x`
|
|
186
186
|
wui-flex {
|
|
187
187
|
width: 100%;
|
|
188
188
|
}
|
|
@@ -222,7 +222,7 @@ var m = function(o, e, i, n) {
|
|
|
222
222
|
};
|
|
223
223
|
let c = class extends f {
|
|
224
224
|
constructor() {
|
|
225
|
-
super(), this.formRef =
|
|
225
|
+
super(), this.formRef = z(), this.usubscribe = [], this.name = "", this.error = "", this.loading = u.state.loading, this.suggestions = u.state.suggestions, this.registered = !1, this.profileName = h.state.profileName, this.onDebouncedNameInputChange = I.debounce((e) => {
|
|
226
226
|
u.validateName(e) ? (this.error = "", this.name = e, u.getSuggestions(e), u.isNameRegistered(e).then((i) => {
|
|
227
227
|
this.registered = i;
|
|
228
228
|
})) : e.length < 4 ? this.error = "Name must be at least 4 characters long" : this.error = "Can only contain letters, numbers and - characters";
|
|
@@ -248,7 +248,7 @@ let c = class extends f {
|
|
|
248
248
|
gap="m"
|
|
249
249
|
.padding=${["0", "s", "m", "s"]}
|
|
250
250
|
>
|
|
251
|
-
<form ${
|
|
251
|
+
<form ${F(this.formRef)} @submit=${this.onSubmitName.bind(this)}>
|
|
252
252
|
<wui-ens-input
|
|
253
253
|
@inputChange=${this.onNameInputChange.bind(this)}
|
|
254
254
|
.errorMessage=${this.error}
|
|
@@ -358,7 +358,7 @@ let c = class extends f {
|
|
|
358
358
|
e.key === "Enter" && this.isAllowedToSubmit() && this.onSubmitName();
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
|
-
c.styles =
|
|
361
|
+
c.styles = B;
|
|
362
362
|
m([
|
|
363
363
|
w()
|
|
364
364
|
], c.prototype, "errorMessage", void 0);
|
|
@@ -406,7 +406,7 @@ let C = class extends f {
|
|
|
406
406
|
${this.onboardingTemplate()} ${this.buttonsTemplate()}
|
|
407
407
|
<wui-link
|
|
408
408
|
@click=${() => {
|
|
409
|
-
I.openHref(
|
|
409
|
+
I.openHref(H.URLS.FAQ, "_blank");
|
|
410
410
|
}}
|
|
411
411
|
>
|
|
412
412
|
Learn more
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cD as C } from "./index-BJ7cbG3N.js";
|
|
2
2
|
const t = C`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path d="M15.0162 11.6312L9.55059 2.13937C9.39228 1.86862 9.16584 1.64405 8.8938 1.48798C8.62176 1.33192 8.3136 1.2498 7.99997 1.2498C7.68634 1.2498 7.37817 1.33192 7.10613 1.48798C6.83409 1.64405 6.60765 1.86862 6.44934 2.13937L0.983716 11.6312C0.830104 11.894 0.749146 12.1928 0.749146 12.4972C0.749146 12.8015 0.830104 13.1004 0.983716 13.3631C1.14027 13.6352 1.3664 13.8608 1.63889 14.0166C1.91139 14.1725 2.22044 14.253 2.53434 14.25H13.4656C13.7793 14.2528 14.0881 14.1721 14.3603 14.0163C14.6326 13.8604 14.8585 13.635 15.015 13.3631C15.1688 13.1005 15.2499 12.8017 15.2502 12.4973C15.2504 12.193 15.1696 11.8941 15.0162 11.6312ZM13.7162 12.6125C13.6908 12.6558 13.6541 12.6914 13.6101 12.7157C13.5661 12.7399 13.5164 12.7517 13.4662 12.75H2.53434C2.48415 12.7517 2.43442 12.7399 2.39042 12.7157C2.34641 12.6914 2.30976 12.6558 2.28434 12.6125C2.26278 12.5774 2.25137 12.5371 2.25137 12.4959C2.25137 12.4548 2.26278 12.4144 2.28434 12.3794L7.74997 2.88749C7.77703 2.84583 7.81408 2.8116 7.85774 2.7879C7.9014 2.7642 7.95029 2.75178 7.99997 2.75178C8.04964 2.75178 8.09854 2.7642 8.1422 2.7879C8.18586 2.8116 8.2229 2.84583 8.24997 2.88749L13.715 12.3794C13.7367 12.4143 13.7483 12.4546 13.7486 12.4958C13.7488 12.5369 13.7376 12.5773 13.7162 12.6125ZM7.24997 8.49999V6.49999C7.24997 6.30108 7.32898 6.11031 7.46964 5.96966C7.61029 5.82901 7.80105 5.74999 7.99997 5.74999C8.19888 5.74999 8.38964 5.82901 8.5303 5.96966C8.67095 6.11031 8.74997 6.30108 8.74997 6.49999V8.49999C8.74997 8.6989 8.67095 8.88967 8.5303 9.03032C8.38964 9.17097 8.19888 9.24999 7.99997 9.24999C7.80105 9.24999 7.61029 9.17097 7.46964 9.03032C7.32898 8.88967 7.24997 8.6989 7.24997 8.49999ZM8.99997 11C8.99997 11.1978 8.94132 11.3911 8.83144 11.5556C8.72155 11.72 8.56538 11.8482 8.38265 11.9239C8.19992 11.9996 7.99886 12.0194 7.80488 11.9808C7.6109 11.9422 7.43271 11.847 7.29286 11.7071C7.15301 11.5672 7.05777 11.3891 7.01918 11.1951C6.9806 11.0011 7.0004 10.8 7.07609 10.6173C7.15177 10.4346 7.27995 10.2784 7.4444 10.1685C7.60885 10.0586 7.80219 9.99999 7.99997 9.99999C8.26518 9.99999 8.51954 10.1053 8.70707 10.2929C8.89461 10.4804 8.99997 10.7348 8.99997 11Z" fill="currentColor"/>
|
|
4
4
|
</svg>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cD as h } from "./index-BJ7cbG3N.js";
|
|
2
2
|
const a = h`<svg style="border-radius: 9999px; overflow: hidden;" fill="none" viewBox="0 0 1000 1000">
|
|
3
3
|
<rect width="1000" height="1000" rx="9999" ry="9999" fill="#855DCD"/>
|
|
4
4
|
<path fill="#855DCD" d="M0 0h1000v1000H0V0Z" />
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c1 as l, b$ as $, bI as u, bB as m, cf as c, a1 as d, cq as z,
|
|
1
|
+
import { c1 as l, b$ as $, bI as u, bB as m, cf as c, a1 as d, cq as z, df as k, c0 as H, bq as A, a0 as B, dg as N, T as O, bi as I, c2 as T } from "./index-BJ7cbG3N.js";
|
|
2
2
|
const j = `Ethereum Signed Message:
|
|
3
3
|
`;
|
|
4
4
|
function C(e) {
|
|
@@ -44,17 +44,17 @@ function F(e) {
|
|
|
44
44
|
}
|
|
45
45
|
if (f === "address" && typeof o == "string" && !A(o))
|
|
46
46
|
throw new B({ address: o });
|
|
47
|
-
const
|
|
48
|
-
if (
|
|
49
|
-
const [S, y] =
|
|
47
|
+
const g = f.match(N);
|
|
48
|
+
if (g) {
|
|
49
|
+
const [S, y] = g;
|
|
50
50
|
if (y && u(o) !== Number.parseInt(y, 10))
|
|
51
51
|
throw new O({
|
|
52
52
|
expectedSize: Number.parseInt(y, 10),
|
|
53
53
|
givenSize: u(o)
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
const
|
|
57
|
-
|
|
56
|
+
const b = n[f];
|
|
57
|
+
b && (J(f), a(b, o));
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
if (n.EIP712Domain && t) {
|