@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
package/dist/socials-DQrHQajs.js
DELETED
|
@@ -1,574 +0,0 @@
|
|
|
1
|
-
import { cE as E, cF as L, dc as S, di as b, cJ as g, db as A, cG as c, d1 as C, du as F, d9 as D, cX as d, cK as j, cY as _, d8 as u, d6 as T, de as U, cZ as y, dv as q, cS as I, c$ as P } from "./index-BJ7cbG3N.js";
|
|
2
|
-
import { n as z, r as l, c as k, o as v } from "./if-defined-CNte9B3N.js";
|
|
3
|
-
import { O as R } from "./index-Cle_NnnS.js";
|
|
4
|
-
import { e as G } from "./index-BVdzXHpO.js";
|
|
5
|
-
import "./index-CKikVKe2.js";
|
|
6
|
-
import "./index-DAUM8CO4.js";
|
|
7
|
-
import "./index-Uw9cSw0q.js";
|
|
8
|
-
import "./index-BP4B9VUt.js";
|
|
9
|
-
import "./index-BdSIrl-R.js";
|
|
10
|
-
import "./index-C0kPDbg_.js";
|
|
11
|
-
const M = E`
|
|
12
|
-
:host {
|
|
13
|
-
margin-top: var(--wui-spacing-3xs);
|
|
14
|
-
}
|
|
15
|
-
wui-separator {
|
|
16
|
-
margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-xs)
|
|
17
|
-
calc(var(--wui-spacing-m) * -1);
|
|
18
|
-
width: calc(100% + var(--wui-spacing-s) * 2);
|
|
19
|
-
}
|
|
20
|
-
`;
|
|
21
|
-
var f = function(s, e, i, o) {
|
|
22
|
-
var n = arguments.length, t = n < 3 ? e : o === null ? o = Object.getOwnPropertyDescriptor(e, i) : o, r;
|
|
23
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(s, e, i, o);
|
|
24
|
-
else for (var a = s.length - 1; a >= 0; a--) (r = s[a]) && (t = (n < 3 ? r(t) : n > 3 ? r(e, i, t) : r(e, i)) || t);
|
|
25
|
-
return n > 3 && t && Object.defineProperty(e, i, t), t;
|
|
26
|
-
};
|
|
27
|
-
let h = class extends L {
|
|
28
|
-
constructor() {
|
|
29
|
-
super(), this.unsubscribe = [], this.tabIdx = void 0, this.connectors = S.state.connectors, this.authConnector = this.connectors.find((e) => e.type === "AUTH"), this.remoteFeatures = b.state.remoteFeatures, this.isPwaLoading = !1, this.unsubscribe.push(S.subscribeKey("connectors", (e) => {
|
|
30
|
-
this.connectors = e, this.authConnector = this.connectors.find((i) => i.type === "AUTH");
|
|
31
|
-
}), b.subscribeKey("remoteFeatures", (e) => this.remoteFeatures = e));
|
|
32
|
-
}
|
|
33
|
-
connectedCallback() {
|
|
34
|
-
super.connectedCallback(), this.handlePwaFrameLoad();
|
|
35
|
-
}
|
|
36
|
-
disconnectedCallback() {
|
|
37
|
-
this.unsubscribe.forEach((e) => e());
|
|
38
|
-
}
|
|
39
|
-
render() {
|
|
40
|
-
var t;
|
|
41
|
-
let e = ((t = this.remoteFeatures) == null ? void 0 : t.socials) || [];
|
|
42
|
-
const i = !!this.authConnector, o = e == null ? void 0 : e.length, n = g.state.view === "ConnectSocials";
|
|
43
|
-
return (!i || !o) && !n ? null : (n && !o && (e = A.DEFAULT_SOCIALS), c` <wui-flex flexDirection="column" gap="xs">
|
|
44
|
-
${e.map((r) => c`<wui-list-social
|
|
45
|
-
@click=${() => {
|
|
46
|
-
this.onSocialClick(r);
|
|
47
|
-
}}
|
|
48
|
-
data-testid=${`social-selector-${r}`}
|
|
49
|
-
name=${r}
|
|
50
|
-
logo=${r}
|
|
51
|
-
?disabled=${this.isPwaLoading}
|
|
52
|
-
></wui-list-social>`)}
|
|
53
|
-
</wui-flex>`);
|
|
54
|
-
}
|
|
55
|
-
async onSocialClick(e) {
|
|
56
|
-
e && await G(e);
|
|
57
|
-
}
|
|
58
|
-
async handlePwaFrameLoad() {
|
|
59
|
-
var e;
|
|
60
|
-
if (C.isPWA()) {
|
|
61
|
-
this.isPwaLoading = !0;
|
|
62
|
-
try {
|
|
63
|
-
((e = this.authConnector) == null ? void 0 : e.provider) instanceof F && await this.authConnector.provider.init();
|
|
64
|
-
} catch (i) {
|
|
65
|
-
D.open({
|
|
66
|
-
shortMessage: "Error loading embedded wallet in PWA",
|
|
67
|
-
longMessage: i.message
|
|
68
|
-
}, "error");
|
|
69
|
-
} finally {
|
|
70
|
-
this.isPwaLoading = !1;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
h.styles = M;
|
|
76
|
-
f([
|
|
77
|
-
z()
|
|
78
|
-
], h.prototype, "tabIdx", void 0);
|
|
79
|
-
f([
|
|
80
|
-
l()
|
|
81
|
-
], h.prototype, "connectors", void 0);
|
|
82
|
-
f([
|
|
83
|
-
l()
|
|
84
|
-
], h.prototype, "authConnector", void 0);
|
|
85
|
-
f([
|
|
86
|
-
l()
|
|
87
|
-
], h.prototype, "remoteFeatures", void 0);
|
|
88
|
-
f([
|
|
89
|
-
l()
|
|
90
|
-
], h.prototype, "isPwaLoading", void 0);
|
|
91
|
-
h = f([
|
|
92
|
-
k("w3m-social-login-list")
|
|
93
|
-
], h);
|
|
94
|
-
const N = E`
|
|
95
|
-
wui-flex {
|
|
96
|
-
max-height: clamp(360px, 540px, 80vh);
|
|
97
|
-
overflow: scroll;
|
|
98
|
-
scrollbar-width: none;
|
|
99
|
-
transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
|
|
100
|
-
will-change: opacity;
|
|
101
|
-
}
|
|
102
|
-
wui-flex::-webkit-scrollbar {
|
|
103
|
-
display: none;
|
|
104
|
-
}
|
|
105
|
-
wui-flex.disabled {
|
|
106
|
-
opacity: 0.3;
|
|
107
|
-
pointer-events: none;
|
|
108
|
-
user-select: none;
|
|
109
|
-
}
|
|
110
|
-
`;
|
|
111
|
-
var W = function(s, e, i, o) {
|
|
112
|
-
var n = arguments.length, t = n < 3 ? e : o === null ? o = Object.getOwnPropertyDescriptor(e, i) : o, r;
|
|
113
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(s, e, i, o);
|
|
114
|
-
else for (var a = s.length - 1; a >= 0; a--) (r = s[a]) && (t = (n < 3 ? r(t) : n > 3 ? r(e, i, t) : r(e, i)) || t);
|
|
115
|
-
return n > 3 && t && Object.defineProperty(e, i, t), t;
|
|
116
|
-
};
|
|
117
|
-
let $ = class extends L {
|
|
118
|
-
constructor() {
|
|
119
|
-
super(), this.unsubscribe = [], this.checked = R.state.isLegalCheckboxChecked, this.unsubscribe.push(R.subscribeKey("isLegalCheckboxChecked", (e) => {
|
|
120
|
-
this.checked = e;
|
|
121
|
-
}));
|
|
122
|
-
}
|
|
123
|
-
disconnectedCallback() {
|
|
124
|
-
this.unsubscribe.forEach((e) => e());
|
|
125
|
-
}
|
|
126
|
-
render() {
|
|
127
|
-
var O;
|
|
128
|
-
const { termsConditionsUrl: e, privacyPolicyUrl: i } = b.state, o = (O = b.state.features) == null ? void 0 : O.legalCheckbox, t = !!(e || i) && !!o, r = t && !this.checked, a = r ? -1 : void 0;
|
|
129
|
-
return c`
|
|
130
|
-
<w3m-legal-checkbox></w3m-legal-checkbox>
|
|
131
|
-
<wui-flex
|
|
132
|
-
flexDirection="column"
|
|
133
|
-
.padding=${t ? ["0", "s", "s", "s"] : "s"}
|
|
134
|
-
gap="xs"
|
|
135
|
-
class=${v(r ? "disabled" : void 0)}
|
|
136
|
-
>
|
|
137
|
-
<w3m-social-login-list tabIdx=${v(a)}></w3m-social-login-list>
|
|
138
|
-
</wui-flex>
|
|
139
|
-
<w3m-legal-footer></w3m-legal-footer>
|
|
140
|
-
`;
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
$.styles = N;
|
|
144
|
-
W([
|
|
145
|
-
l()
|
|
146
|
-
], $.prototype, "checked", void 0);
|
|
147
|
-
$ = W([
|
|
148
|
-
k("w3m-connect-socials-view")
|
|
149
|
-
], $);
|
|
150
|
-
const V = E`
|
|
151
|
-
wui-logo {
|
|
152
|
-
width: 80px;
|
|
153
|
-
height: 80px;
|
|
154
|
-
border-radius: var(--wui-border-radius-m);
|
|
155
|
-
}
|
|
156
|
-
@keyframes shake {
|
|
157
|
-
0% {
|
|
158
|
-
transform: translateX(0);
|
|
159
|
-
}
|
|
160
|
-
25% {
|
|
161
|
-
transform: translateX(3px);
|
|
162
|
-
}
|
|
163
|
-
50% {
|
|
164
|
-
transform: translateX(-3px);
|
|
165
|
-
}
|
|
166
|
-
75% {
|
|
167
|
-
transform: translateX(3px);
|
|
168
|
-
}
|
|
169
|
-
100% {
|
|
170
|
-
transform: translateX(0);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
wui-flex:first-child:not(:only-child) {
|
|
174
|
-
position: relative;
|
|
175
|
-
}
|
|
176
|
-
wui-loading-thumbnail {
|
|
177
|
-
position: absolute;
|
|
178
|
-
}
|
|
179
|
-
wui-icon-box {
|
|
180
|
-
position: absolute;
|
|
181
|
-
right: calc(var(--wui-spacing-3xs) * -1);
|
|
182
|
-
bottom: calc(var(--wui-spacing-3xs) * -1);
|
|
183
|
-
opacity: 0;
|
|
184
|
-
transform: scale(0.5);
|
|
185
|
-
transition: all var(--wui-ease-out-power-2) var(--wui-duration-lg);
|
|
186
|
-
}
|
|
187
|
-
wui-text[align='center'] {
|
|
188
|
-
width: 100%;
|
|
189
|
-
padding: 0px var(--wui-spacing-l);
|
|
190
|
-
}
|
|
191
|
-
[data-error='true'] wui-icon-box {
|
|
192
|
-
opacity: 1;
|
|
193
|
-
transform: scale(1);
|
|
194
|
-
}
|
|
195
|
-
[data-error='true'] > wui-flex:first-child {
|
|
196
|
-
animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
|
|
197
|
-
}
|
|
198
|
-
.capitalize {
|
|
199
|
-
text-transform: capitalize;
|
|
200
|
-
}
|
|
201
|
-
`;
|
|
202
|
-
var m = function(s, e, i, o) {
|
|
203
|
-
var n = arguments.length, t = n < 3 ? e : o === null ? o = Object.getOwnPropertyDescriptor(e, i) : o, r;
|
|
204
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(s, e, i, o);
|
|
205
|
-
else for (var a = s.length - 1; a >= 0; a--) (r = s[a]) && (t = (n < 3 ? r(t) : n > 3 ? r(e, i, t) : r(e, i)) || t);
|
|
206
|
-
return n > 3 && t && Object.defineProperty(e, i, t), t;
|
|
207
|
-
};
|
|
208
|
-
let p = class extends L {
|
|
209
|
-
constructor() {
|
|
210
|
-
super(), this.unsubscribe = [], this.socialProvider = d.state.socialProvider, this.socialWindow = d.state.socialWindow, this.error = !1, this.connecting = !1, this.message = "Connect in the provider window", this.authConnector = S.getAuthConnector(), this.handleSocialConnection = async (i) => {
|
|
211
|
-
var o;
|
|
212
|
-
if ((o = i.data) != null && o.resultUri)
|
|
213
|
-
if (i.origin === j.SECURE_SITE_ORIGIN) {
|
|
214
|
-
window.removeEventListener("message", this.handleSocialConnection, !1);
|
|
215
|
-
try {
|
|
216
|
-
if (this.authConnector && !this.connecting) {
|
|
217
|
-
this.socialWindow && (this.socialWindow.close(), d.setSocialWindow(void 0, _.state.activeChain)), this.connecting = !0, this.updateMessage();
|
|
218
|
-
const n = i.data.resultUri;
|
|
219
|
-
this.socialProvider && u.sendEvent({
|
|
220
|
-
type: "track",
|
|
221
|
-
event: "SOCIAL_LOGIN_REQUEST_USER_DATA",
|
|
222
|
-
properties: { provider: this.socialProvider }
|
|
223
|
-
}), await T.connectExternal({
|
|
224
|
-
id: this.authConnector.id,
|
|
225
|
-
type: this.authConnector.type,
|
|
226
|
-
socialUri: n
|
|
227
|
-
}, this.authConnector.chain), this.socialProvider && (U.setConnectedSocialProvider(this.socialProvider), u.sendEvent({
|
|
228
|
-
type: "track",
|
|
229
|
-
event: "SOCIAL_LOGIN_SUCCESS",
|
|
230
|
-
properties: { provider: this.socialProvider }
|
|
231
|
-
}));
|
|
232
|
-
}
|
|
233
|
-
} catch {
|
|
234
|
-
this.error = !0, this.updateMessage(), this.socialProvider && u.sendEvent({
|
|
235
|
-
type: "track",
|
|
236
|
-
event: "SOCIAL_LOGIN_ERROR",
|
|
237
|
-
properties: { provider: this.socialProvider }
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
} else
|
|
241
|
-
g.goBack(), y.showError("Untrusted Origin"), this.socialProvider && u.sendEvent({
|
|
242
|
-
type: "track",
|
|
243
|
-
event: "SOCIAL_LOGIN_ERROR",
|
|
244
|
-
properties: { provider: this.socialProvider }
|
|
245
|
-
});
|
|
246
|
-
}, q.EmbeddedWalletAbortController.signal.addEventListener("abort", () => {
|
|
247
|
-
this.socialWindow && (this.socialWindow.close(), d.setSocialWindow(void 0, _.state.activeChain));
|
|
248
|
-
}), this.unsubscribe.push(d.subscribe((i) => {
|
|
249
|
-
i.socialProvider && (this.socialProvider = i.socialProvider), i.socialWindow && (this.socialWindow = i.socialWindow), i.address && (I.state.open || b.state.enableEmbedded) && I.close();
|
|
250
|
-
})), this.authConnector && this.connectSocial();
|
|
251
|
-
}
|
|
252
|
-
disconnectedCallback() {
|
|
253
|
-
var e;
|
|
254
|
-
this.unsubscribe.forEach((i) => i()), window.removeEventListener("message", this.handleSocialConnection, !1), (e = this.socialWindow) == null || e.close(), d.setSocialWindow(void 0, _.state.activeChain);
|
|
255
|
-
}
|
|
256
|
-
render() {
|
|
257
|
-
return c`
|
|
258
|
-
<wui-flex
|
|
259
|
-
data-error=${v(this.error)}
|
|
260
|
-
flexDirection="column"
|
|
261
|
-
alignItems="center"
|
|
262
|
-
.padding=${["3xl", "xl", "xl", "xl"]}
|
|
263
|
-
gap="xl"
|
|
264
|
-
>
|
|
265
|
-
<wui-flex justifyContent="center" alignItems="center">
|
|
266
|
-
<wui-logo logo=${v(this.socialProvider)}></wui-logo>
|
|
267
|
-
${this.error ? null : this.loaderTemplate()}
|
|
268
|
-
<wui-icon-box
|
|
269
|
-
backgroundColor="error-100"
|
|
270
|
-
background="opaque"
|
|
271
|
-
iconColor="error-100"
|
|
272
|
-
icon="close"
|
|
273
|
-
size="sm"
|
|
274
|
-
border
|
|
275
|
-
borderColor="wui-color-bg-125"
|
|
276
|
-
></wui-icon-box>
|
|
277
|
-
</wui-flex>
|
|
278
|
-
<wui-flex flexDirection="column" alignItems="center" gap="xs">
|
|
279
|
-
<wui-text align="center" variant="paragraph-500" color="fg-100"
|
|
280
|
-
>Log in with
|
|
281
|
-
<span class="capitalize">${this.socialProvider ?? "Social"}</span></wui-text
|
|
282
|
-
>
|
|
283
|
-
<wui-text align="center" variant="small-400" color=${this.error ? "error-100" : "fg-200"}
|
|
284
|
-
>${this.message}</wui-text
|
|
285
|
-
></wui-flex
|
|
286
|
-
>
|
|
287
|
-
</wui-flex>
|
|
288
|
-
`;
|
|
289
|
-
}
|
|
290
|
-
loaderTemplate() {
|
|
291
|
-
const e = P.state.themeVariables["--w3m-border-radius-master"], i = e ? parseInt(e.replace("px", ""), 10) : 4;
|
|
292
|
-
return c`<wui-loading-thumbnail radius=${i * 9}></wui-loading-thumbnail>`;
|
|
293
|
-
}
|
|
294
|
-
connectSocial() {
|
|
295
|
-
const e = setInterval(() => {
|
|
296
|
-
var i;
|
|
297
|
-
(i = this.socialWindow) != null && i.closed && (!this.connecting && g.state.view === "ConnectingSocial" && (this.socialProvider && u.sendEvent({
|
|
298
|
-
type: "track",
|
|
299
|
-
event: "SOCIAL_LOGIN_CANCELED",
|
|
300
|
-
properties: { provider: this.socialProvider }
|
|
301
|
-
}), g.goBack()), clearInterval(e));
|
|
302
|
-
}, 1e3);
|
|
303
|
-
window.addEventListener("message", this.handleSocialConnection, !1);
|
|
304
|
-
}
|
|
305
|
-
updateMessage() {
|
|
306
|
-
this.error ? this.message = "Something went wrong" : this.connecting ? this.message = "Retrieving user data" : this.message = "Connect in the provider window";
|
|
307
|
-
}
|
|
308
|
-
};
|
|
309
|
-
p.styles = V;
|
|
310
|
-
m([
|
|
311
|
-
l()
|
|
312
|
-
], p.prototype, "socialProvider", void 0);
|
|
313
|
-
m([
|
|
314
|
-
l()
|
|
315
|
-
], p.prototype, "socialWindow", void 0);
|
|
316
|
-
m([
|
|
317
|
-
l()
|
|
318
|
-
], p.prototype, "error", void 0);
|
|
319
|
-
m([
|
|
320
|
-
l()
|
|
321
|
-
], p.prototype, "connecting", void 0);
|
|
322
|
-
m([
|
|
323
|
-
l()
|
|
324
|
-
], p.prototype, "message", void 0);
|
|
325
|
-
p = m([
|
|
326
|
-
k("w3m-connecting-social-view")
|
|
327
|
-
], p);
|
|
328
|
-
const B = E`
|
|
329
|
-
@keyframes fadein {
|
|
330
|
-
from {
|
|
331
|
-
opacity: 0;
|
|
332
|
-
}
|
|
333
|
-
to {
|
|
334
|
-
opacity: 1;
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
wui-shimmer {
|
|
339
|
-
width: 100%;
|
|
340
|
-
aspect-ratio: 1 / 1;
|
|
341
|
-
border-radius: clamp(0px, var(--wui-border-radius-l), 40px) !important;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
wui-qr-code {
|
|
345
|
-
opacity: 0;
|
|
346
|
-
animation-duration: 200ms;
|
|
347
|
-
animation-timing-function: ease;
|
|
348
|
-
animation-name: fadein;
|
|
349
|
-
animation-fill-mode: forwards;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
wui-logo {
|
|
353
|
-
width: 80px;
|
|
354
|
-
height: 80px;
|
|
355
|
-
border-radius: var(--wui-border-radius-m);
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
wui-flex:first-child:not(:only-child) {
|
|
359
|
-
position: relative;
|
|
360
|
-
}
|
|
361
|
-
wui-loading-thumbnail {
|
|
362
|
-
position: absolute;
|
|
363
|
-
}
|
|
364
|
-
wui-icon-box {
|
|
365
|
-
position: absolute;
|
|
366
|
-
right: calc(var(--wui-spacing-3xs) * -1);
|
|
367
|
-
bottom: calc(var(--wui-spacing-3xs) * -1);
|
|
368
|
-
opacity: 0;
|
|
369
|
-
transform: scale(0.5);
|
|
370
|
-
transition: all var(--wui-ease-out-power-2) var(--wui-duration-lg);
|
|
371
|
-
}
|
|
372
|
-
`;
|
|
373
|
-
var x = function(s, e, i, o) {
|
|
374
|
-
var n = arguments.length, t = n < 3 ? e : o === null ? o = Object.getOwnPropertyDescriptor(e, i) : o, r;
|
|
375
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(s, e, i, o);
|
|
376
|
-
else for (var a = s.length - 1; a >= 0; a--) (r = s[a]) && (t = (n < 3 ? r(t) : n > 3 ? r(e, i, t) : r(e, i)) || t);
|
|
377
|
-
return n > 3 && t && Object.defineProperty(e, i, t), t;
|
|
378
|
-
};
|
|
379
|
-
let w = class extends L {
|
|
380
|
-
constructor() {
|
|
381
|
-
super(), this.unsubscribe = [], this.timeout = void 0, this.socialProvider = d.state.socialProvider, this.uri = d.state.farcasterUrl, this.ready = !1, this.loading = !1, this.authConnector = S.getAuthConnector(), this.forceUpdate = () => {
|
|
382
|
-
this.requestUpdate();
|
|
383
|
-
}, this.unsubscribe.push(d.subscribeKey("farcasterUrl", (e) => {
|
|
384
|
-
e && (this.uri = e, this.connectFarcaster());
|
|
385
|
-
}), d.subscribeKey("socialProvider", (e) => {
|
|
386
|
-
e && (this.socialProvider = e);
|
|
387
|
-
})), window.addEventListener("resize", this.forceUpdate);
|
|
388
|
-
}
|
|
389
|
-
disconnectedCallback() {
|
|
390
|
-
super.disconnectedCallback(), clearTimeout(this.timeout), window.removeEventListener("resize", this.forceUpdate);
|
|
391
|
-
}
|
|
392
|
-
render() {
|
|
393
|
-
return this.onRenderProxy(), c`${this.platformTemplate()}`;
|
|
394
|
-
}
|
|
395
|
-
platformTemplate() {
|
|
396
|
-
return C.isMobile() ? c`${this.mobileTemplate()}` : c`${this.desktopTemplate()}`;
|
|
397
|
-
}
|
|
398
|
-
desktopTemplate() {
|
|
399
|
-
return this.loading ? c`${this.loadingTemplate()}` : c`${this.qrTemplate()}`;
|
|
400
|
-
}
|
|
401
|
-
qrTemplate() {
|
|
402
|
-
return c` <wui-flex
|
|
403
|
-
flexDirection="column"
|
|
404
|
-
alignItems="center"
|
|
405
|
-
.padding=${["0", "xl", "xl", "xl"]}
|
|
406
|
-
gap="xl"
|
|
407
|
-
>
|
|
408
|
-
<wui-shimmer borderRadius="l" width="100%"> ${this.qrCodeTemplate()} </wui-shimmer>
|
|
409
|
-
|
|
410
|
-
<wui-text variant="paragraph-500" color="fg-100">
|
|
411
|
-
Scan this QR Code with your phone
|
|
412
|
-
</wui-text>
|
|
413
|
-
${this.copyTemplate()}
|
|
414
|
-
</wui-flex>`;
|
|
415
|
-
}
|
|
416
|
-
loadingTemplate() {
|
|
417
|
-
return c`
|
|
418
|
-
<wui-flex
|
|
419
|
-
flexDirection="column"
|
|
420
|
-
alignItems="center"
|
|
421
|
-
.padding=${["xl", "xl", "xl", "xl"]}
|
|
422
|
-
gap="xl"
|
|
423
|
-
>
|
|
424
|
-
<wui-flex justifyContent="center" alignItems="center">
|
|
425
|
-
<wui-logo logo="farcaster"></wui-logo>
|
|
426
|
-
${this.loaderTemplate()}
|
|
427
|
-
<wui-icon-box
|
|
428
|
-
backgroundColor="error-100"
|
|
429
|
-
background="opaque"
|
|
430
|
-
iconColor="error-100"
|
|
431
|
-
icon="close"
|
|
432
|
-
size="sm"
|
|
433
|
-
border
|
|
434
|
-
borderColor="wui-color-bg-125"
|
|
435
|
-
></wui-icon-box>
|
|
436
|
-
</wui-flex>
|
|
437
|
-
<wui-flex flexDirection="column" alignItems="center" gap="xs">
|
|
438
|
-
<wui-text align="center" variant="paragraph-500" color="fg-100">
|
|
439
|
-
Loading user data
|
|
440
|
-
</wui-text>
|
|
441
|
-
<wui-text align="center" variant="small-400" color="fg-200">
|
|
442
|
-
Please wait a moment while we load your data.
|
|
443
|
-
</wui-text>
|
|
444
|
-
</wui-flex>
|
|
445
|
-
</wui-flex>
|
|
446
|
-
`;
|
|
447
|
-
}
|
|
448
|
-
mobileTemplate() {
|
|
449
|
-
return c` <wui-flex
|
|
450
|
-
flexDirection="column"
|
|
451
|
-
alignItems="center"
|
|
452
|
-
.padding=${["3xl", "xl", "xl", "xl"]}
|
|
453
|
-
gap="xl"
|
|
454
|
-
>
|
|
455
|
-
<wui-flex justifyContent="center" alignItems="center">
|
|
456
|
-
<wui-logo logo="farcaster"></wui-logo>
|
|
457
|
-
${this.loaderTemplate()}
|
|
458
|
-
<wui-icon-box
|
|
459
|
-
backgroundColor="error-100"
|
|
460
|
-
background="opaque"
|
|
461
|
-
iconColor="error-100"
|
|
462
|
-
icon="close"
|
|
463
|
-
size="sm"
|
|
464
|
-
border
|
|
465
|
-
borderColor="wui-color-bg-125"
|
|
466
|
-
></wui-icon-box>
|
|
467
|
-
</wui-flex>
|
|
468
|
-
<wui-flex flexDirection="column" alignItems="center" gap="xs">
|
|
469
|
-
<wui-text align="center" variant="paragraph-500" color="fg-100"
|
|
470
|
-
>Continue in Farcaster</span></wui-text
|
|
471
|
-
>
|
|
472
|
-
<wui-text align="center" variant="small-400" color="fg-200"
|
|
473
|
-
>Accept connection request in the app</wui-text
|
|
474
|
-
></wui-flex
|
|
475
|
-
>
|
|
476
|
-
${this.mobileLinkTemplate()}
|
|
477
|
-
</wui-flex>`;
|
|
478
|
-
}
|
|
479
|
-
loaderTemplate() {
|
|
480
|
-
const e = P.state.themeVariables["--w3m-border-radius-master"], i = e ? parseInt(e.replace("px", ""), 10) : 4;
|
|
481
|
-
return c`<wui-loading-thumbnail radius=${i * 9}></wui-loading-thumbnail>`;
|
|
482
|
-
}
|
|
483
|
-
async connectFarcaster() {
|
|
484
|
-
var e;
|
|
485
|
-
if (this.authConnector)
|
|
486
|
-
try {
|
|
487
|
-
await ((e = this.authConnector) == null ? void 0 : e.provider.connectFarcaster()), this.socialProvider && (U.setConnectedSocialProvider(this.socialProvider), u.sendEvent({
|
|
488
|
-
type: "track",
|
|
489
|
-
event: "SOCIAL_LOGIN_REQUEST_USER_DATA",
|
|
490
|
-
properties: { provider: this.socialProvider }
|
|
491
|
-
})), this.loading = !0, await T.connectExternal(this.authConnector, this.authConnector.chain), this.socialProvider && u.sendEvent({
|
|
492
|
-
type: "track",
|
|
493
|
-
event: "SOCIAL_LOGIN_SUCCESS",
|
|
494
|
-
properties: { provider: this.socialProvider }
|
|
495
|
-
}), this.loading = !1, I.close();
|
|
496
|
-
} catch (i) {
|
|
497
|
-
this.socialProvider && u.sendEvent({
|
|
498
|
-
type: "track",
|
|
499
|
-
event: "SOCIAL_LOGIN_ERROR",
|
|
500
|
-
properties: { provider: this.socialProvider }
|
|
501
|
-
}), g.goBack(), y.showError(i);
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
mobileLinkTemplate() {
|
|
505
|
-
return c`<wui-button
|
|
506
|
-
size="md"
|
|
507
|
-
?loading=${this.loading}
|
|
508
|
-
?disabled=${!this.uri || this.loading}
|
|
509
|
-
@click=${() => {
|
|
510
|
-
this.uri && C.openHref(this.uri, "_blank");
|
|
511
|
-
}}
|
|
512
|
-
>
|
|
513
|
-
Open farcaster</wui-button
|
|
514
|
-
>`;
|
|
515
|
-
}
|
|
516
|
-
onRenderProxy() {
|
|
517
|
-
!this.ready && this.uri && (this.timeout = setTimeout(() => {
|
|
518
|
-
this.ready = !0;
|
|
519
|
-
}, 200));
|
|
520
|
-
}
|
|
521
|
-
qrCodeTemplate() {
|
|
522
|
-
if (!this.uri || !this.ready)
|
|
523
|
-
return null;
|
|
524
|
-
const e = this.getBoundingClientRect().width - 40;
|
|
525
|
-
return c` <wui-qr-code
|
|
526
|
-
size=${e}
|
|
527
|
-
theme=${P.state.themeMode}
|
|
528
|
-
uri=${this.uri}
|
|
529
|
-
?farcaster=${!0}
|
|
530
|
-
data-testid="wui-qr-code"
|
|
531
|
-
color=${v(P.state.themeVariables["--w3m-qr-color"])}
|
|
532
|
-
></wui-qr-code>`;
|
|
533
|
-
}
|
|
534
|
-
copyTemplate() {
|
|
535
|
-
const e = !this.uri || !this.ready;
|
|
536
|
-
return c`<wui-link
|
|
537
|
-
.disabled=${e}
|
|
538
|
-
@click=${this.onCopyUri}
|
|
539
|
-
color="fg-200"
|
|
540
|
-
data-testid="copy-wc2-uri"
|
|
541
|
-
>
|
|
542
|
-
<wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon>
|
|
543
|
-
Copy link
|
|
544
|
-
</wui-link>`;
|
|
545
|
-
}
|
|
546
|
-
onCopyUri() {
|
|
547
|
-
try {
|
|
548
|
-
this.uri && (C.copyToClopboard(this.uri), y.showSuccess("Link copied"));
|
|
549
|
-
} catch {
|
|
550
|
-
y.showError("Failed to copy");
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
};
|
|
554
|
-
w.styles = B;
|
|
555
|
-
x([
|
|
556
|
-
l()
|
|
557
|
-
], w.prototype, "socialProvider", void 0);
|
|
558
|
-
x([
|
|
559
|
-
l()
|
|
560
|
-
], w.prototype, "uri", void 0);
|
|
561
|
-
x([
|
|
562
|
-
l()
|
|
563
|
-
], w.prototype, "ready", void 0);
|
|
564
|
-
x([
|
|
565
|
-
l()
|
|
566
|
-
], w.prototype, "loading", void 0);
|
|
567
|
-
w = x([
|
|
568
|
-
k("w3m-connecting-farcaster-view")
|
|
569
|
-
], w);
|
|
570
|
-
export {
|
|
571
|
-
$ as W3mConnectSocialsView,
|
|
572
|
-
w as W3mConnectingFarcasterView,
|
|
573
|
-
p as W3mConnectingSocialView
|
|
574
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { cD as l } from "./index-BJ7cbG3N.js";
|
|
2
|
-
const o = l`<svg fill="none" viewBox="0 0 20 20">
|
|
3
|
-
<path
|
|
4
|
-
fill="currentColor"
|
|
5
|
-
fill-rule="evenodd"
|
|
6
|
-
d="M6.76.3a1 1 0 0 1 0 1.4L4.07 4.4h9a1 1 0 1 1 0 2h-9l2.69 2.68a1 1 0 1 1-1.42 1.42L.95 6.09a1 1 0 0 1 0-1.4l4.4-4.4a1 1 0 0 1 1.4 0Zm6.49 9.21a1 1 0 0 1 1.41 0l4.39 4.4a1 1 0 0 1 0 1.4l-4.39 4.4a1 1 0 0 1-1.41-1.42l2.68-2.68h-9a1 1 0 0 1 0-2h9l-2.68-2.68a1 1 0 0 1 0-1.42Z"
|
|
7
|
-
clip-rule="evenodd"
|
|
8
|
-
/>
|
|
9
|
-
</svg>`;
|
|
10
|
-
export {
|
|
11
|
-
o as swapHorizontalSvg
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { cD as C } from "./index-BJ7cbG3N.js";
|
|
2
|
-
const e = C`<svg width="10" height="10" viewBox="0 0 10 10">
|
|
3
|
-
<path
|
|
4
|
-
fill="currentColor"
|
|
5
|
-
fill-rule="evenodd"
|
|
6
|
-
d="M3.77986 0.566631C4.0589 0.845577 4.0589 1.29784 3.77986 1.57678L3.08261 2.2738H6.34184C6.73647 2.2738 7.05637 2.5936 7.05637 2.98808C7.05637 3.38257 6.73647 3.70237 6.34184 3.70237H3.08261L3.77986 4.39938C4.0589 4.67833 4.0589 5.13059 3.77986 5.40954C3.50082 5.68848 3.04841 5.68848 2.76937 5.40954L0.852346 3.49316C0.573306 3.21421 0.573306 2.76195 0.852346 2.48301L2.76937 0.566631C3.04841 0.287685 3.50082 0.287685 3.77986 0.566631ZM6.22 4.59102C6.49904 4.31208 6.95145 4.31208 7.23049 4.59102L9.14751 6.5074C9.42655 6.78634 9.42655 7.23861 9.14751 7.51755L7.23049 9.43393C6.95145 9.71287 6.49904 9.71287 6.22 9.43393C5.94096 9.15498 5.94096 8.70272 6.22 8.42377L6.91725 7.72676L3.65802 7.72676C3.26339 7.72676 2.94349 7.40696 2.94349 7.01247C2.94349 6.61798 3.26339 6.29819 3.65802 6.29819L6.91725 6.29819L6.22 5.60117C5.94096 5.32223 5.94096 4.86997 6.22 4.59102Z"
|
|
7
|
-
clip-rule="evenodd"
|
|
8
|
-
/>
|
|
9
|
-
</svg>`;
|
|
10
|
-
export {
|
|
11
|
-
e as swapHorizontalBoldSvg
|
|
12
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { cD as C } from "./index-BJ7cbG3N.js";
|
|
2
|
-
const e = C`<svg
|
|
3
|
-
width="14"
|
|
4
|
-
height="14"
|
|
5
|
-
viewBox="0 0 14 14"
|
|
6
|
-
fill="none"
|
|
7
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
-
>
|
|
9
|
-
<path
|
|
10
|
-
fill-rule="evenodd"
|
|
11
|
-
clip-rule="evenodd"
|
|
12
|
-
d="M13.7306 3.24213C14.0725 3.58384 14.0725 4.13786 13.7306 4.47957L10.7418 7.46737C10.4 7.80908 9.84581 7.80908 9.50399 7.46737C9.16216 7.12567 9.16216 6.57165 9.50399 6.22994L10.9986 4.73585H5.34082C4.85741 4.73585 4.46553 4.3441 4.46553 3.86085C4.46553 3.3776 4.85741 2.98585 5.34082 2.98585L10.9986 2.98585L9.50399 1.49177C9.16216 1.15006 9.16216 0.596037 9.50399 0.254328C9.84581 -0.0873803 10.4 -0.0873803 10.7418 0.254328L13.7306 3.24213ZM9.52515 10.1352C9.52515 10.6185 9.13327 11.0102 8.64986 11.0102L2.9921 11.0102L4.48669 12.5043C4.82852 12.846 4.82852 13.4001 4.48669 13.7418C4.14487 14.0835 3.59066 14.0835 3.24884 13.7418L0.26003 10.754C0.0958806 10.5899 0.0036621 10.3673 0.00366211 10.1352C0.00366212 9.90318 0.0958806 9.68062 0.26003 9.51652L3.24884 6.52872C3.59066 6.18701 4.14487 6.18701 4.48669 6.52872C4.82851 6.87043 4.82851 7.42445 4.48669 7.76616L2.9921 9.26024L8.64986 9.26024C9.13327 9.26024 9.52515 9.65199 9.52515 10.1352Z"
|
|
13
|
-
fill="currentColor"
|
|
14
|
-
/>
|
|
15
|
-
</svg>
|
|
16
|
-
|
|
17
|
-
`;
|
|
18
|
-
export {
|
|
19
|
-
e as swapHorizontalMediumSvg
|
|
20
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { cD as C } from "./index-BJ7cbG3N.js";
|
|
2
|
-
const L = C`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
|
|
3
|
-
<path
|
|
4
|
-
fill="currentColor"
|
|
5
|
-
fill-rule="evenodd"
|
|
6
|
-
clip-rule="evenodd"
|
|
7
|
-
d="M8.3071 0.292893C8.69763 0.683417 8.69763 1.31658 8.3071 1.70711L6.41421 3.6H11.3404C13.8368 3.6 16.0533 5.1975 16.8427 7.56588L16.9487 7.88377C17.1233 8.40772 16.8402 8.97404 16.3162 9.14868C15.7923 9.32333 15.226 9.04017 15.0513 8.51623L14.9453 8.19834C14.4281 6.64664 12.976 5.6 11.3404 5.6H6.41421L8.3071 7.49289C8.69763 7.88342 8.69763 8.51658 8.3071 8.90711C7.91658 9.29763 7.28341 9.29763 6.89289 8.90711L3.29289 5.30711C2.90236 4.91658 2.90236 4.28342 3.29289 3.89289L6.89289 0.292893C7.28341 -0.0976311 7.91658 -0.0976311 8.3071 0.292893ZM3.68377 10.8513C4.20771 10.6767 4.77403 10.9598 4.94868 11.4838L5.05464 11.8017C5.57188 13.3534 7.024 14.4 8.65964 14.4L13.5858 14.4L11.6929 12.5071C11.3024 12.1166 11.3024 11.4834 11.6929 11.0929C12.0834 10.7024 12.7166 10.7024 13.1071 11.0929L16.7071 14.6929C17.0976 15.0834 17.0976 15.7166 16.7071 16.1071L13.1071 19.7071C12.7166 20.0976 12.0834 20.0976 11.6929 19.7071C11.3024 19.3166 11.3024 18.6834 11.6929 18.2929L13.5858 16.4L8.65964 16.4C6.16314 16.4 3.94674 14.8025 3.15728 12.4341L3.05131 12.1162C2.87667 11.5923 3.15983 11.026 3.68377 10.8513Z"
|
|
8
|
-
/>
|
|
9
|
-
</svg>`;
|
|
10
|
-
export {
|
|
11
|
-
L as swapHorizontalRoundedBoldSvg
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { cD as l } from "./index-BJ7cbG3N.js";
|
|
2
|
-
const e = l`<svg fill="none" viewBox="0 0 14 14">
|
|
3
|
-
<path
|
|
4
|
-
fill="currentColor"
|
|
5
|
-
fill-rule="evenodd"
|
|
6
|
-
d="M3.48 2.18a1 1 0 0 1 1.41 0l2.68 2.68a1 1 0 1 1-1.41 1.42l-.98-.98v4.56a1 1 0 0 1-2 0V5.3l-.97.98A1 1 0 0 1 .79 4.86l2.69-2.68Zm6.34 2.93a1 1 0 0 1 1 1v4.56l.97-.98a1 1 0 1 1 1.42 1.42l-2.69 2.68a1 1 0 0 1-1.41 0l-2.68-2.68a1 1 0 0 1 1.41-1.42l.98.98V6.1a1 1 0 0 1 1-1Z"
|
|
7
|
-
clip-rule="evenodd"
|
|
8
|
-
/>
|
|
9
|
-
</svg>`;
|
|
10
|
-
export {
|
|
11
|
-
e as swapVerticalSvg
|
|
12
|
-
};
|