dmed-voice-assistant 1.1.6 → 1.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,56 +1,67 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.default = void 0;
7
8
  var _react = _interopRequireDefault(require("react"));
8
9
  var _material = require("@mui/material");
9
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ var _jsxRuntime = require("react/jsx-runtime");
10
11
  const RecognitionListItem = _ref => {
11
12
  let {
12
13
  data
13
14
  } = _ref;
14
- return /*#__PURE__*/_react.default.createElement(_material.Box, null, /*#__PURE__*/_react.default.createElement(_material.Box, {
15
- className: "flex items-center justify-between p-[4.5px] bg-[#F6F8FA]"
16
- }, /*#__PURE__*/_react.default.createElement(_material.Box, {
17
- className: "flex items-center space-x-1 p-[4px]"
18
- }, /*#__PURE__*/_react.default.createElement(_material.Typography, {
19
- className: "!font-bold !text-[14px]",
20
- color: "#494A48"
21
- }, data.result.length), /*#__PURE__*/_react.default.createElement(_material.Typography, {
22
- className: "!font-400 !text-[12px]",
23
- color: "#494A48"
24
- }, "words")), /*#__PURE__*/_react.default.createElement(_material.Typography, {
25
- className: "px-[4px] !font-400 !text-[14px]",
26
- color: "#494A48"
27
- }, data.date.toLocaleTimeString('en-US', {
28
- hour: '2-digit',
29
- minute: '2-digit',
30
- hour12: true
31
- }))), /*#__PURE__*/_react.default.createElement(_material.Box, {
32
- className: "flex items-center flex-wrap space-x-1 mt-1 p-[9px]",
33
- sx: {
34
- maxWidth: "387px",
35
- overflow: "hidden"
36
- }
37
- }, data.result.map((item, index) => {
38
- return /*#__PURE__*/_react.default.createElement(_material.Box, {
39
- className: "flex items-center",
40
- key: index
41
- }, /*#__PURE__*/_react.default.createElement(_material.Typography, {
42
- className: "!font-400 !text-[16px]",
43
- color: "#494A48",
15
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
16
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
17
+ className: "flex items-center justify-between p-[4.5px] bg-[#F6F8FA]",
18
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
19
+ className: "flex items-center space-x-1 p-[4px]",
20
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
21
+ className: "!font-bold !text-[14px]",
22
+ color: "#494A48",
23
+ children: data.result.length
24
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
25
+ className: "!font-400 !text-[12px]",
26
+ color: "#494A48",
27
+ children: "words"
28
+ })]
29
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
30
+ className: "px-[4px] !font-400 !text-[14px]",
31
+ color: "#494A48",
32
+ children: data.date.toLocaleTimeString('en-US', {
33
+ hour: '2-digit',
34
+ minute: '2-digit',
35
+ hour12: true
36
+ })
37
+ })]
38
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
39
+ className: "flex items-center flex-wrap space-x-1 mt-1 p-[9px]",
44
40
  sx: {
45
- fontFamily: "Space Grotesk !important"
46
- }
47
- }, item), index !== data.result.length - 1 && /*#__PURE__*/_react.default.createElement(_material.Typography, {
48
- className: "!font-400 !text-[16px]",
49
- color: "#494A4880",
50
- sx: {
51
- fontFamily: "Fira Sans !important"
52
- }
53
- }, ","));
54
- })));
41
+ maxWidth: "387px",
42
+ overflow: "hidden"
43
+ },
44
+ children: data.result.map((item, index) => {
45
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
46
+ className: "flex items-center",
47
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
48
+ className: "!font-400 !text-[16px]",
49
+ color: "#494A48",
50
+ sx: {
51
+ fontFamily: "Space Grotesk !important"
52
+ },
53
+ children: item
54
+ }), index !== data.result.length - 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
55
+ className: "!font-400 !text-[16px]",
56
+ color: "#494A4880",
57
+ sx: {
58
+ fontFamily: "Fira Sans !important"
59
+ },
60
+ children: ","
61
+ })]
62
+ }, index);
63
+ })
64
+ })]
65
+ });
55
66
  };
