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
}
[56000] Fix | Delete
[56001] Fix | Delete
const firstCharacter = substring[0];
[56002] Fix | Delete
if (firstCharacter === "'") {
[56003] Fix | Delete
return { isToken: false, value: cleanEscapedString(substring) };
[56004] Fix | Delete
}
[56005] Fix | Delete
[56006] Fix | Delete
if (formatters[firstCharacter]) {
[56007] Fix | Delete
return { isToken: true, value: substring };
[56008] Fix | Delete
}
[56009] Fix | Delete
[56010] Fix | Delete
if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
[56011] Fix | Delete
throw new RangeError(
[56012] Fix | Delete
"Format string contains an unescaped latin alphabet character `" +
[56013] Fix | Delete
firstCharacter +
[56014] Fix | Delete
"`",
[56015] Fix | Delete
);
[56016] Fix | Delete
}
[56017] Fix | Delete
[56018] Fix | Delete
return { isToken: false, value: substring };
[56019] Fix | Delete
});
[56020] Fix | Delete
[56021] Fix | Delete
// invoke localize preprocessor (only for french locales at the moment)
[56022] Fix | Delete
if (locale.localize.preprocessor) {
[56023] Fix | Delete
parts = locale.localize.preprocessor(originalDate, parts);
[56024] Fix | Delete
}
[56025] Fix | Delete
[56026] Fix | Delete
const formatterOptions = {
[56027] Fix | Delete
firstWeekContainsDate,
[56028] Fix | Delete
weekStartsOn,
[56029] Fix | Delete
locale,
[56030] Fix | Delete
};
[56031] Fix | Delete
[56032] Fix | Delete
return parts
[56033] Fix | Delete
.map((part) => {
[56034] Fix | Delete
if (!part.isToken) return part.value;
[56035] Fix | Delete
[56036] Fix | Delete
const token = part.value;
[56037] Fix | Delete
[56038] Fix | Delete
if (
[56039] Fix | Delete
(!options?.useAdditionalWeekYearTokens &&
[56040] Fix | Delete
isProtectedWeekYearToken(token)) ||
[56041] Fix | Delete
(!options?.useAdditionalDayOfYearTokens &&
[56042] Fix | Delete
isProtectedDayOfYearToken(token))
[56043] Fix | Delete
) {
[56044] Fix | Delete
warnOrThrowProtectedError(token, formatStr, String(date));
[56045] Fix | Delete
}
[56046] Fix | Delete
[56047] Fix | Delete
const formatter = formatters[token[0]];
[56048] Fix | Delete
return formatter(originalDate, token, locale.localize, formatterOptions);
[56049] Fix | Delete
})
[56050] Fix | Delete
.join("");
[56051] Fix | Delete
}
[56052] Fix | Delete
[56053] Fix | Delete
function cleanEscapedString(input) {
[56054] Fix | Delete
const matched = input.match(escapedStringRegExp);
[56055] Fix | Delete
[56056] Fix | Delete
if (!matched) {
[56057] Fix | Delete
return input;
[56058] Fix | Delete
}
[56059] Fix | Delete
[56060] Fix | Delete
return matched[1].replace(doubleQuoteRegExp, "'");
[56061] Fix | Delete
}
[56062] Fix | Delete
[56063] Fix | Delete
// Fallback for modularized imports:
[56064] Fix | Delete
/* harmony default export */ const date_fns_format = ((/* unused pure expression or super */ null && (format)));
[56065] Fix | Delete
[56066] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/date-fns/isSameMonth.mjs
[56067] Fix | Delete
[56068] Fix | Delete
[56069] Fix | Delete
/**
[56070] Fix | Delete
* @name isSameMonth
[56071] Fix | Delete
* @category Month Helpers
[56072] Fix | Delete
* @summary Are the given dates in the same month (and year)?
[56073] Fix | Delete
*
[56074] Fix | Delete
* @description
[56075] Fix | Delete
* Are the given dates in the same month (and year)?
[56076] Fix | Delete
*
[56077] 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).
[56078] Fix | Delete
*
[56079] Fix | Delete
* @param dateLeft - The first date to check
[56080] Fix | Delete
* @param dateRight - The second date to check
[56081] Fix | Delete
*
[56082] Fix | Delete
* @returns The dates are in the same month (and year)
[56083] Fix | Delete
*
[56084] Fix | Delete
* @example
[56085] Fix | Delete
* // Are 2 September 2014 and 25 September 2014 in the same month?
[56086] Fix | Delete
* const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))
[56087] Fix | Delete
* //=> true
[56088] Fix | Delete
*
[56089] Fix | Delete
* @example
[56090] Fix | Delete
* // Are 2 September 2014 and 25 September 2015 in the same month?
[56091] Fix | Delete
* const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))
[56092] Fix | Delete
* //=> false
[56093] Fix | Delete
*/
[56094] Fix | Delete
function isSameMonth(dateLeft, dateRight) {
[56095] Fix | Delete
const _dateLeft = toDate_toDate(dateLeft);
[56096] Fix | Delete
const _dateRight = toDate_toDate(dateRight);
[56097] Fix | Delete
return (
[56098] Fix | Delete
_dateLeft.getFullYear() === _dateRight.getFullYear() &&
[56099] Fix | Delete
_dateLeft.getMonth() === _dateRight.getMonth()
[56100] Fix | Delete
);
[56101] Fix | Delete
}
[56102] Fix | Delete
[56103] Fix | Delete
// Fallback for modularized imports:
[56104] Fix | Delete
/* harmony default export */ const date_fns_isSameMonth = ((/* unused pure expression or super */ null && (isSameMonth)));
[56105] Fix | Delete
[56106] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/date-fns/isEqual.mjs
[56107] Fix | Delete
[56108] Fix | Delete
[56109] Fix | Delete
/**
[56110] Fix | Delete
* @name isEqual
[56111] Fix | Delete
* @category Common Helpers
[56112] Fix | Delete
* @summary Are the given dates equal?
[56113] Fix | Delete
*
[56114] Fix | Delete
* @description
[56115] Fix | Delete
* Are the given dates equal?
[56116] Fix | Delete
*
[56117] 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).
[56118] Fix | Delete
*
[56119] Fix | Delete
* @param dateLeft - The first date to compare
[56120] Fix | Delete
* @param dateRight - The second date to compare
[56121] Fix | Delete
*
[56122] Fix | Delete
* @returns The dates are equal
[56123] Fix | Delete
*
[56124] Fix | Delete
* @example
[56125] Fix | Delete
* // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal?
[56126] Fix | Delete
* const result = isEqual(
[56127] Fix | Delete
* new Date(2014, 6, 2, 6, 30, 45, 0),
[56128] Fix | Delete
* new Date(2014, 6, 2, 6, 30, 45, 500)
[56129] Fix | Delete
* )
[56130] Fix | Delete
* //=> false
[56131] Fix | Delete
*/
[56132] Fix | Delete
function isEqual_isEqual(leftDate, rightDate) {
[56133] Fix | Delete
const _dateLeft = toDate_toDate(leftDate);
[56134] Fix | Delete
const _dateRight = toDate_toDate(rightDate);
[56135] Fix | Delete
return +_dateLeft === +_dateRight;
[56136] Fix | Delete
}
[56137] Fix | Delete
[56138] Fix | Delete
// Fallback for modularized imports:
[56139] Fix | Delete
/* harmony default export */ const date_fns_isEqual = ((/* unused pure expression or super */ null && (isEqual_isEqual)));
[56140] Fix | Delete
[56141] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/date-fns/isSameDay.mjs
[56142] Fix | Delete
[56143] Fix | Delete
[56144] Fix | Delete
/**
[56145] Fix | Delete
* @name isSameDay
[56146] Fix | Delete
* @category Day Helpers
[56147] Fix | Delete
* @summary Are the given dates in the same day (and year and month)?
[56148] Fix | Delete
*
[56149] Fix | Delete
* @description
[56150] Fix | Delete
* Are the given dates in the same day (and year and month)?
[56151] Fix | Delete
*
[56152] 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).
[56153] Fix | Delete
*
[56154] Fix | Delete
* @param dateLeft - The first date to check
[56155] Fix | Delete
* @param dateRight - The second date to check
[56156] Fix | Delete
[56157] Fix | Delete
* @returns The dates are in the same day (and year and month)
[56158] Fix | Delete
*
[56159] Fix | Delete
* @example
[56160] Fix | Delete
* // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
[56161] Fix | Delete
* const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
[56162] Fix | Delete
* //=> true
[56163] Fix | Delete
*
[56164] Fix | Delete
* @example
[56165] Fix | Delete
* // Are 4 September and 4 October in the same day?
[56166] Fix | Delete
* const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))
[56167] Fix | Delete
* //=> false
[56168] Fix | Delete
*
[56169] Fix | Delete
* @example
[56170] Fix | Delete
* // Are 4 September, 2014 and 4 September, 2015 in the same day?
[56171] Fix | Delete
* const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
[56172] Fix | Delete
* //=> false
[56173] Fix | Delete
*/
[56174] Fix | Delete
function isSameDay(dateLeft, dateRight) {
[56175] Fix | Delete
const dateLeftStartOfDay = startOfDay_startOfDay(dateLeft);
[56176] Fix | Delete
const dateRightStartOfDay = startOfDay_startOfDay(dateRight);
[56177] Fix | Delete
[56178] Fix | Delete
return +dateLeftStartOfDay === +dateRightStartOfDay;
[56179] Fix | Delete
}
[56180] Fix | Delete
[56181] Fix | Delete
// Fallback for modularized imports:
[56182] Fix | Delete
/* harmony default export */ const date_fns_isSameDay = ((/* unused pure expression or super */ null && (isSameDay)));
[56183] Fix | Delete
[56184] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/date-fns/addDays.mjs
[56185] Fix | Delete
[56186] Fix | Delete
[56187] Fix | Delete
[56188] Fix | Delete
/**
[56189] Fix | Delete
* @name addDays
[56190] Fix | Delete
* @category Day Helpers
[56191] Fix | Delete
* @summary Add the specified number of days to the given date.
[56192] Fix | Delete
*
[56193] Fix | Delete
* @description
[56194] Fix | Delete
* Add the specified number of days to the given date.
[56195] Fix | Delete
*
[56196] 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).
[56197] Fix | Delete
*
[56198] Fix | Delete
* @param date - The date to be changed
[56199] Fix | Delete
* @param amount - The amount of days to be added.
[56200] Fix | Delete
*
[56201] Fix | Delete
* @returns The new date with the days added
[56202] Fix | Delete
*
[56203] Fix | Delete
* @example
[56204] Fix | Delete
* // Add 10 days to 1 September 2014:
[56205] Fix | Delete
* const result = addDays(new Date(2014, 8, 1), 10)
[56206] Fix | Delete
* //=> Thu Sep 11 2014 00:00:00
[56207] Fix | Delete
*/
[56208] Fix | Delete
function addDays_addDays(date, amount) {
[56209] Fix | Delete
const _date = toDate_toDate(date);
[56210] Fix | Delete
if (isNaN(amount)) return constructFrom_constructFrom(date, NaN);
[56211] Fix | Delete
if (!amount) {
[56212] Fix | Delete
// If 0 days, no-op to avoid changing times in the hour before end of DST
[56213] Fix | Delete
return _date;
[56214] Fix | Delete
}
[56215] Fix | Delete
_date.setDate(_date.getDate() + amount);
[56216] Fix | Delete
return _date;
[56217] Fix | Delete
}
[56218] Fix | Delete
[56219] Fix | Delete
// Fallback for modularized imports:
[56220] Fix | Delete
/* harmony default export */ const date_fns_addDays = ((/* unused pure expression or super */ null && (addDays_addDays)));
[56221] Fix | Delete
[56222] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/date-fns/addWeeks.mjs
[56223] Fix | Delete
[56224] Fix | Delete
[56225] Fix | Delete
/**
[56226] Fix | Delete
* @name addWeeks
[56227] Fix | Delete
* @category Week Helpers
[56228] Fix | Delete
* @summary Add the specified number of weeks to the given date.
[56229] Fix | Delete
*
[56230] Fix | Delete
* @description
[56231] Fix | Delete
* Add the specified number of week to the given date.
[56232] Fix | Delete
*
[56233] 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).
[56234] Fix | Delete
*
[56235] Fix | Delete
* @param date - The date to be changed
[56236] Fix | Delete
* @param amount - The amount of weeks to be added.
[56237] Fix | Delete
*
[56238] Fix | Delete
* @returns The new date with the weeks added
[56239] Fix | Delete
*
[56240] Fix | Delete
* @example
[56241] Fix | Delete
* // Add 4 weeks to 1 September 2014:
[56242] Fix | Delete
* const result = addWeeks(new Date(2014, 8, 1), 4)
[56243] Fix | Delete
* //=> Mon Sep 29 2014 00:00:00
[56244] Fix | Delete
*/
[56245] Fix | Delete
function addWeeks_addWeeks(date, amount) {
[56246] Fix | Delete
const days = amount * 7;
[56247] Fix | Delete
return addDays_addDays(date, days);
[56248] Fix | Delete
}
[56249] Fix | Delete
[56250] Fix | Delete
// Fallback for modularized imports:
[56251] Fix | Delete
/* harmony default export */ const date_fns_addWeeks = ((/* unused pure expression or super */ null && (addWeeks_addWeeks)));
[56252] Fix | Delete
[56253] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/date-fns/subWeeks.mjs
[56254] Fix | Delete
[56255] Fix | Delete
[56256] Fix | Delete
/**
[56257] Fix | Delete
* @name subWeeks
[56258] Fix | Delete
* @category Week Helpers
[56259] Fix | Delete
* @summary Subtract the specified number of weeks from the given date.
[56260] Fix | Delete
*
[56261] Fix | Delete
* @description
[56262] Fix | Delete
* Subtract the specified number of weeks from the given date.
[56263] Fix | Delete
*
[56264] 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).
[56265] Fix | Delete
*
[56266] Fix | Delete
* @param date - The date to be changed
[56267] Fix | Delete
* @param amount - The amount of weeks to be subtracted.
[56268] Fix | Delete
*
[56269] Fix | Delete
* @returns The new date with the weeks subtracted
[56270] Fix | Delete
*
[56271] Fix | Delete
* @example
[56272] Fix | Delete
* // Subtract 4 weeks from 1 September 2014:
[56273] Fix | Delete
* const result = subWeeks(new Date(2014, 8, 1), 4)
[56274] Fix | Delete
* //=> Mon Aug 04 2014 00:00:00
[56275] Fix | Delete
*/
[56276] Fix | Delete
function subWeeks(date, amount) {
[56277] Fix | Delete
return addWeeks_addWeeks(date, -amount);
[56278] Fix | Delete
}
[56279] Fix | Delete
[56280] Fix | Delete
// Fallback for modularized imports:
[56281] Fix | Delete
/* harmony default export */ const date_fns_subWeeks = ((/* unused pure expression or super */ null && (subWeeks)));
[56282] Fix | Delete
[56283] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/date-fns/endOfWeek.mjs
[56284] Fix | Delete
[56285] Fix | Delete
[56286] Fix | Delete
[56287] Fix | Delete
/**
[56288] Fix | Delete
* The {@link endOfWeek} function options.
[56289] Fix | Delete
*/
[56290] Fix | Delete
[56291] Fix | Delete
/**
[56292] Fix | Delete
* @name endOfWeek
[56293] Fix | Delete
* @category Week Helpers
[56294] Fix | Delete
* @summary Return the end of a week for the given date.
[56295] Fix | Delete
*
[56296] Fix | Delete
* @description
[56297] Fix | Delete
* Return the end of a week for the given date.
[56298] Fix | Delete
* The result will be in the local timezone.
[56299] Fix | Delete
*
[56300] 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).
[56301] Fix | Delete
*
[56302] Fix | Delete
* @param date - The original date
[56303] Fix | Delete
* @param options - An object with options
[56304] Fix | Delete
*
[56305] Fix | Delete
* @returns The end of a week
[56306] Fix | Delete
*
[56307] Fix | Delete
* @example
[56308] Fix | Delete
* // The end of a week for 2 September 2014 11:55:00:
[56309] Fix | Delete
* const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0))
[56310] Fix | Delete
* //=> Sat Sep 06 2014 23:59:59.999
[56311] Fix | Delete
*
[56312] Fix | Delete
* @example
[56313] Fix | Delete
* // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00:
[56314] Fix | Delete
* const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
[56315] Fix | Delete
* //=> Sun Sep 07 2014 23:59:59.999
[56316] Fix | Delete
*/
[56317] Fix | Delete
function endOfWeek_endOfWeek(date, options) {
[56318] Fix | Delete
const defaultOptions = defaultOptions_getDefaultOptions();
[56319] Fix | Delete
const weekStartsOn =
[56320] Fix | Delete
options?.weekStartsOn ??
[56321] Fix | Delete
options?.locale?.options?.weekStartsOn ??
[56322] Fix | Delete
defaultOptions.weekStartsOn ??
[56323] Fix | Delete
defaultOptions.locale?.options?.weekStartsOn ??
[56324] Fix | Delete
0;
[56325] Fix | Delete
[56326] Fix | Delete
const _date = toDate_toDate(date);
[56327] Fix | Delete
const day = _date.getDay();
[56328] Fix | Delete
const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);
[56329] Fix | Delete
[56330] Fix | Delete
_date.setDate(_date.getDate() + diff);
[56331] Fix | Delete
_date.setHours(23, 59, 59, 999);
[56332] Fix | Delete
return _date;
[56333] Fix | Delete
}
[56334] Fix | Delete
[56335] Fix | Delete
// Fallback for modularized imports:
[56336] Fix | Delete
/* harmony default export */ const date_fns_endOfWeek = ((/* unused pure expression or super */ null && (endOfWeek_endOfWeek)));
[56337] Fix | Delete
[56338] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/arrow-right.js
[56339] Fix | Delete
/**
[56340] Fix | Delete
* WordPress dependencies
[56341] Fix | Delete
*/
[56342] Fix | Delete
[56343] Fix | Delete
[56344] Fix | Delete
const arrowRight = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[56345] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[56346] Fix | Delete
viewBox: "0 0 24 24",
[56347] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[56348] Fix | Delete
d: "m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"
[56349] Fix | Delete
})
[56350] Fix | Delete
});
[56351] Fix | Delete
/* harmony default export */ const arrow_right = (arrowRight);
[56352] Fix | Delete
[56353] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/arrow-left.js
[56354] Fix | Delete
/**
[56355] Fix | Delete
* WordPress dependencies
[56356] Fix | Delete
*/
[56357] Fix | Delete
[56358] Fix | Delete
[56359] Fix | Delete
const arrowLeft = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[56360] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[56361] Fix | Delete
viewBox: "0 0 24 24",
[56362] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[56363] Fix | Delete
d: "M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"
[56364] Fix | Delete
})
[56365] Fix | Delete
});
[56366] Fix | Delete
/* harmony default export */ const arrow_left = (arrowLeft);
[56367] Fix | Delete
[56368] Fix | Delete
;// CONCATENATED MODULE: external ["wp","date"]
[56369] Fix | Delete
const external_wp_date_namespaceObject = window["wp"]["date"];
[56370] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/date/styles.js
[56371] Fix | Delete
[56372] Fix | Delete
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)."; }
[56373] Fix | Delete
/**
[56374] Fix | Delete
* External dependencies
[56375] Fix | Delete
*/
[56376] Fix | Delete
[56377] Fix | Delete
/**
[56378] Fix | Delete
* Internal dependencies
[56379] Fix | Delete
*/
[56380] Fix | Delete
[56381] Fix | Delete
[56382] Fix | Delete
[56383] Fix | Delete
[56384] Fix | Delete
[56385] Fix | Delete
const styles_Wrapper = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
[56386] Fix | Delete
target: "e105ri6r5"
[56387] Fix | Delete
} : 0)( true ? {
[56388] Fix | Delete
name: "1khn195",
[56389] Fix | Delete
styles: "box-sizing:border-box"
[56390] Fix | Delete
} : 0);
[56391] Fix | Delete
const Navigator = /*#__PURE__*/emotion_styled_base_browser_esm(h_stack_component, true ? {
[56392] Fix | Delete
target: "e105ri6r4"
[56393] Fix | Delete
} : 0)("margin-bottom:", space(4), ";" + ( true ? "" : 0));
[56394] Fix | Delete
const NavigatorHeading = /*#__PURE__*/emotion_styled_base_browser_esm(heading_component, true ? {
[56395] Fix | Delete
target: "e105ri6r3"
[56396] Fix | Delete
} : 0)("font-size:", config_values.fontSize, ";font-weight:", config_values.fontWeight, ";strong{font-weight:", config_values.fontWeightHeading, ";}" + ( true ? "" : 0));
[56397] Fix | Delete
const Calendar = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
[56398] Fix | Delete
target: "e105ri6r2"
[56399] Fix | Delete
} : 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));
[56400] Fix | Delete
const DayOfWeek = /*#__PURE__*/emotion_styled_base_browser_esm("div", true ? {
[56401] Fix | Delete
target: "e105ri6r1"
[56402] Fix | Delete
} : 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));
[56403] Fix | Delete
const DayButton = /*#__PURE__*/emotion_styled_base_browser_esm(build_module_button, true ? {
[56404] Fix | Delete
shouldForwardProp: prop => !['column', 'isSelected', 'isToday', 'hasEvents'].includes(prop),
[56405] Fix | Delete
target: "e105ri6r0"
[56406] Fix | Delete
} : 0)("grid-column:", props => props.column, ";position:relative;justify-content:center;", props => props.column === 1 && `
[56407] Fix | Delete
justify-self: start;
[56408] Fix | Delete
`, " ", props => props.column === 7 && `
[56409] Fix | Delete
justify-self: end;
[56410] Fix | Delete
`, " ", props => props.disabled && `
[56411] Fix | Delete
pointer-events: none;
[56412] Fix | Delete
`, " &&&{border-radius:100%;height:", space(7), ";width:", space(7), ";", props => props.isSelected && `
[56413] Fix | Delete
background: ${COLORS.theme.accent};
[56414] Fix | Delete
color: ${COLORS.white};
[56415] Fix | Delete
`, " ", props => !props.isSelected && props.isToday && `
[56416] Fix | Delete
background: ${COLORS.gray[200]};
[56417] Fix | Delete
`, ";}", props => props.hasEvents && `
[56418] Fix | Delete
::before {
[56419] Fix | Delete
background: ${props.isSelected ? COLORS.white : COLORS.theme.accent};
[56420] Fix | Delete
border-radius: 2px;
[56421] Fix | Delete
bottom: 2px;
[56422] Fix | Delete
content: " ";
[56423] Fix | Delete
height: 4px;
[56424] Fix | Delete
left: 50%;
[56425] Fix | Delete
margin-left: -2px;
[56426] Fix | Delete
position: absolute;
[56427] Fix | Delete
width: 4px;
[56428] Fix | Delete
}
[56429] Fix | Delete
`, ";" + ( true ? "" : 0));
[56430] Fix | Delete
[56431] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/utils.js
[56432] Fix | Delete
/**
[56433] Fix | Delete
* External dependencies
[56434] Fix | Delete
*/
[56435] Fix | Delete
[56436] Fix | Delete
[56437] Fix | Delete
/**
[56438] Fix | Delete
* Like date-fn's toDate, but tries to guess the format when a string is
[56439] Fix | Delete
* given.
[56440] Fix | Delete
*
[56441] Fix | Delete
* @param input Value to turn into a date.
[56442] Fix | Delete
*/
[56443] Fix | Delete
function inputToDate(input) {
[56444] Fix | Delete
if (typeof input === 'string') {
[56445] Fix | Delete
return new Date(input);
[56446] Fix | Delete
}
[56447] Fix | Delete
return toDate_toDate(input);
[56448] Fix | Delete
}
[56449] Fix | Delete
[56450] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/constants.js
[56451] Fix | Delete
const TIMEZONELESS_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";
[56452] Fix | Delete
[56453] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/date/index.js
[56454] Fix | Delete
/**
[56455] Fix | Delete
* External dependencies
[56456] Fix | Delete
*/
[56457] Fix | Delete
[56458] Fix | Delete
[56459] Fix | Delete
/**
[56460] Fix | Delete
* WordPress dependencies
[56461] Fix | Delete
*/
[56462] Fix | Delete
[56463] Fix | Delete
[56464] Fix | Delete
[56465] Fix | Delete
[56466] Fix | Delete
[56467] Fix | Delete
/**
[56468] Fix | Delete
* Internal dependencies
[56469] Fix | Delete
*/
[56470] Fix | Delete
[56471] Fix | Delete
[56472] Fix | Delete
[56473] Fix | Delete
[56474] Fix | Delete
[56475] Fix | Delete
[56476] Fix | Delete
/**
[56477] Fix | Delete
* DatePicker is a React component that renders a calendar for date selection.
[56478] Fix | Delete
*
[56479] Fix | Delete
* ```jsx
[56480] Fix | Delete
* import { DatePicker } from '@wordpress/components';
[56481] Fix | Delete
* import { useState } from '@wordpress/element';
[56482] Fix | Delete
*
[56483] Fix | Delete
* const MyDatePicker = () => {
[56484] Fix | Delete
* const [ date, setDate ] = useState( new Date() );
[56485] Fix | Delete
*
[56486] Fix | Delete
* return (
[56487] Fix | Delete
* <DatePicker
[56488] Fix | Delete
* currentDate={ date }
[56489] Fix | Delete
* onChange={ ( newDate ) => setDate( newDate ) }
[56490] Fix | Delete
* />
[56491] Fix | Delete
* );
[56492] Fix | Delete
* };
[56493] Fix | Delete
* ```
[56494] Fix | Delete
*/
[56495] Fix | Delete
[56496] Fix | Delete
[56497] Fix | Delete
function DatePicker({
[56498] Fix | Delete
currentDate,
[56499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function