@sikka/hawa 0.12.13-next → 0.12.15-next
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.css +0 -24
- package/dist/index.d.mts +31 -21
- package/dist/index.d.ts +31 -21
- package/dist/index.js +603 -528
- package/dist/index.mjs +463 -353
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -382,6 +382,9 @@ __export(components_exports, {
|
|
|
382
382
|
AppStores: function() {
|
|
383
383
|
return AppStores;
|
|
384
384
|
},
|
|
385
|
+
AppTopbar: function() {
|
|
386
|
+
return AppTopbar;
|
|
387
|
+
},
|
|
385
388
|
BackToTop: function() {
|
|
386
389
|
return BackToTop;
|
|
387
390
|
},
|
|
@@ -6690,8 +6693,82 @@ var SidebarItem = function(_param) {
|
|
|
6690
6693
|
}, item.label)));
|
|
6691
6694
|
}
|
|
6692
6695
|
};
|
|
6693
|
-
// components/layout/
|
|
6696
|
+
// components/layout/Copyrights.tsx
|
|
6694
6697
|
var import_react33 = __toESM(require("react"));
|
|
6698
|
+
var Copyrights = function(props) {
|
|
6699
|
+
return /* @__PURE__ */ import_react33.default.createElement("div", {
|
|
6700
|
+
className: "hawa-my-2 hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-1 hawa-text-xs hawa-text-gray-400"
|
|
6701
|
+
}, props.withLogo ? /* @__PURE__ */ import_react33.default.createElement("a", {
|
|
6702
|
+
href: props.onLogoClicked
|
|
6703
|
+
}, /* @__PURE__ */ import_react33.default.createElement("div", {
|
|
6704
|
+
className: "hawa-cursor-pointer"
|
|
6705
|
+
}, /* @__PURE__ */ import_react33.default.createElement("image", {
|
|
6706
|
+
href: props.logoURL,
|
|
6707
|
+
width: 100,
|
|
6708
|
+
height: 50
|
|
6709
|
+
}))) : null, /* @__PURE__ */ import_react33.default.createElement("div", null, props.version), props.credits ? props.credits : null);
|
|
6710
|
+
};
|
|
6711
|
+
// components/layout/Navbar.tsx
|
|
6712
|
+
var import_react34 = __toESM(require("react"));
|
|
6713
|
+
// components/elements/Collapsible.tsx
|
|
6714
|
+
var CollapsiblePrimitive = __toESM(require("@radix-ui/react-collapsible"));
|
|
6715
|
+
var Collapsible = CollapsiblePrimitive.Root;
|
|
6716
|
+
var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
|
6717
|
+
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
6718
|
+
// components/layout/Navbar.tsx
|
|
6719
|
+
var Navbar = function(props) {
|
|
6720
|
+
var _ref = _sliced_to_array((0, import_react34.useState)(false), 2), isOpen = _ref[0], setIsOpen = _ref[1];
|
|
6721
|
+
return /* @__PURE__ */ import_react34.default.createElement("nav", {
|
|
6722
|
+
className: "hawa-bg-gray-800 hawa-p-4 hawa-transition-all"
|
|
6723
|
+
}, /* @__PURE__ */ import_react34.default.createElement(Collapsible, null, /* @__PURE__ */ import_react34.default.createElement("div", {
|
|
6724
|
+
className: "hawa-container hawa-mx-auto hawa-flex hawa-justify-between hawa-items-center"
|
|
6725
|
+
}, /* @__PURE__ */ import_react34.default.createElement("div", {
|
|
6726
|
+
className: "hawa-flex hawa-items-center"
|
|
6727
|
+
}, /* @__PURE__ */ import_react34.default.createElement("a", {
|
|
6728
|
+
href: "/",
|
|
6729
|
+
className: "hawa-text-white hawa-text-xl hawa-font-bold"
|
|
6730
|
+
}, "YourLogo")), /* @__PURE__ */ import_react34.default.createElement("div", {
|
|
6731
|
+
className: "hawa-hidden hawa-md:hawa-flex hawa-space-x-4"
|
|
6732
|
+
}, /* @__PURE__ */ import_react34.default.createElement("a", {
|
|
6733
|
+
href: "/about",
|
|
6734
|
+
className: "hawa-text-white"
|
|
6735
|
+
}, "About"), /* @__PURE__ */ import_react34.default.createElement("a", {
|
|
6736
|
+
href: "/services",
|
|
6737
|
+
className: "hawa-text-white"
|
|
6738
|
+
}, "Services"), /* @__PURE__ */ import_react34.default.createElement("a", {
|
|
6739
|
+
href: "/contact",
|
|
6740
|
+
className: "hawa-text-white"
|
|
6741
|
+
}, "Contact")), /* @__PURE__ */ import_react34.default.createElement("div", {
|
|
6742
|
+
className: "hawa-md:hawa-hidden"
|
|
6743
|
+
}, /* @__PURE__ */ import_react34.default.createElement(CollapsibleTrigger2, {
|
|
6744
|
+
className: "hawa-text-white hawa-p-2",
|
|
6745
|
+
"aria-label": "Toggle menu"
|
|
6746
|
+
}, /* @__PURE__ */ import_react34.default.createElement("svg", {
|
|
6747
|
+
className: "hawa-w-6 hawa-h-6",
|
|
6748
|
+
fill: "none",
|
|
6749
|
+
stroke: "currentColor",
|
|
6750
|
+
viewBox: "0 0 24 24",
|
|
6751
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
6752
|
+
}, /* @__PURE__ */ import_react34.default.createElement("path", {
|
|
6753
|
+
strokeLinecap: "round",
|
|
6754
|
+
strokeLinejoin: "round",
|
|
6755
|
+
strokeWidth: "2",
|
|
6756
|
+
d: "M4 6h16M4 12h16m-7 6h7"
|
|
6757
|
+
}))))), /* @__PURE__ */ import_react34.default.createElement(CollapsibleContent2, {
|
|
6758
|
+
className: "hwa-transition-all hawa-fade-in-0 data-[state=open]:hawa-zoom-in-95 data-[state=open]:hawa-animate-in hawa-flex hawa-flex-col hawa-space-y-2 hawa-mt-4"
|
|
6759
|
+
}, /* @__PURE__ */ import_react34.default.createElement("a", {
|
|
6760
|
+
href: "/about",
|
|
6761
|
+
className: "hawa-text-white hawa-px-2"
|
|
6762
|
+
}, "About"), /* @__PURE__ */ import_react34.default.createElement("a", {
|
|
6763
|
+
href: "/services",
|
|
6764
|
+
className: "hawa-text-white hawa-px-2"
|
|
6765
|
+
}, "Services"), /* @__PURE__ */ import_react34.default.createElement("a", {
|
|
6766
|
+
href: "/contact",
|
|
6767
|
+
className: "hawa-text-white hawa-px-2"
|
|
6768
|
+
}, "Contact"))));
|
|
6769
|
+
};
|
|
6770
|
+
// components/layout/AppLayout.tsx
|
|
6771
|
+
var import_react35 = __toESM(require("react"));
|
|
6695
6772
|
var AppLayout = function(_param) {
|
|
6696
6773
|
var _param_direction = _param.direction, direction = _param_direction === void 0 ? "ltr" : _param_direction, _param_drawerSize = _param.drawerSize, drawerSize = _param_drawerSize === void 0 ? "md" : _param_drawerSize, onSettingsClick = _param.onSettingsClick, DrawerFooterActions = _param.DrawerFooterActions, currentPage = _param.currentPage, clickedItem = _param.clickedItem, keepOpen = _param.keepOpen, setKeepOpen = _param.setKeepOpen, _param_design = _param.design, design = _param_design === void 0 ? "default" : _param_design, props = _object_without_properties(_param, [
|
|
6697
6774
|
"direction",
|
|
@@ -6719,14 +6796,34 @@ var AppLayout = function(_param) {
|
|
|
6719
6796
|
lg: closeDrawerWidth
|
|
6720
6797
|
}
|
|
6721
6798
|
};
|
|
6722
|
-
var ref = (0,
|
|
6799
|
+
var ref = (0, import_react35.useRef)(null);
|
|
6723
6800
|
var isRTL = direction === "rtl";
|
|
6724
|
-
var _ref = _sliced_to_array((0,
|
|
6725
|
-
var _ref1 = _sliced_to_array((0,
|
|
6726
|
-
var
|
|
6727
|
-
var _ref2 = _sliced_to_array((0, import_react33.useState)(size > 600 ? keepOpen : false), 2), openSideMenu = _ref2[0], setOpenSideMenu = _ref2[1];
|
|
6801
|
+
var _ref = _sliced_to_array((0, import_react35.useState)(""), 2), openedSidebarItem = _ref[0], setOpenedSidebarItem = _ref[1];
|
|
6802
|
+
var _ref1 = _sliced_to_array((0, import_react35.useState)(1200), 2), size = _ref1[0], setSize = _ref1[1];
|
|
6803
|
+
var _ref2 = _sliced_to_array((0, import_react35.useState)(true), 2), openSideMenu = _ref2[0], setOpenSideMenu = _ref2[1];
|
|
6728
6804
|
var drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
|
|
6729
|
-
(0,
|
|
6805
|
+
(0, import_react35.useEffect)(function() {
|
|
6806
|
+
if (typeof window !== "undefined") {
|
|
6807
|
+
var resize = function() {
|
|
6808
|
+
setSize(window.innerWidth);
|
|
6809
|
+
};
|
|
6810
|
+
resize();
|
|
6811
|
+
window.addEventListener("resize", resize);
|
|
6812
|
+
return function() {
|
|
6813
|
+
window.removeEventListener("resize", resize);
|
|
6814
|
+
};
|
|
6815
|
+
}
|
|
6816
|
+
}, []);
|
|
6817
|
+
(0, import_react35.useEffect)(function() {
|
|
6818
|
+
if (size > 600) {
|
|
6819
|
+
setOpenSideMenu(keepOpen);
|
|
6820
|
+
} else {
|
|
6821
|
+
setOpenSideMenu(false);
|
|
6822
|
+
}
|
|
6823
|
+
}, [
|
|
6824
|
+
size
|
|
6825
|
+
]);
|
|
6826
|
+
(0, import_react35.useEffect)(function() {
|
|
6730
6827
|
var handleClickOutside = function(event) {
|
|
6731
6828
|
if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
|
|
6732
6829
|
setOpenSideMenu(false);
|
|
@@ -6739,11 +6836,11 @@ var AppLayout = function(_param) {
|
|
|
6739
6836
|
}, [
|
|
6740
6837
|
keepOpen
|
|
6741
6838
|
]);
|
|
6742
|
-
return /* @__PURE__ */
|
|
6839
|
+
return /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6743
6840
|
className: "hawa-fixed hawa-left-0"
|
|
6744
|
-
}, props.topBar && /* @__PURE__ */
|
|
6841
|
+
}, props.topBar && /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6745
6842
|
className: cn("hawa-fixed hawa-left-0 hawa-right-0 hawa-top-0 hawa-z-30 hawa-flex hawa-h-14 hawa-w-full hawa-items-center hawa-justify-between hawa-bg-primary-foreground hawa-p-2", isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row")
|
|
6746
|
-
}, size > 600 ? /* @__PURE__ */
|
|
6843
|
+
}, size > 600 ? /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6747
6844
|
className: cn("dark:hawa-text-white", isRTL ? [
|
|
6748
6845
|
size > 600 ? "hawa-mr-14" : "hawa-mr-2",
|
|
6749
6846
|
keepOpen ? "hawa-mr-40" : ""
|
|
@@ -6757,35 +6854,23 @@ var AppLayout = function(_param) {
|
|
|
6757
6854
|
marginLeft: "".concat(drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize], "px")
|
|
6758
6855
|
}
|
|
6759
6856
|
}, props.pageTitle) : // Mobile Drawer Menu Button
|
|
6760
|
-
/* @__PURE__ */
|
|
6857
|
+
/* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6761
6858
|
dir: direction,
|
|
6762
6859
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
|
6763
|
-
}, /* @__PURE__ */
|
|
6860
|
+
}, /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6764
6861
|
onClick: function() {
|
|
6765
6862
|
return setOpenSideMenu(true);
|
|
6766
6863
|
},
|
|
6767
6864
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
|
6768
|
-
}, /* @__PURE__ */
|
|
6769
|
-
stroke: "currentColor",
|
|
6770
|
-
fill: "currentColor",
|
|
6771
|
-
strokeWidth: 0,
|
|
6772
|
-
viewBox: "0 0 20 20",
|
|
6773
|
-
"aria-hidden": "true",
|
|
6774
|
-
height: "1.6em",
|
|
6775
|
-
width: "1.6em"
|
|
6776
|
-
}, /* @__PURE__ */ import_react33.default.createElement("path", {
|
|
6777
|
-
fillRule: "evenodd",
|
|
6778
|
-
clipRule: "evenodd",
|
|
6779
|
-
d: "M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
|
|
6780
|
-
}))), props.pageTitle ? /* @__PURE__ */ import_react33.default.createElement("div", {
|
|
6865
|
+
}, /* @__PURE__ */ import_react35.default.createElement(MenuIcon, null)), props.pageTitle ? /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6781
6866
|
className: "hawa-text-sm"
|
|
6782
|
-
}, props.pageTitle) : /* @__PURE__ */
|
|
6867
|
+
}, props.pageTitle) : /* @__PURE__ */ import_react35.default.createElement("div", null)), /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6783
6868
|
className: cn("hawa-flex hawa-gap-2 dark:hawa-text-white", isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row")
|
|
6784
|
-
}, size > 600 ? /* @__PURE__ */
|
|
6869
|
+
}, size > 600 ? /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6785
6870
|
className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs"
|
|
6786
|
-
}, /* @__PURE__ */
|
|
6871
|
+
}, /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6787
6872
|
className: "hawa-font-bold"
|
|
6788
|
-
}, props.username), " ", /* @__PURE__ */
|
|
6873
|
+
}, props.username), " ", /* @__PURE__ */ import_react35.default.createElement("div", null, props.email)) : null, /* @__PURE__ */ import_react35.default.createElement(DropdownMenu, {
|
|
6789
6874
|
triggerClassname: "hawa-mx-2",
|
|
6790
6875
|
align: "end",
|
|
6791
6876
|
alignOffset: 8,
|
|
@@ -6797,23 +6882,23 @@ var AppLayout = function(_param) {
|
|
|
6797
6882
|
onItemSelect: function(e) {
|
|
6798
6883
|
return console.log("selecting item ", e);
|
|
6799
6884
|
},
|
|
6800
|
-
trigger: /* @__PURE__ */
|
|
6885
|
+
trigger: /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6801
6886
|
className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600"
|
|
6802
|
-
}, props.avatarImage ? /* @__PURE__ */
|
|
6887
|
+
}, props.avatarImage ? /* @__PURE__ */ import_react35.default.createElement("img", {
|
|
6803
6888
|
src: props.avatarImage,
|
|
6804
6889
|
alt: "User Avatar"
|
|
6805
|
-
}) : /* @__PURE__ */
|
|
6890
|
+
}) : /* @__PURE__ */ import_react35.default.createElement("svg", {
|
|
6806
6891
|
"aria-label": "Avatar Icon",
|
|
6807
6892
|
className: "hawa-absolute hawa--left-1 hawa-h-10 hawa-w-10 hawa-text-gray-400",
|
|
6808
6893
|
fill: "currentColor",
|
|
6809
6894
|
viewBox: "0 0 20 20"
|
|
6810
|
-
}, /* @__PURE__ */
|
|
6895
|
+
}, /* @__PURE__ */ import_react35.default.createElement("path", {
|
|
6811
6896
|
fillRule: "evenodd",
|
|
6812
6897
|
d: "M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",
|
|
6813
6898
|
clipRule: "evenodd"
|
|
6814
6899
|
})))
|
|
6815
|
-
}))), /* @__PURE__ */
|
|
6816
|
-
className: cn("hawa-fixed hawa-z-40 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all",
|
|
6900
|
+
}))), /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6901
|
+
className: cn("hawa-fixed hawa-z-40 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all", isRTL ? "hawa-right-0 hawa-top-0 hawa-h-14" : "hawa-left-0 hawa-top-0 hawa-h-14", "hawa-h-[calc(100dvh)]"),
|
|
6817
6902
|
style: {
|
|
6818
6903
|
width: size > 600 ? openSideMenu ? "".concat(drawerSizeStyle["opened"][drawerSize], "px") : "".concat(drawerSizeStyle["closed"][drawerSize], "px") : openSideMenu ? "".concat(drawerSizeStyle["opened"][drawerSize], "px") : "0px"
|
|
6819
6904
|
},
|
|
@@ -6821,40 +6906,37 @@ var AppLayout = function(_param) {
|
|
|
6821
6906
|
setOpenSideMenu(true);
|
|
6822
6907
|
},
|
|
6823
6908
|
onMouseLeave: function() {
|
|
6824
|
-
if (
|
|
6825
|
-
|
|
6909
|
+
if (size > 600) {
|
|
6910
|
+
if (keepOpen) {
|
|
6911
|
+
setOpenSideMenu(true);
|
|
6912
|
+
} else {
|
|
6913
|
+
setOpenedSidebarItem("");
|
|
6914
|
+
setOpenSideMenu(false);
|
|
6915
|
+
}
|
|
6826
6916
|
} else {
|
|
6827
|
-
setOpenedSidebarItem("");
|
|
6828
6917
|
setOpenSideMenu(false);
|
|
6829
6918
|
}
|
|
6830
6919
|
},
|
|
6831
6920
|
ref: ref
|
|
6832
|
-
}, /* @__PURE__ */
|
|
6921
|
+
}, /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6833
6922
|
onClick: props.onLogoClick,
|
|
6834
6923
|
dir: direction,
|
|
6835
6924
|
className: cn("hawa-fixed hawa-z-50 hawa-mb-2 hawa-flex hawa-h-14 hawa-w-full hawa-flex-row hawa-items-center hawa-justify-center hawa-bg-primary-foreground hawa-transition-all", props.onLogoClick && "hawa-cursor-pointer"),
|
|
6836
6925
|
style: {
|
|
6837
6926
|
width: size > 600 ? "".concat(openSideMenu ? openDrawerWidth : 56, "px") : "".concat(openSideMenu ? openDrawerWidth : 0, "px")
|
|
6838
6927
|
}
|
|
6839
|
-
}, /* @__PURE__ */
|
|
6928
|
+
}, /* @__PURE__ */ import_react35.default.createElement("img", {
|
|
6840
6929
|
className: cn("hawa-h-9 hawa-opacity-0 hawa-transition-all", !openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100"),
|
|
6841
6930
|
src: props.logoLink
|
|
6842
|
-
}), size > 600 ? /* @__PURE__ */
|
|
6843
|
-
className: cn("hawa-fixed hawa-h-9 hawa-transition-all",
|
|
6844
|
-
design === "floating" ? isRTL ? "hawa-right-7.5 hawa-top-7" : "hawa-left-7.5 hawa-top-7" : isRTL ? "hawa-right-2.5 hawa-top-2.5" : "hawa-left-2.5 hawa-top-2.5", openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100"),
|
|
6931
|
+
}), size > 600 ? /* @__PURE__ */ import_react35.default.createElement("img", {
|
|
6932
|
+
className: cn("hawa-fixed hawa-h-9 hawa-transition-all", isRTL ? "hawa-right-2.5 hawa-top-2.5" : "hawa-left-2.5 hawa-top-2.5", openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100"),
|
|
6845
6933
|
src: props.logoSymbol
|
|
6846
|
-
}) : null), /* @__PURE__ */
|
|
6847
|
-
className: cn(
|
|
6848
|
-
"hawa-fixed hawa-bottom-14 hawa-bg-primary-foreground hawa-p-0 hawa-py-2 hawa-transition-all", design === "floating" ? "hawa-top-[76px]" : "hawa-top-14", openSideMenu ? "hawa-overflow-auto" : "hawa-overflow-hidden"),
|
|
6934
|
+
}) : null), /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6935
|
+
className: cn("hawa-fixed hawa-bottom-14 hawa-bg-primary-foreground hawa-p-0 hawa-py-2 hawa-transition-all hawa-top-14", openSideMenu ? "hawa-overflow-auto" : "hawa-overflow-hidden"),
|
|
6849
6936
|
style: {
|
|
6850
|
-
// height:
|
|
6851
|
-
// design === "floating"
|
|
6852
|
-
// ? "calc(100% - 152px)"
|
|
6853
|
-
// : "0px",
|
|
6854
|
-
// : "calc(100% - 112px)",
|
|
6855
6937
|
width: size > 600 ? "".concat(openSideMenu ? openDrawerWidth : drawerSizeCondition, "px") : "".concat(openSideMenu ? openDrawerWidth : 0, "px")
|
|
6856
6938
|
}
|
|
6857
|
-
}, /* @__PURE__ */
|
|
6939
|
+
}, /* @__PURE__ */ import_react35.default.createElement(SidebarGroup, {
|
|
6858
6940
|
direction: direction,
|
|
6859
6941
|
onItemClick: function(values) {
|
|
6860
6942
|
if (clickedItem) {
|
|
@@ -6873,16 +6955,16 @@ var AppLayout = function(_param) {
|
|
|
6873
6955
|
},
|
|
6874
6956
|
isOpen: keepOpen || openSideMenu,
|
|
6875
6957
|
items: props.drawerItems
|
|
6876
|
-
})), /* @__PURE__ */
|
|
6958
|
+
})), /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6877
6959
|
className: cn("hawa-fixed hawa-flex hawa-h-14 hawa-items-center hawa-justify-center hawa-gap-2 hawa-overflow-clip hawa-bg-primary-foreground hawa-transition-all", direction === "rtl" ? "hawa-flex-row-reverse" : "hawa-flex-row", "hawa-bottom-0"),
|
|
6878
6960
|
style: {
|
|
6879
6961
|
width: size > 600 ? "".concat(openSideMenu ? openDrawerWidth : 56, "px") : "".concat(openSideMenu ? openDrawerWidth : 0, "px")
|
|
6880
6962
|
}
|
|
6881
|
-
}, DrawerFooterActions && openSideMenu ? /* @__PURE__ */
|
|
6963
|
+
}, DrawerFooterActions && openSideMenu ? /* @__PURE__ */ import_react35.default.createElement(import_react35.default.Fragment, null, DrawerFooterActions) : null, size > 600 && openSideMenu ? /* @__PURE__ */ import_react35.default.createElement(Tooltip, {
|
|
6882
6964
|
side: "left",
|
|
6883
6965
|
delayDuration: 500,
|
|
6884
6966
|
content: keepOpen ? ((_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.collapseSidebar) || "Collapse Sidebar" : ((_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.expandSidebar) || "Expand Sidebar"
|
|
6885
|
-
}, /* @__PURE__ */
|
|
6967
|
+
}, /* @__PURE__ */ import_react35.default.createElement(Button, {
|
|
6886
6968
|
variant: "light",
|
|
6887
6969
|
onClick: function() {
|
|
6888
6970
|
var newKeepOpenState = !keepOpen;
|
|
@@ -6892,27 +6974,17 @@ var AppLayout = function(_param) {
|
|
|
6892
6974
|
setKeepOpen(newKeepOpenState);
|
|
6893
6975
|
},
|
|
6894
6976
|
size: "smallIcon"
|
|
6895
|
-
}, /* @__PURE__ */
|
|
6977
|
+
}, /* @__PURE__ */ import_react35.default.createElement("svg", {
|
|
6896
6978
|
className: cn("hawa-h-6 hawa-w-6 hawa-shrink-0 hawa-text-primary hawa-transition-all disabled:hawa-bg-gray-200 ", keepOpen ? isRTL ? "hawa--rotate-90" : "hawa-rotate-90" : isRTL ? "hawa-rotate-90" : "hawa--rotate-90"),
|
|
6897
6979
|
fill: "currentColor",
|
|
6898
6980
|
viewBox: "0 0 20 20"
|
|
6899
|
-
}, /* @__PURE__ */
|
|
6981
|
+
}, /* @__PURE__ */ import_react35.default.createElement("path", {
|
|
6900
6982
|
fillRule: "evenodd",
|
|
6901
6983
|
d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",
|
|
6902
6984
|
clipRule: "evenodd"
|
|
6903
|
-
})))) : null)), /* @__PURE__ */
|
|
6985
|
+
})))) : null)), /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6904
6986
|
className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all",
|
|
6905
|
-
style:
|
|
6906
|
-
height: "calc(100% - ".concat(props.topBar ? "56" : "0", "px)"),
|
|
6907
|
-
width: "calc(100% - ".concat(drawerSizeCondition + 20, "px)"),
|
|
6908
|
-
left: "0px",
|
|
6909
|
-
top: props.topBar ? "56px" : "0px"
|
|
6910
|
-
} : {
|
|
6911
|
-
height: "calc(100% - ".concat(props.topBar ? "56" : "0", "px)"),
|
|
6912
|
-
width: "calc(100% - ".concat(drawerSizeCondition + 20, "px)"),
|
|
6913
|
-
left: "".concat(drawerSizeCondition + 20, "px"),
|
|
6914
|
-
top: props.topBar ? "56px" : "0px"
|
|
6915
|
-
} : isRTL ? {
|
|
6987
|
+
style: isRTL ? {
|
|
6916
6988
|
height: "calc(100% - ".concat(props.topBar ? "56" : "0", "px)"),
|
|
6917
6989
|
width: "calc(100% - ".concat(drawerSizeCondition, "px)"),
|
|
6918
6990
|
left: "0px",
|
|
@@ -6925,87 +6997,89 @@ var AppLayout = function(_param) {
|
|
|
6925
6997
|
}
|
|
6926
6998
|
}, props.children));
|
|
6927
6999
|
};
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
return /* @__PURE__ */ import_react34.default.createElement("div", {
|
|
6932
|
-
className: "hawa-my-2 hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-1 hawa-text-xs hawa-text-gray-400"
|
|
6933
|
-
}, props.withLogo ? /* @__PURE__ */ import_react34.default.createElement("a", {
|
|
6934
|
-
href: props.onLogoClicked
|
|
6935
|
-
}, /* @__PURE__ */ import_react34.default.createElement("div", {
|
|
6936
|
-
className: "hawa-cursor-pointer"
|
|
6937
|
-
}, /* @__PURE__ */ import_react34.default.createElement("image", {
|
|
6938
|
-
href: props.logoURL,
|
|
6939
|
-
width: 100,
|
|
6940
|
-
height: 50
|
|
6941
|
-
}))) : null, /* @__PURE__ */ import_react34.default.createElement("div", null, props.version), props.credits ? props.credits : null);
|
|
6942
|
-
};
|
|
6943
|
-
// components/layout/Navbar.tsx
|
|
6944
|
-
var import_react35 = __toESM(require("react"));
|
|
6945
|
-
// components/elements/Collapsible.tsx
|
|
6946
|
-
var CollapsiblePrimitive = __toESM(require("@radix-ui/react-collapsible"));
|
|
6947
|
-
var Collapsible = CollapsiblePrimitive.Root;
|
|
6948
|
-
var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
|
6949
|
-
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
6950
|
-
// components/layout/Navbar.tsx
|
|
6951
|
-
var Navbar = function(props) {
|
|
6952
|
-
var _ref = _sliced_to_array((0, import_react35.useState)(false), 2), isOpen = _ref[0], setIsOpen = _ref[1];
|
|
6953
|
-
return /* @__PURE__ */ import_react35.default.createElement("nav", {
|
|
6954
|
-
className: "hawa-bg-gray-800 hawa-p-4 hawa-transition-all"
|
|
6955
|
-
}, /* @__PURE__ */ import_react35.default.createElement(Collapsible, null, /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6956
|
-
className: "hawa-container hawa-mx-auto hawa-flex hawa-justify-between hawa-items-center"
|
|
6957
|
-
}, /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6958
|
-
className: "hawa-flex hawa-items-center"
|
|
6959
|
-
}, /* @__PURE__ */ import_react35.default.createElement("a", {
|
|
6960
|
-
href: "/",
|
|
6961
|
-
className: "hawa-text-white hawa-text-xl hawa-font-bold"
|
|
6962
|
-
}, "YourLogo")), /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6963
|
-
className: "hawa-hidden hawa-md:hawa-flex hawa-space-x-4"
|
|
6964
|
-
}, /* @__PURE__ */ import_react35.default.createElement("a", {
|
|
6965
|
-
href: "/about",
|
|
6966
|
-
className: "hawa-text-white"
|
|
6967
|
-
}, "About"), /* @__PURE__ */ import_react35.default.createElement("a", {
|
|
6968
|
-
href: "/services",
|
|
6969
|
-
className: "hawa-text-white"
|
|
6970
|
-
}, "Services"), /* @__PURE__ */ import_react35.default.createElement("a", {
|
|
6971
|
-
href: "/contact",
|
|
6972
|
-
className: "hawa-text-white"
|
|
6973
|
-
}, "Contact")), /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6974
|
-
className: "hawa-md:hawa-hidden"
|
|
6975
|
-
}, /* @__PURE__ */ import_react35.default.createElement(CollapsibleTrigger2, {
|
|
6976
|
-
className: "hawa-text-white hawa-p-2",
|
|
6977
|
-
"aria-label": "Toggle menu"
|
|
6978
|
-
}, /* @__PURE__ */ import_react35.default.createElement("svg", {
|
|
6979
|
-
className: "hawa-w-6 hawa-h-6",
|
|
6980
|
-
fill: "none",
|
|
7000
|
+
var MenuIcon = function() {
|
|
7001
|
+
return /* @__PURE__ */ import_react35.default.createElement("svg", {
|
|
7002
|
+
"aria-label": "Menu Button",
|
|
6981
7003
|
stroke: "currentColor",
|
|
6982
|
-
|
|
6983
|
-
|
|
7004
|
+
fill: "currentColor",
|
|
7005
|
+
strokeWidth: 0,
|
|
7006
|
+
viewBox: "0 0 20 20",
|
|
7007
|
+
"aria-hidden": "true",
|
|
7008
|
+
height: "1.6em",
|
|
7009
|
+
width: "1.6em"
|
|
6984
7010
|
}, /* @__PURE__ */ import_react35.default.createElement("path", {
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7011
|
+
fillRule: "evenodd",
|
|
7012
|
+
clipRule: "evenodd",
|
|
7013
|
+
d: "M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
|
|
7014
|
+
}));
|
|
7015
|
+
};
|
|
7016
|
+
// components/layout/AppTopbar.tsx
|
|
7017
|
+
var import_react36 = __toESM(require("react"));
|
|
7018
|
+
var AppTopbar = function(_param) {
|
|
7019
|
+
var props = _extends({}, _object_destructuring_empty(_param));
|
|
7020
|
+
var isRTL = props.direction === "ltr";
|
|
7021
|
+
var size = 1200;
|
|
7022
|
+
return /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
7023
|
+
className: cn("hawa-border-b hawa-fixed hawa-left-0 hawa-right-0 hawa-top-0 hawa-z-30 hawa-flex hawa-h-14 hawa-w-full hawa-items-center hawa-justify-between hawa-bg-primary-foreground hawa-p-2", isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row")
|
|
7024
|
+
}, size > 600 ? /* @__PURE__ */ import_react36.default.createElement("div", null, "page title") : // Mobile Drawer Menu Button
|
|
7025
|
+
/* @__PURE__ */ import_react36.default.createElement("div", {
|
|
7026
|
+
dir: props.direction,
|
|
7027
|
+
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
|
7028
|
+
}, /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
7029
|
+
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
|
7030
|
+
}, /* @__PURE__ */ import_react36.default.createElement("svg", {
|
|
7031
|
+
stroke: "currentColor",
|
|
7032
|
+
fill: "currentColor",
|
|
7033
|
+
strokeWidth: 0,
|
|
7034
|
+
viewBox: "0 0 20 20",
|
|
7035
|
+
"aria-hidden": "true",
|
|
7036
|
+
height: "1.6em",
|
|
7037
|
+
width: "1.6em"
|
|
7038
|
+
}, /* @__PURE__ */ import_react36.default.createElement("path", {
|
|
7039
|
+
fillRule: "evenodd",
|
|
7040
|
+
clipRule: "evenodd",
|
|
7041
|
+
d: "M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
|
|
7042
|
+
}))), "Mobile title"), /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
7043
|
+
className: cn("hawa-flex hawa-gap-2 dark:hawa-text-white", isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row")
|
|
7044
|
+
}, size > 600 ? /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
7045
|
+
className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs"
|
|
7046
|
+
}, /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
7047
|
+
className: "hawa-font-bold"
|
|
7048
|
+
}, props.username), " ", /* @__PURE__ */ import_react36.default.createElement("div", null, props.email)) : null, /* @__PURE__ */ import_react36.default.createElement(DropdownMenu, {
|
|
7049
|
+
triggerClassname: "hawa-mx-2",
|
|
7050
|
+
align: "end",
|
|
7051
|
+
alignOffset: 8,
|
|
7052
|
+
side: "bottom",
|
|
7053
|
+
sideOffset: 5,
|
|
7054
|
+
direction: isRTL ? "rtl" : "ltr",
|
|
7055
|
+
items: props.profileMenuItems,
|
|
7056
|
+
onItemSelect: function(e) {
|
|
7057
|
+
return console.log("selecting item ", e);
|
|
7058
|
+
},
|
|
7059
|
+
trigger: /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
7060
|
+
className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600"
|
|
7061
|
+
}, props.avatarImage ? /* @__PURE__ */ import_react36.default.createElement("img", {
|
|
7062
|
+
src: props.avatarImage,
|
|
7063
|
+
alt: "User Avatar"
|
|
7064
|
+
}) : /* @__PURE__ */ import_react36.default.createElement("svg", {
|
|
7065
|
+
"aria-label": "Avatar Icon",
|
|
7066
|
+
className: "hawa-absolute hawa--left-1 hawa-h-10 hawa-w-10 hawa-text-gray-400",
|
|
7067
|
+
fill: "currentColor",
|
|
7068
|
+
viewBox: "0 0 20 20"
|
|
7069
|
+
}, /* @__PURE__ */ import_react36.default.createElement("path", {
|
|
7070
|
+
fillRule: "evenodd",
|
|
7071
|
+
d: "M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",
|
|
7072
|
+
clipRule: "evenodd"
|
|
7073
|
+
})))
|
|
7074
|
+
})));
|
|
7001
7075
|
};
|
|
7002
7076
|
// components/layout/DocsLayout.tsx
|
|
7003
|
-
var
|
|
7077
|
+
var import_react39 = __toESM(require("react"));
|
|
7004
7078
|
// components/hooks/useBreakpoint.ts
|
|
7005
|
-
var
|
|
7079
|
+
var import_react37 = require("react");
|
|
7006
7080
|
var useBreakpoint = function() {
|
|
7007
|
-
var _ref = _sliced_to_array((0,
|
|
7008
|
-
(0,
|
|
7081
|
+
var _ref = _sliced_to_array((0, import_react37.useState)(null), 2), breakpoint = _ref[0], setBreakpoint = _ref[1];
|
|
7082
|
+
(0, import_react37.useEffect)(function() {
|
|
7009
7083
|
if (typeof window !== "undefined") {
|
|
7010
7084
|
var resize = function() {
|
|
7011
7085
|
setBreakpoint(window.innerWidth);
|
|
@@ -7020,7 +7094,7 @@ var useBreakpoint = function() {
|
|
|
7020
7094
|
return breakpoint;
|
|
7021
7095
|
};
|
|
7022
7096
|
// components/layout/DocsSidebar.tsx
|
|
7023
|
-
var
|
|
7097
|
+
var import_react38 = __toESM(require("react"));
|
|
7024
7098
|
var DocsSidebar = function(_param) {
|
|
7025
7099
|
var test = _param.test, props = _object_without_properties(_param, [
|
|
7026
7100
|
"test"
|
|
@@ -7032,14 +7106,14 @@ var DocsSidebar = function(_param) {
|
|
|
7032
7106
|
"API Reference",
|
|
7033
7107
|
"FAQ"
|
|
7034
7108
|
];
|
|
7035
|
-
var
|
|
7109
|
+
var _import_react38_default_useState = _sliced_to_array(import_react38.default.useState(pages[0]), 2), currentPage = _import_react38_default_useState[0], setCurrentPage = _import_react38_default_useState[1];
|
|
7036
7110
|
var handlePageClick = function(page) {
|
|
7037
7111
|
setCurrentPage(page);
|
|
7038
7112
|
};
|
|
7039
|
-
return /* @__PURE__ */
|
|
7113
|
+
return /* @__PURE__ */ import_react38.default.createElement("div", {
|
|
7040
7114
|
className: "hawa-flex hawa-flex-col hawa-overflow-x-clip"
|
|
7041
7115
|
}, pages.map(function(page, index) {
|
|
7042
|
-
return /* @__PURE__ */
|
|
7116
|
+
return /* @__PURE__ */ import_react38.default.createElement("a", {
|
|
7043
7117
|
key: index,
|
|
7044
7118
|
className: cn("hawa-py-1 hawa-text-xs hawa-cursor-pointer hawa-whitespace-nowrap hawa-px-3 hover:hawa-bg-gray-100 hawa-transition-all", currentPage === page ? "hawa-border-l-4 hawa-border-primary hawa-border-collapse" : ""),
|
|
7045
7119
|
onClick: function() {
|
|
@@ -7074,14 +7148,14 @@ var DocsLayout = function(_param) {
|
|
|
7074
7148
|
lg: closeDrawerWidth
|
|
7075
7149
|
}
|
|
7076
7150
|
};
|
|
7077
|
-
var ref = (0,
|
|
7151
|
+
var ref = (0, import_react39.useRef)(null);
|
|
7078
7152
|
var isRTL = direction === "rtl";
|
|
7079
7153
|
var size = useBreakpoint();
|
|
7080
7154
|
if (typeof window == "undefined") {
|
|
7081
7155
|
size = 1200;
|
|
7082
7156
|
}
|
|
7083
|
-
var _ref = _sliced_to_array((0,
|
|
7084
|
-
(0,
|
|
7157
|
+
var _ref = _sliced_to_array((0, import_react39.useState)(true), 2), openSideMenu = _ref[0], setOpenSideMenu = _ref[1];
|
|
7158
|
+
(0, import_react39.useEffect)(function() {
|
|
7085
7159
|
var handleClickOutside = function(event) {
|
|
7086
7160
|
if (ref.current && !ref.current.contains(event.target) && !openSideMenu) {
|
|
7087
7161
|
setOpenSideMenu(false);
|
|
@@ -7094,7 +7168,7 @@ var DocsLayout = function(_param) {
|
|
|
7094
7168
|
}, [
|
|
7095
7169
|
openSideMenu
|
|
7096
7170
|
]);
|
|
7097
|
-
(0,
|
|
7171
|
+
(0, import_react39.useEffect)(function() {
|
|
7098
7172
|
var handleResize = function() {
|
|
7099
7173
|
setOpenSideMenu(window.innerWidth > 600 ? true : false);
|
|
7100
7174
|
};
|
|
@@ -7107,23 +7181,23 @@ var DocsLayout = function(_param) {
|
|
|
7107
7181
|
keepOpen
|
|
7108
7182
|
]);
|
|
7109
7183
|
var drawerSizeCondition = drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize];
|
|
7110
|
-
return /* @__PURE__ */
|
|
7184
|
+
return /* @__PURE__ */ import_react39.default.createElement("div", {
|
|
7111
7185
|
className: "hawa-fixed"
|
|
7112
|
-
}, /* @__PURE__ */
|
|
7186
|
+
}, /* @__PURE__ */ import_react39.default.createElement("div", {
|
|
7113
7187
|
className: cn("hawa-fixed hawa-left-0 hawa-right-0 hawa-top-0 hawa-z-30 hawa-flex hawa-h-14 hawa-w-full hawa-items-center hawa-justify-between hawa-bg-primary-foreground hawa-p-2", isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row")
|
|
7114
|
-
}, size > 600 ? /* @__PURE__ */
|
|
7188
|
+
}, size > 600 ? /* @__PURE__ */ import_react39.default.createElement("div", {
|
|
7115
7189
|
onClick: props.onLogoClick,
|
|
7116
7190
|
dir: direction
|
|
7117
|
-
}, /* @__PURE__ */
|
|
7191
|
+
}, /* @__PURE__ */ import_react39.default.createElement("img", {
|
|
7118
7192
|
className: cn("hawa-h-8 hawa-opacity-0 hawa-transition-all", !openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100"),
|
|
7119
7193
|
src: props.logoLink
|
|
7120
7194
|
})) : // Mobile Drawer Menu Button
|
|
7121
|
-
/* @__PURE__ */
|
|
7195
|
+
/* @__PURE__ */ import_react39.default.createElement("div", {
|
|
7122
7196
|
dir: direction,
|
|
7123
7197
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
|
7124
|
-
}, /* @__PURE__ */
|
|
7198
|
+
}, /* @__PURE__ */ import_react39.default.createElement(Sheet, null, /* @__PURE__ */ import_react39.default.createElement(SheetTrigger, null, " ", /* @__PURE__ */ import_react39.default.createElement("div", {
|
|
7125
7199
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
|
7126
|
-
}, /* @__PURE__ */
|
|
7200
|
+
}, /* @__PURE__ */ import_react39.default.createElement("svg", {
|
|
7127
7201
|
"aria-label": "Menu Icon",
|
|
7128
7202
|
stroke: "currentColor",
|
|
7129
7203
|
fill: "currentColor",
|
|
@@ -7132,21 +7206,21 @@ var DocsLayout = function(_param) {
|
|
|
7132
7206
|
"aria-hidden": "true",
|
|
7133
7207
|
height: "1.6em",
|
|
7134
7208
|
width: "1.6em"
|
|
7135
|
-
}, /* @__PURE__ */
|
|
7209
|
+
}, /* @__PURE__ */ import_react39.default.createElement("path", {
|
|
7136
7210
|
fillRule: "evenodd",
|
|
7137
7211
|
clipRule: "evenodd",
|
|
7138
7212
|
d: "M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
|
|
7139
|
-
})))), /* @__PURE__ */
|
|
7213
|
+
})))), /* @__PURE__ */ import_react39.default.createElement(SheetContent, {
|
|
7140
7214
|
side: isRTL ? "right" : "left",
|
|
7141
7215
|
className: "hawa-pt-10"
|
|
7142
|
-
}, " ", /* @__PURE__ */
|
|
7216
|
+
}, " ", /* @__PURE__ */ import_react39.default.createElement(DocsSidebar, null)))), /* @__PURE__ */ import_react39.default.createElement("div", {
|
|
7143
7217
|
className: cn("hawa-flex hawa-gap-2 dark:hawa-text-white", isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row")
|
|
7144
|
-
}, /* @__PURE__ */
|
|
7218
|
+
}, /* @__PURE__ */ import_react39.default.createElement(Button, {
|
|
7145
7219
|
variant: "ghost",
|
|
7146
7220
|
size: "smallIcon"
|
|
7147
|
-
}, /* @__PURE__ */
|
|
7221
|
+
}, /* @__PURE__ */ import_react39.default.createElement(Logos.github, {
|
|
7148
7222
|
className: "hawa-w-4 hawa-h-4"
|
|
7149
|
-
})))), /* @__PURE__ */
|
|
7223
|
+
})))), /* @__PURE__ */ import_react39.default.createElement("div", {
|
|
7150
7224
|
className: cn("hawa-fixed hawa-bg-primary-foreground hawa-z-40 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all", isRTL ? "hawa-right-0 hawa-top-0 hawa-h-full" : "hawa-left-0 hawa-top-0 hawa-h-full", "hawa-fixed hawa-p-0 hawa-py-2 hawa-overflow-x-clip hawa-transition-all", "hawa-top-14", openSideMenu ? "hawa-overflow-auto" : "hawa-overflow-hidden"),
|
|
7151
7225
|
style: {
|
|
7152
7226
|
// height: "calc(100%)",
|
|
@@ -7161,7 +7235,7 @@ var DocsLayout = function(_param) {
|
|
|
7161
7235
|
}
|
|
7162
7236
|
},
|
|
7163
7237
|
ref: ref
|
|
7164
|
-
}, /* @__PURE__ */
|
|
7238
|
+
}, /* @__PURE__ */ import_react39.default.createElement(DocsSidebar, null)), /* @__PURE__ */ import_react39.default.createElement("div", null, "overlay sidebar"), /* @__PURE__ */ import_react39.default.createElement("div", {
|
|
7165
7239
|
className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all ",
|
|
7166
7240
|
style: isRTL ? {
|
|
7167
7241
|
height: "calc(100% - 56px)",
|
|
@@ -7179,59 +7253,59 @@ var DocsLayout = function(_param) {
|
|
|
7179
7253
|
}, props.children));
|
|
7180
7254
|
};
|
|
7181
7255
|
// components/blocks/auth/LoginForm.tsx
|
|
7182
|
-
var
|
|
7256
|
+
var import_react41 = __toESM(require("react"));
|
|
7183
7257
|
var import_react_hook_form = require("react-hook-form");
|
|
7184
7258
|
var import_zod = require("@hookform/resolvers/zod");
|
|
7185
7259
|
var import_libphonenumber_js = require("libphonenumber-js");
|
|
7186
7260
|
var z = __toESM(require("zod"));
|
|
7187
7261
|
// components/blocks/auth/AuthButtons.tsx
|
|
7188
|
-
var
|
|
7262
|
+
var import_react40 = __toESM(require("react"));
|
|
7189
7263
|
var AuthButtons = function(props) {
|
|
7190
7264
|
var _props_texts, _props_texts1, _props_texts2, _props_texts3, _props_texts4, _props_texts5, _props_texts6;
|
|
7191
7265
|
var _props_texts_continueWithGoogle, _props_texts_continueWithGithub, _props_texts_continueWithTwitter, _props_texts_continueWithApple, _props_texts_continueWithMicrosoft, _props_texts_continueWithEmail, _props_texts_continueWithPhone;
|
|
7192
|
-
return /* @__PURE__ */
|
|
7266
|
+
return /* @__PURE__ */ import_react40.default.createElement("div", {
|
|
7193
7267
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7194
|
-
}, props.viaGoogle && /* @__PURE__ */
|
|
7268
|
+
}, props.viaGoogle && /* @__PURE__ */ import_react40.default.createElement(Button, {
|
|
7195
7269
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7196
7270
|
variant: "outline",
|
|
7197
7271
|
onClick: props.handleGoogle
|
|
7198
|
-
}, /* @__PURE__ */
|
|
7272
|
+
}, /* @__PURE__ */ import_react40.default.createElement(Logos.google, {
|
|
7199
7273
|
className: "hawa-h-4 hawa-w-4"
|
|
7200
|
-
}), (_props_texts_continueWithGoogle = (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.continueWithGoogle) !== null && _props_texts_continueWithGoogle !== void 0 ? _props_texts_continueWithGoogle : "Continue With Google"), props.viaGithub && /* @__PURE__ */
|
|
7274
|
+
}), (_props_texts_continueWithGoogle = (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.continueWithGoogle) !== null && _props_texts_continueWithGoogle !== void 0 ? _props_texts_continueWithGoogle : "Continue With Google"), props.viaGithub && /* @__PURE__ */ import_react40.default.createElement(Button, {
|
|
7201
7275
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7202
7276
|
variant: "outline",
|
|
7203
7277
|
onClick: props.handleGithub
|
|
7204
|
-
}, /* @__PURE__ */
|
|
7278
|
+
}, /* @__PURE__ */ import_react40.default.createElement(Logos.github, {
|
|
7205
7279
|
className: "hawa-h-4 hawa-w-4"
|
|
7206
|
-
}), (_props_texts_continueWithGithub = (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.continueWithGithub) !== null && _props_texts_continueWithGithub !== void 0 ? _props_texts_continueWithGithub : "Continue With Github"), props.viaTwitter && /* @__PURE__ */
|
|
7280
|
+
}), (_props_texts_continueWithGithub = (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.continueWithGithub) !== null && _props_texts_continueWithGithub !== void 0 ? _props_texts_continueWithGithub : "Continue With Github"), props.viaTwitter && /* @__PURE__ */ import_react40.default.createElement(Button, {
|
|
7207
7281
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7208
7282
|
variant: "outline",
|
|
7209
7283
|
onClick: props.handleTwitter
|
|
7210
|
-
}, /* @__PURE__ */
|
|
7284
|
+
}, /* @__PURE__ */ import_react40.default.createElement(Logos.twitter, {
|
|
7211
7285
|
className: "hawa-h-4 hawa-w-4"
|
|
7212
|
-
}), (_props_texts_continueWithTwitter = (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.continueWithTwitter) !== null && _props_texts_continueWithTwitter !== void 0 ? _props_texts_continueWithTwitter : "Continue With Twitter"), props.viaApple && /* @__PURE__ */
|
|
7286
|
+
}), (_props_texts_continueWithTwitter = (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.continueWithTwitter) !== null && _props_texts_continueWithTwitter !== void 0 ? _props_texts_continueWithTwitter : "Continue With Twitter"), props.viaApple && /* @__PURE__ */ import_react40.default.createElement(Button, {
|
|
7213
7287
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7214
7288
|
variant: "outline",
|
|
7215
7289
|
onClick: props.handleApple
|
|
7216
|
-
}, /* @__PURE__ */
|
|
7290
|
+
}, /* @__PURE__ */ import_react40.default.createElement(Logos.apple, {
|
|
7217
7291
|
className: "hawa-h-4 hawa-w-4"
|
|
7218
|
-
}), (_props_texts_continueWithApple = (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.continueWithApple) !== null && _props_texts_continueWithApple !== void 0 ? _props_texts_continueWithApple : "Continue With Apple"), props.viaMicrosoft && /* @__PURE__ */
|
|
7292
|
+
}), (_props_texts_continueWithApple = (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.continueWithApple) !== null && _props_texts_continueWithApple !== void 0 ? _props_texts_continueWithApple : "Continue With Apple"), props.viaMicrosoft && /* @__PURE__ */ import_react40.default.createElement(Button, {
|
|
7219
7293
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7220
7294
|
variant: "outline",
|
|
7221
7295
|
onClick: props.handleMicrosoft
|
|
7222
|
-
}, /* @__PURE__ */
|
|
7296
|
+
}, /* @__PURE__ */ import_react40.default.createElement(Logos.microsoft, {
|
|
7223
7297
|
className: "hawa-h-4 hawa-w-4"
|
|
7224
|
-
}), (_props_texts_continueWithMicrosoft = (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.continueWithMicrosoft) !== null && _props_texts_continueWithMicrosoft !== void 0 ? _props_texts_continueWithMicrosoft : "Continue With Microsoft"), props.viaEmail && /* @__PURE__ */
|
|
7298
|
+
}), (_props_texts_continueWithMicrosoft = (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.continueWithMicrosoft) !== null && _props_texts_continueWithMicrosoft !== void 0 ? _props_texts_continueWithMicrosoft : "Continue With Microsoft"), props.viaEmail && /* @__PURE__ */ import_react40.default.createElement(Button, {
|
|
7225
7299
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7226
7300
|
variant: "outline",
|
|
7227
7301
|
onClick: props.handleEmail
|
|
7228
|
-
}, /* @__PURE__ */
|
|
7302
|
+
}, /* @__PURE__ */ import_react40.default.createElement(Logos.mail, {
|
|
7229
7303
|
className: "hawa-h-4 hawa-w-4"
|
|
7230
|
-
}), (_props_texts_continueWithEmail = (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.continueWithEmail) !== null && _props_texts_continueWithEmail !== void 0 ? _props_texts_continueWithEmail : "Continue With Email"), props.viaPhone && /* @__PURE__ */
|
|
7304
|
+
}), (_props_texts_continueWithEmail = (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.continueWithEmail) !== null && _props_texts_continueWithEmail !== void 0 ? _props_texts_continueWithEmail : "Continue With Email"), props.viaPhone && /* @__PURE__ */ import_react40.default.createElement(Button, {
|
|
7231
7305
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7232
7306
|
variant: "outline",
|
|
7233
7307
|
onClick: props.handlePhone
|
|
7234
|
-
}, /* @__PURE__ */
|
|
7308
|
+
}, /* @__PURE__ */ import_react40.default.createElement(Logos.phone, {
|
|
7235
7309
|
className: "hawa-h-4 hawa-w-4"
|
|
7236
7310
|
}), (_props_texts_continueWithPhone = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.continueWithPhone) !== null && _props_texts_continueWithPhone !== void 0 ? _props_texts_continueWithPhone : "Continue With Phone"));
|
|
7237
7311
|
};
|
|
@@ -7323,26 +7397,26 @@ var LoginForm = function(_param) {
|
|
|
7323
7397
|
var renderFields = function() {
|
|
7324
7398
|
switch(loginType){
|
|
7325
7399
|
case "email":
|
|
7326
|
-
return /* @__PURE__ */
|
|
7400
|
+
return /* @__PURE__ */ import_react41.default.createElement(import_react41.default.Fragment, null, /* @__PURE__ */ import_react41.default.createElement(import_react_hook_form.Controller, {
|
|
7327
7401
|
control: control,
|
|
7328
7402
|
name: "email",
|
|
7329
7403
|
render: function(param) {
|
|
7330
7404
|
var field = param.field;
|
|
7331
7405
|
var _texts_email, _formState_errors_email, _texts_email1;
|
|
7332
|
-
return /* @__PURE__ */
|
|
7406
|
+
return /* @__PURE__ */ import_react41.default.createElement(Input, _object_spread({
|
|
7333
7407
|
width: "full",
|
|
7334
7408
|
label: texts === null || texts === void 0 ? void 0 : (_texts_email = texts.email) === null || _texts_email === void 0 ? void 0 : _texts_email.label,
|
|
7335
7409
|
helperText: (_formState_errors_email = formState.errors.email) === null || _formState_errors_email === void 0 ? void 0 : _formState_errors_email.message,
|
|
7336
7410
|
placeholder: (texts === null || texts === void 0 ? void 0 : (_texts_email1 = texts.email) === null || _texts_email1 === void 0 ? void 0 : _texts_email1.placeholder) || "contact@sikka.io"
|
|
7337
7411
|
}, field));
|
|
7338
7412
|
}
|
|
7339
|
-
}), /* @__PURE__ */
|
|
7413
|
+
}), /* @__PURE__ */ import_react41.default.createElement("div", null, /* @__PURE__ */ import_react41.default.createElement(import_react_hook_form.Controller, {
|
|
7340
7414
|
control: control,
|
|
7341
7415
|
name: "password",
|
|
7342
7416
|
render: function(param) {
|
|
7343
7417
|
var field = param.field;
|
|
7344
7418
|
var _texts_password, _texts_password1, _formState_errors_password;
|
|
7345
|
-
return /* @__PURE__ */
|
|
7419
|
+
return /* @__PURE__ */ import_react41.default.createElement(Input, _object_spread({
|
|
7346
7420
|
width: "full",
|
|
7347
7421
|
autoComplete: "current-password",
|
|
7348
7422
|
type: "password",
|
|
@@ -7351,18 +7425,18 @@ var LoginForm = function(_param) {
|
|
|
7351
7425
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
7352
7426
|
}, field));
|
|
7353
7427
|
}
|
|
7354
|
-
}), !props.withoutResetPassword && /* @__PURE__ */
|
|
7428
|
+
}), !props.withoutResetPassword && /* @__PURE__ */ import_react41.default.createElement("div", {
|
|
7355
7429
|
onClick: props.onForgotPassword,
|
|
7356
7430
|
className: "hawa-mb-3 hawa-mt-2 hawa-w-fit hawa-cursor-pointer hawa-text-xs dark:hawa-text-gray-300"
|
|
7357
7431
|
}, (texts === null || texts === void 0 ? void 0 : texts.forgotPassword) || "Forgot Password?")));
|
|
7358
7432
|
case "username":
|
|
7359
|
-
return /* @__PURE__ */
|
|
7433
|
+
return /* @__PURE__ */ import_react41.default.createElement(import_react41.default.Fragment, null, /* @__PURE__ */ import_react41.default.createElement(import_react_hook_form.Controller, {
|
|
7360
7434
|
control: control,
|
|
7361
7435
|
name: "username",
|
|
7362
7436
|
render: function(param) {
|
|
7363
7437
|
var field = param.field;
|
|
7364
7438
|
var _texts_username, _formState_errors_username, _texts_username1;
|
|
7365
|
-
return /* @__PURE__ */
|
|
7439
|
+
return /* @__PURE__ */ import_react41.default.createElement(Input, _object_spread({
|
|
7366
7440
|
width: "full",
|
|
7367
7441
|
autoComplete: "username",
|
|
7368
7442
|
label: (texts === null || texts === void 0 ? void 0 : (_texts_username = texts.username) === null || _texts_username === void 0 ? void 0 : _texts_username.label) || "Username",
|
|
@@ -7370,13 +7444,13 @@ var LoginForm = function(_param) {
|
|
|
7370
7444
|
placeholder: (texts === null || texts === void 0 ? void 0 : (_texts_username1 = texts.username) === null || _texts_username1 === void 0 ? void 0 : _texts_username1.placeholder) || "sikka_sa"
|
|
7371
7445
|
}, field));
|
|
7372
7446
|
}
|
|
7373
|
-
}), /* @__PURE__ */
|
|
7447
|
+
}), /* @__PURE__ */ import_react41.default.createElement("div", null, /* @__PURE__ */ import_react41.default.createElement(import_react_hook_form.Controller, {
|
|
7374
7448
|
control: control,
|
|
7375
7449
|
name: "password",
|
|
7376
7450
|
render: function(param) {
|
|
7377
7451
|
var field = param.field;
|
|
7378
7452
|
var _texts_password, _texts_password1, _formState_errors_password;
|
|
7379
|
-
return /* @__PURE__ */
|
|
7453
|
+
return /* @__PURE__ */ import_react41.default.createElement(Input, _object_spread({
|
|
7380
7454
|
width: "full",
|
|
7381
7455
|
autoComplete: "current-password",
|
|
7382
7456
|
type: "password",
|
|
@@ -7385,18 +7459,18 @@ var LoginForm = function(_param) {
|
|
|
7385
7459
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
7386
7460
|
}, field));
|
|
7387
7461
|
}
|
|
7388
|
-
}), !props.withoutResetPassword && /* @__PURE__ */
|
|
7462
|
+
}), !props.withoutResetPassword && /* @__PURE__ */ import_react41.default.createElement("div", {
|
|
7389
7463
|
onClick: props.onForgotPassword,
|
|
7390
7464
|
className: "hawa-mb-3 hawa-mt-2 hawa-w-fit hawa-cursor-pointer hawa-text-xs dark:hawa-text-gray-300"
|
|
7391
7465
|
}, (texts === null || texts === void 0 ? void 0 : texts.forgotPassword) || "Forgot Password?")));
|
|
7392
7466
|
case "phone":
|
|
7393
|
-
return /* @__PURE__ */
|
|
7467
|
+
return /* @__PURE__ */ import_react41.default.createElement(import_react41.default.Fragment, null, /* @__PURE__ */ import_react41.default.createElement(import_react_hook_form.Controller, {
|
|
7394
7468
|
control: control,
|
|
7395
7469
|
name: "phone",
|
|
7396
7470
|
render: function(param) {
|
|
7397
7471
|
var field = param.field;
|
|
7398
7472
|
var _texts_phone, _formState_errors_phone;
|
|
7399
|
-
return /* @__PURE__ */
|
|
7473
|
+
return /* @__PURE__ */ import_react41.default.createElement(PhoneInput, {
|
|
7400
7474
|
label: texts === null || texts === void 0 ? void 0 : (_texts_phone = texts.phone) === null || _texts_phone === void 0 ? void 0 : _texts_phone.label,
|
|
7401
7475
|
helperText: (_formState_errors_phone = formState.errors.phone) === null || _formState_errors_phone === void 0 ? void 0 : _formState_errors_phone.message,
|
|
7402
7476
|
preferredCountry: {
|
|
@@ -7409,13 +7483,13 @@ var LoginForm = function(_param) {
|
|
|
7409
7483
|
}
|
|
7410
7484
|
}));
|
|
7411
7485
|
case "link":
|
|
7412
|
-
return /* @__PURE__ */
|
|
7486
|
+
return /* @__PURE__ */ import_react41.default.createElement(import_react41.default.Fragment, null, /* @__PURE__ */ import_react41.default.createElement(import_react_hook_form.Controller, {
|
|
7413
7487
|
control: control,
|
|
7414
7488
|
name: "email",
|
|
7415
7489
|
render: function(param) {
|
|
7416
7490
|
var field = param.field;
|
|
7417
7491
|
var _texts_email, _formState_errors_email, _texts_email1;
|
|
7418
|
-
return /* @__PURE__ */
|
|
7492
|
+
return /* @__PURE__ */ import_react41.default.createElement(Input, _object_spread({
|
|
7419
7493
|
width: "full",
|
|
7420
7494
|
autoComplete: "email",
|
|
7421
7495
|
label: (texts === null || texts === void 0 ? void 0 : (_texts_email = texts.email) === null || _texts_email === void 0 ? void 0 : _texts_email.label) || "Email",
|
|
@@ -7428,17 +7502,17 @@ var LoginForm = function(_param) {
|
|
|
7428
7502
|
break;
|
|
7429
7503
|
}
|
|
7430
7504
|
};
|
|
7431
|
-
return /* @__PURE__ */
|
|
7505
|
+
return /* @__PURE__ */ import_react41.default.createElement("div", {
|
|
7432
7506
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7433
|
-
}, /* @__PURE__ */
|
|
7507
|
+
}, /* @__PURE__ */ import_react41.default.createElement(Card, {
|
|
7434
7508
|
dir: props.direction
|
|
7435
|
-
}, /* @__PURE__ */
|
|
7509
|
+
}, /* @__PURE__ */ import_react41.default.createElement(CardContent, {
|
|
7436
7510
|
headless: true
|
|
7437
|
-
}, props.showError && /* @__PURE__ */
|
|
7511
|
+
}, props.showError && /* @__PURE__ */ import_react41.default.createElement(Alert, {
|
|
7438
7512
|
title: props.errorTitle,
|
|
7439
7513
|
text: props.errorText,
|
|
7440
7514
|
severity: "error"
|
|
7441
|
-
}), /* @__PURE__ */
|
|
7515
|
+
}), /* @__PURE__ */ import_react41.default.createElement("form", {
|
|
7442
7516
|
noValidate: true,
|
|
7443
7517
|
className: "hawa-flex hawa-flex-col hawa-gap-4",
|
|
7444
7518
|
onSubmit: handleSubmit(function(e) {
|
|
@@ -7448,18 +7522,18 @@ var LoginForm = function(_param) {
|
|
|
7448
7522
|
console.log("Form is submitted but onLogin prop is missing");
|
|
7449
7523
|
}
|
|
7450
7524
|
})
|
|
7451
|
-
}, renderFields(), /* @__PURE__ */
|
|
7525
|
+
}, renderFields(), /* @__PURE__ */ import_react41.default.createElement(Button, {
|
|
7452
7526
|
className: "hawa-mt-0 hawa-w-full",
|
|
7453
7527
|
type: "submit",
|
|
7454
7528
|
isLoading: props.isLoading
|
|
7455
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login"), props.additionalButtons, props.allowRegister && /* @__PURE__ */
|
|
7529
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login"), props.additionalButtons, props.allowRegister && /* @__PURE__ */ import_react41.default.createElement("div", {
|
|
7456
7530
|
className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal hawa-select-none dark:hawa-text-gray-300"
|
|
7457
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.newUserText) || "New user?", " ", /* @__PURE__ */
|
|
7531
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.newUserText) || "New user?", " ", /* @__PURE__ */ import_react41.default.createElement("span", {
|
|
7458
7532
|
onClick: props.onRouteToRegister,
|
|
7459
7533
|
className: "clickable-link"
|
|
7460
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.createAccount) || "Create Account")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
|
7534
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.createAccount) || "Create Account")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react41.default.createElement(CardFooter, {
|
|
7461
7535
|
className: cn(props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2")
|
|
7462
|
-
}, /* @__PURE__ */
|
|
7536
|
+
}, /* @__PURE__ */ import_react41.default.createElement(AuthButtons, {
|
|
7463
7537
|
texts: thirdPartyAuthTexts,
|
|
7464
7538
|
viaGoogle: props.viaGoogle,
|
|
7465
7539
|
viaGithub: props.viaGithub,
|
|
@@ -7467,7 +7541,7 @@ var LoginForm = function(_param) {
|
|
|
7467
7541
|
handleGoogle: props.onGoogleLogin,
|
|
7468
7542
|
handleGithub: props.onGithubLogin,
|
|
7469
7543
|
handleTwitter: props.onTwitterLogin
|
|
7470
|
-
})) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */
|
|
7544
|
+
})) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */ import_react41.default.createElement(InterfaceSettings, {
|
|
7471
7545
|
currentColorMode: props.currentColorMode,
|
|
7472
7546
|
currentLanguage: props.currentLanguage,
|
|
7473
7547
|
handleColorMode: props.handleColorMode,
|
|
@@ -7475,7 +7549,7 @@ var LoginForm = function(_param) {
|
|
|
7475
7549
|
}));
|
|
7476
7550
|
};
|
|
7477
7551
|
// components/blocks/auth/RegisterForm.tsx
|
|
7478
|
-
var
|
|
7552
|
+
var import_react42 = __toESM(require("react"));
|
|
7479
7553
|
var import_react_hook_form2 = require("react-hook-form");
|
|
7480
7554
|
var import_zod2 = require("@hookform/resolvers/zod");
|
|
7481
7555
|
var z2 = __toESM(require("zod"));
|
|
@@ -7563,17 +7637,17 @@ var RegisterForm = function(_param) {
|
|
|
7563
7637
|
var _ref = (0, import_react_hook_form2.useForm)({
|
|
7564
7638
|
resolver: (0, import_zod2.zodResolver)(formSchema)
|
|
7565
7639
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState;
|
|
7566
|
-
return /* @__PURE__ */
|
|
7640
|
+
return /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7567
7641
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7568
|
-
}, /* @__PURE__ */
|
|
7642
|
+
}, /* @__PURE__ */ import_react42.default.createElement(Card, {
|
|
7569
7643
|
dir: props.direction
|
|
7570
|
-
}, /* @__PURE__ */
|
|
7644
|
+
}, /* @__PURE__ */ import_react42.default.createElement(CardContent, {
|
|
7571
7645
|
headless: true
|
|
7572
|
-
}, /* @__PURE__ */
|
|
7646
|
+
}, /* @__PURE__ */ import_react42.default.createElement("div", null, props.showError && /* @__PURE__ */ import_react42.default.createElement(Alert, {
|
|
7573
7647
|
title: props.errorTitle,
|
|
7574
7648
|
text: props.errorText,
|
|
7575
7649
|
severity: "error"
|
|
7576
|
-
}), /* @__PURE__ */
|
|
7650
|
+
}), /* @__PURE__ */ import_react42.default.createElement(import_react_hook_form2.FormProvider, _object_spread({}, methods), /* @__PURE__ */ import_react42.default.createElement("form", {
|
|
7577
7651
|
noValidate: true,
|
|
7578
7652
|
onSubmit: handleSubmit(function(e) {
|
|
7579
7653
|
if (props.onRegister) {
|
|
@@ -7583,18 +7657,18 @@ var RegisterForm = function(_param) {
|
|
|
7583
7657
|
}
|
|
7584
7658
|
}),
|
|
7585
7659
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7586
|
-
}, /* @__PURE__ */
|
|
7660
|
+
}, /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7587
7661
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7588
7662
|
}, props.registerFields.map(function(fld, i) {
|
|
7589
7663
|
if (fld === "fullname") {
|
|
7590
|
-
return /* @__PURE__ */
|
|
7664
|
+
return /* @__PURE__ */ import_react42.default.createElement(import_react_hook_form2.Controller, {
|
|
7591
7665
|
key: i,
|
|
7592
7666
|
control: control,
|
|
7593
7667
|
name: "fullName",
|
|
7594
7668
|
render: function(param) {
|
|
7595
7669
|
var field = param.field;
|
|
7596
7670
|
var _texts_fullName, _texts_fullName1, _formState_errors_fullName;
|
|
7597
|
-
return /* @__PURE__ */
|
|
7671
|
+
return /* @__PURE__ */ import_react42.default.createElement(Input, _object_spread({
|
|
7598
7672
|
width: "full",
|
|
7599
7673
|
label: texts === null || texts === void 0 ? void 0 : (_texts_fullName = texts.fullName) === null || _texts_fullName === void 0 ? void 0 : _texts_fullName.label,
|
|
7600
7674
|
placeholder: texts === null || texts === void 0 ? void 0 : (_texts_fullName1 = texts.fullName) === null || _texts_fullName1 === void 0 ? void 0 : _texts_fullName1.placeholder,
|
|
@@ -7604,14 +7678,14 @@ var RegisterForm = function(_param) {
|
|
|
7604
7678
|
});
|
|
7605
7679
|
}
|
|
7606
7680
|
if (fld === "email") {
|
|
7607
|
-
return /* @__PURE__ */
|
|
7681
|
+
return /* @__PURE__ */ import_react42.default.createElement(import_react_hook_form2.Controller, {
|
|
7608
7682
|
key: i,
|
|
7609
7683
|
control: control,
|
|
7610
7684
|
name: "email",
|
|
7611
7685
|
render: function(param) {
|
|
7612
7686
|
var field = param.field;
|
|
7613
7687
|
var _texts_email, _formState_errors_email, _texts_email1;
|
|
7614
|
-
return /* @__PURE__ */
|
|
7688
|
+
return /* @__PURE__ */ import_react42.default.createElement(Input, _object_spread({
|
|
7615
7689
|
width: "full",
|
|
7616
7690
|
autoComplete: "email",
|
|
7617
7691
|
label: texts === null || texts === void 0 ? void 0 : (_texts_email = texts.email) === null || _texts_email === void 0 ? void 0 : _texts_email.label,
|
|
@@ -7622,14 +7696,14 @@ var RegisterForm = function(_param) {
|
|
|
7622
7696
|
});
|
|
7623
7697
|
}
|
|
7624
7698
|
if (fld === "username") {
|
|
7625
|
-
return /* @__PURE__ */
|
|
7699
|
+
return /* @__PURE__ */ import_react42.default.createElement(import_react_hook_form2.Controller, {
|
|
7626
7700
|
key: i,
|
|
7627
7701
|
control: control,
|
|
7628
7702
|
name: "username",
|
|
7629
7703
|
render: function(param) {
|
|
7630
7704
|
var field = param.field;
|
|
7631
7705
|
var _texts_username, _formState_errors_username, _texts_username1;
|
|
7632
|
-
return /* @__PURE__ */
|
|
7706
|
+
return /* @__PURE__ */ import_react42.default.createElement(Input, _object_spread({
|
|
7633
7707
|
width: "full",
|
|
7634
7708
|
autoComplete: "username",
|
|
7635
7709
|
label: texts === null || texts === void 0 ? void 0 : (_texts_username = texts.username) === null || _texts_username === void 0 ? void 0 : _texts_username.label,
|
|
@@ -7639,13 +7713,13 @@ var RegisterForm = function(_param) {
|
|
|
7639
7713
|
}
|
|
7640
7714
|
});
|
|
7641
7715
|
}
|
|
7642
|
-
})), /* @__PURE__ */
|
|
7716
|
+
})), /* @__PURE__ */ import_react42.default.createElement(import_react_hook_form2.Controller, {
|
|
7643
7717
|
control: control,
|
|
7644
7718
|
name: "password",
|
|
7645
7719
|
render: function(param) {
|
|
7646
7720
|
var field = param.field;
|
|
7647
7721
|
var _texts_password, _texts_password1, _formState_errors_password;
|
|
7648
|
-
return /* @__PURE__ */
|
|
7722
|
+
return /* @__PURE__ */ import_react42.default.createElement(Input, _object_spread({
|
|
7649
7723
|
width: "full",
|
|
7650
7724
|
type: "password",
|
|
7651
7725
|
autoComplete: "new-password",
|
|
@@ -7654,13 +7728,13 @@ var RegisterForm = function(_param) {
|
|
|
7654
7728
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
7655
7729
|
}, field));
|
|
7656
7730
|
}
|
|
7657
|
-
}), /* @__PURE__ */
|
|
7731
|
+
}), /* @__PURE__ */ import_react42.default.createElement(import_react_hook_form2.Controller, {
|
|
7658
7732
|
control: control,
|
|
7659
7733
|
name: "confirm_password",
|
|
7660
7734
|
render: function(param) {
|
|
7661
7735
|
var field = param.field;
|
|
7662
7736
|
var _texts_confirm, _texts_confirm1, _formState_errors_confirm_password;
|
|
7663
|
-
return /* @__PURE__ */
|
|
7737
|
+
return /* @__PURE__ */ import_react42.default.createElement(Input, _object_spread({
|
|
7664
7738
|
width: "full",
|
|
7665
7739
|
type: "password",
|
|
7666
7740
|
autoComplete: "new-password",
|
|
@@ -7669,25 +7743,25 @@ var RegisterForm = function(_param) {
|
|
|
7669
7743
|
helperText: (_formState_errors_confirm_password = formState.errors.confirm_password) === null || _formState_errors_confirm_password === void 0 ? void 0 : _formState_errors_confirm_password.message
|
|
7670
7744
|
}, field));
|
|
7671
7745
|
}
|
|
7672
|
-
}), props.additionalInputs, props.showRefCode && /* @__PURE__ */
|
|
7746
|
+
}), props.additionalInputs, props.showRefCode && /* @__PURE__ */ import_react42.default.createElement(import_react_hook_form2.Controller, {
|
|
7673
7747
|
control: control,
|
|
7674
7748
|
name: "refCode",
|
|
7675
7749
|
render: function(param) {
|
|
7676
7750
|
var field = param.field;
|
|
7677
7751
|
var _formState_errors_refCode;
|
|
7678
|
-
return /* @__PURE__ */
|
|
7752
|
+
return /* @__PURE__ */ import_react42.default.createElement(Input, _object_spread({
|
|
7679
7753
|
width: "full",
|
|
7680
7754
|
label: texts === null || texts === void 0 ? void 0 : texts.refCode,
|
|
7681
7755
|
placeholder: (texts === null || texts === void 0 ? void 0 : texts.refCodePlaceholder) || "Enter the referral code",
|
|
7682
7756
|
helperText: (_formState_errors_refCode = formState.errors.refCode) === null || _formState_errors_refCode === void 0 ? void 0 : _formState_errors_refCode.message
|
|
7683
7757
|
}, field));
|
|
7684
7758
|
}
|
|
7685
|
-
}), props.showUserSource && /* @__PURE__ */
|
|
7759
|
+
}), props.showUserSource && /* @__PURE__ */ import_react42.default.createElement(import_react_hook_form2.Controller, {
|
|
7686
7760
|
control: control,
|
|
7687
7761
|
name: "reference",
|
|
7688
7762
|
render: function(param) {
|
|
7689
7763
|
var field = param.field;
|
|
7690
|
-
return /* @__PURE__ */
|
|
7764
|
+
return /* @__PURE__ */ import_react42.default.createElement(Select, {
|
|
7691
7765
|
label: (texts === null || texts === void 0 ? void 0 : texts.userReference.label) || "How did you learn about us?",
|
|
7692
7766
|
placeholder: texts === null || texts === void 0 ? void 0 : texts.userReference.placeholder,
|
|
7693
7767
|
isCreatable: false,
|
|
@@ -7700,50 +7774,50 @@ var RegisterForm = function(_param) {
|
|
|
7700
7774
|
}
|
|
7701
7775
|
});
|
|
7702
7776
|
}
|
|
7703
|
-
}), /* @__PURE__ */
|
|
7777
|
+
}), /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7704
7778
|
className: "hawa-flex hawa-flex-col hawa-gap-3"
|
|
7705
|
-
}, props.showTermsOption && /* @__PURE__ */
|
|
7779
|
+
}, props.showTermsOption && /* @__PURE__ */ import_react42.default.createElement(import_react_hook_form2.Controller, {
|
|
7706
7780
|
control: control,
|
|
7707
7781
|
name: "terms_accepted",
|
|
7708
7782
|
render: function(param) {
|
|
7709
7783
|
var field = param.field;
|
|
7710
7784
|
var _formState_errors_terms_accepted_message, _formState_errors_terms_accepted;
|
|
7711
|
-
return /* @__PURE__ */
|
|
7785
|
+
return /* @__PURE__ */ import_react42.default.createElement(Checkbox, {
|
|
7712
7786
|
id: "terms_accepted",
|
|
7713
7787
|
helperText: (_formState_errors_terms_accepted = formState.errors.terms_accepted) === null || _formState_errors_terms_accepted === void 0 ? void 0 : (_formState_errors_terms_accepted_message = _formState_errors_terms_accepted.message) === null || _formState_errors_terms_accepted_message === void 0 ? void 0 : _formState_errors_terms_accepted_message.toString(),
|
|
7714
7788
|
onCheckedChange: function(e) {
|
|
7715
7789
|
return field.onChange(e);
|
|
7716
7790
|
},
|
|
7717
|
-
label: /* @__PURE__ */
|
|
7791
|
+
label: /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7718
7792
|
className: "hawa-flex hawa-flex-row hawa-gap-0.5"
|
|
7719
|
-
}, /* @__PURE__ */
|
|
7793
|
+
}, /* @__PURE__ */ import_react42.default.createElement("span", null, texts === null || texts === void 0 ? void 0 : texts.iAcceptText), " ", /* @__PURE__ */ import_react42.default.createElement(StopPropagationWrapper, null, /* @__PURE__ */ import_react42.default.createElement("a", {
|
|
7720
7794
|
onClick: props.onRouteToTOS,
|
|
7721
7795
|
className: "clickable-link"
|
|
7722
7796
|
}, texts === null || texts === void 0 ? void 0 : texts.termsText)))
|
|
7723
7797
|
});
|
|
7724
7798
|
}
|
|
7725
|
-
}), props.showNewsletterOption && /* @__PURE__ */
|
|
7799
|
+
}), props.showNewsletterOption && /* @__PURE__ */ import_react42.default.createElement(import_react_hook_form2.Controller, {
|
|
7726
7800
|
control: control,
|
|
7727
7801
|
name: "newsletter_accepted",
|
|
7728
7802
|
render: function(param) {
|
|
7729
7803
|
var field = param.field;
|
|
7730
|
-
return /* @__PURE__ */
|
|
7804
|
+
return /* @__PURE__ */ import_react42.default.createElement(Checkbox, {
|
|
7731
7805
|
id: "newsletter_accepted",
|
|
7732
7806
|
label: texts === null || texts === void 0 ? void 0 : texts.subscribeToNewsletter,
|
|
7733
7807
|
onCheckedChange: field.onChange
|
|
7734
7808
|
});
|
|
7735
7809
|
}
|
|
7736
|
-
})), /* @__PURE__ */
|
|
7810
|
+
})), /* @__PURE__ */ import_react42.default.createElement(Button, {
|
|
7737
7811
|
isLoading: props.isLoading,
|
|
7738
7812
|
className: "hawa-w-full hawa-mt-4"
|
|
7739
|
-
}, texts === null || texts === void 0 ? void 0 : texts.registerText), props.additionalButtons)), /* @__PURE__ */
|
|
7813
|
+
}, texts === null || texts === void 0 ? void 0 : texts.registerText), props.additionalButtons)), /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7740
7814
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-1 hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-white"
|
|
7741
|
-
}, /* @__PURE__ */
|
|
7815
|
+
}, /* @__PURE__ */ import_react42.default.createElement("span", null, texts === null || texts === void 0 ? void 0 : texts.existingUserText), /* @__PURE__ */ import_react42.default.createElement("span", {
|
|
7742
7816
|
onClick: props.onRouteToLogin,
|
|
7743
7817
|
className: "clickable-link"
|
|
7744
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
|
7818
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react42.default.createElement(CardFooter, {
|
|
7745
7819
|
className: cn(props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2")
|
|
7746
|
-
}, /* @__PURE__ */
|
|
7820
|
+
}, /* @__PURE__ */ import_react42.default.createElement(AuthButtons, {
|
|
7747
7821
|
texts: thirdPartyAuthTexts,
|
|
7748
7822
|
viaGoogle: props.viaGoogle,
|
|
7749
7823
|
viaGithub: props.viaGithub,
|
|
@@ -7751,7 +7825,7 @@ var RegisterForm = function(_param) {
|
|
|
7751
7825
|
handleGoogle: props.onGoogleRegister,
|
|
7752
7826
|
handleGithub: props.onGithubRegister,
|
|
7753
7827
|
handleTwitter: props.onTwitterRegister
|
|
7754
|
-
})) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */
|
|
7828
|
+
})) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */ import_react42.default.createElement(InterfaceSettings, {
|
|
7755
7829
|
currentColorMode: props.currentColorMode,
|
|
7756
7830
|
currentLanguage: props.currentLanguage,
|
|
7757
7831
|
handleColorMode: props.handleColorMode,
|
|
@@ -7759,7 +7833,7 @@ var RegisterForm = function(_param) {
|
|
|
7759
7833
|
}));
|
|
7760
7834
|
};
|
|
7761
7835
|
// components/blocks/auth/AppLanding.tsx
|
|
7762
|
-
var
|
|
7836
|
+
var import_react43 = __toESM(require("react"));
|
|
7763
7837
|
var AppLanding = function(_param) {
|
|
7764
7838
|
var texts = _param.texts, props = _object_without_properties(_param, [
|
|
7765
7839
|
"texts"
|
|
@@ -7773,12 +7847,12 @@ var AppLanding = function(_param) {
|
|
|
7773
7847
|
continueWithEmail: texts === null || texts === void 0 ? void 0 : texts.continueWithEmail,
|
|
7774
7848
|
continueWithPhone: texts === null || texts === void 0 ? void 0 : texts.continueWithPhone
|
|
7775
7849
|
};
|
|
7776
|
-
return /* @__PURE__ */
|
|
7850
|
+
return /* @__PURE__ */ import_react43.default.createElement("div", {
|
|
7777
7851
|
dir: props.direction
|
|
7778
|
-
}, /* @__PURE__ */
|
|
7852
|
+
}, /* @__PURE__ */ import_react43.default.createElement(Card, null, /* @__PURE__ */ import_react43.default.createElement(CardContent, {
|
|
7779
7853
|
headless: true,
|
|
7780
7854
|
className: "hawa-flex hawa-flex-col hawa-gap-6"
|
|
7781
|
-
}, /* @__PURE__ */
|
|
7855
|
+
}, /* @__PURE__ */ import_react43.default.createElement(AuthButtons, {
|
|
7782
7856
|
texts: thirdPartyAuthTexts,
|
|
7783
7857
|
viaApple: props.viaApple,
|
|
7784
7858
|
viaGoogle: props.viaGoogle,
|
|
@@ -7795,14 +7869,14 @@ var AppLanding = function(_param) {
|
|
|
7795
7869
|
handleEmail: props.handleEmail,
|
|
7796
7870
|
handlePhone: props.handlePhone
|
|
7797
7871
|
}), !props.withoutSignUp && //TODO: change to "register"
|
|
7798
|
-
/* @__PURE__ */
|
|
7872
|
+
/* @__PURE__ */ import_react43.default.createElement("div", {
|
|
7799
7873
|
className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-gray-300"
|
|
7800
|
-
}, texts === null || texts === void 0 ? void 0 : texts.newUserText, " ", /* @__PURE__ */
|
|
7874
|
+
}, texts === null || texts === void 0 ? void 0 : texts.newUserText, " ", /* @__PURE__ */ import_react43.default.createElement("span", {
|
|
7801
7875
|
onClick: props.handleRouteToRegister,
|
|
7802
7876
|
className: "clickable-link"
|
|
7803
|
-
}, texts === null || texts === void 0 ? void 0 : texts.createAccount)))), /* @__PURE__ */
|
|
7877
|
+
}, texts === null || texts === void 0 ? void 0 : texts.createAccount)))), /* @__PURE__ */ import_react43.default.createElement("div", {
|
|
7804
7878
|
className: "hawa-mt-4 hawa-flex hawa-flex-row hawa-justify-between"
|
|
7805
|
-
}, /* @__PURE__ */
|
|
7879
|
+
}, /* @__PURE__ */ import_react43.default.createElement(Radio, {
|
|
7806
7880
|
onChangeTab: props.handleLanguage,
|
|
7807
7881
|
design: "tabs",
|
|
7808
7882
|
options: [
|
|
@@ -7815,20 +7889,20 @@ var AppLanding = function(_param) {
|
|
|
7815
7889
|
label: "English"
|
|
7816
7890
|
}
|
|
7817
7891
|
]
|
|
7818
|
-
}), /* @__PURE__ */
|
|
7892
|
+
}), /* @__PURE__ */ import_react43.default.createElement(Radio, {
|
|
7819
7893
|
onChangeTab: props.handleColorMode,
|
|
7820
7894
|
design: "tabs",
|
|
7821
7895
|
options: [
|
|
7822
7896
|
{
|
|
7823
7897
|
value: "light",
|
|
7824
|
-
label: /* @__PURE__ */
|
|
7898
|
+
label: /* @__PURE__ */ import_react43.default.createElement("svg", {
|
|
7825
7899
|
width: "15",
|
|
7826
7900
|
height: "15",
|
|
7827
7901
|
viewBox: "0 0 15 15",
|
|
7828
7902
|
fill: "none",
|
|
7829
7903
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7830
7904
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
|
7831
|
-
}, /* @__PURE__ */
|
|
7905
|
+
}, /* @__PURE__ */ import_react43.default.createElement("path", {
|
|
7832
7906
|
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",
|
|
7833
7907
|
fill: "currentColor",
|
|
7834
7908
|
fillRule: "evenodd",
|
|
@@ -7837,7 +7911,7 @@ var AppLanding = function(_param) {
|
|
|
7837
7911
|
},
|
|
7838
7912
|
{
|
|
7839
7913
|
value: "dark",
|
|
7840
|
-
label: /* @__PURE__ */
|
|
7914
|
+
label: /* @__PURE__ */ import_react43.default.createElement("svg", {
|
|
7841
7915
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7842
7916
|
width: "24",
|
|
7843
7917
|
height: "24",
|
|
@@ -7848,7 +7922,7 @@ var AppLanding = function(_param) {
|
|
|
7848
7922
|
strokeLinecap: "round",
|
|
7849
7923
|
strokeLinejoin: "round",
|
|
7850
7924
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
|
7851
|
-
}, /* @__PURE__ */
|
|
7925
|
+
}, /* @__PURE__ */ import_react43.default.createElement("path", {
|
|
7852
7926
|
d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"
|
|
7853
7927
|
}))
|
|
7854
7928
|
}
|
|
@@ -7856,16 +7930,16 @@ var AppLanding = function(_param) {
|
|
|
7856
7930
|
})));
|
|
7857
7931
|
};
|
|
7858
7932
|
// components/blocks/auth/CheckEmail.tsx
|
|
7859
|
-
var
|
|
7933
|
+
var import_react44 = __toESM(require("react"));
|
|
7860
7934
|
var CheckEmail = function(param) {
|
|
7861
7935
|
var texts = param.texts, handleResend = param.handleResend;
|
|
7862
|
-
return /* @__PURE__ */
|
|
7936
|
+
return /* @__PURE__ */ import_react44.default.createElement(Card, null, /* @__PURE__ */ import_react44.default.createElement(CardContent, {
|
|
7863
7937
|
headless: true
|
|
7864
|
-
}, /* @__PURE__ */
|
|
7938
|
+
}, /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
7865
7939
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center"
|
|
7866
|
-
}, /* @__PURE__ */
|
|
7940
|
+
}, /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
7867
7941
|
className: "hawa-flex hawa-h-16 hawa-w-16 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground"
|
|
7868
|
-
}, /* @__PURE__ */
|
|
7942
|
+
}, /* @__PURE__ */ import_react44.default.createElement("svg", {
|
|
7869
7943
|
stroke: "currentColor",
|
|
7870
7944
|
fill: "none",
|
|
7871
7945
|
"stroke-width": "2",
|
|
@@ -7875,23 +7949,23 @@ var CheckEmail = function(param) {
|
|
|
7875
7949
|
height: "0.5em",
|
|
7876
7950
|
width: "0.5em",
|
|
7877
7951
|
xmlns: "http://www.w3.org/2000/svg"
|
|
7878
|
-
}, /* @__PURE__ */
|
|
7952
|
+
}, /* @__PURE__ */ import_react44.default.createElement("path", {
|
|
7879
7953
|
d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"
|
|
7880
|
-
}), /* @__PURE__ */
|
|
7954
|
+
}), /* @__PURE__ */ import_react44.default.createElement("polyline", {
|
|
7881
7955
|
points: "22,6 12,13 2,6"
|
|
7882
|
-
}))), /* @__PURE__ */
|
|
7956
|
+
}))), /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
7883
7957
|
className: "hawa-m-2 hawa-text-xl hawa-font-bold"
|
|
7884
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.checkEmail) || "Check your Email"), /* @__PURE__ */
|
|
7958
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.checkEmail) || "Check your Email"), /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
7885
7959
|
className: "hawa-text-sm"
|
|
7886
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.pleaseVerify) || "Thank you for signing up! To complete your registration, we've sent a verification email to the address you provided. Please check your inbox and follow the instructions in the email to activate your account."))), /* @__PURE__ */
|
|
7960
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.pleaseVerify) || "Thank you for signing up! To complete your registration, we've sent a verification email to the address you provided. Please check your inbox and follow the instructions in the email to activate your account."))), /* @__PURE__ */ import_react44.default.createElement(CardFooter, {
|
|
7887
7961
|
className: "hawa-flex hawa-flex-col hawa-justify-center "
|
|
7888
|
-
}, /* @__PURE__ */
|
|
7962
|
+
}, /* @__PURE__ */ import_react44.default.createElement("span", {
|
|
7889
7963
|
className: "clickable-link hawa-text-sm",
|
|
7890
7964
|
onClick: handleResend
|
|
7891
7965
|
}, (texts === null || texts === void 0 ? void 0 : texts.resendEmail) || "Resend Email")));
|
|
7892
7966
|
};
|
|
7893
7967
|
// components/blocks/auth/NewPassword.tsx
|
|
7894
|
-
var
|
|
7968
|
+
var import_react45 = __toESM(require("react"));
|
|
7895
7969
|
var import_react_hook_form3 = require("react-hook-form");
|
|
7896
7970
|
var import_zod3 = require("@hookform/resolvers/zod");
|
|
7897
7971
|
var z3 = __toESM(require("zod"));
|
|
@@ -7926,18 +8000,18 @@ var NewPasswordForm = function(_param) {
|
|
|
7926
8000
|
var _ref = (0, import_react_hook_form3.useForm)({
|
|
7927
8001
|
resolver: (0, import_zod3.zodResolver)(formSchema)
|
|
7928
8002
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState;
|
|
7929
|
-
var _ref1 = _sliced_to_array((0,
|
|
8003
|
+
var _ref1 = _sliced_to_array((0, import_react45.useState)(false), 2), matchError = _ref1[0], setMatchError = _ref1[1];
|
|
7930
8004
|
var _texts_dontHaveAccount, _texts_registerText;
|
|
7931
|
-
return /* @__PURE__ */
|
|
8005
|
+
return /* @__PURE__ */ import_react45.default.createElement(Card, {
|
|
7932
8006
|
dir: props.direction
|
|
7933
|
-
}, matchError && /* @__PURE__ */
|
|
8007
|
+
}, matchError && /* @__PURE__ */ import_react45.default.createElement(Alert, {
|
|
7934
8008
|
text: texts === null || texts === void 0 ? void 0 : (_texts_confirm2 = texts.confirm) === null || _texts_confirm2 === void 0 ? void 0 : _texts_confirm2.dontMatch,
|
|
7935
8009
|
severity: "error"
|
|
7936
|
-
}), props.passwordChanged ? /* @__PURE__ */
|
|
8010
|
+
}), props.passwordChanged ? /* @__PURE__ */ import_react45.default.createElement(CardContent, {
|
|
7937
8011
|
headless: true
|
|
7938
|
-
}, /* @__PURE__ */
|
|
8012
|
+
}, /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
7939
8013
|
className: "hawa-text-center"
|
|
7940
|
-
}, texts === null || texts === void 0 ? void 0 : texts.passwordChanged)) : /* @__PURE__ */
|
|
8014
|
+
}, texts === null || texts === void 0 ? void 0 : texts.passwordChanged)) : /* @__PURE__ */ import_react45.default.createElement("form", {
|
|
7941
8015
|
noValidate: true,
|
|
7942
8016
|
onSubmit: handleSubmit(function(e) {
|
|
7943
8017
|
if (props.handleNewPassword) {
|
|
@@ -7946,16 +8020,16 @@ var NewPasswordForm = function(_param) {
|
|
|
7946
8020
|
console.log("Form is submitted but handleSubmission prop is missing");
|
|
7947
8021
|
}
|
|
7948
8022
|
})
|
|
7949
|
-
}, !props.headless && /* @__PURE__ */
|
|
8023
|
+
}, !props.headless && /* @__PURE__ */ import_react45.default.createElement(CardHeader, null, /* @__PURE__ */ import_react45.default.createElement(CardTitle, null, "Create Password"), /* @__PURE__ */ import_react45.default.createElement(CardDescription, null, "Set a new password for your account")), /* @__PURE__ */ import_react45.default.createElement(CardContent, {
|
|
7950
8024
|
headless: props.headless,
|
|
7951
8025
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7952
|
-
}, /* @__PURE__ */
|
|
8026
|
+
}, /* @__PURE__ */ import_react45.default.createElement(import_react_hook_form3.Controller, {
|
|
7953
8027
|
control: control,
|
|
7954
8028
|
name: "password",
|
|
7955
8029
|
render: function(param) {
|
|
7956
8030
|
var field = param.field;
|
|
7957
8031
|
var _texts_password, _texts_password1, _formState_errors_password;
|
|
7958
|
-
return /* @__PURE__ */
|
|
8032
|
+
return /* @__PURE__ */ import_react45.default.createElement(Input, _object_spread({
|
|
7959
8033
|
width: "full",
|
|
7960
8034
|
type: "password",
|
|
7961
8035
|
autoComplete: "new-password",
|
|
@@ -7964,13 +8038,13 @@ var NewPasswordForm = function(_param) {
|
|
|
7964
8038
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
7965
8039
|
}, field));
|
|
7966
8040
|
}
|
|
7967
|
-
}), /* @__PURE__ */
|
|
8041
|
+
}), /* @__PURE__ */ import_react45.default.createElement(import_react_hook_form3.Controller, {
|
|
7968
8042
|
control: control,
|
|
7969
8043
|
name: "confirm_password",
|
|
7970
8044
|
render: function(param) {
|
|
7971
8045
|
var field = param.field;
|
|
7972
8046
|
var _texts_confirm, _texts_confirm1, _formState_errors_confirm_password;
|
|
7973
|
-
return /* @__PURE__ */
|
|
8047
|
+
return /* @__PURE__ */ import_react45.default.createElement(Input, _object_spread({
|
|
7974
8048
|
width: "full",
|
|
7975
8049
|
type: "password",
|
|
7976
8050
|
autoComplete: "new-password",
|
|
@@ -7979,20 +8053,20 @@ var NewPasswordForm = function(_param) {
|
|
|
7979
8053
|
helperText: (_formState_errors_confirm_password = formState.errors.confirm_password) === null || _formState_errors_confirm_password === void 0 ? void 0 : _formState_errors_confirm_password.message
|
|
7980
8054
|
}, field));
|
|
7981
8055
|
}
|
|
7982
|
-
})), /* @__PURE__ */
|
|
8056
|
+
})), /* @__PURE__ */ import_react45.default.createElement(CardFooter, {
|
|
7983
8057
|
className: "hawa-flex hawa-flex-col"
|
|
7984
|
-
}, /* @__PURE__ */
|
|
8058
|
+
}, /* @__PURE__ */ import_react45.default.createElement(Button, {
|
|
7985
8059
|
className: "hawa-w-full",
|
|
7986
8060
|
type: "submit"
|
|
7987
|
-
}, texts === null || texts === void 0 ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */
|
|
8061
|
+
}, texts === null || texts === void 0 ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
7988
8062
|
className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300"
|
|
7989
|
-
}, (_texts_dontHaveAccount = texts === null || texts === void 0 ? void 0 : texts.dontHaveAccount) !== null && _texts_dontHaveAccount !== void 0 ? _texts_dontHaveAccount : "Don't have an account? ", /* @__PURE__ */
|
|
8063
|
+
}, (_texts_dontHaveAccount = texts === null || texts === void 0 ? void 0 : texts.dontHaveAccount) !== null && _texts_dontHaveAccount !== void 0 ? _texts_dontHaveAccount : "Don't have an account? ", /* @__PURE__ */ import_react45.default.createElement("span", {
|
|
7990
8064
|
className: "clickable-link",
|
|
7991
8065
|
onClick: props.handleRouteToRegister
|
|
7992
8066
|
}, (_texts_registerText = texts === null || texts === void 0 ? void 0 : texts.registerText) !== null && _texts_registerText !== void 0 ? _texts_registerText : "Register")))));
|
|
7993
8067
|
};
|
|
7994
8068
|
// components/blocks/auth/ResetPassword.tsx
|
|
7995
|
-
var
|
|
8069
|
+
var import_react46 = __toESM(require("react"));
|
|
7996
8070
|
var import_react_hook_form4 = require("react-hook-form");
|
|
7997
8071
|
var import_zod4 = require("@hookform/resolvers/zod");
|
|
7998
8072
|
var z4 = __toESM(require("zod"));
|
|
@@ -8011,9 +8085,9 @@ var ResetPasswordForm = function(props) {
|
|
|
8011
8085
|
resolver: (0, import_zod4.zodResolver)(formSchema)
|
|
8012
8086
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState;
|
|
8013
8087
|
var _props_texts_dontHaveAccount, _props_texts_registerText;
|
|
8014
|
-
return /* @__PURE__ */
|
|
8088
|
+
return /* @__PURE__ */ import_react46.default.createElement(Card, {
|
|
8015
8089
|
dir: props.direction
|
|
8016
|
-
}, !props.sent ? /* @__PURE__ */
|
|
8090
|
+
}, !props.sent ? /* @__PURE__ */ import_react46.default.createElement(import_react46.default.Fragment, null, !props.headless && /* @__PURE__ */ import_react46.default.createElement(CardHeader, null, /* @__PURE__ */ import_react46.default.createElement(CardTitle, null, " ", ((_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.headTitle) || "Reset Password"), /* @__PURE__ */ import_react46.default.createElement(CardDescription, null, ((_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.headDescription) || "Enter your email to reset your account password")), /* @__PURE__ */ import_react46.default.createElement("form", {
|
|
8017
8091
|
noValidate: true,
|
|
8018
8092
|
onSubmit: handleSubmit(function(e) {
|
|
8019
8093
|
if (props.handleResetPassword) {
|
|
@@ -8022,39 +8096,39 @@ var ResetPasswordForm = function(props) {
|
|
|
8022
8096
|
console.log("handleResetPassword prop is missing");
|
|
8023
8097
|
}
|
|
8024
8098
|
})
|
|
8025
|
-
}, /* @__PURE__ */
|
|
8099
|
+
}, /* @__PURE__ */ import_react46.default.createElement(CardContent, {
|
|
8026
8100
|
headless: props.headless
|
|
8027
|
-
}, /* @__PURE__ */
|
|
8101
|
+
}, /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form4.Controller, {
|
|
8028
8102
|
control: control,
|
|
8029
8103
|
name: "email",
|
|
8030
8104
|
render: function(param) {
|
|
8031
8105
|
var field = param.field;
|
|
8032
8106
|
var _props_texts_email, _props_texts, _formState_errors_email, _props_texts_email1, _props_texts1;
|
|
8033
|
-
return /* @__PURE__ */
|
|
8107
|
+
return /* @__PURE__ */ import_react46.default.createElement(Input, _object_spread({
|
|
8034
8108
|
width: "full",
|
|
8035
8109
|
label: (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : (_props_texts_email = _props_texts.email) === null || _props_texts_email === void 0 ? void 0 : _props_texts_email.label,
|
|
8036
8110
|
helperText: (_formState_errors_email = formState.errors.email) === null || _formState_errors_email === void 0 ? void 0 : _formState_errors_email.message,
|
|
8037
8111
|
placeholder: (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : (_props_texts_email1 = _props_texts1.email) === null || _props_texts_email1 === void 0 ? void 0 : _props_texts_email1.placeholder
|
|
8038
8112
|
}, field));
|
|
8039
8113
|
}
|
|
8040
|
-
})), /* @__PURE__ */
|
|
8114
|
+
})), /* @__PURE__ */ import_react46.default.createElement(CardFooter, {
|
|
8041
8115
|
className: "hawa-flex hawa-flex-col"
|
|
8042
|
-
}, /* @__PURE__ */
|
|
8116
|
+
}, /* @__PURE__ */ import_react46.default.createElement(Button, {
|
|
8043
8117
|
type: "submit",
|
|
8044
8118
|
className: "hawa-w-full"
|
|
8045
|
-
}, (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resetPassword), props.allowRegister && /* @__PURE__ */
|
|
8119
|
+
}, (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resetPassword), props.allowRegister && /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
8046
8120
|
className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300"
|
|
8047
|
-
}, (_props_texts_dontHaveAccount = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.dontHaveAccount) !== null && _props_texts_dontHaveAccount !== void 0 ? _props_texts_dontHaveAccount : "Don't have an account? ", /* @__PURE__ */
|
|
8121
|
+
}, (_props_texts_dontHaveAccount = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.dontHaveAccount) !== null && _props_texts_dontHaveAccount !== void 0 ? _props_texts_dontHaveAccount : "Don't have an account? ", /* @__PURE__ */ import_react46.default.createElement("span", {
|
|
8048
8122
|
className: "clickable-link",
|
|
8049
8123
|
onClick: props.handleRouteToRegister
|
|
8050
|
-
}, (_props_texts_registerText = (_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.registerText) !== null && _props_texts_registerText !== void 0 ? _props_texts_registerText : "Register"))))) : /* @__PURE__ */
|
|
8124
|
+
}, (_props_texts_registerText = (_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.registerText) !== null && _props_texts_registerText !== void 0 ? _props_texts_registerText : "Register"))))) : /* @__PURE__ */ import_react46.default.createElement(CardContent, {
|
|
8051
8125
|
headless: true
|
|
8052
|
-
}, /* @__PURE__ */
|
|
8126
|
+
}, /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
8053
8127
|
className: "hawa-text-center"
|
|
8054
8128
|
}, (_props_texts8 = props.texts) === null || _props_texts8 === void 0 ? void 0 : _props_texts8.emailSentText)));
|
|
8055
8129
|
};
|
|
8056
8130
|
// components/blocks/auth/CodeConfirmation.tsx
|
|
8057
|
-
var
|
|
8131
|
+
var import_react47 = __toESM(require("react"));
|
|
8058
8132
|
var import_react_hook_form5 = require("react-hook-form");
|
|
8059
8133
|
var import_zod5 = require("@hookform/resolvers/zod");
|
|
8060
8134
|
var z5 = __toESM(require("zod"));
|
|
@@ -8071,19 +8145,19 @@ var CodeConfirmation = function(props) {
|
|
|
8071
8145
|
resolver: (0, import_zod5.zodResolver)(formSchema)
|
|
8072
8146
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState, setValue = _ref.setValue;
|
|
8073
8147
|
var _props_texts_checkYourPhone, _props_texts_weSentCode, _props_texts_didntGetCode, _props_texts_resendCode, _props_texts_cancel, _props_texts_confirm;
|
|
8074
|
-
return /* @__PURE__ */
|
|
8148
|
+
return /* @__PURE__ */ import_react47.default.createElement(Card, null, /* @__PURE__ */ import_react47.default.createElement(CardContent, {
|
|
8075
8149
|
headless: true
|
|
8076
|
-
}, props.showError && /* @__PURE__ */
|
|
8150
|
+
}, props.showError && /* @__PURE__ */ import_react47.default.createElement(Alert, {
|
|
8077
8151
|
title: props.errorTitle,
|
|
8078
8152
|
text: props.errorText,
|
|
8079
8153
|
severity: "error"
|
|
8080
|
-
}), /* @__PURE__ */
|
|
8154
|
+
}), /* @__PURE__ */ import_react47.default.createElement("div", {
|
|
8081
8155
|
className: "hawa-mb-4 dark:hawa-text-white"
|
|
8082
|
-
}, /* @__PURE__ */
|
|
8156
|
+
}, /* @__PURE__ */ import_react47.default.createElement("div", {
|
|
8083
8157
|
className: "hawa-text-lg hawa-font-bold"
|
|
8084
|
-
}, (_props_texts_checkYourPhone = (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.checkYourPhone) !== null && _props_texts_checkYourPhone !== void 0 ? _props_texts_checkYourPhone : "Please check your phone"), /* @__PURE__ */
|
|
8158
|
+
}, (_props_texts_checkYourPhone = (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.checkYourPhone) !== null && _props_texts_checkYourPhone !== void 0 ? _props_texts_checkYourPhone : "Please check your phone"), /* @__PURE__ */ import_react47.default.createElement("div", {
|
|
8085
8159
|
className: "hawa-text-muted-foreground"
|
|
8086
|
-
}, /* @__PURE__ */
|
|
8160
|
+
}, /* @__PURE__ */ import_react47.default.createElement("span", null, (_props_texts_weSentCode = (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.weSentCode) !== null && _props_texts_weSentCode !== void 0 ? _props_texts_weSentCode : "We've sent a code to "), /* @__PURE__ */ import_react47.default.createElement("span", null, props.phoneNumber)), " "), /* @__PURE__ */ import_react47.default.createElement("form", {
|
|
8087
8161
|
noValidate: true,
|
|
8088
8162
|
onSubmit: handleSubmit(function(e) {
|
|
8089
8163
|
if (props.handleConfirm) {
|
|
@@ -8092,13 +8166,13 @@ var CodeConfirmation = function(props) {
|
|
|
8092
8166
|
console.log("Form is submitted but handleConfirm prop is missing");
|
|
8093
8167
|
}
|
|
8094
8168
|
})
|
|
8095
|
-
}, /* @__PURE__ */
|
|
8169
|
+
}, /* @__PURE__ */ import_react47.default.createElement(import_react_hook_form5.Controller, {
|
|
8096
8170
|
control: control,
|
|
8097
8171
|
name: "otp_code",
|
|
8098
8172
|
render: function(param) {
|
|
8099
8173
|
var field = param.field;
|
|
8100
8174
|
var _formState_errors_otp_code;
|
|
8101
|
-
return /* @__PURE__ */
|
|
8175
|
+
return /* @__PURE__ */ import_react47.default.createElement(PinInput, {
|
|
8102
8176
|
width: "full",
|
|
8103
8177
|
digits: 6,
|
|
8104
8178
|
getPins: function(e) {
|
|
@@ -8107,18 +8181,18 @@ var CodeConfirmation = function(props) {
|
|
|
8107
8181
|
helperText: (_formState_errors_otp_code = formState.errors.otp_code) === null || _formState_errors_otp_code === void 0 ? void 0 : _formState_errors_otp_code.message
|
|
8108
8182
|
});
|
|
8109
8183
|
}
|
|
8110
|
-
}), /* @__PURE__ */
|
|
8184
|
+
}), /* @__PURE__ */ import_react47.default.createElement("div", {
|
|
8111
8185
|
className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground"
|
|
8112
|
-
}, /* @__PURE__ */
|
|
8186
|
+
}, /* @__PURE__ */ import_react47.default.createElement("span", null, (_props_texts_didntGetCode = (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.didntGetCode) !== null && _props_texts_didntGetCode !== void 0 ? _props_texts_didntGetCode : "Didn't get the code?"), " ", /* @__PURE__ */ import_react47.default.createElement("span", {
|
|
8113
8187
|
className: "clickable-link"
|
|
8114
|
-
}, (_props_texts_resendCode = (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resendCode) !== null && _props_texts_resendCode !== void 0 ? _props_texts_resendCode : "Click to resend")), /* @__PURE__ */
|
|
8188
|
+
}, (_props_texts_resendCode = (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resendCode) !== null && _props_texts_resendCode !== void 0 ? _props_texts_resendCode : "Click to resend")), /* @__PURE__ */ import_react47.default.createElement("div", {
|
|
8115
8189
|
className: "hawa-mt-4 hawa-grid hawa-grid-cols-2 hawa-gap-2"
|
|
8116
|
-
}, /* @__PURE__ */
|
|
8190
|
+
}, /* @__PURE__ */ import_react47.default.createElement(Button, {
|
|
8117
8191
|
variant: "secondary"
|
|
8118
|
-
}, (_props_texts_cancel = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.cancel) !== null && _props_texts_cancel !== void 0 ? _props_texts_cancel : "Cancel"), /* @__PURE__ */
|
|
8192
|
+
}, (_props_texts_cancel = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.cancel) !== null && _props_texts_cancel !== void 0 ? _props_texts_cancel : "Cancel"), /* @__PURE__ */ import_react47.default.createElement(Button, null, (_props_texts_confirm = (_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.confirm) !== null && _props_texts_confirm !== void 0 ? _props_texts_confirm : "Confirm")))));
|
|
8119
8193
|
};
|
|
8120
8194
|
// components/blocks/feedback/UserReferralSource.tsx
|
|
8121
|
-
var
|
|
8195
|
+
var import_react48 = __toESM(require("react"));
|
|
8122
8196
|
var import_react_hook_form6 = require("react-hook-form");
|
|
8123
8197
|
var import_zod6 = require("@hookform/resolvers/zod");
|
|
8124
8198
|
var z6 = __toESM(require("zod"));
|
|
@@ -8128,8 +8202,8 @@ var UserReferralSource = function(_param) {
|
|
|
8128
8202
|
"options"
|
|
8129
8203
|
]);
|
|
8130
8204
|
var _props_texts, _props_texts1;
|
|
8131
|
-
var _ref = _sliced_to_array((0,
|
|
8132
|
-
var popUpRef = (0,
|
|
8205
|
+
var _ref = _sliced_to_array((0, import_react48.useState)(false), 2), closed = _ref[0], setClosed = _ref[1];
|
|
8206
|
+
var popUpRef = (0, import_react48.useRef)(null);
|
|
8133
8207
|
var formSchema = z6.object({
|
|
8134
8208
|
source: z6.string({
|
|
8135
8209
|
required_error: (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.pleaseSelectOption
|
|
@@ -8143,13 +8217,13 @@ var UserReferralSource = function(_param) {
|
|
|
8143
8217
|
"bottom-right": "hawa-right-4",
|
|
8144
8218
|
"bottom-left": "hawa-left-4"
|
|
8145
8219
|
};
|
|
8146
|
-
return /* @__PURE__ */
|
|
8220
|
+
return /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
8147
8221
|
className: cn("hawa-transition-all", closed ? "hawa-opacity-0" : "hawa-opacity-100"),
|
|
8148
8222
|
ref: popUpRef
|
|
8149
|
-
}, /* @__PURE__ */
|
|
8223
|
+
}, /* @__PURE__ */ import_react48.default.createElement(Card, {
|
|
8150
8224
|
className: cn("hawa-fixed hawa-bottom-4 hawa-p-0 ", boxPosition[position]),
|
|
8151
8225
|
dir: props.direction
|
|
8152
|
-
}, /* @__PURE__ */
|
|
8226
|
+
}, /* @__PURE__ */ import_react48.default.createElement("button", {
|
|
8153
8227
|
type: "button",
|
|
8154
8228
|
className: cn(props.direction === "rtl" ? "hawa-left-2" : "hawa-right-2", "hawa-absolute hawa-top-2 hawa-inline-flex hawa-h-8 hawa-w-8 hawa-rounded hawa-p-1.5 hawa-text-gray-400 hawa-transition-all hover:hawa-bg-gray-100 hover:hawa-text-gray-900 focus:hawa-ring-2 focus:hawa-ring-gray-300 dark:hawa-bg-gray-800 dark:hawa-text-gray-500 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-white"),
|
|
8155
8229
|
"data-dismiss-target": "#toast-default",
|
|
@@ -8162,18 +8236,18 @@ var UserReferralSource = function(_param) {
|
|
|
8162
8236
|
}
|
|
8163
8237
|
}, 200);
|
|
8164
8238
|
}
|
|
8165
|
-
}, /* @__PURE__ */
|
|
8239
|
+
}, /* @__PURE__ */ import_react48.default.createElement("svg", {
|
|
8166
8240
|
"aria-hidden": "true",
|
|
8167
8241
|
className: "hawa-h-5 hawa-w-5",
|
|
8168
8242
|
fill: "currentColor",
|
|
8169
8243
|
viewBox: "0 0 20 20"
|
|
8170
|
-
}, /* @__PURE__ */
|
|
8244
|
+
}, /* @__PURE__ */ import_react48.default.createElement("path", {
|
|
8171
8245
|
fillRule: "evenodd",
|
|
8172
8246
|
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",
|
|
8173
8247
|
clipRule: "evenodd"
|
|
8174
|
-
}))), /* @__PURE__ */
|
|
8248
|
+
}))), /* @__PURE__ */ import_react48.default.createElement(CardContent, {
|
|
8175
8249
|
headless: true
|
|
8176
|
-
}, /* @__PURE__ */
|
|
8250
|
+
}, /* @__PURE__ */ import_react48.default.createElement("form", {
|
|
8177
8251
|
noValidate: true,
|
|
8178
8252
|
onSubmit: handleSubmit(function(e) {
|
|
8179
8253
|
if (props.onSubmitForm) {
|
|
@@ -8181,19 +8255,19 @@ var UserReferralSource = function(_param) {
|
|
|
8181
8255
|
}
|
|
8182
8256
|
console.log("onSubmitForm was not provided");
|
|
8183
8257
|
})
|
|
8184
|
-
}, /* @__PURE__ */
|
|
8258
|
+
}, /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
8185
8259
|
className: cn("hawa-flex hawa-flex-col hawa-gap-4 hawa-transition-all", closed ? "hawa-opacity-0" : "hawa-opacity-100")
|
|
8186
|
-
}, /* @__PURE__ */
|
|
8260
|
+
}, /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
8187
8261
|
className: "hawa-mt-4 hawa-font-bold"
|
|
8188
|
-
}, props.question), /* @__PURE__ */
|
|
8262
|
+
}, props.question), /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
8189
8263
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded "
|
|
8190
|
-
}, /* @__PURE__ */
|
|
8264
|
+
}, /* @__PURE__ */ import_react48.default.createElement(import_react_hook_form6.Controller, {
|
|
8191
8265
|
control: control,
|
|
8192
8266
|
name: "source",
|
|
8193
8267
|
render: function(param) {
|
|
8194
8268
|
var field = param.field;
|
|
8195
8269
|
var _formState_errors_source_message, _formState_errors_source;
|
|
8196
|
-
return /* @__PURE__ */
|
|
8270
|
+
return /* @__PURE__ */ import_react48.default.createElement(Radio, {
|
|
8197
8271
|
direction: props.direction,
|
|
8198
8272
|
orientation: "vertical",
|
|
8199
8273
|
options: options,
|
|
@@ -8204,38 +8278,38 @@ var UserReferralSource = function(_param) {
|
|
|
8204
8278
|
helperText: (_formState_errors_source = formState.errors.source) === null || _formState_errors_source === void 0 ? void 0 : (_formState_errors_source_message = _formState_errors_source.message) === null || _formState_errors_source_message === void 0 ? void 0 : _formState_errors_source_message.toString()
|
|
8205
8279
|
});
|
|
8206
8280
|
}
|
|
8207
|
-
})), /* @__PURE__ */
|
|
8281
|
+
})), /* @__PURE__ */ import_react48.default.createElement("div", null, /* @__PURE__ */ import_react48.default.createElement(import_react_hook_form6.Controller, {
|
|
8208
8282
|
control: control,
|
|
8209
8283
|
name: "feedback",
|
|
8210
8284
|
render: function(param) {
|
|
8211
8285
|
var field = param.field;
|
|
8212
8286
|
var _formState_errors_feedback_message, _formState_errors_feedback;
|
|
8213
|
-
return /* @__PURE__ */
|
|
8287
|
+
return /* @__PURE__ */ import_react48.default.createElement(Textarea, _object_spread_props(_object_spread({}, field), {
|
|
8214
8288
|
helperText: (_formState_errors_feedback = formState.errors.feedback) === null || _formState_errors_feedback === void 0 ? void 0 : (_formState_errors_feedback_message = _formState_errors_feedback.message) === null || _formState_errors_feedback_message === void 0 ? void 0 : _formState_errors_feedback_message.toString()
|
|
8215
8289
|
}));
|
|
8216
8290
|
}
|
|
8217
|
-
}))), /* @__PURE__ */
|
|
8291
|
+
}))), /* @__PURE__ */ import_react48.default.createElement(Button, {
|
|
8218
8292
|
type: "submit",
|
|
8219
8293
|
className: "hawa-mt-4 hawa-w-full"
|
|
8220
8294
|
}, ((_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.submit) || "Submit")))));
|
|
8221
8295
|
};
|
|
8222
8296
|
// components/blocks/feedback/FeedbackRating.tsx
|
|
8223
|
-
var
|
|
8297
|
+
var import_react49 = __toESM(require("react"));
|
|
8224
8298
|
var import_clsx11 = __toESM(require("clsx"));
|
|
8225
8299
|
var FeedbackRating = function(_param) {
|
|
8226
8300
|
var _param_position = _param.position, position = _param_position === void 0 ? "bottom-right" : _param_position, props = _object_without_properties(_param, [
|
|
8227
8301
|
"position"
|
|
8228
8302
|
]);
|
|
8229
|
-
var _ref = _sliced_to_array((0,
|
|
8230
|
-
var _ref1 = _sliced_to_array((0,
|
|
8231
|
-
var _ref2 = _sliced_to_array((0,
|
|
8232
|
-
var _ref3 = _sliced_to_array((0,
|
|
8233
|
-
var popUpRef = (0,
|
|
8303
|
+
var _ref = _sliced_to_array((0, import_react49.useState)(false), 2), closed = _ref[0], setClosed = _ref[1];
|
|
8304
|
+
var _ref1 = _sliced_to_array((0, import_react49.useState)(false), 2), answered = _ref1[0], setAnswered = _ref1[1];
|
|
8305
|
+
var _ref2 = _sliced_to_array((0, import_react49.useState)(null), 2), clickedOption = _ref2[0], setClickedOption = _ref2[1];
|
|
8306
|
+
var _ref3 = _sliced_to_array((0, import_react49.useState)(5), 2), closingTimer = _ref3[0], setClosingTimer = _ref3[1];
|
|
8307
|
+
var popUpRef = (0, import_react49.useRef)(null);
|
|
8234
8308
|
var boxPosition = {
|
|
8235
8309
|
"bottom-right": "hawa-right-4",
|
|
8236
8310
|
"bottom-left": "hawa-left-4"
|
|
8237
8311
|
};
|
|
8238
|
-
(0,
|
|
8312
|
+
(0, import_react49.useEffect)(function() {
|
|
8239
8313
|
var timeoutHide = setTimeout(function() {
|
|
8240
8314
|
if (closingTimer >= 0) {
|
|
8241
8315
|
setClosingTimer(closingTimer - 1);
|
|
@@ -8255,14 +8329,14 @@ var FeedbackRating = function(_param) {
|
|
|
8255
8329
|
}
|
|
8256
8330
|
}, 200);
|
|
8257
8331
|
};
|
|
8258
|
-
return /* @__PURE__ */
|
|
8332
|
+
return /* @__PURE__ */ import_react49.default.createElement("div", {
|
|
8259
8333
|
ref: popUpRef,
|
|
8260
8334
|
className: (0, import_clsx11.default)(props.banner ? "hawa-w-full hawa-left-0 hawa-fixed hawa-bottom-0 hawa-px-0 md:hawa-px-4" : "hawa-fixed hawa-bottom-4 ", boxPosition[position])
|
|
8261
|
-
}, /* @__PURE__ */
|
|
8335
|
+
}, /* @__PURE__ */ import_react49.default.createElement("div", {
|
|
8262
8336
|
className: (0, import_clsx11.default)("hawa-relative hawa-flex hawa-w-full hawa-flex-col hawa-gap-2 hawa-rounded hawa-border hawa-bg-background hawa-p-4 hawa-shadow-md hawa-transition-all", closed ? "hawa-opacity-0" : "hawa-opacity-100", props.banner && "hawa-rounded-none md:hawa-rounded hawa-px-4 md:hawa-px-64")
|
|
8263
|
-
}, /* @__PURE__ */
|
|
8337
|
+
}, /* @__PURE__ */ import_react49.default.createElement("div", {
|
|
8264
8338
|
className: "hawa-absolute hawa-left-2 hawa-top-2 hawa-p-1.5 hawa-text-sm"
|
|
8265
|
-
}, props.title), /* @__PURE__ */
|
|
8339
|
+
}, props.title), /* @__PURE__ */ import_react49.default.createElement("button", {
|
|
8266
8340
|
type: "button",
|
|
8267
8341
|
className: "hawa-absolute hawa-right-2 hawa-top-2 hawa-inline-flex hawa-h-8 hawa-w-8 hawa-rounded hawa-p-1.5 hawa-text-gray-400 hover:hawa-bg-gray-100 hover:hawa-text-gray-900 focus:hawa-ring-2 focus:hawa-ring-gray-300 dark:hawa-bg-gray-800 dark:hawa-text-gray-500 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-white",
|
|
8268
8342
|
"data-dismiss-target": "#toast-default",
|
|
@@ -8270,21 +8344,21 @@ var FeedbackRating = function(_param) {
|
|
|
8270
8344
|
onClick: function() {
|
|
8271
8345
|
return slowClose();
|
|
8272
8346
|
}
|
|
8273
|
-
}, /* @__PURE__ */
|
|
8347
|
+
}, /* @__PURE__ */ import_react49.default.createElement("svg", {
|
|
8274
8348
|
"aria-hidden": "true",
|
|
8275
8349
|
className: "hawa-h-5 hawa-w-5",
|
|
8276
8350
|
fill: "currentColor",
|
|
8277
8351
|
viewBox: "0 0 20 20"
|
|
8278
|
-
}, /* @__PURE__ */
|
|
8352
|
+
}, /* @__PURE__ */ import_react49.default.createElement("path", {
|
|
8279
8353
|
fillRule: "evenodd",
|
|
8280
8354
|
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",
|
|
8281
8355
|
clipRule: "evenodd"
|
|
8282
|
-
}))), /* @__PURE__ */
|
|
8356
|
+
}))), /* @__PURE__ */ import_react49.default.createElement("div", {
|
|
8283
8357
|
className: "hawa-mt-8"
|
|
8284
|
-
}, props.question), /* @__PURE__ */
|
|
8358
|
+
}, props.question), /* @__PURE__ */ import_react49.default.createElement("div", {
|
|
8285
8359
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded"
|
|
8286
8360
|
}, props.options && props.options.map(function(op, i) {
|
|
8287
|
-
return /* @__PURE__ */
|
|
8361
|
+
return /* @__PURE__ */ import_react49.default.createElement("span", {
|
|
8288
8362
|
key: i,
|
|
8289
8363
|
onClick: function() {
|
|
8290
8364
|
if (props.onOptionClicked) {
|
|
@@ -8303,15 +8377,15 @@ var FeedbackRating = function(_param) {
|
|
|
8303
8377
|
},
|
|
8304
8378
|
className: (0, import_clsx11.default)("hawa-w-full hawa-cursor-pointer hawa-rounded hawa-border hawa-p-4 hawa-text-center hawa-transition-all ", clickedOption === op ? "hawa-bg-gray-500 hawa-text-white" : "hawa-border hawa-bg-background hover:hawa-bg-gray-300 dark:hover:hawa-bg-gray-700")
|
|
8305
8379
|
}, op);
|
|
8306
|
-
})), props.texts && /* @__PURE__ */
|
|
8380
|
+
})), props.texts && /* @__PURE__ */ import_react49.default.createElement("div", {
|
|
8307
8381
|
className: " hawa-flex hawa-flex-row hawa-justify-between hawa-text-xs"
|
|
8308
|
-
}, /* @__PURE__ */
|
|
8382
|
+
}, /* @__PURE__ */ import_react49.default.createElement("span", null, props.texts.least), /* @__PURE__ */ import_react49.default.createElement("span", null, props.texts.most)), answered && /* @__PURE__ */ import_react49.default.createElement("div", {
|
|
8309
8383
|
className: "hawa-absolute hawa-left-0 hawa-top-0 hawa-gap-2 hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded hawa-bg-black hawa-bg-opacity-80 hawa-p-4 hawa-text-center hawa-transition-all"
|
|
8310
|
-
}, /* @__PURE__ */
|
|
8384
|
+
}, /* @__PURE__ */ import_react49.default.createElement("span", {
|
|
8311
8385
|
className: "hawa-font-bold hawa-text-white"
|
|
8312
|
-
}, "Thank you for your answer. This box will disappear in", " " + closingTimer, " seconds"), /* @__PURE__ */
|
|
8386
|
+
}, "Thank you for your answer. This box will disappear in", " " + closingTimer, " seconds"), /* @__PURE__ */ import_react49.default.createElement("div", {
|
|
8313
8387
|
className: "hawa-flex hawa-flex-row hawa-gap-2"
|
|
8314
|
-
}, /* @__PURE__ */
|
|
8388
|
+
}, /* @__PURE__ */ import_react49.default.createElement(Button, {
|
|
8315
8389
|
variant: "secondary",
|
|
8316
8390
|
onClick: function() {
|
|
8317
8391
|
return slowClose();
|
|
@@ -8319,27 +8393,27 @@ var FeedbackRating = function(_param) {
|
|
|
8319
8393
|
}, "Close")))));
|
|
8320
8394
|
};
|
|
8321
8395
|
// components/blocks/feedback/FeedbackEmoji.tsx
|
|
8322
|
-
var
|
|
8396
|
+
var import_react50 = __toESM(require("react"));
|
|
8323
8397
|
var FeedbackEmoji = function(props) {
|
|
8324
|
-
var _ref = _sliced_to_array((0,
|
|
8325
|
-
var _ref1 = _sliced_to_array((0,
|
|
8326
|
-
var _ref2 = _sliced_to_array((0,
|
|
8327
|
-
var _ref3 = _sliced_to_array((0,
|
|
8398
|
+
var _ref = _sliced_to_array((0, import_react50.useState)(null), 2), selectedEmoji = _ref[0], setSelectedEmoji = _ref[1];
|
|
8399
|
+
var _ref1 = _sliced_to_array((0, import_react50.useState)(false), 2), loadingSubmit = _ref1[0], setLoadingSubmit = _ref1[1];
|
|
8400
|
+
var _ref2 = _sliced_to_array((0, import_react50.useState)(""), 2), feedbackText = _ref2[0], setFeedbackText = _ref2[1];
|
|
8401
|
+
var _ref3 = _sliced_to_array((0, import_react50.useState)(false), 2), helperText = _ref3[0], setHelperText = _ref3[1];
|
|
8328
8402
|
var emojis = [
|
|
8329
8403
|
{
|
|
8330
|
-
icon: /* @__PURE__ */
|
|
8404
|
+
icon: /* @__PURE__ */ import_react50.default.createElement(VeryGoodEmoji, null),
|
|
8331
8405
|
value: "very-good"
|
|
8332
8406
|
},
|
|
8333
8407
|
{
|
|
8334
|
-
icon: /* @__PURE__ */
|
|
8408
|
+
icon: /* @__PURE__ */ import_react50.default.createElement(GoodEmoji, null),
|
|
8335
8409
|
value: "good"
|
|
8336
8410
|
},
|
|
8337
8411
|
{
|
|
8338
|
-
icon: /* @__PURE__ */
|
|
8412
|
+
icon: /* @__PURE__ */ import_react50.default.createElement(BadEmoji, null),
|
|
8339
8413
|
value: "bad"
|
|
8340
8414
|
},
|
|
8341
8415
|
{
|
|
8342
|
-
icon: /* @__PURE__ */
|
|
8416
|
+
icon: /* @__PURE__ */ import_react50.default.createElement(VeryBadEmoji, null),
|
|
8343
8417
|
value: "very-bad"
|
|
8344
8418
|
}
|
|
8345
8419
|
];
|
|
@@ -8410,14 +8484,14 @@ var FeedbackEmoji = function(props) {
|
|
|
8410
8484
|
return _ref.apply(this, arguments);
|
|
8411
8485
|
};
|
|
8412
8486
|
}();
|
|
8413
|
-
return /* @__PURE__ */
|
|
8487
|
+
return /* @__PURE__ */ import_react50.default.createElement("div", {
|
|
8414
8488
|
className: cn("hawa-flex hawa-flex-col hawa-gap-2 hawa-rounded hawa-border hawa-p-2 hawa-transition-all", selectedEmoji ? "hawa-h-[185px] hawa-min-w-fit" : "hawa-h-[44px] ")
|
|
8415
|
-
}, /* @__PURE__ */
|
|
8489
|
+
}, /* @__PURE__ */ import_react50.default.createElement("div", {
|
|
8416
8490
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 "
|
|
8417
|
-
}, /* @__PURE__ */
|
|
8491
|
+
}, /* @__PURE__ */ import_react50.default.createElement("div", {
|
|
8418
8492
|
className: "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-0.5 "
|
|
8419
8493
|
}, emojis.map(function(emoji, i) {
|
|
8420
|
-
return /* @__PURE__ */
|
|
8494
|
+
return /* @__PURE__ */ import_react50.default.createElement(Button, {
|
|
8421
8495
|
key: i,
|
|
8422
8496
|
onClick: function() {
|
|
8423
8497
|
if (selectedEmoji === emoji.value) {
|
|
@@ -8430,29 +8504,29 @@ var FeedbackEmoji = function(props) {
|
|
|
8430
8504
|
size: "smallIcon",
|
|
8431
8505
|
className: cn(selectedEmoji === emoji.value ? "hawa-bg-primary/10 hover:hawa-bg-primary/10 " : "hawa-text-[#666666]")
|
|
8432
8506
|
}, emoji.icon);
|
|
8433
|
-
}))), /* @__PURE__ */
|
|
8507
|
+
}))), /* @__PURE__ */ import_react50.default.createElement("div", {
|
|
8434
8508
|
className: cn("hawa-flex hawa-flex-col hawa-overflow-clip hawa-transition-all hawa-duration-500 hawa-ease-in-out ", selectedEmoji ? "hawa-visible hawa-opacity-100" : "hawa-invisible hawa-opacity-0 ")
|
|
8435
|
-
}, props.showSuccess ? /* @__PURE__ */
|
|
8509
|
+
}, props.showSuccess ? /* @__PURE__ */ import_react50.default.createElement("div", {
|
|
8436
8510
|
className: "hawa-flex hawa-h-full hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2 hawa-pt-4"
|
|
8437
|
-
}, /* @__PURE__ */
|
|
8511
|
+
}, /* @__PURE__ */ import_react50.default.createElement("div", {
|
|
8438
8512
|
className: "hawa-rounded hawa-bg-primary hawa-p-2 hawa-text-primary-foreground"
|
|
8439
|
-
}, /* @__PURE__ */
|
|
8513
|
+
}, /* @__PURE__ */ import_react50.default.createElement("svg", {
|
|
8440
8514
|
stroke: "currentColor",
|
|
8441
8515
|
fill: "currentColor",
|
|
8442
8516
|
strokeWidth: "0",
|
|
8443
8517
|
viewBox: "0 0 512 512",
|
|
8444
8518
|
height: "0.5em",
|
|
8445
8519
|
width: "0.5em"
|
|
8446
|
-
}, /* @__PURE__ */
|
|
8520
|
+
}, /* @__PURE__ */ import_react50.default.createElement("path", {
|
|
8447
8521
|
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"
|
|
8448
|
-
}))), /* @__PURE__ */
|
|
8522
|
+
}))), /* @__PURE__ */ import_react50.default.createElement("div", {
|
|
8449
8523
|
className: "hawa-text-sm hawa-flex hawa-flex-col hawa-text-center"
|
|
8450
|
-
}, /* @__PURE__ */
|
|
8524
|
+
}, /* @__PURE__ */ import_react50.default.createElement("span", null, "Your feedback has been received!"), /* @__PURE__ */ import_react50.default.createElement("span", null, "Thank you for your help"))) : /* @__PURE__ */ import_react50.default.createElement("div", {
|
|
8451
8525
|
className: "hawa-flex hawa-flex-col hawa-gap-2"
|
|
8452
|
-
}, /* @__PURE__ */
|
|
8526
|
+
}, /* @__PURE__ */ import_react50.default.createElement(Popover, {
|
|
8453
8527
|
className: "hawa-select-none hawa-p-1 hawa-text-xs ",
|
|
8454
8528
|
open: helperText,
|
|
8455
|
-
trigger: /* @__PURE__ */
|
|
8529
|
+
trigger: /* @__PURE__ */ import_react50.default.createElement(Textarea, {
|
|
8456
8530
|
className: cn("hawa-mb-2 hawa-h-full hawa-resize-none"),
|
|
8457
8531
|
placeholder: "Your feedback",
|
|
8458
8532
|
onChange: function(e) {
|
|
@@ -8463,9 +8537,9 @@ var FeedbackEmoji = function(props) {
|
|
|
8463
8537
|
console.log("changing to", e.target.value);
|
|
8464
8538
|
}
|
|
8465
8539
|
})
|
|
8466
|
-
}, /* @__PURE__ */
|
|
8540
|
+
}, /* @__PURE__ */ import_react50.default.createElement("span", {
|
|
8467
8541
|
className: "hawa-m-2"
|
|
8468
|
-
}, "Please enter your feedback"), " "), /* @__PURE__ */
|
|
8542
|
+
}, "Please enter your feedback"), " "), /* @__PURE__ */ import_react50.default.createElement(Button, {
|
|
8469
8543
|
isLoading: loadingSubmit,
|
|
8470
8544
|
onClick: onFeedbackSubmit,
|
|
8471
8545
|
className: "hawa-w-full",
|
|
@@ -8473,20 +8547,20 @@ var FeedbackEmoji = function(props) {
|
|
|
8473
8547
|
}, "Submit"))));
|
|
8474
8548
|
};
|
|
8475
8549
|
var VeryGoodEmoji = function() {
|
|
8476
|
-
return /* @__PURE__ */
|
|
8550
|
+
return /* @__PURE__ */ import_react50.default.createElement("svg", {
|
|
8477
8551
|
fill: "none",
|
|
8478
8552
|
height: "16",
|
|
8479
8553
|
viewBox: "0 0 16 16",
|
|
8480
8554
|
width: "16",
|
|
8481
8555
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8482
|
-
}, /* @__PURE__ */
|
|
8556
|
+
}, /* @__PURE__ */ import_react50.default.createElement("g", {
|
|
8483
8557
|
clipPath: "url(#clip0_53_166)"
|
|
8484
|
-
}, /* @__PURE__ */
|
|
8558
|
+
}, /* @__PURE__ */ import_react50.default.createElement("path", {
|
|
8485
8559
|
clipRule: "evenodd",
|
|
8486
8560
|
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM4.5 8.97498H3.875V9.59998C3.875 11.4747 5.81046 12.8637 7.99817 12.8637C10.1879 12.8637 12.125 11.4832 12.125 9.59998V8.97498H11.5H4.5ZM7.99817 11.6137C6.59406 11.6137 5.63842 10.9482 5.28118 10.225H10.7202C10.3641 10.9504 9.40797 11.6137 7.99817 11.6137Z",
|
|
8487
8561
|
fill: "currentColor",
|
|
8488
8562
|
fillRule: "evenodd"
|
|
8489
|
-
}), /* @__PURE__ */
|
|
8563
|
+
}), /* @__PURE__ */ import_react50.default.createElement("path", {
|
|
8490
8564
|
clipRule: "evenodd",
|
|
8491
8565
|
d: "M6.15295 4.92093L5.375 3.5L4.59705 4.92093L3 5.21885L4.11625 6.39495L3.90717 8L5.375 7.30593L6.84283 8L6.63375 6.39495L7.75 5.21885L6.15295 4.92093ZM11.403 4.92093L10.625 3.5L9.84705 4.92093L8.25 5.21885L9.36625 6.39495L9.15717 8L10.625 7.30593L12.0928 8L11.8837 6.39495L13 5.21885L11.403 4.92093Z",
|
|
8492
8566
|
fill: "#FF990A",
|
|
@@ -8494,15 +8568,15 @@ var VeryGoodEmoji = function() {
|
|
|
8494
8568
|
})));
|
|
8495
8569
|
};
|
|
8496
8570
|
var GoodEmoji = function() {
|
|
8497
|
-
return /* @__PURE__ */
|
|
8571
|
+
return /* @__PURE__ */ import_react50.default.createElement("svg", {
|
|
8498
8572
|
fill: "none",
|
|
8499
8573
|
height: "16",
|
|
8500
8574
|
viewBox: "0 0 16 16",
|
|
8501
8575
|
width: "16",
|
|
8502
8576
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8503
|
-
}, /* @__PURE__ */
|
|
8577
|
+
}, /* @__PURE__ */ import_react50.default.createElement("g", {
|
|
8504
8578
|
clipPath: "url(#clip0_53_167)"
|
|
8505
|
-
}, /* @__PURE__ */
|
|
8579
|
+
}, /* @__PURE__ */ import_react50.default.createElement("path", {
|
|
8506
8580
|
clipRule: "evenodd",
|
|
8507
8581
|
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.5249 10.8478L11.8727 10.3286L10.8342 9.6329L10.4863 10.1522C9.94904 10.9543 9.0363 11.4802 8.00098 11.4802C6.96759 11.4802 6.05634 10.9563 5.51863 10.1567L5.16986 9.63804L4.13259 10.3356L4.48137 10.8542C5.2414 11.9844 6.53398 12.7302 8.00098 12.7302C9.47073 12.7302 10.7654 11.9816 11.5249 10.8478ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",
|
|
8508
8582
|
fill: "currentColor",
|
|
@@ -8510,15 +8584,15 @@ var GoodEmoji = function() {
|
|
|
8510
8584
|
})));
|
|
8511
8585
|
};
|
|
8512
8586
|
var BadEmoji = function() {
|
|
8513
|
-
return /* @__PURE__ */
|
|
8587
|
+
return /* @__PURE__ */ import_react50.default.createElement("svg", {
|
|
8514
8588
|
fill: "none",
|
|
8515
8589
|
height: "16",
|
|
8516
8590
|
viewBox: "0 0 16 16",
|
|
8517
8591
|
width: "16",
|
|
8518
8592
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8519
|
-
}, /* @__PURE__ */
|
|
8593
|
+
}, /* @__PURE__ */ import_react50.default.createElement("g", {
|
|
8520
8594
|
clipPath: "url(#clip0_53_152)"
|
|
8521
|
-
}, /* @__PURE__ */
|
|
8595
|
+
}, /* @__PURE__ */ import_react50.default.createElement("path", {
|
|
8522
8596
|
clipRule: "evenodd",
|
|
8523
8597
|
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM5.75 7.75C6.30228 7.75 6.75 7.30228 6.75 6.75C6.75 6.19772 6.30228 5.75 5.75 5.75C5.19772 5.75 4.75 6.19772 4.75 6.75C4.75 7.30228 5.19772 7.75 5.75 7.75ZM11.25 6.75C11.25 7.30228 10.8023 7.75 10.25 7.75C9.69771 7.75 9.25 7.30228 9.25 6.75C9.25 6.19772 9.69771 5.75 10.25 5.75C10.8023 5.75 11.25 6.19772 11.25 6.75ZM11.5249 11.2622L11.8727 11.7814L10.8342 12.4771L10.4863 11.9578C9.94904 11.1557 9.0363 10.6298 8.00098 10.6298C6.96759 10.6298 6.05634 11.1537 5.51863 11.9533L5.16986 12.4719L4.13259 11.7744L4.48137 11.2558C5.2414 10.1256 6.53398 9.37982 8.00098 9.37982C9.47073 9.37982 10.7654 10.1284 11.5249 11.2622Z",
|
|
8524
8598
|
fill: "currentColor",
|
|
@@ -8526,18 +8600,18 @@ var BadEmoji = function() {
|
|
|
8526
8600
|
})));
|
|
8527
8601
|
};
|
|
8528
8602
|
var VeryBadEmoji = function() {
|
|
8529
|
-
return /* @__PURE__ */
|
|
8603
|
+
return /* @__PURE__ */ import_react50.default.createElement("svg", {
|
|
8530
8604
|
fill: "none",
|
|
8531
8605
|
height: "16",
|
|
8532
8606
|
viewBox: "0 0 16 16",
|
|
8533
8607
|
width: "16",
|
|
8534
8608
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8535
|
-
}, /* @__PURE__ */
|
|
8609
|
+
}, /* @__PURE__ */ import_react50.default.createElement("g", {
|
|
8536
8610
|
clipPath: "url(#clip0_53_151)"
|
|
8537
|
-
}, /* @__PURE__ */
|
|
8611
|
+
}, /* @__PURE__ */ import_react50.default.createElement("path", {
|
|
8538
8612
|
d: "M11.841 12.0225C12.7197 12.9324 12.7197 14.4077 11.841 15.3176C10.9623 16.2275 9.53769 16.2275 8.65901 15.3176C7.78033 14.4077 7.78033 12.9324 8.65901 12.0225L10.25 10.375L11.841 12.0225Z",
|
|
8539
8613
|
fill: "#0070F3"
|
|
8540
|
-
}), /* @__PURE__ */
|
|
8614
|
+
}), /* @__PURE__ */ import_react50.default.createElement("path", {
|
|
8541
8615
|
clipRule: "evenodd",
|
|
8542
8616
|
d: "M8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 10.9668 3.48826 13.4711 6.20649 14.2496L5.79351 15.6916C2.44895 14.7338 0 11.6539 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 9.4652 15.6054 10.8405 14.9162 12.023L13.6203 11.2677C14.1794 10.3083 14.5 9.19272 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",
|
|
8543
8617
|
fill: "currentColor",
|
|
@@ -8545,7 +8619,7 @@ var VeryBadEmoji = function() {
|
|
|
8545
8619
|
})));
|
|
8546
8620
|
};
|
|
8547
8621
|
// components/blocks/feedback/FeedbackForm.tsx
|
|
8548
|
-
var
|
|
8622
|
+
var import_react51 = __toESM(require("react"));
|
|
8549
8623
|
var import_react_hook_form7 = require("react-hook-form");
|
|
8550
8624
|
var import_zod7 = require("@hookform/resolvers/zod");
|
|
8551
8625
|
var z7 = __toESM(require("zod"));
|
|
@@ -8566,9 +8640,9 @@ var FeedbackForm = function(props) {
|
|
|
8566
8640
|
var _ref = (0, import_react_hook_form7.useForm)({
|
|
8567
8641
|
resolver: (0, import_zod7.zodResolver)(formSchema)
|
|
8568
8642
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState;
|
|
8569
|
-
return /* @__PURE__ */
|
|
8643
|
+
return /* @__PURE__ */ import_react51.default.createElement(Card, null, /* @__PURE__ */ import_react51.default.createElement(CardContent, {
|
|
8570
8644
|
headless: true
|
|
8571
|
-
}, /* @__PURE__ */
|
|
8645
|
+
}, /* @__PURE__ */ import_react51.default.createElement("form", {
|
|
8572
8646
|
noValidate: true,
|
|
8573
8647
|
onSubmit: handleSubmit(function(e) {
|
|
8574
8648
|
if (props.onSubmit) {
|
|
@@ -8578,13 +8652,13 @@ var FeedbackForm = function(props) {
|
|
|
8578
8652
|
}
|
|
8579
8653
|
}),
|
|
8580
8654
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
8581
|
-
}, /* @__PURE__ */
|
|
8655
|
+
}, /* @__PURE__ */ import_react51.default.createElement(Label2, null, (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.requestType), /* @__PURE__ */ import_react51.default.createElement(import_react_hook_form7.Controller, {
|
|
8582
8656
|
name: "requestType",
|
|
8583
8657
|
control: control,
|
|
8584
8658
|
render: function(param) {
|
|
8585
8659
|
var field = param.field;
|
|
8586
8660
|
var _formState_errors_requestType_message, _formState_errors_requestType;
|
|
8587
|
-
return /* @__PURE__ */
|
|
8661
|
+
return /* @__PURE__ */ import_react51.default.createElement(Select, _object_spread_props(_object_spread({}, field), {
|
|
8588
8662
|
onChange: function(option) {
|
|
8589
8663
|
return field.onChange(option.value);
|
|
8590
8664
|
},
|
|
@@ -8592,70 +8666,70 @@ var FeedbackForm = function(props) {
|
|
|
8592
8666
|
helperText: (_formState_errors_requestType = formState.errors.requestType) === null || _formState_errors_requestType === void 0 ? void 0 : (_formState_errors_requestType_message = _formState_errors_requestType.message) === null || _formState_errors_requestType_message === void 0 ? void 0 : _formState_errors_requestType_message.toString()
|
|
8593
8667
|
}));
|
|
8594
8668
|
}
|
|
8595
|
-
}), /* @__PURE__ */
|
|
8669
|
+
}), /* @__PURE__ */ import_react51.default.createElement(Label2, null, props.texts.description), /* @__PURE__ */ import_react51.default.createElement(import_react_hook_form7.Controller, {
|
|
8596
8670
|
name: "description",
|
|
8597
8671
|
control: control,
|
|
8598
8672
|
render: function(param) {
|
|
8599
8673
|
var field = param.field;
|
|
8600
8674
|
var _formState_errors_description_message, _formState_errors_description;
|
|
8601
|
-
return /* @__PURE__ */
|
|
8675
|
+
return /* @__PURE__ */ import_react51.default.createElement(Textarea, _object_spread_props(_object_spread({}, field), {
|
|
8602
8676
|
helperText: formState.errors.description && ((_formState_errors_description = formState.errors.description) === null || _formState_errors_description === void 0 ? void 0 : (_formState_errors_description_message = _formState_errors_description.message) === null || _formState_errors_description_message === void 0 ? void 0 : _formState_errors_description_message.toString())
|
|
8603
8677
|
}));
|
|
8604
8678
|
}
|
|
8605
|
-
}), /* @__PURE__ */
|
|
8679
|
+
}), /* @__PURE__ */ import_react51.default.createElement(Button, {
|
|
8606
8680
|
type: "submit"
|
|
8607
8681
|
}, (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.submit))));
|
|
8608
8682
|
};
|
|
8609
8683
|
// components/blocks/misc/LegalTexts.tsx
|
|
8610
|
-
var
|
|
8684
|
+
var import_react52 = __toESM(require("react"));
|
|
8611
8685
|
var LegalTexts = function(_param) {
|
|
8612
8686
|
var tabs = _param.tabs, props = _object_without_properties(_param, [
|
|
8613
8687
|
"tabs"
|
|
8614
8688
|
]);
|
|
8615
|
-
return /* @__PURE__ */
|
|
8689
|
+
return /* @__PURE__ */ import_react52.default.createElement(Tabs, {
|
|
8616
8690
|
value: props.activeTab,
|
|
8617
8691
|
onValueChange: props.handleTabChange,
|
|
8618
8692
|
defaultValue: props.defaultTab || tabs[0].value,
|
|
8619
8693
|
dir: props.direction
|
|
8620
|
-
}, /* @__PURE__ */
|
|
8694
|
+
}, /* @__PURE__ */ import_react52.default.createElement(TabsList, {
|
|
8621
8695
|
className: "hawa-w-full"
|
|
8622
8696
|
}, tabs.map(function(tab, index) {
|
|
8623
|
-
return /* @__PURE__ */
|
|
8697
|
+
return /* @__PURE__ */ import_react52.default.createElement(TabsTrigger, {
|
|
8624
8698
|
key: index,
|
|
8625
8699
|
value: tab.value
|
|
8626
8700
|
}, tab.title);
|
|
8627
8701
|
})), tabs.map(function(tab, index) {
|
|
8628
|
-
return /* @__PURE__ */
|
|
8702
|
+
return /* @__PURE__ */ import_react52.default.createElement(TabsContent, {
|
|
8629
8703
|
key: index,
|
|
8630
8704
|
value: tab.value
|
|
8631
|
-
}, /* @__PURE__ */
|
|
8705
|
+
}, /* @__PURE__ */ import_react52.default.createElement(ScrollArea, {
|
|
8632
8706
|
className: cn("hawa-p-4 hawa-rounded hawa-bg-muted hawa-border", props.scrollAreaClassName)
|
|
8633
8707
|
}, tab.content));
|
|
8634
8708
|
}));
|
|
8635
8709
|
};
|
|
8636
8710
|
// components/blocks/misc/EmptyState.tsx
|
|
8637
|
-
var
|
|
8711
|
+
var import_react53 = __toESM(require("react"));
|
|
8638
8712
|
var EmptyState = function(param) {
|
|
8639
8713
|
var texts = param.texts, onActionClick = param.onActionClick;
|
|
8640
8714
|
var _texts_youreCaughtUp, _texts_actionText;
|
|
8641
|
-
return /* @__PURE__ */
|
|
8715
|
+
return /* @__PURE__ */ import_react53.default.createElement(Card, null, /* @__PURE__ */ import_react53.default.createElement(CardContent, {
|
|
8642
8716
|
headless: true
|
|
8643
|
-
}, /* @__PURE__ */
|
|
8717
|
+
}, /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
8644
8718
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center "
|
|
8645
|
-
}, /* @__PURE__ */
|
|
8719
|
+
}, /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
8646
8720
|
className: "hawa-flex hawa-h-10 hawa-w-10 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground"
|
|
8647
|
-
}, /* @__PURE__ */
|
|
8721
|
+
}, /* @__PURE__ */ import_react53.default.createElement("svg", {
|
|
8648
8722
|
stroke: "currentColor",
|
|
8649
8723
|
fill: "currentColor",
|
|
8650
8724
|
strokeWidth: "0",
|
|
8651
8725
|
viewBox: "0 0 512 512",
|
|
8652
8726
|
height: "0.35em",
|
|
8653
8727
|
width: "0.35em"
|
|
8654
|
-
}, /* @__PURE__ */
|
|
8728
|
+
}, /* @__PURE__ */ import_react53.default.createElement("path", {
|
|
8655
8729
|
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"
|
|
8656
|
-
}))), /* @__PURE__ */
|
|
8730
|
+
}))), /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
8657
8731
|
className: "hawa-m-2 hawa-text-xl hawa-font-bold"
|
|
8658
|
-
}, (_texts_youreCaughtUp = texts === null || texts === void 0 ? void 0 : texts.youreCaughtUp) !== null && _texts_youreCaughtUp !== void 0 ? _texts_youreCaughtUp : "You're all caught up"))), /* @__PURE__ */
|
|
8732
|
+
}, (_texts_youreCaughtUp = texts === null || texts === void 0 ? void 0 : texts.youreCaughtUp) !== null && _texts_youreCaughtUp !== void 0 ? _texts_youreCaughtUp : "You're all caught up"))), /* @__PURE__ */ import_react53.default.createElement(CardFooter, null, /* @__PURE__ */ import_react53.default.createElement(Button, {
|
|
8659
8733
|
className: "hawa-w-full",
|
|
8660
8734
|
onClick: function() {
|
|
8661
8735
|
return onActionClick();
|
|
@@ -8663,36 +8737,36 @@ var EmptyState = function(param) {
|
|
|
8663
8737
|
}, (_texts_actionText = texts === null || texts === void 0 ? void 0 : texts.actionText) !== null && _texts_actionText !== void 0 ? _texts_actionText : "Go Home")));
|
|
8664
8738
|
};
|
|
8665
8739
|
// components/blocks/misc/Testimonial.tsx
|
|
8666
|
-
var
|
|
8740
|
+
var import_react54 = __toESM(require("react"));
|
|
8667
8741
|
var Testimonial = function(props) {
|
|
8668
|
-
return /* @__PURE__ */
|
|
8742
|
+
return /* @__PURE__ */ import_react54.default.createElement(Card, null, /* @__PURE__ */ import_react54.default.createElement(CardContent, {
|
|
8669
8743
|
headless: true
|
|
8670
|
-
}, /* @__PURE__ */
|
|
8744
|
+
}, /* @__PURE__ */ import_react54.default.createElement("div", null, /* @__PURE__ */ import_react54.default.createElement("p", {
|
|
8671
8745
|
className: "mb-4 max-w-sm"
|
|
8672
|
-
}, "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__ */
|
|
8746
|
+
}, "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__ */ import_react54.default.createElement("div", {
|
|
8673
8747
|
className: "flex flex-row gap-4"
|
|
8674
|
-
}, /* @__PURE__ */
|
|
8748
|
+
}, /* @__PURE__ */ import_react54.default.createElement("svg", {
|
|
8675
8749
|
width: "48",
|
|
8676
8750
|
height: "48",
|
|
8677
8751
|
viewBox: "0 0 48 48",
|
|
8678
8752
|
fill: "none"
|
|
8679
|
-
}, /* @__PURE__ */
|
|
8753
|
+
}, /* @__PURE__ */ import_react54.default.createElement("rect", {
|
|
8680
8754
|
width: "48",
|
|
8681
8755
|
height: "48",
|
|
8682
8756
|
rx: "24",
|
|
8683
8757
|
fill: "#45BE8B"
|
|
8684
|
-
}), /* @__PURE__ */
|
|
8758
|
+
}), /* @__PURE__ */ import_react54.default.createElement("path", {
|
|
8685
8759
|
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",
|
|
8686
8760
|
fill: "#FFFFFF"
|
|
8687
|
-
}), /* @__PURE__ */
|
|
8761
|
+
}), /* @__PURE__ */ import_react54.default.createElement("path", {
|
|
8688
8762
|
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",
|
|
8689
8763
|
fill: "#FFFFFF"
|
|
8690
|
-
})), /* @__PURE__ */
|
|
8764
|
+
})), /* @__PURE__ */ import_react54.default.createElement("span", {
|
|
8691
8765
|
className: "border border-l "
|
|
8692
|
-
}), " ", /* @__PURE__ */
|
|
8766
|
+
}), " ", /* @__PURE__ */ import_react54.default.createElement("div", null, /* @__PURE__ */ import_react54.default.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ import_react54.default.createElement("div", null, " Chief Information Security Officer")))));
|
|
8693
8767
|
};
|
|
8694
8768
|
// components/blocks/misc/LeadGenerator.tsx
|
|
8695
|
-
var
|
|
8769
|
+
var import_react55 = __toESM(require("react"));
|
|
8696
8770
|
var import_react_hook_form8 = require("react-hook-form");
|
|
8697
8771
|
var LeadGenerator = function(param) {
|
|
8698
8772
|
var texts = param.texts, submitHandler = param.submitHandler;
|
|
@@ -8705,11 +8779,11 @@ var LeadGenerator = function(param) {
|
|
|
8705
8779
|
}
|
|
8706
8780
|
};
|
|
8707
8781
|
var _texts_submit;
|
|
8708
|
-
return /* @__PURE__ */
|
|
8782
|
+
return /* @__PURE__ */ import_react55.default.createElement(Card, null, /* @__PURE__ */ import_react55.default.createElement(CardHeader, null, /* @__PURE__ */ import_react55.default.createElement(CardTitle, null, texts === null || texts === void 0 ? void 0 : texts.title), /* @__PURE__ */ import_react55.default.createElement(CardDescription, null, texts === null || texts === void 0 ? void 0 : texts.subtitle)), /* @__PURE__ */ import_react55.default.createElement(CardContent, null, /* @__PURE__ */ import_react55.default.createElement("form", {
|
|
8709
8783
|
noValidate: true,
|
|
8710
8784
|
className: "hawa-flex hawa-flex-row hawa-gap-2",
|
|
8711
8785
|
onSubmit: handleSubmit(onSubmit)
|
|
8712
|
-
}, /* @__PURE__ */
|
|
8786
|
+
}, /* @__PURE__ */ import_react55.default.createElement(import_react_hook_form8.Controller, {
|
|
8713
8787
|
name: "email",
|
|
8714
8788
|
control: control,
|
|
8715
8789
|
rules: {
|
|
@@ -8722,32 +8796,32 @@ var LeadGenerator = function(param) {
|
|
|
8722
8796
|
defaultValue: "",
|
|
8723
8797
|
render: function(param) {
|
|
8724
8798
|
var field = param.field;
|
|
8725
|
-
return /* @__PURE__ */
|
|
8799
|
+
return /* @__PURE__ */ import_react55.default.createElement(Input, _object_spread_props(_object_spread({}, field), {
|
|
8726
8800
|
type: "email",
|
|
8727
8801
|
placeholder: "example@sikka.io"
|
|
8728
8802
|
}));
|
|
8729
8803
|
}
|
|
8730
|
-
}), /* @__PURE__ */
|
|
8804
|
+
}), /* @__PURE__ */ import_react55.default.createElement(Button, {
|
|
8731
8805
|
type: "submit",
|
|
8732
8806
|
disabled: !formState.isValid
|
|
8733
8807
|
}, (_texts_submit = texts === null || texts === void 0 ? void 0 : texts.submit) !== null && _texts_submit !== void 0 ? _texts_submit : "Submit"))));
|
|
8734
8808
|
};
|
|
8735
8809
|
// components/blocks/misc/Announcement.tsx
|
|
8736
|
-
var
|
|
8810
|
+
var import_react56 = __toESM(require("react"));
|
|
8737
8811
|
var Announcement = function(_param) {
|
|
8738
8812
|
var onActionClick = _param.onActionClick, props = _object_without_properties(_param, [
|
|
8739
8813
|
"onActionClick"
|
|
8740
8814
|
]);
|
|
8741
|
-
return /* @__PURE__ */
|
|
8815
|
+
return /* @__PURE__ */ import_react56.default.createElement(Card, null, /* @__PURE__ */ import_react56.default.createElement(CardContent, {
|
|
8742
8816
|
headless: true,
|
|
8743
8817
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
|
8744
|
-
}, /* @__PURE__ */
|
|
8818
|
+
}, /* @__PURE__ */ import_react56.default.createElement("div", {
|
|
8745
8819
|
className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center "
|
|
8746
|
-
}, /* @__PURE__ */
|
|
8820
|
+
}, /* @__PURE__ */ import_react56.default.createElement("span", {
|
|
8747
8821
|
className: "hawa-text-lg hawa-font-bold"
|
|
8748
|
-
}, props.title), /* @__PURE__ */
|
|
8822
|
+
}, props.title), /* @__PURE__ */ import_react56.default.createElement("span", {
|
|
8749
8823
|
className: "hawa-text-sm"
|
|
8750
|
-
}, props.subtitle)), /* @__PURE__ */
|
|
8824
|
+
}, props.subtitle)), /* @__PURE__ */ import_react56.default.createElement(Button, {
|
|
8751
8825
|
onClick: function() {
|
|
8752
8826
|
return onActionClick();
|
|
8753
8827
|
},
|
|
@@ -8755,56 +8829,56 @@ var Announcement = function(_param) {
|
|
|
8755
8829
|
}, props.actionText)));
|
|
8756
8830
|
};
|
|
8757
8831
|
// components/blocks/misc/NotFound.tsx
|
|
8758
|
-
var
|
|
8832
|
+
var import_react57 = __toESM(require("react"));
|
|
8759
8833
|
var NotFound = function(param) {
|
|
8760
8834
|
var _param_variant = param.variant, variant = _param_variant === void 0 ? "contained" : _param_variant, texts = param.texts;
|
|
8761
8835
|
var _texts_pageNotFound, _texts_ifLost, _texts_home;
|
|
8762
|
-
return /* @__PURE__ */
|
|
8836
|
+
return /* @__PURE__ */ import_react57.default.createElement(Card, null, /* @__PURE__ */ import_react57.default.createElement(CardContent, {
|
|
8763
8837
|
headless: true
|
|
8764
|
-
}, /* @__PURE__ */
|
|
8838
|
+
}, /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
8765
8839
|
className: "hawa-flex hawa-flex-col hawa-items-center dark:hawa-text-white"
|
|
8766
|
-
}, /* @__PURE__ */
|
|
8840
|
+
}, /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
8767
8841
|
className: "hawa-text-center hawa-text-6xl hawa-font-bold "
|
|
8768
|
-
}, "404"), /* @__PURE__ */
|
|
8842
|
+
}, "404"), /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
8769
8843
|
className: "hawa-m-2 hawa-text-center hawa-text-xl hawa-font-bold "
|
|
8770
|
-
}, (_texts_pageNotFound = texts === null || texts === void 0 ? void 0 : texts.pageNotFound) !== null && _texts_pageNotFound !== void 0 ? _texts_pageNotFound : "Page Not Found"), /* @__PURE__ */
|
|
8844
|
+
}, (_texts_pageNotFound = texts === null || texts === void 0 ? void 0 : texts.pageNotFound) !== null && _texts_pageNotFound !== void 0 ? _texts_pageNotFound : "Page Not Found"), /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
8771
8845
|
className: "hawa-mb-4 hawa-text-center"
|
|
8772
|
-
}, (_texts_ifLost = texts === null || texts === void 0 ? void 0 : texts.ifLost) !== null && _texts_ifLost !== void 0 ? _texts_ifLost : /* @__PURE__ */
|
|
8846
|
+
}, (_texts_ifLost = texts === null || texts === void 0 ? void 0 : texts.ifLost) !== null && _texts_ifLost !== void 0 ? _texts_ifLost : /* @__PURE__ */ import_react57.default.createElement(import_react57.default.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ import_react57.default.createElement("span", {
|
|
8773
8847
|
className: "clickable-link"
|
|
8774
|
-
}, "help@sikka.io"))), /* @__PURE__ */
|
|
8848
|
+
}, "help@sikka.io"))), /* @__PURE__ */ import_react57.default.createElement(Button, {
|
|
8775
8849
|
className: "hawa-w-full"
|
|
8776
8850
|
}, (_texts_home = texts === null || texts === void 0 ? void 0 : texts.home) !== null && _texts_home !== void 0 ? _texts_home : "Home"))));
|
|
8777
8851
|
};
|
|
8778
8852
|
// components/blocks/misc/NoPermission.tsx
|
|
8779
|
-
var
|
|
8853
|
+
var import_react58 = __toESM(require("react"));
|
|
8780
8854
|
var NoPermission = function(param) {
|
|
8781
8855
|
var texts = param.texts;
|
|
8782
8856
|
var _texts_title, _texts_subtitle;
|
|
8783
|
-
return /* @__PURE__ */
|
|
8857
|
+
return /* @__PURE__ */ import_react58.default.createElement(Card, null, /* @__PURE__ */ import_react58.default.createElement(CardContent, {
|
|
8784
8858
|
headless: true
|
|
8785
|
-
}, /* @__PURE__ */
|
|
8859
|
+
}, /* @__PURE__ */ import_react58.default.createElement("div", {
|
|
8786
8860
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center"
|
|
8787
|
-
}, /* @__PURE__ */
|
|
8861
|
+
}, /* @__PURE__ */ import_react58.default.createElement("div", {
|
|
8788
8862
|
className: "hawa-flex hawa-h-10 hawa-w-10 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground"
|
|
8789
|
-
}, /* @__PURE__ */
|
|
8863
|
+
}, /* @__PURE__ */ import_react58.default.createElement("svg", {
|
|
8790
8864
|
stroke: "currentColor",
|
|
8791
8865
|
fill: "currentColor",
|
|
8792
8866
|
strokeWidth: "0",
|
|
8793
8867
|
viewBox: "0 0 448 512",
|
|
8794
8868
|
height: "0.35em",
|
|
8795
8869
|
width: "0.35em"
|
|
8796
|
-
}, /* @__PURE__ */
|
|
8870
|
+
}, /* @__PURE__ */ import_react58.default.createElement("path", {
|
|
8797
8871
|
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"
|
|
8798
|
-
})), " "), /* @__PURE__ */
|
|
8872
|
+
})), " "), /* @__PURE__ */ import_react58.default.createElement("div", {
|
|
8799
8873
|
className: "hawa-m-2 hawa-text-xl hawa-font-bold"
|
|
8800
|
-
}, (_texts_title = texts === null || texts === void 0 ? void 0 : texts.title) !== null && _texts_title !== void 0 ? _texts_title : "You don't have permission"), /* @__PURE__ */
|
|
8874
|
+
}, (_texts_title = texts === null || texts === void 0 ? void 0 : texts.title) !== null && _texts_title !== void 0 ? _texts_title : "You don't have permission"), /* @__PURE__ */ import_react58.default.createElement("div", null, (_texts_subtitle = texts === null || texts === void 0 ? void 0 : texts.subtitle) !== null && _texts_subtitle !== void 0 ? _texts_subtitle : "If you think this is a problem please contact your administrator or our customer support"))));
|
|
8801
8875
|
};
|
|
8802
8876
|
// components/blocks/pricing/PricingPlans.tsx
|
|
8803
|
-
var
|
|
8877
|
+
var import_react59 = __toESM(require("react"));
|
|
8804
8878
|
var PricingPlans = function(props) {
|
|
8805
|
-
return /* @__PURE__ */
|
|
8879
|
+
return /* @__PURE__ */ import_react59.default.createElement("div", null, /* @__PURE__ */ import_react59.default.createElement("div", {
|
|
8806
8880
|
className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between"
|
|
8807
|
-
}, /* @__PURE__ */
|
|
8881
|
+
}, /* @__PURE__ */ import_react59.default.createElement(Radio, {
|
|
8808
8882
|
design: "tabs",
|
|
8809
8883
|
defaultValue: props.currentCycle,
|
|
8810
8884
|
options: props.billingCycles,
|
|
@@ -8813,7 +8887,7 @@ var PricingPlans = function(props) {
|
|
|
8813
8887
|
props.onCycleChange(e);
|
|
8814
8888
|
}
|
|
8815
8889
|
}
|
|
8816
|
-
}), /* @__PURE__ */
|
|
8890
|
+
}), /* @__PURE__ */ import_react59.default.createElement(Radio, {
|
|
8817
8891
|
design: "tabs",
|
|
8818
8892
|
defaultValue: props.currentCurrency,
|
|
8819
8893
|
options: props.currencies,
|
|
@@ -8822,10 +8896,10 @@ var PricingPlans = function(props) {
|
|
|
8822
8896
|
props.onCurrencyChange(e);
|
|
8823
8897
|
}
|
|
8824
8898
|
}
|
|
8825
|
-
})), /* @__PURE__ */
|
|
8899
|
+
})), /* @__PURE__ */ import_react59.default.createElement("div", {
|
|
8826
8900
|
className: "hawa-flex hawa-flex-row hawa-justify-between"
|
|
8827
8901
|
}, props.plans.map(function(plan, index) {
|
|
8828
|
-
return /* @__PURE__ */
|
|
8902
|
+
return /* @__PURE__ */ import_react59.default.createElement(PricingCard, _object_spread_props(_object_spread({
|
|
8829
8903
|
key: index,
|
|
8830
8904
|
onPlanClicked: function() {
|
|
8831
8905
|
if (props.onPlanClicked) {
|
|
@@ -8846,26 +8920,26 @@ var PricingPlans = function(props) {
|
|
|
8846
8920
|
})));
|
|
8847
8921
|
};
|
|
8848
8922
|
// components/blocks/pricing/ComparingPlans.tsx
|
|
8849
|
-
var
|
|
8923
|
+
var import_react60 = __toESM(require("react"));
|
|
8850
8924
|
var CheckMark = function() {
|
|
8851
|
-
return /* @__PURE__ */
|
|
8925
|
+
return /* @__PURE__ */ import_react60.default.createElement("svg", {
|
|
8852
8926
|
className: "hawa-h-5 hawa-w-5 hawa-text-green-500",
|
|
8853
8927
|
"aria-hidden": "true",
|
|
8854
8928
|
fill: "currentColor",
|
|
8855
8929
|
viewBox: "0 0 20 20"
|
|
8856
|
-
}, /* @__PURE__ */
|
|
8930
|
+
}, /* @__PURE__ */ import_react60.default.createElement("path", {
|
|
8857
8931
|
fillRule: "evenodd",
|
|
8858
8932
|
d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
|
|
8859
8933
|
clipRule: "evenodd"
|
|
8860
8934
|
}));
|
|
8861
8935
|
};
|
|
8862
8936
|
var UncheckMark = function() {
|
|
8863
|
-
return /* @__PURE__ */
|
|
8937
|
+
return /* @__PURE__ */ import_react60.default.createElement("svg", {
|
|
8864
8938
|
className: "hawa-h-5 hawa-w-5 hawa-text-red-500",
|
|
8865
8939
|
"aria-hidden": "true",
|
|
8866
8940
|
fill: "currentColor",
|
|
8867
8941
|
viewBox: "0 0 20 20"
|
|
8868
|
-
}, /* @__PURE__ */
|
|
8942
|
+
}, /* @__PURE__ */ import_react60.default.createElement("path", {
|
|
8869
8943
|
fillRule: "evenodd",
|
|
8870
8944
|
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",
|
|
8871
8945
|
clipRule: "evenodd"
|
|
@@ -8873,14 +8947,14 @@ var UncheckMark = function() {
|
|
|
8873
8947
|
};
|
|
8874
8948
|
var ComparingPlans = function(props) {
|
|
8875
8949
|
var _props_plans;
|
|
8876
|
-
var _ref = _sliced_to_array((0,
|
|
8877
|
-
var _ref1 = _sliced_to_array((0,
|
|
8878
|
-
return /* @__PURE__ */
|
|
8950
|
+
var _ref = _sliced_to_array((0, import_react60.useState)("sar"), 2), currentCurrency = _ref[0], setCurrentCurrency = _ref[1];
|
|
8951
|
+
var _ref1 = _sliced_to_array((0, import_react60.useState)("month"), 2), currentCycle = _ref1[0], setCurrentCycle = _ref1[1];
|
|
8952
|
+
return /* @__PURE__ */ import_react60.default.createElement("div", {
|
|
8879
8953
|
id: "detailed-pricing",
|
|
8880
8954
|
className: "hawa-w-full hawa-overflow-x-auto"
|
|
8881
|
-
}, /* @__PURE__ */
|
|
8955
|
+
}, /* @__PURE__ */ import_react60.default.createElement("div", {
|
|
8882
8956
|
className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between"
|
|
8883
|
-
}, /* @__PURE__ */
|
|
8957
|
+
}, /* @__PURE__ */ import_react60.default.createElement(Radio, {
|
|
8884
8958
|
design: "tabs",
|
|
8885
8959
|
defaultValue: currentCycle,
|
|
8886
8960
|
options: props.billingCycles,
|
|
@@ -8891,7 +8965,7 @@ var ComparingPlans = function(props) {
|
|
|
8891
8965
|
console.log("onCycleChange was not provided");
|
|
8892
8966
|
}
|
|
8893
8967
|
}
|
|
8894
|
-
}), /* @__PURE__ */
|
|
8968
|
+
}), /* @__PURE__ */ import_react60.default.createElement(Radio, {
|
|
8895
8969
|
design: "tabs",
|
|
8896
8970
|
defaultValue: currentCurrency,
|
|
8897
8971
|
options: props.currencies,
|
|
@@ -8902,56 +8976,56 @@ var ComparingPlans = function(props) {
|
|
|
8902
8976
|
console.log("onCurrencyChange was not provided");
|
|
8903
8977
|
}
|
|
8904
8978
|
}
|
|
8905
|
-
})), /* @__PURE__ */
|
|
8979
|
+
})), /* @__PURE__ */ import_react60.default.createElement("div", {
|
|
8906
8980
|
className: " hawa-overflow-hidden hawa-rounded"
|
|
8907
|
-
}, /* @__PURE__ */
|
|
8981
|
+
}, /* @__PURE__ */ import_react60.default.createElement("div", {
|
|
8908
8982
|
className: "hawa-grid hawa-grid-cols-4 hawa-gap-x-2 hawa-border-b hawa-border-t hawa-border-gray-200 hawa-bg-gray-100 hawa-p-4 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-border-gray-700 dark:hawa-bg-gray-800 dark:hawa-text-white"
|
|
8909
|
-
}, /* @__PURE__ */
|
|
8983
|
+
}, /* @__PURE__ */ import_react60.default.createElement("div", {
|
|
8910
8984
|
className: "hawa-flex hawa-items-center"
|
|
8911
8985
|
}), props.plans.map(function(plan, i) {
|
|
8912
|
-
return /* @__PURE__ */
|
|
8986
|
+
return /* @__PURE__ */ import_react60.default.createElement("div", {
|
|
8913
8987
|
key: i
|
|
8914
|
-
}, /* @__PURE__ */
|
|
8988
|
+
}, /* @__PURE__ */ import_react60.default.createElement("h5", {
|
|
8915
8989
|
className: "hawa-text-md hawa-font-bold hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
8916
|
-
}, plan.texts.title), /* @__PURE__ */
|
|
8990
|
+
}, plan.texts.title), /* @__PURE__ */ import_react60.default.createElement("div", {
|
|
8917
8991
|
className: " hawa-flex hawa-items-baseline hawa-text-gray-900 dark:hawa-text-white"
|
|
8918
|
-
}, /* @__PURE__ */
|
|
8992
|
+
}, /* @__PURE__ */ import_react60.default.createElement(import_react60.default.Fragment, null, /* @__PURE__ */ import_react60.default.createElement("span", {
|
|
8919
8993
|
className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight"
|
|
8920
|
-
}, plan.price), /* @__PURE__ */
|
|
8994
|
+
}, plan.price), /* @__PURE__ */ import_react60.default.createElement("span", {
|
|
8921
8995
|
className: "hawa-mx-1 hawa-text-sm hawa-font-semibold"
|
|
8922
|
-
}, plan.texts.currencyText)), /* @__PURE__ */
|
|
8996
|
+
}, plan.texts.currencyText)), /* @__PURE__ */ import_react60.default.createElement("span", {
|
|
8923
8997
|
className: "hawa-ml-1 hawa-text-xl hawa-font-normal hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
8924
|
-
}, "/ ", plan.texts.cycleText)), /* @__PURE__ */
|
|
8998
|
+
}, "/ ", plan.texts.cycleText)), /* @__PURE__ */ import_react60.default.createElement("h5", {
|
|
8925
8999
|
className: "hawa-text-md hawa-font-normal hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
8926
9000
|
}, plan.texts.subtitle));
|
|
8927
9001
|
})), (_props_plans = props.plans) === null || _props_plans === void 0 ? void 0 : _props_plans.map(function(plan) {
|
|
8928
9002
|
return plan.features.map(function(feature, j) {
|
|
8929
|
-
return /* @__PURE__ */
|
|
9003
|
+
return /* @__PURE__ */ import_react60.default.createElement("div", {
|
|
8930
9004
|
key: j,
|
|
8931
9005
|
className: "hawa-grid hawa-grid-cols-4 hawa-gap-x-16 hawa-border-b hawa-border-gray-200 hawa-px-4 hawa-py-5 hawa-text-sm hawa-text-gray-700 dark:hawa-border-gray-700"
|
|
8932
|
-
}, /* @__PURE__ */
|
|
9006
|
+
}, /* @__PURE__ */ import_react60.default.createElement("div", {
|
|
8933
9007
|
className: " hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
8934
|
-
}, feature.text, feature.description && /* @__PURE__ */
|
|
9008
|
+
}, feature.text, feature.description && /* @__PURE__ */ import_react60.default.createElement(Tooltip, {
|
|
8935
9009
|
side: "right",
|
|
8936
9010
|
content: feature.description
|
|
8937
|
-
}, /* @__PURE__ */
|
|
9011
|
+
}, /* @__PURE__ */ import_react60.default.createElement("svg", {
|
|
8938
9012
|
stroke: "currentColor",
|
|
8939
9013
|
fill: "currentColor",
|
|
8940
9014
|
strokeWidth: "0",
|
|
8941
9015
|
viewBox: "0 0 16 16",
|
|
8942
9016
|
height: "1em",
|
|
8943
9017
|
width: "1em"
|
|
8944
|
-
}, /* @__PURE__ */
|
|
9018
|
+
}, /* @__PURE__ */ import_react60.default.createElement("path", {
|
|
8945
9019
|
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"
|
|
8946
|
-
})))), /* @__PURE__ */
|
|
9020
|
+
})))), /* @__PURE__ */ import_react60.default.createElement(UncheckMark, null), /* @__PURE__ */ import_react60.default.createElement(CheckMark, null), /* @__PURE__ */ import_react60.default.createElement(UncheckMark, null));
|
|
8947
9021
|
});
|
|
8948
9022
|
})));
|
|
8949
9023
|
};
|
|
8950
9024
|
// components/blocks/pricing/HorizontalPricing.tsx
|
|
8951
|
-
var
|
|
9025
|
+
var import_react61 = __toESM(require("react"));
|
|
8952
9026
|
var import_clsx12 = __toESM(require("clsx"));
|
|
8953
9027
|
var HorizontalPricing = function(props) {
|
|
8954
|
-
var _ref = _sliced_to_array((0,
|
|
9028
|
+
var _ref = _sliced_to_array((0, import_react61.useState)(""), 2), selectedCard = _ref[0], setSelectedCard = _ref[1];
|
|
8955
9029
|
var data = [
|
|
8956
9030
|
{
|
|
8957
9031
|
title: "basic",
|
|
@@ -8969,96 +9043,96 @@ var HorizontalPricing = function(props) {
|
|
|
8969
9043
|
cycle: "/mo"
|
|
8970
9044
|
}
|
|
8971
9045
|
];
|
|
8972
|
-
return /* @__PURE__ */
|
|
9046
|
+
return /* @__PURE__ */ import_react61.default.createElement("div", {
|
|
8973
9047
|
className: "hawa-z-10 hawa-w-full hawa-max-w-screen-sm"
|
|
8974
|
-
}, /* @__PURE__ */
|
|
9048
|
+
}, /* @__PURE__ */ import_react61.default.createElement("div", {
|
|
8975
9049
|
className: "hawa-max-w-2xl "
|
|
8976
|
-
}, /* @__PURE__ */
|
|
9050
|
+
}, /* @__PURE__ */ import_react61.default.createElement("div", {
|
|
8977
9051
|
className: "hawa-flex hawa-flex-row hawa-justify-between"
|
|
8978
|
-
}, /* @__PURE__ */
|
|
9052
|
+
}, /* @__PURE__ */ import_react61.default.createElement(Radio, {
|
|
8979
9053
|
design: "tabs",
|
|
8980
9054
|
options: props.currencies,
|
|
8981
9055
|
defaultValue: props.currentCurrency
|
|
8982
|
-
}), /* @__PURE__ */
|
|
9056
|
+
}), /* @__PURE__ */ import_react61.default.createElement(Radio, {
|
|
8983
9057
|
design: "tabs",
|
|
8984
9058
|
options: props.billingCycles,
|
|
8985
9059
|
defaultValue: props.currentCycle
|
|
8986
9060
|
})), data.map(function(d, i) {
|
|
8987
|
-
return /* @__PURE__ */
|
|
9061
|
+
return /* @__PURE__ */ import_react61.default.createElement("label", {
|
|
8988
9062
|
key: i,
|
|
8989
9063
|
htmlFor: d.title,
|
|
8990
9064
|
className: "",
|
|
8991
9065
|
onClick: function() {
|
|
8992
9066
|
return setSelectedCard(d.title);
|
|
8993
9067
|
}
|
|
8994
|
-
}, /* @__PURE__ */
|
|
9068
|
+
}, /* @__PURE__ */ import_react61.default.createElement("input", {
|
|
8995
9069
|
type: "radio",
|
|
8996
9070
|
name: "radio",
|
|
8997
9071
|
id: d.title,
|
|
8998
9072
|
className: "hawa-peer hawa-appearance-none"
|
|
8999
|
-
}), /* @__PURE__ */
|
|
9073
|
+
}), /* @__PURE__ */ import_react61.default.createElement("div", {
|
|
9000
9074
|
className: (0, import_clsx12.default)(selectedCard === d.title ? "peer-checked:hawa-border-primary peer-checked:hawa-ring-primary/20 peer-checked:hawa-ring-4 " : "", "hawa-peer hawa-flex hawa-cursor-pointer hawa-items-center hawa-justify-between hawa-rounded-xl hawa-border hawa-bg-background hawa-px-5 hawa-py-4 hawa-shadow dark:hawa-text-white peer-checked:[&_.active]:hawa-block peer-checked:[&_.default]:hawa-hidden")
|
|
9001
|
-
}, /* @__PURE__ */
|
|
9075
|
+
}, /* @__PURE__ */ import_react61.default.createElement("div", {
|
|
9002
9076
|
className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4"
|
|
9003
|
-
}, /* @__PURE__ */
|
|
9077
|
+
}, /* @__PURE__ */ import_react61.default.createElement(CheckIcons, null), /* @__PURE__ */ import_react61.default.createElement(CardText, {
|
|
9004
9078
|
title: "Enterprise",
|
|
9005
9079
|
subtitle: "For startups and new businesses"
|
|
9006
|
-
})), /* @__PURE__ */
|
|
9080
|
+
})), /* @__PURE__ */ import_react61.default.createElement(CardPrice, {
|
|
9007
9081
|
amount: d.price,
|
|
9008
9082
|
cycle: d.cycle
|
|
9009
9083
|
})));
|
|
9010
9084
|
})));
|
|
9011
9085
|
};
|
|
9012
9086
|
var CheckIcons = function() {
|
|
9013
|
-
return /* @__PURE__ */
|
|
9087
|
+
return /* @__PURE__ */ import_react61.default.createElement(import_react61.default.Fragment, null, /* @__PURE__ */ import_react61.default.createElement("svg", {
|
|
9014
9088
|
fill: "none",
|
|
9015
9089
|
viewBox: "0 0 24 24",
|
|
9016
9090
|
strokeWidth: "1.5",
|
|
9017
9091
|
stroke: "currentColor",
|
|
9018
9092
|
className: "hawa-default hawa-h-8 hawa-w-8 hawa-text-neutral-500"
|
|
9019
|
-
}, /* @__PURE__ */
|
|
9093
|
+
}, /* @__PURE__ */ import_react61.default.createElement("path", {
|
|
9020
9094
|
strokeLinecap: "round",
|
|
9021
9095
|
strokeLinejoin: "round",
|
|
9022
9096
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
9023
|
-
})), /* @__PURE__ */
|
|
9097
|
+
})), /* @__PURE__ */ import_react61.default.createElement("svg", {
|
|
9024
9098
|
viewBox: "0 0 24 24",
|
|
9025
9099
|
fill: "currentColor",
|
|
9026
9100
|
className: "hawa-active hawa-hidden hawa-h-8 hawa-w-8 hawa-text-blue-500"
|
|
9027
|
-
}, /* @__PURE__ */
|
|
9101
|
+
}, /* @__PURE__ */ import_react61.default.createElement("path", {
|
|
9028
9102
|
fillRule: "evenodd",
|
|
9029
9103
|
clipRule: "evenodd",
|
|
9030
9104
|
d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z"
|
|
9031
9105
|
})));
|
|
9032
9106
|
};
|
|
9033
9107
|
var CardText = function(props) {
|
|
9034
|
-
return /* @__PURE__ */
|
|
9108
|
+
return /* @__PURE__ */ import_react61.default.createElement("div", {
|
|
9035
9109
|
className: "hawa-peer hawa-flex hawa-flex-col hawa-items-start "
|
|
9036
|
-
}, /* @__PURE__ */
|
|
9110
|
+
}, /* @__PURE__ */ import_react61.default.createElement("h2", {
|
|
9037
9111
|
className: "hawa-font-medium hawa-text-primary/90 sm:hawa-text-xl"
|
|
9038
|
-
}, props.title), /* @__PURE__ */
|
|
9112
|
+
}, props.title), /* @__PURE__ */ import_react61.default.createElement("p", {
|
|
9039
9113
|
className: "hawa-text-sm hawa-text-primary/60"
|
|
9040
9114
|
}, props.subtitle, " "));
|
|
9041
9115
|
};
|
|
9042
9116
|
var CardPrice = function(props) {
|
|
9043
|
-
return /* @__PURE__ */
|
|
9117
|
+
return /* @__PURE__ */ import_react61.default.createElement("h2", {
|
|
9044
9118
|
className: "hawa-peer hawa-text-xl hawa-font-semibold hawa-text-primary sm:hawa-text-2xl"
|
|
9045
|
-
}, props.amount, /* @__PURE__ */
|
|
9119
|
+
}, props.amount, /* @__PURE__ */ import_react61.default.createElement("span", {
|
|
9046
9120
|
className: "hawa-text-base hawa-font-medium hawa-text-neutral-400"
|
|
9047
9121
|
}, props.cycle));
|
|
9048
9122
|
};
|
|
9049
9123
|
// components/blocks/Usage.tsx
|
|
9050
|
-
var
|
|
9124
|
+
var import_react62 = __toESM(require("react"));
|
|
9051
9125
|
var Usage = function(props) {
|
|
9052
9126
|
var _props_percent;
|
|
9053
|
-
return /* @__PURE__ */
|
|
9127
|
+
return /* @__PURE__ */ import_react62.default.createElement("div", {
|
|
9054
9128
|
className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-1 hawa-rounded hawa-border hawa-bg-card hawa-p-4"
|
|
9055
|
-
}, /* @__PURE__ */
|
|
9129
|
+
}, /* @__PURE__ */ import_react62.default.createElement("div", {
|
|
9056
9130
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2"
|
|
9057
|
-
}, /* @__PURE__ */
|
|
9131
|
+
}, /* @__PURE__ */ import_react62.default.createElement("span", {
|
|
9058
9132
|
className: "hawa-bg-white-200"
|
|
9059
|
-
}, props.title), props.tooltip && /* @__PURE__ */
|
|
9133
|
+
}, props.title), props.tooltip && /* @__PURE__ */ import_react62.default.createElement(Tooltip, {
|
|
9060
9134
|
content: props.tooltip
|
|
9061
|
-
}, /* @__PURE__ */
|
|
9135
|
+
}, /* @__PURE__ */ import_react62.default.createElement("svg", {
|
|
9062
9136
|
stroke: "currentColor",
|
|
9063
9137
|
"aria-label": "Exclamation Circle",
|
|
9064
9138
|
fill: "currentColor",
|
|
@@ -9066,28 +9140,28 @@ var Usage = function(props) {
|
|
|
9066
9140
|
viewBox: "0 0 16 16",
|
|
9067
9141
|
height: "1em",
|
|
9068
9142
|
width: "1em"
|
|
9069
|
-
}, /* @__PURE__ */
|
|
9143
|
+
}, /* @__PURE__ */ import_react62.default.createElement("path", {
|
|
9070
9144
|
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"
|
|
9071
|
-
})))), /* @__PURE__ */
|
|
9145
|
+
})))), /* @__PURE__ */ import_react62.default.createElement("div", {
|
|
9072
9146
|
className: "hawa-bg-white-100 hawa-flex hawa-flex-row"
|
|
9073
|
-
}, /* @__PURE__ */
|
|
9147
|
+
}, /* @__PURE__ */ import_react62.default.createElement("div", null, props.currentUsage), /* @__PURE__ */ import_react62.default.createElement("div", null, " (", props.percent, "%)")), /* @__PURE__ */ import_react62.default.createElement(Progress, {
|
|
9074
9148
|
value: (_props_percent = props.percent) !== null && _props_percent !== void 0 ? _props_percent : 0
|
|
9075
9149
|
}));
|
|
9076
9150
|
};
|
|
9077
9151
|
// components/hooks/useDiscloser.ts
|
|
9078
|
-
var import_react62 = require("react");
|
|
9079
|
-
// components/hooks/useHover.ts
|
|
9080
9152
|
var import_react63 = require("react");
|
|
9081
|
-
// components/hooks/
|
|
9153
|
+
// components/hooks/useHover.ts
|
|
9082
9154
|
var import_react64 = require("react");
|
|
9083
|
-
// components/hooks/
|
|
9155
|
+
// components/hooks/useCarousel.ts
|
|
9084
9156
|
var import_react65 = require("react");
|
|
9157
|
+
// components/hooks/useWindowSize.ts
|
|
9158
|
+
var import_react66 = require("react");
|
|
9085
9159
|
var useWindowSize = function() {
|
|
9086
|
-
var _ref = _sliced_to_array((0,
|
|
9160
|
+
var _ref = _sliced_to_array((0, import_react66.useState)({
|
|
9087
9161
|
width: void 0,
|
|
9088
9162
|
height: void 0
|
|
9089
9163
|
}), 2), windowSize = _ref[0], setWindowSize = _ref[1];
|
|
9090
|
-
(0,
|
|
9164
|
+
(0, import_react66.useEffect)(function() {
|
|
9091
9165
|
var handleResize = function handleResize() {
|
|
9092
9166
|
setWindowSize({
|
|
9093
9167
|
width: window.innerWidth,
|
|
@@ -9103,7 +9177,7 @@ var useWindowSize = function() {
|
|
|
9103
9177
|
return windowSize;
|
|
9104
9178
|
};
|
|
9105
9179
|
// components/hooks/useFocusWithin.ts
|
|
9106
|
-
var
|
|
9180
|
+
var import_react67 = require("react");
|
|
9107
9181
|
function containsRelatedTarget(event) {
|
|
9108
9182
|
if (_instanceof(event.currentTarget, HTMLElement) && _instanceof(event.relatedTarget, HTMLElement)) {
|
|
9109
9183
|
return event.currentTarget.contains(event.relatedTarget);
|
|
@@ -9112,9 +9186,9 @@ function containsRelatedTarget(event) {
|
|
|
9112
9186
|
}
|
|
9113
9187
|
function useFocusWithin() {
|
|
9114
9188
|
var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, onBlur = _ref.onBlur, onFocus = _ref.onFocus;
|
|
9115
|
-
var ref = (0,
|
|
9116
|
-
var _ref1 = _sliced_to_array((0,
|
|
9117
|
-
var focusedRef = (0,
|
|
9189
|
+
var ref = (0, import_react67.useRef)(null);
|
|
9190
|
+
var _ref1 = _sliced_to_array((0, import_react67.useState)(false), 2), focused = _ref1[0], _setFocused = _ref1[1];
|
|
9191
|
+
var focusedRef = (0, import_react67.useRef)(false);
|
|
9118
9192
|
var setFocused = function(value) {
|
|
9119
9193
|
_setFocused(value);
|
|
9120
9194
|
focusedRef.current = value;
|
|
@@ -9131,7 +9205,7 @@ function useFocusWithin() {
|
|
|
9131
9205
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
9132
9206
|
}
|
|
9133
9207
|
};
|
|
9134
|
-
(0,
|
|
9208
|
+
(0, import_react67.useEffect)(function() {
|
|
9135
9209
|
if (ref.current) {
|
|
9136
9210
|
ref.current.addEventListener("focusin", handleFocusIn);
|
|
9137
9211
|
ref.current.addEventListener("focusout", handleFocusOut);
|
|
@@ -9152,7 +9226,7 @@ function useFocusWithin() {
|
|
|
9152
9226
|
};
|
|
9153
9227
|
}
|
|
9154
9228
|
// components/hooks/useMediaQuery.ts
|
|
9155
|
-
var
|
|
9229
|
+
var import_react68 = require("react");
|
|
9156
9230
|
function attachMediaListener(query, callback) {
|
|
9157
9231
|
try {
|
|
9158
9232
|
query.addEventListener("change", callback);
|
|
@@ -9179,9 +9253,9 @@ function useMediaQuery(query, initialValue) {
|
|
|
9179
9253
|
var getInitialValueInEffect = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
9180
9254
|
getInitialValueInEffect: true
|
|
9181
9255
|
}).getInitialValueInEffect;
|
|
9182
|
-
var _ref = _sliced_to_array((0,
|
|
9183
|
-
var queryRef = (0,
|
|
9184
|
-
(0,
|
|
9256
|
+
var _ref = _sliced_to_array((0, import_react68.useState)(getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)), 2), matches = _ref[0], setMatches = _ref[1];
|
|
9257
|
+
var queryRef = (0, import_react68.useRef)();
|
|
9258
|
+
(0, import_react68.useEffect)(function() {
|
|
9185
9259
|
if ("matchMedia" in window) {
|
|
9186
9260
|
queryRef.current = window.matchMedia(query);
|
|
9187
9261
|
setMatches(queryRef.current.matches);
|
|
@@ -9196,15 +9270,15 @@ function useMediaQuery(query, initialValue) {
|
|
|
9196
9270
|
return matches;
|
|
9197
9271
|
}
|
|
9198
9272
|
// components/hooks/useScrollPosition.ts
|
|
9199
|
-
var import_react68 = require("react");
|
|
9200
|
-
// components/hooks/useTable.ts
|
|
9201
9273
|
var import_react69 = require("react");
|
|
9202
|
-
// components/hooks/
|
|
9274
|
+
// components/hooks/useTable.ts
|
|
9203
9275
|
var import_react70 = require("react");
|
|
9276
|
+
// components/hooks/useTabs.ts
|
|
9277
|
+
var import_react71 = require("react");
|
|
9204
9278
|
function useTabs() {
|
|
9205
9279
|
var initialTab = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
9206
|
-
var _ref = _sliced_to_array((0,
|
|
9207
|
-
(0,
|
|
9280
|
+
var _ref = _sliced_to_array((0, import_react71.useState)(initialTab), 2), activeTab = _ref[0], setActiveTab = _ref[1];
|
|
9281
|
+
(0, import_react71.useEffect)(function() {
|
|
9208
9282
|
var handleHashChange = function() {
|
|
9209
9283
|
var hash = window.location.hash.substring(1);
|
|
9210
9284
|
setActiveTab(hash || initialTab);
|
|
@@ -9240,6 +9314,7 @@ function useTabs() {
|
|
|
9240
9314
|
AppLanding: AppLanding,
|
|
9241
9315
|
AppLayout: AppLayout,
|
|
9242
9316
|
AppStores: AppStores,
|
|
9317
|
+
AppTopbar: AppTopbar,
|
|
9243
9318
|
BackToTop: BackToTop,
|
|
9244
9319
|
Breadcrumb: Breadcrumb,
|
|
9245
9320
|
Button: Button,
|