videomail-client 13.1.0 → 13.1.2
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 +416 -295
- package/dist/esm/index.js +23 -23
- package/dist/esm/types/options.d.ts +1 -1
- package/dist/umd/index.js +23 -23
- package/package.json +7 -7
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var __webpack_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__) {
|
|
2
|
+
"./node_modules/@rslib/core/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_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
|
|
8
|
+
var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
9
|
+
var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/api.js");
|
|
10
|
+
var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
11
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_rslib_core_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 {
|
|
@@ -10199,7 +10199,7 @@ var __webpack_modules__ = {
|
|
|
10199
10199
|
"?aa23": function() {},
|
|
10200
10200
|
"?9936": function() {},
|
|
10201
10201
|
"?5f55": function() {},
|
|
10202
|
-
"./node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module) {
|
|
10202
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module) {
|
|
10203
10203
|
"use strict";
|
|
10204
10204
|
module.exports = function(cssWithMappingToString) {
|
|
10205
10205
|
var list = [];
|
|
@@ -10253,13 +10253,13 @@ var __webpack_modules__ = {
|
|
|
10253
10253
|
return list;
|
|
10254
10254
|
};
|
|
10255
10255
|
},
|
|
10256
|
-
"./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module) {
|
|
10256
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module) {
|
|
10257
10257
|
"use strict";
|
|
10258
10258
|
module.exports = function(i) {
|
|
10259
10259
|
return i[1];
|
|
10260
10260
|
};
|
|
10261
10261
|
},
|
|
10262
|
-
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module) {
|
|
10262
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module) {
|
|
10263
10263
|
"use strict";
|
|
10264
10264
|
var stylesInDOM = [];
|
|
10265
10265
|
function getIndexByIdentifier(identifier) {
|
|
@@ -10338,7 +10338,7 @@ var __webpack_modules__ = {
|
|
|
10338
10338
|
};
|
|
10339
10339
|
};
|
|
10340
10340
|
},
|
|
10341
|
-
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module) {
|
|
10341
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module) {
|
|
10342
10342
|
"use strict";
|
|
10343
10343
|
var memo = {};
|
|
10344
10344
|
function getTarget(target) {
|
|
@@ -10360,7 +10360,7 @@ var __webpack_modules__ = {
|
|
|
10360
10360
|
}
|
|
10361
10361
|
module.exports = insertBySelector;
|
|
10362
10362
|
},
|
|
10363
|
-
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module) {
|
|
10363
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module) {
|
|
10364
10364
|
"use strict";
|
|
10365
10365
|
function insertStyleElement(options) {
|
|
10366
10366
|
var element = document.createElement("style");
|
|
@@ -10370,7 +10370,7 @@ var __webpack_modules__ = {
|
|
|
10370
10370
|
}
|
|
10371
10371
|
module.exports = insertStyleElement;
|
|
10372
10372
|
},
|
|
10373
|
-
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
10373
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
10374
10374
|
"use strict";
|
|
10375
10375
|
function setAttributesWithoutAttributes(styleElement) {
|
|
10376
10376
|
var nonce = __webpack_require__.nc;
|
|
@@ -10378,7 +10378,7 @@ var __webpack_modules__ = {
|
|
|
10378
10378
|
}
|
|
10379
10379
|
module.exports = setAttributesWithoutAttributes;
|
|
10380
10380
|
},
|
|
10381
|
-
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module) {
|
|
10381
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module) {
|
|
10382
10382
|
"use strict";
|
|
10383
10383
|
function apply(styleElement, options, obj) {
|
|
10384
10384
|
var css = "";
|
|
@@ -10415,7 +10415,7 @@ var __webpack_modules__ = {
|
|
|
10415
10415
|
}
|
|
10416
10416
|
module.exports = domAPI;
|
|
10417
10417
|
},
|
|
10418
|
-
"./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module) {
|
|
10418
|
+
"./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module) {
|
|
10419
10419
|
"use strict";
|
|
10420
10420
|
function styleTagTransform(css, styleElement) {
|
|
10421
10421
|
if (styleElement.styleSheet) styleElement.styleSheet.cssText = css;
|
|
@@ -10664,7 +10664,7 @@ var __webpack_exports__ = {};
|
|
|
10664
10664
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10665
10665
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10666
10666
|
var package_namespaceObject = {
|
|
10667
|
-
rE: "13.1.
|
|
10667
|
+
rE: "13.1.2"
|
|
10668
10668
|
};
|
|
10669
10669
|
var defined = __webpack_require__("./node_modules/defined/index.js");
|
|
10670
10670
|
var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
|
|
@@ -14292,30 +14292,28 @@ var __webpack_exports__ = {};
|
|
|
14292
14292
|
else obj[key] = value;
|
|
14293
14293
|
return obj;
|
|
14294
14294
|
}
|
|
14295
|
-
class
|
|
14296
|
-
emit(eventName) {
|
|
14297
|
-
for(var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)params[_key - 1] = arguments[_key];
|
|
14295
|
+
class Despot_Despot {
|
|
14296
|
+
emit(eventName, ...params) {
|
|
14298
14297
|
const firstParam = params[0];
|
|
14299
14298
|
const showParams = firstParam && ("object" != typeof firstParam || "object" == typeof firstParam && Object.keys(firstParam).filter(Boolean).length > 0);
|
|
14300
14299
|
if (showParams) this.options.logger.debug(`${this.name} emits ${eventName} with ${util_pretty(params)}`);
|
|
14301
14300
|
else this.options.logger.debug(`${this.name} emits ${eventName}`);
|
|
14302
14301
|
try {
|
|
14303
|
-
|
|
14302
|
+
Despot_Despot.EMITTER.emit(eventName, ...params);
|
|
14304
14303
|
} catch (exc) {
|
|
14305
|
-
if (exc instanceof error_VideomailError)
|
|
14304
|
+
if (exc instanceof error_VideomailError) Despot_Despot.EMITTER.emit("ERROR", {
|
|
14306
14305
|
err: exc
|
|
14307
14306
|
});
|
|
14308
|
-
else
|
|
14307
|
+
else Despot_Despot.EMITTER.emit("ERROR", {
|
|
14309
14308
|
exc
|
|
14310
14309
|
});
|
|
14311
14310
|
}
|
|
14312
14311
|
}
|
|
14313
14312
|
on(eventName, callback) {
|
|
14314
|
-
return
|
|
14313
|
+
return Despot_Despot.EMITTER.on(eventName, callback);
|
|
14315
14314
|
}
|
|
14316
14315
|
once(eventName, listener) {
|
|
14317
|
-
const callback =
|
|
14318
|
-
for(var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++)params[_key] = arguments[_key];
|
|
14316
|
+
const callback = (...params)=>{
|
|
14319
14317
|
unbind();
|
|
14320
14318
|
params.length > 0 ? listener(...params) : listener();
|
|
14321
14319
|
};
|
|
@@ -14323,13 +14321,13 @@ var __webpack_exports__ = {};
|
|
|
14323
14321
|
return unbind;
|
|
14324
14322
|
}
|
|
14325
14323
|
static getListeners(eventName) {
|
|
14326
|
-
return
|
|
14324
|
+
return Despot_Despot.EMITTER.events[eventName];
|
|
14327
14325
|
}
|
|
14328
14326
|
static removeListener(eventName) {
|
|
14329
|
-
delete
|
|
14327
|
+
delete Despot_Despot.EMITTER.events[eventName];
|
|
14330
14328
|
}
|
|
14331
14329
|
static removeAllListeners() {
|
|
14332
|
-
|
|
14330
|
+
Despot_Despot.EMITTER.events = {};
|
|
14333
14331
|
}
|
|
14334
14332
|
constructor(name, options){
|
|
14335
14333
|
Despot_define_property(this, "name", void 0);
|
|
@@ -14338,8 +14336,8 @@ var __webpack_exports__ = {};
|
|
|
14338
14336
|
this.options = options;
|
|
14339
14337
|
}
|
|
14340
14338
|
}
|
|
14341
|
-
Despot_define_property(
|
|
14342
|
-
const
|
|
14339
|
+
Despot_define_property(Despot_Despot, "EMITTER", createNanoEvents());
|
|
14340
|
+
const Despot = Despot_Despot;
|
|
14343
14341
|
function hideElement(element) {
|
|
14344
14342
|
if (!element) return;
|
|
14345
14343
|
element.style.setProperty("display", "none", "important");
|
|
@@ -14362,6 +14360,32 @@ var __webpack_exports__ = {};
|
|
|
14362
14360
|
const trimmedEmails = emails.split(REGEX).map((item)=>item.trim()).filter(Boolean);
|
|
14363
14361
|
return trimmedEmails;
|
|
14364
14362
|
}
|
|
14363
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
14364
|
+
try {
|
|
14365
|
+
var info = gen[key](arg);
|
|
14366
|
+
var value = info.value;
|
|
14367
|
+
} catch (error) {
|
|
14368
|
+
reject(error);
|
|
14369
|
+
return;
|
|
14370
|
+
}
|
|
14371
|
+
if (info.done) resolve(value);
|
|
14372
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
14373
|
+
}
|
|
14374
|
+
function _async_to_generator(fn) {
|
|
14375
|
+
return function() {
|
|
14376
|
+
var self1 = this, args = arguments;
|
|
14377
|
+
return new Promise(function(resolve, reject) {
|
|
14378
|
+
var gen = fn.apply(self1, args);
|
|
14379
|
+
function _next(value) {
|
|
14380
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
14381
|
+
}
|
|
14382
|
+
function _throw(err) {
|
|
14383
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
14384
|
+
}
|
|
14385
|
+
_next(void 0);
|
|
14386
|
+
});
|
|
14387
|
+
};
|
|
14388
|
+
}
|
|
14365
14389
|
function form_define_property(obj, key, value) {
|
|
14366
14390
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
14367
14391
|
value: value,
|
|
@@ -14377,7 +14401,7 @@ var __webpack_exports__ = {};
|
|
|
14377
14401
|
PUT: "put",
|
|
14378
14402
|
GET: "get"
|
|
14379
14403
|
};
|
|
14380
|
-
class Form extends
|
|
14404
|
+
class Form extends Despot {
|
|
14381
14405
|
getData() {
|
|
14382
14406
|
return getFormData(this.formElement, {
|
|
14383
14407
|
includeDisabled: true
|
|
@@ -14421,7 +14445,7 @@ var __webpack_exports__ = {};
|
|
|
14421
14445
|
if (name) {
|
|
14422
14446
|
let value = videomail[name];
|
|
14423
14447
|
const tagName = formControl.tagName;
|
|
14424
|
-
if (this.options.callbacks.adjustFormValueBeforePopulating) value = this.options.callbacks.adjustFormValueBeforePopulating(name, videomail);
|
|
14448
|
+
if (this.options.callbacks.adjustFormValueBeforePopulating) value = this.options.callbacks.adjustFormValueBeforePopulating(name, value, videomail);
|
|
14425
14449
|
switch(tagName){
|
|
14426
14450
|
case "INPUT":
|
|
14427
14451
|
{
|
|
@@ -14544,7 +14568,7 @@ var __webpack_exports__ = {};
|
|
|
14544
14568
|
unload() {
|
|
14545
14569
|
this.options.logger.debug("Form: unload()");
|
|
14546
14570
|
this.removeAllInputListeners();
|
|
14547
|
-
|
|
14571
|
+
Despot.removeAllListeners();
|
|
14548
14572
|
this.stopListeningToSubmitEvents();
|
|
14549
14573
|
this.resetForm();
|
|
14550
14574
|
}
|
|
@@ -14565,27 +14589,29 @@ var __webpack_exports__ = {};
|
|
|
14565
14589
|
const submitButton = this.container.getSubmitButton();
|
|
14566
14590
|
if (submitButton) submitButton.onclick = null;
|
|
14567
14591
|
}
|
|
14568
|
-
|
|
14569
|
-
|
|
14570
|
-
|
|
14571
|
-
|
|
14572
|
-
|
|
14573
|
-
|
|
14574
|
-
|
|
14575
|
-
|
|
14576
|
-
|
|
14577
|
-
|
|
14578
|
-
|
|
14579
|
-
|
|
14580
|
-
|
|
14581
|
-
|
|
14582
|
-
|
|
14583
|
-
|
|
14584
|
-
|
|
14585
|
-
|
|
14586
|
-
|
|
14587
|
-
|
|
14588
|
-
|
|
14592
|
+
doTheSubmit(e) {
|
|
14593
|
+
return _async_to_generator(function*() {
|
|
14594
|
+
if (e) {
|
|
14595
|
+
this.options.logger.debug(`Form: doTheSubmit(${util_pretty(e)})`);
|
|
14596
|
+
e.preventDefault();
|
|
14597
|
+
} else this.options.logger.debug("Form: doTheSubmit()");
|
|
14598
|
+
var _this_formElement_getAttribute;
|
|
14599
|
+
const url = null != (_this_formElement_getAttribute = this.formElement.getAttribute("action")) ? _this_formElement_getAttribute : this.options.apiUrl;
|
|
14600
|
+
const method = this.formElement.getAttribute("method");
|
|
14601
|
+
let chosenMethod;
|
|
14602
|
+
switch(method){
|
|
14603
|
+
case FormMethod.POST:
|
|
14604
|
+
chosenMethod = FormMethod.POST;
|
|
14605
|
+
break;
|
|
14606
|
+
case FormMethod.PUT:
|
|
14607
|
+
chosenMethod = FormMethod.PUT;
|
|
14608
|
+
break;
|
|
14609
|
+
default:
|
|
14610
|
+
chosenMethod = FormMethod.POST;
|
|
14611
|
+
}
|
|
14612
|
+
if (this.container.hasElement()) yield this.container.submitAll(this.getData(), chosenMethod, url);
|
|
14613
|
+
return false;
|
|
14614
|
+
}).call(this);
|
|
14589
14615
|
}
|
|
14590
14616
|
getInvalidElement() {
|
|
14591
14617
|
const elements = this.getRegisteredFormElements();
|
|
@@ -14622,6 +14648,32 @@ var __webpack_exports__ = {};
|
|
|
14622
14648
|
}
|
|
14623
14649
|
}
|
|
14624
14650
|
const wrappers_form = Form;
|
|
14651
|
+
function resource_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
14652
|
+
try {
|
|
14653
|
+
var info = gen[key](arg);
|
|
14654
|
+
var value = info.value;
|
|
14655
|
+
} catch (error) {
|
|
14656
|
+
reject(error);
|
|
14657
|
+
return;
|
|
14658
|
+
}
|
|
14659
|
+
if (info.done) resolve(value);
|
|
14660
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
14661
|
+
}
|
|
14662
|
+
function resource_async_to_generator(fn) {
|
|
14663
|
+
return function() {
|
|
14664
|
+
var self1 = this, args = arguments;
|
|
14665
|
+
return new Promise(function(resolve, reject) {
|
|
14666
|
+
var gen = fn.apply(self1, args);
|
|
14667
|
+
function _next(value) {
|
|
14668
|
+
resource_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
14669
|
+
}
|
|
14670
|
+
function _throw(err) {
|
|
14671
|
+
resource_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
14672
|
+
}
|
|
14673
|
+
_next(void 0);
|
|
14674
|
+
});
|
|
14675
|
+
};
|
|
14676
|
+
}
|
|
14625
14677
|
function resource_define_property(obj, key, value) {
|
|
14626
14678
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
14627
14679
|
value: value,
|
|
@@ -14632,6 +14684,19 @@ var __webpack_exports__ = {};
|
|
|
14632
14684
|
else obj[key] = value;
|
|
14633
14685
|
return obj;
|
|
14634
14686
|
}
|
|
14687
|
+
function _object_spread(target) {
|
|
14688
|
+
for(var i = 1; i < arguments.length; i++){
|
|
14689
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
14690
|
+
var ownKeys = Object.keys(source);
|
|
14691
|
+
if ("function" == typeof Object.getOwnPropertySymbols) ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
14692
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
14693
|
+
}));
|
|
14694
|
+
ownKeys.forEach(function(key) {
|
|
14695
|
+
resource_define_property(target, key, source[key]);
|
|
14696
|
+
});
|
|
14697
|
+
}
|
|
14698
|
+
return target;
|
|
14699
|
+
}
|
|
14635
14700
|
function findOriginalExc(exc) {
|
|
14636
14701
|
if (exc instanceof Error && "response" in exc) {
|
|
14637
14702
|
const response = exc.response;
|
|
@@ -14658,9 +14723,7 @@ var __webpack_exports__ = {};
|
|
|
14658
14723
|
return videomail;
|
|
14659
14724
|
}
|
|
14660
14725
|
applyDefaultValues(videomail) {
|
|
14661
|
-
let newVideomail = {
|
|
14662
|
-
...videomail
|
|
14663
|
-
};
|
|
14726
|
+
let newVideomail = _object_spread({}, videomail);
|
|
14664
14727
|
newVideomail = this.applyDefaultValue(newVideomail, "from");
|
|
14665
14728
|
newVideomail = this.applyDefaultValue(newVideomail, "to");
|
|
14666
14729
|
newVideomail = this.applyDefaultValue(newVideomail, "cc");
|
|
@@ -14669,121 +14732,137 @@ var __webpack_exports__ = {};
|
|
|
14669
14732
|
newVideomail = this.applyDefaultValue(newVideomail, "body");
|
|
14670
14733
|
return newVideomail;
|
|
14671
14734
|
}
|
|
14672
|
-
|
|
14673
|
-
|
|
14674
|
-
|
|
14675
|
-
|
|
14676
|
-
|
|
14677
|
-
|
|
14678
|
-
|
|
14679
|
-
|
|
14680
|
-
|
|
14681
|
-
|
|
14682
|
-
|
|
14683
|
-
|
|
14684
|
-
|
|
14685
|
-
|
|
14686
|
-
const queryParams = {
|
|
14687
|
-
[constants.SITE_NAME_LABEL]: this.options.siteName
|
|
14688
|
-
};
|
|
14689
|
-
let url = `${this.options.apiUrl}/videomail/`;
|
|
14690
|
-
if (method === FormMethod.PUT && videomail.key) url += videomail.key;
|
|
14691
|
-
try {
|
|
14692
|
-
const request = await client_default()(method, url).query(queryParams).set("Timezone-Id", this.timezoneId).withCredentials().send(videomail).timeout(this.options.timeouts.connection);
|
|
14693
|
-
return request;
|
|
14694
|
-
} catch (exc) {
|
|
14695
|
-
throw error_createError({
|
|
14696
|
-
exc: findOriginalExc(exc),
|
|
14697
|
-
options: this.options
|
|
14698
|
-
});
|
|
14699
|
-
}
|
|
14700
|
-
}
|
|
14701
|
-
async getByAlias(alias) {
|
|
14702
|
-
return await this.get("alias", alias);
|
|
14703
|
-
}
|
|
14704
|
-
async getByKey(key) {
|
|
14705
|
-
return await this.get("key", key);
|
|
14735
|
+
get(identifierName, identifierValue) {
|
|
14736
|
+
return resource_async_to_generator(function*() {
|
|
14737
|
+
const url = `${this.options.apiUrl}/videomail/${identifierName}/${identifierValue}/snapshot`;
|
|
14738
|
+
try {
|
|
14739
|
+
const request = yield client_default()("get", url).type("json").set("Accept", "application/json").withCredentials().set("Timezone-Id", this.timezoneId).set(constants.SITE_NAME_LABEL, this.options.siteName).timeout(this.options.timeouts.connection);
|
|
14740
|
+
const videomail = request.body;
|
|
14741
|
+
return videomail;
|
|
14742
|
+
} catch (exc) {
|
|
14743
|
+
throw error_createError({
|
|
14744
|
+
exc: findOriginalExc(exc),
|
|
14745
|
+
options: this.options
|
|
14746
|
+
});
|
|
14747
|
+
}
|
|
14748
|
+
}).call(this);
|
|
14706
14749
|
}
|
|
14707
|
-
|
|
14708
|
-
|
|
14709
|
-
|
|
14710
|
-
|
|
14711
|
-
const url = `${this.options.apiUrl}/client-error/`;
|
|
14712
|
-
try {
|
|
14713
|
-
var _this_options_versions;
|
|
14714
|
-
const fullVideomailErrorData = {
|
|
14715
|
-
browser: err.browser,
|
|
14716
|
-
code: err.code,
|
|
14717
|
-
cookie: err.cookie,
|
|
14718
|
-
cpu: err.cpu,
|
|
14719
|
-
device: err.device,
|
|
14720
|
-
engine: err.engine,
|
|
14721
|
-
err: serializeError(err.err),
|
|
14722
|
-
explanation: err.explanation,
|
|
14723
|
-
location: err.location,
|
|
14724
|
-
logLines: err.logLines,
|
|
14725
|
-
orientation: err.orientation,
|
|
14726
|
-
os: err.os,
|
|
14727
|
-
screen: err.screen,
|
|
14728
|
-
siteName: err.siteName,
|
|
14729
|
-
status: err.status,
|
|
14730
|
-
title: err.title,
|
|
14731
|
-
message: err.message,
|
|
14732
|
-
stack: err.stack,
|
|
14733
|
-
versions: {
|
|
14734
|
-
videomailClient: package_namespaceObject.rE,
|
|
14735
|
-
videomailNinjaFormPlugin: null == (_this_options_versions = this.options.versions) ? void 0 : _this_options_versions.videomailNinjaFormPlugin
|
|
14736
|
-
}
|
|
14750
|
+
write(method, videomail) {
|
|
14751
|
+
return resource_async_to_generator(function*() {
|
|
14752
|
+
const queryParams = {
|
|
14753
|
+
[constants.SITE_NAME_LABEL]: this.options.siteName
|
|
14737
14754
|
};
|
|
14738
|
-
|
|
14739
|
-
|
|
14740
|
-
|
|
14741
|
-
|
|
14742
|
-
|
|
14743
|
-
|
|
14744
|
-
|
|
14745
|
-
|
|
14746
|
-
|
|
14747
|
-
|
|
14748
|
-
|
|
14749
|
-
|
|
14750
|
-
|
|
14751
|
-
|
|
14752
|
-
|
|
14753
|
-
|
|
14754
|
-
|
|
14755
|
-
|
|
14756
|
-
|
|
14757
|
-
|
|
14758
|
-
|
|
14759
|
-
|
|
14760
|
-
|
|
14761
|
-
|
|
14755
|
+
let url = `${this.options.apiUrl}/videomail/`;
|
|
14756
|
+
if (method === FormMethod.PUT && videomail.key) url += videomail.key;
|
|
14757
|
+
try {
|
|
14758
|
+
const request = yield client_default()(method, url).query(queryParams).set("Timezone-Id", this.timezoneId).withCredentials().send(videomail).timeout(this.options.timeouts.connection);
|
|
14759
|
+
return request;
|
|
14760
|
+
} catch (exc) {
|
|
14761
|
+
throw error_createError({
|
|
14762
|
+
exc: findOriginalExc(exc),
|
|
14763
|
+
options: this.options
|
|
14764
|
+
});
|
|
14765
|
+
}
|
|
14766
|
+
}).call(this);
|
|
14767
|
+
}
|
|
14768
|
+
getByAlias(alias) {
|
|
14769
|
+
return resource_async_to_generator(function*() {
|
|
14770
|
+
return yield this.get("alias", alias);
|
|
14771
|
+
}).call(this);
|
|
14772
|
+
}
|
|
14773
|
+
getByKey(key) {
|
|
14774
|
+
return resource_async_to_generator(function*() {
|
|
14775
|
+
return yield this.get("key", key);
|
|
14776
|
+
}).call(this);
|
|
14777
|
+
}
|
|
14778
|
+
reportError(err) {
|
|
14779
|
+
return resource_async_to_generator(function*() {
|
|
14780
|
+
const queryParams = {
|
|
14781
|
+
[constants.SITE_NAME_LABEL]: this.options.siteName
|
|
14782
|
+
};
|
|
14783
|
+
const url = `${this.options.apiUrl}/client-error/`;
|
|
14784
|
+
try {
|
|
14785
|
+
var _this_options_versions;
|
|
14786
|
+
const fullVideomailErrorData = {
|
|
14787
|
+
browser: err.browser,
|
|
14788
|
+
code: err.code,
|
|
14789
|
+
cookie: err.cookie,
|
|
14790
|
+
cpu: err.cpu,
|
|
14791
|
+
device: err.device,
|
|
14792
|
+
engine: err.engine,
|
|
14793
|
+
err: serializeError(err.err),
|
|
14794
|
+
explanation: err.explanation,
|
|
14795
|
+
location: err.location,
|
|
14796
|
+
logLines: err.logLines,
|
|
14797
|
+
orientation: err.orientation,
|
|
14798
|
+
os: err.os,
|
|
14799
|
+
screen: err.screen,
|
|
14800
|
+
siteName: err.siteName,
|
|
14801
|
+
status: err.status,
|
|
14802
|
+
title: err.title,
|
|
14803
|
+
message: err.message,
|
|
14804
|
+
stack: err.stack,
|
|
14805
|
+
versions: {
|
|
14806
|
+
videomailClient: package_namespaceObject.rE,
|
|
14807
|
+
videomailNinjaFormPlugin: null == (_this_options_versions = this.options.versions) ? void 0 : _this_options_versions.videomailNinjaFormPlugin
|
|
14808
|
+
}
|
|
14809
|
+
};
|
|
14810
|
+
yield client_default()(FormMethod.POST, url).query(queryParams).set("Timezone-Id", this.timezoneId).withCredentials().send(fullVideomailErrorData).timeout(this.options.timeouts.connection);
|
|
14811
|
+
} catch (exc) {
|
|
14812
|
+
console.error(exc);
|
|
14813
|
+
}
|
|
14814
|
+
}).call(this);
|
|
14762
14815
|
}
|
|
14763
|
-
|
|
14764
|
-
|
|
14765
|
-
|
|
14766
|
-
|
|
14767
|
-
|
|
14768
|
-
|
|
14769
|
-
|
|
14770
|
-
|
|
14771
|
-
|
|
14772
|
-
|
|
14816
|
+
post(videomail) {
|
|
14817
|
+
return resource_async_to_generator(function*() {
|
|
14818
|
+
const newVideomail = this.applyDefaultValues(videomail);
|
|
14819
|
+
newVideomail[constants.VERSION_LABEL] = package_namespaceObject.rE;
|
|
14820
|
+
try {
|
|
14821
|
+
let res;
|
|
14822
|
+
if (this.options.callbacks.adjustFormDataBeforePosting) {
|
|
14823
|
+
const adjustedVideomail = this.options.callbacks.adjustFormDataBeforePosting(newVideomail);
|
|
14824
|
+
res = yield this.write(FormMethod.POST, adjustedVideomail);
|
|
14825
|
+
} else res = yield this.write(FormMethod.POST, newVideomail);
|
|
14826
|
+
return res;
|
|
14827
|
+
} catch (exc) {
|
|
14773
14828
|
throw error_createError({
|
|
14774
|
-
|
|
14829
|
+
exc: findOriginalExc(exc),
|
|
14775
14830
|
options: this.options
|
|
14776
14831
|
});
|
|
14777
|
-
|
|
14778
|
-
|
|
14779
|
-
|
|
14780
|
-
|
|
14781
|
-
|
|
14782
|
-
|
|
14783
|
-
|
|
14784
|
-
|
|
14785
|
-
|
|
14786
|
-
|
|
14832
|
+
}
|
|
14833
|
+
}).call(this);
|
|
14834
|
+
}
|
|
14835
|
+
put(videomail) {
|
|
14836
|
+
return resource_async_to_generator(function*() {
|
|
14837
|
+
return yield this.write(FormMethod.PUT, videomail);
|
|
14838
|
+
}).call(this);
|
|
14839
|
+
}
|
|
14840
|
+
form(formData, url) {
|
|
14841
|
+
return resource_async_to_generator(function*() {
|
|
14842
|
+
let formType;
|
|
14843
|
+
switch(this.options.enctype){
|
|
14844
|
+
case constants["public"].ENC_TYPE_APP_JSON:
|
|
14845
|
+
formType = "json";
|
|
14846
|
+
break;
|
|
14847
|
+
case constants["public"].ENC_TYPE_FORM:
|
|
14848
|
+
formType = "form";
|
|
14849
|
+
break;
|
|
14850
|
+
default:
|
|
14851
|
+
throw error_createError({
|
|
14852
|
+
err: new Error(`Invalid enctype given: ${this.options.enctype}`),
|
|
14853
|
+
options: this.options
|
|
14854
|
+
});
|
|
14855
|
+
}
|
|
14856
|
+
try {
|
|
14857
|
+
const res = yield client_default().post(url).type(formType).set("Timezone-Id", this.timezoneId).send(formData).timeout(this.options.timeouts.connection);
|
|
14858
|
+
return res;
|
|
14859
|
+
} catch (exc) {
|
|
14860
|
+
throw error_createError({
|
|
14861
|
+
exc: findOriginalExc(exc),
|
|
14862
|
+
options: this.options
|
|
14863
|
+
});
|
|
14864
|
+
}
|
|
14865
|
+
}).call(this);
|
|
14787
14866
|
}
|
|
14788
14867
|
constructor(options){
|
|
14789
14868
|
resource_define_property(this, "options", void 0);
|
|
@@ -14943,8 +15022,7 @@ var __webpack_exports__ = {};
|
|
|
14943
15022
|
this.stack.push(`[${level}] ${line}`);
|
|
14944
15023
|
return line;
|
|
14945
15024
|
}
|
|
14946
|
-
debug() {
|
|
14947
|
-
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
|
15025
|
+
debug(...args) {
|
|
14948
15026
|
const output = this.lifo("debug", args);
|
|
14949
15027
|
if (this.options.verbose) if (this.browser.isFirefox()) this.logger.debug(output);
|
|
14950
15028
|
else if (this.logger.groupCollapsed) {
|
|
@@ -14954,16 +15032,13 @@ var __webpack_exports__ = {};
|
|
|
14954
15032
|
} else if (this.logger.debug) this.logger.debug(output);
|
|
14955
15033
|
else console.log(output);
|
|
14956
15034
|
}
|
|
14957
|
-
error() {
|
|
14958
|
-
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
|
15035
|
+
error(...args) {
|
|
14959
15036
|
this.logger.error(this.lifo("error", args));
|
|
14960
15037
|
}
|
|
14961
|
-
warn() {
|
|
14962
|
-
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
|
15038
|
+
warn(...args) {
|
|
14963
15039
|
this.logger.warn(this.lifo("warn", args));
|
|
14964
15040
|
}
|
|
14965
|
-
info() {
|
|
14966
|
-
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
|
15041
|
+
info(...args) {
|
|
14967
15042
|
this.logger.info(this.lifo("info", args));
|
|
14968
15043
|
}
|
|
14969
15044
|
getLines() {
|
|
@@ -14985,8 +15060,7 @@ var __webpack_exports__ = {};
|
|
|
14985
15060
|
return "test" === isTest_process.env.ENVIRON;
|
|
14986
15061
|
}
|
|
14987
15062
|
const util_isTest = isTest;
|
|
14988
|
-
function mergeWithDefaultOptions_mergeWithDefaultOptions() {
|
|
14989
|
-
let options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
|
|
15063
|
+
function mergeWithDefaultOptions_mergeWithDefaultOptions(options = {}) {
|
|
14990
15064
|
const newOptions = cjs_default()(src_options, options, {
|
|
14991
15065
|
arrayMerge (_destination, source) {
|
|
14992
15066
|
return source;
|
|
@@ -14998,19 +15072,19 @@ var __webpack_exports__ = {};
|
|
|
14998
15072
|
return newOptions;
|
|
14999
15073
|
}
|
|
15000
15074
|
const mergeWithDefaultOptions = mergeWithDefaultOptions_mergeWithDefaultOptions;
|
|
15001
|
-
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
|
|
15075
|
+
var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
|
|
15002
15076
|
var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
|
|
15003
|
-
var styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
|
|
15077
|
+
var styleDomAPI = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
|
|
15004
15078
|
var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
|
|
15005
|
-
var insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
|
|
15079
|
+
var insertBySelector = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
|
|
15006
15080
|
var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
|
|
15007
|
-
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
|
|
15081
|
+
var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
|
|
15008
15082
|
var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
|
|
15009
|
-
var insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
|
|
15083
|
+
var insertStyleElement = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
|
|
15010
15084
|
var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
|
|
15011
|
-
var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
|
|
15085
|
+
var styleTagTransform = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
|
|
15012
15086
|
var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
|
|
15013
|
-
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");
|
|
15087
|
+
var main = __webpack_require__("./node_modules/@rslib/core/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");
|
|
15014
15088
|
var main_options = {};
|
|
15015
15089
|
main_options.styleTagTransform = styleTagTransform_default();
|
|
15016
15090
|
main_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
@@ -15089,7 +15163,7 @@ var __webpack_exports__ = {};
|
|
|
15089
15163
|
else obj[key] = value;
|
|
15090
15164
|
return obj;
|
|
15091
15165
|
}
|
|
15092
|
-
class Buttons extends
|
|
15166
|
+
class Buttons extends Despot {
|
|
15093
15167
|
replaceClickHandler(element, clickHandler) {
|
|
15094
15168
|
const wrappedClickHandler = (ev)=>{
|
|
15095
15169
|
ev.preventDefault();
|
|
@@ -15135,8 +15209,7 @@ var __webpack_exports__ = {};
|
|
|
15135
15209
|
html_disableElement(radioButtonElement);
|
|
15136
15210
|
return radioButtonElement;
|
|
15137
15211
|
}
|
|
15138
|
-
makeButton(buttonClass, text, clickHandler, show, id, type, selector) {
|
|
15139
|
-
let disabled = arguments.length > 7 && void 0 !== arguments[7] ? arguments[7] : true;
|
|
15212
|
+
makeButton(buttonClass, text, clickHandler, show, id, type, selector, disabled = true) {
|
|
15140
15213
|
let buttonElement;
|
|
15141
15214
|
if (id) buttonElement = document.querySelector(`#${id}`);
|
|
15142
15215
|
else if (selector) buttonElement = document.querySelector(selector);
|
|
@@ -15464,13 +15537,12 @@ var __webpack_exports__ = {};
|
|
|
15464
15537
|
if (this.built) {
|
|
15465
15538
|
this.reset();
|
|
15466
15539
|
this.options.logger.debug("Buttons: unload()");
|
|
15467
|
-
|
|
15540
|
+
Despot.removeAllListeners();
|
|
15468
15541
|
this.hide();
|
|
15469
15542
|
this.built = false;
|
|
15470
15543
|
}
|
|
15471
15544
|
}
|
|
15472
|
-
hide() {
|
|
15473
|
-
let deep = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false;
|
|
15545
|
+
hide(deep = false) {
|
|
15474
15546
|
html_hideElement(this.buttonsElement);
|
|
15475
15547
|
if (deep) {
|
|
15476
15548
|
html_hideElement(this.recordButton);
|
|
@@ -15591,7 +15663,7 @@ var __webpack_exports__ = {};
|
|
|
15591
15663
|
else obj[key] = value;
|
|
15592
15664
|
return obj;
|
|
15593
15665
|
}
|
|
15594
|
-
class FacingMode extends
|
|
15666
|
+
class FacingMode extends Despot {
|
|
15595
15667
|
initEvents() {
|
|
15596
15668
|
this.on("ERROR", ()=>{
|
|
15597
15669
|
this.hide();
|
|
@@ -15886,7 +15958,7 @@ var __webpack_exports__ = {};
|
|
|
15886
15958
|
else obj[key] = value;
|
|
15887
15959
|
return obj;
|
|
15888
15960
|
}
|
|
15889
|
-
class RecorderInsides extends
|
|
15961
|
+
class RecorderInsides extends Despot {
|
|
15890
15962
|
startRecording() {
|
|
15891
15963
|
this.recordTimer.start();
|
|
15892
15964
|
}
|
|
@@ -16002,9 +16074,8 @@ var __webpack_exports__ = {};
|
|
|
16002
16074
|
return obj;
|
|
16003
16075
|
}
|
|
16004
16076
|
const NOTIFIER_MESSAGE_ID = "notifierMessage";
|
|
16005
|
-
class Notifier extends
|
|
16006
|
-
onStopping() {
|
|
16007
|
-
let limitReached = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false;
|
|
16077
|
+
class Notifier extends Despot {
|
|
16078
|
+
onStopping(limitReached = false) {
|
|
16008
16079
|
let lead = "";
|
|
16009
16080
|
this.visuals.beginWaiting();
|
|
16010
16081
|
if (limitReached) {
|
|
@@ -16182,8 +16253,7 @@ var __webpack_exports__ = {};
|
|
|
16182
16253
|
isBuilt() {
|
|
16183
16254
|
return this.built;
|
|
16184
16255
|
}
|
|
16185
|
-
notify(message, explanation) {
|
|
16186
|
-
let notifyOptions = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
|
|
16256
|
+
notify(message, explanation, notifyOptions = {}) {
|
|
16187
16257
|
const params = [
|
|
16188
16258
|
message,
|
|
16189
16259
|
explanation
|
|
@@ -16496,7 +16566,7 @@ var __webpack_exports__ = {};
|
|
|
16496
16566
|
return obj;
|
|
16497
16567
|
}
|
|
16498
16568
|
const EVENT_ASCII = "|—O—|";
|
|
16499
|
-
class UserMedia extends
|
|
16569
|
+
class UserMedia extends Despot {
|
|
16500
16570
|
attachMediaStream(stream) {
|
|
16501
16571
|
this.currentVisualStream = stream;
|
|
16502
16572
|
if (this.rawVisualUserMedia) this.rawVisualUserMedia.srcObject = stream;
|
|
@@ -16544,7 +16614,7 @@ var __webpack_exports__ = {};
|
|
|
16544
16614
|
}
|
|
16545
16615
|
audioRecord(audioCallback) {
|
|
16546
16616
|
var _this_audioRecorder;
|
|
16547
|
-
|
|
16617
|
+
Despot.removeListener("SENDING_FIRST_FRAME");
|
|
16548
16618
|
null == (_this_audioRecorder = this.audioRecorder) || _this_audioRecorder.record(audioCallback);
|
|
16549
16619
|
}
|
|
16550
16620
|
init(localMediaStream, videoCallback, audioCallback, endedEarlyCallback, switchingFacingMode) {
|
|
@@ -16560,7 +16630,7 @@ var __webpack_exports__ = {};
|
|
|
16560
16630
|
var _this_rawVisualUserMedia, _this_rawVisualUserMedia1;
|
|
16561
16631
|
this.options.logger.debug("UserMedia: unloadAllEventListeners()");
|
|
16562
16632
|
this.unloadRemainingEventListeners();
|
|
16563
|
-
|
|
16633
|
+
Despot.removeListener("SENDING_FIRST_FRAME");
|
|
16564
16634
|
null == (_this_rawVisualUserMedia = this.rawVisualUserMedia) || _this_rawVisualUserMedia.removeEventListener("play", onPlay);
|
|
16565
16635
|
null == (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) || _this_rawVisualUserMedia1.removeEventListener("loadedmetadata", onLoadedMetaData);
|
|
16566
16636
|
};
|
|
@@ -16803,7 +16873,7 @@ var __webpack_exports__ = {};
|
|
|
16803
16873
|
return obj;
|
|
16804
16874
|
}
|
|
16805
16875
|
const PIPE_SYMBOL = "°º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸ ";
|
|
16806
|
-
class Recorder extends
|
|
16876
|
+
class Recorder extends Despot {
|
|
16807
16877
|
writeStream(buffer, opts) {
|
|
16808
16878
|
if (this.stream) if (this.stream.destroyed) {
|
|
16809
16879
|
this.stopPings();
|
|
@@ -17075,7 +17145,7 @@ var __webpack_exports__ = {};
|
|
|
17075
17145
|
this.clearUserMediaTimeout();
|
|
17076
17146
|
const characteristics = null == (_this_userMedia = this.userMedia) ? void 0 : _this_userMedia.getCharacteristics();
|
|
17077
17147
|
this.options.logger.debug(`Recorder: userMediaErrorCallback(), name: ${err.name}, message: ${err.message} and Webcam characteristics: ${characteristics ? util_pretty(characteristics) : "none"}`);
|
|
17078
|
-
const errorListeners =
|
|
17148
|
+
const errorListeners = Despot.getListeners("ERROR");
|
|
17079
17149
|
if (null == errorListeners ? void 0 : errorListeners.length) {
|
|
17080
17150
|
if (err.name !== error_VideomailError.MEDIA_DEVICE_NOT_SUPPORTED) {
|
|
17081
17151
|
const videomailError = error_createError({
|
|
@@ -17178,7 +17248,7 @@ var __webpack_exports__ = {};
|
|
|
17178
17248
|
this.clearUserMediaTimeout();
|
|
17179
17249
|
this.options.logger.debug("Recorder: failed to load genuine user media");
|
|
17180
17250
|
this.userMediaLoading = false;
|
|
17181
|
-
const errorListeners =
|
|
17251
|
+
const errorListeners = Despot.getListeners("ERROR");
|
|
17182
17252
|
if (null == errorListeners ? void 0 : errorListeners.length) this.emit("ERROR", {
|
|
17183
17253
|
exc
|
|
17184
17254
|
});
|
|
@@ -17738,7 +17808,7 @@ var __webpack_exports__ = {};
|
|
|
17738
17808
|
else obj[key] = value;
|
|
17739
17809
|
return obj;
|
|
17740
17810
|
}
|
|
17741
|
-
class Replay extends
|
|
17811
|
+
class Replay extends Despot {
|
|
17742
17812
|
buildElement(replayParentElement) {
|
|
17743
17813
|
const videoSelector = `video.${this.options.selectors.replayClass}`;
|
|
17744
17814
|
this.replayElement = replayParentElement.querySelector(videoSelector);
|
|
@@ -17788,8 +17858,7 @@ var __webpack_exports__ = {};
|
|
|
17788
17858
|
if (height > 0) this.replayElement.style.height = `${height}px`;
|
|
17789
17859
|
else this.replayElement.style.height = "auto";
|
|
17790
17860
|
}
|
|
17791
|
-
setVideomail(newVideomail) {
|
|
17792
|
-
let playerOnly = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : false;
|
|
17861
|
+
setVideomail(newVideomail, playerOnly = false) {
|
|
17793
17862
|
var _this_videomail_recordingStats;
|
|
17794
17863
|
this.videomail = newVideomail;
|
|
17795
17864
|
if (this.videomail.mp4) this.setMp4Source(this.videomail.mp4);
|
|
@@ -17806,8 +17875,7 @@ var __webpack_exports__ = {};
|
|
|
17806
17875
|
const hasAudio = void 0 !== sampleRate ? sampleRate > 0 : false;
|
|
17807
17876
|
this.show(width, height, hasAudio, playerOnly);
|
|
17808
17877
|
}
|
|
17809
|
-
show(videomailWidth, videomailHeight, hasAudio) {
|
|
17810
|
-
let playerOnly = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : false;
|
|
17878
|
+
show(videomailWidth, videomailHeight, hasAudio, playerOnly = false) {
|
|
17811
17879
|
var _this_videomail, _this_videomail1, _this_videomail2;
|
|
17812
17880
|
if (!this.replayElement) return;
|
|
17813
17881
|
if (this.isShown()) return;
|
|
@@ -17889,7 +17957,7 @@ var __webpack_exports__ = {};
|
|
|
17889
17957
|
}
|
|
17890
17958
|
unload(params) {
|
|
17891
17959
|
this.options.logger.debug("Replay: unload()");
|
|
17892
|
-
|
|
17960
|
+
Despot.removeAllListeners();
|
|
17893
17961
|
if (null == params ? void 0 : params.startingOver) this.hide();
|
|
17894
17962
|
else {
|
|
17895
17963
|
var _this_replayElement;
|
|
@@ -18009,7 +18077,7 @@ var __webpack_exports__ = {};
|
|
|
18009
18077
|
else obj[key] = value;
|
|
18010
18078
|
return obj;
|
|
18011
18079
|
}
|
|
18012
|
-
class Visuals extends
|
|
18080
|
+
class Visuals extends Despot {
|
|
18013
18081
|
buildNoScriptTag() {
|
|
18014
18082
|
let noScriptElement = this.container.querySelector("noscript");
|
|
18015
18083
|
if (noScriptElement) {
|
|
@@ -18019,8 +18087,7 @@ var __webpack_exports__ = {};
|
|
|
18019
18087
|
null == (_this_visualsElement = this.visualsElement) || _this_visualsElement.appendChild(noScriptElement);
|
|
18020
18088
|
}
|
|
18021
18089
|
}
|
|
18022
|
-
buildChildren() {
|
|
18023
|
-
let playerOnly = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false, visualsElement = arguments.length > 1 ? arguments[1] : void 0;
|
|
18090
|
+
buildChildren(playerOnly = false, visualsElement) {
|
|
18024
18091
|
if (!visualsElement) throw new Error("Unable to build children without a visuals element");
|
|
18025
18092
|
this.options.logger.debug(`Visuals: buildChildren (playerOnly = ${playerOnly}, visualsElement="${util_pretty(visualsElement)}"})`);
|
|
18026
18093
|
this.buildNoScriptTag();
|
|
@@ -18030,8 +18097,7 @@ var __webpack_exports__ = {};
|
|
|
18030
18097
|
}
|
|
18031
18098
|
this.replay.build(visualsElement);
|
|
18032
18099
|
}
|
|
18033
|
-
initEvents() {
|
|
18034
|
-
let playerOnly = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false;
|
|
18100
|
+
initEvents(playerOnly = false) {
|
|
18035
18101
|
if (!playerOnly) {
|
|
18036
18102
|
this.options.logger.debug(`Visuals: initEvents (playerOnly = ${playerOnly})`);
|
|
18037
18103
|
this.on("USER_MEDIA_READY", ()=>{
|
|
@@ -18079,8 +18145,7 @@ var __webpack_exports__ = {};
|
|
|
18079
18145
|
isCountingDown() {
|
|
18080
18146
|
return this.recorderInsides.isCountingDown();
|
|
18081
18147
|
}
|
|
18082
|
-
build() {
|
|
18083
|
-
let playerOnly = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false, parentElement = arguments.length > 1 ? arguments[1] : void 0;
|
|
18148
|
+
build(playerOnly = false, parentElement) {
|
|
18084
18149
|
const parentElementInfo = parentElement ? `, parentElement="${util_pretty(parentElement)}"` : "";
|
|
18085
18150
|
this.options.logger.debug(`Visuals: build (playerOnly = ${playerOnly}${parentElementInfo})`);
|
|
18086
18151
|
if (parentElement) this.visualsElement = parentElement.querySelector(`.${this.options.selectors.visualsClass}`);
|
|
@@ -18120,8 +18185,7 @@ var __webpack_exports__ = {};
|
|
|
18120
18185
|
this.recorder.stop(params);
|
|
18121
18186
|
this.recorderInsides.hidePause();
|
|
18122
18187
|
}
|
|
18123
|
-
back() {
|
|
18124
|
-
let keepHidden = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false, cb = arguments.length > 1 ? arguments[1] : void 0;
|
|
18188
|
+
back(keepHidden = false, cb) {
|
|
18125
18189
|
this.options.logger.debug(`Visuals: back(keepHidden = ${keepHidden})`);
|
|
18126
18190
|
this.replay.hide();
|
|
18127
18191
|
this.notifier.hide();
|
|
@@ -18229,8 +18293,7 @@ var __webpack_exports__ = {};
|
|
|
18229
18293
|
getRecorderWidth(responsive) {
|
|
18230
18294
|
return this.recorder.getRecorderWidth(responsive);
|
|
18231
18295
|
}
|
|
18232
|
-
getRecorderHeight(responsive) {
|
|
18233
|
-
let useBoundingClientRect = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : false;
|
|
18296
|
+
getRecorderHeight(responsive, useBoundingClientRect = false) {
|
|
18234
18297
|
return this.recorder.getRecorderHeight(responsive, useBoundingClientRect);
|
|
18235
18298
|
}
|
|
18236
18299
|
limitWidth(width) {
|
|
@@ -18289,6 +18352,32 @@ var __webpack_exports__ = {};
|
|
|
18289
18352
|
}
|
|
18290
18353
|
}
|
|
18291
18354
|
const wrappers_visuals = Visuals;
|
|
18355
|
+
function container_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
18356
|
+
try {
|
|
18357
|
+
var info = gen[key](arg);
|
|
18358
|
+
var value = info.value;
|
|
18359
|
+
} catch (error) {
|
|
18360
|
+
reject(error);
|
|
18361
|
+
return;
|
|
18362
|
+
}
|
|
18363
|
+
if (info.done) resolve(value);
|
|
18364
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
18365
|
+
}
|
|
18366
|
+
function container_async_to_generator(fn) {
|
|
18367
|
+
return function() {
|
|
18368
|
+
var self1 = this, args = arguments;
|
|
18369
|
+
return new Promise(function(resolve, reject) {
|
|
18370
|
+
var gen = fn.apply(self1, args);
|
|
18371
|
+
function _next(value) {
|
|
18372
|
+
container_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
18373
|
+
}
|
|
18374
|
+
function _throw(err) {
|
|
18375
|
+
container_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
18376
|
+
}
|
|
18377
|
+
_next(void 0);
|
|
18378
|
+
});
|
|
18379
|
+
};
|
|
18380
|
+
}
|
|
18292
18381
|
function container_define_property(obj, key, value) {
|
|
18293
18382
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
18294
18383
|
value: value,
|
|
@@ -18299,9 +18388,8 @@ var __webpack_exports__ = {};
|
|
|
18299
18388
|
else obj[key] = value;
|
|
18300
18389
|
return obj;
|
|
18301
18390
|
}
|
|
18302
|
-
class Container extends
|
|
18303
|
-
buildChildren() {
|
|
18304
|
-
let playerOnly = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false, parentElement = arguments.length > 1 ? arguments[1] : void 0;
|
|
18391
|
+
class Container extends Despot {
|
|
18392
|
+
buildChildren(playerOnly = false, parentElement) {
|
|
18305
18393
|
const parentElementInfo = parentElement ? `, parentElement="${util_pretty(parentElement)}"` : "";
|
|
18306
18394
|
this.options.logger.debug(`Container: buildChildren (playerOnly = ${playerOnly}${parentElementInfo})`);
|
|
18307
18395
|
if (this.containerElement) this.containerElement.classList.add(this.options.selectors.containerClass);
|
|
@@ -18376,8 +18464,7 @@ var __webpack_exports__ = {};
|
|
|
18376
18464
|
if (this.options.displayErrors && params.err) this.visuals.error(params.err);
|
|
18377
18465
|
else this.visuals.reset();
|
|
18378
18466
|
}
|
|
18379
|
-
initEvents() {
|
|
18380
|
-
let playerOnly = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false;
|
|
18467
|
+
initEvents(playerOnly = false) {
|
|
18381
18468
|
this.options.logger.debug(`Container: initEvents (playerOnly = ${playerOnly})`);
|
|
18382
18469
|
if (this.options.enableAutoUnload) window.addEventListener("beforeunload", (e)=>{
|
|
18383
18470
|
this.unload({
|
|
@@ -18443,21 +18530,23 @@ var __webpack_exports__ = {};
|
|
|
18443
18530
|
hideMySelf() {
|
|
18444
18531
|
html_hideElement(this.containerElement);
|
|
18445
18532
|
}
|
|
18446
|
-
|
|
18447
|
-
|
|
18448
|
-
|
|
18449
|
-
|
|
18450
|
-
|
|
18451
|
-
|
|
18452
|
-
|
|
18453
|
-
|
|
18454
|
-
|
|
18455
|
-
|
|
18456
|
-
|
|
18457
|
-
|
|
18458
|
-
|
|
18459
|
-
|
|
18460
|
-
|
|
18533
|
+
submitVideomail(formInputs, method) {
|
|
18534
|
+
return container_async_to_generator(function*() {
|
|
18535
|
+
var _this_form;
|
|
18536
|
+
const videomailFormData = null == (_this_form = this.form) ? void 0 : _this_form.transformFormData(formInputs);
|
|
18537
|
+
if (!videomailFormData) throw new Error("No videomail form data defined");
|
|
18538
|
+
if (method === FormMethod.POST) {
|
|
18539
|
+
videomailFormData.recordingStats = this.visuals.getRecordingStats();
|
|
18540
|
+
videomailFormData.width = this.visuals.getRecorderWidth(true);
|
|
18541
|
+
videomailFormData.height = this.visuals.getRecorderHeight(true);
|
|
18542
|
+
return yield this.resource.post(videomailFormData);
|
|
18543
|
+
}
|
|
18544
|
+
if (method === FormMethod.PUT) return yield this.resource.put(videomailFormData);
|
|
18545
|
+
throw error_createError({
|
|
18546
|
+
message: `Unsupported form method ${method}, unable to submit videomail.`,
|
|
18547
|
+
options: this.options
|
|
18548
|
+
});
|
|
18549
|
+
}).call(this);
|
|
18461
18550
|
}
|
|
18462
18551
|
limitWidth(width) {
|
|
18463
18552
|
if (!this.containerElement) return;
|
|
@@ -18508,7 +18597,7 @@ var __webpack_exports__ = {};
|
|
|
18508
18597
|
exc
|
|
18509
18598
|
});
|
|
18510
18599
|
} finally{
|
|
18511
|
-
|
|
18600
|
+
Despot.removeAllListeners();
|
|
18512
18601
|
this.built = this.submitted = false;
|
|
18513
18602
|
}
|
|
18514
18603
|
}
|
|
@@ -18575,8 +18664,7 @@ var __webpack_exports__ = {};
|
|
|
18575
18664
|
pause(params) {
|
|
18576
18665
|
this.visuals.pause(params);
|
|
18577
18666
|
}
|
|
18578
|
-
validate(event) {
|
|
18579
|
-
let force = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : false;
|
|
18667
|
+
validate(event, force = false) {
|
|
18580
18668
|
let runValidation = true;
|
|
18581
18669
|
let valid = true;
|
|
18582
18670
|
if (this.built) if (this.options.enableAutoValidation) {
|
|
@@ -18678,46 +18766,48 @@ var __webpack_exports__ = {};
|
|
|
18678
18766
|
buttonsAreReady() {
|
|
18679
18767
|
return this.buttons.isReady();
|
|
18680
18768
|
}
|
|
18681
|
-
|
|
18682
|
-
|
|
18683
|
-
|
|
18684
|
-
|
|
18685
|
-
|
|
18686
|
-
|
|
18687
|
-
|
|
18688
|
-
|
|
18689
|
-
|
|
18690
|
-
|
|
18691
|
-
|
|
18692
|
-
|
|
18693
|
-
|
|
18694
|
-
|
|
18695
|
-
|
|
18696
|
-
|
|
18697
|
-
|
|
18698
|
-
|
|
18699
|
-
|
|
18769
|
+
submitAll(formData, method, url) {
|
|
18770
|
+
return container_async_to_generator(function*() {
|
|
18771
|
+
let response;
|
|
18772
|
+
try {
|
|
18773
|
+
const hasVideomailKey = Boolean(formData[this.options.selectors.keyInputName]);
|
|
18774
|
+
if (!hasVideomailKey && !this.options.enableAutoSubmission) return;
|
|
18775
|
+
const output = [
|
|
18776
|
+
method,
|
|
18777
|
+
url
|
|
18778
|
+
].filter(Boolean).join(": ");
|
|
18779
|
+
this.options.logger.debug(`Container: submitAll(${output})`);
|
|
18780
|
+
this.beginWaiting();
|
|
18781
|
+
if (this.options.disableFormWhenSubmitting) this.disableForm(true);
|
|
18782
|
+
this.emit("SUBMITTING");
|
|
18783
|
+
if (hasVideomailKey) {
|
|
18784
|
+
response = yield this.submitVideomail(formData, method);
|
|
18785
|
+
this.submitted = true;
|
|
18786
|
+
this.emit("SUBMITTED", {
|
|
18787
|
+
videomail: response.body.videomail,
|
|
18788
|
+
response
|
|
18789
|
+
});
|
|
18790
|
+
} else {
|
|
18791
|
+
response = yield this.resource.form(formData, url);
|
|
18792
|
+
this.submitted = true;
|
|
18793
|
+
this.emit("SUBMITTED", {
|
|
18794
|
+
videomail: response.body,
|
|
18795
|
+
response
|
|
18796
|
+
});
|
|
18797
|
+
}
|
|
18798
|
+
} catch (exc) {
|
|
18799
|
+
const err = error_createError({
|
|
18800
|
+
exc,
|
|
18801
|
+
options: this.options
|
|
18700
18802
|
});
|
|
18701
|
-
|
|
18702
|
-
|
|
18703
|
-
this.submitted = true;
|
|
18704
|
-
this.emit("SUBMITTED", {
|
|
18705
|
-
videomail: response.body,
|
|
18706
|
-
response
|
|
18803
|
+
this.emit("ERROR", {
|
|
18804
|
+
err
|
|
18707
18805
|
});
|
|
18806
|
+
} finally{
|
|
18807
|
+
if ((null == response ? void 0 : response.text) && "text/html" === response.type) document.body.innerHTML = response.text;
|
|
18808
|
+
this.endWaiting();
|
|
18708
18809
|
}
|
|
18709
|
-
}
|
|
18710
|
-
const err = error_createError({
|
|
18711
|
-
exc,
|
|
18712
|
-
options: this.options
|
|
18713
|
-
});
|
|
18714
|
-
this.emit("ERROR", {
|
|
18715
|
-
err
|
|
18716
|
-
});
|
|
18717
|
-
} finally{
|
|
18718
|
-
if ((null == response ? void 0 : response.text) && "text/html" === response.type) document.body.innerHTML = response.text;
|
|
18719
|
-
this.endWaiting();
|
|
18720
|
-
}
|
|
18810
|
+
}).call(this);
|
|
18721
18811
|
}
|
|
18722
18812
|
isBuilt() {
|
|
18723
18813
|
return this.built;
|
|
@@ -18753,13 +18843,15 @@ var __webpack_exports__ = {};
|
|
|
18753
18843
|
this.options = setAudioEnabled(false, this.options);
|
|
18754
18844
|
this.emit("DISABLING_AUDIO");
|
|
18755
18845
|
}
|
|
18756
|
-
|
|
18757
|
-
|
|
18758
|
-
|
|
18759
|
-
|
|
18760
|
-
|
|
18761
|
-
|
|
18762
|
-
|
|
18846
|
+
submit() {
|
|
18847
|
+
return container_async_to_generator(function*() {
|
|
18848
|
+
this.options.logger.debug("Container: submit()");
|
|
18849
|
+
if (this.lastValidation) {
|
|
18850
|
+
var _this_form;
|
|
18851
|
+
return yield null == (_this_form = this.form) ? void 0 : _this_form.doTheSubmit();
|
|
18852
|
+
}
|
|
18853
|
+
return false;
|
|
18854
|
+
}).call(this);
|
|
18763
18855
|
}
|
|
18764
18856
|
isCountingDown() {
|
|
18765
18857
|
return this.visuals.isCountingDown();
|
|
@@ -18787,6 +18879,32 @@ var __webpack_exports__ = {};
|
|
|
18787
18879
|
}
|
|
18788
18880
|
}
|
|
18789
18881
|
const wrappers_container = Container;
|
|
18882
|
+
function client_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
18883
|
+
try {
|
|
18884
|
+
var info = gen[key](arg);
|
|
18885
|
+
var value = info.value;
|
|
18886
|
+
} catch (error) {
|
|
18887
|
+
reject(error);
|
|
18888
|
+
return;
|
|
18889
|
+
}
|
|
18890
|
+
if (info.done) resolve(value);
|
|
18891
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
18892
|
+
}
|
|
18893
|
+
function client_async_to_generator(fn) {
|
|
18894
|
+
return function() {
|
|
18895
|
+
var self1 = this, args = arguments;
|
|
18896
|
+
return new Promise(function(resolve, reject) {
|
|
18897
|
+
var gen = fn.apply(self1, args);
|
|
18898
|
+
function _next(value) {
|
|
18899
|
+
client_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
18900
|
+
}
|
|
18901
|
+
function _throw(err) {
|
|
18902
|
+
client_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
18903
|
+
}
|
|
18904
|
+
_next(void 0);
|
|
18905
|
+
});
|
|
18906
|
+
};
|
|
18907
|
+
}
|
|
18790
18908
|
function client_define_property(obj, key, value) {
|
|
18791
18909
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
18792
18910
|
value: value,
|
|
@@ -18797,7 +18915,7 @@ var __webpack_exports__ = {};
|
|
|
18797
18915
|
else obj[key] = value;
|
|
18798
18916
|
return obj;
|
|
18799
18917
|
}
|
|
18800
|
-
class VideomailClient extends
|
|
18918
|
+
class VideomailClient extends Despot {
|
|
18801
18919
|
validateOptions() {
|
|
18802
18920
|
const width = this.options.video.width;
|
|
18803
18921
|
if (void 0 !== width && width % 2 !== 0) throw error_createError({
|
|
@@ -18824,8 +18942,7 @@ var __webpack_exports__ = {};
|
|
|
18824
18942
|
this.unload(true);
|
|
18825
18943
|
this.container.startOver(params);
|
|
18826
18944
|
}
|
|
18827
|
-
unload() {
|
|
18828
|
-
let startingOver = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false;
|
|
18945
|
+
unload(startingOver = false) {
|
|
18829
18946
|
this.container.unload({
|
|
18830
18947
|
startingOver
|
|
18831
18948
|
});
|
|
@@ -18850,13 +18967,17 @@ var __webpack_exports__ = {};
|
|
|
18850
18967
|
hide() {
|
|
18851
18968
|
this.container.hide();
|
|
18852
18969
|
}
|
|
18853
|
-
|
|
18854
|
-
|
|
18855
|
-
|
|
18970
|
+
getByAlias(alias) {
|
|
18971
|
+
return client_async_to_generator(function*() {
|
|
18972
|
+
const resource = new src_resource(this.options);
|
|
18973
|
+
return yield resource.getByAlias(alias);
|
|
18974
|
+
}).call(this);
|
|
18856
18975
|
}
|
|
18857
|
-
|
|
18858
|
-
|
|
18859
|
-
|
|
18976
|
+
getByKey(key) {
|
|
18977
|
+
return client_async_to_generator(function*() {
|
|
18978
|
+
const resource = new src_resource(this.options);
|
|
18979
|
+
return yield resource.getByKey(key);
|
|
18980
|
+
}).call(this);
|
|
18860
18981
|
}
|
|
18861
18982
|
isDirty() {
|
|
18862
18983
|
return this.container.isDirty();
|
|
@@ -18879,7 +19000,7 @@ var __webpack_exports__ = {};
|
|
|
18879
19000
|
constructor(options = {}){
|
|
18880
19001
|
super("VideomailClient", mergeWithDefaultOptions(options)), client_define_property(this, "container", void 0);
|
|
18881
19002
|
this.validateOptions();
|
|
18882
|
-
|
|
19003
|
+
Despot.removeAllListeners();
|
|
18883
19004
|
this.container = new wrappers_container(this.options);
|
|
18884
19005
|
}
|
|
18885
19006
|
}
|