@sikka/hawa 0.1.59 → 0.1.61
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 +63 -80
- package/dist/index.d.ts +63 -80
- package/dist/index.js +330 -214
- package/dist/index.mjs +795 -677
- package/dist/styles.css +61 -0
- package/package.json +3 -2
- package/src/elements/Button.tsx +1 -1
- package/src/elements/Dialog.tsx +136 -0
- package/src/elements/DropdownMenu.tsx +16 -16
- package/src/elements/HawaAlert.tsx +9 -5
- package/src/elements/HawaItemCard.tsx +29 -22
- package/src/elements/HawaTable.tsx +3 -20
- package/src/elements/index.ts +1 -0
- package/src/layout/AppLayout.tsx +2 -13
- package/src/layout/HawaAppLayoutSimplified.tsx +2 -13
- package/src/styles.css +61 -0
- package/tools/build-styles.js +0 -17
package/dist/index.mjs
CHANGED
|
@@ -778,8 +778,10 @@ Button.displayName = "Button";
|
|
|
778
778
|
var HawaAlert = ({
|
|
779
779
|
variant = "normal",
|
|
780
780
|
direction = "ltr",
|
|
781
|
+
severity = "info",
|
|
781
782
|
duration,
|
|
782
783
|
icon,
|
|
784
|
+
className,
|
|
783
785
|
...props
|
|
784
786
|
}) => {
|
|
785
787
|
const alertRef = useRef3(null);
|
|
@@ -848,8 +850,9 @@ var HawaAlert = ({
|
|
|
848
850
|
{
|
|
849
851
|
className: clsx7(
|
|
850
852
|
"relative mb-4 flex flex-col rounded p-4 text-sm transition-all",
|
|
851
|
-
styleVariant[variant][
|
|
852
|
-
closed ? "opacity-0" : "opacity-100"
|
|
853
|
+
styleVariant[variant][severity],
|
|
854
|
+
closed ? "opacity-0" : "opacity-100",
|
|
855
|
+
className
|
|
853
856
|
),
|
|
854
857
|
role: "alert",
|
|
855
858
|
dir: direction
|
|
@@ -863,7 +866,7 @@ var HawaAlert = ({
|
|
|
863
866
|
)
|
|
864
867
|
},
|
|
865
868
|
props.title
|
|
866
|
-
), /* @__PURE__ */ React17.createElement("span", null,
|
|
869
|
+
), /* @__PURE__ */ React17.createElement("span", null, props.text), props.actions && /* @__PURE__ */ React17.createElement("div", { className: "mt-2 flex flex-row gap-2" }, props.actions.map((act, index) => /* @__PURE__ */ React17.createElement(
|
|
867
870
|
Button,
|
|
868
871
|
{
|
|
869
872
|
key: index,
|
|
@@ -878,7 +881,7 @@ var HawaAlert = ({
|
|
|
878
881
|
type: "button",
|
|
879
882
|
className: clsx7(
|
|
880
883
|
"absolute top-2 inline-flex h-9 w-9 items-center justify-center rounded-inner p-1.5 text-gray-400 transition-all hover:text-gray-900",
|
|
881
|
-
closeButtonStyle[
|
|
884
|
+
closeButtonStyle[severity],
|
|
882
885
|
direction === "rtl" ? "left-2" : "right-2"
|
|
883
886
|
),
|
|
884
887
|
"data-dismiss-target": "#alert-default",
|
|
@@ -5904,187 +5907,8 @@ var HawaPinInput = ({
|
|
|
5904
5907
|
};
|
|
5905
5908
|
|
|
5906
5909
|
// src/elements/HawaItemCard.tsx
|
|
5907
|
-
import
|
|
5908
|
-
import clsx23 from "clsx";
|
|
5909
|
-
|
|
5910
|
-
// src/elements/HawaButton.tsx
|
|
5911
|
-
import React52, { useState as useState28 } from "react";
|
|
5910
|
+
import React52, { useEffect as useEffect18, useState as useState28 } from "react";
|
|
5912
5911
|
import clsx22 from "clsx";
|
|
5913
|
-
var disabledSyles = "cursor-default pointer-events-none";
|
|
5914
|
-
var disabledVariantSyles = {
|
|
5915
|
-
contained: "text-gray-300 bg-gray-100",
|
|
5916
|
-
outlined: "text-gray-300 border-gray-300"
|
|
5917
|
-
};
|
|
5918
|
-
var baseStyles = "cursor-pointer justify-center items-center text-center font-medium transition-all ";
|
|
5919
|
-
var sizeStyles = {
|
|
5920
|
-
icon: "h-10 w-10",
|
|
5921
|
-
xs: "px-1.5 py-2 text-[9px] h-fit",
|
|
5922
|
-
small: "text-xs px-2.5 py-1.5",
|
|
5923
|
-
medium: "text-sm leading-4 px-3 py-2",
|
|
5924
|
-
default: "h-10 px-4 py-2",
|
|
5925
|
-
large: "text-sm px-4 py-2",
|
|
5926
|
-
noPadding: "p-0",
|
|
5927
|
-
full: "h-full max-h-full p-2"
|
|
5928
|
-
};
|
|
5929
|
-
var widthStyles = {
|
|
5930
|
-
full: "w-full flex justify-center px-5 py-2.5 text-center inline-flex items-center",
|
|
5931
|
-
half: "w-full text-center flex items-center justify-center h-full",
|
|
5932
|
-
normal: "w-fit dark:bg-buttonPrimary-dark dark:hover:bg-buttonPrimary-700 dark:hover:brightness-90 dark:focus:ring-buttonPrimary-500"
|
|
5933
|
-
};
|
|
5934
|
-
var containerWidthStyles = {
|
|
5935
|
-
full: "w-full flex justify-center text-center inline-flex items-center",
|
|
5936
|
-
half: "w-1/2",
|
|
5937
|
-
normal: "w-fit"
|
|
5938
|
-
};
|
|
5939
|
-
var variantStyles = {
|
|
5940
|
-
contained: "border-transparent",
|
|
5941
|
-
// outlined: "bg-transparent border",
|
|
5942
|
-
outlined: "border border-input bg-background hover:bg-accent hover:text-accent-foreground"
|
|
5943
|
-
};
|
|
5944
|
-
var colorStyles = {
|
|
5945
|
-
contained: {
|
|
5946
|
-
default: "text-neutral-900 bg-buttonPrimary-500 hover:bg-buttonPrimary-700 bg-buttonPrimary-500 text-white",
|
|
5947
|
-
primary: "text-white bg-buttonPrimary-500 hover:bg-buttonPrimary-700 transition-all",
|
|
5948
|
-
secondary: "bg-buttonSecondary-500 hover:text-white hover:bg-buttonSecondary-700",
|
|
5949
|
-
gray: "text-neutral-900 bg-gray-200 hover:bg-gray-300",
|
|
5950
|
-
dark: "text-neutral-900 bg-gray-200 hover:bg-gray-300"
|
|
5951
|
-
},
|
|
5952
|
-
outlined: {
|
|
5953
|
-
default: "text-gray-600 border-gray-600 hover:bg-gray-200 dark:hover:bg-gray-800 dark:text-white",
|
|
5954
|
-
primary: "text-black hover:bg-gray-50 dark:text-white",
|
|
5955
|
-
secondary: " dark:text-white text-secondary-800 border-secondary-800 hover:bg-buttonSecondary-700 hover:text-white",
|
|
5956
|
-
gray: "border-gray-300 hover:bg-gray-200",
|
|
5957
|
-
dark: "border-gray-900 hover:bg-gray-700"
|
|
5958
|
-
}
|
|
5959
|
-
};
|
|
5960
|
-
var HawaButton = ({
|
|
5961
|
-
className,
|
|
5962
|
-
variant = "contained",
|
|
5963
|
-
color = "default",
|
|
5964
|
-
size = "default",
|
|
5965
|
-
width = "normal",
|
|
5966
|
-
disabled = false,
|
|
5967
|
-
isLoading = false,
|
|
5968
|
-
tooltip,
|
|
5969
|
-
tooltipSize = "normal",
|
|
5970
|
-
tooltipPosition = "top-left",
|
|
5971
|
-
tooltipDirection = "ltr",
|
|
5972
|
-
margins = "2",
|
|
5973
|
-
children,
|
|
5974
|
-
badge,
|
|
5975
|
-
edgeCorner = false,
|
|
5976
|
-
feedback,
|
|
5977
|
-
...props
|
|
5978
|
-
}) => {
|
|
5979
|
-
const [isClicked, setIsClicked] = useState28(false);
|
|
5980
|
-
const [buttonText, setButtonText] = useState28(children);
|
|
5981
|
-
const handleClick = (event) => {
|
|
5982
|
-
if (props.onClick) {
|
|
5983
|
-
props.onClick(event);
|
|
5984
|
-
}
|
|
5985
|
-
if (feedback && !isClicked) {
|
|
5986
|
-
setButtonText(feedback);
|
|
5987
|
-
setIsClicked(true);
|
|
5988
|
-
setTimeout(() => {
|
|
5989
|
-
setButtonText(children);
|
|
5990
|
-
setIsClicked(false);
|
|
5991
|
-
}, 2e3);
|
|
5992
|
-
}
|
|
5993
|
-
};
|
|
5994
|
-
return /* @__PURE__ */ React52.createElement(
|
|
5995
|
-
"div",
|
|
5996
|
-
{
|
|
5997
|
-
className: clsx22(
|
|
5998
|
-
"relative",
|
|
5999
|
-
margins !== "none" ? `my-${margins}` : "m-0",
|
|
6000
|
-
containerWidthStyles[width]
|
|
6001
|
-
)
|
|
6002
|
-
},
|
|
6003
|
-
tooltip ? /* @__PURE__ */ React52.createElement(
|
|
6004
|
-
HawaTooltip,
|
|
6005
|
-
{
|
|
6006
|
-
direction: tooltipDirection,
|
|
6007
|
-
position: tooltipPosition,
|
|
6008
|
-
size: tooltipSize,
|
|
6009
|
-
content: tooltip
|
|
6010
|
-
},
|
|
6011
|
-
/* @__PURE__ */ React52.createElement(
|
|
6012
|
-
"button",
|
|
6013
|
-
{
|
|
6014
|
-
className: disabled ? clsx22(
|
|
6015
|
-
className,
|
|
6016
|
-
baseStyles,
|
|
6017
|
-
edgeCorner ? "rounded-inner" : "rounded",
|
|
6018
|
-
variantStyles[variant],
|
|
6019
|
-
sizeStyles[size],
|
|
6020
|
-
widthStyles[width],
|
|
6021
|
-
disabledSyles,
|
|
6022
|
-
disabledVariantSyles[variant]
|
|
6023
|
-
) : clsx22(
|
|
6024
|
-
className,
|
|
6025
|
-
baseStyles,
|
|
6026
|
-
edgeCorner ? "rounded-inner" : "rounded",
|
|
6027
|
-
variantStyles[variant],
|
|
6028
|
-
sizeStyles[size],
|
|
6029
|
-
colorStyles[variant][color],
|
|
6030
|
-
widthStyles[width]
|
|
6031
|
-
),
|
|
6032
|
-
disabled,
|
|
6033
|
-
onClick: props.onClick
|
|
6034
|
-
},
|
|
6035
|
-
!isLoading ? children : /* @__PURE__ */ React52.createElement(HawaLoading, { size: "button" })
|
|
6036
|
-
)
|
|
6037
|
-
) : /* @__PURE__ */ React52.createElement(
|
|
6038
|
-
"button",
|
|
6039
|
-
{
|
|
6040
|
-
className: disabled ? clsx22(
|
|
6041
|
-
className,
|
|
6042
|
-
baseStyles,
|
|
6043
|
-
edgeCorner ? "rounded-inner" : "rounded",
|
|
6044
|
-
variantStyles[variant],
|
|
6045
|
-
sizeStyles[size],
|
|
6046
|
-
widthStyles[width],
|
|
6047
|
-
disabledSyles,
|
|
6048
|
-
disabledVariantSyles[variant]
|
|
6049
|
-
) : clsx22(
|
|
6050
|
-
className,
|
|
6051
|
-
"overflow-x-clip",
|
|
6052
|
-
baseStyles,
|
|
6053
|
-
edgeCorner ? "rounded-inner" : "rounded",
|
|
6054
|
-
variantStyles[variant],
|
|
6055
|
-
sizeStyles[size],
|
|
6056
|
-
colorStyles[variant][color],
|
|
6057
|
-
widthStyles[width]
|
|
6058
|
-
),
|
|
6059
|
-
disabled,
|
|
6060
|
-
onClick: handleClick
|
|
6061
|
-
},
|
|
6062
|
-
!isLoading ? /* @__PURE__ */ React52.createElement(
|
|
6063
|
-
"div",
|
|
6064
|
-
{
|
|
6065
|
-
className: clsx22(
|
|
6066
|
-
" s flex flex-col-reverse items-start justify-center gap-4 transition-all",
|
|
6067
|
-
isClicked && feedback ? " -translate-y-8 pb-1 pt-1" : "translate-y-0"
|
|
6068
|
-
)
|
|
6069
|
-
},
|
|
6070
|
-
isClicked && feedback ? /* @__PURE__ */ React52.createElement("div", { className: "w-full text-center" }, buttonText) : null,
|
|
6071
|
-
/* @__PURE__ */ React52.createElement("div", { className: "flex w-full select-none flex-row items-center justify-center gap-2 whitespace-nowrap" }, props.startIcon && props.startIcon, children, props.endIcon && props.endIcon)
|
|
6072
|
-
) : /* @__PURE__ */ React52.createElement(HawaLoading, { design: "dots-pulse", color: "bg-white", size: "button" })
|
|
6073
|
-
),
|
|
6074
|
-
badge && /* @__PURE__ */ React52.createElement(
|
|
6075
|
-
"div",
|
|
6076
|
-
{
|
|
6077
|
-
className: clsx22(
|
|
6078
|
-
typeof badge === "boolean" ? "h-5 w-5" : typeof badge === "string" ? "h-5 w-7" : "h-6 w-6",
|
|
6079
|
-
"absolute -right-2 -top-2 inline-flex select-none items-center justify-center rounded-full border-2 border-white bg-red-500 text-[9px] font-bold text-white dark:border-gray-900"
|
|
6080
|
-
)
|
|
6081
|
-
},
|
|
6082
|
-
typeof badge === "number" && badge > 100 ? "+99" : badge
|
|
6083
|
-
)
|
|
6084
|
-
);
|
|
6085
|
-
};
|
|
6086
|
-
|
|
6087
|
-
// src/elements/HawaItemCard.tsx
|
|
6088
5912
|
var HawaItemCard = ({
|
|
6089
5913
|
actions,
|
|
6090
5914
|
counts,
|
|
@@ -6113,7 +5937,7 @@ var HawaItemCard = ({
|
|
|
6113
5937
|
)
|
|
6114
5938
|
};
|
|
6115
5939
|
let headerActionsButtonStyle = "inline-block rounded p-1 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700";
|
|
6116
|
-
const [openActionHeader, setOpenActionHeader] =
|
|
5940
|
+
const [openActionHeader, setOpenActionHeader] = useState28(false);
|
|
6117
5941
|
function handleOpenActionHeader() {
|
|
6118
5942
|
setOpenActionHeader(!openActionHeader);
|
|
6119
5943
|
}
|
|
@@ -6125,51 +5949,58 @@ var HawaItemCard = ({
|
|
|
6125
5949
|
};
|
|
6126
5950
|
return () => window.onclick = null;
|
|
6127
5951
|
}, [openActionHeader]);
|
|
6128
|
-
return /* @__PURE__ */
|
|
5952
|
+
return /* @__PURE__ */ React52.createElement(
|
|
6129
5953
|
"div",
|
|
6130
5954
|
{
|
|
6131
|
-
className:
|
|
5955
|
+
className: clsx22(defaultStyle, orientationStyles[orientation]),
|
|
6132
5956
|
...props
|
|
6133
5957
|
},
|
|
6134
|
-
cardImage && /* @__PURE__ */
|
|
5958
|
+
cardImage && /* @__PURE__ */ React52.createElement("div", { className: "group relative overflow-clip" }, /* @__PURE__ */ React52.createElement(
|
|
6135
5959
|
"img",
|
|
6136
5960
|
{
|
|
6137
5961
|
src: "https://via.placeholder.com/50",
|
|
6138
|
-
className:
|
|
5962
|
+
className: clsx22(
|
|
6139
5963
|
imageStyles[orientation],
|
|
6140
5964
|
clickableImage ? "overflow-clip transition-all group-hover:blur-lg" : ""
|
|
6141
5965
|
)
|
|
6142
5966
|
}
|
|
6143
|
-
), clickableImage && /* @__PURE__ */
|
|
6144
|
-
|
|
5967
|
+
), clickableImage && /* @__PURE__ */ React52.createElement("div", { className: "absolute left-0 top-0 flex h-full w-full items-center justify-center opacity-0 transition-all group-hover:opacity-100 " }, /* @__PURE__ */ React52.createElement(
|
|
5968
|
+
Button,
|
|
6145
5969
|
{
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
5970
|
+
variant: "secondary",
|
|
5971
|
+
onClick: clickableImageAction,
|
|
5972
|
+
className: "flex flex-row gap-2"
|
|
6149
5973
|
},
|
|
5974
|
+
clickableImageActionIcon,
|
|
6150
5975
|
clickableImageActionText
|
|
6151
5976
|
))),
|
|
6152
|
-
/* @__PURE__ */
|
|
6153
|
-
|
|
5977
|
+
/* @__PURE__ */ React52.createElement("div", { className: "relative w-full p-6" }, headerActions && /* @__PURE__ */ React52.createElement("div", { className: "max-h- bg-red absolute right-0 top-0 flex justify-end pr-3 pt-3" }, /* @__PURE__ */ React52.createElement(
|
|
5978
|
+
DropdownMenu,
|
|
6154
5979
|
{
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
className: "
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
5980
|
+
items: headerActions,
|
|
5981
|
+
trigger: /* @__PURE__ */ React52.createElement(
|
|
5982
|
+
"div",
|
|
5983
|
+
{
|
|
5984
|
+
className: clsx22(headerActionsButtonStyle),
|
|
5985
|
+
onClick: handleOpenActionHeader
|
|
5986
|
+
},
|
|
5987
|
+
/* @__PURE__ */ React52.createElement("span", { className: "sr-only" }, "Open dropdown"),
|
|
5988
|
+
/* @__PURE__ */ React52.createElement(
|
|
5989
|
+
"svg",
|
|
5990
|
+
{
|
|
5991
|
+
className: "h-6 w-6",
|
|
5992
|
+
"aria-hidden": "true",
|
|
5993
|
+
fill: "currentColor",
|
|
5994
|
+
viewBox: "0 0 20 20"
|
|
5995
|
+
},
|
|
5996
|
+
/* @__PURE__ */ React52.createElement("path", { d: "M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" })
|
|
5997
|
+
)
|
|
5998
|
+
)
|
|
5999
|
+
}
|
|
6000
|
+
)), header && /* @__PURE__ */ React52.createElement("h5", { className: "mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white" }, header), content && /* @__PURE__ */ React52.createElement("span", { className: "w-full font-normal text-gray-700 dark:text-gray-400" }, content), actions || counts ? /* @__PURE__ */ React52.createElement(
|
|
6170
6001
|
"div",
|
|
6171
6002
|
{
|
|
6172
|
-
className:
|
|
6003
|
+
className: clsx22(
|
|
6173
6004
|
"mt-3 flex items-center rounded-b-lg dark:text-white ",
|
|
6174
6005
|
actions && counts ? "justify-between" : "justify-end"
|
|
6175
6006
|
)
|
|
@@ -6181,8 +6012,8 @@ var HawaItemCard = ({
|
|
|
6181
6012
|
};
|
|
6182
6013
|
|
|
6183
6014
|
// src/elements/HawaPricingCard.tsx
|
|
6184
|
-
import
|
|
6185
|
-
import
|
|
6015
|
+
import clsx23 from "clsx";
|
|
6016
|
+
import React53 from "react";
|
|
6186
6017
|
var HawaPricingCard = ({
|
|
6187
6018
|
size = "medium",
|
|
6188
6019
|
direction = "ltr",
|
|
@@ -6195,21 +6026,21 @@ var HawaPricingCard = ({
|
|
|
6195
6026
|
medium: "mx-1 w-full rounded min-w-fit border dark:border-gray-700 bg-background ",
|
|
6196
6027
|
large: "mx-1 w-full max-w-lg rounded border dark:border-gray-700 bg-background "
|
|
6197
6028
|
};
|
|
6198
|
-
return /* @__PURE__ */
|
|
6029
|
+
return /* @__PURE__ */ React53.createElement(
|
|
6199
6030
|
"div",
|
|
6200
6031
|
{
|
|
6201
6032
|
dir: isArabic ? "rtl" : "ltr",
|
|
6202
|
-
className:
|
|
6033
|
+
className: clsx23(
|
|
6203
6034
|
currentPlan ? "border-primary" : "bg-background",
|
|
6204
6035
|
cardSizes[size],
|
|
6205
6036
|
"flex flex-col gap-4 rounded border-2 p-4"
|
|
6206
6037
|
)
|
|
6207
6038
|
},
|
|
6208
|
-
/* @__PURE__ */
|
|
6209
|
-
/* @__PURE__ */
|
|
6210
|
-
/* @__PURE__ */
|
|
6211
|
-
props.features && /* @__PURE__ */
|
|
6212
|
-
return /* @__PURE__ */
|
|
6039
|
+
/* @__PURE__ */ React53.createElement("h5", { className: "text-md 0 font-bold text-primary/70" }, props.texts.title),
|
|
6040
|
+
/* @__PURE__ */ React53.createElement("div", { className: " text-primary/ flex items-baseline" }, /* @__PURE__ */ React53.createElement(React53.Fragment, null, /* @__PURE__ */ React53.createElement("span", { className: "text-5xl font-extrabold tracking-tight" }, props.price), /* @__PURE__ */ React53.createElement("span", { className: "mx-1 text-sm font-semibold" }, props.texts.currencyText)), /* @__PURE__ */ React53.createElement("span", { className: "ml-1 text-xl font-normal text-primary/70" }, "/ ", props.texts.cycleText)),
|
|
6041
|
+
/* @__PURE__ */ React53.createElement("h5", { className: "text-md font-normal text-primary/70" }, props.texts.subtitle),
|
|
6042
|
+
props.features && /* @__PURE__ */ React53.createElement("ul", { role: "list", className: "space-y-0 " }, props.features?.map((feature, o) => {
|
|
6043
|
+
return /* @__PURE__ */ React53.createElement("li", { key: o, className: "flex " }, /* @__PURE__ */ React53.createElement(
|
|
6213
6044
|
"svg",
|
|
6214
6045
|
{
|
|
6215
6046
|
"aria-label": "Check Icon",
|
|
@@ -6218,7 +6049,7 @@ var HawaPricingCard = ({
|
|
|
6218
6049
|
fill: "currentColor",
|
|
6219
6050
|
viewBox: "0 0 20 20"
|
|
6220
6051
|
},
|
|
6221
|
-
/* @__PURE__ */
|
|
6052
|
+
/* @__PURE__ */ React53.createElement(
|
|
6222
6053
|
"path",
|
|
6223
6054
|
{
|
|
6224
6055
|
fillRule: "evenodd",
|
|
@@ -6226,9 +6057,9 @@ var HawaPricingCard = ({
|
|
|
6226
6057
|
clipRule: "evenodd"
|
|
6227
6058
|
}
|
|
6228
6059
|
)
|
|
6229
|
-
), /* @__PURE__ */
|
|
6060
|
+
), /* @__PURE__ */ React53.createElement("span", { className: "flex items-center text-center font-normal leading-tight text-primary/70 " }, feature.text));
|
|
6230
6061
|
})),
|
|
6231
|
-
/* @__PURE__ */
|
|
6062
|
+
/* @__PURE__ */ React53.createElement(
|
|
6232
6063
|
Button,
|
|
6233
6064
|
{
|
|
6234
6065
|
onClick: props.onPlanClicked,
|
|
@@ -6241,8 +6072,8 @@ var HawaPricingCard = ({
|
|
|
6241
6072
|
};
|
|
6242
6073
|
|
|
6243
6074
|
// src/elements/HawaAdCard.tsx
|
|
6244
|
-
import
|
|
6245
|
-
import
|
|
6075
|
+
import clsx24 from "clsx";
|
|
6076
|
+
import React54 from "react";
|
|
6246
6077
|
var HawaAdCard = ({ orientation, ...props }) => {
|
|
6247
6078
|
let cardStyles = {
|
|
6248
6079
|
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 ",
|
|
@@ -6252,21 +6083,21 @@ var HawaAdCard = ({ orientation, ...props }) => {
|
|
|
6252
6083
|
horizontal: "w-auto h-full bg-blue-500 rounded-inner",
|
|
6253
6084
|
vertical: "bg-blue-500 rounded-inner w-auto "
|
|
6254
6085
|
};
|
|
6255
|
-
return /* @__PURE__ */
|
|
6086
|
+
return /* @__PURE__ */ React54.createElement(
|
|
6256
6087
|
"div",
|
|
6257
6088
|
{
|
|
6258
|
-
className:
|
|
6089
|
+
className: clsx24(cardStyles[orientation], "dark:text-white"),
|
|
6259
6090
|
...props
|
|
6260
6091
|
},
|
|
6261
|
-
/* @__PURE__ */
|
|
6092
|
+
/* @__PURE__ */ React54.createElement("div", { className: "flex aspect-square w-full max-w-fit items-start " }, /* @__PURE__ */ React54.createElement(
|
|
6262
6093
|
"img",
|
|
6263
6094
|
{
|
|
6264
6095
|
src: props.imageURL ? props.imageURL : "https://via.placeholder.com/50",
|
|
6265
6096
|
className: imageStyles[orientation]
|
|
6266
6097
|
}
|
|
6267
6098
|
)),
|
|
6268
|
-
/* @__PURE__ */
|
|
6269
|
-
/* @__PURE__ */
|
|
6099
|
+
/* @__PURE__ */ React54.createElement("div", { className: "w-full text-xs" }, /* @__PURE__ */ React54.createElement("div", { className: "font-bold" }, props.title), /* @__PURE__ */ React54.createElement("div", { className: "text-[12px]" }, props.description)),
|
|
6100
|
+
/* @__PURE__ */ React54.createElement(
|
|
6270
6101
|
"span",
|
|
6271
6102
|
{
|
|
6272
6103
|
onClick: props.handleHide,
|
|
@@ -6278,8 +6109,8 @@ var HawaAdCard = ({ orientation, ...props }) => {
|
|
|
6278
6109
|
};
|
|
6279
6110
|
|
|
6280
6111
|
// src/elements/HawaLandingCard.tsx
|
|
6281
|
-
import
|
|
6282
|
-
import
|
|
6112
|
+
import clsx25 from "clsx";
|
|
6113
|
+
import React55 from "react";
|
|
6283
6114
|
var HawaLandingCard = ({
|
|
6284
6115
|
orientation = "horizontal",
|
|
6285
6116
|
...props
|
|
@@ -6292,10 +6123,10 @@ var HawaLandingCard = ({
|
|
|
6292
6123
|
horizontal: "w-8 h-8 rounded",
|
|
6293
6124
|
vertical: "w-14 h-14 rounded"
|
|
6294
6125
|
};
|
|
6295
|
-
return /* @__PURE__ */
|
|
6126
|
+
return /* @__PURE__ */ React55.createElement(
|
|
6296
6127
|
"div",
|
|
6297
6128
|
{
|
|
6298
|
-
className:
|
|
6129
|
+
className: clsx25(
|
|
6299
6130
|
cardStyles[orientation],
|
|
6300
6131
|
"flex flex-col p-10",
|
|
6301
6132
|
"relative overflow-hidden dark:text-white",
|
|
@@ -6303,67 +6134,244 @@ var HawaLandingCard = ({
|
|
|
6303
6134
|
),
|
|
6304
6135
|
...props
|
|
6305
6136
|
},
|
|
6306
|
-
props.texts?.titleTip && /* @__PURE__ */
|
|
6307
|
-
props.imageURL && /* @__PURE__ */
|
|
6137
|
+
props.texts?.titleTip && /* @__PURE__ */ React55.createElement("div", { className: "text-sm text-red-600" }, props.texts?.titleTip),
|
|
6138
|
+
props.imageURL && /* @__PURE__ */ React55.createElement(
|
|
6308
6139
|
"img",
|
|
6309
6140
|
{
|
|
6310
6141
|
className: "absolute -bottom-10 -right-10 h-40 w-auto ",
|
|
6311
6142
|
src: props.imageURL
|
|
6312
6143
|
}
|
|
6313
6144
|
),
|
|
6314
|
-
props.texts?.title && /* @__PURE__ */
|
|
6315
|
-
props.texts?.description && /* @__PURE__ */
|
|
6316
|
-
props.texts?.linkText && /* @__PURE__ */
|
|
6145
|
+
props.texts?.title && /* @__PURE__ */ React55.createElement("div", { className: "mt-2 text-lg font-medium" }, props.texts?.title, " "),
|
|
6146
|
+
props.texts?.description && /* @__PURE__ */ React55.createElement("div", { className: "z-10 mt-4 text-sm" }, props.texts?.description),
|
|
6147
|
+
props.texts?.linkText && /* @__PURE__ */ React55.createElement("div", { className: "z-10 mt-6 text-sm underline underline-offset-8" }, props.texts?.linkText)
|
|
6317
6148
|
);
|
|
6318
6149
|
};
|
|
6319
6150
|
|
|
6320
|
-
// src/elements/
|
|
6321
|
-
import
|
|
6322
|
-
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
"
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
"
|
|
6151
|
+
// src/elements/HawaButton.tsx
|
|
6152
|
+
import React56, { useState as useState29 } from "react";
|
|
6153
|
+
import clsx26 from "clsx";
|
|
6154
|
+
var disabledSyles = "cursor-default pointer-events-none";
|
|
6155
|
+
var disabledVariantSyles = {
|
|
6156
|
+
contained: "text-gray-300 bg-gray-100",
|
|
6157
|
+
outlined: "text-gray-300 border-gray-300"
|
|
6158
|
+
};
|
|
6159
|
+
var baseStyles = "cursor-pointer justify-center items-center text-center font-medium transition-all ";
|
|
6160
|
+
var sizeStyles = {
|
|
6161
|
+
icon: "h-10 w-10",
|
|
6162
|
+
xs: "px-1.5 py-2 text-[9px] h-fit",
|
|
6163
|
+
small: "text-xs px-2.5 py-1.5",
|
|
6164
|
+
medium: "text-sm leading-4 px-3 py-2",
|
|
6165
|
+
default: "h-10 px-4 py-2",
|
|
6166
|
+
large: "text-sm px-4 py-2",
|
|
6167
|
+
noPadding: "p-0",
|
|
6168
|
+
full: "h-full max-h-full p-2"
|
|
6169
|
+
};
|
|
6170
|
+
var widthStyles = {
|
|
6171
|
+
full: "w-full flex justify-center px-5 py-2.5 text-center inline-flex items-center",
|
|
6172
|
+
half: "w-full text-center flex items-center justify-center h-full",
|
|
6173
|
+
normal: "w-fit dark:bg-buttonPrimary-dark dark:hover:bg-buttonPrimary-700 dark:hover:brightness-90 dark:focus:ring-buttonPrimary-500"
|
|
6174
|
+
};
|
|
6175
|
+
var containerWidthStyles = {
|
|
6176
|
+
full: "w-full flex justify-center text-center inline-flex items-center",
|
|
6177
|
+
half: "w-1/2",
|
|
6178
|
+
normal: "w-fit"
|
|
6179
|
+
};
|
|
6180
|
+
var variantStyles = {
|
|
6181
|
+
contained: "border-transparent",
|
|
6182
|
+
// outlined: "bg-transparent border",
|
|
6183
|
+
outlined: "border border-input bg-background hover:bg-accent hover:text-accent-foreground"
|
|
6184
|
+
};
|
|
6185
|
+
var colorStyles = {
|
|
6186
|
+
contained: {
|
|
6187
|
+
default: "text-neutral-900 bg-buttonPrimary-500 hover:bg-buttonPrimary-700 bg-buttonPrimary-500 text-white",
|
|
6188
|
+
primary: "text-white bg-buttonPrimary-500 hover:bg-buttonPrimary-700 transition-all",
|
|
6189
|
+
secondary: "bg-buttonSecondary-500 hover:text-white hover:bg-buttonSecondary-700",
|
|
6190
|
+
gray: "text-neutral-900 bg-gray-200 hover:bg-gray-300",
|
|
6191
|
+
dark: "text-neutral-900 bg-gray-200 hover:bg-gray-300"
|
|
6192
|
+
},
|
|
6193
|
+
outlined: {
|
|
6194
|
+
default: "text-gray-600 border-gray-600 hover:bg-gray-200 dark:hover:bg-gray-800 dark:text-white",
|
|
6195
|
+
primary: "text-black hover:bg-gray-50 dark:text-white",
|
|
6196
|
+
secondary: " dark:text-white text-secondary-800 border-secondary-800 hover:bg-buttonSecondary-700 hover:text-white",
|
|
6197
|
+
gray: "border-gray-300 hover:bg-gray-200",
|
|
6198
|
+
dark: "border-gray-900 hover:bg-gray-700"
|
|
6199
|
+
}
|
|
6200
|
+
};
|
|
6201
|
+
var HawaButton = ({
|
|
6202
|
+
className,
|
|
6203
|
+
variant = "contained",
|
|
6204
|
+
color = "default",
|
|
6205
|
+
size = "default",
|
|
6206
|
+
width = "normal",
|
|
6207
|
+
disabled = false,
|
|
6208
|
+
isLoading = false,
|
|
6209
|
+
tooltip,
|
|
6210
|
+
tooltipSize = "normal",
|
|
6211
|
+
tooltipPosition = "top-left",
|
|
6212
|
+
tooltipDirection = "ltr",
|
|
6213
|
+
margins = "2",
|
|
6214
|
+
children,
|
|
6215
|
+
badge,
|
|
6216
|
+
edgeCorner = false,
|
|
6217
|
+
feedback,
|
|
6218
|
+
...props
|
|
6219
|
+
}) => {
|
|
6220
|
+
const [isClicked, setIsClicked] = useState29(false);
|
|
6221
|
+
const [buttonText, setButtonText] = useState29(children);
|
|
6222
|
+
const handleClick = (event) => {
|
|
6223
|
+
if (props.onClick) {
|
|
6224
|
+
props.onClick(event);
|
|
6225
|
+
}
|
|
6226
|
+
if (feedback && !isClicked) {
|
|
6227
|
+
setButtonText(feedback);
|
|
6228
|
+
setIsClicked(true);
|
|
6229
|
+
setTimeout(() => {
|
|
6230
|
+
setButtonText(children);
|
|
6231
|
+
setIsClicked(false);
|
|
6232
|
+
}, 2e3);
|
|
6233
|
+
}
|
|
6234
|
+
};
|
|
6235
|
+
return /* @__PURE__ */ React56.createElement(
|
|
6236
|
+
"div",
|
|
6237
|
+
{
|
|
6238
|
+
className: clsx26(
|
|
6239
|
+
"relative",
|
|
6240
|
+
margins !== "none" ? `my-${margins}` : "m-0",
|
|
6241
|
+
containerWidthStyles[width]
|
|
6242
|
+
)
|
|
6243
|
+
},
|
|
6244
|
+
tooltip ? /* @__PURE__ */ React56.createElement(
|
|
6245
|
+
HawaTooltip,
|
|
6246
|
+
{
|
|
6247
|
+
direction: tooltipDirection,
|
|
6248
|
+
position: tooltipPosition,
|
|
6249
|
+
size: tooltipSize,
|
|
6250
|
+
content: tooltip
|
|
6251
|
+
},
|
|
6252
|
+
/* @__PURE__ */ React56.createElement(
|
|
6253
|
+
"button",
|
|
6254
|
+
{
|
|
6255
|
+
className: disabled ? clsx26(
|
|
6256
|
+
className,
|
|
6257
|
+
baseStyles,
|
|
6258
|
+
edgeCorner ? "rounded-inner" : "rounded",
|
|
6259
|
+
variantStyles[variant],
|
|
6260
|
+
sizeStyles[size],
|
|
6261
|
+
widthStyles[width],
|
|
6262
|
+
disabledSyles,
|
|
6263
|
+
disabledVariantSyles[variant]
|
|
6264
|
+
) : clsx26(
|
|
6265
|
+
className,
|
|
6266
|
+
baseStyles,
|
|
6267
|
+
edgeCorner ? "rounded-inner" : "rounded",
|
|
6268
|
+
variantStyles[variant],
|
|
6269
|
+
sizeStyles[size],
|
|
6270
|
+
colorStyles[variant][color],
|
|
6271
|
+
widthStyles[width]
|
|
6272
|
+
),
|
|
6273
|
+
disabled,
|
|
6274
|
+
onClick: props.onClick
|
|
6275
|
+
},
|
|
6276
|
+
!isLoading ? children : /* @__PURE__ */ React56.createElement(HawaLoading, { size: "button" })
|
|
6277
|
+
)
|
|
6278
|
+
) : /* @__PURE__ */ React56.createElement(
|
|
6279
|
+
"button",
|
|
6280
|
+
{
|
|
6281
|
+
className: disabled ? clsx26(
|
|
6282
|
+
className,
|
|
6283
|
+
baseStyles,
|
|
6284
|
+
edgeCorner ? "rounded-inner" : "rounded",
|
|
6285
|
+
variantStyles[variant],
|
|
6286
|
+
sizeStyles[size],
|
|
6287
|
+
widthStyles[width],
|
|
6288
|
+
disabledSyles,
|
|
6289
|
+
disabledVariantSyles[variant]
|
|
6290
|
+
) : clsx26(
|
|
6291
|
+
className,
|
|
6292
|
+
"overflow-x-clip",
|
|
6293
|
+
baseStyles,
|
|
6294
|
+
edgeCorner ? "rounded-inner" : "rounded",
|
|
6295
|
+
variantStyles[variant],
|
|
6296
|
+
sizeStyles[size],
|
|
6297
|
+
colorStyles[variant][color],
|
|
6298
|
+
widthStyles[width]
|
|
6299
|
+
),
|
|
6300
|
+
disabled,
|
|
6301
|
+
onClick: handleClick
|
|
6302
|
+
},
|
|
6303
|
+
!isLoading ? /* @__PURE__ */ React56.createElement(
|
|
6304
|
+
"div",
|
|
6305
|
+
{
|
|
6306
|
+
className: clsx26(
|
|
6307
|
+
" s flex flex-col-reverse items-start justify-center gap-4 transition-all",
|
|
6308
|
+
isClicked && feedback ? " -translate-y-8 pb-1 pt-1" : "translate-y-0"
|
|
6309
|
+
)
|
|
6310
|
+
},
|
|
6311
|
+
isClicked && feedback ? /* @__PURE__ */ React56.createElement("div", { className: "w-full text-center" }, buttonText) : null,
|
|
6312
|
+
/* @__PURE__ */ React56.createElement("div", { className: "flex w-full select-none flex-row items-center justify-center gap-2 whitespace-nowrap" }, props.startIcon && props.startIcon, children, props.endIcon && props.endIcon)
|
|
6313
|
+
) : /* @__PURE__ */ React56.createElement(HawaLoading, { design: "dots-pulse", color: "bg-white", size: "button" })
|
|
6314
|
+
),
|
|
6315
|
+
badge && /* @__PURE__ */ React56.createElement(
|
|
6316
|
+
"div",
|
|
6317
|
+
{
|
|
6318
|
+
className: clsx26(
|
|
6319
|
+
typeof badge === "boolean" ? "h-5 w-5" : typeof badge === "string" ? "h-5 w-7" : "h-6 w-6",
|
|
6320
|
+
"absolute -right-2 -top-2 inline-flex select-none items-center justify-center rounded-full border-2 border-white bg-red-500 text-[9px] font-bold text-white dark:border-gray-900"
|
|
6321
|
+
)
|
|
6322
|
+
},
|
|
6323
|
+
typeof badge === "number" && badge > 100 ? "+99" : badge
|
|
6324
|
+
)
|
|
6325
|
+
);
|
|
6326
|
+
};
|
|
6327
|
+
|
|
6328
|
+
// src/elements/HawaStoreButtons.tsx
|
|
6329
|
+
import React57 from "react";
|
|
6330
|
+
var HawaStoreButtons = (props) => {
|
|
6331
|
+
return /* @__PURE__ */ React57.createElement("div", { className: "flex justify-center" }, /* @__PURE__ */ React57.createElement("div", null, props.store === "apple" ? props.mode === "dark" ? /* @__PURE__ */ React57.createElement("div", { className: "mt-3 flex h-14 w-48 items-center justify-center rounded-lg bg-black text-white" }, /* @__PURE__ */ React57.createElement("div", { className: "mr-3" }, /* @__PURE__ */ React57.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ React57.createElement(
|
|
6332
|
+
"path",
|
|
6333
|
+
{
|
|
6334
|
+
fill: "currentColor",
|
|
6335
|
+
d: "M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"
|
|
6336
|
+
}
|
|
6337
|
+
))), /* @__PURE__ */ React57.createElement("div", null, /* @__PURE__ */ React57.createElement("div", { className: "text-xs" }, "Download on the"), /* @__PURE__ */ React57.createElement("div", { className: "font-sans -mt-1 text-2xl font-semibold" }, "App Store"))) : /* @__PURE__ */ React57.createElement("div", { className: "mt-3 flex h-14 w-48 items-center justify-center rounded-lg border border-black bg-transparent text-black" }, /* @__PURE__ */ React57.createElement("div", { className: "mr-3" }, /* @__PURE__ */ React57.createElement("svg", { viewBox: "0 0 384 512", width: "30" }, /* @__PURE__ */ React57.createElement(
|
|
6338
|
+
"path",
|
|
6339
|
+
{
|
|
6340
|
+
fill: "currentColor",
|
|
6341
|
+
d: "M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"
|
|
6342
|
+
}
|
|
6343
|
+
))), /* @__PURE__ */ React57.createElement("div", null, /* @__PURE__ */ React57.createElement("div", { className: "text-xs" }, "Download on the"), /* @__PURE__ */ React57.createElement("div", { className: "font-sans -mt-1 text-2xl font-semibold" }, "App Store"))) : props.mode === "dark" ? /* @__PURE__ */ React57.createElement("div", { className: "mt-3 flex h-14 w-48 items-center justify-center rounded-lg bg-black text-white" }, /* @__PURE__ */ React57.createElement("div", { className: "mr-3" }, /* @__PURE__ */ React57.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ React57.createElement(
|
|
6344
|
+
"path",
|
|
6345
|
+
{
|
|
6346
|
+
fill: "#FFD400",
|
|
6347
|
+
d: "M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"
|
|
6348
|
+
}
|
|
6349
|
+
), /* @__PURE__ */ React57.createElement(
|
|
6350
|
+
"path",
|
|
6351
|
+
{
|
|
6352
|
+
fill: "#FF3333",
|
|
6353
|
+
d: "M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"
|
|
6354
|
+
}
|
|
6355
|
+
), /* @__PURE__ */ React57.createElement(
|
|
6356
|
+
"path",
|
|
6357
|
+
{
|
|
6358
|
+
fill: "#48FF48",
|
|
6359
|
+
d: "M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"
|
|
6360
|
+
}
|
|
6361
|
+
), /* @__PURE__ */ React57.createElement(
|
|
6362
|
+
"path",
|
|
6363
|
+
{
|
|
6364
|
+
fill: "#3BCCFF",
|
|
6365
|
+
d: "M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"
|
|
6366
|
+
}
|
|
6367
|
+
))), /* @__PURE__ */ React57.createElement("div", null, /* @__PURE__ */ React57.createElement("div", { className: "text-xs" }, "GET IT ON"), /* @__PURE__ */ React57.createElement("div", { className: "font-sans -mt-1 text-xl font-semibold" }, "Google Play"))) : /* @__PURE__ */ React57.createElement("div", { className: "mt-3 flex h-14 w-48 items-center justify-center rounded-lg border border-black bg-white text-black" }, /* @__PURE__ */ React57.createElement("div", { className: "mr-3" }, /* @__PURE__ */ React57.createElement("svg", { viewBox: "30 336.7 120.9 129.2", width: "30" }, /* @__PURE__ */ React57.createElement(
|
|
6368
|
+
"path",
|
|
6369
|
+
{
|
|
6370
|
+
fill: "#FFD400",
|
|
6371
|
+
d: "M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"
|
|
6372
|
+
}
|
|
6373
|
+
), /* @__PURE__ */ React57.createElement(
|
|
6374
|
+
"path",
|
|
6367
6375
|
{
|
|
6368
6376
|
fill: "#FF3333",
|
|
6369
6377
|
d: "M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"
|
|
@@ -6962,33 +6970,136 @@ function Toaster(props) {
|
|
|
6962
6970
|
}), /* @__PURE__ */ React67.createElement(ToastViewport, { className: cn("gap-2", isRTL && "fixed left-0") }));
|
|
6963
6971
|
}
|
|
6964
6972
|
|
|
6973
|
+
// src/elements/Dialog.tsx
|
|
6974
|
+
import * as React68 from "react";
|
|
6975
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
6976
|
+
var Dialog = DialogPrimitive.Root;
|
|
6977
|
+
var DialogTrigger = DialogPrimitive.Trigger;
|
|
6978
|
+
var DialogPortal = ({
|
|
6979
|
+
className,
|
|
6980
|
+
...props
|
|
6981
|
+
}) => /* @__PURE__ */ React68.createElement(DialogPrimitive.Portal, { className: cn(className), ...props });
|
|
6982
|
+
DialogPortal.displayName = DialogPrimitive.Portal.displayName;
|
|
6983
|
+
var DialogOverlay = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React68.createElement(
|
|
6984
|
+
DialogPrimitive.Overlay,
|
|
6985
|
+
{
|
|
6986
|
+
ref,
|
|
6987
|
+
className: cn(
|
|
6988
|
+
"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
6989
|
+
className
|
|
6990
|
+
),
|
|
6991
|
+
...props
|
|
6992
|
+
}
|
|
6993
|
+
));
|
|
6994
|
+
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
6995
|
+
var DialogContent = React68.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React68.createElement(DialogPortal, null, /* @__PURE__ */ React68.createElement(DialogOverlay, null), /* @__PURE__ */ React68.createElement(
|
|
6996
|
+
DialogPrimitive.Content,
|
|
6997
|
+
{
|
|
6998
|
+
ref,
|
|
6999
|
+
className: cn(
|
|
7000
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",
|
|
7001
|
+
className
|
|
7002
|
+
),
|
|
7003
|
+
...props
|
|
7004
|
+
},
|
|
7005
|
+
children,
|
|
7006
|
+
/* @__PURE__ */ React68.createElement(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground" }, /* @__PURE__ */ React68.createElement(
|
|
7007
|
+
"svg",
|
|
7008
|
+
{
|
|
7009
|
+
"aria-label": "Close Icon",
|
|
7010
|
+
"aria-hidden": "true",
|
|
7011
|
+
className: "h-5 w-5",
|
|
7012
|
+
fill: "currentColor",
|
|
7013
|
+
viewBox: "0 0 20 20"
|
|
7014
|
+
},
|
|
7015
|
+
/* @__PURE__ */ React68.createElement(
|
|
7016
|
+
"path",
|
|
7017
|
+
{
|
|
7018
|
+
fillRule: "evenodd",
|
|
7019
|
+
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
|
7020
|
+
clipRule: "evenodd"
|
|
7021
|
+
}
|
|
7022
|
+
)
|
|
7023
|
+
), /* @__PURE__ */ React68.createElement("span", { className: "sr-only" }, "Close"))
|
|
7024
|
+
)));
|
|
7025
|
+
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
7026
|
+
var DialogHeader = ({
|
|
7027
|
+
className,
|
|
7028
|
+
...props
|
|
7029
|
+
}) => /* @__PURE__ */ React68.createElement(
|
|
7030
|
+
"div",
|
|
7031
|
+
{
|
|
7032
|
+
className: cn(
|
|
7033
|
+
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
7034
|
+
className
|
|
7035
|
+
),
|
|
7036
|
+
...props
|
|
7037
|
+
}
|
|
7038
|
+
);
|
|
7039
|
+
DialogHeader.displayName = "DialogHeader";
|
|
7040
|
+
var DialogFooter = ({
|
|
7041
|
+
className,
|
|
7042
|
+
...props
|
|
7043
|
+
}) => /* @__PURE__ */ React68.createElement(
|
|
7044
|
+
"div",
|
|
7045
|
+
{
|
|
7046
|
+
className: cn(
|
|
7047
|
+
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
7048
|
+
className
|
|
7049
|
+
),
|
|
7050
|
+
...props
|
|
7051
|
+
}
|
|
7052
|
+
);
|
|
7053
|
+
DialogFooter.displayName = "DialogFooter";
|
|
7054
|
+
var DialogTitle = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React68.createElement(
|
|
7055
|
+
DialogPrimitive.Title,
|
|
7056
|
+
{
|
|
7057
|
+
ref,
|
|
7058
|
+
className: cn(
|
|
7059
|
+
"text-lg font-semibold leading-none tracking-tight",
|
|
7060
|
+
className
|
|
7061
|
+
),
|
|
7062
|
+
...props
|
|
7063
|
+
}
|
|
7064
|
+
));
|
|
7065
|
+
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
7066
|
+
var DialogDescription = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React68.createElement(
|
|
7067
|
+
DialogPrimitive.Description,
|
|
7068
|
+
{
|
|
7069
|
+
ref,
|
|
7070
|
+
className: cn("text-sm text-muted-foreground", className),
|
|
7071
|
+
...props
|
|
7072
|
+
}
|
|
7073
|
+
));
|
|
7074
|
+
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
7075
|
+
|
|
6965
7076
|
// src/layout/Box.tsx
|
|
6966
|
-
import
|
|
7077
|
+
import React69 from "react";
|
|
6967
7078
|
var Box = (props) => {
|
|
6968
|
-
return /* @__PURE__ */
|
|
7079
|
+
return /* @__PURE__ */ React69.createElement("div", null, props.children);
|
|
6969
7080
|
};
|
|
6970
7081
|
|
|
6971
7082
|
// src/layout/HawaBottomAppBar.tsx
|
|
6972
|
-
import
|
|
7083
|
+
import React70 from "react";
|
|
6973
7084
|
var HawaBottomAppBar = (props) => {
|
|
6974
|
-
return /* @__PURE__ */
|
|
7085
|
+
return /* @__PURE__ */ React70.createElement("div", { className: "fixed bottom-0 top-auto left-0 m-0 w-full max-w-full p-1" }, /* @__PURE__ */ React70.createElement(
|
|
6975
7086
|
"div",
|
|
6976
7087
|
{
|
|
6977
7088
|
className: "flex w-full flex-row items-center justify-evenly rounded bg-gray-200"
|
|
6978
7089
|
},
|
|
6979
|
-
props.appBarContent.map((singleContent, i) => /* @__PURE__ */
|
|
7090
|
+
props.appBarContent.map((singleContent, i) => /* @__PURE__ */ React70.createElement(
|
|
6980
7091
|
"div",
|
|
6981
7092
|
{
|
|
6982
7093
|
key: i,
|
|
6983
7094
|
className: "m-1 flex h-full w-full flex-col items-center justify-center rounded p-2 transition-all hover:cursor-pointer hover:bg-buttonPrimary-700 hover:text-white",
|
|
6984
7095
|
onClick: singleContent.action
|
|
6985
7096
|
},
|
|
6986
|
-
/* @__PURE__ */
|
|
7097
|
+
/* @__PURE__ */ React70.createElement(
|
|
6987
7098
|
"div",
|
|
6988
7099
|
null,
|
|
6989
7100
|
singleContent.icon
|
|
6990
7101
|
),
|
|
6991
|
-
/* @__PURE__ */
|
|
7102
|
+
/* @__PURE__ */ React70.createElement(
|
|
6992
7103
|
"div",
|
|
6993
7104
|
{
|
|
6994
7105
|
className: "mt-2 text-sm"
|
|
@@ -7000,7 +7111,7 @@ var HawaBottomAppBar = (props) => {
|
|
|
7000
7111
|
};
|
|
7001
7112
|
|
|
7002
7113
|
// src/layout/HawaSiteLayout.tsx
|
|
7003
|
-
import
|
|
7114
|
+
import React73, { useEffect as useEffect21, useRef as useRef13, useState as useState36 } from "react";
|
|
7004
7115
|
import clsx27 from "clsx";
|
|
7005
7116
|
|
|
7006
7117
|
// src/hooks/useDiscloser.ts
|
|
@@ -7089,7 +7200,7 @@ var HawaSiteLayout = ({
|
|
|
7089
7200
|
// "w-full",
|
|
7090
7201
|
// "top-14 h-[calc(100%-3.5rem)]",
|
|
7091
7202
|
];
|
|
7092
|
-
return /* @__PURE__ */
|
|
7203
|
+
return /* @__PURE__ */ React73.createElement("div", { className: "h-full w-full" }, /* @__PURE__ */ React73.createElement(
|
|
7093
7204
|
"div",
|
|
7094
7205
|
{
|
|
7095
7206
|
className: clsx27(
|
|
@@ -7102,7 +7213,7 @@ var HawaSiteLayout = ({
|
|
|
7102
7213
|
direction === "rtl" ? "flex-row" : "flex-row-reverse"
|
|
7103
7214
|
)
|
|
7104
7215
|
},
|
|
7105
|
-
size > 600 ? /* @__PURE__ */
|
|
7216
|
+
size > 600 ? /* @__PURE__ */ React73.createElement("div", { className: "flex flex-row h-8 items-center gap-4 px-3" }, props.navItems?.map(({ label }, i) => /* @__PURE__ */ React73.createElement(
|
|
7106
7217
|
"div",
|
|
7107
7218
|
{
|
|
7108
7219
|
onClick: () => setOpenSideMenu(!openSideMenu),
|
|
@@ -7110,13 +7221,13 @@ var HawaSiteLayout = ({
|
|
|
7110
7221
|
className: "cursor-pointer rounded bg-none text-gray-600 transition-all hover:text-black"
|
|
7111
7222
|
},
|
|
7112
7223
|
label
|
|
7113
|
-
))) : /* @__PURE__ */
|
|
7224
|
+
))) : /* @__PURE__ */ React73.createElement("div", { className: "flex items-center justify-center" }, /* @__PURE__ */ React73.createElement(
|
|
7114
7225
|
"div",
|
|
7115
7226
|
{
|
|
7116
7227
|
onClick: () => setOpenSideMenu(!openSideMenu),
|
|
7117
7228
|
className: "cursor-pointer rounded p-1 transition-all hover:bg-gray-100"
|
|
7118
7229
|
},
|
|
7119
|
-
/* @__PURE__ */
|
|
7230
|
+
/* @__PURE__ */ React73.createElement(
|
|
7120
7231
|
"svg",
|
|
7121
7232
|
{
|
|
7122
7233
|
stroke: "currentColor",
|
|
@@ -7127,7 +7238,7 @@ var HawaSiteLayout = ({
|
|
|
7127
7238
|
height: "1.6em",
|
|
7128
7239
|
width: "1.6em"
|
|
7129
7240
|
},
|
|
7130
|
-
/* @__PURE__ */
|
|
7241
|
+
/* @__PURE__ */ React73.createElement(
|
|
7131
7242
|
"path",
|
|
7132
7243
|
{
|
|
7133
7244
|
fillRule: "evenodd",
|
|
@@ -7137,15 +7248,15 @@ var HawaSiteLayout = ({
|
|
|
7137
7248
|
)
|
|
7138
7249
|
),
|
|
7139
7250
|
" "
|
|
7140
|
-
), props.pageTitle ? /* @__PURE__ */
|
|
7141
|
-
/* @__PURE__ */
|
|
7251
|
+
), props.pageTitle ? /* @__PURE__ */ React73.createElement("div", null, props.pageTitle) : /* @__PURE__ */ React73.createElement("div", null)),
|
|
7252
|
+
/* @__PURE__ */ React73.createElement("div", { className: "h-full" }, /* @__PURE__ */ React73.createElement(
|
|
7142
7253
|
"img",
|
|
7143
7254
|
{
|
|
7144
7255
|
className: "h-full max-h-8 ",
|
|
7145
7256
|
src: `https://sikka-images.s3.ap-southeast-1.amazonaws.com/seera/seera-horizontal-wordmark-${direction === "rtl" ? "ar" : "en"}-white.svg`
|
|
7146
7257
|
}
|
|
7147
7258
|
))
|
|
7148
|
-
), /* @__PURE__ */
|
|
7259
|
+
), /* @__PURE__ */ React73.createElement(
|
|
7149
7260
|
"div",
|
|
7150
7261
|
{
|
|
7151
7262
|
className: clsx27(" relative top-14")
|
|
@@ -7155,17 +7266,17 @@ var HawaSiteLayout = ({
|
|
|
7155
7266
|
};
|
|
7156
7267
|
|
|
7157
7268
|
// src/layout/AppLayout.tsx
|
|
7158
|
-
import
|
|
7269
|
+
import React75, { useEffect as useEffect22, useRef as useRef14, useState as useState37 } from "react";
|
|
7159
7270
|
import clsx28 from "clsx";
|
|
7160
7271
|
|
|
7161
7272
|
// src/layout/Sidebar.tsx
|
|
7162
|
-
import * as
|
|
7273
|
+
import * as React74 from "react";
|
|
7163
7274
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
7164
7275
|
var Accordion = AccordionPrimitive.Root;
|
|
7165
7276
|
var triggerStyles = "flex flex-1 items-center select-none cursor-pointer bg-primary-foreground rounded justify-between p-2 px-3 font-medium transition-all [&[data-state=open]>svg]:-rotate-90";
|
|
7166
|
-
var AccordionItem =
|
|
7277
|
+
var AccordionItem = React74.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React74.createElement(AccordionPrimitive.Item, { ref, className: cn(className), ...props }));
|
|
7167
7278
|
AccordionItem.displayName = "AccordionItem";
|
|
7168
|
-
var AccordionTrigger =
|
|
7279
|
+
var AccordionTrigger = React74.forwardRef(({ className, showArrow, children, ...props }, ref) => /* @__PURE__ */ React74.createElement(AccordionPrimitive.Header, { className: "flex" }, /* @__PURE__ */ React74.createElement(
|
|
7169
7280
|
AccordionPrimitive.Trigger,
|
|
7170
7281
|
{
|
|
7171
7282
|
ref,
|
|
@@ -7173,7 +7284,7 @@ var AccordionTrigger = React73.forwardRef(({ className, showArrow, children, ...
|
|
|
7173
7284
|
...props
|
|
7174
7285
|
},
|
|
7175
7286
|
children,
|
|
7176
|
-
showArrow && /* @__PURE__ */
|
|
7287
|
+
showArrow && /* @__PURE__ */ React74.createElement(
|
|
7177
7288
|
"svg",
|
|
7178
7289
|
{
|
|
7179
7290
|
"aria-label": "Chevron Right Icon",
|
|
@@ -7184,7 +7295,7 @@ var AccordionTrigger = React73.forwardRef(({ className, showArrow, children, ...
|
|
|
7184
7295
|
width: "1em",
|
|
7185
7296
|
className: "h-4 w-4 shrink-0 rotate-90 transition-transform duration-200"
|
|
7186
7297
|
},
|
|
7187
|
-
/* @__PURE__ */
|
|
7298
|
+
/* @__PURE__ */ React74.createElement(
|
|
7188
7299
|
"path",
|
|
7189
7300
|
{
|
|
7190
7301
|
d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"
|
|
@@ -7193,7 +7304,7 @@ var AccordionTrigger = React73.forwardRef(({ className, showArrow, children, ...
|
|
|
7193
7304
|
)
|
|
7194
7305
|
)));
|
|
7195
7306
|
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
7196
|
-
var AccordionContent =
|
|
7307
|
+
var AccordionContent = React74.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React74.createElement(
|
|
7197
7308
|
AccordionPrimitive.Content,
|
|
7198
7309
|
{
|
|
7199
7310
|
ref,
|
|
@@ -7203,7 +7314,7 @@ var AccordionContent = React73.forwardRef(({ className, children, ...props }, re
|
|
|
7203
7314
|
),
|
|
7204
7315
|
...props
|
|
7205
7316
|
},
|
|
7206
|
-
/* @__PURE__ */
|
|
7317
|
+
/* @__PURE__ */ React74.createElement("div", null, children)
|
|
7207
7318
|
));
|
|
7208
7319
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
7209
7320
|
var SidebarGroup = ({
|
|
@@ -7217,7 +7328,7 @@ var SidebarGroup = ({
|
|
|
7217
7328
|
direction,
|
|
7218
7329
|
isOpen
|
|
7219
7330
|
}) => {
|
|
7220
|
-
return /* @__PURE__ */
|
|
7331
|
+
return /* @__PURE__ */ React74.createElement("div", null, title && /* @__PURE__ */ React74.createElement("h3", { className: "mb-1 font-bold" }, title), /* @__PURE__ */ React74.createElement("ul", { className: "flex flex-col gap-2" }, /* @__PURE__ */ React74.createElement(
|
|
7221
7332
|
Accordion,
|
|
7222
7333
|
{
|
|
7223
7334
|
value: openedItem,
|
|
@@ -7228,7 +7339,7 @@ var SidebarGroup = ({
|
|
|
7228
7339
|
collapsible: true,
|
|
7229
7340
|
className: "flex flex-col gap-1"
|
|
7230
7341
|
},
|
|
7231
|
-
items.map((item, idx) => /* @__PURE__ */
|
|
7342
|
+
items.map((item, idx) => /* @__PURE__ */ React74.createElement(
|
|
7232
7343
|
SidebarItem,
|
|
7233
7344
|
{
|
|
7234
7345
|
isOpen,
|
|
@@ -7254,20 +7365,20 @@ var SidebarItem = ({
|
|
|
7254
7365
|
return isSelected && isSelected[index] === value ? "bg-primary text-primary-foreground cursor-default" : "hover:bg-primary/10";
|
|
7255
7366
|
};
|
|
7256
7367
|
if (item.subitems) {
|
|
7257
|
-
return /* @__PURE__ */
|
|
7368
|
+
return /* @__PURE__ */ React74.createElement(
|
|
7258
7369
|
AccordionItem,
|
|
7259
7370
|
{
|
|
7260
7371
|
value: item.value,
|
|
7261
7372
|
className: "overflow-x-clip",
|
|
7262
7373
|
dir: direction
|
|
7263
7374
|
},
|
|
7264
|
-
/* @__PURE__ */
|
|
7375
|
+
/* @__PURE__ */ React74.createElement(
|
|
7265
7376
|
AccordionTrigger,
|
|
7266
7377
|
{
|
|
7267
7378
|
className: cn(getSelectedStyle(item.value, 0)),
|
|
7268
7379
|
showArrow: isOpen
|
|
7269
7380
|
},
|
|
7270
|
-
/* @__PURE__ */
|
|
7381
|
+
/* @__PURE__ */ React74.createElement(
|
|
7271
7382
|
"div",
|
|
7272
7383
|
{
|
|
7273
7384
|
className: cn(
|
|
@@ -7276,7 +7387,7 @@ var SidebarItem = ({
|
|
|
7276
7387
|
)
|
|
7277
7388
|
},
|
|
7278
7389
|
item.icon,
|
|
7279
|
-
isOpen && /* @__PURE__ */
|
|
7390
|
+
isOpen && /* @__PURE__ */ React74.createElement(
|
|
7280
7391
|
"span",
|
|
7281
7392
|
{
|
|
7282
7393
|
className: cn(
|
|
@@ -7288,12 +7399,12 @@ var SidebarItem = ({
|
|
|
7288
7399
|
)
|
|
7289
7400
|
)
|
|
7290
7401
|
),
|
|
7291
|
-
item.subitems && /* @__PURE__ */
|
|
7402
|
+
item.subitems && /* @__PURE__ */ React74.createElement(AccordionContent, { className: " mt-1 h-full rounded " }, /* @__PURE__ */ React74.createElement(
|
|
7292
7403
|
"div",
|
|
7293
7404
|
{
|
|
7294
7405
|
className: cn("flex h-full flex-col gap-2 bg-foreground/5 p-1")
|
|
7295
7406
|
},
|
|
7296
|
-
item.subitems.map((subitem, idx) => /* @__PURE__ */
|
|
7407
|
+
item.subitems.map((subitem, idx) => /* @__PURE__ */ React74.createElement(
|
|
7297
7408
|
"li",
|
|
7298
7409
|
{
|
|
7299
7410
|
key: idx,
|
|
@@ -7314,7 +7425,7 @@ var SidebarItem = ({
|
|
|
7314
7425
|
))
|
|
7315
7426
|
);
|
|
7316
7427
|
} else {
|
|
7317
|
-
return /* @__PURE__ */
|
|
7428
|
+
return /* @__PURE__ */ React74.createElement(
|
|
7318
7429
|
"div",
|
|
7319
7430
|
{
|
|
7320
7431
|
dir: direction,
|
|
@@ -7329,7 +7440,7 @@ var SidebarItem = ({
|
|
|
7329
7440
|
"overflow-x-clip "
|
|
7330
7441
|
)
|
|
7331
7442
|
},
|
|
7332
|
-
/* @__PURE__ */
|
|
7443
|
+
/* @__PURE__ */ React74.createElement("div", { className: "flex flex-row items-center gap-2 " }, item.icon, /* @__PURE__ */ React74.createElement(
|
|
7333
7444
|
"span",
|
|
7334
7445
|
{
|
|
7335
7446
|
className: cn(
|
|
@@ -7394,7 +7505,7 @@ var AppLayout = ({
|
|
|
7394
7505
|
document.removeEventListener("click", handleClickOutside, true);
|
|
7395
7506
|
};
|
|
7396
7507
|
}, [keepOpen]);
|
|
7397
|
-
return /* @__PURE__ */
|
|
7508
|
+
return /* @__PURE__ */ React75.createElement("div", { className: "fixed left-0" }, props.topBar && /* @__PURE__ */ React75.createElement(
|
|
7398
7509
|
"div",
|
|
7399
7510
|
{
|
|
7400
7511
|
className: clsx28(
|
|
@@ -7402,7 +7513,7 @@ var AppLayout = ({
|
|
|
7402
7513
|
isRTL ? "flex-row-reverse" : "flex-row"
|
|
7403
7514
|
)
|
|
7404
7515
|
},
|
|
7405
|
-
size > 600 ? /* @__PURE__ */
|
|
7516
|
+
size > 600 ? /* @__PURE__ */ React75.createElement(
|
|
7406
7517
|
"div",
|
|
7407
7518
|
{
|
|
7408
7519
|
className: clsx28(
|
|
@@ -7418,19 +7529,19 @@ var AppLayout = ({
|
|
|
7418
7529
|
props.pageTitle
|
|
7419
7530
|
) : (
|
|
7420
7531
|
// Mobile Drawer Menu Button
|
|
7421
|
-
/* @__PURE__ */
|
|
7532
|
+
/* @__PURE__ */ React75.createElement(
|
|
7422
7533
|
"div",
|
|
7423
7534
|
{
|
|
7424
7535
|
dir: direction,
|
|
7425
7536
|
className: "flex items-center justify-center gap-0.5"
|
|
7426
7537
|
},
|
|
7427
|
-
/* @__PURE__ */
|
|
7538
|
+
/* @__PURE__ */ React75.createElement(
|
|
7428
7539
|
"div",
|
|
7429
7540
|
{
|
|
7430
7541
|
onClick: () => setOpenSideMenu(true),
|
|
7431
7542
|
className: "z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100"
|
|
7432
7543
|
},
|
|
7433
|
-
/* @__PURE__ */
|
|
7544
|
+
/* @__PURE__ */ React75.createElement(
|
|
7434
7545
|
"svg",
|
|
7435
7546
|
{
|
|
7436
7547
|
stroke: "currentColor",
|
|
@@ -7441,7 +7552,7 @@ var AppLayout = ({
|
|
|
7441
7552
|
height: "1.6em",
|
|
7442
7553
|
width: "1.6em"
|
|
7443
7554
|
},
|
|
7444
|
-
/* @__PURE__ */
|
|
7555
|
+
/* @__PURE__ */ React75.createElement(
|
|
7445
7556
|
"path",
|
|
7446
7557
|
{
|
|
7447
7558
|
fillRule: "evenodd",
|
|
@@ -7451,10 +7562,10 @@ var AppLayout = ({
|
|
|
7451
7562
|
)
|
|
7452
7563
|
)
|
|
7453
7564
|
),
|
|
7454
|
-
props.pageTitle ? /* @__PURE__ */
|
|
7565
|
+
props.pageTitle ? /* @__PURE__ */ React75.createElement("div", { className: "text-sm" }, props.pageTitle) : /* @__PURE__ */ React75.createElement("div", null)
|
|
7455
7566
|
)
|
|
7456
7567
|
),
|
|
7457
|
-
/* @__PURE__ */
|
|
7568
|
+
/* @__PURE__ */ React75.createElement(
|
|
7458
7569
|
"div",
|
|
7459
7570
|
{
|
|
7460
7571
|
className: clsx28(
|
|
@@ -7462,16 +7573,16 @@ var AppLayout = ({
|
|
|
7462
7573
|
isRTL ? "flex-row-reverse" : "flex-row"
|
|
7463
7574
|
)
|
|
7464
7575
|
},
|
|
7465
|
-
size > 600 ? /* @__PURE__ */
|
|
7576
|
+
size > 600 ? /* @__PURE__ */ React75.createElement(
|
|
7466
7577
|
"div",
|
|
7467
7578
|
{
|
|
7468
7579
|
className: isRTL ? "text-left text-xs" : "text-right text-xs"
|
|
7469
7580
|
},
|
|
7470
|
-
/* @__PURE__ */
|
|
7581
|
+
/* @__PURE__ */ React75.createElement("div", { className: "font-bold" }, props.username),
|
|
7471
7582
|
" ",
|
|
7472
|
-
/* @__PURE__ */
|
|
7583
|
+
/* @__PURE__ */ React75.createElement("div", null, props.email)
|
|
7473
7584
|
) : null,
|
|
7474
|
-
/* @__PURE__ */
|
|
7585
|
+
/* @__PURE__ */ React75.createElement(
|
|
7475
7586
|
DropdownMenu,
|
|
7476
7587
|
{
|
|
7477
7588
|
triggerClassname: "mx-2",
|
|
@@ -7480,7 +7591,7 @@ var AppLayout = ({
|
|
|
7480
7591
|
side: "bottom",
|
|
7481
7592
|
sideOffset: 5,
|
|
7482
7593
|
direction: isRTL ? "rtl" : "ltr",
|
|
7483
|
-
trigger: /* @__PURE__ */
|
|
7594
|
+
trigger: /* @__PURE__ */ React75.createElement("div", { className: "relative h-8 w-8 cursor-pointer overflow-clip rounded ring-1 ring-primary/30 dark:bg-gray-600" }, /* @__PURE__ */ React75.createElement(
|
|
7484
7595
|
"svg",
|
|
7485
7596
|
{
|
|
7486
7597
|
"aria-label": "Avatar Icon",
|
|
@@ -7488,7 +7599,7 @@ var AppLayout = ({
|
|
|
7488
7599
|
fill: "currentColor",
|
|
7489
7600
|
viewBox: "0 0 20 20"
|
|
7490
7601
|
},
|
|
7491
|
-
/* @__PURE__ */
|
|
7602
|
+
/* @__PURE__ */ React75.createElement(
|
|
7492
7603
|
"path",
|
|
7493
7604
|
{
|
|
7494
7605
|
fillRule: "evenodd",
|
|
@@ -7502,7 +7613,7 @@ var AppLayout = ({
|
|
|
7502
7613
|
}
|
|
7503
7614
|
)
|
|
7504
7615
|
)
|
|
7505
|
-
), /* @__PURE__ */
|
|
7616
|
+
), /* @__PURE__ */ React75.createElement(
|
|
7506
7617
|
"div",
|
|
7507
7618
|
{
|
|
7508
7619
|
className: clsx28(
|
|
@@ -7525,7 +7636,7 @@ var AppLayout = ({
|
|
|
7525
7636
|
},
|
|
7526
7637
|
ref
|
|
7527
7638
|
},
|
|
7528
|
-
/* @__PURE__ */
|
|
7639
|
+
/* @__PURE__ */ React75.createElement(
|
|
7529
7640
|
"div",
|
|
7530
7641
|
{
|
|
7531
7642
|
dir: direction,
|
|
@@ -7537,7 +7648,7 @@ var AppLayout = ({
|
|
|
7537
7648
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
|
7538
7649
|
}
|
|
7539
7650
|
},
|
|
7540
|
-
/* @__PURE__ */
|
|
7651
|
+
/* @__PURE__ */ React75.createElement(
|
|
7541
7652
|
"img",
|
|
7542
7653
|
{
|
|
7543
7654
|
className: clsx28(
|
|
@@ -7547,7 +7658,7 @@ var AppLayout = ({
|
|
|
7547
7658
|
src: props.logoLink
|
|
7548
7659
|
}
|
|
7549
7660
|
),
|
|
7550
|
-
size > 600 ? /* @__PURE__ */
|
|
7661
|
+
size > 600 ? /* @__PURE__ */ React75.createElement(
|
|
7551
7662
|
"img",
|
|
7552
7663
|
{
|
|
7553
7664
|
className: clsx28(
|
|
@@ -7560,7 +7671,7 @@ var AppLayout = ({
|
|
|
7560
7671
|
}
|
|
7561
7672
|
) : null
|
|
7562
7673
|
),
|
|
7563
|
-
/* @__PURE__ */
|
|
7674
|
+
/* @__PURE__ */ React75.createElement(
|
|
7564
7675
|
"div",
|
|
7565
7676
|
{
|
|
7566
7677
|
className: clsx28(
|
|
@@ -7573,7 +7684,7 @@ var AppLayout = ({
|
|
|
7573
7684
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
|
7574
7685
|
}
|
|
7575
7686
|
},
|
|
7576
|
-
/* @__PURE__ */
|
|
7687
|
+
/* @__PURE__ */ React75.createElement(
|
|
7577
7688
|
SidebarGroup,
|
|
7578
7689
|
{
|
|
7579
7690
|
direction,
|
|
@@ -7593,7 +7704,7 @@ var AppLayout = ({
|
|
|
7593
7704
|
}
|
|
7594
7705
|
)
|
|
7595
7706
|
),
|
|
7596
|
-
/* @__PURE__ */
|
|
7707
|
+
/* @__PURE__ */ React75.createElement(
|
|
7597
7708
|
"div",
|
|
7598
7709
|
{
|
|
7599
7710
|
className: clsx28(
|
|
@@ -7605,22 +7716,22 @@ var AppLayout = ({
|
|
|
7605
7716
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
|
7606
7717
|
}
|
|
7607
7718
|
},
|
|
7608
|
-
DrawerFooterActions && openSideMenu ? /* @__PURE__ */
|
|
7609
|
-
size > 600 && openSideMenu ? /* @__PURE__ */
|
|
7719
|
+
DrawerFooterActions && openSideMenu ? /* @__PURE__ */ React75.createElement(React75.Fragment, null, DrawerFooterActions) : null,
|
|
7720
|
+
size > 600 && openSideMenu ? /* @__PURE__ */ React75.createElement(
|
|
7610
7721
|
Tooltip,
|
|
7611
7722
|
{
|
|
7612
7723
|
side: "left",
|
|
7613
7724
|
delayDuration: 500,
|
|
7614
7725
|
content: keepOpen ? props.texts?.collapseSidebar || "Collapse Sidebar" : props.texts?.expandSidebar || "Expand Sidebar"
|
|
7615
7726
|
},
|
|
7616
|
-
/* @__PURE__ */
|
|
7727
|
+
/* @__PURE__ */ React75.createElement(
|
|
7617
7728
|
Button,
|
|
7618
7729
|
{
|
|
7619
7730
|
variant: "light",
|
|
7620
7731
|
onClick: () => setKeepOpen(!keepOpen),
|
|
7621
7732
|
size: "smallIcon"
|
|
7622
7733
|
},
|
|
7623
|
-
/* @__PURE__ */
|
|
7734
|
+
/* @__PURE__ */ React75.createElement(
|
|
7624
7735
|
"svg",
|
|
7625
7736
|
{
|
|
7626
7737
|
className: clsx28(
|
|
@@ -7630,7 +7741,7 @@ var AppLayout = ({
|
|
|
7630
7741
|
fill: "currentColor",
|
|
7631
7742
|
viewBox: "0 0 20 20"
|
|
7632
7743
|
},
|
|
7633
|
-
/* @__PURE__ */
|
|
7744
|
+
/* @__PURE__ */ React75.createElement(
|
|
7634
7745
|
"path",
|
|
7635
7746
|
{
|
|
7636
7747
|
fillRule: "evenodd",
|
|
@@ -7642,7 +7753,7 @@ var AppLayout = ({
|
|
|
7642
7753
|
)
|
|
7643
7754
|
) : null
|
|
7644
7755
|
)
|
|
7645
|
-
), /* @__PURE__ */
|
|
7756
|
+
), /* @__PURE__ */ React75.createElement(
|
|
7646
7757
|
"div",
|
|
7647
7758
|
{
|
|
7648
7759
|
className: "fixed overflow-y-auto transition-all",
|
|
@@ -7673,7 +7784,7 @@ var AppLayout = ({
|
|
|
7673
7784
|
};
|
|
7674
7785
|
|
|
7675
7786
|
// src/layout/HawaAppLayout.tsx
|
|
7676
|
-
import
|
|
7787
|
+
import React76, { useEffect as useEffect23, useRef as useRef15, useState as useState38 } from "react";
|
|
7677
7788
|
import clsx29 from "clsx";
|
|
7678
7789
|
import { FaChevronRight } from "react-icons/fa";
|
|
7679
7790
|
var HawaAppLayout = ({
|
|
@@ -7719,7 +7830,7 @@ var HawaAppLayout = ({
|
|
|
7719
7830
|
}
|
|
7720
7831
|
};
|
|
7721
7832
|
let drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
|
|
7722
|
-
return /* @__PURE__ */
|
|
7833
|
+
return /* @__PURE__ */ React76.createElement("div", { className: "fixed" }, props.topBar && /* @__PURE__ */ React76.createElement(
|
|
7723
7834
|
"div",
|
|
7724
7835
|
{
|
|
7725
7836
|
className: clsx29(
|
|
@@ -7729,7 +7840,7 @@ var HawaAppLayout = ({
|
|
|
7729
7840
|
},
|
|
7730
7841
|
size > 600 ? props.pageTitle ? (
|
|
7731
7842
|
// Title of the page
|
|
7732
|
-
/* @__PURE__ */
|
|
7843
|
+
/* @__PURE__ */ React76.createElement(
|
|
7733
7844
|
"div",
|
|
7734
7845
|
{
|
|
7735
7846
|
className: clsx29(
|
|
@@ -7745,19 +7856,19 @@ var HawaAppLayout = ({
|
|
|
7745
7856
|
)
|
|
7746
7857
|
) : null : (
|
|
7747
7858
|
// Mobile Drawer Menu Button
|
|
7748
|
-
/* @__PURE__ */
|
|
7859
|
+
/* @__PURE__ */ React76.createElement(
|
|
7749
7860
|
"div",
|
|
7750
7861
|
{
|
|
7751
7862
|
dir: direction,
|
|
7752
7863
|
className: "flex items-center justify-center gap-0.5 "
|
|
7753
7864
|
},
|
|
7754
|
-
/* @__PURE__ */
|
|
7865
|
+
/* @__PURE__ */ React76.createElement(
|
|
7755
7866
|
"div",
|
|
7756
7867
|
{
|
|
7757
7868
|
onClick: () => setOpenSideMenu(true),
|
|
7758
7869
|
className: "z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100"
|
|
7759
7870
|
},
|
|
7760
|
-
/* @__PURE__ */
|
|
7871
|
+
/* @__PURE__ */ React76.createElement(
|
|
7761
7872
|
"svg",
|
|
7762
7873
|
{
|
|
7763
7874
|
stroke: "currentColor",
|
|
@@ -7768,7 +7879,7 @@ var HawaAppLayout = ({
|
|
|
7768
7879
|
height: "1.6em",
|
|
7769
7880
|
width: "1.6em"
|
|
7770
7881
|
},
|
|
7771
|
-
/* @__PURE__ */
|
|
7882
|
+
/* @__PURE__ */ React76.createElement(
|
|
7772
7883
|
"path",
|
|
7773
7884
|
{
|
|
7774
7885
|
fillRule: "evenodd",
|
|
@@ -7779,10 +7890,10 @@ var HawaAppLayout = ({
|
|
|
7779
7890
|
),
|
|
7780
7891
|
" "
|
|
7781
7892
|
),
|
|
7782
|
-
props.pageTitle ? /* @__PURE__ */
|
|
7893
|
+
props.pageTitle ? /* @__PURE__ */ React76.createElement("div", { className: "text-sm" }, props.pageTitle) : /* @__PURE__ */ React76.createElement("div", null)
|
|
7783
7894
|
)
|
|
7784
7895
|
),
|
|
7785
|
-
/* @__PURE__ */
|
|
7896
|
+
/* @__PURE__ */ React76.createElement(
|
|
7786
7897
|
"div",
|
|
7787
7898
|
{
|
|
7788
7899
|
className: clsx29(
|
|
@@ -7790,18 +7901,18 @@ var HawaAppLayout = ({
|
|
|
7790
7901
|
isRTL ? "flex-row-reverse" : "flex-row"
|
|
7791
7902
|
)
|
|
7792
7903
|
},
|
|
7793
|
-
size > 600 ? /* @__PURE__ */
|
|
7904
|
+
size > 600 ? /* @__PURE__ */ React76.createElement(
|
|
7794
7905
|
"div",
|
|
7795
7906
|
{
|
|
7796
7907
|
className: clsx29(
|
|
7797
7908
|
isRTL ? "text-left text-xs" : "text-right text-xs"
|
|
7798
7909
|
)
|
|
7799
7910
|
},
|
|
7800
|
-
/* @__PURE__ */
|
|
7911
|
+
/* @__PURE__ */ React76.createElement("div", { className: "font-bold" }, props.username),
|
|
7801
7912
|
" ",
|
|
7802
|
-
/* @__PURE__ */
|
|
7913
|
+
/* @__PURE__ */ React76.createElement("div", null, props.email)
|
|
7803
7914
|
) : null,
|
|
7804
|
-
/* @__PURE__ */
|
|
7915
|
+
/* @__PURE__ */ React76.createElement(
|
|
7805
7916
|
HawaMenu,
|
|
7806
7917
|
{
|
|
7807
7918
|
direction,
|
|
@@ -7811,14 +7922,14 @@ var HawaAppLayout = ({
|
|
|
7811
7922
|
menuItems: props.profileMenuItems,
|
|
7812
7923
|
position: "bottom-left"
|
|
7813
7924
|
},
|
|
7814
|
-
/* @__PURE__ */
|
|
7925
|
+
/* @__PURE__ */ React76.createElement("div", { className: "relative h-8 w-8 cursor-pointer overflow-hidden rounded-full ring-1 ring-buttonPrimary-500 dark:bg-gray-600" }, /* @__PURE__ */ React76.createElement(
|
|
7815
7926
|
"svg",
|
|
7816
7927
|
{
|
|
7817
7928
|
className: "absolute -left-1 h-10 w-10 text-gray-400",
|
|
7818
7929
|
fill: "currentColor",
|
|
7819
7930
|
viewBox: "0 0 20 20"
|
|
7820
7931
|
},
|
|
7821
|
-
/* @__PURE__ */
|
|
7932
|
+
/* @__PURE__ */ React76.createElement(
|
|
7822
7933
|
"path",
|
|
7823
7934
|
{
|
|
7824
7935
|
fillRule: "evenodd",
|
|
@@ -7829,7 +7940,7 @@ var HawaAppLayout = ({
|
|
|
7829
7940
|
))
|
|
7830
7941
|
)
|
|
7831
7942
|
)
|
|
7832
|
-
), /* @__PURE__ */
|
|
7943
|
+
), /* @__PURE__ */ React76.createElement(
|
|
7833
7944
|
"div",
|
|
7834
7945
|
{
|
|
7835
7946
|
onMouseEnter: () => {
|
|
@@ -7846,7 +7957,7 @@ var HawaAppLayout = ({
|
|
|
7846
7957
|
width: size > 600 ? openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : `${drawerSizeStyle["closed"][drawerSize]}px` : openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : "0px"
|
|
7847
7958
|
}
|
|
7848
7959
|
},
|
|
7849
|
-
/* @__PURE__ */
|
|
7960
|
+
/* @__PURE__ */ React76.createElement(
|
|
7850
7961
|
"div",
|
|
7851
7962
|
{
|
|
7852
7963
|
className: clsx29(
|
|
@@ -7855,7 +7966,7 @@ var HawaAppLayout = ({
|
|
|
7855
7966
|
openSideMenu ? "overflow-auto" : "overflow-hidden"
|
|
7856
7967
|
)
|
|
7857
7968
|
},
|
|
7858
|
-
/* @__PURE__ */
|
|
7969
|
+
/* @__PURE__ */ React76.createElement(
|
|
7859
7970
|
"div",
|
|
7860
7971
|
{
|
|
7861
7972
|
dir: direction,
|
|
@@ -7867,7 +7978,7 @@ var HawaAppLayout = ({
|
|
|
7867
7978
|
width: size > 600 ? `${drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize] - 16}px` : "full"
|
|
7868
7979
|
}
|
|
7869
7980
|
},
|
|
7870
|
-
/* @__PURE__ */
|
|
7981
|
+
/* @__PURE__ */ React76.createElement(
|
|
7871
7982
|
"img",
|
|
7872
7983
|
{
|
|
7873
7984
|
className: clsx29(
|
|
@@ -7879,7 +7990,7 @@ var HawaAppLayout = ({
|
|
|
7879
7990
|
src: props.logoLink
|
|
7880
7991
|
}
|
|
7881
7992
|
),
|
|
7882
|
-
size > 600 ? /* @__PURE__ */
|
|
7993
|
+
size > 600 ? /* @__PURE__ */ React76.createElement(
|
|
7883
7994
|
"img",
|
|
7884
7995
|
{
|
|
7885
7996
|
className: clsx29(
|
|
@@ -7891,14 +8002,14 @@ var HawaAppLayout = ({
|
|
|
7891
8002
|
}
|
|
7892
8003
|
) : null
|
|
7893
8004
|
),
|
|
7894
|
-
/* @__PURE__ */
|
|
8005
|
+
/* @__PURE__ */ React76.createElement("div", { className: "mb-10 mt-14" }, props.drawerItems?.map((dSection, dIndex) => /* @__PURE__ */ React76.createElement(
|
|
7895
8006
|
"div",
|
|
7896
8007
|
{
|
|
7897
8008
|
key: dIndex,
|
|
7898
8009
|
className: clsx29("flex flex-col items-stretch justify-center")
|
|
7899
8010
|
},
|
|
7900
8011
|
dSection?.map((dItem, i) => {
|
|
7901
|
-
return /* @__PURE__ */
|
|
8012
|
+
return /* @__PURE__ */ React76.createElement("div", { key: i, id: "test", className: "flex flex-col" }, /* @__PURE__ */ React76.createElement(
|
|
7902
8013
|
"div",
|
|
7903
8014
|
{
|
|
7904
8015
|
onClick: () => {
|
|
@@ -7918,7 +8029,7 @@ var HawaAppLayout = ({
|
|
|
7918
8029
|
isRTL ? "flex-row-reverse pr-3" : ""
|
|
7919
8030
|
)
|
|
7920
8031
|
},
|
|
7921
|
-
/* @__PURE__ */
|
|
8032
|
+
/* @__PURE__ */ React76.createElement("div", { className: "flex flex-row", dir: direction }, /* @__PURE__ */ React76.createElement("div", { className: "flex items-center justify-center" }, dItem.icon), /* @__PURE__ */ React76.createElement(
|
|
7922
8033
|
"div",
|
|
7923
8034
|
{
|
|
7924
8035
|
className: clsx29(
|
|
@@ -7928,16 +8039,16 @@ var HawaAppLayout = ({
|
|
|
7928
8039
|
},
|
|
7929
8040
|
dItem.label
|
|
7930
8041
|
)),
|
|
7931
|
-
dItem.subItems && /* @__PURE__ */
|
|
8042
|
+
dItem.subItems && /* @__PURE__ */ React76.createElement(
|
|
7932
8043
|
"div",
|
|
7933
8044
|
{
|
|
7934
8045
|
className: clsx29(
|
|
7935
8046
|
openSubItem && dItem.slug === openSubItem ? "-rotate-90" : "rotate-90"
|
|
7936
8047
|
)
|
|
7937
8048
|
},
|
|
7938
|
-
/* @__PURE__ */
|
|
8049
|
+
/* @__PURE__ */ React76.createElement(FaChevronRight, { fontSize: 11 })
|
|
7939
8050
|
)
|
|
7940
|
-
), dItem.subItems && /* @__PURE__ */
|
|
8051
|
+
), dItem.subItems && /* @__PURE__ */ React76.createElement(
|
|
7941
8052
|
"div",
|
|
7942
8053
|
{
|
|
7943
8054
|
className: clsx29(
|
|
@@ -7949,7 +8060,7 @@ var HawaAppLayout = ({
|
|
|
7949
8060
|
height: openSubItem == dItem.slug && openSideMenu ? 6 + 33 * dItem.subItems?.length : 0
|
|
7950
8061
|
}
|
|
7951
8062
|
},
|
|
7952
|
-
dItem.subItems?.map((subIt, s) => /* @__PURE__ */
|
|
8063
|
+
dItem.subItems?.map((subIt, s) => /* @__PURE__ */ React76.createElement(
|
|
7953
8064
|
"div",
|
|
7954
8065
|
{
|
|
7955
8066
|
key: s,
|
|
@@ -7963,14 +8074,14 @@ var HawaAppLayout = ({
|
|
|
7963
8074
|
subIt.action();
|
|
7964
8075
|
}
|
|
7965
8076
|
},
|
|
7966
|
-
/* @__PURE__ */
|
|
7967
|
-
/* @__PURE__ */
|
|
8077
|
+
/* @__PURE__ */ React76.createElement("div", { className: "flex items-center justify-center" }, subIt.icon),
|
|
8078
|
+
/* @__PURE__ */ React76.createElement("div", { className: "flex flex-row justify-between" }, subIt.label)
|
|
7968
8079
|
))
|
|
7969
8080
|
));
|
|
7970
8081
|
}),
|
|
7971
|
-
dIndex !== props.drawerItems.length - 1 && /* @__PURE__ */
|
|
8082
|
+
dIndex !== props.drawerItems.length - 1 && /* @__PURE__ */ React76.createElement("div", { className: "my-2 h-[1px] w-10/12 self-center bg-buttonPrimary-500 text-center " })
|
|
7972
8083
|
))),
|
|
7973
|
-
openSideMenu && /* @__PURE__ */
|
|
8084
|
+
openSideMenu && /* @__PURE__ */ React76.createElement(
|
|
7974
8085
|
"div",
|
|
7975
8086
|
{
|
|
7976
8087
|
className: clsx29(
|
|
@@ -7983,13 +8094,13 @@ var HawaAppLayout = ({
|
|
|
7983
8094
|
width: `${drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize] - 16}px`
|
|
7984
8095
|
}
|
|
7985
8096
|
},
|
|
7986
|
-
onSettingsClick && /* @__PURE__ */
|
|
8097
|
+
onSettingsClick && /* @__PURE__ */ React76.createElement(
|
|
7987
8098
|
"div",
|
|
7988
8099
|
{
|
|
7989
8100
|
className: " cursor-pointer rounded p-2 transition-all hover:bg-layoutPrimary-700",
|
|
7990
8101
|
onClick: () => onSettingsClick()
|
|
7991
8102
|
},
|
|
7992
|
-
/* @__PURE__ */
|
|
8103
|
+
/* @__PURE__ */ React76.createElement(
|
|
7993
8104
|
"svg",
|
|
7994
8105
|
{
|
|
7995
8106
|
"aria-label": "Settings Icon",
|
|
@@ -8002,11 +8113,11 @@ var HawaAppLayout = ({
|
|
|
8002
8113
|
height: "1em",
|
|
8003
8114
|
width: "1em"
|
|
8004
8115
|
},
|
|
8005
|
-
/* @__PURE__ */
|
|
8006
|
-
/* @__PURE__ */
|
|
8116
|
+
/* @__PURE__ */ React76.createElement("circle", { cx: "12", cy: "12", r: "3" }),
|
|
8117
|
+
/* @__PURE__ */ React76.createElement("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" })
|
|
8007
8118
|
)
|
|
8008
8119
|
),
|
|
8009
|
-
size > 600 ? /* @__PURE__ */
|
|
8120
|
+
size > 600 ? /* @__PURE__ */ React76.createElement(
|
|
8010
8121
|
"div",
|
|
8011
8122
|
{
|
|
8012
8123
|
className: clsx29("w-fit transition-all"),
|
|
@@ -8016,7 +8127,7 @@ var HawaAppLayout = ({
|
|
|
8016
8127
|
left: `${drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize] - 35}px`
|
|
8017
8128
|
}
|
|
8018
8129
|
},
|
|
8019
|
-
/* @__PURE__ */
|
|
8130
|
+
/* @__PURE__ */ React76.createElement(
|
|
8020
8131
|
"div",
|
|
8021
8132
|
{
|
|
8022
8133
|
dir: direction,
|
|
@@ -8025,13 +8136,13 @@ var HawaAppLayout = ({
|
|
|
8025
8136
|
openSideMenu ? " opacity-100" : " opacity-0"
|
|
8026
8137
|
)
|
|
8027
8138
|
},
|
|
8028
|
-
/* @__PURE__ */
|
|
8139
|
+
/* @__PURE__ */ React76.createElement(
|
|
8029
8140
|
"div",
|
|
8030
8141
|
{
|
|
8031
8142
|
onClick: () => setKeepOpen(!keepOpen),
|
|
8032
8143
|
className: "w-fit cursor-pointer rounded bg-gray-300 p-2 transition-all hover:bg-gray-400"
|
|
8033
8144
|
},
|
|
8034
|
-
/* @__PURE__ */
|
|
8145
|
+
/* @__PURE__ */ React76.createElement(
|
|
8035
8146
|
FaChevronRight,
|
|
8036
8147
|
{
|
|
8037
8148
|
fontSize: 14,
|
|
@@ -8046,7 +8157,7 @@ var HawaAppLayout = ({
|
|
|
8046
8157
|
) : null
|
|
8047
8158
|
)
|
|
8048
8159
|
)
|
|
8049
|
-
), /* @__PURE__ */
|
|
8160
|
+
), /* @__PURE__ */ React76.createElement(
|
|
8050
8161
|
"div",
|
|
8051
8162
|
{
|
|
8052
8163
|
className: "fixed overflow-y-auto",
|
|
@@ -8067,7 +8178,7 @@ var HawaAppLayout = ({
|
|
|
8067
8178
|
};
|
|
8068
8179
|
|
|
8069
8180
|
// src/layout/HawaAppLayoutSimplified.tsx
|
|
8070
|
-
import
|
|
8181
|
+
import React77, { useEffect as useEffect24, useRef as useRef16, useState as useState39 } from "react";
|
|
8071
8182
|
import clsx30 from "clsx";
|
|
8072
8183
|
var HawaAppLayoutSimplified = ({
|
|
8073
8184
|
direction = "rtl",
|
|
@@ -8115,7 +8226,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8115
8226
|
}
|
|
8116
8227
|
};
|
|
8117
8228
|
let drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
|
|
8118
|
-
return /* @__PURE__ */
|
|
8229
|
+
return /* @__PURE__ */ React77.createElement("div", { className: "fixed left-0" }, props.topBar && /* @__PURE__ */ React77.createElement(
|
|
8119
8230
|
"div",
|
|
8120
8231
|
{
|
|
8121
8232
|
className: clsx30(
|
|
@@ -8123,7 +8234,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8123
8234
|
isRTL ? "flex-row-reverse" : "flex-row"
|
|
8124
8235
|
)
|
|
8125
8236
|
},
|
|
8126
|
-
size > 600 ? /* @__PURE__ */
|
|
8237
|
+
size > 600 ? /* @__PURE__ */ React77.createElement(
|
|
8127
8238
|
"div",
|
|
8128
8239
|
{
|
|
8129
8240
|
className: clsx30(
|
|
@@ -8139,19 +8250,19 @@ var HawaAppLayoutSimplified = ({
|
|
|
8139
8250
|
props.pageTitle
|
|
8140
8251
|
) : (
|
|
8141
8252
|
// Mobile Drawer Menu Button
|
|
8142
|
-
/* @__PURE__ */
|
|
8253
|
+
/* @__PURE__ */ React77.createElement(
|
|
8143
8254
|
"div",
|
|
8144
8255
|
{
|
|
8145
8256
|
dir: direction,
|
|
8146
8257
|
className: "flex items-center justify-center gap-0.5"
|
|
8147
8258
|
},
|
|
8148
|
-
/* @__PURE__ */
|
|
8259
|
+
/* @__PURE__ */ React77.createElement(
|
|
8149
8260
|
"div",
|
|
8150
8261
|
{
|
|
8151
8262
|
onClick: () => setOpenSideMenu(true),
|
|
8152
8263
|
className: "z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100"
|
|
8153
8264
|
},
|
|
8154
|
-
/* @__PURE__ */
|
|
8265
|
+
/* @__PURE__ */ React77.createElement(
|
|
8155
8266
|
"svg",
|
|
8156
8267
|
{
|
|
8157
8268
|
stroke: "currentColor",
|
|
@@ -8162,7 +8273,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8162
8273
|
height: "1.6em",
|
|
8163
8274
|
width: "1.6em"
|
|
8164
8275
|
},
|
|
8165
|
-
/* @__PURE__ */
|
|
8276
|
+
/* @__PURE__ */ React77.createElement(
|
|
8166
8277
|
"path",
|
|
8167
8278
|
{
|
|
8168
8279
|
fillRule: "evenodd",
|
|
@@ -8172,10 +8283,10 @@ var HawaAppLayoutSimplified = ({
|
|
|
8172
8283
|
)
|
|
8173
8284
|
)
|
|
8174
8285
|
),
|
|
8175
|
-
props.pageTitle ? /* @__PURE__ */
|
|
8286
|
+
props.pageTitle ? /* @__PURE__ */ React77.createElement("div", { className: "text-sm" }, props.pageTitle) : /* @__PURE__ */ React77.createElement("div", null)
|
|
8176
8287
|
)
|
|
8177
8288
|
),
|
|
8178
|
-
/* @__PURE__ */
|
|
8289
|
+
/* @__PURE__ */ React77.createElement(
|
|
8179
8290
|
"div",
|
|
8180
8291
|
{
|
|
8181
8292
|
className: clsx30(
|
|
@@ -8183,16 +8294,16 @@ var HawaAppLayoutSimplified = ({
|
|
|
8183
8294
|
isRTL ? "flex-row-reverse" : "flex-row"
|
|
8184
8295
|
)
|
|
8185
8296
|
},
|
|
8186
|
-
size > 600 ? /* @__PURE__ */
|
|
8297
|
+
size > 600 ? /* @__PURE__ */ React77.createElement(
|
|
8187
8298
|
"div",
|
|
8188
8299
|
{
|
|
8189
8300
|
className: isRTL ? "text-left text-xs" : "text-right text-xs"
|
|
8190
8301
|
},
|
|
8191
|
-
/* @__PURE__ */
|
|
8302
|
+
/* @__PURE__ */ React77.createElement("div", { className: "font-bold" }, props.username),
|
|
8192
8303
|
" ",
|
|
8193
|
-
/* @__PURE__ */
|
|
8304
|
+
/* @__PURE__ */ React77.createElement("div", null, props.email)
|
|
8194
8305
|
) : null,
|
|
8195
|
-
/* @__PURE__ */
|
|
8306
|
+
/* @__PURE__ */ React77.createElement(
|
|
8196
8307
|
DropdownMenu,
|
|
8197
8308
|
{
|
|
8198
8309
|
triggerClassname: "mx-2",
|
|
@@ -8201,13 +8312,13 @@ var HawaAppLayoutSimplified = ({
|
|
|
8201
8312
|
side: "bottom",
|
|
8202
8313
|
sideOffset: 5,
|
|
8203
8314
|
direction: isRTL ? "rtl" : "ltr",
|
|
8204
|
-
trigger: /* @__PURE__ */
|
|
8315
|
+
trigger: /* @__PURE__ */ React77.createElement("div", { className: "relative h-8 w-8 cursor-pointer overflow-clip rounded ring-1 ring-primary/30 dark:bg-gray-600" }, /* @__PURE__ */ React77.createElement(AvatarIcon, null)),
|
|
8205
8316
|
items: props.profileMenuItems,
|
|
8206
8317
|
onItemSelect: (e) => console.log("selecting item ", e)
|
|
8207
8318
|
}
|
|
8208
8319
|
)
|
|
8209
8320
|
)
|
|
8210
|
-
), /* @__PURE__ */
|
|
8321
|
+
), /* @__PURE__ */ React77.createElement(
|
|
8211
8322
|
"div",
|
|
8212
8323
|
{
|
|
8213
8324
|
className: clsx30(
|
|
@@ -8223,7 +8334,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8223
8334
|
onMouseLeave: () => keepOpen ? setOpenSideMenu(true) : setOpenSideMenu(false),
|
|
8224
8335
|
ref
|
|
8225
8336
|
},
|
|
8226
|
-
/* @__PURE__ */
|
|
8337
|
+
/* @__PURE__ */ React77.createElement(
|
|
8227
8338
|
"div",
|
|
8228
8339
|
{
|
|
8229
8340
|
dir: direction,
|
|
@@ -8234,7 +8345,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8234
8345
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
|
8235
8346
|
}
|
|
8236
8347
|
},
|
|
8237
|
-
/* @__PURE__ */
|
|
8348
|
+
/* @__PURE__ */ React77.createElement(
|
|
8238
8349
|
"img",
|
|
8239
8350
|
{
|
|
8240
8351
|
className: clsx30(
|
|
@@ -8246,7 +8357,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8246
8357
|
src: props.logoLink
|
|
8247
8358
|
}
|
|
8248
8359
|
),
|
|
8249
|
-
size > 600 ? /* @__PURE__ */
|
|
8360
|
+
size > 600 ? /* @__PURE__ */ React77.createElement(
|
|
8250
8361
|
"img",
|
|
8251
8362
|
{
|
|
8252
8363
|
className: clsx30(
|
|
@@ -8258,7 +8369,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8258
8369
|
}
|
|
8259
8370
|
) : null
|
|
8260
8371
|
),
|
|
8261
|
-
/* @__PURE__ */
|
|
8372
|
+
/* @__PURE__ */ React77.createElement(
|
|
8262
8373
|
"div",
|
|
8263
8374
|
{
|
|
8264
8375
|
className: clsx30(
|
|
@@ -8272,7 +8383,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8272
8383
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
|
8273
8384
|
}
|
|
8274
8385
|
},
|
|
8275
|
-
props.drawerItems?.map((dSection, dIndex) => /* @__PURE__ */
|
|
8386
|
+
props.drawerItems?.map((dSection, dIndex) => /* @__PURE__ */ React77.createElement(
|
|
8276
8387
|
"div",
|
|
8277
8388
|
{
|
|
8278
8389
|
key: dIndex,
|
|
@@ -8281,7 +8392,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8281
8392
|
)
|
|
8282
8393
|
},
|
|
8283
8394
|
dSection?.map((dItem, i) => {
|
|
8284
|
-
return /* @__PURE__ */
|
|
8395
|
+
return /* @__PURE__ */ React77.createElement("div", { key: i, id: "test", className: "flex flex-col" }, /* @__PURE__ */ React77.createElement(
|
|
8285
8396
|
"div",
|
|
8286
8397
|
{
|
|
8287
8398
|
onClick: () => {
|
|
@@ -8302,7 +8413,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8302
8413
|
openSideMenu ? "m-2" : "m-2"
|
|
8303
8414
|
)
|
|
8304
8415
|
},
|
|
8305
|
-
/* @__PURE__ */
|
|
8416
|
+
/* @__PURE__ */ React77.createElement("div", { className: "flex flex-row", dir: direction }, /* @__PURE__ */ React77.createElement("div", { className: "flex items-center justify-center " }, dItem.icon), /* @__PURE__ */ React77.createElement(
|
|
8306
8417
|
"div",
|
|
8307
8418
|
{
|
|
8308
8419
|
className: clsx30(
|
|
@@ -8312,13 +8423,13 @@ var HawaAppLayoutSimplified = ({
|
|
|
8312
8423
|
},
|
|
8313
8424
|
dItem.label
|
|
8314
8425
|
)),
|
|
8315
|
-
dItem.subItems && /* @__PURE__ */
|
|
8426
|
+
dItem.subItems && /* @__PURE__ */ React77.createElement(
|
|
8316
8427
|
ArrowIcon,
|
|
8317
8428
|
{
|
|
8318
8429
|
pointing: openSubItem && dItem.slug === openSubItem ? "up" : "down"
|
|
8319
8430
|
}
|
|
8320
8431
|
)
|
|
8321
|
-
), dItem.subItems && /* @__PURE__ */
|
|
8432
|
+
), dItem.subItems && /* @__PURE__ */ React77.createElement(
|
|
8322
8433
|
"div",
|
|
8323
8434
|
{
|
|
8324
8435
|
className: clsx30(
|
|
@@ -8330,7 +8441,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8330
8441
|
height: openSubItem == dItem.slug && openSideMenu ? 6 + 35 * dItem.subItems?.length : 0
|
|
8331
8442
|
}
|
|
8332
8443
|
},
|
|
8333
|
-
dItem.subItems?.map((subIt, s) => /* @__PURE__ */
|
|
8444
|
+
dItem.subItems?.map((subIt, s) => /* @__PURE__ */ React77.createElement(
|
|
8334
8445
|
"div",
|
|
8335
8446
|
{
|
|
8336
8447
|
key: s,
|
|
@@ -8344,15 +8455,15 @@ var HawaAppLayoutSimplified = ({
|
|
|
8344
8455
|
subIt.action();
|
|
8345
8456
|
}
|
|
8346
8457
|
},
|
|
8347
|
-
/* @__PURE__ */
|
|
8348
|
-
/* @__PURE__ */
|
|
8458
|
+
/* @__PURE__ */ React77.createElement("div", { className: "flex items-center justify-center" }, subIt.icon),
|
|
8459
|
+
/* @__PURE__ */ React77.createElement("div", { className: "flex flex-row justify-between" }, subIt.label)
|
|
8349
8460
|
))
|
|
8350
8461
|
));
|
|
8351
8462
|
}),
|
|
8352
|
-
dIndex !== props.drawerItems.length - 1 && /* @__PURE__ */
|
|
8463
|
+
dIndex !== props.drawerItems.length - 1 && /* @__PURE__ */ React77.createElement("div", { className: "my-2 h-[1px] w-10/12 self-center bg-buttonPrimary-500 bg-red-500 text-center " })
|
|
8353
8464
|
))
|
|
8354
8465
|
),
|
|
8355
|
-
/* @__PURE__ */
|
|
8466
|
+
/* @__PURE__ */ React77.createElement(
|
|
8356
8467
|
"div",
|
|
8357
8468
|
{
|
|
8358
8469
|
className: clsx30(
|
|
@@ -8363,22 +8474,22 @@ var HawaAppLayoutSimplified = ({
|
|
|
8363
8474
|
width: size > 600 ? `${openSideMenu ? openDrawerWidth : 56}px` : `${openSideMenu ? openDrawerWidth : 0}px`
|
|
8364
8475
|
}
|
|
8365
8476
|
},
|
|
8366
|
-
DrawerFooterActions && openSideMenu ? /* @__PURE__ */
|
|
8367
|
-
size > 600 && openSideMenu ? /* @__PURE__ */
|
|
8477
|
+
DrawerFooterActions && openSideMenu ? /* @__PURE__ */ React77.createElement(React77.Fragment, null, DrawerFooterActions) : null,
|
|
8478
|
+
size > 600 && openSideMenu ? /* @__PURE__ */ React77.createElement(
|
|
8368
8479
|
Tooltip,
|
|
8369
8480
|
{
|
|
8370
8481
|
side: "left",
|
|
8371
8482
|
delayDuration: 500,
|
|
8372
8483
|
content: keepOpen ? props.texts?.collapseSidebar || "Collapse Sidebar" : props.texts?.expandSidebar || "Expand Sidebar"
|
|
8373
8484
|
},
|
|
8374
|
-
/* @__PURE__ */
|
|
8485
|
+
/* @__PURE__ */ React77.createElement(
|
|
8375
8486
|
Button,
|
|
8376
8487
|
{
|
|
8377
8488
|
variant: "light",
|
|
8378
8489
|
onClick: () => setKeepOpen(!keepOpen),
|
|
8379
8490
|
size: "smallIcon"
|
|
8380
8491
|
},
|
|
8381
|
-
/* @__PURE__ */
|
|
8492
|
+
/* @__PURE__ */ React77.createElement(
|
|
8382
8493
|
"svg",
|
|
8383
8494
|
{
|
|
8384
8495
|
className: clsx30(
|
|
@@ -8388,7 +8499,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8388
8499
|
fill: "currentColor",
|
|
8389
8500
|
viewBox: "0 0 20 20"
|
|
8390
8501
|
},
|
|
8391
|
-
/* @__PURE__ */
|
|
8502
|
+
/* @__PURE__ */ React77.createElement(
|
|
8392
8503
|
"path",
|
|
8393
8504
|
{
|
|
8394
8505
|
fillRule: "evenodd",
|
|
@@ -8400,7 +8511,7 @@ var HawaAppLayoutSimplified = ({
|
|
|
8400
8511
|
)
|
|
8401
8512
|
) : null
|
|
8402
8513
|
)
|
|
8403
|
-
), /* @__PURE__ */
|
|
8514
|
+
), /* @__PURE__ */ React77.createElement(
|
|
8404
8515
|
"div",
|
|
8405
8516
|
{
|
|
8406
8517
|
className: "fixed overflow-y-auto",
|
|
@@ -8419,14 +8530,14 @@ var HawaAppLayoutSimplified = ({
|
|
|
8419
8530
|
props.children
|
|
8420
8531
|
));
|
|
8421
8532
|
};
|
|
8422
|
-
var AvatarIcon = () => /* @__PURE__ */
|
|
8533
|
+
var AvatarIcon = () => /* @__PURE__ */ React77.createElement(
|
|
8423
8534
|
"svg",
|
|
8424
8535
|
{
|
|
8425
8536
|
className: "absolute -left-1 h-10 w-10 text-gray-400",
|
|
8426
8537
|
fill: "currentColor",
|
|
8427
8538
|
viewBox: "0 0 20 20"
|
|
8428
8539
|
},
|
|
8429
|
-
/* @__PURE__ */
|
|
8540
|
+
/* @__PURE__ */ React77.createElement(
|
|
8430
8541
|
"path",
|
|
8431
8542
|
{
|
|
8432
8543
|
fillRule: "evenodd",
|
|
@@ -8453,7 +8564,7 @@ var ArrowIcon = ({ pointing }) => {
|
|
|
8453
8564
|
default:
|
|
8454
8565
|
break;
|
|
8455
8566
|
}
|
|
8456
|
-
return /* @__PURE__ */
|
|
8567
|
+
return /* @__PURE__ */ React77.createElement(
|
|
8457
8568
|
"svg",
|
|
8458
8569
|
{
|
|
8459
8570
|
className: clsx30(
|
|
@@ -8463,7 +8574,7 @@ var ArrowIcon = ({ pointing }) => {
|
|
|
8463
8574
|
fill: "currentColor",
|
|
8464
8575
|
viewBox: "0 0 20 20"
|
|
8465
8576
|
},
|
|
8466
|
-
/* @__PURE__ */
|
|
8577
|
+
/* @__PURE__ */ React77.createElement(
|
|
8467
8578
|
"path",
|
|
8468
8579
|
{
|
|
8469
8580
|
fillRule: "evenodd",
|
|
@@ -8475,7 +8586,7 @@ var ArrowIcon = ({ pointing }) => {
|
|
|
8475
8586
|
};
|
|
8476
8587
|
|
|
8477
8588
|
// src/layout/HawaContainer.tsx
|
|
8478
|
-
import
|
|
8589
|
+
import React78 from "react";
|
|
8479
8590
|
import clsx31 from "clsx";
|
|
8480
8591
|
var HawaContainer = ({
|
|
8481
8592
|
maxWidth = "normal",
|
|
@@ -8495,7 +8606,7 @@ var HawaContainer = ({
|
|
|
8495
8606
|
outlined: "bg-transparent border border-black w-fit",
|
|
8496
8607
|
neobrutalism: "shadow-neobrutalism border-4 border-black bg-white"
|
|
8497
8608
|
};
|
|
8498
|
-
return /* @__PURE__ */
|
|
8609
|
+
return /* @__PURE__ */ React78.createElement(
|
|
8499
8610
|
"div",
|
|
8500
8611
|
{
|
|
8501
8612
|
className: clsx31(
|
|
@@ -8511,28 +8622,28 @@ var HawaContainer = ({
|
|
|
8511
8622
|
};
|
|
8512
8623
|
|
|
8513
8624
|
// src/layout/HawaGrid.tsx
|
|
8514
|
-
import
|
|
8625
|
+
import React79 from "react";
|
|
8515
8626
|
var HawaGrid = (props) => {
|
|
8516
8627
|
return (
|
|
8517
8628
|
// [&>*:not(:first-child)]:mt-8
|
|
8518
|
-
/* @__PURE__ */
|
|
8629
|
+
/* @__PURE__ */ React79.createElement("div", { className: " columns-1 gap-5 sm:columns-2 sm:gap-8 md:columns-3 lg:columns-4 [&>*:not(:first-child)]:mt-8" }, props.children)
|
|
8519
8630
|
);
|
|
8520
8631
|
};
|
|
8521
8632
|
|
|
8522
8633
|
// src/layout/AppSidebar.tsx
|
|
8523
|
-
import
|
|
8634
|
+
import React80 from "react";
|
|
8524
8635
|
var AppSidebar = ({ isOpen, onClose, items }) => {
|
|
8525
8636
|
if (!isOpen) {
|
|
8526
8637
|
return null;
|
|
8527
8638
|
}
|
|
8528
|
-
return /* @__PURE__ */
|
|
8639
|
+
return /* @__PURE__ */ React80.createElement("div", { className: "fixed inset-0 z-40 flex bg-gray-600 bg-opacity-75" }, /* @__PURE__ */ React80.createElement("div", { className: "w-1/3 rounded-l-lg bg-gray-800 shadow-2xl" }, /* @__PURE__ */ React80.createElement(
|
|
8529
8640
|
"button",
|
|
8530
8641
|
{
|
|
8531
8642
|
onClick: onClose,
|
|
8532
8643
|
className: "p-4 text-gray-400 hover:text-white focus:text-white focus:outline-none"
|
|
8533
8644
|
},
|
|
8534
8645
|
"Close"
|
|
8535
|
-
), /* @__PURE__ */
|
|
8646
|
+
), /* @__PURE__ */ React80.createElement("nav", null, items.map((item, i) => /* @__PURE__ */ React80.createElement(
|
|
8536
8647
|
"a",
|
|
8537
8648
|
{
|
|
8538
8649
|
key: i,
|
|
@@ -8541,7 +8652,7 @@ var AppSidebar = ({ isOpen, onClose, items }) => {
|
|
|
8541
8652
|
className: "block p-4 font-bold text-white hover:bg-gray-700 hover:text-gray-400"
|
|
8542
8653
|
},
|
|
8543
8654
|
item.label
|
|
8544
|
-
)))), /* @__PURE__ */
|
|
8655
|
+
)))), /* @__PURE__ */ React80.createElement("div", { className: "w-2/3 bg-gray-50" }));
|
|
8545
8656
|
};
|
|
8546
8657
|
|
|
8547
8658
|
// src/layout/Footer.tsx
|
|
@@ -8559,7 +8670,7 @@ var Footer = ({ ...props }) => {
|
|
|
8559
8670
|
};
|
|
8560
8671
|
|
|
8561
8672
|
// src/layout/Banner.tsx
|
|
8562
|
-
import
|
|
8673
|
+
import React81, { useRef as useRef17, useState as useState40 } from "react";
|
|
8563
8674
|
import clsx32 from "clsx";
|
|
8564
8675
|
var HawaBanner = ({
|
|
8565
8676
|
design = "floating",
|
|
@@ -8571,7 +8682,7 @@ var HawaBanner = ({
|
|
|
8571
8682
|
floating: "left-1/2 z-50 w-[calc(100%-2rem)] -translate-x-1/2 lg:max-w-7xl p-4 rounded",
|
|
8572
8683
|
default: "w-[calc(100%)] left-0 z-50 right-0 rounded-none p-2"
|
|
8573
8684
|
};
|
|
8574
|
-
return /* @__PURE__ */
|
|
8685
|
+
return /* @__PURE__ */ React81.createElement("div", { ref: bannerRef }, /* @__PURE__ */ React81.createElement(
|
|
8575
8686
|
"div",
|
|
8576
8687
|
{
|
|
8577
8688
|
dir: props.direction,
|
|
@@ -8582,7 +8693,7 @@ var HawaBanner = ({
|
|
|
8582
8693
|
closed ? "opacity-0" : "opacity-100"
|
|
8583
8694
|
)
|
|
8584
8695
|
},
|
|
8585
|
-
/* @__PURE__ */
|
|
8696
|
+
/* @__PURE__ */ React81.createElement("div", { className: "mb-3 flex w-full flex-col items-center justify-start md:mb-0 md:flex-row md:items-center" }, /* @__PURE__ */ React81.createElement(
|
|
8586
8697
|
"div",
|
|
8587
8698
|
{
|
|
8588
8699
|
className: clsx32(
|
|
@@ -8590,7 +8701,7 @@ var HawaBanner = ({
|
|
|
8590
8701
|
"mb-2 flex items-center border-gray-200 dark:border-gray-600 md:mb-0 md:mr-4 md:pr-4"
|
|
8591
8702
|
)
|
|
8592
8703
|
},
|
|
8593
|
-
props.logoURL && /* @__PURE__ */
|
|
8704
|
+
props.logoURL && /* @__PURE__ */ React81.createElement(
|
|
8594
8705
|
"img",
|
|
8595
8706
|
{
|
|
8596
8707
|
src: props.logoURL,
|
|
@@ -8598,8 +8709,8 @@ var HawaBanner = ({
|
|
|
8598
8709
|
alt: "Flowbite Logo"
|
|
8599
8710
|
}
|
|
8600
8711
|
),
|
|
8601
|
-
props.title && /* @__PURE__ */
|
|
8602
|
-
), props.text && /* @__PURE__ */
|
|
8712
|
+
props.title && /* @__PURE__ */ React81.createElement("span", { className: "self-center whitespace-nowrap text-lg font-semibold dark:text-white" }, props.title)
|
|
8713
|
+
), props.text && /* @__PURE__ */ React81.createElement(
|
|
8603
8714
|
"p",
|
|
8604
8715
|
{
|
|
8605
8716
|
className: clsx32(
|
|
@@ -8609,7 +8720,7 @@ var HawaBanner = ({
|
|
|
8609
8720
|
},
|
|
8610
8721
|
props.text
|
|
8611
8722
|
)),
|
|
8612
|
-
props.actionText && /* @__PURE__ */
|
|
8723
|
+
props.actionText && /* @__PURE__ */ React81.createElement(
|
|
8613
8724
|
"div",
|
|
8614
8725
|
{
|
|
8615
8726
|
className: clsx32(
|
|
@@ -8617,9 +8728,9 @@ var HawaBanner = ({
|
|
|
8617
8728
|
props.direction === "rtl" ? "ml-0 md:ml-10" : "mr-0 md:mr-10"
|
|
8618
8729
|
)
|
|
8619
8730
|
},
|
|
8620
|
-
/* @__PURE__ */
|
|
8731
|
+
/* @__PURE__ */ React81.createElement(HawaButton, { onClick: props.onActionClick }, props.actionText)
|
|
8621
8732
|
),
|
|
8622
|
-
/* @__PURE__ */
|
|
8733
|
+
/* @__PURE__ */ React81.createElement(
|
|
8623
8734
|
"button",
|
|
8624
8735
|
{
|
|
8625
8736
|
type: "button",
|
|
@@ -8636,8 +8747,8 @@ var HawaBanner = ({
|
|
|
8636
8747
|
}, 200);
|
|
8637
8748
|
}
|
|
8638
8749
|
},
|
|
8639
|
-
/* @__PURE__ */
|
|
8640
|
-
/* @__PURE__ */
|
|
8750
|
+
/* @__PURE__ */ React81.createElement("span", { className: "sr-only" }, "Close"),
|
|
8751
|
+
/* @__PURE__ */ React81.createElement(
|
|
8641
8752
|
"svg",
|
|
8642
8753
|
{
|
|
8643
8754
|
"aria-hidden": "true",
|
|
@@ -8645,7 +8756,7 @@ var HawaBanner = ({
|
|
|
8645
8756
|
fill: "currentColor",
|
|
8646
8757
|
viewBox: "0 0 20 20"
|
|
8647
8758
|
},
|
|
8648
|
-
/* @__PURE__ */
|
|
8759
|
+
/* @__PURE__ */ React81.createElement(
|
|
8649
8760
|
"path",
|
|
8650
8761
|
{
|
|
8651
8762
|
fillRule: "evenodd",
|
|
@@ -8659,7 +8770,7 @@ var HawaBanner = ({
|
|
|
8659
8770
|
};
|
|
8660
8771
|
|
|
8661
8772
|
// src/blocks/Account/UserProfileForm.tsx
|
|
8662
|
-
import
|
|
8773
|
+
import React82 from "react";
|
|
8663
8774
|
import { Controller, FormProvider, useForm } from "react-hook-form";
|
|
8664
8775
|
var UserProfileForm = (props) => {
|
|
8665
8776
|
const methods = useForm();
|
|
@@ -8669,12 +8780,12 @@ var UserProfileForm = (props) => {
|
|
|
8669
8780
|
handleSubmit,
|
|
8670
8781
|
control
|
|
8671
8782
|
} = methods;
|
|
8672
|
-
return /* @__PURE__ */
|
|
8783
|
+
return /* @__PURE__ */ React82.createElement(Card, null, /* @__PURE__ */ React82.createElement("form", { onSubmit: handleSubmit((e) => props.handleUpdateProfile(e)) }, /* @__PURE__ */ React82.createElement(CardContent, { headless: true }, /* @__PURE__ */ React82.createElement(FormProvider, { ...methods }, /* @__PURE__ */ React82.createElement(
|
|
8673
8784
|
Controller,
|
|
8674
8785
|
{
|
|
8675
8786
|
control,
|
|
8676
8787
|
name: "fullName",
|
|
8677
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8788
|
+
render: ({ field }) => /* @__PURE__ */ React82.createElement(
|
|
8678
8789
|
HawaTextField,
|
|
8679
8790
|
{
|
|
8680
8791
|
width: "full",
|
|
@@ -8687,19 +8798,19 @@ var UserProfileForm = (props) => {
|
|
|
8687
8798
|
}
|
|
8688
8799
|
)
|
|
8689
8800
|
}
|
|
8690
|
-
), /* @__PURE__ */
|
|
8801
|
+
), /* @__PURE__ */ React82.createElement(
|
|
8691
8802
|
Controller,
|
|
8692
8803
|
{
|
|
8693
8804
|
control,
|
|
8694
8805
|
name: "phoneNumber",
|
|
8695
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8806
|
+
render: ({ field }) => /* @__PURE__ */ React82.createElement(HawaPhoneInput, { label: "Phone number" })
|
|
8696
8807
|
}
|
|
8697
|
-
), /* @__PURE__ */
|
|
8808
|
+
), /* @__PURE__ */ React82.createElement(
|
|
8698
8809
|
Controller,
|
|
8699
8810
|
{
|
|
8700
8811
|
control,
|
|
8701
8812
|
name: "email",
|
|
8702
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8813
|
+
render: ({ field }) => /* @__PURE__ */ React82.createElement(
|
|
8703
8814
|
HawaTextField,
|
|
8704
8815
|
{
|
|
8705
8816
|
width: "full",
|
|
@@ -8719,12 +8830,12 @@ var UserProfileForm = (props) => {
|
|
|
8719
8830
|
}
|
|
8720
8831
|
}
|
|
8721
8832
|
}
|
|
8722
|
-
), /* @__PURE__ */
|
|
8833
|
+
), /* @__PURE__ */ React82.createElement(
|
|
8723
8834
|
Controller,
|
|
8724
8835
|
{
|
|
8725
8836
|
control,
|
|
8726
8837
|
name: "password",
|
|
8727
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8838
|
+
render: ({ field }) => /* @__PURE__ */ React82.createElement(
|
|
8728
8839
|
HawaTextField,
|
|
8729
8840
|
{
|
|
8730
8841
|
width: "full",
|
|
@@ -8740,12 +8851,12 @@ var UserProfileForm = (props) => {
|
|
|
8740
8851
|
required: props.texts.passwordRequiredText
|
|
8741
8852
|
}
|
|
8742
8853
|
}
|
|
8743
|
-
), /* @__PURE__ */
|
|
8854
|
+
), /* @__PURE__ */ React82.createElement(
|
|
8744
8855
|
Controller,
|
|
8745
8856
|
{
|
|
8746
8857
|
control,
|
|
8747
8858
|
name: "confirmPassword",
|
|
8748
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8859
|
+
render: ({ field }) => /* @__PURE__ */ React82.createElement(
|
|
8749
8860
|
HawaTextField,
|
|
8750
8861
|
{
|
|
8751
8862
|
width: "full",
|
|
@@ -8761,19 +8872,19 @@ var UserProfileForm = (props) => {
|
|
|
8761
8872
|
required: props.texts.confirmPasswordRequiredText
|
|
8762
8873
|
}
|
|
8763
8874
|
}
|
|
8764
|
-
))), /* @__PURE__ */
|
|
8875
|
+
))), /* @__PURE__ */ React82.createElement(CardFooter, null, /* @__PURE__ */ React82.createElement(Button, { className: "w-full", type: "submit" }, props.texts.updateProfile))));
|
|
8765
8876
|
};
|
|
8766
8877
|
|
|
8767
8878
|
// src/blocks/Account/UserSettingsForm.tsx
|
|
8768
|
-
import
|
|
8879
|
+
import React83 from "react";
|
|
8769
8880
|
var UserSettingsForm = (props) => {
|
|
8770
|
-
return /* @__PURE__ */
|
|
8881
|
+
return /* @__PURE__ */ React83.createElement(Card, null, /* @__PURE__ */ React83.createElement(CardContent, { headless: true }, /* @__PURE__ */ React83.createElement("div", { className: "mb-2 text-sm font-bold" }, props.blockTitle), /* @__PURE__ */ React83.createElement("div", { className: "flex flex-col gap-4 rounded p-2" }, props.children)));
|
|
8771
8882
|
};
|
|
8772
8883
|
|
|
8773
8884
|
// src/blocks/AuthForms/AppLanding.tsx
|
|
8774
|
-
import
|
|
8885
|
+
import React84 from "react";
|
|
8775
8886
|
var AppLanding = (props) => {
|
|
8776
|
-
return /* @__PURE__ */
|
|
8887
|
+
return /* @__PURE__ */ React84.createElement("div", null, /* @__PURE__ */ React84.createElement(Card, null, /* @__PURE__ */ React84.createElement(CardContent, { headless: true, className: "flex flex-col gap-6" }, props.handleSignIn && /* @__PURE__ */ React84.createElement(Button, { onClick: props.handleSignIn }, props.texts.signIn), props.handleSignUp && /* @__PURE__ */ React84.createElement(Button, { onClick: props.handleSignUp }, props.texts.signUp))), /* @__PURE__ */ React84.createElement("div", { className: "mt-6 flex flex-row justify-between" }, /* @__PURE__ */ React84.createElement(
|
|
8777
8888
|
HawaRadio,
|
|
8778
8889
|
{
|
|
8779
8890
|
onChangeTab: props.handleLanguage,
|
|
@@ -8783,7 +8894,7 @@ var AppLanding = (props) => {
|
|
|
8783
8894
|
{ value: "en", label: "English" }
|
|
8784
8895
|
]
|
|
8785
8896
|
}
|
|
8786
|
-
), /* @__PURE__ */
|
|
8897
|
+
), /* @__PURE__ */ React84.createElement(
|
|
8787
8898
|
HawaRadio,
|
|
8788
8899
|
{
|
|
8789
8900
|
onChangeTab: props.handleColorMode,
|
|
@@ -8791,7 +8902,7 @@ var AppLanding = (props) => {
|
|
|
8791
8902
|
options: [
|
|
8792
8903
|
{
|
|
8793
8904
|
value: "light",
|
|
8794
|
-
label: /* @__PURE__ */
|
|
8905
|
+
label: /* @__PURE__ */ React84.createElement(
|
|
8795
8906
|
"svg",
|
|
8796
8907
|
{
|
|
8797
8908
|
width: "15",
|
|
@@ -8801,7 +8912,7 @@ var AppLanding = (props) => {
|
|
|
8801
8912
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8802
8913
|
className: "h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90"
|
|
8803
8914
|
},
|
|
8804
|
-
/* @__PURE__ */
|
|
8915
|
+
/* @__PURE__ */ React84.createElement(
|
|
8805
8916
|
"path",
|
|
8806
8917
|
{
|
|
8807
8918
|
d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",
|
|
@@ -8814,7 +8925,7 @@ var AppLanding = (props) => {
|
|
|
8814
8925
|
},
|
|
8815
8926
|
{
|
|
8816
8927
|
value: "dark",
|
|
8817
|
-
label: /* @__PURE__ */
|
|
8928
|
+
label: /* @__PURE__ */ React84.createElement(
|
|
8818
8929
|
"svg",
|
|
8819
8930
|
{
|
|
8820
8931
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8828,7 +8939,7 @@ var AppLanding = (props) => {
|
|
|
8828
8939
|
strokeLinejoin: "round",
|
|
8829
8940
|
className: "h-[1.2rem] w-[1.2rem] transition-all dark:rotate-0 dark:scale-100"
|
|
8830
8941
|
},
|
|
8831
|
-
/* @__PURE__ */
|
|
8942
|
+
/* @__PURE__ */ React84.createElement("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
|
8832
8943
|
)
|
|
8833
8944
|
}
|
|
8834
8945
|
]
|
|
@@ -8837,7 +8948,7 @@ var AppLanding = (props) => {
|
|
|
8837
8948
|
};
|
|
8838
8949
|
|
|
8839
8950
|
// src/blocks/AuthForms/SignInPhone.tsx
|
|
8840
|
-
import
|
|
8951
|
+
import React85, { useState as useState41 } from "react";
|
|
8841
8952
|
import { Controller as Controller2, useForm as useForm2 } from "react-hook-form";
|
|
8842
8953
|
var SignInPhone = (props) => {
|
|
8843
8954
|
const methods = useForm2();
|
|
@@ -8847,7 +8958,7 @@ var SignInPhone = (props) => {
|
|
|
8847
8958
|
control
|
|
8848
8959
|
} = methods;
|
|
8849
8960
|
const [userPhone, setUserPhone] = useState41("");
|
|
8850
|
-
return /* @__PURE__ */
|
|
8961
|
+
return /* @__PURE__ */ React85.createElement(Card, null, /* @__PURE__ */ React85.createElement(CardContent, { headless: true }, /* @__PURE__ */ React85.createElement(
|
|
8851
8962
|
"form",
|
|
8852
8963
|
{
|
|
8853
8964
|
onSubmit: (e) => {
|
|
@@ -8855,12 +8966,12 @@ var SignInPhone = (props) => {
|
|
|
8855
8966
|
props.handleSignIn(userPhone);
|
|
8856
8967
|
}
|
|
8857
8968
|
},
|
|
8858
|
-
/* @__PURE__ */
|
|
8969
|
+
/* @__PURE__ */ React85.createElement(
|
|
8859
8970
|
Controller2,
|
|
8860
8971
|
{
|
|
8861
8972
|
control,
|
|
8862
8973
|
name: "phone",
|
|
8863
|
-
render: ({ field }) => /* @__PURE__ */
|
|
8974
|
+
render: ({ field }) => /* @__PURE__ */ React85.createElement(
|
|
8864
8975
|
HawaPhoneInput,
|
|
8865
8976
|
{
|
|
8866
8977
|
country: props.country ?? "",
|
|
@@ -8874,13 +8985,13 @@ var SignInPhone = (props) => {
|
|
|
8874
8985
|
}
|
|
8875
8986
|
}
|
|
8876
8987
|
),
|
|
8877
|
-
/* @__PURE__ */
|
|
8878
|
-
/* @__PURE__ */
|
|
8988
|
+
/* @__PURE__ */ React85.createElement("div", { className: "mt-2" }),
|
|
8989
|
+
/* @__PURE__ */ React85.createElement(Button, { className: "w-full" }, props.SignInButtonText)
|
|
8879
8990
|
)));
|
|
8880
8991
|
};
|
|
8881
8992
|
|
|
8882
8993
|
// src/blocks/AuthForms/SignInForm.tsx
|
|
8883
|
-
import
|
|
8994
|
+
import React86 from "react";
|
|
8884
8995
|
import { Controller as Controller3, useForm as useForm3 } from "react-hook-form";
|
|
8885
8996
|
import clsx33 from "clsx";
|
|
8886
8997
|
|
|
@@ -9022,19 +9133,19 @@ var SignInForm = (props) => {
|
|
|
9022
9133
|
handleSubmit,
|
|
9023
9134
|
control
|
|
9024
9135
|
} = useForm3();
|
|
9025
|
-
return /* @__PURE__ */
|
|
9136
|
+
return /* @__PURE__ */ React86.createElement("div", { className: "flex flex-col gap-4" }, /* @__PURE__ */ React86.createElement(Card, { dir: props.direction }, /* @__PURE__ */ React86.createElement(CardContent, { headless: true }, /* @__PURE__ */ React86.createElement("form", { onSubmit: handleSubmit((e) => props.handleSignIn(e)) }, props.showError && /* @__PURE__ */ React86.createElement(
|
|
9026
9137
|
HawaAlert,
|
|
9027
9138
|
{
|
|
9028
9139
|
title: props.errorTitle,
|
|
9029
9140
|
text: props.errorText,
|
|
9030
9141
|
severity: "error"
|
|
9031
9142
|
}
|
|
9032
|
-
), props.signInType === "email" ? /* @__PURE__ */
|
|
9143
|
+
), props.signInType === "email" ? /* @__PURE__ */ React86.createElement(
|
|
9033
9144
|
Controller3,
|
|
9034
9145
|
{
|
|
9035
9146
|
control,
|
|
9036
9147
|
name: "email",
|
|
9037
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9148
|
+
render: ({ field }) => /* @__PURE__ */ React86.createElement(
|
|
9038
9149
|
HawaTextField,
|
|
9039
9150
|
{
|
|
9040
9151
|
width: "full",
|
|
@@ -9055,13 +9166,13 @@ var SignInForm = (props) => {
|
|
|
9055
9166
|
}
|
|
9056
9167
|
}
|
|
9057
9168
|
}
|
|
9058
|
-
) : props.signInType === "username" ? /* @__PURE__ */
|
|
9169
|
+
) : props.signInType === "username" ? /* @__PURE__ */ React86.createElement(
|
|
9059
9170
|
Controller3,
|
|
9060
9171
|
{
|
|
9061
9172
|
control,
|
|
9062
9173
|
name: "username",
|
|
9063
9174
|
render: ({ field }) => {
|
|
9064
|
-
return /* @__PURE__ */
|
|
9175
|
+
return /* @__PURE__ */ React86.createElement(
|
|
9065
9176
|
HawaTextField,
|
|
9066
9177
|
{
|
|
9067
9178
|
width: "full",
|
|
@@ -9079,20 +9190,20 @@ var SignInForm = (props) => {
|
|
|
9079
9190
|
required: props.texts.usernameRequired
|
|
9080
9191
|
}
|
|
9081
9192
|
}
|
|
9082
|
-
) : /* @__PURE__ */
|
|
9193
|
+
) : /* @__PURE__ */ React86.createElement(
|
|
9083
9194
|
Controller3,
|
|
9084
9195
|
{
|
|
9085
9196
|
control,
|
|
9086
9197
|
name: "phone",
|
|
9087
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9198
|
+
render: ({ field }) => /* @__PURE__ */ React86.createElement(HawaPhoneInput, { label: "Phone number" }),
|
|
9088
9199
|
rules: { required: props.texts.phoneRequiredText }
|
|
9089
9200
|
}
|
|
9090
|
-
), props.signInType !== "phone" && /* @__PURE__ */
|
|
9201
|
+
), props.signInType !== "phone" && /* @__PURE__ */ React86.createElement(React86.Fragment, null, /* @__PURE__ */ React86.createElement(
|
|
9091
9202
|
Controller3,
|
|
9092
9203
|
{
|
|
9093
9204
|
control,
|
|
9094
9205
|
name: "password",
|
|
9095
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9206
|
+
render: ({ field }) => /* @__PURE__ */ React86.createElement(
|
|
9096
9207
|
HawaTextField,
|
|
9097
9208
|
{
|
|
9098
9209
|
width: "full",
|
|
@@ -9110,21 +9221,21 @@ var SignInForm = (props) => {
|
|
|
9110
9221
|
minLength: 5
|
|
9111
9222
|
}
|
|
9112
9223
|
}
|
|
9113
|
-
), !props.withoutResetPassword && /* @__PURE__ */
|
|
9224
|
+
), !props.withoutResetPassword && /* @__PURE__ */ React86.createElement(
|
|
9114
9225
|
"div",
|
|
9115
9226
|
{
|
|
9116
9227
|
onClick: props.handleForgotPassword,
|
|
9117
9228
|
className: "mb-3 w-fit cursor-pointer text-xs dark:text-gray-300"
|
|
9118
9229
|
},
|
|
9119
9230
|
props.texts.forgotPasswordText
|
|
9120
|
-
)), /* @__PURE__ */
|
|
9231
|
+
)), /* @__PURE__ */ React86.createElement(Button, { className: "w-full mt-4", isLoading: props.isLoading }, props.texts.signInText), !props.withoutSignUp && /* @__PURE__ */ React86.createElement("div", { className: "p-3 text-center text-sm font-semibold dark:text-gray-300" }, props.texts.newUserText, " ", /* @__PURE__ */ React86.createElement(
|
|
9121
9232
|
"span",
|
|
9122
9233
|
{
|
|
9123
9234
|
onClick: props.handleRouteToSignUp,
|
|
9124
9235
|
className: "clickable-link"
|
|
9125
9236
|
},
|
|
9126
9237
|
props.texts.createAccount
|
|
9127
|
-
)))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
|
9238
|
+
)))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React86.createElement(CardFooter, { className: "grid grid-cols-1 gap-2 " }, props.viaGoogle && /* @__PURE__ */ React86.createElement(Button, { variant: "outline", onClick: props.handleGoogleSignIn }, /* @__PURE__ */ React86.createElement(
|
|
9128
9239
|
Icons.google,
|
|
9129
9240
|
{
|
|
9130
9241
|
className: clsx33(
|
|
@@ -9132,7 +9243,7 @@ var SignInForm = (props) => {
|
|
|
9132
9243
|
props.direction === "rtl" ? "ml-2" : "mr-2"
|
|
9133
9244
|
)
|
|
9134
9245
|
}
|
|
9135
|
-
), props.texts.signInViaGoogleLabel), props.viaGithub && /* @__PURE__ */
|
|
9246
|
+
), props.texts.signInViaGoogleLabel), props.viaGithub && /* @__PURE__ */ React86.createElement(Button, { variant: "outline", onClick: props.handleGithubSignIn }, /* @__PURE__ */ React86.createElement(
|
|
9136
9247
|
Icons.gitHub,
|
|
9137
9248
|
{
|
|
9138
9249
|
className: clsx33(
|
|
@@ -9140,7 +9251,7 @@ var SignInForm = (props) => {
|
|
|
9140
9251
|
props.direction === "rtl" ? "ml-2" : "mr-2"
|
|
9141
9252
|
)
|
|
9142
9253
|
}
|
|
9143
|
-
), props.texts.signInViaGithubLabel), props.viaTwitter && /* @__PURE__ */
|
|
9254
|
+
), props.texts.signInViaGithubLabel), props.viaTwitter && /* @__PURE__ */ React86.createElement(Button, { variant: "outline", onClick: props.handleTwitterSignIn }, /* @__PURE__ */ React86.createElement(
|
|
9144
9255
|
Icons.twitter,
|
|
9145
9256
|
{
|
|
9146
9257
|
className: clsx33(
|
|
@@ -9148,7 +9259,7 @@ var SignInForm = (props) => {
|
|
|
9148
9259
|
props.direction === "rtl" ? "ml-2" : "mr-2"
|
|
9149
9260
|
)
|
|
9150
9261
|
}
|
|
9151
|
-
), props.texts.signInViaTwitterLabel)) : null), /* @__PURE__ */
|
|
9262
|
+
), props.texts.signInViaTwitterLabel)) : null), /* @__PURE__ */ React86.createElement(
|
|
9152
9263
|
InterfaceSettings,
|
|
9153
9264
|
{
|
|
9154
9265
|
currentColorMode: props.currentColorMode,
|
|
@@ -9165,7 +9276,7 @@ function SignInBlock() {
|
|
|
9165
9276
|
}
|
|
9166
9277
|
|
|
9167
9278
|
// src/blocks/AuthForms/SignUpForm.tsx
|
|
9168
|
-
import
|
|
9279
|
+
import React87 from "react";
|
|
9169
9280
|
import { Controller as Controller4, FormProvider as FormProvider2, useForm as useForm4 } from "react-hook-form";
|
|
9170
9281
|
import clsx34 from "clsx";
|
|
9171
9282
|
var SignUpForm = (props) => {
|
|
@@ -9175,22 +9286,22 @@ var SignUpForm = (props) => {
|
|
|
9175
9286
|
handleSubmit,
|
|
9176
9287
|
control
|
|
9177
9288
|
} = methods;
|
|
9178
|
-
return /* @__PURE__ */
|
|
9289
|
+
return /* @__PURE__ */ React87.createElement("div", { className: "flex flex-col gap-4" }, /* @__PURE__ */ React87.createElement(Card, { dir: props.direction }, /* @__PURE__ */ React87.createElement(CardContent, { headless: true }, /* @__PURE__ */ React87.createElement("div", null, props.showError && /* @__PURE__ */ React87.createElement(
|
|
9179
9290
|
HawaAlert,
|
|
9180
9291
|
{
|
|
9181
9292
|
title: props.errorTitle,
|
|
9182
9293
|
text: props.errorText,
|
|
9183
9294
|
severity: "error"
|
|
9184
9295
|
}
|
|
9185
|
-
), /* @__PURE__ */
|
|
9296
|
+
), /* @__PURE__ */ React87.createElement(FormProvider2, { ...methods }, /* @__PURE__ */ React87.createElement("form", { onSubmit: handleSubmit((e) => props.handleSignUp(e)) }, /* @__PURE__ */ React87.createElement("div", null, props.signUpFields.map((fld, i) => {
|
|
9186
9297
|
if (fld === "fullname") {
|
|
9187
|
-
return /* @__PURE__ */
|
|
9298
|
+
return /* @__PURE__ */ React87.createElement(
|
|
9188
9299
|
Controller4,
|
|
9189
9300
|
{
|
|
9190
9301
|
key: i,
|
|
9191
9302
|
control,
|
|
9192
9303
|
name: "fullName",
|
|
9193
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9304
|
+
render: ({ field }) => /* @__PURE__ */ React87.createElement(
|
|
9194
9305
|
HawaTextField,
|
|
9195
9306
|
{
|
|
9196
9307
|
width: "full",
|
|
@@ -9209,13 +9320,13 @@ var SignUpForm = (props) => {
|
|
|
9209
9320
|
);
|
|
9210
9321
|
}
|
|
9211
9322
|
if (fld === "email") {
|
|
9212
|
-
return /* @__PURE__ */
|
|
9323
|
+
return /* @__PURE__ */ React87.createElement(
|
|
9213
9324
|
Controller4,
|
|
9214
9325
|
{
|
|
9215
9326
|
key: i,
|
|
9216
9327
|
control,
|
|
9217
9328
|
name: "email",
|
|
9218
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9329
|
+
render: ({ field }) => /* @__PURE__ */ React87.createElement(
|
|
9219
9330
|
HawaTextField,
|
|
9220
9331
|
{
|
|
9221
9332
|
width: "full",
|
|
@@ -9239,13 +9350,13 @@ var SignUpForm = (props) => {
|
|
|
9239
9350
|
);
|
|
9240
9351
|
}
|
|
9241
9352
|
if (fld === "username") {
|
|
9242
|
-
return /* @__PURE__ */
|
|
9353
|
+
return /* @__PURE__ */ React87.createElement(
|
|
9243
9354
|
Controller4,
|
|
9244
9355
|
{
|
|
9245
9356
|
key: i,
|
|
9246
9357
|
control,
|
|
9247
9358
|
name: "username",
|
|
9248
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9359
|
+
render: ({ field }) => /* @__PURE__ */ React87.createElement(
|
|
9249
9360
|
HawaTextField,
|
|
9250
9361
|
{
|
|
9251
9362
|
width: "full",
|
|
@@ -9264,12 +9375,12 @@ var SignUpForm = (props) => {
|
|
|
9264
9375
|
}
|
|
9265
9376
|
);
|
|
9266
9377
|
}
|
|
9267
|
-
})), /* @__PURE__ */
|
|
9378
|
+
})), /* @__PURE__ */ React87.createElement(
|
|
9268
9379
|
Controller4,
|
|
9269
9380
|
{
|
|
9270
9381
|
control,
|
|
9271
9382
|
name: "password",
|
|
9272
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9383
|
+
render: ({ field }) => /* @__PURE__ */ React87.createElement(
|
|
9273
9384
|
HawaTextField,
|
|
9274
9385
|
{
|
|
9275
9386
|
width: "full",
|
|
@@ -9284,12 +9395,12 @@ var SignUpForm = (props) => {
|
|
|
9284
9395
|
),
|
|
9285
9396
|
rules: { required: props.texts.passwordRequiredText }
|
|
9286
9397
|
}
|
|
9287
|
-
), /* @__PURE__ */
|
|
9398
|
+
), /* @__PURE__ */ React87.createElement(
|
|
9288
9399
|
Controller4,
|
|
9289
9400
|
{
|
|
9290
9401
|
control,
|
|
9291
9402
|
name: "confirm_password",
|
|
9292
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9403
|
+
render: ({ field }) => /* @__PURE__ */ React87.createElement(
|
|
9293
9404
|
HawaTextField,
|
|
9294
9405
|
{
|
|
9295
9406
|
width: "full",
|
|
@@ -9304,12 +9415,12 @@ var SignUpForm = (props) => {
|
|
|
9304
9415
|
),
|
|
9305
9416
|
rules: { required: props.texts.passwordRequiredText }
|
|
9306
9417
|
}
|
|
9307
|
-
), props.showRefCode && /* @__PURE__ */
|
|
9418
|
+
), props.showRefCode && /* @__PURE__ */ React87.createElement(
|
|
9308
9419
|
Controller4,
|
|
9309
9420
|
{
|
|
9310
9421
|
control,
|
|
9311
9422
|
name: "refCode",
|
|
9312
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9423
|
+
render: ({ field }) => /* @__PURE__ */ React87.createElement(
|
|
9313
9424
|
HawaTextField,
|
|
9314
9425
|
{
|
|
9315
9426
|
width: "full",
|
|
@@ -9322,12 +9433,12 @@ var SignUpForm = (props) => {
|
|
|
9322
9433
|
}
|
|
9323
9434
|
)
|
|
9324
9435
|
}
|
|
9325
|
-
), props.showUserSource && /* @__PURE__ */
|
|
9436
|
+
), props.showUserSource && /* @__PURE__ */ React87.createElement("div", null, /* @__PURE__ */ React87.createElement(
|
|
9326
9437
|
Controller4,
|
|
9327
9438
|
{
|
|
9328
9439
|
control,
|
|
9329
9440
|
name: "reference",
|
|
9330
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9441
|
+
render: ({ field }) => /* @__PURE__ */ React87.createElement(
|
|
9331
9442
|
HawaSelect,
|
|
9332
9443
|
{
|
|
9333
9444
|
label: "How did you learn about us?",
|
|
@@ -9346,18 +9457,18 @@ var SignUpForm = (props) => {
|
|
|
9346
9457
|
}
|
|
9347
9458
|
)
|
|
9348
9459
|
}
|
|
9349
|
-
)), props.showTermsOption && /* @__PURE__ */
|
|
9460
|
+
)), props.showTermsOption && /* @__PURE__ */ React87.createElement(
|
|
9350
9461
|
Controller4,
|
|
9351
9462
|
{
|
|
9352
9463
|
control,
|
|
9353
9464
|
name: "terms_accepted",
|
|
9354
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9465
|
+
render: ({ field }) => /* @__PURE__ */ React87.createElement(
|
|
9355
9466
|
HawaCheckbox,
|
|
9356
9467
|
{
|
|
9357
9468
|
id: "terms_accepted",
|
|
9358
9469
|
helperText: errors.terms_accepted?.message,
|
|
9359
9470
|
onChange: (e) => field.onChange(e),
|
|
9360
|
-
label: /* @__PURE__ */
|
|
9471
|
+
label: /* @__PURE__ */ React87.createElement("span", null, props.texts.iAcceptText, " ", /* @__PURE__ */ React87.createElement(
|
|
9361
9472
|
"a",
|
|
9362
9473
|
{
|
|
9363
9474
|
onClick: props.handleRouteToTOS,
|
|
@@ -9369,12 +9480,12 @@ var SignUpForm = (props) => {
|
|
|
9369
9480
|
),
|
|
9370
9481
|
rules: { required: props.texts.termsRequiredText }
|
|
9371
9482
|
}
|
|
9372
|
-
), props.showNewsletterOption && /* @__PURE__ */
|
|
9483
|
+
), props.showNewsletterOption && /* @__PURE__ */ React87.createElement(
|
|
9373
9484
|
Controller4,
|
|
9374
9485
|
{
|
|
9375
9486
|
control,
|
|
9376
9487
|
name: "newsletter_accepted",
|
|
9377
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9488
|
+
render: ({ field }) => /* @__PURE__ */ React87.createElement(
|
|
9378
9489
|
HawaCheckbox,
|
|
9379
9490
|
{
|
|
9380
9491
|
id: "newsletter_accepted",
|
|
@@ -9383,14 +9494,14 @@ var SignUpForm = (props) => {
|
|
|
9383
9494
|
}
|
|
9384
9495
|
)
|
|
9385
9496
|
}
|
|
9386
|
-
), /* @__PURE__ */
|
|
9497
|
+
), /* @__PURE__ */ React87.createElement(Button, { className: "w-full", isLoading: props.isLoading }, props.texts.signUpText))), /* @__PURE__ */ React87.createElement("div", { className: "flex flex-row items-center justify-center gap-1 p-3 text-center text-sm font-semibold dark:text-white" }, /* @__PURE__ */ React87.createElement("span", null, props.texts.existingUserText), /* @__PURE__ */ React87.createElement(
|
|
9387
9498
|
"span",
|
|
9388
9499
|
{
|
|
9389
9500
|
onClick: props.handleRouteToSignIn,
|
|
9390
9501
|
className: "clickable-link"
|
|
9391
9502
|
},
|
|
9392
9503
|
props.texts.signInText
|
|
9393
|
-
)))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
|
9504
|
+
)))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React87.createElement(CardFooter, { className: "grid grid-cols-1 gap-2 " }, props.viaGoogle && /* @__PURE__ */ React87.createElement(Button, { variant: "outline", onClick: props.handleGoogleSignUp }, /* @__PURE__ */ React87.createElement(
|
|
9394
9505
|
Icons.google,
|
|
9395
9506
|
{
|
|
9396
9507
|
className: clsx34(
|
|
@@ -9398,7 +9509,7 @@ var SignUpForm = (props) => {
|
|
|
9398
9509
|
props.direction === "rtl" ? "ml-2" : "mr-2"
|
|
9399
9510
|
)
|
|
9400
9511
|
}
|
|
9401
|
-
), props.texts.signUpViaGoogleLabel), props.viaGithub && /* @__PURE__ */
|
|
9512
|
+
), props.texts.signUpViaGoogleLabel), props.viaGithub && /* @__PURE__ */ React87.createElement(Button, { variant: "outline", onClick: props.handleGithubSignUp }, /* @__PURE__ */ React87.createElement(
|
|
9402
9513
|
Icons.gitHub,
|
|
9403
9514
|
{
|
|
9404
9515
|
className: clsx34(
|
|
@@ -9406,7 +9517,7 @@ var SignUpForm = (props) => {
|
|
|
9406
9517
|
props.direction === "rtl" ? "ml-2" : "mr-2"
|
|
9407
9518
|
)
|
|
9408
9519
|
}
|
|
9409
|
-
), props.texts.signUpViaGithubLabel), props.viaTwitter && /* @__PURE__ */
|
|
9520
|
+
), props.texts.signUpViaGithubLabel), props.viaTwitter && /* @__PURE__ */ React87.createElement(Button, { variant: "outline", onClick: props.handleTwitterSignUp }, /* @__PURE__ */ React87.createElement(
|
|
9410
9521
|
Icons.twitter,
|
|
9411
9522
|
{
|
|
9412
9523
|
className: clsx34(
|
|
@@ -9414,7 +9525,7 @@ var SignUpForm = (props) => {
|
|
|
9414
9525
|
props.direction === "rtl" ? "ml-2" : "mr-2"
|
|
9415
9526
|
)
|
|
9416
9527
|
}
|
|
9417
|
-
), props.texts.signUpViaTwitterLabel)) : null), /* @__PURE__ */
|
|
9528
|
+
), props.texts.signUpViaTwitterLabel)) : null), /* @__PURE__ */ React87.createElement(
|
|
9418
9529
|
InterfaceSettings,
|
|
9419
9530
|
{
|
|
9420
9531
|
currentColorMode: props.currentColorMode,
|
|
@@ -9426,7 +9537,7 @@ var SignUpForm = (props) => {
|
|
|
9426
9537
|
};
|
|
9427
9538
|
|
|
9428
9539
|
// src/blocks/AuthForms/NewPasswordForm.tsx
|
|
9429
|
-
import
|
|
9540
|
+
import React88, { useState as useState42 } from "react";
|
|
9430
9541
|
import { Controller as Controller5, FormProvider as FormProvider3, useForm as useForm5 } from "react-hook-form";
|
|
9431
9542
|
var NewPasswordForm = (props) => {
|
|
9432
9543
|
const [matchError, setMatchError] = useState42(false);
|
|
@@ -9443,12 +9554,12 @@ var NewPasswordForm = (props) => {
|
|
|
9443
9554
|
setMatchError(true);
|
|
9444
9555
|
}
|
|
9445
9556
|
};
|
|
9446
|
-
return /* @__PURE__ */
|
|
9557
|
+
return /* @__PURE__ */ React88.createElement(Card, null, matchError && /* @__PURE__ */ React88.createElement(HawaAlert, { text: props.texts.passwordMatchError, severity: "error" }), props.passwordChanged ? /* @__PURE__ */ React88.createElement(CardContent, { headless: true }, /* @__PURE__ */ React88.createElement("div", { className: "text-center" }, props.texts.passwordChanged)) : /* @__PURE__ */ React88.createElement(FormProvider3, { ...methods }, /* @__PURE__ */ React88.createElement("form", { onSubmit: handleSubmit(handleSubmission) }, /* @__PURE__ */ React88.createElement(CardHeader, null, /* @__PURE__ */ React88.createElement(CardTitle, null, "Create Password"), /* @__PURE__ */ React88.createElement(CardDescription, null, "Set a new password for your account")), /* @__PURE__ */ React88.createElement(CardContent, null, /* @__PURE__ */ React88.createElement(
|
|
9447
9558
|
Controller5,
|
|
9448
9559
|
{
|
|
9449
9560
|
control,
|
|
9450
9561
|
name: "password",
|
|
9451
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9562
|
+
render: ({ field }) => /* @__PURE__ */ React88.createElement(
|
|
9452
9563
|
HawaTextField,
|
|
9453
9564
|
{
|
|
9454
9565
|
width: "full",
|
|
@@ -9465,12 +9576,12 @@ var NewPasswordForm = (props) => {
|
|
|
9465
9576
|
required: props.texts.passwordRequiredText
|
|
9466
9577
|
}
|
|
9467
9578
|
}
|
|
9468
|
-
), /* @__PURE__ */
|
|
9579
|
+
), /* @__PURE__ */ React88.createElement(
|
|
9469
9580
|
Controller5,
|
|
9470
9581
|
{
|
|
9471
9582
|
control,
|
|
9472
9583
|
name: "confirmPassword",
|
|
9473
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9584
|
+
render: ({ field }) => /* @__PURE__ */ React88.createElement(
|
|
9474
9585
|
HawaTextField,
|
|
9475
9586
|
{
|
|
9476
9587
|
width: "full",
|
|
@@ -9487,11 +9598,11 @@ var NewPasswordForm = (props) => {
|
|
|
9487
9598
|
required: props.texts.confirmPasswordRequiredText
|
|
9488
9599
|
}
|
|
9489
9600
|
}
|
|
9490
|
-
)), /* @__PURE__ */
|
|
9601
|
+
)), /* @__PURE__ */ React88.createElement(CardFooter, null, /* @__PURE__ */ React88.createElement(Button, { className: "w-full", type: "submit" }, props.texts.updatePassword)))));
|
|
9491
9602
|
};
|
|
9492
9603
|
|
|
9493
9604
|
// src/blocks/AuthForms/ResetPasswordForm.tsx
|
|
9494
|
-
import
|
|
9605
|
+
import React89 from "react";
|
|
9495
9606
|
import { Controller as Controller6, useForm as useForm6 } from "react-hook-form";
|
|
9496
9607
|
var ResetPasswordForm = (props) => {
|
|
9497
9608
|
const methods = useForm6();
|
|
@@ -9501,12 +9612,12 @@ var ResetPasswordForm = (props) => {
|
|
|
9501
9612
|
register,
|
|
9502
9613
|
control
|
|
9503
9614
|
} = methods;
|
|
9504
|
-
return /* @__PURE__ */
|
|
9615
|
+
return /* @__PURE__ */ React89.createElement(Card, null, !props.sent ? /* @__PURE__ */ React89.createElement(React89.Fragment, null, /* @__PURE__ */ React89.createElement(CardHeader, null, /* @__PURE__ */ React89.createElement(CardTitle, null, "Reset Password"), /* @__PURE__ */ React89.createElement(CardDescription, null, "Enter your email to reset your account password")), /* @__PURE__ */ React89.createElement("form", { onSubmit: handleSubmit(props.handleResetPassword) }, /* @__PURE__ */ React89.createElement(CardContent, null, /* @__PURE__ */ React89.createElement(
|
|
9505
9616
|
Controller6,
|
|
9506
9617
|
{
|
|
9507
9618
|
control,
|
|
9508
9619
|
name: "email",
|
|
9509
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9620
|
+
render: ({ field }) => /* @__PURE__ */ React89.createElement(
|
|
9510
9621
|
HawaTextField,
|
|
9511
9622
|
{
|
|
9512
9623
|
width: "full",
|
|
@@ -9526,28 +9637,28 @@ var ResetPasswordForm = (props) => {
|
|
|
9526
9637
|
}
|
|
9527
9638
|
}
|
|
9528
9639
|
}
|
|
9529
|
-
), /* @__PURE__ */
|
|
9640
|
+
), /* @__PURE__ */ React89.createElement("div", { className: " pb-2 text-left text-sm dark:text-gray-300" }, props.texts.dontHaveAccount ?? "Don't have an account? ", /* @__PURE__ */ React89.createElement(
|
|
9530
9641
|
"span",
|
|
9531
9642
|
{
|
|
9532
9643
|
onClick: props.handleRouteToSignUp,
|
|
9533
9644
|
className: "clickable-link"
|
|
9534
9645
|
},
|
|
9535
9646
|
props.texts.signUpText ?? "Sign Up"
|
|
9536
|
-
))), /* @__PURE__ */
|
|
9647
|
+
))), /* @__PURE__ */ React89.createElement(CardFooter, null, /* @__PURE__ */ React89.createElement(Button, { type: "submit", className: "w-full" }, props.texts.resetPassword)))) : /* @__PURE__ */ React89.createElement(CardContent, { headless: true }, /* @__PURE__ */ React89.createElement("div", { className: "text-center" }, props.texts.emailSentText)));
|
|
9537
9648
|
};
|
|
9538
9649
|
|
|
9539
9650
|
// src/blocks/AuthForms/CodeConfirmation.tsx
|
|
9540
|
-
import
|
|
9651
|
+
import React90, { useState as useState43 } from "react";
|
|
9541
9652
|
var CodeConfirmation = (props) => {
|
|
9542
9653
|
const [pins, setPins] = useState43(null);
|
|
9543
|
-
return /* @__PURE__ */
|
|
9654
|
+
return /* @__PURE__ */ React90.createElement(Card, null, /* @__PURE__ */ React90.createElement(CardContent, { headless: true }, props.showError && /* @__PURE__ */ React90.createElement(
|
|
9544
9655
|
HawaAlert,
|
|
9545
9656
|
{
|
|
9546
9657
|
title: props.errorTitle,
|
|
9547
9658
|
text: props.errorText,
|
|
9548
9659
|
severity: "error"
|
|
9549
9660
|
}
|
|
9550
|
-
), /* @__PURE__ */
|
|
9661
|
+
), /* @__PURE__ */ React90.createElement("div", { className: "mb-4 dark:text-white" }, /* @__PURE__ */ React90.createElement("div", { className: "text-lg font-bold" }, props.texts.checkYourPhone ?? "Please check your phone"), /* @__PURE__ */ React90.createElement("div", { className: "text-muted-foreground" }, /* @__PURE__ */ React90.createElement("span", null, props.texts.weSentCode ?? "We've sent a code to "), /* @__PURE__ */ React90.createElement("span", null, props.phoneNumber)), " "), /* @__PURE__ */ React90.createElement(
|
|
9551
9662
|
"form",
|
|
9552
9663
|
{
|
|
9553
9664
|
onSubmit: (e) => {
|
|
@@ -9557,17 +9668,17 @@ var CodeConfirmation = (props) => {
|
|
|
9557
9668
|
}
|
|
9558
9669
|
}
|
|
9559
9670
|
},
|
|
9560
|
-
/* @__PURE__ */
|
|
9561
|
-
/* @__PURE__ */
|
|
9562
|
-
/* @__PURE__ */
|
|
9671
|
+
/* @__PURE__ */ React90.createElement(HawaPinInput, { width: "full", digits: 6, getPins: (e) => setPins(e) }),
|
|
9672
|
+
/* @__PURE__ */ React90.createElement("div", { className: " py-2 text-center text-xs text-muted-foreground" }, /* @__PURE__ */ React90.createElement("span", null, props.texts.didntGetCode ?? "Didn't get the code?"), " ", /* @__PURE__ */ React90.createElement("span", { className: "clickable-link" }, props.texts.resendCode ?? "Click to resend")),
|
|
9673
|
+
/* @__PURE__ */ React90.createElement("div", { className: "mt-4 grid grid-cols-2 gap-2" }, /* @__PURE__ */ React90.createElement(Button, { variant: "secondary" }, props.texts.cancel ?? "Cancel"), /* @__PURE__ */ React90.createElement(Button, null, props.texts.confirm ?? "Confirm"))
|
|
9563
9674
|
)));
|
|
9564
9675
|
};
|
|
9565
9676
|
|
|
9566
9677
|
// src/blocks/Payment/SelectPayment.tsx
|
|
9567
|
-
import
|
|
9678
|
+
import React91, { useState as useState44 } from "react";
|
|
9568
9679
|
var SelectPayment = (props) => {
|
|
9569
9680
|
const [selectedMethod, setSelectedMethod] = useState44("");
|
|
9570
|
-
return /* @__PURE__ */
|
|
9681
|
+
return /* @__PURE__ */ React91.createElement(Card, null, /* @__PURE__ */ React91.createElement(CardHeader, null, /* @__PURE__ */ React91.createElement(CardTitle, null, "Choose Payment Method"), /* @__PURE__ */ React91.createElement(CardDescription, null, "And you'll be directed to the next step to complete the payment")), /* @__PURE__ */ React91.createElement(CardContent, { className: "grid grid-cols-2 gap-4" }, /* @__PURE__ */ React91.createElement(
|
|
9571
9682
|
Button,
|
|
9572
9683
|
{
|
|
9573
9684
|
className: cn(
|
|
@@ -9579,15 +9690,15 @@ var SelectPayment = (props) => {
|
|
|
9579
9690
|
disabled: !props.viaMada,
|
|
9580
9691
|
onClick: () => setSelectedMethod("mada")
|
|
9581
9692
|
},
|
|
9582
|
-
/* @__PURE__ */
|
|
9693
|
+
/* @__PURE__ */ React91.createElement(
|
|
9583
9694
|
"img",
|
|
9584
9695
|
{
|
|
9585
9696
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/mada.png",
|
|
9586
9697
|
className: "h-6"
|
|
9587
9698
|
}
|
|
9588
9699
|
),
|
|
9589
|
-
/* @__PURE__ */
|
|
9590
|
-
), /* @__PURE__ */
|
|
9700
|
+
/* @__PURE__ */ React91.createElement("span", null, props.madaLabel)
|
|
9701
|
+
), /* @__PURE__ */ React91.createElement(
|
|
9591
9702
|
Button,
|
|
9592
9703
|
{
|
|
9593
9704
|
className: cn(
|
|
@@ -9599,15 +9710,15 @@ var SelectPayment = (props) => {
|
|
|
9599
9710
|
disabled: !props.viaApplePay,
|
|
9600
9711
|
onClick: () => setSelectedMethod("apple-pay")
|
|
9601
9712
|
},
|
|
9602
|
-
/* @__PURE__ */
|
|
9713
|
+
/* @__PURE__ */ React91.createElement(
|
|
9603
9714
|
"img",
|
|
9604
9715
|
{
|
|
9605
9716
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/apple-pay.png",
|
|
9606
9717
|
className: "h-11"
|
|
9607
9718
|
}
|
|
9608
9719
|
),
|
|
9609
|
-
/* @__PURE__ */
|
|
9610
|
-
), /* @__PURE__ */
|
|
9720
|
+
/* @__PURE__ */ React91.createElement("span", null, props.applePayLabel)
|
|
9721
|
+
), /* @__PURE__ */ React91.createElement(
|
|
9611
9722
|
Button,
|
|
9612
9723
|
{
|
|
9613
9724
|
className: cn(
|
|
@@ -9619,15 +9730,15 @@ var SelectPayment = (props) => {
|
|
|
9619
9730
|
disabled: !props.viaCreditCard,
|
|
9620
9731
|
onClick: () => setSelectedMethod("visa-master")
|
|
9621
9732
|
},
|
|
9622
|
-
/* @__PURE__ */
|
|
9733
|
+
/* @__PURE__ */ React91.createElement(
|
|
9623
9734
|
"img",
|
|
9624
9735
|
{
|
|
9625
9736
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/visa-master.png",
|
|
9626
9737
|
className: "h-6"
|
|
9627
9738
|
}
|
|
9628
9739
|
),
|
|
9629
|
-
/* @__PURE__ */
|
|
9630
|
-
), /* @__PURE__ */
|
|
9740
|
+
/* @__PURE__ */ React91.createElement("span", null, props.visaMasterLabel)
|
|
9741
|
+
), /* @__PURE__ */ React91.createElement(
|
|
9631
9742
|
Button,
|
|
9632
9743
|
{
|
|
9633
9744
|
variant: "outline",
|
|
@@ -9639,7 +9750,7 @@ var SelectPayment = (props) => {
|
|
|
9639
9750
|
disabled: !props.viaWallet,
|
|
9640
9751
|
onClick: () => setSelectedMethod("wallet")
|
|
9641
9752
|
},
|
|
9642
|
-
/* @__PURE__ */
|
|
9753
|
+
/* @__PURE__ */ React91.createElement(
|
|
9643
9754
|
"svg",
|
|
9644
9755
|
{
|
|
9645
9756
|
version: "1.1",
|
|
@@ -9647,20 +9758,20 @@ var SelectPayment = (props) => {
|
|
|
9647
9758
|
viewBox: "0 0 223 223",
|
|
9648
9759
|
className: "h-6 w-6"
|
|
9649
9760
|
},
|
|
9650
|
-
/* @__PURE__ */
|
|
9761
|
+
/* @__PURE__ */ React91.createElement("g", null, /* @__PURE__ */ React91.createElement(
|
|
9651
9762
|
"path",
|
|
9652
9763
|
{
|
|
9653
9764
|
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"
|
|
9654
9765
|
}
|
|
9655
|
-
), /* @__PURE__ */
|
|
9766
|
+
), /* @__PURE__ */ React91.createElement(
|
|
9656
9767
|
"path",
|
|
9657
9768
|
{
|
|
9658
9769
|
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"
|
|
9659
9770
|
}
|
|
9660
9771
|
))
|
|
9661
9772
|
),
|
|
9662
|
-
/* @__PURE__ */
|
|
9663
|
-
), /* @__PURE__ */
|
|
9773
|
+
/* @__PURE__ */ React91.createElement("span", null, props.walletLabel)
|
|
9774
|
+
), /* @__PURE__ */ React91.createElement(
|
|
9664
9775
|
Button,
|
|
9665
9776
|
{
|
|
9666
9777
|
variant: "outline",
|
|
@@ -9672,15 +9783,15 @@ var SelectPayment = (props) => {
|
|
|
9672
9783
|
disabled: !props.viaSTCPay,
|
|
9673
9784
|
onClick: () => setSelectedMethod("stc-pay")
|
|
9674
9785
|
},
|
|
9675
|
-
/* @__PURE__ */
|
|
9786
|
+
/* @__PURE__ */ React91.createElement(
|
|
9676
9787
|
"img",
|
|
9677
9788
|
{
|
|
9678
9789
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/stc-pay.png",
|
|
9679
9790
|
className: "h-6"
|
|
9680
9791
|
}
|
|
9681
9792
|
),
|
|
9682
|
-
/* @__PURE__ */
|
|
9683
|
-
), /* @__PURE__ */
|
|
9793
|
+
/* @__PURE__ */ React91.createElement("span", null, props.stcPayLabel)
|
|
9794
|
+
), /* @__PURE__ */ React91.createElement(
|
|
9684
9795
|
Button,
|
|
9685
9796
|
{
|
|
9686
9797
|
variant: "outline",
|
|
@@ -9692,15 +9803,15 @@ var SelectPayment = (props) => {
|
|
|
9692
9803
|
disabled: !props.viaGooglePay,
|
|
9693
9804
|
onClick: () => setSelectedMethod("google-pay")
|
|
9694
9805
|
},
|
|
9695
|
-
/* @__PURE__ */
|
|
9806
|
+
/* @__PURE__ */ React91.createElement(
|
|
9696
9807
|
"img",
|
|
9697
9808
|
{
|
|
9698
9809
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/google-pay.png",
|
|
9699
9810
|
className: "h-6"
|
|
9700
9811
|
}
|
|
9701
9812
|
),
|
|
9702
|
-
/* @__PURE__ */
|
|
9703
|
-
), /* @__PURE__ */
|
|
9813
|
+
/* @__PURE__ */ React91.createElement("span", null, props.googlePayLabel)
|
|
9814
|
+
), /* @__PURE__ */ React91.createElement(
|
|
9704
9815
|
Button,
|
|
9705
9816
|
{
|
|
9706
9817
|
variant: "outline",
|
|
@@ -9712,15 +9823,15 @@ var SelectPayment = (props) => {
|
|
|
9712
9823
|
disabled: !props.viaPayPal,
|
|
9713
9824
|
onClick: () => setSelectedMethod("paypal")
|
|
9714
9825
|
},
|
|
9715
|
-
/* @__PURE__ */
|
|
9826
|
+
/* @__PURE__ */ React91.createElement(
|
|
9716
9827
|
"img",
|
|
9717
9828
|
{
|
|
9718
9829
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/paypal.png",
|
|
9719
9830
|
className: "h-6"
|
|
9720
9831
|
}
|
|
9721
9832
|
),
|
|
9722
|
-
/* @__PURE__ */
|
|
9723
|
-
)), /* @__PURE__ */
|
|
9833
|
+
/* @__PURE__ */ React91.createElement("span", null, props.paypalLabel)
|
|
9834
|
+
)), /* @__PURE__ */ React91.createElement(CardFooter, null, /* @__PURE__ */ React91.createElement(
|
|
9724
9835
|
Button,
|
|
9725
9836
|
{
|
|
9726
9837
|
onClick: () => props.handleContinue(selectedMethod),
|
|
@@ -9732,7 +9843,7 @@ var SelectPayment = (props) => {
|
|
|
9732
9843
|
};
|
|
9733
9844
|
|
|
9734
9845
|
// src/blocks/Payment/CreditCardForm.tsx
|
|
9735
|
-
import
|
|
9846
|
+
import React92 from "react";
|
|
9736
9847
|
import { Controller as Controller7, useForm as useForm7 } from "react-hook-form";
|
|
9737
9848
|
var CreditCardForm = (props) => {
|
|
9738
9849
|
const methods = useForm7();
|
|
@@ -9741,12 +9852,12 @@ var CreditCardForm = (props) => {
|
|
|
9741
9852
|
handleSubmit,
|
|
9742
9853
|
control
|
|
9743
9854
|
} = methods;
|
|
9744
|
-
return /* @__PURE__ */
|
|
9855
|
+
return /* @__PURE__ */ React92.createElement(Card, null, /* @__PURE__ */ React92.createElement("form", { onSubmit: handleSubmit(props.handle) }, /* @__PURE__ */ React92.createElement(CardContent, { headless: true }, /* @__PURE__ */ React92.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ React92.createElement(
|
|
9745
9856
|
Controller7,
|
|
9746
9857
|
{
|
|
9747
9858
|
control,
|
|
9748
9859
|
name: "cardName",
|
|
9749
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9860
|
+
render: ({ field }) => /* @__PURE__ */ React92.createElement(
|
|
9750
9861
|
HawaTextField,
|
|
9751
9862
|
{
|
|
9752
9863
|
width: "full",
|
|
@@ -9761,12 +9872,12 @@ var CreditCardForm = (props) => {
|
|
|
9761
9872
|
required: "Password is rquired"
|
|
9762
9873
|
}
|
|
9763
9874
|
}
|
|
9764
|
-
), /* @__PURE__ */
|
|
9875
|
+
), /* @__PURE__ */ React92.createElement("div", { className: "w-1/4" }, /* @__PURE__ */ React92.createElement(
|
|
9765
9876
|
Controller7,
|
|
9766
9877
|
{
|
|
9767
9878
|
control,
|
|
9768
9879
|
name: "cardName",
|
|
9769
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9880
|
+
render: ({ field }) => /* @__PURE__ */ React92.createElement(
|
|
9770
9881
|
HawaTextField,
|
|
9771
9882
|
{
|
|
9772
9883
|
width: "full",
|
|
@@ -9783,12 +9894,12 @@ var CreditCardForm = (props) => {
|
|
|
9783
9894
|
required: "Password is rquired"
|
|
9784
9895
|
}
|
|
9785
9896
|
}
|
|
9786
|
-
))), /* @__PURE__ */
|
|
9897
|
+
))), /* @__PURE__ */ React92.createElement(
|
|
9787
9898
|
Controller7,
|
|
9788
9899
|
{
|
|
9789
9900
|
control,
|
|
9790
9901
|
name: "cardName",
|
|
9791
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9902
|
+
render: ({ field }) => /* @__PURE__ */ React92.createElement(
|
|
9792
9903
|
HawaTextField,
|
|
9793
9904
|
{
|
|
9794
9905
|
width: "full",
|
|
@@ -9803,12 +9914,12 @@ var CreditCardForm = (props) => {
|
|
|
9803
9914
|
required: "Password is rquired"
|
|
9804
9915
|
}
|
|
9805
9916
|
}
|
|
9806
|
-
), /* @__PURE__ */
|
|
9917
|
+
), /* @__PURE__ */ React92.createElement(
|
|
9807
9918
|
Controller7,
|
|
9808
9919
|
{
|
|
9809
9920
|
control,
|
|
9810
9921
|
name: "cardName",
|
|
9811
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9922
|
+
render: ({ field }) => /* @__PURE__ */ React92.createElement(
|
|
9812
9923
|
HawaTextField,
|
|
9813
9924
|
{
|
|
9814
9925
|
width: "full",
|
|
@@ -9823,24 +9934,24 @@ var CreditCardForm = (props) => {
|
|
|
9823
9934
|
required: "Password is rquired"
|
|
9824
9935
|
}
|
|
9825
9936
|
}
|
|
9826
|
-
)), /* @__PURE__ */
|
|
9937
|
+
)), /* @__PURE__ */ React92.createElement(CardFooter, null, /* @__PURE__ */ React92.createElement(Button, { className: "w-full", onClick: props.handlePayWithCreditCard }, "Pay with Credit Card"))));
|
|
9827
9938
|
};
|
|
9828
9939
|
|
|
9829
9940
|
// src/blocks/Payment/ChargeWalletForm.tsx
|
|
9830
|
-
import
|
|
9941
|
+
import React93, { useState as useState45 } from "react";
|
|
9831
9942
|
var ChargeWalletForm = (props) => {
|
|
9832
9943
|
const [walletAmount, setWalletAmount] = useState45(0);
|
|
9833
|
-
return /* @__PURE__ */
|
|
9944
|
+
return /* @__PURE__ */ React93.createElement(Card, null, /* @__PURE__ */ React93.createElement(CardContent, { headless: true }, /* @__PURE__ */ React93.createElement("div", { className: "p-4 text-center" }, /* @__PURE__ */ React93.createElement("div", { className: " text-5xl font-extrabold" }, Number(walletAmount).toLocaleString("en") || "0"), /* @__PURE__ */ React93.createElement("div", { className: "text-sm font-normal" }, props.currency || "SAR")), /* @__PURE__ */ React93.createElement("div", { className: "mb-2 flex w-full flex-col gap-4 text-center" }, /* @__PURE__ */ React93.createElement("div", { className: "mb-2 flex w-full flex-row gap-4 text-center" }, /* @__PURE__ */ React93.createElement(Button, { variant: "outline", className: "h-full w-full" }, "10 SAR"), /* @__PURE__ */ React93.createElement(Button, { variant: "outline", className: "h-full w-full" }, "50 SAR"), /* @__PURE__ */ React93.createElement(Button, { variant: "outline", className: "h-full w-full" }, "100 SAR")), /* @__PURE__ */ React93.createElement(Input, { placeholder: "Custom Amount", type: "number", name: "amount" })), /* @__PURE__ */ React93.createElement(Button, { className: "mt-6 w-full" }, props.texts.chargeWallet)));
|
|
9834
9945
|
};
|
|
9835
9946
|
|
|
9836
9947
|
// src/blocks/Payment/PayWithWallet.tsx
|
|
9837
|
-
import
|
|
9948
|
+
import React94 from "react";
|
|
9838
9949
|
var PayWithWallet = (props) => {
|
|
9839
|
-
return /* @__PURE__ */
|
|
9950
|
+
return /* @__PURE__ */ React94.createElement(Card, null, /* @__PURE__ */ React94.createElement(CardContent, { headless: true }, /* @__PURE__ */ React94.createElement("div", { className: "text-center text-5xl font-extrabold" }, props.walletBalance || "0", /* @__PURE__ */ React94.createElement("div", { className: "text-sm font-normal" }, props.currency || "SAR")), /* @__PURE__ */ React94.createElement(Button, { className: "mt-6 w-full", onClick: props.handlePayWithWallet }, "Pay Now")));
|
|
9840
9951
|
};
|
|
9841
9952
|
|
|
9842
9953
|
// src/blocks/Payment/CheckoutForm.tsx
|
|
9843
|
-
import
|
|
9954
|
+
import React95 from "react";
|
|
9844
9955
|
import { Controller as Controller8, FormProvider as FormProvider4, useForm as useForm8 } from "react-hook-form";
|
|
9845
9956
|
var CheckoutForm = (props) => {
|
|
9846
9957
|
let isArabic = props.lang === "ar";
|
|
@@ -9864,7 +9975,7 @@ var CheckoutForm = (props) => {
|
|
|
9864
9975
|
xl: "row"
|
|
9865
9976
|
}
|
|
9866
9977
|
};
|
|
9867
|
-
return /* @__PURE__ */
|
|
9978
|
+
return /* @__PURE__ */ React95.createElement(Card, null, /* @__PURE__ */ React95.createElement(CardHeader, null, /* @__PURE__ */ React95.createElement(CardTitle, null, props.texts.orderDetails)), /* @__PURE__ */ React95.createElement(CardContent, null, /* @__PURE__ */ React95.createElement("div", null, /* @__PURE__ */ React95.createElement("div", { className: "rounded border border-gray-300" }, /* @__PURE__ */ React95.createElement(
|
|
9868
9979
|
HawaTable,
|
|
9869
9980
|
{
|
|
9870
9981
|
pagination: false,
|
|
@@ -9878,13 +9989,13 @@ var CheckoutForm = (props) => {
|
|
|
9878
9989
|
rows: props.products,
|
|
9879
9990
|
bordersWidth: "1"
|
|
9880
9991
|
}
|
|
9881
|
-
)))), /* @__PURE__ */
|
|
9992
|
+
)))), /* @__PURE__ */ React95.createElement(CardHeader, null, /* @__PURE__ */ React95.createElement(CardTitle, null, props.texts.billingAddress)), /* @__PURE__ */ React95.createElement("form", { onSubmit: handleSubmit(props.handlePayNow) }, /* @__PURE__ */ React95.createElement(CardContent, null, /* @__PURE__ */ React95.createElement("div", null, /* @__PURE__ */ React95.createElement(FormProvider4, { ...methods }, /* @__PURE__ */ React95.createElement("div", null, /* @__PURE__ */ React95.createElement(
|
|
9882
9993
|
Controller8,
|
|
9883
9994
|
{
|
|
9884
9995
|
control,
|
|
9885
9996
|
name: "firstName",
|
|
9886
9997
|
rules: { required: props.texts?.required },
|
|
9887
|
-
render: ({ field }) => /* @__PURE__ */
|
|
9998
|
+
render: ({ field }) => /* @__PURE__ */ React95.createElement(
|
|
9888
9999
|
HawaTextField,
|
|
9889
10000
|
{
|
|
9890
10001
|
type: "text",
|
|
@@ -9895,13 +10006,13 @@ var CheckoutForm = (props) => {
|
|
|
9895
10006
|
}
|
|
9896
10007
|
)
|
|
9897
10008
|
}
|
|
9898
|
-
), /* @__PURE__ */
|
|
10009
|
+
), /* @__PURE__ */ React95.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React95.createElement(
|
|
9899
10010
|
Controller8,
|
|
9900
10011
|
{
|
|
9901
10012
|
control,
|
|
9902
10013
|
name: "lastName",
|
|
9903
10014
|
rules: { required: props.texts?.required },
|
|
9904
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10015
|
+
render: ({ field }) => /* @__PURE__ */ React95.createElement(
|
|
9905
10016
|
HawaTextField,
|
|
9906
10017
|
{
|
|
9907
10018
|
width: "full",
|
|
@@ -9913,12 +10024,12 @@ var CheckoutForm = (props) => {
|
|
|
9913
10024
|
}
|
|
9914
10025
|
)
|
|
9915
10026
|
}
|
|
9916
|
-
)), /* @__PURE__ */
|
|
10027
|
+
)), /* @__PURE__ */ React95.createElement(
|
|
9917
10028
|
Controller8,
|
|
9918
10029
|
{
|
|
9919
10030
|
control,
|
|
9920
10031
|
name: "email",
|
|
9921
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10032
|
+
render: ({ field }) => /* @__PURE__ */ React95.createElement(
|
|
9922
10033
|
HawaTextField,
|
|
9923
10034
|
{
|
|
9924
10035
|
width: "full",
|
|
@@ -9937,13 +10048,13 @@ var CheckoutForm = (props) => {
|
|
|
9937
10048
|
}
|
|
9938
10049
|
}
|
|
9939
10050
|
}
|
|
9940
|
-
), /* @__PURE__ */
|
|
10051
|
+
), /* @__PURE__ */ React95.createElement("div", { className: "flex flex-col md:flex-row" }, /* @__PURE__ */ React95.createElement(
|
|
9941
10052
|
Controller8,
|
|
9942
10053
|
{
|
|
9943
10054
|
control,
|
|
9944
10055
|
name: "streetAddress",
|
|
9945
10056
|
rules: { required: props.texts?.required },
|
|
9946
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10057
|
+
render: ({ field }) => /* @__PURE__ */ React95.createElement(
|
|
9947
10058
|
HawaTextField,
|
|
9948
10059
|
{
|
|
9949
10060
|
width: "full",
|
|
@@ -9955,13 +10066,13 @@ var CheckoutForm = (props) => {
|
|
|
9955
10066
|
}
|
|
9956
10067
|
)
|
|
9957
10068
|
}
|
|
9958
|
-
)), /* @__PURE__ */
|
|
10069
|
+
)), /* @__PURE__ */ React95.createElement("div", { className: "flex flex-col md:flex-row" }, /* @__PURE__ */ React95.createElement(
|
|
9959
10070
|
Controller8,
|
|
9960
10071
|
{
|
|
9961
10072
|
control,
|
|
9962
10073
|
name: "province",
|
|
9963
10074
|
rules: { required: props.texts?.required },
|
|
9964
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10075
|
+
render: ({ field }) => /* @__PURE__ */ React95.createElement(
|
|
9965
10076
|
HawaTextField,
|
|
9966
10077
|
{
|
|
9967
10078
|
width: "full",
|
|
@@ -9973,13 +10084,13 @@ var CheckoutForm = (props) => {
|
|
|
9973
10084
|
}
|
|
9974
10085
|
)
|
|
9975
10086
|
}
|
|
9976
|
-
), /* @__PURE__ */
|
|
10087
|
+
), /* @__PURE__ */ React95.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React95.createElement(
|
|
9977
10088
|
Controller8,
|
|
9978
10089
|
{
|
|
9979
10090
|
control,
|
|
9980
10091
|
name: "city",
|
|
9981
10092
|
rules: { required: props.texts?.required },
|
|
9982
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10093
|
+
render: ({ field }) => /* @__PURE__ */ React95.createElement(
|
|
9983
10094
|
HawaTextField,
|
|
9984
10095
|
{
|
|
9985
10096
|
width: "full",
|
|
@@ -9991,13 +10102,13 @@ var CheckoutForm = (props) => {
|
|
|
9991
10102
|
}
|
|
9992
10103
|
)
|
|
9993
10104
|
}
|
|
9994
|
-
)), /* @__PURE__ */
|
|
10105
|
+
)), /* @__PURE__ */ React95.createElement("div", { className: "flex flex-col md:flex-row" }, /* @__PURE__ */ React95.createElement(
|
|
9995
10106
|
Controller8,
|
|
9996
10107
|
{
|
|
9997
10108
|
control,
|
|
9998
10109
|
name: "buildingNumber",
|
|
9999
10110
|
rules: { required: props.texts?.required },
|
|
10000
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10111
|
+
render: ({ field }) => /* @__PURE__ */ React95.createElement(
|
|
10001
10112
|
HawaTextField,
|
|
10002
10113
|
{
|
|
10003
10114
|
width: "full",
|
|
@@ -10009,13 +10120,13 @@ var CheckoutForm = (props) => {
|
|
|
10009
10120
|
}
|
|
10010
10121
|
)
|
|
10011
10122
|
}
|
|
10012
|
-
), /* @__PURE__ */
|
|
10123
|
+
), /* @__PURE__ */ React95.createElement("div", { style: { width: 20 } }), /* @__PURE__ */ React95.createElement(
|
|
10013
10124
|
Controller8,
|
|
10014
10125
|
{
|
|
10015
10126
|
control,
|
|
10016
10127
|
name: "zipCode",
|
|
10017
10128
|
rules: { required: props.texts?.required },
|
|
10018
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10129
|
+
render: ({ field }) => /* @__PURE__ */ React95.createElement(
|
|
10019
10130
|
HawaTextField,
|
|
10020
10131
|
{
|
|
10021
10132
|
width: "full",
|
|
@@ -10027,13 +10138,13 @@ var CheckoutForm = (props) => {
|
|
|
10027
10138
|
}
|
|
10028
10139
|
)
|
|
10029
10140
|
}
|
|
10030
|
-
)), /* @__PURE__ */
|
|
10141
|
+
)), /* @__PURE__ */ React95.createElement("div", { className: "mb-3" }, /* @__PURE__ */ React95.createElement(
|
|
10031
10142
|
Controller8,
|
|
10032
10143
|
{
|
|
10033
10144
|
control,
|
|
10034
10145
|
name: "country",
|
|
10035
10146
|
rules: { required: props.texts?.required },
|
|
10036
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10147
|
+
render: ({ field }) => /* @__PURE__ */ React95.createElement(
|
|
10037
10148
|
HawaSelect,
|
|
10038
10149
|
{
|
|
10039
10150
|
native: true,
|
|
@@ -10044,18 +10155,18 @@ var CheckoutForm = (props) => {
|
|
|
10044
10155
|
onChange: (e) => field.onChange(e.country_label),
|
|
10045
10156
|
value: field.value ?? ""
|
|
10046
10157
|
},
|
|
10047
|
-
/* @__PURE__ */
|
|
10048
|
-
props.countriesList.map((country, i) => /* @__PURE__ */
|
|
10158
|
+
/* @__PURE__ */ React95.createElement("option", null),
|
|
10159
|
+
props.countriesList.map((country, i) => /* @__PURE__ */ React95.createElement("option", { key: i }, country))
|
|
10049
10160
|
)
|
|
10050
10161
|
}
|
|
10051
|
-
))))), /* @__PURE__ */
|
|
10162
|
+
))))), /* @__PURE__ */ React95.createElement(CardFooter, null, /* @__PURE__ */ React95.createElement(Button, { className: "w-full" }, props.texts.payNow)), " "));
|
|
10052
10163
|
};
|
|
10053
10164
|
|
|
10054
10165
|
// src/blocks/Payment/Confirmation.tsx
|
|
10055
|
-
import
|
|
10166
|
+
import React96 from "react";
|
|
10056
10167
|
var ConfirmationPage = (props) => {
|
|
10057
10168
|
let isArabic = props.lang === "ar";
|
|
10058
|
-
return /* @__PURE__ */
|
|
10169
|
+
return /* @__PURE__ */ React96.createElement(Card, null, /* @__PURE__ */ React96.createElement(CardContent, { headless: true }, " ", /* @__PURE__ */ React96.createElement("div", { className: "py-5 text-center text-3xl font-bold dark:text-white" }, props.confirmationTitle), /* @__PURE__ */ React96.createElement("div", { className: "py-5 dark:text-white" }, /* @__PURE__ */ React96.createElement("div", { className: "mb-2 text-center" }, props.texts.successMessage, " ", /* @__PURE__ */ React96.createElement("strong", null, props.userEmail)), /* @__PURE__ */ React96.createElement("div", { className: "text-center" }, props.texts.yourOrderNumber), /* @__PURE__ */ React96.createElement("div", { className: "text-center font-bold" }, props.orderNumber)), /* @__PURE__ */ React96.createElement("div", { className: "flex flex-col items-center justify-center gap-4 py-5 pt-0" }, /* @__PURE__ */ React96.createElement(Button, { className: "w-full", onClick: props.handlePrint }, props.texts.print), /* @__PURE__ */ React96.createElement(Button, { className: "w-full", onClick: props.handleHistory }, props.texts.history), /* @__PURE__ */ React96.createElement(Button, { className: "w-full", onClick: props.handleHome }, props.texts.homePage), /* @__PURE__ */ React96.createElement("div", { className: " text-center text-sm dark:text-white" }, props.texts.fasterPaymentNote), /* @__PURE__ */ React96.createElement(
|
|
10059
10170
|
"a",
|
|
10060
10171
|
{
|
|
10061
10172
|
className: "clickable-link text-xs",
|
|
@@ -10066,9 +10177,9 @@ var ConfirmationPage = (props) => {
|
|
|
10066
10177
|
};
|
|
10067
10178
|
|
|
10068
10179
|
// src/blocks/Pricing/PricingPlans.tsx
|
|
10069
|
-
import
|
|
10180
|
+
import React97 from "react";
|
|
10070
10181
|
var PricingPlans = (props) => {
|
|
10071
|
-
return /* @__PURE__ */
|
|
10182
|
+
return /* @__PURE__ */ React97.createElement("div", null, /* @__PURE__ */ React97.createElement("div", { className: "mb-2 flex w-full justify-between" }, /* @__PURE__ */ React97.createElement(
|
|
10072
10183
|
HawaRadio,
|
|
10073
10184
|
{
|
|
10074
10185
|
design: "tabs",
|
|
@@ -10076,7 +10187,7 @@ var PricingPlans = (props) => {
|
|
|
10076
10187
|
options: props.billingCycles,
|
|
10077
10188
|
onChangeTab: (e) => props.onCycleChange(e)
|
|
10078
10189
|
}
|
|
10079
|
-
), /* @__PURE__ */
|
|
10190
|
+
), /* @__PURE__ */ React97.createElement(
|
|
10080
10191
|
HawaRadio,
|
|
10081
10192
|
{
|
|
10082
10193
|
design: "tabs",
|
|
@@ -10084,8 +10195,8 @@ var PricingPlans = (props) => {
|
|
|
10084
10195
|
options: props.currencies,
|
|
10085
10196
|
onChangeTab: (e) => props.onCurrencyChange(e)
|
|
10086
10197
|
}
|
|
10087
|
-
)), /* @__PURE__ */
|
|
10088
|
-
return /* @__PURE__ */
|
|
10198
|
+
)), /* @__PURE__ */ React97.createElement("div", { className: "flex flex-row justify-between" }, props.plans.map((plan, index) => {
|
|
10199
|
+
return /* @__PURE__ */ React97.createElement(
|
|
10089
10200
|
HawaPricingCard,
|
|
10090
10201
|
{
|
|
10091
10202
|
key: index,
|
|
@@ -10102,8 +10213,8 @@ var PricingPlans = (props) => {
|
|
|
10102
10213
|
};
|
|
10103
10214
|
|
|
10104
10215
|
// src/blocks/Pricing/ComparingPlans.tsx
|
|
10105
|
-
import
|
|
10106
|
-
var CheckMark = () => /* @__PURE__ */
|
|
10216
|
+
import React98, { useState as useState46 } from "react";
|
|
10217
|
+
var CheckMark = () => /* @__PURE__ */ React98.createElement(
|
|
10107
10218
|
"svg",
|
|
10108
10219
|
{
|
|
10109
10220
|
className: "h-5 w-5 text-green-500",
|
|
@@ -10111,7 +10222,7 @@ var CheckMark = () => /* @__PURE__ */ React97.createElement(
|
|
|
10111
10222
|
fill: "currentColor",
|
|
10112
10223
|
viewBox: "0 0 20 20"
|
|
10113
10224
|
},
|
|
10114
|
-
/* @__PURE__ */
|
|
10225
|
+
/* @__PURE__ */ React98.createElement(
|
|
10115
10226
|
"path",
|
|
10116
10227
|
{
|
|
10117
10228
|
fillRule: "evenodd",
|
|
@@ -10120,7 +10231,7 @@ var CheckMark = () => /* @__PURE__ */ React97.createElement(
|
|
|
10120
10231
|
}
|
|
10121
10232
|
)
|
|
10122
10233
|
);
|
|
10123
|
-
var UncheckMark = () => /* @__PURE__ */
|
|
10234
|
+
var UncheckMark = () => /* @__PURE__ */ React98.createElement(
|
|
10124
10235
|
"svg",
|
|
10125
10236
|
{
|
|
10126
10237
|
className: "h-5 w-5 text-red-500",
|
|
@@ -10128,7 +10239,7 @@ var UncheckMark = () => /* @__PURE__ */ React97.createElement(
|
|
|
10128
10239
|
fill: "currentColor",
|
|
10129
10240
|
viewBox: "0 0 20 20"
|
|
10130
10241
|
},
|
|
10131
|
-
/* @__PURE__ */
|
|
10242
|
+
/* @__PURE__ */ React98.createElement(
|
|
10132
10243
|
"path",
|
|
10133
10244
|
{
|
|
10134
10245
|
fillRule: "evenodd",
|
|
@@ -10140,7 +10251,7 @@ var UncheckMark = () => /* @__PURE__ */ React97.createElement(
|
|
|
10140
10251
|
var ComparingPlans = (props) => {
|
|
10141
10252
|
const [currentCurrency, setCurrentCurrency] = useState46("sar");
|
|
10142
10253
|
const [currentCycle, setCurrentCycle] = useState46("month");
|
|
10143
|
-
return /* @__PURE__ */
|
|
10254
|
+
return /* @__PURE__ */ React98.createElement("div", { id: "detailed-pricing", className: "w-full overflow-x-auto" }, /* @__PURE__ */ React98.createElement("div", { className: "mb-2 flex w-full justify-between" }, /* @__PURE__ */ React98.createElement(
|
|
10144
10255
|
HawaRadio,
|
|
10145
10256
|
{
|
|
10146
10257
|
design: "tabs",
|
|
@@ -10148,7 +10259,7 @@ var ComparingPlans = (props) => {
|
|
|
10148
10259
|
options: props.billingCycles,
|
|
10149
10260
|
onChangeTab: (e) => props.onCycleChange(e)
|
|
10150
10261
|
}
|
|
10151
|
-
), /* @__PURE__ */
|
|
10262
|
+
), /* @__PURE__ */ React98.createElement(
|
|
10152
10263
|
HawaRadio,
|
|
10153
10264
|
{
|
|
10154
10265
|
design: "tabs",
|
|
@@ -10156,9 +10267,9 @@ var ComparingPlans = (props) => {
|
|
|
10156
10267
|
options: props.currencies,
|
|
10157
10268
|
onChangeTab: (e) => props.onCurrencyChange(e)
|
|
10158
10269
|
}
|
|
10159
|
-
)), /* @__PURE__ */
|
|
10270
|
+
)), /* @__PURE__ */ React98.createElement("div", { className: " overflow-hidden rounded" }, /* @__PURE__ */ React98.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__ */ React98.createElement("div", { className: "flex items-center" }), props.plans.map((plan) => /* @__PURE__ */ React98.createElement("div", null, /* @__PURE__ */ React98.createElement("h5", { className: "text-md 0 font-bold text-gray-500 dark:text-gray-400" }, plan.texts.title), /* @__PURE__ */ React98.createElement("div", { className: " flex items-baseline text-gray-900 dark:text-white" }, /* @__PURE__ */ React98.createElement(React98.Fragment, null, /* @__PURE__ */ React98.createElement("span", { className: "text-5xl font-extrabold tracking-tight" }, plan.price), /* @__PURE__ */ React98.createElement("span", { className: "mx-1 text-sm font-semibold" }, plan.texts.currencyText)), /* @__PURE__ */ React98.createElement("span", { className: "ml-1 text-xl font-normal text-gray-500 dark:text-gray-400" }, "/ ", plan.texts.cycleText)), /* @__PURE__ */ React98.createElement("h5", { className: "text-md font-normal text-gray-500 dark:text-gray-400" }, plan.texts.subtitle)))), props.plans?.map((plan) => {
|
|
10160
10271
|
return plan.features.map((feature) => {
|
|
10161
|
-
return /* @__PURE__ */
|
|
10272
|
+
return /* @__PURE__ */ React98.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__ */ React98.createElement("div", { className: " flex flex-row items-center gap-2 text-gray-500 dark:text-gray-400" }, feature.text, feature.description && /* @__PURE__ */ React98.createElement(Tooltip, { side: "right", content: feature.description }, /* @__PURE__ */ React98.createElement(
|
|
10162
10273
|
"svg",
|
|
10163
10274
|
{
|
|
10164
10275
|
stroke: "currentColor",
|
|
@@ -10168,14 +10279,14 @@ var ComparingPlans = (props) => {
|
|
|
10168
10279
|
height: "1em",
|
|
10169
10280
|
width: "1em"
|
|
10170
10281
|
},
|
|
10171
|
-
/* @__PURE__ */
|
|
10172
|
-
))), /* @__PURE__ */
|
|
10282
|
+
/* @__PURE__ */ React98.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" })
|
|
10283
|
+
))), /* @__PURE__ */ React98.createElement(UncheckMark, null), /* @__PURE__ */ React98.createElement(CheckMark, null), /* @__PURE__ */ React98.createElement(UncheckMark, null));
|
|
10173
10284
|
});
|
|
10174
10285
|
})));
|
|
10175
10286
|
};
|
|
10176
10287
|
|
|
10177
10288
|
// src/blocks/Pricing/HorizontalPricing.tsx
|
|
10178
|
-
import
|
|
10289
|
+
import React99, { useState as useState47 } from "react";
|
|
10179
10290
|
import clsx35 from "clsx";
|
|
10180
10291
|
var HorizontalPricing = (props) => {
|
|
10181
10292
|
const [selectedCard, setSelectedCard] = useState47(null);
|
|
@@ -10184,28 +10295,28 @@ var HorizontalPricing = (props) => {
|
|
|
10184
10295
|
{ title: "business", price: "$99", cycle: "/mo" },
|
|
10185
10296
|
{ title: "enterprise", price: "$149", cycle: "/mo" }
|
|
10186
10297
|
];
|
|
10187
|
-
return /* @__PURE__ */
|
|
10298
|
+
return /* @__PURE__ */ React99.createElement("div", { className: "z-10 w-full max-w-screen-sm" }, /* @__PURE__ */ React99.createElement("div", { className: "max-w-2xl " }, /* @__PURE__ */ React99.createElement("div", { className: "flex flex-row justify-between" }, /* @__PURE__ */ React99.createElement(
|
|
10188
10299
|
HawaRadio,
|
|
10189
10300
|
{
|
|
10190
10301
|
design: "tabs",
|
|
10191
10302
|
options: props.currencies,
|
|
10192
10303
|
defaultValue: props.currentCurrency
|
|
10193
10304
|
}
|
|
10194
|
-
), /* @__PURE__ */
|
|
10305
|
+
), /* @__PURE__ */ React99.createElement(
|
|
10195
10306
|
HawaRadio,
|
|
10196
10307
|
{
|
|
10197
10308
|
design: "tabs",
|
|
10198
10309
|
options: props.billingCycles,
|
|
10199
10310
|
defaultValue: props.currentCycle
|
|
10200
10311
|
}
|
|
10201
|
-
)), data.map((d) => /* @__PURE__ */
|
|
10312
|
+
)), data.map((d) => /* @__PURE__ */ React99.createElement(
|
|
10202
10313
|
"label",
|
|
10203
10314
|
{
|
|
10204
10315
|
htmlFor: d.title,
|
|
10205
10316
|
className: "",
|
|
10206
10317
|
onClick: () => setSelectedCard(d.title)
|
|
10207
10318
|
},
|
|
10208
|
-
/* @__PURE__ */
|
|
10319
|
+
/* @__PURE__ */ React99.createElement(
|
|
10209
10320
|
"input",
|
|
10210
10321
|
{
|
|
10211
10322
|
type: "radio",
|
|
@@ -10214,7 +10325,7 @@ var HorizontalPricing = (props) => {
|
|
|
10214
10325
|
className: "peer appearance-none"
|
|
10215
10326
|
}
|
|
10216
10327
|
),
|
|
10217
|
-
/* @__PURE__ */
|
|
10328
|
+
/* @__PURE__ */ React99.createElement(
|
|
10218
10329
|
"div",
|
|
10219
10330
|
{
|
|
10220
10331
|
className: clsx35(
|
|
@@ -10222,18 +10333,18 @@ var HorizontalPricing = (props) => {
|
|
|
10222
10333
|
"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"
|
|
10223
10334
|
)
|
|
10224
10335
|
},
|
|
10225
|
-
/* @__PURE__ */
|
|
10336
|
+
/* @__PURE__ */ React99.createElement("div", { className: "peer flex items-center gap-4" }, /* @__PURE__ */ React99.createElement(CheckIcons, null), /* @__PURE__ */ React99.createElement(
|
|
10226
10337
|
CardText,
|
|
10227
10338
|
{
|
|
10228
10339
|
title: "Enterprise",
|
|
10229
10340
|
subtitle: "For startups and new businesses"
|
|
10230
10341
|
}
|
|
10231
10342
|
)),
|
|
10232
|
-
/* @__PURE__ */
|
|
10343
|
+
/* @__PURE__ */ React99.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
|
10233
10344
|
)
|
|
10234
10345
|
))));
|
|
10235
10346
|
};
|
|
10236
|
-
var CheckIcons = () => /* @__PURE__ */
|
|
10347
|
+
var CheckIcons = () => /* @__PURE__ */ React99.createElement(React99.Fragment, null, /* @__PURE__ */ React99.createElement(
|
|
10237
10348
|
"svg",
|
|
10238
10349
|
{
|
|
10239
10350
|
fill: "none",
|
|
@@ -10242,7 +10353,7 @@ var CheckIcons = () => /* @__PURE__ */ React98.createElement(React98.Fragment, n
|
|
|
10242
10353
|
stroke: "currentColor",
|
|
10243
10354
|
className: "default h-8 w-8 text-neutral-500"
|
|
10244
10355
|
},
|
|
10245
|
-
/* @__PURE__ */
|
|
10356
|
+
/* @__PURE__ */ React99.createElement(
|
|
10246
10357
|
"path",
|
|
10247
10358
|
{
|
|
10248
10359
|
strokeLinecap: "round",
|
|
@@ -10250,14 +10361,14 @@ var CheckIcons = () => /* @__PURE__ */ React98.createElement(React98.Fragment, n
|
|
|
10250
10361
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
10251
10362
|
}
|
|
10252
10363
|
)
|
|
10253
|
-
), /* @__PURE__ */
|
|
10364
|
+
), /* @__PURE__ */ React99.createElement(
|
|
10254
10365
|
"svg",
|
|
10255
10366
|
{
|
|
10256
10367
|
viewBox: "0 0 24 24",
|
|
10257
10368
|
fill: "currentColor",
|
|
10258
10369
|
className: "active hidden h-8 w-8 text-blue-500"
|
|
10259
10370
|
},
|
|
10260
|
-
/* @__PURE__ */
|
|
10371
|
+
/* @__PURE__ */ React99.createElement(
|
|
10261
10372
|
"path",
|
|
10262
10373
|
{
|
|
10263
10374
|
fillRule: "evenodd",
|
|
@@ -10266,21 +10377,21 @@ var CheckIcons = () => /* @__PURE__ */ React98.createElement(React98.Fragment, n
|
|
|
10266
10377
|
}
|
|
10267
10378
|
)
|
|
10268
10379
|
));
|
|
10269
|
-
var CardText = (props) => /* @__PURE__ */
|
|
10270
|
-
var CardPrice = (props) => /* @__PURE__ */
|
|
10380
|
+
var CardText = (props) => /* @__PURE__ */ React99.createElement("div", { className: "peer flex flex-col items-start " }, /* @__PURE__ */ React99.createElement("h2", { className: "font-medium text-neutral-700 dark:text-gray-100 sm:text-xl" }, props.title), /* @__PURE__ */ React99.createElement("p", { className: "text-sm text-neutral-500 dark:text-gray-300" }, props.subtitle, " "));
|
|
10381
|
+
var CardPrice = (props) => /* @__PURE__ */ React99.createElement("h2", { className: "peer text-xl font-semibold text-neutral-900 dark:text-white sm:text-2xl" }, props.amount, /* @__PURE__ */ React99.createElement("span", { className: "text-base font-medium text-neutral-400" }, props.cycle));
|
|
10271
10382
|
|
|
10272
10383
|
// src/blocks/Referral/ReferralAccount.tsx
|
|
10273
|
-
import
|
|
10384
|
+
import React100 from "react";
|
|
10274
10385
|
var ReferralAccount = ({
|
|
10275
10386
|
referralLink,
|
|
10276
10387
|
referralCode
|
|
10277
10388
|
}) => {
|
|
10278
|
-
return /* @__PURE__ */
|
|
10389
|
+
return /* @__PURE__ */ React100.createElement(Card, null, /* @__PURE__ */ React100.createElement(CardContent, { headless: true }, /* @__PURE__ */ React100.createElement("div", { className: "my-2 mt-0" }, /* @__PURE__ */ React100.createElement("div", { className: "mb-1" }, "Referral Code"), /* @__PURE__ */ React100.createElement("div", { className: "flex flex-row items-center justify-between rounded border bg-background" }, /* @__PURE__ */ React100.createElement("span", { className: "ml-3 font-bold" }, referralCode), /* @__PURE__ */ React100.createElement(
|
|
10279
10390
|
Button,
|
|
10280
10391
|
{
|
|
10281
10392
|
onClick: () => navigator.clipboard.writeText(referralCode)
|
|
10282
10393
|
},
|
|
10283
|
-
/* @__PURE__ */
|
|
10394
|
+
/* @__PURE__ */ React100.createElement("span", { className: "bg-red flex items-center justify-center" }, /* @__PURE__ */ React100.createElement(
|
|
10284
10395
|
"svg",
|
|
10285
10396
|
{
|
|
10286
10397
|
stroke: "currentColor",
|
|
@@ -10290,14 +10401,14 @@ var ReferralAccount = ({
|
|
|
10290
10401
|
height: "1em",
|
|
10291
10402
|
width: "1em"
|
|
10292
10403
|
},
|
|
10293
|
-
/* @__PURE__ */
|
|
10404
|
+
/* @__PURE__ */ React100.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" })
|
|
10294
10405
|
), " ")
|
|
10295
|
-
))), /* @__PURE__ */
|
|
10406
|
+
))), /* @__PURE__ */ React100.createElement("div", { className: "my-2 mt-0" }, /* @__PURE__ */ React100.createElement("div", { className: "mb-1" }, "Referral Link"), /* @__PURE__ */ React100.createElement("div", { className: "flex flex-row items-center justify-between rounded border bg-background" }, /* @__PURE__ */ React100.createElement("span", { className: "ml-3 font-bold" }, referralLink), /* @__PURE__ */ React100.createElement(
|
|
10296
10407
|
Button,
|
|
10297
10408
|
{
|
|
10298
10409
|
onClick: () => navigator.clipboard.writeText(referralLink)
|
|
10299
10410
|
},
|
|
10300
|
-
/* @__PURE__ */
|
|
10411
|
+
/* @__PURE__ */ React100.createElement("span", { className: "bg-red flex items-center justify-center" }, /* @__PURE__ */ React100.createElement(
|
|
10301
10412
|
"svg",
|
|
10302
10413
|
{
|
|
10303
10414
|
stroke: "currentColor",
|
|
@@ -10307,13 +10418,13 @@ var ReferralAccount = ({
|
|
|
10307
10418
|
height: "1em",
|
|
10308
10419
|
width: "1em"
|
|
10309
10420
|
},
|
|
10310
|
-
/* @__PURE__ */
|
|
10421
|
+
/* @__PURE__ */ React100.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" })
|
|
10311
10422
|
), " ")
|
|
10312
10423
|
)))));
|
|
10313
10424
|
};
|
|
10314
10425
|
|
|
10315
10426
|
// src/blocks/Referral/ReferralSettlement.tsx
|
|
10316
|
-
import
|
|
10427
|
+
import React101 from "react";
|
|
10317
10428
|
import { Controller as Controller9, FormProvider as FormProvider5, useForm as useForm9 } from "react-hook-form";
|
|
10318
10429
|
var ReferralSettlement = ({
|
|
10319
10430
|
referralLink,
|
|
@@ -10326,12 +10437,12 @@ var ReferralSettlement = ({
|
|
|
10326
10437
|
handleSubmit,
|
|
10327
10438
|
control
|
|
10328
10439
|
} = methods;
|
|
10329
|
-
return /* @__PURE__ */
|
|
10440
|
+
return /* @__PURE__ */ React101.createElement(Card, null, /* @__PURE__ */ React101.createElement(CardContent, { headless: true }, /* @__PURE__ */ React101.createElement("div", null, /* @__PURE__ */ React101.createElement(FormProvider5, { ...methods }, /* @__PURE__ */ React101.createElement(HawaTextField, { label: "IBAN" }), /* @__PURE__ */ React101.createElement(HawaTextField, { label: "Holder Name" }), /* @__PURE__ */ React101.createElement(
|
|
10330
10441
|
Controller9,
|
|
10331
10442
|
{
|
|
10332
10443
|
control,
|
|
10333
10444
|
name: "bank",
|
|
10334
|
-
render: ({ field }) => /* @__PURE__ */
|
|
10445
|
+
render: ({ field }) => /* @__PURE__ */ React101.createElement(
|
|
10335
10446
|
HawaSelect,
|
|
10336
10447
|
{
|
|
10337
10448
|
label: "Bank",
|
|
@@ -10350,13 +10461,13 @@ var ReferralSettlement = ({
|
|
|
10350
10461
|
}
|
|
10351
10462
|
)
|
|
10352
10463
|
}
|
|
10353
|
-
))), /* @__PURE__ */
|
|
10464
|
+
))), /* @__PURE__ */ React101.createElement("div", null, /* @__PURE__ */ React101.createElement(Button, { className: "mt-6 w-full" }, "Add Bank Account")), withdrawError && /* @__PURE__ */ React101.createElement("div", null, /* @__PURE__ */ React101.createElement(
|
|
10354
10465
|
HawaAlert,
|
|
10355
10466
|
{
|
|
10356
10467
|
text: "Sorry can't withdraw the money at the moment. Please try again in 2022/11/20",
|
|
10357
10468
|
severity: "warning"
|
|
10358
10469
|
}
|
|
10359
|
-
)), /* @__PURE__ */
|
|
10470
|
+
)), /* @__PURE__ */ React101.createElement("div", { className: "mt-3" }, /* @__PURE__ */ React101.createElement("div", { className: "mb-1" }, "Settlement Accounts"), /* @__PURE__ */ React101.createElement("div", { className: "rounded" }, /* @__PURE__ */ React101.createElement(
|
|
10360
10471
|
SettlementAccountCard,
|
|
10361
10472
|
{
|
|
10362
10473
|
bank: "Al Inma Bank",
|
|
@@ -10364,14 +10475,14 @@ var ReferralSettlement = ({
|
|
|
10364
10475
|
accountHolder: "Zakher Masri",
|
|
10365
10476
|
default: true
|
|
10366
10477
|
}
|
|
10367
|
-
), /* @__PURE__ */
|
|
10478
|
+
), /* @__PURE__ */ React101.createElement(
|
|
10368
10479
|
SettlementAccountCard,
|
|
10369
10480
|
{
|
|
10370
10481
|
bank: "Al Rajihi Bank",
|
|
10371
10482
|
iban: "SA10228094028098329119",
|
|
10372
10483
|
accountHolder: "Zakher Masri"
|
|
10373
10484
|
}
|
|
10374
|
-
), /* @__PURE__ */
|
|
10485
|
+
), /* @__PURE__ */ React101.createElement(
|
|
10375
10486
|
SettlementAccountCard,
|
|
10376
10487
|
{
|
|
10377
10488
|
bank: "Al Inma Bank",
|
|
@@ -10381,13 +10492,13 @@ var ReferralSettlement = ({
|
|
|
10381
10492
|
)))));
|
|
10382
10493
|
};
|
|
10383
10494
|
var SettlementAccountCard = (props) => {
|
|
10384
|
-
return /* @__PURE__ */
|
|
10495
|
+
return /* @__PURE__ */ React101.createElement("div", { className: "mb-3 flex flex-row items-center justify-between rounded border bg-background p-3" }, /* @__PURE__ */ React101.createElement("div", { className: "flex flex-col justify-between" }, /* @__PURE__ */ React101.createElement("div", { className: "text-xs" }, props.bank), /* @__PURE__ */ React101.createElement("div", null, props.accountHolder), /* @__PURE__ */ React101.createElement("div", { className: "text-xs" }, props.iban)), /* @__PURE__ */ React101.createElement("div", { className: "flex flex-row items-center justify-center gap-2" }, props.default && /* @__PURE__ */ React101.createElement(
|
|
10385
10496
|
HawaChip,
|
|
10386
10497
|
{
|
|
10387
10498
|
label: "Default",
|
|
10388
10499
|
size: "small"
|
|
10389
10500
|
}
|
|
10390
|
-
), /* @__PURE__ */
|
|
10501
|
+
), /* @__PURE__ */ React101.createElement(
|
|
10391
10502
|
HawaMenu,
|
|
10392
10503
|
{
|
|
10393
10504
|
size: "small",
|
|
@@ -10399,7 +10510,7 @@ var SettlementAccountCard = (props) => {
|
|
|
10399
10510
|
]
|
|
10400
10511
|
]
|
|
10401
10512
|
},
|
|
10402
|
-
/* @__PURE__ */
|
|
10513
|
+
/* @__PURE__ */ React101.createElement(Button, { variant: "outline", size: "icon" }, /* @__PURE__ */ React101.createElement(
|
|
10403
10514
|
"svg",
|
|
10404
10515
|
{
|
|
10405
10516
|
"aria-label": "Vertical Three Dots Menu Icon",
|
|
@@ -10411,53 +10522,53 @@ var SettlementAccountCard = (props) => {
|
|
|
10411
10522
|
height: "1em",
|
|
10412
10523
|
width: "1em"
|
|
10413
10524
|
},
|
|
10414
|
-
/* @__PURE__ */
|
|
10525
|
+
/* @__PURE__ */ React101.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" })
|
|
10415
10526
|
))
|
|
10416
10527
|
)));
|
|
10417
10528
|
};
|
|
10418
10529
|
|
|
10419
10530
|
// src/blocks/Referral/ReferralStats.tsx
|
|
10420
|
-
import
|
|
10531
|
+
import React102 from "react";
|
|
10421
10532
|
var ReferralStats = ({
|
|
10422
10533
|
referralLink,
|
|
10423
10534
|
referralCode,
|
|
10424
10535
|
withdrawError
|
|
10425
10536
|
}) => {
|
|
10426
|
-
return /* @__PURE__ */
|
|
10537
|
+
return /* @__PURE__ */ React102.createElement(Card, null, /* @__PURE__ */ React102.createElement(CardContent, { headless: true }, /* @__PURE__ */ React102.createElement("div", { className: "mb-1" }, "Stats"), /* @__PURE__ */ React102.createElement("div", { className: "justi flex flex-row gap-1" }, /* @__PURE__ */ React102.createElement(NumberCard, { title: "Clicks", number: 22 }), /* @__PURE__ */ React102.createElement(NumberCard, { title: "Sign-ups", number: 32 }), /* @__PURE__ */ React102.createElement(NumberCard, { title: "Commission", number: "213.22 SAR" })), /* @__PURE__ */ React102.createElement(Button, { className: "mt-6 w-full" }, "Withdraw Money"), withdrawError && /* @__PURE__ */ React102.createElement("div", null, /* @__PURE__ */ React102.createElement(
|
|
10427
10538
|
HawaAlert,
|
|
10428
10539
|
{
|
|
10429
10540
|
text: "Sorry can't withdraw the money at the moment. Please try again in 2022/11/20",
|
|
10430
10541
|
severity: "warning"
|
|
10431
10542
|
}
|
|
10432
|
-
)), /* @__PURE__ */
|
|
10543
|
+
)), /* @__PURE__ */ React102.createElement("div", { className: "mt-3" }, /* @__PURE__ */ React102.createElement("div", { className: "mb-1" }, "Sign ups"), /* @__PURE__ */ React102.createElement("div", { className: "rounded" }, /* @__PURE__ */ React102.createElement(
|
|
10433
10544
|
ReferralSignUpCard,
|
|
10434
10545
|
{
|
|
10435
10546
|
date: "2020/10/11 @ 9:45 pm",
|
|
10436
10547
|
email: "zakher@sikka.io",
|
|
10437
10548
|
amount: "3.4 SAR / Month"
|
|
10438
10549
|
}
|
|
10439
|
-
), /* @__PURE__ */
|
|
10550
|
+
), /* @__PURE__ */ React102.createElement(
|
|
10440
10551
|
ReferralSignUpCard,
|
|
10441
10552
|
{
|
|
10442
10553
|
date: "2022/10/11 @ 9:45 pm",
|
|
10443
10554
|
email: "zakher@sikka.io",
|
|
10444
10555
|
amount: "3.4 SAR / Month"
|
|
10445
10556
|
}
|
|
10446
|
-
), /* @__PURE__ */
|
|
10557
|
+
), /* @__PURE__ */ React102.createElement(
|
|
10447
10558
|
ReferralSignUpCard,
|
|
10448
10559
|
{
|
|
10449
10560
|
date: "2022/10/11 @ 9:45 pm",
|
|
10450
10561
|
email: "zakher@sikka.io",
|
|
10451
10562
|
amount: "3.4 SAR / Month"
|
|
10452
10563
|
}
|
|
10453
|
-
), /* @__PURE__ */
|
|
10564
|
+
), /* @__PURE__ */ React102.createElement(
|
|
10454
10565
|
ReferralSignUpCard,
|
|
10455
10566
|
{
|
|
10456
10567
|
date: "2022/10/11 @ 9:45 pm",
|
|
10457
10568
|
email: "zakher@sikka.io",
|
|
10458
10569
|
amount: "3.4 SAR / Month"
|
|
10459
10570
|
}
|
|
10460
|
-
), /* @__PURE__ */
|
|
10571
|
+
), /* @__PURE__ */ React102.createElement(
|
|
10461
10572
|
ReferralSignUpCard,
|
|
10462
10573
|
{
|
|
10463
10574
|
date: "2022/10/11 @ 9:45 pm",
|
|
@@ -10466,26 +10577,26 @@ var ReferralStats = ({
|
|
|
10466
10577
|
}
|
|
10467
10578
|
)))));
|
|
10468
10579
|
};
|
|
10469
|
-
var NumberCard = (props) => /* @__PURE__ */
|
|
10470
|
-
var ReferralSignUpCard = (props) => /* @__PURE__ */
|
|
10580
|
+
var NumberCard = (props) => /* @__PURE__ */ React102.createElement("div", { className: "w-full rounded border bg-background p-2" }, /* @__PURE__ */ React102.createElement("div", { className: "text-sm" }, props.title), /* @__PURE__ */ React102.createElement("div", { className: "font-bold" }, props.number));
|
|
10581
|
+
var ReferralSignUpCard = (props) => /* @__PURE__ */ React102.createElement("div", { className: "mb-3 rounded border-b bg-background p-2" }, /* @__PURE__ */ React102.createElement("div", { className: "text-xs" }, props.date), /* @__PURE__ */ React102.createElement("div", { className: "flex flex-row justify-between" }, /* @__PURE__ */ React102.createElement("div", null, props.email), /* @__PURE__ */ React102.createElement("div", null, props.amount)));
|
|
10471
10582
|
|
|
10472
10583
|
// src/blocks/Misc/NotFound.tsx
|
|
10473
|
-
import
|
|
10584
|
+
import React103 from "react";
|
|
10474
10585
|
var NotFound = ({
|
|
10475
10586
|
variant = "contained",
|
|
10476
10587
|
texts
|
|
10477
10588
|
}) => {
|
|
10478
|
-
return /* @__PURE__ */
|
|
10589
|
+
return /* @__PURE__ */ React103.createElement(Card, null, /* @__PURE__ */ React103.createElement(CardContent, { headless: true }, /* @__PURE__ */ React103.createElement("div", { className: "flex flex-col items-center dark:text-white" }, /* @__PURE__ */ React103.createElement("div", { className: "text-center text-6xl font-bold " }, "404"), /* @__PURE__ */ React103.createElement("div", { className: "m-2 text-center text-xl font-bold " }, texts?.pageNotFound ?? "Page Not Found"), /* @__PURE__ */ React103.createElement("div", { className: "mb-4 text-center" }, texts?.ifLost ?? /* @__PURE__ */ React103.createElement(React103.Fragment, null, "If you're lost please contact us", " ", /* @__PURE__ */ React103.createElement("span", { className: "clickable-link" }, "help@sikka.io"))), /* @__PURE__ */ React103.createElement(Button, { className: "w-full" }, texts?.home ?? "Home"))));
|
|
10479
10590
|
};
|
|
10480
10591
|
|
|
10481
10592
|
// src/blocks/Misc/EmptyState.tsx
|
|
10482
|
-
import
|
|
10593
|
+
import React104 from "react";
|
|
10483
10594
|
var EmptyState = ({
|
|
10484
10595
|
variant = "contained",
|
|
10485
10596
|
texts,
|
|
10486
10597
|
onActionClick
|
|
10487
10598
|
}) => {
|
|
10488
|
-
return /* @__PURE__ */
|
|
10599
|
+
return /* @__PURE__ */ React104.createElement(Card, null, /* @__PURE__ */ React104.createElement(CardContent, { headless: true }, /* @__PURE__ */ React104.createElement("div", { className: "flex flex-col items-center justify-center text-center " }, /* @__PURE__ */ React104.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__ */ React104.createElement(
|
|
10489
10600
|
"svg",
|
|
10490
10601
|
{
|
|
10491
10602
|
stroke: "currentColor",
|
|
@@ -10495,36 +10606,36 @@ var EmptyState = ({
|
|
|
10495
10606
|
height: "0.35em",
|
|
10496
10607
|
width: "0.35em"
|
|
10497
10608
|
},
|
|
10498
|
-
/* @__PURE__ */
|
|
10499
|
-
)), /* @__PURE__ */
|
|
10609
|
+
/* @__PURE__ */ React104.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" })
|
|
10610
|
+
)), /* @__PURE__ */ React104.createElement("div", { className: "m-2 text-xl font-bold" }, texts?.youreCaughtUp ?? "You're all caught up"))), /* @__PURE__ */ React104.createElement(CardFooter, null, /* @__PURE__ */ React104.createElement(Button, { className: "w-full", onClick: () => onActionClick() }, texts?.actionText ?? "Go Home")));
|
|
10500
10611
|
};
|
|
10501
10612
|
|
|
10502
10613
|
// src/blocks/Misc/Testimonial.tsx
|
|
10503
|
-
import
|
|
10614
|
+
import React105 from "react";
|
|
10504
10615
|
var Testimonial = (props) => {
|
|
10505
|
-
return /* @__PURE__ */
|
|
10616
|
+
return /* @__PURE__ */ React105.createElement(Card, null, /* @__PURE__ */ React105.createElement(CardContent, { headless: true }, /* @__PURE__ */ React105.createElement("div", null, /* @__PURE__ */ React105.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__ */ React105.createElement("div", { className: "flex flex-row gap-4" }, /* @__PURE__ */ React105.createElement("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none" }, /* @__PURE__ */ React105.createElement("rect", { width: "48", height: "48", rx: "24", fill: "#45BE8B" }), /* @__PURE__ */ React105.createElement(
|
|
10506
10617
|
"path",
|
|
10507
10618
|
{
|
|
10508
10619
|
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",
|
|
10509
10620
|
fill: "#FFFFFF"
|
|
10510
10621
|
}
|
|
10511
|
-
), /* @__PURE__ */
|
|
10622
|
+
), /* @__PURE__ */ React105.createElement(
|
|
10512
10623
|
"path",
|
|
10513
10624
|
{
|
|
10514
10625
|
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",
|
|
10515
10626
|
fill: "#FFFFFF"
|
|
10516
10627
|
}
|
|
10517
|
-
)), /* @__PURE__ */
|
|
10628
|
+
)), /* @__PURE__ */ React105.createElement("span", { className: "border border-l " }), " ", /* @__PURE__ */ React105.createElement("div", null, /* @__PURE__ */ React105.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ React105.createElement("div", null, " Chief Information Security Officer")))));
|
|
10518
10629
|
};
|
|
10519
10630
|
|
|
10520
10631
|
// src/blocks/Misc/LeadGenerator.tsx
|
|
10521
|
-
import
|
|
10632
|
+
import React106 from "react";
|
|
10522
10633
|
var LeadGenerator = ({
|
|
10523
10634
|
variant = "contained",
|
|
10524
10635
|
texts,
|
|
10525
10636
|
handleNewsletterSub
|
|
10526
10637
|
}) => {
|
|
10527
|
-
return /* @__PURE__ */
|
|
10638
|
+
return /* @__PURE__ */ React106.createElement(Card, null, /* @__PURE__ */ React106.createElement(CardHeader, null, /* @__PURE__ */ React106.createElement(CardTitle, null, texts?.title), /* @__PURE__ */ React106.createElement(CardDescription, null, texts?.subtitle)), /* @__PURE__ */ React106.createElement(CardContent, null, /* @__PURE__ */ React106.createElement(
|
|
10528
10639
|
"form",
|
|
10529
10640
|
{
|
|
10530
10641
|
className: "flex flex-row gap-2",
|
|
@@ -10533,36 +10644,36 @@ var LeadGenerator = ({
|
|
|
10533
10644
|
handleNewsletterSub(e.target[0].value);
|
|
10534
10645
|
}
|
|
10535
10646
|
},
|
|
10536
|
-
/* @__PURE__ */
|
|
10537
|
-
/* @__PURE__ */
|
|
10647
|
+
/* @__PURE__ */ React106.createElement(Input, { type: "email", name: "email", placeholder: "example@sikka.io" }),
|
|
10648
|
+
/* @__PURE__ */ React106.createElement(Button, null, texts?.submit ?? "Submit")
|
|
10538
10649
|
)));
|
|
10539
10650
|
};
|
|
10540
10651
|
|
|
10541
10652
|
// src/blocks/Misc/Announcement.tsx
|
|
10542
|
-
import
|
|
10653
|
+
import React107 from "react";
|
|
10543
10654
|
var Announcement = ({
|
|
10544
10655
|
variant = "contained",
|
|
10545
10656
|
onActionClick,
|
|
10546
10657
|
...props
|
|
10547
10658
|
}) => {
|
|
10548
|
-
return /* @__PURE__ */
|
|
10659
|
+
return /* @__PURE__ */ React107.createElement(Card, null, /* @__PURE__ */ React107.createElement(
|
|
10549
10660
|
CardContent,
|
|
10550
10661
|
{
|
|
10551
10662
|
headless: true,
|
|
10552
10663
|
className: "flex flex-row items-center justify-between"
|
|
10553
10664
|
},
|
|
10554
|
-
/* @__PURE__ */
|
|
10555
|
-
/* @__PURE__ */
|
|
10665
|
+
/* @__PURE__ */ React107.createElement("div", { className: "flex flex-col items-start justify-center " }, /* @__PURE__ */ React107.createElement("span", { className: "text-lg font-bold" }, props.title), /* @__PURE__ */ React107.createElement("span", { className: "text-sm" }, props.subtitle)),
|
|
10666
|
+
/* @__PURE__ */ React107.createElement(Button, { onClick: () => onActionClick() }, props.actionText)
|
|
10556
10667
|
));
|
|
10557
10668
|
};
|
|
10558
10669
|
|
|
10559
10670
|
// src/blocks/Misc/NoPermission.tsx
|
|
10560
|
-
import
|
|
10671
|
+
import React108 from "react";
|
|
10561
10672
|
var NoPermission = ({
|
|
10562
10673
|
variant = "contained",
|
|
10563
10674
|
texts
|
|
10564
10675
|
}) => {
|
|
10565
|
-
return /* @__PURE__ */
|
|
10676
|
+
return /* @__PURE__ */ React108.createElement(Card, null, /* @__PURE__ */ React108.createElement(CardContent, { headless: true }, /* @__PURE__ */ React108.createElement("div", { className: "flex flex-col items-center justify-center text-center" }, /* @__PURE__ */ React108.createElement("div", { className: "flex h-10 w-10 flex-col items-center justify-center rounded-3xl bg-primary text-6xl font-bold text-primary-foreground" }, /* @__PURE__ */ React108.createElement(
|
|
10566
10677
|
"svg",
|
|
10567
10678
|
{
|
|
10568
10679
|
stroke: "currentColor",
|
|
@@ -10572,8 +10683,8 @@ var NoPermission = ({
|
|
|
10572
10683
|
height: "0.35em",
|
|
10573
10684
|
width: "0.35em"
|
|
10574
10685
|
},
|
|
10575
|
-
/* @__PURE__ */
|
|
10576
|
-
), " "), /* @__PURE__ */
|
|
10686
|
+
/* @__PURE__ */ React108.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" })
|
|
10687
|
+
), " "), /* @__PURE__ */ React108.createElement("div", { className: "m-2 text-xl font-bold" }, texts?.title ?? "You don't have permission"), /* @__PURE__ */ React108.createElement("div", null, texts?.subtitle ?? "If you think this is a problem please contact your administrator or our customer support"))));
|
|
10577
10688
|
};
|
|
10578
10689
|
|
|
10579
10690
|
// src/hooks/useHover.ts
|
|
@@ -10600,6 +10711,13 @@ export {
|
|
|
10600
10711
|
ComparingPlans,
|
|
10601
10712
|
ConfirmationPage,
|
|
10602
10713
|
CreditCardForm,
|
|
10714
|
+
Dialog,
|
|
10715
|
+
DialogContent,
|
|
10716
|
+
DialogDescription,
|
|
10717
|
+
DialogFooter,
|
|
10718
|
+
DialogHeader,
|
|
10719
|
+
DialogTitle,
|
|
10720
|
+
DialogTrigger,
|
|
10603
10721
|
DragDropImages,
|
|
10604
10722
|
DraggableCard,
|
|
10605
10723
|
DropdownMenu,
|