@ix_waterford/lib 1.0.11 → 1.0.12

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.
Files changed (36) hide show
  1. package/dist/components.html +1 -0
  2. package/dist/components.js +22877 -0
  3. package/dist/components.js.map +1 -0
  4. package/dist/hooks.html +1 -0
  5. package/dist/hooks.js +1373 -0
  6. package/dist/hooks.js.map +1 -0
  7. package/dist/index.js +19968 -141590
  8. package/dist/index.js.map +1 -1
  9. package/dist/static/css/components.css +633 -0
  10. package/dist/static/css/components.css.map +1 -0
  11. package/dist/types/assets/svg/columSettingsIcon.d.ts +2 -0
  12. package/dist/types/assets/svg/columSettingsIcon.d.ts.map +1 -0
  13. package/dist/types/assets/svg/index.d.ts +3 -3
  14. package/dist/types/assets/svg/index.d.ts.map +1 -1
  15. package/dist/types/assets/svg/listIcon.d.ts +2 -0
  16. package/dist/types/assets/svg/listIcon.d.ts.map +1 -0
  17. package/dist/types/assets/svg/tileIcon.d.ts +2 -0
  18. package/dist/types/assets/svg/tileIcon.d.ts.map +1 -0
  19. package/dist/types/components/button/style.d.ts +1 -0
  20. package/dist/types/components/button/style.d.ts.map +1 -1
  21. package/dist/types/components/select/multiSelect.d.ts +2 -3
  22. package/dist/types/components/select/multiSelect.d.ts.map +1 -1
  23. package/dist/types/components/select/select.d.ts +2 -3
  24. package/dist/types/components/select/select.d.ts.map +1 -1
  25. package/dist/types/components/select/style.d.ts +5 -0
  26. package/dist/types/components/select/style.d.ts.map +1 -0
  27. package/dist/utils.html +1 -0
  28. package/dist/utils.js +1565 -0
  29. package/dist/utils.js.map +1 -0
  30. package/package.json +1 -1
  31. package/dist/types/assets/svg/viewColumnIcon.d.ts +0 -3
  32. package/dist/types/assets/svg/viewColumnIcon.d.ts.map +0 -1
  33. package/dist/types/assets/svg/viewListIcon.d.ts +0 -3
  34. package/dist/types/assets/svg/viewListIcon.d.ts.map +0 -1
  35. package/dist/types/assets/svg/viewModuleIcon.d.ts +0 -3
  36. package/dist/types/assets/svg/viewModuleIcon.d.ts.map +0 -1
