@100mslive/roomkit-react 0.3.22-alpha.3 → 0.3.22-alpha.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. package/dist/Accordion/Accordion.d.ts +322 -134
  2. package/dist/Accordion/index.d.ts +322 -134
  3. package/dist/Avatar/Avatar.d.ts +141 -47
  4. package/dist/Button/Button.d.ts +141 -47
  5. package/dist/Checkbox/Checkbox.d.ts +322 -134
  6. package/dist/Collapsible/Collapsible.d.ts +483 -201
  7. package/dist/Divider/Divider.d.ts +322 -134
  8. package/dist/Dropdown/Dropdown.d.ts +1932 -804
  9. package/dist/Fieldset/Fieldset.d.ts +141 -47
  10. package/dist/Footer/Footer.d.ts +1288 -536
  11. package/dist/{PDFView-RMR33QH4.css → HLSView-CNAJ5SBZ.css} +3 -3
  12. package/dist/{LeaveScreen-ZAG5UJZL.css.map → HLSView-CNAJ5SBZ.css.map} +1 -1
  13. package/dist/{HLSView-EYGGK6BH.js → HLSView-YIWJTBCT.js} +24 -38
  14. package/dist/HLSView-YIWJTBCT.js.map +7 -0
  15. package/dist/IconButton/IconButton.d.ts +141 -47
  16. package/dist/Input/Input.d.ts +926 -362
  17. package/dist/Label/Label.d.ts +141 -47
  18. package/dist/Layout/Box.d.ts +141 -47
  19. package/dist/Layout/Flex.d.ts +141 -47
  20. package/dist/Link/Link.d.ts +141 -47
  21. package/dist/Modal/Dialog.d.ts +987 -329
  22. package/dist/Modal/DialogContent.d.ts +1127 -469
  23. package/dist/Pagination/StyledPagination.d.ts +644 -268
  24. package/dist/Popover/index.d.ts +483 -201
  25. package/dist/Prebuilt/IconButton.d.ts +322 -134
  26. package/dist/Prebuilt/components/Chat/ChatBody.d.ts +322 -134
  27. package/dist/Prebuilt/components/Leave/LeaveAtoms.d.ts +805 -335
  28. package/dist/Prebuilt/components/Settings/common.d.ts +322 -134
  29. package/dist/Progress/index.d.ts +322 -134
  30. package/dist/RadioGroup/RadioGroup.d.ts +483 -201
  31. package/dist/ReactSelect/ReactSelect.d.ts +1610 -670
  32. package/dist/Select/Select.d.ts +483 -201
  33. package/dist/Sheet/Sheet.d.ts +987 -329
  34. package/dist/Slider/Slider.d.ts +141 -47
  35. package/dist/Stats/StyledStats.d.ts +966 -402
  36. package/dist/Switch/Switch.d.ts +141 -47
  37. package/dist/Tabs/Tabs.d.ts +644 -268
  38. package/dist/Text/Text.d.ts +141 -47
  39. package/dist/TextArea/TextArea.d.ts +141 -47
  40. package/dist/Theme/base.config.d.ts +78 -26
  41. package/dist/Theme/stitches.config.d.ts +1514 -1067
  42. package/dist/TileMenu/StyledMenuTile.d.ts +1127 -469
  43. package/dist/Toast/Toast.d.ts +946 -382
  44. package/dist/Video/Video.d.ts +141 -47
  45. package/dist/VideoList/StyledVideoList.d.ts +483 -201
  46. package/dist/VideoTile/StyledVideoTile.d.ts +1610 -670
  47. package/dist/chunk-4UCH4XSJ.js +34759 -0
  48. package/dist/chunk-4UCH4XSJ.js.map +7 -0
  49. package/dist/index.cjs.css +2 -2
  50. package/dist/index.cjs.css.map +1 -1
  51. package/dist/index.cjs.js +22367 -22558
  52. package/dist/index.cjs.js.map +4 -4
  53. package/dist/index.css +2 -2
  54. package/dist/index.css.map +1 -1
  55. package/dist/index.js +15 -25
  56. package/dist/meta.cjs.json +5076 -5434
  57. package/dist/meta.esbuild.json +6290 -9146
  58. package/package.json +8 -8
  59. package/src/Avatar/Avatar.tsx +1 -1
  60. package/src/Popover/Popover.stories.tsx +1 -1
  61. package/src/Prebuilt/App.tsx +2 -6
  62. package/src/Prebuilt/components/Chat/Chat.tsx +8 -12
  63. package/src/Prebuilt/components/Chat/ChatFooter.tsx +1 -1
  64. package/src/Prebuilt/components/Notifications/Notifications.tsx +171 -13
  65. package/src/Prebuilt/components/Notifications/PeerNotifications.tsx +2 -9
  66. package/src/Prebuilt/components/Notifications/ReconnectNotifications.tsx +5 -1
  67. package/src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx +5 -7
  68. package/src/Prebuilt/components/Notifications/TrackNotifications.tsx +1 -23
  69. package/src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx +5 -13
  70. package/src/Prebuilt/components/StatsForNerds.jsx +3 -32
  71. package/src/Prebuilt/components/VideoLayouts/GridLayout.tsx +31 -43
  72. package/src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx +2 -2
  73. package/src/Prebuilt/components/VirtualBackground/VBOption.tsx +1 -3
  74. package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +0 -6
  75. package/src/Prebuilt/layouts/HLSView.jsx +0 -1
  76. package/src/Prebuilt/layouts/PDFView.jsx +0 -1
  77. package/src/Prebuilt/layouts/SidePane.tsx +6 -12
  78. package/src/Prebuilt/layouts/VideoStreamingSection.tsx +34 -35
  79. package/dist/ConferenceScreen-CSVWECB5.js +0 -1778
  80. package/dist/ConferenceScreen-CSVWECB5.js.map +0 -7
  81. package/dist/ConferenceScreen-YRURU3RV.css +0 -2780
  82. package/dist/ConferenceScreen-YRURU3RV.css.map +0 -7
  83. package/dist/EmbedView-N2E4DZQA.js +0 -17
  84. package/dist/EmbedView-N2E4DZQA.js.map +0 -7
  85. package/dist/EmbedView-S54NTHF5.css +0 -2780
  86. package/dist/EmbedView-S54NTHF5.css.map +0 -7
  87. package/dist/EmojiReaction-3X4ST4AU.js +0 -11
  88. package/dist/EmojiReaction-3X4ST4AU.js.map +0 -7
  89. package/dist/HLSView-EYGGK6BH.js.map +0 -7
  90. package/dist/HLSView-LBTFLMI4.css +0 -2780
  91. package/dist/HLSView-LBTFLMI4.css.map +0 -7
  92. package/dist/LeaveScreen-D6XU64JL.js +0 -556
  93. package/dist/LeaveScreen-D6XU64JL.js.map +0 -7
  94. package/dist/LeaveScreen-ZAG5UJZL.css +0 -2780
  95. package/dist/MoreSettings-R7B4BSNT.css +0 -2780
  96. package/dist/MoreSettings-R7B4BSNT.css.map +0 -7
  97. package/dist/MoreSettings-TBJVM7OY.js +0 -16
  98. package/dist/MoreSettings-TBJVM7OY.js.map +0 -7
  99. package/dist/PDFView-JOIJDP65.js +0 -84
  100. package/dist/PDFView-JOIJDP65.js.map +0 -7
  101. package/dist/PDFView-RMR33QH4.css.map +0 -7
  102. package/dist/Polls-IN3V2HFI.js +0 -1584
  103. package/dist/Polls-IN3V2HFI.js.map +0 -7
  104. package/dist/Polls-JW7JWGTE.css +0 -2780
  105. package/dist/Polls-JW7JWGTE.css.map +0 -7
  106. package/dist/Prebuilt/components/Notifications/DeviceChangeNotifications.d.ts +0 -1
  107. package/dist/Prebuilt/components/Notifications/ErrorNotifications.d.ts +0 -1
  108. package/dist/Prebuilt/components/Notifications/MessageNotifications.d.ts +0 -1
  109. package/dist/Prebuilt/components/Notifications/PollNotificationModal.d.ts +0 -1
  110. package/dist/Prebuilt/components/Notifications/RoleChangeNotification.d.ts +0 -1
  111. package/dist/RaiseHand-WES4KKMD.js +0 -10
  112. package/dist/RaiseHand-WES4KKMD.js.map +0 -7
  113. package/dist/RoleProminence-4ZBDBCMU.css +0 -2780
  114. package/dist/RoleProminence-4ZBDBCMU.css.map +0 -7
  115. package/dist/RoleProminence-PB32DLIB.js +0 -116
  116. package/dist/RoleProminence-PB32DLIB.js.map +0 -7
  117. package/dist/RoomDetailsPane-CZH2SNLE.js +0 -53
  118. package/dist/RoomDetailsPane-CZH2SNLE.js.map +0 -7
  119. package/dist/RoomDetailsPane-XWH2KEFI.css +0 -2780
  120. package/dist/RoomDetailsPane-XWH2KEFI.css.map +0 -7
  121. package/dist/ScreenshareLayout-XVENPVK3.js +0 -358
  122. package/dist/ScreenshareLayout-XVENPVK3.js.map +0 -7
  123. package/dist/ScreenshareLayout-YUW3KHAB.css +0 -2780
  124. package/dist/ScreenshareLayout-YUW3KHAB.css.map +0 -7
  125. package/dist/SidePaneTabs-QXCDHOGG.js +0 -1354
  126. package/dist/SidePaneTabs-QXCDHOGG.js.map +0 -7
  127. package/dist/SidePaneTabs-WQGVOWRP.css +0 -2780
  128. package/dist/SidePaneTabs-WQGVOWRP.css.map +0 -7
  129. package/dist/VBPicker-XN74N67R.js +0 -322
  130. package/dist/VBPicker-XN74N67R.js.map +0 -7
  131. package/dist/VBPicker-YDM2YIOM.css +0 -2780
  132. package/dist/VBPicker-YDM2YIOM.css.map +0 -7
  133. package/dist/WaitingView-77PRTIBV.js +0 -10
  134. package/dist/WaitingView-77PRTIBV.js.map +0 -7
  135. package/dist/WhiteboardLayout-FZC7SOSG.js +0 -96
  136. package/dist/WhiteboardLayout-FZC7SOSG.js.map +0 -7
  137. package/dist/WhiteboardLayout-MNTUWEVK.css +0 -2780
  138. package/dist/WhiteboardLayout-MNTUWEVK.css.map +0 -7
  139. package/dist/android-perm-1.png +0 -0
  140. package/dist/audio-level.png +0 -0
  141. package/dist/chunk-26D5FDBW.js +0 -16812
  142. package/dist/chunk-26D5FDBW.js.map +0 -7
  143. package/dist/chunk-2J5WS52X.js +0 -2595
  144. package/dist/chunk-2J5WS52X.js.map +0 -7
  145. package/dist/chunk-2LWOQMYY.js +0 -30
  146. package/dist/chunk-2LWOQMYY.js.map +0 -7
  147. package/dist/chunk-3MRQJSIY.js +0 -171
  148. package/dist/chunk-3MRQJSIY.js.map +0 -7
  149. package/dist/chunk-4X4WB7X3.js +0 -98
  150. package/dist/chunk-4X4WB7X3.js.map +0 -7
  151. package/dist/chunk-7QZJMUHM.js +0 -90
  152. package/dist/chunk-7QZJMUHM.js.map +0 -7
  153. package/dist/chunk-ABCV7TX5.js +0 -71
  154. package/dist/chunk-ABCV7TX5.js.map +0 -7
  155. package/dist/chunk-BQOT4DK7.js +0 -418
  156. package/dist/chunk-BQOT4DK7.js.map +0 -7
  157. package/dist/chunk-ENHSO6YN.js +0 -6337
  158. package/dist/chunk-ENHSO6YN.js.map +0 -7
  159. package/dist/chunk-JKWX7W4K.js +0 -161
  160. package/dist/chunk-JKWX7W4K.js.map +0 -7
  161. package/dist/chunk-LO4BXA4G.js +0 -114
  162. package/dist/chunk-LO4BXA4G.js.map +0 -7
  163. package/dist/chunk-MRVWNFXC.js +0 -59
  164. package/dist/chunk-MRVWNFXC.js.map +0 -7
  165. package/dist/chunk-OA4HW7HW.js +0 -262
  166. package/dist/chunk-OA4HW7HW.js.map +0 -7
  167. package/dist/chunk-PJQSPAFZ.js +0 -178
  168. package/dist/chunk-PJQSPAFZ.js.map +0 -7
  169. package/dist/chunk-QHQKY35W.js +0 -830
  170. package/dist/chunk-QHQKY35W.js.map +0 -7
  171. package/dist/chunk-QKXHQ6DV.js +0 -254
  172. package/dist/chunk-QKXHQ6DV.js.map +0 -7
  173. package/dist/chunk-RTWNTT77.js +0 -62
  174. package/dist/chunk-RTWNTT77.js.map +0 -7
  175. package/dist/chunk-TBXRX6MK.js +0 -576
  176. package/dist/chunk-TBXRX6MK.js.map +0 -7
  177. package/dist/chunk-TCOPR3BK.js +0 -487
  178. package/dist/chunk-TCOPR3BK.js.map +0 -7
  179. package/dist/chunk-VKORP2LF.js +0 -41
  180. package/dist/chunk-VKORP2LF.js.map +0 -7
  181. package/dist/chunk-YYVDCP5Z.js +0 -136
  182. package/dist/chunk-YYVDCP5Z.js.map +0 -7
  183. package/dist/empty-chat.svg +0 -12
  184. package/dist/ios-perm-0.png +0 -0
  185. package/dist/pdf-share.png +0 -0
  186. package/dist/screen-share.png +0 -0
  187. package/dist/transaction_error.svg +0 -12
  188. package/src/Prebuilt/components/Notifications/DeviceChangeNotifications.tsx +0 -18
  189. package/src/Prebuilt/components/Notifications/ErrorNotifications.tsx +0 -56
  190. package/src/Prebuilt/components/Notifications/MessageNotifications.tsx +0 -24
  191. package/src/Prebuilt/components/Notifications/PollNotificationModal.tsx +0 -71
  192. package/src/Prebuilt/components/Notifications/RoleChangeNotification.tsx +0 -24
