linear-react-components-ui 2.1.0-beta.0 → 2.1.0-beta.1
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/lib/inputs/number/Currency.js +19 -17
- package/lib/inputs/number/Currency.js.map +1 -1
- package/lib/inputs/number/Decimal.js +19 -17
- package/lib/inputs/number/Decimal.js.map +1 -1
- package/lib/inputs/number/index.js +17 -15
- package/lib/inputs/number/index.js.map +1 -1
- package/lib/inputs2/selectfield/base.js +1 -1
- package/lib/inputs2/selectfield/base.js.map +1 -1
- package/lib/menus/float/SubMenuContainer.d.ts +10 -28
- package/lib/menus/float/SubMenuContainer.js +107 -85
- package/lib/menus/float/SubMenuContainer.js.map +1 -1
- package/lib/treetable/helpers.d.ts +0 -2
- package/lib/treetable/helpers.js.map +1 -1
- package/package.json +1 -1
- package/lib/_virtual/index.js +0 -8
- package/lib/_virtual/index.js.map +0 -1
- package/lib/_virtual/index2.js +0 -5
- package/lib/_virtual/index2.js.map +0 -1
- package/lib/_virtual/index3.js +0 -5
- package/lib/_virtual/index3.js.map +0 -1
- package/lib/_virtual/react-is.development.js +0 -5
- package/lib/_virtual/react-is.development.js.map +0 -1
- package/lib/_virtual/react-is.production.min.js +0 -5
- package/lib/_virtual/react-is.production.min.js.map +0 -1
- package/lib/node_modules/object-assign/index.js +0 -79
- package/lib/node_modules/object-assign/index.js.map +0 -1
- package/lib/node_modules/prop-types/checkPropTypes.js +0 -69
- package/lib/node_modules/prop-types/checkPropTypes.js.map +0 -1
- package/lib/node_modules/prop-types/factoryWithThrowingShims.js +0 -59
- package/lib/node_modules/prop-types/factoryWithThrowingShims.js.map +0 -1
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +0 -452
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js.map +0 -1
- package/lib/node_modules/prop-types/index.js +0 -21
- package/lib/node_modules/prop-types/index.js.map +0 -1
- package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -13
- package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +0 -1
- package/lib/node_modules/prop-types/lib/has.js +0 -12
- package/lib/node_modules/prop-types/lib/has.js.map +0 -1
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -166
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +0 -1
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -107
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
- package/lib/node_modules/prop-types/node_modules/react-is/index.js +0 -18
- package/lib/node_modules/prop-types/node_modules/react-is/index.js.map +0 -1
|
@@ -1,138 +1,160 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { c as compilerRuntimeExports } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import { useEffect } from "react";
|
|
4
|
-
import PropTypes from "../../_virtual/index.js";
|
|
5
4
|
import Icon from "../../icons/index.js";
|
|
6
5
|
import Skeleton from "../../skeleton/index.js";
|
|
7
6
|
import SkeletonContainer from "../../skeleton/SkeletonContainer.js";
|
|
8
|
-
const
|
|
7
|
+
const SubMenuContent = (t0) => {
|
|
8
|
+
const $ = compilerRuntimeExports.c(7);
|
|
9
|
+
const {
|
|
10
|
+
children,
|
|
11
|
+
skeletonize,
|
|
12
|
+
skeletonQtty
|
|
13
|
+
} = t0;
|
|
9
14
|
if (skeletonize && skeletonQtty) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
15
|
+
let t12;
|
|
16
|
+
if ($[0] !== skeletonQtty) {
|
|
17
|
+
t12 = Array.from({
|
|
18
|
+
length: skeletonQtty
|
|
19
|
+
}, _temp);
|
|
20
|
+
$[0] = skeletonQtty;
|
|
21
|
+
$[1] = t12;
|
|
22
|
+
} else {
|
|
23
|
+
t12 = $[1];
|
|
24
|
+
}
|
|
25
|
+
const skeletons = t12;
|
|
26
|
+
let t2;
|
|
27
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
28
|
+
t2 = {
|
|
29
|
+
flexDirection: "row",
|
|
30
|
+
flexFlow: "row wrap"
|
|
31
|
+
};
|
|
32
|
+
$[2] = t2;
|
|
33
|
+
} else {
|
|
34
|
+
t2 = $[2];
|
|
35
|
+
}
|
|
36
|
+
let t3;
|
|
37
|
+
if ($[3] !== skeletons) {
|
|
38
|
+
t3 = /* @__PURE__ */ jsx(SkeletonContainer, { style: t2, children: skeletons.map(_temp2) });
|
|
39
|
+
$[3] = skeletons;
|
|
40
|
+
$[4] = t3;
|
|
41
|
+
} else {
|
|
42
|
+
t3 = $[4];
|
|
43
|
+
}
|
|
44
|
+
return t3;
|
|
20
45
|
}
|
|
21
|
-
|
|
46
|
+
let t1;
|
|
47
|
+
if ($[5] !== children) {
|
|
48
|
+
t1 = /* @__PURE__ */ jsx(Fragment, { children });
|
|
49
|
+
$[5] = children;
|
|
50
|
+
$[6] = t1;
|
|
51
|
+
} else {
|
|
52
|
+
t1 = $[6];
|
|
53
|
+
}
|
|
54
|
+
return t1;
|
|
22
55
|
};
|
|
23
56
|
const SubMenuContainer = (t0) => {
|
|
24
|
-
const $ = compilerRuntimeExports.c(
|
|
57
|
+
const $ = compilerRuntimeExports.c(19);
|
|
25
58
|
const {
|
|
26
59
|
title,
|
|
27
60
|
customClass,
|
|
28
61
|
handlerGoBack,
|
|
29
|
-
skeletonize,
|
|
30
|
-
skeletonQtty,
|
|
62
|
+
skeletonize: t1,
|
|
63
|
+
skeletonQtty: t2,
|
|
31
64
|
children
|
|
32
65
|
} = t0;
|
|
33
|
-
|
|
66
|
+
const skeletonize = t1 === void 0 ? false : t1;
|
|
67
|
+
const skeletonQtty = t2 === void 0 ? 3 : t2;
|
|
68
|
+
let t3;
|
|
34
69
|
if ($[0] !== handlerGoBack) {
|
|
35
|
-
|
|
70
|
+
t3 = () => () => {
|
|
36
71
|
handlerGoBack();
|
|
37
72
|
};
|
|
38
73
|
$[0] = handlerGoBack;
|
|
39
|
-
$[1] =
|
|
74
|
+
$[1] = t3;
|
|
40
75
|
} else {
|
|
41
|
-
|
|
76
|
+
t3 = $[1];
|
|
42
77
|
}
|
|
43
|
-
let
|
|
78
|
+
let t4;
|
|
44
79
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
45
|
-
|
|
46
|
-
$[2] =
|
|
80
|
+
t4 = [];
|
|
81
|
+
$[2] = t4;
|
|
47
82
|
} else {
|
|
48
|
-
|
|
83
|
+
t4 = $[2];
|
|
49
84
|
}
|
|
50
|
-
useEffect(
|
|
51
|
-
const
|
|
52
|
-
let
|
|
85
|
+
useEffect(t3, t4);
|
|
86
|
+
const t5 = `floatsubmenu ${customClass}`;
|
|
87
|
+
let t6;
|
|
53
88
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
54
|
-
|
|
89
|
+
t6 = {
|
|
55
90
|
cursor: "pointer"
|
|
56
91
|
};
|
|
57
|
-
$[3] =
|
|
92
|
+
$[3] = t6;
|
|
58
93
|
} else {
|
|
59
|
-
|
|
94
|
+
t6 = $[3];
|
|
60
95
|
}
|
|
61
|
-
let
|
|
96
|
+
let t7;
|
|
62
97
|
if ($[4] !== handlerGoBack) {
|
|
63
|
-
|
|
98
|
+
t7 = /* @__PURE__ */ jsx(Icon, { onClick: handlerGoBack, name: "arrowBack", pointerEvents: "all", style: t6 });
|
|
64
99
|
$[4] = handlerGoBack;
|
|
65
|
-
$[5] =
|
|
100
|
+
$[5] = t7;
|
|
66
101
|
} else {
|
|
67
|
-
|
|
102
|
+
t7 = $[5];
|
|
68
103
|
}
|
|
69
|
-
let
|
|
104
|
+
let t8;
|
|
70
105
|
if ($[6] !== title) {
|
|
71
|
-
|
|
106
|
+
t8 = title && /* @__PURE__ */ jsx("span", { children: title });
|
|
72
107
|
$[6] = title;
|
|
73
|
-
$[7] =
|
|
108
|
+
$[7] = t8;
|
|
74
109
|
} else {
|
|
75
|
-
|
|
110
|
+
t8 = $[7];
|
|
76
111
|
}
|
|
77
|
-
let
|
|
78
|
-
if ($[8] !==
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
112
|
+
let t9;
|
|
113
|
+
if ($[8] !== t7 || $[9] !== t8) {
|
|
114
|
+
t9 = /* @__PURE__ */ jsxs("div", { className: "submenuheader", children: [
|
|
115
|
+
t7,
|
|
116
|
+
t8
|
|
82
117
|
] });
|
|
83
|
-
$[8] =
|
|
84
|
-
$[9] =
|
|
85
|
-
$[10] =
|
|
118
|
+
$[8] = t7;
|
|
119
|
+
$[9] = t8;
|
|
120
|
+
$[10] = t9;
|
|
86
121
|
} else {
|
|
87
|
-
|
|
122
|
+
t9 = $[10];
|
|
88
123
|
}
|
|
89
|
-
let
|
|
124
|
+
let t10;
|
|
90
125
|
if ($[11] !== children || $[12] !== skeletonQtty || $[13] !== skeletonize) {
|
|
91
|
-
|
|
126
|
+
t10 = /* @__PURE__ */ jsx("div", { className: "submenucontent", children: /* @__PURE__ */ jsx(SubMenuContent, { skeletonize, skeletonQtty, children }) });
|
|
92
127
|
$[11] = children;
|
|
93
128
|
$[12] = skeletonQtty;
|
|
94
129
|
$[13] = skeletonize;
|
|
95
|
-
$[14] =
|
|
130
|
+
$[14] = t10;
|
|
96
131
|
} else {
|
|
97
|
-
|
|
132
|
+
t10 = $[14];
|
|
98
133
|
}
|
|
99
|
-
let
|
|
100
|
-
if ($[15] !==
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
} else {
|
|
105
|
-
t9 = $[16];
|
|
106
|
-
}
|
|
107
|
-
let t10;
|
|
108
|
-
if ($[17] !== t3 || $[18] !== t7 || $[19] !== t9) {
|
|
109
|
-
t10 = /* @__PURE__ */ jsxs("div", { className: t3, children: [
|
|
110
|
-
t7,
|
|
111
|
-
t9
|
|
134
|
+
let t11;
|
|
135
|
+
if ($[15] !== t10 || $[16] !== t5 || $[17] !== t9) {
|
|
136
|
+
t11 = /* @__PURE__ */ jsxs("div", { className: t5, children: [
|
|
137
|
+
t9,
|
|
138
|
+
t10
|
|
112
139
|
] });
|
|
113
|
-
$[
|
|
114
|
-
$[
|
|
115
|
-
$[
|
|
116
|
-
$[
|
|
140
|
+
$[15] = t10;
|
|
141
|
+
$[16] = t5;
|
|
142
|
+
$[17] = t9;
|
|
143
|
+
$[18] = t11;
|
|
117
144
|
} else {
|
|
118
|
-
|
|
145
|
+
t11 = $[18];
|
|
119
146
|
}
|
|
120
|
-
return
|
|
121
|
-
};
|
|
122
|
-
SubMenuContainer.propTypes = {
|
|
123
|
-
children: PropTypes.node.isRequired,
|
|
124
|
-
handlerGoBack: PropTypes.func.isRequired,
|
|
125
|
-
title: PropTypes.string,
|
|
126
|
-
customClass: PropTypes.string,
|
|
127
|
-
skeletonize: PropTypes.bool,
|
|
128
|
-
skeletonQtty: PropTypes.number
|
|
129
|
-
};
|
|
130
|
-
SubMenuContainer.defaultProps = {
|
|
131
|
-
title: void 0,
|
|
132
|
-
customClass: void 0,
|
|
133
|
-
skeletonize: false,
|
|
134
|
-
skeletonQtty: 3
|
|
147
|
+
return t11;
|
|
135
148
|
};
|
|
149
|
+
function _temp(_, i) {
|
|
150
|
+
return i + 1;
|
|
151
|
+
}
|
|
152
|
+
function _temp2(id) {
|
|
153
|
+
return /* @__PURE__ */ jsx(Skeleton, { height: 88, width: 88, style: {
|
|
154
|
+
flexGrow: "unset",
|
|
155
|
+
marginBottom: 5
|
|
156
|
+
} }, id);
|
|
157
|
+
}
|
|
136
158
|
export {
|
|
137
159
|
SubMenuContainer as default
|
|
138
160
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubMenuContainer.js","sources":["../../../src/lib/menus/float/SubMenuContainer.
|
|
1
|
+
{"version":3,"file":"SubMenuContainer.js","sources":["../../../src/lib/menus/float/SubMenuContainer.tsx"],"sourcesContent":["import { ReactNode, useEffect } from 'react';\nimport Icon from '../../icons';\nimport Skeleton, { SkeletonContainer } from '../../skeleton';\n\ninterface SubMenuContainerProps {\n title?: string;\n customClass?: string;\n handlerGoBack: () => void;\n skeletonize?: boolean;\n skeletonQtty?: number;\n children: ReactNode;\n}\n\nconst SubMenuContent = ({ children, skeletonize, skeletonQtty }: { children: ReactNode; skeletonize: boolean; skeletonQtty: number }) => {\n if (skeletonize && skeletonQtty) {\n const skeletons = Array.from({ length: skeletonQtty }, (_, i) => i + 1);\n return (\n <SkeletonContainer style={{ flexDirection: 'row', flexFlow: 'row wrap' }}>\n {skeletons.map(id => (\n <Skeleton\n key={id}\n height={88}\n width={88}\n style={{\n flexGrow: 'unset',\n marginBottom: 5,\n }} />\n ))}\n </SkeletonContainer>\n );\n }\n\n return <>{children}</>;\n};\n\nconst SubMenuContainer = ({\n title, customClass, handlerGoBack, skeletonize = false, skeletonQtty = 3, children,\n}: SubMenuContainerProps) => {\n useEffect(() => () => {\n handlerGoBack();\n }, []);\n\n return (\n <div className={`floatsubmenu ${customClass}`}>\n <div className=\"submenuheader\">\n <Icon onClick={handlerGoBack} name=\"arrowBack\" pointerEvents=\"all\" style={{ cursor: 'pointer' }} />\n {title && <span>{title}</span>}\n </div>\n <div className=\"submenucontent\">\n <SubMenuContent skeletonize={skeletonize} skeletonQtty={skeletonQtty}>\n {children}\n </SubMenuContent>\n </div>\n </div>\n );\n};\n\nexport default SubMenuContainer;\n"],"names":["SubMenuContent","t0","$","_c","children","skeletonize","skeletonQtty","t1","Array","from","length","_temp","skeletons","t2","Symbol","for","flexDirection","flexFlow","t3","map","_temp2","SubMenuContainer","title","customClass","handlerGoBack","undefined","t4","useEffect","t5","t6","cursor","t7","t8","t9","t10","t11","_","i","id","flexGrow","marginBottom"],"mappings":";;;;;;AAaA,MAAMA,iBAAiBC,CAAAA,OAAA;AAAA,QAAAC,IAAAC,uBAAAA,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IAAAA,GACH;AAAM9B,WAAA6B;AAAA7B,WAAA8B;AAAA9B,YAAA+B;AAAAA,EAAA,OAAA;AAAAA,SAAA/B,EAAA,EAAA;AAAA,EAAA;AAAA,MAAAgC;AAAA,MAAAhC,EAAA,EAAA,MAAAE,YAAAF,UAAAI,gBAAAJ,EAAA,EAAA,MAAAG,aAAA;AACN6B,UAAA,oBAAA,SAAe,WAAA,kBACb,8BAAC,gBAAA,EAA4B7B,aAA2BC,cACrDF,SAAAA,CACH,EAAA,CACF;AAAMF,YAAAE;AAAAF,YAAAI;AAAAJ,YAAAG;AAAAH,YAAAgC;AAAAA,EAAA,OAAA;AAAAA,UAAAhC,EAAA,EAAA;AAAA,EAAA;AAAA,MAAAiC;AAAA,MAAAjC,EAAA,EAAA,MAAAgC,OAAAhC,UAAA0B,MAAA1B,EAAA,EAAA,MAAA+B,IAAA;AATRE,UAAA,qBAAA,OAAA,EAAgB,WAAAP,IACdK,UAAAA;AAAAA,MAAAA;AAAAA,MAIAC;AAAAA,IAAAA,GAKF;AAAMhC,YAAAgC;AAAAhC,YAAA0B;AAAA1B,YAAA+B;AAAA/B,YAAAiC;AAAAA,EAAA,OAAA;AAAAA,UAAAjC,EAAA,EAAA;AAAA,EAAA;AAAA,SAVNiC;AAUM;AAxCa,SAAAxB,MAAAyB,GAAAC,GAAA;AAAA,SAE8CA,IAAI;AAAC;AAFnD,SAAAjB,OAAAkB,IAAA;AAAA,6BAMZ,UAAA,EAES,QAAA,IACD,WACA,OAAA;AAAA,IAAAC,UACK;AAAA,IAAOC,cACH;AAAA,EAAA,KALXF,EAMJ;AAAI;"}
|
|
@@ -12,5 +12,3 @@ export declare const searchChildrensPerRow: (data: Array<{
|
|
|
12
12
|
}>, parentPropName: string, rowId?: string | number, rowLevel?: number) => {
|
|
13
13
|
[key: string]: ReactNode;
|
|
14
14
|
}[];
|
|
15
|
-
export declare const getTreeOpenNodes: (lista: any[], itemId: number, parentPropName?: string) => any[];
|
|
16
|
-
export declare const getAllParentIdsToOpen: (items: any[]) => unknown[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sources":["../../src/lib/treetable/helpers.ts"],"sourcesContent":["import { createContext, ReactNode } from 'react';\nimport { ITreeTableContext } from './types';\n\nexport const TreeTableContext = createContext({} as ITreeTableContext);\n\nexport const searchRootElements = (\n data: Array<{\n [key: string]: ReactNode\n }>,\n parentPropName: string,\n rowLevel = 0,\n) => {\n let dataFiltered;\n if (data) {\n dataFiltered = data.filter(item => !item[parentPropName]);\n\n return dataFiltered.map(item =>\n Object.assign(\n item,\n {},\n {\n rowLevel,\n },\n ));\n }\n\n return data;\n};\n\nexport const searchChildrensPerRow = (\n data: Array<{\n [key: string]: ReactNode\n }>,\n parentPropName: string,\n rowId?: string | number,\n rowLevel = 0,\n) => {\n let dataFiltered;\n if (data && rowId) {\n dataFiltered = data.filter(item => item[parentPropName] === Number(rowId));\n\n return dataFiltered.map(item =>\n Object.assign(\n item,\n {},\n {\n rowLevel,\n },\n ));\n }\n\n return data;\n};\n
|
|
1
|
+
{"version":3,"file":"helpers.js","sources":["../../src/lib/treetable/helpers.ts"],"sourcesContent":["import { createContext, ReactNode } from 'react';\nimport { ITreeTableContext } from './types';\n\nexport const TreeTableContext = createContext({} as ITreeTableContext);\n\nexport const searchRootElements = (\n data: Array<{\n [key: string]: ReactNode\n }>,\n parentPropName: string,\n rowLevel = 0,\n) => {\n let dataFiltered;\n if (data) {\n dataFiltered = data.filter(item => !item[parentPropName]);\n\n return dataFiltered.map(item =>\n Object.assign(\n item,\n {},\n {\n rowLevel,\n },\n ));\n }\n\n return data;\n};\n\nexport const searchChildrensPerRow = (\n data: Array<{\n [key: string]: ReactNode\n }>,\n parentPropName: string,\n rowId?: string | number,\n rowLevel = 0,\n) => {\n let dataFiltered;\n if (data && rowId) {\n dataFiltered = data.filter(item => item[parentPropName] === Number(rowId));\n\n return dataFiltered.map(item =>\n Object.assign(\n item,\n {},\n {\n rowLevel,\n },\n ));\n }\n\n return data;\n};\n"],"names":["TreeTableContext","createContext","searchRootElements","data","parentPropName","rowLevel","dataFiltered","filter","item","map","Object","assign","searchChildrensPerRow","rowId","Number"],"mappings":";AAGO,MAAMA,mBAAmBC,cAAc,CAAA,CAAuB;AAE9D,MAAMC,qBAAqBA,CAChCC,MAGAC,gBACAC,WAAW,MACR;AACH,MAAIC;AACJ,MAAIH,MAAM;AACRG,mBAAeH,KAAKI,OAAOC,CAAAA,SAAQ,CAACA,KAAKJ,cAAc,CAAC;AAExD,WAAOE,aAAaG,IAAID,CAAAA,SACtBE,OAAOC,OACLH,MACA,IACA;AAAA,MACEH;AAAAA,IAAAA,CAEJ,CAAC;AAAA,EACL;AAEA,SAAOF;AACT;AAEO,MAAMS,wBAAwBA,CACnCT,MAGAC,gBACAS,OACAR,WAAW,MACR;AACH,MAAIC;AACJ,MAAIH,QAAQU,OAAO;AACjBP,mBAAeH,KAAKI,OAAOC,CAAAA,SAAQA,KAAKJ,cAAc,MAAMU,OAAOD,KAAK,CAAC;AAEzE,WAAOP,aAAaG,IAAID,CAAAA,SACtBE,OAAOC,OACLH,MACA,IACA;AAAA,MACEH;AAAAA,IAAAA,CAEJ,CAAC;AAAA,EACL;AAEA,SAAOF;AACT;"}
|
package/package.json
CHANGED
package/lib/_virtual/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs } from "./_commonjsHelpers.js";
|
|
2
|
-
import { __require as requirePropTypes } from "../node_modules/prop-types/index.js";
|
|
3
|
-
var propTypesExports = /* @__PURE__ */ requirePropTypes();
|
|
4
|
-
const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
|
|
5
|
-
export {
|
|
6
|
-
PropTypes as default
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/lib/_virtual/index2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/lib/_virtual/index3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-is.development.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-is.production.min.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
object-assign
|
|
3
|
-
(c) Sindre Sorhus
|
|
4
|
-
@license MIT
|
|
5
|
-
*/
|
|
6
|
-
var objectAssign;
|
|
7
|
-
var hasRequiredObjectAssign;
|
|
8
|
-
function requireObjectAssign() {
|
|
9
|
-
if (hasRequiredObjectAssign) return objectAssign;
|
|
10
|
-
hasRequiredObjectAssign = 1;
|
|
11
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
12
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
13
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
14
|
-
function toObject(val) {
|
|
15
|
-
if (val === null || val === void 0) {
|
|
16
|
-
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
17
|
-
}
|
|
18
|
-
return Object(val);
|
|
19
|
-
}
|
|
20
|
-
function shouldUseNative() {
|
|
21
|
-
try {
|
|
22
|
-
if (!Object.assign) {
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
25
|
-
var test1 = new String("abc");
|
|
26
|
-
test1[5] = "de";
|
|
27
|
-
if (Object.getOwnPropertyNames(test1)[0] === "5") {
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
var test2 = {};
|
|
31
|
-
for (var i = 0; i < 10; i++) {
|
|
32
|
-
test2["_" + String.fromCharCode(i)] = i;
|
|
33
|
-
}
|
|
34
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
|
|
35
|
-
return test2[n];
|
|
36
|
-
});
|
|
37
|
-
if (order2.join("") !== "0123456789") {
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
var test3 = {};
|
|
41
|
-
"abcdefghijklmnopqrst".split("").forEach(function(letter) {
|
|
42
|
-
test3[letter] = letter;
|
|
43
|
-
});
|
|
44
|
-
if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
|
|
45
|
-
return false;
|
|
46
|
-
}
|
|
47
|
-
return true;
|
|
48
|
-
} catch (err) {
|
|
49
|
-
return false;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
|
|
53
|
-
var from;
|
|
54
|
-
var to = toObject(target);
|
|
55
|
-
var symbols;
|
|
56
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
57
|
-
from = Object(arguments[s]);
|
|
58
|
-
for (var key in from) {
|
|
59
|
-
if (hasOwnProperty.call(from, key)) {
|
|
60
|
-
to[key] = from[key];
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
if (getOwnPropertySymbols) {
|
|
64
|
-
symbols = getOwnPropertySymbols(from);
|
|
65
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
66
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
67
|
-
to[symbols[i]] = from[symbols[i]];
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return to;
|
|
73
|
-
};
|
|
74
|
-
return objectAssign;
|
|
75
|
-
}
|
|
76
|
-
export {
|
|
77
|
-
requireObjectAssign as __require
|
|
78
|
-
};
|
|
79
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../node_modules/object-assign/index.js"],"sourcesContent":["/*\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"],"names":[],"mappings":";;;;;;;;;;AAQA,MAAI,wBAAwB,OAAO;AACnC,MAAI,iBAAiB,OAAO,UAAU;AACtC,MAAI,mBAAmB,OAAO,UAAU;AAExC,WAAS,SAAS,KAAK;AACtB,QAAI,QAAQ,QAAQ,QAAQ,QAAW;AACtC,YAAM,IAAI,UAAU,uDAAuD;AAAA,IAC7E;AAEC,WAAO,OAAO,GAAG;AAAA,EAClB;AAEA,WAAS,kBAAkB;AAC1B,QAAI;AACH,UAAI,CAAC,OAAO,QAAQ;AACnB,eAAO;AAAA,MACV;AAKE,UAAI,QAAQ,IAAI,OAAO,KAAK;AAC5B,YAAM,CAAC,IAAI;AACX,UAAI,OAAO,oBAAoB,KAAK,EAAE,CAAC,MAAM,KAAK;AACjD,eAAO;AAAA,MACV;AAGE,UAAI,QAAQ,CAAA;AACZ,eAAS,IAAI,GAAG,IAAI,IAAI,KAAK;AAC5B,cAAM,MAAM,OAAO,aAAa,CAAC,CAAC,IAAI;AAAA,MACzC;AACE,UAAI,SAAS,OAAO,oBAAoB,KAAK,EAAE,IAAI,SAAU,GAAG;AAC/D,eAAO,MAAM,CAAC;AAAA,MACjB,CAAG;AACD,UAAI,OAAO,KAAK,EAAE,MAAM,cAAc;AACrC,eAAO;AAAA,MACV;AAGE,UAAI,QAAQ,CAAA;AACZ,6BAAuB,MAAM,EAAE,EAAE,QAAQ,SAAU,QAAQ;AAC1D,cAAM,MAAM,IAAI;AAAA,MACnB,CAAG;AACD,UAAI,OAAO,KAAK,OAAO,OAAO,CAAA,GAAI,KAAK,CAAC,EAAE,KAAK,EAAE,MAC/C,wBAAwB;AACzB,eAAO;AAAA,MACV;AAEE,aAAO;AAAA,IACT,SAAU,KAAK;AAEb,aAAO;AAAA,IACT;AAAA,EACA;AAEA,iBAAiB,gBAAe,IAAK,OAAO,SAAS,SAAU,QAAQ,QAAQ;AAC9E,QAAI;AACJ,QAAI,KAAK,SAAS,MAAM;AACxB,QAAI;AAEJ,aAAS,IAAI,GAAG,IAAI,UAAU,QAAQ,KAAK;AAC1C,aAAO,OAAO,UAAU,CAAC,CAAC;AAE1B,eAAS,OAAO,MAAM;AACrB,YAAI,eAAe,KAAK,MAAM,GAAG,GAAG;AACnC,aAAG,GAAG,IAAI,KAAK,GAAG;AAAA,QACtB;AAAA,MACA;AAEE,UAAI,uBAAuB;AAC1B,kBAAU,sBAAsB,IAAI;AACpC,iBAAS,IAAI,GAAG,IAAI,QAAQ,QAAQ,KAAK;AACxC,cAAI,iBAAiB,KAAK,MAAM,QAAQ,CAAC,CAAC,GAAG;AAC5C,eAAG,QAAQ,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC;AAAA,UACrC;AAAA,QACA;AAAA,MACA;AAAA,IACA;AAEC,WAAO;AAAA,EACR;;;","x_google_ignoreList":[0]}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { __require as requireReactPropTypesSecret } from "./lib/ReactPropTypesSecret.js";
|
|
2
|
-
import { __require as requireHas } from "./lib/has.js";
|
|
3
|
-
var checkPropTypes_1;
|
|
4
|
-
var hasRequiredCheckPropTypes;
|
|
5
|
-
function requireCheckPropTypes() {
|
|
6
|
-
if (hasRequiredCheckPropTypes) return checkPropTypes_1;
|
|
7
|
-
hasRequiredCheckPropTypes = 1;
|
|
8
|
-
var printWarning = function() {
|
|
9
|
-
};
|
|
10
|
-
if (process.env.NODE_ENV !== "production") {
|
|
11
|
-
var ReactPropTypesSecret = /* @__PURE__ */ requireReactPropTypesSecret();
|
|
12
|
-
var loggedTypeFailures = {};
|
|
13
|
-
var has = /* @__PURE__ */ requireHas();
|
|
14
|
-
printWarning = function(text) {
|
|
15
|
-
var message = "Warning: " + text;
|
|
16
|
-
if (typeof console !== "undefined") {
|
|
17
|
-
console.error(message);
|
|
18
|
-
}
|
|
19
|
-
try {
|
|
20
|
-
throw new Error(message);
|
|
21
|
-
} catch (x) {
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
26
|
-
if (process.env.NODE_ENV !== "production") {
|
|
27
|
-
for (var typeSpecName in typeSpecs) {
|
|
28
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
29
|
-
var error;
|
|
30
|
-
try {
|
|
31
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
32
|
-
var err = Error(
|
|
33
|
-
(componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
34
|
-
);
|
|
35
|
-
err.name = "Invariant Violation";
|
|
36
|
-
throw err;
|
|
37
|
-
}
|
|
38
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
39
|
-
} catch (ex) {
|
|
40
|
-
error = ex;
|
|
41
|
-
}
|
|
42
|
-
if (error && !(error instanceof Error)) {
|
|
43
|
-
printWarning(
|
|
44
|
-
(componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
48
|
-
loggedTypeFailures[error.message] = true;
|
|
49
|
-
var stack = getStack ? getStack() : "";
|
|
50
|
-
printWarning(
|
|
51
|
-
"Failed " + location + " type: " + error.message + (stack != null ? stack : "")
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
checkPropTypes.resetWarningCache = function() {
|
|
59
|
-
if (process.env.NODE_ENV !== "production") {
|
|
60
|
-
loggedTypeFailures = {};
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
checkPropTypes_1 = checkPropTypes;
|
|
64
|
-
return checkPropTypes_1;
|
|
65
|
-
}
|
|
66
|
-
export {
|
|
67
|
-
requireCheckPropTypes as __require
|
|
68
|
-
};
|
|
69
|
-
//# sourceMappingURL=checkPropTypes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkPropTypes.js","sources":["../../../node_modules/prop-types/checkPropTypes.js"],"sourcesContent":["/**\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"],"names":["require$$0","require$$1"],"mappings":";;;;;;;AASA,MAAI,eAAe,WAAW;AAAA,EAAA;AAE9B,MA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,WAAW;AAC5C,QAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,2BAAqB,CAAA;AAAA,IACzB;AAAA,EACA;AAEA,qBAAiB;;;","x_google_ignoreList":[0]}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { __require as requireReactPropTypesSecret } from "./lib/ReactPropTypesSecret.js";
|
|
2
|
-
var factoryWithThrowingShims;
|
|
3
|
-
var hasRequiredFactoryWithThrowingShims;
|
|
4
|
-
function requireFactoryWithThrowingShims() {
|
|
5
|
-
if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
|
|
6
|
-
hasRequiredFactoryWithThrowingShims = 1;
|
|
7
|
-
var ReactPropTypesSecret = /* @__PURE__ */ requireReactPropTypesSecret();
|
|
8
|
-
function emptyFunction() {
|
|
9
|
-
}
|
|
10
|
-
function emptyFunctionWithReset() {
|
|
11
|
-
}
|
|
12
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
13
|
-
factoryWithThrowingShims = function() {
|
|
14
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
15
|
-
if (secret === ReactPropTypesSecret) {
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
var err = new Error(
|
|
19
|
-
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
20
|
-
);
|
|
21
|
-
err.name = "Invariant Violation";
|
|
22
|
-
throw err;
|
|
23
|
-
}
|
|
24
|
-
shim.isRequired = shim;
|
|
25
|
-
function getShim() {
|
|
26
|
-
return shim;
|
|
27
|
-
}
|
|
28
|
-
var ReactPropTypes = {
|
|
29
|
-
array: shim,
|
|
30
|
-
bigint: shim,
|
|
31
|
-
bool: shim,
|
|
32
|
-
func: shim,
|
|
33
|
-
number: shim,
|
|
34
|
-
object: shim,
|
|
35
|
-
string: shim,
|
|
36
|
-
symbol: shim,
|
|
37
|
-
any: shim,
|
|
38
|
-
arrayOf: getShim,
|
|
39
|
-
element: shim,
|
|
40
|
-
elementType: shim,
|
|
41
|
-
instanceOf: getShim,
|
|
42
|
-
node: shim,
|
|
43
|
-
objectOf: getShim,
|
|
44
|
-
oneOf: getShim,
|
|
45
|
-
oneOfType: getShim,
|
|
46
|
-
shape: getShim,
|
|
47
|
-
exact: getShim,
|
|
48
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
49
|
-
resetWarningCache: emptyFunction
|
|
50
|
-
};
|
|
51
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
52
|
-
return ReactPropTypes;
|
|
53
|
-
};
|
|
54
|
-
return factoryWithThrowingShims;
|
|
55
|
-
}
|
|
56
|
-
export {
|
|
57
|
-
requireFactoryWithThrowingShims as __require
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=factoryWithThrowingShims.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"factoryWithThrowingShims.js","sources":["../../../node_modules/prop-types/factoryWithThrowingShims.js"],"sourcesContent":["/**\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"],"names":["require$$0"],"mappings":";;;;;;AASA,MAAI,uBAAuBA,4CAAA;AAE3B,WAAS,gBAAgB;AAAA,EAAA;AACzB,WAAS,yBAAyB;AAAA,EAAA;AAClC,yBAAuB,oBAAoB;AAE3C,6BAAiB,WAAW;AAC1B,aAAS,KAAK,OAAO,UAAU,eAAe,UAAU,cAAc,QAAQ;AAC5E,UAAI,WAAW,sBAAsB;AAEnC;AAAA,MACN;AACI,UAAI,MAAM,IAAI;AAAA,QACZ;AAAA;AAIF,UAAI,OAAO;AACX,YAAM;AAAA,IACV;AACE,SAAK,aAAa;AAClB,aAAS,UAAU;AACjB,aAAO;AAAA,IACX;AAGE,QAAI,iBAAiB;AAAA,MACnB,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,MAAM;AAAA,MACN,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,QAAQ;AAAA,MAER,KAAK;AAAA,MACL,SAAS;AAAA,MACT,SAAS;AAAA,MACT,aAAa;AAAA,MACb,YAAY;AAAA,MACZ,MAAM;AAAA,MACN,UAAU;AAAA,MACV,OAAO;AAAA,MACP,WAAW;AAAA,MACX,OAAO;AAAA,MACP,OAAO;AAAA,MAEP,gBAAgB;AAAA,MAChB,mBAAmB;AAAA;AAGrB,mBAAe,YAAY;AAE3B,WAAO;AAAA,EACT;;;","x_google_ignoreList":[0]}
|