@matchain/matchid-sdk-react 0.1.56-alpha.12 → 0.1.56-alpha.13
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/api.d.mts +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/api.js +83 -44
- package/dist/api.js.map +1 -1
- package/dist/api.mjs +2 -2
- package/dist/{chunk-44JQQ34F.mjs → chunk-7K4E64WH.mjs} +2 -2
- package/dist/{chunk-DUSDBXBT.mjs → chunk-RPATABCS.mjs} +164 -124
- package/dist/chunk-RPATABCS.mjs.map +1 -0
- package/dist/components.d.mts +3 -3
- package/dist/components.d.ts +3 -3
- package/dist/components.js +151 -122
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +1 -1
- package/dist/hooks.d.mts +2 -2
- package/dist/hooks.d.ts +2 -2
- package/dist/hooks.js +39 -0
- package/dist/hooks.js.map +1 -1
- package/dist/hooks.mjs +1 -1
- package/dist/icon.d.mts +2 -2
- package/dist/icon.d.ts +2 -2
- package/dist/{index-DxHhOW24.d.mts → index-BLjGmf9p.d.mts} +2 -2
- package/dist/{index-BNqdFiOo.d.ts → index-BXhXRggh.d.ts} +1 -1
- package/dist/{index-uB9jBjgs.d.mts → index-Bjb30oE3.d.mts} +35 -31
- package/dist/{index-hz9v-CNJ.d.ts → index-CPnKc6o4.d.ts} +35 -31
- package/dist/{index-CcVHENNv.d.ts → index-CpJtux-G.d.ts} +1 -1
- package/dist/{index-DVlulZhE.d.mts → index-CqHlL6ue.d.mts} +3 -3
- package/dist/{index-DkijpM5Q.d.mts → index-CzCkxwOm.d.mts} +1 -1
- package/dist/{index-84CqVi2I.d.mts → index-DCyE39bg.d.mts} +1 -1
- package/dist/{index-BctnHnJp.d.ts → index-DGsB7f2H.d.ts} +1 -1
- package/dist/{index-Cqdz_5bE.d.ts → index-DQYg6bEA.d.ts} +2 -2
- package/dist/{index-qmC4zt6V.d.ts → index-DZpXCByF.d.ts} +3 -3
- package/dist/{index-Car1jFyN.d.mts → index-De8efmdb.d.mts} +1 -1
- package/dist/{index-BqI0PEIi.d.mts → index-DuCefmJ0.d.mts} +1 -1
- package/dist/{index-CvzpMw3N.d.ts → index-m2bn_W3Y.d.ts} +1 -1
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +163 -123
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{types-BrVeC0c8.d.mts → types-C8FLH1yn.d.mts} +1 -0
- package/dist/{types-BrVeC0c8.d.ts → types-C8FLH1yn.d.ts} +1 -0
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/ui.d.mts +3 -3
- package/dist/ui.d.ts +3 -3
- package/dist/ui.js +6 -0
- package/dist/ui.js.map +1 -1
- package/dist/ui.mjs +1 -1
- package/example/src/App.tsx +61 -61
- package/example/src/config/index.ts +8 -6
- package/example/src/pages/Home.tsx +15 -15
- package/example/src/store/useLocalStore.ts +19 -19
- package/example/yarn.lock +1384 -0
- package/package.json +1 -1
- package/dist/chunk-DUSDBXBT.mjs.map +0 -1
- /package/dist/{chunk-44JQQ34F.mjs.map → chunk-7K4E64WH.mjs.map} +0 -0
package/dist/components.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { B as BTCModal, d as EVMModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, e as TONModal, T as TRONModal, g as TokenDetail, h as TokenSend, j as TokenSendList, k as TransactionList, U as UsernameModal, f as WalletAsset, W as WalletModal } from './index-
|
|
2
|
-
export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-
|
|
1
|
+
export { B as BTCModal, d as EVMModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, e as TONModal, T as TRONModal, g as TokenDetail, h as TokenSend, j as TokenSendList, k as TransactionList, U as UsernameModal, f as WalletAsset, W as WalletModal } from './index-CqHlL6ue.mjs';
|
|
2
|
+
export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-DuCefmJ0.mjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-C8FLH1yn.mjs';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '@tanstack/react-query/src/types';
|
package/dist/components.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { B as BTCModal, d as EVMModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, e as TONModal, T as TRONModal, g as TokenDetail, h as TokenSend, j as TokenSendList, k as TransactionList, U as UsernameModal, f as WalletAsset, W as WalletModal } from './index-
|
|
2
|
-
export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-
|
|
1
|
+
export { B as BTCModal, d as EVMModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, e as TONModal, T as TRONModal, g as TokenDetail, h as TokenSend, j as TokenSendList, k as TransactionList, U as UsernameModal, f as WalletAsset, W as WalletModal } from './index-DZpXCByF.js';
|
|
2
|
+
export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-m2bn_W3Y.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-C8FLH1yn.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '@tanstack/react-query/src/types';
|
package/dist/components.js
CHANGED
|
@@ -3284,6 +3284,12 @@ var useWalletModalStore = (0, import_zustand5.create)((set) => ({
|
|
|
3284
3284
|
open: (type, methods = DEFAULT_WALLET_METHODS) => set({ isOpen: true, type, methods }),
|
|
3285
3285
|
close: () => set({ isOpen: false })
|
|
3286
3286
|
}));
|
|
3287
|
+
var useEmailModalStore = (0, import_zustand5.create)((set) => ({
|
|
3288
|
+
isOpen: false,
|
|
3289
|
+
type: "login",
|
|
3290
|
+
open: (type) => set({ isOpen: true, type }),
|
|
3291
|
+
close: () => set({ isOpen: false })
|
|
3292
|
+
}));
|
|
3287
3293
|
|
|
3288
3294
|
// src/components/CEXBindModal/index.tsx
|
|
3289
3295
|
var import_react19 = require("react");
|
|
@@ -3362,6 +3368,7 @@ function useUserInfo() {
|
|
|
3362
3368
|
const { open: TONOpen } = useTONModalStore();
|
|
3363
3369
|
const { open: BTCOpen } = useBTCModalStore();
|
|
3364
3370
|
const { open: CEXBindOpen } = useCEXBindModalStore();
|
|
3371
|
+
const { open: EmailOpen } = useEmailModalStore();
|
|
3365
3372
|
const walletModalStore = useWalletModalStore();
|
|
3366
3373
|
const getRedirectUri = () => {
|
|
3367
3374
|
return encodeURIComponent(window.location.href);
|
|
@@ -3496,6 +3503,34 @@ function useUserInfo() {
|
|
|
3496
3503
|
}
|
|
3497
3504
|
return false;
|
|
3498
3505
|
};
|
|
3506
|
+
const bindByEmail = async ({
|
|
3507
|
+
email,
|
|
3508
|
+
code
|
|
3509
|
+
}) => {
|
|
3510
|
+
try {
|
|
3511
|
+
const obj = {
|
|
3512
|
+
email,
|
|
3513
|
+
verification_key: emailLoginKey,
|
|
3514
|
+
verification_code: code
|
|
3515
|
+
};
|
|
3516
|
+
const res = await verifyEmailCodeApi(obj);
|
|
3517
|
+
if (res && res.data && isSuccess(res)) {
|
|
3518
|
+
events.onBind && events.onBind({
|
|
3519
|
+
type: "email"
|
|
3520
|
+
});
|
|
3521
|
+
eventManager_default.emit("onBind", {
|
|
3522
|
+
type: "email"
|
|
3523
|
+
});
|
|
3524
|
+
return true;
|
|
3525
|
+
} else {
|
|
3526
|
+
throw new Error(res.message);
|
|
3527
|
+
}
|
|
3528
|
+
} catch (error) {
|
|
3529
|
+
console.error("bindByEmail", error);
|
|
3530
|
+
throw error;
|
|
3531
|
+
}
|
|
3532
|
+
return false;
|
|
3533
|
+
};
|
|
3499
3534
|
const bindWallet = async () => {
|
|
3500
3535
|
if (!token) {
|
|
3501
3536
|
throw new Error("You must login first");
|
|
@@ -3543,12 +3578,15 @@ function useUserInfo() {
|
|
|
3543
3578
|
return BTCOpen("bind");
|
|
3544
3579
|
case "telegram":
|
|
3545
3580
|
return await bindTelegram();
|
|
3581
|
+
case "email":
|
|
3582
|
+
return EmailOpen("bind");
|
|
3546
3583
|
case "twitter":
|
|
3547
3584
|
case "google":
|
|
3548
3585
|
case "discord":
|
|
3549
3586
|
case "github":
|
|
3550
3587
|
case "linkedin":
|
|
3551
3588
|
case "facebook":
|
|
3589
|
+
case "kakao":
|
|
3552
3590
|
case "youtube":
|
|
3553
3591
|
const link = `${endpoints.back}api/v1/auth/${method == "youtube" ? "google" : method}?appid=${appid}&provider=${method == "youtube" ? "google" : method}&redirect=${encodeURIComponent(endpoints.auth + "bind/" + method)}&authorization=${token.includes("Bearer ") ? token.split(" ")[1] : token}${method == "youtube" ? "&auth_type=youtube" : ""}`;
|
|
3554
3592
|
matchlog_default.log("link", link);
|
|
@@ -3632,6 +3670,7 @@ function useUserInfo() {
|
|
|
3632
3670
|
auth,
|
|
3633
3671
|
login: loginMethod,
|
|
3634
3672
|
bind,
|
|
3673
|
+
bindByEmail,
|
|
3635
3674
|
getAuthInfo,
|
|
3636
3675
|
invite
|
|
3637
3676
|
};
|
|
@@ -3643,7 +3682,7 @@ var import_react_intl8 = require("react-intl");
|
|
|
3643
3682
|
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
3644
3683
|
function StepVerify(props) {
|
|
3645
3684
|
const intl = (0, import_react_intl8.useIntl)();
|
|
3646
|
-
const { getLoginEmailCode, loginByEmail } = useUserInfo();
|
|
3685
|
+
const { getLoginEmailCode, bindByEmail, loginByEmail } = useUserInfo();
|
|
3647
3686
|
const [error, setError] = (0, import_react24.useState)("");
|
|
3648
3687
|
const [code, setCode] = (0, import_react24.useState)("");
|
|
3649
3688
|
const [sending, setSending] = (0, import_react24.useState)(false);
|
|
@@ -3703,7 +3742,10 @@ function StepVerify(props) {
|
|
|
3703
3742
|
try {
|
|
3704
3743
|
setError("");
|
|
3705
3744
|
setSubmitting(true);
|
|
3706
|
-
const res = await
|
|
3745
|
+
const res = props.type === "bind" ? await bindByEmail({
|
|
3746
|
+
email: props.email,
|
|
3747
|
+
code
|
|
3748
|
+
}) : await loginByEmail({
|
|
3707
3749
|
email: props.email,
|
|
3708
3750
|
code
|
|
3709
3751
|
});
|
|
@@ -3765,6 +3807,7 @@ var import_react_intl9 = require("react-intl");
|
|
|
3765
3807
|
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
3766
3808
|
function EmailModal({
|
|
3767
3809
|
isOpen = false,
|
|
3810
|
+
type = "login",
|
|
3768
3811
|
width = 480,
|
|
3769
3812
|
onClose,
|
|
3770
3813
|
onBack,
|
|
@@ -3792,7 +3835,7 @@ function EmailModal({
|
|
|
3792
3835
|
children: step === "input" ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(StepEmail, { email: emailVal, onContinue: (email) => {
|
|
3793
3836
|
setEmailVal(email);
|
|
3794
3837
|
setStep("verify");
|
|
3795
|
-
} }) : /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(StepVerify, { email: emailVal, onSuccess: onLogin })
|
|
3838
|
+
} }) : /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(StepVerify, { email: emailVal, type, onSuccess: onLogin })
|
|
3796
3839
|
}
|
|
3797
3840
|
);
|
|
3798
3841
|
}
|
|
@@ -3911,7 +3954,7 @@ function LoginBox({
|
|
|
3911
3954
|
walletMethods: walletMethodList
|
|
3912
3955
|
};
|
|
3913
3956
|
}, [config.platform, recommendMethods, methods, walletMethods]);
|
|
3914
|
-
const
|
|
3957
|
+
const { open: emailOpen } = useEmailModalStore();
|
|
3915
3958
|
const { login } = useUserInfo();
|
|
3916
3959
|
const [showWallet, setShowWallet] = (0, import_react26.useState)(false);
|
|
3917
3960
|
const intl = (0, import_react_intl10.useIntl)();
|
|
@@ -3927,7 +3970,7 @@ function LoginBox({
|
|
|
3927
3970
|
icon: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(EmailIcon, { size: isDownMd ? 36 : 40 }),
|
|
3928
3971
|
name: intl.formatMessage({ id: "email" }),
|
|
3929
3972
|
onClick: () => {
|
|
3930
|
-
|
|
3973
|
+
emailOpen("login");
|
|
3931
3974
|
}
|
|
3932
3975
|
},
|
|
3933
3976
|
google: {
|
|
@@ -3977,130 +4020,116 @@ function LoginBox({
|
|
|
3977
4020
|
}
|
|
3978
4021
|
};
|
|
3979
4022
|
const { walletMap } = useWalletConfig();
|
|
3980
|
-
return /* @__PURE__ */ (0, import_jsx_runtime86.
|
|
3981
|
-
|
|
3982
|
-
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
children: [
|
|
4002
|
-
/* @__PURE__ */ (0, import_jsx_runtime86.
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
),
|
|
4011
|
-
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
4012
|
-
"span",
|
|
4013
|
-
{
|
|
4014
|
-
className: "matchid-login-recommend-wallet-item-name",
|
|
4015
|
-
children: m2.name
|
|
4016
|
-
}
|
|
4017
|
-
)
|
|
4018
|
-
] }),
|
|
4023
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_jsx_runtime86.Fragment, { children: (!inModal || !emailOpen) && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "matchid-login-box", children: [
|
|
4024
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "matchid-login-recommend-list", children: methodConfig.recommendMethods.map((m) => {
|
|
4025
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
4026
|
+
RecommendItem,
|
|
4027
|
+
{
|
|
4028
|
+
icon: methodMap[m]?.icon,
|
|
4029
|
+
name: methodMap[m]?.name,
|
|
4030
|
+
onClick: methodMap[m]?.onClick,
|
|
4031
|
+
showChildren: m == "wallet" && showWallet,
|
|
4032
|
+
children: m == "wallet" && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
|
|
4033
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "matchid-login-recommend-wallet-divider" }),
|
|
4034
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "matchid-login-recommend-wallet-list", children: methodConfig.walletMethods.map((n) => {
|
|
4035
|
+
const m2 = walletMap[n];
|
|
4036
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
4037
|
+
"div",
|
|
4038
|
+
{
|
|
4039
|
+
className: "matchid-login-recommend-wallet-item",
|
|
4040
|
+
onClick: () => {
|
|
4041
|
+
login(m2.method);
|
|
4042
|
+
},
|
|
4043
|
+
children: [
|
|
4044
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "matchid-login-recommend-wallet-item-content", children: [
|
|
4045
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "matchid-login-recommend-wallet-item-icon", children: m2.icon }),
|
|
4046
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
4047
|
+
"div",
|
|
4048
|
+
{
|
|
4049
|
+
className: "matchid-login-recommend-wallet-item-hover-icon",
|
|
4050
|
+
children: m2.activeIcon
|
|
4051
|
+
}
|
|
4052
|
+
),
|
|
4019
4053
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
4020
|
-
|
|
4054
|
+
"span",
|
|
4021
4055
|
{
|
|
4022
|
-
className: "matchid-login-recommend-wallet-item-
|
|
4023
|
-
|
|
4024
|
-
color: "var(--matchid-arrow-color)"
|
|
4056
|
+
className: "matchid-login-recommend-wallet-item-name",
|
|
4057
|
+
children: m2.name
|
|
4025
4058
|
}
|
|
4026
4059
|
)
|
|
4027
|
-
]
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4060
|
+
] }),
|
|
4061
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
4062
|
+
ArrowRightIcon,
|
|
4063
|
+
{
|
|
4064
|
+
className: "matchid-login-recommend-wallet-item-arrow",
|
|
4065
|
+
size: 20,
|
|
4066
|
+
color: "var(--matchid-arrow-color)"
|
|
4067
|
+
}
|
|
4068
|
+
)
|
|
4069
|
+
]
|
|
4070
|
+
},
|
|
4071
|
+
m2.name
|
|
4072
|
+
);
|
|
4073
|
+
}) })
|
|
4074
|
+
] })
|
|
4075
|
+
},
|
|
4076
|
+
m
|
|
4077
|
+
);
|
|
4078
|
+
}) }),
|
|
4079
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "matchid-privacy-policy", children: [
|
|
4080
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "matchid-privacy-policy-content", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
4081
|
+
import_react_intl10.FormattedMessage,
|
|
4082
|
+
{
|
|
4083
|
+
id: "loginAgreement",
|
|
4084
|
+
values: {
|
|
4085
|
+
termsLink: (chunks) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
4086
|
+
"a",
|
|
4087
|
+
{
|
|
4088
|
+
href: TERMS_OF_SERVICE_URL,
|
|
4089
|
+
target: "_blank",
|
|
4090
|
+
rel: "noopener noreferrer",
|
|
4091
|
+
className: "matchid-privacy-policy-content-link",
|
|
4092
|
+
children: chunks
|
|
4093
|
+
}
|
|
4094
|
+
),
|
|
4095
|
+
privacyLink: (chunks) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
4096
|
+
"a",
|
|
4097
|
+
{
|
|
4098
|
+
href: PRIVACY_POLICY_URL,
|
|
4099
|
+
target: "_blank",
|
|
4100
|
+
rel: "noopener noreferrer",
|
|
4101
|
+
className: "matchid-privacy-policy-content-link",
|
|
4102
|
+
children: chunks
|
|
4103
|
+
}
|
|
4104
|
+
)
|
|
4064
4105
|
}
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
] }),
|
|
4071
|
-
methodConfig.methods.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "matchid-login-other", children: [
|
|
4072
|
-
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "matchid-login-other-line-box", children: [
|
|
4073
|
-
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "matchid-login-other-line" }),
|
|
4074
|
-
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_intl10.FormattedMessage, { id: "otherLoginMethods" }) }),
|
|
4075
|
-
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "matchid-login-other-line" })
|
|
4076
|
-
] }),
|
|
4077
|
-
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
|
|
4078
|
-
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
4079
|
-
"div",
|
|
4080
|
-
{
|
|
4081
|
-
className: "matchid-login-method-item",
|
|
4082
|
-
onClick: methodMap[m]?.onClick,
|
|
4083
|
-
title: methodMap[m]?.name,
|
|
4084
|
-
children: methodMap[m]?.icon
|
|
4085
|
-
},
|
|
4086
|
-
m
|
|
4087
|
-
);
|
|
4088
|
-
}) })
|
|
4106
|
+
}
|
|
4107
|
+
) }),
|
|
4108
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "matchid-privacy-policy-powered-by", children: [
|
|
4109
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_intl10.FormattedMessage, { id: "poweredBy" }),
|
|
4110
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(MatchIdIcon_default, {})
|
|
4089
4111
|
] })
|
|
4090
4112
|
] }),
|
|
4091
|
-
/* @__PURE__ */ (0, import_jsx_runtime86.
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4113
|
+
methodConfig.methods.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "matchid-login-other", children: [
|
|
4114
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "matchid-login-other-line-box", children: [
|
|
4115
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "matchid-login-other-line" }),
|
|
4116
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_intl10.FormattedMessage, { id: "otherLoginMethods" }) }),
|
|
4117
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "matchid-login-other-line" })
|
|
4118
|
+
] }),
|
|
4119
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
|
|
4120
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
4121
|
+
"div",
|
|
4122
|
+
{
|
|
4123
|
+
className: "matchid-login-method-item",
|
|
4124
|
+
onClick: methodMap[m]?.onClick,
|
|
4125
|
+
title: methodMap[m]?.name,
|
|
4126
|
+
children: methodMap[m]?.icon
|
|
4127
|
+
},
|
|
4128
|
+
m
|
|
4129
|
+
);
|
|
4130
|
+
}) })
|
|
4131
|
+
] })
|
|
4132
|
+
] }) });
|
|
4104
4133
|
}
|
|
4105
4134
|
|
|
4106
4135
|
// src/components/LoginButton/index.tsx
|