@ix_waterford/lib 1.0.21 → 1.0.22

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/utils.js DELETED
@@ -1,1691 +0,0 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE_dayjs__ from "dayjs";
2
- var __webpack_modules__ = ({
3
- "./node_modules/dayjs/plugin/utc.js": (function (module) {
4
- !function(t,i){ true?module.exports=i():0}(this,(function(){"use strict";var t="minute",i=/[+-]\d\d(?::?\d\d)?/g,e=/([+-]|\d\d)/g;return function(s,f,n){var u=f.prototype;n.utc=function(t){var i={date:t,utc:!0,args:arguments};return new f(i)},u.utc=function(i){var e=n(this.toDate(),{locale:this.$L,utc:!0});return i?e.add(this.utcOffset(),t):e},u.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var r=u.parse;u.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),r.call(this,t)};var o=u.init;u.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else o.call(this)};var a=u.utcOffset;u.utcOffset=function(s,f){var n=this.$utils().u;if(n(s))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;if("string"==typeof s&&(s=function(t){void 0===t&&(t="");var s=t.match(i);if(!s)return null;var f=(""+s[0]).match(e)||["-",0,0],n=f[0],u=60*+f[1]+ +f[2];return 0===u?0:"+"===n?u:-u}(s),null===s))return this;var u=Math.abs(s)<=16?60*s:s;if(0===u)return this.utc(f);var r=this.clone();if(f)return r.$offset=u,r.$u=!1,r;var o=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(r=this.local().add(u+o,t)).$offset=u,r.$x.$localOffset=o,r};var h=u.format;u.format=function(t){var i=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,i)},u.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var l=u.toDate;u.toDate=function(t){return"s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var c=u.diff;u.diff=function(t,i,e){if(t&&this.$u===t.$u)return c.call(this,t,i,e);var s=this.local(),f=n(t).local();return c.call(s,f,i,e)}}}));
5
-
6
- }),
7
- "./node_modules/react-refresh/cjs/react-refresh-runtime.development.js": (function (__unused_webpack_module, exports) {
8
- /**
9
- * @license React
10
- * react-refresh-runtime.development.js
11
- *
12
- * Copyright (c) Meta Platforms, Inc. and affiliates.
13
- *
14
- * This source code is licensed under the MIT license found in the
15
- * LICENSE file in the root directory of this source tree.
16
- */
17
-
18
-
19
- true &&
20
- (function () {
21
- function computeFullKey(signature) {
22
- if (null !== signature.fullKey) return signature.fullKey;
23
- var fullKey = signature.ownKey;
24
- try {
25
- var hooks = signature.getCustomHooks();
26
- } catch (err) {
27
- return (signature.forceReset = !0), (signature.fullKey = fullKey);
28
- }
29
- for (var i = 0; i < hooks.length; i++) {
30
- var hook = hooks[i];
31
- if ("function" !== typeof hook)
32
- return (signature.forceReset = !0), (signature.fullKey = fullKey);
33
- hook = allSignaturesByType.get(hook);
34
- if (void 0 !== hook) {
35
- var nestedHookKey = computeFullKey(hook);
36
- hook.forceReset && (signature.forceReset = !0);
37
- fullKey += "\n---\n" + nestedHookKey;
38
- }
39
- }
40
- return (signature.fullKey = fullKey);
41
- }
42
- function resolveFamily(type) {
43
- return updatedFamiliesByType.get(type);
44
- }
45
- function cloneMap(map) {
46
- var clone = new Map();
47
- map.forEach(function (value, key) {
48
- clone.set(key, value);
49
- });
50
- return clone;
51
- }
52
- function cloneSet(set) {
53
- var clone = new Set();
54
- set.forEach(function (value) {
55
- clone.add(value);
56
- });
57
- return clone;
58
- }
59
- function getProperty(object, property) {
60
- try {
61
- return object[property];
62
- } catch (err) {}
63
- }
64
- function register(type, id) {
65
- if (
66
- !(
67
- null === type ||
68
- ("function" !== typeof type && "object" !== typeof type) ||
69
- allFamiliesByType.has(type)
70
- )
71
- ) {
72
- var family = allFamiliesByID.get(id);
73
- void 0 === family
74
- ? ((family = { current: type }), allFamiliesByID.set(id, family))
75
- : pendingUpdates.push([family, type]);
76
- allFamiliesByType.set(type, family);
77
- if ("object" === typeof type && null !== type)
78
- switch (getProperty(type, "$$typeof")) {
79
- case REACT_FORWARD_REF_TYPE:
80
- register(type.render, id + "$render");
81
- break;
82
- case REACT_MEMO_TYPE:
83
- register(type.type, id + "$type");
84
- }
85
- }
86
- }
87
- function setSignature(type, key) {
88
- var forceReset =
89
- 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : !1,
90
- getCustomHooks = 3 < arguments.length ? arguments[3] : void 0;
91
- allSignaturesByType.has(type) ||
92
- allSignaturesByType.set(type, {
93
- forceReset: forceReset,
94
- ownKey: key,
95
- fullKey: null,
96
- getCustomHooks:
97
- getCustomHooks ||
98
- function () {
99
- return [];
100
- }
101
- });
102
- if ("object" === typeof type && null !== type)
103
- switch (getProperty(type, "$$typeof")) {
104
- case REACT_FORWARD_REF_TYPE:
105
- setSignature(type.render, key, forceReset, getCustomHooks);
106
- break;
107
- case REACT_MEMO_TYPE:
108
- setSignature(type.type, key, forceReset, getCustomHooks);
109
- }
110
- }
111
- function collectCustomHooksForSignature(type) {
112
- type = allSignaturesByType.get(type);
113
- void 0 !== type && computeFullKey(type);
114
- }
115
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
116
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
117
- PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map,
118
- allFamiliesByID = new Map(),
119
- allFamiliesByType = new PossiblyWeakMap(),
120
- allSignaturesByType = new PossiblyWeakMap(),
121
- updatedFamiliesByType = new PossiblyWeakMap(),
122
- pendingUpdates = [],
123
- helpersByRendererID = new Map(),
124
- helpersByRoot = new Map(),
125
- mountedRoots = new Set(),
126
- failedRoots = new Set(),
127
- rootElements = "function" === typeof WeakMap ? new WeakMap() : null,
128
- isPerformingRefresh = !1;
129
- exports._getMountedRootCount = function () {
130
- return mountedRoots.size;
131
- };
132
- exports.collectCustomHooksForSignature = collectCustomHooksForSignature;
133
- exports.createSignatureFunctionForTransform = function () {
134
- var savedType,
135
- hasCustomHooks,
136
- didCollectHooks = !1;
137
- return function (type, key, forceReset, getCustomHooks) {
138
- if ("string" === typeof key)
139
- return (
140
- savedType ||
141
- ((savedType = type),
142
- (hasCustomHooks = "function" === typeof getCustomHooks)),
143
- null == type ||
144
- ("function" !== typeof type && "object" !== typeof type) ||
145
- setSignature(type, key, forceReset, getCustomHooks),
146
- type
147
- );
148
- !didCollectHooks &&
149
- hasCustomHooks &&
150
- ((didCollectHooks = !0), collectCustomHooksForSignature(savedType));
151
- };
152
- };
153
- exports.getFamilyByID = function (id) {
154
- return allFamiliesByID.get(id);
155
- };
156
- exports.getFamilyByType = function (type) {
157
- return allFamiliesByType.get(type);
158
- };
159
- exports.hasUnrecoverableErrors = function () {
160
- return !1;
161
- };
162
- exports.injectIntoGlobalHook = function (globalObject) {
163
- var hook = globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__;
164
- if (void 0 === hook) {
165
- var nextID = 0;
166
- globalObject.__REACT_DEVTOOLS_GLOBAL_HOOK__ = hook = {
167
- renderers: new Map(),
168
- supportsFiber: !0,
169
- inject: function () {
170
- return nextID++;
171
- },
172
- onScheduleFiberRoot: function () {},
173
- onCommitFiberRoot: function () {},
174
- onCommitFiberUnmount: function () {}
175
- };
176
- }
177
- if (hook.isDisabled)
178
- console.warn(
179
- "Something has shimmed the React DevTools global hook (__REACT_DEVTOOLS_GLOBAL_HOOK__). Fast Refresh is not compatible with this shim and will be disabled."
180
- );
181
- else {
182
- var oldInject = hook.inject;
183
- hook.inject = function (injected) {
184
- var id = oldInject.apply(this, arguments);
185
- "function" === typeof injected.scheduleRefresh &&
186
- "function" === typeof injected.setRefreshHandler &&
187
- helpersByRendererID.set(id, injected);
188
- return id;
189
- };
190
- hook.renderers.forEach(function (injected, id) {
191
- "function" === typeof injected.scheduleRefresh &&
192
- "function" === typeof injected.setRefreshHandler &&
193
- helpersByRendererID.set(id, injected);
194
- });
195
- var oldOnCommitFiberRoot = hook.onCommitFiberRoot,
196
- oldOnScheduleFiberRoot = hook.onScheduleFiberRoot || function () {};
197
- hook.onScheduleFiberRoot = function (id, root, children) {
198
- isPerformingRefresh ||
199
- (failedRoots.delete(root),
200
- null !== rootElements && rootElements.set(root, children));
201
- return oldOnScheduleFiberRoot.apply(this, arguments);
202
- };
203
- hook.onCommitFiberRoot = function (
204
- id,
205
- root,
206
- maybePriorityLevel,
207
- didError
208
- ) {
209
- var helpers = helpersByRendererID.get(id);
210
- if (void 0 !== helpers) {
211
- helpersByRoot.set(root, helpers);
212
- helpers = root.current;
213
- var alternate = helpers.alternate;
214
- null !== alternate
215
- ? ((alternate =
216
- null != alternate.memoizedState &&
217
- null != alternate.memoizedState.element &&
218
- mountedRoots.has(root)),
219
- (helpers =
220
- null != helpers.memoizedState &&
221
- null != helpers.memoizedState.element),
222
- !alternate && helpers
223
- ? (mountedRoots.add(root), failedRoots.delete(root))
224
- : (alternate && helpers) ||
225
- (alternate && !helpers
226
- ? (mountedRoots.delete(root),
227
- didError
228
- ? failedRoots.add(root)
229
- : helpersByRoot.delete(root))
230
- : alternate ||
231
- helpers ||
232
- (didError && failedRoots.add(root))))
233
- : mountedRoots.add(root);
234
- }
235
- return oldOnCommitFiberRoot.apply(this, arguments);
236
- };
237
- }
238
- };
239
- exports.isLikelyComponentType = function (type) {
240
- switch (typeof type) {
241
- case "function":
242
- if (null != type.prototype) {
243
- if (type.prototype.isReactComponent) return !0;
244
- var ownNames = Object.getOwnPropertyNames(type.prototype);
245
- if (
246
- 1 < ownNames.length ||
247
- "constructor" !== ownNames[0] ||
248
- type.prototype.__proto__ !== Object.prototype
249
- )
250
- return !1;
251
- }
252
- type = type.name || type.displayName;
253
- return "string" === typeof type && /^[A-Z]/.test(type);
254
- case "object":
255
- if (null != type)
256
- switch (getProperty(type, "$$typeof")) {
257
- case REACT_FORWARD_REF_TYPE:
258
- case REACT_MEMO_TYPE:
259
- return !0;
260
- }
261
- return !1;
262
- default:
263
- return !1;
264
- }
265
- };
266
- exports.performReactRefresh = function () {
267
- if (0 === pendingUpdates.length || isPerformingRefresh) return null;
268
- isPerformingRefresh = !0;
269
- try {
270
- var staleFamilies = new Set(),
271
- updatedFamilies = new Set(),
272
- updates = pendingUpdates;
273
- pendingUpdates = [];
274
- updates.forEach(function (_ref) {
275
- var family = _ref[0];
276
- _ref = _ref[1];
277
- var prevType = family.current;
278
- updatedFamiliesByType.set(prevType, family);
279
- updatedFamiliesByType.set(_ref, family);
280
- family.current = _ref;
281
- (prevType.prototype && prevType.prototype.isReactComponent) ||
282
- (_ref.prototype && _ref.prototype.isReactComponent)
283
- ? (_ref = !1)
284
- : ((prevType = allSignaturesByType.get(prevType)),
285
- (_ref = allSignaturesByType.get(_ref)),
286
- (_ref =
287
- (void 0 === prevType && void 0 === _ref) ||
288
- (void 0 !== prevType &&
289
- void 0 !== _ref &&
290
- computeFullKey(prevType) === computeFullKey(_ref) &&
291
- !_ref.forceReset)
292
- ? !0
293
- : !1));
294
- _ref ? updatedFamilies.add(family) : staleFamilies.add(family);
295
- });
296
- var update = {
297
- updatedFamilies: updatedFamilies,
298
- staleFamilies: staleFamilies
299
- };
300
- helpersByRendererID.forEach(function (helpers) {
301
- helpers.setRefreshHandler(resolveFamily);
302
- });
303
- var didError = !1,
304
- firstError = null,
305
- failedRootsSnapshot = cloneSet(failedRoots),
306
- mountedRootsSnapshot = cloneSet(mountedRoots),
307
- helpersByRootSnapshot = cloneMap(helpersByRoot);
308
- failedRootsSnapshot.forEach(function (root) {
309
- var helpers = helpersByRootSnapshot.get(root);
310
- if (void 0 === helpers)
311
- throw Error(
312
- "Could not find helpers for a root. This is a bug in React Refresh."
313
- );
314
- failedRoots.has(root);
315
- if (null !== rootElements && rootElements.has(root)) {
316
- var element = rootElements.get(root);
317
- try {
318
- helpers.scheduleRoot(root, element);
319
- } catch (err) {
320
- didError || ((didError = !0), (firstError = err));
321
- }
322
- }
323
- });
324
- mountedRootsSnapshot.forEach(function (root) {
325
- var helpers = helpersByRootSnapshot.get(root);
326
- if (void 0 === helpers)
327
- throw Error(
328
- "Could not find helpers for a root. This is a bug in React Refresh."
329
- );
330
- mountedRoots.has(root);
331
- try {
332
- helpers.scheduleRefresh(root, update);
333
- } catch (err) {
334
- didError || ((didError = !0), (firstError = err));
335
- }
336
- });
337
- if (didError) throw firstError;
338
- return update;
339
- } finally {
340
- isPerformingRefresh = !1;
341
- }
342
- };
343
- exports.register = register;
344
- exports.setSignature = setSignature;
345
- })();
346
-
347
-
348
- }),
349
- "./node_modules/react-refresh/runtime.js": (function (module, __unused_webpack_exports, __webpack_require__) {
350
-
351
-
352
- if (false) {} else {
353
- module.exports = __webpack_require__("./node_modules/react-refresh/cjs/react-refresh-runtime.development.js");
354
- }
355
-
356
-
357
- }),
358
- "./src/utils/date.ts": (function (module, __webpack_exports__, __webpack_require__) {
359
- __webpack_require__.r(__webpack_exports__);
360
- __webpack_require__.d(__webpack_exports__, {
361
- formatDate: () => (formatDate)
362
- });
363
- /* import */var dayjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("dayjs");
364
- /* import */var dayjs_plugin_utc__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/dayjs/plugin/utc.js");
365
- /* import */var dayjs_plugin_utc__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(dayjs_plugin_utc__WEBPACK_IMPORTED_MODULE_1__);
366
- /* provided dependency */ var $ReactRefreshRuntime$ = __webpack_require__("./node_modules/@rspack/plugin-react-refresh/client/reactRefresh.js");
367
-
368
-
369
- dayjs__WEBPACK_IMPORTED_MODULE_0__["default"].extend((dayjs_plugin_utc__WEBPACK_IMPORTED_MODULE_1___default()));
370
- /**
371
- * Formats a date to a specific format string
372
- * @param date - The date to format (Date, string, number, Dayjs object, or boolean)
373
- * @param format - The format string (e.g., 'YYYY-MM-DD', 'MM/DD/YYYY', 'DD-MMM-YYYY')
374
- * @param utc - Whether to format the date in UTC (default: false)
375
- * @returns Formatted date string, or null if date is invalid
376
- */ const formatDate = function(date, format) {
377
- let utc = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
378
- try {
379
- if (!date || typeof date === 'boolean') {
380
- return null;
381
- }
382
- const dayjsDate = utc ? dayjs__WEBPACK_IMPORTED_MODULE_0__["default"].utc(date) : (0,dayjs__WEBPACK_IMPORTED_MODULE_0__["default"])(date);
383
- if (!dayjsDate.isValid()) {
384
- return null;
385
- }
386
- return dayjsDate.format(format);
387
- } catch (_error) {
388
- return null;
389
- }
390
- };
391
-
392
- function $RefreshSig$() { return $ReactRefreshRuntime$.createSignatureFunctionForTransform() }
393
- function $RefreshReg$(type, id) { $ReactRefreshRuntime$.register(type, module.id + "_" + id) }
394
- Promise.resolve().then(() => { $ReactRefreshRuntime$.refresh(module.id, module.hot) });
395
-
396
-
397
- }),
398
- "./src/utils/email.ts": (function (module, __webpack_exports__, __webpack_require__) {
399
- __webpack_require__.r(__webpack_exports__);
400
- __webpack_require__.d(__webpack_exports__, {
401
- isValidEmail: () => (isValidEmail)
402
- });
403
- /* provided dependency */ var $ReactRefreshRuntime$ = __webpack_require__("./node_modules/@rspack/plugin-react-refresh/client/reactRefresh.js");
404
- /**
405
- * Validates whether a given string is a valid email address
406
- * @param email - The email string to validate
407
- * @returns true if the email is valid, false otherwise
408
- */ const isValidEmail = (email)=>{
409
- if (!email || typeof email !== 'string') {
410
- return false;
411
- }
412
- const emailRegex = /^(?!\.)(?!.*\.\.)[A-Za-z0-9.!#$%&'*+/=?^_`{|}~-]+(?<!\.)@[A-Za-z0-9-]+(?:\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
413
- return emailRegex.test(email.trim());
414
- };
415
-
416
- function $RefreshSig$() { return $ReactRefreshRuntime$.createSignatureFunctionForTransform() }
417
- function $RefreshReg$(type, id) { $ReactRefreshRuntime$.register(type, module.id + "_" + id) }
418
- Promise.resolve().then(() => { $ReactRefreshRuntime$.refresh(module.id, module.hot) });
419
-
420
-
421
- }),
422
- "./src/utils/global.ts": (function (module, __webpack_exports__, __webpack_require__) {
423
- __webpack_require__.r(__webpack_exports__);
424
- __webpack_require__.d(__webpack_exports__, {
425
- getColorFromId: () => (getColorFromId),
426
- getFormattedName: () => (getFormattedName),
427
- isEmpty: () => (isEmpty),
428
- isEmptyArray: () => (isEmptyArray),
429
- isEmptyObject: () => (isEmptyObject),
430
- isEmptyString: () => (isEmptyString),
431
- strEllipsis: () => (strEllipsis)
432
- });
433
- /* provided dependency */ var $ReactRefreshRuntime$ = __webpack_require__("./node_modules/@rspack/plugin-react-refresh/client/reactRefresh.js");
434
- /**
435
- * Helper function to check if a value is null or undefined
436
- */ const isNullOrUndefined = (value)=>{
437
- return value === null || value === undefined;
438
- };
439
- /**
440
- * Checks if a string is empty (after trimming whitespace)
441
- * @param value - The string to check
442
- * @returns true if the string is empty or only whitespace, false otherwise
443
- */ const isEmptyString = (value)=>{
444
- if (isNullOrUndefined(value)) {
445
- return true;
446
- }
447
- if (typeof value !== 'string') {
448
- return false;
449
- }
450
- return value.trim().length === 0;
451
- };
452
- /**
453
- * Checks if an array is empty
454
- * @param value - The array to check
455
- * @returns true if the array is empty, false otherwise
456
- */ const isEmptyArray = (value)=>{
457
- if (isNullOrUndefined(value)) {
458
- return true;
459
- }
460
- if (!Array.isArray(value)) {
461
- return false;
462
- }
463
- return value.length === 0;
464
- };
465
- /**
466
- * Checks if an object is empty (has no keys)
467
- * @param value - The object to check
468
- * @returns true if the object is empty, false otherwise
469
- */ const isEmptyObject = (value)=>{
470
- if (isNullOrUndefined(value)) {
471
- return true;
472
- }
473
- if (Array.isArray(value) || value.constructor !== Object) {
474
- return false;
475
- }
476
- return Object.keys(value).length === 0;
477
- };
478
- /**
479
- * Checks if a value is empty
480
- * @param value - The value to check (string, array, or object)
481
- * @returns true if the value is empty, false otherwise
482
- */ const isEmpty = (value)=>{
483
- if (isNullOrUndefined(value)) {
484
- return true;
485
- }
486
- // Handle strings
487
- if (typeof value === 'string') {
488
- return isEmptyString(value);
489
- }
490
- // Handle arrays
491
- if (Array.isArray(value)) {
492
- return isEmptyArray(value);
493
- }
494
- // Handle objects
495
- if (typeof value === 'object') {
496
- return isEmptyObject(value);
497
- }
498
- // For other types, consider them as not empty
499
- return false;
500
- };
501
- const colors = [
502
- '#e57373',
503
- '#f06292',
504
- '#ba68c8',
505
- '#9575cd',
506
- '#c5cae9',
507
- '#7986cb',
508
- '#4fc3f7',
509
- '#4dd0e1',
510
- '#4db6ac',
511
- '#81c784',
512
- '#aed581',
513
- '#dce775',
514
- '#ffee58',
515
- '#ffca28',
516
- '#ff7043',
517
- '#8d6e63',
518
- '#bdbdbd'
519
- ];
520
- const getColorFromId = (id)=>{
521
- if (!id && id !== 0) return colors[0];
522
- const str = String(id);
523
- const code = str.split('').reduce((acc, ch)=>acc + ch.charCodeAt(0), 0);
524
- return colors[code % colors.length];
525
- };
526
- /**
527
- * Extracts initials from a name string
528
- * @param nameValue - The name string to extract initials from
529
- * @returns A string containing up to 2 uppercase initials
530
- */ const getFormattedName = (nameValue)=>{
531
- if (!nameValue) return '';
532
- return nameValue.slice().split(' ').map((word)=>word[0] || '').join('').slice(0, 2).toUpperCase();
533
- };
534
- /**
535
- * Truncates a string to a specified length and adds ellipsis if needed
536
- * @param str - The value to truncate (string, number, boolean, null, or undefined)
537
- * @param length - Maximum length before truncation (default: 25)
538
- * @returns Truncated string with ellipsis if needed, or the original string if shorter
539
- */ const strEllipsis = function(str) {
540
- let length = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 25;
541
- const stringValue = typeof str === 'string' ? str.trim() : String(str ?? '');
542
- return stringValue.length > length ? `${stringValue.substring(0, length)}...` : stringValue;
543
- };
544
-
545
- function $RefreshSig$() { return $ReactRefreshRuntime$.createSignatureFunctionForTransform() }
546
- function $RefreshReg$(type, id) { $ReactRefreshRuntime$.register(type, module.id + "_" + id) }
547
- Promise.resolve().then(() => { $ReactRefreshRuntime$.refresh(module.id, module.hot) });
548
-
549
-
550
- }),
551
- "./src/utils/index.ts": (function (module, __webpack_exports__, __webpack_require__) {
552
- __webpack_require__.r(__webpack_exports__);
553
- __webpack_require__.d(__webpack_exports__, {
554
- formatDate: () => (/* reexport safe */ _date__WEBPACK_IMPORTED_MODULE_0__.formatDate),
555
- getColorFromId: () => (/* reexport safe */ _global__WEBPACK_IMPORTED_MODULE_2__.getColorFromId),
556
- getFormattedName: () => (/* reexport safe */ _global__WEBPACK_IMPORTED_MODULE_2__.getFormattedName),
557
- getLocalStorageItem: () => (/* reexport safe */ _localStorage__WEBPACK_IMPORTED_MODULE_3__.getLocalStorageItem),
558
- getSessionStorageItem: () => (/* reexport safe */ _sessionStorage__WEBPACK_IMPORTED_MODULE_4__.getSessionStorageItem),
559
- isEmpty: () => (/* reexport safe */ _global__WEBPACK_IMPORTED_MODULE_2__.isEmpty),
560
- isEmptyArray: () => (/* reexport safe */ _global__WEBPACK_IMPORTED_MODULE_2__.isEmptyArray),
561
- isEmptyObject: () => (/* reexport safe */ _global__WEBPACK_IMPORTED_MODULE_2__.isEmptyObject),
562
- isEmptyString: () => (/* reexport safe */ _global__WEBPACK_IMPORTED_MODULE_2__.isEmptyString),
563
- isValidEmail: () => (/* reexport safe */ _email__WEBPACK_IMPORTED_MODULE_1__.isValidEmail),
564
- removeLocalStorageItem: () => (/* reexport safe */ _localStorage__WEBPACK_IMPORTED_MODULE_3__.removeLocalStorageItem),
565
- removeSessionStorageItem: () => (/* reexport safe */ _sessionStorage__WEBPACK_IMPORTED_MODULE_4__.removeSessionStorageItem),
566
- setLocalStorageItem: () => (/* reexport safe */ _localStorage__WEBPACK_IMPORTED_MODULE_3__.setLocalStorageItem),
567
- setSessionStorageItem: () => (/* reexport safe */ _sessionStorage__WEBPACK_IMPORTED_MODULE_4__.setSessionStorageItem),
568
- strEllipsis: () => (/* reexport safe */ _global__WEBPACK_IMPORTED_MODULE_2__.strEllipsis)
569
- });
570
- /* import */var _date__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./src/utils/date.ts");
571
- /* import */var _email__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./src/utils/email.ts");
572
- /* import */var _global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./src/utils/global.ts");
573
- /* import */var _localStorage__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./src/utils/localStorage.ts");
574
- /* import */var _sessionStorage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./src/utils/sessionStorage.ts");
575
- /* provided dependency */ var $ReactRefreshRuntime$ = __webpack_require__("./node_modules/@rspack/plugin-react-refresh/client/reactRefresh.js");
576
-
577
-
578
-
579
-
580
-
581
-
582
- function $RefreshSig$() { return $ReactRefreshRuntime$.createSignatureFunctionForTransform() }
583
- function $RefreshReg$(type, id) { $ReactRefreshRuntime$.register(type, module.id + "_" + id) }
584
- Promise.resolve().then(() => { $ReactRefreshRuntime$.refresh(module.id, module.hot) });
585
-
586
-
587
- }),
588
- "./src/utils/localStorage.ts": (function (module, __webpack_exports__, __webpack_require__) {
589
- __webpack_require__.r(__webpack_exports__);
590
- __webpack_require__.d(__webpack_exports__, {
591
- getLocalStorageItem: () => (getLocalStorageItem),
592
- removeLocalStorageItem: () => (removeLocalStorageItem),
593
- setLocalStorageItem: () => (setLocalStorageItem)
594
- });
595
- /* provided dependency */ var $ReactRefreshRuntime$ = __webpack_require__("./node_modules/@rspack/plugin-react-refresh/client/reactRefresh.js");
596
- /**
597
- * Retrieves an item from localStorage and parses it as JSON
598
- * @param key - The localStorage key to retrieve
599
- * @returns The parsed value if found and valid, null otherwise
600
- */ const getLocalStorageItem = (key)=>{
601
- try {
602
- const item = window.localStorage.getItem(key);
603
- return item ? JSON.parse(item) : null;
604
- } catch (_error) {
605
- return null;
606
- }
607
- };
608
- /**
609
- * Sets an item in localStorage with JSON stringification
610
- * @param key - The localStorage key to set
611
- * @param value - The value to store (will be stringified as JSON)
612
- * @returns true if successful, false if an error occurred
613
- */ const setLocalStorageItem = (key, value)=>{
614
- try {
615
- window.localStorage.setItem(key, JSON.stringify(value));
616
- return true;
617
- } catch (_error) {
618
- return false;
619
- }
620
- };
621
- /**
622
- * Removes an item from localStorage
623
- * @param key - The localStorage key to remove
624
- * @returns true if successful, false if an error occurred
625
- */ const removeLocalStorageItem = (key)=>{
626
- try {
627
- window.localStorage.removeItem(key);
628
- return true;
629
- } catch {
630
- return false;
631
- }
632
- };
633
-
634
- function $RefreshSig$() { return $ReactRefreshRuntime$.createSignatureFunctionForTransform() }
635
- function $RefreshReg$(type, id) { $ReactRefreshRuntime$.register(type, module.id + "_" + id) }
636
- Promise.resolve().then(() => { $ReactRefreshRuntime$.refresh(module.id, module.hot) });
637
-
638
-
639
- }),
640
- "./src/utils/sessionStorage.ts": (function (module, __webpack_exports__, __webpack_require__) {
641
- __webpack_require__.r(__webpack_exports__);
642
- __webpack_require__.d(__webpack_exports__, {
643
- getSessionStorageItem: () => (getSessionStorageItem),
644
- removeSessionStorageItem: () => (removeSessionStorageItem),
645
- setSessionStorageItem: () => (setSessionStorageItem)
646
- });
647
- /* provided dependency */ var $ReactRefreshRuntime$ = __webpack_require__("./node_modules/@rspack/plugin-react-refresh/client/reactRefresh.js");
648
- /**
649
- * Retrieves an item from sessionStorage and parses it as JSON
650
- * @param key - The sessionStorage key to retrieve
651
- * @returns The parsed value if found and valid, null otherwise
652
- */ const getSessionStorageItem = (key)=>{
653
- try {
654
- const item = window.sessionStorage.getItem(key);
655
- return item ? JSON.parse(item) : null;
656
- } catch {
657
- return null;
658
- }
659
- };
660
- /**
661
- * Sets an item in sessionStorage with JSON stringification
662
- * @param key - The sessionStorage key to set
663
- * @param value - The value to store (will be stringified as JSON)
664
- * @returns true if successful, false if an error occurred
665
- */ const setSessionStorageItem = (key, value)=>{
666
- try {
667
- window.sessionStorage.setItem(key, JSON.stringify(value));
668
- return true;
669
- } catch {
670
- return false;
671
- }
672
- };
673
- /**
674
- * Removes an item from sessionStorage
675
- * @param key - The sessionStorage key to remove
676
- * @returns true if successful, false if an error occurred
677
- */ const removeSessionStorageItem = (key)=>{
678
- try {
679
- window.sessionStorage.removeItem(key);
680
- return true;
681
- } catch {
682
- return false;
683
- }
684
- };
685
-
686
- function $RefreshSig$() { return $ReactRefreshRuntime$.createSignatureFunctionForTransform() }
687
- function $RefreshReg$(type, id) { $ReactRefreshRuntime$.register(type, module.id + "_" + id) }
688
- Promise.resolve().then(() => { $ReactRefreshRuntime$.refresh(module.id, module.hot) });
689
-
690
-
691
- }),
692
- "dayjs": (function (module) {
693
-
694
- module.exports = __WEBPACK_EXTERNAL_MODULE_dayjs__;
695
-
696
-
697
- }),
698
- "./node_modules/@rspack/plugin-react-refresh/client/reactRefresh.js": (function (module, __unused_webpack_exports, __webpack_require__) {
699
- const RefreshUtils = __webpack_require__("./node_modules/@rspack/plugin-react-refresh/client/refreshUtils.js");
700
- const RefreshRuntime = __webpack_require__("./node_modules/react-refresh/runtime.js");
701
-
702
- function refresh(moduleId, webpackHot) {
703
- const currentExports = RefreshUtils.getModuleExports(moduleId);
704
- const fn = (exports) => {
705
- var errorOverlay;
706
- if (true) {
707
- errorOverlay = false;
708
- }
709
- var testMode;
710
- if (typeof __react_refresh_test__ !== 'undefined') {
711
- testMode = __react_refresh_test__;
712
- }
713
- RefreshUtils.executeRuntime(
714
- exports,
715
- moduleId,
716
- webpackHot,
717
- errorOverlay,
718
- testMode,
719
- );
720
- };
721
- if (typeof Promise !== 'undefined' && currentExports instanceof Promise) {
722
- currentExports.then(fn);
723
- } else {
724
- fn(currentExports);
725
- }
726
- }
727
-
728
- module.exports = {
729
- refresh,
730
- register: RefreshRuntime.register,
731
- createSignatureFunctionForTransform:
732
- RefreshRuntime.createSignatureFunctionForTransform,
733
- };
734
-
735
-
736
- }),
737
- "./node_modules/@rspack/plugin-react-refresh/client/reactRefreshEntry.js": (function (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
738
- var RefreshRuntime = __webpack_require__("./node_modules/react-refresh/runtime.js");
739
- var safeThis = (function () {
740
- // copied from core-js-pure/features/global-this
741
- 'use strict';
742
-
743
- var check = function (it) {
744
- return it && it.Math == Math && it;
745
- };
746
-
747
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
748
- // eslint-disable-next-line es/no-global-this -- safe
749
- return (
750
- check(typeof globalThis == 'object' && globalThis) ||
751
- check(typeof window == 'object' && window) ||
752
- // eslint-disable-next-line no-restricted-globals -- safe
753
- check(typeof self == 'object' && self) ||
754
- check(typeof __webpack_require__.g == 'object' && __webpack_require__.g) ||
755
- // eslint-disable-next-line no-new-func -- fallback
756
- (function () {
757
- return this;
758
- })() ||
759
- this ||
760
- Function('return this')()
761
- );
762
- })();
763
-
764
- if (true) {
765
- if (typeof safeThis !== 'undefined') {
766
- var $RefreshInjected$ = '__reactRefreshInjected';
767
- // Namespace the injected flag (if necessary) for monorepo compatibility
768
- if (
769
- false
770
- ) {}
771
-
772
- // Only inject the runtime if it hasn't been injected
773
- if (!safeThis[$RefreshInjected$]) {
774
- RefreshRuntime.injectIntoGlobalHook(safeThis);
775
-
776
- // Empty implementation to avoid "ReferenceError: variable is not defined" in module which didn't pass builtin:react-refresh-loader
777
- safeThis.$RefreshSig$ = () => (type) => type;
778
- safeThis.$RefreshReg$ = () => {};
779
-
780
- // Mark the runtime as injected to prevent double-injection
781
- safeThis[$RefreshInjected$] = true;
782
- }
783
- }
784
- }
785
-
786
-
787
- }),
788
- "./node_modules/@rspack/plugin-react-refresh/client/refreshUtils.js": (function (module, __unused_webpack_exports, __webpack_require__) {
789
- /* global __webpack_require__ */
790
- var Refresh = __webpack_require__("./node_modules/react-refresh/runtime.js");
791
-
792
- /**
793
- * Extracts exports from a webpack module object.
794
- * @param {string} moduleId A Webpack module ID.
795
- * @returns {*} An exports object from the module.
796
- */
797
- function getModuleExports(moduleId) {
798
- if (typeof moduleId === 'undefined') {
799
- // `moduleId` is unavailable, which indicates that this module is not in the cache,
800
- // which means we won't be able to capture any exports,
801
- // and thus they cannot be refreshed safely.
802
- // These are likely runtime or dynamically generated modules.
803
- return {};
804
- }
805
-
806
- var maybeModule = __webpack_require__.c[moduleId];
807
- if (typeof maybeModule === 'undefined') {
808
- // `moduleId` is available but the module in cache is unavailable,
809
- // which indicates the module is somehow corrupted (e.g. broken Webpacak `module` globals).
810
- // We will warn the user (as this is likely a mistake) and assume they cannot be refreshed.
811
- console.warn(
812
- '[React Refresh] Failed to get exports for module: ' + moduleId + '.',
813
- );
814
- return {};
815
- }
816
-
817
- var exportsOrPromise = maybeModule.exports;
818
- if (typeof Promise !== 'undefined' && exportsOrPromise instanceof Promise) {
819
- return exportsOrPromise.then(function (exports) {
820
- return exports;
821
- });
822
- }
823
- return exportsOrPromise;
824
- }
825
-
826
- /**
827
- * Calculates the signature of a React refresh boundary.
828
- * If this signature changes, it's unsafe to accept the boundary.
829
- *
830
- * This implementation is based on the one in [Metro](https://github.com/facebook/metro/blob/907d6af22ac6ebe58572be418e9253a90665ecbd/packages/metro/src/lib/polyfills/require.js#L795-L816).
831
- * @param {*} moduleExports A Webpack module exports object.
832
- * @returns {string[]} A React refresh boundary signature array.
833
- */
834
- function getReactRefreshBoundarySignature(moduleExports) {
835
- var signature = [];
836
- signature.push(Refresh.getFamilyByType(moduleExports));
837
-
838
- if (moduleExports == null || typeof moduleExports !== 'object') {
839
- // Exit if we can't iterate over exports.
840
- return signature;
841
- }
842
-
843
- for (var key in moduleExports) {
844
- if (key === '__esModule') {
845
- continue;
846
- }
847
-
848
- signature.push(key);
849
- signature.push(Refresh.getFamilyByType(moduleExports[key]));
850
- }
851
-
852
- return signature;
853
- }
854
-
855
- /**
856
- * Creates a helper that performs a delayed React refresh.
857
- * @returns {function(function(): void): void} A debounced React refresh function.
858
- */
859
- function createDebounceUpdate() {
860
- /**
861
- * A cached setTimeout handler.
862
- * @type {number | undefined}
863
- */
864
- var refreshTimeout;
865
-
866
- /**
867
- * Performs react refresh on a delay and clears the error overlay.
868
- * @param {function(): void} callback
869
- * @returns {void}
870
- */
871
- function enqueueUpdate(callback) {
872
- if (typeof refreshTimeout === 'undefined') {
873
- refreshTimeout = setTimeout(function () {
874
- refreshTimeout = undefined;
875
- Refresh.performReactRefresh();
876
- callback();
877
- }, 30);
878
- }
879
- }
880
-
881
- return enqueueUpdate;
882
- }
883
-
884
- /**
885
- * Checks if all exports are likely a React component.
886
- *
887
- * This implementation is based on the one in [Metro](https://github.com/facebook/metro/blob/febdba2383113c88296c61e28e4ef6a7f4939fda/packages/metro/src/lib/polyfills/require.js#L748-L774).
888
- * @param {*} moduleExports A Webpack module exports object.
889
- * @returns {boolean} Whether the exports are React component like.
890
- */
891
- function isReactRefreshBoundary(moduleExports) {
892
- if (Refresh.isLikelyComponentType(moduleExports)) {
893
- return true;
894
- }
895
- if (
896
- moduleExports === undefined ||
897
- moduleExports === null ||
898
- typeof moduleExports !== 'object'
899
- ) {
900
- // Exit if we can't iterate over exports.
901
- return false;
902
- }
903
-
904
- var hasExports = false;
905
- var areAllExportsComponents = true;
906
- for (var key in moduleExports) {
907
- hasExports = true;
908
-
909
- // This is the ES Module indicator flag
910
- if (key === '__esModule') {
911
- continue;
912
- }
913
-
914
- // We can (and have to) safely execute getters here,
915
- // as Webpack manually assigns harmony exports to getters,
916
- // without any side-effects attached.
917
- // Ref: https://github.com/webpack/webpack/blob/b93048643fe74de2a6931755911da1212df55897/lib/MainTemplate.js#L281
918
- var exportValue = moduleExports[key];
919
- if (!Refresh.isLikelyComponentType(exportValue)) {
920
- areAllExportsComponents = false;
921
- }
922
- }
923
-
924
- return hasExports && areAllExportsComponents;
925
- }
926
-
927
- /**
928
- * Checks if exports are likely a React component and registers them.
929
- *
930
- * This implementation is based on the one in [Metro](https://github.com/facebook/metro/blob/febdba2383113c88296c61e28e4ef6a7f4939fda/packages/metro/src/lib/polyfills/require.js#L818-L835).
931
- * @param {*} moduleExports A Webpack module exports object.
932
- * @param {string} moduleId A Webpack module ID.
933
- * @returns {void}
934
- */
935
- function registerExportsForReactRefresh(moduleExports, moduleId) {
936
- if (Refresh.isLikelyComponentType(moduleExports)) {
937
- // Register module.exports if it is likely a component
938
- Refresh.register(moduleExports, moduleId + ' %exports%');
939
- }
940
-
941
- if (
942
- moduleExports === undefined ||
943
- moduleExports === null ||
944
- typeof moduleExports !== 'object'
945
- ) {
946
- // Exit if we can't iterate over the exports.
947
- return;
948
- }
949
-
950
- for (var key in moduleExports) {
951
- // Skip registering the ES Module indicator
952
- if (key === '__esModule') {
953
- continue;
954
- }
955
-
956
- var exportValue = moduleExports[key];
957
- if (Refresh.isLikelyComponentType(exportValue)) {
958
- var typeID = moduleId + ' %exports% ' + key;
959
- Refresh.register(exportValue, typeID);
960
- }
961
- }
962
- }
963
-
964
- /**
965
- * Compares previous and next module objects to check for mutated boundaries.
966
- *
967
- * This implementation is based on the one in [Metro](https://github.com/facebook/metro/blob/907d6af22ac6ebe58572be418e9253a90665ecbd/packages/metro/src/lib/polyfills/require.js#L776-L792).
968
- * @param {*} prevExports The current Webpack module exports object.
969
- * @param {*} nextExports The next Webpack module exports object.
970
- * @returns {boolean} Whether the React refresh boundary should be invalidated.
971
- */
972
- function shouldInvalidateReactRefreshBoundary(prevExports, nextExports) {
973
- var prevSignature = getReactRefreshBoundarySignature(prevExports);
974
- var nextSignature = getReactRefreshBoundarySignature(nextExports);
975
-
976
- if (prevSignature.length !== nextSignature.length) {
977
- return true;
978
- }
979
-
980
- for (var i = 0; i < nextSignature.length; i += 1) {
981
- if (prevSignature[i] !== nextSignature[i]) {
982
- return true;
983
- }
984
- }
985
-
986
- return false;
987
- }
988
-
989
- var enqueueUpdate = createDebounceUpdate();
990
-
991
- function executeRuntime(
992
- moduleExports,
993
- moduleId,
994
- webpackHot,
995
- refreshOverlay,
996
- isTest,
997
- ) {
998
- registerExportsForReactRefresh(moduleExports, moduleId);
999
-
1000
- if (webpackHot) {
1001
- var isHotUpdate = !!webpackHot.data;
1002
- var prevExports;
1003
- if (isHotUpdate) {
1004
- prevExports = webpackHot.data.prevExports;
1005
- }
1006
-
1007
- if (isReactRefreshBoundary(moduleExports)) {
1008
- webpackHot.dispose(
1009
- /**
1010
- * A callback to performs a full refresh if React has unrecoverable errors,
1011
- * and also caches the to-be-disposed module.
1012
- * @param {*} data A hot module data object from Webpack HMR.
1013
- * @returns {void}
1014
- */
1015
- function hotDisposeCallback(data) {
1016
- // We have to mutate the data object to get data registered and cached
1017
- data.prevExports = moduleExports;
1018
- },
1019
- );
1020
- webpackHot.accept(
1021
- /**
1022
- * An error handler to allow self-recovering behaviours.
1023
- * @param {Error} error An error occurred during evaluation of a module.
1024
- * @returns {void}
1025
- */
1026
- function hotErrorHandler(error) {
1027
- console.error(error);
1028
- if (
1029
- false
1030
- ) {}
1031
-
1032
- if (typeof refreshOverlay !== 'undefined' && refreshOverlay) {
1033
- refreshOverlay.handleRuntimeError(error);
1034
- }
1035
-
1036
- if (typeof isTest !== 'undefined' && isTest) {
1037
- if (window.onHotAcceptError) {
1038
- window.onHotAcceptError(error.message);
1039
- }
1040
- }
1041
-
1042
- __webpack_require__.c[moduleId].hot.accept(hotErrorHandler);
1043
- },
1044
- );
1045
-
1046
- if (isHotUpdate) {
1047
- if (
1048
- isReactRefreshBoundary(prevExports) &&
1049
- shouldInvalidateReactRefreshBoundary(prevExports, moduleExports)
1050
- ) {
1051
- webpackHot.invalidate();
1052
- } else {
1053
- enqueueUpdate(
1054
- /**
1055
- * A function to dismiss the error overlay after performing React refresh.
1056
- * @returns {void}
1057
- */
1058
- function updateCallback() {
1059
- if (typeof refreshOverlay !== 'undefined' && refreshOverlay) {
1060
- refreshOverlay.clearRuntimeErrors();
1061
- }
1062
- },
1063
- );
1064
- }
1065
- }
1066
- } else {
1067
- if (isHotUpdate && typeof prevExports !== 'undefined') {
1068
- webpackHot.invalidate();
1069
- }
1070
- }
1071
- }
1072
- }
1073
-
1074
- function isUnrecoverableRuntimeError(error) {
1075
- return error.message.startsWith('RuntimeError: factory is undefined');
1076
- }
1077
-
1078
- module.exports = Object.freeze({
1079
- enqueueUpdate: enqueueUpdate,
1080
- executeRuntime: executeRuntime,
1081
- getModuleExports: getModuleExports,
1082
- isReactRefreshBoundary: isReactRefreshBoundary,
1083
- shouldInvalidateReactRefreshBoundary: shouldInvalidateReactRefreshBoundary,
1084
- registerExportsForReactRefresh: registerExportsForReactRefresh,
1085
- });
1086
-
1087
-
1088
- }),
1089
-
1090
- });
1091
- // The module cache
1092
- var __webpack_module_cache__ = {};
1093
-
1094
- // The require function
1095
- function __webpack_require__(moduleId) {
1096
-
1097
- // Check if module is in cache
1098
- var cachedModule = __webpack_module_cache__[moduleId];
1099
- if (cachedModule !== undefined) {
1100
- if (cachedModule.error !== undefined) throw cachedModule.error;
1101
- return cachedModule.exports;
1102
- }
1103
- // Create a new module (and put it into the cache)
1104
- var module = (__webpack_module_cache__[moduleId] = {
1105
- id: moduleId,
1106
- exports: {}
1107
- });
1108
- // Execute the module function
1109
- try {
1110
-
1111
- var execOptions = { id: moduleId, module: module, factory: __webpack_modules__[moduleId], require: __webpack_require__ };
1112
- __webpack_require__.i.forEach(function(handler) { handler(execOptions); });
1113
- module = execOptions.module;
1114
- if (!execOptions.factory) {
1115
- console.error("undefined factory", moduleId);
1116
- throw Error("RuntimeError: factory is undefined (" + moduleId + ")");
1117
- }
1118
- execOptions.factory.call(module.exports, module, module.exports, execOptions.require);
1119
-
1120
- } catch (e) {
1121
- module.error = e;
1122
- throw e;
1123
- }
1124
- // Return the exports of the module
1125
- return module.exports;
1126
-
1127
- }
1128
-
1129
- // expose the module cache
1130
- __webpack_require__.c = __webpack_module_cache__;
1131
-
1132
- // expose the module execution interceptor
1133
- __webpack_require__.i = [];
1134
-
1135
- // webpack/runtime/compat_get_default_export
1136
- (() => {
1137
- // getDefaultExport function for compatibility with non-ESM modules
1138
- __webpack_require__.n = (module) => {
1139
- var getter = module && module.__esModule ?
1140
- () => (module['default']) :
1141
- () => (module);
1142
- __webpack_require__.d(getter, { a: getter });
1143
- return getter;
1144
- };
1145
-
1146
- })();
1147
- // webpack/runtime/define_property_getters
1148
- (() => {
1149
- __webpack_require__.d = (exports, definition) => {
1150
- for(var key in definition) {
1151
- if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1152
- Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1153
- }
1154
- }
1155
- };
1156
- })();
1157
- // webpack/runtime/get mini-css chunk filename
1158
- (() => {
1159
- // This function allow to reference chunks
1160
- __webpack_require__.miniCssF = (chunkId) => {
1161
- // return url for filenames not based on template
1162
-
1163
- // return url for filenames based on template
1164
- return "" + chunkId + ".css"
1165
- }
1166
- })();
1167
- // webpack/runtime/has_own_property
1168
- (() => {
1169
- __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
1170
- })();
1171
- // webpack/runtime/hot_module_replacement
1172
- (() => {
1173
- var currentModuleData = {};
1174
- var installedModules = __webpack_require__.c;
1175
-
1176
- // module and require creation
1177
- var currentChildModule;
1178
- var currentParents = [];
1179
-
1180
- // status
1181
- var registeredStatusHandlers = [];
1182
- var currentStatus = "idle";
1183
-
1184
- // while downloading
1185
- var blockingPromises = 0;
1186
- var blockingPromisesWaiting = [];
1187
-
1188
- // The update info
1189
- var currentUpdateApplyHandlers;
1190
- var queuedInvalidatedModules;
1191
-
1192
- __webpack_require__.hmrD = currentModuleData;
1193
- __webpack_require__.i.push(function (options) {
1194
- var module = options.module;
1195
- var require = createRequire(options.require, options.id);
1196
- module.hot = createModuleHotObject(options.id, module);
1197
- module.parents = currentParents;
1198
- module.children = [];
1199
- currentParents = [];
1200
- options.require = require;
1201
- });
1202
-
1203
- __webpack_require__.hmrC = {};
1204
- __webpack_require__.hmrI = {};
1205
-
1206
- function createRequire(require, moduleId) {
1207
- var me = installedModules[moduleId];
1208
- if (!me) return require;
1209
- var fn = function (request) {
1210
- if (me.hot.active) {
1211
- if (installedModules[request]) {
1212
- var parents = installedModules[request].parents;
1213
- if (parents.indexOf(moduleId) === -1) {
1214
- parents.push(moduleId);
1215
- }
1216
- } else {
1217
- currentParents = [moduleId];
1218
- currentChildModule = request;
1219
- }
1220
- if (me.children.indexOf(request) === -1) {
1221
- me.children.push(request);
1222
- }
1223
- } else {
1224
- console.warn(
1225
- "[HMR] unexpected require(" +
1226
- request +
1227
- ") from disposed module " +
1228
- moduleId
1229
- );
1230
- currentParents = [];
1231
- }
1232
- return require(request);
1233
- };
1234
- var createPropertyDescriptor = function (name) {
1235
- return {
1236
- configurable: true,
1237
- enumerable: true,
1238
- get: function () {
1239
- return require[name];
1240
- },
1241
- set: function (value) {
1242
- require[name] = value;
1243
- }
1244
- };
1245
- };
1246
- for (var name in require) {
1247
- if (Object.prototype.hasOwnProperty.call(require, name) && name !== "e") {
1248
- Object.defineProperty(fn, name, createPropertyDescriptor(name));
1249
- }
1250
- }
1251
-
1252
- fn.e = function (chunkId, fetchPriority) {
1253
- return trackBlockingPromise(require.e(chunkId, fetchPriority));
1254
- };
1255
-
1256
- return fn;
1257
- }
1258
-
1259
- function createModuleHotObject(moduleId, me) {
1260
- var _main = currentChildModule !== moduleId;
1261
- var hot = {
1262
- _acceptedDependencies: {},
1263
- _acceptedErrorHandlers: {},
1264
- _declinedDependencies: {},
1265
- _selfAccepted: false,
1266
- _selfDeclined: false,
1267
- _selfInvalidated: false,
1268
- _disposeHandlers: [],
1269
- _main: _main,
1270
- _requireSelf: function () {
1271
- currentParents = me.parents.slice();
1272
- currentChildModule = _main ? undefined : moduleId;
1273
- __webpack_require__(moduleId);
1274
- },
1275
- active: true,
1276
- accept: function (dep, callback, errorHandler) {
1277
- if (dep === undefined) hot._selfAccepted = true;
1278
- else if (typeof dep === "function") hot._selfAccepted = dep;
1279
- else if (typeof dep === "object" && dep !== null) {
1280
- for (var i = 0; i < dep.length; i++) {
1281
- hot._acceptedDependencies[dep[i]] = callback || function () { };
1282
- hot._acceptedErrorHandlers[dep[i]] = errorHandler;
1283
- }
1284
- } else {
1285
- hot._acceptedDependencies[dep] = callback || function () { };
1286
- hot._acceptedErrorHandlers[dep] = errorHandler;
1287
- }
1288
- },
1289
- decline: function (dep) {
1290
- if (dep === undefined) hot._selfDeclined = true;
1291
- else if (typeof dep === "object" && dep !== null)
1292
- for (var i = 0; i < dep.length; i++)
1293
- hot._declinedDependencies[dep[i]] = true;
1294
- else hot._declinedDependencies[dep] = true;
1295
- },
1296
- dispose: function (callback) {
1297
- hot._disposeHandlers.push(callback);
1298
- },
1299
- addDisposeHandler: function (callback) {
1300
- hot._disposeHandlers.push(callback);
1301
- },
1302
- removeDisposeHandler: function (callback) {
1303
- var idx = hot._disposeHandlers.indexOf(callback);
1304
- if (idx >= 0) hot._disposeHandlers.splice(idx, 1);
1305
- },
1306
- invalidate: function () {
1307
- this._selfInvalidated = true;
1308
- switch (currentStatus) {
1309
- case "idle":
1310
- currentUpdateApplyHandlers = [];
1311
- Object.keys(__webpack_require__.hmrI).forEach(function (key) {
1312
- __webpack_require__.hmrI[key](moduleId, currentUpdateApplyHandlers);
1313
- });
1314
- setStatus("ready");
1315
- break;
1316
- case "ready":
1317
- Object.keys(__webpack_require__.hmrI).forEach(function (key) {
1318
- __webpack_require__.hmrI[key](moduleId, currentUpdateApplyHandlers);
1319
- });
1320
- break;
1321
- case "prepare":
1322
- case "check":
1323
- case "dispose":
1324
- case "apply":
1325
- (queuedInvalidatedModules = queuedInvalidatedModules || []).push(
1326
- moduleId
1327
- );
1328
- break;
1329
- default:
1330
- break;
1331
- }
1332
- },
1333
- check: hotCheck,
1334
- apply: hotApply,
1335
- status: function (l) {
1336
- if (!l) return currentStatus;
1337
- registeredStatusHandlers.push(l);
1338
- },
1339
- addStatusHandler: function (l) {
1340
- registeredStatusHandlers.push(l);
1341
- },
1342
- removeStatusHandler: function (l) {
1343
- var idx = registeredStatusHandlers.indexOf(l);
1344
- if (idx >= 0) registeredStatusHandlers.splice(idx, 1);
1345
- },
1346
- data: currentModuleData[moduleId]
1347
- };
1348
- currentChildModule = undefined;
1349
- return hot;
1350
- }
1351
-
1352
- function setStatus(newStatus) {
1353
- currentStatus = newStatus;
1354
- var results = [];
1355
- for (var i = 0; i < registeredStatusHandlers.length; i++)
1356
- results[i] = registeredStatusHandlers[i].call(null, newStatus);
1357
-
1358
- return Promise.all(results).then(function () { });
1359
- }
1360
-
1361
- function unblock() {
1362
- if (--blockingPromises === 0) {
1363
- setStatus("ready").then(function () {
1364
- if (blockingPromises === 0) {
1365
- var list = blockingPromisesWaiting;
1366
- blockingPromisesWaiting = [];
1367
- for (var i = 0; i < list.length; i++) {
1368
- list[i]();
1369
- }
1370
- }
1371
- });
1372
- }
1373
- }
1374
-
1375
- function trackBlockingPromise(promise) {
1376
- switch (currentStatus) {
1377
- case "ready":
1378
- setStatus("prepare");
1379
- case "prepare":
1380
- blockingPromises++;
1381
- promise.then(unblock, unblock);
1382
- return promise;
1383
- default:
1384
- return promise;
1385
- }
1386
- }
1387
-
1388
- function waitForBlockingPromises(fn) {
1389
- if (blockingPromises === 0) return fn();
1390
- return new Promise(function (resolve) {
1391
- blockingPromisesWaiting.push(function () {
1392
- resolve(fn());
1393
- });
1394
- });
1395
- }
1396
-
1397
- function hotCheck(applyOnUpdate) {
1398
- if (currentStatus !== "idle") {
1399
- throw new Error("check() is only allowed in idle status");
1400
- }
1401
- return setStatus("check")
1402
- .then(__webpack_require__.hmrM)
1403
- .then(function (update) {
1404
- if (!update) {
1405
- return setStatus(applyInvalidatedModules() ? "ready" : "idle").then(
1406
- function () {
1407
- return null;
1408
- }
1409
- );
1410
- }
1411
-
1412
- return setStatus("prepare").then(function () {
1413
- var updatedModules = [];
1414
- currentUpdateApplyHandlers = [];
1415
-
1416
- return Promise.all(
1417
- Object.keys(__webpack_require__.hmrC).reduce(function (
1418
- promises,
1419
- key
1420
- ) {
1421
- __webpack_require__.hmrC[key](
1422
- update.c,
1423
- update.r,
1424
- update.m,
1425
- promises,
1426
- currentUpdateApplyHandlers,
1427
- updatedModules
1428
- );
1429
- return promises;
1430
- },
1431
- [])
1432
- ).then(function () {
1433
- return waitForBlockingPromises(function () {
1434
- if (applyOnUpdate) {
1435
- return internalApply(applyOnUpdate);
1436
- }
1437
- return setStatus("ready").then(function () {
1438
- return updatedModules;
1439
- });
1440
- });
1441
- });
1442
- });
1443
- });
1444
- }
1445
-
1446
- function hotApply(options) {
1447
- if (currentStatus !== "ready") {
1448
- return Promise.resolve().then(function () {
1449
- throw new Error(
1450
- "apply() is only allowed in ready status (state: " + currentStatus + ")"
1451
- );
1452
- });
1453
- }
1454
- return internalApply(options);
1455
- }
1456
-
1457
- function internalApply(options) {
1458
- options = options || {};
1459
- applyInvalidatedModules();
1460
- var results = currentUpdateApplyHandlers.map(function (handler) {
1461
- return handler(options);
1462
- });
1463
- currentUpdateApplyHandlers = undefined;
1464
- var errors = results
1465
- .map(function (r) {
1466
- return r.error;
1467
- })
1468
- .filter(Boolean);
1469
-
1470
- if (errors.length > 0) {
1471
- return setStatus("abort").then(function () {
1472
- throw errors[0];
1473
- });
1474
- }
1475
-
1476
- var disposePromise = setStatus("dispose");
1477
-
1478
- results.forEach(function (result) {
1479
- if (result.dispose) result.dispose();
1480
- });
1481
-
1482
- var applyPromise = setStatus("apply");
1483
-
1484
- var error;
1485
- var reportError = function (err) {
1486
- if (!error) error = err;
1487
- };
1488
-
1489
- var outdatedModules = [];
1490
- results.forEach(function (result) {
1491
- if (result.apply) {
1492
- var modules = result.apply(reportError);
1493
- if (modules) {
1494
- for (var i = 0; i < modules.length; i++) {
1495
- outdatedModules.push(modules[i]);
1496
- }
1497
- }
1498
- }
1499
- });
1500
-
1501
- return Promise.all([disposePromise, applyPromise]).then(function () {
1502
- if (error) {
1503
- return setStatus("fail").then(function () {
1504
- throw error;
1505
- });
1506
- }
1507
-
1508
- if (queuedInvalidatedModules) {
1509
- return internalApply(options).then(function (list) {
1510
- outdatedModules.forEach(function (moduleId) {
1511
- if (list.indexOf(moduleId) < 0) list.push(moduleId);
1512
- });
1513
- return list;
1514
- });
1515
- }
1516
-
1517
- return setStatus("idle").then(function () {
1518
- return outdatedModules;
1519
- });
1520
- });
1521
- }
1522
-
1523
- function applyInvalidatedModules() {
1524
- if (queuedInvalidatedModules) {
1525
- if (!currentUpdateApplyHandlers) currentUpdateApplyHandlers = [];
1526
- Object.keys(__webpack_require__.hmrI).forEach(function (key) {
1527
- queuedInvalidatedModules.forEach(function (moduleId) {
1528
- __webpack_require__.hmrI[key](moduleId, currentUpdateApplyHandlers);
1529
- });
1530
- });
1531
- queuedInvalidatedModules = undefined;
1532
- return true;
1533
- }
1534
- }
1535
-
1536
- })();
1537
- // webpack/runtime/make_namespace_object
1538
- (() => {
1539
- // define __esModule on exports
1540
- __webpack_require__.r = (exports) => {
1541
- if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
1542
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1543
- }
1544
- Object.defineProperty(exports, '__esModule', { value: true });
1545
- };
1546
- })();
1547
- // webpack/runtime/public_path
1548
- (() => {
1549
- __webpack_require__.p = "/";
1550
- })();
1551
- // webpack/runtime/css loading
1552
- (() => {
1553
- if (typeof document === "undefined") return;
1554
- var createStylesheet = function (
1555
- chunkId, fullhref, oldTag, resolve, reject
1556
- ) {
1557
- var linkTag = document.createElement("link");
1558
-
1559
- linkTag.rel = "stylesheet";
1560
- linkTag.type="text/css";
1561
- if (__webpack_require__.nc) {
1562
- linkTag.nonce = __webpack_require__.nc;
1563
- }
1564
- var onLinkComplete = function (event) {
1565
- // avoid mem leaks.
1566
- linkTag.onerror = linkTag.onload = null;
1567
- if (event.type === 'load') {
1568
- resolve();
1569
- } else {
1570
- var errorType = event && (event.type === 'load' ? 'missing' : event.type);
1571
- var realHref = event && event.target && event.target.href || fullhref;
1572
- var err = new Error("Loading CSS chunk " + chunkId + " failed.\\n(" + realHref + ")");
1573
- err.code = "CSS_CHUNK_LOAD_FAILED";
1574
- err.type = errorType;
1575
- err.request = realHref;
1576
- if (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)
1577
- reject(err);
1578
- }
1579
- }
1580
-
1581
- linkTag.onerror = linkTag.onload = onLinkComplete;
1582
- linkTag.href = fullhref;
1583
-
1584
- if (oldTag) {
1585
- oldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);
1586
- } else {
1587
- document.head.appendChild(linkTag);
1588
- }
1589
- return linkTag;
1590
- }
1591
- var findStylesheet = function (href, fullhref) {
1592
- var existingLinkTags = document.getElementsByTagName("link");
1593
- for (var i = 0; i < existingLinkTags.length; i++) {
1594
- var tag = existingLinkTags[i];
1595
- var dataHref = tag.getAttribute("data-href") || tag.getAttribute("href");
1596
- if (dataHref) {
1597
- dataHref = dataHref.split('?')[0]
1598
- }
1599
- if (tag.rel === "stylesheet" && (dataHref === href || dataHref === fullhref)) return tag;
1600
- }
1601
-
1602
- var existingStyleTags = document.getElementsByTagName("style");
1603
- for (var i = 0; i < existingStyleTags.length; i++) {
1604
- var tag = existingStyleTags[i];
1605
- var dataHref = tag.getAttribute("data-href");
1606
- if (dataHref === href || dataHref === fullhref) return tag;
1607
- }
1608
- }
1609
-
1610
- var loadStylesheet = function (chunkId) {
1611
- return new Promise(function (resolve, reject) {
1612
- var href = __webpack_require__.miniCssF(chunkId);
1613
- var fullhref = __webpack_require__.p + href;
1614
- if (findStylesheet(href, fullhref)) return resolve();
1615
- createStylesheet(chunkId, fullhref, null, resolve, reject);
1616
- })
1617
- }
1618
-
1619
- // no chunk loading
1620
- var oldTags = [];
1621
- var newTags = [];
1622
- var applyHandler = function (options) {
1623
- return {
1624
- dispose: function () {
1625
- for (var i = 0; i < oldTags.length; i++) {
1626
- var oldTag = oldTags[i];
1627
- if (oldTag.parentNode) oldTag.parentNode.removeChild(oldTag);
1628
- }
1629
- oldTags.length = 0;
1630
- },
1631
- apply: function () {
1632
- for (var i = 0; i < newTags.length; i++) newTags[i].rel = "stylesheet";
1633
- newTags.length = 0;
1634
- }
1635
- }
1636
- }
1637
- __webpack_require__.hmrC.miniCss = function (chunkIds, removedChunks, removedModules, promises, applyHandlers, updatedModulesList) {
1638
- applyHandlers.push(applyHandler);
1639
- chunkIds.forEach(function (chunkId) {
1640
- var href = __webpack_require__.miniCssF(chunkId);
1641
- var fullhref = __webpack_require__.p + href;
1642
- var oldTag = findStylesheet(href, fullhref);
1643
- if (!oldTag) return;
1644
- promises.push(new Promise(function (resolve, reject) {
1645
- var tag = createStylesheet(
1646
- chunkId,
1647
-
1648
- /**
1649
- If dynamically add link tag through dom API and there is already a loaded style link, browsers sometimes treats the new link tag as the same link, and won't fetch the new style.
1650
- Use query to avoid browser cache the link tag, force to re-fetch new style, this is the same strategy as updateCss API, this can happen during lazy compilation
1651
- */
1652
- `${fullhref}?${Date.now()}`,
1653
- oldTag,
1654
- function () {
1655
- tag.as = "style";
1656
- tag.rel = "preload";
1657
- resolve();
1658
- },
1659
- reject
1660
- );
1661
- oldTags.push(oldTag);
1662
- newTags.push(tag);
1663
- }))
1664
- });
1665
- }
1666
-
1667
-
1668
- })();
1669
- // module cache are used so entry inlining is disabled
1670
- // startup
1671
- // Load entry module and return exports
1672
- __webpack_require__("./node_modules/@rspack/plugin-react-refresh/client/reactRefreshEntry.js");
1673
- var __webpack_exports__ = __webpack_require__("./src/utils/index.ts");
1674
- var __webpack_exports__formatDate = __webpack_exports__.formatDate;
1675
- var __webpack_exports__getColorFromId = __webpack_exports__.getColorFromId;
1676
- var __webpack_exports__getFormattedName = __webpack_exports__.getFormattedName;
1677
- var __webpack_exports__getLocalStorageItem = __webpack_exports__.getLocalStorageItem;
1678
- var __webpack_exports__getSessionStorageItem = __webpack_exports__.getSessionStorageItem;
1679
- var __webpack_exports__isEmpty = __webpack_exports__.isEmpty;
1680
- var __webpack_exports__isEmptyArray = __webpack_exports__.isEmptyArray;
1681
- var __webpack_exports__isEmptyObject = __webpack_exports__.isEmptyObject;
1682
- var __webpack_exports__isEmptyString = __webpack_exports__.isEmptyString;
1683
- var __webpack_exports__isValidEmail = __webpack_exports__.isValidEmail;
1684
- var __webpack_exports__removeLocalStorageItem = __webpack_exports__.removeLocalStorageItem;
1685
- var __webpack_exports__removeSessionStorageItem = __webpack_exports__.removeSessionStorageItem;
1686
- var __webpack_exports__setLocalStorageItem = __webpack_exports__.setLocalStorageItem;
1687
- var __webpack_exports__setSessionStorageItem = __webpack_exports__.setSessionStorageItem;
1688
- var __webpack_exports__strEllipsis = __webpack_exports__.strEllipsis;
1689
- export { __webpack_exports__formatDate as formatDate, __webpack_exports__getColorFromId as getColorFromId, __webpack_exports__getFormattedName as getFormattedName, __webpack_exports__getLocalStorageItem as getLocalStorageItem, __webpack_exports__getSessionStorageItem as getSessionStorageItem, __webpack_exports__isEmpty as isEmpty, __webpack_exports__isEmptyArray as isEmptyArray, __webpack_exports__isEmptyObject as isEmptyObject, __webpack_exports__isEmptyString as isEmptyString, __webpack_exports__isValidEmail as isValidEmail, __webpack_exports__removeLocalStorageItem as removeLocalStorageItem, __webpack_exports__removeSessionStorageItem as removeSessionStorageItem, __webpack_exports__setLocalStorageItem as setLocalStorageItem, __webpack_exports__setSessionStorageItem as setSessionStorageItem, __webpack_exports__strEllipsis as strEllipsis };
1690
-
1691
- //# sourceMappingURL=utils.js.map