videomail-client 10.2.21 → 10.2.23

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.
@@ -1772,10 +1772,7 @@ var __webpack_modules__ = {
1772
1772
  if (writable && writable.destroy) writable.destroy();
1773
1773
  return;
1774
1774
  }
1775
- if (null === writable || false === writable) {
1776
- this.end();
1777
- return;
1778
- }
1775
+ if (null === writable || false === writable) return void this.end();
1779
1776
  var self1 = this;
1780
1777
  var unend = eos(writable, {
1781
1778
  writable: true,
@@ -3998,18 +3995,9 @@ var __webpack_modules__ = {
3998
3995
  depth += 1;
3999
3996
  var i;
4000
3997
  if ('object' == typeof val && null !== val) {
4001
- for(i = 0; i < stack.length; i++)if (stack[i] === val) {
4002
- setReplace(CIRCULAR_REPLACE_NODE, val, k, parent);
4003
- return;
4004
- }
4005
- if (void 0 !== options.depthLimit && depth > options.depthLimit) {
4006
- setReplace(LIMIT_REPLACE_NODE, val, k, parent);
4007
- return;
4008
- }
4009
- if (void 0 !== options.edgesLimit && edgeIndex + 1 > options.edgesLimit) {
4010
- setReplace(LIMIT_REPLACE_NODE, val, k, parent);
4011
- return;
4012
- }
3998
+ for(i = 0; i < stack.length; i++)if (stack[i] === val) return void setReplace(CIRCULAR_REPLACE_NODE, val, k, parent);
3999
+ if (void 0 !== options.depthLimit && depth > options.depthLimit) return void setReplace(LIMIT_REPLACE_NODE, val, k, parent);
4000
+ if (void 0 !== options.edgesLimit && edgeIndex + 1 > options.edgesLimit) return void setReplace(LIMIT_REPLACE_NODE, val, k, parent);
4013
4001
  stack.push(val);
4014
4002
  if (Array.isArray(val)) for(i = 0; i < val.length; i++)decirc(val[i], i, i, stack, val, depth, options);
4015
4003
  else {
@@ -4048,23 +4036,14 @@ var __webpack_modules__ = {
4048
4036
  depth += 1;
4049
4037
  var i;
4050
4038
  if ('object' == typeof val && null !== val) {
4051
- for(i = 0; i < stack.length; i++)if (stack[i] === val) {
4052
- setReplace(CIRCULAR_REPLACE_NODE, val, k, parent);
4053
- return;
4054
- }
4039
+ for(i = 0; i < stack.length; i++)if (stack[i] === val) return void setReplace(CIRCULAR_REPLACE_NODE, val, k, parent);
4055
4040
  try {
4056
4041
  if ('function' == typeof val.toJSON) return;
4057
4042
  } catch (_) {
4058
4043
  return;
4059
4044
  }
4060
- if (void 0 !== options.depthLimit && depth > options.depthLimit) {
4061
- setReplace(LIMIT_REPLACE_NODE, val, k, parent);
4062
- return;
4063
- }
4064
- if (void 0 !== options.edgesLimit && edgeIndex + 1 > options.edgesLimit) {
4065
- setReplace(LIMIT_REPLACE_NODE, val, k, parent);
4066
- return;
4067
- }
4045
+ if (void 0 !== options.depthLimit && depth > options.depthLimit) return void setReplace(LIMIT_REPLACE_NODE, val, k, parent);
4046
+ if (void 0 !== options.edgesLimit && edgeIndex + 1 > options.edgesLimit) return void setReplace(LIMIT_REPLACE_NODE, val, k, parent);
4068
4047
  stack.push(val);
4069
4048
  if (Array.isArray(val)) for(i = 0; i < val.length; i++)deterministicDecirc(val[i], i, i, stack, val, depth, options);
4070
4049
  else {
@@ -6472,10 +6451,7 @@ var __webpack_modules__ = {
6472
6451
  }
6473
6452
  function pushEncodedKeyValuePair(pairs, key, value) {
6474
6453
  if (void 0 === value) return;
6475
- if (null === value) {
6476
- pairs.push(encodeURI(key));
6477
- return;
6478
- }
6454
+ if (null === value) return void pairs.push(encodeURI(key));
6479
6455
  if (Array.isArray(value)) for (const v of value)pushEncodedKeyValuePair(pairs, key, v);
6480
6456
  else if (isObject(value)) {
6481
6457
  for(const subkey in value)if (hasOwn(value, subkey)) pushEncodedKeyValuePair(pairs, `${key}[${subkey}]`, value[subkey]);
@@ -6953,10 +6929,7 @@ var __webpack_modules__ = {
6953
6929
  this._fullfilledPromise = new Promise((resolve, reject)=>{
6954
6930
  self1.on('abort', ()=>{
6955
6931
  if (this._maxRetries && this._maxRetries > this._retries) return;
6956
- if (this.timedout && this.timedoutError) {
6957
- reject(this.timedoutError);
6958
- return;
6959
- }
6932
+ if (this.timedout && this.timedoutError) return void reject(this.timedoutError);
6960
6933
  const error = new Error('Aborted');
6961
6934
  error.code = 'ABORTED';
6962
6935
  error.status = this.status;
@@ -9613,18 +9586,12 @@ var __webpack_modules__ = {
9613
9586
  proxy.on('close', destroy);
9614
9587
  var coerceToBuffer = !options.objectMode;
9615
9588
  function socketWriteNode(chunk, enc, next) {
9616
- if (socket.readyState !== socket.OPEN) {
9617
- next();
9618
- return;
9619
- }
9589
+ if (socket.readyState !== socket.OPEN) return void next();
9620
9590
  if (coerceToBuffer && 'string' == typeof chunk) chunk = Buffer.from(chunk, 'utf8');
9621
9591
  socket.send(chunk, next);
9622
9592
  }
9623
9593
  function socketWriteBrowser(chunk, enc, next) {
9624
- if (socket.bufferedAmount > bufferSize) {
9625
- setTimeout(socketWriteBrowser, bufferTimeout, chunk, enc, next);
9626
- return;
9627
- }
9594
+ if (socket.bufferedAmount > bufferSize) return void setTimeout(socketWriteBrowser, bufferTimeout, chunk, enc, next);
9628
9595
  if (coerceToBuffer && 'string' == typeof chunk) chunk = Buffer.from(chunk, 'utf8');
9629
9596
  try {
9630
9597
  socket.send(chunk);
@@ -13501,7 +13468,7 @@ var __webpack_exports__ = {};
13501
13468
  class VideomailError extends HTTPError {
13502
13469
  hasClass(name) {
13503
13470
  var _this_classList;
13504
- return null === (_this_classList = this.classList) || void 0 === _this_classList ? void 0 : _this_classList.includes(name);
13471
+ return null == (_this_classList = this.classList) ? void 0 : _this_classList.includes(name);
13505
13472
  }
13506
13473
  isBrowserProblem() {
13507
13474
  return this.hasClass(VideomailError.BROWSER_PROBLEM);
@@ -13532,7 +13499,7 @@ var __webpack_exports__ = {};
13532
13499
  if (screen.orientation) this.orientation = screen.orientation.type.toString();
13533
13500
  this.err = null == errData ? void 0 : errData.err;
13534
13501
  var _errData_cause;
13535
- const stackTarget = null !== (_errData_cause = null == errData ? void 0 : errData.cause) && void 0 !== _errData_cause ? _errData_cause : null == errData ? void 0 : errData.err;
13502
+ const stackTarget = null != (_errData_cause = null == errData ? void 0 : errData.cause) ? _errData_cause : null == errData ? void 0 : errData.err;
13536
13503
  if (stackTarget) Error.captureStackTrace(stackTarget, VideomailError);
13537
13504
  }
13538
13505
  }
@@ -13557,11 +13524,11 @@ var __webpack_exports__ = {};
13557
13524
  let message = errorParams.message;
13558
13525
  let explanation = errorParams.explanation;
13559
13526
  var _errorParams_classList;
13560
- const classList = null !== (_errorParams_classList = errorParams.classList) && void 0 !== _errorParams_classList ? _errorParams_classList : [];
13527
+ const classList = null != (_errorParams_classList = errorParams.classList) ? _errorParams_classList : [];
13561
13528
  const audioEnabled = isAudioEnabled(options);
13562
13529
  const browser = getBrowser(options);
13563
13530
  var _err_name;
13564
- const errName = null !== (_err_name = null == err ? void 0 : err.name) && void 0 !== _err_name ? _err_name : null == err ? void 0 : err.constructor.name;
13531
+ const errName = null != (_err_name = null == err ? void 0 : err.name) ? _err_name : null == err ? void 0 : err.constructor.name;
13565
13532
  switch(errName){
13566
13533
  case error_VideomailError.SECURITY_ERROR:
13567
13534
  message = "The operation was insecure";
@@ -14002,7 +13969,7 @@ var __webpack_exports__ = {};
14002
13969
  }
14003
13970
  this.on("PREVIEW", (params)=>{
14004
13971
  var _this_keyInput;
14005
- if ((null == params ? void 0 : params.key) || (null === (_this_keyInput = this.keyInput) || void 0 === _this_keyInput ? void 0 : _this_keyInput.value)) {
13972
+ if ((null == params ? void 0 : params.key) || (null == (_this_keyInput = this.keyInput) ? void 0 : _this_keyInput.value)) {
14006
13973
  if ((null == params ? void 0 : params.key) && this.keyInput) {
14007
13974
  this.keyInput.value = params.key;
14008
13975
  this.keyInput.dispatchEvent(new Event("input", {
@@ -14030,8 +13997,9 @@ var __webpack_exports__ = {};
14030
13997
  });
14031
13998
  this.on("ERROR", (params)=>{
14032
13999
  var _params_err;
14033
- if (this.options.adjustFormOnBrowserError) this.hideAll();
14034
- else if (null === (_params_err = params.err) || void 0 === _params_err ? void 0 : _params_err.isBrowserProblem()) this.hideSubmitButton();
14000
+ const isBrowserProblem = null == (_params_err = params.err) ? void 0 : _params_err.isBrowserProblem();
14001
+ if (isBrowserProblem && this.options.adjustFormOnBrowserError) this.hideAll();
14002
+ if (isBrowserProblem) this.hideSubmitButton();
14035
14003
  });
14036
14004
  this.on("BUILT", ()=>{
14037
14005
  this.startListeningToSubmitEvents();
@@ -14079,7 +14047,7 @@ var __webpack_exports__ = {};
14079
14047
  e.preventDefault();
14080
14048
  } else this.options.logger.debug("Form: doTheSubmit()");
14081
14049
  var _this_formElement_getAttribute;
14082
- const url = null !== (_this_formElement_getAttribute = this.formElement.getAttribute("action")) && void 0 !== _this_formElement_getAttribute ? _this_formElement_getAttribute : this.options.baseUrl;
14050
+ const url = null != (_this_formElement_getAttribute = this.formElement.getAttribute("action")) ? _this_formElement_getAttribute : this.options.baseUrl;
14083
14051
  const method = this.formElement.getAttribute("method");
14084
14052
  let chosenMethod;
14085
14053
  switch(method){
@@ -14131,7 +14099,7 @@ var __webpack_exports__ = {};
14131
14099
  }
14132
14100
  const wrappers_form = Form;
14133
14101
  var package_namespaceObject = {
14134
- i8: "10.2.21"
14102
+ i8: "10.2.23"
14135
14103
  };
14136
14104
  function resource_define_property(obj, key, value) {
14137
14105
  if (key in obj) Object.defineProperty(obj, key, {
@@ -14244,7 +14212,7 @@ var __webpack_exports__ = {};
14244
14212
  stack: err.stack,
14245
14213
  versions: {
14246
14214
  videomailClient: package_namespaceObject.i8,
14247
- videomailNinjaFormPlugin: null === (_this_options_versions = this.options.versions) || void 0 === _this_options_versions ? void 0 : _this_options_versions.videomailNinjaFormPlugin
14215
+ videomailNinjaFormPlugin: null == (_this_options_versions = this.options.versions) ? void 0 : _this_options_versions.videomailNinjaFormPlugin
14248
14216
  }
14249
14217
  };
14250
14218
  await client_default()(form_FormMethod.POST, url).query(queryParams).set("Timezone-Id", this.timezoneId).send(fullVideomailErrorData).timeout(this.options.timeouts.connection);
@@ -14389,10 +14357,10 @@ var __webpack_exports__ = {};
14389
14357
  radioButtonGroup.appendChild(radioLabel);
14390
14358
  if (this.submitButton && contains_default()(this.buttonsElement, this.submitButton)) {
14391
14359
  var _this_buttonsElement;
14392
- null === (_this_buttonsElement = this.buttonsElement) || void 0 === _this_buttonsElement || _this_buttonsElement.insertBefore(radioButtonGroup, this.submitButton);
14360
+ null == (_this_buttonsElement = this.buttonsElement) || _this_buttonsElement.insertBefore(radioButtonGroup, this.submitButton);
14393
14361
  } else {
14394
14362
  var _this_buttonsElement1;
14395
- null === (_this_buttonsElement1 = this.buttonsElement) || void 0 === _this_buttonsElement1 || _this_buttonsElement1.appendChild(radioButtonGroup);
14363
+ null == (_this_buttonsElement1 = this.buttonsElement) || _this_buttonsElement1.appendChild(radioButtonGroup);
14396
14364
  }
14397
14365
  }
14398
14366
  radioButtonElement.onchange = options.changeHandler;
@@ -14406,7 +14374,7 @@ var __webpack_exports__ = {};
14406
14374
  else if (selector) buttonElement = document.querySelector(selector);
14407
14375
  else {
14408
14376
  var _this_buttonsElement;
14409
- buttonElement = null === (_this_buttonsElement = this.buttonsElement) || void 0 === _this_buttonsElement ? void 0 : _this_buttonsElement.querySelector(`.${buttonClass}`);
14377
+ buttonElement = null == (_this_buttonsElement = this.buttonsElement) ? void 0 : _this_buttonsElement.querySelector(`.${buttonClass}`);
14410
14378
  }
14411
14379
  if (buttonElement) buttonElement = adjustButton(buttonElement, show, type, disabled);
14412
14380
  else {
@@ -14417,10 +14385,10 @@ var __webpack_exports__ = {};
14417
14385
  buttonElement.innerHTML = text;
14418
14386
  if (this.submitButton && contains_default()(this.buttonsElement, this.submitButton)) {
14419
14387
  var _this_buttonsElement1;
14420
- null === (_this_buttonsElement1 = this.buttonsElement) || void 0 === _this_buttonsElement1 || _this_buttonsElement1.insertBefore(buttonElement, this.submitButton);
14388
+ null == (_this_buttonsElement1 = this.buttonsElement) || _this_buttonsElement1.insertBefore(buttonElement, this.submitButton);
14421
14389
  } else {
14422
14390
  var _this_buttonsElement2;
14423
- null === (_this_buttonsElement2 = this.buttonsElement) || void 0 === _this_buttonsElement2 || _this_buttonsElement2.appendChild(buttonElement);
14391
+ null == (_this_buttonsElement2 = this.buttonsElement) || _this_buttonsElement2.appendChild(buttonElement);
14424
14392
  }
14425
14393
  }
14426
14394
  if (clickHandler) this.replaceClickHandler(buttonElement, clickHandler);
@@ -14678,7 +14646,7 @@ var __webpack_exports__ = {};
14678
14646
  });
14679
14647
  this.on("ERROR", (params)=>{
14680
14648
  var _params_err;
14681
- if ((null === (_params_err = params.err) || void 0 === _params_err ? void 0 : _params_err.isBrowserProblem()) && this.options.adjustFormOnBrowserError) this.hide();
14649
+ if ((null == (_params_err = params.err) ? void 0 : _params_err.isBrowserProblem()) && this.options.adjustFormOnBrowserError) this.hide();
14682
14650
  });
14683
14651
  }
14684
14652
  reset() {
@@ -14693,7 +14661,7 @@ var __webpack_exports__ = {};
14693
14661
  }
14694
14662
  isRecordAgainButtonEnabled() {
14695
14663
  var _this_recordAgainButton;
14696
- return !(null === (_this_recordAgainButton = this.recordAgainButton) || void 0 === _this_recordAgainButton ? void 0 : _this_recordAgainButton.disabled);
14664
+ return !(null == (_this_recordAgainButton = this.recordAgainButton) ? void 0 : _this_recordAgainButton.disabled);
14697
14665
  }
14698
14666
  isReady() {
14699
14667
  if (!this.recordButton) return false;
@@ -14701,7 +14669,7 @@ var __webpack_exports__ = {};
14701
14669
  }
14702
14670
  isRecordButtonEnabled() {
14703
14671
  var _this_recordButton;
14704
- return !(null === (_this_recordButton = this.recordButton) || void 0 === _this_recordButton ? void 0 : _this_recordButton.disabled);
14672
+ return !(null == (_this_recordButton = this.recordButton) ? void 0 : _this_recordButton.disabled);
14705
14673
  }
14706
14674
  setSubmitButton(newSubmitButton) {
14707
14675
  this.submitButton = newSubmitButton;
@@ -14799,7 +14767,7 @@ var __webpack_exports__ = {};
14799
14767
  }
14800
14768
  build() {
14801
14769
  var _this_visuals_getElement;
14802
- this.countdownElement = null === (_this_visuals_getElement = this.visuals.getElement()) || void 0 === _this_visuals_getElement ? void 0 : _this_visuals_getElement.querySelector(".countdown");
14770
+ this.countdownElement = null == (_this_visuals_getElement = this.visuals.getElement()) ? void 0 : _this_visuals_getElement.querySelector(".countdown");
14803
14771
  if (this.countdownElement) this.hide();
14804
14772
  else {
14805
14773
  this.countdownElement = document.createElement("p");
@@ -14853,7 +14821,7 @@ var __webpack_exports__ = {};
14853
14821
  }
14854
14822
  build() {
14855
14823
  var _this_visuals_getElement;
14856
- this.facingModeElement = null === (_this_visuals_getElement = this.visuals.getElement()) || void 0 === _this_visuals_getElement ? void 0 : _this_visuals_getElement.querySelector(".facingMode");
14824
+ this.facingModeElement = null == (_this_visuals_getElement = this.visuals.getElement()) ? void 0 : _this_visuals_getElement.querySelector(".facingMode");
14857
14825
  if (this.facingModeElement) this.hide();
14858
14826
  else {
14859
14827
  this.facingModeElement = document.createElement("button");
@@ -14902,8 +14870,8 @@ var __webpack_exports__ = {};
14902
14870
  }
14903
14871
  build() {
14904
14872
  var _this_visuals_getElement, _this_visuals_getElement1;
14905
- this.pausedBlockElement = null === (_this_visuals_getElement = this.visuals.getElement()) || void 0 === _this_visuals_getElement ? void 0 : _this_visuals_getElement.querySelector(".paused");
14906
- this.pausedHeaderElement = null === (_this_visuals_getElement1 = this.visuals.getElement()) || void 0 === _this_visuals_getElement1 ? void 0 : _this_visuals_getElement1.querySelector(".pausedHeader");
14873
+ this.pausedBlockElement = null == (_this_visuals_getElement = this.visuals.getElement()) ? void 0 : _this_visuals_getElement.querySelector(".paused");
14874
+ this.pausedHeaderElement = null == (_this_visuals_getElement1 = this.visuals.getElement()) ? void 0 : _this_visuals_getElement1.querySelector(".pausedHeader");
14907
14875
  if (this.pausedHeaderElement) {
14908
14876
  this.hide();
14909
14877
  this.pausedHeaderElement.innerHTML = this.options.text.pausedHeader;
@@ -14918,7 +14886,7 @@ var __webpack_exports__ = {};
14918
14886
  this.pausedBlockElement.appendChild(this.pausedHeaderElement);
14919
14887
  if (this.hasPausedHintText()) {
14920
14888
  var _this_visuals_getElement2;
14921
- this.pausedHintElement = null === (_this_visuals_getElement2 = this.visuals.getElement()) || void 0 === _this_visuals_getElement2 ? void 0 : _this_visuals_getElement2.querySelector(".pausedHint");
14889
+ this.pausedHintElement = null == (_this_visuals_getElement2 = this.visuals.getElement()) ? void 0 : _this_visuals_getElement2.querySelector(".pausedHint");
14922
14890
  if (!this.pausedHintElement) {
14923
14891
  this.pausedHintElement = document.createElement("p");
14924
14892
  this.pausedHintElement.classList.add("pausedHint");
@@ -14959,7 +14927,7 @@ var __webpack_exports__ = {};
14959
14927
  class RecordNote {
14960
14928
  build() {
14961
14929
  var _this_visuals_getElement;
14962
- this.recordNoteElement = null === (_this_visuals_getElement = this.visuals.getElement()) || void 0 === _this_visuals_getElement ? void 0 : _this_visuals_getElement.querySelector(".recordNote");
14930
+ this.recordNoteElement = null == (_this_visuals_getElement = this.visuals.getElement()) ? void 0 : _this_visuals_getElement.querySelector(".recordNote");
14963
14931
  if (this.recordNoteElement) this.hide();
14964
14932
  else {
14965
14933
  this.recordNoteElement = document.createElement("p");
@@ -14971,16 +14939,16 @@ var __webpack_exports__ = {};
14971
14939
  stop() {
14972
14940
  var _this_recordNoteElement, _this_recordNoteElement1;
14973
14941
  this.hide();
14974
- null === (_this_recordNoteElement = this.recordNoteElement) || void 0 === _this_recordNoteElement || _this_recordNoteElement.classList.remove("near");
14975
- null === (_this_recordNoteElement1 = this.recordNoteElement) || void 0 === _this_recordNoteElement1 || _this_recordNoteElement1.classList.remove("nigh");
14942
+ null == (_this_recordNoteElement = this.recordNoteElement) || _this_recordNoteElement.classList.remove("near");
14943
+ null == (_this_recordNoteElement1 = this.recordNoteElement) || _this_recordNoteElement1.classList.remove("nigh");
14976
14944
  }
14977
14945
  setNear() {
14978
14946
  var _this_recordNoteElement;
14979
- null === (_this_recordNoteElement = this.recordNoteElement) || void 0 === _this_recordNoteElement || _this_recordNoteElement.classList.add("near");
14947
+ null == (_this_recordNoteElement = this.recordNoteElement) || _this_recordNoteElement.classList.add("near");
14980
14948
  }
14981
14949
  setNigh() {
14982
14950
  var _this_recordNoteElement;
14983
- null === (_this_recordNoteElement = this.recordNoteElement) || void 0 === _this_recordNoteElement || _this_recordNoteElement.classList.add("nigh");
14951
+ null == (_this_recordNoteElement = this.recordNoteElement) || _this_recordNoteElement.classList.add("nigh");
14984
14952
  }
14985
14953
  hide() {
14986
14954
  hidden_default()(this.recordNoteElement, true);
@@ -15029,11 +14997,11 @@ var __webpack_exports__ = {};
15029
14997
  }
15030
14998
  setNear() {
15031
14999
  var _this_recordTimerElement;
15032
- null === (_this_recordTimerElement = this.recordTimerElement) || void 0 === _this_recordTimerElement || _this_recordTimerElement.classList.add("near");
15000
+ null == (_this_recordTimerElement = this.recordTimerElement) || _this_recordTimerElement.classList.add("near");
15033
15001
  }
15034
15002
  setNigh() {
15035
15003
  var _this_recordTimerElement;
15036
- null === (_this_recordTimerElement = this.recordTimerElement) || void 0 === _this_recordTimerElement || _this_recordTimerElement.classList.add("nigh");
15004
+ null == (_this_recordTimerElement = this.recordTimerElement) || _this_recordTimerElement.classList.add("nigh");
15037
15005
  }
15038
15006
  check(elapsedTime) {
15039
15007
  const newCountdown = this.getStartSeconds() - Math.floor(elapsedTime / 1e3);
@@ -15066,8 +15034,8 @@ var __webpack_exports__ = {};
15066
15034
  }
15067
15035
  show() {
15068
15036
  var _this_recordTimerElement, _this_recordTimerElement1;
15069
- null === (_this_recordTimerElement = this.recordTimerElement) || void 0 === _this_recordTimerElement || _this_recordTimerElement.classList.remove("near");
15070
- null === (_this_recordTimerElement1 = this.recordTimerElement) || void 0 === _this_recordTimerElement1 || _this_recordTimerElement1.classList.remove("nigh");
15037
+ null == (_this_recordTimerElement = this.recordTimerElement) || _this_recordTimerElement.classList.remove("near");
15038
+ null == (_this_recordTimerElement1 = this.recordTimerElement) || _this_recordTimerElement1.classList.remove("nigh");
15071
15039
  hidden_default()(this.recordTimerElement, false);
15072
15040
  }
15073
15041
  getSecondsRecorded() {
@@ -15104,7 +15072,7 @@ var __webpack_exports__ = {};
15104
15072
  }
15105
15073
  build() {
15106
15074
  var _this_visuals_getElement;
15107
- this.recordTimerElement = null === (_this_visuals_getElement = this.visuals.getElement()) || void 0 === _this_visuals_getElement ? void 0 : _this_visuals_getElement.querySelector(".recordTimer");
15075
+ this.recordTimerElement = null == (_this_visuals_getElement = this.visuals.getElement()) ? void 0 : _this_visuals_getElement.querySelector(".recordTimer");
15108
15076
  if (this.recordTimerElement) this.hide();
15109
15077
  else {
15110
15078
  this.recordTimerElement = document.createElement("p");
@@ -15151,7 +15119,7 @@ var __webpack_exports__ = {};
15151
15119
  pauseRecording() {
15152
15120
  if (this.isCountingDown()) {
15153
15121
  var _this_countdown;
15154
- null === (_this_countdown = this.countdown) || void 0 === _this_countdown || _this_countdown.pause();
15122
+ null == (_this_countdown = this.countdown) || _this_countdown.pause();
15155
15123
  } else this.recordTimer.pause();
15156
15124
  }
15157
15125
  onResetting() {
@@ -15159,13 +15127,13 @@ var __webpack_exports__ = {};
15159
15127
  this.hidePause();
15160
15128
  this.hideCountdown();
15161
15129
  this.recordTimer.stop();
15162
- null === (_this_facingMode = this.facingMode) || void 0 === _this_facingMode || _this_facingMode.hide();
15130
+ null == (_this_facingMode = this.facingMode) || _this_facingMode.hide();
15163
15131
  }
15164
15132
  initEvents() {
15165
15133
  this.options.logger.debug("RecorderInsides: initEvents()");
15166
15134
  this.on("USER_MEDIA_READY", ()=>{
15167
15135
  var _this_facingMode;
15168
- null === (_this_facingMode = this.facingMode) || void 0 === _this_facingMode || _this_facingMode.show();
15136
+ null == (_this_facingMode = this.facingMode) || _this_facingMode.show();
15169
15137
  });
15170
15138
  this.on("RECORDING", ()=>{
15171
15139
  this.startRecording();
@@ -15179,8 +15147,12 @@ var __webpack_exports__ = {};
15179
15147
  this.on("PAUSED", ()=>{
15180
15148
  this.pauseRecording();
15181
15149
  });
15182
- this.on("ERROR", this.onResetting.bind(this));
15183
- this.on("RESETTING", this.onResetting.bind(this));
15150
+ this.on("ERROR", ()=>{
15151
+ this.onResetting();
15152
+ });
15153
+ this.on("RESETTING", ()=>{
15154
+ this.onResetting();
15155
+ });
15184
15156
  this.on("HIDE", ()=>{
15185
15157
  this.hideCountdown();
15186
15158
  });
@@ -15188,9 +15160,9 @@ var __webpack_exports__ = {};
15188
15160
  build() {
15189
15161
  var _this_countdown, _this_pausedNote, _this_facingMode;
15190
15162
  this.options.logger.debug("RecorderInsides: build()");
15191
- null === (_this_countdown = this.countdown) || void 0 === _this_countdown || _this_countdown.build();
15192
- null === (_this_pausedNote = this.pausedNote) || void 0 === _this_pausedNote || _this_pausedNote.build();
15193
- null === (_this_facingMode = this.facingMode) || void 0 === _this_facingMode || _this_facingMode.build();
15163
+ null == (_this_countdown = this.countdown) || _this_countdown.build();
15164
+ null == (_this_pausedNote = this.pausedNote) || _this_pausedNote.build();
15165
+ null == (_this_facingMode = this.facingMode) || _this_facingMode.build();
15194
15166
  this.recordNote.build();
15195
15167
  this.recordTimer.build();
15196
15168
  if (!this.built) this.initEvents();
@@ -15198,32 +15170,32 @@ var __webpack_exports__ = {};
15198
15170
  }
15199
15171
  unload() {
15200
15172
  var _this_countdown;
15201
- null === (_this_countdown = this.countdown) || void 0 === _this_countdown || _this_countdown.unload();
15173
+ null == (_this_countdown = this.countdown) || _this_countdown.unload();
15202
15174
  this.built = false;
15203
15175
  }
15204
15176
  showPause() {
15205
15177
  var _this_pausedNote;
15206
- null === (_this_pausedNote = this.pausedNote) || void 0 === _this_pausedNote || _this_pausedNote.show();
15178
+ null == (_this_pausedNote = this.pausedNote) || _this_pausedNote.show();
15207
15179
  }
15208
15180
  hidePause() {
15209
15181
  var _this_pausedNote;
15210
- null === (_this_pausedNote = this.pausedNote) || void 0 === _this_pausedNote || _this_pausedNote.hide();
15182
+ null == (_this_pausedNote = this.pausedNote) || _this_pausedNote.hide();
15211
15183
  }
15212
15184
  hideCountdown() {
15213
15185
  var _this_countdown;
15214
- null === (_this_countdown = this.countdown) || void 0 === _this_countdown || _this_countdown.hide();
15186
+ null == (_this_countdown = this.countdown) || _this_countdown.hide();
15215
15187
  }
15216
15188
  startCountdown(cb) {
15217
15189
  var _this_countdown;
15218
- null === (_this_countdown = this.countdown) || void 0 === _this_countdown || _this_countdown.start(cb);
15190
+ null == (_this_countdown = this.countdown) || _this_countdown.start(cb);
15219
15191
  }
15220
15192
  resumeCountdown() {
15221
15193
  var _this_countdown;
15222
- null === (_this_countdown = this.countdown) || void 0 === _this_countdown || _this_countdown.resume();
15194
+ null == (_this_countdown = this.countdown) || _this_countdown.resume();
15223
15195
  }
15224
15196
  isCountingDown() {
15225
15197
  var _this_countdown;
15226
- return null === (_this_countdown = this.countdown) || void 0 === _this_countdown ? void 0 : _this_countdown.isCountingDown();
15198
+ return null == (_this_countdown = this.countdown) ? void 0 : _this_countdown.isCountingDown();
15227
15199
  }
15228
15200
  checkTimer(elapsedTime) {
15229
15201
  this.recordTimer.check(elapsedTime);
@@ -15398,7 +15370,7 @@ var __webpack_exports__ = {};
15398
15370
  build() {
15399
15371
  var _this_visuals_getElement;
15400
15372
  this.options.logger.debug("Notifier: build()");
15401
- this.notifyElement = null === (_this_visuals_getElement = this.visuals.getElement()) || void 0 === _this_visuals_getElement ? void 0 : _this_visuals_getElement.querySelector(".notifier");
15373
+ this.notifyElement = null == (_this_visuals_getElement = this.visuals.getElement()) ? void 0 : _this_visuals_getElement.querySelector(".notifier");
15402
15374
  if (this.notifyElement) this.hide();
15403
15375
  else {
15404
15376
  this.notifyElement = document.createElement("div");
@@ -15438,20 +15410,20 @@ var __webpack_exports__ = {};
15438
15410
  ].filter(Boolean);
15439
15411
  this.options.logger.debug(`Notifier: notify(${params.join(", ")})`);
15440
15412
  var _notifyOptions_stillWait;
15441
- const stillWait = null !== (_notifyOptions_stillWait = notifyOptions.stillWait) && void 0 !== _notifyOptions_stillWait ? _notifyOptions_stillWait : false;
15413
+ const stillWait = null != (_notifyOptions_stillWait = notifyOptions.stillWait) ? _notifyOptions_stillWait : false;
15442
15414
  var _notifyOptions_entertain;
15443
- const entertain = null !== (_notifyOptions_entertain = notifyOptions.entertain) && void 0 !== _notifyOptions_entertain ? _notifyOptions_entertain : false;
15415
+ const entertain = null != (_notifyOptions_entertain = notifyOptions.entertain) ? _notifyOptions_entertain : false;
15444
15416
  var _notifyOptions_blocking;
15445
- const blocking = null !== (_notifyOptions_blocking = notifyOptions.blocking) && void 0 !== _notifyOptions_blocking ? _notifyOptions_blocking : false;
15417
+ const blocking = null != (_notifyOptions_blocking = notifyOptions.blocking) ? _notifyOptions_blocking : false;
15446
15418
  var _notifyOptions_classList;
15447
- const classList = null !== (_notifyOptions_classList = notifyOptions.classList) && void 0 !== _notifyOptions_classList ? _notifyOptions_classList : false;
15419
+ const classList = null != (_notifyOptions_classList = notifyOptions.classList) ? _notifyOptions_classList : false;
15448
15420
  var _notifyOptions_removeDimensions;
15449
- const removeDimensions = null !== (_notifyOptions_removeDimensions = notifyOptions.removeDimensions) && void 0 !== _notifyOptions_removeDimensions ? _notifyOptions_removeDimensions : false;
15421
+ const removeDimensions = null != (_notifyOptions_removeDimensions = notifyOptions.removeDimensions) ? _notifyOptions_removeDimensions : false;
15450
15422
  if (this.notifyElement) {
15451
15423
  if (!entertain) this.notifyElement.className = "notifier";
15452
15424
  if (classList) classList.forEach((className)=>{
15453
15425
  var _this_notifyElement;
15454
- null === (_this_notifyElement = this.notifyElement) || void 0 === _this_notifyElement || _this_notifyElement.classList.add(className);
15426
+ null == (_this_notifyElement = this.notifyElement) || _this_notifyElement.classList.add(className);
15455
15427
  });
15456
15428
  if (removeDimensions) {
15457
15429
  this.notifyElement.style.width = "auto";
@@ -15460,7 +15432,7 @@ var __webpack_exports__ = {};
15460
15432
  }
15461
15433
  if (blocking) {
15462
15434
  var _this_notifyElement;
15463
- null === (_this_notifyElement = this.notifyElement) || void 0 === _this_notifyElement || _this_notifyElement.classList.add("blocking");
15435
+ null == (_this_notifyElement = this.notifyElement) || _this_notifyElement.classList.add("blocking");
15464
15436
  this.emit("BLOCKING");
15465
15437
  } else this.emit("NOTIFYING");
15466
15438
  this.visuals.hideReplay();
@@ -15836,19 +15808,19 @@ var __webpack_exports__ = {};
15836
15808
  if (localMediaStream) this.attachMediaStream(localMediaStream);
15837
15809
  else {
15838
15810
  var _this_rawVisualUserMedia, _this_rawVisualUserMedia1;
15839
- null === (_this_rawVisualUserMedia = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia || _this_rawVisualUserMedia.removeAttribute("srcObject");
15840
- null === (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia1 || _this_rawVisualUserMedia1.removeAttribute("src");
15811
+ null == (_this_rawVisualUserMedia = this.rawVisualUserMedia) || _this_rawVisualUserMedia.removeAttribute("srcObject");
15812
+ null == (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) || _this_rawVisualUserMedia1.removeAttribute("src");
15841
15813
  this.currentVisualStream = void 0;
15842
15814
  }
15843
15815
  }
15844
15816
  hasEnded() {
15845
15817
  var _this_rawVisualUserMedia, _this_currentVisualStream;
15846
- if (null === (_this_rawVisualUserMedia = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia ? void 0 : _this_rawVisualUserMedia.ended) return this.rawVisualUserMedia.ended;
15847
- return !(null === (_this_currentVisualStream = this.currentVisualStream) || void 0 === _this_currentVisualStream ? void 0 : _this_currentVisualStream.active);
15818
+ if (null == (_this_rawVisualUserMedia = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia.ended) return this.rawVisualUserMedia.ended;
15819
+ return !(null == (_this_currentVisualStream = this.currentVisualStream) ? void 0 : _this_currentVisualStream.active);
15848
15820
  }
15849
15821
  hasInvalidDimensions() {
15850
15822
  var _this_rawVisualUserMedia, _this_rawVisualUserMedia1;
15851
- if ((null === (_this_rawVisualUserMedia = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia ? void 0 : _this_rawVisualUserMedia.videoWidth) && this.rawVisualUserMedia.videoWidth < 3 || (null === (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia1 ? void 0 : _this_rawVisualUserMedia1.height) && this.rawVisualUserMedia.height < 3) return true;
15823
+ if ((null == (_this_rawVisualUserMedia = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia.videoWidth) && this.rawVisualUserMedia.videoWidth < 3 || (null == (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia1.height) && this.rawVisualUserMedia.height < 3) return true;
15852
15824
  return false;
15853
15825
  }
15854
15826
  logEvent(eventType, params) {
@@ -15857,21 +15829,21 @@ var __webpack_exports__ = {};
15857
15829
  outputEvent(e) {
15858
15830
  var _this_rawVisualUserMedia, _this_rawVisualUserMedia1;
15859
15831
  this.logEvent(e.type, {
15860
- readyState: null === (_this_rawVisualUserMedia = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia ? void 0 : _this_rawVisualUserMedia.readyState
15832
+ readyState: null == (_this_rawVisualUserMedia = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia.readyState
15861
15833
  });
15862
- null === (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia1 || _this_rawVisualUserMedia1.removeEventListener(e.type, this.outputEvent.bind(this));
15834
+ null == (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) || _this_rawVisualUserMedia1.removeEventListener(e.type, this.outputEvent.bind(this));
15863
15835
  }
15864
15836
  unloadRemainingEventListeners() {
15865
15837
  this.options.logger.debug("UserMedia: unloadRemainingEventListeners()");
15866
15838
  mediaEvents.forEach((eventName)=>{
15867
15839
  var _this_rawVisualUserMedia;
15868
- null === (_this_rawVisualUserMedia = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia || _this_rawVisualUserMedia.removeEventListener(eventName, this.outputEvent.bind(this));
15840
+ null == (_this_rawVisualUserMedia = this.rawVisualUserMedia) || _this_rawVisualUserMedia.removeEventListener(eventName, this.outputEvent.bind(this));
15869
15841
  });
15870
15842
  }
15871
15843
  audioRecord(audioCallback) {
15872
15844
  var _this_audioRecorder;
15873
15845
  util_Despot.removeListener("SENDING_FIRST_FRAME");
15874
- null === (_this_audioRecorder = this.audioRecorder) || void 0 === _this_audioRecorder || _this_audioRecorder.record(audioCallback);
15846
+ null == (_this_audioRecorder = this.audioRecorder) || _this_audioRecorder.record(audioCallback);
15875
15847
  }
15876
15848
  init(localMediaStream, videoCallback, audioCallback, endedEarlyCallback, switchingFacingMode) {
15877
15849
  this.stop(localMediaStream, {
@@ -15883,21 +15855,21 @@ var __webpack_exports__ = {};
15883
15855
  this.playingPromiseReached = false;
15884
15856
  if (isAudioEnabled(this.options)) {
15885
15857
  var _this_audioRecorder;
15886
- null !== (_this_audioRecorder = this.audioRecorder) && void 0 !== _this_audioRecorder || (this.audioRecorder = new media_AudioRecorder(this, this.options));
15858
+ null != this.audioRecorder || (this.audioRecorder = new media_AudioRecorder(this, this.options));
15887
15859
  }
15888
15860
  const unloadAllEventListeners = ()=>{
15889
15861
  var _this_rawVisualUserMedia, _this_rawVisualUserMedia1;
15890
15862
  this.options.logger.debug("UserMedia: unloadAllEventListeners()");
15891
15863
  this.unloadRemainingEventListeners();
15892
15864
  util_Despot.removeListener("SENDING_FIRST_FRAME");
15893
- null === (_this_rawVisualUserMedia = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia || _this_rawVisualUserMedia.removeEventListener("play", onPlay);
15894
- null === (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia1 || _this_rawVisualUserMedia1.removeEventListener("loadedmetadata", onLoadedMetaData);
15865
+ null == (_this_rawVisualUserMedia = this.rawVisualUserMedia) || _this_rawVisualUserMedia.removeEventListener("play", onPlay);
15866
+ null == (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) || _this_rawVisualUserMedia1.removeEventListener("loadedmetadata", onLoadedMetaData);
15895
15867
  };
15896
15868
  const play = ()=>{
15897
15869
  try {
15898
15870
  var _this_rawVisualUserMedia, _this_rawVisualUserMedia1;
15899
- null === (_this_rawVisualUserMedia = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia || _this_rawVisualUserMedia.load();
15900
- if (null === (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia1 ? void 0 : _this_rawVisualUserMedia1.paused) {
15871
+ null == (_this_rawVisualUserMedia = this.rawVisualUserMedia) || _this_rawVisualUserMedia.load();
15872
+ if (null == (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia1.paused) {
15901
15873
  this.options.logger.debug(`UserMedia: play(): media.readyState=${this.rawVisualUserMedia.readyState}, media.paused=${this.rawVisualUserMedia.paused}, media.ended=${this.rawVisualUserMedia.ended}, media.played=${pretty(this.rawVisualUserMedia.played)}`);
15902
15874
  let p;
15903
15875
  try {
@@ -15921,7 +15893,7 @@ var __webpack_exports__ = {};
15921
15893
  };
15922
15894
  const fireCallbacks = ()=>{
15923
15895
  var _this_rawVisualUserMedia;
15924
- const readyState = null === (_this_rawVisualUserMedia = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia ? void 0 : _this_rawVisualUserMedia.readyState;
15896
+ const readyState = null == (_this_rawVisualUserMedia = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia.readyState;
15925
15897
  this.options.logger.debug(`UserMedia: fireCallbacks(readyState=${readyState}, onPlayReached=${this.onPlayReached}, onLoadedMetaDataReached=${this.onLoadedMetaDataReached})`);
15926
15898
  if (this.onPlayReached && this.onLoadedMetaDataReached) {
15927
15899
  videoCallback();
@@ -15940,14 +15912,14 @@ var __webpack_exports__ = {};
15940
15912
  try {
15941
15913
  var _this_rawVisualUserMedia, _this_rawVisualUserMedia1, _this_rawVisualUserMedia2, _this_rawVisualUserMedia3, _this_rawVisualUserMedia4, _this_rawVisualUserMedia5;
15942
15914
  this.logEvent("play", {
15943
- readyState: null === (_this_rawVisualUserMedia = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia ? void 0 : _this_rawVisualUserMedia.readyState,
15915
+ readyState: null == (_this_rawVisualUserMedia = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia.readyState,
15944
15916
  audio: isAudioEnabled(this.options),
15945
- width: null === (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia1 ? void 0 : _this_rawVisualUserMedia1.width,
15946
- height: null === (_this_rawVisualUserMedia2 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia2 ? void 0 : _this_rawVisualUserMedia2.height,
15947
- videoWidth: null === (_this_rawVisualUserMedia3 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia3 ? void 0 : _this_rawVisualUserMedia3.videoWidth,
15948
- videoHeight: null === (_this_rawVisualUserMedia4 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia4 ? void 0 : _this_rawVisualUserMedia4.videoHeight
15917
+ width: null == (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia1.width,
15918
+ height: null == (_this_rawVisualUserMedia2 = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia2.height,
15919
+ videoWidth: null == (_this_rawVisualUserMedia3 = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia3.videoWidth,
15920
+ videoHeight: null == (_this_rawVisualUserMedia4 = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia4.videoHeight
15949
15921
  });
15950
- null === (_this_rawVisualUserMedia5 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia5 || _this_rawVisualUserMedia5.removeEventListener("play", onPlay);
15922
+ null == (_this_rawVisualUserMedia5 = this.rawVisualUserMedia) || _this_rawVisualUserMedia5.removeEventListener("play", onPlay);
15951
15923
  if (this.hasEnded() || this.hasInvalidDimensions()) endedEarlyCallback(createError({
15952
15924
  message: "Already busy",
15953
15925
  explanation: "Probably another browser window is using your webcam?",
@@ -15965,14 +15937,14 @@ var __webpack_exports__ = {};
15965
15937
  const onLoadedMetaData = ()=>{
15966
15938
  var _this_rawVisualUserMedia, _this_rawVisualUserMedia1, _this_rawVisualUserMedia2, _this_rawVisualUserMedia3, _this_rawVisualUserMedia4, _this_rawVisualUserMedia5, _this_rawVisualUserMedia6;
15967
15939
  this.logEvent("loadedmetadata", {
15968
- readyState: null === (_this_rawVisualUserMedia = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia ? void 0 : _this_rawVisualUserMedia.readyState,
15969
- paused: null === (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia1 ? void 0 : _this_rawVisualUserMedia1.paused,
15970
- width: null === (_this_rawVisualUserMedia2 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia2 ? void 0 : _this_rawVisualUserMedia2.width,
15971
- height: null === (_this_rawVisualUserMedia3 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia3 ? void 0 : _this_rawVisualUserMedia3.height,
15972
- videoWidth: null === (_this_rawVisualUserMedia4 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia4 ? void 0 : _this_rawVisualUserMedia4.videoWidth,
15973
- videoHeight: null === (_this_rawVisualUserMedia5 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia5 ? void 0 : _this_rawVisualUserMedia5.videoHeight
15940
+ readyState: null == (_this_rawVisualUserMedia = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia.readyState,
15941
+ paused: null == (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia1.paused,
15942
+ width: null == (_this_rawVisualUserMedia2 = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia2.width,
15943
+ height: null == (_this_rawVisualUserMedia3 = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia3.height,
15944
+ videoWidth: null == (_this_rawVisualUserMedia4 = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia4.videoWidth,
15945
+ videoHeight: null == (_this_rawVisualUserMedia5 = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia5.videoHeight
15974
15946
  });
15975
- null === (_this_rawVisualUserMedia6 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia6 || _this_rawVisualUserMedia6.removeEventListener("loadedmetadata", onLoadedMetaData);
15947
+ null == (_this_rawVisualUserMedia6 = this.rawVisualUserMedia) || _this_rawVisualUserMedia6.removeEventListener("loadedmetadata", onLoadedMetaData);
15976
15948
  if (!this.hasEnded() && !this.hasInvalidDimensions()) {
15977
15949
  this.emit("LOADED_META_DATA");
15978
15950
  this.onLoadedMetaDataReached = true;
@@ -15993,9 +15965,9 @@ var __webpack_exports__ = {};
15993
15965
  options: this.options
15994
15966
  });
15995
15967
  else this.options.logger.debug("UserMedia: detected (but no video tracks exist");
15996
- null === (_this_rawVisualUserMedia = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia || _this_rawVisualUserMedia.addEventListener("loadedmetadata", onLoadedMetaData);
15997
- null === (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia1 || _this_rawVisualUserMedia1.addEventListener("play", onPlay);
15998
- null === (_this_rawVisualUserMedia2 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia2 || _this_rawVisualUserMedia2.addEventListener("error", (err)=>{
15968
+ null == (_this_rawVisualUserMedia = this.rawVisualUserMedia) || _this_rawVisualUserMedia.addEventListener("loadedmetadata", onLoadedMetaData);
15969
+ null == (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) || _this_rawVisualUserMedia1.addEventListener("play", onPlay);
15970
+ null == (_this_rawVisualUserMedia2 = this.rawVisualUserMedia) || _this_rawVisualUserMedia2.addEventListener("error", (err)=>{
15999
15971
  this.options.logger.warn(`Caught video element error event: ${pretty(err)}`);
16000
15972
  });
16001
15973
  this.setVisualStream(localMediaStream);
@@ -16008,7 +15980,7 @@ var __webpack_exports__ = {};
16008
15980
  }
16009
15981
  isReady() {
16010
15982
  var _this_rawVisualUserMedia;
16011
- return Boolean(null === (_this_rawVisualUserMedia = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia ? void 0 : _this_rawVisualUserMedia.src);
15983
+ return Boolean(null == (_this_rawVisualUserMedia = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia.src);
16012
15984
  }
16013
15985
  stop(visualStream, params) {
16014
15986
  try {
@@ -16021,7 +15993,7 @@ var __webpack_exports__ = {};
16021
15993
  track.stop();
16022
15994
  });
16023
15995
  this.setVisualStream(void 0);
16024
- null === (_this_audioRecorder = this.audioRecorder) || void 0 === _this_audioRecorder || _this_audioRecorder.stop();
15996
+ null == (_this_audioRecorder = this.audioRecorder) || _this_audioRecorder.stop();
16025
15997
  this.audioRecorder = void 0;
16026
15998
  }
16027
15999
  if (!(null == params ? void 0 : params.switchingFacingMode)) this.paused = this.recording = false;
@@ -16103,11 +16075,11 @@ var __webpack_exports__ = {};
16103
16075
  var _this_rawVisualUserMedia, _this_rawVisualUserMedia1, _this_rawVisualUserMedia2, _this_rawVisualUserMedia3, _this_rawVisualUserMedia4;
16104
16076
  return {
16105
16077
  audioSampleRate: this.getAudioSampleRate(),
16106
- muted: null === (_this_rawVisualUserMedia = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia ? void 0 : _this_rawVisualUserMedia.muted,
16107
- width: null === (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia1 ? void 0 : _this_rawVisualUserMedia1.width,
16108
- height: null === (_this_rawVisualUserMedia2 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia2 ? void 0 : _this_rawVisualUserMedia2.height,
16109
- videoWidth: null === (_this_rawVisualUserMedia3 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia3 ? void 0 : _this_rawVisualUserMedia3.videoWidth,
16110
- videoHeight: null === (_this_rawVisualUserMedia4 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia4 ? void 0 : _this_rawVisualUserMedia4.videoHeight
16078
+ muted: null == (_this_rawVisualUserMedia = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia.muted,
16079
+ width: null == (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia1.width,
16080
+ height: null == (_this_rawVisualUserMedia2 = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia2.height,
16081
+ videoWidth: null == (_this_rawVisualUserMedia3 = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia3.videoWidth,
16082
+ videoHeight: null == (_this_rawVisualUserMedia4 = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia4.videoHeight
16111
16083
  };
16112
16084
  }
16113
16085
  constructor(recorder, options){
@@ -16116,7 +16088,7 @@ var __webpack_exports__ = {};
16116
16088
  this.rawVisualUserMedia = recorder.getRawVisualUserMedia();
16117
16089
  mediaEvents.forEach((eventName)=>{
16118
16090
  var _this_rawVisualUserMedia;
16119
- null === (_this_rawVisualUserMedia = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia || _this_rawVisualUserMedia.addEventListener(eventName, this.outputEvent.bind(this), false);
16091
+ null == (_this_rawVisualUserMedia = this.rawVisualUserMedia) || _this_rawVisualUserMedia.addEventListener(eventName, this.outputEvent.bind(this), false);
16120
16092
  });
16121
16093
  }
16122
16094
  }
@@ -16385,7 +16357,7 @@ var __webpack_exports__ = {};
16385
16357
  this.stream.on("connect", ()=>{
16386
16358
  var _this_stream;
16387
16359
  this.options.logger.debug(`${PIPE_SYMBOL}Stream *connect* event emitted`);
16388
- const isClosing = (null === (_this_stream = this.stream) || void 0 === _this_stream ? void 0 : _this_stream.socket.readyState) === WebSocket.CLOSING;
16360
+ const isClosing = (null == (_this_stream = this.stream) ? void 0 : _this_stream.socket.readyState) === WebSocket.CLOSING;
16389
16361
  if (!this.connected && !isClosing && !this.unloaded) {
16390
16362
  this.connected = true;
16391
16363
  this.connecting = this.unloaded = false;
@@ -16464,7 +16436,7 @@ var __webpack_exports__ = {};
16464
16436
  var _this_userMedia;
16465
16437
  this.userMediaLoading = false;
16466
16438
  this.clearUserMediaTimeout();
16467
- const characteristics = null === (_this_userMedia = this.userMedia) || void 0 === _this_userMedia ? void 0 : _this_userMedia.getCharacteristics();
16439
+ const characteristics = null == (_this_userMedia = this.userMedia) ? void 0 : _this_userMedia.getCharacteristics();
16468
16440
  this.options.logger.debug(`Recorder: userMediaErrorCallback(), name: ${err.name}, message: ${err.message} and Webcam characteristics: ${characteristics ? pretty(characteristics) : "none"}`);
16469
16441
  const errorListeners = util_Despot.getListeners("ERROR");
16470
16442
  if (null == errorListeners ? void 0 : errorListeners.length) {
@@ -16550,10 +16522,7 @@ var __webpack_exports__ = {};
16550
16522
  this.onUserMediaReady(params);
16551
16523
  return;
16552
16524
  }
16553
- if (this.userMediaLoading) {
16554
- this.options.logger.debug("Recorder: skipping loadUserMedia() because it is already asking for permission");
16555
- return;
16556
- }
16525
+ if (this.userMediaLoading) return void this.options.logger.debug("Recorder: skipping loadUserMedia() because it is already asking for permission");
16557
16526
  this.options.logger.debug(`Recorder: loadUserMedia(${params ? pretty(params) : ""})`);
16558
16527
  this.emit("LOADING_USER_MEDIA");
16559
16528
  try {
@@ -16598,10 +16567,11 @@ var __webpack_exports__ = {};
16598
16567
  break;
16599
16568
  case "error":
16600
16569
  {
16601
- var _command_args_err_toString;
16570
+ var _command_args_err_message;
16602
16571
  const err = createError({
16603
16572
  message: "Oh no, server error!",
16604
- explanation: null !== (_command_args_err_toString = command.args.err.toString()) && void 0 !== _command_args_err_toString ? _command_args_err_toString : "(No message given)",
16573
+ explanation: null != (_command_args_err_message = command.args.err.message) ? _command_args_err_message : "(No message given)",
16574
+ err: command.args.err,
16605
16575
  options: this.options
16606
16576
  });
16607
16577
  this.emit("ERROR", {
@@ -16669,7 +16639,7 @@ var __webpack_exports__ = {};
16669
16639
  }
16670
16640
  cancelAnimationFrame() {
16671
16641
  var _this_loop;
16672
- null === (_this_loop = this.loop) || void 0 === _this_loop || _this_loop.dispose();
16642
+ null == (_this_loop = this.loop) || _this_loop.dispose();
16673
16643
  }
16674
16644
  getIntervalSum() {
16675
16645
  return this.loop.getElapsedTime();
@@ -16687,7 +16657,7 @@ var __webpack_exports__ = {};
16687
16657
  }
16688
16658
  getAudioSampleRate() {
16689
16659
  var _this_userMedia;
16690
- return null === (_this_userMedia = this.userMedia) || void 0 === _this_userMedia ? void 0 : _this_userMedia.getAudioSampleRate();
16660
+ return null == (_this_userMedia = this.userMedia) ? void 0 : _this_userMedia.getAudioSampleRate();
16691
16661
  }
16692
16662
  stop(params) {
16693
16663
  var _this_loop;
@@ -16697,7 +16667,7 @@ var __webpack_exports__ = {};
16697
16667
  this.emit("STOPPING", {
16698
16668
  limitReached
16699
16669
  });
16700
- null === (_this_loop = this.loop) || void 0 === _this_loop || _this_loop.complete();
16670
+ null == (_this_loop = this.loop) || _this_loop.complete();
16701
16671
  setTimeout(()=>{
16702
16672
  this.stopTime = Date.now();
16703
16673
  const videoType = this.replay.getVideoType();
@@ -16733,7 +16703,7 @@ var __webpack_exports__ = {};
16733
16703
  var _this_userMedia;
16734
16704
  this.options.logger.debug("Recorder: reInitializeAudio()");
16735
16705
  this.clearUserMediaTimeout();
16736
- null === (_this_userMedia = this.userMedia) || void 0 === _this_userMedia || _this_userMedia.stop();
16706
+ null == (_this_userMedia = this.userMedia) || _this_userMedia.stop();
16737
16707
  this.userMediaLoaded = this.key = this.canvas = this.ctx = void 0;
16738
16708
  this.loadUserMedia();
16739
16709
  }
@@ -16762,7 +16732,7 @@ var __webpack_exports__ = {};
16762
16732
  this.options.logger.debug("Recorder: reset()");
16763
16733
  this.emit("RESETTING");
16764
16734
  this.cancelAnimationFrame();
16765
- null === (_this_userMedia = this.userMedia) || void 0 === _this_userMedia || _this_userMedia.stop();
16735
+ null == (_this_userMedia = this.userMedia) || _this_userMedia.stop();
16766
16736
  this.replay.reset();
16767
16737
  this.userMediaLoaded = this.key = this.canvas = this.ctx = this.recordingBuffer = void 0;
16768
16738
  }
@@ -16779,13 +16749,13 @@ var __webpack_exports__ = {};
16779
16749
  }
16780
16750
  isReady() {
16781
16751
  var _this_userMedia;
16782
- return null === (_this_userMedia = this.userMedia) || void 0 === _this_userMedia ? void 0 : _this_userMedia.isReady();
16752
+ return null == (_this_userMedia = this.userMedia) ? void 0 : _this_userMedia.isReady();
16783
16753
  }
16784
16754
  pause(params) {
16785
16755
  var _this_userMedia;
16786
16756
  if (params) this.options.logger.debug(`pause() at frame ${this.framesCount} with ${pretty(params)}`);
16787
16757
  else this.options.logger.debug(`pause() at frame ${this.framesCount}`);
16788
- null === (_this_userMedia = this.userMedia) || void 0 === _this_userMedia || _this_userMedia.pause();
16758
+ null == (_this_userMedia = this.userMedia) || _this_userMedia.pause();
16789
16759
  this.loop.stop();
16790
16760
  this.emit("PAUSED");
16791
16761
  this.sendPings();
@@ -16795,7 +16765,7 @@ var __webpack_exports__ = {};
16795
16765
  this.options.logger.debug(`Recorder: resume() with frame ${this.framesCount}`);
16796
16766
  this.stopPings();
16797
16767
  this.emit("RESUMING");
16798
- null === (_this_userMedia = this.userMedia) || void 0 === _this_userMedia || _this_userMedia.resume();
16768
+ null == (_this_userMedia = this.userMedia) || _this_userMedia.resume();
16799
16769
  this.loop.start();
16800
16770
  }
16801
16771
  onFlushed(opts) {
@@ -16812,8 +16782,8 @@ var __webpack_exports__ = {};
16812
16782
  const imageSource = this.userMedia.getRawVisuals();
16813
16783
  if (this.canvas && imageSource) this.ctx.drawImage(imageSource, 0, 0, this.canvas.width, this.canvas.height);
16814
16784
  else throw new Error("Unable to draw an image without a defined canvas");
16815
- this.recordingBuffer = null === (_this_frame = this.frame) || void 0 === _this_frame ? void 0 : _this_frame.toBuffer();
16816
- const recordingBufferLength = null === (_this_recordingBuffer = this.recordingBuffer) || void 0 === _this_recordingBuffer ? void 0 : _this_recordingBuffer.length;
16785
+ this.recordingBuffer = null == (_this_frame = this.frame) ? void 0 : _this_frame.toBuffer();
16786
+ const recordingBufferLength = null == (_this_recordingBuffer = this.recordingBuffer) ? void 0 : _this_recordingBuffer.length;
16817
16787
  if (recordingBufferLength) {
16818
16788
  if (this.recordingBuffer) {
16819
16789
  const frameControlBuffer = Buffer.from(JSON.stringify({
@@ -17012,7 +16982,7 @@ var __webpack_exports__ = {};
17012
16982
  }
17013
16983
  build() {
17014
16984
  var _this_visuals_getElement;
17015
- this.recorderElement = null === (_this_visuals_getElement = this.visuals.getElement()) || void 0 === _this_visuals_getElement ? void 0 : _this_visuals_getElement.querySelector(`video.${this.options.selectors.userMediaClass}`);
16985
+ this.recorderElement = null == (_this_visuals_getElement = this.visuals.getElement()) ? void 0 : _this_visuals_getElement.querySelector(`video.${this.options.selectors.userMediaClass}`);
17016
16986
  if (!this.recorderElement) this.buildElement();
17017
16987
  if (!this.recorderElement) throw new Error(`There is still no video element with class ${this.options.selectors.userMediaClass}`);
17018
16988
  this.correctDimensions();
@@ -17037,11 +17007,11 @@ var __webpack_exports__ = {};
17037
17007
  }
17038
17008
  isPaused() {
17039
17009
  var _this_userMedia;
17040
- return (null === (_this_userMedia = this.userMedia) || void 0 === _this_userMedia ? void 0 : _this_userMedia.isPaused()) && !this.loop.isRunning();
17010
+ return (null == (_this_userMedia = this.userMedia) ? void 0 : _this_userMedia.isPaused()) && !this.loop.isRunning();
17041
17011
  }
17042
17012
  isRecording() {
17043
17013
  var _this_loop;
17044
- return (null === (_this_loop = this.loop) || void 0 === _this_loop ? void 0 : _this_loop.isRunning()) && !this.isPaused() && !this.isNotifying() && this.stream && !this.stream.destroyed;
17014
+ return (null == (_this_loop = this.loop) ? void 0 : _this_loop.isRunning()) && !this.isPaused() && !this.isNotifying() && this.stream && !this.stream.destroyed;
17045
17015
  }
17046
17016
  hide() {
17047
17017
  if (!this.isHidden()) {
@@ -17055,7 +17025,7 @@ var __webpack_exports__ = {};
17055
17025
  }
17056
17026
  getRecorderWidth(responsive) {
17057
17027
  var _this_userMedia;
17058
- if (null === (_this_userMedia = this.userMedia) || void 0 === _this_userMedia ? void 0 : _this_userMedia.hasVideoWidth()) return this.userMedia.getRawWidth(responsive);
17028
+ if (null == (_this_userMedia = this.userMedia) ? void 0 : _this_userMedia.hasVideoWidth()) return this.userMedia.getRawWidth(responsive);
17059
17029
  if (responsive && this.options.video.width) return this.limitWidth(this.options.video.width);
17060
17030
  return this.options.video.width;
17061
17031
  }
@@ -17146,7 +17116,7 @@ var __webpack_exports__ = {};
17146
17116
  let attributeContainer;
17147
17117
  Object.keys(newVideomail).forEach((attribute)=>{
17148
17118
  var _this_replayElement_parentNode, _this_replayElement;
17149
- attributeContainer = null === (_this_replayElement = this.replayElement) || void 0 === _this_replayElement ? void 0 : null === (_this_replayElement_parentNode = _this_replayElement.parentNode) || void 0 === _this_replayElement_parentNode ? void 0 : _this_replayElement_parentNode.querySelector(`.${attribute}`);
17119
+ attributeContainer = null == (_this_replayElement = this.replayElement) ? void 0 : null == (_this_replayElement_parentNode = _this_replayElement.parentNode) ? void 0 : _this_replayElement_parentNode.querySelector(`.${attribute}`);
17150
17120
  if (attributeContainer) {
17151
17121
  const empty = !attributeContainer.innerHTML || attributeContainer.innerHTML.length < 1;
17152
17122
  if (empty) attributeContainer.innerHTML = newVideomail[attribute];
@@ -17188,10 +17158,10 @@ var __webpack_exports__ = {};
17188
17158
  if (this.videomail.vtt) this.setTrackSource(this.videomail.vtt);
17189
17159
  if (this.videomail.poster) {
17190
17160
  var _this_replayElement;
17191
- null === (_this_replayElement = this.replayElement) || void 0 === _this_replayElement || _this_replayElement.setAttribute("poster", this.videomail.poster);
17161
+ null == (_this_replayElement = this.replayElement) || _this_replayElement.setAttribute("poster", this.videomail.poster);
17192
17162
  }
17193
17163
  this.copyAttributes(this.videomail);
17194
- const sampleRate = null === (_this_videomail_recordingStats = this.videomail.recordingStats) || void 0 === _this_videomail_recordingStats ? void 0 : _this_videomail_recordingStats.sampleRate;
17164
+ const sampleRate = null == (_this_videomail_recordingStats = this.videomail.recordingStats) ? void 0 : _this_videomail_recordingStats.sampleRate;
17195
17165
  const width = this.videomail.width;
17196
17166
  const height = this.videomail.height;
17197
17167
  const hasAudio = void 0 !== sampleRate ? sampleRate > 0 : false;
@@ -17203,7 +17173,7 @@ var __webpack_exports__ = {};
17203
17173
  if (!this.replayElement) return;
17204
17174
  if (this.isShown()) return;
17205
17175
  this.options.logger.debug(`Replay: show(playerOnly=${playerOnly})`);
17206
- const hasMedia = Boolean(null === (_this_videomail = this.videomail) || void 0 === _this_videomail ? void 0 : _this_videomail.webm) || Boolean(null === (_this_videomail1 = this.videomail) || void 0 === _this_videomail1 ? void 0 : _this_videomail1.mp4) || Boolean(null === (_this_videomail2 = this.videomail) || void 0 === _this_videomail2 ? void 0 : _this_videomail2.poster);
17176
+ const hasMedia = Boolean(null == (_this_videomail = this.videomail) ? void 0 : _this_videomail.webm) || Boolean(null == (_this_videomail1 = this.videomail) ? void 0 : _this_videomail1.mp4) || Boolean(null == (_this_videomail2 = this.videomail) ? void 0 : _this_videomail2.poster);
17207
17177
  if (hasMedia) this.correctDimensions(true, null != videomailWidth ? videomailWidth : this.replayElement.videoWidth, null != videomailHeight ? videomailHeight : this.replayElement.videoHeight);
17208
17178
  if (playerOnly) {
17209
17179
  if (hasMedia) hidden_default()(this.replayElement, false);
@@ -17227,7 +17197,7 @@ var __webpack_exports__ = {};
17227
17197
  build(replayParentElement) {
17228
17198
  var _this_visuals_getElement;
17229
17199
  this.options.logger.debug(`Replay: build (replayParentElement="${pretty(replayParentElement)}")`);
17230
- this.replayElement = null === (_this_visuals_getElement = this.visuals.getElement()) || void 0 === _this_visuals_getElement ? void 0 : _this_visuals_getElement.querySelector(`video.${this.options.selectors.replayClass}`);
17200
+ this.replayElement = null == (_this_visuals_getElement = this.visuals.getElement()) ? void 0 : _this_visuals_getElement.querySelector(`video.${this.options.selectors.replayClass}`);
17231
17201
  if (!this.replayElement) this.buildElement(replayParentElement);
17232
17202
  if (!this.replayElement) throw new Error("There is no replayElement to build on");
17233
17203
  this.hide();
@@ -17245,23 +17215,23 @@ var __webpack_exports__ = {};
17245
17215
  this.replayElement.addEventListener("touchstart", (e)=>{
17246
17216
  var _this_replayElement;
17247
17217
  e.preventDefault();
17248
- if (null === (_this_replayElement = this.replayElement) || void 0 === _this_replayElement ? void 0 : _this_replayElement.paused) this.replayElement.play().catch((err)=>{
17218
+ if (null == (_this_replayElement = this.replayElement) ? void 0 : _this_replayElement.paused) this.replayElement.play().catch((err)=>{
17249
17219
  throw err;
17250
17220
  });
17251
17221
  else {
17252
17222
  var _this_replayElement1;
17253
- null === (_this_replayElement1 = this.replayElement) || void 0 === _this_replayElement1 || _this_replayElement1.pause();
17223
+ null == (_this_replayElement1 = this.replayElement) || _this_replayElement1.pause();
17254
17224
  }
17255
17225
  });
17256
17226
  this.replayElement.addEventListener("click", (e)=>{
17257
17227
  var _this_replayElement;
17258
17228
  e.preventDefault();
17259
- if (null === (_this_replayElement = this.replayElement) || void 0 === _this_replayElement ? void 0 : _this_replayElement.paused) this.replayElement.play().catch((err)=>{
17229
+ if (null == (_this_replayElement = this.replayElement) ? void 0 : _this_replayElement.paused) this.replayElement.play().catch((err)=>{
17260
17230
  throw err;
17261
17231
  });
17262
17232
  else {
17263
17233
  var _this_replayElement1;
17264
- null === (_this_replayElement1 = this.replayElement) || void 0 === _this_replayElement1 || _this_replayElement1.pause();
17234
+ null == (_this_replayElement1 = this.replayElement) || _this_replayElement1.pause();
17265
17235
  }
17266
17236
  });
17267
17237
  }
@@ -17274,7 +17244,7 @@ var __webpack_exports__ = {};
17274
17244
  if (null == params ? void 0 : params.startingOver) this.hide();
17275
17245
  else {
17276
17246
  var _this_replayElement;
17277
- null === (_this_replayElement = this.replayElement) || void 0 === _this_replayElement || _this_replayElement.remove();
17247
+ null == (_this_replayElement = this.replayElement) || _this_replayElement.remove();
17278
17248
  this.replayElement = void 0;
17279
17249
  }
17280
17250
  this.videomail = void 0;
@@ -17290,7 +17260,7 @@ var __webpack_exports__ = {};
17290
17260
  let i;
17291
17261
  for(i = 0; i < l && !source; i++){
17292
17262
  var _sources_i;
17293
- if ((null === (_sources_i = sources[i]) || void 0 === _sources_i ? void 0 : _sources_i.getAttribute("type")) === videoType) source = sources[i];
17263
+ if ((null == (_sources_i = sources[i]) ? void 0 : _sources_i.getAttribute("type")) === videoType) source = sources[i];
17294
17264
  }
17295
17265
  }
17296
17266
  return source;
@@ -17397,7 +17367,7 @@ var __webpack_exports__ = {};
17397
17367
  var _this_visualsElement;
17398
17368
  noScriptElement = document.createElement("noscript");
17399
17369
  noScriptElement.innerHTML = "Please enable Javascript";
17400
- null === (_this_visualsElement = this.visualsElement) || void 0 === _this_visualsElement || _this_visualsElement.appendChild(noScriptElement);
17370
+ null == (_this_visualsElement = this.visualsElement) || _this_visualsElement.appendChild(noScriptElement);
17401
17371
  }
17402
17372
  }
17403
17373
  buildChildren() {
@@ -17451,7 +17421,7 @@ var __webpack_exports__ = {};
17451
17421
  }
17452
17422
  getRatio() {
17453
17423
  var _this_visualsElement;
17454
- if (null === (_this_visualsElement = this.visualsElement) || void 0 === _this_visualsElement ? void 0 : _this_visualsElement.clientWidth) return this.visualsElement.clientHeight / this.visualsElement.clientWidth;
17424
+ if (null == (_this_visualsElement = this.visualsElement) ? void 0 : _this_visualsElement.clientWidth) return this.visualsElement.clientHeight / this.visualsElement.clientWidth;
17455
17425
  return 0;
17456
17426
  }
17457
17427
  isRecordable() {
@@ -17481,11 +17451,11 @@ var __webpack_exports__ = {};
17481
17451
  }
17482
17452
  appendChild(child) {
17483
17453
  var _this_visualsElement;
17484
- null === (_this_visualsElement = this.visualsElement) || void 0 === _this_visualsElement || _this_visualsElement.appendChild(child);
17454
+ null == (_this_visualsElement = this.visualsElement) || _this_visualsElement.appendChild(child);
17485
17455
  }
17486
17456
  removeChild(child) {
17487
17457
  var _this_visualsElement;
17488
- null === (_this_visualsElement = this.visualsElement) || void 0 === _this_visualsElement || _this_visualsElement.removeChild(child);
17458
+ null == (_this_visualsElement = this.visualsElement) || _this_visualsElement.removeChild(child);
17489
17459
  }
17490
17460
  reset() {
17491
17461
  this.endWaiting();
@@ -17624,7 +17594,7 @@ var __webpack_exports__ = {};
17624
17594
  }
17625
17595
  getBoundingClientRect() {
17626
17596
  var _this_visualsElement;
17627
- return null === (_this_visualsElement = this.visualsElement) || void 0 === _this_visualsElement ? void 0 : _this_visualsElement.getBoundingClientRect();
17597
+ return null == (_this_visualsElement = this.visualsElement) ? void 0 : _this_visualsElement.getBoundingClientRect();
17628
17598
  }
17629
17599
  checkTimer(elapsedTime) {
17630
17600
  this.recorderInsides.checkTimer(elapsedTime);
@@ -17715,7 +17685,7 @@ var __webpack_exports__ = {};
17715
17685
  const containerId = this.options.selectors.containerId;
17716
17686
  if (containerId) this.containerElement = document.getElementById(containerId);
17717
17687
  else this.containerElement = document.createElement("div");
17718
- null === (_this_containerElement = this.containerElement) || void 0 === _this_containerElement || _this_containerElement.classList.add(this.options.selectors.containerClass);
17688
+ null == (_this_containerElement = this.containerElement) || _this_containerElement.classList.add(this.options.selectors.containerClass);
17719
17689
  let replayParentElement = null;
17720
17690
  if (null == buildOptions ? void 0 : buildOptions.replayParentElement) replayParentElement = buildOptions.replayParentElement;
17721
17691
  else if (null == buildOptions ? void 0 : buildOptions.replayParentElementId) replayParentElement = document.getElementById(buildOptions.replayParentElementId);
@@ -17767,8 +17737,8 @@ var __webpack_exports__ = {};
17767
17737
  processError(params) {
17768
17738
  var _params_err, _params_err1;
17769
17739
  this.hasError = true;
17770
- if (null === (_params_err = params.err) || void 0 === _params_err ? void 0 : _params_err.stack) this.options.logger.error(params.err.stack);
17771
- else if (null === (_params_err1 = params.err) || void 0 === _params_err1 ? void 0 : _params_err1.message) this.options.logger.error(params.err.message);
17740
+ if (null == (_params_err = params.err) ? void 0 : _params_err.stack) this.options.logger.error(params.err.stack);
17741
+ else if (null == (_params_err1 = params.err) ? void 0 : _params_err1.message) this.options.logger.error(params.err.message);
17772
17742
  else if (params.exc) if (params.exc instanceof Error) {
17773
17743
  if (params.exc.stack) this.options.logger.error(params.exc.stack);
17774
17744
  else if (params.exc.message) this.options.logger.error(params.exc.message);
@@ -17845,7 +17815,7 @@ var __webpack_exports__ = {};
17845
17815
  }
17846
17816
  async submitVideomail(formInputs, method) {
17847
17817
  var _this_form;
17848
- const videomailFormData = null === (_this_form = this.form) || void 0 === _this_form ? void 0 : _this_form.transformFormData(formInputs);
17818
+ const videomailFormData = null == (_this_form = this.form) ? void 0 : _this_form.transformFormData(formInputs);
17849
17819
  if (!videomailFormData) throw new Error("No videomail form data defined");
17850
17820
  if (method === form_FormMethod.POST) {
17851
17821
  videomailFormData.recordingStats = this.visuals.getRecordingStats();
@@ -17881,11 +17851,11 @@ var __webpack_exports__ = {};
17881
17851
  }
17882
17852
  beginWaiting() {
17883
17853
  var _this_htmlElement;
17884
- null === (_this_htmlElement = this.htmlElement) || void 0 === _this_htmlElement || _this_htmlElement.classList.add("wait");
17854
+ null == (_this_htmlElement = this.htmlElement) || _this_htmlElement.classList.add("wait");
17885
17855
  }
17886
17856
  endWaiting() {
17887
17857
  var _this_htmlElement;
17888
- null === (_this_htmlElement = this.htmlElement) || void 0 === _this_htmlElement || _this_htmlElement.classList.remove("wait");
17858
+ null == (_this_htmlElement = this.htmlElement) || _this_htmlElement.classList.remove("wait");
17889
17859
  }
17890
17860
  appendChild(child) {
17891
17861
  if (!this.containerElement || this.containerElement === child) return;
@@ -17984,7 +17954,7 @@ var __webpack_exports__ = {};
17984
17954
  else if (this.isNotifying()) runValidation = false;
17985
17955
  else if (this.visuals.isConnected()) {
17986
17956
  var _this_visuals_isUserMediaLoaded;
17987
- runValidation = null !== (_this_visuals_isUserMediaLoaded = this.visuals.isUserMediaLoaded()) && void 0 !== _this_visuals_isUserMediaLoaded ? _this_visuals_isUserMediaLoaded : this.visuals.isReplayShown();
17957
+ runValidation = null != (_this_visuals_isUserMediaLoaded = this.visuals.isUserMediaLoaded()) ? _this_visuals_isUserMediaLoaded : this.visuals.isReplayShown();
17988
17958
  } else if (this.visuals.isConnecting()) runValidation = false;
17989
17959
  } else {
17990
17960
  runValidation = false;
@@ -17992,7 +17962,7 @@ var __webpack_exports__ = {};
17992
17962
  }
17993
17963
  if (runValidation) {
17994
17964
  var _event_target;
17995
- const targetName = null == event ? void 0 : null === (_event_target = event.target) || void 0 === _event_target ? void 0 : _event_target.name;
17965
+ const targetName = null == event ? void 0 : null == (_event_target = event.target) ? void 0 : _event_target.name;
17996
17966
  if (targetName) this.emit("VALIDATING", {
17997
17967
  targetName
17998
17968
  });
@@ -18061,11 +18031,11 @@ var __webpack_exports__ = {};
18061
18031
  }
18062
18032
  disableForm(buttonsToo) {
18063
18033
  var _this_form;
18064
- null === (_this_form = this.form) || void 0 === _this_form || _this_form.disable(buttonsToo);
18034
+ null == (_this_form = this.form) || _this_form.disable(buttonsToo);
18065
18035
  }
18066
18036
  enableForm(buttonsToo) {
18067
18037
  var _this_form;
18068
- null === (_this_form = this.form) || void 0 === _this_form || _this_form.enable(buttonsToo);
18038
+ null == (_this_form = this.form) || _this_form.enable(buttonsToo);
18069
18039
  }
18070
18040
  hasForm() {
18071
18041
  return Boolean(this.form);
@@ -18153,7 +18123,7 @@ var __webpack_exports__ = {};
18153
18123
  this.options.logger.debug("Container: submit()");
18154
18124
  if (this.lastValidation) {
18155
18125
  var _this_form;
18156
- return await (null === (_this_form = this.form) || void 0 === _this_form ? void 0 : _this_form.doTheSubmit());
18126
+ return await (null == (_this_form = this.form) ? void 0 : _this_form.doTheSubmit());
18157
18127
  }
18158
18128
  return false;
18159
18129
  }