@matchain/matchid-sdk-react 0.1.56-alpha.11 → 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-D2E53ZMV.d.mts → index-Bjb30oE3.d.mts} +5 -1
- package/dist/{index-DwmrgZa2.d.ts → index-CPnKc6o4.d.ts} +5 -1
- 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 +520 -2755
- package/package.json +3 -2
- package/dist/chunk-DUSDBXBT.mjs.map +0 -1
- /package/dist/{chunk-44JQQ34F.mjs.map → chunk-7K4E64WH.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-7K4E64WH.mjs";
|
|
6
6
|
import {
|
|
7
7
|
isSuccess,
|
|
8
8
|
wallet_exports
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RPATABCS.mjs";
|
|
10
10
|
import "./chunk-UA6XHZHX.mjs";
|
|
11
11
|
import "./chunk-IZOOVZAD.mjs";
|
|
12
12
|
import "./chunk-FQ6PYZPD.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
useUserInfo,
|
|
12
12
|
verifyPohApi,
|
|
13
13
|
wallet_exports
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RPATABCS.mjs";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
17
|
} from "./chunk-J5LGTIGS.mjs";
|
|
@@ -94,4 +94,4 @@ export {
|
|
|
94
94
|
user_exports,
|
|
95
95
|
api_exports
|
|
96
96
|
};
|
|
97
|
-
//# sourceMappingURL=chunk-
|
|
97
|
+
//# sourceMappingURL=chunk-7K4E64WH.mjs.map
|
|
@@ -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,
|
|
@@ -4951,7 +5005,7 @@ function EmailModal({
|
|
|
4951
5005
|
children: step === "input" ? /* @__PURE__ */ jsx29(StepEmail, { email: emailVal, onContinue: (email) => {
|
|
4952
5006
|
setEmailVal(email);
|
|
4953
5007
|
setStep("verify");
|
|
4954
|
-
} }) : /* @__PURE__ */ jsx29(StepVerify, { email: emailVal, onSuccess: onLogin })
|
|
5008
|
+
} }) : /* @__PURE__ */ jsx29(StepVerify, { email: emailVal, type, onSuccess: onLogin })
|
|
4955
5009
|
}
|
|
4956
5010
|
);
|
|
4957
5011
|
}
|
|
@@ -5070,7 +5124,7 @@ function LoginBox({
|
|
|
5070
5124
|
walletMethods: walletMethodList
|
|
5071
5125
|
};
|
|
5072
5126
|
}, [config.platform, recommendMethods, methods, walletMethods]);
|
|
5073
|
-
const
|
|
5127
|
+
const { open: emailOpen } = useEmailModalStore();
|
|
5074
5128
|
const { login } = useUserInfo();
|
|
5075
5129
|
const [showWallet, setShowWallet] = useState20(false);
|
|
5076
5130
|
const intl = useIntl9();
|
|
@@ -5086,7 +5140,7 @@ function LoginBox({
|
|
|
5086
5140
|
icon: /* @__PURE__ */ jsx30(EmailIcon, { size: isDownMd ? 36 : 40 }),
|
|
5087
5141
|
name: intl.formatMessage({ id: "email" }),
|
|
5088
5142
|
onClick: () => {
|
|
5089
|
-
|
|
5143
|
+
emailOpen("login");
|
|
5090
5144
|
}
|
|
5091
5145
|
},
|
|
5092
5146
|
google: {
|
|
@@ -5136,130 +5190,116 @@ function LoginBox({
|
|
|
5136
5190
|
}
|
|
5137
5191
|
};
|
|
5138
5192
|
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
|
-
] }),
|
|
5193
|
+
return /* @__PURE__ */ jsx30(Fragment5, { children: (!inModal || !emailOpen) && /* @__PURE__ */ jsxs16("div", { className: "matchid-login-box", children: [
|
|
5194
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-list", children: methodConfig.recommendMethods.map((m) => {
|
|
5195
|
+
return /* @__PURE__ */ jsx30(
|
|
5196
|
+
RecommendItem,
|
|
5197
|
+
{
|
|
5198
|
+
icon: methodMap[m]?.icon,
|
|
5199
|
+
name: methodMap[m]?.name,
|
|
5200
|
+
onClick: methodMap[m]?.onClick,
|
|
5201
|
+
showChildren: m == "wallet" && showWallet,
|
|
5202
|
+
children: m == "wallet" && /* @__PURE__ */ jsxs16(Fragment5, { children: [
|
|
5203
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-wallet-divider" }),
|
|
5204
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-wallet-list", children: methodConfig.walletMethods.map((n) => {
|
|
5205
|
+
const m2 = walletMap[n];
|
|
5206
|
+
return /* @__PURE__ */ jsxs16(
|
|
5207
|
+
"div",
|
|
5208
|
+
{
|
|
5209
|
+
className: "matchid-login-recommend-wallet-item",
|
|
5210
|
+
onClick: () => {
|
|
5211
|
+
login(m2.method);
|
|
5212
|
+
},
|
|
5213
|
+
children: [
|
|
5214
|
+
/* @__PURE__ */ jsxs16("div", { className: "matchid-login-recommend-wallet-item-content", children: [
|
|
5215
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-wallet-item-icon", children: m2.icon }),
|
|
5178
5216
|
/* @__PURE__ */ jsx30(
|
|
5179
|
-
|
|
5217
|
+
"div",
|
|
5180
5218
|
{
|
|
5181
|
-
className: "matchid-login-recommend-wallet-item-
|
|
5182
|
-
|
|
5183
|
-
|
|
5219
|
+
className: "matchid-login-recommend-wallet-item-hover-icon",
|
|
5220
|
+
children: m2.activeIcon
|
|
5221
|
+
}
|
|
5222
|
+
),
|
|
5223
|
+
/* @__PURE__ */ jsx30(
|
|
5224
|
+
"span",
|
|
5225
|
+
{
|
|
5226
|
+
className: "matchid-login-recommend-wallet-item-name",
|
|
5227
|
+
children: m2.name
|
|
5184
5228
|
}
|
|
5185
5229
|
)
|
|
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
|
-
|
|
5230
|
+
] }),
|
|
5231
|
+
/* @__PURE__ */ jsx30(
|
|
5232
|
+
ArrowRightIcon,
|
|
5233
|
+
{
|
|
5234
|
+
className: "matchid-login-recommend-wallet-item-arrow",
|
|
5235
|
+
size: 20,
|
|
5236
|
+
color: "var(--matchid-arrow-color)"
|
|
5237
|
+
}
|
|
5238
|
+
)
|
|
5239
|
+
]
|
|
5240
|
+
},
|
|
5241
|
+
m2.name
|
|
5242
|
+
);
|
|
5243
|
+
}) })
|
|
5244
|
+
] })
|
|
5245
|
+
},
|
|
5246
|
+
m
|
|
5247
|
+
);
|
|
5248
|
+
}) }),
|
|
5249
|
+
/* @__PURE__ */ jsxs16("div", { className: "matchid-privacy-policy", children: [
|
|
5250
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-privacy-policy-content", children: /* @__PURE__ */ jsx30(
|
|
5251
|
+
FormattedMessage7,
|
|
5252
|
+
{
|
|
5253
|
+
id: "loginAgreement",
|
|
5254
|
+
values: {
|
|
5255
|
+
termsLink: (chunks) => /* @__PURE__ */ jsx30(
|
|
5256
|
+
"a",
|
|
5257
|
+
{
|
|
5258
|
+
href: TERMS_OF_SERVICE_URL,
|
|
5259
|
+
target: "_blank",
|
|
5260
|
+
rel: "noopener noreferrer",
|
|
5261
|
+
className: "matchid-privacy-policy-content-link",
|
|
5262
|
+
children: chunks
|
|
5263
|
+
}
|
|
5264
|
+
),
|
|
5265
|
+
privacyLink: (chunks) => /* @__PURE__ */ jsx30(
|
|
5266
|
+
"a",
|
|
5267
|
+
{
|
|
5268
|
+
href: PRIVACY_POLICY_URL,
|
|
5269
|
+
target: "_blank",
|
|
5270
|
+
rel: "noopener noreferrer",
|
|
5271
|
+
className: "matchid-privacy-policy-content-link",
|
|
5272
|
+
children: chunks
|
|
5273
|
+
}
|
|
5274
|
+
)
|
|
5223
5275
|
}
|
|
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
|
-
}) })
|
|
5276
|
+
}
|
|
5277
|
+
) }),
|
|
5278
|
+
/* @__PURE__ */ jsxs16("div", { className: "matchid-privacy-policy-powered-by", children: [
|
|
5279
|
+
/* @__PURE__ */ jsx30(FormattedMessage7, { id: "poweredBy" }),
|
|
5280
|
+
/* @__PURE__ */ jsx30(MatchIdIcon_default, {})
|
|
5248
5281
|
] })
|
|
5249
5282
|
] }),
|
|
5250
|
-
/* @__PURE__ */
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5283
|
+
methodConfig.methods.length > 0 && /* @__PURE__ */ jsxs16("div", { className: "matchid-login-other", children: [
|
|
5284
|
+
/* @__PURE__ */ jsxs16("div", { className: "matchid-login-other-line-box", children: [
|
|
5285
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-login-other-line" }),
|
|
5286
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ jsx30(FormattedMessage7, { id: "otherLoginMethods" }) }),
|
|
5287
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-login-other-line" })
|
|
5288
|
+
] }),
|
|
5289
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
|
|
5290
|
+
return /* @__PURE__ */ jsx30(
|
|
5291
|
+
"div",
|
|
5292
|
+
{
|
|
5293
|
+
className: "matchid-login-method-item",
|
|
5294
|
+
onClick: methodMap[m]?.onClick,
|
|
5295
|
+
title: methodMap[m]?.name,
|
|
5296
|
+
children: methodMap[m]?.icon
|
|
5297
|
+
},
|
|
5298
|
+
m
|
|
5299
|
+
);
|
|
5300
|
+
}) })
|
|
5301
|
+
] })
|
|
5302
|
+
] }) });
|
|
5263
5303
|
}
|
|
5264
5304
|
|
|
5265
5305
|
// src/components/LoginButton/index.tsx
|
|
@@ -7725,4 +7765,4 @@ export {
|
|
|
7725
7765
|
MatchProvider,
|
|
7726
7766
|
useMatch
|
|
7727
7767
|
};
|
|
7728
|
-
//# sourceMappingURL=chunk-
|
|
7768
|
+
//# sourceMappingURL=chunk-RPATABCS.mjs.map
|