Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/dist
File: components.js
onChange,
[56500] Fix | Delete
events = [],
[56501] Fix | Delete
isInvalidDate,
[56502] Fix | Delete
onMonthPreviewed,
[56503] Fix | Delete
startOfWeek: weekStartsOn = 0
[56504] Fix | Delete
}) {
[56505] Fix | Delete
const date = currentDate ? inputToDate(currentDate) : new Date();
[56506] Fix | Delete
const {
[56507] Fix | Delete
calendar,
[56508] Fix | Delete
viewing,
[56509] Fix | Delete
setSelected,
[56510] Fix | Delete
setViewing,
[56511] Fix | Delete
isSelected,
[56512] Fix | Delete
viewPreviousMonth,
[56513] Fix | Delete
viewNextMonth
[56514] Fix | Delete
} = useLilius({
[56515] Fix | Delete
selected: [startOfDay_startOfDay(date)],
[56516] Fix | Delete
viewing: startOfDay_startOfDay(date),
[56517] Fix | Delete
weekStartsOn
[56518] Fix | Delete
});
[56519] Fix | Delete
[56520] Fix | Delete
// Used to implement a roving tab index. Tracks the day that receives focus
[56521] Fix | Delete
// when the user tabs into the calendar.
[56522] Fix | Delete
const [focusable, setFocusable] = (0,external_wp_element_namespaceObject.useState)(startOfDay_startOfDay(date));
[56523] Fix | Delete
[56524] Fix | Delete
// Allows us to only programmatically focus() a day when focus was already
[56525] Fix | Delete
// within the calendar. This stops us stealing focus from e.g. a TimePicker
[56526] Fix | Delete
// input.
[56527] Fix | Delete
const [isFocusWithinCalendar, setIsFocusWithinCalendar] = (0,external_wp_element_namespaceObject.useState)(false);
[56528] Fix | Delete
[56529] Fix | Delete
// Update internal state when currentDate prop changes.
[56530] Fix | Delete
const [prevCurrentDate, setPrevCurrentDate] = (0,external_wp_element_namespaceObject.useState)(currentDate);
[56531] Fix | Delete
if (currentDate !== prevCurrentDate) {
[56532] Fix | Delete
setPrevCurrentDate(currentDate);
[56533] Fix | Delete
setSelected([startOfDay_startOfDay(date)]);
[56534] Fix | Delete
setViewing(startOfDay_startOfDay(date));
[56535] Fix | Delete
setFocusable(startOfDay_startOfDay(date));
[56536] Fix | Delete
}
[56537] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(styles_Wrapper, {
[56538] Fix | Delete
className: "components-datetime__date",
[56539] Fix | Delete
role: "application",
[56540] Fix | Delete
"aria-label": (0,external_wp_i18n_namespaceObject.__)('Calendar'),
[56541] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Navigator, {
[56542] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
[56543] Fix | Delete
icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? arrow_right : arrow_left,
[56544] Fix | Delete
variant: "tertiary",
[56545] Fix | Delete
"aria-label": (0,external_wp_i18n_namespaceObject.__)('View previous month'),
[56546] Fix | Delete
onClick: () => {
[56547] Fix | Delete
viewPreviousMonth();
[56548] Fix | Delete
setFocusable(subMonths_subMonths(focusable, 1));
[56549] Fix | Delete
onMonthPreviewed?.(format(subMonths_subMonths(viewing, 1), TIMEZONELESS_FORMAT));
[56550] Fix | Delete
}
[56551] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(NavigatorHeading, {
[56552] Fix | Delete
level: 3,
[56553] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("strong", {
[56554] Fix | Delete
children: (0,external_wp_date_namespaceObject.dateI18n)('F', viewing, -viewing.getTimezoneOffset())
[56555] Fix | Delete
}), ' ', (0,external_wp_date_namespaceObject.dateI18n)('Y', viewing, -viewing.getTimezoneOffset())]
[56556] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(build_module_button, {
[56557] Fix | Delete
icon: (0,external_wp_i18n_namespaceObject.isRTL)() ? arrow_left : arrow_right,
[56558] Fix | Delete
variant: "tertiary",
[56559] Fix | Delete
"aria-label": (0,external_wp_i18n_namespaceObject.__)('View next month'),
[56560] Fix | Delete
onClick: () => {
[56561] Fix | Delete
viewNextMonth();
[56562] Fix | Delete
setFocusable(addMonths_addMonths(focusable, 1));
[56563] Fix | Delete
onMonthPreviewed?.(format(addMonths_addMonths(viewing, 1), TIMEZONELESS_FORMAT));
[56564] Fix | Delete
}
[56565] Fix | Delete
})]
[56566] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(Calendar, {
[56567] Fix | Delete
onFocus: () => setIsFocusWithinCalendar(true),
[56568] Fix | Delete
onBlur: () => setIsFocusWithinCalendar(false),
[56569] Fix | Delete
children: [calendar[0][0].map(day => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DayOfWeek, {
[56570] Fix | Delete
children: (0,external_wp_date_namespaceObject.dateI18n)('D', day, -day.getTimezoneOffset())
[56571] Fix | Delete
}, day.toString())), calendar[0].map(week => week.map((day, index) => {
[56572] Fix | Delete
if (!isSameMonth(day, viewing)) {
[56573] Fix | Delete
return null;
[56574] Fix | Delete
}
[56575] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(date_Day, {
[56576] Fix | Delete
day: day,
[56577] Fix | Delete
column: index + 1,
[56578] Fix | Delete
isSelected: isSelected(day),
[56579] Fix | Delete
isFocusable: isEqual_isEqual(day, focusable),
[56580] Fix | Delete
isFocusAllowed: isFocusWithinCalendar,
[56581] Fix | Delete
isToday: isSameDay(day, new Date()),
[56582] Fix | Delete
isInvalid: isInvalidDate ? isInvalidDate(day) : false,
[56583] Fix | Delete
numEvents: events.filter(event => isSameDay(event.date, day)).length,
[56584] Fix | Delete
onClick: () => {
[56585] Fix | Delete
setSelected([day]);
[56586] Fix | Delete
setFocusable(day);
[56587] Fix | Delete
onChange?.(format(
[56588] Fix | Delete
// Don't change the selected date's time fields.
[56589] Fix | Delete
new Date(day.getFullYear(), day.getMonth(), day.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()), TIMEZONELESS_FORMAT));
[56590] Fix | Delete
},
[56591] Fix | Delete
onKeyDown: event => {
[56592] Fix | Delete
let nextFocusable;
[56593] Fix | Delete
if (event.key === 'ArrowLeft') {
[56594] Fix | Delete
nextFocusable = addDays_addDays(day, (0,external_wp_i18n_namespaceObject.isRTL)() ? 1 : -1);
[56595] Fix | Delete
}
[56596] Fix | Delete
if (event.key === 'ArrowRight') {
[56597] Fix | Delete
nextFocusable = addDays_addDays(day, (0,external_wp_i18n_namespaceObject.isRTL)() ? -1 : 1);
[56598] Fix | Delete
}
[56599] Fix | Delete
if (event.key === 'ArrowUp') {
[56600] Fix | Delete
nextFocusable = subWeeks(day, 1);
[56601] Fix | Delete
}
[56602] Fix | Delete
if (event.key === 'ArrowDown') {
[56603] Fix | Delete
nextFocusable = addWeeks_addWeeks(day, 1);
[56604] Fix | Delete
}
[56605] Fix | Delete
if (event.key === 'PageUp') {
[56606] Fix | Delete
nextFocusable = subMonths_subMonths(day, 1);
[56607] Fix | Delete
}
[56608] Fix | Delete
if (event.key === 'PageDown') {
[56609] Fix | Delete
nextFocusable = addMonths_addMonths(day, 1);
[56610] Fix | Delete
}
[56611] Fix | Delete
if (event.key === 'Home') {
[56612] Fix | Delete
nextFocusable = startOfWeek_startOfWeek(day);
[56613] Fix | Delete
}
[56614] Fix | Delete
if (event.key === 'End') {
[56615] Fix | Delete
nextFocusable = startOfDay_startOfDay(endOfWeek_endOfWeek(day));
[56616] Fix | Delete
}
[56617] Fix | Delete
if (nextFocusable) {
[56618] Fix | Delete
event.preventDefault();
[56619] Fix | Delete
setFocusable(nextFocusable);
[56620] Fix | Delete
if (!isSameMonth(nextFocusable, viewing)) {
[56621] Fix | Delete
setViewing(nextFocusable);
[56622] Fix | Delete
onMonthPreviewed?.(format(nextFocusable, TIMEZONELESS_FORMAT));
[56623] Fix | Delete
}
[56624] Fix | Delete
}
[56625] Fix | Delete
}
[56626] Fix | Delete
}, day.toString());
[56627] Fix | Delete
}))]
[56628] Fix | Delete
})]
[56629] Fix | Delete
});
[56630] Fix | Delete
}
[56631] Fix | Delete
function date_Day({
[56632] Fix | Delete
day,
[56633] Fix | Delete
column,
[56634] Fix | Delete
isSelected,
[56635] Fix | Delete
isFocusable,
[56636] Fix | Delete
isFocusAllowed,
[56637] Fix | Delete
isToday,
[56638] Fix | Delete
isInvalid,
[56639] Fix | Delete
numEvents,
[56640] Fix | Delete
onClick,
[56641] Fix | Delete
onKeyDown
[56642] Fix | Delete
}) {
[56643] Fix | Delete
const ref = (0,external_wp_element_namespaceObject.useRef)();
[56644] Fix | Delete
[56645] Fix | Delete
// Focus the day when it becomes focusable, e.g. because an arrow key is
[56646] Fix | Delete
// pressed. Only do this if focus is allowed - this stops us stealing focus
[56647] Fix | Delete
// from e.g. a TimePicker input.
[56648] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[56649] Fix | Delete
if (ref.current && isFocusable && isFocusAllowed) {
[56650] Fix | Delete
ref.current.focus();
[56651] Fix | Delete
}
[56652] Fix | Delete
// isFocusAllowed is not a dep as there is no point calling focus() on
[56653] Fix | Delete
// an already focused element.
[56654] Fix | Delete
// eslint-disable-next-line react-hooks/exhaustive-deps
[56655] Fix | Delete
}, [isFocusable]);
[56656] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DayButton, {
[56657] Fix | Delete
ref: ref,
[56658] Fix | Delete
className: "components-datetime__date__day" // Unused, for backwards compatibility.
[56659] Fix | Delete
,
[56660] Fix | Delete
disabled: isInvalid,
[56661] Fix | Delete
tabIndex: isFocusable ? 0 : -1,
[56662] Fix | Delete
"aria-label": getDayLabel(day, isSelected, numEvents),
[56663] Fix | Delete
column: column,
[56664] Fix | Delete
isSelected: isSelected,
[56665] Fix | Delete
isToday: isToday,
[56666] Fix | Delete
hasEvents: numEvents > 0,
[56667] Fix | Delete
onClick: onClick,
[56668] Fix | Delete
onKeyDown: onKeyDown,
[56669] Fix | Delete
children: (0,external_wp_date_namespaceObject.dateI18n)('j', day, -day.getTimezoneOffset())
[56670] Fix | Delete
});
[56671] Fix | Delete
}
[56672] Fix | Delete
function getDayLabel(date, isSelected, numEvents) {
[56673] Fix | Delete
const {
[56674] Fix | Delete
formats
[56675] Fix | Delete
} = (0,external_wp_date_namespaceObject.getSettings)();
[56676] Fix | Delete
const localizedDate = (0,external_wp_date_namespaceObject.dateI18n)(formats.date, date, -date.getTimezoneOffset());
[56677] Fix | Delete
if (isSelected && numEvents > 0) {
[56678] Fix | Delete
return (0,external_wp_i18n_namespaceObject.sprintf)(
[56679] Fix | Delete
// translators: 1: The calendar date. 2: Number of events on the calendar date.
[56680] Fix | Delete
(0,external_wp_i18n_namespaceObject._n)('%1$s. Selected. There is %2$d event', '%1$s. Selected. There are %2$d events', numEvents), localizedDate, numEvents);
[56681] Fix | Delete
} else if (isSelected) {
[56682] Fix | Delete
return (0,external_wp_i18n_namespaceObject.sprintf)(
[56683] Fix | Delete
// translators: %s: The calendar date.
[56684] Fix | Delete
(0,external_wp_i18n_namespaceObject.__)('%1$s. Selected'), localizedDate);
[56685] Fix | Delete
} else if (numEvents > 0) {
[56686] Fix | Delete
return (0,external_wp_i18n_namespaceObject.sprintf)(
[56687] Fix | Delete
// translators: 1: The calendar date. 2: Number of events on the calendar date.
[56688] Fix | Delete
(0,external_wp_i18n_namespaceObject._n)('%1$s. There is %2$d event', '%1$s. There are %2$d events', numEvents), localizedDate, numEvents);
[56689] Fix | Delete
}
[56690] Fix | Delete
return localizedDate;
[56691] Fix | Delete
}
[56692] Fix | Delete
/* harmony default export */ const date = (DatePicker);
[56693] Fix | Delete
[56694] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/date-fns/startOfMinute.mjs
[56695] Fix | Delete
[56696] Fix | Delete
[56697] Fix | Delete
/**
[56698] Fix | Delete
* @name startOfMinute
[56699] Fix | Delete
* @category Minute Helpers
[56700] Fix | Delete
* @summary Return the start of a minute for the given date.
[56701] Fix | Delete
*
[56702] Fix | Delete
* @description
[56703] Fix | Delete
* Return the start of a minute for the given date.
[56704] Fix | Delete
* The result will be in the local timezone.
[56705] Fix | Delete
*
[56706] Fix | Delete
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
[56707] Fix | Delete
*
[56708] Fix | Delete
* @param date - The original date
[56709] Fix | Delete
*
[56710] Fix | Delete
* @returns The start of a minute
[56711] Fix | Delete
*
[56712] Fix | Delete
* @example
[56713] Fix | Delete
* // The start of a minute for 1 December 2014 22:15:45.400:
[56714] Fix | Delete
* const result = startOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400))
[56715] Fix | Delete
* //=> Mon Dec 01 2014 22:15:00
[56716] Fix | Delete
*/
[56717] Fix | Delete
function startOfMinute(date) {
[56718] Fix | Delete
const _date = toDate_toDate(date);
[56719] Fix | Delete
_date.setSeconds(0, 0);
[56720] Fix | Delete
return _date;
[56721] Fix | Delete
}
[56722] Fix | Delete
[56723] Fix | Delete
// Fallback for modularized imports:
[56724] Fix | Delete
/* harmony default export */ const date_fns_startOfMinute = ((/* unused pure expression or super */ null && (startOfMinute)));
[56725] Fix | Delete
[56726] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/date-fns/getDaysInMonth.mjs
[56727] Fix | Delete
[56728] Fix | Delete
[56729] Fix | Delete
[56730] Fix | Delete
/**
[56731] Fix | Delete
* @name getDaysInMonth
[56732] Fix | Delete
* @category Month Helpers
[56733] Fix | Delete
* @summary Get the number of days in a month of the given date.
[56734] Fix | Delete
*
[56735] Fix | Delete
* @description
[56736] Fix | Delete
* Get the number of days in a month of the given date.
[56737] Fix | Delete
*
[56738] Fix | Delete
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
[56739] Fix | Delete
*
[56740] Fix | Delete
* @param date - The given date
[56741] Fix | Delete
*
[56742] Fix | Delete
* @returns The number of days in a month
[56743] Fix | Delete
*
[56744] Fix | Delete
* @example
[56745] Fix | Delete
* // How many days are in February 2000?
[56746] Fix | Delete
* const result = getDaysInMonth(new Date(2000, 1))
[56747] Fix | Delete
* //=> 29
[56748] Fix | Delete
*/
[56749] Fix | Delete
function getDaysInMonth_getDaysInMonth(date) {
[56750] Fix | Delete
const _date = toDate_toDate(date);
[56751] Fix | Delete
const year = _date.getFullYear();
[56752] Fix | Delete
const monthIndex = _date.getMonth();
[56753] Fix | Delete
const lastDayOfMonth = constructFrom_constructFrom(date, 0);
[56754] Fix | Delete
lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);
[56755] Fix | Delete
lastDayOfMonth.setHours(0, 0, 0, 0);
[56756] Fix | Delete
return lastDayOfMonth.getDate();
[56757] Fix | Delete
}
[56758] Fix | Delete
[56759] Fix | Delete
// Fallback for modularized imports:
[56760] Fix | Delete
/* harmony default export */ const date_fns_getDaysInMonth = ((/* unused pure expression or super */ null && (getDaysInMonth_getDaysInMonth)));
[56761] Fix | Delete
[56762] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/date-fns/setMonth.mjs
[56763] Fix | Delete
[56764] Fix | Delete
[56765] Fix | Delete
[56766] Fix | Delete
[56767] Fix | Delete
/**
[56768] Fix | Delete
* @name setMonth
[56769] Fix | Delete
* @category Month Helpers
[56770] Fix | Delete
* @summary Set the month to the given date.
[56771] Fix | Delete
*
[56772] Fix | Delete
* @description
[56773] Fix | Delete
* Set the month to the given date.
[56774] Fix | Delete
*
[56775] Fix | Delete
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
[56776] Fix | Delete
*
[56777] Fix | Delete
* @param date - The date to be changed
[56778] Fix | Delete
* @param month - The month index to set (0-11)
[56779] Fix | Delete
*
[56780] Fix | Delete
* @returns The new date with the month set
[56781] Fix | Delete
*
[56782] Fix | Delete
* @example
[56783] Fix | Delete
* // Set February to 1 September 2014:
[56784] Fix | Delete
* const result = setMonth(new Date(2014, 8, 1), 1)
[56785] Fix | Delete
* //=> Sat Feb 01 2014 00:00:00
[56786] Fix | Delete
*/
[56787] Fix | Delete
function setMonth_setMonth(date, month) {
[56788] Fix | Delete
const _date = toDate_toDate(date);
[56789] Fix | Delete
const year = _date.getFullYear();
[56790] Fix | Delete
const day = _date.getDate();
[56791] Fix | Delete
[56792] Fix | Delete
const dateWithDesiredMonth = constructFrom_constructFrom(date, 0);
[56793] Fix | Delete
dateWithDesiredMonth.setFullYear(year, month, 15);
[56794] Fix | Delete
dateWithDesiredMonth.setHours(0, 0, 0, 0);
[56795] Fix | Delete
const daysInMonth = getDaysInMonth_getDaysInMonth(dateWithDesiredMonth);
[56796] Fix | Delete
// Set the last day of the new month
[56797] Fix | Delete
// if the original date was the last day of the longer month
[56798] Fix | Delete
_date.setMonth(month, Math.min(day, daysInMonth));
[56799] Fix | Delete
return _date;
[56800] Fix | Delete
}
[56801] Fix | Delete
[56802] Fix | Delete
// Fallback for modularized imports:
[56803] Fix | Delete
/* harmony default export */ const date_fns_setMonth = ((/* unused pure expression or super */ null && (setMonth_setMonth)));
[56804] Fix | Delete
[56805] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/date-fns/set.mjs
[56806] Fix | Delete
[56807] Fix | Delete
[56808] Fix | Delete
[56809] Fix | Delete
[56810] Fix | Delete
/**
[56811] Fix | Delete
* @name set
[56812] Fix | Delete
* @category Common Helpers
[56813] Fix | Delete
* @summary Set date values to a given date.
[56814] Fix | Delete
*
[56815] Fix | Delete
* @description
[56816] Fix | Delete
* Set date values to a given date.
[56817] Fix | Delete
*
[56818] Fix | Delete
* Sets time values to date from object `values`.
[56819] Fix | Delete
* A value is not set if it is undefined or null or doesn't exist in `values`.
[56820] Fix | Delete
*
[56821] Fix | Delete
* Note about bundle size: `set` does not internally use `setX` functions from date-fns but instead opts
[56822] Fix | Delete
* to use native `Date#setX` methods. If you use this function, you may not want to include the
[56823] Fix | Delete
* other `setX` functions that date-fns provides if you are concerned about the bundle size.
[56824] Fix | Delete
*
[56825] Fix | Delete
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
[56826] Fix | Delete
*
[56827] Fix | Delete
* @param date - The date to be changed
[56828] Fix | Delete
* @param values - The date values to be set
[56829] Fix | Delete
*
[56830] Fix | Delete
* @returns The new date with options set
[56831] Fix | Delete
*
[56832] Fix | Delete
* @example
[56833] Fix | Delete
* // Transform 1 September 2014 into 20 October 2015 in a single line:
[56834] Fix | Delete
* const result = set(new Date(2014, 8, 20), { year: 2015, month: 9, date: 20 })
[56835] Fix | Delete
* //=> Tue Oct 20 2015 00:00:00
[56836] Fix | Delete
*
[56837] Fix | Delete
* @example
[56838] Fix | Delete
* // Set 12 PM to 1 September 2014 01:23:45 to 1 September 2014 12:00:00:
[56839] Fix | Delete
* const result = set(new Date(2014, 8, 1, 1, 23, 45), { hours: 12 })
[56840] Fix | Delete
* //=> Mon Sep 01 2014 12:23:45
[56841] Fix | Delete
*/
[56842] Fix | Delete
[56843] Fix | Delete
function set_set(date, values) {
[56844] Fix | Delete
let _date = toDate_toDate(date);
[56845] Fix | Delete
[56846] Fix | Delete
// Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date
[56847] Fix | Delete
if (isNaN(+_date)) {
[56848] Fix | Delete
return constructFrom_constructFrom(date, NaN);
[56849] Fix | Delete
}
[56850] Fix | Delete
[56851] Fix | Delete
if (values.year != null) {
[56852] Fix | Delete
_date.setFullYear(values.year);
[56853] Fix | Delete
}
[56854] Fix | Delete
[56855] Fix | Delete
if (values.month != null) {
[56856] Fix | Delete
_date = setMonth_setMonth(_date, values.month);
[56857] Fix | Delete
}
[56858] Fix | Delete
[56859] Fix | Delete
if (values.date != null) {
[56860] Fix | Delete
_date.setDate(values.date);
[56861] Fix | Delete
}
[56862] Fix | Delete
[56863] Fix | Delete
if (values.hours != null) {
[56864] Fix | Delete
_date.setHours(values.hours);
[56865] Fix | Delete
}
[56866] Fix | Delete
[56867] Fix | Delete
if (values.minutes != null) {
[56868] Fix | Delete
_date.setMinutes(values.minutes);
[56869] Fix | Delete
}
[56870] Fix | Delete
[56871] Fix | Delete
if (values.seconds != null) {
[56872] Fix | Delete
_date.setSeconds(values.seconds);
[56873] Fix | Delete
}
[56874] Fix | Delete
[56875] Fix | Delete
if (values.milliseconds != null) {
[56876] Fix | Delete
_date.setMilliseconds(values.milliseconds);
[56877] Fix | Delete
}
[56878] Fix | Delete
[56879] Fix | Delete
return _date;
[56880] Fix | Delete
}
[56881] Fix | Delete
[56882] Fix | Delete
// Fallback for modularized imports:
[56883] Fix | Delete
/* harmony default export */ const date_fns_set = ((/* unused pure expression or super */ null && (set_set)));
[56884] Fix | Delete
[56885] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/date-fns/setHours.mjs
[56886] Fix | Delete
[56887] Fix | Delete
[56888] Fix | Delete
/**
[56889] Fix | Delete
* @name setHours
[56890] Fix | Delete
* @category Hour Helpers
[56891] Fix | Delete
* @summary Set the hours to the given date.
[56892] Fix | Delete
*
[56893] Fix | Delete
* @description
[56894] Fix | Delete
* Set the hours to the given date.
[56895] Fix | Delete
*
[56896] Fix | Delete
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
[56897] Fix | Delete
*
[56898] Fix | Delete
* @param date - The date to be changed
[56899] Fix | Delete
* @param hours - The hours of the new date
[56900] Fix | Delete
*
[56901] Fix | Delete
* @returns The new date with the hours set
[56902] Fix | Delete
*
[56903] Fix | Delete
* @example
[56904] Fix | Delete
* // Set 4 hours to 1 September 2014 11:30:00:
[56905] Fix | Delete
* const result = setHours(new Date(2014, 8, 1, 11, 30), 4)
[56906] Fix | Delete
* //=> Mon Sep 01 2014 04:30:00
[56907] Fix | Delete
*/
[56908] Fix | Delete
function setHours(date, hours) {
[56909] Fix | Delete
const _date = toDate_toDate(date);
[56910] Fix | Delete
_date.setHours(hours);
[56911] Fix | Delete
return _date;
[56912] Fix | Delete
}
[56913] Fix | Delete
[56914] Fix | Delete
// Fallback for modularized imports:
[56915] Fix | Delete
/* harmony default export */ const date_fns_setHours = ((/* unused pure expression or super */ null && (setHours)));
[56916] Fix | Delete
[56917] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/time/styles.js
[56918] Fix | Delete
[56919] Fix | Delete
function time_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
[56920] Fix | Delete
/**
[56921] Fix | Delete
* External dependencies
[56922] Fix | Delete
*/
[56923] Fix | Delete
[56924] Fix | Delete
[56925] Fix | Delete
[56926] Fix | Delete
/**
[56927] Fix | Delete
* Internal dependencies
[56928] Fix | Delete
*/
[56929] Fix | Delete
[56930] Fix | Delete
[56931] Fix | Delete
[56932] Fix | Delete
[56933] Fix | Delete
const time_styles_Wrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
[56934] Fix | Delete
target: "evcr2319"
[56935] Fix | Delete
} : 0)("box-sizing:border-box;font-size:", config_values.fontSize, ";" + ( true ? "" : 0));
[56936] Fix | Delete
const Fieldset = /*#__PURE__*/emotion_styled_base_browser_esm("fieldset", true ? {
[56937] Fix | Delete
target: "evcr2318"
[56938] Fix | Delete
} : 0)("border:0;margin:0 0 ", space(2 * 2), " 0;padding:0;&:last-child{margin-bottom:0;}" + ( true ? "" : 0));
[56939] Fix | Delete
const TimeWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
[56940] Fix | Delete
target: "evcr2317"
[56941] Fix | Delete
} : 0)( true ? {
[56942] Fix | Delete
name: "pd0mhc",
[56943] Fix | Delete
styles: "direction:ltr;display:flex"
[56944] Fix | Delete
} : 0);
[56945] Fix | Delete
const baseInput = /*#__PURE__*/emotion_react_browser_esm_css("&&& ", Input, "{padding-left:", space(2), ";padding-right:", space(2), ";text-align:center;}" + ( true ? "" : 0), true ? "" : 0);
[56946] Fix | Delete
const HoursInput = /*#__PURE__*/emotion_styled_base_browser_esm(number_control, true ? {
[56947] Fix | Delete
target: "evcr2316"
[56948] Fix | Delete
} : 0)(baseInput, " width:", space(9), ";&&& ", Input, "{padding-right:0;}&&& ", BackdropUI, "{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;}" + ( true ? "" : 0));
[56949] Fix | Delete
const TimeSeparator = /*#__PURE__*/emotion_styled_base_browser_esm("span", true ? {
[56950] Fix | Delete
target: "evcr2315"
[56951] Fix | Delete
} : 0)("border-top:", config_values.borderWidth, " solid ", COLORS.gray[700], ";border-bottom:", config_values.borderWidth, " solid ", COLORS.gray[700], ";line-height:calc(\n\t\t", config_values.controlHeight, " - ", config_values.borderWidth, " * 2\n\t);display:inline-block;" + ( true ? "" : 0));
[56952] Fix | Delete
const MinutesInput = /*#__PURE__*/emotion_styled_base_browser_esm(number_control, true ? {
[56953] Fix | Delete
target: "evcr2314"
[56954] Fix | Delete
} : 0)(baseInput, " width:", space(9), ";&&& ", Input, "{padding-left:0;}&&& ", BackdropUI, "{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;}" + ( true ? "" : 0));
[56955] Fix | Delete
[56956] Fix | Delete
// Ideally we wouldn't need a wrapper, but can't otherwise target the
[56957] Fix | Delete
// <BaseControl> in <SelectControl>
[56958] Fix | Delete
const MonthSelectWrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
[56959] Fix | Delete
target: "evcr2313"
[56960] Fix | Delete
} : 0)( true ? {
[56961] Fix | Delete
name: "1ff36h2",
[56962] Fix | Delete
styles: "flex-grow:1"
[56963] Fix | Delete
} : 0);
[56964] Fix | Delete
const DayInput = /*#__PURE__*/emotion_styled_base_browser_esm(number_control, true ? {
[56965] Fix | Delete
target: "evcr2312"
[56966] Fix | Delete
} : 0)(baseInput, " width:", space(9), ";" + ( true ? "" : 0));
[56967] Fix | Delete
const YearInput = /*#__PURE__*/emotion_styled_base_browser_esm(number_control, true ? {
[56968] Fix | Delete
target: "evcr2311"
[56969] Fix | Delete
} : 0)(baseInput, " width:", space(14), ";" + ( true ? "" : 0));
[56970] Fix | Delete
const TimeZone = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
[56971] Fix | Delete
target: "evcr2310"
[56972] Fix | Delete
} : 0)( true ? {
[56973] Fix | Delete
name: "ebu3jh",
[56974] Fix | Delete
styles: "text-decoration:underline dotted"
[56975] Fix | Delete
} : 0);
[56976] Fix | Delete
[56977] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/time/timezone.js
[56978] Fix | Delete
/**
[56979] Fix | Delete
* WordPress dependencies
[56980] Fix | Delete
*/
[56981] Fix | Delete
[56982] Fix | Delete
[56983] Fix | Delete
[56984] Fix | Delete
/**
[56985] Fix | Delete
* Internal dependencies
[56986] Fix | Delete
*/
[56987] Fix | Delete
[56988] Fix | Delete
[56989] Fix | Delete
[56990] Fix | Delete
/**
[56991] Fix | Delete
* Displays timezone information when user timezone is different from site
[56992] Fix | Delete
* timezone.
[56993] Fix | Delete
*/
[56994] Fix | Delete
[56995] Fix | Delete
const timezone_TimeZone = () => {
[56996] Fix | Delete
const {
[56997] Fix | Delete
timezone
[56998] Fix | Delete
} = (0,external_wp_date_namespaceObject.getSettings)();
[56999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function