@sikka/hawa 0.14.13-next → 0.14.14-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 +7 -0
- package/dist/index.d.mts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +448 -415
- package/dist/index.mjs +322 -288
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -382,6 +382,9 @@ __export(components_exports, {
|
|
|
382
382
|
AppStores: function() {
|
|
383
383
|
return AppStores;
|
|
384
384
|
},
|
|
385
|
+
AppTabs: function() {
|
|
386
|
+
return AppTabs;
|
|
387
|
+
},
|
|
385
388
|
AppTopbar: function() {
|
|
386
389
|
return AppTopbar;
|
|
387
390
|
},
|
|
@@ -7634,13 +7637,42 @@ var MenubarShortcut = function(_param) {
|
|
|
7634
7637
|
}, props));
|
|
7635
7638
|
};
|
|
7636
7639
|
MenubarShortcut.displayname = "MenubarShortcut";
|
|
7640
|
+
// components/layout/AppTabs.tsx
|
|
7641
|
+
var import_react39 = __toESM(require("react"));
|
|
7642
|
+
var AppTabs = function(_param) {
|
|
7643
|
+
var tabs = _param.tabs, props = _object_without_properties(_param, [
|
|
7644
|
+
"tabs"
|
|
7645
|
+
]);
|
|
7646
|
+
var _ref = _sliced_to_array((0, import_react39.useState)(0), 2), selectedIndex = _ref[0], setSelectedIndex = _ref[1];
|
|
7647
|
+
return /* @__PURE__ */ import_react39.default.createElement("div", {
|
|
7648
|
+
className: "hawa-bg-gray-100 hawa-w-full dark:hawa-bg-gray-900 hawa-p-6 hawa-pb-0 hawa-border-b "
|
|
7649
|
+
}, /* @__PURE__ */ import_react39.default.createElement("div", {
|
|
7650
|
+
className: "hawa-flex hawa-flex-row hawa-justify-center "
|
|
7651
|
+
}, tabs.map(function(tab, index) {
|
|
7652
|
+
var selected = index === selectedIndex;
|
|
7653
|
+
return /* @__PURE__ */ import_react39.default.createElement(AppSingleTab, {
|
|
7654
|
+
tab: tab,
|
|
7655
|
+
onClick: function() {
|
|
7656
|
+
return setSelectedIndex(index);
|
|
7657
|
+
},
|
|
7658
|
+
isSelected: selected
|
|
7659
|
+
});
|
|
7660
|
+
})));
|
|
7661
|
+
};
|
|
7662
|
+
var AppSingleTab = function(props) {
|
|
7663
|
+
return /* @__PURE__ */ import_react39.default.createElement("div", {
|
|
7664
|
+
onClick: props.onClick,
|
|
7665
|
+
className: cn("hawa-p-4 hawa-py-2 hawa-flex hawa-flex-row hawa-gap-2 hawa-translate-y-[1.1px] hawa-text-sm hawa-rounded-t hawa-transition-all hawa-select-none hawa-z-10 ", "hawa-border", // Always have a border but make it transparent
|
|
7666
|
+
props.isSelected ? "hawa-bg-background hawa-border hawa-border-b-transparent" : "dark:hover:hawa-bg-gray-700 hover:hawa-bg-gray-200 hawa-cursor-pointer hawa-border-transparent")
|
|
7667
|
+
}, props.tab.icon && props.tab.icon, props.tab.label);
|
|
7668
|
+
};
|
|
7637
7669
|
// components/layout/DocsLayout.tsx
|
|
7638
|
-
var
|
|
7670
|
+
var import_react42 = __toESM(require("react"));
|
|
7639
7671
|
// components/hooks/useBreakpoint.ts
|
|
7640
|
-
var
|
|
7672
|
+
var import_react40 = require("react");
|
|
7641
7673
|
var useBreakpoint = function() {
|
|
7642
|
-
var _ref = _sliced_to_array((0,
|
|
7643
|
-
(0,
|
|
7674
|
+
var _ref = _sliced_to_array((0, import_react40.useState)(null), 2), breakpoint = _ref[0], setBreakpoint = _ref[1];
|
|
7675
|
+
(0, import_react40.useEffect)(function() {
|
|
7644
7676
|
if (typeof window !== "undefined") {
|
|
7645
7677
|
var resize = function() {
|
|
7646
7678
|
setBreakpoint(window.innerWidth);
|
|
@@ -7655,7 +7687,7 @@ var useBreakpoint = function() {
|
|
|
7655
7687
|
return breakpoint;
|
|
7656
7688
|
};
|
|
7657
7689
|
// components/layout/DocsSidebar.tsx
|
|
7658
|
-
var
|
|
7690
|
+
var import_react41 = __toESM(require("react"));
|
|
7659
7691
|
var DocsSidebar = function(_param) {
|
|
7660
7692
|
var test = _param.test, props = _object_without_properties(_param, [
|
|
7661
7693
|
"test"
|
|
@@ -7667,14 +7699,14 @@ var DocsSidebar = function(_param) {
|
|
|
7667
7699
|
"API Reference",
|
|
7668
7700
|
"FAQ"
|
|
7669
7701
|
];
|
|
7670
|
-
var
|
|
7702
|
+
var _import_react41_default_useState = _sliced_to_array(import_react41.default.useState(pages[0]), 2), currentPage = _import_react41_default_useState[0], setCurrentPage = _import_react41_default_useState[1];
|
|
7671
7703
|
var handlePageClick = function(page) {
|
|
7672
7704
|
setCurrentPage(page);
|
|
7673
7705
|
};
|
|
7674
|
-
return /* @__PURE__ */
|
|
7706
|
+
return /* @__PURE__ */ import_react41.default.createElement("div", {
|
|
7675
7707
|
className: "hawa-flex hawa-flex-col hawa-overflow-x-clip"
|
|
7676
7708
|
}, pages.map(function(page, index) {
|
|
7677
|
-
return /* @__PURE__ */
|
|
7709
|
+
return /* @__PURE__ */ import_react41.default.createElement("a", {
|
|
7678
7710
|
key: index,
|
|
7679
7711
|
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" : ""),
|
|
7680
7712
|
onClick: function() {
|
|
@@ -7709,14 +7741,14 @@ var DocsLayout = function(_param) {
|
|
|
7709
7741
|
lg: closeDrawerWidth
|
|
7710
7742
|
}
|
|
7711
7743
|
};
|
|
7712
|
-
var ref = (0,
|
|
7744
|
+
var ref = (0, import_react42.useRef)(null);
|
|
7713
7745
|
var isRTL = direction === "rtl";
|
|
7714
7746
|
var size = useBreakpoint();
|
|
7715
7747
|
if (typeof window == "undefined") {
|
|
7716
7748
|
size = 1200;
|
|
7717
7749
|
}
|
|
7718
|
-
var _ref = _sliced_to_array((0,
|
|
7719
|
-
(0,
|
|
7750
|
+
var _ref = _sliced_to_array((0, import_react42.useState)(true), 2), openSideMenu = _ref[0], setOpenSideMenu = _ref[1];
|
|
7751
|
+
(0, import_react42.useEffect)(function() {
|
|
7720
7752
|
var handleClickOutside = function(event) {
|
|
7721
7753
|
if (ref.current && !ref.current.contains(event.target) && !openSideMenu) {
|
|
7722
7754
|
setOpenSideMenu(false);
|
|
@@ -7729,7 +7761,7 @@ var DocsLayout = function(_param) {
|
|
|
7729
7761
|
}, [
|
|
7730
7762
|
openSideMenu
|
|
7731
7763
|
]);
|
|
7732
|
-
(0,
|
|
7764
|
+
(0, import_react42.useEffect)(function() {
|
|
7733
7765
|
var handleResize = function() {
|
|
7734
7766
|
setOpenSideMenu(window.innerWidth > 600 ? true : false);
|
|
7735
7767
|
};
|
|
@@ -7742,23 +7774,23 @@ var DocsLayout = function(_param) {
|
|
|
7742
7774
|
keepOpen
|
|
7743
7775
|
]);
|
|
7744
7776
|
var drawerSizeCondition = drawerSizeStyle[openSideMenu ? "opened" : "closed"][drawerSize];
|
|
7745
|
-
return /* @__PURE__ */
|
|
7777
|
+
return /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7746
7778
|
className: "hawa-fixed"
|
|
7747
|
-
}, /* @__PURE__ */
|
|
7779
|
+
}, /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7748
7780
|
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")
|
|
7749
|
-
}, size > 600 ? /* @__PURE__ */
|
|
7781
|
+
}, size > 600 ? /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7750
7782
|
onClick: props.onLogoClick,
|
|
7751
7783
|
dir: direction
|
|
7752
|
-
}, /* @__PURE__ */
|
|
7784
|
+
}, /* @__PURE__ */ import_react42.default.createElement("img", {
|
|
7753
7785
|
className: cn("hawa-h-8 hawa-opacity-0 hawa-transition-all", !openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100"),
|
|
7754
7786
|
src: props.logoLink
|
|
7755
7787
|
})) : // Mobile Drawer Menu Button
|
|
7756
|
-
/* @__PURE__ */
|
|
7788
|
+
/* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7757
7789
|
dir: direction,
|
|
7758
7790
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
|
7759
|
-
}, /* @__PURE__ */
|
|
7791
|
+
}, /* @__PURE__ */ import_react42.default.createElement(Sheet, null, /* @__PURE__ */ import_react42.default.createElement(SheetTrigger, null, " ", /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7760
7792
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
|
7761
|
-
}, /* @__PURE__ */
|
|
7793
|
+
}, /* @__PURE__ */ import_react42.default.createElement("svg", {
|
|
7762
7794
|
"aria-label": "Menu Icon",
|
|
7763
7795
|
stroke: "currentColor",
|
|
7764
7796
|
fill: "currentColor",
|
|
@@ -7767,21 +7799,21 @@ var DocsLayout = function(_param) {
|
|
|
7767
7799
|
"aria-hidden": "true",
|
|
7768
7800
|
height: "1.6em",
|
|
7769
7801
|
width: "1.6em"
|
|
7770
|
-
}, /* @__PURE__ */
|
|
7802
|
+
}, /* @__PURE__ */ import_react42.default.createElement("path", {
|
|
7771
7803
|
fillRule: "evenodd",
|
|
7772
7804
|
clipRule: "evenodd",
|
|
7773
7805
|
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"
|
|
7774
|
-
})))), /* @__PURE__ */
|
|
7806
|
+
})))), /* @__PURE__ */ import_react42.default.createElement(SheetContent, {
|
|
7775
7807
|
side: isRTL ? "right" : "left",
|
|
7776
7808
|
className: "hawa-pt-10"
|
|
7777
|
-
}, " ", /* @__PURE__ */
|
|
7809
|
+
}, " ", /* @__PURE__ */ import_react42.default.createElement(DocsSidebar, null)))), /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7778
7810
|
className: cn("hawa-flex hawa-gap-2 dark:hawa-text-white", isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row")
|
|
7779
|
-
}, /* @__PURE__ */
|
|
7811
|
+
}, /* @__PURE__ */ import_react42.default.createElement(Button, {
|
|
7780
7812
|
variant: "ghost",
|
|
7781
7813
|
size: "smallIcon"
|
|
7782
|
-
}, /* @__PURE__ */
|
|
7814
|
+
}, /* @__PURE__ */ import_react42.default.createElement(Logos.github, {
|
|
7783
7815
|
className: "hawa-icon"
|
|
7784
|
-
})))), /* @__PURE__ */
|
|
7816
|
+
})))), /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7785
7817
|
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"),
|
|
7786
7818
|
style: {
|
|
7787
7819
|
// height: "calc(100%)",
|
|
@@ -7796,7 +7828,7 @@ var DocsLayout = function(_param) {
|
|
|
7796
7828
|
}
|
|
7797
7829
|
},
|
|
7798
7830
|
ref: ref
|
|
7799
|
-
}, /* @__PURE__ */
|
|
7831
|
+
}, /* @__PURE__ */ import_react42.default.createElement(DocsSidebar, null)), /* @__PURE__ */ import_react42.default.createElement("div", null, "overlay sidebar"), /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7800
7832
|
className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all ",
|
|
7801
7833
|
style: isRTL ? {
|
|
7802
7834
|
height: "calc(100% - 56px)",
|
|
@@ -7814,68 +7846,68 @@ var DocsLayout = function(_param) {
|
|
|
7814
7846
|
}, props.children));
|
|
7815
7847
|
};
|
|
7816
7848
|
// components/blocks/auth/LoginForm.tsx
|
|
7817
|
-
var
|
|
7849
|
+
var import_react45 = __toESM(require("react"));
|
|
7818
7850
|
var import_react_hook_form = require("react-hook-form");
|
|
7819
7851
|
var import_zod = require("@hookform/resolvers/zod");
|
|
7820
7852
|
var import_libphonenumber_js = require("libphonenumber-js");
|
|
7821
7853
|
var z = __toESM(require("zod"));
|
|
7822
7854
|
// components/blocks/auth/AuthButtons.tsx
|
|
7823
|
-
var
|
|
7855
|
+
var import_react43 = __toESM(require("react"));
|
|
7824
7856
|
var AuthButtons = function(props) {
|
|
7825
7857
|
var _props_texts, _props_texts1, _props_texts2, _props_texts3, _props_texts4, _props_texts5, _props_texts6;
|
|
7826
7858
|
var _props_texts_continueWithGoogle, _props_texts_continueWithGithub, _props_texts_continueWithTwitter, _props_texts_continueWithApple, _props_texts_continueWithMicrosoft, _props_texts_continueWithEmail, _props_texts_continueWithPhone;
|
|
7827
|
-
return /* @__PURE__ */
|
|
7859
|
+
return /* @__PURE__ */ import_react43.default.createElement("div", {
|
|
7828
7860
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7829
|
-
}, props.viaGoogle && /* @__PURE__ */
|
|
7861
|
+
}, props.viaGoogle && /* @__PURE__ */ import_react43.default.createElement(Button, {
|
|
7830
7862
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7831
7863
|
variant: "outline",
|
|
7832
7864
|
onClick: props.handleGoogle
|
|
7833
|
-
}, /* @__PURE__ */
|
|
7865
|
+
}, /* @__PURE__ */ import_react43.default.createElement(Logos.google, {
|
|
7834
7866
|
className: "hawa-icon"
|
|
7835
|
-
}), (_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__ */
|
|
7867
|
+
}), (_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_react43.default.createElement(Button, {
|
|
7836
7868
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7837
7869
|
variant: "outline",
|
|
7838
7870
|
onClick: props.handleGithub
|
|
7839
|
-
}, /* @__PURE__ */
|
|
7871
|
+
}, /* @__PURE__ */ import_react43.default.createElement(Logos.github, {
|
|
7840
7872
|
className: "hawa-icon"
|
|
7841
|
-
}), (_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__ */
|
|
7873
|
+
}), (_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_react43.default.createElement(Button, {
|
|
7842
7874
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7843
7875
|
variant: "outline",
|
|
7844
7876
|
onClick: props.handleTwitter
|
|
7845
|
-
}, /* @__PURE__ */
|
|
7877
|
+
}, /* @__PURE__ */ import_react43.default.createElement(Logos.twitter, {
|
|
7846
7878
|
className: "hawa-icon"
|
|
7847
|
-
}), (_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__ */
|
|
7879
|
+
}), (_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_react43.default.createElement(Button, {
|
|
7848
7880
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7849
7881
|
variant: "outline",
|
|
7850
7882
|
onClick: props.handleApple
|
|
7851
|
-
}, /* @__PURE__ */
|
|
7883
|
+
}, /* @__PURE__ */ import_react43.default.createElement(Logos.apple, {
|
|
7852
7884
|
className: "hawa-icon"
|
|
7853
|
-
}), (_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__ */
|
|
7885
|
+
}), (_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_react43.default.createElement(Button, {
|
|
7854
7886
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7855
7887
|
variant: "outline",
|
|
7856
7888
|
onClick: props.handleMicrosoft
|
|
7857
|
-
}, /* @__PURE__ */
|
|
7889
|
+
}, /* @__PURE__ */ import_react43.default.createElement(Logos.microsoft, {
|
|
7858
7890
|
className: "hawa-icon"
|
|
7859
|
-
}), (_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__ */
|
|
7891
|
+
}), (_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_react43.default.createElement(Button, {
|
|
7860
7892
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7861
7893
|
variant: "outline",
|
|
7862
7894
|
onClick: props.handleEmail
|
|
7863
|
-
}, /* @__PURE__ */
|
|
7895
|
+
}, /* @__PURE__ */ import_react43.default.createElement(Logos.mail, {
|
|
7864
7896
|
className: "hawa-icon"
|
|
7865
|
-
}), (_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__ */
|
|
7897
|
+
}), (_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_react43.default.createElement(Button, {
|
|
7866
7898
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7867
7899
|
variant: "outline",
|
|
7868
7900
|
onClick: props.handlePhone
|
|
7869
|
-
}, /* @__PURE__ */
|
|
7901
|
+
}, /* @__PURE__ */ import_react43.default.createElement(Logos.phone, {
|
|
7870
7902
|
className: "hawa-icon"
|
|
7871
7903
|
}), (_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"));
|
|
7872
7904
|
};
|
|
7873
7905
|
// components/icons/index.tsx
|
|
7874
|
-
var
|
|
7906
|
+
var import_react44 = __toESM(require("react"));
|
|
7875
7907
|
var EyeIcon = function(props) {
|
|
7876
|
-
return /* @__PURE__ */
|
|
7908
|
+
return /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
7877
7909
|
className: props.classNames
|
|
7878
|
-
}, /* @__PURE__ */
|
|
7910
|
+
}, /* @__PURE__ */ import_react44.default.createElement("svg", {
|
|
7879
7911
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7880
7912
|
width: "24",
|
|
7881
7913
|
height: "24",
|
|
@@ -7885,18 +7917,18 @@ var EyeIcon = function(props) {
|
|
|
7885
7917
|
"stroke-width": "2",
|
|
7886
7918
|
"stroke-linecap": "round",
|
|
7887
7919
|
"stroke-linejoin": "round"
|
|
7888
|
-
}, /* @__PURE__ */
|
|
7920
|
+
}, /* @__PURE__ */ import_react44.default.createElement("path", {
|
|
7889
7921
|
d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"
|
|
7890
|
-
}), /* @__PURE__ */
|
|
7922
|
+
}), /* @__PURE__ */ import_react44.default.createElement("circle", {
|
|
7891
7923
|
cx: "12",
|
|
7892
7924
|
cy: "12",
|
|
7893
7925
|
r: "3"
|
|
7894
7926
|
})));
|
|
7895
7927
|
};
|
|
7896
7928
|
var HiddenEyeIcon = function(props) {
|
|
7897
|
-
return /* @__PURE__ */
|
|
7929
|
+
return /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
7898
7930
|
className: props.classNames
|
|
7899
|
-
}, /* @__PURE__ */
|
|
7931
|
+
}, /* @__PURE__ */ import_react44.default.createElement("svg", {
|
|
7900
7932
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7901
7933
|
width: "24",
|
|
7902
7934
|
height: "24",
|
|
@@ -7906,13 +7938,13 @@ var HiddenEyeIcon = function(props) {
|
|
|
7906
7938
|
"stroke-width": "2",
|
|
7907
7939
|
"stroke-linecap": "round",
|
|
7908
7940
|
"stroke-linejoin": "round"
|
|
7909
|
-
}, /* @__PURE__ */
|
|
7941
|
+
}, /* @__PURE__ */ import_react44.default.createElement("path", {
|
|
7910
7942
|
d: "M9.88 9.88a3 3 0 1 0 4.24 4.24"
|
|
7911
|
-
}), /* @__PURE__ */
|
|
7943
|
+
}), /* @__PURE__ */ import_react44.default.createElement("path", {
|
|
7912
7944
|
d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"
|
|
7913
|
-
}), /* @__PURE__ */
|
|
7945
|
+
}), /* @__PURE__ */ import_react44.default.createElement("path", {
|
|
7914
7946
|
d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"
|
|
7915
|
-
}), /* @__PURE__ */
|
|
7947
|
+
}), /* @__PURE__ */ import_react44.default.createElement("line", {
|
|
7916
7948
|
x1: "2",
|
|
7917
7949
|
x2: "22",
|
|
7918
7950
|
y1: "2",
|
|
@@ -7926,7 +7958,7 @@ var LoginForm = function(_param) {
|
|
|
7926
7958
|
"texts",
|
|
7927
7959
|
"passwordLength"
|
|
7928
7960
|
]);
|
|
7929
|
-
var _ref = _sliced_to_array((0,
|
|
7961
|
+
var _ref = _sliced_to_array((0, import_react45.useState)(false), 2), passwordVisible = _ref[0], setPasswordVisible = _ref[1];
|
|
7930
7962
|
var thirdPartyAuthTexts = {
|
|
7931
7963
|
continueWithGoogle: texts === null || texts === void 0 ? void 0 : texts.continueWithGoogle,
|
|
7932
7964
|
continueWithTwitter: texts === null || texts === void 0 ? void 0 : texts.continueWithTwitter,
|
|
@@ -8008,13 +8040,13 @@ var LoginForm = function(_param) {
|
|
|
8008
8040
|
var renderFields = function() {
|
|
8009
8041
|
switch(loginType){
|
|
8010
8042
|
case "email":
|
|
8011
|
-
return /* @__PURE__ */
|
|
8043
|
+
return /* @__PURE__ */ import_react45.default.createElement(import_react45.default.Fragment, null, /* @__PURE__ */ import_react45.default.createElement(import_react_hook_form.Controller, {
|
|
8012
8044
|
control: control,
|
|
8013
8045
|
name: "email",
|
|
8014
8046
|
render: function(param) {
|
|
8015
8047
|
var field = param.field;
|
|
8016
8048
|
var _texts_email, _formState_errors_email, _texts_email1;
|
|
8017
|
-
return /* @__PURE__ */
|
|
8049
|
+
return /* @__PURE__ */ import_react45.default.createElement(Input, _object_spread({
|
|
8018
8050
|
width: "full",
|
|
8019
8051
|
autoComplete: "email",
|
|
8020
8052
|
label: texts === null || texts === void 0 ? void 0 : (_texts_email = texts.email) === null || _texts_email === void 0 ? void 0 : _texts_email.label,
|
|
@@ -8022,43 +8054,43 @@ var LoginForm = function(_param) {
|
|
|
8022
8054
|
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"
|
|
8023
8055
|
}, field));
|
|
8024
8056
|
}
|
|
8025
|
-
}), /* @__PURE__ */
|
|
8057
|
+
}), /* @__PURE__ */ import_react45.default.createElement("div", null, /* @__PURE__ */ import_react45.default.createElement(import_react_hook_form.Controller, {
|
|
8026
8058
|
control: control,
|
|
8027
8059
|
name: "password",
|
|
8028
8060
|
render: function(param) {
|
|
8029
8061
|
var field = param.field;
|
|
8030
8062
|
var _texts_password, _texts_password1, _formState_errors_password;
|
|
8031
|
-
return /* @__PURE__ */
|
|
8063
|
+
return /* @__PURE__ */ import_react45.default.createElement(Input, _object_spread({
|
|
8032
8064
|
width: "full",
|
|
8033
8065
|
autoComplete: "current-password",
|
|
8034
8066
|
type: passwordVisible ? "text" : "password",
|
|
8035
8067
|
label: (texts === null || texts === void 0 ? void 0 : (_texts_password = texts.password) === null || _texts_password === void 0 ? void 0 : _texts_password.label) || "Password",
|
|
8036
|
-
iconInside: /* @__PURE__ */
|
|
8068
|
+
iconInside: /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
8037
8069
|
className: "hawa-cursor-pointer",
|
|
8038
8070
|
onClick: function() {
|
|
8039
8071
|
return setPasswordVisible(!passwordVisible);
|
|
8040
8072
|
}
|
|
8041
|
-
}, passwordVisible ? /* @__PURE__ */
|
|
8073
|
+
}, passwordVisible ? /* @__PURE__ */ import_react45.default.createElement(EyeIcon, {
|
|
8042
8074
|
classNames: "hawa-text-gray-500"
|
|
8043
|
-
}) : /* @__PURE__ */
|
|
8075
|
+
}) : /* @__PURE__ */ import_react45.default.createElement(HiddenEyeIcon, {
|
|
8044
8076
|
classNames: "hawa-text-gray-500"
|
|
8045
8077
|
})),
|
|
8046
8078
|
placeholder: (texts === null || texts === void 0 ? void 0 : (_texts_password1 = texts.password) === null || _texts_password1 === void 0 ? void 0 : _texts_password1.placeholder) || "Enter your password",
|
|
8047
8079
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
8048
8080
|
}, field));
|
|
8049
8081
|
}
|
|
8050
|
-
}), !props.withoutResetPassword && /* @__PURE__ */
|
|
8082
|
+
}), !props.withoutResetPassword && /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
8051
8083
|
onClick: props.onForgotPassword,
|
|
8052
8084
|
className: "hawa-mb-3 hawa-select-none hawa-mt-2 hawa-w-fit hawa-cursor-pointer hawa-text-xs dark:hawa-text-gray-300"
|
|
8053
8085
|
}, (texts === null || texts === void 0 ? void 0 : texts.forgotPassword) || "Forgot Password?")));
|
|
8054
8086
|
case "username":
|
|
8055
|
-
return /* @__PURE__ */
|
|
8087
|
+
return /* @__PURE__ */ import_react45.default.createElement(import_react45.default.Fragment, null, /* @__PURE__ */ import_react45.default.createElement(import_react_hook_form.Controller, {
|
|
8056
8088
|
control: control,
|
|
8057
8089
|
name: "username",
|
|
8058
8090
|
render: function(param) {
|
|
8059
8091
|
var field = param.field;
|
|
8060
8092
|
var _texts_username, _formState_errors_username, _texts_username1;
|
|
8061
|
-
return /* @__PURE__ */
|
|
8093
|
+
return /* @__PURE__ */ import_react45.default.createElement(Input, _object_spread({
|
|
8062
8094
|
width: "full",
|
|
8063
8095
|
autoComplete: "username",
|
|
8064
8096
|
label: (texts === null || texts === void 0 ? void 0 : (_texts_username = texts.username) === null || _texts_username === void 0 ? void 0 : _texts_username.label) || "Username",
|
|
@@ -8066,43 +8098,43 @@ var LoginForm = function(_param) {
|
|
|
8066
8098
|
placeholder: (texts === null || texts === void 0 ? void 0 : (_texts_username1 = texts.username) === null || _texts_username1 === void 0 ? void 0 : _texts_username1.placeholder) || "sikka_sa"
|
|
8067
8099
|
}, field));
|
|
8068
8100
|
}
|
|
8069
|
-
}), /* @__PURE__ */
|
|
8101
|
+
}), /* @__PURE__ */ import_react45.default.createElement("div", null, /* @__PURE__ */ import_react45.default.createElement(import_react_hook_form.Controller, {
|
|
8070
8102
|
control: control,
|
|
8071
8103
|
name: "password",
|
|
8072
8104
|
render: function(param) {
|
|
8073
8105
|
var field = param.field;
|
|
8074
8106
|
var _texts_password, _texts_password1, _formState_errors_password;
|
|
8075
|
-
return /* @__PURE__ */
|
|
8107
|
+
return /* @__PURE__ */ import_react45.default.createElement(Input, _object_spread({
|
|
8076
8108
|
width: "full",
|
|
8077
8109
|
autoComplete: "current-password",
|
|
8078
8110
|
type: passwordVisible ? "text" : "password",
|
|
8079
8111
|
label: texts === null || texts === void 0 ? void 0 : (_texts_password = texts.password) === null || _texts_password === void 0 ? void 0 : _texts_password.label,
|
|
8080
|
-
iconInside: /* @__PURE__ */
|
|
8112
|
+
iconInside: /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
8081
8113
|
className: "hawa-cursor-pointer",
|
|
8082
8114
|
onClick: function() {
|
|
8083
8115
|
return setPasswordVisible(!passwordVisible);
|
|
8084
8116
|
}
|
|
8085
|
-
}, passwordVisible ? /* @__PURE__ */
|
|
8117
|
+
}, passwordVisible ? /* @__PURE__ */ import_react45.default.createElement(EyeIcon, {
|
|
8086
8118
|
classNames: "hawa-text-gray-500"
|
|
8087
|
-
}) : /* @__PURE__ */
|
|
8119
|
+
}) : /* @__PURE__ */ import_react45.default.createElement(HiddenEyeIcon, {
|
|
8088
8120
|
classNames: "hawa-text-gray-500"
|
|
8089
8121
|
})),
|
|
8090
8122
|
placeholder: (texts === null || texts === void 0 ? void 0 : (_texts_password1 = texts.password) === null || _texts_password1 === void 0 ? void 0 : _texts_password1.placeholder) || "Enter your password",
|
|
8091
8123
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
8092
8124
|
}, field));
|
|
8093
8125
|
}
|
|
8094
|
-
}), !props.withoutResetPassword && /* @__PURE__ */
|
|
8126
|
+
}), !props.withoutResetPassword && /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
8095
8127
|
onClick: props.onForgotPassword,
|
|
8096
8128
|
className: "hawa-mb-3 hawa-select-none hawa-mt-2 hawa-w-fit hawa-cursor-pointer hawa-text-xs dark:hawa-text-gray-300"
|
|
8097
8129
|
}, (texts === null || texts === void 0 ? void 0 : texts.forgotPassword) || "Forgot Password?")));
|
|
8098
8130
|
case "phone":
|
|
8099
|
-
return /* @__PURE__ */
|
|
8131
|
+
return /* @__PURE__ */ import_react45.default.createElement(import_react45.default.Fragment, null, /* @__PURE__ */ import_react45.default.createElement(import_react_hook_form.Controller, {
|
|
8100
8132
|
control: control,
|
|
8101
8133
|
name: "phone",
|
|
8102
8134
|
render: function(param) {
|
|
8103
8135
|
var field = param.field;
|
|
8104
8136
|
var _texts_phone, _formState_errors_phone;
|
|
8105
|
-
return /* @__PURE__ */
|
|
8137
|
+
return /* @__PURE__ */ import_react45.default.createElement(PhoneInput, {
|
|
8106
8138
|
label: texts === null || texts === void 0 ? void 0 : (_texts_phone = texts.phone) === null || _texts_phone === void 0 ? void 0 : _texts_phone.label,
|
|
8107
8139
|
helperText: (_formState_errors_phone = formState.errors.phone) === null || _formState_errors_phone === void 0 ? void 0 : _formState_errors_phone.message,
|
|
8108
8140
|
preferredCountry: {
|
|
@@ -8115,13 +8147,13 @@ var LoginForm = function(_param) {
|
|
|
8115
8147
|
}
|
|
8116
8148
|
}));
|
|
8117
8149
|
case "link":
|
|
8118
|
-
return /* @__PURE__ */
|
|
8150
|
+
return /* @__PURE__ */ import_react45.default.createElement(import_react45.default.Fragment, null, /* @__PURE__ */ import_react45.default.createElement(import_react_hook_form.Controller, {
|
|
8119
8151
|
control: control,
|
|
8120
8152
|
name: "email",
|
|
8121
8153
|
render: function(param) {
|
|
8122
8154
|
var field = param.field;
|
|
8123
8155
|
var _texts_email, _formState_errors_email, _texts_email1;
|
|
8124
|
-
return /* @__PURE__ */
|
|
8156
|
+
return /* @__PURE__ */ import_react45.default.createElement(Input, _object_spread({
|
|
8125
8157
|
width: "full",
|
|
8126
8158
|
autoComplete: "email",
|
|
8127
8159
|
label: (texts === null || texts === void 0 ? void 0 : (_texts_email = texts.email) === null || _texts_email === void 0 ? void 0 : _texts_email.label) || "Email",
|
|
@@ -8134,17 +8166,17 @@ var LoginForm = function(_param) {
|
|
|
8134
8166
|
break;
|
|
8135
8167
|
}
|
|
8136
8168
|
};
|
|
8137
|
-
return /* @__PURE__ */
|
|
8169
|
+
return /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
8138
8170
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
8139
|
-
}, /* @__PURE__ */
|
|
8171
|
+
}, /* @__PURE__ */ import_react45.default.createElement(Card, {
|
|
8140
8172
|
dir: props.direction
|
|
8141
|
-
}, /* @__PURE__ */
|
|
8173
|
+
}, /* @__PURE__ */ import_react45.default.createElement(CardContent, {
|
|
8142
8174
|
headless: true
|
|
8143
|
-
}, props.showError && /* @__PURE__ */
|
|
8175
|
+
}, props.showError && /* @__PURE__ */ import_react45.default.createElement(Alert, {
|
|
8144
8176
|
title: props.errorTitle,
|
|
8145
8177
|
text: props.errorText,
|
|
8146
8178
|
severity: "error"
|
|
8147
|
-
}), /* @__PURE__ */
|
|
8179
|
+
}), /* @__PURE__ */ import_react45.default.createElement("form", {
|
|
8148
8180
|
noValidate: true,
|
|
8149
8181
|
className: "hawa-flex hawa-flex-col hawa-gap-4",
|
|
8150
8182
|
onSubmit: handleSubmit(function(e) {
|
|
@@ -8154,18 +8186,18 @@ var LoginForm = function(_param) {
|
|
|
8154
8186
|
console.log("Form is submitted but onLogin prop is missing");
|
|
8155
8187
|
}
|
|
8156
8188
|
})
|
|
8157
|
-
}, renderFields(), /* @__PURE__ */
|
|
8189
|
+
}, renderFields(), /* @__PURE__ */ import_react45.default.createElement(Button, {
|
|
8158
8190
|
className: "hawa-mt-0 hawa-w-full",
|
|
8159
8191
|
type: "submit",
|
|
8160
8192
|
isLoading: props.isLoading
|
|
8161
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login"), props.additionalButtons, props.allowRegister && /* @__PURE__ */
|
|
8193
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login"), props.additionalButtons, props.allowRegister && /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
8162
8194
|
className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal hawa-select-none dark:hawa-text-gray-300"
|
|
8163
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.newUserText) || "New user?", " ", /* @__PURE__ */
|
|
8195
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.newUserText) || "New user?", " ", /* @__PURE__ */ import_react45.default.createElement("span", {
|
|
8164
8196
|
onClick: props.onRouteToRegister,
|
|
8165
8197
|
className: "clickable-link"
|
|
8166
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.createAccount) || "Create Account")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
|
8198
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.createAccount) || "Create Account")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react45.default.createElement(CardFooter, {
|
|
8167
8199
|
className: cn(props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2")
|
|
8168
|
-
}, /* @__PURE__ */
|
|
8200
|
+
}, /* @__PURE__ */ import_react45.default.createElement(AuthButtons, {
|
|
8169
8201
|
texts: thirdPartyAuthTexts,
|
|
8170
8202
|
viaGoogle: props.viaGoogle,
|
|
8171
8203
|
viaGithub: props.viaGithub,
|
|
@@ -8173,7 +8205,7 @@ var LoginForm = function(_param) {
|
|
|
8173
8205
|
handleGoogle: props.onGoogleLogin,
|
|
8174
8206
|
handleGithub: props.onGithubLogin,
|
|
8175
8207
|
handleTwitter: props.onTwitterLogin
|
|
8176
|
-
})) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */
|
|
8208
|
+
})) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */ import_react45.default.createElement(InterfaceSettings, {
|
|
8177
8209
|
currentColorMode: props.currentColorMode,
|
|
8178
8210
|
currentLanguage: props.currentLanguage,
|
|
8179
8211
|
handleColorMode: props.handleColorMode,
|
|
@@ -8181,7 +8213,7 @@ var LoginForm = function(_param) {
|
|
|
8181
8213
|
}));
|
|
8182
8214
|
};
|
|
8183
8215
|
// components/blocks/auth/RegisterForm.tsx
|
|
8184
|
-
var
|
|
8216
|
+
var import_react46 = __toESM(require("react"));
|
|
8185
8217
|
var import_react_hook_form2 = require("react-hook-form");
|
|
8186
8218
|
var import_zod2 = require("@hookform/resolvers/zod");
|
|
8187
8219
|
var z2 = __toESM(require("zod"));
|
|
@@ -8190,7 +8222,7 @@ var RegisterForm = function(_param) {
|
|
|
8190
8222
|
"texts"
|
|
8191
8223
|
]);
|
|
8192
8224
|
var _texts_password, _texts_password1, _texts_password2, _texts_confirm, _texts_password3, _texts_confirm1;
|
|
8193
|
-
var _ref = _sliced_to_array((0,
|
|
8225
|
+
var _ref = _sliced_to_array((0, import_react46.useState)(false), 2), passwordVisible = _ref[0], setPasswordVisible = _ref[1];
|
|
8194
8226
|
var thirdPartyAuthTexts = {
|
|
8195
8227
|
continueWithGoogle: texts === null || texts === void 0 ? void 0 : texts.continueWithGoogle,
|
|
8196
8228
|
continueWithTwitter: texts === null || texts === void 0 ? void 0 : texts.continueWithTwitter,
|
|
@@ -8270,17 +8302,17 @@ var RegisterForm = function(_param) {
|
|
|
8270
8302
|
var _ref1 = (0, import_react_hook_form2.useForm)({
|
|
8271
8303
|
resolver: (0, import_zod2.zodResolver)(formSchema)
|
|
8272
8304
|
}), handleSubmit = _ref1.handleSubmit, control = _ref1.control, formState = _ref1.formState;
|
|
8273
|
-
return /* @__PURE__ */
|
|
8305
|
+
return /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
8274
8306
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
8275
|
-
}, /* @__PURE__ */
|
|
8307
|
+
}, /* @__PURE__ */ import_react46.default.createElement(Card, {
|
|
8276
8308
|
dir: props.direction
|
|
8277
|
-
}, /* @__PURE__ */
|
|
8309
|
+
}, /* @__PURE__ */ import_react46.default.createElement(CardContent, {
|
|
8278
8310
|
headless: true
|
|
8279
|
-
}, /* @__PURE__ */
|
|
8311
|
+
}, /* @__PURE__ */ import_react46.default.createElement("div", null, props.showError && /* @__PURE__ */ import_react46.default.createElement(Alert, {
|
|
8280
8312
|
title: props.errorTitle,
|
|
8281
8313
|
text: props.errorText,
|
|
8282
8314
|
severity: "error"
|
|
8283
|
-
}), /* @__PURE__ */
|
|
8315
|
+
}), /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form2.FormProvider, _object_spread({}, methods), /* @__PURE__ */ import_react46.default.createElement("form", {
|
|
8284
8316
|
noValidate: true,
|
|
8285
8317
|
onSubmit: handleSubmit(function(e) {
|
|
8286
8318
|
if (props.onRegister) {
|
|
@@ -8290,18 +8322,18 @@ var RegisterForm = function(_param) {
|
|
|
8290
8322
|
}
|
|
8291
8323
|
}),
|
|
8292
8324
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
8293
|
-
}, /* @__PURE__ */
|
|
8325
|
+
}, /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
8294
8326
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
8295
8327
|
}, props.registerFields.map(function(fld, i) {
|
|
8296
8328
|
if (fld === "fullname") {
|
|
8297
|
-
return /* @__PURE__ */
|
|
8329
|
+
return /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form2.Controller, {
|
|
8298
8330
|
key: i,
|
|
8299
8331
|
control: control,
|
|
8300
8332
|
name: "fullName",
|
|
8301
8333
|
render: function(param) {
|
|
8302
8334
|
var field = param.field;
|
|
8303
8335
|
var _texts_fullName, _texts_fullName1, _formState_errors_fullName;
|
|
8304
|
-
return /* @__PURE__ */
|
|
8336
|
+
return /* @__PURE__ */ import_react46.default.createElement(Input, _object_spread({
|
|
8305
8337
|
width: "full",
|
|
8306
8338
|
label: texts === null || texts === void 0 ? void 0 : (_texts_fullName = texts.fullName) === null || _texts_fullName === void 0 ? void 0 : _texts_fullName.label,
|
|
8307
8339
|
placeholder: texts === null || texts === void 0 ? void 0 : (_texts_fullName1 = texts.fullName) === null || _texts_fullName1 === void 0 ? void 0 : _texts_fullName1.placeholder,
|
|
@@ -8311,14 +8343,14 @@ var RegisterForm = function(_param) {
|
|
|
8311
8343
|
});
|
|
8312
8344
|
}
|
|
8313
8345
|
if (fld === "email") {
|
|
8314
|
-
return /* @__PURE__ */
|
|
8346
|
+
return /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form2.Controller, {
|
|
8315
8347
|
key: i,
|
|
8316
8348
|
control: control,
|
|
8317
8349
|
name: "email",
|
|
8318
8350
|
render: function(param) {
|
|
8319
8351
|
var field = param.field;
|
|
8320
8352
|
var _texts_email, _formState_errors_email, _texts_email1;
|
|
8321
|
-
return /* @__PURE__ */
|
|
8353
|
+
return /* @__PURE__ */ import_react46.default.createElement(Input, _object_spread({
|
|
8322
8354
|
width: "full",
|
|
8323
8355
|
autoComplete: "email",
|
|
8324
8356
|
label: texts === null || texts === void 0 ? void 0 : (_texts_email = texts.email) === null || _texts_email === void 0 ? void 0 : _texts_email.label,
|
|
@@ -8329,14 +8361,14 @@ var RegisterForm = function(_param) {
|
|
|
8329
8361
|
});
|
|
8330
8362
|
}
|
|
8331
8363
|
if (fld === "username") {
|
|
8332
|
-
return /* @__PURE__ */
|
|
8364
|
+
return /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form2.Controller, {
|
|
8333
8365
|
key: i,
|
|
8334
8366
|
control: control,
|
|
8335
8367
|
name: "username",
|
|
8336
8368
|
render: function(param) {
|
|
8337
8369
|
var field = param.field;
|
|
8338
8370
|
var _texts_username, _formState_errors_username, _texts_username1;
|
|
8339
|
-
return /* @__PURE__ */
|
|
8371
|
+
return /* @__PURE__ */ import_react46.default.createElement(Input, _object_spread({
|
|
8340
8372
|
width: "full",
|
|
8341
8373
|
autoComplete: "username",
|
|
8342
8374
|
label: texts === null || texts === void 0 ? void 0 : (_texts_username = texts.username) === null || _texts_username === void 0 ? void 0 : _texts_username.label,
|
|
@@ -8346,23 +8378,23 @@ var RegisterForm = function(_param) {
|
|
|
8346
8378
|
}
|
|
8347
8379
|
});
|
|
8348
8380
|
}
|
|
8349
|
-
})), /* @__PURE__ */
|
|
8381
|
+
})), /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form2.Controller, {
|
|
8350
8382
|
control: control,
|
|
8351
8383
|
name: "password",
|
|
8352
8384
|
render: function(param) {
|
|
8353
8385
|
var field = param.field;
|
|
8354
8386
|
var _texts_password, _texts_password1, _formState_errors_password;
|
|
8355
|
-
return /* @__PURE__ */
|
|
8387
|
+
return /* @__PURE__ */ import_react46.default.createElement(Input, _object_spread({
|
|
8356
8388
|
width: "full",
|
|
8357
8389
|
type: passwordVisible ? "text" : "password",
|
|
8358
|
-
iconInside: /* @__PURE__ */
|
|
8390
|
+
iconInside: /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
8359
8391
|
className: "hawa-cursor-pointer",
|
|
8360
8392
|
onClick: function() {
|
|
8361
8393
|
return setPasswordVisible(!passwordVisible);
|
|
8362
8394
|
}
|
|
8363
|
-
}, passwordVisible ? /* @__PURE__ */
|
|
8395
|
+
}, passwordVisible ? /* @__PURE__ */ import_react46.default.createElement(EyeIcon, {
|
|
8364
8396
|
classNames: "hawa-text-gray-500"
|
|
8365
|
-
}) : /* @__PURE__ */
|
|
8397
|
+
}) : /* @__PURE__ */ import_react46.default.createElement(HiddenEyeIcon, {
|
|
8366
8398
|
classNames: "hawa-text-gray-500"
|
|
8367
8399
|
}), " "),
|
|
8368
8400
|
autoComplete: "new-password",
|
|
@@ -8371,13 +8403,13 @@ var RegisterForm = function(_param) {
|
|
|
8371
8403
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
8372
8404
|
}, field));
|
|
8373
8405
|
}
|
|
8374
|
-
}), /* @__PURE__ */
|
|
8406
|
+
}), /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form2.Controller, {
|
|
8375
8407
|
control: control,
|
|
8376
8408
|
name: "confirm_password",
|
|
8377
8409
|
render: function(param) {
|
|
8378
8410
|
var field = param.field;
|
|
8379
8411
|
var _texts_confirm, _texts_confirm1, _formState_errors_confirm_password;
|
|
8380
|
-
return /* @__PURE__ */
|
|
8412
|
+
return /* @__PURE__ */ import_react46.default.createElement(Input, _object_spread({
|
|
8381
8413
|
width: "full",
|
|
8382
8414
|
type: "password",
|
|
8383
8415
|
autoComplete: "new-password",
|
|
@@ -8386,25 +8418,25 @@ var RegisterForm = function(_param) {
|
|
|
8386
8418
|
helperText: (_formState_errors_confirm_password = formState.errors.confirm_password) === null || _formState_errors_confirm_password === void 0 ? void 0 : _formState_errors_confirm_password.message
|
|
8387
8419
|
}, field));
|
|
8388
8420
|
}
|
|
8389
|
-
}), props.additionalInputs, props.showRefCode && /* @__PURE__ */
|
|
8421
|
+
}), props.additionalInputs, props.showRefCode && /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form2.Controller, {
|
|
8390
8422
|
control: control,
|
|
8391
8423
|
name: "refCode",
|
|
8392
8424
|
render: function(param) {
|
|
8393
8425
|
var field = param.field;
|
|
8394
8426
|
var _formState_errors_refCode;
|
|
8395
|
-
return /* @__PURE__ */
|
|
8427
|
+
return /* @__PURE__ */ import_react46.default.createElement(Input, _object_spread({
|
|
8396
8428
|
width: "full",
|
|
8397
8429
|
label: texts === null || texts === void 0 ? void 0 : texts.refCode,
|
|
8398
8430
|
placeholder: (texts === null || texts === void 0 ? void 0 : texts.refCodePlaceholder) || "Enter the referral code",
|
|
8399
8431
|
helperText: (_formState_errors_refCode = formState.errors.refCode) === null || _formState_errors_refCode === void 0 ? void 0 : _formState_errors_refCode.message
|
|
8400
8432
|
}, field));
|
|
8401
8433
|
}
|
|
8402
|
-
}), props.showUserSource && /* @__PURE__ */
|
|
8434
|
+
}), props.showUserSource && /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form2.Controller, {
|
|
8403
8435
|
control: control,
|
|
8404
8436
|
name: "reference",
|
|
8405
8437
|
render: function(param) {
|
|
8406
8438
|
var field = param.field;
|
|
8407
|
-
return /* @__PURE__ */
|
|
8439
|
+
return /* @__PURE__ */ import_react46.default.createElement(Select, {
|
|
8408
8440
|
label: (texts === null || texts === void 0 ? void 0 : texts.userReference.label) || "How did you learn about us?",
|
|
8409
8441
|
placeholder: texts === null || texts === void 0 ? void 0 : texts.userReference.placeholder,
|
|
8410
8442
|
isCreatable: false,
|
|
@@ -8417,50 +8449,50 @@ var RegisterForm = function(_param) {
|
|
|
8417
8449
|
}
|
|
8418
8450
|
});
|
|
8419
8451
|
}
|
|
8420
|
-
}), /* @__PURE__ */
|
|
8452
|
+
}), /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
8421
8453
|
className: "hawa-flex hawa-flex-col hawa-gap-3"
|
|
8422
|
-
}, props.showTermsOption && /* @__PURE__ */
|
|
8454
|
+
}, props.showTermsOption && /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form2.Controller, {
|
|
8423
8455
|
control: control,
|
|
8424
8456
|
name: "terms_accepted",
|
|
8425
8457
|
render: function(param) {
|
|
8426
8458
|
var field = param.field;
|
|
8427
8459
|
var _formState_errors_terms_accepted_message, _formState_errors_terms_accepted;
|
|
8428
|
-
return /* @__PURE__ */
|
|
8460
|
+
return /* @__PURE__ */ import_react46.default.createElement(Checkbox, {
|
|
8429
8461
|
id: "terms_accepted",
|
|
8430
8462
|
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(),
|
|
8431
8463
|
onCheckedChange: function(e) {
|
|
8432
8464
|
return field.onChange(e);
|
|
8433
8465
|
},
|
|
8434
|
-
label: /* @__PURE__ */
|
|
8466
|
+
label: /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
8435
8467
|
className: "hawa-flex hawa-flex-row hawa-gap-0.5"
|
|
8436
|
-
}, /* @__PURE__ */
|
|
8468
|
+
}, /* @__PURE__ */ import_react46.default.createElement("span", null, texts === null || texts === void 0 ? void 0 : texts.iAcceptText), " ", /* @__PURE__ */ import_react46.default.createElement(StopPropagationWrapper, null, /* @__PURE__ */ import_react46.default.createElement("a", {
|
|
8437
8469
|
onClick: props.onRouteToTOS,
|
|
8438
8470
|
className: "clickable-link"
|
|
8439
8471
|
}, texts === null || texts === void 0 ? void 0 : texts.termsText)))
|
|
8440
8472
|
});
|
|
8441
8473
|
}
|
|
8442
|
-
}), props.showNewsletterOption && /* @__PURE__ */
|
|
8474
|
+
}), props.showNewsletterOption && /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form2.Controller, {
|
|
8443
8475
|
control: control,
|
|
8444
8476
|
name: "newsletter_accepted",
|
|
8445
8477
|
render: function(param) {
|
|
8446
8478
|
var field = param.field;
|
|
8447
|
-
return /* @__PURE__ */
|
|
8479
|
+
return /* @__PURE__ */ import_react46.default.createElement(Checkbox, {
|
|
8448
8480
|
id: "newsletter_accepted",
|
|
8449
8481
|
label: texts === null || texts === void 0 ? void 0 : texts.subscribeToNewsletter,
|
|
8450
8482
|
onCheckedChange: field.onChange
|
|
8451
8483
|
});
|
|
8452
8484
|
}
|
|
8453
|
-
})), /* @__PURE__ */
|
|
8485
|
+
})), /* @__PURE__ */ import_react46.default.createElement(Button, {
|
|
8454
8486
|
isLoading: props.isLoading,
|
|
8455
8487
|
className: "hawa-w-full hawa-mt-4"
|
|
8456
|
-
}, texts === null || texts === void 0 ? void 0 : texts.registerText), props.additionalButtons)), /* @__PURE__ */
|
|
8488
|
+
}, texts === null || texts === void 0 ? void 0 : texts.registerText), props.additionalButtons)), /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
8457
8489
|
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"
|
|
8458
|
-
}, /* @__PURE__ */
|
|
8490
|
+
}, /* @__PURE__ */ import_react46.default.createElement("span", null, texts === null || texts === void 0 ? void 0 : texts.existingUserText), /* @__PURE__ */ import_react46.default.createElement("span", {
|
|
8459
8491
|
onClick: props.onRouteToLogin,
|
|
8460
8492
|
className: "clickable-link"
|
|
8461
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
|
8493
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react46.default.createElement(CardFooter, {
|
|
8462
8494
|
className: cn(props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2")
|
|
8463
|
-
}, /* @__PURE__ */
|
|
8495
|
+
}, /* @__PURE__ */ import_react46.default.createElement(AuthButtons, {
|
|
8464
8496
|
texts: thirdPartyAuthTexts,
|
|
8465
8497
|
viaGoogle: props.viaGoogle,
|
|
8466
8498
|
viaGithub: props.viaGithub,
|
|
@@ -8468,7 +8500,7 @@ var RegisterForm = function(_param) {
|
|
|
8468
8500
|
handleGoogle: props.onGoogleRegister,
|
|
8469
8501
|
handleGithub: props.onGithubRegister,
|
|
8470
8502
|
handleTwitter: props.onTwitterRegister
|
|
8471
|
-
})) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */
|
|
8503
|
+
})) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */ import_react46.default.createElement(InterfaceSettings, {
|
|
8472
8504
|
currentColorMode: props.currentColorMode,
|
|
8473
8505
|
currentLanguage: props.currentLanguage,
|
|
8474
8506
|
handleColorMode: props.handleColorMode,
|
|
@@ -8476,7 +8508,7 @@ var RegisterForm = function(_param) {
|
|
|
8476
8508
|
}));
|
|
8477
8509
|
};
|
|
8478
8510
|
// components/blocks/auth/AppLanding.tsx
|
|
8479
|
-
var
|
|
8511
|
+
var import_react47 = __toESM(require("react"));
|
|
8480
8512
|
var AppLanding = function(_param) {
|
|
8481
8513
|
var texts = _param.texts, props = _object_without_properties(_param, [
|
|
8482
8514
|
"texts"
|
|
@@ -8490,12 +8522,12 @@ var AppLanding = function(_param) {
|
|
|
8490
8522
|
continueWithEmail: texts === null || texts === void 0 ? void 0 : texts.continueWithEmail,
|
|
8491
8523
|
continueWithPhone: texts === null || texts === void 0 ? void 0 : texts.continueWithPhone
|
|
8492
8524
|
};
|
|
8493
|
-
return /* @__PURE__ */
|
|
8525
|
+
return /* @__PURE__ */ import_react47.default.createElement("div", {
|
|
8494
8526
|
dir: props.direction
|
|
8495
|
-
}, /* @__PURE__ */
|
|
8527
|
+
}, /* @__PURE__ */ import_react47.default.createElement(Card, null, /* @__PURE__ */ import_react47.default.createElement(CardContent, {
|
|
8496
8528
|
headless: true,
|
|
8497
8529
|
className: "hawa-flex hawa-flex-col hawa-gap-6"
|
|
8498
|
-
}, /* @__PURE__ */
|
|
8530
|
+
}, /* @__PURE__ */ import_react47.default.createElement(AuthButtons, {
|
|
8499
8531
|
texts: thirdPartyAuthTexts,
|
|
8500
8532
|
viaApple: props.viaApple,
|
|
8501
8533
|
viaGoogle: props.viaGoogle,
|
|
@@ -8512,14 +8544,14 @@ var AppLanding = function(_param) {
|
|
|
8512
8544
|
handleEmail: props.handleEmail,
|
|
8513
8545
|
handlePhone: props.handlePhone
|
|
8514
8546
|
}), !props.withoutSignUp && //TODO: change to "register"
|
|
8515
|
-
/* @__PURE__ */
|
|
8547
|
+
/* @__PURE__ */ import_react47.default.createElement("div", {
|
|
8516
8548
|
className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-gray-300"
|
|
8517
|
-
}, texts === null || texts === void 0 ? void 0 : texts.newUserText, " ", /* @__PURE__ */
|
|
8549
|
+
}, texts === null || texts === void 0 ? void 0 : texts.newUserText, " ", /* @__PURE__ */ import_react47.default.createElement("span", {
|
|
8518
8550
|
onClick: props.handleRouteToRegister,
|
|
8519
8551
|
className: "clickable-link"
|
|
8520
|
-
}, texts === null || texts === void 0 ? void 0 : texts.createAccount)))), /* @__PURE__ */
|
|
8552
|
+
}, texts === null || texts === void 0 ? void 0 : texts.createAccount)))), /* @__PURE__ */ import_react47.default.createElement("div", {
|
|
8521
8553
|
className: "hawa-mt-4 hawa-flex hawa-flex-row hawa-justify-between"
|
|
8522
|
-
}, /* @__PURE__ */
|
|
8554
|
+
}, /* @__PURE__ */ import_react47.default.createElement(Radio, {
|
|
8523
8555
|
onChangeTab: props.handleLanguage,
|
|
8524
8556
|
design: "tabs",
|
|
8525
8557
|
options: [
|
|
@@ -8532,20 +8564,20 @@ var AppLanding = function(_param) {
|
|
|
8532
8564
|
label: "English"
|
|
8533
8565
|
}
|
|
8534
8566
|
]
|
|
8535
|
-
}), /* @__PURE__ */
|
|
8567
|
+
}), /* @__PURE__ */ import_react47.default.createElement(Radio, {
|
|
8536
8568
|
onChangeTab: props.handleColorMode,
|
|
8537
8569
|
design: "tabs",
|
|
8538
8570
|
options: [
|
|
8539
8571
|
{
|
|
8540
8572
|
value: "light",
|
|
8541
|
-
label: /* @__PURE__ */
|
|
8573
|
+
label: /* @__PURE__ */ import_react47.default.createElement("svg", {
|
|
8542
8574
|
width: "15",
|
|
8543
8575
|
height: "15",
|
|
8544
8576
|
viewBox: "0 0 15 15",
|
|
8545
8577
|
fill: "none",
|
|
8546
8578
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8547
8579
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
|
8548
|
-
}, /* @__PURE__ */
|
|
8580
|
+
}, /* @__PURE__ */ import_react47.default.createElement("path", {
|
|
8549
8581
|
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",
|
|
8550
8582
|
fill: "currentColor",
|
|
8551
8583
|
fillRule: "evenodd",
|
|
@@ -8554,7 +8586,7 @@ var AppLanding = function(_param) {
|
|
|
8554
8586
|
},
|
|
8555
8587
|
{
|
|
8556
8588
|
value: "dark",
|
|
8557
|
-
label: /* @__PURE__ */
|
|
8589
|
+
label: /* @__PURE__ */ import_react47.default.createElement("svg", {
|
|
8558
8590
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8559
8591
|
width: "24",
|
|
8560
8592
|
height: "24",
|
|
@@ -8565,7 +8597,7 @@ var AppLanding = function(_param) {
|
|
|
8565
8597
|
strokeLinecap: "round",
|
|
8566
8598
|
strokeLinejoin: "round",
|
|
8567
8599
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
|
8568
|
-
}, /* @__PURE__ */
|
|
8600
|
+
}, /* @__PURE__ */ import_react47.default.createElement("path", {
|
|
8569
8601
|
d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"
|
|
8570
8602
|
}))
|
|
8571
8603
|
}
|
|
@@ -8573,16 +8605,16 @@ var AppLanding = function(_param) {
|
|
|
8573
8605
|
})));
|
|
8574
8606
|
};
|
|
8575
8607
|
// components/blocks/auth/CheckEmail.tsx
|
|
8576
|
-
var
|
|
8608
|
+
var import_react48 = __toESM(require("react"));
|
|
8577
8609
|
var CheckEmail = function(param) {
|
|
8578
8610
|
var texts = param.texts, handleResend = param.handleResend;
|
|
8579
|
-
return /* @__PURE__ */
|
|
8611
|
+
return /* @__PURE__ */ import_react48.default.createElement(Card, null, /* @__PURE__ */ import_react48.default.createElement(CardContent, {
|
|
8580
8612
|
headless: true
|
|
8581
|
-
}, /* @__PURE__ */
|
|
8613
|
+
}, /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
8582
8614
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center"
|
|
8583
|
-
}, /* @__PURE__ */
|
|
8615
|
+
}, /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
8584
8616
|
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"
|
|
8585
|
-
}, /* @__PURE__ */
|
|
8617
|
+
}, /* @__PURE__ */ import_react48.default.createElement("svg", {
|
|
8586
8618
|
stroke: "currentColor",
|
|
8587
8619
|
fill: "none",
|
|
8588
8620
|
"stroke-width": "2",
|
|
@@ -8592,23 +8624,23 @@ var CheckEmail = function(param) {
|
|
|
8592
8624
|
height: "0.5em",
|
|
8593
8625
|
width: "0.5em",
|
|
8594
8626
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8595
|
-
}, /* @__PURE__ */
|
|
8627
|
+
}, /* @__PURE__ */ import_react48.default.createElement("path", {
|
|
8596
8628
|
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"
|
|
8597
|
-
}), /* @__PURE__ */
|
|
8629
|
+
}), /* @__PURE__ */ import_react48.default.createElement("polyline", {
|
|
8598
8630
|
points: "22,6 12,13 2,6"
|
|
8599
|
-
}))), /* @__PURE__ */
|
|
8631
|
+
}))), /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
8600
8632
|
className: "hawa-m-2 hawa-text-xl hawa-font-bold"
|
|
8601
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.checkEmail) || "Check your Email"), /* @__PURE__ */
|
|
8633
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.checkEmail) || "Check your Email"), /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
8602
8634
|
className: "hawa-text-sm"
|
|
8603
|
-
}, (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__ */
|
|
8635
|
+
}, (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_react48.default.createElement(CardFooter, {
|
|
8604
8636
|
className: "hawa-flex hawa-flex-col hawa-justify-center "
|
|
8605
|
-
}, /* @__PURE__ */
|
|
8637
|
+
}, /* @__PURE__ */ import_react48.default.createElement("span", {
|
|
8606
8638
|
className: "clickable-link hawa-text-sm",
|
|
8607
8639
|
onClick: handleResend
|
|
8608
8640
|
}, (texts === null || texts === void 0 ? void 0 : texts.resendEmail) || "Resend Email")));
|
|
8609
8641
|
};
|
|
8610
8642
|
// components/blocks/auth/NewPassword.tsx
|
|
8611
|
-
var
|
|
8643
|
+
var import_react49 = __toESM(require("react"));
|
|
8612
8644
|
var import_react_hook_form3 = require("react-hook-form");
|
|
8613
8645
|
var import_zod3 = require("@hookform/resolvers/zod");
|
|
8614
8646
|
var z3 = __toESM(require("zod"));
|
|
@@ -8643,18 +8675,18 @@ var NewPasswordForm = function(_param) {
|
|
|
8643
8675
|
var _ref = (0, import_react_hook_form3.useForm)({
|
|
8644
8676
|
resolver: (0, import_zod3.zodResolver)(formSchema)
|
|
8645
8677
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState;
|
|
8646
|
-
var _ref1 = _sliced_to_array((0,
|
|
8678
|
+
var _ref1 = _sliced_to_array((0, import_react49.useState)(false), 2), matchError = _ref1[0], setMatchError = _ref1[1];
|
|
8647
8679
|
var _texts_dontHaveAccount, _texts_registerText;
|
|
8648
|
-
return /* @__PURE__ */
|
|
8680
|
+
return /* @__PURE__ */ import_react49.default.createElement(Card, {
|
|
8649
8681
|
dir: props.direction
|
|
8650
|
-
}, matchError && /* @__PURE__ */
|
|
8682
|
+
}, matchError && /* @__PURE__ */ import_react49.default.createElement(Alert, {
|
|
8651
8683
|
text: texts === null || texts === void 0 ? void 0 : (_texts_confirm2 = texts.confirm) === null || _texts_confirm2 === void 0 ? void 0 : _texts_confirm2.dontMatch,
|
|
8652
8684
|
severity: "error"
|
|
8653
|
-
}), props.passwordChanged ? /* @__PURE__ */
|
|
8685
|
+
}), props.passwordChanged ? /* @__PURE__ */ import_react49.default.createElement(CardContent, {
|
|
8654
8686
|
headless: true
|
|
8655
|
-
}, /* @__PURE__ */
|
|
8687
|
+
}, /* @__PURE__ */ import_react49.default.createElement("div", {
|
|
8656
8688
|
className: "hawa-text-center"
|
|
8657
|
-
}, texts === null || texts === void 0 ? void 0 : texts.passwordChanged)) : /* @__PURE__ */
|
|
8689
|
+
}, texts === null || texts === void 0 ? void 0 : texts.passwordChanged)) : /* @__PURE__ */ import_react49.default.createElement("form", {
|
|
8658
8690
|
noValidate: true,
|
|
8659
8691
|
onSubmit: handleSubmit(function(e) {
|
|
8660
8692
|
if (props.handleNewPassword) {
|
|
@@ -8663,16 +8695,16 @@ var NewPasswordForm = function(_param) {
|
|
|
8663
8695
|
console.log("Form is submitted but handleSubmission prop is missing");
|
|
8664
8696
|
}
|
|
8665
8697
|
})
|
|
8666
|
-
}, !props.headless && /* @__PURE__ */
|
|
8698
|
+
}, !props.headless && /* @__PURE__ */ import_react49.default.createElement(CardHeader, null, /* @__PURE__ */ import_react49.default.createElement(CardTitle, null, "Create Password"), /* @__PURE__ */ import_react49.default.createElement(CardDescription, null, "Set a new password for your account")), /* @__PURE__ */ import_react49.default.createElement(CardContent, {
|
|
8667
8699
|
headless: props.headless,
|
|
8668
8700
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
8669
|
-
}, /* @__PURE__ */
|
|
8701
|
+
}, /* @__PURE__ */ import_react49.default.createElement(import_react_hook_form3.Controller, {
|
|
8670
8702
|
control: control,
|
|
8671
8703
|
name: "password",
|
|
8672
8704
|
render: function(param) {
|
|
8673
8705
|
var field = param.field;
|
|
8674
8706
|
var _texts_password, _texts_password1, _formState_errors_password;
|
|
8675
|
-
return /* @__PURE__ */
|
|
8707
|
+
return /* @__PURE__ */ import_react49.default.createElement(Input, _object_spread({
|
|
8676
8708
|
width: "full",
|
|
8677
8709
|
type: "password",
|
|
8678
8710
|
autoComplete: "new-password",
|
|
@@ -8681,13 +8713,13 @@ var NewPasswordForm = function(_param) {
|
|
|
8681
8713
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
8682
8714
|
}, field));
|
|
8683
8715
|
}
|
|
8684
|
-
}), /* @__PURE__ */
|
|
8716
|
+
}), /* @__PURE__ */ import_react49.default.createElement(import_react_hook_form3.Controller, {
|
|
8685
8717
|
control: control,
|
|
8686
8718
|
name: "confirm_password",
|
|
8687
8719
|
render: function(param) {
|
|
8688
8720
|
var field = param.field;
|
|
8689
8721
|
var _texts_confirm, _texts_confirm1, _formState_errors_confirm_password;
|
|
8690
|
-
return /* @__PURE__ */
|
|
8722
|
+
return /* @__PURE__ */ import_react49.default.createElement(Input, _object_spread({
|
|
8691
8723
|
width: "full",
|
|
8692
8724
|
type: "password",
|
|
8693
8725
|
autoComplete: "new-password",
|
|
@@ -8696,20 +8728,20 @@ var NewPasswordForm = function(_param) {
|
|
|
8696
8728
|
helperText: (_formState_errors_confirm_password = formState.errors.confirm_password) === null || _formState_errors_confirm_password === void 0 ? void 0 : _formState_errors_confirm_password.message
|
|
8697
8729
|
}, field));
|
|
8698
8730
|
}
|
|
8699
|
-
})), /* @__PURE__ */
|
|
8731
|
+
})), /* @__PURE__ */ import_react49.default.createElement(CardFooter, {
|
|
8700
8732
|
className: "hawa-flex hawa-flex-col"
|
|
8701
|
-
}, /* @__PURE__ */
|
|
8733
|
+
}, /* @__PURE__ */ import_react49.default.createElement(Button, {
|
|
8702
8734
|
className: "hawa-w-full",
|
|
8703
8735
|
type: "submit"
|
|
8704
|
-
}, texts === null || texts === void 0 ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */
|
|
8736
|
+
}, texts === null || texts === void 0 ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ import_react49.default.createElement("div", {
|
|
8705
8737
|
className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300"
|
|
8706
|
-
}, (_texts_dontHaveAccount = texts === null || texts === void 0 ? void 0 : texts.dontHaveAccount) !== null && _texts_dontHaveAccount !== void 0 ? _texts_dontHaveAccount : "Don't have an account? ", /* @__PURE__ */
|
|
8738
|
+
}, (_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_react49.default.createElement("span", {
|
|
8707
8739
|
className: "clickable-link",
|
|
8708
8740
|
onClick: props.handleRouteToRegister
|
|
8709
8741
|
}, (_texts_registerText = texts === null || texts === void 0 ? void 0 : texts.registerText) !== null && _texts_registerText !== void 0 ? _texts_registerText : "Register")))));
|
|
8710
8742
|
};
|
|
8711
8743
|
// components/blocks/auth/ResetPassword.tsx
|
|
8712
|
-
var
|
|
8744
|
+
var import_react50 = __toESM(require("react"));
|
|
8713
8745
|
var import_react_hook_form4 = require("react-hook-form");
|
|
8714
8746
|
var import_zod4 = require("@hookform/resolvers/zod");
|
|
8715
8747
|
var z4 = __toESM(require("zod"));
|
|
@@ -8728,9 +8760,9 @@ var ResetPasswordForm = function(props) {
|
|
|
8728
8760
|
resolver: (0, import_zod4.zodResolver)(formSchema)
|
|
8729
8761
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState;
|
|
8730
8762
|
var _props_texts_dontHaveAccount, _props_texts_registerText;
|
|
8731
|
-
return /* @__PURE__ */
|
|
8763
|
+
return /* @__PURE__ */ import_react50.default.createElement(Card, {
|
|
8732
8764
|
dir: props.direction
|
|
8733
|
-
}, !props.sent ? /* @__PURE__ */
|
|
8765
|
+
}, !props.sent ? /* @__PURE__ */ import_react50.default.createElement(import_react50.default.Fragment, null, !props.headless && /* @__PURE__ */ import_react50.default.createElement(CardHeader, null, /* @__PURE__ */ import_react50.default.createElement(CardTitle, null, " ", ((_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.headTitle) || "Reset Password"), /* @__PURE__ */ import_react50.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_react50.default.createElement("form", {
|
|
8734
8766
|
noValidate: true,
|
|
8735
8767
|
onSubmit: handleSubmit(function(e) {
|
|
8736
8768
|
if (props.handleResetPassword) {
|
|
@@ -8739,39 +8771,39 @@ var ResetPasswordForm = function(props) {
|
|
|
8739
8771
|
console.log("handleResetPassword prop is missing");
|
|
8740
8772
|
}
|
|
8741
8773
|
})
|
|
8742
|
-
}, /* @__PURE__ */
|
|
8774
|
+
}, /* @__PURE__ */ import_react50.default.createElement(CardContent, {
|
|
8743
8775
|
headless: props.headless
|
|
8744
|
-
}, /* @__PURE__ */
|
|
8776
|
+
}, /* @__PURE__ */ import_react50.default.createElement(import_react_hook_form4.Controller, {
|
|
8745
8777
|
control: control,
|
|
8746
8778
|
name: "email",
|
|
8747
8779
|
render: function(param) {
|
|
8748
8780
|
var field = param.field;
|
|
8749
8781
|
var _props_texts_email, _props_texts, _formState_errors_email, _props_texts_email1, _props_texts1;
|
|
8750
|
-
return /* @__PURE__ */
|
|
8782
|
+
return /* @__PURE__ */ import_react50.default.createElement(Input, _object_spread({
|
|
8751
8783
|
width: "full",
|
|
8752
8784
|
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,
|
|
8753
8785
|
helperText: (_formState_errors_email = formState.errors.email) === null || _formState_errors_email === void 0 ? void 0 : _formState_errors_email.message,
|
|
8754
8786
|
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
|
|
8755
8787
|
}, field));
|
|
8756
8788
|
}
|
|
8757
|
-
})), /* @__PURE__ */
|
|
8789
|
+
})), /* @__PURE__ */ import_react50.default.createElement(CardFooter, {
|
|
8758
8790
|
className: "hawa-flex hawa-flex-col"
|
|
8759
|
-
}, /* @__PURE__ */
|
|
8791
|
+
}, /* @__PURE__ */ import_react50.default.createElement(Button, {
|
|
8760
8792
|
type: "submit",
|
|
8761
8793
|
className: "hawa-w-full"
|
|
8762
|
-
}, (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resetPassword), props.allowRegister && /* @__PURE__ */
|
|
8794
|
+
}, (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resetPassword), props.allowRegister && /* @__PURE__ */ import_react50.default.createElement("div", {
|
|
8763
8795
|
className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300"
|
|
8764
|
-
}, (_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__ */
|
|
8796
|
+
}, (_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_react50.default.createElement("span", {
|
|
8765
8797
|
className: "clickable-link",
|
|
8766
8798
|
onClick: props.handleRouteToRegister
|
|
8767
|
-
}, (_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__ */
|
|
8799
|
+
}, (_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_react50.default.createElement(CardContent, {
|
|
8768
8800
|
headless: true
|
|
8769
|
-
}, /* @__PURE__ */
|
|
8801
|
+
}, /* @__PURE__ */ import_react50.default.createElement("div", {
|
|
8770
8802
|
className: "hawa-text-center"
|
|
8771
8803
|
}, (_props_texts8 = props.texts) === null || _props_texts8 === void 0 ? void 0 : _props_texts8.emailSentText)));
|
|
8772
8804
|
};
|
|
8773
8805
|
// components/blocks/auth/CodeConfirmation.tsx
|
|
8774
|
-
var
|
|
8806
|
+
var import_react51 = __toESM(require("react"));
|
|
8775
8807
|
var import_react_hook_form5 = require("react-hook-form");
|
|
8776
8808
|
var import_zod5 = require("@hookform/resolvers/zod");
|
|
8777
8809
|
var z5 = __toESM(require("zod"));
|
|
@@ -8787,9 +8819,9 @@ var CodeConfirmation = function(props) {
|
|
|
8787
8819
|
var _ref = (0, import_react_hook_form5.useForm)({
|
|
8788
8820
|
resolver: (0, import_zod5.zodResolver)(formSchema)
|
|
8789
8821
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState, setValue = _ref.setValue;
|
|
8790
|
-
var _ref1 = _sliced_to_array((0,
|
|
8791
|
-
var _ref2 = _sliced_to_array((0,
|
|
8792
|
-
var _ref3 = _sliced_to_array((0,
|
|
8822
|
+
var _ref1 = _sliced_to_array((0, import_react51.useState)(null), 2), resendTimer = _ref1[0], setResendTimer = _ref1[1];
|
|
8823
|
+
var _ref2 = _sliced_to_array((0, import_react51.useState)(0), 2), remainingTime = _ref2[0], setRemainingTime = _ref2[1];
|
|
8824
|
+
var _ref3 = _sliced_to_array((0, import_react51.useState)(false), 2), showResendTimer = _ref3[0], setShowResendTimer = _ref3[1];
|
|
8793
8825
|
var startResendTimer = function() {
|
|
8794
8826
|
if (resendTimer !== null) {
|
|
8795
8827
|
clearInterval(resendTimer);
|
|
@@ -8811,7 +8843,7 @@ var CodeConfirmation = function(props) {
|
|
|
8811
8843
|
}, 1e3);
|
|
8812
8844
|
setResendTimer(newTimer);
|
|
8813
8845
|
};
|
|
8814
|
-
(0,
|
|
8846
|
+
(0, import_react51.useEffect)(function() {
|
|
8815
8847
|
return function() {
|
|
8816
8848
|
if (resendTimer !== null) {
|
|
8817
8849
|
clearInterval(resendTimer);
|
|
@@ -8819,19 +8851,19 @@ var CodeConfirmation = function(props) {
|
|
|
8819
8851
|
};
|
|
8820
8852
|
}, []);
|
|
8821
8853
|
var _props_texts_didntGetCode;
|
|
8822
|
-
return /* @__PURE__ */
|
|
8854
|
+
return /* @__PURE__ */ import_react51.default.createElement(Card, null, /* @__PURE__ */ import_react51.default.createElement(CardContent, {
|
|
8823
8855
|
headless: true
|
|
8824
|
-
}, props.showError && /* @__PURE__ */
|
|
8856
|
+
}, props.showError && /* @__PURE__ */ import_react51.default.createElement(Alert, {
|
|
8825
8857
|
title: props.errorTitle,
|
|
8826
8858
|
text: props.errorText,
|
|
8827
8859
|
severity: "error"
|
|
8828
|
-
}), /* @__PURE__ */
|
|
8860
|
+
}), /* @__PURE__ */ import_react51.default.createElement("div", {
|
|
8829
8861
|
className: "hawa-mb-4 dark:hawa-text-white"
|
|
8830
|
-
}, /* @__PURE__ */
|
|
8862
|
+
}, /* @__PURE__ */ import_react51.default.createElement("div", {
|
|
8831
8863
|
className: "hawa-text-lg hawa-font-bold"
|
|
8832
|
-
}, ((_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.checkYourPhone) || "Please check your phone"), /* @__PURE__ */
|
|
8864
|
+
}, ((_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.checkYourPhone) || "Please check your phone"), /* @__PURE__ */ import_react51.default.createElement("div", {
|
|
8833
8865
|
className: "hawa-text-muted-foreground"
|
|
8834
|
-
}, /* @__PURE__ */
|
|
8866
|
+
}, /* @__PURE__ */ import_react51.default.createElement("span", null, ((_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.weSentCode) || "We've sent a code to "), /* @__PURE__ */ import_react51.default.createElement("span", null, props.phoneNumber)), " "), /* @__PURE__ */ import_react51.default.createElement("form", {
|
|
8835
8867
|
noValidate: true,
|
|
8836
8868
|
onSubmit: handleSubmit(function(e) {
|
|
8837
8869
|
if (props.handleConfirm) {
|
|
@@ -8840,13 +8872,13 @@ var CodeConfirmation = function(props) {
|
|
|
8840
8872
|
console.log("Form is submitted but handleConfirm prop is missing");
|
|
8841
8873
|
}
|
|
8842
8874
|
})
|
|
8843
|
-
}, /* @__PURE__ */
|
|
8875
|
+
}, /* @__PURE__ */ import_react51.default.createElement(import_react_hook_form5.Controller, {
|
|
8844
8876
|
control: control,
|
|
8845
8877
|
name: "otp_code",
|
|
8846
8878
|
render: function(param) {
|
|
8847
8879
|
var field = param.field;
|
|
8848
8880
|
var _formState_errors_otp_code;
|
|
8849
|
-
return /* @__PURE__ */
|
|
8881
|
+
return /* @__PURE__ */ import_react51.default.createElement(PinInput, {
|
|
8850
8882
|
width: "full",
|
|
8851
8883
|
digits: 6,
|
|
8852
8884
|
getPins: function(e) {
|
|
@@ -8855,26 +8887,26 @@ var CodeConfirmation = function(props) {
|
|
|
8855
8887
|
helperText: (_formState_errors_otp_code = formState.errors.otp_code) === null || _formState_errors_otp_code === void 0 ? void 0 : _formState_errors_otp_code.message
|
|
8856
8888
|
});
|
|
8857
8889
|
}
|
|
8858
|
-
}), showResendTimer ? /* @__PURE__ */
|
|
8890
|
+
}), showResendTimer ? /* @__PURE__ */ import_react51.default.createElement("div", {
|
|
8859
8891
|
className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground"
|
|
8860
|
-
}, (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.resendCodeTimer, " ", /* @__PURE__ */
|
|
8892
|
+
}, (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.resendCodeTimer, " ", /* @__PURE__ */ import_react51.default.createElement("strong", null, remainingTime), " ", (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.seconds) : /* @__PURE__ */ import_react51.default.createElement("div", {
|
|
8861
8893
|
className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground"
|
|
8862
|
-
}, /* @__PURE__ */
|
|
8894
|
+
}, /* @__PURE__ */ import_react51.default.createElement("span", null, (_props_texts_didntGetCode = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.didntGetCode) !== null && _props_texts_didntGetCode !== void 0 ? _props_texts_didntGetCode : "Didn't get the code?"), " ", /* @__PURE__ */ import_react51.default.createElement("span", {
|
|
8863
8895
|
className: "clickable-link",
|
|
8864
8896
|
onClick: function() {
|
|
8865
8897
|
startResendTimer();
|
|
8866
8898
|
props.handleResend();
|
|
8867
8899
|
}
|
|
8868
|
-
}, ((_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.resendCode) || "Click to resend")), /* @__PURE__ */
|
|
8900
|
+
}, ((_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.resendCode) || "Click to resend")), /* @__PURE__ */ import_react51.default.createElement("div", {
|
|
8869
8901
|
className: "hawa-mt-4 hawa-grid hawa-grid-cols-2 hawa-gap-2"
|
|
8870
|
-
}, /* @__PURE__ */
|
|
8902
|
+
}, /* @__PURE__ */ import_react51.default.createElement(Button, {
|
|
8871
8903
|
variant: "secondary"
|
|
8872
|
-
}, ((_props_texts8 = props.texts) === null || _props_texts8 === void 0 ? void 0 : _props_texts8.cancel) || "Cancel"), /* @__PURE__ */
|
|
8904
|
+
}, ((_props_texts8 = props.texts) === null || _props_texts8 === void 0 ? void 0 : _props_texts8.cancel) || "Cancel"), /* @__PURE__ */ import_react51.default.createElement(Button, {
|
|
8873
8905
|
isLoading: props.confirmLoading
|
|
8874
8906
|
}, ((_props_texts9 = props.texts) === null || _props_texts9 === void 0 ? void 0 : _props_texts9.confirm) || "Confirm")))));
|
|
8875
8907
|
};
|
|
8876
8908
|
// components/blocks/feedback/UserReferralSource.tsx
|
|
8877
|
-
var
|
|
8909
|
+
var import_react52 = __toESM(require("react"));
|
|
8878
8910
|
var import_react_hook_form6 = require("react-hook-form");
|
|
8879
8911
|
var import_zod6 = require("@hookform/resolvers/zod");
|
|
8880
8912
|
var z6 = __toESM(require("zod"));
|
|
@@ -8884,8 +8916,8 @@ var UserReferralSource = function(_param) {
|
|
|
8884
8916
|
"options"
|
|
8885
8917
|
]);
|
|
8886
8918
|
var _props_texts, _props_texts1;
|
|
8887
|
-
var _ref = _sliced_to_array((0,
|
|
8888
|
-
var popUpRef = (0,
|
|
8919
|
+
var _ref = _sliced_to_array((0, import_react52.useState)(false), 2), closed = _ref[0], setClosed = _ref[1];
|
|
8920
|
+
var popUpRef = (0, import_react52.useRef)(null);
|
|
8889
8921
|
var formSchema = z6.object({
|
|
8890
8922
|
source: z6.string({
|
|
8891
8923
|
required_error: (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.pleaseSelectOption
|
|
@@ -8899,13 +8931,13 @@ var UserReferralSource = function(_param) {
|
|
|
8899
8931
|
"bottom-right": "hawa-right-4",
|
|
8900
8932
|
"bottom-left": "hawa-left-4"
|
|
8901
8933
|
};
|
|
8902
|
-
return /* @__PURE__ */
|
|
8934
|
+
return /* @__PURE__ */ import_react52.default.createElement("div", {
|
|
8903
8935
|
className: cn("hawa-transition-all", closed ? "hawa-opacity-0" : "hawa-opacity-100"),
|
|
8904
8936
|
ref: popUpRef
|
|
8905
|
-
}, /* @__PURE__ */
|
|
8937
|
+
}, /* @__PURE__ */ import_react52.default.createElement(Card, {
|
|
8906
8938
|
className: cn("hawa-fixed hawa-bottom-4 hawa-p-0 ", boxPosition[position]),
|
|
8907
8939
|
dir: props.direction
|
|
8908
|
-
}, /* @__PURE__ */
|
|
8940
|
+
}, /* @__PURE__ */ import_react52.default.createElement("button", {
|
|
8909
8941
|
type: "button",
|
|
8910
8942
|
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"),
|
|
8911
8943
|
"data-dismiss-target": "#toast-default",
|
|
@@ -8918,18 +8950,18 @@ var UserReferralSource = function(_param) {
|
|
|
8918
8950
|
}
|
|
8919
8951
|
}, 200);
|
|
8920
8952
|
}
|
|
8921
|
-
}, /* @__PURE__ */
|
|
8953
|
+
}, /* @__PURE__ */ import_react52.default.createElement("svg", {
|
|
8922
8954
|
"aria-hidden": "true",
|
|
8923
8955
|
className: "hawa-h-5 hawa-w-5",
|
|
8924
8956
|
fill: "currentColor",
|
|
8925
8957
|
viewBox: "0 0 20 20"
|
|
8926
|
-
}, /* @__PURE__ */
|
|
8958
|
+
}, /* @__PURE__ */ import_react52.default.createElement("path", {
|
|
8927
8959
|
fillRule: "evenodd",
|
|
8928
8960
|
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",
|
|
8929
8961
|
clipRule: "evenodd"
|
|
8930
|
-
}))), /* @__PURE__ */
|
|
8962
|
+
}))), /* @__PURE__ */ import_react52.default.createElement(CardContent, {
|
|
8931
8963
|
headless: true
|
|
8932
|
-
}, /* @__PURE__ */
|
|
8964
|
+
}, /* @__PURE__ */ import_react52.default.createElement("form", {
|
|
8933
8965
|
noValidate: true,
|
|
8934
8966
|
onSubmit: handleSubmit(function(e) {
|
|
8935
8967
|
if (props.onSubmitForm) {
|
|
@@ -8937,19 +8969,19 @@ var UserReferralSource = function(_param) {
|
|
|
8937
8969
|
}
|
|
8938
8970
|
console.log("onSubmitForm was not provided");
|
|
8939
8971
|
})
|
|
8940
|
-
}, /* @__PURE__ */
|
|
8972
|
+
}, /* @__PURE__ */ import_react52.default.createElement("div", {
|
|
8941
8973
|
className: cn("hawa-flex hawa-flex-col hawa-gap-4 hawa-transition-all", closed ? "hawa-opacity-0" : "hawa-opacity-100")
|
|
8942
|
-
}, /* @__PURE__ */
|
|
8974
|
+
}, /* @__PURE__ */ import_react52.default.createElement("div", {
|
|
8943
8975
|
className: "hawa-mt-4 hawa-font-bold"
|
|
8944
|
-
}, props.question), /* @__PURE__ */
|
|
8976
|
+
}, props.question), /* @__PURE__ */ import_react52.default.createElement("div", {
|
|
8945
8977
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded "
|
|
8946
|
-
}, /* @__PURE__ */
|
|
8978
|
+
}, /* @__PURE__ */ import_react52.default.createElement(import_react_hook_form6.Controller, {
|
|
8947
8979
|
control: control,
|
|
8948
8980
|
name: "source",
|
|
8949
8981
|
render: function(param) {
|
|
8950
8982
|
var field = param.field;
|
|
8951
8983
|
var _formState_errors_source_message, _formState_errors_source;
|
|
8952
|
-
return /* @__PURE__ */
|
|
8984
|
+
return /* @__PURE__ */ import_react52.default.createElement(Radio, {
|
|
8953
8985
|
direction: props.direction,
|
|
8954
8986
|
orientation: "vertical",
|
|
8955
8987
|
options: options,
|
|
@@ -8960,38 +8992,38 @@ var UserReferralSource = function(_param) {
|
|
|
8960
8992
|
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()
|
|
8961
8993
|
});
|
|
8962
8994
|
}
|
|
8963
|
-
})), /* @__PURE__ */
|
|
8995
|
+
})), /* @__PURE__ */ import_react52.default.createElement("div", null, /* @__PURE__ */ import_react52.default.createElement(import_react_hook_form6.Controller, {
|
|
8964
8996
|
control: control,
|
|
8965
8997
|
name: "feedback",
|
|
8966
8998
|
render: function(param) {
|
|
8967
8999
|
var field = param.field;
|
|
8968
9000
|
var _formState_errors_feedback_message, _formState_errors_feedback;
|
|
8969
|
-
return /* @__PURE__ */
|
|
9001
|
+
return /* @__PURE__ */ import_react52.default.createElement(Textarea, _object_spread_props(_object_spread({}, field), {
|
|
8970
9002
|
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()
|
|
8971
9003
|
}));
|
|
8972
9004
|
}
|
|
8973
|
-
}))), /* @__PURE__ */
|
|
9005
|
+
}))), /* @__PURE__ */ import_react52.default.createElement(Button, {
|
|
8974
9006
|
type: "submit",
|
|
8975
9007
|
className: "hawa-mt-4 hawa-w-full"
|
|
8976
9008
|
}, ((_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.submit) || "Submit")))));
|
|
8977
9009
|
};
|
|
8978
9010
|
// components/blocks/feedback/FeedbackRating.tsx
|
|
8979
|
-
var
|
|
9011
|
+
var import_react53 = __toESM(require("react"));
|
|
8980
9012
|
var import_clsx11 = __toESM(require("clsx"));
|
|
8981
9013
|
var FeedbackRating = function(_param) {
|
|
8982
9014
|
var _param_position = _param.position, position = _param_position === void 0 ? "bottom-right" : _param_position, props = _object_without_properties(_param, [
|
|
8983
9015
|
"position"
|
|
8984
9016
|
]);
|
|
8985
|
-
var _ref = _sliced_to_array((0,
|
|
8986
|
-
var _ref1 = _sliced_to_array((0,
|
|
8987
|
-
var _ref2 = _sliced_to_array((0,
|
|
8988
|
-
var _ref3 = _sliced_to_array((0,
|
|
8989
|
-
var popUpRef = (0,
|
|
9017
|
+
var _ref = _sliced_to_array((0, import_react53.useState)(false), 2), closed = _ref[0], setClosed = _ref[1];
|
|
9018
|
+
var _ref1 = _sliced_to_array((0, import_react53.useState)(false), 2), answered = _ref1[0], setAnswered = _ref1[1];
|
|
9019
|
+
var _ref2 = _sliced_to_array((0, import_react53.useState)(null), 2), clickedOption = _ref2[0], setClickedOption = _ref2[1];
|
|
9020
|
+
var _ref3 = _sliced_to_array((0, import_react53.useState)(5), 2), closingTimer = _ref3[0], setClosingTimer = _ref3[1];
|
|
9021
|
+
var popUpRef = (0, import_react53.useRef)(null);
|
|
8990
9022
|
var boxPosition = {
|
|
8991
9023
|
"bottom-right": "hawa-right-4",
|
|
8992
9024
|
"bottom-left": "hawa-left-4"
|
|
8993
9025
|
};
|
|
8994
|
-
(0,
|
|
9026
|
+
(0, import_react53.useEffect)(function() {
|
|
8995
9027
|
var timeoutHide = setTimeout(function() {
|
|
8996
9028
|
if (closingTimer >= 0) {
|
|
8997
9029
|
setClosingTimer(closingTimer - 1);
|
|
@@ -9011,14 +9043,14 @@ var FeedbackRating = function(_param) {
|
|
|
9011
9043
|
}
|
|
9012
9044
|
}, 200);
|
|
9013
9045
|
};
|
|
9014
|
-
return /* @__PURE__ */
|
|
9046
|
+
return /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
9015
9047
|
ref: popUpRef,
|
|
9016
9048
|
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])
|
|
9017
|
-
}, /* @__PURE__ */
|
|
9049
|
+
}, /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
9018
9050
|
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")
|
|
9019
|
-
}, /* @__PURE__ */
|
|
9051
|
+
}, /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
9020
9052
|
className: "hawa-absolute hawa-left-2 hawa-top-2 hawa-p-1.5 hawa-text-sm"
|
|
9021
|
-
}, props.title), /* @__PURE__ */
|
|
9053
|
+
}, props.title), /* @__PURE__ */ import_react53.default.createElement("button", {
|
|
9022
9054
|
type: "button",
|
|
9023
9055
|
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",
|
|
9024
9056
|
"data-dismiss-target": "#toast-default",
|
|
@@ -9026,21 +9058,21 @@ var FeedbackRating = function(_param) {
|
|
|
9026
9058
|
onClick: function() {
|
|
9027
9059
|
return slowClose();
|
|
9028
9060
|
}
|
|
9029
|
-
}, /* @__PURE__ */
|
|
9061
|
+
}, /* @__PURE__ */ import_react53.default.createElement("svg", {
|
|
9030
9062
|
"aria-hidden": "true",
|
|
9031
9063
|
className: "hawa-h-5 hawa-w-5",
|
|
9032
9064
|
fill: "currentColor",
|
|
9033
9065
|
viewBox: "0 0 20 20"
|
|
9034
|
-
}, /* @__PURE__ */
|
|
9066
|
+
}, /* @__PURE__ */ import_react53.default.createElement("path", {
|
|
9035
9067
|
fillRule: "evenodd",
|
|
9036
9068
|
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",
|
|
9037
9069
|
clipRule: "evenodd"
|
|
9038
|
-
}))), /* @__PURE__ */
|
|
9070
|
+
}))), /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
9039
9071
|
className: "hawa-mt-8"
|
|
9040
|
-
}, props.question), /* @__PURE__ */
|
|
9072
|
+
}, props.question), /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
9041
9073
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded"
|
|
9042
9074
|
}, props.options && props.options.map(function(op, i) {
|
|
9043
|
-
return /* @__PURE__ */
|
|
9075
|
+
return /* @__PURE__ */ import_react53.default.createElement("span", {
|
|
9044
9076
|
key: i,
|
|
9045
9077
|
onClick: function() {
|
|
9046
9078
|
if (props.onOptionClicked) {
|
|
@@ -9059,15 +9091,15 @@ var FeedbackRating = function(_param) {
|
|
|
9059
9091
|
},
|
|
9060
9092
|
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")
|
|
9061
9093
|
}, op);
|
|
9062
|
-
})), props.texts && /* @__PURE__ */
|
|
9094
|
+
})), props.texts && /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
9063
9095
|
className: " hawa-flex hawa-flex-row hawa-justify-between hawa-text-xs"
|
|
9064
|
-
}, /* @__PURE__ */
|
|
9096
|
+
}, /* @__PURE__ */ import_react53.default.createElement("span", null, props.texts.least), /* @__PURE__ */ import_react53.default.createElement("span", null, props.texts.most)), answered && /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
9065
9097
|
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"
|
|
9066
|
-
}, /* @__PURE__ */
|
|
9098
|
+
}, /* @__PURE__ */ import_react53.default.createElement("span", {
|
|
9067
9099
|
className: "hawa-font-bold hawa-text-white"
|
|
9068
|
-
}, "Thank you for your answer. This box will disappear in", " " + closingTimer, " seconds"), /* @__PURE__ */
|
|
9100
|
+
}, "Thank you for your answer. This box will disappear in", " " + closingTimer, " seconds"), /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
9069
9101
|
className: "hawa-flex hawa-flex-row hawa-gap-2"
|
|
9070
|
-
}, /* @__PURE__ */
|
|
9102
|
+
}, /* @__PURE__ */ import_react53.default.createElement(Button, {
|
|
9071
9103
|
variant: "secondary",
|
|
9072
9104
|
onClick: function() {
|
|
9073
9105
|
return slowClose();
|
|
@@ -9075,27 +9107,27 @@ var FeedbackRating = function(_param) {
|
|
|
9075
9107
|
}, "Close")))));
|
|
9076
9108
|
};
|
|
9077
9109
|
// components/blocks/feedback/FeedbackEmoji.tsx
|
|
9078
|
-
var
|
|
9110
|
+
var import_react54 = __toESM(require("react"));
|
|
9079
9111
|
var FeedbackEmoji = function(props) {
|
|
9080
|
-
var _ref = _sliced_to_array((0,
|
|
9081
|
-
var _ref1 = _sliced_to_array((0,
|
|
9082
|
-
var _ref2 = _sliced_to_array((0,
|
|
9083
|
-
var _ref3 = _sliced_to_array((0,
|
|
9112
|
+
var _ref = _sliced_to_array((0, import_react54.useState)(null), 2), selectedEmoji = _ref[0], setSelectedEmoji = _ref[1];
|
|
9113
|
+
var _ref1 = _sliced_to_array((0, import_react54.useState)(false), 2), loadingSubmit = _ref1[0], setLoadingSubmit = _ref1[1];
|
|
9114
|
+
var _ref2 = _sliced_to_array((0, import_react54.useState)(""), 2), feedbackText = _ref2[0], setFeedbackText = _ref2[1];
|
|
9115
|
+
var _ref3 = _sliced_to_array((0, import_react54.useState)(false), 2), helperText = _ref3[0], setHelperText = _ref3[1];
|
|
9084
9116
|
var emojis = [
|
|
9085
9117
|
{
|
|
9086
|
-
icon: /* @__PURE__ */
|
|
9118
|
+
icon: /* @__PURE__ */ import_react54.default.createElement(VeryGoodEmoji, null),
|
|
9087
9119
|
value: "very-good"
|
|
9088
9120
|
},
|
|
9089
9121
|
{
|
|
9090
|
-
icon: /* @__PURE__ */
|
|
9122
|
+
icon: /* @__PURE__ */ import_react54.default.createElement(GoodEmoji, null),
|
|
9091
9123
|
value: "good"
|
|
9092
9124
|
},
|
|
9093
9125
|
{
|
|
9094
|
-
icon: /* @__PURE__ */
|
|
9126
|
+
icon: /* @__PURE__ */ import_react54.default.createElement(BadEmoji, null),
|
|
9095
9127
|
value: "bad"
|
|
9096
9128
|
},
|
|
9097
9129
|
{
|
|
9098
|
-
icon: /* @__PURE__ */
|
|
9130
|
+
icon: /* @__PURE__ */ import_react54.default.createElement(VeryBadEmoji, null),
|
|
9099
9131
|
value: "very-bad"
|
|
9100
9132
|
}
|
|
9101
9133
|
];
|
|
@@ -9165,14 +9197,14 @@ var FeedbackEmoji = function(props) {
|
|
|
9165
9197
|
return _ref.apply(this, arguments);
|
|
9166
9198
|
};
|
|
9167
9199
|
}();
|
|
9168
|
-
return /* @__PURE__ */
|
|
9200
|
+
return /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
9169
9201
|
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] ")
|
|
9170
|
-
}, /* @__PURE__ */
|
|
9202
|
+
}, /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
9171
9203
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 "
|
|
9172
|
-
}, /* @__PURE__ */
|
|
9204
|
+
}, /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
9173
9205
|
className: "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-0.5 "
|
|
9174
9206
|
}, emojis.map(function(emoji, i) {
|
|
9175
|
-
return /* @__PURE__ */
|
|
9207
|
+
return /* @__PURE__ */ import_react54.default.createElement(Button, {
|
|
9176
9208
|
key: i,
|
|
9177
9209
|
onClick: function() {
|
|
9178
9210
|
if (selectedEmoji === emoji.value) {
|
|
@@ -9185,29 +9217,29 @@ var FeedbackEmoji = function(props) {
|
|
|
9185
9217
|
size: "smallIcon",
|
|
9186
9218
|
className: cn(selectedEmoji === emoji.value ? "hawa-bg-primary/10 hover:hawa-bg-primary/10 " : "hawa-text-[#666666]")
|
|
9187
9219
|
}, emoji.icon);
|
|
9188
|
-
}))), /* @__PURE__ */
|
|
9220
|
+
}))), /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
9189
9221
|
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 ")
|
|
9190
|
-
}, props.showSuccess ? /* @__PURE__ */
|
|
9222
|
+
}, props.showSuccess ? /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
9191
9223
|
className: "hawa-flex hawa-h-full hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2 hawa-pt-4"
|
|
9192
|
-
}, /* @__PURE__ */
|
|
9224
|
+
}, /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
9193
9225
|
className: "hawa-rounded hawa-bg-primary hawa-p-2 hawa-text-primary-foreground"
|
|
9194
|
-
}, /* @__PURE__ */
|
|
9226
|
+
}, /* @__PURE__ */ import_react54.default.createElement("svg", {
|
|
9195
9227
|
stroke: "currentColor",
|
|
9196
9228
|
fill: "currentColor",
|
|
9197
9229
|
strokeWidth: "0",
|
|
9198
9230
|
viewBox: "0 0 512 512",
|
|
9199
9231
|
height: "0.5em",
|
|
9200
9232
|
width: "0.5em"
|
|
9201
|
-
}, /* @__PURE__ */
|
|
9233
|
+
}, /* @__PURE__ */ import_react54.default.createElement("path", {
|
|
9202
9234
|
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"
|
|
9203
|
-
}))), /* @__PURE__ */
|
|
9235
|
+
}))), /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
9204
9236
|
className: "hawa-text-sm hawa-flex hawa-flex-col hawa-text-center"
|
|
9205
|
-
}, /* @__PURE__ */
|
|
9237
|
+
}, /* @__PURE__ */ import_react54.default.createElement("span", null, "Your feedback has been received!"), /* @__PURE__ */ import_react54.default.createElement("span", null, "Thank you for your help"))) : /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
9206
9238
|
className: "hawa-flex hawa-flex-col hawa-gap-2"
|
|
9207
|
-
}, /* @__PURE__ */
|
|
9239
|
+
}, /* @__PURE__ */ import_react54.default.createElement(Popover, {
|
|
9208
9240
|
className: "hawa-select-none hawa-p-1 hawa-text-xs ",
|
|
9209
9241
|
open: helperText,
|
|
9210
|
-
trigger: /* @__PURE__ */
|
|
9242
|
+
trigger: /* @__PURE__ */ import_react54.default.createElement(Textarea, {
|
|
9211
9243
|
className: cn("hawa-mb-2 hawa-h-full hawa-resize-none"),
|
|
9212
9244
|
placeholder: "Your feedback",
|
|
9213
9245
|
onChange: function(e) {
|
|
@@ -9217,9 +9249,9 @@ var FeedbackEmoji = function(props) {
|
|
|
9217
9249
|
setFeedbackText(e.target.value);
|
|
9218
9250
|
}
|
|
9219
9251
|
})
|
|
9220
|
-
}, /* @__PURE__ */
|
|
9252
|
+
}, /* @__PURE__ */ import_react54.default.createElement("span", {
|
|
9221
9253
|
className: "hawa-m-2"
|
|
9222
|
-
}, "Please enter your feedback"), " "), /* @__PURE__ */
|
|
9254
|
+
}, "Please enter your feedback"), " "), /* @__PURE__ */ import_react54.default.createElement(Button, {
|
|
9223
9255
|
isLoading: loadingSubmit,
|
|
9224
9256
|
onClick: onFeedbackSubmit,
|
|
9225
9257
|
className: "hawa-w-full",
|
|
@@ -9227,20 +9259,20 @@ var FeedbackEmoji = function(props) {
|
|
|
9227
9259
|
}, "Submit"))));
|
|
9228
9260
|
};
|
|
9229
9261
|
var VeryGoodEmoji = function() {
|
|
9230
|
-
return /* @__PURE__ */
|
|
9262
|
+
return /* @__PURE__ */ import_react54.default.createElement("svg", {
|
|
9231
9263
|
fill: "none",
|
|
9232
9264
|
height: "16",
|
|
9233
9265
|
viewBox: "0 0 16 16",
|
|
9234
9266
|
width: "16",
|
|
9235
9267
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9236
|
-
}, /* @__PURE__ */
|
|
9268
|
+
}, /* @__PURE__ */ import_react54.default.createElement("g", {
|
|
9237
9269
|
clipPath: "url(#clip0_53_166)"
|
|
9238
|
-
}, /* @__PURE__ */
|
|
9270
|
+
}, /* @__PURE__ */ import_react54.default.createElement("path", {
|
|
9239
9271
|
clipRule: "evenodd",
|
|
9240
9272
|
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",
|
|
9241
9273
|
fill: "currentColor",
|
|
9242
9274
|
fillRule: "evenodd"
|
|
9243
|
-
}), /* @__PURE__ */
|
|
9275
|
+
}), /* @__PURE__ */ import_react54.default.createElement("path", {
|
|
9244
9276
|
clipRule: "evenodd",
|
|
9245
9277
|
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",
|
|
9246
9278
|
fill: "#FF990A",
|
|
@@ -9248,15 +9280,15 @@ var VeryGoodEmoji = function() {
|
|
|
9248
9280
|
})));
|
|
9249
9281
|
};
|
|
9250
9282
|
var GoodEmoji = function() {
|
|
9251
|
-
return /* @__PURE__ */
|
|
9283
|
+
return /* @__PURE__ */ import_react54.default.createElement("svg", {
|
|
9252
9284
|
fill: "none",
|
|
9253
9285
|
height: "16",
|
|
9254
9286
|
viewBox: "0 0 16 16",
|
|
9255
9287
|
width: "16",
|
|
9256
9288
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9257
|
-
}, /* @__PURE__ */
|
|
9289
|
+
}, /* @__PURE__ */ import_react54.default.createElement("g", {
|
|
9258
9290
|
clipPath: "url(#clip0_53_167)"
|
|
9259
|
-
}, /* @__PURE__ */
|
|
9291
|
+
}, /* @__PURE__ */ import_react54.default.createElement("path", {
|
|
9260
9292
|
clipRule: "evenodd",
|
|
9261
9293
|
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",
|
|
9262
9294
|
fill: "currentColor",
|
|
@@ -9264,15 +9296,15 @@ var GoodEmoji = function() {
|
|
|
9264
9296
|
})));
|
|
9265
9297
|
};
|
|
9266
9298
|
var BadEmoji = function() {
|
|
9267
|
-
return /* @__PURE__ */
|
|
9299
|
+
return /* @__PURE__ */ import_react54.default.createElement("svg", {
|
|
9268
9300
|
fill: "none",
|
|
9269
9301
|
height: "16",
|
|
9270
9302
|
viewBox: "0 0 16 16",
|
|
9271
9303
|
width: "16",
|
|
9272
9304
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9273
|
-
}, /* @__PURE__ */
|
|
9305
|
+
}, /* @__PURE__ */ import_react54.default.createElement("g", {
|
|
9274
9306
|
clipPath: "url(#clip0_53_152)"
|
|
9275
|
-
}, /* @__PURE__ */
|
|
9307
|
+
}, /* @__PURE__ */ import_react54.default.createElement("path", {
|
|
9276
9308
|
clipRule: "evenodd",
|
|
9277
9309
|
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",
|
|
9278
9310
|
fill: "currentColor",
|
|
@@ -9280,18 +9312,18 @@ var BadEmoji = function() {
|
|
|
9280
9312
|
})));
|
|
9281
9313
|
};
|
|
9282
9314
|
var VeryBadEmoji = function() {
|
|
9283
|
-
return /* @__PURE__ */
|
|
9315
|
+
return /* @__PURE__ */ import_react54.default.createElement("svg", {
|
|
9284
9316
|
fill: "none",
|
|
9285
9317
|
height: "16",
|
|
9286
9318
|
viewBox: "0 0 16 16",
|
|
9287
9319
|
width: "16",
|
|
9288
9320
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9289
|
-
}, /* @__PURE__ */
|
|
9321
|
+
}, /* @__PURE__ */ import_react54.default.createElement("g", {
|
|
9290
9322
|
clipPath: "url(#clip0_53_151)"
|
|
9291
|
-
}, /* @__PURE__ */
|
|
9323
|
+
}, /* @__PURE__ */ import_react54.default.createElement("path", {
|
|
9292
9324
|
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",
|
|
9293
9325
|
fill: "#0070F3"
|
|
9294
|
-
}), /* @__PURE__ */
|
|
9326
|
+
}), /* @__PURE__ */ import_react54.default.createElement("path", {
|
|
9295
9327
|
clipRule: "evenodd",
|
|
9296
9328
|
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",
|
|
9297
9329
|
fill: "currentColor",
|
|
@@ -9299,7 +9331,7 @@ var VeryBadEmoji = function() {
|
|
|
9299
9331
|
})));
|
|
9300
9332
|
};
|
|
9301
9333
|
// components/blocks/feedback/FeedbackForm.tsx
|
|
9302
|
-
var
|
|
9334
|
+
var import_react55 = __toESM(require("react"));
|
|
9303
9335
|
var import_react_hook_form7 = require("react-hook-form");
|
|
9304
9336
|
var import_zod7 = require("@hookform/resolvers/zod");
|
|
9305
9337
|
var z7 = __toESM(require("zod"));
|
|
@@ -9320,9 +9352,9 @@ var FeedbackForm = function(props) {
|
|
|
9320
9352
|
var _ref = (0, import_react_hook_form7.useForm)({
|
|
9321
9353
|
resolver: (0, import_zod7.zodResolver)(formSchema)
|
|
9322
9354
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState;
|
|
9323
|
-
return /* @__PURE__ */
|
|
9355
|
+
return /* @__PURE__ */ import_react55.default.createElement(Card, null, /* @__PURE__ */ import_react55.default.createElement(CardContent, {
|
|
9324
9356
|
headless: true
|
|
9325
|
-
}, /* @__PURE__ */
|
|
9357
|
+
}, /* @__PURE__ */ import_react55.default.createElement("form", {
|
|
9326
9358
|
noValidate: true,
|
|
9327
9359
|
onSubmit: handleSubmit(function(e) {
|
|
9328
9360
|
if (props.onSubmit) {
|
|
@@ -9332,13 +9364,13 @@ var FeedbackForm = function(props) {
|
|
|
9332
9364
|
}
|
|
9333
9365
|
}),
|
|
9334
9366
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
9335
|
-
}, /* @__PURE__ */
|
|
9367
|
+
}, /* @__PURE__ */ import_react55.default.createElement(Label2, null, (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.requestType), /* @__PURE__ */ import_react55.default.createElement(import_react_hook_form7.Controller, {
|
|
9336
9368
|
name: "requestType",
|
|
9337
9369
|
control: control,
|
|
9338
9370
|
render: function(param) {
|
|
9339
9371
|
var field = param.field;
|
|
9340
9372
|
var _formState_errors_requestType_message, _formState_errors_requestType;
|
|
9341
|
-
return /* @__PURE__ */
|
|
9373
|
+
return /* @__PURE__ */ import_react55.default.createElement(Select, _object_spread_props(_object_spread({}, field), {
|
|
9342
9374
|
onChange: function(option) {
|
|
9343
9375
|
return field.onChange(option.value);
|
|
9344
9376
|
},
|
|
@@ -9346,70 +9378,70 @@ var FeedbackForm = function(props) {
|
|
|
9346
9378
|
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()
|
|
9347
9379
|
}));
|
|
9348
9380
|
}
|
|
9349
|
-
}), /* @__PURE__ */
|
|
9381
|
+
}), /* @__PURE__ */ import_react55.default.createElement(Label2, null, props.texts.description), /* @__PURE__ */ import_react55.default.createElement(import_react_hook_form7.Controller, {
|
|
9350
9382
|
name: "description",
|
|
9351
9383
|
control: control,
|
|
9352
9384
|
render: function(param) {
|
|
9353
9385
|
var field = param.field;
|
|
9354
9386
|
var _formState_errors_description_message, _formState_errors_description;
|
|
9355
|
-
return /* @__PURE__ */
|
|
9387
|
+
return /* @__PURE__ */ import_react55.default.createElement(Textarea, _object_spread_props(_object_spread({}, field), {
|
|
9356
9388
|
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())
|
|
9357
9389
|
}));
|
|
9358
9390
|
}
|
|
9359
|
-
}), /* @__PURE__ */
|
|
9391
|
+
}), /* @__PURE__ */ import_react55.default.createElement(Button, {
|
|
9360
9392
|
type: "submit"
|
|
9361
9393
|
}, (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.submit))));
|
|
9362
9394
|
};
|
|
9363
9395
|
// components/blocks/misc/LegalTexts.tsx
|
|
9364
|
-
var
|
|
9396
|
+
var import_react56 = __toESM(require("react"));
|
|
9365
9397
|
var LegalTexts = function(_param) {
|
|
9366
9398
|
var tabs = _param.tabs, props = _object_without_properties(_param, [
|
|
9367
9399
|
"tabs"
|
|
9368
9400
|
]);
|
|
9369
|
-
return /* @__PURE__ */
|
|
9401
|
+
return /* @__PURE__ */ import_react56.default.createElement(Tabs, {
|
|
9370
9402
|
value: props.activeTab,
|
|
9371
9403
|
onValueChange: props.handleTabChange,
|
|
9372
9404
|
defaultValue: props.defaultTab || tabs[0].value,
|
|
9373
9405
|
dir: props.direction
|
|
9374
|
-
}, /* @__PURE__ */
|
|
9406
|
+
}, /* @__PURE__ */ import_react56.default.createElement(TabsList, {
|
|
9375
9407
|
className: "hawa-w-full"
|
|
9376
9408
|
}, tabs.map(function(tab, index) {
|
|
9377
|
-
return /* @__PURE__ */
|
|
9409
|
+
return /* @__PURE__ */ import_react56.default.createElement(TabsTrigger, {
|
|
9378
9410
|
key: index,
|
|
9379
9411
|
value: tab.value
|
|
9380
9412
|
}, tab.title);
|
|
9381
9413
|
})), tabs.map(function(tab, index) {
|
|
9382
|
-
return /* @__PURE__ */
|
|
9414
|
+
return /* @__PURE__ */ import_react56.default.createElement(TabsContent, {
|
|
9383
9415
|
key: index,
|
|
9384
9416
|
value: tab.value
|
|
9385
|
-
}, /* @__PURE__ */
|
|
9417
|
+
}, /* @__PURE__ */ import_react56.default.createElement(ScrollArea, {
|
|
9386
9418
|
className: cn("hawa-p-4 hawa-rounded hawa-bg-muted hawa-border", props.scrollAreaClassName)
|
|
9387
9419
|
}, tab.content));
|
|
9388
9420
|
}));
|
|
9389
9421
|
};
|
|
9390
9422
|
// components/blocks/misc/EmptyState.tsx
|
|
9391
|
-
var
|
|
9423
|
+
var import_react57 = __toESM(require("react"));
|
|
9392
9424
|
var EmptyState = function(param) {
|
|
9393
9425
|
var texts = param.texts, onActionClick = param.onActionClick;
|
|
9394
9426
|
var _texts_youreCaughtUp, _texts_actionText;
|
|
9395
|
-
return /* @__PURE__ */
|
|
9427
|
+
return /* @__PURE__ */ import_react57.default.createElement(Card, null, /* @__PURE__ */ import_react57.default.createElement(CardContent, {
|
|
9396
9428
|
headless: true
|
|
9397
|
-
}, /* @__PURE__ */
|
|
9429
|
+
}, /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
9398
9430
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center "
|
|
9399
|
-
}, /* @__PURE__ */
|
|
9431
|
+
}, /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
9400
9432
|
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"
|
|
9401
|
-
}, /* @__PURE__ */
|
|
9433
|
+
}, /* @__PURE__ */ import_react57.default.createElement("svg", {
|
|
9402
9434
|
stroke: "currentColor",
|
|
9403
9435
|
fill: "currentColor",
|
|
9404
9436
|
strokeWidth: "0",
|
|
9405
9437
|
viewBox: "0 0 512 512",
|
|
9406
9438
|
height: "0.35em",
|
|
9407
9439
|
width: "0.35em"
|
|
9408
|
-
}, /* @__PURE__ */
|
|
9440
|
+
}, /* @__PURE__ */ import_react57.default.createElement("path", {
|
|
9409
9441
|
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"
|
|
9410
|
-
}))), /* @__PURE__ */
|
|
9442
|
+
}))), /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
9411
9443
|
className: "hawa-m-2 hawa-text-xl hawa-font-bold"
|
|
9412
|
-
}, (_texts_youreCaughtUp = texts === null || texts === void 0 ? void 0 : texts.youreCaughtUp) !== null && _texts_youreCaughtUp !== void 0 ? _texts_youreCaughtUp : "You're all caught up"))), /* @__PURE__ */
|
|
9444
|
+
}, (_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_react57.default.createElement(CardFooter, null, /* @__PURE__ */ import_react57.default.createElement(Button, {
|
|
9413
9445
|
className: "hawa-w-full",
|
|
9414
9446
|
onClick: function() {
|
|
9415
9447
|
return onActionClick();
|
|
@@ -9417,36 +9449,36 @@ var EmptyState = function(param) {
|
|
|
9417
9449
|
}, (_texts_actionText = texts === null || texts === void 0 ? void 0 : texts.actionText) !== null && _texts_actionText !== void 0 ? _texts_actionText : "Go Home")));
|
|
9418
9450
|
};
|
|
9419
9451
|
// components/blocks/misc/Testimonial.tsx
|
|
9420
|
-
var
|
|
9452
|
+
var import_react58 = __toESM(require("react"));
|
|
9421
9453
|
var Testimonial = function(props) {
|
|
9422
|
-
return /* @__PURE__ */
|
|
9454
|
+
return /* @__PURE__ */ import_react58.default.createElement(Card, null, /* @__PURE__ */ import_react58.default.createElement(CardContent, {
|
|
9423
9455
|
headless: true
|
|
9424
|
-
}, /* @__PURE__ */
|
|
9456
|
+
}, /* @__PURE__ */ import_react58.default.createElement("div", null, /* @__PURE__ */ import_react58.default.createElement("p", {
|
|
9425
9457
|
className: "mb-4 max-w-sm"
|
|
9426
|
-
}, "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__ */
|
|
9458
|
+
}, "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_react58.default.createElement("div", {
|
|
9427
9459
|
className: "flex flex-row gap-4"
|
|
9428
|
-
}, /* @__PURE__ */
|
|
9460
|
+
}, /* @__PURE__ */ import_react58.default.createElement("svg", {
|
|
9429
9461
|
width: "48",
|
|
9430
9462
|
height: "48",
|
|
9431
9463
|
viewBox: "0 0 48 48",
|
|
9432
9464
|
fill: "none"
|
|
9433
|
-
}, /* @__PURE__ */
|
|
9465
|
+
}, /* @__PURE__ */ import_react58.default.createElement("rect", {
|
|
9434
9466
|
width: "48",
|
|
9435
9467
|
height: "48",
|
|
9436
9468
|
rx: "24",
|
|
9437
9469
|
fill: "#45BE8B"
|
|
9438
|
-
}), /* @__PURE__ */
|
|
9470
|
+
}), /* @__PURE__ */ import_react58.default.createElement("path", {
|
|
9439
9471
|
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",
|
|
9440
9472
|
fill: "#FFFFFF"
|
|
9441
|
-
}), /* @__PURE__ */
|
|
9473
|
+
}), /* @__PURE__ */ import_react58.default.createElement("path", {
|
|
9442
9474
|
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",
|
|
9443
9475
|
fill: "#FFFFFF"
|
|
9444
|
-
})), /* @__PURE__ */
|
|
9476
|
+
})), /* @__PURE__ */ import_react58.default.createElement("span", {
|
|
9445
9477
|
className: "border border-l "
|
|
9446
|
-
}), " ", /* @__PURE__ */
|
|
9478
|
+
}), " ", /* @__PURE__ */ import_react58.default.createElement("div", null, /* @__PURE__ */ import_react58.default.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ import_react58.default.createElement("div", null, " Chief Information Security Officer")))));
|
|
9447
9479
|
};
|
|
9448
9480
|
// components/blocks/misc/LeadGenerator.tsx
|
|
9449
|
-
var
|
|
9481
|
+
var import_react59 = __toESM(require("react"));
|
|
9450
9482
|
var import_react_hook_form8 = require("react-hook-form");
|
|
9451
9483
|
var LeadGenerator = function(param) {
|
|
9452
9484
|
var texts = param.texts, submitHandler = param.submitHandler;
|
|
@@ -9459,11 +9491,11 @@ var LeadGenerator = function(param) {
|
|
|
9459
9491
|
}
|
|
9460
9492
|
};
|
|
9461
9493
|
var _texts_submit;
|
|
9462
|
-
return /* @__PURE__ */
|
|
9494
|
+
return /* @__PURE__ */ import_react59.default.createElement(Card, null, /* @__PURE__ */ import_react59.default.createElement(CardHeader, null, /* @__PURE__ */ import_react59.default.createElement(CardTitle, null, texts === null || texts === void 0 ? void 0 : texts.title), /* @__PURE__ */ import_react59.default.createElement(CardDescription, null, texts === null || texts === void 0 ? void 0 : texts.subtitle)), /* @__PURE__ */ import_react59.default.createElement(CardContent, null, /* @__PURE__ */ import_react59.default.createElement("form", {
|
|
9463
9495
|
noValidate: true,
|
|
9464
9496
|
className: "hawa-flex hawa-flex-row hawa-gap-2",
|
|
9465
9497
|
onSubmit: handleSubmit(onSubmit)
|
|
9466
|
-
}, /* @__PURE__ */
|
|
9498
|
+
}, /* @__PURE__ */ import_react59.default.createElement(import_react_hook_form8.Controller, {
|
|
9467
9499
|
name: "email",
|
|
9468
9500
|
control: control,
|
|
9469
9501
|
rules: {
|
|
@@ -9476,32 +9508,32 @@ var LeadGenerator = function(param) {
|
|
|
9476
9508
|
defaultValue: "",
|
|
9477
9509
|
render: function(param) {
|
|
9478
9510
|
var field = param.field;
|
|
9479
|
-
return /* @__PURE__ */
|
|
9511
|
+
return /* @__PURE__ */ import_react59.default.createElement(Input, _object_spread_props(_object_spread({}, field), {
|
|
9480
9512
|
type: "email",
|
|
9481
9513
|
placeholder: "example@sikka.io"
|
|
9482
9514
|
}));
|
|
9483
9515
|
}
|
|
9484
|
-
}), /* @__PURE__ */
|
|
9516
|
+
}), /* @__PURE__ */ import_react59.default.createElement(Button, {
|
|
9485
9517
|
type: "submit",
|
|
9486
9518
|
disabled: !formState.isValid
|
|
9487
9519
|
}, (_texts_submit = texts === null || texts === void 0 ? void 0 : texts.submit) !== null && _texts_submit !== void 0 ? _texts_submit : "Submit"))));
|
|
9488
9520
|
};
|
|
9489
9521
|
// components/blocks/misc/Announcement.tsx
|
|
9490
|
-
var
|
|
9522
|
+
var import_react60 = __toESM(require("react"));
|
|
9491
9523
|
var Announcement = function(_param) {
|
|
9492
9524
|
var onActionClick = _param.onActionClick, props = _object_without_properties(_param, [
|
|
9493
9525
|
"onActionClick"
|
|
9494
9526
|
]);
|
|
9495
|
-
return /* @__PURE__ */
|
|
9527
|
+
return /* @__PURE__ */ import_react60.default.createElement(Card, null, /* @__PURE__ */ import_react60.default.createElement(CardContent, {
|
|
9496
9528
|
headless: true,
|
|
9497
9529
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
|
9498
|
-
}, /* @__PURE__ */
|
|
9530
|
+
}, /* @__PURE__ */ import_react60.default.createElement("div", {
|
|
9499
9531
|
className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center "
|
|
9500
|
-
}, /* @__PURE__ */
|
|
9532
|
+
}, /* @__PURE__ */ import_react60.default.createElement("span", {
|
|
9501
9533
|
className: "hawa-text-lg hawa-font-bold"
|
|
9502
|
-
}, props.title), /* @__PURE__ */
|
|
9534
|
+
}, props.title), /* @__PURE__ */ import_react60.default.createElement("span", {
|
|
9503
9535
|
className: "hawa-text-sm"
|
|
9504
|
-
}, props.subtitle)), /* @__PURE__ */
|
|
9536
|
+
}, props.subtitle)), /* @__PURE__ */ import_react60.default.createElement(Button, {
|
|
9505
9537
|
onClick: function() {
|
|
9506
9538
|
return onActionClick();
|
|
9507
9539
|
},
|
|
@@ -9509,56 +9541,56 @@ var Announcement = function(_param) {
|
|
|
9509
9541
|
}, props.actionText)));
|
|
9510
9542
|
};
|
|
9511
9543
|
// components/blocks/misc/NotFound.tsx
|
|
9512
|
-
var
|
|
9544
|
+
var import_react61 = __toESM(require("react"));
|
|
9513
9545
|
var NotFound = function(param) {
|
|
9514
9546
|
var _param_variant = param.variant, variant = _param_variant === void 0 ? "contained" : _param_variant, texts = param.texts;
|
|
9515
9547
|
var _texts_pageNotFound, _texts_ifLost, _texts_home;
|
|
9516
|
-
return /* @__PURE__ */
|
|
9548
|
+
return /* @__PURE__ */ import_react61.default.createElement(Card, null, /* @__PURE__ */ import_react61.default.createElement(CardContent, {
|
|
9517
9549
|
headless: true
|
|
9518
|
-
}, /* @__PURE__ */
|
|
9550
|
+
}, /* @__PURE__ */ import_react61.default.createElement("div", {
|
|
9519
9551
|
className: "hawa-flex hawa-flex-col hawa-items-center dark:hawa-text-white"
|
|
9520
|
-
}, /* @__PURE__ */
|
|
9552
|
+
}, /* @__PURE__ */ import_react61.default.createElement("div", {
|
|
9521
9553
|
className: "hawa-text-center hawa-text-6xl hawa-font-bold "
|
|
9522
|
-
}, "404"), /* @__PURE__ */
|
|
9554
|
+
}, "404"), /* @__PURE__ */ import_react61.default.createElement("div", {
|
|
9523
9555
|
className: "hawa-m-2 hawa-text-center hawa-text-xl hawa-font-bold "
|
|
9524
|
-
}, (_texts_pageNotFound = texts === null || texts === void 0 ? void 0 : texts.pageNotFound) !== null && _texts_pageNotFound !== void 0 ? _texts_pageNotFound : "Page Not Found"), /* @__PURE__ */
|
|
9556
|
+
}, (_texts_pageNotFound = texts === null || texts === void 0 ? void 0 : texts.pageNotFound) !== null && _texts_pageNotFound !== void 0 ? _texts_pageNotFound : "Page Not Found"), /* @__PURE__ */ import_react61.default.createElement("div", {
|
|
9525
9557
|
className: "hawa-mb-4 hawa-text-center"
|
|
9526
|
-
}, (_texts_ifLost = texts === null || texts === void 0 ? void 0 : texts.ifLost) !== null && _texts_ifLost !== void 0 ? _texts_ifLost : /* @__PURE__ */
|
|
9558
|
+
}, (_texts_ifLost = texts === null || texts === void 0 ? void 0 : texts.ifLost) !== null && _texts_ifLost !== void 0 ? _texts_ifLost : /* @__PURE__ */ import_react61.default.createElement(import_react61.default.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ import_react61.default.createElement("span", {
|
|
9527
9559
|
className: "clickable-link"
|
|
9528
|
-
}, "help@sikka.io"))), /* @__PURE__ */
|
|
9560
|
+
}, "help@sikka.io"))), /* @__PURE__ */ import_react61.default.createElement(Button, {
|
|
9529
9561
|
className: "hawa-w-full"
|
|
9530
9562
|
}, (_texts_home = texts === null || texts === void 0 ? void 0 : texts.home) !== null && _texts_home !== void 0 ? _texts_home : "Home"))));
|
|
9531
9563
|
};
|
|
9532
9564
|
// components/blocks/misc/NoPermission.tsx
|
|
9533
|
-
var
|
|
9565
|
+
var import_react62 = __toESM(require("react"));
|
|
9534
9566
|
var NoPermission = function(param) {
|
|
9535
9567
|
var texts = param.texts;
|
|
9536
9568
|
var _texts_title, _texts_subtitle;
|
|
9537
|
-
return /* @__PURE__ */
|
|
9569
|
+
return /* @__PURE__ */ import_react62.default.createElement(Card, null, /* @__PURE__ */ import_react62.default.createElement(CardContent, {
|
|
9538
9570
|
headless: true
|
|
9539
|
-
}, /* @__PURE__ */
|
|
9571
|
+
}, /* @__PURE__ */ import_react62.default.createElement("div", {
|
|
9540
9572
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center"
|
|
9541
|
-
}, /* @__PURE__ */
|
|
9573
|
+
}, /* @__PURE__ */ import_react62.default.createElement("div", {
|
|
9542
9574
|
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"
|
|
9543
|
-
}, /* @__PURE__ */
|
|
9575
|
+
}, /* @__PURE__ */ import_react62.default.createElement("svg", {
|
|
9544
9576
|
stroke: "currentColor",
|
|
9545
9577
|
fill: "currentColor",
|
|
9546
9578
|
strokeWidth: "0",
|
|
9547
9579
|
viewBox: "0 0 448 512",
|
|
9548
9580
|
height: "0.35em",
|
|
9549
9581
|
width: "0.35em"
|
|
9550
|
-
}, /* @__PURE__ */
|
|
9582
|
+
}, /* @__PURE__ */ import_react62.default.createElement("path", {
|
|
9551
9583
|
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"
|
|
9552
|
-
})), " "), /* @__PURE__ */
|
|
9584
|
+
})), " "), /* @__PURE__ */ import_react62.default.createElement("div", {
|
|
9553
9585
|
className: "hawa-m-2 hawa-text-xl hawa-font-bold"
|
|
9554
|
-
}, (_texts_title = texts === null || texts === void 0 ? void 0 : texts.title) !== null && _texts_title !== void 0 ? _texts_title : "You don't have permission"), /* @__PURE__ */
|
|
9586
|
+
}, (_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_react62.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"))));
|
|
9555
9587
|
};
|
|
9556
9588
|
// components/blocks/pricing/PricingPlans.tsx
|
|
9557
|
-
var
|
|
9589
|
+
var import_react63 = __toESM(require("react"));
|
|
9558
9590
|
var PricingPlans = function(props) {
|
|
9559
|
-
return /* @__PURE__ */
|
|
9591
|
+
return /* @__PURE__ */ import_react63.default.createElement("div", null, /* @__PURE__ */ import_react63.default.createElement("div", {
|
|
9560
9592
|
className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between"
|
|
9561
|
-
}, /* @__PURE__ */
|
|
9593
|
+
}, /* @__PURE__ */ import_react63.default.createElement(Radio, {
|
|
9562
9594
|
design: "tabs",
|
|
9563
9595
|
defaultValue: props.currentCycle,
|
|
9564
9596
|
options: props.billingCycles,
|
|
@@ -9567,7 +9599,7 @@ var PricingPlans = function(props) {
|
|
|
9567
9599
|
props.onCycleChange(e);
|
|
9568
9600
|
}
|
|
9569
9601
|
}
|
|
9570
|
-
}), /* @__PURE__ */
|
|
9602
|
+
}), /* @__PURE__ */ import_react63.default.createElement(Radio, {
|
|
9571
9603
|
design: "tabs",
|
|
9572
9604
|
defaultValue: props.currentCurrency,
|
|
9573
9605
|
options: props.currencies,
|
|
@@ -9576,10 +9608,10 @@ var PricingPlans = function(props) {
|
|
|
9576
9608
|
props.onCurrencyChange(e);
|
|
9577
9609
|
}
|
|
9578
9610
|
}
|
|
9579
|
-
})), /* @__PURE__ */
|
|
9611
|
+
})), /* @__PURE__ */ import_react63.default.createElement("div", {
|
|
9580
9612
|
className: "hawa-flex hawa-flex-row hawa-justify-between"
|
|
9581
9613
|
}, props.plans.map(function(plan, index) {
|
|
9582
|
-
return /* @__PURE__ */
|
|
9614
|
+
return /* @__PURE__ */ import_react63.default.createElement(PricingCard, _object_spread_props(_object_spread({
|
|
9583
9615
|
key: index,
|
|
9584
9616
|
onPlanClicked: function() {
|
|
9585
9617
|
if (props.onPlanClicked) {
|
|
@@ -9600,26 +9632,26 @@ var PricingPlans = function(props) {
|
|
|
9600
9632
|
})));
|
|
9601
9633
|
};
|
|
9602
9634
|
// components/blocks/pricing/ComparingPlans.tsx
|
|
9603
|
-
var
|
|
9635
|
+
var import_react64 = __toESM(require("react"));
|
|
9604
9636
|
var CheckMark = function() {
|
|
9605
|
-
return /* @__PURE__ */
|
|
9637
|
+
return /* @__PURE__ */ import_react64.default.createElement("svg", {
|
|
9606
9638
|
className: "hawa-h-5 hawa-w-5 hawa-text-green-500",
|
|
9607
9639
|
"aria-hidden": "true",
|
|
9608
9640
|
fill: "currentColor",
|
|
9609
9641
|
viewBox: "0 0 20 20"
|
|
9610
|
-
}, /* @__PURE__ */
|
|
9642
|
+
}, /* @__PURE__ */ import_react64.default.createElement("path", {
|
|
9611
9643
|
fillRule: "evenodd",
|
|
9612
9644
|
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",
|
|
9613
9645
|
clipRule: "evenodd"
|
|
9614
9646
|
}));
|
|
9615
9647
|
};
|
|
9616
9648
|
var UncheckMark = function() {
|
|
9617
|
-
return /* @__PURE__ */
|
|
9649
|
+
return /* @__PURE__ */ import_react64.default.createElement("svg", {
|
|
9618
9650
|
className: "hawa-h-5 hawa-w-5 hawa-text-red-500",
|
|
9619
9651
|
"aria-hidden": "true",
|
|
9620
9652
|
fill: "currentColor",
|
|
9621
9653
|
viewBox: "0 0 20 20"
|
|
9622
|
-
}, /* @__PURE__ */
|
|
9654
|
+
}, /* @__PURE__ */ import_react64.default.createElement("path", {
|
|
9623
9655
|
fillRule: "evenodd",
|
|
9624
9656
|
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",
|
|
9625
9657
|
clipRule: "evenodd"
|
|
@@ -9627,14 +9659,14 @@ var UncheckMark = function() {
|
|
|
9627
9659
|
};
|
|
9628
9660
|
var ComparingPlans = function(props) {
|
|
9629
9661
|
var _props_plans;
|
|
9630
|
-
var _ref = _sliced_to_array((0,
|
|
9631
|
-
var _ref1 = _sliced_to_array((0,
|
|
9632
|
-
return /* @__PURE__ */
|
|
9662
|
+
var _ref = _sliced_to_array((0, import_react64.useState)("sar"), 2), currentCurrency = _ref[0], setCurrentCurrency = _ref[1];
|
|
9663
|
+
var _ref1 = _sliced_to_array((0, import_react64.useState)("month"), 2), currentCycle = _ref1[0], setCurrentCycle = _ref1[1];
|
|
9664
|
+
return /* @__PURE__ */ import_react64.default.createElement("div", {
|
|
9633
9665
|
id: "detailed-pricing",
|
|
9634
9666
|
className: "hawa-w-full hawa-overflow-x-auto"
|
|
9635
|
-
}, /* @__PURE__ */
|
|
9667
|
+
}, /* @__PURE__ */ import_react64.default.createElement("div", {
|
|
9636
9668
|
className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between"
|
|
9637
|
-
}, /* @__PURE__ */
|
|
9669
|
+
}, /* @__PURE__ */ import_react64.default.createElement(Radio, {
|
|
9638
9670
|
design: "tabs",
|
|
9639
9671
|
defaultValue: currentCycle,
|
|
9640
9672
|
options: props.billingCycles,
|
|
@@ -9645,7 +9677,7 @@ var ComparingPlans = function(props) {
|
|
|
9645
9677
|
console.log("onCycleChange was not provided");
|
|
9646
9678
|
}
|
|
9647
9679
|
}
|
|
9648
|
-
}), /* @__PURE__ */
|
|
9680
|
+
}), /* @__PURE__ */ import_react64.default.createElement(Radio, {
|
|
9649
9681
|
design: "tabs",
|
|
9650
9682
|
defaultValue: currentCurrency,
|
|
9651
9683
|
options: props.currencies,
|
|
@@ -9656,56 +9688,56 @@ var ComparingPlans = function(props) {
|
|
|
9656
9688
|
console.log("onCurrencyChange was not provided");
|
|
9657
9689
|
}
|
|
9658
9690
|
}
|
|
9659
|
-
})), /* @__PURE__ */
|
|
9691
|
+
})), /* @__PURE__ */ import_react64.default.createElement("div", {
|
|
9660
9692
|
className: " hawa-overflow-hidden hawa-rounded"
|
|
9661
|
-
}, /* @__PURE__ */
|
|
9693
|
+
}, /* @__PURE__ */ import_react64.default.createElement("div", {
|
|
9662
9694
|
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"
|
|
9663
|
-
}, /* @__PURE__ */
|
|
9695
|
+
}, /* @__PURE__ */ import_react64.default.createElement("div", {
|
|
9664
9696
|
className: "hawa-flex hawa-items-center"
|
|
9665
9697
|
}), props.plans.map(function(plan, i) {
|
|
9666
|
-
return /* @__PURE__ */
|
|
9698
|
+
return /* @__PURE__ */ import_react64.default.createElement("div", {
|
|
9667
9699
|
key: i
|
|
9668
|
-
}, /* @__PURE__ */
|
|
9700
|
+
}, /* @__PURE__ */ import_react64.default.createElement("h5", {
|
|
9669
9701
|
className: "hawa-text-md hawa-font-bold hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
9670
|
-
}, plan.texts.title), /* @__PURE__ */
|
|
9702
|
+
}, plan.texts.title), /* @__PURE__ */ import_react64.default.createElement("div", {
|
|
9671
9703
|
className: " hawa-flex hawa-items-baseline hawa-text-gray-900 dark:hawa-text-white"
|
|
9672
|
-
}, /* @__PURE__ */
|
|
9704
|
+
}, /* @__PURE__ */ import_react64.default.createElement(import_react64.default.Fragment, null, /* @__PURE__ */ import_react64.default.createElement("span", {
|
|
9673
9705
|
className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight"
|
|
9674
|
-
}, plan.price), /* @__PURE__ */
|
|
9706
|
+
}, plan.price), /* @__PURE__ */ import_react64.default.createElement("span", {
|
|
9675
9707
|
className: "hawa-mx-1 hawa-text-sm hawa-font-semibold"
|
|
9676
|
-
}, plan.texts.currencyText)), /* @__PURE__ */
|
|
9708
|
+
}, plan.texts.currencyText)), /* @__PURE__ */ import_react64.default.createElement("span", {
|
|
9677
9709
|
className: "hawa-ml-1 hawa-text-xl hawa-font-normal hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
9678
|
-
}, "/ ", plan.texts.cycleText)), /* @__PURE__ */
|
|
9710
|
+
}, "/ ", plan.texts.cycleText)), /* @__PURE__ */ import_react64.default.createElement("h5", {
|
|
9679
9711
|
className: "hawa-text-md hawa-font-normal hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
9680
9712
|
}, plan.texts.subtitle));
|
|
9681
9713
|
})), (_props_plans = props.plans) === null || _props_plans === void 0 ? void 0 : _props_plans.map(function(plan) {
|
|
9682
9714
|
return plan.features.map(function(feature, j) {
|
|
9683
|
-
return /* @__PURE__ */
|
|
9715
|
+
return /* @__PURE__ */ import_react64.default.createElement("div", {
|
|
9684
9716
|
key: j,
|
|
9685
9717
|
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"
|
|
9686
|
-
}, /* @__PURE__ */
|
|
9718
|
+
}, /* @__PURE__ */ import_react64.default.createElement("div", {
|
|
9687
9719
|
className: " hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
9688
|
-
}, feature.text, feature.description && /* @__PURE__ */
|
|
9720
|
+
}, feature.text, feature.description && /* @__PURE__ */ import_react64.default.createElement(Tooltip, {
|
|
9689
9721
|
side: "right",
|
|
9690
9722
|
content: feature.description
|
|
9691
|
-
}, /* @__PURE__ */
|
|
9723
|
+
}, /* @__PURE__ */ import_react64.default.createElement("svg", {
|
|
9692
9724
|
stroke: "currentColor",
|
|
9693
9725
|
fill: "currentColor",
|
|
9694
9726
|
strokeWidth: "0",
|
|
9695
9727
|
viewBox: "0 0 16 16",
|
|
9696
9728
|
height: "1em",
|
|
9697
9729
|
width: "1em"
|
|
9698
|
-
}, /* @__PURE__ */
|
|
9730
|
+
}, /* @__PURE__ */ import_react64.default.createElement("path", {
|
|
9699
9731
|
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"
|
|
9700
|
-
})))), /* @__PURE__ */
|
|
9732
|
+
})))), /* @__PURE__ */ import_react64.default.createElement(UncheckMark, null), /* @__PURE__ */ import_react64.default.createElement(CheckMark, null), /* @__PURE__ */ import_react64.default.createElement(UncheckMark, null));
|
|
9701
9733
|
});
|
|
9702
9734
|
})));
|
|
9703
9735
|
};
|
|
9704
9736
|
// components/blocks/pricing/HorizontalPricing.tsx
|
|
9705
|
-
var
|
|
9737
|
+
var import_react65 = __toESM(require("react"));
|
|
9706
9738
|
var import_clsx12 = __toESM(require("clsx"));
|
|
9707
9739
|
var HorizontalPricing = function(props) {
|
|
9708
|
-
var _ref = _sliced_to_array((0,
|
|
9740
|
+
var _ref = _sliced_to_array((0, import_react65.useState)(""), 2), selectedCard = _ref[0], setSelectedCard = _ref[1];
|
|
9709
9741
|
var data = [
|
|
9710
9742
|
{
|
|
9711
9743
|
title: "basic",
|
|
@@ -9723,96 +9755,96 @@ var HorizontalPricing = function(props) {
|
|
|
9723
9755
|
cycle: "/mo"
|
|
9724
9756
|
}
|
|
9725
9757
|
];
|
|
9726
|
-
return /* @__PURE__ */
|
|
9758
|
+
return /* @__PURE__ */ import_react65.default.createElement("div", {
|
|
9727
9759
|
className: "hawa-z-10 hawa-w-full hawa-max-w-screen-sm"
|
|
9728
|
-
}, /* @__PURE__ */
|
|
9760
|
+
}, /* @__PURE__ */ import_react65.default.createElement("div", {
|
|
9729
9761
|
className: "hawa-max-w-2xl "
|
|
9730
|
-
}, /* @__PURE__ */
|
|
9762
|
+
}, /* @__PURE__ */ import_react65.default.createElement("div", {
|
|
9731
9763
|
className: "hawa-flex hawa-flex-row hawa-justify-between"
|
|
9732
|
-
}, /* @__PURE__ */
|
|
9764
|
+
}, /* @__PURE__ */ import_react65.default.createElement(Radio, {
|
|
9733
9765
|
design: "tabs",
|
|
9734
9766
|
options: props.currencies,
|
|
9735
9767
|
defaultValue: props.currentCurrency
|
|
9736
|
-
}), /* @__PURE__ */
|
|
9768
|
+
}), /* @__PURE__ */ import_react65.default.createElement(Radio, {
|
|
9737
9769
|
design: "tabs",
|
|
9738
9770
|
options: props.billingCycles,
|
|
9739
9771
|
defaultValue: props.currentCycle
|
|
9740
9772
|
})), data.map(function(d, i) {
|
|
9741
|
-
return /* @__PURE__ */
|
|
9773
|
+
return /* @__PURE__ */ import_react65.default.createElement("label", {
|
|
9742
9774
|
key: i,
|
|
9743
9775
|
htmlFor: d.title,
|
|
9744
9776
|
className: "",
|
|
9745
9777
|
onClick: function() {
|
|
9746
9778
|
return setSelectedCard(d.title);
|
|
9747
9779
|
}
|
|
9748
|
-
}, /* @__PURE__ */
|
|
9780
|
+
}, /* @__PURE__ */ import_react65.default.createElement("input", {
|
|
9749
9781
|
type: "radio",
|
|
9750
9782
|
name: "radio",
|
|
9751
9783
|
id: d.title,
|
|
9752
9784
|
className: "hawa-peer hawa-appearance-none"
|
|
9753
|
-
}), /* @__PURE__ */
|
|
9785
|
+
}), /* @__PURE__ */ import_react65.default.createElement("div", {
|
|
9754
9786
|
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")
|
|
9755
|
-
}, /* @__PURE__ */
|
|
9787
|
+
}, /* @__PURE__ */ import_react65.default.createElement("div", {
|
|
9756
9788
|
className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4"
|
|
9757
|
-
}, /* @__PURE__ */
|
|
9789
|
+
}, /* @__PURE__ */ import_react65.default.createElement(CheckIcons, null), /* @__PURE__ */ import_react65.default.createElement(CardText, {
|
|
9758
9790
|
title: "Enterprise",
|
|
9759
9791
|
subtitle: "For startups and new businesses"
|
|
9760
|
-
})), /* @__PURE__ */
|
|
9792
|
+
})), /* @__PURE__ */ import_react65.default.createElement(CardPrice, {
|
|
9761
9793
|
amount: d.price,
|
|
9762
9794
|
cycle: d.cycle
|
|
9763
9795
|
})));
|
|
9764
9796
|
})));
|
|
9765
9797
|
};
|
|
9766
9798
|
var CheckIcons = function() {
|
|
9767
|
-
return /* @__PURE__ */
|
|
9799
|
+
return /* @__PURE__ */ import_react65.default.createElement(import_react65.default.Fragment, null, /* @__PURE__ */ import_react65.default.createElement("svg", {
|
|
9768
9800
|
fill: "none",
|
|
9769
9801
|
viewBox: "0 0 24 24",
|
|
9770
9802
|
strokeWidth: "1.5",
|
|
9771
9803
|
stroke: "currentColor",
|
|
9772
9804
|
className: "hawa-default hawa-h-8 hawa-w-8 hawa-text-neutral-500"
|
|
9773
|
-
}, /* @__PURE__ */
|
|
9805
|
+
}, /* @__PURE__ */ import_react65.default.createElement("path", {
|
|
9774
9806
|
strokeLinecap: "round",
|
|
9775
9807
|
strokeLinejoin: "round",
|
|
9776
9808
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
9777
|
-
})), /* @__PURE__ */
|
|
9809
|
+
})), /* @__PURE__ */ import_react65.default.createElement("svg", {
|
|
9778
9810
|
viewBox: "0 0 24 24",
|
|
9779
9811
|
fill: "currentColor",
|
|
9780
9812
|
className: "hawa-active hawa-hidden hawa-h-8 hawa-w-8 hawa-text-blue-500"
|
|
9781
|
-
}, /* @__PURE__ */
|
|
9813
|
+
}, /* @__PURE__ */ import_react65.default.createElement("path", {
|
|
9782
9814
|
fillRule: "evenodd",
|
|
9783
9815
|
clipRule: "evenodd",
|
|
9784
9816
|
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"
|
|
9785
9817
|
})));
|
|
9786
9818
|
};
|
|
9787
9819
|
var CardText = function(props) {
|
|
9788
|
-
return /* @__PURE__ */
|
|
9820
|
+
return /* @__PURE__ */ import_react65.default.createElement("div", {
|
|
9789
9821
|
className: "hawa-peer hawa-flex hawa-flex-col hawa-items-start "
|
|
9790
|
-
}, /* @__PURE__ */
|
|
9822
|
+
}, /* @__PURE__ */ import_react65.default.createElement("h2", {
|
|
9791
9823
|
className: "hawa-font-medium hawa-text-primary/90 sm:hawa-text-xl"
|
|
9792
|
-
}, props.title), /* @__PURE__ */
|
|
9824
|
+
}, props.title), /* @__PURE__ */ import_react65.default.createElement("p", {
|
|
9793
9825
|
className: "hawa-text-sm hawa-text-primary/60"
|
|
9794
9826
|
}, props.subtitle, " "));
|
|
9795
9827
|
};
|
|
9796
9828
|
var CardPrice = function(props) {
|
|
9797
|
-
return /* @__PURE__ */
|
|
9829
|
+
return /* @__PURE__ */ import_react65.default.createElement("h2", {
|
|
9798
9830
|
className: "hawa-peer hawa-text-xl hawa-font-semibold hawa-text-primary sm:hawa-text-2xl"
|
|
9799
|
-
}, props.amount, /* @__PURE__ */
|
|
9831
|
+
}, props.amount, /* @__PURE__ */ import_react65.default.createElement("span", {
|
|
9800
9832
|
className: "hawa-text-base hawa-font-medium hawa-text-neutral-400"
|
|
9801
9833
|
}, props.cycle));
|
|
9802
9834
|
};
|
|
9803
9835
|
// components/blocks/Usage.tsx
|
|
9804
|
-
var
|
|
9836
|
+
var import_react66 = __toESM(require("react"));
|
|
9805
9837
|
var Usage = function(props) {
|
|
9806
9838
|
var _props_percent;
|
|
9807
|
-
return /* @__PURE__ */
|
|
9839
|
+
return /* @__PURE__ */ import_react66.default.createElement("div", {
|
|
9808
9840
|
className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-1 hawa-rounded hawa-border hawa-bg-card hawa-p-4"
|
|
9809
|
-
}, /* @__PURE__ */
|
|
9841
|
+
}, /* @__PURE__ */ import_react66.default.createElement("div", {
|
|
9810
9842
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2"
|
|
9811
|
-
}, /* @__PURE__ */
|
|
9843
|
+
}, /* @__PURE__ */ import_react66.default.createElement("span", {
|
|
9812
9844
|
className: "hawa-bg-white-200"
|
|
9813
|
-
}, props.title), props.tooltip && /* @__PURE__ */
|
|
9845
|
+
}, props.title), props.tooltip && /* @__PURE__ */ import_react66.default.createElement(Tooltip, {
|
|
9814
9846
|
content: props.tooltip
|
|
9815
|
-
}, /* @__PURE__ */
|
|
9847
|
+
}, /* @__PURE__ */ import_react66.default.createElement("svg", {
|
|
9816
9848
|
stroke: "currentColor",
|
|
9817
9849
|
"aria-label": "Exclamation Circle",
|
|
9818
9850
|
fill: "currentColor",
|
|
@@ -9820,28 +9852,28 @@ var Usage = function(props) {
|
|
|
9820
9852
|
viewBox: "0 0 16 16",
|
|
9821
9853
|
height: "1em",
|
|
9822
9854
|
width: "1em"
|
|
9823
|
-
}, /* @__PURE__ */
|
|
9855
|
+
}, /* @__PURE__ */ import_react66.default.createElement("path", {
|
|
9824
9856
|
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"
|
|
9825
|
-
})))), /* @__PURE__ */
|
|
9857
|
+
})))), /* @__PURE__ */ import_react66.default.createElement("div", {
|
|
9826
9858
|
className: "hawa-bg-white-100 hawa-flex hawa-flex-row"
|
|
9827
|
-
}, /* @__PURE__ */
|
|
9859
|
+
}, /* @__PURE__ */ import_react66.default.createElement("div", null, props.currentUsage), /* @__PURE__ */ import_react66.default.createElement("div", null, " (", props.percent, "%)")), /* @__PURE__ */ import_react66.default.createElement(Progress, {
|
|
9828
9860
|
value: (_props_percent = props.percent) !== null && _props_percent !== void 0 ? _props_percent : 0
|
|
9829
9861
|
}));
|
|
9830
9862
|
};
|
|
9831
9863
|
// components/hooks/useDiscloser.ts
|
|
9832
|
-
var import_react66 = require("react");
|
|
9833
|
-
// components/hooks/useHover.ts
|
|
9834
9864
|
var import_react67 = require("react");
|
|
9835
|
-
// components/hooks/
|
|
9865
|
+
// components/hooks/useHover.ts
|
|
9836
9866
|
var import_react68 = require("react");
|
|
9837
|
-
// components/hooks/
|
|
9867
|
+
// components/hooks/useCarousel.ts
|
|
9838
9868
|
var import_react69 = require("react");
|
|
9869
|
+
// components/hooks/useWindowSize.ts
|
|
9870
|
+
var import_react70 = require("react");
|
|
9839
9871
|
var useWindowSize = function() {
|
|
9840
|
-
var _ref = _sliced_to_array((0,
|
|
9872
|
+
var _ref = _sliced_to_array((0, import_react70.useState)({
|
|
9841
9873
|
width: void 0,
|
|
9842
9874
|
height: void 0
|
|
9843
9875
|
}), 2), windowSize = _ref[0], setWindowSize = _ref[1];
|
|
9844
|
-
(0,
|
|
9876
|
+
(0, import_react70.useEffect)(function() {
|
|
9845
9877
|
var handleResize = function handleResize() {
|
|
9846
9878
|
setWindowSize({
|
|
9847
9879
|
width: window.innerWidth,
|
|
@@ -9857,7 +9889,7 @@ var useWindowSize = function() {
|
|
|
9857
9889
|
return windowSize;
|
|
9858
9890
|
};
|
|
9859
9891
|
// components/hooks/useFocusWithin.ts
|
|
9860
|
-
var
|
|
9892
|
+
var import_react71 = require("react");
|
|
9861
9893
|
function containsRelatedTarget(event) {
|
|
9862
9894
|
if (_instanceof(event.currentTarget, HTMLElement) && _instanceof(event.relatedTarget, HTMLElement)) {
|
|
9863
9895
|
return event.currentTarget.contains(event.relatedTarget);
|
|
@@ -9866,9 +9898,9 @@ function containsRelatedTarget(event) {
|
|
|
9866
9898
|
}
|
|
9867
9899
|
function useFocusWithin() {
|
|
9868
9900
|
var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, onBlur = _ref.onBlur, onFocus = _ref.onFocus;
|
|
9869
|
-
var ref = (0,
|
|
9870
|
-
var _ref1 = _sliced_to_array((0,
|
|
9871
|
-
var focusedRef = (0,
|
|
9901
|
+
var ref = (0, import_react71.useRef)(null);
|
|
9902
|
+
var _ref1 = _sliced_to_array((0, import_react71.useState)(false), 2), focused = _ref1[0], _setFocused = _ref1[1];
|
|
9903
|
+
var focusedRef = (0, import_react71.useRef)(false);
|
|
9872
9904
|
var setFocused = function(value) {
|
|
9873
9905
|
_setFocused(value);
|
|
9874
9906
|
focusedRef.current = value;
|
|
@@ -9885,7 +9917,7 @@ function useFocusWithin() {
|
|
|
9885
9917
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
9886
9918
|
}
|
|
9887
9919
|
};
|
|
9888
|
-
(0,
|
|
9920
|
+
(0, import_react71.useEffect)(function() {
|
|
9889
9921
|
if (ref.current) {
|
|
9890
9922
|
ref.current.addEventListener("focusin", handleFocusIn);
|
|
9891
9923
|
ref.current.addEventListener("focusout", handleFocusOut);
|
|
@@ -9906,7 +9938,7 @@ function useFocusWithin() {
|
|
|
9906
9938
|
};
|
|
9907
9939
|
}
|
|
9908
9940
|
// components/hooks/useMediaQuery.ts
|
|
9909
|
-
var
|
|
9941
|
+
var import_react72 = require("react");
|
|
9910
9942
|
function attachMediaListener(query, callback) {
|
|
9911
9943
|
try {
|
|
9912
9944
|
query.addEventListener("change", callback);
|
|
@@ -9933,9 +9965,9 @@ function useMediaQuery(query, initialValue) {
|
|
|
9933
9965
|
var getInitialValueInEffect = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
9934
9966
|
getInitialValueInEffect: true
|
|
9935
9967
|
}).getInitialValueInEffect;
|
|
9936
|
-
var _ref = _sliced_to_array((0,
|
|
9937
|
-
var queryRef = (0,
|
|
9938
|
-
(0,
|
|
9968
|
+
var _ref = _sliced_to_array((0, import_react72.useState)(getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)), 2), matches = _ref[0], setMatches = _ref[1];
|
|
9969
|
+
var queryRef = (0, import_react72.useRef)();
|
|
9970
|
+
(0, import_react72.useEffect)(function() {
|
|
9939
9971
|
if ("matchMedia" in window) {
|
|
9940
9972
|
queryRef.current = window.matchMedia(query);
|
|
9941
9973
|
setMatches(queryRef.current.matches);
|
|
@@ -9950,15 +9982,15 @@ function useMediaQuery(query, initialValue) {
|
|
|
9950
9982
|
return matches;
|
|
9951
9983
|
}
|
|
9952
9984
|
// components/hooks/useScrollPosition.ts
|
|
9953
|
-
var import_react72 = require("react");
|
|
9954
|
-
// components/hooks/useTable.ts
|
|
9955
9985
|
var import_react73 = require("react");
|
|
9956
|
-
// components/hooks/
|
|
9986
|
+
// components/hooks/useTable.ts
|
|
9957
9987
|
var import_react74 = require("react");
|
|
9988
|
+
// components/hooks/useTabs.ts
|
|
9989
|
+
var import_react75 = require("react");
|
|
9958
9990
|
function useTabs() {
|
|
9959
9991
|
var initialTab = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
9960
|
-
var _ref = _sliced_to_array((0,
|
|
9961
|
-
(0,
|
|
9992
|
+
var _ref = _sliced_to_array((0, import_react75.useState)(initialTab), 2), activeTab = _ref[0], setActiveTab = _ref[1];
|
|
9993
|
+
(0, import_react75.useEffect)(function() {
|
|
9962
9994
|
var handleHashChange = function() {
|
|
9963
9995
|
var hash = window.location.hash.substring(1);
|
|
9964
9996
|
setActiveTab(hash || initialTab);
|
|
@@ -9994,6 +10026,7 @@ function useTabs() {
|
|
|
9994
10026
|
AppLanding: AppLanding,
|
|
9995
10027
|
AppLayout: AppLayout,
|
|
9996
10028
|
AppStores: AppStores,
|
|
10029
|
+
AppTabs: AppTabs,
|
|
9997
10030
|
AppTopbar: AppTopbar,
|
|
9998
10031
|
BackToTop: BackToTop,
|
|
9999
10032
|
Badge: Badge,
|