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: c412b79b8f787345.3b8bfd201f.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: a, tab: n, defaultCardId: s } = e.modalParams;
return {
type: "modal-popup",
modalParams: {
id: a,
...("string" == typeof n ? { tab: n } : {}),
...("string" == typeof s ? { defaultCardId: s } : {}),
},
};
}
function a(e) {
if (!e) return null;
try {
let t = JSON.parse(e);
return r(t?.action);
} catch {
return null;
}
}
function n(e) {
let { id: t, tab: r, defaultCardId: a } = e.modalParams,
n = a ? { openSku: Number(a) } : {};
return "modelPointsCard" === t
? { intent: "purchase_vip", isShowChargePop: !0, chargeType: 2, ...n }
: "powerCharge" === t
? { intent: "purchase_vip", isShowChargePop: !0, chargeType: 1, ...n }
: { intent: "purchase_vip", ...(r ? { paywall: r } : {}), ...n };
}
e.s([
"parseBannerAction",
() => r,
"resolveBannerAction",
() => a,
"toVipParams",
() => n,
]);
};
export default moduleFactory;