@sikka/hawa 0.1.92 → 0.1.93

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.mjs CHANGED
@@ -196,7 +196,7 @@ var HawaTextField = ({
196
196
  ),
197
197
  disabled: preview
198
198
  }
199
- )), props.helpertext ? /* @__PURE__ */ React7.createElement("p", { className: "mb-0 mt-1 text-xs text-red-600 dark:text-red-500" }, props.helpertext) : null));
199
+ )), props.iconInside && /* @__PURE__ */ React7.createElement("div", { className: "absolute right-1 top-[41px] -translate-y-1/2" }, props.iconInside), props.helpertext ? /* @__PURE__ */ React7.createElement("p", { className: "mb-0 mt-1 text-xs text-red-600 dark:text-red-500" }, props.helpertext) : null));
200
200
  };
201
201
 
202
202
  // src/elements/HawaColorPicker.tsx
@@ -270,7 +270,6 @@ var HawaRange = ({
270
270
 
271
271
  // src/elements/HawaRadio.tsx
272
272
  import React10, { useState as useState5, useRef, useEffect as useEffect2 } from "react";
273
- import clsx4 from "clsx";
274
273
  var HawaRadio = ({
275
274
  design = "default",
276
275
  width = "default",
@@ -302,7 +301,7 @@ var HawaRadio = ({
302
301
  "ul",
303
302
  {
304
303
  ref,
305
- className: clsx4(
304
+ className: cn(
306
305
  props.options?.length > 2 ? "flex-wrap xs:max-w-full xs:flex-nowrap" : "",
307
306
  "select-none whitespace-nowrap rounded border text-center text-sm font-medium",
308
307
  widthStyle[width],
@@ -317,7 +316,7 @@ var HawaRadio = ({
317
316
  setSelectedOption(opt.value);
318
317
  props.onChangeTab(opt.value);
319
318
  },
320
- className: clsx4(
319
+ className: cn(
321
320
  "w-full cursor-pointer",
322
321
  orientation === "horizontal" && parentDirection === "ltr" && "rounded-none first:rounded-l last:rounded-r",
323
322
  orientation === "horizontal" && parentDirection === "rtl" && "rounded-none first:rounded-r last:rounded-l",
@@ -332,7 +331,7 @@ var HawaRadio = ({
332
331
  ))
333
332
  );
334
333
  case "bordered":
335
- return /* @__PURE__ */ React10.createElement("div", { className: clsx4(orientationStyle[orientation], "gap-4") }, props.options.map((opt, i) => /* @__PURE__ */ React10.createElement("div", { className: "rounded border border-gray-200 " }, /* @__PURE__ */ React10.createElement(
334
+ return /* @__PURE__ */ React10.createElement("div", { className: cn(orientationStyle[orientation], "gap-4") }, props.options.map((opt, i) => /* @__PURE__ */ React10.createElement("div", { className: "rounded border border-gray-200 " }, /* @__PURE__ */ React10.createElement(
336
335
  "div",
337
336
  {
338
337
  className: "radio-item radio-item-bordered flex items-center transition-all",
@@ -352,7 +351,7 @@ var HawaRadio = ({
352
351
  "label",
353
352
  {
354
353
  htmlFor: opt.value.toString(),
355
- className: clsx4(
354
+ className: cn(
356
355
  "ml-2 w-full p-4 pl-3 text-sm font-medium dark:text-white",
357
356
  opt.disabled ? "opacity-50" : "cursor-pointer text-gray-900"
358
357
  )
@@ -361,7 +360,7 @@ var HawaRadio = ({
361
360
  )
362
361
  ))));
363
362
  case "cards":
364
- return /* @__PURE__ */ React10.createElement("ul", { className: clsx4(orientationStyle[orientation], "gap-4") }, props.options?.map((opt, o) => /* @__PURE__ */ React10.createElement("li", null, /* @__PURE__ */ React10.createElement(
363
+ return /* @__PURE__ */ React10.createElement("ul", { className: cn(orientationStyle[orientation], "gap-4") }, props.options?.map((opt, o) => /* @__PURE__ */ React10.createElement("li", null, /* @__PURE__ */ React10.createElement(
365
364
  "input",
366
365
  {
367
366
  type: "radio",
@@ -376,18 +375,18 @@ var HawaRadio = ({
376
375
  "label",
377
376
  {
378
377
  htmlFor: opt.value.toString(),
379
- className: clsx4(
380
- "inline-flex h-full w-full items-center justify-between rounded-lg border border-gray-200 bg-white p-5 text-gray-500 peer-checked:border-blue-600 peer-checked:text-blue-600 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-300 dark:peer-checked:text-blue-500",
381
- opt.disabled ? "opacity-50" : "cursor-pointer hover:bg-gray-100 hover:text-gray-600"
378
+ className: cn(
379
+ "inline-flex h-full w-full items-center justify-between rounded-lg border border-gray-200 bg-white p-5 text-gray-500 peer-checked:border-blue-600 peer-checked:text-blue-600 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:peer-checked:text-primary",
380
+ opt.disabled ? "opacity-50" : "cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-700 dark:hover:text-gray-300 hover:text-gray-600"
382
381
  )
383
382
  },
384
383
  /* @__PURE__ */ React10.createElement("div", { className: "block h-full w-full" }, /* @__PURE__ */ React10.createElement("div", { className: "w-full text-lg font-semibold" }, opt.label), /* @__PURE__ */ React10.createElement("div", { className: "w-full" }, opt.sublabel))
385
384
  ))));
386
385
  default:
387
- return /* @__PURE__ */ React10.createElement("div", { className: orientationStyle[orientation] }, props.options.map((opt, i) => /* @__PURE__ */ React10.createElement(
386
+ return /* @__PURE__ */ React10.createElement("div", { className: cn(orientationStyle[orientation], "gap-2") }, props.options.map((opt, i) => /* @__PURE__ */ React10.createElement(
388
387
  "div",
389
388
  {
390
- className: "radio-item radio-item-default mb-4 flex items-center transition-all",
389
+ className: "radio-item radio-item-default flex items-center transition-all",
391
390
  key: i + 1
392
391
  },
393
392
  /* @__PURE__ */ React10.createElement(
@@ -404,8 +403,8 @@ var HawaRadio = ({
404
403
  "label",
405
404
  {
406
405
  htmlFor: opt.value.toString(),
407
- className: clsx4(
408
- "ml-2 text-sm font-medium dark:text-white",
406
+ className: cn(
407
+ "text-sm font-medium dark:text-white",
409
408
  opt.disabled ? "text-gray-400" : "cursor-pointer text-gray-900"
410
409
  )
411
410
  },
@@ -416,7 +415,7 @@ var HawaRadio = ({
416
415
  };
417
416
 
418
417
  // src/elements/HawaSelect.tsx
419
- import clsx5 from "clsx";
418
+ import clsx4 from "clsx";
420
419
  import React11 from "react";
421
420
  import Select from "react-select";
422
421
  import CreatableSelect from "react-select/creatable";
@@ -438,7 +437,7 @@ var Control = ({
438
437
  "div",
439
438
  {
440
439
  ref: innerRef,
441
- className: clsx5(
440
+ className: clsx4(
442
441
  sizeStyles2[size],
443
442
  "flex w-full rounded border bg-background text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:focus:ring-blue-500"
444
443
  ),
@@ -628,7 +627,7 @@ var HawaTypography = (props) => {
628
627
 
629
628
  // src/elements/HawaAlert.tsx
630
629
  import React17, { useRef as useRef3, useState as useState7, useEffect as useEffect4 } from "react";
631
- import clsx7 from "clsx";
630
+ import clsx6 from "clsx";
632
631
 
633
632
  // src/elements/Button.tsx
634
633
  import * as React16 from "react";
@@ -636,7 +635,7 @@ import { cva as cva2 } from "class-variance-authority";
636
635
 
637
636
  // src/elements/HawaLoading.tsx
638
637
  import React15 from "react";
639
- import clsx6 from "clsx";
638
+ import clsx5 from "clsx";
640
639
  var HawaLoading = ({
641
640
  design = "spinner",
642
641
  size = "sm",
@@ -659,7 +658,7 @@ var HawaLoading = ({
659
658
  return /* @__PURE__ */ React15.createElement("div", { className: "flex flex-row gap-2" }, /* @__PURE__ */ React15.createElement(
660
659
  "div",
661
660
  {
662
- className: clsx6(
661
+ className: clsx5(
663
662
  "animate-bounce rounded-full delay-100 repeat-infinite",
664
663
  size === "button" ? "h-2 w-2" : sizeStyles2[size],
665
664
  animationStyles[design.split("-")[1]],
@@ -669,7 +668,7 @@ var HawaLoading = ({
669
668
  ), /* @__PURE__ */ React15.createElement(
670
669
  "div",
671
670
  {
672
- className: clsx6(
671
+ className: clsx5(
673
672
  "animate-bounce rounded-full delay-200 repeat-infinite",
674
673
  size === "button" ? "h-2 w-2" : sizeStyles2[size],
675
674
  animationStyles[design.split("-")[1]],
@@ -679,7 +678,7 @@ var HawaLoading = ({
679
678
  ), /* @__PURE__ */ React15.createElement(
680
679
  "div",
681
680
  {
682
- className: clsx6(
681
+ className: clsx5(
683
682
  "animate-bounce rounded-full delay-300 repeat-infinite",
684
683
  size === "button" ? "h-2 w-2" : sizeStyles2[size],
685
684
  animationStyles[design.split("-")[1]],
@@ -691,7 +690,7 @@ var HawaLoading = ({
691
690
  return /* @__PURE__ */ React15.createElement("div", { className: "flex flex-row gap-x-3" }, /* @__PURE__ */ React15.createElement("div", { "aria-label": "Loading...", role: "status" }, /* @__PURE__ */ React15.createElement(
692
691
  "svg",
693
692
  {
694
- className: clsx6(sizeStyles2[size], "animate-spin"),
693
+ className: clsx5(sizeStyles2[size], "animate-spin"),
695
694
  viewBox: "3 3 18 18"
696
695
  },
697
696
  /* @__PURE__ */ React15.createElement(
@@ -850,7 +849,7 @@ var HawaAlert = ({
850
849
  return /* @__PURE__ */ React17.createElement("div", { ref: alertRef }, /* @__PURE__ */ React17.createElement(
851
850
  "div",
852
851
  {
853
- className: clsx7(
852
+ className: clsx6(
854
853
  "relative mb-4 flex flex-col rounded p-4 text-sm transition-all",
855
854
  styleVariant[variant][severity],
856
855
  closed ? "opacity-0" : "opacity-100",
@@ -862,7 +861,7 @@ var HawaAlert = ({
862
861
  /* @__PURE__ */ React17.createElement("div", { className: "flex flex-row" }, icon && /* @__PURE__ */ React17.createElement("div", { className: direction === "rtl" ? "pl-2 pt-1" : "pr-2 pt-1" }, icon), /* @__PURE__ */ React17.createElement("div", { className: "flex flex-col" }, /* @__PURE__ */ React17.createElement(
863
862
  "span",
864
863
  {
865
- className: clsx7(
864
+ className: clsx6(
866
865
  "font-medium",
867
866
  direction === "rtl" ? "ml-8" : "mr-8"
868
867
  )
@@ -881,7 +880,7 @@ var HawaAlert = ({
881
880
  "button",
882
881
  {
883
882
  type: "button",
884
- className: clsx7(
883
+ className: clsx6(
885
884
  "absolute top-2 inline-flex h-9 w-9 items-center justify-center rounded-inner p-1.5 text-gray-400 transition-all hover:text-gray-900",
886
885
  closeButtonStyle[severity],
887
886
  direction === "rtl" ? "left-2" : "right-2"
@@ -920,7 +919,7 @@ var HawaAlert = ({
920
919
 
921
920
  // src/elements/HawaTable.tsx
922
921
  import React20, { useEffect as useEffect6, useState as useState9 } from "react";
923
- import clsx8 from "clsx";
922
+ import clsx7 from "clsx";
924
923
 
925
924
  // src/hooks/useTable.ts
926
925
  import { useState as useState8, useEffect as useEffect5 } from "react";
@@ -1346,7 +1345,7 @@ var HawaTable = ({
1346
1345
  )))), /* @__PURE__ */ React20.createElement(
1347
1346
  "table",
1348
1347
  {
1349
- className: clsx8(
1348
+ className: clsx7(
1350
1349
  borders === "outer" || borders === "all" ? `outline outline-[${bordersWidth}px] -outline-offset-1 outline-gray-300 dark:outline-gray-700` : "",
1351
1350
  "w-full rounded text-left text-sm text-gray-500 dark:text-gray-400",
1352
1351
  `bg-${headerColor}`
@@ -1355,7 +1354,7 @@ var HawaTable = ({
1355
1354
  /* @__PURE__ */ React20.createElement(
1356
1355
  "thead",
1357
1356
  {
1358
- className: clsx8(
1357
+ className: clsx7(
1359
1358
  "text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400",
1360
1359
  borders === "rows" || borders === "all" || borders === "inner" ? "border-b " : ""
1361
1360
  )
@@ -1371,7 +1370,7 @@ var HawaTable = ({
1371
1370
  key: i,
1372
1371
  scope: "col",
1373
1372
  colSpan: 2,
1374
- className: clsx8(
1373
+ className: clsx7(
1375
1374
  col.sortable ? "cursor-pointer hover:bg-gray-300" : "",
1376
1375
  sizeStyles2[size],
1377
1376
  i !== 0 && (borders === "cols" || borders === "all" || borders === "inner") ? `border-r border-r-[${bordersWidth}px] border-l border-l-[${bordersWidth}px]` : ""
@@ -1385,7 +1384,7 @@ var HawaTable = ({
1385
1384
  "th",
1386
1385
  {
1387
1386
  scope: "col",
1388
- className: clsx8(sizeStyles2[size], "w-[calc(1%)] text-center")
1387
+ className: clsx7(sizeStyles2[size], "w-[calc(1%)] text-center")
1389
1388
  },
1390
1389
  props.texts?.actions ?? "Actions"
1391
1390
  ) : null)
@@ -1401,7 +1400,7 @@ var HawaTable = ({
1401
1400
  "tr",
1402
1401
  {
1403
1402
  key: rowIndex,
1404
- className: clsx8(
1403
+ className: clsx7(
1405
1404
  " dark:border-gray-700 dark:bg-gray-800",
1406
1405
  props.clickable ? "hover:bg-gray-100" : "",
1407
1406
  !lastRow && (borders === "all" || borders === "rows" || borders === "inner") ? `border-b border-b-[${bordersWidth}px]` : ""
@@ -1422,7 +1421,7 @@ var HawaTable = ({
1422
1421
  {
1423
1422
  colSpan: 2,
1424
1423
  key: i,
1425
- className: clsx8(
1424
+ className: clsx7(
1426
1425
  // borders === "outer" ? "border" : "",
1427
1426
  sizeStyles2[size],
1428
1427
  highlightFirst && firstCell ? "font-bold" : "font-normal",
@@ -1475,7 +1474,7 @@ var HawaTable = ({
1475
1474
  }) : /* @__PURE__ */ React20.createElement("tr", { className: "bg-transparent" }, /* @__PURE__ */ React20.createElement("td", { colSpan: 20 }, /* @__PURE__ */ React20.createElement(
1476
1475
  "div",
1477
1476
  {
1478
- className: clsx8(
1477
+ className: clsx7(
1479
1478
  "w-full rounded-b border p-5 text-center",
1480
1479
  // bodyColor ? `bg-${bodyColor}` : "bg-background"
1481
1480
  "bg-background"
@@ -1500,7 +1499,7 @@ var HawaTable = ({
1500
1499
  "button",
1501
1500
  {
1502
1501
  key: index,
1503
- className: clsx8(
1502
+ className: clsx7(
1504
1503
  "w-10 p-1 text-xs hover:bg-gray-200",
1505
1504
  page === el ? "bg-primary text-primary-foreground hover:bg-primary" : "bg-gray-100"
1506
1505
  ),
@@ -1530,7 +1529,7 @@ var HawaTable = ({
1530
1529
  "button",
1531
1530
  {
1532
1531
  key: index,
1533
- className: clsx8(
1532
+ className: clsx7(
1534
1533
  "w-10 p-1 text-xs hover:bg-gray-200",
1535
1534
  page === el ? "bg-primary text-primary-foreground hover:bg-primary" : "bg-gray-100"
1536
1535
  ),
@@ -1544,7 +1543,7 @@ var HawaTable = ({
1544
1543
  "button",
1545
1544
  {
1546
1545
  key: index,
1547
- className: clsx8(
1546
+ className: clsx7(
1548
1547
  "w-10 p-1 text-xs",
1549
1548
  page === el ? "bg-primary text-primary-foreground " : "border bg-background hover:bg-primary/10 dark:hover:bg-primary/10",
1550
1549
  // Check if the direction is 'rtl'
@@ -1598,7 +1597,7 @@ var HawaSearchBar = (props) => {
1598
1597
 
1599
1598
  // src/elements/HawaAccordion.tsx
1600
1599
  import React22, { useState as useState10 } from "react";
1601
- import clsx9 from "clsx";
1600
+ import clsx8 from "clsx";
1602
1601
  var HawaAccordion = (props) => {
1603
1602
  const [collapse, setCollapse] = useState10(false);
1604
1603
  return /* @__PURE__ */ React22.createElement("div", { className: "h-fit w-full" }, /* @__PURE__ */ React22.createElement(
@@ -1606,7 +1605,7 @@ var HawaAccordion = (props) => {
1606
1605
  {
1607
1606
  id: "accordion-collapse-heading-" + props.index,
1608
1607
  type: "button",
1609
- className: clsx9(
1608
+ className: clsx8(
1610
1609
  collapse ? "rounded" : "rounded-t",
1611
1610
  "flex w-full items-center justify-between border border-gray-200 bg-gray-100 p-5 text-left font-medium text-gray-900 hover:bg-gray-100 dark:border-gray-700 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-800 dark:focus:ring-gray-800"
1612
1611
  ),
@@ -1638,7 +1637,7 @@ var HawaAccordion = (props) => {
1638
1637
  {
1639
1638
  id: "accordion-collapse-body-" + props.index,
1640
1639
  "aria-labelledby": "accordion-collapse-heading-" + props.index,
1641
- className: clsx9(
1640
+ className: clsx8(
1642
1641
  collapse ? "invisible hidden h-0 p-0" : "visible h-full",
1643
1642
  "w-full rounded-b border border-t-0 border-gray-200 p-5 font-light dark:border-gray-700 dark:bg-gray-900"
1644
1643
  )
@@ -3466,7 +3465,7 @@ var HawaPhoneInput = (props) => {
3466
3465
 
3467
3466
  // src/elements/HawaTooltip.tsx
3468
3467
  import React24, { useEffect as useEffect7, useRef as useRef4, useState as useState12 } from "react";
3469
- import clsx10 from "clsx";
3468
+ import clsx9 from "clsx";
3470
3469
  var HawaTooltip = ({
3471
3470
  children,
3472
3471
  content,
@@ -3542,7 +3541,7 @@ var HawaTooltip = ({
3542
3541
  opacity: hovered ? "1" : "0",
3543
3542
  maxWidth: "200px"
3544
3543
  },
3545
- className: clsx10(defaultTooltipStyles, sizeStyles2[size])
3544
+ className: clsx9(defaultTooltipStyles, sizeStyles2[size])
3546
3545
  },
3547
3546
  content
3548
3547
  )
@@ -3656,7 +3655,7 @@ var HawaTabs = ({
3656
3655
 
3657
3656
  // src/elements/HawaModal.tsx
3658
3657
  import React26, { useEffect as useEffect8 } from "react";
3659
- import clsx11 from "clsx";
3658
+ import clsx10 from "clsx";
3660
3659
  var HawaModal = ({
3661
3660
  open,
3662
3661
  title,
@@ -3677,7 +3676,7 @@ var HawaModal = ({
3677
3676
  return /* @__PURE__ */ React26.createElement(
3678
3677
  "div",
3679
3678
  {
3680
- className: clsx11(
3679
+ className: clsx10(
3681
3680
  defaultStyle,
3682
3681
  open ? "z-10 opacity-100 " : "invisible -z-10 opacity-0"
3683
3682
  )
@@ -3685,7 +3684,7 @@ var HawaModal = ({
3685
3684
  /* @__PURE__ */ React26.createElement(
3686
3685
  "div",
3687
3686
  {
3688
- className: clsx11(
3687
+ className: clsx10(
3689
3688
  "absolute h-screen w-full bg-gray-500 opacity-50",
3690
3689
  open ? "opacity-50" : "opacity-0"
3691
3690
  )
@@ -3725,7 +3724,7 @@ var HawaModal = ({
3725
3724
 
3726
3725
  // src/elements/HawaMenu.tsx
3727
3726
  import React27, { useEffect as useEffect9, useRef as useRef5, useState as useState14 } from "react";
3728
- import clsx12 from "clsx";
3727
+ import clsx11 from "clsx";
3729
3728
  var HawaMenu = ({
3730
3729
  menuItems,
3731
3730
  withHeader,
@@ -3818,7 +3817,7 @@ var HawaMenu = ({
3818
3817
  transform: `translate(${menuCoordinates})`,
3819
3818
  maxWidth: "200px"
3820
3819
  },
3821
- className: clsx12(
3820
+ className: clsx11(
3822
3821
  defaultStyles,
3823
3822
  menuOpened ? "opacity-100" : "invisible opacity-0"
3824
3823
  )
@@ -3850,7 +3849,7 @@ var HawaMenu = ({
3850
3849
  item?.action(actionedItem);
3851
3850
  }
3852
3851
  },
3853
- className: clsx12(
3852
+ className: clsx11(
3854
3853
  "transition-all",
3855
3854
  item.isButton ? "flex cursor-pointer flex-row items-center rounded-inner bg-buttonPrimary-500 px-4 py-2 text-white hover:bg-buttonPrimary-700 rtl:flex-row-reverse" : item.disabled ? "text-gray-300" : " flex cursor-pointer flex-row items-center rounded-inner hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white ",
3856
3855
  sizeStyles2[size]
@@ -4063,7 +4062,7 @@ var HawaCopyrights = (props) => {
4063
4062
 
4064
4063
  // src/elements/HawaStepper.tsx
4065
4064
  import React30 from "react";
4066
- import clsx13 from "clsx";
4065
+ import clsx12 from "clsx";
4067
4066
  var HawaStepper = ({
4068
4067
  orientation = "horizontal",
4069
4068
  ...props
@@ -4079,7 +4078,7 @@ var HawaStepper = ({
4079
4078
  return /* @__PURE__ */ React30.createElement(
4080
4079
  "div",
4081
4080
  {
4082
- className: clsx13(
4081
+ className: clsx12(
4083
4082
  orientationStyles[orientation],
4084
4083
  " flex-wrap justify-start gap-4"
4085
4084
  )
@@ -4099,7 +4098,7 @@ var HawaStepper = ({
4099
4098
  /* @__PURE__ */ React30.createElement("div", { className: "flex flex-row gap-2 " }, /* @__PURE__ */ React30.createElement(
4100
4099
  "div",
4101
4100
  {
4102
- className: clsx13(
4101
+ className: clsx12(
4103
4102
  "flex h-6 w-6 min-w-[24px] items-center justify-center rounded ring-2 ring-primary/20 ring-offset-2",
4104
4103
  i + 1 <= props.currentStep ? "bg-primary text-primary-foreground " : "bg-primary/20"
4105
4104
  )
@@ -4386,7 +4385,7 @@ var HawaDatepicker = () => {
4386
4385
  // src/elements/DragDropImages.tsx
4387
4386
  import React37, { useEffect as useEffect11, useState as useState18 } from "react";
4388
4387
  import { useDropzone } from "react-dropzone";
4389
- import clsx14 from "clsx";
4388
+ import clsx13 from "clsx";
4390
4389
  var DragDropImages = ({
4391
4390
  texts,
4392
4391
  files,
@@ -4551,7 +4550,7 @@ var DragDropImages = ({
4551
4550
  return /* @__PURE__ */ React37.createElement("div", null, label && /* @__PURE__ */ React37.createElement("div", { className: "mb-2 block text-sm font-medium text-gray-900 dark:text-gray-300" }, label), /* @__PURE__ */ React37.createElement(
4552
4551
  "div",
4553
4552
  {
4554
- className: clsx14(
4553
+ className: clsx13(
4555
4554
  "flex flex-col justify-center rounded border border-dashed bg-gray-50 p-6 transition-all hover:bg-gray-100 dark:bg-gray-950 dark:hover:bg-gray-800 ",
4556
4555
  isDragActive ? "bg-gray-200 dark:bg-gray-700" : "bg-background"
4557
4556
  )
@@ -4626,7 +4625,7 @@ import React39 from "react";
4626
4625
 
4627
4626
  // src/elements/SubsectionList.tsx
4628
4627
  import React40, { useState as useState19 } from "react";
4629
- import clsx15 from "clsx";
4628
+ import clsx14 from "clsx";
4630
4629
  var SubsectionList = ({ subsections }) => {
4631
4630
  const [selectedSection, setSelectedSection] = useState19(null);
4632
4631
  return /* @__PURE__ */ React40.createElement("div", { className: "w-full max-w-2xs rounded bg-layoutPrimary-500 p-4 " }, subsections.map((ss, i) => /* @__PURE__ */ React40.createElement("div", { key: i, className: "my-0" }, ss.title && /* @__PURE__ */ React40.createElement("div", { className: "my-4 font-bold" }, ss.title), ss.sections.map((s, i2) => /* @__PURE__ */ React40.createElement(
@@ -4654,7 +4653,7 @@ var SubsectionItem = ({
4654
4653
  "div",
4655
4654
  {
4656
4655
  onClick: onItemClick,
4657
- className: clsx15(
4656
+ className: clsx14(
4658
4657
  "flex w-full cursor-pointer flex-row items-center justify-between gap-2 rounded p-2 transition-all ",
4659
4658
  selected === value ? "bg-primary text-white hover:bg-primary" : "hover:bg-layoutPrimary-300"
4660
4659
  )
@@ -4693,7 +4692,7 @@ var UsageCard = (props) => {
4693
4692
 
4694
4693
  // src/elements/InvoiceAccordion.tsx
4695
4694
  import React42, { useState as useState20 } from "react";
4696
- import clsx16 from "clsx";
4695
+ import clsx15 from "clsx";
4697
4696
  var InvoiceAccordion = ({
4698
4697
  direction = "ltr",
4699
4698
  texts = {
@@ -4708,7 +4707,7 @@ var InvoiceAccordion = ({
4708
4707
  const InvoiceItemProp = (props2) => /* @__PURE__ */ React42.createElement(
4709
4708
  "div",
4710
4709
  {
4711
- className: clsx16(
4710
+ className: clsx15(
4712
4711
  props2.start ? "items-start" : "items-end",
4713
4712
  "flex w-full flex-col"
4714
4713
  )
@@ -4720,7 +4719,7 @@ var InvoiceAccordion = ({
4720
4719
  return /* @__PURE__ */ React42.createElement("div", { className: "flex w-full flex-col" }, /* @__PURE__ */ React42.createElement("div", { className: "flex w-full flex-row items-center gap-2 border p-4 " }, props.invoiceActions && /* @__PURE__ */ React42.createElement(
4721
4720
  "div",
4722
4721
  {
4723
- className: clsx16(
4722
+ className: clsx15(
4724
4723
  "transition-all hover:cursor-pointer ",
4725
4724
  direction === "rtl" ? "rotate-180" : "",
4726
4725
  expanded ? "rotate-90" : ""
@@ -4777,7 +4776,7 @@ var InvoiceAccordion = ({
4777
4776
  ))), expanded && /* @__PURE__ */ React42.createElement(
4778
4777
  "div",
4779
4778
  {
4780
- className: clsx16(
4779
+ className: clsx15(
4781
4780
  expanded ? "h-full" : "h-0 border-none p-0 px-4",
4782
4781
  "flex h-auto flex-col gap-4 overflow-clip border border-t-0 bg-gray-50 p-4 transition-all"
4783
4782
  )
@@ -4808,7 +4807,7 @@ var InvoiceAccordion = ({
4808
4807
 
4809
4808
  // src/elements/UserFeedback.tsx
4810
4809
  import React43, { useEffect as useEffect12, useRef as useRef7, useState as useState21 } from "react";
4811
- import clsx17 from "clsx";
4810
+ import clsx16 from "clsx";
4812
4811
  var UserFeedback = ({
4813
4812
  position = "bottom-right",
4814
4813
  ...props
@@ -4842,12 +4841,12 @@ var UserFeedback = ({
4842
4841
  "div",
4843
4842
  {
4844
4843
  ref: popUpRef,
4845
- className: clsx17("fixed bottom-4 ", boxPosition[position])
4844
+ className: clsx16("fixed bottom-4 ", boxPosition[position])
4846
4845
  },
4847
4846
  /* @__PURE__ */ React43.createElement(
4848
4847
  "div",
4849
4848
  {
4850
- className: clsx17(
4849
+ className: clsx16(
4851
4850
  "relative flex w-full max-w-sm flex-col gap-2 rounded border bg-background p-4 shadow-md transition-all",
4852
4851
  closed ? "opacity-0" : "opacity-100"
4853
4852
  )
@@ -4896,7 +4895,7 @@ var UserFeedback = ({
4896
4895
  clearTimeout(timeoutDestroy);
4897
4896
  }, 5300);
4898
4897
  },
4899
- className: clsx17(
4898
+ className: clsx16(
4900
4899
  "w-full cursor-pointer rounded border p-4 text-center transition-all ",
4901
4900
  clickedOption === op ? "bg-gray-500 text-white" : "border bg-background hover:bg-gray-300 dark:hover:bg-gray-700"
4902
4901
  )
@@ -4911,14 +4910,14 @@ var UserFeedback = ({
4911
4910
 
4912
4911
  // src/elements/ArrowCarousel.tsx
4913
4912
  import React44, { useEffect as useEffect13, useState as useState22 } from "react";
4914
- import clsx18 from "clsx";
4913
+ import clsx17 from "clsx";
4915
4914
  var Arrow3 = (props) => {
4916
4915
  return /* @__PURE__ */ React44.createElement(
4917
4916
  "svg",
4918
4917
  {
4919
4918
  onClick: props.onClick || (() => {
4920
4919
  }),
4921
- className: clsx18(
4920
+ className: clsx17(
4922
4921
  "h-6 w-6 shrink-0 transition-all disabled:bg-gray-200",
4923
4922
  props.direction === "right" ? "-rotate-90" : "rotate-90",
4924
4923
  props.disabled ? "text-gray-300" : "cursor-pointer hover:scale-150"
@@ -4984,7 +4983,7 @@ var ArrowCarousel = (props) => {
4984
4983
 
4985
4984
  // src/elements/FloatingComment.tsx
4986
4985
  import React45, { useRef as useRef8, useState as useState23, useEffect as useEffect14 } from "react";
4987
- import clsx19 from "clsx";
4986
+ import clsx18 from "clsx";
4988
4987
  var Property = (props) => {
4989
4988
  return /* @__PURE__ */ React45.createElement(
4990
4989
  "div",
@@ -5473,7 +5472,7 @@ var FloatingComment = (props) => {
5473
5472
  return "ltr";
5474
5473
  }
5475
5474
  };
5476
- return /* @__PURE__ */ React45.createElement("div", { className: "align-center box-border flex h-min w-[400px] flex-col items-center justify-center rounded shadow-md" }, /* @__PURE__ */ React45.createElement("div", { className: clsx19("flex w-full flex-row justify-start p-2") }, Object.entries(stylers).map(([id, data]) => {
5475
+ return /* @__PURE__ */ React45.createElement("div", { className: "align-center box-border flex h-min w-[400px] flex-col items-center justify-center rounded shadow-md" }, /* @__PURE__ */ React45.createElement("div", { className: clsx18("flex w-full flex-row justify-start p-2") }, Object.entries(stylers).map(([id, data]) => {
5477
5476
  return /* @__PURE__ */ React45.createElement(
5478
5477
  Property,
5479
5478
  {
@@ -5763,7 +5762,7 @@ var FloatingCommentExec = (props) => {
5763
5762
 
5764
5763
  // src/elements/BackToTop.tsx
5765
5764
  import React48, { useState as useState26, useEffect as useEffect16, useRef as useRef10 } from "react";
5766
- import { clsx as clsx20 } from "clsx";
5765
+ import { clsx as clsx19 } from "clsx";
5767
5766
  var BackToTop = ({ ...props }) => {
5768
5767
  const [visible, setVisible] = useState26(false);
5769
5768
  const [rect, _setRect] = useState26(null);
@@ -5837,7 +5836,7 @@ var BackToTop = ({ ...props }) => {
5837
5836
  /* @__PURE__ */ React48.createElement(
5838
5837
  "svg",
5839
5838
  {
5840
- className: clsx20(
5839
+ className: clsx19(
5841
5840
  "h-6 w-6 shrink-0 rotate-180 transition-all disabled:bg-gray-200"
5842
5841
  ),
5843
5842
  "aria-label": "Arrow Icon",
@@ -5863,7 +5862,7 @@ var Timeline = (props) => {
5863
5862
 
5864
5863
  // src/elements/HawaPinInput.tsx
5865
5864
  import React51, { useEffect as useEffect17, useState as useState27 } from "react";
5866
- import clsx21 from "clsx";
5865
+ import clsx20 from "clsx";
5867
5866
  var HawaPinInput = ({
5868
5867
  label,
5869
5868
  icon,
@@ -5915,7 +5914,7 @@ var HawaPinInput = ({
5915
5914
  value,
5916
5915
  id: `input-${index}`,
5917
5916
  pattern: "[0-9]*",
5918
- className: clsx21(
5917
+ className: clsx20(
5919
5918
  "h-10 rounded border bg-background text-center",
5920
5919
  width === "full" ? "w-full" : "w-10"
5921
5920
  ),
@@ -5929,7 +5928,7 @@ var HawaPinInput = ({
5929
5928
 
5930
5929
  // src/elements/HawaItemCard.tsx
5931
5930
  import React52, { useEffect as useEffect18, useState as useState28 } from "react";
5932
- import clsx22 from "clsx";
5931
+ import clsx21 from "clsx";
5933
5932
  var HawaItemCard = ({
5934
5933
  actions,
5935
5934
  counts,
@@ -5973,14 +5972,14 @@ var HawaItemCard = ({
5973
5972
  return /* @__PURE__ */ React52.createElement(
5974
5973
  "div",
5975
5974
  {
5976
- className: clsx22(defaultStyle, orientationStyles[orientation]),
5975
+ className: clsx21(defaultStyle, orientationStyles[orientation]),
5977
5976
  ...props
5978
5977
  },
5979
5978
  cardImage && /* @__PURE__ */ React52.createElement("div", { className: "group relative overflow-clip" }, /* @__PURE__ */ React52.createElement(
5980
5979
  "img",
5981
5980
  {
5982
5981
  src: "https://via.placeholder.com/50",
5983
- className: clsx22(
5982
+ className: clsx21(
5984
5983
  imageStyles[orientation],
5985
5984
  clickableImage ? "overflow-clip transition-all group-hover:blur-lg" : ""
5986
5985
  )
@@ -6002,7 +6001,7 @@ var HawaItemCard = ({
6002
6001
  trigger: /* @__PURE__ */ React52.createElement(
6003
6002
  "div",
6004
6003
  {
6005
- className: clsx22(headerActionsButtonStyle),
6004
+ className: clsx21(headerActionsButtonStyle),
6006
6005
  onClick: handleOpenActionHeader
6007
6006
  },
6008
6007
  /* @__PURE__ */ React52.createElement("span", { className: "sr-only" }, "Open dropdown"),
@@ -6021,7 +6020,7 @@ var HawaItemCard = ({
6021
6020
  )), header && /* @__PURE__ */ React52.createElement("h5", { className: "mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white" }, header), content && /* @__PURE__ */ React52.createElement("span", { className: "w-full font-normal text-gray-700 dark:text-gray-400" }, content), actions || counts ? /* @__PURE__ */ React52.createElement(
6022
6021
  "div",
6023
6022
  {
6024
- className: clsx22(
6023
+ className: clsx21(
6025
6024
  "mt-3 flex items-center rounded-b-lg dark:text-white ",
6026
6025
  actions && counts ? "justify-between" : "justify-end"
6027
6026
  )
@@ -6033,7 +6032,7 @@ var HawaItemCard = ({
6033
6032
  };
6034
6033
 
6035
6034
  // src/elements/HawaPricingCard.tsx
6036
- import clsx23 from "clsx";
6035
+ import clsx22 from "clsx";
6037
6036
  import React53 from "react";
6038
6037
  var HawaPricingCard = ({
6039
6038
  size = "medium",
@@ -6051,7 +6050,7 @@ var HawaPricingCard = ({
6051
6050
  "div",
6052
6051
  {
6053
6052
  dir: isArabic ? "rtl" : "ltr",
6054
- className: clsx23(
6053
+ className: clsx22(
6055
6054
  currentPlan ? "border-primary" : "bg-background",
6056
6055
  cardSizes[size],
6057
6056
  "flex flex-col gap-4 rounded border-2 p-4"
@@ -6093,7 +6092,7 @@ var HawaPricingCard = ({
6093
6092
  };
6094
6093
 
6095
6094
  // src/elements/HawaAdCard.tsx
6096
- import clsx24 from "clsx";
6095
+ import clsx23 from "clsx";
6097
6096
  import React54, { useState as useState29, useEffect as useEffect19, useRef as useRef11 } from "react";
6098
6097
  var HawaAdCard = ({ orientation, ...props }) => {
6099
6098
  const adRef = useRef11(null);
@@ -6125,7 +6124,7 @@ var HawaAdCard = ({ orientation, ...props }) => {
6125
6124
  return /* @__PURE__ */ React54.createElement("div", { ref: adRef }, /* @__PURE__ */ React54.createElement(
6126
6125
  "div",
6127
6126
  {
6128
- className: clsx24(cardStyles[orientation], "dark:text-white"),
6127
+ className: clsx23(cardStyles[orientation], "dark:text-white"),
6129
6128
  ...props
6130
6129
  },
6131
6130
  /* @__PURE__ */ React54.createElement("div", { className: "flex aspect-square w-full max-w-fit items-start " }, /* @__PURE__ */ React54.createElement(
@@ -6157,7 +6156,7 @@ var HawaAdCard = ({ orientation, ...props }) => {
6157
6156
  };
6158
6157
 
6159
6158
  // src/elements/HawaLandingCard.tsx
6160
- import clsx25 from "clsx";
6159
+ import clsx24 from "clsx";
6161
6160
  import React55 from "react";
6162
6161
  var HawaLandingCard = ({
6163
6162
  orientation = "horizontal",
@@ -6174,7 +6173,7 @@ var HawaLandingCard = ({
6174
6173
  return /* @__PURE__ */ React55.createElement(
6175
6174
  "div",
6176
6175
  {
6177
- className: clsx25(
6176
+ className: clsx24(
6178
6177
  cardStyles[orientation],
6179
6178
  "flex flex-col p-10",
6180
6179
  "relative overflow-hidden dark:text-white",
@@ -6198,7 +6197,7 @@ var HawaLandingCard = ({
6198
6197
 
6199
6198
  // src/elements/HawaButton.tsx
6200
6199
  import React56, { useState as useState30 } from "react";
6201
- import clsx26 from "clsx";
6200
+ import clsx25 from "clsx";
6202
6201
  var disabledSyles = "cursor-default pointer-events-none";
6203
6202
  var disabledVariantSyles = {
6204
6203
  contained: "text-gray-300 bg-gray-100",
@@ -6283,7 +6282,7 @@ var HawaButton = ({
6283
6282
  return /* @__PURE__ */ React56.createElement(
6284
6283
  "div",
6285
6284
  {
6286
- className: clsx26(
6285
+ className: clsx25(
6287
6286
  "relative",
6288
6287
  margins !== "none" ? `my-${margins}` : "m-0",
6289
6288
  containerWidthStyles[width]
@@ -6300,7 +6299,7 @@ var HawaButton = ({
6300
6299
  /* @__PURE__ */ React56.createElement(
6301
6300
  "button",
6302
6301
  {
6303
- className: disabled ? clsx26(
6302
+ className: disabled ? clsx25(
6304
6303
  className,
6305
6304
  baseStyles,
6306
6305
  edgeCorner ? "rounded-inner" : "rounded",
@@ -6309,7 +6308,7 @@ var HawaButton = ({
6309
6308
  widthStyles[width],
6310
6309
  disabledSyles,
6311
6310
  disabledVariantSyles[variant]
6312
- ) : clsx26(
6311
+ ) : clsx25(
6313
6312
  className,
6314
6313
  baseStyles,
6315
6314
  edgeCorner ? "rounded-inner" : "rounded",
@@ -6326,7 +6325,7 @@ var HawaButton = ({
6326
6325
  ) : /* @__PURE__ */ React56.createElement(
6327
6326
  "button",
6328
6327
  {
6329
- className: disabled ? clsx26(
6328
+ className: disabled ? clsx25(
6330
6329
  className,
6331
6330
  baseStyles,
6332
6331
  edgeCorner ? "rounded-inner" : "rounded",
@@ -6335,7 +6334,7 @@ var HawaButton = ({
6335
6334
  widthStyles[width],
6336
6335
  disabledSyles,
6337
6336
  disabledVariantSyles[variant]
6338
- ) : clsx26(
6337
+ ) : clsx25(
6339
6338
  className,
6340
6339
  "overflow-x-clip",
6341
6340
  baseStyles,
@@ -6351,7 +6350,7 @@ var HawaButton = ({
6351
6350
  !isLoading ? /* @__PURE__ */ React56.createElement(
6352
6351
  "div",
6353
6352
  {
6354
- className: clsx26(
6353
+ className: clsx25(
6355
6354
  " s flex flex-col-reverse items-start justify-center gap-4 transition-all",
6356
6355
  isClicked && feedback ? " -translate-y-8 pb-1 pt-1" : "translate-y-0"
6357
6356
  )
@@ -6363,7 +6362,7 @@ var HawaButton = ({
6363
6362
  badge && /* @__PURE__ */ React56.createElement(
6364
6363
  "div",
6365
6364
  {
6366
- className: clsx26(
6365
+ className: clsx25(
6367
6366
  typeof badge === "boolean" ? "h-5 w-5" : typeof badge === "string" ? "h-5 w-7" : "h-6 w-6",
6368
6367
  "absolute -right-2 -top-2 inline-flex select-none items-center justify-center rounded-full border-2 border-white bg-red-500 text-[9px] font-bold text-white dark:border-gray-900"
6369
6368
  )
@@ -6478,16 +6477,130 @@ var ActionCard = (props) => {
6478
6477
  ));
6479
6478
  };
6480
6479
 
6481
- // src/elements/Carousel.tsx
6480
+ // src/elements/StickyFeatures.tsx
6482
6481
  import React59 from "react";
6482
+ var StickyFeatures = (props) => {
6483
+ return /* @__PURE__ */ React59.createElement("div", { className: "bg-white py-24 sm:py-32" }, /* @__PURE__ */ React59.createElement("div", { className: "mx-auto flex max-w-5xl flex-col items-start gap-10 px-6 md:flex-row lg:px-8" }, /* @__PURE__ */ React59.createElement("div", { className: "w-full md:sticky md:top-10 md:w-[28rem]" }, /* @__PURE__ */ React59.createElement("h2", { className: "text-lg font-semibold leading-8 tracking-tight text-indigo-600" }, props.tag), /* @__PURE__ */ React59.createElement("p", { className: "mt-2 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl" }, props.title), /* @__PURE__ */ React59.createElement("p", { className: "mb-2 mt-6 text-base leading-7 text-gray-600" }, props.description)), /* @__PURE__ */ React59.createElement("div", { className: "mt-5 w-full min-w-0 flex-1 md:mt-0" }, /* @__PURE__ */ React59.createElement("dl", { className: "grid grid-cols-1 gap-x-8 gap-y-10 md:max-w-xl lg:max-w-none lg:gap-y-16" }, props.features.map((f) => /* @__PURE__ */ React59.createElement("div", { className: "relative rounded-lg bg-gray-50 p-10" }, /* @__PURE__ */ React59.createElement("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-indigo-600" }, f.icon), /* @__PURE__ */ React59.createElement("dt", { className: "mt-4 text-lg font-semibold leading-7 text-gray-900" }, f.title), /* @__PURE__ */ React59.createElement("dd", { className: "mt-2 text-base leading-7 text-gray-600" }, f.description)))))));
6484
+ };
6485
+
6486
+ // src/elements/UserReferralSource.tsx
6487
+ import React61, { useEffect as useEffect20, useRef as useRef12, useState as useState32 } from "react";
6488
+ import clsx26 from "clsx";
6489
+
6490
+ // src/elements/Textarea.tsx
6491
+ import * as React60 from "react";
6492
+ var Textarea = React60.forwardRef(
6493
+ ({ className, label, ...props }, ref) => {
6494
+ return /* @__PURE__ */ React60.createElement(React60.Fragment, null, label && /* @__PURE__ */ React60.createElement(Label, { htmlFor: props.id }, label), /* @__PURE__ */ React60.createElement(
6495
+ "textarea",
6496
+ {
6497
+ className: cn(
6498
+ "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
6499
+ className
6500
+ ),
6501
+ ref,
6502
+ ...props
6503
+ }
6504
+ ));
6505
+ }
6506
+ );
6507
+ Textarea.displayName = "Textarea";
6508
+
6509
+ // src/elements/UserReferralSource.tsx
6510
+ var UserReferralSource = ({
6511
+ position = "bottom-right",
6512
+ ...props
6513
+ }) => {
6514
+ const [closed, setClosed] = useState32(false);
6515
+ const [answered, setAnswered] = useState32(false);
6516
+ const [clickedOption, setClickedOption] = useState32(null);
6517
+ const [closingTimer, setClosingTimer] = useState32(5);
6518
+ const popUpRef = useRef12(null);
6519
+ const boxPosition = {
6520
+ "bottom-right": "right-4",
6521
+ "bottom-left": "left-4"
6522
+ };
6523
+ useEffect20(() => {
6524
+ const timeoutHide = setTimeout(() => {
6525
+ if (closingTimer >= 0) {
6526
+ setClosingTimer(closingTimer - 1);
6527
+ }
6528
+ }, 1e3);
6529
+ return () => {
6530
+ clearTimeout(timeoutHide);
6531
+ };
6532
+ }, [closingTimer]);
6533
+ const slowClose = () => {
6534
+ setClosed(true);
6535
+ setTimeout(() => {
6536
+ popUpRef.current.removeChild(popUpRef.current.children[0]);
6537
+ }, 200);
6538
+ };
6539
+ return /* @__PURE__ */ React61.createElement(
6540
+ Card,
6541
+ {
6542
+ ref: popUpRef,
6543
+ className: clsx26("fixed bottom-4 p-4 ", boxPosition[position])
6544
+ },
6545
+ /* @__PURE__ */ React61.createElement(
6546
+ "button",
6547
+ {
6548
+ type: "button",
6549
+ className: "absolute right-2 top-2 inline-flex h-8 w-8 rounded p-1.5 text-gray-400 transition-all hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white",
6550
+ "data-dismiss-target": "#toast-default",
6551
+ "aria-label": "Close",
6552
+ onClick: () => slowClose()
6553
+ },
6554
+ /* @__PURE__ */ React61.createElement(
6555
+ "svg",
6556
+ {
6557
+ "aria-hidden": "true",
6558
+ className: "h-5 w-5",
6559
+ fill: "currentColor",
6560
+ viewBox: "0 0 20 20"
6561
+ },
6562
+ /* @__PURE__ */ React61.createElement(
6563
+ "path",
6564
+ {
6565
+ fillRule: "evenodd",
6566
+ 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",
6567
+ clipRule: "evenodd"
6568
+ }
6569
+ )
6570
+ )
6571
+ ),
6572
+ /* @__PURE__ */ React61.createElement(CardContent, { headless: true }, /* @__PURE__ */ React61.createElement(
6573
+ "div",
6574
+ {
6575
+ className: clsx26(
6576
+ "flex flex-col gap-4",
6577
+ // "relative flex w-full max-w-sm flex-col gap-2 rounded border bg-background p-4 shadow-md transition-all",
6578
+ closed ? "opacity-0" : "opacity-100"
6579
+ )
6580
+ },
6581
+ /* @__PURE__ */ React61.createElement("div", { className: "mt-4 font-bold" }, props.question),
6582
+ /* @__PURE__ */ React61.createElement("div", { className: "flex w-full flex-row gap-1 rounded " }, /* @__PURE__ */ React61.createElement(
6583
+ HawaRadio,
6584
+ {
6585
+ orientation: "vertical",
6586
+ options: props.options
6587
+ }
6588
+ )),
6589
+ /* @__PURE__ */ React61.createElement("div", null, /* @__PURE__ */ React61.createElement(Textarea, null))
6590
+ ), /* @__PURE__ */ React61.createElement(Button, { className: "mt-4 w-full" }, "Submit"))
6591
+ );
6592
+ };
6593
+
6594
+ // src/elements/Carousel.tsx
6595
+ import React62 from "react";
6483
6596
 
6484
6597
  // src/hooks/useCarousel.ts
6485
- import { useState as useState32, useRef as useRef12 } from "react";
6598
+ import { useState as useState33, useRef as useRef13 } from "react";
6486
6599
  var useCarousel = (imageWidth) => {
6487
- const [isDragging, setIsDragging] = useState32(false);
6488
- const [startDragX, setStartDragX] = useState32(0);
6489
- const [scrollLeft, setScrollLeft] = useState32(0);
6490
- const containerRef = useRef12(null);
6600
+ const [isDragging, setIsDragging] = useState33(false);
6601
+ const [startDragX, setStartDragX] = useState33(0);
6602
+ const [scrollLeft, setScrollLeft] = useState33(0);
6603
+ const containerRef = useRef13(null);
6491
6604
  const findClosestSnapPoint = (scrollLeft2) => {
6492
6605
  return Math.round(scrollLeft2 / imageWidth) * imageWidth;
6493
6606
  };
@@ -6542,7 +6655,7 @@ var Carousel = ({ images }) => {
6542
6655
  handleMouseUp,
6543
6656
  handleMouseMove
6544
6657
  } = useCarousel_default(imageWidth);
6545
- return /* @__PURE__ */ React59.createElement(
6658
+ return /* @__PURE__ */ React62.createElement(
6546
6659
  "div",
6547
6660
  {
6548
6661
  className: "flex cursor-pointer snap-x gap-4 overflow-x-hidden justify-center items-center",
@@ -6552,7 +6665,7 @@ var Carousel = ({ images }) => {
6552
6665
  onMouseMove: handleMouseMove,
6553
6666
  ref: containerRef
6554
6667
  },
6555
- images.map((image, index) => /* @__PURE__ */ React59.createElement("div", { key: index, className: "w-[1000px] h-96 flex-shrink-0" }, /* @__PURE__ */ React59.createElement(
6668
+ images.map((image, index) => /* @__PURE__ */ React62.createElement("div", { key: index, className: "w-[1000px] h-96 flex-shrink-0" }, /* @__PURE__ */ React62.createElement(
6556
6669
  "img",
6557
6670
  {
6558
6671
  src: image,
@@ -6565,10 +6678,10 @@ var Carousel = ({ images }) => {
6565
6678
  };
6566
6679
 
6567
6680
  // src/elements/Input.tsx
6568
- import * as React60 from "react";
6569
- var Input = React60.forwardRef(
6681
+ import * as React63 from "react";
6682
+ var Input = React63.forwardRef(
6570
6683
  ({ className, preview, type, ...props }, ref) => {
6571
- return /* @__PURE__ */ React60.createElement(
6684
+ return /* @__PURE__ */ React63.createElement(
6572
6685
  "input",
6573
6686
  {
6574
6687
  type,
@@ -6587,19 +6700,19 @@ var Input = React60.forwardRef(
6587
6700
  Input.displayName = "Input";
6588
6701
 
6589
6702
  // src/elements/InterfaceSettings.tsx
6590
- import React61, { useState as useState34 } from "react";
6703
+ import React64, { useState as useState35 } from "react";
6591
6704
  var InterfaceSettings = ({
6592
6705
  orientation = "horizontal",
6593
6706
  width = "default",
6594
6707
  ...props
6595
6708
  }) => {
6596
- const [color, setColor] = useState34(props.currentColorMode);
6597
- const [language, setLanguage] = useState34(props.currentLanguage);
6709
+ const [color, setColor] = useState35(props.currentColorMode);
6710
+ const [language, setLanguage] = useState35(props.currentLanguage);
6598
6711
  let orientationStyle = {
6599
6712
  horizontal: "flex flex-row justify-between",
6600
6713
  vertical: "flex flex-col items-center gap-2"
6601
6714
  };
6602
- return /* @__PURE__ */ React61.createElement("div", { className: cn(orientationStyle[orientation]) }, /* @__PURE__ */ React61.createElement(
6715
+ return /* @__PURE__ */ React64.createElement("div", { className: cn(orientationStyle[orientation]) }, /* @__PURE__ */ React64.createElement(
6603
6716
  HawaRadio,
6604
6717
  {
6605
6718
  width,
@@ -6614,7 +6727,7 @@ var InterfaceSettings = ({
6614
6727
  { value: "en", label: "English" }
6615
6728
  ]
6616
6729
  }
6617
- ), /* @__PURE__ */ React61.createElement(
6730
+ ), /* @__PURE__ */ React64.createElement(
6618
6731
  HawaRadio,
6619
6732
  {
6620
6733
  width,
@@ -6627,7 +6740,7 @@ var InterfaceSettings = ({
6627
6740
  options: [
6628
6741
  {
6629
6742
  value: "light",
6630
- label: /* @__PURE__ */ React61.createElement(
6743
+ label: /* @__PURE__ */ React64.createElement(
6631
6744
  "svg",
6632
6745
  {
6633
6746
  width: "15",
@@ -6637,7 +6750,7 @@ var InterfaceSettings = ({
6637
6750
  xmlns: "http://www.w3.org/2000/svg",
6638
6751
  className: "h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90"
6639
6752
  },
6640
- /* @__PURE__ */ React61.createElement(
6753
+ /* @__PURE__ */ React64.createElement(
6641
6754
  "path",
6642
6755
  {
6643
6756
  d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",
@@ -6648,7 +6761,7 @@ var InterfaceSettings = ({
6648
6761
  },
6649
6762
  {
6650
6763
  value: "dark",
6651
- label: /* @__PURE__ */ React61.createElement(
6764
+ label: /* @__PURE__ */ React64.createElement(
6652
6765
  "svg",
6653
6766
  {
6654
6767
  xmlns: "http://www.w3.org/2000/svg",
@@ -6659,7 +6772,7 @@ var InterfaceSettings = ({
6659
6772
  stroke: "currentColor",
6660
6773
  className: "h-[1.2rem] w-[1.2rem] transition-all dark:rotate-0 dark:scale-100"
6661
6774
  },
6662
- /* @__PURE__ */ React61.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
6775
+ /* @__PURE__ */ React64.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
6663
6776
  )
6664
6777
  }
6665
6778
  ]
@@ -6668,9 +6781,9 @@ var InterfaceSettings = ({
6668
6781
  };
6669
6782
 
6670
6783
  // src/elements/Popover.tsx
6671
- import * as React62 from "react";
6784
+ import * as React65 from "react";
6672
6785
  import * as PopoverPrimitive from "@radix-ui/react-popover";
6673
- var PopoverContent = React62.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React62.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React62.createElement(
6786
+ var PopoverContent = React65.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React65.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React65.createElement(
6674
6787
  PopoverPrimitive.Content,
6675
6788
  {
6676
6789
  ref,
@@ -6691,7 +6804,7 @@ var Popover = ({
6691
6804
  align = "center",
6692
6805
  side,
6693
6806
  sideOffset = 4
6694
- }) => /* @__PURE__ */ React62.createElement(PopoverPrimitive.Root, null, /* @__PURE__ */ React62.createElement(PopoverPrimitive.Trigger, null, trigger), /* @__PURE__ */ React62.createElement(
6807
+ }) => /* @__PURE__ */ React65.createElement(PopoverPrimitive.Root, null, /* @__PURE__ */ React65.createElement(PopoverPrimitive.Trigger, null, trigger), /* @__PURE__ */ React65.createElement(
6695
6808
  PopoverContent,
6696
6809
  {
6697
6810
  side,
@@ -6703,10 +6816,10 @@ var Popover = ({
6703
6816
  ));
6704
6817
 
6705
6818
  // src/elements/Tabs.tsx
6706
- import * as React63 from "react";
6819
+ import * as React66 from "react";
6707
6820
  import * as TabsPrimitive from "@radix-ui/react-tabs";
6708
- var TabsContext = React63.createContext({ orientation: "vertical" });
6709
- var Tabs = React63.forwardRef(({ className, orientation, ...props }, ref) => /* @__PURE__ */ React63.createElement(
6821
+ var TabsContext = React66.createContext({ orientation: "vertical" });
6822
+ var Tabs = React66.forwardRef(({ className, orientation, ...props }, ref) => /* @__PURE__ */ React66.createElement(
6710
6823
  TabsPrimitive.Root,
6711
6824
  {
6712
6825
  ref,
@@ -6717,12 +6830,12 @@ var Tabs = React63.forwardRef(({ className, orientation, ...props }, ref) => /*
6717
6830
  ),
6718
6831
  ...props
6719
6832
  },
6720
- /* @__PURE__ */ React63.createElement(TabsContext.Provider, { value: { orientation } }, props.children)
6833
+ /* @__PURE__ */ React66.createElement(TabsContext.Provider, { value: { orientation } }, props.children)
6721
6834
  ));
6722
6835
  Tabs.displayName = TabsPrimitive.Root.displayName;
6723
- var TabsList = React63.forwardRef(({ className, ...props }, ref) => {
6724
- const { orientation } = React63.useContext(TabsContext);
6725
- return /* @__PURE__ */ React63.createElement(
6836
+ var TabsList = React66.forwardRef(({ className, ...props }, ref) => {
6837
+ const { orientation } = React66.useContext(TabsContext);
6838
+ return /* @__PURE__ */ React66.createElement(
6726
6839
  TabsPrimitive.List,
6727
6840
  {
6728
6841
  ref,
@@ -6736,8 +6849,8 @@ var TabsList = React63.forwardRef(({ className, ...props }, ref) => {
6736
6849
  );
6737
6850
  });
6738
6851
  TabsList.displayName = TabsPrimitive.List.displayName;
6739
- var TabsTrigger = React63.forwardRef(({ className, ...props }, ref) => {
6740
- return /* @__PURE__ */ React63.createElement(
6852
+ var TabsTrigger = React66.forwardRef(({ className, ...props }, ref) => {
6853
+ return /* @__PURE__ */ React66.createElement(
6741
6854
  TabsPrimitive.Trigger,
6742
6855
  {
6743
6856
  ref,
@@ -6750,7 +6863,7 @@ var TabsTrigger = React63.forwardRef(({ className, ...props }, ref) => {
6750
6863
  );
6751
6864
  });
6752
6865
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
6753
- var TabsContent = React63.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React63.createElement(
6866
+ var TabsContent = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
6754
6867
  TabsPrimitive.Content,
6755
6868
  {
6756
6869
  ref,
@@ -6763,30 +6876,11 @@ var TabsContent = React63.forwardRef(({ className, ...props }, ref) => /* @__PUR
6763
6876
  ));
6764
6877
  TabsContent.displayName = TabsPrimitive.Content.displayName;
6765
6878
 
6766
- // src/elements/Textarea.tsx
6767
- import * as React64 from "react";
6768
- var Textarea = React64.forwardRef(
6769
- ({ className, label, ...props }, ref) => {
6770
- return /* @__PURE__ */ React64.createElement(React64.Fragment, null, label && /* @__PURE__ */ React64.createElement(Label, { htmlFor: props.id }, label), /* @__PURE__ */ React64.createElement(
6771
- "textarea",
6772
- {
6773
- className: cn(
6774
- "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
6775
- className
6776
- ),
6777
- ref,
6778
- ...props
6779
- }
6780
- ));
6781
- }
6782
- );
6783
- Textarea.displayName = "Textarea";
6784
-
6785
6879
  // src/elements/Separator.tsx
6786
- import * as React65 from "react";
6880
+ import * as React67 from "react";
6787
6881
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
6788
- var Separator3 = React65.forwardRef(
6789
- ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ React65.createElement(
6882
+ var Separator3 = React67.forwardRef(
6883
+ ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ React67.createElement(
6790
6884
  SeparatorPrimitive.Root,
6791
6885
  {
6792
6886
  ref,
@@ -6804,7 +6898,7 @@ var Separator3 = React65.forwardRef(
6804
6898
  Separator3.displayName = SeparatorPrimitive.Root.displayName;
6805
6899
 
6806
6900
  // src/elements/Toast.tsx
6807
- import * as React66 from "react";
6901
+ import * as React68 from "react";
6808
6902
  import * as ToastPrimitives from "@radix-ui/react-toast";
6809
6903
  import { cva as cva3 } from "class-variance-authority";
6810
6904
  var toastVariants = cva3(
@@ -6829,7 +6923,7 @@ var toastVariants = cva3(
6829
6923
  }
6830
6924
  );
6831
6925
  var ToastProvider = ToastPrimitives.Provider;
6832
- var ToastViewport = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
6926
+ var ToastViewport = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React68.createElement(
6833
6927
  ToastPrimitives.Viewport,
6834
6928
  {
6835
6929
  ref,
@@ -6841,8 +6935,8 @@ var ToastViewport = React66.forwardRef(({ className, ...props }, ref) => /* @__P
6841
6935
  }
6842
6936
  ));
6843
6937
  ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
6844
- var Toast = React66.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
6845
- return /* @__PURE__ */ React66.createElement(
6938
+ var Toast = React68.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
6939
+ return /* @__PURE__ */ React68.createElement(
6846
6940
  ToastPrimitives.Root,
6847
6941
  {
6848
6942
  ref,
@@ -6857,8 +6951,8 @@ var Toast = React66.forwardRef(({ className, variant, severity = "none", directi
6857
6951
  );
6858
6952
  });
6859
6953
  Toast.displayName = ToastPrimitives.Root.displayName;
6860
- var ToastAction = React66.forwardRef(({ className, ...props }, ref) => {
6861
- return /* @__PURE__ */ React66.createElement(
6954
+ var ToastAction = React68.forwardRef(({ className, ...props }, ref) => {
6955
+ return /* @__PURE__ */ React68.createElement(
6862
6956
  ToastPrimitives.Action,
6863
6957
  {
6864
6958
  ref,
@@ -6875,7 +6969,7 @@ var ToastAction = React66.forwardRef(({ className, ...props }, ref) => {
6875
6969
  );
6876
6970
  });
6877
6971
  ToastAction.displayName = ToastPrimitives.Action.displayName;
6878
- var ToastClose = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
6972
+ var ToastClose = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React68.createElement(
6879
6973
  ToastPrimitives.Close,
6880
6974
  {
6881
6975
  ref,
@@ -6886,7 +6980,7 @@ var ToastClose = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE
6886
6980
  "toast-close": "",
6887
6981
  ...props
6888
6982
  },
6889
- /* @__PURE__ */ React66.createElement(
6983
+ /* @__PURE__ */ React68.createElement(
6890
6984
  "svg",
6891
6985
  {
6892
6986
  "aria-label": "Close Icon",
@@ -6895,7 +6989,7 @@ var ToastClose = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE
6895
6989
  fill: "currentColor",
6896
6990
  viewBox: "0 0 20 20"
6897
6991
  },
6898
- /* @__PURE__ */ React66.createElement(
6992
+ /* @__PURE__ */ React68.createElement(
6899
6993
  "path",
6900
6994
  {
6901
6995
  fillRule: "evenodd",
@@ -6906,7 +7000,7 @@ var ToastClose = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE
6906
7000
  )
6907
7001
  ));
6908
7002
  ToastClose.displayName = ToastPrimitives.Close.displayName;
6909
- var ToastTitle = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
7003
+ var ToastTitle = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React68.createElement(
6910
7004
  ToastPrimitives.Title,
6911
7005
  {
6912
7006
  ref,
@@ -6915,7 +7009,7 @@ var ToastTitle = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE
6915
7009
  }
6916
7010
  ));
6917
7011
  ToastTitle.displayName = ToastPrimitives.Title.displayName;
6918
- var ToastDescription = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
7012
+ var ToastDescription = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React68.createElement(
6919
7013
  ToastPrimitives.Description,
6920
7014
  {
6921
7015
  ref,
@@ -6926,10 +7020,10 @@ var ToastDescription = React66.forwardRef(({ className, ...props }, ref) => /* @
6926
7020
  ToastDescription.displayName = ToastPrimitives.Description.displayName;
6927
7021
 
6928
7022
  // src/elements/Toaster.tsx
6929
- import React68 from "react";
7023
+ import React70 from "react";
6930
7024
 
6931
7025
  // src/hooks/useToast.ts
6932
- import * as React67 from "react";
7026
+ import * as React69 from "react";
6933
7027
  var TOAST_LIMIT = 5;
6934
7028
  var TOAST_REMOVE_DELAY = 1e5;
6935
7029
  var count = 0;
@@ -7025,8 +7119,8 @@ function toast({ ...props }) {
7025
7119
  };
7026
7120
  }
7027
7121
  function useToast() {
7028
- const [state, setState] = React67.useState(memoryState);
7029
- React67.useEffect(() => {
7122
+ const [state, setState] = React69.useState(memoryState);
7123
+ React69.useEffect(() => {
7030
7124
  listeners.push(setState);
7031
7125
  return () => {
7032
7126
  const index = listeners.indexOf(setState);
@@ -7046,22 +7140,22 @@ function useToast() {
7046
7140
  function Toaster(props) {
7047
7141
  const { toasts } = useToast();
7048
7142
  let isRTL = props.direction === "rtl";
7049
- return /* @__PURE__ */ React68.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, toasts.map(function({ id, title, description, action, ...toastProps }) {
7050
- return /* @__PURE__ */ React68.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ React68.createElement("div", { className: "grid gap-1 text-start" }, title && /* @__PURE__ */ React68.createElement(ToastTitle, null, title), description && /* @__PURE__ */ React68.createElement(ToastDescription, null, description)), action, /* @__PURE__ */ React68.createElement(ToastClose, null));
7051
- }), /* @__PURE__ */ React68.createElement(ToastViewport, { className: cn("gap-2", isRTL && "fixed left-0") }));
7143
+ return /* @__PURE__ */ React70.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, toasts.map(function({ id, title, description, action, ...toastProps }) {
7144
+ return /* @__PURE__ */ React70.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ React70.createElement("div", { className: "grid gap-1 text-start" }, title && /* @__PURE__ */ React70.createElement(ToastTitle, null, title), description && /* @__PURE__ */ React70.createElement(ToastDescription, null, description)), action, /* @__PURE__ */ React70.createElement(ToastClose, null));
7145
+ }), /* @__PURE__ */ React70.createElement(ToastViewport, { className: cn("gap-2", isRTL && "fixed left-0") }));
7052
7146
  }
7053
7147
 
7054
7148
  // src/elements/Dialog.tsx
7055
- import * as React69 from "react";
7149
+ import * as React71 from "react";
7056
7150
  import * as DialogPrimitive from "@radix-ui/react-dialog";
7057
7151
  var Dialog = DialogPrimitive.Root;
7058
7152
  var DialogTrigger = DialogPrimitive.Trigger;
7059
7153
  var DialogPortal = ({
7060
7154
  className,
7061
7155
  ...props
7062
- }) => /* @__PURE__ */ React69.createElement(DialogPrimitive.Portal, { className: cn(className), ...props });
7156
+ }) => /* @__PURE__ */ React71.createElement(DialogPrimitive.Portal, { className: cn(className), ...props });
7063
7157
  DialogPortal.displayName = DialogPrimitive.Portal.displayName;
7064
- var DialogOverlay = React69.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React69.createElement(
7158
+ var DialogOverlay = React71.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React71.createElement(
7065
7159
  DialogPrimitive.Overlay,
7066
7160
  {
7067
7161
  ref,
@@ -7073,7 +7167,7 @@ var DialogOverlay = React69.forwardRef(({ className, ...props }, ref) => /* @__P
7073
7167
  }
7074
7168
  ));
7075
7169
  DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
7076
- var DialogContent = React69.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React69.createElement(DialogPortal, null, /* @__PURE__ */ React69.createElement(DialogOverlay, null), /* @__PURE__ */ React69.createElement(
7170
+ var DialogContent = React71.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React71.createElement(DialogPortal, null, /* @__PURE__ */ React71.createElement(DialogOverlay, null), /* @__PURE__ */ React71.createElement(
7077
7171
  DialogPrimitive.Content,
7078
7172
  {
7079
7173
  ref,
@@ -7084,7 +7178,7 @@ var DialogContent = React69.forwardRef(({ className, children, ...props }, ref)
7084
7178
  ...props
7085
7179
  },
7086
7180
  children,
7087
- /* @__PURE__ */ React69.createElement(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground" }, /* @__PURE__ */ React69.createElement(
7181
+ /* @__PURE__ */ React71.createElement(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground" }, /* @__PURE__ */ React71.createElement(
7088
7182
  "svg",
7089
7183
  {
7090
7184
  "aria-label": "Close Icon",
@@ -7093,7 +7187,7 @@ var DialogContent = React69.forwardRef(({ className, children, ...props }, ref)
7093
7187
  fill: "currentColor",
7094
7188
  viewBox: "0 0 20 20"
7095
7189
  },
7096
- /* @__PURE__ */ React69.createElement(
7190
+ /* @__PURE__ */ React71.createElement(
7097
7191
  "path",
7098
7192
  {
7099
7193
  fillRule: "evenodd",
@@ -7101,13 +7195,13 @@ var DialogContent = React69.forwardRef(({ className, children, ...props }, ref)
7101
7195
  clipRule: "evenodd"
7102
7196
  }
7103
7197
  )
7104
- ), /* @__PURE__ */ React69.createElement("span", { className: "sr-only" }, "Close"))
7198
+ ), /* @__PURE__ */ React71.createElement("span", { className: "sr-only" }, "Close"))
7105
7199
  )));
7106
7200
  DialogContent.displayName = DialogPrimitive.Content.displayName;
7107
7201
  var DialogHeader = ({
7108
7202
  className,
7109
7203
  ...props
7110
- }) => /* @__PURE__ */ React69.createElement(
7204
+ }) => /* @__PURE__ */ React71.createElement(
7111
7205
  "div",
7112
7206
  {
7113
7207
  className: cn(
@@ -7121,7 +7215,7 @@ DialogHeader.displayName = "DialogHeader";
7121
7215
  var DialogFooter = ({
7122
7216
  className,
7123
7217
  ...props
7124
- }) => /* @__PURE__ */ React69.createElement(
7218
+ }) => /* @__PURE__ */ React71.createElement(
7125
7219
  "div",
7126
7220
  {
7127
7221
  className: cn(
@@ -7132,7 +7226,7 @@ var DialogFooter = ({
7132
7226
  }
7133
7227
  );
7134
7228
  DialogFooter.displayName = "DialogFooter";
7135
- var DialogTitle = React69.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React69.createElement(
7229
+ var DialogTitle = React71.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React71.createElement(
7136
7230
  DialogPrimitive.Title,
7137
7231
  {
7138
7232
  ref,
@@ -7144,7 +7238,7 @@ var DialogTitle = React69.forwardRef(({ className, ...props }, ref) => /* @__PUR
7144
7238
  }
7145
7239
  ));
7146
7240
  DialogTitle.displayName = DialogPrimitive.Title.displayName;
7147
- var DialogDescription = React69.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React69.createElement(
7241
+ var DialogDescription = React71.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React71.createElement(
7148
7242
  DialogPrimitive.Description,
7149
7243
  {
7150
7244
  ref,
@@ -7155,32 +7249,32 @@ var DialogDescription = React69.forwardRef(({ className, ...props }, ref) => /*
7155
7249
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
7156
7250
 
7157
7251
  // src/layout/Box.tsx
7158
- import React70 from "react";
7252
+ import React72 from "react";
7159
7253
  var Box = (props) => {
7160
- return /* @__PURE__ */ React70.createElement("div", null, props.children);
7254
+ return /* @__PURE__ */ React72.createElement("div", null, props.children);
7161
7255
  };
7162
7256
 
7163
7257
  // src/layout/HawaBottomAppBar.tsx
7164
- import React71 from "react";
7258
+ import React73 from "react";
7165
7259
  var HawaBottomAppBar = (props) => {
7166
- return /* @__PURE__ */ React71.createElement("div", { className: "fixed bottom-0 top-auto left-0 m-0 w-full max-w-full p-1" }, /* @__PURE__ */ React71.createElement(
7260
+ return /* @__PURE__ */ React73.createElement("div", { className: "fixed bottom-0 top-auto left-0 m-0 w-full max-w-full p-1" }, /* @__PURE__ */ React73.createElement(
7167
7261
  "div",
7168
7262
  {
7169
7263
  className: "flex w-full flex-row items-center justify-evenly rounded bg-gray-200"
7170
7264
  },
7171
- props.appBarContent.map((singleContent, i) => /* @__PURE__ */ React71.createElement(
7265
+ props.appBarContent.map((singleContent, i) => /* @__PURE__ */ React73.createElement(
7172
7266
  "div",
7173
7267
  {
7174
7268
  key: i,
7175
7269
  className: "m-1 flex h-full w-full flex-col items-center justify-center rounded p-2 transition-all hover:cursor-pointer hover:bg-buttonPrimary-700 hover:text-white",
7176
7270
  onClick: singleContent.action
7177
7271
  },
7178
- /* @__PURE__ */ React71.createElement(
7272
+ /* @__PURE__ */ React73.createElement(
7179
7273
  "div",
7180
7274
  null,
7181
7275
  singleContent.icon
7182
7276
  ),
7183
- /* @__PURE__ */ React71.createElement(
7277
+ /* @__PURE__ */ React73.createElement(
7184
7278
  "div",
7185
7279
  {
7186
7280
  className: "mt-2 text-sm"
@@ -7192,13 +7286,13 @@ var HawaBottomAppBar = (props) => {
7192
7286
  };
7193
7287
 
7194
7288
  // src/layout/HawaSiteLayout.tsx
7195
- import React74, { useEffect as useEffect22, useRef as useRef14, useState as useState38 } from "react";
7289
+ import React76, { useEffect as useEffect23, useRef as useRef15, useState as useState39 } from "react";
7196
7290
  import clsx27 from "clsx";
7197
7291
 
7198
7292
  // src/hooks/useDiscloser.ts
7199
- import { useState as useState36 } from "react";
7293
+ import { useState as useState37 } from "react";
7200
7294
  var useDiscloser = (value = false) => {
7201
- const [open, setOpen] = useState36(value);
7295
+ const [open, setOpen] = useState37(value);
7202
7296
  const onOpen = () => setOpen(true);
7203
7297
  const onClose = () => setOpen(false);
7204
7298
  return {
@@ -7210,13 +7304,13 @@ var useDiscloser = (value = false) => {
7210
7304
  var useDiscloser_default = useDiscloser;
7211
7305
 
7212
7306
  // src/hooks/useBreakpoint.ts
7213
- import { useState as useState37, useEffect as useEffect21 } from "react";
7307
+ import { useState as useState38, useEffect as useEffect22 } from "react";
7214
7308
  var useBreakpoint = () => {
7215
- const [breakpoint, setBreakpoint] = useState37(window?.innerWidth);
7309
+ const [breakpoint, setBreakpoint] = useState38(window?.innerWidth);
7216
7310
  const resize = () => {
7217
7311
  setBreakpoint(window?.innerWidth);
7218
7312
  };
7219
- useEffect21(() => {
7313
+ useEffect22(() => {
7220
7314
  if (typeof window !== "undefined") {
7221
7315
  window?.addEventListener("resize", resize);
7222
7316
  return () => {
@@ -7234,19 +7328,19 @@ var HawaSiteLayout = ({
7234
7328
  navigationSize = "md",
7235
7329
  ...props
7236
7330
  }) => {
7237
- const [openSideMenu, setOpenSideMenu] = useState38(false);
7238
- const [openSubItem, setOpenSubItem] = useState38(false);
7331
+ const [openSideMenu, setOpenSideMenu] = useState39(false);
7332
+ const [openSubItem, setOpenSubItem] = useState39(false);
7239
7333
  const { isOpen, onClose, onOpen } = useDiscloser_default(false);
7240
- const ref = useRef14(null);
7241
- const drawerItemRef = useRef14(null);
7334
+ const ref = useRef15(null);
7335
+ const drawerItemRef = useRef15(null);
7242
7336
  let size;
7243
7337
  if (typeof window !== "undefined") {
7244
7338
  size = useBreakpoint_default();
7245
7339
  } else {
7246
7340
  size = 1200;
7247
7341
  }
7248
- const [keepOpen, setKeepOpen] = useState38(false);
7249
- useEffect22(() => {
7342
+ const [keepOpen, setKeepOpen] = useState39(false);
7343
+ useEffect23(() => {
7250
7344
  const handleClickOutside = (event) => {
7251
7345
  if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
7252
7346
  setOpenSideMenu(false);
@@ -7281,7 +7375,7 @@ var HawaSiteLayout = ({
7281
7375
  // "w-full",
7282
7376
  // "top-14 h-[calc(100%-3.5rem)]",
7283
7377
  ];
7284
- return /* @__PURE__ */ React74.createElement("div", { className: "h-full w-full" }, /* @__PURE__ */ React74.createElement(
7378
+ return /* @__PURE__ */ React76.createElement("div", { className: "h-full w-full" }, /* @__PURE__ */ React76.createElement(
7285
7379
  "div",
7286
7380
  {
7287
7381
  className: clsx27(
@@ -7294,7 +7388,7 @@ var HawaSiteLayout = ({
7294
7388
  direction === "rtl" ? "flex-row" : "flex-row-reverse"
7295
7389
  )
7296
7390
  },
7297
- size > 600 ? /* @__PURE__ */ React74.createElement("div", { className: "flex flex-row h-8 items-center gap-4 px-3" }, props.navItems?.map(({ label }, i) => /* @__PURE__ */ React74.createElement(
7391
+ size > 600 ? /* @__PURE__ */ React76.createElement("div", { className: "flex flex-row h-8 items-center gap-4 px-3" }, props.navItems?.map(({ label }, i) => /* @__PURE__ */ React76.createElement(
7298
7392
  "div",
7299
7393
  {
7300
7394
  onClick: () => setOpenSideMenu(!openSideMenu),
@@ -7302,13 +7396,13 @@ var HawaSiteLayout = ({
7302
7396
  className: "cursor-pointer rounded bg-none text-gray-600 transition-all hover:text-black"
7303
7397
  },
7304
7398
  label
7305
- ))) : /* @__PURE__ */ React74.createElement("div", { className: "flex items-center justify-center" }, /* @__PURE__ */ React74.createElement(
7399
+ ))) : /* @__PURE__ */ React76.createElement("div", { className: "flex items-center justify-center" }, /* @__PURE__ */ React76.createElement(
7306
7400
  "div",
7307
7401
  {
7308
7402
  onClick: () => setOpenSideMenu(!openSideMenu),
7309
7403
  className: "cursor-pointer rounded p-1 transition-all hover:bg-gray-100"
7310
7404
  },
7311
- /* @__PURE__ */ React74.createElement(
7405
+ /* @__PURE__ */ React76.createElement(
7312
7406
  "svg",
7313
7407
  {
7314
7408
  stroke: "currentColor",
@@ -7319,7 +7413,7 @@ var HawaSiteLayout = ({
7319
7413
  height: "1.6em",
7320
7414
  width: "1.6em"
7321
7415
  },
7322
- /* @__PURE__ */ React74.createElement(
7416
+ /* @__PURE__ */ React76.createElement(
7323
7417
  "path",
7324
7418
  {
7325
7419
  fillRule: "evenodd",
@@ -7329,15 +7423,15 @@ var HawaSiteLayout = ({
7329
7423
  )
7330
7424
  ),
7331
7425
  " "
7332
- ), props.pageTitle ? /* @__PURE__ */ React74.createElement("div", null, props.pageTitle) : /* @__PURE__ */ React74.createElement("div", null)),
7333
- /* @__PURE__ */ React74.createElement("div", { className: "h-full" }, /* @__PURE__ */ React74.createElement(
7426
+ ), props.pageTitle ? /* @__PURE__ */ React76.createElement("div", null, props.pageTitle) : /* @__PURE__ */ React76.createElement("div", null)),
7427
+ /* @__PURE__ */ React76.createElement("div", { className: "h-full" }, /* @__PURE__ */ React76.createElement(
7334
7428
  "img",
7335
7429
  {
7336
7430
  className: "h-full max-h-8 ",
7337
7431
  src: `https://sikka-images.s3.ap-southeast-1.amazonaws.com/seera/seera-horizontal-wordmark-${direction === "rtl" ? "ar" : "en"}-white.svg`
7338
7432
  }
7339
7433
  ))
7340
- ), /* @__PURE__ */ React74.createElement(
7434
+ ), /* @__PURE__ */ React76.createElement(
7341
7435
  "div",
7342
7436
  {
7343
7437
  className: clsx27(" relative top-14")
@@ -7347,17 +7441,17 @@ var HawaSiteLayout = ({
7347
7441
  };
7348
7442
 
7349
7443
  // src/layout/AppLayout.tsx
7350
- import React76, { useEffect as useEffect23, useRef as useRef15, useState as useState39 } from "react";
7444
+ import React78, { useEffect as useEffect24, useRef as useRef16, useState as useState40 } from "react";
7351
7445
  import clsx28 from "clsx";
7352
7446
 
7353
7447
  // src/layout/Sidebar.tsx
7354
- import * as React75 from "react";
7448
+ import * as React77 from "react";
7355
7449
  import * as AccordionPrimitive from "@radix-ui/react-accordion";
7356
7450
  var Accordion = AccordionPrimitive.Root;
7357
7451
  var triggerStyles = "flex flex-1 items-center select-none cursor-pointer bg-primary-foreground rounded justify-between p-2 px-3 font-medium transition-all [&[data-state=open]>svg]:-rotate-90";
7358
- var AccordionItem = React75.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React75.createElement(AccordionPrimitive.Item, { ref, className: cn(className), ...props }));
7452
+ var AccordionItem = React77.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React77.createElement(AccordionPrimitive.Item, { ref, className: cn(className), ...props }));
7359
7453
  AccordionItem.displayName = "AccordionItem";
7360
- var AccordionTrigger = React75.forwardRef(({ className, showArrow, children, ...props }, ref) => /* @__PURE__ */ React75.createElement(AccordionPrimitive.Header, { className: "flex" }, /* @__PURE__ */ React75.createElement(
7454
+ var AccordionTrigger = React77.forwardRef(({ className, showArrow, children, ...props }, ref) => /* @__PURE__ */ React77.createElement(AccordionPrimitive.Header, { className: "flex" }, /* @__PURE__ */ React77.createElement(
7361
7455
  AccordionPrimitive.Trigger,
7362
7456
  {
7363
7457
  ref,
@@ -7365,7 +7459,7 @@ var AccordionTrigger = React75.forwardRef(({ className, showArrow, children, ...
7365
7459
  ...props
7366
7460
  },
7367
7461
  children,
7368
- showArrow && /* @__PURE__ */ React75.createElement(
7462
+ showArrow && /* @__PURE__ */ React77.createElement(
7369
7463
  "svg",
7370
7464
  {
7371
7465
  "aria-label": "Chevron Right Icon",
@@ -7376,7 +7470,7 @@ var AccordionTrigger = React75.forwardRef(({ className, showArrow, children, ...
7376
7470
  width: "1em",
7377
7471
  className: "h-4 w-4 shrink-0 rotate-90 transition-transform duration-200"
7378
7472
  },
7379
- /* @__PURE__ */ React75.createElement(
7473
+ /* @__PURE__ */ React77.createElement(
7380
7474
  "path",
7381
7475
  {
7382
7476
  d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"
@@ -7385,7 +7479,7 @@ var AccordionTrigger = React75.forwardRef(({ className, showArrow, children, ...
7385
7479
  )
7386
7480
  )));
7387
7481
  AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
7388
- var AccordionContent = React75.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React75.createElement(
7482
+ var AccordionContent = React77.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React77.createElement(
7389
7483
  AccordionPrimitive.Content,
7390
7484
  {
7391
7485
  ref,
@@ -7395,7 +7489,7 @@ var AccordionContent = React75.forwardRef(({ className, children, ...props }, re
7395
7489
  ),
7396
7490
  ...props
7397
7491
  },
7398
- /* @__PURE__ */ React75.createElement("div", null, children)
7492
+ /* @__PURE__ */ React77.createElement("div", null, children)
7399
7493
  ));
7400
7494
  AccordionContent.displayName = AccordionPrimitive.Content.displayName;
7401
7495
  var SidebarGroup = ({
@@ -7409,7 +7503,7 @@ var SidebarGroup = ({
7409
7503
  direction,
7410
7504
  isOpen
7411
7505
  }) => {
7412
- return /* @__PURE__ */ React75.createElement("div", null, title && /* @__PURE__ */ React75.createElement("h3", { className: "mb-1 font-bold" }, title), /* @__PURE__ */ React75.createElement("ul", { className: "flex flex-col gap-2" }, /* @__PURE__ */ React75.createElement(
7506
+ return /* @__PURE__ */ React77.createElement("div", null, title && /* @__PURE__ */ React77.createElement("h3", { className: "mb-1 font-bold" }, title), /* @__PURE__ */ React77.createElement("ul", { className: "flex flex-col gap-2" }, /* @__PURE__ */ React77.createElement(
7413
7507
  Accordion,
7414
7508
  {
7415
7509
  value: openedItem,
@@ -7420,7 +7514,7 @@ var SidebarGroup = ({
7420
7514
  collapsible: true,
7421
7515
  className: "flex flex-col gap-1"
7422
7516
  },
7423
- items.map((item, idx) => /* @__PURE__ */ React75.createElement(
7517
+ items.map((item, idx) => /* @__PURE__ */ React77.createElement(
7424
7518
  SidebarItem,
7425
7519
  {
7426
7520
  isOpen,
@@ -7446,20 +7540,20 @@ var SidebarItem = ({
7446
7540
  return isSelected && isSelected[index] === value ? "bg-primary text-primary-foreground cursor-default" : "hover:bg-primary/10";
7447
7541
  };
7448
7542
  if (item.subitems) {
7449
- return /* @__PURE__ */ React75.createElement(
7543
+ return /* @__PURE__ */ React77.createElement(
7450
7544
  AccordionItem,
7451
7545
  {
7452
7546
  value: item.value,
7453
7547
  className: "overflow-x-clip",
7454
7548
  dir: direction
7455
7549
  },
7456
- /* @__PURE__ */ React75.createElement(
7550
+ /* @__PURE__ */ React77.createElement(
7457
7551
  AccordionTrigger,
7458
7552
  {
7459
7553
  className: cn(getSelectedStyle(item.value, 0)),
7460
7554
  showArrow: isOpen
7461
7555
  },
7462
- /* @__PURE__ */ React75.createElement(
7556
+ /* @__PURE__ */ React77.createElement(
7463
7557
  "div",
7464
7558
  {
7465
7559
  className: cn(
@@ -7468,7 +7562,7 @@ var SidebarItem = ({
7468
7562
  )
7469
7563
  },
7470
7564
  item.icon,
7471
- isOpen && /* @__PURE__ */ React75.createElement(
7565
+ isOpen && /* @__PURE__ */ React77.createElement(
7472
7566
  "span",
7473
7567
  {
7474
7568
  className: cn(
@@ -7480,12 +7574,12 @@ var SidebarItem = ({
7480
7574
  )
7481
7575
  )
7482
7576
  ),
7483
- item.subitems && /* @__PURE__ */ React75.createElement(AccordionContent, { className: " mt-1 h-full rounded " }, /* @__PURE__ */ React75.createElement(
7577
+ item.subitems && /* @__PURE__ */ React77.createElement(AccordionContent, { className: " mt-1 h-full rounded " }, /* @__PURE__ */ React77.createElement(
7484
7578
  "div",
7485
7579
  {
7486
7580
  className: cn("flex h-full flex-col gap-2 bg-foreground/5 p-1")
7487
7581
  },
7488
- item.subitems.map((subitem, idx) => /* @__PURE__ */ React75.createElement(
7582
+ item.subitems.map((subitem, idx) => /* @__PURE__ */ React77.createElement(
7489
7583
  "li",
7490
7584
  {
7491
7585
  key: idx,
@@ -7506,7 +7600,7 @@ var SidebarItem = ({
7506
7600
  ))
7507
7601
  );
7508
7602
  } else {
7509
- return /* @__PURE__ */ React75.createElement(
7603
+ return /* @__PURE__ */ React77.createElement(
7510
7604
  "div",
7511
7605
  {
7512
7606
  dir: direction,
@@ -7521,7 +7615,7 @@ var SidebarItem = ({
7521
7615
  "overflow-x-clip "
7522
7616
  )
7523
7617
  },
7524
- /* @__PURE__ */ React75.createElement("div", { className: "flex flex-row items-center gap-2 " }, item.icon, /* @__PURE__ */ React75.createElement(
7618
+ /* @__PURE__ */ React77.createElement("div", { className: "flex flex-row items-center gap-2 " }, item.icon, /* @__PURE__ */ React77.createElement(
7525
7619
  "span",
7526
7620
  {
7527
7621
  className: cn(
@@ -7560,10 +7654,10 @@ var AppLayout = ({
7560
7654
  lg: closeDrawerWidth
7561
7655
  }
7562
7656
  };
7563
- const ref = useRef15(null);
7657
+ const ref = useRef16(null);
7564
7658
  const isRTL = direction === "rtl";
7565
- const [openedSidebarItem, setOpenedSidebarItem] = useState39("");
7566
- const [selectedItem, setSelectedItem] = useState39(
7659
+ const [openedSidebarItem, setOpenedSidebarItem] = useState40("");
7660
+ const [selectedItem, setSelectedItem] = useState40(
7567
7661
  currentPage ? currentPage : []
7568
7662
  );
7569
7663
  let size;
@@ -7572,10 +7666,10 @@ var AppLayout = ({
7572
7666
  } else {
7573
7667
  size = 1200;
7574
7668
  }
7575
- const [keepOpen, setKeepOpen] = useState39(size > 600 ? true : false);
7576
- const [openSideMenu, setOpenSideMenu] = useState39(size > 600 ? true : false);
7669
+ const [keepOpen, setKeepOpen] = useState40(size > 600 ? true : false);
7670
+ const [openSideMenu, setOpenSideMenu] = useState40(size > 600 ? true : false);
7577
7671
  let drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
7578
- useEffect23(() => {
7672
+ useEffect24(() => {
7579
7673
  const handleClickOutside = (event) => {
7580
7674
  if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
7581
7675
  setOpenSideMenu(false);
@@ -7586,7 +7680,7 @@ var AppLayout = ({
7586
7680
  document.removeEventListener("click", handleClickOutside, true);
7587
7681
  };
7588
7682
  }, [keepOpen]);
7589
- return /* @__PURE__ */ React76.createElement("div", { className: "fixed left-0" }, props.topBar && /* @__PURE__ */ React76.createElement(
7683
+ return /* @__PURE__ */ React78.createElement("div", { className: "fixed left-0" }, props.topBar && /* @__PURE__ */ React78.createElement(
7590
7684
  "div",
7591
7685
  {
7592
7686
  className: clsx28(
@@ -7594,7 +7688,7 @@ var AppLayout = ({
7594
7688
  isRTL ? "flex-row-reverse" : "flex-row"
7595
7689
  )
7596
7690
  },
7597
- size > 600 ? /* @__PURE__ */ React76.createElement(
7691
+ size > 600 ? /* @__PURE__ */ React78.createElement(
7598
7692
  "div",
7599
7693
  {
7600
7694
  className: clsx28(
@@ -7610,19 +7704,19 @@ var AppLayout = ({
7610
7704
  props.pageTitle
7611
7705
  ) : (
7612
7706
  // Mobile Drawer Menu Button
7613
- /* @__PURE__ */ React76.createElement(
7707
+ /* @__PURE__ */ React78.createElement(
7614
7708
  "div",
7615
7709
  {
7616
7710
  dir: direction,
7617
7711
  className: "flex items-center justify-center gap-0.5"
7618
7712
  },
7619
- /* @__PURE__ */ React76.createElement(
7713
+ /* @__PURE__ */ React78.createElement(
7620
7714
  "div",
7621
7715
  {
7622
7716
  onClick: () => setOpenSideMenu(true),
7623
7717
  className: "z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100"
7624
7718
  },
7625
- /* @__PURE__ */ React76.createElement(
7719
+ /* @__PURE__ */ React78.createElement(
7626
7720
  "svg",
7627
7721
  {
7628
7722
  stroke: "currentColor",
@@ -7633,7 +7727,7 @@ var AppLayout = ({
7633
7727
  height: "1.6em",
7634
7728
  width: "1.6em"
7635
7729
  },
7636
- /* @__PURE__ */ React76.createElement(
7730
+ /* @__PURE__ */ React78.createElement(
7637
7731
  "path",
7638
7732
  {
7639
7733
  fillRule: "evenodd",
@@ -7643,10 +7737,10 @@ var AppLayout = ({
7643
7737
  )
7644
7738
  )
7645
7739
  ),
7646
- props.pageTitle ? /* @__PURE__ */ React76.createElement("div", { className: "text-sm" }, props.pageTitle) : /* @__PURE__ */ React76.createElement("div", null)
7740
+ props.pageTitle ? /* @__PURE__ */ React78.createElement("div", { className: "text-sm" }, props.pageTitle) : /* @__PURE__ */ React78.createElement("div", null)
7647
7741
  )
7648
7742
  ),
7649
- /* @__PURE__ */ React76.createElement(
7743
+ /* @__PURE__ */ React78.createElement(
7650
7744
  "div",
7651
7745
  {
7652
7746
  className: clsx28(
@@ -7654,16 +7748,16 @@ var AppLayout = ({
7654
7748
  isRTL ? "flex-row-reverse" : "flex-row"
7655
7749
  )
7656
7750
  },
7657
- size > 600 ? /* @__PURE__ */ React76.createElement(
7751
+ size > 600 ? /* @__PURE__ */ React78.createElement(
7658
7752
  "div",
7659
7753
  {
7660
7754
  className: isRTL ? "text-left text-xs" : "text-right text-xs"
7661
7755
  },
7662
- /* @__PURE__ */ React76.createElement("div", { className: "font-bold" }, props.username),
7756
+ /* @__PURE__ */ React78.createElement("div", { className: "font-bold" }, props.username),
7663
7757
  " ",
7664
- /* @__PURE__ */ React76.createElement("div", null, props.email)
7758
+ /* @__PURE__ */ React78.createElement("div", null, props.email)
7665
7759
  ) : null,
7666
- /* @__PURE__ */ React76.createElement(
7760
+ /* @__PURE__ */ React78.createElement(
7667
7761
  DropdownMenu,
7668
7762
  {
7669
7763
  triggerClassname: "mx-2",
@@ -7672,7 +7766,7 @@ var AppLayout = ({
7672
7766
  side: "bottom",
7673
7767
  sideOffset: 5,
7674
7768
  direction: isRTL ? "rtl" : "ltr",
7675
- trigger: /* @__PURE__ */ React76.createElement("div", { className: "relative h-8 w-8 cursor-pointer overflow-clip rounded ring-1 ring-primary/30 dark:bg-gray-600" }, props.avatarImage ? /* @__PURE__ */ React76.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ React76.createElement(
7769
+ trigger: /* @__PURE__ */ React78.createElement("div", { className: "relative h-8 w-8 cursor-pointer overflow-clip rounded ring-1 ring-primary/30 dark:bg-gray-600" }, props.avatarImage ? /* @__PURE__ */ React78.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ React78.createElement(
7676
7770
  "svg",
7677
7771
  {
7678
7772
  "aria-label": "Avatar Icon",
@@ -7680,7 +7774,7 @@ var AppLayout = ({
7680
7774
  fill: "currentColor",
7681
7775
  viewBox: "0 0 20 20"
7682
7776
  },
7683
- /* @__PURE__ */ React76.createElement(
7777
+ /* @__PURE__ */ React78.createElement(
7684
7778
  "path",
7685
7779
  {
7686
7780
  fillRule: "evenodd",
@@ -7694,7 +7788,7 @@ var AppLayout = ({
7694
7788
  }
7695
7789
  )
7696
7790
  )
7697
- ), /* @__PURE__ */ React76.createElement(
7791
+ ), /* @__PURE__ */ React78.createElement(
7698
7792
  "div",
7699
7793
  {
7700
7794
  className: clsx28(
@@ -7717,7 +7811,7 @@ var AppLayout = ({
7717
7811
  },
7718
7812
  ref
7719
7813
  },
7720
- /* @__PURE__ */ React76.createElement(
7814
+ /* @__PURE__ */ React78.createElement(
7721
7815
  "div",
7722
7816
  {
7723
7817
  dir: direction,
@@ -7729,7 +7823,7 @@ var AppLayout = ({
7729
7823
  width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
7730
7824
  }
7731
7825
  },
7732
- /* @__PURE__ */ React76.createElement(
7826
+ /* @__PURE__ */ React78.createElement(
7733
7827
  "img",
7734
7828
  {
7735
7829
  className: clsx28(
@@ -7739,7 +7833,7 @@ var AppLayout = ({
7739
7833
  src: props.logoLink
7740
7834
  }
7741
7835
  ),
7742
- size > 600 ? /* @__PURE__ */ React76.createElement(
7836
+ size > 600 ? /* @__PURE__ */ React78.createElement(
7743
7837
  "img",
7744
7838
  {
7745
7839
  className: clsx28(
@@ -7752,7 +7846,7 @@ var AppLayout = ({
7752
7846
  }
7753
7847
  ) : null
7754
7848
  ),
7755
- /* @__PURE__ */ React76.createElement(
7849
+ /* @__PURE__ */ React78.createElement(
7756
7850
  "div",
7757
7851
  {
7758
7852
  className: clsx28(
@@ -7765,7 +7859,7 @@ var AppLayout = ({
7765
7859
  width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
7766
7860
  }
7767
7861
  },
7768
- /* @__PURE__ */ React76.createElement(
7862
+ /* @__PURE__ */ React78.createElement(
7769
7863
  SidebarGroup,
7770
7864
  {
7771
7865
  direction,
@@ -7785,7 +7879,7 @@ var AppLayout = ({
7785
7879
  }
7786
7880
  )
7787
7881
  ),
7788
- /* @__PURE__ */ React76.createElement(
7882
+ /* @__PURE__ */ React78.createElement(
7789
7883
  "div",
7790
7884
  {
7791
7885
  className: clsx28(
@@ -7797,22 +7891,22 @@ var AppLayout = ({
7797
7891
  width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
7798
7892
  }
7799
7893
  },
7800
- DrawerFooterActions && openSideMenu ? /* @__PURE__ */ React76.createElement(React76.Fragment, null, DrawerFooterActions) : null,
7801
- size > 600 && openSideMenu ? /* @__PURE__ */ React76.createElement(
7894
+ DrawerFooterActions && openSideMenu ? /* @__PURE__ */ React78.createElement(React78.Fragment, null, DrawerFooterActions) : null,
7895
+ size > 600 && openSideMenu ? /* @__PURE__ */ React78.createElement(
7802
7896
  Tooltip,
7803
7897
  {
7804
7898
  side: "left",
7805
7899
  delayDuration: 500,
7806
7900
  content: keepOpen ? props.texts?.collapseSidebar || "Collapse Sidebar" : props.texts?.expandSidebar || "Expand Sidebar"
7807
7901
  },
7808
- /* @__PURE__ */ React76.createElement(
7902
+ /* @__PURE__ */ React78.createElement(
7809
7903
  Button,
7810
7904
  {
7811
7905
  variant: "light",
7812
7906
  onClick: () => setKeepOpen(!keepOpen),
7813
7907
  size: "smallIcon"
7814
7908
  },
7815
- /* @__PURE__ */ React76.createElement(
7909
+ /* @__PURE__ */ React78.createElement(
7816
7910
  "svg",
7817
7911
  {
7818
7912
  className: clsx28(
@@ -7822,7 +7916,7 @@ var AppLayout = ({
7822
7916
  fill: "currentColor",
7823
7917
  viewBox: "0 0 20 20"
7824
7918
  },
7825
- /* @__PURE__ */ React76.createElement(
7919
+ /* @__PURE__ */ React78.createElement(
7826
7920
  "path",
7827
7921
  {
7828
7922
  fillRule: "evenodd",
@@ -7834,7 +7928,7 @@ var AppLayout = ({
7834
7928
  )
7835
7929
  ) : null
7836
7930
  )
7837
- ), /* @__PURE__ */ React76.createElement(
7931
+ ), /* @__PURE__ */ React78.createElement(
7838
7932
  "div",
7839
7933
  {
7840
7934
  className: "fixed overflow-y-auto transition-all",
@@ -7865,7 +7959,7 @@ var AppLayout = ({
7865
7959
  };
7866
7960
 
7867
7961
  // src/layout/HawaAppLayout.tsx
7868
- import React77, { useEffect as useEffect24, useRef as useRef16, useState as useState40 } from "react";
7962
+ import React79, { useEffect as useEffect25, useRef as useRef17, useState as useState41 } from "react";
7869
7963
  import clsx29 from "clsx";
7870
7964
  import { FaChevronRight } from "react-icons/fa";
7871
7965
  var HawaAppLayout = ({
@@ -7874,11 +7968,11 @@ var HawaAppLayout = ({
7874
7968
  onSettingsClick,
7875
7969
  ...props
7876
7970
  }) => {
7877
- const [openSideMenu, setOpenSideMenu] = useState40(false);
7878
- const [openSubItem, setOpenSubitem] = useState40("");
7971
+ const [openSideMenu, setOpenSideMenu] = useState41(false);
7972
+ const [openSubItem, setOpenSubitem] = useState41("");
7879
7973
  const { isOpen, onClose, onOpen } = useDiscloser_default(false);
7880
- const [keepOpen, setKeepOpen] = useState40(false);
7881
- const ref = useRef16(null);
7974
+ const [keepOpen, setKeepOpen] = useState41(false);
7975
+ const ref = useRef17(null);
7882
7976
  const isRTL = direction === "rtl";
7883
7977
  let size;
7884
7978
  if (typeof window !== "undefined") {
@@ -7886,7 +7980,7 @@ var HawaAppLayout = ({
7886
7980
  } else {
7887
7981
  size = 1200;
7888
7982
  }
7889
- useEffect24(() => {
7983
+ useEffect25(() => {
7890
7984
  const handleClickOutside = (event) => {
7891
7985
  if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
7892
7986
  setOpenSideMenu(false);
@@ -7911,7 +8005,7 @@ var HawaAppLayout = ({
7911
8005
  }
7912
8006
  };
7913
8007
  let drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
7914
- return /* @__PURE__ */ React77.createElement("div", { className: "fixed" }, props.topBar && /* @__PURE__ */ React77.createElement(
8008
+ return /* @__PURE__ */ React79.createElement("div", { className: "fixed" }, props.topBar && /* @__PURE__ */ React79.createElement(
7915
8009
  "div",
7916
8010
  {
7917
8011
  className: clsx29(
@@ -7921,7 +8015,7 @@ var HawaAppLayout = ({
7921
8015
  },
7922
8016
  size > 600 ? props.pageTitle ? (
7923
8017
  // Title of the page
7924
- /* @__PURE__ */ React77.createElement(
8018
+ /* @__PURE__ */ React79.createElement(
7925
8019
  "div",
7926
8020
  {
7927
8021
  className: clsx29(
@@ -7937,19 +8031,19 @@ var HawaAppLayout = ({
7937
8031
  )
7938
8032
  ) : null : (
7939
8033
  // Mobile Drawer Menu Button
7940
- /* @__PURE__ */ React77.createElement(
8034
+ /* @__PURE__ */ React79.createElement(
7941
8035
  "div",
7942
8036
  {
7943
8037
  dir: direction,
7944
8038
  className: "flex items-center justify-center gap-0.5 "
7945
8039
  },
7946
- /* @__PURE__ */ React77.createElement(
8040
+ /* @__PURE__ */ React79.createElement(
7947
8041
  "div",
7948
8042
  {
7949
8043
  onClick: () => setOpenSideMenu(true),
7950
8044
  className: "z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100"
7951
8045
  },
7952
- /* @__PURE__ */ React77.createElement(
8046
+ /* @__PURE__ */ React79.createElement(
7953
8047
  "svg",
7954
8048
  {
7955
8049
  stroke: "currentColor",
@@ -7960,7 +8054,7 @@ var HawaAppLayout = ({
7960
8054
  height: "1.6em",
7961
8055
  width: "1.6em"
7962
8056
  },
7963
- /* @__PURE__ */ React77.createElement(
8057
+ /* @__PURE__ */ React79.createElement(
7964
8058
  "path",
7965
8059
  {
7966
8060
  fillRule: "evenodd",
@@ -7971,10 +8065,10 @@ var HawaAppLayout = ({
7971
8065
  ),
7972
8066
  " "
7973
8067
  ),
7974
- props.pageTitle ? /* @__PURE__ */ React77.createElement("div", { className: "text-sm" }, props.pageTitle) : /* @__PURE__ */ React77.createElement("div", null)
8068
+ props.pageTitle ? /* @__PURE__ */ React79.createElement("div", { className: "text-sm" }, props.pageTitle) : /* @__PURE__ */ React79.createElement("div", null)
7975
8069
  )
7976
8070
  ),
7977
- /* @__PURE__ */ React77.createElement(
8071
+ /* @__PURE__ */ React79.createElement(
7978
8072
  "div",
7979
8073
  {
7980
8074
  className: clsx29(
@@ -7982,18 +8076,18 @@ var HawaAppLayout = ({
7982
8076
  isRTL ? "flex-row-reverse" : "flex-row"
7983
8077
  )
7984
8078
  },
7985
- size > 600 ? /* @__PURE__ */ React77.createElement(
8079
+ size > 600 ? /* @__PURE__ */ React79.createElement(
7986
8080
  "div",
7987
8081
  {
7988
8082
  className: clsx29(
7989
8083
  isRTL ? "text-left text-xs" : "text-right text-xs"
7990
8084
  )
7991
8085
  },
7992
- /* @__PURE__ */ React77.createElement("div", { className: "font-bold" }, props.username),
8086
+ /* @__PURE__ */ React79.createElement("div", { className: "font-bold" }, props.username),
7993
8087
  " ",
7994
- /* @__PURE__ */ React77.createElement("div", null, props.email)
8088
+ /* @__PURE__ */ React79.createElement("div", null, props.email)
7995
8089
  ) : null,
7996
- /* @__PURE__ */ React77.createElement(
8090
+ /* @__PURE__ */ React79.createElement(
7997
8091
  HawaMenu,
7998
8092
  {
7999
8093
  direction,
@@ -8003,14 +8097,14 @@ var HawaAppLayout = ({
8003
8097
  menuItems: props.profileMenuItems,
8004
8098
  position: "bottom-left"
8005
8099
  },
8006
- /* @__PURE__ */ React77.createElement("div", { className: "relative h-8 w-8 cursor-pointer overflow-hidden rounded-full ring-1 ring-buttonPrimary-500 dark:bg-gray-600" }, /* @__PURE__ */ React77.createElement(
8100
+ /* @__PURE__ */ React79.createElement("div", { className: "relative h-8 w-8 cursor-pointer overflow-hidden rounded-full ring-1 ring-buttonPrimary-500 dark:bg-gray-600" }, /* @__PURE__ */ React79.createElement(
8007
8101
  "svg",
8008
8102
  {
8009
8103
  className: "absolute -left-1 h-10 w-10 text-gray-400",
8010
8104
  fill: "currentColor",
8011
8105
  viewBox: "0 0 20 20"
8012
8106
  },
8013
- /* @__PURE__ */ React77.createElement(
8107
+ /* @__PURE__ */ React79.createElement(
8014
8108
  "path",
8015
8109
  {
8016
8110
  fillRule: "evenodd",
@@ -8021,7 +8115,7 @@ var HawaAppLayout = ({
8021
8115
  ))
8022
8116
  )
8023
8117
  )
8024
- ), /* @__PURE__ */ React77.createElement(
8118
+ ), /* @__PURE__ */ React79.createElement(
8025
8119
  "div",
8026
8120
  {
8027
8121
  onMouseEnter: () => {
@@ -8038,7 +8132,7 @@ var HawaAppLayout = ({
8038
8132
  width: size > 600 ? openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : `${drawerSizeStyle["closed"][drawerSize]}px` : openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : "0px"
8039
8133
  }
8040
8134
  },
8041
- /* @__PURE__ */ React77.createElement(
8135
+ /* @__PURE__ */ React79.createElement(
8042
8136
  "div",
8043
8137
  {
8044
8138
  className: clsx29(
@@ -8047,7 +8141,7 @@ var HawaAppLayout = ({
8047
8141
  openSideMenu ? "overflow-auto" : "overflow-hidden"
8048
8142
  )
8049
8143
  },
8050
- /* @__PURE__ */ React77.createElement(
8144
+ /* @__PURE__ */ React79.createElement(
8051
8145
  "div",
8052
8146
  {
8053
8147
  dir: direction,
@@ -8059,7 +8153,7 @@ var HawaAppLayout = ({
8059
8153
  width: size > 600 ? `${drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize] - 16}px` : "full"
8060
8154
  }
8061
8155
  },
8062
- /* @__PURE__ */ React77.createElement(
8156
+ /* @__PURE__ */ React79.createElement(
8063
8157
  "img",
8064
8158
  {
8065
8159
  className: clsx29(
@@ -8071,7 +8165,7 @@ var HawaAppLayout = ({
8071
8165
  src: props.logoLink
8072
8166
  }
8073
8167
  ),
8074
- size > 600 ? /* @__PURE__ */ React77.createElement(
8168
+ size > 600 ? /* @__PURE__ */ React79.createElement(
8075
8169
  "img",
8076
8170
  {
8077
8171
  className: clsx29(
@@ -8083,14 +8177,14 @@ var HawaAppLayout = ({
8083
8177
  }
8084
8178
  ) : null
8085
8179
  ),
8086
- /* @__PURE__ */ React77.createElement("div", { className: "mb-10 mt-14" }, props.drawerItems?.map((dSection, dIndex) => /* @__PURE__ */ React77.createElement(
8180
+ /* @__PURE__ */ React79.createElement("div", { className: "mb-10 mt-14" }, props.drawerItems?.map((dSection, dIndex) => /* @__PURE__ */ React79.createElement(
8087
8181
  "div",
8088
8182
  {
8089
8183
  key: dIndex,
8090
8184
  className: clsx29("flex flex-col items-stretch justify-center")
8091
8185
  },
8092
8186
  dSection?.map((dItem, i) => {
8093
- return /* @__PURE__ */ React77.createElement("div", { key: i, id: "test", className: "flex flex-col" }, /* @__PURE__ */ React77.createElement(
8187
+ return /* @__PURE__ */ React79.createElement("div", { key: i, id: "test", className: "flex flex-col" }, /* @__PURE__ */ React79.createElement(
8094
8188
  "div",
8095
8189
  {
8096
8190
  onClick: () => {
@@ -8110,7 +8204,7 @@ var HawaAppLayout = ({
8110
8204
  isRTL ? "flex-row-reverse pr-3" : ""
8111
8205
  )
8112
8206
  },
8113
- /* @__PURE__ */ React77.createElement("div", { className: "flex flex-row", dir: direction }, /* @__PURE__ */ React77.createElement("div", { className: "flex items-center justify-center" }, dItem.icon), /* @__PURE__ */ React77.createElement(
8207
+ /* @__PURE__ */ React79.createElement("div", { className: "flex flex-row", dir: direction }, /* @__PURE__ */ React79.createElement("div", { className: "flex items-center justify-center" }, dItem.icon), /* @__PURE__ */ React79.createElement(
8114
8208
  "div",
8115
8209
  {
8116
8210
  className: clsx29(
@@ -8120,16 +8214,16 @@ var HawaAppLayout = ({
8120
8214
  },
8121
8215
  dItem.label
8122
8216
  )),
8123
- dItem.subItems && /* @__PURE__ */ React77.createElement(
8217
+ dItem.subItems && /* @__PURE__ */ React79.createElement(
8124
8218
  "div",
8125
8219
  {
8126
8220
  className: clsx29(
8127
8221
  openSubItem && dItem.slug === openSubItem ? "-rotate-90" : "rotate-90"
8128
8222
  )
8129
8223
  },
8130
- /* @__PURE__ */ React77.createElement(FaChevronRight, { fontSize: 11 })
8224
+ /* @__PURE__ */ React79.createElement(FaChevronRight, { fontSize: 11 })
8131
8225
  )
8132
- ), dItem.subItems && /* @__PURE__ */ React77.createElement(
8226
+ ), dItem.subItems && /* @__PURE__ */ React79.createElement(
8133
8227
  "div",
8134
8228
  {
8135
8229
  className: clsx29(
@@ -8141,7 +8235,7 @@ var HawaAppLayout = ({
8141
8235
  height: openSubItem == dItem.slug && openSideMenu ? 6 + 33 * dItem.subItems?.length : 0
8142
8236
  }
8143
8237
  },
8144
- dItem.subItems?.map((subIt, s) => /* @__PURE__ */ React77.createElement(
8238
+ dItem.subItems?.map((subIt, s) => /* @__PURE__ */ React79.createElement(
8145
8239
  "div",
8146
8240
  {
8147
8241
  key: s,
@@ -8155,14 +8249,14 @@ var HawaAppLayout = ({
8155
8249
  subIt.action();
8156
8250
  }
8157
8251
  },
8158
- /* @__PURE__ */ React77.createElement("div", { className: "flex items-center justify-center" }, subIt.icon),
8159
- /* @__PURE__ */ React77.createElement("div", { className: "flex flex-row justify-between" }, subIt.label)
8252
+ /* @__PURE__ */ React79.createElement("div", { className: "flex items-center justify-center" }, subIt.icon),
8253
+ /* @__PURE__ */ React79.createElement("div", { className: "flex flex-row justify-between" }, subIt.label)
8160
8254
  ))
8161
8255
  ));
8162
8256
  }),
8163
- dIndex !== props.drawerItems.length - 1 && /* @__PURE__ */ React77.createElement("div", { className: "my-2 h-[1px] w-10/12 self-center bg-buttonPrimary-500 text-center " })
8257
+ dIndex !== props.drawerItems.length - 1 && /* @__PURE__ */ React79.createElement("div", { className: "my-2 h-[1px] w-10/12 self-center bg-buttonPrimary-500 text-center " })
8164
8258
  ))),
8165
- openSideMenu && /* @__PURE__ */ React77.createElement(
8259
+ openSideMenu && /* @__PURE__ */ React79.createElement(
8166
8260
  "div",
8167
8261
  {
8168
8262
  className: clsx29(
@@ -8175,13 +8269,13 @@ var HawaAppLayout = ({
8175
8269
  width: `${drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize] - 16}px`
8176
8270
  }
8177
8271
  },
8178
- onSettingsClick && /* @__PURE__ */ React77.createElement(
8272
+ onSettingsClick && /* @__PURE__ */ React79.createElement(
8179
8273
  "div",
8180
8274
  {
8181
8275
  className: " cursor-pointer rounded p-2 transition-all hover:bg-layoutPrimary-700",
8182
8276
  onClick: () => onSettingsClick()
8183
8277
  },
8184
- /* @__PURE__ */ React77.createElement(
8278
+ /* @__PURE__ */ React79.createElement(
8185
8279
  "svg",
8186
8280
  {
8187
8281
  "aria-label": "Settings Icon",
@@ -8194,11 +8288,11 @@ var HawaAppLayout = ({
8194
8288
  height: "1em",
8195
8289
  width: "1em"
8196
8290
  },
8197
- /* @__PURE__ */ React77.createElement("circle", { cx: "12", cy: "12", r: "3" }),
8198
- /* @__PURE__ */ React77.createElement("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" })
8291
+ /* @__PURE__ */ React79.createElement("circle", { cx: "12", cy: "12", r: "3" }),
8292
+ /* @__PURE__ */ React79.createElement("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" })
8199
8293
  )
8200
8294
  ),
8201
- size > 600 ? /* @__PURE__ */ React77.createElement(
8295
+ size > 600 ? /* @__PURE__ */ React79.createElement(
8202
8296
  "div",
8203
8297
  {
8204
8298
  className: clsx29("w-fit transition-all"),
@@ -8208,7 +8302,7 @@ var HawaAppLayout = ({
8208
8302
  left: `${drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize] - 35}px`
8209
8303
  }
8210
8304
  },
8211
- /* @__PURE__ */ React77.createElement(
8305
+ /* @__PURE__ */ React79.createElement(
8212
8306
  "div",
8213
8307
  {
8214
8308
  dir: direction,
@@ -8217,13 +8311,13 @@ var HawaAppLayout = ({
8217
8311
  openSideMenu ? " opacity-100" : " opacity-0"
8218
8312
  )
8219
8313
  },
8220
- /* @__PURE__ */ React77.createElement(
8314
+ /* @__PURE__ */ React79.createElement(
8221
8315
  "div",
8222
8316
  {
8223
8317
  onClick: () => setKeepOpen(!keepOpen),
8224
8318
  className: "w-fit cursor-pointer rounded bg-gray-300 p-2 transition-all hover:bg-gray-400"
8225
8319
  },
8226
- /* @__PURE__ */ React77.createElement(
8320
+ /* @__PURE__ */ React79.createElement(
8227
8321
  FaChevronRight,
8228
8322
  {
8229
8323
  fontSize: 14,
@@ -8238,7 +8332,7 @@ var HawaAppLayout = ({
8238
8332
  ) : null
8239
8333
  )
8240
8334
  )
8241
- ), /* @__PURE__ */ React77.createElement(
8335
+ ), /* @__PURE__ */ React79.createElement(
8242
8336
  "div",
8243
8337
  {
8244
8338
  className: "fixed overflow-y-auto",
@@ -8259,7 +8353,7 @@ var HawaAppLayout = ({
8259
8353
  };
8260
8354
 
8261
8355
  // src/layout/HawaAppLayoutSimplified.tsx
8262
- import React78, { useEffect as useEffect25, useRef as useRef17, useState as useState41 } from "react";
8356
+ import React80, { useEffect as useEffect26, useRef as useRef18, useState as useState42 } from "react";
8263
8357
  import clsx30 from "clsx";
8264
8358
  var HawaAppLayoutSimplified = ({
8265
8359
  direction = "rtl",
@@ -8268,11 +8362,11 @@ var HawaAppLayoutSimplified = ({
8268
8362
  DrawerFooterActions,
8269
8363
  ...props
8270
8364
  }) => {
8271
- const [openSideMenu, setOpenSideMenu] = useState41(false);
8272
- const [openSubItem, setOpenSubitem] = useState41("");
8365
+ const [openSideMenu, setOpenSideMenu] = useState42(false);
8366
+ const [openSubItem, setOpenSubitem] = useState42("");
8273
8367
  const { isOpen, onClose, onOpen } = useDiscloser_default(false);
8274
- const [keepOpen, setKeepOpen] = useState41(false);
8275
- const ref = useRef17(null);
8368
+ const [keepOpen, setKeepOpen] = useState42(false);
8369
+ const ref = useRef18(null);
8276
8370
  const isRTL = direction === "rtl";
8277
8371
  let size;
8278
8372
  if (typeof window !== "undefined") {
@@ -8280,7 +8374,7 @@ var HawaAppLayoutSimplified = ({
8280
8374
  } else {
8281
8375
  size = 1200;
8282
8376
  }
8283
- useEffect25(() => {
8377
+ useEffect26(() => {
8284
8378
  const handleClickOutside = (event) => {
8285
8379
  if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
8286
8380
  setOpenSideMenu(false);
@@ -8307,7 +8401,7 @@ var HawaAppLayoutSimplified = ({
8307
8401
  }
8308
8402
  };
8309
8403
  let drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
8310
- return /* @__PURE__ */ React78.createElement("div", { className: "fixed left-0" }, props.topBar && /* @__PURE__ */ React78.createElement(
8404
+ return /* @__PURE__ */ React80.createElement("div", { className: "fixed left-0" }, props.topBar && /* @__PURE__ */ React80.createElement(
8311
8405
  "div",
8312
8406
  {
8313
8407
  className: clsx30(
@@ -8315,7 +8409,7 @@ var HawaAppLayoutSimplified = ({
8315
8409
  isRTL ? "flex-row-reverse" : "flex-row"
8316
8410
  )
8317
8411
  },
8318
- size > 600 ? /* @__PURE__ */ React78.createElement(
8412
+ size > 600 ? /* @__PURE__ */ React80.createElement(
8319
8413
  "div",
8320
8414
  {
8321
8415
  className: clsx30(
@@ -8331,19 +8425,19 @@ var HawaAppLayoutSimplified = ({
8331
8425
  props.pageTitle
8332
8426
  ) : (
8333
8427
  // Mobile Drawer Menu Button
8334
- /* @__PURE__ */ React78.createElement(
8428
+ /* @__PURE__ */ React80.createElement(
8335
8429
  "div",
8336
8430
  {
8337
8431
  dir: direction,
8338
8432
  className: "flex items-center justify-center gap-0.5"
8339
8433
  },
8340
- /* @__PURE__ */ React78.createElement(
8434
+ /* @__PURE__ */ React80.createElement(
8341
8435
  "div",
8342
8436
  {
8343
8437
  onClick: () => setOpenSideMenu(true),
8344
8438
  className: "z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100"
8345
8439
  },
8346
- /* @__PURE__ */ React78.createElement(
8440
+ /* @__PURE__ */ React80.createElement(
8347
8441
  "svg",
8348
8442
  {
8349
8443
  stroke: "currentColor",
@@ -8354,7 +8448,7 @@ var HawaAppLayoutSimplified = ({
8354
8448
  height: "1.6em",
8355
8449
  width: "1.6em"
8356
8450
  },
8357
- /* @__PURE__ */ React78.createElement(
8451
+ /* @__PURE__ */ React80.createElement(
8358
8452
  "path",
8359
8453
  {
8360
8454
  fillRule: "evenodd",
@@ -8364,10 +8458,10 @@ var HawaAppLayoutSimplified = ({
8364
8458
  )
8365
8459
  )
8366
8460
  ),
8367
- props.pageTitle ? /* @__PURE__ */ React78.createElement("div", { className: "text-sm" }, props.pageTitle) : /* @__PURE__ */ React78.createElement("div", null)
8461
+ props.pageTitle ? /* @__PURE__ */ React80.createElement("div", { className: "text-sm" }, props.pageTitle) : /* @__PURE__ */ React80.createElement("div", null)
8368
8462
  )
8369
8463
  ),
8370
- /* @__PURE__ */ React78.createElement(
8464
+ /* @__PURE__ */ React80.createElement(
8371
8465
  "div",
8372
8466
  {
8373
8467
  className: clsx30(
@@ -8375,16 +8469,16 @@ var HawaAppLayoutSimplified = ({
8375
8469
  isRTL ? "flex-row-reverse" : "flex-row"
8376
8470
  )
8377
8471
  },
8378
- size > 600 ? /* @__PURE__ */ React78.createElement(
8472
+ size > 600 ? /* @__PURE__ */ React80.createElement(
8379
8473
  "div",
8380
8474
  {
8381
8475
  className: isRTL ? "text-left text-xs" : "text-right text-xs"
8382
8476
  },
8383
- /* @__PURE__ */ React78.createElement("div", { className: "font-bold" }, props.username),
8477
+ /* @__PURE__ */ React80.createElement("div", { className: "font-bold" }, props.username),
8384
8478
  " ",
8385
- /* @__PURE__ */ React78.createElement("div", null, props.email)
8479
+ /* @__PURE__ */ React80.createElement("div", null, props.email)
8386
8480
  ) : null,
8387
- /* @__PURE__ */ React78.createElement(
8481
+ /* @__PURE__ */ React80.createElement(
8388
8482
  DropdownMenu,
8389
8483
  {
8390
8484
  triggerClassname: "mx-2",
@@ -8393,13 +8487,13 @@ var HawaAppLayoutSimplified = ({
8393
8487
  side: "bottom",
8394
8488
  sideOffset: 5,
8395
8489
  direction: isRTL ? "rtl" : "ltr",
8396
- trigger: /* @__PURE__ */ React78.createElement("div", { className: "relative h-8 w-8 cursor-pointer overflow-clip rounded ring-1 ring-primary/30 dark:bg-gray-600" }, /* @__PURE__ */ React78.createElement(AvatarIcon, null)),
8490
+ trigger: /* @__PURE__ */ React80.createElement("div", { className: "relative h-8 w-8 cursor-pointer overflow-clip rounded ring-1 ring-primary/30 dark:bg-gray-600" }, /* @__PURE__ */ React80.createElement(AvatarIcon, null)),
8397
8491
  items: props.profileMenuItems,
8398
8492
  onItemSelect: (e) => console.log("selecting item ", e)
8399
8493
  }
8400
8494
  )
8401
8495
  )
8402
- ), /* @__PURE__ */ React78.createElement(
8496
+ ), /* @__PURE__ */ React80.createElement(
8403
8497
  "div",
8404
8498
  {
8405
8499
  className: clsx30(
@@ -8415,7 +8509,7 @@ var HawaAppLayoutSimplified = ({
8415
8509
  onMouseLeave: () => keepOpen ? setOpenSideMenu(true) : setOpenSideMenu(false),
8416
8510
  ref
8417
8511
  },
8418
- /* @__PURE__ */ React78.createElement(
8512
+ /* @__PURE__ */ React80.createElement(
8419
8513
  "div",
8420
8514
  {
8421
8515
  dir: direction,
@@ -8426,7 +8520,7 @@ var HawaAppLayoutSimplified = ({
8426
8520
  width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
8427
8521
  }
8428
8522
  },
8429
- /* @__PURE__ */ React78.createElement(
8523
+ /* @__PURE__ */ React80.createElement(
8430
8524
  "img",
8431
8525
  {
8432
8526
  className: clsx30(
@@ -8438,7 +8532,7 @@ var HawaAppLayoutSimplified = ({
8438
8532
  src: props.logoLink
8439
8533
  }
8440
8534
  ),
8441
- size > 600 ? /* @__PURE__ */ React78.createElement(
8535
+ size > 600 ? /* @__PURE__ */ React80.createElement(
8442
8536
  "img",
8443
8537
  {
8444
8538
  className: clsx30(
@@ -8450,7 +8544,7 @@ var HawaAppLayoutSimplified = ({
8450
8544
  }
8451
8545
  ) : null
8452
8546
  ),
8453
- /* @__PURE__ */ React78.createElement(
8547
+ /* @__PURE__ */ React80.createElement(
8454
8548
  "div",
8455
8549
  {
8456
8550
  className: clsx30(
@@ -8464,7 +8558,7 @@ var HawaAppLayoutSimplified = ({
8464
8558
  width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
8465
8559
  }
8466
8560
  },
8467
- props.drawerItems?.map((dSection, dIndex) => /* @__PURE__ */ React78.createElement(
8561
+ props.drawerItems?.map((dSection, dIndex) => /* @__PURE__ */ React80.createElement(
8468
8562
  "div",
8469
8563
  {
8470
8564
  key: dIndex,
@@ -8473,7 +8567,7 @@ var HawaAppLayoutSimplified = ({
8473
8567
  )
8474
8568
  },
8475
8569
  dSection?.map((dItem, i) => {
8476
- return /* @__PURE__ */ React78.createElement("div", { key: i, id: "test", className: "flex flex-col" }, /* @__PURE__ */ React78.createElement(
8570
+ return /* @__PURE__ */ React80.createElement("div", { key: i, id: "test", className: "flex flex-col" }, /* @__PURE__ */ React80.createElement(
8477
8571
  "div",
8478
8572
  {
8479
8573
  onClick: () => {
@@ -8494,7 +8588,7 @@ var HawaAppLayoutSimplified = ({
8494
8588
  openSideMenu ? "m-2" : "m-2"
8495
8589
  )
8496
8590
  },
8497
- /* @__PURE__ */ React78.createElement("div", { className: "flex flex-row", dir: direction }, /* @__PURE__ */ React78.createElement("div", { className: "flex items-center justify-center " }, dItem.icon), /* @__PURE__ */ React78.createElement(
8591
+ /* @__PURE__ */ React80.createElement("div", { className: "flex flex-row", dir: direction }, /* @__PURE__ */ React80.createElement("div", { className: "flex items-center justify-center " }, dItem.icon), /* @__PURE__ */ React80.createElement(
8498
8592
  "div",
8499
8593
  {
8500
8594
  className: clsx30(
@@ -8504,13 +8598,13 @@ var HawaAppLayoutSimplified = ({
8504
8598
  },
8505
8599
  dItem.label
8506
8600
  )),
8507
- dItem.subItems && /* @__PURE__ */ React78.createElement(
8601
+ dItem.subItems && /* @__PURE__ */ React80.createElement(
8508
8602
  ArrowIcon,
8509
8603
  {
8510
8604
  pointing: openSubItem && dItem.slug === openSubItem ? "up" : "down"
8511
8605
  }
8512
8606
  )
8513
- ), dItem.subItems && /* @__PURE__ */ React78.createElement(
8607
+ ), dItem.subItems && /* @__PURE__ */ React80.createElement(
8514
8608
  "div",
8515
8609
  {
8516
8610
  className: clsx30(
@@ -8522,7 +8616,7 @@ var HawaAppLayoutSimplified = ({
8522
8616
  height: openSubItem == dItem.slug && openSideMenu ? 6 + 35 * dItem.subItems?.length : 0
8523
8617
  }
8524
8618
  },
8525
- dItem.subItems?.map((subIt, s) => /* @__PURE__ */ React78.createElement(
8619
+ dItem.subItems?.map((subIt, s) => /* @__PURE__ */ React80.createElement(
8526
8620
  "div",
8527
8621
  {
8528
8622
  key: s,
@@ -8536,15 +8630,15 @@ var HawaAppLayoutSimplified = ({
8536
8630
  subIt.action();
8537
8631
  }
8538
8632
  },
8539
- /* @__PURE__ */ React78.createElement("div", { className: "flex items-center justify-center" }, subIt.icon),
8540
- /* @__PURE__ */ React78.createElement("div", { className: "flex flex-row justify-between" }, subIt.label)
8633
+ /* @__PURE__ */ React80.createElement("div", { className: "flex items-center justify-center" }, subIt.icon),
8634
+ /* @__PURE__ */ React80.createElement("div", { className: "flex flex-row justify-between" }, subIt.label)
8541
8635
  ))
8542
8636
  ));
8543
8637
  }),
8544
- dIndex !== props.drawerItems.length - 1 && /* @__PURE__ */ React78.createElement("div", { className: "my-2 h-[1px] w-10/12 self-center bg-buttonPrimary-500 bg-red-500 text-center " })
8638
+ dIndex !== props.drawerItems.length - 1 && /* @__PURE__ */ React80.createElement("div", { className: "my-2 h-[1px] w-10/12 self-center bg-buttonPrimary-500 bg-red-500 text-center " })
8545
8639
  ))
8546
8640
  ),
8547
- /* @__PURE__ */ React78.createElement(
8641
+ /* @__PURE__ */ React80.createElement(
8548
8642
  "div",
8549
8643
  {
8550
8644
  className: clsx30(
@@ -8555,22 +8649,22 @@ var HawaAppLayoutSimplified = ({
8555
8649
  width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
8556
8650
  }
8557
8651
  },
8558
- DrawerFooterActions && openSideMenu ? /* @__PURE__ */ React78.createElement(React78.Fragment, null, DrawerFooterActions) : null,
8559
- size > 600 && openSideMenu ? /* @__PURE__ */ React78.createElement(
8652
+ DrawerFooterActions && openSideMenu ? /* @__PURE__ */ React80.createElement(React80.Fragment, null, DrawerFooterActions) : null,
8653
+ size > 600 && openSideMenu ? /* @__PURE__ */ React80.createElement(
8560
8654
  Tooltip,
8561
8655
  {
8562
8656
  side: "left",
8563
8657
  delayDuration: 500,
8564
8658
  content: keepOpen ? props.texts?.collapseSidebar || "Collapse Sidebar" : props.texts?.expandSidebar || "Expand Sidebar"
8565
8659
  },
8566
- /* @__PURE__ */ React78.createElement(
8660
+ /* @__PURE__ */ React80.createElement(
8567
8661
  Button,
8568
8662
  {
8569
8663
  variant: "light",
8570
8664
  onClick: () => setKeepOpen(!keepOpen),
8571
8665
  size: "smallIcon"
8572
8666
  },
8573
- /* @__PURE__ */ React78.createElement(
8667
+ /* @__PURE__ */ React80.createElement(
8574
8668
  "svg",
8575
8669
  {
8576
8670
  className: clsx30(
@@ -8580,7 +8674,7 @@ var HawaAppLayoutSimplified = ({
8580
8674
  fill: "currentColor",
8581
8675
  viewBox: "0 0 20 20"
8582
8676
  },
8583
- /* @__PURE__ */ React78.createElement(
8677
+ /* @__PURE__ */ React80.createElement(
8584
8678
  "path",
8585
8679
  {
8586
8680
  fillRule: "evenodd",
@@ -8592,7 +8686,7 @@ var HawaAppLayoutSimplified = ({
8592
8686
  )
8593
8687
  ) : null
8594
8688
  )
8595
- ), /* @__PURE__ */ React78.createElement(
8689
+ ), /* @__PURE__ */ React80.createElement(
8596
8690
  "div",
8597
8691
  {
8598
8692
  className: "fixed overflow-y-auto",
@@ -8611,14 +8705,14 @@ var HawaAppLayoutSimplified = ({
8611
8705
  props.children
8612
8706
  ));
8613
8707
  };
8614
- var AvatarIcon = () => /* @__PURE__ */ React78.createElement(
8708
+ var AvatarIcon = () => /* @__PURE__ */ React80.createElement(
8615
8709
  "svg",
8616
8710
  {
8617
8711
  className: "absolute -left-1 h-10 w-10 text-gray-400",
8618
8712
  fill: "currentColor",
8619
8713
  viewBox: "0 0 20 20"
8620
8714
  },
8621
- /* @__PURE__ */ React78.createElement(
8715
+ /* @__PURE__ */ React80.createElement(
8622
8716
  "path",
8623
8717
  {
8624
8718
  fillRule: "evenodd",
@@ -8645,7 +8739,7 @@ var ArrowIcon = ({ pointing }) => {
8645
8739
  default:
8646
8740
  break;
8647
8741
  }
8648
- return /* @__PURE__ */ React78.createElement(
8742
+ return /* @__PURE__ */ React80.createElement(
8649
8743
  "svg",
8650
8744
  {
8651
8745
  className: clsx30(
@@ -8655,7 +8749,7 @@ var ArrowIcon = ({ pointing }) => {
8655
8749
  fill: "currentColor",
8656
8750
  viewBox: "0 0 20 20"
8657
8751
  },
8658
- /* @__PURE__ */ React78.createElement(
8752
+ /* @__PURE__ */ React80.createElement(
8659
8753
  "path",
8660
8754
  {
8661
8755
  fillRule: "evenodd",
@@ -8667,7 +8761,7 @@ var ArrowIcon = ({ pointing }) => {
8667
8761
  };
8668
8762
 
8669
8763
  // src/layout/HawaContainer.tsx
8670
- import React79 from "react";
8764
+ import React81 from "react";
8671
8765
  import clsx31 from "clsx";
8672
8766
  var HawaContainer = ({
8673
8767
  maxWidth = "normal",
@@ -8687,7 +8781,7 @@ var HawaContainer = ({
8687
8781
  outlined: "bg-transparent border border-black w-fit",
8688
8782
  neobrutalism: "shadow-neobrutalism border-4 border-black bg-white"
8689
8783
  };
8690
- return /* @__PURE__ */ React79.createElement(
8784
+ return /* @__PURE__ */ React81.createElement(
8691
8785
  "div",
8692
8786
  {
8693
8787
  className: clsx31(
@@ -8703,28 +8797,28 @@ var HawaContainer = ({
8703
8797
  };
8704
8798
 
8705
8799
  // src/layout/HawaGrid.tsx
8706
- import React80 from "react";
8800
+ import React82 from "react";
8707
8801
  var HawaGrid = (props) => {
8708
8802
  return (
8709
8803
  // [&>*:not(:first-child)]:mt-8
8710
- /* @__PURE__ */ React80.createElement("div", { className: " columns-1 gap-5 sm:columns-2 sm:gap-8 md:columns-3 lg:columns-4 [&>*:not(:first-child)]:mt-8" }, props.children)
8804
+ /* @__PURE__ */ React82.createElement("div", { className: " columns-1 gap-5 sm:columns-2 sm:gap-8 md:columns-3 lg:columns-4 [&>*:not(:first-child)]:mt-8" }, props.children)
8711
8805
  );
8712
8806
  };
8713
8807
 
8714
8808
  // src/layout/AppSidebar.tsx
8715
- import React81 from "react";
8809
+ import React83 from "react";
8716
8810
  var AppSidebar = ({ isOpen, onClose, items }) => {
8717
8811
  if (!isOpen) {
8718
8812
  return null;
8719
8813
  }
8720
- return /* @__PURE__ */ React81.createElement("div", { className: "fixed inset-0 z-40 flex bg-gray-600 bg-opacity-75" }, /* @__PURE__ */ React81.createElement("div", { className: "w-1/3 rounded-l-lg bg-gray-800 shadow-2xl" }, /* @__PURE__ */ React81.createElement(
8814
+ return /* @__PURE__ */ React83.createElement("div", { className: "fixed inset-0 z-40 flex bg-gray-600 bg-opacity-75" }, /* @__PURE__ */ React83.createElement("div", { className: "w-1/3 rounded-l-lg bg-gray-800 shadow-2xl" }, /* @__PURE__ */ React83.createElement(
8721
8815
  "button",
8722
8816
  {
8723
8817
  onClick: onClose,
8724
8818
  className: "p-4 text-gray-400 hover:text-white focus:text-white focus:outline-none"
8725
8819
  },
8726
8820
  "Close"
8727
- ), /* @__PURE__ */ React81.createElement("nav", null, items.map((item, i) => /* @__PURE__ */ React81.createElement(
8821
+ ), /* @__PURE__ */ React83.createElement("nav", null, items.map((item, i) => /* @__PURE__ */ React83.createElement(
8728
8822
  "a",
8729
8823
  {
8730
8824
  key: i,
@@ -8733,7 +8827,7 @@ var AppSidebar = ({ isOpen, onClose, items }) => {
8733
8827
  className: "block p-4 font-bold text-white hover:bg-gray-700 hover:text-gray-400"
8734
8828
  },
8735
8829
  item.label
8736
- )))), /* @__PURE__ */ React81.createElement("div", { className: "w-2/3 bg-gray-50" }));
8830
+ )))), /* @__PURE__ */ React83.createElement("div", { className: "w-2/3 bg-gray-50" }));
8737
8831
  };
8738
8832
 
8739
8833
  // src/layout/Footer.tsx
@@ -8770,19 +8864,19 @@ var Footer = ({
8770
8864
  };
8771
8865
 
8772
8866
  // src/layout/Banner.tsx
8773
- import React82, { useRef as useRef18, useState as useState42 } from "react";
8867
+ import React84, { useRef as useRef19, useState as useState43 } from "react";
8774
8868
  import clsx32 from "clsx";
8775
8869
  var HawaBanner = ({
8776
8870
  design = "floating",
8777
8871
  ...props
8778
8872
  }) => {
8779
- const bannerRef = useRef18(null);
8780
- const [closed, setClosed] = useState42(false);
8873
+ const bannerRef = useRef19(null);
8874
+ const [closed, setClosed] = useState43(false);
8781
8875
  let bannerStyle = {
8782
8876
  floating: "left-1/2 z-50 w-[calc(100%-2rem)] -translate-x-1/2 lg:max-w-7xl p-4 rounded",
8783
8877
  default: "w-[calc(100%)] left-0 z-50 right-0 rounded-none p-2"
8784
8878
  };
8785
- return /* @__PURE__ */ React82.createElement("div", { ref: bannerRef }, /* @__PURE__ */ React82.createElement(
8879
+ return /* @__PURE__ */ React84.createElement("div", { ref: bannerRef }, /* @__PURE__ */ React84.createElement(
8786
8880
  "div",
8787
8881
  {
8788
8882
  dir: props.direction,
@@ -8793,7 +8887,7 @@ var HawaBanner = ({
8793
8887
  closed ? "opacity-0" : "opacity-100"
8794
8888
  )
8795
8889
  },
8796
- /* @__PURE__ */ React82.createElement("div", { className: "mb-3 flex w-full flex-col items-center justify-start md:mb-0 md:flex-row md:items-center" }, /* @__PURE__ */ React82.createElement(
8890
+ /* @__PURE__ */ React84.createElement("div", { className: "mb-3 flex w-full flex-col items-center justify-start md:mb-0 md:flex-row md:items-center" }, /* @__PURE__ */ React84.createElement(
8797
8891
  "div",
8798
8892
  {
8799
8893
  className: clsx32(
@@ -8801,7 +8895,7 @@ var HawaBanner = ({
8801
8895
  "mb-2 flex items-center border-gray-200 dark:border-gray-600 md:mb-0 md:mr-4 md:pr-4"
8802
8896
  )
8803
8897
  },
8804
- props.logoURL && /* @__PURE__ */ React82.createElement(
8898
+ props.logoURL && /* @__PURE__ */ React84.createElement(
8805
8899
  "img",
8806
8900
  {
8807
8901
  src: props.logoURL,
@@ -8809,8 +8903,8 @@ var HawaBanner = ({
8809
8903
  alt: "Flowbite Logo"
8810
8904
  }
8811
8905
  ),
8812
- props.title && /* @__PURE__ */ React82.createElement("span", { className: "self-center whitespace-nowrap text-lg font-semibold dark:text-white" }, props.title)
8813
- ), props.text && /* @__PURE__ */ React82.createElement(
8906
+ props.title && /* @__PURE__ */ React84.createElement("span", { className: "self-center whitespace-nowrap text-lg font-semibold dark:text-white" }, props.title)
8907
+ ), props.text && /* @__PURE__ */ React84.createElement(
8814
8908
  "p",
8815
8909
  {
8816
8910
  className: clsx32(
@@ -8820,7 +8914,7 @@ var HawaBanner = ({
8820
8914
  },
8821
8915
  props.text
8822
8916
  )),
8823
- props.actionText && /* @__PURE__ */ React82.createElement(
8917
+ props.actionText && /* @__PURE__ */ React84.createElement(
8824
8918
  "div",
8825
8919
  {
8826
8920
  className: clsx32(
@@ -8828,9 +8922,9 @@ var HawaBanner = ({
8828
8922
  props.direction === "rtl" ? "ml-0 md:ml-10" : "mr-0 md:mr-10"
8829
8923
  )
8830
8924
  },
8831
- /* @__PURE__ */ React82.createElement(HawaButton, { onClick: props.onActionClick }, props.actionText)
8925
+ /* @__PURE__ */ React84.createElement(HawaButton, { onClick: props.onActionClick }, props.actionText)
8832
8926
  ),
8833
- /* @__PURE__ */ React82.createElement(
8927
+ /* @__PURE__ */ React84.createElement(
8834
8928
  "button",
8835
8929
  {
8836
8930
  type: "button",
@@ -8847,8 +8941,8 @@ var HawaBanner = ({
8847
8941
  }, 200);
8848
8942
  }
8849
8943
  },
8850
- /* @__PURE__ */ React82.createElement("span", { className: "sr-only" }, "Close"),
8851
- /* @__PURE__ */ React82.createElement(
8944
+ /* @__PURE__ */ React84.createElement("span", { className: "sr-only" }, "Close"),
8945
+ /* @__PURE__ */ React84.createElement(
8852
8946
  "svg",
8853
8947
  {
8854
8948
  "aria-hidden": "true",
@@ -8856,7 +8950,7 @@ var HawaBanner = ({
8856
8950
  fill: "currentColor",
8857
8951
  viewBox: "0 0 20 20"
8858
8952
  },
8859
- /* @__PURE__ */ React82.createElement(
8953
+ /* @__PURE__ */ React84.createElement(
8860
8954
  "path",
8861
8955
  {
8862
8956
  fillRule: "evenodd",
@@ -8870,7 +8964,7 @@ var HawaBanner = ({
8870
8964
  };
8871
8965
 
8872
8966
  // src/blocks/Account/UserProfileForm.tsx
8873
- import React83 from "react";
8967
+ import React85 from "react";
8874
8968
  import { Controller, FormProvider, useForm } from "react-hook-form";
8875
8969
  var UserProfileForm = (props) => {
8876
8970
  const methods = useForm();
@@ -8880,12 +8974,12 @@ var UserProfileForm = (props) => {
8880
8974
  handleSubmit,
8881
8975
  control
8882
8976
  } = methods;
8883
- return /* @__PURE__ */ React83.createElement(Card, null, /* @__PURE__ */ React83.createElement("form", { onSubmit: handleSubmit((e) => props.handleUpdateProfile(e)) }, /* @__PURE__ */ React83.createElement(CardContent, { headless: true }, /* @__PURE__ */ React83.createElement(FormProvider, { ...methods }, /* @__PURE__ */ React83.createElement(
8977
+ return /* @__PURE__ */ React85.createElement(Card, null, /* @__PURE__ */ React85.createElement("form", { onSubmit: handleSubmit((e) => props.handleUpdateProfile(e)) }, /* @__PURE__ */ React85.createElement(CardContent, { headless: true }, /* @__PURE__ */ React85.createElement(FormProvider, { ...methods }, /* @__PURE__ */ React85.createElement(
8884
8978
  Controller,
8885
8979
  {
8886
8980
  control,
8887
8981
  name: "fullName",
8888
- render: ({ field }) => /* @__PURE__ */ React83.createElement(
8982
+ render: ({ field }) => /* @__PURE__ */ React85.createElement(
8889
8983
  HawaTextField,
8890
8984
  {
8891
8985
  width: "full",
@@ -8898,19 +8992,19 @@ var UserProfileForm = (props) => {
8898
8992
  }
8899
8993
  )
8900
8994
  }
8901
- ), /* @__PURE__ */ React83.createElement(
8995
+ ), /* @__PURE__ */ React85.createElement(
8902
8996
  Controller,
8903
8997
  {
8904
8998
  control,
8905
8999
  name: "phoneNumber",
8906
- render: ({ field }) => /* @__PURE__ */ React83.createElement(HawaPhoneInput, { label: "Phone number" })
9000
+ render: ({ field }) => /* @__PURE__ */ React85.createElement(HawaPhoneInput, { label: "Phone number" })
8907
9001
  }
8908
- ), /* @__PURE__ */ React83.createElement(
9002
+ ), /* @__PURE__ */ React85.createElement(
8909
9003
  Controller,
8910
9004
  {
8911
9005
  control,
8912
9006
  name: "email",
8913
- render: ({ field }) => /* @__PURE__ */ React83.createElement(
9007
+ render: ({ field }) => /* @__PURE__ */ React85.createElement(
8914
9008
  HawaTextField,
8915
9009
  {
8916
9010
  width: "full",
@@ -8930,12 +9024,12 @@ var UserProfileForm = (props) => {
8930
9024
  }
8931
9025
  }
8932
9026
  }
8933
- ), /* @__PURE__ */ React83.createElement(
9027
+ ), /* @__PURE__ */ React85.createElement(
8934
9028
  Controller,
8935
9029
  {
8936
9030
  control,
8937
9031
  name: "password",
8938
- render: ({ field }) => /* @__PURE__ */ React83.createElement(
9032
+ render: ({ field }) => /* @__PURE__ */ React85.createElement(
8939
9033
  HawaTextField,
8940
9034
  {
8941
9035
  width: "full",
@@ -8951,12 +9045,12 @@ var UserProfileForm = (props) => {
8951
9045
  required: props.texts.passwordRequiredText
8952
9046
  }
8953
9047
  }
8954
- ), /* @__PURE__ */ React83.createElement(
9048
+ ), /* @__PURE__ */ React85.createElement(
8955
9049
  Controller,
8956
9050
  {
8957
9051
  control,
8958
9052
  name: "confirmPassword",
8959
- render: ({ field }) => /* @__PURE__ */ React83.createElement(
9053
+ render: ({ field }) => /* @__PURE__ */ React85.createElement(
8960
9054
  HawaTextField,
8961
9055
  {
8962
9056
  width: "full",
@@ -8972,17 +9066,17 @@ var UserProfileForm = (props) => {
8972
9066
  required: props.texts.confirmPasswordRequiredText
8973
9067
  }
8974
9068
  }
8975
- ))), /* @__PURE__ */ React83.createElement(CardFooter, null, /* @__PURE__ */ React83.createElement(Button, { className: "w-full", type: "submit" }, props.texts.updateProfile))));
9069
+ ))), /* @__PURE__ */ React85.createElement(CardFooter, null, /* @__PURE__ */ React85.createElement(Button, { className: "w-full", type: "submit" }, props.texts.updateProfile))));
8976
9070
  };
8977
9071
 
8978
9072
  // src/blocks/Account/UserSettingsForm.tsx
8979
- import React84 from "react";
9073
+ import React86 from "react";
8980
9074
  var UserSettingsForm = (props) => {
8981
- return /* @__PURE__ */ React84.createElement(Card, null, /* @__PURE__ */ React84.createElement(CardContent, { headless: true }, /* @__PURE__ */ React84.createElement("div", { className: "mb-2 text-sm font-bold" }, props.blockTitle), /* @__PURE__ */ React84.createElement("div", { className: "flex flex-col gap-4 rounded p-2" }, props.children)));
9075
+ return /* @__PURE__ */ React86.createElement(Card, null, /* @__PURE__ */ React86.createElement(CardContent, { headless: true }, /* @__PURE__ */ React86.createElement("div", { className: "mb-2 text-sm font-bold" }, props.blockTitle), /* @__PURE__ */ React86.createElement("div", { className: "flex flex-col gap-4 rounded p-2" }, props.children)));
8982
9076
  };
8983
9077
 
8984
9078
  // src/blocks/AuthForms/AppLanding.tsx
8985
- import React85 from "react";
9079
+ import React87 from "react";
8986
9080
 
8987
9081
  // src/elements/Icons.tsx
8988
9082
  var Icons = {
@@ -9157,77 +9251,77 @@ var Icons = {
9157
9251
 
9158
9252
  // src/blocks/AuthForms/AppLanding.tsx
9159
9253
  var AppLanding = (props) => {
9160
- return /* @__PURE__ */ React85.createElement("div", { dir: props.direction }, /* @__PURE__ */ React85.createElement(Card, null, /* @__PURE__ */ React85.createElement(CardContent, { headless: true, className: "flex flex-col gap-6" }, props.viaGoogle && /* @__PURE__ */ React85.createElement(
9254
+ return /* @__PURE__ */ React87.createElement("div", { dir: props.direction }, /* @__PURE__ */ React87.createElement(Card, null, /* @__PURE__ */ React87.createElement(CardContent, { headless: true, className: "flex flex-col gap-6" }, props.viaGoogle && /* @__PURE__ */ React87.createElement(
9161
9255
  Button,
9162
9256
  {
9163
9257
  className: "flex flex-row items-center gap-2",
9164
9258
  variant: "outline",
9165
9259
  onClick: props.handleGoogle
9166
9260
  },
9167
- /* @__PURE__ */ React85.createElement(Icons.google, { className: "h-4 w-4" }),
9261
+ /* @__PURE__ */ React87.createElement(Icons.google, { className: "h-4 w-4" }),
9168
9262
  props.texts?.continueWithGoogle ?? "Continue With Google"
9169
- ), props.viaGithub && /* @__PURE__ */ React85.createElement(
9263
+ ), props.viaGithub && /* @__PURE__ */ React87.createElement(
9170
9264
  Button,
9171
9265
  {
9172
9266
  className: "flex flex-row items-center gap-2",
9173
9267
  variant: "outline",
9174
9268
  onClick: props.handleGithub
9175
9269
  },
9176
- /* @__PURE__ */ React85.createElement(Icons.gitHub, { className: "h-4 w-4" }),
9270
+ /* @__PURE__ */ React87.createElement(Icons.gitHub, { className: "h-4 w-4" }),
9177
9271
  props.texts?.continueWithGithub ?? "Continue With Github"
9178
- ), props.viaTwitter && /* @__PURE__ */ React85.createElement(
9272
+ ), props.viaTwitter && /* @__PURE__ */ React87.createElement(
9179
9273
  Button,
9180
9274
  {
9181
9275
  className: "flex flex-row items-center gap-2",
9182
9276
  variant: "outline",
9183
9277
  onClick: props.handleTwitter
9184
9278
  },
9185
- /* @__PURE__ */ React85.createElement(Icons.twitter, { className: "h-4 w-4" }),
9279
+ /* @__PURE__ */ React87.createElement(Icons.twitter, { className: "h-4 w-4" }),
9186
9280
  props.texts?.continueWithTwitter ?? "Continue With Twitter"
9187
- ), props.viaApple && /* @__PURE__ */ React85.createElement(
9281
+ ), props.viaApple && /* @__PURE__ */ React87.createElement(
9188
9282
  Button,
9189
9283
  {
9190
9284
  className: "flex flex-row items-center gap-2",
9191
9285
  variant: "outline",
9192
9286
  onClick: props.handleApple
9193
9287
  },
9194
- /* @__PURE__ */ React85.createElement(Icons.apple, { className: "h-4 w-4" }),
9288
+ /* @__PURE__ */ React87.createElement(Icons.apple, { className: "h-4 w-4" }),
9195
9289
  props.texts?.continueWithApple ?? "Continue With Apple"
9196
- ), props.viaMicrosoft && /* @__PURE__ */ React85.createElement(
9290
+ ), props.viaMicrosoft && /* @__PURE__ */ React87.createElement(
9197
9291
  Button,
9198
9292
  {
9199
9293
  className: "flex flex-row items-center gap-2",
9200
9294
  variant: "outline",
9201
9295
  onClick: props.handleMicrosoft
9202
9296
  },
9203
- /* @__PURE__ */ React85.createElement(Icons.microsoft, { className: "h-4 w-4" }),
9297
+ /* @__PURE__ */ React87.createElement(Icons.microsoft, { className: "h-4 w-4" }),
9204
9298
  props.texts?.continueWithMicrosoft ?? "Continue With Microsoft"
9205
- ), props.viaEmail && /* @__PURE__ */ React85.createElement(
9299
+ ), props.viaEmail && /* @__PURE__ */ React87.createElement(
9206
9300
  Button,
9207
9301
  {
9208
9302
  className: "flex flex-row items-center gap-2",
9209
9303
  variant: "outline",
9210
9304
  onClick: props.handleEmail
9211
9305
  },
9212
- /* @__PURE__ */ React85.createElement(Icons.mail, { className: "h-4 w-4" }),
9306
+ /* @__PURE__ */ React87.createElement(Icons.mail, { className: "h-4 w-4" }),
9213
9307
  props.texts?.continueWithEmail ?? "Continue With Email"
9214
- ), props.viaPhone && /* @__PURE__ */ React85.createElement(
9308
+ ), props.viaPhone && /* @__PURE__ */ React87.createElement(
9215
9309
  Button,
9216
9310
  {
9217
9311
  className: "flex flex-row items-center gap-2",
9218
9312
  variant: "outline",
9219
9313
  onClick: props.handlePhone
9220
9314
  },
9221
- /* @__PURE__ */ React85.createElement(Icons.phone, { className: "h-4 w-4" }),
9315
+ /* @__PURE__ */ React87.createElement(Icons.phone, { className: "h-4 w-4" }),
9222
9316
  props.texts?.continueWithPhone ?? "Continue With Phone"
9223
- ), !props.withoutSignUp && /* @__PURE__ */ React85.createElement("div", { className: "p-3 text-center text-sm font-normal dark:text-gray-300" }, props.texts.newUserText, " ", /* @__PURE__ */ React85.createElement(
9317
+ ), !props.withoutSignUp && /* @__PURE__ */ React87.createElement("div", { className: "p-3 text-center text-sm font-normal dark:text-gray-300" }, props.texts.newUserText, " ", /* @__PURE__ */ React87.createElement(
9224
9318
  "span",
9225
9319
  {
9226
9320
  onClick: props.handleRouteToSignUp,
9227
9321
  className: "clickable-link"
9228
9322
  },
9229
9323
  props.texts.createAccount
9230
- )))), /* @__PURE__ */ React85.createElement("div", { className: "mt-6 flex flex-row justify-between" }, /* @__PURE__ */ React85.createElement(
9324
+ )))), /* @__PURE__ */ React87.createElement("div", { className: "mt-6 flex flex-row justify-between" }, /* @__PURE__ */ React87.createElement(
9231
9325
  HawaRadio,
9232
9326
  {
9233
9327
  onChangeTab: props.handleLanguage,
@@ -9237,7 +9331,7 @@ var AppLanding = (props) => {
9237
9331
  { value: "en", label: "English" }
9238
9332
  ]
9239
9333
  }
9240
- ), /* @__PURE__ */ React85.createElement(
9334
+ ), /* @__PURE__ */ React87.createElement(
9241
9335
  HawaRadio,
9242
9336
  {
9243
9337
  onChangeTab: props.handleColorMode,
@@ -9245,7 +9339,7 @@ var AppLanding = (props) => {
9245
9339
  options: [
9246
9340
  {
9247
9341
  value: "light",
9248
- label: /* @__PURE__ */ React85.createElement(
9342
+ label: /* @__PURE__ */ React87.createElement(
9249
9343
  "svg",
9250
9344
  {
9251
9345
  width: "15",
@@ -9255,7 +9349,7 @@ var AppLanding = (props) => {
9255
9349
  xmlns: "http://www.w3.org/2000/svg",
9256
9350
  className: "h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90"
9257
9351
  },
9258
- /* @__PURE__ */ React85.createElement(
9352
+ /* @__PURE__ */ React87.createElement(
9259
9353
  "path",
9260
9354
  {
9261
9355
  d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",
@@ -9268,7 +9362,7 @@ var AppLanding = (props) => {
9268
9362
  },
9269
9363
  {
9270
9364
  value: "dark",
9271
- label: /* @__PURE__ */ React85.createElement(
9365
+ label: /* @__PURE__ */ React87.createElement(
9272
9366
  "svg",
9273
9367
  {
9274
9368
  xmlns: "http://www.w3.org/2000/svg",
@@ -9282,7 +9376,7 @@ var AppLanding = (props) => {
9282
9376
  strokeLinejoin: "round",
9283
9377
  className: "h-[1.2rem] w-[1.2rem] transition-all dark:rotate-0 dark:scale-100"
9284
9378
  },
9285
- /* @__PURE__ */ React85.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
9379
+ /* @__PURE__ */ React87.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
9286
9380
  )
9287
9381
  }
9288
9382
  ]
@@ -9291,7 +9385,7 @@ var AppLanding = (props) => {
9291
9385
  };
9292
9386
 
9293
9387
  // src/blocks/AuthForms/SignInPhone.tsx
9294
- import React86, { useState as useState43 } from "react";
9388
+ import React88, { useState as useState44 } from "react";
9295
9389
  import { Controller as Controller2, useForm as useForm2 } from "react-hook-form";
9296
9390
  var SignInPhone = (props) => {
9297
9391
  const methods = useForm2();
@@ -9300,8 +9394,8 @@ var SignInPhone = (props) => {
9300
9394
  handleSubmit,
9301
9395
  control
9302
9396
  } = methods;
9303
- const [userPhone, setUserPhone] = useState43("");
9304
- return /* @__PURE__ */ React86.createElement(Card, null, /* @__PURE__ */ React86.createElement(CardContent, { headless: true }, /* @__PURE__ */ React86.createElement(
9397
+ const [userPhone, setUserPhone] = useState44("");
9398
+ return /* @__PURE__ */ React88.createElement(Card, null, /* @__PURE__ */ React88.createElement(CardContent, { headless: true }, /* @__PURE__ */ React88.createElement(
9305
9399
  "form",
9306
9400
  {
9307
9401
  onSubmit: (e) => {
@@ -9309,12 +9403,12 @@ var SignInPhone = (props) => {
9309
9403
  props.handleSignIn(userPhone);
9310
9404
  }
9311
9405
  },
9312
- /* @__PURE__ */ React86.createElement(
9406
+ /* @__PURE__ */ React88.createElement(
9313
9407
  Controller2,
9314
9408
  {
9315
9409
  control,
9316
9410
  name: "phone",
9317
- render: ({ field }) => /* @__PURE__ */ React86.createElement(
9411
+ render: ({ field }) => /* @__PURE__ */ React88.createElement(
9318
9412
  HawaPhoneInput,
9319
9413
  {
9320
9414
  country: props.country ?? "",
@@ -9328,13 +9422,13 @@ var SignInPhone = (props) => {
9328
9422
  }
9329
9423
  }
9330
9424
  ),
9331
- /* @__PURE__ */ React86.createElement("div", { className: "mt-2" }),
9332
- /* @__PURE__ */ React86.createElement(Button, { className: "w-full" }, props.SignInButtonText)
9425
+ /* @__PURE__ */ React88.createElement("div", { className: "mt-2" }),
9426
+ /* @__PURE__ */ React88.createElement(Button, { className: "w-full" }, props.SignInButtonText)
9333
9427
  )));
9334
9428
  };
9335
9429
 
9336
9430
  // src/blocks/AuthForms/SignInForm.tsx
9337
- import React87 from "react";
9431
+ import React89 from "react";
9338
9432
  import { Controller as Controller3, useForm as useForm3 } from "react-hook-form";
9339
9433
  var SignInForm = (props) => {
9340
9434
  const {
@@ -9342,19 +9436,19 @@ var SignInForm = (props) => {
9342
9436
  handleSubmit,
9343
9437
  control
9344
9438
  } = useForm3();
9345
- return /* @__PURE__ */ React87.createElement("div", { className: "flex flex-col gap-4" }, /* @__PURE__ */ React87.createElement(Card, { dir: props.direction }, /* @__PURE__ */ React87.createElement(CardContent, { headless: true }, /* @__PURE__ */ React87.createElement("form", { onSubmit: handleSubmit((e) => props.handleSignIn(e)) }, props.showError && /* @__PURE__ */ React87.createElement(
9439
+ return /* @__PURE__ */ React89.createElement("div", { className: "flex flex-col gap-4" }, /* @__PURE__ */ React89.createElement(Card, { dir: props.direction }, /* @__PURE__ */ React89.createElement(CardContent, { headless: true }, /* @__PURE__ */ React89.createElement("form", { onSubmit: handleSubmit((e) => props.handleSignIn(e)) }, props.showError && /* @__PURE__ */ React89.createElement(
9346
9440
  HawaAlert,
9347
9441
  {
9348
9442
  title: props.errorTitle,
9349
9443
  text: props.errorText,
9350
9444
  severity: "error"
9351
9445
  }
9352
- ), props.signInType === "email" ? /* @__PURE__ */ React87.createElement(
9446
+ ), props.signInType === "email" ? /* @__PURE__ */ React89.createElement(
9353
9447
  Controller3,
9354
9448
  {
9355
9449
  control,
9356
9450
  name: "email",
9357
- render: ({ field }) => /* @__PURE__ */ React87.createElement(
9451
+ render: ({ field }) => /* @__PURE__ */ React89.createElement(
9358
9452
  HawaTextField,
9359
9453
  {
9360
9454
  width: "full",
@@ -9375,13 +9469,13 @@ var SignInForm = (props) => {
9375
9469
  }
9376
9470
  }
9377
9471
  }
9378
- ) : props.signInType === "username" ? /* @__PURE__ */ React87.createElement(
9472
+ ) : props.signInType === "username" ? /* @__PURE__ */ React89.createElement(
9379
9473
  Controller3,
9380
9474
  {
9381
9475
  control,
9382
9476
  name: "username",
9383
9477
  render: ({ field }) => {
9384
- return /* @__PURE__ */ React87.createElement(
9478
+ return /* @__PURE__ */ React89.createElement(
9385
9479
  HawaTextField,
9386
9480
  {
9387
9481
  width: "full",
@@ -9399,20 +9493,20 @@ var SignInForm = (props) => {
9399
9493
  required: props.texts.usernameRequired
9400
9494
  }
9401
9495
  }
9402
- ) : /* @__PURE__ */ React87.createElement(
9496
+ ) : /* @__PURE__ */ React89.createElement(
9403
9497
  Controller3,
9404
9498
  {
9405
9499
  control,
9406
9500
  name: "phone",
9407
- render: ({ field }) => /* @__PURE__ */ React87.createElement(HawaPhoneInput, { label: "Phone number" }),
9501
+ render: ({ field }) => /* @__PURE__ */ React89.createElement(HawaPhoneInput, { label: "Phone number" }),
9408
9502
  rules: { required: props.texts.phoneRequiredText }
9409
9503
  }
9410
- ), props.signInType !== "phone" && /* @__PURE__ */ React87.createElement(React87.Fragment, null, /* @__PURE__ */ React87.createElement(
9504
+ ), props.signInType !== "phone" && /* @__PURE__ */ React89.createElement(React89.Fragment, null, /* @__PURE__ */ React89.createElement(
9411
9505
  Controller3,
9412
9506
  {
9413
9507
  control,
9414
9508
  name: "password",
9415
- render: ({ field }) => /* @__PURE__ */ React87.createElement(
9509
+ render: ({ field }) => /* @__PURE__ */ React89.createElement(
9416
9510
  HawaTextField,
9417
9511
  {
9418
9512
  width: "full",
@@ -9430,58 +9524,58 @@ var SignInForm = (props) => {
9430
9524
  minLength: 5
9431
9525
  }
9432
9526
  }
9433
- ), !props.withoutResetPassword && /* @__PURE__ */ React87.createElement(
9527
+ ), !props.withoutResetPassword && /* @__PURE__ */ React89.createElement(
9434
9528
  "div",
9435
9529
  {
9436
9530
  onClick: props.handleForgotPassword,
9437
9531
  className: "mb-3 w-fit cursor-pointer text-xs dark:text-gray-300"
9438
9532
  },
9439
9533
  props.texts.forgotPasswordText
9440
- )), /* @__PURE__ */ React87.createElement(Button, { className: "mt-4 w-full", isLoading: props.isLoading }, props.texts.signInText), !props.withoutSignUp && /* @__PURE__ */ React87.createElement("div", { className: "p-3 text-center text-sm font-normal dark:text-gray-300" }, props.texts.newUserText, " ", /* @__PURE__ */ React87.createElement(
9534
+ )), /* @__PURE__ */ React89.createElement(Button, { className: "mt-4 w-full", isLoading: props.isLoading }, props.texts.signInText), !props.withoutSignUp && /* @__PURE__ */ React89.createElement("div", { className: "p-3 text-center text-sm font-normal dark:text-gray-300" }, props.texts.newUserText, " ", /* @__PURE__ */ React89.createElement(
9441
9535
  "span",
9442
9536
  {
9443
9537
  onClick: props.handleRouteToSignUp,
9444
9538
  className: "clickable-link"
9445
9539
  },
9446
9540
  props.texts.createAccount
9447
- )))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React87.createElement(
9541
+ )))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React89.createElement(
9448
9542
  CardFooter,
9449
9543
  {
9450
9544
  className: cn(
9451
9545
  props.logosOnly ? "flex flex-row gap-2 justify-center" : "grid grid-cols-1 gap-2"
9452
9546
  )
9453
9547
  },
9454
- props.viaGoogle && /* @__PURE__ */ React87.createElement(
9548
+ props.viaGoogle && /* @__PURE__ */ React89.createElement(
9455
9549
  Button,
9456
9550
  {
9457
9551
  className: "flex flex-row items-center gap-2",
9458
9552
  variant: "outline",
9459
9553
  onClick: props.handleGoogleSignIn
9460
9554
  },
9461
- /* @__PURE__ */ React87.createElement(Icons.google, { className: "h-4 w-4" }),
9555
+ /* @__PURE__ */ React89.createElement(Icons.google, { className: "h-4 w-4" }),
9462
9556
  !props.logosOnly && props.texts.signInViaGoogleLabel
9463
9557
  ),
9464
- props.viaGithub && /* @__PURE__ */ React87.createElement(
9558
+ props.viaGithub && /* @__PURE__ */ React89.createElement(
9465
9559
  Button,
9466
9560
  {
9467
9561
  className: "flex flex-row items-center gap-2",
9468
9562
  variant: "outline",
9469
9563
  onClick: props.handleGithubSignIn
9470
9564
  },
9471
- /* @__PURE__ */ React87.createElement(Icons.gitHub, { className: "h-4 w-4" }),
9565
+ /* @__PURE__ */ React89.createElement(Icons.gitHub, { className: "h-4 w-4" }),
9472
9566
  !props.logosOnly && props.texts.signInViaGithubLabel
9473
9567
  ),
9474
- props.viaTwitter && /* @__PURE__ */ React87.createElement(
9568
+ props.viaTwitter && /* @__PURE__ */ React89.createElement(
9475
9569
  Button,
9476
9570
  {
9477
9571
  className: "flex flex-row items-center gap-2",
9478
9572
  variant: "outline",
9479
9573
  onClick: props.handleTwitterSignIn
9480
9574
  },
9481
- /* @__PURE__ */ React87.createElement(Icons.twitter, { className: "h-4 w-4" }),
9575
+ /* @__PURE__ */ React89.createElement(Icons.twitter, { className: "h-4 w-4" }),
9482
9576
  !props.logosOnly && props.texts.signInViaTwitterLabel
9483
9577
  )
9484
- ) : null), /* @__PURE__ */ React87.createElement(
9578
+ ) : null), /* @__PURE__ */ React89.createElement(
9485
9579
  InterfaceSettings,
9486
9580
  {
9487
9581
  currentColorMode: props.currentColorMode,
@@ -9498,7 +9592,7 @@ function SignInBlock() {
9498
9592
  }
9499
9593
 
9500
9594
  // src/blocks/AuthForms/SignUpForm.tsx
9501
- import React88 from "react";
9595
+ import React90 from "react";
9502
9596
  import { Controller as Controller4, FormProvider as FormProvider2, useForm as useForm4 } from "react-hook-form";
9503
9597
  var SignUpForm = (props) => {
9504
9598
  const methods = useForm4();
@@ -9507,22 +9601,22 @@ var SignUpForm = (props) => {
9507
9601
  handleSubmit,
9508
9602
  control
9509
9603
  } = methods;
9510
- return /* @__PURE__ */ React88.createElement("div", { className: "flex flex-col gap-4" }, /* @__PURE__ */ React88.createElement(Card, { dir: props.direction }, /* @__PURE__ */ React88.createElement(CardContent, { headless: true }, /* @__PURE__ */ React88.createElement("div", null, props.showError && /* @__PURE__ */ React88.createElement(
9604
+ return /* @__PURE__ */ React90.createElement("div", { className: "flex flex-col gap-4" }, /* @__PURE__ */ React90.createElement(Card, { dir: props.direction }, /* @__PURE__ */ React90.createElement(CardContent, { headless: true }, /* @__PURE__ */ React90.createElement("div", null, props.showError && /* @__PURE__ */ React90.createElement(
9511
9605
  HawaAlert,
9512
9606
  {
9513
9607
  title: props.errorTitle,
9514
9608
  text: props.errorText,
9515
9609
  severity: "error"
9516
9610
  }
9517
- ), /* @__PURE__ */ React88.createElement(FormProvider2, { ...methods }, /* @__PURE__ */ React88.createElement("form", { onSubmit: handleSubmit((e) => props.handleSignUp(e)) }, /* @__PURE__ */ React88.createElement("div", null, props.signUpFields.map((fld, i) => {
9611
+ ), /* @__PURE__ */ React90.createElement(FormProvider2, { ...methods }, /* @__PURE__ */ React90.createElement("form", { onSubmit: handleSubmit((e) => props.handleSignUp(e)) }, /* @__PURE__ */ React90.createElement("div", null, props.signUpFields.map((fld, i) => {
9518
9612
  if (fld === "fullname") {
9519
- return /* @__PURE__ */ React88.createElement(
9613
+ return /* @__PURE__ */ React90.createElement(
9520
9614
  Controller4,
9521
9615
  {
9522
9616
  key: i,
9523
9617
  control,
9524
9618
  name: "fullName",
9525
- render: ({ field }) => /* @__PURE__ */ React88.createElement(
9619
+ render: ({ field }) => /* @__PURE__ */ React90.createElement(
9526
9620
  HawaTextField,
9527
9621
  {
9528
9622
  width: "full",
@@ -9541,13 +9635,13 @@ var SignUpForm = (props) => {
9541
9635
  );
9542
9636
  }
9543
9637
  if (fld === "email") {
9544
- return /* @__PURE__ */ React88.createElement(
9638
+ return /* @__PURE__ */ React90.createElement(
9545
9639
  Controller4,
9546
9640
  {
9547
9641
  key: i,
9548
9642
  control,
9549
9643
  name: "email",
9550
- render: ({ field }) => /* @__PURE__ */ React88.createElement(
9644
+ render: ({ field }) => /* @__PURE__ */ React90.createElement(
9551
9645
  HawaTextField,
9552
9646
  {
9553
9647
  width: "full",
@@ -9571,13 +9665,13 @@ var SignUpForm = (props) => {
9571
9665
  );
9572
9666
  }
9573
9667
  if (fld === "username") {
9574
- return /* @__PURE__ */ React88.createElement(
9668
+ return /* @__PURE__ */ React90.createElement(
9575
9669
  Controller4,
9576
9670
  {
9577
9671
  key: i,
9578
9672
  control,
9579
9673
  name: "username",
9580
- render: ({ field }) => /* @__PURE__ */ React88.createElement(
9674
+ render: ({ field }) => /* @__PURE__ */ React90.createElement(
9581
9675
  HawaTextField,
9582
9676
  {
9583
9677
  width: "full",
@@ -9596,12 +9690,12 @@ var SignUpForm = (props) => {
9596
9690
  }
9597
9691
  );
9598
9692
  }
9599
- })), /* @__PURE__ */ React88.createElement(
9693
+ })), /* @__PURE__ */ React90.createElement(
9600
9694
  Controller4,
9601
9695
  {
9602
9696
  control,
9603
9697
  name: "password",
9604
- render: ({ field }) => /* @__PURE__ */ React88.createElement(
9698
+ render: ({ field }) => /* @__PURE__ */ React90.createElement(
9605
9699
  HawaTextField,
9606
9700
  {
9607
9701
  width: "full",
@@ -9616,12 +9710,12 @@ var SignUpForm = (props) => {
9616
9710
  ),
9617
9711
  rules: { required: props.texts.passwordRequiredText }
9618
9712
  }
9619
- ), /* @__PURE__ */ React88.createElement(
9713
+ ), /* @__PURE__ */ React90.createElement(
9620
9714
  Controller4,
9621
9715
  {
9622
9716
  control,
9623
9717
  name: "confirm_password",
9624
- render: ({ field }) => /* @__PURE__ */ React88.createElement(
9718
+ render: ({ field }) => /* @__PURE__ */ React90.createElement(
9625
9719
  HawaTextField,
9626
9720
  {
9627
9721
  width: "full",
@@ -9636,12 +9730,12 @@ var SignUpForm = (props) => {
9636
9730
  ),
9637
9731
  rules: { required: props.texts.passwordRequiredText }
9638
9732
  }
9639
- ), props.showRefCode && /* @__PURE__ */ React88.createElement(
9733
+ ), props.showRefCode && /* @__PURE__ */ React90.createElement(
9640
9734
  Controller4,
9641
9735
  {
9642
9736
  control,
9643
9737
  name: "refCode",
9644
- render: ({ field }) => /* @__PURE__ */ React88.createElement(
9738
+ render: ({ field }) => /* @__PURE__ */ React90.createElement(
9645
9739
  HawaTextField,
9646
9740
  {
9647
9741
  width: "full",
@@ -9654,12 +9748,12 @@ var SignUpForm = (props) => {
9654
9748
  }
9655
9749
  )
9656
9750
  }
9657
- ), props.showUserSource && /* @__PURE__ */ React88.createElement("div", null, /* @__PURE__ */ React88.createElement(
9751
+ ), props.showUserSource && /* @__PURE__ */ React90.createElement("div", null, /* @__PURE__ */ React90.createElement(
9658
9752
  Controller4,
9659
9753
  {
9660
9754
  control,
9661
9755
  name: "reference",
9662
- render: ({ field }) => /* @__PURE__ */ React88.createElement(
9756
+ render: ({ field }) => /* @__PURE__ */ React90.createElement(
9663
9757
  HawaSelect,
9664
9758
  {
9665
9759
  label: "How did you learn about us?",
@@ -9678,18 +9772,18 @@ var SignUpForm = (props) => {
9678
9772
  }
9679
9773
  )
9680
9774
  }
9681
- )), props.showTermsOption && /* @__PURE__ */ React88.createElement(
9775
+ )), props.showTermsOption && /* @__PURE__ */ React90.createElement(
9682
9776
  Controller4,
9683
9777
  {
9684
9778
  control,
9685
9779
  name: "terms_accepted",
9686
- render: ({ field }) => /* @__PURE__ */ React88.createElement(
9780
+ render: ({ field }) => /* @__PURE__ */ React90.createElement(
9687
9781
  HawaCheckbox,
9688
9782
  {
9689
9783
  id: "terms_accepted",
9690
9784
  helperText: errors.terms_accepted?.message,
9691
9785
  onChange: (e) => field.onChange(e),
9692
- label: /* @__PURE__ */ React88.createElement("span", null, props.texts.iAcceptText, " ", /* @__PURE__ */ React88.createElement(
9786
+ label: /* @__PURE__ */ React90.createElement("span", null, props.texts.iAcceptText, " ", /* @__PURE__ */ React90.createElement(
9693
9787
  "a",
9694
9788
  {
9695
9789
  onClick: props.handleRouteToTOS,
@@ -9701,12 +9795,12 @@ var SignUpForm = (props) => {
9701
9795
  ),
9702
9796
  rules: { required: props.texts.termsRequiredText }
9703
9797
  }
9704
- ), props.showNewsletterOption && /* @__PURE__ */ React88.createElement(
9798
+ ), props.showNewsletterOption && /* @__PURE__ */ React90.createElement(
9705
9799
  Controller4,
9706
9800
  {
9707
9801
  control,
9708
9802
  name: "newsletter_accepted",
9709
- render: ({ field }) => /* @__PURE__ */ React88.createElement(
9803
+ render: ({ field }) => /* @__PURE__ */ React90.createElement(
9710
9804
  HawaCheckbox,
9711
9805
  {
9712
9806
  id: "newsletter_accepted",
@@ -9715,51 +9809,51 @@ var SignUpForm = (props) => {
9715
9809
  }
9716
9810
  )
9717
9811
  }
9718
- ), /* @__PURE__ */ React88.createElement(Button, { className: "w-full", isLoading: props.isLoading }, props.texts.signUpText))), /* @__PURE__ */ React88.createElement("div", { className: "flex flex-row items-center justify-center gap-1 p-3 text-center text-sm font-normal dark:text-white" }, /* @__PURE__ */ React88.createElement("span", null, props.texts.existingUserText), /* @__PURE__ */ React88.createElement(
9812
+ ), /* @__PURE__ */ React90.createElement(Button, { className: "w-full", isLoading: props.isLoading }, props.texts.signUpText))), /* @__PURE__ */ React90.createElement("div", { className: "flex flex-row items-center justify-center gap-1 p-3 text-center text-sm font-normal dark:text-white" }, /* @__PURE__ */ React90.createElement("span", null, props.texts.existingUserText), /* @__PURE__ */ React90.createElement(
9719
9813
  "span",
9720
9814
  {
9721
9815
  onClick: props.handleRouteToSignIn,
9722
9816
  className: "clickable-link"
9723
9817
  },
9724
9818
  props.texts.signInText
9725
- )))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React88.createElement(
9819
+ )))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React90.createElement(
9726
9820
  CardFooter,
9727
9821
  {
9728
9822
  className: cn(
9729
9823
  props.logosOnly ? "flex flex-row justify-center gap-2" : "grid grid-cols-1 gap-2"
9730
9824
  )
9731
9825
  },
9732
- props.viaGoogle && /* @__PURE__ */ React88.createElement(
9826
+ props.viaGoogle && /* @__PURE__ */ React90.createElement(
9733
9827
  Button,
9734
9828
  {
9735
9829
  className: "flex flex-row items-center gap-2",
9736
9830
  variant: "outline",
9737
9831
  onClick: props.handleGoogleSignUp
9738
9832
  },
9739
- /* @__PURE__ */ React88.createElement(Icons.google, { className: "h-4 w-4" }),
9833
+ /* @__PURE__ */ React90.createElement(Icons.google, { className: "h-4 w-4" }),
9740
9834
  !props.logosOnly && props.texts.signUpViaGoogleLabel
9741
9835
  ),
9742
- props.viaGithub && /* @__PURE__ */ React88.createElement(
9836
+ props.viaGithub && /* @__PURE__ */ React90.createElement(
9743
9837
  Button,
9744
9838
  {
9745
9839
  className: "flex flex-row items-center gap-2",
9746
9840
  variant: "outline",
9747
9841
  onClick: props.handleGithubSignUp
9748
9842
  },
9749
- /* @__PURE__ */ React88.createElement(Icons.gitHub, { className: "h-4 w-4" }),
9843
+ /* @__PURE__ */ React90.createElement(Icons.gitHub, { className: "h-4 w-4" }),
9750
9844
  !props.logosOnly && props.texts.signUpViaGithubLabel
9751
9845
  ),
9752
- props.viaTwitter && /* @__PURE__ */ React88.createElement(
9846
+ props.viaTwitter && /* @__PURE__ */ React90.createElement(
9753
9847
  Button,
9754
9848
  {
9755
9849
  className: "flex flex-row items-center gap-2",
9756
9850
  variant: "outline",
9757
9851
  onClick: props.handleTwitterSignUp
9758
9852
  },
9759
- /* @__PURE__ */ React88.createElement(Icons.twitter, { className: "h-4 w-4" }),
9853
+ /* @__PURE__ */ React90.createElement(Icons.twitter, { className: "h-4 w-4" }),
9760
9854
  !props.logosOnly && props.texts.signUpViaTwitterLabel
9761
9855
  )
9762
- ) : null), /* @__PURE__ */ React88.createElement(
9856
+ ) : null), /* @__PURE__ */ React90.createElement(
9763
9857
  InterfaceSettings,
9764
9858
  {
9765
9859
  currentColorMode: props.currentColorMode,
@@ -9771,10 +9865,10 @@ var SignUpForm = (props) => {
9771
9865
  };
9772
9866
 
9773
9867
  // src/blocks/AuthForms/NewPasswordForm.tsx
9774
- import React89, { useState as useState44 } from "react";
9868
+ import React91, { useState as useState45 } from "react";
9775
9869
  import { Controller as Controller5, FormProvider as FormProvider3, useForm as useForm5 } from "react-hook-form";
9776
9870
  var NewPasswordForm = (props) => {
9777
- const [matchError, setMatchError] = useState44(false);
9871
+ const [matchError, setMatchError] = useState45(false);
9778
9872
  const methods = useForm5();
9779
9873
  const {
9780
9874
  formState: { errors },
@@ -9788,12 +9882,12 @@ var NewPasswordForm = (props) => {
9788
9882
  setMatchError(true);
9789
9883
  }
9790
9884
  };
9791
- return /* @__PURE__ */ React89.createElement(Card, null, matchError && /* @__PURE__ */ React89.createElement(HawaAlert, { text: props.texts.passwordMatchError, severity: "error" }), props.passwordChanged ? /* @__PURE__ */ React89.createElement(CardContent, { headless: true }, /* @__PURE__ */ React89.createElement("div", { className: "text-center" }, props.texts.passwordChanged)) : /* @__PURE__ */ React89.createElement(FormProvider3, { ...methods }, /* @__PURE__ */ React89.createElement("form", { onSubmit: handleSubmit(handleSubmission) }, /* @__PURE__ */ React89.createElement(CardHeader, null, /* @__PURE__ */ React89.createElement(CardTitle, null, "Create Password"), /* @__PURE__ */ React89.createElement(CardDescription, null, "Set a new password for your account")), /* @__PURE__ */ React89.createElement(CardContent, null, /* @__PURE__ */ React89.createElement(
9885
+ return /* @__PURE__ */ React91.createElement(Card, null, matchError && /* @__PURE__ */ React91.createElement(HawaAlert, { text: props.texts.passwordMatchError, severity: "error" }), props.passwordChanged ? /* @__PURE__ */ React91.createElement(CardContent, { headless: true }, /* @__PURE__ */ React91.createElement("div", { className: "text-center" }, props.texts.passwordChanged)) : /* @__PURE__ */ React91.createElement(FormProvider3, { ...methods }, /* @__PURE__ */ React91.createElement("form", { onSubmit: handleSubmit(handleSubmission) }, /* @__PURE__ */ React91.createElement(CardHeader, null, /* @__PURE__ */ React91.createElement(CardTitle, null, "Create Password"), /* @__PURE__ */ React91.createElement(CardDescription, null, "Set a new password for your account")), /* @__PURE__ */ React91.createElement(CardContent, null, /* @__PURE__ */ React91.createElement(
9792
9886
  Controller5,
9793
9887
  {
9794
9888
  control,
9795
9889
  name: "password",
9796
- render: ({ field }) => /* @__PURE__ */ React89.createElement(
9890
+ render: ({ field }) => /* @__PURE__ */ React91.createElement(
9797
9891
  HawaTextField,
9798
9892
  {
9799
9893
  width: "full",
@@ -9810,12 +9904,12 @@ var NewPasswordForm = (props) => {
9810
9904
  required: props.texts.passwordRequiredText
9811
9905
  }
9812
9906
  }
9813
- ), /* @__PURE__ */ React89.createElement(
9907
+ ), /* @__PURE__ */ React91.createElement(
9814
9908
  Controller5,
9815
9909
  {
9816
9910
  control,
9817
9911
  name: "confirmPassword",
9818
- render: ({ field }) => /* @__PURE__ */ React89.createElement(
9912
+ render: ({ field }) => /* @__PURE__ */ React91.createElement(
9819
9913
  HawaTextField,
9820
9914
  {
9821
9915
  width: "full",
@@ -9832,11 +9926,11 @@ var NewPasswordForm = (props) => {
9832
9926
  required: props.texts.confirmPasswordRequiredText
9833
9927
  }
9834
9928
  }
9835
- )), /* @__PURE__ */ React89.createElement(CardFooter, null, /* @__PURE__ */ React89.createElement(Button, { className: "w-full", type: "submit" }, props.texts.updatePassword)))));
9929
+ )), /* @__PURE__ */ React91.createElement(CardFooter, null, /* @__PURE__ */ React91.createElement(Button, { className: "w-full", type: "submit" }, props.texts.updatePassword)))));
9836
9930
  };
9837
9931
 
9838
9932
  // src/blocks/AuthForms/ResetPasswordForm.tsx
9839
- import React90 from "react";
9933
+ import React92 from "react";
9840
9934
  import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
9841
9935
  var ResetPasswordForm = (props) => {
9842
9936
  const methods = useForm6();
@@ -9846,12 +9940,12 @@ var ResetPasswordForm = (props) => {
9846
9940
  register,
9847
9941
  control
9848
9942
  } = methods;
9849
- return /* @__PURE__ */ React90.createElement(Card, { dir: props.direction }, !props.sent ? /* @__PURE__ */ React90.createElement(React90.Fragment, null, !props.headless && /* @__PURE__ */ React90.createElement(CardHeader, null, /* @__PURE__ */ React90.createElement(CardTitle, null, "Reset Password"), /* @__PURE__ */ React90.createElement(CardDescription, null, "Enter your email to reset your account password")), /* @__PURE__ */ React90.createElement("form", { onSubmit: handleSubmit(props.handleResetPassword) }, /* @__PURE__ */ React90.createElement(CardContent, { headless: props.headless }, /* @__PURE__ */ React90.createElement(
9943
+ return /* @__PURE__ */ React92.createElement(Card, { dir: props.direction }, !props.sent ? /* @__PURE__ */ React92.createElement(React92.Fragment, null, !props.headless && /* @__PURE__ */ React92.createElement(CardHeader, null, /* @__PURE__ */ React92.createElement(CardTitle, null, "Reset Password"), /* @__PURE__ */ React92.createElement(CardDescription, null, "Enter your email to reset your account password")), /* @__PURE__ */ React92.createElement("form", { onSubmit: handleSubmit(props.handleResetPassword) }, /* @__PURE__ */ React92.createElement(CardContent, { headless: props.headless }, /* @__PURE__ */ React92.createElement(
9850
9944
  Controller6,
9851
9945
  {
9852
9946
  control,
9853
9947
  name: "email",
9854
- render: ({ field }) => /* @__PURE__ */ React90.createElement(
9948
+ render: ({ field }) => /* @__PURE__ */ React92.createElement(
9855
9949
  HawaTextField,
9856
9950
  {
9857
9951
  width: "full",
@@ -9871,28 +9965,28 @@ var ResetPasswordForm = (props) => {
9871
9965
  }
9872
9966
  }
9873
9967
  }
9874
- ), /* @__PURE__ */ React90.createElement("div", { className: "pb-2 text-start text-sm dark:text-gray-300" }, props.texts?.dontHaveAccount ?? "Don't have an account? ", /* @__PURE__ */ React90.createElement(
9968
+ ), /* @__PURE__ */ React92.createElement("div", { className: "pb-2 text-start text-sm dark:text-gray-300" }, props.texts?.dontHaveAccount ?? "Don't have an account? ", /* @__PURE__ */ React92.createElement(
9875
9969
  "span",
9876
9970
  {
9877
9971
  onClick: props.handleRouteToSignUp,
9878
9972
  className: "clickable-link"
9879
9973
  },
9880
9974
  props.texts?.signUpText ?? "Sign Up"
9881
- ))), /* @__PURE__ */ React90.createElement(CardFooter, null, /* @__PURE__ */ React90.createElement(Button, { type: "submit", className: "w-full" }, props.texts?.resetPassword)))) : /* @__PURE__ */ React90.createElement(CardContent, { headless: true }, /* @__PURE__ */ React90.createElement("div", { className: "text-center" }, props.texts?.emailSentText)));
9975
+ ))), /* @__PURE__ */ React92.createElement(CardFooter, null, /* @__PURE__ */ React92.createElement(Button, { type: "submit", className: "w-full" }, props.texts?.resetPassword)))) : /* @__PURE__ */ React92.createElement(CardContent, { headless: true }, /* @__PURE__ */ React92.createElement("div", { className: "text-center" }, props.texts?.emailSentText)));
9882
9976
  };
9883
9977
 
9884
9978
  // src/blocks/AuthForms/CodeConfirmation.tsx
9885
- import React91, { useState as useState45 } from "react";
9979
+ import React93, { useState as useState46 } from "react";
9886
9980
  var CodeConfirmation = (props) => {
9887
- const [pins, setPins] = useState45(null);
9888
- return /* @__PURE__ */ React91.createElement(Card, null, /* @__PURE__ */ React91.createElement(CardContent, { headless: true }, props.showError && /* @__PURE__ */ React91.createElement(
9981
+ const [pins, setPins] = useState46(null);
9982
+ return /* @__PURE__ */ React93.createElement(Card, null, /* @__PURE__ */ React93.createElement(CardContent, { headless: true }, props.showError && /* @__PURE__ */ React93.createElement(
9889
9983
  HawaAlert,
9890
9984
  {
9891
9985
  title: props.errorTitle,
9892
9986
  text: props.errorText,
9893
9987
  severity: "error"
9894
9988
  }
9895
- ), /* @__PURE__ */ React91.createElement("div", { className: "mb-4 dark:text-white" }, /* @__PURE__ */ React91.createElement("div", { className: "text-lg font-bold" }, props.texts.checkYourPhone ?? "Please check your phone"), /* @__PURE__ */ React91.createElement("div", { className: "text-muted-foreground" }, /* @__PURE__ */ React91.createElement("span", null, props.texts.weSentCode ?? "We've sent a code to "), /* @__PURE__ */ React91.createElement("span", null, props.phoneNumber)), " "), /* @__PURE__ */ React91.createElement(
9989
+ ), /* @__PURE__ */ React93.createElement("div", { className: "mb-4 dark:text-white" }, /* @__PURE__ */ React93.createElement("div", { className: "text-lg font-bold" }, props.texts.checkYourPhone ?? "Please check your phone"), /* @__PURE__ */ React93.createElement("div", { className: "text-muted-foreground" }, /* @__PURE__ */ React93.createElement("span", null, props.texts.weSentCode ?? "We've sent a code to "), /* @__PURE__ */ React93.createElement("span", null, props.phoneNumber)), " "), /* @__PURE__ */ React93.createElement(
9896
9990
  "form",
9897
9991
  {
9898
9992
  onSubmit: (e) => {
@@ -9902,16 +9996,16 @@ var CodeConfirmation = (props) => {
9902
9996
  }
9903
9997
  }
9904
9998
  },
9905
- /* @__PURE__ */ React91.createElement(HawaPinInput, { width: "full", digits: 6, getPins: (e) => setPins(e) }),
9906
- /* @__PURE__ */ React91.createElement("div", { className: " py-2 text-center text-xs text-muted-foreground" }, /* @__PURE__ */ React91.createElement("span", null, props.texts.didntGetCode ?? "Didn't get the code?"), " ", /* @__PURE__ */ React91.createElement("span", { className: "clickable-link" }, props.texts.resendCode ?? "Click to resend")),
9907
- /* @__PURE__ */ React91.createElement("div", { className: "mt-4 grid grid-cols-2 gap-2" }, /* @__PURE__ */ React91.createElement(Button, { variant: "secondary" }, props.texts.cancel ?? "Cancel"), /* @__PURE__ */ React91.createElement(Button, null, props.texts.confirm ?? "Confirm"))
9999
+ /* @__PURE__ */ React93.createElement(HawaPinInput, { width: "full", digits: 6, getPins: (e) => setPins(e) }),
10000
+ /* @__PURE__ */ React93.createElement("div", { className: " py-2 text-center text-xs text-muted-foreground" }, /* @__PURE__ */ React93.createElement("span", null, props.texts.didntGetCode ?? "Didn't get the code?"), " ", /* @__PURE__ */ React93.createElement("span", { className: "clickable-link" }, props.texts.resendCode ?? "Click to resend")),
10001
+ /* @__PURE__ */ React93.createElement("div", { className: "mt-4 grid grid-cols-2 gap-2" }, /* @__PURE__ */ React93.createElement(Button, { variant: "secondary" }, props.texts.cancel ?? "Cancel"), /* @__PURE__ */ React93.createElement(Button, null, props.texts.confirm ?? "Confirm"))
9908
10002
  )));
9909
10003
  };
9910
10004
 
9911
10005
  // src/blocks/AuthForms/CheckEmail.tsx
9912
- import React92 from "react";
10006
+ import React94 from "react";
9913
10007
  var CheckEmail = ({ texts, handleResend }) => {
9914
- return /* @__PURE__ */ React92.createElement(Card, null, /* @__PURE__ */ React92.createElement(CardContent, { headless: true }, /* @__PURE__ */ React92.createElement("div", { className: "flex flex-col items-center justify-center text-center" }, /* @__PURE__ */ React92.createElement("div", { className: "flex h-16 w-16 flex-col items-center justify-center rounded-3xl bg-primary text-6xl font-bold text-primary-foreground" }, /* @__PURE__ */ React92.createElement(
10008
+ return /* @__PURE__ */ React94.createElement(Card, null, /* @__PURE__ */ React94.createElement(CardContent, { headless: true }, /* @__PURE__ */ React94.createElement("div", { className: "flex flex-col items-center justify-center text-center" }, /* @__PURE__ */ React94.createElement("div", { className: "flex h-16 w-16 flex-col items-center justify-center rounded-3xl bg-primary text-6xl font-bold text-primary-foreground" }, /* @__PURE__ */ React94.createElement(
9915
10009
  "svg",
9916
10010
  {
9917
10011
  stroke: "currentColor",
@@ -9924,16 +10018,16 @@ var CheckEmail = ({ texts, handleResend }) => {
9924
10018
  width: "0.5em",
9925
10019
  xmlns: "http://www.w3.org/2000/svg"
9926
10020
  },
9927
- /* @__PURE__ */ React92.createElement("path", { d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" }),
9928
- /* @__PURE__ */ React92.createElement("polyline", { points: "22,6 12,13 2,6" })
9929
- )), /* @__PURE__ */ React92.createElement("div", { className: "m-2 text-xl font-bold" }, texts?.checkEmail ?? "Check you email"), /* @__PURE__ */ React92.createElement("div", { className: "text-sm" }, texts?.pleaseVerify ?? "Thank you for signing up! To complete your registration, we've sent a verification email to the address you provided. Please check your inbox and follow the instructions in the email to activate your account."))), /* @__PURE__ */ React92.createElement(CardFooter, { className: "flex flex-col justify-center " }, /* @__PURE__ */ React92.createElement("span", { className: "clickable-link text-sm", onClick: handleResend }, texts?.resendEmail ?? "Resend Email")));
10021
+ /* @__PURE__ */ React94.createElement("path", { d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" }),
10022
+ /* @__PURE__ */ React94.createElement("polyline", { points: "22,6 12,13 2,6" })
10023
+ )), /* @__PURE__ */ React94.createElement("div", { className: "m-2 text-xl font-bold" }, texts?.checkEmail ?? "Check you email"), /* @__PURE__ */ React94.createElement("div", { className: "text-sm" }, texts?.pleaseVerify ?? "Thank you for signing up! To complete your registration, we've sent a verification email to the address you provided. Please check your inbox and follow the instructions in the email to activate your account."))), /* @__PURE__ */ React94.createElement(CardFooter, { className: "flex flex-col justify-center " }, /* @__PURE__ */ React94.createElement("span", { className: "clickable-link text-sm", onClick: handleResend }, texts?.resendEmail ?? "Resend Email")));
9930
10024
  };
9931
10025
 
9932
10026
  // src/blocks/Payment/SelectPayment.tsx
9933
- import React93, { useState as useState47 } from "react";
10027
+ import React95, { useState as useState48 } from "react";
9934
10028
  var SelectPayment = (props) => {
9935
- const [selectedMethod, setSelectedMethod] = useState47("");
9936
- return /* @__PURE__ */ React93.createElement(Card, null, /* @__PURE__ */ React93.createElement(CardHeader, null, /* @__PURE__ */ React93.createElement(CardTitle, null, "Choose Payment Method"), /* @__PURE__ */ React93.createElement(CardDescription, null, "And you'll be directed to the next step to complete the payment")), /* @__PURE__ */ React93.createElement(CardContent, { className: "grid grid-cols-2 gap-4" }, /* @__PURE__ */ React93.createElement(
10029
+ const [selectedMethod, setSelectedMethod] = useState48("");
10030
+ return /* @__PURE__ */ React95.createElement(Card, null, /* @__PURE__ */ React95.createElement(CardHeader, null, /* @__PURE__ */ React95.createElement(CardTitle, null, "Choose Payment Method"), /* @__PURE__ */ React95.createElement(CardDescription, null, "And you'll be directed to the next step to complete the payment")), /* @__PURE__ */ React95.createElement(CardContent, { className: "grid grid-cols-2 gap-4" }, /* @__PURE__ */ React95.createElement(
9937
10031
  Button,
9938
10032
  {
9939
10033
  className: cn(
@@ -9945,15 +10039,15 @@ var SelectPayment = (props) => {
9945
10039
  disabled: !props.viaMada,
9946
10040
  onClick: () => setSelectedMethod("mada")
9947
10041
  },
9948
- /* @__PURE__ */ React93.createElement(
10042
+ /* @__PURE__ */ React95.createElement(
9949
10043
  "img",
9950
10044
  {
9951
10045
  src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/mada.png",
9952
10046
  className: "h-6"
9953
10047
  }
9954
10048
  ),
9955
- /* @__PURE__ */ React93.createElement("span", null, props.madaLabel)
9956
- ), /* @__PURE__ */ React93.createElement(
10049
+ /* @__PURE__ */ React95.createElement("span", null, props.madaLabel)
10050
+ ), /* @__PURE__ */ React95.createElement(
9957
10051
  Button,
9958
10052
  {
9959
10053
  className: cn(
@@ -9965,15 +10059,15 @@ var SelectPayment = (props) => {
9965
10059
  disabled: !props.viaApplePay,
9966
10060
  onClick: () => setSelectedMethod("apple-pay")
9967
10061
  },
9968
- /* @__PURE__ */ React93.createElement(
10062
+ /* @__PURE__ */ React95.createElement(
9969
10063
  "img",
9970
10064
  {
9971
10065
  src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/apple-pay.png",
9972
10066
  className: "h-11"
9973
10067
  }
9974
10068
  ),
9975
- /* @__PURE__ */ React93.createElement("span", null, props.applePayLabel)
9976
- ), /* @__PURE__ */ React93.createElement(
10069
+ /* @__PURE__ */ React95.createElement("span", null, props.applePayLabel)
10070
+ ), /* @__PURE__ */ React95.createElement(
9977
10071
  Button,
9978
10072
  {
9979
10073
  className: cn(
@@ -9985,15 +10079,15 @@ var SelectPayment = (props) => {
9985
10079
  disabled: !props.viaCreditCard,
9986
10080
  onClick: () => setSelectedMethod("visa-master")
9987
10081
  },
9988
- /* @__PURE__ */ React93.createElement(
10082
+ /* @__PURE__ */ React95.createElement(
9989
10083
  "img",
9990
10084
  {
9991
10085
  src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/visa-master.png",
9992
10086
  className: "h-6"
9993
10087
  }
9994
10088
  ),
9995
- /* @__PURE__ */ React93.createElement("span", null, props.visaMasterLabel)
9996
- ), /* @__PURE__ */ React93.createElement(
10089
+ /* @__PURE__ */ React95.createElement("span", null, props.visaMasterLabel)
10090
+ ), /* @__PURE__ */ React95.createElement(
9997
10091
  Button,
9998
10092
  {
9999
10093
  variant: "outline",
@@ -10005,7 +10099,7 @@ var SelectPayment = (props) => {
10005
10099
  disabled: !props.viaWallet,
10006
10100
  onClick: () => setSelectedMethod("wallet")
10007
10101
  },
10008
- /* @__PURE__ */ React93.createElement(
10102
+ /* @__PURE__ */ React95.createElement(
10009
10103
  "svg",
10010
10104
  {
10011
10105
  version: "1.1",
@@ -10013,20 +10107,20 @@ var SelectPayment = (props) => {
10013
10107
  viewBox: "0 0 223 223",
10014
10108
  className: "h-6 w-6"
10015
10109
  },
10016
- /* @__PURE__ */ React93.createElement("g", null, /* @__PURE__ */ React93.createElement(
10110
+ /* @__PURE__ */ React95.createElement("g", null, /* @__PURE__ */ React95.createElement(
10017
10111
  "path",
10018
10112
  {
10019
10113
  d: "M223,94.5c0-6.075-4.925-11-11-11h-63c-6.075,0-11,4.925-11,11v33c0,6.075,4.925,11,11,11h63c6.075,0,11-4.925,11-11V94.5z\n M169.515,123.967c-7.082,0-12.823-5.741-12.823-12.823c0-7.082,5.741-12.823,12.823-12.823c7.082,0,12.823,5.741,12.823,12.823\n C182.338,118.225,176.597,123.967,169.515,123.967z"
10020
10114
  }
10021
- ), /* @__PURE__ */ React93.createElement(
10115
+ ), /* @__PURE__ */ React95.createElement(
10022
10116
  "path",
10023
10117
  {
10024
10118
  d: "M123.509,68.5H205v-33c0-8.271-6.395-15-14.667-15h-175C7.062,20.5,0,27.229,0,35.5v152c0,8.271,7.062,15,15.333,15h175\n c8.271,0,14.667-6.729,14.667-15v-34h-81.342L123.509,68.5z"
10025
10119
  }
10026
10120
  ))
10027
10121
  ),
10028
- /* @__PURE__ */ React93.createElement("span", null, props.walletLabel)
10029
- ), /* @__PURE__ */ React93.createElement(
10122
+ /* @__PURE__ */ React95.createElement("span", null, props.walletLabel)
10123
+ ), /* @__PURE__ */ React95.createElement(
10030
10124
  Button,
10031
10125
  {
10032
10126
  variant: "outline",
@@ -10038,15 +10132,15 @@ var SelectPayment = (props) => {
10038
10132
  disabled: !props.viaSTCPay,
10039
10133
  onClick: () => setSelectedMethod("stc-pay")
10040
10134
  },
10041
- /* @__PURE__ */ React93.createElement(
10135
+ /* @__PURE__ */ React95.createElement(
10042
10136
  "img",
10043
10137
  {
10044
10138
  src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/stc-pay.png",
10045
10139
  className: "h-6"
10046
10140
  }
10047
10141
  ),
10048
- /* @__PURE__ */ React93.createElement("span", null, props.stcPayLabel)
10049
- ), /* @__PURE__ */ React93.createElement(
10142
+ /* @__PURE__ */ React95.createElement("span", null, props.stcPayLabel)
10143
+ ), /* @__PURE__ */ React95.createElement(
10050
10144
  Button,
10051
10145
  {
10052
10146
  variant: "outline",
@@ -10058,15 +10152,15 @@ var SelectPayment = (props) => {
10058
10152
  disabled: !props.viaGooglePay,
10059
10153
  onClick: () => setSelectedMethod("google-pay")
10060
10154
  },
10061
- /* @__PURE__ */ React93.createElement(
10155
+ /* @__PURE__ */ React95.createElement(
10062
10156
  "img",
10063
10157
  {
10064
10158
  src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/google-pay.png",
10065
10159
  className: "h-6"
10066
10160
  }
10067
10161
  ),
10068
- /* @__PURE__ */ React93.createElement("span", null, props.googlePayLabel)
10069
- ), /* @__PURE__ */ React93.createElement(
10162
+ /* @__PURE__ */ React95.createElement("span", null, props.googlePayLabel)
10163
+ ), /* @__PURE__ */ React95.createElement(
10070
10164
  Button,
10071
10165
  {
10072
10166
  variant: "outline",
@@ -10078,15 +10172,15 @@ var SelectPayment = (props) => {
10078
10172
  disabled: !props.viaPayPal,
10079
10173
  onClick: () => setSelectedMethod("paypal")
10080
10174
  },
10081
- /* @__PURE__ */ React93.createElement(
10175
+ /* @__PURE__ */ React95.createElement(
10082
10176
  "img",
10083
10177
  {
10084
10178
  src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/paypal.png",
10085
10179
  className: "h-6"
10086
10180
  }
10087
10181
  ),
10088
- /* @__PURE__ */ React93.createElement("span", null, props.paypalLabel)
10089
- )), /* @__PURE__ */ React93.createElement(CardFooter, null, /* @__PURE__ */ React93.createElement(
10182
+ /* @__PURE__ */ React95.createElement("span", null, props.paypalLabel)
10183
+ )), /* @__PURE__ */ React95.createElement(CardFooter, null, /* @__PURE__ */ React95.createElement(
10090
10184
  Button,
10091
10185
  {
10092
10186
  onClick: () => props.handleContinue(selectedMethod),
@@ -10098,41 +10192,90 @@ var SelectPayment = (props) => {
10098
10192
  };
10099
10193
 
10100
10194
  // src/blocks/Payment/CreditCardForm.tsx
10101
- import React94 from "react";
10195
+ import React96, { useEffect as useEffect28, useState as useState49 } from "react";
10102
10196
  import { Controller as Controller7, useForm as useForm7 } from "react-hook-form";
10103
10197
  var CreditCardForm = (props) => {
10198
+ const [cardNumber, setCardNumber] = useState49("");
10199
+ const [cardType, setCardType] = useState49("");
10104
10200
  const methods = useForm7();
10105
10201
  const {
10106
10202
  formState: { errors },
10107
10203
  handleSubmit,
10108
10204
  control
10109
10205
  } = methods;
10110
- return /* @__PURE__ */ React94.createElement(Card, null, /* @__PURE__ */ React94.createElement("form", { onSubmit: handleSubmit(props.handle) }, /* @__PURE__ */ React94.createElement(CardContent, { headless: true }, /* @__PURE__ */ React94.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ React94.createElement(
10206
+ const getCardType = (card_bin) => {
10207
+ const visa_regex = /^4[0-9]{0,15}$/m;
10208
+ const mastercard_regex = /^5$|^5[0-5][0-9]{0,16}$/m;
10209
+ const amex_regex = /^3$|^3[47][0-9]{0,13}$/m;
10210
+ const mada_regex = /^(440647|440795|446404|457865|968208|457997|474491|636120|417633|468540|468541|468542|468543|968201|446393|409201|458456|484783|462220|455708|410621|455036|486094|486095|486096|504300|440533|489318|489319|445564|968211|410685|406996|432328|428671|428672|428673|968206|446672|543357|434107|407197|407395|412565|431361|604906|521076|529415|535825|543085|524130|554180|549760|968209|524514|529741|537767|535989|536023|513213|520058|558563|588982|589005|531095|530906|532013|968204|422817|422818|422819|428331|483010|483011|483012|589206|968207|419593|439954|530060|531196|420132)/;
10211
+ const meeza_regex = /^507803[0-6][0-9]|507808[3-9][0-9]|507809[0-9][0-9]|507810[0-2][0-9]/;
10212
+ let card_type = "visa";
10213
+ if (card_bin.replace(/[^\d]/g, "").match(mada_regex)) {
10214
+ card_type = "mada";
10215
+ } else if (card_bin.replace(/[^\d]/g, "").match(meeza_regex)) {
10216
+ card_type = "meeza";
10217
+ } else if (card_bin.replace(/[^\d]/g, "").match(visa_regex)) {
10218
+ card_type = "visa";
10219
+ } else if (card_bin.replace(/[^\d]/g, "").match(mastercard_regex)) {
10220
+ card_type = "mastercard";
10221
+ } else if (card_bin.replace(/[^\d]/g, "").match(amex_regex)) {
10222
+ card_type = "amex";
10223
+ }
10224
+ return card_type;
10225
+ };
10226
+ const onCardNumberChange = (event) => {
10227
+ let { value, name } = event.target;
10228
+ let cardNumber2 = value;
10229
+ value = value.replace(/\D/g, "");
10230
+ if (/^3[47]\d{0,13}$/.test(value)) {
10231
+ cardNumber2 = value.replace(/(\d{4})/, "$1 ").replace(/(\d{4}) (\d{6})/, "$1 $2 ");
10232
+ } else if (/^3(?:0[0-5]|[68]\d)\d{0,11}$/.test(value)) {
10233
+ cardNumber2 = value.replace(/(\d{4})/, "$1 ").replace(/(\d{4}) (\d{6})/, "$1 $2 ");
10234
+ } else if (/^\d{0,16}$/.test(value)) {
10235
+ cardNumber2 = value.replace(/(\d{4})/, "$1 ").replace(/(\d{4}) (\d{4})/, "$1 $2 ").replace(/(\d{4}) (\d{4}) (\d{4})/, "$1 $2 $3 ");
10236
+ }
10237
+ console.log("card number is ", cardNumber2.trimRight());
10238
+ setCardNumber(cardNumber2.trimRight());
10239
+ };
10240
+ useEffect28(() => {
10241
+ let cardTypeSlug = getCardType(cardNumber);
10242
+ setCardType(cardTypeSlug);
10243
+ });
10244
+ return /* @__PURE__ */ React96.createElement(Card, null, /* @__PURE__ */ React96.createElement("form", { onSubmit: handleSubmit(props.handle) }, /* @__PURE__ */ React96.createElement(CardContent, { headless: true }, /* @__PURE__ */ React96.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ React96.createElement(
10111
10245
  Controller7,
10112
10246
  {
10113
10247
  control,
10114
- name: "cardName",
10115
- render: ({ field }) => /* @__PURE__ */ React94.createElement(
10248
+ name: "cardNumber",
10249
+ render: ({ field }) => /* @__PURE__ */ React96.createElement(
10116
10250
  HawaTextField,
10117
10251
  {
10118
10252
  width: "full",
10119
10253
  name: "cardNumber",
10120
10254
  placeholder: "1234 1234 1234 1234",
10121
10255
  type: "number",
10256
+ onChange: onCardNumberChange,
10122
10257
  label: "Card Number",
10123
- helpertext: errors.password?.message
10258
+ helpertext: errors.password?.message,
10259
+ iconInside: /* @__PURE__ */ React96.createElement(
10260
+ "img",
10261
+ {
10262
+ src: `https://sikka-images.s3.ap-southeast-1.amazonaws.com/payment-symbols/borderless/${cardType}.png`,
10263
+ alt: "",
10264
+ className: "h-8"
10265
+ }
10266
+ )
10124
10267
  }
10125
10268
  ),
10126
10269
  rules: {
10127
10270
  required: "Card Number is rquired"
10128
10271
  }
10129
10272
  }
10130
- ), /* @__PURE__ */ React94.createElement("div", { className: "w-1/4" }, /* @__PURE__ */ React94.createElement(
10273
+ ), /* @__PURE__ */ React96.createElement("div", { className: "w-1/4" }, /* @__PURE__ */ React96.createElement(
10131
10274
  Controller7,
10132
10275
  {
10133
10276
  control,
10134
10277
  name: "cardCVC",
10135
- render: ({ field }) => /* @__PURE__ */ React94.createElement(
10278
+ render: ({ field }) => /* @__PURE__ */ React96.createElement(
10136
10279
  HawaTextField,
10137
10280
  {
10138
10281
  width: "full",
@@ -10149,12 +10292,12 @@ var CreditCardForm = (props) => {
10149
10292
  required: "Password is rquired"
10150
10293
  }
10151
10294
  }
10152
- ))), /* @__PURE__ */ React94.createElement(
10295
+ ))), /* @__PURE__ */ React96.createElement(
10153
10296
  Controller7,
10154
10297
  {
10155
10298
  control,
10156
10299
  name: "cardExpiry",
10157
- render: ({ field }) => /* @__PURE__ */ React94.createElement(
10300
+ render: ({ field }) => /* @__PURE__ */ React96.createElement(
10158
10301
  HawaTextField,
10159
10302
  {
10160
10303
  width: "full",
@@ -10169,12 +10312,12 @@ var CreditCardForm = (props) => {
10169
10312
  required: "Password is rquired"
10170
10313
  }
10171
10314
  }
10172
- ), /* @__PURE__ */ React94.createElement(
10315
+ ), /* @__PURE__ */ React96.createElement(
10173
10316
  Controller7,
10174
10317
  {
10175
10318
  control,
10176
10319
  name: "cardName",
10177
- render: ({ field }) => /* @__PURE__ */ React94.createElement(
10320
+ render: ({ field }) => /* @__PURE__ */ React96.createElement(
10178
10321
  HawaTextField,
10179
10322
  {
10180
10323
  width: "full",
@@ -10188,24 +10331,24 @@ var CreditCardForm = (props) => {
10188
10331
  required: "Card holder name is rquired"
10189
10332
  }
10190
10333
  }
10191
- )), /* @__PURE__ */ React94.createElement(CardFooter, null, /* @__PURE__ */ React94.createElement(Button, { className: "w-full", onClick: props.handlePayWithCreditCard }, "Pay with Credit Card"))));
10334
+ )), /* @__PURE__ */ React96.createElement(CardFooter, null, /* @__PURE__ */ React96.createElement(Button, { className: "w-full", onClick: props.handlePayWithCreditCard }, "Pay with Credit Card"))));
10192
10335
  };
10193
10336
 
10194
10337
  // src/blocks/Payment/ChargeWalletForm.tsx
10195
- import React95, { useState as useState48 } from "react";
10338
+ import React97, { useState as useState50 } from "react";
10196
10339
  var ChargeWalletForm = (props) => {
10197
- const [walletAmount, setWalletAmount] = useState48(0);
10198
- return /* @__PURE__ */ React95.createElement(Card, null, /* @__PURE__ */ React95.createElement(CardContent, { headless: true }, /* @__PURE__ */ React95.createElement("div", { className: "p-4 text-center" }, /* @__PURE__ */ React95.createElement("div", { className: " text-5xl font-extrabold" }, Number(walletAmount).toLocaleString("en") || "0"), /* @__PURE__ */ React95.createElement("div", { className: "text-sm font-normal" }, props.currency || "SAR")), /* @__PURE__ */ React95.createElement("div", { className: "mb-2 flex w-full flex-col gap-4 text-center" }, /* @__PURE__ */ React95.createElement("div", { className: "mb-2 flex w-full flex-row gap-4 text-center" }, /* @__PURE__ */ React95.createElement(Button, { variant: "outline", className: "h-full w-full" }, "10 SAR"), /* @__PURE__ */ React95.createElement(Button, { variant: "outline", className: "h-full w-full" }, "50 SAR"), /* @__PURE__ */ React95.createElement(Button, { variant: "outline", className: "h-full w-full" }, "100 SAR")), /* @__PURE__ */ React95.createElement(Input, { placeholder: "Custom Amount", type: "number", name: "amount" })), /* @__PURE__ */ React95.createElement(Button, { className: "mt-6 w-full" }, props.texts.chargeWallet)));
10340
+ const [walletAmount, setWalletAmount] = useState50(0);
10341
+ return /* @__PURE__ */ React97.createElement(Card, null, /* @__PURE__ */ React97.createElement(CardContent, { headless: true }, /* @__PURE__ */ React97.createElement("div", { className: "p-4 text-center" }, /* @__PURE__ */ React97.createElement("div", { className: " text-5xl font-extrabold" }, Number(walletAmount).toLocaleString("en") || "0"), /* @__PURE__ */ React97.createElement("div", { className: "text-sm font-normal" }, props.currency || "SAR")), /* @__PURE__ */ React97.createElement("div", { className: "mb-2 flex w-full flex-col gap-4 text-center" }, /* @__PURE__ */ React97.createElement("div", { className: "mb-2 flex w-full flex-row gap-4 text-center" }, /* @__PURE__ */ React97.createElement(Button, { variant: "outline", className: "h-full w-full" }, "10 SAR"), /* @__PURE__ */ React97.createElement(Button, { variant: "outline", className: "h-full w-full" }, "50 SAR"), /* @__PURE__ */ React97.createElement(Button, { variant: "outline", className: "h-full w-full" }, "100 SAR")), /* @__PURE__ */ React97.createElement(Input, { placeholder: "Custom Amount", type: "number", name: "amount" })), /* @__PURE__ */ React97.createElement(Button, { className: "mt-6 w-full" }, props.texts.chargeWallet)));
10199
10342
  };
10200
10343
 
10201
10344
  // src/blocks/Payment/PayWithWallet.tsx
10202
- import React96 from "react";
10345
+ import React98 from "react";
10203
10346
  var PayWithWallet = (props) => {
10204
- return /* @__PURE__ */ React96.createElement(Card, null, /* @__PURE__ */ React96.createElement(CardContent, { headless: true }, /* @__PURE__ */ React96.createElement("div", { className: "text-center text-5xl font-extrabold" }, props.walletBalance || "0", /* @__PURE__ */ React96.createElement("div", { className: "text-sm font-normal" }, props.currency || "SAR")), /* @__PURE__ */ React96.createElement(Button, { className: "mt-6 w-full", onClick: props.handlePayWithWallet }, "Pay Now")));
10347
+ return /* @__PURE__ */ React98.createElement(Card, null, /* @__PURE__ */ React98.createElement(CardContent, { headless: true }, /* @__PURE__ */ React98.createElement("div", { className: "text-center text-5xl font-extrabold" }, props.walletBalance || "0", /* @__PURE__ */ React98.createElement("div", { className: "text-sm font-normal" }, props.currency || "SAR")), /* @__PURE__ */ React98.createElement(Button, { className: "mt-6 w-full", onClick: props.handlePayWithWallet }, "Pay Now")));
10205
10348
  };
10206
10349
 
10207
10350
  // src/blocks/Payment/CheckoutForm.tsx
10208
- import React97 from "react";
10351
+ import React99 from "react";
10209
10352
  import { Controller as Controller8, FormProvider as FormProvider4, useForm as useForm8 } from "react-hook-form";
10210
10353
  var CheckoutForm = (props) => {
10211
10354
  let isArabic = props.lang === "ar";
@@ -10229,7 +10372,7 @@ var CheckoutForm = (props) => {
10229
10372
  xl: "row"
10230
10373
  }
10231
10374
  };
10232
- return /* @__PURE__ */ React97.createElement(Card, null, /* @__PURE__ */ React97.createElement(CardHeader, null, /* @__PURE__ */ React97.createElement(CardTitle, null, props.texts.orderDetails)), /* @__PURE__ */ React97.createElement(CardContent, null, /* @__PURE__ */ React97.createElement("div", null, /* @__PURE__ */ React97.createElement("div", { className: "rounded border border-gray-300" }, /* @__PURE__ */ React97.createElement(
10375
+ return /* @__PURE__ */ React99.createElement(Card, null, /* @__PURE__ */ React99.createElement(CardHeader, null, /* @__PURE__ */ React99.createElement(CardTitle, null, props.texts.orderDetails)), /* @__PURE__ */ React99.createElement(CardContent, null, /* @__PURE__ */ React99.createElement("div", null, /* @__PURE__ */ React99.createElement("div", { className: "rounded border border-gray-300" }, /* @__PURE__ */ React99.createElement(
10233
10376
  HawaTable,
10234
10377
  {
10235
10378
  pagination: false,
@@ -10243,13 +10386,13 @@ var CheckoutForm = (props) => {
10243
10386
  rows: props.products,
10244
10387
  bordersWidth: "1"
10245
10388
  }
10246
- )))), /* @__PURE__ */ React97.createElement(CardHeader, null, /* @__PURE__ */ React97.createElement(CardTitle, null, props.texts.billingAddress)), /* @__PURE__ */ React97.createElement("form", { onSubmit: handleSubmit(props.handlePayNow) }, /* @__PURE__ */ React97.createElement(CardContent, null, /* @__PURE__ */ React97.createElement("div", null, /* @__PURE__ */ React97.createElement(FormProvider4, { ...methods }, /* @__PURE__ */ React97.createElement("div", null, /* @__PURE__ */ React97.createElement(
10389
+ )))), /* @__PURE__ */ React99.createElement(CardHeader, null, /* @__PURE__ */ React99.createElement(CardTitle, null, props.texts.billingAddress)), /* @__PURE__ */ React99.createElement("form", { onSubmit: handleSubmit(props.handlePayNow) }, /* @__PURE__ */ React99.createElement(CardContent, null, /* @__PURE__ */ React99.createElement("div", null, /* @__PURE__ */ React99.createElement(FormProvider4, { ...methods }, /* @__PURE__ */ React99.createElement("div", null, /* @__PURE__ */ React99.createElement(
10247
10390
  Controller8,
10248
10391
  {
10249
10392
  control,
10250
10393
  name: "firstName",
10251
10394
  rules: { required: props.texts?.required },
10252
- render: ({ field }) => /* @__PURE__ */ React97.createElement(
10395
+ render: ({ field }) => /* @__PURE__ */ React99.createElement(
10253
10396
  HawaTextField,
10254
10397
  {
10255
10398
  type: "text",
@@ -10260,13 +10403,13 @@ var CheckoutForm = (props) => {
10260
10403
  }
10261
10404
  )
10262
10405
  }
10263
- ), /* @__PURE__ */ React97.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React97.createElement(
10406
+ ), /* @__PURE__ */ React99.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React99.createElement(
10264
10407
  Controller8,
10265
10408
  {
10266
10409
  control,
10267
10410
  name: "lastName",
10268
10411
  rules: { required: props.texts?.required },
10269
- render: ({ field }) => /* @__PURE__ */ React97.createElement(
10412
+ render: ({ field }) => /* @__PURE__ */ React99.createElement(
10270
10413
  HawaTextField,
10271
10414
  {
10272
10415
  width: "full",
@@ -10278,12 +10421,12 @@ var CheckoutForm = (props) => {
10278
10421
  }
10279
10422
  )
10280
10423
  }
10281
- )), /* @__PURE__ */ React97.createElement(
10424
+ )), /* @__PURE__ */ React99.createElement(
10282
10425
  Controller8,
10283
10426
  {
10284
10427
  control,
10285
10428
  name: "email",
10286
- render: ({ field }) => /* @__PURE__ */ React97.createElement(
10429
+ render: ({ field }) => /* @__PURE__ */ React99.createElement(
10287
10430
  HawaTextField,
10288
10431
  {
10289
10432
  width: "full",
@@ -10302,13 +10445,13 @@ var CheckoutForm = (props) => {
10302
10445
  }
10303
10446
  }
10304
10447
  }
10305
- ), /* @__PURE__ */ React97.createElement("div", { className: "flex flex-col md:flex-row" }, /* @__PURE__ */ React97.createElement(
10448
+ ), /* @__PURE__ */ React99.createElement("div", { className: "flex flex-col md:flex-row" }, /* @__PURE__ */ React99.createElement(
10306
10449
  Controller8,
10307
10450
  {
10308
10451
  control,
10309
10452
  name: "streetAddress",
10310
10453
  rules: { required: props.texts?.required },
10311
- render: ({ field }) => /* @__PURE__ */ React97.createElement(
10454
+ render: ({ field }) => /* @__PURE__ */ React99.createElement(
10312
10455
  HawaTextField,
10313
10456
  {
10314
10457
  width: "full",
@@ -10320,13 +10463,13 @@ var CheckoutForm = (props) => {
10320
10463
  }
10321
10464
  )
10322
10465
  }
10323
- )), /* @__PURE__ */ React97.createElement("div", { className: "flex flex-col md:flex-row" }, /* @__PURE__ */ React97.createElement(
10466
+ )), /* @__PURE__ */ React99.createElement("div", { className: "flex flex-col md:flex-row" }, /* @__PURE__ */ React99.createElement(
10324
10467
  Controller8,
10325
10468
  {
10326
10469
  control,
10327
10470
  name: "province",
10328
10471
  rules: { required: props.texts?.required },
10329
- render: ({ field }) => /* @__PURE__ */ React97.createElement(
10472
+ render: ({ field }) => /* @__PURE__ */ React99.createElement(
10330
10473
  HawaTextField,
10331
10474
  {
10332
10475
  width: "full",
@@ -10338,13 +10481,13 @@ var CheckoutForm = (props) => {
10338
10481
  }
10339
10482
  )
10340
10483
  }
10341
- ), /* @__PURE__ */ React97.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React97.createElement(
10484
+ ), /* @__PURE__ */ React99.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React99.createElement(
10342
10485
  Controller8,
10343
10486
  {
10344
10487
  control,
10345
10488
  name: "city",
10346
10489
  rules: { required: props.texts?.required },
10347
- render: ({ field }) => /* @__PURE__ */ React97.createElement(
10490
+ render: ({ field }) => /* @__PURE__ */ React99.createElement(
10348
10491
  HawaTextField,
10349
10492
  {
10350
10493
  width: "full",
@@ -10356,13 +10499,13 @@ var CheckoutForm = (props) => {
10356
10499
  }
10357
10500
  )
10358
10501
  }
10359
- )), /* @__PURE__ */ React97.createElement("div", { className: "flex flex-col md:flex-row" }, /* @__PURE__ */ React97.createElement(
10502
+ )), /* @__PURE__ */ React99.createElement("div", { className: "flex flex-col md:flex-row" }, /* @__PURE__ */ React99.createElement(
10360
10503
  Controller8,
10361
10504
  {
10362
10505
  control,
10363
10506
  name: "buildingNumber",
10364
10507
  rules: { required: props.texts?.required },
10365
- render: ({ field }) => /* @__PURE__ */ React97.createElement(
10508
+ render: ({ field }) => /* @__PURE__ */ React99.createElement(
10366
10509
  HawaTextField,
10367
10510
  {
10368
10511
  width: "full",
@@ -10374,13 +10517,13 @@ var CheckoutForm = (props) => {
10374
10517
  }
10375
10518
  )
10376
10519
  }
10377
- ), /* @__PURE__ */ React97.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React97.createElement(
10520
+ ), /* @__PURE__ */ React99.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React99.createElement(
10378
10521
  Controller8,
10379
10522
  {
10380
10523
  control,
10381
10524
  name: "zipCode",
10382
10525
  rules: { required: props.texts?.required },
10383
- render: ({ field }) => /* @__PURE__ */ React97.createElement(
10526
+ render: ({ field }) => /* @__PURE__ */ React99.createElement(
10384
10527
  HawaTextField,
10385
10528
  {
10386
10529
  width: "full",
@@ -10392,13 +10535,13 @@ var CheckoutForm = (props) => {
10392
10535
  }
10393
10536
  )
10394
10537
  }
10395
- )), /* @__PURE__ */ React97.createElement("div", { className: "mb-3" }, /* @__PURE__ */ React97.createElement(
10538
+ )), /* @__PURE__ */ React99.createElement("div", { className: "mb-3" }, /* @__PURE__ */ React99.createElement(
10396
10539
  Controller8,
10397
10540
  {
10398
10541
  control,
10399
10542
  name: "country",
10400
10543
  rules: { required: props.texts?.required },
10401
- render: ({ field }) => /* @__PURE__ */ React97.createElement(
10544
+ render: ({ field }) => /* @__PURE__ */ React99.createElement(
10402
10545
  HawaSelect,
10403
10546
  {
10404
10547
  native: true,
@@ -10409,18 +10552,18 @@ var CheckoutForm = (props) => {
10409
10552
  onChange: (e) => field.onChange(e.country_label),
10410
10553
  value: field.value ?? ""
10411
10554
  },
10412
- /* @__PURE__ */ React97.createElement("option", null),
10413
- props.countriesList.map((country, i) => /* @__PURE__ */ React97.createElement("option", { key: i }, country))
10555
+ /* @__PURE__ */ React99.createElement("option", null),
10556
+ props.countriesList.map((country, i) => /* @__PURE__ */ React99.createElement("option", { key: i }, country))
10414
10557
  )
10415
10558
  }
10416
- ))))), /* @__PURE__ */ React97.createElement(CardFooter, null, /* @__PURE__ */ React97.createElement(Button, { className: "w-full" }, props.texts.payNow)), " "));
10559
+ ))))), /* @__PURE__ */ React99.createElement(CardFooter, null, /* @__PURE__ */ React99.createElement(Button, { className: "w-full" }, props.texts.payNow)), " "));
10417
10560
  };
10418
10561
 
10419
10562
  // src/blocks/Payment/Confirmation.tsx
10420
- import React98 from "react";
10563
+ import React100 from "react";
10421
10564
  var ConfirmationPage = (props) => {
10422
10565
  let isArabic = props.lang === "ar";
10423
- return /* @__PURE__ */ React98.createElement(Card, null, /* @__PURE__ */ React98.createElement(CardContent, { headless: true }, " ", /* @__PURE__ */ React98.createElement("div", { className: "py-5 text-center text-3xl font-bold dark:text-white" }, props.confirmationTitle), /* @__PURE__ */ React98.createElement("div", { className: "py-5 dark:text-white" }, /* @__PURE__ */ React98.createElement("div", { className: "mb-2 text-center" }, props.texts.successMessage, " ", /* @__PURE__ */ React98.createElement("strong", null, props.userEmail)), /* @__PURE__ */ React98.createElement("div", { className: "text-center" }, props.texts.yourOrderNumber), /* @__PURE__ */ React98.createElement("div", { className: "text-center font-bold" }, props.orderNumber)), /* @__PURE__ */ React98.createElement("div", { className: "flex flex-col items-center justify-center gap-4 py-5 pt-0" }, /* @__PURE__ */ React98.createElement(Button, { className: "w-full", onClick: props.handlePrint }, props.texts.print), /* @__PURE__ */ React98.createElement(Button, { className: "w-full", onClick: props.handleHistory }, props.texts.history), /* @__PURE__ */ React98.createElement(Button, { className: "w-full", onClick: props.handleHome }, props.texts.homePage), /* @__PURE__ */ React98.createElement("div", { className: " text-center text-sm dark:text-white" }, props.texts.fasterPaymentNote), /* @__PURE__ */ React98.createElement(
10566
+ return /* @__PURE__ */ React100.createElement(Card, null, /* @__PURE__ */ React100.createElement(CardContent, { headless: true }, " ", /* @__PURE__ */ React100.createElement("div", { className: "py-5 text-center text-3xl font-bold dark:text-white" }, props.confirmationTitle), /* @__PURE__ */ React100.createElement("div", { className: "py-5 dark:text-white" }, /* @__PURE__ */ React100.createElement("div", { className: "mb-2 text-center" }, props.texts.successMessage, " ", /* @__PURE__ */ React100.createElement("strong", null, props.userEmail)), /* @__PURE__ */ React100.createElement("div", { className: "text-center" }, props.texts.yourOrderNumber), /* @__PURE__ */ React100.createElement("div", { className: "text-center font-bold" }, props.orderNumber)), /* @__PURE__ */ React100.createElement("div", { className: "flex flex-col items-center justify-center gap-4 py-5 pt-0" }, /* @__PURE__ */ React100.createElement(Button, { className: "w-full", onClick: props.handlePrint }, props.texts.print), /* @__PURE__ */ React100.createElement(Button, { className: "w-full", onClick: props.handleHistory }, props.texts.history), /* @__PURE__ */ React100.createElement(Button, { className: "w-full", onClick: props.handleHome }, props.texts.homePage), /* @__PURE__ */ React100.createElement("div", { className: " text-center text-sm dark:text-white" }, props.texts.fasterPaymentNote), /* @__PURE__ */ React100.createElement(
10424
10567
  "a",
10425
10568
  {
10426
10569
  className: "clickable-link text-xs",
@@ -10431,9 +10574,9 @@ var ConfirmationPage = (props) => {
10431
10574
  };
10432
10575
 
10433
10576
  // src/blocks/Pricing/PricingPlans.tsx
10434
- import React99 from "react";
10577
+ import React101 from "react";
10435
10578
  var PricingPlans = (props) => {
10436
- return /* @__PURE__ */ React99.createElement("div", null, /* @__PURE__ */ React99.createElement("div", { className: "mb-2 flex w-full justify-between" }, /* @__PURE__ */ React99.createElement(
10579
+ return /* @__PURE__ */ React101.createElement("div", null, /* @__PURE__ */ React101.createElement("div", { className: "mb-2 flex w-full justify-between" }, /* @__PURE__ */ React101.createElement(
10437
10580
  HawaRadio,
10438
10581
  {
10439
10582
  design: "tabs",
@@ -10441,7 +10584,7 @@ var PricingPlans = (props) => {
10441
10584
  options: props.billingCycles,
10442
10585
  onChangeTab: (e) => props.onCycleChange(e)
10443
10586
  }
10444
- ), /* @__PURE__ */ React99.createElement(
10587
+ ), /* @__PURE__ */ React101.createElement(
10445
10588
  HawaRadio,
10446
10589
  {
10447
10590
  design: "tabs",
@@ -10449,8 +10592,8 @@ var PricingPlans = (props) => {
10449
10592
  options: props.currencies,
10450
10593
  onChangeTab: (e) => props.onCurrencyChange(e)
10451
10594
  }
10452
- )), /* @__PURE__ */ React99.createElement("div", { className: "flex flex-row justify-between" }, props.plans.map((plan, index) => {
10453
- return /* @__PURE__ */ React99.createElement(
10595
+ )), /* @__PURE__ */ React101.createElement("div", { className: "flex flex-row justify-between" }, props.plans.map((plan, index) => {
10596
+ return /* @__PURE__ */ React101.createElement(
10454
10597
  HawaPricingCard,
10455
10598
  {
10456
10599
  key: index,
@@ -10467,8 +10610,8 @@ var PricingPlans = (props) => {
10467
10610
  };
10468
10611
 
10469
10612
  // src/blocks/Pricing/ComparingPlans.tsx
10470
- import React100, { useState as useState49 } from "react";
10471
- var CheckMark = () => /* @__PURE__ */ React100.createElement(
10613
+ import React102, { useState as useState51 } from "react";
10614
+ var CheckMark = () => /* @__PURE__ */ React102.createElement(
10472
10615
  "svg",
10473
10616
  {
10474
10617
  className: "h-5 w-5 text-green-500",
@@ -10476,7 +10619,7 @@ var CheckMark = () => /* @__PURE__ */ React100.createElement(
10476
10619
  fill: "currentColor",
10477
10620
  viewBox: "0 0 20 20"
10478
10621
  },
10479
- /* @__PURE__ */ React100.createElement(
10622
+ /* @__PURE__ */ React102.createElement(
10480
10623
  "path",
10481
10624
  {
10482
10625
  fillRule: "evenodd",
@@ -10485,7 +10628,7 @@ var CheckMark = () => /* @__PURE__ */ React100.createElement(
10485
10628
  }
10486
10629
  )
10487
10630
  );
10488
- var UncheckMark = () => /* @__PURE__ */ React100.createElement(
10631
+ var UncheckMark = () => /* @__PURE__ */ React102.createElement(
10489
10632
  "svg",
10490
10633
  {
10491
10634
  className: "h-5 w-5 text-red-500",
@@ -10493,7 +10636,7 @@ var UncheckMark = () => /* @__PURE__ */ React100.createElement(
10493
10636
  fill: "currentColor",
10494
10637
  viewBox: "0 0 20 20"
10495
10638
  },
10496
- /* @__PURE__ */ React100.createElement(
10639
+ /* @__PURE__ */ React102.createElement(
10497
10640
  "path",
10498
10641
  {
10499
10642
  fillRule: "evenodd",
@@ -10503,9 +10646,9 @@ var UncheckMark = () => /* @__PURE__ */ React100.createElement(
10503
10646
  )
10504
10647
  );
10505
10648
  var ComparingPlans = (props) => {
10506
- const [currentCurrency, setCurrentCurrency] = useState49("sar");
10507
- const [currentCycle, setCurrentCycle] = useState49("month");
10508
- return /* @__PURE__ */ React100.createElement("div", { id: "detailed-pricing", className: "w-full overflow-x-auto" }, /* @__PURE__ */ React100.createElement("div", { className: "mb-2 flex w-full justify-between" }, /* @__PURE__ */ React100.createElement(
10649
+ const [currentCurrency, setCurrentCurrency] = useState51("sar");
10650
+ const [currentCycle, setCurrentCycle] = useState51("month");
10651
+ return /* @__PURE__ */ React102.createElement("div", { id: "detailed-pricing", className: "w-full overflow-x-auto" }, /* @__PURE__ */ React102.createElement("div", { className: "mb-2 flex w-full justify-between" }, /* @__PURE__ */ React102.createElement(
10509
10652
  HawaRadio,
10510
10653
  {
10511
10654
  design: "tabs",
@@ -10513,7 +10656,7 @@ var ComparingPlans = (props) => {
10513
10656
  options: props.billingCycles,
10514
10657
  onChangeTab: (e) => props.onCycleChange(e)
10515
10658
  }
10516
- ), /* @__PURE__ */ React100.createElement(
10659
+ ), /* @__PURE__ */ React102.createElement(
10517
10660
  HawaRadio,
10518
10661
  {
10519
10662
  design: "tabs",
@@ -10521,9 +10664,9 @@ var ComparingPlans = (props) => {
10521
10664
  options: props.currencies,
10522
10665
  onChangeTab: (e) => props.onCurrencyChange(e)
10523
10666
  }
10524
- )), /* @__PURE__ */ React100.createElement("div", { className: " overflow-hidden rounded" }, /* @__PURE__ */ React100.createElement("div", { className: "grid grid-cols-4 gap-x-2 border-b border-t border-gray-200 bg-gray-100 p-4 text-sm font-medium text-gray-900 dark:border-gray-700 dark:bg-gray-800 dark:text-white" }, /* @__PURE__ */ React100.createElement("div", { className: "flex items-center" }), props.plans.map((plan) => /* @__PURE__ */ React100.createElement("div", null, /* @__PURE__ */ React100.createElement("h5", { className: "text-md 0 font-bold text-gray-500 dark:text-gray-400" }, plan.texts.title), /* @__PURE__ */ React100.createElement("div", { className: " flex items-baseline text-gray-900 dark:text-white" }, /* @__PURE__ */ React100.createElement(React100.Fragment, null, /* @__PURE__ */ React100.createElement("span", { className: "text-5xl font-extrabold tracking-tight" }, plan.price), /* @__PURE__ */ React100.createElement("span", { className: "mx-1 text-sm font-semibold" }, plan.texts.currencyText)), /* @__PURE__ */ React100.createElement("span", { className: "ml-1 text-xl font-normal text-gray-500 dark:text-gray-400" }, "/ ", plan.texts.cycleText)), /* @__PURE__ */ React100.createElement("h5", { className: "text-md font-normal text-gray-500 dark:text-gray-400" }, plan.texts.subtitle)))), props.plans?.map((plan) => {
10667
+ )), /* @__PURE__ */ React102.createElement("div", { className: " overflow-hidden rounded" }, /* @__PURE__ */ React102.createElement("div", { className: "grid grid-cols-4 gap-x-2 border-b border-t border-gray-200 bg-gray-100 p-4 text-sm font-medium text-gray-900 dark:border-gray-700 dark:bg-gray-800 dark:text-white" }, /* @__PURE__ */ React102.createElement("div", { className: "flex items-center" }), props.plans.map((plan) => /* @__PURE__ */ React102.createElement("div", null, /* @__PURE__ */ React102.createElement("h5", { className: "text-md 0 font-bold text-gray-500 dark:text-gray-400" }, plan.texts.title), /* @__PURE__ */ React102.createElement("div", { className: " flex items-baseline text-gray-900 dark:text-white" }, /* @__PURE__ */ React102.createElement(React102.Fragment, null, /* @__PURE__ */ React102.createElement("span", { className: "text-5xl font-extrabold tracking-tight" }, plan.price), /* @__PURE__ */ React102.createElement("span", { className: "mx-1 text-sm font-semibold" }, plan.texts.currencyText)), /* @__PURE__ */ React102.createElement("span", { className: "ml-1 text-xl font-normal text-gray-500 dark:text-gray-400" }, "/ ", plan.texts.cycleText)), /* @__PURE__ */ React102.createElement("h5", { className: "text-md font-normal text-gray-500 dark:text-gray-400" }, plan.texts.subtitle)))), props.plans?.map((plan) => {
10525
10668
  return plan.features.map((feature) => {
10526
- return /* @__PURE__ */ React100.createElement("div", { className: "grid grid-cols-4 gap-x-16 border-b border-gray-200 px-4 py-5 text-sm text-gray-700 dark:border-gray-700" }, /* @__PURE__ */ React100.createElement("div", { className: " flex flex-row items-center gap-2 text-gray-500 dark:text-gray-400" }, feature.text, feature.description && /* @__PURE__ */ React100.createElement(Tooltip, { side: "right", content: feature.description }, /* @__PURE__ */ React100.createElement(
10669
+ return /* @__PURE__ */ React102.createElement("div", { className: "grid grid-cols-4 gap-x-16 border-b border-gray-200 px-4 py-5 text-sm text-gray-700 dark:border-gray-700" }, /* @__PURE__ */ React102.createElement("div", { className: " flex flex-row items-center gap-2 text-gray-500 dark:text-gray-400" }, feature.text, feature.description && /* @__PURE__ */ React102.createElement(Tooltip, { side: "right", content: feature.description }, /* @__PURE__ */ React102.createElement(
10527
10670
  "svg",
10528
10671
  {
10529
10672
  stroke: "currentColor",
@@ -10533,44 +10676,44 @@ var ComparingPlans = (props) => {
10533
10676
  height: "1em",
10534
10677
  width: "1em"
10535
10678
  },
10536
- /* @__PURE__ */ React100.createElement("path", { d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" })
10537
- ))), /* @__PURE__ */ React100.createElement(UncheckMark, null), /* @__PURE__ */ React100.createElement(CheckMark, null), /* @__PURE__ */ React100.createElement(UncheckMark, null));
10679
+ /* @__PURE__ */ React102.createElement("path", { d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" })
10680
+ ))), /* @__PURE__ */ React102.createElement(UncheckMark, null), /* @__PURE__ */ React102.createElement(CheckMark, null), /* @__PURE__ */ React102.createElement(UncheckMark, null));
10538
10681
  });
10539
10682
  })));
10540
10683
  };
10541
10684
 
10542
10685
  // src/blocks/Pricing/HorizontalPricing.tsx
10543
- import React101, { useState as useState50 } from "react";
10686
+ import React103, { useState as useState52 } from "react";
10544
10687
  import clsx33 from "clsx";
10545
10688
  var HorizontalPricing = (props) => {
10546
- const [selectedCard, setSelectedCard] = useState50(null);
10689
+ const [selectedCard, setSelectedCard] = useState52(null);
10547
10690
  let data = [
10548
10691
  { title: "basic", price: "$49", cycle: "/mo" },
10549
10692
  { title: "business", price: "$99", cycle: "/mo" },
10550
10693
  { title: "enterprise", price: "$149", cycle: "/mo" }
10551
10694
  ];
10552
- return /* @__PURE__ */ React101.createElement("div", { className: "z-10 w-full max-w-screen-sm" }, /* @__PURE__ */ React101.createElement("div", { className: "max-w-2xl " }, /* @__PURE__ */ React101.createElement("div", { className: "flex flex-row justify-between" }, /* @__PURE__ */ React101.createElement(
10695
+ return /* @__PURE__ */ React103.createElement("div", { className: "z-10 w-full max-w-screen-sm" }, /* @__PURE__ */ React103.createElement("div", { className: "max-w-2xl " }, /* @__PURE__ */ React103.createElement("div", { className: "flex flex-row justify-between" }, /* @__PURE__ */ React103.createElement(
10553
10696
  HawaRadio,
10554
10697
  {
10555
10698
  design: "tabs",
10556
10699
  options: props.currencies,
10557
10700
  defaultValue: props.currentCurrency
10558
10701
  }
10559
- ), /* @__PURE__ */ React101.createElement(
10702
+ ), /* @__PURE__ */ React103.createElement(
10560
10703
  HawaRadio,
10561
10704
  {
10562
10705
  design: "tabs",
10563
10706
  options: props.billingCycles,
10564
10707
  defaultValue: props.currentCycle
10565
10708
  }
10566
- )), data.map((d) => /* @__PURE__ */ React101.createElement(
10709
+ )), data.map((d) => /* @__PURE__ */ React103.createElement(
10567
10710
  "label",
10568
10711
  {
10569
10712
  htmlFor: d.title,
10570
10713
  className: "",
10571
10714
  onClick: () => setSelectedCard(d.title)
10572
10715
  },
10573
- /* @__PURE__ */ React101.createElement(
10716
+ /* @__PURE__ */ React103.createElement(
10574
10717
  "input",
10575
10718
  {
10576
10719
  type: "radio",
@@ -10579,7 +10722,7 @@ var HorizontalPricing = (props) => {
10579
10722
  className: "peer appearance-none"
10580
10723
  }
10581
10724
  ),
10582
- /* @__PURE__ */ React101.createElement(
10725
+ /* @__PURE__ */ React103.createElement(
10583
10726
  "div",
10584
10727
  {
10585
10728
  className: clsx33(
@@ -10587,18 +10730,18 @@ var HorizontalPricing = (props) => {
10587
10730
  "peer flex cursor-pointer items-center justify-between rounded-xl border bg-background px-5 py-4 shadow dark:text-white peer-checked:[&_.active]:block peer-checked:[&_.default]:hidden"
10588
10731
  )
10589
10732
  },
10590
- /* @__PURE__ */ React101.createElement("div", { className: "peer flex items-center gap-4" }, /* @__PURE__ */ React101.createElement(CheckIcons, null), /* @__PURE__ */ React101.createElement(
10733
+ /* @__PURE__ */ React103.createElement("div", { className: "peer flex items-center gap-4" }, /* @__PURE__ */ React103.createElement(CheckIcons, null), /* @__PURE__ */ React103.createElement(
10591
10734
  CardText,
10592
10735
  {
10593
10736
  title: "Enterprise",
10594
10737
  subtitle: "For startups and new businesses"
10595
10738
  }
10596
10739
  )),
10597
- /* @__PURE__ */ React101.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
10740
+ /* @__PURE__ */ React103.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
10598
10741
  )
10599
10742
  ))));
10600
10743
  };
10601
- var CheckIcons = () => /* @__PURE__ */ React101.createElement(React101.Fragment, null, /* @__PURE__ */ React101.createElement(
10744
+ var CheckIcons = () => /* @__PURE__ */ React103.createElement(React103.Fragment, null, /* @__PURE__ */ React103.createElement(
10602
10745
  "svg",
10603
10746
  {
10604
10747
  fill: "none",
@@ -10607,7 +10750,7 @@ var CheckIcons = () => /* @__PURE__ */ React101.createElement(React101.Fragment,
10607
10750
  stroke: "currentColor",
10608
10751
  className: "default h-8 w-8 text-neutral-500"
10609
10752
  },
10610
- /* @__PURE__ */ React101.createElement(
10753
+ /* @__PURE__ */ React103.createElement(
10611
10754
  "path",
10612
10755
  {
10613
10756
  strokeLinecap: "round",
@@ -10615,14 +10758,14 @@ var CheckIcons = () => /* @__PURE__ */ React101.createElement(React101.Fragment,
10615
10758
  d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
10616
10759
  }
10617
10760
  )
10618
- ), /* @__PURE__ */ React101.createElement(
10761
+ ), /* @__PURE__ */ React103.createElement(
10619
10762
  "svg",
10620
10763
  {
10621
10764
  viewBox: "0 0 24 24",
10622
10765
  fill: "currentColor",
10623
10766
  className: "active hidden h-8 w-8 text-blue-500"
10624
10767
  },
10625
- /* @__PURE__ */ React101.createElement(
10768
+ /* @__PURE__ */ React103.createElement(
10626
10769
  "path",
10627
10770
  {
10628
10771
  fillRule: "evenodd",
@@ -10631,21 +10774,21 @@ var CheckIcons = () => /* @__PURE__ */ React101.createElement(React101.Fragment,
10631
10774
  }
10632
10775
  )
10633
10776
  ));
10634
- var CardText = (props) => /* @__PURE__ */ React101.createElement("div", { className: "peer flex flex-col items-start " }, /* @__PURE__ */ React101.createElement("h2", { className: "font-medium text-neutral-700 dark:text-gray-100 sm:text-xl" }, props.title), /* @__PURE__ */ React101.createElement("p", { className: "text-sm text-neutral-500 dark:text-gray-300" }, props.subtitle, " "));
10635
- var CardPrice = (props) => /* @__PURE__ */ React101.createElement("h2", { className: "peer text-xl font-semibold text-neutral-900 dark:text-white sm:text-2xl" }, props.amount, /* @__PURE__ */ React101.createElement("span", { className: "text-base font-medium text-neutral-400" }, props.cycle));
10777
+ var CardText = (props) => /* @__PURE__ */ React103.createElement("div", { className: "peer flex flex-col items-start " }, /* @__PURE__ */ React103.createElement("h2", { className: "font-medium text-neutral-700 dark:text-gray-100 sm:text-xl" }, props.title), /* @__PURE__ */ React103.createElement("p", { className: "text-sm text-neutral-500 dark:text-gray-300" }, props.subtitle, " "));
10778
+ var CardPrice = (props) => /* @__PURE__ */ React103.createElement("h2", { className: "peer text-xl font-semibold text-neutral-900 dark:text-white sm:text-2xl" }, props.amount, /* @__PURE__ */ React103.createElement("span", { className: "text-base font-medium text-neutral-400" }, props.cycle));
10636
10779
 
10637
10780
  // src/blocks/Referral/ReferralAccount.tsx
10638
- import React102 from "react";
10781
+ import React104 from "react";
10639
10782
  var ReferralAccount = ({
10640
10783
  referralLink,
10641
10784
  referralCode
10642
10785
  }) => {
10643
- return /* @__PURE__ */ React102.createElement(Card, null, /* @__PURE__ */ React102.createElement(CardContent, { headless: true }, /* @__PURE__ */ React102.createElement("div", { className: "my-2 mt-0" }, /* @__PURE__ */ React102.createElement("div", { className: "mb-1" }, "Referral Code"), /* @__PURE__ */ React102.createElement("div", { className: "flex flex-row items-center justify-between rounded border bg-background" }, /* @__PURE__ */ React102.createElement("span", { className: "ml-3 font-bold" }, referralCode), /* @__PURE__ */ React102.createElement(
10786
+ return /* @__PURE__ */ React104.createElement(Card, null, /* @__PURE__ */ React104.createElement(CardContent, { headless: true }, /* @__PURE__ */ React104.createElement("div", { className: "my-2 mt-0" }, /* @__PURE__ */ React104.createElement("div", { className: "mb-1" }, "Referral Code"), /* @__PURE__ */ React104.createElement("div", { className: "flex flex-row items-center justify-between rounded border bg-background" }, /* @__PURE__ */ React104.createElement("span", { className: "ml-3 font-bold" }, referralCode), /* @__PURE__ */ React104.createElement(
10644
10787
  Button,
10645
10788
  {
10646
10789
  onClick: () => navigator.clipboard.writeText(referralCode)
10647
10790
  },
10648
- /* @__PURE__ */ React102.createElement("span", { className: "bg-red flex items-center justify-center" }, /* @__PURE__ */ React102.createElement(
10791
+ /* @__PURE__ */ React104.createElement("span", { className: "bg-red flex items-center justify-center" }, /* @__PURE__ */ React104.createElement(
10649
10792
  "svg",
10650
10793
  {
10651
10794
  stroke: "currentColor",
@@ -10655,14 +10798,14 @@ var ReferralAccount = ({
10655
10798
  height: "1em",
10656
10799
  width: "1em"
10657
10800
  },
10658
- /* @__PURE__ */ React102.createElement("path", { d: "M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z" })
10801
+ /* @__PURE__ */ React104.createElement("path", { d: "M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z" })
10659
10802
  ), " ")
10660
- ))), /* @__PURE__ */ React102.createElement("div", { className: "my-2 mt-0" }, /* @__PURE__ */ React102.createElement("div", { className: "mb-1" }, "Referral Link"), /* @__PURE__ */ React102.createElement("div", { className: "flex flex-row items-center justify-between rounded border bg-background" }, /* @__PURE__ */ React102.createElement("span", { className: "ml-3 font-bold" }, referralLink), /* @__PURE__ */ React102.createElement(
10803
+ ))), /* @__PURE__ */ React104.createElement("div", { className: "my-2 mt-0" }, /* @__PURE__ */ React104.createElement("div", { className: "mb-1" }, "Referral Link"), /* @__PURE__ */ React104.createElement("div", { className: "flex flex-row items-center justify-between rounded border bg-background" }, /* @__PURE__ */ React104.createElement("span", { className: "ml-3 font-bold" }, referralLink), /* @__PURE__ */ React104.createElement(
10661
10804
  Button,
10662
10805
  {
10663
10806
  onClick: () => navigator.clipboard.writeText(referralLink)
10664
10807
  },
10665
- /* @__PURE__ */ React102.createElement("span", { className: "bg-red flex items-center justify-center" }, /* @__PURE__ */ React102.createElement(
10808
+ /* @__PURE__ */ React104.createElement("span", { className: "bg-red flex items-center justify-center" }, /* @__PURE__ */ React104.createElement(
10666
10809
  "svg",
10667
10810
  {
10668
10811
  stroke: "currentColor",
@@ -10672,13 +10815,13 @@ var ReferralAccount = ({
10672
10815
  height: "1em",
10673
10816
  width: "1em"
10674
10817
  },
10675
- /* @__PURE__ */ React102.createElement("path", { d: "M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z" })
10818
+ /* @__PURE__ */ React104.createElement("path", { d: "M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z" })
10676
10819
  ), " ")
10677
10820
  )))));
10678
10821
  };
10679
10822
 
10680
10823
  // src/blocks/Referral/ReferralSettlement.tsx
10681
- import React103 from "react";
10824
+ import React105 from "react";
10682
10825
  import { Controller as Controller9, FormProvider as FormProvider5, useForm as useForm9 } from "react-hook-form";
10683
10826
  var ReferralSettlement = ({
10684
10827
  referralLink,
@@ -10691,12 +10834,12 @@ var ReferralSettlement = ({
10691
10834
  handleSubmit,
10692
10835
  control
10693
10836
  } = methods;
10694
- return /* @__PURE__ */ React103.createElement(Card, null, /* @__PURE__ */ React103.createElement(CardContent, { headless: true }, /* @__PURE__ */ React103.createElement("div", null, /* @__PURE__ */ React103.createElement(FormProvider5, { ...methods }, /* @__PURE__ */ React103.createElement(HawaTextField, { label: "IBAN" }), /* @__PURE__ */ React103.createElement(HawaTextField, { label: "Holder Name" }), /* @__PURE__ */ React103.createElement(
10837
+ return /* @__PURE__ */ React105.createElement(Card, null, /* @__PURE__ */ React105.createElement(CardContent, { headless: true }, /* @__PURE__ */ React105.createElement("div", null, /* @__PURE__ */ React105.createElement(FormProvider5, { ...methods }, /* @__PURE__ */ React105.createElement(HawaTextField, { label: "IBAN" }), /* @__PURE__ */ React105.createElement(HawaTextField, { label: "Holder Name" }), /* @__PURE__ */ React105.createElement(
10695
10838
  Controller9,
10696
10839
  {
10697
10840
  control,
10698
10841
  name: "bank",
10699
- render: ({ field }) => /* @__PURE__ */ React103.createElement(
10842
+ render: ({ field }) => /* @__PURE__ */ React105.createElement(
10700
10843
  HawaSelect,
10701
10844
  {
10702
10845
  label: "Bank",
@@ -10715,13 +10858,13 @@ var ReferralSettlement = ({
10715
10858
  }
10716
10859
  )
10717
10860
  }
10718
- ))), /* @__PURE__ */ React103.createElement("div", null, /* @__PURE__ */ React103.createElement(Button, { className: "mt-6 w-full" }, "Add Bank Account")), withdrawError && /* @__PURE__ */ React103.createElement("div", null, /* @__PURE__ */ React103.createElement(
10861
+ ))), /* @__PURE__ */ React105.createElement("div", null, /* @__PURE__ */ React105.createElement(Button, { className: "mt-6 w-full" }, "Add Bank Account")), withdrawError && /* @__PURE__ */ React105.createElement("div", null, /* @__PURE__ */ React105.createElement(
10719
10862
  HawaAlert,
10720
10863
  {
10721
10864
  text: "Sorry can't withdraw the money at the moment. Please try again in 2022/11/20",
10722
10865
  severity: "warning"
10723
10866
  }
10724
- )), /* @__PURE__ */ React103.createElement("div", { className: "mt-3" }, /* @__PURE__ */ React103.createElement("div", { className: "mb-1" }, "Settlement Accounts"), /* @__PURE__ */ React103.createElement("div", { className: "rounded" }, /* @__PURE__ */ React103.createElement(
10867
+ )), /* @__PURE__ */ React105.createElement("div", { className: "mt-3" }, /* @__PURE__ */ React105.createElement("div", { className: "mb-1" }, "Settlement Accounts"), /* @__PURE__ */ React105.createElement("div", { className: "rounded" }, /* @__PURE__ */ React105.createElement(
10725
10868
  SettlementAccountCard,
10726
10869
  {
10727
10870
  bank: "Al Inma Bank",
@@ -10729,14 +10872,14 @@ var ReferralSettlement = ({
10729
10872
  accountHolder: "Zakher Masri",
10730
10873
  default: true
10731
10874
  }
10732
- ), /* @__PURE__ */ React103.createElement(
10875
+ ), /* @__PURE__ */ React105.createElement(
10733
10876
  SettlementAccountCard,
10734
10877
  {
10735
10878
  bank: "Al Rajihi Bank",
10736
10879
  iban: "SA10228094028098329119",
10737
10880
  accountHolder: "Zakher Masri"
10738
10881
  }
10739
- ), /* @__PURE__ */ React103.createElement(
10882
+ ), /* @__PURE__ */ React105.createElement(
10740
10883
  SettlementAccountCard,
10741
10884
  {
10742
10885
  bank: "Al Inma Bank",
@@ -10746,13 +10889,13 @@ var ReferralSettlement = ({
10746
10889
  )))));
10747
10890
  };
10748
10891
  var SettlementAccountCard = (props) => {
10749
- return /* @__PURE__ */ React103.createElement("div", { className: "mb-3 flex flex-row items-center justify-between rounded border bg-background p-3" }, /* @__PURE__ */ React103.createElement("div", { className: "flex flex-col justify-between" }, /* @__PURE__ */ React103.createElement("div", { className: "text-xs" }, props.bank), /* @__PURE__ */ React103.createElement("div", null, props.accountHolder), /* @__PURE__ */ React103.createElement("div", { className: "text-xs" }, props.iban)), /* @__PURE__ */ React103.createElement("div", { className: "flex flex-row items-center justify-center gap-2" }, props.default && /* @__PURE__ */ React103.createElement(
10892
+ return /* @__PURE__ */ React105.createElement("div", { className: "mb-3 flex flex-row items-center justify-between rounded border bg-background p-3" }, /* @__PURE__ */ React105.createElement("div", { className: "flex flex-col justify-between" }, /* @__PURE__ */ React105.createElement("div", { className: "text-xs" }, props.bank), /* @__PURE__ */ React105.createElement("div", null, props.accountHolder), /* @__PURE__ */ React105.createElement("div", { className: "text-xs" }, props.iban)), /* @__PURE__ */ React105.createElement("div", { className: "flex flex-row items-center justify-center gap-2" }, props.default && /* @__PURE__ */ React105.createElement(
10750
10893
  HawaChip,
10751
10894
  {
10752
10895
  label: "Default",
10753
10896
  size: "small"
10754
10897
  }
10755
- ), /* @__PURE__ */ React103.createElement(
10898
+ ), /* @__PURE__ */ React105.createElement(
10756
10899
  HawaMenu,
10757
10900
  {
10758
10901
  size: "small",
@@ -10764,7 +10907,7 @@ var SettlementAccountCard = (props) => {
10764
10907
  ]
10765
10908
  ]
10766
10909
  },
10767
- /* @__PURE__ */ React103.createElement(Button, { variant: "outline", size: "icon" }, /* @__PURE__ */ React103.createElement(
10910
+ /* @__PURE__ */ React105.createElement(Button, { variant: "outline", size: "icon" }, /* @__PURE__ */ React105.createElement(
10768
10911
  "svg",
10769
10912
  {
10770
10913
  "aria-label": "Vertical Three Dots Menu Icon",
@@ -10776,53 +10919,53 @@ var SettlementAccountCard = (props) => {
10776
10919
  height: "1em",
10777
10920
  width: "1em"
10778
10921
  },
10779
- /* @__PURE__ */ React103.createElement("path", { d: "M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z" })
10922
+ /* @__PURE__ */ React105.createElement("path", { d: "M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z" })
10780
10923
  ))
10781
10924
  )));
10782
10925
  };
10783
10926
 
10784
10927
  // src/blocks/Referral/ReferralStats.tsx
10785
- import React104 from "react";
10928
+ import React106 from "react";
10786
10929
  var ReferralStats = ({
10787
10930
  referralLink,
10788
10931
  referralCode,
10789
10932
  withdrawError
10790
10933
  }) => {
10791
- return /* @__PURE__ */ React104.createElement(Card, null, /* @__PURE__ */ React104.createElement(CardContent, { headless: true }, /* @__PURE__ */ React104.createElement("div", { className: "mb-1" }, "Stats"), /* @__PURE__ */ React104.createElement("div", { className: "justi flex flex-row gap-1" }, /* @__PURE__ */ React104.createElement(NumberCard, { title: "Clicks", number: 22 }), /* @__PURE__ */ React104.createElement(NumberCard, { title: "Sign-ups", number: 32 }), /* @__PURE__ */ React104.createElement(NumberCard, { title: "Commission", number: "213.22 SAR" })), /* @__PURE__ */ React104.createElement(Button, { className: "mt-6 w-full" }, "Withdraw Money"), withdrawError && /* @__PURE__ */ React104.createElement("div", null, /* @__PURE__ */ React104.createElement(
10934
+ return /* @__PURE__ */ React106.createElement(Card, null, /* @__PURE__ */ React106.createElement(CardContent, { headless: true }, /* @__PURE__ */ React106.createElement("div", { className: "mb-1" }, "Stats"), /* @__PURE__ */ React106.createElement("div", { className: "justi flex flex-row gap-1" }, /* @__PURE__ */ React106.createElement(NumberCard, { title: "Clicks", number: 22 }), /* @__PURE__ */ React106.createElement(NumberCard, { title: "Sign-ups", number: 32 }), /* @__PURE__ */ React106.createElement(NumberCard, { title: "Commission", number: "213.22 SAR" })), /* @__PURE__ */ React106.createElement(Button, { className: "mt-6 w-full" }, "Withdraw Money"), withdrawError && /* @__PURE__ */ React106.createElement("div", null, /* @__PURE__ */ React106.createElement(
10792
10935
  HawaAlert,
10793
10936
  {
10794
10937
  text: "Sorry can't withdraw the money at the moment. Please try again in 2022/11/20",
10795
10938
  severity: "warning"
10796
10939
  }
10797
- )), /* @__PURE__ */ React104.createElement("div", { className: "mt-3" }, /* @__PURE__ */ React104.createElement("div", { className: "mb-1" }, "Sign ups"), /* @__PURE__ */ React104.createElement("div", { className: "rounded" }, /* @__PURE__ */ React104.createElement(
10940
+ )), /* @__PURE__ */ React106.createElement("div", { className: "mt-3" }, /* @__PURE__ */ React106.createElement("div", { className: "mb-1" }, "Sign ups"), /* @__PURE__ */ React106.createElement("div", { className: "rounded" }, /* @__PURE__ */ React106.createElement(
10798
10941
  ReferralSignUpCard,
10799
10942
  {
10800
10943
  date: "2020/10/11 @ 9:45 pm",
10801
10944
  email: "zakher@sikka.io",
10802
10945
  amount: "3.4 SAR / Month"
10803
10946
  }
10804
- ), /* @__PURE__ */ React104.createElement(
10947
+ ), /* @__PURE__ */ React106.createElement(
10805
10948
  ReferralSignUpCard,
10806
10949
  {
10807
10950
  date: "2022/10/11 @ 9:45 pm",
10808
10951
  email: "zakher@sikka.io",
10809
10952
  amount: "3.4 SAR / Month"
10810
10953
  }
10811
- ), /* @__PURE__ */ React104.createElement(
10954
+ ), /* @__PURE__ */ React106.createElement(
10812
10955
  ReferralSignUpCard,
10813
10956
  {
10814
10957
  date: "2022/10/11 @ 9:45 pm",
10815
10958
  email: "zakher@sikka.io",
10816
10959
  amount: "3.4 SAR / Month"
10817
10960
  }
10818
- ), /* @__PURE__ */ React104.createElement(
10961
+ ), /* @__PURE__ */ React106.createElement(
10819
10962
  ReferralSignUpCard,
10820
10963
  {
10821
10964
  date: "2022/10/11 @ 9:45 pm",
10822
10965
  email: "zakher@sikka.io",
10823
10966
  amount: "3.4 SAR / Month"
10824
10967
  }
10825
- ), /* @__PURE__ */ React104.createElement(
10968
+ ), /* @__PURE__ */ React106.createElement(
10826
10969
  ReferralSignUpCard,
10827
10970
  {
10828
10971
  date: "2022/10/11 @ 9:45 pm",
@@ -10831,26 +10974,26 @@ var ReferralStats = ({
10831
10974
  }
10832
10975
  )))));
10833
10976
  };
10834
- var NumberCard = (props) => /* @__PURE__ */ React104.createElement("div", { className: "w-full rounded border bg-background p-2" }, /* @__PURE__ */ React104.createElement("div", { className: "text-sm" }, props.title), /* @__PURE__ */ React104.createElement("div", { className: "font-bold" }, props.number));
10835
- var ReferralSignUpCard = (props) => /* @__PURE__ */ React104.createElement("div", { className: "mb-3 rounded border-b bg-background p-2" }, /* @__PURE__ */ React104.createElement("div", { className: "text-xs" }, props.date), /* @__PURE__ */ React104.createElement("div", { className: "flex flex-row justify-between" }, /* @__PURE__ */ React104.createElement("div", null, props.email), /* @__PURE__ */ React104.createElement("div", null, props.amount)));
10977
+ var NumberCard = (props) => /* @__PURE__ */ React106.createElement("div", { className: "w-full rounded border bg-background p-2" }, /* @__PURE__ */ React106.createElement("div", { className: "text-sm" }, props.title), /* @__PURE__ */ React106.createElement("div", { className: "font-bold" }, props.number));
10978
+ var ReferralSignUpCard = (props) => /* @__PURE__ */ React106.createElement("div", { className: "mb-3 rounded border-b bg-background p-2" }, /* @__PURE__ */ React106.createElement("div", { className: "text-xs" }, props.date), /* @__PURE__ */ React106.createElement("div", { className: "flex flex-row justify-between" }, /* @__PURE__ */ React106.createElement("div", null, props.email), /* @__PURE__ */ React106.createElement("div", null, props.amount)));
10836
10979
 
10837
10980
  // src/blocks/Misc/NotFound.tsx
10838
- import React105 from "react";
10981
+ import React107 from "react";
10839
10982
  var NotFound = ({
10840
10983
  variant = "contained",
10841
10984
  texts
10842
10985
  }) => {
10843
- return /* @__PURE__ */ React105.createElement(Card, null, /* @__PURE__ */ React105.createElement(CardContent, { headless: true }, /* @__PURE__ */ React105.createElement("div", { className: "flex flex-col items-center dark:text-white" }, /* @__PURE__ */ React105.createElement("div", { className: "text-center text-6xl font-bold " }, "404"), /* @__PURE__ */ React105.createElement("div", { className: "m-2 text-center text-xl font-bold " }, texts?.pageNotFound ?? "Page Not Found"), /* @__PURE__ */ React105.createElement("div", { className: "mb-4 text-center" }, texts?.ifLost ?? /* @__PURE__ */ React105.createElement(React105.Fragment, null, "If you're lost please contact us", " ", /* @__PURE__ */ React105.createElement("span", { className: "clickable-link" }, "help@sikka.io"))), /* @__PURE__ */ React105.createElement(Button, { className: "w-full" }, texts?.home ?? "Home"))));
10986
+ return /* @__PURE__ */ React107.createElement(Card, null, /* @__PURE__ */ React107.createElement(CardContent, { headless: true }, /* @__PURE__ */ React107.createElement("div", { className: "flex flex-col items-center dark:text-white" }, /* @__PURE__ */ React107.createElement("div", { className: "text-center text-6xl font-bold " }, "404"), /* @__PURE__ */ React107.createElement("div", { className: "m-2 text-center text-xl font-bold " }, texts?.pageNotFound ?? "Page Not Found"), /* @__PURE__ */ React107.createElement("div", { className: "mb-4 text-center" }, texts?.ifLost ?? /* @__PURE__ */ React107.createElement(React107.Fragment, null, "If you're lost please contact us", " ", /* @__PURE__ */ React107.createElement("span", { className: "clickable-link" }, "help@sikka.io"))), /* @__PURE__ */ React107.createElement(Button, { className: "w-full" }, texts?.home ?? "Home"))));
10844
10987
  };
10845
10988
 
10846
10989
  // src/blocks/Misc/EmptyState.tsx
10847
- import React106 from "react";
10990
+ import React108 from "react";
10848
10991
  var EmptyState = ({
10849
10992
  variant = "contained",
10850
10993
  texts,
10851
10994
  onActionClick
10852
10995
  }) => {
10853
- return /* @__PURE__ */ React106.createElement(Card, null, /* @__PURE__ */ React106.createElement(CardContent, { headless: true }, /* @__PURE__ */ React106.createElement("div", { className: "flex flex-col items-center justify-center text-center " }, /* @__PURE__ */ React106.createElement("div", { className: "flex h-10 w-10 flex-col items-center justify-center rounded-3xl bg-primary text-6xl font-bold text-primary-foreground" }, /* @__PURE__ */ React106.createElement(
10996
+ return /* @__PURE__ */ React108.createElement(Card, null, /* @__PURE__ */ React108.createElement(CardContent, { headless: true }, /* @__PURE__ */ React108.createElement("div", { className: "flex flex-col items-center justify-center text-center " }, /* @__PURE__ */ React108.createElement("div", { className: "flex h-10 w-10 flex-col items-center justify-center rounded-3xl bg-primary text-6xl font-bold text-primary-foreground" }, /* @__PURE__ */ React108.createElement(
10854
10997
  "svg",
10855
10998
  {
10856
10999
  stroke: "currentColor",
@@ -10860,36 +11003,36 @@ var EmptyState = ({
10860
11003
  height: "0.35em",
10861
11004
  width: "0.35em"
10862
11005
  },
10863
- /* @__PURE__ */ React106.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
10864
- )), /* @__PURE__ */ React106.createElement("div", { className: "m-2 text-xl font-bold" }, texts?.youreCaughtUp ?? "You're all caught up"))), /* @__PURE__ */ React106.createElement(CardFooter, null, /* @__PURE__ */ React106.createElement(Button, { className: "w-full", onClick: () => onActionClick() }, texts?.actionText ?? "Go Home")));
11006
+ /* @__PURE__ */ React108.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
11007
+ )), /* @__PURE__ */ React108.createElement("div", { className: "m-2 text-xl font-bold" }, texts?.youreCaughtUp ?? "You're all caught up"))), /* @__PURE__ */ React108.createElement(CardFooter, null, /* @__PURE__ */ React108.createElement(Button, { className: "w-full", onClick: () => onActionClick() }, texts?.actionText ?? "Go Home")));
10865
11008
  };
10866
11009
 
10867
11010
  // src/blocks/Misc/Testimonial.tsx
10868
- import React107 from "react";
11011
+ import React109 from "react";
10869
11012
  var Testimonial = (props) => {
10870
- return /* @__PURE__ */ React107.createElement(Card, null, /* @__PURE__ */ React107.createElement(CardContent, { headless: true }, /* @__PURE__ */ React107.createElement("div", null, /* @__PURE__ */ React107.createElement("p", { className: "mb-4 max-w-sm" }, "The team at Sikka Software is simply amazing. The tech is easy to follow, easy to work with, and infinitely flexible. The solution opportunities created by Tines are endless.")), /* @__PURE__ */ React107.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ React107.createElement("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none" }, /* @__PURE__ */ React107.createElement("rect", { width: "48", height: "48", rx: "24", fill: "#45BE8B" }), /* @__PURE__ */ React107.createElement(
11013
+ return /* @__PURE__ */ React109.createElement(Card, null, /* @__PURE__ */ React109.createElement(CardContent, { headless: true }, /* @__PURE__ */ React109.createElement("div", null, /* @__PURE__ */ React109.createElement("p", { className: "mb-4 max-w-sm" }, "The team at Sikka Software is simply amazing. The tech is easy to follow, easy to work with, and infinitely flexible. The solution opportunities created by Tines are endless.")), /* @__PURE__ */ React109.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ React109.createElement("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none" }, /* @__PURE__ */ React109.createElement("rect", { width: "48", height: "48", rx: "24", fill: "#45BE8B" }), /* @__PURE__ */ React109.createElement(
10871
11014
  "path",
10872
11015
  {
10873
11016
  d: "M14.1412 22.4427L17.5803 16.5199C17.7671 16.1981 18.1112 16 18.4834 16H20.8581C21.653 16 22.1565 16.8528 21.7725 17.5488L19.3042 22.0225C19.2202 22.1747 19.1762 22.3458 19.1762 22.5196C19.1762 23.0879 19.6369 23.5486 20.2052 23.5486H21.5827C22.1594 23.5486 22.627 24.0162 22.627 24.5929V31.347C22.627 31.9237 22.1594 32.3913 21.5827 32.3913H15.0443C14.4676 32.3913 14 31.9237 14 31.347V22.9671C14 22.7829 14.0487 22.602 14.1412 22.4427Z",
10874
11017
  fill: "#FFFFFF"
10875
11018
  }
10876
- ), /* @__PURE__ */ React107.createElement(
11019
+ ), /* @__PURE__ */ React109.createElement(
10877
11020
  "path",
10878
11021
  {
10879
11022
  d: "M25.356 22.4427L28.7951 16.5199C28.982 16.1981 29.326 16 29.6982 16H32.0729C32.8679 16 33.3713 16.8528 32.9873 17.5488L30.5191 22.0225C30.4351 22.1747 30.391 22.3458 30.391 22.5196C30.391 23.0879 30.8518 23.5486 31.4201 23.5486H32.7975C33.3743 23.5486 33.8418 24.0162 33.8418 24.5929V31.347C33.8418 31.9237 33.3743 32.3913 32.7975 32.3913H26.2592C25.6824 32.3913 25.2148 31.9237 25.2148 31.347V22.9671C25.2148 22.7829 25.2636 22.602 25.356 22.4427Z",
10880
11023
  fill: "#FFFFFF"
10881
11024
  }
10882
- )), /* @__PURE__ */ React107.createElement("span", { className: "border border-l " }), " ", /* @__PURE__ */ React107.createElement("div", null, /* @__PURE__ */ React107.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ React107.createElement("div", null, " Chief Information Security Officer")))));
11025
+ )), /* @__PURE__ */ React109.createElement("span", { className: "border border-l " }), " ", /* @__PURE__ */ React109.createElement("div", null, /* @__PURE__ */ React109.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ React109.createElement("div", null, " Chief Information Security Officer")))));
10883
11026
  };
10884
11027
 
10885
11028
  // src/blocks/Misc/LeadGenerator.tsx
10886
- import React108 from "react";
11029
+ import React110 from "react";
10887
11030
  var LeadGenerator = ({
10888
11031
  variant = "contained",
10889
11032
  texts,
10890
11033
  handleNewsletterSub
10891
11034
  }) => {
10892
- return /* @__PURE__ */ React108.createElement(Card, null, /* @__PURE__ */ React108.createElement(CardHeader, null, /* @__PURE__ */ React108.createElement(CardTitle, null, texts?.title), /* @__PURE__ */ React108.createElement(CardDescription, null, texts?.subtitle)), /* @__PURE__ */ React108.createElement(CardContent, null, /* @__PURE__ */ React108.createElement(
11035
+ return /* @__PURE__ */ React110.createElement(Card, null, /* @__PURE__ */ React110.createElement(CardHeader, null, /* @__PURE__ */ React110.createElement(CardTitle, null, texts?.title), /* @__PURE__ */ React110.createElement(CardDescription, null, texts?.subtitle)), /* @__PURE__ */ React110.createElement(CardContent, null, /* @__PURE__ */ React110.createElement(
10893
11036
  "form",
10894
11037
  {
10895
11038
  className: "flex flex-row gap-2",
@@ -10898,33 +11041,33 @@ var LeadGenerator = ({
10898
11041
  handleNewsletterSub(e.target[0].value);
10899
11042
  }
10900
11043
  },
10901
- /* @__PURE__ */ React108.createElement(Input, { type: "email", name: "email", placeholder: "example@sikka.io" }),
10902
- /* @__PURE__ */ React108.createElement(Button, null, texts?.submit ?? "Submit")
11044
+ /* @__PURE__ */ React110.createElement(Input, { type: "email", name: "email", placeholder: "example@sikka.io" }),
11045
+ /* @__PURE__ */ React110.createElement(Button, null, texts?.submit ?? "Submit")
10903
11046
  )));
10904
11047
  };
10905
11048
 
10906
11049
  // src/blocks/Misc/Announcement.tsx
10907
- import React109 from "react";
11050
+ import React111 from "react";
10908
11051
  var Announcement = ({
10909
11052
  variant = "contained",
10910
11053
  onActionClick,
10911
11054
  ...props
10912
11055
  }) => {
10913
- return /* @__PURE__ */ React109.createElement(Card, null, /* @__PURE__ */ React109.createElement(
11056
+ return /* @__PURE__ */ React111.createElement(Card, null, /* @__PURE__ */ React111.createElement(
10914
11057
  CardContent,
10915
11058
  {
10916
11059
  headless: true,
10917
11060
  className: "flex flex-row items-center justify-between"
10918
11061
  },
10919
- /* @__PURE__ */ React109.createElement("div", { className: "flex flex-col items-start justify-center " }, /* @__PURE__ */ React109.createElement("span", { className: "text-lg font-bold" }, props.title), /* @__PURE__ */ React109.createElement("span", { className: "text-sm" }, props.subtitle)),
10920
- /* @__PURE__ */ React109.createElement(Button, { onClick: () => onActionClick() }, props.actionText)
11062
+ /* @__PURE__ */ React111.createElement("div", { className: "flex flex-col items-start justify-center " }, /* @__PURE__ */ React111.createElement("span", { className: "text-lg font-bold" }, props.title), /* @__PURE__ */ React111.createElement("span", { className: "text-sm" }, props.subtitle)),
11063
+ /* @__PURE__ */ React111.createElement(Button, { onClick: () => onActionClick() }, props.actionText)
10921
11064
  ));
10922
11065
  };
10923
11066
 
10924
11067
  // src/blocks/Misc/NoPermission.tsx
10925
- import React110 from "react";
11068
+ import React112 from "react";
10926
11069
  var NoPermission = ({ texts }) => {
10927
- return /* @__PURE__ */ React110.createElement(Card, null, /* @__PURE__ */ React110.createElement(CardContent, { headless: true }, /* @__PURE__ */ React110.createElement("div", { className: "flex flex-col items-center justify-center text-center" }, /* @__PURE__ */ React110.createElement("div", { className: "flex h-10 w-10 flex-col items-center justify-center rounded-3xl bg-primary text-6xl font-bold text-primary-foreground" }, /* @__PURE__ */ React110.createElement(
11070
+ return /* @__PURE__ */ React112.createElement(Card, null, /* @__PURE__ */ React112.createElement(CardContent, { headless: true }, /* @__PURE__ */ React112.createElement("div", { className: "flex flex-col items-center justify-center text-center" }, /* @__PURE__ */ React112.createElement("div", { className: "flex h-10 w-10 flex-col items-center justify-center rounded-3xl bg-primary text-6xl font-bold text-primary-foreground" }, /* @__PURE__ */ React112.createElement(
10928
11071
  "svg",
10929
11072
  {
10930
11073
  stroke: "currentColor",
@@ -10934,12 +11077,12 @@ var NoPermission = ({ texts }) => {
10934
11077
  height: "0.35em",
10935
11078
  width: "0.35em"
10936
11079
  },
10937
- /* @__PURE__ */ React110.createElement("path", { d: "M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z" })
10938
- ), " "), /* @__PURE__ */ React110.createElement("div", { className: "m-2 text-xl font-bold" }, texts?.title ?? "You don't have permission"), /* @__PURE__ */ React110.createElement("div", null, texts?.subtitle ?? "If you think this is a problem please contact your administrator or our customer support"))));
11080
+ /* @__PURE__ */ React112.createElement("path", { d: "M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z" })
11081
+ ), " "), /* @__PURE__ */ React112.createElement("div", { className: "m-2 text-xl font-bold" }, texts?.title ?? "You don't have permission"), /* @__PURE__ */ React112.createElement("div", null, texts?.subtitle ?? "If you think this is a problem please contact your administrator or our customer support"))));
10939
11082
  };
10940
11083
 
10941
11084
  // src/hooks/useHover.ts
10942
- import { useEffect as useEffect27, useRef as useRef19, useState as useState51 } from "react";
11085
+ import { useEffect as useEffect29, useRef as useRef20, useState as useState53 } from "react";
10943
11086
  export {
10944
11087
  ActionCard,
10945
11088
  Announcement,
@@ -11046,6 +11189,7 @@ export {
11046
11189
  SignInPhone,
11047
11190
  SignUpForm,
11048
11191
  Skeleton,
11192
+ StickyFeatures,
11049
11193
  SubsectionList,
11050
11194
  Switch,
11051
11195
  Tabs,
@@ -11067,6 +11211,7 @@ export {
11067
11211
  UsageCard,
11068
11212
  UserFeedback,
11069
11213
  UserProfileForm,
11214
+ UserReferralSource,
11070
11215
  UserSettingsForm,
11071
11216
  buttonVariants,
11072
11217
  reducer,