UNPKG

iobroker.vis-2

Version:

Next generation graphical user interface for ioBroker.

174 lines (173 loc) 7.72 kB
import { e as __mf_15, __tla as __tla_0 } from "./iobroker_vis__loadShare__react__loadShare__.js-Bo2lxMHB.js"; let capitalize, clsx, deepmerge, formatMuiErrorMessage, isPlainObject; let __tla = Promise.all([ (() => { try { return __tla_0; } catch { } })() ]).then(async () => { formatMuiErrorMessage = function(code, ...args) { const url = new URL(`https://mui.com/production-error/?code=${code}`); args.forEach((arg) => url.searchParams.append("args[]", arg)); return `Minified MUI error #${code}; visit ${url} for the full message.`; }; var reactIs = { exports: {} }; var reactIs_production = {}; var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"); function typeOf(object) { if ("object" === typeof object && null !== object) { var $$typeof = object.$$typeof; switch ($$typeof) { case REACT_ELEMENT_TYPE: switch (object = object.type, object) { case REACT_FRAGMENT_TYPE: case REACT_PROFILER_TYPE: case REACT_STRICT_MODE_TYPE: case REACT_SUSPENSE_TYPE: case REACT_SUSPENSE_LIST_TYPE: case REACT_VIEW_TRANSITION_TYPE: return object; default: switch (object = object && object.$$typeof, object) { case REACT_CONTEXT_TYPE: case REACT_FORWARD_REF_TYPE: case REACT_LAZY_TYPE: case REACT_MEMO_TYPE: return object; case REACT_CONSUMER_TYPE: return object; default: return $$typeof; } } case REACT_PORTAL_TYPE: return $$typeof; } } } reactIs_production.ContextConsumer = REACT_CONSUMER_TYPE; reactIs_production.ContextProvider = REACT_CONTEXT_TYPE; reactIs_production.Element = REACT_ELEMENT_TYPE; reactIs_production.ForwardRef = REACT_FORWARD_REF_TYPE; reactIs_production.Fragment = REACT_FRAGMENT_TYPE; reactIs_production.Lazy = REACT_LAZY_TYPE; reactIs_production.Memo = REACT_MEMO_TYPE; reactIs_production.Portal = REACT_PORTAL_TYPE; reactIs_production.Profiler = REACT_PROFILER_TYPE; reactIs_production.StrictMode = REACT_STRICT_MODE_TYPE; reactIs_production.Suspense = REACT_SUSPENSE_TYPE; reactIs_production.SuspenseList = REACT_SUSPENSE_LIST_TYPE; reactIs_production.isContextConsumer = function(object) { return typeOf(object) === REACT_CONSUMER_TYPE; }; reactIs_production.isContextProvider = function(object) { return typeOf(object) === REACT_CONTEXT_TYPE; }; reactIs_production.isElement = function(object) { return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE; }; reactIs_production.isForwardRef = function(object) { return typeOf(object) === REACT_FORWARD_REF_TYPE; }; reactIs_production.isFragment = function(object) { return typeOf(object) === REACT_FRAGMENT_TYPE; }; reactIs_production.isLazy = function(object) { return typeOf(object) === REACT_LAZY_TYPE; }; reactIs_production.isMemo = function(object) { return typeOf(object) === REACT_MEMO_TYPE; }; reactIs_production.isPortal = function(object) { return typeOf(object) === REACT_PORTAL_TYPE; }; reactIs_production.isProfiler = function(object) { return typeOf(object) === REACT_PROFILER_TYPE; }; reactIs_production.isStrictMode = function(object) { return typeOf(object) === REACT_STRICT_MODE_TYPE; }; reactIs_production.isSuspense = function(object) { return typeOf(object) === REACT_SUSPENSE_TYPE; }; reactIs_production.isSuspenseList = function(object) { return typeOf(object) === REACT_SUSPENSE_LIST_TYPE; }; reactIs_production.isValidElementType = function(type) { return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false; }; reactIs_production.typeOf = typeOf; { reactIs.exports = reactIs_production; } var reactIsExports = reactIs.exports; isPlainObject = function(item) { if (typeof item !== "object" || item === null) { return false; } const prototype = Object.getPrototypeOf(item); return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item); }; function deepClone(source) { if (__mf_15(source) || reactIsExports.isValidElementType(source) || !isPlainObject(source)) { return source; } const output = {}; Object.keys(source).forEach((key) => { output[key] = deepClone(source[key]); }); return output; } deepmerge = function(target, source, options = { clone: true }) { const output = options.clone ? { ...target } : target; if (isPlainObject(target) && isPlainObject(source)) { Object.keys(source).forEach((key) => { if (__mf_15(source[key]) || reactIsExports.isValidElementType(source[key])) { output[key] = source[key]; } else if (isPlainObject(source[key]) && Object.prototype.hasOwnProperty.call(target, key) && isPlainObject(target[key])) { output[key] = deepmerge(target[key], source[key], options); } else if (options.clone) { output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key]; } else { output[key] = source[key]; } }); } return output; }; capitalize = function(string) { if (typeof string !== "string") { throw new Error(formatMuiErrorMessage(7)); } return string.charAt(0).toUpperCase() + string.slice(1); }; function r(e) { var t, f, n = ""; if ("string" == typeof e || "number" == typeof e) n += e; else if ("object" == typeof e) if (Array.isArray(e)) { var o = e.length; for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f); } else for (f in e) e[f] && (n && (n += " "), n += f); return n; } clsx = function() { for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t); return n; }; }); export { __tla, capitalize as a, clsx as c, deepmerge as d, formatMuiErrorMessage as f, isPlainObject as i };