@sikka/hawa 0.1.86 → 0.1.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +23 -4
- package/dist/index.d.ts +23 -4
- package/dist/index.js +404 -309
- package/dist/index.mjs +317 -242
- package/dist/styles.css +16 -66
- package/package.json +1 -1
- package/src/blocks/AuthForms/AppLanding.tsx +17 -7
- package/src/blocks/AuthForms/CheckEmail.tsx +54 -0
- package/src/blocks/AuthForms/SignInForm.tsx +1 -1
- package/src/blocks/AuthForms/SignUpForm.tsx +1 -1
- package/src/blocks/AuthForms/index.ts +1 -0
- package/src/blocks/Misc/NoPermission.tsx +1 -5
- package/src/blocks/Payment/CreditCardForm.tsx +20 -19
- package/src/elements/Carousel.tsx +5 -155
- package/src/elements/DropdownMenu.tsx +5 -0
- package/src/elements/HawaAdCard.tsx +61 -23
- package/src/layout/Footer.tsx +50 -13
- package/src/styles.css +16 -66
- package/src/translations/ar.json +4 -1
- package/src/translations/en.json +4 -1
package/dist/index.mjs
CHANGED
|
@@ -1042,6 +1042,7 @@ DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
|
1042
1042
|
var DropdownMenuItem = React19.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React19.createElement(
|
|
1043
1043
|
DropdownMenuPrimitive.Item,
|
|
1044
1044
|
{
|
|
1045
|
+
disabled: props.disabled,
|
|
1045
1046
|
ref,
|
|
1046
1047
|
className: cn(
|
|
1047
1048
|
"relative flex cursor-pointer select-none items-center justify-between rounded-sm px-2 py-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
@@ -1178,6 +1179,7 @@ var DropdownMenu = ({
|
|
|
1178
1179
|
return item.subitems ? /* @__PURE__ */ React19.createElement(DropdownMenuSub, { key: index }, /* @__PURE__ */ React19.createElement(DropdownMenuSubTrigger, { dir: direction }, item.icon && item.icon, item.label), /* @__PURE__ */ React19.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React19.createElement(DropdownMenuSubContent, null, item.subitems.map((subitem, subIndex) => /* @__PURE__ */ React19.createElement(
|
|
1179
1180
|
DropdownMenuItem,
|
|
1180
1181
|
{
|
|
1182
|
+
disabled: subitem.disabled,
|
|
1181
1183
|
className: "flex flex-row gap-2",
|
|
1182
1184
|
onSelect: () => subitem.action(),
|
|
1183
1185
|
key: subIndex
|
|
@@ -1187,6 +1189,7 @@ var DropdownMenu = ({
|
|
|
1187
1189
|
))))) : /* @__PURE__ */ React19.createElement(
|
|
1188
1190
|
DropdownMenuItem,
|
|
1189
1191
|
{
|
|
1192
|
+
disabled: item.disabled,
|
|
1190
1193
|
className: "flex flex-row gap-2",
|
|
1191
1194
|
key: index,
|
|
1192
1195
|
onSelect: (e) => {
|
|
@@ -6073,8 +6076,26 @@ var HawaPricingCard = ({
|
|
|
6073
6076
|
|
|
6074
6077
|
// src/elements/HawaAdCard.tsx
|
|
6075
6078
|
import clsx24 from "clsx";
|
|
6076
|
-
import React54 from "react";
|
|
6079
|
+
import React54, { useState as useState29, useEffect as useEffect19, useRef as useRef11 } from "react";
|
|
6077
6080
|
var HawaAdCard = ({ orientation, ...props }) => {
|
|
6081
|
+
const adRef = useRef11(null);
|
|
6082
|
+
const [closed, setClosed] = useState29(false);
|
|
6083
|
+
let duration = 0;
|
|
6084
|
+
useEffect19(() => {
|
|
6085
|
+
if (duration) {
|
|
6086
|
+
const timeoutHide = setTimeout(() => {
|
|
6087
|
+
setClosed(true);
|
|
6088
|
+
}, duration);
|
|
6089
|
+
const timeoutDestroy = setTimeout(() => {
|
|
6090
|
+
setClosed(true);
|
|
6091
|
+
adRef.current.removeChild(adRef.current.children[0]);
|
|
6092
|
+
}, duration + 1e3);
|
|
6093
|
+
return () => {
|
|
6094
|
+
clearTimeout(timeoutHide);
|
|
6095
|
+
clearTimeout(timeoutDestroy);
|
|
6096
|
+
};
|
|
6097
|
+
}
|
|
6098
|
+
}, [duration]);
|
|
6078
6099
|
let cardStyles = {
|
|
6079
6100
|
horizontal: "flex flex-row max-w-xl rounded border-gray-200 bg-gray-100 shadow-md p-2 gap-2 items-center relative dark:border-gray-700 dark:bg-gray-800 ",
|
|
6080
6101
|
vertical: "flex flex-col max-w-[200px] justify-start rounded border-gray-200 bg-gray-100 gap-2 shadow-md p-2 relative dark:border-gray-700 dark:bg-gray-800 "
|
|
@@ -6083,7 +6104,7 @@ var HawaAdCard = ({ orientation, ...props }) => {
|
|
|
6083
6104
|
horizontal: "w-auto h-full bg-blue-500 rounded-inner",
|
|
6084
6105
|
vertical: "bg-blue-500 rounded-inner w-auto "
|
|
6085
6106
|
};
|
|
6086
|
-
return /* @__PURE__ */ React54.createElement(
|
|
6107
|
+
return /* @__PURE__ */ React54.createElement("div", { ref: adRef }, /* @__PURE__ */ React54.createElement(
|
|
6087
6108
|
"div",
|
|
6088
6109
|
{
|
|
6089
6110
|
className: clsx24(cardStyles[orientation], "dark:text-white"),
|
|
@@ -6100,12 +6121,21 @@ var HawaAdCard = ({ orientation, ...props }) => {
|
|
|
6100
6121
|
/* @__PURE__ */ React54.createElement(
|
|
6101
6122
|
"span",
|
|
6102
6123
|
{
|
|
6103
|
-
onClick:
|
|
6124
|
+
onClick: () => {
|
|
6125
|
+
if (props.canHide) {
|
|
6126
|
+
setClosed(true);
|
|
6127
|
+
setTimeout(() => {
|
|
6128
|
+
adRef.current.removeChild(adRef.current.children[0]);
|
|
6129
|
+
}, 200);
|
|
6130
|
+
} else {
|
|
6131
|
+
props.handleCantHide();
|
|
6132
|
+
}
|
|
6133
|
+
},
|
|
6104
6134
|
className: "absolute right-0 top-0 h-fit cursor-pointer select-none rounded-bl-lg rounded-tr-lg bg-blue-100 px-2.5 py-0.5 text-[10px] font-semibold text-blue-800 dark:bg-blue-200 dark:text-blue-800"
|
|
6105
6135
|
},
|
|
6106
6136
|
"Hide"
|
|
6107
6137
|
)
|
|
6108
|
-
);
|
|
6138
|
+
));
|
|
6109
6139
|
};
|
|
6110
6140
|
|
|
6111
6141
|
// src/elements/HawaLandingCard.tsx
|
|
@@ -6149,7 +6179,7 @@ var HawaLandingCard = ({
|
|
|
6149
6179
|
};
|
|
6150
6180
|
|
|
6151
6181
|
// src/elements/HawaButton.tsx
|
|
6152
|
-
import React56, { useState as
|
|
6182
|
+
import React56, { useState as useState30 } from "react";
|
|
6153
6183
|
import clsx26 from "clsx";
|
|
6154
6184
|
var disabledSyles = "cursor-default pointer-events-none";
|
|
6155
6185
|
var disabledVariantSyles = {
|
|
@@ -6217,8 +6247,8 @@ var HawaButton = ({
|
|
|
6217
6247
|
feedback,
|
|
6218
6248
|
...props
|
|
6219
6249
|
}) => {
|
|
6220
|
-
const [isClicked, setIsClicked] =
|
|
6221
|
-
const [buttonText, setButtonText] =
|
|
6250
|
+
const [isClicked, setIsClicked] = useState30(false);
|
|
6251
|
+
const [buttonText, setButtonText] = useState30(children);
|
|
6222
6252
|
const handleClick = (event) => {
|
|
6223
6253
|
if (props.onClick) {
|
|
6224
6254
|
props.onClick(event);
|
|
@@ -6392,9 +6422,9 @@ var HawaStoreButtons = (props) => {
|
|
|
6392
6422
|
};
|
|
6393
6423
|
|
|
6394
6424
|
// src/elements/ActionCard.tsx
|
|
6395
|
-
import React58, { useState as
|
|
6425
|
+
import React58, { useState as useState31 } from "react";
|
|
6396
6426
|
var ActionCard = (props) => {
|
|
6397
|
-
const [hovered, setHovered] =
|
|
6427
|
+
const [hovered, setHovered] = useState31(false);
|
|
6398
6428
|
return /* @__PURE__ */ React58.createElement("div", { className: "flex h-full w-full flex-col gap-1 " }, /* @__PURE__ */ React58.createElement(
|
|
6399
6429
|
"div",
|
|
6400
6430
|
{
|
|
@@ -6434,12 +6464,12 @@ var ActionCard = (props) => {
|
|
|
6434
6464
|
import React59 from "react";
|
|
6435
6465
|
|
|
6436
6466
|
// src/hooks/useCarousel.ts
|
|
6437
|
-
import { useState as
|
|
6467
|
+
import { useState as useState32, useRef as useRef12 } from "react";
|
|
6438
6468
|
var useCarousel = (imageWidth) => {
|
|
6439
|
-
const [isDragging, setIsDragging] =
|
|
6440
|
-
const [startDragX, setStartDragX] =
|
|
6441
|
-
const [scrollLeft, setScrollLeft] =
|
|
6442
|
-
const containerRef =
|
|
6469
|
+
const [isDragging, setIsDragging] = useState32(false);
|
|
6470
|
+
const [startDragX, setStartDragX] = useState32(0);
|
|
6471
|
+
const [scrollLeft, setScrollLeft] = useState32(0);
|
|
6472
|
+
const containerRef = useRef12(null);
|
|
6443
6473
|
const findClosestSnapPoint = (scrollLeft2) => {
|
|
6444
6474
|
return Math.round(scrollLeft2 / imageWidth) * imageWidth;
|
|
6445
6475
|
};
|
|
@@ -6486,7 +6516,7 @@ var useCarousel_default = useCarousel;
|
|
|
6486
6516
|
|
|
6487
6517
|
// src/elements/Carousel.tsx
|
|
6488
6518
|
var Carousel = ({ images }) => {
|
|
6489
|
-
const imageWidth =
|
|
6519
|
+
const imageWidth = 1e3 + 16;
|
|
6490
6520
|
const {
|
|
6491
6521
|
containerRef,
|
|
6492
6522
|
handleMouseDown,
|
|
@@ -6497,18 +6527,19 @@ var Carousel = ({ images }) => {
|
|
|
6497
6527
|
return /* @__PURE__ */ React59.createElement(
|
|
6498
6528
|
"div",
|
|
6499
6529
|
{
|
|
6500
|
-
className: "flex cursor-pointer snap-x gap-4 overflow-x-
|
|
6530
|
+
className: "flex cursor-pointer snap-x gap-4 overflow-x-hidden justify-center items-center",
|
|
6501
6531
|
onMouseDown: handleMouseDown,
|
|
6502
6532
|
onMouseLeave: handleMouseLeave,
|
|
6503
6533
|
onMouseUp: handleMouseUp,
|
|
6504
6534
|
onMouseMove: handleMouseMove,
|
|
6505
6535
|
ref: containerRef
|
|
6506
6536
|
},
|
|
6507
|
-
images.map((image, index) => /* @__PURE__ */ React59.createElement("div", { key: index, className: "
|
|
6537
|
+
images.map((image, index) => /* @__PURE__ */ React59.createElement("div", { key: index, className: "w-[1000px] h-96 flex-shrink-0" }, /* @__PURE__ */ React59.createElement(
|
|
6508
6538
|
"img",
|
|
6509
6539
|
{
|
|
6510
6540
|
src: image,
|
|
6511
6541
|
alt: `Carousel Image ${index}`,
|
|
6542
|
+
width: imageWidth,
|
|
6512
6543
|
className: "h-full w-full rounded-lg object-cover"
|
|
6513
6544
|
}
|
|
6514
6545
|
)))
|
|
@@ -6538,14 +6569,14 @@ var Input = React60.forwardRef(
|
|
|
6538
6569
|
Input.displayName = "Input";
|
|
6539
6570
|
|
|
6540
6571
|
// src/elements/InterfaceSettings.tsx
|
|
6541
|
-
import React61, { useState as
|
|
6572
|
+
import React61, { useState as useState34 } from "react";
|
|
6542
6573
|
var InterfaceSettings = ({
|
|
6543
6574
|
orientation = "horizontal",
|
|
6544
6575
|
width = "default",
|
|
6545
6576
|
...props
|
|
6546
6577
|
}) => {
|
|
6547
|
-
const [color, setColor] =
|
|
6548
|
-
const [language, setLanguage] =
|
|
6578
|
+
const [color, setColor] = useState34(props.currentColorMode);
|
|
6579
|
+
const [language, setLanguage] = useState34(props.currentLanguage);
|
|
6549
6580
|
let orientationStyle = {
|
|
6550
6581
|
horizontal: "flex flex-row justify-between",
|
|
6551
6582
|
vertical: "flex flex-col items-center gap-2"
|
|
@@ -7150,13 +7181,13 @@ var HawaBottomAppBar = (props) => {
|
|
|
7150
7181
|
};
|
|
7151
7182
|
|
|
7152
7183
|
// src/layout/HawaSiteLayout.tsx
|
|
7153
|
-
import React74, { useEffect as
|
|
7184
|
+
import React74, { useEffect as useEffect22, useRef as useRef14, useState as useState38 } from "react";
|
|
7154
7185
|
import clsx27 from "clsx";
|
|
7155
7186
|
|
|
7156
7187
|
// src/hooks/useDiscloser.ts
|
|
7157
|
-
import { useState as
|
|
7188
|
+
import { useState as useState36 } from "react";
|
|
7158
7189
|
var useDiscloser = (value = false) => {
|
|
7159
|
-
const [open, setOpen] =
|
|
7190
|
+
const [open, setOpen] = useState36(value);
|
|
7160
7191
|
const onOpen = () => setOpen(true);
|
|
7161
7192
|
const onClose = () => setOpen(false);
|
|
7162
7193
|
return {
|
|
@@ -7168,13 +7199,13 @@ var useDiscloser = (value = false) => {
|
|
|
7168
7199
|
var useDiscloser_default = useDiscloser;
|
|
7169
7200
|
|
|
7170
7201
|
// src/hooks/useBreakpoint.ts
|
|
7171
|
-
import { useState as
|
|
7202
|
+
import { useState as useState37, useEffect as useEffect21 } from "react";
|
|
7172
7203
|
var useBreakpoint = () => {
|
|
7173
|
-
const [breakpoint, setBreakpoint] =
|
|
7204
|
+
const [breakpoint, setBreakpoint] = useState37(window?.innerWidth);
|
|
7174
7205
|
const resize = () => {
|
|
7175
7206
|
setBreakpoint(window?.innerWidth);
|
|
7176
7207
|
};
|
|
7177
|
-
|
|
7208
|
+
useEffect21(() => {
|
|
7178
7209
|
if (typeof window !== "undefined") {
|
|
7179
7210
|
window?.addEventListener("resize", resize);
|
|
7180
7211
|
return () => {
|
|
@@ -7192,19 +7223,19 @@ var HawaSiteLayout = ({
|
|
|
7192
7223
|
navigationSize = "md",
|
|
7193
7224
|
...props
|
|
7194
7225
|
}) => {
|
|
7195
|
-
const [openSideMenu, setOpenSideMenu] =
|
|
7196
|
-
const [openSubItem, setOpenSubItem] =
|
|
7226
|
+
const [openSideMenu, setOpenSideMenu] = useState38(false);
|
|
7227
|
+
const [openSubItem, setOpenSubItem] = useState38(false);
|
|
7197
7228
|
const { isOpen, onClose, onOpen } = useDiscloser_default(false);
|
|
7198
|
-
const ref =
|
|
7199
|
-
const drawerItemRef =
|
|
7229
|
+
const ref = useRef14(null);
|
|
7230
|
+
const drawerItemRef = useRef14(null);
|
|
7200
7231
|
let size;
|
|
7201
7232
|
if (typeof window !== "undefined") {
|
|
7202
7233
|
size = useBreakpoint_default();
|
|
7203
7234
|
} else {
|
|
7204
7235
|
size = 1200;
|
|
7205
7236
|
}
|
|
7206
|
-
const [keepOpen, setKeepOpen] =
|
|
7207
|
-
|
|
7237
|
+
const [keepOpen, setKeepOpen] = useState38(false);
|
|
7238
|
+
useEffect22(() => {
|
|
7208
7239
|
const handleClickOutside = (event) => {
|
|
7209
7240
|
if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
|
|
7210
7241
|
setOpenSideMenu(false);
|
|
@@ -7305,7 +7336,7 @@ var HawaSiteLayout = ({
|
|
|
7305
7336
|
};
|
|
7306
7337
|
|
|
7307
7338
|
// src/layout/AppLayout.tsx
|
|
7308
|
-
import React76, { useEffect as
|
|
7339
|
+
import React76, { useEffect as useEffect23, useRef as useRef15, useState as useState39 } from "react";
|
|
7309
7340
|
import clsx28 from "clsx";
|
|
7310
7341
|
|
|
7311
7342
|
// src/layout/Sidebar.tsx
|
|
@@ -7518,10 +7549,10 @@ var AppLayout = ({
|
|
|
7518
7549
|
lg: closeDrawerWidth
|
|
7519
7550
|
}
|
|
7520
7551
|
};
|
|
7521
|
-
const ref =
|
|
7552
|
+
const ref = useRef15(null);
|
|
7522
7553
|
const isRTL = direction === "rtl";
|
|
7523
|
-
const [openedSidebarItem, setOpenedSidebarItem] =
|
|
7524
|
-
const [selectedItem, setSelectedItem] =
|
|
7554
|
+
const [openedSidebarItem, setOpenedSidebarItem] = useState39("");
|
|
7555
|
+
const [selectedItem, setSelectedItem] = useState39(
|
|
7525
7556
|
currentPage ? currentPage : []
|
|
7526
7557
|
);
|
|
7527
7558
|
let size;
|
|
@@ -7530,10 +7561,10 @@ var AppLayout = ({
|
|
|
7530
7561
|
} else {
|
|
7531
7562
|
size = 1200;
|
|
7532
7563
|
}
|
|
7533
|
-
const [keepOpen, setKeepOpen] =
|
|
7534
|
-
const [openSideMenu, setOpenSideMenu] =
|
|
7564
|
+
const [keepOpen, setKeepOpen] = useState39(size > 600 ? true : false);
|
|
7565
|
+
const [openSideMenu, setOpenSideMenu] = useState39(size > 600 ? true : false);
|
|
7535
7566
|
let drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
|
|
7536
|
-
|
|
7567
|
+
useEffect23(() => {
|
|
7537
7568
|
const handleClickOutside = (event) => {
|
|
7538
7569
|
if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
|
|
7539
7570
|
setOpenSideMenu(false);
|
|
@@ -7823,7 +7854,7 @@ var AppLayout = ({
|
|
|
7823
7854
|
};
|
|
7824
7855
|
|
|
7825
7856
|
// src/layout/HawaAppLayout.tsx
|
|
7826
|
-
import React77, { useEffect as
|
|
7857
|
+
import React77, { useEffect as useEffect24, useRef as useRef16, useState as useState40 } from "react";
|
|
7827
7858
|
import clsx29 from "clsx";
|
|
7828
7859
|
import { FaChevronRight } from "react-icons/fa";
|
|
7829
7860
|
var HawaAppLayout = ({
|
|
@@ -7832,11 +7863,11 @@ var HawaAppLayout = ({
|
|
|
7832
7863
|
onSettingsClick,
|
|
7833
7864
|
...props
|
|
7834
7865
|
}) => {
|
|
7835
|
-
const [openSideMenu, setOpenSideMenu] =
|
|
7836
|
-
const [openSubItem, setOpenSubitem] =
|
|
7866
|
+
const [openSideMenu, setOpenSideMenu] = useState40(false);
|
|
7867
|
+
const [openSubItem, setOpenSubitem] = useState40("");
|
|
7837
7868
|
const { isOpen, onClose, onOpen } = useDiscloser_default(false);
|
|
7838
|
-
const [keepOpen, setKeepOpen] =
|
|
7839
|
-
const ref =
|
|
7869
|
+
const [keepOpen, setKeepOpen] = useState40(false);
|
|
7870
|
+
const ref = useRef16(null);
|
|
7840
7871
|
const isRTL = direction === "rtl";
|
|
7841
7872
|
let size;
|
|
7842
7873
|
if (typeof window !== "undefined") {
|
|
@@ -7844,7 +7875,7 @@ var HawaAppLayout = ({
|
|
|
7844
7875
|
} else {
|
|
7845
7876
|
size = 1200;
|
|
7846
7877
|
}
|
|
7847
|
-
|
|
7878
|
+
useEffect24(() => {
|
|
7848
7879
|
const handleClickOutside = (event) => {
|
|
7849
7880
|
if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
|
|
7850
7881
|
setOpenSideMenu(false);
|
|
@@ -8217,7 +8248,7 @@ var HawaAppLayout = ({
|
|
|
8217
8248
|
};
|
|
8218
8249
|
|
|
8219
8250
|
// src/layout/HawaAppLayoutSimplified.tsx
|
|
8220
|
-
import React78, { useEffect as
|
|
8251
|
+
import React78, { useEffect as useEffect25, useRef as useRef17, useState as useState41 } from "react";
|
|
8221
8252
|
import clsx30 from "clsx";
|
|
8222
8253
|
var HawaAppLayoutSimplified = ({
|
|
8223
8254
|
direction = "rtl",
|
|
@@ -8226,11 +8257,11 @@ var HawaAppLayoutSimplified = ({
|
|
|
8226
8257
|
DrawerFooterActions,
|
|
8227
8258
|
...props
|
|
8228
8259
|
}) => {
|
|
8229
|
-
const [openSideMenu, setOpenSideMenu] =
|
|
8230
|
-
const [openSubItem, setOpenSubitem] =
|
|
8260
|
+
const [openSideMenu, setOpenSideMenu] = useState41(false);
|
|
8261
|
+
const [openSubItem, setOpenSubitem] = useState41("");
|
|
8231
8262
|
const { isOpen, onClose, onOpen } = useDiscloser_default(false);
|
|
8232
|
-
const [keepOpen, setKeepOpen] =
|
|
8233
|
-
const ref =
|
|
8263
|
+
const [keepOpen, setKeepOpen] = useState41(false);
|
|
8264
|
+
const ref = useRef17(null);
|
|
8234
8265
|
const isRTL = direction === "rtl";
|
|
8235
8266
|
let size;
|
|
8236
8267
|
if (typeof window !== "undefined") {
|
|
@@ -8238,7 +8269,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8238
8269
|
} else {
|
|
8239
8270
|
size = 1200;
|
|
8240
8271
|
}
|
|
8241
|
-
|
|
8272
|
+
useEffect25(() => {
|
|
8242
8273
|
const handleClickOutside = (event) => {
|
|
8243
8274
|
if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
|
|
8244
8275
|
setOpenSideMenu(false);
|
|
@@ -8697,26 +8728,45 @@ var AppSidebar = ({ isOpen, onClose, items }) => {
|
|
|
8697
8728
|
// src/layout/Footer.tsx
|
|
8698
8729
|
import { BsInstagram, BsTwitter } from "react-icons/bs";
|
|
8699
8730
|
import { FaSnapchatGhost, FaTiktok } from "react-icons/fa";
|
|
8700
|
-
var Footer = ({
|
|
8701
|
-
|
|
8702
|
-
|
|
8731
|
+
var Footer = ({
|
|
8732
|
+
variation = "default",
|
|
8733
|
+
...props
|
|
8734
|
+
}) => {
|
|
8735
|
+
let variationStyles = {
|
|
8736
|
+
default: "rounded border",
|
|
8737
|
+
minimal: "border-t"
|
|
8738
|
+
};
|
|
8739
|
+
return /* @__PURE__ */ React.createElement(
|
|
8740
|
+
"div",
|
|
8703
8741
|
{
|
|
8704
|
-
className:
|
|
8705
|
-
|
|
8742
|
+
className: cn(
|
|
8743
|
+
"flex w-full flex-row items-center justify-between gap-8 rounded bg-background p-4",
|
|
8744
|
+
variationStyles[variation]
|
|
8745
|
+
)
|
|
8706
8746
|
},
|
|
8707
|
-
|
|
8708
|
-
|
|
8747
|
+
/* @__PURE__ */ React.createElement("div", { className: "flex flex-col items-center gap-2" }, /* @__PURE__ */ React.createElement("div", { className: "flex flex-row items-center gap-2" }, props.logoURL && /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("img", { className: "h-8", src: props.logoURL })), props.logoText && /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("div", { className: "text-2xl font-bold text-primary" }, props.logoText))), props.copyRights && props.footerLinks && /* @__PURE__ */ React.createElement("div", { className: "text-xs text-muted-foreground" }, "\xA9 ", props.copyRights, " ", (/* @__PURE__ */ new Date()).getFullYear())),
|
|
8748
|
+
props.copyRights && !props.footerLinks && /* @__PURE__ */ React.createElement("div", { className: "text-xs text-muted-foreground" }, "\xA9 ", props.copyRights, " ", (/* @__PURE__ */ new Date()).getFullYear()),
|
|
8749
|
+
props.footerLinks?.map((pagesSection) => /* @__PURE__ */ React.createElement("div", { className: "flex w-32 flex-col gap-2" }, /* @__PURE__ */ React.createElement("div", { className: "text-lg font-bold" }, pagesSection.title), /* @__PURE__ */ React.createElement("div", { className: "flex flex-col gap-1" }, pagesSection.pages.map((singlePage) => /* @__PURE__ */ React.createElement(
|
|
8750
|
+
"a",
|
|
8751
|
+
{
|
|
8752
|
+
className: "transition-all hover:font-bold",
|
|
8753
|
+
href: singlePage.link
|
|
8754
|
+
},
|
|
8755
|
+
singlePage.label
|
|
8756
|
+
))))),
|
|
8757
|
+
props.socialLinks && /* @__PURE__ */ React.createElement("div", { className: "flex flex-row gap-2" }, props.socialLinks.twitter && /* @__PURE__ */ React.createElement(Button, { size: "smallIcon", variant: "ghost" }, /* @__PURE__ */ React.createElement(BsTwitter, null)), props.socialLinks.instagram && /* @__PURE__ */ React.createElement(Button, { size: "smallIcon", variant: "ghost" }, /* @__PURE__ */ React.createElement(BsInstagram, null)), props.socialLinks.tiktok && /* @__PURE__ */ React.createElement(Button, { size: "smallIcon", variant: "ghost" }, /* @__PURE__ */ React.createElement(FaTiktok, null)), props.socialLinks.snapchat && /* @__PURE__ */ React.createElement(Button, { size: "smallIcon", variant: "ghost" }, /* @__PURE__ */ React.createElement(FaSnapchatGhost, null)))
|
|
8758
|
+
);
|
|
8709
8759
|
};
|
|
8710
8760
|
|
|
8711
8761
|
// src/layout/Banner.tsx
|
|
8712
|
-
import React82, { useRef as
|
|
8762
|
+
import React82, { useRef as useRef18, useState as useState42 } from "react";
|
|
8713
8763
|
import clsx32 from "clsx";
|
|
8714
8764
|
var HawaBanner = ({
|
|
8715
8765
|
design = "floating",
|
|
8716
8766
|
...props
|
|
8717
8767
|
}) => {
|
|
8718
|
-
const bannerRef =
|
|
8719
|
-
const [closed, setClosed] =
|
|
8768
|
+
const bannerRef = useRef18(null);
|
|
8769
|
+
const [closed, setClosed] = useState42(false);
|
|
8720
8770
|
let bannerStyle = {
|
|
8721
8771
|
floating: "left-1/2 z-50 w-[calc(100%-2rem)] -translate-x-1/2 lg:max-w-7xl p-4 rounded",
|
|
8722
8772
|
default: "w-[calc(100%)] left-0 z-50 right-0 rounded-none p-2"
|
|
@@ -9105,7 +9155,14 @@ var AppLanding = (props) => {
|
|
|
9105
9155
|
},
|
|
9106
9156
|
/* @__PURE__ */ React85.createElement(Icons.mail, { className: "h-4 w-4" }),
|
|
9107
9157
|
"Continue With Email"
|
|
9108
|
-
), /* @__PURE__ */ React85.createElement("
|
|
9158
|
+
), !props.withoutSignUp && /* @__PURE__ */ React85.createElement("div", { className: "p-3 text-center text-sm font-normal dark:text-gray-300" }, props.texts.newUserText, " ", /* @__PURE__ */ React85.createElement(
|
|
9159
|
+
"span",
|
|
9160
|
+
{
|
|
9161
|
+
onClick: props.handleRouteToSignUp,
|
|
9162
|
+
className: "clickable-link"
|
|
9163
|
+
},
|
|
9164
|
+
props.texts.createAccount
|
|
9165
|
+
)))), /* @__PURE__ */ React85.createElement("div", { className: "mt-6 flex flex-row justify-between" }, /* @__PURE__ */ React85.createElement(
|
|
9109
9166
|
HawaRadio,
|
|
9110
9167
|
{
|
|
9111
9168
|
onChangeTab: props.handleLanguage,
|
|
@@ -9169,7 +9226,7 @@ var AppLanding = (props) => {
|
|
|
9169
9226
|
};
|
|
9170
9227
|
|
|
9171
9228
|
// src/blocks/AuthForms/SignInPhone.tsx
|
|
9172
|
-
import React86, { useState as
|
|
9229
|
+
import React86, { useState as useState43 } from "react";
|
|
9173
9230
|
import { Controller as Controller2, useForm as useForm2 } from "react-hook-form";
|
|
9174
9231
|
var SignInPhone = (props) => {
|
|
9175
9232
|
const methods = useForm2();
|
|
@@ -9178,7 +9235,7 @@ var SignInPhone = (props) => {
|
|
|
9178
9235
|
handleSubmit,
|
|
9179
9236
|
control
|
|
9180
9237
|
} = methods;
|
|
9181
|
-
const [userPhone, setUserPhone] =
|
|
9238
|
+
const [userPhone, setUserPhone] = useState43("");
|
|
9182
9239
|
return /* @__PURE__ */ React86.createElement(Card, null, /* @__PURE__ */ React86.createElement(CardContent, { headless: true }, /* @__PURE__ */ React86.createElement(
|
|
9183
9240
|
"form",
|
|
9184
9241
|
{
|
|
@@ -9315,7 +9372,7 @@ var SignInForm = (props) => {
|
|
|
9315
9372
|
className: "mb-3 w-fit cursor-pointer text-xs dark:text-gray-300"
|
|
9316
9373
|
},
|
|
9317
9374
|
props.texts.forgotPasswordText
|
|
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-
|
|
9375
|
+
)), /* @__PURE__ */ React87.createElement(Button, { className: "mt-4 w-full", isLoading: props.isLoading }, props.texts.signInText), !props.withoutSignUp && /* @__PURE__ */ React87.createElement("div", { className: "p-3 text-center text-sm font-normal dark:text-gray-300" }, props.texts.newUserText, " ", /* @__PURE__ */ React87.createElement(
|
|
9319
9376
|
"span",
|
|
9320
9377
|
{
|
|
9321
9378
|
onClick: props.handleRouteToSignUp,
|
|
@@ -9593,7 +9650,7 @@ var SignUpForm = (props) => {
|
|
|
9593
9650
|
}
|
|
9594
9651
|
)
|
|
9595
9652
|
}
|
|
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-
|
|
9653
|
+
), /* @__PURE__ */ React88.createElement(Button, { className: "w-full", isLoading: props.isLoading }, props.texts.signUpText))), /* @__PURE__ */ React88.createElement("div", { className: "flex flex-row items-center justify-center gap-1 p-3 text-center text-sm font-normal dark:text-white" }, /* @__PURE__ */ React88.createElement("span", null, props.texts.existingUserText), /* @__PURE__ */ React88.createElement(
|
|
9597
9654
|
"span",
|
|
9598
9655
|
{
|
|
9599
9656
|
onClick: props.handleRouteToSignIn,
|
|
@@ -9649,10 +9706,10 @@ var SignUpForm = (props) => {
|
|
|
9649
9706
|
};
|
|
9650
9707
|
|
|
9651
9708
|
// src/blocks/AuthForms/NewPasswordForm.tsx
|
|
9652
|
-
import React89, { useState as
|
|
9709
|
+
import React89, { useState as useState44 } from "react";
|
|
9653
9710
|
import { Controller as Controller5, FormProvider as FormProvider3, useForm as useForm5 } from "react-hook-form";
|
|
9654
9711
|
var NewPasswordForm = (props) => {
|
|
9655
|
-
const [matchError, setMatchError] =
|
|
9712
|
+
const [matchError, setMatchError] = useState44(false);
|
|
9656
9713
|
const methods = useForm5();
|
|
9657
9714
|
const {
|
|
9658
9715
|
formState: { errors },
|
|
@@ -9760,9 +9817,9 @@ var ResetPasswordForm = (props) => {
|
|
|
9760
9817
|
};
|
|
9761
9818
|
|
|
9762
9819
|
// src/blocks/AuthForms/CodeConfirmation.tsx
|
|
9763
|
-
import React91, { useState as
|
|
9820
|
+
import React91, { useState as useState45 } from "react";
|
|
9764
9821
|
var CodeConfirmation = (props) => {
|
|
9765
|
-
const [pins, setPins] =
|
|
9822
|
+
const [pins, setPins] = useState45(null);
|
|
9766
9823
|
return /* @__PURE__ */ React91.createElement(Card, null, /* @__PURE__ */ React91.createElement(CardContent, { headless: true }, props.showError && /* @__PURE__ */ React91.createElement(
|
|
9767
9824
|
HawaAlert,
|
|
9768
9825
|
{
|
|
@@ -9786,11 +9843,32 @@ var CodeConfirmation = (props) => {
|
|
|
9786
9843
|
)));
|
|
9787
9844
|
};
|
|
9788
9845
|
|
|
9846
|
+
// src/blocks/AuthForms/CheckEmail.tsx
|
|
9847
|
+
import React92 from "react";
|
|
9848
|
+
var CheckEmail = ({ texts, handleResend }) => {
|
|
9849
|
+
return /* @__PURE__ */ React92.createElement(Card, null, /* @__PURE__ */ React92.createElement(CardContent, { headless: true }, /* @__PURE__ */ React92.createElement("div", { className: "flex flex-col items-center justify-center text-center" }, /* @__PURE__ */ React92.createElement("div", { className: "flex h-16 w-16 flex-col items-center justify-center rounded-3xl bg-primary text-6xl font-bold text-primary-foreground" }, /* @__PURE__ */ React92.createElement(
|
|
9850
|
+
"svg",
|
|
9851
|
+
{
|
|
9852
|
+
stroke: "currentColor",
|
|
9853
|
+
fill: "none",
|
|
9854
|
+
"stroke-width": "2",
|
|
9855
|
+
viewBox: "0 0 24 24",
|
|
9856
|
+
"stroke-linecap": "round",
|
|
9857
|
+
"stroke-linejoin": "round",
|
|
9858
|
+
height: "0.5em",
|
|
9859
|
+
width: "0.5em",
|
|
9860
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9861
|
+
},
|
|
9862
|
+
/* @__PURE__ */ React92.createElement("path", { d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" }),
|
|
9863
|
+
/* @__PURE__ */ React92.createElement("polyline", { points: "22,6 12,13 2,6" })
|
|
9864
|
+
)), /* @__PURE__ */ React92.createElement("div", { className: "m-2 text-xl font-bold" }, texts?.checkEmail ?? "Check you email"), /* @__PURE__ */ React92.createElement("div", { className: "text-sm" }, texts?.pleaseVerify ?? "Thank you for signing up! To complete your registration, we've sent a verification email to the address you provided. Please check your inbox and follow the instructions in the email to activate your account."))), /* @__PURE__ */ React92.createElement(CardFooter, { className: "flex flex-col justify-center " }, /* @__PURE__ */ React92.createElement("span", { className: "clickable-link text-sm", onClick: handleResend }, texts?.resendEmail ?? "Resend Email")));
|
|
9865
|
+
};
|
|
9866
|
+
|
|
9789
9867
|
// src/blocks/Payment/SelectPayment.tsx
|
|
9790
|
-
import
|
|
9868
|
+
import React93, { useState as useState47 } from "react";
|
|
9791
9869
|
var SelectPayment = (props) => {
|
|
9792
|
-
const [selectedMethod, setSelectedMethod] =
|
|
9793
|
-
return /* @__PURE__ */
|
|
9870
|
+
const [selectedMethod, setSelectedMethod] = useState47("");
|
|
9871
|
+
return /* @__PURE__ */ React93.createElement(Card, null, /* @__PURE__ */ React93.createElement(CardHeader, null, /* @__PURE__ */ React93.createElement(CardTitle, null, "Choose Payment Method"), /* @__PURE__ */ React93.createElement(CardDescription, null, "And you'll be directed to the next step to complete the payment")), /* @__PURE__ */ React93.createElement(CardContent, { className: "grid grid-cols-2 gap-4" }, /* @__PURE__ */ React93.createElement(
|
|
9794
9872
|
Button,
|
|
9795
9873
|
{
|
|
9796
9874
|
className: cn(
|
|
@@ -9802,15 +9880,15 @@ var SelectPayment = (props) => {
|
|
|
9802
9880
|
disabled: !props.viaMada,
|
|
9803
9881
|
onClick: () => setSelectedMethod("mada")
|
|
9804
9882
|
},
|
|
9805
|
-
/* @__PURE__ */
|
|
9883
|
+
/* @__PURE__ */ React93.createElement(
|
|
9806
9884
|
"img",
|
|
9807
9885
|
{
|
|
9808
9886
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/mada.png",
|
|
9809
9887
|
className: "h-6"
|
|
9810
9888
|
}
|
|
9811
9889
|
),
|
|
9812
|
-
/* @__PURE__ */
|
|
9813
|
-
), /* @__PURE__ */
|
|
9890
|
+
/* @__PURE__ */ React93.createElement("span", null, props.madaLabel)
|
|
9891
|
+
), /* @__PURE__ */ React93.createElement(
|
|
9814
9892
|
Button,
|
|
9815
9893
|
{
|
|
9816
9894
|
className: cn(
|
|
@@ -9822,15 +9900,15 @@ var SelectPayment = (props) => {
|
|
|
9822
9900
|
disabled: !props.viaApplePay,
|
|
9823
9901
|
onClick: () => setSelectedMethod("apple-pay")
|
|
9824
9902
|
},
|
|
9825
|
-
/* @__PURE__ */
|
|
9903
|
+
/* @__PURE__ */ React93.createElement(
|
|
9826
9904
|
"img",
|
|
9827
9905
|
{
|
|
9828
9906
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/apple-pay.png",
|
|
9829
9907
|
className: "h-11"
|
|
9830
9908
|
}
|
|
9831
9909
|
),
|
|
9832
|
-
/* @__PURE__ */
|
|
9833
|
-
), /* @__PURE__ */
|
|
9910
|
+
/* @__PURE__ */ React93.createElement("span", null, props.applePayLabel)
|
|
9911
|
+
), /* @__PURE__ */ React93.createElement(
|
|
9834
9912
|
Button,
|
|
9835
9913
|
{
|
|
9836
9914
|
className: cn(
|
|
@@ -9842,15 +9920,15 @@ var SelectPayment = (props) => {
|
|
|
9842
9920
|
disabled: !props.viaCreditCard,
|
|
9843
9921
|
onClick: () => setSelectedMethod("visa-master")
|
|
9844
9922
|
},
|
|
9845
|
-
/* @__PURE__ */
|
|
9923
|
+
/* @__PURE__ */ React93.createElement(
|
|
9846
9924
|
"img",
|
|
9847
9925
|
{
|
|
9848
9926
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/visa-master.png",
|
|
9849
9927
|
className: "h-6"
|
|
9850
9928
|
}
|
|
9851
9929
|
),
|
|
9852
|
-
/* @__PURE__ */
|
|
9853
|
-
), /* @__PURE__ */
|
|
9930
|
+
/* @__PURE__ */ React93.createElement("span", null, props.visaMasterLabel)
|
|
9931
|
+
), /* @__PURE__ */ React93.createElement(
|
|
9854
9932
|
Button,
|
|
9855
9933
|
{
|
|
9856
9934
|
variant: "outline",
|
|
@@ -9862,7 +9940,7 @@ var SelectPayment = (props) => {
|
|
|
9862
9940
|
disabled: !props.viaWallet,
|
|
9863
9941
|
onClick: () => setSelectedMethod("wallet")
|
|
9864
9942
|
},
|
|
9865
|
-
/* @__PURE__ */
|
|
9943
|
+
/* @__PURE__ */ React93.createElement(
|
|
9866
9944
|
"svg",
|
|
9867
9945
|
{
|
|
9868
9946
|
version: "1.1",
|
|
@@ -9870,20 +9948,20 @@ var SelectPayment = (props) => {
|
|
|
9870
9948
|
viewBox: "0 0 223 223",
|
|
9871
9949
|
className: "h-6 w-6"
|
|
9872
9950
|
},
|
|
9873
|
-
/* @__PURE__ */
|
|
9951
|
+
/* @__PURE__ */ React93.createElement("g", null, /* @__PURE__ */ React93.createElement(
|
|
9874
9952
|
"path",
|
|
9875
9953
|
{
|
|
9876
9954
|
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"
|
|
9877
9955
|
}
|
|
9878
|
-
), /* @__PURE__ */
|
|
9956
|
+
), /* @__PURE__ */ React93.createElement(
|
|
9879
9957
|
"path",
|
|
9880
9958
|
{
|
|
9881
9959
|
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"
|
|
9882
9960
|
}
|
|
9883
9961
|
))
|
|
9884
9962
|
),
|
|
9885
|
-
/* @__PURE__ */
|
|
9886
|
-
), /* @__PURE__ */
|
|
9963
|
+
/* @__PURE__ */ React93.createElement("span", null, props.walletLabel)
|
|
9964
|
+
), /* @__PURE__ */ React93.createElement(
|
|
9887
9965
|
Button,
|
|
9888
9966
|
{
|
|
9889
9967
|
variant: "outline",
|
|
@@ -9895,15 +9973,15 @@ var SelectPayment = (props) => {
|
|
|
9895
9973
|
disabled: !props.viaSTCPay,
|
|
9896
9974
|
onClick: () => setSelectedMethod("stc-pay")
|
|
9897
9975
|
},
|
|
9898
|
-
/* @__PURE__ */
|
|
9976
|
+
/* @__PURE__ */ React93.createElement(
|
|
9899
9977
|
"img",
|
|
9900
9978
|
{
|
|
9901
9979
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/stc-pay.png",
|
|
9902
9980
|
className: "h-6"
|
|
9903
9981
|
}
|
|
9904
9982
|
),
|
|
9905
|
-
/* @__PURE__ */
|
|
9906
|
-
), /* @__PURE__ */
|
|
9983
|
+
/* @__PURE__ */ React93.createElement("span", null, props.stcPayLabel)
|
|
9984
|
+
), /* @__PURE__ */ React93.createElement(
|
|
9907
9985
|
Button,
|
|
9908
9986
|
{
|
|
9909
9987
|
variant: "outline",
|
|
@@ -9915,15 +9993,15 @@ var SelectPayment = (props) => {
|
|
|
9915
9993
|
disabled: !props.viaGooglePay,
|
|
9916
9994
|
onClick: () => setSelectedMethod("google-pay")
|
|
9917
9995
|
},
|
|
9918
|
-
/* @__PURE__ */
|
|
9996
|
+
/* @__PURE__ */ React93.createElement(
|
|
9919
9997
|
"img",
|
|
9920
9998
|
{
|
|
9921
9999
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/google-pay.png",
|
|
9922
10000
|
className: "h-6"
|
|
9923
10001
|
}
|
|
9924
10002
|
),
|
|
9925
|
-
/* @__PURE__ */
|
|
9926
|
-
), /* @__PURE__ */
|
|
10003
|
+
/* @__PURE__ */ React93.createElement("span", null, props.googlePayLabel)
|
|
10004
|
+
), /* @__PURE__ */ React93.createElement(
|
|
9927
10005
|
Button,
|
|
9928
10006
|
{
|
|
9929
10007
|
variant: "outline",
|
|
@@ -9935,15 +10013,15 @@ var SelectPayment = (props) => {
|
|
|
9935
10013
|
disabled: !props.viaPayPal,
|
|
9936
10014
|
onClick: () => setSelectedMethod("paypal")
|
|
9937
10015
|
},
|
|
9938
|
-
/* @__PURE__ */
|
|
10016
|
+
/* @__PURE__ */ React93.createElement(
|
|
9939
10017
|
"img",
|
|
9940
10018
|
{
|
|
9941
10019
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/paypal.png",
|
|
9942
10020
|
className: "h-6"
|
|
9943
10021
|
}
|
|
9944
10022
|
),
|
|
9945
|
-
/* @__PURE__ */
|
|
9946
|
-
)), /* @__PURE__ */
|
|
10023
|
+
/* @__PURE__ */ React93.createElement("span", null, props.paypalLabel)
|
|
10024
|
+
)), /* @__PURE__ */ React93.createElement(CardFooter, null, /* @__PURE__ */ React93.createElement(
|
|
9947
10025
|
Button,
|
|
9948
10026
|
{
|
|
9949
10027
|
onClick: () => props.handleContinue(selectedMethod),
|
|
@@ -9955,7 +10033,7 @@ var SelectPayment = (props) => {
|
|
|
9955
10033
|
};
|
|
9956
10034
|
|
|
9957
10035
|
// src/blocks/Payment/CreditCardForm.tsx
|
|
9958
|
-
import
|
|
10036
|
+
import React94 from "react";
|
|
9959
10037
|
import { Controller as Controller7, useForm as useForm7 } from "react-hook-form";
|
|
9960
10038
|
var CreditCardForm = (props) => {
|
|
9961
10039
|
const methods = useForm7();
|
|
@@ -9964,41 +10042,41 @@ var CreditCardForm = (props) => {
|
|
|
9964
10042
|
handleSubmit,
|
|
9965
10043
|
control
|
|
9966
10044
|
} = methods;
|
|
9967
|
-
return /* @__PURE__ */
|
|
10045
|
+
return /* @__PURE__ */ React94.createElement(Card, null, /* @__PURE__ */ React94.createElement("form", { onSubmit: handleSubmit(props.handle) }, /* @__PURE__ */ React94.createElement(CardContent, { headless: true }, /* @__PURE__ */ React94.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ React94.createElement(
|
|
9968
10046
|
Controller7,
|
|
9969
10047
|
{
|
|
9970
10048
|
control,
|
|
9971
10049
|
name: "cardName",
|
|
9972
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10050
|
+
render: ({ field }) => /* @__PURE__ */ React94.createElement(
|
|
9973
10051
|
HawaTextField,
|
|
9974
10052
|
{
|
|
9975
10053
|
width: "full",
|
|
9976
|
-
name: "
|
|
9977
|
-
placeholder: "
|
|
9978
|
-
type: "
|
|
10054
|
+
name: "cardNumber",
|
|
10055
|
+
placeholder: "1234 1234 1234 1234",
|
|
10056
|
+
type: "number",
|
|
9979
10057
|
label: "Card Number",
|
|
9980
10058
|
helpertext: errors.password?.message
|
|
9981
10059
|
}
|
|
9982
10060
|
),
|
|
9983
10061
|
rules: {
|
|
9984
|
-
required: "
|
|
10062
|
+
required: "Card Number is rquired"
|
|
9985
10063
|
}
|
|
9986
10064
|
}
|
|
9987
|
-
), /* @__PURE__ */
|
|
10065
|
+
), /* @__PURE__ */ React94.createElement("div", { className: "w-1/4" }, /* @__PURE__ */ React94.createElement(
|
|
9988
10066
|
Controller7,
|
|
9989
10067
|
{
|
|
9990
10068
|
control,
|
|
9991
|
-
name: "
|
|
9992
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10069
|
+
name: "cardCVC",
|
|
10070
|
+
render: ({ field }) => /* @__PURE__ */ React94.createElement(
|
|
9993
10071
|
HawaTextField,
|
|
9994
10072
|
{
|
|
9995
10073
|
width: "full",
|
|
9996
|
-
name: "
|
|
10074
|
+
name: "cardCVC",
|
|
9997
10075
|
maxLength: "3",
|
|
9998
10076
|
autoComplete: "cc-number",
|
|
9999
|
-
placeholder: "",
|
|
10000
|
-
type: "
|
|
10001
|
-
label: "
|
|
10077
|
+
placeholder: "CVC",
|
|
10078
|
+
type: "number",
|
|
10079
|
+
label: "CVC",
|
|
10002
10080
|
helpertext: errors.password?.message
|
|
10003
10081
|
}
|
|
10004
10082
|
),
|
|
@@ -10006,19 +10084,19 @@ var CreditCardForm = (props) => {
|
|
|
10006
10084
|
required: "Password is rquired"
|
|
10007
10085
|
}
|
|
10008
10086
|
}
|
|
10009
|
-
))), /* @__PURE__ */
|
|
10087
|
+
))), /* @__PURE__ */ React94.createElement(
|
|
10010
10088
|
Controller7,
|
|
10011
10089
|
{
|
|
10012
10090
|
control,
|
|
10013
|
-
name: "
|
|
10014
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10091
|
+
name: "cardExpiry",
|
|
10092
|
+
render: ({ field }) => /* @__PURE__ */ React94.createElement(
|
|
10015
10093
|
HawaTextField,
|
|
10016
10094
|
{
|
|
10017
10095
|
width: "full",
|
|
10018
|
-
name: "
|
|
10019
|
-
placeholder: "
|
|
10020
|
-
type: "
|
|
10021
|
-
label: "
|
|
10096
|
+
name: "cardExpiry",
|
|
10097
|
+
placeholder: "MM / YY",
|
|
10098
|
+
type: "password",
|
|
10099
|
+
label: "Expiry Date",
|
|
10022
10100
|
helpertext: errors.password?.message
|
|
10023
10101
|
}
|
|
10024
10102
|
),
|
|
@@ -10026,44 +10104,43 @@ var CreditCardForm = (props) => {
|
|
|
10026
10104
|
required: "Password is rquired"
|
|
10027
10105
|
}
|
|
10028
10106
|
}
|
|
10029
|
-
), /* @__PURE__ */
|
|
10107
|
+
), /* @__PURE__ */ React94.createElement(
|
|
10030
10108
|
Controller7,
|
|
10031
10109
|
{
|
|
10032
10110
|
control,
|
|
10033
10111
|
name: "cardName",
|
|
10034
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10112
|
+
render: ({ field }) => /* @__PURE__ */ React94.createElement(
|
|
10035
10113
|
HawaTextField,
|
|
10036
10114
|
{
|
|
10037
10115
|
width: "full",
|
|
10038
|
-
name: "
|
|
10039
|
-
|
|
10040
|
-
|
|
10041
|
-
label: "Expiry Date",
|
|
10116
|
+
name: "cardName",
|
|
10117
|
+
type: "text",
|
|
10118
|
+
label: "Name on card",
|
|
10042
10119
|
helpertext: errors.password?.message
|
|
10043
10120
|
}
|
|
10044
10121
|
),
|
|
10045
10122
|
rules: {
|
|
10046
|
-
required: "
|
|
10123
|
+
required: "Card holder name is rquired"
|
|
10047
10124
|
}
|
|
10048
10125
|
}
|
|
10049
|
-
)), /* @__PURE__ */
|
|
10126
|
+
)), /* @__PURE__ */ React94.createElement(CardFooter, null, /* @__PURE__ */ React94.createElement(Button, { className: "w-full", onClick: props.handlePayWithCreditCard }, "Pay with Credit Card"))));
|
|
10050
10127
|
};
|
|
10051
10128
|
|
|
10052
10129
|
// src/blocks/Payment/ChargeWalletForm.tsx
|
|
10053
|
-
import
|
|
10130
|
+
import React95, { useState as useState48 } from "react";
|
|
10054
10131
|
var ChargeWalletForm = (props) => {
|
|
10055
|
-
const [walletAmount, setWalletAmount] =
|
|
10056
|
-
return /* @__PURE__ */
|
|
10132
|
+
const [walletAmount, setWalletAmount] = useState48(0);
|
|
10133
|
+
return /* @__PURE__ */ React95.createElement(Card, null, /* @__PURE__ */ React95.createElement(CardContent, { headless: true }, /* @__PURE__ */ React95.createElement("div", { className: "p-4 text-center" }, /* @__PURE__ */ React95.createElement("div", { className: " text-5xl font-extrabold" }, Number(walletAmount).toLocaleString("en") || "0"), /* @__PURE__ */ React95.createElement("div", { className: "text-sm font-normal" }, props.currency || "SAR")), /* @__PURE__ */ React95.createElement("div", { className: "mb-2 flex w-full flex-col gap-4 text-center" }, /* @__PURE__ */ React95.createElement("div", { className: "mb-2 flex w-full flex-row gap-4 text-center" }, /* @__PURE__ */ React95.createElement(Button, { variant: "outline", className: "h-full w-full" }, "10 SAR"), /* @__PURE__ */ React95.createElement(Button, { variant: "outline", className: "h-full w-full" }, "50 SAR"), /* @__PURE__ */ React95.createElement(Button, { variant: "outline", className: "h-full w-full" }, "100 SAR")), /* @__PURE__ */ React95.createElement(Input, { placeholder: "Custom Amount", type: "number", name: "amount" })), /* @__PURE__ */ React95.createElement(Button, { className: "mt-6 w-full" }, props.texts.chargeWallet)));
|
|
10057
10134
|
};
|
|
10058
10135
|
|
|
10059
10136
|
// src/blocks/Payment/PayWithWallet.tsx
|
|
10060
|
-
import
|
|
10137
|
+
import React96 from "react";
|
|
10061
10138
|
var PayWithWallet = (props) => {
|
|
10062
|
-
return /* @__PURE__ */
|
|
10139
|
+
return /* @__PURE__ */ React96.createElement(Card, null, /* @__PURE__ */ React96.createElement(CardContent, { headless: true }, /* @__PURE__ */ React96.createElement("div", { className: "text-center text-5xl font-extrabold" }, props.walletBalance || "0", /* @__PURE__ */ React96.createElement("div", { className: "text-sm font-normal" }, props.currency || "SAR")), /* @__PURE__ */ React96.createElement(Button, { className: "mt-6 w-full", onClick: props.handlePayWithWallet }, "Pay Now")));
|
|
10063
10140
|
};
|
|
10064
10141
|
|
|
10065
10142
|
// src/blocks/Payment/CheckoutForm.tsx
|
|
10066
|
-
import
|
|
10143
|
+
import React97 from "react";
|
|
10067
10144
|
import { Controller as Controller8, FormProvider as FormProvider4, useForm as useForm8 } from "react-hook-form";
|
|
10068
10145
|
var CheckoutForm = (props) => {
|
|
10069
10146
|
let isArabic = props.lang === "ar";
|
|
@@ -10087,7 +10164,7 @@ var CheckoutForm = (props) => {
|
|
|
10087
10164
|
xl: "row"
|
|
10088
10165
|
}
|
|
10089
10166
|
};
|
|
10090
|
-
return /* @__PURE__ */
|
|
10167
|
+
return /* @__PURE__ */ React97.createElement(Card, null, /* @__PURE__ */ React97.createElement(CardHeader, null, /* @__PURE__ */ React97.createElement(CardTitle, null, props.texts.orderDetails)), /* @__PURE__ */ React97.createElement(CardContent, null, /* @__PURE__ */ React97.createElement("div", null, /* @__PURE__ */ React97.createElement("div", { className: "rounded border border-gray-300" }, /* @__PURE__ */ React97.createElement(
|
|
10091
10168
|
HawaTable,
|
|
10092
10169
|
{
|
|
10093
10170
|
pagination: false,
|
|
@@ -10101,13 +10178,13 @@ var CheckoutForm = (props) => {
|
|
|
10101
10178
|
rows: props.products,
|
|
10102
10179
|
bordersWidth: "1"
|
|
10103
10180
|
}
|
|
10104
|
-
)))), /* @__PURE__ */
|
|
10181
|
+
)))), /* @__PURE__ */ React97.createElement(CardHeader, null, /* @__PURE__ */ React97.createElement(CardTitle, null, props.texts.billingAddress)), /* @__PURE__ */ React97.createElement("form", { onSubmit: handleSubmit(props.handlePayNow) }, /* @__PURE__ */ React97.createElement(CardContent, null, /* @__PURE__ */ React97.createElement("div", null, /* @__PURE__ */ React97.createElement(FormProvider4, { ...methods }, /* @__PURE__ */ React97.createElement("div", null, /* @__PURE__ */ React97.createElement(
|
|
10105
10182
|
Controller8,
|
|
10106
10183
|
{
|
|
10107
10184
|
control,
|
|
10108
10185
|
name: "firstName",
|
|
10109
10186
|
rules: { required: props.texts?.required },
|
|
10110
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10187
|
+
render: ({ field }) => /* @__PURE__ */ React97.createElement(
|
|
10111
10188
|
HawaTextField,
|
|
10112
10189
|
{
|
|
10113
10190
|
type: "text",
|
|
@@ -10118,13 +10195,13 @@ var CheckoutForm = (props) => {
|
|
|
10118
10195
|
}
|
|
10119
10196
|
)
|
|
10120
10197
|
}
|
|
10121
|
-
), /* @__PURE__ */
|
|
10198
|
+
), /* @__PURE__ */ React97.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React97.createElement(
|
|
10122
10199
|
Controller8,
|
|
10123
10200
|
{
|
|
10124
10201
|
control,
|
|
10125
10202
|
name: "lastName",
|
|
10126
10203
|
rules: { required: props.texts?.required },
|
|
10127
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10204
|
+
render: ({ field }) => /* @__PURE__ */ React97.createElement(
|
|
10128
10205
|
HawaTextField,
|
|
10129
10206
|
{
|
|
10130
10207
|
width: "full",
|
|
@@ -10136,12 +10213,12 @@ var CheckoutForm = (props) => {
|
|
|
10136
10213
|
}
|
|
10137
10214
|
)
|
|
10138
10215
|
}
|
|
10139
|
-
)), /* @__PURE__ */
|
|
10216
|
+
)), /* @__PURE__ */ React97.createElement(
|
|
10140
10217
|
Controller8,
|
|
10141
10218
|
{
|
|
10142
10219
|
control,
|
|
10143
10220
|
name: "email",
|
|
10144
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10221
|
+
render: ({ field }) => /* @__PURE__ */ React97.createElement(
|
|
10145
10222
|
HawaTextField,
|
|
10146
10223
|
{
|
|
10147
10224
|
width: "full",
|
|
@@ -10160,13 +10237,13 @@ var CheckoutForm = (props) => {
|
|
|
10160
10237
|
}
|
|
10161
10238
|
}
|
|
10162
10239
|
}
|
|
10163
|
-
), /* @__PURE__ */
|
|
10240
|
+
), /* @__PURE__ */ React97.createElement("div", { className: "flex flex-col md:flex-row" }, /* @__PURE__ */ React97.createElement(
|
|
10164
10241
|
Controller8,
|
|
10165
10242
|
{
|
|
10166
10243
|
control,
|
|
10167
10244
|
name: "streetAddress",
|
|
10168
10245
|
rules: { required: props.texts?.required },
|
|
10169
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10246
|
+
render: ({ field }) => /* @__PURE__ */ React97.createElement(
|
|
10170
10247
|
HawaTextField,
|
|
10171
10248
|
{
|
|
10172
10249
|
width: "full",
|
|
@@ -10178,13 +10255,13 @@ var CheckoutForm = (props) => {
|
|
|
10178
10255
|
}
|
|
10179
10256
|
)
|
|
10180
10257
|
}
|
|
10181
|
-
)), /* @__PURE__ */
|
|
10258
|
+
)), /* @__PURE__ */ React97.createElement("div", { className: "flex flex-col md:flex-row" }, /* @__PURE__ */ React97.createElement(
|
|
10182
10259
|
Controller8,
|
|
10183
10260
|
{
|
|
10184
10261
|
control,
|
|
10185
10262
|
name: "province",
|
|
10186
10263
|
rules: { required: props.texts?.required },
|
|
10187
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10264
|
+
render: ({ field }) => /* @__PURE__ */ React97.createElement(
|
|
10188
10265
|
HawaTextField,
|
|
10189
10266
|
{
|
|
10190
10267
|
width: "full",
|
|
@@ -10196,13 +10273,13 @@ var CheckoutForm = (props) => {
|
|
|
10196
10273
|
}
|
|
10197
10274
|
)
|
|
10198
10275
|
}
|
|
10199
|
-
), /* @__PURE__ */
|
|
10276
|
+
), /* @__PURE__ */ React97.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React97.createElement(
|
|
10200
10277
|
Controller8,
|
|
10201
10278
|
{
|
|
10202
10279
|
control,
|
|
10203
10280
|
name: "city",
|
|
10204
10281
|
rules: { required: props.texts?.required },
|
|
10205
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10282
|
+
render: ({ field }) => /* @__PURE__ */ React97.createElement(
|
|
10206
10283
|
HawaTextField,
|
|
10207
10284
|
{
|
|
10208
10285
|
width: "full",
|
|
@@ -10214,13 +10291,13 @@ var CheckoutForm = (props) => {
|
|
|
10214
10291
|
}
|
|
10215
10292
|
)
|
|
10216
10293
|
}
|
|
10217
|
-
)), /* @__PURE__ */
|
|
10294
|
+
)), /* @__PURE__ */ React97.createElement("div", { className: "flex flex-col md:flex-row" }, /* @__PURE__ */ React97.createElement(
|
|
10218
10295
|
Controller8,
|
|
10219
10296
|
{
|
|
10220
10297
|
control,
|
|
10221
10298
|
name: "buildingNumber",
|
|
10222
10299
|
rules: { required: props.texts?.required },
|
|
10223
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10300
|
+
render: ({ field }) => /* @__PURE__ */ React97.createElement(
|
|
10224
10301
|
HawaTextField,
|
|
10225
10302
|
{
|
|
10226
10303
|
width: "full",
|
|
@@ -10232,13 +10309,13 @@ var CheckoutForm = (props) => {
|
|
|
10232
10309
|
}
|
|
10233
10310
|
)
|
|
10234
10311
|
}
|
|
10235
|
-
), /* @__PURE__ */
|
|
10312
|
+
), /* @__PURE__ */ React97.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React97.createElement(
|
|
10236
10313
|
Controller8,
|
|
10237
10314
|
{
|
|
10238
10315
|
control,
|
|
10239
10316
|
name: "zipCode",
|
|
10240
10317
|
rules: { required: props.texts?.required },
|
|
10241
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10318
|
+
render: ({ field }) => /* @__PURE__ */ React97.createElement(
|
|
10242
10319
|
HawaTextField,
|
|
10243
10320
|
{
|
|
10244
10321
|
width: "full",
|
|
@@ -10250,13 +10327,13 @@ var CheckoutForm = (props) => {
|
|
|
10250
10327
|
}
|
|
10251
10328
|
)
|
|
10252
10329
|
}
|
|
10253
|
-
)), /* @__PURE__ */
|
|
10330
|
+
)), /* @__PURE__ */ React97.createElement("div", { className: "mb-3" }, /* @__PURE__ */ React97.createElement(
|
|
10254
10331
|
Controller8,
|
|
10255
10332
|
{
|
|
10256
10333
|
control,
|
|
10257
10334
|
name: "country",
|
|
10258
10335
|
rules: { required: props.texts?.required },
|
|
10259
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10336
|
+
render: ({ field }) => /* @__PURE__ */ React97.createElement(
|
|
10260
10337
|
HawaSelect,
|
|
10261
10338
|
{
|
|
10262
10339
|
native: true,
|
|
@@ -10267,18 +10344,18 @@ var CheckoutForm = (props) => {
|
|
|
10267
10344
|
onChange: (e) => field.onChange(e.country_label),
|
|
10268
10345
|
value: field.value ?? ""
|
|
10269
10346
|
},
|
|
10270
|
-
/* @__PURE__ */
|
|
10271
|
-
props.countriesList.map((country, i) => /* @__PURE__ */
|
|
10347
|
+
/* @__PURE__ */ React97.createElement("option", null),
|
|
10348
|
+
props.countriesList.map((country, i) => /* @__PURE__ */ React97.createElement("option", { key: i }, country))
|
|
10272
10349
|
)
|
|
10273
10350
|
}
|
|
10274
|
-
))))), /* @__PURE__ */
|
|
10351
|
+
))))), /* @__PURE__ */ React97.createElement(CardFooter, null, /* @__PURE__ */ React97.createElement(Button, { className: "w-full" }, props.texts.payNow)), " "));
|
|
10275
10352
|
};
|
|
10276
10353
|
|
|
10277
10354
|
// src/blocks/Payment/Confirmation.tsx
|
|
10278
|
-
import
|
|
10355
|
+
import React98 from "react";
|
|
10279
10356
|
var ConfirmationPage = (props) => {
|
|
10280
10357
|
let isArabic = props.lang === "ar";
|
|
10281
|
-
return /* @__PURE__ */
|
|
10358
|
+
return /* @__PURE__ */ React98.createElement(Card, null, /* @__PURE__ */ React98.createElement(CardContent, { headless: true }, " ", /* @__PURE__ */ React98.createElement("div", { className: "py-5 text-center text-3xl font-bold dark:text-white" }, props.confirmationTitle), /* @__PURE__ */ React98.createElement("div", { className: "py-5 dark:text-white" }, /* @__PURE__ */ React98.createElement("div", { className: "mb-2 text-center" }, props.texts.successMessage, " ", /* @__PURE__ */ React98.createElement("strong", null, props.userEmail)), /* @__PURE__ */ React98.createElement("div", { className: "text-center" }, props.texts.yourOrderNumber), /* @__PURE__ */ React98.createElement("div", { className: "text-center font-bold" }, props.orderNumber)), /* @__PURE__ */ React98.createElement("div", { className: "flex flex-col items-center justify-center gap-4 py-5 pt-0" }, /* @__PURE__ */ React98.createElement(Button, { className: "w-full", onClick: props.handlePrint }, props.texts.print), /* @__PURE__ */ React98.createElement(Button, { className: "w-full", onClick: props.handleHistory }, props.texts.history), /* @__PURE__ */ React98.createElement(Button, { className: "w-full", onClick: props.handleHome }, props.texts.homePage), /* @__PURE__ */ React98.createElement("div", { className: " text-center text-sm dark:text-white" }, props.texts.fasterPaymentNote), /* @__PURE__ */ React98.createElement(
|
|
10282
10359
|
"a",
|
|
10283
10360
|
{
|
|
10284
10361
|
className: "clickable-link text-xs",
|
|
@@ -10289,9 +10366,9 @@ var ConfirmationPage = (props) => {
|
|
|
10289
10366
|
};
|
|
10290
10367
|
|
|
10291
10368
|
// src/blocks/Pricing/PricingPlans.tsx
|
|
10292
|
-
import
|
|
10369
|
+
import React99 from "react";
|
|
10293
10370
|
var PricingPlans = (props) => {
|
|
10294
|
-
return /* @__PURE__ */
|
|
10371
|
+
return /* @__PURE__ */ React99.createElement("div", null, /* @__PURE__ */ React99.createElement("div", { className: "mb-2 flex w-full justify-between" }, /* @__PURE__ */ React99.createElement(
|
|
10295
10372
|
HawaRadio,
|
|
10296
10373
|
{
|
|
10297
10374
|
design: "tabs",
|
|
@@ -10299,7 +10376,7 @@ var PricingPlans = (props) => {
|
|
|
10299
10376
|
options: props.billingCycles,
|
|
10300
10377
|
onChangeTab: (e) => props.onCycleChange(e)
|
|
10301
10378
|
}
|
|
10302
|
-
), /* @__PURE__ */
|
|
10379
|
+
), /* @__PURE__ */ React99.createElement(
|
|
10303
10380
|
HawaRadio,
|
|
10304
10381
|
{
|
|
10305
10382
|
design: "tabs",
|
|
@@ -10307,8 +10384,8 @@ var PricingPlans = (props) => {
|
|
|
10307
10384
|
options: props.currencies,
|
|
10308
10385
|
onChangeTab: (e) => props.onCurrencyChange(e)
|
|
10309
10386
|
}
|
|
10310
|
-
)), /* @__PURE__ */
|
|
10311
|
-
return /* @__PURE__ */
|
|
10387
|
+
)), /* @__PURE__ */ React99.createElement("div", { className: "flex flex-row justify-between" }, props.plans.map((plan, index) => {
|
|
10388
|
+
return /* @__PURE__ */ React99.createElement(
|
|
10312
10389
|
HawaPricingCard,
|
|
10313
10390
|
{
|
|
10314
10391
|
key: index,
|
|
@@ -10325,8 +10402,8 @@ var PricingPlans = (props) => {
|
|
|
10325
10402
|
};
|
|
10326
10403
|
|
|
10327
10404
|
// src/blocks/Pricing/ComparingPlans.tsx
|
|
10328
|
-
import
|
|
10329
|
-
var CheckMark = () => /* @__PURE__ */
|
|
10405
|
+
import React100, { useState as useState49 } from "react";
|
|
10406
|
+
var CheckMark = () => /* @__PURE__ */ React100.createElement(
|
|
10330
10407
|
"svg",
|
|
10331
10408
|
{
|
|
10332
10409
|
className: "h-5 w-5 text-green-500",
|
|
@@ -10334,7 +10411,7 @@ var CheckMark = () => /* @__PURE__ */ React99.createElement(
|
|
|
10334
10411
|
fill: "currentColor",
|
|
10335
10412
|
viewBox: "0 0 20 20"
|
|
10336
10413
|
},
|
|
10337
|
-
/* @__PURE__ */
|
|
10414
|
+
/* @__PURE__ */ React100.createElement(
|
|
10338
10415
|
"path",
|
|
10339
10416
|
{
|
|
10340
10417
|
fillRule: "evenodd",
|
|
@@ -10343,7 +10420,7 @@ var CheckMark = () => /* @__PURE__ */ React99.createElement(
|
|
|
10343
10420
|
}
|
|
10344
10421
|
)
|
|
10345
10422
|
);
|
|
10346
|
-
var UncheckMark = () => /* @__PURE__ */
|
|
10423
|
+
var UncheckMark = () => /* @__PURE__ */ React100.createElement(
|
|
10347
10424
|
"svg",
|
|
10348
10425
|
{
|
|
10349
10426
|
className: "h-5 w-5 text-red-500",
|
|
@@ -10351,7 +10428,7 @@ var UncheckMark = () => /* @__PURE__ */ React99.createElement(
|
|
|
10351
10428
|
fill: "currentColor",
|
|
10352
10429
|
viewBox: "0 0 20 20"
|
|
10353
10430
|
},
|
|
10354
|
-
/* @__PURE__ */
|
|
10431
|
+
/* @__PURE__ */ React100.createElement(
|
|
10355
10432
|
"path",
|
|
10356
10433
|
{
|
|
10357
10434
|
fillRule: "evenodd",
|
|
@@ -10361,9 +10438,9 @@ var UncheckMark = () => /* @__PURE__ */ React99.createElement(
|
|
|
10361
10438
|
)
|
|
10362
10439
|
);
|
|
10363
10440
|
var ComparingPlans = (props) => {
|
|
10364
|
-
const [currentCurrency, setCurrentCurrency] =
|
|
10365
|
-
const [currentCycle, setCurrentCycle] =
|
|
10366
|
-
return /* @__PURE__ */
|
|
10441
|
+
const [currentCurrency, setCurrentCurrency] = useState49("sar");
|
|
10442
|
+
const [currentCycle, setCurrentCycle] = useState49("month");
|
|
10443
|
+
return /* @__PURE__ */ React100.createElement("div", { id: "detailed-pricing", className: "w-full overflow-x-auto" }, /* @__PURE__ */ React100.createElement("div", { className: "mb-2 flex w-full justify-between" }, /* @__PURE__ */ React100.createElement(
|
|
10367
10444
|
HawaRadio,
|
|
10368
10445
|
{
|
|
10369
10446
|
design: "tabs",
|
|
@@ -10371,7 +10448,7 @@ var ComparingPlans = (props) => {
|
|
|
10371
10448
|
options: props.billingCycles,
|
|
10372
10449
|
onChangeTab: (e) => props.onCycleChange(e)
|
|
10373
10450
|
}
|
|
10374
|
-
), /* @__PURE__ */
|
|
10451
|
+
), /* @__PURE__ */ React100.createElement(
|
|
10375
10452
|
HawaRadio,
|
|
10376
10453
|
{
|
|
10377
10454
|
design: "tabs",
|
|
@@ -10379,9 +10456,9 @@ var ComparingPlans = (props) => {
|
|
|
10379
10456
|
options: props.currencies,
|
|
10380
10457
|
onChangeTab: (e) => props.onCurrencyChange(e)
|
|
10381
10458
|
}
|
|
10382
|
-
)), /* @__PURE__ */
|
|
10459
|
+
)), /* @__PURE__ */ React100.createElement("div", { className: " overflow-hidden rounded" }, /* @__PURE__ */ React100.createElement("div", { className: "grid grid-cols-4 gap-x-2 border-b border-t border-gray-200 bg-gray-100 p-4 text-sm font-medium text-gray-900 dark:border-gray-700 dark:bg-gray-800 dark:text-white" }, /* @__PURE__ */ React100.createElement("div", { className: "flex items-center" }), props.plans.map((plan) => /* @__PURE__ */ React100.createElement("div", null, /* @__PURE__ */ React100.createElement("h5", { className: "text-md 0 font-bold text-gray-500 dark:text-gray-400" }, plan.texts.title), /* @__PURE__ */ React100.createElement("div", { className: " flex items-baseline text-gray-900 dark:text-white" }, /* @__PURE__ */ React100.createElement(React100.Fragment, null, /* @__PURE__ */ React100.createElement("span", { className: "text-5xl font-extrabold tracking-tight" }, plan.price), /* @__PURE__ */ React100.createElement("span", { className: "mx-1 text-sm font-semibold" }, plan.texts.currencyText)), /* @__PURE__ */ React100.createElement("span", { className: "ml-1 text-xl font-normal text-gray-500 dark:text-gray-400" }, "/ ", plan.texts.cycleText)), /* @__PURE__ */ React100.createElement("h5", { className: "text-md font-normal text-gray-500 dark:text-gray-400" }, plan.texts.subtitle)))), props.plans?.map((plan) => {
|
|
10383
10460
|
return plan.features.map((feature) => {
|
|
10384
|
-
return /* @__PURE__ */
|
|
10461
|
+
return /* @__PURE__ */ React100.createElement("div", { className: "grid grid-cols-4 gap-x-16 border-b border-gray-200 px-4 py-5 text-sm text-gray-700 dark:border-gray-700" }, /* @__PURE__ */ React100.createElement("div", { className: " flex flex-row items-center gap-2 text-gray-500 dark:text-gray-400" }, feature.text, feature.description && /* @__PURE__ */ React100.createElement(Tooltip, { side: "right", content: feature.description }, /* @__PURE__ */ React100.createElement(
|
|
10385
10462
|
"svg",
|
|
10386
10463
|
{
|
|
10387
10464
|
stroke: "currentColor",
|
|
@@ -10391,44 +10468,44 @@ var ComparingPlans = (props) => {
|
|
|
10391
10468
|
height: "1em",
|
|
10392
10469
|
width: "1em"
|
|
10393
10470
|
},
|
|
10394
|
-
/* @__PURE__ */
|
|
10395
|
-
))), /* @__PURE__ */
|
|
10471
|
+
/* @__PURE__ */ React100.createElement("path", { d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" })
|
|
10472
|
+
))), /* @__PURE__ */ React100.createElement(UncheckMark, null), /* @__PURE__ */ React100.createElement(CheckMark, null), /* @__PURE__ */ React100.createElement(UncheckMark, null));
|
|
10396
10473
|
});
|
|
10397
10474
|
})));
|
|
10398
10475
|
};
|
|
10399
10476
|
|
|
10400
10477
|
// src/blocks/Pricing/HorizontalPricing.tsx
|
|
10401
|
-
import
|
|
10478
|
+
import React101, { useState as useState50 } from "react";
|
|
10402
10479
|
import clsx33 from "clsx";
|
|
10403
10480
|
var HorizontalPricing = (props) => {
|
|
10404
|
-
const [selectedCard, setSelectedCard] =
|
|
10481
|
+
const [selectedCard, setSelectedCard] = useState50(null);
|
|
10405
10482
|
let data = [
|
|
10406
10483
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
|
10407
10484
|
{ title: "business", price: "$99", cycle: "/mo" },
|
|
10408
10485
|
{ title: "enterprise", price: "$149", cycle: "/mo" }
|
|
10409
10486
|
];
|
|
10410
|
-
return /* @__PURE__ */
|
|
10487
|
+
return /* @__PURE__ */ React101.createElement("div", { className: "z-10 w-full max-w-screen-sm" }, /* @__PURE__ */ React101.createElement("div", { className: "max-w-2xl " }, /* @__PURE__ */ React101.createElement("div", { className: "flex flex-row justify-between" }, /* @__PURE__ */ React101.createElement(
|
|
10411
10488
|
HawaRadio,
|
|
10412
10489
|
{
|
|
10413
10490
|
design: "tabs",
|
|
10414
10491
|
options: props.currencies,
|
|
10415
10492
|
defaultValue: props.currentCurrency
|
|
10416
10493
|
}
|
|
10417
|
-
), /* @__PURE__ */
|
|
10494
|
+
), /* @__PURE__ */ React101.createElement(
|
|
10418
10495
|
HawaRadio,
|
|
10419
10496
|
{
|
|
10420
10497
|
design: "tabs",
|
|
10421
10498
|
options: props.billingCycles,
|
|
10422
10499
|
defaultValue: props.currentCycle
|
|
10423
10500
|
}
|
|
10424
|
-
)), data.map((d) => /* @__PURE__ */
|
|
10501
|
+
)), data.map((d) => /* @__PURE__ */ React101.createElement(
|
|
10425
10502
|
"label",
|
|
10426
10503
|
{
|
|
10427
10504
|
htmlFor: d.title,
|
|
10428
10505
|
className: "",
|
|
10429
10506
|
onClick: () => setSelectedCard(d.title)
|
|
10430
10507
|
},
|
|
10431
|
-
/* @__PURE__ */
|
|
10508
|
+
/* @__PURE__ */ React101.createElement(
|
|
10432
10509
|
"input",
|
|
10433
10510
|
{
|
|
10434
10511
|
type: "radio",
|
|
@@ -10437,7 +10514,7 @@ var HorizontalPricing = (props) => {
|
|
|
10437
10514
|
className: "peer appearance-none"
|
|
10438
10515
|
}
|
|
10439
10516
|
),
|
|
10440
|
-
/* @__PURE__ */
|
|
10517
|
+
/* @__PURE__ */ React101.createElement(
|
|
10441
10518
|
"div",
|
|
10442
10519
|
{
|
|
10443
10520
|
className: clsx33(
|
|
@@ -10445,18 +10522,18 @@ var HorizontalPricing = (props) => {
|
|
|
10445
10522
|
"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"
|
|
10446
10523
|
)
|
|
10447
10524
|
},
|
|
10448
|
-
/* @__PURE__ */
|
|
10525
|
+
/* @__PURE__ */ React101.createElement("div", { className: "peer flex items-center gap-4" }, /* @__PURE__ */ React101.createElement(CheckIcons, null), /* @__PURE__ */ React101.createElement(
|
|
10449
10526
|
CardText,
|
|
10450
10527
|
{
|
|
10451
10528
|
title: "Enterprise",
|
|
10452
10529
|
subtitle: "For startups and new businesses"
|
|
10453
10530
|
}
|
|
10454
10531
|
)),
|
|
10455
|
-
/* @__PURE__ */
|
|
10532
|
+
/* @__PURE__ */ React101.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
|
10456
10533
|
)
|
|
10457
10534
|
))));
|
|
10458
10535
|
};
|
|
10459
|
-
var CheckIcons = () => /* @__PURE__ */
|
|
10536
|
+
var CheckIcons = () => /* @__PURE__ */ React101.createElement(React101.Fragment, null, /* @__PURE__ */ React101.createElement(
|
|
10460
10537
|
"svg",
|
|
10461
10538
|
{
|
|
10462
10539
|
fill: "none",
|
|
@@ -10465,7 +10542,7 @@ var CheckIcons = () => /* @__PURE__ */ React100.createElement(React100.Fragment,
|
|
|
10465
10542
|
stroke: "currentColor",
|
|
10466
10543
|
className: "default h-8 w-8 text-neutral-500"
|
|
10467
10544
|
},
|
|
10468
|
-
/* @__PURE__ */
|
|
10545
|
+
/* @__PURE__ */ React101.createElement(
|
|
10469
10546
|
"path",
|
|
10470
10547
|
{
|
|
10471
10548
|
strokeLinecap: "round",
|
|
@@ -10473,14 +10550,14 @@ var CheckIcons = () => /* @__PURE__ */ React100.createElement(React100.Fragment,
|
|
|
10473
10550
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
10474
10551
|
}
|
|
10475
10552
|
)
|
|
10476
|
-
), /* @__PURE__ */
|
|
10553
|
+
), /* @__PURE__ */ React101.createElement(
|
|
10477
10554
|
"svg",
|
|
10478
10555
|
{
|
|
10479
10556
|
viewBox: "0 0 24 24",
|
|
10480
10557
|
fill: "currentColor",
|
|
10481
10558
|
className: "active hidden h-8 w-8 text-blue-500"
|
|
10482
10559
|
},
|
|
10483
|
-
/* @__PURE__ */
|
|
10560
|
+
/* @__PURE__ */ React101.createElement(
|
|
10484
10561
|
"path",
|
|
10485
10562
|
{
|
|
10486
10563
|
fillRule: "evenodd",
|
|
@@ -10489,21 +10566,21 @@ var CheckIcons = () => /* @__PURE__ */ React100.createElement(React100.Fragment,
|
|
|
10489
10566
|
}
|
|
10490
10567
|
)
|
|
10491
10568
|
));
|
|
10492
|
-
var CardText = (props) => /* @__PURE__ */
|
|
10493
|
-
var CardPrice = (props) => /* @__PURE__ */
|
|
10569
|
+
var CardText = (props) => /* @__PURE__ */ React101.createElement("div", { className: "peer flex flex-col items-start " }, /* @__PURE__ */ React101.createElement("h2", { className: "font-medium text-neutral-700 dark:text-gray-100 sm:text-xl" }, props.title), /* @__PURE__ */ React101.createElement("p", { className: "text-sm text-neutral-500 dark:text-gray-300" }, props.subtitle, " "));
|
|
10570
|
+
var CardPrice = (props) => /* @__PURE__ */ React101.createElement("h2", { className: "peer text-xl font-semibold text-neutral-900 dark:text-white sm:text-2xl" }, props.amount, /* @__PURE__ */ React101.createElement("span", { className: "text-base font-medium text-neutral-400" }, props.cycle));
|
|
10494
10571
|
|
|
10495
10572
|
// src/blocks/Referral/ReferralAccount.tsx
|
|
10496
|
-
import
|
|
10573
|
+
import React102 from "react";
|
|
10497
10574
|
var ReferralAccount = ({
|
|
10498
10575
|
referralLink,
|
|
10499
10576
|
referralCode
|
|
10500
10577
|
}) => {
|
|
10501
|
-
return /* @__PURE__ */
|
|
10578
|
+
return /* @__PURE__ */ React102.createElement(Card, null, /* @__PURE__ */ React102.createElement(CardContent, { headless: true }, /* @__PURE__ */ React102.createElement("div", { className: "my-2 mt-0" }, /* @__PURE__ */ React102.createElement("div", { className: "mb-1" }, "Referral Code"), /* @__PURE__ */ React102.createElement("div", { className: "flex flex-row items-center justify-between rounded border bg-background" }, /* @__PURE__ */ React102.createElement("span", { className: "ml-3 font-bold" }, referralCode), /* @__PURE__ */ React102.createElement(
|
|
10502
10579
|
Button,
|
|
10503
10580
|
{
|
|
10504
10581
|
onClick: () => navigator.clipboard.writeText(referralCode)
|
|
10505
10582
|
},
|
|
10506
|
-
/* @__PURE__ */
|
|
10583
|
+
/* @__PURE__ */ React102.createElement("span", { className: "bg-red flex items-center justify-center" }, /* @__PURE__ */ React102.createElement(
|
|
10507
10584
|
"svg",
|
|
10508
10585
|
{
|
|
10509
10586
|
stroke: "currentColor",
|
|
@@ -10513,14 +10590,14 @@ var ReferralAccount = ({
|
|
|
10513
10590
|
height: "1em",
|
|
10514
10591
|
width: "1em"
|
|
10515
10592
|
},
|
|
10516
|
-
/* @__PURE__ */
|
|
10593
|
+
/* @__PURE__ */ React102.createElement("path", { d: "M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z" })
|
|
10517
10594
|
), " ")
|
|
10518
|
-
))), /* @__PURE__ */
|
|
10595
|
+
))), /* @__PURE__ */ React102.createElement("div", { className: "my-2 mt-0" }, /* @__PURE__ */ React102.createElement("div", { className: "mb-1" }, "Referral Link"), /* @__PURE__ */ React102.createElement("div", { className: "flex flex-row items-center justify-between rounded border bg-background" }, /* @__PURE__ */ React102.createElement("span", { className: "ml-3 font-bold" }, referralLink), /* @__PURE__ */ React102.createElement(
|
|
10519
10596
|
Button,
|
|
10520
10597
|
{
|
|
10521
10598
|
onClick: () => navigator.clipboard.writeText(referralLink)
|
|
10522
10599
|
},
|
|
10523
|
-
/* @__PURE__ */
|
|
10600
|
+
/* @__PURE__ */ React102.createElement("span", { className: "bg-red flex items-center justify-center" }, /* @__PURE__ */ React102.createElement(
|
|
10524
10601
|
"svg",
|
|
10525
10602
|
{
|
|
10526
10603
|
stroke: "currentColor",
|
|
@@ -10530,13 +10607,13 @@ var ReferralAccount = ({
|
|
|
10530
10607
|
height: "1em",
|
|
10531
10608
|
width: "1em"
|
|
10532
10609
|
},
|
|
10533
|
-
/* @__PURE__ */
|
|
10610
|
+
/* @__PURE__ */ React102.createElement("path", { d: "M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z" })
|
|
10534
10611
|
), " ")
|
|
10535
10612
|
)))));
|
|
10536
10613
|
};
|
|
10537
10614
|
|
|
10538
10615
|
// src/blocks/Referral/ReferralSettlement.tsx
|
|
10539
|
-
import
|
|
10616
|
+
import React103 from "react";
|
|
10540
10617
|
import { Controller as Controller9, FormProvider as FormProvider5, useForm as useForm9 } from "react-hook-form";
|
|
10541
10618
|
var ReferralSettlement = ({
|
|
10542
10619
|
referralLink,
|
|
@@ -10549,12 +10626,12 @@ var ReferralSettlement = ({
|
|
|
10549
10626
|
handleSubmit,
|
|
10550
10627
|
control
|
|
10551
10628
|
} = methods;
|
|
10552
|
-
return /* @__PURE__ */
|
|
10629
|
+
return /* @__PURE__ */ React103.createElement(Card, null, /* @__PURE__ */ React103.createElement(CardContent, { headless: true }, /* @__PURE__ */ React103.createElement("div", null, /* @__PURE__ */ React103.createElement(FormProvider5, { ...methods }, /* @__PURE__ */ React103.createElement(HawaTextField, { label: "IBAN" }), /* @__PURE__ */ React103.createElement(HawaTextField, { label: "Holder Name" }), /* @__PURE__ */ React103.createElement(
|
|
10553
10630
|
Controller9,
|
|
10554
10631
|
{
|
|
10555
10632
|
control,
|
|
10556
10633
|
name: "bank",
|
|
10557
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10634
|
+
render: ({ field }) => /* @__PURE__ */ React103.createElement(
|
|
10558
10635
|
HawaSelect,
|
|
10559
10636
|
{
|
|
10560
10637
|
label: "Bank",
|
|
@@ -10573,13 +10650,13 @@ var ReferralSettlement = ({
|
|
|
10573
10650
|
}
|
|
10574
10651
|
)
|
|
10575
10652
|
}
|
|
10576
|
-
))), /* @__PURE__ */
|
|
10653
|
+
))), /* @__PURE__ */ React103.createElement("div", null, /* @__PURE__ */ React103.createElement(Button, { className: "mt-6 w-full" }, "Add Bank Account")), withdrawError && /* @__PURE__ */ React103.createElement("div", null, /* @__PURE__ */ React103.createElement(
|
|
10577
10654
|
HawaAlert,
|
|
10578
10655
|
{
|
|
10579
10656
|
text: "Sorry can't withdraw the money at the moment. Please try again in 2022/11/20",
|
|
10580
10657
|
severity: "warning"
|
|
10581
10658
|
}
|
|
10582
|
-
)), /* @__PURE__ */
|
|
10659
|
+
)), /* @__PURE__ */ React103.createElement("div", { className: "mt-3" }, /* @__PURE__ */ React103.createElement("div", { className: "mb-1" }, "Settlement Accounts"), /* @__PURE__ */ React103.createElement("div", { className: "rounded" }, /* @__PURE__ */ React103.createElement(
|
|
10583
10660
|
SettlementAccountCard,
|
|
10584
10661
|
{
|
|
10585
10662
|
bank: "Al Inma Bank",
|
|
@@ -10587,14 +10664,14 @@ var ReferralSettlement = ({
|
|
|
10587
10664
|
accountHolder: "Zakher Masri",
|
|
10588
10665
|
default: true
|
|
10589
10666
|
}
|
|
10590
|
-
), /* @__PURE__ */
|
|
10667
|
+
), /* @__PURE__ */ React103.createElement(
|
|
10591
10668
|
SettlementAccountCard,
|
|
10592
10669
|
{
|
|
10593
10670
|
bank: "Al Rajihi Bank",
|
|
10594
10671
|
iban: "SA10228094028098329119",
|
|
10595
10672
|
accountHolder: "Zakher Masri"
|
|
10596
10673
|
}
|
|
10597
|
-
), /* @__PURE__ */
|
|
10674
|
+
), /* @__PURE__ */ React103.createElement(
|
|
10598
10675
|
SettlementAccountCard,
|
|
10599
10676
|
{
|
|
10600
10677
|
bank: "Al Inma Bank",
|
|
@@ -10604,13 +10681,13 @@ var ReferralSettlement = ({
|
|
|
10604
10681
|
)))));
|
|
10605
10682
|
};
|
|
10606
10683
|
var SettlementAccountCard = (props) => {
|
|
10607
|
-
return /* @__PURE__ */
|
|
10684
|
+
return /* @__PURE__ */ React103.createElement("div", { className: "mb-3 flex flex-row items-center justify-between rounded border bg-background p-3" }, /* @__PURE__ */ React103.createElement("div", { className: "flex flex-col justify-between" }, /* @__PURE__ */ React103.createElement("div", { className: "text-xs" }, props.bank), /* @__PURE__ */ React103.createElement("div", null, props.accountHolder), /* @__PURE__ */ React103.createElement("div", { className: "text-xs" }, props.iban)), /* @__PURE__ */ React103.createElement("div", { className: "flex flex-row items-center justify-center gap-2" }, props.default && /* @__PURE__ */ React103.createElement(
|
|
10608
10685
|
HawaChip,
|
|
10609
10686
|
{
|
|
10610
10687
|
label: "Default",
|
|
10611
10688
|
size: "small"
|
|
10612
10689
|
}
|
|
10613
|
-
), /* @__PURE__ */
|
|
10690
|
+
), /* @__PURE__ */ React103.createElement(
|
|
10614
10691
|
HawaMenu,
|
|
10615
10692
|
{
|
|
10616
10693
|
size: "small",
|
|
@@ -10622,7 +10699,7 @@ var SettlementAccountCard = (props) => {
|
|
|
10622
10699
|
]
|
|
10623
10700
|
]
|
|
10624
10701
|
},
|
|
10625
|
-
/* @__PURE__ */
|
|
10702
|
+
/* @__PURE__ */ React103.createElement(Button, { variant: "outline", size: "icon" }, /* @__PURE__ */ React103.createElement(
|
|
10626
10703
|
"svg",
|
|
10627
10704
|
{
|
|
10628
10705
|
"aria-label": "Vertical Three Dots Menu Icon",
|
|
@@ -10634,53 +10711,53 @@ var SettlementAccountCard = (props) => {
|
|
|
10634
10711
|
height: "1em",
|
|
10635
10712
|
width: "1em"
|
|
10636
10713
|
},
|
|
10637
|
-
/* @__PURE__ */
|
|
10714
|
+
/* @__PURE__ */ React103.createElement("path", { d: "M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z" })
|
|
10638
10715
|
))
|
|
10639
10716
|
)));
|
|
10640
10717
|
};
|
|
10641
10718
|
|
|
10642
10719
|
// src/blocks/Referral/ReferralStats.tsx
|
|
10643
|
-
import
|
|
10720
|
+
import React104 from "react";
|
|
10644
10721
|
var ReferralStats = ({
|
|
10645
10722
|
referralLink,
|
|
10646
10723
|
referralCode,
|
|
10647
10724
|
withdrawError
|
|
10648
10725
|
}) => {
|
|
10649
|
-
return /* @__PURE__ */
|
|
10726
|
+
return /* @__PURE__ */ React104.createElement(Card, null, /* @__PURE__ */ React104.createElement(CardContent, { headless: true }, /* @__PURE__ */ React104.createElement("div", { className: "mb-1" }, "Stats"), /* @__PURE__ */ React104.createElement("div", { className: "justi flex flex-row gap-1" }, /* @__PURE__ */ React104.createElement(NumberCard, { title: "Clicks", number: 22 }), /* @__PURE__ */ React104.createElement(NumberCard, { title: "Sign-ups", number: 32 }), /* @__PURE__ */ React104.createElement(NumberCard, { title: "Commission", number: "213.22 SAR" })), /* @__PURE__ */ React104.createElement(Button, { className: "mt-6 w-full" }, "Withdraw Money"), withdrawError && /* @__PURE__ */ React104.createElement("div", null, /* @__PURE__ */ React104.createElement(
|
|
10650
10727
|
HawaAlert,
|
|
10651
10728
|
{
|
|
10652
10729
|
text: "Sorry can't withdraw the money at the moment. Please try again in 2022/11/20",
|
|
10653
10730
|
severity: "warning"
|
|
10654
10731
|
}
|
|
10655
|
-
)), /* @__PURE__ */
|
|
10732
|
+
)), /* @__PURE__ */ React104.createElement("div", { className: "mt-3" }, /* @__PURE__ */ React104.createElement("div", { className: "mb-1" }, "Sign ups"), /* @__PURE__ */ React104.createElement("div", { className: "rounded" }, /* @__PURE__ */ React104.createElement(
|
|
10656
10733
|
ReferralSignUpCard,
|
|
10657
10734
|
{
|
|
10658
10735
|
date: "2020/10/11 @ 9:45 pm",
|
|
10659
10736
|
email: "zakher@sikka.io",
|
|
10660
10737
|
amount: "3.4 SAR / Month"
|
|
10661
10738
|
}
|
|
10662
|
-
), /* @__PURE__ */
|
|
10739
|
+
), /* @__PURE__ */ React104.createElement(
|
|
10663
10740
|
ReferralSignUpCard,
|
|
10664
10741
|
{
|
|
10665
10742
|
date: "2022/10/11 @ 9:45 pm",
|
|
10666
10743
|
email: "zakher@sikka.io",
|
|
10667
10744
|
amount: "3.4 SAR / Month"
|
|
10668
10745
|
}
|
|
10669
|
-
), /* @__PURE__ */
|
|
10746
|
+
), /* @__PURE__ */ React104.createElement(
|
|
10670
10747
|
ReferralSignUpCard,
|
|
10671
10748
|
{
|
|
10672
10749
|
date: "2022/10/11 @ 9:45 pm",
|
|
10673
10750
|
email: "zakher@sikka.io",
|
|
10674
10751
|
amount: "3.4 SAR / Month"
|
|
10675
10752
|
}
|
|
10676
|
-
), /* @__PURE__ */
|
|
10753
|
+
), /* @__PURE__ */ React104.createElement(
|
|
10677
10754
|
ReferralSignUpCard,
|
|
10678
10755
|
{
|
|
10679
10756
|
date: "2022/10/11 @ 9:45 pm",
|
|
10680
10757
|
email: "zakher@sikka.io",
|
|
10681
10758
|
amount: "3.4 SAR / Month"
|
|
10682
10759
|
}
|
|
10683
|
-
), /* @__PURE__ */
|
|
10760
|
+
), /* @__PURE__ */ React104.createElement(
|
|
10684
10761
|
ReferralSignUpCard,
|
|
10685
10762
|
{
|
|
10686
10763
|
date: "2022/10/11 @ 9:45 pm",
|
|
@@ -10689,26 +10766,26 @@ var ReferralStats = ({
|
|
|
10689
10766
|
}
|
|
10690
10767
|
)))));
|
|
10691
10768
|
};
|
|
10692
|
-
var NumberCard = (props) => /* @__PURE__ */
|
|
10693
|
-
var ReferralSignUpCard = (props) => /* @__PURE__ */
|
|
10769
|
+
var NumberCard = (props) => /* @__PURE__ */ React104.createElement("div", { className: "w-full rounded border bg-background p-2" }, /* @__PURE__ */ React104.createElement("div", { className: "text-sm" }, props.title), /* @__PURE__ */ React104.createElement("div", { className: "font-bold" }, props.number));
|
|
10770
|
+
var ReferralSignUpCard = (props) => /* @__PURE__ */ React104.createElement("div", { className: "mb-3 rounded border-b bg-background p-2" }, /* @__PURE__ */ React104.createElement("div", { className: "text-xs" }, props.date), /* @__PURE__ */ React104.createElement("div", { className: "flex flex-row justify-between" }, /* @__PURE__ */ React104.createElement("div", null, props.email), /* @__PURE__ */ React104.createElement("div", null, props.amount)));
|
|
10694
10771
|
|
|
10695
10772
|
// src/blocks/Misc/NotFound.tsx
|
|
10696
|
-
import
|
|
10773
|
+
import React105 from "react";
|
|
10697
10774
|
var NotFound = ({
|
|
10698
10775
|
variant = "contained",
|
|
10699
10776
|
texts
|
|
10700
10777
|
}) => {
|
|
10701
|
-
return /* @__PURE__ */
|
|
10778
|
+
return /* @__PURE__ */ React105.createElement(Card, null, /* @__PURE__ */ React105.createElement(CardContent, { headless: true }, /* @__PURE__ */ React105.createElement("div", { className: "flex flex-col items-center dark:text-white" }, /* @__PURE__ */ React105.createElement("div", { className: "text-center text-6xl font-bold " }, "404"), /* @__PURE__ */ React105.createElement("div", { className: "m-2 text-center text-xl font-bold " }, texts?.pageNotFound ?? "Page Not Found"), /* @__PURE__ */ React105.createElement("div", { className: "mb-4 text-center" }, texts?.ifLost ?? /* @__PURE__ */ React105.createElement(React105.Fragment, null, "If you're lost please contact us", " ", /* @__PURE__ */ React105.createElement("span", { className: "clickable-link" }, "help@sikka.io"))), /* @__PURE__ */ React105.createElement(Button, { className: "w-full" }, texts?.home ?? "Home"))));
|
|
10702
10779
|
};
|
|
10703
10780
|
|
|
10704
10781
|
// src/blocks/Misc/EmptyState.tsx
|
|
10705
|
-
import
|
|
10782
|
+
import React106 from "react";
|
|
10706
10783
|
var EmptyState = ({
|
|
10707
10784
|
variant = "contained",
|
|
10708
10785
|
texts,
|
|
10709
10786
|
onActionClick
|
|
10710
10787
|
}) => {
|
|
10711
|
-
return /* @__PURE__ */
|
|
10788
|
+
return /* @__PURE__ */ React106.createElement(Card, null, /* @__PURE__ */ React106.createElement(CardContent, { headless: true }, /* @__PURE__ */ React106.createElement("div", { className: "flex flex-col items-center justify-center text-center " }, /* @__PURE__ */ React106.createElement("div", { className: "flex h-10 w-10 flex-col items-center justify-center rounded-3xl bg-primary text-6xl font-bold text-primary-foreground" }, /* @__PURE__ */ React106.createElement(
|
|
10712
10789
|
"svg",
|
|
10713
10790
|
{
|
|
10714
10791
|
stroke: "currentColor",
|
|
@@ -10718,36 +10795,36 @@ var EmptyState = ({
|
|
|
10718
10795
|
height: "0.35em",
|
|
10719
10796
|
width: "0.35em"
|
|
10720
10797
|
},
|
|
10721
|
-
/* @__PURE__ */
|
|
10722
|
-
)), /* @__PURE__ */
|
|
10798
|
+
/* @__PURE__ */ React106.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
|
|
10799
|
+
)), /* @__PURE__ */ React106.createElement("div", { className: "m-2 text-xl font-bold" }, texts?.youreCaughtUp ?? "You're all caught up"))), /* @__PURE__ */ React106.createElement(CardFooter, null, /* @__PURE__ */ React106.createElement(Button, { className: "w-full", onClick: () => onActionClick() }, texts?.actionText ?? "Go Home")));
|
|
10723
10800
|
};
|
|
10724
10801
|
|
|
10725
10802
|
// src/blocks/Misc/Testimonial.tsx
|
|
10726
|
-
import
|
|
10803
|
+
import React107 from "react";
|
|
10727
10804
|
var Testimonial = (props) => {
|
|
10728
|
-
return /* @__PURE__ */
|
|
10805
|
+
return /* @__PURE__ */ React107.createElement(Card, null, /* @__PURE__ */ React107.createElement(CardContent, { headless: true }, /* @__PURE__ */ React107.createElement("div", null, /* @__PURE__ */ React107.createElement("p", { className: "mb-4 max-w-sm" }, "The team at Sikka Software is simply amazing. The tech is easy to follow, easy to work with, and infinitely flexible. The solution opportunities created by Tines are endless.")), /* @__PURE__ */ React107.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ React107.createElement("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none" }, /* @__PURE__ */ React107.createElement("rect", { width: "48", height: "48", rx: "24", fill: "#45BE8B" }), /* @__PURE__ */ React107.createElement(
|
|
10729
10806
|
"path",
|
|
10730
10807
|
{
|
|
10731
10808
|
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",
|
|
10732
10809
|
fill: "#FFFFFF"
|
|
10733
10810
|
}
|
|
10734
|
-
), /* @__PURE__ */
|
|
10811
|
+
), /* @__PURE__ */ React107.createElement(
|
|
10735
10812
|
"path",
|
|
10736
10813
|
{
|
|
10737
10814
|
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",
|
|
10738
10815
|
fill: "#FFFFFF"
|
|
10739
10816
|
}
|
|
10740
|
-
)), /* @__PURE__ */
|
|
10817
|
+
)), /* @__PURE__ */ React107.createElement("span", { className: "border border-l " }), " ", /* @__PURE__ */ React107.createElement("div", null, /* @__PURE__ */ React107.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ React107.createElement("div", null, " Chief Information Security Officer")))));
|
|
10741
10818
|
};
|
|
10742
10819
|
|
|
10743
10820
|
// src/blocks/Misc/LeadGenerator.tsx
|
|
10744
|
-
import
|
|
10821
|
+
import React108 from "react";
|
|
10745
10822
|
var LeadGenerator = ({
|
|
10746
10823
|
variant = "contained",
|
|
10747
10824
|
texts,
|
|
10748
10825
|
handleNewsletterSub
|
|
10749
10826
|
}) => {
|
|
10750
|
-
return /* @__PURE__ */
|
|
10827
|
+
return /* @__PURE__ */ React108.createElement(Card, null, /* @__PURE__ */ React108.createElement(CardHeader, null, /* @__PURE__ */ React108.createElement(CardTitle, null, texts?.title), /* @__PURE__ */ React108.createElement(CardDescription, null, texts?.subtitle)), /* @__PURE__ */ React108.createElement(CardContent, null, /* @__PURE__ */ React108.createElement(
|
|
10751
10828
|
"form",
|
|
10752
10829
|
{
|
|
10753
10830
|
className: "flex flex-row gap-2",
|
|
@@ -10756,36 +10833,33 @@ var LeadGenerator = ({
|
|
|
10756
10833
|
handleNewsletterSub(e.target[0].value);
|
|
10757
10834
|
}
|
|
10758
10835
|
},
|
|
10759
|
-
/* @__PURE__ */
|
|
10760
|
-
/* @__PURE__ */
|
|
10836
|
+
/* @__PURE__ */ React108.createElement(Input, { type: "email", name: "email", placeholder: "example@sikka.io" }),
|
|
10837
|
+
/* @__PURE__ */ React108.createElement(Button, null, texts?.submit ?? "Submit")
|
|
10761
10838
|
)));
|
|
10762
10839
|
};
|
|
10763
10840
|
|
|
10764
10841
|
// src/blocks/Misc/Announcement.tsx
|
|
10765
|
-
import
|
|
10842
|
+
import React109 from "react";
|
|
10766
10843
|
var Announcement = ({
|
|
10767
10844
|
variant = "contained",
|
|
10768
10845
|
onActionClick,
|
|
10769
10846
|
...props
|
|
10770
10847
|
}) => {
|
|
10771
|
-
return /* @__PURE__ */
|
|
10848
|
+
return /* @__PURE__ */ React109.createElement(Card, null, /* @__PURE__ */ React109.createElement(
|
|
10772
10849
|
CardContent,
|
|
10773
10850
|
{
|
|
10774
10851
|
headless: true,
|
|
10775
10852
|
className: "flex flex-row items-center justify-between"
|
|
10776
10853
|
},
|
|
10777
|
-
/* @__PURE__ */
|
|
10778
|
-
/* @__PURE__ */
|
|
10854
|
+
/* @__PURE__ */ React109.createElement("div", { className: "flex flex-col items-start justify-center " }, /* @__PURE__ */ React109.createElement("span", { className: "text-lg font-bold" }, props.title), /* @__PURE__ */ React109.createElement("span", { className: "text-sm" }, props.subtitle)),
|
|
10855
|
+
/* @__PURE__ */ React109.createElement(Button, { onClick: () => onActionClick() }, props.actionText)
|
|
10779
10856
|
));
|
|
10780
10857
|
};
|
|
10781
10858
|
|
|
10782
10859
|
// src/blocks/Misc/NoPermission.tsx
|
|
10783
|
-
import
|
|
10784
|
-
var NoPermission = ({
|
|
10785
|
-
|
|
10786
|
-
texts
|
|
10787
|
-
}) => {
|
|
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(
|
|
10860
|
+
import React110 from "react";
|
|
10861
|
+
var NoPermission = ({ texts }) => {
|
|
10862
|
+
return /* @__PURE__ */ React110.createElement(Card, null, /* @__PURE__ */ React110.createElement(CardContent, { headless: true }, /* @__PURE__ */ React110.createElement("div", { className: "flex flex-col items-center justify-center text-center" }, /* @__PURE__ */ React110.createElement("div", { className: "flex h-10 w-10 flex-col items-center justify-center rounded-3xl bg-primary text-6xl font-bold text-primary-foreground" }, /* @__PURE__ */ React110.createElement(
|
|
10789
10863
|
"svg",
|
|
10790
10864
|
{
|
|
10791
10865
|
stroke: "currentColor",
|
|
@@ -10795,12 +10869,12 @@ var NoPermission = ({
|
|
|
10795
10869
|
height: "0.35em",
|
|
10796
10870
|
width: "0.35em"
|
|
10797
10871
|
},
|
|
10798
|
-
/* @__PURE__ */
|
|
10799
|
-
), " "), /* @__PURE__ */
|
|
10872
|
+
/* @__PURE__ */ React110.createElement("path", { d: "M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z" })
|
|
10873
|
+
), " "), /* @__PURE__ */ React110.createElement("div", { className: "m-2 text-xl font-bold" }, texts?.title ?? "You don't have permission"), /* @__PURE__ */ React110.createElement("div", null, texts?.subtitle ?? "If you think this is a problem please contact your administrator or our customer support"))));
|
|
10800
10874
|
};
|
|
10801
10875
|
|
|
10802
10876
|
// src/hooks/useHover.ts
|
|
10803
|
-
import { useEffect as
|
|
10877
|
+
import { useEffect as useEffect27, useRef as useRef19, useState as useState51 } from "react";
|
|
10804
10878
|
export {
|
|
10805
10879
|
ActionCard,
|
|
10806
10880
|
Announcement,
|
|
@@ -10819,6 +10893,7 @@ export {
|
|
|
10819
10893
|
CardTitle,
|
|
10820
10894
|
Carousel,
|
|
10821
10895
|
ChargeWalletForm,
|
|
10896
|
+
CheckEmail,
|
|
10822
10897
|
CheckoutForm,
|
|
10823
10898
|
CodeConfirmation,
|
|
10824
10899
|
ComparingPlans,
|