| Current Path : /home/emeraadmin/www/4d695/ |
| Current File : /home/emeraadmin/www/4d695/utils.zip |
PK (U�\����S S isValidType.d.tsnu �[��� export declare function isValidType(type: unknown, allowArray?: boolean): boolean;
PK (U�\k��yz z cloneWithRef.d.tsnu �[��� /// <reference types="react" />
export declare function cloneWithRef(element: any, newRef: any): React.ReactElement<any>;
PK (U�\A�Zգ �
js_utils.d.tsnu �[��� export declare function isFunction(input: unknown): boolean;
export declare function noop(): void;
export declare function isPlainObject(input: unknown): boolean;
PK (U�\bd�b b
isRef.d.tsnu �[��� export interface Ref<T> {
current: T;
}
export declare function isRef(obj: unknown): boolean;
PK (U�\1��A A isRef.jsnu �[��� function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
export function isRef(obj) {
return (// eslint-disable-next-line no-prototype-builtins
obj !== null && _typeof(obj) === 'object' && Object.prototype.hasOwnProperty.call(obj, 'current')
);
}PK (U�\�U�ܔ � cloneWithRef.jsnu �[��� import { cloneElement } from 'react';
import { invariant } from '@react-dnd/invariant';
function setRef(ref, node) {
if (typeof ref === 'function') {
ref(node);
} else {
ref.current = node;
}
}
export function cloneWithRef(element, newRef) {
var previousRef = element.ref;
invariant(typeof previousRef !== 'string', 'Cannot connect React DnD to an element with an existing string ref. ' + 'Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. ' + 'Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute');
if (!previousRef) {
// When there is no ref on the element, use the new ref directly
return cloneElement(element, {
ref: newRef
});
} else {
return cloneElement(element, {
ref: function ref(node) {
setRef(previousRef, node);
setRef(newRef, node);
}
});
}
}PK (U�\��� � js_utils.jsnu �[��� function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
// cheap lodash replacements
export function isFunction(input) {
return typeof input === 'function';
}
export function noop() {// noop
}
function isObjectLike(input) {
return _typeof(input) === 'object' && input !== null;
}
export function isPlainObject(input) {
if (!isObjectLike(input)) {
return false;
}
if (Object.getPrototypeOf(input) === null) {
return true;
}
var proto = input;
while (Object.getPrototypeOf(proto) !== null) {
proto = Object.getPrototypeOf(proto);
}
return Object.getPrototypeOf(input) === proto;
}PK (U�\�uY Y isValidType.jsnu �[��� function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
export function isValidType(type, allowArray) {
return typeof type === 'string' || _typeof(type) === 'symbol' || !!allowArray && Array.isArray(type) && type.every(function (t) {
return isValidType(t, false);
});
}PK ]�\U���� � symbol-observable.jsnu �[��� // Inlined version of the `symbol-observable` polyfill
export default (() =>
(typeof Symbol === 'function' && Symbol.observable) || '@@observable')()
PK ]�\��X� � isPlainObject.jsnu �[��� /**
* @param {any} obj The object to inspect.
* @returns {boolean} True if the argument appears to be a plain object.
*/
export default function isPlainObject(obj) {
if (typeof obj !== 'object' || obj === null) return false
let proto = obj
while (Object.getPrototypeOf(proto) !== null) {
proto = Object.getPrototypeOf(proto)
}
return Object.getPrototypeOf(obj) === proto
}
PK ]�\�ra�[ [
warning.jsnu �[��� /**
* Prints a warning in the console if it exists.
*
* @param {String} message The warning message.
* @returns {void}
*/
export default function warning(message) {
/* eslint-disable no-console */
if (typeof console !== 'undefined' && typeof console.error === 'function') {
console.error(message)
}
/* eslint-enable no-console */
try {
// This error was thrown as a convenience so that if you enable
// "break on all exceptions" in your console,
// it would pause the execution at this line.
throw new Error(message)
} catch (e) {} // eslint-disable-line no-empty
}
PK ]�\|UG9 9 actionTypes.jsnu �[��� /**
* These are private action types reserved by Redux.
* For any unknown actions, you must return the current state.
* If the current state is undefined, you must return the initial state.
* Do not reference these action types directly in your code.
*/
const randomString = () =>
Math.random().toString(36).substring(7).split('').join('.')
const ActionTypes = {
INIT: `@@redux/INIT${randomString()}`,
REPLACE: `@@redux/REPLACE${randomString()}`,
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${randomString()}`,
}
export default ActionTypes
PK ]�\�Ӎ�� � kindOf.jsnu �[��� // Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of
function miniKindOf(val) {
if (val === void 0) return 'undefined'
if (val === null) return 'null'
const type = typeof val
switch (type) {
case 'boolean':
case 'string':
case 'number':
case 'symbol':
case 'function': {
return type
}
default:
break
}
if (Array.isArray(val)) return 'array'
if (isDate(val)) return 'date'
if (isError(val)) return 'error'
const constructorName = ctorName(val)
switch (constructorName) {
case 'Symbol':
case 'Promise':
case 'WeakMap':
case 'WeakSet':
case 'Map':
case 'Set':
return constructorName
default:
break
}
// other
return type.slice(8, -1).toLowerCase().replace(/\s/g, '')
}
function ctorName(val) {
return typeof val.constructor === 'function' ? val.constructor.name : null
}
function isError(val) {
return (
val instanceof Error ||
(typeof val.message === 'string' &&
val.constructor &&
typeof val.constructor.stackTraceLimit === 'number')
)
}
function isDate(val) {
if (val instanceof Date) return true
return (
typeof val.toDateString === 'function' &&
typeof val.getDate === 'function' &&
typeof val.setDate === 'function'
)
}
export function kindOf(val) {
let typeOfVal = typeof val
if (process.env.NODE_ENV !== 'production') {
typeOfVal = miniKindOf(val)
}
return typeOfVal
}
PK ]�\P\�
& & formatProdErrorMessage.jsnu �[��� /**
* Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
*
* Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
* during build.
* @param {number} code
*/
function formatProdErrorMessage(code) {
return (
`Minified Redux error #${code}; visit https://redux.js.org/Errors?code=${code} for the full message or ` +
'use the non-minified dev environment for full errors. '
)
}
export default formatProdErrorMessage
PK (U�\����S S isValidType.d.tsnu �[��� PK (U�\k��yz z � cloneWithRef.d.tsnu �[��� PK (U�\A�Zգ �
N js_utils.d.tsnu �[��� PK (U�\bd�b b
. isRef.d.tsnu �[��� PK (U�\1��A A � isRef.jsnu �[��� PK (U�\�U�ܔ � C cloneWithRef.jsnu �[��� PK (U�\��� � js_utils.jsnu �[��� PK (U�\�uY Y � isValidType.jsnu �[��� PK ]�\U���� � � symbol-observable.jsnu �[��� PK ]�\��X� � p isPlainObject.jsnu �[��� PK ]�\�ra�[ [
8 warning.jsnu �[��� PK ]�\|UG9 9 � actionTypes.jsnu �[��� PK ]�\�Ӎ�� � D kindOf.jsnu �[��� PK ]�\P\�
& & G formatProdErrorMessage.jsnu �[��� PK F �