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

149 lines
4.6 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 5d5b47876e53e564.da1ba52a93.js
* Module id: 736689
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e) => {
"use strict";
var t = e.i(291487);
let r = { 2: "基础", 3: "专业", 4: "大师", 5: "旗舰", 6: "尊享" };
function n(e) {
return e.toLocaleString("zh-CN");
}
function o(e) {
let t = Math.max(0, Math.floor(e)),
r = Math.floor(t / 86400),
n = Math.floor((t % 86400) / 3600);
return { d: r, h: n, m: Math.floor((t % 3600) / 60), sec: t % 60 };
}
function a(e) {
return String(e).padStart(2, "0");
}
function i(e, t, r) {
return Math.min(Math.max(e, t), r);
}
function l(e) {
let t = e?.purchaseConfig;
if (!t) return !1;
let { purchaseLimit: r, purchasedCount: n } = t;
return "number" == typeof r && !(r <= 0) && n >= r;
}
function s(e, t, r, n) {
return i(t + Math.round((e - t) / n) * n, t, r);
}
function c(e, t, r, n) {
if (!Number.isFinite(e) || n <= 0) return i(t, t, r);
let o = i(Math.round(e), t, r),
a = (((o - t) % n) + n) % n;
return 0 === a ? o : i(o + (n - a), t, r);
}
function u(e, t) {
return Math.round((100 * e) / t);
}
function d(e) {
return (
(e && 0 !== e.length && r[e.slice().sort((e, t) => e - t)[0]]) || ""
);
}
function f(e) {
if (!e || 0 === e.length) return "";
let t = e
.slice()
.sort((e, t) => e - t)
.map((e) => r[e])
.filter(Boolean);
return 0 === t.length ? "" : `* ${t.join("/")}会员可购买`;
}
function m(e) {
if (!e || 0 === e.length) return "";
let t = e
.slice()
.sort((e, t) => e - t)
.map((e) => r[e])
.filter(Boolean);
return 0 === t.length ? "" : `${t.join("/")}会员可购买`;
}
let p = {
byGroupKey: {
kling: {},
"lib-nano": {
iconSrc:
"https://liblibai-online.liblib.cloud/web/4e7115e6ee6947b78d73e0203a85fc56/8d5f4fb5-8132-4049-b902-7eca7db0de1d.svg",
bgColor: "#EEE8F7",
bgColorDark: "#2A2038",
bgImage:
"https://liblibai-online.liblib.cloud/web/4e7115e6ee6947b78d73e0203a85fc56/8ff6077e-af2c-49f7-9456-22f3936672cd.svg",
},
"seedance-2": {
iconSrc:
"https://liblibai-online.liblib.cloud/web/4e7115e6ee6947b78d73e0203a85fc56/9207509b-a5d5-47af-944b-1894b469735f.svg",
bgColor: "#E4EBF9",
bgColorDark: "#222A3E",
bgImage:
"https://liblibai-online.liblib.cloud/web/4e7115e6ee6947b78d73e0203a85fc56/49209a70-1638-4737-a765-6515ebe248b1.svg",
},
"seedance-2-1080p": {
iconSrc:
"https://liblibai-online.liblib.cloud/web/4e7115e6ee6947b78d73e0203a85fc56/9207509b-a5d5-47af-944b-1894b469735f.svg",
bgColor: "#F0EFD7",
bgColorDark: "#222",
bgImage:
"https://liblibai-online.liblib.cloud/web/4e7115e6ee6947b78d73e0203a85fc56/56d3b12d-f631-4e4b-9dbc-0dda43f20bdd.svg",
bgImageDark:
"https://liblibai-online.liblib.cloud/web/4e7115e6ee6947b78d73e0203a85fc56/ddbc6b3e-6645-4edd-9186-2e41db61b300.svg",
},
},
defaultGlowColor: "#ffc95d",
};
function h(e) {
if (null == e) return p;
let t = { ...p.byGroupKey };
if (e.byGroupKey)
for (let [r, n] of Object.entries(e.byGroupKey)) n && (t[r] = n);
return {
byGroupKey: t,
defaultGlowColor: e.defaultGlowColor ?? p.defaultGlowColor,
};
}
function g(e, r) {
let n = r.byGroupKey[e.groupKey || ""]?.iconSrc;
return n || e.introduction?.[0]?.icon || t.STATIC_CDN_MAP["noVip.svg"];
}
function b(e, t) {
return t.byGroupKey[e || ""]?.glowColor ?? t.defaultGlowColor;
}
e.s([
"ceilCustomPointsToStep",
() => c,
"clamp",
() => i,
"computeCustomPriceFen",
() => u,
"formatComma",
() => n,
"getAccountLevelLabel",
() => f,
"getAccountLevelPurchaseLine",
() => m,
"getMinAccountLevelName",
() => d,
"isSkuPurchaseLimitReached",
() => l,
"modelPointsCardGlowColor",
() => b,
"modelPointsCardIconSrc",
() => g,
"pad2",
() => a,
"resolveModelPointsCardTheme",
() => h,
"snapCustomPointsToStep",
() => s,
"splitCountdown",
() => o,
]);
};
export default moduleFactory;