Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: components.js
isOutsideRange: function isOutsideRange(date) {
[29000] Fix | Delete
return isInvalidDate && isInvalidDate(date.toDate());
[29001] Fix | Delete
},
[29002] Fix | Delete
isDayHighlighted: this.isDayHighlighted,
[29003] Fix | Delete
onPrevMonthClick: this.keepFocusInside,
[29004] Fix | Delete
onNextMonthClick: this.keepFocusInside
[29005] Fix | Delete
}));
[29006] Fix | Delete
}
[29007] Fix | Delete
}]);
[29008] Fix | Delete
[29009] Fix | Delete
return DatePicker;
[29010] Fix | Delete
}(external_wp_element_["Component"]);
[29011] Fix | Delete
[29012] Fix | Delete
/* harmony default export */ var date_time_date = (date_DatePicker);
[29013] Fix | Delete
[29014] Fix | Delete
// EXTERNAL MODULE: external ["wp","date"]
[29015] Fix | Delete
var external_wp_date_ = __webpack_require__("FqII");
[29016] Fix | Delete
[29017] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/timezone.js
[29018] Fix | Delete
[29019] Fix | Delete
[29020] Fix | Delete
/**
[29021] Fix | Delete
* WordPress dependencies
[29022] Fix | Delete
*/
[29023] Fix | Delete
[29024] Fix | Delete
[29025] Fix | Delete
/**
[29026] Fix | Delete
* Internal dependencies
[29027] Fix | Delete
*/
[29028] Fix | Delete
[29029] Fix | Delete
[29030] Fix | Delete
/**
[29031] Fix | Delete
* Displays timezone information when user timezone is different from site timezone.
[29032] Fix | Delete
*/
[29033] Fix | Delete
[29034] Fix | Delete
var timezone_TimeZone = function TimeZone() {
[29035] Fix | Delete
var _getDateSettings = Object(external_wp_date_["__experimentalGetSettings"])(),
[29036] Fix | Delete
timezone = _getDateSettings.timezone; // Convert timezone offset to hours.
[29037] Fix | Delete
[29038] Fix | Delete
[29039] Fix | Delete
var userTimezoneOffset = -1 * (new Date().getTimezoneOffset() / 60); // System timezone and user timezone match, nothing needed.
[29040] Fix | Delete
// Compare as numbers because it comes over as string.
[29041] Fix | Delete
[29042] Fix | Delete
if (Number(timezone.offset) === userTimezoneOffset) {
[29043] Fix | Delete
return null;
[29044] Fix | Delete
}
[29045] Fix | Delete
[29046] Fix | Delete
var offsetSymbol = timezone.offset >= 0 ? '+' : '';
[29047] Fix | Delete
var zoneAbbr = '' !== timezone.abbr && isNaN(timezone.abbr) ? timezone.abbr : "UTC".concat(offsetSymbol).concat(timezone.offset);
[29048] Fix | Delete
var timezoneDetail = 'UTC' === timezone.string ? Object(external_wp_i18n_["__"])('Coordinated Universal Time') : "(".concat(zoneAbbr, ") ").concat(timezone.string.replace('_', ' '));
[29049] Fix | Delete
return Object(external_wp_element_["createElement"])(build_module_tooltip["a" /* default */], {
[29050] Fix | Delete
position: "top center",
[29051] Fix | Delete
text: timezoneDetail
[29052] Fix | Delete
}, Object(external_wp_element_["createElement"])("div", {
[29053] Fix | Delete
className: "components-datetime__timezone"
[29054] Fix | Delete
}, zoneAbbr));
[29055] Fix | Delete
};
[29056] Fix | Delete
[29057] Fix | Delete
/* harmony default export */ var date_time_timezone = (timezone_TimeZone);
[29058] Fix | Delete
[29059] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/time.js
[29060] Fix | Delete
[29061] Fix | Delete
[29062] Fix | Delete
[29063] Fix | Delete
[29064] Fix | Delete
[29065] Fix | Delete
function time_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
[29066] Fix | Delete
[29067] Fix | Delete
function time_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { time_ownKeys(Object(source), true).forEach(function (key) { Object(esm_defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { time_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
[29068] Fix | Delete
[29069] Fix | Delete
/**
[29070] Fix | Delete
* External dependencies
[29071] Fix | Delete
*/
[29072] Fix | Delete
[29073] Fix | Delete
[29074] Fix | Delete
[29075] Fix | Delete
/**
[29076] Fix | Delete
* WordPress dependencies
[29077] Fix | Delete
*/
[29078] Fix | Delete
[29079] Fix | Delete
[29080] Fix | Delete
[29081] Fix | Delete
/**
[29082] Fix | Delete
* Internal dependencies
[29083] Fix | Delete
*/
[29084] Fix | Delete
[29085] Fix | Delete
[29086] Fix | Delete
[29087] Fix | Delete
[29088] Fix | Delete
/**
[29089] Fix | Delete
* Module Constants
[29090] Fix | Delete
*/
[29091] Fix | Delete
[29092] Fix | Delete
var time_TIMEZONELESS_FORMAT = 'YYYY-MM-DDTHH:mm:ss';
[29093] Fix | Delete
/**
[29094] Fix | Delete
* <UpdateOnBlurAsIntegerField>
[29095] Fix | Delete
* A shared component to parse, validate, and handle remounting of the underlying form field element like <input> and <select>.
[29096] Fix | Delete
*
[29097] Fix | Delete
* @param {Object} props Component props.
[29098] Fix | Delete
* @param {string} props.as Render the component as specific element tag, defaults to "input".
[29099] Fix | Delete
* @param {number|string} props.value The default value of the component which will be parsed to integer.
[29100] Fix | Delete
* @param {Function} props.onUpdate Call back when blurred and validated.
[29101] Fix | Delete
*/
[29102] Fix | Delete
[29103] Fix | Delete
function UpdateOnBlurAsIntegerField(_ref) {
[29104] Fix | Delete
var as = _ref.as,
[29105] Fix | Delete
value = _ref.value,
[29106] Fix | Delete
onUpdate = _ref.onUpdate,
[29107] Fix | Delete
props = Object(objectWithoutProperties["a" /* default */])(_ref, ["as", "value", "onUpdate"]);
[29108] Fix | Delete
[29109] Fix | Delete
function handleBlur(event) {
[29110] Fix | Delete
var target = event.target;
[29111] Fix | Delete
[29112] Fix | Delete
if (value === target.value) {
[29113] Fix | Delete
return;
[29114] Fix | Delete
}
[29115] Fix | Delete
[29116] Fix | Delete
var parsedValue = parseInt(target.value, 10); // Run basic number validation on the input.
[29117] Fix | Delete
[29118] Fix | Delete
if (!Object(external_lodash_["isInteger"])(parsedValue) || typeof props.max !== 'undefined' && parsedValue > props.max || typeof props.min !== 'undefined' && parsedValue < props.min) {
[29119] Fix | Delete
// If validation failed, reset the value to the previous valid value.
[29120] Fix | Delete
target.value = value;
[29121] Fix | Delete
} else {
[29122] Fix | Delete
// Otherwise, it's valid, call onUpdate.
[29123] Fix | Delete
onUpdate(target.name, parsedValue);
[29124] Fix | Delete
}
[29125] Fix | Delete
}
[29126] Fix | Delete
[29127] Fix | Delete
return Object(external_wp_element_["createElement"])(as || 'input', time_objectSpread({
[29128] Fix | Delete
// Re-mount the input value to accept the latest value as the defaultValue.
[29129] Fix | Delete
key: value,
[29130] Fix | Delete
defaultValue: value,
[29131] Fix | Delete
onBlur: handleBlur
[29132] Fix | Delete
}, props));
[29133] Fix | Delete
}
[29134] Fix | Delete
/**
[29135] Fix | Delete
* <TimePicker>
[29136] Fix | Delete
*
[29137] Fix | Delete
* @typedef {Date|string|number} WPValidDateTimeFormat
[29138] Fix | Delete
*
[29139] Fix | Delete
* @param {Object} props Component props.
[29140] Fix | Delete
* @param {boolean} props.is12Hour Should the time picker showed in 12 hour format or 24 hour format.
[29141] Fix | Delete
* @param {WPValidDateTimeFormat} props.currentTime The initial current time the time picker should render.
[29142] Fix | Delete
* @param {Function} props.onChange Callback function when the date changed.
[29143] Fix | Delete
*/
[29144] Fix | Delete
[29145] Fix | Delete
[29146] Fix | Delete
function TimePicker(_ref2) {
[29147] Fix | Delete
var is12Hour = _ref2.is12Hour,
[29148] Fix | Delete
currentTime = _ref2.currentTime,
[29149] Fix | Delete
onChange = _ref2.onChange;
[29150] Fix | Delete
[29151] Fix | Delete
var _useState = Object(external_wp_element_["useState"])(function () {
[29152] Fix | Delete
return (// Truncate the date at the minutes, see: #15495.
[29153] Fix | Delete
external_moment_default()(currentTime).startOf('minutes')
[29154] Fix | Delete
);
[29155] Fix | Delete
}),
[29156] Fix | Delete
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
[29157] Fix | Delete
date = _useState2[0],
[29158] Fix | Delete
setDate = _useState2[1]; // Reset the state when currentTime changed.
[29159] Fix | Delete
[29160] Fix | Delete
[29161] Fix | Delete
Object(external_wp_element_["useEffect"])(function () {
[29162] Fix | Delete
setDate(currentTime ? external_moment_default()(currentTime).startOf('minutes') : external_moment_default()());
[29163] Fix | Delete
}, [currentTime]);
[29164] Fix | Delete
[29165] Fix | Delete
var _useMemo = Object(external_wp_element_["useMemo"])(function () {
[29166] Fix | Delete
return {
[29167] Fix | Delete
day: date.format('DD'),
[29168] Fix | Delete
month: date.format('MM'),
[29169] Fix | Delete
year: date.format('YYYY'),
[29170] Fix | Delete
minutes: date.format('mm'),
[29171] Fix | Delete
hours: date.format(is12Hour ? 'hh' : 'HH'),
[29172] Fix | Delete
am: date.format('H') <= 11 ? 'AM' : 'PM'
[29173] Fix | Delete
};
[29174] Fix | Delete
}, [date, is12Hour]),
[29175] Fix | Delete
day = _useMemo.day,
[29176] Fix | Delete
month = _useMemo.month,
[29177] Fix | Delete
year = _useMemo.year,
[29178] Fix | Delete
minutes = _useMemo.minutes,
[29179] Fix | Delete
hours = _useMemo.hours,
[29180] Fix | Delete
am = _useMemo.am;
[29181] Fix | Delete
/**
[29182] Fix | Delete
* Function that sets the date state and calls the onChange with a new date.
[29183] Fix | Delete
* The date is truncated at the minutes.
[29184] Fix | Delete
*
[29185] Fix | Delete
* @param {Object} newDate The date object.
[29186] Fix | Delete
*/
[29187] Fix | Delete
[29188] Fix | Delete
[29189] Fix | Delete
function changeDate(newDate) {
[29190] Fix | Delete
setDate(newDate);
[29191] Fix | Delete
onChange(newDate.format(time_TIMEZONELESS_FORMAT));
[29192] Fix | Delete
}
[29193] Fix | Delete
[29194] Fix | Delete
function update(name, value) {
[29195] Fix | Delete
// Clone the date and call the specific setter function according to `name`.
[29196] Fix | Delete
var newDate = date.clone()[name](value);
[29197] Fix | Delete
changeDate(newDate);
[29198] Fix | Delete
}
[29199] Fix | Delete
[29200] Fix | Delete
function updateAmPm(value) {
[29201] Fix | Delete
return function () {
[29202] Fix | Delete
if (am === value) {
[29203] Fix | Delete
return;
[29204] Fix | Delete
}
[29205] Fix | Delete
[29206] Fix | Delete
var parsedHours = parseInt(hours, 10);
[29207] Fix | Delete
var newDate = date.clone().hours(value === 'PM' ? (parsedHours % 12 + 12) % 24 : parsedHours % 12);
[29208] Fix | Delete
changeDate(newDate);
[29209] Fix | Delete
};
[29210] Fix | Delete
}
[29211] Fix | Delete
[29212] Fix | Delete
var dayFormat = Object(external_wp_element_["createElement"])("div", {
[29213] Fix | Delete
className: "components-datetime__time-field components-datetime__time-field-day"
[29214] Fix | Delete
}, Object(external_wp_element_["createElement"])(UpdateOnBlurAsIntegerField, {
[29215] Fix | Delete
"aria-label": Object(external_wp_i18n_["__"])('Day'),
[29216] Fix | Delete
className: "components-datetime__time-field-day-input",
[29217] Fix | Delete
type: "number" // The correct function to call in moment.js is "date" not "day".
[29218] Fix | Delete
,
[29219] Fix | Delete
name: "date",
[29220] Fix | Delete
value: day,
[29221] Fix | Delete
step: 1,
[29222] Fix | Delete
min: 1,
[29223] Fix | Delete
max: 31,
[29224] Fix | Delete
onUpdate: update
[29225] Fix | Delete
}));
[29226] Fix | Delete
var monthFormat = Object(external_wp_element_["createElement"])("div", {
[29227] Fix | Delete
className: "components-datetime__time-field components-datetime__time-field-month"
[29228] Fix | Delete
}, Object(external_wp_element_["createElement"])(UpdateOnBlurAsIntegerField, {
[29229] Fix | Delete
as: "select",
[29230] Fix | Delete
"aria-label": Object(external_wp_i18n_["__"])('Month'),
[29231] Fix | Delete
className: "components-datetime__time-field-month-select",
[29232] Fix | Delete
name: "month",
[29233] Fix | Delete
value: month // The value starts from 0, so we have to -1 when setting month.
[29234] Fix | Delete
,
[29235] Fix | Delete
onUpdate: function onUpdate(key, value) {
[29236] Fix | Delete
return update(key, value - 1);
[29237] Fix | Delete
}
[29238] Fix | Delete
}, Object(external_wp_element_["createElement"])("option", {
[29239] Fix | Delete
value: "01"
[29240] Fix | Delete
}, Object(external_wp_i18n_["__"])('January')), Object(external_wp_element_["createElement"])("option", {
[29241] Fix | Delete
value: "02"
[29242] Fix | Delete
}, Object(external_wp_i18n_["__"])('February')), Object(external_wp_element_["createElement"])("option", {
[29243] Fix | Delete
value: "03"
[29244] Fix | Delete
}, Object(external_wp_i18n_["__"])('March')), Object(external_wp_element_["createElement"])("option", {
[29245] Fix | Delete
value: "04"
[29246] Fix | Delete
}, Object(external_wp_i18n_["__"])('April')), Object(external_wp_element_["createElement"])("option", {
[29247] Fix | Delete
value: "05"
[29248] Fix | Delete
}, Object(external_wp_i18n_["__"])('May')), Object(external_wp_element_["createElement"])("option", {
[29249] Fix | Delete
value: "06"
[29250] Fix | Delete
}, Object(external_wp_i18n_["__"])('June')), Object(external_wp_element_["createElement"])("option", {
[29251] Fix | Delete
value: "07"
[29252] Fix | Delete
}, Object(external_wp_i18n_["__"])('July')), Object(external_wp_element_["createElement"])("option", {
[29253] Fix | Delete
value: "08"
[29254] Fix | Delete
}, Object(external_wp_i18n_["__"])('August')), Object(external_wp_element_["createElement"])("option", {
[29255] Fix | Delete
value: "09"
[29256] Fix | Delete
}, Object(external_wp_i18n_["__"])('September')), Object(external_wp_element_["createElement"])("option", {
[29257] Fix | Delete
value: "10"
[29258] Fix | Delete
}, Object(external_wp_i18n_["__"])('October')), Object(external_wp_element_["createElement"])("option", {
[29259] Fix | Delete
value: "11"
[29260] Fix | Delete
}, Object(external_wp_i18n_["__"])('November')), Object(external_wp_element_["createElement"])("option", {
[29261] Fix | Delete
value: "12"
[29262] Fix | Delete
}, Object(external_wp_i18n_["__"])('December'))));
[29263] Fix | Delete
var dayMonthFormat = is12Hour ? Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, dayFormat, monthFormat) : Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, monthFormat, dayFormat);
[29264] Fix | Delete
return Object(external_wp_element_["createElement"])("div", {
[29265] Fix | Delete
className: classnames_default()('components-datetime__time')
[29266] Fix | Delete
}, Object(external_wp_element_["createElement"])("fieldset", null, Object(external_wp_element_["createElement"])("legend", {
[29267] Fix | Delete
className: "components-datetime__time-legend invisible"
[29268] Fix | Delete
}, Object(external_wp_i18n_["__"])('Date')), Object(external_wp_element_["createElement"])("div", {
[29269] Fix | Delete
className: "components-datetime__time-wrapper"
[29270] Fix | Delete
}, dayMonthFormat, Object(external_wp_element_["createElement"])("div", {
[29271] Fix | Delete
className: "components-datetime__time-field components-datetime__time-field-year"
[29272] Fix | Delete
}, Object(external_wp_element_["createElement"])(UpdateOnBlurAsIntegerField, {
[29273] Fix | Delete
"aria-label": Object(external_wp_i18n_["__"])('Year'),
[29274] Fix | Delete
className: "components-datetime__time-field-year-input",
[29275] Fix | Delete
type: "number",
[29276] Fix | Delete
name: "year",
[29277] Fix | Delete
step: 1,
[29278] Fix | Delete
min: 0,
[29279] Fix | Delete
max: 9999,
[29280] Fix | Delete
value: year,
[29281] Fix | Delete
onUpdate: update
[29282] Fix | Delete
})))), Object(external_wp_element_["createElement"])("fieldset", null, Object(external_wp_element_["createElement"])("legend", {
[29283] Fix | Delete
className: "components-datetime__time-legend invisible"
[29284] Fix | Delete
}, Object(external_wp_i18n_["__"])('Time')), Object(external_wp_element_["createElement"])("div", {
[29285] Fix | Delete
className: "components-datetime__time-wrapper"
[29286] Fix | Delete
}, Object(external_wp_element_["createElement"])("div", {
[29287] Fix | Delete
className: "components-datetime__time-field components-datetime__time-field-time"
[29288] Fix | Delete
}, Object(external_wp_element_["createElement"])(UpdateOnBlurAsIntegerField, {
[29289] Fix | Delete
"aria-label": Object(external_wp_i18n_["__"])('Hours'),
[29290] Fix | Delete
className: "components-datetime__time-field-hours-input",
[29291] Fix | Delete
type: "number",
[29292] Fix | Delete
name: "hours",
[29293] Fix | Delete
step: 1,
[29294] Fix | Delete
min: is12Hour ? 1 : 0,
[29295] Fix | Delete
max: is12Hour ? 12 : 23,
[29296] Fix | Delete
value: hours,
[29297] Fix | Delete
onUpdate: update
[29298] Fix | Delete
}), Object(external_wp_element_["createElement"])("span", {
[29299] Fix | Delete
className: "components-datetime__time-separator",
[29300] Fix | Delete
"aria-hidden": "true"
[29301] Fix | Delete
}, ":"), Object(external_wp_element_["createElement"])(UpdateOnBlurAsIntegerField, {
[29302] Fix | Delete
"aria-label": Object(external_wp_i18n_["__"])('Minutes'),
[29303] Fix | Delete
className: "components-datetime__time-field-minutes-input",
[29304] Fix | Delete
type: "number",
[29305] Fix | Delete
name: "minutes",
[29306] Fix | Delete
step: 1,
[29307] Fix | Delete
min: 0,
[29308] Fix | Delete
max: 59,
[29309] Fix | Delete
value: minutes,
[29310] Fix | Delete
onUpdate: update
[29311] Fix | Delete
})), is12Hour && Object(external_wp_element_["createElement"])(button_group, {
[29312] Fix | Delete
className: "components-datetime__time-field components-datetime__time-field-am-pm"
[29313] Fix | Delete
}, Object(external_wp_element_["createElement"])(build_module_button["a" /* default */], {
[29314] Fix | Delete
isPrimary: am === 'AM',
[29315] Fix | Delete
isSecondary: am !== 'AM',
[29316] Fix | Delete
onClick: updateAmPm('AM'),
[29317] Fix | Delete
className: "components-datetime__time-am-button"
[29318] Fix | Delete
}, Object(external_wp_i18n_["__"])('AM')), Object(external_wp_element_["createElement"])(build_module_button["a" /* default */], {
[29319] Fix | Delete
isPrimary: am === 'PM',
[29320] Fix | Delete
isSecondary: am !== 'PM',
[29321] Fix | Delete
onClick: updateAmPm('PM'),
[29322] Fix | Delete
className: "components-datetime__time-pm-button"
[29323] Fix | Delete
}, Object(external_wp_i18n_["__"])('PM'))), Object(external_wp_element_["createElement"])(date_time_timezone, null))));
[29324] Fix | Delete
}
[29325] Fix | Delete
/* harmony default export */ var time = (TimePicker);
[29326] Fix | Delete
[29327] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/index.js
[29328] Fix | Delete
[29329] Fix | Delete
[29330] Fix | Delete
[29331] Fix | Delete
/**
[29332] Fix | Delete
* External dependencies
[29333] Fix | Delete
*/
[29334] Fix | Delete
// Needed to initialise the default datepicker styles.
[29335] Fix | Delete
// See: https://github.com/airbnb/react-dates#initialize
[29336] Fix | Delete
[29337] Fix | Delete
/**
[29338] Fix | Delete
* WordPress dependencies
[29339] Fix | Delete
*/
[29340] Fix | Delete
[29341] Fix | Delete
[29342] Fix | Delete
[29343] Fix | Delete
/**
[29344] Fix | Delete
* Internal dependencies
[29345] Fix | Delete
*/
[29346] Fix | Delete
[29347] Fix | Delete
[29348] Fix | Delete
[29349] Fix | Delete
[29350] Fix | Delete
[29351] Fix | Delete
[29352] Fix | Delete
function DateTimePicker(_ref, ref) {
[29353] Fix | Delete
var currentDate = _ref.currentDate,
[29354] Fix | Delete
is12Hour = _ref.is12Hour,
[29355] Fix | Delete
isInvalidDate = _ref.isInvalidDate,
[29356] Fix | Delete
onMonthPreviewed = _ref.onMonthPreviewed,
[29357] Fix | Delete
onChange = _ref.onChange,
[29358] Fix | Delete
events = _ref.events;
[29359] Fix | Delete
[29360] Fix | Delete
var _useState = Object(external_wp_element_["useState"])(false),
[29361] Fix | Delete
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
[29362] Fix | Delete
calendarHelpIsVisible = _useState2[0],
[29363] Fix | Delete
setCalendarHelpIsVisible = _useState2[1];
[29364] Fix | Delete
[29365] Fix | Delete
function onClickDescriptionToggle() {
[29366] Fix | Delete
setCalendarHelpIsVisible(!calendarHelpIsVisible);
[29367] Fix | Delete
}
[29368] Fix | Delete
[29369] Fix | Delete
return Object(external_wp_element_["createElement"])("div", {
[29370] Fix | Delete
ref: ref,
[29371] Fix | Delete
className: "components-datetime"
[29372] Fix | Delete
}, !calendarHelpIsVisible && Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])(time, {
[29373] Fix | Delete
currentTime: currentDate,
[29374] Fix | Delete
onChange: onChange,
[29375] Fix | Delete
is12Hour: is12Hour
[29376] Fix | Delete
}), Object(external_wp_element_["createElement"])(date_time_date, {
[29377] Fix | Delete
currentDate: currentDate,
[29378] Fix | Delete
onChange: onChange,
[29379] Fix | Delete
isInvalidDate: isInvalidDate,
[29380] Fix | Delete
onMonthPreviewed: onMonthPreviewed,
[29381] Fix | Delete
events: events
[29382] Fix | Delete
})), calendarHelpIsVisible && Object(external_wp_element_["createElement"])(external_wp_element_["Fragment"], null, Object(external_wp_element_["createElement"])("div", {
[29383] Fix | Delete
className: "components-datetime__calendar-help"
[29384] Fix | Delete
}, Object(external_wp_element_["createElement"])("h4", null, Object(external_wp_i18n_["__"])('Click to Select')), Object(external_wp_element_["createElement"])("ul", null, Object(external_wp_element_["createElement"])("li", null, Object(external_wp_i18n_["__"])('Click the right or left arrows to select other months in the past or the future.')), Object(external_wp_element_["createElement"])("li", null, Object(external_wp_i18n_["__"])('Click the desired day to select it.'))), Object(external_wp_element_["createElement"])("h4", null, Object(external_wp_i18n_["__"])('Navigating with a keyboard')), Object(external_wp_element_["createElement"])("ul", null, Object(external_wp_element_["createElement"])("li", null, Object(external_wp_element_["createElement"])("abbr", {
[29385] Fix | Delete
"aria-label": Object(external_wp_i18n_["_x"])('Enter', 'keyboard button')
[29386] Fix | Delete
}, "\u21B5"), ' '
[29387] Fix | Delete
/* JSX removes whitespace, but a space is required for screen readers. */
[29388] Fix | Delete
, Object(external_wp_element_["createElement"])("span", null, Object(external_wp_i18n_["__"])('Select the date in focus.'))), Object(external_wp_element_["createElement"])("li", null, Object(external_wp_element_["createElement"])("abbr", {
[29389] Fix | Delete
"aria-label": Object(external_wp_i18n_["__"])('Left and Right Arrows')
[29390] Fix | Delete
}, "\u2190/\u2192"), ' '
[29391] Fix | Delete
/* JSX removes whitespace, but a space is required for screen readers. */
[29392] Fix | Delete
, Object(external_wp_i18n_["__"])('Move backward (left) or forward (right) by one day.')), Object(external_wp_element_["createElement"])("li", null, Object(external_wp_element_["createElement"])("abbr", {
[29393] Fix | Delete
"aria-label": Object(external_wp_i18n_["__"])('Up and Down Arrows')
[29394] Fix | Delete
}, "\u2191/\u2193"), ' '
[29395] Fix | Delete
/* JSX removes whitespace, but a space is required for screen readers. */
[29396] Fix | Delete
, Object(external_wp_i18n_["__"])('Move backward (up) or forward (down) by one week.')), Object(external_wp_element_["createElement"])("li", null, Object(external_wp_element_["createElement"])("abbr", {
[29397] Fix | Delete
"aria-label": Object(external_wp_i18n_["__"])('Page Up and Page Down')
[29398] Fix | Delete
}, Object(external_wp_i18n_["__"])('PgUp/PgDn')), ' '
[29399] Fix | Delete
/* JSX removes whitespace, but a space is required for screen readers. */
[29400] Fix | Delete
, Object(external_wp_i18n_["__"])('Move backward (PgUp) or forward (PgDn) by one month.')), Object(external_wp_element_["createElement"])("li", null, Object(external_wp_element_["createElement"])("abbr", {
[29401] Fix | Delete
"aria-label": Object(external_wp_i18n_["__"])('Home and End')
[29402] Fix | Delete
}, Object(external_wp_i18n_["__"])('Home/End')), ' '
[29403] Fix | Delete
/* JSX removes whitespace, but a space is required for screen readers. */
[29404] Fix | Delete
, Object(external_wp_i18n_["__"])('Go to the first (home) or last (end) day of a week.'))))), Object(external_wp_element_["createElement"])("div", {
[29405] Fix | Delete
className: "components-datetime__buttons"
[29406] Fix | Delete
}, !calendarHelpIsVisible && currentDate && Object(external_wp_element_["createElement"])(build_module_button["a" /* default */], {
[29407] Fix | Delete
className: "components-datetime__date-reset-button",
[29408] Fix | Delete
isLink: true,
[29409] Fix | Delete
onClick: function onClick() {
[29410] Fix | Delete
return onChange(null);
[29411] Fix | Delete
}
[29412] Fix | Delete
}, Object(external_wp_i18n_["__"])('Reset')), Object(external_wp_element_["createElement"])(build_module_button["a" /* default */], {
[29413] Fix | Delete
className: "components-datetime__date-help-toggle",
[29414] Fix | Delete
isLink: true,
[29415] Fix | Delete
onClick: onClickDescriptionToggle
[29416] Fix | Delete
}, calendarHelpIsVisible ? Object(external_wp_i18n_["__"])('Close') : Object(external_wp_i18n_["__"])('Calendar Help'))));
[29417] Fix | Delete
}
[29418] Fix | Delete
[29419] Fix | Delete
/* harmony default export */ var date_time = (Object(external_wp_element_["forwardRef"])(DateTimePicker));
[29420] Fix | Delete
[29421] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/icon/index.js
[29422] Fix | Delete
var components_build_module_icon = __webpack_require__("9VDH");
[29423] Fix | Delete
[29424] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/select-control/styles/select-control-styles.js
[29425] Fix | Delete
[29426] Fix | Delete
[29427] Fix | Delete
/**
[29428] Fix | Delete
* External dependencies
[29429] Fix | Delete
*/
[29430] Fix | Delete
[29431] Fix | Delete
[29432] Fix | Delete
/**
[29433] Fix | Delete
* Internal dependencies
[29434] Fix | Delete
*/
[29435] Fix | Delete
[29436] Fix | Delete
[29437] Fix | Delete
var select_control_styles_disabledStyles = function disabledStyles(_ref) {
[29438] Fix | Delete
var disabled = _ref.disabled;
[29439] Fix | Delete
if (!disabled) return '';
[29440] Fix | Delete
return /*#__PURE__*/Object(core_browser_esm["b" /* css */])({
[29441] Fix | Delete
color: colors_color('ui.textDisabled')
[29442] Fix | Delete
}, true ? "" : undefined);
[29443] Fix | Delete
};
[29444] Fix | Delete
[29445] Fix | Delete
var select_control_styles_fontSizeStyles = function fontSizeStyles(_ref2) {
[29446] Fix | Delete
var size = _ref2.size;
[29447] Fix | Delete
var sizes = {
[29448] Fix | Delete
default: '13px',
[29449] Fix | Delete
small: '11px'
[29450] Fix | Delete
};
[29451] Fix | Delete
var fontSize = sizes[size];
[29452] Fix | Delete
var fontSizeMobile = '16px';
[29453] Fix | Delete
if (!fontSize) return '';
[29454] Fix | Delete
return /*#__PURE__*/Object(core_browser_esm["b" /* css */])("font-size:", fontSizeMobile, ";@media ( min-width:600px ){font-size:", fontSize, ";}" + ( true ? "" : undefined));
[29455] Fix | Delete
};
[29456] Fix | Delete
[29457] Fix | Delete
var select_control_styles_sizeStyles = function sizeStyles(_ref3) {
[29458] Fix | Delete
var size = _ref3.size;
[29459] Fix | Delete
var sizes = {
[29460] Fix | Delete
default: {
[29461] Fix | Delete
height: 30,
[29462] Fix | Delete
lineHeight: 1,
[29463] Fix | Delete
minHeight: 30
[29464] Fix | Delete
},
[29465] Fix | Delete
small: {
[29466] Fix | Delete
height: 24,
[29467] Fix | Delete
lineHeight: 1,
[29468] Fix | Delete
minHeight: 24
[29469] Fix | Delete
}
[29470] Fix | Delete
};
[29471] Fix | Delete
var style = sizes[size] || sizes.default;
[29472] Fix | Delete
return /*#__PURE__*/Object(core_browser_esm["b" /* css */])(style, true ? "" : undefined);
[29473] Fix | Delete
}; // TODO: Resolve need to use &&& to increase specificity
[29474] Fix | Delete
// https://github.com/WordPress/gutenberg/issues/18483
[29475] Fix | Delete
[29476] Fix | Delete
[29477] Fix | Delete
var Select = styled_base_browser_esm("select", {
[29478] Fix | Delete
target: "e12x0a390",
[29479] Fix | Delete
label: "Select"
[29480] Fix | Delete
})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:", colors_color('black'), ";display:block;margin:0;width:100%;", select_control_styles_disabledStyles, ";", select_control_styles_fontSizeStyles, ";", select_control_styles_sizeStyles, ";", rtl_rtl({
[29481] Fix | Delete
paddingLeft: 8,
[29482] Fix | Delete
paddingRight: 24
[29483] Fix | Delete
})(), "}" + ( true ? "" : undefined));
[29484] Fix | Delete
var DownArrowWrapper = styled_base_browser_esm("div", {
[29485] Fix | Delete
target: "e12x0a391",
[29486] Fix | Delete
label: "DownArrowWrapper"
[29487] Fix | Delete
})("align-items:center;bottom:0;box-sizing:border-box;display:flex;padding:0 4px;pointer-events:none;position:absolute;top:0;", rtl_rtl({
[29488] Fix | Delete
right: 0
[29489] Fix | Delete
})(), " svg{display:block;}" + ( true ? "" : undefined));
[29490] Fix | Delete
[29491] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/select-control/index.js
[29492] Fix | Delete
[29493] Fix | Delete
[29494] Fix | Delete
[29495] Fix | Delete
[29496] Fix | Delete
[29497] Fix | Delete
[29498] Fix | Delete
/**
[29499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function