videomail-client 11.0.4 → 11.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +130 -129
- package/dist/esm/index.js +111 -96
- package/dist/esm/util/CollectLogger.d.ts +4 -4
- package/dist/esm/util/html/isHidden.d.ts +2 -0
- package/dist/esm/wrappers/buttons.d.ts +1 -1
- package/dist/esm/wrappers/form.d.ts +1 -1
- package/dist/esm/wrappers/visuals/inside/recorder/countdown.d.ts +2 -2
- package/dist/esm/wrappers/visuals/inside/recorder/facingMode.d.ts +1 -1
- package/dist/esm/wrappers/visuals/inside/recorder/pausedNote.d.ts +2 -2
- package/dist/esm/wrappers/visuals/inside/recorder/recordNote.d.ts +1 -1
- package/dist/esm/wrappers/visuals/inside/recorder/recordTimer.d.ts +3 -3
- package/dist/esm/wrappers/visuals/inside/recorderInsides.d.ts +5 -5
- package/dist/esm/wrappers/visuals/notifier.d.ts +1 -1
- package/dist/esm/wrappers/visuals/userMedia.d.ts +2 -2
- package/dist/esm/wrappers/visuals.d.ts +5 -5
- package/dist/umd/index.js +18142 -4498
- package/package.json +9 -10
- package/dist/esm/util/isPromise.d.ts +0 -2
- package/dist/umd/99.js +0 -13754
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var __webpack_modules__ = {
|
|
2
|
-
"./node_modules/@
|
|
2
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[12].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[12].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[12].use[3]!./src/styles/main.styl": function(module, __webpack_exports__, __webpack_require__) {
|
|
3
3
|
"use strict";
|
|
4
4
|
__webpack_require__.d(__webpack_exports__, {
|
|
5
5
|
A: ()=>__WEBPACK_DEFAULT_EXPORT__
|
|
6
6
|
});
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var ___CSS_LOADER_EXPORT___ =
|
|
7
|
+
var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
8
|
+
var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
9
|
+
var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
10
|
+
var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
11
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
|
|
12
12
|
___CSS_LOADER_EXPORT___.push([
|
|
13
13
|
module.id,
|
|
14
14
|
`@keyframes blink {
|
|
@@ -4987,13 +4987,6 @@ var __webpack_modules__ = {
|
|
|
4987
4987
|
var bind = __webpack_require__("./node_modules/function-bind/index.js");
|
|
4988
4988
|
module.exports = bind.call(call, $hasOwn);
|
|
4989
4989
|
},
|
|
4990
|
-
"./node_modules/hidden/index.js": function(module) {
|
|
4991
|
-
module.exports = shim;
|
|
4992
|
-
function shim(element, value) {
|
|
4993
|
-
if (void 0 === value) return 'none' === element.style.display;
|
|
4994
|
-
element.style.display = value ? 'none' : '';
|
|
4995
|
-
}
|
|
4996
|
-
},
|
|
4997
4990
|
"./node_modules/ieee754/index.js": function(__unused_webpack_module, exports1) {
|
|
4998
4991
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ exports1.read = function(buffer, offset, isLE, mLen, nBytes) {
|
|
4999
4992
|
var e, m;
|
|
@@ -10188,7 +10181,7 @@ var __webpack_modules__ = {
|
|
|
10188
10181
|
"?aa23": function() {},
|
|
10189
10182
|
"?9936": function() {},
|
|
10190
10183
|
"?5f55": function() {},
|
|
10191
|
-
"./node_modules/@
|
|
10184
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module) {
|
|
10192
10185
|
"use strict";
|
|
10193
10186
|
module.exports = function(cssWithMappingToString) {
|
|
10194
10187
|
var list = [];
|
|
@@ -10242,13 +10235,13 @@ var __webpack_modules__ = {
|
|
|
10242
10235
|
return list;
|
|
10243
10236
|
};
|
|
10244
10237
|
},
|
|
10245
|
-
"./node_modules/@
|
|
10238
|
+
"./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module) {
|
|
10246
10239
|
"use strict";
|
|
10247
10240
|
module.exports = function(i) {
|
|
10248
10241
|
return i[1];
|
|
10249
10242
|
};
|
|
10250
10243
|
},
|
|
10251
|
-
"./node_modules/@
|
|
10244
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module) {
|
|
10252
10245
|
"use strict";
|
|
10253
10246
|
var stylesInDOM = [];
|
|
10254
10247
|
function getIndexByIdentifier(identifier) {
|
|
@@ -10327,7 +10320,7 @@ var __webpack_modules__ = {
|
|
|
10327
10320
|
};
|
|
10328
10321
|
};
|
|
10329
10322
|
},
|
|
10330
|
-
"./node_modules/@
|
|
10323
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module) {
|
|
10331
10324
|
"use strict";
|
|
10332
10325
|
var memo = {};
|
|
10333
10326
|
function getTarget(target) {
|
|
@@ -10349,7 +10342,7 @@ var __webpack_modules__ = {
|
|
|
10349
10342
|
}
|
|
10350
10343
|
module.exports = insertBySelector;
|
|
10351
10344
|
},
|
|
10352
|
-
"./node_modules/@
|
|
10345
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module) {
|
|
10353
10346
|
"use strict";
|
|
10354
10347
|
function insertStyleElement(options) {
|
|
10355
10348
|
var element = document.createElement("style");
|
|
@@ -10359,7 +10352,7 @@ var __webpack_modules__ = {
|
|
|
10359
10352
|
}
|
|
10360
10353
|
module.exports = insertStyleElement;
|
|
10361
10354
|
},
|
|
10362
|
-
"./node_modules/@
|
|
10355
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
10363
10356
|
"use strict";
|
|
10364
10357
|
function setAttributesWithoutAttributes(styleElement) {
|
|
10365
10358
|
var nonce = __webpack_require__.nc;
|
|
@@ -10367,7 +10360,7 @@ var __webpack_modules__ = {
|
|
|
10367
10360
|
}
|
|
10368
10361
|
module.exports = setAttributesWithoutAttributes;
|
|
10369
10362
|
},
|
|
10370
|
-
"./node_modules/@
|
|
10363
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module) {
|
|
10371
10364
|
"use strict";
|
|
10372
10365
|
function apply(styleElement, options, obj) {
|
|
10373
10366
|
var css = "";
|
|
@@ -10404,7 +10397,7 @@ var __webpack_modules__ = {
|
|
|
10404
10397
|
}
|
|
10405
10398
|
module.exports = domAPI;
|
|
10406
10399
|
},
|
|
10407
|
-
"./node_modules/@
|
|
10400
|
+
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module) {
|
|
10408
10401
|
"use strict";
|
|
10409
10402
|
function styleTagTransform(css, styleElement) {
|
|
10410
10403
|
if (styleElement.styleSheet) styleElement.styleSheet.cssText = css;
|
|
@@ -10649,7 +10642,7 @@ var __webpack_exports__ = {};
|
|
|
10649
10642
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10650
10643
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10651
10644
|
var package_namespaceObject = {
|
|
10652
|
-
rE: "11.0.
|
|
10645
|
+
rE: "11.0.6"
|
|
10653
10646
|
};
|
|
10654
10647
|
var defined = __webpack_require__("./node_modules/defined/index.js");
|
|
10655
10648
|
var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
|
|
@@ -14213,8 +14206,6 @@ var __webpack_exports__ = {};
|
|
|
14213
14206
|
return value;
|
|
14214
14207
|
}
|
|
14215
14208
|
getFormData.getFieldData = getFieldData;
|
|
14216
|
-
var node_modules_hidden = __webpack_require__("./node_modules/hidden/index.js");
|
|
14217
|
-
var hidden_default = /*#__PURE__*/ __webpack_require__.n(node_modules_hidden);
|
|
14218
14209
|
let createNanoEvents = ()=>({
|
|
14219
14210
|
emit (event, ...args) {
|
|
14220
14211
|
for(let callbacks = this.events[event] || [], i = 0, length = callbacks.length; i < length; i++)callbacks[i](...args);
|
|
@@ -14285,10 +14276,20 @@ var __webpack_exports__ = {};
|
|
|
14285
14276
|
}
|
|
14286
14277
|
Despot_define_property(Despot, "EMITTER", createNanoEvents());
|
|
14287
14278
|
const util_Despot = Despot;
|
|
14279
|
+
function hideElement(element) {
|
|
14280
|
+
if (!element) return;
|
|
14281
|
+
element.style.setProperty("display", "none", "important");
|
|
14282
|
+
}
|
|
14283
|
+
const html_hideElement = hideElement;
|
|
14288
14284
|
function isNotButton(element) {
|
|
14289
14285
|
return "BUTTON" !== element.tagName && "submit" !== element.getAttribute("type");
|
|
14290
14286
|
}
|
|
14291
14287
|
const html_isNotButton = isNotButton;
|
|
14288
|
+
function showElement(element) {
|
|
14289
|
+
if (!element) return;
|
|
14290
|
+
element.style.removeProperty("display");
|
|
14291
|
+
}
|
|
14292
|
+
const html_showElement = showElement;
|
|
14292
14293
|
const REGEX = /[ ,]+/u;
|
|
14293
14294
|
function trimEmail(email) {
|
|
14294
14295
|
return email.replace(REGEX, "");
|
|
@@ -14381,8 +14382,8 @@ var __webpack_exports__ = {};
|
|
|
14381
14382
|
else formControl.removeAttribute("disabled");
|
|
14382
14383
|
}
|
|
14383
14384
|
hideAll() {
|
|
14384
|
-
for (const formElement of this.formElement.elements)
|
|
14385
|
-
if (!this.formElement.classList.contains(this.options.selectors.containerClass))
|
|
14385
|
+
for (const formElement of this.formElement.elements)html_hideElement(formElement);
|
|
14386
|
+
if (!this.formElement.classList.contains(this.options.selectors.containerClass)) html_hideElement(this.formElement);
|
|
14386
14387
|
}
|
|
14387
14388
|
isRegisteredFormField(formElement) {
|
|
14388
14389
|
const formElementName = formElement.getAttribute("name");
|
|
@@ -14468,7 +14469,7 @@ var __webpack_exports__ = {};
|
|
|
14468
14469
|
}
|
|
14469
14470
|
hideSubmitButton() {
|
|
14470
14471
|
const submitButton = this.findSubmitButton();
|
|
14471
|
-
|
|
14472
|
+
html_hideElement(submitButton);
|
|
14472
14473
|
}
|
|
14473
14474
|
unload() {
|
|
14474
14475
|
this.options.logger.debug("Form: unload()");
|
|
@@ -14528,10 +14529,10 @@ var __webpack_exports__ = {};
|
|
|
14528
14529
|
return this.formElement.querySelector("[type='submit']");
|
|
14529
14530
|
}
|
|
14530
14531
|
hide() {
|
|
14531
|
-
|
|
14532
|
+
html_hideElement(this.formElement);
|
|
14532
14533
|
}
|
|
14533
14534
|
show() {
|
|
14534
|
-
|
|
14535
|
+
html_showElement(this.formElement);
|
|
14535
14536
|
}
|
|
14536
14537
|
constructor(container, formElement, options){
|
|
14537
14538
|
super("Form", options), form_define_property(this, "container", void 0), form_define_property(this, "formElement", void 0), form_define_property(this, "keyInput", void 0), form_define_property(this, "FORM_FIELDS", {});
|
|
@@ -14925,19 +14926,19 @@ var __webpack_exports__ = {};
|
|
|
14925
14926
|
return newOptions;
|
|
14926
14927
|
}
|
|
14927
14928
|
const mergeWithDefaultOptions = mergeWithDefaultOptions_mergeWithDefaultOptions;
|
|
14928
|
-
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@
|
|
14929
|
+
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
|
|
14929
14930
|
var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
|
|
14930
|
-
var styleDomAPI = __webpack_require__("./node_modules/@
|
|
14931
|
+
var styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
|
|
14931
14932
|
var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
|
|
14932
|
-
var insertBySelector = __webpack_require__("./node_modules/@
|
|
14933
|
+
var insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
|
|
14933
14934
|
var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
|
|
14934
|
-
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@
|
|
14935
|
+
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
|
|
14935
14936
|
var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
|
|
14936
|
-
var insertStyleElement = __webpack_require__("./node_modules/@
|
|
14937
|
+
var insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
|
|
14937
14938
|
var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
|
|
14938
|
-
var styleTagTransform = __webpack_require__("./node_modules/@
|
|
14939
|
+
var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
|
|
14939
14940
|
var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
|
|
14940
|
-
var main = __webpack_require__("./node_modules/@
|
|
14941
|
+
var main = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[12].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[12].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[12].use[3]!./src/styles/main.styl");
|
|
14941
14942
|
var main_options = {};
|
|
14942
14943
|
main_options.styleTagTransform = styleTagTransform_default();
|
|
14943
14944
|
main_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
@@ -14987,15 +14988,10 @@ var __webpack_exports__ = {};
|
|
|
14987
14988
|
else element.classList.add("disabled");
|
|
14988
14989
|
}
|
|
14989
14990
|
const html_disableElement = disableElement;
|
|
14990
|
-
function hideElement_hideElement(element) {
|
|
14991
|
-
if (!element) return;
|
|
14992
|
-
hidden_default()(element, true);
|
|
14993
|
-
}
|
|
14994
|
-
const hideElement = hideElement_hideElement;
|
|
14995
14991
|
function adjustButton(buttonElement, show, type, disabled) {
|
|
14996
14992
|
if (disabled) html_disableElement(buttonElement);
|
|
14997
14993
|
if (type) buttonElement.type = type;
|
|
14998
|
-
if (!show)
|
|
14994
|
+
if (!show) html_hideElement(buttonElement);
|
|
14999
14995
|
return buttonElement;
|
|
15000
14996
|
}
|
|
15001
14997
|
const html_adjustButton = adjustButton;
|
|
@@ -15007,14 +15003,10 @@ var __webpack_exports__ = {};
|
|
|
15007
15003
|
const html_enableElement = enableElement;
|
|
15008
15004
|
function isShown(element) {
|
|
15009
15005
|
if (!element) return false;
|
|
15010
|
-
|
|
15006
|
+
const display = element.style.getPropertyValue("display");
|
|
15007
|
+
return !display.includes("none");
|
|
15011
15008
|
}
|
|
15012
15009
|
const html_isShown = isShown;
|
|
15013
|
-
function showElement(element) {
|
|
15014
|
-
if (!element) return;
|
|
15015
|
-
hidden_default()(element, false);
|
|
15016
|
-
}
|
|
15017
|
-
const html_showElement = showElement;
|
|
15018
15010
|
function buttons_define_property(obj, key, value) {
|
|
15019
15011
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
15020
15012
|
value: value,
|
|
@@ -15138,12 +15130,12 @@ var __webpack_exports__ = {};
|
|
|
15138
15130
|
}
|
|
15139
15131
|
if (!(null == params ? void 0 : params.paused)) {
|
|
15140
15132
|
html_disableElement(this.previewButton);
|
|
15141
|
-
|
|
15133
|
+
html_hideElement(this.previewButton);
|
|
15142
15134
|
}
|
|
15143
15135
|
if (!this.options.enableAutoValidation) html_enableElement(this.submitButton);
|
|
15144
15136
|
}
|
|
15145
15137
|
onGoingBack() {
|
|
15146
|
-
|
|
15138
|
+
html_hideElement(this.recordAgainButton);
|
|
15147
15139
|
html_showElement(this.recordButton);
|
|
15148
15140
|
html_showElement(this.submitButton);
|
|
15149
15141
|
}
|
|
@@ -15168,8 +15160,8 @@ var __webpack_exports__ = {};
|
|
|
15168
15160
|
this.reset();
|
|
15169
15161
|
}
|
|
15170
15162
|
onPreview() {
|
|
15171
|
-
|
|
15172
|
-
|
|
15163
|
+
html_hideElement(this.recordButton);
|
|
15164
|
+
html_hideElement(this.previewButton);
|
|
15173
15165
|
html_disableElement(this.audioOnRadioPair);
|
|
15174
15166
|
html_disableElement(this.audioOffRadioPair);
|
|
15175
15167
|
html_showElement(this.recordAgainButton);
|
|
@@ -15181,17 +15173,17 @@ var __webpack_exports__ = {};
|
|
|
15181
15173
|
}
|
|
15182
15174
|
adjustButtonsForPause() {
|
|
15183
15175
|
if (!this.isCountingDown()) {
|
|
15184
|
-
if (this.pauseButton)
|
|
15176
|
+
if (this.pauseButton) html_hideElement(this.pauseButton);
|
|
15185
15177
|
html_showElement(this.resumeButton);
|
|
15186
15178
|
html_enableElement(this.resumeButton);
|
|
15187
|
-
|
|
15179
|
+
html_hideElement(this.recordButton);
|
|
15188
15180
|
html_showElement(this.previewButton);
|
|
15189
15181
|
html_enableElement(this.previewButton);
|
|
15190
15182
|
}
|
|
15191
15183
|
}
|
|
15192
15184
|
onFirstFrameSent() {
|
|
15193
|
-
|
|
15194
|
-
|
|
15185
|
+
html_hideElement(this.recordButton);
|
|
15186
|
+
html_hideElement(this.recordAgainButton);
|
|
15195
15187
|
if (this.pauseButton) {
|
|
15196
15188
|
html_showElement(this.pauseButton);
|
|
15197
15189
|
html_enableElement(this.pauseButton);
|
|
@@ -15209,8 +15201,8 @@ var __webpack_exports__ = {};
|
|
|
15209
15201
|
}
|
|
15210
15202
|
}
|
|
15211
15203
|
onResuming() {
|
|
15212
|
-
|
|
15213
|
-
|
|
15204
|
+
html_hideElement(this.resumeButton);
|
|
15205
|
+
html_hideElement(this.recordButton);
|
|
15214
15206
|
if (this.pauseButton) {
|
|
15215
15207
|
html_enableElement(this.pauseButton);
|
|
15216
15208
|
html_showElement(this.pauseButton);
|
|
@@ -15219,8 +15211,8 @@ var __webpack_exports__ = {};
|
|
|
15219
15211
|
onStopping() {
|
|
15220
15212
|
html_disableElement(this.previewButton);
|
|
15221
15213
|
html_disableElement(this.recordButton);
|
|
15222
|
-
|
|
15223
|
-
|
|
15214
|
+
html_hideElement(this.pauseButton);
|
|
15215
|
+
html_hideElement(this.resumeButton);
|
|
15224
15216
|
}
|
|
15225
15217
|
onCountdown() {
|
|
15226
15218
|
html_disableElement(this.recordButton);
|
|
@@ -15245,12 +15237,12 @@ var __webpack_exports__ = {};
|
|
|
15245
15237
|
if (this.options.enableAutoValidation) html_enableElement(this.submitButton);
|
|
15246
15238
|
}
|
|
15247
15239
|
onHidden() {
|
|
15248
|
-
|
|
15249
|
-
|
|
15250
|
-
|
|
15251
|
-
|
|
15252
|
-
|
|
15253
|
-
|
|
15240
|
+
html_hideElement(this.recordButton);
|
|
15241
|
+
html_hideElement(this.previewButton);
|
|
15242
|
+
html_hideElement(this.recordAgainButton);
|
|
15243
|
+
html_hideElement(this.resumeButton);
|
|
15244
|
+
html_hideElement(this.audioOnRadioPair);
|
|
15245
|
+
html_hideElement(this.audioOffRadioPair);
|
|
15254
15246
|
}
|
|
15255
15247
|
onEnablingAudio() {
|
|
15256
15248
|
this.options.logger.debug("Buttons: onEnablingAudio()");
|
|
@@ -15391,7 +15383,7 @@ var __webpack_exports__ = {};
|
|
|
15391
15383
|
this.buttonsElement.classList.add(this.options.selectors.buttonsClass);
|
|
15392
15384
|
this.container.appendChild(this.buttonsElement);
|
|
15393
15385
|
}
|
|
15394
|
-
|
|
15386
|
+
html_hideElement(this.buttonsElement);
|
|
15395
15387
|
this.buildButtons();
|
|
15396
15388
|
if (!this.built) this.initEvents();
|
|
15397
15389
|
this.built = true;
|
|
@@ -15407,16 +15399,16 @@ var __webpack_exports__ = {};
|
|
|
15407
15399
|
}
|
|
15408
15400
|
hide() {
|
|
15409
15401
|
let deep = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false;
|
|
15410
|
-
|
|
15402
|
+
html_hideElement(this.buttonsElement);
|
|
15411
15403
|
if (deep) {
|
|
15412
|
-
|
|
15413
|
-
|
|
15414
|
-
|
|
15415
|
-
|
|
15416
|
-
|
|
15417
|
-
|
|
15418
|
-
|
|
15419
|
-
|
|
15404
|
+
html_hideElement(this.recordButton);
|
|
15405
|
+
html_hideElement(this.pauseButton);
|
|
15406
|
+
html_hideElement(this.resumeButton);
|
|
15407
|
+
html_hideElement(this.previewButton);
|
|
15408
|
+
html_hideElement(this.recordAgainButton);
|
|
15409
|
+
html_hideElement(this.submitButton);
|
|
15410
|
+
html_hideElement(this.audioOnRadioPair);
|
|
15411
|
+
html_hideElement(this.audioOffRadioPair);
|
|
15420
15412
|
}
|
|
15421
15413
|
}
|
|
15422
15414
|
show() {
|
|
@@ -15431,6 +15423,12 @@ var __webpack_exports__ = {};
|
|
|
15431
15423
|
}
|
|
15432
15424
|
}
|
|
15433
15425
|
const buttons = Buttons;
|
|
15426
|
+
function isHidden_isHidden(element) {
|
|
15427
|
+
if (!element) return true;
|
|
15428
|
+
const display = element.style.getPropertyValue("display");
|
|
15429
|
+
return display.includes("none");
|
|
15430
|
+
}
|
|
15431
|
+
const isHidden = isHidden_isHidden;
|
|
15434
15432
|
function countdown_define_property(obj, key, value) {
|
|
15435
15433
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
15436
15434
|
value: value,
|
|
@@ -15485,7 +15483,7 @@ var __webpack_exports__ = {};
|
|
|
15485
15483
|
}
|
|
15486
15484
|
}
|
|
15487
15485
|
show() {
|
|
15488
|
-
|
|
15486
|
+
html_showElement(this.countdownElement);
|
|
15489
15487
|
}
|
|
15490
15488
|
isCountingDown() {
|
|
15491
15489
|
return Boolean(this.intervalId);
|
|
@@ -15496,7 +15494,7 @@ var __webpack_exports__ = {};
|
|
|
15496
15494
|
this.intervalId = void 0;
|
|
15497
15495
|
}
|
|
15498
15496
|
hide() {
|
|
15499
|
-
|
|
15497
|
+
html_hideElement(this.countdownElement);
|
|
15500
15498
|
this.unload();
|
|
15501
15499
|
}
|
|
15502
15500
|
constructor(visuals, options){
|
|
@@ -15551,10 +15549,10 @@ var __webpack_exports__ = {};
|
|
|
15551
15549
|
this.initEvents();
|
|
15552
15550
|
}
|
|
15553
15551
|
hide() {
|
|
15554
|
-
|
|
15552
|
+
html_hideElement(this.facingModeElement);
|
|
15555
15553
|
}
|
|
15556
15554
|
show() {
|
|
15557
|
-
|
|
15555
|
+
html_showElement(this.facingModeElement);
|
|
15558
15556
|
}
|
|
15559
15557
|
constructor(visuals, options){
|
|
15560
15558
|
super("Facing Mode", options), facingMode_define_property(this, "visuals", void 0), facingMode_define_property(this, "facingModeElement", void 0);
|
|
@@ -15606,10 +15604,10 @@ var __webpack_exports__ = {};
|
|
|
15606
15604
|
}
|
|
15607
15605
|
}
|
|
15608
15606
|
hide() {
|
|
15609
|
-
|
|
15607
|
+
html_hideElement(this.pausedBlockElement);
|
|
15610
15608
|
}
|
|
15611
15609
|
show() {
|
|
15612
|
-
|
|
15610
|
+
html_showElement(this.pausedBlockElement);
|
|
15613
15611
|
}
|
|
15614
15612
|
constructor(visuals, options){
|
|
15615
15613
|
pausedNote_define_property(this, "visuals", void 0);
|
|
@@ -15659,10 +15657,10 @@ var __webpack_exports__ = {};
|
|
|
15659
15657
|
null == (_this_recordNoteElement = this.recordNoteElement) || _this_recordNoteElement.classList.add("nigh");
|
|
15660
15658
|
}
|
|
15661
15659
|
hide() {
|
|
15662
|
-
|
|
15660
|
+
html_hideElement(this.recordNoteElement);
|
|
15663
15661
|
}
|
|
15664
15662
|
show() {
|
|
15665
|
-
|
|
15663
|
+
html_showElement(this.recordNoteElement);
|
|
15666
15664
|
}
|
|
15667
15665
|
constructor(visuals){
|
|
15668
15666
|
recordNote_define_property(this, "visuals", void 0);
|
|
@@ -15740,13 +15738,13 @@ var __webpack_exports__ = {};
|
|
|
15740
15738
|
if (this.recordTimerElement) this.recordTimerElement.innerHTML = `${mins}:${util_pad(secs)}`;
|
|
15741
15739
|
}
|
|
15742
15740
|
hide() {
|
|
15743
|
-
|
|
15741
|
+
html_hideElement(this.recordTimerElement);
|
|
15744
15742
|
}
|
|
15745
15743
|
show() {
|
|
15746
15744
|
var _this_recordTimerElement, _this_recordTimerElement1;
|
|
15747
15745
|
null == (_this_recordTimerElement = this.recordTimerElement) || _this_recordTimerElement.classList.remove("near");
|
|
15748
15746
|
null == (_this_recordTimerElement1 = this.recordTimerElement) || _this_recordTimerElement1.classList.remove("nigh");
|
|
15749
|
-
|
|
15747
|
+
html_showElement(this.recordTimerElement);
|
|
15750
15748
|
}
|
|
15751
15749
|
getSecondsRecorded() {
|
|
15752
15750
|
if (void 0 === this.countdown) return this.getSecondsRecorded();
|
|
@@ -16016,7 +16014,7 @@ var __webpack_exports__ = {};
|
|
|
16016
16014
|
}
|
|
16017
16015
|
}
|
|
16018
16016
|
show() {
|
|
16019
|
-
|
|
16017
|
+
html_showElement(this.notifyElement);
|
|
16020
16018
|
}
|
|
16021
16019
|
runEntertainment() {
|
|
16022
16020
|
if (this.options.notifier.entertain) {
|
|
@@ -16064,7 +16062,7 @@ var __webpack_exports__ = {};
|
|
|
16064
16062
|
this.messageElement.innerHTML = (problem ? "☹ " : "") + message;
|
|
16065
16063
|
} else this.options.logger.warn("There is no message element for displaying a message");
|
|
16066
16064
|
else this.options.logger.warn("Not going to update notifierMessage element because message is empty");
|
|
16067
|
-
|
|
16065
|
+
html_showElement(this.messageElement);
|
|
16068
16066
|
}
|
|
16069
16067
|
setExplanation(explanation) {
|
|
16070
16068
|
this.options.logger.debug(`Notifier: setExplanation(${explanation})`);
|
|
@@ -16075,7 +16073,7 @@ var __webpack_exports__ = {};
|
|
|
16075
16073
|
else this.options.logger.warn(`Unable to show explanation because notifyElement is empty: ${explanation}`);
|
|
16076
16074
|
}
|
|
16077
16075
|
this.explanationElement.innerHTML = explanation;
|
|
16078
|
-
|
|
16076
|
+
html_showElement(this.explanationElement);
|
|
16079
16077
|
}
|
|
16080
16078
|
build() {
|
|
16081
16079
|
var _this_visuals_getElement;
|
|
@@ -16091,15 +16089,15 @@ var __webpack_exports__ = {};
|
|
|
16091
16089
|
this.built = true;
|
|
16092
16090
|
}
|
|
16093
16091
|
hideMessage() {
|
|
16094
|
-
|
|
16092
|
+
html_hideElement(this.getMessageElement());
|
|
16095
16093
|
}
|
|
16096
16094
|
hideExplanation() {
|
|
16097
|
-
|
|
16095
|
+
html_hideElement(this.explanationElement);
|
|
16098
16096
|
}
|
|
16099
16097
|
hide() {
|
|
16100
16098
|
this.cancelEntertainment();
|
|
16101
16099
|
if (this.notifyElement) {
|
|
16102
|
-
|
|
16100
|
+
html_hideElement(this.notifyElement);
|
|
16103
16101
|
this.notifyElement.classList.remove("blocking");
|
|
16104
16102
|
}
|
|
16105
16103
|
this.hideMessage();
|
|
@@ -16107,7 +16105,7 @@ var __webpack_exports__ = {};
|
|
|
16107
16105
|
}
|
|
16108
16106
|
isVisible() {
|
|
16109
16107
|
if (!this.built) return false;
|
|
16110
|
-
return this.notifyElement && !
|
|
16108
|
+
return this.notifyElement && !isHidden(this.notifyElement);
|
|
16111
16109
|
}
|
|
16112
16110
|
isBuilt() {
|
|
16113
16111
|
return this.built;
|
|
@@ -16415,10 +16413,6 @@ var __webpack_exports__ = {};
|
|
|
16415
16413
|
"volumechange"
|
|
16416
16414
|
];
|
|
16417
16415
|
const mediaEvents = MEDIA_EVENTS;
|
|
16418
|
-
function isPromise_isPromise(anything) {
|
|
16419
|
-
return Boolean(anything && "undefined" != typeof Promise && "[object Promise]" === Object.prototype.toString.call(anything));
|
|
16420
|
-
}
|
|
16421
|
-
const isPromise = isPromise_isPromise;
|
|
16422
16416
|
function userMedia_define_property(obj, key, value) {
|
|
16423
16417
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
16424
16418
|
value: value,
|
|
@@ -16504,19 +16498,18 @@ var __webpack_exports__ = {};
|
|
|
16504
16498
|
null == (_this_rawVisualUserMedia = this.rawVisualUserMedia) || _this_rawVisualUserMedia.load();
|
|
16505
16499
|
if (null == (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia1.paused) {
|
|
16506
16500
|
this.options.logger.debug(`UserMedia: play(): media.readyState=${this.rawVisualUserMedia.readyState}, media.paused=${this.rawVisualUserMedia.paused}, media.ended=${this.rawVisualUserMedia.ended}, media.played=${util_pretty(this.rawVisualUserMedia.played)}`);
|
|
16507
|
-
|
|
16508
|
-
try {
|
|
16509
|
-
p = this.rawVisualUserMedia.play();
|
|
16510
|
-
} catch (exc) {
|
|
16511
|
-
this.options.logger.warn(`Caught raw user media play exception: ${exc}`);
|
|
16512
|
-
}
|
|
16513
|
-
if (isPromise(p)) p.then(()=>{
|
|
16501
|
+
this.rawVisualUserMedia.play().then(()=>{
|
|
16514
16502
|
if (!this.playingPromiseReached) {
|
|
16515
16503
|
this.options.logger.debug("UserMedia: play promise successful. Playing now.");
|
|
16516
16504
|
this.playingPromiseReached = true;
|
|
16517
16505
|
}
|
|
16518
|
-
}).catch((
|
|
16519
|
-
this.options.logger.warn(`Caught pending user media promise exception: ${
|
|
16506
|
+
}).catch((exc)=>{
|
|
16507
|
+
if (exc instanceof Error) this.options.logger.warn(`Caught pending user media promise exception: ${exc.toString()}`);
|
|
16508
|
+
else throw error_createError({
|
|
16509
|
+
message: "Failed to play user media upon play event.",
|
|
16510
|
+
exc,
|
|
16511
|
+
options: this.options
|
|
16512
|
+
});
|
|
16520
16513
|
});
|
|
16521
16514
|
}
|
|
16522
16515
|
} catch (exc) {
|
|
@@ -16620,12 +16613,12 @@ var __webpack_exports__ = {};
|
|
|
16620
16613
|
let chosenStream = visualStream;
|
|
16621
16614
|
if (!(null == params ? void 0 : params.aboutToInitialize)) {
|
|
16622
16615
|
var _this_audioRecorder;
|
|
16623
|
-
|
|
16616
|
+
null != chosenStream || (chosenStream = this.currentVisualStream);
|
|
16624
16617
|
const tracks = null == chosenStream ? void 0 : chosenStream.getTracks();
|
|
16625
16618
|
if (tracks) tracks.forEach((track)=>{
|
|
16626
16619
|
track.stop();
|
|
16627
16620
|
});
|
|
16628
|
-
this.setVisualStream(
|
|
16621
|
+
this.setVisualStream();
|
|
16629
16622
|
null == (_this_audioRecorder = this.audioRecorder) || _this_audioRecorder.stop();
|
|
16630
16623
|
this.audioRecorder = void 0;
|
|
16631
16624
|
}
|
|
@@ -16797,7 +16790,7 @@ var __webpack_exports__ = {};
|
|
|
16797
16790
|
this.writeStream(audioBuffer);
|
|
16798
16791
|
}
|
|
16799
16792
|
show() {
|
|
16800
|
-
|
|
16793
|
+
html_showElement(this.recorderElement);
|
|
16801
16794
|
}
|
|
16802
16795
|
onUserMediaReady(params) {
|
|
16803
16796
|
try {
|
|
@@ -16888,7 +16881,7 @@ var __webpack_exports__ = {};
|
|
|
16888
16881
|
hasAudio
|
|
16889
16882
|
});
|
|
16890
16883
|
if (this.stopTime) this.waitingTime = Date.now() - this.stopTime;
|
|
16891
|
-
|
|
16884
|
+
null != this.recordingStats || (this.recordingStats = {});
|
|
16892
16885
|
this.recordingStats.waitingTime = this.waitingTime;
|
|
16893
16886
|
}
|
|
16894
16887
|
initSocket(cb) {
|
|
@@ -17184,7 +17177,7 @@ var __webpack_exports__ = {};
|
|
|
17184
17177
|
return this.visuals.isNotifying();
|
|
17185
17178
|
}
|
|
17186
17179
|
isHidden() {
|
|
17187
|
-
return !this.recorderElement ||
|
|
17180
|
+
return !this.recorderElement || isHidden(this.recorderElement);
|
|
17188
17181
|
}
|
|
17189
17182
|
writeCommand(command, args, cb) {
|
|
17190
17183
|
if (this.connected) {
|
|
@@ -17564,7 +17557,7 @@ var __webpack_exports__ = {};
|
|
|
17564
17557
|
this.recorderElement.style["-webkit-transform"] = "rotateY(180deg)";
|
|
17565
17558
|
this.recorderElement.style["-moz-transform"] = "rotateY(180deg)";
|
|
17566
17559
|
if (this.options.video.stretch) this.recorderElement.style.width = "100%";
|
|
17567
|
-
|
|
17560
|
+
null != this.userMedia || (this.userMedia = new visuals_userMedia(this, this.options));
|
|
17568
17561
|
this.show();
|
|
17569
17562
|
if (this.built) {
|
|
17570
17563
|
if (this.options.loadUserMediaOnRecord) this.loadUserMedia();
|
|
@@ -17586,7 +17579,7 @@ var __webpack_exports__ = {};
|
|
|
17586
17579
|
}
|
|
17587
17580
|
hide() {
|
|
17588
17581
|
if (!this.isHidden()) {
|
|
17589
|
-
if (this.recorderElement)
|
|
17582
|
+
if (this.recorderElement) html_hideElement(this.recorderElement);
|
|
17590
17583
|
this.clearUserMediaTimeout();
|
|
17591
17584
|
this.clearRetryTimeout();
|
|
17592
17585
|
}
|
|
@@ -17747,9 +17740,9 @@ var __webpack_exports__ = {};
|
|
|
17747
17740
|
const hasMedia = Boolean(null == (_this_videomail = this.videomail) ? void 0 : _this_videomail.webm) || Boolean(null == (_this_videomail1 = this.videomail) ? void 0 : _this_videomail1.mp4) || Boolean(null == (_this_videomail2 = this.videomail) ? void 0 : _this_videomail2.poster);
|
|
17748
17741
|
if (hasMedia) this.correctDimensions(true, null != videomailWidth ? videomailWidth : this.replayElement.videoWidth, null != videomailHeight ? videomailHeight : this.replayElement.videoHeight);
|
|
17749
17742
|
if (playerOnly) {
|
|
17750
|
-
if (hasMedia)
|
|
17751
|
-
} else
|
|
17752
|
-
if (playerOnly)
|
|
17743
|
+
if (hasMedia) html_showElement(this.replayElement);
|
|
17744
|
+
} else html_showElement(this.replayElement);
|
|
17745
|
+
if (playerOnly) html_showElement(this.replayElement.parentElement);
|
|
17753
17746
|
else this.visuals.show();
|
|
17754
17747
|
if (hasAudio) this.replayElement.setAttribute("volume", "1");
|
|
17755
17748
|
else if (!isAudioEnabled(this.options)) this.replayElement.setAttribute("muted", "true");
|
|
@@ -17786,8 +17779,12 @@ var __webpack_exports__ = {};
|
|
|
17786
17779
|
this.replayElement.addEventListener("touchstart", (e)=>{
|
|
17787
17780
|
var _this_replayElement;
|
|
17788
17781
|
e.preventDefault();
|
|
17789
|
-
if (null == (_this_replayElement = this.replayElement) ? void 0 : _this_replayElement.paused) this.replayElement.play().catch((
|
|
17790
|
-
throw
|
|
17782
|
+
if (null == (_this_replayElement = this.replayElement) ? void 0 : _this_replayElement.paused) this.replayElement.play().catch((exc)=>{
|
|
17783
|
+
throw error_createError({
|
|
17784
|
+
message: "Failed to play replay video while paused upon touchstart event.",
|
|
17785
|
+
exc,
|
|
17786
|
+
options: this.options
|
|
17787
|
+
});
|
|
17791
17788
|
});
|
|
17792
17789
|
else {
|
|
17793
17790
|
var _this_replayElement1;
|
|
@@ -17799,8 +17796,12 @@ var __webpack_exports__ = {};
|
|
|
17799
17796
|
this.replayElement.addEventListener("click", (e)=>{
|
|
17800
17797
|
var _this_replayElement;
|
|
17801
17798
|
e.preventDefault();
|
|
17802
|
-
if (null == (_this_replayElement = this.replayElement) ? void 0 : _this_replayElement.paused) this.replayElement.play().catch((
|
|
17803
|
-
throw
|
|
17799
|
+
if (null == (_this_replayElement = this.replayElement) ? void 0 : _this_replayElement.paused) this.replayElement.play().catch((exc)=>{
|
|
17800
|
+
throw error_createError({
|
|
17801
|
+
message: "Failed to play replay video while paused upon click event.",
|
|
17802
|
+
exc,
|
|
17803
|
+
options: this.options
|
|
17804
|
+
});
|
|
17804
17805
|
});
|
|
17805
17806
|
else {
|
|
17806
17807
|
var _this_replayElement1;
|
|
@@ -17901,15 +17902,15 @@ var __webpack_exports__ = {};
|
|
|
17901
17902
|
});
|
|
17902
17903
|
}
|
|
17903
17904
|
hide() {
|
|
17904
|
-
if (this.isStandalone())
|
|
17905
|
+
if (this.isStandalone()) this.visuals.hide();
|
|
17905
17906
|
else if (this.replayElement) {
|
|
17906
|
-
|
|
17907
|
-
|
|
17907
|
+
html_hideElement(this.replayElement);
|
|
17908
|
+
html_hideElement(this.replayElement.parentElement);
|
|
17908
17909
|
}
|
|
17909
17910
|
}
|
|
17910
17911
|
isShown() {
|
|
17911
17912
|
if (!this.replayElement) return false;
|
|
17912
|
-
return !
|
|
17913
|
+
return !isHidden(this.replayElement) && !this.visuals.isHidden();
|
|
17913
17914
|
}
|
|
17914
17915
|
getVisuals() {
|
|
17915
17916
|
return this.visuals;
|
|
@@ -18119,16 +18120,16 @@ var __webpack_exports__ = {};
|
|
|
18119
18120
|
}
|
|
18120
18121
|
hide() {
|
|
18121
18122
|
if (this.visualsElement) {
|
|
18122
|
-
|
|
18123
|
+
html_hideElement(this.visualsElement);
|
|
18123
18124
|
this.emit("HIDE");
|
|
18124
18125
|
}
|
|
18125
18126
|
}
|
|
18126
18127
|
isHidden() {
|
|
18127
18128
|
if (!this.built) return true;
|
|
18128
|
-
|
|
18129
|
+
return isHidden(this.visualsElement);
|
|
18129
18130
|
}
|
|
18130
18131
|
showVisuals() {
|
|
18131
|
-
|
|
18132
|
+
html_showElement(this.visualsElement);
|
|
18132
18133
|
}
|
|
18133
18134
|
show(params) {
|
|
18134
18135
|
if (!(null == params ? void 0 : params.playerOnly)) if (this.isReplayShown()) {
|
|
@@ -18363,7 +18364,7 @@ var __webpack_exports__ = {};
|
|
|
18363
18364
|
this.endWaiting();
|
|
18364
18365
|
}
|
|
18365
18366
|
hideMySelf() {
|
|
18366
|
-
|
|
18367
|
+
html_hideElement(this.containerElement);
|
|
18367
18368
|
}
|
|
18368
18369
|
async submitVideomail(formInputs, method) {
|
|
18369
18370
|
var _this_form;
|
|
@@ -18439,7 +18440,7 @@ var __webpack_exports__ = {};
|
|
|
18439
18440
|
message: "No container element exists.",
|
|
18440
18441
|
options: this.options
|
|
18441
18442
|
});
|
|
18442
|
-
|
|
18443
|
+
html_showElement(this.containerElement);
|
|
18443
18444
|
this.visuals.show(params);
|
|
18444
18445
|
if (!this.hasError) {
|
|
18445
18446
|
const paused = this.isPaused();
|