videomail-client 11.0.5 → 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 +85 -87
- package/dist/esm/index.js +60 -54
- package/dist/esm/util/html/isHidden.d.ts +2 -0
- package/dist/esm/wrappers/form.d.ts +1 -1
- package/dist/esm/wrappers/visuals.d.ts +1 -1
- package/dist/umd/index.js +85 -87
- package/package.json +2 -3
package/dist/cjs/index.cjs
CHANGED
|
@@ -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;
|
|
@@ -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", {});
|
|
@@ -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;
|
|
@@ -16792,7 +16790,7 @@ var __webpack_exports__ = {};
|
|
|
16792
16790
|
this.writeStream(audioBuffer);
|
|
16793
16791
|
}
|
|
16794
16792
|
show() {
|
|
16795
|
-
|
|
16793
|
+
html_showElement(this.recorderElement);
|
|
16796
16794
|
}
|
|
16797
16795
|
onUserMediaReady(params) {
|
|
16798
16796
|
try {
|
|
@@ -17179,7 +17177,7 @@ var __webpack_exports__ = {};
|
|
|
17179
17177
|
return this.visuals.isNotifying();
|
|
17180
17178
|
}
|
|
17181
17179
|
isHidden() {
|
|
17182
|
-
return !this.recorderElement ||
|
|
17180
|
+
return !this.recorderElement || isHidden(this.recorderElement);
|
|
17183
17181
|
}
|
|
17184
17182
|
writeCommand(command, args, cb) {
|
|
17185
17183
|
if (this.connected) {
|
|
@@ -17581,7 +17579,7 @@ var __webpack_exports__ = {};
|
|
|
17581
17579
|
}
|
|
17582
17580
|
hide() {
|
|
17583
17581
|
if (!this.isHidden()) {
|
|
17584
|
-
if (this.recorderElement)
|
|
17582
|
+
if (this.recorderElement) html_hideElement(this.recorderElement);
|
|
17585
17583
|
this.clearUserMediaTimeout();
|
|
17586
17584
|
this.clearRetryTimeout();
|
|
17587
17585
|
}
|
|
@@ -17742,9 +17740,9 @@ var __webpack_exports__ = {};
|
|
|
17742
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);
|
|
17743
17741
|
if (hasMedia) this.correctDimensions(true, null != videomailWidth ? videomailWidth : this.replayElement.videoWidth, null != videomailHeight ? videomailHeight : this.replayElement.videoHeight);
|
|
17744
17742
|
if (playerOnly) {
|
|
17745
|
-
if (hasMedia)
|
|
17746
|
-
} else
|
|
17747
|
-
if (playerOnly)
|
|
17743
|
+
if (hasMedia) html_showElement(this.replayElement);
|
|
17744
|
+
} else html_showElement(this.replayElement);
|
|
17745
|
+
if (playerOnly) html_showElement(this.replayElement.parentElement);
|
|
17748
17746
|
else this.visuals.show();
|
|
17749
17747
|
if (hasAudio) this.replayElement.setAttribute("volume", "1");
|
|
17750
17748
|
else if (!isAudioEnabled(this.options)) this.replayElement.setAttribute("muted", "true");
|
|
@@ -17904,15 +17902,15 @@ var __webpack_exports__ = {};
|
|
|
17904
17902
|
});
|
|
17905
17903
|
}
|
|
17906
17904
|
hide() {
|
|
17907
|
-
if (this.isStandalone())
|
|
17905
|
+
if (this.isStandalone()) this.visuals.hide();
|
|
17908
17906
|
else if (this.replayElement) {
|
|
17909
|
-
|
|
17910
|
-
|
|
17907
|
+
html_hideElement(this.replayElement);
|
|
17908
|
+
html_hideElement(this.replayElement.parentElement);
|
|
17911
17909
|
}
|
|
17912
17910
|
}
|
|
17913
17911
|
isShown() {
|
|
17914
17912
|
if (!this.replayElement) return false;
|
|
17915
|
-
return !
|
|
17913
|
+
return !isHidden(this.replayElement) && !this.visuals.isHidden();
|
|
17916
17914
|
}
|
|
17917
17915
|
getVisuals() {
|
|
17918
17916
|
return this.visuals;
|
|
@@ -18122,16 +18120,16 @@ var __webpack_exports__ = {};
|
|
|
18122
18120
|
}
|
|
18123
18121
|
hide() {
|
|
18124
18122
|
if (this.visualsElement) {
|
|
18125
|
-
|
|
18123
|
+
html_hideElement(this.visualsElement);
|
|
18126
18124
|
this.emit("HIDE");
|
|
18127
18125
|
}
|
|
18128
18126
|
}
|
|
18129
18127
|
isHidden() {
|
|
18130
18128
|
if (!this.built) return true;
|
|
18131
|
-
|
|
18129
|
+
return isHidden(this.visualsElement);
|
|
18132
18130
|
}
|
|
18133
18131
|
showVisuals() {
|
|
18134
|
-
|
|
18132
|
+
html_showElement(this.visualsElement);
|
|
18135
18133
|
}
|
|
18136
18134
|
show(params) {
|
|
18137
18135
|
if (!(null == params ? void 0 : params.playerOnly)) if (this.isReplayShown()) {
|
|
@@ -18366,7 +18364,7 @@ var __webpack_exports__ = {};
|
|
|
18366
18364
|
this.endWaiting();
|
|
18367
18365
|
}
|
|
18368
18366
|
hideMySelf() {
|
|
18369
|
-
|
|
18367
|
+
html_hideElement(this.containerElement);
|
|
18370
18368
|
}
|
|
18371
18369
|
async submitVideomail(formInputs, method) {
|
|
18372
18370
|
var _this_form;
|
|
@@ -18442,7 +18440,7 @@ var __webpack_exports__ = {};
|
|
|
18442
18440
|
message: "No container element exists.",
|
|
18443
18441
|
options: this.options
|
|
18444
18442
|
});
|
|
18445
|
-
|
|
18443
|
+
html_showElement(this.containerElement);
|
|
18446
18444
|
this.visuals.show(params);
|
|
18447
18445
|
if (!this.hasError) {
|
|
18448
18446
|
const paused = this.isPaused();
|