videomail-client 13.1.3 → 13.2.0

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.
@@ -1,14 +1,14 @@
1
1
  var __webpack_modules__ = {
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__) {
2
+ "./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[13].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[13].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[13].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 _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());
7
+ var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
8
+ var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
9
+ var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/api.js");
10
+ var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
11
+ var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
12
12
  ___CSS_LOADER_EXPORT___.push([
13
13
  module.id,
14
14
  `@keyframes blink {
@@ -10199,7 +10199,7 @@ var __webpack_modules__ = {
10199
10199
  "?aa23": function() {},
10200
10200
  "?9936": function() {},
10201
10201
  "?5f55": function() {},
10202
- "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module) {
10202
+ "./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/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module) {
10256
+ "./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/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module) {
10262
+ "./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/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module) {
10341
+ "./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/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module) {
10363
+ "./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/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module, __unused_webpack_exports, __webpack_require__) {
10373
+ "./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/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module) {
10381
+ "./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/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module) {
10418
+ "./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.3"
10667
+ rE: "13.2.0"
10668
10668
  };
10669
10669
  var defined = __webpack_require__("./node_modules/defined/index.js");
10670
10670
  var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
@@ -13961,12 +13961,12 @@ var __webpack_exports__ = {};
13961
13961
  else obj[key] = value;
13962
13962
  return obj;
13963
13963
  }
13964
- class HTTPVideomailError_HTTPVideomailError extends Error {
13964
+ class HTTPVideomailError extends Error {
13965
13965
  constructor(...args){
13966
13966
  super(...args), HTTPVideomailError_define_property(this, "code", void 0), HTTPVideomailError_define_property(this, "status", void 0), HTTPVideomailError_define_property(this, "explanation", void 0);
13967
13967
  }
13968
13968
  }
13969
- const HTTPVideomailError = HTTPVideomailError_HTTPVideomailError;
13969
+ const error_HTTPVideomailError = HTTPVideomailError;
13970
13970
  function VideomailError_define_property(obj, key, value) {
13971
13971
  if (key in obj) Object.defineProperty(obj, key, {
13972
13972
  value: value,
@@ -13977,7 +13977,7 @@ var __webpack_exports__ = {};
13977
13977
  else obj[key] = value;
13978
13978
  return obj;
13979
13979
  }
13980
- class VideomailError extends HTTPVideomailError {
13980
+ class VideomailError extends error_HTTPVideomailError {
13981
13981
  hasClass(name) {
13982
13982
  var _this_classList;
13983
13983
  return null == (_this_classList = this.classList) ? void 0 : _this_classList.includes(name);
@@ -14292,25 +14292,25 @@ var __webpack_exports__ = {};
14292
14292
  else obj[key] = value;
14293
14293
  return obj;
14294
14294
  }
14295
- class Despot_Despot {
14295
+ class Despot {
14296
14296
  emit(eventName, ...params) {
14297
14297
  const firstParam = params[0];
14298
14298
  const showParams = firstParam && ("object" != typeof firstParam || "object" == typeof firstParam && Object.keys(firstParam).filter(Boolean).length > 0);
14299
14299
  if (showParams) this.options.logger.debug(`${this.name} emits ${eventName} with ${util_pretty(params)}`);
14300
14300
  else this.options.logger.debug(`${this.name} emits ${eventName}`);
14301
14301
  try {
14302
- Despot_Despot.EMITTER.emit(eventName, ...params);
14302
+ Despot.EMITTER.emit(eventName, ...params);
14303
14303
  } catch (exc) {
14304
- if (exc instanceof error_VideomailError) Despot_Despot.EMITTER.emit("ERROR", {
14304
+ if (exc instanceof error_VideomailError) Despot.EMITTER.emit("ERROR", {
14305
14305
  err: exc
14306
14306
  });
14307
- else Despot_Despot.EMITTER.emit("ERROR", {
14307
+ else Despot.EMITTER.emit("ERROR", {
14308
14308
  exc
14309
14309
  });
14310
14310
  }
14311
14311
  }
14312
14312
  on(eventName, callback) {
14313
- return Despot_Despot.EMITTER.on(eventName, callback);
14313
+ return Despot.EMITTER.on(eventName, callback);
14314
14314
  }
14315
14315
  once(eventName, listener) {
14316
14316
  const callback = (...params)=>{
@@ -14321,13 +14321,13 @@ var __webpack_exports__ = {};
14321
14321
  return unbind;
14322
14322
  }
14323
14323
  static getListeners(eventName) {
14324
- return Despot_Despot.EMITTER.events[eventName];
14324
+ return Despot.EMITTER.events[eventName];
14325
14325
  }
14326
14326
  static removeListener(eventName) {
14327
- delete Despot_Despot.EMITTER.events[eventName];
14327
+ delete Despot.EMITTER.events[eventName];
14328
14328
  }
14329
14329
  static removeAllListeners() {
14330
- Despot_Despot.EMITTER.events = {};
14330
+ Despot.EMITTER.events = {};
14331
14331
  }
14332
14332
  constructor(name, options){
14333
14333
  Despot_define_property(this, "name", void 0);
@@ -14336,8 +14336,8 @@ var __webpack_exports__ = {};
14336
14336
  this.options = options;
14337
14337
  }
14338
14338
  }
14339
- Despot_define_property(Despot_Despot, "EMITTER", createNanoEvents());
14340
- const Despot = Despot_Despot;
14339
+ Despot_define_property(Despot, "EMITTER", createNanoEvents());
14340
+ const util_Despot = Despot;
14341
14341
  function getValidity(element) {
14342
14342
  const validity = "validity" in element ? element.validity : void 0;
14343
14343
  return validity;
@@ -14406,7 +14406,7 @@ var __webpack_exports__ = {};
14406
14406
  PUT: "put",
14407
14407
  GET: "get"
14408
14408
  };
14409
- class Form extends Despot {
14409
+ class Form extends util_Despot {
14410
14410
  getData() {
14411
14411
  return getFormData(this.formElement, {
14412
14412
  includeDisabled: true
@@ -14573,7 +14573,7 @@ var __webpack_exports__ = {};
14573
14573
  unload() {
14574
14574
  this.options.logger.debug("Form: unload()");
14575
14575
  this.removeAllInputListeners();
14576
- Despot.removeAllListeners();
14576
+ util_Despot.removeAllListeners();
14577
14577
  this.stopListeningToSubmitEvents();
14578
14578
  this.resetForm();
14579
14579
  }
@@ -14709,7 +14709,7 @@ var __webpack_exports__ = {};
14709
14709
  if ("error" in body) {
14710
14710
  const message = body.error.message;
14711
14711
  const cause = body.error.cause;
14712
- const error = new HTTPVideomailError(message, {
14712
+ const error = new error_HTTPVideomailError(message, {
14713
14713
  cause
14714
14714
  });
14715
14715
  if (body.error.name) error.name = body.error.name;
@@ -14822,6 +14822,7 @@ var __webpack_exports__ = {};
14822
14822
  return resource_async_to_generator(function*() {
14823
14823
  const newVideomail = this.applyDefaultValues(videomail);
14824
14824
  newVideomail[constants.VERSION_LABEL] = package_namespaceObject.rE;
14825
+ newVideomail.recordLocation = window.location.href;
14825
14826
  try {
14826
14827
  let res;
14827
14828
  if (this.options.callbacks.adjustFormDataBeforePosting) {
@@ -15020,7 +15021,7 @@ var __webpack_exports__ = {};
15020
15021
  else obj[key] = value;
15021
15022
  return obj;
15022
15023
  }
15023
- class CollectLogger_CollectLogger {
15024
+ class CollectLogger {
15024
15025
  lifo(level, parameters) {
15025
15026
  const line = parameters.join();
15026
15027
  if (this.stack.length > this.options.logStackSize) this.stack.pop();
@@ -15059,37 +15060,37 @@ var __webpack_exports__ = {};
15059
15060
  this.logger = options.logger;
15060
15061
  }
15061
15062
  }
15062
- const CollectLogger = CollectLogger_CollectLogger;
15063
+ const util_CollectLogger = CollectLogger;
15063
15064
  var isTest_process = __webpack_require__("./node_modules/process/browser.js");
15064
15065
  function isTest() {
15065
15066
  return "test" === isTest_process.env.ENVIRON;
15066
15067
  }
15067
15068
  const util_isTest = isTest;
15068
- function mergeWithDefaultOptions_mergeWithDefaultOptions(options = {}) {
15069
+ function mergeWithDefaultOptions(options = {}) {
15069
15070
  const newOptions = cjs_default()(src_options, options, {
15070
15071
  arrayMerge (_destination, source) {
15071
15072
  return source;
15072
15073
  }
15073
15074
  });
15074
- const collectLogger = new CollectLogger(newOptions);
15075
+ const collectLogger = new util_CollectLogger(newOptions);
15075
15076
  newOptions.logger = collectLogger;
15076
15077
  if (util_isTest()) newOptions.verbose = false;
15077
15078
  return newOptions;
15078
15079
  }
15079
- const mergeWithDefaultOptions = mergeWithDefaultOptions_mergeWithDefaultOptions;
15080
- var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
15080
+ const options_mergeWithDefaultOptions = mergeWithDefaultOptions;
15081
+ var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
15081
15082
  var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
15082
- var styleDomAPI = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
15083
+ var styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
15083
15084
  var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
15084
- var insertBySelector = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
15085
+ var insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
15085
15086
  var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
15086
- var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
15087
+ var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
15087
15088
  var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
15088
- var insertStyleElement = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
15089
+ var insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
15089
15090
  var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
15090
- var styleTagTransform = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
15091
+ var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
15091
15092
  var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
15092
- 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");
15093
+ var main = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[13].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[13].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[13].use[3]!./src/styles/main.styl");
15093
15094
  var main_options = {};
15094
15095
  main_options.styleTagTransform = styleTagTransform_default();
15095
15096
  main_options.setAttributes = setAttributesWithoutAttributes_default();
@@ -15110,7 +15111,7 @@ var __webpack_exports__ = {};
15110
15111
  return limitedHeight;
15111
15112
  }
15112
15113
  const dimensions_limitHeight = limitHeight;
15113
- function getOuterWidth_getOuterWidth(element) {
15114
+ function getOuterWidth(element) {
15114
15115
  let rect = element.getBoundingClientRect();
15115
15116
  let outerWidth = rect.right - rect.left;
15116
15117
  if (outerWidth < 1) {
@@ -15119,10 +15120,10 @@ var __webpack_exports__ = {};
15119
15120
  }
15120
15121
  return outerWidth;
15121
15122
  }
15122
- const getOuterWidth = getOuterWidth_getOuterWidth;
15123
+ const dimensions_getOuterWidth = getOuterWidth;
15123
15124
  function limitWidth(element, options, width) {
15124
15125
  let limitedWidth;
15125
- const outerWidth = getOuterWidth(element);
15126
+ const outerWidth = dimensions_getOuterWidth(element);
15126
15127
  limitedWidth = width && "number" == typeof width ? outerWidth > 0 && outerWidth < width ? outerWidth : width : outerWidth;
15127
15128
  if (Number.isInteger(limitedWidth) && limitedWidth < 1) throw error_createError({
15128
15129
  message: "Limited width cannot be less than 1!",
@@ -15168,7 +15169,7 @@ var __webpack_exports__ = {};
15168
15169
  else obj[key] = value;
15169
15170
  return obj;
15170
15171
  }
15171
- class Buttons extends Despot {
15172
+ class Buttons extends util_Despot {
15172
15173
  replaceClickHandler(element, clickHandler) {
15173
15174
  const wrappedClickHandler = (ev)=>{
15174
15175
  ev.preventDefault();
@@ -15542,7 +15543,7 @@ var __webpack_exports__ = {};
15542
15543
  if (this.built) {
15543
15544
  this.reset();
15544
15545
  this.options.logger.debug("Buttons: unload()");
15545
- Despot.removeAllListeners();
15546
+ util_Despot.removeAllListeners();
15546
15547
  this.hide();
15547
15548
  this.built = false;
15548
15549
  }
@@ -15572,12 +15573,12 @@ var __webpack_exports__ = {};
15572
15573
  }
15573
15574
  }
15574
15575
  const buttons = Buttons;
15575
- function isHidden_isHidden(element) {
15576
+ function isHidden(element) {
15576
15577
  if (!element) return true;
15577
15578
  const display = element.style.getPropertyValue("display");
15578
15579
  return display.includes("none");
15579
15580
  }
15580
- const isHidden = isHidden_isHidden;
15581
+ const html_isHidden = isHidden;
15581
15582
  function countdown_define_property(obj, key, value) {
15582
15583
  if (key in obj) Object.defineProperty(obj, key, {
15583
15584
  value: value,
@@ -15668,7 +15669,7 @@ var __webpack_exports__ = {};
15668
15669
  else obj[key] = value;
15669
15670
  return obj;
15670
15671
  }
15671
- class FacingMode extends Despot {
15672
+ class FacingMode extends util_Despot {
15672
15673
  initEvents() {
15673
15674
  this.on("ERROR", ()=>{
15674
15675
  this.hide();
@@ -15963,7 +15964,7 @@ var __webpack_exports__ = {};
15963
15964
  else obj[key] = value;
15964
15965
  return obj;
15965
15966
  }
15966
- class RecorderInsides extends Despot {
15967
+ class RecorderInsides extends util_Despot {
15967
15968
  startRecording() {
15968
15969
  this.recordTimer.start();
15969
15970
  }
@@ -16079,7 +16080,7 @@ var __webpack_exports__ = {};
16079
16080
  return obj;
16080
16081
  }
16081
16082
  const NOTIFIER_MESSAGE_ID = "notifierMessage";
16082
- class Notifier extends Despot {
16083
+ class Notifier extends util_Despot {
16083
16084
  onStopping(limitReached = false) {
16084
16085
  let lead = "";
16085
16086
  this.visuals.beginWaiting();
@@ -16253,7 +16254,7 @@ var __webpack_exports__ = {};
16253
16254
  }
16254
16255
  isVisible() {
16255
16256
  if (!this.built) return false;
16256
- return this.notifyElement && !isHidden(this.notifyElement);
16257
+ return this.notifyElement && !html_isHidden(this.notifyElement);
16257
16258
  }
16258
16259
  isBuilt() {
16259
16260
  return this.built;
@@ -16381,7 +16382,7 @@ var __webpack_exports__ = {};
16381
16382
  return minHeight;
16382
16383
  }
16383
16384
  const dimensions_figureMinHeight = figureMinHeight;
16384
- function getRatio_getRatio(options, videoHeight, videoWidth) {
16385
+ function getRatio(options, videoHeight, videoWidth) {
16385
16386
  let ratio = 1;
16386
16387
  const hasVideoDimensions = videoHeight && videoWidth;
16387
16388
  const desiredHeight = options.video.height;
@@ -16391,7 +16392,7 @@ var __webpack_exports__ = {};
16391
16392
  else if (hasVideoDimensions) ratio = videoHeight / videoWidth;
16392
16393
  return ratio;
16393
16394
  }
16394
- const getRatio = getRatio_getRatio;
16395
+ const dimensions_getRatio = getRatio;
16395
16396
  function calculateHeight(responsive, videoWidth, options, target, ratio, element) {
16396
16397
  let width = videoWidth;
16397
16398
  if (width < 1) throw error_createError({
@@ -16399,7 +16400,7 @@ var __webpack_exports__ = {};
16399
16400
  options
16400
16401
  });
16401
16402
  if (responsive && element) width = dimensions_limitWidth(element, options, width);
16402
- const chosenRatio = null != ratio ? ratio : getRatio(options, void 0, videoWidth);
16403
+ const chosenRatio = null != ratio ? ratio : dimensions_getRatio(options, void 0, videoWidth);
16403
16404
  const height = Math.round(width * chosenRatio);
16404
16405
  if (Number.isInteger(height) && height < 1) throw error_createError({
16405
16406
  message: "Just calculated a height less than 1 which is wrong.",
@@ -16415,7 +16416,7 @@ var __webpack_exports__ = {};
16415
16416
  message: `Height ${height} cannot be smaller than 1 when calculating width.`,
16416
16417
  options
16417
16418
  });
16418
- const chosenRatio = null != ratio ? ratio : getRatio(options, videoHeight);
16419
+ const chosenRatio = null != ratio ? ratio : dimensions_getRatio(options, videoHeight);
16419
16420
  const calculatedWidth = Math.round(height / chosenRatio);
16420
16421
  if (calculatedWidth < 1) throw error_createError({
16421
16422
  message: "Calculated width cannot be smaller than 1!",
@@ -16451,7 +16452,7 @@ var __webpack_exports__ = {};
16451
16452
  function getAudioContextClass() {
16452
16453
  return window.AudioContext;
16453
16454
  }
16454
- class AudioRecorder_AudioRecorder {
16455
+ class AudioRecorder {
16455
16456
  hasAudioContext() {
16456
16457
  return Boolean(getAudioContextClass()) && Boolean(this.getAudioContext());
16457
16458
  }
@@ -16531,7 +16532,7 @@ var __webpack_exports__ = {};
16531
16532
  this.userMedia = userMedia;
16532
16533
  }
16533
16534
  }
16534
- const AudioRecorder = AudioRecorder_AudioRecorder;
16535
+ const media_AudioRecorder = AudioRecorder;
16535
16536
  function getFirstVideoTrack(localMediaStream) {
16536
16537
  const videoTracks = localMediaStream.getVideoTracks();
16537
16538
  let videoTrack;
@@ -16571,7 +16572,7 @@ var __webpack_exports__ = {};
16571
16572
  return obj;
16572
16573
  }
16573
16574
  const EVENT_ASCII = "|—O—|";
16574
- class UserMedia extends Despot {
16575
+ class UserMedia extends util_Despot {
16575
16576
  attachMediaStream(stream) {
16576
16577
  this.currentVisualStream = stream;
16577
16578
  if (this.rawVisualUserMedia) this.rawVisualUserMedia.srcObject = stream;
@@ -16619,7 +16620,7 @@ var __webpack_exports__ = {};
16619
16620
  }
16620
16621
  audioRecord(audioCallback) {
16621
16622
  var _this_audioRecorder;
16622
- Despot.removeListener("SENDING_FIRST_FRAME");
16623
+ util_Despot.removeListener("SENDING_FIRST_FRAME");
16623
16624
  null == (_this_audioRecorder = this.audioRecorder) || _this_audioRecorder.record(audioCallback);
16624
16625
  }
16625
16626
  init(localMediaStream, videoCallback, audioCallback, endedEarlyCallback, switchingFacingMode) {
@@ -16630,12 +16631,12 @@ var __webpack_exports__ = {};
16630
16631
  this.onPlayReached = false;
16631
16632
  this.onLoadedMetaDataReached = false;
16632
16633
  this.playingPromiseReached = false;
16633
- if (isAudioEnabled(this.options)) null != this.audioRecorder || (this.audioRecorder = new AudioRecorder(this, this.options));
16634
+ if (isAudioEnabled(this.options)) null != this.audioRecorder || (this.audioRecorder = new media_AudioRecorder(this, this.options));
16634
16635
  const unloadAllEventListeners = ()=>{
16635
16636
  var _this_rawVisualUserMedia, _this_rawVisualUserMedia1;
16636
16637
  this.options.logger.debug("UserMedia: unloadAllEventListeners()");
16637
16638
  this.unloadRemainingEventListeners();
16638
- Despot.removeListener("SENDING_FIRST_FRAME");
16639
+ util_Despot.removeListener("SENDING_FIRST_FRAME");
16639
16640
  null == (_this_rawVisualUserMedia = this.rawVisualUserMedia) || _this_rawVisualUserMedia.removeEventListener("play", onPlay);
16640
16641
  null == (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) || _this_rawVisualUserMedia1.removeEventListener("loadedmetadata", onLoadedMetaData);
16641
16642
  };
@@ -16878,7 +16879,7 @@ var __webpack_exports__ = {};
16878
16879
  return obj;
16879
16880
  }
16880
16881
  const PIPE_SYMBOL = "°º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸ ";
16881
- class Recorder extends Despot {
16882
+ class Recorder extends util_Despot {
16882
16883
  writeStream(buffer, opts) {
16883
16884
  if (this.stream) if (this.stream.destroyed) {
16884
16885
  this.stopPings();
@@ -17150,7 +17151,7 @@ var __webpack_exports__ = {};
17150
17151
  this.clearUserMediaTimeout();
17151
17152
  const characteristics = null == (_this_userMedia = this.userMedia) ? void 0 : _this_userMedia.getCharacteristics();
17152
17153
  this.options.logger.debug(`Recorder: userMediaErrorCallback(), name: ${err.name}, message: ${err.message} and Webcam characteristics: ${characteristics ? util_pretty(characteristics) : "none"}`);
17153
- const errorListeners = Despot.getListeners("ERROR");
17154
+ const errorListeners = util_Despot.getListeners("ERROR");
17154
17155
  if (null == errorListeners ? void 0 : errorListeners.length) {
17155
17156
  if (err.name !== error_VideomailError.MEDIA_DEVICE_NOT_SUPPORTED) {
17156
17157
  const videomailError = error_createError({
@@ -17253,7 +17254,7 @@ var __webpack_exports__ = {};
17253
17254
  this.clearUserMediaTimeout();
17254
17255
  this.options.logger.debug("Recorder: failed to load genuine user media");
17255
17256
  this.userMediaLoading = false;
17256
- const errorListeners = Despot.getListeners("ERROR");
17257
+ const errorListeners = util_Despot.getListeners("ERROR");
17257
17258
  if (null == errorListeners ? void 0 : errorListeners.length) this.emit("ERROR", {
17258
17259
  exc
17259
17260
  });
@@ -17327,7 +17328,7 @@ var __webpack_exports__ = {};
17327
17328
  return this.visuals.isNotifying();
17328
17329
  }
17329
17330
  isHidden() {
17330
- return !this.recorderElement || isHidden(this.recorderElement);
17331
+ return !this.recorderElement || html_isHidden(this.recorderElement);
17331
17332
  }
17332
17333
  writeCommand(command, args, cb) {
17333
17334
  if (this.connected) {
@@ -17756,7 +17757,7 @@ var __webpack_exports__ = {};
17756
17757
  const userMediaVideoHeight = this.userMedia.getVideoHeight();
17757
17758
  if (!userMediaVideoWidth || userMediaVideoWidth < 1) ratio = this.visuals.getRatio();
17758
17759
  else if (userMediaVideoHeight) ratio = userMediaVideoHeight / userMediaVideoWidth;
17759
- } else ratio = getRatio(this.options);
17760
+ } else ratio = dimensions_getRatio(this.options);
17760
17761
  return ratio;
17761
17762
  }
17762
17763
  calculateWidth(responsive) {
@@ -17813,7 +17814,7 @@ var __webpack_exports__ = {};
17813
17814
  else obj[key] = value;
17814
17815
  return obj;
17815
17816
  }
17816
- class Replay extends Despot {
17817
+ class Replay extends util_Despot {
17817
17818
  buildElement(replayParentElement) {
17818
17819
  const videoSelector = `video.${this.options.selectors.replayClass}`;
17819
17820
  this.replayElement = replayParentElement.querySelector(videoSelector);
@@ -17962,7 +17963,7 @@ var __webpack_exports__ = {};
17962
17963
  }
17963
17964
  unload(params) {
17964
17965
  this.options.logger.debug("Replay: unload()");
17965
- Despot.removeAllListeners();
17966
+ util_Despot.removeAllListeners();
17966
17967
  if (null == params ? void 0 : params.startingOver) this.hide();
17967
17968
  else {
17968
17969
  var _this_replayElement;
@@ -18058,7 +18059,7 @@ var __webpack_exports__ = {};
18058
18059
  }
18059
18060
  isShown() {
18060
18061
  if (!this.replayElement) return false;
18061
- return !isHidden(this.replayElement) && !this.visuals.isHidden();
18062
+ return !html_isHidden(this.replayElement) && !this.visuals.isHidden();
18062
18063
  }
18063
18064
  getVisuals() {
18064
18065
  return this.visuals;
@@ -18082,7 +18083,7 @@ var __webpack_exports__ = {};
18082
18083
  else obj[key] = value;
18083
18084
  return obj;
18084
18085
  }
18085
- class Visuals extends Despot {
18086
+ class Visuals extends util_Despot {
18086
18087
  buildNoScriptTag() {
18087
18088
  let noScriptElement = this.container.querySelector("noscript");
18088
18089
  if (noScriptElement) {
@@ -18271,7 +18272,7 @@ var __webpack_exports__ = {};
18271
18272
  }
18272
18273
  isHidden() {
18273
18274
  if (!this.built) return true;
18274
- return isHidden(this.visualsElement);
18275
+ return html_isHidden(this.visualsElement);
18275
18276
  }
18276
18277
  showVisuals() {
18277
18278
  html_showElement(this.visualsElement);
@@ -18393,7 +18394,7 @@ var __webpack_exports__ = {};
18393
18394
  else obj[key] = value;
18394
18395
  return obj;
18395
18396
  }
18396
- class Container extends Despot {
18397
+ class Container extends util_Despot {
18397
18398
  buildChildren(playerOnly = false, parentElement) {
18398
18399
  const parentElementInfo = parentElement ? `, parentElement="${util_pretty(parentElement)}"` : "";
18399
18400
  this.options.logger.debug(`Container: buildChildren (playerOnly = ${playerOnly}${parentElementInfo})`);
@@ -18439,8 +18440,9 @@ var __webpack_exports__ = {};
18439
18440
  return this.containerElement.closest("form");
18440
18441
  }
18441
18442
  getFormElement() {
18443
+ var _this_containerElement;
18442
18444
  let formElement;
18443
- if (this.containerElement && "FORM" === this.containerElement.tagName) formElement = this.containerElement;
18445
+ if ((null == (_this_containerElement = this.containerElement) ? void 0 : _this_containerElement.tagName) === "FORM") formElement = this.containerElement;
18444
18446
  else if (this.options.selectors.formId) {
18445
18447
  formElement = document.querySelector(`#${this.options.selectors.formId}`);
18446
18448
  if (formElement && "FORM" !== formElement.tagName) throw new Error(`HTML element with ID ${this.options.selectors.formId} is not a form.`);
@@ -18602,7 +18604,7 @@ var __webpack_exports__ = {};
18602
18604
  exc
18603
18605
  });
18604
18606
  } finally{
18605
- Despot.removeAllListeners();
18607
+ util_Despot.removeAllListeners();
18606
18608
  this.built = this.submitted = false;
18607
18609
  }
