@sikka/hawa 0.1.87 → 0.1.89
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 +15 -4
- package/dist/index.d.ts +15 -4
- package/dist/index.js +3621 -2546
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +264 -217
- package/dist/index.mjs.map +1 -0
- package/dist/styles.css +6 -0
- package/package.json +1 -1
- package/src/blocks/AuthForms/CheckEmail.tsx +54 -0
- package/src/blocks/AuthForms/ResetPasswordForm.tsx +9 -9
- package/src/blocks/AuthForms/index.ts +1 -0
- package/src/blocks/Misc/NoPermission.tsx +1 -5
- package/src/elements/HawaAdCard.tsx +61 -23
- package/src/styles.css +6 -0
- package/src/translations/ar.json +4 -1
- package/src/translations/en.json +4 -1
- package/tsup.config.js +7 -0
package/dist/index.mjs
CHANGED
|
@@ -6076,8 +6076,26 @@ var HawaPricingCard = ({
|
|
|
6076
6076
|
|
|
6077
6077
|
// src/elements/HawaAdCard.tsx
|
|
6078
6078
|
import clsx24 from "clsx";
|
|
6079
|
-
import React54 from "react";
|
|
6079
|
+
import React54, { useState as useState29, useEffect as useEffect19, useRef as useRef11 } from "react";
|
|
6080
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]);
|
|
6081
6099
|
let cardStyles = {
|
|
6082
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 ",
|
|
6083
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 "
|
|
@@ -6086,7 +6104,7 @@ var HawaAdCard = ({ orientation, ...props }) => {
|
|
|
6086
6104
|
horizontal: "w-auto h-full bg-blue-500 rounded-inner",
|
|
6087
6105
|
vertical: "bg-blue-500 rounded-inner w-auto "
|
|
6088
6106
|
};
|
|
6089
|
-
return /* @__PURE__ */ React54.createElement(
|
|
6107
|
+
return /* @__PURE__ */ React54.createElement("div", { ref: adRef }, /* @__PURE__ */ React54.createElement(
|
|
6090
6108
|
"div",
|
|
6091
6109
|
{
|
|
6092
6110
|
className: clsx24(cardStyles[orientation], "dark:text-white"),
|
|
@@ -6103,12 +6121,21 @@ var HawaAdCard = ({ orientation, ...props }) => {
|
|
|
6103
6121
|
/* @__PURE__ */ React54.createElement(
|
|
6104
6122
|
"span",
|
|
6105
6123
|
{
|
|
6106
|
-
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
|
+
},
|
|
6107
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"
|
|
6108
6135
|
},
|
|
6109
6136
|
"Hide"
|
|
6110
6137
|
)
|
|
6111
|
-
);
|
|
6138
|
+
));
|
|
6112
6139
|
};
|
|
6113
6140
|
|
|
6114
6141
|
// src/elements/HawaLandingCard.tsx
|
|
@@ -6152,7 +6179,7 @@ var HawaLandingCard = ({
|
|
|
6152
6179
|
};
|
|
6153
6180
|
|
|
6154
6181
|
// src/elements/HawaButton.tsx
|
|
6155
|
-
import React56, { useState as
|
|
6182
|
+
import React56, { useState as useState30 } from "react";
|
|
6156
6183
|
import clsx26 from "clsx";
|
|
6157
6184
|
var disabledSyles = "cursor-default pointer-events-none";
|
|
6158
6185
|
var disabledVariantSyles = {
|
|
@@ -6220,8 +6247,8 @@ var HawaButton = ({
|
|
|
6220
6247
|
feedback,
|
|
6221
6248
|
...props
|
|
6222
6249
|
}) => {
|
|
6223
|
-
const [isClicked, setIsClicked] =
|
|
6224
|
-
const [buttonText, setButtonText] =
|
|
6250
|
+
const [isClicked, setIsClicked] = useState30(false);
|
|
6251
|
+
const [buttonText, setButtonText] = useState30(children);
|
|
6225
6252
|
const handleClick = (event) => {
|
|
6226
6253
|
if (props.onClick) {
|
|
6227
6254
|
props.onClick(event);
|
|
@@ -6395,9 +6422,9 @@ var HawaStoreButtons = (props) => {
|
|
|
6395
6422
|
};
|
|
6396
6423
|
|
|
6397
6424
|
// src/elements/ActionCard.tsx
|
|
6398
|
-
import React58, { useState as
|
|
6425
|
+
import React58, { useState as useState31 } from "react";
|
|
6399
6426
|
var ActionCard = (props) => {
|
|
6400
|
-
const [hovered, setHovered] =
|
|
6427
|
+
const [hovered, setHovered] = useState31(false);
|
|
6401
6428
|
return /* @__PURE__ */ React58.createElement("div", { className: "flex h-full w-full flex-col gap-1 " }, /* @__PURE__ */ React58.createElement(
|
|
6402
6429
|
"div",
|
|
6403
6430
|
{
|
|
@@ -6437,12 +6464,12 @@ var ActionCard = (props) => {
|
|
|
6437
6464
|
import React59 from "react";
|
|
6438
6465
|
|
|
6439
6466
|
// src/hooks/useCarousel.ts
|
|
6440
|
-
import { useState as
|
|
6467
|
+
import { useState as useState32, useRef as useRef12 } from "react";
|
|
6441
6468
|
var useCarousel = (imageWidth) => {
|
|
6442
|
-
const [isDragging, setIsDragging] =
|
|
6443
|
-
const [startDragX, setStartDragX] =
|
|
6444
|
-
const [scrollLeft, setScrollLeft] =
|
|
6445
|
-
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);
|
|
6446
6473
|
const findClosestSnapPoint = (scrollLeft2) => {
|
|
6447
6474
|
return Math.round(scrollLeft2 / imageWidth) * imageWidth;
|
|
6448
6475
|
};
|
|
@@ -6542,14 +6569,14 @@ var Input = React60.forwardRef(
|
|
|
6542
6569
|
Input.displayName = "Input";
|
|
6543
6570
|
|
|
6544
6571
|
// src/elements/InterfaceSettings.tsx
|
|
6545
|
-
import React61, { useState as
|
|
6572
|
+
import React61, { useState as useState34 } from "react";
|
|
6546
6573
|
var InterfaceSettings = ({
|
|
6547
6574
|
orientation = "horizontal",
|
|
6548
6575
|
width = "default",
|
|
6549
6576
|
...props
|
|
6550
6577
|
}) => {
|
|
6551
|
-
const [color, setColor] =
|
|
6552
|
-
const [language, setLanguage] =
|
|
6578
|
+
const [color, setColor] = useState34(props.currentColorMode);
|
|
6579
|
+
const [language, setLanguage] = useState34(props.currentLanguage);
|
|
6553
6580
|
let orientationStyle = {
|
|
6554
6581
|
horizontal: "flex flex-row justify-between",
|
|
6555
6582
|
vertical: "flex flex-col items-center gap-2"
|
|
@@ -7154,13 +7181,13 @@ var HawaBottomAppBar = (props) => {
|
|
|
7154
7181
|
};
|
|
7155
7182
|
|
|
7156
7183
|
// src/layout/HawaSiteLayout.tsx
|
|
7157
|
-
import React74, { useEffect as
|
|
7184
|
+
import React74, { useEffect as useEffect22, useRef as useRef14, useState as useState38 } from "react";
|
|
7158
7185
|
import clsx27 from "clsx";
|
|
7159
7186
|
|
|
7160
7187
|
// src/hooks/useDiscloser.ts
|
|
7161
|
-
import { useState as
|
|
7188
|
+
import { useState as useState36 } from "react";
|
|
7162
7189
|
var useDiscloser = (value = false) => {
|
|
7163
|
-
const [open, setOpen] =
|
|
7190
|
+
const [open, setOpen] = useState36(value);
|
|
7164
7191
|
const onOpen = () => setOpen(true);
|
|
7165
7192
|
const onClose = () => setOpen(false);
|
|
7166
7193
|
return {
|
|
@@ -7172,13 +7199,13 @@ var useDiscloser = (value = false) => {
|
|
|
7172
7199
|
var useDiscloser_default = useDiscloser;
|
|
7173
7200
|
|
|
7174
7201
|
// src/hooks/useBreakpoint.ts
|
|
7175
|
-
import { useState as
|
|
7202
|
+
import { useState as useState37, useEffect as useEffect21 } from "react";
|
|
7176
7203
|
var useBreakpoint = () => {
|
|
7177
|
-
const [breakpoint, setBreakpoint] =
|
|
7204
|
+
const [breakpoint, setBreakpoint] = useState37(window?.innerWidth);
|
|
7178
7205
|
const resize = () => {
|
|
7179
7206
|
setBreakpoint(window?.innerWidth);
|
|
7180
7207
|
};
|
|
7181
|
-
|
|
7208
|
+
useEffect21(() => {
|
|
7182
7209
|
if (typeof window !== "undefined") {
|
|
7183
7210
|
window?.addEventListener("resize", resize);
|
|
7184
7211
|
return () => {
|
|
@@ -7196,19 +7223,19 @@ var HawaSiteLayout = ({
|
|
|
7196
7223
|
navigationSize = "md",
|
|
7197
7224
|
...props
|
|
7198
7225
|
}) => {
|
|
7199
|
-
const [openSideMenu, setOpenSideMenu] =
|
|
7200
|
-
const [openSubItem, setOpenSubItem] =
|
|
7226
|
+
const [openSideMenu, setOpenSideMenu] = useState38(false);
|
|
7227
|
+
const [openSubItem, setOpenSubItem] = useState38(false);
|
|
7201
7228
|
const { isOpen, onClose, onOpen } = useDiscloser_default(false);
|
|
7202
|
-
const ref =
|
|
7203
|
-
const drawerItemRef =
|
|
7229
|
+
const ref = useRef14(null);
|
|
7230
|
+
const drawerItemRef = useRef14(null);
|
|
7204
7231
|
let size;
|
|
7205
7232
|
if (typeof window !== "undefined") {
|
|
7206
7233
|
size = useBreakpoint_default();
|
|
7207
7234
|
} else {
|
|
7208
7235
|
size = 1200;
|
|
7209
7236
|
}
|
|
7210
|
-
const [keepOpen, setKeepOpen] =
|
|
7211
|
-
|
|
7237
|
+
const [keepOpen, setKeepOpen] = useState38(false);
|
|
7238
|
+
useEffect22(() => {
|
|
7212
7239
|
const handleClickOutside = (event) => {
|
|
7213
7240
|
if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
|
|
7214
7241
|
setOpenSideMenu(false);
|
|
@@ -7309,7 +7336,7 @@ var HawaSiteLayout = ({
|
|
|
7309
7336
|
};
|
|
7310
7337
|
|
|
7311
7338
|
// src/layout/AppLayout.tsx
|
|
7312
|
-
import React76, { useEffect as
|
|
7339
|
+
import React76, { useEffect as useEffect23, useRef as useRef15, useState as useState39 } from "react";
|
|
7313
7340
|
import clsx28 from "clsx";
|
|
7314
7341
|
|
|
7315
7342
|
// src/layout/Sidebar.tsx
|
|
@@ -7522,10 +7549,10 @@ var AppLayout = ({
|
|
|
7522
7549
|
lg: closeDrawerWidth
|
|
7523
7550
|
}
|
|
7524
7551
|
};
|
|
7525
|
-
const ref =
|
|
7552
|
+
const ref = useRef15(null);
|
|
7526
7553
|
const isRTL = direction === "rtl";
|
|
7527
|
-
const [openedSidebarItem, setOpenedSidebarItem] =
|
|
7528
|
-
const [selectedItem, setSelectedItem] =
|
|
7554
|
+
const [openedSidebarItem, setOpenedSidebarItem] = useState39("");
|
|
7555
|
+
const [selectedItem, setSelectedItem] = useState39(
|
|
7529
7556
|
currentPage ? currentPage : []
|
|
7530
7557
|
);
|
|
7531
7558
|
let size;
|
|
@@ -7534,10 +7561,10 @@ var AppLayout = ({
|
|
|
7534
7561
|
} else {
|
|
7535
7562
|
size = 1200;
|
|
7536
7563
|
}
|
|
7537
|
-
const [keepOpen, setKeepOpen] =
|
|
7538
|
-
const [openSideMenu, setOpenSideMenu] =
|
|
7564
|
+
const [keepOpen, setKeepOpen] = useState39(size > 600 ? true : false);
|
|
7565
|
+
const [openSideMenu, setOpenSideMenu] = useState39(size > 600 ? true : false);
|
|
7539
7566
|
let drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
|
|
7540
|
-
|
|
7567
|
+
useEffect23(() => {
|
|
7541
7568
|
const handleClickOutside = (event) => {
|
|
7542
7569
|
if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
|
|
7543
7570
|
setOpenSideMenu(false);
|
|
@@ -7827,7 +7854,7 @@ var AppLayout = ({
|
|
|
7827
7854
|
};
|
|
7828
7855
|
|
|
7829
7856
|
// src/layout/HawaAppLayout.tsx
|
|
7830
|
-
import React77, { useEffect as
|
|
7857
|
+
import React77, { useEffect as useEffect24, useRef as useRef16, useState as useState40 } from "react";
|
|
7831
7858
|
import clsx29 from "clsx";
|
|
7832
7859
|
import { FaChevronRight } from "react-icons/fa";
|
|
7833
7860
|
var HawaAppLayout = ({
|
|
@@ -7836,11 +7863,11 @@ var HawaAppLayout = ({
|
|
|
7836
7863
|
onSettingsClick,
|
|
7837
7864
|
...props
|
|
7838
7865
|
}) => {
|
|
7839
|
-
const [openSideMenu, setOpenSideMenu] =
|
|
7840
|
-
const [openSubItem, setOpenSubitem] =
|
|
7866
|
+
const [openSideMenu, setOpenSideMenu] = useState40(false);
|
|
7867
|
+
const [openSubItem, setOpenSubitem] = useState40("");
|
|
7841
7868
|
const { isOpen, onClose, onOpen } = useDiscloser_default(false);
|
|
7842
|
-
const [keepOpen, setKeepOpen] =
|
|
7843
|
-
const ref =
|
|
7869
|
+
const [keepOpen, setKeepOpen] = useState40(false);
|
|
7870
|
+
const ref = useRef16(null);
|
|
7844
7871
|
const isRTL = direction === "rtl";
|
|
7845
7872
|
let size;
|
|
7846
7873
|
if (typeof window !== "undefined") {
|
|
@@ -7848,7 +7875,7 @@ var HawaAppLayout = ({
|
|
|
7848
7875
|
} else {
|
|
7849
7876
|
size = 1200;
|
|
7850
7877
|
}
|
|
7851
|
-
|
|
7878
|
+
useEffect24(() => {
|
|
7852
7879
|
const handleClickOutside = (event) => {
|
|
7853
7880
|
if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
|
|
7854
7881
|
setOpenSideMenu(false);
|
|
@@ -8221,7 +8248,7 @@ var HawaAppLayout = ({
|
|
|
8221
8248
|
};
|
|
8222
8249
|
|
|
8223
8250
|
// src/layout/HawaAppLayoutSimplified.tsx
|
|
8224
|
-
import React78, { useEffect as
|
|
8251
|
+
import React78, { useEffect as useEffect25, useRef as useRef17, useState as useState41 } from "react";
|
|
8225
8252
|
import clsx30 from "clsx";
|
|
8226
8253
|
var HawaAppLayoutSimplified = ({
|
|
8227
8254
|
direction = "rtl",
|
|
@@ -8230,11 +8257,11 @@ var HawaAppLayoutSimplified = ({
|
|
|
8230
8257
|
DrawerFooterActions,
|
|
8231
8258
|
...props
|
|
8232
8259
|
}) => {
|
|
8233
|
-
const [openSideMenu, setOpenSideMenu] =
|
|
8234
|
-
const [openSubItem, setOpenSubitem] =
|
|
8260
|
+
const [openSideMenu, setOpenSideMenu] = useState41(false);
|
|
8261
|
+
const [openSubItem, setOpenSubitem] = useState41("");
|
|
8235
8262
|
const { isOpen, onClose, onOpen } = useDiscloser_default(false);
|
|
8236
|
-
const [keepOpen, setKeepOpen] =
|
|
8237
|
-
const ref =
|
|
8263
|
+
const [keepOpen, setKeepOpen] = useState41(false);
|
|
8264
|
+
const ref = useRef17(null);
|
|
8238
8265
|
const isRTL = direction === "rtl";
|
|
8239
8266
|
let size;
|
|
8240
8267
|
if (typeof window !== "undefined") {
|
|
@@ -8242,7 +8269,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8242
8269
|
} else {
|
|
8243
8270
|
size = 1200;
|
|
8244
8271
|
}
|
|
8245
|
-
|
|
8272
|
+
useEffect25(() => {
|
|
8246
8273
|
const handleClickOutside = (event) => {
|
|
8247
8274
|
if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
|
|
8248
8275
|
setOpenSideMenu(false);
|
|
@@ -8732,14 +8759,14 @@ var Footer = ({
|
|
|
8732
8759
|
};
|
|
8733
8760
|
|
|
8734
8761
|
// src/layout/Banner.tsx
|
|
8735
|
-
import React82, { useRef as
|
|
8762
|
+
import React82, { useRef as useRef18, useState as useState42 } from "react";
|
|
8736
8763
|
import clsx32 from "clsx";
|
|
8737
8764
|
var HawaBanner = ({
|
|
8738
8765
|
design = "floating",
|
|
8739
8766
|
...props
|
|
8740
8767
|
}) => {
|
|
8741
|
-
const bannerRef =
|
|
8742
|
-
const [closed, setClosed] =
|
|
8768
|
+
const bannerRef = useRef18(null);
|
|
8769
|
+
const [closed, setClosed] = useState42(false);
|
|
8743
8770
|
let bannerStyle = {
|
|
8744
8771
|
floating: "left-1/2 z-50 w-[calc(100%-2rem)] -translate-x-1/2 lg:max-w-7xl p-4 rounded",
|
|
8745
8772
|
default: "w-[calc(100%)] left-0 z-50 right-0 rounded-none p-2"
|
|
@@ -9199,7 +9226,7 @@ var AppLanding = (props) => {
|
|
|
9199
9226
|
};
|
|
9200
9227
|
|
|
9201
9228
|
// src/blocks/AuthForms/SignInPhone.tsx
|
|
9202
|
-
import React86, { useState as
|
|
9229
|
+
import React86, { useState as useState43 } from "react";
|
|
9203
9230
|
import { Controller as Controller2, useForm as useForm2 } from "react-hook-form";
|
|
9204
9231
|
var SignInPhone = (props) => {
|
|
9205
9232
|
const methods = useForm2();
|
|
@@ -9208,7 +9235,7 @@ var SignInPhone = (props) => {
|
|
|
9208
9235
|
handleSubmit,
|
|
9209
9236
|
control
|
|
9210
9237
|
} = methods;
|
|
9211
|
-
const [userPhone, setUserPhone] =
|
|
9238
|
+
const [userPhone, setUserPhone] = useState43("");
|
|
9212
9239
|
return /* @__PURE__ */ React86.createElement(Card, null, /* @__PURE__ */ React86.createElement(CardContent, { headless: true }, /* @__PURE__ */ React86.createElement(
|
|
9213
9240
|
"form",
|
|
9214
9241
|
{
|
|
@@ -9679,10 +9706,10 @@ var SignUpForm = (props) => {
|
|
|
9679
9706
|
};
|
|
9680
9707
|
|
|
9681
9708
|
// src/blocks/AuthForms/NewPasswordForm.tsx
|
|
9682
|
-
import React89, { useState as
|
|
9709
|
+
import React89, { useState as useState44 } from "react";
|
|
9683
9710
|
import { Controller as Controller5, FormProvider as FormProvider3, useForm as useForm5 } from "react-hook-form";
|
|
9684
9711
|
var NewPasswordForm = (props) => {
|
|
9685
|
-
const [matchError, setMatchError] =
|
|
9712
|
+
const [matchError, setMatchError] = useState44(false);
|
|
9686
9713
|
const methods = useForm5();
|
|
9687
9714
|
const {
|
|
9688
9715
|
formState: { errors },
|
|
@@ -9764,35 +9791,35 @@ var ResetPasswordForm = (props) => {
|
|
|
9764
9791
|
{
|
|
9765
9792
|
width: "full",
|
|
9766
9793
|
type: "text",
|
|
9767
|
-
label: props.texts
|
|
9794
|
+
label: props.texts?.emailLabel,
|
|
9768
9795
|
helpertext: errors.email?.message,
|
|
9769
|
-
placeholder: props.texts
|
|
9796
|
+
placeholder: props.texts?.emailPlaceholder,
|
|
9770
9797
|
...field,
|
|
9771
9798
|
value: field.value ?? ""
|
|
9772
9799
|
}
|
|
9773
9800
|
),
|
|
9774
9801
|
rules: {
|
|
9775
|
-
required: props.texts
|
|
9802
|
+
required: props.texts?.emailRequiredText,
|
|
9776
9803
|
pattern: {
|
|
9777
9804
|
value: /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
|
|
9778
|
-
message: props.texts
|
|
9805
|
+
message: props.texts?.emailInvalidText
|
|
9779
9806
|
}
|
|
9780
9807
|
}
|
|
9781
9808
|
}
|
|
9782
|
-
), /* @__PURE__ */ React90.createElement("div", { className: " pb-2 text-left text-sm dark:text-gray-300" }, props.texts
|
|
9809
|
+
), /* @__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(
|
|
9783
9810
|
"span",
|
|
9784
9811
|
{
|
|
9785
9812
|
onClick: props.handleRouteToSignUp,
|
|
9786
9813
|
className: "clickable-link"
|
|
9787
9814
|
},
|
|
9788
|
-
props.texts
|
|
9789
|
-
))), /* @__PURE__ */ React90.createElement(CardFooter, null, /* @__PURE__ */ React90.createElement(Button, { type: "submit", className: "w-full" }, props.texts
|
|
9815
|
+
props.texts?.signUpText ?? "Sign Up"
|
|
9816
|
+
))), /* @__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)));
|
|
9790
9817
|
};
|
|
9791
9818
|
|
|
9792
9819
|
// src/blocks/AuthForms/CodeConfirmation.tsx
|
|
9793
|
-
import React91, { useState as
|
|
9820
|
+
import React91, { useState as useState45 } from "react";
|
|
9794
9821
|
var CodeConfirmation = (props) => {
|
|
9795
|
-
const [pins, setPins] =
|
|
9822
|
+
const [pins, setPins] = useState45(null);
|
|
9796
9823
|
return /* @__PURE__ */ React91.createElement(Card, null, /* @__PURE__ */ React91.createElement(CardContent, { headless: true }, props.showError && /* @__PURE__ */ React91.createElement(
|
|
9797
9824
|
HawaAlert,
|
|
9798
9825
|
{
|
|
@@ -9816,11 +9843,32 @@ var CodeConfirmation = (props) => {
|
|
|
9816
9843
|
)));
|
|
9817
9844
|
};
|
|
9818
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
|
+
|
|
9819
9867
|
// src/blocks/Payment/SelectPayment.tsx
|
|
9820
|
-
import
|
|
9868
|
+
import React93, { useState as useState47 } from "react";
|
|
9821
9869
|
var SelectPayment = (props) => {
|
|
9822
|
-
const [selectedMethod, setSelectedMethod] =
|
|
9823
|
-
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(
|
|
9824
9872
|
Button,
|
|
9825
9873
|
{
|
|
9826
9874
|
className: cn(
|
|
@@ -9832,15 +9880,15 @@ var SelectPayment = (props) => {
|
|
|
9832
9880
|
disabled: !props.viaMada,
|
|
9833
9881
|
onClick: () => setSelectedMethod("mada")
|
|
9834
9882
|
},
|
|
9835
|
-
/* @__PURE__ */
|
|
9883
|
+
/* @__PURE__ */ React93.createElement(
|
|
9836
9884
|
"img",
|
|
9837
9885
|
{
|
|
9838
9886
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/mada.png",
|
|
9839
9887
|
className: "h-6"
|
|
9840
9888
|
}
|
|
9841
9889
|
),
|
|
9842
|
-
/* @__PURE__ */
|
|
9843
|
-
), /* @__PURE__ */
|
|
9890
|
+
/* @__PURE__ */ React93.createElement("span", null, props.madaLabel)
|
|
9891
|
+
), /* @__PURE__ */ React93.createElement(
|
|
9844
9892
|
Button,
|
|
9845
9893
|
{
|
|
9846
9894
|
className: cn(
|
|
@@ -9852,15 +9900,15 @@ var SelectPayment = (props) => {
|
|
|
9852
9900
|
disabled: !props.viaApplePay,
|
|
9853
9901
|
onClick: () => setSelectedMethod("apple-pay")
|
|
9854
9902
|
},
|
|
9855
|
-
/* @__PURE__ */
|
|
9903
|
+
/* @__PURE__ */ React93.createElement(
|
|
9856
9904
|
"img",
|
|
9857
9905
|
{
|
|
9858
9906
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/apple-pay.png",
|
|
9859
9907
|
className: "h-11"
|
|
9860
9908
|
}
|
|
9861
9909
|
),
|
|
9862
|
-
/* @__PURE__ */
|
|
9863
|
-
), /* @__PURE__ */
|
|
9910
|
+
/* @__PURE__ */ React93.createElement("span", null, props.applePayLabel)
|
|
9911
|
+
), /* @__PURE__ */ React93.createElement(
|
|
9864
9912
|
Button,
|
|
9865
9913
|
{
|
|
9866
9914
|
className: cn(
|
|
@@ -9872,15 +9920,15 @@ var SelectPayment = (props) => {
|
|
|
9872
9920
|
disabled: !props.viaCreditCard,
|
|
9873
9921
|
onClick: () => setSelectedMethod("visa-master")
|
|
9874
9922
|
},
|
|
9875
|
-
/* @__PURE__ */
|
|
9923
|
+
/* @__PURE__ */ React93.createElement(
|
|
9876
9924
|
"img",
|
|
9877
9925
|
{
|
|
9878
9926
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/visa-master.png",
|
|
9879
9927
|
className: "h-6"
|
|
9880
9928
|
}
|
|
9881
9929
|
),
|
|
9882
|
-
/* @__PURE__ */
|
|
9883
|
-
), /* @__PURE__ */
|
|
9930
|
+
/* @__PURE__ */ React93.createElement("span", null, props.visaMasterLabel)
|
|
9931
|
+
), /* @__PURE__ */ React93.createElement(
|
|
9884
9932
|
Button,
|
|
9885
9933
|
{
|
|
9886
9934
|
variant: "outline",
|
|
@@ -9892,7 +9940,7 @@ var SelectPayment = (props) => {
|
|
|
9892
9940
|
disabled: !props.viaWallet,
|
|
9893
9941
|
onClick: () => setSelectedMethod("wallet")
|
|
9894
9942
|
},
|
|
9895
|
-
/* @__PURE__ */
|
|
9943
|
+
/* @__PURE__ */ React93.createElement(
|
|
9896
9944
|
"svg",
|
|
9897
9945
|
{
|
|
9898
9946
|
version: "1.1",
|
|
@@ -9900,20 +9948,20 @@ var SelectPayment = (props) => {
|
|
|
9900
9948
|
viewBox: "0 0 223 223",
|
|
9901
9949
|
className: "h-6 w-6"
|
|
9902
9950
|
},
|
|
9903
|
-
/* @__PURE__ */
|
|
9951
|
+
/* @__PURE__ */ React93.createElement("g", null, /* @__PURE__ */ React93.createElement(
|
|
9904
9952
|
"path",
|
|
9905
9953
|
{
|
|
9906
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"
|
|
9907
9955
|
}
|
|
9908
|
-
), /* @__PURE__ */
|
|
9956
|
+
), /* @__PURE__ */ React93.createElement(
|
|
9909
9957
|
"path",
|
|
9910
9958
|
{
|
|
9911
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"
|
|
9912
9960
|
}
|
|
9913
9961
|
))
|
|
9914
9962
|
),
|
|
9915
|
-
/* @__PURE__ */
|
|
9916
|
-
), /* @__PURE__ */
|
|
9963
|
+
/* @__PURE__ */ React93.createElement("span", null, props.walletLabel)
|
|
9964
|
+
), /* @__PURE__ */ React93.createElement(
|
|
9917
9965
|
Button,
|
|
9918
9966
|
{
|
|
9919
9967
|
variant: "outline",
|
|
@@ -9925,15 +9973,15 @@ var SelectPayment = (props) => {
|
|
|
9925
9973
|
disabled: !props.viaSTCPay,
|
|
9926
9974
|
onClick: () => setSelectedMethod("stc-pay")
|
|
9927
9975
|
},
|
|
9928
|
-
/* @__PURE__ */
|
|
9976
|
+
/* @__PURE__ */ React93.createElement(
|
|
9929
9977
|
"img",
|
|
9930
9978
|
{
|
|
9931
9979
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/stc-pay.png",
|
|
9932
9980
|
className: "h-6"
|
|
9933
9981
|
}
|
|
9934
9982
|
),
|
|
9935
|
-
/* @__PURE__ */
|
|
9936
|
-
), /* @__PURE__ */
|
|
9983
|
+
/* @__PURE__ */ React93.createElement("span", null, props.stcPayLabel)
|
|
9984
|
+
), /* @__PURE__ */ React93.createElement(
|
|
9937
9985
|
Button,
|
|
9938
9986
|
{
|
|
9939
9987
|
variant: "outline",
|
|
@@ -9945,15 +9993,15 @@ var SelectPayment = (props) => {
|
|
|
9945
9993
|
disabled: !props.viaGooglePay,
|
|
9946
9994
|
onClick: () => setSelectedMethod("google-pay")
|
|
9947
9995
|
},
|
|
9948
|
-
/* @__PURE__ */
|
|
9996
|
+
/* @__PURE__ */ React93.createElement(
|
|
9949
9997
|
"img",
|
|
9950
9998
|
{
|
|
9951
9999
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/google-pay.png",
|
|
9952
10000
|
className: "h-6"
|
|
9953
10001
|
}
|
|
9954
10002
|
),
|
|
9955
|
-
/* @__PURE__ */
|
|
9956
|
-
), /* @__PURE__ */
|
|
10003
|
+
/* @__PURE__ */ React93.createElement("span", null, props.googlePayLabel)
|
|
10004
|
+
), /* @__PURE__ */ React93.createElement(
|
|
9957
10005
|
Button,
|
|
9958
10006
|
{
|
|
9959
10007
|
variant: "outline",
|
|
@@ -9965,15 +10013,15 @@ var SelectPayment = (props) => {
|
|
|
9965
10013
|
disabled: !props.viaPayPal,
|
|
9966
10014
|
onClick: () => setSelectedMethod("paypal")
|
|
9967
10015
|
},
|
|
9968
|
-
/* @__PURE__ */
|
|
10016
|
+
/* @__PURE__ */ React93.createElement(
|
|
9969
10017
|
"img",
|
|
9970
10018
|
{
|
|
9971
10019
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/paypal.png",
|
|
9972
10020
|
className: "h-6"
|
|
9973
10021
|
}
|
|
9974
10022
|
),
|
|
9975
|
-
/* @__PURE__ */
|
|
9976
|
-
)), /* @__PURE__ */
|
|
10023
|
+
/* @__PURE__ */ React93.createElement("span", null, props.paypalLabel)
|
|
10024
|
+
)), /* @__PURE__ */ React93.createElement(CardFooter, null, /* @__PURE__ */ React93.createElement(
|
|
9977
10025
|
Button,
|
|
9978
10026
|
{
|
|
9979
10027
|
onClick: () => props.handleContinue(selectedMethod),
|
|
@@ -9985,7 +10033,7 @@ var SelectPayment = (props) => {
|
|
|
9985
10033
|
};
|
|
9986
10034
|
|
|
9987
10035
|
// src/blocks/Payment/CreditCardForm.tsx
|
|
9988
|
-
import
|
|
10036
|
+
import React94 from "react";
|
|
9989
10037
|
import { Controller as Controller7, useForm as useForm7 } from "react-hook-form";
|
|
9990
10038
|
var CreditCardForm = (props) => {
|
|
9991
10039
|
const methods = useForm7();
|
|
@@ -9994,12 +10042,12 @@ var CreditCardForm = (props) => {
|
|
|
9994
10042
|
handleSubmit,
|
|
9995
10043
|
control
|
|
9996
10044
|
} = methods;
|
|
9997
|
-
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(
|
|
9998
10046
|
Controller7,
|
|
9999
10047
|
{
|
|
10000
10048
|
control,
|
|
10001
10049
|
name: "cardName",
|
|
10002
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10050
|
+
render: ({ field }) => /* @__PURE__ */ React94.createElement(
|
|
10003
10051
|
HawaTextField,
|
|
10004
10052
|
{
|
|
10005
10053
|
width: "full",
|
|
@@ -10014,12 +10062,12 @@ var CreditCardForm = (props) => {
|
|
|
10014
10062
|
required: "Card Number is rquired"
|
|
10015
10063
|
}
|
|
10016
10064
|
}
|
|
10017
|
-
), /* @__PURE__ */
|
|
10065
|
+
), /* @__PURE__ */ React94.createElement("div", { className: "w-1/4" }, /* @__PURE__ */ React94.createElement(
|
|
10018
10066
|
Controller7,
|
|
10019
10067
|
{
|
|
10020
10068
|
control,
|
|
10021
10069
|
name: "cardCVC",
|
|
10022
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10070
|
+
render: ({ field }) => /* @__PURE__ */ React94.createElement(
|
|
10023
10071
|
HawaTextField,
|
|
10024
10072
|
{
|
|
10025
10073
|
width: "full",
|
|
@@ -10036,12 +10084,12 @@ var CreditCardForm = (props) => {
|
|
|
10036
10084
|
required: "Password is rquired"
|
|
10037
10085
|
}
|
|
10038
10086
|
}
|
|
10039
|
-
))), /* @__PURE__ */
|
|
10087
|
+
))), /* @__PURE__ */ React94.createElement(
|
|
10040
10088
|
Controller7,
|
|
10041
10089
|
{
|
|
10042
10090
|
control,
|
|
10043
10091
|
name: "cardExpiry",
|
|
10044
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10092
|
+
render: ({ field }) => /* @__PURE__ */ React94.createElement(
|
|
10045
10093
|
HawaTextField,
|
|
10046
10094
|
{
|
|
10047
10095
|
width: "full",
|
|
@@ -10056,12 +10104,12 @@ var CreditCardForm = (props) => {
|
|
|
10056
10104
|
required: "Password is rquired"
|
|
10057
10105
|
}
|
|
10058
10106
|
}
|
|
10059
|
-
), /* @__PURE__ */
|
|
10107
|
+
), /* @__PURE__ */ React94.createElement(
|
|
10060
10108
|
Controller7,
|
|
10061
10109
|
{
|
|
10062
10110
|
control,
|
|
10063
10111
|
name: "cardName",
|
|
10064
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10112
|
+
render: ({ field }) => /* @__PURE__ */ React94.createElement(
|
|
10065
10113
|
HawaTextField,
|
|
10066
10114
|
{
|
|
10067
10115
|
width: "full",
|
|
@@ -10075,24 +10123,24 @@ var CreditCardForm = (props) => {
|
|
|
10075
10123
|
required: "Card holder name is rquired"
|
|
10076
10124
|
}
|
|
10077
10125
|
}
|
|
10078
|
-
)), /* @__PURE__ */
|
|
10126
|
+
)), /* @__PURE__ */ React94.createElement(CardFooter, null, /* @__PURE__ */ React94.createElement(Button, { className: "w-full", onClick: props.handlePayWithCreditCard }, "Pay with Credit Card"))));
|
|
10079
10127
|
};
|
|
10080
10128
|
|
|
10081
10129
|
// src/blocks/Payment/ChargeWalletForm.tsx
|
|
10082
|
-
import
|
|
10130
|
+
import React95, { useState as useState48 } from "react";
|
|
10083
10131
|
var ChargeWalletForm = (props) => {
|
|
10084
|
-
const [walletAmount, setWalletAmount] =
|
|
10085
|
-
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)));
|
|
10086
10134
|
};
|
|
10087
10135
|
|
|
10088
10136
|
// src/blocks/Payment/PayWithWallet.tsx
|
|
10089
|
-
import
|
|
10137
|
+
import React96 from "react";
|
|
10090
10138
|
var PayWithWallet = (props) => {
|
|
10091
|
-
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")));
|
|
10092
10140
|
};
|
|
10093
10141
|
|
|
10094
10142
|
// src/blocks/Payment/CheckoutForm.tsx
|
|
10095
|
-
import
|
|
10143
|
+
import React97 from "react";
|
|
10096
10144
|
import { Controller as Controller8, FormProvider as FormProvider4, useForm as useForm8 } from "react-hook-form";
|
|
10097
10145
|
var CheckoutForm = (props) => {
|
|
10098
10146
|
let isArabic = props.lang === "ar";
|
|
@@ -10116,7 +10164,7 @@ var CheckoutForm = (props) => {
|
|
|
10116
10164
|
xl: "row"
|
|
10117
10165
|
}
|
|
10118
10166
|
};
|
|
10119
|
-
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(
|
|
10120
10168
|
HawaTable,
|
|
10121
10169
|
{
|
|
10122
10170
|
pagination: false,
|
|
@@ -10130,13 +10178,13 @@ var CheckoutForm = (props) => {
|
|
|
10130
10178
|
rows: props.products,
|
|
10131
10179
|
bordersWidth: "1"
|
|
10132
10180
|
}
|
|
10133
|
-
)))), /* @__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(
|
|
10134
10182
|
Controller8,
|
|
10135
10183
|
{
|
|
10136
10184
|
control,
|
|
10137
10185
|
name: "firstName",
|
|
10138
10186
|
rules: { required: props.texts?.required },
|
|
10139
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10187
|
+
render: ({ field }) => /* @__PURE__ */ React97.createElement(
|
|
10140
10188
|
HawaTextField,
|
|
10141
10189
|
{
|
|
10142
10190
|
type: "text",
|
|
@@ -10147,13 +10195,13 @@ var CheckoutForm = (props) => {
|
|
|
10147
10195
|
}
|
|
10148
10196
|
)
|
|
10149
10197
|
}
|
|
10150
|
-
), /* @__PURE__ */
|
|
10198
|
+
), /* @__PURE__ */ React97.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React97.createElement(
|
|
10151
10199
|
Controller8,
|
|
10152
10200
|
{
|
|
10153
10201
|
control,
|
|
10154
10202
|
name: "lastName",
|
|
10155
10203
|
rules: { required: props.texts?.required },
|
|
10156
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10204
|
+
render: ({ field }) => /* @__PURE__ */ React97.createElement(
|
|
10157
10205
|
HawaTextField,
|
|
10158
10206
|
{
|
|
10159
10207
|
width: "full",
|
|
@@ -10165,12 +10213,12 @@ var CheckoutForm = (props) => {
|
|
|
10165
10213
|
}
|
|
10166
10214
|
)
|
|
10167
10215
|
}
|
|
10168
|
-
)), /* @__PURE__ */
|
|
10216
|
+
)), /* @__PURE__ */ React97.createElement(
|
|
10169
10217
|
Controller8,
|
|
10170
10218
|
{
|
|
10171
10219
|
control,
|
|
10172
10220
|
name: "email",
|
|
10173
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10221
|
+
render: ({ field }) => /* @__PURE__ */ React97.createElement(
|
|
10174
10222
|
HawaTextField,
|
|
10175
10223
|
{
|
|
10176
10224
|
width: "full",
|
|
@@ -10189,13 +10237,13 @@ var CheckoutForm = (props) => {
|
|
|
10189
10237
|
}
|
|
10190
10238
|
}
|
|
10191
10239
|
}
|
|
10192
|
-
), /* @__PURE__ */
|
|
10240
|
+
), /* @__PURE__ */ React97.createElement("div", { className: "flex flex-col md:flex-row" }, /* @__PURE__ */ React97.createElement(
|
|
10193
10241
|
Controller8,
|
|
10194
10242
|
{
|
|
10195
10243
|
control,
|
|
10196
10244
|
name: "streetAddress",
|
|
10197
10245
|
rules: { required: props.texts?.required },
|
|
10198
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10246
|
+
render: ({ field }) => /* @__PURE__ */ React97.createElement(
|
|
10199
10247
|
HawaTextField,
|
|
10200
10248
|
{
|
|
10201
10249
|
width: "full",
|
|
@@ -10207,13 +10255,13 @@ var CheckoutForm = (props) => {
|
|
|
10207
10255
|
}
|
|
10208
10256
|
)
|
|
10209
10257
|
}
|
|
10210
|
-
)), /* @__PURE__ */
|
|
10258
|
+
)), /* @__PURE__ */ React97.createElement("div", { className: "flex flex-col md:flex-row" }, /* @__PURE__ */ React97.createElement(
|
|
10211
10259
|
Controller8,
|
|
10212
10260
|
{
|
|
10213
10261
|
control,
|
|
10214
10262
|
name: "province",
|
|
10215
10263
|
rules: { required: props.texts?.required },
|
|
10216
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10264
|
+
render: ({ field }) => /* @__PURE__ */ React97.createElement(
|
|
10217
10265
|
HawaTextField,
|
|
10218
10266
|
{
|
|
10219
10267
|
width: "full",
|
|
@@ -10225,13 +10273,13 @@ var CheckoutForm = (props) => {
|
|
|
10225
10273
|
}
|
|
10226
10274
|
)
|
|
10227
10275
|
}
|
|
10228
|
-
), /* @__PURE__ */
|
|
10276
|
+
), /* @__PURE__ */ React97.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React97.createElement(
|
|
10229
10277
|
Controller8,
|
|
10230
10278
|
{
|
|
10231
10279
|
control,
|
|
10232
10280
|
name: "city",
|
|
10233
10281
|
rules: { required: props.texts?.required },
|
|
10234
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10282
|
+
render: ({ field }) => /* @__PURE__ */ React97.createElement(
|
|
10235
10283
|
HawaTextField,
|
|
10236
10284
|
{
|
|
10237
10285
|
width: "full",
|
|
@@ -10243,13 +10291,13 @@ var CheckoutForm = (props) => {
|
|
|
10243
10291
|
}
|
|
10244
10292
|
)
|
|
10245
10293
|
}
|
|
10246
|
-
)), /* @__PURE__ */
|
|
10294
|
+
)), /* @__PURE__ */ React97.createElement("div", { className: "flex flex-col md:flex-row" }, /* @__PURE__ */ React97.createElement(
|
|
10247
10295
|
Controller8,
|
|
10248
10296
|
{
|
|
10249
10297
|
control,
|
|
10250
10298
|
name: "buildingNumber",
|
|
10251
10299
|
rules: { required: props.texts?.required },
|
|
10252
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10300
|
+
render: ({ field }) => /* @__PURE__ */ React97.createElement(
|
|
10253
10301
|
HawaTextField,
|
|
10254
10302
|
{
|
|
10255
10303
|
width: "full",
|
|
@@ -10261,13 +10309,13 @@ var CheckoutForm = (props) => {
|
|
|
10261
10309
|
}
|
|
10262
10310
|
)
|
|
10263
10311
|
}
|
|
10264
|
-
), /* @__PURE__ */
|
|
10312
|
+
), /* @__PURE__ */ React97.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React97.createElement(
|
|
10265
10313
|
Controller8,
|
|
10266
10314
|
{
|
|
10267
10315
|
control,
|
|
10268
10316
|
name: "zipCode",
|
|
10269
10317
|
rules: { required: props.texts?.required },
|
|
10270
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10318
|
+
render: ({ field }) => /* @__PURE__ */ React97.createElement(
|
|
10271
10319
|
HawaTextField,
|
|
10272
10320
|
{
|
|
10273
10321
|
width: "full",
|
|
@@ -10279,13 +10327,13 @@ var CheckoutForm = (props) => {
|
|
|
10279
10327
|
}
|
|
10280
10328
|
)
|
|
10281
10329
|
}
|
|
10282
|
-
)), /* @__PURE__ */
|
|
10330
|
+
)), /* @__PURE__ */ React97.createElement("div", { className: "mb-3" }, /* @__PURE__ */ React97.createElement(
|
|
10283
10331
|
Controller8,
|
|
10284
10332
|
{
|
|
10285
10333
|
control,
|
|
10286
10334
|
name: "country",
|
|
10287
10335
|
rules: { required: props.texts?.required },
|
|
10288
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10336
|
+
render: ({ field }) => /* @__PURE__ */ React97.createElement(
|
|
10289
10337
|
HawaSelect,
|
|
10290
10338
|
{
|
|
10291
10339
|
native: true,
|
|
@@ -10296,18 +10344,18 @@ var CheckoutForm = (props) => {
|
|
|
10296
10344
|
onChange: (e) => field.onChange(e.country_label),
|
|
10297
10345
|
value: field.value ?? ""
|
|
10298
10346
|
},
|
|
10299
|
-
/* @__PURE__ */
|
|
10300
|
-
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))
|
|
10301
10349
|
)
|
|
10302
10350
|
}
|
|
10303
|
-
))))), /* @__PURE__ */
|
|
10351
|
+
))))), /* @__PURE__ */ React97.createElement(CardFooter, null, /* @__PURE__ */ React97.createElement(Button, { className: "w-full" }, props.texts.payNow)), " "));
|
|
10304
10352
|
};
|
|
10305
10353
|
|
|
10306
10354
|
// src/blocks/Payment/Confirmation.tsx
|
|
10307
|
-
import
|
|
10355
|
+
import React98 from "react";
|
|
10308
10356
|
var ConfirmationPage = (props) => {
|
|
10309
10357
|
let isArabic = props.lang === "ar";
|
|
10310
|
-
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(
|
|
10311
10359
|
"a",
|
|
10312
10360
|
{
|
|
10313
10361
|
className: "clickable-link text-xs",
|
|
@@ -10318,9 +10366,9 @@ var ConfirmationPage = (props) => {
|
|
|
10318
10366
|
};
|
|
10319
10367
|
|
|
10320
10368
|
// src/blocks/Pricing/PricingPlans.tsx
|
|
10321
|
-
import
|
|
10369
|
+
import React99 from "react";
|
|
10322
10370
|
var PricingPlans = (props) => {
|
|
10323
|
-
return /* @__PURE__ */
|
|
10371
|
+
return /* @__PURE__ */ React99.createElement("div", null, /* @__PURE__ */ React99.createElement("div", { className: "mb-2 flex w-full justify-between" }, /* @__PURE__ */ React99.createElement(
|
|
10324
10372
|
HawaRadio,
|
|
10325
10373
|
{
|
|
10326
10374
|
design: "tabs",
|
|
@@ -10328,7 +10376,7 @@ var PricingPlans = (props) => {
|
|
|
10328
10376
|
options: props.billingCycles,
|
|
10329
10377
|
onChangeTab: (e) => props.onCycleChange(e)
|
|
10330
10378
|
}
|
|
10331
|
-
), /* @__PURE__ */
|
|
10379
|
+
), /* @__PURE__ */ React99.createElement(
|
|
10332
10380
|
HawaRadio,
|
|
10333
10381
|
{
|
|
10334
10382
|
design: "tabs",
|
|
@@ -10336,8 +10384,8 @@ var PricingPlans = (props) => {
|
|
|
10336
10384
|
options: props.currencies,
|
|
10337
10385
|
onChangeTab: (e) => props.onCurrencyChange(e)
|
|
10338
10386
|
}
|
|
10339
|
-
)), /* @__PURE__ */
|
|
10340
|
-
return /* @__PURE__ */
|
|
10387
|
+
)), /* @__PURE__ */ React99.createElement("div", { className: "flex flex-row justify-between" }, props.plans.map((plan, index) => {
|
|
10388
|
+
return /* @__PURE__ */ React99.createElement(
|
|
10341
10389
|
HawaPricingCard,
|
|
10342
10390
|
{
|
|
10343
10391
|
key: index,
|
|
@@ -10354,8 +10402,8 @@ var PricingPlans = (props) => {
|
|
|
10354
10402
|
};
|
|
10355
10403
|
|
|
10356
10404
|
// src/blocks/Pricing/ComparingPlans.tsx
|
|
10357
|
-
import
|
|
10358
|
-
var CheckMark = () => /* @__PURE__ */
|
|
10405
|
+
import React100, { useState as useState49 } from "react";
|
|
10406
|
+
var CheckMark = () => /* @__PURE__ */ React100.createElement(
|
|
10359
10407
|
"svg",
|
|
10360
10408
|
{
|
|
10361
10409
|
className: "h-5 w-5 text-green-500",
|
|
@@ -10363,7 +10411,7 @@ var CheckMark = () => /* @__PURE__ */ React99.createElement(
|
|
|
10363
10411
|
fill: "currentColor",
|
|
10364
10412
|
viewBox: "0 0 20 20"
|
|
10365
10413
|
},
|
|
10366
|
-
/* @__PURE__ */
|
|
10414
|
+
/* @__PURE__ */ React100.createElement(
|
|
10367
10415
|
"path",
|
|
10368
10416
|
{
|
|
10369
10417
|
fillRule: "evenodd",
|
|
@@ -10372,7 +10420,7 @@ var CheckMark = () => /* @__PURE__ */ React99.createElement(
|
|
|
10372
10420
|
}
|
|
10373
10421
|
)
|
|
10374
10422
|
);
|
|
10375
|
-
var UncheckMark = () => /* @__PURE__ */
|
|
10423
|
+
var UncheckMark = () => /* @__PURE__ */ React100.createElement(
|
|
10376
10424
|
"svg",
|
|
10377
10425
|
{
|
|
10378
10426
|
className: "h-5 w-5 text-red-500",
|
|
@@ -10380,7 +10428,7 @@ var UncheckMark = () => /* @__PURE__ */ React99.createElement(
|
|
|
10380
10428
|
fill: "currentColor",
|
|
10381
10429
|
viewBox: "0 0 20 20"
|
|
10382
10430
|
},
|
|
10383
|
-
/* @__PURE__ */
|
|
10431
|
+
/* @__PURE__ */ React100.createElement(
|
|
10384
10432
|
"path",
|
|
10385
10433
|
{
|
|
10386
10434
|
fillRule: "evenodd",
|
|
@@ -10390,9 +10438,9 @@ var UncheckMark = () => /* @__PURE__ */ React99.createElement(
|
|
|
10390
10438
|
)
|
|
10391
10439
|
);
|
|
10392
10440
|
var ComparingPlans = (props) => {
|
|
10393
|
-
const [currentCurrency, setCurrentCurrency] =
|
|
10394
|
-
const [currentCycle, setCurrentCycle] =
|
|
10395
|
-
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(
|
|
10396
10444
|
HawaRadio,
|
|
10397
10445
|
{
|
|
10398
10446
|
design: "tabs",
|
|
@@ -10400,7 +10448,7 @@ var ComparingPlans = (props) => {
|
|
|
10400
10448
|
options: props.billingCycles,
|
|
10401
10449
|
onChangeTab: (e) => props.onCycleChange(e)
|
|
10402
10450
|
}
|
|
10403
|
-
), /* @__PURE__ */
|
|
10451
|
+
), /* @__PURE__ */ React100.createElement(
|
|
10404
10452
|
HawaRadio,
|
|
10405
10453
|
{
|
|
10406
10454
|
design: "tabs",
|
|
@@ -10408,9 +10456,9 @@ var ComparingPlans = (props) => {
|
|
|
10408
10456
|
options: props.currencies,
|
|
10409
10457
|
onChangeTab: (e) => props.onCurrencyChange(e)
|
|
10410
10458
|
}
|
|
10411
|
-
)), /* @__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) => {
|
|
10412
10460
|
return plan.features.map((feature) => {
|
|
10413
|
-
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(
|
|
10414
10462
|
"svg",
|
|
10415
10463
|
{
|
|
10416
10464
|
stroke: "currentColor",
|
|
@@ -10420,44 +10468,44 @@ var ComparingPlans = (props) => {
|
|
|
10420
10468
|
height: "1em",
|
|
10421
10469
|
width: "1em"
|
|
10422
10470
|
},
|
|
10423
|
-
/* @__PURE__ */
|
|
10424
|
-
))), /* @__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));
|
|
10425
10473
|
});
|
|
10426
10474
|
})));
|
|
10427
10475
|
};
|
|
10428
10476
|
|
|
10429
10477
|
// src/blocks/Pricing/HorizontalPricing.tsx
|
|
10430
|
-
import
|
|
10478
|
+
import React101, { useState as useState50 } from "react";
|
|
10431
10479
|
import clsx33 from "clsx";
|
|
10432
10480
|
var HorizontalPricing = (props) => {
|
|
10433
|
-
const [selectedCard, setSelectedCard] =
|
|
10481
|
+
const [selectedCard, setSelectedCard] = useState50(null);
|
|
10434
10482
|
let data = [
|
|
10435
10483
|
{ title: "basic", price: "$49", cycle: "/mo" },
|
|
10436
10484
|
{ title: "business", price: "$99", cycle: "/mo" },
|
|
10437
10485
|
{ title: "enterprise", price: "$149", cycle: "/mo" }
|
|
10438
10486
|
];
|
|
10439
|
-
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(
|
|
10440
10488
|
HawaRadio,
|
|
10441
10489
|
{
|
|
10442
10490
|
design: "tabs",
|
|
10443
10491
|
options: props.currencies,
|
|
10444
10492
|
defaultValue: props.currentCurrency
|
|
10445
10493
|
}
|
|
10446
|
-
), /* @__PURE__ */
|
|
10494
|
+
), /* @__PURE__ */ React101.createElement(
|
|
10447
10495
|
HawaRadio,
|
|
10448
10496
|
{
|
|
10449
10497
|
design: "tabs",
|
|
10450
10498
|
options: props.billingCycles,
|
|
10451
10499
|
defaultValue: props.currentCycle
|
|
10452
10500
|
}
|
|
10453
|
-
)), data.map((d) => /* @__PURE__ */
|
|
10501
|
+
)), data.map((d) => /* @__PURE__ */ React101.createElement(
|
|
10454
10502
|
"label",
|
|
10455
10503
|
{
|
|
10456
10504
|
htmlFor: d.title,
|
|
10457
10505
|
className: "",
|
|
10458
10506
|
onClick: () => setSelectedCard(d.title)
|
|
10459
10507
|
},
|
|
10460
|
-
/* @__PURE__ */
|
|
10508
|
+
/* @__PURE__ */ React101.createElement(
|
|
10461
10509
|
"input",
|
|
10462
10510
|
{
|
|
10463
10511
|
type: "radio",
|
|
@@ -10466,7 +10514,7 @@ var HorizontalPricing = (props) => {
|
|
|
10466
10514
|
className: "peer appearance-none"
|
|
10467
10515
|
}
|
|
10468
10516
|
),
|
|
10469
|
-
/* @__PURE__ */
|
|
10517
|
+
/* @__PURE__ */ React101.createElement(
|
|
10470
10518
|
"div",
|
|
10471
10519
|
{
|
|
10472
10520
|
className: clsx33(
|
|
@@ -10474,18 +10522,18 @@ var HorizontalPricing = (props) => {
|
|
|
10474
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"
|
|
10475
10523
|
)
|
|
10476
10524
|
},
|
|
10477
|
-
/* @__PURE__ */
|
|
10525
|
+
/* @__PURE__ */ React101.createElement("div", { className: "peer flex items-center gap-4" }, /* @__PURE__ */ React101.createElement(CheckIcons, null), /* @__PURE__ */ React101.createElement(
|
|
10478
10526
|
CardText,
|
|
10479
10527
|
{
|
|
10480
10528
|
title: "Enterprise",
|
|
10481
10529
|
subtitle: "For startups and new businesses"
|
|
10482
10530
|
}
|
|
10483
10531
|
)),
|
|
10484
|
-
/* @__PURE__ */
|
|
10532
|
+
/* @__PURE__ */ React101.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
|
10485
10533
|
)
|
|
10486
10534
|
))));
|
|
10487
10535
|
};
|
|
10488
|
-
var CheckIcons = () => /* @__PURE__ */
|
|
10536
|
+
var CheckIcons = () => /* @__PURE__ */ React101.createElement(React101.Fragment, null, /* @__PURE__ */ React101.createElement(
|
|
10489
10537
|
"svg",
|
|
10490
10538
|
{
|
|
10491
10539
|
fill: "none",
|
|
@@ -10494,7 +10542,7 @@ var CheckIcons = () => /* @__PURE__ */ React100.createElement(React100.Fragment,
|
|
|
10494
10542
|
stroke: "currentColor",
|
|
10495
10543
|
className: "default h-8 w-8 text-neutral-500"
|
|
10496
10544
|
},
|
|
10497
|
-
/* @__PURE__ */
|
|
10545
|
+
/* @__PURE__ */ React101.createElement(
|
|
10498
10546
|
"path",
|
|
10499
10547
|
{
|
|
10500
10548
|
strokeLinecap: "round",
|
|
@@ -10502,14 +10550,14 @@ var CheckIcons = () => /* @__PURE__ */ React100.createElement(React100.Fragment,
|
|
|
10502
10550
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
10503
10551
|
}
|
|
10504
10552
|
)
|
|
10505
|
-
), /* @__PURE__ */
|
|
10553
|
+
), /* @__PURE__ */ React101.createElement(
|
|
10506
10554
|
"svg",
|
|
10507
10555
|
{
|
|
10508
10556
|
viewBox: "0 0 24 24",
|
|
10509
10557
|
fill: "currentColor",
|
|
10510
10558
|
className: "active hidden h-8 w-8 text-blue-500"
|
|
10511
10559
|
},
|
|
10512
|
-
/* @__PURE__ */
|
|
10560
|
+
/* @__PURE__ */ React101.createElement(
|
|
10513
10561
|
"path",
|
|
10514
10562
|
{
|
|
10515
10563
|
fillRule: "evenodd",
|
|
@@ -10518,21 +10566,21 @@ var CheckIcons = () => /* @__PURE__ */ React100.createElement(React100.Fragment,
|
|
|
10518
10566
|
}
|
|
10519
10567
|
)
|
|
10520
10568
|
));
|
|
10521
|
-
var CardText = (props) => /* @__PURE__ */
|
|
10522
|
-
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));
|
|
10523
10571
|
|
|
10524
10572
|
// src/blocks/Referral/ReferralAccount.tsx
|
|
10525
|
-
import
|
|
10573
|
+
import React102 from "react";
|
|
10526
10574
|
var ReferralAccount = ({
|
|
10527
10575
|
referralLink,
|
|
10528
10576
|
referralCode
|
|
10529
10577
|
}) => {
|
|
10530
|
-
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(
|
|
10531
10579
|
Button,
|
|
10532
10580
|
{
|
|
10533
10581
|
onClick: () => navigator.clipboard.writeText(referralCode)
|
|
10534
10582
|
},
|
|
10535
|
-
/* @__PURE__ */
|
|
10583
|
+
/* @__PURE__ */ React102.createElement("span", { className: "bg-red flex items-center justify-center" }, /* @__PURE__ */ React102.createElement(
|
|
10536
10584
|
"svg",
|
|
10537
10585
|
{
|
|
10538
10586
|
stroke: "currentColor",
|
|
@@ -10542,14 +10590,14 @@ var ReferralAccount = ({
|
|
|
10542
10590
|
height: "1em",
|
|
10543
10591
|
width: "1em"
|
|
10544
10592
|
},
|
|
10545
|
-
/* @__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" })
|
|
10546
10594
|
), " ")
|
|
10547
|
-
))), /* @__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(
|
|
10548
10596
|
Button,
|
|
10549
10597
|
{
|
|
10550
10598
|
onClick: () => navigator.clipboard.writeText(referralLink)
|
|
10551
10599
|
},
|
|
10552
|
-
/* @__PURE__ */
|
|
10600
|
+
/* @__PURE__ */ React102.createElement("span", { className: "bg-red flex items-center justify-center" }, /* @__PURE__ */ React102.createElement(
|
|
10553
10601
|
"svg",
|
|
10554
10602
|
{
|
|
10555
10603
|
stroke: "currentColor",
|
|
@@ -10559,13 +10607,13 @@ var ReferralAccount = ({
|
|
|
10559
10607
|
height: "1em",
|
|
10560
10608
|
width: "1em"
|
|
10561
10609
|
},
|
|
10562
|
-
/* @__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" })
|
|
10563
10611
|
), " ")
|
|
10564
10612
|
)))));
|
|
10565
10613
|
};
|
|
10566
10614
|
|
|
10567
10615
|
// src/blocks/Referral/ReferralSettlement.tsx
|
|
10568
|
-
import
|
|
10616
|
+
import React103 from "react";
|
|
10569
10617
|
import { Controller as Controller9, FormProvider as FormProvider5, useForm as useForm9 } from "react-hook-form";
|
|
10570
10618
|
var ReferralSettlement = ({
|
|
10571
10619
|
referralLink,
|
|
@@ -10578,12 +10626,12 @@ var ReferralSettlement = ({
|
|
|
10578
10626
|
handleSubmit,
|
|
10579
10627
|
control
|
|
10580
10628
|
} = methods;
|
|
10581
|
-
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(
|
|
10582
10630
|
Controller9,
|
|
10583
10631
|
{
|
|
10584
10632
|
control,
|
|
10585
10633
|
name: "bank",
|
|
10586
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10634
|
+
render: ({ field }) => /* @__PURE__ */ React103.createElement(
|
|
10587
10635
|
HawaSelect,
|
|
10588
10636
|
{
|
|
10589
10637
|
label: "Bank",
|
|
@@ -10602,13 +10650,13 @@ var ReferralSettlement = ({
|
|
|
10602
10650
|
}
|
|
10603
10651
|
)
|
|
10604
10652
|
}
|
|
10605
|
-
))), /* @__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(
|
|
10606
10654
|
HawaAlert,
|
|
10607
10655
|
{
|
|
10608
10656
|
text: "Sorry can't withdraw the money at the moment. Please try again in 2022/11/20",
|
|
10609
10657
|
severity: "warning"
|
|
10610
10658
|
}
|
|
10611
|
-
)), /* @__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(
|
|
10612
10660
|
SettlementAccountCard,
|
|
10613
10661
|
{
|
|
10614
10662
|
bank: "Al Inma Bank",
|
|
@@ -10616,14 +10664,14 @@ var ReferralSettlement = ({
|
|
|
10616
10664
|
accountHolder: "Zakher Masri",
|
|
10617
10665
|
default: true
|
|
10618
10666
|
}
|
|
10619
|
-
), /* @__PURE__ */
|
|
10667
|
+
), /* @__PURE__ */ React103.createElement(
|
|
10620
10668
|
SettlementAccountCard,
|
|
10621
10669
|
{
|
|
10622
10670
|
bank: "Al Rajihi Bank",
|
|
10623
10671
|
iban: "SA10228094028098329119",
|
|
10624
10672
|
accountHolder: "Zakher Masri"
|
|
10625
10673
|
}
|
|
10626
|
-
), /* @__PURE__ */
|
|
10674
|
+
), /* @__PURE__ */ React103.createElement(
|
|
10627
10675
|
SettlementAccountCard,
|
|
10628
10676
|
{
|
|
10629
10677
|
bank: "Al Inma Bank",
|
|
@@ -10633,13 +10681,13 @@ var ReferralSettlement = ({
|
|
|
10633
10681
|
)))));
|
|
10634
10682
|
};
|
|
10635
10683
|
var SettlementAccountCard = (props) => {
|
|
10636
|
-
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(
|
|
10637
10685
|
HawaChip,
|
|
10638
10686
|
{
|
|
10639
10687
|
label: "Default",
|
|
10640
10688
|
size: "small"
|
|
10641
10689
|
}
|
|
10642
|
-
), /* @__PURE__ */
|
|
10690
|
+
), /* @__PURE__ */ React103.createElement(
|
|
10643
10691
|
HawaMenu,
|
|
10644
10692
|
{
|
|
10645
10693
|
size: "small",
|
|
@@ -10651,7 +10699,7 @@ var SettlementAccountCard = (props) => {
|
|
|
10651
10699
|
]
|
|
10652
10700
|
]
|
|
10653
10701
|
},
|
|
10654
|
-
/* @__PURE__ */
|
|
10702
|
+
/* @__PURE__ */ React103.createElement(Button, { variant: "outline", size: "icon" }, /* @__PURE__ */ React103.createElement(
|
|
10655
10703
|
"svg",
|
|
10656
10704
|
{
|
|
10657
10705
|
"aria-label": "Vertical Three Dots Menu Icon",
|
|
@@ -10663,53 +10711,53 @@ var SettlementAccountCard = (props) => {
|
|
|
10663
10711
|
height: "1em",
|
|
10664
10712
|
width: "1em"
|
|
10665
10713
|
},
|
|
10666
|
-
/* @__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" })
|
|
10667
10715
|
))
|
|
10668
10716
|
)));
|
|
10669
10717
|
};
|
|
10670
10718
|
|
|
10671
10719
|
// src/blocks/Referral/ReferralStats.tsx
|
|
10672
|
-
import
|
|
10720
|
+
import React104 from "react";
|
|
10673
10721
|
var ReferralStats = ({
|
|
10674
10722
|
referralLink,
|
|
10675
10723
|
referralCode,
|
|
10676
10724
|
withdrawError
|
|
10677
10725
|
}) => {
|
|
10678
|
-
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(
|
|
10679
10727
|
HawaAlert,
|
|
10680
10728
|
{
|
|
10681
10729
|
text: "Sorry can't withdraw the money at the moment. Please try again in 2022/11/20",
|
|
10682
10730
|
severity: "warning"
|
|
10683
10731
|
}
|
|
10684
|
-
)), /* @__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(
|
|
10685
10733
|
ReferralSignUpCard,
|
|
10686
10734
|
{
|
|
10687
10735
|
date: "2020/10/11 @ 9:45 pm",
|
|
10688
10736
|
email: "zakher@sikka.io",
|
|
10689
10737
|
amount: "3.4 SAR / Month"
|
|
10690
10738
|
}
|
|
10691
|
-
), /* @__PURE__ */
|
|
10739
|
+
), /* @__PURE__ */ React104.createElement(
|
|
10692
10740
|
ReferralSignUpCard,
|
|
10693
10741
|
{
|
|
10694
10742
|
date: "2022/10/11 @ 9:45 pm",
|
|
10695
10743
|
email: "zakher@sikka.io",
|
|
10696
10744
|
amount: "3.4 SAR / Month"
|
|
10697
10745
|
}
|
|
10698
|
-
), /* @__PURE__ */
|
|
10746
|
+
), /* @__PURE__ */ React104.createElement(
|
|
10699
10747
|
ReferralSignUpCard,
|
|
10700
10748
|
{
|
|
10701
10749
|
date: "2022/10/11 @ 9:45 pm",
|
|
10702
10750
|
email: "zakher@sikka.io",
|
|
10703
10751
|
amount: "3.4 SAR / Month"
|
|
10704
10752
|
}
|
|
10705
|
-
), /* @__PURE__ */
|
|
10753
|
+
), /* @__PURE__ */ React104.createElement(
|
|
10706
10754
|
ReferralSignUpCard,
|
|
10707
10755
|
{
|
|
10708
10756
|
date: "2022/10/11 @ 9:45 pm",
|
|
10709
10757
|
email: "zakher@sikka.io",
|
|
10710
10758
|
amount: "3.4 SAR / Month"
|
|
10711
10759
|
}
|
|
10712
|
-
), /* @__PURE__ */
|
|
10760
|
+
), /* @__PURE__ */ React104.createElement(
|
|
10713
10761
|
ReferralSignUpCard,
|
|
10714
10762
|
{
|
|
10715
10763
|
date: "2022/10/11 @ 9:45 pm",
|
|
@@ -10718,26 +10766,26 @@ var ReferralStats = ({
|
|
|
10718
10766
|
}
|
|
10719
10767
|
)))));
|
|
10720
10768
|
};
|
|
10721
|
-
var NumberCard = (props) => /* @__PURE__ */
|
|
10722
|
-
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)));
|
|
10723
10771
|
|
|
10724
10772
|
// src/blocks/Misc/NotFound.tsx
|
|
10725
|
-
import
|
|
10773
|
+
import React105 from "react";
|
|
10726
10774
|
var NotFound = ({
|
|
10727
10775
|
variant = "contained",
|
|
10728
10776
|
texts
|
|
10729
10777
|
}) => {
|
|
10730
|
-
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"))));
|
|
10731
10779
|
};
|
|
10732
10780
|
|
|
10733
10781
|
// src/blocks/Misc/EmptyState.tsx
|
|
10734
|
-
import
|
|
10782
|
+
import React106 from "react";
|
|
10735
10783
|
var EmptyState = ({
|
|
10736
10784
|
variant = "contained",
|
|
10737
10785
|
texts,
|
|
10738
10786
|
onActionClick
|
|
10739
10787
|
}) => {
|
|
10740
|
-
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(
|
|
10741
10789
|
"svg",
|
|
10742
10790
|
{
|
|
10743
10791
|
stroke: "currentColor",
|
|
@@ -10747,36 +10795,36 @@ var EmptyState = ({
|
|
|
10747
10795
|
height: "0.35em",
|
|
10748
10796
|
width: "0.35em"
|
|
10749
10797
|
},
|
|
10750
|
-
/* @__PURE__ */
|
|
10751
|
-
)), /* @__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")));
|
|
10752
10800
|
};
|
|
10753
10801
|
|
|
10754
10802
|
// src/blocks/Misc/Testimonial.tsx
|
|
10755
|
-
import
|
|
10803
|
+
import React107 from "react";
|
|
10756
10804
|
var Testimonial = (props) => {
|
|
10757
|
-
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(
|
|
10758
10806
|
"path",
|
|
10759
10807
|
{
|
|
10760
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",
|
|
10761
10809
|
fill: "#FFFFFF"
|
|
10762
10810
|
}
|
|
10763
|
-
), /* @__PURE__ */
|
|
10811
|
+
), /* @__PURE__ */ React107.createElement(
|
|
10764
10812
|
"path",
|
|
10765
10813
|
{
|
|
10766
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",
|
|
10767
10815
|
fill: "#FFFFFF"
|
|
10768
10816
|
}
|
|
10769
|
-
)), /* @__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")))));
|
|
10770
10818
|
};
|
|
10771
10819
|
|
|
10772
10820
|
// src/blocks/Misc/LeadGenerator.tsx
|
|
10773
|
-
import
|
|
10821
|
+
import React108 from "react";
|
|
10774
10822
|
var LeadGenerator = ({
|
|
10775
10823
|
variant = "contained",
|
|
10776
10824
|
texts,
|
|
10777
10825
|
handleNewsletterSub
|
|
10778
10826
|
}) => {
|
|
10779
|
-
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(
|
|
10780
10828
|
"form",
|
|
10781
10829
|
{
|
|
10782
10830
|
className: "flex flex-row gap-2",
|
|
@@ -10785,36 +10833,33 @@ var LeadGenerator = ({
|
|
|
10785
10833
|
handleNewsletterSub(e.target[0].value);
|
|
10786
10834
|
}
|
|
10787
10835
|
},
|
|
10788
|
-
/* @__PURE__ */
|
|
10789
|
-
/* @__PURE__ */
|
|
10836
|
+
/* @__PURE__ */ React108.createElement(Input, { type: "email", name: "email", placeholder: "example@sikka.io" }),
|
|
10837
|
+
/* @__PURE__ */ React108.createElement(Button, null, texts?.submit ?? "Submit")
|
|
10790
10838
|
)));
|
|
10791
10839
|
};
|
|
10792
10840
|
|
|
10793
10841
|
// src/blocks/Misc/Announcement.tsx
|
|
10794
|
-
import
|
|
10842
|
+
import React109 from "react";
|
|
10795
10843
|
var Announcement = ({
|
|
10796
10844
|
variant = "contained",
|
|
10797
10845
|
onActionClick,
|
|
10798
10846
|
...props
|
|
10799
10847
|
}) => {
|
|
10800
|
-
return /* @__PURE__ */
|
|
10848
|
+
return /* @__PURE__ */ React109.createElement(Card, null, /* @__PURE__ */ React109.createElement(
|
|
10801
10849
|
CardContent,
|
|
10802
10850
|
{
|
|
10803
10851
|
headless: true,
|
|
10804
10852
|
className: "flex flex-row items-center justify-between"
|
|
10805
10853
|
},
|
|
10806
|
-
/* @__PURE__ */
|
|
10807
|
-
/* @__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)
|
|
10808
10856
|
));
|
|
10809
10857
|
};
|
|
10810
10858
|
|
|
10811
10859
|
// src/blocks/Misc/NoPermission.tsx
|
|
10812
|
-
import
|
|
10813
|
-
var NoPermission = ({
|
|
10814
|
-
|
|
10815
|
-
texts
|
|
10816
|
-
}) => {
|
|
10817
|
-
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(
|
|
10818
10863
|
"svg",
|
|
10819
10864
|
{
|
|
10820
10865
|
stroke: "currentColor",
|
|
@@ -10824,12 +10869,12 @@ var NoPermission = ({
|
|
|
10824
10869
|
height: "0.35em",
|
|
10825
10870
|
width: "0.35em"
|
|
10826
10871
|
},
|
|
10827
|
-
/* @__PURE__ */
|
|
10828
|
-
), " "), /* @__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"))));
|
|
10829
10874
|
};
|
|
10830
10875
|
|
|
10831
10876
|
// src/hooks/useHover.ts
|
|
10832
|
-
import { useEffect as
|
|
10877
|
+
import { useEffect as useEffect27, useRef as useRef19, useState as useState51 } from "react";
|
|
10833
10878
|
export {
|
|
10834
10879
|
ActionCard,
|
|
10835
10880
|
Announcement,
|
|
@@ -10848,6 +10893,7 @@ export {
|
|
|
10848
10893
|
CardTitle,
|
|
10849
10894
|
Carousel,
|
|
10850
10895
|
ChargeWalletForm,
|
|
10896
|
+
CheckEmail,
|
|
10851
10897
|
CheckoutForm,
|
|
10852
10898
|
CodeConfirmation,
|
|
10853
10899
|
ComparingPlans,
|
|
@@ -10962,3 +11008,4 @@ export {
|
|
|
10962
11008
|
toast,
|
|
10963
11009
|
useToast
|
|
10964
11010
|
};
|
|
11011
|
+
//# sourceMappingURL=index.mjs.map
|