videomail-client 10.3.5 → 10.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10496,8 +10496,6 @@ var __webpack_exports__ = {};
10496
10496
  ENC_TYPE_FORM: "application/x-www-form-urlencoded"
10497
10497
  }
10498
10498
  };
10499
- var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10500
- var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10501
10499
  const list = [
10502
10500
  Error,
10503
10501
  EvalError,
@@ -10648,35 +10646,11 @@ var __webpack_exports__ = {};
10648
10646
  function isMinimumViableSerializedError(value) {
10649
10647
  return Boolean(value) && 'object' == typeof value && 'string' == typeof value.message && !Array.isArray(value);
10650
10648
  }
10651
- var util = __webpack_require__("./node_modules/util/util.js");
10652
- var util_default = /*#__PURE__*/ __webpack_require__.n(util);
10653
- function inspect(element) {
10654
- return util_default().inspect(element, {
10655
- colors: true,
10656
- compact: true,
10657
- depth: 4,
10658
- breakLength: 1 / 0
10659
- }).replace(/\s+/gu, " ").replace(/\r?\n/gu, "");
10660
- }
10661
- function pretty(anything) {
10662
- if (anything instanceof HTMLElement) {
10663
- if (anything.id) return `#${anything.id}`;
10664
- if (anything.className) return `.${anything.className}`;
10665
- return "(No HTML identifier available)";
10666
- }
10667
- return inspect(anything);
10668
- }
10669
- const util_pretty = pretty;
10670
- function isAudioEnabled(options) {
10671
- return Boolean(options.audio.enabled);
10672
- }
10673
- function setAudioEnabled(enabled, options) {
10674
- options.audio.enabled = enabled;
10675
- return options;
10676
- }
10677
- function isAutoPauseEnabled(options) {
10678
- return options.enableAutoPause && options.enablePause;
10679
- }
10649
+ var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10650
+ var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10651
+ var package_namespaceObject = {
10652
+ i8: "10.3.7"
10653
+ };
10680
10654
  var defined = __webpack_require__("./node_modules/defined/index.js");
10681
10655
  var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
10682
10656
  var LIBVERSION = '2.0.4', UA_MAX_LENGTH = 500, USER_AGENT = 'user-agent', EMPTY = '', UNKNOWN = '?', FUNC_TYPE = 'function', UNDEF_TYPE = 'undefined', OBJ_TYPE = 'object', STR_TYPE = 'string', UA_BROWSER = 'browser', UA_CPU = 'cpu', UA_DEVICE = 'device', UA_ENGINE = 'engine', UA_OS = 'os', UA_RESULT = 'result', NAME = 'name', TYPE = 'type', VENDOR = 'vendor', VERSION = 'version', ARCHITECTURE = 'architecture', MAJOR = 'major', MODEL = 'model', CONSOLE = 'console', MOBILE = 'mobile', TABLET = 'tablet', SMARTTV = 'smarttv', WEARABLE = 'wearable', XR = 'xr', EMBEDDED = 'embedded', INAPP = 'inapp', BRANDS = 'brands', FORMFACTORS = 'formFactors', FULLVERLIST = 'fullVersionList', PLATFORM = 'platform', PLATFORMVER = 'platformVersion', BITNESS = 'bitness', CH_HEADER = 'sec-ch-ua', CH_HEADER_FULL_VER_LIST = CH_HEADER + '-full-version-list', CH_HEADER_ARCH = CH_HEADER + '-arch', CH_HEADER_BITNESS = CH_HEADER + '-' + BITNESS, CH_HEADER_FORM_FACTORS = CH_HEADER + '-form-factors', CH_HEADER_MOBILE = CH_HEADER + '-' + MOBILE, CH_HEADER_MODEL = CH_HEADER + '-' + MODEL, CH_HEADER_PLATFORM = CH_HEADER + '-' + PLATFORM, CH_HEADER_PLATFORM_VER = CH_HEADER_PLATFORM + '-version', CH_ALL_VALUES = [
@@ -13788,17 +13762,17 @@ var __webpack_exports__ = {};
13788
13762
  NAME,
13789
13763
  VERSION
13790
13764
  ]);
13765
+ var VideoType_VideoType = /*#__PURE__*/ function(VideoType) {
13766
+ VideoType["WebM"] = "webm";
13767
+ VideoType["MP4"] = "mp4";
13768
+ return VideoType;
13769
+ }({});
13791
13770
  function canPlayType_canPlayType(video, type) {
13792
13771
  const canPlayType = video.canPlayType(`video/${type}`);
13793
13772
  if ("" === canPlayType) return false;
13794
13773
  return canPlayType;
13795
13774
  }
13796
13775
  const media_canPlayType = canPlayType_canPlayType;
