@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
package/dist/index-Cle_NnnS.js
DELETED
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
import { cU as $, cV as R, cW as _, cE as f, cH as m, cF as b, cG as l, di as a, cI as O } from "./index-BJ7cbG3N.js";
|
|
2
|
-
import { n as U, c as w, o as j, r as y } from "./if-defined-CNte9B3N.js";
|
|
3
|
-
import { e as P, n as T } from "./ref-DpmKRWBK.js";
|
|
4
|
-
import { R as B } from "./ConstantsUtil-B-_-u8aQ.js";
|
|
5
|
-
const u = $({
|
|
6
|
-
isLegalCheckboxChecked: !1
|
|
7
|
-
}), x = {
|
|
8
|
-
state: u,
|
|
9
|
-
subscribe(n) {
|
|
10
|
-
return _(u, () => n(u));
|
|
11
|
-
},
|
|
12
|
-
subscribeKey(n, e) {
|
|
13
|
-
return R(u, n, e);
|
|
14
|
-
},
|
|
15
|
-
setIsLegalCheckboxChecked(n) {
|
|
16
|
-
u.isLegalCheckboxChecked = n;
|
|
17
|
-
}
|
|
18
|
-
}, E = f`
|
|
19
|
-
label {
|
|
20
|
-
display: flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
cursor: pointer;
|
|
23
|
-
-webkit-user-select: none;
|
|
24
|
-
-moz-user-select: none;
|
|
25
|
-
-ms-user-select: none;
|
|
26
|
-
user-select: none;
|
|
27
|
-
column-gap: var(--wui-spacing-1xs);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
label > input[type='checkbox'] {
|
|
31
|
-
height: 0;
|
|
32
|
-
width: 0;
|
|
33
|
-
opacity: 0;
|
|
34
|
-
pointer-events: none;
|
|
35
|
-
position: absolute;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
label > span {
|
|
39
|
-
width: var(--wui-spacing-xl);
|
|
40
|
-
height: var(--wui-spacing-xl);
|
|
41
|
-
min-width: var(--wui-spacing-xl);
|
|
42
|
-
min-height: var(--wui-spacing-xl);
|
|
43
|
-
border-radius: var(--wui-border-radius-3xs);
|
|
44
|
-
border-width: 1px;
|
|
45
|
-
border-style: solid;
|
|
46
|
-
border-color: var(--wui-color-gray-glass-010);
|
|
47
|
-
display: flex;
|
|
48
|
-
align-items: center;
|
|
49
|
-
justify-content: center;
|
|
50
|
-
transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-lg);
|
|
51
|
-
will-change: background-color;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
label > span:hover,
|
|
55
|
-
label > input[type='checkbox']:focus-visible + span {
|
|
56
|
-
background-color: var(--wui-color-gray-glass-010);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
label input[type='checkbox']:checked + span {
|
|
60
|
-
background-color: var(--wui-color-blue-base-90);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
label > span > wui-icon {
|
|
64
|
-
opacity: 0;
|
|
65
|
-
transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-lg);
|
|
66
|
-
will-change: opacity;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
label > input[type='checkbox']:checked + span wui-icon {
|
|
70
|
-
opacity: 1;
|
|
71
|
-
}
|
|
72
|
-
`;
|
|
73
|
-
var v = function(n, e, r, o) {
|
|
74
|
-
var i = arguments.length, t = i < 3 ? e : o === null ? o = Object.getOwnPropertyDescriptor(e, r) : o, c;
|
|
75
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(n, e, r, o);
|
|
76
|
-
else for (var s = n.length - 1; s >= 0; s--) (c = n[s]) && (t = (i < 3 ? c(t) : i > 3 ? c(e, r, t) : c(e, r)) || t);
|
|
77
|
-
return i > 3 && t && Object.defineProperty(e, r, t), t;
|
|
78
|
-
};
|
|
79
|
-
let h = class extends b {
|
|
80
|
-
constructor() {
|
|
81
|
-
super(...arguments), this.inputElementRef = P(), this.checked = void 0;
|
|
82
|
-
}
|
|
83
|
-
render() {
|
|
84
|
-
return l`
|
|
85
|
-
<label>
|
|
86
|
-
<input
|
|
87
|
-
${T(this.inputElementRef)}
|
|
88
|
-
?checked=${j(this.checked)}
|
|
89
|
-
type="checkbox"
|
|
90
|
-
@change=${this.dispatchChangeEvent}
|
|
91
|
-
/>
|
|
92
|
-
<span>
|
|
93
|
-
<wui-icon name="checkmarkBold" color="inverse-100" size="xxs"></wui-icon>
|
|
94
|
-
</span>
|
|
95
|
-
<slot></slot>
|
|
96
|
-
</label>
|
|
97
|
-
`;
|
|
98
|
-
}
|
|
99
|
-
dispatchChangeEvent() {
|
|
100
|
-
var e;
|
|
101
|
-
this.dispatchEvent(new CustomEvent("checkboxChange", {
|
|
102
|
-
detail: (e = this.inputElementRef.value) == null ? void 0 : e.checked,
|
|
103
|
-
bubbles: !0,
|
|
104
|
-
composed: !0
|
|
105
|
-
}));
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
h.styles = [m, E];
|
|
109
|
-
v([
|
|
110
|
-
U({ type: Boolean })
|
|
111
|
-
], h.prototype, "checked", void 0);
|
|
112
|
-
h = v([
|
|
113
|
-
w("wui-checkbox")
|
|
114
|
-
], h);
|
|
115
|
-
const L = f`
|
|
116
|
-
:host {
|
|
117
|
-
display: flex;
|
|
118
|
-
align-items: center;
|
|
119
|
-
justify-content: center;
|
|
120
|
-
}
|
|
121
|
-
wui-checkbox {
|
|
122
|
-
padding: var(--wui-spacing-s);
|
|
123
|
-
}
|
|
124
|
-
a {
|
|
125
|
-
text-decoration: none;
|
|
126
|
-
color: var(--wui-color-fg-150);
|
|
127
|
-
font-weight: 500;
|
|
128
|
-
}
|
|
129
|
-
`;
|
|
130
|
-
var k = function(n, e, r, o) {
|
|
131
|
-
var i = arguments.length, t = i < 3 ? e : o === null ? o = Object.getOwnPropertyDescriptor(e, r) : o, c;
|
|
132
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(n, e, r, o);
|
|
133
|
-
else for (var s = n.length - 1; s >= 0; s--) (c = n[s]) && (t = (i < 3 ? c(t) : i > 3 ? c(e, r, t) : c(e, r)) || t);
|
|
134
|
-
return i > 3 && t && Object.defineProperty(e, r, t), t;
|
|
135
|
-
};
|
|
136
|
-
let d = class extends b {
|
|
137
|
-
constructor() {
|
|
138
|
-
super(), this.unsubscribe = [], this.checked = x.state.isLegalCheckboxChecked, this.unsubscribe.push(x.subscribeKey("isLegalCheckboxChecked", (e) => {
|
|
139
|
-
this.checked = e;
|
|
140
|
-
}));
|
|
141
|
-
}
|
|
142
|
-
disconnectedCallback() {
|
|
143
|
-
this.unsubscribe.forEach((e) => e());
|
|
144
|
-
}
|
|
145
|
-
render() {
|
|
146
|
-
var i;
|
|
147
|
-
const { termsConditionsUrl: e, privacyPolicyUrl: r } = a.state, o = (i = a.state.features) == null ? void 0 : i.legalCheckbox;
|
|
148
|
-
return !e && !r || !o ? null : l`
|
|
149
|
-
<wui-checkbox
|
|
150
|
-
?checked=${this.checked}
|
|
151
|
-
@checkboxChange=${this.onCheckboxChange.bind(this)}
|
|
152
|
-
data-testid="wui-checkbox"
|
|
153
|
-
>
|
|
154
|
-
<wui-text color="fg-250" variant="small-400" align="left">
|
|
155
|
-
I agree to our ${this.termsTemplate()} ${this.andTemplate()} ${this.privacyTemplate()}
|
|
156
|
-
</wui-text>
|
|
157
|
-
</wui-checkbox>
|
|
158
|
-
`;
|
|
159
|
-
}
|
|
160
|
-
andTemplate() {
|
|
161
|
-
const { termsConditionsUrl: e, privacyPolicyUrl: r } = a.state;
|
|
162
|
-
return e && r ? "and" : "";
|
|
163
|
-
}
|
|
164
|
-
termsTemplate() {
|
|
165
|
-
const { termsConditionsUrl: e } = a.state;
|
|
166
|
-
return e ? l`<a rel="noreferrer" target="_blank" href=${e}>terms of service</a>` : null;
|
|
167
|
-
}
|
|
168
|
-
privacyTemplate() {
|
|
169
|
-
const { privacyPolicyUrl: e } = a.state;
|
|
170
|
-
return e ? l`<a rel="noreferrer" target="_blank" href=${e}>privacy policy</a>` : null;
|
|
171
|
-
}
|
|
172
|
-
onCheckboxChange() {
|
|
173
|
-
x.setIsLegalCheckboxChecked(!this.checked);
|
|
174
|
-
}
|
|
175
|
-
};
|
|
176
|
-
d.styles = [L];
|
|
177
|
-
k([
|
|
178
|
-
y()
|
|
179
|
-
], d.prototype, "checked", void 0);
|
|
180
|
-
d = k([
|
|
181
|
-
w("w3m-legal-checkbox")
|
|
182
|
-
], d);
|
|
183
|
-
const W = f`
|
|
184
|
-
.reown-logo {
|
|
185
|
-
height: var(--wui-spacing-xxl);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
a {
|
|
189
|
-
text-decoration: none;
|
|
190
|
-
cursor: pointer;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
a:hover {
|
|
194
|
-
opacity: 0.9;
|
|
195
|
-
}
|
|
196
|
-
`;
|
|
197
|
-
var F = function(n, e, r, o) {
|
|
198
|
-
var i = arguments.length, t = i < 3 ? e : o === null ? o = Object.getOwnPropertyDescriptor(e, r) : o, c;
|
|
199
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(n, e, r, o);
|
|
200
|
-
else for (var s = n.length - 1; s >= 0; s--) (c = n[s]) && (t = (i < 3 ? c(t) : i > 3 ? c(e, r, t) : c(e, r)) || t);
|
|
201
|
-
return i > 3 && t && Object.defineProperty(e, r, t), t;
|
|
202
|
-
};
|
|
203
|
-
let g = class extends b {
|
|
204
|
-
render() {
|
|
205
|
-
return l`
|
|
206
|
-
<a
|
|
207
|
-
data-testid="ux-branding-reown"
|
|
208
|
-
href=${B}
|
|
209
|
-
rel="noreferrer"
|
|
210
|
-
target="_blank"
|
|
211
|
-
style="text-decoration: none;"
|
|
212
|
-
>
|
|
213
|
-
<wui-flex
|
|
214
|
-
justifyContent="center"
|
|
215
|
-
alignItems="center"
|
|
216
|
-
gap="xs"
|
|
217
|
-
.padding=${["0", "0", "l", "0"]}
|
|
218
|
-
>
|
|
219
|
-
<wui-text variant="small-500" color="fg-100"> UX by </wui-text>
|
|
220
|
-
<wui-icon name="reown" size="xxxl" class="reown-logo"></wui-icon>
|
|
221
|
-
</wui-flex>
|
|
222
|
-
</a>
|
|
223
|
-
`;
|
|
224
|
-
}
|
|
225
|
-
};
|
|
226
|
-
g.styles = [m, O, W];
|
|
227
|
-
g = F([
|
|
228
|
-
w("wui-ux-by-reown")
|
|
229
|
-
], g);
|
|
230
|
-
const D = f`
|
|
231
|
-
:host > wui-flex {
|
|
232
|
-
background-color: var(--wui-color-gray-glass-005);
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
:host wui-ux-by-reown {
|
|
236
|
-
padding-top: 0;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
:host wui-ux-by-reown.branding-only {
|
|
240
|
-
padding-top: var(--wui-spacing-m);
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
a {
|
|
244
|
-
text-decoration: none;
|
|
245
|
-
color: var(--wui-color-fg-175);
|
|
246
|
-
font-weight: 500;
|
|
247
|
-
}
|
|
248
|
-
`;
|
|
249
|
-
var C = function(n, e, r, o) {
|
|
250
|
-
var i = arguments.length, t = i < 3 ? e : o === null ? o = Object.getOwnPropertyDescriptor(e, r) : o, c;
|
|
251
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(n, e, r, o);
|
|
252
|
-
else for (var s = n.length - 1; s >= 0; s--) (c = n[s]) && (t = (i < 3 ? c(t) : i > 3 ? c(e, r, t) : c(e, r)) || t);
|
|
253
|
-
return i > 3 && t && Object.defineProperty(e, r, t), t;
|
|
254
|
-
};
|
|
255
|
-
let p = class extends b {
|
|
256
|
-
constructor() {
|
|
257
|
-
super(), this.unsubscribe = [], this.remoteFeatures = a.state.remoteFeatures, this.unsubscribe.push(a.subscribeKey("remoteFeatures", (e) => this.remoteFeatures = e));
|
|
258
|
-
}
|
|
259
|
-
disconnectedCallback() {
|
|
260
|
-
this.unsubscribe.forEach((e) => e());
|
|
261
|
-
}
|
|
262
|
-
render() {
|
|
263
|
-
var t;
|
|
264
|
-
const { termsConditionsUrl: e, privacyPolicyUrl: r } = a.state, o = (t = a.state.features) == null ? void 0 : t.legalCheckbox;
|
|
265
|
-
return !e && !r || o ? l`
|
|
266
|
-
<wui-flex flexDirection="column"> ${this.reownBrandingTemplate(!0)} </wui-flex>
|
|
267
|
-
` : l`
|
|
268
|
-
<wui-flex flexDirection="column">
|
|
269
|
-
<wui-flex .padding=${["m", "s", "s", "s"]} justifyContent="center">
|
|
270
|
-
<wui-text color="fg-250" variant="small-400" align="center">
|
|
271
|
-
By connecting your wallet, you agree to our <br />
|
|
272
|
-
${this.termsTemplate()} ${this.andTemplate()} ${this.privacyTemplate()}
|
|
273
|
-
</wui-text>
|
|
274
|
-
</wui-flex>
|
|
275
|
-
${this.reownBrandingTemplate()}
|
|
276
|
-
</wui-flex>
|
|
277
|
-
`;
|
|
278
|
-
}
|
|
279
|
-
andTemplate() {
|
|
280
|
-
const { termsConditionsUrl: e, privacyPolicyUrl: r } = a.state;
|
|
281
|
-
return e && r ? "and" : "";
|
|
282
|
-
}
|
|
283
|
-
termsTemplate() {
|
|
284
|
-
const { termsConditionsUrl: e } = a.state;
|
|
285
|
-
return e ? l`<a href=${e}>Terms of Service</a>` : null;
|
|
286
|
-
}
|
|
287
|
-
privacyTemplate() {
|
|
288
|
-
const { privacyPolicyUrl: e } = a.state;
|
|
289
|
-
return e ? l`<a href=${e}>Privacy Policy</a>` : null;
|
|
290
|
-
}
|
|
291
|
-
reownBrandingTemplate(e = !1) {
|
|
292
|
-
var r;
|
|
293
|
-
return (r = this.remoteFeatures) != null && r.reownBranding ? e ? l`<wui-ux-by-reown class="branding-only"></wui-ux-by-reown>` : l`<wui-ux-by-reown></wui-ux-by-reown>` : null;
|
|
294
|
-
}
|
|
295
|
-
};
|
|
296
|
-
p.styles = [D];
|
|
297
|
-
C([
|
|
298
|
-
y()
|
|
299
|
-
], p.prototype, "remoteFeatures", void 0);
|
|
300
|
-
p = C([
|
|
301
|
-
w("w3m-legal-footer")
|
|
302
|
-
], p);
|
|
303
|
-
export {
|
|
304
|
-
x as O
|
|
305
|
-
};
|
package/dist/index-CmWdvIFT.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { cE as d, cH as u, cL as p, cF as m, cG as f } from "./index-BJ7cbG3N.js";
|
|
2
|
-
import { n as h, c as g } from "./if-defined-CNte9B3N.js";
|
|
3
|
-
const v = d`
|
|
4
|
-
:host {
|
|
5
|
-
display: block;
|
|
6
|
-
width: var(--local-width);
|
|
7
|
-
height: var(--local-height);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
img {
|
|
11
|
-
display: block;
|
|
12
|
-
width: 100%;
|
|
13
|
-
height: 100%;
|
|
14
|
-
object-fit: cover;
|
|
15
|
-
object-position: center center;
|
|
16
|
-
border-radius: inherit;
|
|
17
|
-
}
|
|
18
|
-
`;
|
|
19
|
-
var a = function(s, t, r, o) {
|
|
20
|
-
var c = arguments.length, e = c < 3 ? t : o === null ? o = Object.getOwnPropertyDescriptor(t, r) : o, n;
|
|
21
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") e = Reflect.decorate(s, t, r, o);
|
|
22
|
-
else for (var l = s.length - 1; l >= 0; l--) (n = s[l]) && (e = (c < 3 ? n(e) : c > 3 ? n(t, r, e) : n(t, r)) || e);
|
|
23
|
-
return c > 3 && e && Object.defineProperty(t, r, e), e;
|
|
24
|
-
};
|
|
25
|
-
let i = class extends m {
|
|
26
|
-
constructor() {
|
|
27
|
-
super(...arguments), this.src = "./path/to/image.jpg", this.alt = "Image", this.size = void 0;
|
|
28
|
-
}
|
|
29
|
-
render() {
|
|
30
|
-
return this.style.cssText = `
|
|
31
|
-
--local-width: ${this.size ? `var(--wui-icon-size-${this.size});` : "100%"};
|
|
32
|
-
--local-height: ${this.size ? `var(--wui-icon-size-${this.size});` : "100%"};
|
|
33
|
-
`, f`<img src=${this.src} alt=${this.alt} @error=${this.handleImageError} />`;
|
|
34
|
-
}
|
|
35
|
-
handleImageError() {
|
|
36
|
-
this.dispatchEvent(new CustomEvent("onLoadError", { bubbles: !0, composed: !0 }));
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
i.styles = [u, p, v];
|
|
40
|
-
a([
|
|
41
|
-
h()
|
|
42
|
-
], i.prototype, "src", void 0);
|
|
43
|
-
a([
|
|
44
|
-
h()
|
|
45
|
-
], i.prototype, "alt", void 0);
|
|
46
|
-
a([
|
|
47
|
-
h()
|
|
48
|
-
], i.prototype, "size", void 0);
|
|
49
|
-
i = a([
|
|
50
|
-
g("wui-image")
|
|
51
|
-
], i);
|
package/dist/index-D2AMA8Bu.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { cE as u, cH as p, cI as b, cL as f, cF as h, cG as v } from "./index-BJ7cbG3N.js";
|
|
2
|
-
import { n as d, c as m } from "./if-defined-CNte9B3N.js";
|
|
3
|
-
const w = u`
|
|
4
|
-
button {
|
|
5
|
-
border-radius: var(--local-border-radius);
|
|
6
|
-
color: var(--wui-color-fg-100);
|
|
7
|
-
padding: var(--local-padding);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@media (max-width: 700px) {
|
|
11
|
-
button {
|
|
12
|
-
padding: var(--wui-spacing-s);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
button > wui-icon {
|
|
17
|
-
pointer-events: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
button:disabled > wui-icon {
|
|
21
|
-
color: var(--wui-color-bg-300) !important;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
button:disabled {
|
|
25
|
-
background-color: transparent;
|
|
26
|
-
}
|
|
27
|
-
`;
|
|
28
|
-
var n = function(r, o, e, s) {
|
|
29
|
-
var c = arguments.length, i = c < 3 ? o : s === null ? s = Object.getOwnPropertyDescriptor(o, e) : s, a;
|
|
30
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") i = Reflect.decorate(r, o, e, s);
|
|
31
|
-
else for (var l = r.length - 1; l >= 0; l--) (a = r[l]) && (i = (c < 3 ? a(i) : c > 3 ? a(o, e, i) : a(o, e)) || i);
|
|
32
|
-
return c > 3 && i && Object.defineProperty(o, e, i), i;
|
|
33
|
-
};
|
|
34
|
-
let t = class extends h {
|
|
35
|
-
constructor() {
|
|
36
|
-
super(...arguments), this.size = "md", this.disabled = !1, this.icon = "copy", this.iconColor = "inherit";
|
|
37
|
-
}
|
|
38
|
-
render() {
|
|
39
|
-
const o = this.size === "lg" ? "--wui-border-radius-xs" : "--wui-border-radius-xxs", e = this.size === "lg" ? "--wui-spacing-1xs" : "--wui-spacing-2xs";
|
|
40
|
-
return this.style.cssText = `
|
|
41
|
-
--local-border-radius: var(${o});
|
|
42
|
-
--local-padding: var(${e});
|
|
43
|
-
`, v`
|
|
44
|
-
<button ?disabled=${this.disabled}>
|
|
45
|
-
<wui-icon color=${this.iconColor} size=${this.size} name=${this.icon}></wui-icon>
|
|
46
|
-
</button>
|
|
47
|
-
`;
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
t.styles = [p, b, f, w];
|
|
51
|
-
n([
|
|
52
|
-
d()
|
|
53
|
-
], t.prototype, "size", void 0);
|
|
54
|
-
n([
|
|
55
|
-
d({ type: Boolean })
|
|
56
|
-
], t.prototype, "disabled", void 0);
|
|
57
|
-
n([
|
|
58
|
-
d()
|
|
59
|
-
], t.prototype, "icon", void 0);
|
|
60
|
-
n([
|
|
61
|
-
d()
|
|
62
|
-
], t.prototype, "iconColor", void 0);
|
|
63
|
-
t = n([
|
|
64
|
-
m("wui-icon-link")
|
|
65
|
-
], t);
|
package/dist/index-DAUM8CO4.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { cE as c, cH as h, cF as l, cG as f } from "./index-BJ7cbG3N.js";
|
|
2
|
-
import { n as m, c as p } from "./if-defined-CNte9B3N.js";
|
|
3
|
-
const v = c`
|
|
4
|
-
:host {
|
|
5
|
-
display: block;
|
|
6
|
-
width: var(--wui-box-size-md);
|
|
7
|
-
height: var(--wui-box-size-md);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
svg {
|
|
11
|
-
width: var(--wui-box-size-md);
|
|
12
|
-
height: var(--wui-box-size-md);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
rect {
|
|
16
|
-
fill: none;
|
|
17
|
-
stroke: var(--wui-color-accent-100);
|
|
18
|
-
stroke-width: 4px;
|
|
19
|
-
stroke-linecap: round;
|
|
20
|
-
animation: dash 1s linear infinite;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@keyframes dash {
|
|
24
|
-
to {
|
|
25
|
-
stroke-dashoffset: 0px;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
`;
|
|
29
|
-
var u = function(o, t, r, s) {
|
|
30
|
-
var i = arguments.length, e = i < 3 ? t : s === null ? s = Object.getOwnPropertyDescriptor(t, r) : s, a;
|
|
31
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") e = Reflect.decorate(o, t, r, s);
|
|
32
|
-
else for (var d = o.length - 1; d >= 0; d--) (a = o[d]) && (e = (i < 3 ? a(e) : i > 3 ? a(t, r, e) : a(t, r)) || e);
|
|
33
|
-
return i > 3 && e && Object.defineProperty(t, r, e), e;
|
|
34
|
-
};
|
|
35
|
-
let n = class extends l {
|
|
36
|
-
constructor() {
|
|
37
|
-
super(...arguments), this.radius = 36;
|
|
38
|
-
}
|
|
39
|
-
render() {
|
|
40
|
-
return this.svgLoaderTemplate();
|
|
41
|
-
}
|
|
42
|
-
svgLoaderTemplate() {
|
|
43
|
-
const t = this.radius > 50 ? 50 : this.radius, s = 36 - t, i = 116 + s, e = 245 + s, a = 360 + s * 1.75;
|
|
44
|
-
return f`
|
|
45
|
-
<svg viewBox="0 0 110 110" width="110" height="110">
|
|
46
|
-
<rect
|
|
47
|
-
x="2"
|
|
48
|
-
y="2"
|
|
49
|
-
width="106"
|
|
50
|
-
height="106"
|
|
51
|
-
rx=${t}
|
|
52
|
-
stroke-dasharray="${i} ${e}"
|
|
53
|
-
stroke-dashoffset=${a}
|
|
54
|
-
/>
|
|
55
|
-
</svg>
|
|
56
|
-
`;
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
n.styles = [h, v];
|
|
60
|
-
u([
|
|
61
|
-
m({ type: Number })
|
|
62
|
-
], n.prototype, "radius", void 0);
|
|
63
|
-
n = u([
|
|
64
|
-
p("wui-loading-thumbnail")
|
|
65
|
-
], n);
|
package/dist/index-DGjZW6uR.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { cE as d, cH as v, cF as g, cG as w } from "./index-BJ7cbG3N.js";
|
|
2
|
-
import { n as l, c as h } from "./if-defined-CNte9B3N.js";
|
|
3
|
-
const p = d`
|
|
4
|
-
:host {
|
|
5
|
-
display: flex;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
height: var(--wui-spacing-m);
|
|
9
|
-
padding: 0 var(--wui-spacing-3xs) !important;
|
|
10
|
-
border-radius: var(--wui-border-radius-5xs);
|
|
11
|
-
transition:
|
|
12
|
-
border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1),
|
|
13
|
-
background-color var(--wui-duration-lg) var(--wui-ease-out-power-1);
|
|
14
|
-
will-change: border-radius, background-color;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
:host > wui-text {
|
|
18
|
-
transform: translateY(5%);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
:host([data-variant='main']) {
|
|
22
|
-
background-color: var(--wui-color-accent-glass-015);
|
|
23
|
-
color: var(--wui-color-accent-100);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
:host([data-variant='shade']) {
|
|
27
|
-
background-color: var(--wui-color-gray-glass-010);
|
|
28
|
-
color: var(--wui-color-fg-200);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
:host([data-variant='success']) {
|
|
32
|
-
background-color: var(--wui-icon-box-bg-success-100);
|
|
33
|
-
color: var(--wui-color-success-100);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
:host([data-variant='error']) {
|
|
37
|
-
background-color: var(--wui-icon-box-bg-error-100);
|
|
38
|
-
color: var(--wui-color-error-100);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:host([data-size='lg']) {
|
|
42
|
-
padding: 11px 5px !important;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
:host([data-size='lg']) > wui-text {
|
|
46
|
-
transform: translateY(2%);
|
|
47
|
-
}
|
|
48
|
-
`;
|
|
49
|
-
var u = function(i, r, a, e) {
|
|
50
|
-
var s = arguments.length, t = s < 3 ? r : e === null ? e = Object.getOwnPropertyDescriptor(r, a) : e, n;
|
|
51
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(i, r, a, e);
|
|
52
|
-
else for (var c = i.length - 1; c >= 0; c--) (n = i[c]) && (t = (s < 3 ? n(t) : s > 3 ? n(r, a, t) : n(r, a)) || t);
|
|
53
|
-
return s > 3 && t && Object.defineProperty(r, a, t), t;
|
|
54
|
-
};
|
|
55
|
-
let o = class extends g {
|
|
56
|
-
constructor() {
|
|
57
|
-
super(...arguments), this.variant = "main", this.size = "lg";
|
|
58
|
-
}
|
|
59
|
-
render() {
|
|
60
|
-
this.dataset.variant = this.variant, this.dataset.size = this.size;
|
|
61
|
-
const r = this.size === "md" ? "mini-700" : "micro-700";
|
|
62
|
-
return w`
|
|
63
|
-
<wui-text data-variant=${this.variant} variant=${r} color="inherit">
|
|
64
|
-
<slot></slot>
|
|
65
|
-
</wui-text>
|
|
66
|
-
`;
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
o.styles = [v, p];
|
|
70
|
-
u([
|
|
71
|
-
l()
|
|
72
|
-
], o.prototype, "variant", void 0);
|
|
73
|
-
u([
|
|
74
|
-
l()
|
|
75
|
-
], o.prototype, "size", void 0);
|
|
76
|
-
o = u([
|
|
77
|
-
h("wui-tag")
|
|
78
|
-
], o);
|