Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: components.js
'is-tertiary': isTertiary,
[52500] Fix | Delete
'is-pressed': isPressed,
[52501] Fix | Delete
'is-busy': isBusy,
[52502] Fix | Delete
'is-link': isLink,
[52503] Fix | Delete
'is-destructive': isDestructive,
[52504] Fix | Delete
'has-text': !!icon && !!children,
[52505] Fix | Delete
'has-icon': !!icon
[52506] Fix | Delete
});
[52507] Fix | Delete
var trulyDisabled = disabled && !isFocusable;
[52508] Fix | Delete
var Tag = href !== undefined && !trulyDisabled ? 'a' : 'button';
[52509] Fix | Delete
var tagProps = Tag === 'a' ? {
[52510] Fix | Delete
href: href,
[52511] Fix | Delete
target: target
[52512] Fix | Delete
} : {
[52513] Fix | Delete
type: 'button',
[52514] Fix | Delete
disabled: trulyDisabled,
[52515] Fix | Delete
'aria-pressed': isPressed
[52516] Fix | Delete
};
[52517] Fix | Delete
[52518] Fix | Delete
if (disabled && isFocusable) {
[52519] Fix | Delete
// In this case, the button will be disabled, but still focusable and
[52520] Fix | Delete
// perceivable by screen reader users.
[52521] Fix | Delete
tagProps['aria-disabled'] = true;
[52522] Fix | Delete
[52523] Fix | Delete
var _iterator = _createForOfIteratorHelper(disabledEventsOnDisabledButton),
[52524] Fix | Delete
_step;
[52525] Fix | Delete
[52526] Fix | Delete
try {
[52527] Fix | Delete
for (_iterator.s(); !(_step = _iterator.n()).done;) {
[52528] Fix | Delete
var disabledEvent = _step.value;
[52529] Fix | Delete
[52530] Fix | Delete
additionalProps[disabledEvent] = function (event) {
[52531] Fix | Delete
event.stopPropagation();
[52532] Fix | Delete
event.preventDefault();
[52533] Fix | Delete
};
[52534] Fix | Delete
}
[52535] Fix | Delete
} catch (err) {
[52536] Fix | Delete
_iterator.e(err);
[52537] Fix | Delete
} finally {
[52538] Fix | Delete
_iterator.f();
[52539] Fix | Delete
}
[52540] Fix | Delete
} // Should show the tooltip if...
[52541] Fix | Delete
[52542] Fix | Delete
[52543] Fix | Delete
var shouldShowTooltip = !trulyDisabled && ( // an explicit tooltip is passed or...
[52544] Fix | Delete
showTooltip && label || // there's a shortcut or...
[52545] Fix | Delete
shortcut || // there's a label and...
[52546] Fix | Delete
!!label && ( // the children are empty and...
[52547] Fix | Delete
!children || Object(lodash__WEBPACK_IMPORTED_MODULE_4__["isArray"])(children) && !children.length) && // the tooltip is not explicitly disabled.
[52548] Fix | Delete
false !== showTooltip);
[52549] Fix | Delete
var descriptionId = describedBy ? Object(lodash__WEBPACK_IMPORTED_MODULE_4__["uniqueId"])() : null;
[52550] Fix | Delete
var describedById = additionalProps['aria-describedby'] || descriptionId;
[52551] Fix | Delete
var element = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(Tag, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, tagProps, additionalProps, {
[52552] Fix | Delete
className: classes,
[52553] Fix | Delete
"aria-label": additionalProps['aria-label'] || label,
[52554] Fix | Delete
"aria-describedby": describedById,
[52555] Fix | Delete
ref: ref
[52556] Fix | Delete
}), icon && iconPosition === 'left' && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_icon__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"], {
[52557] Fix | Delete
icon: icon,
[52558] Fix | Delete
size: iconSize
[52559] Fix | Delete
}), text && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["Fragment"], null, text), icon && iconPosition === 'right' && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_icon__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"], {
[52560] Fix | Delete
icon: icon,
[52561] Fix | Delete
size: iconSize
[52562] Fix | Delete
}), children);
[52563] Fix | Delete
[52564] Fix | Delete
if (!shouldShowTooltip) {
[52565] Fix | Delete
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["Fragment"], null, element, describedBy && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_visually_hidden__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("span", {
[52566] Fix | Delete
id: descriptionId
[52567] Fix | Delete
}, describedBy)));
[52568] Fix | Delete
}
[52569] Fix | Delete
[52570] Fix | Delete
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_tooltip__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"], {
[52571] Fix | Delete
text: describedBy ? describedBy : label,
[52572] Fix | Delete
shortcut: shortcut,
[52573] Fix | Delete
position: tooltipPosition
[52574] Fix | Delete
}, element), describedBy && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])(_visually_hidden__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["createElement"])("span", {
[52575] Fix | Delete
id: descriptionId
[52576] Fix | Delete
}, describedBy)));
[52577] Fix | Delete
}
[52578] Fix | Delete
/* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["forwardRef"])(Button));
[52579] Fix | Delete
[52580] Fix | Delete
[52581] Fix | Delete
/***/ }),
[52582] Fix | Delete
[52583] Fix | Delete
/***/ "kFtd":
[52584] Fix | Delete
/***/ (function(module, exports) {
[52585] Fix | Delete
[52586] Fix | Delete
Object.defineProperty(exports, "__esModule", {
[52587] Fix | Delete
value: true
[52588] Fix | Delete
});
[52589] Fix | Delete
var GLOBAL_CACHE_KEY = 'reactWithStylesInterfaceCSS';
[52590] Fix | Delete
var MAX_SPECIFICITY = 20;
[52591] Fix | Delete
[52592] Fix | Delete
exports.GLOBAL_CACHE_KEY = GLOBAL_CACHE_KEY;
[52593] Fix | Delete
exports.MAX_SPECIFICITY = MAX_SPECIFICITY;
[52594] Fix | Delete
[52595] Fix | Delete
/***/ }),
[52596] Fix | Delete
[52597] Fix | Delete
/***/ "kTC8":
[52598] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[52599] Fix | Delete
[52600] Fix | Delete
"use strict";
[52601] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CompositeItem; });
[52602] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return useCompositeItem; });
[52603] Fix | Delete
/* harmony import */ var _rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("BZp5");
[52604] Fix | Delete
/* harmony import */ var reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("dQ10");
[52605] Fix | Delete
/* harmony import */ var reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("1k9I");
[52606] Fix | Delete
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("cDcd");
[52607] Fix | Delete
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
[52608] Fix | Delete
/* harmony import */ var reakit_utils_useForkRef__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("mFP7");
[52609] Fix | Delete
/* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("FyLM");
[52610] Fix | Delete
/* harmony import */ var reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("+LFj");
[52611] Fix | Delete
/* harmony import */ var reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("eXCq");
[52612] Fix | Delete
/* harmony import */ var reakit_utils_hasFocusWithin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("yGlB");
[52613] Fix | Delete
/* harmony import */ var reakit_utils_isPortalEvent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("s2kj");
[52614] Fix | Delete
/* harmony import */ var _Clickable_Clickable_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("JLmN");
[52615] Fix | Delete
/* harmony import */ var reakit_utils_getDocument__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("Ccil");
[52616] Fix | Delete
/* harmony import */ var _getCurrentId_5aa9849e_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("iYXd");
[52617] Fix | Delete
/* harmony import */ var _keys_6742f591_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("TFuP");
[52618] Fix | Delete
/* harmony import */ var _userFocus_e16425e3_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("Mih7");
[52619] Fix | Delete
/* harmony import */ var reakit_utils_isTextField__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("aBWF");
[52620] Fix | Delete
/* harmony import */ var reakit_utils_ensureFocus__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("oZ/g");
[52621] Fix | Delete
/* harmony import */ var _Id_Id_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("ym77");
[52622] Fix | Delete
/* harmony import */ var _setTextFieldValue_0a221f4e_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__("0HL0");
[52623] Fix | Delete
[52624] Fix | Delete
[52625] Fix | Delete
[52626] Fix | Delete
[52627] Fix | Delete
[52628] Fix | Delete
[52629] Fix | Delete
[52630] Fix | Delete
[52631] Fix | Delete
[52632] Fix | Delete
[52633] Fix | Delete
[52634] Fix | Delete
[52635] Fix | Delete
[52636] Fix | Delete
[52637] Fix | Delete
[52638] Fix | Delete
[52639] Fix | Delete
[52640] Fix | Delete
[52641] Fix | Delete
[52642] Fix | Delete
[52643] Fix | Delete
[52644] Fix | Delete
[52645] Fix | Delete
[52646] Fix | Delete
[52647] Fix | Delete
[52648] Fix | Delete
[52649] Fix | Delete
[52650] Fix | Delete
[52651] Fix | Delete
[52652] Fix | Delete
function getWidget(itemElement) {
[52653] Fix | Delete
return itemElement.querySelector("[data-composite-item-widget]");
[52654] Fix | Delete
}
[52655] Fix | Delete
[52656] Fix | Delete
function useItem(options) {
[52657] Fix | Delete
return Object(react__WEBPACK_IMPORTED_MODULE_3__["useMemo"])(function () {
[52658] Fix | Delete
var _options$items;
[52659] Fix | Delete
[52660] Fix | Delete
return (_options$items = options.items) === null || _options$items === void 0 ? void 0 : _options$items.find(function (item) {
[52661] Fix | Delete
return options.id && item.id === options.id;
[52662] Fix | Delete
});
[52663] Fix | Delete
}, [options.items, options.id]);
[52664] Fix | Delete
}
[52665] Fix | Delete
[52666] Fix | Delete
function targetIsAnotherItem(event, items) {
[52667] Fix | Delete
if (Object(reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_7__[/* isSelfTarget */ "a"])(event)) return false;
[52668] Fix | Delete
[52669] Fix | Delete
for (var _iterator = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* b */ "c"])(items), _step; !(_step = _iterator()).done;) {
[52670] Fix | Delete
var item = _step.value;
[52671] Fix | Delete
[52672] Fix | Delete
if (item.ref.current === event.target) {
[52673] Fix | Delete
return true;
[52674] Fix | Delete
}
[52675] Fix | Delete
}
[52676] Fix | Delete
[52677] Fix | Delete
return false;
[52678] Fix | Delete
}
[52679] Fix | Delete
[52680] Fix | Delete
var useCompositeItem = Object(reakit_system_createHook__WEBPACK_IMPORTED_MODULE_2__[/* createHook */ "a"])({
[52681] Fix | Delete
name: "CompositeItem",
[52682] Fix | Delete
compose: [_Clickable_Clickable_js__WEBPACK_IMPORTED_MODULE_10__[/* useClickable */ "a"], _Id_Id_js__WEBPACK_IMPORTED_MODULE_17__[/* unstable_useId */ "a"]],
[52683] Fix | Delete
keys: _keys_6742f591_js__WEBPACK_IMPORTED_MODULE_13__[/* b */ "c"],
[52684] Fix | Delete
propsAreEqual: function propsAreEqual(prev, next) {
[52685] Fix | Delete
if (!next.id || prev.id !== next.id) {
[52686] Fix | Delete
return _Clickable_Clickable_js__WEBPACK_IMPORTED_MODULE_10__[/* useClickable */ "a"].unstable_propsAreEqual(prev, next);
[52687] Fix | Delete
}
[52688] Fix | Delete
[52689] Fix | Delete
var prevCurrentId = prev.currentId,
[52690] Fix | Delete
prevMoves = prev.unstable_moves,
[52691] Fix | Delete
prevProps = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* _ */ "a"])(prev, ["currentId", "unstable_moves"]);
[52692] Fix | Delete
[52693] Fix | Delete
var nextCurrentId = next.currentId,
[52694] Fix | Delete
nextMoves = next.unstable_moves,
[52695] Fix | Delete
nextProps = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* _ */ "a"])(next, ["currentId", "unstable_moves"]);
[52696] Fix | Delete
[52697] Fix | Delete
if (nextCurrentId !== prevCurrentId) {
[52698] Fix | Delete
if (next.id === nextCurrentId || next.id === prevCurrentId) {
[52699] Fix | Delete
return false;
[52700] Fix | Delete
}
[52701] Fix | Delete
} else if (prevMoves !== nextMoves) {
[52702] Fix | Delete
return false;
[52703] Fix | Delete
}
[52704] Fix | Delete
[52705] Fix | Delete
return _Clickable_Clickable_js__WEBPACK_IMPORTED_MODULE_10__[/* useClickable */ "a"].unstable_propsAreEqual(prevProps, nextProps);
[52706] Fix | Delete
},
[52707] Fix | Delete
useOptions: function useOptions(options) {
[52708] Fix | Delete
return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])(Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({}, options), {}, {
[52709] Fix | Delete
id: options.id,
[52710] Fix | Delete
currentId: Object(_getCurrentId_5aa9849e_js__WEBPACK_IMPORTED_MODULE_12__[/* g */ "b"])(options),
[52711] Fix | Delete
unstable_clickOnSpace: options.unstable_hasActiveWidget ? false : options.unstable_clickOnSpace
[52712] Fix | Delete
});
[52713] Fix | Delete
},
[52714] Fix | Delete
useProps: function useProps(options, _ref) {
[52715] Fix | Delete
var _options$items2;
[52716] Fix | Delete
[52717] Fix | Delete
var htmlRef = _ref.ref,
[52718] Fix | Delete
_ref$tabIndex = _ref.tabIndex,
[52719] Fix | Delete
htmlTabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex,
[52720] Fix | Delete
htmlOnMouseDown = _ref.onMouseDown,
[52721] Fix | Delete
htmlOnFocus = _ref.onFocus,
[52722] Fix | Delete
htmlOnBlurCapture = _ref.onBlurCapture,
[52723] Fix | Delete
htmlOnKeyDown = _ref.onKeyDown,
[52724] Fix | Delete
htmlOnClick = _ref.onClick,
[52725] Fix | Delete
htmlProps = Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* _ */ "a"])(_ref, ["ref", "tabIndex", "onMouseDown", "onFocus", "onBlurCapture", "onKeyDown", "onClick"]);
[52726] Fix | Delete
[52727] Fix | Delete
var ref = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])(null);
[52728] Fix | Delete
var id = options.id;
[52729] Fix | Delete
var trulyDisabled = options.disabled && !options.focusable;
[52730] Fix | Delete
var isCurrentItem = options.currentId === id;
[52731] Fix | Delete
var isCurrentItemRef = Object(reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__[/* useLiveRef */ "a"])(isCurrentItem);
[52732] Fix | Delete
var hasFocusedComposite = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])(false);
[52733] Fix | Delete
var item = useItem(options);
[52734] Fix | Delete
var onMouseDownRef = Object(reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__[/* useLiveRef */ "a"])(htmlOnMouseDown);
[52735] Fix | Delete
var onFocusRef = Object(reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__[/* useLiveRef */ "a"])(htmlOnFocus);
[52736] Fix | Delete
var onBlurCaptureRef = Object(reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__[/* useLiveRef */ "a"])(htmlOnBlurCapture);
[52737] Fix | Delete
var onKeyDownRef = Object(reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__[/* useLiveRef */ "a"])(htmlOnKeyDown);
[52738] Fix | Delete
var onClickRef = Object(reakit_utils_useLiveRef__WEBPACK_IMPORTED_MODULE_6__[/* useLiveRef */ "a"])(htmlOnClick);
[52739] Fix | Delete
var shouldTabIndex = !options.unstable_virtual && !options.unstable_hasActiveWidget && isCurrentItem || // We don't want to set tabIndex="-1" when using CompositeItem as a
[52740] Fix | Delete
// standalone component, without state props.
[52741] Fix | Delete
!((_options$items2 = options.items) !== null && _options$items2 !== void 0 && _options$items2.length);
[52742] Fix | Delete
Object(react__WEBPACK_IMPORTED_MODULE_3__["useEffect"])(function () {
[52743] Fix | Delete
var _options$registerItem;
[52744] Fix | Delete
[52745] Fix | Delete
if (!id) return undefined;
[52746] Fix | Delete
(_options$registerItem = options.registerItem) === null || _options$registerItem === void 0 ? void 0 : _options$registerItem.call(options, {
[52747] Fix | Delete
id: id,
[52748] Fix | Delete
ref: ref,
[52749] Fix | Delete
disabled: !!trulyDisabled
[52750] Fix | Delete
});
[52751] Fix | Delete
return function () {
[52752] Fix | Delete
var _options$unregisterIt;
[52753] Fix | Delete
[52754] Fix | Delete
(_options$unregisterIt = options.unregisterItem) === null || _options$unregisterIt === void 0 ? void 0 : _options$unregisterIt.call(options, id);
[52755] Fix | Delete
};
[52756] Fix | Delete
}, [id, trulyDisabled, options.registerItem, options.unregisterItem]);
[52757] Fix | Delete
Object(react__WEBPACK_IMPORTED_MODULE_3__["useEffect"])(function () {
[52758] Fix | Delete
var element = ref.current;
[52759] Fix | Delete
[52760] Fix | Delete
if (!element) {
[52761] Fix | Delete
false ? undefined : void 0;
[52762] Fix | Delete
return;
[52763] Fix | Delete
} // `moves` will be incremented whenever next, previous, up, down, first,
[52764] Fix | Delete
// last or move have been called. This means that the composite item will
[52765] Fix | Delete
// be focused whenever some of these functions are called. We're using
[52766] Fix | Delete
// isCurrentItemRef instead of isCurrentItem because we don't want to
[52767] Fix | Delete
// focus the item if isCurrentItem changes (and options.moves doesn't).
[52768] Fix | Delete
[52769] Fix | Delete
[52770] Fix | Delete
if (options.unstable_moves && isCurrentItemRef.current) {
[52771] Fix | Delete
Object(_userFocus_e16425e3_js__WEBPACK_IMPORTED_MODULE_14__[/* u */ "c"])(element);
[52772] Fix | Delete
}
[52773] Fix | Delete
}, [options.unstable_moves]);
[52774] Fix | Delete
var onMouseDown = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function (event) {
[52775] Fix | Delete
var _onMouseDownRef$curre;
[52776] Fix | Delete
[52777] Fix | Delete
(_onMouseDownRef$curre = onMouseDownRef.current) === null || _onMouseDownRef$curre === void 0 ? void 0 : _onMouseDownRef$curre.call(onMouseDownRef, event);
[52778] Fix | Delete
Object(_userFocus_e16425e3_js__WEBPACK_IMPORTED_MODULE_14__[/* s */ "b"])(event.currentTarget, true);
[52779] Fix | Delete
}, []);
[52780] Fix | Delete
var onFocus = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function (event) {
[52781] Fix | Delete
var _onFocusRef$current, _options$setCurrentId;
[52782] Fix | Delete
[52783] Fix | Delete
var shouldFocusComposite = Object(_userFocus_e16425e3_js__WEBPACK_IMPORTED_MODULE_14__[/* h */ "a"])(event.currentTarget);
[52784] Fix | Delete
Object(_userFocus_e16425e3_js__WEBPACK_IMPORTED_MODULE_14__[/* s */ "b"])(event.currentTarget, false);
[52785] Fix | Delete
(_onFocusRef$current = onFocusRef.current) === null || _onFocusRef$current === void 0 ? void 0 : _onFocusRef$current.call(onFocusRef, event);
[52786] Fix | Delete
if (event.defaultPrevented) return;
[52787] Fix | Delete
if (Object(reakit_utils_isPortalEvent__WEBPACK_IMPORTED_MODULE_9__[/* isPortalEvent */ "a"])(event)) return;
[52788] Fix | Delete
if (!id) return;
[52789] Fix | Delete
if (targetIsAnotherItem(event, options.items)) return;
[52790] Fix | Delete
(_options$setCurrentId = options.setCurrentId) === null || _options$setCurrentId === void 0 ? void 0 : _options$setCurrentId.call(options, id); // When using aria-activedescendant, we want to make sure that the
[52791] Fix | Delete
// composite container receives focus, not the composite item.
[52792] Fix | Delete
// But we don't want to do this if the target is another focusable
[52793] Fix | Delete
// element inside the composite item, such as CompositeItemWidget.
[52794] Fix | Delete
[52795] Fix | Delete
if (shouldFocusComposite && options.unstable_virtual && options.baseId && Object(reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_7__[/* isSelfTarget */ "a"])(event)) {
[52796] Fix | Delete
var target = event.target;
[52797] Fix | Delete
var composite = Object(reakit_utils_getDocument__WEBPACK_IMPORTED_MODULE_11__[/* getDocument */ "a"])(target).getElementById(options.baseId);
[52798] Fix | Delete
[52799] Fix | Delete
if (composite) {
[52800] Fix | Delete
hasFocusedComposite.current = true;
[52801] Fix | Delete
Object(reakit_utils_ensureFocus__WEBPACK_IMPORTED_MODULE_16__[/* ensureFocus */ "a"])(composite);
[52802] Fix | Delete
}
[52803] Fix | Delete
}
[52804] Fix | Delete
}, [id, options.items, options.setCurrentId, options.unstable_virtual, options.baseId]);
[52805] Fix | Delete
var onBlurCapture = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function (event) {
[52806] Fix | Delete
var _onBlurCaptureRef$cur;
[52807] Fix | Delete
[52808] Fix | Delete
(_onBlurCaptureRef$cur = onBlurCaptureRef.current) === null || _onBlurCaptureRef$cur === void 0 ? void 0 : _onBlurCaptureRef$cur.call(onBlurCaptureRef, event);
[52809] Fix | Delete
if (event.defaultPrevented) return;
[52810] Fix | Delete
[52811] Fix | Delete
if (options.unstable_virtual && hasFocusedComposite.current) {
[52812] Fix | Delete
// When hasFocusedComposite is true, composite has been focused right
[52813] Fix | Delete
// after focusing this item. This is an intermediate blur event, so
[52814] Fix | Delete
// we ignore it.
[52815] Fix | Delete
hasFocusedComposite.current = false;
[52816] Fix | Delete
event.preventDefault();
[52817] Fix | Delete
event.stopPropagation();
[52818] Fix | Delete
}
[52819] Fix | Delete
}, [options.unstable_virtual]);
[52820] Fix | Delete
var onKeyDown = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function (event) {
[52821] Fix | Delete
var _onKeyDownRef$current;
[52822] Fix | Delete
[52823] Fix | Delete
if (!Object(reakit_utils_isSelfTarget__WEBPACK_IMPORTED_MODULE_7__[/* isSelfTarget */ "a"])(event)) return;
[52824] Fix | Delete
var isVertical = options.orientation !== "horizontal";
[52825] Fix | Delete
var isHorizontal = options.orientation !== "vertical";
[52826] Fix | Delete
var isGrid = !!(item !== null && item !== void 0 && item.groupId);
[52827] Fix | Delete
var keyMap = {
[52828] Fix | Delete
ArrowUp: (isGrid || isVertical) && options.up,
[52829] Fix | Delete
ArrowRight: (isGrid || isHorizontal) && options.next,
[52830] Fix | Delete
ArrowDown: (isGrid || isVertical) && options.down,
[52831] Fix | Delete
ArrowLeft: (isGrid || isHorizontal) && options.previous,
[52832] Fix | Delete
Home: function Home() {
[52833] Fix | Delete
if (!isGrid || event.ctrlKey) {
[52834] Fix | Delete
var _options$first;
[52835] Fix | Delete
[52836] Fix | Delete
(_options$first = options.first) === null || _options$first === void 0 ? void 0 : _options$first.call(options);
[52837] Fix | Delete
} else {
[52838] Fix | Delete
var _options$previous;
[52839] Fix | Delete
[52840] Fix | Delete
(_options$previous = options.previous) === null || _options$previous === void 0 ? void 0 : _options$previous.call(options, true);
[52841] Fix | Delete
}
[52842] Fix | Delete
},
[52843] Fix | Delete
End: function End() {
[52844] Fix | Delete
if (!isGrid || event.ctrlKey) {
[52845] Fix | Delete
var _options$last;
[52846] Fix | Delete
[52847] Fix | Delete
(_options$last = options.last) === null || _options$last === void 0 ? void 0 : _options$last.call(options);
[52848] Fix | Delete
} else {
[52849] Fix | Delete
var _options$next;
[52850] Fix | Delete
[52851] Fix | Delete
(_options$next = options.next) === null || _options$next === void 0 ? void 0 : _options$next.call(options, true);
[52852] Fix | Delete
}
[52853] Fix | Delete
},
[52854] Fix | Delete
PageUp: function PageUp() {
[52855] Fix | Delete
if (isGrid) {
[52856] Fix | Delete
var _options$up;
[52857] Fix | Delete
[52858] Fix | Delete
(_options$up = options.up) === null || _options$up === void 0 ? void 0 : _options$up.call(options, true);
[52859] Fix | Delete
} else {
[52860] Fix | Delete
var _options$first2;
[52861] Fix | Delete
[52862] Fix | Delete
(_options$first2 = options.first) === null || _options$first2 === void 0 ? void 0 : _options$first2.call(options);
[52863] Fix | Delete
}
[52864] Fix | Delete
},
[52865] Fix | Delete
PageDown: function PageDown() {
[52866] Fix | Delete
if (isGrid) {
[52867] Fix | Delete
var _options$down;
[52868] Fix | Delete
[52869] Fix | Delete
(_options$down = options.down) === null || _options$down === void 0 ? void 0 : _options$down.call(options, true);
[52870] Fix | Delete
} else {
[52871] Fix | Delete
var _options$last2;
[52872] Fix | Delete
[52873] Fix | Delete
(_options$last2 = options.last) === null || _options$last2 === void 0 ? void 0 : _options$last2.call(options);
[52874] Fix | Delete
}
[52875] Fix | Delete
}
[52876] Fix | Delete
};
[52877] Fix | Delete
var action = keyMap[event.key];
[52878] Fix | Delete
[52879] Fix | Delete
if (action) {
[52880] Fix | Delete
event.preventDefault();
[52881] Fix | Delete
action();
[52882] Fix | Delete
return;
[52883] Fix | Delete
}
[52884] Fix | Delete
[52885] Fix | Delete
(_onKeyDownRef$current = onKeyDownRef.current) === null || _onKeyDownRef$current === void 0 ? void 0 : _onKeyDownRef$current.call(onKeyDownRef, event);
[52886] Fix | Delete
if (event.defaultPrevented) return;
[52887] Fix | Delete
[52888] Fix | Delete
if (event.key.length === 1 && event.key !== " ") {
[52889] Fix | Delete
var widget = getWidget(event.currentTarget);
[52890] Fix | Delete
[52891] Fix | Delete
if (widget && Object(reakit_utils_isTextField__WEBPACK_IMPORTED_MODULE_15__[/* isTextField */ "a"])(widget)) {
[52892] Fix | Delete
widget.focus();
[52893] Fix | Delete
Object(_setTextFieldValue_0a221f4e_js__WEBPACK_IMPORTED_MODULE_18__[/* s */ "a"])(widget, "");
[52894] Fix | Delete
}
[52895] Fix | Delete
} else if (event.key === "Delete" || event.key === "Backspace") {
[52896] Fix | Delete
var _widget = getWidget(event.currentTarget);
[52897] Fix | Delete
[52898] Fix | Delete
if (_widget && Object(reakit_utils_isTextField__WEBPACK_IMPORTED_MODULE_15__[/* isTextField */ "a"])(_widget)) {
[52899] Fix | Delete
event.preventDefault();
[52900] Fix | Delete
Object(_setTextFieldValue_0a221f4e_js__WEBPACK_IMPORTED_MODULE_18__[/* s */ "a"])(_widget, "");
[52901] Fix | Delete
}
[52902] Fix | Delete
}
[52903] Fix | Delete
}, [options.orientation, item, options.up, options.next, options.down, options.previous, options.first, options.last]);
[52904] Fix | Delete
var onClick = Object(react__WEBPACK_IMPORTED_MODULE_3__["useCallback"])(function (event) {
[52905] Fix | Delete
var _onClickRef$current;
[52906] Fix | Delete
[52907] Fix | Delete
(_onClickRef$current = onClickRef.current) === null || _onClickRef$current === void 0 ? void 0 : _onClickRef$current.call(onClickRef, event);
[52908] Fix | Delete
if (event.defaultPrevented) return;
[52909] Fix | Delete
var element = event.currentTarget;
[52910] Fix | Delete
var widget = getWidget(element);
[52911] Fix | Delete
[52912] Fix | Delete
if (widget && !Object(reakit_utils_hasFocusWithin__WEBPACK_IMPORTED_MODULE_8__[/* hasFocusWithin */ "a"])(widget)) {
[52913] Fix | Delete
// If there's a widget inside the composite item, we make sure it's
[52914] Fix | Delete
// focused when pressing enter, space or clicking on the composite item.
[52915] Fix | Delete
widget.focus();
[52916] Fix | Delete
}
[52917] Fix | Delete
}, []);
[52918] Fix | Delete
return Object(_rollupPluginBabelHelpers_1f0bf8c2_js__WEBPACK_IMPORTED_MODULE_0__[/* a */ "b"])({
[52919] Fix | Delete
ref: Object(reakit_utils_useForkRef__WEBPACK_IMPORTED_MODULE_4__[/* useForkRef */ "a"])(ref, htmlRef),
[52920] Fix | Delete
id: id,
[52921] Fix | Delete
tabIndex: shouldTabIndex ? htmlTabIndex : -1,
[52922] Fix | Delete
"aria-selected": options.unstable_virtual && isCurrentItem ? true : undefined,
[52923] Fix | Delete
onMouseDown: onMouseDown,
[52924] Fix | Delete
onFocus: onFocus,
[52925] Fix | Delete
onBlurCapture: onBlurCapture,
[52926] Fix | Delete
onKeyDown: onKeyDown,
[52927] Fix | Delete
onClick: onClick
[52928] Fix | Delete
}, htmlProps);
[52929] Fix | Delete
}
[52930] Fix | Delete
});
[52931] Fix | Delete
var CompositeItem = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1__[/* createComponent */ "a"])({
[52932] Fix | Delete
as: "button",
[52933] Fix | Delete
memo: true,
[52934] Fix | Delete
useHook: useCompositeItem
[52935] Fix | Delete
});
[52936] Fix | Delete
[52937] Fix | Delete
[52938] Fix | Delete
[52939] Fix | Delete
[52940] Fix | Delete
/***/ }),
[52941] Fix | Delete
[52942] Fix | Delete
/***/ "kgBv":
[52943] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[52944] Fix | Delete
[52945] Fix | Delete
"use strict";
[52946] Fix | Delete
[52947] Fix | Delete
[52948] Fix | Delete
var GetIntrinsic = __webpack_require__("AM7I");
[52949] Fix | Delete
[52950] Fix | Delete
var $gOPD = __webpack_require__("knm9");
[52951] Fix | Delete
var $TypeError = GetIntrinsic('%TypeError%');
[52952] Fix | Delete
[52953] Fix | Delete
var callBound = __webpack_require__("EXo9");
[52954] Fix | Delete
[52955] Fix | Delete
var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable');
[52956] Fix | Delete
[52957] Fix | Delete
var has = __webpack_require__("oNNP");
[52958] Fix | Delete
[52959] Fix | Delete
var IsArray = __webpack_require__("9cOx");
[52960] Fix | Delete
var IsPropertyKey = __webpack_require__("i10q");
[52961] Fix | Delete
var IsRegExp = __webpack_require__("yy3d");
[52962] Fix | Delete
var ToPropertyDescriptor = __webpack_require__("eBsn");
[52963] Fix | Delete
var Type = __webpack_require__("V1cy");
[52964] Fix | Delete
[52965] Fix | Delete
// https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
[52966] Fix | Delete
[52967] Fix | Delete
module.exports = function OrdinaryGetOwnProperty(O, P) {
[52968] Fix | Delete
if (Type(O) !== 'Object') {
[52969] Fix | Delete
throw new $TypeError('Assertion failed: O must be an Object');
[52970] Fix | Delete
}
[52971] Fix | Delete
if (!IsPropertyKey(P)) {
[52972] Fix | Delete
throw new $TypeError('Assertion failed: P must be a Property Key');
[52973] Fix | Delete
}
[52974] Fix | Delete
if (!has(O, P)) {
[52975] Fix | Delete
return void 0;
[52976] Fix | Delete
}
[52977] Fix | Delete
if (!$gOPD) {
[52978] Fix | Delete
// ES3 / IE 8 fallback
[52979] Fix | Delete
var arrayLength = IsArray(O) && P === 'length';
[52980] Fix | Delete
var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
[52981] Fix | Delete
return {
[52982] Fix | Delete
'[[Configurable]]': !(arrayLength || regexLastIndex),
[52983] Fix | Delete
'[[Enumerable]]': $isEnumerable(O, P),
[52984] Fix | Delete
'[[Value]]': O[P],
[52985] Fix | Delete
'[[Writable]]': true
[52986] Fix | Delete
};
[52987] Fix | Delete
}
[52988] Fix | Delete
return ToPropertyDescriptor($gOPD(O, P));
[52989] Fix | Delete
};
[52990] Fix | Delete
[52991] Fix | Delete
[52992] Fix | Delete
/***/ }),
[52993] Fix | Delete
[52994] Fix | Delete
/***/ "knm9":
[52995] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[52996] Fix | Delete
[52997] Fix | Delete
"use strict";
[52998] Fix | Delete
[52999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function