v1.0 with SW PWA enabled

This commit is contained in:
Blomios
2026-01-01 17:40:53 +01:00
parent 1c0e22aac1
commit 3c8bebb2ad
29775 changed files with 2197201 additions and 119080 deletions

51
frontend/node_modules/date-fns/parse/_lib/Setter.mjs generated vendored Normal file
View File

@ -0,0 +1,51 @@
import { transpose } from "../../transpose.mjs";
import { constructFrom } from "../../constructFrom.mjs";
const TIMEZONE_UNIT_PRIORITY = 10;
export class Setter {
subPriority = 0;
validate(_utcDate, _options) {
return true;
}
}
export 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);
}
}
export class DateToSystemTimezoneSetter extends Setter {
priority = TIMEZONE_UNIT_PRIORITY;
subPriority = -1;
set(date, flags) {
if (flags.timestampIsSet) return date;
return constructFrom(date, transpose(date, Date));
}
}