@sikka/hawa 0.1.85 → 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 +751 -703
- package/dist/index.mjs +543 -503
- package/dist/styles.css +22 -0
- package/package.json +1 -1
- package/src/elements/ActionCard.tsx +64 -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 = {
|
|
@@ -9034,39 +9073,39 @@ var Icons = {
|
|
|
9034
9073
|
|
|
9035
9074
|
// src/blocks/AuthForms/AppLanding.tsx
|
|
9036
9075
|
var AppLanding = (props) => {
|
|
9037
|
-
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(
|
|
9038
9077
|
Button,
|
|
9039
9078
|
{
|
|
9040
9079
|
className: "flex flex-row items-center gap-2",
|
|
9041
9080
|
variant: "outline"
|
|
9042
9081
|
},
|
|
9043
|
-
/* @__PURE__ */
|
|
9082
|
+
/* @__PURE__ */ React85.createElement(Icons.google, { className: "h-4 w-4" }),
|
|
9044
9083
|
"Continue With Google"
|
|
9045
|
-
), /* @__PURE__ */
|
|
9084
|
+
), /* @__PURE__ */ React85.createElement(
|
|
9046
9085
|
Button,
|
|
9047
9086
|
{
|
|
9048
9087
|
className: "flex flex-row items-center gap-2",
|
|
9049
9088
|
variant: "outline"
|
|
9050
9089
|
},
|
|
9051
|
-
/* @__PURE__ */
|
|
9090
|
+
/* @__PURE__ */ React85.createElement(Icons.twitter, { className: "h-4 w-4" }),
|
|
9052
9091
|
"Continue With Twitter"
|
|
9053
|
-
), /* @__PURE__ */
|
|
9092
|
+
), /* @__PURE__ */ React85.createElement(
|
|
9054
9093
|
Button,
|
|
9055
9094
|
{
|
|
9056
9095
|
className: "flex flex-row items-center gap-2",
|
|
9057
9096
|
variant: "outline"
|
|
9058
9097
|
},
|
|
9059
|
-
/* @__PURE__ */
|
|
9098
|
+
/* @__PURE__ */ React85.createElement(Icons.apple, { className: "h-4 w-4" }),
|
|
9060
9099
|
"Continue With Apple"
|
|
9061
|
-
), /* @__PURE__ */
|
|
9100
|
+
), /* @__PURE__ */ React85.createElement(
|
|
9062
9101
|
Button,
|
|
9063
9102
|
{
|
|
9064
9103
|
className: "flex flex-row items-center gap-2",
|
|
9065
9104
|
variant: "outline"
|
|
9066
9105
|
},
|
|
9067
|
-
/* @__PURE__ */
|
|
9106
|
+
/* @__PURE__ */ React85.createElement(Icons.mail, { className: "h-4 w-4" }),
|
|
9068
9107
|
"Continue With Email"
|
|
9069
|
-
), /* @__PURE__ */
|
|
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(
|
|
9070
9109
|
HawaRadio,
|
|
9071
9110
|
{
|
|
9072
9111
|
onChangeTab: props.handleLanguage,
|
|
@@ -9076,7 +9115,7 @@ var AppLanding = (props) => {
|
|
|
9076
9115
|
{ value: "en", label: "English" }
|
|
9077
9116
|
]
|
|
9078
9117
|
}
|
|
9079
|
-
), /* @__PURE__ */
|
|
9118
|
+
), /* @__PURE__ */ React85.createElement(
|
|
9080
9119
|
HawaRadio,
|
|
9081
9120
|
{
|
|
9082
9121
|
onChangeTab: props.handleColorMode,
|
|
@@ -9084,7 +9123,7 @@ var AppLanding = (props) => {
|
|
|
9084
9123
|
options: [
|
|
9085
9124
|
{
|
|
9086
9125
|
value: "light",
|
|
9087
|
-
label: /* @__PURE__ */
|
|
9126
|
+
label: /* @__PURE__ */ React85.createElement(
|
|
9088
9127
|
"svg",
|
|
9089
9128
|
{
|
|
9090
9129
|
width: "15",
|
|
@@ -9094,7 +9133,7 @@ var AppLanding = (props) => {
|
|
|
9094
9133
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9095
9134
|
className: "h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90"
|
|
9096
9135
|
},
|
|
9097
|
-
/* @__PURE__ */
|
|
9136
|
+
/* @__PURE__ */ React85.createElement(
|
|
9098
9137
|
"path",
|
|
9099
9138
|
{
|
|
9100
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",
|
|
@@ -9107,7 +9146,7 @@ var AppLanding = (props) => {
|
|
|
9107
9146
|
},
|
|
9108
9147
|
{
|
|
9109
9148
|
value: "dark",
|
|
9110
|
-
label: /* @__PURE__ */
|
|
9149
|
+
label: /* @__PURE__ */ React85.createElement(
|
|
9111
9150
|
"svg",
|
|
9112
9151
|
{
|
|
9113
9152
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9121,7 +9160,7 @@ var AppLanding = (props) => {
|
|
|
9121
9160
|
strokeLinejoin: "round",
|
|
9122
9161
|
className: "h-[1.2rem] w-[1.2rem] transition-all dark:rotate-0 dark:scale-100"
|
|
9123
9162
|
},
|
|
9124
|
-
/* @__PURE__ */
|
|
9163
|
+
/* @__PURE__ */ React85.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
|
9125
9164
|
)
|
|
9126
9165
|
}
|
|
9127
9166
|
]
|
|
@@ -9130,7 +9169,7 @@ var AppLanding = (props) => {
|
|
|
9130
9169
|
};
|
|
9131
9170
|
|
|
9132
9171
|
// src/blocks/AuthForms/SignInPhone.tsx
|
|
9133
|
-
import
|
|
9172
|
+
import React86, { useState as useState42 } from "react";
|
|
9134
9173
|
import { Controller as Controller2, useForm as useForm2 } from "react-hook-form";
|
|
9135
9174
|
var SignInPhone = (props) => {
|
|
9136
9175
|
const methods = useForm2();
|
|
@@ -9139,8 +9178,8 @@ var SignInPhone = (props) => {
|
|
|
9139
9178
|
handleSubmit,
|
|
9140
9179
|
control
|
|
9141
9180
|
} = methods;
|
|
9142
|
-
const [userPhone, setUserPhone] =
|
|
9143
|
-
return /* @__PURE__ */
|
|
9181
|
+
const [userPhone, setUserPhone] = useState42("");
|
|
9182
|
+
return /* @__PURE__ */ React86.createElement(Card, null, /* @__PURE__ */ React86.createElement(CardContent, { headless: true }, /* @__PURE__ */ React86.createElement(
|
|
9144
9183
|
"form",
|
|
9145
9184
|
{
|
|
9146
9185
|
onSubmit: (e) => {
|
|
@@ -9148,12 +9187,12 @@ var SignInPhone = (props) => {
|
|
|
9148
9187
|
props.handleSignIn(userPhone);
|
|
9149
9188
|
}
|
|
9150
9189
|
},
|
|
9151
|
-
/* @__PURE__ */
|
|
9190
|
+
/* @__PURE__ */ React86.createElement(
|
|
9152
9191
|
Controller2,
|
|
9153
9192
|
{
|
|
9154
9193
|
control,
|
|
9155
9194
|
name: "phone",
|
|
9156
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9195
|
+
render: ({ field }) => /* @__PURE__ */ React86.createElement(
|
|
9157
9196
|
HawaPhoneInput,
|
|
9158
9197
|
{
|
|
9159
9198
|
country: props.country ?? "",
|
|
@@ -9167,13 +9206,13 @@ var SignInPhone = (props) => {
|
|
|
9167
9206
|
}
|
|
9168
9207
|
}
|
|
9169
9208
|
),
|
|
9170
|
-
/* @__PURE__ */
|
|
9171
|
-
/* @__PURE__ */
|
|
9209
|
+
/* @__PURE__ */ React86.createElement("div", { className: "mt-2" }),
|
|
9210
|
+
/* @__PURE__ */ React86.createElement(Button, { className: "w-full" }, props.SignInButtonText)
|
|
9172
9211
|
)));
|
|
9173
9212
|
};
|
|
9174
9213
|
|
|
9175
9214
|
// src/blocks/AuthForms/SignInForm.tsx
|
|
9176
|
-
import
|
|
9215
|
+
import React87 from "react";
|
|
9177
9216
|
import { Controller as Controller3, useForm as useForm3 } from "react-hook-form";
|
|
9178
9217
|
var SignInForm = (props) => {
|
|
9179
9218
|
const {
|
|
@@ -9181,19 +9220,19 @@ var SignInForm = (props) => {
|
|
|
9181
9220
|
handleSubmit,
|
|
9182
9221
|
control
|
|
9183
9222
|
} = useForm3();
|
|
9184
|
-
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(
|
|
9185
9224
|
HawaAlert,
|
|
9186
9225
|
{
|
|
9187
9226
|
title: props.errorTitle,
|
|
9188
9227
|
text: props.errorText,
|
|
9189
9228
|
severity: "error"
|
|
9190
9229
|
}
|
|
9191
|
-
), props.signInType === "email" ? /* @__PURE__ */
|
|
9230
|
+
), props.signInType === "email" ? /* @__PURE__ */ React87.createElement(
|
|
9192
9231
|
Controller3,
|
|
9193
9232
|
{
|
|
9194
9233
|
control,
|
|
9195
9234
|
name: "email",
|
|
9196
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9235
|
+
render: ({ field }) => /* @__PURE__ */ React87.createElement(
|
|
9197
9236
|
HawaTextField,
|
|
9198
9237
|
{
|
|
9199
9238
|
width: "full",
|
|
@@ -9214,13 +9253,13 @@ var SignInForm = (props) => {
|
|
|
9214
9253
|
}
|
|
9215
9254
|
}
|
|
9216
9255
|
}
|
|
9217
|
-
) : props.signInType === "username" ? /* @__PURE__ */
|
|
9256
|
+
) : props.signInType === "username" ? /* @__PURE__ */ React87.createElement(
|
|
9218
9257
|
Controller3,
|
|
9219
9258
|
{
|
|
9220
9259
|
control,
|
|
9221
9260
|
name: "username",
|
|
9222
9261
|
render: ({ field }) => {
|
|
9223
|
-
return /* @__PURE__ */
|
|
9262
|
+
return /* @__PURE__ */ React87.createElement(
|
|
9224
9263
|
HawaTextField,
|
|
9225
9264
|
{
|
|
9226
9265
|
width: "full",
|
|
@@ -9238,20 +9277,20 @@ var SignInForm = (props) => {
|
|
|
9238
9277
|
required: props.texts.usernameRequired
|
|
9239
9278
|
}
|
|
9240
9279
|
}
|
|
9241
|
-
) : /* @__PURE__ */
|
|
9280
|
+
) : /* @__PURE__ */ React87.createElement(
|
|
9242
9281
|
Controller3,
|
|
9243
9282
|
{
|
|
9244
9283
|
control,
|
|
9245
9284
|
name: "phone",
|
|
9246
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9285
|
+
render: ({ field }) => /* @__PURE__ */ React87.createElement(HawaPhoneInput, { label: "Phone number" }),
|
|
9247
9286
|
rules: { required: props.texts.phoneRequiredText }
|
|
9248
9287
|
}
|
|
9249
|
-
), props.signInType !== "phone" && /* @__PURE__ */
|
|
9288
|
+
), props.signInType !== "phone" && /* @__PURE__ */ React87.createElement(React87.Fragment, null, /* @__PURE__ */ React87.createElement(
|
|
9250
9289
|
Controller3,
|
|
9251
9290
|
{
|
|
9252
9291
|
control,
|
|
9253
9292
|
name: "password",
|
|
9254
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9293
|
+
render: ({ field }) => /* @__PURE__ */ React87.createElement(
|
|
9255
9294
|
HawaTextField,
|
|
9256
9295
|
{
|
|
9257
9296
|
width: "full",
|
|
@@ -9269,58 +9308,58 @@ var SignInForm = (props) => {
|
|
|
9269
9308
|
minLength: 5
|
|
9270
9309
|
}
|
|
9271
9310
|
}
|
|
9272
|
-
), !props.withoutResetPassword && /* @__PURE__ */
|
|
9311
|
+
), !props.withoutResetPassword && /* @__PURE__ */ React87.createElement(
|
|
9273
9312
|
"div",
|
|
9274
9313
|
{
|
|
9275
9314
|
onClick: props.handleForgotPassword,
|
|
9276
9315
|
className: "mb-3 w-fit cursor-pointer text-xs dark:text-gray-300"
|
|
9277
9316
|
},
|
|
9278
9317
|
props.texts.forgotPasswordText
|
|
9279
|
-
)), /* @__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(
|
|
9280
9319
|
"span",
|
|
9281
9320
|
{
|
|
9282
9321
|
onClick: props.handleRouteToSignUp,
|
|
9283
9322
|
className: "clickable-link"
|
|
9284
9323
|
},
|
|
9285
9324
|
props.texts.createAccount
|
|
9286
|
-
)))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
|
9325
|
+
)))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React87.createElement(
|
|
9287
9326
|
CardFooter,
|
|
9288
9327
|
{
|
|
9289
9328
|
className: cn(
|
|
9290
9329
|
props.logosOnly ? "flex flex-row gap-2 justify-center" : "grid grid-cols-1 gap-2"
|
|
9291
9330
|
)
|
|
9292
9331
|
},
|
|
9293
|
-
props.viaGoogle && /* @__PURE__ */
|
|
9332
|
+
props.viaGoogle && /* @__PURE__ */ React87.createElement(
|
|
9294
9333
|
Button,
|
|
9295
9334
|
{
|
|
9296
9335
|
className: "flex flex-row items-center gap-2",
|
|
9297
9336
|
variant: "outline",
|
|
9298
9337
|
onClick: props.handleGoogleSignIn
|
|
9299
9338
|
},
|
|
9300
|
-
/* @__PURE__ */
|
|
9339
|
+
/* @__PURE__ */ React87.createElement(Icons.google, { className: "h-4 w-4" }),
|
|
9301
9340
|
!props.logosOnly && props.texts.signInViaGoogleLabel
|
|
9302
9341
|
),
|
|
9303
|
-
props.viaGithub && /* @__PURE__ */
|
|
9342
|
+
props.viaGithub && /* @__PURE__ */ React87.createElement(
|
|
9304
9343
|
Button,
|
|
9305
9344
|
{
|
|
9306
9345
|
className: "flex flex-row items-center gap-2",
|
|
9307
9346
|
variant: "outline",
|
|
9308
9347
|
onClick: props.handleGithubSignIn
|
|
9309
9348
|
},
|
|
9310
|
-
/* @__PURE__ */
|
|
9349
|
+
/* @__PURE__ */ React87.createElement(Icons.gitHub, { className: "h-4 w-4" }),
|
|
9311
9350
|
!props.logosOnly && props.texts.signInViaGithubLabel
|
|
9312
9351
|
),
|
|
9313
|
-
props.viaTwitter && /* @__PURE__ */
|
|
9352
|
+
props.viaTwitter && /* @__PURE__ */ React87.createElement(
|
|
9314
9353
|
Button,
|
|
9315
9354
|
{
|
|
9316
9355
|
className: "flex flex-row items-center gap-2",
|
|
9317
9356
|
variant: "outline",
|
|
9318
9357
|
onClick: props.handleTwitterSignIn
|
|
9319
9358
|
},
|
|
9320
|
-
/* @__PURE__ */
|
|
9359
|
+
/* @__PURE__ */ React87.createElement(Icons.twitter, { className: "h-4 w-4" }),
|
|
9321
9360
|
!props.logosOnly && props.texts.signInViaTwitterLabel
|
|
9322
9361
|
)
|
|
9323
|
-
) : null), /* @__PURE__ */
|
|
9362
|
+
) : null), /* @__PURE__ */ React87.createElement(
|
|
9324
9363
|
InterfaceSettings,
|
|
9325
9364
|
{
|
|
9326
9365
|
currentColorMode: props.currentColorMode,
|
|
@@ -9337,7 +9376,7 @@ function SignInBlock() {
|
|
|
9337
9376
|
}
|
|
9338
9377
|
|
|
9339
9378
|
// src/blocks/AuthForms/SignUpForm.tsx
|
|
9340
|
-
import
|
|
9379
|
+
import React88 from "react";
|
|
9341
9380
|
import { Controller as Controller4, FormProvider as FormProvider2, useForm as useForm4 } from "react-hook-form";
|
|
9342
9381
|
var SignUpForm = (props) => {
|
|
9343
9382
|
const methods = useForm4();
|
|
@@ -9346,22 +9385,22 @@ var SignUpForm = (props) => {
|
|
|
9346
9385
|
handleSubmit,
|
|
9347
9386
|
control
|
|
9348
9387
|
} = methods;
|
|
9349
|
-
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(
|
|
9350
9389
|
HawaAlert,
|
|
9351
9390
|
{
|
|
9352
9391
|
title: props.errorTitle,
|
|
9353
9392
|
text: props.errorText,
|
|
9354
9393
|
severity: "error"
|
|
9355
9394
|
}
|
|
9356
|
-
), /* @__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) => {
|
|
9357
9396
|
if (fld === "fullname") {
|
|
9358
|
-
return /* @__PURE__ */
|
|
9397
|
+
return /* @__PURE__ */ React88.createElement(
|
|
9359
9398
|
Controller4,
|
|
9360
9399
|
{
|
|
9361
9400
|
key: i,
|
|
9362
9401
|
control,
|
|
9363
9402
|
name: "fullName",
|
|
9364
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9403
|
+
render: ({ field }) => /* @__PURE__ */ React88.createElement(
|
|
9365
9404
|
HawaTextField,
|
|
9366
9405
|
{
|
|
9367
9406
|
width: "full",
|
|
@@ -9380,13 +9419,13 @@ var SignUpForm = (props) => {
|
|
|
9380
9419
|
);
|
|
9381
9420
|
}
|
|
9382
9421
|
if (fld === "email") {
|
|
9383
|
-
return /* @__PURE__ */
|
|
9422
|
+
return /* @__PURE__ */ React88.createElement(
|
|
9384
9423
|
Controller4,
|
|
9385
9424
|
{
|
|
9386
9425
|
key: i,
|
|
9387
9426
|
control,
|
|
9388
9427
|
name: "email",
|
|
9389
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9428
|
+
render: ({ field }) => /* @__PURE__ */ React88.createElement(
|
|
9390
9429
|
HawaTextField,
|
|
9391
9430
|
{
|
|
9392
9431
|
width: "full",
|
|
@@ -9410,13 +9449,13 @@ var SignUpForm = (props) => {
|
|
|
9410
9449
|
);
|
|
9411
9450
|
}
|
|
9412
9451
|
if (fld === "username") {
|
|
9413
|
-
return /* @__PURE__ */
|
|
9452
|
+
return /* @__PURE__ */ React88.createElement(
|
|
9414
9453
|
Controller4,
|
|
9415
9454
|
{
|
|
9416
9455
|
key: i,
|
|
9417
9456
|
control,
|
|
9418
9457
|
name: "username",
|
|
9419
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9458
|
+
render: ({ field }) => /* @__PURE__ */ React88.createElement(
|
|
9420
9459
|
HawaTextField,
|
|
9421
9460
|
{
|
|
9422
9461
|
width: "full",
|
|
@@ -9435,12 +9474,12 @@ var SignUpForm = (props) => {
|
|
|
9435
9474
|
}
|
|
9436
9475
|
);
|
|
9437
9476
|
}
|
|
9438
|
-
})), /* @__PURE__ */
|
|
9477
|
+
})), /* @__PURE__ */ React88.createElement(
|
|
9439
9478
|
Controller4,
|
|
9440
9479
|
{
|
|
9441
9480
|
control,
|
|
9442
9481
|
name: "password",
|
|
9443
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9482
|
+
render: ({ field }) => /* @__PURE__ */ React88.createElement(
|
|
9444
9483
|
HawaTextField,
|
|
9445
9484
|
{
|
|
9446
9485
|
width: "full",
|
|
@@ -9455,12 +9494,12 @@ var SignUpForm = (props) => {
|
|
|
9455
9494
|
),
|
|
9456
9495
|
rules: { required: props.texts.passwordRequiredText }
|
|
9457
9496
|
}
|
|
9458
|
-
), /* @__PURE__ */
|
|
9497
|
+
), /* @__PURE__ */ React88.createElement(
|
|
9459
9498
|
Controller4,
|
|
9460
9499
|
{
|
|
9461
9500
|
control,
|
|
9462
9501
|
name: "confirm_password",
|
|
9463
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9502
|
+
render: ({ field }) => /* @__PURE__ */ React88.createElement(
|
|
9464
9503
|
HawaTextField,
|
|
9465
9504
|
{
|
|
9466
9505
|
width: "full",
|
|
@@ -9475,12 +9514,12 @@ var SignUpForm = (props) => {
|
|
|
9475
9514
|
),
|
|
9476
9515
|
rules: { required: props.texts.passwordRequiredText }
|
|
9477
9516
|
}
|
|
9478
|
-
), props.showRefCode && /* @__PURE__ */
|
|
9517
|
+
), props.showRefCode && /* @__PURE__ */ React88.createElement(
|
|
9479
9518
|
Controller4,
|
|
9480
9519
|
{
|
|
9481
9520
|
control,
|
|
9482
9521
|
name: "refCode",
|
|
9483
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9522
|
+
render: ({ field }) => /* @__PURE__ */ React88.createElement(
|
|
9484
9523
|
HawaTextField,
|
|
9485
9524
|
{
|
|
9486
9525
|
width: "full",
|
|
@@ -9493,12 +9532,12 @@ var SignUpForm = (props) => {
|
|
|
9493
9532
|
}
|
|
9494
9533
|
)
|
|
9495
9534
|
}
|
|
9496
|
-
), props.showUserSource && /* @__PURE__ */
|
|
9535
|
+
), props.showUserSource && /* @__PURE__ */ React88.createElement("div", null, /* @__PURE__ */ React88.createElement(
|
|
9497
9536
|
Controller4,
|
|
9498
9537
|
{
|
|
9499
9538
|
control,
|
|
9500
9539
|
name: "reference",
|
|
9501
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9540
|
+
render: ({ field }) => /* @__PURE__ */ React88.createElement(
|
|
9502
9541
|
HawaSelect,
|
|
9503
9542
|
{
|
|
9504
9543
|
label: "How did you learn about us?",
|
|
@@ -9517,18 +9556,18 @@ var SignUpForm = (props) => {
|
|
|
9517
9556
|
}
|
|
9518
9557
|
)
|
|
9519
9558
|
}
|
|
9520
|
-
)), props.showTermsOption && /* @__PURE__ */
|
|
9559
|
+
)), props.showTermsOption && /* @__PURE__ */ React88.createElement(
|
|
9521
9560
|
Controller4,
|
|
9522
9561
|
{
|
|
9523
9562
|
control,
|
|
9524
9563
|
name: "terms_accepted",
|
|
9525
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9564
|
+
render: ({ field }) => /* @__PURE__ */ React88.createElement(
|
|
9526
9565
|
HawaCheckbox,
|
|
9527
9566
|
{
|
|
9528
9567
|
id: "terms_accepted",
|
|
9529
9568
|
helperText: errors.terms_accepted?.message,
|
|
9530
9569
|
onChange: (e) => field.onChange(e),
|
|
9531
|
-
label: /* @__PURE__ */
|
|
9570
|
+
label: /* @__PURE__ */ React88.createElement("span", null, props.texts.iAcceptText, " ", /* @__PURE__ */ React88.createElement(
|
|
9532
9571
|
"a",
|
|
9533
9572
|
{
|
|
9534
9573
|
onClick: props.handleRouteToTOS,
|
|
@@ -9540,12 +9579,12 @@ var SignUpForm = (props) => {
|
|
|
9540
9579
|
),
|
|
9541
9580
|
rules: { required: props.texts.termsRequiredText }
|
|
9542
9581
|
}
|
|
9543
|
-
), props.showNewsletterOption && /* @__PURE__ */
|
|
9582
|
+
), props.showNewsletterOption && /* @__PURE__ */ React88.createElement(
|
|
9544
9583
|
Controller4,
|
|
9545
9584
|
{
|
|
9546
9585
|
control,
|
|
9547
9586
|
name: "newsletter_accepted",
|
|
9548
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9587
|
+
render: ({ field }) => /* @__PURE__ */ React88.createElement(
|
|
9549
9588
|
HawaCheckbox,
|
|
9550
9589
|
{
|
|
9551
9590
|
id: "newsletter_accepted",
|
|
@@ -9554,51 +9593,51 @@ var SignUpForm = (props) => {
|
|
|
9554
9593
|
}
|
|
9555
9594
|
)
|
|
9556
9595
|
}
|
|
9557
|
-
), /* @__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(
|
|
9558
9597
|
"span",
|
|
9559
9598
|
{
|
|
9560
9599
|
onClick: props.handleRouteToSignIn,
|
|
9561
9600
|
className: "clickable-link"
|
|
9562
9601
|
},
|
|
9563
9602
|
props.texts.signInText
|
|
9564
|
-
)))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
|
9603
|
+
)))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React88.createElement(
|
|
9565
9604
|
CardFooter,
|
|
9566
9605
|
{
|
|
9567
9606
|
className: cn(
|
|
9568
9607
|
props.logosOnly ? "flex flex-row justify-center gap-2" : "grid grid-cols-1 gap-2"
|
|
9569
9608
|
)
|
|
9570
9609
|
},
|
|
9571
|
-
props.viaGoogle && /* @__PURE__ */
|
|
9610
|
+
props.viaGoogle && /* @__PURE__ */ React88.createElement(
|
|
9572
9611
|
Button,
|
|
9573
9612
|
{
|
|
9574
9613
|
className: "flex flex-row items-center gap-2",
|
|
9575
9614
|
variant: "outline",
|
|
9576
9615
|
onClick: props.handleGoogleSignUp
|
|
9577
9616
|
},
|
|
9578
|
-
/* @__PURE__ */
|
|
9617
|
+
/* @__PURE__ */ React88.createElement(Icons.google, { className: "h-4 w-4" }),
|
|
9579
9618
|
!props.logosOnly && props.texts.signUpViaGoogleLabel
|
|
9580
9619
|
),
|
|
9581
|
-
props.viaGithub && /* @__PURE__ */
|
|
9620
|
+
props.viaGithub && /* @__PURE__ */ React88.createElement(
|
|
9582
9621
|
Button,
|
|
9583
9622
|
{
|
|
9584
9623
|
className: "flex flex-row items-center gap-2",
|
|
9585
9624
|
variant: "outline",
|
|
9586
9625
|
onClick: props.handleGithubSignUp
|
|
9587
9626
|
},
|
|
9588
|
-
/* @__PURE__ */
|
|
9627
|
+
/* @__PURE__ */ React88.createElement(Icons.gitHub, { className: "h-4 w-4" }),
|
|
9589
9628
|
!props.logosOnly && props.texts.signUpViaGithubLabel
|
|
9590
9629
|
),
|
|
9591
|
-
props.viaTwitter && /* @__PURE__ */
|
|
9630
|
+
props.viaTwitter && /* @__PURE__ */ React88.createElement(
|
|
9592
9631
|
Button,
|
|
9593
9632
|
{
|
|
9594
9633
|
className: "flex flex-row items-center gap-2",
|
|
9595
9634
|
variant: "outline",
|
|
9596
9635
|
onClick: props.handleTwitterSignUp
|
|
9597
9636
|
},
|
|
9598
|
-
/* @__PURE__ */
|
|
9637
|
+
/* @__PURE__ */ React88.createElement(Icons.twitter, { className: "h-4 w-4" }),
|
|
9599
9638
|
!props.logosOnly && props.texts.signUpViaTwitterLabel
|
|
9600
9639
|
)
|
|
9601
|
-
) : null), /* @__PURE__ */
|
|
9640
|
+
) : null), /* @__PURE__ */ React88.createElement(
|
|
9602
9641
|
InterfaceSettings,
|
|
9603
9642
|
{
|
|
9604
9643
|
currentColorMode: props.currentColorMode,
|
|
@@ -9610,10 +9649,10 @@ var SignUpForm = (props) => {
|
|
|
9610
9649
|
};
|
|
9611
9650
|
|
|
9612
9651
|
// src/blocks/AuthForms/NewPasswordForm.tsx
|
|
9613
|
-
import
|
|
9652
|
+
import React89, { useState as useState43 } from "react";
|
|
9614
9653
|
import { Controller as Controller5, FormProvider as FormProvider3, useForm as useForm5 } from "react-hook-form";
|
|
9615
9654
|
var NewPasswordForm = (props) => {
|
|
9616
|
-
const [matchError, setMatchError] =
|
|
9655
|
+
const [matchError, setMatchError] = useState43(false);
|
|
9617
9656
|
const methods = useForm5();
|
|
9618
9657
|
const {
|
|
9619
9658
|
formState: { errors },
|
|
@@ -9627,12 +9666,12 @@ var NewPasswordForm = (props) => {
|
|
|
9627
9666
|
setMatchError(true);
|
|
9628
9667
|
}
|
|
9629
9668
|
};
|
|
9630
|
-
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(
|
|
9631
9670
|
Controller5,
|
|
9632
9671
|
{
|
|
9633
9672
|
control,
|
|
9634
9673
|
name: "password",
|
|
9635
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9674
|
+
render: ({ field }) => /* @__PURE__ */ React89.createElement(
|
|
9636
9675
|
HawaTextField,
|
|
9637
9676
|
{
|
|
9638
9677
|
width: "full",
|
|
@@ -9649,12 +9688,12 @@ var NewPasswordForm = (props) => {
|
|
|
9649
9688
|
required: props.texts.passwordRequiredText
|
|
9650
9689
|
}
|
|
9651
9690
|
}
|
|
9652
|
-
), /* @__PURE__ */
|
|
9691
|
+
), /* @__PURE__ */ React89.createElement(
|
|
9653
9692
|
Controller5,
|
|
9654
9693
|
{
|
|
9655
9694
|
control,
|
|
9656
9695
|
name: "confirmPassword",
|
|
9657
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9696
|
+
render: ({ field }) => /* @__PURE__ */ React89.createElement(
|
|
9658
9697
|
HawaTextField,
|
|
9659
9698
|
{
|
|
9660
9699
|
width: "full",
|
|
@@ -9671,11 +9710,11 @@ var NewPasswordForm = (props) => {
|
|
|
9671
9710
|
required: props.texts.confirmPasswordRequiredText
|
|
9672
9711
|
}
|
|
9673
9712
|
}
|
|
9674
|
-
)), /* @__PURE__ */
|
|
9713
|
+
)), /* @__PURE__ */ React89.createElement(CardFooter, null, /* @__PURE__ */ React89.createElement(Button, { className: "w-full", type: "submit" }, props.texts.updatePassword)))));
|
|
9675
9714
|
};
|
|
9676
9715
|
|
|
9677
9716
|
// src/blocks/AuthForms/ResetPasswordForm.tsx
|
|
9678
|
-
import
|
|
9717
|
+
import React90 from "react";
|
|
9679
9718
|
import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
|
|
9680
9719
|
var ResetPasswordForm = (props) => {
|
|
9681
9720
|
const methods = useForm6();
|
|
@@ -9685,12 +9724,12 @@ var ResetPasswordForm = (props) => {
|
|
|
9685
9724
|
register,
|
|
9686
9725
|
control
|
|
9687
9726
|
} = methods;
|
|
9688
|
-
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(
|
|
9689
9728
|
Controller6,
|
|
9690
9729
|
{
|
|
9691
9730
|
control,
|
|
9692
9731
|
name: "email",
|
|
9693
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9732
|
+
render: ({ field }) => /* @__PURE__ */ React90.createElement(
|
|
9694
9733
|
HawaTextField,
|
|
9695
9734
|
{
|
|
9696
9735
|
width: "full",
|
|
@@ -9710,28 +9749,28 @@ var ResetPasswordForm = (props) => {
|
|
|
9710
9749
|
}
|
|
9711
9750
|
}
|
|
9712
9751
|
}
|
|
9713
|
-
), /* @__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(
|
|
9714
9753
|
"span",
|
|
9715
9754
|
{
|
|
9716
9755
|
onClick: props.handleRouteToSignUp,
|
|
9717
9756
|
className: "clickable-link"
|
|
9718
9757
|
},
|
|
9719
9758
|
props.texts.signUpText ?? "Sign Up"
|
|
9720
|
-
))), /* @__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)));
|
|
9721
9760
|
};
|
|
9722
9761
|
|
|
9723
9762
|
// src/blocks/AuthForms/CodeConfirmation.tsx
|
|
9724
|
-
import
|
|
9763
|
+
import React91, { useState as useState44 } from "react";
|
|
9725
9764
|
var CodeConfirmation = (props) => {
|
|
9726
|
-
const [pins, setPins] =
|
|
9727
|
-
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(
|
|
9728
9767
|
HawaAlert,
|
|
9729
9768
|
{
|
|
9730
9769
|
title: props.errorTitle,
|
|
9731
9770
|
text: props.errorText,
|
|
9732
9771
|
severity: "error"
|
|
9733
9772
|
}
|
|
9734
|
-
), /* @__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(
|
|
9735
9774
|
"form",
|
|
9736
9775
|
{
|
|
9737
9776
|
onSubmit: (e) => {
|
|
@@ -9741,17 +9780,17 @@ var CodeConfirmation = (props) => {
|
|
|
9741
9780
|
}
|
|
9742
9781
|
}
|
|
9743
9782
|
},
|
|
9744
|
-
/* @__PURE__ */
|
|
9745
|
-
/* @__PURE__ */
|
|
9746
|
-
/* @__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"))
|
|
9747
9786
|
)));
|
|
9748
9787
|
};
|
|
9749
9788
|
|
|
9750
9789
|
// src/blocks/Payment/SelectPayment.tsx
|
|
9751
|
-
import
|
|
9790
|
+
import React92, { useState as useState45 } from "react";
|
|
9752
9791
|
var SelectPayment = (props) => {
|
|
9753
|
-
const [selectedMethod, setSelectedMethod] =
|
|
9754
|
-
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(
|
|
9755
9794
|
Button,
|
|
9756
9795
|
{
|
|
9757
9796
|
className: cn(
|
|
@@ -9763,15 +9802,15 @@ var SelectPayment = (props) => {
|
|
|
9763
9802
|
disabled: !props.viaMada,
|
|
9764
9803
|
onClick: () => setSelectedMethod("mada")
|
|
9765
9804
|
},
|
|
9766
|
-
/* @__PURE__ */
|
|
9805
|
+
/* @__PURE__ */ React92.createElement(
|
|
9767
9806
|
"img",
|
|
9768
9807
|
{
|
|
9769
9808
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/mada.png",
|
|
9770
9809
|
className: "h-6"
|
|
9771
9810
|
}
|
|
9772
9811
|
),
|
|
9773
|
-
/* @__PURE__ */
|
|
9774
|
-
), /* @__PURE__ */
|
|
9812
|
+
/* @__PURE__ */ React92.createElement("span", null, props.madaLabel)
|
|
9813
|
+
), /* @__PURE__ */ React92.createElement(
|
|
9775
9814
|
Button,
|
|
9776
9815
|
{
|
|
9777
9816
|
className: cn(
|
|
@@ -9783,15 +9822,15 @@ var SelectPayment = (props) => {
|
|
|
9783
9822
|
disabled: !props.viaApplePay,
|
|
9784
9823
|
onClick: () => setSelectedMethod("apple-pay")
|
|
9785
9824
|
},
|
|
9786
|
-
/* @__PURE__ */
|
|
9825
|
+
/* @__PURE__ */ React92.createElement(
|
|
9787
9826
|
"img",
|
|
9788
9827
|
{
|
|
9789
9828
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/apple-pay.png",
|
|
9790
9829
|
className: "h-11"
|
|
9791
9830
|
}
|
|
9792
9831
|
),
|
|
9793
|
-
/* @__PURE__ */
|
|
9794
|
-
), /* @__PURE__ */
|
|
9832
|
+
/* @__PURE__ */ React92.createElement("span", null, props.applePayLabel)
|
|
9833
|
+
), /* @__PURE__ */ React92.createElement(
|
|
9795
9834
|
Button,
|
|
9796
9835
|
{
|
|
9797
9836
|
className: cn(
|
|
@@ -9803,15 +9842,15 @@ var SelectPayment = (props) => {
|
|
|
9803
9842
|
disabled: !props.viaCreditCard,
|
|
9804
9843
|
onClick: () => setSelectedMethod("visa-master")
|
|
9805
9844
|
},
|
|
9806
|
-
/* @__PURE__ */
|
|
9845
|
+
/* @__PURE__ */ React92.createElement(
|
|
9807
9846
|
"img",
|
|
9808
9847
|
{
|
|
9809
9848
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/visa-master.png",
|
|
9810
9849
|
className: "h-6"
|
|
9811
9850
|
}
|
|
9812
9851
|
),
|
|
9813
|
-
/* @__PURE__ */
|
|
9814
|
-
), /* @__PURE__ */
|
|
9852
|
+
/* @__PURE__ */ React92.createElement("span", null, props.visaMasterLabel)
|
|
9853
|
+
), /* @__PURE__ */ React92.createElement(
|
|
9815
9854
|
Button,
|
|
9816
9855
|
{
|
|
9817
9856
|
variant: "outline",
|
|
@@ -9823,7 +9862,7 @@ var SelectPayment = (props) => {
|
|
|
9823
9862
|
disabled: !props.viaWallet,
|
|
9824
9863
|
onClick: () => setSelectedMethod("wallet")
|
|
9825
9864
|
},
|
|
9826
|
-
/* @__PURE__ */
|
|
9865
|
+
/* @__PURE__ */ React92.createElement(
|
|
9827
9866
|
"svg",
|
|
9828
9867
|
{
|
|
9829
9868
|
version: "1.1",
|
|
@@ -9831,20 +9870,20 @@ var SelectPayment = (props) => {
|
|
|
9831
9870
|
viewBox: "0 0 223 223",
|
|
9832
9871
|
className: "h-6 w-6"
|
|
9833
9872
|
},
|
|
9834
|
-
/* @__PURE__ */
|
|
9873
|
+
/* @__PURE__ */ React92.createElement("g", null, /* @__PURE__ */ React92.createElement(
|
|
9835
9874
|
"path",
|
|
9836
9875
|
{
|
|
9837
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"
|
|
9838
9877
|
}
|
|
9839
|
-
), /* @__PURE__ */
|
|
9878
|
+
), /* @__PURE__ */ React92.createElement(
|
|
9840
9879
|
"path",
|
|
9841
9880
|
{
|
|
9842
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"
|
|
9843
9882
|
}
|
|
9844
9883
|
))
|
|
9845
9884
|
),
|
|
9846
|
-
/* @__PURE__ */
|
|
9847
|
-
), /* @__PURE__ */
|
|
9885
|
+
/* @__PURE__ */ React92.createElement("span", null, props.walletLabel)
|
|
9886
|
+
), /* @__PURE__ */ React92.createElement(
|
|
9848
9887
|
Button,
|
|
9849
9888
|
{
|
|
9850
9889
|
variant: "outline",
|
|
@@ -9856,15 +9895,15 @@ var SelectPayment = (props) => {
|
|
|
9856
9895
|
disabled: !props.viaSTCPay,
|
|
9857
9896
|
onClick: () => setSelectedMethod("stc-pay")
|
|
9858
9897
|
},
|
|
9859
|
-
/* @__PURE__ */
|
|
9898
|
+
/* @__PURE__ */ React92.createElement(
|
|
9860
9899
|
"img",
|
|
9861
9900
|
{
|
|
9862
9901
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/stc-pay.png",
|
|
9863
9902
|
className: "h-6"
|
|
9864
9903
|
}
|
|
9865
9904
|
),
|
|
9866
|
-
/* @__PURE__ */
|
|
9867
|
-
), /* @__PURE__ */
|
|
9905
|
+
/* @__PURE__ */ React92.createElement("span", null, props.stcPayLabel)
|
|
9906
|
+
), /* @__PURE__ */ React92.createElement(
|
|
9868
9907
|
Button,
|
|
9869
9908
|
{
|
|
9870
9909
|
variant: "outline",
|
|
@@ -9876,15 +9915,15 @@ var SelectPayment = (props) => {
|
|
|
9876
9915
|
disabled: !props.viaGooglePay,
|
|
9877
9916
|
onClick: () => setSelectedMethod("google-pay")
|
|
9878
9917
|
},
|
|
9879
|
-
/* @__PURE__ */
|
|
9918
|
+
/* @__PURE__ */ React92.createElement(
|
|
9880
9919
|
"img",
|
|
9881
9920
|
{
|
|
9882
9921
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/google-pay.png",
|
|
9883
9922
|
className: "h-6"
|
|
9884
9923
|
}
|
|
9885
9924
|
),
|
|
9886
|
-
/* @__PURE__ */
|
|
9887
|
-
), /* @__PURE__ */
|
|
9925
|
+
/* @__PURE__ */ React92.createElement("span", null, props.googlePayLabel)
|
|
9926
|
+
), /* @__PURE__ */ React92.createElement(
|
|
9888
9927
|
Button,
|
|
9889
9928
|
{
|
|
9890
9929
|
variant: "outline",
|
|
@@ -9896,15 +9935,15 @@ var SelectPayment = (props) => {
|
|
|
9896
9935
|
disabled: !props.viaPayPal,
|
|
9897
9936
|
onClick: () => setSelectedMethod("paypal")
|
|
9898
9937
|
},
|
|
9899
|
-
/* @__PURE__ */
|
|
9938
|
+
/* @__PURE__ */ React92.createElement(
|
|
9900
9939
|
"img",
|
|
9901
9940
|
{
|
|
9902
9941
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/paypal.png",
|
|
9903
9942
|
className: "h-6"
|
|
9904
9943
|
}
|
|
9905
9944
|
),
|
|
9906
|
-
/* @__PURE__ */
|
|
9907
|
-
)), /* @__PURE__ */
|
|
9945
|
+
/* @__PURE__ */ React92.createElement("span", null, props.paypalLabel)
|
|
9946
|
+
)), /* @__PURE__ */ React92.createElement(CardFooter, null, /* @__PURE__ */ React92.createElement(
|
|
9908
9947
|
Button,
|
|
9909
9948
|
{
|
|
9910
9949
|
onClick: () => props.handleContinue(selectedMethod),
|
|
@@ -9916,7 +9955,7 @@ var SelectPayment = (props) => {
|
|
|
9916
9955
|
};
|
|
9917
9956
|
|
|
9918
9957
|
// src/blocks/Payment/CreditCardForm.tsx
|
|
9919
|
-
import
|
|
9958
|
+
import React93 from "react";
|
|
9920
9959
|
import { Controller as Controller7, useForm as useForm7 } from "react-hook-form";
|
|
9921
9960
|
var CreditCardForm = (props) => {
|
|
9922
9961
|
const methods = useForm7();
|
|
@@ -9925,12 +9964,12 @@ var CreditCardForm = (props) => {
|
|
|
9925
9964
|
handleSubmit,
|
|
9926
9965
|
control
|
|
9927
9966
|
} = methods;
|
|
9928
|
-
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(
|
|
9929
9968
|
Controller7,
|
|
9930
9969
|
{
|
|
9931
9970
|
control,
|
|
9932
9971
|
name: "cardName",
|
|
9933
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9972
|
+
render: ({ field }) => /* @__PURE__ */ React93.createElement(
|
|
9934
9973
|
HawaTextField,
|
|
9935
9974
|
{
|
|
9936
9975
|
width: "full",
|
|
@@ -9945,12 +9984,12 @@ var CreditCardForm = (props) => {
|
|
|
9945
9984
|
required: "Password is rquired"
|
|
9946
9985
|
}
|
|
9947
9986
|
}
|
|
9948
|
-
), /* @__PURE__ */
|
|
9987
|
+
), /* @__PURE__ */ React93.createElement("div", { className: "w-1/4" }, /* @__PURE__ */ React93.createElement(
|
|
9949
9988
|
Controller7,
|
|
9950
9989
|
{
|
|
9951
9990
|
control,
|
|
9952
9991
|
name: "cardName",
|
|
9953
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9992
|
+
render: ({ field }) => /* @__PURE__ */ React93.createElement(
|
|
9954
9993
|
HawaTextField,
|
|
9955
9994
|
{
|
|
9956
9995
|
width: "full",
|
|
@@ -9967,12 +10006,12 @@ var CreditCardForm = (props) => {
|
|
|
9967
10006
|
required: "Password is rquired"
|
|
9968
10007
|
}
|
|
9969
10008
|
}
|
|
9970
|
-
))), /* @__PURE__ */
|
|
10009
|
+
))), /* @__PURE__ */ React93.createElement(
|
|
9971
10010
|
Controller7,
|
|
9972
10011
|
{
|
|
9973
10012
|
control,
|
|
9974
10013
|
name: "cardName",
|
|
9975
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10014
|
+
render: ({ field }) => /* @__PURE__ */ React93.createElement(
|
|
9976
10015
|
HawaTextField,
|
|
9977
10016
|
{
|
|
9978
10017
|
width: "full",
|
|
@@ -9987,12 +10026,12 @@ var CreditCardForm = (props) => {
|
|
|
9987
10026
|
required: "Password is rquired"
|
|
9988
10027
|
}
|
|
9989
10028
|
}
|
|
9990
|
-
), /* @__PURE__ */
|
|
10029
|
+
), /* @__PURE__ */ React93.createElement(
|
|
9991
10030
|
Controller7,
|
|
9992
10031
|
{
|
|
9993
10032
|
control,
|
|
9994
10033
|
name: "cardName",
|
|
9995
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10034
|
+
render: ({ field }) => /* @__PURE__ */ React93.createElement(
|
|
9996
10035
|
HawaTextField,
|
|
9997
10036
|
{
|
|
9998
10037
|
width: "full",
|
|
@@ -10007,24 +10046,24 @@ var CreditCardForm = (props) => {
|
|
|
10007
10046
|
required: "Password is rquired"
|
|
10008
10047
|
}
|
|
10009
10048
|
}
|
|
10010
|
-
)), /* @__PURE__ */
|
|
10049
|
+
)), /* @__PURE__ */ React93.createElement(CardFooter, null, /* @__PURE__ */ React93.createElement(Button, { className: "w-full", onClick: props.handlePayWithCreditCard }, "Pay with Credit Card"))));
|
|
10011
10050
|
};
|
|
10012
10051
|
|
|
10013
10052
|
// src/blocks/Payment/ChargeWalletForm.tsx
|
|
10014
|
-
import
|
|
10053
|
+
import React94, { useState as useState46 } from "react";
|
|
10015
10054
|
var ChargeWalletForm = (props) => {
|
|
10016
|
-
const [walletAmount, setWalletAmount] =
|
|
10017
|
-
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)));
|
|
10018
10057
|
};
|
|
10019
10058
|
|
|
10020
10059
|
// src/blocks/Payment/PayWithWallet.tsx
|
|
10021
|
-
import
|
|
10060
|
+
import React95 from "react";
|
|
10022
10061
|
var PayWithWallet = (props) => {
|
|
10023
|
-
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")));
|
|
10024
10063
|
};
|
|
10025
10064
|
|
|
10026
10065
|
// src/blocks/Payment/CheckoutForm.tsx
|
|
10027
|
-
import
|
|
10066
|
+
import React96 from "react";
|
|
10028
10067
|
import { Controller as Controller8, FormProvider as FormProvider4, useForm as useForm8 } from "react-hook-form";
|
|
10029
10068
|
var CheckoutForm = (props) => {
|
|
10030
10069
|
let isArabic = props.lang === "ar";
|
|
@@ -10048,7 +10087,7 @@ var CheckoutForm = (props) => {
|
|
|
10048
10087
|
xl: "row"
|
|
10049
10088
|
}
|
|
10050
10089
|
};
|
|
10051
|
-
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(
|
|
10052
10091
|
HawaTable,
|
|
10053
10092
|
{
|
|
10054
10093
|
pagination: false,
|
|
@@ -10062,13 +10101,13 @@ var CheckoutForm = (props) => {
|
|
|
10062
10101
|
rows: props.products,
|
|
10063
10102
|
bordersWidth: "1"
|
|
10064
10103
|
}
|
|
10065
|
-
)))), /* @__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(
|
|
10066
10105
|
Controller8,
|
|
10067
10106
|
{
|
|
10068
10107
|
control,
|
|
10069
10108
|
name: "firstName",
|
|
10070
10109
|
rules: { required: props.texts?.required },
|
|
10071
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10110
|
+
render: ({ field }) => /* @__PURE__ */ React96.createElement(
|
|
10072
10111
|
HawaTextField,
|
|
10073
10112
|
{
|
|
10074
10113
|
type: "text",
|
|
@@ -10079,13 +10118,13 @@ var CheckoutForm = (props) => {
|
|
|
10079
10118
|
}
|
|
10080
10119
|
)
|
|
10081
10120
|
}
|
|
10082
|
-
), /* @__PURE__ */
|
|
10121
|
+
), /* @__PURE__ */ React96.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React96.createElement(
|
|
10083
10122
|
Controller8,
|
|
10084
10123
|
{
|
|
10085
10124
|
control,
|
|
10086
10125
|
name: "lastName",
|
|
10087
10126
|
rules: { required: props.texts?.required },
|
|
10088
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10127
|
+
render: ({ field }) => /* @__PURE__ */ React96.createElement(
|
|
10089
10128
|
HawaTextField,
|
|
10090
10129
|
{
|
|
10091
10130
|
width: "full",
|
|
@@ -10097,12 +10136,12 @@ var CheckoutForm = (props) => {
|
|
|
10097
10136
|
}
|
|
10098
10137
|
)
|
|
10099
10138
|
}
|
|
10100
|
-
)), /* @__PURE__ */
|
|
10139
|
+
)), /* @__PURE__ */ React96.createElement(
|
|
10101
10140
|
Controller8,
|
|
10102
10141
|
{
|
|
10103
10142
|
control,
|
|
10104
10143
|
name: "email",
|
|
10105
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10144
|
+
render: ({ field }) => /* @__PURE__ */ React96.createElement(
|
|
10106
10145
|
HawaTextField,
|
|
10107
10146
|
{
|
|
10108
10147
|
width: "full",
|
|
@@ -10121,13 +10160,13 @@ var CheckoutForm = (props) => {
|
|
|
10121
10160
|
}
|
|
10122
10161
|
}
|
|
10123
10162
|
}
|
|
10124
|
-
), /* @__PURE__ */
|
|
10163
|
+
), /* @__PURE__ */ React96.createElement("div", { className: "flex flex-col md:flex-row" }, /* @__PURE__ */ React96.createElement(
|
|
10125
10164
|
Controller8,
|
|
10126
10165
|
{
|
|
10127
10166
|
control,
|
|
10128
10167
|
name: "streetAddress",
|
|
10129
10168
|
rules: { required: props.texts?.required },
|
|
10130
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10169
|
+
render: ({ field }) => /* @__PURE__ */ React96.createElement(
|
|
10131
10170
|
HawaTextField,
|
|
10132
10171
|
{
|
|
10133
10172
|
width: "full",
|
|
@@ -10139,13 +10178,13 @@ var CheckoutForm = (props) => {
|
|
|
10139
10178
|
}
|
|
10140
10179
|
)
|
|
10141
10180
|
}
|
|
10142
|
-
)), /* @__PURE__ */
|
|
10181
|
+
)), /* @__PURE__ */ React96.createElement("div", { className: "flex flex-col md:flex-row" }, /* @__PURE__ */ React96.createElement(
|
|
10143
10182
|
Controller8,
|
|
10144
10183
|
{
|
|
10145
10184
|
control,
|
|
10146
10185
|
name: "province",
|
|
10147
10186
|
rules: { required: props.texts?.required },
|
|
10148
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10187
|
+
render: ({ field }) => /* @__PURE__ */ React96.createElement(
|
|
10149
10188
|
HawaTextField,
|
|
10150
10189
|
{
|
|
10151
10190
|
width: "full",
|
|
@@ -10157,13 +10196,13 @@ var CheckoutForm = (props) => {
|
|
|
10157
10196
|
}
|
|
10158
10197
|
)
|
|
10159
10198
|
}
|
|
10160
|
-
), /* @__PURE__ */
|
|
10199
|
+
), /* @__PURE__ */ React96.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React96.createElement(
|
|
10161
10200
|
Controller8,
|
|
10162
10201
|
{
|
|
10163
10202
|
control,
|
|
10164
10203
|
name: "city",
|
|
10165
10204
|
rules: { required: props.texts?.required },
|
|
10166
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10205
|
+
render: ({ field }) => /* @__PURE__ */ React96.createElement(
|
|
10167
10206
|
HawaTextField,
|
|
10168
10207
|
{
|
|
10169
10208
|
width: "full",
|
|
@@ -10175,13 +10214,13 @@ var CheckoutForm = (props) => {
|
|
|
10175
10214
|
}
|
|
10176
10215
|
)
|
|
10177
10216
|
}
|
|
10178
|
-
)), /* @__PURE__ */
|
|
10217
|
+
)), /* @__PURE__ */ React96.createElement("div", { className: "flex flex-col md:flex-row" }, /* @__PURE__ */ React96.createElement(
|
|
10179
10218
|
Controller8,
|
|
10180
10219
|
{
|
|
10181
10220
|
control,
|
|
10182
10221
|
name: "buildingNumber",
|
|
10183
10222
|
rules: { required: props.texts?.required },
|
|
10184
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10223
|
+
render: ({ field }) => /* @__PURE__ */ React96.createElement(
|
|
10185
10224
|
HawaTextField,
|
|
10186
10225
|
{
|
|
10187
10226
|
width: "full",
|
|
@@ -10193,13 +10232,13 @@ var CheckoutForm = (props) => {
|
|
|
10193
10232
|
}
|
|
10194
10233
|
)
|
|
10195
10234
|
}
|
|
10196
|
-
), /* @__PURE__ */
|
|
10235
|
+
), /* @__PURE__ */ React96.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React96.createElement(
|
|
10197
10236
|
Controller8,
|
|
10198
10237
|
{
|
|
10199
10238
|
control,
|
|
10200
10239
|
name: "zipCode",
|
|
10201
10240
|
rules: { required: props.texts?.required },
|
|
10202
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10241
|
+
render: ({ field }) => /* @__PURE__ */ React96.createElement(
|
|
10203
10242
|
HawaTextField,
|
|
10204
10243
|
{
|
|
10205
10244
|
width: "full",
|
|
@@ -10211,13 +10250,13 @@ var CheckoutForm = (props) => {
|
|
|
10211
10250
|
}
|
|
10212
10251
|
)
|
|
10213
10252
|
}
|
|
10214
|
-
)), /* @__PURE__ */
|
|
10253
|
+
)), /* @__PURE__ */ React96.createElement("div", { className: "mb-3" }, /* @__PURE__ */ React96.createElement(
|
|
10215
10254
|
Controller8,
|
|
10216
10255
|
{
|
|
10217
10256
|
control,
|
|
10218
10257
|
name: "country",
|
|
10219
10258
|
rules: { required: props.texts?.required },
|
|
10220
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10259
|
+
render: ({ field }) => /* @__PURE__ */ React96.createElement(
|
|
10221
10260
|
HawaSelect,
|
|
10222
10261
|
{
|
|
10223
10262
|
native: true,
|
|
@@ -10228,18 +10267,18 @@ var CheckoutForm = (props) => {
|
|
|
10228
10267
|
onChange: (e) => field.onChange(e.country_label),
|
|
10229
10268
|
value: field.value ?? ""
|
|
10230
10269
|
},
|
|
10231
|
-
/* @__PURE__ */
|
|
10232
|
-
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))
|
|
10233
10272
|
)
|
|
10234
10273
|
}
|
|
10235
|
-
))))), /* @__PURE__ */
|
|
10274
|
+
))))), /* @__PURE__ */ React96.createElement(CardFooter, null, /* @__PURE__ */ React96.createElement(Button, { className: "w-full" }, props.texts.payNow)), " "));
|
|
10236
10275
|
};
|
|
10237
10276
|
|
|
10238
10277
|
// src/blocks/Payment/Confirmation.tsx
|
|
10239
|
-
import
|
|
10278
|
+
import React97 from "react";
|
|
10240
10279
|
var ConfirmationPage = (props) => {
|
|
10241
10280
|
let isArabic = props.lang === "ar";
|
|
10242
|
-
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(
|
|
10243
10282
|
"a",
|
|
10244
10283
|
{
|
|
10245
10284
|
className: "clickable-link text-xs",
|
|
@@ -10250,9 +10289,9 @@ var ConfirmationPage = (props) => {
|
|
|
10250
10289
|
};
|
|
10251
10290
|
|
|
10252
10291
|
// src/blocks/Pricing/PricingPlans.tsx
|
|
10253
|
-
import
|
|
10292
|
+
import React98 from "react";
|
|
10254
10293
|
var PricingPlans = (props) => {
|
|
10255
|
-
return /* @__PURE__ */
|
|
10294
|
+
return /* @__PURE__ */ React98.createElement("div", null, /* @__PURE__ */ React98.createElement("div", { className: "mb-2 flex w-full justify-between" }, /* @__PURE__ */ React98.createElement(
|
|
10256
10295
|
HawaRadio,
|
|
10257
10296
|
{
|
|
10258
10297
|
design: "tabs",
|
|
@@ -10260,7 +10299,7 @@ var PricingPlans = (props) => {
|
|
|
10260
10299
|
options: props.billingCycles,
|
|
10261
10300
|
onChangeTab: (e) => props.onCycleChange(e)
|
|
10262
10301
|
}
|
|
10263
|
-
), /* @__PURE__ */
|
|
10302
|
+
), /* @__PURE__ */ React98.createElement(
|
|
10264
10303
|
HawaRadio,
|
|
10265
10304
|
{
|
|
10266
10305
|
design: "tabs",
|
|
@@ -10268,8 +10307,8 @@ var PricingPlans = (props) => {
|
|
|
10268
10307
|
options: props.currencies,
|
|
10269
10308
|
onChangeTab: (e) => props.onCurrencyChange(e)
|
|
10270
10309
|
}
|
|
10271
|
-
)), /* @__PURE__ */
|
|
10272
|
-
return /* @__PURE__ */
|
|
10310
|
+
)), /* @__PURE__ */ React98.createElement("div", { className: "flex flex-row justify-between" }, props.plans.map((plan, index) => {
|
|
10311
|
+
return /* @__PURE__ */ React98.createElement(
|
|
10273
10312
|
HawaPricingCard,
|
|
10274
10313
|
{
|
|
10275
10314
|
key: index,
|
|
@@ -10286,8 +10325,8 @@ var PricingPlans = (props) => {
|
|
|
10286
10325
|
};
|
|
10287
10326
|
|
|
10288
10327
|
// src/blocks/Pricing/ComparingPlans.tsx
|
|
10289
|
-
import
|
|
10290
|
-
var CheckMark = () => /* @__PURE__ */
|
|
10328
|
+
import React99, { useState as useState47 } from "react";
|
|
10329
|
+
var CheckMark = () => /* @__PURE__ */ React99.createElement(
|
|
10291
10330
|
"svg",
|
|
10292
10331
|
{
|
|
10293
10332
|
className: "h-5 w-5 text-green-500",
|
|
@@ -10295,7 +10334,7 @@ var CheckMark = () => /* @__PURE__ */ React98.createElement(
|
|
|
10295
10334
|
fill: "currentColor",
|
|
10296
10335
|
viewBox: "0 0 20 20"
|
|
10297
10336
|
},
|
|
10298
|
-
/* @__PURE__ */
|
|
10337
|
+
/* @__PURE__ */ React99.createElement(
|
|
10299
10338
|
"path",
|
|
10300
10339
|
{
|
|
10301
10340
|
fillRule: "evenodd",
|
|
@@ -10304,7 +10343,7 @@ var CheckMark = () => /* @__PURE__ */ React98.createElement(
|
|
|
10304
10343
|
}
|
|
10305
10344
|
)
|
|
10306
10345
|
);
|
|
10307
|
-
var UncheckMark = () => /* @__PURE__ */
|
|
10346
|
+
var UncheckMark = () => /* @__PURE__ */ React99.createElement(
|
|
10308
10347
|
"svg",
|
|
10309
10348
|
{
|
|
10310
10349
|
className: "h-5 w-5 text-red-500",
|
|
@@ -10312,7 +10351,7 @@ var UncheckMark = () => /* @__PURE__ */ React98.createElement(
|
|
|
10312
10351
|
fill: "currentColor",
|
|
10313
10352
|
viewBox: "0 0 20 20"
|
|
10314
10353
|
},
|
|
10315
|
-
/* @__PURE__ */
|
|
10354
|
+
/* @__PURE__ */ React99.createElement(
|
|
10316
10355
|
"path",
|
|
10317
10356
|
{
|
|
10318
10357
|
fillRule: "evenodd",
|
|
@@ -10322,9 +10361,9 @@ var UncheckMark = () => /* @__PURE__ */ React98.createElement(
|
|
|
10322
10361
|
)
|
|
10323
10362
|
);
|
|
10324
10363
|
var ComparingPlans = (props) => {
|
|
10325
|
-
const [currentCurrency, setCurrentCurrency] =
|
|
10326
|
-
const [currentCycle, setCurrentCycle] =
|
|
10327
|
-
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(
|
|
10328
10367
|
HawaRadio,
|
|
10329
10368
|
{
|
|
10330
10369
|
design: "tabs",
|
|
@@ -10332,7 +10371,7 @@ var ComparingPlans = (props) => {
|
|
|
10332
10371
|
options: props.billingCycles,
|
|
10333
10372
|
onChangeTab: (e) => props.onCycleChange(e)
|
|
10334
10373
|
}
|
|
10335
|
-
), /* @__PURE__ */
|
|
10374
|
+
), /* @__PURE__ */ React99.createElement(
|
|
10336
10375
|
HawaRadio,
|
|
10337
10376
|
{
|
|
10338
10377
|
design: "tabs",
|
|
@@ -10340,9 +10379,9 @@ var ComparingPlans = (props) => {
|
|
|
10340
10379
|
options: props.currencies,
|
|
10341
10380
|
onChangeTab: (e) => props.onCurrencyChange(e)
|
|
10342
10381
|
}
|
|
10343
|
-
)), /* @__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) => {
|
|
10344
10383
|
return plan.features.map((feature) => {
|
|
10345
|
-
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(
|
|
10346
10385
|
"svg",
|
|
10347
10386
|
{
|
|
10348
10387
|
stroke: "currentColor",
|
|
@@ -10352,44 +10391,44 @@ var ComparingPlans = (props) => {
|
|
|
10352
10391
|
height: "1em",
|
|
10353
10392
|
width: "1em"
|
|
10354
10393
|
},
|
|
10355
|
-
/* @__PURE__ */
|
|
10356
|
-
))), /* @__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));
|
|
10357
10396
|
});
|
|
10358
10397
|
})));
|
|
10359
10398
|
};
|
|
10360
10399
|
|
|
10361
10400
|
// src/blocks/Pricing/HorizontalPricing.tsx
|
|
10362
|
-
import
|
|
10401
|
+
import React100, { useState as useState48 } from "react";
|
|
10363
10402
|
import clsx33 from "clsx";
|
|
10364
10403
|
var HorizontalPricing = (props) => {
|
|
10365
|
-
const [selectedCard, setSelectedCard] =
|
|
10404
|
+
const [selectedCard, setSelectedCard] = useState48(null);
|
|
10366
10405
|
let data = [
|
|
10367
10406
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
|
10368
10407
|
{ title: "business", price: "$99", cycle: "/mo" },
|
|
10369
10408
|
{ title: "enterprise", price: "$149", cycle: "/mo" }
|
|
10370
10409
|
];
|
|
10371
|
-
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(
|
|
10372
10411
|
HawaRadio,
|
|
10373
10412
|
{
|
|
10374
10413
|
design: "tabs",
|
|
10375
10414
|
options: props.currencies,
|
|
10376
10415
|
defaultValue: props.currentCurrency
|
|
10377
10416
|
}
|
|
10378
|
-
), /* @__PURE__ */
|
|
10417
|
+
), /* @__PURE__ */ React100.createElement(
|
|
10379
10418
|
HawaRadio,
|
|
10380
10419
|
{
|
|
10381
10420
|
design: "tabs",
|
|
10382
10421
|
options: props.billingCycles,
|
|
10383
10422
|
defaultValue: props.currentCycle
|
|
10384
10423
|
}
|
|
10385
|
-
)), data.map((d) => /* @__PURE__ */
|
|
10424
|
+
)), data.map((d) => /* @__PURE__ */ React100.createElement(
|
|
10386
10425
|
"label",
|
|
10387
10426
|
{
|
|
10388
10427
|
htmlFor: d.title,
|
|
10389
10428
|
className: "",
|
|
10390
10429
|
onClick: () => setSelectedCard(d.title)
|
|
10391
10430
|
},
|
|
10392
|
-
/* @__PURE__ */
|
|
10431
|
+
/* @__PURE__ */ React100.createElement(
|
|
10393
10432
|
"input",
|
|
10394
10433
|
{
|
|
10395
10434
|
type: "radio",
|
|
@@ -10398,7 +10437,7 @@ var HorizontalPricing = (props) => {
|
|
|
10398
10437
|
className: "peer appearance-none"
|
|
10399
10438
|
}
|
|
10400
10439
|
),
|
|
10401
|
-
/* @__PURE__ */
|
|
10440
|
+
/* @__PURE__ */ React100.createElement(
|
|
10402
10441
|
"div",
|
|
10403
10442
|
{
|
|
10404
10443
|
className: clsx33(
|
|
@@ -10406,18 +10445,18 @@ var HorizontalPricing = (props) => {
|
|
|
10406
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"
|
|
10407
10446
|
)
|
|
10408
10447
|
},
|
|
10409
|
-
/* @__PURE__ */
|
|
10448
|
+
/* @__PURE__ */ React100.createElement("div", { className: "peer flex items-center gap-4" }, /* @__PURE__ */ React100.createElement(CheckIcons, null), /* @__PURE__ */ React100.createElement(
|
|
10410
10449
|
CardText,
|
|
10411
10450
|
{
|
|
10412
10451
|
title: "Enterprise",
|
|
10413
10452
|
subtitle: "For startups and new businesses"
|
|
10414
10453
|
}
|
|
10415
10454
|
)),
|
|
10416
|
-
/* @__PURE__ */
|
|
10455
|
+
/* @__PURE__ */ React100.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
|
10417
10456
|
)
|
|
10418
10457
|
))));
|
|
10419
10458
|
};
|
|
10420
|
-
var CheckIcons = () => /* @__PURE__ */
|
|
10459
|
+
var CheckIcons = () => /* @__PURE__ */ React100.createElement(React100.Fragment, null, /* @__PURE__ */ React100.createElement(
|
|
10421
10460
|
"svg",
|
|
10422
10461
|
{
|
|
10423
10462
|
fill: "none",
|
|
@@ -10426,7 +10465,7 @@ var CheckIcons = () => /* @__PURE__ */ React99.createElement(React99.Fragment, n
|
|
|
10426
10465
|
stroke: "currentColor",
|
|
10427
10466
|
className: "default h-8 w-8 text-neutral-500"
|
|
10428
10467
|
},
|
|
10429
|
-
/* @__PURE__ */
|
|
10468
|
+
/* @__PURE__ */ React100.createElement(
|
|
10430
10469
|
"path",
|
|
10431
10470
|
{
|
|
10432
10471
|
strokeLinecap: "round",
|
|
@@ -10434,14 +10473,14 @@ var CheckIcons = () => /* @__PURE__ */ React99.createElement(React99.Fragment, n
|
|
|
10434
10473
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
10435
10474
|
}
|
|
10436
10475
|
)
|
|
10437
|
-
), /* @__PURE__ */
|
|
10476
|
+
), /* @__PURE__ */ React100.createElement(
|
|
10438
10477
|
"svg",
|
|
10439
10478
|
{
|
|
10440
10479
|
viewBox: "0 0 24 24",
|
|
10441
10480
|
fill: "currentColor",
|
|
10442
10481
|
className: "active hidden h-8 w-8 text-blue-500"
|
|
10443
10482
|
},
|
|
10444
|
-
/* @__PURE__ */
|
|
10483
|
+
/* @__PURE__ */ React100.createElement(
|
|
10445
10484
|
"path",
|
|
10446
10485
|
{
|
|
10447
10486
|
fillRule: "evenodd",
|
|
@@ -10450,21 +10489,21 @@ var CheckIcons = () => /* @__PURE__ */ React99.createElement(React99.Fragment, n
|
|
|
10450
10489
|
}
|
|
10451
10490
|
)
|
|
10452
10491
|
));
|
|
10453
|
-
var CardText = (props) => /* @__PURE__ */
|
|
10454
|
-
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));
|
|
10455
10494
|
|
|
10456
10495
|
// src/blocks/Referral/ReferralAccount.tsx
|
|
10457
|
-
import
|
|
10496
|
+
import React101 from "react";
|
|
10458
10497
|
var ReferralAccount = ({
|
|
10459
10498
|
referralLink,
|
|
10460
10499
|
referralCode
|
|
10461
10500
|
}) => {
|
|
10462
|
-
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(
|
|
10463
10502
|
Button,
|
|
10464
10503
|
{
|
|
10465
10504
|
onClick: () => navigator.clipboard.writeText(referralCode)
|
|
10466
10505
|
},
|
|
10467
|
-
/* @__PURE__ */
|
|
10506
|
+
/* @__PURE__ */ React101.createElement("span", { className: "bg-red flex items-center justify-center" }, /* @__PURE__ */ React101.createElement(
|
|
10468
10507
|
"svg",
|
|
10469
10508
|
{
|
|
10470
10509
|
stroke: "currentColor",
|
|
@@ -10474,14 +10513,14 @@ var ReferralAccount = ({
|
|
|
10474
10513
|
height: "1em",
|
|
10475
10514
|
width: "1em"
|
|
10476
10515
|
},
|
|
10477
|
-
/* @__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" })
|
|
10478
10517
|
), " ")
|
|
10479
|
-
))), /* @__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(
|
|
10480
10519
|
Button,
|
|
10481
10520
|
{
|
|
10482
10521
|
onClick: () => navigator.clipboard.writeText(referralLink)
|
|
10483
10522
|
},
|
|
10484
|
-
/* @__PURE__ */
|
|
10523
|
+
/* @__PURE__ */ React101.createElement("span", { className: "bg-red flex items-center justify-center" }, /* @__PURE__ */ React101.createElement(
|
|
10485
10524
|
"svg",
|
|
10486
10525
|
{
|
|
10487
10526
|
stroke: "currentColor",
|
|
@@ -10491,13 +10530,13 @@ var ReferralAccount = ({
|
|
|
10491
10530
|
height: "1em",
|
|
10492
10531
|
width: "1em"
|
|
10493
10532
|
},
|
|
10494
|
-
/* @__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" })
|
|
10495
10534
|
), " ")
|
|
10496
10535
|
)))));
|
|
10497
10536
|
};
|
|
10498
10537
|
|
|
10499
10538
|
// src/blocks/Referral/ReferralSettlement.tsx
|
|
10500
|
-
import
|
|
10539
|
+
import React102 from "react";
|
|
10501
10540
|
import { Controller as Controller9, FormProvider as FormProvider5, useForm as useForm9 } from "react-hook-form";
|
|
10502
10541
|
var ReferralSettlement = ({
|
|
10503
10542
|
referralLink,
|
|
@@ -10510,12 +10549,12 @@ var ReferralSettlement = ({
|
|
|
10510
10549
|
handleSubmit,
|
|
10511
10550
|
control
|
|
10512
10551
|
} = methods;
|
|
10513
|
-
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(
|
|
10514
10553
|
Controller9,
|
|
10515
10554
|
{
|
|
10516
10555
|
control,
|
|
10517
10556
|
name: "bank",
|
|
10518
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10557
|
+
render: ({ field }) => /* @__PURE__ */ React102.createElement(
|
|
10519
10558
|
HawaSelect,
|
|
10520
10559
|
{
|
|
10521
10560
|
label: "Bank",
|
|
@@ -10534,13 +10573,13 @@ var ReferralSettlement = ({
|
|
|
10534
10573
|
}
|
|
10535
10574
|
)
|
|
10536
10575
|
}
|
|
10537
|
-
))), /* @__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(
|
|
10538
10577
|
HawaAlert,
|
|
10539
10578
|
{
|
|
10540
10579
|
text: "Sorry can't withdraw the money at the moment. Please try again in 2022/11/20",
|
|
10541
10580
|
severity: "warning"
|
|
10542
10581
|
}
|
|
10543
|
-
)), /* @__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(
|
|
10544
10583
|
SettlementAccountCard,
|
|
10545
10584
|
{
|
|
10546
10585
|
bank: "Al Inma Bank",
|
|
@@ -10548,14 +10587,14 @@ var ReferralSettlement = ({
|
|
|
10548
10587
|
accountHolder: "Zakher Masri",
|
|
10549
10588
|
default: true
|
|
10550
10589
|
}
|
|
10551
|
-
), /* @__PURE__ */
|
|
10590
|
+
), /* @__PURE__ */ React102.createElement(
|
|
10552
10591
|
SettlementAccountCard,
|
|
10553
10592
|
{
|
|
10554
10593
|
bank: "Al Rajihi Bank",
|
|
10555
10594
|
iban: "SA10228094028098329119",
|
|
10556
10595
|
accountHolder: "Zakher Masri"
|
|
10557
10596
|
}
|
|
10558
|
-
), /* @__PURE__ */
|
|
10597
|
+
), /* @__PURE__ */ React102.createElement(
|
|
10559
10598
|
SettlementAccountCard,
|
|
10560
10599
|
{
|
|
10561
10600
|
bank: "Al Inma Bank",
|
|
@@ -10565,13 +10604,13 @@ var ReferralSettlement = ({
|
|
|
10565
10604
|
)))));
|
|
10566
10605
|
};
|
|
10567
10606
|
var SettlementAccountCard = (props) => {
|
|
10568
|
-
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(
|
|
10569
10608
|
HawaChip,
|
|
10570
10609
|
{
|
|
10571
10610
|
label: "Default",
|
|
10572
10611
|
size: "small"
|
|
10573
10612
|
}
|
|
10574
|
-
), /* @__PURE__ */
|
|
10613
|
+
), /* @__PURE__ */ React102.createElement(
|
|
10575
10614
|
HawaMenu,
|
|
10576
10615
|
{
|
|
10577
10616
|
size: "small",
|
|
@@ -10583,7 +10622,7 @@ var SettlementAccountCard = (props) => {
|
|
|
10583
10622
|
]
|
|
10584
10623
|
]
|
|
10585
10624
|
},
|
|
10586
|
-
/* @__PURE__ */
|
|
10625
|
+
/* @__PURE__ */ React102.createElement(Button, { variant: "outline", size: "icon" }, /* @__PURE__ */ React102.createElement(
|
|
10587
10626
|
"svg",
|
|
10588
10627
|
{
|
|
10589
10628
|
"aria-label": "Vertical Three Dots Menu Icon",
|
|
@@ -10595,53 +10634,53 @@ var SettlementAccountCard = (props) => {
|
|
|
10595
10634
|
height: "1em",
|
|
10596
10635
|
width: "1em"
|
|
10597
10636
|
},
|
|
10598
|
-
/* @__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" })
|
|
10599
10638
|
))
|
|
10600
10639
|
)));
|
|
10601
10640
|
};
|
|
10602
10641
|
|
|
10603
10642
|
// src/blocks/Referral/ReferralStats.tsx
|
|
10604
|
-
import
|
|
10643
|
+
import React103 from "react";
|
|
10605
10644
|
var ReferralStats = ({
|
|
10606
10645
|
referralLink,
|
|
10607
10646
|
referralCode,
|
|
10608
10647
|
withdrawError
|
|
10609
10648
|
}) => {
|
|
10610
|
-
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(
|
|
10611
10650
|
HawaAlert,
|
|
10612
10651
|
{
|
|
10613
10652
|
text: "Sorry can't withdraw the money at the moment. Please try again in 2022/11/20",
|
|
10614
10653
|
severity: "warning"
|
|
10615
10654
|
}
|
|
10616
|
-
)), /* @__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(
|
|
10617
10656
|
ReferralSignUpCard,
|
|
10618
10657
|
{
|
|
10619
10658
|
date: "2020/10/11 @ 9:45 pm",
|
|
10620
10659
|
email: "zakher@sikka.io",
|
|
10621
10660
|
amount: "3.4 SAR / Month"
|
|
10622
10661
|
}
|
|
10623
|
-
), /* @__PURE__ */
|
|
10662
|
+
), /* @__PURE__ */ React103.createElement(
|
|
10624
10663
|
ReferralSignUpCard,
|
|
10625
10664
|
{
|
|
10626
10665
|
date: "2022/10/11 @ 9:45 pm",
|
|
10627
10666
|
email: "zakher@sikka.io",
|
|
10628
10667
|
amount: "3.4 SAR / Month"
|
|
10629
10668
|
}
|
|
10630
|
-
), /* @__PURE__ */
|
|
10669
|
+
), /* @__PURE__ */ React103.createElement(
|
|
10631
10670
|
ReferralSignUpCard,
|
|
10632
10671
|
{
|
|
10633
10672
|
date: "2022/10/11 @ 9:45 pm",
|
|
10634
10673
|
email: "zakher@sikka.io",
|
|
10635
10674
|
amount: "3.4 SAR / Month"
|
|
10636
10675
|
}
|
|
10637
|
-
), /* @__PURE__ */
|
|
10676
|
+
), /* @__PURE__ */ React103.createElement(
|
|
10638
10677
|
ReferralSignUpCard,
|
|
10639
10678
|
{
|
|
10640
10679
|
date: "2022/10/11 @ 9:45 pm",
|
|
10641
10680
|
email: "zakher@sikka.io",
|
|
10642
10681
|
amount: "3.4 SAR / Month"
|
|
10643
10682
|
}
|
|
10644
|
-
), /* @__PURE__ */
|
|
10683
|
+
), /* @__PURE__ */ React103.createElement(
|
|
10645
10684
|
ReferralSignUpCard,
|
|
10646
10685
|
{
|
|
10647
10686
|
date: "2022/10/11 @ 9:45 pm",
|
|
@@ -10650,26 +10689,26 @@ var ReferralStats = ({
|
|
|
10650
10689
|
}
|
|
10651
10690
|
)))));
|
|
10652
10691
|
};
|
|
10653
|
-
var NumberCard = (props) => /* @__PURE__ */
|
|
10654
|
-
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)));
|
|
10655
10694
|
|
|
10656
10695
|
// src/blocks/Misc/NotFound.tsx
|
|
10657
|
-
import
|
|
10696
|
+
import React104 from "react";
|
|
10658
10697
|
var NotFound = ({
|
|
10659
10698
|
variant = "contained",
|
|
10660
10699
|
texts
|
|
10661
10700
|
}) => {
|
|
10662
|
-
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"))));
|
|
10663
10702
|
};
|
|
10664
10703
|
|
|
10665
10704
|
// src/blocks/Misc/EmptyState.tsx
|
|
10666
|
-
import
|
|
10705
|
+
import React105 from "react";
|
|
10667
10706
|
var EmptyState = ({
|
|
10668
10707
|
variant = "contained",
|
|
10669
10708
|
texts,
|
|
10670
10709
|
onActionClick
|
|
10671
10710
|
}) => {
|
|
10672
|
-
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(
|
|
10673
10712
|
"svg",
|
|
10674
10713
|
{
|
|
10675
10714
|
stroke: "currentColor",
|
|
@@ -10679,36 +10718,36 @@ var EmptyState = ({
|
|
|
10679
10718
|
height: "0.35em",
|
|
10680
10719
|
width: "0.35em"
|
|
10681
10720
|
},
|
|
10682
|
-
/* @__PURE__ */
|
|
10683
|
-
)), /* @__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")));
|
|
10684
10723
|
};
|
|
10685
10724
|
|
|
10686
10725
|
// src/blocks/Misc/Testimonial.tsx
|
|
10687
|
-
import
|
|
10726
|
+
import React106 from "react";
|
|
10688
10727
|
var Testimonial = (props) => {
|
|
10689
|
-
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(
|
|
10690
10729
|
"path",
|
|
10691
10730
|
{
|
|
10692
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",
|
|
10693
10732
|
fill: "#FFFFFF"
|
|
10694
10733
|
}
|
|
10695
|
-
), /* @__PURE__ */
|
|
10734
|
+
), /* @__PURE__ */ React106.createElement(
|
|
10696
10735
|
"path",
|
|
10697
10736
|
{
|
|
10698
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",
|
|
10699
10738
|
fill: "#FFFFFF"
|
|
10700
10739
|
}
|
|
10701
|
-
)), /* @__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")))));
|
|
10702
10741
|
};
|
|
10703
10742
|
|
|
10704
10743
|
// src/blocks/Misc/LeadGenerator.tsx
|
|
10705
|
-
import
|
|
10744
|
+
import React107 from "react";
|
|
10706
10745
|
var LeadGenerator = ({
|
|
10707
10746
|
variant = "contained",
|
|
10708
10747
|
texts,
|
|
10709
10748
|
handleNewsletterSub
|
|
10710
10749
|
}) => {
|
|
10711
|
-
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(
|
|
10712
10751
|
"form",
|
|
10713
10752
|
{
|
|
10714
10753
|
className: "flex flex-row gap-2",
|
|
@@ -10717,36 +10756,36 @@ var LeadGenerator = ({
|
|
|
10717
10756
|
handleNewsletterSub(e.target[0].value);
|
|
10718
10757
|
}
|
|
10719
10758
|
},
|
|
10720
|
-
/* @__PURE__ */
|
|
10721
|
-
/* @__PURE__ */
|
|
10759
|
+
/* @__PURE__ */ React107.createElement(Input, { type: "email", name: "email", placeholder: "example@sikka.io" }),
|
|
10760
|
+
/* @__PURE__ */ React107.createElement(Button, null, texts?.submit ?? "Submit")
|
|
10722
10761
|
)));
|
|
10723
10762
|
};
|
|
10724
10763
|
|
|
10725
10764
|
// src/blocks/Misc/Announcement.tsx
|
|
10726
|
-
import
|
|
10765
|
+
import React108 from "react";
|
|
10727
10766
|
var Announcement = ({
|
|
10728
10767
|
variant = "contained",
|
|
10729
10768
|
onActionClick,
|
|
10730
10769
|
...props
|
|
10731
10770
|
}) => {
|
|
10732
|
-
return /* @__PURE__ */
|
|
10771
|
+
return /* @__PURE__ */ React108.createElement(Card, null, /* @__PURE__ */ React108.createElement(
|
|
10733
10772
|
CardContent,
|
|
10734
10773
|
{
|
|
10735
10774
|
headless: true,
|
|
10736
10775
|
className: "flex flex-row items-center justify-between"
|
|
10737
10776
|
},
|
|
10738
|
-
/* @__PURE__ */
|
|
10739
|
-
/* @__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)
|
|
10740
10779
|
));
|
|
10741
10780
|
};
|
|
10742
10781
|
|
|
10743
10782
|
// src/blocks/Misc/NoPermission.tsx
|
|
10744
|
-
import
|
|
10783
|
+
import React109 from "react";
|
|
10745
10784
|
var NoPermission = ({
|
|
10746
10785
|
variant = "contained",
|
|
10747
10786
|
texts
|
|
10748
10787
|
}) => {
|
|
10749
|
-
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(
|
|
10750
10789
|
"svg",
|
|
10751
10790
|
{
|
|
10752
10791
|
stroke: "currentColor",
|
|
@@ -10756,13 +10795,14 @@ var NoPermission = ({
|
|
|
10756
10795
|
height: "0.35em",
|
|
10757
10796
|
width: "0.35em"
|
|
10758
10797
|
},
|
|
10759
|
-
/* @__PURE__ */
|
|
10760
|
-
), " "), /* @__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"))));
|
|
10761
10800
|
};
|
|
10762
10801
|
|
|
10763
10802
|
// src/hooks/useHover.ts
|
|
10764
|
-
import { useEffect as useEffect26, useRef as useRef18, useState as
|
|
10803
|
+
import { useEffect as useEffect26, useRef as useRef18, useState as useState49 } from "react";
|
|
10765
10804
|
export {
|
|
10805
|
+
ActionCard,
|
|
10766
10806
|
Announcement,
|
|
10767
10807
|
AppLanding,
|
|
10768
10808
|
AppLayout,
|