Files
klz-cables.com/.pnpm-store/v10/files/6f/cc3ba90f27d9f33ddee9c7078da1ef33220e20fda2a6a1071d7453df1be5f76b5dd969921e2009be580d394ab0762f49c27de53c176a2cc02b00595fc9372e
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

60 lines
1.2 KiB
Plaintext

"use strict";
exports.ValueSetter =
exports.Setter =
exports.DateToSystemTimezoneSetter =
void 0;
var _index = require("../../transpose.js");
var _index2 = require("../../constructFrom.js");
const TIMEZONE_UNIT_PRIORITY = 10;
class Setter {
subPriority = 0;
validate(_utcDate, _options) {
return true;
}
}
exports.Setter = Setter;
class ValueSetter extends Setter {
constructor(
value,
validateValue,
setValue,
priority,
subPriority,
) {
super();
this.value = value;
this.validateValue = validateValue;
this.setValue = setValue;
this.priority = priority;
if (subPriority) {
this.subPriority = subPriority;
}
}
validate(date, options) {
return this.validateValue(date, this.value, options);
}
set(date, flags, options) {
return this.setValue(date, flags, this.value, options);
}
}
exports.ValueSetter = ValueSetter;
class DateToSystemTimezoneSetter extends Setter {
priority = TIMEZONE_UNIT_PRIORITY;
subPriority = -1;
set(date, flags) {
if (flags.timestampIsSet) return date;
return (0, _index2.constructFrom)(date, (0, _index.transpose)(date, Date));
}
}
exports.DateToSystemTimezoneSetter = DateToSystemTimezoneSetter;