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/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,11 +10642,11 @@ 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.7"
|
|
10653
10646
|
};
|
|
10654
10647
|
var defined = __webpack_require__("./node_modules/defined/index.js");
|
|
10655
10648
|
var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
|
|
10656
|
-
var LIBVERSION = '2.0.
|
|
10649
|
+
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 = [
|
|
10657
10650
|
BRANDS,
|
|
10658
10651
|
FULLVERLIST,
|
|
10659
10652
|
MOBILE,
|
|
@@ -10705,7 +10698,7 @@ var __webpack_exports__ = {};
|
|
|
10705
10698
|
}, majorize = function(version) {
|
|
10706
10699
|
return isString(version) ? strip(/[^\d\.]/g, version).split('.')[0] : void 0;
|
|
10707
10700
|
}, setProps = function(arr) {
|
|
10708
|
-
for(var i in arr){
|
|
10701
|
+
for(var i in arr)if (arr.hasOwnProperty(i)) {
|
|
10709
10702
|
var propName = arr[i];
|
|
10710
10703
|
if (typeof propName == OBJ_TYPE && 2 == propName.length) this[propName[0]] = propName[1];
|
|
10711
10704
|
else this[propName] = void 0;
|
|
@@ -11227,6 +11220,21 @@ var __webpack_exports__ = {};
|
|
|
11227
11220
|
INAPP
|
|
11228
11221
|
]
|
|
11229
11222
|
],
|
|
11223
|
+
[
|
|
11224
|
+
/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i
|
|
11225
|
+
],
|
|
11226
|
+
[
|
|
11227
|
+
[
|
|
11228
|
+
NAME,
|
|
11229
|
+
/(.+)/,
|
|
11230
|
+
'Zalo'
|
|
11231
|
+
],
|
|
11232
|
+
VERSION,
|
|
11233
|
+
[
|
|
11234
|
+
TYPE,
|
|
11235
|
+
INAPP
|
|
11236
|
+
]
|
|
11237
|
+
],
|
|
11230
11238
|
[
|
|
11231
11239
|
/(chromium)[\/ ]([-\w\.]+)/i
|
|
11232
11240
|
],
|
|
@@ -11449,32 +11457,34 @@ var __webpack_exports__ = {};
|
|
|
11449
11457
|
]
|
|
11450
11458
|
],
|
|
11451
11459
|
[
|
|
11452
|
-
/
|
|
11460
|
+
/ sun4\w[;\)]/i
|
|
11453
11461
|
],
|
|
11454
11462
|
[
|
|
11455
11463
|
[
|
|
11456
11464
|
ARCHITECTURE,
|
|
11457
|
-
|
|
11458
|
-
EMPTY,
|
|
11459
|
-
lowerize
|
|
11465
|
+
'sparc'
|
|
11460
11466
|
]
|
|
11461
11467
|
],
|
|
11462
11468
|
[
|
|
11463
|
-
|
|
11469
|
+
/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,
|
|
11470
|
+
/((ppc|powerpc)(64)?)( mac|;|\))/i,
|
|
11471
|
+
/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i
|
|
11464
11472
|
],
|
|
11465
11473
|
[
|
|
11466
11474
|
[
|
|
11467
11475
|
ARCHITECTURE,
|
|
11468
|
-
|
|
11476
|
+
/ower/,
|
|
11477
|
+
EMPTY,
|
|
11478
|
+
lowerize
|
|
11469
11479
|
]
|
|
11470
11480
|
],
|
|
11471
11481
|
[
|
|
11472
|
-
|
|
11482
|
+
/winnt.+\[axp/i
|
|
11473
11483
|
],
|
|
11474
11484
|
[
|
|
11475
11485
|
[
|
|
11476
11486
|
ARCHITECTURE,
|
|
11477
|
-
|
|
11487
|
+
'alpha'
|
|
11478
11488
|
]
|
|
11479
11489
|
]
|
|
11480
11490
|
],
|
|
@@ -12278,7 +12288,8 @@ var __webpack_exports__ = {};
|
|
|
12278
12288
|
/; (blu|hmd|imo|infinix|lava|oneplus|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,
|
|
12279
12289
|
/(hp) ([\w ]+\w)/i,
|
|
12280
12290
|
/(microsoft); (lumia[\w ]+)/i,
|
|
12281
|
-
/(oppo) ?([\w ]+) bui/i
|
|
12291
|
+
/(oppo) ?([\w ]+) bui/i,
|
|
12292
|
+
/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i
|
|
12282
12293
|
],
|
|
12283
12294
|
[
|
|
12284
12295
|
VENDOR,
|
|
@@ -12401,6 +12412,7 @@ var __webpack_exports__ = {};
|
|
|
12401
12412
|
]
|
|
12402
12413
|
],
|
|
12403
12414
|
[
|
|
12415
|
+
/(philips)[\w ]+tv/i,
|
|
12404
12416
|
/smart-tv.+(samsung)/i
|
|
12405
12417
|
],
|
|
12406
12418
|
[
|
|
@@ -12655,25 +12667,6 @@ var __webpack_exports__ = {};
|
|
|
12655
12667
|
SMARTTV
|
|
12656
12668
|
]
|
|
12657
12669
|
],
|
|
12658
|
-
[
|
|
12659
|
-
/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i
|
|
12660
|
-
],
|
|
12661
|
-
[
|
|
12662
|
-
MODEL,
|
|
12663
|
-
[
|
|
12664
|
-
TYPE,
|
|
12665
|
-
SMARTTV
|
|
12666
|
-
]
|
|
12667
|
-
],
|
|
12668
|
-
[
|
|
12669
|
-
/\b(android tv|smart[- ]?tv|opera tv|tv; rv:|large screen[\w ]+safari)\b/i
|
|
12670
|
-
],
|
|
12671
|
-
[
|
|
12672
|
-
[
|
|
12673
|
-
TYPE,
|
|
12674
|
-
SMARTTV
|
|
12675
|
-
]
|
|
12676
|
-
],
|
|
12677
12670
|
[
|
|
12678
12671
|
/(playstation \w+)/i
|
|
12679
12672
|
],
|
|
@@ -12868,7 +12861,7 @@ var __webpack_exports__ = {};
|
|
|
12868
12861
|
]
|
|
12869
12862
|
],
|
|
12870
12863
|
[
|
|
12871
|
-
/(pico) (
|
|
12864
|
+
/(pico) ([\w ]+) os\d/i
|
|
12872
12865
|
],
|
|
12873
12866
|
[
|
|
12874
12867
|
VENDOR,
|
|
@@ -12948,6 +12941,25 @@ var __webpack_exports__ = {};
|
|
|
12948
12941
|
EMBEDDED
|
|
12949
12942
|
]
|
|
12950
12943
|
],
|
|
12944
|
+
[
|
|
12945
|
+
/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i
|
|
12946
|
+
],
|
|
12947
|
+
[
|
|
12948
|
+
MODEL,
|
|
12949
|
+
[
|
|
12950
|
+
TYPE,
|
|
12951
|
+
SMARTTV
|
|
12952
|
+
]
|
|
12953
|
+
],
|
|
12954
|
+
[
|
|
12955
|
+
/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i
|
|
12956
|
+
],
|
|
12957
|
+
[
|
|
12958
|
+
[
|
|
12959
|
+
TYPE,
|
|
12960
|
+
SMARTTV
|
|
12961
|
+
]
|
|
12962
|
+
],
|
|
12951
12963
|
[
|
|
12952
12964
|
/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i
|
|
12953
12965
|
],
|
|
@@ -13586,7 +13598,7 @@ var __webpack_exports__ = {};
|
|
|
13586
13598
|
case UA_BROWSER:
|
|
13587
13599
|
case UA_ENGINE:
|
|
13588
13600
|
var brands = uaCH[FULLVERLIST] || uaCH[BRANDS], prevName;
|
|
13589
|
-
if (brands) for(var i
|
|
13601
|
+
if (brands) for(var i = 0; i < brands.length; i++){
|
|
13590
13602
|
var brandName = brands[i].brand || brands[i], brandVersion = brands[i].version;
|
|
13591
13603
|
if (this.itemType == UA_BROWSER && !/not.a.brand/i.test(brandName) && (!prevName || /Chrom/.test(prevName) && brandName != CHROMIUM || prevName == EDGE && /WebView2/.test(brandName))) {
|
|
13592
13604
|
brandName = strMapper(brandName, browserHintsMap);
|
|
@@ -13680,12 +13692,16 @@ var __webpack_exports__ = {};
|
|
|
13680
13692
|
headers = extensions;
|
|
13681
13693
|
extensions = void 0;
|
|
13682
13694
|
}
|
|
13683
|
-
if (headers
|
|
13695
|
+
if (headers) if (typeof headers.append === FUNC_TYPE) {
|
|
13684
13696
|
var kv = {};
|
|
13685
13697
|
headers.forEach(function(v, k) {
|
|
13686
|
-
kv[k] = v;
|
|
13698
|
+
kv[String(k).toLowerCase()] = v;
|
|
13687
13699
|
});
|
|
13688
13700
|
headers = kv;
|
|
13701
|
+
} else {
|
|
13702
|
+
var normalized = {};
|
|
13703
|
+
for(var header in headers)if (headers.hasOwnProperty(header)) normalized[String(header).toLowerCase()] = headers[header];
|
|
13704
|
+
headers = normalized;
|
|
13689
13705
|
}
|
|
13690
13706
|
if (!(this instanceof UAParser)) return new UAParser(ua, extensions, headers).getResult();
|
|
13691
13707
|
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) {
|
|
@@ -14213,8 +14229,6 @@ var __webpack_exports__ = {};
|
|
|
14213
14229
|
return value;
|
|
14214
14230
|
}
|
|
14215
14231
|
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
14232
|
let createNanoEvents = ()=>({
|
|
14219
14233
|
emit (event, ...args) {
|
|
14220
14234
|
for(let callbacks = this.events[event] || [], i = 0, length = callbacks.length; i < length; i++)callbacks[i](...args);
|
|
@@ -14285,10 +14299,20 @@ var __webpack_exports__ = {};
|
|
|
14285
14299
|
}
|
|
14286
14300
|
Despot_define_property(Despot, "EMITTER", createNanoEvents());
|
|
14287
14301
|
const util_Despot = Despot;
|
|
14302
|
+
function hideElement(element) {
|
|
14303
|
+
if (!element) return;
|
|
14304
|
+
element.style.setProperty("display", "none", "important");
|
|
14305
|
+
}
|
|
14306
|
+
const html_hideElement = hideElement;
|
|
14288
14307
|
function isNotButton(element) {
|
|
14289
14308
|
return "BUTTON" !== element.tagName && "submit" !== element.getAttribute("type");
|
|
14290
14309
|
}
|
|
14291
14310
|
const html_isNotButton = isNotButton;
|
|
14311
|
+
function showElement(element) {
|
|
14312
|
+
if (!element) return;
|
|
14313
|
+
element.style.removeProperty("display");
|
|
14314
|
+
}
|
|
14315
|
+
const html_showElement = showElement;
|
|
14292
14316
|
const REGEX = /[ ,]+/u;
|
|
14293
14317
|
function trimEmail(email) {
|
|
14294
14318
|
return email.replace(REGEX, "");
|
|
@@ -14381,8 +14405,8 @@ var __webpack_exports__ = {};
|
|
|
14381
14405
|
else formControl.removeAttribute("disabled");
|
|
14382
14406
|
}
|
|
14383
14407
|
hideAll() {
|
|
14384
|
-
for (const formElement of this.formElement.elements)
|
|
14385
|
-
if (!this.formElement.classList.contains(this.options.selectors.containerClass))
|
|
14408
|
+
for (const formElement of this.formElement.elements)html_hideElement(formElement);
|
|
14409
|
+
if (!this.formElement.classList.contains(this.options.selectors.containerClass)) html_hideElement(this.formElement);
|
|
14386
14410
|
}
|
|
14387
14411
|
isRegisteredFormField(formElement) {
|
|
14388
14412
|
const formElementName = formElement.getAttribute("name");
|
|
@@ -14468,7 +14492,7 @@ var __webpack_exports__ = {};
|
|
|
14468
14492
|
}
|
|
14469
14493
|
hideSubmitButton() {
|
|
14470
14494
|
const submitButton = this.findSubmitButton();
|
|
14471
|
-
|
|
14495
|
+
html_hideElement(submitButton);
|
|
14472
14496
|
}
|
|
14473
14497
|
unload() {
|
|
14474
14498
|
this.options.logger.debug("Form: unload()");
|
|
@@ -14528,10 +14552,10 @@ var __webpack_exports__ = {};
|
|
|
14528
14552
|
return this.formElement.querySelector("[type='submit']");
|
|
14529
14553
|
}
|
|
14530
14554
|
hide() {
|
|
14531
|
-
|
|
14555
|
+
html_hideElement(this.formElement);
|
|
14532
14556
|
}
|
|
14533
14557
|
show() {
|
|
14534
|
-
|
|
14558
|
+
html_showElement(this.formElement);
|
|
14535
14559
|
}
|
|
14536
14560
|
constructor(container, formElement, options){
|
|
14537
14561
|
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 +15011,10 @@ var __webpack_exports__ = {};
|
|
|
14987
15011
|
else element.classList.add("disabled");
|
|
14988
15012
|
}
|
|
14989
15013
|
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
15014
|
function adjustButton(buttonElement, show, type, disabled) {
|
|
14996
15015
|
if (disabled) html_disableElement(buttonElement);
|
|
14997
15016
|
if (type) buttonElement.type = type;
|
|
14998
|
-
if (!show)
|
|
15017
|
+
if (!show) html_hideElement(buttonElement);
|
|
14999
15018
|
return buttonElement;
|
|
15000
15019
|
}
|
|
15001
15020
|
const html_adjustButton = adjustButton;
|
|
@@ -15007,14 +15026,10 @@ var __webpack_exports__ = {};
|
|
|
15007
15026
|
const html_enableElement = enableElement;
|
|
15008
15027
|
function isShown(element) {
|
|
15009
15028
|
if (!element) return false;
|
|
15010
|
-
|
|
15029
|
+
const display = element.style.getPropertyValue("display");
|
|
15030
|
+
return !display.includes("none");
|
|
15011
15031
|
}
|
|
15012
15032
|
const html_isShown = isShown;
|
|
15013
|
-
function showElement(element) {
|
|
15014
|
-
if (!element) return;
|
|
15015
|
-
hidden_default()(element, false);
|
|
15016
|
-
}
|
|
15017
|
-
const html_showElement = showElement;
|
|
15018
15033
|
function buttons_define_property(obj, key, value) {
|
|
15019
15034
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
15020
15035
|
value: value,
|
|
@@ -15138,12 +15153,12 @@ var __webpack_exports__ = {};
|
|
|
15138
15153
|
}
|
|
15139
15154
|
if (!(null == params ? void 0 : params.paused)) {
|
|
15140
15155
|
html_disableElement(this.previewButton);
|
|
15141
|
-
|
|
15156
|
+
html_hideElement(this.previewButton);
|
|
15142
15157
|
}
|
|
15143
15158
|
if (!this.options.enableAutoValidation) html_enableElement(this.submitButton);
|
|
15144
15159
|
}
|
|
15145
15160
|
onGoingBack() {
|
|
15146
|
-
|
|
15161
|
+
html_hideElement(this.recordAgainButton);
|
|
15147
15162
|
html_showElement(this.recordButton);
|
|
15148
15163
|
html_showElement(this.submitButton);
|
|
15149
15164
|
}
|
|
@@ -15168,8 +15183,8 @@ var __webpack_exports__ = {};
|
|
|
15168
15183
|
this.reset();
|
|
15169
15184
|
}
|
|
15170
15185
|
onPreview() {
|
|
15171
|
-
|
|
15172
|
-
|
|
15186
|
+
html_hideElement(this.recordButton);
|
|
15187
|
+
html_hideElement(this.previewButton);
|
|
15173
15188
|
html_disableElement(this.audioOnRadioPair);
|
|
15174
15189
|
html_disableElement(this.audioOffRadioPair);
|
|
15175
15190
|
html_showElement(this.recordAgainButton);
|
|
@@ -15181,17 +15196,17 @@ var __webpack_exports__ = {};
|
|
|
15181
15196
|
}
|
|
15182
15197
|
adjustButtonsForPause() {
|
|
15183
15198
|
if (!this.isCountingDown()) {
|
|
15184
|
-
if (this.pauseButton)
|
|
15199
|
+
if (this.pauseButton) html_hideElement(this.pauseButton);
|
|
15185
15200
|
html_showElement(this.resumeButton);
|
|
15186
15201
|
html_enableElement(this.resumeButton);
|
|
15187
|
-
|
|
15202
|
+
html_hideElement(this.recordButton);
|
|
15188
15203
|
html_showElement(this.previewButton);
|
|
15189
15204
|
html_enableElement(this.previewButton);
|
|
15190
15205
|
}
|
|
15191
15206
|
}
|
|
15192
15207
|
onFirstFrameSent() {
|
|
15193
|
-
|
|
15194
|
-
|
|
15208
|
+
html_hideElement(this.recordButton);
|
|
15209
|
+
html_hideElement(this.recordAgainButton);
|
|
15195
15210
|
if (this.pauseButton) {
|
|
15196
15211
|
html_showElement(this.pauseButton);
|
|
15197
15212
|
html_enableElement(this.pauseButton);
|
|
@@ -15209,8 +15224,8 @@ var __webpack_exports__ = {};
|
|
|
15209
15224
|
}
|
|
15210
15225
|
}
|
|
15211
15226
|
onResuming() {
|
|
15212
|
-
|
|
15213
|
-
|
|
15227
|
+
html_hideElement(this.resumeButton);
|
|
15228
|
+
html_hideElement(this.recordButton);
|
|
15214
15229
|
if (this.pauseButton) {
|
|
15215
15230
|
html_enableElement(this.pauseButton);
|
|
15216
15231
|
html_showElement(this.pauseButton);
|
|
@@ -15219,8 +15234,8 @@ var __webpack_exports__ = {};
|
|
|
15219
15234
|
onStopping() {
|
|
15220
15235
|
html_disableElement(this.previewButton);
|
|
15221
15236
|
html_disableElement(this.recordButton);
|
|
15222
|
-
|
|
15223
|
-
|
|
15237
|
+
html_hideElement(this.pauseButton);
|
|
15238
|
+
html_hideElement(this.resumeButton);
|
|
15224
15239
|
}
|
|
15225
15240
|
onCountdown() {
|
|
15226
15241
|
html_disableElement(this.recordButton);
|
|
@@ -15245,12 +15260,12 @@ var __webpack_exports__ = {};
|
|
|
15245
15260
|
if (this.options.enableAutoValidation) html_enableElement(this.submitButton);
|
|
15246
15261
|
}
|
|
15247
15262
|
onHidden() {
|
|
15248
|
-
|
|
15249
|
-
|
|
15250
|
-
|
|
15251
|
-
|
|
15252
|
-
|
|
15253
|
-
|
|
15263
|
+
html_hideElement(this.recordButton);
|
|
15264
|
+
html_hideElement(this.previewButton);
|
|
15265
|
+
html_hideElement(this.recordAgainButton);
|
|
15266
|
+
html_hideElement(this.resumeButton);
|
|
15267
|
+
html_hideElement(this.audioOnRadioPair);
|
|
15268
|
+
html_hideElement(this.audioOffRadioPair);
|
|
15254
15269
|
}
|
|
15255
15270
|
onEnablingAudio() {
|
|
15256
15271
|
this.options.logger.debug("Buttons: onEnablingAudio()");
|
|
@@ -15391,7 +15406,7 @@ var __webpack_exports__ = {};
|
|
|
15391
15406
|
this.buttonsElement.classList.add(this.options.selectors.buttonsClass);
|
|
15392
15407
|
this.container.appendChild(this.buttonsElement);
|
|
15393
15408
|
}
|
|
15394
|
-
|
|
15409
|
+
html_hideElement(this.buttonsElement);
|
|
15395
15410
|
this.buildButtons();
|
|
15396
15411
|
if (!this.built) this.initEvents();
|
|
15397
15412
|
this.built = true;
|
|
@@ -15407,16 +15422,16 @@ var __webpack_exports__ = {};
|
|
|
15407
15422
|
}
|
|
15408
15423
|
hide() {
|
|
15409
15424
|
let deep = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false;
|
|
15410
|
-
|
|
15425
|
+
html_hideElement(this.buttonsElement);
|
|
15411
15426
|
if (deep) {
|
|
15412
|
-
|
|
15413
|
-
|
|
15414
|
-
|
|
15415
|
-
|
|
15416
|
-
|
|
15417
|
-
|
|
15418
|
-
|
|
15419
|
-
|
|
15427
|
+
html_hideElement(this.recordButton);
|
|
15428
|
+
html_hideElement(this.pauseButton);
|
|
15429
|
+
html_hideElement(this.resumeButton);
|
|
15430
|
+
html_hideElement(this.previewButton);
|
|
15431
|
+
html_hideElement(this.recordAgainButton);
|
|
15432
|
+
html_hideElement(this.submitButton);
|
|
15433
|
+
html_hideElement(this.audioOnRadioPair);
|
|
15434
|
+
html_hideElement(this.audioOffRadioPair);
|
|
15420
15435
|
}
|
|
15421
15436
|
}
|
|
15422
15437
|
show() {
|
|
@@ -15431,6 +15446,12 @@ var __webpack_exports__ = {};
|
|
|
15431
15446
|
}
|
|
15432
15447
|
}
|
|
15433
15448
|
const buttons = Buttons;
|
|
15449
|
+
function isHidden_isHidden(element) {
|
|
15450
|
+
if (!element) return true;
|
|
15451
|
+
const display = element.style.getPropertyValue("display");
|
|
15452
|
+
return display.includes("none");
|
|
15453
|
+
}
|
|
15454
|
+
const isHidden = isHidden_isHidden;
|
|
15434
15455
|
function countdown_define_property(obj, key, value) {
|
|
15435
15456
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
15436
15457
|
value: value,
|
|
@@ -15485,7 +15506,7 @@ var __webpack_exports__ = {};
|
|
|
15485
15506
|
}
|
|
15486
15507
|
}
|
|
15487
15508
|
show() {
|
|
15488
|
-
|
|
15509
|
+
html_showElement(this.countdownElement);
|
|
15489
15510
|
}
|
|
15490
15511
|
isCountingDown() {
|
|
15491
15512
|
return Boolean(this.intervalId);
|
|
@@ -15496,7 +15517,7 @@ var __webpack_exports__ = {};
|
|
|
15496
15517
|
this.intervalId = void 0;
|
|
15497
15518
|
}
|
|
15498
15519
|
hide() {
|
|
15499
|
-
|
|
15520
|
+
html_hideElement(this.countdownElement);
|
|
15500
15521
|
this.unload();
|
|
15501
15522
|
}
|
|
15502
15523
|
constructor(visuals, options){
|
|
@@ -15551,10 +15572,10 @@ var __webpack_exports__ = {};
|
|
|
15551
15572
|
this.initEvents();
|
|
15552
15573
|
}
|
|
15553
15574
|
hide() {
|
|
15554
|
-
|
|
15575
|
+
html_hideElement(this.facingModeElement);
|
|
15555
15576
|
}
|
|
15556
15577
|
show() {
|
|
15557
|
-
|
|
15578
|
+
html_showElement(this.facingModeElement);
|
|
15558
15579
|
}
|
|
15559
15580
|
constructor(visuals, options){
|
|
15560
15581
|
super("Facing Mode", options), facingMode_define_property(this, "visuals", void 0), facingMode_define_property(this, "facingModeElement", void 0);
|
|
@@ -15606,10 +15627,10 @@ var __webpack_exports__ = {};
|
|
|
15606
15627
|
}
|
|
15607
15628
|
}
|
|
15608
15629
|
hide() {
|
|
15609
|
-
|
|
15630
|
+
html_hideElement(this.pausedBlockElement);
|
|
15610
15631
|
}
|
|
15611
15632
|
show() {
|
|
15612
|
-
|
|
15633
|
+
html_showElement(this.pausedBlockElement);
|
|
15613
15634
|
}
|
|
15614
15635
|
constructor(visuals, options){
|
|
15615
15636
|
pausedNote_define_property(this, "visuals", void 0);
|
|
@@ -15659,10 +15680,10 @@ var __webpack_exports__ = {};
|
|
|
15659
15680
|
null == (_this_recordNoteElement = this.recordNoteElement) || _this_recordNoteElement.classList.add("nigh");
|
|
15660
15681
|
}
|
|
15661
15682
|
hide() {
|
|
15662
|
-
|
|
15683
|
+
html_hideElement(this.recordNoteElement);
|
|
15663
15684
|
}
|
|
15664
15685
|
show() {
|
|
15665
|
-
|
|
15686
|
+
html_showElement(this.recordNoteElement);
|
|
15666
15687
|
}
|
|
15667
15688
|
constructor(visuals){
|
|
15668
15689
|
recordNote_define_property(this, "visuals", void 0);
|
|
@@ -15740,13 +15761,13 @@ var __webpack_exports__ = {};
|
|
|
15740
15761
|
if (this.recordTimerElement) this.recordTimerElement.innerHTML = `${mins}:${util_pad(secs)}`;
|
|
15741
15762
|
}
|
|
15742
15763
|
hide() {
|
|
15743
|
-
|
|
15764
|
+
html_hideElement(this.recordTimerElement);
|
|
15744
15765
|
}
|
|
15745
15766
|
show() {
|
|
15746
15767
|
var _this_recordTimerElement, _this_recordTimerElement1;
|
|
15747
15768
|
null == (_this_recordTimerElement = this.recordTimerElement) || _this_recordTimerElement.classList.remove("near");
|
|
15748
15769
|
null == (_this_recordTimerElement1 = this.recordTimerElement) || _this_recordTimerElement1.classList.remove("nigh");
|
|
15749
|
-
|
|
15770
|
+
html_showElement(this.recordTimerElement);
|
|
15750
15771
|
}
|
|
15751
15772
|
getSecondsRecorded() {
|
|
15752
15773
|
if (void 0 === this.countdown) return this.getSecondsRecorded();
|
|
@@ -16016,7 +16037,7 @@ var __webpack_exports__ = {};
|
|
|
16016
16037
|
}
|
|
16017
16038
|
}
|
|
16018
16039
|
show() {
|
|
16019
|
-
|
|
16040
|
+
html_showElement(this.notifyElement);
|
|
16020
16041
|
}
|
|
16021
16042
|
runEntertainment() {
|
|
16022
16043
|
if (this.options.notifier.entertain) {
|
|
@@ -16064,7 +16085,7 @@ var __webpack_exports__ = {};
|
|
|
16064
16085
|
this.messageElement.innerHTML = (problem ? "☹ " : "") + message;
|
|
16065
16086
|
} else this.options.logger.warn("There is no message element for displaying a message");
|
|
16066
16087
|
else this.options.logger.warn("Not going to update notifierMessage element because message is empty");
|
|
16067
|
-
|
|
16088
|
+
html_showElement(this.messageElement);
|
|
16068
16089
|
}
|
|
16069
16090
|
setExplanation(explanation) {
|
|
16070
16091
|
this.options.logger.debug(`Notifier: setExplanation(${explanation})`);
|
|
@@ -16075,7 +16096,7 @@ var __webpack_exports__ = {};
|
|
|
16075
16096
|
else this.options.logger.warn(`Unable to show explanation because notifyElement is empty: ${explanation}`);
|
|
16076
16097
|
}
|
|
16077
16098
|
this.explanationElement.innerHTML = explanation;
|
|
16078
|
-
|
|
16099
|
+
html_showElement(this.explanationElement);
|
|
16079
16100
|
}
|
|
16080
16101
|
build() {
|
|
16081
16102
|
var _this_visuals_getElement;
|
|
@@ -16091,15 +16112,15 @@ var __webpack_exports__ = {};
|
|
|
16091
16112
|
this.built = true;
|
|
16092
16113
|
}
|
|
16093
16114
|
hideMessage() {
|
|
16094
|
-
|
|
16115
|
+
html_hideElement(this.getMessageElement());
|
|
16095
16116
|
}
|
|
16096
16117
|
hideExplanation() {
|
|
16097
|
-
|
|
16118
|
+
html_hideElement(this.explanationElement);
|
|
16098
16119
|
}
|
|
16099
16120
|
hide() {
|
|
16100
16121
|
this.cancelEntertainment();
|
|
16101
16122
|
if (this.notifyElement) {
|
|
16102
|
-
|
|
16123
|
+
html_hideElement(this.notifyElement);
|
|
16103
16124
|
this.notifyElement.classList.remove("blocking");
|
|
16104
16125
|
}
|
|
16105
16126
|
this.hideMessage();
|
|
@@ -16107,7 +16128,7 @@ var __webpack_exports__ = {};
|
|
|
16107
16128
|
}
|
|
16108
16129
|
isVisible() {
|
|
16109
16130
|
if (!this.built) return false;
|
|
16110
|
-
return this.notifyElement && !
|
|
16131
|
+
return this.notifyElement && !isHidden(this.notifyElement);
|
|
16111
16132
|
}
|
|
16112
16133
|
isBuilt() {
|
|
16113
16134
|
return this.built;
|
|
@@ -16792,7 +16813,7 @@ var __webpack_exports__ = {};
|
|
|
16792
16813
|
this.writeStream(audioBuffer);
|
|
16793
16814
|
}
|
|
16794
16815
|
show() {
|
|
16795
|
-
|
|
16816
|
+
html_showElement(this.recorderElement);
|
|
16796
16817
|
}
|
|
16797
16818
|
onUserMediaReady(params) {
|
|
16798
16819
|
try {
|
|
@@ -17179,7 +17200,7 @@ var __webpack_exports__ = {};
|
|
|
17179
17200
|
return this.visuals.isNotifying();
|
|
17180
17201
|
}
|
|
17181
17202
|
isHidden() {
|
|
17182
|
-
return !this.recorderElement ||
|
|
17203
|
+
return !this.recorderElement || isHidden(this.recorderElement);
|
|
17183
17204
|
}
|
|
17184
17205
|
writeCommand(command, args, cb) {
|
|
17185
17206
|
if (this.connected) {
|
|
@@ -17581,7 +17602,7 @@ var __webpack_exports__ = {};
|
|
|
17581
17602
|
}
|
|
17582
17603
|
hide() {
|
|
17583
17604
|
if (!this.isHidden()) {
|
|
17584
|
-
if (this.recorderElement)
|
|
17605
|
+
if (this.recorderElement) html_hideElement(this.recorderElement);
|
|
17585
17606
|
this.clearUserMediaTimeout();
|
|
17586
17607
|
this.clearRetryTimeout();
|
|
17587
17608
|
}
|
|
@@ -17742,9 +17763,9 @@ var __webpack_exports__ = {};
|
|
|
17742
17763
|
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
17764
|
if (hasMedia) this.correctDimensions(true, null != videomailWidth ? videomailWidth : this.replayElement.videoWidth, null != videomailHeight ? videomailHeight : this.replayElement.videoHeight);
|
|
17744
17765
|
if (playerOnly) {
|
|
17745
|
-
if (hasMedia)
|
|
17746
|
-
} else
|
|
17747
|
-
if (playerOnly)
|
|
17766
|
+
if (hasMedia) html_showElement(this.replayElement);
|
|
17767
|
+
} else html_showElement(this.replayElement);
|
|
17768
|
+
if (playerOnly) html_showElement(this.replayElement.parentElement);
|
|
17748
17769
|
else this.visuals.show();
|
|
17749
17770
|
if (hasAudio) this.replayElement.setAttribute("volume", "1");
|
|
17750
17771
|
else if (!isAudioEnabled(this.options)) this.replayElement.setAttribute("muted", "true");
|
|
@@ -17904,15 +17925,15 @@ var __webpack_exports__ = {};
|
|
|
17904
17925
|
});
|
|
17905
17926
|
}
|
|
17906
17927
|
hide() {
|
|
17907
|
-
if (this.isStandalone())
|
|
17928
|
+
if (this.isStandalone()) this.visuals.hide();
|
|
17908
17929
|
else if (this.replayElement) {
|
|
17909
|
-
|
|
17910
|
-
|
|
17930
|
+
html_hideElement(this.replayElement);
|
|
17931
|
+
html_hideElement(this.replayElement.parentElement);
|
|
17911
17932
|
}
|
|
17912
17933
|
}
|
|
17913
17934
|
isShown() {
|
|
17914
17935
|
if (!this.replayElement) return false;
|
|
17915
|
-
return !
|
|
17936
|
+
return !isHidden(this.replayElement) && !this.visuals.isHidden();
|
|
17916
17937
|
}
|
|
17917
17938
|
getVisuals() {
|
|
17918
17939
|
return this.visuals;
|
|
@@ -18122,16 +18143,16 @@ var __webpack_exports__ = {};
|
|
|
18122
18143
|
}
|
|
18123
18144
|
hide() {
|
|
18124
18145
|
if (this.visualsElement) {
|
|
18125
|
-
|
|
18146
|
+
html_hideElement(this.visualsElement);
|
|
18126
18147
|
this.emit("HIDE");
|
|
18127
18148
|
}
|
|
18128
18149
|
}
|
|
18129
18150
|
isHidden() {
|
|
18130
18151
|
if (!this.built) return true;
|
|
18131
|
-
|
|
18152
|
+
return isHidden(this.visualsElement);
|
|
18132
18153
|
}
|
|
18133
18154
|
showVisuals() {
|
|
18134
|
-
|
|
18155
|
+
html_showElement(this.visualsElement);
|
|
18135
18156
|
}
|
|
18136
18157
|
show(params) {
|
|
18137
18158
|
if (!(null == params ? void 0 : params.playerOnly)) if (this.isReplayShown()) {
|
|
@@ -18366,7 +18387,7 @@ var __webpack_exports__ = {};
|
|
|
18366
18387
|
this.endWaiting();
|
|
18367
18388
|
}
|
|
18368
18389
|
hideMySelf() {
|
|
18369
|
-
|
|
18390
|
+
html_hideElement(this.containerElement);
|
|
18370
18391
|
}
|
|
18371
18392
|
async submitVideomail(formInputs, method) {
|
|
18372
18393
|
var _this_form;
|
|
@@ -18442,7 +18463,7 @@ var __webpack_exports__ = {};
|
|
|
18442
18463
|
message: "No container element exists.",
|
|
18443
18464
|
options: this.options
|
|
18444
18465
|
});
|
|
18445
|
-
|
|
18466
|
+
html_showElement(this.containerElement);
|
|
18446
18467
|
this.visuals.show(params);
|
|
18447
18468
|
if (!this.hasError) {
|
|
18448
18469
|
const paused = this.isPaused();
|