@sikka/hawa 0.1.84 → 0.1.86
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/README.md +1 -1
- package/dist/index.d.mts +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +781 -699
- package/dist/index.mjs +578 -497
- package/dist/styles.css +22 -0
- package/package.json +1 -1
- package/src/blocks/AuthForms/AppLanding.tsx +35 -2
- package/src/elements/ActionCard.tsx +64 -0
- package/src/elements/Icons.tsx +17 -0
- package/src/elements/index.ts +2 -0
- package/src/styles.css +22 -0
package/dist/index.mjs
CHANGED
|
@@ -6391,15 +6391,54 @@ var HawaStoreButtons = (props) => {
|
|
|
6391
6391
|
))), /* @__PURE__ */ React57.createElement("div", null, /* @__PURE__ */ React57.createElement("div", { className: "text-xs" }, "GET IT ON"), /* @__PURE__ */ React57.createElement("div", { className: "font-sans -mt-1 text-xl font-semibold" }, "Google Play")))));
|
|
6392
6392
|
};
|
|
6393
6393
|
|
|
6394
|
+
// src/elements/ActionCard.tsx
|
|
6395
|
+
import React58, { useState as useState30 } from "react";
|
|
6396
|
+
var ActionCard = (props) => {
|
|
6397
|
+
const [hovered, setHovered] = useState30(false);
|
|
6398
|
+
return /* @__PURE__ */ React58.createElement("div", { className: "flex h-full w-full flex-col gap-1 " }, /* @__PURE__ */ React58.createElement(
|
|
6399
|
+
"div",
|
|
6400
|
+
{
|
|
6401
|
+
className: "group relative h-full w-full rounded border bg-background bg-cover bg-center transition-all duration-500 hover:drop-shadow-2xl",
|
|
6402
|
+
style: {
|
|
6403
|
+
backgroundImage: `url(${props.blank ? "" : props.cardImage})`
|
|
6404
|
+
},
|
|
6405
|
+
onMouseEnter: () => setHovered(true),
|
|
6406
|
+
onMouseLeave: () => setHovered(false)
|
|
6407
|
+
},
|
|
6408
|
+
props.blank ? /* @__PURE__ */ React58.createElement("div", { className: "flex h-full flex-col items-center justify-center " }, /* @__PURE__ */ React58.createElement(
|
|
6409
|
+
"svg",
|
|
6410
|
+
{
|
|
6411
|
+
className: "h-10 w-10 text-foreground",
|
|
6412
|
+
stroke: "currentColor",
|
|
6413
|
+
fill: "currentColor",
|
|
6414
|
+
"stroke-width": "0",
|
|
6415
|
+
viewBox: "0 0 24 24",
|
|
6416
|
+
height: "1em",
|
|
6417
|
+
width: "1em",
|
|
6418
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
6419
|
+
},
|
|
6420
|
+
/* @__PURE__ */ React58.createElement("path", { d: "M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z" })
|
|
6421
|
+
)) : /* @__PURE__ */ React58.createElement("div", { className: "absolute inset-0 rounded bg-black opacity-50" }),
|
|
6422
|
+
/* @__PURE__ */ React58.createElement("div", { className: "absolute bottom-2 right-2 z-10 opacity-0 transition-all duration-200 group-hover:opacity-100" }, props.inCardActions),
|
|
6423
|
+
!props.blank && /* @__PURE__ */ React58.createElement("div", { className: "relative p-4" }, /* @__PURE__ */ React58.createElement("h1", { className: "text-white" }, props.title), /* @__PURE__ */ React58.createElement("p", { className: "text-white" }, props.subtitle))
|
|
6424
|
+
), /* @__PURE__ */ React58.createElement(
|
|
6425
|
+
"div",
|
|
6426
|
+
{
|
|
6427
|
+
className: `flex flex-row justify-between text-sm transition-all duration-200 ${hovered ? "opacity-100" : "opacity-0"}`
|
|
6428
|
+
},
|
|
6429
|
+
props.bottomElement
|
|
6430
|
+
));
|
|
6431
|
+
};
|
|
6432
|
+
|
|
6394
6433
|
// src/elements/Carousel.tsx
|
|
6395
|
-
import
|
|
6434
|
+
import React59 from "react";
|
|
6396
6435
|
|
|
6397
6436
|
// src/hooks/useCarousel.ts
|
|
6398
|
-
import { useState as
|
|
6437
|
+
import { useState as useState31, useRef as useRef11 } from "react";
|
|
6399
6438
|
var useCarousel = (imageWidth) => {
|
|
6400
|
-
const [isDragging, setIsDragging] =
|
|
6401
|
-
const [startDragX, setStartDragX] =
|
|
6402
|
-
const [scrollLeft, setScrollLeft] =
|
|
6439
|
+
const [isDragging, setIsDragging] = useState31(false);
|
|
6440
|
+
const [startDragX, setStartDragX] = useState31(0);
|
|
6441
|
+
const [scrollLeft, setScrollLeft] = useState31(0);
|
|
6403
6442
|
const containerRef = useRef11(null);
|
|
6404
6443
|
const findClosestSnapPoint = (scrollLeft2) => {
|
|
6405
6444
|
return Math.round(scrollLeft2 / imageWidth) * imageWidth;
|
|
@@ -6455,7 +6494,7 @@ var Carousel = ({ images }) => {
|
|
|
6455
6494
|
handleMouseUp,
|
|
6456
6495
|
handleMouseMove
|
|
6457
6496
|
} = useCarousel_default(imageWidth);
|
|
6458
|
-
return /* @__PURE__ */
|
|
6497
|
+
return /* @__PURE__ */ React59.createElement(
|
|
6459
6498
|
"div",
|
|
6460
6499
|
{
|
|
6461
6500
|
className: "flex cursor-pointer snap-x gap-4 overflow-x-scroll",
|
|
@@ -6465,7 +6504,7 @@ var Carousel = ({ images }) => {
|
|
|
6465
6504
|
onMouseMove: handleMouseMove,
|
|
6466
6505
|
ref: containerRef
|
|
6467
6506
|
},
|
|
6468
|
-
images.map((image, index) => /* @__PURE__ */
|
|
6507
|
+
images.map((image, index) => /* @__PURE__ */ React59.createElement("div", { key: index, className: "h-40 w-60 flex-shrink-0" }, /* @__PURE__ */ React59.createElement(
|
|
6469
6508
|
"img",
|
|
6470
6509
|
{
|
|
6471
6510
|
src: image,
|
|
@@ -6477,10 +6516,10 @@ var Carousel = ({ images }) => {
|
|
|
6477
6516
|
};
|
|
6478
6517
|
|
|
6479
6518
|
// src/elements/Input.tsx
|
|
6480
|
-
import * as
|
|
6481
|
-
var Input =
|
|
6519
|
+
import * as React60 from "react";
|
|
6520
|
+
var Input = React60.forwardRef(
|
|
6482
6521
|
({ className, preview, type, ...props }, ref) => {
|
|
6483
|
-
return /* @__PURE__ */
|
|
6522
|
+
return /* @__PURE__ */ React60.createElement(
|
|
6484
6523
|
"input",
|
|
6485
6524
|
{
|
|
6486
6525
|
type,
|
|
@@ -6499,19 +6538,19 @@ var Input = React59.forwardRef(
|
|
|
6499
6538
|
Input.displayName = "Input";
|
|
6500
6539
|
|
|
6501
6540
|
// src/elements/InterfaceSettings.tsx
|
|
6502
|
-
import
|
|
6541
|
+
import React61, { useState as useState33 } from "react";
|
|
6503
6542
|
var InterfaceSettings = ({
|
|
6504
6543
|
orientation = "horizontal",
|
|
6505
6544
|
width = "default",
|
|
6506
6545
|
...props
|
|
6507
6546
|
}) => {
|
|
6508
|
-
const [color, setColor] =
|
|
6509
|
-
const [language, setLanguage] =
|
|
6547
|
+
const [color, setColor] = useState33(props.currentColorMode);
|
|
6548
|
+
const [language, setLanguage] = useState33(props.currentLanguage);
|
|
6510
6549
|
let orientationStyle = {
|
|
6511
6550
|
horizontal: "flex flex-row justify-between",
|
|
6512
6551
|
vertical: "flex flex-col items-center gap-2"
|
|
6513
6552
|
};
|
|
6514
|
-
return /* @__PURE__ */
|
|
6553
|
+
return /* @__PURE__ */ React61.createElement("div", { className: cn(orientationStyle[orientation]) }, /* @__PURE__ */ React61.createElement(
|
|
6515
6554
|
HawaRadio,
|
|
6516
6555
|
{
|
|
6517
6556
|
width,
|
|
@@ -6526,7 +6565,7 @@ var InterfaceSettings = ({
|
|
|
6526
6565
|
{ value: "en", label: "English" }
|
|
6527
6566
|
]
|
|
6528
6567
|
}
|
|
6529
|
-
), /* @__PURE__ */
|
|
6568
|
+
), /* @__PURE__ */ React61.createElement(
|
|
6530
6569
|
HawaRadio,
|
|
6531
6570
|
{
|
|
6532
6571
|
width,
|
|
@@ -6539,7 +6578,7 @@ var InterfaceSettings = ({
|
|
|
6539
6578
|
options: [
|
|
6540
6579
|
{
|
|
6541
6580
|
value: "light",
|
|
6542
|
-
label: /* @__PURE__ */
|
|
6581
|
+
label: /* @__PURE__ */ React61.createElement(
|
|
6543
6582
|
"svg",
|
|
6544
6583
|
{
|
|
6545
6584
|
width: "15",
|
|
@@ -6549,7 +6588,7 @@ var InterfaceSettings = ({
|
|
|
6549
6588
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6550
6589
|
className: "h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90"
|
|
6551
6590
|
},
|
|
6552
|
-
/* @__PURE__ */
|
|
6591
|
+
/* @__PURE__ */ React61.createElement(
|
|
6553
6592
|
"path",
|
|
6554
6593
|
{
|
|
6555
6594
|
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",
|
|
@@ -6560,7 +6599,7 @@ var InterfaceSettings = ({
|
|
|
6560
6599
|
},
|
|
6561
6600
|
{
|
|
6562
6601
|
value: "dark",
|
|
6563
|
-
label: /* @__PURE__ */
|
|
6602
|
+
label: /* @__PURE__ */ React61.createElement(
|
|
6564
6603
|
"svg",
|
|
6565
6604
|
{
|
|
6566
6605
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6571,7 +6610,7 @@ var InterfaceSettings = ({
|
|
|
6571
6610
|
stroke: "currentColor",
|
|
6572
6611
|
className: "h-[1.2rem] w-[1.2rem] transition-all dark:rotate-0 dark:scale-100"
|
|
6573
6612
|
},
|
|
6574
|
-
/* @__PURE__ */
|
|
6613
|
+
/* @__PURE__ */ React61.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
|
6575
6614
|
)
|
|
6576
6615
|
}
|
|
6577
6616
|
]
|
|
@@ -6580,9 +6619,9 @@ var InterfaceSettings = ({
|
|
|
6580
6619
|
};
|
|
6581
6620
|
|
|
6582
6621
|
// src/elements/Popover.tsx
|
|
6583
|
-
import * as
|
|
6622
|
+
import * as React62 from "react";
|
|
6584
6623
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
6585
|
-
var PopoverContent =
|
|
6624
|
+
var PopoverContent = React62.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ React62.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React62.createElement(
|
|
6586
6625
|
PopoverPrimitive.Content,
|
|
6587
6626
|
{
|
|
6588
6627
|
ref,
|
|
@@ -6603,7 +6642,7 @@ var Popover = ({
|
|
|
6603
6642
|
align = "center",
|
|
6604
6643
|
side,
|
|
6605
6644
|
sideOffset = 4
|
|
6606
|
-
}) => /* @__PURE__ */
|
|
6645
|
+
}) => /* @__PURE__ */ React62.createElement(PopoverPrimitive.Root, null, /* @__PURE__ */ React62.createElement(PopoverPrimitive.Trigger, null, trigger), /* @__PURE__ */ React62.createElement(
|
|
6607
6646
|
PopoverContent,
|
|
6608
6647
|
{
|
|
6609
6648
|
side,
|
|
@@ -6615,10 +6654,10 @@ var Popover = ({
|
|
|
6615
6654
|
));
|
|
6616
6655
|
|
|
6617
6656
|
// src/elements/Tabs.tsx
|
|
6618
|
-
import * as
|
|
6657
|
+
import * as React63 from "react";
|
|
6619
6658
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
6620
|
-
var TabsContext =
|
|
6621
|
-
var Tabs =
|
|
6659
|
+
var TabsContext = React63.createContext({ orientation: "vertical" });
|
|
6660
|
+
var Tabs = React63.forwardRef(({ className, orientation, ...props }, ref) => /* @__PURE__ */ React63.createElement(
|
|
6622
6661
|
TabsPrimitive.Root,
|
|
6623
6662
|
{
|
|
6624
6663
|
ref,
|
|
@@ -6629,12 +6668,12 @@ var Tabs = React62.forwardRef(({ className, orientation, ...props }, ref) => /*
|
|
|
6629
6668
|
),
|
|
6630
6669
|
...props
|
|
6631
6670
|
},
|
|
6632
|
-
/* @__PURE__ */
|
|
6671
|
+
/* @__PURE__ */ React63.createElement(TabsContext.Provider, { value: { orientation } }, props.children)
|
|
6633
6672
|
));
|
|
6634
6673
|
Tabs.displayName = TabsPrimitive.Root.displayName;
|
|
6635
|
-
var TabsList =
|
|
6636
|
-
const { orientation } =
|
|
6637
|
-
return /* @__PURE__ */
|
|
6674
|
+
var TabsList = React63.forwardRef(({ className, ...props }, ref) => {
|
|
6675
|
+
const { orientation } = React63.useContext(TabsContext);
|
|
6676
|
+
return /* @__PURE__ */ React63.createElement(
|
|
6638
6677
|
TabsPrimitive.List,
|
|
6639
6678
|
{
|
|
6640
6679
|
ref,
|
|
@@ -6648,8 +6687,8 @@ var TabsList = React62.forwardRef(({ className, ...props }, ref) => {
|
|
|
6648
6687
|
);
|
|
6649
6688
|
});
|
|
6650
6689
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
6651
|
-
var TabsTrigger =
|
|
6652
|
-
return /* @__PURE__ */
|
|
6690
|
+
var TabsTrigger = React63.forwardRef(({ className, ...props }, ref) => {
|
|
6691
|
+
return /* @__PURE__ */ React63.createElement(
|
|
6653
6692
|
TabsPrimitive.Trigger,
|
|
6654
6693
|
{
|
|
6655
6694
|
ref,
|
|
@@ -6662,7 +6701,7 @@ var TabsTrigger = React62.forwardRef(({ className, ...props }, ref) => {
|
|
|
6662
6701
|
);
|
|
6663
6702
|
});
|
|
6664
6703
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
6665
|
-
var TabsContent =
|
|
6704
|
+
var TabsContent = React63.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React63.createElement(
|
|
6666
6705
|
TabsPrimitive.Content,
|
|
6667
6706
|
{
|
|
6668
6707
|
ref,
|
|
@@ -6676,10 +6715,10 @@ var TabsContent = React62.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
6676
6715
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
6677
6716
|
|
|
6678
6717
|
// src/elements/Textarea.tsx
|
|
6679
|
-
import * as
|
|
6680
|
-
var Textarea =
|
|
6718
|
+
import * as React64 from "react";
|
|
6719
|
+
var Textarea = React64.forwardRef(
|
|
6681
6720
|
({ className, label, ...props }, ref) => {
|
|
6682
|
-
return /* @__PURE__ */
|
|
6721
|
+
return /* @__PURE__ */ React64.createElement(React64.Fragment, null, label && /* @__PURE__ */ React64.createElement(Label, { htmlFor: props.id }, label), /* @__PURE__ */ React64.createElement(
|
|
6683
6722
|
"textarea",
|
|
6684
6723
|
{
|
|
6685
6724
|
className: cn(
|
|
@@ -6695,10 +6734,10 @@ var Textarea = React63.forwardRef(
|
|
|
6695
6734
|
Textarea.displayName = "Textarea";
|
|
6696
6735
|
|
|
6697
6736
|
// src/elements/Separator.tsx
|
|
6698
|
-
import * as
|
|
6737
|
+
import * as React65 from "react";
|
|
6699
6738
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
6700
|
-
var Separator3 =
|
|
6701
|
-
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */
|
|
6739
|
+
var Separator3 = React65.forwardRef(
|
|
6740
|
+
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ React65.createElement(
|
|
6702
6741
|
SeparatorPrimitive.Root,
|
|
6703
6742
|
{
|
|
6704
6743
|
ref,
|
|
@@ -6716,7 +6755,7 @@ var Separator3 = React64.forwardRef(
|
|
|
6716
6755
|
Separator3.displayName = SeparatorPrimitive.Root.displayName;
|
|
6717
6756
|
|
|
6718
6757
|
// src/elements/Toast.tsx
|
|
6719
|
-
import * as
|
|
6758
|
+
import * as React66 from "react";
|
|
6720
6759
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
6721
6760
|
import { cva as cva3 } from "class-variance-authority";
|
|
6722
6761
|
var toastVariants = cva3(
|
|
@@ -6741,7 +6780,7 @@ var toastVariants = cva3(
|
|
|
6741
6780
|
}
|
|
6742
6781
|
);
|
|
6743
6782
|
var ToastProvider = ToastPrimitives.Provider;
|
|
6744
|
-
var ToastViewport =
|
|
6783
|
+
var ToastViewport = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
|
6745
6784
|
ToastPrimitives.Viewport,
|
|
6746
6785
|
{
|
|
6747
6786
|
ref,
|
|
@@ -6753,8 +6792,8 @@ var ToastViewport = React65.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
6753
6792
|
}
|
|
6754
6793
|
));
|
|
6755
6794
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
6756
|
-
var Toast =
|
|
6757
|
-
return /* @__PURE__ */
|
|
6795
|
+
var Toast = React66.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
|
|
6796
|
+
return /* @__PURE__ */ React66.createElement(
|
|
6758
6797
|
ToastPrimitives.Root,
|
|
6759
6798
|
{
|
|
6760
6799
|
ref,
|
|
@@ -6769,8 +6808,8 @@ var Toast = React65.forwardRef(({ className, variant, severity = "none", directi
|
|
|
6769
6808
|
);
|
|
6770
6809
|
});
|
|
6771
6810
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
6772
|
-
var ToastAction =
|
|
6773
|
-
return /* @__PURE__ */
|
|
6811
|
+
var ToastAction = React66.forwardRef(({ className, ...props }, ref) => {
|
|
6812
|
+
return /* @__PURE__ */ React66.createElement(
|
|
6774
6813
|
ToastPrimitives.Action,
|
|
6775
6814
|
{
|
|
6776
6815
|
ref,
|
|
@@ -6787,7 +6826,7 @@ var ToastAction = React65.forwardRef(({ className, ...props }, ref) => {
|
|
|
6787
6826
|
);
|
|
6788
6827
|
});
|
|
6789
6828
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
6790
|
-
var ToastClose =
|
|
6829
|
+
var ToastClose = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
|
6791
6830
|
ToastPrimitives.Close,
|
|
6792
6831
|
{
|
|
6793
6832
|
ref,
|
|
@@ -6798,7 +6837,7 @@ var ToastClose = React65.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
6798
6837
|
"toast-close": "",
|
|
6799
6838
|
...props
|
|
6800
6839
|
},
|
|
6801
|
-
/* @__PURE__ */
|
|
6840
|
+
/* @__PURE__ */ React66.createElement(
|
|
6802
6841
|
"svg",
|
|
6803
6842
|
{
|
|
6804
6843
|
"aria-label": "Close Icon",
|
|
@@ -6807,7 +6846,7 @@ var ToastClose = React65.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
6807
6846
|
fill: "currentColor",
|
|
6808
6847
|
viewBox: "0 0 20 20"
|
|
6809
6848
|
},
|
|
6810
|
-
/* @__PURE__ */
|
|
6849
|
+
/* @__PURE__ */ React66.createElement(
|
|
6811
6850
|
"path",
|
|
6812
6851
|
{
|
|
6813
6852
|
fillRule: "evenodd",
|
|
@@ -6818,7 +6857,7 @@ var ToastClose = React65.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
6818
6857
|
)
|
|
6819
6858
|
));
|
|
6820
6859
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
6821
|
-
var ToastTitle =
|
|
6860
|
+
var ToastTitle = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
|
6822
6861
|
ToastPrimitives.Title,
|
|
6823
6862
|
{
|
|
6824
6863
|
ref,
|
|
@@ -6827,7 +6866,7 @@ var ToastTitle = React65.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
6827
6866
|
}
|
|
6828
6867
|
));
|
|
6829
6868
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
6830
|
-
var ToastDescription =
|
|
6869
|
+
var ToastDescription = React66.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React66.createElement(
|
|
6831
6870
|
ToastPrimitives.Description,
|
|
6832
6871
|
{
|
|
6833
6872
|
ref,
|
|
@@ -6838,10 +6877,10 @@ var ToastDescription = React65.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
6838
6877
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
6839
6878
|
|
|
6840
6879
|
// src/elements/Toaster.tsx
|
|
6841
|
-
import
|
|
6880
|
+
import React68 from "react";
|
|
6842
6881
|
|
|
6843
6882
|
// src/hooks/useToast.ts
|
|
6844
|
-
import * as
|
|
6883
|
+
import * as React67 from "react";
|
|
6845
6884
|
var TOAST_LIMIT = 5;
|
|
6846
6885
|
var TOAST_REMOVE_DELAY = 1e5;
|
|
6847
6886
|
var count = 0;
|
|
@@ -6937,8 +6976,8 @@ function toast({ ...props }) {
|
|
|
6937
6976
|
};
|
|
6938
6977
|
}
|
|
6939
6978
|
function useToast() {
|
|
6940
|
-
const [state, setState] =
|
|
6941
|
-
|
|
6979
|
+
const [state, setState] = React67.useState(memoryState);
|
|
6980
|
+
React67.useEffect(() => {
|
|
6942
6981
|
listeners.push(setState);
|
|
6943
6982
|
return () => {
|
|
6944
6983
|
const index = listeners.indexOf(setState);
|
|
@@ -6958,29 +6997,29 @@ function useToast() {
|
|
|
6958
6997
|
function Toaster(props) {
|
|
6959
6998
|
const { toasts } = useToast();
|
|
6960
6999
|
let isRTL = props.direction === "rtl";
|
|
6961
|
-
return /* @__PURE__ */
|
|
6962
|
-
return /* @__PURE__ */
|
|
7000
|
+
return /* @__PURE__ */ React68.createElement(ToastProvider, { swipeDirection: isRTL ? "left" : "right" }, toasts.map(function({ id, title, description, action, ...toastProps }) {
|
|
7001
|
+
return /* @__PURE__ */ React68.createElement(Toast, { direction: props.direction, key: id, ...toastProps }, /* @__PURE__ */ React68.createElement(
|
|
6963
7002
|
"div",
|
|
6964
7003
|
{
|
|
6965
7004
|
className: cn("grid gap-1", isRTL ? "text-right" : "text-left")
|
|
6966
7005
|
},
|
|
6967
|
-
title && /* @__PURE__ */
|
|
6968
|
-
description && /* @__PURE__ */
|
|
6969
|
-
), action, /* @__PURE__ */
|
|
6970
|
-
}), /* @__PURE__ */
|
|
7006
|
+
title && /* @__PURE__ */ React68.createElement(ToastTitle, null, title),
|
|
7007
|
+
description && /* @__PURE__ */ React68.createElement(ToastDescription, null, description)
|
|
7008
|
+
), action, /* @__PURE__ */ React68.createElement(ToastClose, null));
|
|
7009
|
+
}), /* @__PURE__ */ React68.createElement(ToastViewport, { className: cn("gap-2", isRTL && "fixed left-0") }));
|
|
6971
7010
|
}
|
|
6972
7011
|
|
|
6973
7012
|
// src/elements/Dialog.tsx
|
|
6974
|
-
import * as
|
|
7013
|
+
import * as React69 from "react";
|
|
6975
7014
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
6976
7015
|
var Dialog = DialogPrimitive.Root;
|
|
6977
7016
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
6978
7017
|
var DialogPortal = ({
|
|
6979
7018
|
className,
|
|
6980
7019
|
...props
|
|
6981
|
-
}) => /* @__PURE__ */
|
|
7020
|
+
}) => /* @__PURE__ */ React69.createElement(DialogPrimitive.Portal, { className: cn(className), ...props });
|
|
6982
7021
|
DialogPortal.displayName = DialogPrimitive.Portal.displayName;
|
|
6983
|
-
var DialogOverlay =
|
|
7022
|
+
var DialogOverlay = React69.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
|
6984
7023
|
DialogPrimitive.Overlay,
|
|
6985
7024
|
{
|
|
6986
7025
|
ref,
|
|
@@ -6992,7 +7031,7 @@ var DialogOverlay = React68.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
6992
7031
|
}
|
|
6993
7032
|
));
|
|
6994
7033
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
6995
|
-
var DialogContent =
|
|
7034
|
+
var DialogContent = React69.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React69.createElement(DialogPortal, null, /* @__PURE__ */ React69.createElement(DialogOverlay, null), /* @__PURE__ */ React69.createElement(
|
|
6996
7035
|
DialogPrimitive.Content,
|
|
6997
7036
|
{
|
|
6998
7037
|
ref,
|
|
@@ -7003,7 +7042,7 @@ var DialogContent = React68.forwardRef(({ className, children, ...props }, ref)
|
|
|
7003
7042
|
...props
|
|
7004
7043
|
},
|
|
7005
7044
|
children,
|
|
7006
|
-
/* @__PURE__ */
|
|
7045
|
+
/* @__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(
|
|
7007
7046
|
"svg",
|
|
7008
7047
|
{
|
|
7009
7048
|
"aria-label": "Close Icon",
|
|
@@ -7012,7 +7051,7 @@ var DialogContent = React68.forwardRef(({ className, children, ...props }, ref)
|
|
|
7012
7051
|
fill: "currentColor",
|
|
7013
7052
|
viewBox: "0 0 20 20"
|
|
7014
7053
|
},
|
|
7015
|
-
/* @__PURE__ */
|
|
7054
|
+
/* @__PURE__ */ React69.createElement(
|
|
7016
7055
|
"path",
|
|
7017
7056
|
{
|
|
7018
7057
|
fillRule: "evenodd",
|
|
@@ -7020,13 +7059,13 @@ var DialogContent = React68.forwardRef(({ className, children, ...props }, ref)
|
|
|
7020
7059
|
clipRule: "evenodd"
|
|
7021
7060
|
}
|
|
7022
7061
|
)
|
|
7023
|
-
), /* @__PURE__ */
|
|
7062
|
+
), /* @__PURE__ */ React69.createElement("span", { className: "sr-only" }, "Close"))
|
|
7024
7063
|
)));
|
|
7025
7064
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
7026
7065
|
var DialogHeader = ({
|
|
7027
7066
|
className,
|
|
7028
7067
|
...props
|
|
7029
|
-
}) => /* @__PURE__ */
|
|
7068
|
+
}) => /* @__PURE__ */ React69.createElement(
|
|
7030
7069
|
"div",
|
|
7031
7070
|
{
|
|
7032
7071
|
className: cn(
|
|
@@ -7040,7 +7079,7 @@ DialogHeader.displayName = "DialogHeader";
|
|
|
7040
7079
|
var DialogFooter = ({
|
|
7041
7080
|
className,
|
|
7042
7081
|
...props
|
|
7043
|
-
}) => /* @__PURE__ */
|
|
7082
|
+
}) => /* @__PURE__ */ React69.createElement(
|
|
7044
7083
|
"div",
|
|
7045
7084
|
{
|
|
7046
7085
|
className: cn(
|
|
@@ -7051,7 +7090,7 @@ var DialogFooter = ({
|
|
|
7051
7090
|
}
|
|
7052
7091
|
);
|
|
7053
7092
|
DialogFooter.displayName = "DialogFooter";
|
|
7054
|
-
var DialogTitle =
|
|
7093
|
+
var DialogTitle = React69.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
|
7055
7094
|
DialogPrimitive.Title,
|
|
7056
7095
|
{
|
|
7057
7096
|
ref,
|
|
@@ -7063,7 +7102,7 @@ var DialogTitle = React68.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
7063
7102
|
}
|
|
7064
7103
|
));
|
|
7065
7104
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
7066
|
-
var DialogDescription =
|
|
7105
|
+
var DialogDescription = React69.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React69.createElement(
|
|
7067
7106
|
DialogPrimitive.Description,
|
|
7068
7107
|
{
|
|
7069
7108
|
ref,
|
|
@@ -7074,32 +7113,32 @@ var DialogDescription = React68.forwardRef(({ className, ...props }, ref) => /*
|
|
|
7074
7113
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
7075
7114
|
|
|
7076
7115
|
// src/layout/Box.tsx
|
|
7077
|
-
import
|
|
7116
|
+
import React70 from "react";
|
|
7078
7117
|
var Box = (props) => {
|
|
7079
|
-
return /* @__PURE__ */
|
|
7118
|
+
return /* @__PURE__ */ React70.createElement("div", null, props.children);
|
|
7080
7119
|
};
|
|
7081
7120
|
|
|
7082
7121
|
// src/layout/HawaBottomAppBar.tsx
|
|
7083
|
-
import
|
|
7122
|
+
import React71 from "react";
|
|
7084
7123
|
var HawaBottomAppBar = (props) => {
|
|
7085
|
-
return /* @__PURE__ */
|
|
7124
|
+
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(
|
|
7086
7125
|
"div",
|
|
7087
7126
|
{
|
|
7088
7127
|
className: "flex w-full flex-row items-center justify-evenly rounded bg-gray-200"
|
|
7089
7128
|
},
|
|
7090
|
-
props.appBarContent.map((singleContent, i) => /* @__PURE__ */
|
|
7129
|
+
props.appBarContent.map((singleContent, i) => /* @__PURE__ */ React71.createElement(
|
|
7091
7130
|
"div",
|
|
7092
7131
|
{
|
|
7093
7132
|
key: i,
|
|
7094
7133
|
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",
|
|
7095
7134
|
onClick: singleContent.action
|
|
7096
7135
|
},
|
|
7097
|
-
/* @__PURE__ */
|
|
7136
|
+
/* @__PURE__ */ React71.createElement(
|
|
7098
7137
|
"div",
|
|
7099
7138
|
null,
|
|
7100
7139
|
singleContent.icon
|
|
7101
7140
|
),
|
|
7102
|
-
/* @__PURE__ */
|
|
7141
|
+
/* @__PURE__ */ React71.createElement(
|
|
7103
7142
|
"div",
|
|
7104
7143
|
{
|
|
7105
7144
|
className: "mt-2 text-sm"
|
|
@@ -7111,13 +7150,13 @@ var HawaBottomAppBar = (props) => {
|
|
|
7111
7150
|
};
|
|
7112
7151
|
|
|
7113
7152
|
// src/layout/HawaSiteLayout.tsx
|
|
7114
|
-
import
|
|
7153
|
+
import React74, { useEffect as useEffect21, useRef as useRef13, useState as useState37 } from "react";
|
|
7115
7154
|
import clsx27 from "clsx";
|
|
7116
7155
|
|
|
7117
7156
|
// src/hooks/useDiscloser.ts
|
|
7118
|
-
import { useState as
|
|
7157
|
+
import { useState as useState35 } from "react";
|
|
7119
7158
|
var useDiscloser = (value = false) => {
|
|
7120
|
-
const [open, setOpen] =
|
|
7159
|
+
const [open, setOpen] = useState35(value);
|
|
7121
7160
|
const onOpen = () => setOpen(true);
|
|
7122
7161
|
const onClose = () => setOpen(false);
|
|
7123
7162
|
return {
|
|
@@ -7129,9 +7168,9 @@ var useDiscloser = (value = false) => {
|
|
|
7129
7168
|
var useDiscloser_default = useDiscloser;
|
|
7130
7169
|
|
|
7131
7170
|
// src/hooks/useBreakpoint.ts
|
|
7132
|
-
import { useState as
|
|
7171
|
+
import { useState as useState36, useEffect as useEffect20 } from "react";
|
|
7133
7172
|
var useBreakpoint = () => {
|
|
7134
|
-
const [breakpoint, setBreakpoint] =
|
|
7173
|
+
const [breakpoint, setBreakpoint] = useState36(window?.innerWidth);
|
|
7135
7174
|
const resize = () => {
|
|
7136
7175
|
setBreakpoint(window?.innerWidth);
|
|
7137
7176
|
};
|
|
@@ -7153,8 +7192,8 @@ var HawaSiteLayout = ({
|
|
|
7153
7192
|
navigationSize = "md",
|
|
7154
7193
|
...props
|
|
7155
7194
|
}) => {
|
|
7156
|
-
const [openSideMenu, setOpenSideMenu] =
|
|
7157
|
-
const [openSubItem, setOpenSubItem] =
|
|
7195
|
+
const [openSideMenu, setOpenSideMenu] = useState37(false);
|
|
7196
|
+
const [openSubItem, setOpenSubItem] = useState37(false);
|
|
7158
7197
|
const { isOpen, onClose, onOpen } = useDiscloser_default(false);
|
|
7159
7198
|
const ref = useRef13(null);
|
|
7160
7199
|
const drawerItemRef = useRef13(null);
|
|
@@ -7164,7 +7203,7 @@ var HawaSiteLayout = ({
|
|
|
7164
7203
|
} else {
|
|
7165
7204
|
size = 1200;
|
|
7166
7205
|
}
|
|
7167
|
-
const [keepOpen, setKeepOpen] =
|
|
7206
|
+
const [keepOpen, setKeepOpen] = useState37(false);
|
|
7168
7207
|
useEffect21(() => {
|
|
7169
7208
|
const handleClickOutside = (event) => {
|
|
7170
7209
|
if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
|
|
@@ -7200,7 +7239,7 @@ var HawaSiteLayout = ({
|
|
|
7200
7239
|
// "w-full",
|
|
7201
7240
|
// "top-14 h-[calc(100%-3.5rem)]",
|
|
7202
7241
|
];
|
|
7203
|
-
return /* @__PURE__ */
|
|
7242
|
+
return /* @__PURE__ */ React74.createElement("div", { className: "h-full w-full" }, /* @__PURE__ */ React74.createElement(
|
|
7204
7243
|
"div",
|
|
7205
7244
|
{
|
|
7206
7245
|
className: clsx27(
|
|
@@ -7213,7 +7252,7 @@ var HawaSiteLayout = ({
|
|
|
7213
7252
|
direction === "rtl" ? "flex-row" : "flex-row-reverse"
|
|
7214
7253
|
)
|
|
7215
7254
|
},
|
|
7216
|
-
size > 600 ? /* @__PURE__ */
|
|
7255
|
+
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(
|
|
7217
7256
|
"div",
|
|
7218
7257
|
{
|
|
7219
7258
|
onClick: () => setOpenSideMenu(!openSideMenu),
|
|
@@ -7221,13 +7260,13 @@ var HawaSiteLayout = ({
|
|
|
7221
7260
|
className: "cursor-pointer rounded bg-none text-gray-600 transition-all hover:text-black"
|
|
7222
7261
|
},
|
|
7223
7262
|
label
|
|
7224
|
-
))) : /* @__PURE__ */
|
|
7263
|
+
))) : /* @__PURE__ */ React74.createElement("div", { className: "flex items-center justify-center" }, /* @__PURE__ */ React74.createElement(
|
|
7225
7264
|
"div",
|
|
7226
7265
|
{
|
|
7227
7266
|
onClick: () => setOpenSideMenu(!openSideMenu),
|
|
7228
7267
|
className: "cursor-pointer rounded p-1 transition-all hover:bg-gray-100"
|
|
7229
7268
|
},
|
|
7230
|
-
/* @__PURE__ */
|
|
7269
|
+
/* @__PURE__ */ React74.createElement(
|
|
7231
7270
|
"svg",
|
|
7232
7271
|
{
|
|
7233
7272
|
stroke: "currentColor",
|
|
@@ -7238,7 +7277,7 @@ var HawaSiteLayout = ({
|
|
|
7238
7277
|
height: "1.6em",
|
|
7239
7278
|
width: "1.6em"
|
|
7240
7279
|
},
|
|
7241
|
-
/* @__PURE__ */
|
|
7280
|
+
/* @__PURE__ */ React74.createElement(
|
|
7242
7281
|
"path",
|
|
7243
7282
|
{
|
|
7244
7283
|
fillRule: "evenodd",
|
|
@@ -7248,15 +7287,15 @@ var HawaSiteLayout = ({
|
|
|
7248
7287
|
)
|
|
7249
7288
|
),
|
|
7250
7289
|
" "
|
|
7251
|
-
), props.pageTitle ? /* @__PURE__ */
|
|
7252
|
-
/* @__PURE__ */
|
|
7290
|
+
), props.pageTitle ? /* @__PURE__ */ React74.createElement("div", null, props.pageTitle) : /* @__PURE__ */ React74.createElement("div", null)),
|
|
7291
|
+
/* @__PURE__ */ React74.createElement("div", { className: "h-full" }, /* @__PURE__ */ React74.createElement(
|
|
7253
7292
|
"img",
|
|
7254
7293
|
{
|
|
7255
7294
|
className: "h-full max-h-8 ",
|
|
7256
7295
|
src: `https://sikka-images.s3.ap-southeast-1.amazonaws.com/seera/seera-horizontal-wordmark-${direction === "rtl" ? "ar" : "en"}-white.svg`
|
|
7257
7296
|
}
|
|
7258
7297
|
))
|
|
7259
|
-
), /* @__PURE__ */
|
|
7298
|
+
), /* @__PURE__ */ React74.createElement(
|
|
7260
7299
|
"div",
|
|
7261
7300
|
{
|
|
7262
7301
|
className: clsx27(" relative top-14")
|
|
@@ -7266,17 +7305,17 @@ var HawaSiteLayout = ({
|
|
|
7266
7305
|
};
|
|
7267
7306
|
|
|
7268
7307
|
// src/layout/AppLayout.tsx
|
|
7269
|
-
import
|
|
7308
|
+
import React76, { useEffect as useEffect22, useRef as useRef14, useState as useState38 } from "react";
|
|
7270
7309
|
import clsx28 from "clsx";
|
|
7271
7310
|
|
|
7272
7311
|
// src/layout/Sidebar.tsx
|
|
7273
|
-
import * as
|
|
7312
|
+
import * as React75 from "react";
|
|
7274
7313
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
7275
7314
|
var Accordion = AccordionPrimitive.Root;
|
|
7276
7315
|
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";
|
|
7277
|
-
var AccordionItem =
|
|
7316
|
+
var AccordionItem = React75.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React75.createElement(AccordionPrimitive.Item, { ref, className: cn(className), ...props }));
|
|
7278
7317
|
AccordionItem.displayName = "AccordionItem";
|
|
7279
|
-
var AccordionTrigger =
|
|
7318
|
+
var AccordionTrigger = React75.forwardRef(({ className, showArrow, children, ...props }, ref) => /* @__PURE__ */ React75.createElement(AccordionPrimitive.Header, { className: "flex" }, /* @__PURE__ */ React75.createElement(
|
|
7280
7319
|
AccordionPrimitive.Trigger,
|
|
7281
7320
|
{
|
|
7282
7321
|
ref,
|
|
@@ -7284,7 +7323,7 @@ var AccordionTrigger = React74.forwardRef(({ className, showArrow, children, ...
|
|
|
7284
7323
|
...props
|
|
7285
7324
|
},
|
|
7286
7325
|
children,
|
|
7287
|
-
showArrow && /* @__PURE__ */
|
|
7326
|
+
showArrow && /* @__PURE__ */ React75.createElement(
|
|
7288
7327
|
"svg",
|
|
7289
7328
|
{
|
|
7290
7329
|
"aria-label": "Chevron Right Icon",
|
|
@@ -7295,7 +7334,7 @@ var AccordionTrigger = React74.forwardRef(({ className, showArrow, children, ...
|
|
|
7295
7334
|
width: "1em",
|
|
7296
7335
|
className: "h-4 w-4 shrink-0 rotate-90 transition-transform duration-200"
|
|
7297
7336
|
},
|
|
7298
|
-
/* @__PURE__ */
|
|
7337
|
+
/* @__PURE__ */ React75.createElement(
|
|
7299
7338
|
"path",
|
|
7300
7339
|
{
|
|
7301
7340
|
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"
|
|
@@ -7304,7 +7343,7 @@ var AccordionTrigger = React74.forwardRef(({ className, showArrow, children, ...
|
|
|
7304
7343
|
)
|
|
7305
7344
|
)));
|
|
7306
7345
|
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
7307
|
-
var AccordionContent =
|
|
7346
|
+
var AccordionContent = React75.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React75.createElement(
|
|
7308
7347
|
AccordionPrimitive.Content,
|
|
7309
7348
|
{
|
|
7310
7349
|
ref,
|
|
@@ -7314,7 +7353,7 @@ var AccordionContent = React74.forwardRef(({ className, children, ...props }, re
|
|
|
7314
7353
|
),
|
|
7315
7354
|
...props
|
|
7316
7355
|
},
|
|
7317
|
-
/* @__PURE__ */
|
|
7356
|
+
/* @__PURE__ */ React75.createElement("div", null, children)
|
|
7318
7357
|
));
|
|
7319
7358
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
7320
7359
|
var SidebarGroup = ({
|
|
@@ -7328,7 +7367,7 @@ var SidebarGroup = ({
|
|
|
7328
7367
|
direction,
|
|
7329
7368
|
isOpen
|
|
7330
7369
|
}) => {
|
|
7331
|
-
return /* @__PURE__ */
|
|
7370
|
+
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(
|
|
7332
7371
|
Accordion,
|
|
7333
7372
|
{
|
|
7334
7373
|
value: openedItem,
|
|
@@ -7339,7 +7378,7 @@ var SidebarGroup = ({
|
|
|
7339
7378
|
collapsible: true,
|
|
7340
7379
|
className: "flex flex-col gap-1"
|
|
7341
7380
|
},
|
|
7342
|
-
items.map((item, idx) => /* @__PURE__ */
|
|
7381
|
+
items.map((item, idx) => /* @__PURE__ */ React75.createElement(
|
|
7343
7382
|
SidebarItem,
|
|
7344
7383
|
{
|
|
7345
7384
|
isOpen,
|
|
@@ -7365,20 +7404,20 @@ var SidebarItem = ({
|
|
|
7365
7404
|
return isSelected && isSelected[index] === value ? "bg-primary text-primary-foreground cursor-default" : "hover:bg-primary/10";
|
|
7366
7405
|
};
|
|
7367
7406
|
if (item.subitems) {
|
|
7368
|
-
return /* @__PURE__ */
|
|
7407
|
+
return /* @__PURE__ */ React75.createElement(
|
|
7369
7408
|
AccordionItem,
|
|
7370
7409
|
{
|
|
7371
7410
|
value: item.value,
|
|
7372
7411
|
className: "overflow-x-clip",
|
|
7373
7412
|
dir: direction
|
|
7374
7413
|
},
|
|
7375
|
-
/* @__PURE__ */
|
|
7414
|
+
/* @__PURE__ */ React75.createElement(
|
|
7376
7415
|
AccordionTrigger,
|
|
7377
7416
|
{
|
|
7378
7417
|
className: cn(getSelectedStyle(item.value, 0)),
|
|
7379
7418
|
showArrow: isOpen
|
|
7380
7419
|
},
|
|
7381
|
-
/* @__PURE__ */
|
|
7420
|
+
/* @__PURE__ */ React75.createElement(
|
|
7382
7421
|
"div",
|
|
7383
7422
|
{
|
|
7384
7423
|
className: cn(
|
|
@@ -7387,7 +7426,7 @@ var SidebarItem = ({
|
|
|
7387
7426
|
)
|
|
7388
7427
|
},
|
|
7389
7428
|
item.icon,
|
|
7390
|
-
isOpen && /* @__PURE__ */
|
|
7429
|
+
isOpen && /* @__PURE__ */ React75.createElement(
|
|
7391
7430
|
"span",
|
|
7392
7431
|
{
|
|
7393
7432
|
className: cn(
|
|
@@ -7399,12 +7438,12 @@ var SidebarItem = ({
|
|
|
7399
7438
|
)
|
|
7400
7439
|
)
|
|
7401
7440
|
),
|
|
7402
|
-
item.subitems && /* @__PURE__ */
|
|
7441
|
+
item.subitems && /* @__PURE__ */ React75.createElement(AccordionContent, { className: " mt-1 h-full rounded " }, /* @__PURE__ */ React75.createElement(
|
|
7403
7442
|
"div",
|
|
7404
7443
|
{
|
|
7405
7444
|
className: cn("flex h-full flex-col gap-2 bg-foreground/5 p-1")
|
|
7406
7445
|
},
|
|
7407
|
-
item.subitems.map((subitem, idx) => /* @__PURE__ */
|
|
7446
|
+
item.subitems.map((subitem, idx) => /* @__PURE__ */ React75.createElement(
|
|
7408
7447
|
"li",
|
|
7409
7448
|
{
|
|
7410
7449
|
key: idx,
|
|
@@ -7425,7 +7464,7 @@ var SidebarItem = ({
|
|
|
7425
7464
|
))
|
|
7426
7465
|
);
|
|
7427
7466
|
} else {
|
|
7428
|
-
return /* @__PURE__ */
|
|
7467
|
+
return /* @__PURE__ */ React75.createElement(
|
|
7429
7468
|
"div",
|
|
7430
7469
|
{
|
|
7431
7470
|
dir: direction,
|
|
@@ -7440,7 +7479,7 @@ var SidebarItem = ({
|
|
|
7440
7479
|
"overflow-x-clip "
|
|
7441
7480
|
)
|
|
7442
7481
|
},
|
|
7443
|
-
/* @__PURE__ */
|
|
7482
|
+
/* @__PURE__ */ React75.createElement("div", { className: "flex flex-row items-center gap-2 " }, item.icon, /* @__PURE__ */ React75.createElement(
|
|
7444
7483
|
"span",
|
|
7445
7484
|
{
|
|
7446
7485
|
className: cn(
|
|
@@ -7481,8 +7520,8 @@ var AppLayout = ({
|
|
|
7481
7520
|
};
|
|
7482
7521
|
const ref = useRef14(null);
|
|
7483
7522
|
const isRTL = direction === "rtl";
|
|
7484
|
-
const [openedSidebarItem, setOpenedSidebarItem] =
|
|
7485
|
-
const [selectedItem, setSelectedItem] =
|
|
7523
|
+
const [openedSidebarItem, setOpenedSidebarItem] = useState38("");
|
|
7524
|
+
const [selectedItem, setSelectedItem] = useState38(
|
|
7486
7525
|
currentPage ? currentPage : []
|
|
7487
7526
|
);
|
|
7488
7527
|
let size;
|
|
@@ -7491,8 +7530,8 @@ var AppLayout = ({
|
|
|
7491
7530
|
} else {
|
|
7492
7531
|
size = 1200;
|
|
7493
7532
|
}
|
|
7494
|
-
const [keepOpen, setKeepOpen] =
|
|
7495
|
-
const [openSideMenu, setOpenSideMenu] =
|
|
7533
|
+
const [keepOpen, setKeepOpen] = useState38(size > 600 ? true : false);
|
|
7534
|
+
const [openSideMenu, setOpenSideMenu] = useState38(size > 600 ? true : false);
|
|
7496
7535
|
let drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
|
|
7497
7536
|
useEffect22(() => {
|
|
7498
7537
|
const handleClickOutside = (event) => {
|
|
@@ -7505,7 +7544,7 @@ var AppLayout = ({
|
|
|
7505
7544
|
document.removeEventListener("click", handleClickOutside, true);
|
|
7506
7545
|
};
|
|
7507
7546
|
}, [keepOpen]);
|
|
7508
|
-
return /* @__PURE__ */
|
|
7547
|
+
return /* @__PURE__ */ React76.createElement("div", { className: "fixed left-0" }, props.topBar && /* @__PURE__ */ React76.createElement(
|
|
7509
7548
|
"div",
|
|
7510
7549
|
{
|
|
7511
7550
|
className: clsx28(
|
|
@@ -7513,7 +7552,7 @@ var AppLayout = ({
|
|
|
7513
7552
|
isRTL ? "flex-row-reverse" : "flex-row"
|
|
7514
7553
|
)
|
|
7515
7554
|
},
|
|
7516
|
-
size > 600 ? /* @__PURE__ */
|
|
7555
|
+
size > 600 ? /* @__PURE__ */ React76.createElement(
|
|
7517
7556
|
"div",
|
|
7518
7557
|
{
|
|
7519
7558
|
className: clsx28(
|
|
@@ -7529,19 +7568,19 @@ var AppLayout = ({
|
|
|
7529
7568
|
props.pageTitle
|
|
7530
7569
|
) : (
|
|
7531
7570
|
// Mobile Drawer Menu Button
|
|
7532
|
-
/* @__PURE__ */
|
|
7571
|
+
/* @__PURE__ */ React76.createElement(
|
|
7533
7572
|
"div",
|
|
7534
7573
|
{
|
|
7535
7574
|
dir: direction,
|
|
7536
7575
|
className: "flex items-center justify-center gap-0.5"
|
|
7537
7576
|
},
|
|
7538
|
-
/* @__PURE__ */
|
|
7577
|
+
/* @__PURE__ */ React76.createElement(
|
|
7539
7578
|
"div",
|
|
7540
7579
|
{
|
|
7541
7580
|
onClick: () => setOpenSideMenu(true),
|
|
7542
7581
|
className: "z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100"
|
|
7543
7582
|
},
|
|
7544
|
-
/* @__PURE__ */
|
|
7583
|
+
/* @__PURE__ */ React76.createElement(
|
|
7545
7584
|
"svg",
|
|
7546
7585
|
{
|
|
7547
7586
|
stroke: "currentColor",
|
|
@@ -7552,7 +7591,7 @@ var AppLayout = ({
|
|
|
7552
7591
|
height: "1.6em",
|
|
7553
7592
|
width: "1.6em"
|
|
7554
7593
|
},
|
|
7555
|
-
/* @__PURE__ */
|
|
7594
|
+
/* @__PURE__ */ React76.createElement(
|
|
7556
7595
|
"path",
|
|
7557
7596
|
{
|
|
7558
7597
|
fillRule: "evenodd",
|
|
@@ -7562,10 +7601,10 @@ var AppLayout = ({
|
|
|
7562
7601
|
)
|
|
7563
7602
|
)
|
|
7564
7603
|
),
|
|
7565
|
-
props.pageTitle ? /* @__PURE__ */
|
|
7604
|
+
props.pageTitle ? /* @__PURE__ */ React76.createElement("div", { className: "text-sm" }, props.pageTitle) : /* @__PURE__ */ React76.createElement("div", null)
|
|
7566
7605
|
)
|
|
7567
7606
|
),
|
|
7568
|
-
/* @__PURE__ */
|
|
7607
|
+
/* @__PURE__ */ React76.createElement(
|
|
7569
7608
|
"div",
|
|
7570
7609
|
{
|
|
7571
7610
|
className: clsx28(
|
|
@@ -7573,16 +7612,16 @@ var AppLayout = ({
|
|
|
7573
7612
|
isRTL ? "flex-row-reverse" : "flex-row"
|
|
7574
7613
|
)
|
|
7575
7614
|
},
|
|
7576
|
-
size > 600 ? /* @__PURE__ */
|
|
7615
|
+
size > 600 ? /* @__PURE__ */ React76.createElement(
|
|
7577
7616
|
"div",
|
|
7578
7617
|
{
|
|
7579
7618
|
className: isRTL ? "text-left text-xs" : "text-right text-xs"
|
|
7580
7619
|
},
|
|
7581
|
-
/* @__PURE__ */
|
|
7620
|
+
/* @__PURE__ */ React76.createElement("div", { className: "font-bold" }, props.username),
|
|
7582
7621
|
" ",
|
|
7583
|
-
/* @__PURE__ */
|
|
7622
|
+
/* @__PURE__ */ React76.createElement("div", null, props.email)
|
|
7584
7623
|
) : null,
|
|
7585
|
-
/* @__PURE__ */
|
|
7624
|
+
/* @__PURE__ */ React76.createElement(
|
|
7586
7625
|
DropdownMenu,
|
|
7587
7626
|
{
|
|
7588
7627
|
triggerClassname: "mx-2",
|
|
@@ -7591,7 +7630,7 @@ var AppLayout = ({
|
|
|
7591
7630
|
side: "bottom",
|
|
7592
7631
|
sideOffset: 5,
|
|
7593
7632
|
direction: isRTL ? "rtl" : "ltr",
|
|
7594
|
-
trigger: /* @__PURE__ */
|
|
7633
|
+
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(
|
|
7595
7634
|
"svg",
|
|
7596
7635
|
{
|
|
7597
7636
|
"aria-label": "Avatar Icon",
|
|
@@ -7599,7 +7638,7 @@ var AppLayout = ({
|
|
|
7599
7638
|
fill: "currentColor",
|
|
7600
7639
|
viewBox: "0 0 20 20"
|
|
7601
7640
|
},
|
|
7602
|
-
/* @__PURE__ */
|
|
7641
|
+
/* @__PURE__ */ React76.createElement(
|
|
7603
7642
|
"path",
|
|
7604
7643
|
{
|
|
7605
7644
|
fillRule: "evenodd",
|
|
@@ -7613,7 +7652,7 @@ var AppLayout = ({
|
|
|
7613
7652
|
}
|
|
7614
7653
|
)
|
|
7615
7654
|
)
|
|
7616
|
-
), /* @__PURE__ */
|
|
7655
|
+
), /* @__PURE__ */ React76.createElement(
|
|
7617
7656
|
"div",
|
|
7618
7657
|
{
|
|
7619
7658
|
className: clsx28(
|
|
@@ -7636,7 +7675,7 @@ var AppLayout = ({
|
|
|
7636
7675
|
},
|
|
7637
7676
|
ref
|
|
7638
7677
|
},
|
|
7639
|
-
/* @__PURE__ */
|
|
7678
|
+
/* @__PURE__ */ React76.createElement(
|
|
7640
7679
|
"div",
|
|
7641
7680
|
{
|
|
7642
7681
|
dir: direction,
|
|
@@ -7648,7 +7687,7 @@ var AppLayout = ({
|
|
|
7648
7687
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
|
7649
7688
|
}
|
|
7650
7689
|
},
|
|
7651
|
-
/* @__PURE__ */
|
|
7690
|
+
/* @__PURE__ */ React76.createElement(
|
|
7652
7691
|
"img",
|
|
7653
7692
|
{
|
|
7654
7693
|
className: clsx28(
|
|
@@ -7658,7 +7697,7 @@ var AppLayout = ({
|
|
|
7658
7697
|
src: props.logoLink
|
|
7659
7698
|
}
|
|
7660
7699
|
),
|
|
7661
|
-
size > 600 ? /* @__PURE__ */
|
|
7700
|
+
size > 600 ? /* @__PURE__ */ React76.createElement(
|
|
7662
7701
|
"img",
|
|
7663
7702
|
{
|
|
7664
7703
|
className: clsx28(
|
|
@@ -7671,7 +7710,7 @@ var AppLayout = ({
|
|
|
7671
7710
|
}
|
|
7672
7711
|
) : null
|
|
7673
7712
|
),
|
|
7674
|
-
/* @__PURE__ */
|
|
7713
|
+
/* @__PURE__ */ React76.createElement(
|
|
7675
7714
|
"div",
|
|
7676
7715
|
{
|
|
7677
7716
|
className: clsx28(
|
|
@@ -7684,7 +7723,7 @@ var AppLayout = ({
|
|
|
7684
7723
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
|
7685
7724
|
}
|
|
7686
7725
|
},
|
|
7687
|
-
/* @__PURE__ */
|
|
7726
|
+
/* @__PURE__ */ React76.createElement(
|
|
7688
7727
|
SidebarGroup,
|
|
7689
7728
|
{
|
|
7690
7729
|
direction,
|
|
@@ -7704,7 +7743,7 @@ var AppLayout = ({
|
|
|
7704
7743
|
}
|
|
7705
7744
|
)
|
|
7706
7745
|
),
|
|
7707
|
-
/* @__PURE__ */
|
|
7746
|
+
/* @__PURE__ */ React76.createElement(
|
|
7708
7747
|
"div",
|
|
7709
7748
|
{
|
|
7710
7749
|
className: clsx28(
|
|
@@ -7716,22 +7755,22 @@ var AppLayout = ({
|
|
|
7716
7755
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
|
7717
7756
|
}
|
|
7718
7757
|
},
|
|
7719
|
-
DrawerFooterActions && openSideMenu ? /* @__PURE__ */
|
|
7720
|
-
size > 600 && openSideMenu ? /* @__PURE__ */
|
|
7758
|
+
DrawerFooterActions && openSideMenu ? /* @__PURE__ */ React76.createElement(React76.Fragment, null, DrawerFooterActions) : null,
|
|
7759
|
+
size > 600 && openSideMenu ? /* @__PURE__ */ React76.createElement(
|
|
7721
7760
|
Tooltip,
|
|
7722
7761
|
{
|
|
7723
7762
|
side: "left",
|
|
7724
7763
|
delayDuration: 500,
|
|
7725
7764
|
content: keepOpen ? props.texts?.collapseSidebar || "Collapse Sidebar" : props.texts?.expandSidebar || "Expand Sidebar"
|
|
7726
7765
|
},
|
|
7727
|
-
/* @__PURE__ */
|
|
7766
|
+
/* @__PURE__ */ React76.createElement(
|
|
7728
7767
|
Button,
|
|
7729
7768
|
{
|
|
7730
7769
|
variant: "light",
|
|
7731
7770
|
onClick: () => setKeepOpen(!keepOpen),
|
|
7732
7771
|
size: "smallIcon"
|
|
7733
7772
|
},
|
|
7734
|
-
/* @__PURE__ */
|
|
7773
|
+
/* @__PURE__ */ React76.createElement(
|
|
7735
7774
|
"svg",
|
|
7736
7775
|
{
|
|
7737
7776
|
className: clsx28(
|
|
@@ -7741,7 +7780,7 @@ var AppLayout = ({
|
|
|
7741
7780
|
fill: "currentColor",
|
|
7742
7781
|
viewBox: "0 0 20 20"
|
|
7743
7782
|
},
|
|
7744
|
-
/* @__PURE__ */
|
|
7783
|
+
/* @__PURE__ */ React76.createElement(
|
|
7745
7784
|
"path",
|
|
7746
7785
|
{
|
|
7747
7786
|
fillRule: "evenodd",
|
|
@@ -7753,7 +7792,7 @@ var AppLayout = ({
|
|
|
7753
7792
|
)
|
|
7754
7793
|
) : null
|
|
7755
7794
|
)
|
|
7756
|
-
), /* @__PURE__ */
|
|
7795
|
+
), /* @__PURE__ */ React76.createElement(
|
|
7757
7796
|
"div",
|
|
7758
7797
|
{
|
|
7759
7798
|
className: "fixed overflow-y-auto transition-all",
|
|
@@ -7784,7 +7823,7 @@ var AppLayout = ({
|
|
|
7784
7823
|
};
|
|
7785
7824
|
|
|
7786
7825
|
// src/layout/HawaAppLayout.tsx
|
|
7787
|
-
import
|
|
7826
|
+
import React77, { useEffect as useEffect23, useRef as useRef15, useState as useState39 } from "react";
|
|
7788
7827
|
import clsx29 from "clsx";
|
|
7789
7828
|
import { FaChevronRight } from "react-icons/fa";
|
|
7790
7829
|
var HawaAppLayout = ({
|
|
@@ -7793,10 +7832,10 @@ var HawaAppLayout = ({
|
|
|
7793
7832
|
onSettingsClick,
|
|
7794
7833
|
...props
|
|
7795
7834
|
}) => {
|
|
7796
|
-
const [openSideMenu, setOpenSideMenu] =
|
|
7797
|
-
const [openSubItem, setOpenSubitem] =
|
|
7835
|
+
const [openSideMenu, setOpenSideMenu] = useState39(false);
|
|
7836
|
+
const [openSubItem, setOpenSubitem] = useState39("");
|
|
7798
7837
|
const { isOpen, onClose, onOpen } = useDiscloser_default(false);
|
|
7799
|
-
const [keepOpen, setKeepOpen] =
|
|
7838
|
+
const [keepOpen, setKeepOpen] = useState39(false);
|
|
7800
7839
|
const ref = useRef15(null);
|
|
7801
7840
|
const isRTL = direction === "rtl";
|
|
7802
7841
|
let size;
|
|
@@ -7830,7 +7869,7 @@ var HawaAppLayout = ({
|
|
|
7830
7869
|
}
|
|
7831
7870
|
};
|
|
7832
7871
|
let drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
|
|
7833
|
-
return /* @__PURE__ */
|
|
7872
|
+
return /* @__PURE__ */ React77.createElement("div", { className: "fixed" }, props.topBar && /* @__PURE__ */ React77.createElement(
|
|
7834
7873
|
"div",
|
|
7835
7874
|
{
|
|
7836
7875
|
className: clsx29(
|
|
@@ -7840,7 +7879,7 @@ var HawaAppLayout = ({
|
|
|
7840
7879
|
},
|
|
7841
7880
|
size > 600 ? props.pageTitle ? (
|
|
7842
7881
|
// Title of the page
|
|
7843
|
-
/* @__PURE__ */
|
|
7882
|
+
/* @__PURE__ */ React77.createElement(
|
|
7844
7883
|
"div",
|
|
7845
7884
|
{
|
|
7846
7885
|
className: clsx29(
|
|
@@ -7856,19 +7895,19 @@ var HawaAppLayout = ({
|
|
|
7856
7895
|
)
|
|
7857
7896
|
) : null : (
|
|
7858
7897
|
// Mobile Drawer Menu Button
|
|
7859
|
-
/* @__PURE__ */
|
|
7898
|
+
/* @__PURE__ */ React77.createElement(
|
|
7860
7899
|
"div",
|
|
7861
7900
|
{
|
|
7862
7901
|
dir: direction,
|
|
7863
7902
|
className: "flex items-center justify-center gap-0.5 "
|
|
7864
7903
|
},
|
|
7865
|
-
/* @__PURE__ */
|
|
7904
|
+
/* @__PURE__ */ React77.createElement(
|
|
7866
7905
|
"div",
|
|
7867
7906
|
{
|
|
7868
7907
|
onClick: () => setOpenSideMenu(true),
|
|
7869
7908
|
className: "z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100"
|
|
7870
7909
|
},
|
|
7871
|
-
/* @__PURE__ */
|
|
7910
|
+
/* @__PURE__ */ React77.createElement(
|
|
7872
7911
|
"svg",
|
|
7873
7912
|
{
|
|
7874
7913
|
stroke: "currentColor",
|
|
@@ -7879,7 +7918,7 @@ var HawaAppLayout = ({
|
|
|
7879
7918
|
height: "1.6em",
|
|
7880
7919
|
width: "1.6em"
|
|
7881
7920
|
},
|
|
7882
|
-
/* @__PURE__ */
|
|
7921
|
+
/* @__PURE__ */ React77.createElement(
|
|
7883
7922
|
"path",
|
|
7884
7923
|
{
|
|
7885
7924
|
fillRule: "evenodd",
|
|
@@ -7890,10 +7929,10 @@ var HawaAppLayout = ({
|
|
|
7890
7929
|
),
|
|
7891
7930
|
" "
|
|
7892
7931
|
),
|
|
7893
|
-
props.pageTitle ? /* @__PURE__ */
|
|
7932
|
+
props.pageTitle ? /* @__PURE__ */ React77.createElement("div", { className: "text-sm" }, props.pageTitle) : /* @__PURE__ */ React77.createElement("div", null)
|
|
7894
7933
|
)
|
|
7895
7934
|
),
|
|
7896
|
-
/* @__PURE__ */
|
|
7935
|
+
/* @__PURE__ */ React77.createElement(
|
|
7897
7936
|
"div",
|
|
7898
7937
|
{
|
|
7899
7938
|
className: clsx29(
|
|
@@ -7901,18 +7940,18 @@ var HawaAppLayout = ({
|
|
|
7901
7940
|
isRTL ? "flex-row-reverse" : "flex-row"
|
|
7902
7941
|
)
|
|
7903
7942
|
},
|
|
7904
|
-
size > 600 ? /* @__PURE__ */
|
|
7943
|
+
size > 600 ? /* @__PURE__ */ React77.createElement(
|
|
7905
7944
|
"div",
|
|
7906
7945
|
{
|
|
7907
7946
|
className: clsx29(
|
|
7908
7947
|
isRTL ? "text-left text-xs" : "text-right text-xs"
|
|
7909
7948
|
)
|
|
7910
7949
|
},
|
|
7911
|
-
/* @__PURE__ */
|
|
7950
|
+
/* @__PURE__ */ React77.createElement("div", { className: "font-bold" }, props.username),
|
|
7912
7951
|
" ",
|
|
7913
|
-
/* @__PURE__ */
|
|
7952
|
+
/* @__PURE__ */ React77.createElement("div", null, props.email)
|
|
7914
7953
|
) : null,
|
|
7915
|
-
/* @__PURE__ */
|
|
7954
|
+
/* @__PURE__ */ React77.createElement(
|
|
7916
7955
|
HawaMenu,
|
|
7917
7956
|
{
|
|
7918
7957
|
direction,
|
|
@@ -7922,14 +7961,14 @@ var HawaAppLayout = ({
|
|
|
7922
7961
|
menuItems: props.profileMenuItems,
|
|
7923
7962
|
position: "bottom-left"
|
|
7924
7963
|
},
|
|
7925
|
-
/* @__PURE__ */
|
|
7964
|
+
/* @__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(
|
|
7926
7965
|
"svg",
|
|
7927
7966
|
{
|
|
7928
7967
|
className: "absolute -left-1 h-10 w-10 text-gray-400",
|
|
7929
7968
|
fill: "currentColor",
|
|
7930
7969
|
viewBox: "0 0 20 20"
|
|
7931
7970
|
},
|
|
7932
|
-
/* @__PURE__ */
|
|
7971
|
+
/* @__PURE__ */ React77.createElement(
|
|
7933
7972
|
"path",
|
|
7934
7973
|
{
|
|
7935
7974
|
fillRule: "evenodd",
|
|
@@ -7940,7 +7979,7 @@ var HawaAppLayout = ({
|
|
|
7940
7979
|
))
|
|
7941
7980
|
)
|
|
7942
7981
|
)
|
|
7943
|
-
), /* @__PURE__ */
|
|
7982
|
+
), /* @__PURE__ */ React77.createElement(
|
|
7944
7983
|
"div",
|
|
7945
7984
|
{
|
|
7946
7985
|
onMouseEnter: () => {
|
|
@@ -7957,7 +7996,7 @@ var HawaAppLayout = ({
|
|
|
7957
7996
|
width: size > 600 ? openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : `${drawerSizeStyle["closed"][drawerSize]}px` : openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : "0px"
|
|
7958
7997
|
}
|
|
7959
7998
|
},
|
|
7960
|
-
/* @__PURE__ */
|
|
7999
|
+
/* @__PURE__ */ React77.createElement(
|
|
7961
8000
|
"div",
|
|
7962
8001
|
{
|
|
7963
8002
|
className: clsx29(
|
|
@@ -7966,7 +8005,7 @@ var HawaAppLayout = ({
|
|
|
7966
8005
|
openSideMenu ? "overflow-auto" : "overflow-hidden"
|
|
7967
8006
|
)
|
|
7968
8007
|
},
|
|
7969
|
-
/* @__PURE__ */
|
|
8008
|
+
/* @__PURE__ */ React77.createElement(
|
|
7970
8009
|
"div",
|
|
7971
8010
|
{
|
|
7972
8011
|
dir: direction,
|
|
@@ -7978,7 +8017,7 @@ var HawaAppLayout = ({
|
|
|
7978
8017
|
width: size > 600 ? `${drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize] - 16}px` : "full"
|
|
7979
8018
|
}
|
|
7980
8019
|
},
|
|
7981
|
-
/* @__PURE__ */
|
|
8020
|
+
/* @__PURE__ */ React77.createElement(
|
|
7982
8021
|
"img",
|
|
7983
8022
|
{
|
|
7984
8023
|
className: clsx29(
|
|
@@ -7990,7 +8029,7 @@ var HawaAppLayout = ({
|
|
|
7990
8029
|
src: props.logoLink
|
|
7991
8030
|
}
|
|
7992
8031
|
),
|
|
7993
|
-
size > 600 ? /* @__PURE__ */
|
|
8032
|
+
size > 600 ? /* @__PURE__ */ React77.createElement(
|
|
7994
8033
|
"img",
|
|
7995
8034
|
{
|
|
7996
8035
|
className: clsx29(
|
|
@@ -8002,14 +8041,14 @@ var HawaAppLayout = ({
|
|
|
8002
8041
|
}
|
|
8003
8042
|
) : null
|
|
8004
8043
|
),
|
|
8005
|
-
/* @__PURE__ */
|
|
8044
|
+
/* @__PURE__ */ React77.createElement("div", { className: "mb-10 mt-14" }, props.drawerItems?.map((dSection, dIndex) => /* @__PURE__ */ React77.createElement(
|
|
8006
8045
|
"div",
|
|
8007
8046
|
{
|
|
8008
8047
|
key: dIndex,
|
|
8009
8048
|
className: clsx29("flex flex-col items-stretch justify-center")
|
|
8010
8049
|
},
|
|
8011
8050
|
dSection?.map((dItem, i) => {
|
|
8012
|
-
return /* @__PURE__ */
|
|
8051
|
+
return /* @__PURE__ */ React77.createElement("div", { key: i, id: "test", className: "flex flex-col" }, /* @__PURE__ */ React77.createElement(
|
|
8013
8052
|
"div",
|
|
8014
8053
|
{
|
|
8015
8054
|
onClick: () => {
|
|
@@ -8029,7 +8068,7 @@ var HawaAppLayout = ({
|
|
|
8029
8068
|
isRTL ? "flex-row-reverse pr-3" : ""
|
|
8030
8069
|
)
|
|
8031
8070
|
},
|
|
8032
|
-
/* @__PURE__ */
|
|
8071
|
+
/* @__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(
|
|
8033
8072
|
"div",
|
|
8034
8073
|
{
|
|
8035
8074
|
className: clsx29(
|
|
@@ -8039,16 +8078,16 @@ var HawaAppLayout = ({
|
|
|
8039
8078
|
},
|
|
8040
8079
|
dItem.label
|
|
8041
8080
|
)),
|
|
8042
|
-
dItem.subItems && /* @__PURE__ */
|
|
8081
|
+
dItem.subItems && /* @__PURE__ */ React77.createElement(
|
|
8043
8082
|
"div",
|
|
8044
8083
|
{
|
|
8045
8084
|
className: clsx29(
|
|
8046
8085
|
openSubItem && dItem.slug === openSubItem ? "-rotate-90" : "rotate-90"
|
|
8047
8086
|
)
|
|
8048
8087
|
},
|
|
8049
|
-
/* @__PURE__ */
|
|
8088
|
+
/* @__PURE__ */ React77.createElement(FaChevronRight, { fontSize: 11 })
|
|
8050
8089
|
)
|
|
8051
|
-
), dItem.subItems && /* @__PURE__ */
|
|
8090
|
+
), dItem.subItems && /* @__PURE__ */ React77.createElement(
|
|
8052
8091
|
"div",
|
|
8053
8092
|
{
|
|
8054
8093
|
className: clsx29(
|
|
@@ -8060,7 +8099,7 @@ var HawaAppLayout = ({
|
|
|
8060
8099
|
height: openSubItem == dItem.slug && openSideMenu ? 6 + 33 * dItem.subItems?.length : 0
|
|
8061
8100
|
}
|
|
8062
8101
|
},
|
|
8063
|
-
dItem.subItems?.map((subIt, s) => /* @__PURE__ */
|
|
8102
|
+
dItem.subItems?.map((subIt, s) => /* @__PURE__ */ React77.createElement(
|
|
8064
8103
|
"div",
|
|
8065
8104
|
{
|
|
8066
8105
|
key: s,
|
|
@@ -8074,14 +8113,14 @@ var HawaAppLayout = ({
|
|
|
8074
8113
|
subIt.action();
|
|
8075
8114
|
}
|
|
8076
8115
|
},
|
|
8077
|
-
/* @__PURE__ */
|
|
8078
|
-
/* @__PURE__ */
|
|
8116
|
+
/* @__PURE__ */ React77.createElement("div", { className: "flex items-center justify-center" }, subIt.icon),
|
|
8117
|
+
/* @__PURE__ */ React77.createElement("div", { className: "flex flex-row justify-between" }, subIt.label)
|
|
8079
8118
|
))
|
|
8080
8119
|
));
|
|
8081
8120
|
}),
|
|
8082
|
-
dIndex !== props.drawerItems.length - 1 && /* @__PURE__ */
|
|
8121
|
+
dIndex !== props.drawerItems.length - 1 && /* @__PURE__ */ React77.createElement("div", { className: "my-2 h-[1px] w-10/12 self-center bg-buttonPrimary-500 text-center " })
|
|
8083
8122
|
))),
|
|
8084
|
-
openSideMenu && /* @__PURE__ */
|
|
8123
|
+
openSideMenu && /* @__PURE__ */ React77.createElement(
|
|
8085
8124
|
"div",
|
|
8086
8125
|
{
|
|
8087
8126
|
className: clsx29(
|
|
@@ -8094,13 +8133,13 @@ var HawaAppLayout = ({
|
|
|
8094
8133
|
width: `${drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize] - 16}px`
|
|
8095
8134
|
}
|
|
8096
8135
|
},
|
|
8097
|
-
onSettingsClick && /* @__PURE__ */
|
|
8136
|
+
onSettingsClick && /* @__PURE__ */ React77.createElement(
|
|
8098
8137
|
"div",
|
|
8099
8138
|
{
|
|
8100
8139
|
className: " cursor-pointer rounded p-2 transition-all hover:bg-layoutPrimary-700",
|
|
8101
8140
|
onClick: () => onSettingsClick()
|
|
8102
8141
|
},
|
|
8103
|
-
/* @__PURE__ */
|
|
8142
|
+
/* @__PURE__ */ React77.createElement(
|
|
8104
8143
|
"svg",
|
|
8105
8144
|
{
|
|
8106
8145
|
"aria-label": "Settings Icon",
|
|
@@ -8113,11 +8152,11 @@ var HawaAppLayout = ({
|
|
|
8113
8152
|
height: "1em",
|
|
8114
8153
|
width: "1em"
|
|
8115
8154
|
},
|
|
8116
|
-
/* @__PURE__ */
|
|
8117
|
-
/* @__PURE__ */
|
|
8155
|
+
/* @__PURE__ */ React77.createElement("circle", { cx: "12", cy: "12", r: "3" }),
|
|
8156
|
+
/* @__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" })
|
|
8118
8157
|
)
|
|
8119
8158
|
),
|
|
8120
|
-
size > 600 ? /* @__PURE__ */
|
|
8159
|
+
size > 600 ? /* @__PURE__ */ React77.createElement(
|
|
8121
8160
|
"div",
|
|
8122
8161
|
{
|
|
8123
8162
|
className: clsx29("w-fit transition-all"),
|
|
@@ -8127,7 +8166,7 @@ var HawaAppLayout = ({
|
|
|
8127
8166
|
left: `${drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize] - 35}px`
|
|
8128
8167
|
}
|
|
8129
8168
|
},
|
|
8130
|
-
/* @__PURE__ */
|
|
8169
|
+
/* @__PURE__ */ React77.createElement(
|
|
8131
8170
|
"div",
|
|
8132
8171
|
{
|
|
8133
8172
|
dir: direction,
|
|
@@ -8136,13 +8175,13 @@ var HawaAppLayout = ({
|
|
|
8136
8175
|
openSideMenu ? " opacity-100" : " opacity-0"
|
|
8137
8176
|
)
|
|
8138
8177
|
},
|
|
8139
|
-
/* @__PURE__ */
|
|
8178
|
+
/* @__PURE__ */ React77.createElement(
|
|
8140
8179
|
"div",
|
|
8141
8180
|
{
|
|
8142
8181
|
onClick: () => setKeepOpen(!keepOpen),
|
|
8143
8182
|
className: "w-fit cursor-pointer rounded bg-gray-300 p-2 transition-all hover:bg-gray-400"
|
|
8144
8183
|
},
|
|
8145
|
-
/* @__PURE__ */
|
|
8184
|
+
/* @__PURE__ */ React77.createElement(
|
|
8146
8185
|
FaChevronRight,
|
|
8147
8186
|
{
|
|
8148
8187
|
fontSize: 14,
|
|
@@ -8157,7 +8196,7 @@ var HawaAppLayout = ({
|
|
|
8157
8196
|
) : null
|
|
8158
8197
|
)
|
|
8159
8198
|
)
|
|
8160
|
-
), /* @__PURE__ */
|
|
8199
|
+
), /* @__PURE__ */ React77.createElement(
|
|
8161
8200
|
"div",
|
|
8162
8201
|
{
|
|
8163
8202
|
className: "fixed overflow-y-auto",
|
|
@@ -8178,7 +8217,7 @@ var HawaAppLayout = ({
|
|
|
8178
8217
|
};
|
|
8179
8218
|
|
|
8180
8219
|
// src/layout/HawaAppLayoutSimplified.tsx
|
|
8181
|
-
import
|
|
8220
|
+
import React78, { useEffect as useEffect24, useRef as useRef16, useState as useState40 } from "react";
|
|
8182
8221
|
import clsx30 from "clsx";
|
|
8183
8222
|
var HawaAppLayoutSimplified = ({
|
|
8184
8223
|
direction = "rtl",
|
|
@@ -8187,10 +8226,10 @@ var HawaAppLayoutSimplified = ({
|
|
|
8187
8226
|
DrawerFooterActions,
|
|
8188
8227
|
...props
|
|
8189
8228
|
}) => {
|
|
8190
|
-
const [openSideMenu, setOpenSideMenu] =
|
|
8191
|
-
const [openSubItem, setOpenSubitem] =
|
|
8229
|
+
const [openSideMenu, setOpenSideMenu] = useState40(false);
|
|
8230
|
+
const [openSubItem, setOpenSubitem] = useState40("");
|
|
8192
8231
|
const { isOpen, onClose, onOpen } = useDiscloser_default(false);
|
|
8193
|
-
const [keepOpen, setKeepOpen] =
|
|
8232
|
+
const [keepOpen, setKeepOpen] = useState40(false);
|
|
8194
8233
|
const ref = useRef16(null);
|
|
8195
8234
|
const isRTL = direction === "rtl";
|
|
8196
8235
|
let size;
|
|
@@ -8226,7 +8265,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8226
8265
|
}
|
|
8227
8266
|
};
|
|
8228
8267
|
let drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
|
|
8229
|
-
return /* @__PURE__ */
|
|
8268
|
+
return /* @__PURE__ */ React78.createElement("div", { className: "fixed left-0" }, props.topBar && /* @__PURE__ */ React78.createElement(
|
|
8230
8269
|
"div",
|
|
8231
8270
|
{
|
|
8232
8271
|
className: clsx30(
|
|
@@ -8234,7 +8273,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8234
8273
|
isRTL ? "flex-row-reverse" : "flex-row"
|
|
8235
8274
|
)
|
|
8236
8275
|
},
|
|
8237
|
-
size > 600 ? /* @__PURE__ */
|
|
8276
|
+
size > 600 ? /* @__PURE__ */ React78.createElement(
|
|
8238
8277
|
"div",
|
|
8239
8278
|
{
|
|
8240
8279
|
className: clsx30(
|
|
@@ -8250,19 +8289,19 @@ var HawaAppLayoutSimplified = ({
|
|
|
8250
8289
|
props.pageTitle
|
|
8251
8290
|
) : (
|
|
8252
8291
|
// Mobile Drawer Menu Button
|
|
8253
|
-
/* @__PURE__ */
|
|
8292
|
+
/* @__PURE__ */ React78.createElement(
|
|
8254
8293
|
"div",
|
|
8255
8294
|
{
|
|
8256
8295
|
dir: direction,
|
|
8257
8296
|
className: "flex items-center justify-center gap-0.5"
|
|
8258
8297
|
},
|
|
8259
|
-
/* @__PURE__ */
|
|
8298
|
+
/* @__PURE__ */ React78.createElement(
|
|
8260
8299
|
"div",
|
|
8261
8300
|
{
|
|
8262
8301
|
onClick: () => setOpenSideMenu(true),
|
|
8263
8302
|
className: "z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100"
|
|
8264
8303
|
},
|
|
8265
|
-
/* @__PURE__ */
|
|
8304
|
+
/* @__PURE__ */ React78.createElement(
|
|
8266
8305
|
"svg",
|
|
8267
8306
|
{
|
|
8268
8307
|
stroke: "currentColor",
|
|
@@ -8273,7 +8312,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8273
8312
|
height: "1.6em",
|
|
8274
8313
|
width: "1.6em"
|
|
8275
8314
|
},
|
|
8276
|
-
/* @__PURE__ */
|
|
8315
|
+
/* @__PURE__ */ React78.createElement(
|
|
8277
8316
|
"path",
|
|
8278
8317
|
{
|
|
8279
8318
|
fillRule: "evenodd",
|
|
@@ -8283,10 +8322,10 @@ var HawaAppLayoutSimplified = ({
|
|
|
8283
8322
|
)
|
|
8284
8323
|
)
|
|
8285
8324
|
),
|
|
8286
|
-
props.pageTitle ? /* @__PURE__ */
|
|
8325
|
+
props.pageTitle ? /* @__PURE__ */ React78.createElement("div", { className: "text-sm" }, props.pageTitle) : /* @__PURE__ */ React78.createElement("div", null)
|
|
8287
8326
|
)
|
|
8288
8327
|
),
|
|
8289
|
-
/* @__PURE__ */
|
|
8328
|
+
/* @__PURE__ */ React78.createElement(
|
|
8290
8329
|
"div",
|
|
8291
8330
|
{
|
|
8292
8331
|
className: clsx30(
|
|
@@ -8294,16 +8333,16 @@ var HawaAppLayoutSimplified = ({
|
|
|
8294
8333
|
isRTL ? "flex-row-reverse" : "flex-row"
|
|
8295
8334
|
)
|
|
8296
8335
|
},
|
|
8297
|
-
size > 600 ? /* @__PURE__ */
|
|
8336
|
+
size > 600 ? /* @__PURE__ */ React78.createElement(
|
|
8298
8337
|
"div",
|
|
8299
8338
|
{
|
|
8300
8339
|
className: isRTL ? "text-left text-xs" : "text-right text-xs"
|
|
8301
8340
|
},
|
|
8302
|
-
/* @__PURE__ */
|
|
8341
|
+
/* @__PURE__ */ React78.createElement("div", { className: "font-bold" }, props.username),
|
|
8303
8342
|
" ",
|
|
8304
|
-
/* @__PURE__ */
|
|
8343
|
+
/* @__PURE__ */ React78.createElement("div", null, props.email)
|
|
8305
8344
|
) : null,
|
|
8306
|
-
/* @__PURE__ */
|
|
8345
|
+
/* @__PURE__ */ React78.createElement(
|
|
8307
8346
|
DropdownMenu,
|
|
8308
8347
|
{
|
|
8309
8348
|
triggerClassname: "mx-2",
|
|
@@ -8312,13 +8351,13 @@ var HawaAppLayoutSimplified = ({
|
|
|
8312
8351
|
side: "bottom",
|
|
8313
8352
|
sideOffset: 5,
|
|
8314
8353
|
direction: isRTL ? "rtl" : "ltr",
|
|
8315
|
-
trigger: /* @__PURE__ */
|
|
8354
|
+
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)),
|
|
8316
8355
|
items: props.profileMenuItems,
|
|
8317
8356
|
onItemSelect: (e) => console.log("selecting item ", e)
|
|
8318
8357
|
}
|
|
8319
8358
|
)
|
|
8320
8359
|
)
|
|
8321
|
-
), /* @__PURE__ */
|
|
8360
|
+
), /* @__PURE__ */ React78.createElement(
|
|
8322
8361
|
"div",
|
|
8323
8362
|
{
|
|
8324
8363
|
className: clsx30(
|
|
@@ -8334,7 +8373,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8334
8373
|
onMouseLeave: () => keepOpen ? setOpenSideMenu(true) : setOpenSideMenu(false),
|
|
8335
8374
|
ref
|
|
8336
8375
|
},
|
|
8337
|
-
/* @__PURE__ */
|
|
8376
|
+
/* @__PURE__ */ React78.createElement(
|
|
8338
8377
|
"div",
|
|
8339
8378
|
{
|
|
8340
8379
|
dir: direction,
|
|
@@ -8345,7 +8384,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8345
8384
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
|
8346
8385
|
}
|
|
8347
8386
|
},
|
|
8348
|
-
/* @__PURE__ */
|
|
8387
|
+
/* @__PURE__ */ React78.createElement(
|
|
8349
8388
|
"img",
|
|
8350
8389
|
{
|
|
8351
8390
|
className: clsx30(
|
|
@@ -8357,7 +8396,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8357
8396
|
src: props.logoLink
|
|
8358
8397
|
}
|
|
8359
8398
|
),
|
|
8360
|
-
size > 600 ? /* @__PURE__ */
|
|
8399
|
+
size > 600 ? /* @__PURE__ */ React78.createElement(
|
|
8361
8400
|
"img",
|
|
8362
8401
|
{
|
|
8363
8402
|
className: clsx30(
|
|
@@ -8369,7 +8408,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8369
8408
|
}
|
|
8370
8409
|
) : null
|
|
8371
8410
|
),
|
|
8372
|
-
/* @__PURE__ */
|
|
8411
|
+
/* @__PURE__ */ React78.createElement(
|
|
8373
8412
|
"div",
|
|
8374
8413
|
{
|
|
8375
8414
|
className: clsx30(
|
|
@@ -8383,7 +8422,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8383
8422
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
|
8384
8423
|
}
|
|
8385
8424
|
},
|
|
8386
|
-
props.drawerItems?.map((dSection, dIndex) => /* @__PURE__ */
|
|
8425
|
+
props.drawerItems?.map((dSection, dIndex) => /* @__PURE__ */ React78.createElement(
|
|
8387
8426
|
"div",
|
|
8388
8427
|
{
|
|
8389
8428
|
key: dIndex,
|
|
@@ -8392,7 +8431,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8392
8431
|
)
|
|
8393
8432
|
},
|
|
8394
8433
|
dSection?.map((dItem, i) => {
|
|
8395
|
-
return /* @__PURE__ */
|
|
8434
|
+
return /* @__PURE__ */ React78.createElement("div", { key: i, id: "test", className: "flex flex-col" }, /* @__PURE__ */ React78.createElement(
|
|
8396
8435
|
"div",
|
|
8397
8436
|
{
|
|
8398
8437
|
onClick: () => {
|
|
@@ -8413,7 +8452,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8413
8452
|
openSideMenu ? "m-2" : "m-2"
|
|
8414
8453
|
)
|
|
8415
8454
|
},
|
|
8416
|
-
/* @__PURE__ */
|
|
8455
|
+
/* @__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(
|
|
8417
8456
|
"div",
|
|
8418
8457
|
{
|
|
8419
8458
|
className: clsx30(
|
|
@@ -8423,13 +8462,13 @@ var HawaAppLayoutSimplified = ({
|
|
|
8423
8462
|
},
|
|
8424
8463
|
dItem.label
|
|
8425
8464
|
)),
|
|
8426
|
-
dItem.subItems && /* @__PURE__ */
|
|
8465
|
+
dItem.subItems && /* @__PURE__ */ React78.createElement(
|
|
8427
8466
|
ArrowIcon,
|
|
8428
8467
|
{
|
|
8429
8468
|
pointing: openSubItem && dItem.slug === openSubItem ? "up" : "down"
|
|
8430
8469
|
}
|
|
8431
8470
|
)
|
|
8432
|
-
), dItem.subItems && /* @__PURE__ */
|
|
8471
|
+
), dItem.subItems && /* @__PURE__ */ React78.createElement(
|
|
8433
8472
|
"div",
|
|
8434
8473
|
{
|
|
8435
8474
|
className: clsx30(
|
|
@@ -8441,7 +8480,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8441
8480
|
height: openSubItem == dItem.slug && openSideMenu ? 6 + 35 * dItem.subItems?.length : 0
|
|
8442
8481
|
}
|
|
8443
8482
|
},
|
|
8444
|
-
dItem.subItems?.map((subIt, s) => /* @__PURE__ */
|
|
8483
|
+
dItem.subItems?.map((subIt, s) => /* @__PURE__ */ React78.createElement(
|
|
8445
8484
|
"div",
|
|
8446
8485
|
{
|
|
8447
8486
|
key: s,
|
|
@@ -8455,15 +8494,15 @@ var HawaAppLayoutSimplified = ({
|
|
|
8455
8494
|
subIt.action();
|
|
8456
8495
|
}
|
|
8457
8496
|
},
|
|
8458
|
-
/* @__PURE__ */
|
|
8459
|
-
/* @__PURE__ */
|
|
8497
|
+
/* @__PURE__ */ React78.createElement("div", { className: "flex items-center justify-center" }, subIt.icon),
|
|
8498
|
+
/* @__PURE__ */ React78.createElement("div", { className: "flex flex-row justify-between" }, subIt.label)
|
|
8460
8499
|
))
|
|
8461
8500
|
));
|
|
8462
8501
|
}),
|
|
8463
|
-
dIndex !== props.drawerItems.length - 1 && /* @__PURE__ */
|
|
8502
|
+
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 " })
|
|
8464
8503
|
))
|
|
8465
8504
|
),
|
|
8466
|
-
/* @__PURE__ */
|
|
8505
|
+
/* @__PURE__ */ React78.createElement(
|
|
8467
8506
|
"div",
|
|
8468
8507
|
{
|
|
8469
8508
|
className: clsx30(
|
|
@@ -8474,22 +8513,22 @@ var HawaAppLayoutSimplified = ({
|
|
|
8474
8513
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
|
8475
8514
|
}
|
|
8476
8515
|
},
|
|
8477
|
-
DrawerFooterActions && openSideMenu ? /* @__PURE__ */
|
|
8478
|
-
size > 600 && openSideMenu ? /* @__PURE__ */
|
|
8516
|
+
DrawerFooterActions && openSideMenu ? /* @__PURE__ */ React78.createElement(React78.Fragment, null, DrawerFooterActions) : null,
|
|
8517
|
+
size > 600 && openSideMenu ? /* @__PURE__ */ React78.createElement(
|
|
8479
8518
|
Tooltip,
|
|
8480
8519
|
{
|
|
8481
8520
|
side: "left",
|
|
8482
8521
|
delayDuration: 500,
|
|
8483
8522
|
content: keepOpen ? props.texts?.collapseSidebar || "Collapse Sidebar" : props.texts?.expandSidebar || "Expand Sidebar"
|
|
8484
8523
|
},
|
|
8485
|
-
/* @__PURE__ */
|
|
8524
|
+
/* @__PURE__ */ React78.createElement(
|
|
8486
8525
|
Button,
|
|
8487
8526
|
{
|
|
8488
8527
|
variant: "light",
|
|
8489
8528
|
onClick: () => setKeepOpen(!keepOpen),
|
|
8490
8529
|
size: "smallIcon"
|
|
8491
8530
|
},
|
|
8492
|
-
/* @__PURE__ */
|
|
8531
|
+
/* @__PURE__ */ React78.createElement(
|
|
8493
8532
|
"svg",
|
|
8494
8533
|
{
|
|
8495
8534
|
className: clsx30(
|
|
@@ -8499,7 +8538,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8499
8538
|
fill: "currentColor",
|
|
8500
8539
|
viewBox: "0 0 20 20"
|
|
8501
8540
|
},
|
|
8502
|
-
/* @__PURE__ */
|
|
8541
|
+
/* @__PURE__ */ React78.createElement(
|
|
8503
8542
|
"path",
|
|
8504
8543
|
{
|
|
8505
8544
|
fillRule: "evenodd",
|
|
@@ -8511,7 +8550,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8511
8550
|
)
|
|
8512
8551
|
) : null
|
|
8513
8552
|
)
|
|
8514
|
-
), /* @__PURE__ */
|
|
8553
|
+
), /* @__PURE__ */ React78.createElement(
|
|
8515
8554
|
"div",
|
|
8516
8555
|
{
|
|
8517
8556
|
className: "fixed overflow-y-auto",
|
|
@@ -8530,14 +8569,14 @@ var HawaAppLayoutSimplified = ({
|
|
|
8530
8569
|
props.children
|
|
8531
8570
|
));
|
|
8532
8571
|
};
|
|
8533
|
-
var AvatarIcon = () => /* @__PURE__ */
|
|
8572
|
+
var AvatarIcon = () => /* @__PURE__ */ React78.createElement(
|
|
8534
8573
|
"svg",
|
|
8535
8574
|
{
|
|
8536
8575
|
className: "absolute -left-1 h-10 w-10 text-gray-400",
|
|
8537
8576
|
fill: "currentColor",
|
|
8538
8577
|
viewBox: "0 0 20 20"
|
|
8539
8578
|
},
|
|
8540
|
-
/* @__PURE__ */
|
|
8579
|
+
/* @__PURE__ */ React78.createElement(
|
|
8541
8580
|
"path",
|
|
8542
8581
|
{
|
|
8543
8582
|
fillRule: "evenodd",
|
|
@@ -8564,7 +8603,7 @@ var ArrowIcon = ({ pointing }) => {
|
|
|
8564
8603
|
default:
|
|
8565
8604
|
break;
|
|
8566
8605
|
}
|
|
8567
|
-
return /* @__PURE__ */
|
|
8606
|
+
return /* @__PURE__ */ React78.createElement(
|
|
8568
8607
|
"svg",
|
|
8569
8608
|
{
|
|
8570
8609
|
className: clsx30(
|
|
@@ -8574,7 +8613,7 @@ var ArrowIcon = ({ pointing }) => {
|
|
|
8574
8613
|
fill: "currentColor",
|
|
8575
8614
|
viewBox: "0 0 20 20"
|
|
8576
8615
|
},
|
|
8577
|
-
/* @__PURE__ */
|
|
8616
|
+
/* @__PURE__ */ React78.createElement(
|
|
8578
8617
|
"path",
|
|
8579
8618
|
{
|
|
8580
8619
|
fillRule: "evenodd",
|
|
@@ -8586,7 +8625,7 @@ var ArrowIcon = ({ pointing }) => {
|
|
|
8586
8625
|
};
|
|
8587
8626
|
|
|
8588
8627
|
// src/layout/HawaContainer.tsx
|
|
8589
|
-
import
|
|
8628
|
+
import React79 from "react";
|
|
8590
8629
|
import clsx31 from "clsx";
|
|
8591
8630
|
var HawaContainer = ({
|
|
8592
8631
|
maxWidth = "normal",
|
|
@@ -8606,7 +8645,7 @@ var HawaContainer = ({
|
|
|
8606
8645
|
outlined: "bg-transparent border border-black w-fit",
|
|
8607
8646
|
neobrutalism: "shadow-neobrutalism border-4 border-black bg-white"
|
|
8608
8647
|
};
|
|
8609
|
-
return /* @__PURE__ */
|
|
8648
|
+
return /* @__PURE__ */ React79.createElement(
|
|
8610
8649
|
"div",
|
|
8611
8650
|
{
|
|
8612
8651
|
className: clsx31(
|
|
@@ -8622,28 +8661,28 @@ var HawaContainer = ({
|
|
|
8622
8661
|
};
|
|
8623
8662
|
|
|
8624
8663
|
// src/layout/HawaGrid.tsx
|
|
8625
|
-
import
|
|
8664
|
+
import React80 from "react";
|
|
8626
8665
|
var HawaGrid = (props) => {
|
|
8627
8666
|
return (
|
|
8628
8667
|
// [&>*:not(:first-child)]:mt-8
|
|
8629
|
-
/* @__PURE__ */
|
|
8668
|
+
/* @__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)
|
|
8630
8669
|
);
|
|
8631
8670
|
};
|
|
8632
8671
|
|
|
8633
8672
|
// src/layout/AppSidebar.tsx
|
|
8634
|
-
import
|
|
8673
|
+
import React81 from "react";
|
|
8635
8674
|
var AppSidebar = ({ isOpen, onClose, items }) => {
|
|
8636
8675
|
if (!isOpen) {
|
|
8637
8676
|
return null;
|
|
8638
8677
|
}
|
|
8639
|
-
return /* @__PURE__ */
|
|
8678
|
+
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(
|
|
8640
8679
|
"button",
|
|
8641
8680
|
{
|
|
8642
8681
|
onClick: onClose,
|
|
8643
8682
|
className: "p-4 text-gray-400 hover:text-white focus:text-white focus:outline-none"
|
|
8644
8683
|
},
|
|
8645
8684
|
"Close"
|
|
8646
|
-
), /* @__PURE__ */
|
|
8685
|
+
), /* @__PURE__ */ React81.createElement("nav", null, items.map((item, i) => /* @__PURE__ */ React81.createElement(
|
|
8647
8686
|
"a",
|
|
8648
8687
|
{
|
|
8649
8688
|
key: i,
|
|
@@ -8652,7 +8691,7 @@ var AppSidebar = ({ isOpen, onClose, items }) => {
|
|
|
8652
8691
|
className: "block p-4 font-bold text-white hover:bg-gray-700 hover:text-gray-400"
|
|
8653
8692
|
},
|
|
8654
8693
|
item.label
|
|
8655
|
-
)))), /* @__PURE__ */
|
|
8694
|
+
)))), /* @__PURE__ */ React81.createElement("div", { className: "w-2/3 bg-gray-50" }));
|
|
8656
8695
|
};
|
|
8657
8696
|
|
|
8658
8697
|
// src/layout/Footer.tsx
|
|
@@ -8670,19 +8709,19 @@ var Footer = ({ ...props }) => {
|
|
|
8670
8709
|
};
|
|
8671
8710
|
|
|
8672
8711
|
// src/layout/Banner.tsx
|
|
8673
|
-
import
|
|
8712
|
+
import React82, { useRef as useRef17, useState as useState41 } from "react";
|
|
8674
8713
|
import clsx32 from "clsx";
|
|
8675
8714
|
var HawaBanner = ({
|
|
8676
8715
|
design = "floating",
|
|
8677
8716
|
...props
|
|
8678
8717
|
}) => {
|
|
8679
8718
|
const bannerRef = useRef17(null);
|
|
8680
|
-
const [closed, setClosed] =
|
|
8719
|
+
const [closed, setClosed] = useState41(false);
|
|
8681
8720
|
let bannerStyle = {
|
|
8682
8721
|
floating: "left-1/2 z-50 w-[calc(100%-2rem)] -translate-x-1/2 lg:max-w-7xl p-4 rounded",
|
|
8683
8722
|
default: "w-[calc(100%)] left-0 z-50 right-0 rounded-none p-2"
|
|
8684
8723
|
};
|
|
8685
|
-
return /* @__PURE__ */
|
|
8724
|
+
return /* @__PURE__ */ React82.createElement("div", { ref: bannerRef }, /* @__PURE__ */ React82.createElement(
|
|
8686
8725
|
"div",
|
|
8687
8726
|
{
|
|
8688
8727
|
dir: props.direction,
|
|
@@ -8693,7 +8732,7 @@ var HawaBanner = ({
|
|
|
8693
8732
|
closed ? "opacity-0" : "opacity-100"
|
|
8694
8733
|
)
|
|
8695
8734
|
},
|
|
8696
|
-
/* @__PURE__ */
|
|
8735
|
+
/* @__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(
|
|
8697
8736
|
"div",
|
|
8698
8737
|
{
|
|
8699
8738
|
className: clsx32(
|
|
@@ -8701,7 +8740,7 @@ var HawaBanner = ({
|
|
|
8701
8740
|
"mb-2 flex items-center border-gray-200 dark:border-gray-600 md:mb-0 md:mr-4 md:pr-4"
|
|
8702
8741
|
)
|
|
8703
8742
|
},
|
|
8704
|
-
props.logoURL && /* @__PURE__ */
|
|
8743
|
+
props.logoURL && /* @__PURE__ */ React82.createElement(
|
|
8705
8744
|
"img",
|
|
8706
8745
|
{
|
|
8707
8746
|
src: props.logoURL,
|
|
@@ -8709,8 +8748,8 @@ var HawaBanner = ({
|
|
|
8709
8748
|
alt: "Flowbite Logo"
|
|
8710
8749
|
}
|
|
8711
8750
|
),
|
|
8712
|
-
props.title && /* @__PURE__ */
|
|
8713
|
-
), props.text && /* @__PURE__ */
|
|
8751
|
+
props.title && /* @__PURE__ */ React82.createElement("span", { className: "self-center whitespace-nowrap text-lg font-semibold dark:text-white" }, props.title)
|
|
8752
|
+
), props.text && /* @__PURE__ */ React82.createElement(
|
|
8714
8753
|
"p",
|
|
8715
8754
|
{
|
|
8716
8755
|
className: clsx32(
|
|
@@ -8720,7 +8759,7 @@ var HawaBanner = ({
|
|
|
8720
8759
|
},
|
|
8721
8760
|
props.text
|
|
8722
8761
|
)),
|
|
8723
|
-
props.actionText && /* @__PURE__ */
|
|
8762
|
+
props.actionText && /* @__PURE__ */ React82.createElement(
|
|
8724
8763
|
"div",
|
|
8725
8764
|
{
|
|
8726
8765
|
className: clsx32(
|
|
@@ -8728,9 +8767,9 @@ var HawaBanner = ({
|
|
|
8728
8767
|
props.direction === "rtl" ? "ml-0 md:ml-10" : "mr-0 md:mr-10"
|
|
8729
8768
|
)
|
|
8730
8769
|
},
|
|
8731
|
-
/* @__PURE__ */
|
|
8770
|
+
/* @__PURE__ */ React82.createElement(HawaButton, { onClick: props.onActionClick }, props.actionText)
|
|
8732
8771
|
),
|
|
8733
|
-
/* @__PURE__ */
|
|
8772
|
+
/* @__PURE__ */ React82.createElement(
|
|
8734
8773
|
"button",
|
|
8735
8774
|
{
|
|
8736
8775
|
type: "button",
|
|
@@ -8747,8 +8786,8 @@ var HawaBanner = ({
|
|
|
8747
8786
|
}, 200);
|
|
8748
8787
|
}
|
|
8749
8788
|
},
|
|
8750
|
-
/* @__PURE__ */
|
|
8751
|
-
/* @__PURE__ */
|
|
8789
|
+
/* @__PURE__ */ React82.createElement("span", { className: "sr-only" }, "Close"),
|
|
8790
|
+
/* @__PURE__ */ React82.createElement(
|
|
8752
8791
|
"svg",
|
|
8753
8792
|
{
|
|
8754
8793
|
"aria-hidden": "true",
|
|
@@ -8756,7 +8795,7 @@ var HawaBanner = ({
|
|
|
8756
8795
|
fill: "currentColor",
|
|
8757
8796
|
viewBox: "0 0 20 20"
|
|
8758
8797
|
},
|
|
8759
|
-
/* @__PURE__ */
|
|
8798
|
+
/* @__PURE__ */ React82.createElement(
|
|
8760
8799
|
"path",
|
|
8761
8800
|
{
|
|
8762
8801
|
fillRule: "evenodd",
|
|
@@ -8770,7 +8809,7 @@ var HawaBanner = ({
|
|
|
8770
8809
|
};
|
|
8771
8810
|
|
|
8772
8811
|
// src/blocks/Account/UserProfileForm.tsx
|
|
8773
|
-
import
|
|
8812
|
+
import React83 from "react";
|
|
8774
8813
|
import { Controller, FormProvider, useForm } from "react-hook-form";
|
|
8775
8814
|
var UserProfileForm = (props) => {
|
|
8776
8815
|
const methods = useForm();
|
|
@@ -8780,12 +8819,12 @@ var UserProfileForm = (props) => {
|
|
|
8780
8819
|
handleSubmit,
|
|
8781
8820
|
control
|
|
8782
8821
|
} = methods;
|
|
8783
|
-
return /* @__PURE__ */
|
|
8822
|
+
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(
|
|
8784
8823
|
Controller,
|
|
8785
8824
|
{
|
|
8786
8825
|
control,
|
|
8787
8826
|
name: "fullName",
|
|
8788
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8827
|
+
render: ({ field }) => /* @__PURE__ */ React83.createElement(
|
|
8789
8828
|
HawaTextField,
|
|
8790
8829
|
{
|
|
8791
8830
|
width: "full",
|
|
@@ -8798,19 +8837,19 @@ var UserProfileForm = (props) => {
|
|
|
8798
8837
|
}
|
|
8799
8838
|
)
|
|
8800
8839
|
}
|
|
8801
|
-
), /* @__PURE__ */
|
|
8840
|
+
), /* @__PURE__ */ React83.createElement(
|
|
8802
8841
|
Controller,
|
|
8803
8842
|
{
|
|
8804
8843
|
control,
|
|
8805
8844
|
name: "phoneNumber",
|
|
8806
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8845
|
+
render: ({ field }) => /* @__PURE__ */ React83.createElement(HawaPhoneInput, { label: "Phone number" })
|
|
8807
8846
|
}
|
|
8808
|
-
), /* @__PURE__ */
|
|
8847
|
+
), /* @__PURE__ */ React83.createElement(
|
|
8809
8848
|
Controller,
|
|
8810
8849
|
{
|
|
8811
8850
|
control,
|
|
8812
8851
|
name: "email",
|
|
8813
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8852
|
+
render: ({ field }) => /* @__PURE__ */ React83.createElement(
|
|
8814
8853
|
HawaTextField,
|
|
8815
8854
|
{
|
|
8816
8855
|
width: "full",
|
|
@@ -8830,12 +8869,12 @@ var UserProfileForm = (props) => {
|
|
|
8830
8869
|
}
|
|
8831
8870
|
}
|
|
8832
8871
|
}
|
|
8833
|
-
), /* @__PURE__ */
|
|
8872
|
+
), /* @__PURE__ */ React83.createElement(
|
|
8834
8873
|
Controller,
|
|
8835
8874
|
{
|
|
8836
8875
|
control,
|
|
8837
8876
|
name: "password",
|
|
8838
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8877
|
+
render: ({ field }) => /* @__PURE__ */ React83.createElement(
|
|
8839
8878
|
HawaTextField,
|
|
8840
8879
|
{
|
|
8841
8880
|
width: "full",
|
|
@@ -8851,12 +8890,12 @@ var UserProfileForm = (props) => {
|
|
|
8851
8890
|
required: props.texts.passwordRequiredText
|
|
8852
8891
|
}
|
|
8853
8892
|
}
|
|
8854
|
-
), /* @__PURE__ */
|
|
8893
|
+
), /* @__PURE__ */ React83.createElement(
|
|
8855
8894
|
Controller,
|
|
8856
8895
|
{
|
|
8857
8896
|
control,
|
|
8858
8897
|
name: "confirmPassword",
|
|
8859
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8898
|
+
render: ({ field }) => /* @__PURE__ */ React83.createElement(
|
|
8860
8899
|
HawaTextField,
|
|
8861
8900
|
{
|
|
8862
8901
|
width: "full",
|
|
@@ -8872,17 +8911,17 @@ var UserProfileForm = (props) => {
|
|
|
8872
8911
|
required: props.texts.confirmPasswordRequiredText
|
|
8873
8912
|
}
|
|
8874
8913
|
}
|
|
8875
|
-
))), /* @__PURE__ */
|
|
8914
|
+
))), /* @__PURE__ */ React83.createElement(CardFooter, null, /* @__PURE__ */ React83.createElement(Button, { className: "w-full", type: "submit" }, props.texts.updateProfile))));
|
|
8876
8915
|
};
|
|
8877
8916
|
|
|
8878
8917
|
// src/blocks/Account/UserSettingsForm.tsx
|
|
8879
|
-
import
|
|
8918
|
+
import React84 from "react";
|
|
8880
8919
|
var UserSettingsForm = (props) => {
|
|
8881
|
-
return /* @__PURE__ */
|
|
8920
|
+
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)));
|
|
8882
8921
|
};
|
|
8883
8922
|
|
|
8884
8923
|
// src/blocks/AuthForms/AppLanding.tsx
|
|
8885
|
-
import
|
|
8924
|
+
import React85 from "react";
|
|
8886
8925
|
|
|
8887
8926
|
// src/elements/Icons.tsx
|
|
8888
8927
|
var Icons = {
|
|
@@ -8913,6 +8952,23 @@ var Icons = {
|
|
|
8913
8952
|
strokeWidth: "16"
|
|
8914
8953
|
}
|
|
8915
8954
|
)),
|
|
8955
|
+
mail: (props) => /* @__PURE__ */ React.createElement(
|
|
8956
|
+
"svg",
|
|
8957
|
+
{
|
|
8958
|
+
stroke: "currentColor",
|
|
8959
|
+
fill: "none",
|
|
8960
|
+
"stroke-width": "2",
|
|
8961
|
+
viewBox: "0 0 24 24",
|
|
8962
|
+
"stroke-linecap": "round",
|
|
8963
|
+
"stroke-linejoin": "round",
|
|
8964
|
+
height: "1em",
|
|
8965
|
+
width: "1em",
|
|
8966
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8967
|
+
...props
|
|
8968
|
+
},
|
|
8969
|
+
/* @__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" }),
|
|
8970
|
+
/* @__PURE__ */ React.createElement("polyline", { points: "22,6 12,13 2,6" })
|
|
8971
|
+
),
|
|
8916
8972
|
twitter: (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement(
|
|
8917
8973
|
"path",
|
|
8918
8974
|
{
|
|
@@ -9017,15 +9073,39 @@ var Icons = {
|
|
|
9017
9073
|
|
|
9018
9074
|
// src/blocks/AuthForms/AppLanding.tsx
|
|
9019
9075
|
var AppLanding = (props) => {
|
|
9020
|
-
return /* @__PURE__ */
|
|
9076
|
+
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(
|
|
9021
9077
|
Button,
|
|
9022
9078
|
{
|
|
9023
9079
|
className: "flex flex-row items-center gap-2",
|
|
9024
9080
|
variant: "outline"
|
|
9025
9081
|
},
|
|
9026
|
-
/* @__PURE__ */
|
|
9082
|
+
/* @__PURE__ */ React85.createElement(Icons.google, { className: "h-4 w-4" }),
|
|
9027
9083
|
"Continue With Google"
|
|
9028
|
-
),
|
|
9084
|
+
), /* @__PURE__ */ React85.createElement(
|
|
9085
|
+
Button,
|
|
9086
|
+
{
|
|
9087
|
+
className: "flex flex-row items-center gap-2",
|
|
9088
|
+
variant: "outline"
|
|
9089
|
+
},
|
|
9090
|
+
/* @__PURE__ */ React85.createElement(Icons.twitter, { className: "h-4 w-4" }),
|
|
9091
|
+
"Continue With Twitter"
|
|
9092
|
+
), /* @__PURE__ */ React85.createElement(
|
|
9093
|
+
Button,
|
|
9094
|
+
{
|
|
9095
|
+
className: "flex flex-row items-center gap-2",
|
|
9096
|
+
variant: "outline"
|
|
9097
|
+
},
|
|
9098
|
+
/* @__PURE__ */ React85.createElement(Icons.apple, { className: "h-4 w-4" }),
|
|
9099
|
+
"Continue With Apple"
|
|
9100
|
+
), /* @__PURE__ */ React85.createElement(
|
|
9101
|
+
Button,
|
|
9102
|
+
{
|
|
9103
|
+
className: "flex flex-row items-center gap-2",
|
|
9104
|
+
variant: "outline"
|
|
9105
|
+
},
|
|
9106
|
+
/* @__PURE__ */ React85.createElement(Icons.mail, { className: "h-4 w-4" }),
|
|
9107
|
+
"Continue With Email"
|
|
9108
|
+
), /* @__PURE__ */ React85.createElement("a", { href: "#", className: "text-center text-sm" }, "Don't have an account?", " ", /* @__PURE__ */ React85.createElement("a", { href: "#", className: "clickable-link" }, "Sign Up")))), /* @__PURE__ */ React85.createElement("div", { className: "mt-6 flex flex-row justify-between" }, /* @__PURE__ */ React85.createElement(
|
|
9029
9109
|
HawaRadio,
|
|
9030
9110
|
{
|
|
9031
9111
|
onChangeTab: props.handleLanguage,
|
|
@@ -9035,7 +9115,7 @@ var AppLanding = (props) => {
|
|
|
9035
9115
|
{ value: "en", label: "English" }
|
|
9036
9116
|
]
|
|
9037
9117
|
}
|
|
9038
|
-
), /* @__PURE__ */
|
|
9118
|
+
), /* @__PURE__ */ React85.createElement(
|
|
9039
9119
|
HawaRadio,
|
|
9040
9120
|
{
|
|
9041
9121
|
onChangeTab: props.handleColorMode,
|
|
@@ -9043,7 +9123,7 @@ var AppLanding = (props) => {
|
|
|
9043
9123
|
options: [
|
|
9044
9124
|
{
|
|
9045
9125
|
value: "light",
|
|
9046
|
-
label: /* @__PURE__ */
|
|
9126
|
+
label: /* @__PURE__ */ React85.createElement(
|
|
9047
9127
|
"svg",
|
|
9048
9128
|
{
|
|
9049
9129
|
width: "15",
|
|
@@ -9053,7 +9133,7 @@ var AppLanding = (props) => {
|
|
|
9053
9133
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9054
9134
|
className: "h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90"
|
|
9055
9135
|
},
|
|
9056
|
-
/* @__PURE__ */
|
|
9136
|
+
/* @__PURE__ */ React85.createElement(
|
|
9057
9137
|
"path",
|
|
9058
9138
|
{
|
|
9059
9139
|
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",
|
|
@@ -9066,7 +9146,7 @@ var AppLanding = (props) => {
|
|
|
9066
9146
|
},
|
|
9067
9147
|
{
|
|
9068
9148
|
value: "dark",
|
|
9069
|
-
label: /* @__PURE__ */
|
|
9149
|
+
label: /* @__PURE__ */ React85.createElement(
|
|
9070
9150
|
"svg",
|
|
9071
9151
|
{
|
|
9072
9152
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9080,7 +9160,7 @@ var AppLanding = (props) => {
|
|
|
9080
9160
|
strokeLinejoin: "round",
|
|
9081
9161
|
className: "h-[1.2rem] w-[1.2rem] transition-all dark:rotate-0 dark:scale-100"
|
|
9082
9162
|
},
|
|
9083
|
-
/* @__PURE__ */
|
|
9163
|
+
/* @__PURE__ */ React85.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
|
9084
9164
|
)
|
|
9085
9165
|
}
|
|
9086
9166
|
]
|
|
@@ -9089,7 +9169,7 @@ var AppLanding = (props) => {
|
|
|
9089
9169
|
};
|
|
9090
9170
|
|
|
9091
9171
|
// src/blocks/AuthForms/SignInPhone.tsx
|
|
9092
|
-
import
|
|
9172
|
+
import React86, { useState as useState42 } from "react";
|
|
9093
9173
|
import { Controller as Controller2, useForm as useForm2 } from "react-hook-form";
|
|
9094
9174
|
var SignInPhone = (props) => {
|
|
9095
9175
|
const methods = useForm2();
|
|
@@ -9098,8 +9178,8 @@ var SignInPhone = (props) => {
|
|
|
9098
9178
|
handleSubmit,
|
|
9099
9179
|
control
|
|
9100
9180
|
} = methods;
|
|
9101
|
-
const [userPhone, setUserPhone] =
|
|
9102
|
-
return /* @__PURE__ */
|
|
9181
|
+
const [userPhone, setUserPhone] = useState42("");
|
|
9182
|
+
return /* @__PURE__ */ React86.createElement(Card, null, /* @__PURE__ */ React86.createElement(CardContent, { headless: true }, /* @__PURE__ */ React86.createElement(
|
|
9103
9183
|
"form",
|
|
9104
9184
|
{
|
|
9105
9185
|
onSubmit: (e) => {
|
|
@@ -9107,12 +9187,12 @@ var SignInPhone = (props) => {
|
|
|
9107
9187
|
props.handleSignIn(userPhone);
|
|
9108
9188
|
}
|
|
9109
9189
|
},
|
|
9110
|
-
/* @__PURE__ */
|
|
9190
|
+
/* @__PURE__ */ React86.createElement(
|
|
9111
9191
|
Controller2,
|
|
9112
9192
|
{
|
|
9113
9193
|
control,
|
|
9114
9194
|
name: "phone",
|
|
9115
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9195
|
+
render: ({ field }) => /* @__PURE__ */ React86.createElement(
|
|
9116
9196
|
HawaPhoneInput,
|
|
9117
9197
|
{
|
|
9118
9198
|
country: props.country ?? "",
|
|
@@ -9126,13 +9206,13 @@ var SignInPhone = (props) => {
|
|
|
9126
9206
|
}
|
|
9127
9207
|
}
|
|
9128
9208
|
),
|
|
9129
|
-
/* @__PURE__ */
|
|
9130
|
-
/* @__PURE__ */
|
|
9209
|
+
/* @__PURE__ */ React86.createElement("div", { className: "mt-2" }),
|
|
9210
|
+
/* @__PURE__ */ React86.createElement(Button, { className: "w-full" }, props.SignInButtonText)
|
|
9131
9211
|
)));
|
|
9132
9212
|
};
|
|
9133
9213
|
|
|
9134
9214
|
// src/blocks/AuthForms/SignInForm.tsx
|
|
9135
|
-
import
|
|
9215
|
+
import React87 from "react";
|
|
9136
9216
|
import { Controller as Controller3, useForm as useForm3 } from "react-hook-form";
|
|
9137
9217
|
var SignInForm = (props) => {
|
|
9138
9218
|
const {
|
|
@@ -9140,19 +9220,19 @@ var SignInForm = (props) => {
|
|
|
9140
9220
|
handleSubmit,
|
|
9141
9221
|
control
|
|
9142
9222
|
} = useForm3();
|
|
9143
|
-
return /* @__PURE__ */
|
|
9223
|
+
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(
|
|
9144
9224
|
HawaAlert,
|
|
9145
9225
|
{
|
|
9146
9226
|
title: props.errorTitle,
|
|
9147
9227
|
text: props.errorText,
|
|
9148
9228
|
severity: "error"
|
|
9149
9229
|
}
|
|
9150
|
-
), props.signInType === "email" ? /* @__PURE__ */
|
|
9230
|
+
), props.signInType === "email" ? /* @__PURE__ */ React87.createElement(
|
|
9151
9231
|
Controller3,
|
|
9152
9232
|
{
|
|
9153
9233
|
control,
|
|
9154
9234
|
name: "email",
|
|
9155
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9235
|
+
render: ({ field }) => /* @__PURE__ */ React87.createElement(
|
|
9156
9236
|
HawaTextField,
|
|
9157
9237
|
{
|
|
9158
9238
|
width: "full",
|
|
@@ -9173,13 +9253,13 @@ var SignInForm = (props) => {
|
|
|
9173
9253
|
}
|
|
9174
9254
|
}
|
|
9175
9255
|
}
|
|
9176
|
-
) : props.signInType === "username" ? /* @__PURE__ */
|
|
9256
|
+
) : props.signInType === "username" ? /* @__PURE__ */ React87.createElement(
|
|
9177
9257
|
Controller3,
|
|
9178
9258
|
{
|
|
9179
9259
|
control,
|
|
9180
9260
|
name: "username",
|
|
9181
9261
|
render: ({ field }) => {
|
|
9182
|
-
return /* @__PURE__ */
|
|
9262
|
+
return /* @__PURE__ */ React87.createElement(
|
|
9183
9263
|
HawaTextField,
|
|
9184
9264
|
{
|
|
9185
9265
|
width: "full",
|
|
@@ -9197,20 +9277,20 @@ var SignInForm = (props) => {
|
|
|
9197
9277
|
required: props.texts.usernameRequired
|
|
9198
9278
|
}
|
|
9199
9279
|
}
|
|
9200
|
-
) : /* @__PURE__ */
|
|
9280
|
+
) : /* @__PURE__ */ React87.createElement(
|
|
9201
9281
|
Controller3,
|
|
9202
9282
|
{
|
|
9203
9283
|
control,
|
|
9204
9284
|
name: "phone",
|
|
9205
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9285
|
+
render: ({ field }) => /* @__PURE__ */ React87.createElement(HawaPhoneInput, { label: "Phone number" }),
|
|
9206
9286
|
rules: { required: props.texts.phoneRequiredText }
|
|
9207
9287
|
}
|
|
9208
|
-
), props.signInType !== "phone" && /* @__PURE__ */
|
|
9288
|
+
), props.signInType !== "phone" && /* @__PURE__ */ React87.createElement(React87.Fragment, null, /* @__PURE__ */ React87.createElement(
|
|
9209
9289
|
Controller3,
|
|
9210
9290
|
{
|
|
9211
9291
|
control,
|
|
9212
9292
|
name: "password",
|
|
9213
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9293
|
+
render: ({ field }) => /* @__PURE__ */ React87.createElement(
|
|
9214
9294
|
HawaTextField,
|
|
9215
9295
|
{
|
|
9216
9296
|
width: "full",
|
|
@@ -9228,58 +9308,58 @@ var SignInForm = (props) => {
|
|
|
9228
9308
|
minLength: 5
|
|
9229
9309
|
}
|
|
9230
9310
|
}
|
|
9231
|
-
), !props.withoutResetPassword && /* @__PURE__ */
|
|
9311
|
+
), !props.withoutResetPassword && /* @__PURE__ */ React87.createElement(
|
|
9232
9312
|
"div",
|
|
9233
9313
|
{
|
|
9234
9314
|
onClick: props.handleForgotPassword,
|
|
9235
9315
|
className: "mb-3 w-fit cursor-pointer text-xs dark:text-gray-300"
|
|
9236
9316
|
},
|
|
9237
9317
|
props.texts.forgotPasswordText
|
|
9238
|
-
)), /* @__PURE__ */
|
|
9318
|
+
)), /* @__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-semibold dark:text-gray-300" }, props.texts.newUserText, " ", /* @__PURE__ */ React87.createElement(
|
|
9239
9319
|
"span",
|
|
9240
9320
|
{
|
|
9241
9321
|
onClick: props.handleRouteToSignUp,
|
|
9242
9322
|
className: "clickable-link"
|
|
9243
9323
|
},
|
|
9244
9324
|
props.texts.createAccount
|
|
9245
|
-
)))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
|
9325
|
+
)))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React87.createElement(
|
|
9246
9326
|
CardFooter,
|
|
9247
9327
|
{
|
|
9248
9328
|
className: cn(
|
|
9249
9329
|
props.logosOnly ? "flex flex-row gap-2 justify-center" : "grid grid-cols-1 gap-2"
|
|
9250
9330
|
)
|
|
9251
9331
|
},
|
|
9252
|
-
props.viaGoogle && /* @__PURE__ */
|
|
9332
|
+
props.viaGoogle && /* @__PURE__ */ React87.createElement(
|
|
9253
9333
|
Button,
|
|
9254
9334
|
{
|
|
9255
9335
|
className: "flex flex-row items-center gap-2",
|
|
9256
9336
|
variant: "outline",
|
|
9257
9337
|
onClick: props.handleGoogleSignIn
|
|
9258
9338
|
},
|
|
9259
|
-
/* @__PURE__ */
|
|
9339
|
+
/* @__PURE__ */ React87.createElement(Icons.google, { className: "h-4 w-4" }),
|
|
9260
9340
|
!props.logosOnly && props.texts.signInViaGoogleLabel
|
|
9261
9341
|
),
|
|
9262
|
-
props.viaGithub && /* @__PURE__ */
|
|
9342
|
+
props.viaGithub && /* @__PURE__ */ React87.createElement(
|
|
9263
9343
|
Button,
|
|
9264
9344
|
{
|
|
9265
9345
|
className: "flex flex-row items-center gap-2",
|
|
9266
9346
|
variant: "outline",
|
|
9267
9347
|
onClick: props.handleGithubSignIn
|
|
9268
9348
|
},
|
|
9269
|
-
/* @__PURE__ */
|
|
9349
|
+
/* @__PURE__ */ React87.createElement(Icons.gitHub, { className: "h-4 w-4" }),
|
|
9270
9350
|
!props.logosOnly && props.texts.signInViaGithubLabel
|
|
9271
9351
|
),
|
|
9272
|
-
props.viaTwitter && /* @__PURE__ */
|
|
9352
|
+
props.viaTwitter && /* @__PURE__ */ React87.createElement(
|
|
9273
9353
|
Button,
|
|
9274
9354
|
{
|
|
9275
9355
|
className: "flex flex-row items-center gap-2",
|
|
9276
9356
|
variant: "outline",
|
|
9277
9357
|
onClick: props.handleTwitterSignIn
|
|
9278
9358
|
},
|
|
9279
|
-
/* @__PURE__ */
|
|
9359
|
+
/* @__PURE__ */ React87.createElement(Icons.twitter, { className: "h-4 w-4" }),
|
|
9280
9360
|
!props.logosOnly && props.texts.signInViaTwitterLabel
|
|
9281
9361
|
)
|
|
9282
|
-
) : null), /* @__PURE__ */
|
|
9362
|
+
) : null), /* @__PURE__ */ React87.createElement(
|
|
9283
9363
|
InterfaceSettings,
|
|
9284
9364
|
{
|
|
9285
9365
|
currentColorMode: props.currentColorMode,
|
|
@@ -9296,7 +9376,7 @@ function SignInBlock() {
|
|
|
9296
9376
|
}
|
|
9297
9377
|
|
|
9298
9378
|
// src/blocks/AuthForms/SignUpForm.tsx
|
|
9299
|
-
import
|
|
9379
|
+
import React88 from "react";
|
|
9300
9380
|
import { Controller as Controller4, FormProvider as FormProvider2, useForm as useForm4 } from "react-hook-form";
|
|
9301
9381
|
var SignUpForm = (props) => {
|
|
9302
9382
|
const methods = useForm4();
|
|
@@ -9305,22 +9385,22 @@ var SignUpForm = (props) => {
|
|
|
9305
9385
|
handleSubmit,
|
|
9306
9386
|
control
|
|
9307
9387
|
} = methods;
|
|
9308
|
-
return /* @__PURE__ */
|
|
9388
|
+
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(
|
|
9309
9389
|
HawaAlert,
|
|
9310
9390
|
{
|
|
9311
9391
|
title: props.errorTitle,
|
|
9312
9392
|
text: props.errorText,
|
|
9313
9393
|
severity: "error"
|
|
9314
9394
|
}
|
|
9315
|
-
), /* @__PURE__ */
|
|
9395
|
+
), /* @__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) => {
|
|
9316
9396
|
if (fld === "fullname") {
|
|
9317
|
-
return /* @__PURE__ */
|
|
9397
|
+
return /* @__PURE__ */ React88.createElement(
|
|
9318
9398
|
Controller4,
|
|
9319
9399
|
{
|
|
9320
9400
|
key: i,
|
|
9321
9401
|
control,
|
|
9322
9402
|
name: "fullName",
|
|
9323
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9403
|
+
render: ({ field }) => /* @__PURE__ */ React88.createElement(
|
|
9324
9404
|
HawaTextField,
|
|
9325
9405
|
{
|
|
9326
9406
|
width: "full",
|
|
@@ -9339,13 +9419,13 @@ var SignUpForm = (props) => {
|
|
|
9339
9419
|
);
|
|
9340
9420
|
}
|
|
9341
9421
|
if (fld === "email") {
|
|
9342
|
-
return /* @__PURE__ */
|
|
9422
|
+
return /* @__PURE__ */ React88.createElement(
|
|
9343
9423
|
Controller4,
|
|
9344
9424
|
{
|
|
9345
9425
|
key: i,
|
|
9346
9426
|
control,
|
|
9347
9427
|
name: "email",
|
|
9348
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9428
|
+
render: ({ field }) => /* @__PURE__ */ React88.createElement(
|
|
9349
9429
|
HawaTextField,
|
|
9350
9430
|
{
|
|
9351
9431
|
width: "full",
|
|
@@ -9369,13 +9449,13 @@ var SignUpForm = (props) => {
|
|
|
9369
9449
|
);
|
|
9370
9450
|
}
|
|
9371
9451
|
if (fld === "username") {
|
|
9372
|
-
return /* @__PURE__ */
|
|
9452
|
+
return /* @__PURE__ */ React88.createElement(
|
|
9373
9453
|
Controller4,
|
|
9374
9454
|
{
|
|
9375
9455
|
key: i,
|
|
9376
9456
|
control,
|
|
9377
9457
|
name: "username",
|
|
9378
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9458
|
+
render: ({ field }) => /* @__PURE__ */ React88.createElement(
|
|
9379
9459
|
HawaTextField,
|
|
9380
9460
|
{
|
|
9381
9461
|
width: "full",
|
|
@@ -9394,12 +9474,12 @@ var SignUpForm = (props) => {
|
|
|
9394
9474
|
}
|
|
9395
9475
|
);
|
|
9396
9476
|
}
|
|
9397
|
-
})), /* @__PURE__ */
|
|
9477
|
+
})), /* @__PURE__ */ React88.createElement(
|
|
9398
9478
|
Controller4,
|
|
9399
9479
|
{
|
|
9400
9480
|
control,
|
|
9401
9481
|
name: "password",
|
|
9402
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9482
|
+
render: ({ field }) => /* @__PURE__ */ React88.createElement(
|
|
9403
9483
|
HawaTextField,
|
|
9404
9484
|
{
|
|
9405
9485
|
width: "full",
|
|
@@ -9414,12 +9494,12 @@ var SignUpForm = (props) => {
|
|
|
9414
9494
|
),
|
|
9415
9495
|
rules: { required: props.texts.passwordRequiredText }
|
|
9416
9496
|
}
|
|
9417
|
-
), /* @__PURE__ */
|
|
9497
|
+
), /* @__PURE__ */ React88.createElement(
|
|
9418
9498
|
Controller4,
|
|
9419
9499
|
{
|
|
9420
9500
|
control,
|
|
9421
9501
|
name: "confirm_password",
|
|
9422
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9502
|
+
render: ({ field }) => /* @__PURE__ */ React88.createElement(
|
|
9423
9503
|
HawaTextField,
|
|
9424
9504
|
{
|
|
9425
9505
|
width: "full",
|
|
@@ -9434,12 +9514,12 @@ var SignUpForm = (props) => {
|
|
|
9434
9514
|
),
|
|
9435
9515
|
rules: { required: props.texts.passwordRequiredText }
|
|
9436
9516
|
}
|
|
9437
|
-
), props.showRefCode && /* @__PURE__ */
|
|
9517
|
+
), props.showRefCode && /* @__PURE__ */ React88.createElement(
|
|
9438
9518
|
Controller4,
|
|
9439
9519
|
{
|
|
9440
9520
|
control,
|
|
9441
9521
|
name: "refCode",
|
|
9442
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9522
|
+
render: ({ field }) => /* @__PURE__ */ React88.createElement(
|
|
9443
9523
|
HawaTextField,
|
|
9444
9524
|
{
|
|
9445
9525
|
width: "full",
|
|
@@ -9452,12 +9532,12 @@ var SignUpForm = (props) => {
|
|
|
9452
9532
|
}
|
|
9453
9533
|
)
|
|
9454
9534
|
}
|
|
9455
|
-
), props.showUserSource && /* @__PURE__ */
|
|
9535
|
+
), props.showUserSource && /* @__PURE__ */ React88.createElement("div", null, /* @__PURE__ */ React88.createElement(
|
|
9456
9536
|
Controller4,
|
|
9457
9537
|
{
|
|
9458
9538
|
control,
|
|
9459
9539
|
name: "reference",
|
|
9460
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9540
|
+
render: ({ field }) => /* @__PURE__ */ React88.createElement(
|
|
9461
9541
|
HawaSelect,
|
|
9462
9542
|
{
|
|
9463
9543
|
label: "How did you learn about us?",
|
|
@@ -9476,18 +9556,18 @@ var SignUpForm = (props) => {
|
|
|
9476
9556
|
}
|
|
9477
9557
|
)
|
|
9478
9558
|
}
|
|
9479
|
-
)), props.showTermsOption && /* @__PURE__ */
|
|
9559
|
+
)), props.showTermsOption && /* @__PURE__ */ React88.createElement(
|
|
9480
9560
|
Controller4,
|
|
9481
9561
|
{
|
|
9482
9562
|
control,
|
|
9483
9563
|
name: "terms_accepted",
|
|
9484
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9564
|
+
render: ({ field }) => /* @__PURE__ */ React88.createElement(
|
|
9485
9565
|
HawaCheckbox,
|
|
9486
9566
|
{
|
|
9487
9567
|
id: "terms_accepted",
|
|
9488
9568
|
helperText: errors.terms_accepted?.message,
|
|
9489
9569
|
onChange: (e) => field.onChange(e),
|
|
9490
|
-
label: /* @__PURE__ */
|
|
9570
|
+
label: /* @__PURE__ */ React88.createElement("span", null, props.texts.iAcceptText, " ", /* @__PURE__ */ React88.createElement(
|
|
9491
9571
|
"a",
|
|
9492
9572
|
{
|
|
9493
9573
|
onClick: props.handleRouteToTOS,
|
|
@@ -9499,12 +9579,12 @@ var SignUpForm = (props) => {
|
|
|
9499
9579
|
),
|
|
9500
9580
|
rules: { required: props.texts.termsRequiredText }
|
|
9501
9581
|
}
|
|
9502
|
-
), props.showNewsletterOption && /* @__PURE__ */
|
|
9582
|
+
), props.showNewsletterOption && /* @__PURE__ */ React88.createElement(
|
|
9503
9583
|
Controller4,
|
|
9504
9584
|
{
|
|
9505
9585
|
control,
|
|
9506
9586
|
name: "newsletter_accepted",
|
|
9507
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9587
|
+
render: ({ field }) => /* @__PURE__ */ React88.createElement(
|
|
9508
9588
|
HawaCheckbox,
|
|
9509
9589
|
{
|
|
9510
9590
|
id: "newsletter_accepted",
|
|
@@ -9513,51 +9593,51 @@ var SignUpForm = (props) => {
|
|
|
9513
9593
|
}
|
|
9514
9594
|
)
|
|
9515
9595
|
}
|
|
9516
|
-
), /* @__PURE__ */
|
|
9596
|
+
), /* @__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-semibold dark:text-white" }, /* @__PURE__ */ React88.createElement("span", null, props.texts.existingUserText), /* @__PURE__ */ React88.createElement(
|
|
9517
9597
|
"span",
|
|
9518
9598
|
{
|
|
9519
9599
|
onClick: props.handleRouteToSignIn,
|
|
9520
9600
|
className: "clickable-link"
|
|
9521
9601
|
},
|
|
9522
9602
|
props.texts.signInText
|
|
9523
|
-
)))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
|
9603
|
+
)))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React88.createElement(
|
|
9524
9604
|
CardFooter,
|
|
9525
9605
|
{
|
|
9526
9606
|
className: cn(
|
|
9527
9607
|
props.logosOnly ? "flex flex-row justify-center gap-2" : "grid grid-cols-1 gap-2"
|
|
9528
9608
|
)
|
|
9529
9609
|
},
|
|
9530
|
-
props.viaGoogle && /* @__PURE__ */
|
|
9610
|
+
props.viaGoogle && /* @__PURE__ */ React88.createElement(
|
|
9531
9611
|
Button,
|
|
9532
9612
|
{
|
|
9533
9613
|
className: "flex flex-row items-center gap-2",
|
|
9534
9614
|
variant: "outline",
|
|
9535
9615
|
onClick: props.handleGoogleSignUp
|
|
9536
9616
|
},
|
|
9537
|
-
/* @__PURE__ */
|
|
9617
|
+
/* @__PURE__ */ React88.createElement(Icons.google, { className: "h-4 w-4" }),
|
|
9538
9618
|
!props.logosOnly && props.texts.signUpViaGoogleLabel
|
|
9539
9619
|
),
|
|
9540
|
-
props.viaGithub && /* @__PURE__ */
|
|
9620
|
+
props.viaGithub && /* @__PURE__ */ React88.createElement(
|
|
9541
9621
|
Button,
|
|
9542
9622
|
{
|
|
9543
9623
|
className: "flex flex-row items-center gap-2",
|
|
9544
9624
|
variant: "outline",
|
|
9545
9625
|
onClick: props.handleGithubSignUp
|
|
9546
9626
|
},
|
|
9547
|
-
/* @__PURE__ */
|
|
9627
|
+
/* @__PURE__ */ React88.createElement(Icons.gitHub, { className: "h-4 w-4" }),
|
|
9548
9628
|
!props.logosOnly && props.texts.signUpViaGithubLabel
|
|
9549
9629
|
),
|
|
9550
|
-
props.viaTwitter && /* @__PURE__ */
|
|
9630
|
+
props.viaTwitter && /* @__PURE__ */ React88.createElement(
|
|
9551
9631
|
Button,
|
|
9552
9632
|
{
|
|
9553
9633
|
className: "flex flex-row items-center gap-2",
|
|
9554
9634
|
variant: "outline",
|
|
9555
9635
|
onClick: props.handleTwitterSignUp
|
|
9556
9636
|
},
|
|
9557
|
-
/* @__PURE__ */
|
|
9637
|
+
/* @__PURE__ */ React88.createElement(Icons.twitter, { className: "h-4 w-4" }),
|
|
9558
9638
|
!props.logosOnly && props.texts.signUpViaTwitterLabel
|
|
9559
9639
|
)
|
|
9560
|
-
) : null), /* @__PURE__ */
|
|
9640
|
+
) : null), /* @__PURE__ */ React88.createElement(
|
|
9561
9641
|
InterfaceSettings,
|
|
9562
9642
|
{
|
|
9563
9643
|
currentColorMode: props.currentColorMode,
|
|
@@ -9569,10 +9649,10 @@ var SignUpForm = (props) => {
|
|
|
9569
9649
|
};
|
|
9570
9650
|
|
|
9571
9651
|
// src/blocks/AuthForms/NewPasswordForm.tsx
|
|
9572
|
-
import
|
|
9652
|
+
import React89, { useState as useState43 } from "react";
|
|
9573
9653
|
import { Controller as Controller5, FormProvider as FormProvider3, useForm as useForm5 } from "react-hook-form";
|
|
9574
9654
|
var NewPasswordForm = (props) => {
|
|
9575
|
-
const [matchError, setMatchError] =
|
|
9655
|
+
const [matchError, setMatchError] = useState43(false);
|
|
9576
9656
|
const methods = useForm5();
|
|
9577
9657
|
const {
|
|
9578
9658
|
formState: { errors },
|
|
@@ -9586,12 +9666,12 @@ var NewPasswordForm = (props) => {
|
|
|
9586
9666
|
setMatchError(true);
|
|
9587
9667
|
}
|
|
9588
9668
|
};
|
|
9589
|
-
return /* @__PURE__ */
|
|
9669
|
+
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(
|
|
9590
9670
|
Controller5,
|
|
9591
9671
|
{
|
|
9592
9672
|
control,
|
|
9593
9673
|
name: "password",
|
|
9594
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9674
|
+
render: ({ field }) => /* @__PURE__ */ React89.createElement(
|
|
9595
9675
|
HawaTextField,
|
|
9596
9676
|
{
|
|
9597
9677
|
width: "full",
|
|
@@ -9608,12 +9688,12 @@ var NewPasswordForm = (props) => {
|
|
|
9608
9688
|
required: props.texts.passwordRequiredText
|
|
9609
9689
|
}
|
|
9610
9690
|
}
|
|
9611
|
-
), /* @__PURE__ */
|
|
9691
|
+
), /* @__PURE__ */ React89.createElement(
|
|
9612
9692
|
Controller5,
|
|
9613
9693
|
{
|
|
9614
9694
|
control,
|
|
9615
9695
|
name: "confirmPassword",
|
|
9616
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9696
|
+
render: ({ field }) => /* @__PURE__ */ React89.createElement(
|
|
9617
9697
|
HawaTextField,
|
|
9618
9698
|
{
|
|
9619
9699
|
width: "full",
|
|
@@ -9630,11 +9710,11 @@ var NewPasswordForm = (props) => {
|
|
|
9630
9710
|
required: props.texts.confirmPasswordRequiredText
|
|
9631
9711
|
}
|
|
9632
9712
|
}
|
|
9633
|
-
)), /* @__PURE__ */
|
|
9713
|
+
)), /* @__PURE__ */ React89.createElement(CardFooter, null, /* @__PURE__ */ React89.createElement(Button, { className: "w-full", type: "submit" }, props.texts.updatePassword)))));
|
|
9634
9714
|
};
|
|
9635
9715
|
|
|
9636
9716
|
// src/blocks/AuthForms/ResetPasswordForm.tsx
|
|
9637
|
-
import
|
|
9717
|
+
import React90 from "react";
|
|
9638
9718
|
import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
|
|
9639
9719
|
var ResetPasswordForm = (props) => {
|
|
9640
9720
|
const methods = useForm6();
|
|
@@ -9644,12 +9724,12 @@ var ResetPasswordForm = (props) => {
|
|
|
9644
9724
|
register,
|
|
9645
9725
|
control
|
|
9646
9726
|
} = methods;
|
|
9647
|
-
return /* @__PURE__ */
|
|
9727
|
+
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(
|
|
9648
9728
|
Controller6,
|
|
9649
9729
|
{
|
|
9650
9730
|
control,
|
|
9651
9731
|
name: "email",
|
|
9652
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9732
|
+
render: ({ field }) => /* @__PURE__ */ React90.createElement(
|
|
9653
9733
|
HawaTextField,
|
|
9654
9734
|
{
|
|
9655
9735
|
width: "full",
|
|
@@ -9669,28 +9749,28 @@ var ResetPasswordForm = (props) => {
|
|
|
9669
9749
|
}
|
|
9670
9750
|
}
|
|
9671
9751
|
}
|
|
9672
|
-
), /* @__PURE__ */
|
|
9752
|
+
), /* @__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(
|
|
9673
9753
|
"span",
|
|
9674
9754
|
{
|
|
9675
9755
|
onClick: props.handleRouteToSignUp,
|
|
9676
9756
|
className: "clickable-link"
|
|
9677
9757
|
},
|
|
9678
9758
|
props.texts.signUpText ?? "Sign Up"
|
|
9679
|
-
))), /* @__PURE__ */
|
|
9759
|
+
))), /* @__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)));
|
|
9680
9760
|
};
|
|
9681
9761
|
|
|
9682
9762
|
// src/blocks/AuthForms/CodeConfirmation.tsx
|
|
9683
|
-
import
|
|
9763
|
+
import React91, { useState as useState44 } from "react";
|
|
9684
9764
|
var CodeConfirmation = (props) => {
|
|
9685
|
-
const [pins, setPins] =
|
|
9686
|
-
return /* @__PURE__ */
|
|
9765
|
+
const [pins, setPins] = useState44(null);
|
|
9766
|
+
return /* @__PURE__ */ React91.createElement(Card, null, /* @__PURE__ */ React91.createElement(CardContent, { headless: true }, props.showError && /* @__PURE__ */ React91.createElement(
|
|
9687
9767
|
HawaAlert,
|
|
9688
9768
|
{
|
|
9689
9769
|
title: props.errorTitle,
|
|
9690
9770
|
text: props.errorText,
|
|
9691
9771
|
severity: "error"
|
|
9692
9772
|
}
|
|
9693
|
-
), /* @__PURE__ */
|
|
9773
|
+
), /* @__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(
|
|
9694
9774
|
"form",
|
|
9695
9775
|
{
|
|
9696
9776
|
onSubmit: (e) => {
|
|
@@ -9700,17 +9780,17 @@ var CodeConfirmation = (props) => {
|
|
|
9700
9780
|
}
|
|
9701
9781
|
}
|
|
9702
9782
|
},
|
|
9703
|
-
/* @__PURE__ */
|
|
9704
|
-
/* @__PURE__ */
|
|
9705
|
-
/* @__PURE__ */
|
|
9783
|
+
/* @__PURE__ */ React91.createElement(HawaPinInput, { width: "full", digits: 6, getPins: (e) => setPins(e) }),
|
|
9784
|
+
/* @__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")),
|
|
9785
|
+
/* @__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"))
|
|
9706
9786
|
)));
|
|
9707
9787
|
};
|
|
9708
9788
|
|
|
9709
9789
|
// src/blocks/Payment/SelectPayment.tsx
|
|
9710
|
-
import
|
|
9790
|
+
import React92, { useState as useState45 } from "react";
|
|
9711
9791
|
var SelectPayment = (props) => {
|
|
9712
|
-
const [selectedMethod, setSelectedMethod] =
|
|
9713
|
-
return /* @__PURE__ */
|
|
9792
|
+
const [selectedMethod, setSelectedMethod] = useState45("");
|
|
9793
|
+
return /* @__PURE__ */ React92.createElement(Card, null, /* @__PURE__ */ React92.createElement(CardHeader, null, /* @__PURE__ */ React92.createElement(CardTitle, null, "Choose Payment Method"), /* @__PURE__ */ React92.createElement(CardDescription, null, "And you'll be directed to the next step to complete the payment")), /* @__PURE__ */ React92.createElement(CardContent, { className: "grid grid-cols-2 gap-4" }, /* @__PURE__ */ React92.createElement(
|
|
9714
9794
|
Button,
|
|
9715
9795
|
{
|
|
9716
9796
|
className: cn(
|
|
@@ -9722,15 +9802,15 @@ var SelectPayment = (props) => {
|
|
|
9722
9802
|
disabled: !props.viaMada,
|
|
9723
9803
|
onClick: () => setSelectedMethod("mada")
|
|
9724
9804
|
},
|
|
9725
|
-
/* @__PURE__ */
|
|
9805
|
+
/* @__PURE__ */ React92.createElement(
|
|
9726
9806
|
"img",
|
|
9727
9807
|
{
|
|
9728
9808
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/mada.png",
|
|
9729
9809
|
className: "h-6"
|
|
9730
9810
|
}
|
|
9731
9811
|
),
|
|
9732
|
-
/* @__PURE__ */
|
|
9733
|
-
), /* @__PURE__ */
|
|
9812
|
+
/* @__PURE__ */ React92.createElement("span", null, props.madaLabel)
|
|
9813
|
+
), /* @__PURE__ */ React92.createElement(
|
|
9734
9814
|
Button,
|
|
9735
9815
|
{
|
|
9736
9816
|
className: cn(
|
|
@@ -9742,15 +9822,15 @@ var SelectPayment = (props) => {
|
|
|
9742
9822
|
disabled: !props.viaApplePay,
|
|
9743
9823
|
onClick: () => setSelectedMethod("apple-pay")
|
|
9744
9824
|
},
|
|
9745
|
-
/* @__PURE__ */
|
|
9825
|
+
/* @__PURE__ */ React92.createElement(
|
|
9746
9826
|
"img",
|
|
9747
9827
|
{
|
|
9748
9828
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/apple-pay.png",
|
|
9749
9829
|
className: "h-11"
|
|
9750
9830
|
}
|
|
9751
9831
|
),
|
|
9752
|
-
/* @__PURE__ */
|
|
9753
|
-
), /* @__PURE__ */
|
|
9832
|
+
/* @__PURE__ */ React92.createElement("span", null, props.applePayLabel)
|
|
9833
|
+
), /* @__PURE__ */ React92.createElement(
|
|
9754
9834
|
Button,
|
|
9755
9835
|
{
|
|
9756
9836
|
className: cn(
|
|
@@ -9762,15 +9842,15 @@ var SelectPayment = (props) => {
|
|
|
9762
9842
|
disabled: !props.viaCreditCard,
|
|
9763
9843
|
onClick: () => setSelectedMethod("visa-master")
|
|
9764
9844
|
},
|
|
9765
|
-
/* @__PURE__ */
|
|
9845
|
+
/* @__PURE__ */ React92.createElement(
|
|
9766
9846
|
"img",
|
|
9767
9847
|
{
|
|
9768
9848
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/visa-master.png",
|
|
9769
9849
|
className: "h-6"
|
|
9770
9850
|
}
|
|
9771
9851
|
),
|
|
9772
|
-
/* @__PURE__ */
|
|
9773
|
-
), /* @__PURE__ */
|
|
9852
|
+
/* @__PURE__ */ React92.createElement("span", null, props.visaMasterLabel)
|
|
9853
|
+
), /* @__PURE__ */ React92.createElement(
|
|
9774
9854
|
Button,
|
|
9775
9855
|
{
|
|
9776
9856
|
variant: "outline",
|
|
@@ -9782,7 +9862,7 @@ var SelectPayment = (props) => {
|
|
|
9782
9862
|
disabled: !props.viaWallet,
|
|
9783
9863
|
onClick: () => setSelectedMethod("wallet")
|
|
9784
9864
|
},
|
|
9785
|
-
/* @__PURE__ */
|
|
9865
|
+
/* @__PURE__ */ React92.createElement(
|
|
9786
9866
|
"svg",
|
|
9787
9867
|
{
|
|
9788
9868
|
version: "1.1",
|
|
@@ -9790,20 +9870,20 @@ var SelectPayment = (props) => {
|
|
|
9790
9870
|
viewBox: "0 0 223 223",
|
|
9791
9871
|
className: "h-6 w-6"
|
|
9792
9872
|
},
|
|
9793
|
-
/* @__PURE__ */
|
|
9873
|
+
/* @__PURE__ */ React92.createElement("g", null, /* @__PURE__ */ React92.createElement(
|
|
9794
9874
|
"path",
|
|
9795
9875
|
{
|
|
9796
9876
|
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"
|
|
9797
9877
|
}
|
|
9798
|
-
), /* @__PURE__ */
|
|
9878
|
+
), /* @__PURE__ */ React92.createElement(
|
|
9799
9879
|
"path",
|
|
9800
9880
|
{
|
|
9801
9881
|
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"
|
|
9802
9882
|
}
|
|
9803
9883
|
))
|
|
9804
9884
|
),
|
|
9805
|
-
/* @__PURE__ */
|
|
9806
|
-
), /* @__PURE__ */
|
|
9885
|
+
/* @__PURE__ */ React92.createElement("span", null, props.walletLabel)
|
|
9886
|
+
), /* @__PURE__ */ React92.createElement(
|
|
9807
9887
|
Button,
|
|
9808
9888
|
{
|
|
9809
9889
|
variant: "outline",
|
|
@@ -9815,15 +9895,15 @@ var SelectPayment = (props) => {
|
|
|
9815
9895
|
disabled: !props.viaSTCPay,
|
|
9816
9896
|
onClick: () => setSelectedMethod("stc-pay")
|
|
9817
9897
|
},
|
|
9818
|
-
/* @__PURE__ */
|
|
9898
|
+
/* @__PURE__ */ React92.createElement(
|
|
9819
9899
|
"img",
|
|
9820
9900
|
{
|
|
9821
9901
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/stc-pay.png",
|
|
9822
9902
|
className: "h-6"
|
|
9823
9903
|
}
|
|
9824
9904
|
),
|
|
9825
|
-
/* @__PURE__ */
|
|
9826
|
-
), /* @__PURE__ */
|
|
9905
|
+
/* @__PURE__ */ React92.createElement("span", null, props.stcPayLabel)
|
|
9906
|
+
), /* @__PURE__ */ React92.createElement(
|
|
9827
9907
|
Button,
|
|
9828
9908
|
{
|
|
9829
9909
|
variant: "outline",
|
|
@@ -9835,15 +9915,15 @@ var SelectPayment = (props) => {
|
|
|
9835
9915
|
disabled: !props.viaGooglePay,
|
|
9836
9916
|
onClick: () => setSelectedMethod("google-pay")
|
|
9837
9917
|
},
|
|
9838
|
-
/* @__PURE__ */
|
|
9918
|
+
/* @__PURE__ */ React92.createElement(
|
|
9839
9919
|
"img",
|
|
9840
9920
|
{
|
|
9841
9921
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/google-pay.png",
|
|
9842
9922
|
className: "h-6"
|
|
9843
9923
|
}
|
|
9844
9924
|
),
|
|
9845
|
-
/* @__PURE__ */
|
|
9846
|
-
), /* @__PURE__ */
|
|
9925
|
+
/* @__PURE__ */ React92.createElement("span", null, props.googlePayLabel)
|
|
9926
|
+
), /* @__PURE__ */ React92.createElement(
|
|
9847
9927
|
Button,
|
|
9848
9928
|
{
|
|
9849
9929
|
variant: "outline",
|
|
@@ -9855,15 +9935,15 @@ var SelectPayment = (props) => {
|
|
|
9855
9935
|
disabled: !props.viaPayPal,
|
|
9856
9936
|
onClick: () => setSelectedMethod("paypal")
|
|
9857
9937
|
},
|
|
9858
|
-
/* @__PURE__ */
|
|
9938
|
+
/* @__PURE__ */ React92.createElement(
|
|
9859
9939
|
"img",
|
|
9860
9940
|
{
|
|
9861
9941
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/paypal.png",
|
|
9862
9942
|
className: "h-6"
|
|
9863
9943
|
}
|
|
9864
9944
|
),
|
|
9865
|
-
/* @__PURE__ */
|
|
9866
|
-
)), /* @__PURE__ */
|
|
9945
|
+
/* @__PURE__ */ React92.createElement("span", null, props.paypalLabel)
|
|
9946
|
+
)), /* @__PURE__ */ React92.createElement(CardFooter, null, /* @__PURE__ */ React92.createElement(
|
|
9867
9947
|
Button,
|
|
9868
9948
|
{
|
|
9869
9949
|
onClick: () => props.handleContinue(selectedMethod),
|
|
@@ -9875,7 +9955,7 @@ var SelectPayment = (props) => {
|
|
|
9875
9955
|
};
|
|
9876
9956
|
|
|
9877
9957
|
// src/blocks/Payment/CreditCardForm.tsx
|
|
9878
|
-
import
|
|
9958
|
+
import React93 from "react";
|
|
9879
9959
|
import { Controller as Controller7, useForm as useForm7 } from "react-hook-form";
|
|
9880
9960
|
var CreditCardForm = (props) => {
|
|
9881
9961
|
const methods = useForm7();
|
|
@@ -9884,12 +9964,12 @@ var CreditCardForm = (props) => {
|
|
|
9884
9964
|
handleSubmit,
|
|
9885
9965
|
control
|
|
9886
9966
|
} = methods;
|
|
9887
|
-
return /* @__PURE__ */
|
|
9967
|
+
return /* @__PURE__ */ React93.createElement(Card, null, /* @__PURE__ */ React93.createElement("form", { onSubmit: handleSubmit(props.handle) }, /* @__PURE__ */ React93.createElement(CardContent, { headless: true }, /* @__PURE__ */ React93.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ React93.createElement(
|
|
9888
9968
|
Controller7,
|
|
9889
9969
|
{
|
|
9890
9970
|
control,
|
|
9891
9971
|
name: "cardName",
|
|
9892
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9972
|
+
render: ({ field }) => /* @__PURE__ */ React93.createElement(
|
|
9893
9973
|
HawaTextField,
|
|
9894
9974
|
{
|
|
9895
9975
|
width: "full",
|
|
@@ -9904,12 +9984,12 @@ var CreditCardForm = (props) => {
|
|
|
9904
9984
|
required: "Password is rquired"
|
|
9905
9985
|
}
|
|
9906
9986
|
}
|
|
9907
|
-
), /* @__PURE__ */
|
|
9987
|
+
), /* @__PURE__ */ React93.createElement("div", { className: "w-1/4" }, /* @__PURE__ */ React93.createElement(
|
|
9908
9988
|
Controller7,
|
|
9909
9989
|
{
|
|
9910
9990
|
control,
|
|
9911
9991
|
name: "cardName",
|
|
9912
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9992
|
+
render: ({ field }) => /* @__PURE__ */ React93.createElement(
|
|
9913
9993
|
HawaTextField,
|
|
9914
9994
|
{
|
|
9915
9995
|
width: "full",
|
|
@@ -9926,12 +10006,12 @@ var CreditCardForm = (props) => {
|
|
|
9926
10006
|
required: "Password is rquired"
|
|
9927
10007
|
}
|
|
9928
10008
|
}
|
|
9929
|
-
))), /* @__PURE__ */
|
|
10009
|
+
))), /* @__PURE__ */ React93.createElement(
|
|
9930
10010
|
Controller7,
|
|
9931
10011
|
{
|
|
9932
10012
|
control,
|
|
9933
10013
|
name: "cardName",
|
|
9934
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10014
|
+
render: ({ field }) => /* @__PURE__ */ React93.createElement(
|
|
9935
10015
|
HawaTextField,
|
|
9936
10016
|
{
|
|
9937
10017
|
width: "full",
|
|
@@ -9946,12 +10026,12 @@ var CreditCardForm = (props) => {
|
|
|
9946
10026
|
required: "Password is rquired"
|
|
9947
10027
|
}
|
|
9948
10028
|
}
|
|
9949
|
-
), /* @__PURE__ */
|
|
10029
|
+
), /* @__PURE__ */ React93.createElement(
|
|
9950
10030
|
Controller7,
|
|
9951
10031
|
{
|
|
9952
10032
|
control,
|
|
9953
10033
|
name: "cardName",
|
|
9954
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10034
|
+
render: ({ field }) => /* @__PURE__ */ React93.createElement(
|
|
9955
10035
|
HawaTextField,
|
|
9956
10036
|
{
|
|
9957
10037
|
width: "full",
|
|
@@ -9966,24 +10046,24 @@ var CreditCardForm = (props) => {
|
|
|
9966
10046
|
required: "Password is rquired"
|
|
9967
10047
|
}
|
|
9968
10048
|
}
|
|
9969
|
-
)), /* @__PURE__ */
|
|
10049
|
+
)), /* @__PURE__ */ React93.createElement(CardFooter, null, /* @__PURE__ */ React93.createElement(Button, { className: "w-full", onClick: props.handlePayWithCreditCard }, "Pay with Credit Card"))));
|
|
9970
10050
|
};
|
|
9971
10051
|
|
|
9972
10052
|
// src/blocks/Payment/ChargeWalletForm.tsx
|
|
9973
|
-
import
|
|
10053
|
+
import React94, { useState as useState46 } from "react";
|
|
9974
10054
|
var ChargeWalletForm = (props) => {
|
|
9975
|
-
const [walletAmount, setWalletAmount] =
|
|
9976
|
-
return /* @__PURE__ */
|
|
10055
|
+
const [walletAmount, setWalletAmount] = useState46(0);
|
|
10056
|
+
return /* @__PURE__ */ React94.createElement(Card, null, /* @__PURE__ */ React94.createElement(CardContent, { headless: true }, /* @__PURE__ */ React94.createElement("div", { className: "p-4 text-center" }, /* @__PURE__ */ React94.createElement("div", { className: " text-5xl font-extrabold" }, Number(walletAmount).toLocaleString("en") || "0"), /* @__PURE__ */ React94.createElement("div", { className: "text-sm font-normal" }, props.currency || "SAR")), /* @__PURE__ */ React94.createElement("div", { className: "mb-2 flex w-full flex-col gap-4 text-center" }, /* @__PURE__ */ React94.createElement("div", { className: "mb-2 flex w-full flex-row gap-4 text-center" }, /* @__PURE__ */ React94.createElement(Button, { variant: "outline", className: "h-full w-full" }, "10 SAR"), /* @__PURE__ */ React94.createElement(Button, { variant: "outline", className: "h-full w-full" }, "50 SAR"), /* @__PURE__ */ React94.createElement(Button, { variant: "outline", className: "h-full w-full" }, "100 SAR")), /* @__PURE__ */ React94.createElement(Input, { placeholder: "Custom Amount", type: "number", name: "amount" })), /* @__PURE__ */ React94.createElement(Button, { className: "mt-6 w-full" }, props.texts.chargeWallet)));
|
|
9977
10057
|
};
|
|
9978
10058
|
|
|
9979
10059
|
// src/blocks/Payment/PayWithWallet.tsx
|
|
9980
|
-
import
|
|
10060
|
+
import React95 from "react";
|
|
9981
10061
|
var PayWithWallet = (props) => {
|
|
9982
|
-
return /* @__PURE__ */
|
|
10062
|
+
return /* @__PURE__ */ React95.createElement(Card, null, /* @__PURE__ */ React95.createElement(CardContent, { headless: true }, /* @__PURE__ */ React95.createElement("div", { className: "text-center text-5xl font-extrabold" }, props.walletBalance || "0", /* @__PURE__ */ React95.createElement("div", { className: "text-sm font-normal" }, props.currency || "SAR")), /* @__PURE__ */ React95.createElement(Button, { className: "mt-6 w-full", onClick: props.handlePayWithWallet }, "Pay Now")));
|
|
9983
10063
|
};
|
|
9984
10064
|
|
|
9985
10065
|
// src/blocks/Payment/CheckoutForm.tsx
|
|
9986
|
-
import
|
|
10066
|
+
import React96 from "react";
|
|
9987
10067
|
import { Controller as Controller8, FormProvider as FormProvider4, useForm as useForm8 } from "react-hook-form";
|
|
9988
10068
|
var CheckoutForm = (props) => {
|
|
9989
10069
|
let isArabic = props.lang === "ar";
|
|
@@ -10007,7 +10087,7 @@ var CheckoutForm = (props) => {
|
|
|
10007
10087
|
xl: "row"
|
|
10008
10088
|
}
|
|
10009
10089
|
};
|
|
10010
|
-
return /* @__PURE__ */
|
|
10090
|
+
return /* @__PURE__ */ React96.createElement(Card, null, /* @__PURE__ */ React96.createElement(CardHeader, null, /* @__PURE__ */ React96.createElement(CardTitle, null, props.texts.orderDetails)), /* @__PURE__ */ React96.createElement(CardContent, null, /* @__PURE__ */ React96.createElement("div", null, /* @__PURE__ */ React96.createElement("div", { className: "rounded border border-gray-300" }, /* @__PURE__ */ React96.createElement(
|
|
10011
10091
|
HawaTable,
|
|
10012
10092
|
{
|
|
10013
10093
|
pagination: false,
|
|
@@ -10021,13 +10101,13 @@ var CheckoutForm = (props) => {
|
|
|
10021
10101
|
rows: props.products,
|
|
10022
10102
|
bordersWidth: "1"
|
|
10023
10103
|
}
|
|
10024
|
-
)))), /* @__PURE__ */
|
|
10104
|
+
)))), /* @__PURE__ */ React96.createElement(CardHeader, null, /* @__PURE__ */ React96.createElement(CardTitle, null, props.texts.billingAddress)), /* @__PURE__ */ React96.createElement("form", { onSubmit: handleSubmit(props.handlePayNow) }, /* @__PURE__ */ React96.createElement(CardContent, null, /* @__PURE__ */ React96.createElement("div", null, /* @__PURE__ */ React96.createElement(FormProvider4, { ...methods }, /* @__PURE__ */ React96.createElement("div", null, /* @__PURE__ */ React96.createElement(
|
|
10025
10105
|
Controller8,
|
|
10026
10106
|
{
|
|
10027
10107
|
control,
|
|
10028
10108
|
name: "firstName",
|
|
10029
10109
|
rules: { required: props.texts?.required },
|
|
10030
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10110
|
+
render: ({ field }) => /* @__PURE__ */ React96.createElement(
|
|
10031
10111
|
HawaTextField,
|
|
10032
10112
|
{
|
|
10033
10113
|
type: "text",
|
|
@@ -10038,13 +10118,13 @@ var CheckoutForm = (props) => {
|
|
|
10038
10118
|
}
|
|
10039
10119
|
)
|
|
10040
10120
|
}
|
|
10041
|
-
), /* @__PURE__ */
|
|
10121
|
+
), /* @__PURE__ */ React96.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React96.createElement(
|
|
10042
10122
|
Controller8,
|
|
10043
10123
|
{
|
|
10044
10124
|
control,
|
|
10045
10125
|
name: "lastName",
|
|
10046
10126
|
rules: { required: props.texts?.required },
|
|
10047
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10127
|
+
render: ({ field }) => /* @__PURE__ */ React96.createElement(
|
|
10048
10128
|
HawaTextField,
|
|
10049
10129
|
{
|
|
10050
10130
|
width: "full",
|
|
@@ -10056,12 +10136,12 @@ var CheckoutForm = (props) => {
|
|
|
10056
10136
|
}
|
|
10057
10137
|
)
|
|
10058
10138
|
}
|
|
10059
|
-
)), /* @__PURE__ */
|
|
10139
|
+
)), /* @__PURE__ */ React96.createElement(
|
|
10060
10140
|
Controller8,
|
|
10061
10141
|
{
|
|
10062
10142
|
control,
|
|
10063
10143
|
name: "email",
|
|
10064
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10144
|
+
render: ({ field }) => /* @__PURE__ */ React96.createElement(
|
|
10065
10145
|
HawaTextField,
|
|
10066
10146
|
{
|
|
10067
10147
|
width: "full",
|
|
@@ -10080,13 +10160,13 @@ var CheckoutForm = (props) => {
|
|
|
10080
10160
|
}
|
|
10081
10161
|
}
|
|
10082
10162
|
}
|
|
10083
|
-
), /* @__PURE__ */
|
|
10163
|
+
), /* @__PURE__ */ React96.createElement("div", { className: "flex flex-col md:flex-row" }, /* @__PURE__ */ React96.createElement(
|
|
10084
10164
|
Controller8,
|
|
10085
10165
|
{
|
|
10086
10166
|
control,
|
|
10087
10167
|
name: "streetAddress",
|
|
10088
10168
|
rules: { required: props.texts?.required },
|
|
10089
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10169
|
+
render: ({ field }) => /* @__PURE__ */ React96.createElement(
|
|
10090
10170
|
HawaTextField,
|
|
10091
10171
|
{
|
|
10092
10172
|
width: "full",
|
|
@@ -10098,13 +10178,13 @@ var CheckoutForm = (props) => {
|
|
|
10098
10178
|
}
|
|
10099
10179
|
)
|
|
10100
10180
|
}
|
|
10101
|
-
)), /* @__PURE__ */
|
|
10181
|
+
)), /* @__PURE__ */ React96.createElement("div", { className: "flex flex-col md:flex-row" }, /* @__PURE__ */ React96.createElement(
|
|
10102
10182
|
Controller8,
|
|
10103
10183
|
{
|
|
10104
10184
|
control,
|
|
10105
10185
|
name: "province",
|
|
10106
10186
|
rules: { required: props.texts?.required },
|
|
10107
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10187
|
+
render: ({ field }) => /* @__PURE__ */ React96.createElement(
|
|
10108
10188
|
HawaTextField,
|
|
10109
10189
|
{
|
|
10110
10190
|
width: "full",
|
|
@@ -10116,13 +10196,13 @@ var CheckoutForm = (props) => {
|
|
|
10116
10196
|
}
|
|
10117
10197
|
)
|
|
10118
10198
|
}
|
|
10119
|
-
), /* @__PURE__ */
|
|
10199
|
+
), /* @__PURE__ */ React96.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React96.createElement(
|
|
10120
10200
|
Controller8,
|
|
10121
10201
|
{
|
|
10122
10202
|
control,
|
|
10123
10203
|
name: "city",
|
|
10124
10204
|
rules: { required: props.texts?.required },
|
|
10125
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10205
|
+
render: ({ field }) => /* @__PURE__ */ React96.createElement(
|
|
10126
10206
|
HawaTextField,
|
|
10127
10207
|
{
|
|
10128
10208
|
width: "full",
|
|
@@ -10134,13 +10214,13 @@ var CheckoutForm = (props) => {
|
|
|
10134
10214
|
}
|
|
10135
10215
|
)
|
|
10136
10216
|
}
|
|
10137
|
-
)), /* @__PURE__ */
|
|
10217
|
+
)), /* @__PURE__ */ React96.createElement("div", { className: "flex flex-col md:flex-row" }, /* @__PURE__ */ React96.createElement(
|
|
10138
10218
|
Controller8,
|
|
10139
10219
|
{
|
|
10140
10220
|
control,
|
|
10141
10221
|
name: "buildingNumber",
|
|
10142
10222
|
rules: { required: props.texts?.required },
|
|
10143
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10223
|
+
render: ({ field }) => /* @__PURE__ */ React96.createElement(
|
|
10144
10224
|
HawaTextField,
|
|
10145
10225
|
{
|
|
10146
10226
|
width: "full",
|
|
@@ -10152,13 +10232,13 @@ var CheckoutForm = (props) => {
|
|
|
10152
10232
|
}
|
|
10153
10233
|
)
|
|
10154
10234
|
}
|
|
10155
|
-
), /* @__PURE__ */
|
|
10235
|
+
), /* @__PURE__ */ React96.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React96.createElement(
|
|
10156
10236
|
Controller8,
|
|
10157
10237
|
{
|
|
10158
10238
|
control,
|
|
10159
10239
|
name: "zipCode",
|
|
10160
10240
|
rules: { required: props.texts?.required },
|
|
10161
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10241
|
+
render: ({ field }) => /* @__PURE__ */ React96.createElement(
|
|
10162
10242
|
HawaTextField,
|
|
10163
10243
|
{
|
|
10164
10244
|
width: "full",
|
|
@@ -10170,13 +10250,13 @@ var CheckoutForm = (props) => {
|
|
|
10170
10250
|
}
|
|
10171
10251
|
)
|
|
10172
10252
|
}
|
|
10173
|
-
)), /* @__PURE__ */
|
|
10253
|
+
)), /* @__PURE__ */ React96.createElement("div", { className: "mb-3" }, /* @__PURE__ */ React96.createElement(
|
|
10174
10254
|
Controller8,
|
|
10175
10255
|
{
|
|
10176
10256
|
control,
|
|
10177
10257
|
name: "country",
|
|
10178
10258
|
rules: { required: props.texts?.required },
|
|
10179
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10259
|
+
render: ({ field }) => /* @__PURE__ */ React96.createElement(
|
|
10180
10260
|
HawaSelect,
|
|
10181
10261
|
{
|
|
10182
10262
|
native: true,
|
|
@@ -10187,18 +10267,18 @@ var CheckoutForm = (props) => {
|
|
|
10187
10267
|
onChange: (e) => field.onChange(e.country_label),
|
|
10188
10268
|
value: field.value ?? ""
|
|
10189
10269
|
},
|
|
10190
|
-
/* @__PURE__ */
|
|
10191
|
-
props.countriesList.map((country, i) => /* @__PURE__ */
|
|
10270
|
+
/* @__PURE__ */ React96.createElement("option", null),
|
|
10271
|
+
props.countriesList.map((country, i) => /* @__PURE__ */ React96.createElement("option", { key: i }, country))
|
|
10192
10272
|
)
|
|
10193
10273
|
}
|
|
10194
|
-
))))), /* @__PURE__ */
|
|
10274
|
+
))))), /* @__PURE__ */ React96.createElement(CardFooter, null, /* @__PURE__ */ React96.createElement(Button, { className: "w-full" }, props.texts.payNow)), " "));
|
|
10195
10275
|
};
|
|
10196
10276
|
|
|
10197
10277
|
// src/blocks/Payment/Confirmation.tsx
|
|
10198
|
-
import
|
|
10278
|
+
import React97 from "react";
|
|
10199
10279
|
var ConfirmationPage = (props) => {
|
|
10200
10280
|
let isArabic = props.lang === "ar";
|
|
10201
|
-
return /* @__PURE__ */
|
|
10281
|
+
return /* @__PURE__ */ React97.createElement(Card, null, /* @__PURE__ */ React97.createElement(CardContent, { headless: true }, " ", /* @__PURE__ */ React97.createElement("div", { className: "py-5 text-center text-3xl font-bold dark:text-white" }, props.confirmationTitle), /* @__PURE__ */ React97.createElement("div", { className: "py-5 dark:text-white" }, /* @__PURE__ */ React97.createElement("div", { className: "mb-2 text-center" }, props.texts.successMessage, " ", /* @__PURE__ */ React97.createElement("strong", null, props.userEmail)), /* @__PURE__ */ React97.createElement("div", { className: "text-center" }, props.texts.yourOrderNumber), /* @__PURE__ */ React97.createElement("div", { className: "text-center font-bold" }, props.orderNumber)), /* @__PURE__ */ React97.createElement("div", { className: "flex flex-col items-center justify-center gap-4 py-5 pt-0" }, /* @__PURE__ */ React97.createElement(Button, { className: "w-full", onClick: props.handlePrint }, props.texts.print), /* @__PURE__ */ React97.createElement(Button, { className: "w-full", onClick: props.handleHistory }, props.texts.history), /* @__PURE__ */ React97.createElement(Button, { className: "w-full", onClick: props.handleHome }, props.texts.homePage), /* @__PURE__ */ React97.createElement("div", { className: " text-center text-sm dark:text-white" }, props.texts.fasterPaymentNote), /* @__PURE__ */ React97.createElement(
|
|
10202
10282
|
"a",
|
|
10203
10283
|
{
|
|
10204
10284
|
className: "clickable-link text-xs",
|
|
@@ -10209,9 +10289,9 @@ var ConfirmationPage = (props) => {
|
|
|
10209
10289
|
};
|
|
10210
10290
|
|
|
10211
10291
|
// src/blocks/Pricing/PricingPlans.tsx
|
|
10212
|
-
import
|
|
10292
|
+
import React98 from "react";
|
|
10213
10293
|
var PricingPlans = (props) => {
|
|
10214
|
-
return /* @__PURE__ */
|
|
10294
|
+
return /* @__PURE__ */ React98.createElement("div", null, /* @__PURE__ */ React98.createElement("div", { className: "mb-2 flex w-full justify-between" }, /* @__PURE__ */ React98.createElement(
|
|
10215
10295
|
HawaRadio,
|
|
10216
10296
|
{
|
|
10217
10297
|
design: "tabs",
|
|
@@ -10219,7 +10299,7 @@ var PricingPlans = (props) => {
|
|
|
10219
10299
|
options: props.billingCycles,
|
|
10220
10300
|
onChangeTab: (e) => props.onCycleChange(e)
|
|
10221
10301
|
}
|
|
10222
|
-
), /* @__PURE__ */
|
|
10302
|
+
), /* @__PURE__ */ React98.createElement(
|
|
10223
10303
|
HawaRadio,
|
|
10224
10304
|
{
|
|
10225
10305
|
design: "tabs",
|
|
@@ -10227,8 +10307,8 @@ var PricingPlans = (props) => {
|
|
|
10227
10307
|
options: props.currencies,
|
|
10228
10308
|
onChangeTab: (e) => props.onCurrencyChange(e)
|
|
10229
10309
|
}
|
|
10230
|
-
)), /* @__PURE__ */
|
|
10231
|
-
return /* @__PURE__ */
|
|
10310
|
+
)), /* @__PURE__ */ React98.createElement("div", { className: "flex flex-row justify-between" }, props.plans.map((plan, index) => {
|
|
10311
|
+
return /* @__PURE__ */ React98.createElement(
|
|
10232
10312
|
HawaPricingCard,
|
|
10233
10313
|
{
|
|
10234
10314
|
key: index,
|
|
@@ -10245,8 +10325,8 @@ var PricingPlans = (props) => {
|
|
|
10245
10325
|
};
|
|
10246
10326
|
|
|
10247
10327
|
// src/blocks/Pricing/ComparingPlans.tsx
|
|
10248
|
-
import
|
|
10249
|
-
var CheckMark = () => /* @__PURE__ */
|
|
10328
|
+
import React99, { useState as useState47 } from "react";
|
|
10329
|
+
var CheckMark = () => /* @__PURE__ */ React99.createElement(
|
|
10250
10330
|
"svg",
|
|
10251
10331
|
{
|
|
10252
10332
|
className: "h-5 w-5 text-green-500",
|
|
@@ -10254,7 +10334,7 @@ var CheckMark = () => /* @__PURE__ */ React98.createElement(
|
|
|
10254
10334
|
fill: "currentColor",
|
|
10255
10335
|
viewBox: "0 0 20 20"
|
|
10256
10336
|
},
|
|
10257
|
-
/* @__PURE__ */
|
|
10337
|
+
/* @__PURE__ */ React99.createElement(
|
|
10258
10338
|
"path",
|
|
10259
10339
|
{
|
|
10260
10340
|
fillRule: "evenodd",
|
|
@@ -10263,7 +10343,7 @@ var CheckMark = () => /* @__PURE__ */ React98.createElement(
|
|
|
10263
10343
|
}
|
|
10264
10344
|
)
|
|
10265
10345
|
);
|
|
10266
|
-
var UncheckMark = () => /* @__PURE__ */
|
|
10346
|
+
var UncheckMark = () => /* @__PURE__ */ React99.createElement(
|
|
10267
10347
|
"svg",
|
|
10268
10348
|
{
|
|
10269
10349
|
className: "h-5 w-5 text-red-500",
|
|
@@ -10271,7 +10351,7 @@ var UncheckMark = () => /* @__PURE__ */ React98.createElement(
|
|
|
10271
10351
|
fill: "currentColor",
|
|
10272
10352
|
viewBox: "0 0 20 20"
|
|
10273
10353
|
},
|
|
10274
|
-
/* @__PURE__ */
|
|
10354
|
+
/* @__PURE__ */ React99.createElement(
|
|
10275
10355
|
"path",
|
|
10276
10356
|
{
|
|
10277
10357
|
fillRule: "evenodd",
|
|
@@ -10281,9 +10361,9 @@ var UncheckMark = () => /* @__PURE__ */ React98.createElement(
|
|
|
10281
10361
|
)
|
|
10282
10362
|
);
|
|
10283
10363
|
var ComparingPlans = (props) => {
|
|
10284
|
-
const [currentCurrency, setCurrentCurrency] =
|
|
10285
|
-
const [currentCycle, setCurrentCycle] =
|
|
10286
|
-
return /* @__PURE__ */
|
|
10364
|
+
const [currentCurrency, setCurrentCurrency] = useState47("sar");
|
|
10365
|
+
const [currentCycle, setCurrentCycle] = useState47("month");
|
|
10366
|
+
return /* @__PURE__ */ React99.createElement("div", { id: "detailed-pricing", className: "w-full overflow-x-auto" }, /* @__PURE__ */ React99.createElement("div", { className: "mb-2 flex w-full justify-between" }, /* @__PURE__ */ React99.createElement(
|
|
10287
10367
|
HawaRadio,
|
|
10288
10368
|
{
|
|
10289
10369
|
design: "tabs",
|
|
@@ -10291,7 +10371,7 @@ var ComparingPlans = (props) => {
|
|
|
10291
10371
|
options: props.billingCycles,
|
|
10292
10372
|
onChangeTab: (e) => props.onCycleChange(e)
|
|
10293
10373
|
}
|
|
10294
|
-
), /* @__PURE__ */
|
|
10374
|
+
), /* @__PURE__ */ React99.createElement(
|
|
10295
10375
|
HawaRadio,
|
|
10296
10376
|
{
|
|
10297
10377
|
design: "tabs",
|
|
@@ -10299,9 +10379,9 @@ var ComparingPlans = (props) => {
|
|
|
10299
10379
|
options: props.currencies,
|
|
10300
10380
|
onChangeTab: (e) => props.onCurrencyChange(e)
|
|
10301
10381
|
}
|
|
10302
|
-
)), /* @__PURE__ */
|
|
10382
|
+
)), /* @__PURE__ */ React99.createElement("div", { className: " overflow-hidden rounded" }, /* @__PURE__ */ React99.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__ */ React99.createElement("div", { className: "flex items-center" }), props.plans.map((plan) => /* @__PURE__ */ React99.createElement("div", null, /* @__PURE__ */ React99.createElement("h5", { className: "text-md 0 font-bold text-gray-500 dark:text-gray-400" }, plan.texts.title), /* @__PURE__ */ React99.createElement("div", { className: " flex items-baseline text-gray-900 dark:text-white" }, /* @__PURE__ */ React99.createElement(React99.Fragment, null, /* @__PURE__ */ React99.createElement("span", { className: "text-5xl font-extrabold tracking-tight" }, plan.price), /* @__PURE__ */ React99.createElement("span", { className: "mx-1 text-sm font-semibold" }, plan.texts.currencyText)), /* @__PURE__ */ React99.createElement("span", { className: "ml-1 text-xl font-normal text-gray-500 dark:text-gray-400" }, "/ ", plan.texts.cycleText)), /* @__PURE__ */ React99.createElement("h5", { className: "text-md font-normal text-gray-500 dark:text-gray-400" }, plan.texts.subtitle)))), props.plans?.map((plan) => {
|
|
10303
10383
|
return plan.features.map((feature) => {
|
|
10304
|
-
return /* @__PURE__ */
|
|
10384
|
+
return /* @__PURE__ */ React99.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__ */ React99.createElement("div", { className: " flex flex-row items-center gap-2 text-gray-500 dark:text-gray-400" }, feature.text, feature.description && /* @__PURE__ */ React99.createElement(Tooltip, { side: "right", content: feature.description }, /* @__PURE__ */ React99.createElement(
|
|
10305
10385
|
"svg",
|
|
10306
10386
|
{
|
|
10307
10387
|
stroke: "currentColor",
|
|
@@ -10311,44 +10391,44 @@ var ComparingPlans = (props) => {
|
|
|
10311
10391
|
height: "1em",
|
|
10312
10392
|
width: "1em"
|
|
10313
10393
|
},
|
|
10314
|
-
/* @__PURE__ */
|
|
10315
|
-
))), /* @__PURE__ */
|
|
10394
|
+
/* @__PURE__ */ React99.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" })
|
|
10395
|
+
))), /* @__PURE__ */ React99.createElement(UncheckMark, null), /* @__PURE__ */ React99.createElement(CheckMark, null), /* @__PURE__ */ React99.createElement(UncheckMark, null));
|
|
10316
10396
|
});
|
|
10317
10397
|
})));
|
|
10318
10398
|
};
|
|
10319
10399
|
|
|
10320
10400
|
// src/blocks/Pricing/HorizontalPricing.tsx
|
|
10321
|
-
import
|
|
10401
|
+
import React100, { useState as useState48 } from "react";
|
|
10322
10402
|
import clsx33 from "clsx";
|
|
10323
10403
|
var HorizontalPricing = (props) => {
|
|
10324
|
-
const [selectedCard, setSelectedCard] =
|
|
10404
|
+
const [selectedCard, setSelectedCard] = useState48(null);
|
|
10325
10405
|
let data = [
|
|
10326
10406
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
|
10327
10407
|
{ title: "business", price: "$99", cycle: "/mo" },
|
|
10328
10408
|
{ title: "enterprise", price: "$149", cycle: "/mo" }
|
|
10329
10409
|
];
|
|
10330
|
-
return /* @__PURE__ */
|
|
10410
|
+
return /* @__PURE__ */ React100.createElement("div", { className: "z-10 w-full max-w-screen-sm" }, /* @__PURE__ */ React100.createElement("div", { className: "max-w-2xl " }, /* @__PURE__ */ React100.createElement("div", { className: "flex flex-row justify-between" }, /* @__PURE__ */ React100.createElement(
|
|
10331
10411
|
HawaRadio,
|
|
10332
10412
|
{
|
|
10333
10413
|
design: "tabs",
|
|
10334
10414
|
options: props.currencies,
|
|
10335
10415
|
defaultValue: props.currentCurrency
|
|
10336
10416
|
}
|
|
10337
|
-
), /* @__PURE__ */
|
|
10417
|
+
), /* @__PURE__ */ React100.createElement(
|
|
10338
10418
|
HawaRadio,
|
|
10339
10419
|
{
|
|
10340
10420
|
design: "tabs",
|
|
10341
10421
|
options: props.billingCycles,
|
|
10342
10422
|
defaultValue: props.currentCycle
|
|
10343
10423
|
}
|
|
10344
|
-
)), data.map((d) => /* @__PURE__ */
|
|
10424
|
+
)), data.map((d) => /* @__PURE__ */ React100.createElement(
|
|
10345
10425
|
"label",
|
|
10346
10426
|
{
|
|
10347
10427
|
htmlFor: d.title,
|
|
10348
10428
|
className: "",
|
|
10349
10429
|
onClick: () => setSelectedCard(d.title)
|
|
10350
10430
|
},
|
|
10351
|
-
/* @__PURE__ */
|
|
10431
|
+
/* @__PURE__ */ React100.createElement(
|
|
10352
10432
|
"input",
|
|
10353
10433
|
{
|
|
10354
10434
|
type: "radio",
|
|
@@ -10357,7 +10437,7 @@ var HorizontalPricing = (props) => {
|
|
|
10357
10437
|
className: "peer appearance-none"
|
|
10358
10438
|
}
|
|
10359
10439
|
),
|
|
10360
|
-
/* @__PURE__ */
|
|
10440
|
+
/* @__PURE__ */ React100.createElement(
|
|
10361
10441
|
"div",
|
|
10362
10442
|
{
|
|
10363
10443
|
className: clsx33(
|
|
@@ -10365,18 +10445,18 @@ var HorizontalPricing = (props) => {
|
|
|
10365
10445
|
"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"
|
|
10366
10446
|
)
|
|
10367
10447
|
},
|
|
10368
|
-
/* @__PURE__ */
|
|
10448
|
+
/* @__PURE__ */ React100.createElement("div", { className: "peer flex items-center gap-4" }, /* @__PURE__ */ React100.createElement(CheckIcons, null), /* @__PURE__ */ React100.createElement(
|
|
10369
10449
|
CardText,
|
|
10370
10450
|
{
|
|
10371
10451
|
title: "Enterprise",
|
|
10372
10452
|
subtitle: "For startups and new businesses"
|
|
10373
10453
|
}
|
|
10374
10454
|
)),
|
|
10375
|
-
/* @__PURE__ */
|
|
10455
|
+
/* @__PURE__ */ React100.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
|
10376
10456
|
)
|
|
10377
10457
|
))));
|
|
10378
10458
|
};
|
|
10379
|
-
var CheckIcons = () => /* @__PURE__ */
|
|
10459
|
+
var CheckIcons = () => /* @__PURE__ */ React100.createElement(React100.Fragment, null, /* @__PURE__ */ React100.createElement(
|
|
10380
10460
|
"svg",
|
|
10381
10461
|
{
|
|
10382
10462
|
fill: "none",
|
|
@@ -10385,7 +10465,7 @@ var CheckIcons = () => /* @__PURE__ */ React99.createElement(React99.Fragment, n
|
|
|
10385
10465
|
stroke: "currentColor",
|
|
10386
10466
|
className: "default h-8 w-8 text-neutral-500"
|
|
10387
10467
|
},
|
|
10388
|
-
/* @__PURE__ */
|
|
10468
|
+
/* @__PURE__ */ React100.createElement(
|
|
10389
10469
|
"path",
|
|
10390
10470
|
{
|
|
10391
10471
|
strokeLinecap: "round",
|
|
@@ -10393,14 +10473,14 @@ var CheckIcons = () => /* @__PURE__ */ React99.createElement(React99.Fragment, n
|
|
|
10393
10473
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
10394
10474
|
}
|
|
10395
10475
|
)
|
|
10396
|
-
), /* @__PURE__ */
|
|
10476
|
+
), /* @__PURE__ */ React100.createElement(
|
|
10397
10477
|
"svg",
|
|
10398
10478
|
{
|
|
10399
10479
|
viewBox: "0 0 24 24",
|
|
10400
10480
|
fill: "currentColor",
|
|
10401
10481
|
className: "active hidden h-8 w-8 text-blue-500"
|
|
10402
10482
|
},
|
|
10403
|
-
/* @__PURE__ */
|
|
10483
|
+
/* @__PURE__ */ React100.createElement(
|
|
10404
10484
|
"path",
|
|
10405
10485
|
{
|
|
10406
10486
|
fillRule: "evenodd",
|
|
@@ -10409,21 +10489,21 @@ var CheckIcons = () => /* @__PURE__ */ React99.createElement(React99.Fragment, n
|
|
|
10409
10489
|
}
|
|
10410
10490
|
)
|
|
10411
10491
|
));
|
|
10412
|
-
var CardText = (props) => /* @__PURE__ */
|
|
10413
|
-
var CardPrice = (props) => /* @__PURE__ */
|
|
10492
|
+
var CardText = (props) => /* @__PURE__ */ React100.createElement("div", { className: "peer flex flex-col items-start " }, /* @__PURE__ */ React100.createElement("h2", { className: "font-medium text-neutral-700 dark:text-gray-100 sm:text-xl" }, props.title), /* @__PURE__ */ React100.createElement("p", { className: "text-sm text-neutral-500 dark:text-gray-300" }, props.subtitle, " "));
|
|
10493
|
+
var CardPrice = (props) => /* @__PURE__ */ React100.createElement("h2", { className: "peer text-xl font-semibold text-neutral-900 dark:text-white sm:text-2xl" }, props.amount, /* @__PURE__ */ React100.createElement("span", { className: "text-base font-medium text-neutral-400" }, props.cycle));
|
|
10414
10494
|
|
|
10415
10495
|
// src/blocks/Referral/ReferralAccount.tsx
|
|
10416
|
-
import
|
|
10496
|
+
import React101 from "react";
|
|
10417
10497
|
var ReferralAccount = ({
|
|
10418
10498
|
referralLink,
|
|
10419
10499
|
referralCode
|
|
10420
10500
|
}) => {
|
|
10421
|
-
return /* @__PURE__ */
|
|
10501
|
+
return /* @__PURE__ */ React101.createElement(Card, null, /* @__PURE__ */ React101.createElement(CardContent, { headless: true }, /* @__PURE__ */ React101.createElement("div", { className: "my-2 mt-0" }, /* @__PURE__ */ React101.createElement("div", { className: "mb-1" }, "Referral Code"), /* @__PURE__ */ React101.createElement("div", { className: "flex flex-row items-center justify-between rounded border bg-background" }, /* @__PURE__ */ React101.createElement("span", { className: "ml-3 font-bold" }, referralCode), /* @__PURE__ */ React101.createElement(
|
|
10422
10502
|
Button,
|
|
10423
10503
|
{
|
|
10424
10504
|
onClick: () => navigator.clipboard.writeText(referralCode)
|
|
10425
10505
|
},
|
|
10426
|
-
/* @__PURE__ */
|
|
10506
|
+
/* @__PURE__ */ React101.createElement("span", { className: "bg-red flex items-center justify-center" }, /* @__PURE__ */ React101.createElement(
|
|
10427
10507
|
"svg",
|
|
10428
10508
|
{
|
|
10429
10509
|
stroke: "currentColor",
|
|
@@ -10433,14 +10513,14 @@ var ReferralAccount = ({
|
|
|
10433
10513
|
height: "1em",
|
|
10434
10514
|
width: "1em"
|
|
10435
10515
|
},
|
|
10436
|
-
/* @__PURE__ */
|
|
10516
|
+
/* @__PURE__ */ React101.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" })
|
|
10437
10517
|
), " ")
|
|
10438
|
-
))), /* @__PURE__ */
|
|
10518
|
+
))), /* @__PURE__ */ React101.createElement("div", { className: "my-2 mt-0" }, /* @__PURE__ */ React101.createElement("div", { className: "mb-1" }, "Referral Link"), /* @__PURE__ */ React101.createElement("div", { className: "flex flex-row items-center justify-between rounded border bg-background" }, /* @__PURE__ */ React101.createElement("span", { className: "ml-3 font-bold" }, referralLink), /* @__PURE__ */ React101.createElement(
|
|
10439
10519
|
Button,
|
|
10440
10520
|
{
|
|
10441
10521
|
onClick: () => navigator.clipboard.writeText(referralLink)
|
|
10442
10522
|
},
|
|
10443
|
-
/* @__PURE__ */
|
|
10523
|
+
/* @__PURE__ */ React101.createElement("span", { className: "bg-red flex items-center justify-center" }, /* @__PURE__ */ React101.createElement(
|
|
10444
10524
|
"svg",
|
|
10445
10525
|
{
|
|
10446
10526
|
stroke: "currentColor",
|
|
@@ -10450,13 +10530,13 @@ var ReferralAccount = ({
|
|
|
10450
10530
|
height: "1em",
|
|
10451
10531
|
width: "1em"
|
|
10452
10532
|
},
|
|
10453
|
-
/* @__PURE__ */
|
|
10533
|
+
/* @__PURE__ */ React101.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" })
|
|
10454
10534
|
), " ")
|
|
10455
10535
|
)))));
|
|
10456
10536
|
};
|
|
10457
10537
|
|
|
10458
10538
|
// src/blocks/Referral/ReferralSettlement.tsx
|
|
10459
|
-
import
|
|
10539
|
+
import React102 from "react";
|
|
10460
10540
|
import { Controller as Controller9, FormProvider as FormProvider5, useForm as useForm9 } from "react-hook-form";
|
|
10461
10541
|
var ReferralSettlement = ({
|
|
10462
10542
|
referralLink,
|
|
@@ -10469,12 +10549,12 @@ var ReferralSettlement = ({
|
|
|
10469
10549
|
handleSubmit,
|
|
10470
10550
|
control
|
|
10471
10551
|
} = methods;
|
|
10472
|
-
return /* @__PURE__ */
|
|
10552
|
+
return /* @__PURE__ */ React102.createElement(Card, null, /* @__PURE__ */ React102.createElement(CardContent, { headless: true }, /* @__PURE__ */ React102.createElement("div", null, /* @__PURE__ */ React102.createElement(FormProvider5, { ...methods }, /* @__PURE__ */ React102.createElement(HawaTextField, { label: "IBAN" }), /* @__PURE__ */ React102.createElement(HawaTextField, { label: "Holder Name" }), /* @__PURE__ */ React102.createElement(
|
|
10473
10553
|
Controller9,
|
|
10474
10554
|
{
|
|
10475
10555
|
control,
|
|
10476
10556
|
name: "bank",
|
|
10477
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10557
|
+
render: ({ field }) => /* @__PURE__ */ React102.createElement(
|
|
10478
10558
|
HawaSelect,
|
|
10479
10559
|
{
|
|
10480
10560
|
label: "Bank",
|
|
@@ -10493,13 +10573,13 @@ var ReferralSettlement = ({
|
|
|
10493
10573
|
}
|
|
10494
10574
|
)
|
|
10495
10575
|
}
|
|
10496
|
-
))), /* @__PURE__ */
|
|
10576
|
+
))), /* @__PURE__ */ React102.createElement("div", null, /* @__PURE__ */ React102.createElement(Button, { className: "mt-6 w-full" }, "Add Bank Account")), withdrawError && /* @__PURE__ */ React102.createElement("div", null, /* @__PURE__ */ React102.createElement(
|
|
10497
10577
|
HawaAlert,
|
|
10498
10578
|
{
|
|
10499
10579
|
text: "Sorry can't withdraw the money at the moment. Please try again in 2022/11/20",
|
|
10500
10580
|
severity: "warning"
|
|
10501
10581
|
}
|
|
10502
|
-
)), /* @__PURE__ */
|
|
10582
|
+
)), /* @__PURE__ */ React102.createElement("div", { className: "mt-3" }, /* @__PURE__ */ React102.createElement("div", { className: "mb-1" }, "Settlement Accounts"), /* @__PURE__ */ React102.createElement("div", { className: "rounded" }, /* @__PURE__ */ React102.createElement(
|
|
10503
10583
|
SettlementAccountCard,
|
|
10504
10584
|
{
|
|
10505
10585
|
bank: "Al Inma Bank",
|
|
@@ -10507,14 +10587,14 @@ var ReferralSettlement = ({
|
|
|
10507
10587
|
accountHolder: "Zakher Masri",
|
|
10508
10588
|
default: true
|
|
10509
10589
|
}
|
|
10510
|
-
), /* @__PURE__ */
|
|
10590
|
+
), /* @__PURE__ */ React102.createElement(
|
|
10511
10591
|
SettlementAccountCard,
|
|
10512
10592
|
{
|
|
10513
10593
|
bank: "Al Rajihi Bank",
|
|
10514
10594
|
iban: "SA10228094028098329119",
|
|
10515
10595
|
accountHolder: "Zakher Masri"
|
|
10516
10596
|
}
|
|
10517
|
-
), /* @__PURE__ */
|
|
10597
|
+
), /* @__PURE__ */ React102.createElement(
|
|
10518
10598
|
SettlementAccountCard,
|
|
10519
10599
|
{
|
|
10520
10600
|
bank: "Al Inma Bank",
|
|
@@ -10524,13 +10604,13 @@ var ReferralSettlement = ({
|
|
|
10524
10604
|
)))));
|
|
10525
10605
|
};
|
|
10526
10606
|
var SettlementAccountCard = (props) => {
|
|
10527
|
-
return /* @__PURE__ */
|
|
10607
|
+
return /* @__PURE__ */ React102.createElement("div", { className: "mb-3 flex flex-row items-center justify-between rounded border bg-background p-3" }, /* @__PURE__ */ React102.createElement("div", { className: "flex flex-col justify-between" }, /* @__PURE__ */ React102.createElement("div", { className: "text-xs" }, props.bank), /* @__PURE__ */ React102.createElement("div", null, props.accountHolder), /* @__PURE__ */ React102.createElement("div", { className: "text-xs" }, props.iban)), /* @__PURE__ */ React102.createElement("div", { className: "flex flex-row items-center justify-center gap-2" }, props.default && /* @__PURE__ */ React102.createElement(
|
|
10528
10608
|
HawaChip,
|
|
10529
10609
|
{
|
|
10530
10610
|
label: "Default",
|
|
10531
10611
|
size: "small"
|
|
10532
10612
|
}
|
|
10533
|
-
), /* @__PURE__ */
|
|
10613
|
+
), /* @__PURE__ */ React102.createElement(
|
|
10534
10614
|
HawaMenu,
|
|
10535
10615
|
{
|
|
10536
10616
|
size: "small",
|
|
@@ -10542,7 +10622,7 @@ var SettlementAccountCard = (props) => {
|
|
|
10542
10622
|
]
|
|
10543
10623
|
]
|
|
10544
10624
|
},
|
|
10545
|
-
/* @__PURE__ */
|
|
10625
|
+
/* @__PURE__ */ React102.createElement(Button, { variant: "outline", size: "icon" }, /* @__PURE__ */ React102.createElement(
|
|
10546
10626
|
"svg",
|
|
10547
10627
|
{
|
|
10548
10628
|
"aria-label": "Vertical Three Dots Menu Icon",
|
|
@@ -10554,53 +10634,53 @@ var SettlementAccountCard = (props) => {
|
|
|
10554
10634
|
height: "1em",
|
|
10555
10635
|
width: "1em"
|
|
10556
10636
|
},
|
|
10557
|
-
/* @__PURE__ */
|
|
10637
|
+
/* @__PURE__ */ React102.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" })
|
|
10558
10638
|
))
|
|
10559
10639
|
)));
|
|
10560
10640
|
};
|
|
10561
10641
|
|
|
10562
10642
|
// src/blocks/Referral/ReferralStats.tsx
|
|
10563
|
-
import
|
|
10643
|
+
import React103 from "react";
|
|
10564
10644
|
var ReferralStats = ({
|
|
10565
10645
|
referralLink,
|
|
10566
10646
|
referralCode,
|
|
10567
10647
|
withdrawError
|
|
10568
10648
|
}) => {
|
|
10569
|
-
return /* @__PURE__ */
|
|
10649
|
+
return /* @__PURE__ */ React103.createElement(Card, null, /* @__PURE__ */ React103.createElement(CardContent, { headless: true }, /* @__PURE__ */ React103.createElement("div", { className: "mb-1" }, "Stats"), /* @__PURE__ */ React103.createElement("div", { className: "justi flex flex-row gap-1" }, /* @__PURE__ */ React103.createElement(NumberCard, { title: "Clicks", number: 22 }), /* @__PURE__ */ React103.createElement(NumberCard, { title: "Sign-ups", number: 32 }), /* @__PURE__ */ React103.createElement(NumberCard, { title: "Commission", number: "213.22 SAR" })), /* @__PURE__ */ React103.createElement(Button, { className: "mt-6 w-full" }, "Withdraw Money"), withdrawError && /* @__PURE__ */ React103.createElement("div", null, /* @__PURE__ */ React103.createElement(
|
|
10570
10650
|
HawaAlert,
|
|
10571
10651
|
{
|
|
10572
10652
|
text: "Sorry can't withdraw the money at the moment. Please try again in 2022/11/20",
|
|
10573
10653
|
severity: "warning"
|
|
10574
10654
|
}
|
|
10575
|
-
)), /* @__PURE__ */
|
|
10655
|
+
)), /* @__PURE__ */ React103.createElement("div", { className: "mt-3" }, /* @__PURE__ */ React103.createElement("div", { className: "mb-1" }, "Sign ups"), /* @__PURE__ */ React103.createElement("div", { className: "rounded" }, /* @__PURE__ */ React103.createElement(
|
|
10576
10656
|
ReferralSignUpCard,
|
|
10577
10657
|
{
|
|
10578
10658
|
date: "2020/10/11 @ 9:45 pm",
|
|
10579
10659
|
email: "zakher@sikka.io",
|
|
10580
10660
|
amount: "3.4 SAR / Month"
|
|
10581
10661
|
}
|
|
10582
|
-
), /* @__PURE__ */
|
|
10662
|
+
), /* @__PURE__ */ React103.createElement(
|
|
10583
10663
|
ReferralSignUpCard,
|
|
10584
10664
|
{
|
|
10585
10665
|
date: "2022/10/11 @ 9:45 pm",
|
|
10586
10666
|
email: "zakher@sikka.io",
|
|
10587
10667
|
amount: "3.4 SAR / Month"
|
|
10588
10668
|
}
|
|
10589
|
-
), /* @__PURE__ */
|
|
10669
|
+
), /* @__PURE__ */ React103.createElement(
|
|
10590
10670
|
ReferralSignUpCard,
|
|
10591
10671
|
{
|
|
10592
10672
|
date: "2022/10/11 @ 9:45 pm",
|
|
10593
10673
|
email: "zakher@sikka.io",
|
|
10594
10674
|
amount: "3.4 SAR / Month"
|
|
10595
10675
|
}
|
|
10596
|
-
), /* @__PURE__ */
|
|
10676
|
+
), /* @__PURE__ */ React103.createElement(
|
|
10597
10677
|
ReferralSignUpCard,
|
|
10598
10678
|
{
|
|
10599
10679
|
date: "2022/10/11 @ 9:45 pm",
|
|
10600
10680
|
email: "zakher@sikka.io",
|
|
10601
10681
|
amount: "3.4 SAR / Month"
|
|
10602
10682
|
}
|
|
10603
|
-
), /* @__PURE__ */
|
|
10683
|
+
), /* @__PURE__ */ React103.createElement(
|
|
10604
10684
|
ReferralSignUpCard,
|
|
10605
10685
|
{
|
|
10606
10686
|
date: "2022/10/11 @ 9:45 pm",
|
|
@@ -10609,26 +10689,26 @@ var ReferralStats = ({
|
|
|
10609
10689
|
}
|
|
10610
10690
|
)))));
|
|
10611
10691
|
};
|
|
10612
|
-
var NumberCard = (props) => /* @__PURE__ */
|
|
10613
|
-
var ReferralSignUpCard = (props) => /* @__PURE__ */
|
|
10692
|
+
var NumberCard = (props) => /* @__PURE__ */ React103.createElement("div", { className: "w-full rounded border bg-background p-2" }, /* @__PURE__ */ React103.createElement("div", { className: "text-sm" }, props.title), /* @__PURE__ */ React103.createElement("div", { className: "font-bold" }, props.number));
|
|
10693
|
+
var ReferralSignUpCard = (props) => /* @__PURE__ */ React103.createElement("div", { className: "mb-3 rounded border-b bg-background p-2" }, /* @__PURE__ */ React103.createElement("div", { className: "text-xs" }, props.date), /* @__PURE__ */ React103.createElement("div", { className: "flex flex-row justify-between" }, /* @__PURE__ */ React103.createElement("div", null, props.email), /* @__PURE__ */ React103.createElement("div", null, props.amount)));
|
|
10614
10694
|
|
|
10615
10695
|
// src/blocks/Misc/NotFound.tsx
|
|
10616
|
-
import
|
|
10696
|
+
import React104 from "react";
|
|
10617
10697
|
var NotFound = ({
|
|
10618
10698
|
variant = "contained",
|
|
10619
10699
|
texts
|
|
10620
10700
|
}) => {
|
|
10621
|
-
return /* @__PURE__ */
|
|
10701
|
+
return /* @__PURE__ */ React104.createElement(Card, null, /* @__PURE__ */ React104.createElement(CardContent, { headless: true }, /* @__PURE__ */ React104.createElement("div", { className: "flex flex-col items-center dark:text-white" }, /* @__PURE__ */ React104.createElement("div", { className: "text-center text-6xl font-bold " }, "404"), /* @__PURE__ */ React104.createElement("div", { className: "m-2 text-center text-xl font-bold " }, texts?.pageNotFound ?? "Page Not Found"), /* @__PURE__ */ React104.createElement("div", { className: "mb-4 text-center" }, texts?.ifLost ?? /* @__PURE__ */ React104.createElement(React104.Fragment, null, "If you're lost please contact us", " ", /* @__PURE__ */ React104.createElement("span", { className: "clickable-link" }, "help@sikka.io"))), /* @__PURE__ */ React104.createElement(Button, { className: "w-full" }, texts?.home ?? "Home"))));
|
|
10622
10702
|
};
|
|
10623
10703
|
|
|
10624
10704
|
// src/blocks/Misc/EmptyState.tsx
|
|
10625
|
-
import
|
|
10705
|
+
import React105 from "react";
|
|
10626
10706
|
var EmptyState = ({
|
|
10627
10707
|
variant = "contained",
|
|
10628
10708
|
texts,
|
|
10629
10709
|
onActionClick
|
|
10630
10710
|
}) => {
|
|
10631
|
-
return /* @__PURE__ */
|
|
10711
|
+
return /* @__PURE__ */ React105.createElement(Card, null, /* @__PURE__ */ React105.createElement(CardContent, { headless: true }, /* @__PURE__ */ React105.createElement("div", { className: "flex flex-col items-center justify-center text-center " }, /* @__PURE__ */ React105.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__ */ React105.createElement(
|
|
10632
10712
|
"svg",
|
|
10633
10713
|
{
|
|
10634
10714
|
stroke: "currentColor",
|
|
@@ -10638,36 +10718,36 @@ var EmptyState = ({
|
|
|
10638
10718
|
height: "0.35em",
|
|
10639
10719
|
width: "0.35em"
|
|
10640
10720
|
},
|
|
10641
|
-
/* @__PURE__ */
|
|
10642
|
-
)), /* @__PURE__ */
|
|
10721
|
+
/* @__PURE__ */ React105.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" })
|
|
10722
|
+
)), /* @__PURE__ */ React105.createElement("div", { className: "m-2 text-xl font-bold" }, texts?.youreCaughtUp ?? "You're all caught up"))), /* @__PURE__ */ React105.createElement(CardFooter, null, /* @__PURE__ */ React105.createElement(Button, { className: "w-full", onClick: () => onActionClick() }, texts?.actionText ?? "Go Home")));
|
|
10643
10723
|
};
|
|
10644
10724
|
|
|
10645
10725
|
// src/blocks/Misc/Testimonial.tsx
|
|
10646
|
-
import
|
|
10726
|
+
import React106 from "react";
|
|
10647
10727
|
var Testimonial = (props) => {
|
|
10648
|
-
return /* @__PURE__ */
|
|
10728
|
+
return /* @__PURE__ */ React106.createElement(Card, null, /* @__PURE__ */ React106.createElement(CardContent, { headless: true }, /* @__PURE__ */ React106.createElement("div", null, /* @__PURE__ */ React106.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__ */ React106.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ React106.createElement("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none" }, /* @__PURE__ */ React106.createElement("rect", { width: "48", height: "48", rx: "24", fill: "#45BE8B" }), /* @__PURE__ */ React106.createElement(
|
|
10649
10729
|
"path",
|
|
10650
10730
|
{
|
|
10651
10731
|
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",
|
|
10652
10732
|
fill: "#FFFFFF"
|
|
10653
10733
|
}
|
|
10654
|
-
), /* @__PURE__ */
|
|
10734
|
+
), /* @__PURE__ */ React106.createElement(
|
|
10655
10735
|
"path",
|
|
10656
10736
|
{
|
|
10657
10737
|
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",
|
|
10658
10738
|
fill: "#FFFFFF"
|
|
10659
10739
|
}
|
|
10660
|
-
)), /* @__PURE__ */
|
|
10740
|
+
)), /* @__PURE__ */ React106.createElement("span", { className: "border border-l " }), " ", /* @__PURE__ */ React106.createElement("div", null, /* @__PURE__ */ React106.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ React106.createElement("div", null, " Chief Information Security Officer")))));
|
|
10661
10741
|
};
|
|
10662
10742
|
|
|
10663
10743
|
// src/blocks/Misc/LeadGenerator.tsx
|
|
10664
|
-
import
|
|
10744
|
+
import React107 from "react";
|
|
10665
10745
|
var LeadGenerator = ({
|
|
10666
10746
|
variant = "contained",
|
|
10667
10747
|
texts,
|
|
10668
10748
|
handleNewsletterSub
|
|
10669
10749
|
}) => {
|
|
10670
|
-
return /* @__PURE__ */
|
|
10750
|
+
return /* @__PURE__ */ React107.createElement(Card, null, /* @__PURE__ */ React107.createElement(CardHeader, null, /* @__PURE__ */ React107.createElement(CardTitle, null, texts?.title), /* @__PURE__ */ React107.createElement(CardDescription, null, texts?.subtitle)), /* @__PURE__ */ React107.createElement(CardContent, null, /* @__PURE__ */ React107.createElement(
|
|
10671
10751
|
"form",
|
|
10672
10752
|
{
|
|
10673
10753
|
className: "flex flex-row gap-2",
|
|
@@ -10676,36 +10756,36 @@ var LeadGenerator = ({
|
|
|
10676
10756
|
handleNewsletterSub(e.target[0].value);
|
|
10677
10757
|
}
|
|
10678
10758
|
},
|
|
10679
|
-
/* @__PURE__ */
|
|
10680
|
-
/* @__PURE__ */
|
|
10759
|
+
/* @__PURE__ */ React107.createElement(Input, { type: "email", name: "email", placeholder: "example@sikka.io" }),
|
|
10760
|
+
/* @__PURE__ */ React107.createElement(Button, null, texts?.submit ?? "Submit")
|
|
10681
10761
|
)));
|
|
10682
10762
|
};
|
|
10683
10763
|
|
|
10684
10764
|
// src/blocks/Misc/Announcement.tsx
|
|
10685
|
-
import
|
|
10765
|
+
import React108 from "react";
|
|
10686
10766
|
var Announcement = ({
|
|
10687
10767
|
variant = "contained",
|
|
10688
10768
|
onActionClick,
|
|
10689
10769
|
...props
|
|
10690
10770
|
}) => {
|
|
10691
|
-
return /* @__PURE__ */
|
|
10771
|
+
return /* @__PURE__ */ React108.createElement(Card, null, /* @__PURE__ */ React108.createElement(
|
|
10692
10772
|
CardContent,
|
|
10693
10773
|
{
|
|
10694
10774
|
headless: true,
|
|
10695
10775
|
className: "flex flex-row items-center justify-between"
|
|
10696
10776
|
},
|
|
10697
|
-
/* @__PURE__ */
|
|
10698
|
-
/* @__PURE__ */
|
|
10777
|
+
/* @__PURE__ */ React108.createElement("div", { className: "flex flex-col items-start justify-center " }, /* @__PURE__ */ React108.createElement("span", { className: "text-lg font-bold" }, props.title), /* @__PURE__ */ React108.createElement("span", { className: "text-sm" }, props.subtitle)),
|
|
10778
|
+
/* @__PURE__ */ React108.createElement(Button, { onClick: () => onActionClick() }, props.actionText)
|
|
10699
10779
|
));
|
|
10700
10780
|
};
|
|
10701
10781
|
|
|
10702
10782
|
// src/blocks/Misc/NoPermission.tsx
|
|
10703
|
-
import
|
|
10783
|
+
import React109 from "react";
|
|
10704
10784
|
var NoPermission = ({
|
|
10705
10785
|
variant = "contained",
|
|
10706
10786
|
texts
|
|
10707
10787
|
}) => {
|
|
10708
|
-
return /* @__PURE__ */
|
|
10788
|
+
return /* @__PURE__ */ React109.createElement(Card, null, /* @__PURE__ */ React109.createElement(CardContent, { headless: true }, /* @__PURE__ */ React109.createElement("div", { className: "flex flex-col items-center justify-center text-center" }, /* @__PURE__ */ React109.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__ */ React109.createElement(
|
|
10709
10789
|
"svg",
|
|
10710
10790
|
{
|
|
10711
10791
|
stroke: "currentColor",
|
|
@@ -10715,13 +10795,14 @@ var NoPermission = ({
|
|
|
10715
10795
|
height: "0.35em",
|
|
10716
10796
|
width: "0.35em"
|
|
10717
10797
|
},
|
|
10718
|
-
/* @__PURE__ */
|
|
10719
|
-
), " "), /* @__PURE__ */
|
|
10798
|
+
/* @__PURE__ */ React109.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" })
|
|
10799
|
+
), " "), /* @__PURE__ */ React109.createElement("div", { className: "m-2 text-xl font-bold" }, texts?.title ?? "You don't have permission"), /* @__PURE__ */ React109.createElement("div", null, texts?.subtitle ?? "If you think this is a problem please contact your administrator or our customer support"))));
|
|
10720
10800
|
};
|
|
10721
10801
|
|
|
10722
10802
|
// src/hooks/useHover.ts
|
|
10723
|
-
import { useEffect as useEffect26, useRef as useRef18, useState as
|
|
10803
|
+
import { useEffect as useEffect26, useRef as useRef18, useState as useState49 } from "react";
|
|
10724
10804
|
export {
|
|
10805
|
+
ActionCard,
|
|
10725
10806
|
Announcement,
|
|
10726
10807
|
AppLanding,
|
|
10727
10808
|
AppLayout,
|