evelearn-theme 2.0.28 → 2.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";
1
+ 'use strict';
2
2
  function _array_like_to_array(arr, len) {
3
3
  if (len == null || len > arr.length) len = arr.length;
4
4
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
@@ -120,10 +120,6 @@ function _object_without_properties_loose(source, excluded) {
120
120
  function _sliced_to_array(arr, i) {
121
121
  return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
122
122
  }
123
- function _type_of(obj) {
124
- "@swc/helpers - typeof";
125
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
126
- }
127
123
  function _unsupported_iterable_to_array(o, minLen) {
128
124
  if (!o) return;
129
125
  if (typeof o === "string") return _array_like_to_array(o, minLen);
@@ -132,201 +128,38 @@ function _unsupported_iterable_to_array(o, minLen) {
132
128
  if (n === "Map" || n === "Set") return Array.from(n);
133
129
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
134
130
  }
135
- var __create = Object.create;
131
+ var jsxRuntime = require('react/jsx-runtime');
132
+ var react = require('react');
133
+ var ReactDOM = require('react-dom');
134
+ var clsx = require('clsx');
135
+ var framerMotion = require('framer-motion');
136
+ var formik = require('formik');
137
+ var react$1 = require('@floating-ui/react');
138
+ var useDebounce = require('use-debounce');
139
+ function _interopDefault(e) {
140
+ return e && e.__esModule ? e : {
141
+ default: e
142
+ };
143
+ }
144
+ var ReactDOM__default = /*#__PURE__*/ _interopDefault(ReactDOM);
145
+ var clsx__default = /*#__PURE__*/ _interopDefault(clsx);
136
146
  var __defProp = Object.defineProperty;
137
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
138
- var __getOwnPropNames = Object.getOwnPropertyNames;
139
- var __getProtoOf = Object.getPrototypeOf;
140
- var __hasOwnProp = Object.prototype.hasOwnProperty;
141
- var __export = function(target, all) {
142
- for(var name in all)__defProp(target, name, {
143
- get: all[name],
144
- enumerable: true
147
+ var __name = function(target, value) {
148
+ return __defProp(target, "name", {
149
+ value: value,
150
+ configurable: true
145
151
  });
146
152
  };
147
- var __copyProps = function(to, from, except, desc) {
148
- if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
149
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
150
- try {
151
- var _loop = function() {
152
- var key = _step.value;
153
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
154
- get: function() {
155
- return from[key];
156
- },
157
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
158
- });
159
- };
160
- for(var _iterator = __getOwnPropNames(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
161
- } catch (err) {
162
- _didIteratorError = true;
163
- _iteratorError = err;
164
- } finally{
165
- try {
166
- if (!_iteratorNormalCompletion && _iterator.return != null) {
167
- _iterator.return();
168
- }
169
- } finally{
170
- if (_didIteratorError) {
171
- throw _iteratorError;
172
- }
173
- }
174
- }
175
- }
176
- return to;
177
- };
178
- var __toESM = function(mod, isNodeMode, target) {
179
- return target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(// If the importer is in node compatibility mode or this is not an ESM
180
- // file that has been converted to a CommonJS file using a Babel-
181
- // compatible transform (i.e. "__esModule" has not been set), then set
182
- // "default" to the CommonJS "module.exports" for node compatibility.
183
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
184
- value: mod,
185
- enumerable: true
186
- }) : target, mod);
187
- };
188
- var __toCommonJS = function(mod) {
189
- return __copyProps(__defProp({}, "__esModule", {
190
- value: true
191
- }), mod);
192
- };
193
- // src/index.ts
194
- var index_exports = {};
195
- __export(index_exports, {
196
- AnimateLogo: function() {
197
- return AnimateLogo_default;
198
- },
199
- Backdrop: function() {
200
- return Backdrop_default;
201
- },
202
- BottomAlert: function() {
203
- return BottomAlert_default;
204
- },
205
- Breakpoint: function() {
206
- return Breakpoint_default;
207
- },
208
- Button: function() {
209
- return Button_default;
210
- },
211
- Checkbox: function() {
212
- return Checkbox_default;
213
- },
214
- CircleProgress: function() {
215
- return CircleProgress_default;
216
- },
217
- Container: function() {
218
- return Container_default;
219
- },
220
- CourseProgress: function() {
221
- return CourseProgress_default;
222
- },
223
- ErrorText: function() {
224
- return ErrorText_default;
225
- },
226
- Fade: function() {
227
- return Fade_default;
228
- },
229
- FunButton: function() {
230
- return FunButton_default;
231
- },
232
- FunRoundButton: function() {
233
- return FunRoundButton_default;
234
- },
235
- IconInfo: function() {
236
- return IconInfo_default;
237
- },
238
- Modal: function() {
239
- return Modal_default;
240
- },
241
- NoResults: function() {
242
- return NoResults_default;
243
- },
244
- NoticeBox: function() {
245
- return NoticeBox_default;
246
- },
247
- Overlay: function() {
248
- return Overlay_default;
249
- },
250
- OverlaySpinner: function() {
251
- return OverlaySpinner_default;
252
- },
253
- PRIMARY_COLOR: function() {
254
- return PRIMARY_COLOR;
255
- },
256
- Pill: function() {
257
- return Pill_default;
258
- },
259
- ProgressBar: function() {
260
- return ProgressBar_default;
261
- },
262
- ProgressBarSimple: function() {
263
- return ProgressBarSimple_default;
264
- },
265
- RadioOption: function() {
266
- return RadioOption_default;
267
- },
268
- RatingStars: function() {
269
- return RatingStars_default;
270
- },
271
- ScrollProgress: function() {
272
- return ScrollProgress_default;
273
- },
274
- Slider: function() {
275
- return Slider_default;
276
- },
277
- Spinner: function() {
278
- return Spinner_default;
279
- },
280
- StepsComponent: function() {
281
- return StepsComponent_default;
282
- },
283
- Tippy: function() {
284
- return Tippy_default;
285
- },
286
- ToggleSwitch: function() {
287
- return ToggleSwitch_default;
288
- },
289
- UserContentSwitcher: function() {
290
- return UserContentSwitcher_default;
291
- },
292
- baseFieldStyle: function() {
293
- return baseFieldStyle;
294
- },
295
- createExerciseElementStyle: function() {
296
- return createExerciseElementStyle;
297
- },
298
- exerciseDeleteButton: function() {
299
- return exerciseDeleteButton;
300
- },
301
- exerciseEditButton: function() {
302
- return exerciseEditButton;
303
- },
304
- headerButtonClass: function() {
305
- return headerButtonClass;
306
- },
307
- headerTippyClass: function() {
308
- return headerTippyClass;
309
- },
310
- tippyClassname: function() {
311
- return tippyClassname;
312
- },
313
- xIconButton: function() {
314
- return xIconButton;
315
- }
316
- });
317
- module.exports = __toCommonJS(index_exports);
318
153
  // src/constants.tsx
319
154
  var PRIMARY_COLOR = "#00b4d8";
320
- // src/Common/ErrorText.tsx
321
- var import_jsx_runtime = require("react/jsx-runtime");
322
- var ErrorText = function(param) {
155
+ var ErrorText = /* @__PURE__ */ __name(function(param) {
323
156
  var text = param.text, style = param.style, classNames = param.classNames;
324
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
157
+ return /* @__PURE__ */ jsxRuntime.jsx("p", {
325
158
  className: classNames ? classNames : "text-red-500 font-semibold text-wrap py-auto",
326
159
  style: style,
327
160
  children: text
328
161
  });
329
- };
162
+ }, "ErrorText");
330
163
  var ErrorText_default = ErrorText;
331
164
  // src/Common/fieldStyle.ts
332
165
  var baseFieldStyle = "font-sans form-input h-11 w-full bg-white border-gray-200 dark:border-gray-500 dark:bg-slate-950 dark:text-gray-200 text-gray-700 dark:placeholder-gray-400 placeholder-gray-400 rounded-md px-2 py-1 focus:outline-none focus:border-blue-300 focus:ring focus:ring-blue-200 focus:ring-opacity-50";
@@ -337,36 +170,34 @@ var exerciseEditButton = "w-6 h-6 flex justify-center text-gray-700 dark:text-gr
337
170
  var tippyClassname = "p-2 bg-slate-600 dark:bg-slate-900 opacity-90 text-white font-medium font-header rounded-lg";
338
171
  var headerTippyClass = "rounded-lg p-2 bg-slate-950 opacity-95 text-white font-medium";
339
172
  var headerButtonClass = "w-10 h-10 rounded-full dark:hover:bg-slate-600 hover:bg-slate-200 bg-transparent flex justify-center items-center flex justify-center items-center text-slate-600 dark:text-slate-100 hover:text-primary dark:hover:text-primary transition-colors duration-50";
340
- // src/Spinners/Spinner.tsx
341
- var import_jsx_runtime2 = require("react/jsx-runtime");
342
- var Spinner = function(param) {
173
+ var Spinner = /* @__PURE__ */ __name(function(param) {
343
174
  var _param_visible = param.visible, visible = _param_visible === void 0 ? true : _param_visible, size = param.size, isWhite = param.white;
344
175
  if (visible === false) return null;
345
176
  var color = isWhite ? "stroke-white/90" : "stroke-slate-600/80";
346
177
  var bgColor = isWhite ? "stroke-white/20" : "stroke-slate-500/20";
347
178
  var dimensions = size === "small" ? "w-5 h-5" : "w-8 h-8";
348
179
  var spinnerClasses = "\n absolute\n top-0\n animate-spin\n ".concat(dimensions, "\n ");
349
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", {
180
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", {
350
181
  className: "relative h-8 w-8 flex justify-center items-center",
351
182
  children: [
352
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("svg", {
183
+ /* @__PURE__ */ jsxRuntime.jsx("svg", {
353
184
  className: "absolute top-0 ".concat(dimensions, " ").concat(bgColor),
354
185
  viewBox: "0 0 24 24",
355
186
  fill: "none",
356
187
  strokeWidth: "2.4",
357
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", {
188
+ children: /* @__PURE__ */ jsxRuntime.jsx("circle", {
358
189
  cx: "12",
359
190
  cy: "12",
360
191
  r: "10"
361
192
  })
362
193
  }),
363
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("svg", {
194
+ /* @__PURE__ */ jsxRuntime.jsx("svg", {
364
195
  className: spinnerClasses,
365
196
  viewBox: "0 0 24 24",
366
197
  fill: "none",
367
198
  strokeWidth: "2.4",
368
199
  strokeLinecap: "round",
369
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", {
200
+ children: /* @__PURE__ */ jsxRuntime.jsx("path", {
370
201
  d: "\n M 12 2 \n A 10 10 0 0 1 22 12 \n A 10 10 0 0 1 12 22 \n A 10 10 0 0 1 2 12 \n A 10 10 0 0 1 12 2\n ",
371
202
  strokeDasharray: "13 18.4",
372
203
  stroke: "inherit",
@@ -375,38 +206,36 @@ var Spinner = function(param) {
375
206
  })
376
207
  ]
377
208
  });
378
- };
379
- var SpinnerCentered = function(props) {
209
+ }, "Spinner");
210
+ var SpinnerCentered = /* @__PURE__ */ __name(function(props) {
380
211
  if (props.visible === false) return null;
381
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", {
212
+ return /* @__PURE__ */ jsxRuntime.jsx("div", {
382
213
  className: "w-full flex justify-center items-center",
383
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Spinner, _object_spread({}, props))
214
+ children: /* @__PURE__ */ jsxRuntime.jsx(Spinner, _object_spread({}, props))
384
215
  });
385
- };
216
+ }, "SpinnerCentered");
386
217
  Spinner.displayName = "Spinner";
387
218
  SpinnerCentered.displayName = "Spinner.Centered";
388
219
  Spinner.Centered = SpinnerCentered;
389
220
  var Spinner_default = Spinner;
390
- // src/Common/NoResults.tsx
391
- var import_jsx_runtime3 = require("react/jsx-runtime");
392
221
  var HEIGHT = 160;
393
222
  var WIDTH = HEIGHT * (16 / 9);
394
- var NoResults = function(param) {
223
+ var NoResults = /* @__PURE__ */ __name(function(param) {
395
224
  var loading = param.loading, message = param.message;
396
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", {
225
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", {
397
226
  className: "relative w-full flex justify-center items-center",
398
227
  children: [
399
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", {
228
+ /* @__PURE__ */ jsxRuntime.jsxs("div", {
400
229
  className: "flex justify-start w-full space-x-2 py-3 p-4 bg-slate-100 dark:bg-slate-800 rounded-md",
401
230
  children: [
402
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", {
231
+ /* @__PURE__ */ jsxRuntime.jsx("div", {
403
232
  style: {
404
233
  width: "calc(".concat(WIDTH, "px + 1rem)"),
405
234
  height: 320
406
235
  },
407
236
  className: "rounded-lg overflow-hidden cursor-pointer hover:shadow-md transition-shadow duration-150 px-2 pt-2 bg-slate-200 dark:bg-slate-700 animate-pulse"
408
237
  }),
409
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", {
238
+ /* @__PURE__ */ jsxRuntime.jsx("div", {
410
239
  style: {
411
240
  width: "calc(".concat(WIDTH, "px + 1rem)"),
412
241
  height: 320
@@ -415,11 +244,11 @@ var NoResults = function(param) {
415
244
  })
416
245
  ]
417
246
  }),
418
- !loading && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", {
247
+ !loading && /* @__PURE__ */ jsxRuntime.jsx("div", {
419
248
  className: "absolute w-full h-full flex justify-center items-center m-auto",
420
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", {
249
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
421
250
  className: "p-4 rounded-lg bg-white dark:bg-slate-700 shadow-xl",
422
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", {
251
+ children: /* @__PURE__ */ jsxRuntime.jsx("p", {
423
252
  className: "font-semibold text-lg text-gray-700 dark:text-gray-300",
424
253
  children: message || "No results"
425
254
  })
@@ -427,13 +256,11 @@ var NoResults = function(param) {
427
256
  })
428
257
  ]
429
258
  });
430
- };
259
+ }, "NoResults");
431
260
  var NoResults_default = NoResults;
432
- // src/Common/Container.tsx
433
- var import_jsx_runtime4 = require("react/jsx-runtime");
434
- var Container = function(param) {
261
+ var Container = /* @__PURE__ */ __name(function(param) {
435
262
  var backgroundImage = param.backgroundImage, style = param.style, children = param.children, onClick = param.onClick;
436
- return backgroundImage ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", {
263
+ return backgroundImage ? /* @__PURE__ */ jsxRuntime.jsx("div", {
437
264
  style: _object_spread({
438
265
  backgroundImage: backgroundImage,
439
266
  backgroundSize: "cover"
@@ -441,7 +268,7 @@ var Container = function(param) {
441
268
  className: "w-full md:min-h-screen dark:bg-slate-950 mx-auto overflow-y-auto overflow-x-clip px-0 md:px-2 sm:py-4 py-1 relative",
442
269
  onClick: onClick,
443
270
  children: children ? children : null
444
- }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", {
271
+ }) : /* @__PURE__ */ jsxRuntime.jsx("div", {
445
272
  className: "w-full dark:bg-slate-950 mx-auto overflow-y-auto overflow-x-clip px-0 sm:px-16 relative pt-20",
446
273
  onClick: onClick,
447
274
  style: style || {
@@ -449,39 +276,35 @@ var Container = function(param) {
449
276
  },
450
277
  children: children ? children : null
451
278
  });
452
- };
279
+ }, "Container");
453
280
  var Container_default = Container;
454
- // src/Common/Pill.tsx
455
- var import_jsx_runtime5 = require("react/jsx-runtime");
456
- var Pill = function(param) {
281
+ var Pill = /* @__PURE__ */ __name(function(param) {
457
282
  var text = param.text;
458
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", {
283
+ return /* @__PURE__ */ jsxRuntime.jsx("span", {
459
284
  className: "rounded-full px-3 py-1 text-sm font-header font-medium bg-white dark:bg-slate-900 text-gray-700 dark:text-gray-300 mr-2 mb-2",
460
285
  children: text
461
286
  });
462
- };
287
+ }, "Pill");
463
288
  var Pill_default = Pill;
464
- // src/Common/StepsComponent.tsx
465
- var import_jsx_runtime6 = require("react/jsx-runtime");
466
- var StepsComponent = function(param) {
289
+ var StepsComponent = /* @__PURE__ */ __name(function(param) {
467
290
  var steps = param.steps, activeStep = param.activeStep, onStepPress = param.onStepPress;
468
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", {
291
+ return /* @__PURE__ */ jsxRuntime.jsx("div", {
469
292
  className: "flex justify-between items-center space-x-1 w-full p-1 mb-2",
470
293
  children: steps.map(function(step, index) {
471
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", {
294
+ return /* @__PURE__ */ jsxRuntime.jsx("div", {
472
295
  className: "flex justify-center items-center space-x-2 w-full",
473
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", {
296
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
474
297
  className: "flex flex-col items-center w-full",
475
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("button", {
298
+ children: /* @__PURE__ */ jsxRuntime.jsx("button", {
476
299
  type: "button",
477
300
  onClick: function() {
478
301
  return onStepPress(index);
479
302
  },
480
303
  className: "flex items-center space-x-2 px-4 py-2 rounded-lg w-full min-w-10 md:min-w-20 sm:min-w-40 font-header transition-all duration-150\n ".concat(activeStep === index ? "bg-primary text-white shadow-lg scale-110 border-2 border-primary" : "bg-gray-100 dark:bg-slate-800 text-gray-700 dark:text-gray-200 hover:bg-gray-200 dark:hover:bg-slate-700 border-2 border-transparent hover:border-primary/30"),
481
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("p", {
304
+ children: /* @__PURE__ */ jsxRuntime.jsxs("p", {
482
305
  className: "font-medium truncate",
483
306
  children: [
484
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", {
307
+ /* @__PURE__ */ jsxRuntime.jsxs("span", {
485
308
  className: "text-semibold",
486
309
  children: [
487
310
  index + 1,
@@ -496,24 +319,20 @@ var StepsComponent = function(param) {
496
319
  }, "step_".concat(index, "_").concat(step.label));
497
320
  })
498
321
  });
499
- };
322
+ }, "StepsComponent");
500
323
  var StepsComponent_default = StepsComponent;
501
- // src/Fade/Fade.tsx
502
- var import_jsx_runtime7 = require("react/jsx-runtime");
503
- var Fade = function(param) {
324
+ var Fade = /* @__PURE__ */ __name(function(param) {
504
325
  var children = param.children, inProp = param.inProp;
505
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", {
326
+ return /* @__PURE__ */ jsxRuntime.jsx("div", {
506
327
  className: "animate-fade-in",
507
328
  children: children
508
329
  });
509
- };
330
+ }, "Fade");
510
331
  var Fade_default = Fade;
511
- // src/Backdrop/Backdrop.tsx
512
- var import_jsx_runtime8 = require("react/jsx-runtime");
513
- var Backdrop = function(param) {
332
+ var Backdrop = /* @__PURE__ */ __name(function(param) {
514
333
  var visible = param.visible, onClick = param.onClick, opacity = param.opacity;
515
334
  if (!visible) return null;
516
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", {
335
+ return /* @__PURE__ */ jsxRuntime.jsx("div", {
517
336
  style: {
518
337
  opacity: opacity ? opacity : 90,
519
338
  zIndex: 21
@@ -521,11 +340,9 @@ var Backdrop = function(param) {
521
340
  className: "fixed top-0 left-0 w-full h-screen bg-gray-100 dark:bg-slate-900",
522
341
  onClick: onClick
523
342
  });
524
- };
343
+ }, "Backdrop");
525
344
  var Backdrop_default = Backdrop;
526
- // src/Breakpoint/Breakpoint.tsx
527
- var import_jsx_runtime9 = require("react/jsx-runtime");
528
- var Breakpoint = function(param) {
345
+ var Breakpoint = /* @__PURE__ */ __name(function(param) {
529
346
  var children = param.children, fromSize = param.fromSize, toSize = param.toSize;
530
347
  var className = "";
531
348
  if (fromSize && toSize) {
@@ -535,20 +352,16 @@ var Breakpoint = function(param) {
535
352
  } else if (toSize) {
536
353
  className = "block ".concat(toSize, ":hidden");
537
354
  }
538
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", {
355
+ return /* @__PURE__ */ jsxRuntime.jsx("div", {
539
356
  className: className,
540
357
  children: children
541
358
  });
542
- };
359
+ }, "Breakpoint");
543
360
  var Breakpoint_default = Breakpoint;
544
- // src/Backdrop/Overlay.tsx
545
- var import_react = require("react");
546
- var import_react_dom = __toESM(require("react-dom"));
547
- var import_jsx_runtime10 = require("react/jsx-runtime");
548
- var Overlay = function(param) {
361
+ var Overlay = /* @__PURE__ */ __name(function(param) {
549
362
  var visible = param.visible, onDismissed = param.onDismissed, onClick = param.onClick, zIndex = param.zIndex, isDark = param.isDark, children = param.children, opacity = param.opacity, _param_withContainer = param.withContainer, withContainer = _param_withContainer === void 0 ? true : _param_withContainer;
550
- var _ref = _sliced_to_array((0, import_react.useState)(null), 2), modalRoot = _ref[0], setModalRoot = _ref[1];
551
- (0, import_react.useEffect)(function() {
363
+ var _react_useState = _sliced_to_array(react.useState(null), 2), modalRoot = _react_useState[0], setModalRoot = _react_useState[1];
364
+ react.useEffect(function() {
552
365
  var root = document.getElementById("modal-root");
553
366
  if (!root) {
554
367
  root = document.createElement("div");
@@ -567,9 +380,9 @@ var Overlay = function(param) {
567
380
  visible
568
381
  ]);
569
382
  if (!visible || !modalRoot) return null;
570
- return import_react_dom.default.createPortal(/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", {
383
+ return ReactDOM__default.default.createPortal(/* @__PURE__ */ jsxRuntime.jsx("div", {
571
384
  className: "animate-fade-in",
572
- children: withContainer ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", {
385
+ children: withContainer ? /* @__PURE__ */ jsxRuntime.jsx("div", {
573
386
  onClick: onDismissed || onClick,
574
387
  className: "top-0 left-0 fixed w-full h-screen dark:bg-black/70 bg-white/60 backdrop-blur-lg flex items-center justify-center",
575
388
  style: {
@@ -579,38 +392,33 @@ var Overlay = function(param) {
579
392
  children: children
580
393
  }) : children
581
394
  }), modalRoot);
582
- };
395
+ }, "Overlay");
583
396
  var Overlay_default = Overlay;
584
- // src/Button/Button.tsx
585
- var import_clsx = __toESM(require("clsx"));
586
- var import_jsx_runtime11 = require("react/jsx-runtime");
587
- var Button = function(param) {
397
+ var Button = /* @__PURE__ */ __name(function(param) {
588
398
  var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, loading = param.loading, onClick = param.onClick, _param_kind = param.kind, kind = _param_kind === void 0 ? "primary" : _param_kind, _param_size = param.size, size = _param_size === void 0 ? "small" : _param_size, _param_type = param.type, type = _param_type === void 0 ? "button" : _param_type, children = param.children;
589
- var styled = function() {
399
+ var styled = /* @__PURE__ */ __name(function() {
590
400
  switch(kind){
591
401
  case "primary":
592
- return (0, import_clsx.default)("bg-primary font-header text-white font-medium transition-all duration-75 disabled:opacity-50 disabled:cursor-not-allowed hover:bg-black/10");
402
+ return clsx__default.default("bg-primary font-header text-white font-medium transition-all duration-75 disabled:opacity-50 disabled:cursor-not-allowed hover:bg-black/10");
593
403
  case "indigo":
594
- return (0, import_clsx.default)("bg-indigo-500 font-header text-white font-medium transition-all duration-75 disabled:opacity-50 disabled:cursor-not-allowed hover:bg-black/10");
404
+ return clsx__default.default("bg-indigo-500 font-header text-white font-medium transition-all duration-75 disabled:opacity-50 disabled:cursor-not-allowed hover:bg-black/10");
595
405
  case "green":
596
- return (0, import_clsx.default)("bg-green-500 font-header text-white font-medium transition-all duration-75 disabled:opacity-50 disabled:cursor-not-allowed hover:bg-black/10");
406
+ return clsx__default.default("bg-green-500 font-header text-white font-medium transition-all duration-75 disabled:opacity-50 disabled:cursor-not-allowed hover:bg-black/10");
597
407
  case "teal":
598
- return (0, import_clsx.default)("bg-teal-500 font-header text-white font-medium transition-all duration-75 disabled:opacity-50 disabled:cursor-not-allowed hover:bg-black/10");
408
+ return clsx__default.default("bg-teal-500 font-header text-white font-medium transition-all duration-75 disabled:opacity-50 disabled:cursor-not-allowed hover:bg-black/10");
599
409
  case "secondary":
600
- return (0, import_clsx.default)("bg-secondary text-white font-header font-medium transition-all duration-75 disabled:opacity-50 disabled:cursor-not-allowed hover:bg-black/10");
410
+ return clsx__default.default("bg-secondary text-white font-header font-medium transition-all duration-75 disabled:opacity-50 disabled:cursor-not-allowed hover:bg-black/10");
601
411
  case "base":
602
- return (0, import_clsx.default)("bg-white border-1 font-header border-gray-200 dark:bg-slate-600 dark:text-gray-100 transition-all duration-75 disabled:opacity-50 disabled:cursor-not-allowed dark:hover:bg-slate-400 hover:bg-slate-100");
412
+ return clsx__default.default("bg-white border-1 font-header border-gray-200 dark:bg-slate-600 dark:text-gray-100 transition-all duration-75 disabled:opacity-50 disabled:cursor-not-allowed dark:hover:bg-slate-400 hover:bg-slate-100");
603
413
  case "gray":
604
- return (0, import_clsx.default)("bg-slate-400 dark:bg-slate-700 font-header text-white border-1 font-medium transition-opacity duration-75 disabled:opacity-50 disabled:cursor-not-allowed hover:bg-black/10");
414
+ return clsx__default.default("bg-slate-400 dark:bg-slate-700 font-header text-white border-1 font-medium transition-opacity duration-75 disabled:opacity-50 disabled:cursor-not-allowed hover:bg-black/10");
605
415
  case "alert":
606
- return (0, import_clsx.default)("bg-amber-500 font-header text-white transition-all duration-75 disabled:opacity-50 disabled:cursor-not-allowed hover:bg-black/10");
416
+ return clsx__default.default("bg-amber-500 font-header text-white transition-all duration-75 disabled:opacity-50 disabled:cursor-not-allowed hover:bg-black/10");
607
417
  case "warning":
608
- return (0, import_clsx.default)("bg-red-500 font-header text-white font-medium transition-opacity duration-75 disabled:opacity-50 disabled:cursor-not-allowed hover:bg-black/10");
609
- default:
610
- break;
418
+ return clsx__default.default("bg-red-500 font-header text-white font-medium transition-opacity duration-75 disabled:opacity-50 disabled:cursor-not-allowed hover:bg-black/10");
611
419
  }
612
- };
613
- var sized = function() {
420
+ }, "styled");
421
+ var sized = /* @__PURE__ */ __name(function() {
614
422
  switch(size){
615
423
  case "small":
616
424
  return "p-1";
@@ -621,31 +429,27 @@ var Button = function(param) {
621
429
  default:
622
430
  return "px-2 py-1";
623
431
  }
624
- };
625
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("button", {
432
+ }, "sized");
433
+ return /* @__PURE__ */ jsxRuntime.jsx("button", {
626
434
  type: type || "button",
627
435
  disabled: disabled,
628
- className: (0, import_clsx.default)("rounded-lg cursor-pointer focus:outline-none transition duration-100", styled(), sized()),
436
+ className: clsx__default.default("rounded-lg cursor-pointer focus:outline-none transition duration-100", styled(), sized()),
629
437
  onClick: onClick,
630
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", {
438
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
631
439
  className: "w-full max-h-11",
632
- children: loading ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", {
440
+ children: loading ? /* @__PURE__ */ jsxRuntime.jsx("div", {
633
441
  className: "flex w-full justify-center items-center",
634
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Spinner_default, {
442
+ children: /* @__PURE__ */ jsxRuntime.jsx(Spinner_default, {
635
443
  white: true
636
444
  })
637
445
  }) : children
638
446
  })
639
447
  });
640
- };
448
+ }, "Button");
641
449
  var Button_default = Button;
642
- // src/Button/FunButton.tsx
643
- var import_react2 = require("react");
644
- var import_framer_motion = require("framer-motion");
645
- var import_jsx_runtime12 = require("react/jsx-runtime");
646
- var FunButton = function(param) {
450
+ var FunButton = /* @__PURE__ */ __name(function(param) {
647
451
  var onClick = param.onClick, disabled = param.disabled, type = param.type, children = param.children, _param_color = param.color, color = _param_color === void 0 ? "primary" : _param_color, loading = param.loading, active = param.active, className = param.className, _param_size = param.size, size = _param_size === void 0 ? "base" : _param_size;
648
- var _ref = (0, import_react2.useMemo)(function() {
452
+ var _react_useMemo = react.useMemo(function() {
649
453
  switch(color){
650
454
  case "primary":
651
455
  return {
@@ -690,8 +494,8 @@ var FunButton = function(param) {
690
494
  }
691
495
  }, [
692
496
  color
693
- ]), front = _ref.front, bottom = _ref.bottom;
694
- var classStyle = (0, import_react2.useMemo)(function() {
497
+ ]), front = _react_useMemo.front, bottom = _react_useMemo.bottom;
498
+ var classStyle = react.useMemo(function() {
695
499
  switch(size){
696
500
  case "base":
697
501
  return "relative block px-8 py-3 rounded-lg text-lg text-white font-medium font-header hover:bg-slate-900/20";
@@ -707,21 +511,21 @@ var FunButton = function(param) {
707
511
  }, [
708
512
  size
709
513
  ]);
710
- var computedClassName = (0, import_react2.useMemo)(function() {
514
+ var computedClassName = react.useMemo(function() {
711
515
  var cName = className + " rounded-lg border-none p-0 cursor-pointer opacity-90 hover:bg-black/30 transition-opacity";
712
516
  return cName + (disabled ? " opacity-70 cursor-default" : "");
713
517
  }, [
714
518
  className,
715
519
  disabled
716
520
  ]);
717
- var computedClassStyle = (0, import_react2.useMemo)(function() {
521
+ var computedClassStyle = react.useMemo(function() {
718
522
  var cName = classStyle;
719
523
  return cName + (disabled ? " opacity-70 cursor-default hover:bg-black/70" : "");
720
524
  }, [
721
525
  classStyle,
722
526
  disabled
723
527
  ]);
724
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_framer_motion.motion.button, {
528
+ return /* @__PURE__ */ jsxRuntime.jsx(framerMotion.motion.button, {
725
529
  className: "".concat(computedClassName),
726
530
  style: {
727
531
  background: front,
@@ -736,7 +540,7 @@ var FunButton = function(param) {
736
540
  duration: 0.1,
737
541
  ease: "easeInOut"
738
542
  },
739
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_framer_motion.motion.span, {
543
+ children: /* @__PURE__ */ jsxRuntime.jsx(framerMotion.motion.span, {
740
544
  className: computedClassStyle,
741
545
  style: {
742
546
  background: bottom,
@@ -755,9 +559,9 @@ var FunButton = function(param) {
755
559
  duration: 0.1,
756
560
  ease: "easeInOut"
757
561
  },
758
- children: loading ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", {
562
+ children: loading ? /* @__PURE__ */ jsxRuntime.jsx("div", {
759
563
  className: size === "small" ? "min-h-6" : "min-h-10",
760
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Spinner_default.Centered, {
564
+ children: /* @__PURE__ */ jsxRuntime.jsx(Spinner_default.Centered, {
761
565
  visible: true,
762
566
  size: size === "small" ? "small" : "base",
763
567
  white: true
@@ -765,16 +569,11 @@ var FunButton = function(param) {
765
569
  }) : children
766
570
  })
767
571
  });
768
- };
572
+ }, "FunButton");
769
573
  var FunButton_default = FunButton;
770
- // src/Button/FunRoundButton.tsx
771
- var import_react3 = require("react");
772
- var import_framer_motion2 = require("framer-motion");
773
- var import_clsx2 = __toESM(require("clsx"));
774
- var import_jsx_runtime13 = require("react/jsx-runtime");
775
- var FunRoundButton = function(param) {
574
+ var FunRoundButton = /* @__PURE__ */ __name(function(param) {
776
575
  var onClick = param.onClick, disabled = param.disabled, type = param.type, children = param.children, color = param.color, active = param.active, className = param.className, _param_size = param.size, size = _param_size === void 0 ? 44 : _param_size;
777
- var _ref = (0, import_react3.useMemo)(function() {
576
+ var _react_useMemo = react.useMemo(function() {
778
577
  switch(color){
779
578
  case "primary":
780
579
  return {
@@ -815,9 +614,9 @@ var FunRoundButton = function(param) {
815
614
  }, [
816
615
  color,
817
616
  disabled
818
- ]), front = _ref.front, bottom = _ref.bottom;
819
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_framer_motion2.motion.button, {
820
- className: (0, import_clsx2.default)(className || "border-none p-0 flex justify-center items-center cursor-pointer z-10", disabled ? "opacity-70 cursor-default" : "hover:opacity-95"),
617
+ ]), front = _react_useMemo.front, bottom = _react_useMemo.bottom;
618
+ return /* @__PURE__ */ jsxRuntime.jsx(framerMotion.motion.button, {
619
+ className: clsx__default.default(className || "border-none p-0 flex justify-center items-center cursor-pointer z-10", disabled ? "opacity-70 cursor-default" : "hover:opacity-95"),
821
620
  style: {
822
621
  background: front,
823
622
  height: size,
@@ -834,7 +633,7 @@ var FunRoundButton = function(param) {
834
633
  whileTap: {
835
634
  y: disabled ? 0 : 2
836
635
  },
837
- children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_framer_motion2.motion.span, {
636
+ children: /* @__PURE__ */ jsxRuntime.jsx(framerMotion.motion.span, {
838
637
  className: "flex justify-center items-center z-10",
839
638
  style: {
840
639
  background: bottom,
@@ -861,30 +660,25 @@ var FunRoundButton = function(param) {
861
660
  children: children
862
661
  })
863
662
  });
864
- };
663
+ }, "FunRoundButton");
865
664
  var FunRoundButton_default = FunRoundButton;
866
- // src/Checkbox/Checkbox.tsx
867
- var import_react4 = require("react");
868
- var import_formik = require("formik");
869
- var import_clsx3 = __toESM(require("clsx"));
870
- var import_jsx_runtime14 = require("react/jsx-runtime");
871
- var Checkbox = function(param) {
665
+ var Checkbox = /* @__PURE__ */ __name(function(param) {
872
666
  var name = param.name, labelText = param.labelText, isLarge = param.isLarge, onChange = param.onChange, isDisabled = param.isDisabled;
873
- var _ref = _sliced_to_array((0, import_formik.useField)(name), 3), value = _ref[0].value, error = _ref[1].error, _ref_ = _ref[2], setValue = _ref_.setValue, setTouched = _ref_.setTouched;
874
- var onCheck = function(e) {
667
+ var _formik_useField = _sliced_to_array(formik.useField(name), 3), value = _formik_useField[0].value, error = _formik_useField[1].error, _formik_useField_ = _formik_useField[2], setValue = _formik_useField_.setValue, setTouched = _formik_useField_.setTouched;
668
+ var onCheck = /* @__PURE__ */ __name(function(e) {
875
669
  setTouched(true);
876
670
  setValue(!value, true);
877
- };
878
- var rand = (0, import_react4.useMemo)(function() {
671
+ }, "onCheck");
672
+ var rand = react.useMemo(function() {
879
673
  return Math.random();
880
674
  }, []);
881
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", {
675
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", {
882
676
  className: "relative flex flex-col justify-center items-center",
883
677
  children: [
884
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", {
678
+ /* @__PURE__ */ jsxRuntime.jsxs("div", {
885
679
  className: "flex items-center",
886
680
  children: [
887
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("input", {
681
+ /* @__PURE__ */ jsxRuntime.jsx("input", {
888
682
  disabled: !!isDisabled,
889
683
  onChange: function(e) {
890
684
  onCheck(e);
@@ -895,30 +689,30 @@ var Checkbox = function(param) {
895
689
  name: name,
896
690
  type: "checkbox",
897
691
  checked: !!value,
898
- className: (0, import_clsx3.default)("form-checkbox text-blue-600 focus:ring-blue-500 border-gray-300 rounded", isLarge ? "h-5 w-5" : "h-4 w-4")
692
+ className: clsx__default.default("form-checkbox text-blue-600 focus:ring-blue-500 border-gray-300 rounded", isLarge ? "h-5 w-5" : "h-4 w-4")
899
693
  }),
900
- typeof labelText === "string" ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("label", {
694
+ typeof labelText === "string" ? /* @__PURE__ */ jsxRuntime.jsx("label", {
901
695
  htmlFor: "".concat(name).concat(rand),
902
696
  className: "ml-2 block text-sm text-gray-800 dark:text-gray-200",
903
697
  children: labelText
904
- }) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("label", {
698
+ }) : /* @__PURE__ */ jsxRuntime.jsx("label", {
905
699
  htmlFor: "".concat(name).concat(rand),
906
700
  children: labelText
907
701
  })
908
702
  ]
909
703
  }),
910
- error && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ErrorText_default, {
704
+ error && /* @__PURE__ */ jsxRuntime.jsx(ErrorText_default, {
911
705
  classNames: "absolute w-64 left-6 top-4 text-xs text-red-500",
912
706
  text: error
913
707
  })
914
708
  ]
915
709
  });
916
- };
917
- var MultiChoiceCheckBox = function(param) {
710
+ }, "Checkbox");
711
+ var MultiChoiceCheckBox = /* @__PURE__ */ __name(function(param) {
918
712
  var name = param.name, hasMultipleAnswers = param.hasMultipleAnswers, index = param.index, isLarge = param.isLarge, allOptionsName = param.allOptionsName;
919
- var _ref = _sliced_to_array((0, import_formik.useField)(name), 3), value = _ref[0].value, ref = _object_destructuring_empty(_ref[1]), _ref_ = _ref[2], setValue = _ref_.setValue, setTouched = _ref_.setTouched;
920
- var _ref1 = _sliced_to_array((0, import_formik.useField)(allOptionsName), 3), _ref_1 = _ref1[0], optionsValue = _ref_1.value, _ref_2 = _ref1[2], setOptionsValue = _ref_2.setValue;
921
- var onCheck = function(e) {
713
+ var _formik_useField = _sliced_to_array(formik.useField(name), 3), value = _formik_useField[0].value, ref = _object_destructuring_empty(_formik_useField[1]), _formik_useField_ = _formik_useField[2], setValue = _formik_useField_.setValue, setTouched = _formik_useField_.setTouched;
714
+ var _formik_useField1 = _sliced_to_array(formik.useField(allOptionsName), 3), _formik_useField_1 = _formik_useField1[0], optionsValue = _formik_useField_1.value, _formik_useField_2 = _formik_useField1[2], setOptionsValue = _formik_useField_2.setValue;
715
+ var onCheck = /* @__PURE__ */ __name(function(e) {
922
716
  setTouched(true);
923
717
  if (hasMultipleAnswers) {
924
718
  setValue(!value);
@@ -931,12 +725,12 @@ var MultiChoiceCheckBox = function(param) {
931
725
  isCorrectAnswer: index === idx ? !el.isCorrectAnswer : false
932
726
  };
933
727
  }));
934
- };
935
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", {
728
+ }, "onCheck");
729
+ return /* @__PURE__ */ jsxRuntime.jsx("div", {
936
730
  className: "flex flex-col justify-center items-center",
937
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", {
731
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
938
732
  className: "flex items-center",
939
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("input", {
733
+ children: /* @__PURE__ */ jsxRuntime.jsx("input", {
940
734
  onChange: function(e) {
941
735
  return onCheck(e);
942
736
  },
@@ -945,24 +739,20 @@ var MultiChoiceCheckBox = function(param) {
945
739
  id: name,
946
740
  name: name,
947
741
  type: "checkbox",
948
- className: (0, import_clsx3.default)("form-checkbox text-blue-600 focus:ring-blue-500 border-gray-300 rounded", isLarge ? "h-5 w-5" : "h-4 w-4")
742
+ className: clsx__default.default("form-checkbox text-blue-600 focus:ring-blue-500 border-gray-300 rounded", isLarge ? "h-5 w-5" : "h-4 w-4")
949
743
  })
950
744
  })
951
745
  });
952
- };
746
+ }, "MultiChoiceCheckBox");
953
747
  Checkbox.Multi = MultiChoiceCheckBox;
954
748
  var Checkbox_default = Checkbox;
955
- // src/Checkbox/RadioOption.tsx
956
- var import_clsx4 = __toESM(require("clsx"));
957
- var import_formik2 = require("formik");
958
- var import_jsx_runtime15 = require("react/jsx-runtime");
959
- var RadioOption = function(param) {
749
+ var RadioOption = /* @__PURE__ */ __name(function(param) {
960
750
  var name = param.name, isLarge = param.isLarge, labelText = param.labelText, option = param.option, onSelect = param.onSelect;
961
- var _ref = _sliced_to_array((0, import_formik2.useField)(name), 3), value = _ref[0].value, ref = _object_destructuring_empty(_ref[1]), setValue = _ref[2].setValue;
962
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", {
751
+ var _formik_useField = _sliced_to_array(formik.useField(name), 3), value = _formik_useField[0].value, ref = _object_destructuring_empty(_formik_useField[1]), setValue = _formik_useField[2].setValue;
752
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", {
963
753
  className: "flex items-center",
964
754
  children: [
965
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("input", {
755
+ /* @__PURE__ */ jsxRuntime.jsx("input", {
966
756
  onChange: function() {
967
757
  setValue(option);
968
758
  onSelect === null || onSelect === void 0 ? void 0 : onSelect();
@@ -972,55 +762,52 @@ var RadioOption = function(param) {
972
762
  name: name,
973
763
  type: "checkbox",
974
764
  checked: value === option,
975
- className: (0, import_clsx4.default)("form-checkbox text-blue-600 focus:ring-blue-500 border-gray-300 rounded", isLarge ? "h-5 w-5" : "h-4 w-4")
765
+ className: clsx__default.default("form-checkbox text-blue-600 focus:ring-blue-500 border-gray-300 rounded", isLarge ? "h-5 w-5" : "h-4 w-4")
976
766
  }),
977
- typeof labelText === "string" ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("label", {
767
+ typeof labelText === "string" ? /* @__PURE__ */ jsxRuntime.jsx("label", {
978
768
  htmlFor: option,
979
769
  className: "ml-2 block text-sm text-gray-900",
980
770
  children: labelText
981
- }) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("label", {
771
+ }) : /* @__PURE__ */ jsxRuntime.jsx("label", {
982
772
  htmlFor: option,
983
773
  children: labelText
984
774
  })
985
775
  ]
986
776
  });
987
- };
777
+ }, "RadioOption");
988
778
  var RadioOption_default = RadioOption;
989
- // src/Common/BottomAlert.tsx
990
- var import_react_dom2 = __toESM(require("react-dom"));
991
- var import_jsx_runtime16 = require("react/jsx-runtime");
992
- var BottomAlert = function(param) {
779
+ var BottomAlert = /* @__PURE__ */ __name(function(param) {
993
780
  var isDark = param.isDark, setDontShowAgain = param.setDontShowAgain, dontShowAgain = param.dontShowAgain, title = param.title, borderColor = param.borderColor, onDismissed = param.onDismissed, cancelText = param.cancelText, confirmText = param.confirmText, onConfirm = param.onConfirm, onCancel = param.onCancel, isSingleAction = param.isSingleAction, children = param.children, buttonColor = param.buttonColor;
994
- var dismiss = function() {
781
+ var dismiss = /* @__PURE__ */ __name(function() {
995
782
  onDismissed === null || onDismissed === void 0 ? void 0 : onDismissed();
996
- };
997
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", {
783
+ }, "dismiss");
784
+ return /* @__PURE__ */ jsxRuntime.jsx("div", {
998
785
  className: "top-0 left-0 fixed w-full h-screen flex justify-center",
999
786
  style: {
1000
787
  background: isDark ? "rgba(0, 0, 0, 0.1)" : "rgba(255, 255, 255, 0.1)",
1001
788
  zIndex: 9999
1002
789
  },
1003
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", {
790
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
1004
791
  className: "absolute top-0 w-full h-screen flex justify-center bg-gray-200/90 dark:bg-slate-800/50",
1005
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", {
792
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
1006
793
  className: "absolute sm:w-1/2 w-full mx-auto shadow-xl rounded-md p-6 flex z-50 flex-col top-24 bg-white dark:bg-slate-900 overflow-clip rounded-bl-lg rounded-br-lg border-b-8 border-b-blue-500",
1007
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", {
794
+ children: /* @__PURE__ */ jsxRuntime.jsxs("div", {
1008
795
  style: {
1009
796
  borderColor: borderColor || "#0ea5e9"
1010
797
  },
1011
798
  children: [
1012
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("h3", {
799
+ /* @__PURE__ */ jsxRuntime.jsx("h3", {
1013
800
  className: "font-semibold font-header text-gray-700 dark:text-gray-300 text-xl",
1014
801
  children: title
1015
802
  }),
1016
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", {
803
+ /* @__PURE__ */ jsxRuntime.jsx("div", {
1017
804
  className: "mt-2 text-lg",
1018
805
  children: children
1019
806
  }),
1020
- setDontShowAgain ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", {
807
+ setDontShowAgain ? /* @__PURE__ */ jsxRuntime.jsxs("div", {
1021
808
  className: "flex items-center space-x-1",
1022
809
  children: [
1023
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("input", {
810
+ /* @__PURE__ */ jsxRuntime.jsx("input", {
1024
811
  onChange: function() {
1025
812
  setDontShowAgain(function(s) {
1026
813
  return !s;
@@ -1031,16 +818,16 @@ var BottomAlert = function(param) {
1031
818
  type: "checkbox",
1032
819
  className: "form-checkbox text-blue-600 focus:ring-blue-500 border-gray-300 rounded h-4 w-4"
1033
820
  }),
1034
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("label", {
821
+ /* @__PURE__ */ jsxRuntime.jsx("label", {
1035
822
  htmlFor: "show_again_check",
1036
823
  className: "dark:text-gray-200 text-gray-700",
1037
824
  children: "Don't show again"
1038
825
  })
1039
826
  ]
1040
827
  }) : null,
1041
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", {
828
+ /* @__PURE__ */ jsxRuntime.jsx("div", {
1042
829
  className: "mt-4 flex items-center justify-end space-x-4 z-10",
1043
- children: isSingleAction ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Button_default, {
830
+ children: isSingleAction ? /* @__PURE__ */ jsxRuntime.jsx(Button_default, {
1044
831
  type: "button",
1045
832
  kind: buttonColor,
1046
833
  onClick: function() {
@@ -1048,12 +835,12 @@ var BottomAlert = function(param) {
1048
835
  dismiss();
1049
836
  },
1050
837
  children: confirmText || "Okay"
1051
- }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", {
838
+ }) : /* @__PURE__ */ jsxRuntime.jsxs("div", {
1052
839
  className: "w-1/3 flex justify-end space-x-4",
1053
840
  children: [
1054
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", {
841
+ /* @__PURE__ */ jsxRuntime.jsx("div", {
1055
842
  className: "w-full flex flex-col",
1056
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Button_default, {
843
+ children: /* @__PURE__ */ jsxRuntime.jsx(Button_default, {
1057
844
  type: "button",
1058
845
  kind: "secondary",
1059
846
  onClick: function() {
@@ -1063,9 +850,9 @@ var BottomAlert = function(param) {
1063
850
  children: cancelText || "Cancel"
1064
851
  })
1065
852
  }),
1066
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", {
853
+ /* @__PURE__ */ jsxRuntime.jsx("div", {
1067
854
  className: "w-full flex flex-col",
1068
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Button_default, {
855
+ children: /* @__PURE__ */ jsxRuntime.jsx(Button_default, {
1069
856
  type: "button",
1070
857
  kind: buttonColor,
1071
858
  onClick: function() {
@@ -1083,60 +870,53 @@ var BottomAlert = function(param) {
1083
870
  })
1084
871
  })
1085
872
  });
1086
- };
1087
- var BAWrapper = function(props) {
873
+ }, "BottomAlert");
874
+ var BAWrapper = /* @__PURE__ */ __name(function(props) {
1088
875
  if (!props.isVisible) return null;
1089
- return import_react_dom2.default.createPortal(/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(BottomAlert, _object_spread({}, props)), document.body);
1090
- };
876
+ return ReactDOM__default.default.createPortal(/* @__PURE__ */ jsxRuntime.jsx(BottomAlert, _object_spread({}, props)), document.body);
877
+ }, "BAWrapper");
1091
878
  var BottomAlert_default = BAWrapper;
1092
- // src/Common/IconInfo.tsx
1093
- var import_clsx6 = __toESM(require("clsx"));
1094
- // src/Common/Tippy.tsx
1095
- var import_react5 = require("react");
1096
- var import_react6 = require("@floating-ui/react");
1097
- var import_clsx5 = __toESM(require("clsx"));
1098
- var import_jsx_runtime17 = require("react/jsx-runtime");
1099
- var Tippy = function(param) {
879
+ var Tippy = /* @__PURE__ */ __name(function(param) {
1100
880
  var children = param.children, content = param.content, _param_placement = param.placement, placement = _param_placement === void 0 ? "top" : _param_placement, _param_className = param.className, className = _param_className === void 0 ? "" : _param_className, _param_wrapperClassname = param.wrapperClassname, wrapperClassname = _param_wrapperClassname === void 0 ? "" : _param_wrapperClassname, _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, tmp = param.arrow, useArrow = tmp === void 0 ? false : tmp, visible = param.visible;
1101
- var _ref = _sliced_to_array((0, import_react5.useState)(false), 2), isOpen = _ref[0], setIsOpen = _ref[1];
1102
- var arrowRef = (0, import_react5.useRef)(null);
1103
- (0, import_react5.useEffect)(function() {
881
+ var _react_useState = _sliced_to_array(react.useState(false), 2), isOpen = _react_useState[0], setIsOpen = _react_useState[1];
882
+ var arrowRef = react.useRef(null);
883
+ react.useEffect(function() {
1104
884
  if (visible) {
1105
885
  setIsOpen(true);
1106
886
  }
1107
887
  }, [
1108
888
  visible
1109
889
  ]);
1110
- var _ref1 = (0, import_react6.useFloating)({
890
+ var _react$1_useFloating = react$1.useFloating({
1111
891
  placement: placement,
1112
892
  open: isOpen,
1113
893
  onOpenChange: setIsOpen,
1114
894
  middleware: [
1115
- (0, import_react6.offset)(8),
1116
- (0, import_react6.flip)(),
1117
- (0, import_react6.shift)(),
1118
- (0, import_react6.arrow)({
895
+ react$1.offset(8),
896
+ react$1.flip(),
897
+ react$1.shift(),
898
+ react$1.arrow({
1119
899
  element: arrowRef
1120
900
  })
1121
901
  ]
1122
- }), x = _ref1.x, y = _ref1.y, strategy = _ref1.strategy, refs = _ref1.refs, context = _ref1.context;
1123
- var hover = (0, import_react6.useHover)(context, {
902
+ }), x = _react$1_useFloating.x, y = _react$1_useFloating.y, strategy = _react$1_useFloating.strategy, refs = _react$1_useFloating.refs, context = _react$1_useFloating.context;
903
+ var hover = react$1.useHover(context, {
1124
904
  enabled: !disabled
1125
905
  });
1126
- var dismiss = (0, import_react6.useDismiss)(context);
1127
- var role = (0, import_react6.useRole)(context);
1128
- var _ref2 = (0, import_react6.useInteractions)([
906
+ var dismiss = react$1.useDismiss(context);
907
+ var role = react$1.useRole(context);
908
+ var _react$1_useInteractions = react$1.useInteractions([
1129
909
  hover,
1130
910
  dismiss,
1131
911
  role
1132
- ]), getReferenceProps = _ref2.getReferenceProps, getFloatingProps = _ref2.getFloatingProps;
1133
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, {
912
+ ]), getReferenceProps = _react$1_useInteractions.getReferenceProps, getFloatingProps = _react$1_useInteractions.getFloatingProps;
913
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
1134
914
  children: [
1135
- isOpen && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_react6.FloatingPortal, {
915
+ isOpen && /* @__PURE__ */ jsxRuntime.jsxs(react$1.FloatingPortal, {
1136
916
  children: [
1137
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", _object_spread_props(_object_spread({
917
+ /* @__PURE__ */ jsxRuntime.jsx("div", _object_spread_props(_object_spread({
1138
918
  ref: refs.setFloating,
1139
- className: (0, import_clsx5.default)("".concat(className || tippyClassname))
919
+ className: clsx__default.default("".concat(className || tippyClassname))
1140
920
  }, getFloatingProps()), {
1141
921
  style: {
1142
922
  position: strategy,
@@ -1147,7 +927,7 @@ var Tippy = function(param) {
1147
927
  },
1148
928
  children: content
1149
929
  })),
1150
- useArrow && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react6.FloatingArrow, {
930
+ useArrow && /* @__PURE__ */ jsxRuntime.jsx(react$1.FloatingArrow, {
1151
931
  ref: arrowRef,
1152
932
  context: context,
1153
933
  className: "fill-gray-900",
@@ -1155,7 +935,7 @@ var Tippy = function(param) {
1155
935
  })
1156
936
  ]
1157
937
  }),
1158
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", _object_spread_props(_object_spread({
938
+ /* @__PURE__ */ jsxRuntime.jsx("div", _object_spread_props(_object_spread({
1159
939
  ref: refs.setReference
1160
940
  }, getReferenceProps()), {
1161
941
  className: wrapperClassname,
@@ -1163,52 +943,45 @@ var Tippy = function(param) {
1163
943
  }))
1164
944
  ]
1165
945
  });
1166
- };
946
+ }, "Tippy");
1167
947
  var Tippy_default = Tippy;
1168
- // src/Common/IconInfo.tsx
1169
- var import_jsx_runtime18 = require("react/jsx-runtime");
1170
- var IconInfo = function(param) {
948
+ var IconInfo = /* @__PURE__ */ __name(function(param) {
1171
949
  var content = param.content, icon = param.icon, number = param.number, color = param.color;
1172
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", {
950
+ return /* @__PURE__ */ jsxRuntime.jsx("div", {
1173
951
  className: "flex flex-shrink-0 items-center justify-center w-8 h-8 rounded-full bg-slate-400 dark:bg-slate-600 dark:border dark:border-white",
1174
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Tippy_default, {
952
+ children: /* @__PURE__ */ jsxRuntime.jsx(Tippy_default, {
1175
953
  className: tippyClassname,
1176
954
  content: content,
1177
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", {
955
+ children: /* @__PURE__ */ jsxRuntime.jsxs("div", {
1178
956
  className: "relative",
1179
957
  children: [
1180
958
  icon,
1181
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", {
1182
- className: (0, import_clsx6.default)("absolute -bottom-1", number > 9 ? number > 99 ? number > 999 ? "w-8 h-8 -right-6 -bottom-3" : "w-6 h-6 -right-5 -bottom-2" : "w-5 h-5 -right-3" : "w-4 -right-3", "flex justify-center items-center text-xs font-sans rounded-full text-white", color || "bg-secondary"),
959
+ /* @__PURE__ */ jsxRuntime.jsx("p", {
960
+ className: clsx__default.default("absolute -bottom-1", number > 9 ? number > 99 ? number > 999 ? "w-8 h-8 -right-6 -bottom-3" : "w-6 h-6 -right-5 -bottom-2" : "w-5 h-5 -right-3" : "w-4 -right-3", "flex justify-center items-center text-xs font-sans rounded-full text-white", color || "bg-secondary"),
1183
961
  children: number
1184
962
  })
1185
963
  ]
1186
964
  })
1187
965
  })
1188
966
  });
1189
- };
967
+ }, "IconInfo");
1190
968
  var IconInfo_default = IconInfo;
1191
- // src/Icons/XIcon.tsx
1192
- var import_jsx_runtime19 = require("react/jsx-runtime");
1193
- var XIcon = function(param) {
969
+ var XIcon = /* @__PURE__ */ __name(function(param) {
1194
970
  var className = param.className;
1195
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("svg", {
971
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", {
1196
972
  xmlns: "http://www.w3.org/2000/svg",
1197
973
  className: className || "h-5 w-5",
1198
974
  viewBox: "0 0 20 20",
1199
975
  fill: "currentColor",
1200
- children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", {
976
+ children: /* @__PURE__ */ jsxRuntime.jsx("path", {
1201
977
  fillRule: "evenodd",
1202
978
  d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
1203
979
  clipRule: "evenodd"
1204
980
  })
1205
981
  });
1206
- };
982
+ }, "XIcon");
1207
983
  var XIcon_default = XIcon;
1208
- // src/Common/Modal.tsx
1209
- var import_clsx7 = __toESM(require("clsx"));
1210
- var import_jsx_runtime20 = require("react/jsx-runtime");
1211
- var Modal = function(_param) {
984
+ var Modal = /* @__PURE__ */ __name(function(_param) {
1212
985
  var visible = _param.visible, children = _param.children, fullscreen = _param.fullscreen, displayDark = _param.displayDark, dismissLink = _param.dismissLink, bgOpacity = _param.bgOpacity, onDismissed = _param.onDismissed, _param_dismissable = _param.dismissable, dismissable = _param_dismissable === void 0 ? true : _param_dismissable, _param_dismissOnBackdropClick = _param.dismissOnBackdropClick, dismissOnBackdropClick = _param_dismissOnBackdropClick === void 0 ? true : _param_dismissOnBackdropClick, style = _param.style, props = _object_without_properties(_param, [
1213
986
  "visible",
1214
987
  "children",
@@ -1222,37 +995,37 @@ var Modal = function(_param) {
1222
995
  "style"
1223
996
  ]);
1224
997
  if (!visible) return null;
1225
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Overlay_default, _object_spread_props(_object_spread({
998
+ return /* @__PURE__ */ jsxRuntime.jsx(Overlay_default, _object_spread_props(_object_spread({
1226
999
  visible: visible,
1227
1000
  onClick: dismissOnBackdropClick ? onDismissed : void 0,
1228
1001
  isDark: displayDark,
1229
1002
  withContainer: true
1230
1003
  }, props), {
1231
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", {
1232
- className: (0, import_clsx7.default)(displayDark && "dark", "bg-slate-900/20 fixed inset-0 flex items-center justify-center"),
1004
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
1005
+ className: clsx__default.default(displayDark && "dark", "bg-slate-900/20 fixed inset-0 flex items-center justify-center"),
1233
1006
  style: {
1234
1007
  zIndex: 1e4
1235
1008
  },
1236
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", {
1237
- className: (0, import_clsx7.default)("relative mx-1 w-full md:mx-auto md:w-3/4 lg:w-1/2", fullscreen && "md:w-5/6 lg:w-5/6"),
1009
+ children: /* @__PURE__ */ jsxRuntime.jsxs("div", {
1010
+ className: clsx__default.default("relative mx-1 w-full md:mx-auto md:w-3/4 lg:w-1/2", fullscreen && "md:w-5/6 lg:w-5/6"),
1238
1011
  children: [
1239
- dismissLink ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("a", {
1012
+ dismissLink ? /* @__PURE__ */ jsxRuntime.jsx("a", {
1240
1013
  href: dismissLink,
1241
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", {
1014
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
1242
1015
  onClick: onDismissed,
1243
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(XIcon_default, {
1016
+ children: /* @__PURE__ */ jsxRuntime.jsx(XIcon_default, {
1244
1017
  className: "absolute h-5 w-5 top-4 sm:top-8 right-4 transition-colors cursor-pointer duration-75 hover:text-blue-500 dark:text-gray-200 dark:hover:text-blue-500"
1245
1018
  })
1246
1019
  })
1247
- }) : dismissable ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("button", {
1020
+ }) : dismissable ? /* @__PURE__ */ jsxRuntime.jsx("button", {
1248
1021
  className: "absolute top-4 sm:top-8 right-4 transition-colors cursor-pointer duration-75 hover:text-blue-500 dark:text-gray-200 dark:hover:text-blue-500",
1249
1022
  type: "button",
1250
1023
  onClick: onDismissed,
1251
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(XIcon_default, {
1024
+ children: /* @__PURE__ */ jsxRuntime.jsx(XIcon_default, {
1252
1025
  className: "h-5 w-5"
1253
1026
  })
1254
1027
  }) : null,
1255
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", {
1028
+ /* @__PURE__ */ jsxRuntime.jsx("div", {
1256
1029
  className: "my-1 sm:mt-16 bg-white dark:bg-slate-900 shadow-lg border border-gray-100 dark:border-none rounded-xl overflow-x-visible overflow-y-visible no-scrollbar",
1257
1030
  onClick: function(e) {
1258
1031
  return e.stopPropagation();
@@ -1260,9 +1033,9 @@ var Modal = function(_param) {
1260
1033
  style: _object_spread({
1261
1034
  maxHeight: "calc(100vh - 6rem)"
1262
1035
  }, style),
1263
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", {
1036
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
1264
1037
  className: "p-4 sm:p-10",
1265
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", {
1038
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
1266
1039
  className: "mt-8 sm:mt-0",
1267
1040
  children: children
1268
1041
  })
@@ -1272,15 +1045,12 @@ var Modal = function(_param) {
1272
1045
  })
1273
1046
  })
1274
1047
  }));
1275
- };
1048
+ }, "Modal");
1276
1049
  var Modal_default = Modal;
1277
- // src/Common/NoticeBox.tsx
1278
- var import_react7 = require("react");
1279
- var import_jsx_runtime21 = require("react/jsx-runtime");
1280
- var NoticeBox = function(param) {
1050
+ var NoticeBox = /* @__PURE__ */ __name(function(param) {
1281
1051
  var children = param.children, type = param.type, isDismissible = param.isDismissible, isVisible = param.isVisible, onDismiss = param.onDismiss;
1282
- var _ref = _sliced_to_array((0, import_react7.useState)(true), 2), visible = _ref[0], setVisible = _ref[1];
1283
- var styles = (0, import_react7.useMemo)(function() {
1052
+ var _react_useState = _sliced_to_array(react.useState(true), 2), visible = _react_useState[0], setVisible = _react_useState[1];
1053
+ var styles = react.useMemo(function() {
1284
1054
  var base = "relative text-base rounded-md p-2 ";
1285
1055
  if (!visible) return "hidden";
1286
1056
  switch(type){
@@ -1297,21 +1067,21 @@ var NoticeBox = function(param) {
1297
1067
  type,
1298
1068
  visible
1299
1069
  ]);
1300
- (0, import_react7.useEffect)(function() {
1070
+ react.useEffect(function() {
1301
1071
  setVisible(isVisible);
1302
1072
  }, [
1303
1073
  isVisible
1304
1074
  ]);
1305
1075
  if (!isVisible) return null;
1306
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", {
1076
+ return /* @__PURE__ */ jsxRuntime.jsx("div", {
1307
1077
  style: {
1308
1078
  zIndex: 100
1309
1079
  },
1310
1080
  className: styles,
1311
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", {
1081
+ children: /* @__PURE__ */ jsxRuntime.jsxs("div", {
1312
1082
  className: "relative",
1313
1083
  children: [
1314
- isDismissible && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("button", {
1084
+ isDismissible && /* @__PURE__ */ jsxRuntime.jsx("button", {
1315
1085
  type: "button",
1316
1086
  onClick: function() {
1317
1087
  setVisible(function(s) {
@@ -1320,7 +1090,7 @@ var NoticeBox = function(param) {
1320
1090
  onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
1321
1091
  },
1322
1092
  className: "absolute bottom-1 right-1 transition-colors cursor-pointer duration-75 hover:text-blue-500",
1323
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(XIcon_default, {
1093
+ children: /* @__PURE__ */ jsxRuntime.jsx(XIcon_default, {
1324
1094
  className: "h-5 w-5"
1325
1095
  })
1326
1096
  }),
@@ -1328,59 +1098,53 @@ var NoticeBox = function(param) {
1328
1098
  ]
1329
1099
  })
1330
1100
  });
1331
- };
1101
+ }, "NoticeBox");
1332
1102
  var NoticeBox_default = NoticeBox;
1333
- // src/Icons/StarIcon.tsx
1334
- var import_jsx_runtime22 = require("react/jsx-runtime");
1335
- var StarIcon = function(param) {
1103
+ var StarIcon = /* @__PURE__ */ __name(function(param) {
1336
1104
  var className = param.className, percentage = param.percentage, color = param.color;
1337
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("svg", {
1105
+ return /* @__PURE__ */ jsxRuntime.jsxs("svg", {
1338
1106
  xmlns: "http://www.w3.org/2000/svg",
1339
1107
  className: className || "h-5 w-5",
1340
1108
  viewBox: "0 0 20 20",
1341
1109
  fill: "currentColor",
1342
1110
  children: [
1343
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("defs", {
1344
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("linearGradient", {
1111
+ /* @__PURE__ */ jsxRuntime.jsx("defs", {
1112
+ children: /* @__PURE__ */ jsxRuntime.jsxs("linearGradient", {
1345
1113
  id: "grad",
1346
1114
  children: [
1347
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("stop", {
1115
+ /* @__PURE__ */ jsxRuntime.jsx("stop", {
1348
1116
  offset: "".concat((percentage || 0.5) * 100, "%"),
1349
1117
  "stop-color": color ? color : "#4b5563"
1350
1118
  }),
1351
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("stop", {
1119
+ /* @__PURE__ */ jsxRuntime.jsx("stop", {
1352
1120
  offset: "".concat(100 - (percentage || 0.5) * 100, "%"),
1353
1121
  "stop-color": "white"
1354
1122
  })
1355
1123
  ]
1356
1124
  })
1357
1125
  }),
1358
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", {
1126
+ /* @__PURE__ */ jsxRuntime.jsx("path", {
1359
1127
  fill: "url(#grad)",
1360
1128
  d: "M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"
1361
1129
  })
1362
1130
  ]
1363
1131
  });
1364
- };
1132
+ }, "StarIcon");
1365
1133
  var StarIcon_default = StarIcon;
1366
- // src/Icons/StarIconSolid.tsx
1367
- var import_jsx_runtime23 = require("react/jsx-runtime");
1368
- var StartIconSolid = function(param) {
1134
+ var StartIconSolid = /* @__PURE__ */ __name(function(param) {
1369
1135
  var className = param.className;
1370
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("svg", {
1136
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", {
1371
1137
  xmlns: "http://www.w3.org/2000/svg",
1372
1138
  className: className || "h-5 w-5",
1373
1139
  viewBox: "0 0 20 20",
1374
1140
  fill: "currentColor",
1375
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", {
1141
+ children: /* @__PURE__ */ jsxRuntime.jsx("path", {
1376
1142
  d: "M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"
1377
1143
  })
1378
1144
  });
1379
- };
1145
+ }, "StartIconSolid");
1380
1146
  var StarIconSolid_default = StartIconSolid;
1381
- // src/Common/RatingStars.tsx
1382
- var import_jsx_runtime24 = require("react/jsx-runtime");
1383
- var RatingStars = function(param) {
1147
+ var RatingStars = /* @__PURE__ */ __name(function(param) {
1384
1148
  var avgRating = param.avgRating, large = param.large;
1385
1149
  var icons = [
1386
1150
  1,
@@ -1390,52 +1154,48 @@ var RatingStars = function(param) {
1390
1154
  5
1391
1155
  ].map(function(el) {
1392
1156
  if (avgRating === 0) {
1393
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(StarIconSolid_default, {
1157
+ return /* @__PURE__ */ jsxRuntime.jsx(StarIconSolid_default, {
1394
1158
  className: "".concat(large ? "h-5 w-5" : "h-3 w-3", " text-gray-200 dark:text-gray-400")
1395
1159
  }, "rating_star_".concat(el));
1396
1160
  }
1397
1161
  if (Number.isInteger(avgRating)) {
1398
1162
  if (el <= avgRating) {
1399
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(StarIconSolid_default, {
1163
+ return /* @__PURE__ */ jsxRuntime.jsx(StarIconSolid_default, {
1400
1164
  className: "".concat(large ? "h-5 w-5" : "h-3 w-3", " text-blue-500")
1401
1165
  }, "rating_star_".concat(el));
1402
1166
  }
1403
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(StarIconSolid_default, {
1167
+ return /* @__PURE__ */ jsxRuntime.jsx(StarIconSolid_default, {
1404
1168
  className: "".concat(large ? "h-5 w-5" : "h-3 w-3", " text-gray-200 dark:text-gray-400")
1405
1169
  }, "rating_star_".concat(el));
1406
1170
  }
1407
1171
  var whole = Math.floor(avgRating);
1408
1172
  if (el <= whole) {
1409
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(StarIconSolid_default, {
1173
+ return /* @__PURE__ */ jsxRuntime.jsx(StarIconSolid_default, {
1410
1174
  className: "".concat(large ? "h-5 w-5" : "h-3 w-3", " text-blue-500")
1411
1175
  }, "rating_star_".concat(el));
1412
1176
  }
1413
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(StarIcon_default, {
1177
+ return /* @__PURE__ */ jsxRuntime.jsx(StarIcon_default, {
1414
1178
  percentage: avgRating - whole,
1415
1179
  color: "#00b4d8",
1416
1180
  className: "".concat(large ? "h-5 w-5" : "h-3 w-3")
1417
1181
  }, "rating_star_".concat(el));
1418
1182
  });
1419
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Tippy_default, {
1183
+ return /* @__PURE__ */ jsxRuntime.jsx(Tippy_default, {
1420
1184
  content: avgRating === 0 ? "No ratings" : "Average Rating " + avgRating,
1421
1185
  className: "bg-gray-800 opacity-90 text-white rounded-md px-2 py-1 cursor-pointer h-fit",
1422
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", {
1186
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
1423
1187
  className: "flex items-center space-x-0 justify-start",
1424
1188
  children: icons
1425
1189
  })
1426
1190
  });
1427
- };
1191
+ }, "RatingStars");
1428
1192
  var RatingStars_default = RatingStars;
1429
- // src/Common/Slider.tsx
1430
- var import_react8 = require("react");
1431
- var import_use_debounce = require("use-debounce");
1432
- var import_jsx_runtime25 = require("react/jsx-runtime");
1433
- var Slider = function(param) {
1193
+ var Slider = /* @__PURE__ */ __name(function(param) {
1434
1194
  var min = param.min, max = param.max, step = param.step, value = param.value, onChange = param.onChange;
1435
- var handleChange = function(event) {
1195
+ var handleChange = /* @__PURE__ */ __name(function(event) {
1436
1196
  onChange(parseFloat(event.target.value));
1437
- };
1438
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("input", {
1197
+ }, "handleChange");
1198
+ return /* @__PURE__ */ jsxRuntime.jsx("input", {
1439
1199
  type: "range",
1440
1200
  min: min,
1441
1201
  max: max,
@@ -1444,17 +1204,17 @@ var Slider = function(param) {
1444
1204
  onChange: handleChange,
1445
1205
  className: "w-full h-2 rounded-lg range-input"
1446
1206
  });
1447
- };
1448
- var DebouncedSlider = function(param) {
1207
+ }, "Slider");
1208
+ var DebouncedSlider = /* @__PURE__ */ __name(function(param) {
1449
1209
  var min = param.min, max = param.max, handleUpdate = param.handleUpdate, initialValue = param.initialValue;
1450
- var _ref = _sliced_to_array((0, import_react8.useState)(initialValue), 2), value = _ref[0], setValue = _ref[1];
1451
- var debouncedUpdate = (0, import_use_debounce.useDebouncedCallback)(function(v) {
1210
+ var _react_useState = _sliced_to_array(react.useState(initialValue), 2), value = _react_useState[0], setValue = _react_useState[1];
1211
+ var debouncedUpdate = useDebounce.useDebouncedCallback(function(v) {
1452
1212
  handleUpdate(v);
1453
1213
  }, 120, {
1454
1214
  trailing: true,
1455
1215
  leading: false
1456
1216
  });
1457
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Slider, {
1217
+ return /* @__PURE__ */ jsxRuntime.jsx(Slider, {
1458
1218
  min: min,
1459
1219
  max: max,
1460
1220
  step: 1,
@@ -1464,35 +1224,30 @@ var DebouncedSlider = function(param) {
1464
1224
  debouncedUpdate(v);
1465
1225
  }
1466
1226
  });
1467
- };
1227
+ }, "DebouncedSlider");
1468
1228
  Slider.Debounced = DebouncedSlider;
1469
1229
  var Slider_default = Slider;
1470
- // src/Common/ToggleSwitch.tsx
1471
- var import_formik3 = require("formik");
1472
- var import_framer_motion3 = require("framer-motion");
1473
- var import_clsx8 = __toESM(require("clsx"));
1474
- var import_jsx_runtime26 = require("react/jsx-runtime");
1475
- var Formik = function(param) {
1230
+ var Formik = /* @__PURE__ */ __name(function(param) {
1476
1231
  var label = param.label, name = param.name;
1477
- var _ref = _sliced_to_array((0, import_formik3.useField)(name), 3), value = _ref[0].value, setValue = _ref[2].setValue;
1478
- var handleChange = function(e) {
1232
+ var _formik_useField = _sliced_to_array(formik.useField(name), 3), value = _formik_useField[0].value, setValue = _formik_useField[2].setValue;
1233
+ var handleChange = /* @__PURE__ */ __name(function(e) {
1479
1234
  setValue(e.target.checked);
1480
- };
1481
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("label", {
1235
+ }, "handleChange");
1236
+ return /* @__PURE__ */ jsxRuntime.jsxs("label", {
1482
1237
  className: "flex items-center space-x-2 cursor-pointer",
1483
1238
  children: [
1484
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", {
1239
+ /* @__PURE__ */ jsxRuntime.jsxs("div", {
1485
1240
  className: "relative",
1486
1241
  children: [
1487
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("input", {
1242
+ /* @__PURE__ */ jsxRuntime.jsx("input", {
1488
1243
  type: "checkbox",
1489
1244
  className: "opacity-0 absolute",
1490
1245
  checked: value,
1491
1246
  onChange: handleChange
1492
1247
  }),
1493
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", {
1494
- className: (0, import_clsx8.default)("w-10 h-6 rounded-full p-[4px] transition-colors duration-300", value ? "bg-[#00b4d8]" : "bg-[#64748b]"),
1495
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_framer_motion3.motion.div, {
1248
+ /* @__PURE__ */ jsxRuntime.jsx("div", {
1249
+ className: clsx__default.default("w-10 h-6 rounded-full p-[4px] transition-colors duration-300", value ? "bg-[#00b4d8]" : "bg-[#64748b]"),
1250
+ children: /* @__PURE__ */ jsxRuntime.jsx(framerMotion.motion.div, {
1496
1251
  className: "w-4 h-4 bg-white rounded-full absolute top-1",
1497
1252
  initial: false,
1498
1253
  animate: {
@@ -1507,33 +1262,33 @@ var Formik = function(param) {
1507
1262
  })
1508
1263
  ]
1509
1264
  }),
1510
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", {
1265
+ /* @__PURE__ */ jsxRuntime.jsx("span", {
1511
1266
  className: "text-sm font-medium text-gray-800 dark:text-gray-200",
1512
1267
  children: label
1513
1268
  })
1514
1269
  ]
1515
1270
  });
1516
- };
1517
- var ToggleSwitch = function(param) {
1271
+ }, "Formik");
1272
+ var ToggleSwitch = /* @__PURE__ */ __name(function(param) {
1518
1273
  var label = param.label, onChange = param.onChange, value = param.value;
1519
- var handleChange = function(e) {
1274
+ var handleChange = /* @__PURE__ */ __name(function(e) {
1520
1275
  onChange(e.target.checked);
1521
- };
1522
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("label", {
1276
+ }, "handleChange");
1277
+ return /* @__PURE__ */ jsxRuntime.jsxs("label", {
1523
1278
  className: "flex items-center space-x-2 cursor-pointer",
1524
1279
  children: [
1525
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", {
1280
+ /* @__PURE__ */ jsxRuntime.jsxs("div", {
1526
1281
  className: "relative",
1527
1282
  children: [
1528
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("input", {
1283
+ /* @__PURE__ */ jsxRuntime.jsx("input", {
1529
1284
  type: "checkbox",
1530
1285
  className: "opacity-0 absolute",
1531
1286
  checked: value,
1532
1287
  onChange: handleChange
1533
1288
  }),
1534
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", {
1535
- className: (0, import_clsx8.default)("w-10 h-6 rounded-full p-[4px] transition-colors duration-300", value ? "bg-[#00b4d8]" : "bg-[#64748b]"),
1536
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_framer_motion3.motion.div, {
1289
+ /* @__PURE__ */ jsxRuntime.jsx("div", {
1290
+ className: clsx__default.default("w-10 h-6 rounded-full p-[4px] transition-colors duration-300", value ? "bg-[#00b4d8]" : "bg-[#64748b]"),
1291
+ children: /* @__PURE__ */ jsxRuntime.jsx(framerMotion.motion.div, {
1537
1292
  className: "w-4 h-4 bg-white rounded-full absolute top-1",
1538
1293
  initial: false,
1539
1294
  animate: {
@@ -1548,64 +1303,55 @@ var ToggleSwitch = function(param) {
1548
1303
  })
1549
1304
  ]
1550
1305
  }),
1551
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", {
1306
+ /* @__PURE__ */ jsxRuntime.jsx("span", {
1552
1307
  className: "text-sm font-medium text-gray-800 dark:text-gray-200",
1553
1308
  children: label
1554
1309
  })
1555
1310
  ]
1556
1311
  });
1557
- };
1312
+ }, "ToggleSwitch");
1558
1313
  ToggleSwitch.Formik = Formik;
1559
1314
  var ToggleSwitch_default = ToggleSwitch;
1560
- // src/Common/UserContentSwitcher.tsx
1561
- var import_framer_motion4 = require("framer-motion");
1562
- // src/Icons/PlusCircleIcon.tsx
1563
- var import_jsx_runtime27 = require("react/jsx-runtime");
1564
- var PlusCircleIcon = function(param) {
1315
+ var PlusCircleIcon = /* @__PURE__ */ __name(function(param) {
1565
1316
  var className = param.className;
1566
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("svg", {
1317
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", {
1567
1318
  xmlns: "http://www.w3.org/2000/svg",
1568
1319
  className: className || "h-5 w-5",
1569
1320
  fill: "none",
1570
1321
  viewBox: "0 0 24 24",
1571
1322
  stroke: "currentColor",
1572
1323
  strokeWidth: 2,
1573
- children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("path", {
1324
+ children: /* @__PURE__ */ jsxRuntime.jsx("path", {
1574
1325
  strokeLinecap: "round",
1575
1326
  strokeLinejoin: "round",
1576
1327
  d: "M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"
1577
1328
  })
1578
1329
  });
1579
- };
1330
+ }, "PlusCircleIcon");
1580
1331
  var PlusCircleIcon_default = PlusCircleIcon;
1581
- // src/Icons/ArrowCircleRight.tsx
1582
- var import_jsx_runtime28 = require("react/jsx-runtime");
1583
- var StartIconSolid2 = function(param) {
1332
+ var StartIconSolid2 = /* @__PURE__ */ __name(function(param) {
1584
1333
  var className = param.className;
1585
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("svg", {
1334
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", {
1586
1335
  xmlns: "http://www.w3.org/2000/svg",
1587
1336
  className: className || "h-5 w-5",
1588
1337
  fill: "none",
1589
1338
  viewBox: "0 0 24 24",
1590
1339
  stroke: "currentColor",
1591
1340
  strokeWidth: 2,
1592
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("path", {
1341
+ children: /* @__PURE__ */ jsxRuntime.jsx("path", {
1593
1342
  strokeLinecap: "round",
1594
1343
  strokeLinejoin: "round",
1595
1344
  d: "M13 9l3 3m0 0l-3 3m3-3H8m13 0a9 9 0 11-18 0 9 9 0 0118 0z"
1596
1345
  })
1597
1346
  });
1598
- };
1347
+ }, "StartIconSolid");
1599
1348
  var ArrowCircleRight_default = StartIconSolid2;
1600
- // src/Common/UserContentSwitcher.tsx
1601
- var import_clsx9 = __toESM(require("clsx"));
1602
- var import_jsx_runtime29 = require("react/jsx-runtime");
1603
- var UserContentSwitcher = function(param) {
1349
+ var UserContentSwitcher = /* @__PURE__ */ __name(function(param) {
1604
1350
  var Icon1 = param.icon1, Icon2 = param.icon2, setGalleryMode = param.setGalleryMode, galleryMode = param.galleryMode, title1 = param.title1, title2 = param.title2;
1605
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", {
1351
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", {
1606
1352
  className: "relative flex flex-row items-center my-2 bg-slate-100 dark:bg-slate-900 w-full h-14 rounded-lg",
1607
1353
  children: [
1608
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_framer_motion4.motion.div, {
1354
+ /* @__PURE__ */ jsxRuntime.jsx(framerMotion.motion.div, {
1609
1355
  className: "absolute w-1/2 h-11 rounded-md bg-white dark:bg-slate-600",
1610
1356
  animate: {
1611
1357
  x: galleryMode === title1.toLowerCase() ? "1%" : "99%"
@@ -1616,52 +1362,52 @@ var UserContentSwitcher = function(param) {
1616
1362
  stiffness: 200
1617
1363
  }
1618
1364
  }),
1619
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("button", {
1365
+ /* @__PURE__ */ jsxRuntime.jsxs("button", {
1620
1366
  onClick: function() {
1621
1367
  return setGalleryMode(title1.toLowerCase());
1622
1368
  },
1623
1369
  className: "py-2 flex flex-row w-1/2 justify-center items-center gap-1 z-10",
1624
1370
  children: [
1625
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", {
1626
- className: (0, import_clsx9.default)("truncate", {
1371
+ /* @__PURE__ */ jsxRuntime.jsx("span", {
1372
+ className: clsx__default.default("truncate", {
1627
1373
  "text-primary dark:text-blue-400": galleryMode === title1.toLowerCase(),
1628
1374
  "text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title1.toLowerCase()
1629
1375
  }),
1630
1376
  children: title1.toLocaleUpperCase()
1631
1377
  }),
1632
- Icon1 ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon1, {
1633
- className: (0, import_clsx9.default)("h-5 w-5", {
1378
+ Icon1 ? /* @__PURE__ */ jsxRuntime.jsx(Icon1, {
1379
+ className: clsx__default.default("h-5 w-5", {
1634
1380
  "text-primary dark:text-blue-400": galleryMode === title1.toLowerCase(),
1635
1381
  "text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title1.toLowerCase()
1636
1382
  })
1637
- }) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(PlusCircleIcon_default, {
1638
- className: (0, import_clsx9.default)("h-5 w-5", {
1383
+ }) : /* @__PURE__ */ jsxRuntime.jsx(PlusCircleIcon_default, {
1384
+ className: clsx__default.default("h-5 w-5", {
1639
1385
  "text-primary dark:text-blue-400": galleryMode === title1.toLowerCase(),
1640
1386
  "text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title1.toLowerCase()
1641
1387
  })
1642
1388
  })
1643
1389
  ]
1644
1390
  }),
1645
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("button", {
1391
+ /* @__PURE__ */ jsxRuntime.jsxs("button", {
1646
1392
  onClick: function() {
1647
1393
  return setGalleryMode(title2.toLowerCase());
1648
1394
  },
1649
1395
  className: "py-2 flex flex-row w-1/2 justify-center items-center gap-1 z-10",
1650
1396
  children: [
1651
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", {
1652
- className: (0, import_clsx9.default)("truncate", {
1397
+ /* @__PURE__ */ jsxRuntime.jsx("span", {
1398
+ className: clsx__default.default("truncate", {
1653
1399
  "text-primary dark:text-blue-400": galleryMode === title2.toLowerCase(),
1654
1400
  "text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title2.toLowerCase()
1655
1401
  }),
1656
1402
  children: title2.toLocaleUpperCase()
1657
1403
  }),
1658
- Icon2 ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon2, {
1659
- className: (0, import_clsx9.default)("h-5 w-5", {
1404
+ Icon2 ? /* @__PURE__ */ jsxRuntime.jsx(Icon2, {
1405
+ className: clsx__default.default("h-5 w-5", {
1660
1406
  "text-primary dark:text-blue-400": galleryMode === title2.toLowerCase(),
1661
1407
  "text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title2.toLowerCase()
1662
1408
  })
1663
- }) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ArrowCircleRight_default, {
1664
- className: (0, import_clsx9.default)("h-5 w-5", {
1409
+ }) : /* @__PURE__ */ jsxRuntime.jsx(ArrowCircleRight_default, {
1410
+ className: clsx__default.default("h-5 w-5", {
1665
1411
  "text-primary dark:text-blue-400": galleryMode === title2.toLowerCase(),
1666
1412
  "text-slate-500 dark:text-slate-400 opacity-90": galleryMode !== title2.toLowerCase()
1667
1413
  })
@@ -1670,22 +1416,20 @@ var UserContentSwitcher = function(param) {
1670
1416
  })
1671
1417
  ]
1672
1418
  });
1673
- };
1419
+ }, "UserContentSwitcher");
1674
1420
  var UserContentSwitcher_default = UserContentSwitcher;
1675
- // src/ProgressBar/ProgressBarSimple.tsx
1676
- var import_jsx_runtime30 = require("react/jsx-runtime");
1677
- var ProgressBarSimple = function(param) {
1421
+ var ProgressBarSimple = /* @__PURE__ */ __name(function(param) {
1678
1422
  var progress = param.progress, color = param.color, _param_height = param.height, height = _param_height === void 0 ? 10 : _param_height, _param_backgroundColor = param.backgroundColor, backgroundColor = _param_backgroundColor === void 0 ? "#ccc" : _param_backgroundColor;
1679
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", {
1423
+ return /* @__PURE__ */ jsxRuntime.jsx("div", {
1680
1424
  className: "w-full",
1681
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", {
1425
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
1682
1426
  className: "w-full overflow-hidden transition-all duration-150 ease-in-out",
1683
1427
  style: {
1684
1428
  backgroundColor: backgroundColor,
1685
1429
  height: "".concat(height, "px"),
1686
1430
  borderRadius: "".concat(height / 2, "px")
1687
1431
  },
1688
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", {
1432
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
1689
1433
  className: "transition-all duration-150 ease-in-out",
1690
1434
  style: {
1691
1435
  width: "".concat(progress, "%"),
@@ -1696,20 +1440,17 @@ var ProgressBarSimple = function(param) {
1696
1440
  })
1697
1441
  })
1698
1442
  });
1699
- };
1443
+ }, "ProgressBarSimple");
1700
1444
  var ProgressBarSimple_default = ProgressBarSimple;
1701
- // src/ProgressBar/ProgressBar.tsx
1702
- var import_clsx10 = __toESM(require("clsx"));
1703
- var import_jsx_runtime31 = require("react/jsx-runtime");
1704
- var ProgressBar = function(param) {
1445
+ var ProgressBar = /* @__PURE__ */ __name(function(param) {
1705
1446
  var progress = param.progress;
1706
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", {
1707
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", {
1447
+ return /* @__PURE__ */ jsxRuntime.jsx("div", {
1448
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
1708
1449
  className: "-mt-2 mb-6",
1709
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", {
1450
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
1710
1451
  className: "bg-gray-100 rounded-full h-2",
1711
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", {
1712
- className: (0, import_clsx10.default)("rounded-full h-2", progress === 100 ? "bg-green-400" : "bg-gray-100"),
1452
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
1453
+ className: clsx__default.default("rounded-full h-2", progress === 100 ? "bg-green-400" : "bg-gray-100"),
1713
1454
  style: {
1714
1455
  width: "".concat(progress, "%"),
1715
1456
  minWidth: "100%",
@@ -1719,26 +1460,26 @@ var ProgressBar = function(param) {
1719
1460
  })
1720
1461
  })
1721
1462
  });
1722
- };
1723
- var ProgressStepBar = function(param) {
1463
+ }, "ProgressBar");
1464
+ var ProgressStepBar = /* @__PURE__ */ __name(function(param) {
1724
1465
  var steps = param.steps, stepIndex = param.stepIndex, onStepClick = param.onStepClick, color = param.color;
1725
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", {
1466
+ return /* @__PURE__ */ jsxRuntime.jsx("div", {
1726
1467
  className: "flex w-full items-center space-x-0.5 -mt-1 overflow-hidden",
1727
1468
  children: steps.map(function(el, i) {
1728
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", {
1469
+ return /* @__PURE__ */ jsxRuntime.jsx("div", {
1729
1470
  className: "flex-1 relative",
1730
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Tippy_default, {
1471
+ children: /* @__PURE__ */ jsxRuntime.jsx(Tippy_default, {
1731
1472
  content: el.label,
1732
1473
  className: tippyClassname,
1733
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", {
1474
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
1734
1475
  className: "mb-4",
1735
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", {
1476
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
1736
1477
  onClick: function() {
1737
1478
  return onStepClick === null || onStepClick === void 0 ? void 0 : onStepClick(i);
1738
1479
  },
1739
1480
  className: "cursor-pointer bg-gray-100 rounded-full h-2 overflow-hidden",
1740
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", {
1741
- className: (0, import_clsx10.default)("cursor-pointer rounded-full h-2", stepIndex >= i ? "bg-green-400" : "bg-gray-100"),
1481
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
1482
+ className: clsx__default.default("cursor-pointer rounded-full h-2", stepIndex >= i ? "bg-green-400" : "bg-gray-100"),
1742
1483
  style: {
1743
1484
  width: "".concat(stepIndex >= i ? 100 : 0, "%"),
1744
1485
  transition: "width 0.3s ease"
@@ -1750,12 +1491,10 @@ var ProgressStepBar = function(param) {
1750
1491
  }, "index_progress_".concat(el.label));
1751
1492
  })
1752
1493
  });
1753
- };
1494
+ }, "ProgressStepBar");
1754
1495
  ProgressBar.Step = ProgressStepBar;
1755
1496
  var ProgressBar_default = ProgressBar;
1756
- // src/ProgressBar/CircleProgress.tsx
1757
- var import_jsx_runtime32 = require("react/jsx-runtime");
1758
- var CircleProgress = function(param) {
1497
+ var CircleProgress = /* @__PURE__ */ __name(function(param) {
1759
1498
  var twColor = param.twColor, percentage = param.percentage, radius = param.radius, fill = param.fill, strokeWidth = param.strokeWidth;
1760
1499
  var r = radius;
1761
1500
  var cx = "50%";
@@ -1763,16 +1502,16 @@ var CircleProgress = function(param) {
1763
1502
  var w = Math.round(radius / 16);
1764
1503
  var strokeWidthCalc = strokeWidth ? strokeWidth : w < 8 ? 8 : w;
1765
1504
  var size = radius * 2 + strokeWidthCalc;
1766
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", {
1505
+ return /* @__PURE__ */ jsxRuntime.jsx("div", {
1767
1506
  style: {
1768
1507
  height: size,
1769
1508
  width: size
1770
1509
  },
1771
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("svg", {
1510
+ children: /* @__PURE__ */ jsxRuntime.jsxs("svg", {
1772
1511
  viewBox: "0 0 ".concat(size, " ").concat(size),
1773
1512
  className: "-rotate-90",
1774
1513
  children: [
1775
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("circle", {
1514
+ /* @__PURE__ */ jsxRuntime.jsx("circle", {
1776
1515
  className: "text-white/50 dark:text-slate-200/50",
1777
1516
  strokeWidth: strokeWidthCalc - 0.5,
1778
1517
  stroke: "currentColor",
@@ -1781,7 +1520,7 @@ var CircleProgress = function(param) {
1781
1520
  cx: cx,
1782
1521
  cy: cy
1783
1522
  }),
1784
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("circle", {
1523
+ /* @__PURE__ */ jsxRuntime.jsx("circle", {
1785
1524
  strokeDasharray: 2 * Math.PI * r,
1786
1525
  strokeDashoffset: 2 * Math.PI * r - percentage / 100 * 2 * Math.PI * r,
1787
1526
  stroke: twColor || "white/50",
@@ -1795,12 +1534,10 @@ var CircleProgress = function(param) {
1795
1534
  ]
1796
1535
  })
1797
1536
  });
1798
- };
1537
+ }, "CircleProgress");
1799
1538
  var CircleProgress_default = CircleProgress;
1800
- // src/ProgressBar/CourseProgress.tsx
1801
- var import_jsx_runtime33 = require("react/jsx-runtime");
1802
1539
  var PRIMARY_COLOR2 = "#00b4d8";
1803
- var CourseProgress = function(param) {
1540
+ var CourseProgress = /* @__PURE__ */ __name(function(param) {
1804
1541
  var twColor = param.twColor, percentage = param.percentage, label = param.label;
1805
1542
  var cx = "50%";
1806
1543
  var cy = "50%";
@@ -1809,16 +1546,16 @@ var CourseProgress = function(param) {
1809
1546
  var fullLength = 2 * Math.PI * r;
1810
1547
  var length = fullLength * (percentage < 1 ? 1 - percentage : 0.01);
1811
1548
  var strokeDashoffset = 2 * Math.PI * r - percentage / 100 * 2 * Math.PI * r;
1812
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", {
1549
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", {
1813
1550
  className: "flex items-center flex-col justify-center space-y-0 dark:bg-inherit dark:text-gray-300",
1814
1551
  children: [
1815
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", {
1552
+ /* @__PURE__ */ jsxRuntime.jsxs("div", {
1816
1553
  className: "relative flex items-center justify-center -my-2 -mt-1 overflow-hidden rounded-full",
1817
1554
  children: [
1818
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("svg", {
1555
+ /* @__PURE__ */ jsxRuntime.jsxs("svg", {
1819
1556
  className: "-rotate-90",
1820
1557
  children: [
1821
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("circle", {
1558
+ /* @__PURE__ */ jsxRuntime.jsx("circle", {
1822
1559
  className: "text-gray-300",
1823
1560
  strokeWidth: strokeWidth,
1824
1561
  stroke: "currentColor",
@@ -1827,14 +1564,12 @@ var CourseProgress = function(param) {
1827
1564
  cx: cx,
1828
1565
  cy: cy
1829
1566
  }),
1830
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("circle", {
1567
+ /* @__PURE__ */ jsxRuntime.jsx("circle", {
1831
1568
  style: {
1832
1569
  strokeDashoffset: strokeDashoffset
1833
1570
  },
1834
1571
  color: twColor || PRIMARY_COLOR2,
1835
- ref: function(ref) {
1836
- if (ref) {}
1837
- },
1572
+ ref: function(ref) {},
1838
1573
  strokeWidth: strokeWidth,
1839
1574
  strokeLinecap: "round",
1840
1575
  stroke: "currentColor",
@@ -1847,35 +1582,35 @@ var CourseProgress = function(param) {
1847
1582
  })
1848
1583
  ]
1849
1584
  }),
1850
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", {
1585
+ /* @__PURE__ */ jsxRuntime.jsx("span", {
1851
1586
  className: "absolute top-[".concat(50 / 2, "] text-xl leading-none font-medium font-header hidden sm:block"),
1852
1587
  children: percentage.toString() + "%"
1853
1588
  })
1854
1589
  ]
1855
1590
  }),
1856
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", {
1591
+ /* @__PURE__ */ jsxRuntime.jsx("p", {
1857
1592
  className: "font-medium sm:text-xl font-header text-center w-full",
1858
1593
  children: label
1859
1594
  })
1860
1595
  ]
1861
1596
  });
1862
- };
1863
- var Small = function(param) {
1597
+ }, "CourseProgress");
1598
+ var Small = /* @__PURE__ */ __name(function(param) {
1864
1599
  var twColor = param.twColor, percentage = param.percentage, label = param.label;
1865
1600
  var cx = 18;
1866
1601
  var cy = 18;
1867
1602
  var r = 14;
1868
1603
  var strokeWidth = 4;
1869
1604
  var strokeDashoffset = 2 * Math.PI * r - percentage / 100 * 2 * Math.PI * r;
1870
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", {
1605
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", {
1871
1606
  className: "flex items-center space-x-2 rounded-full bg-transparent border-2 border-slate-100 w-full",
1872
1607
  children: [
1873
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", {
1608
+ /* @__PURE__ */ jsxRuntime.jsx("div", {
1874
1609
  className: "flex items-center justify-center overflow-hidden",
1875
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("svg", {
1610
+ children: /* @__PURE__ */ jsxRuntime.jsxs("svg", {
1876
1611
  className: "w-10 h-11 transform translate-x-1 translate-y-1",
1877
1612
  children: [
1878
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("circle", {
1613
+ /* @__PURE__ */ jsxRuntime.jsx("circle", {
1879
1614
  className: "text-gray-300",
1880
1615
  strokeWidth: strokeWidth,
1881
1616
  stroke: "currentColor",
@@ -1884,14 +1619,12 @@ var Small = function(param) {
1884
1619
  cx: cx,
1885
1620
  cy: cy
1886
1621
  }),
1887
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("circle", {
1622
+ /* @__PURE__ */ jsxRuntime.jsx("circle", {
1888
1623
  style: {
1889
1624
  strokeDashoffset: strokeDashoffset
1890
1625
  },
1891
1626
  className: twColor || "text-blue-500",
1892
- ref: function(ref) {
1893
- if (ref) {}
1894
- },
1627
+ ref: function(ref) {},
1895
1628
  strokeWidth: strokeWidth,
1896
1629
  strokeLinecap: "round",
1897
1630
  stroke: "currentColor",
@@ -1903,7 +1636,7 @@ var Small = function(param) {
1903
1636
  ]
1904
1637
  })
1905
1638
  }),
1906
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("p", {
1639
+ /* @__PURE__ */ jsxRuntime.jsxs("p", {
1907
1640
  className: "font-medium dark:text-gray-300 text-gray-600 text-sm font-header mt-1",
1908
1641
  children: [
1909
1642
  label,
@@ -1913,29 +1646,26 @@ var Small = function(param) {
1913
1646
  })
1914
1647
  ]
1915
1648
  });
1916
- };
1649
+ }, "Small");
1917
1650
  CourseProgress.Small = Small;
1918
1651
  var CourseProgress_default = CourseProgress;
1919
- // src/ProgressBar/ScrollProgress.tsx
1920
- var import_react9 = require("react");
1921
- var import_jsx_runtime34 = require("react/jsx-runtime");
1922
1652
  var PRIMARY_COLOR3 = "#00b4d8";
1923
- var ScrollProgress = function() {
1924
- var _ref = _sliced_to_array((0, import_react9.useState)(0), 2), scrollPercentage = _ref[0], setScrollPercentage = _ref[1];
1925
- (0, import_react9.useEffect)(function() {
1926
- var handleScroll = function() {
1653
+ var ScrollProgress = /* @__PURE__ */ __name(function() {
1654
+ var _react_useState = _sliced_to_array(react.useState(0), 2), scrollPercentage = _react_useState[0], setScrollPercentage = _react_useState[1];
1655
+ react.useEffect(function() {
1656
+ var handleScroll = /* @__PURE__ */ __name(function() {
1927
1657
  var windowHeight = window.innerHeight;
1928
1658
  var documentHeight = document.documentElement.scrollHeight;
1929
1659
  var scrollY = window.scrollY;
1930
1660
  var scrollPercent = scrollY / (documentHeight - windowHeight) * 100;
1931
1661
  setScrollPercentage(scrollPercent);
1932
- };
1662
+ }, "handleScroll");
1933
1663
  window.addEventListener("scroll", handleScroll);
1934
1664
  return function() {
1935
1665
  window.removeEventListener("scroll", handleScroll);
1936
1666
  };
1937
1667
  }, []);
1938
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", {
1668
+ return /* @__PURE__ */ jsxRuntime.jsx("div", {
1939
1669
  style: {
1940
1670
  height: "4px",
1941
1671
  borderRadius: 2,
@@ -1946,7 +1676,7 @@ var ScrollProgress = function() {
1946
1676
  left: "0px",
1947
1677
  right: "0px"
1948
1678
  },
1949
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", {
1679
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
1950
1680
  style: {
1951
1681
  height: "100%",
1952
1682
  backgroundColor: PRIMARY_COLOR3,
@@ -1955,26 +1685,23 @@ var ScrollProgress = function() {
1955
1685
  }
1956
1686
  })
1957
1687
  });
1958
- };
1688
+ }, "ScrollProgress");
1959
1689
  var ScrollProgress_default = ScrollProgress;
1960
- // src/Icons/AnimateLogo.tsx
1961
- var import_react10 = require("react");
1962
- var import_jsx_runtime35 = require("react/jsx-runtime");
1963
- var AnimateLogo = function() {
1964
- var _ref = _sliced_to_array((0, import_react10.useState)(false), 2), isFirefox = _ref[0], setIsFirefox = _ref[1];
1965
- (0, import_react10.useEffect)(function() {
1690
+ var AnimateLogo = /* @__PURE__ */ __name(function() {
1691
+ var _react_useState = _sliced_to_array(react.useState(false), 2), isFirefox = _react_useState[0], setIsFirefox = _react_useState[1];
1692
+ react.useEffect(function() {
1966
1693
  var userAgent = window.navigator.userAgent;
1967
1694
  setIsFirefox(userAgent.indexOf("Firefox") > -1);
1968
1695
  }, []);
1969
1696
  if (isFirefox) {
1970
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("svg", {
1697
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", {
1971
1698
  xmlns: "http://www.w3.org/2000/svg",
1972
1699
  className: "animate-spin",
1973
1700
  viewBox: "0 0 600 600",
1974
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("g", {
1701
+ children: /* @__PURE__ */ jsxRuntime.jsx("g", {
1975
1702
  height: 176,
1976
1703
  width: 176,
1977
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("path", {
1704
+ children: /* @__PURE__ */ jsxRuntime.jsxs("path", {
1978
1705
  className: "stroke-black dark:stroke-white text-gray-900 dark:text-gray-50",
1979
1706
  stroke: "currentColor",
1980
1707
  fill: "none",
@@ -1984,7 +1711,7 @@ var AnimateLogo = function() {
1984
1711
  strokeDasharray: "1600",
1985
1712
  d: "M466.49 164.79c17.79 34.76 25.48 75.66 19.08 118.96-11.28 76.36-67.11 139.06-141.89 158.25-127.11 32.61-243.49-61.27-245.86-184.81C95.79 150.86 182.9 60.52 289.23 58.56c33.95-.63 66.08 7.48 94.22 22.29 0 0 15.68 6.34 10.14 23.19 0 0-68.52 219.82-352.61 268.06",
1986
1713
  children: [
1987
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("animate", {
1714
+ /* @__PURE__ */ jsxRuntime.jsx("animate", {
1988
1715
  attributeName: "stroke-dashoffset",
1989
1716
  to: "0",
1990
1717
  from: "1600",
@@ -1996,7 +1723,7 @@ var AnimateLogo = function() {
1996
1723
  keySplines: "0 0.26 0 1;0 0.26 0 1;0 0.26 0 1;0 0.26 0 1",
1997
1724
  values: "1600;0;0;1600;1600"
1998
1725
  }),
1999
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("animateTransform", {
1726
+ /* @__PURE__ */ jsxRuntime.jsx("animateTransform", {
2000
1727
  attributeName: "transform",
2001
1728
  type: "rotate",
2002
1729
  from: "0 300 300",
@@ -2014,10 +1741,10 @@ var AnimateLogo = function() {
2014
1741
  })
2015
1742
  });
2016
1743
  }
2017
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("svg", {
1744
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", {
2018
1745
  xmlns: "http://www.w3.org/2000/svg",
2019
1746
  viewBox: "0 0 600 600",
2020
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("g", {
1747
+ children: /* @__PURE__ */ jsxRuntime.jsxs("g", {
2021
1748
  style: {
2022
1749
  transformOrigin: "center"
2023
1750
  },
@@ -2025,7 +1752,7 @@ var AnimateLogo = function() {
2025
1752
  height: 176,
2026
1753
  width: 176,
2027
1754
  children: [
2028
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("path", {
1755
+ /* @__PURE__ */ jsxRuntime.jsx("path", {
2029
1756
  className: "stroke-black dark:stroke-white text-gray-900 dark:text-gray-50",
2030
1757
  stroke: "currentColor",
2031
1758
  id: "motionPath",
@@ -2040,7 +1767,7 @@ var AnimateLogo = function() {
2040
1767
  strokeWidth: "82",
2041
1768
  strokeDasharray: "1600",
2042
1769
  d: "M466.49 164.79c17.79 34.76 25.48 75.66 19.08 118.96-11.28 76.36-67.11 139.06-141.89 158.25-127.11 32.61-243.49-61.27-245.86-184.81C95.79 150.86 182.9 60.52 289.23 58.56c33.95-.63 66.08 7.48 94.22 22.29 0 0 15.68 6.34 10.14 23.19 0 0-68.52 219.82-352.61 268.06",
2043
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("animate", {
1770
+ children: /* @__PURE__ */ jsxRuntime.jsx("animate", {
2044
1771
  attributeName: "stroke-dashoffset",
2045
1772
  to: "0",
2046
1773
  from: "1600",
@@ -2053,7 +1780,7 @@ var AnimateLogo = function() {
2053
1780
  values: "1600;0;0;1600;1600"
2054
1781
  })
2055
1782
  }),
2056
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("animateTransform", {
1783
+ /* @__PURE__ */ jsxRuntime.jsx("animateTransform", {
2057
1784
  attributeName: "transform",
2058
1785
  type: "rotate",
2059
1786
  from: "0",
@@ -2069,16 +1796,12 @@ var AnimateLogo = function() {
2069
1796
  ]
2070
1797
  })
2071
1798
  });
2072
- };
1799
+ }, "AnimateLogo");
2073
1800
  var AnimateLogo_default = AnimateLogo;
2074
- // src/Spinners/OverlaySpinner.tsx
2075
- var import_react11 = require("react");
2076
- var import_react_dom3 = require("react-dom");
2077
- var import_jsx_runtime36 = require("react/jsx-runtime");
2078
- var OverlaySpinner = function(param) {
1801
+ var OverlaySpinner = /* @__PURE__ */ __name(function(param) {
2079
1802
  var visible = param.visible;
2080
- var _ref = _sliced_to_array((0, import_react11.useState)(null), 2), modalRoot = _ref[0], setModalRoot = _ref[1];
2081
- (0, import_react11.useEffect)(function() {
1803
+ var _react_useState = _sliced_to_array(react.useState(null), 2), modalRoot = _react_useState[0], setModalRoot = _react_useState[1];
1804
+ react.useEffect(function() {
2082
1805
  var root = document.getElementById("spinner-root");
2083
1806
  if (!root) {
2084
1807
  root = document.createElement("div");
@@ -2098,63 +1821,60 @@ var OverlaySpinner = function(param) {
2098
1821
  if (!visible || !modalRoot) {
2099
1822
  return null;
2100
1823
  }
2101
- return (0, import_react_dom3.createPortal)(/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", {
1824
+ return ReactDOM.createPortal(/* @__PURE__ */ jsxRuntime.jsx("div", {
2102
1825
  style: {
2103
1826
  zIndex: 11e3
2104
1827
  },
2105
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", {
1828
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
2106
1829
  style: {
2107
1830
  zIndex: 11001
2108
1831
  },
2109
1832
  className: "fixed shrink-0 top-0 left-0 w-full h-screen flex items-center justify-center dark:bg-black/70 bg-white/60",
2110
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", {
1833
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
2111
1834
  className: "h-44 w-44 overflow-visible",
2112
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(AnimateLogo_default, {})
1835
+ children: /* @__PURE__ */ jsxRuntime.jsx(AnimateLogo_default, {})
2113
1836
  })
2114
1837
  })
2115
1838
  }), modalRoot);
2116
- };
1839
+ }, "OverlaySpinner");
2117
1840
  var OverlaySpinner_default = OverlaySpinner;
2118
- // Annotate the CommonJS export names for ESM import in node:
2119
- 0 && (module.exports = {
2120
- AnimateLogo: AnimateLogo,
2121
- Backdrop: Backdrop,
2122
- BottomAlert: BottomAlert,
2123
- Breakpoint: Breakpoint,
2124
- Button: Button,
2125
- Checkbox: Checkbox,
2126
- CircleProgress: CircleProgress,
2127
- Container: Container,
2128
- CourseProgress: CourseProgress,
2129
- ErrorText: ErrorText,
2130
- Fade: Fade,
2131
- FunButton: FunButton,
2132
- FunRoundButton: FunRoundButton,
2133
- IconInfo: IconInfo,
2134
- Modal: Modal,
2135
- NoResults: NoResults,
2136
- NoticeBox: NoticeBox,
2137
- Overlay: Overlay,
2138
- OverlaySpinner: OverlaySpinner,
2139
- PRIMARY_COLOR: PRIMARY_COLOR,
2140
- Pill: Pill,
2141
- ProgressBar: ProgressBar,
2142
- ProgressBarSimple: ProgressBarSimple,
2143
- RadioOption: RadioOption,
2144
- RatingStars: RatingStars,
2145
- ScrollProgress: ScrollProgress,
2146
- Slider: Slider,
2147
- Spinner: Spinner,
2148
- StepsComponent: StepsComponent,
2149
- Tippy: Tippy,
2150
- ToggleSwitch: ToggleSwitch,
2151
- UserContentSwitcher: UserContentSwitcher,
2152
- baseFieldStyle: baseFieldStyle,
2153
- createExerciseElementStyle: createExerciseElementStyle,
2154
- exerciseDeleteButton: exerciseDeleteButton,
2155
- exerciseEditButton: exerciseEditButton,
2156
- headerButtonClass: headerButtonClass,
2157
- headerTippyClass: headerTippyClass,
2158
- tippyClassname: tippyClassname,
2159
- xIconButton: xIconButton
2160
- });
1841
+ exports.AnimateLogo = AnimateLogo_default;
1842
+ exports.Backdrop = Backdrop_default;
1843
+ exports.BottomAlert = BottomAlert_default;
1844
+ exports.Breakpoint = Breakpoint_default;
1845
+ exports.Button = Button_default;
1846
+ exports.Checkbox = Checkbox_default;
1847
+ exports.CircleProgress = CircleProgress_default;
1848
+ exports.Container = Container_default;
1849
+ exports.CourseProgress = CourseProgress_default;
1850
+ exports.ErrorText = ErrorText_default;
1851
+ exports.Fade = Fade_default;
1852
+ exports.FunButton = FunButton_default;
1853
+ exports.FunRoundButton = FunRoundButton_default;
1854
+ exports.IconInfo = IconInfo_default;
1855
+ exports.Modal = Modal_default;
1856
+ exports.NoResults = NoResults_default;
1857
+ exports.NoticeBox = NoticeBox_default;
1858
+ exports.Overlay = Overlay_default;
1859
+ exports.OverlaySpinner = OverlaySpinner_default;
1860
+ exports.PRIMARY_COLOR = PRIMARY_COLOR;
1861
+ exports.Pill = Pill_default;
1862
+ exports.ProgressBar = ProgressBar_default;
1863
+ exports.ProgressBarSimple = ProgressBarSimple_default;
1864
+ exports.RadioOption = RadioOption_default;
1865
+ exports.RatingStars = RatingStars_default;
1866
+ exports.ScrollProgress = ScrollProgress_default;
1867
+ exports.Slider = Slider_default;
1868
+ exports.Spinner = Spinner_default;
1869
+ exports.StepsComponent = StepsComponent_default;
1870
+ exports.Tippy = Tippy_default;
1871
+ exports.ToggleSwitch = ToggleSwitch_default;
1872
+ exports.UserContentSwitcher = UserContentSwitcher_default;
1873
+ exports.baseFieldStyle = baseFieldStyle;
1874
+ exports.createExerciseElementStyle = createExerciseElementStyle;
1875
+ exports.exerciseDeleteButton = exerciseDeleteButton;
1876
+ exports.exerciseEditButton = exerciseEditButton;
1877
+ exports.headerButtonClass = headerButtonClass;
1878
+ exports.headerTippyClass = headerTippyClass;
1879
+ exports.tippyClassname = tippyClassname;
1880
+ exports.xIconButton = xIconButton;