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

87 lines
2.1 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: fb331b08bcf9fa6e.3b67e0d42a.js
* Module id: 19408
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e) => {
"use strict";
e.i(370357);
var t = e.i(436178),
r = e.i(185264),
o = e.i(963527);
let n = {
0x47868c88: 1,
0x47868c8d: 3,
0x47868c92: 5,
0x47868c94: 13,
0x47868c95: 14,
0x47868d9d: 19,
0x47868caa: 32,
0x47868c9d: 33,
0x47868c9e: 37,
0x47868d9f: 43,
0x47868da0: 44,
0x47868ca0: 45,
0x47868da1: 58,
0x47868ca2: 162,
0x47868ca3: 163,
0x47868c8a: -138,
0x47868c8b: -139,
0x47868ca4: 164,
10024: 10024,
},
i = Object.keys(n);
function a(e) {
let {
response: a,
defaultMsg: l,
billingReferer: s,
modelVersionUuid: u,
extraVipParams: d,
} = e;
if (!a.code) return !1;
let c = String(a.code),
f = t.commercialStore
.getState()
.commercialConfig?.errorCodeMap?.find((e) => e.errorCode === c);
if (!i.includes(c) && !f) return !1;
let p = s ?? f?.billingReferer ?? n[c] ?? 0,
{ vipInfo: m, teamInfo: h } = r.vipInfoStore.getState(),
v = !!m?.teamId,
g = v && !!h?.owner;
return (
(0, o.openVipModel)({
failurePrompt: [f?.title || a.msg || l || ""],
billingReferer: [p],
errorCode: c,
modelVersionUuid: u ?? void 0,
...(v && !d?.paywall
? { paywall: g ? "team" : "team-member-restricted" }
: {}),
...d,
}),
!0
);
}
function l(e) {
return i.includes(String(e));
}
function s(e) {
return n[String(e)];
}
e.s([
"COMMERCIAL_ERROR_CODES",
0,
i,
"getBaseBillingReferer",
() => s,
"handleCommercialError",
() => a,
"isCommercialErrorCode",
() => l,
]);
};
export default moduleFactory;