Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: components.js
match: '',
[24000] Fix | Delete
onHover: function onHover() {},
[24001] Fix | Delete
onSelect: function onSelect() {},
[24002] Fix | Delete
suggestions: Object.freeze([])
[24003] Fix | Delete
};
[24004] Fix | Delete
/* harmony default export */ var suggestions_list = (Object(external_wp_compose_["withSafeTimeout"])(suggestions_list_SuggestionsList));
[24005] Fix | Delete
[24006] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-outside/index.js
[24007] Fix | Delete
[24008] Fix | Delete
[24009] Fix | Delete
[24010] Fix | Delete
[24011] Fix | Delete
/**
[24012] Fix | Delete
* WordPress dependencies
[24013] Fix | Delete
*/
[24014] Fix | Delete
[24015] Fix | Delete
[24016] Fix | Delete
/* harmony default export */ var with_focus_outside = (Object(external_wp_compose_["createHigherOrderComponent"])(function (WrappedComponent) {
[24017] Fix | Delete
return function (props) {
[24018] Fix | Delete
var _useState = Object(external_wp_element_["useState"])(),
[24019] Fix | Delete
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
[24020] Fix | Delete
handleFocusOutside = _useState2[0],
[24021] Fix | Delete
setHandleFocusOutside = _useState2[1];
[24022] Fix | Delete
[24023] Fix | Delete
var bindFocusOutsideHandler = Object(external_wp_element_["useCallback"])(function (node) {
[24024] Fix | Delete
return setHandleFocusOutside(function () {
[24025] Fix | Delete
return node !== null && node !== void 0 && node.handleFocusOutside ? node.handleFocusOutside.bind(node) : undefined;
[24026] Fix | Delete
});
[24027] Fix | Delete
}, []);
[24028] Fix | Delete
return Object(external_wp_element_["createElement"])("div", Object(external_wp_compose_["__experimentalUseFocusOutside"])(handleFocusOutside), Object(external_wp_element_["createElement"])(WrappedComponent, Object(esm_extends["a" /* default */])({
[24029] Fix | Delete
ref: bindFocusOutsideHandler
[24030] Fix | Delete
}, props)));
[24031] Fix | Delete
};
[24032] Fix | Delete
}, 'withFocusOutside'));
[24033] Fix | Delete
[24034] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/combobox-control/index.js
[24035] Fix | Delete
[24036] Fix | Delete
[24037] Fix | Delete
[24038] Fix | Delete
[24039] Fix | Delete
[24040] Fix | Delete
[24041] Fix | Delete
[24042] Fix | Delete
[24043] Fix | Delete
function combobox_control_createSuper(Derived) { var hasNativeReflectConstruct = combobox_control_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; }
[24044] Fix | Delete
[24045] Fix | Delete
function combobox_control_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
[24046] Fix | Delete
[24047] Fix | Delete
/**
[24048] Fix | Delete
* External dependencies
[24049] Fix | Delete
*/
[24050] Fix | Delete
[24051] Fix | Delete
[24052] Fix | Delete
/**
[24053] Fix | Delete
* WordPress dependencies
[24054] Fix | Delete
*/
[24055] Fix | Delete
[24056] Fix | Delete
[24057] Fix | Delete
[24058] Fix | Delete
[24059] Fix | Delete
[24060] Fix | Delete
[24061] Fix | Delete
[24062] Fix | Delete
/**
[24063] Fix | Delete
* Internal dependencies
[24064] Fix | Delete
*/
[24065] Fix | Delete
[24066] Fix | Delete
[24067] Fix | Delete
[24068] Fix | Delete
[24069] Fix | Delete
[24070] Fix | Delete
[24071] Fix | Delete
[24072] Fix | Delete
var DetectOutside = with_focus_outside( /*#__PURE__*/function (_Component) {
[24073] Fix | Delete
Object(inherits["a" /* default */])(_class, _Component);
[24074] Fix | Delete
[24075] Fix | Delete
var _super = combobox_control_createSuper(_class);
[24076] Fix | Delete
[24077] Fix | Delete
function _class() {
[24078] Fix | Delete
Object(classCallCheck["a" /* default */])(this, _class);
[24079] Fix | Delete
[24080] Fix | Delete
return _super.apply(this, arguments);
[24081] Fix | Delete
}
[24082] Fix | Delete
[24083] Fix | Delete
Object(createClass["a" /* default */])(_class, [{
[24084] Fix | Delete
key: "handleFocusOutside",
[24085] Fix | Delete
value: function handleFocusOutside(event) {
[24086] Fix | Delete
this.props.onFocusOutside(event);
[24087] Fix | Delete
}
[24088] Fix | Delete
}, {
[24089] Fix | Delete
key: "render",
[24090] Fix | Delete
value: function render() {
[24091] Fix | Delete
return this.props.children;
[24092] Fix | Delete
}
[24093] Fix | Delete
}]);
[24094] Fix | Delete
[24095] Fix | Delete
return _class;
[24096] Fix | Delete
}(external_wp_element_["Component"]));
[24097] Fix | Delete
[24098] Fix | Delete
function ComboboxControl(_ref) {
[24099] Fix | Delete
var _currentOption$label;
[24100] Fix | Delete
[24101] Fix | Delete
var value = _ref.value,
[24102] Fix | Delete
label = _ref.label,
[24103] Fix | Delete
options = _ref.options,
[24104] Fix | Delete
onChange = _ref.onChange,
[24105] Fix | Delete
onFilterValueChange = _ref.onFilterValueChange,
[24106] Fix | Delete
hideLabelFromVision = _ref.hideLabelFromVision,
[24107] Fix | Delete
help = _ref.help,
[24108] Fix | Delete
_ref$allowReset = _ref.allowReset,
[24109] Fix | Delete
allowReset = _ref$allowReset === void 0 ? true : _ref$allowReset,
[24110] Fix | Delete
className = _ref.className,
[24111] Fix | Delete
_ref$messages = _ref.messages,
[24112] Fix | Delete
messages = _ref$messages === void 0 ? {
[24113] Fix | Delete
selected: Object(external_wp_i18n_["__"])('Item selected.')
[24114] Fix | Delete
} : _ref$messages;
[24115] Fix | Delete
var instanceId = Object(external_wp_compose_["useInstanceId"])(ComboboxControl);
[24116] Fix | Delete
[24117] Fix | Delete
var _useState = Object(external_wp_element_["useState"])(null),
[24118] Fix | Delete
_useState2 = Object(slicedToArray["a" /* default */])(_useState, 2),
[24119] Fix | Delete
selectedSuggestion = _useState2[0],
[24120] Fix | Delete
setSelectedSuggestion = _useState2[1];
[24121] Fix | Delete
[24122] Fix | Delete
var _useState3 = Object(external_wp_element_["useState"])(false),
[24123] Fix | Delete
_useState4 = Object(slicedToArray["a" /* default */])(_useState3, 2),
[24124] Fix | Delete
isExpanded = _useState4[0],
[24125] Fix | Delete
setIsExpanded = _useState4[1];
[24126] Fix | Delete
[24127] Fix | Delete
var _useState5 = Object(external_wp_element_["useState"])(''),
[24128] Fix | Delete
_useState6 = Object(slicedToArray["a" /* default */])(_useState5, 2),
[24129] Fix | Delete
inputValue = _useState6[0],
[24130] Fix | Delete
setInputValue = _useState6[1];
[24131] Fix | Delete
[24132] Fix | Delete
var inputContainer = Object(external_wp_element_["useRef"])();
[24133] Fix | Delete
var currentOption = options.find(function (option) {
[24134] Fix | Delete
return option.value === value;
[24135] Fix | Delete
});
[24136] Fix | Delete
var currentLabel = (_currentOption$label = currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) !== null && _currentOption$label !== void 0 ? _currentOption$label : '';
[24137] Fix | Delete
var matchingSuggestions = Object(external_wp_element_["useMemo"])(function () {
[24138] Fix | Delete
var startsWithMatch = [];
[24139] Fix | Delete
var containsMatch = [];
[24140] Fix | Delete
var match = Object(external_lodash_["deburr"])(inputValue.toLocaleLowerCase());
[24141] Fix | Delete
options.forEach(function (option) {
[24142] Fix | Delete
var index = Object(external_lodash_["deburr"])(option.label).toLocaleLowerCase().indexOf(match);
[24143] Fix | Delete
[24144] Fix | Delete
if (index === 0) {
[24145] Fix | Delete
startsWithMatch.push(option);
[24146] Fix | Delete
} else if (index > 0) {
[24147] Fix | Delete
containsMatch.push(option);
[24148] Fix | Delete
}
[24149] Fix | Delete
});
[24150] Fix | Delete
return startsWithMatch.concat(containsMatch);
[24151] Fix | Delete
}, [inputValue, options, value]);
[24152] Fix | Delete
[24153] Fix | Delete
var onSuggestionSelected = function onSuggestionSelected(newSelectedSuggestion) {
[24154] Fix | Delete
onChange(newSelectedSuggestion.value);
[24155] Fix | Delete
Object(external_wp_a11y_["speak"])(messages.selected, 'assertive');
[24156] Fix | Delete
setSelectedSuggestion(newSelectedSuggestion);
[24157] Fix | Delete
setInputValue('');
[24158] Fix | Delete
setIsExpanded(false);
[24159] Fix | Delete
};
[24160] Fix | Delete
[24161] Fix | Delete
var handleArrowNavigation = function handleArrowNavigation() {
[24162] Fix | Delete
var offset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
[24163] Fix | Delete
var index = matchingSuggestions.indexOf(selectedSuggestion);
[24164] Fix | Delete
var nextIndex = index + offset;
[24165] Fix | Delete
[24166] Fix | Delete
if (nextIndex < 0) {
[24167] Fix | Delete
nextIndex = matchingSuggestions.length - 1;
[24168] Fix | Delete
} else if (nextIndex >= matchingSuggestions.length) {
[24169] Fix | Delete
nextIndex = 0;
[24170] Fix | Delete
}
[24171] Fix | Delete
[24172] Fix | Delete
setSelectedSuggestion(matchingSuggestions[nextIndex]);
[24173] Fix | Delete
setIsExpanded(true);
[24174] Fix | Delete
};
[24175] Fix | Delete
[24176] Fix | Delete
var onKeyDown = function onKeyDown(event) {
[24177] Fix | Delete
var preventDefault = false;
[24178] Fix | Delete
[24179] Fix | Delete
switch (event.keyCode) {
[24180] Fix | Delete
case external_wp_keycodes_["ENTER"]:
[24181] Fix | Delete
if (selectedSuggestion) {
[24182] Fix | Delete
onSuggestionSelected(selectedSuggestion);
[24183] Fix | Delete
preventDefault = true;
[24184] Fix | Delete
}
[24185] Fix | Delete
[24186] Fix | Delete
break;
[24187] Fix | Delete
[24188] Fix | Delete
case external_wp_keycodes_["UP"]:
[24189] Fix | Delete
handleArrowNavigation(-1);
[24190] Fix | Delete
preventDefault = true;
[24191] Fix | Delete
break;
[24192] Fix | Delete
[24193] Fix | Delete
case external_wp_keycodes_["DOWN"]:
[24194] Fix | Delete
handleArrowNavigation(1);
[24195] Fix | Delete
preventDefault = true;
[24196] Fix | Delete
break;
[24197] Fix | Delete
[24198] Fix | Delete
case external_wp_keycodes_["ESCAPE"]:
[24199] Fix | Delete
setIsExpanded(false);
[24200] Fix | Delete
setSelectedSuggestion(null);
[24201] Fix | Delete
preventDefault = true;
[24202] Fix | Delete
event.stopPropagation();
[24203] Fix | Delete
break;
[24204] Fix | Delete
[24205] Fix | Delete
default:
[24206] Fix | Delete
break;
[24207] Fix | Delete
}
[24208] Fix | Delete
[24209] Fix | Delete
if (preventDefault) {
[24210] Fix | Delete
event.preventDefault();
[24211] Fix | Delete
}
[24212] Fix | Delete
};
[24213] Fix | Delete
[24214] Fix | Delete
var onFocus = function onFocus() {
[24215] Fix | Delete
setIsExpanded(true);
[24216] Fix | Delete
onFilterValueChange('');
[24217] Fix | Delete
setInputValue('');
[24218] Fix | Delete
};
[24219] Fix | Delete
[24220] Fix | Delete
var onFocusOutside = function onFocusOutside() {
[24221] Fix | Delete
setIsExpanded(false);
[24222] Fix | Delete
};
[24223] Fix | Delete
[24224] Fix | Delete
var onInputChange = function onInputChange(event) {
[24225] Fix | Delete
var text = event.value;
[24226] Fix | Delete
setInputValue(text);
[24227] Fix | Delete
onFilterValueChange(text);
[24228] Fix | Delete
setIsExpanded(true);
[24229] Fix | Delete
};
[24230] Fix | Delete
[24231] Fix | Delete
var handleOnReset = function handleOnReset() {
[24232] Fix | Delete
onChange(null);
[24233] Fix | Delete
inputContainer.current.input.focus();
[24234] Fix | Delete
}; // Announcements
[24235] Fix | Delete
[24236] Fix | Delete
[24237] Fix | Delete
Object(external_wp_element_["useEffect"])(function () {
[24238] Fix | Delete
var hasMatchingSuggestions = matchingSuggestions.length > 0;
[24239] Fix | Delete
[24240] Fix | Delete
if (isExpanded) {
[24241] Fix | Delete
var message = hasMatchingSuggestions ? Object(external_wp_i18n_["sprintf"])(
[24242] Fix | Delete
/* translators: %d: number of results. */
[24243] Fix | Delete
Object(external_wp_i18n_["_n"])('%d result found, use up and down arrow keys to navigate.', '%d results found, use up and down arrow keys to navigate.', matchingSuggestions.length), matchingSuggestions.length) : Object(external_wp_i18n_["__"])('No results.');
[24244] Fix | Delete
Object(external_wp_a11y_["speak"])(message, 'polite');
[24245] Fix | Delete
}
[24246] Fix | Delete
}, [matchingSuggestions, isExpanded]); // Disable reason: There is no appropriate role which describes the
[24247] Fix | Delete
// input container intended accessible usability.
[24248] Fix | Delete
// TODO: Refactor click detection to use blur to stop propagation.
[24249] Fix | Delete
[24250] Fix | Delete
/* eslint-disable jsx-a11y/no-static-element-interactions */
[24251] Fix | Delete
[24252] Fix | Delete
return Object(external_wp_element_["createElement"])(DetectOutside, {
[24253] Fix | Delete
onFocusOutside: onFocusOutside
[24254] Fix | Delete
}, Object(external_wp_element_["createElement"])(base_control, {
[24255] Fix | Delete
className: classnames_default()(className, 'components-combobox-control'),
[24256] Fix | Delete
tabIndex: "-1",
[24257] Fix | Delete
label: label,
[24258] Fix | Delete
id: "components-form-token-input-".concat(instanceId),
[24259] Fix | Delete
hideLabelFromVision: hideLabelFromVision,
[24260] Fix | Delete
help: help
[24261] Fix | Delete
}, Object(external_wp_element_["createElement"])("div", {
[24262] Fix | Delete
className: "components-combobox-control__suggestions-container",
[24263] Fix | Delete
tabIndex: "-1",
[24264] Fix | Delete
onKeyDown: onKeyDown
[24265] Fix | Delete
}, Object(external_wp_element_["createElement"])(flex_Flex, null, Object(external_wp_element_["createElement"])(block, null, Object(external_wp_element_["createElement"])(token_input, {
[24266] Fix | Delete
className: "components-combobox-control__input",
[24267] Fix | Delete
instanceId: instanceId,
[24268] Fix | Delete
ref: inputContainer,
[24269] Fix | Delete
value: isExpanded ? inputValue : currentLabel,
[24270] Fix | Delete
"aria-label": currentLabel ? "".concat(currentLabel, ", ").concat(label) : null,
[24271] Fix | Delete
onFocus: onFocus,
[24272] Fix | Delete
isExpanded: isExpanded,
[24273] Fix | Delete
selectedSuggestionIndex: matchingSuggestions.indexOf(selectedSuggestion),
[24274] Fix | Delete
onChange: onInputChange
[24275] Fix | Delete
})), allowReset && Object(external_wp_element_["createElement"])(flex_item, null, Object(external_wp_element_["createElement"])(build_module_button["a" /* default */], {
[24276] Fix | Delete
className: "components-combobox-control__reset",
[24277] Fix | Delete
icon: close_small["a" /* default */],
[24278] Fix | Delete
disabled: !value,
[24279] Fix | Delete
onClick: handleOnReset,
[24280] Fix | Delete
label: Object(external_wp_i18n_["__"])('Reset')
[24281] Fix | Delete
}))), isExpanded && Object(external_wp_element_["createElement"])(suggestions_list, {
[24282] Fix | Delete
instanceId: instanceId,
[24283] Fix | Delete
match: {
[24284] Fix | Delete
label: inputValue
[24285] Fix | Delete
},
[24286] Fix | Delete
displayTransform: function displayTransform(suggestion) {
[24287] Fix | Delete
return suggestion.label;
[24288] Fix | Delete
},
[24289] Fix | Delete
suggestions: matchingSuggestions,
[24290] Fix | Delete
selectedIndex: matchingSuggestions.indexOf(selectedSuggestion),
[24291] Fix | Delete
onHover: setSelectedSuggestion,
[24292] Fix | Delete
onSelect: onSuggestionSelected,
[24293] Fix | Delete
scrollIntoView: true
[24294] Fix | Delete
}))));
[24295] Fix | Delete
/* eslint-enable jsx-a11y/no-static-element-interactions */
[24296] Fix | Delete
}
[24297] Fix | Delete
[24298] Fix | Delete
/* harmony default export */ var combobox_control = (ComboboxControl);
[24299] Fix | Delete
[24300] Fix | Delete
// CONCATENATED MODULE: ./node_modules/downshift/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
[24301] Fix | Delete
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
[24302] Fix | Delete
if (source == null) return {};
[24303] Fix | Delete
var target = {};
[24304] Fix | Delete
var sourceKeys = Object.keys(source);
[24305] Fix | Delete
var key, i;
[24306] Fix | Delete
[24307] Fix | Delete
for (i = 0; i < sourceKeys.length; i++) {
[24308] Fix | Delete
key = sourceKeys[i];
[24309] Fix | Delete
if (excluded.indexOf(key) >= 0) continue;
[24310] Fix | Delete
target[key] = source[key];
[24311] Fix | Delete
}
[24312] Fix | Delete
[24313] Fix | Delete
return target;
[24314] Fix | Delete
}
[24315] Fix | Delete
// CONCATENATED MODULE: ./node_modules/downshift/node_modules/@babel/runtime/helpers/esm/extends.js
[24316] Fix | Delete
function extends_extends() {
[24317] Fix | Delete
extends_extends = Object.assign || function (target) {
[24318] Fix | Delete
for (var i = 1; i < arguments.length; i++) {
[24319] Fix | Delete
var source = arguments[i];
[24320] Fix | Delete
[24321] Fix | Delete
for (var key in source) {
[24322] Fix | Delete
if (Object.prototype.hasOwnProperty.call(source, key)) {
[24323] Fix | Delete
target[key] = source[key];
[24324] Fix | Delete
}
[24325] Fix | Delete
}
[24326] Fix | Delete
}
[24327] Fix | Delete
[24328] Fix | Delete
return target;
[24329] Fix | Delete
};
[24330] Fix | Delete
[24331] Fix | Delete
return extends_extends.apply(this, arguments);
[24332] Fix | Delete
}
[24333] Fix | Delete
// CONCATENATED MODULE: ./node_modules/downshift/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
[24334] Fix | Delete
function assertThisInitialized_assertThisInitialized(self) {
[24335] Fix | Delete
if (self === void 0) {
[24336] Fix | Delete
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
[24337] Fix | Delete
}
[24338] Fix | Delete
[24339] Fix | Delete
return self;
[24340] Fix | Delete
}
[24341] Fix | Delete
// CONCATENATED MODULE: ./node_modules/downshift/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
[24342] Fix | Delete
function _setPrototypeOf(o, p) {
[24343] Fix | Delete
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
[24344] Fix | Delete
o.__proto__ = p;
[24345] Fix | Delete
return o;
[24346] Fix | Delete
};
[24347] Fix | Delete
[24348] Fix | Delete
return _setPrototypeOf(o, p);
[24349] Fix | Delete
}
[24350] Fix | Delete
// CONCATENATED MODULE: ./node_modules/downshift/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
[24351] Fix | Delete
[24352] Fix | Delete
function inheritsLoose_inheritsLoose(subClass, superClass) {
[24353] Fix | Delete
subClass.prototype = Object.create(superClass.prototype);
[24354] Fix | Delete
subClass.prototype.constructor = subClass;
[24355] Fix | Delete
_setPrototypeOf(subClass, superClass);
[24356] Fix | Delete
}
[24357] Fix | Delete
// EXTERNAL MODULE: ./node_modules/prop-types/index.js
[24358] Fix | Delete
var prop_types = __webpack_require__("17x9");
[24359] Fix | Delete
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
[24360] Fix | Delete
[24361] Fix | Delete
// EXTERNAL MODULE: ./node_modules/downshift/node_modules/react-is/index.js
[24362] Fix | Delete
var react_is = __webpack_require__("cD2C");
[24363] Fix | Delete
[24364] Fix | Delete
// CONCATENATED MODULE: ./node_modules/compute-scroll-into-view/dist/index.module.js
[24365] Fix | Delete
function t(t){return"object"==typeof t&&null!=t&&1===t.nodeType}function index_module_e(t,e){return(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t}function n(t,n){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var r=getComputedStyle(t,null);return index_module_e(r.overflowY,n)||index_module_e(r.overflowX,n)||function(t){var e=function(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}}(t);return!!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)}(t)}return!1}function index_module_r(t,e,n,r,i,o,l,d){return o<t&&l>e||o>t&&l<e?0:o<=t&&d<=n||l>=e&&d>=n?o-t-r:l>e&&d<n||o<t&&d>n?l-e+i:0}/* harmony default export */ var index_module = (function(e,i){var o=window,l=i.scrollMode,d=i.block,u=i.inline,h=i.boundary,a=i.skipOverflowHiddenElements,c="function"==typeof h?h:function(t){return t!==h};if(!t(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,s=[],p=e;t(p)&&c(p);){if((p=p.parentElement)===f){s.push(p);break}null!=p&&p===document.body&&n(p)&&!n(document.documentElement)||null!=p&&n(p,a)&&s.push(p)}for(var m=o.visualViewport?o.visualViewport.width:innerWidth,g=o.visualViewport?o.visualViewport.height:innerHeight,w=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,W=e.getBoundingClientRect(),b=W.height,H=W.width,y=W.top,E=W.right,M=W.bottom,V=W.left,x="start"===d||"nearest"===d?y:"end"===d?M:y+b/2,I="center"===u?V+H/2:"end"===u?E:V,C=[],T=0;T<s.length;T++){var k=s[T],B=k.getBoundingClientRect(),D=B.height,O=B.width,R=B.top,X=B.right,Y=B.bottom,L=B.left;if("if-needed"===l&&y>=0&&V>=0&&M<=g&&E<=m&&y>=R&&M<=Y&&V>=L&&E<=X)return C;var S=getComputedStyle(k),j=parseInt(S.borderLeftWidth,10),q=parseInt(S.borderTopWidth,10),z=parseInt(S.borderRightWidth,10),A=parseInt(S.borderBottomWidth,10),F=0,G=0,J="offsetWidth"in k?k.offsetWidth-k.clientWidth-j-z:0,K="offsetHeight"in k?k.offsetHeight-k.clientHeight-q-A:0;if(f===k)F="start"===d?x:"end"===d?x-g:"nearest"===d?index_module_r(v,v+g,g,q,A,v+x,v+x+b,b):x-g/2,G="start"===u?I:"center"===u?I-m/2:"end"===u?I-m:index_module_r(w,w+m,m,j,z,w+I,w+I+H,H),F=Math.max(0,F+v),G=Math.max(0,G+w);else{F="start"===d?x-R-q:"end"===d?x-Y+A+K:"nearest"===d?index_module_r(R,Y,D,q,A+K,x,x+b,b):x-(R+D/2)+K/2,G="start"===u?I-L-j:"center"===u?I-(L+O/2)+J/2:"end"===u?I-X+z+J:index_module_r(L,X,O,j,z+J,I,I+H,H);var N=k.scrollLeft,P=k.scrollTop;x+=P-(F=Math.max(0,Math.min(P+F,k.scrollHeight-D+K))),I+=N-(G=Math.max(0,Math.min(N+G,k.scrollWidth-O+J)))}C.push({el:k,top:F,left:G})}return C});
[24366] Fix | Delete
[24367] Fix | Delete
// CONCATENATED MODULE: ./node_modules/downshift/node_modules/tslib/tslib.es6.js
[24368] Fix | Delete
/*! *****************************************************************************
[24369] Fix | Delete
Copyright (c) Microsoft Corporation.
[24370] Fix | Delete
[24371] Fix | Delete
Permission to use, copy, modify, and/or distribute this software for any
[24372] Fix | Delete
purpose with or without fee is hereby granted.
[24373] Fix | Delete
[24374] Fix | Delete
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
[24375] Fix | Delete
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
[24376] Fix | Delete
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
[24377] Fix | Delete
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
[24378] Fix | Delete
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
[24379] Fix | Delete
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
[24380] Fix | Delete
PERFORMANCE OF THIS SOFTWARE.
[24381] Fix | Delete
***************************************************************************** */
[24382] Fix | Delete
/* global Reflect, Promise */
[24383] Fix | Delete
[24384] Fix | Delete
var extendStatics = function(d, b) {
[24385] Fix | Delete
extendStatics = Object.setPrototypeOf ||
[24386] Fix | Delete
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
[24387] Fix | Delete
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
[24388] Fix | Delete
return extendStatics(d, b);
[24389] Fix | Delete
};
[24390] Fix | Delete
[24391] Fix | Delete
function __extends(d, b) {
[24392] Fix | Delete
if (typeof b !== "function" && b !== null)
[24393] Fix | Delete
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
[24394] Fix | Delete
extendStatics(d, b);
[24395] Fix | Delete
function __() { this.constructor = d; }
[24396] Fix | Delete
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
[24397] Fix | Delete
}
[24398] Fix | Delete
[24399] Fix | Delete
var __assign = function() {
[24400] Fix | Delete
__assign = Object.assign || function __assign(t) {
[24401] Fix | Delete
for (var s, i = 1, n = arguments.length; i < n; i++) {
[24402] Fix | Delete
s = arguments[i];
[24403] Fix | Delete
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
[24404] Fix | Delete
}
[24405] Fix | Delete
return t;
[24406] Fix | Delete
}
[24407] Fix | Delete
return __assign.apply(this, arguments);
[24408] Fix | Delete
}
[24409] Fix | Delete
[24410] Fix | Delete
function __rest(s, e) {
[24411] Fix | Delete
var t = {};
[24412] Fix | Delete
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
[24413] Fix | Delete
t[p] = s[p];
[24414] Fix | Delete
if (s != null && typeof Object.getOwnPropertySymbols === "function")
[24415] Fix | Delete
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
[24416] Fix | Delete
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
[24417] Fix | Delete
t[p[i]] = s[p[i]];
[24418] Fix | Delete
}
[24419] Fix | Delete
return t;
[24420] Fix | Delete
}
[24421] Fix | Delete
[24422] Fix | Delete
function __decorate(decorators, target, key, desc) {
[24423] Fix | Delete
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
[24424] Fix | Delete
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
[24425] Fix | Delete
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
[24426] Fix | Delete
return c > 3 && r && Object.defineProperty(target, key, r), r;
[24427] Fix | Delete
}
[24428] Fix | Delete
[24429] Fix | Delete
function __param(paramIndex, decorator) {
[24430] Fix | Delete
return function (target, key) { decorator(target, key, paramIndex); }
[24431] Fix | Delete
}
[24432] Fix | Delete
[24433] Fix | Delete
function __metadata(metadataKey, metadataValue) {
[24434] Fix | Delete
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
[24435] Fix | Delete
}
[24436] Fix | Delete
[24437] Fix | Delete
function __awaiter(thisArg, _arguments, P, generator) {
[24438] Fix | Delete
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
[24439] Fix | Delete
return new (P || (P = Promise))(function (resolve, reject) {
[24440] Fix | Delete
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
[24441] Fix | Delete
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
[24442] Fix | Delete
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
[24443] Fix | Delete
step((generator = generator.apply(thisArg, _arguments || [])).next());
[24444] Fix | Delete
});
[24445] Fix | Delete
}
[24446] Fix | Delete
[24447] Fix | Delete
function __generator(thisArg, body) {
[24448] Fix | Delete
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
[24449] Fix | Delete
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
[24450] Fix | Delete
function verb(n) { return function (v) { return step([n, v]); }; }
[24451] Fix | Delete
function step(op) {
[24452] Fix | Delete
if (f) throw new TypeError("Generator is already executing.");
[24453] Fix | Delete
while (_) try {
[24454] Fix | Delete
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
[24455] Fix | Delete
if (y = 0, t) op = [op[0] & 2, t.value];
[24456] Fix | Delete
switch (op[0]) {
[24457] Fix | Delete
case 0: case 1: t = op; break;
[24458] Fix | Delete
case 4: _.label++; return { value: op[1], done: false };
[24459] Fix | Delete
case 5: _.label++; y = op[1]; op = [0]; continue;
[24460] Fix | Delete
case 7: op = _.ops.pop(); _.trys.pop(); continue;
[24461] Fix | Delete
default:
[24462] Fix | Delete
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
[24463] Fix | Delete
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
[24464] Fix | Delete
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
[24465] Fix | Delete
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
[24466] Fix | Delete
if (t[2]) _.ops.pop();
[24467] Fix | Delete
_.trys.pop(); continue;
[24468] Fix | Delete
}
[24469] Fix | Delete
op = body.call(thisArg, _);
[24470] Fix | Delete
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
[24471] Fix | Delete
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
[24472] Fix | Delete
}
[24473] Fix | Delete
}
[24474] Fix | Delete
[24475] Fix | Delete
var __createBinding = Object.create ? (function(o, m, k, k2) {
[24476] Fix | Delete
if (k2 === undefined) k2 = k;
[24477] Fix | Delete
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
[24478] Fix | Delete
}) : (function(o, m, k, k2) {
[24479] Fix | Delete
if (k2 === undefined) k2 = k;
[24480] Fix | Delete
o[k2] = m[k];
[24481] Fix | Delete
});
[24482] Fix | Delete
[24483] Fix | Delete
function __exportStar(m, o) {
[24484] Fix | Delete
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
[24485] Fix | Delete
}
[24486] Fix | Delete
[24487] Fix | Delete
function __values(o) {
[24488] Fix | Delete
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
[24489] Fix | Delete
if (m) return m.call(o);
[24490] Fix | Delete
if (o && typeof o.length === "number") return {
[24491] Fix | Delete
next: function () {
[24492] Fix | Delete
if (o && i >= o.length) o = void 0;
[24493] Fix | Delete
return { value: o && o[i++], done: !o };
[24494] Fix | Delete
}
[24495] Fix | Delete
};
[24496] Fix | Delete
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
[24497] Fix | Delete
}
[24498] Fix | Delete
[24499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function