@imperium/layout 14.2.0 → 14.5.0

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.
Files changed (35) hide show
  1. package/dist/esm/_virtual/index.js +4 -0
  2. package/dist/esm/_virtual/index.js.map +1 -0
  3. package/dist/esm/_virtual/react-is.development.js +4 -0
  4. package/dist/esm/_virtual/react-is.development.js.map +1 -0
  5. package/dist/esm/_virtual/react-is.production.min.js +4 -0
  6. package/dist/esm/_virtual/react-is.production.min.js.map +1 -0
  7. package/dist/esm/content/createPages.js +48 -15
  8. package/dist/esm/content/createPages.js.map +1 -1
  9. package/dist/esm/content/types.js.map +1 -1
  10. package/dist/esm/external/@babel/runtime/helpers/esm/assertThisInitialized.js +9 -0
  11. package/dist/esm/external/@babel/runtime/helpers/esm/assertThisInitialized.js.map +1 -0
  12. package/dist/esm/external/@babel/runtime/helpers/esm/extends.js +17 -0
  13. package/dist/esm/external/@babel/runtime/helpers/esm/extends.js.map +1 -0
  14. package/dist/esm/external/@babel/runtime/helpers/esm/inheritsLoose.js +10 -0
  15. package/dist/esm/external/@babel/runtime/helpers/esm/inheritsLoose.js.map +1 -0
  16. package/dist/esm/external/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +15 -0
  17. package/dist/esm/external/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
  18. package/dist/esm/external/@babel/runtime/helpers/esm/setPrototypeOf.js +10 -0
  19. package/dist/esm/external/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
  20. package/dist/esm/external/@loadable/component/dist/loadable.esm.js +470 -0
  21. package/dist/esm/external/@loadable/component/dist/loadable.esm.js.map +1 -0
  22. package/dist/esm/external/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +107 -0
  23. package/dist/esm/external/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +1 -0
  24. package/dist/esm/external/react-is/cjs/react-is.development.js +182 -0
  25. package/dist/esm/external/react-is/cjs/react-is.development.js.map +1 -0
  26. package/dist/esm/external/react-is/cjs/react-is.production.min.js +18 -0
  27. package/dist/esm/external/react-is/cjs/react-is.production.min.js.map +1 -0
  28. package/dist/esm/external/react-is/index.js +12 -0
  29. package/dist/esm/external/react-is/index.js.map +1 -0
  30. package/dist/stats.html +1 -1
  31. package/dist/stats.txt +74 -48
  32. package/dist/types/content/types.d.ts +3 -1
  33. package/package.json +5 -5
  34. package/dist/types/content/components/PageHeaderContext.d.ts +0 -1
  35. package/dist/types/content/hooks/usePageHeader.d.ts +0 -1
@@ -0,0 +1,4 @@
1
+ var reactIs = {exports: {}};
2
+
3
+ export { reactIs as r };
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,4 @@
1
+ var reactIs_development = {};
2
+
3
+ export { reactIs_development as __exports };
4
+ //# sourceMappingURL=react-is.development.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-is.development.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,4 @@
1
+ var reactIs_production_min = {};
2
+
3
+ export { reactIs_production_min as __exports };
4
+ //# sourceMappingURL=react-is.production.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-is.production.min.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,28 +1,61 @@
1
1
  import React from 'react';
2
- import debug from 'debug';
2
+ import loadable$2 from './../external/@loadable/component/dist/loadable.esm.js';
3
3
  import { ContentComponent } from './components/ContentComponent.js';
4
4
  import { isPage } from './types.js';
5
5
 
