ui-layout-manager-dev 0.0.33-dev → 0.0.34-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../node_modules/prop-types/node_modules/react-is/index.js","../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../node_modules/object-assign/index.js","../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../node_modules/prop-types/lib/has.js","../../node_modules/prop-types/checkPropTypes.js","../../node_modules/prop-types/factoryWithTypeCheckers.js","../../node_modules/prop-types/factoryWithThrowingShims.js","../../node_modules/prop-types/index.js","../../src/components/LayoutManager/Controller/LAYOUT_WORKER_PROTOCOL.js","../../src/components/LayoutManager/Controller/TRANSFORMATION_TYPES.js","../../src/components/LayoutManager/Controller/LayoutController.js","../../src/components/LayoutManager/Providers/LayoutProvider.js","../../node_modules/style-inject/dist/style-inject.es.js","../../src/components/LayoutManager/Components/HandleBar/HandleBar.jsx","../../src/components/LayoutManager/Providers/ComponentRegistryContext.js","../../node_modules/react-bootstrap-icons/dist/icons/x-lg.js","../../src/components/LayoutManager/Components/LazyLoader/MenuBar/MenuBar.js","../../src/components/LayoutManager/Components/LazyLoader/Tabs/Tabs.js","../../src/components/LayoutManager/Components/LazyLoader/LazyLoader.js","../../src/components/LayoutManager/Components/Container/Container.jsx","../../src/components/LayoutManager/Controller/LayoutEventController.js","../../src/components/LayoutManager/Providers/LayoutEventProvider.js","../../src/components/LayoutManager/Components/RootContainer/DragController.js","../../src/components/LayoutManager/Components/RootContainer/RootContainer.jsx","../../src/components/LayoutManager/Providers/ModalProvider.js","../../src/components/LayoutManager/LayoutManager.jsx"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar has = require('./lib/has');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<<anonymous>>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bigint: createPrimitiveTypeChecker('bigint'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message, data) {\n this.message = message;\n this.data = data && typeof data === 'object' ? data: {};\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n {expectedType: expectedType}\n );\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var expectedTypes = [];\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n if (checkerResult == null) {\n return null;\n }\n if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n expectedTypes.push(checkerResult.data.expectedType);\n }\n }\n var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function invalidValidatorError(componentName, location, propFullName, key, type) {\n return new PropTypeError(\n (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n );\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (has(shapeTypes, key) && typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","let LAYOUT_WORKER_PROTOCOL = {\n INITIALIZE: 1,\n INITIALIZE_FLEXBOX: 2,\n APPLY_SIZES: 3,\n ERROR: 4,\n TRANSFORMATIONS: 5,\n MOVE_HANDLE_BAR: 6,\n INVOKE_ACTION: 7,\n};\nLAYOUT_WORKER_PROTOCOL = Object.freeze(LAYOUT_WORKER_PROTOCOL);\n\nexport default LAYOUT_WORKER_PROTOCOL;\n","let TRANSFORMATION_TYPES = {\n UPDATE_SIZE: 1\n};\nTRANSFORMATION_TYPES = Object.freeze(TRANSFORMATION_TYPES);\n\nexport default TRANSFORMATION_TYPES;\n","import LAYOUT_WORKER_PROTOCOL from \"./LAYOUT_WORKER_PROTOCOL\";\nimport TRANSFORMATION_TYPES from \"./TRANSFORMATION_TYPES\";\n\n/**\n * This controller is responsible for managing the layout of the application.\n * - It will handle the registration and unregistration of containers.\n * - It will handle the layout changes and notify the worker to process the layout changes.\n * - It will update the container sizes with the updated values calculated by the worker.\n * \n * @class LayoutController\n */\nexport class LayoutController {\n\n /** \n * Constructor\n * \n * @param {Object} ldf - Layout Definition JSON object\n */\n constructor(ldf) {\n this.containers = {};\n this.containerRefs = {};\n this.ldf = ldf;\n this.numberOfContainers = 0;\n this.registeredContainers = 0;\n this.layoutLoaded = false;\n\n this.numberOfContainers = this.ldf.containers ? Object.keys(this.ldf.containers).length: 0;\n this.worker = null; \n }\n\n /**\n * Start the worker.\n */\n startWorker() {\n try {\n this.worker = new Worker(\n new URL('./Worker/LayoutWorker.js', import.meta.url),\n { type: 'module' }\n );\n this.worker.onmessage = this.handleWorkerMessage.bind(this);\n this.worker.onerror = (error) => console.error('Worker error:', error);\n this.sendToWorker(LAYOUT_WORKER_PROTOCOL.INITIALIZE, {ldf: this.ldf})\n \n } catch (error) {\n console.error('Failed to create worker:', error);\n }\n }\n\n /**\n * Sends message to worker with the provided arguments.\n * @param {Number} code \n * @param {Object} args \n */\n sendToWorker(code, args) {\n if (!this.worker) {\n this.startWorker();\n }\n this.worker.postMessage({\n code:code,\n args: args\n });\n }\n\n /**\n * Allows containers to register themselves with the controller.\n * @param {String} id \n * @param {Object} containerApi \n * @param {HTMLElement} containerRef \n */\n registerContainer(id, containerApi, containerRef) { \n if (!(id in this.containers)) {\n this.registeredContainers += 1\n }\n \n this.containers[id] = containerApi;\n this.containerRefs[id] = containerRef;\n\n console.log(`Registered container with id: ${id} `);\n\n if (this.registeredContainers === this.numberOfContainers && !this.layoutLoaded) {\n console.log(\"All containers registered, layout is ready.\");\n this.sendToWorker(LAYOUT_WORKER_PROTOCOL.INITIALIZE_FLEXBOX);\n }\n }\n \n /**\n * Allows containers to unregister themselves with the controller.\n * @param {String} id \n */\n unregisterContainer(id) {\n delete this.containers[id];\n }\n\n /**\n * This function is called when the root container is resized.\n * It will notify the worker to process the layout changes.\n */\n handleRootResize() { \n if (!this.layoutLoaded) return;\n // console.log(\"Root container resized to:\", width, height);\n const sizes = {};\n for (const id in this.containerRefs) {\n if (this.containerRefs.hasOwnProperty(id)) {\n const boundingRect = this.containerRefs[id].getBoundingClientRect();\n sizes[id] = {\n width: boundingRect.width, \n height: boundingRect.height\n };\n }\n } \n this.sendToWorker(\n LAYOUT_WORKER_PROTOCOL.APPLY_SIZES, \n { sizes: sizes }\n ); \n }\n\n\n /**\n * Move handle bar is called by the handle bar component with the\n * metadata about its parent and the siblings being resized. This\n * information is parsed and passed to the layout editor to enforce\n * the layout rules.\n * @param {Object} metadata \n */\n moveHandleBar(metadata) {\n let sizes = {};\n const containerIds = [metadata.parent, metadata.sibling1, metadata.sibling2];\n for (const containerId of containerIds) {\n let boundingRect = this.containerRefs[containerId].getBoundingClientRect();\n sizes[containerId] = {\n width: boundingRect.width, \n height: boundingRect.height\n };\n }\n\n metadata.sizes = sizes; \n this.sendToWorker(\n LAYOUT_WORKER_PROTOCOL.MOVE_HANDLE_BAR, \n { \n metadata: metadata\n }\n );\n\n // TODO: This is temporary, after handle bar move, the layout rules are\n // applied to react to new container sizes. This can be done more efficiently\n // because we only need to react the containers that were changed. This calculates\n // the entire layout.\n this.handleRootResize();\n }\n\n /**\n * Apply the given transformations\n * @param {Object} transformations \n * @param {Object} isInitial \n */\n applyTransformations (transformations, isInitial) {\n requestAnimationFrame(() => {\n for (const transformation of transformations) {\n switch (transformation.type) {\n case TRANSFORMATION_TYPES.UPDATE_SIZE:\n this.containers[transformation.id].current.updateStyles(\n transformation.args.style\n );\n break;\n case TRANSFORMATION_TYPES.REMOVE_NODE:\n break;\n default:\n console.warn(\"Unknown transformation was requested.\");\n break;\n }\n };\n if (isInitial) {\n this.layoutLoaded = true;\n // After initial layout is applied, we can hide the loading screen.\n this.containers[this.ldf.layoutRoot].current.hideLoadingScreen();\n }\n });\n };\n\n /**\n * Handles messages from worker\n * @param {Object} event \n */\n handleWorkerMessage(event) {\n let transformations;\n switch(event.data.type) {\n case LAYOUT_WORKER_PROTOCOL.INITIALIZE_FLEXBOX:\n transformations = event.data.data;\n this.applyTransformations(transformations, true);\n break;\n case LAYOUT_WORKER_PROTOCOL.TRANSFORMATIONS:\n transformations = event.data.data;\n this.applyTransformations(transformations, false);\n break;\n case LAYOUT_WORKER_PROTOCOL.ERROR:\n console.error(\"Error from worker:\", event.data);\n break;\n default:\n break;\n }\n }\n\n /**\n * Invoke a specific action on a container given the id.\n */\n invokeAction({id, action, args}) {\n this.sendToWorker(\n LAYOUT_WORKER_PROTOCOL.INVOKE_ACTION, \n { \n id: id,\n action: action,\n args: args\n }\n );\n }\n\n /**\n * Performs cleanup when the controller is destroyed.\n */\n destroy() {\n if (this.worker) {\n this.worker.terminate();\n this.worker = null;\n }\n }\n}","import React, { createContext, useContext, useEffect, useMemo } from 'react';\nimport { LayoutController } from \"../Controller/LayoutController\";\nimport PropTypes from 'prop-types';\n\nconst LayoutContext = createContext(null);\n\n/**\n * A provider to expose the controller to all the children.\n * @param {Object} props\n * @param {Object} props.layout - Layout definition JSON object\n * @param {React.ReactNode} props.children - React children to render\n * @returns {React.ReactElement}\n */\nexport function LayoutControllerProvider({ layout, children }) {\n \n const controller = useMemo( () => {\n return new LayoutController(layout);\n }, [layout]);\n\n useEffect(() => {\n return () => {\n controller.destroy();\n }\n }, [controller]);\n\n return (\n <LayoutContext.Provider value={controller}>\n {children}\n </LayoutContext.Provider>\n )\n}\n\nLayoutControllerProvider.propTypes = {\n layout: PropTypes.object.isRequired,\n children: PropTypes.node.isRequired\n}\n\n/**\n * A hook to access the controller within containers.\n * @returns {Object}\n */\nexport function useLayoutController() {\n const context = useContext(LayoutContext);\n if (!context) {\n throw new Error(\"useLayoutController must be used within a LayoutControllerProvider\")\n }\n return context;\n}","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","// @ts-nocheck\nimport React, { useEffect, useState, useRef, useCallback } from \"react\";\nimport PropTypes from 'prop-types';\nimport { useLayoutController } from \"../../Providers/LayoutProvider\";\n\nimport \"./HandleBar.scss\";\n\n/**\n * \n */\nexport const HandleBar = ({orientation, parent, sibling1, sibling2}) => {\n\n const controller = useLayoutController();\n const dragStartInfo = useRef(null)\n const handleRef = useRef(null);\n const timerRef = useRef(null);\n \n const MIN_PANEL_SIZE = 50;\n\n /**\n * This function saves the relevant info on mouse down.\n * It does the following:\n * - Determines the dynamic prop being modified (width or height)\n * - Determines the mouse down property to track (clientY or clientX)\n * - Gets the references to the sibling elements\n * - Gets the sibling sizes from the layout\n * - Gets the sibling sizes from the layout reference\n * - Saves the information in drag start info ref for access\n * @param {MouseEvent} e \n */\n const handleMouseDown = (e) => {\n e.preventDefault();\n e.stopPropagation();\n document.addEventListener(\"mousemove\", handleMouseMove);\n document.addEventListener(\"mouseup\", handleMouseUp);\n\n let downKey, propKey, hoverClass;\n if (orientation === \"horizontal\") {\n downKey = \"clientY\";\n propKey = \"height\";\n hoverClass = \"handleBarHorizontalHover\";\n } else if (orientation === \"vertical\"){\n downKey = \"clientX\";\n propKey = \"width\";\n hoverClass = \"handleBarVerticalHover\";\n }\n\n const parentRef = controller.containerRefs[parent];\n const sibling1Ref = controller.containerRefs[sibling1];\n const sibling2Ref = controller.containerRefs[sibling2];\n\n // Get the min, max sizes of siblings 1 and 2\n let sibling1LayoutConfig, sibling2LayoutConfig;\n const parentContainer = controller.ldf.containers[parent];\n for (let i = 0; i < parentContainer.children.length; i++) {\n if (parentContainer.children[i].containerId === sibling1) {\n sibling1LayoutConfig = parentContainer.children[i].size;\n } else if (parentContainer.children[i].containerId === sibling2) {\n sibling2LayoutConfig = parentContainer.children[i].size;\n }\n }\n\n dragStartInfo.current = {\n \"downValueY\": e[downKey],\n \"hoverClass\": hoverClass,\n \"downKey\": downKey,\n \"propKey\": propKey,\n \"parentSize\": parentRef.getBoundingClientRect()[propKey],\n \"parentRef\": parentRef,\n \"sibling1Ref\": sibling1Ref,\n \"sibling2Ref\": sibling2Ref,\n \"sibling1LayoutConfig\": sibling1LayoutConfig,\n \"sibling2LayoutConfig\": sibling2LayoutConfig,\n \"sibling1Size\": sibling1Ref.getBoundingClientRect()[propKey],\n \"sibling2Size\": sibling2Ref.getBoundingClientRect()[propKey],\n }\n \n handleRef.current.classList.add(hoverClass);\n }\n\n function getRelativeMousePosition(event, parentContainer) {\n const parentBounds = parentContainer.getBoundingClientRect();\n const relativeX = event.clientX - parentBounds.left;\n const relativeY = event.clientY - parentBounds.top;\n return { x: relativeX, y: relativeY };\n }\n\n /**\n * This function is called when the mouse is being dragged and \n * it uses the delta from the starting down point to calculate\n * the new sizes (width or height). \n * @param {Event} e \n * @returns \n */\n const handleMouseMove = (e) => {\n if (!dragStartInfo.current) return;\n e.preventDefault();\n e.stopPropagation();\n\n const startInfo = dragStartInfo.current;\n\n // Use delta from starting down point to calculate new heights\n const delta = e[startInfo.downKey] - startInfo.downValueY;\n const newSibling1Size = startInfo.sibling1Size + delta;\n const newSibling2Size = startInfo.sibling2Size - delta;\n\n clearTimeout(timerRef.current);\n\n timerRef.current = setTimeout(() => {\n // Resize here\n controller.moveHandleBar({\n handle: getRelativeMousePosition(e, startInfo.parentRef),\n parent: parent,\n sibling1: sibling1,\n sibling2: sibling2\n });\n }, 4);\n \n // Don't update container sizes we are past min or max values.\n const sibling1SizeKeys = Object.keys(startInfo.sibling1LayoutConfig);\n if (sibling1SizeKeys.includes(\"min\") && newSibling1Size <= startInfo.sibling1LayoutConfig.min.value ||\n sibling1SizeKeys.includes(\"max\") && newSibling1Size >= startInfo.sibling1LayoutConfig.max.value) {\n return;\n }\n \n // Don't update container sizes we are past min or max values.\n const sibling2SizeKeys = Object.keys(startInfo.sibling2LayoutConfig);\n if (sibling2SizeKeys.includes(\"min\") && newSibling2Size <= startInfo.sibling2LayoutConfig.min.value ||\n sibling2SizeKeys.includes(\"max\") && newSibling2Size >= startInfo.sibling2LayoutConfig.max.value) {\n return;\n }\n\n // If either of the containers are less than 50px, then don't update size.\n if (newSibling1Size < MIN_PANEL_SIZE || newSibling2Size < MIN_PANEL_SIZE) {\n return;\n }\n\n // If both siblings are type fill, then set sizes.\n const sibling1Type = startInfo.sibling1LayoutConfig.initial.type;\n const sibling2Type = startInfo.sibling2LayoutConfig.initial.type;\n if (sibling1Type === \"fill\" && sibling2Type === \"fill\") {\n controller.containerRefs[sibling1].style[startInfo.propKey] = newSibling1Size + \"px\";\n controller.containerRefs[sibling2].style[startInfo.propKey] = newSibling2Size + \"px\";\n return;\n }\n \n // Don't update fill type siblings, if one of the siblings isn't fill type.\n if (!(sibling1Type === \"fill\")) {\n controller.containerRefs[sibling1].style[startInfo.propKey] = newSibling1Size + \"px\";\n }\n if (!(sibling2Type === \"fill\")) {\n controller.containerRefs[sibling2].style[startInfo.propKey] = newSibling2Size + \"px\";\n }\n }\n\n /**\n * Perform cleanup after drag event has finished.\n * @param {Event} e \n */\n const handleMouseUp = (e) => {\n e.preventDefault();\n e.stopPropagation();\n document.removeEventListener(\"mousemove\", handleMouseMove);\n document.removeEventListener(\"mouseup\", handleMouseUp);\n clearTimeout(timerRef.current); \n if (handleRef.current && dragStartInfo.current) {\n handleRef.current.classList.remove(dragStartInfo.current.hoverClass);\n }\n dragStartInfo.current = null;\n }\n\n\n useEffect(() => {\n return () => { \n document.removeEventListener(\"mousemove\", handleMouseMove);\n document.removeEventListener(\"mouseup\", handleMouseUp);\n if (timerRef.current) {\n clearTimeout(timerRef.current);\n timerRef.current = null;\n }\n }\n }, []);\n\n return (\n <React.Fragment > \n {\n orientation === \"horizontal\"?\n <div onMouseDown={(e) => handleMouseDown(e)} className=\"handleBarHorizontalContainer\">\n <div ref={handleRef} className=\"handleBarHorizontal\"></div>\n </div>:\n orientation === \"vertical\"?\n <div onMouseDown={(e) => handleMouseDown(e)} className=\"handleBarVerticalContainer\">\n <div ref={handleRef} className=\"handleBarVertical\"></div>\n </div>:\n null\n }\n </React.Fragment>\n );\n};\n\nHandleBar.propTypes = {\n orientation: PropTypes.string,\n sibling1: PropTypes.string,\n sibling2: PropTypes.string,\n parent: PropTypes.string\n}","import {createContext} from \"react\";\n\n// This context stores the registry for the components.\nconst ComponentRegistryContext = createContext({});\nComponentRegistryContext.displayName = 'ComponentRegistryContext';\n\nexport default ComponentRegistryContext;\n","var _excluded = [\"color\", \"size\", \"title\", \"className\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nimport React, { forwardRef } from 'react';\nimport PropTypes from 'prop-types';\nvar XLg = /*#__PURE__*/forwardRef(function (_ref, ref) {\n var _ref$color = _ref.color,\n color = _ref$color === void 0 ? 'currentColor' : _ref$color,\n _ref$size = _ref.size,\n size = _ref$size === void 0 ? '1em' : _ref$size,\n _ref$title = _ref.title,\n title = _ref$title === void 0 ? null : _ref$title,\n _ref$className = _ref.className,\n className = _ref$className === void 0 ? '' : _ref$className,\n rest = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n ref: ref,\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 16 16\",\n width: size,\n height: size,\n fill: color,\n className: ['bi', 'bi-x-lg', className].filter(Boolean).join(' ')\n }, rest), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z\"\n }));\n});\nXLg.propTypes = {\n color: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n title: PropTypes.string,\n className: PropTypes.string\n};\nexport default XLg;","import PropTypes from \"prop-types\";\n\nimport \"./MenuBar.scss\";\n\nimport { XLg } from \"react-bootstrap-icons\";\n\nimport { useLayoutController } from \"../../../Providers/LayoutProvider\";\n\n/**\n * MenuBar component for the containers.\n *\n * @param {Object} node\n */\nexport const MenuBar = ({ node }) => {\n const controller = useLayoutController();\n\n const closeContainer = () => {\n controller.invokeAction({\n id: node?.menuBar?.closeContainerId,\n action: \"close\",\n args: {},\n });\n };\n\n return (\n <div className=\"titleContainer\">\n <div className=\"title\">{node?.menuBar?.title}</div>\n {\n node?.menuBar?.showClose &&\n <div onClick={closeContainer} className=\"close\">\n <XLg />\n </div>\n }\n </div>\n );\n};\n\nMenuBar.propTypes = {\n node : PropTypes.object,\n};\n","import PropTypes from 'prop-types';\n\nimport {XLg} from \"react-bootstrap-icons\";\nimport \"./Tabs.scss\"\n\nimport { useLayoutController } from \"../../../Providers/LayoutProvider\";\n\n/**\n * Tabs component for the containers.\n * \n * @param {Object} node\n */\nexport const Tabs = ({node, onTabClick}) => {\n const controller = useLayoutController();\n\n const closeContainer = () => {\n controller.invokeAction({\n id: node?.tabsBar?.closeContainerId,\n action: \"close\",\n args: {},\n });\n };\n\n return (\n <div className=\"container-tabs-row\">\n <div className=\"container-tabs\">\n {node?.tabsBar?.tabs?.map((tab, index) => (\n <div \n key= {tab.name + String(index)}\n style={{ borderBottom: tab.selected ? \"solid 1px white\" : \"none\" }}\n onClick={(e) => onTabClick(tab)} \n className=\"container-tab\">\n {tab.name}\n </div>\n ))}\n </div>\n\n {\n node?.tabsBar?.showClose && \n <div className=\"container-close\">\n <XLg onClick={closeContainer}/>\n </div>\n }\n </div>\n );\n}\n\nTabs.propTypes = {\n node: PropTypes.object,\n onTabClick: PropTypes.func\n}","import React, { lazy, useMemo, Suspense, useContext, useEffect, useState } from \"react\";\nimport PropTypes from 'prop-types';\nimport ComponentRegistryContext from \"../../Providers/ComponentRegistryContext\";\nimport { MenuBar } from \"./MenuBar/MenuBar\";\nimport { Tabs } from \"./Tabs/Tabs\";\n\nimport \"./LazyLoader.scss\"\n\n/**\n * LazyLoader component that renders a component\n * specified in the ldf file.\n * \n * @param {Object} content\n */\nexport const LazyLoader = ({node}) => {\n const registry = useContext(ComponentRegistryContext);\n const [showTitle, setShowTitle] = useState(false);\n const [showTab, setShowTab] = useState(false);\n\n const [lazyContainerTop, setLazyContainerTop] = useState(0);\n const [tabsTop, setTabsTop] = useState(0);\n const [selectedComponent, setSelectedComponent] = useState(\"\");\n\n // Lazy load the component when the selected component changes.\n const LazyComponent = useMemo(() => {\n if (registry && selectedComponent in registry) {\n return lazy(registry[selectedComponent]);\n }\n }, [registry, selectedComponent]);\n\n /**\n * Note: I am setting the top of the absolute position\n * of the containers based on if the title and tabs are\n * shown. This is a temporary implementation, I will be\n * revisiting this and formally implementing it after.\n */\n useEffect(() => {\n let _lazyContainerTop = 0;\n let _tabsTop = 0;\n if (\"menuBar\" in node) {\n setShowTitle(true);\n _tabsTop += 35;\n _lazyContainerTop += 35;\n }\n if (\"tabsBar\" in node) {\n setShowTab(true);\n _lazyContainerTop += 35;\n selectTab(node.tabsBar.tabs[0]);\n } else {\n setSelectedComponent(node.component);\n }\n setLazyContainerTop(_lazyContainerTop)\n setTabsTop(_tabsTop);\n }, [node]);\n\n /**\n * Selects the provided tab.\n * @param {Object} selectedTab \n */\n const selectTab = (selectedTab) => {\n node.tabsBar.tabs.forEach((tab) => {\n if (tab === selectedTab) {\n tab.selected = true;\n setSelectedComponent(tab.component);\n } else {\n tab.selected = false;\n }\n });\n }\n\n return (\n <div className=\"absoluteContainer\">\n <div className=\"contentContainer\">\n {\n showTitle && \n <div className=\"menuContainer\">\n <MenuBar node={node}/>\n </div>\n }\n {\n showTab && \n <div className=\"tabsContainer\" style={{ top: `${tabsTop}px`}}>\n <Tabs node={node} onTabClick={selectTab}/>\n </div>\n }\n <div className=\"lazycontainer\" style={{ top: `${lazyContainerTop}px`}}>\n <Suspense fallback={<div>Loading...</div>}>\n {LazyComponent && <LazyComponent />}\n </Suspense>\n </div>\n </div>\n </div>\n );\n}\n\nLazyLoader.propTypes = {\n content: PropTypes.object,\n}","import React, { useEffect, useState, useRef, useLayoutEffect, useCallback, Children } from \"react\";\nimport PropTypes from 'prop-types';\nimport { useLayoutController } from \"../../Providers/LayoutProvider\";\nimport { HandleBar } from \"../HandleBar/HandleBar\";\nimport \"./Container.scss\"\nimport { LazyLoader } from \"../LazyLoader/LazyLoader\";\n/**\n * Renders the node and creates containers for its children.\n * Also registers itself with the controller to allow the controller\n * to set the size of the container and to apply transformations.\n * \n * @param {Object} node The node in the layout tree.\n * @return {React.ReactElement}\n */\nexport const Container = ({node}) => {\n\n const controller = useLayoutController();\n const containerRef = useRef(null); \n const parentOrientationRef = useRef(null);\n const [childElements, setChildElements] = useState(null);\n \n /**\n * Renders child containers recursively.\n */\n const processContainer = useCallback((node) => {\n const childElements = []; \n for (let index = 0; index < node.children.length; index++) {\n const childNode = node.children[index];\n\n if (childNode.type === \"container\") {\n const child = controller.ldf.containers[node.children[index].containerId];\n child.parent = node;\n childElements.push(\n <Container \n key={index} \n meta={node.children[index]} \n id={child.id} \n node={child}/>\n );\n } else if (childNode.type === \"handleBar\") {\n if (node.orientation === \"horizontal\") {\n childElements.push(\n <HandleBar \n key={index}\n orientation=\"vertical\" \n parent={node.id}\n sibling1={childNode.sibling1}\n sibling2={childNode.sibling2}\n />\n );\n } else if (node.orientation === \"vertical\") {\n childElements.push(\n <HandleBar \n key={index}\n orientation=\"horizontal\" \n parent={node.id}\n sibling1={childNode.sibling1}\n sibling2={childNode.sibling2}\n />\n );\n }\n }\n };\n return childElements;\n },[controller]);\n\n // Create the container API that will be used by the controller.\n const containerAPI = useRef({});\n containerAPI.current = {\n /**\n * Applies the provided styles (width, height, flex etc.)\n * @param {Object} styles\n */\n updateStyles: (styles) => {\n const className = \"hiding-\" + parentOrientationRef.current;\n for (const key in styles) {\n if (key === \"display\" && styles[key] === \"none\") {\n if (containerRef.current.classList.contains(className)) return;\n containerRef.current.classList.add(className);\n } else if (key === \"display\" && styles[key] === \"flex\") {\n if (!containerRef.current.classList.contains(className)) return;\n containerRef.current.classList.remove(className); \n } else { \n containerRef.current.style[key] = styles[key];\n }\n }\n }\n };\n\n // Render child containers and regsiter API with the controller.\n useLayoutEffect(() => {\n if (node && controller && containerRef.current) {\n parentOrientationRef.current = node.parent.orientation;\n const hasChildren = node.children && node.children.length > 0\n\n if (hasChildren) { \n // Set flex properties based on orientation for children \n if (node.orientation === \"horizontal\") {\n containerRef.current.style.display = \"flex\";\n containerRef.current.style.flexDirection = \"row\";\n containerRef.current.style.width = \"100%\";\n } else if (node.orientation === \"vertical\") {\n containerRef.current.style.display = \"flex\";\n containerRef.current.style.flexDirection = \"column\";\n containerRef.current.style.height = \"100%\";\n } else {\n console.warn(\"Unknown orientation:\", node.orientation);\n }\n } else {\n // No children, so its a leaf node, apply background if any.\n if (node.background) {\n containerRef.current.style.background = node.background;\n } else {\n containerRef.current.style.background = \"transparent\";\n }\n }\n \n setChildElements(hasChildren?processContainer(node):<LazyLoader node={node} />);\n \n controller.registerContainer(node.id, containerAPI, containerRef.current);\n return () => {\n controller.unregisterContainer(node.id);\n }\n }\n }, [node, controller, processContainer]);\n\n return (\n <div ref={containerRef} className={\"relative-container\"}>\n {childElements}\n </div>\n );\n}\n\nContainer.propTypes = {\n node: PropTypes.object,\n}","/**\n * Layout Event Controller used to subscribe to events\n * and publish events.\n */\nclass LayoutEventController {\n\n constructor() {\n this.subscribers = new Map();\n }\n\n /**\n * Subscribe to event type and provide handler\n * @param {String} type \n * @param {Function} handler \n * @returns \n */\n subscribe(type, handler) {\n // Create set for type if it doesn't exist\n if (!this.subscribers.has(type)) {\n this.subscribers.set(type, new Set());\n }\n\n // Add handler to type set\n const handlers = this.subscribers.get(type);\n handlers.add(handler);\n\n // Return unsubscribe function \n const unsubscribe = () => {\n handlers.delete(handler);\n if (handlers.size === 0) {\n this.subscribers.delete(type);\n }\n }\n\n return unsubscribe;\n }\n\n /**\n * Publishes the event to the subscribers.\n * @param {Object} event \n * @returns \n */\n publish(event) {\n const handlers = this.subscribers.get(event.type);\n if (!handlers) return;\n\n for (const handler of handlers) {\n handler(event);\n }\n }\n\n}\n\nexport default LayoutEventController;\n\n","import React, { createContext, useContext, useEffect, useMemo, useRef } from \"react\";\nimport LayoutEventController from \"../Controller/LayoutEventController\";\n\nconst LayoutEventContext = createContext(null);\n\nexport function LayoutEventProvider({ children }) {\n const controller = useMemo(() => new LayoutEventController(), []);\n\n return (\n <LayoutEventContext.Provider value={controller}>\n {children}\n </LayoutEventContext.Provider>\n );\n}\n\n/**\n * Hook to publish an event.\n * @returns \n */\nexport function useLayoutEventPublisher() {\n const controller = useContext(LayoutEventContext);\n\n if (!controller) {\n throw new Error(\"useLayoutPublisher must be used within LayoutEventProvider\");\n }\n\n // Return publish that is bound to the controller\n return controller.publish.bind(controller);\n}\n\n/**\n * Hook to subscribe to event.\n * @param {String} type \n * @param {Function} handler \n */\nexport function useLayoutEventSubscription(type, handler) {\n const controller = useContext(LayoutEventContext);\n const handlerRef = useRef(handler);\n\n // Handler is saved in ref and passed into the subscription, this causes\n // the publisher to invoke the handler and notify the subscriber\n handlerRef.current = handler;\n\n useEffect(() => {\n if (!controller) {\n throw new Error(\"useLayoutSubscription must be used within LayoutEventProvider\");\n }\n\n // controller.subscribe returns unsubscribe function, so it is called automatically\n // when the component is unmounted\n return controller.subscribe(type, (event) => {\n handlerRef.current(event);\n });\n }, [controller, type]);\n}","import { useMemo } from \"react\";\n\nimport { useLayoutEventPublisher } from \"../../Providers/LayoutEventProvider\";\n\n/**\n * Drag controller exposed through the hook. It exposes\n * callback functions which are connected to the dnd context. \n * \n * The controller is also initialized with the publish function\n * exposed by the useLayoutEventPublisher so it can notify\n * subscribers of any relevant events.\n */\nclass DragController {\n constructor({publish}) {\n this.publish = publish;\n this.resetDragState();\n }\n\n resetDragState = () => {\n this.dragState = {\n activeId: null,\n activeData: null,\n overId: null,\n overData: null,\n isDragging: false\n }\n }\n\n onDragStart = (event) => {\n this.dragState = {\n activeId: event.active?.id ?? null,\n activeData: event.active?.data?.current ?? null,\n overId: null,\n overData: null,\n isDragging: true\n };\n }\n\n onDragOver = (event) => {\n this.dragState.overId = event.over?.id ?? null;\n this.dragState.overData = event.over?.data?.current ?? null;\n }\n\n onDragEnd = (event) => {\n this.publish({\n type: \"drag:drop\",\n payload: {\n activeId: event.active?.id ?? null,\n activeData: event.active?.data?.current ?? null,\n overId: event.over?.id ?? null,\n overData: event.over?.data?.current ?? null,\n },\n source: \"drag-provider\",\n })\n this.resetDragState();\n }\n\n onDragCancel = (event) => {\n this.resetDragState();\n }\n\n isDragging = () => {\n return this.dragState.isDragging;\n }\n\n getDragPreview = () => {\n return this.dragState?.activeData?.preview;\n }\n}\n\nconst useDragEventController = function() {\n const publish = useLayoutEventPublisher();\n\n return useMemo(() => {\n return new DragController({publish});\n }, [publish]);\n}\n\nexport default useDragEventController;","import React, { useEffect, useLayoutEffect, useState, useRef, useCallback, useContext } from \"react\";\nimport PropTypes from 'prop-types';\nimport { Container } from \"../Container/Container\";\nimport { HandleBar } from \"../HandleBar/HandleBar\";\nimport { useLayoutController } from \"../../Providers/LayoutProvider\";\nimport {\n DndContext,\n closestCenter,\n PointerSensor,\n useSensor,\n useSensors\n} from \"@dnd-kit/core\";\n\nimport useDragEventController from \"./DragController\";\nimport \"./RootContainer.scss\"\n\n\n/**\n * Root node for the layout tree. This component will start \n * rendering the tree and it will also watch for changes in the\n * root container sizes to process layout changes.\n * \n * @return {React.ReactElement}\n */\nexport const RootContainer = () => {\n const layoutController = useLayoutController();\n const dragController = useDragEventController();\n\n const rootRef = useRef(null);\n const timerRef = useRef(null);\n const resizingRef = useRef(false);\n const loadingOverlayRef = useRef(null);\n const [showLoadingScreen, setShowLoadingScreen] = useState(true);\n\n // Create the container API that will be used by the controller.\n const rootContainerAPI = useRef({});\n rootContainerAPI.current = {\n hideLoadingScreen: () => {\n setShowLoadingScreen(false);\n }\n };\n\n const [childElements, setChildElements] = useState(null);\n\n /**\n * Renders child containers recursively.\n */\n const processContainer = useCallback((node) => {\n const childElements = [];\n for (let index = 0; index < node.children.length; index++) {\n const childNode = node.children[index];\n\n if (childNode.type === \"container\") {\n const child = layoutController.ldf.containers[node.children[index].containerId];\n child.parent = node;\n childElements.push(\n <Container key={index} meta={node.children[index]} id={child.id} node={child} />\n );\n } else if (childNode.type === \"handleBar\") {\n if (node.orientation === \"horizontal\") {\n childElements.push(\n <HandleBar\n key={index}\n orientation=\"vertical\"\n parent={node.id}\n sibling1={childNode.sibling1}\n sibling2={childNode.sibling2}\n />\n );\n } else if (node.orientation === \"vertical\") {\n childElements.push(\n <HandleBar\n key={index}\n orientation=\"horizontal\"\n parent={node.id}\n sibling1={childNode.sibling1}\n sibling2={childNode.sibling2}\n />\n );\n }\n }\n };\n return childElements;\n }, [layoutController]);\n\n\n useLayoutEffect(() => {\n if (layoutController) {\n const rootNode = layoutController.ldf.containers[layoutController.ldf.layoutRoot];\n const hasChildren = rootNode.children && rootNode.children.length > 0\n layoutController.registerContainer(rootNode.id, rootContainerAPI, rootRef.current);\n\n if (hasChildren) {\n if (rootNode.orientation === \"horizontal\") {\n rootRef.current.style.flexDirection = \"row\";\n } else if (rootNode.orientation === \"vertical\") {\n rootRef.current.style.flexDirection = \"column\";\n }\n }\n\n setChildElements(hasChildren ? processContainer(rootNode) : null);\n\n // Create resize observer to monitor changes in the root container size.\n const observer = new ResizeObserver((entries) => {\n\n if (!resizingRef.current) resizingRef.current = true;\n\n for (let entry of entries) {\n const { width, height } = entry.contentRect;\n\n clearTimeout(timerRef.current);\n\n timerRef.current = setTimeout(() => {\n resizingRef.current = false;\n layoutController.handleRootResize(width, height);\n }, 1);\n }\n });\n\n observer.observe(rootRef.current);\n\n return () => {\n layoutController.unregisterContainer(layoutController.ldf.layoutRoot);\n observer.disconnect();\n }\n }\n }, [layoutController]);\n\n const sensors = useSensors(\n useSensor(PointerSensor, {\n activationConstraint: {\n distance: 8\n }\n })\n );\n\n // Manually track the drag position for smooth overlay\n const [dragPos, setDragPos] = useState({ left: 0, top: 0 });\n useEffect(() => {\n if (!dragController.isDragging()) return;\n const handleMove = (e) => {setDragPos({ left: e.clientX, top: e.clientY })};\n window.addEventListener(\"pointermove\", handleMove);\n return () => {\n window.removeEventListener(\"pointermove\", handleMove);\n };\n }, [dragController.isDragging()]);\n\n return (\n <DndContext sensors={sensors}\n collisionDetection={closestCenter}\n onDragStart={dragController.onDragStart}\n onDragOver={dragController.onDragOver}\n onDragEnd={dragController.onDragEnd}\n onDragCancel={dragController.onDragCancel}>\n \n {showLoadingScreen && <div className=\"loading-overlay\" ref={loadingOverlayRef}>\n <div className=\"loading-bar\">\n <div className=\"loading-bar-fill\"></div>\n </div>\n </div>}\n <div className=\"root-container\">\n <div ref={rootRef} className=\"relative-container\">\n {childElements}\n </div>\n </div>\n\n {dragController.isDragging() && (\n <div className=\"drag-overlay\" style={dragPos}>\n {dragController.getDragPreview()}\n </div>\n )}\n </DndContext>\n );\n}","// @ts-nocheck\nimport React, {\n createContext,\n useCallback,\n useContext,\n useMemo,\n useState,\n useRef\n} from \"react\";\n\nimport { createPortal } from \"react-dom\";\n\nimport {XLg} from \"react-bootstrap-icons\";\n\nconst ModalContext = createContext(null);\n\n/**\n * Modal provider component to manage modals in the application\n * @returns {JSX} The modal provider component\n */\nexport function ModalProvider({ children }) {\n const [modal, setModal] = useState(null);\n const downOnContentRef = useRef(false);\n\n // Open a modal with the given content and title. Returns a function to close the modal.\n const openModal = useCallback(( args ) => {\n const close = () => {\n setModal(null);\n };\n\n const id = `modal-${Date.now()}`;\n setModal({\n id: id,\n title: args.title,\n args: args.args,\n render: args.render,\n close: close,\n });\n\n return { id, close };\n }, []);\n\n // Close the currently open modal\n const closeModal = useCallback(() => {\n setModal(null);\n }, []);\n\n\n // Prevent close when mouse down first happens on content\n // and then dragged onto backdrop\n const clickedBackdrop = (e) => {\n e.stopPropagation()\n if (!downOnContentRef.current) {\n closeModal();\n }\n downOnContentRef.current = false;\n }\n\n const downOnContent = (e) => {\n e.stopPropagation()\n downOnContentRef.current = true;\n }\n\n // Render the modal portal\n // TODO: Add support for different sizes\n const getPortal = () => {\n return createPortal(\n <>\n {modal && (\n <React.Fragment key={modal.id}>\n <div className=\"modal-backdrop\" onClick={clickedBackdrop}>\n <div className=\"modal-content\" onMouseDown={downOnContent}>\n <div className=\"modal-header\">\n <span className=\"title\">{modal.title}</span>\n <XLg className=\"close-button\" onClick={modal.close} />\n </div>\n <div className=\"modal-body\">\n {modal.render({ close: modal.close , args: modal.args })}\n </div>\n </div>\n </div>\n </React.Fragment>\n )}\n </>,\n document.body,\n );\n };\n\n const api = useMemo(\n () => ({\n openModal,\n closeModal,\n }),\n [openModal, closeModal],\n );\n\n return (\n <ModalContext.Provider value={api}>\n {children}\n {getPortal()}\n </ModalContext.Provider>\n );\n}\n\n/**\n * Modal manager hook to access the modal API\n * @return {Object} The modal manager API\n */\nexport function useModalManager() {\n const value = useContext(ModalContext);\n if (!value) {\n throw new Error(\"useModalManager must be used inside ModalProvider\");\n }\n return value;\n}\n","import React, { useEffect, useState, useContext } from \"react\";\nimport PropTypes from 'prop-types';\nimport { RootContainer } from \"./Components/RootContainer/RootContainer\";\nimport ComponentRegistryContext from \"./Providers/ComponentRegistryContext\";\nimport { LayoutControllerProvider } from \"./Providers/LayoutProvider\";\nimport { ModalProvider } from \"./Providers/ModalProvider\";\n\nimport \"./LayoutManager.scss\";\n\n/**\n * Renders the layout specified in the LDF file.\n * @param {Object} props\n * @param {Object} props.ldf - JSON object containing the Layout Definition File (LDF)\n * @param {React.ReactNode} props.registry - An object containing the registered components that will be\n * lazy loaded into the containers.\n * @return {React.ReactElement}\n */\nexport const LayoutManager = ({ldf, registry}) => {\n\n return (\n <LayoutControllerProvider layout={ldf}>\n <ComponentRegistryContext.Provider value={registry}>\n <ModalProvider>\n <RootContainer/>\n </ModalProvider>\n </ComponentRegistryContext.Provider>\n </LayoutControllerProvider> \n );\n}\n\nLayoutManager.propTypes = {\n ldf: PropTypes.object,\n registry: PropTypes.object,\n}"],"names":["process","env","NODE_ENV","reactIsModule","exports","b","Symbol","for","c","d","e","f","g","h","k","l","m","n","p","q","r","t","v","w","x","y","z","a","u","$$typeof","type","A","reactIs_production_min","AsyncMode","ConcurrentMode","ContextConsumer","Element","ForwardRef","Fragment","Lazy","Portal","Profiler","StrictMode","Suspense","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isProfiler","isStrictMode","isSuspense","isValidElementType","typeOf","require$$0","hasSymbol","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_ASYNC_MODE_TYPE","REACT_CONCURRENT_MODE_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_BLOCK_TYPE","REACT_FUNDAMENTAL_TYPE","REACT_RESPONDER_TYPE","REACT_SCOPE_TYPE","object","$$typeofType","ContextProvider","Memo","hasWarnedAboutDeprecatedIsAsyncMode","reactIs_development","console","isPortal","getOwnPropertySymbols","Object","hasOwnProperty","prototype","propIsEnumerable","propertyIsEnumerable","objectAssign","assign","test1","String","getOwnPropertyNames","test2","i","fromCharCode","map","join","test3","split","forEach","letter","keys","err","shouldUseNative","target","source","from","symbols","to","val","TypeError","toObject","s","arguments","length","key","call","ReactPropTypesSecret_1","has","Function","bind","printWarning","ReactPropTypesSecret","loggedTypeFailures","require$$1","text","message","error","Error","checkPropTypes","typeSpecs","values","location","componentName","getStack","typeSpecName","name","ex","stack","resetWarningCache","checkPropTypes_1","ReactIs","require$$2","require$$3","require$$4","emptyFunctionThatReturnsNull","factoryWithTypeCheckers","isValidElement","throwOnDirectAccess","ITERATOR_SYMBOL","iterator","ANONYMOUS","ReactPropTypes","array","createPrimitiveTypeChecker","bigint","bool","func","number","string","symbol","any","createChainableTypeChecker","arrayOf","typeChecker","props","propName","propFullName","PropTypeError","propValue","Array","isArray","getPropType","element","elementType","instanceOf","expectedClass","expectedClassName","constructor","node","isNode","objectOf","propType","oneOf","expectedValues","is","valuesString","JSON","stringify","value","getPreciseType","oneOfType","arrayOfTypeCheckers","checker","getPostfixForTypeWarning","expectedTypes","checkerResult","data","push","expectedType","shape","shapeTypes","invalidValidatorError","exact","allKeys","this","validate","manualPropTypeCallCache","manualPropTypeWarningCount","checkType","isRequired","secret","cacheKey","chainedCheckType","every","iteratorFn","maybeIterable","getIteratorFn","step","entries","next","done","entry","RegExp","isSymbol","Date","PropTypes","emptyFunction","emptyFunctionWithReset","factoryWithThrowingShims","shim","getShim","propTypesModule","LAYOUT_WORKER_PROTOCOL","INITIALIZE","INITIALIZE_FLEXBOX","APPLY_SIZES","ERROR","TRANSFORMATIONS","MOVE_HANDLE_BAR","INVOKE_ACTION","freeze","TRANSFORMATION_TYPES","UPDATE_SIZE","LayoutController","_createClass","ldf","_classCallCheck","containers","containerRefs","numberOfContainers","registeredContainers","layoutLoaded","worker","Worker","URL","url","onmessage","handleWorkerMessage","onerror","sendToWorker","code","args","startWorker","postMessage","id","containerApi","containerRef","log","concat","sizes","boundingRect","getBoundingClientRect","width","height","metadata","_i","_containerIds","parent","sibling1","sibling2","containerId","handleRootResize","transformations","isInitial","_this","requestAnimationFrame","_step","_iterator","_createForOfIteratorHelper","transformation","current","updateStyles","style","REMOVE_NODE","warn","layoutRoot","hideLoadingScreen","event","applyTransformations","_ref","action","terminate","LayoutContext","createContext","LayoutControllerProvider","layout","children","controller","useMemo","useEffect","destroy","_jsx","Provider","useLayoutController","context","useContext","styleInject","css","ref","insertAt","document","head","getElementsByTagName","createElement","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","propTypes","HandleBar","orientation","dragStartInfo","useRef","handleRef","timerRef","handleMouseDown","downKey","propKey","hoverClass","preventDefault","stopPropagation","addEventListener","handleMouseMove","handleMouseUp","sibling1LayoutConfig","sibling2LayoutConfig","parentRef","sibling1Ref","sibling2Ref","parentContainer","size","downValueY","parentSize","sibling1Size","sibling2Size","classList","add","startInfo","delta","newSibling1Size","newSibling2Size","clearTimeout","setTimeout","parentBounds","moveHandleBar","handle","clientX","left","clientY","top","sibling1SizeKeys","includes","min","max","sibling2SizeKeys","sibling1Type","initial","sibling2Type","removeEventListener","remove","React","onMouseDown","className","ComponentRegistryContext","displayName","_excluded","_extends","apply","XLg","forwardRef","_ref$color","color","_ref$size","_ref$title","title","_ref$className","rest","o","indexOf","_objectWithoutPropertiesLoose","_objectWithoutProperties","xmlns","viewBox","fill","filter","Boolean","MenuBar","_node$menuBar2","_node$menuBar3","_jsxs","menuBar","showClose","onClick","_node$menuBar","invokeAction","closeContainerId","Tabs","_node$tabsBar2","_node$tabsBar3","onTabClick","tabsBar","tabs","tab","index","borderBottom","selected","_node$tabsBar","LazyLoader","registry","_useState2","_slicedToArray","useState","showTitle","setShowTitle","_useState4","showTab","setShowTab","_useState6","lazyContainerTop","setLazyContainerTop","_useState8","tabsTop","setTabsTop","_useState0","selectedComponent","setSelectedComponent","LazyComponent","lazy","_lazyContainerTop","_tabsTop","selectTab","component","selectedTab","fallback","content","Container","parentOrientationRef","childElements","setChildElements","processContainer","useCallback","childNode","child","_Container","meta","containerAPI","styles","contains","useLayoutEffect","hasChildren","display","flexDirection","background","registerContainer","unregisterContainer","LayoutEventController","subscribers","Map","handler","set","Set","handlers","get","LayoutEventContext","LayoutEventProvider","useLayoutEventPublisher","publish","useLayoutEventSubscription","handlerRef","subscribe","DragController","_defineProperty","dragState","activeId","activeData","overId","overData","isDragging","_event$active$id","_event$active","_event$active$data$cu","_event$active2","active","_event$over$id","_event$over","_event$over$data$curr","_event$over2","over","_event$active$id2","_event$active3","_event$active$data$cu2","_event$active4","_event$over$id2","_event$over3","_event$over$data$curr2","_event$over4","payload","resetDragState","_this$dragState","preview","RootContainer","layoutController","dragController","rootRef","resizingRef","loadingOverlayRef","showLoadingScreen","setShowLoadingScreen","rootContainerAPI","rootNode","observer","ResizeObserver","_loop","_entry$contentRect","contentRect","observe","disconnect","sensors","useSensors","useSensor","PointerSensor","activationConstraint","distance","dragPos","setDragPos","handleMove","window","DndContext","collisionDetection","closestCenter","onDragStart","onDragOver","onDragEnd","onDragCancel","getDragPreview","ModalContext","ModalProvider","modal","setModal","downOnContentRef","openModal","close","now","render","closeModal","clickedBackdrop","downOnContent","api","createPortal","_Fragment","body","useModalManager","LayoutManager"],"mappings":";;;;;;;;+BAE6B,eAAzBA,QAAQC,IAAIC,SACdC,EAAAC,qCCMW,IAAIC,EAAE,mBAAoBC,QAAQA,OAAOC,IAAIC,EAAEH,EAAEC,OAAOC,IAAI,iBAAiB,MAAME,EAAEJ,EAAEC,OAAOC,IAAI,gBAAgB,MAAMG,EAAEL,EAAEC,OAAOC,IAAI,kBAAkB,MAAMI,EAAEN,EAAEC,OAAOC,IAAI,qBAAqB,MAAMK,EAAEP,EAAEC,OAAOC,IAAI,kBAAkB,MAAMM,EAAER,EAAEC,OAAOC,IAAI,kBAAkB,MAAMO,EAAET,EAAEC,OAAOC,IAAI,iBAAiB,MAAMQ,EAAEV,EAAEC,OAAOC,IAAI,oBAAoB,MAAMS,EAAEX,EAAEC,OAAOC,IAAI,yBAAyB,MAAMU,EAAEZ,EAAEC,OAAOC,IAAI,qBAAqB,MAAMW,EAAEb,EAAEC,OAAOC,IAAI,kBAAkB,MAAMY,EAAEd,EACpfC,OAAOC,IAAI,uBAAuB,MAAMa,E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AC0E,GAAyBzE,SAAQ,CAAC5H,MAAOkP,EAAS5H,SAC/CK,EAACuP,GAAa,CAAA5P,SACVK,EAACmN,GAAa,CAAA,QAKlC,EAEAoD,GAAcpP,UAAY,CACtBrF,IAAKpB,EAAUzJ,OACfsW,SAAU7M,EAAUzJ","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,14,17]}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../node_modules/prop-types/node_modules/react-is/index.js","../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../node_modules/object-assign/index.js","../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../node_modules/prop-types/lib/has.js","../../node_modules/prop-types/checkPropTypes.js","../../node_modules/prop-types/factoryWithTypeCheckers.js","../../node_modules/prop-types/factoryWithThrowingShims.js","../../node_modules/prop-types/index.js","../../src/components/LayoutManager/Controller/LAYOUT_WORKER_PROTOCOL.js","../../src/components/LayoutManager/Controller/TRANSFORMATION_TYPES.js","../../src/components/LayoutManager/Controller/LayoutController.js","../../src/components/LayoutManager/Providers/LayoutProvider.js","../../node_modules/style-inject/dist/style-inject.es.js","../../src/components/LayoutManager/Components/HandleBar/HandleBar.jsx","../../src/components/LayoutManager/Providers/ComponentRegistryContext.js","../../node_modules/react-bootstrap-icons/dist/icons/x-lg.js","../../src/components/LayoutManager/Components/LazyLoader/MenuBar/MenuBar.js","../../src/components/LayoutManager/Components/LazyLoader/Tabs/Tabs.js","../../src/components/LayoutManager/Components/LazyLoader/LazyLoader.js","../../src/components/LayoutManager/Components/Container/Container.jsx","../../src/components/LayoutManager/Controller/LayoutEventController.js","../../src/components/LayoutManager/Providers/LayoutEventProvider.js","../../src/components/LayoutManager/Components/RootContainer/DragController.js","../../src/components/LayoutManager/Components/RootContainer/RootContainer.jsx","../../src/components/LayoutManager/Providers/ModalProvider.js","../../src/components/LayoutManager/LayoutManager.jsx"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar has = require('./lib/has');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<<anonymous>>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bigint: createPrimitiveTypeChecker('bigint'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message, data) {\n this.message = message;\n this.data = data && typeof data === 'object' ? data: {};\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n {expectedType: expectedType}\n );\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var expectedTypes = [];\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n if (checkerResult == null) {\n return null;\n }\n if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n expectedTypes.push(checkerResult.data.expectedType);\n }\n }\n var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function invalidValidatorError(componentName, location, propFullName, key, type) {\n return new PropTypeError(\n (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n );\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (has(shapeTypes, key) && typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","let LAYOUT_WORKER_PROTOCOL = {\n INITIALIZE: 1,\n INITIALIZE_FLEXBOX: 2,\n APPLY_SIZES: 3,\n ERROR: 4,\n TRANSFORMATIONS: 5,\n MOVE_HANDLE_BAR: 6,\n INVOKE_ACTION: 7,\n};\nLAYOUT_WORKER_PROTOCOL = Object.freeze(LAYOUT_WORKER_PROTOCOL);\n\nexport default LAYOUT_WORKER_PROTOCOL;\n","let TRANSFORMATION_TYPES = {\n UPDATE_SIZE: 1\n};\nTRANSFORMATION_TYPES = Object.freeze(TRANSFORMATION_TYPES);\n\nexport default TRANSFORMATION_TYPES;\n","import LAYOUT_WORKER_PROTOCOL from \"./LAYOUT_WORKER_PROTOCOL\";\nimport TRANSFORMATION_TYPES from \"./TRANSFORMATION_TYPES\";\n\n/**\n * This controller is responsible for managing the layout of the application.\n * - It will handle the registration and unregistration of containers.\n * - It will handle the layout changes and notify the worker to process the layout changes.\n * - It will update the container sizes with the updated values calculated by the worker.\n * \n * @class LayoutController\n */\nexport class LayoutController {\n\n /** \n * Constructor\n * \n * @param {Object} ldf - Layout Definition JSON object\n */\n constructor(ldf) {\n this.containers = {};\n this.containerRefs = {};\n this.ldf = ldf;\n this.numberOfContainers = 0;\n this.registeredContainers = 0;\n this.layoutLoaded = false;\n\n this.numberOfContainers = this.ldf.containers ? Object.keys(this.ldf.containers).length: 0;\n this.worker = null; \n }\n\n /**\n * Start the worker.\n */\n startWorker() {\n try {\n this.worker = new Worker(\n new URL('./Worker/LayoutWorker.js', import.meta.url),\n { type: 'module' }\n );\n this.worker.onmessage = this.handleWorkerMessage.bind(this);\n this.worker.onerror = (error) => console.error('Worker error:', error);\n this.sendToWorker(LAYOUT_WORKER_PROTOCOL.INITIALIZE, {ldf: this.ldf})\n \n } catch (error) {\n console.error('Failed to create worker:', error);\n }\n }\n\n /**\n * Sends message to worker with the provided arguments.\n * @param {Number} code \n * @param {Object} args \n */\n sendToWorker(code, args) {\n if (!this.worker) {\n this.startWorker();\n }\n this.worker.postMessage({\n code:code,\n args: args\n });\n }\n\n /**\n * Allows containers to register themselves with the controller.\n * @param {String} id \n * @param {Object} containerApi \n * @param {HTMLElement} containerRef \n */\n registerContainer(id, containerApi, containerRef) { \n if (!(id in this.containers)) {\n this.registeredContainers += 1\n }\n \n this.containers[id] = containerApi;\n this.containerRefs[id] = containerRef;\n\n console.log(`Registered container with id: ${id} `);\n\n if (this.registeredContainers === this.numberOfContainers && !this.layoutLoaded) {\n console.log(\"All containers registered, layout is ready.\");\n this.sendToWorker(LAYOUT_WORKER_PROTOCOL.INITIALIZE_FLEXBOX);\n }\n }\n \n /**\n * Allows containers to unregister themselves with the controller.\n * @param {String} id \n */\n unregisterContainer(id) {\n delete this.containers[id];\n }\n\n /**\n * This function is called when the root container is resized.\n * It will notify the worker to process the layout changes.\n */\n handleRootResize() { \n if (!this.layoutLoaded) return;\n // console.log(\"Root container resized to:\", width, height);\n const sizes = {};\n for (const id in this.containerRefs) {\n if (this.containerRefs.hasOwnProperty(id)) {\n const boundingRect = this.containerRefs[id].getBoundingClientRect();\n sizes[id] = {\n width: boundingRect.width, \n height: boundingRect.height\n };\n }\n } \n this.sendToWorker(\n LAYOUT_WORKER_PROTOCOL.APPLY_SIZES, \n { sizes: sizes }\n ); \n }\n\n\n /**\n * Move handle bar is called by the handle bar component with the\n * metadata about its parent and the siblings being resized. This\n * information is parsed and passed to the layout editor to enforce\n * the layout rules.\n * @param {Object} metadata \n */\n moveHandleBar(metadata) {\n let sizes = {};\n const containerIds = [metadata.parent, metadata.sibling1, metadata.sibling2];\n for (const containerId of containerIds) {\n let boundingRect = this.containerRefs[containerId].getBoundingClientRect();\n sizes[containerId] = {\n width: boundingRect.width, \n height: boundingRect.height\n };\n }\n\n metadata.sizes = sizes; \n this.sendToWorker(\n LAYOUT_WORKER_PROTOCOL.MOVE_HANDLE_BAR, \n { \n metadata: metadata\n }\n );\n\n // TODO: This is temporary, after handle bar move, the layout rules are\n // applied to react to new container sizes. This can be done more efficiently\n // because we only need to react the containers that were changed. This calculates\n // the entire layout.\n this.handleRootResize();\n }\n\n /**\n * Apply the given transformations\n * @param {Object} transformations \n * @param {Object} isInitial \n */\n applyTransformations (transformations, isInitial) {\n requestAnimationFrame(() => {\n for (const transformation of transformations) {\n switch (transformation.type) {\n case TRANSFORMATION_TYPES.UPDATE_SIZE:\n this.containers[transformation.id].current.updateStyles(\n transformation.args.style\n );\n break;\n case TRANSFORMATION_TYPES.REMOVE_NODE:\n break;\n default:\n console.warn(\"Unknown transformation was requested.\");\n break;\n }\n };\n if (this.layoutLoaded) {\n // After the initial transformations have been applied, we can hide\n // the loading screen for the root container.\n this.containers[this.ldf.layoutRoot].current.hideLoadingScreen();\n }\n if (isInitial) {\n this.layoutLoaded = true;\n // Call root resize to apply the layout rules after initial transformations\n // are applied, this applies the layout rules to hide the containers.\n this.handleRootResize();\n }\n });\n };\n\n /**\n * Handles messages from worker\n * @param {Object} event \n */\n handleWorkerMessage(event) {\n let transformations;\n switch(event.data.type) {\n case LAYOUT_WORKER_PROTOCOL.INITIALIZE_FLEXBOX:\n transformations = event.data.data;\n this.applyTransformations(transformations, true);\n break;\n case LAYOUT_WORKER_PROTOCOL.TRANSFORMATIONS:\n transformations = event.data.data;\n this.applyTransformations(transformations, false);\n break;\n case LAYOUT_WORKER_PROTOCOL.ERROR:\n console.error(\"Error from worker:\", event.data);\n break;\n default:\n break;\n }\n }\n\n /**\n * Invoke a specific action on a container given the id.\n */\n invokeAction({id, action, args}) {\n this.sendToWorker(\n LAYOUT_WORKER_PROTOCOL.INVOKE_ACTION, \n { \n id: id,\n action: action,\n args: args\n }\n );\n }\n\n /**\n * Performs cleanup when the controller is destroyed.\n */\n destroy() {\n if (this.worker) {\n this.worker.terminate();\n this.worker = null;\n }\n }\n}","import React, { createContext, useContext, useEffect, useMemo } from 'react';\nimport { LayoutController } from \"../Controller/LayoutController\";\nimport PropTypes from 'prop-types';\n\nconst LayoutContext = createContext(null);\n\n/**\n * A provider to expose the controller to all the children.\n * @param {Object} props\n * @param {Object} props.layout - Layout definition JSON object\n * @param {React.ReactNode} props.children - React children to render\n * @returns {React.ReactElement}\n */\nexport function LayoutControllerProvider({ layout, children }) {\n \n const controller = useMemo( () => {\n return new LayoutController(layout);\n }, [layout]);\n\n useEffect(() => {\n return () => {\n controller.destroy();\n }\n }, [controller]);\n\n return (\n <LayoutContext.Provider value={controller}>\n {children}\n </LayoutContext.Provider>\n )\n}\n\nLayoutControllerProvider.propTypes = {\n layout: PropTypes.object.isRequired,\n children: PropTypes.node.isRequired\n}\n\n/**\n * A hook to access the controller within containers.\n * @returns {Object}\n */\nexport function useLayoutController() {\n const context = useContext(LayoutContext);\n if (!context) {\n throw new Error(\"useLayoutController must be used within a LayoutControllerProvider\")\n }\n return context;\n}","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","// @ts-nocheck\nimport React, { useEffect, useState, useRef, useCallback } from \"react\";\nimport PropTypes from 'prop-types';\nimport { useLayoutController } from \"../../Providers/LayoutProvider\";\n\nimport \"./HandleBar.scss\";\n\n/**\n * \n */\nexport const HandleBar = ({orientation, parent, sibling1, sibling2}) => {\n\n const controller = useLayoutController();\n const dragStartInfo = useRef(null)\n const handleRef = useRef(null);\n const timerRef = useRef(null);\n \n const MIN_PANEL_SIZE = 50;\n\n /**\n * This function saves the relevant info on mouse down.\n * It does the following:\n * - Determines the dynamic prop being modified (width or height)\n * - Determines the mouse down property to track (clientY or clientX)\n * - Gets the references to the sibling elements\n * - Gets the sibling sizes from the layout\n * - Gets the sibling sizes from the layout reference\n * - Saves the information in drag start info ref for access\n * @param {MouseEvent} e \n */\n const handleMouseDown = (e) => {\n e.preventDefault();\n e.stopPropagation();\n document.addEventListener(\"mousemove\", handleMouseMove);\n document.addEventListener(\"mouseup\", handleMouseUp);\n\n let downKey, propKey, hoverClass;\n if (orientation === \"horizontal\") {\n downKey = \"clientY\";\n propKey = \"height\";\n hoverClass = \"handleBarHorizontalHover\";\n } else if (orientation === \"vertical\"){\n downKey = \"clientX\";\n propKey = \"width\";\n hoverClass = \"handleBarVerticalHover\";\n }\n\n const parentRef = controller.containerRefs[parent];\n const sibling1Ref = controller.containerRefs[sibling1];\n const sibling2Ref = controller.containerRefs[sibling2];\n\n // Get the min, max sizes of siblings 1 and 2\n let sibling1LayoutConfig, sibling2LayoutConfig;\n const parentContainer = controller.ldf.containers[parent];\n for (let i = 0; i < parentContainer.children.length; i++) {\n if (parentContainer.children[i].containerId === sibling1) {\n sibling1LayoutConfig = parentContainer.children[i].size;\n } else if (parentContainer.children[i].containerId === sibling2) {\n sibling2LayoutConfig = parentContainer.children[i].size;\n }\n }\n\n dragStartInfo.current = {\n \"downValueY\": e[downKey],\n \"hoverClass\": hoverClass,\n \"downKey\": downKey,\n \"propKey\": propKey,\n \"parentSize\": parentRef.getBoundingClientRect()[propKey],\n \"parentRef\": parentRef,\n \"sibling1Ref\": sibling1Ref,\n \"sibling2Ref\": sibling2Ref,\n \"sibling1LayoutConfig\": sibling1LayoutConfig,\n \"sibling2LayoutConfig\": sibling2LayoutConfig,\n \"sibling1Size\": sibling1Ref.getBoundingClientRect()[propKey],\n \"sibling2Size\": sibling2Ref.getBoundingClientRect()[propKey],\n }\n \n handleRef.current.classList.add(hoverClass);\n }\n\n function getRelativeMousePosition(event, parentContainer) {\n const parentBounds = parentContainer.getBoundingClientRect();\n const relativeX = event.clientX - parentBounds.left;\n const relativeY = event.clientY - parentBounds.top;\n return { x: relativeX, y: relativeY };\n }\n\n /**\n * This function is called when the mouse is being dragged and \n * it uses the delta from the starting down point to calculate\n * the new sizes (width or height). \n * @param {Event} e \n * @returns \n */\n const handleMouseMove = (e) => {\n if (!dragStartInfo.current) return;\n e.preventDefault();\n e.stopPropagation();\n\n const startInfo = dragStartInfo.current;\n\n // Use delta from starting down point to calculate new heights\n const delta = e[startInfo.downKey] - startInfo.downValueY;\n const newSibling1Size = startInfo.sibling1Size + delta;\n const newSibling2Size = startInfo.sibling2Size - delta;\n\n clearTimeout(timerRef.current);\n\n timerRef.current = setTimeout(() => {\n // Resize here\n controller.moveHandleBar({\n handle: getRelativeMousePosition(e, startInfo.parentRef),\n parent: parent,\n sibling1: sibling1,\n sibling2: sibling2\n });\n }, 4);\n \n // Don't update container sizes we are past min or max values.\n const sibling1SizeKeys = Object.keys(startInfo.sibling1LayoutConfig);\n if (sibling1SizeKeys.includes(\"min\") && newSibling1Size <= startInfo.sibling1LayoutConfig.min.value ||\n sibling1SizeKeys.includes(\"max\") && newSibling1Size >= startInfo.sibling1LayoutConfig.max.value) {\n return;\n }\n \n // Don't update container sizes we are past min or max values.\n const sibling2SizeKeys = Object.keys(startInfo.sibling2LayoutConfig);\n if (sibling2SizeKeys.includes(\"min\") && newSibling2Size <= startInfo.sibling2LayoutConfig.min.value ||\n sibling2SizeKeys.includes(\"max\") && newSibling2Size >= startInfo.sibling2LayoutConfig.max.value) {\n return;\n }\n\n // If either of the containers are less than 50px, then don't update size.\n if (newSibling1Size < MIN_PANEL_SIZE || newSibling2Size < MIN_PANEL_SIZE) {\n return;\n }\n\n // If both siblings are type fill, then set sizes.\n const sibling1Type = startInfo.sibling1LayoutConfig.initial.type;\n const sibling2Type = startInfo.sibling2LayoutConfig.initial.type;\n if (sibling1Type === \"fill\" && sibling2Type === \"fill\") {\n controller.containerRefs[sibling1].style[startInfo.propKey] = newSibling1Size + \"px\";\n controller.containerRefs[sibling2].style[startInfo.propKey] = newSibling2Size + \"px\";\n return;\n }\n \n // Don't update fill type siblings, if one of the siblings isn't fill type.\n if (!(sibling1Type === \"fill\")) {\n controller.containerRefs[sibling1].style[startInfo.propKey] = newSibling1Size + \"px\";\n }\n if (!(sibling2Type === \"fill\")) {\n controller.containerRefs[sibling2].style[startInfo.propKey] = newSibling2Size + \"px\";\n }\n }\n\n /**\n * Perform cleanup after drag event has finished.\n * @param {Event} e \n */\n const handleMouseUp = (e) => {\n e.preventDefault();\n e.stopPropagation();\n document.removeEventListener(\"mousemove\", handleMouseMove);\n document.removeEventListener(\"mouseup\", handleMouseUp);\n clearTimeout(timerRef.current); \n if (handleRef.current && dragStartInfo.current) {\n handleRef.current.classList.remove(dragStartInfo.current.hoverClass);\n }\n dragStartInfo.current = null;\n }\n\n\n useEffect(() => {\n return () => { \n document.removeEventListener(\"mousemove\", handleMouseMove);\n document.removeEventListener(\"mouseup\", handleMouseUp);\n if (timerRef.current) {\n clearTimeout(timerRef.current);\n timerRef.current = null;\n }\n }\n }, []);\n\n return (\n <React.Fragment > \n {\n orientation === \"horizontal\"?\n <div onMouseDown={(e) => handleMouseDown(e)} className=\"handleBarHorizontalContainer\">\n <div ref={handleRef} className=\"handleBarHorizontal\"></div>\n </div>:\n orientation === \"vertical\"?\n <div onMouseDown={(e) => handleMouseDown(e)} className=\"handleBarVerticalContainer\">\n <div ref={handleRef} className=\"handleBarVertical\"></div>\n </div>:\n null\n }\n </React.Fragment>\n );\n};\n\nHandleBar.propTypes = {\n orientation: PropTypes.string,\n sibling1: PropTypes.string,\n sibling2: PropTypes.string,\n parent: PropTypes.string\n}","import {createContext} from \"react\";\n\n// This context stores the registry for the components.\nconst ComponentRegistryContext = createContext({});\nComponentRegistryContext.displayName = 'ComponentRegistryContext';\n\nexport default ComponentRegistryContext;\n","var _excluded = [\"color\", \"size\", \"title\", \"className\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nimport React, { forwardRef } from 'react';\nimport PropTypes from 'prop-types';\nvar XLg = /*#__PURE__*/forwardRef(function (_ref, ref) {\n var _ref$color = _ref.color,\n color = _ref$color === void 0 ? 'currentColor' : _ref$color,\n _ref$size = _ref.size,\n size = _ref$size === void 0 ? '1em' : _ref$size,\n _ref$title = _ref.title,\n title = _ref$title === void 0 ? null : _ref$title,\n _ref$className = _ref.className,\n className = _ref$className === void 0 ? '' : _ref$className,\n rest = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n ref: ref,\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 16 16\",\n width: size,\n height: size,\n fill: color,\n className: ['bi', 'bi-x-lg', className].filter(Boolean).join(' ')\n }, rest), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z\"\n }));\n});\nXLg.propTypes = {\n color: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n title: PropTypes.string,\n className: PropTypes.string\n};\nexport default XLg;","import PropTypes from \"prop-types\";\n\nimport \"./MenuBar.scss\";\n\nimport { XLg } from \"react-bootstrap-icons\";\n\nimport { useLayoutController } from \"../../../Providers/LayoutProvider\";\n\n/**\n * MenuBar component for the containers.\n *\n * @param {Object} node\n */\nexport const MenuBar = ({ node }) => {\n const controller = useLayoutController();\n\n const closeContainer = () => {\n controller.invokeAction({\n id: node?.menuBar?.closeContainerId,\n action: \"close\",\n args: {},\n });\n };\n\n return (\n <div className=\"titleContainer\">\n <div className=\"title\">{node?.menuBar?.title}</div>\n {\n node?.menuBar?.showClose &&\n <div onClick={closeContainer} className=\"close\">\n <XLg />\n </div>\n }\n </div>\n );\n};\n\nMenuBar.propTypes = {\n node : PropTypes.object,\n};\n","import PropTypes from 'prop-types';\n\nimport {XLg} from \"react-bootstrap-icons\";\nimport \"./Tabs.scss\"\n\nimport { useLayoutController } from \"../../../Providers/LayoutProvider\";\n\n/**\n * Tabs component for the containers.\n * \n * @param {Object} node\n */\nexport const Tabs = ({node, onTabClick}) => {\n const controller = useLayoutController();\n\n const closeContainer = () => {\n controller.invokeAction({\n id: node?.tabsBar?.closeContainerId,\n action: \"close\",\n args: {},\n });\n };\n\n return (\n <div className=\"container-tabs-row\">\n <div className=\"container-tabs\">\n {node?.tabsBar?.tabs?.map((tab, index) => (\n <div \n key= {tab.name + String(index)}\n style={{ borderBottom: tab.selected ? \"solid 1px white\" : \"none\" }}\n onClick={(e) => onTabClick(tab)} \n className=\"container-tab\">\n {tab.name}\n </div>\n ))}\n </div>\n\n {\n node?.tabsBar?.showClose && \n <div className=\"container-close\">\n <XLg onClick={closeContainer}/>\n </div>\n }\n </div>\n );\n}\n\nTabs.propTypes = {\n node: PropTypes.object,\n onTabClick: PropTypes.func\n}","import React, { lazy, useMemo, Suspense, useContext, useEffect, useState } from \"react\";\nimport PropTypes from 'prop-types';\nimport ComponentRegistryContext from \"../../Providers/ComponentRegistryContext\";\nimport { MenuBar } from \"./MenuBar/MenuBar\";\nimport { Tabs } from \"./Tabs/Tabs\";\n\nimport \"./LazyLoader.scss\"\n\n/**\n * LazyLoader component that renders a component\n * specified in the ldf file.\n * \n * @param {Object} content\n */\nexport const LazyLoader = ({node}) => {\n const registry = useContext(ComponentRegistryContext);\n const [showTitle, setShowTitle] = useState(false);\n const [showTab, setShowTab] = useState(false);\n\n const [lazyContainerTop, setLazyContainerTop] = useState(0);\n const [tabsTop, setTabsTop] = useState(0);\n const [selectedComponent, setSelectedComponent] = useState(\"\");\n\n // Lazy load the component when the selected component changes.\n const LazyComponent = useMemo(() => {\n if (registry && selectedComponent in registry) {\n return lazy(registry[selectedComponent]);\n }\n }, [registry, selectedComponent]);\n\n /**\n * Note: I am setting the top of the absolute position\n * of the containers based on if the title and tabs are\n * shown. This is a temporary implementation, I will be\n * revisiting this and formally implementing it after.\n */\n useEffect(() => {\n let _lazyContainerTop = 0;\n let _tabsTop = 0;\n if (\"menuBar\" in node) {\n setShowTitle(true);\n _tabsTop += 35;\n _lazyContainerTop += 35;\n }\n if (\"tabsBar\" in node) {\n setShowTab(true);\n _lazyContainerTop += 35;\n selectTab(node.tabsBar.tabs[0]);\n } else {\n setSelectedComponent(node.component);\n }\n setLazyContainerTop(_lazyContainerTop)\n setTabsTop(_tabsTop);\n }, [node]);\n\n /**\n * Selects the provided tab.\n * @param {Object} selectedTab \n */\n const selectTab = (selectedTab) => {\n node.tabsBar.tabs.forEach((tab) => {\n if (tab === selectedTab) {\n tab.selected = true;\n setSelectedComponent(tab.component);\n } else {\n tab.selected = false;\n }\n });\n }\n\n return (\n <div className=\"absoluteContainer\">\n <div className=\"contentContainer\">\n {\n showTitle && \n <div className=\"menuContainer\">\n <MenuBar node={node}/>\n </div>\n }\n {\n showTab && \n <div className=\"tabsContainer\" style={{ top: `${tabsTop}px`}}>\n <Tabs node={node} onTabClick={selectTab}/>\n </div>\n }\n <div className=\"lazycontainer\" style={{ top: `${lazyContainerTop}px`}}>\n <Suspense fallback={<div>Loading...</div>}>\n {LazyComponent && <LazyComponent />}\n </Suspense>\n </div>\n </div>\n </div>\n );\n}\n\nLazyLoader.propTypes = {\n content: PropTypes.object,\n}","import React, { useEffect, useState, useRef, useLayoutEffect, useCallback, Children } from \"react\";\nimport PropTypes from 'prop-types';\nimport { useLayoutController } from \"../../Providers/LayoutProvider\";\nimport { HandleBar } from \"../HandleBar/HandleBar\";\nimport \"./Container.scss\"\nimport { LazyLoader } from \"../LazyLoader/LazyLoader\";\n/**\n * Renders the node and creates containers for its children.\n * Also registers itself with the controller to allow the controller\n * to set the size of the container and to apply transformations.\n * \n * @param {Object} node The node in the layout tree.\n * @return {React.ReactElement}\n */\nexport const Container = ({node}) => {\n\n const controller = useLayoutController();\n const containerRef = useRef(null); \n const parentOrientationRef = useRef(null);\n const [childElements, setChildElements] = useState(null);\n \n /**\n * Renders child containers recursively.\n */\n const processContainer = useCallback((node) => {\n const childElements = []; \n for (let index = 0; index < node.children.length; index++) {\n const childNode = node.children[index];\n\n if (childNode.type === \"container\") {\n const child = controller.ldf.containers[node.children[index].containerId];\n child.parent = node;\n childElements.push(\n <Container \n key={index} \n meta={node.children[index]} \n id={child.id} \n node={child}/>\n );\n } else if (childNode.type === \"handleBar\") {\n if (node.orientation === \"horizontal\") {\n childElements.push(\n <HandleBar \n key={index}\n orientation=\"vertical\" \n parent={node.id}\n sibling1={childNode.sibling1}\n sibling2={childNode.sibling2}\n />\n );\n } else if (node.orientation === \"vertical\") {\n childElements.push(\n <HandleBar \n key={index}\n orientation=\"horizontal\" \n parent={node.id}\n sibling1={childNode.sibling1}\n sibling2={childNode.sibling2}\n />\n );\n }\n }\n };\n return childElements;\n },[controller]);\n\n // Create the container API that will be used by the controller.\n const containerAPI = useRef({});\n containerAPI.current = {\n /**\n * Applies the provided styles (width, height, flex etc.)\n * @param {Object} styles\n */\n updateStyles: (styles) => {\n const className = \"hiding-\" + parentOrientationRef.current;\n for (const key in styles) {\n if (key === \"display\" && styles[key] === \"none\") {\n if (containerRef.current.classList.contains(className)) return;\n containerRef.current.classList.add(className);\n } else if (key === \"display\" && styles[key] === \"flex\") {\n if (!containerRef.current.classList.contains(className)) return;\n containerRef.current.classList.remove(className); \n } else { \n containerRef.current.style[key] = styles[key];\n }\n }\n }\n };\n\n // Render child containers and regsiter API with the controller.\n useLayoutEffect(() => {\n if (node && controller && containerRef.current) {\n parentOrientationRef.current = node.parent.orientation;\n const hasChildren = node.children && node.children.length > 0\n\n if (hasChildren) { \n // Set flex properties based on orientation for children \n if (node.orientation === \"horizontal\") {\n containerRef.current.style.display = \"flex\";\n containerRef.current.style.flexDirection = \"row\";\n containerRef.current.style.width = \"100%\";\n } else if (node.orientation === \"vertical\") {\n containerRef.current.style.display = \"flex\";\n containerRef.current.style.flexDirection = \"column\";\n containerRef.current.style.height = \"100%\";\n } else {\n console.warn(\"Unknown orientation:\", node.orientation);\n }\n } else {\n // No children, so its a leaf node, apply background if any.\n if (node.background) {\n containerRef.current.style.background = node.background;\n } else {\n containerRef.current.style.background = \"transparent\";\n }\n }\n \n setChildElements(hasChildren?processContainer(node):<LazyLoader node={node} />);\n \n controller.registerContainer(node.id, containerAPI, containerRef.current);\n return () => {\n controller.unregisterContainer(node.id);\n }\n }\n }, [node, controller, processContainer]);\n\n return (\n <div ref={containerRef} className={\"relative-container\"}>\n {childElements}\n </div>\n );\n}\n\nContainer.propTypes = {\n node: PropTypes.object,\n}","/**\n * Layout Event Controller used to subscribe to events\n * and publish events.\n */\nclass LayoutEventController {\n\n constructor() {\n this.subscribers = new Map();\n }\n\n /**\n * Subscribe to event type and provide handler\n * @param {String} type \n * @param {Function} handler \n * @returns \n */\n subscribe(type, handler) {\n // Create set for type if it doesn't exist\n if (!this.subscribers.has(type)) {\n this.subscribers.set(type, new Set());\n }\n\n // Add handler to type set\n const handlers = this.subscribers.get(type);\n handlers.add(handler);\n\n // Return unsubscribe function \n const unsubscribe = () => {\n handlers.delete(handler);\n if (handlers.size === 0) {\n this.subscribers.delete(type);\n }\n }\n\n return unsubscribe;\n }\n\n /**\n * Publishes the event to the subscribers.\n * @param {Object} event \n * @returns \n */\n publish(event) {\n const handlers = this.subscribers.get(event.type);\n if (!handlers) return;\n\n for (const handler of handlers) {\n handler(event);\n }\n }\n\n}\n\nexport default LayoutEventController;\n\n","import React, { createContext, useContext, useEffect, useMemo, useRef } from \"react\";\nimport LayoutEventController from \"../Controller/LayoutEventController\";\n\nconst LayoutEventContext = createContext(null);\n\nexport function LayoutEventProvider({ children }) {\n const controller = useMemo(() => new LayoutEventController(), []);\n\n return (\n <LayoutEventContext.Provider value={controller}>\n {children}\n </LayoutEventContext.Provider>\n );\n}\n\n/**\n * Hook to publish an event.\n * @returns \n */\nexport function useLayoutEventPublisher() {\n const controller = useContext(LayoutEventContext);\n\n if (!controller) {\n throw new Error(\"useLayoutPublisher must be used within LayoutEventProvider\");\n }\n\n // Return publish that is bound to the controller\n return controller.publish.bind(controller);\n}\n\n/**\n * Hook to subscribe to event.\n * @param {String} type \n * @param {Function} handler \n */\nexport function useLayoutEventSubscription(type, handler) {\n const controller = useContext(LayoutEventContext);\n const handlerRef = useRef(handler);\n\n // Handler is saved in ref and passed into the subscription, this causes\n // the publisher to invoke the handler and notify the subscriber\n handlerRef.current = handler;\n\n useEffect(() => {\n if (!controller) {\n throw new Error(\"useLayoutSubscription must be used within LayoutEventProvider\");\n }\n\n // controller.subscribe returns unsubscribe function, so it is called automatically\n // when the component is unmounted\n return controller.subscribe(type, (event) => {\n handlerRef.current(event);\n });\n }, [controller, type]);\n}","import { useMemo } from \"react\";\n\nimport { useLayoutEventPublisher } from \"../../Providers/LayoutEventProvider\";\n\n/**\n * Drag controller exposed through the hook. It exposes\n * callback functions which are connected to the dnd context. \n * \n * The controller is also initialized with the publish function\n * exposed by the useLayoutEventPublisher so it can notify\n * subscribers of any relevant events.\n */\nclass DragController {\n constructor({publish}) {\n this.publish = publish;\n this.resetDragState();\n }\n\n resetDragState = () => {\n this.dragState = {\n activeId: null,\n activeData: null,\n overId: null,\n overData: null,\n isDragging: false\n }\n }\n\n onDragStart = (event) => {\n this.dragState = {\n activeId: event.active?.id ?? null,\n activeData: event.active?.data?.current ?? null,\n overId: null,\n overData: null,\n isDragging: true\n };\n }\n\n onDragOver = (event) => {\n this.dragState.overId = event.over?.id ?? null;\n this.dragState.overData = event.over?.data?.current ?? null;\n }\n\n onDragEnd = (event) => {\n this.publish({\n type: \"drag:drop\",\n payload: {\n activeId: event.active?.id ?? null,\n activeData: event.active?.data?.current ?? null,\n overId: event.over?.id ?? null,\n overData: event.over?.data?.current ?? null,\n },\n source: \"drag-provider\",\n })\n this.resetDragState();\n }\n\n onDragCancel = (event) => {\n this.resetDragState();\n }\n\n isDragging = () => {\n return this.dragState.isDragging;\n }\n\n getDragPreview = () => {\n return this.dragState?.activeData?.preview;\n }\n}\n\nconst useDragEventController = function() {\n const publish = useLayoutEventPublisher();\n\n return useMemo(() => {\n return new DragController({publish});\n }, [publish]);\n}\n\nexport default useDragEventController;","import React, { useEffect, useLayoutEffect, useState, useRef, useCallback, useContext } from \"react\";\nimport PropTypes from 'prop-types';\nimport { Container } from \"../Container/Container\";\nimport { HandleBar } from \"../HandleBar/HandleBar\";\nimport { useLayoutController } from \"../../Providers/LayoutProvider\";\nimport {\n DndContext,\n closestCenter,\n PointerSensor,\n useSensor,\n useSensors\n} from \"@dnd-kit/core\";\n\nimport useDragEventController from \"./DragController\";\nimport \"./RootContainer.scss\"\n\n\n/**\n * Root node for the layout tree. This component will start \n * rendering the tree and it will also watch for changes in the\n * root container sizes to process layout changes.\n * \n * @return {React.ReactElement}\n */\nexport const RootContainer = () => {\n const layoutController = useLayoutController();\n const dragController = useDragEventController();\n\n const rootRef = useRef(null);\n const timerRef = useRef(null);\n const resizingRef = useRef(false);\n const loadingOverlayRef = useRef(null);\n const [showLoadingScreen, setShowLoadingScreen] = useState(true);\n\n // Create the container API that will be used by the controller.\n const rootContainerAPI = useRef({});\n rootContainerAPI.current = {\n hideLoadingScreen: () => {\n setShowLoadingScreen(false);\n }\n };\n\n const [childElements, setChildElements] = useState(null);\n\n /**\n * Renders child containers recursively.\n */\n const processContainer = useCallback((node) => {\n const childElements = [];\n for (let index = 0; index < node.children.length; index++) {\n const childNode = node.children[index];\n\n if (childNode.type === \"container\") {\n const child = layoutController.ldf.containers[node.children[index].containerId];\n child.parent = node;\n childElements.push(\n <Container key={index} meta={node.children[index]} id={child.id} node={child} />\n );\n } else if (childNode.type === \"handleBar\") {\n if (node.orientation === \"horizontal\") {\n childElements.push(\n <HandleBar\n key={index}\n orientation=\"vertical\"\n parent={node.id}\n sibling1={childNode.sibling1}\n sibling2={childNode.sibling2}\n />\n );\n } else if (node.orientation === \"vertical\") {\n childElements.push(\n <HandleBar\n key={index}\n orientation=\"horizontal\"\n parent={node.id}\n sibling1={childNode.sibling1}\n sibling2={childNode.sibling2}\n />\n );\n }\n }\n };\n return childElements;\n }, [layoutController]);\n\n\n useLayoutEffect(() => {\n if (layoutController) {\n const rootNode = layoutController.ldf.containers[layoutController.ldf.layoutRoot];\n const hasChildren = rootNode.children && rootNode.children.length > 0\n layoutController.registerContainer(rootNode.id, rootContainerAPI, rootRef.current);\n\n if (hasChildren) {\n if (rootNode.orientation === \"horizontal\") {\n rootRef.current.style.flexDirection = \"row\";\n } else if (rootNode.orientation === \"vertical\") {\n rootRef.current.style.flexDirection = \"column\";\n }\n }\n\n setChildElements(hasChildren ? processContainer(rootNode) : null);\n\n // Create resize observer to monitor changes in the root container size.\n const observer = new ResizeObserver((entries) => {\n\n if (!resizingRef.current) resizingRef.current = true;\n\n for (let entry of entries) {\n const { width, height } = entry.contentRect;\n\n clearTimeout(timerRef.current);\n\n timerRef.current = setTimeout(() => {\n resizingRef.current = false;\n layoutController.handleRootResize(width, height);\n }, 1);\n }\n });\n\n observer.observe(rootRef.current);\n\n return () => {\n layoutController.unregisterContainer(layoutController.ldf.layoutRoot);\n observer.disconnect();\n }\n }\n }, [layoutController]);\n\n const sensors = useSensors(\n useSensor(PointerSensor, {\n activationConstraint: {\n distance: 8\n }\n })\n );\n\n // Manually track the drag position for smooth overlay\n const [dragPos, setDragPos] = useState({ left: 0, top: 0 });\n useEffect(() => {\n if (!dragController.isDragging()) return;\n const handleMove = (e) => {setDragPos({ left: e.clientX, top: e.clientY })};\n window.addEventListener(\"pointermove\", handleMove);\n return () => {\n window.removeEventListener(\"pointermove\", handleMove);\n };\n }, [dragController.isDragging()]);\n\n return (\n <DndContext sensors={sensors}\n collisionDetection={closestCenter}\n onDragStart={dragController.onDragStart}\n onDragOver={dragController.onDragOver}\n onDragEnd={dragController.onDragEnd}\n onDragCancel={dragController.onDragCancel}>\n \n {showLoadingScreen && <div className=\"loading-overlay\" ref={loadingOverlayRef}>\n <div className=\"loading-bar\">\n <div className=\"loading-bar-fill\"></div>\n </div>\n </div>}\n <div className=\"root-container\">\n <div ref={rootRef} className=\"relative-container\">\n {childElements}\n </div>\n </div>\n\n {dragController.isDragging() && (\n <div className=\"drag-overlay\" style={dragPos}>\n {dragController.getDragPreview()}\n </div>\n )}\n </DndContext>\n );\n}","// @ts-nocheck\nimport React, {\n createContext,\n useCallback,\n useContext,\n useMemo,\n useState,\n useRef\n} from \"react\";\n\nimport { createPortal } from \"react-dom\";\n\nimport {XLg} from \"react-bootstrap-icons\";\n\nconst ModalContext = createContext(null);\n\n/**\n * Modal provider component to manage modals in the application\n * @returns {JSX} The modal provider component\n */\nexport function ModalProvider({ children }) {\n const [modal, setModal] = useState(null);\n const downOnContentRef = useRef(false);\n\n // Open a modal with the given content and title. Returns a function to close the modal.\n const openModal = useCallback(( args ) => {\n const close = () => {\n setModal(null);\n };\n\n const id = `modal-${Date.now()}`;\n setModal({\n id: id,\n title: args.title,\n args: args.args,\n render: args.render,\n close: close,\n });\n\n return { id, close };\n }, []);\n\n // Close the currently open modal\n const closeModal = useCallback(() => {\n setModal(null);\n }, []);\n\n\n // Prevent close when mouse down first happens on content\n // and then dragged onto backdrop\n const clickedBackdrop = (e) => {\n e.stopPropagation()\n if (!downOnContentRef.current) {\n closeModal();\n }\n downOnContentRef.current = false;\n }\n\n const downOnContent = (e) => {\n e.stopPropagation()\n downOnContentRef.current = true;\n }\n\n // Render the modal portal\n // TODO: Add support for different sizes\n const getPortal = () => {\n return createPortal(\n <>\n {modal && (\n <React.Fragment key={modal.id}>\n <div className=\"modal-backdrop\" onClick={clickedBackdrop}>\n <div className=\"modal-content\" onMouseDown={downOnContent}>\n <div className=\"modal-header\">\n <span className=\"title\">{modal.title}</span>\n <XLg className=\"close-button\" onClick={modal.close} />\n </div>\n <div className=\"modal-body\">\n {modal.render({ close: modal.close , args: modal.args })}\n </div>\n </div>\n </div>\n </React.Fragment>\n )}\n </>,\n document.body,\n );\n };\n\n const api = useMemo(\n () => ({\n openModal,\n closeModal,\n }),\n [openModal, closeModal],\n );\n\n return (\n <ModalContext.Provider value={api}>\n {children}\n {getPortal()}\n </ModalContext.Provider>\n );\n}\n\n/**\n * Modal manager hook to access the modal API\n * @return {Object} The modal manager API\n */\nexport function useModalManager() {\n const value = useContext(ModalContext);\n if (!value) {\n throw new Error(\"useModalManager must be used inside ModalProvider\");\n }\n return value;\n}\n","import React, { useEffect, useState, useContext } from \"react\";\nimport PropTypes from 'prop-types';\nimport { RootContainer } from \"./Components/RootContainer/RootContainer\";\nimport ComponentRegistryContext from \"./Providers/ComponentRegistryContext\";\nimport { LayoutControllerProvider } from \"./Providers/LayoutProvider\";\nimport { ModalProvider } from \"./Providers/ModalProvider\";\n\nimport \"./LayoutManager.scss\";\n\n/**\n * Renders the layout specified in the LDF file.\n * @param {Object} props\n * @param {Object} props.ldf - JSON object containing the Layout Definition File (LDF)\n * @param {React.ReactNode} props.registry - An object containing the registered components that will be\n * lazy loaded into the containers.\n * @return {React.ReactElement}\n */\nexport const LayoutManager = ({ldf, registry}) => {\n\n return (\n <LayoutControllerProvider layout={ldf}>\n <ComponentRegistryContext.Provider value={registry}>\n <ModalProvider>\n <RootContainer/>\n </ModalProvider>\n </ComponentRegistryContext.Provider>\n </LayoutControllerProvider> \n );\n}\n\nLayoutManager.propTypes = {\n ldf: PropTypes.object,\n registry: PropTypes.object,\n}"],"names":["process","env","NODE_ENV","reactIsModule","exports","b","Symbol","for","c","d","e","f","g","h","k","l","m","n","p","q","r","t","v","w","x","y","z","a","u","$$typeof","type","A","reactIs_production_min","AsyncMode","ConcurrentMode","ContextConsumer","Element","ForwardRef","Fragment","Lazy","Portal","Profiler","StrictMode","Suspense","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isProfiler","isStrictMode","isSuspense","isValidElementType","typeOf","require$$0","hasSymbol","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_ASYNC_MODE_TYPE","REACT_CONCURRENT_MODE_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_BLOCK_TYPE","REACT_FUNDAMENTAL_TYPE","REACT_RESPONDER_TYPE","REACT_SCOPE_TYPE","object","$$typeofType","ContextProvider","Memo","hasWarnedAboutDeprecatedIsAsyncMode","reactIs_development","console","isPortal","getOwnPropertySymbols","Object","hasOwnProperty","prototype","propIsEnumerable","propertyIsEnumerable","objectAssign","assign","test1","String","getOwnPropertyNames","test2","i","fromCharCode","map","join","test3","split","forEach","letter","keys","err","shouldUseNative","target","source","from","symbols","to","val","TypeError","toObject","s","arguments","length","key","call","ReactPropTypesSecret_1","has","Function","bind","printWarning","ReactPropTypesSecret","loggedTypeFailures","require$$1","text","message","error","Error","checkPropTypes","typeSpecs","values","location","componentName","getStack","typeSpecName","name","ex","stack","resetWarningCache","checkPropTypes_1","ReactIs","require$$2","require$$3","require$$4","emptyFunctionThatReturnsNull","factoryWithTypeCheckers","isValidElement","throwOnDirectAccess","ITERATOR_SYMBOL","iterator","ANONYMOUS","ReactPropTypes","array","createPrimitiveTypeChecker","bigint","bool","func","number","string","symbol","any","createChainableTypeChecker","arrayOf","typeChecker","props","propName","propFullName","PropTypeError","propValue","Array","isArray","getPropType","element","elementType","instanceOf","expectedClass","expectedClassName","constructor","node","isNode","objectOf","propType","oneOf","expectedValues","is","valuesString","JSON","stringify","value","getPreciseType","oneOfType","arrayOfTypeCheckers","checker","getPostfixForTypeWarning","expectedTypes","checkerResult","data","push","expectedType","shape","shapeTypes","invalidValidatorError","exact","allKeys","this","validate","manualPropTypeCallCache","manualPropTypeWarningCount","checkType","isRequired","secret","cacheKey","chainedCheckType","every","iteratorFn","maybeIterable","getIteratorFn","step","entries","next","done","entry","RegExp","isSymbol","Date","PropTypes","emptyFunction","emptyFunctionWithReset","factoryWithThrowingShims","shim","getShim","propTypesModule","LAYOUT_WORKER_PROTOCOL","INITIALIZE","INITIALIZE_FLEXBOX","APPLY_SIZES","ERROR","TRANSFORMATIONS","MOVE_HANDLE_BAR","INVOKE_ACTION","freeze","TRANSFORMATION_TYPES","UPDATE_SIZE","LayoutController","_createClass","ldf","_classCallCheck","containers","containerRefs","numberOfContainers","registeredContainers","layoutLoaded","worker","Worker","URL","url","onmessage","handleWorkerMessage","onerror","sendToWorker","code","args","startWorker","postMessage","id","containerApi","containerRef","log","concat","sizes","boundingRect","getBoundingClientRect","width","height","metadata","_i","_containerIds","parent","sibling1","sibling2","containerId","handleRootResize","transformations","isInitial","_this","requestAnimationFrame","_step","_iterator","_createForOfIteratorHelper","transformation","current","updateStyles","style","REMOVE_NODE","warn","layoutRoot","hideLoadingScreen","event","applyTransformations","_ref","action","terminate","LayoutContext","createContext","LayoutControllerProvider","layout","children","controller","useMemo","useEffect","destroy","_jsx","Provider","useLayoutController","context","useContext","styleInject","css","ref","insertAt","document","head","getElementsByTagName","createElement","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","propTypes","HandleBar","orientation","dragStartInfo","useRef","handleRef","timerRef","handleMouseDown","downKey","propKey","hoverClass","preventDefault","stopPropagation","addEventListener","handleMouseMove","handleMouseUp","sibling1LayoutConfig","sibling2LayoutConfig","parentRef","sibling1Ref","sibling2Ref","parentContainer","size","downValueY","parentSize","sibling1Size","sibling2Size","classList","add","startInfo","delta","newSibling1Size","newSibling2Size","clearTimeout","setTimeout","parentBounds","moveHandleBar","handle","clientX","left","clientY","top","sibling1SizeKeys","includes","min","max","sibling2SizeKeys","sibling1Type","initial","sibling2Type","removeEventListener","remove","React","onMouseDown","className","ComponentRegistryContext","displayName","_excluded","_extends","apply","XLg","forwardRef","_ref$color","color","_ref$size","_ref$title","title","_ref$className","rest","o","indexOf","_objectWithoutPropertiesLoose","_objectWithoutProperties","xmlns","viewBox","fill","filter","Boolean","MenuBar","_node$menuBar2","_node$menuBar3","_jsxs","menuBar","showClose","onClick","_node$menuBar","invokeAction","closeContainerId","Tabs","_node$tabsBar2","_node$tabsBar3","onTabClick","tabsBar","tabs","tab","index","borderBottom","selected","_node$tabsBar","LazyLoader","registry","_useState2","_slicedToArray","useState","showTitle","setShowTitle","_useState4","showTab","setShowTab","_useState6","lazyContainerTop","setLazyContainerTop","_useState8","tabsTop","setTabsTop","_useState0","selectedComponent","setSelectedComponent","LazyComponent","lazy","_lazyContainerTop","_tabsTop","selectTab","component","selectedTab","fallback","content","Container","parentOrientationRef","childElements","setChildElements","processContainer","useCallback","childNode","child","_Container","meta","containerAPI","styles","contains","useLayoutEffect","hasChildren","display","flexDirection","background","registerContainer","unregisterContainer","LayoutEventController","subscribers","Map","handler","set","Set","handlers","get","LayoutEventContext","LayoutEventProvider","useLayoutEventPublisher","publish","useLayoutEventSubscription","handlerRef","subscribe","DragController","_defineProperty","dragState","activeId","activeData","overId","overData","isDragging","_event$active$id","_event$active","_event$active$data$cu","_event$active2","active","_event$over$id","_event$over","_event$over$data$curr","_event$over2","over","_event$active$id2","_event$active3","_event$active$data$cu2","_event$active4","_event$over$id2","_event$over3","_event$over$data$curr2","_event$over4","payload","resetDragState","_this$dragState","preview","RootContainer","layoutController","dragController","rootRef","resizingRef","loadingOverlayRef","showLoadingScreen","setShowLoadingScreen","rootContainerAPI","rootNode","observer","ResizeObserver","_loop","_entry$contentRect","contentRect","observe","disconnect","sensors","useSensors","useSensor","PointerSensor","activationConstraint","distance","dragPos","setDragPos","handleMove","window","DndContext","collisionDetection","closestCenter","onDragStart","onDragOver","onDragEnd","onDragCancel","getDragPreview","ModalContext","ModalProvider","modal","setModal","downOnContentRef","openModal","close","now","render","closeModal","clickedBackdrop","downOnContent","api","createPortal","_Fragment","body","useModalManager","LayoutManager"],"mappings":";;;;;;;;+BAE6B,eAAzBA,QAAQC,IAAIC,SACdC,EAAAC,qCCMW,IAAIC,EAAE,mBAAoBC,QAAQA,OAAOC,IAAIC,EAAEH,EAAEC,OAAOC,IAAI,iBAAiB,MAAME,EAAEJ,EAAEC,OAAOC,IAAI,gBAAgB,MAAMG,EAAEL,EAAEC,OAAOC,IAAI,kBAAkB,MAAMI,EAAEN,EAAEC,OAAOC,IAAI,qBAAqB,MAAMK,EAAEP,EAAEC,OAAOC,IAAI,kBAAkB,MAAMM,EAAER,EAAEC,OAAOC,IAAI,kBAAkB,MAAMO,EAAET,EAAEC,OAAOC,IAAI,iBAAiB,MAAMQ,EAAEV,EAAEC,OAAOC,IAAI,oBAAoB,MAAMS,EAAEX,EA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