@directcryptopay/sdk 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ExchangeController-CbO41bcH.js +217 -0
- package/dist/HelpersUtil-DHm6EVSE.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-Ch0FFTEt.js +457 -0
- package/dist/{ccip-BIGqktC1.js → ccip-BrGhNXIM.js} +4 -4
- package/dist/data-capture-CpafmuCb.js +490 -0
- package/dist/dcp-sdk.umd.js +7400 -6589
- package/dist/email-Dcg4jlai.js +344 -0
- package/dist/embedded-wallet-DeoRdAPw.js +820 -0
- package/dist/features-B9Nde43h.js +274 -0
- package/dist/{hashTypedData-ZH9ZnWu3.js → hashTypedData-a7b8tdkO.js} +6 -6
- package/dist/if-defined-k21LutCn.js +10 -0
- package/dist/index-9vLw53Xl.js +228 -0
- package/dist/index-B5wUyynz.js +107 -0
- package/dist/index-B8LkUrww.js +86 -0
- package/dist/{index-CPTcEPbD.js → index-BA0VwKg0.js} +296 -298
- package/dist/index-BB9JJ24N.js +125 -0
- package/dist/index-BCkEvPQ6.js +172 -0
- package/dist/index-BDeO_csr.js +171 -0
- package/dist/index-Bb7babLF.js +1281 -0
- package/dist/index-BjOhprVS.js +199 -0
- package/dist/{index-Dy4NyE6l.js → index-BjyMgZsf.js} +7 -7
- package/dist/index-BkThIDLX.js +159 -0
- package/dist/index-BmFs6nb7.js +209 -0
- package/dist/{index-5mp7WkhV.js → index-C4qc4PdD.js} +2 -2
- package/dist/{index-BdSIrl-R.js → index-CAPvUh14.js} +578 -570
- package/dist/index-CBMU3PTE.js +65 -0
- package/dist/index-CGwPkJLF.js +355 -0
- package/dist/index-CNGEqX3D.js +153 -0
- package/dist/index-CRlCq6IB.js +7981 -0
- package/dist/index-Cg_o-i9X.js +118 -0
- package/dist/index-D1BvhCbI.js +62 -0
- package/dist/index-DFi8TiHc.js +128 -0
- package/dist/index-DLwuveL9.js +555 -0
- package/dist/index-DMn7ktUQ.js +56 -0
- package/dist/index-DOXwtuwa.js +117 -0
- package/dist/index-DPPOW_Tp.js +118 -0
- package/dist/{index-f3LXSfM5.js → index-DQpzHpW-.js} +56 -142
- package/dist/{index-D6h-qfpt.js → index-DXHg5C-W.js} +5 -5
- package/dist/index-DcYjZV4H.js +110 -0
- package/dist/{index-BJ7cbG3N.js → index-DeL88Lwc.js} +36769 -40177
- package/dist/index-DrWVlf8b.js +46 -0
- package/dist/index-Dsfuc4rB.js +123 -0
- package/dist/index-DuTny38n.js +1175 -0
- package/dist/{index-D5r0iSq4.js → index-Nfjb6bV0.js} +1 -1
- package/dist/index-WwwdQSN2.js +85 -0
- package/dist/index-Yha9Afch.js +174 -0
- package/dist/index-cbQHN7GC.js +100 -0
- package/dist/{index-DobBVPe4.js → index-hyG3cYsv.js} +481 -236
- package/dist/index-qLxmmPaL.js +257 -0
- package/dist/index.js +1 -1
- package/dist/{localBatchGatewayRequest-CjGcn5nM.js → localBatchGatewayRequest-vfcvRH0G.js} +1 -1
- package/dist/onramp-BSiyOX4L.js +855 -0
- package/dist/{parseSignature-S8VEpRHC.js → parseSignature-CdCMAPZN.js} +2312 -2313
- package/dist/pay-with-exchange-CduNoMEz.js +525 -0
- package/dist/property-Bd8U3_QP.js +618 -0
- package/dist/receive-CrmptJlq.js +232 -0
- package/dist/ref-SOwYtCZb.js +107 -0
- package/dist/send-oMcHMEr6.js +1166 -0
- package/dist/socials-C0A4-FbY.js +620 -0
- package/dist/swaps-CbJJ9Ciu.js +1760 -0
- package/dist/{transactions-DujFkB-M.js → transactions-BDfCoBS5.js} +10 -10
- package/dist/w3m-modal-BjsTkny7.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,125 @@
|
|
|
1
|
+
import { dp as d, cU as g, cV as u, cX as m, cY as p } from "./index-DeL88Lwc.js";
|
|
2
|
+
import { n as s, c as v } from "./index-DuTny38n.js";
|
|
3
|
+
import "./index-DFi8TiHc.js";
|
|
4
|
+
const w = d`<svg width="86" height="96" fill="none">
|
|
5
|
+
<path
|
|
6
|
+
d="M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z"
|
|
7
|
+
/>
|
|
8
|
+
</svg>`, f = d`<svg viewBox="0 0 48 54" fill="none">
|
|
9
|
+
<path
|
|
10
|
+
d="M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z"
|
|
11
|
+
/>
|
|
12
|
+
</svg>`, k = d`
|
|
13
|
+
<svg fill="none" viewBox="0 0 36 40">
|
|
14
|
+
<path
|
|
15
|
+
d="M15.4 2.1a5.21 5.21 0 0 1 5.2 0l11.61 6.7a5.21 5.21 0 0 1 2.61 4.52v13.4c0 1.87-1 3.59-2.6 4.52l-11.61 6.7c-1.62.93-3.6.93-5.22 0l-11.6-6.7a5.21 5.21 0 0 1-2.61-4.51v-13.4c0-1.87 1-3.6 2.6-4.52L15.4 2.1Z"
|
|
16
|
+
/>
|
|
17
|
+
</svg>
|
|
18
|
+
`, y = g`
|
|
19
|
+
:host {
|
|
20
|
+
position: relative;
|
|
21
|
+
border-radius: inherit;
|
|
22
|
+
display: flex;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
align-items: center;
|
|
25
|
+
width: var(--local-width);
|
|
26
|
+
height: var(--local-height);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host([data-round='true']) {
|
|
30
|
+
background: ${({ tokens: e }) => e.theme.foregroundPrimary};
|
|
31
|
+
border-radius: 100%;
|
|
32
|
+
outline: 1px solid ${({ tokens: e }) => e.core.glass010};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
svg {
|
|
36
|
+
position: absolute;
|
|
37
|
+
top: 0;
|
|
38
|
+
left: 0;
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: 100%;
|
|
41
|
+
z-index: 1;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
svg > path {
|
|
45
|
+
stroke: var(--local-stroke);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
wui-image {
|
|
49
|
+
width: 100%;
|
|
50
|
+
height: 100%;
|
|
51
|
+
-webkit-clip-path: var(--local-path);
|
|
52
|
+
clip-path: var(--local-path);
|
|
53
|
+
background: ${({ tokens: e }) => e.theme.foregroundPrimary};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
wui-icon {
|
|
57
|
+
transform: translateY(-5%);
|
|
58
|
+
width: var(--local-icon-size);
|
|
59
|
+
height: var(--local-icon-size);
|
|
60
|
+
}
|
|
61
|
+
`;
|
|
62
|
+
var a = function(e, i, r, n) {
|
|
63
|
+
var l = arguments.length, o = l < 3 ? i : n === null ? n = Object.getOwnPropertyDescriptor(i, r) : n, c;
|
|
64
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, i, r, n);
|
|
65
|
+
else for (var h = e.length - 1; h >= 0; h--) (c = e[h]) && (o = (l < 3 ? c(o) : l > 3 ? c(i, r, o) : c(i, r)) || o);
|
|
66
|
+
return l > 3 && o && Object.defineProperty(i, r, o), o;
|
|
67
|
+
};
|
|
68
|
+
let t = class extends m {
|
|
69
|
+
constructor() {
|
|
70
|
+
super(...arguments), this.size = "md", this.name = "uknown", this.networkImagesBySize = {
|
|
71
|
+
sm: k,
|
|
72
|
+
md: f,
|
|
73
|
+
lg: w
|
|
74
|
+
}, this.selected = !1, this.round = !1;
|
|
75
|
+
}
|
|
76
|
+
render() {
|
|
77
|
+
const i = {
|
|
78
|
+
sm: "4",
|
|
79
|
+
md: "6",
|
|
80
|
+
lg: "10"
|
|
81
|
+
};
|
|
82
|
+
return this.round ? (this.dataset.round = "true", this.style.cssText = `
|
|
83
|
+
--local-width: var(--apkt-spacing-10);
|
|
84
|
+
--local-height: var(--apkt-spacing-10);
|
|
85
|
+
--local-icon-size: var(--apkt-spacing-4);
|
|
86
|
+
`) : this.style.cssText = `
|
|
87
|
+
|
|
88
|
+
--local-path: var(--apkt-path-network-${this.size});
|
|
89
|
+
--local-width: var(--apkt-width-network-${this.size});
|
|
90
|
+
--local-height: var(--apkt-height-network-${this.size});
|
|
91
|
+
--local-icon-size: var(--apkt-spacing-${i[this.size]});
|
|
92
|
+
`, p`${this.templateVisual()} ${this.svgTemplate()} `;
|
|
93
|
+
}
|
|
94
|
+
svgTemplate() {
|
|
95
|
+
return this.round ? null : this.networkImagesBySize[this.size];
|
|
96
|
+
}
|
|
97
|
+
templateVisual() {
|
|
98
|
+
return this.imageSrc ? p`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>` : p`<wui-icon size="inherit" color="default" name="networkPlaceholder"></wui-icon>`;
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
t.styles = [u, y];
|
|
102
|
+
a([
|
|
103
|
+
s()
|
|
104
|
+
], t.prototype, "size", void 0);
|
|
105
|
+
a([
|
|
106
|
+
s()
|
|
107
|
+
], t.prototype, "name", void 0);
|
|
108
|
+
a([
|
|
109
|
+
s({ type: Object })
|
|
110
|
+
], t.prototype, "networkImagesBySize", void 0);
|
|
111
|
+
a([
|
|
112
|
+
s()
|
|
113
|
+
], t.prototype, "imageSrc", void 0);
|
|
114
|
+
a([
|
|
115
|
+
s({ type: Boolean })
|
|
116
|
+
], t.prototype, "selected", void 0);
|
|
117
|
+
a([
|
|
118
|
+
s({ type: Boolean })
|
|
119
|
+
], t.prototype, "round", void 0);
|
|
120
|
+
t = a([
|
|
121
|
+
v("wui-network-image")
|
|
122
|
+
], t);
|
|
123
|
+
export {
|
|
124
|
+
f as n
|
|
125
|
+
};
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { cU as l, cV as p, cW as h, cX as b, cY as y } from "./index-DeL88Lwc.js";
|
|
2
|
+
import { n as r, c as f } from "./index-DuTny38n.js";
|
|
3
|
+
import { o as v } from "./if-defined-k21LutCn.js";
|
|
4
|
+
const m = l`
|
|
5
|
+
:host {
|
|
6
|
+
position: relative;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
button {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
align-items: center;
|
|
13
|
+
background-color: transparent;
|
|
14
|
+
padding: ${({ spacing: t }) => t[1]};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* -- Colors --------------------------------------------------- */
|
|
18
|
+
button[data-type='accent'] wui-icon {
|
|
19
|
+
color: ${({ tokens: t }) => t.core.iconAccentPrimary};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
button[data-type='neutral'][data-variant='primary'] wui-icon {
|
|
23
|
+
color: ${({ tokens: t }) => t.theme.iconInverse};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
button[data-type='neutral'][data-variant='secondary'] wui-icon {
|
|
27
|
+
color: ${({ tokens: t }) => t.theme.iconDefault};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
button[data-type='success'] wui-icon {
|
|
31
|
+
color: ${({ tokens: t }) => t.core.iconSuccess};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
button[data-type='error'] wui-icon {
|
|
35
|
+
color: ${({ tokens: t }) => t.core.iconError};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* -- Sizes --------------------------------------------------- */
|
|
39
|
+
button[data-size='xs'] {
|
|
40
|
+
width: 16px;
|
|
41
|
+
height: 16px;
|
|
42
|
+
|
|
43
|
+
border-radius: ${({ borderRadius: t }) => t[1]};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
button[data-size='sm'] {
|
|
47
|
+
width: 20px;
|
|
48
|
+
height: 20px;
|
|
49
|
+
border-radius: ${({ borderRadius: t }) => t[1]};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
button[data-size='md'] {
|
|
53
|
+
width: 24px;
|
|
54
|
+
height: 24px;
|
|
55
|
+
border-radius: ${({ borderRadius: t }) => t[2]};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
button[data-size='lg'] {
|
|
59
|
+
width: 28px;
|
|
60
|
+
height: 28px;
|
|
61
|
+
border-radius: ${({ borderRadius: t }) => t[2]};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
button[data-size='xs'] wui-icon {
|
|
65
|
+
width: 8px;
|
|
66
|
+
height: 8px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
button[data-size='sm'] wui-icon {
|
|
70
|
+
width: 12px;
|
|
71
|
+
height: 12px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
button[data-size='md'] wui-icon {
|
|
75
|
+
width: 16px;
|
|
76
|
+
height: 16px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
button[data-size='lg'] wui-icon {
|
|
80
|
+
width: 20px;
|
|
81
|
+
height: 20px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* -- Hover --------------------------------------------------- */
|
|
85
|
+
@media (hover: hover) {
|
|
86
|
+
button[data-type='accent']:hover:enabled {
|
|
87
|
+
background-color: ${({ tokens: t }) => t.core.foregroundAccent010};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
button[data-variant='primary'][data-type='neutral']:hover:enabled {
|
|
91
|
+
background-color: ${({ tokens: t }) => t.theme.foregroundSecondary};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
button[data-variant='secondary'][data-type='neutral']:hover:enabled {
|
|
95
|
+
background-color: ${({ tokens: t }) => t.theme.foregroundSecondary};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
button[data-type='success']:hover:enabled {
|
|
99
|
+
background-color: ${({ tokens: t }) => t.core.backgroundSuccess};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
button[data-type='error']:hover:enabled {
|
|
103
|
+
background-color: ${({ tokens: t }) => t.core.backgroundError};
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* -- Focus --------------------------------------------------- */
|
|
108
|
+
button:focus-visible {
|
|
109
|
+
box-shadow: 0 0 0 4px ${({ tokens: t }) => t.core.foregroundAccent020};
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* -- Properties --------------------------------------------------- */
|
|
113
|
+
button[data-full-width='true'] {
|
|
114
|
+
width: 100%;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:host([fullWidth]) {
|
|
118
|
+
width: 100%;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
button[disabled] {
|
|
122
|
+
opacity: 0.5;
|
|
123
|
+
cursor: not-allowed;
|
|
124
|
+
}
|
|
125
|
+
`;
|
|
126
|
+
var i = function(t, a, n, d) {
|
|
127
|
+
var c = arguments.length, o = c < 3 ? a : d === null ? d = Object.getOwnPropertyDescriptor(a, n) : d, s;
|
|
128
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(t, a, n, d);
|
|
129
|
+
else for (var u = t.length - 1; u >= 0; u--) (s = t[u]) && (o = (c < 3 ? s(o) : c > 3 ? s(a, n, o) : s(a, n)) || o);
|
|
130
|
+
return c > 3 && o && Object.defineProperty(a, n, o), o;
|
|
131
|
+
};
|
|
132
|
+
let e = class extends b {
|
|
133
|
+
constructor() {
|
|
134
|
+
super(...arguments), this.icon = "card", this.variant = "primary", this.type = "accent", this.size = "md", this.iconSize = void 0, this.fullWidth = !1, this.disabled = !1;
|
|
135
|
+
}
|
|
136
|
+
render() {
|
|
137
|
+
return y`<button
|
|
138
|
+
data-variant=${this.variant}
|
|
139
|
+
data-type=${this.type}
|
|
140
|
+
data-size=${this.size}
|
|
141
|
+
data-full-width=${this.fullWidth}
|
|
142
|
+
?disabled=${this.disabled}
|
|
143
|
+
>
|
|
144
|
+
<wui-icon color="inherit" name=${this.icon} size=${v(this.iconSize)}></wui-icon>
|
|
145
|
+
</button>`;
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
e.styles = [p, h, m];
|
|
149
|
+
i([
|
|
150
|
+
r()
|
|
151
|
+
], e.prototype, "icon", void 0);
|
|
152
|
+
i([
|
|
153
|
+
r()
|
|
154
|
+
], e.prototype, "variant", void 0);
|
|
155
|
+
i([
|
|
156
|
+
r()
|
|
157
|
+
], e.prototype, "type", void 0);
|
|
158
|
+
i([
|
|
159
|
+
r()
|
|
160
|
+
], e.prototype, "size", void 0);
|
|
161
|
+
i([
|
|
162
|
+
r()
|
|
163
|
+
], e.prototype, "iconSize", void 0);
|
|
164
|
+
i([
|
|
165
|
+
r({ type: Boolean })
|
|
166
|
+
], e.prototype, "fullWidth", void 0);
|
|
167
|
+
i([
|
|
168
|
+
r({ type: Boolean })
|
|
169
|
+
], e.prototype, "disabled", void 0);
|
|
170
|
+
e = i([
|
|
171
|
+
f("wui-icon-button")
|
|
172
|
+
], e);
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { c_ as h, cX as p, cM as c, cY as a, cF as x, d3 as b, cE as g, d4 as v, d0 as C, cU as m, cV as _, cW as $ } from "./index-DeL88Lwc.js";
|
|
2
|
+
import { c as w, r as T } from "./index-DuTny38n.js";
|
|
3
|
+
import "./index-DcYjZV4H.js";
|
|
4
|
+
const R = h``;
|
|
5
|
+
var O = function(n, e, r, o) {
|
|
6
|
+
var i = arguments.length, t = i < 3 ? e : o === null ? o = Object.getOwnPropertyDescriptor(e, r) : o, s;
|
|
7
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(n, e, r, o);
|
|
8
|
+
else for (var l = n.length - 1; l >= 0; l--) (s = n[l]) && (t = (i < 3 ? s(t) : i > 3 ? s(e, r, t) : s(e, r)) || t);
|
|
9
|
+
return i > 3 && t && Object.defineProperty(e, r, t), t;
|
|
10
|
+
};
|
|
11
|
+
let f = class extends p {
|
|
12
|
+
render() {
|
|
13
|
+
const { termsConditionsUrl: e, privacyPolicyUrl: r } = c.state;
|
|
14
|
+
return !e && !r ? null : a`
|
|
15
|
+
<wui-flex
|
|
16
|
+
.padding=${["4", "3", "3", "3"]}
|
|
17
|
+
flexDirection="column"
|
|
18
|
+
alignItems="center"
|
|
19
|
+
justifyContent="center"
|
|
20
|
+
gap="3"
|
|
21
|
+
>
|
|
22
|
+
<wui-text color="secondary" variant="md-regular" align="center">
|
|
23
|
+
We work with the best providers to give you the lowest fees and best support. More options
|
|
24
|
+
coming soon!
|
|
25
|
+
</wui-text>
|
|
26
|
+
|
|
27
|
+
${this.howDoesItWorkTemplate()}
|
|
28
|
+
</wui-flex>
|
|
29
|
+
`;
|
|
30
|
+
}
|
|
31
|
+
howDoesItWorkTemplate() {
|
|
32
|
+
return a` <wui-link @click=${this.onWhatIsBuy.bind(this)}>
|
|
33
|
+
<wui-icon size="xs" color="accent-primary" slot="iconLeft" name="helpCircle"></wui-icon>
|
|
34
|
+
How does it work?
|
|
35
|
+
</wui-link>`;
|
|
36
|
+
}
|
|
37
|
+
onWhatIsBuy() {
|
|
38
|
+
x.sendEvent({
|
|
39
|
+
type: "track",
|
|
40
|
+
event: "SELECT_WHAT_IS_A_BUY",
|
|
41
|
+
properties: {
|
|
42
|
+
isSmartAccount: b(g.state.activeChain) === v.ACCOUNT_TYPES.SMART_ACCOUNT
|
|
43
|
+
}
|
|
44
|
+
}), C.push("WhatIsABuy");
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
f.styles = [R];
|
|
48
|
+
f = O([
|
|
49
|
+
w("w3m-onramp-providers-footer")
|
|
50
|
+
], f);
|
|
51
|
+
const P = "https://reown.com", U = m`
|
|
52
|
+
.reown-logo {
|
|
53
|
+
height: 24px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
a {
|
|
57
|
+
text-decoration: none;
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
color: ${({ tokens: n }) => n.theme.textSecondary};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
a:hover {
|
|
63
|
+
opacity: 0.9;
|
|
64
|
+
}
|
|
65
|
+
`;
|
|
66
|
+
var W = function(n, e, r, o) {
|
|
67
|
+
var i = arguments.length, t = i < 3 ? e : o === null ? o = Object.getOwnPropertyDescriptor(e, r) : o, s;
|
|
68
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(n, e, r, o);
|
|
69
|
+
else for (var l = n.length - 1; l >= 0; l--) (s = n[l]) && (t = (i < 3 ? s(t) : i > 3 ? s(e, r, t) : s(e, r)) || t);
|
|
70
|
+
return i > 3 && t && Object.defineProperty(e, r, t), t;
|
|
71
|
+
};
|
|
72
|
+
let d = class extends p {
|
|
73
|
+
render() {
|
|
74
|
+
return a`
|
|
75
|
+
<a
|
|
76
|
+
data-testid="ux-branding-reown"
|
|
77
|
+
href=${P}
|
|
78
|
+
rel="noreferrer"
|
|
79
|
+
target="_blank"
|
|
80
|
+
style="text-decoration: none;"
|
|
81
|
+
>
|
|
82
|
+
<wui-flex
|
|
83
|
+
justifyContent="center"
|
|
84
|
+
alignItems="center"
|
|
85
|
+
gap="1"
|
|
86
|
+
.padding=${["01", "0", "3", "0"]}
|
|
87
|
+
>
|
|
88
|
+
<wui-text variant="sm-regular" color="inherit"> UX by </wui-text>
|
|
89
|
+
<wui-icon name="reown" size="inherit" class="reown-logo"></wui-icon>
|
|
90
|
+
</wui-flex>
|
|
91
|
+
</a>
|
|
92
|
+
`;
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
d.styles = [_, $, U];
|
|
96
|
+
d = W([
|
|
97
|
+
w("wui-ux-by-reown")
|
|
98
|
+
], d);
|
|
99
|
+
const B = m`
|
|
100
|
+
:host wui-ux-by-reown {
|
|
101
|
+
padding-top: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
:host wui-ux-by-reown.branding-only {
|
|
105
|
+
padding-top: ${({ spacing: n }) => n[3]};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
a {
|
|
109
|
+
text-decoration: none;
|
|
110
|
+
color: ${({ tokens: n }) => n.core.textAccentPrimary};
|
|
111
|
+
font-weight: 500;
|
|
112
|
+
}
|
|
113
|
+
`;
|
|
114
|
+
var y = function(n, e, r, o) {
|
|
115
|
+
var i = arguments.length, t = i < 3 ? e : o === null ? o = Object.getOwnPropertyDescriptor(e, r) : o, s;
|
|
116
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(n, e, r, o);
|
|
117
|
+
else for (var l = n.length - 1; l >= 0; l--) (s = n[l]) && (t = (i < 3 ? s(t) : i > 3 ? s(e, r, t) : s(e, r)) || t);
|
|
118
|
+
return i > 3 && t && Object.defineProperty(e, r, t), t;
|
|
119
|
+
};
|
|
120
|
+
let u = class extends p {
|
|
121
|
+
constructor() {
|
|
122
|
+
super(), this.unsubscribe = [], this.remoteFeatures = c.state.remoteFeatures, this.unsubscribe.push(c.subscribeKey("remoteFeatures", (e) => this.remoteFeatures = e));
|
|
123
|
+
}
|
|
124
|
+
disconnectedCallback() {
|
|
125
|
+
this.unsubscribe.forEach((e) => e());
|
|
126
|
+
}
|
|
127
|
+
render() {
|
|
128
|
+
var t;
|
|
129
|
+
const { termsConditionsUrl: e, privacyPolicyUrl: r } = c.state, o = (t = c.state.features) == null ? void 0 : t.legalCheckbox;
|
|
130
|
+
return !e && !r || o ? a`
|
|
131
|
+
<wui-flex flexDirection="column"> ${this.reownBrandingTemplate(!0)} </wui-flex>
|
|
132
|
+
` : a`
|
|
133
|
+
<wui-flex flexDirection="column">
|
|
134
|
+
<wui-flex .padding=${["4", "3", "3", "3"]} justifyContent="center">
|
|
135
|
+
<wui-text color="secondary" variant="md-regular" align="center">
|
|
136
|
+
By connecting your wallet, you agree to our <br />
|
|
137
|
+
${this.termsTemplate()} ${this.andTemplate()} ${this.privacyTemplate()}
|
|
138
|
+
</wui-text>
|
|
139
|
+
</wui-flex>
|
|
140
|
+
${this.reownBrandingTemplate()}
|
|
141
|
+
</wui-flex>
|
|
142
|
+
`;
|
|
143
|
+
}
|
|
144
|
+
andTemplate() {
|
|
145
|
+
const { termsConditionsUrl: e, privacyPolicyUrl: r } = c.state;
|
|
146
|
+
return e && r ? "and" : "";
|
|
147
|
+
}
|
|
148
|
+
termsTemplate() {
|
|
149
|
+
const { termsConditionsUrl: e } = c.state;
|
|
150
|
+
return e ? a`<a href=${e} target="_blank" rel="noopener noreferrer"
|
|
151
|
+
>Terms of Service</a
|
|
152
|
+
>` : null;
|
|
153
|
+
}
|
|
154
|
+
privacyTemplate() {
|
|
155
|
+
const { privacyPolicyUrl: e } = c.state;
|
|
156
|
+
return e ? a`<a href=${e} target="_blank" rel="noopener noreferrer"
|
|
157
|
+
>Privacy Policy</a
|
|
158
|
+
>` : null;
|
|
159
|
+
}
|
|
160
|
+
reownBrandingTemplate(e = !1) {
|
|
161
|
+
var r;
|
|
162
|
+
return (r = this.remoteFeatures) != null && r.reownBranding ? e ? a`<wui-ux-by-reown class="branding-only"></wui-ux-by-reown>` : a`<wui-ux-by-reown></wui-ux-by-reown>` : null;
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
u.styles = [B];
|
|
166
|
+
y([
|
|
167
|
+
T()
|
|
168
|
+
], u.prototype, "remoteFeatures", void 0);
|
|
169
|
+
u = y([
|
|
170
|
+
w("w3m-legal-footer")
|
|
171
|
+
], u);
|