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: 36466d3530b7d918.083c839b6e.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),
a = 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,
},
o = Object.keys(n);
function i(e) {
let {
response: i,
defaultMsg: s,
billingReferer: l,
modelVersionUuid: c,
extraVipParams: u,
} = e;
if (!i.code) return !1;
let d = String(i.code),
p = t.commercialStore
.getState()
.commercialConfig?.errorCodeMap?.find((e) => e.errorCode === d);
if (!o.includes(d) && !p) return !1;
let m = l ?? p?.billingReferer ?? n[d] ?? 0,
{ vipInfo: f, teamInfo: h } = r.vipInfoStore.getState(),
g = !!f?.teamId,
v = g && !!h?.owner;
return (
(0, a.openVipModel)({
failurePrompt: [p?.title || i.msg || s || ""],
billingReferer: [m],
errorCode: d,
modelVersionUuid: c ?? void 0,
...(g && !u?.paywall
? { paywall: v ? "team" : "team-member-restricted" }
: {}),
...u,
}),
!0
);
}
function s(e) {
return o.includes(String(e));
}
function l(e) {
return n[String(e)];
}
e.s([
"COMMERCIAL_ERROR_CODES",
0,
o,
"getBaseBillingReferer",
() => l,
"handleCommercialError",
() => i,
"isCommercialErrorCode",
() => s,
]);
};
export default moduleFactory;