: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
const firstCharacter = substring[0];
if (firstCharacter === "'") {
return { isToken: false, value: cleanEscapedString(substring) };
if (formatters[firstCharacter]) {
return { isToken: true, value: substring };
if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
"Format string contains an unescaped latin alphabet character `" +
return { isToken: false, value: substring };
// invoke localize preprocessor (only for french locales at the moment)
if (locale.localize.preprocessor) {
parts = locale.localize.preprocessor(originalDate, parts);
const formatterOptions = {
if (!part.isToken) return part.value;
const token = part.value;
(!options?.useAdditionalWeekYearTokens &&
isProtectedWeekYearToken(token)) ||
(!options?.useAdditionalDayOfYearTokens &&
isProtectedDayOfYearToken(token))
warnOrThrowProtectedError(token, formatStr, String(date));
const formatter = formatters[token[0]];
return formatter(originalDate, token, locale.localize, formatterOptions);
function cleanEscapedString(input) {
const matched = input.match(escapedStringRegExp);
return matched[1].replace(doubleQuoteRegExp, "'");
// Fallback for modularized imports:
/* harmony default export */ const date_fns_format = ((/* unused pure expression or super */ null && (format)));
;// CONCATENATED MODULE: ./node_modules/date-fns/isSameMonth.mjs
* @category Month Helpers
* @summary Are the given dates in the same month (and year)?
* Are the given dates in the same month (and year)?
* @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).
* @param dateLeft - The first date to check
* @param dateRight - The second date to check
* @returns The dates are in the same month (and year)
* // Are 2 September 2014 and 25 September 2014 in the same month?
* const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))
* // Are 2 September 2014 and 25 September 2015 in the same month?
* const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))
function isSameMonth(dateLeft, dateRight) {
const _dateLeft = toDate_toDate(dateLeft);
const _dateRight = toDate_toDate(dateRight);
_dateLeft.getFullYear() === _dateRight.getFullYear() &&
_dateLeft.getMonth() === _dateRight.getMonth()
// Fallback for modularized imports:
/* harmony default export */ const date_fns_isSameMonth = ((/* unused pure expression or super */ null && (isSameMonth)));
;// CONCATENATED MODULE: ./node_modules/date-fns/isEqual.mjs
* @category Common Helpers
* @summary Are the given dates equal?
* Are the given dates equal?
* @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).
* @param dateLeft - The first date to compare
* @param dateRight - The second date to compare
* @returns The dates are equal
* // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal?
* const result = isEqual(
* new Date(2014, 6, 2, 6, 30, 45, 0),
* new Date(2014, 6, 2, 6, 30, 45, 500)
function isEqual_isEqual(leftDate, rightDate) {
const _dateLeft = toDate_toDate(leftDate);
const _dateRight = toDate_toDate(rightDate);
return +_dateLeft === +_dateRight;
// Fallback for modularized imports:
/* harmony default export */ const date_fns_isEqual = ((/* unused pure expression or super */ null && (isEqual_isEqual)));
;// CONCATENATED MODULE: ./node_modules/date-fns/isSameDay.mjs
* @summary Are the given dates in the same day (and year and month)?
* Are the given dates in the same day (and year and month)?
* @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).
* @param dateLeft - The first date to check
* @param dateRight - The second date to check
* @returns The dates are in the same day (and year and month)
* // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
* const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
* // Are 4 September and 4 October in the same day?
* const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))
* // Are 4 September, 2014 and 4 September, 2015 in the same day?
* const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
function isSameDay(dateLeft, dateRight) {
const dateLeftStartOfDay = startOfDay_startOfDay(dateLeft);
const dateRightStartOfDay = startOfDay_startOfDay(dateRight);
return +dateLeftStartOfDay === +dateRightStartOfDay;
// Fallback for modularized imports:
/* harmony default export */ const date_fns_isSameDay = ((/* unused pure expression or super */ null && (isSameDay)));
;// CONCATENATED MODULE: ./node_modules/date-fns/addDays.mjs
* @summary Add the specified number of days to the given date.
* Add the specified number of days to the given date.
* @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).
* @param date - The date to be changed
* @param amount - The amount of days to be added.
* @returns The new date with the days added
* // Add 10 days to 1 September 2014:
* const result = addDays(new Date(2014, 8, 1), 10)
* //=> Thu Sep 11 2014 00:00:00
function addDays_addDays(date, amount) {
const _date = toDate_toDate(date);
if (isNaN(amount)) return constructFrom_constructFrom(date, NaN);
// If 0 days, no-op to avoid changing times in the hour before end of DST
_date.setDate(_date.getDate() + amount);
// Fallback for modularized imports:
/* harmony default export */ const date_fns_addDays = ((/* unused pure expression or super */ null && (addDays_addDays)));
;// CONCATENATED MODULE: ./node_modules/date-fns/addWeeks.mjs
* @summary Add the specified number of weeks to the given date.
* Add the specified number of week to the given date.
* @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).
* @param date - The date to be changed
* @param amount - The amount of weeks to be added.
* @returns The new date with the weeks added
* // Add 4 weeks to 1 September 2014:
* const result = addWeeks(new Date(2014, 8, 1), 4)
* //=> Mon Sep 29 2014 00:00:00
function addWeeks_addWeeks(date, amount) {
return addDays_addDays(date, days);
// Fallback for modularized imports:
/* harmony default export */ const date_fns_addWeeks = ((/* unused pure expression or super */ null && (addWeeks_addWeeks)));
;// CONCATENATED MODULE: ./node_modules/date-fns/subWeeks.mjs
* @summary Subtract the specified number of weeks from the given date.
* Subtract the specified number of weeks from the given date.
* @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).
* @param date - The date to be changed
* @param amount - The amount of weeks to be subtracted.
* @returns The new date with the weeks subtracted
* // Subtract 4 weeks from 1 September 2014:
* const result = subWeeks(new Date(2014, 8, 1), 4)
* //=> Mon Aug 04 2014 00:00:00
function subWeeks(date, amount) {
return addWeeks_addWeeks(date, -amount);
// Fallback for modularized imports:
/* harmony default export */ const date_fns_subWeeks = ((/* unused pure expression or super */ null && (subWeeks)));
;// CONCATENATED MODULE: ./node_modules/date-fns/endOfWeek.mjs
* The {@link endOfWeek} function options.
* @summary Return the end of a week for the given date.
* Return the end of a week for the given date.
* The result will be in the local timezone.
* @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).
* @param date - The original date
* @param options - An object with options
* @returns The end of a week
* // The end of a week for 2 September 2014 11:55:00:
* const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0))
* //=> Sat Sep 06 2014 23:59:59.999
* // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00:
* const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
* //=> Sun Sep 07 2014 23:59:59.999
function endOfWeek_endOfWeek(date, options) {
const defaultOptions = defaultOptions_getDefaultOptions();
options?.locale?.options?.weekStartsOn ??
defaultOptions.weekStartsOn ??
defaultOptions.locale?.options?.weekStartsOn ??
const _date = toDate_toDate(date);
const day = _date.getDay();
const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);
_date.setDate(_date.getDate() + diff);
_date.setHours(23, 59, 59, 999);
// Fallback for modularized imports:
/* harmony default export */ const date_fns_endOfWeek = ((/* unused pure expression or super */ null && (endOfWeek_endOfWeek)));
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/arrow-right.js
const arrowRight = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
d: "m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"
/* harmony default export */ const arrow_right = (arrowRight);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/arrow-left.js
const arrowLeft = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
xmlns: "http://www.w3.org/2000/svg",
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
d: "M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"
/* harmony default export */ const arrow_left = (arrowLeft);
;// CONCATENATED MODULE: external ["wp","date"]
const external_wp_date_namespaceObject = window["wp"]["date"];
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/date/styles.js
function date_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)."; }
const styles_Wrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
styles: "box-sizing:border-box"
const Navigator = /*#__PURE__*/emotion_styled_base_browser_esm(h_stack_component, true ? {
} : 0)("margin-bottom:", space(4), ";" + ( true ? "" : 0));
const NavigatorHeading = /*#__PURE__*/emotion_styled_base_browser_esm(heading_component, true ? {
} : 0)("font-size:", config_values.fontSize, ";font-weight:", config_values.fontWeight, ";strong{font-weight:", config_values.fontWeightHeading, ";}" + ( true ? "" : 0));
const Calendar = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
} : 0)("column-gap:", space(2), ";display:grid;grid-template-columns:0.5fr repeat( 5, 1fr ) 0.5fr;justify-items:center;row-gap:", space(2), ";" + ( true ? "" : 0));
const DayOfWeek = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
} : 0)("color:", COLORS.gray[700], ";font-size:", config_values.fontSize, ";line-height:", config_values.fontLineHeightBase, ";&:nth-of-type( 1 ){justify-self:start;}&:nth-of-type( 7 ){justify-self:end;}" + ( true ? "" : 0));
const DayButton = /*#__PURE__*/emotion_styled_base_browser_esm(build_module_button, true ? {
shouldForwardProp: prop => !['column', 'isSelected', 'isToday', 'hasEvents'].includes(prop),
} : 0)("grid-column:", props => props.column, ";position:relative;justify-content:center;", props => props.column === 1 && `
`, " ", props => props.column === 7 && `
`, " ", props => props.disabled && `
`, " &&&{border-radius:100%;height:", space(7), ";width:", space(7), ";", props => props.isSelected && `
background: ${COLORS.theme.accent};
`, " ", props => !props.isSelected && props.isToday && `
background: ${COLORS.gray[200]};
`, ";}", props => props.hasEvents && `
background: ${props.isSelected ? COLORS.white : COLORS.theme.accent};
`, ";" + ( true ? "" : 0));
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/utils.js
* Like date-fn's toDate, but tries to guess the format when a string is
* @param input Value to turn into a date.
function inputToDate(input) {
if (typeof input === 'string') {
return toDate_toDate(input);
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/constants.js
const TIMEZONELESS_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/date/index.js
* DatePicker is a React component that renders a calendar for date selection.
* import { DatePicker } from '@wordpress/components';
* import { useState } from '@wordpress/element';
* const MyDatePicker = () => {
* const [ date, setDate ] = useState( new Date() );
* onChange={ ( newDate ) => setDate( newDate ) }