Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: components.js
// https://ecma-international.org/ecma-262/6.0/#sec-toprimitive
[7500] Fix | Delete
[7501] Fix | Delete
module.exports = function ToPrimitive(input) {
[7502] Fix | Delete
if (arguments.length > 1) {
[7503] Fix | Delete
return toPrimitive(input, arguments[1]);
[7504] Fix | Delete
}
[7505] Fix | Delete
return toPrimitive(input);
[7506] Fix | Delete
};
[7507] Fix | Delete
[7508] Fix | Delete
[7509] Fix | Delete
/***/ }),
[7510] Fix | Delete
[7511] Fix | Delete
/***/ "L8Kx":
[7512] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[7513] Fix | Delete
[7514] Fix | Delete
"use strict";
[7515] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getAnimateClassName; });
[7516] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Animate; });
[7517] Fix | Delete
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("rePB");
[7518] Fix | Delete
/* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("ODXe");
[7519] Fix | Delete
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("TSYQ");
[7520] Fix | Delete
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
[7521] Fix | Delete
[7522] Fix | Delete
[7523] Fix | Delete
[7524] Fix | Delete
function 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; }
[7525] Fix | Delete
[7526] Fix | Delete
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
[7527] Fix | Delete
[7528] Fix | Delete
/**
[7529] Fix | Delete
* External dependencies
[7530] Fix | Delete
*/
[7531] Fix | Delete
[7532] Fix | Delete
/**
[7533] Fix | Delete
* @typedef {'top' | 'top left' | 'top right' | 'middle' | 'middle left' | 'middle right' | 'bottom' | 'bottom left' | 'bottom right'} AppearOrigin
[7534] Fix | Delete
* @typedef {'left' | 'right'} SlideInOrigin
[7535] Fix | Delete
* @typedef {{ type: 'appear'; origin?: AppearOrigin }} AppearOptions
[7536] Fix | Delete
* @typedef {{ type: 'slide-in'; origin?: SlideInOrigin }} SlideInOptions
[7537] Fix | Delete
* @typedef {{ type: 'loading'; }} LoadingOptions
[7538] Fix | Delete
* @typedef {AppearOptions | SlideInOptions | LoadingOptions} GetAnimateOptions
[7539] Fix | Delete
*/
[7540] Fix | Delete
[7541] Fix | Delete
/* eslint-disable jsdoc/valid-types */
[7542] Fix | Delete
[7543] Fix | Delete
/**
[7544] Fix | Delete
* @param {GetAnimateOptions['type']} type The animation type
[7545] Fix | Delete
* @return {'top' | 'left'} Default origin
[7546] Fix | Delete
*/
[7547] Fix | Delete
[7548] Fix | Delete
function getDefaultOrigin(type) {
[7549] Fix | Delete
return type === 'appear' ? 'top' : 'left';
[7550] Fix | Delete
}
[7551] Fix | Delete
/* eslint-enable jsdoc/valid-types */
[7552] Fix | Delete
[7553] Fix | Delete
/**
[7554] Fix | Delete
* @param {GetAnimateOptions} options
[7555] Fix | Delete
*
[7556] Fix | Delete
* @return {string | void} ClassName that applies the animations
[7557] Fix | Delete
*/
[7558] Fix | Delete
[7559] Fix | Delete
[7560] Fix | Delete
function getAnimateClassName(options) {
[7561] Fix | Delete
if (options.type === 'loading') {
[7562] Fix | Delete
return classnames__WEBPACK_IMPORTED_MODULE_2___default()('components-animate__loading');
[7563] Fix | Delete
}
[7564] Fix | Delete
[7565] Fix | Delete
var type = options.type,
[7566] Fix | Delete
_options$origin = options.origin,
[7567] Fix | Delete
origin = _options$origin === void 0 ? getDefaultOrigin(type) : _options$origin;
[7568] Fix | Delete
[7569] Fix | Delete
if (type === 'appear') {
[7570] Fix | Delete
var _classnames;
[7571] Fix | Delete
[7572] Fix | Delete
var _origin$split = origin.split(' '),
[7573] Fix | Delete
_origin$split2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_origin$split, 2),
[7574] Fix | Delete
yAxis = _origin$split2[0],
[7575] Fix | Delete
_origin$split2$ = _origin$split2[1],
[7576] Fix | Delete
xAxis = _origin$split2$ === void 0 ? 'center' : _origin$split2$;
[7577] Fix | Delete
[7578] Fix | Delete
return classnames__WEBPACK_IMPORTED_MODULE_2___default()('components-animate__appear', (_classnames = {}, Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_classnames, 'is-from-' + xAxis, xAxis !== 'center'), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_classnames, 'is-from-' + yAxis, yAxis !== 'middle'), _classnames));
[7579] Fix | Delete
}
[7580] Fix | Delete
[7581] Fix | Delete
if (type === 'slide-in') {
[7582] Fix | Delete
return classnames__WEBPACK_IMPORTED_MODULE_2___default()('components-animate__slide-in', 'is-from-' + origin);
[7583] Fix | Delete
}
[7584] Fix | Delete
} // @ts-ignore Reason: Planned for deprecation
[7585] Fix | Delete
[7586] Fix | Delete
function Animate(_ref) {
[7587] Fix | Delete
var type = _ref.type,
[7588] Fix | Delete
_ref$options = _ref.options,
[7589] Fix | Delete
options = _ref$options === void 0 ? {} : _ref$options,
[7590] Fix | Delete
children = _ref.children;
[7591] Fix | Delete
return children({
[7592] Fix | Delete
className: getAnimateClassName(_objectSpread({
[7593] Fix | Delete
type: type
[7594] Fix | Delete
}, options))
[7595] Fix | Delete
});
[7596] Fix | Delete
}
[7597] Fix | Delete
[7598] Fix | Delete
[7599] Fix | Delete
/***/ }),
[7600] Fix | Delete
[7601] Fix | Delete
/***/ "LFnd":
[7602] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[7603] Fix | Delete
[7604] Fix | Delete
"use strict";
[7605] Fix | Delete
function mergeRefs(refs) {
[7606] Fix | Delete
return function (value) {
[7607] Fix | Delete
refs.forEach(function (ref) {
[7608] Fix | Delete
if (typeof ref === "function") {
[7609] Fix | Delete
ref(value);
[7610] Fix | Delete
} else if (ref != null) {
[7611] Fix | Delete
ref.current = value;
[7612] Fix | Delete
}
[7613] Fix | Delete
});
[7614] Fix | Delete
};
[7615] Fix | Delete
}
[7616] Fix | Delete
[7617] Fix | Delete
/* harmony default export */ __webpack_exports__["a"] = (mergeRefs);
[7618] Fix | Delete
[7619] Fix | Delete
[7620] Fix | Delete
/***/ }),
[7621] Fix | Delete
[7622] Fix | Delete
/***/ "LTAC":
[7623] Fix | Delete
/***/ (function(module, exports) {
[7624] Fix | Delete
[7625] Fix | Delete
Object.defineProperty(exports, "__esModule", {
[7626] Fix | Delete
value: true
[7627] Fix | Delete
});
[7628] Fix | Delete
exports['default'] = isTouchDevice;
[7629] Fix | Delete
function isTouchDevice() {
[7630] Fix | Delete
return !!(typeof window !== 'undefined' && ('ontouchstart' in window || window.DocumentTouch && typeof document !== 'undefined' && document instanceof window.DocumentTouch)) || !!(typeof navigator !== 'undefined' && (navigator.maxTouchPoints || navigator.msMaxTouchPoints));
[7631] Fix | Delete
}
[7632] Fix | Delete
module.exports = exports['default'];
[7633] Fix | Delete
[7634] Fix | Delete
/***/ }),
[7635] Fix | Delete
[7636] Fix | Delete
/***/ "MiSq":
[7637] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[7638] Fix | Delete
[7639] Fix | Delete
"use strict";
[7640] Fix | Delete
[7641] Fix | Delete
// EXPORTS
[7642] Fix | Delete
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ serialize_browser_esm_serializeStyles; });
[7643] Fix | Delete
[7644] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@emotion/hash/dist/hash.browser.esm.js
[7645] Fix | Delete
/* eslint-disable */
[7646] Fix | Delete
// Inspired by https://github.com/garycourt/murmurhash-js
[7647] Fix | Delete
// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
[7648] Fix | Delete
function murmur2(str) {
[7649] Fix | Delete
// 'm' and 'r' are mixing constants generated offline.
[7650] Fix | Delete
// They're not really 'magic', they just happen to work well.
[7651] Fix | Delete
// const m = 0x5bd1e995;
[7652] Fix | Delete
// const r = 24;
[7653] Fix | Delete
// Initialize the hash
[7654] Fix | Delete
var h = 0; // Mix 4 bytes at a time into the hash
[7655] Fix | Delete
[7656] Fix | Delete
var k,
[7657] Fix | Delete
i = 0,
[7658] Fix | Delete
len = str.length;
[7659] Fix | Delete
[7660] Fix | Delete
for (; len >= 4; ++i, len -= 4) {
[7661] Fix | Delete
k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
[7662] Fix | Delete
k =
[7663] Fix | Delete
/* Math.imul(k, m): */
[7664] Fix | Delete
(k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);
[7665] Fix | Delete
k ^=
[7666] Fix | Delete
/* k >>> r: */
[7667] Fix | Delete
k >>> 24;
[7668] Fix | Delete
h =
[7669] Fix | Delete
/* Math.imul(k, m): */
[7670] Fix | Delete
(k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^
[7671] Fix | Delete
/* Math.imul(h, m): */
[7672] Fix | Delete
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
[7673] Fix | Delete
} // Handle the last few bytes of the input array
[7674] Fix | Delete
[7675] Fix | Delete
[7676] Fix | Delete
switch (len) {
[7677] Fix | Delete
case 3:
[7678] Fix | Delete
h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
[7679] Fix | Delete
[7680] Fix | Delete
case 2:
[7681] Fix | Delete
h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
[7682] Fix | Delete
[7683] Fix | Delete
case 1:
[7684] Fix | Delete
h ^= str.charCodeAt(i) & 0xff;
[7685] Fix | Delete
h =
[7686] Fix | Delete
/* Math.imul(h, m): */
[7687] Fix | Delete
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
[7688] Fix | Delete
} // Do a few final mixes of the hash to ensure the last few
[7689] Fix | Delete
// bytes are well-incorporated.
[7690] Fix | Delete
[7691] Fix | Delete
[7692] Fix | Delete
h ^= h >>> 13;
[7693] Fix | Delete
h =
[7694] Fix | Delete
/* Math.imul(h, m): */
[7695] Fix | Delete
(h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);
[7696] Fix | Delete
return ((h ^ h >>> 15) >>> 0).toString(36);
[7697] Fix | Delete
}
[7698] Fix | Delete
[7699] Fix | Delete
/* harmony default export */ var hash_browser_esm = (murmur2);
[7700] Fix | Delete
[7701] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@emotion/unitless/dist/unitless.browser.esm.js
[7702] Fix | Delete
var unitlessKeys = {
[7703] Fix | Delete
animationIterationCount: 1,
[7704] Fix | Delete
borderImageOutset: 1,
[7705] Fix | Delete
borderImageSlice: 1,
[7706] Fix | Delete
borderImageWidth: 1,
[7707] Fix | Delete
boxFlex: 1,
[7708] Fix | Delete
boxFlexGroup: 1,
[7709] Fix | Delete
boxOrdinalGroup: 1,
[7710] Fix | Delete
columnCount: 1,
[7711] Fix | Delete
columns: 1,
[7712] Fix | Delete
flex: 1,
[7713] Fix | Delete
flexGrow: 1,
[7714] Fix | Delete
flexPositive: 1,
[7715] Fix | Delete
flexShrink: 1,
[7716] Fix | Delete
flexNegative: 1,
[7717] Fix | Delete
flexOrder: 1,
[7718] Fix | Delete
gridRow: 1,
[7719] Fix | Delete
gridRowEnd: 1,
[7720] Fix | Delete
gridRowSpan: 1,
[7721] Fix | Delete
gridRowStart: 1,
[7722] Fix | Delete
gridColumn: 1,
[7723] Fix | Delete
gridColumnEnd: 1,
[7724] Fix | Delete
gridColumnSpan: 1,
[7725] Fix | Delete
gridColumnStart: 1,
[7726] Fix | Delete
msGridRow: 1,
[7727] Fix | Delete
msGridRowSpan: 1,
[7728] Fix | Delete
msGridColumn: 1,
[7729] Fix | Delete
msGridColumnSpan: 1,
[7730] Fix | Delete
fontWeight: 1,
[7731] Fix | Delete
lineHeight: 1,
[7732] Fix | Delete
opacity: 1,
[7733] Fix | Delete
order: 1,
[7734] Fix | Delete
orphans: 1,
[7735] Fix | Delete
tabSize: 1,
[7736] Fix | Delete
widows: 1,
[7737] Fix | Delete
zIndex: 1,
[7738] Fix | Delete
zoom: 1,
[7739] Fix | Delete
WebkitLineClamp: 1,
[7740] Fix | Delete
// SVG-related properties
[7741] Fix | Delete
fillOpacity: 1,
[7742] Fix | Delete
floodOpacity: 1,
[7743] Fix | Delete
stopOpacity: 1,
[7744] Fix | Delete
strokeDasharray: 1,
[7745] Fix | Delete
strokeDashoffset: 1,
[7746] Fix | Delete
strokeMiterlimit: 1,
[7747] Fix | Delete
strokeOpacity: 1,
[7748] Fix | Delete
strokeWidth: 1
[7749] Fix | Delete
};
[7750] Fix | Delete
[7751] Fix | Delete
/* harmony default export */ var unitless_browser_esm = (unitlessKeys);
[7752] Fix | Delete
[7753] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@emotion/memoize/dist/memoize.browser.esm.js
[7754] Fix | Delete
var memoize_browser_esm = __webpack_require__("4qRI");
[7755] Fix | Delete
[7756] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@emotion/serialize/dist/serialize.browser.esm.js
[7757] Fix | Delete
[7758] Fix | Delete
[7759] Fix | Delete
[7760] Fix | Delete
[7761] Fix | Delete
var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";
[7762] Fix | Delete
var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";
[7763] Fix | Delete
var hyphenateRegex = /[A-Z]|^ms/g;
[7764] Fix | Delete
var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
[7765] Fix | Delete
[7766] Fix | Delete
var isCustomProperty = function isCustomProperty(property) {
[7767] Fix | Delete
return property.charCodeAt(1) === 45;
[7768] Fix | Delete
};
[7769] Fix | Delete
[7770] Fix | Delete
var isProcessableValue = function isProcessableValue(value) {
[7771] Fix | Delete
return value != null && typeof value !== 'boolean';
[7772] Fix | Delete
};
[7773] Fix | Delete
[7774] Fix | Delete
var processStyleName = Object(memoize_browser_esm["a" /* default */])(function (styleName) {
[7775] Fix | Delete
return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();
[7776] Fix | Delete
});
[7777] Fix | Delete
[7778] Fix | Delete
var serialize_browser_esm_processStyleValue = function processStyleValue(key, value) {
[7779] Fix | Delete
switch (key) {
[7780] Fix | Delete
case 'animation':
[7781] Fix | Delete
case 'animationName':
[7782] Fix | Delete
{
[7783] Fix | Delete
if (typeof value === 'string') {
[7784] Fix | Delete
return value.replace(animationRegex, function (match, p1, p2) {
[7785] Fix | Delete
cursor = {
[7786] Fix | Delete
name: p1,
[7787] Fix | Delete
styles: p2,
[7788] Fix | Delete
next: cursor
[7789] Fix | Delete
};
[7790] Fix | Delete
return p1;
[7791] Fix | Delete
});
[7792] Fix | Delete
}
[7793] Fix | Delete
}
[7794] Fix | Delete
}
[7795] Fix | Delete
[7796] Fix | Delete
if (unitless_browser_esm[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {
[7797] Fix | Delete
return value + 'px';
[7798] Fix | Delete
}
[7799] Fix | Delete
[7800] Fix | Delete
return value;
[7801] Fix | Delete
};
[7802] Fix | Delete
[7803] Fix | Delete
if (false) { var hyphenatedCache, hyphenPattern, msPattern, oldProcessStyleValue, contentValues, contentValuePattern; }
[7804] Fix | Delete
[7805] Fix | Delete
var shouldWarnAboutInterpolatingClassNameFromCss = true;
[7806] Fix | Delete
[7807] Fix | Delete
function handleInterpolation(mergedProps, registered, interpolation, couldBeSelectorInterpolation) {
[7808] Fix | Delete
if (interpolation == null) {
[7809] Fix | Delete
return '';
[7810] Fix | Delete
}
[7811] Fix | Delete
[7812] Fix | Delete
if (interpolation.__emotion_styles !== undefined) {
[7813] Fix | Delete
if (false) {}
[7814] Fix | Delete
[7815] Fix | Delete
return interpolation;
[7816] Fix | Delete
}
[7817] Fix | Delete
[7818] Fix | Delete
switch (typeof interpolation) {
[7819] Fix | Delete
case 'boolean':
[7820] Fix | Delete
{
[7821] Fix | Delete
return '';
[7822] Fix | Delete
}
[7823] Fix | Delete
[7824] Fix | Delete
case 'object':
[7825] Fix | Delete
{
[7826] Fix | Delete
if (interpolation.anim === 1) {
[7827] Fix | Delete
cursor = {
[7828] Fix | Delete
name: interpolation.name,
[7829] Fix | Delete
styles: interpolation.styles,
[7830] Fix | Delete
next: cursor
[7831] Fix | Delete
};
[7832] Fix | Delete
return interpolation.name;
[7833] Fix | Delete
}
[7834] Fix | Delete
[7835] Fix | Delete
if (interpolation.styles !== undefined) {
[7836] Fix | Delete
var next = interpolation.next;
[7837] Fix | Delete
[7838] Fix | Delete
if (next !== undefined) {
[7839] Fix | Delete
// not the most efficient thing ever but this is a pretty rare case
[7840] Fix | Delete
// and there will be very few iterations of this generally
[7841] Fix | Delete
while (next !== undefined) {
[7842] Fix | Delete
cursor = {
[7843] Fix | Delete
name: next.name,
[7844] Fix | Delete
styles: next.styles,
[7845] Fix | Delete
next: cursor
[7846] Fix | Delete
};
[7847] Fix | Delete
next = next.next;
[7848] Fix | Delete
}
[7849] Fix | Delete
}
[7850] Fix | Delete
[7851] Fix | Delete
var styles = interpolation.styles + ";";
[7852] Fix | Delete
[7853] Fix | Delete
if (false) {}
[7854] Fix | Delete
[7855] Fix | Delete
return styles;
[7856] Fix | Delete
}
[7857] Fix | Delete
[7858] Fix | Delete
return createStringFromObject(mergedProps, registered, interpolation);
[7859] Fix | Delete
}
[7860] Fix | Delete
[7861] Fix | Delete
case 'function':
[7862] Fix | Delete
{
[7863] Fix | Delete
if (mergedProps !== undefined) {
[7864] Fix | Delete
var previousCursor = cursor;
[7865] Fix | Delete
var result = interpolation(mergedProps);
[7866] Fix | Delete
cursor = previousCursor;
[7867] Fix | Delete
return handleInterpolation(mergedProps, registered, result, couldBeSelectorInterpolation);
[7868] Fix | Delete
} else if (false) {}
[7869] Fix | Delete
[7870] Fix | Delete
break;
[7871] Fix | Delete
}
[7872] Fix | Delete
[7873] Fix | Delete
case 'string':
[7874] Fix | Delete
if (false) { var replaced, matched; }
[7875] Fix | Delete
[7876] Fix | Delete
break;
[7877] Fix | Delete
} // finalize string values (regular strings and functions interpolated into css calls)
[7878] Fix | Delete
[7879] Fix | Delete
[7880] Fix | Delete
if (registered == null) {
[7881] Fix | Delete
return interpolation;
[7882] Fix | Delete
}
[7883] Fix | Delete
[7884] Fix | Delete
var cached = registered[interpolation];
[7885] Fix | Delete
[7886] Fix | Delete
if (false) {}
[7887] Fix | Delete
[7888] Fix | Delete
return cached !== undefined && !couldBeSelectorInterpolation ? cached : interpolation;
[7889] Fix | Delete
}
[7890] Fix | Delete
[7891] Fix | Delete
function createStringFromObject(mergedProps, registered, obj) {
[7892] Fix | Delete
var string = '';
[7893] Fix | Delete
[7894] Fix | Delete
if (Array.isArray(obj)) {
[7895] Fix | Delete
for (var i = 0; i < obj.length; i++) {
[7896] Fix | Delete
string += handleInterpolation(mergedProps, registered, obj[i], false);
[7897] Fix | Delete
}
[7898] Fix | Delete
} else {
[7899] Fix | Delete
for (var _key in obj) {
[7900] Fix | Delete
var value = obj[_key];
[7901] Fix | Delete
[7902] Fix | Delete
if (typeof value !== 'object') {
[7903] Fix | Delete
if (registered != null && registered[value] !== undefined) {
[7904] Fix | Delete
string += _key + "{" + registered[value] + "}";
[7905] Fix | Delete
} else if (isProcessableValue(value)) {
[7906] Fix | Delete
string += processStyleName(_key) + ":" + serialize_browser_esm_processStyleValue(_key, value) + ";";
[7907] Fix | Delete
}
[7908] Fix | Delete
} else {
[7909] Fix | Delete
if (_key === 'NO_COMPONENT_SELECTOR' && "production" !== 'production') {
[7910] Fix | Delete
throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');
[7911] Fix | Delete
}
[7912] Fix | Delete
[7913] Fix | Delete
if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
[7914] Fix | Delete
for (var _i = 0; _i < value.length; _i++) {
[7915] Fix | Delete
if (isProcessableValue(value[_i])) {
[7916] Fix | Delete
string += processStyleName(_key) + ":" + serialize_browser_esm_processStyleValue(_key, value[_i]) + ";";
[7917] Fix | Delete
}
[7918] Fix | Delete
}
[7919] Fix | Delete
} else {
[7920] Fix | Delete
var interpolated = handleInterpolation(mergedProps, registered, value, false);
[7921] Fix | Delete
[7922] Fix | Delete
switch (_key) {
[7923] Fix | Delete
case 'animation':
[7924] Fix | Delete
case 'animationName':
[7925] Fix | Delete
{
[7926] Fix | Delete
string += processStyleName(_key) + ":" + interpolated + ";";
[7927] Fix | Delete
break;
[7928] Fix | Delete
}
[7929] Fix | Delete
[7930] Fix | Delete
default:
[7931] Fix | Delete
{
[7932] Fix | Delete
if (false) {}
[7933] Fix | Delete
[7934] Fix | Delete
string += _key + "{" + interpolated + "}";
[7935] Fix | Delete
}
[7936] Fix | Delete
}
[7937] Fix | Delete
}
[7938] Fix | Delete
}
[7939] Fix | Delete
}
[7940] Fix | Delete
}
[7941] Fix | Delete
[7942] Fix | Delete
return string;
[7943] Fix | Delete
}
[7944] Fix | Delete
[7945] Fix | Delete
var labelPattern = /label:\s*([^\s;\n{]+)\s*;/g;
[7946] Fix | Delete
var sourceMapPattern;
[7947] Fix | Delete
[7948] Fix | Delete
if (false) {} // this is the cursor for keyframes
[7949] Fix | Delete
// keyframes are stored on the SerializedStyles object as a linked list
[7950] Fix | Delete
[7951] Fix | Delete
[7952] Fix | Delete
var cursor;
[7953] Fix | Delete
var serialize_browser_esm_serializeStyles = function serializeStyles(args, registered, mergedProps) {
[7954] Fix | Delete
if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
[7955] Fix | Delete
return args[0];
[7956] Fix | Delete
}
[7957] Fix | Delete
[7958] Fix | Delete
var stringMode = true;
[7959] Fix | Delete
var styles = '';
[7960] Fix | Delete
cursor = undefined;
[7961] Fix | Delete
var strings = args[0];
[7962] Fix | Delete
[7963] Fix | Delete
if (strings == null || strings.raw === undefined) {
[7964] Fix | Delete
stringMode = false;
[7965] Fix | Delete
styles += handleInterpolation(mergedProps, registered, strings, false);
[7966] Fix | Delete
} else {
[7967] Fix | Delete
if (false) {}
[7968] Fix | Delete
[7969] Fix | Delete
styles += strings[0];
[7970] Fix | Delete
} // we start at 1 since we've already handled the first arg
[7971] Fix | Delete
[7972] Fix | Delete
[7973] Fix | Delete
for (var i = 1; i < args.length; i++) {
[7974] Fix | Delete
styles += handleInterpolation(mergedProps, registered, args[i], styles.charCodeAt(styles.length - 1) === 46);
[7975] Fix | Delete
[7976] Fix | Delete
if (stringMode) {
[7977] Fix | Delete
if (false) {}
[7978] Fix | Delete
[7979] Fix | Delete
styles += strings[i];
[7980] Fix | Delete
}
[7981] Fix | Delete
}
[7982] Fix | Delete
[7983] Fix | Delete
var sourceMap;
[7984] Fix | Delete
[7985] Fix | Delete
if (false) {} // using a global regex with .exec is stateful so lastIndex has to be reset each time
[7986] Fix | Delete
[7987] Fix | Delete
[7988] Fix | Delete
labelPattern.lastIndex = 0;
[7989] Fix | Delete
var identifierName = '';
[7990] Fix | Delete
var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
[7991] Fix | Delete
[7992] Fix | Delete
while ((match = labelPattern.exec(styles)) !== null) {
[7993] Fix | Delete
identifierName += '-' + // $FlowFixMe we know it's not null
[7994] Fix | Delete
match[1];
[7995] Fix | Delete
}
[7996] Fix | Delete
[7997] Fix | Delete
var name = hash_browser_esm(styles) + identifierName;
[7998] Fix | Delete
[7999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function