@100mslive/roomkit-react 0.3.22-alpha.1 → 0.3.22-alpha.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/ConferenceScreen-CSVWECB5.js +1778 -0
- package/dist/ConferenceScreen-CSVWECB5.js.map +7 -0
- package/dist/ConferenceScreen-YRURU3RV.css +2780 -0
- package/dist/{HLSView-Z2JID2W7.css.map → ConferenceScreen-YRURU3RV.css.map} +1 -1
- package/dist/EmbedView-N2E4DZQA.js +17 -0
- package/dist/EmbedView-N2E4DZQA.js.map +7 -0
- package/dist/EmbedView-S54NTHF5.css +2780 -0
- package/dist/EmbedView-S54NTHF5.css.map +7 -0
- package/dist/EmojiReaction-3X4ST4AU.js +11 -0
- package/dist/EmojiReaction-3X4ST4AU.js.map +7 -0
- package/dist/{HLSView-LCFZPBH3.js → HLSView-EYGGK6BH.js} +38 -24
- package/dist/HLSView-EYGGK6BH.js.map +7 -0
- package/dist/{HLSView-Z2JID2W7.css → HLSView-LBTFLMI4.css} +3 -3
- package/dist/HLSView-LBTFLMI4.css.map +7 -0
- package/dist/LeaveScreen-D6XU64JL.js +556 -0
- package/dist/LeaveScreen-D6XU64JL.js.map +7 -0
- package/dist/LeaveScreen-ZAG5UJZL.css +2780 -0
- package/dist/LeaveScreen-ZAG5UJZL.css.map +7 -0
- package/dist/MoreSettings-R7B4BSNT.css +2780 -0
- package/dist/MoreSettings-R7B4BSNT.css.map +7 -0
- package/dist/MoreSettings-TBJVM7OY.js +16 -0
- package/dist/MoreSettings-TBJVM7OY.js.map +7 -0
- package/dist/PDFView-JOIJDP65.js +84 -0
- package/dist/PDFView-JOIJDP65.js.map +7 -0
- package/dist/PDFView-RMR33QH4.css +2780 -0
- package/dist/PDFView-RMR33QH4.css.map +7 -0
- package/dist/Polls-IN3V2HFI.js +1584 -0
- package/dist/Polls-IN3V2HFI.js.map +7 -0
- package/dist/Polls-JW7JWGTE.css +2780 -0
- package/dist/Polls-JW7JWGTE.css.map +7 -0
- package/dist/Prebuilt/components/Notifications/RoleChangeNotification.d.ts +1 -0
- package/dist/RaiseHand-WES4KKMD.js +10 -0
- package/dist/RaiseHand-WES4KKMD.js.map +7 -0
- package/dist/RoleProminence-4ZBDBCMU.css +2780 -0
- package/dist/RoleProminence-4ZBDBCMU.css.map +7 -0
- package/dist/RoleProminence-PB32DLIB.js +116 -0
- package/dist/RoleProminence-PB32DLIB.js.map +7 -0
- package/dist/RoomDetailsPane-CZH2SNLE.js +53 -0
- package/dist/RoomDetailsPane-CZH2SNLE.js.map +7 -0
- package/dist/RoomDetailsPane-XWH2KEFI.css +2780 -0
- package/dist/RoomDetailsPane-XWH2KEFI.css.map +7 -0
- package/dist/ScreenshareLayout-XVENPVK3.js +358 -0
- package/dist/ScreenshareLayout-XVENPVK3.js.map +7 -0
- package/dist/ScreenshareLayout-YUW3KHAB.css +2780 -0
- package/dist/ScreenshareLayout-YUW3KHAB.css.map +7 -0
- package/dist/SidePaneTabs-QXCDHOGG.js +1354 -0
- package/dist/SidePaneTabs-QXCDHOGG.js.map +7 -0
- package/dist/SidePaneTabs-WQGVOWRP.css +2780 -0
- package/dist/SidePaneTabs-WQGVOWRP.css.map +7 -0
- package/dist/VBPicker-XN74N67R.js +322 -0
- package/dist/VBPicker-XN74N67R.js.map +7 -0
- package/dist/VBPicker-YDM2YIOM.css +2780 -0
- package/dist/VBPicker-YDM2YIOM.css.map +7 -0
- package/dist/WaitingView-77PRTIBV.js +10 -0
- package/dist/WaitingView-77PRTIBV.js.map +7 -0
- package/dist/WhiteboardLayout-FZC7SOSG.js +96 -0
- package/dist/WhiteboardLayout-FZC7SOSG.js.map +7 -0
- package/dist/WhiteboardLayout-MNTUWEVK.css +2780 -0
- package/dist/WhiteboardLayout-MNTUWEVK.css.map +7 -0
- package/dist/android-perm-1.png +0 -0
- package/dist/audio-level.png +0 -0
- package/dist/chunk-26D5FDBW.js +16812 -0
- package/dist/chunk-26D5FDBW.js.map +7 -0
- package/dist/chunk-2J5WS52X.js +2595 -0
- package/dist/chunk-2J5WS52X.js.map +7 -0
- package/dist/chunk-2LWOQMYY.js +30 -0
- package/dist/chunk-2LWOQMYY.js.map +7 -0
- package/dist/chunk-3MRQJSIY.js +171 -0
- package/dist/chunk-3MRQJSIY.js.map +7 -0
- package/dist/chunk-4X4WB7X3.js +98 -0
- package/dist/chunk-4X4WB7X3.js.map +7 -0
- package/dist/chunk-7QZJMUHM.js +90 -0
- package/dist/chunk-7QZJMUHM.js.map +7 -0
- package/dist/chunk-ABCV7TX5.js +71 -0
- package/dist/chunk-ABCV7TX5.js.map +7 -0
- package/dist/chunk-BQOT4DK7.js +418 -0
- package/dist/chunk-BQOT4DK7.js.map +7 -0
- package/dist/chunk-ENHSO6YN.js +6337 -0
- package/dist/chunk-ENHSO6YN.js.map +7 -0
- package/dist/chunk-JKWX7W4K.js +161 -0
- package/dist/chunk-JKWX7W4K.js.map +7 -0
- package/dist/chunk-LO4BXA4G.js +114 -0
- package/dist/chunk-LO4BXA4G.js.map +7 -0
- package/dist/chunk-MRVWNFXC.js +59 -0
- package/dist/chunk-MRVWNFXC.js.map +7 -0
- package/dist/chunk-OA4HW7HW.js +262 -0
- package/dist/chunk-OA4HW7HW.js.map +7 -0
- package/dist/chunk-PJQSPAFZ.js +178 -0
- package/dist/chunk-PJQSPAFZ.js.map +7 -0
- package/dist/chunk-QHQKY35W.js +830 -0
- package/dist/chunk-QHQKY35W.js.map +7 -0
- package/dist/chunk-QKXHQ6DV.js +254 -0
- package/dist/chunk-QKXHQ6DV.js.map +7 -0
- package/dist/chunk-RTWNTT77.js +62 -0
- package/dist/chunk-RTWNTT77.js.map +7 -0
- package/dist/chunk-TBXRX6MK.js +576 -0
- package/dist/chunk-TBXRX6MK.js.map +7 -0
- package/dist/chunk-TCOPR3BK.js +487 -0
- package/dist/chunk-TCOPR3BK.js.map +7 -0
- package/dist/chunk-VKORP2LF.js +41 -0
- package/dist/chunk-VKORP2LF.js.map +7 -0
- package/dist/chunk-YYVDCP5Z.js +136 -0
- package/dist/chunk-YYVDCP5Z.js.map +7 -0
- package/dist/empty-chat.svg +12 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +17888 -17792
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +25 -15
- package/dist/ios-perm-0.png +0 -0
- package/dist/meta.cjs.json +5326 -5184
- package/dist/meta.esbuild.json +8960 -6320
- package/dist/pdf-share.png +0 -0
- package/dist/screen-share.png +0 -0
- package/dist/transaction_error.svg +12 -0
- package/package.json +7 -7
- package/src/Prebuilt/App.tsx +6 -2
- package/src/Prebuilt/components/Chat/Chat.tsx +12 -8
- package/src/Prebuilt/components/Chat/ChatFooter.tsx +1 -1
- package/src/Prebuilt/components/Notifications/Notifications.tsx +2 -0
- package/src/Prebuilt/components/Notifications/PeerNotifications.tsx +0 -14
- package/src/Prebuilt/components/Notifications/RoleChangeNotification.tsx +24 -0
- package/src/Prebuilt/components/VideoLayouts/GridLayout.tsx +43 -31
- package/src/Prebuilt/layouts/HLSView.jsx +1 -0
- package/src/Prebuilt/layouts/PDFView.jsx +1 -0
- package/src/Prebuilt/layouts/SidePane.tsx +12 -6
- package/src/Prebuilt/layouts/VideoStreamingSection.tsx +35 -34
- package/dist/HLSView-LCFZPBH3.js.map +0 -7
- package/dist/chunk-CRGZUJSX.js +0 -34811
- package/dist/chunk-CRGZUJSX.js.map +0 -7
@@ -0,0 +1,171 @@
|
|
1
|
+
import {
|
2
|
+
Pagination,
|
3
|
+
usePagesWithTiles,
|
4
|
+
useVideoTileContext
|
5
|
+
} from "./chunk-PJQSPAFZ.js";
|
6
|
+
import {
|
7
|
+
VideoTile_default
|
8
|
+
} from "./chunk-26D5FDBW.js";
|
9
|
+
import {
|
10
|
+
Box,
|
11
|
+
Flex
|
12
|
+
} from "./chunk-7QZJMUHM.js";
|
13
|
+
import {
|
14
|
+
APP_DATA,
|
15
|
+
__spreadProps,
|
16
|
+
__spreadValues,
|
17
|
+
config,
|
18
|
+
init_define_process_env
|
19
|
+
} from "./chunk-TBXRX6MK.js";
|
20
|
+
|
21
|
+
// src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx
|
22
|
+
init_define_process_env();
|
23
|
+
import React from "react";
|
24
|
+
var Root = ({
|
25
|
+
children,
|
26
|
+
edgeToEdge,
|
27
|
+
hasSidebar
|
28
|
+
}) => {
|
29
|
+
return /* @__PURE__ */ React.createElement(
|
30
|
+
Flex,
|
31
|
+
{
|
32
|
+
direction: hasSidebar ? "row" : "column",
|
33
|
+
css: { h: "100%", flex: "1 1 0", minWidth: 0, gap: "$6", "@md": { gap: edgeToEdge ? 0 : "$6" } }
|
34
|
+
},
|
35
|
+
children
|
36
|
+
);
|
37
|
+
};
|
38
|
+
var ProminentSection = ({ children, css = {} }) => {
|
39
|
+
return /* @__PURE__ */ React.createElement(Flex, { direction: "column", css: __spreadValues({ flex: "1 1 0", gap: "$2", minHeight: 0 }, css) }, children);
|
40
|
+
};
|
41
|
+
var SecondarySection = ({
|
42
|
+
tiles,
|
43
|
+
children,
|
44
|
+
edgeToEdge,
|
45
|
+
hasSidebar
|
46
|
+
}) => {
|
47
|
+
const tileLayoutProps = useVideoTileContext();
|
48
|
+
if (!(tiles == null ? void 0 : tiles.length)) {
|
49
|
+
return null;
|
50
|
+
}
|
51
|
+
const gridStyles = hasSidebar ? {
|
52
|
+
gridTemplateColumns: "1fr",
|
53
|
+
gridTemplateRows: `repeat(${tiles.length}, minmax(0, 1fr))`,
|
54
|
+
maxHeight: "100%",
|
55
|
+
width: 240
|
56
|
+
} : {
|
57
|
+
gridTemplateRows: React.Children.count(children) > 0 ? "136px auto" : "154px",
|
58
|
+
gridTemplateColumns: `repeat(${tiles.length}, minmax(0, 1fr))`
|
59
|
+
};
|
60
|
+
return /* @__PURE__ */ React.createElement(
|
61
|
+
Box,
|
62
|
+
{
|
63
|
+
css: __spreadProps(__spreadValues({
|
64
|
+
display: "grid",
|
65
|
+
margin: "auto",
|
66
|
+
gap: hasSidebar ? "$8" : "$2 $4",
|
67
|
+
placeItems: "center"
|
68
|
+
}, gridStyles), {
|
69
|
+
"@md": { gap: edgeToEdge ? 0 : "$4" }
|
70
|
+
})
|
71
|
+
},
|
72
|
+
tiles.map((tile) => {
|
73
|
+
var _a, _b, _c, _d;
|
74
|
+
return /* @__PURE__ */ React.createElement(
|
75
|
+
VideoTile_default,
|
76
|
+
__spreadValues({
|
77
|
+
key: ((_a = tile.track) == null ? void 0 : _a.id) || ((_b = tile.peer) == null ? void 0 : _b.id),
|
78
|
+
peerId: (_c = tile.peer) == null ? void 0 : _c.id,
|
79
|
+
trackId: (_d = tile.track) == null ? void 0 : _d.id,
|
80
|
+
rootCSS: __spreadProps(__spreadValues({
|
81
|
+
padding: 0,
|
82
|
+
maxWidth: 240,
|
83
|
+
aspectRatio: "16 / 9"
|
84
|
+
}, hasSidebar ? { w: "100%" } : { h: "100%" }), {
|
85
|
+
"@md": { aspectRatio: "1" }
|
86
|
+
}),
|
87
|
+
objectFit: "contain"
|
88
|
+
}, tileLayoutProps)
|
89
|
+
);
|
90
|
+
}),
|
91
|
+
children && /* @__PURE__ */ React.createElement(Box, { css: { gridColumn: hasSidebar ? 1 : `1/span ${tiles.length}` } }, children)
|
92
|
+
);
|
93
|
+
};
|
94
|
+
var ProminenceLayout = {
|
95
|
+
Root,
|
96
|
+
ProminentSection,
|
97
|
+
SecondarySection
|
98
|
+
};
|
99
|
+
|
100
|
+
// src/Prebuilt/components/SecondaryTiles.tsx
|
101
|
+
init_define_process_env();
|
102
|
+
import React2, { useEffect, useRef, useState } from "react";
|
103
|
+
import { useMedia } from "react-use";
|
104
|
+
import { selectAppData, selectSessionStore, selectTrackByID, useHMSStore } from "@100mslive/react-sdk";
|
105
|
+
var SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }) => {
|
106
|
+
var _a, _b;
|
107
|
+
const isMobile = useMedia(config.media.md);
|
108
|
+
const maxTileCount = isMobile ? 2 : 4;
|
109
|
+
const [page, setPage] = useState(0);
|
110
|
+
const pinnedTrackId = useHMSStore(selectAppData(APP_DATA.pinnedTrackId));
|
111
|
+
const spotlightPeerId = useHMSStore(selectSessionStore("spotlight" /* SPOTLIGHT */));
|
112
|
+
const activeScreensharePeerId = useHMSStore(selectAppData(APP_DATA.activeScreensharePeerId));
|
113
|
+
const pinnedPeer = (_a = useHMSStore(selectTrackByID(pinnedTrackId))) == null ? void 0 : _a.peerId;
|
114
|
+
const pageChangedAfterPinning = useRef(false);
|
115
|
+
const pagesWithTiles = usePagesWithTiles({
|
116
|
+
peers: spotlightPeerId || pinnedPeer ? [...peers].sort((p1, p2) => {
|
117
|
+
if (activeScreensharePeerId === p1.id) {
|
118
|
+
return -1;
|
119
|
+
}
|
120
|
+
if (activeScreensharePeerId === p2.id) {
|
121
|
+
return 1;
|
122
|
+
}
|
123
|
+
const peerIdList = [pinnedPeer, spotlightPeerId];
|
124
|
+
if (peerIdList.includes(p1.id)) {
|
125
|
+
return -1;
|
126
|
+
}
|
127
|
+
if (peerIdList.includes(p2.id)) {
|
128
|
+
return 1;
|
129
|
+
}
|
130
|
+
return 0;
|
131
|
+
}) : peers,
|
132
|
+
maxTileCount
|
133
|
+
});
|
134
|
+
const pageSize = ((_b = pagesWithTiles[0]) == null ? void 0 : _b.length) || 0;
|
135
|
+
useEffect(() => {
|
136
|
+
var _a2;
|
137
|
+
if (peers.length > 0 && !((_a2 = pagesWithTiles[page]) == null ? void 0 : _a2.length)) {
|
138
|
+
setPage(Math.max(0, page - 1));
|
139
|
+
}
|
140
|
+
}, [peers, page, pagesWithTiles]);
|
141
|
+
useEffect(() => {
|
142
|
+
if (pageSize > 0) {
|
143
|
+
onPageSize == null ? void 0 : onPageSize(pageSize);
|
144
|
+
}
|
145
|
+
}, [pageSize, onPageSize]);
|
146
|
+
useEffect(() => {
|
147
|
+
if ((pinnedPeer || spotlightPeerId) && page !== 0 && !pageChangedAfterPinning.current) {
|
148
|
+
setPage(0);
|
149
|
+
pageChangedAfterPinning.current = true;
|
150
|
+
} else if (!pinnedPeer && !spotlightPeerId) {
|
151
|
+
pageChangedAfterPinning.current = false;
|
152
|
+
}
|
153
|
+
}, [pinnedPeer, spotlightPeerId, page]);
|
154
|
+
return /* @__PURE__ */ React2.createElement(ProminenceLayout.SecondarySection, { tiles: pagesWithTiles[page], edgeToEdge, hasSidebar }, !edgeToEdge && /* @__PURE__ */ React2.createElement(
|
155
|
+
Pagination,
|
156
|
+
{
|
157
|
+
page,
|
158
|
+
onPageChange: (page2) => {
|
159
|
+
setPage(page2);
|
160
|
+
onPageChange == null ? void 0 : onPageChange(page2);
|
161
|
+
},
|
162
|
+
numPages: pagesWithTiles.length
|
163
|
+
}
|
164
|
+
));
|
165
|
+
};
|
166
|
+
|
167
|
+
export {
|
168
|
+
ProminenceLayout,
|
169
|
+
SecondaryTiles
|
170
|
+
};
|
171
|
+
//# sourceMappingURL=chunk-3MRQJSIY.js.map
|
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx", "../src/Prebuilt/components/SecondaryTiles.tsx"],
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { TrackWithPeerAndDimensions } from '@100mslive/react-sdk';\nimport { Box, Flex } from '../../../Layout';\nimport { CSS } from '../../../Theme';\n// @ts-ignore: No implicit Any\nimport VideoTile from '../VideoTile';\nimport { useVideoTileContext } from '../hooks/useVideoTileLayout';\n\nconst Root = ({\n children,\n edgeToEdge,\n hasSidebar,\n}: React.PropsWithChildren<{ edgeToEdge?: boolean; hasSidebar?: boolean }>) => {\n return (\n <Flex\n direction={hasSidebar ? 'row' : 'column'}\n css={{ h: '100%', flex: '1 1 0', minWidth: 0, gap: '$6', '@md': { gap: edgeToEdge ? 0 : '$6' } }}\n >\n {children}\n </Flex>\n );\n};\n\nconst ProminentSection = ({ children, css = {} }: React.PropsWithChildren<{ css?: CSS }>) => {\n return (\n <Flex direction=\"column\" css={{ flex: '1 1 0', gap: '$2', minHeight: 0, ...css }}>\n {children}\n </Flex>\n );\n};\n\nconst SecondarySection = ({\n tiles,\n children,\n edgeToEdge,\n hasSidebar,\n}: React.PropsWithChildren<{ tiles: TrackWithPeerAndDimensions[]; edgeToEdge?: boolean; hasSidebar?: boolean }>) => {\n const tileLayoutProps = useVideoTileContext();\n if (!tiles?.length) {\n return null;\n }\n const gridStyles = hasSidebar\n ? {\n gridTemplateColumns: '1fr',\n gridTemplateRows: `repeat(${tiles.length}, minmax(0, 1fr))`,\n maxHeight: '100%',\n width: 240,\n }\n : {\n gridTemplateRows: React.Children.count(children) > 0 ? '136px auto' : '154px',\n gridTemplateColumns: `repeat(${tiles.length}, minmax(0, 1fr))`,\n };\n return (\n <Box\n css={{\n display: 'grid',\n margin: 'auto',\n gap: hasSidebar ? '$8' : '$2 $4',\n placeItems: 'center',\n ...gridStyles,\n '@md': { gap: edgeToEdge ? 0 : '$4' },\n }}\n >\n {tiles.map(tile => {\n return (\n <VideoTile\n key={tile.track?.id || tile.peer?.id}\n peerId={tile.peer?.id}\n trackId={tile.track?.id}\n rootCSS={{\n padding: 0,\n maxWidth: 240,\n aspectRatio: '16 / 9',\n ...(hasSidebar ? { w: '100%' } : { h: '100%' }),\n '@md': { aspectRatio: '1' },\n }}\n objectFit=\"contain\"\n {...tileLayoutProps}\n />\n );\n })}\n {children && <Box css={{ gridColumn: hasSidebar ? 1 : `1/span ${tiles.length}` }}>{children}</Box>}\n </Box>\n );\n};\n\nexport const ProminenceLayout = {\n Root,\n ProminentSection,\n SecondarySection,\n};\n", "import React, { useEffect, useRef, useState } from 'react';\nimport { useMedia } from 'react-use';\nimport { selectAppData, selectSessionStore, selectTrackByID, useHMSStore } from '@100mslive/react-sdk';\nimport { LayoutProps } from './VideoLayouts/interface';\nimport { ProminenceLayout } from './VideoLayouts/ProminenceLayout';\nimport { config as cssConfig } from '../../Theme';\nimport { Pagination } from './Pagination';\nimport { usePagesWithTiles } from './hooks/useTileLayout';\nimport { APP_DATA, SESSION_STORE_KEY } from '../common/constants';\n\nexport const SecondaryTiles = ({ peers, onPageChange, onPageSize, edgeToEdge, hasSidebar }: LayoutProps) => {\n const isMobile = useMedia(cssConfig.media.md);\n const maxTileCount = isMobile ? 2 : 4;\n const [page, setPage] = useState(0);\n const pinnedTrackId = useHMSStore(selectAppData(APP_DATA.pinnedTrackId));\n const spotlightPeerId = useHMSStore(selectSessionStore(SESSION_STORE_KEY.SPOTLIGHT));\n const activeScreensharePeerId = useHMSStore(selectAppData(APP_DATA.activeScreensharePeerId));\n const pinnedPeer = useHMSStore(selectTrackByID(pinnedTrackId))?.peerId;\n const pageChangedAfterPinning = useRef(false);\n const pagesWithTiles = usePagesWithTiles({\n peers:\n spotlightPeerId || pinnedPeer\n ? [...peers].sort((p1, p2) => {\n if (activeScreensharePeerId === p1.id) {\n return -1;\n }\n if (activeScreensharePeerId === p2.id) {\n return 1;\n }\n const peerIdList = [pinnedPeer, spotlightPeerId];\n // put active screenshare peer, pinned peer, spotlight peer at first\n if (peerIdList.includes(p1.id)) {\n return -1;\n }\n if (peerIdList.includes(p2.id)) {\n return 1;\n }\n return 0;\n })\n : peers,\n maxTileCount,\n });\n const pageSize = pagesWithTiles[0]?.length || 0;\n\n // Handles final peer leaving from the last page\n useEffect(() => {\n if (peers.length > 0 && !pagesWithTiles[page]?.length) {\n setPage(Math.max(0, page - 1));\n }\n }, [peers, page, pagesWithTiles]);\n\n useEffect(() => {\n if (pageSize > 0) {\n onPageSize?.(pageSize);\n }\n }, [pageSize, onPageSize]);\n\n useEffect(() => {\n if ((pinnedPeer || spotlightPeerId) && page !== 0 && !pageChangedAfterPinning.current) {\n setPage(0);\n pageChangedAfterPinning.current = true;\n } else if (!pinnedPeer && !spotlightPeerId) {\n pageChangedAfterPinning.current = false;\n }\n }, [pinnedPeer, spotlightPeerId, page]);\n\n return (\n <ProminenceLayout.SecondarySection tiles={pagesWithTiles[page]} edgeToEdge={edgeToEdge} hasSidebar={hasSidebar}>\n {!edgeToEdge && (\n <Pagination\n page={page}\n onPageChange={page => {\n setPage(page);\n onPageChange?.(page);\n }}\n numPages={pagesWithTiles.length}\n />\n )}\n </ProminenceLayout.SecondarySection>\n );\n};\n"],
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,OAAO,WAAW;AAQlB,IAAM,OAAO,CAAC;AAAA,EACZ;AAAA,EACA;AAAA,EACA;AACF,MAA+E;AAC7E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,aAAa,QAAQ;AAAA,MAChC,KAAK,EAAE,GAAG,QAAQ,MAAM,SAAS,UAAU,GAAG,KAAK,MAAM,OAAO,EAAE,KAAK,aAAa,IAAI,KAAK,EAAE;AAAA;AAAA,IAE9F;AAAA,EACH;AAEJ;AAEA,IAAM,mBAAmB,CAAC,EAAE,UAAU,MAAM,CAAC,EAAE,MAA8C;AAC3F,SACE,oCAAC,QAAK,WAAU,UAAS,KAAK,iBAAE,MAAM,SAAS,KAAK,MAAM,WAAW,KAAM,QACxE,QACH;AAEJ;AAEA,IAAM,mBAAmB,CAAC;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAoH;AAClH,QAAM,kBAAkB,oBAAoB;AAC5C,MAAI,EAAC,+BAAO,SAAQ;AAClB,WAAO;AAAA,EACT;AACA,QAAM,aAAa,aACf;AAAA,IACE,qBAAqB;AAAA,IACrB,kBAAkB,UAAU,MAAM,MAAM;AAAA,IACxC,WAAW;AAAA,IACX,OAAO;AAAA,EACT,IACA;AAAA,IACE,kBAAkB,MAAM,SAAS,MAAM,QAAQ,IAAI,IAAI,eAAe;AAAA,IACtE,qBAAqB,UAAU,MAAM,MAAM;AAAA,EAC7C;AACJ,SACE;AAAA,IAAC;AAAA;AAAA,MACC,KAAK;AAAA,QACH,SAAS;AAAA,QACT,QAAQ;AAAA,QACR,KAAK,aAAa,OAAO;AAAA,QACzB,YAAY;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,IAAC;AAAA;AAAA,MACC;AAAA,MACA,cAAc,CAAAC,UAAQ;AACpB,gBAAQA,KAAI;AACZ,qDAAeA;AAAA,MACjB;AAAA,MACA,UAAU,eAAe;AAAA;AAAA,EAC3B,CAEJ;AAEJ;",
|
6
|
+
"names": ["React", "_a", "React", "page"]
|
7
|
+
}
|
@@ -0,0 +1,98 @@
|
|
1
|
+
import {
|
2
|
+
ProminenceLayout,
|
3
|
+
SecondaryTiles
|
4
|
+
} from "./chunk-3MRQJSIY.js";
|
5
|
+
import {
|
6
|
+
ToastManager
|
7
|
+
} from "./chunk-BQOT4DK7.js";
|
8
|
+
import {
|
9
|
+
Box
|
10
|
+
} from "./chunk-7QZJMUHM.js";
|
11
|
+
import {
|
12
|
+
useResetEmbedConfig,
|
13
|
+
useSetAppDataByKey
|
14
|
+
} from "./chunk-ENHSO6YN.js";
|
15
|
+
import {
|
16
|
+
APP_DATA,
|
17
|
+
__async,
|
18
|
+
init_define_process_env
|
19
|
+
} from "./chunk-TBXRX6MK.js";
|
20
|
+
|
21
|
+
// src/Prebuilt/layouts/EmbedView.jsx
|
22
|
+
init_define_process_env();
|
23
|
+
import React, { useEffect, useMemo } from "react";
|
24
|
+
import { selectAppData, selectPeers, selectPeerScreenSharing, useEmbedShare, useHMSStore } from "@100mslive/react-sdk";
|
25
|
+
var EmbedView = () => {
|
26
|
+
return /* @__PURE__ */ React.createElement(EmbedScreenShareView, null, /* @__PURE__ */ React.createElement(EmbedComponent, null));
|
27
|
+
};
|
28
|
+
var EmbedScreenShareView = ({ children }) => {
|
29
|
+
const peers = useHMSStore(selectPeers);
|
30
|
+
const peerPresenting = useHMSStore(selectPeerScreenSharing);
|
31
|
+
const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);
|
32
|
+
const smallTilePeers = useMemo(() => {
|
33
|
+
const smallTilePeers2 = peers.filter((peer) => peer.id !== (peerPresenting == null ? void 0 : peerPresenting.id));
|
34
|
+
return smallTilePeers2;
|
35
|
+
}, [peers, peerPresenting]);
|
36
|
+
useEffect(() => {
|
37
|
+
setActiveScreenSharePeer(peerPresenting == null ? void 0 : peerPresenting.id);
|
38
|
+
return () => {
|
39
|
+
setActiveScreenSharePeer("");
|
40
|
+
};
|
41
|
+
}, [peerPresenting == null ? void 0 : peerPresenting.id, setActiveScreenSharePeer]);
|
42
|
+
return /* @__PURE__ */ React.createElement(ProminenceLayout.Root, null, /* @__PURE__ */ React.createElement(ProminenceLayout.ProminentSection, null, children), /* @__PURE__ */ React.createElement(SecondaryTiles, { peers: smallTilePeers }));
|
43
|
+
};
|
44
|
+
var EmbedComponent = () => {
|
45
|
+
const embedConfig = useHMSStore(selectAppData(APP_DATA.embedConfig));
|
46
|
+
const resetConfig = useResetEmbedConfig();
|
47
|
+
const { iframeRef, startEmbedShare, isEmbedShareInProgress } = useEmbedShare(resetConfig);
|
48
|
+
useEffect(() => {
|
49
|
+
(() => __async(void 0, null, function* () {
|
50
|
+
if (embedConfig && !isEmbedShareInProgress) {
|
51
|
+
try {
|
52
|
+
yield startEmbedShare(embedConfig);
|
53
|
+
} catch (err) {
|
54
|
+
resetConfig();
|
55
|
+
ToastManager.addToast({
|
56
|
+
title: `Error while sharing embed url ${err.message || ""}`,
|
57
|
+
variant: "error"
|
58
|
+
});
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}))();
|
62
|
+
}, [isEmbedShareInProgress, embedConfig, startEmbedShare, resetConfig]);
|
63
|
+
return /* @__PURE__ */ React.createElement(
|
64
|
+
Box,
|
65
|
+
{
|
66
|
+
css: {
|
67
|
+
mx: "$8",
|
68
|
+
flex: "3 1 0",
|
69
|
+
"@lg": {
|
70
|
+
flex: "2 1 0",
|
71
|
+
display: "flex",
|
72
|
+
alignItems: "center"
|
73
|
+
}
|
74
|
+
}
|
75
|
+
},
|
76
|
+
/* @__PURE__ */ React.createElement(
|
77
|
+
"iframe",
|
78
|
+
{
|
79
|
+
title: "Embed View",
|
80
|
+
ref: iframeRef,
|
81
|
+
style: {
|
82
|
+
width: "100%",
|
83
|
+
height: "100%",
|
84
|
+
border: 0,
|
85
|
+
borderRadius: "0.75rem"
|
86
|
+
},
|
87
|
+
allow: "autoplay; clipboard-write;",
|
88
|
+
referrerPolicy: "no-referrer"
|
89
|
+
}
|
90
|
+
)
|
91
|
+
);
|
92
|
+
};
|
93
|
+
|
94
|
+
export {
|
95
|
+
EmbedView,
|
96
|
+
EmbedScreenShareView
|
97
|
+
};
|
98
|
+
//# sourceMappingURL=chunk-4X4WB7X3.js.map
|
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../src/Prebuilt/layouts/EmbedView.jsx"],
|
4
|
+
"sourcesContent": ["import React, { useEffect, useMemo } from 'react';\nimport { selectAppData, selectPeers, selectPeerScreenSharing, useEmbedShare, useHMSStore } from '@100mslive/react-sdk';\nimport { SecondaryTiles } from '../components/SecondaryTiles';\nimport { ToastManager } from '../components/Toast/ToastManager';\nimport { ProminenceLayout } from '../components/VideoLayouts/ProminenceLayout';\nimport { Box } from '../../Layout';\nimport { useResetEmbedConfig, useSetAppDataByKey } from '../components/AppData/useUISettings';\nimport { APP_DATA } from '../common/constants';\n\nexport const EmbedView = () => {\n return (\n <EmbedScreenShareView>\n <EmbedComponent />\n </EmbedScreenShareView>\n );\n};\n\nexport const EmbedScreenShareView = ({ children }) => {\n const peers = useHMSStore(selectPeers);\n\n const peerPresenting = useHMSStore(selectPeerScreenSharing);\n const [, setActiveScreenSharePeer] = useSetAppDataByKey(APP_DATA.activeScreensharePeerId);\n\n const smallTilePeers = useMemo(() => {\n const smallTilePeers = peers.filter(peer => peer.id !== peerPresenting?.id);\n return smallTilePeers;\n }, [peers, peerPresenting]);\n\n useEffect(() => {\n setActiveScreenSharePeer(peerPresenting?.id);\n return () => {\n setActiveScreenSharePeer('');\n };\n }, [peerPresenting?.id, setActiveScreenSharePeer]);\n return (\n <ProminenceLayout.Root>\n <ProminenceLayout.ProminentSection>{children}</ProminenceLayout.ProminentSection>\n <SecondaryTiles peers={smallTilePeers} />\n </ProminenceLayout.Root>\n );\n};\n/**\n * EmbedView is responsible for rendering the iframe and managing the screen sharing functionality.\n */\nconst EmbedComponent = () => {\n const embedConfig = useHMSStore(selectAppData(APP_DATA.embedConfig));\n const resetConfig = useResetEmbedConfig();\n\n // need to send resetConfig to clear configuration, if stop screenshare occurs.\n const { iframeRef, startEmbedShare, isEmbedShareInProgress } = useEmbedShare(resetConfig);\n\n useEffect(() => {\n (async () => {\n if (embedConfig && !isEmbedShareInProgress) {\n try {\n await startEmbedShare(embedConfig);\n } catch (err) {\n resetConfig();\n ToastManager.addToast({\n title: `Error while sharing embed url ${err.message || ''}`,\n variant: 'error',\n });\n }\n }\n })();\n }, [isEmbedShareInProgress, embedConfig, startEmbedShare, resetConfig]);\n\n return (\n <Box\n css={{\n mx: '$8',\n flex: '3 1 0',\n '@lg': {\n flex: '2 1 0',\n display: 'flex',\n alignItems: 'center',\n },\n }}\n >\n <iframe\n title=\"Embed View\"\n ref={iframeRef}\n style={{\n width: '100%',\n height: '100%',\n border: 0,\n borderRadius: '0.75rem',\n }}\n allow=\"autoplay; clipboard-write;\"\n referrerPolicy=\"no-referrer\"\n />\n </Box>\n );\n};\n"],
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,OAAO,SAAS,WAAW,eAAe;AAC1C,SAAS,eAAe,aAAa,yBAAyB,eAAe,mBAAmB;AAQzF,IAAM,YAAY,MAAM;AAC7B,SACE,oCAAC,4BACC,oCAAC,oBAAe,CAClB;AAEJ;AAEO,IAAM,uBAAuB,CAAC,EAAE,SAAS,MAAM;AACpD,QAAM,QAAQ,YAAY,WAAW;AAErC,QAAM,iBAAiB,YAAY,uBAAuB;AAC1D,QAAM,CAAC,EAAE,wBAAwB,IAAI,mBAAmB,SAAS,uBAAuB;AAExF,QAAM,iBAAiB,QAAQ,MAAM;AACnC,UAAMA,kBAAiB,MAAM,OAAO,UA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AAe;AAAA;AAAA,IACjB;AAAA,EACF;AAEJ;",
|
6
|
+
"names": ["smallTilePeers"]
|
7
|
+
}
|
@@ -0,0 +1,90 @@
|
|
1
|
+
import {
|
2
|
+
init_define_process_env,
|
3
|
+
styled
|
4
|
+
} from "./chunk-TBXRX6MK.js";
|
5
|
+
|
6
|
+
// src/Layout/Flex.tsx
|
7
|
+
init_define_process_env();
|
8
|
+
var gapStyles = (value) => {
|
9
|
+
return {
|
10
|
+
"& > * + *": {
|
11
|
+
marginRight: "0",
|
12
|
+
marginLeft: `${0.25 * value}rem`
|
13
|
+
}
|
14
|
+
};
|
15
|
+
};
|
16
|
+
var Flex = styled("div", {
|
17
|
+
display: "flex",
|
18
|
+
variants: {
|
19
|
+
justify: {
|
20
|
+
start: {
|
21
|
+
justifyContent: "flex-start"
|
22
|
+
},
|
23
|
+
end: {
|
24
|
+
justifyContent: "flex-end"
|
25
|
+
},
|
26
|
+
center: {
|
27
|
+
justifyContent: "center"
|
28
|
+
},
|
29
|
+
between: {
|
30
|
+
justifyContent: "space-between"
|
31
|
+
},
|
32
|
+
around: {
|
33
|
+
justifyContent: "space-around"
|
34
|
+
},
|
35
|
+
evenly: {
|
36
|
+
justifyContent: "space-evenly"
|
37
|
+
}
|
38
|
+
},
|
39
|
+
align: {
|
40
|
+
start: {
|
41
|
+
alignItems: "flex-start"
|
42
|
+
},
|
43
|
+
end: {
|
44
|
+
alignItems: "flex-end"
|
45
|
+
},
|
46
|
+
center: {
|
47
|
+
alignItems: "center"
|
48
|
+
},
|
49
|
+
baseline: {
|
50
|
+
alignItems: "baseline"
|
51
|
+
},
|
52
|
+
strech: {
|
53
|
+
alignItems: "stretch"
|
54
|
+
}
|
55
|
+
},
|
56
|
+
direction: {
|
57
|
+
row: {
|
58
|
+
flexDirection: "row"
|
59
|
+
},
|
60
|
+
column: {
|
61
|
+
flexDirection: "column"
|
62
|
+
},
|
63
|
+
rowReverse: {
|
64
|
+
flexDirection: "row-reverse"
|
65
|
+
},
|
66
|
+
columnReverse: {
|
67
|
+
flexDirection: "column-reverse"
|
68
|
+
}
|
69
|
+
},
|
70
|
+
gap: {
|
71
|
+
1: gapStyles(1),
|
72
|
+
2: gapStyles(2),
|
73
|
+
3: gapStyles(3),
|
74
|
+
4: gapStyles(4)
|
75
|
+
}
|
76
|
+
}
|
77
|
+
});
|
78
|
+
|
79
|
+
// src/Layout/Box.tsx
|
80
|
+
init_define_process_env();
|
81
|
+
var Box = styled("div", {});
|
82
|
+
|
83
|
+
// src/Layout/index.tsx
|
84
|
+
init_define_process_env();
|
85
|
+
|
86
|
+
export {
|
87
|
+
Flex,
|
88
|
+
Box
|
89
|
+
};
|
90
|
+
//# sourceMappingURL=chunk-7QZJMUHM.js.map
|
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../src/Layout/Flex.tsx", "../src/Layout/Box.tsx", "../src/Layout/index.tsx"],
|
4
|
+
"sourcesContent": ["import { styled } from '../Theme';\n\n/**\n * @see https://tailwindcss.com/docs/space\n */\nconst gapStyles = (value: number) => {\n return {\n '& > * + *': {\n marginRight: '0',\n marginLeft: `${0.25 * value}rem`,\n },\n };\n};\n\nexport const Flex = styled('div', {\n display: 'flex',\n variants: {\n justify: {\n start: {\n justifyContent: 'flex-start',\n },\n end: {\n justifyContent: 'flex-end',\n },\n center: {\n justifyContent: 'center',\n },\n between: {\n justifyContent: 'space-between',\n },\n around: {\n justifyContent: 'space-around',\n },\n evenly: {\n justifyContent: 'space-evenly',\n },\n },\n align: {\n start: {\n alignItems: 'flex-start',\n },\n end: {\n alignItems: 'flex-end',\n },\n center: {\n alignItems: 'center',\n },\n baseline: {\n alignItems: 'baseline',\n },\n strech: {\n alignItems: 'stretch',\n },\n },\n direction: {\n row: {\n flexDirection: 'row',\n },\n column: {\n flexDirection: 'column',\n },\n rowReverse: {\n flexDirection: 'row-reverse',\n },\n columnReverse: {\n flexDirection: 'column-reverse',\n },\n },\n gap: {\n 1: gapStyles(1),\n 2: gapStyles(2),\n 3: gapStyles(3),\n 4: gapStyles(4),\n },\n },\n});\n", "import { styled } from '../Theme';\n\nexport const Box = styled('div', {});\n", "export { Flex } from './Flex';\nexport { Box } from './Box';\n"],
|
5
|
+
"mappings": ";;;;;;AAAA;AAKA,IAAM,YAAY,CAAC,UAAkB;AACnC,SAAO;AAAA,IACL,aAAa;AAAA,MACX,aAAa;AAAA,MACb,YAAY,GAAG,OAAO,KAAK;AAAA,IAC7B;AAAA,EACF;AACF;AAEO,IAAM,OAAO,OAAO,OAAO;AAAA,EAChC,SAAS;AAAA,EACT,UAAU;AAAA,IACR,SAAS;AAAA,MACP,OAAO;AAAA,QACL,gBAAgB;AAAA,MAClB;AAAA,MACA,KAAK;AAAA,QACH,gBAAgB;AAAA,MAClB;AAAA,MACA,QAAQ;AAAA,QACN,gBAAgB;AAAA,MAClB;AAAA,MACA,SAAS;AAAA,QACP,gBAAgB;AAAA,MAClB;AAAA,MACA,QAAQ;AAAA,QACN,gBAAgB;AAAA,MAClB;AAAA,MACA,QAAQ;AAAA,QACN,gBAAgB;AAAA,MAClB;AAAA,IACF;AAAA,IACA,OAAO;AAAA,MACL,OAAO;AAAA,QACL,YAAY;AAAA,MACd;AAAA,MACA,KAAK;AAAA,QACH,YAAY;AAAA,MACd;AAAA,MACA,QAAQ;AAAA,QACN,YAAY;AAAA,MACd;AAAA,MACA,UAAU;AAAA,QACR,YAAY;AAAA,MACd;AAAA,MACA,QAAQ;AAAA,QACN,YAAY;AAAA,MACd;AAAA,IACF;AAAA,IACA,WAAW;AAAA,MACT,KAAK;AAAA,QACH,eAAe;AAAA,MACjB;AAAA,MACA,QAAQ;AAAA,QACN,eAAe;AAAA,MACjB;AAAA,MACA,YAAY;AAAA,QACV,eAAe;AAAA,MACjB;AAAA,MACA,eAAe;AAAA,QACb,eAAe;AAAA,MACjB;AAAA,IACF;AAAA,IACA,KAAK;AAAA,MACH,GAAG,UAAU,CAAC;AAAA,MACd,GAAG,UAAU,CAAC;AAAA,MACd,GAAG,UAAU,CAAC;AAAA,MACd,GAAG,UAAU,CAAC;AAAA,IAChB;AAAA,EACF;AACF,CAAC;;;AC3ED;AAEO,IAAM,MAAM,OAAO,OAAO,CAAC,CAAC;;;ACFnC;",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
import {
|
2
|
+
Text
|
3
|
+
} from "./chunk-JKWX7W4K.js";
|
4
|
+
import {
|
5
|
+
Box,
|
6
|
+
Flex
|
7
|
+
} from "./chunk-7QZJMUHM.js";
|
8
|
+
import {
|
9
|
+
init_define_process_env
|
10
|
+
} from "./chunk-TBXRX6MK.js";
|
11
|
+
|
12
|
+
// src/Prebuilt/layouts/WaitingView.tsx
|
13
|
+
init_define_process_env();
|
14
|
+
import React from "react";
|
15
|
+
var WaitingView = React.memo(
|
16
|
+
({ icon, title, subtitle }) => {
|
17
|
+
return /* @__PURE__ */ React.createElement(
|
18
|
+
Flex,
|
19
|
+
{
|
20
|
+
align: "center",
|
21
|
+
direction: "column",
|
22
|
+
css: {
|
23
|
+
textAlign: "center",
|
24
|
+
margin: "auto",
|
25
|
+
h: "100%",
|
26
|
+
justifyContent: "center",
|
27
|
+
gap: "$8"
|
28
|
+
}
|
29
|
+
},
|
30
|
+
/* @__PURE__ */ React.createElement(
|
31
|
+
Box,
|
32
|
+
{
|
33
|
+
css: {
|
34
|
+
backgroundColor: "$surface_default",
|
35
|
+
display: "flex",
|
36
|
+
alignItems: "center",
|
37
|
+
gap: "$4",
|
38
|
+
size: "$20",
|
39
|
+
r: "$round",
|
40
|
+
justifyContent: "center"
|
41
|
+
}
|
42
|
+
},
|
43
|
+
icon
|
44
|
+
),
|
45
|
+
/* @__PURE__ */ React.createElement(
|
46
|
+
Flex,
|
47
|
+
{
|
48
|
+
direction: "column",
|
49
|
+
css: {
|
50
|
+
p: "$1",
|
51
|
+
gap: "$4"
|
52
|
+
}
|
53
|
+
},
|
54
|
+
/* @__PURE__ */ React.createElement(Text, { variant: "h4", css: { "@md": { fontSize: "$md", color: "$on_surface_high" } } }, title),
|
55
|
+
/* @__PURE__ */ React.createElement(
|
56
|
+
Text,
|
57
|
+
{
|
58
|
+
variant: "body1",
|
59
|
+
css: { fontWeight: "$regular", color: "$on_surface_medium", "@md": { fontSize: "$sm" } }
|
60
|
+
},
|
61
|
+
subtitle
|
62
|
+
)
|
63
|
+
)
|
64
|
+
);
|
65
|
+
}
|
66
|
+
);
|
67
|
+
|
68
|
+
export {
|
69
|
+
WaitingView
|
70
|
+
};
|
71
|
+
//# sourceMappingURL=chunk-ABCV7TX5.js.map
|
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["../src/Prebuilt/layouts/WaitingView.tsx"],
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { Box, Flex } from '../../Layout';\nimport { Text } from '../../Text';\n\nexport const WaitingView = React.memo(\n ({ icon, title, subtitle }: { icon: React.ReactNode; title: string; subtitle: string }) => {\n return (\n <Flex\n align=\"center\"\n direction=\"column\"\n css={{\n textAlign: 'center',\n margin: 'auto',\n h: '100%',\n justifyContent: 'center',\n gap: '$8',\n }}\n >\n <Box\n css={{\n backgroundColor: '$surface_default',\n display: 'flex',\n alignItems: 'center',\n gap: '$4',\n size: '$20',\n r: '$round',\n justifyContent: 'center',\n }}\n >\n {icon}\n </Box>\n <Flex\n direction=\"column\"\n css={{\n p: '$1',\n gap: '$4',\n }}\n >\n <Text variant=\"h4\" css={{ '@md': { fontSize: '$md', color: '$on_surface_high' } }}>\n {title}\n </Text>\n <Text\n variant=\"body1\"\n css={{ fontWeight: '$regular', color: '$on_surface_medium', '@md': { fontSize: '$sm' } }}\n >\n {subtitle}\n </Text>\n </Flex>\n </Flex>\n );\n },\n);\n"],
|
5
|
+
"mappings": ";;;;;;;;;;;;AAAA;AAAA,OAAO,WAAW;AAIX,IAAM,cAAc,MAAM;AAAA,EAC/B,CAAC,EAAE,MAAM,OAAO,SAAS,MAAkE;AACzF,WACE;AAAA,MAAC;AAAA;AAAA,QACC,OAAM;AAAA,QACN,WAAU;AAAA,QACV,KAAK;AAAA,UACH,WAAW;AAAA,UACX,QAAQ;AAAA,UACR,GAAG;AAAA,UACH,gBAAgB;AAAA,UAChB,KAAK;AAAA,QACP;AAAA;AAAA,MAEA;AAAA,QAAC;AAAA;AAAA,UACC,KAAK;AAAA,YACH,iBAAiB;AAAA,YACjB,SAAS;AAAA,YACT,YAAY;AAAA,YACZ,KAAK;AAAA,YACL,MAAM;AAAA,YACN,GAAG;AAAA,YACH,gBAAgB;AAAA,UAClB;AAAA;AAAA,QAEC;AAAA,MACH;AAAA,MACA;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,KAAK;AAAA,YACH,GAAG;AAAA,YACH,KAAK;AAAA,UACP;AAAA;AAAA,QAEA,oCAAC,QAAK,SAAQ,MAAK,KAAK,EAAE,OAAO,EAAE,UAAU,OAAO,OAAO,mBAAmB,EAAE,KAC7E,KACH;AAAA,QACA;AAAA,UAAC;AAAA;AAAA,YACC,SAAQ;AAAA,YACR,KAAK,EAAE,YAAY,YAAY,OAAO,sBAAsB,OAAO,EAAE,UAAU,MAAM,EAAE;AAAA;AAAA,UAEtF;AAAA,QACH;AAAA,MACF;AAAA,IACF;AAAA,EAEJ;AACF;",
|
6
|
+
"names": []
|
7
|
+
}
|