@@ -1,556 +0,0 @@
1
- import {
2
- Header
3
- } from "./chunk-OA4HW7HW.js";
4
- import "./chunk-QKXHQ6DV.js";
5
- import {
6
- Button,
7
- Checkbox,
8
- Dialog,
9
- Label,
10
- Sheet,
11
- TextArea,
12
- useHMSAppStateContext,
13
- useHMSPrebuiltContext
14
- } from "./chunk-26D5FDBW.js";
15
- import {
16
- Text
17
- } from "./chunk-JKWX7W4K.js";
18
- import {
19
- ToastManager
20
- } from "./chunk-BQOT4DK7.js";
21
- import {
22
- Box,
23
- Flex
24
- } from "./chunk-7QZJMUHM.js";
25
- import {
26
- UserPreferencesKeys,
27
- defaultPreviewPreference,
28
- textEllipsis,
29
- useRoomLayoutLeaveScreen,
30
- useUserPreferences
31
- } from "./chunk-ENHSO6YN.js";
32
- import {
33
- __async,
34
- __spreadValues,
35
- config,
36
- init_define_process_env
37
- } from "./chunk-TBXRX6MK.js";
38
-
39
- // src/Prebuilt/components/LeaveScreen.tsx
40
- init_define_process_env();
41
- import React4 from "react";
42
- import { ExitIcon } from "@100mslive/react-icons";
43
-
44
- // src/Prebuilt/components/EndCallFeedback/Feedback.tsx
45
- init_define_process_env();
46
- import React3, { useState as useState2 } from "react";
47
- import { useMedia as useMedia3 } from "react-use";
48
-
49
- // src/Prebuilt/components/EndCallFeedback/FeedbackForm.tsx
50
- init_define_process_env();
51
- import React, { useState } from "react";
52
- import { useMedia } from "react-use";
53
- import { useHMSActions } from "@100mslive/react-sdk";
54
- import { CheckIcon, CrossIcon } from "@100mslive/react-icons";
55
- var FEEBACK_INDEX = {
56
- THANK_YOU: -10,
57
- INIT: -1
58
- };
59
- var FeedbackModal = ({
60
- ratings,
61
- index,
62
- setIndex
63
- }) => {
64
- const isMobile = useMedia(config.media.md);
65
- const onOpenChange = () => {
66
- setIndex(FEEBACK_INDEX.INIT);
67
- };
68
- const avoidDefaultDomBehavior = (e) => {
69
- e.preventDefault();
70
- };
71
- if (isMobile) {
72
- return /* @__PURE__ */ React.createElement(Sheet.Root, { open: index !== FEEBACK_INDEX.INIT, onOpenChange }, /* @__PURE__ */ React.createElement(
73
- Sheet.Content,
74
- {
75
- css: { bg: "$surface_dim", p: "$10", overflowY: "auto" },
76
- onPointerDownOutside: avoidDefaultDomBehavior,
77
- onInteractOutside: avoidDefaultDomBehavior
78
- },
79
- /* @__PURE__ */ React.createElement(FeedbackContent, { ratings, indexSelected: index, setIndex })
80
- ));
81
- }
82
- return /* @__PURE__ */ React.createElement(Dialog.Root, { open: index !== FEEBACK_INDEX.INIT, onOpenChange }, /* @__PURE__ */ React.createElement(Dialog.Portal, null, /* @__PURE__ */ React.createElement(Dialog.Overlay, null), /* @__PURE__ */ React.createElement(
83
- Dialog.Content,
84
- {
85
- css: { bg: "$surface_dim", width: "528px", p: "$12" },
86
- onPointerDownOutside: avoidDefaultDomBehavior,
87
- onInteractOutside: avoidDefaultDomBehavior
88
- },
89
- /* @__PURE__ */ React.createElement(FeedbackContent, { ratings, indexSelected: index, setIndex })
90
- )));
91
- };
92
- var FeedbackContent = ({
93
- ratings,
94
- indexSelected,
95
- setIndex
96
- }) => {
97
- const { feedback } = useRoomLayoutLeaveScreen();
98
- const { endpoints } = useHMSPrebuiltContext();
99
- const isMobile = useMedia(config.media.md);
100
- const hmsActions = useHMSActions();
101
- const [comment, setComment] = useState("");
102
- const [selectedReasons, setSelectedReasons] = useState(/* @__PURE__ */ new Set());
103
- const handleCheckedChange = (checked, index) => {
104
- const newSelected = new Set(selectedReasons);
105
- if (checked) {
106
- newSelected.add(index);
107
- } else {
108
- newSelected.delete(index);
109
- }
110
- setSelectedReasons(newSelected);
111
- };
112
- const submitFeedback = () => __async(void 0, null, function* () {
113
- if (indexSelected < 0 || ratings.length <= indexSelected) {
114
- return;
115
- }
116
- try {
117
- const reasons = [...selectedReasons].map((value) => {
118
- var _a, _b;
119
- return ((_b = (_a = ratings[indexSelected]) == null ? void 0 : _a.reasons) == null ? void 0 : _b[value]) || "";
120
- });
121
- yield hmsActions.submitSessionFeedback(
122
- {
123
- question: `${feedback == null ? void 0 : feedback.title} | ${ratings[indexSelected].question || ""}`,
124
- rating: ratings[indexSelected].value || 1,
125
- min_rating: 1,
126
- max_rating: ratings.length,
127
- reasons: selectedReasons.size === 0 ? [] : reasons,
128
- comment
129
- },
130
- endpoints == null ? void 0 : endpoints.event
131
- );
132
- } catch (e) {
133
- console.error(e);
134
- }
135
- setIndex(FEEBACK_INDEX.THANK_YOU);
136
- });
137
- return /* @__PURE__ */ React.createElement(
138
- Flex,
139
- {
140
- css: {
141
- p: indexSelected === FEEBACK_INDEX.INIT ? "$12 !important" : "0",
142
- bg: "$surface_dim",
143
- r: "$3",
144
- gap: "$10"
145
- },
146
- direction: "column"
147
- },
148
- /* @__PURE__ */ React.createElement(
149
- FeedbackHeader,
150
- {
151
- ratings,
152
- indexSelected,
153
- onEmojiClicked: (value) => {
154
- setSelectedReasons(/* @__PURE__ */ new Set());
155
- setIndex(value);
156
- }
157
- }
158
- ),
159
- /* @__PURE__ */ React.createElement(
160
- FeedbackForm,
161
- {
162
- rating: ratings[indexSelected],
163
- comment,
164
- setComment,
165
- selectedReasons,
166
- handleCheckedChange
167
- }
168
- ),
169
- /* @__PURE__ */ React.createElement(
170
- Button,
171
- {
172
- type: "submit",
173
- icon: true,
174
- css: {
175
- alignSelf: isMobile ? "" : "end"
176
- },
177
- onClick: submitFeedback
178
- },
179
- (feedback == null ? void 0 : feedback.submit_btn_label) || "Submit Feedback"
180
- )
181
- );
182
- };
183
- var FeedbackHeader = ({
184
- onEmojiClicked,
185
- ratings,
186
- indexSelected = FEEBACK_INDEX.INIT
187
- }) => {
188
- const isMobile = useMedia(config.media.md);
189
- const { feedback } = useRoomLayoutLeaveScreen();
190
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Flex, { align: "center" }, /* @__PURE__ */ React.createElement(
191
- Flex,
192
- {
193
- direction: "column",
194
- css: {
195
- flex: "1 1 0"
196
- }
197
- },
198
- /* @__PURE__ */ React.createElement(
199
- Text,
200
- {
201
- variant: isMobile ? "h6" : "h5",
202
- css: {
203
- c: "$on_surface_high",
204
- fontStyle: "normal"
205
- }
206
- },
207
- (feedback == null ? void 0 : feedback.title) || "How was your experience?"
208
- ),
209
- /* @__PURE__ */ React.createElement(
210
- Text,
211
- {
212
- variant: isMobile ? "body2" : "body1",
213
- css: {
214
- c: "$on_surface_medium",
215
- opacity: 0.9,
216
- fontWeight: "$regular"
217
- }
218
- },
219
- (feedback == null ? void 0 : feedback.sub_title) || "Your answers help us improve the quality."
220
- )
221
- ), indexSelected !== FEEBACK_INDEX.INIT ? /* @__PURE__ */ React.createElement(CrossIcon, { width: "24px", height: "24px", color: "white", onClick: () => onEmojiClicked(FEEBACK_INDEX.INIT) }) : null), /* @__PURE__ */ React.createElement(
222
- Flex,
223
- {
224
- justify: "between",
225
- css: {
226
- gap: "$17",
227
- c: "$on_surface_high",
228
- "@md": {
229
- gap: "0"
230
- }
231
- }
232
- },
233
- ratings.map((element, index) => {
234
- return /* @__PURE__ */ React.createElement(
235
- Flex,
236
- {
237
- align: "center",
238
- direction: "column",
239
- css: {
240
- c: indexSelected === index || indexSelected === FEEBACK_INDEX.INIT ? "$on_surface_high" : "$on_surface_default",
241
- gap: "$4"
242
- },
243
- onClick: () => onEmojiClicked(index),
244
- key: `${index}`
245
- },
246
- /* @__PURE__ */ React.createElement(
247
- Text,
248
- {
249
- css: {
250
- fontWeight: "$semiBold",
251
- fontSize: "$h4",
252
- pb: "$1",
253
- cursor: "pointer",
254
- opacity: indexSelected === index || indexSelected === FEEBACK_INDEX.INIT ? 1 : 0.2,
255
- "@md": {
256
- fontSize: "$h5"
257
- }
258
- }
259
- },
260
- element.emoji
261
- ),
262
- /* @__PURE__ */ React.createElement(
263
- Text,
264
- {
265
- variant: isMobile ? "body2" : "body1",
266
- css: {
267
- c: indexSelected === index || indexSelected === FEEBACK_INDEX.INIT ? "$on_surface_medium" : "$on_surface_low",
268
- fontWeight: "$regular"
269
- }
270
- },
271
- element.label
272
- )
273
- );
274
- })
275
- ));
276
- };
277
- var FeedbackForm = ({
278
- rating,
279
- comment,
280
- setComment,
281
- selectedReasons,
282
- handleCheckedChange
283
- }) => {
284
- const { feedback } = useRoomLayoutLeaveScreen();
285
- return /* @__PURE__ */ React.createElement(React.Fragment, null, rating.reasons && rating.reasons.length > 0 && /* @__PURE__ */ React.createElement(
286
- Flex,
287
- {
288
- direction: "column",
289
- css: {
290
- gap: "$4"
291
- }
292
- },
293
- /* @__PURE__ */ React.createElement(
294
- Text,
295
- {
296
- variant: "sub2",
297
- css: {
298
- c: "$on_surface_high",
299
- fontWeight: "$semiBold",
300
- fontSize: "$sm",
301
- px: "$2"
302
- }
303
- },
304
- rating.question || "What do you like/dislike here?"
305
- ),
306
- /* @__PURE__ */ React.createElement(
307
- Flex,
308
- {
309
- css: {
310
- alignItems: "flex-start",
311
- alignSelf: "stretch",
312
- flexWrap: "wrap",
313
- gap: "$6",
314
- flex: "1 1 calc(25% - 12px)",
315
- "@md": {
316
- flex: "1 1 calc(50% - 12px)"
317
- },
318
- "@sm": {
319
- flex: "1 1 100%"
320
- }
321
- }
322
- },
323
- rating.reasons.map((option, index) => {
324
- return /* @__PURE__ */ React.createElement(
325
- Flex,
326
- {
327
- align: "center",
328
- gap: "2",
329
- key: index,
330
- css: {
331
- border: "1px solid $border_bright",
332
- r: "$1",
333
- p: "$6"
334
- }
335
- },
336
- /* @__PURE__ */ React.createElement(
337
- Checkbox.Root,
338
- {
339
- id: `${option}-${index}`,
340
- checked: selectedReasons.has(index),
341
- onCheckedChange: (checked) => handleCheckedChange(checked, index),
342
- css: {
343
- cursor: "pointer",
344
- flexShrink: 0,
345
- bg: "$on_secondary_low",
346
- border: "1px solid $border_bright"
347
- }
348
- },
349
- /* @__PURE__ */ React.createElement(Checkbox.Indicator, null, /* @__PURE__ */ React.createElement(CheckIcon, { width: 12, height: 12 }))
350
- ),
351
- /* @__PURE__ */ React.createElement(
352
- Label,
353
- {
354
- htmlFor: `${option}-${index}`,
355
- css: {
356
- color: "$on_surface_high",
357
- fontSize: "$sm",
358
- fontWeight: "$regular",
359
- lineHeight: "20px"
360
- }
361
- },
362
- option
363
- )
364
- );
365
- })
366
- )
367
- ), (feedback == null ? void 0 : feedback.comment) && /* @__PURE__ */ React.createElement(
368
- Flex,
369
- {
370
- direction: "column",
371
- css: {
372
- gap: "$4"
373
- }
374
- },
375
- /* @__PURE__ */ React.createElement(
376
- Text,
377
- {
378
- variant: "body2",
379
- css: {
380
- c: "$on_surface_high",
381
- fontWeight: "$regular",
382
- fontSize: "$sm"
383
- }
384
- },
385
- (feedback == null ? void 0 : feedback.comment.label) || "Additional comments (optional)"
386
- ),
387
- /* @__PURE__ */ React.createElement(
388
- TextArea,
389
- {
390
- maxLength: 1024,
391
- placeholder: (feedback == null ? void 0 : feedback.comment.placeholder) || "Tell us more...",
392
- css: {
393
- backgroundColor: "$surface_bright",
394
- border: "1px solid $border_bright",
395
- resize: "none",
396
- height: "$36",
397
- display: "flex"
398
- },
399
- value: comment,
400
- onChange: (event) => setComment(event.target.value.trimStart())
401
- }
402
- )
403
- ));
404
- };
405
-
406
- // src/Prebuilt/components/EndCallFeedback/ThankyouView.tsx
407
- init_define_process_env();
408
- import React2 from "react";
409
- import { useMedia as useMedia2 } from "react-use";
410
- import { UserMusicIcon } from "@100mslive/react-icons";
411
- var ThankyouView = () => {
412
- const isMobile = useMedia2(config.media.md);
413
- return /* @__PURE__ */ React2.createElement(
414
- Flex,
415
- {
416
- direction: isMobile ? "column" : "row",
417
- align: "center",
418
- css: {
419
- gap: "$10",
420
- border: "1px solid $border_default",
421
- borderRadius: !isMobile ? "$3" : "$3 $3 0 0",
422
- bg: "$surface_dim",
423
- w: !isMobile ? "528px" : "410px",
424
- p: "$12",
425
- pb: isMobile ? "$16" : "$12",
426
- "@md": {
427
- position: "absolute",
428
- bottom: "0"
429
- }
430
- }
431
- },
432
- /* @__PURE__ */ React2.createElement(UserMusicIcon, { width: "64px", height: "64px" }),
433
- /* @__PURE__ */ React2.createElement(Flex, { direction: "column", align: isMobile ? "center" : "start" }, /* @__PURE__ */ React2.createElement(Text, { variant: "h5" }, "Thank you for your feedback"), /* @__PURE__ */ React2.createElement(
434
- Text,
435
- {
436
- variant: "body1",
437
- css: {
438
- fontWeight: "$regular",
439
- fontSize: "$md",
440
- opacity: "0.9"
441
- }
442
- },
443
- "Your answers help us improve."
444
- ))
445
- );
446
- };
447
-
448
- // src/Prebuilt/components/EndCallFeedback/Feedback.tsx
449
- var Feedback = () => {
450
- const { feedback } = useRoomLayoutLeaveScreen();
451
- const [index, setIndex] = useState2(FEEBACK_INDEX.INIT);
452
- const isMobile = useMedia3(config.media.md);
453
- if (!feedback) {
454
- return null;
455
- }
456
- const { ratings } = feedback;
457
- if (!ratings) {
458
- return null;
459
- }
460
- ratings.sort((a, b) => {
461
- if (!a.value || !b.value) {
462
- return 0;
463
- }
464
- return a.value - b.value;
465
- });
466
- if (index === FEEBACK_INDEX.THANK_YOU) {
467
- return /* @__PURE__ */ React3.createElement(
468
- Flex,
469
- {
470
- justify: "center",
471
- css: {
472
- pt: "$16"
473
- }
474
- },
475
- /* @__PURE__ */ React3.createElement(ThankyouView, null)
476
- );
477
- }
478
- return /* @__PURE__ */ React3.createElement(
479
- Flex,
480
- {
481
- justify: "center",
482
- css: {
483
- pt: "$16",
484
- w: isMobile ? "100%" : "528px"
485
- }
486
- },
487
- index === FEEBACK_INDEX.INIT ? /* @__PURE__ */ React3.createElement(
488
- Flex,
489
- {
490
- css: {
491
- p: isMobile ? "$10" : "$12",
492
- border: "1px solid $border_default",
493
- bg: "$surface_dim",
494
- borderRadius: !isMobile ? "$3" : "$3 $3 0 0",
495
- gap: "$10",
496
- "@md": {
497
- position: "absolute",
498
- bottom: "0",
499
- w: "100%"
500
- }
501
- },
502
- direction: "column"
503
- },
504
- /* @__PURE__ */ React3.createElement(FeedbackHeader, { ratings, onEmojiClicked: setIndex })
505
- ) : /* @__PURE__ */ React3.createElement(FeedbackModal, { ratings, index, setIndex })
506
- );
507
- };
508
-
509
- // src/Prebuilt/components/LeaveScreen.tsx
510
- var LeaveScreen = () => {
511
- const { rejoin } = useHMSAppStateContext();
512
- const [previewPreference] = useUserPreferences(UserPreferencesKeys.PREVIEW, defaultPreviewPreference);
513
- return /* @__PURE__ */ React4.createElement(Flex, { direction: "column", css: { size: "100%" } }, /* @__PURE__ */ React4.createElement(Box, { css: { h: "$18", "@md": { h: "$17" } }, "data-testid": "header" }, /* @__PURE__ */ React4.createElement(Header, null)), /* @__PURE__ */ React4.createElement(
514
- Flex,
515
- {
516
- justify: "center",
517
- direction: "column",
518
- align: "center",
519
- css: { bg: "$background_dim", flex: "1 1 0", position: "relative" }
520
- },
521
- /* @__PURE__ */ React4.createElement(Text, { variant: "h2", css: { fontWeight: "$semiBold" } }, "\u{1F44B}"),
522
- /* @__PURE__ */ React4.createElement(Text, { variant: "h4", css: { color: "$on_surface_high", fontWeight: "$semiBold", mt: "$12" } }, "You left the room"),
523
- /* @__PURE__ */ React4.createElement(
524
- Text,
525
- {
526
- variant: "body1",
527
- css: {
528
- color: "$on_surface_medium",
529
- mt: "$8",
530
- fontWeight: "$regular",
531
- textAlign: "center"
532
- }
533
- },
534
- "Have a nice day",
535
- previewPreference.name && /* @__PURE__ */ React4.createElement(Box, { as: "span", css: __spreadValues({}, textEllipsis(100)) }, ", ", previewPreference.name),
536
- "!"
537
- ),
538
- /* @__PURE__ */ React4.createElement(Flex, { css: { mt: "$14", gap: "$10", alignItems: "center" } }, /* @__PURE__ */ React4.createElement(Text, { variant: "body1", css: { color: "$on_surface_medium", fontWeight: "$regular" } }, "Left by mistake?"), /* @__PURE__ */ React4.createElement(
539
- Button,
540
- {
541
- onClick: () => {
542
- rejoin();
543
- ToastManager.clearAllToast();
544
- },
545
- "data-testid": "join_again_btn"
546
- },
547
- /* @__PURE__ */ React4.createElement(ExitIcon, null),
548
- /* @__PURE__ */ React4.createElement(Text, { css: { ml: "$3", fontWeight: "$semiBold", color: "inherit" } }, "Rejoin")
549
- )),
550
- /* @__PURE__ */ React4.createElement(Feedback, null)
551
- ));
552
- };
553
- export {
554
- LeaveScreen
555
- };
556
- //# sourceMappingURL=LeaveScreen-D6XU64JL.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/Prebuilt/components/LeaveScreen.tsx", "../src/Prebuilt/components/EndCallFeedback/Feedback.tsx", "../src/Prebuilt/components/EndCallFeedback/FeedbackForm.tsx", "../src/Prebuilt/components/EndCallFeedback/ThankyouView.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport { ExitIcon } from '@100mslive/react-icons';\nimport { Feedback } from './EndCallFeedback/Feedback';\n// @ts-ignore: No implicit Any\nimport { ToastManager } from './Toast/ToastManager';\nimport { Button } from '../../Button';\nimport { Box, Flex } from '../../Layout';\nimport { Text } from '../../Text';\nimport { useHMSAppStateContext } from '../AppStateContext';\nimport { Header } from './Header';\n// @ts-ignore: No implicit Any\nimport { defaultPreviewPreference, UserPreferencesKeys, useUserPreferences } from './hooks/useUserPreferences';\nimport { textEllipsis } from '../../utils';\n\nexport const LeaveScreen = () => {\n const { rejoin } = useHMSAppStateContext();\n const [previewPreference] = useUserPreferences(UserPreferencesKeys.PREVIEW, defaultPreviewPreference);\n return (\n <Flex direction=\"column\" css={{ size: '100%' }}>\n <Box css={{ h: '$18', '@md': { h: '$17' } }} data-testid=\"header\">\n <Header />\n </Box>\n <Flex\n justify=\"center\"\n direction=\"column\"\n align=\"center\"\n css={{ bg: '$background_dim', flex: '1 1 0', position: 'relative' }}\n >\n <Text variant=\"h2\" css={{ fontWeight: '$semiBold' }}>\n \uD83D\uDC4B\n </Text>\n <Text variant=\"h4\" css={{ color: '$on_surface_high', fontWeight: '$semiBold', mt: '$12' }}>\n You left the room\n </Text>\n <Text\n variant=\"body1\"\n css={{\n color: '$on_surface_medium',\n mt: '$8',\n fontWeight: '$regular',\n textAlign: 'center',\n }}\n >\n Have a nice day\n {previewPreference.name && (\n <Box as=\"span\" css={{ ...textEllipsis(100) }}>\n , {previewPreference.name}\n </Box>\n )}\n !\n </Text>\n <Flex css={{ mt: '$14', gap: '$10', alignItems: 'center' }}>\n <Text variant=\"body1\" css={{ color: '$on_surface_medium', fontWeight: '$regular' }}>\n Left by mistake?\n </Text>\n <Button\n onClick={() => {\n rejoin();\n ToastManager.clearAllToast();\n }}\n data-testid=\"join_again_btn\"\n >\n <ExitIcon />\n <Text css={{ ml: '$3', fontWeight: '$semiBold', color: 'inherit' }}>Rejoin</Text>\n </Button>\n </Flex>\n <Feedback />\n </Flex>\n </Flex>\n );\n};\n", "import React, { useState } from 'react';\nimport { useMedia } from 'react-use';\nimport { Flex } from '../../../Layout';\nimport { config as cssConfig } from '../../../Theme';\nimport { FEEBACK_INDEX, FeedbackHeader, FeedbackModal } from './FeedbackForm';\nimport { ThankyouView } from './ThankyouView';\nimport { useRoomLayoutLeaveScreen } from '../../provider/roomLayoutProvider/hooks/useRoomLayoutScreen';\n\nexport const Feedback = () => {\n const { feedback } = useRoomLayoutLeaveScreen();\n const [index, setIndex] = useState(FEEBACK_INDEX.INIT);\n const isMobile = useMedia(cssConfig.media.md);\n\n if (!feedback) {\n return null;\n }\n const { ratings } = feedback;\n if (!ratings) {\n return null;\n }\n ratings.sort((a, b) => {\n if (!a.value || !b.value) {\n return 0;\n }\n return a.value - b.value;\n });\n // TO show thank ypu page\n if (index === FEEBACK_INDEX.THANK_YOU) {\n return (\n <Flex\n justify=\"center\"\n css={{\n pt: '$16',\n }}\n >\n <ThankyouView />\n </Flex>\n );\n }\n return (\n <Flex\n justify=\"center\"\n css={{\n pt: '$16',\n w: isMobile ? '100%' : '528px',\n }}\n >\n {index === FEEBACK_INDEX.INIT ? (\n <Flex\n css={{\n p: isMobile ? '$10' : '$12',\n border: '1px solid $border_default',\n bg: '$surface_dim',\n borderRadius: !isMobile ? '$3' : '$3 $3 0 0',\n gap: '$10',\n '@md': {\n position: 'absolute',\n bottom: '0',\n w: '100%',\n },\n }}\n direction=\"column\"\n >\n <FeedbackHeader ratings={ratings} onEmojiClicked={setIndex} />\n </Flex>\n ) : (\n <FeedbackModal ratings={ratings} index={index} setIndex={setIndex} />\n )}\n </Flex>\n );\n};\n", "import React, { useState } from 'react';\nimport { useMedia } from 'react-use';\nimport { Rating } from '@100mslive/types-prebuilt/elements/feedback';\nimport { useHMSActions } from '@100mslive/react-sdk';\nimport { CheckIcon, CrossIcon } from '@100mslive/react-icons';\nimport { Button } from '../../../Button';\nimport { Checkbox } from '../../../Checkbox';\nimport { Label } from '../../../Label';\nimport { Flex } from '../../../Layout';\nimport { Dialog } from '../../../Modal';\nimport { Sheet } from '../../../Sheet';\nimport { Text } from '../../../Text';\nimport { TextArea } from '../../../TextArea';\nimport { config as cssConfig } from '../../../Theme';\nimport { useHMSPrebuiltContext } from '../../AppContext';\nimport { useRoomLayoutLeaveScreen } from '../../provider/roomLayoutProvider/hooks/useRoomLayoutScreen';\n\nexport const FEEBACK_INDEX = {\n THANK_YOU: -10,\n INIT: -1,\n};\nexport const FeedbackModal = ({\n ratings,\n index,\n setIndex,\n}: {\n ratings: Rating[];\n index: number;\n setIndex: (index: number) => void;\n}) => {\n const isMobile = useMedia(cssConfig.media.md);\n const onOpenChange = () => {\n setIndex(FEEBACK_INDEX.INIT);\n };\n const avoidDefaultDomBehavior = (e: Event) => {\n e.preventDefault();\n };\n if (isMobile) {\n return (\n <Sheet.Root open={index !== FEEBACK_INDEX.INIT} onOpenChange={onOpenChange}>\n <Sheet.Content\n css={{ bg: '$surface_dim', p: '$10', overflowY: 'auto' }}\n onPointerDownOutside={avoidDefaultDomBehavior}\n onInteractOutside={avoidDefaultDomBehavior}\n >\n <FeedbackContent ratings={ratings} indexSelected={index} setIndex={setIndex} />\n </Sheet.Content>\n </Sheet.Root>\n );\n }\n return (\n <Dialog.Root open={index !== FEEBACK_INDEX.INIT} onOpenChange={onOpenChange}>\n <Dialog.Portal>\n <Dialog.Overlay />\n <Dialog.Content\n css={{ bg: '$surface_dim', width: '528px', p: '$12' }}\n onPointerDownOutside={avoidDefaultDomBehavior}\n onInteractOutside={avoidDefaultDomBehavior}\n >\n <FeedbackContent ratings={ratings} indexSelected={index} setIndex={setIndex} />\n </Dialog.Content>\n </Dialog.Portal>\n </Dialog.Root>\n );\n};\n\nexport const FeedbackContent = ({\n ratings,\n indexSelected,\n setIndex,\n}: {\n ratings: Rating[];\n indexSelected: number;\n setIndex: (index: number) => void;\n}) => {\n const { feedback } = useRoomLayoutLeaveScreen();\n const { endpoints } = useHMSPrebuiltContext();\n const isMobile = useMedia(cssConfig.media.md);\n const hmsActions = useHMSActions();\n const [comment, setComment] = useState('');\n const [selectedReasons, setSelectedReasons] = useState(new Set<number>());\n const handleCheckedChange = (checked: boolean | string, index: number) => {\n const newSelected = new Set(selectedReasons);\n if (checked) {\n newSelected.add(index);\n } else {\n newSelected.delete(index);\n }\n setSelectedReasons(newSelected);\n };\n const submitFeedback = async () => {\n if (indexSelected < 0 || ratings.length <= indexSelected) {\n return;\n }\n try {\n const reasons = [...selectedReasons].map((value: number) => ratings[indexSelected]?.reasons?.[value] || '');\n await hmsActions.submitSessionFeedback(\n {\n question: `${feedback?.title} | ${ratings[indexSelected].question || ''}`,\n rating: ratings[indexSelected].value || 1,\n min_rating: 1,\n max_rating: ratings.length,\n reasons: selectedReasons.size === 0 ? [] : reasons,\n comment: comment,\n },\n endpoints?.event,\n );\n } catch (e) {\n console.error(e);\n }\n // always submit and take it to thankyou page\n setIndex(FEEBACK_INDEX.THANK_YOU);\n };\n return (\n <Flex\n css={{\n p: indexSelected === FEEBACK_INDEX.INIT ? '$12 !important' : '0',\n bg: '$surface_dim',\n r: '$3',\n gap: '$10',\n }}\n direction=\"column\"\n >\n <FeedbackHeader\n ratings={ratings}\n indexSelected={indexSelected}\n onEmojiClicked={(value: number) => {\n setSelectedReasons(new Set<number>());\n setIndex(value);\n }}\n />\n <FeedbackForm\n rating={ratings[indexSelected]}\n comment={comment}\n setComment={setComment}\n selectedReasons={selectedReasons}\n handleCheckedChange={handleCheckedChange}\n />\n <Button\n type=\"submit\"\n icon\n css={{\n alignSelf: isMobile ? '' : 'end',\n }}\n onClick={submitFeedback}\n >\n {feedback?.submit_btn_label || 'Submit Feedback'}\n </Button>\n </Flex>\n );\n};\nexport const FeedbackHeader = ({\n onEmojiClicked,\n ratings,\n indexSelected = FEEBACK_INDEX.INIT,\n}: {\n onEmojiClicked: (index: number) => void;\n ratings: Rating[];\n indexSelected?: number;\n}) => {\n const isMobile = useMedia(cssConfig.media.md);\n const { feedback } = useRoomLayoutLeaveScreen();\n return (\n <>\n <Flex align=\"center\">\n <Flex\n direction=\"column\"\n css={{\n flex: '1 1 0',\n }}\n >\n <Text\n variant={isMobile ? 'h6' : 'h5'}\n css={{\n c: '$on_surface_high',\n fontStyle: 'normal',\n }}\n >\n {feedback?.title || 'How was your experience?'}\n </Text>\n <Text\n variant={isMobile ? 'body2' : 'body1'}\n css={{\n c: '$on_surface_medium',\n opacity: 0.9,\n fontWeight: '$regular',\n }}\n >\n {feedback?.sub_title || 'Your answers help us improve the quality.'}\n </Text>\n </Flex>\n {indexSelected !== FEEBACK_INDEX.INIT ? (\n <CrossIcon width=\"24px\" height=\"24px\" color=\"white\" onClick={() => onEmojiClicked(FEEBACK_INDEX.INIT)} />\n ) : null}\n </Flex>\n <Flex\n justify=\"between\"\n css={{\n gap: '$17',\n c: '$on_surface_high',\n '@md': {\n gap: '0',\n },\n }}\n >\n {ratings.map((element, index) => {\n return (\n <Flex\n align=\"center\"\n direction=\"column\"\n css={{\n c:\n indexSelected === index || indexSelected === FEEBACK_INDEX.INIT\n ? '$on_surface_high'\n : '$on_surface_default',\n gap: '$4',\n }}\n onClick={() => onEmojiClicked(index)}\n key={`${index}`}\n >\n <Text\n css={{\n fontWeight: '$semiBold',\n fontSize: '$h4',\n pb: '$1',\n cursor: 'pointer',\n opacity: indexSelected === index || indexSelected === FEEBACK_INDEX.INIT ? 1 : 0.2,\n '@md': {\n fontSize: '$h5',\n },\n }}\n >\n {element.emoji}\n </Text>\n <Text\n variant={isMobile ? 'body2' : 'body1'}\n css={{\n c:\n indexSelected === index || indexSelected === FEEBACK_INDEX.INIT\n ? '$on_surface_medium'\n : '$on_surface_low',\n fontWeight: '$regular',\n }}\n >\n {element.label}\n </Text>\n </Flex>\n );\n })}\n </Flex>\n </>\n );\n};\nexport const FeedbackForm = ({\n rating,\n comment,\n setComment,\n selectedReasons,\n handleCheckedChange,\n}: {\n rating: Rating;\n comment: string;\n setComment: (value: string) => void;\n selectedReasons: Set<number>;\n handleCheckedChange: (checked: string | boolean, index: number) => void;\n}) => {\n const { feedback } = useRoomLayoutLeaveScreen();\n return (\n <>\n {rating.reasons && rating.reasons.length > 0 && (\n <Flex\n direction=\"column\"\n css={{\n gap: '$4',\n }}\n >\n <Text\n variant=\"sub2\"\n css={{\n c: '$on_surface_high',\n fontWeight: '$semiBold',\n fontSize: '$sm',\n px: '$2',\n }}\n >\n {rating.question || 'What do you like/dislike here?'}\n </Text>\n <Flex\n css={{\n alignItems: 'flex-start',\n alignSelf: 'stretch',\n flexWrap: 'wrap',\n gap: '$6',\n flex: '1 1 calc(25% - 12px)',\n '@md': {\n flex: '1 1 calc(50% - 12px)',\n },\n '@sm': {\n flex: '1 1 100%',\n },\n }}\n >\n {rating.reasons.map((option: string, index: number) => {\n return (\n <Flex\n align=\"center\"\n gap=\"2\"\n key={index}\n css={{\n border: '1px solid $border_bright',\n r: '$1',\n p: '$6',\n }}\n >\n <Checkbox.Root\n id={`${option}-${index}`}\n checked={selectedReasons.has(index)}\n onCheckedChange={checked => handleCheckedChange(checked, index)}\n css={{\n cursor: 'pointer',\n flexShrink: 0,\n bg: '$on_secondary_low',\n border: '1px solid $border_bright',\n }}\n >\n <Checkbox.Indicator>\n <CheckIcon width={12} height={12} />\n </Checkbox.Indicator>\n </Checkbox.Root>\n <Label\n htmlFor={`${option}-${index}`}\n css={{\n color: '$on_surface_high',\n fontSize: '$sm',\n fontWeight: '$regular',\n lineHeight: '20px' /* 142.857% */,\n }}\n >\n {option}\n </Label>\n </Flex>\n );\n })}\n </Flex>\n </Flex>\n )}\n {feedback?.comment && (\n <Flex\n direction=\"column\"\n css={{\n gap: '$4',\n }}\n >\n <Text\n variant=\"body2\"\n css={{\n c: '$on_surface_high',\n fontWeight: '$regular',\n fontSize: '$sm',\n }}\n >\n {feedback?.comment.label || 'Additional comments (optional)'}\n </Text>\n <TextArea\n maxLength={1024}\n placeholder={feedback?.comment.placeholder || 'Tell us more...'}\n css={{\n backgroundColor: '$surface_bright',\n border: '1px solid $border_bright',\n resize: 'none',\n height: '$36',\n display: 'flex',\n }}\n value={comment}\n onChange={event => setComment(event.target.value.trimStart())}\n />\n </Flex>\n )}\n </>\n );\n};\n", "import React from 'react';\nimport { useMedia } from 'react-use';\nimport { UserMusicIcon } from '@100mslive/react-icons';\nimport { Flex } from '../../../Layout';\nimport { Text } from '../../../Text';\nimport { config as cssConfig } from '../../../Theme';\n\nexport const ThankyouView = () => {\n const isMobile = useMedia(cssConfig.media.md);\n return (\n <Flex\n direction={isMobile ? 'column' : 'row'}\n align=\"center\"\n css={{\n gap: '$10',\n border: '1px solid $border_default',\n borderRadius: !isMobile ? '$3' : '$3 $3 0 0',\n bg: '$surface_dim',\n w: !isMobile ? '528px' : '410px',\n p: '$12',\n pb: isMobile ? '$16' : '$12',\n '@md': {\n position: 'absolute',\n bottom: '0',\n },\n }}\n >\n <UserMusicIcon width=\"64px\" height=\"64px\" />\n <Flex direction=\"column\" align={isMobile ? 'center' : 'start'}>\n <Text variant=\"h5\">Thank you for your feedback</Text>\n <Text\n variant=\"body1\"\n css={{\n fontWeight: '$regular',\n fontSize: '$md',\n opacity: '0.9',\n }}\n >\n Your answers help us improve.\n </Text>\n </Flex>\n </Flex>\n );\n};\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,OAAOA,YAAW;AAClB,SAAS,gBAAgB;;;ACDzB;AAAA,OAAOC,UAAS,YAAAC,iBAAgB;AAChC,SAAS,YAAAC,iBAAgB;;;ACDzB;AAAA,OAAO,SAAS,gBAAgB;AAChC,SAAS,gBAAgB;AAEzB,SAAS,qBAAqB;AAC9B,SAAS,WAAW,iBAAiB;AAa9B,IAAM,gBAAgB;AAAA,EAC3B,WAAW;A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