@paypay/mini-app-js-sdk 1.73.0 → 1.74.0
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/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +254 -204
- package/dist/mini-app-js-sdk.min.css +1 -1
- package/dist/model/bridge/getConfigure.d.ts +2 -2
- package/dist/views/init-kyc-passport/App.vue.d.ts +2 -2
- package/dist/views/registerPaymentFeatures/AutoTopupMethod.vue.d.ts +2 -0
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesAmountErrorSheet.vue.d.ts +2 -0
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesAmountSettingSheet.vue.d.ts +2 -0
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesAutoTopupConfirmSheet.vue.d.ts +2 -0
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesChooseAmount.vue.d.ts +2 -0
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesChoosePaymentMethodSheet.vue.d.ts +2 -0
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesDefaultErrorSheet.vue.d.ts +2 -0
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesFooterUpdateWarning.vue.d.ts +2 -0
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesFooterView.vue.d.ts +2 -0
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesFooterViewWithEnableButton.vue.d.ts +2 -0
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesMainView.vue.d.ts +5 -5
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesRootView.vue.d.ts +2 -0
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesSettingCompleteSheet.vue.d.ts +2 -0
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesTopupMethodSettingSheet.vue.d.ts +2 -0
- package/dist/views/registerPaymentFeatures/store.d.ts +3 -0
- package/dist/views/registerPaymentFeatures/types.d.ts +1 -0
- package/dist/views/sms-auth/App.vue.d.ts +4 -4
- package/dist/views/sms-auth/store.d.ts +1 -1
- package/package.json +1 -1
|
@@ -50,8 +50,8 @@ function normalizeNativeResponseData(data2) {
|
|
|
50
50
|
}
|
|
51
51
|
class JsBridge {
|
|
52
52
|
constructor(global2) {
|
|
53
|
-
this.version = "1.
|
|
54
|
-
this.revision = "
|
|
53
|
+
this.version = "1.74.0";
|
|
54
|
+
this.revision = "1f3bbe5";
|
|
55
55
|
this.messageHandlers = /* @__PURE__ */ new Map();
|
|
56
56
|
this.responseCallbacks = /* @__PURE__ */ new Map();
|
|
57
57
|
this.global = global2;
|
|
@@ -2090,7 +2090,7 @@ const opaUrl = () => {
|
|
|
2090
2090
|
const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
|
|
2091
2091
|
const headers = new Headers({
|
|
2092
2092
|
"Content-Type": "application/json",
|
|
2093
|
-
"Client-Version": "1.
|
|
2093
|
+
"Client-Version": "1.74.0",
|
|
2094
2094
|
"Client-OS-Type": getRuntime(),
|
|
2095
2095
|
...customHeaders
|
|
2096
2096
|
});
|
|
@@ -2297,8 +2297,12 @@ async function initAppConfiguration() {
|
|
|
2297
2297
|
);
|
|
2298
2298
|
return true;
|
|
2299
2299
|
}
|
|
2300
|
-
function getAppConfig() {
|
|
2301
|
-
|
|
2300
|
+
async function getAppConfig() {
|
|
2301
|
+
let config2 = getAppConfig$1();
|
|
2302
|
+
if (!config2) {
|
|
2303
|
+
await initAppConfiguration();
|
|
2304
|
+
config2 = getAppConfig$1();
|
|
2305
|
+
}
|
|
2302
2306
|
if (config2) {
|
|
2303
2307
|
return JSON.parse(config2);
|
|
2304
2308
|
}
|
|
@@ -2337,26 +2341,24 @@ function checkAccessToken(params) {
|
|
|
2337
2341
|
}
|
|
2338
2342
|
function execute$j(params) {
|
|
2339
2343
|
var _a2, _b;
|
|
2340
|
-
|
|
2341
|
-
const token = getAccessToken();
|
|
2342
|
-
if (!clientId) {
|
|
2344
|
+
if (!getClientId()) {
|
|
2343
2345
|
(_a2 = params == null ? void 0 : params.fail) == null ? void 0 : _a2.call(params, { errorCode: MiniAppErrorType.sdkNotInitialized });
|
|
2344
|
-
|
|
2345
|
-
if (!token) {
|
|
2346
|
-
(_b = params == null ? void 0 : params.fail) == null ? void 0 : _b.call(params, { errorCode: MiniAppErrorType.tokenNotFound });
|
|
2347
|
-
} else {
|
|
2348
|
-
getUAID({
|
|
2349
|
-
success() {
|
|
2350
|
-
var _a3;
|
|
2351
|
-
(_a3 = params == null ? void 0 : params.success) == null ? void 0 : _a3.call(params, { statusCode: MiniAppStatusType.validToken });
|
|
2352
|
-
},
|
|
2353
|
-
fail() {
|
|
2354
|
-
var _a3;
|
|
2355
|
-
(_a3 = params == null ? void 0 : params.fail) == null ? void 0 : _a3.call(params, { errorCode: MiniAppErrorType.tokenExpired });
|
|
2356
|
-
}
|
|
2357
|
-
});
|
|
2358
|
-
}
|
|
2346
|
+
return;
|
|
2359
2347
|
}
|
|
2348
|
+
if (!getAccessToken()) {
|
|
2349
|
+
(_b = params == null ? void 0 : params.fail) == null ? void 0 : _b.call(params, { errorCode: MiniAppErrorType.tokenNotFound });
|
|
2350
|
+
return;
|
|
2351
|
+
}
|
|
2352
|
+
getUAID({
|
|
2353
|
+
success() {
|
|
2354
|
+
var _a3;
|
|
2355
|
+
(_a3 = params == null ? void 0 : params.success) == null ? void 0 : _a3.call(params, { statusCode: MiniAppStatusType.validToken });
|
|
2356
|
+
},
|
|
2357
|
+
fail() {
|
|
2358
|
+
var _a3;
|
|
2359
|
+
(_a3 = params == null ? void 0 : params.fail) == null ? void 0 : _a3.call(params, { errorCode: MiniAppErrorType.tokenExpired });
|
|
2360
|
+
}
|
|
2361
|
+
});
|
|
2360
2362
|
}
|
|
2361
2363
|
async function getUserProfile(params) {
|
|
2362
2364
|
const newParams = reconstructParams(params);
|
|
@@ -8027,10 +8029,7 @@ async function initApp(params, accessToken, refreshToken2) {
|
|
|
8027
8029
|
saveUserData();
|
|
8028
8030
|
saveClientId((_b = params == null ? void 0 : params.clientId) != null ? _b : "");
|
|
8029
8031
|
removeCodeVerifier();
|
|
8030
|
-
|
|
8031
|
-
if (!configResult) {
|
|
8032
|
-
throw Error();
|
|
8033
|
-
}
|
|
8032
|
+
initAppConfiguration();
|
|
8034
8033
|
}
|
|
8035
8034
|
function fixDeprecatedCloseApp() {
|
|
8036
8035
|
const jsBridge2 = new JsBridge(window);
|
|
@@ -30221,7 +30220,7 @@ const _sfc_main$14 = defineComponent({
|
|
|
30221
30220
|
const _hoisted_1$B = ["src"];
|
|
30222
30221
|
const _hoisted_2$f = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
|
|
30223
30222
|
const _hoisted_3$a = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
|
|
30224
|
-
const _hoisted_4$
|
|
30223
|
+
const _hoisted_4$5 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
|
|
30225
30224
|
const _hoisted_5$2 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
|
|
30226
30225
|
function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
30227
30226
|
const _component_DateButton = resolveComponent("DateButton");
|
|
@@ -30259,7 +30258,7 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30259
30258
|
createTextVNode(toDisplayString(_ctx.lg.birthdayConfirm.desc), 1),
|
|
30260
30259
|
_hoisted_3$a,
|
|
30261
30260
|
createTextVNode(toDisplayString(_ctx.lg.birthdayConfirm.desc1), 1),
|
|
30262
|
-
_hoisted_4$
|
|
30261
|
+
_hoisted_4$5,
|
|
30263
30262
|
createTextVNode(toDisplayString(_ctx.lg.birthdayConfirm.desc2), 1),
|
|
30264
30263
|
_hoisted_5$2,
|
|
30265
30264
|
createTextVNode(toDisplayString(_ctx.lg.birthdayConfirm.desc3), 1)
|
|
@@ -32074,7 +32073,7 @@ const _sfc_main$$ = defineComponent({
|
|
|
32074
32073
|
const _hoisted_1$w = ["src"];
|
|
32075
32074
|
const _hoisted_2$d = { key: 0 };
|
|
32076
32075
|
const _hoisted_3$8 = /* @__PURE__ */ createBaseVNode("span", null, "\u5186", -1);
|
|
32077
|
-
const _hoisted_4$
|
|
32076
|
+
const _hoisted_4$4 = /* @__PURE__ */ createBaseVNode("span", null, "\u5186", -1);
|
|
32078
32077
|
function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32079
32078
|
return openBlock(), createElementBlock("div", null, [
|
|
32080
32079
|
createBaseVNode("div", {
|
|
@@ -32114,7 +32113,7 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32114
32113
|
createBaseVNode("div", null, toDisplayString(_ctx.remoteStrings.topInfo.sufficientRow), 1),
|
|
32115
32114
|
createBaseVNode("div", null, [
|
|
32116
32115
|
createTextVNode(toDisplayString(_ctx.formatBalance), 1),
|
|
32117
|
-
_hoisted_4$
|
|
32116
|
+
_hoisted_4$4
|
|
32118
32117
|
])
|
|
32119
32118
|
], 2),
|
|
32120
32119
|
createBaseVNode("div", {
|
|
@@ -33210,17 +33209,20 @@ const _sfc_main$W = defineComponent({
|
|
|
33210
33209
|
emit("back");
|
|
33211
33210
|
}, 600);
|
|
33212
33211
|
};
|
|
33212
|
+
const appConfig = ref(null);
|
|
33213
|
+
onMounted(async () => {
|
|
33214
|
+
appConfig.value = await getAppConfig();
|
|
33215
|
+
});
|
|
33213
33216
|
const amountLists = computed(() => {
|
|
33214
|
-
var _a3, _b2, _c, _d, _e, _f;
|
|
33215
|
-
const config2 = getAppConfig();
|
|
33217
|
+
var _a3, _b2, _c, _d, _e, _f, _g, _h;
|
|
33216
33218
|
return {
|
|
33217
33219
|
halfSheet: createHalfSheetAmount(
|
|
33218
33220
|
(_a3 = props.insufficientBalanceInfo) == null ? void 0 : _a3.recommendedTopupAmount,
|
|
33219
|
-
(_c = (_b2 =
|
|
33221
|
+
(_d = (_c = (_b2 = appConfig.value) == null ? void 0 : _b2.topupHalfSheetAmount[0]) == null ? void 0 : _c.value) != null ? _d : null
|
|
33220
33222
|
),
|
|
33221
33223
|
buttons: createButtonsAmount(
|
|
33222
|
-
(
|
|
33223
|
-
(
|
|
33224
|
+
(_e = props.insufficientBalanceInfo) == null ? void 0 : _e.recommendedTopupAmount,
|
|
33225
|
+
(_h = (_g = (_f = appConfig.value) == null ? void 0 : _f.topupButtonsAmount[0]) == null ? void 0 : _g.value) != null ? _h : null
|
|
33224
33226
|
)
|
|
33225
33227
|
};
|
|
33226
33228
|
});
|
|
@@ -35012,7 +35014,7 @@ const _sfc_main$P = defineComponent({
|
|
|
35012
35014
|
this.paymentMethodList = paymentMethodList;
|
|
35013
35015
|
this.appealDescription = appealDescription;
|
|
35014
35016
|
this.findFirstValidMethodTopup();
|
|
35015
|
-
const config2 = getAppConfig();
|
|
35017
|
+
const config2 = await getAppConfig();
|
|
35016
35018
|
if (config2) {
|
|
35017
35019
|
this.topupHalfSheetAmount = (_f = config2 == null ? void 0 : config2.topupHalfSheetAmount[0]) == null ? void 0 : _f.value;
|
|
35018
35020
|
this.topupButtonsAmount = (_g = config2 == null ? void 0 : config2.topupButtonsAmount[0]) == null ? void 0 : _g.value;
|
|
@@ -36834,7 +36836,7 @@ function debug(params) {
|
|
|
36834
36836
|
function execute$a(params) {
|
|
36835
36837
|
var _a2;
|
|
36836
36838
|
(_a2 = params == null ? void 0 : params.success) == null ? void 0 : _a2.call(params, {
|
|
36837
|
-
v: "1.
|
|
36839
|
+
v: "1.74.0"
|
|
36838
36840
|
});
|
|
36839
36841
|
}
|
|
36840
36842
|
function useCallBack(props, ctx) {
|
|
@@ -37500,7 +37502,7 @@ const _hoisted_3$5 = /* @__PURE__ */ createBaseVNode("svg", {
|
|
|
37500
37502
|
fill: "#606060"
|
|
37501
37503
|
})
|
|
37502
37504
|
], -1);
|
|
37503
|
-
const _hoisted_4$
|
|
37505
|
+
const _hoisted_4$3 = [
|
|
37504
37506
|
_hoisted_3$5
|
|
37505
37507
|
];
|
|
37506
37508
|
const _hoisted_5$1 = /* @__PURE__ */ createBaseVNode("br", null, null, -1);
|
|
@@ -37552,7 +37554,7 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
37552
37554
|
], 2),
|
|
37553
37555
|
createBaseVNode("div", {
|
|
37554
37556
|
class: normalizeClass(_ctx.$style.cursor)
|
|
37555
|
-
}, _hoisted_4$
|
|
37557
|
+
}, _hoisted_4$3, 2),
|
|
37556
37558
|
createBaseVNode("div", {
|
|
37557
37559
|
class: normalizeClass(_ctx.$style.doneText)
|
|
37558
37560
|
}, [
|
|
@@ -41251,6 +41253,10 @@ const useRegisterPaymentFeaturesStore = defineStore(
|
|
|
41251
41253
|
);
|
|
41252
41254
|
return avaliableMethod;
|
|
41253
41255
|
},
|
|
41256
|
+
sbidNotificationDescription() {
|
|
41257
|
+
var _a2;
|
|
41258
|
+
return ((_a2 = this.selectedPaymentMethodInfo) == null ? void 0 : _a2.sbidCarrierBillingInfo) ? this.notificationDescription : void 0;
|
|
41259
|
+
},
|
|
41254
41260
|
availablePaymentMethodList() {
|
|
41255
41261
|
return this.paymentMethodList;
|
|
41256
41262
|
},
|
|
@@ -41325,6 +41331,7 @@ const useRegisterPaymentFeaturesStore = defineStore(
|
|
|
41325
41331
|
return;
|
|
41326
41332
|
}
|
|
41327
41333
|
const config2 = (_b = (_a2 = response.body) == null ? void 0 : _a2.unsigned) == null ? void 0 : _b.data;
|
|
41334
|
+
this.notificationDescription = config2.notificationDescription;
|
|
41328
41335
|
this.mode = getTopupSettingMode(config2);
|
|
41329
41336
|
if (this.mode === AutoTopupModeType.PRE_AUTO_TOPUP) {
|
|
41330
41337
|
this.ptacPaymentMethodId = (_c = config2.preTransactionAutoTopupConfiguration) == null ? void 0 : _c.paymentMethodId;
|
|
@@ -41373,7 +41380,7 @@ const useRegisterPaymentFeaturesStore = defineStore(
|
|
|
41373
41380
|
this.openSetting();
|
|
41374
41381
|
},
|
|
41375
41382
|
async initAppConfig() {
|
|
41376
|
-
let appConfig = getAppConfig();
|
|
41383
|
+
let appConfig = await getAppConfig();
|
|
41377
41384
|
if (!appConfig || !("autoChargeTopupHalfSheetAmount" in appConfig) || !("autoChargeRecommendedTopupAmount" in appConfig)) {
|
|
41378
41385
|
const isInit = await initAppConfiguration();
|
|
41379
41386
|
if (!isInit) {
|
|
@@ -41383,7 +41390,7 @@ const useRegisterPaymentFeaturesStore = defineStore(
|
|
|
41383
41390
|
};
|
|
41384
41391
|
return false;
|
|
41385
41392
|
}
|
|
41386
|
-
appConfig = getAppConfig();
|
|
41393
|
+
appConfig = await getAppConfig();
|
|
41387
41394
|
}
|
|
41388
41395
|
this.autoChargeTopupHalfSheetAmount = appConfig == null ? void 0 : appConfig.autoChargeTopupHalfSheetAmount;
|
|
41389
41396
|
this.autoChargeRecommendedTopupAmount = appConfig == null ? void 0 : appConfig.autoChargeRecommendedTopupAmount;
|
|
@@ -41588,11 +41595,69 @@ function getTopupSettingMode(config2) {
|
|
|
41588
41595
|
}
|
|
41589
41596
|
return AutoTopupModeType.UNREGISTERED;
|
|
41590
41597
|
}
|
|
41591
|
-
const
|
|
41598
|
+
const updateFooter$1 = "_updateFooter_dj37j_1";
|
|
41592
41599
|
var style0$e = {
|
|
41593
|
-
|
|
41600
|
+
updateFooter: updateFooter$1
|
|
41594
41601
|
};
|
|
41595
41602
|
const _sfc_main$l = defineComponent({
|
|
41603
|
+
components: {
|
|
41604
|
+
Button
|
|
41605
|
+
},
|
|
41606
|
+
emits: { afterLeave: () => true },
|
|
41607
|
+
setup() {
|
|
41608
|
+
const store = useRegisterPaymentFeaturesStore();
|
|
41609
|
+
const cancelUpdate = () => {
|
|
41610
|
+
store.cancelUpdate();
|
|
41611
|
+
};
|
|
41612
|
+
const update = () => {
|
|
41613
|
+
openWebviewInternal({
|
|
41614
|
+
url: getStoreUrl(),
|
|
41615
|
+
style: "external"
|
|
41616
|
+
});
|
|
41617
|
+
};
|
|
41618
|
+
return {
|
|
41619
|
+
cancelUpdate,
|
|
41620
|
+
update,
|
|
41621
|
+
lg: getLanguage().registerPaymentFeatures.autoTopupRoot.updateWarning,
|
|
41622
|
+
store
|
|
41623
|
+
};
|
|
41624
|
+
}
|
|
41625
|
+
});
|
|
41626
|
+
function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
41627
|
+
const _component_Button = resolveComponent("Button");
|
|
41628
|
+
return openBlock(), createElementBlock("div", {
|
|
41629
|
+
class: normalizeClass(_ctx.$style.updateFooter)
|
|
41630
|
+
}, [
|
|
41631
|
+
createVNode(_component_Button, {
|
|
41632
|
+
type: "primary",
|
|
41633
|
+
block: "",
|
|
41634
|
+
onClick: _ctx.update
|
|
41635
|
+
}, {
|
|
41636
|
+
default: withCtx(() => [
|
|
41637
|
+
createTextVNode(toDisplayString(_ctx.lg.update), 1)
|
|
41638
|
+
]),
|
|
41639
|
+
_: 1
|
|
41640
|
+
}, 8, ["onClick"]),
|
|
41641
|
+
createVNode(_component_Button, {
|
|
41642
|
+
type: "link",
|
|
41643
|
+
block: "",
|
|
41644
|
+
onClick: _ctx.cancelUpdate
|
|
41645
|
+
}, {
|
|
41646
|
+
default: withCtx(() => [
|
|
41647
|
+
createTextVNode(toDisplayString(_ctx.lg.cancel), 1)
|
|
41648
|
+
]),
|
|
41649
|
+
_: 1
|
|
41650
|
+
}, 8, ["onClick"])
|
|
41651
|
+
], 2);
|
|
41652
|
+
}
|
|
41653
|
+
const cssModules$e = {};
|
|
41654
|
+
cssModules$e["$style"] = style0$e;
|
|
41655
|
+
var RegisterPaymentFeaturesFooterUpdateWarning = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__cssModules", cssModules$e]]);
|
|
41656
|
+
const container$3 = "_container_1fgx4_1";
|
|
41657
|
+
var style0$d = {
|
|
41658
|
+
container: container$3
|
|
41659
|
+
};
|
|
41660
|
+
const _sfc_main$k = defineComponent({
|
|
41596
41661
|
name: "RegistePaymentFeaturesFooterView",
|
|
41597
41662
|
components: {
|
|
41598
41663
|
Button
|
|
@@ -41605,7 +41670,7 @@ const _sfc_main$l = defineComponent({
|
|
|
41605
41670
|
};
|
|
41606
41671
|
}
|
|
41607
41672
|
});
|
|
41608
|
-
function _sfc_render$
|
|
41673
|
+
function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
41609
41674
|
const _component_Button = resolveComponent("Button");
|
|
41610
41675
|
return openBlock(), createElementBlock("div", {
|
|
41611
41676
|
class: normalizeClass(_ctx.$style.container)
|
|
@@ -41622,18 +41687,18 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
41622
41687
|
}, 8, ["onClick"])
|
|
41623
41688
|
], 2);
|
|
41624
41689
|
}
|
|
41625
|
-
const cssModules$
|
|
41626
|
-
cssModules$
|
|
41627
|
-
var RegisterPaymentFeaturesFooterView = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
41690
|
+
const cssModules$d = {};
|
|
41691
|
+
cssModules$d["$style"] = style0$d;
|
|
41692
|
+
var RegisterPaymentFeaturesFooterView = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__cssModules", cssModules$d]]);
|
|
41628
41693
|
const container$2 = "_container_1t6ew_1";
|
|
41629
41694
|
const description$7 = "_description_1t6ew_6";
|
|
41630
41695
|
const enable = "_enable_1t6ew_24";
|
|
41631
|
-
var style0$
|
|
41696
|
+
var style0$c = {
|
|
41632
41697
|
container: container$2,
|
|
41633
41698
|
description: description$7,
|
|
41634
41699
|
enable
|
|
41635
41700
|
};
|
|
41636
|
-
const _sfc_main$
|
|
41701
|
+
const _sfc_main$j = defineComponent({
|
|
41637
41702
|
name: "RegisterPaymentFeaturesFooterViewWithEnableButton",
|
|
41638
41703
|
components: {
|
|
41639
41704
|
Button
|
|
@@ -41664,7 +41729,7 @@ const _sfc_main$k = defineComponent({
|
|
|
41664
41729
|
};
|
|
41665
41730
|
}
|
|
41666
41731
|
});
|
|
41667
|
-
function _sfc_render$
|
|
41732
|
+
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
41668
41733
|
const _component_Button = resolveComponent("Button");
|
|
41669
41734
|
return openBlock(), createElementBlock("div", {
|
|
41670
41735
|
class: normalizeClass(_ctx.$style.container)
|
|
@@ -41697,67 +41762,9 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
41697
41762
|
}, 8, ["onClick"])
|
|
41698
41763
|
], 2);
|
|
41699
41764
|
}
|
|
41700
|
-
const cssModules$d = {};
|
|
41701
|
-
cssModules$d["$style"] = style0$d;
|
|
41702
|
-
var RegisterPaymentFeaturesFooterViewWithEnableButton = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__cssModules", cssModules$d]]);
|
|
41703
|
-
const updateFooter$1 = "_updateFooter_dj37j_1";
|
|
41704
|
-
var style0$c = {
|
|
41705
|
-
updateFooter: updateFooter$1
|
|
41706
|
-
};
|
|
41707
|
-
const _sfc_main$j = defineComponent({
|
|
41708
|
-
components: {
|
|
41709
|
-
Button
|
|
41710
|
-
},
|
|
41711
|
-
emits: { afterLeave: () => true },
|
|
41712
|
-
setup() {
|
|
41713
|
-
const store = useRegisterPaymentFeaturesStore();
|
|
41714
|
-
const cancelUpdate = () => {
|
|
41715
|
-
store.cancelUpdate();
|
|
41716
|
-
};
|
|
41717
|
-
const update = () => {
|
|
41718
|
-
openWebviewInternal({
|
|
41719
|
-
url: getStoreUrl(),
|
|
41720
|
-
style: "external"
|
|
41721
|
-
});
|
|
41722
|
-
};
|
|
41723
|
-
return {
|
|
41724
|
-
cancelUpdate,
|
|
41725
|
-
update,
|
|
41726
|
-
lg: getLanguage().registerPaymentFeatures.autoTopupRoot.updateWarning,
|
|
41727
|
-
store
|
|
41728
|
-
};
|
|
41729
|
-
}
|
|
41730
|
-
});
|
|
41731
|
-
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
41732
|
-
const _component_Button = resolveComponent("Button");
|
|
41733
|
-
return openBlock(), createElementBlock("div", {
|
|
41734
|
-
class: normalizeClass(_ctx.$style.updateFooter)
|
|
41735
|
-
}, [
|
|
41736
|
-
createVNode(_component_Button, {
|
|
41737
|
-
type: "primary",
|
|
41738
|
-
block: "",
|
|
41739
|
-
onClick: _ctx.update
|
|
41740
|
-
}, {
|
|
41741
|
-
default: withCtx(() => [
|
|
41742
|
-
createTextVNode(toDisplayString(_ctx.lg.update), 1)
|
|
41743
|
-
]),
|
|
41744
|
-
_: 1
|
|
41745
|
-
}, 8, ["onClick"]),
|
|
41746
|
-
createVNode(_component_Button, {
|
|
41747
|
-
type: "link",
|
|
41748
|
-
block: "",
|
|
41749
|
-
onClick: _ctx.cancelUpdate
|
|
41750
|
-
}, {
|
|
41751
|
-
default: withCtx(() => [
|
|
41752
|
-
createTextVNode(toDisplayString(_ctx.lg.cancel), 1)
|
|
41753
|
-
]),
|
|
41754
|
-
_: 1
|
|
41755
|
-
}, 8, ["onClick"])
|
|
41756
|
-
], 2);
|
|
41757
|
-
}
|
|
41758
41765
|
const cssModules$c = {};
|
|
41759
41766
|
cssModules$c["$style"] = style0$c;
|
|
41760
|
-
var
|
|
41767
|
+
var RegisterPaymentFeaturesFooterViewWithEnableButton = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__cssModules", cssModules$c]]);
|
|
41761
41768
|
const method = "_method_151lr_1";
|
|
41762
41769
|
const icon$7 = "_icon_151lr_10";
|
|
41763
41770
|
const bankIcon = "_bankIcon_151lr_13";
|
|
@@ -41850,7 +41857,7 @@ const _sfc_main$i = defineComponent({
|
|
|
41850
41857
|
const _hoisted_1$9 = ["src"];
|
|
41851
41858
|
const _hoisted_2$3 = ["src"];
|
|
41852
41859
|
const _hoisted_3$2 = ["src"];
|
|
41853
|
-
const _hoisted_4 = ["src"];
|
|
41860
|
+
const _hoisted_4$2 = ["src"];
|
|
41854
41861
|
const _hoisted_5 = ["src"];
|
|
41855
41862
|
const _hoisted_6 = {
|
|
41856
41863
|
key: 0,
|
|
@@ -41934,7 +41941,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
41934
41941
|
class: normalizeClass(_ctx.$style.icon),
|
|
41935
41942
|
src: _ctx.img_iconRightArrowGray,
|
|
41936
41943
|
alt: ">"
|
|
41937
|
-
}, null, 10, _hoisted_4)
|
|
41944
|
+
}, null, 10, _hoisted_4$2)
|
|
41938
41945
|
], 2)) : createCommentVNode("", true)
|
|
41939
41946
|
])) : (openBlock(), createElementBlock("div", {
|
|
41940
41947
|
key: 1,
|
|
@@ -41973,26 +41980,32 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
41973
41980
|
const cssModules$b = {};
|
|
41974
41981
|
cssModules$b["$style"] = style0$b;
|
|
41975
41982
|
var AutoTopupMethod = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__cssModules", cssModules$b]]);
|
|
41976
|
-
const container$1 = "
|
|
41977
|
-
const mainContents = "
|
|
41978
|
-
const section = "
|
|
41979
|
-
const main = "
|
|
41980
|
-
const icon$6 = "
|
|
41981
|
-
const title$6 = "
|
|
41982
|
-
const description$6 = "
|
|
41983
|
-
const config = "
|
|
41984
|
-
const item = "
|
|
41985
|
-
const label = "
|
|
41986
|
-
const contents$5 = "
|
|
41987
|
-
const inner$5 = "
|
|
41988
|
-
const price = "
|
|
41989
|
-
const amount = "
|
|
41990
|
-
const unit$1 = "
|
|
41991
|
-
const notice = "
|
|
41992
|
-
const eMoneyOnlyNotice = "
|
|
41993
|
-
const noticeTitle = "
|
|
41994
|
-
const noticeDesc = "
|
|
41995
|
-
const updateMessage = "
|
|
41983
|
+
const container$1 = "_container_8526n_1";
|
|
41984
|
+
const mainContents = "_mainContents_8526n_7";
|
|
41985
|
+
const section = "_section_8526n_13";
|
|
41986
|
+
const main = "_main_8526n_7";
|
|
41987
|
+
const icon$6 = "_icon_8526n_21";
|
|
41988
|
+
const title$6 = "_title_8526n_25";
|
|
41989
|
+
const description$6 = "_description_8526n_40";
|
|
41990
|
+
const config = "_config_8526n_58";
|
|
41991
|
+
const item = "_item_8526n_63";
|
|
41992
|
+
const label = "_label_8526n_73";
|
|
41993
|
+
const contents$5 = "_contents_8526n_85";
|
|
41994
|
+
const inner$5 = "_inner_8526n_85";
|
|
41995
|
+
const price = "_price_8526n_91";
|
|
41996
|
+
const amount = "_amount_8526n_96";
|
|
41997
|
+
const unit$1 = "_unit_8526n_109";
|
|
41998
|
+
const notice = "_notice_8526n_122";
|
|
41999
|
+
const eMoneyOnlyNotice = "_eMoneyOnlyNotice_8526n_151";
|
|
42000
|
+
const noticeTitle = "_noticeTitle_8526n_155";
|
|
42001
|
+
const noticeDesc = "_noticeDesc_8526n_159";
|
|
42002
|
+
const updateMessage = "_updateMessage_8526n_162";
|
|
42003
|
+
const warningrow = "_warningrow_8526n_177";
|
|
42004
|
+
const sbcbwarning = "_sbcbwarning_8526n_182";
|
|
42005
|
+
const warningnote = "_warningnote_8526n_198";
|
|
42006
|
+
const warningicon = "_warningicon_8526n_207";
|
|
42007
|
+
const warningtitle = "_warningtitle_8526n_216";
|
|
42008
|
+
const warningtext = "_warningtext_8526n_230";
|
|
41996
42009
|
var style0$a = {
|
|
41997
42010
|
container: container$1,
|
|
41998
42011
|
mainContents,
|
|
@@ -42013,7 +42026,13 @@ var style0$a = {
|
|
|
42013
42026
|
eMoneyOnlyNotice,
|
|
42014
42027
|
noticeTitle,
|
|
42015
42028
|
noticeDesc,
|
|
42016
|
-
updateMessage
|
|
42029
|
+
updateMessage,
|
|
42030
|
+
warningrow,
|
|
42031
|
+
sbcbwarning,
|
|
42032
|
+
warningnote,
|
|
42033
|
+
warningicon,
|
|
42034
|
+
warningtitle,
|
|
42035
|
+
warningtext
|
|
42017
42036
|
};
|
|
42018
42037
|
const _sfc_main$h = defineComponent({
|
|
42019
42038
|
name: "RegisterPaymentFeaturesMainView",
|
|
@@ -42033,14 +42052,6 @@ const _sfc_main$h = defineComponent({
|
|
|
42033
42052
|
const containerStyle = {
|
|
42034
42053
|
height: `calc(100vh - ${h2.bottomHeight}px`
|
|
42035
42054
|
};
|
|
42036
|
-
const topupMethod = computed(
|
|
42037
|
-
() => {
|
|
42038
|
-
return store.selectedAvailableTopupMethod;
|
|
42039
|
-
}
|
|
42040
|
-
);
|
|
42041
|
-
const topupAmount2 = computed(() => {
|
|
42042
|
-
return store.minimumTopupAmount;
|
|
42043
|
-
});
|
|
42044
42055
|
const onSelectTopupMethod = () => {
|
|
42045
42056
|
store.openChooseTopupMethodSheet();
|
|
42046
42057
|
};
|
|
@@ -42053,16 +42064,25 @@ const _sfc_main$h = defineComponent({
|
|
|
42053
42064
|
const title2 = computed(() => {
|
|
42054
42065
|
return store.needUpdate ? lg2.titleNeedUpdate : lg2.title;
|
|
42055
42066
|
});
|
|
42056
|
-
const showEmoneyOnlyNotice = computed(() => {
|
|
42057
|
-
return store.showEmoneyOnlyNotice;
|
|
42058
|
-
});
|
|
42059
42067
|
return {
|
|
42060
|
-
topupAmount: topupAmount2,
|
|
42061
42068
|
onSelectTopupMethod,
|
|
42062
42069
|
formatAmount,
|
|
42070
|
+
getSoftbankStyle: computed(() => () => {
|
|
42071
|
+
var _a2, _b, _c;
|
|
42072
|
+
let style = {};
|
|
42073
|
+
if ((_a2 = store.notificationDescription) == null ? void 0 : _a2.color) {
|
|
42074
|
+
style.color = store.notificationDescription.color;
|
|
42075
|
+
}
|
|
42076
|
+
if ((_b = store.notificationDescription) == null ? void 0 : _b.backgroundColor) {
|
|
42077
|
+
style.backgroundColor = store.notificationDescription.backgroundColor;
|
|
42078
|
+
}
|
|
42079
|
+
if ((_c = store.notificationDescription) == null ? void 0 : _c.isBold) {
|
|
42080
|
+
style.fontWeight = "bold";
|
|
42081
|
+
}
|
|
42082
|
+
return style;
|
|
42083
|
+
}),
|
|
42063
42084
|
lg: lg2,
|
|
42064
42085
|
store,
|
|
42065
|
-
topupMethod,
|
|
42066
42086
|
onSelectTopupMethodSetting,
|
|
42067
42087
|
onSelectTopupAmount,
|
|
42068
42088
|
categoryStyle,
|
|
@@ -42071,15 +42091,17 @@ const _sfc_main$h = defineComponent({
|
|
|
42071
42091
|
img_iconTopupSetup,
|
|
42072
42092
|
img_iconRightArrowGray,
|
|
42073
42093
|
img_iconNotice,
|
|
42074
|
-
|
|
42075
|
-
|
|
42094
|
+
img_iconAlert,
|
|
42095
|
+
title: title2
|
|
42076
42096
|
};
|
|
42077
42097
|
}
|
|
42078
42098
|
});
|
|
42079
42099
|
const _hoisted_1$8 = ["src"];
|
|
42080
42100
|
const _hoisted_2$2 = ["src"];
|
|
42081
42101
|
const _hoisted_3$1 = ["src"];
|
|
42102
|
+
const _hoisted_4$1 = ["src"];
|
|
42082
42103
|
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
42104
|
+
var _a2;
|
|
42083
42105
|
const _component_AutoTopupMethod = resolveComponent("AutoTopupMethod");
|
|
42084
42106
|
const _component_RegisterPaymentFeaturesFooterUpdateWarning = resolveComponent("RegisterPaymentFeaturesFooterUpdateWarning");
|
|
42085
42107
|
const _component_RegisterPaymentFeaturesFooterViewWithEnableButton = resolveComponent("RegisterPaymentFeaturesFooterViewWithEnableButton");
|
|
@@ -42134,7 +42156,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
42134
42156
|
createBaseVNode("span", {
|
|
42135
42157
|
class: normalizeClass(_ctx.$style.amount),
|
|
42136
42158
|
"data-testid": "topup-amount"
|
|
42137
|
-
}, toDisplayString(_ctx.formatAmount(_ctx.
|
|
42159
|
+
}, toDisplayString(_ctx.formatAmount(_ctx.store.minimumTopupAmount)), 3),
|
|
42138
42160
|
createBaseVNode("span", {
|
|
42139
42161
|
class: normalizeClass(_ctx.$style.unit)
|
|
42140
42162
|
}, toDisplayString(_ctx.lg.unit), 3)
|
|
@@ -42150,37 +42172,61 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
42150
42172
|
], 2),
|
|
42151
42173
|
createBaseVNode("div", null, [
|
|
42152
42174
|
createVNode(_component_AutoTopupMethod, {
|
|
42153
|
-
"topup-method": _ctx.
|
|
42175
|
+
"topup-method": _ctx.store.selectedAvailableTopupMethod,
|
|
42154
42176
|
onSelectTopupMethod: _ctx.onSelectTopupMethod,
|
|
42155
42177
|
onSettingTopupMethod: _ctx.onSelectTopupMethodSetting
|
|
42156
42178
|
}, null, 8, ["topup-method", "onSelectTopupMethod", "onSettingTopupMethod"])
|
|
42157
42179
|
]),
|
|
42158
|
-
|
|
42180
|
+
_ctx.store.sbidNotificationDescription ? (openBlock(), createElementBlock("div", {
|
|
42181
|
+
key: 0,
|
|
42182
|
+
"data-testid": "sbid-notice",
|
|
42183
|
+
class: normalizeClass(_ctx.$style.warningnote),
|
|
42184
|
+
style: normalizeStyle(_ctx.getSoftbankStyle())
|
|
42185
|
+
}, [
|
|
42186
|
+
createBaseVNode("div", {
|
|
42187
|
+
class: normalizeClass(_ctx.$style.warningrow)
|
|
42188
|
+
}, [
|
|
42189
|
+
createBaseVNode("div", {
|
|
42190
|
+
class: normalizeClass(_ctx.$style.warningicon)
|
|
42191
|
+
}, [
|
|
42192
|
+
createBaseVNode("img", {
|
|
42193
|
+
src: (_a2 = _ctx.store.sbidNotificationDescription.headerIcon) != null ? _a2 : _ctx.img_iconAlert,
|
|
42194
|
+
alt: "warning"
|
|
42195
|
+
}, null, 8, _hoisted_3$1)
|
|
42196
|
+
], 2),
|
|
42197
|
+
createBaseVNode("div", {
|
|
42198
|
+
class: normalizeClass(_ctx.$style.sbcbwarning)
|
|
42199
|
+
}, toDisplayString(_ctx.store.sbidNotificationDescription.text), 3)
|
|
42200
|
+
], 2)
|
|
42201
|
+
], 6)) : createCommentVNode("", true),
|
|
42202
|
+
!_ctx.store.sbidNotificationDescription ? (openBlock(), createElementBlock("div", {
|
|
42203
|
+
key: 1,
|
|
42204
|
+
"data-testid": "emoney-notice",
|
|
42159
42205
|
class: normalizeClass([
|
|
42160
42206
|
_ctx.$style.notice,
|
|
42161
|
-
{ [_ctx.$style.eMoneyOnlyNotice]: _ctx.showEmoneyOnlyNotice }
|
|
42207
|
+
{ [_ctx.$style.eMoneyOnlyNotice]: _ctx.store.showEmoneyOnlyNotice }
|
|
42162
42208
|
])
|
|
42163
42209
|
}, [
|
|
42164
42210
|
createBaseVNode("div", {
|
|
42165
42211
|
class: normalizeClass(_ctx.$style.icon)
|
|
42166
42212
|
}, [
|
|
42167
42213
|
createBaseVNode("img", {
|
|
42168
|
-
src: _ctx.showEmoneyOnlyNotice ? _ctx.img_iconInfo : _ctx.img_iconNotice,
|
|
42214
|
+
src: _ctx.store.showEmoneyOnlyNotice ? _ctx.img_iconInfo : _ctx.img_iconNotice,
|
|
42169
42215
|
alt: ""
|
|
42170
|
-
}, null, 8,
|
|
42216
|
+
}, null, 8, _hoisted_4$1)
|
|
42171
42217
|
], 2),
|
|
42172
42218
|
createBaseVNode("div", {
|
|
42173
42219
|
class: normalizeClass(_ctx.$style.contents)
|
|
42174
42220
|
}, [
|
|
42175
|
-
_ctx.showEmoneyOnlyNotice ? (openBlock(), createElementBlock("p", {
|
|
42221
|
+
_ctx.store.showEmoneyOnlyNotice ? (openBlock(), createElementBlock("p", {
|
|
42176
42222
|
key: 0,
|
|
42177
42223
|
class: normalizeClass(_ctx.$style.noticeTitle)
|
|
42178
42224
|
}, toDisplayString(_ctx.lg.topupNoticeEmoneyOnlyTitle), 3)) : createCommentVNode("", true),
|
|
42179
42225
|
createBaseVNode("p", {
|
|
42180
42226
|
class: normalizeClass(_ctx.$style.noticeDesc)
|
|
42181
|
-
}, toDisplayString(_ctx.showEmoneyOnlyNotice ? _ctx.lg.topupNoticeEmoneyOnlyDesc : _ctx.lg.topupNotice), 3)
|
|
42227
|
+
}, toDisplayString(_ctx.store.showEmoneyOnlyNotice ? _ctx.lg.topupNoticeEmoneyOnlyDesc : _ctx.lg.topupNotice), 3)
|
|
42182
42228
|
], 2)
|
|
42183
|
-
], 2)
|
|
42229
|
+
], 2)) : createCommentVNode("", true)
|
|
42184
42230
|
], 2)) : (openBlock(), createElementBlock("div", {
|
|
42185
42231
|
key: 1,
|
|
42186
42232
|
class: normalizeClass(_ctx.$style.updateMessage)
|
|
@@ -43435,8 +43481,12 @@ const useSmsAuthStore = defineStore("smsAuth", {
|
|
|
43435
43481
|
this.countDownTimer();
|
|
43436
43482
|
this.uiState.loading = false;
|
|
43437
43483
|
},
|
|
43438
|
-
|
|
43439
|
-
this.uiState.otp = value2;
|
|
43484
|
+
async updateOtp(value2) {
|
|
43485
|
+
this.uiState.otp = value2.replace(/[^0-9]/g, "");
|
|
43486
|
+
if (this.uiState.otp.length !== 4) {
|
|
43487
|
+
return;
|
|
43488
|
+
}
|
|
43489
|
+
await this.verifyOtp();
|
|
43440
43490
|
},
|
|
43441
43491
|
closeErrorSheet() {
|
|
43442
43492
|
var _a2, _b;
|
|
@@ -43572,26 +43622,26 @@ const useSmsAuthStore = defineStore("smsAuth", {
|
|
|
43572
43622
|
}
|
|
43573
43623
|
}
|
|
43574
43624
|
});
|
|
43575
|
-
const container = "
|
|
43576
|
-
const mobileIcon = "
|
|
43577
|
-
const paypayMulti = "
|
|
43578
|
-
const title = "
|
|
43579
|
-
const subtitle = "
|
|
43580
|
-
const subtitle2 = "
|
|
43581
|
-
const otpField = "
|
|
43582
|
-
const exclaimIcon = "
|
|
43583
|
-
const resendBtn = "
|
|
43584
|
-
const subinfo = "
|
|
43585
|
-
const infoLink = "
|
|
43586
|
-
const otpInput = "
|
|
43587
|
-
const invalidOtp = "
|
|
43588
|
-
const otpInfo = "
|
|
43589
|
-
const otpPrefix = "
|
|
43590
|
-
const disabled = "
|
|
43591
|
-
const resend = "
|
|
43592
|
-
const helpLink = "
|
|
43593
|
-
const invlidOtp = "
|
|
43594
|
-
const cancel = "
|
|
43625
|
+
const container = "_container_puls4_1";
|
|
43626
|
+
const mobileIcon = "_mobileIcon_puls4_6";
|
|
43627
|
+
const paypayMulti = "_paypayMulti_puls4_12";
|
|
43628
|
+
const title = "_title_puls4_18";
|
|
43629
|
+
const subtitle = "_subtitle_puls4_38";
|
|
43630
|
+
const subtitle2 = "_subtitle2_puls4_58";
|
|
43631
|
+
const otpField = "_otpField_puls4_61";
|
|
43632
|
+
const exclaimIcon = "_exclaimIcon_puls4_70";
|
|
43633
|
+
const resendBtn = "_resendBtn_puls4_75";
|
|
43634
|
+
const subinfo = "_subinfo_puls4_89";
|
|
43635
|
+
const infoLink = "_infoLink_puls4_108";
|
|
43636
|
+
const otpInput = "_otpInput_puls4_126";
|
|
43637
|
+
const invalidOtp = "_invalidOtp_puls4_154";
|
|
43638
|
+
const otpInfo = "_otpInfo_puls4_157";
|
|
43639
|
+
const otpPrefix = "_otpPrefix_puls4_167";
|
|
43640
|
+
const disabled = "_disabled_puls4_186";
|
|
43641
|
+
const resend = "_resend_puls4_75";
|
|
43642
|
+
const helpLink = "_helpLink_puls4_203";
|
|
43643
|
+
const invlidOtp = "_invlidOtp_puls4_222";
|
|
43644
|
+
const cancel = "_cancel_puls4_238";
|
|
43595
43645
|
var style0$1 = {
|
|
43596
43646
|
container,
|
|
43597
43647
|
mobileIcon,
|
|
@@ -43630,7 +43680,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
43630
43680
|
}
|
|
43631
43681
|
},
|
|
43632
43682
|
emits: {
|
|
43633
|
-
|
|
43683
|
+
close: () => true,
|
|
43634
43684
|
cancel: () => true
|
|
43635
43685
|
},
|
|
43636
43686
|
setup(props, { emit }) {
|
|
@@ -43649,15 +43699,14 @@ const _sfc_main$6 = defineComponent({
|
|
|
43649
43699
|
complete: (_d = props == null ? void 0 : props.smsParams) == null ? void 0 : _d.complete
|
|
43650
43700
|
});
|
|
43651
43701
|
});
|
|
43652
|
-
const
|
|
43653
|
-
|
|
43654
|
-
|
|
43655
|
-
|
|
43656
|
-
|
|
43657
|
-
|
|
43658
|
-
}
|
|
43702
|
+
const otp = computed({
|
|
43703
|
+
get() {
|
|
43704
|
+
return smsAuthStore.uiState.otp;
|
|
43705
|
+
},
|
|
43706
|
+
set(val2) {
|
|
43707
|
+
smsAuthStore.updateOtp(val2);
|
|
43659
43708
|
}
|
|
43660
|
-
};
|
|
43709
|
+
});
|
|
43661
43710
|
const cancel2 = () => {
|
|
43662
43711
|
emit("cancel");
|
|
43663
43712
|
};
|
|
@@ -43665,7 +43714,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
43665
43714
|
() => smsAuthStore.result.completed,
|
|
43666
43715
|
(completed) => {
|
|
43667
43716
|
if (completed) {
|
|
43668
|
-
emit("close
|
|
43717
|
+
emit("close");
|
|
43669
43718
|
}
|
|
43670
43719
|
}
|
|
43671
43720
|
);
|
|
@@ -43680,7 +43729,6 @@ const _sfc_main$6 = defineComponent({
|
|
|
43680
43729
|
};
|
|
43681
43730
|
});
|
|
43682
43731
|
return {
|
|
43683
|
-
onInputChange,
|
|
43684
43732
|
style,
|
|
43685
43733
|
smsAuthStore,
|
|
43686
43734
|
otpInput: otpInput2,
|
|
@@ -43688,13 +43736,15 @@ const _sfc_main$6 = defineComponent({
|
|
|
43688
43736
|
img_paypayMulti,
|
|
43689
43737
|
img_mobileIcon,
|
|
43690
43738
|
img_exclaimIcon,
|
|
43691
|
-
heightStyles
|
|
43739
|
+
heightStyles,
|
|
43740
|
+
otp
|
|
43692
43741
|
};
|
|
43693
43742
|
}
|
|
43694
43743
|
});
|
|
43695
43744
|
const _hoisted_1$1 = ["src"];
|
|
43696
43745
|
const _hoisted_2 = ["src"];
|
|
43697
|
-
const _hoisted_3 = ["
|
|
43746
|
+
const _hoisted_3 = ["disabled"];
|
|
43747
|
+
const _hoisted_4 = ["src"];
|
|
43698
43748
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
43699
43749
|
const _component_Button = resolveComponent("Button");
|
|
43700
43750
|
const _component_ActionSheet = resolveComponent("ActionSheet");
|
|
@@ -43741,17 +43791,17 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43741
43791
|
class: normalizeClass(_ctx.style.otpPrefix)
|
|
43742
43792
|
}, toDisplayString(_ctx.smsAuthStore.uiState.prefix) + " - ", 3),
|
|
43743
43793
|
withDirectives(createBaseVNode("input", {
|
|
43794
|
+
disabled: _ctx.smsAuthStore.shouldShowError,
|
|
43744
43795
|
ref: "otpInput",
|
|
43745
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.
|
|
43796
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.otp = $event),
|
|
43746
43797
|
maxlength: "4",
|
|
43747
43798
|
type: "tel",
|
|
43748
43799
|
class: normalizeClass([
|
|
43749
43800
|
_ctx.style.otpInput,
|
|
43750
43801
|
{ [_ctx.style.invalidOtp]: _ctx.smsAuthStore.uiState.isInvalidOtpVisible }
|
|
43751
|
-
])
|
|
43752
|
-
|
|
43753
|
-
|
|
43754
|
-
[vModelText, _ctx.smsAuthStore.uiState.otp]
|
|
43802
|
+
])
|
|
43803
|
+
}, null, 10, _hoisted_3), [
|
|
43804
|
+
[vModelText, _ctx.otp]
|
|
43755
43805
|
])
|
|
43756
43806
|
], 2),
|
|
43757
43807
|
_ctx.smsAuthStore.uiState.isInvalidOtpVisible ? (openBlock(), createElementBlock("p", {
|
|
@@ -43765,7 +43815,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43765
43815
|
src: _ctx.img_exclaimIcon,
|
|
43766
43816
|
class: normalizeClass(_ctx.style.exclaimIcon),
|
|
43767
43817
|
alt: "!"
|
|
43768
|
-
}, null, 10,
|
|
43818
|
+
}, null, 10, _hoisted_4),
|
|
43769
43819
|
createBaseVNode("span", {
|
|
43770
43820
|
class: normalizeClass(_ctx.style.subinfo)
|
|
43771
43821
|
}, toDisplayString(_ctx.smsAuthStore.lg.smsAuth.subInfo), 3),
|
|
@@ -43782,7 +43832,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43782
43832
|
_ctx.smsAuthStore.uiState.timer === 0 ? (openBlock(), createElementBlock("p", {
|
|
43783
43833
|
key: 2,
|
|
43784
43834
|
class: normalizeClass(_ctx.style.resendBtn),
|
|
43785
|
-
onClick: _cache[
|
|
43835
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.smsAuthStore.resend && _ctx.smsAuthStore.resend(...args))
|
|
43786
43836
|
}, toDisplayString(_ctx.smsAuthStore.lg.smsAuth.resendText), 3)) : createCommentVNode("", true),
|
|
43787
43837
|
createBaseVNode("a", {
|
|
43788
43838
|
class: normalizeClass([_ctx.style.helpLink, "otp-info"]),
|
|
@@ -43840,7 +43890,7 @@ const initSmsAuth = (params) => {
|
|
|
43840
43890
|
(_a2 = params == null ? void 0 : params.fail) == null ? void 0 : _a2.call(params, { errorCode: MiniAppErrorType.userCanceled });
|
|
43841
43891
|
closeSheet();
|
|
43842
43892
|
},
|
|
43843
|
-
|
|
43893
|
+
onClose: () => {
|
|
43844
43894
|
closeSheet();
|
|
43845
43895
|
}
|
|
43846
43896
|
});
|
|
@@ -43892,7 +43942,7 @@ const _sfc_main$5 = defineComponent({
|
|
|
43892
43942
|
}
|
|
43893
43943
|
},
|
|
43894
43944
|
emits: {
|
|
43895
|
-
|
|
43945
|
+
close: () => true
|
|
43896
43946
|
},
|
|
43897
43947
|
setup(props, { emit }) {
|
|
43898
43948
|
const lg2 = getLanguage();
|
|
@@ -43923,7 +43973,7 @@ const _sfc_main$5 = defineComponent({
|
|
|
43923
43973
|
onClick: () => {
|
|
43924
43974
|
var _a2, _b;
|
|
43925
43975
|
(_b = (_a2 = props == null ? void 0 : props.callback) == null ? void 0 : _a2.fail) == null ? void 0 : _b.call(_a2, { errorCode: props.errorCode });
|
|
43926
|
-
emit("close
|
|
43976
|
+
emit("close");
|
|
43927
43977
|
}
|
|
43928
43978
|
}
|
|
43929
43979
|
];
|
|
@@ -43953,7 +44003,7 @@ const _sfc_main$5 = defineComponent({
|
|
|
43953
44003
|
onClick: () => {
|
|
43954
44004
|
var _a2, _b;
|
|
43955
44005
|
(_b = (_a2 = props == null ? void 0 : props.callback) == null ? void 0 : _a2.fail) == null ? void 0 : _b.call(_a2, { errorCode: props.errorCode });
|
|
43956
|
-
emit("close
|
|
44006
|
+
emit("close");
|
|
43957
44007
|
}
|
|
43958
44008
|
}
|
|
43959
44009
|
];
|
|
@@ -43999,7 +44049,7 @@ const initKycPassportError = (params, errorCode) => {
|
|
|
43999
44049
|
show: show2.value,
|
|
44000
44050
|
errorCode,
|
|
44001
44051
|
callback: params,
|
|
44002
|
-
|
|
44052
|
+
onClose: () => {
|
|
44003
44053
|
closeSheet();
|
|
44004
44054
|
}
|
|
44005
44055
|
});
|