@sikka/hawa 0.1.91 → 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(
@@ -724,7 +723,8 @@ var buttonVariants = cva2(
724
723
  outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
725
724
  secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
726
725
  ghost: "hover:bg-accent hover:text-accent-foreground",
727
- link: "text-primary underline-offset-4 hover:underline"
726
+ link: "text-primary underline-offset-4 hover:underline",
727
+ neoBrutalism: "cursor-pointer transition-all uppercase font-mono dark:bg-black font-bold py-2 px-4 rounded border-2 border-primary shadow-color-primary transition-[transform_50ms, box-shadow_50ms] active:translate-x-0.5 active:translate-y-0.5 active:shadow-color-primary-active"
728
728
  },
729
729
  size: {
730
730
  default: "h-10 px-4 py-2",
@@ -754,6 +754,7 @@ var Button = React16.forwardRef(
754
754
  ...props
755
755
  }, ref) => {
756
756
  const Comp = "button";
757
+ const loadingColor = variant === "outline" || variant === "ghost" || variant === "neoBrutalism" ? "bg-primary" : "bg-primary-foreground";
757
758
  return /* @__PURE__ */ React16.createElement(
758
759
  Comp,
759
760
  {
@@ -765,7 +766,7 @@ var Button = React16.forwardRef(
765
766
  HawaLoading,
766
767
  {
767
768
  design: "dots-pulse",
768
- color: "bg-primary-foreground",
769
+ color: loadingColor,
769
770
  size: "button"
770
771
  }
771
772
  ) : children
@@ -848,7 +849,7 @@ var HawaAlert = ({
848
849
  return /* @__PURE__ */ React17.createElement("div", { ref: alertRef }, /* @__PURE__ */ React17.createElement(
849
850
  "div",
850
851
  {
851
- className: clsx7(
852
+ className: clsx6(
852
853
  "relative mb-4 flex flex-col rounded p-4 text-sm transition-all",
853
854
  styleVariant[variant][severity],
854
855
  closed ? "opacity-0" : "opacity-100",
@@ -860,7 +861,7 @@ var HawaAlert = ({
860
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(
861
862
  "span",
862
863
  {
863
- className: clsx7(
864
+ className: clsx6(
864
865
  "font-medium",
865
866
  direction === "rtl" ? "ml-8" : "mr-8"
866
867
  )
@@ -879,7 +880,7 @@ var HawaAlert = ({
879
880
  "button",
880
881
  {
881
882
  type: "button",
882
- className: clsx7(
883
+ className: clsx6(
883
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",
884
885
  closeButtonStyle[severity],
885
886
  direction === "rtl" ? "left-2" : "right-2"
@@ -918,7 +919,7 @@ var HawaAlert = ({
918
919
 
919
920
  // src/elements/HawaTable.tsx
920
921
  import React20, { useEffect as useEffect6, useState as useState9 } from "react";
921
- import clsx8 from "clsx";
922
+ import clsx7 from "clsx";
922
923
 
923
924
  // src/hooks/useTable.ts
924
925
  import { useState as useState8, useEffect as useEffect5 } from "react";
@@ -1344,7 +1345,7 @@ var HawaTable = ({
1344
1345
  )))), /* @__PURE__ */ React20.createElement(
1345
1346
  "table",
1346
1347
  {
1347
- className: clsx8(
1348
+ className: clsx7(
1348
1349
  borders === "outer" || borders === "all" ? `outline outline-[${bordersWidth}px] -outline-offset-1 outline-gray-300 dark:outline-gray-700` : "",
1349
1350
  "w-full rounded text-left text-sm text-gray-500 dark:text-gray-400",
1350
1351
  `bg-${headerColor}`
@@ -1353,7 +1354,7 @@ var HawaTable = ({
1353
1354
  /* @__PURE__ */ React20.createElement(
1354
1355
  "thead",
1355
1356
  {
1356
- className: clsx8(
1357
+ className: clsx7(
1357
1358
  "text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400",
1358
1359
  borders === "rows" || borders === "all" || borders === "inner" ? "border-b " : ""
1359
1360
  )
@@ -1369,7 +1370,7 @@ var HawaTable = ({
1369
1370
  key: i,
1370
1371
  scope: "col",
1371
1372
  colSpan: 2,
1372
- className: clsx8(
1373
+ className: clsx7(
1373
1374
  col.sortable ? "cursor-pointer hover:bg-gray-300" : "",
1374
1375
  sizeStyles2[size],
1375
1376
  i !== 0 && (borders === "cols" || borders === "all" || borders === "inner") ? `border-r border-r-[${bordersWidth}px] border-l border-l-[${bordersWidth}px]` : ""
@@ -1383,7 +1384,7 @@ var HawaTable = ({
1383
1384
  "th",
1384
1385
  {
1385
1386
  scope: "col",
1386
- className: clsx8(sizeStyles2[size], "w-[calc(1%)] text-center")
1387
+ className: clsx7(sizeStyles2[size], "w-[calc(1%)] text-center")
1387
1388
  },
1388
1389
  props.texts?.actions ?? "Actions"
1389
1390
  ) : null)
@@ -1399,7 +1400,7 @@ var HawaTable = ({
1399
1400
  "tr",
1400
1401
  {
1401
1402
  key: rowIndex,
1402
- className: clsx8(
1403
+ className: clsx7(
1403
1404
  " dark:border-gray-700 dark:bg-gray-800",
1404
1405
  props.clickable ? "hover:bg-gray-100" : "",
1405
1406
  !lastRow && (borders === "all" || borders === "rows" || borders === "inner") ? `border-b border-b-[${bordersWidth}px]` : ""
@@ -1420,7 +1421,7 @@ var HawaTable = ({
1420
1421
  {
1421
1422
  colSpan: 2,
1422
1423
  key: i,
1423
- className: clsx8(
1424
+ className: clsx7(
1424
1425
  // borders === "outer" ? "border" : "",
1425
1426
  sizeStyles2[size],
1426
1427
  highlightFirst && firstCell ? "font-bold" : "font-normal",
@@ -1473,7 +1474,7 @@ var HawaTable = ({
1473
1474
  }) : /* @__PURE__ */ React20.createElement("tr", { className: "bg-transparent" }, /* @__PURE__ */ React20.createElement("td", { colSpan: 20 }, /* @__PURE__ */ React20.createElement(
1474
1475
  "div",
1475
1476
  {
1476
- className: clsx8(
1477
+ className: clsx7(
1477
1478
  "w-full rounded-b border p-5 text-center",
1478
1479
  // bodyColor ? `bg-${bodyColor}` : "bg-background"
1479
1480
  "bg-background"
@@ -1498,7 +1499,7 @@ var HawaTable = ({
1498
1499
  "button",
1499
1500
  {
1500
1501
  key: index,
1501
- className: clsx8(
1502
+ className: clsx7(
1502
1503
  "w-10 p-1 text-xs hover:bg-gray-200",
1503
1504
  page === el ? "bg-primary text-primary-foreground hover:bg-primary" : "bg-gray-100"
1504
1505
  ),
@@ -1528,7 +1529,7 @@ var HawaTable = ({
1528
1529
  "button",
1529
1530
  {
1530
1531
  key: index,
1531
- className: clsx8(
1532
+ className: clsx7(
1532
1533
  "w-10 p-1 text-xs hover:bg-gray-200",
1533
1534
  page === el ? "bg-primary text-primary-foreground hover:bg-primary" : "bg-gray-100"
1534
1535
  ),
@@ -1542,7 +1543,7 @@ var HawaTable = ({
1542
1543
  "button",
1543
1544
  {
1544
1545
  key: index,
1545
- className: clsx8(
1546
+ className: clsx7(
1546
1547
  "w-10 p-1 text-xs",
1547
1548
  page === el ? "bg-primary text-primary-foreground " : "border bg-background hover:bg-primary/10 dark:hover:bg-primary/10",
1548
1549
  // Check if the direction is 'rtl'
@@ -1596,7 +1597,7 @@ var HawaSearchBar = (props) => {
1596
1597
 
1597
1598
  // src/elements/HawaAccordion.tsx
1598
1599
  import React22, { useState as useState10 } from "react";
1599
- import clsx9 from "clsx";
1600
+ import clsx8 from "clsx";
1600
1601
  var HawaAccordion = (props) => {
1601
1602
  const [collapse, setCollapse] = useState10(false);
1602
1603
  return /* @__PURE__ */ React22.createElement("div", { className: "h-fit w-full" }, /* @__PURE__ */ React22.createElement(
@@ -1604,7 +1605,7 @@ var HawaAccordion = (props) => {
1604
1605
  {
1605
1606
  id: "accordion-collapse-heading-" + props.index,
1606
1607
  type: "button",
1607
- className: clsx9(
1608
+ className: clsx8(
1608
1609
  collapse ? "rounded" : "rounded-t",
1609
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"
1610
1611
  ),
@@ -1636,7 +1637,7 @@ var HawaAccordion = (props) => {
1636
1637
  {
1637
1638
  id: "accordion-collapse-body-" + props.index,
1638
1639
  "aria-labelledby": "accordion-collapse-heading-" + props.index,
1639
- className: clsx9(
1640
+ className: clsx8(
1640
1641
  collapse ? "invisible hidden h-0 p-0" : "visible h-full",
1641
1642
  "w-full rounded-b border border-t-0 border-gray-200 p-5 font-light dark:border-gray-700 dark:bg-gray-900"
1642
1643
  )
@@ -3464,7 +3465,7 @@ var HawaPhoneInput = (props) => {
3464
3465
 
3465
3466
  // src/elements/HawaTooltip.tsx
3466
3467
  import React24, { useEffect as useEffect7, useRef as useRef4, useState as useState12 } from "react";
3467
- import clsx10 from "clsx";
3468
+ import clsx9 from "clsx";
3468
3469
  var HawaTooltip = ({
3469
3470
  children,
3470
3471
  content,
@@ -3540,7 +3541,7 @@ var HawaTooltip = ({
3540
3541
  opacity: hovered ? "1" : "0",
3541
3542
  maxWidth: "200px"
3542
3543
  },
3543
- className: clsx10(defaultTooltipStyles, sizeStyles2[size])
3544
+ className: clsx9(defaultTooltipStyles, sizeStyles2[size])
3544
3545
  },
3545
3546
  content
3546
3547
  )
@@ -3654,7 +3655,7 @@ var HawaTabs = ({
3654
3655
 
3655
3656
  // src/elements/HawaModal.tsx
3656
3657
  import React26, { useEffect as useEffect8 } from "react";
3657
- import clsx11 from "clsx";
3658
+ import clsx10 from "clsx";
3658
3659
  var HawaModal = ({
3659
3660
  open,
3660
3661
  title,
@@ -3675,7 +3676,7 @@ var HawaModal = ({
3675
3676
  return /* @__PURE__ */ React26.createElement(
3676
3677
  "div",
3677
3678
  {
3678
- className: clsx11(
3679
+ className: clsx10(
3679
3680
  defaultStyle,
3680
3681
  open ? "z-10 opacity-100 " : "invisible -z-10 opacity-0"
3681
3682
  )
@@ -3683,7 +3684,7 @@ var HawaModal = ({
3683
3684
  /* @__PURE__ */ React26.createElement(
3684
3685
  "div",
3685
3686
  {
3686
- className: clsx11(
3687
+ className: clsx10(
3687
3688
  "absolute h-screen w-full bg-gray-500 opacity-50",
3688
3689
  open ? "opacity-50" : "opacity-0"
3689
3690
  )
@@ -3723,7 +3724,7 @@ var HawaModal = ({
3723
3724
 
3724
3725
  // src/elements/HawaMenu.tsx
3725
3726
  import React27, { useEffect as useEffect9, useRef as useRef5, useState as useState14 } from "react";
3726
- import clsx12 from "clsx";
3727
+ import clsx11 from "clsx";
3727
3728
  var HawaMenu = ({
3728
3729
  menuItems,
3729
3730
  withHeader,
@@ -3816,7 +3817,7 @@ var HawaMenu = ({
3816
3817
  transform: `translate(${menuCoordinates})`,
3817
3818
  maxWidth: "200px"
3818
3819
  },
3819
- className: clsx12(
3820
+ className: clsx11(
3820
3821
  defaultStyles,
3821
3822
  menuOpened ? "opacity-100" : "invisible opacity-0"
3822
3823
  )
@@ -3848,7 +3849,7 @@ var HawaMenu = ({
3848
3849
  item?.action(actionedItem);
3849
3850
  }
3850
3851
  },
3851
- className: clsx12(
3852
+ className: clsx11(
3852
3853
  "transition-all",
3853
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 ",
3854
3855
  sizeStyles2[size]
@@ -4061,7 +4062,7 @@ var HawaCopyrights = (props) => {
4061
4062
 
4062
4063
  // src/elements/HawaStepper.tsx
4063
4064
  import React30 from "react";
4064
- import clsx13 from "clsx";
4065
+ import clsx12 from "clsx";
4065
4066
  var HawaStepper = ({
4066
4067
  orientation = "horizontal",
4067
4068
  ...props
@@ -4077,7 +4078,7 @@ var HawaStepper = ({
4077
4078
  return /* @__PURE__ */ React30.createElement(
4078
4079
  "div",
4079
4080
  {
4080
- className: clsx13(
4081
+ className: clsx12(
4081
4082
  orientationStyles[orientation],
4082
4083
  " flex-wrap justify-start gap-4"
4083
4084
  )
@@ -4097,7 +4098,7 @@ var HawaStepper = ({
4097
4098
  /* @__PURE__ */ React30.createElement("div", { className: "flex flex-row gap-2 " }, /* @__PURE__ */ React30.createElement(
4098
4099
  "div",
4099
4100
  {
4100
- className: clsx13(
4101
+ className: clsx12(
4101
4102
  "flex h-6 w-6 min-w-[24px] items-center justify-center rounded ring-2 ring-primary/20 ring-offset-2",
4102
4103
  i + 1 <= props.currentStep ? "bg-primary text-primary-foreground " : "bg-primary/20"
4103
4104
  )
@@ -4384,7 +4385,7 @@ var HawaDatepicker = () => {
4384
4385
  // src/elements/DragDropImages.tsx
4385
4386
  import React37, { useEffect as useEffect11, useState as useState18 } from "react";
4386
4387
  import { useDropzone } from "react-dropzone";
4387
- import clsx14 from "clsx";
4388
+ import clsx13 from "clsx";
4388
4389
  var DragDropImages = ({
4389
4390
  texts,
4390
4391
  files,
@@ -4549,7 +4550,7 @@ var DragDropImages = ({
4549
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(
4550
4551
  "div",
4551
4552
  {
4552
- className: clsx14(
4553
+ className: clsx13(
4553
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 ",
4554
4555
  isDragActive ? "bg-gray-200 dark:bg-gray-700" : "bg-background"
4555
4556
  )
@@ -4624,7 +4625,7 @@ import React39 from "react";
4624
4625
 
4625
4626
  // src/elements/SubsectionList.tsx
4626
4627
  import React40, { useState as useState19 } from "react";
4627
- import clsx15 from "clsx";
4628
+ import clsx14 from "clsx";
4628
4629
  var SubsectionList = ({ subsections }) => {
4629
4630
  const [selectedSection, setSelectedSection] = useState19(null);
4630
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(
@@ -4652,7 +4653,7 @@ var SubsectionItem = ({
4652
4653
  "div",
4653
4654
  {
4654
4655
  onClick: onItemClick,
4655
- className: clsx15(
4656
+ className: clsx14(
4656
4657
  "flex w-full cursor-pointer flex-row items-center justify-between gap-2 rounded p-2 transition-all ",
4657
4658
  selected === value ? "bg-primary text-white hover:bg-primary" : "hover:bg-layoutPrimary-300"
4658
4659
  )
@@ -4691,7 +4692,7 @@ var UsageCard = (props) => {
4691
4692
 
4692
4693
  // src/elements/InvoiceAccordion.tsx
4693
4694
  import React42, { useState as useState20 } from "react";
4694
- import clsx16 from "clsx";
4695
+ import clsx15 from "clsx";
4695
4696
  var InvoiceAccordion = ({
4696
4697
  direction = "ltr",
4697
4698
  texts = {
@@ -4706,7 +4707,7 @@ var InvoiceAccordion = ({
4706
4707
  const InvoiceItemProp = (props2) => /* @__PURE__ */ React42.createElement(
4707
4708
  "div",
4708
4709
  {
4709
- className: clsx16(
4710
+ className: clsx15(
4710
4711
  props2.start ? "items-start" : "items-end",
4711
4712
  "flex w-full flex-col"
4712
4713
  )
@@ -4718,7 +4719,7 @@ var InvoiceAccordion = ({
4718
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(
4719
4720
  "div",
4720
4721
  {
4721
- className: clsx16(
4722
+ className: clsx15(
4722
4723
  "transition-all hover:cursor-pointer ",
4723
4724
  direction === "rtl" ? "rotate-180" : "",
4724
4725
  expanded ? "rotate-90" : ""
@@ -4775,7 +4776,7 @@ var InvoiceAccordion = ({
4775
4776
  ))), expanded && /* @__PURE__ */ React42.createElement(
4776
4777
  "div",
4777
4778
  {
4778
- className: clsx16(
4779
+ className: clsx15(
4779
4780
  expanded ? "h-full" : "h-0 border-none p-0 px-4",
4780
4781
  "flex h-auto flex-col gap-4 overflow-clip border border-t-0 bg-gray-50 p-4 transition-all"
4781
4782
  )
@@ -4806,7 +4807,7 @@ var InvoiceAccordion = ({
4806
4807
 
4807
4808
  // src/elements/UserFeedback.tsx
4808
4809
  import React43, { useEffect as useEffect12, useRef as useRef7, useState as useState21 } from "react";
4809
- import clsx17 from "clsx";
4810
+ import clsx16 from "clsx";
4810
4811
  var UserFeedback = ({
4811
4812
  position = "bottom-right",
4812
4813
  ...props
@@ -4840,12 +4841,12 @@ var UserFeedback = ({
4840
4841
  "div",
4841
4842
  {
4842
4843
  ref: popUpRef,
4843
- className: clsx17("fixed bottom-4 ", boxPosition[position])
4844
+ className: clsx16("fixed bottom-4 ", boxPosition[position])
4844
4845
  },
4845
4846
  /* @__PURE__ */ React43.createElement(
4846
4847
  "div",
4847
4848
  {
4848
- className: clsx17(
4849
+ className: clsx16(
4849
4850
  "relative flex w-full max-w-sm flex-col gap-2 rounded border bg-background p-4 shadow-md transition-all",
4850
4851
  closed ? "opacity-0" : "opacity-100"
4851
4852
  )
@@ -4894,7 +4895,7 @@ var UserFeedback = ({
4894
4895
  clearTimeout(timeoutDestroy);
4895
4896
  }, 5300);
4896
4897
  },
4897
- className: clsx17(
4898
+ className: clsx16(
4898
4899
  "w-full cursor-pointer rounded border p-4 text-center transition-all ",
4899
4900
  clickedOption === op ? "bg-gray-500 text-white" : "border bg-background hover:bg-gray-300 dark:hover:bg-gray-700"
4900
4901
  )
@@ -4909,14 +4910,14 @@ var UserFeedback = ({
4909
4910
 
4910
4911
  // src/elements/ArrowCarousel.tsx
4911
4912
  import React44, { useEffect as useEffect13, useState as useState22 } from "react";
4912
- import clsx18 from "clsx";
4913
+ import clsx17 from "clsx";
4913
4914
  var Arrow3 = (props) => {
4914
4915
  return /* @__PURE__ */ React44.createElement(
4915
4916
  "svg",
4916
4917
  {
4917
4918
  onClick: props.onClick || (() => {
4918
4919
  }),
4919
- className: clsx18(
4920
+ className: clsx17(
4920
4921
  "h-6 w-6 shrink-0 transition-all disabled:bg-gray-200",
4921
4922
  props.direction === "right" ? "-rotate-90" : "rotate-90",
4922
4923
  props.disabled ? "text-gray-300" : "cursor-pointer hover:scale-150"
@@ -4982,7 +4983,7 @@ var ArrowCarousel = (props) => {
4982
4983
 
4983
4984
  // src/elements/FloatingComment.tsx
4984
4985
  import React45, { useRef as useRef8, useState as useState23, useEffect as useEffect14 } from "react";
4985
- import clsx19 from "clsx";
4986
+ import clsx18 from "clsx";
4986
4987
  var Property = (props) => {
4987
4988
  return /* @__PURE__ */ React45.createElement(
4988
4989
  "div",
@@ -5471,7 +5472,7 @@ var FloatingComment = (props) => {
5471
5472
  return "ltr";
5472
5473
  }
5473
5474
  };
5474
- 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]) => {
5475
5476
  return /* @__PURE__ */ React45.createElement(
5476
5477
  Property,
5477
5478
  {
@@ -5761,7 +5762,7 @@ var FloatingCommentExec = (props) => {
5761
5762
 
5762
5763
  // src/elements/BackToTop.tsx
5763
5764
  import React48, { useState as useState26, useEffect as useEffect16, useRef as useRef10 } from "react";
5764
- import { clsx as clsx20 } from "clsx";
5765
+ import { clsx as clsx19 } from "clsx";
5765
5766
  var BackToTop = ({ ...props }) => {
5766
5767
  const [visible, setVisible] = useState26(false);
5767
5768
  const [rect, _setRect] = useState26(null);
@@ -5835,7 +5836,7 @@ var BackToTop = ({ ...props }) => {
5835
5836
  /* @__PURE__ */ React48.createElement(
5836
5837
  "svg",
5837
5838
  {
5838
- className: clsx20(
5839
+ className: clsx19(
5839
5840
  "h-6 w-6 shrink-0 rotate-180 transition-all disabled:bg-gray-200"
5840
5841
  ),
5841
5842
  "aria-label": "Arrow Icon",
@@ -5861,7 +5862,7 @@ var Timeline = (props) => {
5861
5862
 
5862
5863
  // src/elements/HawaPinInput.tsx
5863
5864
  import React51, { useEffect as useEffect17, useState as useState27 } from "react";
5864
- import clsx21 from "clsx";
5865
+ import clsx20 from "clsx";
5865
5866
  var HawaPinInput = ({
5866
5867
  label,
5867
5868
  icon,
@@ -5913,7 +5914,7 @@ var HawaPinInput = ({
5913
5914
  value,
5914
5915
  id: `input-${index}`,
5915
5916
  pattern: "[0-9]*",
5916
- className: clsx21(
5917
+ className: clsx20(
5917
5918
  "h-10 rounded border bg-background text-center",
5918
5919
  width === "full" ? "w-full" : "w-10"
5919
5920
  ),
@@ -5927,7 +5928,7 @@ var HawaPinInput = ({
5927
5928
 
5928
5929
  // src/elements/HawaItemCard.tsx
5929
5930
  import React52, { useEffect as useEffect18, useState as useState28 } from "react";
5930
- import clsx22 from "clsx";
5931
+ import clsx21 from "clsx";
5931
5932
  var HawaItemCard = ({
5932
5933
  actions,
5933
5934
  counts,
@@ -5971,14 +5972,14 @@ var HawaItemCard = ({
5971
5972
  return /* @__PURE__ */ React52.createElement(
5972
5973
  "div",
5973
5974
  {
5974
- className: clsx22(defaultStyle, orientationStyles[orientation]),
5975
+ className: clsx21(defaultStyle, orientationStyles[orientation]),
5975
5976
  ...props
5976
5977
  },
5977
5978
  cardImage && /* @__PURE__ */ React52.createElement("div", { className: "group relative overflow-clip" }, /* @__PURE__ */ React52.createElement(
5978
5979
  "img",
5979
5980
  {
5980
5981
  src: "https://via.placeholder.com/50",
5981
- className: clsx22(
5982
+ className: clsx21(
5982
5983
  imageStyles[orientation],
5983
5984
  clickableImage ? "overflow-clip transition-all group-hover:blur-lg" : ""
5984
5985
  )
@@ -6000,7 +6001,7 @@ var HawaItemCard = ({
6000
6001
  trigger: /* @__PURE__ */ React52.createElement(
6001
6002
  "div",
6002
6003
  {
6003
- className: clsx22(headerActionsButtonStyle),
6004
+ className: clsx21(headerActionsButtonStyle),
6004
6005
  onClick: handleOpenActionHeader
6005
6006
  },
6006
6007
  /* @__PURE__ */ React52.createElement("span", { className: "sr-only" }, "Open dropdown"),
@@ -6019,7 +6020,7 @@ var HawaItemCard = ({
6019
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(
6020
6021
  "div",
6021
6022
  {
6022
- className: clsx22(
6023
+ className: clsx21(
6023
6024
  "mt-3 flex items-center rounded-b-lg dark:text-white ",
6024
6025
  actions && counts ? "justify-between" : "justify-end"
6025
6026
  )
@@ -6031,7 +6032,7 @@ var HawaItemCard = ({
6031
6032
  };
6032
6033
 
6033
6034
  // src/elements/HawaPricingCard.tsx
6034
- import clsx23 from "clsx";
6035
+ import clsx22 from "clsx";
6035
6036
  import React53 from "react";
6036
6037
  var HawaPricingCard = ({
6037
6038
  size = "medium",
@@ -6049,7 +6050,7 @@ var HawaPricingCard = ({
6049
6050
  "div",
6050
6051
  {
6051
6052
  dir: isArabic ? "rtl" : "ltr",
6052
- className: clsx23(
6053
+ className: clsx22(
6053
6054
  currentPlan ? "border-primary" : "bg-background",
6054
6055
  cardSizes[size],
6055
6056
  "flex flex-col gap-4 rounded border-2 p-4"
@@ -6091,7 +6092,7 @@ var HawaPricingCard = ({
6091
6092
  };
6092
6093
 
6093
6094
  // src/elements/HawaAdCard.tsx
6094
- import clsx24 from "clsx";
6095
+ import clsx23 from "clsx";
6095
6096
  import React54, { useState as useState29, useEffect as useEffect19, useRef as useRef11 } from "react";
6096
6097
  var HawaAdCard = ({ orientation, ...props }) => {
6097
6098
  const adRef = useRef11(null);
@@ -6123,7 +6124,7 @@ var HawaAdCard = ({ orientation, ...props }) => {
6123
6124
  return /* @__PURE__ */ React54.createElement("div", { ref: adRef }, /* @__PURE__ */ React54.createElement(
6124
6125
  "div",
6125
6126
  {
6126
- className: clsx24(cardStyles[orientation], "dark:text-white"),
6127
+ className: clsx23(cardStyles[orientation], "dark:text-white"),
6127
6128
  ...props
6128
6129
  },
6129
6130
  /* @__PURE__ */ React54.createElement("div", { className: "flex aspect-square w-full max-w-fit items-start " }, /* @__PURE__ */ React54.createElement(
@@ -6155,7 +6156,7 @@ var HawaAdCard = ({ orientation, ...props }) => {
6155
6156
  };
6156
6157
 
6157
6158
  // src/elements/HawaLandingCard.tsx
6158
- import clsx25 from "clsx";
6159
+ import clsx24 from "clsx";
6159
6160
  import React55 from "react";
6160
6161
  var HawaLandingCard = ({
6161
6162
  orientation = "horizontal",
@@ -6172,7 +6173,7 @@ var HawaLandingCard = ({
6172
6173
  return /* @__PURE__ */ React55.createElement(
6173
6174
  "div",
6174
6175
  {
6175
- className: clsx25(
6176
+ className: clsx24(
6176
6177
  cardStyles[orientation],
6177
6178
  "flex flex-col p-10",
6178
6179
  "relative overflow-hidden dark:text-white",
@@ -6196,7 +6197,7 @@ var HawaLandingCard = ({
6196
6197
 
6197
6198
  // src/elements/HawaButton.tsx
6198
6199
  import React56, { useState as useState30 } from "react";
6199
- import clsx26 from "clsx";
6200
+ import clsx25 from "clsx";
6200
6201
  var disabledSyles = "cursor-default pointer-events-none";
6201
6202
  var disabledVariantSyles = {
6202
6203
  contained: "text-gray-300 bg-gray-100",
@@ -6281,7 +6282,7 @@ var HawaButton = ({
6281
6282
  return /* @__PURE__ */ React56.createElement(
6282
6283
  "div",
6283
6284
  {
6284
- className: clsx26(
6285
+ className: clsx25(
6285
6286
  "relative",
6286
6287
  margins !== "none" ? `my-${margins}` : "m-0",
6287
6288
  containerWidthStyles[width]
@@ -6298,7 +6299,7 @@ var HawaButton = ({
6298
6299
  /* @__PURE__ */ React56.createElement(
6299
6300
  "button",
6300
6301
  {
6301
- className: disabled ? clsx26(
6302
+ className: disabled ? clsx25(
6302
6303
  className,
6303
6304
  baseStyles,
6304
6305
  edgeCorner ? "rounded-inner" : "rounded",
@@ -6307,7 +6308,7 @@ var HawaButton = ({
6307
6308
  widthStyles[width],
6308
6309
  disabledSyles,
6309
6310
  disabledVariantSyles[variant]
6310
- ) : clsx26(
6311
+ ) : clsx25(
6311
6312
  className,
6312
6313
  baseStyles,
6313
6314
  edgeCorner ? "rounded-inner" : "rounded",
@@ -6324,7 +6325,7 @@ var HawaButton = ({
6324
6325
  ) : /* @__PURE__ */ React56.createElement(
6325
6326
  "button",
6326
6327
  {
6327
- className: disabled ? clsx26(
6328
+ className: disabled ? clsx25(
6328
6329
  className,
6329
6330
  baseStyles,
6330
6331
  edgeCorner ? "rounded-inner" : "rounded",
@@ -6333,7 +6334,7 @@ var HawaButton = ({
6333
6334
  widthStyles[width],
6334
6335
  disabledSyles,
6335
6336
  disabledVariantSyles[variant]
6336
- ) : clsx26(
6337
+ ) : clsx25(
6337
6338
  className,
6338
6339
  "overflow-x-clip",
6339
6340
  baseStyles,
@@ -6349,7 +6350,7 @@ var HawaButton = ({
6349
6350
  !isLoading ? /* @__PURE__ */ React56.createElement(
6350
6351
  "div",
6351
6352
  {
6352
- className: clsx26(
6353
+ className: clsx25(
6353
6354
  " s flex flex-col-reverse items-start justify-center gap-4 transition-all",
6354
6355
  isClicked && feedback ? " -translate-y-8 pb-1 pt-1" : "translate-y-0"
6355
6356
  )
@@ -6361,7 +6362,7 @@ var HawaButton = ({
6361
6362
  badge && /* @__PURE__ */ React56.createElement(
6362
6363
  "div",
6363
6364
  {
6364
- className: clsx26(
6365
+ className: clsx25(
6365
6366
  typeof badge === "boolean" ? "h-5 w-5" : typeof badge === "string" ? "h-5 w-7" : "h-6 w-6",
6366
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"
6367
6368
  )
@@ -6476,16 +6477,130 @@ var ActionCard = (props) => {
6476
6477
  ));
6477
6478
  };
6478
6479
 
6479
- // src/elements/Carousel.tsx
6480
+ // src/elements/StickyFeatures.tsx
6480
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";
6481
6596
 
6482
6597
  // src/hooks/useCarousel.ts
6483
- import { useState as useState32, useRef as useRef12 } from "react";
6598
+ import { useState as useState33, useRef as useRef13 } from "react";
6484
6599
  var useCarousel = (imageWidth) => {
6485
- const [isDragging, setIsDragging] = useState32(false);
6486
- const [startDragX, setStartDragX] = useState32(0);
6487
- const [scrollLeft, setScrollLeft] = useState32(0);
6488
- 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);
6489
6604
  const findClosestSnapPoint = (scrollLeft2) => {
6490
6605
  return Math.round(scrollLeft2 / imageWidth) * imageWidth;
6491
6606
  };
@@ -6540,7 +6655,7 @@ var Carousel = ({ images }) => {
6540
6655
  handleMouseUp,
6541
6656
  handleMouseMove
6542
6657
  } = useCarousel_default(imageWidth);
6543
- return /* @__PURE__ */ React59.createElement(
6658
+ return /* @__PURE__ */ React62.createElement(
6544
6659
  "div",
6545
6660
  {
6546
6661
  className: "flex cursor-pointer snap-x gap-4 overflow-x-hidden justify-center items-center",
@@ -6550,7 +6665,7 @@ var Carousel = ({ images }) => {
6550
6665
  onMouseMove: handleMouseMove,
6551
6666
  ref: containerRef
6552
6667
  },
6553
- 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(
6554
6669
  "img",
6555
6670
  {
6556
6671
  src: image,
@@ -6563,10 +6678,10 @@ var Carousel = ({ images }) => {
6563
6678
  };
6564
6679
 
6565
6680
  // src/elements/Input.tsx
6566
- import * as React60 from "react";
6567
- var Input = React60.forwardRef(
6681
+ import * as React63 from "react";
6682
+ var Input = React63.forwardRef(
6568
6683
  ({ className, preview, type, ...props }, ref) => {
6569
- return /* @__PURE__ */ React60.createElement(
6684
+ return /* @__PURE__ */ React63.createElement(
6570
6685
  "input",
6571
6686
  {
6572
6687
  type,
@@ -6585,19 +6700,19 @@ var Input = React60.forwardRef(
6585
6700
  Input.displayName = "Input";
6586
6701
 
6587
6702
  // src/elements/InterfaceSettings.tsx
6588
- import React61, { useState as useState34 } from "react";
6703
+ import React64, { useState as useState35 } from "react";
6589
6704
  var InterfaceSettings = ({
6590
6705
  orientation = "horizontal",
6591
6706
  width = "default",
6592
6707
  ...props
6593
6708
  }) => {
6594
- const [color, setColor] = useState34(props.currentColorMode);
6595
- const [language, setLanguage] = useState34(props.currentLanguage);
6709
+ const [color, setColor] = useState35(props.currentColorMode);
6710
+ const [language, setLanguage] = useState35(props.currentLanguage);
6596
6711
  let orientationStyle = {
6597
6712
  horizontal: "flex flex-row justify-between",
6598
6713
  vertical: "flex flex-col items-center gap-2"
6599
6714
  };
6600
- 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(
6601
6716
  HawaRadio,
6602
6717
  {
6603
6718
  width,
@@ -6612,7 +6727,7 @@ var InterfaceSettings = ({
6612
6727
  { value: "en", label: "English" }
6613
6728
  ]
6614
6729
  }
6615
- ), /* @__PURE__ */ React61.createElement(
6730
+ ), /* @__PURE__ */ React64.createElement(
6616
6731
  HawaRadio,
6617
6732
  {
6618
6733
  width,
@@ -6625,7 +6740,7 @@ var InterfaceSettings = ({
6625
6740
  options: [
6626
6741
  {
6627
6742
  value: "light",
6628
- label: /* @__PURE__ */ React61.createElement(
6743
+ label: /* @__PURE__ */ React64.createElement(
6629
6744
  "svg",
6630
6745
  {
6631
6746
  width: "15",
@@ -6635,7 +6750,7 @@ var InterfaceSettings = ({
6635
6750
  xmlns: "http://www.w3.org/2000/svg",
6636
6751
  className: "h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90"
6637
6752
  },
6638
- /* @__PURE__ */ React61.createElement(
6753
+ /* @__PURE__ */ React64.createElement(
6639
6754
  "path",
6640
6755
  {
6641
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",
@@ -6646,7 +6761,7 @@ var InterfaceSettings = ({
6646
6761
  },
6647
6762
  {
6648
6763
  value: "dark",
6649
- label: /* @__PURE__ */ React61.createElement(
6764
+ label: /* @__PURE__ */ React64.createElement(
6650
6765
  "svg",
6651
6766
  {
6652
6767
  xmlns: "http://www.w3.org/2000/svg",
@@ -6657,7 +6772,7 @@ var InterfaceSettings = ({
6657
6772
  stroke: "currentColor",
6658
6773
  className: "h-[1.2rem] w-[1.2rem] transition-all dark:rotate-0 dark:scale-100"
6659
6774
  },
6660
- /* @__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" })
6661
6776
  )
6662
6777
  }
6663
6778
  ]
@@ -6666,9 +6781,9 @@ var InterfaceSettings = ({
6666
6781
  };
6667
6782
 
6668
6783
  // src/elements/Popover.tsx
6669
- import * as React62 from "react";
6784
+ import * as React65 from "react";
6670
6785
  import * as PopoverPrimitive from "@radix-ui/react-popover";
6671
- 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(
6672
6787
  PopoverPrimitive.Content,
6673
6788
  {
6674
6789
  ref,
@@ -6689,7 +6804,7 @@ var Popover = ({
6689
6804
  align = "center",
6690
6805
  side,
6691
6806
  sideOffset = 4
6692
- }) => /* @__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(
6693
6808
  PopoverContent,
6694
6809
  {
6695
6810
  side,
@@ -6701,10 +6816,10 @@ var Popover = ({
6701
6816
  ));
6702
6817
 
6703
6818
  // src/elements/Tabs.tsx
6704
- import * as React63 from "react";
6819
+ import * as React66 from "react";
6705
6820
  import * as TabsPrimitive from "@radix-ui/react-tabs";
6706
- var TabsContext = React63.createContext({ orientation: "vertical" });
6707
- 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(
6708
6823
  TabsPrimitive.Root,
6709
6824
  {
6710
6825
  ref,
@@ -6715,12 +6830,12 @@ var Tabs = React63.forwardRef(({ className, orientation, ...props }, ref) => /*
6715
6830
  ),
6716
6831
  ...props
6717
6832
  },
6718
- /* @__PURE__ */ React63.createElement(TabsContext.Provider, { value: { orientation } }, props.children)
6833
+ /* @__PURE__ */ React66.createElement(TabsContext.Provider, { value: { orientation } }, props.children)
6719
6834
  ));
6720
6835
  Tabs.displayName = TabsPrimitive.Root.displayName;
6721
- var TabsList = React63.forwardRef(({ className, ...props }, ref) => {
6722
- const { orientation } = React63.useContext(TabsContext);
6723
- return /* @__PURE__ */ React63.createElement(
6836
+ var TabsList = React66.forwardRef(({ className, ...props }, ref) => {
6837
+ const { orientation } = React66.useContext(TabsContext);
6838
+ return /* @__PURE__ */ React66.createElement(
6724
6839
  TabsPrimitive.List,
6725
6840
  {
6726
6841
  ref,
@@ -6734,8 +6849,8 @@ var TabsList = React63.forwardRef(({ className, ...props }, ref) => {
6734
6849
  );
6735
6850
  });
6736
6851
  TabsList.displayName = TabsPrimitive.List.displayName;
6737
- var TabsTrigger = React63.forwardRef(({ className, ...props }, ref) => {
6738
- return /* @__PURE__ */ React63.createElement(
6852
+ var TabsTrigger = React66.forwardRef(({ className, ...props }, ref) => {
6853
+ return /* @__PURE__ */ React66.createElement(
6739
6854
  TabsPrimitive.Trigger,
6740
6855
  {
6741
6856
  ref,
@@ -6748,7 +6863,7 @@ var TabsTrigger = React63.forwardRef(({ className, ...props }, ref) => {
6748
6863
  );
6749
6864
  });
6750
6865
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
6751
- var TabsContent = React63.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React63.createElement(
6866
+ var TabsContent = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
6752
6867
  TabsPrimitive.Content,
6753
6868
  {
6754
6869
  ref,
@@ -6761,30 +6876,11 @@ var TabsContent = React63.forwardRef(({ className, ...props }, ref) => /* @__PUR
6761
6876
  ));
6762
6877
  TabsContent.displayName = TabsPrimitive.Content.displayName;
6763
6878
 
6764
- // src/elements/Textarea.tsx
6765
- import * as React64 from "react";
6766
- var Textarea = React64.forwardRef(
6767
- ({ className, label, ...props }, ref) => {
6768
- return /* @__PURE__ */ React64.createElement(React64.Fragment, null, label && /* @__PURE__ */ React64.createElement(Label, { htmlFor: props.id }, label), /* @__PURE__ */ React64.createElement(
6769
- "textarea",
6770
- {
6771
- className: cn(
6772
- "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",
6773
- className
6774
- ),
6775
- ref,
6776
- ...props
6777
- }
6778
- ));
6779
- }
6780
- );
6781
- Textarea.displayName = "Textarea";
6782
-
6783
6879
  // src/elements/Separator.tsx
6784
- import * as React65 from "react";
6880
+ import * as React67 from "react";
6785
6881
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
6786
- var Separator3 = React65.forwardRef(
6787
- ({ 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(
6788
6884
  SeparatorPrimitive.Root,
6789
6885
  {
6790
6886
  ref,
@@ -6802,7 +6898,7 @@ var Separator3 = React65.forwardRef(
6802
6898
  Separator3.displayName = SeparatorPrimitive.Root.displayName;
6803
6899
 
6804
6900
  // src/elements/Toast.tsx
6805
- import * as React66 from "react";
6901
+ import * as React68 from "react";
6806
6902
  import * as ToastPrimitives from "@radix-ui/react-toast";
6807
6903
  import { cva as cva3 } from "class-variance-authority";
6808
6904
  var toastVariants = cva3(
@@ -6827,7 +6923,7 @@ var toastVariants = cva3(
6827
6923
  }
6828
6924
  );
6829
6925
  var ToastProvider = ToastPrimitives.Provider;
6830
- var ToastViewport = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
6926
+ var ToastViewport = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React68.createElement(
6831
6927
  ToastPrimitives.Viewport,
6832
6928
  {
6833
6929
  ref,
@@ -6839,8 +6935,8 @@ var ToastViewport = React66.forwardRef(({ className, ...props }, ref) => /* @__P
6839
6935
  }
6840
6936
  ));
6841
6937
  ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
6842
- var Toast = React66.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
6843
- return /* @__PURE__ */ React66.createElement(
6938
+ var Toast = React68.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
6939
+ return /* @__PURE__ */ React68.createElement(
6844
6940
  ToastPrimitives.Root,
6845
6941
  {
6846
6942
  ref,
@@ -6855,8 +6951,8 @@ var Toast = React66.forwardRef(({ className, variant, severity = "none", directi
6855
6951
  );
6856
6952
  });
6857
6953
  Toast.displayName = ToastPrimitives.Root.displayName;
6858
- var ToastAction = React66.forwardRef(({ className, ...props }, ref) => {
6859
- return /* @__PURE__ */ React66.createElement(
6954
+ var ToastAction = React68.forwardRef(({ className, ...props }, ref) => {
6955
+ return /* @__PURE__ */ React68.createElement(
6860
6956
  ToastPrimitives.Action,
6861
6957
  {
6862
6958
  ref,
@@ -6873,7 +6969,7 @@ var ToastAction = React66.forwardRef(({ className, ...props }, ref) => {
6873
6969
  );
6874
6970
  });
6875
6971
  ToastAction.displayName = ToastPrimitives.Action.displayName;
6876
- var ToastClose = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
6972
+ var ToastClose = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React68.createElement(
6877
6973
  ToastPrimitives.Close,
6878
6974
  {
6879
6975
  ref,
@@ -6884,7 +6980,7 @@ var ToastClose = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE
6884
6980
  "toast-close": "",
6885
6981
  ...props
6886
6982
  },
6887
- /* @__PURE__ */ React66.createElement(
6983
+ /* @__PURE__ */ React68.createElement(
6888
6984
  "svg",
6889
6985
  {
6890
6986
  "aria-label": "Close Icon",
@@ -6893,7 +6989,7 @@ var ToastClose = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE
6893
6989
  fill: "currentColor",
6894
6990
  viewBox: "0 0 20 20"
6895
6991
  },
6896
- /* @__PURE__ */ React66.createElement(
6992
+ /* @__PURE__ */ React68.createElement(
6897
6993
  "path",
6898
6994
  {
6899
6995
  fillRule: "evenodd",
@@ -6904,7 +7000,7 @@ var ToastClose = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE
6904
7000
  )
6905
7001
  ));
6906
7002
  ToastClose.displayName = ToastPrimitives.Close.displayName;
6907
- var ToastTitle = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
7003
+ var ToastTitle = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React68.createElement(
6908
7004
  ToastPrimitives.Title,
6909
7005
  {
6910
7006
  ref,
@@ -6913,7 +7009,7 @@ var ToastTitle = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE
6913
7009
  }
6914
7010
  ));
6915
7011
  ToastTitle.displayName = ToastPrimitives.Title.displayName;
6916
- var ToastDescription = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
7012
+ var ToastDescription = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React68.createElement(
6917
7013
  ToastPrimitives.Description,
6918
7014
  {
6919
7015
  ref,
@@ -6924,10 +7020,10 @@ var ToastDescription = React66.forwardRef(({ className, ...props }, ref) => /* @
6924
7020
  ToastDescription.displayName = ToastPrimitives.Description.displayName;
6925
7021
 
6926
7022
  // src/elements/Toaster.tsx
6927
- import React68 from "react";
7023
+ import React70 from "react";
6928
7024
 
6929
7025
  // src/hooks/useToast.ts
6930
- import * as React67 from "react";
7026
+ import * as React69 from "react";
6931
7027
  var TOAST_LIMIT = 5;
6932
7028
  var TOAST_REMOVE_DELAY = 1e5;
6933
7029
  var count = 0;
@@ -7023,8 +7119,8 @@ function toast({ ...props }) {
7023
7119
  };
7024
7120
  }
7025
7121
  function useToast() {
7026
- const [state, setState] = React67.useState(memoryState);
7027
- React67.useEffect(() => {
7122
+ const [state, setState] = React69.useState(memoryState);
7123
+ React69.useEffect(() => {
7028
7124
  listeners.push(setState);
7029
7125
  return () => {
7030
7126
  const index = listeners.indexOf(setState);
@@ -7044,29 +7140,22 @@ function useToast() {
7044
7140
  function Toaster(props) {
7045
7141
  const { toasts } = useToast();
7046
7142
  let isRTL = props.direction === "rtl";
7047
- return /* @__PURE__ */ React68.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, toasts.map(function({ id, title, description, action, ...toastProps }) {
7048
- return /* @__PURE__ */ React68.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ React68.createElement(
7049
- "div",
7050
- {
7051
- className: cn("grid gap-1", isRTL ? "text-right" : "text-left")
7052
- },
7053
- title && /* @__PURE__ */ React68.createElement(ToastTitle, null, title),
7054
- description && /* @__PURE__ */ React68.createElement(ToastDescription, null, description)
7055
- ), action, /* @__PURE__ */ React68.createElement(ToastClose, null));
7056
- }), /* @__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") }));
7057
7146
  }
7058
7147
 
7059
7148
  // src/elements/Dialog.tsx
7060
- import * as React69 from "react";
7149
+ import * as React71 from "react";
7061
7150
  import * as DialogPrimitive from "@radix-ui/react-dialog";
7062
7151
  var Dialog = DialogPrimitive.Root;
7063
7152
  var DialogTrigger = DialogPrimitive.Trigger;
7064
7153
  var DialogPortal = ({
7065
7154
  className,
7066
7155
  ...props
7067
- }) => /* @__PURE__ */ React69.createElement(DialogPrimitive.Portal, { className: cn(className), ...props });
7156
+ }) => /* @__PURE__ */ React71.createElement(DialogPrimitive.Portal, { className: cn(className), ...props });
7068
7157
  DialogPortal.displayName = DialogPrimitive.Portal.displayName;
7069
- var DialogOverlay = React69.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React69.createElement(
7158
+ var DialogOverlay = React71.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React71.createElement(
7070
7159
  DialogPrimitive.Overlay,
7071
7160
  {
7072
7161
  ref,
@@ -7078,7 +7167,7 @@ var DialogOverlay = React69.forwardRef(({ className, ...props }, ref) => /* @__P
7078
7167
  }
7079
7168
  ));
7080
7169
  DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
7081
- 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(
7082
7171
  DialogPrimitive.Content,
7083
7172
  {
7084
7173
  ref,
@@ -7089,7 +7178,7 @@ var DialogContent = React69.forwardRef(({ className, children, ...props }, ref)
7089
7178
  ...props
7090
7179
  },
7091
7180
  children,
7092
- /* @__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(
7093
7182
  "svg",
7094
7183
  {
7095
7184
  "aria-label": "Close Icon",
@@ -7098,7 +7187,7 @@ var DialogContent = React69.forwardRef(({ className, children, ...props }, ref)
7098
7187
  fill: "currentColor",
7099
7188
  viewBox: "0 0 20 20"
7100
7189
  },
7101
- /* @__PURE__ */ React69.createElement(
7190
+ /* @__PURE__ */ React71.createElement(
7102
7191
  "path",
7103
7192
  {
7104
7193
  fillRule: "evenodd",
@@ -7106,13 +7195,13 @@ var DialogContent = React69.forwardRef(({ className, children, ...props }, ref)
7106
7195
  clipRule: "evenodd"
7107
7196
  }
7108
7197
  )
7109
- ), /* @__PURE__ */ React69.createElement("span", { className: "sr-only" }, "Close"))
7198
+ ), /* @__PURE__ */ React71.createElement("span", { className: "sr-only" }, "Close"))
7110
7199
  )));
7111
7200
  DialogContent.displayName = DialogPrimitive.Content.displayName;
7112
7201
  var DialogHeader = ({
7113
7202
  className,
7114
7203
  ...props
7115
- }) => /* @__PURE__ */ React69.createElement(
7204
+ }) => /* @__PURE__ */ React71.createElement(
7116
7205
  "div",
7117
7206
  {
7118
7207
  className: cn(
@@ -7126,7 +7215,7 @@ DialogHeader.displayName = "DialogHeader";
7126
7215
  var DialogFooter = ({
7127
7216
  className,
7128
7217
  ...props
7129
- }) => /* @__PURE__ */ React69.createElement(
7218
+ }) => /* @__PURE__ */ React71.createElement(
7130
7219
  "div",
7131
7220
  {
7132
7221
  className: cn(
@@ -7137,7 +7226,7 @@ var DialogFooter = ({
7137
7226
  }
7138
7227
  );
7139
7228
  DialogFooter.displayName = "DialogFooter";
7140
- var DialogTitle = React69.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React69.createElement(
7229
+ var DialogTitle = React71.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React71.createElement(
7141
7230
  DialogPrimitive.Title,
7142
7231
  {
7143
7232
  ref,
@@ -7149,7 +7238,7 @@ var DialogTitle = React69.forwardRef(({ className, ...props }, ref) => /* @__PUR
7149
7238
  }
7150
7239
  ));
7151
7240
  DialogTitle.displayName = DialogPrimitive.Title.displayName;
7152
- var DialogDescription = React69.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React69.createElement(
7241
+ var DialogDescription = React71.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React71.createElement(
7153
7242
  DialogPrimitive.Description,
7154
7243
  {
7155
7244
  ref,
@@ -7160,32 +7249,32 @@ var DialogDescription = React69.forwardRef(({ className, ...props }, ref) => /*
7160
7249
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
7161
7250
 
7162
7251
  // src/layout/Box.tsx
7163
- import React70 from "react";
7252
+ import React72 from "react";
7164
7253
  var Box = (props) => {
7165
- return /* @__PURE__ */ React70.createElement("div", null, props.children);
7254
+ return /* @__PURE__ */ React72.createElement("div", null, props.children);
7166
7255
  };
7167
7256
 
7168
7257
  // src/layout/HawaBottomAppBar.tsx
7169
- import React71 from "react";
7258
+ import React73 from "react";
7170
7259
  var HawaBottomAppBar = (props) => {
7171
- 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(
7172
7261
  "div",
7173
7262
  {
7174
7263
  className: "flex w-full flex-row items-center justify-evenly rounded bg-gray-200"
7175
7264
  },
7176
- props.appBarContent.map((singleContent, i) => /* @__PURE__ */ React71.createElement(
7265
+ props.appBarContent.map((singleContent, i) => /* @__PURE__ */ React73.createElement(
7177
7266
  "div",
7178
7267
  {
7179
7268
  key: i,
7180
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",
7181
7270
  onClick: singleContent.action
7182
7271
  },
7183
- /* @__PURE__ */ React71.createElement(
7272
+ /* @__PURE__ */ React73.createElement(
7184
7273
  "div",
7185
7274
  null,
7186
7275
  singleContent.icon
7187
7276
  ),
7188
- /* @__PURE__ */ React71.createElement(
7277
+ /* @__PURE__ */ React73.createElement(
7189
7278
  "div",
7190
7279
  {
7191
7280
  className: "mt-2 text-sm"
@@ -7197,13 +7286,13 @@ var HawaBottomAppBar = (props) => {
7197
7286
  };
7198
7287
 
7199
7288
  // src/layout/HawaSiteLayout.tsx
7200
- 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";
7201
7290
  import clsx27 from "clsx";
7202
7291
 
7203
7292
  // src/hooks/useDiscloser.ts
7204
- import { useState as useState36 } from "react";
7293
+ import { useState as useState37 } from "react";
7205
7294
  var useDiscloser = (value = false) => {
7206
- const [open, setOpen] = useState36(value);
7295
+ const [open, setOpen] = useState37(value);
7207
7296
  const onOpen = () => setOpen(true);
7208
7297
  const onClose = () => setOpen(false);
7209
7298
  return {
@@ -7215,13 +7304,13 @@ var useDiscloser = (value = false) => {
7215
7304
  var useDiscloser_default = useDiscloser;
7216
7305
 
7217
7306
  // src/hooks/useBreakpoint.ts
7218
- import { useState as useState37, useEffect as useEffect21 } from "react";
7307
+ import { useState as useState38, useEffect as useEffect22 } from "react";
7219
7308
  var useBreakpoint = () => {
7220
- const [breakpoint, setBreakpoint] = useState37(window?.innerWidth);
7309
+ const [breakpoint, setBreakpoint] = useState38(window?.innerWidth);
7221
7310
  const resize = () => {
7222
7311
  setBreakpoint(window?.innerWidth);
7223
7312
  };
7224
- useEffect21(() => {
7313
+ useEffect22(() => {
7225
7314
  if (typeof window !== "undefined") {
7226
7315
  window?.addEventListener("resize", resize);
7227
7316
  return () => {
@@ -7239,19 +7328,19 @@ var HawaSiteLayout = ({
7239
7328
  navigationSize = "md",
7240
7329
  ...props
7241
7330
  }) => {
7242
- const [openSideMenu, setOpenSideMenu] = useState38(false);
7243
- const [openSubItem, setOpenSubItem] = useState38(false);
7331
+ const [openSideMenu, setOpenSideMenu] = useState39(false);
7332
+ const [openSubItem, setOpenSubItem] = useState39(false);
7244
7333
  const { isOpen, onClose, onOpen } = useDiscloser_default(false);
7245
- const ref = useRef14(null);
7246
- const drawerItemRef = useRef14(null);
7334
+ const ref = useRef15(null);
7335
+ const drawerItemRef = useRef15(null);
7247
7336
  let size;
7248
7337
  if (typeof window !== "undefined") {
7249
7338
  size = useBreakpoint_default();
7250
7339
  } else {
7251
7340
  size = 1200;
7252
7341
  }
7253
- const [keepOpen, setKeepOpen] = useState38(false);
7254
- useEffect22(() => {
7342
+ const [keepOpen, setKeepOpen] = useState39(false);
7343
+ useEffect23(() => {
7255
7344
  const handleClickOutside = (event) => {
7256
7345
  if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
7257
7346
  setOpenSideMenu(false);
@@ -7286,7 +7375,7 @@ var HawaSiteLayout = ({
7286
7375
  // "w-full",
7287
7376
  // "top-14 h-[calc(100%-3.5rem)]",
7288
7377
  ];
7289
- 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(
7290
7379
  "div",
7291
7380
  {
7292
7381
  className: clsx27(
@@ -7299,7 +7388,7 @@ var HawaSiteLayout = ({
7299
7388
  direction === "rtl" ? "flex-row" : "flex-row-reverse"
7300
7389
  )
7301
7390
  },
7302
- 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(
7303
7392
  "div",
7304
7393
  {
7305
7394
  onClick: () => setOpenSideMenu(!openSideMenu),
@@ -7307,13 +7396,13 @@ var HawaSiteLayout = ({
7307
7396
  className: "cursor-pointer rounded bg-none text-gray-600 transition-all hover:text-black"
7308
7397
  },
7309
7398
  label
7310
- ))) : /* @__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(
7311
7400
  "div",
7312
7401
  {
7313
7402
  onClick: () => setOpenSideMenu(!openSideMenu),
7314
7403
  className: "cursor-pointer rounded p-1 transition-all hover:bg-gray-100"
7315
7404
  },
7316
- /* @__PURE__ */ React74.createElement(
7405
+ /* @__PURE__ */ React76.createElement(
7317
7406
  "svg",
7318
7407
  {
7319
7408
  stroke: "currentColor",
@@ -7324,7 +7413,7 @@ var HawaSiteLayout = ({
7324
7413
  height: "1.6em",
7325
7414
  width: "1.6em"
7326
7415
  },
7327
- /* @__PURE__ */ React74.createElement(
7416
+ /* @__PURE__ */ React76.createElement(
7328
7417
  "path",
7329
7418
  {
7330
7419
  fillRule: "evenodd",
@@ -7334,15 +7423,15 @@ var HawaSiteLayout = ({
7334
7423
  )
7335
7424
  ),
7336
7425
  " "
7337
- ), props.pageTitle ? /* @__PURE__ */ React74.createElement("div", null, props.pageTitle) : /* @__PURE__ */ React74.createElement("div", null)),
7338
- /* @__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(
7339
7428
  "img",
7340
7429
  {
7341
7430
  className: "h-full max-h-8 ",
7342
7431
  src: `https://sikka-images.s3.ap-southeast-1.amazonaws.com/seera/seera-horizontal-wordmark-${direction === "rtl" ? "ar" : "en"}-white.svg`
7343
7432
  }
7344
7433
  ))
7345
- ), /* @__PURE__ */ React74.createElement(
7434
+ ), /* @__PURE__ */ React76.createElement(
7346
7435
  "div",
7347
7436
  {
7348
7437
  className: clsx27(" relative top-14")
@@ -7352,17 +7441,17 @@ var HawaSiteLayout = ({
7352
7441
  };
7353
7442
 
7354
7443
  // src/layout/AppLayout.tsx
7355
- 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";
7356
7445
  import clsx28 from "clsx";
7357
7446
 
7358
7447
  // src/layout/Sidebar.tsx
7359
- import * as React75 from "react";
7448
+ import * as React77 from "react";
7360
7449
  import * as AccordionPrimitive from "@radix-ui/react-accordion";
7361
7450
  var Accordion = AccordionPrimitive.Root;
7362
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";
7363
- 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 }));
7364
7453
  AccordionItem.displayName = "AccordionItem";
7365
- 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(
7366
7455
  AccordionPrimitive.Trigger,
7367
7456
  {
7368
7457
  ref,
@@ -7370,7 +7459,7 @@ var AccordionTrigger = React75.forwardRef(({ className, showArrow, children, ...
7370
7459
  ...props
7371
7460
  },
7372
7461
  children,
7373
- showArrow && /* @__PURE__ */ React75.createElement(
7462
+ showArrow && /* @__PURE__ */ React77.createElement(
7374
7463
  "svg",
7375
7464
  {
7376
7465
  "aria-label": "Chevron Right Icon",
@@ -7381,7 +7470,7 @@ var AccordionTrigger = React75.forwardRef(({ className, showArrow, children, ...
7381
7470
  width: "1em",
7382
7471
  className: "h-4 w-4 shrink-0 rotate-90 transition-transform duration-200"
7383
7472
  },
7384
- /* @__PURE__ */ React75.createElement(
7473
+ /* @__PURE__ */ React77.createElement(
7385
7474
  "path",
7386
7475
  {
7387
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"
@@ -7390,7 +7479,7 @@ var AccordionTrigger = React75.forwardRef(({ className, showArrow, children, ...
7390
7479
  )
7391
7480
  )));
7392
7481
  AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
7393
- var AccordionContent = React75.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React75.createElement(
7482
+ var AccordionContent = React77.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React77.createElement(
7394
7483
  AccordionPrimitive.Content,
7395
7484
  {
7396
7485
  ref,
@@ -7400,7 +7489,7 @@ var AccordionContent = React75.forwardRef(({ className, children, ...props }, re
7400
7489
  ),
7401
7490
  ...props
7402
7491
  },
7403
- /* @__PURE__ */ React75.createElement("div", null, children)
7492
+ /* @__PURE__ */ React77.createElement("div", null, children)
7404
7493
  ));
7405
7494
  AccordionContent.displayName = AccordionPrimitive.Content.displayName;
7406
7495
  var SidebarGroup = ({
@@ -7414,7 +7503,7 @@ var SidebarGroup = ({
7414
7503
  direction,
7415
7504
  isOpen
7416
7505
  }) => {
7417
- 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(
7418
7507
  Accordion,
7419
7508
  {
7420
7509
  value: openedItem,
@@ -7425,7 +7514,7 @@ var SidebarGroup = ({
7425
7514
  collapsible: true,
7426
7515
  className: "flex flex-col gap-1"
7427
7516
  },
7428
- items.map((item, idx) => /* @__PURE__ */ React75.createElement(
7517
+ items.map((item, idx) => /* @__PURE__ */ React77.createElement(
7429
7518
  SidebarItem,
7430
7519
  {
7431
7520
  isOpen,
@@ -7451,20 +7540,20 @@ var SidebarItem = ({
7451
7540
  return isSelected && isSelected[index] === value ? "bg-primary text-primary-foreground cursor-default" : "hover:bg-primary/10";
7452
7541
  };
7453
7542
  if (item.subitems) {
7454
- return /* @__PURE__ */ React75.createElement(
7543
+ return /* @__PURE__ */ React77.createElement(
7455
7544
  AccordionItem,
7456
7545
  {
7457
7546
  value: item.value,
7458
7547
  className: "overflow-x-clip",
7459
7548
  dir: direction
7460
7549
  },
7461
- /* @__PURE__ */ React75.createElement(
7550
+ /* @__PURE__ */ React77.createElement(
7462
7551
  AccordionTrigger,
7463
7552
  {
7464
7553
  className: cn(getSelectedStyle(item.value, 0)),
7465
7554
  showArrow: isOpen
7466
7555
  },
7467
- /* @__PURE__ */ React75.createElement(
7556
+ /* @__PURE__ */ React77.createElement(
7468
7557
  "div",
7469
7558
  {
7470
7559
  className: cn(
@@ -7473,7 +7562,7 @@ var SidebarItem = ({
7473
7562
  )
7474
7563
  },
7475
7564
  item.icon,
7476
- isOpen && /* @__PURE__ */ React75.createElement(
7565
+ isOpen && /* @__PURE__ */ React77.createElement(
7477
7566
  "span",
7478
7567
  {
7479
7568
  className: cn(
@@ -7485,12 +7574,12 @@ var SidebarItem = ({
7485
7574
  )
7486
7575
  )
7487
7576
  ),
7488
- 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(
7489
7578
  "div",
7490
7579
  {
7491
7580
  className: cn("flex h-full flex-col gap-2 bg-foreground/5 p-1")
7492
7581
  },
7493
- item.subitems.map((subitem, idx) => /* @__PURE__ */ React75.createElement(
7582
+ item.subitems.map((subitem, idx) => /* @__PURE__ */ React77.createElement(
7494
7583
  "li",
7495
7584
  {
7496
7585
  key: idx,
@@ -7511,7 +7600,7 @@ var SidebarItem = ({
7511
7600
  ))
7512
7601
  );
7513
7602
  } else {
7514
- return /* @__PURE__ */ React75.createElement(
7603
+ return /* @__PURE__ */ React77.createElement(
7515
7604
  "div",
7516
7605
  {
7517
7606
  dir: direction,
@@ -7526,7 +7615,7 @@ var SidebarItem = ({
7526
7615
  "overflow-x-clip "
7527
7616
  )
7528
7617
  },
7529
- /* @__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(
7530
7619
  "span",
7531
7620
  {
7532
7621
  className: cn(
@@ -7565,10 +7654,10 @@ var AppLayout = ({
7565
7654
  lg: closeDrawerWidth
7566
7655
  }
7567
7656
  };
7568
- const ref = useRef15(null);
7657
+ const ref = useRef16(null);
7569
7658
  const isRTL = direction === "rtl";
7570
- const [openedSidebarItem, setOpenedSidebarItem] = useState39("");
7571
- const [selectedItem, setSelectedItem] = useState39(
7659
+ const [openedSidebarItem, setOpenedSidebarItem] = useState40("");
7660
+ const [selectedItem, setSelectedItem] = useState40(
7572
7661
  currentPage ? currentPage : []
7573
7662
  );
7574
7663
  let size;
@@ -7577,10 +7666,10 @@ var AppLayout = ({
7577
7666
  } else {
7578
7667
  size = 1200;
7579
7668
  }
7580
- const [keepOpen, setKeepOpen] = useState39(size > 600 ? true : false);
7581
- 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);
7582
7671
  let drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
7583
- useEffect23(() => {
7672
+ useEffect24(() => {
7584
7673
  const handleClickOutside = (event) => {
7585
7674
  if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
7586
7675
  setOpenSideMenu(false);
@@ -7591,7 +7680,7 @@ var AppLayout = ({
7591
7680
  document.removeEventListener("click", handleClickOutside, true);
7592
7681
  };
7593
7682
  }, [keepOpen]);
7594
- 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(
7595
7684
  "div",
7596
7685
  {
7597
7686
  className: clsx28(
@@ -7599,7 +7688,7 @@ var AppLayout = ({
7599
7688
  isRTL ? "flex-row-reverse" : "flex-row"
7600
7689
  )
7601
7690
  },
7602
- size > 600 ? /* @__PURE__ */ React76.createElement(
7691
+ size > 600 ? /* @__PURE__ */ React78.createElement(
7603
7692
  "div",
7604
7693
  {
7605
7694
  className: clsx28(
@@ -7615,19 +7704,19 @@ var AppLayout = ({
7615
7704
  props.pageTitle
7616
7705
  ) : (
7617
7706
  // Mobile Drawer Menu Button
7618
- /* @__PURE__ */ React76.createElement(
7707
+ /* @__PURE__ */ React78.createElement(
7619
7708
  "div",
7620
7709
  {
7621
7710
  dir: direction,
7622
7711
  className: "flex items-center justify-center gap-0.5"
7623
7712
  },
7624
- /* @__PURE__ */ React76.createElement(
7713
+ /* @__PURE__ */ React78.createElement(
7625
7714
  "div",
7626
7715
  {
7627
7716
  onClick: () => setOpenSideMenu(true),
7628
7717
  className: "z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100"
7629
7718
  },
7630
- /* @__PURE__ */ React76.createElement(
7719
+ /* @__PURE__ */ React78.createElement(
7631
7720
  "svg",
7632
7721
  {
7633
7722
  stroke: "currentColor",
@@ -7638,7 +7727,7 @@ var AppLayout = ({
7638
7727
  height: "1.6em",
7639
7728
  width: "1.6em"
7640
7729
  },
7641
- /* @__PURE__ */ React76.createElement(
7730
+ /* @__PURE__ */ React78.createElement(
7642
7731
  "path",
7643
7732
  {
7644
7733
  fillRule: "evenodd",
@@ -7648,10 +7737,10 @@ var AppLayout = ({
7648
7737
  )
7649
7738
  )
7650
7739
  ),
7651
- 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)
7652
7741
  )
7653
7742
  ),
7654
- /* @__PURE__ */ React76.createElement(
7743
+ /* @__PURE__ */ React78.createElement(
7655
7744
  "div",
7656
7745
  {
7657
7746
  className: clsx28(
@@ -7659,16 +7748,16 @@ var AppLayout = ({
7659
7748
  isRTL ? "flex-row-reverse" : "flex-row"
7660
7749
  )
7661
7750
  },
7662
- size > 600 ? /* @__PURE__ */ React76.createElement(
7751
+ size > 600 ? /* @__PURE__ */ React78.createElement(
7663
7752
  "div",
7664
7753
  {
7665
7754
  className: isRTL ? "text-left text-xs" : "text-right text-xs"
7666
7755
  },
7667
- /* @__PURE__ */ React76.createElement("div", { className: "font-bold" }, props.username),
7756
+ /* @__PURE__ */ React78.createElement("div", { className: "font-bold" }, props.username),
7668
7757
  " ",
7669
- /* @__PURE__ */ React76.createElement("div", null, props.email)
7758
+ /* @__PURE__ */ React78.createElement("div", null, props.email)
7670
7759
  ) : null,
7671
- /* @__PURE__ */ React76.createElement(
7760
+ /* @__PURE__ */ React78.createElement(
7672
7761
  DropdownMenu,
7673
7762
  {
7674
7763
  triggerClassname: "mx-2",
@@ -7677,7 +7766,7 @@ var AppLayout = ({
7677
7766
  side: "bottom",
7678
7767
  sideOffset: 5,
7679
7768
  direction: isRTL ? "rtl" : "ltr",
7680
- 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(
7681
7770
  "svg",
7682
7771
  {
7683
7772
  "aria-label": "Avatar Icon",
@@ -7685,7 +7774,7 @@ var AppLayout = ({
7685
7774
  fill: "currentColor",
7686
7775
  viewBox: "0 0 20 20"
7687
7776
  },
7688
- /* @__PURE__ */ React76.createElement(
7777
+ /* @__PURE__ */ React78.createElement(
7689
7778
  "path",
7690
7779
  {
7691
7780
  fillRule: "evenodd",
@@ -7699,7 +7788,7 @@ var AppLayout = ({
7699
7788
  }
7700
7789
  )
7701
7790
  )
7702
- ), /* @__PURE__ */ React76.createElement(
7791
+ ), /* @__PURE__ */ React78.createElement(
7703
7792
  "div",
7704
7793
  {
7705
7794
  className: clsx28(
@@ -7722,7 +7811,7 @@ var AppLayout = ({
7722
7811
  },
7723
7812
  ref
7724
7813
  },
7725
- /* @__PURE__ */ React76.createElement(
7814
+ /* @__PURE__ */ React78.createElement(
7726
7815
  "div",
7727
7816
  {
7728
7817
  dir: direction,
@@ -7734,7 +7823,7 @@ var AppLayout = ({
7734
7823
  width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
7735
7824
  }
7736
7825
  },
7737
- /* @__PURE__ */ React76.createElement(
7826
+ /* @__PURE__ */ React78.createElement(
7738
7827
  "img",
7739
7828
  {
7740
7829
  className: clsx28(
@@ -7744,7 +7833,7 @@ var AppLayout = ({
7744
7833
  src: props.logoLink
7745
7834
  }
7746
7835
  ),
7747
- size > 600 ? /* @__PURE__ */ React76.createElement(
7836
+ size > 600 ? /* @__PURE__ */ React78.createElement(
7748
7837
  "img",
7749
7838
  {
7750
7839
  className: clsx28(
@@ -7757,7 +7846,7 @@ var AppLayout = ({
7757
7846
  }
7758
7847
  ) : null
7759
7848
  ),
7760
- /* @__PURE__ */ React76.createElement(
7849
+ /* @__PURE__ */ React78.createElement(
7761
7850
  "div",
7762
7851
  {
7763
7852
  className: clsx28(
@@ -7770,7 +7859,7 @@ var AppLayout = ({
7770
7859
  width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
7771
7860
  }
7772
7861
  },
7773
- /* @__PURE__ */ React76.createElement(
7862
+ /* @__PURE__ */ React78.createElement(
7774
7863
  SidebarGroup,
7775
7864
  {
7776
7865
  direction,
@@ -7790,7 +7879,7 @@ var AppLayout = ({
7790
7879
  }
7791
7880
  )
7792
7881
  ),
7793
- /* @__PURE__ */ React76.createElement(
7882
+ /* @__PURE__ */ React78.createElement(
7794
7883
  "div",
7795
7884
  {
7796
7885
  className: clsx28(
@@ -7802,22 +7891,22 @@ var AppLayout = ({
7802
7891
  width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
7803
7892
  }
7804
7893
  },
7805
- DrawerFooterActions && openSideMenu ? /* @__PURE__ */ React76.createElement(React76.Fragment, null, DrawerFooterActions) : null,
7806
- size > 600 && openSideMenu ? /* @__PURE__ */ React76.createElement(
7894
+ DrawerFooterActions && openSideMenu ? /* @__PURE__ */ React78.createElement(React78.Fragment, null, DrawerFooterActions) : null,
7895
+ size > 600 && openSideMenu ? /* @__PURE__ */ React78.createElement(
7807
7896
  Tooltip,
7808
7897
  {
7809
7898
  side: "left",
7810
7899
  delayDuration: 500,
7811
7900
  content: keepOpen ? props.texts?.collapseSidebar || "Collapse Sidebar" : props.texts?.expandSidebar || "Expand Sidebar"
7812
7901
  },
7813
- /* @__PURE__ */ React76.createElement(
7902
+ /* @__PURE__ */ React78.createElement(
7814
7903
  Button,
7815
7904
  {
7816
7905
  variant: "light",
7817
7906
  onClick: () => setKeepOpen(!keepOpen),
7818
7907
  size: "smallIcon"
7819
7908
  },
7820
- /* @__PURE__ */ React76.createElement(
7909
+ /* @__PURE__ */ React78.createElement(
7821
7910
  "svg",
7822
7911
  {
7823
7912
  className: clsx28(
@@ -7827,7 +7916,7 @@ var AppLayout = ({
7827
7916
  fill: "currentColor",
7828
7917
  viewBox: "0 0 20 20"
7829
7918
  },
7830
- /* @__PURE__ */ React76.createElement(
7919
+ /* @__PURE__ */ React78.createElement(
7831
7920
  "path",
7832
7921
  {
7833
7922
  fillRule: "evenodd",
@@ -7839,7 +7928,7 @@ var AppLayout = ({
7839
7928
  )
7840
7929
  ) : null
7841
7930
  )
7842
- ), /* @__PURE__ */ React76.createElement(
7931
+ ), /* @__PURE__ */ React78.createElement(
7843
7932
  "div",
7844
7933
  {
7845
7934
  className: "fixed overflow-y-auto transition-all",
@@ -7870,7 +7959,7 @@ var AppLayout = ({
7870
7959
  };
7871
7960
 
7872
7961
  // src/layout/HawaAppLayout.tsx
7873
- 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";
7874
7963
  import clsx29 from "clsx";
7875
7964
  import { FaChevronRight } from "react-icons/fa";
7876
7965
  var HawaAppLayout = ({
@@ -7879,11 +7968,11 @@ var HawaAppLayout = ({
7879
7968
  onSettingsClick,
7880
7969
  ...props
7881
7970
  }) => {
7882
- const [openSideMenu, setOpenSideMenu] = useState40(false);
7883
- const [openSubItem, setOpenSubitem] = useState40("");
7971
+ const [openSideMenu, setOpenSideMenu] = useState41(false);
7972
+ const [openSubItem, setOpenSubitem] = useState41("");
7884
7973
  const { isOpen, onClose, onOpen } = useDiscloser_default(false);
7885
- const [keepOpen, setKeepOpen] = useState40(false);
7886
- const ref = useRef16(null);
7974
+ const [keepOpen, setKeepOpen] = useState41(false);
7975
+ const ref = useRef17(null);
7887
7976
  const isRTL = direction === "rtl";
7888
7977
  let size;
7889
7978
  if (typeof window !== "undefined") {
@@ -7891,7 +7980,7 @@ var HawaAppLayout = ({
7891
7980
  } else {
7892
7981
  size = 1200;
7893
7982
  }
7894
- useEffect24(() => {
7983
+ useEffect25(() => {
7895
7984
  const handleClickOutside = (event) => {
7896
7985
  if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
7897
7986
  setOpenSideMenu(false);
@@ -7916,7 +8005,7 @@ var HawaAppLayout = ({
7916
8005
  }
7917
8006
  };
7918
8007
  let drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
7919
- 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(
7920
8009
  "div",
7921
8010
  {
7922
8011
  className: clsx29(
@@ -7926,7 +8015,7 @@ var HawaAppLayout = ({
7926
8015
  },
7927
8016
  size > 600 ? props.pageTitle ? (
7928
8017
  // Title of the page
7929
- /* @__PURE__ */ React77.createElement(
8018
+ /* @__PURE__ */ React79.createElement(
7930
8019
  "div",
7931
8020
  {
7932
8021
  className: clsx29(
@@ -7942,19 +8031,19 @@ var HawaAppLayout = ({
7942
8031
  )
7943
8032
  ) : null : (
7944
8033
  // Mobile Drawer Menu Button
7945
- /* @__PURE__ */ React77.createElement(
8034
+ /* @__PURE__ */ React79.createElement(
7946
8035
  "div",
7947
8036
  {
7948
8037
  dir: direction,
7949
8038
  className: "flex items-center justify-center gap-0.5 "
7950
8039
  },
7951
- /* @__PURE__ */ React77.createElement(
8040
+ /* @__PURE__ */ React79.createElement(
7952
8041
  "div",
7953
8042
  {
7954
8043
  onClick: () => setOpenSideMenu(true),
7955
8044
  className: "z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100"
7956
8045
  },
7957
- /* @__PURE__ */ React77.createElement(
8046
+ /* @__PURE__ */ React79.createElement(
7958
8047
  "svg",
7959
8048
  {
7960
8049
  stroke: "currentColor",
@@ -7965,7 +8054,7 @@ var HawaAppLayout = ({
7965
8054
  height: "1.6em",
7966
8055
  width: "1.6em"
7967
8056
  },
7968
- /* @__PURE__ */ React77.createElement(
8057
+ /* @__PURE__ */ React79.createElement(
7969
8058
  "path",
7970
8059
  {
7971
8060
  fillRule: "evenodd",
@@ -7976,10 +8065,10 @@ var HawaAppLayout = ({
7976
8065
  ),
7977
8066
  " "
7978
8067
  ),
7979
- 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)
7980
8069
  )
7981
8070
  ),
7982
- /* @__PURE__ */ React77.createElement(
8071
+ /* @__PURE__ */ React79.createElement(
7983
8072
  "div",
7984
8073
  {
7985
8074
  className: clsx29(
@@ -7987,18 +8076,18 @@ var HawaAppLayout = ({
7987
8076
  isRTL ? "flex-row-reverse" : "flex-row"
7988
8077
  )
7989
8078
  },
7990
- size > 600 ? /* @__PURE__ */ React77.createElement(
8079
+ size > 600 ? /* @__PURE__ */ React79.createElement(
7991
8080
  "div",
7992
8081
  {
7993
8082
  className: clsx29(
7994
8083
  isRTL ? "text-left text-xs" : "text-right text-xs"
7995
8084
  )
7996
8085
  },
7997
- /* @__PURE__ */ React77.createElement("div", { className: "font-bold" }, props.username),
8086
+ /* @__PURE__ */ React79.createElement("div", { className: "font-bold" }, props.username),
7998
8087
  " ",
7999
- /* @__PURE__ */ React77.createElement("div", null, props.email)
8088
+ /* @__PURE__ */ React79.createElement("div", null, props.email)
8000
8089
  ) : null,
8001
- /* @__PURE__ */ React77.createElement(
8090
+ /* @__PURE__ */ React79.createElement(
8002
8091
  HawaMenu,
8003
8092
  {
8004
8093
  direction,
@@ -8008,14 +8097,14 @@ var HawaAppLayout = ({
8008
8097
  menuItems: props.profileMenuItems,
8009
8098
  position: "bottom-left"
8010
8099
  },
8011
- /* @__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(
8012
8101
  "svg",
8013
8102
  {
8014
8103
  className: "absolute -left-1 h-10 w-10 text-gray-400",
8015
8104
  fill: "currentColor",
8016
8105
  viewBox: "0 0 20 20"
8017
8106
  },
8018
- /* @__PURE__ */ React77.createElement(
8107
+ /* @__PURE__ */ React79.createElement(
8019
8108
  "path",
8020
8109
  {
8021
8110
  fillRule: "evenodd",
@@ -8026,7 +8115,7 @@ var HawaAppLayout = ({
8026
8115
  ))
8027
8116
  )
8028
8117
  )
8029
- ), /* @__PURE__ */ React77.createElement(
8118
+ ), /* @__PURE__ */ React79.createElement(
8030
8119
  "div",
8031
8120
  {
8032
8121
  onMouseEnter: () => {
@@ -8043,7 +8132,7 @@ var HawaAppLayout = ({
8043
8132
  width: size > 600 ? openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : `${drawerSizeStyle["closed"][drawerSize]}px` : openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : "0px"
8044
8133
  }
8045
8134
  },
8046
- /* @__PURE__ */ React77.createElement(
8135
+ /* @__PURE__ */ React79.createElement(
8047
8136
  "div",
8048
8137
  {
8049
8138
  className: clsx29(
@@ -8052,7 +8141,7 @@ var HawaAppLayout = ({
8052
8141
  openSideMenu ? "overflow-auto" : "overflow-hidden"
8053
8142
  )
8054
8143
  },
8055
- /* @__PURE__ */ React77.createElement(
8144
+ /* @__PURE__ */ React79.createElement(
8056
8145
  "div",
8057
8146
  {
8058
8147
  dir: direction,
@@ -8064,7 +8153,7 @@ var HawaAppLayout = ({
8064
8153
  width: size > 600 ? `${drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize] - 16}px` : "full"
8065
8154
  }
8066
8155
  },
8067
- /* @__PURE__ */ React77.createElement(
8156
+ /* @__PURE__ */ React79.createElement(
8068
8157
  "img",
8069
8158
  {
8070
8159
  className: clsx29(
@@ -8076,7 +8165,7 @@ var HawaAppLayout = ({
8076
8165
  src: props.logoLink
8077
8166
  }
8078
8167
  ),
8079
- size > 600 ? /* @__PURE__ */ React77.createElement(
8168
+ size > 600 ? /* @__PURE__ */ React79.createElement(
8080
8169
  "img",
8081
8170
  {
8082
8171
  className: clsx29(
@@ -8088,14 +8177,14 @@ var HawaAppLayout = ({
8088
8177
  }
8089
8178
  ) : null
8090
8179
  ),
8091
- /* @__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(
8092
8181
  "div",
8093
8182
  {
8094
8183
  key: dIndex,
8095
8184
  className: clsx29("flex flex-col items-stretch justify-center")
8096
8185
  },
8097
8186
  dSection?.map((dItem, i) => {
8098
- 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(
8099
8188
  "div",
8100
8189
  {
8101
8190
  onClick: () => {
@@ -8115,7 +8204,7 @@ var HawaAppLayout = ({
8115
8204
  isRTL ? "flex-row-reverse pr-3" : ""
8116
8205
  )
8117
8206
  },
8118
- /* @__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(
8119
8208
  "div",
8120
8209
  {
8121
8210
  className: clsx29(
@@ -8125,16 +8214,16 @@ var HawaAppLayout = ({
8125
8214
  },
8126
8215
  dItem.label
8127
8216
  )),
8128
- dItem.subItems && /* @__PURE__ */ React77.createElement(
8217
+ dItem.subItems && /* @__PURE__ */ React79.createElement(
8129
8218
  "div",
8130
8219
  {
8131
8220
  className: clsx29(
8132
8221
  openSubItem && dItem.slug === openSubItem ? "-rotate-90" : "rotate-90"
8133
8222
  )
8134
8223
  },
8135
- /* @__PURE__ */ React77.createElement(FaChevronRight, { fontSize: 11 })
8224
+ /* @__PURE__ */ React79.createElement(FaChevronRight, { fontSize: 11 })
8136
8225
  )
8137
- ), dItem.subItems && /* @__PURE__ */ React77.createElement(
8226
+ ), dItem.subItems && /* @__PURE__ */ React79.createElement(
8138
8227
  "div",
8139
8228
  {
8140
8229
  className: clsx29(
@@ -8146,7 +8235,7 @@ var HawaAppLayout = ({
8146
8235
  height: openSubItem == dItem.slug && openSideMenu ? 6 + 33 * dItem.subItems?.length : 0
8147
8236
  }
8148
8237
  },
8149
- dItem.subItems?.map((subIt, s) => /* @__PURE__ */ React77.createElement(
8238
+ dItem.subItems?.map((subIt, s) => /* @__PURE__ */ React79.createElement(
8150
8239
  "div",
8151
8240
  {
8152
8241
  key: s,
@@ -8160,14 +8249,14 @@ var HawaAppLayout = ({
8160
8249
  subIt.action();
8161
8250
  }
8162
8251
  },
8163
- /* @__PURE__ */ React77.createElement("div", { className: "flex items-center justify-center" }, subIt.icon),
8164
- /* @__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)
8165
8254
  ))
8166
8255
  ));
8167
8256
  }),
8168
- 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 " })
8169
8258
  ))),
8170
- openSideMenu && /* @__PURE__ */ React77.createElement(
8259
+ openSideMenu && /* @__PURE__ */ React79.createElement(
8171
8260
  "div",
8172
8261
  {
8173
8262
  className: clsx29(
@@ -8180,13 +8269,13 @@ var HawaAppLayout = ({
8180
8269
  width: `${drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize] - 16}px`
8181
8270
  }
8182
8271
  },
8183
- onSettingsClick && /* @__PURE__ */ React77.createElement(
8272
+ onSettingsClick && /* @__PURE__ */ React79.createElement(
8184
8273
  "div",
8185
8274
  {
8186
8275
  className: " cursor-pointer rounded p-2 transition-all hover:bg-layoutPrimary-700",
8187
8276
  onClick: () => onSettingsClick()
8188
8277
  },
8189
- /* @__PURE__ */ React77.createElement(
8278
+ /* @__PURE__ */ React79.createElement(
8190
8279
  "svg",
8191
8280
  {
8192
8281
  "aria-label": "Settings Icon",
@@ -8199,11 +8288,11 @@ var HawaAppLayout = ({
8199
8288
  height: "1em",
8200
8289
  width: "1em"
8201
8290
  },
8202
- /* @__PURE__ */ React77.createElement("circle", { cx: "12", cy: "12", r: "3" }),
8203
- /* @__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" })
8204
8293
  )
8205
8294
  ),
8206
- size > 600 ? /* @__PURE__ */ React77.createElement(
8295
+ size > 600 ? /* @__PURE__ */ React79.createElement(
8207
8296
  "div",
8208
8297
  {
8209
8298
  className: clsx29("w-fit transition-all"),
@@ -8213,7 +8302,7 @@ var HawaAppLayout = ({
8213
8302
  left: `${drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize] - 35}px`
8214
8303
  }
8215
8304
  },
8216
- /* @__PURE__ */ React77.createElement(
8305
+ /* @__PURE__ */ React79.createElement(
8217
8306
  "div",
8218
8307
  {
8219
8308
  dir: direction,
@@ -8222,13 +8311,13 @@ var HawaAppLayout = ({
8222
8311
  openSideMenu ? " opacity-100" : " opacity-0"
8223
8312
  )
8224
8313
  },
8225
- /* @__PURE__ */ React77.createElement(
8314
+ /* @__PURE__ */ React79.createElement(
8226
8315
  "div",
8227
8316
  {
8228
8317
  onClick: () => setKeepOpen(!keepOpen),
8229
8318
  className: "w-fit cursor-pointer rounded bg-gray-300 p-2 transition-all hover:bg-gray-400"
8230
8319
  },
8231
- /* @__PURE__ */ React77.createElement(
8320
+ /* @__PURE__ */ React79.createElement(
8232
8321
  FaChevronRight,
8233
8322
  {
8234
8323
  fontSize: 14,
@@ -8243,7 +8332,7 @@ var HawaAppLayout = ({
8243
8332
  ) : null
8244
8333
  )
8245
8334
  )
8246
- ), /* @__PURE__ */ React77.createElement(
8335
+ ), /* @__PURE__ */ React79.createElement(
8247
8336
  "div",
8248
8337
  {
8249
8338
  className: "fixed overflow-y-auto",
@@ -8264,7 +8353,7 @@ var HawaAppLayout = ({
8264
8353
  };
8265
8354
 
8266
8355
  // src/layout/HawaAppLayoutSimplified.tsx
8267
- 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";
8268
8357
  import clsx30 from "clsx";
8269
8358
  var HawaAppLayoutSimplified = ({
8270
8359
  direction = "rtl",
@@ -8273,11 +8362,11 @@ var HawaAppLayoutSimplified = ({
8273
8362
  DrawerFooterActions,
8274
8363
  ...props
8275
8364
  }) => {
8276
- const [openSideMenu, setOpenSideMenu] = useState41(false);
8277
- const [openSubItem, setOpenSubitem] = useState41("");
8365
+ const [openSideMenu, setOpenSideMenu] = useState42(false);
8366
+ const [openSubItem, setOpenSubitem] = useState42("");
8278
8367
  const { isOpen, onClose, onOpen } = useDiscloser_default(false);
8279
- const [keepOpen, setKeepOpen] = useState41(false);
8280
- const ref = useRef17(null);
8368
+ const [keepOpen, setKeepOpen] = useState42(false);
8369
+ const ref = useRef18(null);
8281
8370
  const isRTL = direction === "rtl";
8282
8371
  let size;
8283
8372
  if (typeof window !== "undefined") {
@@ -8285,7 +8374,7 @@ var HawaAppLayoutSimplified = ({
8285
8374
  } else {
8286
8375
  size = 1200;
8287
8376
  }
8288
- useEffect25(() => {
8377
+ useEffect26(() => {
8289
8378
  const handleClickOutside = (event) => {
8290
8379
  if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
8291
8380
  setOpenSideMenu(false);
@@ -8312,7 +8401,7 @@ var HawaAppLayoutSimplified = ({
8312
8401
  }
8313
8402
  };
8314
8403
  let drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
8315
- 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(
8316
8405
  "div",
8317
8406
  {
8318
8407
  className: clsx30(
@@ -8320,7 +8409,7 @@ var HawaAppLayoutSimplified = ({
8320
8409
  isRTL ? "flex-row-reverse" : "flex-row"
8321
8410
  )
8322
8411
  },
8323
- size > 600 ? /* @__PURE__ */ React78.createElement(
8412
+ size > 600 ? /* @__PURE__ */ React80.createElement(
8324
8413
  "div",
8325
8414
  {
8326
8415
  className: clsx30(
@@ -8336,19 +8425,19 @@ var HawaAppLayoutSimplified = ({
8336
8425
  props.pageTitle
8337
8426
  ) : (
8338
8427
  // Mobile Drawer Menu Button
8339
- /* @__PURE__ */ React78.createElement(
8428
+ /* @__PURE__ */ React80.createElement(
8340
8429
  "div",
8341
8430
  {
8342
8431
  dir: direction,
8343
8432
  className: "flex items-center justify-center gap-0.5"
8344
8433
  },
8345
- /* @__PURE__ */ React78.createElement(
8434
+ /* @__PURE__ */ React80.createElement(
8346
8435
  "div",
8347
8436
  {
8348
8437
  onClick: () => setOpenSideMenu(true),
8349
8438
  className: "z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100"
8350
8439
  },
8351
- /* @__PURE__ */ React78.createElement(
8440
+ /* @__PURE__ */ React80.createElement(
8352
8441
  "svg",
8353
8442
  {
8354
8443
  stroke: "currentColor",
@@ -8359,7 +8448,7 @@ var HawaAppLayoutSimplified = ({
8359
8448
  height: "1.6em",
8360
8449
  width: "1.6em"
8361
8450
  },
8362
- /* @__PURE__ */ React78.createElement(
8451
+ /* @__PURE__ */ React80.createElement(
8363
8452
  "path",
8364
8453
  {
8365
8454
  fillRule: "evenodd",
@@ -8369,10 +8458,10 @@ var HawaAppLayoutSimplified = ({
8369
8458
  )
8370
8459
  )
8371
8460
  ),
8372
- 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)
8373
8462
  )
8374
8463
  ),
8375
- /* @__PURE__ */ React78.createElement(
8464
+ /* @__PURE__ */ React80.createElement(
8376
8465
  "div",
8377
8466
  {
8378
8467
  className: clsx30(
@@ -8380,16 +8469,16 @@ var HawaAppLayoutSimplified = ({
8380
8469
  isRTL ? "flex-row-reverse" : "flex-row"
8381
8470
  )
8382
8471
  },
8383
- size > 600 ? /* @__PURE__ */ React78.createElement(
8472
+ size > 600 ? /* @__PURE__ */ React80.createElement(
8384
8473
  "div",
8385
8474
  {
8386
8475
  className: isRTL ? "text-left text-xs" : "text-right text-xs"
8387
8476
  },
8388
- /* @__PURE__ */ React78.createElement("div", { className: "font-bold" }, props.username),
8477
+ /* @__PURE__ */ React80.createElement("div", { className: "font-bold" }, props.username),
8389
8478
  " ",
8390
- /* @__PURE__ */ React78.createElement("div", null, props.email)
8479
+ /* @__PURE__ */ React80.createElement("div", null, props.email)
8391
8480
  ) : null,
8392
- /* @__PURE__ */ React78.createElement(
8481
+ /* @__PURE__ */ React80.createElement(
8393
8482
  DropdownMenu,
8394
8483
  {
8395
8484
  triggerClassname: "mx-2",
@@ -8398,13 +8487,13 @@ var HawaAppLayoutSimplified = ({
8398
8487
  side: "bottom",
8399
8488
  sideOffset: 5,
8400
8489
  direction: isRTL ? "rtl" : "ltr",
8401
- 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)),
8402
8491
  items: props.profileMenuItems,
8403
8492
  onItemSelect: (e) => console.log("selecting item ", e)
8404
8493
  }
8405
8494
  )
8406
8495
  )
8407
- ), /* @__PURE__ */ React78.createElement(
8496
+ ), /* @__PURE__ */ React80.createElement(
8408
8497
  "div",
8409
8498
  {
8410
8499
  className: clsx30(
@@ -8420,7 +8509,7 @@ var HawaAppLayoutSimplified = ({
8420
8509
  onMouseLeave: () => keepOpen ? setOpenSideMenu(true) : setOpenSideMenu(false),
8421
8510
  ref
8422
8511
  },
8423
- /* @__PURE__ */ React78.createElement(
8512
+ /* @__PURE__ */ React80.createElement(
8424
8513
  "div",
8425
8514
  {
8426
8515
  dir: direction,
@@ -8431,7 +8520,7 @@ var HawaAppLayoutSimplified = ({
8431
8520
  width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
8432
8521
  }
8433
8522
  },
8434
- /* @__PURE__ */ React78.createElement(
8523
+ /* @__PURE__ */ React80.createElement(
8435
8524
  "img",
8436
8525
  {
8437
8526
  className: clsx30(
@@ -8443,7 +8532,7 @@ var HawaAppLayoutSimplified = ({
8443
8532
  src: props.logoLink
8444
8533
  }
8445
8534
  ),
8446
- size > 600 ? /* @__PURE__ */ React78.createElement(
8535
+ size > 600 ? /* @__PURE__ */ React80.createElement(
8447
8536
  "img",
8448
8537
  {
8449
8538
  className: clsx30(
@@ -8455,7 +8544,7 @@ var HawaAppLayoutSimplified = ({
8455
8544
  }
8456
8545
  ) : null
8457
8546
  ),
8458
- /* @__PURE__ */ React78.createElement(
8547
+ /* @__PURE__ */ React80.createElement(
8459
8548
  "div",
8460
8549
  {
8461
8550
  className: clsx30(
@@ -8469,7 +8558,7 @@ var HawaAppLayoutSimplified = ({
8469
8558
  width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
8470
8559
  }
8471
8560
  },
8472
- props.drawerItems?.map((dSection, dIndex) => /* @__PURE__ */ React78.createElement(
8561
+ props.drawerItems?.map((dSection, dIndex) => /* @__PURE__ */ React80.createElement(
8473
8562
  "div",
8474
8563
  {
8475
8564
  key: dIndex,
@@ -8478,7 +8567,7 @@ var HawaAppLayoutSimplified = ({
8478
8567
  )
8479
8568
  },
8480
8569
  dSection?.map((dItem, i) => {
8481
- 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(
8482
8571
  "div",
8483
8572
  {
8484
8573
  onClick: () => {
@@ -8499,7 +8588,7 @@ var HawaAppLayoutSimplified = ({
8499
8588
  openSideMenu ? "m-2" : "m-2"
8500
8589
  )
8501
8590
  },
8502
- /* @__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(
8503
8592
  "div",
8504
8593
  {
8505
8594
  className: clsx30(
@@ -8509,13 +8598,13 @@ var HawaAppLayoutSimplified = ({
8509
8598
  },
8510
8599
  dItem.label
8511
8600
  )),
8512
- dItem.subItems && /* @__PURE__ */ React78.createElement(
8601
+ dItem.subItems && /* @__PURE__ */ React80.createElement(
8513
8602
  ArrowIcon,
8514
8603
  {
8515
8604
  pointing: openSubItem && dItem.slug === openSubItem ? "up" : "down"
8516
8605
  }
8517
8606
  )
8518
- ), dItem.subItems && /* @__PURE__ */ React78.createElement(
8607
+ ), dItem.subItems && /* @__PURE__ */ React80.createElement(
8519
8608
  "div",
8520
8609
  {
8521
8610
  className: clsx30(
@@ -8527,7 +8616,7 @@ var HawaAppLayoutSimplified = ({
8527
8616
  height: openSubItem == dItem.slug && openSideMenu ? 6 + 35 * dItem.subItems?.length : 0
8528
8617
  }
8529
8618
  },
8530
- dItem.subItems?.map((subIt, s) => /* @__PURE__ */ React78.createElement(
8619
+ dItem.subItems?.map((subIt, s) => /* @__PURE__ */ React80.createElement(
8531
8620
  "div",
8532
8621
  {
8533
8622
  key: s,
@@ -8541,15 +8630,15 @@ var HawaAppLayoutSimplified = ({
8541
8630
  subIt.action();
8542
8631
  }
8543
8632
  },
8544
- /* @__PURE__ */ React78.createElement("div", { className: "flex items-center justify-center" }, subIt.icon),
8545
- /* @__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)
8546
8635
  ))
8547
8636
  ));
8548
8637
  }),
8549
- 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 " })
8550
8639
  ))
8551
8640
  ),
8552
- /* @__PURE__ */ React78.createElement(
8641
+ /* @__PURE__ */ React80.createElement(
8553
8642
  "div",
8554
8643
  {
8555
8644
  className: clsx30(
@@ -8560,22 +8649,22 @@ var HawaAppLayoutSimplified = ({
8560
8649
  width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
8561
8650
  }
8562
8651
  },
8563
- DrawerFooterActions && openSideMenu ? /* @__PURE__ */ React78.createElement(React78.Fragment, null, DrawerFooterActions) : null,
8564
- size > 600 && openSideMenu ? /* @__PURE__ */ React78.createElement(
8652
+ DrawerFooterActions && openSideMenu ? /* @__PURE__ */ React80.createElement(React80.Fragment, null, DrawerFooterActions) : null,
8653
+ size > 600 && openSideMenu ? /* @__PURE__ */ React80.createElement(
8565
8654
  Tooltip,
8566
8655
  {
8567
8656
  side: "left",
8568
8657
  delayDuration: 500,
8569
8658
  content: keepOpen ? props.texts?.collapseSidebar || "Collapse Sidebar" : props.texts?.expandSidebar || "Expand Sidebar"
8570
8659
  },
8571
- /* @__PURE__ */ React78.createElement(
8660
+ /* @__PURE__ */ React80.createElement(
8572
8661
  Button,
8573
8662
  {
8574
8663
  variant: "light",
8575
8664
  onClick: () => setKeepOpen(!keepOpen),
8576
8665
  size: "smallIcon"
8577
8666
  },
8578
- /* @__PURE__ */ React78.createElement(
8667
+ /* @__PURE__ */ React80.createElement(
8579
8668
  "svg",
8580
8669
  {
8581
8670
  className: clsx30(
@@ -8585,7 +8674,7 @@ var HawaAppLayoutSimplified = ({
8585
8674
  fill: "currentColor",
8586
8675
  viewBox: "0 0 20 20"
8587
8676
  },
8588
- /* @__PURE__ */ React78.createElement(
8677
+ /* @__PURE__ */ React80.createElement(
8589
8678
  "path",
8590
8679
  {
8591
8680
  fillRule: "evenodd",
@@ -8597,7 +8686,7 @@ var HawaAppLayoutSimplified = ({
8597
8686
  )
8598
8687
  ) : null
8599
8688
  )
8600
- ), /* @__PURE__ */ React78.createElement(
8689
+ ), /* @__PURE__ */ React80.createElement(
8601
8690
  "div",
8602
8691
  {
8603
8692
  className: "fixed overflow-y-auto",
@@ -8616,14 +8705,14 @@ var HawaAppLayoutSimplified = ({
8616
8705
  props.children
8617
8706
  ));
8618
8707
  };
8619
- var AvatarIcon = () => /* @__PURE__ */ React78.createElement(
8708
+ var AvatarIcon = () => /* @__PURE__ */ React80.createElement(
8620
8709
  "svg",
8621
8710
  {
8622
8711
  className: "absolute -left-1 h-10 w-10 text-gray-400",
8623
8712
  fill: "currentColor",
8624
8713
  viewBox: "0 0 20 20"
8625
8714
  },
8626
- /* @__PURE__ */ React78.createElement(
8715
+ /* @__PURE__ */ React80.createElement(
8627
8716
  "path",
8628
8717
  {
8629
8718
  fillRule: "evenodd",
@@ -8650,7 +8739,7 @@ var ArrowIcon = ({ pointing }) => {
8650
8739
  default:
8651
8740
  break;
8652
8741
  }
8653
- return /* @__PURE__ */ React78.createElement(
8742
+ return /* @__PURE__ */ React80.createElement(
8654
8743
  "svg",
8655
8744
  {
8656
8745
  className: clsx30(
@@ -8660,7 +8749,7 @@ var ArrowIcon = ({ pointing }) => {
8660
8749
  fill: "currentColor",
8661
8750
  viewBox: "0 0 20 20"
8662
8751
  },
8663
- /* @__PURE__ */ React78.createElement(
8752
+ /* @__PURE__ */ React80.createElement(
8664
8753
  "path",
8665
8754
  {
8666
8755
  fillRule: "evenodd",
@@ -8672,7 +8761,7 @@ var ArrowIcon = ({ pointing }) => {
8672
8761
  };
8673
8762
 
8674
8763
  // src/layout/HawaContainer.tsx
8675
- import React79 from "react";
8764
+ import React81 from "react";
8676
8765
  import clsx31 from "clsx";
8677
8766
  var HawaContainer = ({
8678
8767
  maxWidth = "normal",
@@ -8692,7 +8781,7 @@ var HawaContainer = ({
8692
8781
  outlined: "bg-transparent border border-black w-fit",
8693
8782
  neobrutalism: "shadow-neobrutalism border-4 border-black bg-white"
8694
8783
  };
8695
- return /* @__PURE__ */ React79.createElement(
8784
+ return /* @__PURE__ */ React81.createElement(
8696
8785
  "div",
8697
8786
  {
8698
8787
  className: clsx31(
@@ -8708,28 +8797,28 @@ var HawaContainer = ({
8708
8797
  };
8709
8798
 
8710
8799
  // src/layout/HawaGrid.tsx
8711
- import React80 from "react";
8800
+ import React82 from "react";
8712
8801
  var HawaGrid = (props) => {
8713
8802
  return (
8714
8803
  // [&>*:not(:first-child)]:mt-8
8715
- /* @__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)
8716
8805
  );
8717
8806
  };
8718
8807
 
8719
8808
  // src/layout/AppSidebar.tsx
8720
- import React81 from "react";
8809
+ import React83 from "react";
8721
8810
  var AppSidebar = ({ isOpen, onClose, items }) => {
8722
8811
  if (!isOpen) {
8723
8812
  return null;
8724
8813
  }
8725
- 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(
8726
8815
  "button",
8727
8816
  {
8728
8817
  onClick: onClose,
8729
8818
  className: "p-4 text-gray-400 hover:text-white focus:text-white focus:outline-none"
8730
8819
  },
8731
8820
  "Close"
8732
- ), /* @__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(
8733
8822
  "a",
8734
8823
  {
8735
8824
  key: i,
@@ -8738,7 +8827,7 @@ var AppSidebar = ({ isOpen, onClose, items }) => {
8738
8827
  className: "block p-4 font-bold text-white hover:bg-gray-700 hover:text-gray-400"
8739
8828
  },
8740
8829
  item.label
8741
- )))), /* @__PURE__ */ React81.createElement("div", { className: "w-2/3 bg-gray-50" }));
8830
+ )))), /* @__PURE__ */ React83.createElement("div", { className: "w-2/3 bg-gray-50" }));
8742
8831
  };
8743
8832
 
8744
8833
  // src/layout/Footer.tsx
@@ -8775,19 +8864,19 @@ var Footer = ({
8775
8864
  };
8776
8865
 
8777
8866
  // src/layout/Banner.tsx
8778
- import React82, { useRef as useRef18, useState as useState42 } from "react";
8867
+ import React84, { useRef as useRef19, useState as useState43 } from "react";
8779
8868
  import clsx32 from "clsx";
8780
8869
  var HawaBanner = ({
8781
8870
  design = "floating",
8782
8871
  ...props
8783
8872
  }) => {
8784
- const bannerRef = useRef18(null);
8785
- const [closed, setClosed] = useState42(false);
8873
+ const bannerRef = useRef19(null);
8874
+ const [closed, setClosed] = useState43(false);
8786
8875
  let bannerStyle = {
8787
8876
  floating: "left-1/2 z-50 w-[calc(100%-2rem)] -translate-x-1/2 lg:max-w-7xl p-4 rounded",
8788
8877
  default: "w-[calc(100%)] left-0 z-50 right-0 rounded-none p-2"
8789
8878
  };
8790
- return /* @__PURE__ */ React82.createElement("div", { ref: bannerRef }, /* @__PURE__ */ React82.createElement(
8879
+ return /* @__PURE__ */ React84.createElement("div", { ref: bannerRef }, /* @__PURE__ */ React84.createElement(
8791
8880
  "div",
8792
8881
  {
8793
8882
  dir: props.direction,
@@ -8798,7 +8887,7 @@ var HawaBanner = ({
8798
8887
  closed ? "opacity-0" : "opacity-100"
8799
8888
  )
8800
8889
  },
8801
- /* @__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(
8802
8891
  "div",
8803
8892
  {
8804
8893
  className: clsx32(
@@ -8806,7 +8895,7 @@ var HawaBanner = ({
8806
8895
  "mb-2 flex items-center border-gray-200 dark:border-gray-600 md:mb-0 md:mr-4 md:pr-4"
8807
8896
  )
8808
8897
  },
8809
- props.logoURL && /* @__PURE__ */ React82.createElement(
8898
+ props.logoURL && /* @__PURE__ */ React84.createElement(
8810
8899
  "img",
8811
8900
  {
8812
8901
  src: props.logoURL,
@@ -8814,8 +8903,8 @@ var HawaBanner = ({
8814
8903
  alt: "Flowbite Logo"
8815
8904
  }
8816
8905
  ),
8817
- props.title && /* @__PURE__ */ React82.createElement("span", { className: "self-center whitespace-nowrap text-lg font-semibold dark:text-white" }, props.title)
8818
- ), 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(
8819
8908
  "p",
8820
8909
  {
8821
8910
  className: clsx32(
@@ -8825,7 +8914,7 @@ var HawaBanner = ({
8825
8914
  },
8826
8915
  props.text
8827
8916
  )),
8828
- props.actionText && /* @__PURE__ */ React82.createElement(
8917
+ props.actionText && /* @__PURE__ */ React84.createElement(
8829
8918
  "div",
8830
8919
  {
8831
8920
  className: clsx32(
@@ -8833,9 +8922,9 @@ var HawaBanner = ({
8833
8922
  props.direction === "rtl" ? "ml-0 md:ml-10" : "mr-0 md:mr-10"
8834
8923
  )
8835
8924
  },
8836
- /* @__PURE__ */ React82.createElement(HawaButton, { onClick: props.onActionClick }, props.actionText)
8925
+ /* @__PURE__ */ React84.createElement(HawaButton, { onClick: props.onActionClick }, props.actionText)
8837
8926
  ),
8838
- /* @__PURE__ */ React82.createElement(
8927
+ /* @__PURE__ */ React84.createElement(
8839
8928
  "button",
8840
8929
  {
8841
8930
  type: "button",
@@ -8852,8 +8941,8 @@ var HawaBanner = ({
8852
8941
  }, 200);
8853
8942
  }
8854
8943
  },
8855
- /* @__PURE__ */ React82.createElement("span", { className: "sr-only" }, "Close"),
8856
- /* @__PURE__ */ React82.createElement(
8944
+ /* @__PURE__ */ React84.createElement("span", { className: "sr-only" }, "Close"),
8945
+ /* @__PURE__ */ React84.createElement(
8857
8946
  "svg",
8858
8947
  {
8859
8948
  "aria-hidden": "true",
@@ -8861,7 +8950,7 @@ var HawaBanner = ({
8861
8950
  fill: "currentColor",
8862
8951
  viewBox: "0 0 20 20"
8863
8952
  },
8864
- /* @__PURE__ */ React82.createElement(
8953
+ /* @__PURE__ */ React84.createElement(
8865
8954
  "path",
8866
8955
  {
8867
8956
  fillRule: "evenodd",
@@ -8875,7 +8964,7 @@ var HawaBanner = ({
8875
8964
  };
8876
8965
 
8877
8966
  // src/blocks/Account/UserProfileForm.tsx
8878
- import React83 from "react";
8967
+ import React85 from "react";
8879
8968
  import { Controller, FormProvider, useForm } from "react-hook-form";
8880
8969
  var UserProfileForm = (props) => {
8881
8970
  const methods = useForm();
@@ -8885,12 +8974,12 @@ var UserProfileForm = (props) => {
8885
8974
  handleSubmit,
8886
8975
  control
8887
8976
  } = methods;
8888
- 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(
8889
8978
  Controller,
8890
8979
  {
8891
8980
  control,
8892
8981
  name: "fullName",
8893
- render: ({ field }) => /* @__PURE__ */ React83.createElement(
8982
+ render: ({ field }) => /* @__PURE__ */ React85.createElement(
8894
8983
  HawaTextField,
8895
8984
  {
8896
8985
  width: "full",
@@ -8903,19 +8992,19 @@ var UserProfileForm = (props) => {
8903
8992
  }
8904
8993
  )
8905
8994
  }
8906
- ), /* @__PURE__ */ React83.createElement(
8995
+ ), /* @__PURE__ */ React85.createElement(
8907
8996
  Controller,
8908
8997
  {
8909
8998
  control,
8910
8999
  name: "phoneNumber",
8911
- render: ({ field }) => /* @__PURE__ */ React83.createElement(HawaPhoneInput, { label: "Phone number" })
9000
+ render: ({ field }) => /* @__PURE__ */ React85.createElement(HawaPhoneInput, { label: "Phone number" })
8912
9001
  }
8913
- ), /* @__PURE__ */ React83.createElement(
9002
+ ), /* @__PURE__ */ React85.createElement(
8914
9003
  Controller,
8915
9004
  {
8916
9005
  control,
8917
9006
  name: "email",
8918
- render: ({ field }) => /* @__PURE__ */ React83.createElement(
9007
+ render: ({ field }) => /* @__PURE__ */ React85.createElement(
8919
9008
  HawaTextField,
8920
9009
  {
8921
9010
  width: "full",
@@ -8935,12 +9024,12 @@ var UserProfileForm = (props) => {
8935
9024
  }
8936
9025
  }
8937
9026
  }
8938
- ), /* @__PURE__ */ React83.createElement(
9027
+ ), /* @__PURE__ */ React85.createElement(
8939
9028
  Controller,
8940
9029
  {
8941
9030
  control,
8942
9031
  name: "password",
8943
- render: ({ field }) => /* @__PURE__ */ React83.createElement(
9032
+ render: ({ field }) => /* @__PURE__ */ React85.createElement(
8944
9033
  HawaTextField,
8945
9034
  {
8946
9035
  width: "full",
@@ -8956,12 +9045,12 @@ var UserProfileForm = (props) => {
8956
9045
  required: props.texts.passwordRequiredText
8957
9046
  }
8958
9047
  }
8959
- ), /* @__PURE__ */ React83.createElement(
9048
+ ), /* @__PURE__ */ React85.createElement(
8960
9049
  Controller,
8961
9050
  {
8962
9051
  control,
8963
9052
  name: "confirmPassword",
8964
- render: ({ field }) => /* @__PURE__ */ React83.createElement(
9053
+ render: ({ field }) => /* @__PURE__ */ React85.createElement(
8965
9054
  HawaTextField,
8966
9055
  {
8967
9056
  width: "full",
@@ -8977,17 +9066,17 @@ var UserProfileForm = (props) => {
8977
9066
  required: props.texts.confirmPasswordRequiredText
8978
9067
  }
8979
9068
  }
8980
- ))), /* @__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))));
8981
9070
  };
8982
9071
 
8983
9072
  // src/blocks/Account/UserSettingsForm.tsx
8984
- import React84 from "react";
9073
+ import React86 from "react";
8985
9074
  var UserSettingsForm = (props) => {
8986
- 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)));
8987
9076
  };
8988
9077
 
8989
9078
  // src/blocks/AuthForms/AppLanding.tsx
8990
- import React85 from "react";
9079
+ import React87 from "react";
8991
9080
 
8992
9081
  // src/elements/Icons.tsx
8993
9082
  var Icons = {
@@ -9035,6 +9124,28 @@ var Icons = {
9035
9124
  /* @__PURE__ */ React.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" }),
9036
9125
  /* @__PURE__ */ React.createElement("polyline", { points: "22,6 12,13 2,6" })
9037
9126
  ),
9127
+ phone: (props) => /* @__PURE__ */ React.createElement(
9128
+ "svg",
9129
+ {
9130
+ stroke: "currentColor",
9131
+ fill: "none",
9132
+ "stroke-width": "2",
9133
+ viewBox: "0 0 24 24",
9134
+ "aria-hidden": "true",
9135
+ height: "1em",
9136
+ width: "1em",
9137
+ xmlns: "http://www.w3.org/2000/svg",
9138
+ ...props
9139
+ },
9140
+ /* @__PURE__ */ React.createElement(
9141
+ "path",
9142
+ {
9143
+ "stroke-linecap": "round",
9144
+ "stroke-linejoin": "round",
9145
+ d: "M10.5 1.5H8.25A2.25 2.25 0 006 3.75v16.5a2.25 2.25 0 002.25 2.25h7.5A2.25 2.25 0 0018 20.25V3.75a2.25 2.25 0 00-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"
9146
+ }
9147
+ )
9148
+ ),
9038
9149
  twitter: (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement(
9039
9150
  "path",
9040
9151
  {
@@ -9042,6 +9153,7 @@ var Icons = {
9042
9153
  d: "M21.543 7.104c.015.211.015.423.015.636 0 6.507-4.954 14.01-14.01 14.01v-.003A13.94 13.94 0 0 1 0 19.539a9.88 9.88 0 0 0 7.287-2.041 4.93 4.93 0 0 1-4.6-3.42 4.916 4.916 0 0 0 2.223-.084A4.926 4.926 0 0 1 .96 9.167v-.062a4.887 4.887 0 0 0 2.235.616A4.928 4.928 0 0 1 1.67 3.148a13.98 13.98 0 0 0 10.15 5.144 4.929 4.929 0 0 1 8.39-4.49 9.868 9.868 0 0 0 3.128-1.196 4.941 4.941 0 0 1-2.165 2.724A9.828 9.828 0 0 0 24 4.555a10.019 10.019 0 0 1-2.457 2.549z"
9043
9154
  }
9044
9155
  )),
9156
+ microsoft: (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z" })),
9045
9157
  gitHub: (props) => /* @__PURE__ */ React.createElement("svg", { viewBox: "0 0 438.549 438.549", ...props }, /* @__PURE__ */ React.createElement(
9046
9158
  "path",
9047
9159
  {
@@ -9139,46 +9251,77 @@ var Icons = {
9139
9251
 
9140
9252
  // src/blocks/AuthForms/AppLanding.tsx
9141
9253
  var AppLanding = (props) => {
9142
- return /* @__PURE__ */ React85.createElement("div", null, /* @__PURE__ */ React85.createElement(Card, null, /* @__PURE__ */ React85.createElement(CardContent, { headless: true, className: "flex flex-col gap-6" }, /* @__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(
9143
9255
  Button,
9144
9256
  {
9145
9257
  className: "flex flex-row items-center gap-2",
9146
- variant: "outline"
9258
+ variant: "outline",
9259
+ onClick: props.handleGoogle
9147
9260
  },
9148
- /* @__PURE__ */ React85.createElement(Icons.google, { className: "h-4 w-4" }),
9149
- "Continue With Google"
9150
- ), /* @__PURE__ */ React85.createElement(
9261
+ /* @__PURE__ */ React87.createElement(Icons.google, { className: "h-4 w-4" }),
9262
+ props.texts?.continueWithGoogle ?? "Continue With Google"
9263
+ ), props.viaGithub && /* @__PURE__ */ React87.createElement(
9151
9264
  Button,
9152
9265
  {
9153
9266
  className: "flex flex-row items-center gap-2",
9154
- variant: "outline"
9267
+ variant: "outline",
9268
+ onClick: props.handleGithub
9155
9269
  },
9156
- /* @__PURE__ */ React85.createElement(Icons.twitter, { className: "h-4 w-4" }),
9157
- "Continue With Twitter"
9158
- ), /* @__PURE__ */ React85.createElement(
9270
+ /* @__PURE__ */ React87.createElement(Icons.gitHub, { className: "h-4 w-4" }),
9271
+ props.texts?.continueWithGithub ?? "Continue With Github"
9272
+ ), props.viaTwitter && /* @__PURE__ */ React87.createElement(
9159
9273
  Button,
9160
9274
  {
9161
9275
  className: "flex flex-row items-center gap-2",
9162
- variant: "outline"
9276
+ variant: "outline",
9277
+ onClick: props.handleTwitter
9163
9278
  },
9164
- /* @__PURE__ */ React85.createElement(Icons.apple, { className: "h-4 w-4" }),
9165
- "Continue With Apple"
9166
- ), /* @__PURE__ */ React85.createElement(
9279
+ /* @__PURE__ */ React87.createElement(Icons.twitter, { className: "h-4 w-4" }),
9280
+ props.texts?.continueWithTwitter ?? "Continue With Twitter"
9281
+ ), props.viaApple && /* @__PURE__ */ React87.createElement(
9167
9282
  Button,
9168
9283
  {
9169
9284
  className: "flex flex-row items-center gap-2",
9170
- variant: "outline"
9285
+ variant: "outline",
9286
+ onClick: props.handleApple
9287
+ },
9288
+ /* @__PURE__ */ React87.createElement(Icons.apple, { className: "h-4 w-4" }),
9289
+ props.texts?.continueWithApple ?? "Continue With Apple"
9290
+ ), props.viaMicrosoft && /* @__PURE__ */ React87.createElement(
9291
+ Button,
9292
+ {
9293
+ className: "flex flex-row items-center gap-2",
9294
+ variant: "outline",
9295
+ onClick: props.handleMicrosoft
9296
+ },
9297
+ /* @__PURE__ */ React87.createElement(Icons.microsoft, { className: "h-4 w-4" }),
9298
+ props.texts?.continueWithMicrosoft ?? "Continue With Microsoft"
9299
+ ), props.viaEmail && /* @__PURE__ */ React87.createElement(
9300
+ Button,
9301
+ {
9302
+ className: "flex flex-row items-center gap-2",
9303
+ variant: "outline",
9304
+ onClick: props.handleEmail
9305
+ },
9306
+ /* @__PURE__ */ React87.createElement(Icons.mail, { className: "h-4 w-4" }),
9307
+ props.texts?.continueWithEmail ?? "Continue With Email"
9308
+ ), props.viaPhone && /* @__PURE__ */ React87.createElement(
9309
+ Button,
9310
+ {
9311
+ className: "flex flex-row items-center gap-2",
9312
+ variant: "outline",
9313
+ onClick: props.handlePhone
9171
9314
  },
9172
- /* @__PURE__ */ React85.createElement(Icons.mail, { className: "h-4 w-4" }),
9173
- "Continue With Email"
9174
- ), !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(
9315
+ /* @__PURE__ */ React87.createElement(Icons.phone, { className: "h-4 w-4" }),
9316
+ props.texts?.continueWithPhone ?? "Continue With Phone"
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(
9175
9318
  "span",
9176
9319
  {
9177
9320
  onClick: props.handleRouteToSignUp,
9178
9321
  className: "clickable-link"
9179
9322
  },
9180
9323
  props.texts.createAccount
9181
- )))), /* @__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(
9182
9325
  HawaRadio,
9183
9326
  {
9184
9327
  onChangeTab: props.handleLanguage,
@@ -9188,7 +9331,7 @@ var AppLanding = (props) => {
9188
9331
  { value: "en", label: "English" }
9189
9332
  ]
9190
9333
  }
9191
- ), /* @__PURE__ */ React85.createElement(
9334
+ ), /* @__PURE__ */ React87.createElement(
9192
9335
  HawaRadio,
9193
9336
  {
9194
9337
  onChangeTab: props.handleColorMode,
@@ -9196,7 +9339,7 @@ var AppLanding = (props) => {
9196
9339
  options: [
9197
9340
  {
9198
9341
  value: "light",
9199
- label: /* @__PURE__ */ React85.createElement(
9342
+ label: /* @__PURE__ */ React87.createElement(
9200
9343
  "svg",
9201
9344
  {
9202
9345
  width: "15",
@@ -9206,7 +9349,7 @@ var AppLanding = (props) => {
9206
9349
  xmlns: "http://www.w3.org/2000/svg",
9207
9350
  className: "h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90"
9208
9351
  },
9209
- /* @__PURE__ */ React85.createElement(
9352
+ /* @__PURE__ */ React87.createElement(
9210
9353
  "path",
9211
9354
  {
9212
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",
@@ -9219,7 +9362,7 @@ var AppLanding = (props) => {
9219
9362
  },
9220
9363
  {
9221
9364
  value: "dark",
9222
- label: /* @__PURE__ */ React85.createElement(
9365
+ label: /* @__PURE__ */ React87.createElement(
9223
9366
  "svg",
9224
9367
  {
9225
9368
  xmlns: "http://www.w3.org/2000/svg",
@@ -9233,7 +9376,7 @@ var AppLanding = (props) => {
9233
9376
  strokeLinejoin: "round",
9234
9377
  className: "h-[1.2rem] w-[1.2rem] transition-all dark:rotate-0 dark:scale-100"
9235
9378
  },
9236
- /* @__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" })
9237
9380
  )
9238
9381
  }
9239
9382
  ]
@@ -9242,7 +9385,7 @@ var AppLanding = (props) => {
9242
9385
  };
9243
9386
 
9244
9387
  // src/blocks/AuthForms/SignInPhone.tsx
9245
- import React86, { useState as useState43 } from "react";
9388
+ import React88, { useState as useState44 } from "react";
9246
9389
  import { Controller as Controller2, useForm as useForm2 } from "react-hook-form";
9247
9390
  var SignInPhone = (props) => {
9248
9391
  const methods = useForm2();
@@ -9251,8 +9394,8 @@ var SignInPhone = (props) => {
9251
9394
  handleSubmit,
9252
9395
  control
9253
9396
  } = methods;
9254
- const [userPhone, setUserPhone] = useState43("");
9255
- 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(
9256
9399
  "form",
9257
9400
  {
9258
9401
  onSubmit: (e) => {
@@ -9260,12 +9403,12 @@ var SignInPhone = (props) => {
9260
9403
  props.handleSignIn(userPhone);
9261
9404
  }
9262
9405
  },
9263
- /* @__PURE__ */ React86.createElement(
9406
+ /* @__PURE__ */ React88.createElement(
9264
9407
  Controller2,
9265
9408
  {
9266
9409
  control,
9267
9410
  name: "phone",
9268
- render: ({ field }) => /* @__PURE__ */ React86.createElement(
9411
+ render: ({ field }) => /* @__PURE__ */ React88.createElement(
9269
9412
  HawaPhoneInput,
9270
9413
  {
9271
9414
  country: props.country ?? "",
@@ -9279,13 +9422,13 @@ var SignInPhone = (props) => {
9279
9422
  }
9280
9423
  }
9281
9424
  ),
9282
- /* @__PURE__ */ React86.createElement("div", { className: "mt-2" }),
9283
- /* @__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)
9284
9427
  )));
9285
9428
  };
9286
9429
 
9287
9430
  // src/blocks/AuthForms/SignInForm.tsx
9288
- import React87 from "react";
9431
+ import React89 from "react";
9289
9432
  import { Controller as Controller3, useForm as useForm3 } from "react-hook-form";
9290
9433
  var SignInForm = (props) => {
9291
9434
  const {
@@ -9293,19 +9436,19 @@ var SignInForm = (props) => {
9293
9436
  handleSubmit,
9294
9437
  control
9295
9438
  } = useForm3();
9296
- 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(
9297
9440
  HawaAlert,
9298
9441
  {
9299
9442
  title: props.errorTitle,
9300
9443
  text: props.errorText,
9301
9444
  severity: "error"
9302
9445
  }
9303
- ), props.signInType === "email" ? /* @__PURE__ */ React87.createElement(
9446
+ ), props.signInType === "email" ? /* @__PURE__ */ React89.createElement(
9304
9447
  Controller3,
9305
9448
  {
9306
9449
  control,
9307
9450
  name: "email",
9308
- render: ({ field }) => /* @__PURE__ */ React87.createElement(
9451
+ render: ({ field }) => /* @__PURE__ */ React89.createElement(
9309
9452
  HawaTextField,
9310
9453
  {
9311
9454
  width: "full",
@@ -9326,13 +9469,13 @@ var SignInForm = (props) => {
9326
9469
  }
9327
9470
  }
9328
9471
  }
9329
- ) : props.signInType === "username" ? /* @__PURE__ */ React87.createElement(
9472
+ ) : props.signInType === "username" ? /* @__PURE__ */ React89.createElement(
9330
9473
  Controller3,
9331
9474
  {
9332
9475
  control,
9333
9476
  name: "username",
9334
9477
  render: ({ field }) => {
9335
- return /* @__PURE__ */ React87.createElement(
9478
+ return /* @__PURE__ */ React89.createElement(
9336
9479
  HawaTextField,
9337
9480
  {
9338
9481
  width: "full",
@@ -9350,20 +9493,20 @@ var SignInForm = (props) => {
9350
9493
  required: props.texts.usernameRequired
9351
9494
  }
9352
9495
  }
9353
- ) : /* @__PURE__ */ React87.createElement(
9496
+ ) : /* @__PURE__ */ React89.createElement(
9354
9497
  Controller3,
9355
9498
  {
9356
9499
  control,
9357
9500
  name: "phone",
9358
- render: ({ field }) => /* @__PURE__ */ React87.createElement(HawaPhoneInput, { label: "Phone number" }),
9501
+ render: ({ field }) => /* @__PURE__ */ React89.createElement(HawaPhoneInput, { label: "Phone number" }),
9359
9502
  rules: { required: props.texts.phoneRequiredText }
9360
9503
  }
9361
- ), 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(
9362
9505
  Controller3,
9363
9506
  {
9364
9507
  control,
9365
9508
  name: "password",
9366
- render: ({ field }) => /* @__PURE__ */ React87.createElement(
9509
+ render: ({ field }) => /* @__PURE__ */ React89.createElement(
9367
9510
  HawaTextField,
9368
9511
  {
9369
9512
  width: "full",
@@ -9381,58 +9524,58 @@ var SignInForm = (props) => {
9381
9524
  minLength: 5
9382
9525
  }
9383
9526
  }
9384
- ), !props.withoutResetPassword && /* @__PURE__ */ React87.createElement(
9527
+ ), !props.withoutResetPassword && /* @__PURE__ */ React89.createElement(
9385
9528
  "div",
9386
9529
  {
9387
9530
  onClick: props.handleForgotPassword,
9388
9531
  className: "mb-3 w-fit cursor-pointer text-xs dark:text-gray-300"
9389
9532
  },
9390
9533
  props.texts.forgotPasswordText
9391
- )), /* @__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(
9392
9535
  "span",
9393
9536
  {
9394
9537
  onClick: props.handleRouteToSignUp,
9395
9538
  className: "clickable-link"
9396
9539
  },
9397
9540
  props.texts.createAccount
9398
- )))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React87.createElement(
9541
+ )))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React89.createElement(
9399
9542
  CardFooter,
9400
9543
  {
9401
9544
  className: cn(
9402
9545
  props.logosOnly ? "flex flex-row gap-2 justify-center" : "grid grid-cols-1 gap-2"
9403
9546
  )
9404
9547
  },
9405
- props.viaGoogle && /* @__PURE__ */ React87.createElement(
9548
+ props.viaGoogle && /* @__PURE__ */ React89.createElement(
9406
9549
  Button,
9407
9550
  {
9408
9551
  className: "flex flex-row items-center gap-2",
9409
9552
  variant: "outline",
9410
9553
  onClick: props.handleGoogleSignIn
9411
9554
  },
9412
- /* @__PURE__ */ React87.createElement(Icons.google, { className: "h-4 w-4" }),
9555
+ /* @__PURE__ */ React89.createElement(Icons.google, { className: "h-4 w-4" }),
9413
9556
  !props.logosOnly && props.texts.signInViaGoogleLabel
9414
9557
  ),
9415
- props.viaGithub && /* @__PURE__ */ React87.createElement(
9558
+ props.viaGithub && /* @__PURE__ */ React89.createElement(
9416
9559
  Button,
9417
9560
  {
9418
9561
  className: "flex flex-row items-center gap-2",
9419
9562
  variant: "outline",
9420
9563
  onClick: props.handleGithubSignIn
9421
9564
  },
9422
- /* @__PURE__ */ React87.createElement(Icons.gitHub, { className: "h-4 w-4" }),
9565
+ /* @__PURE__ */ React89.createElement(Icons.gitHub, { className: "h-4 w-4" }),
9423
9566
  !props.logosOnly && props.texts.signInViaGithubLabel
9424
9567
  ),
9425
- props.viaTwitter && /* @__PURE__ */ React87.createElement(
9568
+ props.viaTwitter && /* @__PURE__ */ React89.createElement(
9426
9569
  Button,
9427
9570
  {
9428
9571
  className: "flex flex-row items-center gap-2",
9429
9572
  variant: "outline",
9430
9573
  onClick: props.handleTwitterSignIn
9431
9574
  },
9432
- /* @__PURE__ */ React87.createElement(Icons.twitter, { className: "h-4 w-4" }),
9575
+ /* @__PURE__ */ React89.createElement(Icons.twitter, { className: "h-4 w-4" }),
9433
9576
  !props.logosOnly && props.texts.signInViaTwitterLabel
9434
9577
  )
9435
- ) : null), /* @__PURE__ */ React87.createElement(
9578
+ ) : null), /* @__PURE__ */ React89.createElement(
9436
9579
  InterfaceSettings,
9437
9580
  {
9438
9581
  currentColorMode: props.currentColorMode,
@@ -9449,7 +9592,7 @@ function SignInBlock() {
9449
9592
  }
9450
9593
 
9451
9594
  // src/blocks/AuthForms/SignUpForm.tsx
9452
- import React88 from "react";
9595
+ import React90 from "react";
9453
9596
  import { Controller as Controller4, FormProvider as FormProvider2, useForm as useForm4 } from "react-hook-form";
9454
9597
  var SignUpForm = (props) => {
9455
9598
  const methods = useForm4();
@@ -9458,22 +9601,22 @@ var SignUpForm = (props) => {
9458
9601
  handleSubmit,
9459
9602
  control
9460
9603
  } = methods;
9461
- 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(
9462
9605
  HawaAlert,
9463
9606
  {
9464
9607
  title: props.errorTitle,
9465
9608
  text: props.errorText,
9466
9609
  severity: "error"
9467
9610
  }
9468
- ), /* @__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) => {
9469
9612
  if (fld === "fullname") {
9470
- return /* @__PURE__ */ React88.createElement(
9613
+ return /* @__PURE__ */ React90.createElement(
9471
9614
  Controller4,
9472
9615
  {
9473
9616
  key: i,
9474
9617
  control,
9475
9618
  name: "fullName",
9476
- render: ({ field }) => /* @__PURE__ */ React88.createElement(
9619
+ render: ({ field }) => /* @__PURE__ */ React90.createElement(
9477
9620
  HawaTextField,
9478
9621
  {
9479
9622
  width: "full",
@@ -9492,13 +9635,13 @@ var SignUpForm = (props) => {
9492
9635
  );
9493
9636
  }
9494
9637
  if (fld === "email") {
9495
- return /* @__PURE__ */ React88.createElement(
9638
+ return /* @__PURE__ */ React90.createElement(
9496
9639
  Controller4,
9497
9640
  {
9498
9641
  key: i,
9499
9642
  control,
9500
9643
  name: "email",
9501
- render: ({ field }) => /* @__PURE__ */ React88.createElement(
9644
+ render: ({ field }) => /* @__PURE__ */ React90.createElement(
9502
9645
  HawaTextField,
9503
9646
  {
9504
9647
  width: "full",
@@ -9522,13 +9665,13 @@ var SignUpForm = (props) => {
9522
9665
  );
9523
9666
  }
9524
9667
  if (fld === "username") {
9525
- return /* @__PURE__ */ React88.createElement(
9668
+ return /* @__PURE__ */ React90.createElement(
9526
9669
  Controller4,
9527
9670
  {
9528
9671
  key: i,
9529
9672
  control,
9530
9673
  name: "username",
9531
- render: ({ field }) => /* @__PURE__ */ React88.createElement(
9674
+ render: ({ field }) => /* @__PURE__ */ React90.createElement(
9532
9675
  HawaTextField,
9533
9676
  {
9534
9677
  width: "full",
@@ -9547,12 +9690,12 @@ var SignUpForm = (props) => {
9547
9690
  }
9548
9691
  );
9549
9692
  }
9550
- })), /* @__PURE__ */ React88.createElement(
9693
+ })), /* @__PURE__ */ React90.createElement(
9551
9694
  Controller4,
9552
9695
  {
9553
9696
  control,
9554
9697
  name: "password",
9555
- render: ({ field }) => /* @__PURE__ */ React88.createElement(
9698
+ render: ({ field }) => /* @__PURE__ */ React90.createElement(
9556
9699
  HawaTextField,
9557
9700
  {
9558
9701
  width: "full",
@@ -9567,12 +9710,12 @@ var SignUpForm = (props) => {
9567
9710
  ),
9568
9711
  rules: { required: props.texts.passwordRequiredText }
9569
9712
  }
9570
- ), /* @__PURE__ */ React88.createElement(
9713
+ ), /* @__PURE__ */ React90.createElement(
9571
9714
  Controller4,
9572
9715
  {
9573
9716
  control,
9574
9717
  name: "confirm_password",
9575
- render: ({ field }) => /* @__PURE__ */ React88.createElement(
9718
+ render: ({ field }) => /* @__PURE__ */ React90.createElement(
9576
9719
  HawaTextField,
9577
9720
  {
9578
9721
  width: "full",
@@ -9587,12 +9730,12 @@ var SignUpForm = (props) => {
9587
9730
  ),
9588
9731
  rules: { required: props.texts.passwordRequiredText }
9589
9732
  }
9590
- ), props.showRefCode && /* @__PURE__ */ React88.createElement(
9733
+ ), props.showRefCode && /* @__PURE__ */ React90.createElement(
9591
9734
  Controller4,
9592
9735
  {
9593
9736
  control,
9594
9737
  name: "refCode",
9595
- render: ({ field }) => /* @__PURE__ */ React88.createElement(
9738
+ render: ({ field }) => /* @__PURE__ */ React90.createElement(
9596
9739
  HawaTextField,
9597
9740
  {
9598
9741
  width: "full",
@@ -9605,12 +9748,12 @@ var SignUpForm = (props) => {
9605
9748
  }
9606
9749
  )
9607
9750
  }
9608
- ), props.showUserSource && /* @__PURE__ */ React88.createElement("div", null, /* @__PURE__ */ React88.createElement(
9751
+ ), props.showUserSource && /* @__PURE__ */ React90.createElement("div", null, /* @__PURE__ */ React90.createElement(
9609
9752
  Controller4,
9610
9753
  {
9611
9754
  control,
9612
9755
  name: "reference",
9613
- render: ({ field }) => /* @__PURE__ */ React88.createElement(
9756
+ render: ({ field }) => /* @__PURE__ */ React90.createElement(
9614
9757
  HawaSelect,
9615
9758
  {
9616
9759
  label: "How did you learn about us?",
@@ -9629,18 +9772,18 @@ var SignUpForm = (props) => {
9629
9772
  }
9630
9773
  )
9631
9774
  }
9632
- )), props.showTermsOption && /* @__PURE__ */ React88.createElement(
9775
+ )), props.showTermsOption && /* @__PURE__ */ React90.createElement(
9633
9776
  Controller4,
9634
9777
  {
9635
9778
  control,
9636
9779
  name: "terms_accepted",
9637
- render: ({ field }) => /* @__PURE__ */ React88.createElement(
9780
+ render: ({ field }) => /* @__PURE__ */ React90.createElement(
9638
9781
  HawaCheckbox,
9639
9782
  {
9640
9783
  id: "terms_accepted",
9641
9784
  helperText: errors.terms_accepted?.message,
9642
9785
  onChange: (e) => field.onChange(e),
9643
- 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(
9644
9787
  "a",
9645
9788
  {
9646
9789
  onClick: props.handleRouteToTOS,
@@ -9652,12 +9795,12 @@ var SignUpForm = (props) => {
9652
9795
  ),
9653
9796
  rules: { required: props.texts.termsRequiredText }
9654
9797
  }
9655
- ), props.showNewsletterOption && /* @__PURE__ */ React88.createElement(
9798
+ ), props.showNewsletterOption && /* @__PURE__ */ React90.createElement(
9656
9799
  Controller4,
9657
9800
  {
9658
9801
  control,
9659
9802
  name: "newsletter_accepted",
9660
- render: ({ field }) => /* @__PURE__ */ React88.createElement(
9803
+ render: ({ field }) => /* @__PURE__ */ React90.createElement(
9661
9804
  HawaCheckbox,
9662
9805
  {
9663
9806
  id: "newsletter_accepted",
@@ -9666,51 +9809,51 @@ var SignUpForm = (props) => {
9666
9809
  }
9667
9810
  )
9668
9811
  }
9669
- ), /* @__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(
9670
9813
  "span",
9671
9814
  {
9672
9815
  onClick: props.handleRouteToSignIn,
9673
9816
  className: "clickable-link"
9674
9817
  },
9675
9818
  props.texts.signInText
9676
- )))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React88.createElement(
9819
+ )))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React90.createElement(
9677
9820
  CardFooter,
9678
9821
  {
9679
9822
  className: cn(
9680
9823
  props.logosOnly ? "flex flex-row justify-center gap-2" : "grid grid-cols-1 gap-2"
9681
9824
  )
9682
9825
  },
9683
- props.viaGoogle && /* @__PURE__ */ React88.createElement(
9826
+ props.viaGoogle && /* @__PURE__ */ React90.createElement(
9684
9827
  Button,
9685
9828
  {
9686
9829
  className: "flex flex-row items-center gap-2",
9687
9830
  variant: "outline",
9688
9831
  onClick: props.handleGoogleSignUp
9689
9832
  },
9690
- /* @__PURE__ */ React88.createElement(Icons.google, { className: "h-4 w-4" }),
9833
+ /* @__PURE__ */ React90.createElement(Icons.google, { className: "h-4 w-4" }),
9691
9834
  !props.logosOnly && props.texts.signUpViaGoogleLabel
9692
9835
  ),
9693
- props.viaGithub && /* @__PURE__ */ React88.createElement(
9836
+ props.viaGithub && /* @__PURE__ */ React90.createElement(
9694
9837
  Button,
9695
9838
  {
9696
9839
  className: "flex flex-row items-center gap-2",
9697
9840
  variant: "outline",
9698
9841
  onClick: props.handleGithubSignUp
9699
9842
  },
9700
- /* @__PURE__ */ React88.createElement(Icons.gitHub, { className: "h-4 w-4" }),
9843
+ /* @__PURE__ */ React90.createElement(Icons.gitHub, { className: "h-4 w-4" }),
9701
9844
  !props.logosOnly && props.texts.signUpViaGithubLabel
9702
9845
  ),
9703
- props.viaTwitter && /* @__PURE__ */ React88.createElement(
9846
+ props.viaTwitter && /* @__PURE__ */ React90.createElement(
9704
9847
  Button,
9705
9848
  {
9706
9849
  className: "flex flex-row items-center gap-2",
9707
9850
  variant: "outline",
9708
9851
  onClick: props.handleTwitterSignUp
9709
9852
  },
9710
- /* @__PURE__ */ React88.createElement(Icons.twitter, { className: "h-4 w-4" }),
9853
+ /* @__PURE__ */ React90.createElement(Icons.twitter, { className: "h-4 w-4" }),
9711
9854
  !props.logosOnly && props.texts.signUpViaTwitterLabel
9712
9855
  )
9713
- ) : null), /* @__PURE__ */ React88.createElement(
9856
+ ) : null), /* @__PURE__ */ React90.createElement(
9714
9857
  InterfaceSettings,
9715
9858
  {
9716
9859
  currentColorMode: props.currentColorMode,
@@ -9722,10 +9865,10 @@ var SignUpForm = (props) => {
9722
9865
  };
9723
9866
 
9724
9867
  // src/blocks/AuthForms/NewPasswordForm.tsx
9725
- import React89, { useState as useState44 } from "react";
9868
+ import React91, { useState as useState45 } from "react";
9726
9869
  import { Controller as Controller5, FormProvider as FormProvider3, useForm as useForm5 } from "react-hook-form";
9727
9870
  var NewPasswordForm = (props) => {
9728
- const [matchError, setMatchError] = useState44(false);
9871
+ const [matchError, setMatchError] = useState45(false);
9729
9872
  const methods = useForm5();
9730
9873
  const {
9731
9874
  formState: { errors },
@@ -9739,12 +9882,12 @@ var NewPasswordForm = (props) => {
9739
9882
  setMatchError(true);
9740
9883
  }
9741
9884
  };
9742
- 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(
9743
9886
  Controller5,
9744
9887
  {
9745
9888
  control,
9746
9889
  name: "password",
9747
- render: ({ field }) => /* @__PURE__ */ React89.createElement(
9890
+ render: ({ field }) => /* @__PURE__ */ React91.createElement(
9748
9891
  HawaTextField,
9749
9892
  {
9750
9893
  width: "full",
@@ -9761,12 +9904,12 @@ var NewPasswordForm = (props) => {
9761
9904
  required: props.texts.passwordRequiredText
9762
9905
  }
9763
9906
  }
9764
- ), /* @__PURE__ */ React89.createElement(
9907
+ ), /* @__PURE__ */ React91.createElement(
9765
9908
  Controller5,
9766
9909
  {
9767
9910
  control,
9768
9911
  name: "confirmPassword",
9769
- render: ({ field }) => /* @__PURE__ */ React89.createElement(
9912
+ render: ({ field }) => /* @__PURE__ */ React91.createElement(
9770
9913
  HawaTextField,
9771
9914
  {
9772
9915
  width: "full",
@@ -9783,11 +9926,11 @@ var NewPasswordForm = (props) => {
9783
9926
  required: props.texts.confirmPasswordRequiredText
9784
9927
  }
9785
9928
  }
9786
- )), /* @__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)))));
9787
9930
  };
9788
9931
 
9789
9932
  // src/blocks/AuthForms/ResetPasswordForm.tsx
9790
- import React90 from "react";
9933
+ import React92 from "react";
9791
9934
  import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
9792
9935
  var ResetPasswordForm = (props) => {
9793
9936
  const methods = useForm6();
@@ -9797,12 +9940,12 @@ var ResetPasswordForm = (props) => {
9797
9940
  register,
9798
9941
  control
9799
9942
  } = methods;
9800
- return /* @__PURE__ */ React90.createElement(Card, null, !props.sent ? /* @__PURE__ */ React90.createElement(React90.Fragment, null, /* @__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, null, /* @__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(
9801
9944
  Controller6,
9802
9945
  {
9803
9946
  control,
9804
9947
  name: "email",
9805
- render: ({ field }) => /* @__PURE__ */ React90.createElement(
9948
+ render: ({ field }) => /* @__PURE__ */ React92.createElement(
9806
9949
  HawaTextField,
9807
9950
  {
9808
9951
  width: "full",
@@ -9822,28 +9965,28 @@ var ResetPasswordForm = (props) => {
9822
9965
  }
9823
9966
  }
9824
9967
  }
9825
- ), /* @__PURE__ */ React90.createElement("div", { className: " pb-2 text-left 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(
9826
9969
  "span",
9827
9970
  {
9828
9971
  onClick: props.handleRouteToSignUp,
9829
9972
  className: "clickable-link"
9830
9973
  },
9831
9974
  props.texts?.signUpText ?? "Sign Up"
9832
- ))), /* @__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)));
9833
9976
  };
9834
9977
 
9835
9978
  // src/blocks/AuthForms/CodeConfirmation.tsx
9836
- import React91, { useState as useState45 } from "react";
9979
+ import React93, { useState as useState46 } from "react";
9837
9980
  var CodeConfirmation = (props) => {
9838
- const [pins, setPins] = useState45(null);
9839
- 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(
9840
9983
  HawaAlert,
9841
9984
  {
9842
9985
  title: props.errorTitle,
9843
9986
  text: props.errorText,
9844
9987
  severity: "error"
9845
9988
  }
9846
- ), /* @__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(
9847
9990
  "form",
9848
9991
  {
9849
9992
  onSubmit: (e) => {
@@ -9853,16 +9996,16 @@ var CodeConfirmation = (props) => {
9853
9996
  }
9854
9997
  }
9855
9998
  },
9856
- /* @__PURE__ */ React91.createElement(HawaPinInput, { width: "full", digits: 6, getPins: (e) => setPins(e) }),
9857
- /* @__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")),
9858
- /* @__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"))
9859
10002
  )));
9860
10003
  };
9861
10004
 
9862
10005
  // src/blocks/AuthForms/CheckEmail.tsx
9863
- import React92 from "react";
10006
+ import React94 from "react";
9864
10007
  var CheckEmail = ({ texts, handleResend }) => {
9865
- 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(
9866
10009
  "svg",
9867
10010
  {
9868
10011
  stroke: "currentColor",
@@ -9875,16 +10018,16 @@ var CheckEmail = ({ texts, handleResend }) => {
9875
10018
  width: "0.5em",
9876
10019
  xmlns: "http://www.w3.org/2000/svg"
9877
10020
  },
9878
- /* @__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" }),
9879
- /* @__PURE__ */ React92.createElement("polyline", { points: "22,6 12,13 2,6" })
9880
- )), /* @__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")));
9881
10024
  };
9882
10025
 
9883
10026
  // src/blocks/Payment/SelectPayment.tsx
9884
- import React93, { useState as useState47 } from "react";
10027
+ import React95, { useState as useState48 } from "react";
9885
10028
  var SelectPayment = (props) => {
9886
- const [selectedMethod, setSelectedMethod] = useState47("");
9887
- 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(
9888
10031
  Button,
9889
10032
  {
9890
10033
  className: cn(
@@ -9896,15 +10039,15 @@ var SelectPayment = (props) => {
9896
10039
  disabled: !props.viaMada,
9897
10040
  onClick: () => setSelectedMethod("mada")
9898
10041
  },
9899
- /* @__PURE__ */ React93.createElement(
10042
+ /* @__PURE__ */ React95.createElement(
9900
10043
  "img",
9901
10044
  {
9902
10045
  src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/mada.png",
9903
10046
  className: "h-6"
9904
10047
  }
9905
10048
  ),
9906
- /* @__PURE__ */ React93.createElement("span", null, props.madaLabel)
9907
- ), /* @__PURE__ */ React93.createElement(
10049
+ /* @__PURE__ */ React95.createElement("span", null, props.madaLabel)
10050
+ ), /* @__PURE__ */ React95.createElement(
9908
10051
  Button,
9909
10052
  {
9910
10053
  className: cn(
@@ -9916,15 +10059,15 @@ var SelectPayment = (props) => {
9916
10059
  disabled: !props.viaApplePay,
9917
10060
  onClick: () => setSelectedMethod("apple-pay")
9918
10061
  },
9919
- /* @__PURE__ */ React93.createElement(
10062
+ /* @__PURE__ */ React95.createElement(
9920
10063
  "img",
9921
10064
  {
9922
10065
  src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/apple-pay.png",
9923
10066
  className: "h-11"
9924
10067
  }
9925
10068
  ),
9926
- /* @__PURE__ */ React93.createElement("span", null, props.applePayLabel)
9927
- ), /* @__PURE__ */ React93.createElement(
10069
+ /* @__PURE__ */ React95.createElement("span", null, props.applePayLabel)
10070
+ ), /* @__PURE__ */ React95.createElement(
9928
10071
  Button,
9929
10072
  {
9930
10073
  className: cn(
@@ -9936,15 +10079,15 @@ var SelectPayment = (props) => {
9936
10079
  disabled: !props.viaCreditCard,
9937
10080
  onClick: () => setSelectedMethod("visa-master")
9938
10081
  },
9939
- /* @__PURE__ */ React93.createElement(
10082
+ /* @__PURE__ */ React95.createElement(
9940
10083
  "img",
9941
10084
  {
9942
10085
  src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/visa-master.png",
9943
10086
  className: "h-6"
9944
10087
  }
9945
10088
  ),
9946
- /* @__PURE__ */ React93.createElement("span", null, props.visaMasterLabel)
9947
- ), /* @__PURE__ */ React93.createElement(
10089
+ /* @__PURE__ */ React95.createElement("span", null, props.visaMasterLabel)
10090
+ ), /* @__PURE__ */ React95.createElement(
9948
10091
  Button,
9949
10092
  {
9950
10093
  variant: "outline",
@@ -9956,7 +10099,7 @@ var SelectPayment = (props) => {
9956
10099
  disabled: !props.viaWallet,
9957
10100
  onClick: () => setSelectedMethod("wallet")
9958
10101
  },
9959
- /* @__PURE__ */ React93.createElement(
10102
+ /* @__PURE__ */ React95.createElement(
9960
10103
  "svg",
9961
10104
  {
9962
10105
  version: "1.1",
@@ -9964,20 +10107,20 @@ var SelectPayment = (props) => {
9964
10107
  viewBox: "0 0 223 223",
9965
10108
  className: "h-6 w-6"
9966
10109
  },
9967
- /* @__PURE__ */ React93.createElement("g", null, /* @__PURE__ */ React93.createElement(
10110
+ /* @__PURE__ */ React95.createElement("g", null, /* @__PURE__ */ React95.createElement(
9968
10111
  "path",
9969
10112
  {
9970
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"
9971
10114
  }
9972
- ), /* @__PURE__ */ React93.createElement(
10115
+ ), /* @__PURE__ */ React95.createElement(
9973
10116
  "path",
9974
10117
  {
9975
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"
9976
10119
  }
9977
10120
  ))
9978
10121
  ),
9979
- /* @__PURE__ */ React93.createElement("span", null, props.walletLabel)
9980
- ), /* @__PURE__ */ React93.createElement(
10122
+ /* @__PURE__ */ React95.createElement("span", null, props.walletLabel)
10123
+ ), /* @__PURE__ */ React95.createElement(
9981
10124
  Button,
9982
10125
  {
9983
10126
  variant: "outline",
@@ -9989,15 +10132,15 @@ var SelectPayment = (props) => {
9989
10132
  disabled: !props.viaSTCPay,
9990
10133
  onClick: () => setSelectedMethod("stc-pay")
9991
10134
  },
9992
- /* @__PURE__ */ React93.createElement(
10135
+ /* @__PURE__ */ React95.createElement(
9993
10136
  "img",
9994
10137
  {
9995
10138
  src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/stc-pay.png",
9996
10139
  className: "h-6"
9997
10140
  }
9998
10141
  ),
9999
- /* @__PURE__ */ React93.createElement("span", null, props.stcPayLabel)
10000
- ), /* @__PURE__ */ React93.createElement(
10142
+ /* @__PURE__ */ React95.createElement("span", null, props.stcPayLabel)
10143
+ ), /* @__PURE__ */ React95.createElement(
10001
10144
  Button,
10002
10145
  {
10003
10146
  variant: "outline",
@@ -10009,15 +10152,15 @@ var SelectPayment = (props) => {
10009
10152
  disabled: !props.viaGooglePay,
10010
10153
  onClick: () => setSelectedMethod("google-pay")
10011
10154
  },
10012
- /* @__PURE__ */ React93.createElement(
10155
+ /* @__PURE__ */ React95.createElement(
10013
10156
  "img",
10014
10157
  {
10015
10158
  src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/google-pay.png",
10016
10159
  className: "h-6"
10017
10160
  }
10018
10161
  ),
10019
- /* @__PURE__ */ React93.createElement("span", null, props.googlePayLabel)
10020
- ), /* @__PURE__ */ React93.createElement(
10162
+ /* @__PURE__ */ React95.createElement("span", null, props.googlePayLabel)
10163
+ ), /* @__PURE__ */ React95.createElement(
10021
10164
  Button,
10022
10165
  {
10023
10166
  variant: "outline",
@@ -10029,15 +10172,15 @@ var SelectPayment = (props) => {
10029
10172
  disabled: !props.viaPayPal,
10030
10173
  onClick: () => setSelectedMethod("paypal")
10031
10174
  },
10032
- /* @__PURE__ */ React93.createElement(
10175
+ /* @__PURE__ */ React95.createElement(
10033
10176
  "img",
10034
10177
  {
10035
10178
  src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/paypal.png",
10036
10179
  className: "h-6"
10037
10180
  }
10038
10181
  ),
10039
- /* @__PURE__ */ React93.createElement("span", null, props.paypalLabel)
10040
- )), /* @__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(
10041
10184
  Button,
10042
10185
  {
10043
10186
  onClick: () => props.handleContinue(selectedMethod),
@@ -10049,41 +10192,90 @@ var SelectPayment = (props) => {
10049
10192
  };
10050
10193
 
10051
10194
  // src/blocks/Payment/CreditCardForm.tsx
10052
- import React94 from "react";
10195
+ import React96, { useEffect as useEffect28, useState as useState49 } from "react";
10053
10196
  import { Controller as Controller7, useForm as useForm7 } from "react-hook-form";
10054
10197
  var CreditCardForm = (props) => {
10198
+ const [cardNumber, setCardNumber] = useState49("");
10199
+ const [cardType, setCardType] = useState49("");
10055
10200
  const methods = useForm7();
10056
10201
  const {
10057
10202
  formState: { errors },
10058
10203
  handleSubmit,
10059
10204
  control
10060
10205
  } = methods;
10061
- 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(
10062
10245
  Controller7,
10063
10246
  {
10064
10247
  control,
10065
- name: "cardName",
10066
- render: ({ field }) => /* @__PURE__ */ React94.createElement(
10248
+ name: "cardNumber",
10249
+ render: ({ field }) => /* @__PURE__ */ React96.createElement(
10067
10250
  HawaTextField,
10068
10251
  {
10069
10252
  width: "full",
10070
10253
  name: "cardNumber",
10071
10254
  placeholder: "1234 1234 1234 1234",
10072
10255
  type: "number",
10256
+ onChange: onCardNumberChange,
10073
10257
  label: "Card Number",
10074
- 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
+ )
10075
10267
  }
10076
10268
  ),
10077
10269
  rules: {
10078
10270
  required: "Card Number is rquired"
10079
10271
  }
10080
10272
  }
10081
- ), /* @__PURE__ */ React94.createElement("div", { className: "w-1/4" }, /* @__PURE__ */ React94.createElement(
10273
+ ), /* @__PURE__ */ React96.createElement("div", { className: "w-1/4" }, /* @__PURE__ */ React96.createElement(
10082
10274
  Controller7,
10083
10275
  {
10084
10276
  control,
10085
10277
  name: "cardCVC",
10086
- render: ({ field }) => /* @__PURE__ */ React94.createElement(
10278
+ render: ({ field }) => /* @__PURE__ */ React96.createElement(
10087
10279
  HawaTextField,
10088
10280
  {
10089
10281
  width: "full",
@@ -10100,12 +10292,12 @@ var CreditCardForm = (props) => {
10100
10292
  required: "Password is rquired"
10101
10293
  }
10102
10294
  }
10103
- ))), /* @__PURE__ */ React94.createElement(
10295
+ ))), /* @__PURE__ */ React96.createElement(
10104
10296
  Controller7,
10105
10297
  {
10106
10298
  control,
10107
10299
  name: "cardExpiry",
10108
- render: ({ field }) => /* @__PURE__ */ React94.createElement(
10300
+ render: ({ field }) => /* @__PURE__ */ React96.createElement(
10109
10301
  HawaTextField,
10110
10302
  {
10111
10303
  width: "full",
@@ -10120,12 +10312,12 @@ var CreditCardForm = (props) => {
10120
10312
  required: "Password is rquired"
10121
10313
  }
10122
10314
  }
10123
- ), /* @__PURE__ */ React94.createElement(
10315
+ ), /* @__PURE__ */ React96.createElement(
10124
10316
  Controller7,
10125
10317
  {
10126
10318
  control,
10127
10319
  name: "cardName",
10128
- render: ({ field }) => /* @__PURE__ */ React94.createElement(
10320
+ render: ({ field }) => /* @__PURE__ */ React96.createElement(
10129
10321
  HawaTextField,
10130
10322
  {
10131
10323
  width: "full",
@@ -10139,24 +10331,24 @@ var CreditCardForm = (props) => {
10139
10331
  required: "Card holder name is rquired"
10140
10332
  }
10141
10333
  }
10142
- )), /* @__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"))));
10143
10335
  };
10144
10336
 
10145
10337
  // src/blocks/Payment/ChargeWalletForm.tsx
10146
- import React95, { useState as useState48 } from "react";
10338
+ import React97, { useState as useState50 } from "react";
10147
10339
  var ChargeWalletForm = (props) => {
10148
- const [walletAmount, setWalletAmount] = useState48(0);
10149
- 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)));
10150
10342
  };
10151
10343
 
10152
10344
  // src/blocks/Payment/PayWithWallet.tsx
10153
- import React96 from "react";
10345
+ import React98 from "react";
10154
10346
  var PayWithWallet = (props) => {
10155
- 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")));
10156
10348
  };
10157
10349
 
10158
10350
  // src/blocks/Payment/CheckoutForm.tsx
10159
- import React97 from "react";
10351
+ import React99 from "react";
10160
10352
  import { Controller as Controller8, FormProvider as FormProvider4, useForm as useForm8 } from "react-hook-form";
10161
10353
  var CheckoutForm = (props) => {
10162
10354
  let isArabic = props.lang === "ar";
@@ -10180,7 +10372,7 @@ var CheckoutForm = (props) => {
10180
10372
  xl: "row"
10181
10373
  }
10182
10374
  };
10183
- 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(
10184
10376
  HawaTable,
10185
10377
  {
10186
10378
  pagination: false,
@@ -10194,13 +10386,13 @@ var CheckoutForm = (props) => {
10194
10386
  rows: props.products,
10195
10387
  bordersWidth: "1"
10196
10388
  }
10197
- )))), /* @__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(
10198
10390
  Controller8,
10199
10391
  {
10200
10392
  control,
10201
10393
  name: "firstName",
10202
10394
  rules: { required: props.texts?.required },
10203
- render: ({ field }) => /* @__PURE__ */ React97.createElement(
10395
+ render: ({ field }) => /* @__PURE__ */ React99.createElement(
10204
10396
  HawaTextField,
10205
10397
  {
10206
10398
  type: "text",
@@ -10211,13 +10403,13 @@ var CheckoutForm = (props) => {
10211
10403
  }
10212
10404
  )
10213
10405
  }
10214
- ), /* @__PURE__ */ React97.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React97.createElement(
10406
+ ), /* @__PURE__ */ React99.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React99.createElement(
10215
10407
  Controller8,
10216
10408
  {
10217
10409
  control,
10218
10410
  name: "lastName",
10219
10411
  rules: { required: props.texts?.required },
10220
- render: ({ field }) => /* @__PURE__ */ React97.createElement(
10412
+ render: ({ field }) => /* @__PURE__ */ React99.createElement(
10221
10413
  HawaTextField,
10222
10414
  {
10223
10415
  width: "full",
@@ -10229,12 +10421,12 @@ var CheckoutForm = (props) => {
10229
10421
  }
10230
10422
  )
10231
10423
  }
10232
- )), /* @__PURE__ */ React97.createElement(
10424
+ )), /* @__PURE__ */ React99.createElement(
10233
10425
  Controller8,
10234
10426
  {
10235
10427
  control,
10236
10428
  name: "email",
10237
- render: ({ field }) => /* @__PURE__ */ React97.createElement(
10429
+ render: ({ field }) => /* @__PURE__ */ React99.createElement(
10238
10430
  HawaTextField,
10239
10431
  {
10240
10432
  width: "full",
@@ -10253,13 +10445,13 @@ var CheckoutForm = (props) => {
10253
10445
  }
10254
10446
  }
10255
10447
  }
10256
- ), /* @__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(
10257
10449
  Controller8,
10258
10450
  {
10259
10451
  control,
10260
10452
  name: "streetAddress",
10261
10453
  rules: { required: props.texts?.required },
10262
- render: ({ field }) => /* @__PURE__ */ React97.createElement(
10454
+ render: ({ field }) => /* @__PURE__ */ React99.createElement(
10263
10455
  HawaTextField,
10264
10456
  {
10265
10457
  width: "full",
@@ -10271,13 +10463,13 @@ var CheckoutForm = (props) => {
10271
10463
  }
10272
10464
  )
10273
10465
  }
10274
- )), /* @__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(
10275
10467
  Controller8,
10276
10468
  {
10277
10469
  control,
10278
10470
  name: "province",
10279
10471
  rules: { required: props.texts?.required },
10280
- render: ({ field }) => /* @__PURE__ */ React97.createElement(
10472
+ render: ({ field }) => /* @__PURE__ */ React99.createElement(
10281
10473
  HawaTextField,
10282
10474
  {
10283
10475
  width: "full",
@@ -10289,13 +10481,13 @@ var CheckoutForm = (props) => {
10289
10481
  }
10290
10482
  )
10291
10483
  }
10292
- ), /* @__PURE__ */ React97.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React97.createElement(
10484
+ ), /* @__PURE__ */ React99.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React99.createElement(
10293
10485
  Controller8,
10294
10486
  {
10295
10487
  control,
10296
10488
  name: "city",
10297
10489
  rules: { required: props.texts?.required },
10298
- render: ({ field }) => /* @__PURE__ */ React97.createElement(
10490
+ render: ({ field }) => /* @__PURE__ */ React99.createElement(
10299
10491
  HawaTextField,
10300
10492
  {
10301
10493
  width: "full",
@@ -10307,13 +10499,13 @@ var CheckoutForm = (props) => {
10307
10499
  }
10308
10500
  )
10309
10501
  }
10310
- )), /* @__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(
10311
10503
  Controller8,
10312
10504
  {
10313
10505
  control,
10314
10506
  name: "buildingNumber",
10315
10507
  rules: { required: props.texts?.required },
10316
- render: ({ field }) => /* @__PURE__ */ React97.createElement(
10508
+ render: ({ field }) => /* @__PURE__ */ React99.createElement(
10317
10509
  HawaTextField,
10318
10510
  {
10319
10511
  width: "full",
@@ -10325,13 +10517,13 @@ var CheckoutForm = (props) => {
10325
10517
  }
10326
10518
  )
10327
10519
  }
10328
- ), /* @__PURE__ */ React97.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React97.createElement(
10520
+ ), /* @__PURE__ */ React99.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React99.createElement(
10329
10521
  Controller8,
10330
10522
  {
10331
10523
  control,
10332
10524
  name: "zipCode",
10333
10525
  rules: { required: props.texts?.required },
10334
- render: ({ field }) => /* @__PURE__ */ React97.createElement(
10526
+ render: ({ field }) => /* @__PURE__ */ React99.createElement(
10335
10527
  HawaTextField,
10336
10528
  {
10337
10529
  width: "full",
@@ -10343,13 +10535,13 @@ var CheckoutForm = (props) => {
10343
10535
  }
10344
10536
  )
10345
10537
  }
10346
- )), /* @__PURE__ */ React97.createElement("div", { className: "mb-3" }, /* @__PURE__ */ React97.createElement(
10538
+ )), /* @__PURE__ */ React99.createElement("div", { className: "mb-3" }, /* @__PURE__ */ React99.createElement(
10347
10539
  Controller8,
10348
10540
  {
10349
10541
  control,
10350
10542
  name: "country",
10351
10543
  rules: { required: props.texts?.required },
10352
- render: ({ field }) => /* @__PURE__ */ React97.createElement(
10544
+ render: ({ field }) => /* @__PURE__ */ React99.createElement(
10353
10545
  HawaSelect,
10354
10546
  {
10355
10547
  native: true,
@@ -10360,18 +10552,18 @@ var CheckoutForm = (props) => {
10360
10552
  onChange: (e) => field.onChange(e.country_label),
10361
10553
  value: field.value ?? ""
10362
10554
  },
10363
- /* @__PURE__ */ React97.createElement("option", null),
10364
- 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))
10365
10557
  )
10366
10558
  }
10367
- ))))), /* @__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)), " "));
10368
10560
  };
10369
10561
 
10370
10562
  // src/blocks/Payment/Confirmation.tsx
10371
- import React98 from "react";
10563
+ import React100 from "react";
10372
10564
  var ConfirmationPage = (props) => {
10373
10565
  let isArabic = props.lang === "ar";
10374
- 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(
10375
10567
  "a",
10376
10568
  {
10377
10569
  className: "clickable-link text-xs",
@@ -10382,9 +10574,9 @@ var ConfirmationPage = (props) => {
10382
10574
  };
10383
10575
 
10384
10576
  // src/blocks/Pricing/PricingPlans.tsx
10385
- import React99 from "react";
10577
+ import React101 from "react";
10386
10578
  var PricingPlans = (props) => {
10387
- 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(
10388
10580
  HawaRadio,
10389
10581
  {
10390
10582
  design: "tabs",
@@ -10392,7 +10584,7 @@ var PricingPlans = (props) => {
10392
10584
  options: props.billingCycles,
10393
10585
  onChangeTab: (e) => props.onCycleChange(e)
10394
10586
  }
10395
- ), /* @__PURE__ */ React99.createElement(
10587
+ ), /* @__PURE__ */ React101.createElement(
10396
10588
  HawaRadio,
10397
10589
  {
10398
10590
  design: "tabs",
@@ -10400,8 +10592,8 @@ var PricingPlans = (props) => {
10400
10592
  options: props.currencies,
10401
10593
  onChangeTab: (e) => props.onCurrencyChange(e)
10402
10594
  }
10403
- )), /* @__PURE__ */ React99.createElement("div", { className: "flex flex-row justify-between" }, props.plans.map((plan, index) => {
10404
- 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(
10405
10597
  HawaPricingCard,
10406
10598
  {
10407
10599
  key: index,
@@ -10418,8 +10610,8 @@ var PricingPlans = (props) => {
10418
10610
  };
10419
10611
 
10420
10612
  // src/blocks/Pricing/ComparingPlans.tsx
10421
- import React100, { useState as useState49 } from "react";
10422
- var CheckMark = () => /* @__PURE__ */ React100.createElement(
10613
+ import React102, { useState as useState51 } from "react";
10614
+ var CheckMark = () => /* @__PURE__ */ React102.createElement(
10423
10615
  "svg",
10424
10616
  {
10425
10617
  className: "h-5 w-5 text-green-500",
@@ -10427,7 +10619,7 @@ var CheckMark = () => /* @__PURE__ */ React100.createElement(
10427
10619
  fill: "currentColor",
10428
10620
  viewBox: "0 0 20 20"
10429
10621
  },
10430
- /* @__PURE__ */ React100.createElement(
10622
+ /* @__PURE__ */ React102.createElement(
10431
10623
  "path",
10432
10624
  {
10433
10625
  fillRule: "evenodd",
@@ -10436,7 +10628,7 @@ var CheckMark = () => /* @__PURE__ */ React100.createElement(
10436
10628
  }
10437
10629
  )
10438
10630
  );
10439
- var UncheckMark = () => /* @__PURE__ */ React100.createElement(
10631
+ var UncheckMark = () => /* @__PURE__ */ React102.createElement(
10440
10632
  "svg",
10441
10633
  {
10442
10634
  className: "h-5 w-5 text-red-500",
@@ -10444,7 +10636,7 @@ var UncheckMark = () => /* @__PURE__ */ React100.createElement(
10444
10636
  fill: "currentColor",
10445
10637
  viewBox: "0 0 20 20"
10446
10638
  },
10447
- /* @__PURE__ */ React100.createElement(
10639
+ /* @__PURE__ */ React102.createElement(
10448
10640
  "path",
10449
10641
  {
10450
10642
  fillRule: "evenodd",
@@ -10454,9 +10646,9 @@ var UncheckMark = () => /* @__PURE__ */ React100.createElement(
10454
10646
  )
10455
10647
  );
10456
10648
  var ComparingPlans = (props) => {
10457
- const [currentCurrency, setCurrentCurrency] = useState49("sar");
10458
- const [currentCycle, setCurrentCycle] = useState49("month");
10459
- 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(
10460
10652
  HawaRadio,
10461
10653
  {
10462
10654
  design: "tabs",
@@ -10464,7 +10656,7 @@ var ComparingPlans = (props) => {
10464
10656
  options: props.billingCycles,
10465
10657
  onChangeTab: (e) => props.onCycleChange(e)
10466
10658
  }
10467
- ), /* @__PURE__ */ React100.createElement(
10659
+ ), /* @__PURE__ */ React102.createElement(
10468
10660
  HawaRadio,
10469
10661
  {
10470
10662
  design: "tabs",
@@ -10472,9 +10664,9 @@ var ComparingPlans = (props) => {
10472
10664
  options: props.currencies,
10473
10665
  onChangeTab: (e) => props.onCurrencyChange(e)
10474
10666
  }
10475
- )), /* @__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) => {
10476
10668
  return plan.features.map((feature) => {
10477
- 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(
10478
10670
  "svg",
10479
10671
  {
10480
10672
  stroke: "currentColor",
@@ -10484,44 +10676,44 @@ var ComparingPlans = (props) => {
10484
10676
  height: "1em",
10485
10677
  width: "1em"
10486
10678
  },
10487
- /* @__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" })
10488
- ))), /* @__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));
10489
10681
  });
10490
10682
  })));
10491
10683
  };
10492
10684
 
10493
10685
  // src/blocks/Pricing/HorizontalPricing.tsx
10494
- import React101, { useState as useState50 } from "react";
10686
+ import React103, { useState as useState52 } from "react";
10495
10687
  import clsx33 from "clsx";
10496
10688
  var HorizontalPricing = (props) => {
10497
- const [selectedCard, setSelectedCard] = useState50(null);
10689
+ const [selectedCard, setSelectedCard] = useState52(null);
10498
10690
  let data = [
10499
10691
  { title: "basic", price: "$49", cycle: "/mo" },
10500
10692
  { title: "business", price: "$99", cycle: "/mo" },
10501
10693
  { title: "enterprise", price: "$149", cycle: "/mo" }
10502
10694
  ];
10503
- 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(
10504
10696
  HawaRadio,
10505
10697
  {
10506
10698
  design: "tabs",
10507
10699
  options: props.currencies,
10508
10700
  defaultValue: props.currentCurrency
10509
10701
  }
10510
- ), /* @__PURE__ */ React101.createElement(
10702
+ ), /* @__PURE__ */ React103.createElement(
10511
10703
  HawaRadio,
10512
10704
  {
10513
10705
  design: "tabs",
10514
10706
  options: props.billingCycles,
10515
10707
  defaultValue: props.currentCycle
10516
10708
  }
10517
- )), data.map((d) => /* @__PURE__ */ React101.createElement(
10709
+ )), data.map((d) => /* @__PURE__ */ React103.createElement(
10518
10710
  "label",
10519
10711
  {
10520
10712
  htmlFor: d.title,
10521
10713
  className: "",
10522
10714
  onClick: () => setSelectedCard(d.title)
10523
10715
  },
10524
- /* @__PURE__ */ React101.createElement(
10716
+ /* @__PURE__ */ React103.createElement(
10525
10717
  "input",
10526
10718
  {
10527
10719
  type: "radio",
@@ -10530,7 +10722,7 @@ var HorizontalPricing = (props) => {
10530
10722
  className: "peer appearance-none"
10531
10723
  }
10532
10724
  ),
10533
- /* @__PURE__ */ React101.createElement(
10725
+ /* @__PURE__ */ React103.createElement(
10534
10726
  "div",
10535
10727
  {
10536
10728
  className: clsx33(
@@ -10538,18 +10730,18 @@ var HorizontalPricing = (props) => {
10538
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"
10539
10731
  )
10540
10732
  },
10541
- /* @__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(
10542
10734
  CardText,
10543
10735
  {
10544
10736
  title: "Enterprise",
10545
10737
  subtitle: "For startups and new businesses"
10546
10738
  }
10547
10739
  )),
10548
- /* @__PURE__ */ React101.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
10740
+ /* @__PURE__ */ React103.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
10549
10741
  )
10550
10742
  ))));
10551
10743
  };
10552
- var CheckIcons = () => /* @__PURE__ */ React101.createElement(React101.Fragment, null, /* @__PURE__ */ React101.createElement(
10744
+ var CheckIcons = () => /* @__PURE__ */ React103.createElement(React103.Fragment, null, /* @__PURE__ */ React103.createElement(
10553
10745
  "svg",
10554
10746
  {
10555
10747
  fill: "none",
@@ -10558,7 +10750,7 @@ var CheckIcons = () => /* @__PURE__ */ React101.createElement(React101.Fragment,
10558
10750
  stroke: "currentColor",
10559
10751
  className: "default h-8 w-8 text-neutral-500"
10560
10752
  },
10561
- /* @__PURE__ */ React101.createElement(
10753
+ /* @__PURE__ */ React103.createElement(
10562
10754
  "path",
10563
10755
  {
10564
10756
  strokeLinecap: "round",
@@ -10566,14 +10758,14 @@ var CheckIcons = () => /* @__PURE__ */ React101.createElement(React101.Fragment,
10566
10758
  d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
10567
10759
  }
10568
10760
  )
10569
- ), /* @__PURE__ */ React101.createElement(
10761
+ ), /* @__PURE__ */ React103.createElement(
10570
10762
  "svg",
10571
10763
  {
10572
10764
  viewBox: "0 0 24 24",
10573
10765
  fill: "currentColor",
10574
10766
  className: "active hidden h-8 w-8 text-blue-500"
10575
10767
  },
10576
- /* @__PURE__ */ React101.createElement(
10768
+ /* @__PURE__ */ React103.createElement(
10577
10769
  "path",
10578
10770
  {
10579
10771
  fillRule: "evenodd",
@@ -10582,21 +10774,21 @@ var CheckIcons = () => /* @__PURE__ */ React101.createElement(React101.Fragment,
10582
10774
  }
10583
10775
  )
10584
10776
  ));
10585
- 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, " "));
10586
- 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));
10587
10779
 
10588
10780
  // src/blocks/Referral/ReferralAccount.tsx
10589
- import React102 from "react";
10781
+ import React104 from "react";
10590
10782
  var ReferralAccount = ({
10591
10783
  referralLink,
10592
10784
  referralCode
10593
10785
  }) => {
10594
- 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(
10595
10787
  Button,
10596
10788
  {
10597
10789
  onClick: () => navigator.clipboard.writeText(referralCode)
10598
10790
  },
10599
- /* @__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(
10600
10792
  "svg",
10601
10793
  {
10602
10794
  stroke: "currentColor",
@@ -10606,14 +10798,14 @@ var ReferralAccount = ({
10606
10798
  height: "1em",
10607
10799
  width: "1em"
10608
10800
  },
10609
- /* @__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" })
10610
10802
  ), " ")
10611
- ))), /* @__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(
10612
10804
  Button,
10613
10805
  {
10614
10806
  onClick: () => navigator.clipboard.writeText(referralLink)
10615
10807
  },
10616
- /* @__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(
10617
10809
  "svg",
10618
10810
  {
10619
10811
  stroke: "currentColor",
@@ -10623,13 +10815,13 @@ var ReferralAccount = ({
10623
10815
  height: "1em",
10624
10816
  width: "1em"
10625
10817
  },
10626
- /* @__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" })
10627
10819
  ), " ")
10628
10820
  )))));
10629
10821
  };
10630
10822
 
10631
10823
  // src/blocks/Referral/ReferralSettlement.tsx
10632
- import React103 from "react";
10824
+ import React105 from "react";
10633
10825
  import { Controller as Controller9, FormProvider as FormProvider5, useForm as useForm9 } from "react-hook-form";
10634
10826
  var ReferralSettlement = ({
10635
10827
  referralLink,
@@ -10642,12 +10834,12 @@ var ReferralSettlement = ({
10642
10834
  handleSubmit,
10643
10835
  control
10644
10836
  } = methods;
10645
- 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(
10646
10838
  Controller9,
10647
10839
  {
10648
10840
  control,
10649
10841
  name: "bank",
10650
- render: ({ field }) => /* @__PURE__ */ React103.createElement(
10842
+ render: ({ field }) => /* @__PURE__ */ React105.createElement(
10651
10843
  HawaSelect,
10652
10844
  {
10653
10845
  label: "Bank",
@@ -10666,13 +10858,13 @@ var ReferralSettlement = ({
10666
10858
  }
10667
10859
  )
10668
10860
  }
10669
- ))), /* @__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(
10670
10862
  HawaAlert,
10671
10863
  {
10672
10864
  text: "Sorry can't withdraw the money at the moment. Please try again in 2022/11/20",
10673
10865
  severity: "warning"
10674
10866
  }
10675
- )), /* @__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(
10676
10868
  SettlementAccountCard,
10677
10869
  {
10678
10870
  bank: "Al Inma Bank",
@@ -10680,14 +10872,14 @@ var ReferralSettlement = ({
10680
10872
  accountHolder: "Zakher Masri",
10681
10873
  default: true
10682
10874
  }
10683
- ), /* @__PURE__ */ React103.createElement(
10875
+ ), /* @__PURE__ */ React105.createElement(
10684
10876
  SettlementAccountCard,
10685
10877
  {
10686
10878
  bank: "Al Rajihi Bank",
10687
10879
  iban: "SA10228094028098329119",
10688
10880
  accountHolder: "Zakher Masri"
10689
10881
  }
10690
- ), /* @__PURE__ */ React103.createElement(
10882
+ ), /* @__PURE__ */ React105.createElement(
10691
10883
  SettlementAccountCard,
10692
10884
  {
10693
10885
  bank: "Al Inma Bank",
@@ -10697,13 +10889,13 @@ var ReferralSettlement = ({
10697
10889
  )))));
10698
10890
  };
10699
10891
  var SettlementAccountCard = (props) => {
10700
- 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(
10701
10893
  HawaChip,
10702
10894
  {
10703
10895
  label: "Default",
10704
10896
  size: "small"
10705
10897
  }
10706
- ), /* @__PURE__ */ React103.createElement(
10898
+ ), /* @__PURE__ */ React105.createElement(
10707
10899
  HawaMenu,
10708
10900
  {
10709
10901
  size: "small",
@@ -10715,7 +10907,7 @@ var SettlementAccountCard = (props) => {
10715
10907
  ]
10716
10908
  ]
10717
10909
  },
10718
- /* @__PURE__ */ React103.createElement(Button, { variant: "outline", size: "icon" }, /* @__PURE__ */ React103.createElement(
10910
+ /* @__PURE__ */ React105.createElement(Button, { variant: "outline", size: "icon" }, /* @__PURE__ */ React105.createElement(
10719
10911
  "svg",
10720
10912
  {
10721
10913
  "aria-label": "Vertical Three Dots Menu Icon",
@@ -10727,53 +10919,53 @@ var SettlementAccountCard = (props) => {
10727
10919
  height: "1em",
10728
10920
  width: "1em"
10729
10921
  },
10730
- /* @__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" })
10731
10923
  ))
10732
10924
  )));
10733
10925
  };
10734
10926
 
10735
10927
  // src/blocks/Referral/ReferralStats.tsx
10736
- import React104 from "react";
10928
+ import React106 from "react";
10737
10929
  var ReferralStats = ({
10738
10930
  referralLink,
10739
10931
  referralCode,
10740
10932
  withdrawError
10741
10933
  }) => {
10742
- 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(
10743
10935
  HawaAlert,
10744
10936
  {
10745
10937
  text: "Sorry can't withdraw the money at the moment. Please try again in 2022/11/20",
10746
10938
  severity: "warning"
10747
10939
  }
10748
- )), /* @__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(
10749
10941
  ReferralSignUpCard,
10750
10942
  {
10751
10943
  date: "2020/10/11 @ 9:45 pm",
10752
10944
  email: "zakher@sikka.io",
10753
10945
  amount: "3.4 SAR / Month"
10754
10946
  }
10755
- ), /* @__PURE__ */ React104.createElement(
10947
+ ), /* @__PURE__ */ React106.createElement(
10756
10948
  ReferralSignUpCard,
10757
10949
  {
10758
10950
  date: "2022/10/11 @ 9:45 pm",
10759
10951
  email: "zakher@sikka.io",
10760
10952
  amount: "3.4 SAR / Month"
10761
10953
  }
10762
- ), /* @__PURE__ */ React104.createElement(
10954
+ ), /* @__PURE__ */ React106.createElement(
10763
10955
  ReferralSignUpCard,
10764
10956
  {
10765
10957
  date: "2022/10/11 @ 9:45 pm",
10766
10958
  email: "zakher@sikka.io",
10767
10959
  amount: "3.4 SAR / Month"
10768
10960
  }
10769
- ), /* @__PURE__ */ React104.createElement(
10961
+ ), /* @__PURE__ */ React106.createElement(
10770
10962
  ReferralSignUpCard,
10771
10963
  {
10772
10964
  date: "2022/10/11 @ 9:45 pm",
10773
10965
  email: "zakher@sikka.io",
10774
10966
  amount: "3.4 SAR / Month"
10775
10967
  }
10776
- ), /* @__PURE__ */ React104.createElement(
10968
+ ), /* @__PURE__ */ React106.createElement(
10777
10969
  ReferralSignUpCard,
10778
10970
  {
10779
10971
  date: "2022/10/11 @ 9:45 pm",
@@ -10782,26 +10974,26 @@ var ReferralStats = ({
10782
10974
  }
10783
10975
  )))));
10784
10976
  };
10785
- 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));
10786
- 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)));
10787
10979
 
10788
10980
  // src/blocks/Misc/NotFound.tsx
10789
- import React105 from "react";
10981
+ import React107 from "react";
10790
10982
  var NotFound = ({
10791
10983
  variant = "contained",
10792
10984
  texts
10793
10985
  }) => {
10794
- 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"))));
10795
10987
  };
10796
10988
 
10797
10989
  // src/blocks/Misc/EmptyState.tsx
10798
- import React106 from "react";
10990
+ import React108 from "react";
10799
10991
  var EmptyState = ({
10800
10992
  variant = "contained",
10801
10993
  texts,
10802
10994
  onActionClick
10803
10995
  }) => {
10804
- 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(
10805
10997
  "svg",
10806
10998
  {
10807
10999
  stroke: "currentColor",
@@ -10811,36 +11003,36 @@ var EmptyState = ({
10811
11003
  height: "0.35em",
10812
11004
  width: "0.35em"
10813
11005
  },
10814
- /* @__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" })
10815
- )), /* @__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")));
10816
11008
  };
10817
11009
 
10818
11010
  // src/blocks/Misc/Testimonial.tsx
10819
- import React107 from "react";
11011
+ import React109 from "react";
10820
11012
  var Testimonial = (props) => {
10821
- 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(
10822
11014
  "path",
10823
11015
  {
10824
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",
10825
11017
  fill: "#FFFFFF"
10826
11018
  }
10827
- ), /* @__PURE__ */ React107.createElement(
11019
+ ), /* @__PURE__ */ React109.createElement(
10828
11020
  "path",
10829
11021
  {
10830
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",
10831
11023
  fill: "#FFFFFF"
10832
11024
  }
10833
- )), /* @__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")))));
10834
11026
  };
10835
11027
 
10836
11028
  // src/blocks/Misc/LeadGenerator.tsx
10837
- import React108 from "react";
11029
+ import React110 from "react";
10838
11030
  var LeadGenerator = ({
10839
11031
  variant = "contained",
10840
11032
  texts,
10841
11033
  handleNewsletterSub
10842
11034
  }) => {
10843
- 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(
10844
11036
  "form",
10845
11037
  {
10846
11038
  className: "flex flex-row gap-2",
@@ -10849,33 +11041,33 @@ var LeadGenerator = ({
10849
11041
  handleNewsletterSub(e.target[0].value);
10850
11042
  }
10851
11043
  },
10852
- /* @__PURE__ */ React108.createElement(Input, { type: "email", name: "email", placeholder: "example@sikka.io" }),
10853
- /* @__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")
10854
11046
  )));
10855
11047
  };
10856
11048
 
10857
11049
  // src/blocks/Misc/Announcement.tsx
10858
- import React109 from "react";
11050
+ import React111 from "react";
10859
11051
  var Announcement = ({
10860
11052
  variant = "contained",
10861
11053
  onActionClick,
10862
11054
  ...props
10863
11055
  }) => {
10864
- return /* @__PURE__ */ React109.createElement(Card, null, /* @__PURE__ */ React109.createElement(
11056
+ return /* @__PURE__ */ React111.createElement(Card, null, /* @__PURE__ */ React111.createElement(
10865
11057
  CardContent,
10866
11058
  {
10867
11059
  headless: true,
10868
11060
  className: "flex flex-row items-center justify-between"
10869
11061
  },
10870
- /* @__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)),
10871
- /* @__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)
10872
11064
  ));
10873
11065
  };
10874
11066
 
10875
11067
  // src/blocks/Misc/NoPermission.tsx
10876
- import React110 from "react";
11068
+ import React112 from "react";
10877
11069
  var NoPermission = ({ texts }) => {
10878
- 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(
10879
11071
  "svg",
10880
11072
  {
10881
11073
  stroke: "currentColor",
@@ -10885,12 +11077,12 @@ var NoPermission = ({ texts }) => {
10885
11077
  height: "0.35em",
10886
11078
  width: "0.35em"
10887
11079
  },
10888
- /* @__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" })
10889
- ), " "), /* @__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"))));
10890
11082
  };
10891
11083
 
10892
11084
  // src/hooks/useHover.ts
10893
- 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";
10894
11086
  export {
10895
11087
  ActionCard,
10896
11088
  Announcement,
@@ -10997,6 +11189,7 @@ export {
10997
11189
  SignInPhone,
10998
11190
  SignUpForm,
10999
11191
  Skeleton,
11192
+ StickyFeatures,
11000
11193
  SubsectionList,
11001
11194
  Switch,
11002
11195
  Tabs,
@@ -11018,6 +11211,7 @@ export {
11018
11211
  UsageCard,
11019
11212
  UserFeedback,
11020
11213
  UserProfileForm,
11214
+ UserReferralSource,
11021
11215
  UserSettingsForm,
11022
11216
  buttonVariants,
11023
11217
  reducer,