@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,555 @@
|
|
|
1
|
+
import { cU as g, cX as f, d0 as u, cY as e, cF as P, cV as k, cW as A } from "./index-DeL88Lwc.js";
|
|
2
|
+
import { r as y, c as b, n as w } from "./index-DuTny38n.js";
|
|
3
|
+
import "./index-BDeO_csr.js";
|
|
4
|
+
import { H as x } from "./HelpersUtil-DHm6EVSE.js";
|
|
5
|
+
import { o as v } from "./if-defined-k21LutCn.js";
|
|
6
|
+
import "./index-Cg_o-i9X.js";
|
|
7
|
+
import "./index-Dsfuc4rB.js";
|
|
8
|
+
const I = g`
|
|
9
|
+
:host {
|
|
10
|
+
display: block;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
div.container {
|
|
14
|
+
position: absolute;
|
|
15
|
+
bottom: 0;
|
|
16
|
+
left: 0;
|
|
17
|
+
right: 0;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
height: auto;
|
|
20
|
+
display: block;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
div.container[status='hide'] {
|
|
24
|
+
animation: fade-out;
|
|
25
|
+
animation-duration: var(--apkt-duration-dynamic);
|
|
26
|
+
animation-timing-function: ${({ easings: t }) => t["ease-out-power-2"]};
|
|
27
|
+
animation-fill-mode: both;
|
|
28
|
+
animation-delay: 0s;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
div.container[status='show'] {
|
|
32
|
+
animation: fade-in;
|
|
33
|
+
animation-duration: var(--apkt-duration-dynamic);
|
|
34
|
+
animation-timing-function: ${({ easings: t }) => t["ease-out-power-2"]};
|
|
35
|
+
animation-fill-mode: both;
|
|
36
|
+
animation-delay: var(--apkt-duration-dynamic);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@keyframes fade-in {
|
|
40
|
+
from {
|
|
41
|
+
opacity: 0;
|
|
42
|
+
filter: blur(6px);
|
|
43
|
+
}
|
|
44
|
+
to {
|
|
45
|
+
opacity: 1;
|
|
46
|
+
filter: blur(0px);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@keyframes fade-out {
|
|
51
|
+
from {
|
|
52
|
+
opacity: 1;
|
|
53
|
+
filter: blur(0px);
|
|
54
|
+
}
|
|
55
|
+
to {
|
|
56
|
+
opacity: 0;
|
|
57
|
+
filter: blur(6px);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
`;
|
|
61
|
+
var $ = function(t, i, n, r) {
|
|
62
|
+
var o = arguments.length, a = o < 3 ? i : r === null ? r = Object.getOwnPropertyDescriptor(i, n) : r, s;
|
|
63
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(t, i, n, r);
|
|
64
|
+
else for (var c = t.length - 1; c >= 0; c--) (s = t[c]) && (a = (o < 3 ? s(a) : o > 3 ? s(i, n, a) : s(i, n)) || a);
|
|
65
|
+
return o > 3 && a && Object.defineProperty(i, n, a), a;
|
|
66
|
+
};
|
|
67
|
+
let p = class extends f {
|
|
68
|
+
constructor() {
|
|
69
|
+
super(...arguments), this.resizeObserver = void 0, this.unsubscribe = [], this.status = "hide", this.view = u.state.view;
|
|
70
|
+
}
|
|
71
|
+
firstUpdated() {
|
|
72
|
+
this.status = x.hasFooter() ? "show" : "hide", this.unsubscribe.push(u.subscribeKey("view", (i) => {
|
|
73
|
+
this.view = i, this.status = x.hasFooter() ? "show" : "hide", this.status === "hide" && document.documentElement.style.setProperty("--apkt-footer-height", "0px");
|
|
74
|
+
})), this.resizeObserver = new ResizeObserver((i) => {
|
|
75
|
+
for (const n of i)
|
|
76
|
+
if (n.target === this.getWrapper()) {
|
|
77
|
+
const r = `${n.contentRect.height}px`;
|
|
78
|
+
document.documentElement.style.setProperty("--apkt-footer-height", r);
|
|
79
|
+
}
|
|
80
|
+
}), this.resizeObserver.observe(this.getWrapper());
|
|
81
|
+
}
|
|
82
|
+
render() {
|
|
83
|
+
return e`
|
|
84
|
+
<div class="container" status=${this.status}>${this.templatePageContainer()}</div>
|
|
85
|
+
`;
|
|
86
|
+
}
|
|
87
|
+
templatePageContainer() {
|
|
88
|
+
return x.hasFooter() ? e` ${this.templateFooter()}` : null;
|
|
89
|
+
}
|
|
90
|
+
templateFooter() {
|
|
91
|
+
switch (this.view) {
|
|
92
|
+
case "Networks":
|
|
93
|
+
return this.templateNetworksFooter();
|
|
94
|
+
case "Connect":
|
|
95
|
+
case "ConnectWallets":
|
|
96
|
+
case "OnRampFiatSelect":
|
|
97
|
+
case "OnRampTokenSelect":
|
|
98
|
+
return e`<w3m-legal-footer></w3m-legal-footer>`;
|
|
99
|
+
case "OnRampProviders":
|
|
100
|
+
return e`<w3m-onramp-providers-footer></w3m-onramp-providers-footer>`;
|
|
101
|
+
default:
|
|
102
|
+
return null;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
templateNetworksFooter() {
|
|
106
|
+
return e` <wui-flex
|
|
107
|
+
class="footer-in"
|
|
108
|
+
padding="3"
|
|
109
|
+
flexDirection="column"
|
|
110
|
+
gap="3"
|
|
111
|
+
alignItems="center"
|
|
112
|
+
>
|
|
113
|
+
<wui-text variant="md-regular" color="secondary" align="center">
|
|
114
|
+
Your connected wallet may not support some of the networks available for this dApp
|
|
115
|
+
</wui-text>
|
|
116
|
+
<wui-link @click=${this.onNetworkHelp.bind(this)}>
|
|
117
|
+
<wui-icon size="sm" color="accent-primary" slot="iconLeft" name="helpCircle"></wui-icon>
|
|
118
|
+
What is a network
|
|
119
|
+
</wui-link>
|
|
120
|
+
</wui-flex>`;
|
|
121
|
+
}
|
|
122
|
+
onNetworkHelp() {
|
|
123
|
+
P.sendEvent({ type: "track", event: "CLICK_NETWORK_HELP" }), u.push("WhatIsANetwork");
|
|
124
|
+
}
|
|
125
|
+
getWrapper() {
|
|
126
|
+
var i;
|
|
127
|
+
return (i = this.shadowRoot) == null ? void 0 : i.querySelector("div.container");
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
p.styles = [I];
|
|
131
|
+
$([
|
|
132
|
+
y()
|
|
133
|
+
], p.prototype, "status", void 0);
|
|
134
|
+
$([
|
|
135
|
+
y()
|
|
136
|
+
], p.prototype, "view", void 0);
|
|
137
|
+
p = $([
|
|
138
|
+
b("w3m-footer")
|
|
139
|
+
], p);
|
|
140
|
+
const O = g`
|
|
141
|
+
:host {
|
|
142
|
+
display: block;
|
|
143
|
+
width: inherit;
|
|
144
|
+
}
|
|
145
|
+
`;
|
|
146
|
+
var W = function(t, i, n, r) {
|
|
147
|
+
var o = arguments.length, a = o < 3 ? i : r === null ? r = Object.getOwnPropertyDescriptor(i, n) : r, s;
|
|
148
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(t, i, n, r);
|
|
149
|
+
else for (var c = t.length - 1; c >= 0; c--) (s = t[c]) && (a = (o < 3 ? s(a) : o > 3 ? s(i, n, a) : s(i, n)) || a);
|
|
150
|
+
return o > 3 && a && Object.defineProperty(i, n, a), a;
|
|
151
|
+
};
|
|
152
|
+
let d = class extends f {
|
|
153
|
+
constructor() {
|
|
154
|
+
super(), this.unsubscribe = [], this.viewState = u.state.view, this.history = u.state.history.join(","), this.unsubscribe.push(u.subscribeKey("view", () => {
|
|
155
|
+
this.history = u.state.history.join(","), document.documentElement.style.setProperty("--apkt-duration-dynamic", "var(--apkt-durations-lg)");
|
|
156
|
+
}));
|
|
157
|
+
}
|
|
158
|
+
disconnectedCallback() {
|
|
159
|
+
this.unsubscribe.forEach((i) => i()), document.documentElement.style.setProperty("--apkt-duration-dynamic", "0s");
|
|
160
|
+
}
|
|
161
|
+
render() {
|
|
162
|
+
return e`${this.templatePageContainer()}`;
|
|
163
|
+
}
|
|
164
|
+
templatePageContainer() {
|
|
165
|
+
return e`<w3m-router-container
|
|
166
|
+
history=${this.history}
|
|
167
|
+
.setView=${() => {
|
|
168
|
+
this.viewState = u.state.view;
|
|
169
|
+
}}
|
|
170
|
+
>
|
|
171
|
+
${this.viewTemplate(this.viewState)}
|
|
172
|
+
</w3m-router-container>`;
|
|
173
|
+
}
|
|
174
|
+
viewTemplate(i) {
|
|
175
|
+
switch (i) {
|
|
176
|
+
case "AccountSettings":
|
|
177
|
+
return e`<w3m-account-settings-view></w3m-account-settings-view>`;
|
|
178
|
+
case "Account":
|
|
179
|
+
return e`<w3m-account-view></w3m-account-view>`;
|
|
180
|
+
case "AllWallets":
|
|
181
|
+
return e`<w3m-all-wallets-view></w3m-all-wallets-view>`;
|
|
182
|
+
case "ApproveTransaction":
|
|
183
|
+
return e`<w3m-approve-transaction-view></w3m-approve-transaction-view>`;
|
|
184
|
+
case "BuyInProgress":
|
|
185
|
+
return e`<w3m-buy-in-progress-view></w3m-buy-in-progress-view>`;
|
|
186
|
+
case "ChooseAccountName":
|
|
187
|
+
return e`<w3m-choose-account-name-view></w3m-choose-account-name-view>`;
|
|
188
|
+
case "Connect":
|
|
189
|
+
return e`<w3m-connect-view></w3m-connect-view>`;
|
|
190
|
+
case "Create":
|
|
191
|
+
return e`<w3m-connect-view walletGuide="explore"></w3m-connect-view>`;
|
|
192
|
+
case "ConnectingWalletConnect":
|
|
193
|
+
return e`<w3m-connecting-wc-view></w3m-connecting-wc-view>`;
|
|
194
|
+
case "ConnectingWalletConnectBasic":
|
|
195
|
+
return e`<w3m-connecting-wc-basic-view></w3m-connecting-wc-basic-view>`;
|
|
196
|
+
case "ConnectingExternal":
|
|
197
|
+
return e`<w3m-connecting-external-view></w3m-connecting-external-view>`;
|
|
198
|
+
case "ConnectingSiwe":
|
|
199
|
+
return e`<w3m-connecting-siwe-view></w3m-connecting-siwe-view>`;
|
|
200
|
+
case "ConnectWallets":
|
|
201
|
+
return e`<w3m-connect-wallets-view></w3m-connect-wallets-view>`;
|
|
202
|
+
case "ConnectSocials":
|
|
203
|
+
return e`<w3m-connect-socials-view></w3m-connect-socials-view>`;
|
|
204
|
+
case "ConnectingSocial":
|
|
205
|
+
return e`<w3m-connecting-social-view></w3m-connecting-social-view>`;
|
|
206
|
+
case "DataCapture":
|
|
207
|
+
return e`<w3m-data-capture-view></w3m-data-capture-view>`;
|
|
208
|
+
case "DataCaptureOtpConfirm":
|
|
209
|
+
return e`<w3m-data-capture-otp-confirm-view></w3m-data-capture-otp-confirm-view>`;
|
|
210
|
+
case "Downloads":
|
|
211
|
+
return e`<w3m-downloads-view></w3m-downloads-view>`;
|
|
212
|
+
case "EmailLogin":
|
|
213
|
+
return e`<w3m-email-login-view></w3m-email-login-view>`;
|
|
214
|
+
case "EmailVerifyOtp":
|
|
215
|
+
return e`<w3m-email-verify-otp-view></w3m-email-verify-otp-view>`;
|
|
216
|
+
case "EmailVerifyDevice":
|
|
217
|
+
return e`<w3m-email-verify-device-view></w3m-email-verify-device-view>`;
|
|
218
|
+
case "GetWallet":
|
|
219
|
+
return e`<w3m-get-wallet-view></w3m-get-wallet-view>`;
|
|
220
|
+
case "Networks":
|
|
221
|
+
return e`<w3m-networks-view></w3m-networks-view>`;
|
|
222
|
+
case "SwitchNetwork":
|
|
223
|
+
return e`<w3m-network-switch-view></w3m-network-switch-view>`;
|
|
224
|
+
case "ProfileWallets":
|
|
225
|
+
return e`<w3m-profile-wallets-view></w3m-profile-wallets-view>`;
|
|
226
|
+
case "Transactions":
|
|
227
|
+
return e`<w3m-transactions-view></w3m-transactions-view>`;
|
|
228
|
+
case "OnRampProviders":
|
|
229
|
+
return e`<w3m-onramp-providers-view></w3m-onramp-providers-view>`;
|
|
230
|
+
case "OnRampTokenSelect":
|
|
231
|
+
return e`<w3m-onramp-token-select-view></w3m-onramp-token-select-view>`;
|
|
232
|
+
case "OnRampFiatSelect":
|
|
233
|
+
return e`<w3m-onramp-fiat-select-view></w3m-onramp-fiat-select-view>`;
|
|
234
|
+
case "UpgradeEmailWallet":
|
|
235
|
+
return e`<w3m-upgrade-wallet-view></w3m-upgrade-wallet-view>`;
|
|
236
|
+
case "UpdateEmailWallet":
|
|
237
|
+
return e`<w3m-update-email-wallet-view></w3m-update-email-wallet-view>`;
|
|
238
|
+
case "UpdateEmailPrimaryOtp":
|
|
239
|
+
return e`<w3m-update-email-primary-otp-view></w3m-update-email-primary-otp-view>`;
|
|
240
|
+
case "UpdateEmailSecondaryOtp":
|
|
241
|
+
return e`<w3m-update-email-secondary-otp-view></w3m-update-email-secondary-otp-view>`;
|
|
242
|
+
case "UnsupportedChain":
|
|
243
|
+
return e`<w3m-unsupported-chain-view></w3m-unsupported-chain-view>`;
|
|
244
|
+
case "Swap":
|
|
245
|
+
return e`<w3m-swap-view></w3m-swap-view>`;
|
|
246
|
+
case "SwapSelectToken":
|
|
247
|
+
return e`<w3m-swap-select-token-view></w3m-swap-select-token-view>`;
|
|
248
|
+
case "SwapPreview":
|
|
249
|
+
return e`<w3m-swap-preview-view></w3m-swap-preview-view>`;
|
|
250
|
+
case "WalletSend":
|
|
251
|
+
return e`<w3m-wallet-send-view></w3m-wallet-send-view>`;
|
|
252
|
+
case "WalletSendSelectToken":
|
|
253
|
+
return e`<w3m-wallet-send-select-token-view></w3m-wallet-send-select-token-view>`;
|
|
254
|
+
case "WalletSendPreview":
|
|
255
|
+
return e`<w3m-wallet-send-preview-view></w3m-wallet-send-preview-view>`;
|
|
256
|
+
case "WalletSendConfirmed":
|
|
257
|
+
return e`<w3m-send-confirmed-view></w3m-send-confirmed-view>`;
|
|
258
|
+
case "WhatIsABuy":
|
|
259
|
+
return e`<w3m-what-is-a-buy-view></w3m-what-is-a-buy-view>`;
|
|
260
|
+
case "WalletReceive":
|
|
261
|
+
return e`<w3m-wallet-receive-view></w3m-wallet-receive-view>`;
|
|
262
|
+
case "WalletCompatibleNetworks":
|
|
263
|
+
return e`<w3m-wallet-compatible-networks-view></w3m-wallet-compatible-networks-view>`;
|
|
264
|
+
case "WhatIsAWallet":
|
|
265
|
+
return e`<w3m-what-is-a-wallet-view></w3m-what-is-a-wallet-view>`;
|
|
266
|
+
case "ConnectingMultiChain":
|
|
267
|
+
return e`<w3m-connecting-multi-chain-view></w3m-connecting-multi-chain-view>`;
|
|
268
|
+
case "WhatIsANetwork":
|
|
269
|
+
return e`<w3m-what-is-a-network-view></w3m-what-is-a-network-view>`;
|
|
270
|
+
case "ConnectingFarcaster":
|
|
271
|
+
return e`<w3m-connecting-farcaster-view></w3m-connecting-farcaster-view>`;
|
|
272
|
+
case "SwitchActiveChain":
|
|
273
|
+
return e`<w3m-switch-active-chain-view></w3m-switch-active-chain-view>`;
|
|
274
|
+
case "RegisterAccountName":
|
|
275
|
+
return e`<w3m-register-account-name-view></w3m-register-account-name-view>`;
|
|
276
|
+
case "RegisterAccountNameSuccess":
|
|
277
|
+
return e`<w3m-register-account-name-success-view></w3m-register-account-name-success-view>`;
|
|
278
|
+
case "SmartSessionCreated":
|
|
279
|
+
return e`<w3m-smart-session-created-view></w3m-smart-session-created-view>`;
|
|
280
|
+
case "SmartSessionList":
|
|
281
|
+
return e`<w3m-smart-session-list-view></w3m-smart-session-list-view>`;
|
|
282
|
+
case "SIWXSignMessage":
|
|
283
|
+
return e`<w3m-siwx-sign-message-view></w3m-siwx-sign-message-view>`;
|
|
284
|
+
case "Pay":
|
|
285
|
+
return e`<w3m-pay-view></w3m-pay-view>`;
|
|
286
|
+
case "PayLoading":
|
|
287
|
+
return e`<w3m-pay-loading-view></w3m-pay-loading-view>`;
|
|
288
|
+
case "FundWallet":
|
|
289
|
+
return e`<w3m-fund-wallet-view></w3m-fund-wallet-view>`;
|
|
290
|
+
case "PayWithExchange":
|
|
291
|
+
return e`<w3m-deposit-from-exchange-view></w3m-deposit-from-exchange-view>`;
|
|
292
|
+
case "PayWithExchangeSelectAsset":
|
|
293
|
+
return e`<w3m-deposit-from-exchange-select-asset-view></w3m-deposit-from-exchange-select-asset-view>`;
|
|
294
|
+
case "UsageExceeded":
|
|
295
|
+
return e`<w3m-usage-exceeded-view></w3m-usage-exceeded-view>`;
|
|
296
|
+
case "SmartAccountSettings":
|
|
297
|
+
return e`<w3m-smart-account-settings-view></w3m-smart-account-settings-view>`;
|
|
298
|
+
default:
|
|
299
|
+
return e`<w3m-connect-view></w3m-connect-view>`;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
d.styles = [O];
|
|
304
|
+
W([
|
|
305
|
+
y()
|
|
306
|
+
], d.prototype, "viewState", void 0);
|
|
307
|
+
W([
|
|
308
|
+
y()
|
|
309
|
+
], d.prototype, "history", void 0);
|
|
310
|
+
d = W([
|
|
311
|
+
b("w3m-router")
|
|
312
|
+
], d);
|
|
313
|
+
const R = g`
|
|
314
|
+
:host {
|
|
315
|
+
position: relative;
|
|
316
|
+
border-radius: ${({ borderRadius: t }) => t[2]};
|
|
317
|
+
width: 40px;
|
|
318
|
+
height: 40px;
|
|
319
|
+
overflow: hidden;
|
|
320
|
+
background: ${({ tokens: t }) => t.theme.foregroundPrimary};
|
|
321
|
+
display: flex;
|
|
322
|
+
justify-content: center;
|
|
323
|
+
align-items: center;
|
|
324
|
+
flex-wrap: wrap;
|
|
325
|
+
column-gap: ${({ spacing: t }) => t[1]};
|
|
326
|
+
padding: ${({ spacing: t }) => t[1]};
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
:host > wui-wallet-image {
|
|
330
|
+
width: 14px;
|
|
331
|
+
height: 14px;
|
|
332
|
+
border-radius: 2px;
|
|
333
|
+
}
|
|
334
|
+
`;
|
|
335
|
+
var C = function(t, i, n, r) {
|
|
336
|
+
var o = arguments.length, a = o < 3 ? i : r === null ? r = Object.getOwnPropertyDescriptor(i, n) : r, s;
|
|
337
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(t, i, n, r);
|
|
338
|
+
else for (var c = t.length - 1; c >= 0; c--) (s = t[c]) && (a = (o < 3 ? s(a) : o > 3 ? s(i, n, a) : s(i, n)) || a);
|
|
339
|
+
return o > 3 && a && Object.defineProperty(i, n, a), a;
|
|
340
|
+
};
|
|
341
|
+
const S = 4;
|
|
342
|
+
let h = class extends f {
|
|
343
|
+
constructor() {
|
|
344
|
+
super(...arguments), this.walletImages = [];
|
|
345
|
+
}
|
|
346
|
+
render() {
|
|
347
|
+
const i = this.walletImages.length < S;
|
|
348
|
+
return e`${this.walletImages.slice(0, S).map(({ src: n, walletName: r }) => e`
|
|
349
|
+
<wui-wallet-image
|
|
350
|
+
size="sm"
|
|
351
|
+
imageSrc=${n}
|
|
352
|
+
name=${v(r)}
|
|
353
|
+
></wui-wallet-image>
|
|
354
|
+
`)}
|
|
355
|
+
${i ? [...Array(S - this.walletImages.length)].map(() => e` <wui-wallet-image size="sm" name=""></wui-wallet-image>`) : null} `;
|
|
356
|
+
}
|
|
357
|
+
};
|
|
358
|
+
h.styles = [k, R];
|
|
359
|
+
C([
|
|
360
|
+
w({ type: Array })
|
|
361
|
+
], h.prototype, "walletImages", void 0);
|
|
362
|
+
h = C([
|
|
363
|
+
b("wui-all-wallets-image")
|
|
364
|
+
], h);
|
|
365
|
+
const E = g`
|
|
366
|
+
:host {
|
|
367
|
+
width: 100%;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
button {
|
|
371
|
+
column-gap: ${({ spacing: t }) => t[2]};
|
|
372
|
+
padding: ${({ spacing: t }) => t[3]};
|
|
373
|
+
width: 100%;
|
|
374
|
+
background-color: transparent;
|
|
375
|
+
border-radius: ${({ borderRadius: t }) => t[4]};
|
|
376
|
+
color: ${({ tokens: t }) => t.theme.textPrimary};
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
button > wui-wallet-image {
|
|
380
|
+
background: ${({ tokens: t }) => t.theme.foregroundSecondary};
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
button > wui-text:nth-child(2) {
|
|
384
|
+
display: flex;
|
|
385
|
+
flex: 1;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
button:hover:enabled {
|
|
389
|
+
background-color: ${({ tokens: t }) => t.theme.foregroundPrimary};
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
button[data-all-wallets='true'] {
|
|
393
|
+
background-color: ${({ tokens: t }) => t.theme.foregroundPrimary};
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
button[data-all-wallets='true']:hover:enabled {
|
|
397
|
+
background-color: ${({ tokens: t }) => t.theme.foregroundSecondary};
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
button:focus-visible:enabled {
|
|
401
|
+
background-color: ${({ tokens: t }) => t.theme.foregroundPrimary};
|
|
402
|
+
box-shadow: 0 0 0 4px ${({ tokens: t }) => t.core.foregroundAccent020};
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
button:disabled {
|
|
406
|
+
background-color: ${({ tokens: t }) => t.theme.foregroundPrimary};
|
|
407
|
+
opacity: 0.5;
|
|
408
|
+
cursor: not-allowed;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
button:disabled > wui-tag {
|
|
412
|
+
background-color: ${({ tokens: t }) => t.core.glass010};
|
|
413
|
+
color: ${({ tokens: t }) => t.theme.foregroundTertiary};
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
wui-flex.namespace-icon {
|
|
417
|
+
width: 16px;
|
|
418
|
+
height: 16px;
|
|
419
|
+
border-radius: ${({ borderRadius: t }) => t.round};
|
|
420
|
+
background-color: ${({ tokens: t }) => t.theme.foregroundSecondary};
|
|
421
|
+
box-shadow: 0 0 0 2px ${({ tokens: t }) => t.theme.backgroundPrimary};
|
|
422
|
+
transition: box-shadow var(--apkt-durations-lg) var(--apkt-easings-ease-out-power-2);
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
button:hover:enabled wui-flex.namespace-icon {
|
|
426
|
+
box-shadow: 0 0 0 2px ${({ tokens: t }) => t.theme.foregroundPrimary};
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
wui-flex.namespace-icon > wui-icon {
|
|
430
|
+
width: 10px;
|
|
431
|
+
height: 10px;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
wui-flex.namespace-icon:not(:first-child) {
|
|
435
|
+
margin-left: -4px;
|
|
436
|
+
}
|
|
437
|
+
`;
|
|
438
|
+
var m = function(t, i, n, r) {
|
|
439
|
+
var o = arguments.length, a = o < 3 ? i : r === null ? r = Object.getOwnPropertyDescriptor(i, n) : r, s;
|
|
440
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(t, i, n, r);
|
|
441
|
+
else for (var c = t.length - 1; c >= 0; c--) (s = t[c]) && (a = (o < 3 ? s(a) : o > 3 ? s(i, n, a) : s(i, n)) || a);
|
|
442
|
+
return o > 3 && a && Object.defineProperty(i, n, a), a;
|
|
443
|
+
};
|
|
444
|
+
const z = {
|
|
445
|
+
eip155: "ethereum",
|
|
446
|
+
solana: "solana",
|
|
447
|
+
bip122: "bitcoin",
|
|
448
|
+
polkadot: void 0,
|
|
449
|
+
cosmos: void 0,
|
|
450
|
+
sui: void 0,
|
|
451
|
+
stacks: void 0,
|
|
452
|
+
ton: "ton"
|
|
453
|
+
};
|
|
454
|
+
let l = class extends f {
|
|
455
|
+
constructor() {
|
|
456
|
+
super(...arguments), this.walletImages = [], this.imageSrc = "", this.name = "", this.size = "md", this.tabIdx = void 0, this.namespaces = [], this.disabled = !1, this.showAllWallets = !1, this.loading = !1, this.loadingSpinnerColor = "accent-100";
|
|
457
|
+
}
|
|
458
|
+
render() {
|
|
459
|
+
return this.dataset.size = this.size, e`
|
|
460
|
+
<button
|
|
461
|
+
?disabled=${this.disabled}
|
|
462
|
+
data-all-wallets=${this.showAllWallets}
|
|
463
|
+
tabindex=${v(this.tabIdx)}
|
|
464
|
+
>
|
|
465
|
+
${this.templateAllWallets()} ${this.templateWalletImage()}
|
|
466
|
+
<wui-flex flexDirection="column" justifyContent="center" alignItems="flex-start" gap="1">
|
|
467
|
+
<wui-text variant="lg-regular" color="inherit">${this.name}</wui-text>
|
|
468
|
+
${this.templateNamespaces()}
|
|
469
|
+
</wui-flex>
|
|
470
|
+
${this.templateStatus()}
|
|
471
|
+
<wui-icon name="chevronRight" size="lg" color="default"></wui-icon>
|
|
472
|
+
</button>
|
|
473
|
+
`;
|
|
474
|
+
}
|
|
475
|
+
templateNamespaces() {
|
|
476
|
+
var i;
|
|
477
|
+
return (i = this.namespaces) != null && i.length ? e`<wui-flex alignItems="center" gap="0">
|
|
478
|
+
${this.namespaces.map((n, r) => {
|
|
479
|
+
var o;
|
|
480
|
+
return e`<wui-flex
|
|
481
|
+
alignItems="center"
|
|
482
|
+
justifyContent="center"
|
|
483
|
+
zIndex=${(((o = this.namespaces) == null ? void 0 : o.length) ?? 0) * 2 - r}
|
|
484
|
+
class="namespace-icon"
|
|
485
|
+
>
|
|
486
|
+
<wui-icon
|
|
487
|
+
name=${v(z[n])}
|
|
488
|
+
size="sm"
|
|
489
|
+
color="default"
|
|
490
|
+
></wui-icon>
|
|
491
|
+
</wui-flex>`;
|
|
492
|
+
})}
|
|
493
|
+
</wui-flex>` : null;
|
|
494
|
+
}
|
|
495
|
+
templateAllWallets() {
|
|
496
|
+
return this.showAllWallets && this.imageSrc ? e` <wui-all-wallets-image .imageeSrc=${this.imageSrc}> </wui-all-wallets-image> ` : this.showAllWallets && this.walletIcon ? e` <wui-wallet-image .walletIcon=${this.walletIcon} size="sm"> </wui-wallet-image> ` : null;
|
|
497
|
+
}
|
|
498
|
+
templateWalletImage() {
|
|
499
|
+
return !this.showAllWallets && this.imageSrc ? e`<wui-wallet-image
|
|
500
|
+
size=${v(this.size === "sm" ? "sm" : "md")}
|
|
501
|
+
imageSrc=${this.imageSrc}
|
|
502
|
+
name=${this.name}
|
|
503
|
+
></wui-wallet-image>` : !this.showAllWallets && !this.imageSrc ? e`<wui-wallet-image size="sm" name=${this.name}></wui-wallet-image>` : null;
|
|
504
|
+
}
|
|
505
|
+
templateStatus() {
|
|
506
|
+
return this.loading ? e`<wui-loading-spinner size="lg" color="accent-primary"></wui-loading-spinner>` : this.tagLabel && this.tagVariant ? e`<wui-tag size="sm" variant=${this.tagVariant}>${this.tagLabel}</wui-tag>` : null;
|
|
507
|
+
}
|
|
508
|
+
};
|
|
509
|
+
l.styles = [k, A, E];
|
|
510
|
+
m([
|
|
511
|
+
w({ type: Array })
|
|
512
|
+
], l.prototype, "walletImages", void 0);
|
|
513
|
+
m([
|
|
514
|
+
w()
|
|
515
|
+
], l.prototype, "imageSrc", void 0);
|
|
516
|
+
m([
|
|
517
|
+
w()
|
|
518
|
+
], l.prototype, "name", void 0);
|
|
519
|
+
m([
|
|
520
|
+
w()
|
|
521
|
+
], l.prototype, "size", void 0);
|
|
522
|
+
m([
|
|
523
|
+
w()
|
|
524
|
+
], l.prototype, "tagLabel", void 0);
|
|
525
|
+
m([
|
|
526
|
+
w()
|
|
527
|
+
], l.prototype, "tagVariant", void 0);
|
|
528
|
+
m([
|
|
529
|
+
w()
|
|
530
|
+
], l.prototype, "walletIcon", void 0);
|
|
531
|
+
m([
|
|
532
|
+
w()
|
|
533
|
+
], l.prototype, "tabIdx", void 0);
|
|
534
|
+
m([
|
|
535
|
+
w({ type: Array })
|
|
536
|
+
], l.prototype, "namespaces", void 0);
|
|
537
|
+
m([
|
|
538
|
+
w({ type: Boolean })
|
|
539
|
+
], l.prototype, "disabled", void 0);
|
|
540
|
+
m([
|
|
541
|
+
w({ type: Boolean })
|
|
542
|
+
], l.prototype, "showAllWallets", void 0);
|
|
543
|
+
m([
|
|
544
|
+
w({ type: Boolean })
|
|
545
|
+
], l.prototype, "loading", void 0);
|
|
546
|
+
m([
|
|
547
|
+
w({ type: String })
|
|
548
|
+
], l.prototype, "loadingSpinnerColor", void 0);
|
|
549
|
+
l = m([
|
|
550
|
+
b("wui-list-wallet")
|
|
551
|
+
], l);
|
|
552
|
+
export {
|
|
553
|
+
d as W,
|
|
554
|
+
p as a
|
|
555
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { c_ as c, cV as m, cX as f, cY as d } from "./index-DeL88Lwc.js";
|
|
2
|
+
import { n as u, c as h } from "./index-DuTny38n.js";
|
|
3
|
+
import { o as v } from "./if-defined-k21LutCn.js";
|
|
4
|
+
import "./index-9vLw53Xl.js";
|
|
5
|
+
const b = c`
|
|
6
|
+
:host {
|
|
7
|
+
position: relative;
|
|
8
|
+
display: inline-block;
|
|
9
|
+
width: 100%;
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
12
|
+
var o = function(l, i, r, s) {
|
|
13
|
+
var a = arguments.length, e = a < 3 ? i : s === null ? s = Object.getOwnPropertyDescriptor(i, r) : s, n;
|
|
14
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") e = Reflect.decorate(l, i, r, s);
|
|
15
|
+
else for (var p = l.length - 1; p >= 0; p--) (n = l[p]) && (e = (a < 3 ? n(e) : a > 3 ? n(i, r, e) : n(i, r)) || e);
|
|
16
|
+
return a > 3 && e && Object.defineProperty(i, r, e), e;
|
|
17
|
+
};
|
|
18
|
+
let t = class extends f {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments), this.disabled = !1;
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
return d`
|
|
24
|
+
<wui-input-text
|
|
25
|
+
type="email"
|
|
26
|
+
placeholder="Email"
|
|
27
|
+
icon="mail"
|
|
28
|
+
size="lg"
|
|
29
|
+
.disabled=${this.disabled}
|
|
30
|
+
.value=${this.value}
|
|
31
|
+
data-testid="wui-email-input"
|
|
32
|
+
tabIdx=${v(this.tabIdx)}
|
|
33
|
+
></wui-input-text>
|
|
34
|
+
${this.templateError()}
|
|
35
|
+
`;
|
|
36
|
+
}
|
|
37
|
+
templateError() {
|
|
38
|
+
return this.errorMessage ? d`<wui-text variant="sm-regular" color="error">${this.errorMessage}</wui-text>` : null;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
t.styles = [m, b];
|
|
42
|
+
o([
|
|
43
|
+
u()
|
|
44
|
+
], t.prototype, "errorMessage", void 0);
|
|
45
|
+
o([
|
|
46
|
+
u({ type: Boolean })
|
|
47
|
+
], t.prototype, "disabled", void 0);
|
|
48
|
+
o([
|
|
49
|
+
u()
|
|
50
|
+
], t.prototype, "value", void 0);
|
|
51
|
+
o([
|
|
52
|
+
u()
|
|
53
|
+
], t.prototype, "tabIdx", void 0);
|
|
54
|
+
t = o([
|
|
55
|
+
h("wui-email-input")
|
|
56
|
+
], t);
|