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.
- package/dist/components/RecognitionListItem.js +52 -41
- package/dist/components/RecordListItem.js +159 -133
- package/dist/components/StyledSelect.js +1 -1
- package/dist/components/svgs.js +204 -168
- package/dist/index.js +23 -18
- package/dist/recognition.js +769 -532
- package/dist/recorder.js +390 -314
- package/package.json +3 -5
@@ -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
|
-
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
10
11
|
const RecognitionListItem = _ref => {
|
11
12
|
let {
|
12
13
|
data
|
13
14
|
} = _ref;
|
14
|
-
return /*#__PURE__*/
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
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
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
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__*/
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
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
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
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
|