Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

60 lines
1.6 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: a3e5634aaf3cd51c.d183579820.js
* Module id: 99500
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e) => {
"use strict";
let t = ["powerCharge", "modelPointsCard", "paywall"];
function r(e) {
var r;
if (
!e ||
"object" != typeof e ||
Array.isArray(e) ||
"modal-popup" !== e.type ||
!e.modalParams ||
!("string" == typeof (r = e.modalParams.id) && t.includes(r))
)
return null;
let { id: n, tab: o, defaultCardId: i } = e.modalParams;
return {
type: "modal-popup",
modalParams: {
id: n,
...("string" == typeof o ? { tab: o } : {}),
...("string" == typeof i ? { defaultCardId: i } : {}),
},
};
}
function n(e) {
if (!e) return null;
try {
let t = JSON.parse(e);
return r(t?.action);
} catch {
return null;
}
}
function o(e) {
let { id: t, tab: r, defaultCardId: n } = e.modalParams,
o = n ? { openSku: Number(n) } : {};
return "modelPointsCard" === t
? { intent: "purchase_vip", isShowChargePop: !0, chargeType: 2, ...o }
: "powerCharge" === t
? { intent: "purchase_vip", isShowChargePop: !0, chargeType: 1, ...o }
: { intent: "purchase_vip", ...(r ? { paywall: r } : {}), ...o };
}
e.s([
"parseBannerAction",
() => r,
"resolveBannerAction",
() => n,
"toVipParams",
() => o,
]);
};
export default moduleFactory;