18608
18610
  }
@@ -18704,11 +18706,12 @@ var __webpack_exports__ = {};
18704
18706
  const name = invalidInput.getAttribute("name");
18705
18707
  const validity = util_getValidity(invalidInput);
18706
18708
  valid = false;
18707
- if (name) {
18709
+ if (name) if (null == validity ? void 0 : validity.valueMissing) whyInvalid = `Please fill out field "${name}" ⚠️`;
18710
+ else {
18711
+ whyInvalid = `Input "${name}" seems wrong 🤔`;
18708
18712
  invalidData = {
18709
18713
  [name]: invalidInput.getAttribute("value")
18710
18714
  };
18711
- whyInvalid = (null == validity ? void 0 : validity.valueMissing) ? `Please fill out field "${name}" ⚠️` : `Input "${name}" seems wrong 🤔`;
18712
18715
  }
18713
18716
  } else if (!this.areVisualsHidden() && !visualsValid) {
18714
18717
  if (this.buttonsAreReady() || this.isRecording() || this.isPaused() || this.isCountingDown()) {
@@ -18921,7 +18924,7 @@ var __webpack_exports__ = {};
18921
18924
  else obj[key] = value;
18922
18925
  return obj;
18923
18926
  }
18924
- class VideomailClient extends Despot {
18927
+ class VideomailClient extends util_Despot {
18925
18928
  validateOptions() {
18926
18929
  const width = this.options.video.width;
18927
18930
  if (void 0 !== width && width % 2 !== 0) throw error_createError({
@@ -19004,9 +19007,9 @@ var __webpack_exports__ = {};
19004
19007
  if (this.options.logger.getLines) return this.options.logger.getLines();
19005
19008
  }
19006
19009
  constructor(options = {}){
19007
- super("VideomailClient", mergeWithDefaultOptions(options)), client_define_property(this, "container", void 0);
19010
+ super("VideomailClient", options_mergeWithDefaultOptions(options)), client_define_property(this, "container", void 0);
19008
19011
  this.validateOptions();
19009
- Despot.removeAllListeners();
19012
+ util_Despot.removeAllListeners();
19010
19013
  this.container = new wrappers_container(this.options);
19011
19014
  }
19012
19015
  }