13797
- var VideoType_VideoType = /*#__PURE__*/ function(VideoType) {
13798
- VideoType["WebM"] = "webm";
13799
- VideoType["MP4"] = "mp4";
13800
- return VideoType;
13801
- }({});
13802
13776
  function _define_property(obj, key, value) {
13803
13777
  if (key in obj) Object.defineProperty(obj, key, {
13804
13778
  value: value,
@@ -13891,6 +13865,35 @@ var __webpack_exports__ = {};
13891
13865
  return getBrowser_browser;
13892
13866
  }
13893
13867
  const util_getBrowser = getBrowser;
13868
+ function isAudioEnabled(options) {
13869
+ return Boolean(options.audio.enabled);
13870
+ }
13871
+ function setAudioEnabled(enabled, options) {
13872
+ options.audio.enabled = enabled;
13873
+ return options;
13874
+ }
13875
+ function isAutoPauseEnabled(options) {
13876
+ return options.enableAutoPause && options.enablePause;
13877
+ }
13878
+ var util = __webpack_require__("./node_modules/util/util.js");
13879
+ var util_default = /*#__PURE__*/ __webpack_require__.n(util);
13880
+ function inspect(element) {
13881
+ return util_default().inspect(element, {
13882
+ colors: false,
13883
+ compact: true,
13884
+ depth: 4,
13885
+ breakLength: 1 / 0
13886
+ }).replace(/\s+/gu, " ").replace(/\r?\n/gu, "");
13887
+ }
13888
+ function pretty(anything) {
13889
+ if (anything instanceof HTMLElement) {
13890
+ if (anything.id) return `#${anything.id}`;
13891
+ if (anything.className) return `.${anything.className}`;
13892
+ return "(No HTML identifier available)";
13893
+ }
13894
+ return inspect(anything);
13895
+ }
13896
+ const util_pretty = pretty;
13894
13897
  function HTTPVideomailError_define_property(obj, key, value) {
13895
13898
  if (key in obj) Object.defineProperty(obj, key, {
13896
13899
  value: value,
@@ -13949,7 +13952,7 @@ var __webpack_exports__ = {};
13949
13952
  screen.height,
13950
13953
  screen.colorDepth
13951
13954
  ].join("\xd7");
13952
- if (screen.orientation) this.orientation = screen.orientation.type.toString();
13955
+ if (screen.orientation) this.orientation = screen.orientation.type;
13953
13956
  this.err = null == errData ? void 0 : errData.err;
13954
13957
  var _errData_cause;
13955
13958
  const stackTarget = null != (_errData_cause = null == errData ? void 0 : errData.cause) ? _errData_cause : null == errData ? void 0 : errData.err;
@@ -14282,6 +14285,10 @@ var __webpack_exports__ = {};
14282
14285
  }
14283
14286
  Despot_define_property(Despot, "EMITTER", createNanoEvents());
14284
14287
  const util_Despot = Despot;
14288
+ function isNotButton(element) {
14289
+ return "BUTTON" !== element.tagName && "submit" !== element.getAttribute("type");
14290
+ }
14291
+ const html_isNotButton = isNotButton;
14285
14292
  const REGEX = /[ ,]+/u;
14286
14293
  function trimEmail(email) {
14287
14294
  return email.replace(REGEX, "");
@@ -14290,10 +14297,6 @@ var __webpack_exports__ = {};
14290
14297
  const trimmedEmails = emails.split(REGEX).map((item)=>item.trim()).filter(Boolean);
14291
14298
  return trimmedEmails;
14292
14299
  }
14293
- function isNotButton(element) {
14294
- return "BUTTON" !== element.tagName && "submit" !== element.getAttribute("type");
14295
- }
14296
- const html_isNotButton = isNotButton;
14297
14300
  function form_define_property(obj, key, value) {
14298
14301
  if (key in obj) Object.defineProperty(obj, key, {
14299
14302
  value: value,
@@ -14554,9 +14557,6 @@ var __webpack_exports__ = {};
14554
14557
  }
14555
14558
  }
14556
14559
  const wrappers_form = Form;
14557
- var package_namespaceObject = {
14558
- i8: "10.3.5"
14559
- };
14560
14560
  function resource_define_property(obj, key, value) {
14561
14561
  if (key in obj) Object.defineProperty(obj, key, {
14562
14562
  value: value,
@@ -14728,45 +14728,138 @@ var __webpack_exports__ = {};
14728
14728
  }
14729
14729
  }
14730
14730
  const src_resource = Resource;
14731
- var document_visibility = __webpack_require__("./node_modules/document-visibility/index.js");
14732
- var document_visibility_default = /*#__PURE__*/ __webpack_require__.n(document_visibility);
14733
- var contains = __webpack_require__("./node_modules/contains/index.js");
14734
- var contains_default = /*#__PURE__*/ __webpack_require__.n(contains);
14735
- function disableElement(element) {
14736
- if (!element) return;
14737
- if ("INPUT" === element.tagName || "BUTTON" === element.tagName) element.setAttribute("disabled", "true");
14738
- else element.classList.add("disabled");
14739
- }
14740
- const html_disableElement = disableElement;
14741
- function enableElement(element) {
14742
- if (!element) return;
14743
- if ("INPUT" === element.tagName || "BUTTON" === element.tagName) element.removeAttribute("disabled");
14744
- else element.classList.remove("disabled");
14745
- }
14746
- const html_enableElement = enableElement;
14747
- function hideElement(element) {
14748
- if (!element) return;
14749
- hidden_default()(element, true);
14750
- }
14751
- const html_hideElement = hideElement;
14752
- function showElement(element) {
14753
- if (!element) return;
14754
- hidden_default()(element, false);
14755
- }
14756
- const html_showElement = showElement;
14757
- function isShown(element) {
14758
- if (!element) return false;
14759
- return !hidden_default()(element);
14731
+ var cjs = __webpack_require__("./node_modules/deepmerge/dist/cjs.js");
14732
+ var cjs_default = /*#__PURE__*/ __webpack_require__.n(cjs);
14733
+ const NodeEnvType = {
14734
+ DEVELOPMENT: "development",
14735
+ PRODUCTION: "production"
14736
+ };
14737
+ var process = __webpack_require__("./node_modules/process/browser.js");
14738
+ function getNodeEnv() {
14739
+ if (!process.env.NODE_ENV) return NodeEnvType.DEVELOPMENT;
14740
+ return process.env.NODE_ENV;
14760
14741
  }
14761
- const html_isShown = isShown;
14762
- function adjustButton(buttonElement, show, type, disabled) {
14763
- if (disabled) html_disableElement(buttonElement);
14764
- if (type) buttonElement.type = type;
14765
- if (!show) html_hideElement(buttonElement);
14766
- return buttonElement;
14742
+ const util_getNodeEnv = getNodeEnv;
14743
+ function isProductionMode() {
14744
+ return util_getNodeEnv() === NodeEnvType.PRODUCTION;
14767
14745
  }
14768
- const html_adjustButton = adjustButton;
14769
- function buttons_define_property(obj, key, value) {
14746
+ const util_isProductionMode = isProductionMode;
14747
+ const PRODUCTION = util_isProductionMode();
14748
+ const options_options = {
14749
+ logger: console,
14750
+ logStackSize: 30,
14751
+ verbose: !PRODUCTION,
14752
+ baseUrl: "https://videomail.io",
14753
+ socketUrl: "wss://videomail.io",
14754
+ siteName: "videomail-client-demo",
14755
+ enablePause: true,
14756
+ enableAutoPause: true,
14757
+ enableSpace: true,
14758
+ submitWithVideomail: false,
14759
+ disableSubmit: false,
14760
+ enableAutoValidation: true,
14761
+ enableAutoUnload: true,
14762
+ enableAutoSubmission: true,
14763
+ enctype: "application/json",
14764
+ selectors: {
14765
+ containerId: void 0,
14766
+ containerClass: "videomail",
14767
+ replayClass: "replay",
14768
+ userMediaClass: "userMedia",
14769
+ visualsClass: "visuals",
14770
+ buttonClass: void 0,
14771
+ buttonsClass: "buttons",
14772
+ recordButtonClass: "record",
14773
+ pauseButtonClass: "pause",
14774
+ resumeButtonClass: "resume",
14775
+ previewButtonClass: "preview",
14776
+ recordAgainButtonClass: "recordAgain",
14777
+ submitButtonClass: "submit",
14778
+ subjectInputName: "subject",
14779
+ fromInputName: "from",
14780
+ toInputName: "to",
14781
+ ccInputName: "cc",
14782
+ bccInputName: "bcc",
14783
+ bodyInputName: "body",
14784
+ sendCopyInputName: "sendCopy",
14785
+ keyInputName: "videomail_key",
14786
+ parentKeyInputName: "videomail_parent_key",
14787
+ formId: void 0,
14788
+ submitButtonId: void 0,
14789
+ submitButtonSelector: void 0
14790
+ },
14791
+ audio: {
14792
+ enabled: false,
14793
+ switch: false,
14794
+ volume: 0.2,
14795
+ bufferSize: "auto"
14796
+ },
14797
+ video: {
14798
+ fps: 15,
14799
+ limitSeconds: 30,
14800
+ countdown: 3,
14801
+ width: void 0,
14802
+ height: void 0,
14803
+ facingMode: "user",
14804
+ facingModeButton: false,
14805
+ stretch: false
14806
+ },
14807
+ image: {
14808
+ quality: 0.42,
14809
+ types: [
14810
+ "webp",
14811
+ "jpeg"
14812
+ ]
14813
+ },
14814
+ text: {
14815
+ pausedHeader: "Paused",
14816
+ pausedHint: void 0,
14817
+ sending: "Teleporting",
14818
+ encoding: "Encoding",
14819
+ limitReached: "Limit reached",
14820
+ audioOff: "Audio off",
14821
+ audioOn: "Audio on",
14822
+ buttons: {
14823
+ record: "Record video",
14824
+ recordAgain: "Record again",
14825
+ resume: "Resume",
14826
+ pause: "Pause",
14827
+ preview: "Preview"
14828
+ }
14829
+ },
14830
+ notifier: {
14831
+ entertain: false,
14832
+ entertainClass: "bg",
14833
+ entertainLimit: 6,
14834
+ entertainInterval: 9000
14835
+ },
14836
+ timeouts: {
14837
+ userMedia: 20e3,
14838
+ connection: 1e4,
14839
+ pingInterval: 30e3
14840
+ },
14841
+ loadUserMediaOnRecord: false,
14842
+ callbacks: {
14843
+ adjustFormDataBeforePosting: void 0
14844
+ },
14845
+ defaults: {
14846
+ from: void 0,
14847
+ to: void 0,
14848
+ cc: void 0,
14849
+ bcc: void 0,
14850
+ subject: void 0,
14851
+ body: void 0
14852
+ },
14853
+ displayErrors: true,
14854
+ adjustFormOnBrowserError: true,
14855
+ reportErrors: true,
14856
+ fakeUaString: void 0,
14857
+ versions: {
14858
+ videomailNinjaFormPlugin: void 0
14859
+ }
14860
+ };
14861
+ const src_options = options_options;
14862
+ function CollectLogger_define_property(obj, key, value) {
14770
14863
  if (key in obj) Object.defineProperty(obj, key, {
14771
14864
  value: value,
14772
14865
  enumerable: true,
@@ -14776,16 +14869,178 @@ var __webpack_exports__ = {};
14776
14869
  else obj[key] = value;
14777
14870
  return obj;
14778
14871
  }
14779
- class Buttons extends util_Despot {
14780
- replaceClickHandler(element, clickHandler) {
14781
- const wrappedClickHandler = (ev)=>{
14782
- ev.preventDefault();
14783
- try {
14784
- clickHandler({
14785
- event: ev
14786
- });
14787
- } catch (exc) {
14788
- this.emit("ERROR", {
14872
+ class CollectLogger_CollectLogger {
14873
+ lifo(level, parameters) {
14874
+ const line = parameters.join();
14875
+ if (this.stack.length > this.options.logStackSize) this.stack.pop();
14876
+ this.stack.push(`[${level}] ${line}`);
14877
+ return line;
14878
+ }
14879
+ debug() {
14880
+ for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
14881
+ const output = this.lifo("debug", args);
14882
+ if (this.options.verbose) if (this.browser.isFirefox()) this.logger.debug(output);
14883
+ else if (this.logger.groupCollapsed) {
14884
+ this.logger.groupCollapsed(output);
14885
+ this.logger.trace("Trace");
14886
+ this.logger.groupEnd();
14887
+ } else if (this.logger.debug) this.logger.debug(output);
14888
+ else console.log(output);
14889
+ }
14890
+ error() {
14891
+ for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
14892
+ this.logger.error(this.lifo("error", args));
14893
+ }
14894
+ warn() {
14895
+ for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
14896
+ this.logger.warn(this.lifo("warn", args));
14897
+ }
14898
+ info() {
14899
+ for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
14900
+ this.logger.info(this.lifo("info", args));
14901
+ }
14902
+ getLines() {
14903
+ return this.stack;
14904
+ }
14905
+ constructor(options){
14906
+ CollectLogger_define_property(this, "browser", void 0);
14907
+ CollectLogger_define_property(this, "logger", void 0);
14908
+ CollectLogger_define_property(this, "stack", []);
14909
+ CollectLogger_define_property(this, "options", void 0);
14910
+ this.options = options;
14911
+ this.browser = util_getBrowser(options);
14912
+ this.logger = options.logger;
14913
+ }
14914
+ }
14915
+ const CollectLogger = CollectLogger_CollectLogger;
14916
+ var isTest_process = __webpack_require__("./node_modules/process/browser.js");
14917
+ function isTest() {
14918
+ return "test" === isTest_process.env.ENVIRON;
14919
+ }
14920
+ const util_isTest = isTest;
14921
+ function mergeWithDefaultOptions_mergeWithDefaultOptions() {
14922
+ let options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
14923
+ const newOptions = cjs_default()(src_options, options, {
14924
+ arrayMerge (_destination, source) {
14925
+ return source;
14926
+ }
14927
+ });
14928
+ const collectLogger = new CollectLogger(newOptions);
14929
+ newOptions.logger = collectLogger;
14930
+ if (util_isTest()) newOptions.verbose = false;
14931
+ return newOptions;
14932
+ }
14933
+ const mergeWithDefaultOptions = mergeWithDefaultOptions_mergeWithDefaultOptions;
14934
+ var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
14935
+ var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
14936
+ var styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
14937
+ var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
14938
+ var insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
14939
+ var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
14940
+ var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
14941
+ var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
14942
+ var insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
14943
+ var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
14944
+ var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
14945
+ var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
14946
+ var main = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[12].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[12].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[12].use[3]!./src/styles/main.styl");
14947
+ var main_options = {};
14948
+ main_options.styleTagTransform = styleTagTransform_default();
14949
+ main_options.setAttributes = setAttributesWithoutAttributes_default();
14950
+ main_options.insert = insertBySelector_default().bind(null, "head");
14951
+ main_options.domAPI = styleDomAPI_default();
14952
+ main_options.insertStyleElement = insertStyleElement_default();
14953
+ injectStylesIntoStyleTag_default()(main.Z, main_options);
14954
+ main.Z && main.Z.locals && main.Z.locals;
14955
+ var document_visibility = __webpack_require__("./node_modules/document-visibility/index.js");
14956
+ var document_visibility_default = /*#__PURE__*/ __webpack_require__.n(document_visibility);
14957
+ function limitHeight(height, options, calledFrom) {
14958
+ let limitedHeight = document.documentElement.clientHeight;
14959
+ if (height) limitedHeight = Math.min(height, limitedHeight);
14960
+ if (limitedHeight < 1) throw error_createError({
14961
+ message: `Limited height ${limitedHeight} cannot be less than 1! (Called from ${calledFrom})`,
14962
+ options
14963
+ });
14964
+ return limitedHeight;
14965
+ }
14966
+ const dimensions_limitHeight = limitHeight;
14967
+ function getOuterWidth_getOuterWidth(element) {
14968
+ let rect = element.getBoundingClientRect();
14969
+ let outerWidth = rect.right - rect.left;
14970
+ if (outerWidth < 1) {
14971
+ rect = document.body.getBoundingClientRect();
14972
+ outerWidth = rect.right - rect.left;
14973
+ }
14974
+ return outerWidth;
14975
+ }
14976
+ const getOuterWidth = getOuterWidth_getOuterWidth;
14977
+ function limitWidth(element, options, width) {
14978
+ let limitedWidth;
14979
+ const outerWidth = getOuterWidth(element);
14980
+ limitedWidth = width && "number" == typeof width ? outerWidth > 0 && outerWidth < width ? outerWidth : width : outerWidth;
14981
+ if (Number.isInteger(limitedWidth) && limitedWidth < 1) throw error_createError({
14982
+ message: "Limited width cannot be less than 1!",
14983
+ options
14984
+ });
14985
+ return limitedWidth;
14986
+ }
14987
+ const dimensions_limitWidth = limitWidth;
14988
+ var contains = __webpack_require__("./node_modules/contains/index.js");
14989
+ var contains_default = /*#__PURE__*/ __webpack_require__.n(contains);
14990
+ function disableElement(element) {
14991
+ if (!element) return;
14992
+ if ("INPUT" === element.tagName || "BUTTON" === element.tagName) element.setAttribute("disabled", "true");
14993
+ else element.classList.add("disabled");
14994
+ }
14995
+ const html_disableElement = disableElement;
14996
+ function hideElement_hideElement(element) {
14997
+ if (!element) return;
14998
+ hidden_default()(element, true);
14999
+ }
15000
+ const hideElement = hideElement_hideElement;
15001
+ function adjustButton(buttonElement, show, type, disabled) {
15002
+ if (disabled) html_disableElement(buttonElement);
15003
+ if (type) buttonElement.type = type;
15004
+ if (!show) hideElement(buttonElement);
15005
+ return buttonElement;
15006
+ }
15007
+ const html_adjustButton = adjustButton;
15008
+ function enableElement(element) {
15009
+ if (!element) return;
15010
+ if ("INPUT" === element.tagName || "BUTTON" === element.tagName) element.removeAttribute("disabled");
15011
+ else element.classList.remove("disabled");
15012
+ }
15013
+ const html_enableElement = enableElement;
15014
+ function isShown(element) {
15015
+ if (!element) return false;
15016
+ return !hidden_default()(element);
15017
+ }
15018
+ const html_isShown = isShown;
15019
+ function showElement(element) {
15020
+ if (!element) return;
15021
+ hidden_default()(element, false);
15022
+ }
15023
+ const html_showElement = showElement;
15024
+ function buttons_define_property(obj, key, value) {
15025
+ if (key in obj) Object.defineProperty(obj, key, {
15026
+ value: value,
15027
+ enumerable: true,
15028
+ configurable: true,
15029
+ writable: true
15030
+ });
15031
+ else obj[key] = value;
15032
+ return obj;
15033
+ }
15034
+ class Buttons extends util_Despot {
15035
+ replaceClickHandler(element, clickHandler) {
15036
+ const wrappedClickHandler = (ev)=>{
15037
+ ev.preventDefault();
15038
+ try {
15039
+ clickHandler({
15040
+ event: ev
15041
+ });
15042
+ } catch (exc) {
15043
+ this.emit("ERROR", {
14789
15044
  exc
14790
15045
  });
14791
15046
  }
@@ -14889,12 +15144,12 @@ var __webpack_exports__ = {};
14889
15144
  }
14890
15145
  if (!(null == params ? void 0 : params.paused)) {
14891
15146
  html_disableElement(this.previewButton);
14892
- html_hideElement(this.previewButton);
15147
+ hideElement(this.previewButton);
14893
15148
  }
14894
15149
  if (!this.options.enableAutoValidation) html_enableElement(this.submitButton);
14895
15150
  }
14896
15151
  onGoingBack() {
14897
- html_hideElement(this.recordAgainButton);
15152
+ hideElement(this.recordAgainButton);
14898
15153
  html_showElement(this.recordButton);
14899
15154
  html_showElement(this.submitButton);
14900
15155
  }
@@ -14919,8 +15174,8 @@ var __webpack_exports__ = {};
14919
15174
  this.reset();
14920
15175
  }
14921
15176
  onPreview() {
14922
- html_hideElement(this.recordButton);
14923
- html_hideElement(this.previewButton);
15177
+ hideElement(this.recordButton);
15178
+ hideElement(this.previewButton);
14924
15179
  html_disableElement(this.audioOnRadioPair);
14925
15180
  html_disableElement(this.audioOffRadioPair);
14926
15181
  html_showElement(this.recordAgainButton);
@@ -14932,17 +15187,17 @@ var __webpack_exports__ = {};
14932
15187
  }
14933
15188
  adjustButtonsForPause() {
14934
15189
  if (!this.isCountingDown()) {
14935
- if (this.pauseButton) html_hideElement(this.pauseButton);
15190
+ if (this.pauseButton) hideElement(this.pauseButton);
14936
15191
  html_showElement(this.resumeButton);
14937
15192
  html_enableElement(this.resumeButton);
14938
- html_hideElement(this.recordButton);
15193
+ hideElement(this.recordButton);
14939
15194
  html_showElement(this.previewButton);
14940
15195
  html_enableElement(this.previewButton);
14941
15196
  }
14942
15197
  }
14943
15198
  onFirstFrameSent() {
14944
- html_hideElement(this.recordButton);
14945
- html_hideElement(this.recordAgainButton);
15199
+ hideElement(this.recordButton);
15200
+ hideElement(this.recordAgainButton);
14946
15201
  if (this.pauseButton) {
14947
15202
  html_showElement(this.pauseButton);
14948
15203
  html_enableElement(this.pauseButton);
@@ -14960,8 +15215,8 @@ var __webpack_exports__ = {};
14960
15215
  }
14961
15216
  }
14962
15217
  onResuming() {
14963
- html_hideElement(this.resumeButton);
14964
- html_hideElement(this.recordButton);
15218
+ hideElement(this.resumeButton);
15219
+ hideElement(this.recordButton);
14965
15220
  if (this.pauseButton) {
14966
15221
  html_enableElement(this.pauseButton);
14967
15222
  html_showElement(this.pauseButton);
@@ -14970,8 +15225,8 @@ var __webpack_exports__ = {};
14970
15225
  onStopping() {
14971
15226
  html_disableElement(this.previewButton);
14972
15227
  html_disableElement(this.recordButton);
14973
- html_hideElement(this.pauseButton);
14974
- html_hideElement(this.resumeButton);
15228
+ hideElement(this.pauseButton);
15229
+ hideElement(this.resumeButton);
14975
15230
  }
14976
15231
  onCountdown() {
14977
15232
  html_disableElement(this.recordButton);
@@ -14996,12 +15251,12 @@ var __webpack_exports__ = {};
14996
15251
  if (this.options.enableAutoValidation) html_enableElement(this.submitButton);
14997
15252
  }
14998
15253
  onHidden() {
14999
- html_hideElement(this.recordButton);
15000
- html_hideElement(this.previewButton);
15001
- html_hideElement(this.recordAgainButton);
15002
- html_hideElement(this.resumeButton);
15003
- html_hideElement(this.audioOnRadioPair);
15004
- html_hideElement(this.audioOffRadioPair);
15254
+ hideElement(this.recordButton);
15255
+ hideElement(this.previewButton);
15256
+ hideElement(this.recordAgainButton);
15257
+ hideElement(this.resumeButton);
15258
+ hideElement(this.audioOnRadioPair);
15259
+ hideElement(this.audioOffRadioPair);
15005
15260
  }
15006
15261
  onEnablingAudio() {
15007
15262
  this.options.logger.debug("Buttons: onEnablingAudio()");
@@ -15142,7 +15397,7 @@ var __webpack_exports__ = {};
15142
15397
  this.buttonsElement.classList.add(this.options.selectors.buttonsClass);
15143
15398
  this.container.appendChild(this.buttonsElement);
15144
15399
  }
15145
- html_hideElement(this.buttonsElement);
15400
+ hideElement(this.buttonsElement);
15146
15401
  this.buildButtons();
15147
15402
  if (!this.built) this.initEvents();
15148
15403
  this.built = true;
@@ -15158,16 +15413,16 @@ var __webpack_exports__ = {};
15158
15413
  }
15159
15414
  hide() {
15160
15415
  let deep = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false;
15161
- html_hideElement(this.buttonsElement);
15416
+ hideElement(this.buttonsElement);
15162
15417
  if (deep) {
15163
- html_hideElement(this.recordButton);
15164
- html_hideElement(this.pauseButton);
15165
- html_hideElement(this.resumeButton);
15166
- html_hideElement(this.previewButton);
15167
- html_hideElement(this.recordAgainButton);
15168
- html_hideElement(this.submitButton);
15169
- html_hideElement(this.audioOnRadioPair);
15170
- html_hideElement(this.audioOffRadioPair);
15418
+ hideElement(this.recordButton);
15419
+ hideElement(this.pauseButton);
15420
+ hideElement(this.resumeButton);
15421
+ hideElement(this.previewButton);
15422
+ hideElement(this.recordAgainButton);
15423
+ hideElement(this.submitButton);
15424
+ hideElement(this.audioOnRadioPair);
15425
+ hideElement(this.audioOffRadioPair);
15171
15426
  }
15172
15427
  }
15173
15428
  show() {
@@ -15423,7 +15678,9 @@ var __webpack_exports__ = {};
15423
15678
  }
15424
15679
  const recorder_recordNote = RecordNote;
15425
15680
  function pad(n) {
15426
- return n < 10 ? `0${n}` : n;
15681
+ const absNum = Math.abs(n);
15682
+ if (absNum < 10) return n < 0 ? `-0${absNum}` : `0${absNum}`;
15683
+ return String(n);
15427
15684
  }
15428
15685
  const util_pad = pad;
15429
15686
  function recordTimer_define_property(obj, key, value) {
@@ -15785,7 +16042,7 @@ var __webpack_exports__ = {};
15785
16042
  }
15786
16043
  error(err) {
15787
16044
  const message = err.message;
15788
- const explanation = err.explanation ? err.explanation.toString() : void 0;
16045
+ const explanation = err.explanation;
15789
16046
  if (!message) this.options.logger.debug(`Weird empty error message generated for error ${util_pretty(err)}`);
15790
16047
  this.notify(message, explanation, {
15791
16048
  blocking: true,
@@ -15973,152 +16230,74 @@ var __webpack_exports__ = {};
15973
16230
  canvas_to_buffer_modern_r.atob = void 0;
15974
16231
  var websocket_stream_stream = __webpack_require__("./node_modules/websocket-stream/stream.js");
15975
16232
  var stream_default = /*#__PURE__*/ __webpack_require__.n(websocket_stream_stream);
15976
- function isPromise_isPromise(anything) {
15977
- return Boolean(anything && "undefined" != typeof Promise && "[object Promise]" === Object.prototype.toString.call(anything));
15978
- }
15979
- const isPromise = isPromise_isPromise;
15980
- class audio_sample_modern_t {
15981
- constructor(r){
15982
- this.float32Array = void 0, this.float32Array = r;
15983
- }
15984
- toBuffer() {
15985
- const t = new Int16Array(this.float32Array.length);
15986
- return this.float32Array.forEach((r, a)=>{
15987
- t[a] = 32767 * Math.min(1, r);
15988
- }), typedarray_to_buffer(t);
15989
- }
15990
- }
15991
- var is_power_of_two = __webpack_require__("./node_modules/is-power-of-two/index.js");
15992
- var is_power_of_two_default = /*#__PURE__*/ __webpack_require__.n(is_power_of_two);
15993
- const NodeEnvType = {
15994
- DEVELOPMENT: "development",
15995
- PRODUCTION: "production"
15996
- };
15997
- var process = __webpack_require__("./node_modules/process/browser.js");
15998
- function getNodeEnv() {
15999
- if (!process.env.NODE_ENV) return NodeEnvType.DEVELOPMENT;
16000
- return process.env.NODE_ENV;
16001
- }
16002
- const util_getNodeEnv = getNodeEnv;
16003
- function isProductionMode() {
16004
- return util_getNodeEnv() === NodeEnvType.PRODUCTION;
16005
- }
16006
- const util_isProductionMode = isProductionMode;
16007
- const PRODUCTION = util_isProductionMode();
16008
- const options_options = {
16009
- logger: console,
16010
- logStackSize: 30,
16011
- verbose: !PRODUCTION,
16012
- baseUrl: "https://videomail.io",
16013
- socketUrl: "wss://videomail.io",
16014
- siteName: "videomail-client-demo",
16015
- enablePause: true,
16016
- enableAutoPause: true,
16017
- enableSpace: true,
16018
- submitWithVideomail: false,
16019
- disableSubmit: false,
16020
- enableAutoValidation: true,
16021
- enableAutoUnload: true,
16022
- enableAutoSubmission: true,
16023
- enctype: "application/json",
16024
- selectors: {
16025
- containerId: void 0,
16026
- containerClass: "videomail",
16027
- replayClass: "replay",
16028
- userMediaClass: "userMedia",
16029
- visualsClass: "visuals",
16030
- buttonClass: void 0,
16031
- buttonsClass: "buttons",
16032
- recordButtonClass: "record",
16033
- pauseButtonClass: "pause",
16034
- resumeButtonClass: "resume",
16035
- previewButtonClass: "preview",
16036
- recordAgainButtonClass: "recordAgain",
16037
- submitButtonClass: "submit",
16038
- subjectInputName: "subject",
16039
- fromInputName: "from",
16040
- toInputName: "to",
16041
- ccInputName: "cc",
16042
- bccInputName: "bcc",
16043
- bodyInputName: "body",
16044
- sendCopyInputName: "sendCopy",
16045
- keyInputName: "videomail_key",
16046
- parentKeyInputName: "videomail_parent_key",
16047
- formId: void 0,
16048
- submitButtonId: void 0,
16049
- submitButtonSelector: void 0
16050
- },
16051
- audio: {
16052
- enabled: false,
16053
- switch: false,
16054
- volume: 0.2,
16055
- bufferSize: "auto"
16056
- },
16057
- video: {
16058
- fps: 15,
16059
- limitSeconds: 30,
16060
- countdown: 3,
16061
- width: void 0,
16062
- height: void 0,
16063
- facingMode: "user",
16064
- facingModeButton: false,
16065
- stretch: false
16066
- },
16067
- image: {
16068
- quality: 0.42,
16069
- types: [
16070
- "webp",
16071
- "jpeg"
16072
- ]
16073
- },
16074
- text: {
16075
- pausedHeader: "Paused",
16076
- pausedHint: void 0,
16077
- sending: "Teleporting",
16078
- encoding: "Encoding",
16079
- limitReached: "Limit reached",
16080
- audioOff: "Audio off",
16081
- audioOn: "Audio on",
16082
- buttons: {
16083
- record: "Record video",
16084
- recordAgain: "Record again",
16085
- resume: "Resume",
16086
- pause: "Pause",
16087
- preview: "Preview"
16088
- }
16089
- },
16090
- notifier: {
16091
- entertain: false,
16092
- entertainClass: "bg",
16093
- entertainLimit: 6,
16094
- entertainInterval: 9000
16095
- },
16096
- timeouts: {
16097
- userMedia: 20e3,
16098
- connection: 1e4,
16099
- pingInterval: 30e3
16100
- },
16101
- loadUserMediaOnRecord: false,
16102
- callbacks: {
16103
- adjustFormDataBeforePosting: void 0
16104
- },
16105
- defaults: {
16106
- from: void 0,
16107
- to: void 0,
16108
- cc: void 0,
16109
- bcc: void 0,
16110
- subject: void 0,
16111
- body: void 0
16112
- },
16113
- displayErrors: true,
16114
- adjustFormOnBrowserError: true,
16115
- reportErrors: true,
16116
- fakeUaString: void 0,
16117
- versions: {
16118
- videomailNinjaFormPlugin: void 0
16233
+ function figureMinHeight(height, options) {
16234
+ let minHeight;
16235
+ if (options.video.height) {
16236
+ minHeight = Math.min(options.video.height, height);
16237
+ if (minHeight < 1) throw error_createError({
16238
+ message: `Got a min height less than 1 (${minHeight})!`,
16239
+ options
16240
+ });
16241
+ } else minHeight = height;
16242
+ return minHeight;
16243
+ }
16244
+ const dimensions_figureMinHeight = figureMinHeight;
16245
+ function getRatio_getRatio(options, videoHeight, videoWidth) {
16246
+ let ratio = 1;
16247
+ const hasVideoDimensions = videoHeight && videoWidth;
16248
+ const desiredHeight = options.video.height;
16249
+ const desiredWidth = options.video.width;
16250
+ const hasDesiredDimensions = desiredHeight && desiredWidth;
16251
+ if (hasDesiredDimensions) ratio = hasVideoDimensions ? videoHeight < desiredHeight || videoWidth < desiredWidth ? videoHeight / videoWidth : desiredHeight / desiredWidth : desiredHeight / desiredWidth;
16252
+ else if (hasVideoDimensions) ratio = videoHeight / videoWidth;
16253
+ return ratio;
16254
+ }
16255
+ const getRatio = getRatio_getRatio;
16256
+ function calculateHeight(responsive, videoWidth, options, target, ratio, element) {
16257
+ let width = videoWidth;
16258
+ if (width < 1) throw error_createError({
16259
+ message: `Unable to calculate height for target ${target} when width is less than 1 (= ${width}) and responsive mode is set to ${responsive}`,
16260
+ options
16261
+ });
16262
+ if (responsive && element) width = dimensions_limitWidth(element, options, width);
16263
+ const chosenRatio = null != ratio ? ratio : getRatio(options, void 0, videoWidth);
16264
+ const height = Math.round(width * chosenRatio);
16265
+ if (Number.isInteger(height) && height < 1) throw error_createError({
16266
+ message: "Just calculated a height less than 1 which is wrong.",
16267
+ options
16268
+ });
16269
+ return dimensions_figureMinHeight(height, options);
16270
+ }
16271
+ const dimensions_calculateHeight = calculateHeight;
16272
+ function calculateWidth(responsive, videoHeight, options, ratio) {
16273
+ let height = dimensions_figureMinHeight(videoHeight, options);
16274
+ if (responsive) height = dimensions_limitHeight(height, options, "calculateWidth");
16275
+ if (!height || height < 1) throw error_createError({
16276
+ message: `Height ${height} cannot be smaller than 1 when calculating width.`,
16277
+ options
16278
+ });
16279
+ const chosenRatio = null != ratio ? ratio : getRatio(options, videoHeight);
16280
+ const calculatedWidth = Math.round(height / chosenRatio);
16281
+ if (calculatedWidth < 1) throw error_createError({
16282
+ message: "Calculated width cannot be smaller than 1!",
16283
+ options
16284
+ });
16285
+ return calculatedWidth;
16286
+ }
16287
+ const dimensions_calculateWidth = calculateWidth;
16288
+ class audio_sample_modern_t {
16289
+ constructor(r){
16290
+ this.float32Array = void 0, this.float32Array = r;
16119
16291
  }
16120
- };
16121
- const src_options = options_options;
16292
+ toBuffer() {
16293
+ const t = new Int16Array(this.float32Array.length);
16294
+ return this.float32Array.forEach((r, a)=>{
16295
+ t[a] = 32767 * Math.min(1, r);
16296
+ }), typedarray_to_buffer(t);
16297
+ }
16298
+ }
16299
+ var is_power_of_two = __webpack_require__("./node_modules/is-power-of-two/index.js");
16300
+ var is_power_of_two_default = /*#__PURE__*/ __webpack_require__.n(is_power_of_two);
16122
16301
  function AudioRecorder_define_property(obj, key, value) {
16123
16302
  if (key in obj) Object.defineProperty(obj, key, {
16124
16303
  value: value,
@@ -16214,6 +16393,13 @@ var __webpack_exports__ = {};
16214
16393
  }
16215
16394
  }
16216
16395
  const AudioRecorder = AudioRecorder_AudioRecorder;
16396
+ function getFirstVideoTrack(localMediaStream) {
16397
+ const videoTracks = localMediaStream.getVideoTracks();
16398
+ let videoTrack;
16399
+ if (videoTracks[0]) videoTrack = videoTracks[0];
16400
+ return videoTrack;
16401
+ }
16402
+ const media_getFirstVideoTrack = getFirstVideoTrack;
16217
16403
  const MEDIA_EVENTS = [
16218
16404
  "loadstart",
16219
16405
  "suspend",
@@ -16235,13 +16421,10 @@ var __webpack_exports__ = {};
16235
16421
  "volumechange"
16236
16422
  ];
16237
16423
  const mediaEvents = MEDIA_EVENTS;
16238
- function getFirstVideoTrack(localMediaStream) {
16239
- const videoTracks = localMediaStream.getVideoTracks();
16240
- let videoTrack;
16241
- if (videoTracks[0]) videoTrack = videoTracks[0];
16242
- return videoTrack;
16424
+ function isPromise_isPromise(anything) {
16425
+ return Boolean(anything && "undefined" != typeof Promise && "[object Promise]" === Object.prototype.toString.call(anything));
16243
16426
  }
16244
- const media_getFirstVideoTrack = getFirstVideoTrack;
16427
+ const isPromise = isPromise_isPromise;
16245
16428
  function userMedia_define_property(obj, key, value) {
16246
16429
  if (key in obj) Object.defineProperty(obj, key, {
16247
16430
  value: value,
@@ -16549,92 +16732,6 @@ var __webpack_exports__ = {};
16549
16732
  }
16550
16733
  }
16551
16734
  const visuals_userMedia = UserMedia;
16552
- function figureMinHeight(height, options) {
16553
- let minHeight;
16554
- if (options.video.height) {
16555
- minHeight = Math.min(options.video.height, height);
16556
- if (minHeight < 1) throw error_createError({
16557
- message: `Got a min height less than 1 (${minHeight})!`,
16558
- options
16559
- });
16560
- } else minHeight = height;
16561
- return minHeight;
16562
- }
16563
- const dimensions_figureMinHeight = figureMinHeight;
16564
- function getRatio_getRatio(options, videoHeight, videoWidth) {
16565
- let ratio = 1;
16566
- const hasVideoDimensions = videoHeight && videoWidth;
16567
- const desiredHeight = options.video.height;
16568
- const desiredWidth = options.video.width;
16569
- const hasDesiredDimensions = desiredHeight && desiredWidth;
16570
- if (hasDesiredDimensions) ratio = hasVideoDimensions ? videoHeight < desiredHeight || videoWidth < desiredWidth ? videoHeight / videoWidth : desiredHeight / desiredWidth : desiredHeight / desiredWidth;
16571
- else if (hasVideoDimensions) ratio = videoHeight / videoWidth;
16572
- return ratio;
16573
- }
16574
- const getRatio = getRatio_getRatio;
16575
- function limitHeight(height, options, calledFrom) {
16576
- let limitedHeight = document.documentElement.clientHeight;
16577
- if (height) limitedHeight = Math.min(height, limitedHeight);
16578
- if (limitedHeight < 1) throw error_createError({
16579
- message: `Limited height ${limitedHeight} cannot be less than 1! (Called from ${calledFrom})`,
16580
- options
16581
- });
16582
- return limitedHeight;
16583
- }
16584
- const dimensions_limitHeight = limitHeight;
16585
- function calculateWidth(responsive, videoHeight, options, ratio) {
16586
- let height = dimensions_figureMinHeight(videoHeight, options);
16587
- if (responsive) height = dimensions_limitHeight(height, options, "calculateWidth");
16588
- if (!height || height < 1) throw error_createError({
16589
- message: `Height ${height} cannot be smaller than 1 when calculating width.`,
16590
- options
16591
- });
16592
- const chosenRatio = null != ratio ? ratio : getRatio(options, videoHeight);
16593
- const calculatedWidth = Math.round(height / chosenRatio);
16594
- if (calculatedWidth < 1) throw error_createError({
16595
- message: "Calculated width cannot be smaller than 1!",
16596
- options
16597
- });
16598
- return calculatedWidth;
16599
- }
16600
- const dimensions_calculateWidth = calculateWidth;
16601
- function getOuterWidth_getOuterWidth(element) {
16602
- let rect = element.getBoundingClientRect();
16603
- let outerWidth = rect.right - rect.left;
16604
- if (outerWidth < 1) {
16605
- rect = document.body.getBoundingClientRect();
16606
- outerWidth = rect.right - rect.left;
16607
- }
16608
- return outerWidth;
16609
- }
16610
- const getOuterWidth = getOuterWidth_getOuterWidth;
16611
- function limitWidth(element, options, width) {
16612
- let limitedWidth;
16613
- const outerWidth = getOuterWidth(element);
16614
- limitedWidth = width && "number" == typeof width ? outerWidth > 0 && outerWidth < width ? outerWidth : width : outerWidth;
16615
- if (Number.isInteger(limitedWidth) && limitedWidth < 1) throw error_createError({
16616
- message: "Limited width cannot be less than 1!",
16617
- options
16618
- });
16619
- return limitedWidth;
16620
- }
16621
- const dimensions_limitWidth = limitWidth;
16622
- function calculateHeight(responsive, videoWidth, options, target, ratio, element) {
16623
- let width = videoWidth;
16624
- if (width < 1) throw error_createError({
16625
- message: `Unable to calculate height for target ${target} when width is less than 1 (= ${width}) and responsive mode is set to ${responsive}`,
16626
- options
16627
- });
16628
- if (responsive && element) width = dimensions_limitWidth(element, options, width);
16629
- const chosenRatio = null != ratio ? ratio : getRatio(options, void 0, videoWidth);
16630
- const height = Math.round(width * chosenRatio);
16631
- if (Number.isInteger(height) && height < 1) throw error_createError({
16632
- message: "Just calculated a height less than 1 which is wrong.",
16633
- options
16634
- });
16635
- return dimensions_figureMinHeight(height, options);
16636
- }
16637
- const dimensions_calculateHeight = calculateHeight;
16638
16735
  var Buffer = __webpack_require__("./node_modules/buffer/index.js")["Buffer"];
16639
16736
  function recorder_define_property(obj, key, value) {
16640
16737
  if (key in obj) Object.defineProperty(obj, key, {
@@ -18121,27 +18218,6 @@ var __webpack_exports__ = {};
18121
18218
  }
18122
18219
  }
18123
18220
  const wrappers_visuals = Visuals;
18124
- var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
18125
- var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
18126
- var styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
18127
- var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
18128
- var insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
18129
- var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
18130
- var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
18131
- var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
18132
- var insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
18133
- var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
18134
- var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
18135
- var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
18136
- var main = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[12].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[12].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[12].use[3]!./src/styles/main.styl");
18137
- var main_options = {};
18138
- main_options.styleTagTransform = styleTagTransform_default();
18139
- main_options.setAttributes = setAttributesWithoutAttributes_default();
18140
- main_options.insert = insertBySelector_default().bind(null, "head");
18141
- main_options.domAPI = styleDomAPI_default();
18142
- main_options.insertStyleElement = insertStyleElement_default();
18143
- injectStylesIntoStyleTag_default()(main.Z, main_options);
18144
- main.Z && main.Z.locals && main.Z.locals;
18145
18221
  function container_define_property(obj, key, value) {
18146
18222
  if (key in obj) Object.defineProperty(obj, key, {
18147
18223
  value: value,
@@ -18635,80 +18711,6 @@ var __webpack_exports__ = {};
18635
18711
  }
18636
18712
  }
18637
18713
  const wrappers_container = Container;
18638
- var cjs = __webpack_require__("./node_modules/deepmerge/dist/cjs.js");
18639
- var cjs_default = /*#__PURE__*/ __webpack_require__.n(cjs);
18640
- function CollectLogger_define_property(obj, key, value) {
18641
- if (key in obj) Object.defineProperty(obj, key, {
18642
- value: value,
18643
- enumerable: true,
18644
- configurable: true,
18645
- writable: true
18646
- });
18647
- else obj[key] = value;
18648
- return obj;
18649
- }
18650
- class CollectLogger_CollectLogger {
18651
- lifo(level, parameters) {
18652
- const line = parameters.join();
18653
- if (this.stack.length > this.options.logStackSize) this.stack.pop();
18654
- this.stack.push(`[${level}] ${line}`);
18655
- return line;
18656
- }
18657
- debug() {
18658
- for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
18659
- const output = this.lifo("debug", args);
18660
- if (this.options.verbose) if (this.browser.isFirefox()) this.logger.debug(output);
18661
- else if (this.logger.groupCollapsed) {
18662
- this.logger.groupCollapsed(output);
18663
- this.logger.trace("Trace");
18664
- this.logger.groupEnd();
18665
- } else if (this.logger.debug) this.logger.debug(output);
18666
- else console.log(output);
18667
- }
18668
- error() {
18669
- for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
18670
- this.logger.error(this.lifo("error", args));
18671
- }
18672
- warn() {
18673
- for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
18674
- this.logger.warn(this.lifo("warn", args));
18675
- }
18676
- info() {
18677
- for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
18678
- this.logger.info(this.lifo("info", args));
18679
- }
18680
- getLines() {
18681
- return this.stack;
18682
- }
18683
- constructor(options){
18684
- CollectLogger_define_property(this, "browser", void 0);
18685
- CollectLogger_define_property(this, "logger", void 0);
18686
- CollectLogger_define_property(this, "stack", []);
18687
- CollectLogger_define_property(this, "options", void 0);
18688
- this.options = options;
18689
- this.browser = util_getBrowser(options);
18690
- this.logger = options.logger;
18691
- }
18692
- }
18693
- const CollectLogger = CollectLogger_CollectLogger;
18694
- var isTest_process = __webpack_require__("./node_modules/process/browser.js");
18695
- function isTest() {
18696
- return "test" === isTest_process.env.ENVIRON;
18697
- }
18698
- const util_isTest = isTest;
18699
- function mergeWithDefaultOptions() {
18700
- let options = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
18701
- const newOptions = cjs_default()(src_options, options, {
18702
- arrayMerge (_destination, source) {
18703
- return source;
18704
- }
18705
- });
18706
- const collectLogger = new CollectLogger(newOptions);
18707
- newOptions.logger = collectLogger;
18708
- if (util_isTest()) newOptions.verbose = false;
18709
- return newOptions;
18710
- }
18711
- const options_mergeWithDefaultOptions = mergeWithDefaultOptions;
18712
18714
  function client_define_property(obj, key, value) {
18713
18715
  if (key in obj) Object.defineProperty(obj, key, {
18714
18716
  value: value,
@@ -18799,7 +18801,7 @@ var __webpack_exports__ = {};
18799
18801
  if (this.options.logger.getLines) return this.options.logger.getLines();
18800
18802
  }
18801
18803
  constructor(options = {}){
18802
- super("VideomailClient", options_mergeWithDefaultOptions(options)), client_define_property(this, "container", void 0);
18804
+ super("VideomailClient", mergeWithDefaultOptions(options)), client_define_property(this, "container", void 0);
18803
18805
  this.validateOptions();
18804
18806
  util_Despot.removeAllListeners();
18805
18807
  this.container = new wrappers_container(this.options);