@sawport/react-sdk 0.1.0-alpha.40 → 0.1.0-alpha.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1398 -498
- package/dist/index.umd.js +9 -9
- package/dist/style.css +1 -1
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
1
|
+
var commonjsGlobal$1 = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
2
2
|
function getDefaultExportFromCjs(x2) {
|
|
3
3
|
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
4
4
|
}
|
|
@@ -34,7 +34,7 @@ var react_production_min = {};
|
|
|
34
34
|
* This source code is licensed under the MIT license found in the
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
36
|
*/
|
|
37
|
-
var l$4 = Symbol.for("react.element"), n$4 = Symbol.for("react.portal"), p$4 = Symbol.for("react.fragment"), q$3 = Symbol.for("react.strict_mode"), r$3 = Symbol.for("react.profiler"), t$3 = Symbol.for("react.provider"), u$
|
|
37
|
+
var l$4 = Symbol.for("react.element"), n$4 = Symbol.for("react.portal"), p$4 = Symbol.for("react.fragment"), q$3 = Symbol.for("react.strict_mode"), r$3 = Symbol.for("react.profiler"), t$3 = Symbol.for("react.provider"), u$2 = Symbol.for("react.context"), v$3 = Symbol.for("react.forward_ref"), w$2 = Symbol.for("react.suspense"), x$2 = Symbol.for("react.memo"), y$2 = Symbol.for("react.lazy"), z$3 = Symbol.iterator;
|
|
38
38
|
function A$3(a2) {
|
|
39
39
|
if (null === a2 || "object" !== typeof a2)
|
|
40
40
|
return null;
|
|
@@ -226,7 +226,7 @@ react_production_min.cloneElement = function(a2, b2, e2) {
|
|
|
226
226
|
return { $$typeof: l$4, type: a2.type, key: c2, ref: k2, props: d2, _owner: h2 };
|
|
227
227
|
};
|
|
228
228
|
react_production_min.createContext = function(a2) {
|
|
229
|
-
a2 = { $$typeof: u$
|
|
229
|
+
a2 = { $$typeof: u$2, _currentValue: a2, _currentValue2: a2, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
|
|
230
230
|
a2.Provider = { $$typeof: t$3, _context: a2 };
|
|
231
231
|
return a2.Consumer = a2;
|
|
232
232
|
};
|
|
@@ -1344,14 +1344,14 @@ function baseToString$2(value2) {
|
|
|
1344
1344
|
var result = value2 + "";
|
|
1345
1345
|
return result == "0" && 1 / value2 == -INFINITY$2 ? "-0" : result;
|
|
1346
1346
|
}
|
|
1347
|
-
function toString$
|
|
1347
|
+
function toString$g(value2) {
|
|
1348
1348
|
return value2 == null ? "" : baseToString$2(value2);
|
|
1349
1349
|
}
|
|
1350
1350
|
function toPath(value2) {
|
|
1351
1351
|
if (isArray$l(value2)) {
|
|
1352
1352
|
return arrayMap$2(value2, toKey$5);
|
|
1353
1353
|
}
|
|
1354
|
-
return isSymbol$a(value2) ? [value2] : copyArray(stringToPath$4(toString$
|
|
1354
|
+
return isSymbol$a(value2) ? [value2] : copyArray(stringToPath$4(toString$g(value2)));
|
|
1355
1355
|
}
|
|
1356
1356
|
var isProduction = true;
|
|
1357
1357
|
function warning$1(condition, message) {
|
|
@@ -1379,12 +1379,12 @@ var reactIs_production_min = {};
|
|
|
1379
1379
|
* This source code is licensed under the MIT license found in the
|
|
1380
1380
|
* LICENSE file in the root directory of this source tree.
|
|
1381
1381
|
*/
|
|
1382
|
-
var b$1 = "function" === typeof Symbol && Symbol.for, c$
|
|
1382
|
+
var b$1 = "function" === typeof Symbol && Symbol.for, c$3 = b$1 ? Symbol.for("react.element") : 60103, d$1 = b$1 ? Symbol.for("react.portal") : 60106, e$1 = b$1 ? Symbol.for("react.fragment") : 60107, f$2 = b$1 ? Symbol.for("react.strict_mode") : 60108, g$1 = b$1 ? Symbol.for("react.profiler") : 60114, h$1 = b$1 ? Symbol.for("react.provider") : 60109, k$2 = b$1 ? Symbol.for("react.context") : 60110, l$3 = b$1 ? Symbol.for("react.async_mode") : 60111, m$3 = b$1 ? Symbol.for("react.concurrent_mode") : 60111, n$3 = b$1 ? Symbol.for("react.forward_ref") : 60112, p$3 = b$1 ? Symbol.for("react.suspense") : 60113, q$2 = b$1 ? Symbol.for("react.suspense_list") : 60120, r$2 = b$1 ? Symbol.for("react.memo") : 60115, t$2 = b$1 ? Symbol.for("react.lazy") : 60116, v$2 = b$1 ? Symbol.for("react.block") : 60121, w$1 = b$1 ? Symbol.for("react.fundamental") : 60117, x$1 = b$1 ? Symbol.for("react.responder") : 60118, y$1 = b$1 ? Symbol.for("react.scope") : 60119;
|
|
1383
1383
|
function z$2(a2) {
|
|
1384
1384
|
if ("object" === typeof a2 && null !== a2) {
|
|
1385
1385
|
var u2 = a2.$$typeof;
|
|
1386
1386
|
switch (u2) {
|
|
1387
|
-
case c$
|
|
1387
|
+
case c$3:
|
|
1388
1388
|
switch (a2 = a2.type, a2) {
|
|
1389
1389
|
case l$3:
|
|
1390
1390
|
case m$3:
|
|
@@ -1417,7 +1417,7 @@ reactIs_production_min.AsyncMode = l$3;
|
|
|
1417
1417
|
reactIs_production_min.ConcurrentMode = m$3;
|
|
1418
1418
|
reactIs_production_min.ContextConsumer = k$2;
|
|
1419
1419
|
reactIs_production_min.ContextProvider = h$1;
|
|
1420
|
-
reactIs_production_min.Element = c$
|
|
1420
|
+
reactIs_production_min.Element = c$3;
|
|
1421
1421
|
reactIs_production_min.ForwardRef = n$3;
|
|
1422
1422
|
reactIs_production_min.Fragment = e$1;
|
|
1423
1423
|
reactIs_production_min.Lazy = t$2;
|
|
@@ -1437,7 +1437,7 @@ reactIs_production_min.isContextProvider = function(a2) {
|
|
|
1437
1437
|
return z$2(a2) === h$1;
|
|
1438
1438
|
};
|
|
1439
1439
|
reactIs_production_min.isElement = function(a2) {
|
|
1440
|
-
return "object" === typeof a2 && null !== a2 && a2.$$typeof === c$
|
|
1440
|
+
return "object" === typeof a2 && null !== a2 && a2.$$typeof === c$3;
|
|
1441
1441
|
};
|
|
1442
1442
|
reactIs_production_min.isForwardRef = function(a2) {
|
|
1443
1443
|
return z$2(a2) === n$3;
|
|
@@ -2690,7 +2690,7 @@ function baseClone(src2, circulars, clones) {
|
|
|
2690
2690
|
function clone$2(src2) {
|
|
2691
2691
|
return baseClone(src2, [], []);
|
|
2692
2692
|
}
|
|
2693
|
-
const toString$
|
|
2693
|
+
const toString$f = Object.prototype.toString;
|
|
2694
2694
|
const errorToString = Error.prototype.toString;
|
|
2695
2695
|
const regExpToString = RegExp.prototype.toString;
|
|
2696
2696
|
const symbolToString$1 = typeof Symbol !== "undefined" ? Symbol.prototype.toString : () => "";
|
|
@@ -2713,7 +2713,7 @@ function printSimpleValue(val, quoteStrings = false) {
|
|
|
2713
2713
|
return "[Function " + (val.name || "anonymous") + "]";
|
|
2714
2714
|
if (typeOf === "symbol")
|
|
2715
2715
|
return symbolToString$1.call(val).replace(SYMBOL_REGEXP, "Symbol($1)");
|
|
2716
|
-
const tag = toString$
|
|
2716
|
+
const tag = toString$f.call(val).slice(8, -1);
|
|
2717
2717
|
if (tag === "Date")
|
|
2718
2718
|
return isNaN(val.getTime()) ? "" + val : val.toISOString(val);
|
|
2719
2719
|
if (tag === "Error" || val instanceof Error)
|
|
@@ -2807,7 +2807,7 @@ function baseHas$1(object2, key2) {
|
|
|
2807
2807
|
var _baseHas = baseHas$1;
|
|
2808
2808
|
var isArray$j = Array.isArray;
|
|
2809
2809
|
var isArray_1 = isArray$j;
|
|
2810
|
-
var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
2810
|
+
var freeGlobal$1 = typeof commonjsGlobal$1 == "object" && commonjsGlobal$1 && commonjsGlobal$1.Object === Object && commonjsGlobal$1;
|
|
2811
2811
|
var _freeGlobal = freeGlobal$1;
|
|
2812
2812
|
var freeGlobal = _freeGlobal;
|
|
2813
2813
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
@@ -3221,16 +3221,16 @@ function baseToString$1(value2) {
|
|
|
3221
3221
|
}
|
|
3222
3222
|
var _baseToString = baseToString$1;
|
|
3223
3223
|
var baseToString = _baseToString;
|
|
3224
|
-
function toString$
|
|
3224
|
+
function toString$e(value2) {
|
|
3225
3225
|
return value2 == null ? "" : baseToString(value2);
|
|
3226
3226
|
}
|
|
3227
|
-
var toString_1 = toString$
|
|
3228
|
-
var isArray$g = isArray_1, isKey$2 = _isKey, stringToPath$1 = _stringToPath, toString$
|
|
3227
|
+
var toString_1 = toString$e;
|
|
3228
|
+
var isArray$g = isArray_1, isKey$2 = _isKey, stringToPath$1 = _stringToPath, toString$d = toString_1;
|
|
3229
3229
|
function castPath$2(value2, object2) {
|
|
3230
3230
|
if (isArray$g(value2)) {
|
|
3231
3231
|
return value2;
|
|
3232
3232
|
}
|
|
3233
|
-
return isKey$2(value2, object2) ? [value2] : stringToPath$1(toString$
|
|
3233
|
+
return isKey$2(value2, object2) ? [value2] : stringToPath$1(toString$d(value2));
|
|
3234
3234
|
}
|
|
3235
3235
|
var _castPath = castPath$2;
|
|
3236
3236
|
var baseGetTag$2 = _baseGetTag, isObjectLike$3 = isObjectLike_1;
|
|
@@ -5532,13 +5532,13 @@ var deburredLetters = {
|
|
|
5532
5532
|
};
|
|
5533
5533
|
var deburrLetter$1 = basePropertyOf(deburredLetters);
|
|
5534
5534
|
var _deburrLetter = deburrLetter$1;
|
|
5535
|
-
var deburrLetter = _deburrLetter, toString$
|
|
5535
|
+
var deburrLetter = _deburrLetter, toString$c = toString_1;
|
|
5536
5536
|
var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
|
|
5537
5537
|
var rsComboMarksRange$3 = "\\u0300-\\u036f", reComboHalfMarksRange$3 = "\\ufe20-\\ufe2f", rsComboSymbolsRange$3 = "\\u20d0-\\u20ff", rsComboRange$3 = rsComboMarksRange$3 + reComboHalfMarksRange$3 + rsComboSymbolsRange$3;
|
|
5538
5538
|
var rsCombo$2 = "[" + rsComboRange$3 + "]";
|
|
5539
5539
|
var reComboMark = RegExp(rsCombo$2, "g");
|
|
5540
5540
|
function deburr$1(string2) {
|
|
5541
|
-
string2 = toString$
|
|
5541
|
+
string2 = toString$c(string2);
|
|
5542
5542
|
return string2 && string2.replace(reLatin, deburrLetter).replace(reComboMark, "");
|
|
5543
5543
|
}
|
|
5544
5544
|
var deburr_1 = deburr$1;
|
|
@@ -5569,9 +5569,9 @@ function unicodeWords$1(string2) {
|
|
|
5569
5569
|
return string2.match(reUnicodeWord) || [];
|
|
5570
5570
|
}
|
|
5571
5571
|
var _unicodeWords = unicodeWords$1;
|
|
5572
|
-
var asciiWords = _asciiWords, hasUnicodeWord = _hasUnicodeWord, toString$
|
|
5572
|
+
var asciiWords = _asciiWords, hasUnicodeWord = _hasUnicodeWord, toString$b = toString_1, unicodeWords = _unicodeWords;
|
|
5573
5573
|
function words$1(string2, pattern, guard) {
|
|
5574
|
-
string2 = toString$
|
|
5574
|
+
string2 = toString$b(string2);
|
|
5575
5575
|
pattern = guard ? void 0 : pattern;
|
|
5576
5576
|
if (pattern === void 0) {
|
|
5577
5577
|
return hasUnicodeWord(string2) ? unicodeWords(string2) : asciiWords(string2);
|
|
@@ -5642,10 +5642,10 @@ function stringToArray$1(string2) {
|
|
|
5642
5642
|
return hasUnicode$1(string2) ? unicodeToArray(string2) : asciiToArray(string2);
|
|
5643
5643
|
}
|
|
5644
5644
|
var _stringToArray = stringToArray$1;
|
|
5645
|
-
var castSlice = _castSlice, hasUnicode = _hasUnicode, stringToArray = _stringToArray, toString$
|
|
5645
|
+
var castSlice = _castSlice, hasUnicode = _hasUnicode, stringToArray = _stringToArray, toString$a = toString_1;
|
|
5646
5646
|
function createCaseFirst$1(methodName) {
|
|
5647
5647
|
return function(string2) {
|
|
5648
|
-
string2 = toString$
|
|
5648
|
+
string2 = toString$a(string2);
|
|
5649
5649
|
var strSymbols = hasUnicode(string2) ? stringToArray(string2) : void 0;
|
|
5650
5650
|
var chr = strSymbols ? strSymbols[0] : string2.charAt(0);
|
|
5651
5651
|
var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string2.slice(1);
|
|
@@ -5656,9 +5656,9 @@ var _createCaseFirst = createCaseFirst$1;
|
|
|
5656
5656
|
var createCaseFirst = _createCaseFirst;
|
|
5657
5657
|
var upperFirst$1 = createCaseFirst("toUpperCase");
|
|
5658
5658
|
var upperFirst_1 = upperFirst$1;
|
|
5659
|
-
var toString$
|
|
5659
|
+
var toString$9 = toString_1, upperFirst = upperFirst_1;
|
|
5660
5660
|
function capitalize$1(string2) {
|
|
5661
|
-
return upperFirst(toString$
|
|
5661
|
+
return upperFirst(toString$9(string2).toLowerCase());
|
|
5662
5662
|
}
|
|
5663
5663
|
var capitalize_1 = capitalize$1;
|
|
5664
5664
|
var capitalize = capitalize_1, createCompounder = _createCompounder;
|
|
@@ -8937,7 +8937,7 @@ var lib$2 = { exports: {} };
|
|
|
8937
8937
|
var implementation = { exports: {} };
|
|
8938
8938
|
var key = "__global_unique_id__";
|
|
8939
8939
|
var gud = function() {
|
|
8940
|
-
return commonjsGlobal[key] = (commonjsGlobal[key] || 0) + 1;
|
|
8940
|
+
return commonjsGlobal$1[key] = (commonjsGlobal$1[key] || 0) + 1;
|
|
8941
8941
|
};
|
|
8942
8942
|
var warning = function() {
|
|
8943
8943
|
};
|
|
@@ -19007,10 +19007,10 @@ var bind$7 = function bind2(fn, thisArg) {
|
|
|
19007
19007
|
};
|
|
19008
19008
|
};
|
|
19009
19009
|
var bind$6 = bind$7;
|
|
19010
|
-
var toString$
|
|
19010
|
+
var toString$8 = Object.prototype.toString;
|
|
19011
19011
|
var kindOf = function(cache) {
|
|
19012
19012
|
return function(thing) {
|
|
19013
|
-
var str = toString$
|
|
19013
|
+
var str = toString$8.call(thing);
|
|
19014
19014
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
19015
19015
|
};
|
|
19016
19016
|
}(/* @__PURE__ */ Object.create(null));
|
|
@@ -19060,14 +19060,14 @@ var isFile = kindOfTest("File");
|
|
|
19060
19060
|
var isBlob = kindOfTest("Blob");
|
|
19061
19061
|
var isFileList = kindOfTest("FileList");
|
|
19062
19062
|
function isFunction$1(val) {
|
|
19063
|
-
return toString$
|
|
19063
|
+
return toString$8.call(val) === "[object Function]";
|
|
19064
19064
|
}
|
|
19065
19065
|
function isStream(val) {
|
|
19066
19066
|
return isObject$d(val) && isFunction$1(val.pipe);
|
|
19067
19067
|
}
|
|
19068
19068
|
function isFormData(thing) {
|
|
19069
19069
|
var pattern = "[object FormData]";
|
|
19070
|
-
return thing && (typeof FormData === "function" && thing instanceof FormData || toString$
|
|
19070
|
+
return thing && (typeof FormData === "function" && thing instanceof FormData || toString$8.call(thing) === pattern || isFunction$1(thing.toString) && thing.toString() === pattern);
|
|
19071
19071
|
}
|
|
19072
19072
|
var isURLSearchParams = kindOfTest("URLSearchParams");
|
|
19073
19073
|
function trim$1(str) {
|
|
@@ -20037,16 +20037,16 @@ var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
|
20037
20037
|
});
|
|
20038
20038
|
return config;
|
|
20039
20039
|
};
|
|
20040
|
-
var data$
|
|
20040
|
+
var data$2;
|
|
20041
20041
|
var hasRequiredData;
|
|
20042
20042
|
function requireData() {
|
|
20043
20043
|
if (hasRequiredData)
|
|
20044
|
-
return data$
|
|
20044
|
+
return data$2;
|
|
20045
20045
|
hasRequiredData = 1;
|
|
20046
|
-
data$
|
|
20046
|
+
data$2 = {
|
|
20047
20047
|
"version": "0.27.2"
|
|
20048
20048
|
};
|
|
20049
|
-
return data$
|
|
20049
|
+
return data$2;
|
|
20050
20050
|
}
|
|
20051
20051
|
var VERSION = requireData().version;
|
|
20052
20052
|
var AxiosError = AxiosError_1;
|
|
@@ -24191,20 +24191,20 @@ function getCalendarFormat(myMoment, now2) {
|
|
|
24191
24191
|
var diff2 = myMoment.diff(now2, "days", true);
|
|
24192
24192
|
return diff2 < -6 ? "sameElse" : diff2 < -1 ? "lastWeek" : diff2 < 0 ? "lastDay" : diff2 < 1 ? "sameDay" : diff2 < 2 ? "nextDay" : diff2 < 7 ? "nextWeek" : "sameElse";
|
|
24193
24193
|
}
|
|
24194
|
-
function calendar$1(
|
|
24194
|
+
function calendar$1(time2, formats2) {
|
|
24195
24195
|
if (arguments.length === 1) {
|
|
24196
24196
|
if (!arguments[0]) {
|
|
24197
|
-
|
|
24197
|
+
time2 = void 0;
|
|
24198
24198
|
formats2 = void 0;
|
|
24199
24199
|
} else if (isMomentInput(arguments[0])) {
|
|
24200
|
-
|
|
24200
|
+
time2 = arguments[0];
|
|
24201
24201
|
formats2 = void 0;
|
|
24202
24202
|
} else if (isCalendarSpec(arguments[0])) {
|
|
24203
24203
|
formats2 = arguments[0];
|
|
24204
|
-
|
|
24204
|
+
time2 = void 0;
|
|
24205
24205
|
}
|
|
24206
24206
|
}
|
|
24207
|
-
var now2 =
|
|
24207
|
+
var now2 = time2 || createLocal(), sod = cloneWithOffset(now2, this).startOf("day"), format2 = hooks.calendarFormat(this, sod) || "sameElse", output = formats2 && (isFunction2(formats2[format2]) ? formats2[format2].call(this, now2) : formats2[format2]);
|
|
24208
24208
|
return this.format(
|
|
24209
24209
|
output || this.localeData().calendar(format2, this, createLocal(now2))
|
|
24210
24210
|
);
|
|
@@ -24320,7 +24320,7 @@ function monthDiff(a2, b2) {
|
|
|
24320
24320
|
}
|
|
24321
24321
|
hooks.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
|
|
24322
24322
|
hooks.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
24323
|
-
function toString$
|
|
24323
|
+
function toString$7() {
|
|
24324
24324
|
return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
|
|
24325
24325
|
}
|
|
24326
24326
|
function toISOString(keepOffset) {
|
|
@@ -24368,9 +24368,9 @@ function format(inputString) {
|
|
|
24368
24368
|
var output = formatMoment(this, inputString);
|
|
24369
24369
|
return this.localeData().postformat(output);
|
|
24370
24370
|
}
|
|
24371
|
-
function from(
|
|
24372
|
-
if (this.isValid() && (isMoment(
|
|
24373
|
-
return createDuration({ to: this, from:
|
|
24371
|
+
function from(time2, withoutSuffix) {
|
|
24372
|
+
if (this.isValid() && (isMoment(time2) && time2.isValid() || createLocal(time2).isValid())) {
|
|
24373
|
+
return createDuration({ to: this, from: time2 }).locale(this.locale()).humanize(!withoutSuffix);
|
|
24374
24374
|
} else {
|
|
24375
24375
|
return this.localeData().invalidDate();
|
|
24376
24376
|
}
|
|
@@ -24378,9 +24378,9 @@ function from(time, withoutSuffix) {
|
|
|
24378
24378
|
function fromNow(withoutSuffix) {
|
|
24379
24379
|
return this.from(createLocal(), withoutSuffix);
|
|
24380
24380
|
}
|
|
24381
|
-
function to(
|
|
24382
|
-
if (this.isValid() && (isMoment(
|
|
24383
|
-
return createDuration({ from: this, to:
|
|
24381
|
+
function to(time2, withoutSuffix) {
|
|
24382
|
+
if (this.isValid() && (isMoment(time2) && time2.isValid() || createLocal(time2).isValid())) {
|
|
24383
|
+
return createDuration({ from: this, to: time2 }).locale(this.locale()).humanize(!withoutSuffix);
|
|
24384
24384
|
} else {
|
|
24385
24385
|
return this.localeData().invalidDate();
|
|
24386
24386
|
}
|
|
@@ -24432,7 +24432,7 @@ function utcStartOfDate(y2, m2, d2) {
|
|
|
24432
24432
|
}
|
|
24433
24433
|
}
|
|
24434
24434
|
function startOf(units) {
|
|
24435
|
-
var
|
|
24435
|
+
var time2, startOfDate;
|
|
24436
24436
|
units = normalizeUnits(units);
|
|
24437
24437
|
if (units === void 0 || units === "millisecond" || !this.isValid()) {
|
|
24438
24438
|
return this;
|
|
@@ -24440,27 +24440,27 @@ function startOf(units) {
|
|
|
24440
24440
|
startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
|
|
24441
24441
|
switch (units) {
|
|
24442
24442
|
case "year":
|
|
24443
|
-
|
|
24443
|
+
time2 = startOfDate(this.year(), 0, 1);
|
|
24444
24444
|
break;
|
|
24445
24445
|
case "quarter":
|
|
24446
|
-
|
|
24446
|
+
time2 = startOfDate(
|
|
24447
24447
|
this.year(),
|
|
24448
24448
|
this.month() - this.month() % 3,
|
|
24449
24449
|
1
|
|
24450
24450
|
);
|
|
24451
24451
|
break;
|
|
24452
24452
|
case "month":
|
|
24453
|
-
|
|
24453
|
+
time2 = startOfDate(this.year(), this.month(), 1);
|
|
24454
24454
|
break;
|
|
24455
24455
|
case "week":
|
|
24456
|
-
|
|
24456
|
+
time2 = startOfDate(
|
|
24457
24457
|
this.year(),
|
|
24458
24458
|
this.month(),
|
|
24459
24459
|
this.date() - this.weekday()
|
|
24460
24460
|
);
|
|
24461
24461
|
break;
|
|
24462
24462
|
case "isoWeek":
|
|
24463
|
-
|
|
24463
|
+
time2 = startOfDate(
|
|
24464
24464
|
this.year(),
|
|
24465
24465
|
this.month(),
|
|
24466
24466
|
this.date() - (this.isoWeekday() - 1)
|
|
@@ -24468,30 +24468,30 @@ function startOf(units) {
|
|
|
24468
24468
|
break;
|
|
24469
24469
|
case "day":
|
|
24470
24470
|
case "date":
|
|
24471
|
-
|
|
24471
|
+
time2 = startOfDate(this.year(), this.month(), this.date());
|
|
24472
24472
|
break;
|
|
24473
24473
|
case "hour":
|
|
24474
|
-
|
|
24475
|
-
|
|
24476
|
-
|
|
24474
|
+
time2 = this._d.valueOf();
|
|
24475
|
+
time2 -= mod$1(
|
|
24476
|
+
time2 + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
|
|
24477
24477
|
MS_PER_HOUR
|
|
24478
24478
|
);
|
|
24479
24479
|
break;
|
|
24480
24480
|
case "minute":
|
|
24481
|
-
|
|
24482
|
-
|
|
24481
|
+
time2 = this._d.valueOf();
|
|
24482
|
+
time2 -= mod$1(time2, MS_PER_MINUTE);
|
|
24483
24483
|
break;
|
|
24484
24484
|
case "second":
|
|
24485
|
-
|
|
24486
|
-
|
|
24485
|
+
time2 = this._d.valueOf();
|
|
24486
|
+
time2 -= mod$1(time2, MS_PER_SECOND);
|
|
24487
24487
|
break;
|
|
24488
24488
|
}
|
|
24489
|
-
this._d.setTime(
|
|
24489
|
+
this._d.setTime(time2);
|
|
24490
24490
|
hooks.updateOffset(this, true);
|
|
24491
24491
|
return this;
|
|
24492
24492
|
}
|
|
24493
24493
|
function endOf(units) {
|
|
24494
|
-
var
|
|
24494
|
+
var time2, startOfDate;
|
|
24495
24495
|
units = normalizeUnits(units);
|
|
24496
24496
|
if (units === void 0 || units === "millisecond" || !this.isValid()) {
|
|
24497
24497
|
return this;
|
|
@@ -24499,27 +24499,27 @@ function endOf(units) {
|
|
|
24499
24499
|
startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
|
|
24500
24500
|
switch (units) {
|
|
24501
24501
|
case "year":
|
|
24502
|
-
|
|
24502
|
+
time2 = startOfDate(this.year() + 1, 0, 1) - 1;
|
|
24503
24503
|
break;
|
|
24504
24504
|
case "quarter":
|
|
24505
|
-
|
|
24505
|
+
time2 = startOfDate(
|
|
24506
24506
|
this.year(),
|
|
24507
24507
|
this.month() - this.month() % 3 + 3,
|
|
24508
24508
|
1
|
|
24509
24509
|
) - 1;
|
|
24510
24510
|
break;
|
|
24511
24511
|
case "month":
|
|
24512
|
-
|
|
24512
|
+
time2 = startOfDate(this.year(), this.month() + 1, 1) - 1;
|
|
24513
24513
|
break;
|
|
24514
24514
|
case "week":
|
|
24515
|
-
|
|
24515
|
+
time2 = startOfDate(
|
|
24516
24516
|
this.year(),
|
|
24517
24517
|
this.month(),
|
|
24518
24518
|
this.date() - this.weekday() + 7
|
|
24519
24519
|
) - 1;
|
|
24520
24520
|
break;
|
|
24521
24521
|
case "isoWeek":
|
|
24522
|
-
|
|
24522
|
+
time2 = startOfDate(
|
|
24523
24523
|
this.year(),
|
|
24524
24524
|
this.month(),
|
|
24525
24525
|
this.date() - (this.isoWeekday() - 1) + 7
|
|
@@ -24527,25 +24527,25 @@ function endOf(units) {
|
|
|
24527
24527
|
break;
|
|
24528
24528
|
case "day":
|
|
24529
24529
|
case "date":
|
|
24530
|
-
|
|
24530
|
+
time2 = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
|
|
24531
24531
|
break;
|
|
24532
24532
|
case "hour":
|
|
24533
|
-
|
|
24534
|
-
|
|
24535
|
-
|
|
24533
|
+
time2 = this._d.valueOf();
|
|
24534
|
+
time2 += MS_PER_HOUR - mod$1(
|
|
24535
|
+
time2 + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
|
|
24536
24536
|
MS_PER_HOUR
|
|
24537
24537
|
) - 1;
|
|
24538
24538
|
break;
|
|
24539
24539
|
case "minute":
|
|
24540
|
-
|
|
24541
|
-
|
|
24540
|
+
time2 = this._d.valueOf();
|
|
24541
|
+
time2 += MS_PER_MINUTE - mod$1(time2, MS_PER_MINUTE) - 1;
|
|
24542
24542
|
break;
|
|
24543
24543
|
case "second":
|
|
24544
|
-
|
|
24545
|
-
|
|
24544
|
+
time2 = this._d.valueOf();
|
|
24545
|
+
time2 += MS_PER_SECOND - mod$1(time2, MS_PER_SECOND) - 1;
|
|
24546
24546
|
break;
|
|
24547
24547
|
}
|
|
24548
|
-
this._d.setTime(
|
|
24548
|
+
this._d.setTime(time2);
|
|
24549
24549
|
hooks.updateOffset(this, true);
|
|
24550
24550
|
return this;
|
|
24551
24551
|
}
|
|
@@ -25031,7 +25031,7 @@ if (typeof Symbol !== "undefined" && Symbol.for != null) {
|
|
|
25031
25031
|
};
|
|
25032
25032
|
}
|
|
25033
25033
|
proto.toJSON = toJSON2;
|
|
25034
|
-
proto.toString = toString$
|
|
25034
|
+
proto.toString = toString$7;
|
|
25035
25035
|
proto.unix = unix;
|
|
25036
25036
|
proto.valueOf = valueOf;
|
|
25037
25037
|
proto.creationData = creationData;
|
|
@@ -25560,7 +25560,7 @@ const require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(moment);
|
|
|
25560
25560
|
} else {
|
|
25561
25561
|
factory(root2.moment);
|
|
25562
25562
|
}
|
|
25563
|
-
})(commonjsGlobal, function(moment2) {
|
|
25563
|
+
})(commonjsGlobal$1, function(moment2) {
|
|
25564
25564
|
if (moment2.version === void 0 && moment2.default) {
|
|
25565
25565
|
moment2 = moment2.default;
|
|
25566
25566
|
}
|
|
@@ -28843,7 +28843,7 @@ function n$1(t2) {
|
|
|
28843
28843
|
return "'" + t3 + "'";
|
|
28844
28844
|
}).join(",") : "") + ". Find the full error at: https://bit.ly/3cXEKWf");
|
|
28845
28845
|
}
|
|
28846
|
-
function o$
|
|
28846
|
+
function o$3(t2) {
|
|
28847
28847
|
return !!t2 && !!t2[$$j];
|
|
28848
28848
|
}
|
|
28849
28849
|
function i$3(t2) {
|
|
@@ -28857,7 +28857,7 @@ function i$3(t2) {
|
|
|
28857
28857
|
return "function" == typeof r2 && Function.toString.call(r2) === J;
|
|
28858
28858
|
}(t2) || Array.isArray(t2) || !!t2[W] || !!t2.constructor[W] || s(t2) || l$1(t2));
|
|
28859
28859
|
}
|
|
28860
|
-
function u(t2, e2, r2) {
|
|
28860
|
+
function u$1(t2, e2, r2) {
|
|
28861
28861
|
void 0 === r2 && (r2 = false), 0 === a$1(t2) ? (r2 ? Object.keys : X)(t2).forEach(function(n2) {
|
|
28862
28862
|
r2 && "symbol" == typeof n2 || e2(n2, t2[n2], t2);
|
|
28863
28863
|
}) : t2.forEach(function(r3, n2) {
|
|
@@ -28868,7 +28868,7 @@ function a$1(t2) {
|
|
|
28868
28868
|
var e2 = t2[$$j];
|
|
28869
28869
|
return e2 ? e2.i > 3 ? e2.i - 4 : e2.i : Array.isArray(t2) ? 1 : s(t2) ? 2 : l$1(t2) ? 3 : 0;
|
|
28870
28870
|
}
|
|
28871
|
-
function c$
|
|
28871
|
+
function c$2(t2, e2) {
|
|
28872
28872
|
return 2 === a$1(t2) ? t2.has(e2) : Object.prototype.hasOwnProperty.call(t2, e2);
|
|
28873
28873
|
}
|
|
28874
28874
|
function f(t2, e2, r2) {
|
|
@@ -28896,7 +28896,7 @@ function d(t2) {
|
|
|
28896
28896
|
return Object.create(Object.getPrototypeOf(t2), e2);
|
|
28897
28897
|
}
|
|
28898
28898
|
function y(t2, e2) {
|
|
28899
|
-
return void 0 === e2 && (e2 = false), h(t2) || o$
|
|
28899
|
+
return void 0 === e2 && (e2 = false), h(t2) || o$3(t2) || !i$3(t2) || (a$1(t2) > 1 && (t2.set = t2.add = t2.clear = t2.delete = v), Object.freeze(t2), e2 && u$1(t2, function(t3, e3) {
|
|
28900
28900
|
return y(e3, true);
|
|
28901
28901
|
}, true)), t2;
|
|
28902
28902
|
}
|
|
@@ -28939,7 +28939,7 @@ function D(t2, e2, r2) {
|
|
|
28939
28939
|
return e2;
|
|
28940
28940
|
var n2 = e2[$$j];
|
|
28941
28941
|
if (!n2)
|
|
28942
|
-
return u(e2, function(o3, i2) {
|
|
28942
|
+
return u$1(e2, function(o3, i2) {
|
|
28943
28943
|
return E(t2, n2, e2, o3, i2, r2);
|
|
28944
28944
|
}, true), e2;
|
|
28945
28945
|
if (n2.A !== t2)
|
|
@@ -28949,16 +28949,16 @@ function D(t2, e2, r2) {
|
|
|
28949
28949
|
if (!n2.I) {
|
|
28950
28950
|
n2.I = true, n2.A._--;
|
|
28951
28951
|
var o2 = 4 === n2.i || 5 === n2.i ? n2.o = d(n2.k) : n2.o;
|
|
28952
|
-
u(3 === n2.i ? new Set(o2) : o2, function(e3, i2) {
|
|
28952
|
+
u$1(3 === n2.i ? new Set(o2) : o2, function(e3, i2) {
|
|
28953
28953
|
return E(t2, n2, o2, e3, i2, r2);
|
|
28954
28954
|
}), S(t2, o2, false), r2 && t2.u && b("Patches").R(n2, r2, t2.u, t2.s);
|
|
28955
28955
|
}
|
|
28956
28956
|
return n2.o;
|
|
28957
28957
|
}
|
|
28958
28958
|
function E(t2, e2, r2, u2, a2, s2) {
|
|
28959
|
-
if (o$
|
|
28960
|
-
var l2 = D(t2, a2, s2 && e2 && 3 !== e2.i && !c$
|
|
28961
|
-
if (f(r2, u2, l2), !o$
|
|
28959
|
+
if (o$3(a2)) {
|
|
28960
|
+
var l2 = D(t2, a2, s2 && e2 && 3 !== e2.i && !c$2(e2.D, u2) ? s2.concat(u2) : void 0);
|
|
28961
|
+
if (f(r2, u2, l2), !o$3(l2))
|
|
28962
28962
|
return;
|
|
28963
28963
|
t2.m = false;
|
|
28964
28964
|
}
|
|
@@ -29000,7 +29000,7 @@ function F(t2, e2, r2) {
|
|
|
29000
29000
|
return (r2 ? r2.A : m$1()).p.push(n2), n2;
|
|
29001
29001
|
}
|
|
29002
29002
|
function k(t2) {
|
|
29003
|
-
return o$
|
|
29003
|
+
return o$3(t2) || n$1(22, t2), function t3(e2) {
|
|
29004
29004
|
if (!i$3(e2))
|
|
29005
29005
|
return e2;
|
|
29006
29006
|
var r2, n2 = e2[$$j], o2 = a$1(e2);
|
|
@@ -29010,7 +29010,7 @@ function k(t2) {
|
|
|
29010
29010
|
n2.I = true, r2 = z(e2, o2), n2.I = false;
|
|
29011
29011
|
} else
|
|
29012
29012
|
r2 = z(e2, o2);
|
|
29013
|
-
return u(r2, function(e3, o3) {
|
|
29013
|
+
return u$1(r2, function(e3, o3) {
|
|
29014
29014
|
n2 && function(t4, e4) {
|
|
29015
29015
|
return 2 === a$1(t4) ? t4.get(e4) : t4[e4];
|
|
29016
29016
|
}(n2.t, e3) === o3 || f(r2, e3, t3(o3));
|
|
@@ -29037,7 +29037,7 @@ var R$1, M, T = "undefined" != typeof Symbol && "symbol" == typeof Symbol("x"),
|
|
|
29037
29037
|
if (e2 === $$j)
|
|
29038
29038
|
return t2;
|
|
29039
29039
|
var r2 = p(t2);
|
|
29040
|
-
if (!c$
|
|
29040
|
+
if (!c$2(r2, e2))
|
|
29041
29041
|
return function(t3, e3, r3) {
|
|
29042
29042
|
var n3, o2 = I(e3, r3);
|
|
29043
29043
|
return o2 ? "value" in o2 ? o2.value : null === (n3 = o2.get) || void 0 === n3 ? void 0 : n3.call(t3.k) : void 0;
|
|
@@ -29058,7 +29058,7 @@ var R$1, M, T = "undefined" != typeof Symbol && "symbol" == typeof Symbol("x"),
|
|
|
29058
29058
|
return t2.o[e2] = r2, t2.D[e2] = false, true;
|
|
29059
29059
|
if (function(t3, e3) {
|
|
29060
29060
|
return t3 === e3 ? 0 !== t3 || 1 / t3 == 1 / e3 : t3 != t3 && e3 != e3;
|
|
29061
|
-
}(r2, o2) && (void 0 !== r2 || c$
|
|
29061
|
+
}(r2, o2) && (void 0 !== r2 || c$2(t2.t, e2)))
|
|
29062
29062
|
return true;
|
|
29063
29063
|
x(t2), N(t2);
|
|
29064
29064
|
}
|
|
@@ -29075,7 +29075,7 @@ var R$1, M, T = "undefined" != typeof Symbol && "symbol" == typeof Symbol("x"),
|
|
|
29075
29075
|
}, setPrototypeOf: function() {
|
|
29076
29076
|
n$1(12);
|
|
29077
29077
|
} }, L = {};
|
|
29078
|
-
u(H, function(t2, e2) {
|
|
29078
|
+
u$1(H, function(t2, e2) {
|
|
29079
29079
|
L[t2] = function() {
|
|
29080
29080
|
return arguments[0] = arguments[0][0], e2.apply(this, arguments);
|
|
29081
29081
|
};
|
|
@@ -29138,7 +29138,7 @@ var Q = new (function() {
|
|
|
29138
29138
|
}
|
|
29139
29139
|
var e2 = t2.prototype;
|
|
29140
29140
|
return e2.createDraft = function(t3) {
|
|
29141
|
-
i$3(t3) || n$1(8), o$
|
|
29141
|
+
i$3(t3) || n$1(8), o$3(t3) && (t3 = k(t3));
|
|
29142
29142
|
var e3 = j(this), r2 = F(this, t3, void 0);
|
|
29143
29143
|
return r2[$$j].C = true, P(e3), r2;
|
|
29144
29144
|
}, e2.finishDraft = function(t3, e3) {
|
|
@@ -29159,7 +29159,7 @@ var Q = new (function() {
|
|
|
29159
29159
|
}
|
|
29160
29160
|
}
|
|
29161
29161
|
var i2 = b("Patches").$;
|
|
29162
|
-
return o$
|
|
29162
|
+
return o$3(t3) ? i2(t3, e3) : this.produce(t3, function(t4) {
|
|
29163
29163
|
return i2(t4, e3.slice(r2 + 1));
|
|
29164
29164
|
});
|
|
29165
29165
|
}, t2;
|
|
@@ -31921,6 +31921,166 @@ const SvgRecording = (props) => /* @__PURE__ */ react.exports.createElement("svg
|
|
|
31921
31921
|
fill: "#FE1C1D",
|
|
31922
31922
|
d: "M138.03 62.67c24.37 0 44.12 19.75 44.12 44.12 0 24.37-19.75 44.12-44.12 44.12-24.37 0-44.12-19.75-44.12-44.12 0-24.37 19.75-44.12 44.12-44.12z"
|
|
31923
31923
|
}));
|
|
31924
|
+
const SvgGcal = (props) => /* @__PURE__ */ react.exports.createElement("svg", {
|
|
31925
|
+
id: "Livello_1",
|
|
31926
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
31927
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
31928
|
+
x: "0px",
|
|
31929
|
+
y: "0px",
|
|
31930
|
+
viewBox: "0 0 200 200",
|
|
31931
|
+
enableBackground: "new 0 0 200 200",
|
|
31932
|
+
xmlSpace: "preserve",
|
|
31933
|
+
...props
|
|
31934
|
+
}, /* @__PURE__ */ react.exports.createElement("g", null, /* @__PURE__ */ react.exports.createElement("g", {
|
|
31935
|
+
transform: "translate(3.75 3.75)"
|
|
31936
|
+
}, /* @__PURE__ */ react.exports.createElement("path", {
|
|
31937
|
+
fill: "#FFFFFF",
|
|
31938
|
+
d: "M148.882,43.618l-47.368-5.263l-57.895,5.263L38.355,96.25l5.263,52.632l52.632,6.579l52.632-6.579 l5.263-53.947L148.882,43.618z"
|
|
31939
|
+
}), /* @__PURE__ */ react.exports.createElement("path", {
|
|
31940
|
+
fill: "#1A73E8",
|
|
31941
|
+
d: "M65.211,125.276c-3.934-2.658-6.658-6.539-8.145-11.671l9.132-3.763c0.829,3.158,2.276,5.605,4.342,7.342 c2.053,1.737,4.553,2.592,7.474,2.592c2.987,0,5.553-0.908,7.697-2.724s3.224-4.132,3.224-6.934c0-2.868-1.132-5.211-3.395-7.026 s-5.105-2.724-8.5-2.724h-5.276v-9.039H76.5c2.921,0,5.382-0.789,7.382-2.368c2-1.579,3-3.737,3-6.487 c0-2.447-0.895-4.395-2.684-5.855s-4.053-2.197-6.803-2.197c-2.684,0-4.816,0.711-6.395,2.145s-2.724,3.197-3.447,5.276 l-9.039-3.763c1.197-3.395,3.395-6.395,6.618-8.987c3.224-2.592,7.342-3.895,12.342-3.895c3.697,0,7.026,0.711,9.974,2.145 c2.947,1.434,5.263,3.421,6.934,5.947c1.671,2.539,2.5,5.382,2.5,8.539c0,3.224-0.776,5.947-2.329,8.184 c-1.553,2.237-3.461,3.947-5.724,5.145v0.539c2.987,1.25,5.421,3.158,7.342,5.724c1.908,2.566,2.868,5.632,2.868,9.211 s-0.908,6.776-2.724,9.579c-1.816,2.803-4.329,5.013-7.513,6.618c-3.197,1.605-6.789,2.421-10.776,2.421 C73.408,129.263,69.145,127.934,65.211,125.276z"
|
|
31942
|
+
}), /* @__PURE__ */ react.exports.createElement("path", {
|
|
31943
|
+
fill: "#1A73E8",
|
|
31944
|
+
d: "M121.25,79.961l-9.974,7.25l-5.013-7.605l17.987-12.974h6.895v61.197h-9.895L121.25,79.961z"
|
|
31945
|
+
}), /* @__PURE__ */ react.exports.createElement("path", {
|
|
31946
|
+
fill: "#EA4335",
|
|
31947
|
+
d: "M148.882,196.25l47.368-47.368l-23.684-10.526l-23.684,10.526l-10.526,23.684L148.882,196.25z"
|
|
31948
|
+
}), /* @__PURE__ */ react.exports.createElement("path", {
|
|
31949
|
+
fill: "#34A853",
|
|
31950
|
+
d: "M33.092,172.566l10.526,23.684h105.263v-47.368H43.618L33.092,172.566z"
|
|
31951
|
+
}), /* @__PURE__ */ react.exports.createElement("path", {
|
|
31952
|
+
fill: "#4285F4",
|
|
31953
|
+
d: "M12.039-3.75C3.316-3.75-3.75,3.316-3.75,12.039v136.842l23.684,10.526l23.684-10.526V43.618h105.263 l10.526-23.684L148.882-3.75H12.039z"
|
|
31954
|
+
}), /* @__PURE__ */ react.exports.createElement("path", {
|
|
31955
|
+
fill: "#188038",
|
|
31956
|
+
d: "M-3.75,148.882v31.579c0,8.724,7.066,15.789,15.789,15.789h31.579v-47.368H-3.75z"
|
|
31957
|
+
}), /* @__PURE__ */ react.exports.createElement("path", {
|
|
31958
|
+
fill: "#FBBC04",
|
|
31959
|
+
d: "M148.882,43.618v105.263h47.368V43.618l-23.684-10.526L148.882,43.618z"
|
|
31960
|
+
}), /* @__PURE__ */ react.exports.createElement("path", {
|
|
31961
|
+
fill: "#1967D2",
|
|
31962
|
+
d: "M196.25,43.618V12.039c0-8.724-7.066-15.789-15.789-15.789h-31.579v47.368H196.25z"
|
|
31963
|
+
}))));
|
|
31964
|
+
const SvgYahoo = (props) => /* @__PURE__ */ react.exports.createElement("svg", {
|
|
31965
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
31966
|
+
viewBox: "0 0 3386.34 3010.5",
|
|
31967
|
+
shapeRendering: "geometricPrecision",
|
|
31968
|
+
textRendering: "geometricPrecision",
|
|
31969
|
+
imageRendering: "optimizeQuality",
|
|
31970
|
+
fillRule: "evenodd",
|
|
31971
|
+
clipRule: "evenodd",
|
|
31972
|
+
...props
|
|
31973
|
+
}, /* @__PURE__ */ react.exports.createElement("path", {
|
|
31974
|
+
d: "M0 732.88h645.84l376.07 962.1 380.96-962.1h628.76l-946.8 2277.62H451.98l259.19-603.53L.02 732.88zm2763.84 768.75h-704.26L2684.65 0l701.69.03-622.5 1501.6zm-519.78 143.72c216.09 0 391.25 175.17 391.25 391.22 0 216.06-175.16 391.23-391.25 391.23-216.06 0-391.19-175.17-391.19-391.23 0-216.05 175.16-391.22 391.19-391.22z",
|
|
31975
|
+
fill: "#5f01d1",
|
|
31976
|
+
fillRule: "nonzero"
|
|
31977
|
+
}));
|
|
31978
|
+
const SvgOutlookCalendar = (props) => /* @__PURE__ */ react.exports.createElement("svg", {
|
|
31979
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
31980
|
+
viewBox: "0 0 48 48",
|
|
31981
|
+
width: "48px",
|
|
31982
|
+
height: "48px",
|
|
31983
|
+
...props
|
|
31984
|
+
}, /* @__PURE__ */ react.exports.createElement("path", {
|
|
31985
|
+
fill: "#1976d2",
|
|
31986
|
+
d: "M28,13h14.533C43.343,13,44,13.657,44,14.467v19.066C44,34.343,43.343,35,42.533,35H28V13z"
|
|
31987
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
31988
|
+
width: 14,
|
|
31989
|
+
height: 15.542,
|
|
31990
|
+
x: 28,
|
|
31991
|
+
y: 17.958,
|
|
31992
|
+
fill: "#fff"
|
|
31993
|
+
}), /* @__PURE__ */ react.exports.createElement("polygon", {
|
|
31994
|
+
fill: "#1976d2",
|
|
31995
|
+
points: "27,44 4,39.5 4,8.5 27,4"
|
|
31996
|
+
}), /* @__PURE__ */ react.exports.createElement("path", {
|
|
31997
|
+
fill: "#fff",
|
|
31998
|
+
d: "M15.25,16.5c-3.176,0-5.75,3.358-5.75,7.5s2.574,7.5,5.75,7.5S21,28.142,21,24 S18.426,16.5,15.25,16.5z M15,28.5c-1.657,0-3-2.015-3-4.5s1.343-4.5,3-4.5s3,2.015,3,4.5S16.657,28.5,15,28.5z"
|
|
31999
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32000
|
+
width: 2.7,
|
|
32001
|
+
height: 2.9,
|
|
32002
|
+
x: 28.047,
|
|
32003
|
+
y: 29.737,
|
|
32004
|
+
fill: "#1976d2"
|
|
32005
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32006
|
+
width: 2.7,
|
|
32007
|
+
height: 2.9,
|
|
32008
|
+
x: 31.448,
|
|
32009
|
+
y: 29.737,
|
|
32010
|
+
fill: "#1976d2"
|
|
32011
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32012
|
+
width: 2.7,
|
|
32013
|
+
height: 2.9,
|
|
32014
|
+
x: 34.849,
|
|
32015
|
+
y: 29.737,
|
|
32016
|
+
fill: "#1976d2"
|
|
32017
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32018
|
+
width: 2.7,
|
|
32019
|
+
height: 2.9,
|
|
32020
|
+
x: 28.047,
|
|
32021
|
+
y: 26.159,
|
|
32022
|
+
fill: "#1976d2"
|
|
32023
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32024
|
+
width: 2.7,
|
|
32025
|
+
height: 2.9,
|
|
32026
|
+
x: 31.448,
|
|
32027
|
+
y: 26.159,
|
|
32028
|
+
fill: "#1976d2"
|
|
32029
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32030
|
+
width: 2.7,
|
|
32031
|
+
height: 2.9,
|
|
32032
|
+
x: 34.849,
|
|
32033
|
+
y: 26.159,
|
|
32034
|
+
fill: "#1976d2"
|
|
32035
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32036
|
+
width: 2.7,
|
|
32037
|
+
height: 2.9,
|
|
32038
|
+
x: 38.25,
|
|
32039
|
+
y: 26.159,
|
|
32040
|
+
fill: "#1976d2"
|
|
32041
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32042
|
+
width: 2.7,
|
|
32043
|
+
height: 2.9,
|
|
32044
|
+
x: 28.047,
|
|
32045
|
+
y: 22.706,
|
|
32046
|
+
fill: "#1976d2"
|
|
32047
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32048
|
+
width: 2.7,
|
|
32049
|
+
height: 2.9,
|
|
32050
|
+
x: 31.448,
|
|
32051
|
+
y: 22.706,
|
|
32052
|
+
fill: "#1976d2"
|
|
32053
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32054
|
+
width: 2.7,
|
|
32055
|
+
height: 2.9,
|
|
32056
|
+
x: 34.849,
|
|
32057
|
+
y: 22.706,
|
|
32058
|
+
fill: "#1976d2"
|
|
32059
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32060
|
+
width: 2.7,
|
|
32061
|
+
height: 2.9,
|
|
32062
|
+
x: 38.25,
|
|
32063
|
+
y: 22.706,
|
|
32064
|
+
fill: "#1976d2"
|
|
32065
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32066
|
+
width: 2.7,
|
|
32067
|
+
height: 2.9,
|
|
32068
|
+
x: 31.448,
|
|
32069
|
+
y: 19.112,
|
|
32070
|
+
fill: "#1976d2"
|
|
32071
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32072
|
+
width: 2.7,
|
|
32073
|
+
height: 2.9,
|
|
32074
|
+
x: 34.849,
|
|
32075
|
+
y: 19.112,
|
|
32076
|
+
fill: "#1976d2"
|
|
32077
|
+
}), /* @__PURE__ */ react.exports.createElement("rect", {
|
|
32078
|
+
width: 2.7,
|
|
32079
|
+
height: 2.9,
|
|
32080
|
+
x: 38.25,
|
|
32081
|
+
y: 19.112,
|
|
32082
|
+
fill: "#1976d2"
|
|
32083
|
+
}));
|
|
31924
32084
|
const calendars = (params) => api("/calendars", params);
|
|
31925
32085
|
const viewCalendar = (id2, params) => api("/calendars/" + id2, params);
|
|
31926
32086
|
const updateCalendar = (id2, params) => api("/calendars/" + id2, params, "put");
|
|
@@ -32340,7 +32500,7 @@ function eventTargetAgnosticAddListener(emitter, name, listener, flags2) {
|
|
|
32340
32500
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
|
|
32341
32501
|
}
|
|
32342
32502
|
}
|
|
32343
|
-
var t$1 = new events.exports(), o$
|
|
32503
|
+
var t$1 = new events.exports(), o$2 = function(n2, e2) {
|
|
32344
32504
|
var o2 = n2.listeners, i2 = void 0 === o2 ? {} : o2, u2 = n2.removeListeners, a2 = void 0 === u2 ? {} : u2, v2 = n2.params, c2 = void 0 === v2 ? {} : v2;
|
|
32345
32505
|
return void 0 === e2 && (e2 = []), react.exports.useLayoutEffect(function() {
|
|
32346
32506
|
var r2 = Object.keys(i2);
|
|
@@ -32697,7 +32857,7 @@ var lodash = { exports: {} };
|
|
|
32697
32857
|
"\u2029": "u2029"
|
|
32698
32858
|
};
|
|
32699
32859
|
var freeParseFloat = parseFloat, freeParseInt = parseInt;
|
|
32700
|
-
var freeGlobal2 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
32860
|
+
var freeGlobal2 = typeof commonjsGlobal$1 == "object" && commonjsGlobal$1 && commonjsGlobal$1.Object === Object && commonjsGlobal$1;
|
|
32701
32861
|
var freeSelf2 = typeof self == "object" && self && self.Object === Object && self;
|
|
32702
32862
|
var root2 = freeGlobal2 || freeSelf2 || Function("return this")();
|
|
32703
32863
|
var freeExports2 = exports2 && !exports2.nodeType && exports2;
|
|
@@ -36160,37 +36320,37 @@ var lodash = { exports: {} };
|
|
|
36160
36320
|
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
36161
36321
|
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
36162
36322
|
}
|
|
36163
|
-
function invokeFunc(
|
|
36323
|
+
function invokeFunc(time2) {
|
|
36164
36324
|
var args = lastArgs, thisArg = lastThis;
|
|
36165
36325
|
lastArgs = lastThis = undefined$12;
|
|
36166
|
-
lastInvokeTime =
|
|
36326
|
+
lastInvokeTime = time2;
|
|
36167
36327
|
result2 = func.apply(thisArg, args);
|
|
36168
36328
|
return result2;
|
|
36169
36329
|
}
|
|
36170
|
-
function leadingEdge(
|
|
36171
|
-
lastInvokeTime =
|
|
36330
|
+
function leadingEdge(time2) {
|
|
36331
|
+
lastInvokeTime = time2;
|
|
36172
36332
|
timerId = setTimeout2(timerExpired, wait);
|
|
36173
|
-
return leading ? invokeFunc(
|
|
36333
|
+
return leading ? invokeFunc(time2) : result2;
|
|
36174
36334
|
}
|
|
36175
|
-
function remainingWait(
|
|
36176
|
-
var timeSinceLastCall =
|
|
36335
|
+
function remainingWait(time2) {
|
|
36336
|
+
var timeSinceLastCall = time2 - lastCallTime, timeSinceLastInvoke = time2 - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
|
|
36177
36337
|
return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
|
|
36178
36338
|
}
|
|
36179
|
-
function shouldInvoke(
|
|
36180
|
-
var timeSinceLastCall =
|
|
36339
|
+
function shouldInvoke(time2) {
|
|
36340
|
+
var timeSinceLastCall = time2 - lastCallTime, timeSinceLastInvoke = time2 - lastInvokeTime;
|
|
36181
36341
|
return lastCallTime === undefined$12 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
36182
36342
|
}
|
|
36183
36343
|
function timerExpired() {
|
|
36184
|
-
var
|
|
36185
|
-
if (shouldInvoke(
|
|
36186
|
-
return trailingEdge(
|
|
36344
|
+
var time2 = now2();
|
|
36345
|
+
if (shouldInvoke(time2)) {
|
|
36346
|
+
return trailingEdge(time2);
|
|
36187
36347
|
}
|
|
36188
|
-
timerId = setTimeout2(timerExpired, remainingWait(
|
|
36348
|
+
timerId = setTimeout2(timerExpired, remainingWait(time2));
|
|
36189
36349
|
}
|
|
36190
|
-
function trailingEdge(
|
|
36350
|
+
function trailingEdge(time2) {
|
|
36191
36351
|
timerId = undefined$12;
|
|
36192
36352
|
if (trailing && lastArgs) {
|
|
36193
|
-
return invokeFunc(
|
|
36353
|
+
return invokeFunc(time2);
|
|
36194
36354
|
}
|
|
36195
36355
|
lastArgs = lastThis = undefined$12;
|
|
36196
36356
|
return result2;
|
|
@@ -36206,10 +36366,10 @@ var lodash = { exports: {} };
|
|
|
36206
36366
|
return timerId === undefined$12 ? result2 : trailingEdge(now2());
|
|
36207
36367
|
}
|
|
36208
36368
|
function debounced() {
|
|
36209
|
-
var
|
|
36369
|
+
var time2 = now2(), isInvoking = shouldInvoke(time2);
|
|
36210
36370
|
lastArgs = arguments;
|
|
36211
36371
|
lastThis = this;
|
|
36212
|
-
lastCallTime =
|
|
36372
|
+
lastCallTime = time2;
|
|
36213
36373
|
if (isInvoking) {
|
|
36214
36374
|
if (timerId === undefined$12) {
|
|
36215
36375
|
return leadingEdge(lastCallTime);
|
|
@@ -37801,7 +37961,7 @@ var lodash = { exports: {} };
|
|
|
37801
37961
|
} else {
|
|
37802
37962
|
root2._ = _2;
|
|
37803
37963
|
}
|
|
37804
|
-
}).call(commonjsGlobal);
|
|
37964
|
+
}).call(commonjsGlobal$1);
|
|
37805
37965
|
})(lodash, lodash.exports);
|
|
37806
37966
|
var cjs$4 = {};
|
|
37807
37967
|
var IoProvider$1 = {};
|
|
@@ -37835,19 +37995,19 @@ const ERROR_PACKET = { type: "error", data: "parser error" };
|
|
|
37835
37995
|
commons.ERROR_PACKET = ERROR_PACKET;
|
|
37836
37996
|
Object.defineProperty(encodePacket_browser, "__esModule", { value: true });
|
|
37837
37997
|
const commons_js_1$1 = commons;
|
|
37838
|
-
const withNativeBlob
|
|
37839
|
-
const withNativeArrayBuffer$
|
|
37840
|
-
const isView
|
|
37998
|
+
const withNativeBlob = typeof Blob === "function" || typeof Blob !== "undefined" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]";
|
|
37999
|
+
const withNativeArrayBuffer$1 = typeof ArrayBuffer === "function";
|
|
38000
|
+
const isView = (obj) => {
|
|
37841
38001
|
return typeof ArrayBuffer.isView === "function" ? ArrayBuffer.isView(obj) : obj && obj.buffer instanceof ArrayBuffer;
|
|
37842
38002
|
};
|
|
37843
38003
|
const encodePacket = ({ type, data: data2 }, supportsBinary, callback) => {
|
|
37844
|
-
if (withNativeBlob
|
|
38004
|
+
if (withNativeBlob && data2 instanceof Blob) {
|
|
37845
38005
|
if (supportsBinary) {
|
|
37846
38006
|
return callback(data2);
|
|
37847
38007
|
} else {
|
|
37848
38008
|
return encodeBlobAsBase64(data2, callback);
|
|
37849
38009
|
}
|
|
37850
|
-
} else if (withNativeArrayBuffer$
|
|
38010
|
+
} else if (withNativeArrayBuffer$1 && (data2 instanceof ArrayBuffer || isView(data2))) {
|
|
37851
38011
|
if (supportsBinary) {
|
|
37852
38012
|
return callback(data2);
|
|
37853
38013
|
} else {
|
|
@@ -37914,7 +38074,7 @@ base64Arraybuffer.decode = decode$2;
|
|
|
37914
38074
|
Object.defineProperty(decodePacket_browser, "__esModule", { value: true });
|
|
37915
38075
|
const commons_js_1 = commons;
|
|
37916
38076
|
const base64_arraybuffer_js_1 = base64Arraybuffer;
|
|
37917
|
-
const withNativeArrayBuffer
|
|
38077
|
+
const withNativeArrayBuffer = typeof ArrayBuffer === "function";
|
|
37918
38078
|
const decodePacket = (encodedPacket, binaryType) => {
|
|
37919
38079
|
if (typeof encodedPacket !== "string") {
|
|
37920
38080
|
return {
|
|
@@ -37941,7 +38101,7 @@ const decodePacket = (encodedPacket, binaryType) => {
|
|
|
37941
38101
|
};
|
|
37942
38102
|
};
|
|
37943
38103
|
const decodeBase64Packet = (data2, binaryType) => {
|
|
37944
|
-
if (withNativeArrayBuffer
|
|
38104
|
+
if (withNativeArrayBuffer) {
|
|
37945
38105
|
const decoded = (0, base64_arraybuffer_js_1.decode)(data2);
|
|
37946
38106
|
return mapBinary(decoded, binaryType);
|
|
37947
38107
|
} else {
|
|
@@ -38569,7 +38729,7 @@ var common = setup;
|
|
|
38569
38729
|
}
|
|
38570
38730
|
};
|
|
38571
38731
|
})(browser, browser.exports);
|
|
38572
|
-
var __importDefault$a = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
38732
|
+
var __importDefault$a = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
38573
38733
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
38574
38734
|
};
|
|
38575
38735
|
Object.defineProperty(transport, "__esModule", { value: true });
|
|
@@ -38726,7 +38886,7 @@ function XHR(opts) {
|
|
|
38726
38886
|
}
|
|
38727
38887
|
}
|
|
38728
38888
|
xmlhttprequest_browser.XHR = XHR;
|
|
38729
|
-
var __importDefault$9 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
38889
|
+
var __importDefault$9 = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
38730
38890
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
38731
38891
|
};
|
|
38732
38892
|
Object.defineProperty(polling, "__esModule", { value: true });
|
|
@@ -39029,7 +39189,7 @@ websocketConstructor_browser.nextTick = (() => {
|
|
|
39029
39189
|
websocketConstructor_browser.WebSocket = globalThis_js_1.globalThisShim.WebSocket || globalThis_js_1.globalThisShim.MozWebSocket;
|
|
39030
39190
|
websocketConstructor_browser.usingBrowserWebSocket = true;
|
|
39031
39191
|
websocketConstructor_browser.defaultBinaryType = "arraybuffer";
|
|
39032
|
-
var __importDefault$8 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
39192
|
+
var __importDefault$8 = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
39033
39193
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
39034
39194
|
};
|
|
39035
39195
|
Object.defineProperty(websocket, "__esModule", { value: true });
|
|
@@ -39214,7 +39374,7 @@ function queryKey$1(uri, query) {
|
|
|
39214
39374
|
});
|
|
39215
39375
|
return data2;
|
|
39216
39376
|
}
|
|
39217
|
-
var __importDefault$7 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
39377
|
+
var __importDefault$7 = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
39218
39378
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
39219
39379
|
};
|
|
39220
39380
|
Object.defineProperty(socket$1, "__esModule", { value: true });
|
|
@@ -39663,7 +39823,7 @@ Socket$1.protocol = engine_io_parser_1.protocol;
|
|
|
39663
39823
|
return parseuri_js_12.parse;
|
|
39664
39824
|
} });
|
|
39665
39825
|
})(cjs$2);
|
|
39666
|
-
var __importDefault$6 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
39826
|
+
var __importDefault$6 = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
39667
39827
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
39668
39828
|
};
|
|
39669
39829
|
Object.defineProperty(url$3, "__esModule", { value: true });
|
|
@@ -39714,311 +39874,332 @@ var manager = {};
|
|
|
39714
39874
|
var socket = {};
|
|
39715
39875
|
var cjs = {};
|
|
39716
39876
|
var binary = {};
|
|
39717
|
-
var isBinary
|
|
39718
|
-
|
|
39719
|
-
|
|
39720
|
-
|
|
39721
|
-
|
|
39722
|
-
|
|
39723
|
-
};
|
|
39724
|
-
|
|
39725
|
-
const
|
|
39726
|
-
const
|
|
39727
|
-
function
|
|
39728
|
-
|
|
39729
|
-
|
|
39730
|
-
|
|
39731
|
-
function
|
|
39732
|
-
|
|
39733
|
-
return
|
|
39734
|
-
}
|
|
39735
|
-
|
|
39736
|
-
|
|
39737
|
-
|
|
39738
|
-
|
|
39877
|
+
var isBinary = {};
|
|
39878
|
+
var hasRequiredIsBinary;
|
|
39879
|
+
function requireIsBinary() {
|
|
39880
|
+
if (hasRequiredIsBinary)
|
|
39881
|
+
return isBinary;
|
|
39882
|
+
hasRequiredIsBinary = 1;
|
|
39883
|
+
Object.defineProperty(isBinary, "__esModule", { value: true });
|
|
39884
|
+
isBinary.hasBinary = isBinary.isBinary = void 0;
|
|
39885
|
+
const withNativeArrayBuffer2 = typeof ArrayBuffer === "function";
|
|
39886
|
+
const isView2 = (obj) => {
|
|
39887
|
+
return typeof ArrayBuffer.isView === "function" ? ArrayBuffer.isView(obj) : obj.buffer instanceof ArrayBuffer;
|
|
39888
|
+
};
|
|
39889
|
+
const toString3 = Object.prototype.toString;
|
|
39890
|
+
const withNativeBlob2 = typeof Blob === "function" || typeof Blob !== "undefined" && toString3.call(Blob) === "[object BlobConstructor]";
|
|
39891
|
+
const withNativeFile = typeof File === "function" || typeof File !== "undefined" && toString3.call(File) === "[object FileConstructor]";
|
|
39892
|
+
function isBinary$1(obj) {
|
|
39893
|
+
return withNativeArrayBuffer2 && (obj instanceof ArrayBuffer || isView2(obj)) || withNativeBlob2 && obj instanceof Blob || withNativeFile && obj instanceof File;
|
|
39894
|
+
}
|
|
39895
|
+
isBinary.isBinary = isBinary$1;
|
|
39896
|
+
function hasBinary(obj, toJSON3) {
|
|
39897
|
+
if (!obj || typeof obj !== "object") {
|
|
39898
|
+
return false;
|
|
39899
|
+
}
|
|
39900
|
+
if (Array.isArray(obj)) {
|
|
39901
|
+
for (let i2 = 0, l2 = obj.length; i2 < l2; i2++) {
|
|
39902
|
+
if (hasBinary(obj[i2])) {
|
|
39903
|
+
return true;
|
|
39904
|
+
}
|
|
39739
39905
|
}
|
|
39906
|
+
return false;
|
|
39740
39907
|
}
|
|
39741
|
-
|
|
39742
|
-
}
|
|
39743
|
-
if (isBinary(obj)) {
|
|
39744
|
-
return true;
|
|
39745
|
-
}
|
|
39746
|
-
if (obj.toJSON && typeof obj.toJSON === "function" && arguments.length === 1) {
|
|
39747
|
-
return hasBinary(obj.toJSON(), true);
|
|
39748
|
-
}
|
|
39749
|
-
for (const key2 in obj) {
|
|
39750
|
-
if (Object.prototype.hasOwnProperty.call(obj, key2) && hasBinary(obj[key2])) {
|
|
39908
|
+
if (isBinary$1(obj)) {
|
|
39751
39909
|
return true;
|
|
39752
39910
|
}
|
|
39753
|
-
|
|
39754
|
-
|
|
39755
|
-
}
|
|
39756
|
-
isBinary$1.hasBinary = hasBinary;
|
|
39757
|
-
Object.defineProperty(binary, "__esModule", { value: true });
|
|
39758
|
-
binary.reconstructPacket = binary.deconstructPacket = void 0;
|
|
39759
|
-
const is_binary_js_1 = isBinary$1;
|
|
39760
|
-
function deconstructPacket(packet) {
|
|
39761
|
-
const buffers = [];
|
|
39762
|
-
const packetData = packet.data;
|
|
39763
|
-
const pack = packet;
|
|
39764
|
-
pack.data = _deconstructPacket(packetData, buffers);
|
|
39765
|
-
pack.attachments = buffers.length;
|
|
39766
|
-
return { packet: pack, buffers };
|
|
39767
|
-
}
|
|
39768
|
-
binary.deconstructPacket = deconstructPacket;
|
|
39769
|
-
function _deconstructPacket(data2, buffers) {
|
|
39770
|
-
if (!data2)
|
|
39771
|
-
return data2;
|
|
39772
|
-
if (is_binary_js_1.isBinary(data2)) {
|
|
39773
|
-
const placeholder = { _placeholder: true, num: buffers.length };
|
|
39774
|
-
buffers.push(data2);
|
|
39775
|
-
return placeholder;
|
|
39776
|
-
} else if (Array.isArray(data2)) {
|
|
39777
|
-
const newData = new Array(data2.length);
|
|
39778
|
-
for (let i2 = 0; i2 < data2.length; i2++) {
|
|
39779
|
-
newData[i2] = _deconstructPacket(data2[i2], buffers);
|
|
39911
|
+
if (obj.toJSON && typeof obj.toJSON === "function" && arguments.length === 1) {
|
|
39912
|
+
return hasBinary(obj.toJSON(), true);
|
|
39780
39913
|
}
|
|
39781
|
-
|
|
39782
|
-
|
|
39783
|
-
|
|
39784
|
-
for (const key2 in data2) {
|
|
39785
|
-
if (Object.prototype.hasOwnProperty.call(data2, key2)) {
|
|
39786
|
-
newData[key2] = _deconstructPacket(data2[key2], buffers);
|
|
39914
|
+
for (const key2 in obj) {
|
|
39915
|
+
if (Object.prototype.hasOwnProperty.call(obj, key2) && hasBinary(obj[key2])) {
|
|
39916
|
+
return true;
|
|
39787
39917
|
}
|
|
39788
39918
|
}
|
|
39789
|
-
return
|
|
39919
|
+
return false;
|
|
39790
39920
|
}
|
|
39791
|
-
|
|
39792
|
-
|
|
39793
|
-
|
|
39794
|
-
|
|
39795
|
-
|
|
39796
|
-
|
|
39797
|
-
|
|
39798
|
-
|
|
39799
|
-
|
|
39800
|
-
|
|
39801
|
-
|
|
39802
|
-
|
|
39803
|
-
const
|
|
39804
|
-
|
|
39805
|
-
|
|
39806
|
-
|
|
39807
|
-
|
|
39808
|
-
}
|
|
39809
|
-
}
|
|
39810
|
-
|
|
39811
|
-
|
|
39812
|
-
|
|
39813
|
-
|
|
39814
|
-
|
|
39815
|
-
|
|
39816
|
-
|
|
39921
|
+
isBinary.hasBinary = hasBinary;
|
|
39922
|
+
return isBinary;
|
|
39923
|
+
}
|
|
39924
|
+
var hasRequiredBinary;
|
|
39925
|
+
function requireBinary() {
|
|
39926
|
+
if (hasRequiredBinary)
|
|
39927
|
+
return binary;
|
|
39928
|
+
hasRequiredBinary = 1;
|
|
39929
|
+
Object.defineProperty(binary, "__esModule", { value: true });
|
|
39930
|
+
binary.reconstructPacket = binary.deconstructPacket = void 0;
|
|
39931
|
+
const is_binary_js_1 = requireIsBinary();
|
|
39932
|
+
function deconstructPacket(packet) {
|
|
39933
|
+
const buffers = [];
|
|
39934
|
+
const packetData = packet.data;
|
|
39935
|
+
const pack = packet;
|
|
39936
|
+
pack.data = _deconstructPacket(packetData, buffers);
|
|
39937
|
+
pack.attachments = buffers.length;
|
|
39938
|
+
return { packet: pack, buffers };
|
|
39939
|
+
}
|
|
39940
|
+
binary.deconstructPacket = deconstructPacket;
|
|
39941
|
+
function _deconstructPacket(data2, buffers) {
|
|
39942
|
+
if (!data2)
|
|
39943
|
+
return data2;
|
|
39944
|
+
if (is_binary_js_1.isBinary(data2)) {
|
|
39945
|
+
const placeholder = { _placeholder: true, num: buffers.length };
|
|
39946
|
+
buffers.push(data2);
|
|
39947
|
+
return placeholder;
|
|
39948
|
+
} else if (Array.isArray(data2)) {
|
|
39949
|
+
const newData = new Array(data2.length);
|
|
39950
|
+
for (let i2 = 0; i2 < data2.length; i2++) {
|
|
39951
|
+
newData[i2] = _deconstructPacket(data2[i2], buffers);
|
|
39817
39952
|
}
|
|
39953
|
+
return newData;
|
|
39954
|
+
} else if (typeof data2 === "object" && !(data2 instanceof Date)) {
|
|
39955
|
+
const newData = {};
|
|
39956
|
+
for (const key2 in data2) {
|
|
39957
|
+
if (Object.prototype.hasOwnProperty.call(data2, key2)) {
|
|
39958
|
+
newData[key2] = _deconstructPacket(data2[key2], buffers);
|
|
39959
|
+
}
|
|
39960
|
+
}
|
|
39961
|
+
return newData;
|
|
39818
39962
|
}
|
|
39963
|
+
return data2;
|
|
39819
39964
|
}
|
|
39820
|
-
|
|
39821
|
-
|
|
39822
|
-
|
|
39823
|
-
|
|
39824
|
-
|
|
39825
|
-
|
|
39826
|
-
|
|
39827
|
-
|
|
39828
|
-
|
|
39829
|
-
|
|
39830
|
-
|
|
39831
|
-
|
|
39832
|
-
|
|
39833
|
-
|
|
39834
|
-
|
|
39835
|
-
|
|
39836
|
-
|
|
39837
|
-
|
|
39838
|
-
|
|
39839
|
-
|
|
39840
|
-
|
|
39841
|
-
|
|
39842
|
-
|
|
39843
|
-
|
|
39844
|
-
}
|
|
39845
|
-
encode(obj) {
|
|
39846
|
-
debug2("encoding packet %j", obj);
|
|
39847
|
-
if (obj.type === PacketType.EVENT || obj.type === PacketType.ACK) {
|
|
39848
|
-
if (is_binary_js_12.hasBinary(obj)) {
|
|
39849
|
-
obj.type = obj.type === PacketType.EVENT ? PacketType.BINARY_EVENT : PacketType.BINARY_ACK;
|
|
39850
|
-
return this.encodeAsBinary(obj);
|
|
39851
|
-
}
|
|
39852
|
-
}
|
|
39853
|
-
return [this.encodeAsString(obj)];
|
|
39854
|
-
}
|
|
39855
|
-
encodeAsString(obj) {
|
|
39856
|
-
let str = "" + obj.type;
|
|
39857
|
-
if (obj.type === PacketType.BINARY_EVENT || obj.type === PacketType.BINARY_ACK) {
|
|
39858
|
-
str += obj.attachments + "-";
|
|
39859
|
-
}
|
|
39860
|
-
if (obj.nsp && "/" !== obj.nsp) {
|
|
39861
|
-
str += obj.nsp + ",";
|
|
39862
|
-
}
|
|
39863
|
-
if (null != obj.id) {
|
|
39864
|
-
str += obj.id;
|
|
39865
|
-
}
|
|
39866
|
-
if (null != obj.data) {
|
|
39867
|
-
str += JSON.stringify(obj.data, this.replacer);
|
|
39868
|
-
}
|
|
39869
|
-
debug2("encoded %j as %s", obj, str);
|
|
39870
|
-
return str;
|
|
39871
|
-
}
|
|
39872
|
-
encodeAsBinary(obj) {
|
|
39873
|
-
const deconstruction = binary_js_1.deconstructPacket(obj);
|
|
39874
|
-
const pack = this.encodeAsString(deconstruction.packet);
|
|
39875
|
-
const buffers = deconstruction.buffers;
|
|
39876
|
-
buffers.unshift(pack);
|
|
39877
|
-
return buffers;
|
|
39878
|
-
}
|
|
39879
|
-
}
|
|
39880
|
-
exports2.Encoder = Encoder;
|
|
39881
|
-
class Decoder extends component_emitter_12.Emitter {
|
|
39882
|
-
constructor(reviver) {
|
|
39883
|
-
super();
|
|
39884
|
-
this.reviver = reviver;
|
|
39885
|
-
}
|
|
39886
|
-
add(obj) {
|
|
39887
|
-
let packet;
|
|
39888
|
-
if (typeof obj === "string") {
|
|
39889
|
-
if (this.reconstructor) {
|
|
39890
|
-
throw new Error("got plaintext data when reconstructing a packet");
|
|
39965
|
+
function reconstructPacket(packet, buffers) {
|
|
39966
|
+
packet.data = _reconstructPacket(packet.data, buffers);
|
|
39967
|
+
packet.attachments = void 0;
|
|
39968
|
+
return packet;
|
|
39969
|
+
}
|
|
39970
|
+
binary.reconstructPacket = reconstructPacket;
|
|
39971
|
+
function _reconstructPacket(data2, buffers) {
|
|
39972
|
+
if (!data2)
|
|
39973
|
+
return data2;
|
|
39974
|
+
if (data2 && data2._placeholder === true) {
|
|
39975
|
+
const isIndexValid = typeof data2.num === "number" && data2.num >= 0 && data2.num < buffers.length;
|
|
39976
|
+
if (isIndexValid) {
|
|
39977
|
+
return buffers[data2.num];
|
|
39978
|
+
} else {
|
|
39979
|
+
throw new Error("illegal attachments");
|
|
39980
|
+
}
|
|
39981
|
+
} else if (Array.isArray(data2)) {
|
|
39982
|
+
for (let i2 = 0; i2 < data2.length; i2++) {
|
|
39983
|
+
data2[i2] = _reconstructPacket(data2[i2], buffers);
|
|
39984
|
+
}
|
|
39985
|
+
} else if (typeof data2 === "object") {
|
|
39986
|
+
for (const key2 in data2) {
|
|
39987
|
+
if (Object.prototype.hasOwnProperty.call(data2, key2)) {
|
|
39988
|
+
data2[key2] = _reconstructPacket(data2[key2], buffers);
|
|
39891
39989
|
}
|
|
39892
|
-
|
|
39893
|
-
|
|
39894
|
-
|
|
39895
|
-
|
|
39990
|
+
}
|
|
39991
|
+
}
|
|
39992
|
+
return data2;
|
|
39993
|
+
}
|
|
39994
|
+
return binary;
|
|
39995
|
+
}
|
|
39996
|
+
var hasRequiredCjs$1;
|
|
39997
|
+
function requireCjs$1() {
|
|
39998
|
+
if (hasRequiredCjs$1)
|
|
39999
|
+
return cjs;
|
|
40000
|
+
hasRequiredCjs$1 = 1;
|
|
40001
|
+
(function(exports2) {
|
|
40002
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
40003
|
+
exports2.Decoder = exports2.Encoder = exports2.PacketType = exports2.protocol = void 0;
|
|
40004
|
+
const component_emitter_12 = require$$5;
|
|
40005
|
+
const binary_js_1 = requireBinary();
|
|
40006
|
+
const is_binary_js_1 = requireIsBinary();
|
|
40007
|
+
const debug_12 = browser.exports;
|
|
40008
|
+
const debug2 = debug_12.default("socket.io-parser");
|
|
40009
|
+
exports2.protocol = 5;
|
|
40010
|
+
var PacketType;
|
|
40011
|
+
(function(PacketType2) {
|
|
40012
|
+
PacketType2[PacketType2["CONNECT"] = 0] = "CONNECT";
|
|
40013
|
+
PacketType2[PacketType2["DISCONNECT"] = 1] = "DISCONNECT";
|
|
40014
|
+
PacketType2[PacketType2["EVENT"] = 2] = "EVENT";
|
|
40015
|
+
PacketType2[PacketType2["ACK"] = 3] = "ACK";
|
|
40016
|
+
PacketType2[PacketType2["CONNECT_ERROR"] = 4] = "CONNECT_ERROR";
|
|
40017
|
+
PacketType2[PacketType2["BINARY_EVENT"] = 5] = "BINARY_EVENT";
|
|
40018
|
+
PacketType2[PacketType2["BINARY_ACK"] = 6] = "BINARY_ACK";
|
|
40019
|
+
})(PacketType = exports2.PacketType || (exports2.PacketType = {}));
|
|
40020
|
+
class Encoder {
|
|
40021
|
+
constructor(replacer) {
|
|
40022
|
+
this.replacer = replacer;
|
|
40023
|
+
}
|
|
40024
|
+
encode(obj) {
|
|
40025
|
+
debug2("encoding packet %j", obj);
|
|
40026
|
+
if (obj.type === PacketType.EVENT || obj.type === PacketType.ACK) {
|
|
40027
|
+
if (is_binary_js_1.hasBinary(obj)) {
|
|
40028
|
+
obj.type = obj.type === PacketType.EVENT ? PacketType.BINARY_EVENT : PacketType.BINARY_ACK;
|
|
40029
|
+
return this.encodeAsBinary(obj);
|
|
40030
|
+
}
|
|
40031
|
+
}
|
|
40032
|
+
return [this.encodeAsString(obj)];
|
|
40033
|
+
}
|
|
40034
|
+
encodeAsString(obj) {
|
|
40035
|
+
let str = "" + obj.type;
|
|
40036
|
+
if (obj.type === PacketType.BINARY_EVENT || obj.type === PacketType.BINARY_ACK) {
|
|
40037
|
+
str += obj.attachments + "-";
|
|
40038
|
+
}
|
|
40039
|
+
if (obj.nsp && "/" !== obj.nsp) {
|
|
40040
|
+
str += obj.nsp + ",";
|
|
40041
|
+
}
|
|
40042
|
+
if (null != obj.id) {
|
|
40043
|
+
str += obj.id;
|
|
40044
|
+
}
|
|
40045
|
+
if (null != obj.data) {
|
|
40046
|
+
str += JSON.stringify(obj.data, this.replacer);
|
|
40047
|
+
}
|
|
40048
|
+
debug2("encoded %j as %s", obj, str);
|
|
40049
|
+
return str;
|
|
40050
|
+
}
|
|
40051
|
+
encodeAsBinary(obj) {
|
|
40052
|
+
const deconstruction = binary_js_1.deconstructPacket(obj);
|
|
40053
|
+
const pack = this.encodeAsString(deconstruction.packet);
|
|
40054
|
+
const buffers = deconstruction.buffers;
|
|
40055
|
+
buffers.unshift(pack);
|
|
40056
|
+
return buffers;
|
|
40057
|
+
}
|
|
40058
|
+
}
|
|
40059
|
+
exports2.Encoder = Encoder;
|
|
40060
|
+
class Decoder extends component_emitter_12.Emitter {
|
|
40061
|
+
constructor(reviver) {
|
|
40062
|
+
super();
|
|
40063
|
+
this.reviver = reviver;
|
|
40064
|
+
}
|
|
40065
|
+
add(obj) {
|
|
40066
|
+
let packet;
|
|
40067
|
+
if (typeof obj === "string") {
|
|
40068
|
+
if (this.reconstructor) {
|
|
40069
|
+
throw new Error("got plaintext data when reconstructing a packet");
|
|
40070
|
+
}
|
|
40071
|
+
packet = this.decodeString(obj);
|
|
40072
|
+
if (packet.type === PacketType.BINARY_EVENT || packet.type === PacketType.BINARY_ACK) {
|
|
40073
|
+
this.reconstructor = new BinaryReconstructor(packet);
|
|
40074
|
+
if (packet.attachments === 0) {
|
|
40075
|
+
super.emitReserved("decoded", packet);
|
|
40076
|
+
}
|
|
40077
|
+
} else {
|
|
39896
40078
|
super.emitReserved("decoded", packet);
|
|
39897
40079
|
}
|
|
39898
|
-
} else {
|
|
39899
|
-
|
|
39900
|
-
|
|
39901
|
-
|
|
39902
|
-
|
|
39903
|
-
|
|
39904
|
-
|
|
39905
|
-
|
|
39906
|
-
|
|
39907
|
-
this.reconstructor = null;
|
|
39908
|
-
super.emitReserved("decoded", packet);
|
|
40080
|
+
} else if (is_binary_js_1.isBinary(obj) || obj.base64) {
|
|
40081
|
+
if (!this.reconstructor) {
|
|
40082
|
+
throw new Error("got binary data when not reconstructing a packet");
|
|
40083
|
+
} else {
|
|
40084
|
+
packet = this.reconstructor.takeBinaryData(obj);
|
|
40085
|
+
if (packet) {
|
|
40086
|
+
this.reconstructor = null;
|
|
40087
|
+
super.emitReserved("decoded", packet);
|
|
40088
|
+
}
|
|
39909
40089
|
}
|
|
40090
|
+
} else {
|
|
40091
|
+
throw new Error("Unknown type: " + obj);
|
|
39910
40092
|
}
|
|
39911
|
-
} else {
|
|
39912
|
-
throw new Error("Unknown type: " + obj);
|
|
39913
|
-
}
|
|
39914
|
-
}
|
|
39915
|
-
decodeString(str) {
|
|
39916
|
-
let i2 = 0;
|
|
39917
|
-
const p2 = {
|
|
39918
|
-
type: Number(str.charAt(0))
|
|
39919
|
-
};
|
|
39920
|
-
if (PacketType[p2.type] === void 0) {
|
|
39921
|
-
throw new Error("unknown packet type " + p2.type);
|
|
39922
40093
|
}
|
|
39923
|
-
|
|
39924
|
-
|
|
39925
|
-
|
|
40094
|
+
decodeString(str) {
|
|
40095
|
+
let i2 = 0;
|
|
40096
|
+
const p2 = {
|
|
40097
|
+
type: Number(str.charAt(0))
|
|
40098
|
+
};
|
|
40099
|
+
if (PacketType[p2.type] === void 0) {
|
|
40100
|
+
throw new Error("unknown packet type " + p2.type);
|
|
39926
40101
|
}
|
|
39927
|
-
|
|
39928
|
-
|
|
39929
|
-
|
|
40102
|
+
if (p2.type === PacketType.BINARY_EVENT || p2.type === PacketType.BINARY_ACK) {
|
|
40103
|
+
const start = i2 + 1;
|
|
40104
|
+
while (str.charAt(++i2) !== "-" && i2 != str.length) {
|
|
40105
|
+
}
|
|
40106
|
+
const buf = str.substring(start, i2);
|
|
40107
|
+
if (buf != Number(buf) || str.charAt(i2) !== "-") {
|
|
40108
|
+
throw new Error("Illegal attachments");
|
|
40109
|
+
}
|
|
40110
|
+
p2.attachments = Number(buf);
|
|
39930
40111
|
}
|
|
39931
|
-
|
|
39932
|
-
|
|
39933
|
-
|
|
39934
|
-
|
|
39935
|
-
|
|
39936
|
-
|
|
39937
|
-
|
|
39938
|
-
|
|
39939
|
-
|
|
39940
|
-
|
|
40112
|
+
if ("/" === str.charAt(i2 + 1)) {
|
|
40113
|
+
const start = i2 + 1;
|
|
40114
|
+
while (++i2) {
|
|
40115
|
+
const c2 = str.charAt(i2);
|
|
40116
|
+
if ("," === c2)
|
|
40117
|
+
break;
|
|
40118
|
+
if (i2 === str.length)
|
|
40119
|
+
break;
|
|
40120
|
+
}
|
|
40121
|
+
p2.nsp = str.substring(start, i2);
|
|
40122
|
+
} else {
|
|
40123
|
+
p2.nsp = "/";
|
|
40124
|
+
}
|
|
40125
|
+
const next = str.charAt(i2 + 1);
|
|
40126
|
+
if ("" !== next && Number(next) == next) {
|
|
40127
|
+
const start = i2 + 1;
|
|
40128
|
+
while (++i2) {
|
|
40129
|
+
const c2 = str.charAt(i2);
|
|
40130
|
+
if (null == c2 || Number(c2) != c2) {
|
|
40131
|
+
--i2;
|
|
40132
|
+
break;
|
|
40133
|
+
}
|
|
40134
|
+
if (i2 === str.length)
|
|
40135
|
+
break;
|
|
40136
|
+
}
|
|
40137
|
+
p2.id = Number(str.substring(start, i2 + 1));
|
|
39941
40138
|
}
|
|
39942
|
-
|
|
39943
|
-
|
|
39944
|
-
|
|
39945
|
-
|
|
39946
|
-
|
|
39947
|
-
|
|
39948
|
-
const start = i2 + 1;
|
|
39949
|
-
while (++i2) {
|
|
39950
|
-
const c2 = str.charAt(i2);
|
|
39951
|
-
if (null == c2 || Number(c2) != c2) {
|
|
39952
|
-
--i2;
|
|
39953
|
-
break;
|
|
40139
|
+
if (str.charAt(++i2)) {
|
|
40140
|
+
const payload = this.tryParse(str.substr(i2));
|
|
40141
|
+
if (Decoder.isPayloadValid(p2.type, payload)) {
|
|
40142
|
+
p2.data = payload;
|
|
40143
|
+
} else {
|
|
40144
|
+
throw new Error("invalid payload");
|
|
39954
40145
|
}
|
|
39955
|
-
if (i2 === str.length)
|
|
39956
|
-
break;
|
|
39957
40146
|
}
|
|
39958
|
-
|
|
40147
|
+
debug2("decoded %s as %j", str, p2);
|
|
40148
|
+
return p2;
|
|
39959
40149
|
}
|
|
39960
|
-
|
|
39961
|
-
|
|
39962
|
-
|
|
39963
|
-
|
|
39964
|
-
|
|
39965
|
-
throw new Error("invalid payload");
|
|
40150
|
+
tryParse(str) {
|
|
40151
|
+
try {
|
|
40152
|
+
return JSON.parse(str, this.reviver);
|
|
40153
|
+
} catch (e2) {
|
|
40154
|
+
return false;
|
|
39966
40155
|
}
|
|
39967
40156
|
}
|
|
39968
|
-
|
|
39969
|
-
|
|
39970
|
-
|
|
39971
|
-
|
|
39972
|
-
|
|
39973
|
-
|
|
39974
|
-
|
|
39975
|
-
|
|
40157
|
+
static isPayloadValid(type, payload) {
|
|
40158
|
+
switch (type) {
|
|
40159
|
+
case PacketType.CONNECT:
|
|
40160
|
+
return typeof payload === "object";
|
|
40161
|
+
case PacketType.DISCONNECT:
|
|
40162
|
+
return payload === void 0;
|
|
40163
|
+
case PacketType.CONNECT_ERROR:
|
|
40164
|
+
return typeof payload === "string" || typeof payload === "object";
|
|
40165
|
+
case PacketType.EVENT:
|
|
40166
|
+
case PacketType.BINARY_EVENT:
|
|
40167
|
+
return Array.isArray(payload) && payload.length > 0;
|
|
40168
|
+
case PacketType.ACK:
|
|
40169
|
+
case PacketType.BINARY_ACK:
|
|
40170
|
+
return Array.isArray(payload);
|
|
40171
|
+
}
|
|
39976
40172
|
}
|
|
39977
|
-
|
|
39978
|
-
|
|
39979
|
-
|
|
39980
|
-
|
|
39981
|
-
return typeof payload === "object";
|
|
39982
|
-
case PacketType.DISCONNECT:
|
|
39983
|
-
return payload === void 0;
|
|
39984
|
-
case PacketType.CONNECT_ERROR:
|
|
39985
|
-
return typeof payload === "string" || typeof payload === "object";
|
|
39986
|
-
case PacketType.EVENT:
|
|
39987
|
-
case PacketType.BINARY_EVENT:
|
|
39988
|
-
return Array.isArray(payload) && payload.length > 0;
|
|
39989
|
-
case PacketType.ACK:
|
|
39990
|
-
case PacketType.BINARY_ACK:
|
|
39991
|
-
return Array.isArray(payload);
|
|
40173
|
+
destroy() {
|
|
40174
|
+
if (this.reconstructor) {
|
|
40175
|
+
this.reconstructor.finishedReconstruction();
|
|
40176
|
+
}
|
|
39992
40177
|
}
|
|
39993
40178
|
}
|
|
39994
|
-
|
|
39995
|
-
|
|
39996
|
-
|
|
40179
|
+
exports2.Decoder = Decoder;
|
|
40180
|
+
class BinaryReconstructor {
|
|
40181
|
+
constructor(packet) {
|
|
40182
|
+
this.packet = packet;
|
|
40183
|
+
this.buffers = [];
|
|
40184
|
+
this.reconPack = packet;
|
|
39997
40185
|
}
|
|
39998
|
-
|
|
39999
|
-
|
|
40000
|
-
|
|
40001
|
-
|
|
40002
|
-
|
|
40003
|
-
|
|
40004
|
-
|
|
40005
|
-
|
|
40006
|
-
|
|
40007
|
-
|
|
40008
|
-
|
|
40009
|
-
|
|
40010
|
-
const packet = binary_js_1.reconstructPacket(this.reconPack, this.buffers);
|
|
40011
|
-
this.finishedReconstruction();
|
|
40012
|
-
return packet;
|
|
40186
|
+
takeBinaryData(binData) {
|
|
40187
|
+
this.buffers.push(binData);
|
|
40188
|
+
if (this.buffers.length === this.reconPack.attachments) {
|
|
40189
|
+
const packet = binary_js_1.reconstructPacket(this.reconPack, this.buffers);
|
|
40190
|
+
this.finishedReconstruction();
|
|
40191
|
+
return packet;
|
|
40192
|
+
}
|
|
40193
|
+
return null;
|
|
40194
|
+
}
|
|
40195
|
+
finishedReconstruction() {
|
|
40196
|
+
this.reconPack = null;
|
|
40197
|
+
this.buffers = [];
|
|
40013
40198
|
}
|
|
40014
|
-
return null;
|
|
40015
|
-
}
|
|
40016
|
-
finishedReconstruction() {
|
|
40017
|
-
this.reconPack = null;
|
|
40018
|
-
this.buffers = [];
|
|
40019
40199
|
}
|
|
40020
|
-
}
|
|
40021
|
-
|
|
40200
|
+
})(cjs);
|
|
40201
|
+
return cjs;
|
|
40202
|
+
}
|
|
40022
40203
|
var on$1 = {};
|
|
40023
40204
|
Object.defineProperty(on$1, "__esModule", { value: true });
|
|
40024
40205
|
on$1.on = void 0;
|
|
@@ -40029,12 +40210,12 @@ function on(obj, ev, fn) {
|
|
|
40029
40210
|
};
|
|
40030
40211
|
}
|
|
40031
40212
|
on$1.on = on;
|
|
40032
|
-
var __importDefault$5 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
40213
|
+
var __importDefault$5 = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
40033
40214
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
40034
40215
|
};
|
|
40035
40216
|
Object.defineProperty(socket, "__esModule", { value: true });
|
|
40036
40217
|
socket.Socket = void 0;
|
|
40037
|
-
const socket_io_parser_1 =
|
|
40218
|
+
const socket_io_parser_1 = requireCjs$1();
|
|
40038
40219
|
const on_js_1$1 = on$1;
|
|
40039
40220
|
const component_emitter_1$1 = require$$5;
|
|
40040
40221
|
const debug_1$1 = __importDefault$5(browser.exports);
|
|
@@ -40413,7 +40594,7 @@ Backoff.prototype.setMax = function(max2) {
|
|
|
40413
40594
|
Backoff.prototype.setJitter = function(jitter) {
|
|
40414
40595
|
this.jitter = jitter;
|
|
40415
40596
|
};
|
|
40416
|
-
var __createBinding$2 = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
40597
|
+
var __createBinding$2 = commonjsGlobal$1 && commonjsGlobal$1.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
40417
40598
|
if (k22 === void 0)
|
|
40418
40599
|
k22 = k2;
|
|
40419
40600
|
Object.defineProperty(o2, k22, { enumerable: true, get: function() {
|
|
@@ -40424,12 +40605,12 @@ var __createBinding$2 = commonjsGlobal && commonjsGlobal.__createBinding || (Obj
|
|
|
40424
40605
|
k22 = k2;
|
|
40425
40606
|
o2[k22] = m2[k2];
|
|
40426
40607
|
});
|
|
40427
|
-
var __setModuleDefault$2 = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o2, v2) {
|
|
40608
|
+
var __setModuleDefault$2 = commonjsGlobal$1 && commonjsGlobal$1.__setModuleDefault || (Object.create ? function(o2, v2) {
|
|
40428
40609
|
Object.defineProperty(o2, "default", { enumerable: true, value: v2 });
|
|
40429
40610
|
} : function(o2, v2) {
|
|
40430
40611
|
o2["default"] = v2;
|
|
40431
40612
|
});
|
|
40432
|
-
var __importStar$2 = commonjsGlobal && commonjsGlobal.__importStar || function(mod2) {
|
|
40613
|
+
var __importStar$2 = commonjsGlobal$1 && commonjsGlobal$1.__importStar || function(mod2) {
|
|
40433
40614
|
if (mod2 && mod2.__esModule)
|
|
40434
40615
|
return mod2;
|
|
40435
40616
|
var result = {};
|
|
@@ -40441,14 +40622,14 @@ var __importStar$2 = commonjsGlobal && commonjsGlobal.__importStar || function(m
|
|
|
40441
40622
|
__setModuleDefault$2(result, mod2);
|
|
40442
40623
|
return result;
|
|
40443
40624
|
};
|
|
40444
|
-
var __importDefault$4 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
40625
|
+
var __importDefault$4 = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
40445
40626
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
40446
40627
|
};
|
|
40447
40628
|
Object.defineProperty(manager, "__esModule", { value: true });
|
|
40448
40629
|
manager.Manager = void 0;
|
|
40449
40630
|
const engine_io_client_1 = cjs$2;
|
|
40450
40631
|
const socket_js_1 = socket;
|
|
40451
|
-
const parser = __importStar$2(
|
|
40632
|
+
const parser = __importStar$2(requireCjs$1());
|
|
40452
40633
|
const on_js_1 = on$1;
|
|
40453
40634
|
const backo2_js_1 = backo2;
|
|
40454
40635
|
const component_emitter_1 = require$$5;
|
|
@@ -40709,7 +40890,7 @@ class Manager extends component_emitter_1.Emitter {
|
|
|
40709
40890
|
}
|
|
40710
40891
|
manager.Manager = Manager;
|
|
40711
40892
|
(function(module2, exports2) {
|
|
40712
|
-
var __importDefault2 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
40893
|
+
var __importDefault2 = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
40713
40894
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
40714
40895
|
};
|
|
40715
40896
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -40763,14 +40944,14 @@ manager.Manager = Manager;
|
|
|
40763
40944
|
io: lookup2,
|
|
40764
40945
|
connect: lookup2
|
|
40765
40946
|
});
|
|
40766
|
-
var socket_io_parser_12 =
|
|
40947
|
+
var socket_io_parser_12 = requireCjs$1();
|
|
40767
40948
|
Object.defineProperty(exports2, "protocol", { enumerable: true, get: function() {
|
|
40768
40949
|
return socket_io_parser_12.protocol;
|
|
40769
40950
|
} });
|
|
40770
40951
|
module2.exports = lookup2;
|
|
40771
40952
|
})(cjs$3, cjs$3.exports);
|
|
40772
40953
|
var IoContext$1 = {};
|
|
40773
|
-
var __importDefault$3 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
40954
|
+
var __importDefault$3 = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
40774
40955
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
40775
40956
|
};
|
|
40776
40957
|
Object.defineProperty(IoContext$1, "__esModule", { value: true });
|
|
@@ -40802,8 +40983,8 @@ var IoContext = react_1$1.default.createContext({
|
|
|
40802
40983
|
}
|
|
40803
40984
|
});
|
|
40804
40985
|
IoContext$1.default = IoContext;
|
|
40805
|
-
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
40806
|
-
__assign = Object.assign || function(t2) {
|
|
40986
|
+
var __assign$1 = commonjsGlobal$1 && commonjsGlobal$1.__assign || function() {
|
|
40987
|
+
__assign$1 = Object.assign || function(t2) {
|
|
40807
40988
|
for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
|
|
40808
40989
|
s2 = arguments[i2];
|
|
40809
40990
|
for (var p2 in s2)
|
|
@@ -40812,9 +40993,9 @@ var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
|
40812
40993
|
}
|
|
40813
40994
|
return t2;
|
|
40814
40995
|
};
|
|
40815
|
-
return __assign.apply(this, arguments);
|
|
40996
|
+
return __assign$1.apply(this, arguments);
|
|
40816
40997
|
};
|
|
40817
|
-
var __createBinding$1 = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
40998
|
+
var __createBinding$1 = commonjsGlobal$1 && commonjsGlobal$1.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
40818
40999
|
if (k22 === void 0)
|
|
40819
41000
|
k22 = k2;
|
|
40820
41001
|
var desc = Object.getOwnPropertyDescriptor(m2, k2);
|
|
@@ -40829,12 +41010,12 @@ var __createBinding$1 = commonjsGlobal && commonjsGlobal.__createBinding || (Obj
|
|
|
40829
41010
|
k22 = k2;
|
|
40830
41011
|
o2[k22] = m2[k2];
|
|
40831
41012
|
});
|
|
40832
|
-
var __setModuleDefault$1 = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o2, v2) {
|
|
41013
|
+
var __setModuleDefault$1 = commonjsGlobal$1 && commonjsGlobal$1.__setModuleDefault || (Object.create ? function(o2, v2) {
|
|
40833
41014
|
Object.defineProperty(o2, "default", { enumerable: true, value: v2 });
|
|
40834
41015
|
} : function(o2, v2) {
|
|
40835
41016
|
o2["default"] = v2;
|
|
40836
41017
|
});
|
|
40837
|
-
var __importStar$1 = commonjsGlobal && commonjsGlobal.__importStar || function(mod2) {
|
|
41018
|
+
var __importStar$1 = commonjsGlobal$1 && commonjsGlobal$1.__importStar || function(mod2) {
|
|
40838
41019
|
if (mod2 && mod2.__esModule)
|
|
40839
41020
|
return mod2;
|
|
40840
41021
|
var result = {};
|
|
@@ -40846,7 +41027,7 @@ var __importStar$1 = commonjsGlobal && commonjsGlobal.__importStar || function(m
|
|
|
40846
41027
|
__setModuleDefault$1(result, mod2);
|
|
40847
41028
|
return result;
|
|
40848
41029
|
};
|
|
40849
|
-
var __importDefault$2 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
41030
|
+
var __importDefault$2 = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
40850
41031
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
40851
41032
|
};
|
|
40852
41033
|
Object.defineProperty(IoProvider$1, "__esModule", { value: true });
|
|
@@ -40891,13 +41072,13 @@ var IoProvider = function(_a) {
|
|
|
40891
41072
|
var handleConnect = function() {
|
|
40892
41073
|
return setStatuses(function(state) {
|
|
40893
41074
|
var _a3;
|
|
40894
|
-
return __assign(__assign({}, state), (_a3 = {}, _a3[namespaceKey] = "connected", _a3));
|
|
41075
|
+
return __assign$1(__assign$1({}, state), (_a3 = {}, _a3[namespaceKey] = "connected", _a3));
|
|
40895
41076
|
});
|
|
40896
41077
|
};
|
|
40897
41078
|
var handleDisconnect = function() {
|
|
40898
41079
|
return setStatuses(function(state) {
|
|
40899
41080
|
var _a3;
|
|
40900
|
-
return __assign(__assign({}, state), (_a3 = {}, _a3[namespaceKey] = "disconnected", _a3));
|
|
41081
|
+
return __assign$1(__assign$1({}, state), (_a3 = {}, _a3[namespaceKey] = "disconnected", _a3));
|
|
40901
41082
|
});
|
|
40902
41083
|
};
|
|
40903
41084
|
var socket2 = (0, socket_io_client_1.default)(urlConfig.source, options);
|
|
@@ -40922,7 +41103,7 @@ var IoProvider = function(_a) {
|
|
|
40922
41103
|
var setLastMessage = function(namespaceKey, forEvent, message) {
|
|
40923
41104
|
return setLastMessages(function(state) {
|
|
40924
41105
|
var _a2;
|
|
40925
|
-
return __assign(__assign({}, state), (_a2 = {}, _a2["".concat(namespaceKey).concat(forEvent)] = message, _a2));
|
|
41106
|
+
return __assign$1(__assign$1({}, state), (_a2 = {}, _a2["".concat(namespaceKey).concat(forEvent)] = message, _a2));
|
|
40926
41107
|
});
|
|
40927
41108
|
};
|
|
40928
41109
|
var getConnection = function(namespaceKey) {
|
|
@@ -40949,7 +41130,7 @@ var IoProvider = function(_a) {
|
|
|
40949
41130
|
}
|
|
40950
41131
|
return setErrors(function(state) {
|
|
40951
41132
|
var _a2;
|
|
40952
|
-
return __assign(__assign({}, state), (_a2 = {}, _a2[namespaceKey] = error, _a2));
|
|
41133
|
+
return __assign$1(__assign$1({}, state), (_a2 = {}, _a2[namespaceKey] = error, _a2));
|
|
40953
41134
|
});
|
|
40954
41135
|
};
|
|
40955
41136
|
var registerSharedListener = function(namespaceKey, forEvent) {
|
|
@@ -41034,7 +41215,7 @@ function queryKey(uri, query) {
|
|
|
41034
41215
|
});
|
|
41035
41216
|
return data2;
|
|
41036
41217
|
}
|
|
41037
|
-
var __importDefault$1 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
41218
|
+
var __importDefault$1 = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
41038
41219
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
41039
41220
|
};
|
|
41040
41221
|
Object.defineProperty(url$1, "__esModule", { value: true });
|
|
@@ -41248,7 +41429,7 @@ const index_es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
41248
41429
|
default: SocketMock
|
|
41249
41430
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
41250
41431
|
const require$$3 = /* @__PURE__ */ getAugmentedNamespace(index_es);
|
|
41251
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
41432
|
+
var __createBinding = commonjsGlobal$1 && commonjsGlobal$1.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
41252
41433
|
if (k22 === void 0)
|
|
41253
41434
|
k22 = k2;
|
|
41254
41435
|
var desc = Object.getOwnPropertyDescriptor(m2, k2);
|
|
@@ -41263,12 +41444,12 @@ var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Objec
|
|
|
41263
41444
|
k22 = k2;
|
|
41264
41445
|
o2[k22] = m2[k2];
|
|
41265
41446
|
});
|
|
41266
|
-
var __setModuleDefault = commonjsGlobal && commonjsGlobal.__setModuleDefault || (Object.create ? function(o2, v2) {
|
|
41447
|
+
var __setModuleDefault = commonjsGlobal$1 && commonjsGlobal$1.__setModuleDefault || (Object.create ? function(o2, v2) {
|
|
41267
41448
|
Object.defineProperty(o2, "default", { enumerable: true, value: v2 });
|
|
41268
41449
|
} : function(o2, v2) {
|
|
41269
41450
|
o2["default"] = v2;
|
|
41270
41451
|
});
|
|
41271
|
-
var __importStar = commonjsGlobal && commonjsGlobal.__importStar || function(mod2) {
|
|
41452
|
+
var __importStar = commonjsGlobal$1 && commonjsGlobal$1.__importStar || function(mod2) {
|
|
41272
41453
|
if (mod2 && mod2.__esModule)
|
|
41273
41454
|
return mod2;
|
|
41274
41455
|
var result = {};
|
|
@@ -41280,7 +41461,7 @@ var __importStar = commonjsGlobal && commonjsGlobal.__importStar || function(mod
|
|
|
41280
41461
|
__setModuleDefault(result, mod2);
|
|
41281
41462
|
return result;
|
|
41282
41463
|
};
|
|
41283
|
-
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
41464
|
+
var __importDefault = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
41284
41465
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
41285
41466
|
};
|
|
41286
41467
|
Object.defineProperty(useSocket$2, "__esModule", { value: true });
|
|
@@ -41360,7 +41541,7 @@ function requireCjs() {
|
|
|
41360
41541
|
if (hasRequiredCjs)
|
|
41361
41542
|
return cjs$4;
|
|
41362
41543
|
hasRequiredCjs = 1;
|
|
41363
|
-
var __importDefault2 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod2) {
|
|
41544
|
+
var __importDefault2 = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod2) {
|
|
41364
41545
|
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
41365
41546
|
};
|
|
41366
41547
|
Object.defineProperty(cjs$4, "__esModule", { value: true });
|
|
@@ -41424,7 +41605,7 @@ const useBaseRequest = ({
|
|
|
41424
41605
|
setData = _setData,
|
|
41425
41606
|
onSuccess
|
|
41426
41607
|
}) => {
|
|
41427
|
-
const emitter = o$
|
|
41608
|
+
const emitter = o$2(
|
|
41428
41609
|
{
|
|
41429
41610
|
listeners: listeners2,
|
|
41430
41611
|
removeListeners,
|
|
@@ -41492,6 +41673,625 @@ const useRequest = ({ asyncRequest, params, ...props }, dep) => {
|
|
|
41492
41673
|
return { setState, next, ...rest };
|
|
41493
41674
|
};
|
|
41494
41675
|
const maximizeIcon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACAEAQAAAA5p3UDAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAAAGAAAABgAPBrQs8AAAAHdElNRQflCh0XODE9tr5GAAACo0lEQVR42u3dTU7jQBBA4TaaHacJKJgkErDlSFnB7TgNGCPWLhYlIcEMY/ePqXTX+9btVpl+RAgpdggAAAAAAMCLbm6BiMivDtR1szOhnDPrAWCLAJwjAOcIwDkCcI4AnCMA51YKYByD9H2XwPoHgm8k2eurTH1vPT8ypQdABE3IC4AIqpcfABFUbf5wh2FZBMMg03ZrfT+INH+wm43I8zOfBI2aO1JdQwTNWhKAriOCJi0NQNcSQXNiAtD1RNCU2AD0mouLqAjk+tr6PvGDlAD0OiJoQmoAei0RVC8nAL2eCKqWG4DuERPBOBLBCSkRgO5DBFUqFYDuRQTVKRmA7kcEVSkdgO5JBO5pBC8vROCYyOXl4gim93eZbm6sZ0ZhRAAiQEIEcntrPTMKIwIQAYgAgQgQQhDZ7fSfQETgFhEgIYK7O+uZURgRrKOaJ4R03dNTCPf3Iby9zS8+Pw9ht7OeGStY9knw8GA9J1b0/wg4fBf+HQGH78rXCDh8l0QOB5Hj0XoOAAAAAAAAAAAAAAAAAEC1RI5HkcPBeg4YEHl85LuITn0ePl9I9eevwycCP348fCJon/7Bt8Q4iuz31vOiMJH9nodUOEcEiH9IBU80bQ8RgAhABAhEgBAZAW8+aRMRIO7ZxkTQJiIAEYAIEGIjSH9r+tzO1j8H134jAgI4cdERTH0ftz8BnLw1IyCASqwVAQFURCNY+tb0ZREQQGX0renlIiCACpWMgAAqVSoCAqhYiQgIoHK5ERBAA3IiIIBGxEdwdaXXEUAzUiIggMbItN2KDMOyCObXWd8PEsR9EhBAk0Q2mxIRWN8HMpSIwPoekCk3Auv5UUBOBHN7/7G+OW9O7bfyzHoA2CIA5wjAOQJwjgCcIwDnCAAAAAAAAMCJD8ZQvP1zR7rXAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTEwLTI5VDIzOjU2OjQ5KzAwOjAwRquYIgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0xMC0yOVQyMzo1Njo0OSswMDowMDf2IJ4AAAAASUVORK5CYII=";
|
|
41676
|
+
var RECURRENCE = {
|
|
41677
|
+
FREQUENCY: {
|
|
41678
|
+
DAILY: "DAILY",
|
|
41679
|
+
WEEKLY: "WEEKLY",
|
|
41680
|
+
MONTHLY: "MONTHLY",
|
|
41681
|
+
YEARLY: "YEARLY"
|
|
41682
|
+
}
|
|
41683
|
+
};
|
|
41684
|
+
var FORMAT = {
|
|
41685
|
+
DATE: "YYYYMMDD",
|
|
41686
|
+
TIME: "ThhmmssZ",
|
|
41687
|
+
FULL: "YYYYMMDDThhmmssZ",
|
|
41688
|
+
NO_UTC_FULL: "YYYYMMDDThhmmss",
|
|
41689
|
+
OUTLOOK_DATE: "YYYY-MM-DD",
|
|
41690
|
+
OUTLOOK_TIME: "Thh:mm:ssZ",
|
|
41691
|
+
OUTLOOK_FULL: "YYYY-MM-DDThh:mm:ssZ"
|
|
41692
|
+
};
|
|
41693
|
+
var URL = {
|
|
41694
|
+
YAHOO: "https://calendar.yahoo.com/",
|
|
41695
|
+
GOOGLE: "https://calendar.google.com/calendar/render",
|
|
41696
|
+
OUTLOOK: "https://outlook.{{host}}.com/calendar/0/deeplink/compose"
|
|
41697
|
+
};
|
|
41698
|
+
var addLeadingZero = function(n2) {
|
|
41699
|
+
if (n2 === void 0) {
|
|
41700
|
+
n2 = "";
|
|
41701
|
+
}
|
|
41702
|
+
return "0".concat(parseInt(n2.toString(), 10)).slice(-2);
|
|
41703
|
+
};
|
|
41704
|
+
var getDuration = function(start, end) {
|
|
41705
|
+
var seconds2 = Math.floor((end - start) / 1e3);
|
|
41706
|
+
var hours2 = Math.floor(seconds2 / 3600);
|
|
41707
|
+
var mins = seconds2 / 3600 % 1 * 60;
|
|
41708
|
+
return "".concat(addLeadingZero(hours2)).concat(addLeadingZero(mins));
|
|
41709
|
+
};
|
|
41710
|
+
var getHoursDiff = function(start, end) {
|
|
41711
|
+
var seconds2 = Math.floor((end - start) / 1e3);
|
|
41712
|
+
return Math.floor(seconds2 / 3600);
|
|
41713
|
+
};
|
|
41714
|
+
var getRecurrenceLengthDays = function(recurrence) {
|
|
41715
|
+
var frequency = recurrence.frequency, interval = recurrence.interval;
|
|
41716
|
+
var FREQUENCY = RECURRENCE.FREQUENCY;
|
|
41717
|
+
if (interval) {
|
|
41718
|
+
switch (frequency) {
|
|
41719
|
+
case FREQUENCY.YEARLY:
|
|
41720
|
+
return interval * 365.25;
|
|
41721
|
+
case FREQUENCY.MONTHLY:
|
|
41722
|
+
return interval * 30.42;
|
|
41723
|
+
case FREQUENCY.WEEKLY:
|
|
41724
|
+
return interval * 7;
|
|
41725
|
+
default:
|
|
41726
|
+
return interval;
|
|
41727
|
+
}
|
|
41728
|
+
}
|
|
41729
|
+
return 365.25 * 100;
|
|
41730
|
+
};
|
|
41731
|
+
var formatDate = function(d2, format2) {
|
|
41732
|
+
if (d2 === void 0) {
|
|
41733
|
+
d2 = new Date();
|
|
41734
|
+
}
|
|
41735
|
+
var dateValues = {
|
|
41736
|
+
YYYY: d2.getUTCFullYear(),
|
|
41737
|
+
MM: addLeadingZero(d2.getUTCMonth() + 1),
|
|
41738
|
+
DD: addLeadingZero(d2.getUTCDate()),
|
|
41739
|
+
hh: addLeadingZero(d2.getUTCHours()),
|
|
41740
|
+
mm: addLeadingZero(d2.getUTCMinutes()),
|
|
41741
|
+
ss: addLeadingZero(d2.getUTCSeconds())
|
|
41742
|
+
};
|
|
41743
|
+
return Object.keys(dateValues).reduce(function(date2, key2) {
|
|
41744
|
+
return date2.replace(key2, dateValues[key2].toString());
|
|
41745
|
+
}, format2);
|
|
41746
|
+
};
|
|
41747
|
+
var formatDateNoUtc = function(d2, format2) {
|
|
41748
|
+
if (d2 === void 0) {
|
|
41749
|
+
d2 = new Date();
|
|
41750
|
+
}
|
|
41751
|
+
var dateValues = {
|
|
41752
|
+
YYYY: d2.getFullYear(),
|
|
41753
|
+
MM: addLeadingZero(d2.getMonth() + 1),
|
|
41754
|
+
DD: addLeadingZero(d2.getDate()),
|
|
41755
|
+
hh: addLeadingZero(d2.getHours()),
|
|
41756
|
+
mm: addLeadingZero(d2.getMinutes()),
|
|
41757
|
+
ss: addLeadingZero(d2.getSeconds())
|
|
41758
|
+
};
|
|
41759
|
+
return Object.keys(dateValues).reduce(function(date2, key2) {
|
|
41760
|
+
return date2.replace(key2, dateValues[key2].toString());
|
|
41761
|
+
}, format2);
|
|
41762
|
+
};
|
|
41763
|
+
var getTimeCreated = function() {
|
|
41764
|
+
return formatDate(new Date(), FORMAT.FULL);
|
|
41765
|
+
};
|
|
41766
|
+
var incrementDate = function(dateInput, days2) {
|
|
41767
|
+
var additionalTime = days2 * 864e5;
|
|
41768
|
+
var newDate = new Date();
|
|
41769
|
+
newDate.setTime(dateInput.getTime() + additionalTime);
|
|
41770
|
+
return newDate;
|
|
41771
|
+
};
|
|
41772
|
+
var time = {
|
|
41773
|
+
addLeadingZero,
|
|
41774
|
+
getDuration,
|
|
41775
|
+
getHoursDiff,
|
|
41776
|
+
getRecurrenceLengthDays,
|
|
41777
|
+
formatDate,
|
|
41778
|
+
formatDateNoUtc,
|
|
41779
|
+
getTimeCreated,
|
|
41780
|
+
incrementDate
|
|
41781
|
+
};
|
|
41782
|
+
var CalendarBase = function() {
|
|
41783
|
+
function CalendarBase2(options) {
|
|
41784
|
+
var _this = this;
|
|
41785
|
+
this.isAllDay = false;
|
|
41786
|
+
this.description = "";
|
|
41787
|
+
this.title = "";
|
|
41788
|
+
this.location = "";
|
|
41789
|
+
this.start = new Date();
|
|
41790
|
+
this.end = new Date();
|
|
41791
|
+
this.params = {};
|
|
41792
|
+
this.attendees = [];
|
|
41793
|
+
this.setText = function(options2) {
|
|
41794
|
+
_this.description = options2.description || "";
|
|
41795
|
+
_this.title = options2.title || "";
|
|
41796
|
+
_this.location = options2.location || "";
|
|
41797
|
+
};
|
|
41798
|
+
this.setTimestamps = function(options2) {
|
|
41799
|
+
_this.isAllDay = !options2.end;
|
|
41800
|
+
_this.start = options2.start;
|
|
41801
|
+
_this.end = options2.end || time.incrementDate(_this.start, 1);
|
|
41802
|
+
_this.recurrence = options2.recurrence;
|
|
41803
|
+
};
|
|
41804
|
+
this.setParam = function(key2, value2) {
|
|
41805
|
+
_this.params[key2] = value2;
|
|
41806
|
+
return _this;
|
|
41807
|
+
};
|
|
41808
|
+
this.setText(options);
|
|
41809
|
+
this.setTimestamps(options);
|
|
41810
|
+
this.setAttendees(options);
|
|
41811
|
+
}
|
|
41812
|
+
CalendarBase2.prototype.setAttendees = function(options) {
|
|
41813
|
+
this.attendees = Array.isArray(options.attendees) ? options.attendees : [];
|
|
41814
|
+
};
|
|
41815
|
+
return CalendarBase2;
|
|
41816
|
+
}();
|
|
41817
|
+
var extendStatics = function(d2, b2) {
|
|
41818
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
|
|
41819
|
+
d3.__proto__ = b3;
|
|
41820
|
+
} || function(d3, b3) {
|
|
41821
|
+
for (var p2 in b3)
|
|
41822
|
+
if (Object.prototype.hasOwnProperty.call(b3, p2))
|
|
41823
|
+
d3[p2] = b3[p2];
|
|
41824
|
+
};
|
|
41825
|
+
return extendStatics(d2, b2);
|
|
41826
|
+
};
|
|
41827
|
+
function __extends(d2, b2) {
|
|
41828
|
+
if (typeof b2 !== "function" && b2 !== null)
|
|
41829
|
+
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
41830
|
+
extendStatics(d2, b2);
|
|
41831
|
+
function __() {
|
|
41832
|
+
this.constructor = d2;
|
|
41833
|
+
}
|
|
41834
|
+
d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
41835
|
+
}
|
|
41836
|
+
var __assign = function() {
|
|
41837
|
+
__assign = Object.assign || function __assign2(t2) {
|
|
41838
|
+
for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
|
|
41839
|
+
s2 = arguments[i2];
|
|
41840
|
+
for (var p2 in s2)
|
|
41841
|
+
if (Object.prototype.hasOwnProperty.call(s2, p2))
|
|
41842
|
+
t2[p2] = s2[p2];
|
|
41843
|
+
}
|
|
41844
|
+
return t2;
|
|
41845
|
+
};
|
|
41846
|
+
return __assign.apply(this, arguments);
|
|
41847
|
+
};
|
|
41848
|
+
function __spreadArray(to2, from2, pack) {
|
|
41849
|
+
if (pack || arguments.length === 2)
|
|
41850
|
+
for (var i2 = 0, l2 = from2.length, ar; i2 < l2; i2++) {
|
|
41851
|
+
if (ar || !(i2 in from2)) {
|
|
41852
|
+
if (!ar)
|
|
41853
|
+
ar = Array.prototype.slice.call(from2, 0, i2);
|
|
41854
|
+
ar[i2] = from2[i2];
|
|
41855
|
+
}
|
|
41856
|
+
}
|
|
41857
|
+
return to2.concat(ar || Array.prototype.slice.call(from2));
|
|
41858
|
+
}
|
|
41859
|
+
var toParamString = function(params, delimiter, transformFn) {
|
|
41860
|
+
if (delimiter === void 0) {
|
|
41861
|
+
delimiter = ";";
|
|
41862
|
+
}
|
|
41863
|
+
if (transformFn === void 0) {
|
|
41864
|
+
transformFn = function(s2) {
|
|
41865
|
+
return s2;
|
|
41866
|
+
};
|
|
41867
|
+
}
|
|
41868
|
+
var paramString = [];
|
|
41869
|
+
for (var key2 in params) {
|
|
41870
|
+
if (params.hasOwnProperty(key2) && params[key2] !== void 0) {
|
|
41871
|
+
paramString.push("".concat(key2, "=").concat(transformFn(params[key2])));
|
|
41872
|
+
}
|
|
41873
|
+
}
|
|
41874
|
+
return paramString.join(delimiter);
|
|
41875
|
+
};
|
|
41876
|
+
var toQueryString = function(params) {
|
|
41877
|
+
var filteredParams = Object.keys(params).filter(function(p2) {
|
|
41878
|
+
return params[p2] !== null;
|
|
41879
|
+
}).reduce(function(p2, k2) {
|
|
41880
|
+
var _a;
|
|
41881
|
+
return __assign(__assign({}, p2), (_a = {}, _a[k2] = params[k2], _a));
|
|
41882
|
+
}, {});
|
|
41883
|
+
return toParamString(filteredParams, "&", encodeURIComponent);
|
|
41884
|
+
};
|
|
41885
|
+
var toIcsParamString = function(params) {
|
|
41886
|
+
return toParamString(params, ";");
|
|
41887
|
+
};
|
|
41888
|
+
var toMailtoList = function(attendees) {
|
|
41889
|
+
return attendees.map(function(_a) {
|
|
41890
|
+
var email = _a.email, name = _a.name;
|
|
41891
|
+
return name ? "".concat(name, " <").concat(email, ">") : email;
|
|
41892
|
+
});
|
|
41893
|
+
};
|
|
41894
|
+
var toProperCase = function(s2) {
|
|
41895
|
+
return [
|
|
41896
|
+
s2[0].toUpperCase(),
|
|
41897
|
+
s2.slice(-s2.length + 1).toLowerCase()
|
|
41898
|
+
].join("");
|
|
41899
|
+
};
|
|
41900
|
+
var data$1 = {
|
|
41901
|
+
toParamString,
|
|
41902
|
+
toQueryString,
|
|
41903
|
+
toIcsParamString,
|
|
41904
|
+
toMailtoList,
|
|
41905
|
+
toProperCase
|
|
41906
|
+
};
|
|
41907
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
41908
|
+
var FileSaver_min = { exports: {} };
|
|
41909
|
+
(function(module2, exports2) {
|
|
41910
|
+
(function(a2, b2) {
|
|
41911
|
+
b2();
|
|
41912
|
+
})(commonjsGlobal, function() {
|
|
41913
|
+
function b2(a3, b3) {
|
|
41914
|
+
return "undefined" == typeof b3 ? b3 = { autoBom: false } : "object" != typeof b3 && (console.warn("Deprecated: Expected third argument to be a object"), b3 = { autoBom: !b3 }), b3.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a3.type) ? new Blob(["\uFEFF", a3], { type: a3.type }) : a3;
|
|
41915
|
+
}
|
|
41916
|
+
function c2(a3, b3, c3) {
|
|
41917
|
+
var d3 = new XMLHttpRequest();
|
|
41918
|
+
d3.open("GET", a3), d3.responseType = "blob", d3.onload = function() {
|
|
41919
|
+
g2(d3.response, b3, c3);
|
|
41920
|
+
}, d3.onerror = function() {
|
|
41921
|
+
console.error("could not download file");
|
|
41922
|
+
}, d3.send();
|
|
41923
|
+
}
|
|
41924
|
+
function d2(a3) {
|
|
41925
|
+
var b3 = new XMLHttpRequest();
|
|
41926
|
+
b3.open("HEAD", a3, false);
|
|
41927
|
+
try {
|
|
41928
|
+
b3.send();
|
|
41929
|
+
} catch (a4) {
|
|
41930
|
+
}
|
|
41931
|
+
return 200 <= b3.status && 299 >= b3.status;
|
|
41932
|
+
}
|
|
41933
|
+
function e2(a3) {
|
|
41934
|
+
try {
|
|
41935
|
+
a3.dispatchEvent(new MouseEvent("click"));
|
|
41936
|
+
} catch (c3) {
|
|
41937
|
+
var b3 = document.createEvent("MouseEvents");
|
|
41938
|
+
b3.initMouseEvent("click", true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null), a3.dispatchEvent(b3);
|
|
41939
|
+
}
|
|
41940
|
+
}
|
|
41941
|
+
var f2 = "object" == typeof window && window.window === window ? window : "object" == typeof self && self.self === self ? self : "object" == typeof commonjsGlobal && commonjsGlobal.global === commonjsGlobal ? commonjsGlobal : void 0, a2 = f2.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), g2 = f2.saveAs || ("object" != typeof window || window !== f2 ? function() {
|
|
41942
|
+
} : "download" in HTMLAnchorElement.prototype && !a2 ? function(b3, g3, h2) {
|
|
41943
|
+
var i2 = f2.URL || f2.webkitURL, j2 = document.createElement("a");
|
|
41944
|
+
g3 = g3 || b3.name || "download", j2.download = g3, j2.rel = "noopener", "string" == typeof b3 ? (j2.href = b3, j2.origin === location.origin ? e2(j2) : d2(j2.href) ? c2(b3, g3, h2) : e2(j2, j2.target = "_blank")) : (j2.href = i2.createObjectURL(b3), setTimeout(function() {
|
|
41945
|
+
i2.revokeObjectURL(j2.href);
|
|
41946
|
+
}, 4e4), setTimeout(function() {
|
|
41947
|
+
e2(j2);
|
|
41948
|
+
}, 0));
|
|
41949
|
+
} : "msSaveOrOpenBlob" in navigator ? function(f3, g3, h2) {
|
|
41950
|
+
if (g3 = g3 || f3.name || "download", "string" != typeof f3)
|
|
41951
|
+
navigator.msSaveOrOpenBlob(b2(f3, h2), g3);
|
|
41952
|
+
else if (d2(f3))
|
|
41953
|
+
c2(f3, g3, h2);
|
|
41954
|
+
else {
|
|
41955
|
+
var i2 = document.createElement("a");
|
|
41956
|
+
i2.href = f3, i2.target = "_blank", setTimeout(function() {
|
|
41957
|
+
e2(i2);
|
|
41958
|
+
});
|
|
41959
|
+
}
|
|
41960
|
+
} : function(b3, d3, e3, g3) {
|
|
41961
|
+
if (g3 = g3 || open("", "_blank"), g3 && (g3.document.title = g3.document.body.innerText = "downloading..."), "string" == typeof b3)
|
|
41962
|
+
return c2(b3, d3, e3);
|
|
41963
|
+
var h2 = "application/octet-stream" === b3.type, i2 = /constructor/i.test(f2.HTMLElement) || f2.safari, j2 = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
41964
|
+
if ((j2 || h2 && i2 || a2) && "undefined" != typeof FileReader) {
|
|
41965
|
+
var k2 = new FileReader();
|
|
41966
|
+
k2.onloadend = function() {
|
|
41967
|
+
var a3 = k2.result;
|
|
41968
|
+
a3 = j2 ? a3 : a3.replace(/^data:[^;]*;/, "data:attachment/file;"), g3 ? g3.location.href = a3 : location = a3, g3 = null;
|
|
41969
|
+
}, k2.readAsDataURL(b3);
|
|
41970
|
+
} else {
|
|
41971
|
+
var l2 = f2.URL || f2.webkitURL, m2 = l2.createObjectURL(b3);
|
|
41972
|
+
g3 ? g3.location = m2 : location.href = m2, g3 = null, setTimeout(function() {
|
|
41973
|
+
l2.revokeObjectURL(m2);
|
|
41974
|
+
}, 4e4);
|
|
41975
|
+
}
|
|
41976
|
+
});
|
|
41977
|
+
f2.saveAs = g2.saveAs = g2, module2.exports = g2;
|
|
41978
|
+
});
|
|
41979
|
+
})(FileSaver_min);
|
|
41980
|
+
var formatText = function(str) {
|
|
41981
|
+
if (str === void 0) {
|
|
41982
|
+
str = "";
|
|
41983
|
+
}
|
|
41984
|
+
return str.replace(/\\/g, "\\\\").replace(/\n/g, "\\n").replace(/[,;]/g, "\\$&");
|
|
41985
|
+
};
|
|
41986
|
+
var getBlob = function(icsData) {
|
|
41987
|
+
return new Blob([icsData], {
|
|
41988
|
+
type: "application/octet-stream"
|
|
41989
|
+
});
|
|
41990
|
+
};
|
|
41991
|
+
var getFileName = function(title) {
|
|
41992
|
+
if (!title) {
|
|
41993
|
+
return "event.ics";
|
|
41994
|
+
}
|
|
41995
|
+
return "".concat(title.replace(/[^\w ]/g, ""), ".ics");
|
|
41996
|
+
};
|
|
41997
|
+
var getUid = function() {
|
|
41998
|
+
return Math.random().toString(36).substr(2);
|
|
41999
|
+
};
|
|
42000
|
+
var getProdId = function() {
|
|
42001
|
+
return typeof window !== "undefined" ? window.location.host : "datebook";
|
|
42002
|
+
};
|
|
42003
|
+
var getRrule = function(recurrence) {
|
|
42004
|
+
var _a, _b;
|
|
42005
|
+
var rrule = {
|
|
42006
|
+
FREQ: recurrence.frequency,
|
|
42007
|
+
INTERVAL: (_a = recurrence.interval) === null || _a === void 0 ? void 0 : _a.toString(),
|
|
42008
|
+
COUNT: (_b = recurrence.count) === null || _b === void 0 ? void 0 : _b.toString(),
|
|
42009
|
+
WKST: recurrence.weekstart,
|
|
42010
|
+
BYDAY: recurrence.weekdays,
|
|
42011
|
+
BYMONTHDAY: recurrence.monthdays
|
|
42012
|
+
};
|
|
42013
|
+
if (recurrence.end) {
|
|
42014
|
+
rrule.UNTIL = time.formatDate(recurrence.end, FORMAT.FULL);
|
|
42015
|
+
}
|
|
42016
|
+
return data$1.toIcsParamString(rrule);
|
|
42017
|
+
};
|
|
42018
|
+
var download = function(fileName, data2) {
|
|
42019
|
+
var blob = getBlob(data2);
|
|
42020
|
+
FileSaver_min.exports.saveAs(blob, fileName);
|
|
42021
|
+
};
|
|
42022
|
+
var ics = {
|
|
42023
|
+
formatText,
|
|
42024
|
+
getBlob,
|
|
42025
|
+
getFileName,
|
|
42026
|
+
getUid,
|
|
42027
|
+
getProdId,
|
|
42028
|
+
getRrule,
|
|
42029
|
+
download
|
|
42030
|
+
};
|
|
42031
|
+
var GoogleCalendar = function(_super) {
|
|
42032
|
+
__extends(GoogleCalendar2, _super);
|
|
42033
|
+
function GoogleCalendar2(opts) {
|
|
42034
|
+
var _this = _super.call(this, opts) || this;
|
|
42035
|
+
_this.setInitialParams = function() {
|
|
42036
|
+
var timestampFormat = FORMAT.DATE;
|
|
42037
|
+
if (!_this.isAllDay) {
|
|
42038
|
+
timestampFormat += FORMAT.TIME;
|
|
42039
|
+
}
|
|
42040
|
+
var dates = [
|
|
42041
|
+
time.formatDate(_this.start, timestampFormat),
|
|
42042
|
+
time.formatDate(_this.end, timestampFormat)
|
|
42043
|
+
].join("/");
|
|
42044
|
+
_this.setParam("action", "TEMPLATE").setParam("dates", dates).setParam("text", _this.title).setParam("details", _this.description).setParam("location", _this.location).setParam("allday", _this.isAllDay.toString());
|
|
42045
|
+
if (_this.recurrence) {
|
|
42046
|
+
_this.setParam("recur", "RRULE:".concat(ics.getRrule(_this.recurrence)));
|
|
42047
|
+
}
|
|
42048
|
+
if (_this.attendees.length > 0) {
|
|
42049
|
+
_this.setParam("add", data$1.toMailtoList(_this.attendees).join(","));
|
|
42050
|
+
}
|
|
42051
|
+
};
|
|
42052
|
+
_this.render = function() {
|
|
42053
|
+
var baseUrl = URL.GOOGLE;
|
|
42054
|
+
var queryString = data$1.toQueryString(_this.params);
|
|
42055
|
+
return "".concat(baseUrl, "?").concat(queryString);
|
|
42056
|
+
};
|
|
42057
|
+
_this.setInitialParams();
|
|
42058
|
+
return _this;
|
|
42059
|
+
}
|
|
42060
|
+
return GoogleCalendar2;
|
|
42061
|
+
}(CalendarBase);
|
|
42062
|
+
var YahooCalendar = function(_super) {
|
|
42063
|
+
__extends(YahooCalendar2, _super);
|
|
42064
|
+
function YahooCalendar2(opts) {
|
|
42065
|
+
var _this = _super.call(this, opts) || this;
|
|
42066
|
+
_this.setInitialParams = function() {
|
|
42067
|
+
_this.setParam("v", "60").setParam("title", _this.title).setParam("desc", _this.description).setParam("in_loc", _this.location);
|
|
42068
|
+
_this.setTimeParams();
|
|
42069
|
+
if (_this.attendees.length > 0) {
|
|
42070
|
+
_this.setParam("inv_list", data$1.toMailtoList(_this.attendees).join(","));
|
|
42071
|
+
}
|
|
42072
|
+
};
|
|
42073
|
+
_this.setTimeParams = function() {
|
|
42074
|
+
if (_this.isAllDay) {
|
|
42075
|
+
_this.setParam("dur", "allday").setParam("st", time.formatDateNoUtc(_this.start, FORMAT.DATE));
|
|
42076
|
+
} else {
|
|
42077
|
+
_this.setParam("st", time.formatDateNoUtc(_this.start, FORMAT.NO_UTC_FULL));
|
|
42078
|
+
if (time.getHoursDiff(_this.start.getTime(), _this.end.getTime()) > 99) {
|
|
42079
|
+
_this.setParam("et", time.formatDateNoUtc(_this.end, FORMAT.NO_UTC_FULL));
|
|
42080
|
+
} else {
|
|
42081
|
+
_this.setParam("dur", time.getDuration(_this.start.getTime(), _this.end.getTime()));
|
|
42082
|
+
}
|
|
42083
|
+
}
|
|
42084
|
+
};
|
|
42085
|
+
_this.render = function() {
|
|
42086
|
+
var baseUrl = URL.YAHOO;
|
|
42087
|
+
var queryString = data$1.toQueryString(_this.params);
|
|
42088
|
+
return "".concat(baseUrl, "?").concat(queryString);
|
|
42089
|
+
};
|
|
42090
|
+
_this.setInitialParams();
|
|
42091
|
+
return _this;
|
|
42092
|
+
}
|
|
42093
|
+
return YahooCalendar2;
|
|
42094
|
+
}(CalendarBase);
|
|
42095
|
+
var OutlookCalendar = function(_super) {
|
|
42096
|
+
__extends(OutlookCalendar2, _super);
|
|
42097
|
+
function OutlookCalendar2(opts) {
|
|
42098
|
+
var _this = _super.call(this, opts) || this;
|
|
42099
|
+
_this.baseUrl = URL.OUTLOOK;
|
|
42100
|
+
_this.setInitialParams = function() {
|
|
42101
|
+
var timestampFormat = FORMAT.OUTLOOK_DATE;
|
|
42102
|
+
if (!_this.isAllDay) {
|
|
42103
|
+
timestampFormat += FORMAT.OUTLOOK_TIME;
|
|
42104
|
+
}
|
|
42105
|
+
_this.setParam("rru", "addevent").setParam("path", "/calendar/action/compose").setParam("startdt", time.formatDate(_this.start, timestampFormat)).setParam("enddt", time.formatDate(_this.end, timestampFormat)).setParam("subject", _this.title).setParam("body", _this.description).setParam("location", _this.location).setParam("allday", _this.isAllDay.toString());
|
|
42106
|
+
if (_this.attendees.length > 0) {
|
|
42107
|
+
_this.setParam("to", data$1.toMailtoList(_this.attendees).join(","));
|
|
42108
|
+
}
|
|
42109
|
+
};
|
|
42110
|
+
_this.setHost = function(host) {
|
|
42111
|
+
if (["live", "office"].includes(host)) {
|
|
42112
|
+
_this.baseUrl = URL.OUTLOOK.replace("{{host}}", host);
|
|
42113
|
+
}
|
|
42114
|
+
return _this;
|
|
42115
|
+
};
|
|
42116
|
+
_this.render = function() {
|
|
42117
|
+
var queryString = data$1.toQueryString(_this.params);
|
|
42118
|
+
return "".concat(_this.baseUrl, "?").concat(queryString);
|
|
42119
|
+
};
|
|
42120
|
+
_this.setInitialParams();
|
|
42121
|
+
_this.setHost("live");
|
|
42122
|
+
return _this;
|
|
42123
|
+
}
|
|
42124
|
+
return OutlookCalendar2;
|
|
42125
|
+
}(CalendarBase);
|
|
42126
|
+
(function(_super) {
|
|
42127
|
+
__extends(ICalendar, _super);
|
|
42128
|
+
function ICalendar(opts) {
|
|
42129
|
+
var _this = _super.call(this, opts) || this;
|
|
42130
|
+
_this.additionalEvents = [];
|
|
42131
|
+
_this.properties = [];
|
|
42132
|
+
_this.meta = {};
|
|
42133
|
+
_this.setInitialParams = function() {
|
|
42134
|
+
_this.setMeta("UID", ics.getUid()).setMeta("DTSTAMP", time.getTimeCreated()).addProperty("CLASS", "PUBLIC").addProperty("DESCRIPTION", ics.formatText(_this.description)).addProperty("LOCATION", ics.formatText(_this.location)).addProperty("SUMMARY", ics.formatText(_this.title)).addProperty("TRANSP", "TRANSPARENT");
|
|
42135
|
+
if (_this.isAllDay) {
|
|
42136
|
+
_this.addProperty("DTSTART;VALUE=DATE", time.formatDateNoUtc(_this.start, FORMAT.DATE)).addProperty("DTEND;VALUE=DATE", time.formatDateNoUtc(time.incrementDate(_this.start, 1), FORMAT.DATE));
|
|
42137
|
+
} else {
|
|
42138
|
+
_this.addProperty("DTSTART", time.formatDate(_this.start, FORMAT.FULL)).addProperty("DTEND", time.formatDate(_this.end, FORMAT.FULL));
|
|
42139
|
+
}
|
|
42140
|
+
if (_this.recurrence) {
|
|
42141
|
+
_this.addProperty("RRULE", ics.getRrule(_this.recurrence));
|
|
42142
|
+
}
|
|
42143
|
+
if (_this.attendees.length > 0) {
|
|
42144
|
+
_this.attendees.forEach(function(_a) {
|
|
42145
|
+
var email = _a.email, name = _a.name, _b = _a.icsOptions, icsOptions = _b === void 0 ? {} : _b;
|
|
42146
|
+
var params = _this.getAttendeeParams(icsOptions, name);
|
|
42147
|
+
var mailto = "MAILTO:".concat(email);
|
|
42148
|
+
_this.addProperty(params, mailto);
|
|
42149
|
+
});
|
|
42150
|
+
}
|
|
42151
|
+
};
|
|
42152
|
+
_this.getAttendeeParams = function(options, name) {
|
|
42153
|
+
var params = {};
|
|
42154
|
+
if (name)
|
|
42155
|
+
params["CN"] = name;
|
|
42156
|
+
if (options.delegatedFrom)
|
|
42157
|
+
params["DELEGATED-FROM"] = options.delegatedFrom;
|
|
42158
|
+
if (options.partStat)
|
|
42159
|
+
params["PARTSTAT"] = options.partStat;
|
|
42160
|
+
if (options.role)
|
|
42161
|
+
params["ROLE"] = options.role;
|
|
42162
|
+
if (options.sentBy)
|
|
42163
|
+
params["SENT-BY"] = options.sentBy;
|
|
42164
|
+
params["RSVP"] = options.rsvp ? "TRUE" : "FALSE";
|
|
42165
|
+
var paramString = data$1.toParamString(params, ";");
|
|
42166
|
+
return "ATTENDEE;".concat(paramString);
|
|
42167
|
+
};
|
|
42168
|
+
_this.getAlarmDuration = function(duration) {
|
|
42169
|
+
var features = [
|
|
42170
|
+
"".concat(duration.weeks, "W"),
|
|
42171
|
+
"".concat(duration.days, "D"),
|
|
42172
|
+
"".concat(duration.hours, "H"),
|
|
42173
|
+
"".concat(duration.minutes, "M"),
|
|
42174
|
+
"".concat(duration.seconds, "S")
|
|
42175
|
+
].filter(function(s2) {
|
|
42176
|
+
return /^[0-9]+[A-Z]$/.exec(s2);
|
|
42177
|
+
});
|
|
42178
|
+
features.unshift(duration.after ? "PT" : "-PT");
|
|
42179
|
+
return features.join("");
|
|
42180
|
+
};
|
|
42181
|
+
_this.getMeta = function() {
|
|
42182
|
+
return Object.keys(_this.meta).map(function(key2) {
|
|
42183
|
+
return "".concat(key2, ":").concat(_this.meta[key2]);
|
|
42184
|
+
});
|
|
42185
|
+
};
|
|
42186
|
+
_this.setMeta = function(key2, value2) {
|
|
42187
|
+
_this.meta[key2] = value2;
|
|
42188
|
+
return _this;
|
|
42189
|
+
};
|
|
42190
|
+
_this.addEvent = function(event) {
|
|
42191
|
+
_this.additionalEvents.push(event);
|
|
42192
|
+
return _this;
|
|
42193
|
+
};
|
|
42194
|
+
_this.addProperty = function(key2, value2) {
|
|
42195
|
+
if (typeof value2 === "object") {
|
|
42196
|
+
_this.properties.push("BEGIN:".concat(key2));
|
|
42197
|
+
for (var k2 in value2) {
|
|
42198
|
+
_this.addProperty(k2, value2[k2]);
|
|
42199
|
+
}
|
|
42200
|
+
_this.properties.push("END:".concat(key2));
|
|
42201
|
+
} else {
|
|
42202
|
+
_this.properties.push("".concat(key2, ":").concat(value2.toString()));
|
|
42203
|
+
}
|
|
42204
|
+
return _this;
|
|
42205
|
+
};
|
|
42206
|
+
_this.addAlarm = function(alarm) {
|
|
42207
|
+
var value2 = {
|
|
42208
|
+
ACTION: alarm.action
|
|
42209
|
+
};
|
|
42210
|
+
if (alarm.description)
|
|
42211
|
+
value2.DESCRIPTION = ics.formatText(alarm.description);
|
|
42212
|
+
if (alarm.summary)
|
|
42213
|
+
value2.SUMMARY = ics.formatText(alarm.summary);
|
|
42214
|
+
if (alarm.duration)
|
|
42215
|
+
value2.DURATION = _this.getAlarmDuration(alarm.duration);
|
|
42216
|
+
if (alarm.repeat)
|
|
42217
|
+
value2.REPEAT = alarm.repeat;
|
|
42218
|
+
if (alarm.attach) {
|
|
42219
|
+
var key2 = alarm.attach.params ? "ATTACH;".concat(alarm.attach.params) : "ATTACH";
|
|
42220
|
+
value2[key2] = alarm.attach.url;
|
|
42221
|
+
}
|
|
42222
|
+
if (alarm.trigger instanceof Date) {
|
|
42223
|
+
value2["TRIGGER;VALUE=DATE-TIME"] = time.formatDate(alarm.trigger, FORMAT.FULL);
|
|
42224
|
+
} else {
|
|
42225
|
+
value2["TRIGGER"] = _this.getAlarmDuration(alarm.trigger);
|
|
42226
|
+
}
|
|
42227
|
+
return _this.addProperty("VALARM", value2);
|
|
42228
|
+
};
|
|
42229
|
+
_this.download = function(fileName) {
|
|
42230
|
+
console.warn([
|
|
42231
|
+
"ICalendar.download() is deprecated and will be removed in the next major release.",
|
|
42232
|
+
"See https://datebook.dev/api/icalendar.html#example-for-downloading-an-ics-file for more info on how to download ICS files."
|
|
42233
|
+
].join(" "));
|
|
42234
|
+
ics.download(fileName || ics.getFileName(_this.title), _this.render());
|
|
42235
|
+
};
|
|
42236
|
+
_this.render = function() {
|
|
42237
|
+
var events2 = __spreadArray([
|
|
42238
|
+
_this
|
|
42239
|
+
], _this.additionalEvents, true);
|
|
42240
|
+
var vEvents = events2.reduce(function(properties, calendar2) {
|
|
42241
|
+
return __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], properties, true), [
|
|
42242
|
+
"BEGIN:VEVENT"
|
|
42243
|
+
], false), calendar2.properties, true), calendar2.getMeta(), true), [
|
|
42244
|
+
"END:VEVENT"
|
|
42245
|
+
], false);
|
|
42246
|
+
}, []);
|
|
42247
|
+
return __spreadArray(__spreadArray([
|
|
42248
|
+
"BEGIN:VCALENDAR",
|
|
42249
|
+
"VERSION:2.0"
|
|
42250
|
+
], vEvents, true), [
|
|
42251
|
+
"PRODID:".concat(ics.getProdId()),
|
|
42252
|
+
"END:VCALENDAR"
|
|
42253
|
+
], false).join("\n");
|
|
42254
|
+
};
|
|
42255
|
+
_this.setInitialParams();
|
|
42256
|
+
return _this;
|
|
42257
|
+
}
|
|
42258
|
+
return ICalendar;
|
|
42259
|
+
})(CalendarBase);
|
|
42260
|
+
function o$1(n2, e2, t2) {
|
|
42261
|
+
return e2 in n2 ? Object.defineProperty(n2, e2, { value: t2, enumerable: true, configurable: true, writable: true }) : n2[e2] = t2, n2;
|
|
42262
|
+
}
|
|
42263
|
+
var u = { click: "onClick", focusin: "onFocus", focusout: "onFocus", mousedown: "onMouseDown", mouseup: "onMouseUp", touchstart: "onTouchStart", touchend: "onTouchEnd" }, c$1 = function(c2) {
|
|
42264
|
+
var i2, a2 = c2.children, v2 = c2.onClickAway, s2 = c2.focusEvent, l2 = void 0 === s2 ? "focusin" : s2, d2 = c2.mouseEvent, f2 = void 0 === d2 ? "click" : d2, m2 = c2.touchEvent, E2 = void 0 === m2 ? "touchend" : m2, p2 = react.exports.useRef(null), h2 = react.exports.useRef(null), L2 = react.exports.useRef(false);
|
|
42265
|
+
react.exports.useEffect(function() {
|
|
42266
|
+
return setTimeout(function() {
|
|
42267
|
+
L2.current = true;
|
|
42268
|
+
}, 0), function() {
|
|
42269
|
+
L2.current = false;
|
|
42270
|
+
};
|
|
42271
|
+
}, []);
|
|
42272
|
+
var w2 = function(n2) {
|
|
42273
|
+
return function(e2) {
|
|
42274
|
+
h2.current = e2.target;
|
|
42275
|
+
var t2 = null == a2 ? void 0 : a2.props[n2];
|
|
42276
|
+
t2 && t2(e2);
|
|
42277
|
+
};
|
|
42278
|
+
};
|
|
42279
|
+
react.exports.useEffect(function() {
|
|
42280
|
+
var n2, e2, t2 = null !== (n2 = null === (e2 = p2.current) || void 0 === e2 ? void 0 : e2.ownerDocument) && void 0 !== n2 ? n2 : document, r2 = function(n3) {
|
|
42281
|
+
L2.current && (p2.current && p2.current.contains(n3.target) || h2.current === n3.target || !t2.contains(n3.target) || v2(n3));
|
|
42282
|
+
};
|
|
42283
|
+
return t2.addEventListener(f2, r2), t2.addEventListener(E2, r2), t2.addEventListener(l2, r2), function() {
|
|
42284
|
+
t2.removeEventListener(f2, r2), t2.removeEventListener(E2, r2), t2.removeEventListener(l2, r2);
|
|
42285
|
+
};
|
|
42286
|
+
}, [l2, f2, v2, E2]);
|
|
42287
|
+
var y2 = u[f2], g2 = u[E2], k2 = u[l2];
|
|
42288
|
+
return React$1.Children.only(react.exports.cloneElement(a2, (o$1(i2 = { ref: function(n2) {
|
|
42289
|
+
p2.current = n2;
|
|
42290
|
+
var e2 = a2.ref;
|
|
42291
|
+
"function" == typeof e2 ? e2(n2) : e2 && (e2.current = n2);
|
|
42292
|
+
} }, k2, w2(k2)), o$1(i2, y2, w2(y2)), o$1(i2, g2, w2(g2)), i2)));
|
|
42293
|
+
};
|
|
42294
|
+
c$1.displayName = "ClickAwayListener";
|
|
41495
42295
|
const PhoneInput$1 = lib.default || lib;
|
|
41496
42296
|
const days$1 = {
|
|
41497
42297
|
Monday: 1,
|
|
@@ -41582,7 +42382,7 @@ const Offline = react.exports.memo(({
|
|
|
41582
42382
|
email,
|
|
41583
42383
|
account,
|
|
41584
42384
|
date: date2,
|
|
41585
|
-
time,
|
|
42385
|
+
time: time2,
|
|
41586
42386
|
reason: reason2
|
|
41587
42387
|
}, {
|
|
41588
42388
|
resetForm
|
|
@@ -41590,7 +42390,7 @@ const Offline = react.exports.memo(({
|
|
|
41590
42390
|
try {
|
|
41591
42391
|
saved.current = {
|
|
41592
42392
|
date: date2,
|
|
41593
|
-
time,
|
|
42393
|
+
time: time2,
|
|
41594
42394
|
reason: reason2
|
|
41595
42395
|
};
|
|
41596
42396
|
if (calendar2) {
|
|
@@ -41604,7 +42404,7 @@ const Offline = react.exports.memo(({
|
|
|
41604
42404
|
mobile,
|
|
41605
42405
|
account,
|
|
41606
42406
|
reason: reason2,
|
|
41607
|
-
scheduledAt: hooks(`${date2} ${
|
|
42407
|
+
scheduledAt: hooks(`${date2} ${time2}`).format(),
|
|
41608
42408
|
country,
|
|
41609
42409
|
latitude,
|
|
41610
42410
|
longitude,
|
|
@@ -41625,7 +42425,7 @@ const Offline = react.exports.memo(({
|
|
|
41625
42425
|
mobile,
|
|
41626
42426
|
account,
|
|
41627
42427
|
reason: reason2,
|
|
41628
|
-
scheduledAt: hooks(`${date2} ${
|
|
42428
|
+
scheduledAt: hooks(`${date2} ${time2}`).format(),
|
|
41629
42429
|
country,
|
|
41630
42430
|
latitude,
|
|
41631
42431
|
longitude,
|
|
@@ -41859,7 +42659,7 @@ const Schedules = react.exports.memo(function({
|
|
|
41859
42659
|
customer: customer == null ? void 0 : customer.id,
|
|
41860
42660
|
isFuture: true,
|
|
41861
42661
|
order: {
|
|
41862
|
-
scheduledAt: "ASC"
|
|
42662
|
+
"calendar.scheduledAt": "ASC"
|
|
41863
42663
|
}
|
|
41864
42664
|
}]
|
|
41865
42665
|
});
|
|
@@ -41931,7 +42731,7 @@ const EmptySchedule = react.exports.memo(function() {
|
|
|
41931
42731
|
return /* @__PURE__ */ jsx(Col$1, {
|
|
41932
42732
|
children: /* @__PURE__ */ jsx("p", {
|
|
41933
42733
|
className: styles$1.schTitle,
|
|
41934
|
-
children: "
|
|
42734
|
+
children: "No Scheduled Meeting"
|
|
41935
42735
|
})
|
|
41936
42736
|
});
|
|
41937
42737
|
});
|
|
@@ -41969,12 +42769,28 @@ const Schedule = react.exports.memo(function({
|
|
|
41969
42769
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
41970
42770
|
className: styles$1.reason,
|
|
41971
42771
|
children: reason2 == null ? void 0 : reason2.truncate(30)
|
|
41972
|
-
}), /* @__PURE__ */
|
|
42772
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
41973
42773
|
className: styles$1.schTime,
|
|
41974
|
-
children:
|
|
41975
|
-
|
|
41976
|
-
|
|
41977
|
-
|
|
42774
|
+
children: hooks(scheduledAt).calendar(null, {
|
|
42775
|
+
lastDay: function() {
|
|
42776
|
+
return `[Yesterday at] HH:mm - ${hooks(this).add(1, "hour").format("HH:mm")}`;
|
|
42777
|
+
},
|
|
42778
|
+
sameDay: function() {
|
|
42779
|
+
return `[Today at] HH:mm - ${hooks(this).add(1, "hour").format("HH:mm")}`;
|
|
42780
|
+
},
|
|
42781
|
+
nextDay: function() {
|
|
42782
|
+
return `[Tomorrow at] HH:mm - ${hooks(this).add(1, "hour").format("HH:mm")}`;
|
|
42783
|
+
},
|
|
42784
|
+
lastWeek: function() {
|
|
42785
|
+
return `[last] dddd [at] HH:mm - ${hooks(this).add(1, "hour").format("HH:mm")}`;
|
|
42786
|
+
},
|
|
42787
|
+
nextWeek: function() {
|
|
42788
|
+
return `dddd [at] HH:mm - ${hooks(this).add(1, "hour").format("HH:mm")}`;
|
|
42789
|
+
},
|
|
42790
|
+
sameElse: function() {
|
|
42791
|
+
return `HH:mm - ${hooks(this).add(1, "hour").format("HH:mm")}`;
|
|
42792
|
+
}
|
|
42793
|
+
})
|
|
41978
42794
|
})]
|
|
41979
42795
|
})]
|
|
41980
42796
|
}), /* @__PURE__ */ jsxs(Row$1, {
|
|
@@ -42014,7 +42830,7 @@ const FInput = react.exports.memo(({
|
|
|
42014
42830
|
const regexPattern = /^[a-zA-Z\s]*$/;
|
|
42015
42831
|
const onNameChange = (e2) => {
|
|
42016
42832
|
if (e2.target.value === "" || regexPattern.test(e2.target.value)) {
|
|
42017
|
-
return onChange && onChange(e2) || handleChange(e2);
|
|
42833
|
+
return onChange && onChange(e2) || handleChange && handleChange(e2);
|
|
42018
42834
|
}
|
|
42019
42835
|
};
|
|
42020
42836
|
return /* @__PURE__ */ jsxs(FormGroup$1, {
|
|
@@ -42030,7 +42846,7 @@ const FInput = react.exports.memo(({
|
|
|
42030
42846
|
className: "",
|
|
42031
42847
|
for: "name",
|
|
42032
42848
|
children: /* @__PURE__ */ jsx("span", {
|
|
42033
|
-
className: "
|
|
42849
|
+
className: "bg-white text-dark pt-1 pl-2 pr-2",
|
|
42034
42850
|
children: label
|
|
42035
42851
|
})
|
|
42036
42852
|
})
|
|
@@ -42048,7 +42864,8 @@ const FInput = react.exports.memo(({
|
|
|
42048
42864
|
valid: touched[name] && !errors[name],
|
|
42049
42865
|
invalid: touched[name] && !!errors[name],
|
|
42050
42866
|
placeholder,
|
|
42051
|
-
type
|
|
42867
|
+
type,
|
|
42868
|
+
bsSize: "sm"
|
|
42052
42869
|
}), errors[name] ? /* @__PURE__ */ jsx(FormFeedback$1, {
|
|
42053
42870
|
children: errors[name]
|
|
42054
42871
|
}) : null]
|
|
@@ -42056,19 +42873,52 @@ const FInput = react.exports.memo(({
|
|
|
42056
42873
|
});
|
|
42057
42874
|
});
|
|
42058
42875
|
const Done = react.exports.memo(({
|
|
42059
|
-
time,
|
|
42876
|
+
time: time2,
|
|
42060
42877
|
date: date2,
|
|
42061
42878
|
reason: reason2,
|
|
42062
42879
|
name,
|
|
42063
42880
|
hexcode,
|
|
42064
42881
|
done
|
|
42065
42882
|
}) => {
|
|
42066
|
-
|
|
42067
|
-
|
|
42068
|
-
|
|
42069
|
-
|
|
42070
|
-
|
|
42071
|
-
|
|
42883
|
+
var _a, _b, _c;
|
|
42884
|
+
const [opened, setOpened] = useState(false);
|
|
42885
|
+
const eventProviders = react.exports.useMemo(() => {
|
|
42886
|
+
const event = {
|
|
42887
|
+
title: `${name} Video Call`,
|
|
42888
|
+
description: `Callback reason: ${reason2}
|
|
42889
|
+
|
|
42890
|
+
Call link: ${window.location}
|
|
42891
|
+
|
|
42892
|
+
Customer Instruction:
|
|
42893
|
+
|
|
42894
|
+
When it is time for the meeting, follow these instructions to chat with an agent.
|
|
42895
|
+
|
|
42896
|
+
Step 1: Log into your bank's internet banking or mobile banking platform.
|
|
42897
|
+
Step 2: Open the video banking widget.
|
|
42898
|
+
Step 2: Click on the "Scheduled Meeting" button.
|
|
42899
|
+
Step 3: Click the blue "Join" button to join meeting.`,
|
|
42900
|
+
location: window.location,
|
|
42901
|
+
startTime: hooks(`${date2}:${time2}`),
|
|
42902
|
+
endTime: hooks(`${date2}:${time2}`).add(1, "h")
|
|
42903
|
+
};
|
|
42904
|
+
const providersObj = {};
|
|
42905
|
+
const objClass = {
|
|
42906
|
+
google: GoogleCalendar,
|
|
42907
|
+
outlook: OutlookCalendar,
|
|
42908
|
+
yahoo: YahooCalendar
|
|
42909
|
+
};
|
|
42910
|
+
const providerNames = ["google", "yahoo", "outlook"];
|
|
42911
|
+
providerNames.map((key2) => providersObj[key2] = new objClass[key2]({
|
|
42912
|
+
title: event.title,
|
|
42913
|
+
description: event.description,
|
|
42914
|
+
location: event.location,
|
|
42915
|
+
start: new Date(event.startTime.toISOString()),
|
|
42916
|
+
end: new Date(event.endTime.toISOString()),
|
|
42917
|
+
attendees: event.attendies
|
|
42918
|
+
}));
|
|
42919
|
+
return providersObj;
|
|
42920
|
+
}, [name, reason2, date2, time2]);
|
|
42921
|
+
const handleClickAway = () => setOpened(false);
|
|
42072
42922
|
return /* @__PURE__ */ jsxs(Col$1, {
|
|
42073
42923
|
className: "d-flex flex-column align-items-center justify-content-center",
|
|
42074
42924
|
style: {
|
|
@@ -42104,18 +42954,69 @@ const Done = react.exports.memo(({
|
|
|
42104
42954
|
children: hooks(date2).format("dddd, MMMM Do YYYY").toString()
|
|
42105
42955
|
}), /* @__PURE__ */ jsx("h6", {
|
|
42106
42956
|
className: "text-center my-0 py-2 text-lg text-alt",
|
|
42107
|
-
children: hooks(`${date2}:${
|
|
42108
|
-
}), /* @__PURE__ */ jsx(
|
|
42109
|
-
|
|
42110
|
-
|
|
42111
|
-
|
|
42112
|
-
|
|
42113
|
-
|
|
42114
|
-
|
|
42115
|
-
|
|
42116
|
-
|
|
42117
|
-
|
|
42118
|
-
|
|
42957
|
+
children: hooks(`${date2}:${time2}`).format("hh:mm A").toString()
|
|
42958
|
+
}), /* @__PURE__ */ jsx(c$1, {
|
|
42959
|
+
onClickAway: handleClickAway,
|
|
42960
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
42961
|
+
children: [/* @__PURE__ */ jsx(Button$1, {
|
|
42962
|
+
type: "button",
|
|
42963
|
+
id: "cal",
|
|
42964
|
+
onClick: () => setOpened((s2) => !s2),
|
|
42965
|
+
style: {
|
|
42966
|
+
backgroundColor: `${hexcode}`,
|
|
42967
|
+
color: "#fff",
|
|
42968
|
+
textDecoration: "none"
|
|
42969
|
+
},
|
|
42970
|
+
className: styles$1.scheduleBtn + " btn mt-5 px-4 text-white",
|
|
42971
|
+
children: "Add to calendar"
|
|
42972
|
+
}), /* @__PURE__ */ jsx(Tooltip$1, {
|
|
42973
|
+
id: "calendar-tip",
|
|
42974
|
+
target: "cal",
|
|
42975
|
+
autohide: true,
|
|
42976
|
+
placement: "top",
|
|
42977
|
+
isOpen: opened,
|
|
42978
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
42979
|
+
className: "",
|
|
42980
|
+
children: [/* @__PURE__ */ jsxs("a", {
|
|
42981
|
+
className: "d-flex align-items-center p-2 pr-4",
|
|
42982
|
+
href: (_a = eventProviders.google) == null ? void 0 : _a.render(),
|
|
42983
|
+
target: "_blank",
|
|
42984
|
+
rel: "noreferrer",
|
|
42985
|
+
children: [/* @__PURE__ */ jsx(SvgGcal, {
|
|
42986
|
+
width: 24,
|
|
42987
|
+
height: 24
|
|
42988
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
42989
|
+
className: "ml-2 my-1",
|
|
42990
|
+
children: "Google"
|
|
42991
|
+
})]
|
|
42992
|
+
}), /* @__PURE__ */ jsxs("a", {
|
|
42993
|
+
className: "d-flex align-items-center p-2 pr-4",
|
|
42994
|
+
href: (_b = eventProviders.yahoo) == null ? void 0 : _b.render(),
|
|
42995
|
+
target: "_blank",
|
|
42996
|
+
rel: "noreferrer",
|
|
42997
|
+
children: [/* @__PURE__ */ jsx(SvgYahoo, {
|
|
42998
|
+
width: 24,
|
|
42999
|
+
height: 24
|
|
43000
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
43001
|
+
className: "ml-2 my-1",
|
|
43002
|
+
children: "Yahoo"
|
|
43003
|
+
})]
|
|
43004
|
+
}), /* @__PURE__ */ jsxs("a", {
|
|
43005
|
+
className: "d-flex align-items-center p-2 pr-4",
|
|
43006
|
+
href: (_c = eventProviders.outlook) == null ? void 0 : _c.render(),
|
|
43007
|
+
target: "_blank",
|
|
43008
|
+
rel: "noreferrer",
|
|
43009
|
+
children: [/* @__PURE__ */ jsx(SvgOutlookCalendar, {
|
|
43010
|
+
width: 24,
|
|
43011
|
+
height: 24
|
|
43012
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
43013
|
+
className: "ml-2 my-1",
|
|
43014
|
+
children: "Outlook"
|
|
43015
|
+
})]
|
|
43016
|
+
})]
|
|
43017
|
+
})
|
|
43018
|
+
})]
|
|
43019
|
+
})
|
|
42119
43020
|
})]
|
|
42120
43021
|
});
|
|
42121
43022
|
});
|
|
@@ -42148,7 +43049,7 @@ function WidgetOfflineHeader({
|
|
|
42148
43049
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
42149
43050
|
className: "d-flex",
|
|
42150
43051
|
children: [/* @__PURE__ */ jsx("p", {
|
|
42151
|
-
className: "
|
|
43052
|
+
className: "my-0 pb-0",
|
|
42152
43053
|
style: {
|
|
42153
43054
|
fontSize: 24,
|
|
42154
43055
|
fontWeight: "bold"
|
|
@@ -42205,12 +43106,12 @@ function WidgetInitForm({
|
|
|
42205
43106
|
continent
|
|
42206
43107
|
}, setState] = useState({
|
|
42207
43108
|
ipAddress: void 0,
|
|
42208
|
-
country:
|
|
43109
|
+
country: void 0,
|
|
42209
43110
|
longitude: void 0,
|
|
42210
43111
|
latitude: void 0,
|
|
42211
|
-
location:
|
|
42212
|
-
country_code:
|
|
42213
|
-
continent:
|
|
43112
|
+
location: void 0,
|
|
43113
|
+
country_code: void 0,
|
|
43114
|
+
continent: void 0
|
|
42214
43115
|
});
|
|
42215
43116
|
const [mobile, setMobile] = useState("");
|
|
42216
43117
|
const validSchema = react.exports.useMemo(() => {
|
|
@@ -42243,7 +43144,7 @@ function WidgetInitForm({
|
|
|
42243
43144
|
country_code: country_code2,
|
|
42244
43145
|
timezone: timezone2
|
|
42245
43146
|
} = data2.data;
|
|
42246
|
-
const
|
|
43147
|
+
const continent2 = timezone2.split("/")[0];
|
|
42247
43148
|
setState({
|
|
42248
43149
|
ipAddress: ip,
|
|
42249
43150
|
country: country_name,
|
|
@@ -42251,18 +43152,18 @@ function WidgetInitForm({
|
|
|
42251
43152
|
latitude: latitude2,
|
|
42252
43153
|
location: region,
|
|
42253
43154
|
country_code: country_code2,
|
|
42254
|
-
continent:
|
|
43155
|
+
continent: continent2
|
|
42255
43156
|
});
|
|
42256
|
-
|
|
43157
|
+
createVisitor({
|
|
42257
43158
|
ip_address: ip,
|
|
42258
|
-
location:
|
|
42259
|
-
country,
|
|
43159
|
+
location: region,
|
|
43160
|
+
country: country_name,
|
|
42260
43161
|
longitude: longitude2,
|
|
42261
43162
|
latitude: latitude2,
|
|
42262
43163
|
company: company_id,
|
|
42263
|
-
source_url
|
|
42264
|
-
|
|
42265
|
-
|
|
43164
|
+
source_url,
|
|
43165
|
+
customer: companyUser == null ? void 0 : companyUser.id
|
|
43166
|
+
});
|
|
42266
43167
|
}).catch((error) => toast.error("Error occured, try again", {
|
|
42267
43168
|
autoClose: 2e3
|
|
42268
43169
|
}));
|
|
@@ -42305,7 +43206,6 @@ function WidgetInitForm({
|
|
|
42305
43206
|
...data2
|
|
42306
43207
|
}) => {
|
|
42307
43208
|
if (status) {
|
|
42308
|
-
console.log("customer", data2);
|
|
42309
43209
|
dataRef.current = data2;
|
|
42310
43210
|
setParentState({
|
|
42311
43211
|
chatInit: true
|
|
@@ -42380,7 +43280,7 @@ function WidgetInitForm({
|
|
|
42380
43280
|
}), /* @__PURE__ */ jsx(InputGroup$1, {
|
|
42381
43281
|
className: "mt-n3",
|
|
42382
43282
|
children: /* @__PURE__ */ jsx(PhoneInput, {
|
|
42383
|
-
country: country_code.toLowerCase(),
|
|
43283
|
+
country: country_code == null ? void 0 : country_code.toLowerCase(),
|
|
42384
43284
|
placeholder: fields[key2].placeholder || `Enter ${key2}`,
|
|
42385
43285
|
value: mobile,
|
|
42386
43286
|
inputProps: {
|
|
@@ -42411,7 +43311,7 @@ function WidgetInitForm({
|
|
|
42411
43311
|
values: formik.values,
|
|
42412
43312
|
touched: formik.touched,
|
|
42413
43313
|
errors: formik.errors
|
|
42414
|
-
});
|
|
43314
|
+
}, key2);
|
|
42415
43315
|
}
|
|
42416
43316
|
}
|
|
42417
43317
|
}), /* @__PURE__ */ jsx(FInput, {
|
|
@@ -42467,7 +43367,7 @@ const WidgetInitForm$1 = react.exports.memo(WidgetInitForm);
|
|
|
42467
43367
|
var check = function(it) {
|
|
42468
43368
|
return it && it.Math == Math && it;
|
|
42469
43369
|
};
|
|
42470
|
-
var global$d = check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || check(typeof self == "object" && self) || check(typeof commonjsGlobal == "object" && commonjsGlobal) || function() {
|
|
43370
|
+
var global$d = check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || check(typeof self == "object" && self) || check(typeof commonjsGlobal$1 == "object" && commonjsGlobal$1) || function() {
|
|
42471
43371
|
return this;
|
|
42472
43372
|
}() || Function("return this")();
|
|
42473
43373
|
var fails$j = function(exec2) {
|
|
@@ -46131,7 +47031,7 @@ const Interval = react.exports.memo(({
|
|
|
46131
47031
|
}) => {
|
|
46132
47032
|
const [, setState] = react.exports.useState();
|
|
46133
47033
|
react.exports.useEffect(() => {
|
|
46134
|
-
const intv = setInterval(() => setState((bool) => !bool),
|
|
47034
|
+
const intv = setInterval(() => setState((bool) => !bool), interval);
|
|
46135
47035
|
return () => clearInterval(intv);
|
|
46136
47036
|
}, [interval]);
|
|
46137
47037
|
return /* @__PURE__ */ jsx(Render, {});
|
|
@@ -46157,19 +47057,19 @@ var MultiStreamsMixer$1 = { exports: {} };
|
|
|
46157
47057
|
if (typeof window !== "undefined") {
|
|
46158
47058
|
return;
|
|
46159
47059
|
}
|
|
46160
|
-
if (typeof commonjsGlobal === "undefined") {
|
|
47060
|
+
if (typeof commonjsGlobal$1 === "undefined") {
|
|
46161
47061
|
return;
|
|
46162
47062
|
}
|
|
46163
|
-
commonjsGlobal.navigator = {
|
|
47063
|
+
commonjsGlobal$1.navigator = {
|
|
46164
47064
|
userAgent: browserFakeUserAgent,
|
|
46165
47065
|
getUserMedia: function() {
|
|
46166
47066
|
}
|
|
46167
47067
|
};
|
|
46168
|
-
if (!commonjsGlobal.console) {
|
|
46169
|
-
commonjsGlobal.console = {};
|
|
47068
|
+
if (!commonjsGlobal$1.console) {
|
|
47069
|
+
commonjsGlobal$1.console = {};
|
|
46170
47070
|
}
|
|
46171
|
-
if (typeof commonjsGlobal.console.log === "undefined" || typeof commonjsGlobal.console.error === "undefined") {
|
|
46172
|
-
commonjsGlobal.console.error = commonjsGlobal.console.log = commonjsGlobal.console.log || function() {
|
|
47071
|
+
if (typeof commonjsGlobal$1.console.log === "undefined" || typeof commonjsGlobal$1.console.error === "undefined") {
|
|
47072
|
+
commonjsGlobal$1.console.error = commonjsGlobal$1.console.log = commonjsGlobal$1.console.log || function() {
|
|
46173
47073
|
console.log(arguments);
|
|
46174
47074
|
};
|
|
46175
47075
|
}
|
|
@@ -46215,7 +47115,7 @@ var MultiStreamsMixer$1 = { exports: {} };
|
|
|
46215
47115
|
height: 0
|
|
46216
47116
|
};
|
|
46217
47117
|
}
|
|
46218
|
-
if (typeof
|
|
47118
|
+
if (typeof URL2 === "undefined") {
|
|
46219
47119
|
that.URL = {
|
|
46220
47120
|
createObjectURL: function() {
|
|
46221
47121
|
return "";
|
|
@@ -46225,8 +47125,8 @@ var MultiStreamsMixer$1 = { exports: {} };
|
|
|
46225
47125
|
}
|
|
46226
47126
|
};
|
|
46227
47127
|
}
|
|
46228
|
-
that.window = commonjsGlobal;
|
|
46229
|
-
})(typeof commonjsGlobal !== "undefined" ? commonjsGlobal : null);
|
|
47128
|
+
that.window = commonjsGlobal$1;
|
|
47129
|
+
})(typeof commonjsGlobal$1 !== "undefined" ? commonjsGlobal$1 : null);
|
|
46230
47130
|
elementClass = elementClass || "multi-streams-mixer";
|
|
46231
47131
|
var videos = [];
|
|
46232
47132
|
var isStopDrawingFrames = false;
|
|
@@ -46254,9 +47154,9 @@ var MultiStreamsMixer$1 = { exports: {} };
|
|
|
46254
47154
|
AudioContext = mozAudioContext;
|
|
46255
47155
|
}
|
|
46256
47156
|
}
|
|
46257
|
-
var
|
|
46258
|
-
if (typeof
|
|
46259
|
-
|
|
47157
|
+
var URL2 = window.URL;
|
|
47158
|
+
if (typeof URL2 === "undefined" && typeof webkitURL !== "undefined") {
|
|
47159
|
+
URL2 = webkitURL;
|
|
46260
47160
|
}
|
|
46261
47161
|
if (typeof navigator !== "undefined" && typeof navigator.getUserMedia === "undefined") {
|
|
46262
47162
|
if (typeof navigator.webkitGetUserMedia !== "undefined") {
|
|
@@ -46912,7 +47812,7 @@ function useVideoCalling({ userId, conversation_id }) {
|
|
|
46912
47812
|
react.exports.useEffect(() => {
|
|
46913
47813
|
return () => callCleanup();
|
|
46914
47814
|
}, [callCleanup]);
|
|
46915
|
-
o$
|
|
47815
|
+
o$2(
|
|
46916
47816
|
{
|
|
46917
47817
|
listeners: {
|
|
46918
47818
|
"calls.call.customer": (otherUserId) => callUser(otherUserId)
|
|
@@ -47455,7 +48355,7 @@ function VideoCall({
|
|
|
47455
48355
|
react.exports.useEffect(() => {
|
|
47456
48356
|
emitter.emit("video-toggle", isIncoming || isOutgoing || isCalling || getCalled);
|
|
47457
48357
|
}, [isIncoming, isOutgoing, isCalling, getCalled]);
|
|
47458
|
-
o$
|
|
48358
|
+
o$2({
|
|
47459
48359
|
listeners: {
|
|
47460
48360
|
"chat-ended": () => isCalling && endCall()
|
|
47461
48361
|
}
|
|
@@ -47988,9 +48888,9 @@ function UnwrapWidget({
|
|
|
47988
48888
|
const cDay = now2.day();
|
|
47989
48889
|
const startDay = days[company == null ? void 0 : company.from_day];
|
|
47990
48890
|
const endDay = days[company == null ? void 0 : company.to_day];
|
|
47991
|
-
const
|
|
48891
|
+
const time2 = hooks(company == null ? void 0 : company.from_time, "hh:mm:ss");
|
|
47992
48892
|
const endtime = hooks(company == null ? void 0 : company.to_time, "hh:mm:ss");
|
|
47993
|
-
return !(cDay >= startDay && cDay <= endDay && now2.isAfter(
|
|
48893
|
+
return !(cDay >= startDay && cDay <= endDay && now2.isAfter(time2) && now2.isBefore(endtime));
|
|
47994
48894
|
}
|
|
47995
48895
|
}, [isLoadingCompany, company == null ? void 0 : company.name]);
|
|
47996
48896
|
react.exports.useEffect(() => {
|
|
@@ -48155,7 +49055,7 @@ const WidgetFormDisplay = react.exports.memo(({
|
|
|
48155
49055
|
chatClose: chatClose2
|
|
48156
49056
|
});
|
|
48157
49057
|
};
|
|
48158
|
-
o$
|
|
49058
|
+
o$2({
|
|
48159
49059
|
listeners: {
|
|
48160
49060
|
"video-toggle": (videoToggle2) => setState({
|
|
48161
49061
|
videoToggle: videoToggle2
|
|
@@ -48206,7 +49106,7 @@ const WidgetFormDisplay = react.exports.memo(({
|
|
|
48206
49106
|
videoRef,
|
|
48207
49107
|
setShowTip
|
|
48208
49108
|
}), !!((_c = (_b = dataRef == null ? void 0 : dataRef.current) == null ? void 0 : _b.wait) == null ? void 0 : _c.createdAt) && !stateRef.current.agent && /* @__PURE__ */ jsx(LongestWaitime, {}), /* @__PURE__ */ jsx("div", {
|
|
48209
|
-
className: `widget-body-container py-
|
|
49109
|
+
className: `widget-body-container py-1 px-3 ${companyClosed && "widget-body-container-offline"} `,
|
|
48210
49110
|
children: isLoadingCustomer || isLoadingCustomer === void 0 ? /* @__PURE__ */ jsx(Spinner$2, {
|
|
48211
49111
|
className: "d-flex align-self-center m-5 mx-auto"
|
|
48212
49112
|
}) : isScheduling ? /* @__PURE__ */ jsx(Schedules, {
|
|
@@ -48287,14 +49187,14 @@ function WidgetOnlineHeader() {
|
|
|
48287
49187
|
color: "#fff"
|
|
48288
49188
|
},
|
|
48289
49189
|
children: [/* @__PURE__ */ jsx("p", {
|
|
48290
|
-
className: "
|
|
49190
|
+
className: "my-0 pb-0",
|
|
48291
49191
|
style: {
|
|
48292
49192
|
fontSize: 24,
|
|
48293
49193
|
fontWeight: "bold"
|
|
48294
49194
|
},
|
|
48295
49195
|
children: "Video Banking Online"
|
|
48296
49196
|
}), /* @__PURE__ */ jsxs("p", {
|
|
48297
|
-
className: "
|
|
49197
|
+
className: "my-1",
|
|
48298
49198
|
style: {
|
|
48299
49199
|
fontSize: 13
|
|
48300
49200
|
},
|