package/dist/utils.js ADDED
@@ -0,0 +1,1565 @@
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
+ isEmpty: () => (/* reexport safe */ _global__WEBPACK_IMPORTED_MODULE_2__.isEmpty),
556
+ isEmptyArray: () => (/* reexport safe */ _global__WEBPACK_IMPORTED_MODULE_2__.isEmptyArray),
557
+ isEmptyObject: () => (/* reexport safe */ _global__WEBPACK_IMPORTED_MODULE_2__.isEmptyObject),
558
+ isEmptyString: () => (/* reexport safe */ _global__WEBPACK_IMPORTED_MODULE_2__.isEmptyString),
559
+ isValidEmail: () => (/* reexport safe */ _email__WEBPACK_IMPORTED_MODULE_1__.isValidEmail)
560
+ });
561
+ /* import */var _date__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./src/utils/date.ts");
562
+ /* import */var _email__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./src/utils/email.ts");
563
+ /* import */var _global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./src/utils/global.ts");
564
+ /* provided dependency */ var $ReactRefreshRuntime$ = __webpack_require__("./node_modules/@rspack/plugin-react-refresh/client/reactRefresh.js");
565
+
566
+
567
+
568
+
569
+ function $RefreshSig$() { return $ReactRefreshRuntime$.createSignatureFunctionForTransform() }
570
+ function $RefreshReg$(type, id) { $ReactRefreshRuntime$.register(type, module.id + "_" + id) }
571
+ Promise.resolve().then(() => { $ReactRefreshRuntime$.refresh(module.id, module.hot) });
572
+
573
+
574
+ }),
575
+ "dayjs": (function (module) {
576
+
577
+ module.exports = __WEBPACK_EXTERNAL_MODULE_dayjs__;
578
+
579
+
580
+ }),
581
+ "./node_modules/@rspack/plugin-react-refresh/client/reactRefresh.js": (function (module, __unused_webpack_exports, __webpack_require__) {
582
+ const RefreshUtils = __webpack_require__("./node_modules/@rspack/plugin-react-refresh/client/refreshUtils.js");
583
+ const RefreshRuntime = __webpack_require__("./node_modules/react-refresh/runtime.js");
584
+
585
+ function refresh(moduleId, webpackHot) {
586
+ const currentExports = RefreshUtils.getModuleExports(moduleId);
587
+ const fn = (exports) => {
588
+ var errorOverlay;
589
+ if (true) {
590
+ errorOverlay = false;
591
+ }
592
+ var testMode;
593
+ if (typeof __react_refresh_test__ !== 'undefined') {
594
+ testMode = __react_refresh_test__;
595
+ }
596
+ RefreshUtils.executeRuntime(
597
+ exports,
598
+ moduleId,
599
+ webpackHot,
600
+ errorOverlay,
601
+ testMode,
602
+ );
603
+ };
604
+ if (typeof Promise !== 'undefined' && currentExports instanceof Promise) {
605
+ currentExports.then(fn);
606
+ } else {
607
+ fn(currentExports);
608
+ }
609
+ }
610
+
611
+ module.exports = {
612
+ refresh,
613
+ register: RefreshRuntime.register,
614
+ createSignatureFunctionForTransform:
615
+ RefreshRuntime.createSignatureFunctionForTransform,
616
+ };
617
+
618
+
619
+ }),
620
+ "./node_modules/@rspack/plugin-react-refresh/client/reactRefreshEntry.js": (function (__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
621
+ var RefreshRuntime = __webpack_require__("./node_modules/react-refresh/runtime.js");
622
+ var safeThis = (function () {
623
+ // copied from core-js-pure/features/global-this
624
+ 'use strict';
625
+
626
+ var check = function (it) {
627
+ return it && it.Math == Math && it;
628
+ };
629
+
630
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
631
+ // eslint-disable-next-line es/no-global-this -- safe
632
+ return (
633
+ check(typeof globalThis == 'object' && globalThis) ||
634
+ check(typeof window == 'object' && window) ||
635
+ // eslint-disable-next-line no-restricted-globals -- safe
636
+ check(typeof self == 'object' && self) ||
637
+ check(typeof __webpack_require__.g == 'object' && __webpack_require__.g) ||
638
+ // eslint-disable-next-line no-new-func -- fallback
639
+ (function () {
640
+ return this;
641
+ })() ||
642
+ this ||
643
+ Function('return this')()
644
+ );
645
+ })();
646
+
647
+ if (true) {
648
+ if (typeof safeThis !== 'undefined') {
649
+ var $RefreshInjected$ = '__reactRefreshInjected';
650
+ // Namespace the injected flag (if necessary) for monorepo compatibility
651
+ if (
652
+ false
653
+ ) {}
654
+
655
+ // Only inject the runtime if it hasn't been injected
656
+ if (!safeThis[$RefreshInjected$]) {
657
+ RefreshRuntime.injectIntoGlobalHook(safeThis);
658
+
659
+ // Empty implementation to avoid "ReferenceError: variable is not defined" in module which didn't pass builtin:react-refresh-loader
660
+ safeThis.$RefreshSig$ = () => (type) => type;
661
+ safeThis.$RefreshReg$ = () => {};
662
+
663
+ // Mark the runtime as injected to prevent double-injection
664
+ safeThis[$RefreshInjected$] = true;
665
+ }
666
+ }
667
+ }
668
+
669
+
670
+ }),
671
+ "./node_modules/@rspack/plugin-react-refresh/client/refreshUtils.js": (function (module, __unused_webpack_exports, __webpack_require__) {
672
+ /* global __webpack_require__ */
673
+ var Refresh = __webpack_require__("./node_modules/react-refresh/runtime.js");
674
+
675
+ /**
676
+ * Extracts exports from a webpack module object.
677
+ * @param {string} moduleId A Webpack module ID.
678
+ * @returns {*} An exports object from the module.
679
+ */
680
+ function getModuleExports(moduleId) {
681
+ if (typeof moduleId === 'undefined') {
682
+ // `moduleId` is unavailable, which indicates that this module is not in the cache,
683
+ // which means we won't be able to capture any exports,
684
+ // and thus they cannot be refreshed safely.
685
+ // These are likely runtime or dynamically generated modules.
686
+ return {};
687
+ }
688
+
689
+ var maybeModule = __webpack_require__.c[moduleId];
690
+ if (typeof maybeModule === 'undefined') {
691
+ // `moduleId` is available but the module in cache is unavailable,
692
+ // which indicates the module is somehow corrupted (e.g. broken Webpacak `module` globals).
693
+ // We will warn the user (as this is likely a mistake) and assume they cannot be refreshed.
694
+ console.warn(
695
+ '[React Refresh] Failed to get exports for module: ' + moduleId + '.',
696
+ );
697
+ return {};
698
+ }
699
+
700
+ var exportsOrPromise = maybeModule.exports;
701
+ if (typeof Promise !== 'undefined' && exportsOrPromise instanceof Promise) {
702
+ return exportsOrPromise.then(function (exports) {
703
+ return exports;
704
+ });
705
+ }
706
+ return exportsOrPromise;
707
+ }
708
+
709
+ /**
710
+ * Calculates the signature of a React refresh boundary.
711
+ * If this signature changes, it's unsafe to accept the boundary.
712
+ *
713
+ * 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).
714
+ * @param {*} moduleExports A Webpack module exports object.
715
+ * @returns {string[]} A React refresh boundary signature array.
716
+ */
717
+ function getReactRefreshBoundarySignature(moduleExports) {
718
+ var signature = [];
719
+ signature.push(Refresh.getFamilyByType(moduleExports));
720
+
721
+ if (moduleExports == null || typeof moduleExports !== 'object') {
722
+ // Exit if we can't iterate over exports.
723
+ return signature;
724
+ }
725
+
726
+ for (var key in moduleExports) {
727
+ if (key === '__esModule') {
728
+ continue;
729
+ }
730
+
731
+ signature.push(key);
732
+ signature.push(Refresh.getFamilyByType(moduleExports[key]));
733
+ }
734
+
735
+ return signature;
736
+ }
737
+
738
+ /**
739
+ * Creates a helper that performs a delayed React refresh.
740
+ * @returns {function(function(): void): void} A debounced React refresh function.
741
+ */
742
+ function createDebounceUpdate() {
743
+ /**
744
+ * A cached setTimeout handler.
745
+ * @type {number | undefined}
746
+ */
747
+ var refreshTimeout;
748
+
749
+ /**
750
+ * Performs react refresh on a delay and clears the error overlay.
751
+ * @param {function(): void} callback
752
+ * @returns {void}
753
+ */
754
+ function enqueueUpdate(callback) {
755
+ if (typeof refreshTimeout === 'undefined') {
756
+ refreshTimeout = setTimeout(function () {
757
+ refreshTimeout = undefined;
758
+ Refresh.performReactRefresh();
759
+ callback();
760
+ }, 30);
761
+ }
762
+ }
763
+
764
+ return enqueueUpdate;
765
+ }
766
+
767
+ /**
768
+ * Checks if all exports are likely a React component.
769
+ *
770
+ * 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).
771
+ * @param {*} moduleExports A Webpack module exports object.
772
+ * @returns {boolean} Whether the exports are React component like.
773
+ */
774
+ function isReactRefreshBoundary(moduleExports) {
775
+ if (Refresh.isLikelyComponentType(moduleExports)) {
776
+ return true;
777
+ }
778
+ if (
779
+ moduleExports === undefined ||
780
+ moduleExports === null ||
781
+ typeof moduleExports !== 'object'
782
+ ) {
783
+ // Exit if we can't iterate over exports.
784
+ return false;
785
+ }
786
+
787
+ var hasExports = false;
788
+ var areAllExportsComponents = true;
789
+ for (var key in moduleExports) {
790
+ hasExports = true;
791
+
792
+ // This is the ES Module indicator flag
793
+ if (key === '__esModule') {
794
+ continue;
795
+ }
796
+
797
+ // We can (and have to) safely execute getters here,
798
+ // as Webpack manually assigns harmony exports to getters,
799
+ // without any side-effects attached.
800
+ // Ref: https://github.com/webpack/webpack/blob/b93048643fe74de2a6931755911da1212df55897/lib/MainTemplate.js#L281
801
+ var exportValue = moduleExports[key];
802
+ if (!Refresh.isLikelyComponentType(exportValue)) {
803
+ areAllExportsComponents = false;
804
+ }
805
+ }
806
+
807
+ return hasExports && areAllExportsComponents;
808
+ }
809
+
810
+ /**
811
+ * Checks if exports are likely a React component and registers them.
812
+ *
813
+ * 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).
814
+ * @param {*} moduleExports A Webpack module exports object.
815
+ * @param {string} moduleId A Webpack module ID.
816
+ * @returns {void}
817
+ */
818
+ function registerExportsForReactRefresh(moduleExports, moduleId) {
819
+ if (Refresh.isLikelyComponentType(moduleExports)) {
820
+ // Register module.exports if it is likely a component
821
+ Refresh.register(moduleExports, moduleId + ' %exports%');
822
+ }
823
+
824
+ if (
825
+ moduleExports === undefined ||
826
+ moduleExports === null ||
827
+ typeof moduleExports !== 'object'
828
+ ) {
829
+ // Exit if we can't iterate over the exports.
830
+ return;
831
+ }
832
+
833
+ for (var key in moduleExports) {
834
+ // Skip registering the ES Module indicator
835
+ if (key === '__esModule') {
836
+ continue;
837
+ }
838
+
839
+ var exportValue = moduleExports[key];
840
+ if (Refresh.isLikelyComponentType(exportValue)) {
841
+ var typeID = moduleId + ' %exports% ' + key;
842
+ Refresh.register(exportValue, typeID);
843
+ }
844
+ }
845
+ }
846
+
847
+ /**
848
+ * Compares previous and next module objects to check for mutated boundaries.
849
+ *
850
+ * 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).
851
+ * @param {*} prevExports The current Webpack module exports object.
852
+ * @param {*} nextExports The next Webpack module exports object.
853
+ * @returns {boolean} Whether the React refresh boundary should be invalidated.
854
+ */
855
+ function shouldInvalidateReactRefreshBoundary(prevExports, nextExports) {
856
+ var prevSignature = getReactRefreshBoundarySignature(prevExports);
857
+ var nextSignature = getReactRefreshBoundarySignature(nextExports);
858
+
859
+ if (prevSignature.length !== nextSignature.length) {
860
+ return true;
861
+ }
862
+
863
+ for (var i = 0; i < nextSignature.length; i += 1) {
864
+ if (prevSignature[i] !== nextSignature[i]) {
865
+ return true;
866
+ }
867
+ }
868
+
869
+ return false;
870
+ }
871
+
872
+ var enqueueUpdate = createDebounceUpdate();
873
+
874
+ function executeRuntime(
875
+ moduleExports,
876
+ moduleId,
877
+ webpackHot,
878
+ refreshOverlay,
879
+ isTest,
880
+ ) {
881
+ registerExportsForReactRefresh(moduleExports, moduleId);
882
+
883
+ if (webpackHot) {
884
+ var isHotUpdate = !!webpackHot.data;
885
+ var prevExports;
886
+ if (isHotUpdate) {
887
+ prevExports = webpackHot.data.prevExports;
888
+ }
889
+
890
+ if (isReactRefreshBoundary(moduleExports)) {
891
+ webpackHot.dispose(
892
+ /**
893
+ * A callback to performs a full refresh if React has unrecoverable errors,
894
+ * and also caches the to-be-disposed module.
895
+ * @param {*} data A hot module data object from Webpack HMR.
896
+ * @returns {void}
897
+ */
898
+ function hotDisposeCallback(data) {
899
+ // We have to mutate the data object to get data registered and cached
900
+ data.prevExports = moduleExports;
901
+ },
902
+ );
903
+ webpackHot.accept(
904
+ /**
905
+ * An error handler to allow self-recovering behaviours.
906
+ * @param {Error} error An error occurred during evaluation of a module.
907
+ * @returns {void}
908
+ */
909
+ function hotErrorHandler(error) {
910
+ console.error(error);
911
+ if (
912
+ false
913
+ ) {}
914
+
915
+ if (typeof refreshOverlay !== 'undefined' && refreshOverlay) {
916
+ refreshOverlay.handleRuntimeError(error);
917
+ }
918
+
919
+ if (typeof isTest !== 'undefined' && isTest) {
920
+ if (window.onHotAcceptError) {
921
+ window.onHotAcceptError(error.message);
922
+ }
923
+ }
924
+
925
+ __webpack_require__.c[moduleId].hot.accept(hotErrorHandler);
926
+ },
927
+ );
928
+
929
+ if (isHotUpdate) {
930
+ if (
931
+ isReactRefreshBoundary(prevExports) &&
932
+ shouldInvalidateReactRefreshBoundary(prevExports, moduleExports)
933
+ ) {
934
+ webpackHot.invalidate();
935
+ } else {
936
+ enqueueUpdate(
937
+ /**
938
+ * A function to dismiss the error overlay after performing React refresh.
939
+ * @returns {void}
940
+ */
941
+ function updateCallback() {
942
+ if (typeof refreshOverlay !== 'undefined' && refreshOverlay) {
943
+ refreshOverlay.clearRuntimeErrors();
944
+ }
945
+ },
946
+ );
947
+ }
948
+ }
949
+ } else {
950
+ if (isHotUpdate && typeof prevExports !== 'undefined') {
951
+ webpackHot.invalidate();
952
+ }
953
+ }
954
+ }
955
+ }
956
+
957
+ function isUnrecoverableRuntimeError(error) {
958
+ return error.message.startsWith('RuntimeError: factory is undefined');
959
+ }
960
+
961
+ module.exports = Object.freeze({
962
+ enqueueUpdate: enqueueUpdate,
963
+ executeRuntime: executeRuntime,
964
+ getModuleExports: getModuleExports,
965
+ isReactRefreshBoundary: isReactRefreshBoundary,
966
+ shouldInvalidateReactRefreshBoundary: shouldInvalidateReactRefreshBoundary,
967
+ registerExportsForReactRefresh: registerExportsForReactRefresh,
968
+ });
969
+
970
+
971
+ }),
972
+
973
+ });
974
+ // The module cache
975
+ var __webpack_module_cache__ = {};
976
+
977
+ // The require function
978
+ function __webpack_require__(moduleId) {
979
+
980
+ // Check if module is in cache
981
+ var cachedModule = __webpack_module_cache__[moduleId];
982
+ if (cachedModule !== undefined) {
983
+ if (cachedModule.error !== undefined) throw cachedModule.error;
984
+ return cachedModule.exports;
985
+ }
986
+ // Create a new module (and put it into the cache)
987
+ var module = (__webpack_module_cache__[moduleId] = {
988
+ id: moduleId,
989
+ exports: {}
990
+ });
991
+ // Execute the module function
992
+ try {
993
+
994
+ var execOptions = { id: moduleId, module: module, factory: __webpack_modules__[moduleId], require: __webpack_require__ };
995
+ __webpack_require__.i.forEach(function(handler) { handler(execOptions); });
996
+ module = execOptions.module;
997
+ if (!execOptions.factory) {
998
+ console.error("undefined factory", moduleId);
999
+ throw Error("RuntimeError: factory is undefined (" + moduleId + ")");
1000
+ }
1001
+ execOptions.factory.call(module.exports, module, module.exports, execOptions.require);
1002
+
1003
+ } catch (e) {
1004
+ module.error = e;
1005
+ throw e;
1006
+ }
1007
+ // Return the exports of the module
1008
+ return module.exports;
1009
+
1010
+ }
1011
+
1012
+ // expose the module cache
1013
+ __webpack_require__.c = __webpack_module_cache__;
1014
+
1015
+ // expose the module execution interceptor
1016
+ __webpack_require__.i = [];
1017
+
1018
+ // webpack/runtime/compat_get_default_export
1019
+ (() => {
1020
+ // getDefaultExport function for compatibility with non-ESM modules
1021
+ __webpack_require__.n = (module) => {
1022
+ var getter = module && module.__esModule ?
1023
+ () => (module['default']) :
1024
+ () => (module);
1025
+ __webpack_require__.d(getter, { a: getter });
1026
+ return getter;
1027
+ };
1028
+
1029
+ })();
1030
+ // webpack/runtime/define_property_getters
1031
+ (() => {
1032
+ __webpack_require__.d = (exports, definition) => {
1033
+ for(var key in definition) {
1034
+ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1035
+ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1036
+ }
1037
+ }
1038
+ };
1039
+ })();
1040
+ // webpack/runtime/get mini-css chunk filename
1041
+ (() => {
1042
+ // This function allow to reference chunks
1043
+ __webpack_require__.miniCssF = (chunkId) => {
1044
+ // return url for filenames not based on template
1045
+
1046
+ // return url for filenames based on template
1047
+ return "" + chunkId + ".css"
1048
+ }
1049
+ })();
1050
+ // webpack/runtime/has_own_property
1051
+ (() => {
1052
+ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
1053
+ })();
1054
+ // webpack/runtime/hot_module_replacement
1055
+ (() => {
1056
+ var currentModuleData = {};
1057
+ var installedModules = __webpack_require__.c;
1058
+
1059
+ // module and require creation
1060
+ var currentChildModule;
1061
+ var currentParents = [];
1062
+
1063
+ // status
1064
+ var registeredStatusHandlers = [];
1065
+ var currentStatus = "idle";
1066
+
1067
+ // while downloading
1068
+ var blockingPromises = 0;
1069
+ var blockingPromisesWaiting = [];
1070
+
1071
+ // The update info
1072
+ var currentUpdateApplyHandlers;
1073
+ var queuedInvalidatedModules;
1074
+
1075
+ __webpack_require__.hmrD = currentModuleData;
1076
+ __webpack_require__.i.push(function (options) {
1077
+ var module = options.module;
1078
+ var require = createRequire(options.require, options.id);
1079
+ module.hot = createModuleHotObject(options.id, module);
1080
+ module.parents = currentParents;
1081
+ module.children = [];
1082
+ currentParents = [];
1083
+ options.require = require;
1084
+ });
1085
+
1086
+ __webpack_require__.hmrC = {};
1087
+ __webpack_require__.hmrI = {};
1088
+
1089
+ function createRequire(require, moduleId) {
1090
+ var me = installedModules[moduleId];
1091
+ if (!me) return require;
1092
+ var fn = function (request) {
1093
+ if (me.hot.active) {
1094
+ if (installedModules[request]) {
1095
+ var parents = installedModules[request].parents;
1096
+ if (parents.indexOf(moduleId) === -1) {
1097
+ parents.push(moduleId);
1098
+ }
1099
+ } else {
1100
+ currentParents = [moduleId];
1101
+ currentChildModule = request;
1102
+ }
1103
+ if (me.children.indexOf(request) === -1) {
1104
+ me.children.push(request);
1105
+ }
1106
+ } else {
1107
+ console.warn(
1108
+ "[HMR] unexpected require(" +
1109
+ request +
1110
+ ") from disposed module " +
1111
+ moduleId
1112
+ );
1113
+ currentParents = [];
1114
+ }
1115
+ return require(request);
1116
+ };
1117
+ var createPropertyDescriptor = function (name) {
1118
+ return {
1119
+ configurable: true,
1120
+ enumerable: true,
1121
+ get: function () {
1122
+ return require[name];
1123
+ },
1124
+ set: function (value) {
1125
+ require[name] = value;
1126
+ }
1127
+ };
1128
+ };
1129
+ for (var name in require) {
1130
+ if (Object.prototype.hasOwnProperty.call(require, name) && name !== "e") {
1131
+ Object.defineProperty(fn, name, createPropertyDescriptor(name));
1132
+ }
1133
+ }
1134
+
1135
+ fn.e = function (chunkId, fetchPriority) {
1136
+ return trackBlockingPromise(require.e(chunkId, fetchPriority));
1137
+ };
1138
+
1139
+ return fn;
1140
+ }
1141
+
1142
+ function createModuleHotObject(moduleId, me) {
1143
+ var _main = currentChildModule !== moduleId;
1144
+ var hot = {
1145
+ _acceptedDependencies: {},
1146
+ _acceptedErrorHandlers: {},
1147
+ _declinedDependencies: {},
1148
+ _selfAccepted: false,
1149
+ _selfDeclined: false,
1150
+ _selfInvalidated: false,
1151
+ _disposeHandlers: [],
1152
+ _main: _main,
1153
+ _requireSelf: function () {
1154
+ currentParents = me.parents.slice();
1155
+ currentChildModule = _main ? undefined : moduleId;
1156
+ __webpack_require__(moduleId);
1157
+ },
1158
+ active: true,
1159
+ accept: function (dep, callback, errorHandler) {
1160
+ if (dep === undefined) hot._selfAccepted = true;
1161
+ else if (typeof dep === "function") hot._selfAccepted = dep;
1162
+ else if (typeof dep === "object" && dep !== null) {
1163
+ for (var i = 0; i < dep.length; i++) {
1164
+ hot._acceptedDependencies[dep[i]] = callback || function () { };
1165
+ hot._acceptedErrorHandlers[dep[i]] = errorHandler;
1166
+ }
1167
+ } else {
1168
+ hot._acceptedDependencies[dep] = callback || function () { };
1169
+ hot._acceptedErrorHandlers[dep] = errorHandler;
1170
+ }
1171
+ },
1172
+ decline: function (dep) {
1173
+ if (dep === undefined) hot._selfDeclined = true;
1174
+ else if (typeof dep === "object" && dep !== null)
1175
+ for (var i = 0; i < dep.length; i++)
1176
+ hot._declinedDependencies[dep[i]] = true;
1177
+ else hot._declinedDependencies[dep] = true;
1178
+ },
1179
+ dispose: function (callback) {
1180
+ hot._disposeHandlers.push(callback);
1181
+ },
1182
+ addDisposeHandler: function (callback) {
1183
+ hot._disposeHandlers.push(callback);
1184
+ },
1185
+ removeDisposeHandler: function (callback) {
1186
+ var idx = hot._disposeHandlers.indexOf(callback);
1187
+ if (idx >= 0) hot._disposeHandlers.splice(idx, 1);
1188
+ },
1189
+ invalidate: function () {
1190
+ this._selfInvalidated = true;
1191
+ switch (currentStatus) {
1192
+ case "idle":
1193
+ currentUpdateApplyHandlers = [];
1194
+ Object.keys(__webpack_require__.hmrI).forEach(function (key) {
1195
+ __webpack_require__.hmrI[key](moduleId, currentUpdateApplyHandlers);
1196
+ });
1197
+ setStatus("ready");
1198
+ break;
1199
+ case "ready":
1200
+ Object.keys(__webpack_require__.hmrI).forEach(function (key) {
1201
+ __webpack_require__.hmrI[key](moduleId, currentUpdateApplyHandlers);
1202
+ });
1203
+ break;
1204
+ case "prepare":
1205
+ case "check":
1206
+ case "dispose":
1207
+ case "apply":
1208
+ (queuedInvalidatedModules = queuedInvalidatedModules || []).push(
1209
+ moduleId
1210
+ );
1211
+ break;
1212
+ default:
1213
+ break;
1214
+ }
1215
+ },
1216
+ check: hotCheck,
1217
+ apply: hotApply,
1218
+ status: function (l) {
1219
+ if (!l) return currentStatus;
1220
+ registeredStatusHandlers.push(l);
1221
+ },
1222
+ addStatusHandler: function (l) {
1223
+ registeredStatusHandlers.push(l);
1224
+ },
1225
+ removeStatusHandler: function (l) {
1226
+ var idx = registeredStatusHandlers.indexOf(l);
1227
+ if (idx >= 0) registeredStatusHandlers.splice(idx, 1);
1228
+ },
1229
+ data: currentModuleData[moduleId]
1230
+ };
1231
+ currentChildModule = undefined;
1232
+ return hot;
1233
+ }
1234
+
1235
+ function setStatus(newStatus) {
1236
+ currentStatus = newStatus;
1237
+ var results = [];
1238
+ for (var i = 0; i < registeredStatusHandlers.length; i++)
1239
+ results[i] = registeredStatusHandlers[i].call(null, newStatus);
1240
+
1241
+ return Promise.all(results).then(function () { });
1242
+ }
1243
+
1244
+ function unblock() {
1245
+ if (--blockingPromises === 0) {
1246
+ setStatus("ready").then(function () {
1247
+ if (blockingPromises === 0) {
1248
+ var list = blockingPromisesWaiting;
1249
+ blockingPromisesWaiting = [];
1250
+ for (var i = 0; i < list.length; i++) {
1251
+ list[i]();
1252
+ }
1253
+ }
1254
+ });
1255
+ }
1256
+ }
1257
+
1258
+ function trackBlockingPromise(promise) {
1259
+ switch (currentStatus) {
1260
+ case "ready":
1261
+ setStatus("prepare");
1262
+ case "prepare":
1263
+ blockingPromises++;
1264
+ promise.then(unblock, unblock);
1265
+ return promise;
1266
+ default:
1267
+ return promise;
1268
+ }
1269
+ }
1270
+
1271
+ function waitForBlockingPromises(fn) {
1272
+ if (blockingPromises === 0) return fn();
1273
+ return new Promise(function (resolve) {
1274
+ blockingPromisesWaiting.push(function () {
1275
+ resolve(fn());
1276
+ });
1277
+ });
1278
+ }
1279
+
1280
+ function hotCheck(applyOnUpdate) {
1281
+ if (currentStatus !== "idle") {
1282
+ throw new Error("check() is only allowed in idle status");
1283
+ }
1284
+ return setStatus("check")
1285
+ .then(__webpack_require__.hmrM)
1286
+ .then(function (update) {
1287
+ if (!update) {
1288
+ return setStatus(applyInvalidatedModules() ? "ready" : "idle").then(
1289
+ function () {
1290
+ return null;
1291
+ }
1292
+ );
1293
+ }
1294
+
1295
+ return setStatus("prepare").then(function () {
1296
+ var updatedModules = [];
1297
+ currentUpdateApplyHandlers = [];
1298
+
1299
+ return Promise.all(
1300
+ Object.keys(__webpack_require__.hmrC).reduce(function (
1301
+ promises,
1302
+ key
1303
+ ) {
1304
+ __webpack_require__.hmrC[key](
1305
+ update.c,
1306
+ update.r,
1307
+ update.m,
1308
+ promises,
1309
+ currentUpdateApplyHandlers,
1310
+ updatedModules
1311
+ );
1312
+ return promises;
1313
+ },
1314
+ [])
1315
+ ).then(function () {
1316
+ return waitForBlockingPromises(function () {
1317
+ if (applyOnUpdate) {
1318
+ return internalApply(applyOnUpdate);
1319
+ }
1320
+ return setStatus("ready").then(function () {
1321
+ return updatedModules;
1322
+ });
1323
+ });
1324
+ });
1325
+ });
1326
+ });
1327
+ }
1328
+
1329
+ function hotApply(options) {
1330
+ if (currentStatus !== "ready") {
1331
+ return Promise.resolve().then(function () {
1332
+ throw new Error(
1333
+ "apply() is only allowed in ready status (state: " + currentStatus + ")"
1334
+ );
1335
+ });
1336
+ }
1337
+ return internalApply(options);
1338
+ }
1339
+
1340
+ function internalApply(options) {
1341
+ options = options || {};
1342
+ applyInvalidatedModules();
1343
+ var results = currentUpdateApplyHandlers.map(function (handler) {
1344
+ return handler(options);
1345
+ });
1346
+ currentUpdateApplyHandlers = undefined;
1347
+ var errors = results
1348
+ .map(function (r) {
1349
+ return r.error;
1350
+ })
1351
+ .filter(Boolean);
1352
+
1353
+ if (errors.length > 0) {
1354
+ return setStatus("abort").then(function () {
1355
+ throw errors[0];
1356
+ });
1357
+ }
1358
+
1359
+ var disposePromise = setStatus("dispose");
1360
+
1361
+ results.forEach(function (result) {
1362
+ if (result.dispose) result.dispose();
1363
+ });
1364
+
1365
+ var applyPromise = setStatus("apply");
1366
+
1367
+ var error;
1368
+ var reportError = function (err) {
1369
+ if (!error) error = err;
1370
+ };
1371
+
1372
+ var outdatedModules = [];
1373
+ results.forEach(function (result) {
1374
+ if (result.apply) {
1375
+ var modules = result.apply(reportError);
1376
+ if (modules) {
1377
+ for (var i = 0; i < modules.length; i++) {
1378
+ outdatedModules.push(modules[i]);
1379
+ }
1380
+ }
1381
+ }
1382
+ });
1383
+
1384
+ return Promise.all([disposePromise, applyPromise]).then(function () {
1385
+ if (error) {
1386
+ return setStatus("fail").then(function () {
1387
+ throw error;
1388
+ });
1389
+ }
1390
+
1391
+ if (queuedInvalidatedModules) {
1392
+ return internalApply(options).then(function (list) {
1393
+ outdatedModules.forEach(function (moduleId) {
1394
+ if (list.indexOf(moduleId) < 0) list.push(moduleId);
1395
+ });
1396
+ return list;
1397
+ });
1398
+ }
1399
+
1400
+ return setStatus("idle").then(function () {
1401
+ return outdatedModules;
1402
+ });
1403
+ });
1404
+ }
1405
+
1406
+ function applyInvalidatedModules() {
1407
+ if (queuedInvalidatedModules) {
1408
+ if (!currentUpdateApplyHandlers) currentUpdateApplyHandlers = [];
1409
+ Object.keys(__webpack_require__.hmrI).forEach(function (key) {
1410
+ queuedInvalidatedModules.forEach(function (moduleId) {
1411
+ __webpack_require__.hmrI[key](moduleId, currentUpdateApplyHandlers);
1412
+ });
1413
+ });
1414
+ queuedInvalidatedModules = undefined;
1415
+ return true;
1416
+ }
1417
+ }
1418
+
1419
+ })();
1420
+ // webpack/runtime/make_namespace_object
1421
+ (() => {
1422
+ // define __esModule on exports
1423
+ __webpack_require__.r = (exports) => {
1424
+ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
1425
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1426
+ }
1427
+ Object.defineProperty(exports, '__esModule', { value: true });
1428
+ };
1429
+ })();
1430
+ // webpack/runtime/public_path
1431
+ (() => {
1432
+ __webpack_require__.p = "/";
1433
+ })();
1434
+ // webpack/runtime/css loading
1435
+ (() => {
1436
+ if (typeof document === "undefined") return;
1437
+ var createStylesheet = function (
1438
+ chunkId, fullhref, oldTag, resolve, reject
1439
+ ) {
1440
+ var linkTag = document.createElement("link");
1441
+
1442
+ linkTag.rel = "stylesheet";
1443
+ linkTag.type="text/css";
1444
+ if (__webpack_require__.nc) {
1445
+ linkTag.nonce = __webpack_require__.nc;
1446
+ }
1447
+ var onLinkComplete = function (event) {
1448
+ // avoid mem leaks.
1449
+ linkTag.onerror = linkTag.onload = null;
1450
+ if (event.type === 'load') {
1451
+ resolve();
1452
+ } else {
1453
+ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
1454
+ var realHref = event && event.target && event.target.href || fullhref;
1455
+ var err = new Error("Loading CSS chunk " + chunkId + " failed.\\n(" + realHref + ")");
1456
+ err.code = "CSS_CHUNK_LOAD_FAILED";
1457
+ err.type = errorType;
1458
+ err.request = realHref;
1459
+ if (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)
1460
+ reject(err);
1461
+ }
1462
+ }
1463
+
1464
+ linkTag.onerror = linkTag.onload = onLinkComplete;
1465
+ linkTag.href = fullhref;
1466
+
1467
+ if (oldTag) {
1468
+ oldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);
1469
+ } else {
1470
+ document.head.appendChild(linkTag);
1471
+ }
1472
+ return linkTag;
1473
+ }
1474
+ var findStylesheet = function (href, fullhref) {
1475
+ var existingLinkTags = document.getElementsByTagName("link");
1476
+ for (var i = 0; i < existingLinkTags.length; i++) {
1477
+ var tag = existingLinkTags[i];
1478
+ var dataHref = tag.getAttribute("data-href") || tag.getAttribute("href");
1479
+ if (dataHref) {
1480
+ dataHref = dataHref.split('?')[0]
1481
+ }
1482
+ if (tag.rel === "stylesheet" && (dataHref === href || dataHref === fullhref)) return tag;
1483
+ }
1484
+
1485
+ var existingStyleTags = document.getElementsByTagName("style");
1486
+ for (var i = 0; i < existingStyleTags.length; i++) {
1487
+ var tag = existingStyleTags[i];
1488
+ var dataHref = tag.getAttribute("data-href");
1489
+ if (dataHref === href || dataHref === fullhref) return tag;
1490
+ }
1491
+ }
1492
+
1493
+ var loadStylesheet = function (chunkId) {
1494
+ return new Promise(function (resolve, reject) {
1495
+ var href = __webpack_require__.miniCssF(chunkId);
1496
+ var fullhref = __webpack_require__.p + href;
1497
+ if (findStylesheet(href, fullhref)) return resolve();
1498
+ createStylesheet(chunkId, fullhref, null, resolve, reject);
1499
+ })
1500
+ }
1501
+
1502
+ // no chunk loading
1503
+ var oldTags = [];
1504
+ var newTags = [];
1505
+ var applyHandler = function (options) {
1506
+ return {
1507
+ dispose: function () {
1508
+ for (var i = 0; i < oldTags.length; i++) {
1509
+ var oldTag = oldTags[i];
1510
+ if (oldTag.parentNode) oldTag.parentNode.removeChild(oldTag);
1511
+ }
1512
+ oldTags.length = 0;
1513
+ },
1514
+ apply: function () {
1515
+ for (var i = 0; i < newTags.length; i++) newTags[i].rel = "stylesheet";
1516
+ newTags.length = 0;
1517
+ }
1518
+ }
1519
+ }
1520
+ __webpack_require__.hmrC.miniCss = function (chunkIds, removedChunks, removedModules, promises, applyHandlers, updatedModulesList) {
1521
+ applyHandlers.push(applyHandler);
1522
+ chunkIds.forEach(function (chunkId) {
1523
+ var href = __webpack_require__.miniCssF(chunkId);
1524
+ var fullhref = __webpack_require__.p + href;
1525
+ var oldTag = findStylesheet(href, fullhref);
1526
+ if (!oldTag) return;
1527
+ promises.push(new Promise(function (resolve, reject) {
1528
+ var tag = createStylesheet(
1529
+ chunkId,
1530
+
1531
+ /**
1532
+ 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.
1533
+ 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
1534
+ */
1535
+ `${fullhref}?${Date.now()}`,
1536
+ oldTag,
1537
+ function () {
1538
+ tag.as = "style";
1539
+ tag.rel = "preload";
1540
+ resolve();
1541
+ },
1542
+ reject
1543
+ );
1544
+ oldTags.push(oldTag);
1545
+ newTags.push(tag);
1546
+ }))
1547
+ });
1548
+ }
1549
+
1550
+
1551
+ })();
1552
+ // module cache are used so entry inlining is disabled
1553
+ // startup
1554
+ // Load entry module and return exports
1555
+ __webpack_require__("./node_modules/@rspack/plugin-react-refresh/client/reactRefreshEntry.js");
1556
+ var __webpack_exports__ = __webpack_require__("./src/utils/index.ts");
1557
+ var __webpack_exports__formatDate = __webpack_exports__.formatDate;
1558
+ var __webpack_exports__isEmpty = __webpack_exports__.isEmpty;
1559
+ var __webpack_exports__isEmptyArray = __webpack_exports__.isEmptyArray;
1560
+ var __webpack_exports__isEmptyObject = __webpack_exports__.isEmptyObject;
1561
+ var __webpack_exports__isEmptyString = __webpack_exports__.isEmptyString;
1562
+ var __webpack_exports__isValidEmail = __webpack_exports__.isValidEmail;
1563
+ export { __webpack_exports__formatDate as formatDate, __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 };
1564
+
1565
+ //# sourceMappingURL=utils.js.map