1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 10:19:24 +02:00

Show a report for total users chart

This commit is contained in:
Daniel Neto 2025-07-10 15:28:42 -03:00
parent 794938db72
commit 4d064adf1b
5397 changed files with 313100 additions and 365 deletions

66
node_modules/date-fns/parse/_lib/Setter.cjs generated vendored Normal file
View file

@ -0,0 +1,66 @@
"use strict";
exports.ValueSetter = exports.Setter = exports.DateTimezoneSetter = void 0;
var _index = require("../../constructFrom.cjs");
var _index2 = require("../../transpose.cjs");
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 DateTimezoneSetter extends Setter {
priority = TIMEZONE_UNIT_PRIORITY;
subPriority = -1;
constructor(context, reference) {
super();
this.context =
context || ((date) => (0, _index.constructFrom)(reference, date));
}
set(date, flags) {
if (flags.timestampIsSet) return date;
return (0, _index.constructFrom)(
date,
(0, _index2.transpose)(date, this.context),
);
}
}
exports.DateTimezoneSetter = DateTimezoneSetter;