6
- debug("imperium.layout.content.createPages");
6
+ const loadableCache = /* @__PURE__ */ new Map();
7
+ function getOrCreateLoadable(loader) {
8
+ if (typeof loader === "function" && !loader.prototype?.isReactComponent && loader.length === 0) {
9
+ if (!loadableCache.has(loader)) {
10
+ loadableCache.set(loader, loadable$2(loader));
11
+ }
12
+ return loadableCache.get(loader);
13
+ }
14
+ return loader;
15
+ }
16
+ function wrapLazy(loader, params) {
17
+ const StableComponent = getOrCreateLoadable(loader);
18
+ if (StableComponent !== loader) {
19
+ return function LazyThunk(props) {
20
+ return /* @__PURE__ */ React.createElement(StableComponent, {
21
+ ...params,
22
+ ...props
23
+ });
24
+ };
25
+ }
26
+ return function ComponentThunk(props) {
27
+ const Comp = loader;
28
+ return /* @__PURE__ */ React.createElement(Comp, {
29
+ ...params,
30
+ ...props
31
+ });
32
+ };
33
+ }
7
34
  function createPages(routes, pages) {
8
35
  const renderRoutePropsObj = Object.keys(routes.types).reduce((memo, key) => {
9
- return {
10
- ...memo,
11
- [key]: (params) => {
12
- const pg = pages[key];
13
- if (isPage(pg)) {
14
- return /* @__PURE__ */ React.createElement(ContentComponent, {
15
- page: pg,
16
- params
17
- });
18
- }
36
+ function routeRenderFn(params) {
37
+ const pg = pages[key];
38
+ if (isPage(pg)) {
39
+ const processedPage = {
40
+ ...pg,
41
+ content: wrapLazy(pg.content, params),
42
+ sidebar: pg.sidebar?.map((s) => s.render ? { ...s, render: wrapLazy(s.render, params) } : s)
43
+ };
19
44
  return /* @__PURE__ */ React.createElement(ContentComponent, {
20
- page: {
21
- content: pg
22
- },
45
+ page: processedPage,
23
46
  params
24
47
  });
25
48
  }
49
+ return /* @__PURE__ */ React.createElement(ContentComponent, {
50
+ page: {
51
+ content: wrapLazy(pg, params)
52
+ },
53
+ params
54
+ });
55
+ }
56
+ return {
57
+ ...memo,
58
+ [key]: routeRenderFn
26
59
  };
27
60
  }, {});
28
61
  return routes.renderRouteProps(renderRoutePropsObj);
@@ -1 +1 @@
1
- {"version":3,"file":"createPages.js","sources":["../../../src/content/createPages.tsx"],"sourcesContent":["import type {Routes, DefineRouteOptions, KeyedRouteRenderFns} from '@imperium/router';\nimport debug from 'debug';\nimport {ContentComponent} from './components/ContentComponent';\nimport type {Pages, RouteParameters} from './types';\nimport {isPage} from './types';\n\nconst d = debug('imperium.layout.content.createPages');\n\nexport function createPages<T extends DefineRouteOptions>(routes: Routes<T>, pages: Pages<T>) {\n\tconst renderRoutePropsObj = Object.keys(routes.types).reduce((memo, key) => {\n\t\treturn {\n\t\t\t...memo,\n\t\t\t[key]: (params: RouteParameters<T[typeof key]['params']>) => {\n\t\t\t\tconst pg = pages[key];\n\t\t\t\tif (isPage(pg)) {\n\t\t\t\t\treturn <ContentComponent page={pg} params={params} />;\n\t\t\t\t}\n\t\t\t\treturn (\n\t\t\t\t\t<ContentComponent\n\t\t\t\t\t\tpage={{\n\t\t\t\t\t\t\tcontent: pg,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tparams={params}\n\t\t\t\t\t/>\n\t\t\t\t);\n\t\t\t},\n\t\t};\n\t}, {} as KeyedRouteRenderFns<T>);\n\n\treturn routes.renderRouteProps(renderRoutePropsObj);\n}\n"],"names":[],"mappings":";;;;;AAMU,MAAM,qCAAqC,EAAA;AAE9C,SAAA,WAAA,CAAmD,QAAmB,KAAiB,EAAA;AAC7F,EAAM,MAAA,mBAAA,GAAsB,OAAO,IAAK,CAAA,MAAA,CAAO,KAAK,CAAE,CAAA,MAAA,CAAO,CAAC,IAAA,EAAM,GAAQ,KAAA;AAC3E,IAAO,OAAA;AAAA,MACH,GAAA,IAAA;AAAA,MACF,CAAA,GAAA,GAAM,CAAC,MAAqD,KAAA;AAC5D,QAAA,MAAM,KAAK,KAAM,CAAA,GAAA,CAAA,CAAA;AACjB,QAAI,IAAA,MAAA,CAAO,EAAE,CAAG,EAAA;AACf,UAAA,uBAAQ,KAAA,CAAA,aAAA,CAAA,gBAAA,EAAA;AAAA,YAAiB,IAAM,EAAA,EAAA;AAAA,YAAI,MAAA;AAAA,WAAgB,CAAA,CAAA;AAAA,SACpD;AACA,QAAA,uBACE,KAAA,CAAA,aAAA,CAAA,gBAAA,EAAA;AAAA,UACA,IAAM,EAAA;AAAA,YACL,OAAS,EAAA,EAAA;AAAA,WACV;AAAA,UACA,MAAA;AAAA,SACD,CAAA,CAAA;AAAA,OAEF;AAAA,KACD,CAAA;AAAA,GACD,EAAG,EAA4B,CAAA,CAAA;AAE/B,EAAO,OAAA,MAAA,CAAO,iBAAiB,mBAAmB,CAAA,CAAA;AACnD;;;;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA,uBAAuB,wDAA0D;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sources":["../../../src/content/types.ts"],"sourcesContent":["import type {DefineRouteOptions, ParametersFromAssertion} from '@imperium/router';\nimport type React from 'react';\nimport type {SemanticCOLORS, SemanticICONS} from 'semantic-ui-react';\nimport type {RouteItem, VisibilityItem, WeightedItem} from '../commonItems';\nimport type {DataHookItem} from '../datahooks/types';\nimport type {Data, PermissionSelectorHook, StateSelectorHook} from '../types';\n\nexport type RouteParameters<T extends readonly string[] | undefined> = T extends readonly string[] ? ParametersFromAssertion<T> : never;\n\nexport interface ContentData<T extends DefineRouteOptions, K extends keyof T> extends Data {\n\tparams: RouteParameters<T[K]['params']>;\n}\n\nexport type Content<T extends DefineRouteOptions, K extends keyof T> = (data: ContentData<T, K>) => JSX.Element;\n\nexport interface BaseSidebarItem<T extends DefineRouteOptions, K extends keyof T> extends WeightedItem, VisibilityItem {\n\ttext: string | ((data: ContentData<T, K>) => string);\n\ticon?: SemanticICONS | ((data: ContentData<T, K>) => SemanticICONS);\n\tcolor?: SemanticCOLORS | ((data: ContentData<T, K>) => SemanticCOLORS);\n}\n\nexport interface DividerSidebarItem<T extends DefineRouteOptions, K extends keyof T> extends BaseSidebarItem<T, K> {\n\tdivider: boolean;\n}\n\nexport interface ActionSidebarItem<T extends DefineRouteOptions, K extends keyof T> extends BaseSidebarItem<T, K> {\n\tonClick: (data: ContentData<T, K>) => void;\n}\n\ninterface ActionFormSidebarItemFormParams<T extends DefineRouteOptions, K extends keyof T> {\n\tvalues: Record<string, any>;\n\thandleChange: (e: React.ChangeEvent<any>) => void;\n\tfieldError: (fieldName: string | number) => boolean;\n\tdata: ContentData<T, K>;\n}\nexport interface ActionFormSidebarItem<T extends DefineRouteOptions, K extends keyof T> extends BaseSidebarItem<T, K> {\n\tform: (params: ActionFormSidebarItemFormParams<T, K>) => JSX.Element | null;\n\tinitialValues?: Record<string, any> | ((data: ContentData<T, K>) => Record<string, any>);\n\tonSubmit?: (values: Record<string, any>, data: ContentData<T, K>) => void;\n\tvalidationSchema?: any;\n}\n\nexport interface CustomSidebarItem<T extends DefineRouteOptions, K extends keyof T> extends WeightedItem, VisibilityItem {\n\trender: (data: ContentData<T, K>) => JSX.Element | null;\n}\n\nexport type SidebarItem<T extends DefineRouteOptions, K extends keyof T> =\n\t| (BaseSidebarItem<T, K> & RouteItem<ContentData<T, K>>)\n\t| ActionSidebarItem<T, K>\n\t| CustomSidebarItem<T, K>\n\t| ActionFormSidebarItem<T, K>\n\t| DividerSidebarItem<T, K>;\n\nexport interface ContentHeaderObject {\n\ttitle: string;\n\ticon?: string;\n\tsize?: 'tiny' | 'small' | 'medium' | 'large' | 'huge';\n}\n\nexport function isContentHeaderObject(value: any): value is ContentHeaderObject {\n\treturn value && value.title;\n}\n\nexport type ContentHeader<T extends DefineRouteOptions, K extends keyof T> =\n\t| string\n\t| ContentHeaderObject\n\t| ((data: ContentData<T, K>) => ContentHeaderObject)\n\t| JSX.Element\n\t| ((data: ContentData<T, K>) => JSX.Element)\n\t| undefined;\n\nexport interface Page<T extends DefineRouteOptions, K extends keyof T> {\n\tdataHooks?: DataHookItem[];\n\tstateSelectorHook?: StateSelectorHook | StateSelectorHook[];\n\tpermissionSelectorHook?: PermissionSelectorHook | PermissionSelectorHook[];\n\tcontent: Content<T, K>;\n\theader?: ContentHeader<T, K>;\n\tsidebar?: SidebarItem<T, K>[];\n\tfull?: boolean;\n}\n\nexport type Pages<T extends DefineRouteOptions> = {\n\t[key in keyof T]: Page<T, key> | Content<T, key>;\n};\n\nexport function isPage<T extends DefineRouteOptions, K extends keyof T>(value: any): value is Page<T, K> {\n\treturn !!(value as Page<T, K>).content;\n}\n\nexport function isActionSidebarItem<T extends DefineRouteOptions, K extends keyof T>(value: any): value is ActionSidebarItem<T, K> {\n\treturn !!(value as ActionSidebarItem<T, K>).onClick;\n}\n\nexport function isActionFormSidebarItem<T extends DefineRouteOptions, K extends keyof T>(value: any): value is ActionFormSidebarItem<T, K> {\n\treturn !!(value as ActionFormSidebarItem<T, K>).form;\n}\n\nexport function isCustomSidebarItem<T extends DefineRouteOptions, K extends keyof T>(value: any): value is CustomSidebarItem<T, K> {\n\treturn !!(value as CustomSidebarItem<T, K>).render;\n}\n\nexport function isDividerSidebarItem<T extends DefineRouteOptions, K extends keyof T>(value: any): value is DividerSidebarItem<T, K> {\n\treturn (value as DividerSidebarItem<T, K>).divider;\n}\n"],"names":[],"mappings":"AA2DO,SAAA,qBAAA,CAA+B,KAA0C,EAAA;AAC/E,EAAA,OAAO,SAAS,KAAM,CAAA,KAAA,CAAA;AACvB,CAAA;AAwBO,SAAA,MAAA,CAAiE,KAAiC,EAAA;AACxG,EAAO,OAAA,CAAC,CAAE,KAAqB,CAAA,OAAA,CAAA;AAChC,CAAA;AAEO,SAAA,mBAAA,CAA8E,KAA8C,EAAA;AAClI,EAAO,OAAA,CAAC,CAAE,KAAkC,CAAA,OAAA,CAAA;AAC7C,CAAA;AAEO,SAAA,uBAAA,CAAkF,KAAkD,EAAA;AAC1I,EAAO,OAAA,CAAC,CAAE,KAAsC,CAAA,IAAA,CAAA;AACjD,CAAA;AAEO,SAAA,mBAAA,CAA8E,KAA8C,EAAA;AAClI,EAAO,OAAA,CAAC,CAAE,KAAkC,CAAA,MAAA,CAAA;AAC7C,CAAA;AAEO,SAAA,oBAAA,CAA+E,KAA+C,EAAA;AACpI,EAAA,OAAQ,KAAmC,CAAA,OAAA,CAAA;AAC5C;;;;"}
1
+ {"version":3,"file":"types.js","sources":["../../../src/content/types.ts"],"sourcesContent":["import type {DefineRouteOptions, ParametersFromAssertion} from '@imperium/router';\nimport type React from 'react';\nimport type {SemanticCOLORS, SemanticICONS} from 'semantic-ui-react';\nimport type {RouteItem, VisibilityItem, WeightedItem} from '../commonItems';\nimport type {DataHookItem} from '../datahooks/types';\nimport type {Data, PermissionSelectorHook, StateSelectorHook} from '../types';\n\nexport type RouteParameters<T extends readonly string[] | undefined> = T extends readonly string[] ? ParametersFromAssertion<T> : never;\n\nexport interface ContentData<T extends DefineRouteOptions, K extends keyof T> extends Data {\n\tparams: RouteParameters<T[K]['params']>;\n}\n\nexport type Content<T extends DefineRouteOptions, K extends keyof T> = (\n\tdata: ContentData<T, K>,\n) => Promise<{default: React.ComponentType<any>}>;\n\nexport interface BaseSidebarItem<T extends DefineRouteOptions, K extends keyof T> extends WeightedItem, VisibilityItem {\n\ttext: string | ((data: ContentData<T, K>) => string);\n\ticon?: SemanticICONS | ((data: ContentData<T, K>) => SemanticICONS);\n\tcolor?: SemanticCOLORS | ((data: ContentData<T, K>) => SemanticCOLORS);\n}\n\nexport interface DividerSidebarItem<T extends DefineRouteOptions, K extends keyof T> extends BaseSidebarItem<T, K> {\n\tdivider: boolean;\n}\n\nexport interface ActionSidebarItem<T extends DefineRouteOptions, K extends keyof T> extends BaseSidebarItem<T, K> {\n\tonClick: (data: ContentData<T, K>) => void;\n}\n\ninterface ActionFormSidebarItemFormParams<T extends DefineRouteOptions, K extends keyof T> {\n\tvalues: Record<string, any>;\n\thandleChange: (e: React.ChangeEvent<any>) => void;\n\tfieldError: (fieldName: string | number) => boolean;\n\tdata: ContentData<T, K>;\n}\nexport interface ActionFormSidebarItem<T extends DefineRouteOptions, K extends keyof T> extends BaseSidebarItem<T, K> {\n\tform: (params: ActionFormSidebarItemFormParams<T, K>) => JSX.Element | null;\n\tinitialValues?: Record<string, any> | ((data: ContentData<T, K>) => Record<string, any>);\n\tonSubmit?: (values: Record<string, any>, data: ContentData<T, K>) => void;\n\tvalidationSchema?: any;\n}\n\nexport interface CustomSidebarItem<T extends DefineRouteOptions, K extends keyof T> extends WeightedItem, VisibilityItem {\n\trender: (data: ContentData<T, K>) => JSX.Element | null;\n}\n\nexport type SidebarItem<T extends DefineRouteOptions, K extends keyof T> =\n\t| (BaseSidebarItem<T, K> & RouteItem<ContentData<T, K>>)\n\t| ActionSidebarItem<T, K>\n\t| CustomSidebarItem<T, K>\n\t| ActionFormSidebarItem<T, K>\n\t| DividerSidebarItem<T, K>;\n\nexport interface ContentHeaderObject {\n\ttitle: string;\n\ticon?: string;\n\tsize?: 'tiny' | 'small' | 'medium' | 'large' | 'huge';\n}\n\nexport function isContentHeaderObject(value: any): value is ContentHeaderObject {\n\treturn value && value.title;\n}\n\nexport type ContentHeader<T extends DefineRouteOptions, K extends keyof T> =\n\t| string\n\t| ContentHeaderObject\n\t| ((data: ContentData<T, K>) => ContentHeaderObject)\n\t| JSX.Element\n\t| ((data: ContentData<T, K>) => JSX.Element)\n\t| undefined;\n\nexport interface Page<T extends DefineRouteOptions, K extends keyof T> {\n\tdataHooks?: DataHookItem[];\n\tstateSelectorHook?: StateSelectorHook | StateSelectorHook[];\n\tpermissionSelectorHook?: PermissionSelectorHook | PermissionSelectorHook[];\n\tcontent: Content<T, K>;\n\theader?: ContentHeader<T, K>;\n\tsidebar?: SidebarItem<T, K>[];\n\tfull?: boolean;\n}\n\nexport type Pages<T extends DefineRouteOptions> = {\n\t[key in keyof T]: Page<T, key> | Content<T, key>;\n};\n\nexport function isPage<T extends DefineRouteOptions, K extends keyof T>(value: any): value is Page<T, K> {\n\treturn !!(value as Page<T, K>).content;\n}\n\nexport function isActionSidebarItem<T extends DefineRouteOptions, K extends keyof T>(value: any): value is ActionSidebarItem<T, K> {\n\treturn !!(value as ActionSidebarItem<T, K>).onClick;\n}\n\nexport function isActionFormSidebarItem<T extends DefineRouteOptions, K extends keyof T>(value: any): value is ActionFormSidebarItem<T, K> {\n\treturn !!(value as ActionFormSidebarItem<T, K>).form;\n}\n\nexport function isCustomSidebarItem<T extends DefineRouteOptions, K extends keyof T>(value: any): value is CustomSidebarItem<T, K> {\n\treturn !!(value as CustomSidebarItem<T, K>).render;\n}\n\nexport function isDividerSidebarItem<T extends DefineRouteOptions, K extends keyof T>(value: any): value is DividerSidebarItem<T, K> {\n\treturn (value as DividerSidebarItem<T, K>).divider;\n}\n"],"names":[],"mappings":"AA6DO,SAAA,qBAAA,CAA+B,KAA0C,EAAA;AAC/E,EAAA,OAAO,SAAS,KAAM,CAAA,KAAA,CAAA;AACvB,CAAA;AAwBO,SAAA,MAAA,CAAiE,KAAiC,EAAA;AACxG,EAAO,OAAA,CAAC,CAAE,KAAqB,CAAA,OAAA,CAAA;AAChC,CAAA;AAEO,SAAA,mBAAA,CAA8E,KAA8C,EAAA;AAClI,EAAO,OAAA,CAAC,CAAE,KAAkC,CAAA,OAAA,CAAA;AAC7C,CAAA;AAEO,SAAA,uBAAA,CAAkF,KAAkD,EAAA;AAC1I,EAAO,OAAA,CAAC,CAAE,KAAsC,CAAA,IAAA,CAAA;AACjD,CAAA;AAEO,SAAA,mBAAA,CAA8E,KAA8C,EAAA;AAClI,EAAO,OAAA,CAAC,CAAE,KAAkC,CAAA,MAAA,CAAA;AAC7C,CAAA;AAEO,SAAA,oBAAA,CAA+E,KAA+C,EAAA;AACpI,EAAA,OAAQ,KAAmC,CAAA,OAAA,CAAA;AAC5C;;;;"}
@@ -0,0 +1,9 @@
1
+ function _assertThisInitialized(self) {
2
+ if (self === void 0) {
3
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
+ }
5
+ return self;
6
+ }
7
+
8
+ export { _assertThisInitialized as default };
9
+ //# sourceMappingURL=assertThisInitialized.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assertThisInitialized.js","sources":["../../../../../../../../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"],"sourcesContent":["export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}"],"names":[],"mappings":"AAAe,SAAS,sBAAsB,CAAC,IAAI,EAAE;AACrD,EAAE,IAAI,IAAI,KAAK,KAAK,CAAC,EAAE;AACvB,IAAI,MAAM,IAAI,cAAc,CAAC,2DAA2D,CAAC,CAAC;AAC1F,GAAG;AACH,EAAE,OAAO,IAAI,CAAC;AACd;;;;"}
@@ -0,0 +1,17 @@
1
+ function _extends() {
2
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
3
+ for (var i = 1; i < arguments.length; i++) {
4
+ var source = arguments[i];
5
+ for (var key in source) {
6
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
7
+ target[key] = source[key];
8
+ }
9
+ }
10
+ }
11
+ return target;
12
+ };
13
+ return _extends.apply(this, arguments);
14
+ }
15
+
16
+ export { _extends as default };
17
+ //# sourceMappingURL=extends.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extends.js","sources":["../../../../../../../../../node_modules/@babel/runtime/helpers/esm/extends.js"],"sourcesContent":["export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}"],"names":[],"mappings":"AAAe,SAAS,QAAQ,GAAG;AACnC,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,UAAU,MAAM,EAAE;AACtE,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC/C,MAAM,IAAI,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,KAAK,IAAI,GAAG,IAAI,MAAM,EAAE;AAC9B,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE;AAC/D,UAAU,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AACpC,SAAS;AACT,OAAO;AACP,KAAK;AACL,IAAI,OAAO,MAAM,CAAC;AAClB,GAAG,CAAC;AACJ,EAAE,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AACzC;;;;"}
@@ -0,0 +1,10 @@
1
+ import _setPrototypeOf from './setPrototypeOf.js';
2
+
3
+ function _inheritsLoose(subClass, superClass) {
4
+ subClass.prototype = Object.create(superClass.prototype);
5
+ subClass.prototype.constructor = subClass;
6
+ _setPrototypeOf(subClass, superClass);
7
+ }
8
+
9
+ export { _inheritsLoose as default };
10
+ //# sourceMappingURL=inheritsLoose.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -0,0 +1,15 @@
1
+ function _objectWithoutPropertiesLoose(source, excluded) {
2
+ if (source == null) return {};
3
+ var target = {};
4
+ var sourceKeys = Object.keys(source);
5
+ var key, i;
6
+ for (i = 0; i < sourceKeys.length; i++) {
7
+ key = sourceKeys[i];
8
+ if (excluded.indexOf(key) >= 0) continue;
9
+ target[key] = source[key];
10
+ }
11
+ return target;
12
+ }
13
+
14
+ export { _objectWithoutPropertiesLoose as default };
15
+ //# sourceMappingURL=objectWithoutPropertiesLoose.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"objectWithoutPropertiesLoose.js","sources":["../../../../../../../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"],"sourcesContent":["export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}"],"names":[],"mappings":"AAAe,SAAS,6BAA6B,CAAC,MAAM,EAAE,QAAQ,EAAE;AACxE,EAAE,IAAI,MAAM,IAAI,IAAI,EAAE,OAAO,EAAE,CAAC;AAChC,EAAE,IAAI,MAAM,GAAG,EAAE,CAAC;AAClB,EAAE,IAAI,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACvC,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC;AACb,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC1C,IAAI,GAAG,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;AACxB,IAAI,IAAI,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,SAAS;AAC7C,IAAI,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AAC9B,GAAG;AACH,EAAE,OAAO,MAAM,CAAC;AAChB;;;;"}
@@ -0,0 +1,10 @@
1
+ function _setPrototypeOf(o, p) {
2
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
3
+ o.__proto__ = p;
4
+ return o;
5
+ };
6
+ return _setPrototypeOf(o, p);
7
+ }
8
+
9
+ export { _setPrototypeOf as default };
10
+ //# sourceMappingURL=setPrototypeOf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setPrototypeOf.js","sources":["../../../../../../../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js"],"sourcesContent":["export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}"],"names":[],"mappings":"AAAe,SAAS,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE;AAC9C,EAAE,eAAe,GAAG,MAAM,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,SAAS,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE;AAC1G,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC;AACpB,IAAI,OAAO,CAAC,CAAC;AACb,GAAG,CAAC;AACJ,EAAE,OAAO,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC/B;;;;"}