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

75 lines
2.3 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: cde068e14ffee6a8.f8b5a2ab76.js
* Module id: 136036
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e) => {
"use strict";
let t = new Set(["resolution", "noVideo"]);
function i(e) {
let t;
if (!e) return {};
let i = e.settings || {};
"string" == typeof i.resolution
? (t = i.resolution)
: "string" == typeof i.resolution_auto && (t = i.resolution_auto);
let n = e.videoList;
return { resolution: t, noVideo: !Array.isArray(n) || 0 === n.length };
}
function n(e, i) {
var n;
let r = (function (e) {
if (!e) return;
let t = e.properties;
return t?.strikethroughPrice;
})(e);
return (
!0 === r ||
(!(!1 === r || null == r || "object" != typeof r || Array.isArray(r)) &&
!1 !== r.active &&
(null == (n = r.rules) ||
(Array.isArray(n)
? 0 === n.length
: "object" != typeof n ||
null === n ||
0 === Object.keys(n).length) ||
(function e(i, n) {
return (
null == i ||
(Array.isArray(i)
? 0 === i.length || i.some((t) => e(t, n))
: "object" != typeof i ||
(function (e, i) {
let n = !0,
r = !1;
for (let a of t)
a in e &&
((r = !0),
"resolution" === a
? (n = n && i.resolution === e.resolution)
: "noVideo" === a &&
(n = n && i.noVideo === e.noVideo));
return !r || n;
})(i, n))
);
})(r.rules, i ?? {})))
);
}
function r(e) {
if (!e.strikethroughPrice) return null;
let t = e.originalPrice ?? e.power;
return { primary: e.power, strikeThrough: t };
}
e.s([
"buildStrikethroughEvaluationContextFromParams",
() => i,
"isStrikethroughPriceEnabled",
() => n,
"resolveStrikethroughPowerDisplay",
() => r,
]);
};
export default moduleFactory;