Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: components.js
}
[1000] Fix | Delete
}
[1001] Fix | Delete
};
[1002] Fix | Delete
})(DayPickerKeyboardShortcuts);
[1003] Fix | Delete
[1004] Fix | Delete
/***/ }),
[1005] Fix | Delete
[1006] Fix | Delete
/***/ "10Kj":
[1007] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[1008] Fix | Delete
[1009] Fix | Delete
"use strict";
[1010] Fix | Delete
[1011] Fix | Delete
[1012] Fix | Delete
var GetIntrinsic = __webpack_require__("AM7I");
[1013] Fix | Delete
[1014] Fix | Delete
var $TypeError = GetIntrinsic('%TypeError%');
[1015] Fix | Delete
var $SyntaxError = GetIntrinsic('%SyntaxError%');
[1016] Fix | Delete
[1017] Fix | Delete
var has = __webpack_require__("oNNP");
[1018] Fix | Delete
[1019] Fix | Delete
var predicates = {
[1020] Fix | Delete
// https://ecma-international.org/ecma-262/6.0/#sec-property-descriptor-specification-type
[1021] Fix | Delete
'Property Descriptor': function isPropertyDescriptor(Type, Desc) {
[1022] Fix | Delete
if (Type(Desc) !== 'Object') {
[1023] Fix | Delete
return false;
[1024] Fix | Delete
}
[1025] Fix | Delete
var allowed = {
[1026] Fix | Delete
'[[Configurable]]': true,
[1027] Fix | Delete
'[[Enumerable]]': true,
[1028] Fix | Delete
'[[Get]]': true,
[1029] Fix | Delete
'[[Set]]': true,
[1030] Fix | Delete
'[[Value]]': true,
[1031] Fix | Delete
'[[Writable]]': true
[1032] Fix | Delete
};
[1033] Fix | Delete
[1034] Fix | Delete
for (var key in Desc) { // eslint-disable-line
[1035] Fix | Delete
if (has(Desc, key) && !allowed[key]) {
[1036] Fix | Delete
return false;
[1037] Fix | Delete
}
[1038] Fix | Delete
}
[1039] Fix | Delete
[1040] Fix | Delete
var isData = has(Desc, '[[Value]]');
[1041] Fix | Delete
var IsAccessor = has(Desc, '[[Get]]') || has(Desc, '[[Set]]');
[1042] Fix | Delete
if (isData && IsAccessor) {
[1043] Fix | Delete
throw new $TypeError('Property Descriptors may not be both accessor and data descriptors');
[1044] Fix | Delete
}
[1045] Fix | Delete
return true;
[1046] Fix | Delete
}
[1047] Fix | Delete
};
[1048] Fix | Delete
[1049] Fix | Delete
module.exports = function assertRecord(Type, recordType, argumentName, value) {
[1050] Fix | Delete
var predicate = predicates[recordType];
[1051] Fix | Delete
if (typeof predicate !== 'function') {
[1052] Fix | Delete
throw new $SyntaxError('unknown record type: ' + recordType);
[1053] Fix | Delete
}
[1054] Fix | Delete
if (!predicate(Type, value)) {
[1055] Fix | Delete
throw new $TypeError(argumentName + ' must be a ' + recordType);
[1056] Fix | Delete
}
[1057] Fix | Delete
};
[1058] Fix | Delete
[1059] Fix | Delete
[1060] Fix | Delete
/***/ }),
[1061] Fix | Delete
[1062] Fix | Delete
/***/ "16Al":
[1063] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[1064] Fix | Delete
[1065] Fix | Delete
"use strict";
[1066] Fix | Delete
/**
[1067] Fix | Delete
* Copyright (c) 2013-present, Facebook, Inc.
[1068] Fix | Delete
*
[1069] Fix | Delete
* This source code is licensed under the MIT license found in the
[1070] Fix | Delete
* LICENSE file in the root directory of this source tree.
[1071] Fix | Delete
*/
[1072] Fix | Delete
[1073] Fix | Delete
[1074] Fix | Delete
[1075] Fix | Delete
var ReactPropTypesSecret = __webpack_require__("WbBG");
[1076] Fix | Delete
[1077] Fix | Delete
function emptyFunction() {}
[1078] Fix | Delete
function emptyFunctionWithReset() {}
[1079] Fix | Delete
emptyFunctionWithReset.resetWarningCache = emptyFunction;
[1080] Fix | Delete
[1081] Fix | Delete
module.exports = function() {
[1082] Fix | Delete
function shim(props, propName, componentName, location, propFullName, secret) {
[1083] Fix | Delete
if (secret === ReactPropTypesSecret) {
[1084] Fix | Delete
// It is still safe when called from React.
[1085] Fix | Delete
return;
[1086] Fix | Delete
}
[1087] Fix | Delete
var err = new Error(
[1088] Fix | Delete
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
[1089] Fix | Delete
'Use PropTypes.checkPropTypes() to call them. ' +
[1090] Fix | Delete
'Read more at http://fb.me/use-check-prop-types'
[1091] Fix | Delete
);
[1092] Fix | Delete
err.name = 'Invariant Violation';
[1093] Fix | Delete
throw err;
[1094] Fix | Delete
};
[1095] Fix | Delete
shim.isRequired = shim;
[1096] Fix | Delete
function getShim() {
[1097] Fix | Delete
return shim;
[1098] Fix | Delete
};
[1099] Fix | Delete
// Important!
[1100] Fix | Delete
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
[1101] Fix | Delete
var ReactPropTypes = {
[1102] Fix | Delete
array: shim,
[1103] Fix | Delete
bool: shim,
[1104] Fix | Delete
func: shim,
[1105] Fix | Delete
number: shim,
[1106] Fix | Delete
object: shim,
[1107] Fix | Delete
string: shim,
[1108] Fix | Delete
symbol: shim,
[1109] Fix | Delete
[1110] Fix | Delete
any: shim,
[1111] Fix | Delete
arrayOf: getShim,
[1112] Fix | Delete
element: shim,
[1113] Fix | Delete
elementType: shim,
[1114] Fix | Delete
instanceOf: getShim,
[1115] Fix | Delete
node: shim,
[1116] Fix | Delete
objectOf: getShim,
[1117] Fix | Delete
oneOf: getShim,
[1118] Fix | Delete
oneOfType: getShim,
[1119] Fix | Delete
shape: getShim,
[1120] Fix | Delete
exact: getShim,
[1121] Fix | Delete
[1122] Fix | Delete
checkPropTypes: emptyFunctionWithReset,
[1123] Fix | Delete
resetWarningCache: emptyFunction
[1124] Fix | Delete
};
[1125] Fix | Delete
[1126] Fix | Delete
ReactPropTypes.PropTypes = ReactPropTypes;
[1127] Fix | Delete
[1128] Fix | Delete
return ReactPropTypes;
[1129] Fix | Delete
};
[1130] Fix | Delete
[1131] Fix | Delete
[1132] Fix | Delete
/***/ }),
[1133] Fix | Delete
[1134] Fix | Delete
/***/ "17x9":
[1135] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[1136] Fix | Delete
[1137] Fix | Delete
/**
[1138] Fix | Delete
* Copyright (c) 2013-present, Facebook, Inc.
[1139] Fix | Delete
*
[1140] Fix | Delete
* This source code is licensed under the MIT license found in the
[1141] Fix | Delete
* LICENSE file in the root directory of this source tree.
[1142] Fix | Delete
*/
[1143] Fix | Delete
[1144] Fix | Delete
if (false) { var throwOnDirectAccess, ReactIs; } else {
[1145] Fix | Delete
// By explicitly using `prop-types` you are opting into new production behavior.
[1146] Fix | Delete
// http://fb.me/prop-types-in-prod
[1147] Fix | Delete
module.exports = __webpack_require__("16Al")();
[1148] Fix | Delete
}
[1149] Fix | Delete
[1150] Fix | Delete
[1151] Fix | Delete
/***/ }),
[1152] Fix | Delete
[1153] Fix | Delete
/***/ "1CF3":
[1154] Fix | Delete
/***/ (function(module, exports) {
[1155] Fix | Delete
[1156] Fix | Delete
(function() { module.exports = window["wp"]["dom"]; }());
[1157] Fix | Delete
[1158] Fix | Delete
/***/ }),
[1159] Fix | Delete
[1160] Fix | Delete
/***/ "1KsK":
[1161] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[1162] Fix | Delete
[1163] Fix | Delete
"use strict";
[1164] Fix | Delete
[1165] Fix | Delete
[1166] Fix | Delete
var toStr = Object.prototype.toString;
[1167] Fix | Delete
[1168] Fix | Delete
module.exports = function isArguments(value) {
[1169] Fix | Delete
var str = toStr.call(value);
[1170] Fix | Delete
var isArgs = str === '[object Arguments]';
[1171] Fix | Delete
if (!isArgs) {
[1172] Fix | Delete
isArgs = str !== '[object Array]' &&
[1173] Fix | Delete
value !== null &&
[1174] Fix | Delete
typeof value === 'object' &&
[1175] Fix | Delete
typeof value.length === 'number' &&
[1176] Fix | Delete
value.length >= 0 &&
[1177] Fix | Delete
toStr.call(value.callee) === '[object Function]';
[1178] Fix | Delete
}
[1179] Fix | Delete
return isArgs;
[1180] Fix | Delete
};
[1181] Fix | Delete
[1182] Fix | Delete
[1183] Fix | Delete
/***/ }),
[1184] Fix | Delete
[1185] Fix | Delete
/***/ "1OyB":
[1186] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[1187] Fix | Delete
[1188] Fix | Delete
"use strict";
[1189] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _classCallCheck; });
[1190] Fix | Delete
function _classCallCheck(instance, Constructor) {
[1191] Fix | Delete
if (!(instance instanceof Constructor)) {
[1192] Fix | Delete
throw new TypeError("Cannot call a class as a function");
[1193] Fix | Delete
}
[1194] Fix | Delete
}
[1195] Fix | Delete
[1196] Fix | Delete
/***/ }),
[1197] Fix | Delete
[1198] Fix | Delete
/***/ "1TsT":
[1199] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[1200] Fix | Delete
[1201] Fix | Delete
"use strict";
[1202] Fix | Delete
__webpack_require__.r(__webpack_exports__);
[1203] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addEventListener", function() { return addEventListener; });
[1204] Fix | Delete
var CAN_USE_DOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
[1205] Fix | Delete
[1206] Fix | Delete
// Adapted from Modernizr
[1207] Fix | Delete
// https://github.com/Modernizr/Modernizr/blob/acb3f0d9/feature-detects/dom/passiveeventlisteners.js#L26-L37
[1208] Fix | Delete
function testPassiveEventListeners() {
[1209] Fix | Delete
if (!CAN_USE_DOM) {
[1210] Fix | Delete
return false;
[1211] Fix | Delete
}
[1212] Fix | Delete
[1213] Fix | Delete
if (!window.addEventListener || !window.removeEventListener || !Object.defineProperty) {
[1214] Fix | Delete
return false;
[1215] Fix | Delete
}
[1216] Fix | Delete
[1217] Fix | Delete
var supportsPassiveOption = false;
[1218] Fix | Delete
try {
[1219] Fix | Delete
var opts = Object.defineProperty({}, 'passive', {
[1220] Fix | Delete
// eslint-disable-next-line getter-return
[1221] Fix | Delete
get: function () {
[1222] Fix | Delete
function get() {
[1223] Fix | Delete
supportsPassiveOption = true;
[1224] Fix | Delete
}
[1225] Fix | Delete
[1226] Fix | Delete
return get;
[1227] Fix | Delete
}()
[1228] Fix | Delete
});
[1229] Fix | Delete
var noop = function noop() {};
[1230] Fix | Delete
window.addEventListener('testPassiveEventSupport', noop, opts);
[1231] Fix | Delete
window.removeEventListener('testPassiveEventSupport', noop, opts);
[1232] Fix | Delete
} catch (e) {
[1233] Fix | Delete
// do nothing
[1234] Fix | Delete
}
[1235] Fix | Delete
[1236] Fix | Delete
return supportsPassiveOption;
[1237] Fix | Delete
}
[1238] Fix | Delete
[1239] Fix | Delete
var memoized = void 0;
[1240] Fix | Delete
[1241] Fix | Delete
function canUsePassiveEventListeners() {
[1242] Fix | Delete
if (memoized === undefined) {
[1243] Fix | Delete
memoized = testPassiveEventListeners();
[1244] Fix | Delete
}
[1245] Fix | Delete
return memoized;
[1246] Fix | Delete
}
[1247] Fix | Delete
[1248] Fix | Delete
function normalizeEventOptions(eventOptions) {
[1249] Fix | Delete
if (!eventOptions) {
[1250] Fix | Delete
return undefined;
[1251] Fix | Delete
}
[1252] Fix | Delete
[1253] Fix | Delete
if (!canUsePassiveEventListeners()) {
[1254] Fix | Delete
// If the browser does not support the passive option, then it is expecting
[1255] Fix | Delete
// a boolean for the options argument to specify whether it should use
[1256] Fix | Delete
// capture or not. In more modern browsers, this is passed via the `capture`
[1257] Fix | Delete
// option, so let's just hoist that value up.
[1258] Fix | Delete
return !!eventOptions.capture;
[1259] Fix | Delete
}
[1260] Fix | Delete
[1261] Fix | Delete
return eventOptions;
[1262] Fix | Delete
}
[1263] Fix | Delete
[1264] Fix | Delete
/* eslint-disable no-bitwise */
[1265] Fix | Delete
[1266] Fix | Delete
/**
[1267] Fix | Delete
* Generate a unique key for any set of event options
[1268] Fix | Delete
*/
[1269] Fix | Delete
function eventOptionsKey(normalizedEventOptions) {
[1270] Fix | Delete
if (!normalizedEventOptions) {
[1271] Fix | Delete
return 0;
[1272] Fix | Delete
}
[1273] Fix | Delete
[1274] Fix | Delete
// If the browser does not support passive event listeners, the normalized
[1275] Fix | Delete
// event options will be a boolean.
[1276] Fix | Delete
if (normalizedEventOptions === true) {
[1277] Fix | Delete
return 100;
[1278] Fix | Delete
}
[1279] Fix | Delete
[1280] Fix | Delete
// At this point, the browser supports passive event listeners, so we expect
[1281] Fix | Delete
// the event options to be an object with possible properties of capture,
[1282] Fix | Delete
// passive, and once.
[1283] Fix | Delete
//
[1284] Fix | Delete
// We want to consistently return the same value, regardless of the order of
[1285] Fix | Delete
// these properties, so let's use binary maths to assign each property to a
[1286] Fix | Delete
// bit, and then add those together (with an offset to account for the
[1287] Fix | Delete
// booleans at the beginning of this function).
[1288] Fix | Delete
var capture = normalizedEventOptions.capture << 0;
[1289] Fix | Delete
var passive = normalizedEventOptions.passive << 1;
[1290] Fix | Delete
var once = normalizedEventOptions.once << 2;
[1291] Fix | Delete
return capture + passive + once;
[1292] Fix | Delete
}
[1293] Fix | Delete
[1294] Fix | Delete
function ensureCanMutateNextEventHandlers(eventHandlers) {
[1295] Fix | Delete
if (eventHandlers.handlers === eventHandlers.nextHandlers) {
[1296] Fix | Delete
// eslint-disable-next-line no-param-reassign
[1297] Fix | Delete
eventHandlers.nextHandlers = eventHandlers.handlers.slice();
[1298] Fix | Delete
}
[1299] Fix | Delete
}
[1300] Fix | Delete
[1301] Fix | Delete
function TargetEventHandlers(target) {
[1302] Fix | Delete
this.target = target;
[1303] Fix | Delete
this.events = {};
[1304] Fix | Delete
}
[1305] Fix | Delete
[1306] Fix | Delete
TargetEventHandlers.prototype.getEventHandlers = function () {
[1307] Fix | Delete
function getEventHandlers(eventName, options) {
[1308] Fix | Delete
var key = String(eventName) + ' ' + String(eventOptionsKey(options));
[1309] Fix | Delete
[1310] Fix | Delete
if (!this.events[key]) {
[1311] Fix | Delete
this.events[key] = {
[1312] Fix | Delete
handlers: [],
[1313] Fix | Delete
handleEvent: undefined
[1314] Fix | Delete
};
[1315] Fix | Delete
this.events[key].nextHandlers = this.events[key].handlers;
[1316] Fix | Delete
}
[1317] Fix | Delete
[1318] Fix | Delete
return this.events[key];
[1319] Fix | Delete
}
[1320] Fix | Delete
[1321] Fix | Delete
return getEventHandlers;
[1322] Fix | Delete
}();
[1323] Fix | Delete
[1324] Fix | Delete
TargetEventHandlers.prototype.handleEvent = function () {
[1325] Fix | Delete
function handleEvent(eventName, options, event) {
[1326] Fix | Delete
var eventHandlers = this.getEventHandlers(eventName, options);
[1327] Fix | Delete
eventHandlers.handlers = eventHandlers.nextHandlers;
[1328] Fix | Delete
eventHandlers.handlers.forEach(function (handler) {
[1329] Fix | Delete
if (handler) {
[1330] Fix | Delete
// We need to check for presence here because a handler function may
[1331] Fix | Delete
// cause later handlers to get removed. This can happen if you for
[1332] Fix | Delete
// instance have a waypoint that unmounts another waypoint as part of an
[1333] Fix | Delete
// onEnter/onLeave handler.
[1334] Fix | Delete
handler(event);
[1335] Fix | Delete
}
[1336] Fix | Delete
});
[1337] Fix | Delete
}
[1338] Fix | Delete
[1339] Fix | Delete
return handleEvent;
[1340] Fix | Delete
}();
[1341] Fix | Delete
[1342] Fix | Delete
TargetEventHandlers.prototype.add = function () {
[1343] Fix | Delete
function add(eventName, listener, options) {
[1344] Fix | Delete
var _this = this;
[1345] Fix | Delete
[1346] Fix | Delete
// options has already been normalized at this point.
[1347] Fix | Delete
var eventHandlers = this.getEventHandlers(eventName, options);
[1348] Fix | Delete
[1349] Fix | Delete
ensureCanMutateNextEventHandlers(eventHandlers);
[1350] Fix | Delete
[1351] Fix | Delete
if (eventHandlers.nextHandlers.length === 0) {
[1352] Fix | Delete
eventHandlers.handleEvent = this.handleEvent.bind(this, eventName, options);
[1353] Fix | Delete
[1354] Fix | Delete
this.target.addEventListener(eventName, eventHandlers.handleEvent, options);
[1355] Fix | Delete
}
[1356] Fix | Delete
[1357] Fix | Delete
eventHandlers.nextHandlers.push(listener);
[1358] Fix | Delete
[1359] Fix | Delete
var isSubscribed = true;
[1360] Fix | Delete
var unsubscribe = function () {
[1361] Fix | Delete
function unsubscribe() {
[1362] Fix | Delete
if (!isSubscribed) {
[1363] Fix | Delete
return;
[1364] Fix | Delete
}
[1365] Fix | Delete
[1366] Fix | Delete
isSubscribed = false;
[1367] Fix | Delete
[1368] Fix | Delete
ensureCanMutateNextEventHandlers(eventHandlers);
[1369] Fix | Delete
var index = eventHandlers.nextHandlers.indexOf(listener);
[1370] Fix | Delete
eventHandlers.nextHandlers.splice(index, 1);
[1371] Fix | Delete
[1372] Fix | Delete
if (eventHandlers.nextHandlers.length === 0) {
[1373] Fix | Delete
// All event handlers have been removed, so we want to remove the event
[1374] Fix | Delete
// listener from the target node.
[1375] Fix | Delete
[1376] Fix | Delete
if (_this.target) {
[1377] Fix | Delete
// There can be a race condition where the target may no longer exist
[1378] Fix | Delete
// when this function is called, e.g. when a React component is
[1379] Fix | Delete
// unmounting. Guarding against this prevents the following error:
[1380] Fix | Delete
//
[1381] Fix | Delete
// Cannot read property 'removeEventListener' of undefined
[1382] Fix | Delete
_this.target.removeEventListener(eventName, eventHandlers.handleEvent, options);
[1383] Fix | Delete
}
[1384] Fix | Delete
[1385] Fix | Delete
eventHandlers.handleEvent = undefined;
[1386] Fix | Delete
}
[1387] Fix | Delete
}
[1388] Fix | Delete
[1389] Fix | Delete
return unsubscribe;
[1390] Fix | Delete
}();
[1391] Fix | Delete
return unsubscribe;
[1392] Fix | Delete
}
[1393] Fix | Delete
[1394] Fix | Delete
return add;
[1395] Fix | Delete
}();
[1396] Fix | Delete
[1397] Fix | Delete
var EVENT_HANDLERS_KEY = '__consolidated_events_handlers__';
[1398] Fix | Delete
[1399] Fix | Delete
// eslint-disable-next-line import/prefer-default-export
[1400] Fix | Delete
function addEventListener(target, eventName, listener, options) {
[1401] Fix | Delete
if (!target[EVENT_HANDLERS_KEY]) {
[1402] Fix | Delete
// eslint-disable-next-line no-param-reassign
[1403] Fix | Delete
target[EVENT_HANDLERS_KEY] = new TargetEventHandlers(target);
[1404] Fix | Delete
}
[1405] Fix | Delete
var normalizedEventOptions = normalizeEventOptions(options);
[1406] Fix | Delete
return target[EVENT_HANDLERS_KEY].add(eventName, listener, normalizedEventOptions);
[1407] Fix | Delete
}
[1408] Fix | Delete
[1409] Fix | Delete
[1410] Fix | Delete
[1411] Fix | Delete
[1412] Fix | Delete
/***/ }),
[1413] Fix | Delete
[1414] Fix | Delete
/***/ "1iEr":
[1415] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[1416] Fix | Delete
[1417] Fix | Delete
"use strict";
[1418] Fix | Delete
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("GRId");
[1419] Fix | Delete
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
[1420] Fix | Delete
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Tqx9");
[1421] Fix | Delete
/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
[1422] Fix | Delete
[1423] Fix | Delete
[1424] Fix | Delete
/**
[1425] Fix | Delete
* WordPress dependencies
[1426] Fix | Delete
*/
[1427] Fix | Delete
[1428] Fix | Delete
var chevronRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["SVG"], {
[1429] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[1430] Fix | Delete
viewBox: "0 0 24 24"
[1431] Fix | Delete
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__["Path"], {
[1432] Fix | Delete
d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"
[1433] Fix | Delete
}));
[1434] Fix | Delete
/* harmony default export */ __webpack_exports__["a"] = (chevronRight);
[1435] Fix | Delete
[1436] Fix | Delete
[1437] Fix | Delete
/***/ }),
[1438] Fix | Delete
[1439] Fix | Delete
/***/ "1k9I":
[1440] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[1441] Fix | Delete
[1442] Fix | Delete
"use strict";
[1443] Fix | Delete
[1444] Fix | Delete
// EXPORTS
[1445] Fix | Delete
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ createHook; });
[1446] Fix | Delete
[1447] Fix | Delete
// EXTERNAL MODULE: external "React"
[1448] Fix | Delete
var external_React_ = __webpack_require__("cDcd");
[1449] Fix | Delete
[1450] Fix | Delete
// EXTERNAL MODULE: ./node_modules/reakit/node_modules/reakit-system/es/SystemContext.js
[1451] Fix | Delete
var SystemContext = __webpack_require__("r4Od");
[1452] Fix | Delete
[1453] Fix | Delete
// CONCATENATED MODULE: ./node_modules/reakit/node_modules/reakit-system/es/useToken.js
[1454] Fix | Delete
[1455] Fix | Delete
[1456] Fix | Delete
[1457] Fix | Delete
/**
[1458] Fix | Delete
* React custom hook that returns the value of any token defined in the
[1459] Fix | Delete
* SystemContext. It's mainly used internally in [`useOptions`](#useoptions)
[1460] Fix | Delete
* and [`useProps`](#useprops).
[1461] Fix | Delete
*
[1462] Fix | Delete
* @example
[1463] Fix | Delete
* import { SystemProvider, useToken } from "reakit-system";
[1464] Fix | Delete
*
[1465] Fix | Delete
* const system = {
[1466] Fix | Delete
* token: "value",
[1467] Fix | Delete
* };
[1468] Fix | Delete
*
[1469] Fix | Delete
* function Component(props) {
[1470] Fix | Delete
* const token = useToken("token", "default value");
[1471] Fix | Delete
* return <div {...props}>{token}</div>;
[1472] Fix | Delete
* }
[1473] Fix | Delete
*
[1474] Fix | Delete
* function App() {
[1475] Fix | Delete
* return (
[1476] Fix | Delete
* <SystemProvider unstable_system={system}>
[1477] Fix | Delete
* <Component />
[1478] Fix | Delete
* </SystemProvider>
[1479] Fix | Delete
* );
[1480] Fix | Delete
* }
[1481] Fix | Delete
*/
[1482] Fix | Delete
[1483] Fix | Delete
function useToken(token, defaultValue) {
[1484] Fix | Delete
Object(external_React_["useDebugValue"])(token);
[1485] Fix | Delete
var context = Object(external_React_["useContext"])(SystemContext["a" /* SystemContext */]);
[1486] Fix | Delete
return context[token] != null ? context[token] : defaultValue;
[1487] Fix | Delete
}
[1488] Fix | Delete
[1489] Fix | Delete
[1490] Fix | Delete
[1491] Fix | Delete
// CONCATENATED MODULE: ./node_modules/reakit/node_modules/reakit-system/es/useProps.js
[1492] Fix | Delete
[1493] Fix | Delete
[1494] Fix | Delete
[1495] Fix | Delete
[1496] Fix | Delete
/**
[1497] Fix | Delete
* React custom hook that returns the props returned by a given
[1498] Fix | Delete
* `use${name}Props` in the SystemContext.
[1499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function