@matchain/matchid-sdk-react 0.1.56-alpha.12 → 0.1.56-alpha.14
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-DUSDBXBT.mjs → chunk-EMSBFHPM.mjs} +174 -124
- package/dist/chunk-EMSBFHPM.mjs.map +1 -0
- package/dist/{chunk-44JQQ34F.mjs → chunk-SEACJPL6.mjs} +2 -2
- package/dist/components.d.mts +3 -3
- package/dist/components.d.ts +3 -3
- package/dist/components.js +161 -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.css +1 -1
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +173 -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-SEACJPL6.mjs.map} +0 -0
package/dist/api.mjs
CHANGED
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
bind_exports,
|
|
3
3
|
poh_exports,
|
|
4
4
|
user_exports
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SEACJPL6.mjs";
|
|
6
6
|
import {
|
|
7
7
|
isSuccess,
|
|
8
8
|
wallet_exports
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EMSBFHPM.mjs";
|
|
10
10
|
import "./chunk-UA6XHZHX.mjs";
|
|
11
11
|
import "./chunk-IZOOVZAD.mjs";
|
|
12
12
|
import "./chunk-FQ6PYZPD.mjs";
|
|
@@ -2997,6 +2997,12 @@ var useWalletModalStore = create5((set) => ({
|
|
|
2997
2997
|
open: (type, methods = DEFAULT_WALLET_METHODS) => set({ isOpen: true, type, methods }),
|
|
2998
2998
|
close: () => set({ isOpen: false })
|
|
2999
2999
|
}));
|
|
3000
|
+
var useEmailModalStore = create5((set) => ({
|
|
3001
|
+
isOpen: false,
|
|
3002
|
+
type: "login",
|
|
3003
|
+
open: (type) => set({ isOpen: true, type }),
|
|
3004
|
+
close: () => set({ isOpen: false })
|
|
3005
|
+
}));
|
|
3000
3006
|
|
|
3001
3007
|
// src/components/CEXBindModal/index.tsx
|
|
3002
3008
|
import { useEffect as useEffect16, useMemo as useMemo7, useState as useState16 } from "react";
|
|
@@ -3017,7 +3023,7 @@ function CEXBindModal({
|
|
|
3017
3023
|
const [secret, setSecret] = useState16("");
|
|
3018
3024
|
const [error, setError] = useState16("");
|
|
3019
3025
|
const needPassphrase = useMemo7(() => {
|
|
3020
|
-
return ["bitget", "okx"].includes(type.toLowerCase());
|
|
3026
|
+
return ["bitget", "okx", "kucoin"].includes(type.toLowerCase());
|
|
3021
3027
|
}, [type]);
|
|
3022
3028
|
useEffect16(() => {
|
|
3023
3029
|
if (isOpen) {
|
|
@@ -3122,6 +3128,7 @@ function BusinessProvider({ children }) {
|
|
|
3122
3128
|
const { type: BTCType, isOpen: BTCIsOpen, close: BTCClose } = useBTCModalStore();
|
|
3123
3129
|
const { type: CEXType, isOpen: CEXIsOpen, close: CEXClose } = useCEXBindModalStore();
|
|
3124
3130
|
const WalletModalStore = useWalletModalStore();
|
|
3131
|
+
const EmailModalStore = useEmailModalStore();
|
|
3125
3132
|
const { tgAppAuthCode, setTgAppAuthCode } = useStore_default();
|
|
3126
3133
|
const { login } = useMatch();
|
|
3127
3134
|
const walletModalClose = (func) => {
|
|
@@ -3207,6 +3214,16 @@ function BusinessProvider({ children }) {
|
|
|
3207
3214
|
zIndex: 150
|
|
3208
3215
|
}
|
|
3209
3216
|
),
|
|
3217
|
+
/* @__PURE__ */ jsx25(
|
|
3218
|
+
EmailModal,
|
|
3219
|
+
{
|
|
3220
|
+
isOpen: EmailModalStore.isOpen && (EmailModalStore.type == "login" && !overview && !token || EmailModalStore.type == "bind" && !!token && !!overview),
|
|
3221
|
+
onClose: EmailModalStore.close,
|
|
3222
|
+
onLogin: EmailModalStore.close,
|
|
3223
|
+
type: EmailModalStore.type,
|
|
3224
|
+
zIndex: 199
|
|
3225
|
+
}
|
|
3226
|
+
),
|
|
3210
3227
|
children
|
|
3211
3228
|
] });
|
|
3212
3229
|
}
|
|
@@ -4521,6 +4538,7 @@ function useUserInfo() {
|
|
|
4521
4538
|
const { open: TONOpen } = useTONModalStore();
|
|
4522
4539
|
const { open: BTCOpen } = useBTCModalStore();
|
|
4523
4540
|
const { open: CEXBindOpen } = useCEXBindModalStore();
|
|
4541
|
+
const { open: EmailOpen } = useEmailModalStore();
|
|
4524
4542
|
const walletModalStore = useWalletModalStore();
|
|
4525
4543
|
const getRedirectUri = () => {
|
|
4526
4544
|
return encodeURIComponent(window.location.href);
|
|
@@ -4655,6 +4673,34 @@ function useUserInfo() {
|
|
|
4655
4673
|
}
|
|
4656
4674
|
return false;
|
|
4657
4675
|
};
|
|
4676
|
+
const bindByEmail = async ({
|
|
4677
|
+
email,
|
|
4678
|
+
code
|
|
4679
|
+
}) => {
|
|
4680
|
+
try {
|
|
4681
|
+
const obj = {
|
|
4682
|
+
email,
|
|
4683
|
+
verification_key: emailLoginKey,
|
|
4684
|
+
verification_code: code
|
|
4685
|
+
};
|
|
4686
|
+
const res = await verifyEmailCodeApi(obj);
|
|
4687
|
+
if (res && res.data && isSuccess(res)) {
|
|
4688
|
+
events.onBind && events.onBind({
|
|
4689
|
+
type: "email"
|
|
4690
|
+
});
|
|
4691
|
+
eventManager_default.emit("onBind", {
|
|
4692
|
+
type: "email"
|
|
4693
|
+
});
|
|
4694
|
+
return true;
|
|
4695
|
+
} else {
|
|
4696
|
+
throw new Error(res.message);
|
|
4697
|
+
}
|
|
4698
|
+
} catch (error) {
|
|
4699
|
+
console.error("bindByEmail", error);
|
|
4700
|
+
throw error;
|
|
4701
|
+
}
|
|
4702
|
+
return false;
|
|
4703
|
+
};
|
|
4658
4704
|
const bindWallet = async () => {
|
|
4659
4705
|
if (!token) {
|
|
4660
4706
|
throw new Error("You must login first");
|
|
@@ -4702,12 +4748,15 @@ function useUserInfo() {
|
|
|
4702
4748
|
return BTCOpen("bind");
|
|
4703
4749
|
case "telegram":
|
|
4704
4750
|
return await bindTelegram();
|
|
4751
|
+
case "email":
|
|
4752
|
+
return EmailOpen("bind");
|
|
4705
4753
|
case "twitter":
|
|
4706
4754
|
case "google":
|
|
4707
4755
|
case "discord":
|
|
4708
4756
|
case "github":
|
|
4709
4757
|
case "linkedin":
|
|
4710
4758
|
case "facebook":
|
|
4759
|
+
case "kakao":
|
|
4711
4760
|
case "youtube":
|
|
4712
4761
|
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" : ""}`;
|
|
4713
4762
|
matchlog_default.log("link", link);
|
|
@@ -4791,6 +4840,7 @@ function useUserInfo() {
|
|
|
4791
4840
|
auth,
|
|
4792
4841
|
login: loginMethod,
|
|
4793
4842
|
bind,
|
|
4843
|
+
bindByEmail,
|
|
4794
4844
|
getAuthInfo,
|
|
4795
4845
|
invite
|
|
4796
4846
|
};
|
|
@@ -4802,7 +4852,7 @@ import { FormattedMessage as FormattedMessage6, useIntl as useIntl7 } from "reac
|
|
|
4802
4852
|
import { jsx as jsx28, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
4803
4853
|
function StepVerify(props) {
|
|
4804
4854
|
const intl = useIntl7();
|
|
4805
|
-
const { getLoginEmailCode, loginByEmail } = useUserInfo();
|
|
4855
|
+
const { getLoginEmailCode, bindByEmail, loginByEmail } = useUserInfo();
|
|
4806
4856
|
const [error, setError] = useState18("");
|
|
4807
4857
|
const [code, setCode] = useState18("");
|
|
4808
4858
|
const [sending, setSending] = useState18(false);
|
|
@@ -4862,7 +4912,10 @@ function StepVerify(props) {
|
|
|
4862
4912
|
try {
|
|
4863
4913
|
setError("");
|
|
4864
4914
|
setSubmitting(true);
|
|
4865
|
-
const res = await
|
|
4915
|
+
const res = props.type === "bind" ? await bindByEmail({
|
|
4916
|
+
email: props.email,
|
|
4917
|
+
code
|
|
4918
|
+
}) : await loginByEmail({
|
|
4866
4919
|
email: props.email,
|
|
4867
4920
|
code
|
|
4868
4921
|
});
|
|
@@ -4924,6 +4977,7 @@ import { useIntl as useIntl8 } from "react-intl";
|
|
|
4924
4977
|
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
4925
4978
|
function EmailModal({
|
|
4926
4979
|
isOpen = false,
|
|
4980
|
+
type = "login",
|
|
4927
4981
|
width = 480,
|
|
4928
4982
|
onClose,
|
|
4929
4983
|
onBack,
|
|
@@ -4938,6 +4992,16 @@ function EmailModal({
|
|
|
4938
4992
|
setEmailVal("");
|
|
4939
4993
|
}
|
|
4940
4994
|
}, [isOpen]);
|
|
4995
|
+
const verifySuccess = () => {
|
|
4996
|
+
console.log("verifySuccess", onLogin);
|
|
4997
|
+
if (onLogin) {
|
|
4998
|
+
console.log("verifySuccess to login");
|
|
4999
|
+
onLogin();
|
|
5000
|
+
} else {
|
|
5001
|
+
console.log("verifySuccess to close");
|
|
5002
|
+
onClose && onClose();
|
|
5003
|
+
}
|
|
5004
|
+
};
|
|
4941
5005
|
return /* @__PURE__ */ jsx29(
|
|
4942
5006
|
ModalWithHeader,
|
|
4943
5007
|
{
|
|
@@ -4951,7 +5015,7 @@ function EmailModal({
|
|
|
4951
5015
|
children: step === "input" ? /* @__PURE__ */ jsx29(StepEmail, { email: emailVal, onContinue: (email) => {
|
|
4952
5016
|
setEmailVal(email);
|
|
4953
5017
|
setStep("verify");
|
|
4954
|
-
} }) : /* @__PURE__ */ jsx29(StepVerify, { email: emailVal, onSuccess:
|
|
5018
|
+
} }) : /* @__PURE__ */ jsx29(StepVerify, { email: emailVal, type, onSuccess: verifySuccess })
|
|
4955
5019
|
}
|
|
4956
5020
|
);
|
|
4957
5021
|
}
|
|
@@ -5070,7 +5134,7 @@ function LoginBox({
|
|
|
5070
5134
|
walletMethods: walletMethodList
|
|
5071
5135
|
};
|
|
5072
5136
|
}, [config.platform, recommendMethods, methods, walletMethods]);
|
|
5073
|
-
const
|
|
5137
|
+
const { open: emailOpen } = useEmailModalStore();
|
|
5074
5138
|
const { login } = useUserInfo();
|
|
5075
5139
|
const [showWallet, setShowWallet] = useState20(false);
|
|
5076
5140
|
const intl = useIntl9();
|
|
@@ -5086,7 +5150,7 @@ function LoginBox({
|
|
|
5086
5150
|
icon: /* @__PURE__ */ jsx30(EmailIcon, { size: isDownMd ? 36 : 40 }),
|
|
5087
5151
|
name: intl.formatMessage({ id: "email" }),
|
|
5088
5152
|
onClick: () => {
|
|
5089
|
-
|
|
5153
|
+
emailOpen("login");
|
|
5090
5154
|
}
|
|
5091
5155
|
},
|
|
5092
5156
|
google: {
|
|
@@ -5136,130 +5200,116 @@ function LoginBox({
|
|
|
5136
5200
|
}
|
|
5137
5201
|
};
|
|
5138
5202
|
const { walletMap } = useWalletConfig();
|
|
5139
|
-
return /* @__PURE__ */
|
|
5140
|
-
|
|
5141
|
-
/* @__PURE__ */ jsx30(
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
children: [
|
|
5161
|
-
/* @__PURE__ */
|
|
5162
|
-
/* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-wallet-item-icon", children: m2.icon }),
|
|
5163
|
-
/* @__PURE__ */ jsx30(
|
|
5164
|
-
"div",
|
|
5165
|
-
{
|
|
5166
|
-
className: "matchid-login-recommend-wallet-item-hover-icon",
|
|
5167
|
-
children: m2.activeIcon
|
|
5168
|
-
}
|
|
5169
|
-
),
|
|
5170
|
-
/* @__PURE__ */ jsx30(
|
|
5171
|
-
"span",
|
|
5172
|
-
{
|
|
5173
|
-
className: "matchid-login-recommend-wallet-item-name",
|
|
5174
|
-
children: m2.name
|
|
5175
|
-
}
|
|
5176
|
-
)
|
|
5177
|
-
] }),
|
|
5203
|
+
return /* @__PURE__ */ jsx30(Fragment5, { children: (!inModal || !emailOpen) && /* @__PURE__ */ jsxs16("div", { className: "matchid-login-box", children: [
|
|
5204
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-list", children: methodConfig.recommendMethods.map((m) => {
|
|
5205
|
+
return /* @__PURE__ */ jsx30(
|
|
5206
|
+
RecommendItem,
|
|
5207
|
+
{
|
|
5208
|
+
icon: methodMap[m]?.icon,
|
|
5209
|
+
name: methodMap[m]?.name,
|
|
5210
|
+
onClick: methodMap[m]?.onClick,
|
|
5211
|
+
showChildren: m == "wallet" && showWallet,
|
|
5212
|
+
children: m == "wallet" && /* @__PURE__ */ jsxs16(Fragment5, { children: [
|
|
5213
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-wallet-divider" }),
|
|
5214
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-wallet-list", children: methodConfig.walletMethods.map((n) => {
|
|
5215
|
+
const m2 = walletMap[n];
|
|
5216
|
+
return /* @__PURE__ */ jsxs16(
|
|
5217
|
+
"div",
|
|
5218
|
+
{
|
|
5219
|
+
className: "matchid-login-recommend-wallet-item",
|
|
5220
|
+
onClick: () => {
|
|
5221
|
+
login(m2.method);
|
|
5222
|
+
},
|
|
5223
|
+
children: [
|
|
5224
|
+
/* @__PURE__ */ jsxs16("div", { className: "matchid-login-recommend-wallet-item-content", children: [
|
|
5225
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-wallet-item-icon", children: m2.icon }),
|
|
5178
5226
|
/* @__PURE__ */ jsx30(
|
|
5179
|
-
|
|
5227
|
+
"div",
|
|
5180
5228
|
{
|
|
5181
|
-
className: "matchid-login-recommend-wallet-item-
|
|
5182
|
-
|
|
5183
|
-
|
|
5229
|
+
className: "matchid-login-recommend-wallet-item-hover-icon",
|
|
5230
|
+
children: m2.activeIcon
|
|
5231
|
+
}
|
|
5232
|
+
),
|
|
5233
|
+
/* @__PURE__ */ jsx30(
|
|
5234
|
+
"span",
|
|
5235
|
+
{
|
|
5236
|
+
className: "matchid-login-recommend-wallet-item-name",
|
|
5237
|
+
children: m2.name
|
|
5184
5238
|
}
|
|
5185
5239
|
)
|
|
5186
|
-
]
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5240
|
+
] }),
|
|
5241
|
+
/* @__PURE__ */ jsx30(
|
|
5242
|
+
ArrowRightIcon,
|
|
5243
|
+
{
|
|
5244
|
+
className: "matchid-login-recommend-wallet-item-arrow",
|
|
5245
|
+
size: 20,
|
|
5246
|
+
color: "var(--matchid-arrow-color)"
|
|
5247
|
+
}
|
|
5248
|
+
)
|
|
5249
|
+
]
|
|
5250
|
+
},
|
|
5251
|
+
m2.name
|
|
5252
|
+
);
|
|
5253
|
+
}) })
|
|
5254
|
+
] })
|
|
5255
|
+
},
|
|
5256
|
+
m
|
|
5257
|
+
);
|
|
5258
|
+
}) }),
|
|
5259
|
+
/* @__PURE__ */ jsxs16("div", { className: "matchid-privacy-policy", children: [
|
|
5260
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-privacy-policy-content", children: /* @__PURE__ */ jsx30(
|
|
5261
|
+
FormattedMessage7,
|
|
5262
|
+
{
|
|
5263
|
+
id: "loginAgreement",
|
|
5264
|
+
values: {
|
|
5265
|
+
termsLink: (chunks) => /* @__PURE__ */ jsx30(
|
|
5266
|
+
"a",
|
|
5267
|
+
{
|
|
5268
|
+
href: TERMS_OF_SERVICE_URL,
|
|
5269
|
+
target: "_blank",
|
|
5270
|
+
rel: "noopener noreferrer",
|
|
5271
|
+
className: "matchid-privacy-policy-content-link",
|
|
5272
|
+
children: chunks
|
|
5273
|
+
}
|
|
5274
|
+
),
|
|
5275
|
+
privacyLink: (chunks) => /* @__PURE__ */ jsx30(
|
|
5276
|
+
"a",
|
|
5277
|
+
{
|
|
5278
|
+
href: PRIVACY_POLICY_URL,
|
|
5279
|
+
target: "_blank",
|
|
5280
|
+
rel: "noopener noreferrer",
|
|
5281
|
+
className: "matchid-privacy-policy-content-link",
|
|
5282
|
+
children: chunks
|
|
5283
|
+
}
|
|
5284
|
+
)
|
|
5223
5285
|
}
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
] }),
|
|
5230
|
-
methodConfig.methods.length > 0 && /* @__PURE__ */ jsxs16("div", { className: "matchid-login-other", children: [
|
|
5231
|
-
/* @__PURE__ */ jsxs16("div", { className: "matchid-login-other-line-box", children: [
|
|
5232
|
-
/* @__PURE__ */ jsx30("div", { className: "matchid-login-other-line" }),
|
|
5233
|
-
/* @__PURE__ */ jsx30("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ jsx30(FormattedMessage7, { id: "otherLoginMethods" }) }),
|
|
5234
|
-
/* @__PURE__ */ jsx30("div", { className: "matchid-login-other-line" })
|
|
5235
|
-
] }),
|
|
5236
|
-
/* @__PURE__ */ jsx30("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
|
|
5237
|
-
return /* @__PURE__ */ jsx30(
|
|
5238
|
-
"div",
|
|
5239
|
-
{
|
|
5240
|
-
className: "matchid-login-method-item",
|
|
5241
|
-
onClick: methodMap[m]?.onClick,
|
|
5242
|
-
title: methodMap[m]?.name,
|
|
5243
|
-
children: methodMap[m]?.icon
|
|
5244
|
-
},
|
|
5245
|
-
m
|
|
5246
|
-
);
|
|
5247
|
-
}) })
|
|
5286
|
+
}
|
|
5287
|
+
) }),
|
|
5288
|
+
/* @__PURE__ */ jsxs16("div", { className: "matchid-privacy-policy-powered-by", children: [
|
|
5289
|
+
/* @__PURE__ */ jsx30(FormattedMessage7, { id: "poweredBy" }),
|
|
5290
|
+
/* @__PURE__ */ jsx30(MatchIdIcon_default, {})
|
|
5248
5291
|
] })
|
|
5249
5292
|
] }),
|
|
5250
|
-
/* @__PURE__ */
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5293
|
+
methodConfig.methods.length > 0 && /* @__PURE__ */ jsxs16("div", { className: "matchid-login-other", children: [
|
|
5294
|
+
/* @__PURE__ */ jsxs16("div", { className: "matchid-login-other-line-box", children: [
|
|
5295
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-login-other-line" }),
|
|
5296
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ jsx30(FormattedMessage7, { id: "otherLoginMethods" }) }),
|
|
5297
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-login-other-line" })
|
|
5298
|
+
] }),
|
|
5299
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
|
|
5300
|
+
return /* @__PURE__ */ jsx30(
|
|
5301
|
+
"div",
|
|
5302
|
+
{
|
|
5303
|
+
className: "matchid-login-method-item",
|
|
5304
|
+
onClick: methodMap[m]?.onClick,
|
|
5305
|
+
title: methodMap[m]?.name,
|
|
5306
|
+
children: methodMap[m]?.icon
|
|
5307
|
+
},
|
|
5308
|
+
m
|
|
5309
|
+
);
|
|
5310
|
+
}) })
|
|
5311
|
+
] })
|
|
5312
|
+
] }) });
|
|
5263
5313
|
}
|
|
5264
5314
|
|
|
5265
5315
|
// src/components/LoginButton/index.tsx
|
|
@@ -7725,4 +7775,4 @@ export {
|
|
|
7725
7775
|
MatchProvider,
|
|
7726
7776
|
useMatch
|
|
7727
7777
|
};
|
|
7728
|
-
//# sourceMappingURL=chunk-
|
|
7778
|
+
//# sourceMappingURL=chunk-EMSBFHPM.mjs.map
|