@voplus/morpho-workspace 6.1.54 → 6.1.55
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/es/modules/board/components/BoardPropertiesView/index.js +3 -8
- package/es/modules/board/components/BoardPropertiesView/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingPropertiesView/index.js +7 -10
- package/es/modules/meeting/components/MeetingPropertiesView/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingsFolderProperitesView/index.js +7 -10
- package/es/modules/meeting/components/MeetingsFolderProperitesView/index.js.map +1 -1
- package/es/modules/tasks/components/TaskPropertiesView/index.js +6 -9
- package/es/modules/tasks/components/TaskPropertiesView/index.js.map +1 -1
- package/es/modules/work/components/WorkPropertiesView/index.js +2 -4
- package/es/modules/work/components/WorkPropertiesView/index.js.map +1 -1
- package/package.json +1 -1
@@ -1,13 +1,11 @@
|
|
1
1
|
import "./index.less";
|
2
|
-
import { Archive, Reload } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
3
2
|
import React, { useMemo, useState } from "react";
|
4
3
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
4
|
+
import PropertiesPanelHeader from "@voplus/morpho-document/es/components/PropertiesPanelHeader";
|
5
5
|
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
|
6
6
|
import DescriptionDocumentList from "@voplus/morpho-document/es/components/DescriptionDocumentList";
|
7
|
-
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
8
7
|
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
9
8
|
import Links from "@voplus/morpho-document/es/components/Links";
|
10
|
-
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
11
9
|
import { observe } from "@voplus/morpho-ui";
|
12
10
|
const BoardPropertiesView = (props) => {
|
13
11
|
const id = props.id;
|
@@ -16,10 +14,7 @@ const BoardPropertiesView = (props) => {
|
|
16
14
|
const [activeKey, setActiveKey] = useState();
|
17
15
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
18
16
|
React.createElement("div", { className: "module-detail-view" }, loaded && (React.createElement(React.Fragment, null,
|
19
|
-
React.createElement(
|
20
|
-
React.createElement(ToolBar, { id: id },
|
21
|
-
React.createElement(Reload, { action: onReload }),
|
22
|
-
React.createElement(Archive, null))), descriptionVisible: false }),
|
17
|
+
React.createElement(PropertiesPanelHeader, { id: id, onReload: onReload }),
|
23
18
|
React.createElement(DocumentTabs, { id: id, tabItems: [
|
24
19
|
{
|
25
20
|
key: "Details",
|
@@ -29,7 +24,7 @@ const BoardPropertiesView = (props) => {
|
|
29
24
|
{
|
30
25
|
key: "Activities",
|
31
26
|
label: "Activities",
|
32
|
-
children:
|
27
|
+
children: React.createElement(React.Fragment, null, activeKey === "Activities" ? React.createElement(ActivityLog, { id: id }) : null),
|
33
28
|
},
|
34
29
|
{
|
35
30
|
key: "Links",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/BoardPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/BoardPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,qBAAqB,MAAM,6DAA6D,CAAC;AAChG,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,uBAAuB,MAAM,+DAA+D,CAAC;AACpG,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,KAAK,MAAM,6CAA6C,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CA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AAG,CAAC,GACnC,CACc,CACjB,CACI,CACgB,CACvB,CAAC,CAAC;IACH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AACF,eAAe,mBAAmB,CAAC"}
|
@@ -1,9 +1,8 @@
|
|
1
1
|
import { Archive, Open, Print, Reload, Close, } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
2
2
|
import React, { useMemo, useState } from "react";
|
3
3
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
4
|
-
import
|
4
|
+
import PropertiesPanelHeader from "@voplus/morpho-document/es/components/PropertiesPanelHeader";
|
5
5
|
import MeetingTabs from "../MeetingTabs";
|
6
|
-
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
7
6
|
import { observe } from "@voplus/morpho-ui";
|
8
7
|
import { useMeeting } from "../../../../data/meeting";
|
9
8
|
import { useMetaStore } from "@voplus/morpho-document-core";
|
@@ -15,14 +14,12 @@ const MeetingPropertiesView = (props) => {
|
|
15
14
|
const meeting = useMeeting(id);
|
16
15
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
17
16
|
React.createElement("div", { className: "module-detail-view" }, reload && (React.createElement(React.Fragment, null,
|
18
|
-
React.createElement(
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
React.createElement(Close, null))),
|
25
|
-
} }),
|
17
|
+
React.createElement(PropertiesPanelHeader, { id: id, toolBar: React.createElement(React.Fragment, null,
|
18
|
+
React.createElement(Reload, { action: onReLoad }),
|
19
|
+
React.createElement(Open, { url: meta.getRoute(meeting) }),
|
20
|
+
React.createElement(Archive, null),
|
21
|
+
React.createElement(Print, { url: `meeting/print/${id}` }),
|
22
|
+
React.createElement(Close, null)) }),
|
26
23
|
React.createElement(MeetingTabs, { id: id, properties: true })))))));
|
27
24
|
/** reload data */
|
28
25
|
function onReLoad() {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,OAAO,EACP,IAAI,EACJ,KAAK,EACL,MAAM,EACN,KAAK,GACL,MAAM,qDAAqD,CAAC;AAC7D,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,OAAO,EACP,IAAI,EACJ,KAAK,EACL,MAAM,EACN,KAAK,GACL,MAAM,qDAAqD,CAAC;AAC7D,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,qBAAqB,MAAM,6DAA6D,CAAC;AAChG,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,MAAM,qBAAqB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACvD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3C,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC;IAC5B,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IACtE,MAAM,OAAO,GAAG,UAAU,CAAC,EAAE,CAAC,CAAC;IAE/B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,oBAAoB,IACjC,MAAM,IAAI,CACV,oBAAC,KAAK,CAAC,QAAQ;YACd,oBAAC,qBAAqB,IACrB,EAAE,EAAE,EAAE,EACN,OAAO,EACN;oBACC,oBAAC,MAAM,IAAC,MAAM,EAAE,QAAQ,GAAI;oBAC5B,oBAAC,IAAI,IAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAI;oBACrC,oBAAC,OAAO,OAAG;oBACX,oBAAC,KAAK,IAAC,GAAG,EAAE,iBAAiB,EAAE,EAAE,GAAI;oBACrC,oBAAC,KAAK,OAAG,CACP,GAEH;YACF,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CAClB,CACjB,CACI,CACgB,CACvB,CAAC,CAAC;IACH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AACF,eAAe,qBAAqB,CAAC"}
|
@@ -4,12 +4,11 @@ import React, { useMemo, useState } from "react";
|
|
4
4
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
5
5
|
import { useDocument, useMetaStore } from "@voplus/morpho-document-core";
|
6
6
|
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
|
7
|
-
import
|
7
|
+
import PropertiesPanelHeader from "@voplus/morpho-document/es/components/PropertiesPanelHeader";
|
8
8
|
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
9
9
|
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
10
10
|
import Links from "@voplus/morpho-document/es/components/Links";
|
11
11
|
import MeetingList from "../MeetingList";
|
12
|
-
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
13
12
|
import { observe } from "@voplus/morpho-ui";
|
14
13
|
const MeetingsFolderPropertiesView = (props) => {
|
15
14
|
const { id } = props;
|
@@ -20,13 +19,11 @@ const MeetingsFolderPropertiesView = (props) => {
|
|
20
19
|
const [activeKey, setActiveKey] = useState();
|
21
20
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
22
21
|
React.createElement("div", { className: "module-detail-view" }, reload && (React.createElement(React.Fragment, null,
|
23
|
-
React.createElement(
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
React.createElement(Close, null))),
|
29
|
-
} }),
|
22
|
+
React.createElement(PropertiesPanelHeader, { id: id, toolBar: React.createElement(React.Fragment, null,
|
23
|
+
React.createElement(Reload, { action: onReload }),
|
24
|
+
React.createElement(Open, { url: meta.getRoute(document) }),
|
25
|
+
React.createElement(Archive, null),
|
26
|
+
React.createElement(Close, null)) }),
|
30
27
|
React.createElement(DocumentTabs, { id: id, active: "Meetings", properties: true, tabItems: [
|
31
28
|
{
|
32
29
|
key: "Meetings",
|
@@ -42,7 +39,7 @@ const MeetingsFolderPropertiesView = (props) => {
|
|
42
39
|
{
|
43
40
|
key: "Activities",
|
44
41
|
label: "Activities",
|
45
|
-
children:
|
42
|
+
children: React.createElement(React.Fragment, null, activeKey === "Activities" ? React.createElement(ActivityLog, { id: id }) : null),
|
46
43
|
},
|
47
44
|
{
|
48
45
|
key: "Links",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingsFolderProperitesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,qDAAqD,CAAC;AACnG,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingsFolderProperitesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,qDAAqD,CAAC;AACnG,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,qBAAqB,MAAM,6DAA6D,CAAC;AAChG,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,KAAK,MAAM,6CAA6C,CAAC;AAChE,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,4BAA4B,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC9D,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC;IA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E,KAAK,EACZ,OAAO,EAAE,CAAC,SAAS,CAAC,GACnB,CACF;qBACD;oBACD;wBACC,GAAG,EAAE,YAAY;wBACjB,KAAK,EAAE,YAAY;wBACnB,QAAQ,EAAE,0CAAG,SAAS,KAAK,YAAY,CAAC,CAAC,CAAC,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,GAAI,CAAC,CAAC,CAAC,IAAI,CAAI;qBAC5E;oBACD;wBACC,GAAG,EAAE,OAAO;wBACZ,KAAK,EAAE,OAAO;wBACd,QAAQ,EAAE,oBAAC,KAAK,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,GAAI;qBAC3C;iBACD,EACD,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,GACnC,CACc,CACjB,CACI,CACgB,CACvB,CAAC,CAAC;IACH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
@@ -2,9 +2,8 @@ import "./index.less";
|
|
2
2
|
import { Archive, Open, Reload, Close } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
3
3
|
import React, { useMemo, useState } from "react";
|
4
4
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
5
|
-
import
|
5
|
+
import PropertiesPanelHeader from "@voplus/morpho-document/es/components/PropertiesPanelHeader";
|
6
6
|
import TaskTabs from "../TaskTabs";
|
7
|
-
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
8
7
|
import { observe } from "@voplus/morpho-ui";
|
9
8
|
import { useMetaStore } from "@voplus/morpho-document-core";
|
10
9
|
import { useTask } from "@voplus/morpho-document-core";
|
@@ -15,13 +14,11 @@ const TaskPropertiesView = (props) => {
|
|
15
14
|
const task = useTask(id, { reload: true, includes: "tags,task-number-reports,createdby,folder" });
|
16
15
|
const [loaded, setLoaded] = useState(true);
|
17
16
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view }, loaded && (React.createElement("div", { className: "module-detail-view" },
|
18
|
-
React.createElement(
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
React.createElement(Close, null))),
|
24
|
-
} }),
|
17
|
+
React.createElement(PropertiesPanelHeader, { id: id, toolBar: React.createElement(React.Fragment, null,
|
18
|
+
React.createElement(Reload, { action: onReload }),
|
19
|
+
React.createElement(Open, { url: meta.getRoute(task) }),
|
20
|
+
React.createElement(Archive, null),
|
21
|
+
React.createElement(Close, null)) }),
|
25
22
|
React.createElement(TaskTabs, { id: id, properties: true }))))));
|
26
23
|
/** reload data */
|
27
24
|
function onReload() {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,qDAAqD,CAAC;AACnG,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,qDAAqD,CAAC;AACnG,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,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,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import "./index.less";
|
2
2
|
import React, { useMemo, useState } from "react";
|
3
3
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
4
|
-
import
|
4
|
+
import PropertiesPanelHeader from "@voplus/morpho-document/es/components/PropertiesPanelHeader";
|
5
5
|
import WorkTabs from "../WorkTabs";
|
6
6
|
import { observe } from "@voplus/morpho-ui";
|
7
7
|
const WorkPropertiesView = (props) => {
|
@@ -10,9 +10,7 @@ const WorkPropertiesView = (props) => {
|
|
10
10
|
const [loaded, setLoaded] = useState(true);
|
11
11
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
12
12
|
React.createElement("div", { className: "module-detail-view work-properties-view" }, loaded && (React.createElement(React.Fragment, null,
|
13
|
-
React.createElement(
|
14
|
-
toolBarProps: { closeAside: true, close: true, onReload: onReload },
|
15
|
-
} }),
|
13
|
+
React.createElement(PropertiesPanelHeader, { id: id, onReload: onReload }),
|
16
14
|
React.createElement(WorkTabs, { id: id, propertie: true })))))));
|
17
15
|
/** reload data */
|
18
16
|
function onReload() {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRo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