videomail-client 11.0.5 → 11.0.7
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 +142 -121
- 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 +142 -121
- package/package.json +11 -12
package/dist/umd/index.js
CHANGED
|
@@ -4993,13 +4993,6 @@
|
|
|
4993
4993
|
var bind = __webpack_require__("./node_modules/function-bind/index.js");
|
|
4994
4994
|
module1.exports = bind.call(call, $hasOwn);
|
|
4995
4995
|
},
|
|
4996
|
-
"./node_modules/hidden/index.js": function(module1) {
|
|
4997
|
-
module1.exports = shim;
|
|
4998
|
-
function shim(element, value) {
|
|
4999
|
-
if (void 0 === value) return 'none' === element.style.display;
|
|
5000
|
-
element.style.display = value ? 'none' : '';
|
|
5001
|
-
}
|
|
5002
|
-
},
|
|
5003
4996
|
"./node_modules/ieee754/index.js": function(__unused_webpack_module, exports1) {
|
|
5004
4997
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ exports1.read = function(buffer, offset, isLE, mLen, nBytes) {
|
|
5005
4998
|
var e, m;
|
|
@@ -10655,11 +10648,11 @@
|
|
|
10655
10648
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10656
10649
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10657
10650
|
var package_namespaceObject = {
|
|
10658
|
-
rE: "11.0.
|
|
10651
|
+
rE: "11.0.7"
|
|
10659
10652
|
};
|
|
10660
10653
|
var defined = __webpack_require__("./node_modules/defined/index.js");
|
|
10661
10654
|
var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
|
|
10662
|
-
var LIBVERSION = '2.0.
|
|
10655
|
+
var LIBVERSION = '2.0.5', UA_MAX_LENGTH = 500, USER_AGENT = 'user-agent', EMPTY = '', UNKNOWN = '?', FUNC_TYPE = 'function', UNDEF_TYPE = 'undefined', OBJ_TYPE = 'object', STR_TYPE = 'string', UA_BROWSER = 'browser', UA_CPU = 'cpu', UA_DEVICE = 'device', UA_ENGINE = 'engine', UA_OS = 'os', UA_RESULT = 'result', NAME = 'name', TYPE = 'type', VENDOR = 'vendor', VERSION = 'version', ARCHITECTURE = 'architecture', MAJOR = 'major', MODEL = 'model', CONSOLE = 'console', MOBILE = 'mobile', TABLET = 'tablet', SMARTTV = 'smarttv', WEARABLE = 'wearable', XR = 'xr', EMBEDDED = 'embedded', INAPP = 'inapp', BRANDS = 'brands', FORMFACTORS = 'formFactors', FULLVERLIST = 'fullVersionList', PLATFORM = 'platform', PLATFORMVER = 'platformVersion', BITNESS = 'bitness', CH_HEADER = 'sec-ch-ua', CH_HEADER_FULL_VER_LIST = CH_HEADER + '-full-version-list', CH_HEADER_ARCH = CH_HEADER + '-arch', CH_HEADER_BITNESS = CH_HEADER + '-' + BITNESS, CH_HEADER_FORM_FACTORS = CH_HEADER + '-form-factors', CH_HEADER_MOBILE = CH_HEADER + '-' + MOBILE, CH_HEADER_MODEL = CH_HEADER + '-' + MODEL, CH_HEADER_PLATFORM = CH_HEADER + '-' + PLATFORM, CH_HEADER_PLATFORM_VER = CH_HEADER_PLATFORM + '-version', CH_ALL_VALUES = [
|
|
10663
10656
|
BRANDS,
|
|
10664
10657
|
FULLVERLIST,
|
|
10665
10658
|
MOBILE,
|
|
@@ -10711,7 +10704,7 @@
|
|
|
10711
10704
|
}, majorize = function(version) {
|
|
10712
10705
|
return isString(version) ? strip(/[^\d\.]/g, version).split('.')[0] : void 0;
|
|
10713
10706
|
}, setProps = function(arr) {
|
|
10714
|
-
for(var i in arr){
|
|
10707
|
+
for(var i in arr)if (arr.hasOwnProperty(i)) {
|
|
10715
10708
|
var propName = arr[i];
|
|
10716
10709
|
if (typeof propName == OBJ_TYPE && 2 == propName.length) this[propName[0]] = propName[1];
|
|
10717
10710
|
else this[propName] = void 0;
|
|
@@ -11233,6 +11226,21 @@
|
|
|
11233
11226
|
INAPP
|
|
11234
11227
|
]
|
|
11235
11228
|
],
|
|
11229
|
+
[
|
|
11230
|
+
/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i
|
|
11231
|
+
],
|
|
11232
|
+
[
|
|
11233
|
+
[
|
|
11234
|
+
NAME,
|
|
11235
|
+
/(.+)/,
|
|
11236
|
+
'Zalo'
|
|
11237
|
+
],
|
|
11238
|
+
VERSION,
|
|
11239
|
+
[
|
|
11240
|
+
TYPE,
|
|
11241
|
+
INAPP
|
|
11242
|
+
]
|
|
11243
|
+
],
|
|
11236
11244
|
[
|
|
11237
11245
|
/(chromium)[\/ ]([-\w\.]+)/i
|
|
11238
11246
|
],
|
|
@@ -11455,32 +11463,34 @@
|
|
|
11455
11463
|
]
|
|
11456
11464
|
],
|
|
11457
11465
|
[
|
|
11458
|
-
/
|
|
11466
|
+
/ sun4\w[;\)]/i
|
|
11459
11467
|
],
|
|
11460
11468
|
[
|
|
11461
11469
|
[
|
|
11462
11470
|
ARCHITECTURE,
|
|
11463
|
-
|
|
11464
|
-
EMPTY,
|
|
11465
|
-
lowerize
|
|
11471
|
+
'sparc'
|
|
11466
11472
|
]
|
|
11467
11473
|
],
|
|
11468
11474
|
[
|
|
11469
|
-
|
|
11475
|
+
/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,
|
|
11476
|
+
/((ppc|powerpc)(64)?)( mac|;|\))/i,
|
|
11477
|
+
/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i
|
|
11470
11478
|
],
|
|
11471
11479
|
[
|
|
11472
11480
|
[
|
|
11473
11481
|
ARCHITECTURE,
|
|
11474
|
-
|
|
11482
|
+
/ower/,
|
|
11483
|
+
EMPTY,
|
|
11484
|
+
lowerize
|
|
11475
11485
|
]
|
|
11476
11486
|
],
|
|
11477
11487
|
[
|
|
11478
|
-
|
|
11488
|
+
/winnt.+\[axp/i
|
|
11479
11489
|
],
|
|
11480
11490
|
[
|
|
11481
11491
|
[
|
|
11482
11492
|
ARCHITECTURE,
|
|
11483
|
-
|
|
11493
|
+
'alpha'
|
|
11484
11494
|
]
|
|
11485
11495
|
]
|
|
11486
11496
|
],
|
|
@@ -12284,7 +12294,8 @@
|
|
|
12284
12294
|
/; (blu|hmd|imo|infinix|lava|oneplus|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,
|
|
12285
12295
|
/(hp) ([\w ]+\w)/i,
|
|
12286
12296
|
/(microsoft); (lumia[\w ]+)/i,
|
|
12287
|
-
/(oppo) ?([\w ]+) bui/i
|
|
12297
|
+
/(oppo) ?([\w ]+) bui/i,
|
|
12298
|
+
/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i
|
|
12288
12299
|
],
|
|
12289
12300
|
[
|
|
12290
12301
|
VENDOR,
|
|
@@ -12407,6 +12418,7 @@
|
|
|
12407
12418
|
]
|
|
12408
12419
|
],
|
|
12409
12420
|
[
|
|
12421
|
+
/(philips)[\w ]+tv/i,
|
|
12410
12422
|
/smart-tv.+(samsung)/i
|
|
12411
12423
|
],
|
|
12412
12424
|
[
|
|
@@ -12661,25 +12673,6 @@
|
|
|
12661
12673
|
SMARTTV
|
|
12662
12674
|
]
|
|
12663
12675
|
],
|
|
12664
|
-
[
|
|
12665
|
-
/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i
|
|
12666
|
-
],
|
|
12667
|
-
[
|
|
12668
|
-
MODEL,
|
|
12669
|
-
[
|
|
12670
|
-
TYPE,
|
|
12671
|
-
SMARTTV
|
|
12672
|
-
]
|
|
12673
|
-
],
|
|
12674
|
-
[
|
|
12675
|
-
/\b(android tv|smart[- ]?tv|opera tv|tv; rv:|large screen[\w ]+safari)\b/i
|
|
12676
|
-
],
|
|
12677
|
-
[
|
|
12678
|
-
[
|
|
12679
|
-
TYPE,
|
|
12680
|
-
SMARTTV
|
|
12681
|
-
]
|
|
12682
|
-
],
|
|
12683
12676
|
[
|
|
12684
12677
|
/(playstation \w+)/i
|
|
12685
12678
|
],
|
|
@@ -12874,7 +12867,7 @@
|
|
|
12874
12867
|
]
|
|
12875
12868
|
],
|
|
12876
12869
|
[
|
|
12877
|
-
/(pico) (
|
|
12870
|
+
/(pico) ([\w ]+) os\d/i
|
|
12878
12871
|
],
|
|
12879
12872
|
[
|
|
12880
12873
|
VENDOR,
|
|
@@ -12954,6 +12947,25 @@
|
|
|
12954
12947
|
EMBEDDED
|
|
12955
12948
|
]
|
|
12956
12949
|
],
|
|
12950
|
+
[
|
|
12951
|
+
/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i
|
|
12952
|
+
],
|
|
12953
|
+
[
|
|
12954
|
+
MODEL,
|
|
12955
|
+
[
|
|
12956
|
+
TYPE,
|
|
12957
|
+
SMARTTV
|
|
12958
|
+
]
|
|
12959
|
+
],
|
|
12960
|
+
[
|
|
12961
|
+
/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i
|
|
12962
|
+
],
|
|
12963
|
+
[
|
|
12964
|
+
[
|
|
12965
|
+
TYPE,
|
|
12966
|
+
SMARTTV
|
|
12967
|
+
]
|
|
12968
|
+
],
|
|
12957
12969
|
[
|
|
12958
12970
|
/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i
|
|
12959
12971
|
],
|
|
@@ -13592,7 +13604,7 @@
|
|
|
13592
13604
|
case UA_BROWSER:
|
|
13593
13605
|
case UA_ENGINE:
|
|
13594
13606
|
var brands = uaCH[FULLVERLIST] || uaCH[BRANDS], prevName;
|
|
13595
|
-
if (brands) for(var i
|
|
13607
|
+
if (brands) for(var i = 0; i < brands.length; i++){
|
|
13596
13608
|
var brandName = brands[i].brand || brands[i], brandVersion = brands[i].version;
|
|
13597
13609
|
if (this.itemType == UA_BROWSER && !/not.a.brand/i.test(brandName) && (!prevName || /Chrom/.test(prevName) && brandName != CHROMIUM || prevName == EDGE && /WebView2/.test(brandName))) {
|
|
13598
13610
|
brandName = strMapper(brandName, browserHintsMap);
|
|
@@ -13686,12 +13698,16 @@
|
|
|
13686
13698
|
headers = extensions;
|
|
13687
13699
|
extensions = void 0;
|
|
13688
13700
|
}
|
|
13689
|
-
if (headers
|
|
13701
|
+
if (headers) if (typeof headers.append === FUNC_TYPE) {
|
|
13690
13702
|
var kv = {};
|
|
13691
13703
|
headers.forEach(function(v, k) {
|
|
13692
|
-
kv[k] = v;
|
|
13704
|
+
kv[String(k).toLowerCase()] = v;
|
|
13693
13705
|
});
|
|
13694
13706
|
headers = kv;
|
|
13707
|
+
} else {
|
|
13708
|
+
var normalized = {};
|
|
13709
|
+
for(var header in headers)if (headers.hasOwnProperty(header)) normalized[String(header).toLowerCase()] = headers[header];
|
|
13710
|
+
headers = normalized;
|
|
13695
13711
|
}
|
|
13696
13712
|
if (!(this instanceof UAParser)) return new UAParser(ua, extensions, headers).getResult();
|
|
13697
13713
|
var userAgent = typeof ua === STR_TYPE ? ua : headers && headers[USER_AGENT] ? headers[USER_AGENT] : NAVIGATOR && NAVIGATOR.userAgent ? NAVIGATOR.userAgent : EMPTY, httpUACH = new UACHData(headers, true), regexMap = extensions ? extend(defaultRegexes, extensions) : defaultRegexes, createItemFunc = function(itemType) {
|
|
@@ -14201,8 +14217,6 @@
|
|
|
14201
14217
|
return value;
|
|
14202
14218
|
}
|
|
14203
14219
|
getFormData.getFieldData = getFieldData;
|
|
14204
|
-
var node_modules_hidden = __webpack_require__("./node_modules/hidden/index.js");
|
|
14205
|
-
var hidden_default = /*#__PURE__*/ __webpack_require__.n(node_modules_hidden);
|
|
14206
14220
|
let createNanoEvents = ()=>({
|
|
14207
14221
|
emit (event, ...args) {
|
|
14208
14222
|
for(let callbacks = this.events[event] || [], i = 0, length = callbacks.length; i < length; i++)callbacks[i](...args);
|
|
@@ -14261,10 +14275,20 @@
|
|
|
14261
14275
|
}
|
|
14262
14276
|
}
|
|
14263
14277
|
const util_Despot = Despot;
|
|
14278
|
+
function hideElement(element) {
|
|
14279
|
+
if (!element) return;
|
|
14280
|
+
element.style.setProperty("display", "none", "important");
|
|
14281
|
+
}
|
|
14282
|
+
const html_hideElement = hideElement;
|
|
14264
14283
|
function isNotButton(element) {
|
|
14265
14284
|
return "BUTTON" !== element.tagName && "submit" !== element.getAttribute("type");
|
|
14266
14285
|
}
|
|
14267
14286
|
const html_isNotButton = isNotButton;
|
|
14287
|
+
function showElement(element) {
|
|
14288
|
+
if (!element) return;
|
|
14289
|
+
element.style.removeProperty("display");
|
|
14290
|
+
}
|
|
14291
|
+
const html_showElement = showElement;
|
|
14268
14292
|
const REGEX = /[ ,]+/u;
|
|
14269
14293
|
function trimEmail(email) {
|
|
14270
14294
|
return email.replace(REGEX, "");
|
|
@@ -14367,8 +14391,8 @@
|
|
|
14367
14391
|
else formControl.removeAttribute("disabled");
|
|
14368
14392
|
}
|
|
14369
14393
|
hideAll() {
|
|
14370
|
-
for (const formElement of this.formElement.elements)
|
|
14371
|
-
if (!this.formElement.classList.contains(this.options.selectors.containerClass))
|
|
14394
|
+
for (const formElement of this.formElement.elements)html_hideElement(formElement);
|
|
14395
|
+
if (!this.formElement.classList.contains(this.options.selectors.containerClass)) html_hideElement(this.formElement);
|
|
14372
14396
|
}
|
|
14373
14397
|
isRegisteredFormField(formElement) {
|
|
14374
14398
|
const formElementName = formElement.getAttribute("name");
|
|
@@ -14452,7 +14476,7 @@
|
|
|
14452
14476
|
}
|
|
14453
14477
|
hideSubmitButton() {
|
|
14454
14478
|
const submitButton = this.findSubmitButton();
|
|
14455
|
-
|
|
14479
|
+
html_hideElement(submitButton);
|
|
14456
14480
|
}
|
|
14457
14481
|
unload() {
|
|
14458
14482
|
this.options.logger.debug("Form: unload()");
|
|
@@ -14511,10 +14535,10 @@
|
|
|
14511
14535
|
return this.formElement.querySelector("[type='submit']");
|
|
14512
14536
|
}
|
|
14513
14537
|
hide() {
|
|
14514
|
-
|
|
14538
|
+
html_hideElement(this.formElement);
|
|
14515
14539
|
}
|
|
14516
14540
|
show() {
|
|
14517
|
-
|
|
14541
|
+
html_showElement(this.formElement);
|
|
14518
14542
|
}
|
|
14519
14543
|
}
|
|
14520
14544
|
const wrappers_form = Form;
|
|
@@ -14926,15 +14950,10 @@
|
|
|
14926
14950
|
else element.classList.add("disabled");
|
|
14927
14951
|
}
|
|
14928
14952
|
const html_disableElement = disableElement;
|
|
14929
|
-
function hideElement_hideElement(element) {
|
|
14930
|
-
if (!element) return;
|
|
14931
|
-
hidden_default()(element, true);
|
|
14932
|
-
}
|
|
14933
|
-
const hideElement = hideElement_hideElement;
|
|
14934
14953
|
function adjustButton(buttonElement, show, type, disabled) {
|
|
14935
14954
|
if (disabled) html_disableElement(buttonElement);
|
|
14936
14955
|
if (type) buttonElement.type = type;
|
|
14937
|
-
if (!show)
|
|
14956
|
+
if (!show) html_hideElement(buttonElement);
|
|
14938
14957
|
return buttonElement;
|
|
14939
14958
|
}
|
|
14940
14959
|
const html_adjustButton = adjustButton;
|
|
@@ -14946,14 +14965,10 @@
|
|
|
14946
14965
|
const html_enableElement = enableElement;
|
|
14947
14966
|
function isShown(element) {
|
|
14948
14967
|
if (!element) return false;
|
|
14949
|
-
|
|
14968
|
+
const display = element.style.getPropertyValue("display");
|
|
14969
|
+
return !display.includes("none");
|
|
14950
14970
|
}
|
|
14951
14971
|
const html_isShown = isShown;
|
|
14952
|
-
function showElement(element) {
|
|
14953
|
-
if (!element) return;
|
|
14954
|
-
hidden_default()(element, false);
|
|
14955
|
-
}
|
|
14956
|
-
const html_showElement = showElement;
|
|
14957
14972
|
class Buttons extends util_Despot {
|
|
14958
14973
|
container;
|
|
14959
14974
|
buttonsElement;
|
|
@@ -15066,12 +15081,12 @@
|
|
|
15066
15081
|
}
|
|
15067
15082
|
if (!params?.paused) {
|
|
15068
15083
|
html_disableElement(this.previewButton);
|
|
15069
|
-
|
|
15084
|
+
html_hideElement(this.previewButton);
|
|
15070
15085
|
}
|
|
15071
15086
|
if (!this.options.enableAutoValidation) html_enableElement(this.submitButton);
|
|
15072
15087
|
}
|
|
15073
15088
|
onGoingBack() {
|
|
15074
|
-
|
|
15089
|
+
html_hideElement(this.recordAgainButton);
|
|
15075
15090
|
html_showElement(this.recordButton);
|
|
15076
15091
|
html_showElement(this.submitButton);
|
|
15077
15092
|
}
|
|
@@ -15096,8 +15111,8 @@
|
|
|
15096
15111
|
this.reset();
|
|
15097
15112
|
}
|
|
15098
15113
|
onPreview() {
|
|
15099
|
-
|
|
15100
|
-
|
|
15114
|
+
html_hideElement(this.recordButton);
|
|
15115
|
+
html_hideElement(this.previewButton);
|
|
15101
15116
|
html_disableElement(this.audioOnRadioPair);
|
|
15102
15117
|
html_disableElement(this.audioOffRadioPair);
|
|
15103
15118
|
html_showElement(this.recordAgainButton);
|
|
@@ -15109,17 +15124,17 @@
|
|
|
15109
15124
|
}
|
|
15110
15125
|
adjustButtonsForPause() {
|
|
15111
15126
|
if (!this.isCountingDown()) {
|
|
15112
|
-
if (this.pauseButton)
|
|
15127
|
+
if (this.pauseButton) html_hideElement(this.pauseButton);
|
|
15113
15128
|
html_showElement(this.resumeButton);
|
|
15114
15129
|
html_enableElement(this.resumeButton);
|
|
15115
|
-
|
|
15130
|
+
html_hideElement(this.recordButton);
|
|
15116
15131
|
html_showElement(this.previewButton);
|
|
15117
15132
|
html_enableElement(this.previewButton);
|
|
15118
15133
|
}
|
|
15119
15134
|
}
|
|
15120
15135
|
onFirstFrameSent() {
|
|
15121
|
-
|
|
15122
|
-
|
|
15136
|
+
html_hideElement(this.recordButton);
|
|
15137
|
+
html_hideElement(this.recordAgainButton);
|
|
15123
15138
|
if (this.pauseButton) {
|
|
15124
15139
|
html_showElement(this.pauseButton);
|
|
15125
15140
|
html_enableElement(this.pauseButton);
|
|
@@ -15137,8 +15152,8 @@
|
|
|
15137
15152
|
}
|
|
15138
15153
|
}
|
|
15139
15154
|
onResuming() {
|
|
15140
|
-
|
|
15141
|
-
|
|
15155
|
+
html_hideElement(this.resumeButton);
|
|
15156
|
+
html_hideElement(this.recordButton);
|
|
15142
15157
|
if (this.pauseButton) {
|
|
15143
15158
|
html_enableElement(this.pauseButton);
|
|
15144
15159
|
html_showElement(this.pauseButton);
|
|
@@ -15147,8 +15162,8 @@
|
|
|
15147
15162
|
onStopping() {
|
|
15148
15163
|
html_disableElement(this.previewButton);
|
|
15149
15164
|
html_disableElement(this.recordButton);
|
|
15150
|
-
|
|
15151
|
-
|
|
15165
|
+
html_hideElement(this.pauseButton);
|
|
15166
|
+
html_hideElement(this.resumeButton);
|
|
15152
15167
|
}
|
|
15153
15168
|
onCountdown() {
|
|
15154
15169
|
html_disableElement(this.recordButton);
|
|
@@ -15173,12 +15188,12 @@
|
|
|
15173
15188
|
if (this.options.enableAutoValidation) html_enableElement(this.submitButton);
|
|
15174
15189
|
}
|
|
15175
15190
|
onHidden() {
|
|
15176
|
-
|
|
15177
|
-
|
|
15178
|
-
|
|
15179
|
-
|
|
15180
|
-
|
|
15181
|
-
|
|
15191
|
+
html_hideElement(this.recordButton);
|
|
15192
|
+
html_hideElement(this.previewButton);
|
|
15193
|
+
html_hideElement(this.recordAgainButton);
|
|
15194
|
+
html_hideElement(this.resumeButton);
|
|
15195
|
+
html_hideElement(this.audioOnRadioPair);
|
|
15196
|
+
html_hideElement(this.audioOffRadioPair);
|
|
15182
15197
|
}
|
|
15183
15198
|
onEnablingAudio() {
|
|
15184
15199
|
this.options.logger.debug("Buttons: onEnablingAudio()");
|
|
@@ -15316,7 +15331,7 @@
|
|
|
15316
15331
|
this.buttonsElement.classList.add(this.options.selectors.buttonsClass);
|
|
15317
15332
|
this.container.appendChild(this.buttonsElement);
|
|
15318
15333
|
}
|
|
15319
|
-
|
|
15334
|
+
html_hideElement(this.buttonsElement);
|
|
15320
15335
|
this.buildButtons();
|
|
15321
15336
|
if (!this.built) this.initEvents();
|
|
15322
15337
|
this.built = true;
|
|
@@ -15331,16 +15346,16 @@
|
|
|
15331
15346
|
}
|
|
15332
15347
|
}
|
|
15333
15348
|
hide(deep = false) {
|
|
15334
|
-
|
|
15349
|
+
html_hideElement(this.buttonsElement);
|
|
15335
15350
|
if (deep) {
|
|
15336
|
-
|
|
15337
|
-
|
|
15338
|
-
|
|
15339
|
-
|
|
15340
|
-
|
|
15341
|
-
|
|
15342
|
-
|
|
15343
|
-
|
|
15351
|
+
html_hideElement(this.recordButton);
|
|
15352
|
+
html_hideElement(this.pauseButton);
|
|
15353
|
+
html_hideElement(this.resumeButton);
|
|
15354
|
+
html_hideElement(this.previewButton);
|
|
15355
|
+
html_hideElement(this.recordAgainButton);
|
|
15356
|
+
html_hideElement(this.submitButton);
|
|
15357
|
+
html_hideElement(this.audioOnRadioPair);
|
|
15358
|
+
html_hideElement(this.audioOffRadioPair);
|
|
15344
15359
|
}
|
|
15345
15360
|
}
|
|
15346
15361
|
show() {
|
|
@@ -15351,6 +15366,12 @@
|
|
|
15351
15366
|
}
|
|
15352
15367
|
}
|
|
15353
15368
|
const buttons = Buttons;
|
|
15369
|
+
function isHidden_isHidden(element) {
|
|
15370
|
+
if (!element) return true;
|
|
15371
|
+
const display = element.style.getPropertyValue("display");
|
|
15372
|
+
return display.includes("none");
|
|
15373
|
+
}
|
|
15374
|
+
const isHidden = isHidden_isHidden;
|
|
15354
15375
|
class Countdown {
|
|
15355
15376
|
visuals;
|
|
15356
15377
|
options;
|
|
@@ -15404,7 +15425,7 @@
|
|
|
15404
15425
|
}
|
|
15405
15426
|
}
|
|
15406
15427
|
show() {
|
|
15407
|
-
|
|
15428
|
+
html_showElement(this.countdownElement);
|
|
15408
15429
|
}
|
|
15409
15430
|
isCountingDown() {
|
|
15410
15431
|
return Boolean(this.intervalId);
|
|
@@ -15415,7 +15436,7 @@
|
|
|
15415
15436
|
this.intervalId = void 0;
|
|
15416
15437
|
}
|
|
15417
15438
|
hide() {
|
|
15418
|
-
|
|
15439
|
+
html_hideElement(this.countdownElement);
|
|
15419
15440
|
this.unload();
|
|
15420
15441
|
}
|
|
15421
15442
|
}
|
|
@@ -15455,10 +15476,10 @@
|
|
|
15455
15476
|
this.initEvents();
|
|
15456
15477
|
}
|
|
15457
15478
|
hide() {
|
|
15458
|
-
|
|
15479
|
+
html_hideElement(this.facingModeElement);
|
|
15459
15480
|
}
|
|
15460
15481
|
show() {
|
|
15461
|
-
|
|
15482
|
+
html_showElement(this.facingModeElement);
|
|
15462
15483
|
}
|
|
15463
15484
|
}
|
|
15464
15485
|
const facingMode = FacingMode;
|
|
@@ -15503,10 +15524,10 @@
|
|
|
15503
15524
|
}
|
|
15504
15525
|
}
|
|
15505
15526
|
hide() {
|
|
15506
|
-
|
|
15527
|
+
html_hideElement(this.pausedBlockElement);
|
|
15507
15528
|
}
|
|
15508
15529
|
show() {
|
|
15509
|
-
|
|
15530
|
+
html_showElement(this.pausedBlockElement);
|
|
15510
15531
|
}
|
|
15511
15532
|
}
|
|
15512
15533
|
const pausedNote = PausedNote;
|
|
@@ -15538,10 +15559,10 @@
|
|
|
15538
15559
|
this.recordNoteElement?.classList.add("nigh");
|
|
15539
15560
|
}
|
|
15540
15561
|
hide() {
|
|
15541
|
-
|
|
15562
|
+
html_hideElement(this.recordNoteElement);
|
|
15542
15563
|
}
|
|
15543
15564
|
show() {
|
|
15544
|
-
|
|
15565
|
+
html_showElement(this.recordNoteElement);
|
|
15545
15566
|
}
|
|
15546
15567
|
}
|
|
15547
15568
|
const recorder_recordNote = RecordNote;
|
|
@@ -15615,12 +15636,12 @@
|
|
|
15615
15636
|
if (this.recordTimerElement) this.recordTimerElement.innerHTML = `${mins}:${util_pad(secs)}`;
|
|
15616
15637
|
}
|
|
15617
15638
|
hide() {
|
|
15618
|
-
|
|
15639
|
+
html_hideElement(this.recordTimerElement);
|
|
15619
15640
|
}
|
|
15620
15641
|
show() {
|
|
15621
15642
|
this.recordTimerElement?.classList.remove("near");
|
|
15622
15643
|
this.recordTimerElement?.classList.remove("nigh");
|
|
15623
|
-
|
|
15644
|
+
html_showElement(this.recordTimerElement);
|
|
15624
15645
|
}
|
|
15625
15646
|
getSecondsRecorded() {
|
|
15626
15647
|
if (void 0 === this.countdown) return this.getSecondsRecorded();
|
|
@@ -15860,7 +15881,7 @@
|
|
|
15860
15881
|
}
|
|
15861
15882
|
}
|
|
15862
15883
|
show() {
|
|
15863
|
-
|
|
15884
|
+
html_showElement(this.notifyElement);
|
|
15864
15885
|
}
|
|
15865
15886
|
runEntertainment() {
|
|
15866
15887
|
if (this.options.notifier.entertain) {
|
|
@@ -15908,7 +15929,7 @@
|
|
|
15908
15929
|
this.messageElement.innerHTML = (problem ? "☹ " : "") + message;
|
|
15909
15930
|
} else this.options.logger.warn("There is no message element for displaying a message");
|
|
15910
15931
|
else this.options.logger.warn("Not going to update notifierMessage element because message is empty");
|
|
15911
|
-
|
|
15932
|
+
html_showElement(this.messageElement);
|
|
15912
15933
|
}
|
|
15913
15934
|
setExplanation(explanation) {
|
|
15914
15935
|
this.options.logger.debug(`Notifier: setExplanation(${explanation})`);
|
|
@@ -15919,7 +15940,7 @@
|
|
|
15919
15940
|
else this.options.logger.warn(`Unable to show explanation because notifyElement is empty: ${explanation}`);
|
|
15920
15941
|
}
|
|
15921
15942
|
this.explanationElement.innerHTML = explanation;
|
|
15922
|
-
|
|
15943
|
+
html_showElement(this.explanationElement);
|
|
15923
15944
|
}
|
|
15924
15945
|
build() {
|
|
15925
15946
|
this.options.logger.debug("Notifier: build()");
|
|
@@ -15934,15 +15955,15 @@
|
|
|
15934
15955
|
this.built = true;
|
|
15935
15956
|
}
|
|
15936
15957
|
hideMessage() {
|
|
15937
|
-
|
|
15958
|
+
html_hideElement(this.getMessageElement());
|
|
15938
15959
|
}
|
|
15939
15960
|
hideExplanation() {
|
|
15940
|
-
|
|
15961
|
+
html_hideElement(this.explanationElement);
|
|
15941
15962
|
}
|
|
15942
15963
|
hide() {
|
|
15943
15964
|
this.cancelEntertainment();
|
|
15944
15965
|
if (this.notifyElement) {
|
|
15945
|
-
|
|
15966
|
+
html_hideElement(this.notifyElement);
|
|
15946
15967
|
this.notifyElement.classList.remove("blocking");
|
|
15947
15968
|
}
|
|
15948
15969
|
this.hideMessage();
|
|
@@ -15950,7 +15971,7 @@
|
|
|
15950
15971
|
}
|
|
15951
15972
|
isVisible() {
|
|
15952
15973
|
if (!this.built) return false;
|
|
15953
|
-
return this.notifyElement && !
|
|
15974
|
+
return this.notifyElement && !isHidden(this.notifyElement);
|
|
15954
15975
|
}
|
|
15955
15976
|
isBuilt() {
|
|
15956
15977
|
return this.built;
|
|
@@ -16625,7 +16646,7 @@
|
|
|
16625
16646
|
this.writeStream(audioBuffer);
|
|
16626
16647
|
}
|
|
16627
16648
|
show() {
|
|
16628
|
-
|
|
16649
|
+
html_showElement(this.recorderElement);
|
|
16629
16650
|
}
|
|
16630
16651
|
onUserMediaReady(params) {
|
|
16631
16652
|
try {
|
|
@@ -17009,7 +17030,7 @@
|
|
|
17009
17030
|
return this.visuals.isNotifying();
|
|
17010
17031
|
}
|
|
17011
17032
|
isHidden() {
|
|
17012
|
-
return !this.recorderElement ||
|
|
17033
|
+
return !this.recorderElement || isHidden(this.recorderElement);
|
|
17013
17034
|
}
|
|
17014
17035
|
writeCommand(command, args, cb) {
|
|
17015
17036
|
if (this.connected) {
|
|
@@ -17399,7 +17420,7 @@
|
|
|
17399
17420
|
}
|
|
17400
17421
|
hide() {
|
|
17401
17422
|
if (!this.isHidden()) {
|
|
17402
|
-
if (this.recorderElement)
|
|
17423
|
+
if (this.recorderElement) html_hideElement(this.recorderElement);
|
|
17403
17424
|
this.clearUserMediaTimeout();
|
|
17404
17425
|
this.clearRetryTimeout();
|
|
17405
17426
|
}
|
|
@@ -17543,9 +17564,9 @@
|
|
|
17543
17564
|
const hasMedia = Boolean(this.videomail?.webm) || Boolean(this.videomail?.mp4) || Boolean(this.videomail?.poster);
|
|
17544
17565
|
if (hasMedia) this.correctDimensions(true, videomailWidth ?? this.replayElement.videoWidth, videomailHeight ?? this.replayElement.videoHeight);
|
|
17545
17566
|
if (playerOnly) {
|
|
17546
|
-
if (hasMedia)
|
|
17547
|
-
} else
|
|
17548
|
-
if (playerOnly)
|
|
17567
|
+
if (hasMedia) html_showElement(this.replayElement);
|
|
17568
|
+
} else html_showElement(this.replayElement);
|
|
17569
|
+
if (playerOnly) html_showElement(this.replayElement.parentElement);
|
|
17549
17570
|
else this.visuals.show();
|
|
17550
17571
|
if (hasAudio) this.replayElement.setAttribute("volume", "1");
|
|
17551
17572
|
else if (!isAudioEnabled(this.options)) this.replayElement.setAttribute("muted", "true");
|
|
@@ -17692,15 +17713,15 @@
|
|
|
17692
17713
|
});
|
|
17693
17714
|
}
|
|
17694
17715
|
hide() {
|
|
17695
|
-
if (this.isStandalone())
|
|
17716
|
+
if (this.isStandalone()) this.visuals.hide();
|
|
17696
17717
|
else if (this.replayElement) {
|
|
17697
|
-
|
|
17698
|
-
|
|
17718
|
+
html_hideElement(this.replayElement);
|
|
17719
|
+
html_hideElement(this.replayElement.parentElement);
|
|
17699
17720
|
}
|
|
17700
17721
|
}
|
|
17701
17722
|
isShown() {
|
|
17702
17723
|
if (!this.replayElement) return false;
|
|
17703
|
-
return !
|
|
17724
|
+
return !isHidden(this.replayElement) && !this.visuals.isHidden();
|
|
17704
17725
|
}
|
|
17705
17726
|
getVisuals() {
|
|
17706
17727
|
return this.visuals;
|
|
@@ -17903,16 +17924,16 @@
|
|
|
17903
17924
|
}
|
|
17904
17925
|
hide() {
|
|
17905
17926
|
if (this.visualsElement) {
|
|
17906
|
-
|
|
17927
|
+
html_hideElement(this.visualsElement);
|
|
17907
17928
|
this.emit("HIDE");
|
|
17908
17929
|
}
|
|
17909
17930
|
}
|
|
17910
17931
|
isHidden() {
|
|
17911
17932
|
if (!this.built) return true;
|
|
17912
|
-
|
|
17933
|
+
return isHidden(this.visualsElement);
|
|
17913
17934
|
}
|
|
17914
17935
|
showVisuals() {
|
|
17915
|
-
|
|
17936
|
+
html_showElement(this.visualsElement);
|
|
17916
17937
|
}
|
|
17917
17938
|
show(params) {
|
|
17918
17939
|
if (!params?.playerOnly) if (this.isReplayShown()) {
|
|
@@ -18140,7 +18161,7 @@
|
|
|
18140
18161
|
this.endWaiting();
|
|
18141
18162
|
}
|
|
18142
18163
|
hideMySelf() {
|
|
18143
|
-
|
|
18164
|
+
html_hideElement(this.containerElement);
|
|
18144
18165
|
}
|
|
18145
18166
|
async submitVideomail(formInputs, method) {
|
|
18146
18167
|
const videomailFormData = this.form?.transformFormData(formInputs);
|
|
@@ -18213,7 +18234,7 @@
|
|
|
18213
18234
|
message: "No container element exists.",
|
|
18214
18235
|
options: this.options
|
|
18215
18236
|
});
|
|
18216
|
-
|
|
18237
|
+
html_showElement(this.containerElement);
|
|
18217
18238
|
this.visuals.show(params);
|
|
18218
18239
|
if (!this.hasError) {
|
|
18219
18240
|
const paused = this.isPaused();
|