acsi-core 1.2.0 → 1.2.1
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.d.ts +2 -2
- package/dist/index.js +92 -642
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +79 -630
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/timeSpanToLocalMoment.d.ts +2 -2
- package/dist/utils/utcToLocalTime.d.ts +7 -0
- package/package.json +2 -1
- package/dist/components/MSALRedirectHandler/index.d.ts +0 -14
- package/dist/components/UpdateNotifier.d.ts +0 -3
- package/dist/configs/api.d.ts +0 -3
- package/dist/configs/api_removed.d.ts +0 -3
- package/dist/utils/configLoader.d.ts +0 -2
- package/dist/utils/hooks/useServiceWorker.d.ts +0 -1
- package/dist/utils/msalInstance.d.ts +0 -38
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
2
2
|
|
|
3
|
+
var history = require('history');
|
|
3
4
|
var toolkit = require('@reduxjs/toolkit');
|
|
4
5
|
var React = require('react');
|
|
5
6
|
var React__default = _interopDefault(React);
|
|
@@ -27,592 +28,7 @@ var amplitude = require('@amplitude/analytics-browser');
|
|
|
27
28
|
var Sentry = require('@sentry/react');
|
|
28
29
|
var fa = require('react-icons/fa');
|
|
29
30
|
var CreatableSelect = _interopDefault(require('react-select/creatable'));
|
|
30
|
-
|
|
31
|
-
function _extends() {
|
|
32
|
-
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
33
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
34
|
-
var t = arguments[e];
|
|
35
|
-
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
36
|
-
}
|
|
37
|
-
return n;
|
|
38
|
-
}, _extends.apply(null, arguments);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function isAbsolute(pathname) {
|
|
42
|
-
return pathname.charAt(0) === '/';
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// About 1.5x faster than the two-arg version of Array#splice()
|
|
46
|
-
function spliceOne(list, index) {
|
|
47
|
-
for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) {
|
|
48
|
-
list[i] = list[k];
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
list.pop();
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// This implementation is based heavily on node's url.parse
|
|
55
|
-
function resolvePathname(to, from) {
|
|
56
|
-
if (from === undefined) from = '';
|
|
57
|
-
|
|
58
|
-
var toParts = (to && to.split('/')) || [];
|
|
59
|
-
var fromParts = (from && from.split('/')) || [];
|
|
60
|
-
|
|
61
|
-
var isToAbs = to && isAbsolute(to);
|
|
62
|
-
var isFromAbs = from && isAbsolute(from);
|
|
63
|
-
var mustEndAbs = isToAbs || isFromAbs;
|
|
64
|
-
|
|
65
|
-
if (to && isAbsolute(to)) {
|
|
66
|
-
// to is absolute
|
|
67
|
-
fromParts = toParts;
|
|
68
|
-
} else if (toParts.length) {
|
|
69
|
-
// to is relative, drop the filename
|
|
70
|
-
fromParts.pop();
|
|
71
|
-
fromParts = fromParts.concat(toParts);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
if (!fromParts.length) return '/';
|
|
75
|
-
|
|
76
|
-
var hasTrailingSlash;
|
|
77
|
-
if (fromParts.length) {
|
|
78
|
-
var last = fromParts[fromParts.length - 1];
|
|
79
|
-
hasTrailingSlash = last === '.' || last === '..' || last === '';
|
|
80
|
-
} else {
|
|
81
|
-
hasTrailingSlash = false;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
var up = 0;
|
|
85
|
-
for (var i = fromParts.length; i >= 0; i--) {
|
|
86
|
-
var part = fromParts[i];
|
|
87
|
-
|
|
88
|
-
if (part === '.') {
|
|
89
|
-
spliceOne(fromParts, i);
|
|
90
|
-
} else if (part === '..') {
|
|
91
|
-
spliceOne(fromParts, i);
|
|
92
|
-
up++;
|
|
93
|
-
} else if (up) {
|
|
94
|
-
spliceOne(fromParts, i);
|
|
95
|
-
up--;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
if (!mustEndAbs) for (; up--; up) fromParts.unshift('..');
|
|
100
|
-
|
|
101
|
-
if (
|
|
102
|
-
mustEndAbs &&
|
|
103
|
-
fromParts[0] !== '' &&
|
|
104
|
-
(!fromParts[0] || !isAbsolute(fromParts[0]))
|
|
105
|
-
)
|
|
106
|
-
fromParts.unshift('');
|
|
107
|
-
|
|
108
|
-
var result = fromParts.join('/');
|
|
109
|
-
|
|
110
|
-
if (hasTrailingSlash && result.substr(-1) !== '/') result += '/';
|
|
111
|
-
|
|
112
|
-
return result;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
var isProduction = process.env.NODE_ENV === 'production';
|
|
116
|
-
function warning(condition, message) {
|
|
117
|
-
if (!isProduction) {
|
|
118
|
-
if (condition) {
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
var text = "Warning: " + message;
|
|
123
|
-
|
|
124
|
-
if (typeof console !== 'undefined') {
|
|
125
|
-
console.warn(text);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
try {
|
|
129
|
-
throw Error(text);
|
|
130
|
-
} catch (x) {}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
var isProduction$1 = process.env.NODE_ENV === 'production';
|
|
135
|
-
var prefix = 'Invariant failed';
|
|
136
|
-
function invariant(condition, message) {
|
|
137
|
-
if (condition) {
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
if (isProduction$1) {
|
|
141
|
-
throw new Error(prefix);
|
|
142
|
-
}
|
|
143
|
-
var provided = typeof message === 'function' ? message() : message;
|
|
144
|
-
var value = provided ? "".concat(prefix, ": ").concat(provided) : prefix;
|
|
145
|
-
throw new Error(value);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
function addLeadingSlash(path) {
|
|
149
|
-
return path.charAt(0) === '/' ? path : '/' + path;
|
|
150
|
-
}
|
|
151
|
-
function hasBasename(path, prefix) {
|
|
152
|
-
return path.toLowerCase().indexOf(prefix.toLowerCase()) === 0 && '/?#'.indexOf(path.charAt(prefix.length)) !== -1;
|
|
153
|
-
}
|
|
154
|
-
function stripBasename(path, prefix) {
|
|
155
|
-
return hasBasename(path, prefix) ? path.substr(prefix.length) : path;
|
|
156
|
-
}
|
|
157
|
-
function stripTrailingSlash(path) {
|
|
158
|
-
return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;
|
|
159
|
-
}
|
|
160
|
-
function parsePath(path) {
|
|
161
|
-
var pathname = path || '/';
|
|
162
|
-
var search = '';
|
|
163
|
-
var hash = '';
|
|
164
|
-
var hashIndex = pathname.indexOf('#');
|
|
165
|
-
|
|
166
|
-
if (hashIndex !== -1) {
|
|
167
|
-
hash = pathname.substr(hashIndex);
|
|
168
|
-
pathname = pathname.substr(0, hashIndex);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
var searchIndex = pathname.indexOf('?');
|
|
172
|
-
|
|
173
|
-
if (searchIndex !== -1) {
|
|
174
|
-
search = pathname.substr(searchIndex);
|
|
175
|
-
pathname = pathname.substr(0, searchIndex);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
return {
|
|
179
|
-
pathname: pathname,
|
|
180
|
-
search: search === '?' ? '' : search,
|
|
181
|
-
hash: hash === '#' ? '' : hash
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
function createPath(location) {
|
|
185
|
-
var pathname = location.pathname,
|
|
186
|
-
search = location.search,
|
|
187
|
-
hash = location.hash;
|
|
188
|
-
var path = pathname || '/';
|
|
189
|
-
if (search && search !== '?') path += search.charAt(0) === '?' ? search : "?" + search;
|
|
190
|
-
if (hash && hash !== '#') path += hash.charAt(0) === '#' ? hash : "#" + hash;
|
|
191
|
-
return path;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
function createLocation(path, state, key, currentLocation) {
|
|
195
|
-
var location;
|
|
196
|
-
|
|
197
|
-
if (typeof path === 'string') {
|
|
198
|
-
// Two-arg form: push(path, state)
|
|
199
|
-
location = parsePath(path);
|
|
200
|
-
location.state = state;
|
|
201
|
-
} else {
|
|
202
|
-
// One-arg form: push(location)
|
|
203
|
-
location = _extends({}, path);
|
|
204
|
-
if (location.pathname === undefined) location.pathname = '';
|
|
205
|
-
|
|
206
|
-
if (location.search) {
|
|
207
|
-
if (location.search.charAt(0) !== '?') location.search = '?' + location.search;
|
|
208
|
-
} else {
|
|
209
|
-
location.search = '';
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
if (location.hash) {
|
|
213
|
-
if (location.hash.charAt(0) !== '#') location.hash = '#' + location.hash;
|
|
214
|
-
} else {
|
|
215
|
-
location.hash = '';
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
if (state !== undefined && location.state === undefined) location.state = state;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
try {
|
|
222
|
-
location.pathname = decodeURI(location.pathname);
|
|
223
|
-
} catch (e) {
|
|
224
|
-
if (e instanceof URIError) {
|
|
225
|
-
throw new URIError('Pathname "' + location.pathname + '" could not be decoded. ' + 'This is likely caused by an invalid percent-encoding.');
|
|
226
|
-
} else {
|
|
227
|
-
throw e;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
if (key) location.key = key;
|
|
232
|
-
|
|
233
|
-
if (currentLocation) {
|
|
234
|
-
// Resolve incomplete/relative pathname relative to current location.
|
|
235
|
-
if (!location.pathname) {
|
|
236
|
-
location.pathname = currentLocation.pathname;
|
|
237
|
-
} else if (location.pathname.charAt(0) !== '/') {
|
|
238
|
-
location.pathname = resolvePathname(location.pathname, currentLocation.pathname);
|
|
239
|
-
}
|
|
240
|
-
} else {
|
|
241
|
-
// When there is no prior location and pathname is empty, set it to /
|
|
242
|
-
if (!location.pathname) {
|
|
243
|
-
location.pathname = '/';
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
return location;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
function createTransitionManager() {
|
|
251
|
-
var prompt = null;
|
|
252
|
-
|
|
253
|
-
function setPrompt(nextPrompt) {
|
|
254
|
-
process.env.NODE_ENV !== "production" ? warning(prompt == null, 'A history supports only one prompt at a time') : void 0;
|
|
255
|
-
prompt = nextPrompt;
|
|
256
|
-
return function () {
|
|
257
|
-
if (prompt === nextPrompt) prompt = null;
|
|
258
|
-
};
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
function confirmTransitionTo(location, action, getUserConfirmation, callback) {
|
|
262
|
-
// TODO: If another transition starts while we're still confirming
|
|
263
|
-
// the previous one, we may end up in a weird state. Figure out the
|
|
264
|
-
// best way to handle this.
|
|
265
|
-
if (prompt != null) {
|
|
266
|
-
var result = typeof prompt === 'function' ? prompt(location, action) : prompt;
|
|
267
|
-
|
|
268
|
-
if (typeof result === 'string') {
|
|
269
|
-
if (typeof getUserConfirmation === 'function') {
|
|
270
|
-
getUserConfirmation(result, callback);
|
|
271
|
-
} else {
|
|
272
|
-
process.env.NODE_ENV !== "production" ? warning(false, 'A history needs a getUserConfirmation function in order to use a prompt message') : void 0;
|
|
273
|
-
callback(true);
|
|
274
|
-
}
|
|
275
|
-
} else {
|
|
276
|
-
// Return false from a transition hook to cancel the transition.
|
|
277
|
-
callback(result !== false);
|
|
278
|
-
}
|
|
279
|
-
} else {
|
|
280
|
-
callback(true);
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
var listeners = [];
|
|
285
|
-
|
|
286
|
-
function appendListener(fn) {
|
|
287
|
-
var isActive = true;
|
|
288
|
-
|
|
289
|
-
function listener() {
|
|
290
|
-
if (isActive) fn.apply(void 0, arguments);
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
listeners.push(listener);
|
|
294
|
-
return function () {
|
|
295
|
-
isActive = false;
|
|
296
|
-
listeners = listeners.filter(function (item) {
|
|
297
|
-
return item !== listener;
|
|
298
|
-
});
|
|
299
|
-
};
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
function notifyListeners() {
|
|
303
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
304
|
-
args[_key] = arguments[_key];
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
listeners.forEach(function (listener) {
|
|
308
|
-
return listener.apply(void 0, args);
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
return {
|
|
313
|
-
setPrompt: setPrompt,
|
|
314
|
-
confirmTransitionTo: confirmTransitionTo,
|
|
315
|
-
appendListener: appendListener,
|
|
316
|
-
notifyListeners: notifyListeners
|
|
317
|
-
};
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
321
|
-
function getConfirmation(message, callback) {
|
|
322
|
-
callback(window.confirm(message)); // eslint-disable-line no-alert
|
|
323
|
-
}
|
|
324
|
-
/**
|
|
325
|
-
* Returns true if the HTML5 history API is supported. Taken from Modernizr.
|
|
326
|
-
*
|
|
327
|
-
* https://github.com/Modernizr/Modernizr/blob/master/LICENSE
|
|
328
|
-
* https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js
|
|
329
|
-
* changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586
|
|
330
|
-
*/
|
|
331
|
-
|
|
332
|
-
function supportsHistory() {
|
|
333
|
-
var ua = window.navigator.userAgent;
|
|
334
|
-
if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1) return false;
|
|
335
|
-
return window.history && 'pushState' in window.history;
|
|
336
|
-
}
|
|
337
|
-
/**
|
|
338
|
-
* Returns true if browser fires popstate on hash change.
|
|
339
|
-
* IE10 and IE11 do not.
|
|
340
|
-
*/
|
|
341
|
-
|
|
342
|
-
function supportsPopStateOnHashChange() {
|
|
343
|
-
return window.navigator.userAgent.indexOf('Trident') === -1;
|
|
344
|
-
}
|
|
345
|
-
/**
|
|
346
|
-
* Returns true if a given popstate event is an extraneous WebKit event.
|
|
347
|
-
* Accounts for the fact that Chrome on iOS fires real popstate events
|
|
348
|
-
* containing undefined state when pressing the back button.
|
|
349
|
-
*/
|
|
350
|
-
|
|
351
|
-
function isExtraneousPopstateEvent(event) {
|
|
352
|
-
return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
var PopStateEvent = 'popstate';
|
|
356
|
-
var HashChangeEvent = 'hashchange';
|
|
357
|
-
|
|
358
|
-
function getHistoryState() {
|
|
359
|
-
try {
|
|
360
|
-
return window.history.state || {};
|
|
361
|
-
} catch (e) {
|
|
362
|
-
// IE 11 sometimes throws when accessing window.history.state
|
|
363
|
-
// See https://github.com/ReactTraining/history/pull/289
|
|
364
|
-
return {};
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
/**
|
|
368
|
-
* Creates a history object that uses the HTML5 history API including
|
|
369
|
-
* pushState, replaceState, and the popstate event.
|
|
370
|
-
*/
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
function createBrowserHistory(props) {
|
|
374
|
-
if (props === void 0) {
|
|
375
|
-
props = {};
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
!canUseDOM ? process.env.NODE_ENV !== "production" ? invariant(false, 'Browser history needs a DOM') : invariant(false) : void 0;
|
|
379
|
-
var globalHistory = window.history;
|
|
380
|
-
var canUseHistory = supportsHistory();
|
|
381
|
-
var needsHashChangeListener = !supportsPopStateOnHashChange();
|
|
382
|
-
var _props = props,
|
|
383
|
-
_props$forceRefresh = _props.forceRefresh,
|
|
384
|
-
forceRefresh = _props$forceRefresh === void 0 ? false : _props$forceRefresh,
|
|
385
|
-
_props$getUserConfirm = _props.getUserConfirmation,
|
|
386
|
-
getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,
|
|
387
|
-
_props$keyLength = _props.keyLength,
|
|
388
|
-
keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
|
|
389
|
-
var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';
|
|
390
|
-
|
|
391
|
-
function getDOMLocation(historyState) {
|
|
392
|
-
var _ref = historyState || {},
|
|
393
|
-
key = _ref.key,
|
|
394
|
-
state = _ref.state;
|
|
395
|
-
|
|
396
|
-
var _window$location = window.location,
|
|
397
|
-
pathname = _window$location.pathname,
|
|
398
|
-
search = _window$location.search,
|
|
399
|
-
hash = _window$location.hash;
|
|
400
|
-
var path = pathname + search + hash;
|
|
401
|
-
process.env.NODE_ENV !== "production" ? warning(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path "' + path + '" to begin with "' + basename + '".') : void 0;
|
|
402
|
-
if (basename) path = stripBasename(path, basename);
|
|
403
|
-
return createLocation(path, state, key);
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
function createKey() {
|
|
407
|
-
return Math.random().toString(36).substr(2, keyLength);
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
var transitionManager = createTransitionManager();
|
|
411
|
-
|
|
412
|
-
function setState(nextState) {
|
|
413
|
-
_extends(history, nextState);
|
|
414
|
-
|
|
415
|
-
history.length = globalHistory.length;
|
|
416
|
-
transitionManager.notifyListeners(history.location, history.action);
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
function handlePopState(event) {
|
|
420
|
-
// Ignore extraneous popstate events in WebKit.
|
|
421
|
-
if (isExtraneousPopstateEvent(event)) return;
|
|
422
|
-
handlePop(getDOMLocation(event.state));
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
function handleHashChange() {
|
|
426
|
-
handlePop(getDOMLocation(getHistoryState()));
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
var forceNextPop = false;
|
|
430
|
-
|
|
431
|
-
function handlePop(location) {
|
|
432
|
-
if (forceNextPop) {
|
|
433
|
-
forceNextPop = false;
|
|
434
|
-
setState();
|
|
435
|
-
} else {
|
|
436
|
-
var action = 'POP';
|
|
437
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
|
438
|
-
if (ok) {
|
|
439
|
-
setState({
|
|
440
|
-
action: action,
|
|
441
|
-
location: location
|
|
442
|
-
});
|
|
443
|
-
} else {
|
|
444
|
-
revertPop(location);
|
|
445
|
-
}
|
|
446
|
-
});
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
function revertPop(fromLocation) {
|
|
451
|
-
var toLocation = history.location; // TODO: We could probably make this more reliable by
|
|
452
|
-
// keeping a list of keys we've seen in sessionStorage.
|
|
453
|
-
// Instead, we just default to 0 for keys we don't know.
|
|
454
|
-
|
|
455
|
-
var toIndex = allKeys.indexOf(toLocation.key);
|
|
456
|
-
if (toIndex === -1) toIndex = 0;
|
|
457
|
-
var fromIndex = allKeys.indexOf(fromLocation.key);
|
|
458
|
-
if (fromIndex === -1) fromIndex = 0;
|
|
459
|
-
var delta = toIndex - fromIndex;
|
|
460
|
-
|
|
461
|
-
if (delta) {
|
|
462
|
-
forceNextPop = true;
|
|
463
|
-
go(delta);
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
var initialLocation = getDOMLocation(getHistoryState());
|
|
468
|
-
var allKeys = [initialLocation.key]; // Public interface
|
|
469
|
-
|
|
470
|
-
function createHref(location) {
|
|
471
|
-
return basename + createPath(location);
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
function push(path, state) {
|
|
475
|
-
process.env.NODE_ENV !== "production" ? warning(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;
|
|
476
|
-
var action = 'PUSH';
|
|
477
|
-
var location = createLocation(path, state, createKey(), history.location);
|
|
478
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
|
479
|
-
if (!ok) return;
|
|
480
|
-
var href = createHref(location);
|
|
481
|
-
var key = location.key,
|
|
482
|
-
state = location.state;
|
|
483
|
-
|
|
484
|
-
if (canUseHistory) {
|
|
485
|
-
globalHistory.pushState({
|
|
486
|
-
key: key,
|
|
487
|
-
state: state
|
|
488
|
-
}, null, href);
|
|
489
|
-
|
|
490
|
-
if (forceRefresh) {
|
|
491
|
-
window.location.href = href;
|
|
492
|
-
} else {
|
|
493
|
-
var prevIndex = allKeys.indexOf(history.location.key);
|
|
494
|
-
var nextKeys = allKeys.slice(0, prevIndex + 1);
|
|
495
|
-
nextKeys.push(location.key);
|
|
496
|
-
allKeys = nextKeys;
|
|
497
|
-
setState({
|
|
498
|
-
action: action,
|
|
499
|
-
location: location
|
|
500
|
-
});
|
|
501
|
-
}
|
|
502
|
-
} else {
|
|
503
|
-
process.env.NODE_ENV !== "production" ? warning(state === undefined, 'Browser history cannot push state in browsers that do not support HTML5 history') : void 0;
|
|
504
|
-
window.location.href = href;
|
|
505
|
-
}
|
|
506
|
-
});
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
function replace(path, state) {
|
|
510
|
-
process.env.NODE_ENV !== "production" ? warning(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;
|
|
511
|
-
var action = 'REPLACE';
|
|
512
|
-
var location = createLocation(path, state, createKey(), history.location);
|
|
513
|
-
transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
|
|
514
|
-
if (!ok) return;
|
|
515
|
-
var href = createHref(location);
|
|
516
|
-
var key = location.key,
|
|
517
|
-
state = location.state;
|
|
518
|
-
|
|
519
|
-
if (canUseHistory) {
|
|
520
|
-
globalHistory.replaceState({
|
|
521
|
-
key: key,
|
|
522
|
-
state: state
|
|
523
|
-
}, null, href);
|
|
524
|
-
|
|
525
|
-
if (forceRefresh) {
|
|
526
|
-
window.location.replace(href);
|
|
527
|
-
} else {
|
|
528
|
-
var prevIndex = allKeys.indexOf(history.location.key);
|
|
529
|
-
if (prevIndex !== -1) allKeys[prevIndex] = location.key;
|
|
530
|
-
setState({
|
|
531
|
-
action: action,
|
|
532
|
-
location: location
|
|
533
|
-
});
|
|
534
|
-
}
|
|
535
|
-
} else {
|
|
536
|
-
process.env.NODE_ENV !== "production" ? warning(state === undefined, 'Browser history cannot replace state in browsers that do not support HTML5 history') : void 0;
|
|
537
|
-
window.location.replace(href);
|
|
538
|
-
}
|
|
539
|
-
});
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
function go(n) {
|
|
543
|
-
globalHistory.go(n);
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
function goBack() {
|
|
547
|
-
go(-1);
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
function goForward() {
|
|
551
|
-
go(1);
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
var listenerCount = 0;
|
|
555
|
-
|
|
556
|
-
function checkDOMListeners(delta) {
|
|
557
|
-
listenerCount += delta;
|
|
558
|
-
|
|
559
|
-
if (listenerCount === 1 && delta === 1) {
|
|
560
|
-
window.addEventListener(PopStateEvent, handlePopState);
|
|
561
|
-
if (needsHashChangeListener) window.addEventListener(HashChangeEvent, handleHashChange);
|
|
562
|
-
} else if (listenerCount === 0) {
|
|
563
|
-
window.removeEventListener(PopStateEvent, handlePopState);
|
|
564
|
-
if (needsHashChangeListener) window.removeEventListener(HashChangeEvent, handleHashChange);
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
var isBlocked = false;
|
|
569
|
-
|
|
570
|
-
function block(prompt) {
|
|
571
|
-
if (prompt === void 0) {
|
|
572
|
-
prompt = false;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
var unblock = transitionManager.setPrompt(prompt);
|
|
576
|
-
|
|
577
|
-
if (!isBlocked) {
|
|
578
|
-
checkDOMListeners(1);
|
|
579
|
-
isBlocked = true;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
return function () {
|
|
583
|
-
if (isBlocked) {
|
|
584
|
-
isBlocked = false;
|
|
585
|
-
checkDOMListeners(-1);
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
return unblock();
|
|
589
|
-
};
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
function listen(listener) {
|
|
593
|
-
var unlisten = transitionManager.appendListener(listener);
|
|
594
|
-
checkDOMListeners(1);
|
|
595
|
-
return function () {
|
|
596
|
-
checkDOMListeners(-1);
|
|
597
|
-
unlisten();
|
|
598
|
-
};
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
var history = {
|
|
602
|
-
length: globalHistory.length,
|
|
603
|
-
action: 'POP',
|
|
604
|
-
location: initialLocation,
|
|
605
|
-
createHref: createHref,
|
|
606
|
-
push: push,
|
|
607
|
-
replace: replace,
|
|
608
|
-
go: go,
|
|
609
|
-
goBack: goBack,
|
|
610
|
-
goForward: goForward,
|
|
611
|
-
block: block,
|
|
612
|
-
listen: listen
|
|
613
|
-
};
|
|
614
|
-
return history;
|
|
615
|
-
}
|
|
31
|
+
var moment$1 = _interopDefault(require('moment-timezone'));
|
|
616
32
|
|
|
617
33
|
var setLoading = toolkit.createAction("common/setLoading");
|
|
618
34
|
var setLoadingPage = toolkit.createAction("common/setLoadingPage");
|
|
@@ -671,6 +87,7 @@ var COLORS = {
|
|
|
671
87
|
};
|
|
672
88
|
var ORGANIZATION_TENANT = "ORGANIZATION_TENANT";
|
|
673
89
|
var ORGANIZATION_TEAM = "ORGANIZATION_TEAM";
|
|
90
|
+
var TIMEZONE_ID = "TIMEZONE_ID";
|
|
674
91
|
|
|
675
92
|
var styleGlobal = {"signup_wrap":"_1KLz9","box-signin":"_2Jo1o","signin_title":"_3egBO","signup_link":"_1DoIT","google_button":"_34hK_","microsoft_button":"_19ESb","box-field":"_2e9xO","box-input":"_3zXRp","box-text":"_8NJga","box-button-email":"_21FPk","box-signin-container":"_1QERu","box-signin-text":"_2-znH","box-signin-logo":"_1aB2m","box-right":"_3qndF","image-slideshow":"_1aM7m","active":"_Vx1zf","box-right-body":"_JzdCr","box-right-footer":"_19aCA","pr-30":"_2HB5r","width-400":"_4ehXP"};
|
|
676
93
|
|
|
@@ -696,14 +113,14 @@ function _createForOfIteratorHelperLoose(r, e) {
|
|
|
696
113
|
}
|
|
697
114
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
698
115
|
}
|
|
699
|
-
function _extends
|
|
700
|
-
return _extends
|
|
116
|
+
function _extends() {
|
|
117
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
701
118
|
for (var e = 1; e < arguments.length; e++) {
|
|
702
119
|
var t = arguments[e];
|
|
703
120
|
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
704
121
|
}
|
|
705
122
|
return n;
|
|
706
|
-
}, _extends
|
|
123
|
+
}, _extends.apply(null, arguments);
|
|
707
124
|
}
|
|
708
125
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
709
126
|
if (null == r) return {};
|
|
@@ -868,7 +285,7 @@ var CoreSelect = function CoreSelect(props) {
|
|
|
868
285
|
onChange(name, newValue);
|
|
869
286
|
};
|
|
870
287
|
var controlStyle = function controlStyle(base, state) {
|
|
871
|
-
var styles = _extends
|
|
288
|
+
var styles = _extends({}, base, {
|
|
872
289
|
fontSize: "14px",
|
|
873
290
|
fontWeight: "400",
|
|
874
291
|
padding: "0 4px",
|
|
@@ -897,7 +314,7 @@ var CoreSelect = function CoreSelect(props) {
|
|
|
897
314
|
return styles;
|
|
898
315
|
};
|
|
899
316
|
var inputStyles = function inputStyles(base) {
|
|
900
|
-
var styles = _extends
|
|
317
|
+
var styles = _extends({}, base, {
|
|
901
318
|
margin: "0",
|
|
902
319
|
padding: "0",
|
|
903
320
|
color: "inherit"
|
|
@@ -905,13 +322,13 @@ var CoreSelect = function CoreSelect(props) {
|
|
|
905
322
|
return styles;
|
|
906
323
|
};
|
|
907
324
|
var placeholderStyles = function placeholderStyles(base) {
|
|
908
|
-
var styles = _extends
|
|
325
|
+
var styles = _extends({}, base, {
|
|
909
326
|
color: COLORS.lightGray
|
|
910
327
|
});
|
|
911
328
|
return styles;
|
|
912
329
|
};
|
|
913
330
|
var dropdownIndicatorStyles = function dropdownIndicatorStyles(base) {
|
|
914
|
-
var styles = _extends
|
|
331
|
+
var styles = _extends({}, base, {
|
|
915
332
|
position: "relative",
|
|
916
333
|
top: "-4px",
|
|
917
334
|
padding: "8px 0"
|
|
@@ -919,7 +336,7 @@ var CoreSelect = function CoreSelect(props) {
|
|
|
919
336
|
return styles;
|
|
920
337
|
};
|
|
921
338
|
var valueContainerStyles = function valueContainerStyles(base) {
|
|
922
|
-
var styles = _extends
|
|
339
|
+
var styles = _extends({}, base, {
|
|
923
340
|
height: isMulti ? undefined : "32px",
|
|
924
341
|
position: "relative",
|
|
925
342
|
top: "-3px"
|
|
@@ -927,11 +344,11 @@ var CoreSelect = function CoreSelect(props) {
|
|
|
927
344
|
return styles;
|
|
928
345
|
};
|
|
929
346
|
var singleValueStyles = function singleValueStyles(base) {
|
|
930
|
-
var styles = _extends
|
|
347
|
+
var styles = _extends({}, base);
|
|
931
348
|
return styles;
|
|
932
349
|
};
|
|
933
350
|
var optionStyles = function optionStyles(base, state) {
|
|
934
|
-
var styles = _extends
|
|
351
|
+
var styles = _extends({}, base, {
|
|
935
352
|
padding: "8px",
|
|
936
353
|
borderRadius: "8px",
|
|
937
354
|
cursor: "pointer",
|
|
@@ -945,13 +362,13 @@ var CoreSelect = function CoreSelect(props) {
|
|
|
945
362
|
return styles;
|
|
946
363
|
};
|
|
947
364
|
var indicatorsContainerStyles = function indicatorsContainerStyles(base) {
|
|
948
|
-
var styles = _extends
|
|
365
|
+
var styles = _extends({}, base, {
|
|
949
366
|
display: type === "no-outline" ? "none" : "block"
|
|
950
367
|
});
|
|
951
368
|
return styles;
|
|
952
369
|
};
|
|
953
370
|
var multiValueStyles = function multiValueStyles(base) {
|
|
954
|
-
var styles = _extends
|
|
371
|
+
var styles = _extends({}, base, {
|
|
955
372
|
backgroundColor: COLORS.lightBlue,
|
|
956
373
|
borderRadius: "4px",
|
|
957
374
|
padding: "2px 8px",
|
|
@@ -963,14 +380,14 @@ var CoreSelect = function CoreSelect(props) {
|
|
|
963
380
|
return styles;
|
|
964
381
|
};
|
|
965
382
|
var multiValueRemoveStyles = function multiValueRemoveStyles(base) {
|
|
966
|
-
var styles = _extends
|
|
383
|
+
var styles = _extends({}, base, {
|
|
967
384
|
color: COLORS.lightGray,
|
|
968
385
|
cursor: "pointer"
|
|
969
386
|
});
|
|
970
387
|
return styles;
|
|
971
388
|
};
|
|
972
389
|
var multiValueLabelStyles = function multiValueLabelStyles(base) {
|
|
973
|
-
var styles = _extends
|
|
390
|
+
var styles = _extends({}, base, {
|
|
974
391
|
color: COLORS.blackText,
|
|
975
392
|
fontWeight: "400",
|
|
976
393
|
fontSize: "13px",
|
|
@@ -1413,7 +830,7 @@ var CoreSelectCompact = function CoreSelectCompact(props) {
|
|
|
1413
830
|
onChange(name, newValue);
|
|
1414
831
|
};
|
|
1415
832
|
var controlStyle = function controlStyle(base, state) {
|
|
1416
|
-
var styles = _extends
|
|
833
|
+
var styles = _extends({}, base, {
|
|
1417
834
|
fontSize: "14px",
|
|
1418
835
|
fontWeight: "400",
|
|
1419
836
|
backgroundColor: state.isDisabled ? "transparent" : error ? COLORS.lightYellow : COLORS.white,
|
|
@@ -1434,7 +851,7 @@ var CoreSelectCompact = function CoreSelectCompact(props) {
|
|
|
1434
851
|
return styles;
|
|
1435
852
|
};
|
|
1436
853
|
var inputStyles = function inputStyles(base) {
|
|
1437
|
-
var styles = _extends
|
|
854
|
+
var styles = _extends({}, base, {
|
|
1438
855
|
margin: "0",
|
|
1439
856
|
padding: "0",
|
|
1440
857
|
color: "inherit",
|
|
@@ -1444,37 +861,37 @@ var CoreSelectCompact = function CoreSelectCompact(props) {
|
|
|
1444
861
|
return styles;
|
|
1445
862
|
};
|
|
1446
863
|
var placeholderStyles = function placeholderStyles(base) {
|
|
1447
|
-
var styles = _extends
|
|
864
|
+
var styles = _extends({}, base, {
|
|
1448
865
|
color: COLORS.lightGray
|
|
1449
866
|
});
|
|
1450
867
|
return styles;
|
|
1451
868
|
};
|
|
1452
869
|
var dropdownIndicatorStyles = function dropdownIndicatorStyles(base) {
|
|
1453
|
-
var styles = _extends
|
|
870
|
+
var styles = _extends({}, base, {
|
|
1454
871
|
position: "relative",
|
|
1455
872
|
padding: "2px 0"
|
|
1456
873
|
});
|
|
1457
874
|
return styles;
|
|
1458
875
|
};
|
|
1459
876
|
var indicatorsContainerStyles = function indicatorsContainerStyles(base) {
|
|
1460
|
-
var styles = _extends
|
|
877
|
+
var styles = _extends({}, base, {
|
|
1461
878
|
display: isShowDropdown && !isMulti ? "block" : "none"
|
|
1462
879
|
});
|
|
1463
880
|
return styles;
|
|
1464
881
|
};
|
|
1465
882
|
var valueContainerStyles = function valueContainerStyles(base) {
|
|
1466
|
-
var styles = _extends
|
|
883
|
+
var styles = _extends({}, base, {
|
|
1467
884
|
height: isMulti ? undefined : "26px",
|
|
1468
885
|
position: "relative"
|
|
1469
886
|
});
|
|
1470
887
|
return styles;
|
|
1471
888
|
};
|
|
1472
889
|
var singleValueStyles = function singleValueStyles(base) {
|
|
1473
|
-
var styles = _extends
|
|
890
|
+
var styles = _extends({}, base);
|
|
1474
891
|
return styles;
|
|
1475
892
|
};
|
|
1476
893
|
var optionStyles = function optionStyles(base, state) {
|
|
1477
|
-
var styles = _extends
|
|
894
|
+
var styles = _extends({}, base, {
|
|
1478
895
|
padding: "8px",
|
|
1479
896
|
borderRadius: "8px",
|
|
1480
897
|
cursor: "pointer",
|
|
@@ -1493,7 +910,7 @@ var CoreSelectCompact = function CoreSelectCompact(props) {
|
|
|
1493
910
|
return styles;
|
|
1494
911
|
};
|
|
1495
912
|
var multiValueStyles = function multiValueStyles(base) {
|
|
1496
|
-
var styles = _extends
|
|
913
|
+
var styles = _extends({}, base, {
|
|
1497
914
|
backgroundColor: COLORS.lightBlue,
|
|
1498
915
|
borderRadius: "4px",
|
|
1499
916
|
padding: "0 4px",
|
|
@@ -1505,14 +922,14 @@ var CoreSelectCompact = function CoreSelectCompact(props) {
|
|
|
1505
922
|
return styles;
|
|
1506
923
|
};
|
|
1507
924
|
var multiValueRemoveStyles = function multiValueRemoveStyles(base) {
|
|
1508
|
-
var styles = _extends
|
|
925
|
+
var styles = _extends({}, base, {
|
|
1509
926
|
color: COLORS.lightGray,
|
|
1510
927
|
cursor: "pointer"
|
|
1511
928
|
});
|
|
1512
929
|
return styles;
|
|
1513
930
|
};
|
|
1514
931
|
var multiValueLabelStyles = function multiValueLabelStyles(base) {
|
|
1515
|
-
var styles = _extends
|
|
932
|
+
var styles = _extends({}, base, {
|
|
1516
933
|
color: COLORS.blackText,
|
|
1517
934
|
fontWeight: "400",
|
|
1518
935
|
fontSize: "13px",
|
|
@@ -2296,6 +1713,7 @@ var apiUpload = axios.create({
|
|
|
2296
1713
|
var domain = parts.slice(-2).join('.');
|
|
2297
1714
|
localStorage.removeItem(ACCESS_TOKEN);
|
|
2298
1715
|
localStorage.removeItem(ORGANIZATION_TENANT);
|
|
1716
|
+
localStorage.removeItem(TIMEZONE_ID);
|
|
2299
1717
|
localStorage.removeItem(ORGANIZATION_TEAM);
|
|
2300
1718
|
Cookies.remove('auth', {
|
|
2301
1719
|
path: '/',
|
|
@@ -2529,7 +1947,7 @@ var BlockLogin = function BlockLogin(_ref) {
|
|
|
2529
1947
|
scopes: ["openid", "profile", "email"],
|
|
2530
1948
|
redirectUri: redirectUri
|
|
2531
1949
|
};
|
|
2532
|
-
var silentRequest = _extends
|
|
1950
|
+
var silentRequest = _extends({}, loginRequest, {
|
|
2533
1951
|
prompt: "select_account"
|
|
2534
1952
|
});
|
|
2535
1953
|
return Promise.resolve(msalInstance.loginPopup(silentRequest)).then(function (response) {
|
|
@@ -3210,7 +2628,7 @@ function kindOf(val) {
|
|
|
3210
2628
|
}
|
|
3211
2629
|
|
|
3212
2630
|
// src/utils/warning.ts
|
|
3213
|
-
function warning
|
|
2631
|
+
function warning(message) {
|
|
3214
2632
|
if (typeof console !== "undefined" && typeof console.error === "function") {
|
|
3215
2633
|
console.error(message);
|
|
3216
2634
|
}
|
|
@@ -3263,7 +2681,7 @@ function combineReducers(reducers) {
|
|
|
3263
2681
|
const key = reducerKeys[i];
|
|
3264
2682
|
if (process.env.NODE_ENV !== "production") {
|
|
3265
2683
|
if (typeof reducers[key] === "undefined") {
|
|
3266
|
-
warning
|
|
2684
|
+
warning(`No reducer provided for key "${key}"`);
|
|
3267
2685
|
}
|
|
3268
2686
|
}
|
|
3269
2687
|
if (typeof reducers[key] === "function") {
|
|
@@ -3288,7 +2706,7 @@ function combineReducers(reducers) {
|
|
|
3288
2706
|
if (process.env.NODE_ENV !== "production") {
|
|
3289
2707
|
const warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);
|
|
3290
2708
|
if (warningMessage) {
|
|
3291
|
-
warning
|
|
2709
|
+
warning(warningMessage);
|
|
3292
2710
|
}
|
|
3293
2711
|
}
|
|
3294
2712
|
let hasChanged = false;
|
|
@@ -3659,7 +3077,7 @@ var useAmplitude = function useAmplitude() {
|
|
|
3659
3077
|
var savedUserProperties = React.useRef({});
|
|
3660
3078
|
var hasTrackedInitialSession = React.useRef(false);
|
|
3661
3079
|
var setUserProperties = React.useCallback(function (properties) {
|
|
3662
|
-
savedUserProperties.current = _extends
|
|
3080
|
+
savedUserProperties.current = _extends({}, savedUserProperties.current, properties);
|
|
3663
3081
|
var identify = new amplitude.Identify();
|
|
3664
3082
|
Object.entries(properties).forEach(function (_ref) {
|
|
3665
3083
|
var key = _ref[0],
|
|
@@ -3671,7 +3089,7 @@ var useAmplitude = function useAmplitude() {
|
|
|
3671
3089
|
var trackEvent = React.useCallback(function (_ref2) {
|
|
3672
3090
|
var eventName = _ref2.eventName,
|
|
3673
3091
|
eventProperties = _ref2.eventProperties;
|
|
3674
|
-
amplitude.track(eventName, _extends
|
|
3092
|
+
amplitude.track(eventName, _extends({}, savedUserProperties.current, eventProperties, {
|
|
3675
3093
|
timestamp: new Date().toISOString()
|
|
3676
3094
|
}));
|
|
3677
3095
|
}, []);
|
|
@@ -3858,7 +3276,7 @@ var getErrorMessage = function getErrorMessage(error, defaultErrorMessage) {
|
|
|
3858
3276
|
|
|
3859
3277
|
var customStyles = {
|
|
3860
3278
|
control: function control(baseStyles, state) {
|
|
3861
|
-
return _extends
|
|
3279
|
+
return _extends({}, baseStyles, {
|
|
3862
3280
|
fontSize: "14px",
|
|
3863
3281
|
fontWeight: 700,
|
|
3864
3282
|
color: styleGlobal.darker,
|
|
@@ -3873,21 +3291,21 @@ var customStyles = {
|
|
|
3873
3291
|
});
|
|
3874
3292
|
},
|
|
3875
3293
|
input: function input(baseStyles, _) {
|
|
3876
|
-
return _extends
|
|
3294
|
+
return _extends({}, baseStyles, {
|
|
3877
3295
|
fontSize: "14px",
|
|
3878
3296
|
fontWeight: 700,
|
|
3879
3297
|
color: styleGlobal.darker
|
|
3880
3298
|
});
|
|
3881
3299
|
},
|
|
3882
3300
|
singleValue: function singleValue(baseStyles) {
|
|
3883
|
-
return _extends
|
|
3301
|
+
return _extends({}, baseStyles, {
|
|
3884
3302
|
fontSize: "14px",
|
|
3885
3303
|
fontWeight: 700,
|
|
3886
3304
|
color: styleGlobal.darker
|
|
3887
3305
|
});
|
|
3888
3306
|
},
|
|
3889
3307
|
option: function option(baseStyles, state) {
|
|
3890
|
-
return _extends
|
|
3308
|
+
return _extends({}, baseStyles, {
|
|
3891
3309
|
backgroundColor: state.isSelected ? styleGlobal.dark : state.isFocused ? styleGlobal.light : 'white',
|
|
3892
3310
|
"&:active": {
|
|
3893
3311
|
backgroundColor: state.isSelected ? styleGlobal.dark : state.isFocused ? styleGlobal.less_dark : baseStyles.backgroundColor
|
|
@@ -4048,43 +3466,74 @@ var CustomSelectOption = function CustomSelectOption(_ref) {
|
|
|
4048
3466
|
|
|
4049
3467
|
var utcToLocalTime = (function (time, FORMAT) {
|
|
4050
3468
|
if (time === DATE_MIN_VALUE || time == null) return "";
|
|
3469
|
+
var timezone = localStorage.getItem(TIMEZONE_ID) || "";
|
|
4051
3470
|
try {
|
|
4052
|
-
|
|
3471
|
+
if (!timezone) {
|
|
3472
|
+
return moment.utc(time).local().format(FORMAT || "yyyy-MM-DD");
|
|
3473
|
+
}
|
|
3474
|
+
var isOffset = /^(UTC|GMT)?[+-]/.test(timezone);
|
|
3475
|
+
if (isOffset) {
|
|
3476
|
+
var cleanOffset = timezone.replace(/UTC|GMT/gi, "").trim();
|
|
3477
|
+
var offsetMinutes;
|
|
3478
|
+
if (/^[+-]?\d+$/.test(cleanOffset)) {
|
|
3479
|
+
offsetMinutes = parseInt(cleanOffset, 10) * 60;
|
|
3480
|
+
} else {
|
|
3481
|
+
offsetMinutes = cleanOffset;
|
|
3482
|
+
}
|
|
3483
|
+
return moment.utc(time).utcOffset(offsetMinutes).format(FORMAT || "yyyy-MM-DD");
|
|
3484
|
+
}
|
|
3485
|
+
return moment.utc(time).tz(timezone).format(FORMAT || "yyyy-MM-DD");
|
|
4053
3486
|
} catch (_unused) {
|
|
4054
3487
|
return "";
|
|
4055
3488
|
}
|
|
4056
3489
|
});
|
|
4057
3490
|
|
|
4058
|
-
var timeSpanToLocalMoment = (function (time) {
|
|
3491
|
+
var timeSpanToLocalMoment = (function (time, timezone) {
|
|
4059
3492
|
if (!time) return null;
|
|
4060
|
-
|
|
4061
|
-
if (
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
3493
|
+
if (time.split(":").length !== 3) return null;
|
|
3494
|
+
if (!timezone) {
|
|
3495
|
+
var totalSeconds = +time.split(":")[0] * 60 * 60 + +time.split(":")[1] * 60 + +time.split(":")[2];
|
|
3496
|
+
var startOfDay = moment$1.utc().startOf("day");
|
|
3497
|
+
var _dateTime = startOfDay.add(totalSeconds, "seconds");
|
|
3498
|
+
return _dateTime.local();
|
|
3499
|
+
}
|
|
3500
|
+
var dateTime;
|
|
3501
|
+
var isOffset = /^(UTC|GMT)?[+-]/.test(timezone);
|
|
3502
|
+
if (isOffset) {
|
|
3503
|
+
var cleanOffset = timezone.replace(/UTC|GMT/gi, '').trim();
|
|
3504
|
+
var offsetMinutes;
|
|
3505
|
+
if (/^[+-]?\d+$/.test(cleanOffset)) {
|
|
3506
|
+
offsetMinutes = parseInt(cleanOffset, 10) * 60;
|
|
3507
|
+
} else {
|
|
3508
|
+
offsetMinutes = cleanOffset;
|
|
3509
|
+
}
|
|
3510
|
+
dateTime = moment$1.utc(time, "HH:mm:ss").utcOffset(offsetMinutes);
|
|
3511
|
+
} else {
|
|
3512
|
+
dateTime = moment$1.utc(time, "HH:mm:ss").tz(timezone);
|
|
3513
|
+
}
|
|
3514
|
+
return dateTime;
|
|
4066
3515
|
});
|
|
4067
3516
|
|
|
4068
|
-
var historyCore = createBrowserHistory();
|
|
3517
|
+
var historyCore = history.createBrowserHistory();
|
|
4069
3518
|
|
|
4070
3519
|
Object.defineProperty(exports, 'GoogleOAuthProvider', {
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
3520
|
+
enumerable: true,
|
|
3521
|
+
get: function () {
|
|
3522
|
+
return google.GoogleOAuthProvider;
|
|
3523
|
+
}
|
|
4075
3524
|
});
|
|
4076
3525
|
exports.Cookies = Cookies;
|
|
4077
3526
|
Object.defineProperty(exports, 'ToastContainer', {
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
3527
|
+
enumerable: true,
|
|
3528
|
+
get: function () {
|
|
3529
|
+
return reactToastify.ToastContainer;
|
|
3530
|
+
}
|
|
4082
3531
|
});
|
|
4083
3532
|
Object.defineProperty(exports, 'toast', {
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
3533
|
+
enumerable: true,
|
|
3534
|
+
get: function () {
|
|
3535
|
+
return reactToastify.toast;
|
|
3536
|
+
}
|
|
4088
3537
|
});
|
|
4089
3538
|
exports.ACCESS_TOKEN = ACCESS_TOKEN;
|
|
4090
3539
|
exports.BASE_URL = BASE_URL;
|
|
@@ -4118,6 +3567,7 @@ exports.NotFound = NotFound;
|
|
|
4118
3567
|
exports.OPENSALT_BASE_URL = OPENSALT_BASE_URL;
|
|
4119
3568
|
exports.ORGANIZATION_TEAM = ORGANIZATION_TEAM;
|
|
4120
3569
|
exports.ORGANIZATION_TENANT = ORGANIZATION_TENANT;
|
|
3570
|
+
exports.TIMEZONE_ID = TIMEZONE_ID;
|
|
4121
3571
|
exports.api = api;
|
|
4122
3572
|
exports.apiUpload = apiUpload;
|
|
4123
3573
|
exports.firstCheckToken = firstCheckToken;
|