56
67
  var _default = exports.default = RecognitionListItem;
@@ -7,6 +7,7 @@ exports.default = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var _material = require("@mui/material");
9
9
  var _svgs = require("./svgs");
10
+ var _jsxRuntime = require("react/jsx-runtime");
10
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
11
12
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
12
13
  const formatDate = date => {
@@ -110,139 +111,164 @@ const RecordListItem = _ref => {
110
111
  }
111
112
  handlePopoverClose();
112
113
  };
113
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_material.Box, {
114
- className: "flex items-center justify-between"
115
- }, /*#__PURE__*/_react.default.createElement(_material.Box, {
116
- className: "flex items-center space-x-2"
117
- }, /*#__PURE__*/_react.default.createElement(_material.Box, {
118
- className: "cursor-pointer",
119
- onClick: playAudio
120
- }, isPlaying ? /*#__PURE__*/_react.default.createElement(_svgs.PauseIcon, null) : /*#__PURE__*/_react.default.createElement(_svgs.BigStartIcon, null)), /*#__PURE__*/_react.default.createElement(_material.Box, null, isEditing ? /*#__PURE__*/_react.default.createElement(_material.TextField, {
121
- value: newLabel,
122
- onChange: handleInputChange,
123
- onBlur: handleInputBlur,
124
- onKeyDown: handleInputKeyDown,
125
- variant: "standard",
126
- autoFocus: true,
127
- inputProps: {
128
- style: {
114
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
115
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
116
+ className: "flex items-center justify-between",
117
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
118
+ className: "flex items-center space-x-2",
119
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
120
+ className: "cursor-pointer",
121
+ onClick: playAudio,
122
+ children: isPlaying ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_svgs.PauseIcon, {}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_svgs.BigStartIcon, {})
123
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
124
+ children: [isEditing ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.TextField, {
125
+ value: newLabel,
126
+ onChange: handleInputChange,
127
+ onBlur: handleInputBlur,
128
+ onKeyDown: handleInputKeyDown,
129
+ variant: "standard",
130
+ autoFocus: true,
131
+ inputProps: {
132
+ style: {
133
+ color: "#EAE5DC",
134
+ fontSize: "16px",
135
+ fontWeight: 600
136
+ }
137
+ },
138
+ sx: {
139
+ input: {
140
+ fontFamily: "Afacad !important"
141
+ }
142
+ }
143
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
144
+ className: "!font-[600] !text-[16px]",
145
+ color: "#EAE5DC",
146
+ children: newLabel
147
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Typography, {
148
+ className: "flex items-center !font-[400] !text-[14px]",
149
+ color: "#EAE5DCB2",
150
+ sx: {
151
+ fontFamily: "Afacad !important"
152
+ },
153
+ children: [formatDate(createdDate), /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
154
+ className: "mx-1",
155
+ width: "3",
156
+ height: "4",
157
+ viewBox: "0 0 3 4",
158
+ fill: "none",
159
+ xmlns: "http://www.w3.org/2000/svg",
160
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
161
+ cx: "1.5",
162
+ cy: "2",
163
+ r: "1.5",
164
+ fill: "#EAE5DC",
165
+ fillOpacity: "0.7"
166
+ })
167
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
168
+ ref: el => {
169
+ if (el) {
170
+ el.style.setProperty('font-family', 'Afacad', 'important');
171
+ }
172
+ },
173
+ style: {
174
+ fontWeight: "600",
175
+ marginRight: "3px"
176
+ },
177
+ children: formatBytes(capacity).size
178
+ }), formatBytes(capacity).type]
179
+ })]
180
+ })]
181
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Typography, {
182
+ className: "!font-[600] !text-[20px]",
129
183
  color: "#EAE5DC",
130
- fontSize: "16px",
131
- fontWeight: 600
132
- }
133
- },
134
- sx: {
135
- input: {
136
- fontFamily: "Afacad !important"
137
- }
138
- }
139
- }) : /*#__PURE__*/_react.default.createElement(_material.Typography, {
140
- className: "!font-[600] !text-[16px]",
141
- color: "#EAE5DC"
142
- }, newLabel), /*#__PURE__*/_react.default.createElement(_material.Typography, {
143
- className: "flex items-center !font-[400] !text-[14px]",
144
- color: "#EAE5DCB2",
145
- sx: {
146
- fontFamily: "Afacad !important"
147
- }
148
- }, formatDate(createdDate), /*#__PURE__*/_react.default.createElement("svg", {
149
- className: "mx-1",
150
- width: "3",
151
- height: "4",
152
- viewBox: "0 0 3 4",
153
- fill: "none",
154
- xmlns: "http://www.w3.org/2000/svg"
155
- }, /*#__PURE__*/_react.default.createElement("circle", {
156
- cx: "1.5",
157
- cy: "2",
158
- r: "1.5",
159
- fill: "#EAE5DC",
160
- fillOpacity: "0.7"
161
- })), /*#__PURE__*/_react.default.createElement("span", {
162
- ref: el => {
163
- if (el) {
164
- el.style.setProperty('font-family', 'Afacad', 'important');
165
- }
166
- },
167
- style: {
168
- fontWeight: "600",
169
- marginRight: "3px"
170
- }
171
- }, formatBytes(capacity).size), formatBytes(capacity).type))), /*#__PURE__*/_react.default.createElement(_material.Typography, {
172
- className: "!font-[600] !text-[20px]",
173
- color: "#EAE5DC",
174
- sx: {
175
- fontFamily: "Afacad !important"
176
- }
177
- }, formatTime(time).minutes, /*#__PURE__*/_react.default.createElement("span", {
178
- ref: el => {
179
- if (el) {
180
- el.style.setProperty('font-family', 'Afacad', 'important');
181
- }
182
- },
183
- style: {
184
- fontWeight: "400",
185
- fontSize: "16px",
186
- marginRight: "5px"
187
- }
188
- }, "m"), formatTime(time).seconds, /*#__PURE__*/_react.default.createElement("span", {
189
- ref: el => {
190
- if (el) {
191
- el.style.setProperty('font-family', 'Afacad', 'important');
192
- }
193
- },
194
- style: {
195
- fontWeight: "400",
196
- fontSize: "16px"
197
- }
198
- }, "s")), /*#__PURE__*/_react.default.createElement(_material.Box, {
199
- className: "cursor-pointer",
200
- onClick: handlePopoverOpen
201
- }, /*#__PURE__*/_react.default.createElement(_svgs.ThreeDotsIcon, null))), /*#__PURE__*/_react.default.createElement(_material.Popover, {
202
- open: openAnchorEl,
203
- anchorEl: anchorEl,
204
- onClose: handlePopoverClose,
205
- anchorOrigin: {
206
- vertical: 'bottom',
207
- horizontal: 'left'
208
- },
209
- transformOrigin: {
210
- vertical: 'bottom',
211
- horizontal: 'right'
212
- },
213
- disableAutoFocus: true,
214
- disableEnforceFocus: true,
215
- sx: {
216
- '& .MuiPaper-root': {
217
- boxShadow: 'none',
218
- background: '#0B0B0B',
219
- borderRadius: '5px'
220
- }
221
- }
222
- }, /*#__PURE__*/_react.default.createElement(_material.Box, {
223
- className: "px-[5px] pt-[5px] pb-[2.5px] w-[115px]"
224
- }, /*#__PURE__*/_react.default.createElement(_material.Box, {
225
- className: "flex items-center justify-between rounded-[5px] px-[10px] py-[3px] cursor-pointer",
226
- sx: {
227
- '&:hover': {
228
- background: '#323232'
229
- }
230
- },
231
- onClick: handleRename
232
- }, /*#__PURE__*/_react.default.createElement(_material.Box, null, /*#__PURE__*/_react.default.createElement(_svgs.EditIcon, null)), /*#__PURE__*/_react.default.createElement(_material.Typography, {
233
- className: "!font-400 !text-[12px]",
234
- color: "#EAE5DC"
235
- }, "Rename")), /*#__PURE__*/_react.default.createElement(_material.Box, {
236
- className: "flex items-center justify-between rounded-[5px] px-[10px] py-[3px] cursor-pointer",
237
- sx: {
238
- '&:hover': {
239
- background: '#323232'
240
- }
241
- },
242
- onClick: handleDelete
243
- }, /*#__PURE__*/_react.default.createElement(_material.Box, null, /*#__PURE__*/_react.default.createElement(_svgs.DeleteIcon, null)), /*#__PURE__*/_react.default.createElement(_material.Typography, {
244
- className: "!font-400 !text-[12px]",
245
- color: "#EAE5DC"
246
- }, "Delete")))));
184
+ sx: {
185
+ fontFamily: "Afacad !important"
186
+ },
187
+ children: [formatTime(time).minutes, /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
188
+ ref: el => {
189
+ if (el) {
190
+ el.style.setProperty('font-family', 'Afacad', 'important');
191
+ }
192
+ },
193
+ style: {
194
+ fontWeight: "400",
195
+ fontSize: "16px",
196
+ marginRight: "5px"
197
+ },
198
+ children: "m"
199
+ }), formatTime(time).seconds, /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
200
+ ref: el => {
201
+ if (el) {
202
+ el.style.setProperty('font-family', 'Afacad', 'important');
203
+ }
204
+ },
205
+ style: {
206
+ fontWeight: "400",
207
+ fontSize: "16px"
208
+ },
209
+ children: "s"
210
+ })]
211
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
212
+ className: "cursor-pointer",
213
+ onClick: handlePopoverOpen,
214
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_svgs.ThreeDotsIcon, {})
215
+ })]
216
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Popover, {
217
+ open: openAnchorEl,
218
+ anchorEl: anchorEl,
219
+ onClose: handlePopoverClose,
220
+ anchorOrigin: {
221
+ vertical: 'bottom',
222
+ horizontal: 'left'
223
+ },
224
+ transformOrigin: {
225
+ vertical: 'bottom',
226
+ horizontal: 'right'
227
+ },
228
+ disableAutoFocus: true,
229
+ disableEnforceFocus: true,
230
+ sx: {
231
+ '& .MuiPaper-root': {
232
+ boxShadow: 'none',
233
+ background: '#0B0B0B',
234
+ borderRadius: '5px'
235
+ }
236
+ },
237
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
238
+ className: "px-[5px] pt-[5px] pb-[2.5px] w-[115px]",
239
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
240
+ className: "flex items-center justify-between rounded-[5px] px-[10px] py-[3px] cursor-pointer",
241
+ sx: {
242
+ '&:hover': {
243
+ background: '#323232'
244
+ }
245
+ },
246
+ onClick: handleRename,
247
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
248
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_svgs.EditIcon, {})
249
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
250
+ className: "!font-400 !text-[12px]",
251
+ color: "#EAE5DC",
252
+ children: "Rename"
253
+ })]
254
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
255
+ className: "flex items-center justify-between rounded-[5px] px-[10px] py-[3px] cursor-pointer",
256
+ sx: {
257
+ '&:hover': {
258
+ background: '#323232'
259
+ }
260
+ },
261
+ onClick: handleDelete,
262
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
263
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_svgs.DeleteIcon, {})
264
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
265
+ className: "!font-400 !text-[12px]",
266
+ color: "#EAE5DC",
267
+ children: "Delete"
268
+ })]
269
+ })]
270
+ })
271
+ })]
272
+ });
247
273
  };
248
274
  var _default = exports.default = RecordListItem;
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.default = void 0;
7
8
  var _react = _interopRequireDefault(require("react"));
8
9
  var _material = require("@mui/material");
9
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
10
  const StyledSelect = (0, _material.styled)(_material.Select)(_ref => {
11
11
  let {
12
12
  theme