@sikka/hawa 0.48.0-next → 0.49.0-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/accordion/index.js +3 -28
- package/dist/accordion/index.js.map +1 -1
- package/dist/accordion/index.mjs +3 -28
- package/dist/accordion/index.mjs.map +1 -1
- package/dist/alert/index.js +53 -98
- package/dist/alert/index.js.map +1 -1
- package/dist/alert/index.mjs +53 -98
- package/dist/alert/index.mjs.map +1 -1
- package/dist/appLayout/index.d.mts +2 -0
- package/dist/appLayout/index.d.ts +2 -0
- package/dist/appLayout/index.js +263 -409
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +263 -409
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/appMenubar/index.js +15 -20
- package/dist/appMenubar/index.js.map +1 -1
- package/dist/appMenubar/index.mjs +15 -20
- package/dist/appMenubar/index.mjs.map +1 -1
- package/dist/appTabs/index.js +28 -37
- package/dist/appTabs/index.js.map +1 -1
- package/dist/appTabs/index.mjs +28 -37
- package/dist/appTabs/index.mjs.map +1 -1
- package/dist/appTopbar/index.js +125 -173
- package/dist/appTopbar/index.js.map +1 -1
- package/dist/appTopbar/index.mjs +125 -173
- package/dist/appTopbar/index.mjs.map +1 -1
- package/dist/avatar/index.js.map +1 -1
- package/dist/avatar/index.mjs.map +1 -1
- package/dist/backToTop/index.js +50 -82
- package/dist/backToTop/index.js.map +1 -1
- package/dist/backToTop/index.mjs +50 -82
- package/dist/backToTop/index.mjs.map +1 -1
- package/dist/badge/index.d.mts +1 -1
- package/dist/badge/index.d.ts +1 -1
- package/dist/badge/index.js +2 -18
- package/dist/badge/index.js.map +1 -1
- package/dist/badge/index.mjs +2 -18
- package/dist/badge/index.mjs.map +1 -1
- package/dist/blocks/auth/index.d.mts +1 -0
- package/dist/blocks/auth/index.d.ts +1 -0
- package/dist/blocks/auth/index.js +539 -792
- package/dist/blocks/auth/index.mjs +433 -604
- package/dist/blocks/feedback/index.js +214 -375
- package/dist/blocks/feedback/index.mjs +12 -25
- package/dist/blocks/index.d.mts +1 -0
- package/dist/blocks/index.d.ts +1 -0
- package/dist/blocks/index.js +940 -1445
- package/dist/blocks/index.mjs +469 -615
- package/dist/blocks/misc/index.js +136 -251
- package/dist/blocks/misc/index.mjs +29 -54
- package/dist/blocks/pricing/index.js +220 -397
- package/dist/blocks/pricing/index.mjs +63 -134
- package/dist/breadcrumb/index.js +1 -5
- package/dist/breadcrumb/index.js.map +1 -1
- package/dist/breadcrumb/index.mjs +1 -5
- package/dist/breadcrumb/index.mjs.map +1 -1
- package/dist/button/index.js +50 -82
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +50 -82
- package/dist/button/index.mjs.map +1 -1
- package/dist/calendar/index.js +50 -82
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/index.mjs +50 -82
- package/dist/calendar/index.mjs.map +1 -1
- package/dist/card/index.js +7 -35
- package/dist/card/index.js.map +1 -1
- package/dist/card/index.mjs +7 -35
- package/dist/card/index.mjs.map +1 -1
- package/dist/carousel/index.js +15 -27
- package/dist/carousel/index.js.map +1 -1
- package/dist/carousel/index.mjs +15 -27
- package/dist/carousel/index.mjs.map +1 -1
- package/dist/checkbox/index.js +2 -13
- package/dist/checkbox/index.js.map +1 -1
- package/dist/checkbox/index.mjs +2 -13
- package/dist/checkbox/index.mjs.map +1 -1
- package/dist/chip/index.js +2 -16
- package/dist/chip/index.js.map +1 -1
- package/dist/chip/index.mjs +2 -16
- package/dist/chip/index.mjs.map +1 -1
- package/dist/{chunk-WUMDFBEK.mjs → chunk-3CHFVHTW.mjs} +43 -54
- package/dist/{chunk-2LUXOXAL.mjs → chunk-5SQBJRWE.mjs} +3 -9
- package/dist/{chunk-C2UOOH4X.mjs → chunk-B53SP2WZ.mjs} +3 -17
- package/dist/chunk-GHGWQVTM.mjs +150 -0
- package/dist/{chunk-5S5DR7KF.mjs → chunk-I23ONEDJ.mjs} +2 -10
- package/dist/{chunk-JFWD2ICY.mjs → chunk-JT7R3L5O.mjs} +54 -62
- package/dist/{chunk-6SJUUJOV.mjs → chunk-KDGJZPWK.mjs} +295 -574
- package/dist/{chunk-AWJSHOYU.mjs → chunk-KSJGXQTE.mjs} +1 -1
- package/dist/{chunk-NMW4GM4G.mjs → chunk-SE2JMXYG.mjs} +104 -144
- package/dist/{chunk-GBLWUEYN.mjs → chunk-ULRL4WI6.mjs} +176 -256
- package/dist/{chunk-IFWYR5W2.mjs → chunk-VUELRPUL.mjs} +57 -117
- package/dist/{chunk-WL7C2A5D.mjs → chunk-WQR4XZGL.mjs} +8 -15
- package/dist/codeBlock/index.js +50 -82
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +50 -82
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/colorPicker/index.js +21 -33
- package/dist/colorPicker/index.js.map +1 -1
- package/dist/colorPicker/index.mjs +22 -37
- package/dist/colorPicker/index.mjs.map +1 -1
- package/dist/combobox/index.d.mts +1 -1
- package/dist/combobox/index.d.ts +1 -1
- package/dist/combobox/index.js +141 -223
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +141 -223
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.d.mts +1 -1
- package/dist/command/index.d.ts +1 -1
- package/dist/command/index.js +129 -212
- package/dist/command/index.js.map +1 -1
- package/dist/command/index.mjs +129 -212
- package/dist/command/index.mjs.map +1 -1
- package/dist/dataTable/index.js +254 -394
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +254 -394
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/datePicker/index.js +64 -105
- package/dist/datePicker/index.js.map +1 -1
- package/dist/datePicker/index.mjs +64 -105
- package/dist/datePicker/index.mjs.map +1 -1
- package/dist/destroyableCard/index.js +8 -39
- package/dist/destroyableCard/index.js.map +1 -1
- package/dist/destroyableCard/index.mjs +8 -39
- package/dist/destroyableCard/index.mjs.map +1 -1
- package/dist/dialog/index.js +70 -122
- package/dist/dialog/index.js.map +1 -1
- package/dist/dialog/index.mjs +70 -122
- package/dist/dialog/index.mjs.map +1 -1
- package/dist/docsLayout/index.js +169 -358
- package/dist/docsLayout/index.js.map +1 -1
- package/dist/docsLayout/index.mjs +169 -358
- package/dist/docsLayout/index.mjs.map +1 -1
- package/dist/docsSidebar/index.js +9 -16
- package/dist/docsSidebar/index.js.map +1 -1
- package/dist/docsSidebar/index.mjs +9 -16
- package/dist/docsSidebar/index.mjs.map +1 -1
- package/dist/dropdownMenu/index.js +124 -164
- package/dist/dropdownMenu/index.js.map +1 -1
- package/dist/dropdownMenu/index.mjs +124 -164
- package/dist/dropdownMenu/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +3 -3
- package/dist/elements/index.d.ts +3 -3
- package/dist/elements/index.js +841 -1505
- package/dist/elements/index.mjs +381 -718
- package/dist/fileDropzone/index.js +60 -159
- package/dist/fileDropzone/index.js.map +1 -1
- package/dist/fileDropzone/index.mjs +60 -159
- package/dist/fileDropzone/index.mjs.map +1 -1
- package/dist/glow/index.js +4 -16
- package/dist/glow/index.js.map +1 -1
- package/dist/glow/index.mjs +4 -16
- package/dist/glow/index.mjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -5
- package/dist/hooks/index.d.ts +1 -5
- package/dist/hooks/index.js +11 -24
- package/dist/hooks/index.mjs +2 -2
- package/dist/{index-B0aJcA6d.d.ts → index-BgNycocQ.d.mts} +2 -2
- package/dist/{index-B0aJcA6d.d.mts → index-BgNycocQ.d.ts} +2 -2
- package/dist/index.css +1 -6
- package/dist/index.d.mts +7 -8
- package/dist/index.d.ts +7 -8
- package/dist/index.js +1549 -2512
- package/dist/index.mjs +1550 -2516
- package/dist/input/index.js +20 -29
- package/dist/input/index.js.map +1 -1
- package/dist/input/index.mjs +20 -29
- package/dist/input/index.mjs.map +1 -1
- package/dist/interfaceSettings/index.js +122 -163
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +122 -163
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/label/index.js +19 -26
- package/dist/label/index.js.map +1 -1
- package/dist/label/index.mjs +19 -26
- package/dist/label/index.mjs.map +1 -1
- package/dist/layout/index.d.mts +2 -0
- package/dist/layout/index.d.ts +2 -0
- package/dist/layout/index.js +434 -790
- package/dist/layout/index.mjs +143 -243
- package/dist/loading/index.js +30 -53
- package/dist/loading/index.js.map +1 -1
- package/dist/loading/index.mjs +30 -53
- package/dist/loading/index.mjs.map +1 -1
- package/dist/logos/index.js +66 -191
- package/dist/logos/index.js.map +1 -1
- package/dist/logos/index.mjs +66 -191
- package/dist/logos/index.mjs.map +1 -1
- package/dist/navbar/index.js +1 -4
- package/dist/navbar/index.js.map +1 -1
- package/dist/navbar/index.mjs +1 -4
- package/dist/navbar/index.mjs.map +1 -1
- package/dist/navigationMenu/index.js +14 -22
- package/dist/navigationMenu/index.js.map +1 -1
- package/dist/navigationMenu/index.mjs +14 -22
- package/dist/navigationMenu/index.mjs.map +1 -1
- package/dist/pagination/index.js +1 -5
- package/dist/pagination/index.js.map +1 -1
- package/dist/pagination/index.mjs +1 -5
- package/dist/pagination/index.mjs.map +1 -1
- package/dist/passwordInput/index.js +36 -65
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs +36 -65
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/phoneInput/index.js +20 -29
- package/dist/phoneInput/index.js.map +1 -1
- package/dist/phoneInput/index.mjs +20 -29
- package/dist/phoneInput/index.mjs.map +1 -1
- package/dist/pinInput/index.js +14 -16
- package/dist/pinInput/index.js.map +1 -1
- package/dist/pinInput/index.mjs +14 -16
- package/dist/pinInput/index.mjs.map +1 -1
- package/dist/popover/index.js +14 -24
- package/dist/popover/index.js.map +1 -1
- package/dist/popover/index.mjs +14 -24
- package/dist/popover/index.mjs.map +1 -1
- package/dist/progress/index.js +19 -26
- package/dist/progress/index.js.map +1 -1
- package/dist/progress/index.mjs +19 -26
- package/dist/progress/index.mjs.map +1 -1
- package/dist/progressCircle/index.js +67 -71
- package/dist/progressCircle/index.js.map +1 -1
- package/dist/progressCircle/index.mjs +67 -71
- package/dist/progressCircle/index.mjs.map +1 -1
- package/dist/radio/index.js +122 -163
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +122 -163
- package/dist/radio/index.mjs.map +1 -1
- package/dist/scrollArea/index.js.map +1 -1
- package/dist/scrollArea/index.mjs.map +1 -1
- package/dist/scrollIndicator/index.js +1 -4
- package/dist/scrollIndicator/index.js.map +1 -1
- package/dist/scrollIndicator/index.mjs +1 -4
- package/dist/scrollIndicator/index.mjs.map +1 -1
- package/dist/select/index.js +20 -29
- package/dist/select/index.js.map +1 -1
- package/dist/select/index.mjs +20 -29
- package/dist/select/index.mjs.map +1 -1
- package/dist/separator/index.js.map +1 -1
- package/dist/separator/index.mjs.map +1 -1
- package/dist/sheet/index.js +42 -53
- package/dist/sheet/index.js.map +1 -1
- package/dist/sheet/index.mjs +42 -53
- package/dist/sheet/index.mjs.map +1 -1
- package/dist/sidebar/index.js +66 -133
- package/dist/sidebar/index.js.map +1 -1
- package/dist/sidebar/index.mjs +66 -133
- package/dist/sidebar/index.mjs.map +1 -1
- package/dist/signature/index.js +19 -26
- package/dist/signature/index.js.map +1 -1
- package/dist/signature/index.mjs +19 -26
- package/dist/signature/index.mjs.map +1 -1
- package/dist/simpleTable/index.js +50 -81
- package/dist/simpleTable/index.js.map +1 -1
- package/dist/simpleTable/index.mjs +50 -81
- package/dist/simpleTable/index.mjs.map +1 -1
- package/dist/skeleton/index.js.map +1 -1
- package/dist/skeleton/index.mjs.map +1 -1
- package/dist/slider/index.js.map +1 -1
- package/dist/slider/index.mjs.map +1 -1
- package/dist/sonner/index.js.map +1 -1
- package/dist/sonner/index.mjs.map +1 -1
- package/dist/sortButton/index.js +50 -82
- package/dist/sortButton/index.js.map +1 -1
- package/dist/sortButton/index.mjs +50 -82
- package/dist/sortButton/index.mjs.map +1 -1
- package/dist/splitButton/index.js +214 -294
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +214 -294
- package/dist/splitButton/index.mjs.map +1 -1
- package/dist/stats/index.js +7 -35
- package/dist/stats/index.js.map +1 -1
- package/dist/stats/index.mjs +7 -35
- package/dist/stats/index.mjs.map +1 -1
- package/dist/switch/index.js +24 -34
- package/dist/switch/index.js.map +1 -1
- package/dist/switch/index.mjs +24 -34
- package/dist/switch/index.mjs.map +1 -1
- package/dist/table/index.js +27 -29
- package/dist/table/index.js.map +1 -1
- package/dist/table/index.mjs +27 -29
- package/dist/table/index.mjs.map +1 -1
- package/dist/tabs/index.js +54 -76
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +54 -76
- package/dist/tabs/index.mjs.map +1 -1
- package/dist/textarea/index.js +21 -38
- package/dist/textarea/index.js.map +1 -1
- package/dist/textarea/index.mjs +21 -38
- package/dist/textarea/index.mjs.map +1 -1
- package/dist/toast/index.js +2 -10
- package/dist/toast/index.js.map +1 -1
- package/dist/toast/index.mjs +2 -10
- package/dist/toast/index.mjs.map +1 -1
- package/dist/toaster/index.js +3 -16
- package/dist/toaster/index.js.map +1 -1
- package/dist/toaster/index.mjs +3 -16
- package/dist/toaster/index.mjs.map +1 -1
- package/dist/tooltip/index.js +19 -26
- package/dist/tooltip/index.js.map +1 -1
- package/dist/tooltip/index.mjs +19 -26
- package/dist/tooltip/index.mjs.map +1 -1
- package/package.json +12 -12
- package/dist/chunk-JP2N5WKD.mjs +0 -190
package/dist/blocks/index.mjs
CHANGED
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
TabsList,
|
|
18
18
|
TabsTrigger,
|
|
19
19
|
Textarea
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-ULRL4WI6.mjs";
|
|
21
21
|
import {
|
|
22
22
|
getHotkeyHandler
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-WQR4XZGL.mjs";
|
|
24
24
|
import {
|
|
25
25
|
BadEmoji,
|
|
26
26
|
Button,
|
|
@@ -44,8 +44,8 @@ import {
|
|
|
44
44
|
VeryBadEmoji,
|
|
45
45
|
VeryGoodEmoji,
|
|
46
46
|
cn
|
|
47
|
-
} from "../chunk-
|
|
48
|
-
import "../chunk-
|
|
47
|
+
} from "../chunk-KDGJZPWK.mjs";
|
|
48
|
+
import "../chunk-5SQBJRWE.mjs";
|
|
49
49
|
|
|
50
50
|
// blocks/auth/AuthButtons.tsx
|
|
51
51
|
import React from "react";
|
|
@@ -624,385 +624,398 @@ var RegisterForm = ({
|
|
|
624
624
|
headless: registerTypes ? registerTypes.length <= 1 : true,
|
|
625
625
|
noPadding: props.cardless
|
|
626
626
|
},
|
|
627
|
-
/* @__PURE__ */ React3.createElement(
|
|
628
|
-
|
|
627
|
+
/* @__PURE__ */ React3.createElement(
|
|
628
|
+
"div",
|
|
629
629
|
{
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
630
|
+
className: cn(registerTypes && registerTypes.length > 1 ? "hawa-mt-6 hawa-mb-0" : "")
|
|
631
|
+
},
|
|
632
|
+
props.showError && /* @__PURE__ */ React3.createElement(
|
|
633
|
+
Alert,
|
|
634
|
+
{
|
|
635
|
+
direction: props.direction,
|
|
636
|
+
title: props.errorTitle,
|
|
637
|
+
text: props.errorText,
|
|
638
|
+
severity: "error",
|
|
639
|
+
onAlertClosed: () => {
|
|
640
|
+
if (props.onErrorDismissed) {
|
|
641
|
+
props.onErrorDismissed();
|
|
642
|
+
}
|
|
637
643
|
}
|
|
638
644
|
}
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
{
|
|
643
|
-
noValidate: true,
|
|
644
|
-
onSubmit: handleSubmit((e) => {
|
|
645
|
-
if (props.onRegister) {
|
|
646
|
-
return props.onRegister(e);
|
|
647
|
-
} else {
|
|
648
|
-
console.log("Form is submitted but onRegister prop is missing");
|
|
649
|
-
}
|
|
650
|
-
}),
|
|
651
|
-
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
652
|
-
},
|
|
653
|
-
/* @__PURE__ */ React3.createElement(
|
|
654
|
-
Tabs,
|
|
645
|
+
),
|
|
646
|
+
/* @__PURE__ */ React3.createElement(FormProvider, { ...methods }, /* @__PURE__ */ React3.createElement(
|
|
647
|
+
"form",
|
|
655
648
|
{
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
649
|
+
noValidate: true,
|
|
650
|
+
onSubmit: handleSubmit((e) => {
|
|
651
|
+
if (props.onRegister) {
|
|
652
|
+
return props.onRegister(e);
|
|
653
|
+
} else {
|
|
654
|
+
console.log("Form is submitted but onRegister prop is missing");
|
|
662
655
|
}
|
|
663
|
-
)
|
|
656
|
+
}),
|
|
657
|
+
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
664
658
|
},
|
|
665
|
-
registerTypes && registerTypes.length > 1 && /* @__PURE__ */ React3.createElement(CardHeader, { className: "hawa-w-full hawa-px-0 hawa-py-0 hawa-my-4 hawa-mt-6" }, /* @__PURE__ */ React3.createElement(TabsList, { className: "hawa-w-full" }, registerTypes.map((registerType) => /* @__PURE__ */ React3.createElement(TabsTrigger, { value: registerType.value }, registerType.label)))),
|
|
666
659
|
/* @__PURE__ */ React3.createElement(
|
|
667
|
-
|
|
660
|
+
Tabs,
|
|
668
661
|
{
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
Controller2,
|
|
680
|
-
{
|
|
681
|
-
key: i,
|
|
682
|
-
control,
|
|
683
|
-
name: "fullName",
|
|
684
|
-
render: ({ field }) => {
|
|
685
|
-
var _a2, _b2, _c2;
|
|
686
|
-
return /* @__PURE__ */ React3.createElement(
|
|
687
|
-
Input,
|
|
688
|
-
{
|
|
689
|
-
width: "full",
|
|
690
|
-
label: ((_a2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _a2.label) || "Full Name",
|
|
691
|
-
placeholder: (_b2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _b2.placeholder,
|
|
692
|
-
helperText: (_c2 = formState.errors.fullName) == null ? void 0 : _c2.message,
|
|
693
|
-
...field
|
|
694
|
-
}
|
|
695
|
-
);
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
);
|
|
699
|
-
}
|
|
700
|
-
if (fld === "email") {
|
|
701
|
-
return /* @__PURE__ */ React3.createElement(
|
|
702
|
-
Controller2,
|
|
703
|
-
{
|
|
704
|
-
key: i,
|
|
705
|
-
control,
|
|
706
|
-
name: "email",
|
|
707
|
-
render: ({ field }) => {
|
|
708
|
-
var _a2, _b2, _c2;
|
|
709
|
-
return /* @__PURE__ */ React3.createElement(
|
|
710
|
-
Input,
|
|
711
|
-
{
|
|
712
|
-
dir: "ltr",
|
|
713
|
-
inputProps: {
|
|
714
|
-
className: props.direction === "rtl" ? "hawa-text-right" : "hawa-text-left"
|
|
715
|
-
},
|
|
716
|
-
width: "full",
|
|
717
|
-
autoComplete: "email",
|
|
718
|
-
label: ((_a2 = texts == null ? void 0 : texts.email) == null ? void 0 : _a2.label) || "Email",
|
|
719
|
-
helperText: (_b2 = formState.errors.email) == null ? void 0 : _b2.message,
|
|
720
|
-
placeholder: ((_c2 = texts == null ? void 0 : texts.email) == null ? void 0 : _c2.placeholder) || "Enter your email",
|
|
721
|
-
...field,
|
|
722
|
-
onChange: (e) => {
|
|
723
|
-
field.onChange(e.target.value.toLowerCase().trim());
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
);
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
);
|
|
730
|
-
}
|
|
731
|
-
if (fld === "username") {
|
|
732
|
-
return /* @__PURE__ */ React3.createElement(
|
|
733
|
-
Controller2,
|
|
734
|
-
{
|
|
735
|
-
key: i,
|
|
736
|
-
control,
|
|
737
|
-
name: "username",
|
|
738
|
-
render: ({ field }) => {
|
|
739
|
-
var _a2, _b2, _c2, _d2;
|
|
740
|
-
return /* @__PURE__ */ React3.createElement(
|
|
741
|
-
Input,
|
|
742
|
-
{
|
|
743
|
-
width: "full",
|
|
744
|
-
autoComplete: "username",
|
|
745
|
-
label: ((_a2 = texts == null ? void 0 : texts.username) == null ? void 0 : _a2.label) || "Username",
|
|
746
|
-
labelProps: {
|
|
747
|
-
...(_b2 = props.usernameOptions) == null ? void 0 : _b2.label
|
|
748
|
-
},
|
|
749
|
-
helperText: (_c2 = formState.errors.username) == null ? void 0 : _c2.message,
|
|
750
|
-
placeholder: (_d2 = texts == null ? void 0 : texts.username) == null ? void 0 : _d2.placeholder,
|
|
751
|
-
...field
|
|
752
|
-
}
|
|
753
|
-
);
|
|
754
|
-
}
|
|
662
|
+
dir: props.direction,
|
|
663
|
+
value: selectedRegisterType.value,
|
|
664
|
+
onValueChange: (e) => {
|
|
665
|
+
if (props.onRegisterTypeChange) {
|
|
666
|
+
props.onRegisterTypeChange(e);
|
|
667
|
+
}
|
|
668
|
+
setSelectedRegisterType(
|
|
669
|
+
(registerTypes == null ? void 0 : registerTypes.find((r) => r.value === e)) || registerTypes && registerTypes[0] || {
|
|
670
|
+
label: "Password",
|
|
671
|
+
value: "password"
|
|
755
672
|
}
|
|
756
673
|
);
|
|
757
674
|
}
|
|
758
|
-
}
|
|
675
|
+
},
|
|
676
|
+
registerTypes && registerTypes.length > 1 && /* @__PURE__ */ React3.createElement(CardHeader, { className: "hawa-w-full hawa-px-0 hawa-py-0 hawa-mb-4" }, /* @__PURE__ */ React3.createElement(TabsList, { className: "hawa-w-full" }, registerTypes.map((registerType, k) => /* @__PURE__ */ React3.createElement(TabsTrigger, { key: k, value: registerType.value }, registerType.label)))),
|
|
759
677
|
/* @__PURE__ */ React3.createElement(
|
|
760
|
-
|
|
678
|
+
TabsContent,
|
|
761
679
|
{
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
680
|
+
value: "password",
|
|
681
|
+
className: cn(
|
|
682
|
+
"hawa-flex hawa-flex-col hawa-gap-4",
|
|
683
|
+
selectedRegisterType.value === "password" ? "hawa-block" : "hawa-hidden"
|
|
684
|
+
),
|
|
685
|
+
dir: props.direction
|
|
686
|
+
},
|
|
687
|
+
/* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, registerFields.map((fld, i) => {
|
|
688
|
+
if (fld === "fullname") {
|
|
766
689
|
return /* @__PURE__ */ React3.createElement(
|
|
767
|
-
|
|
690
|
+
Controller2,
|
|
768
691
|
{
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
692
|
+
key: i,
|
|
693
|
+
control,
|
|
694
|
+
name: "fullName",
|
|
695
|
+
render: ({ field }) => {
|
|
696
|
+
var _a2, _b2, _c2;
|
|
697
|
+
return /* @__PURE__ */ React3.createElement(
|
|
698
|
+
Input,
|
|
699
|
+
{
|
|
700
|
+
width: "full",
|
|
701
|
+
label: ((_a2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _a2.label) || "Full Name",
|
|
702
|
+
placeholder: (_b2 = texts == null ? void 0 : texts.fullName) == null ? void 0 : _b2.placeholder,
|
|
703
|
+
helperText: (_c2 = formState.errors.fullName) == null ? void 0 : _c2.message,
|
|
704
|
+
...field
|
|
705
|
+
}
|
|
706
|
+
);
|
|
707
|
+
}
|
|
785
708
|
}
|
|
786
709
|
);
|
|
787
710
|
}
|
|
788
|
-
|
|
789
|
-
),
|
|
790
|
-
/* @__PURE__ */ React3.createElement(
|
|
791
|
-
Controller2,
|
|
792
|
-
{
|
|
793
|
-
control,
|
|
794
|
-
name: "confirm_password",
|
|
795
|
-
render: ({ field }) => {
|
|
796
|
-
var _a2, _b2, _c2;
|
|
711
|
+
if (fld === "email") {
|
|
797
712
|
return /* @__PURE__ */ React3.createElement(
|
|
798
|
-
|
|
713
|
+
Controller2,
|
|
799
714
|
{
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
715
|
+
key: i,
|
|
716
|
+
control,
|
|
717
|
+
name: "email",
|
|
718
|
+
render: ({ field }) => {
|
|
719
|
+
var _a2, _b2, _c2;
|
|
720
|
+
return /* @__PURE__ */ React3.createElement(
|
|
721
|
+
Input,
|
|
722
|
+
{
|
|
723
|
+
dir: "ltr",
|
|
724
|
+
inputProps: {
|
|
725
|
+
className: props.direction === "rtl" ? "hawa-text-right" : "hawa-text-left"
|
|
726
|
+
},
|
|
727
|
+
width: "full",
|
|
728
|
+
autoComplete: "email",
|
|
729
|
+
label: ((_a2 = texts == null ? void 0 : texts.email) == null ? void 0 : _a2.label) || "Email",
|
|
730
|
+
helperText: (_b2 = formState.errors.email) == null ? void 0 : _b2.message,
|
|
731
|
+
placeholder: ((_c2 = texts == null ? void 0 : texts.email) == null ? void 0 : _c2.placeholder) || "Enter your email",
|
|
732
|
+
...field,
|
|
733
|
+
onChange: (e) => {
|
|
734
|
+
field.onChange(e.target.value.toLowerCase().trim());
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
);
|
|
738
|
+
}
|
|
816
739
|
}
|
|
817
740
|
);
|
|
818
741
|
}
|
|
819
|
-
|
|
820
|
-
),
|
|
821
|
-
props.additionalInputs,
|
|
822
|
-
props.showRefCode && /* @__PURE__ */ React3.createElement(
|
|
823
|
-
Controller2,
|
|
824
|
-
{
|
|
825
|
-
control,
|
|
826
|
-
name: "refCode",
|
|
827
|
-
render: ({ field }) => {
|
|
828
|
-
var _a2;
|
|
742
|
+
if (fld === "username") {
|
|
829
743
|
return /* @__PURE__ */ React3.createElement(
|
|
830
|
-
|
|
744
|
+
Controller2,
|
|
831
745
|
{
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
746
|
+
key: i,
|
|
747
|
+
control,
|
|
748
|
+
name: "username",
|
|
749
|
+
render: ({ field }) => {
|
|
750
|
+
var _a2, _b2, _c2, _d2;
|
|
751
|
+
return /* @__PURE__ */ React3.createElement(
|
|
752
|
+
Input,
|
|
753
|
+
{
|
|
754
|
+
width: "full",
|
|
755
|
+
autoComplete: "username",
|
|
756
|
+
label: ((_a2 = texts == null ? void 0 : texts.username) == null ? void 0 : _a2.label) || "Username",
|
|
757
|
+
labelProps: {
|
|
758
|
+
...(_b2 = props.usernameOptions) == null ? void 0 : _b2.label
|
|
759
|
+
},
|
|
760
|
+
helperText: (_c2 = formState.errors.username) == null ? void 0 : _c2.message,
|
|
761
|
+
placeholder: (_d2 = texts == null ? void 0 : texts.username) == null ? void 0 : _d2.placeholder,
|
|
762
|
+
...field
|
|
763
|
+
}
|
|
764
|
+
);
|
|
765
|
+
}
|
|
837
766
|
}
|
|
838
767
|
);
|
|
839
768
|
}
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
769
|
+
})),
|
|
770
|
+
/* @__PURE__ */ React3.createElement(
|
|
771
|
+
Controller2,
|
|
772
|
+
{
|
|
773
|
+
control,
|
|
774
|
+
name: "password",
|
|
775
|
+
render: ({ field }) => {
|
|
776
|
+
var _a2, _b2, _c2;
|
|
777
|
+
return /* @__PURE__ */ React3.createElement(
|
|
778
|
+
Input,
|
|
779
|
+
{
|
|
780
|
+
width: "full",
|
|
781
|
+
type: passwordVisible ? "text" : "password",
|
|
782
|
+
autoComplete: "new-password",
|
|
783
|
+
label: ((_a2 = texts == null ? void 0 : texts.password) == null ? void 0 : _a2.label) || "Password",
|
|
784
|
+
placeholder: (_b2 = texts == null ? void 0 : texts.password) == null ? void 0 : _b2.placeholder,
|
|
785
|
+
helperText: (_c2 = formState.errors.password) == null ? void 0 : _c2.message,
|
|
786
|
+
endIcon: /* @__PURE__ */ React3.createElement(
|
|
787
|
+
"div",
|
|
788
|
+
{
|
|
789
|
+
className: "hawa-cursor-pointer",
|
|
790
|
+
onClick: () => setPasswordVisible(!passwordVisible)
|
|
791
|
+
},
|
|
792
|
+
passwordVisible ? /* @__PURE__ */ React3.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React3.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
|
793
|
+
" "
|
|
794
|
+
),
|
|
795
|
+
...field
|
|
796
|
+
}
|
|
797
|
+
);
|
|
798
|
+
}
|
|
862
799
|
}
|
|
863
|
-
}
|
|
864
|
-
)
|
|
865
|
-
),
|
|
866
|
-
/* @__PURE__ */ React3.createElement(
|
|
867
|
-
TabsContent,
|
|
868
|
-
{
|
|
869
|
-
value: "phone",
|
|
870
|
-
className: cn(
|
|
871
|
-
"hawa-flex hawa-flex-col hawa-gap-4",
|
|
872
|
-
selectedRegisterType.value === "phone" ? "hawa-block" : "hawa-hidden"
|
|
873
800
|
),
|
|
874
|
-
|
|
875
|
-
|
|
801
|
+
/* @__PURE__ */ React3.createElement(
|
|
802
|
+
Controller2,
|
|
803
|
+
{
|
|
804
|
+
control,
|
|
805
|
+
name: "confirm_password",
|
|
806
|
+
render: ({ field }) => {
|
|
807
|
+
var _a2, _b2, _c2;
|
|
808
|
+
return /* @__PURE__ */ React3.createElement(
|
|
809
|
+
Input,
|
|
810
|
+
{
|
|
811
|
+
width: "full",
|
|
812
|
+
type: passwordVisible ? "text" : "password",
|
|
813
|
+
autoComplete: "new-password",
|
|
814
|
+
label: ((_a2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _a2.label) || "Confirm Password",
|
|
815
|
+
placeholder: ((_b2 = texts == null ? void 0 : texts.confirm) == null ? void 0 : _b2.placeholder) || "Confirm your Password",
|
|
816
|
+
helperText: (_c2 = formState.errors.confirm_password) == null ? void 0 : _c2.message,
|
|
817
|
+
endIcon: /* @__PURE__ */ React3.createElement(
|
|
818
|
+
"div",
|
|
819
|
+
{
|
|
820
|
+
className: "hawa-cursor-pointer",
|
|
821
|
+
onClick: () => setPasswordVisible(!passwordVisible)
|
|
822
|
+
},
|
|
823
|
+
passwordVisible ? /* @__PURE__ */ React3.createElement(EyeIcon, { className: "hawa-text-gray-500" }) : /* @__PURE__ */ React3.createElement(HiddenEyeIcon, { className: "hawa-text-gray-500" }),
|
|
824
|
+
" "
|
|
825
|
+
),
|
|
826
|
+
...field
|
|
827
|
+
}
|
|
828
|
+
);
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
),
|
|
832
|
+
props.additionalInputs,
|
|
833
|
+
props.showRefCode && /* @__PURE__ */ React3.createElement(
|
|
834
|
+
Controller2,
|
|
835
|
+
{
|
|
836
|
+
control,
|
|
837
|
+
name: "refCode",
|
|
838
|
+
render: ({ field }) => {
|
|
839
|
+
var _a2;
|
|
840
|
+
return /* @__PURE__ */ React3.createElement(
|
|
841
|
+
Input,
|
|
842
|
+
{
|
|
843
|
+
width: "full",
|
|
844
|
+
label: texts == null ? void 0 : texts.refCode,
|
|
845
|
+
placeholder: (texts == null ? void 0 : texts.refCodePlaceholder) || "Enter the referral code",
|
|
846
|
+
helperText: (_a2 = formState.errors.refCode) == null ? void 0 : _a2.message,
|
|
847
|
+
...field
|
|
848
|
+
}
|
|
849
|
+
);
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
),
|
|
853
|
+
props.showUserSource && /* @__PURE__ */ React3.createElement(
|
|
854
|
+
Controller2,
|
|
855
|
+
{
|
|
856
|
+
control,
|
|
857
|
+
name: "reference",
|
|
858
|
+
render: ({ field }) => {
|
|
859
|
+
var _a2, _b2;
|
|
860
|
+
return /* @__PURE__ */ React3.createElement(
|
|
861
|
+
Select,
|
|
862
|
+
{
|
|
863
|
+
label: ((_a2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _a2.label) || "How did you learn about us?",
|
|
864
|
+
placeholder: (_b2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _b2.placeholder,
|
|
865
|
+
isCreatable: false,
|
|
866
|
+
isMulti: false,
|
|
867
|
+
isSearchable: false,
|
|
868
|
+
isClearable: false,
|
|
869
|
+
options: props.userReferenceOptions || [],
|
|
870
|
+
onChange: (e) => field.onChange(e)
|
|
871
|
+
}
|
|
872
|
+
);
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
)
|
|
876
|
+
),
|
|
876
877
|
/* @__PURE__ */ React3.createElement(
|
|
877
|
-
|
|
878
|
+
TabsContent,
|
|
878
879
|
{
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
880
|
+
value: "phone",
|
|
881
|
+
className: cn(
|
|
882
|
+
"hawa-flex hawa-flex-col hawa-gap-4",
|
|
883
|
+
selectedRegisterType.value === "phone" ? "hawa-block" : "hawa-hidden"
|
|
884
|
+
),
|
|
885
|
+
dir: props.direction
|
|
886
|
+
},
|
|
887
|
+
/* @__PURE__ */ React3.createElement(
|
|
888
|
+
Controller2,
|
|
889
|
+
{
|
|
890
|
+
control,
|
|
891
|
+
name: "phone",
|
|
892
|
+
render: ({ field }) => {
|
|
893
|
+
var _a2, _b2;
|
|
894
|
+
return /* @__PURE__ */ React3.createElement(
|
|
895
|
+
PhoneInput,
|
|
896
|
+
{
|
|
897
|
+
label: ((_a2 = texts == null ? void 0 : texts.phone) == null ? void 0 : _a2.label) || "Phone Number",
|
|
898
|
+
helperText: (_b2 = formState.errors.phone) == null ? void 0 : _b2.message,
|
|
899
|
+
preferredCountry: { label: "+966" },
|
|
900
|
+
...props.phoneInputProps,
|
|
901
|
+
handleChange: (e) => {
|
|
902
|
+
if (isValidPhoneNumber2(e) && isPossiblePhoneNumber2(e) && validatePhoneNumberLength2(e) === void 0) {
|
|
903
|
+
let parsed = parsePhoneNumber2(e);
|
|
904
|
+
field.onChange(parsed.number);
|
|
905
|
+
} else {
|
|
906
|
+
field.onChange(e);
|
|
907
|
+
}
|
|
896
908
|
}
|
|
897
909
|
}
|
|
898
|
-
|
|
899
|
-
|
|
910
|
+
);
|
|
911
|
+
}
|
|
900
912
|
}
|
|
901
|
-
|
|
913
|
+
),
|
|
914
|
+
props.additionalInputs,
|
|
915
|
+
props.showRefCode && /* @__PURE__ */ React3.createElement(
|
|
916
|
+
Controller2,
|
|
917
|
+
{
|
|
918
|
+
control,
|
|
919
|
+
name: "refCode",
|
|
920
|
+
render: ({ field }) => {
|
|
921
|
+
var _a2;
|
|
922
|
+
return /* @__PURE__ */ React3.createElement(
|
|
923
|
+
Input,
|
|
924
|
+
{
|
|
925
|
+
width: "full",
|
|
926
|
+
label: texts == null ? void 0 : texts.refCode,
|
|
927
|
+
placeholder: (texts == null ? void 0 : texts.refCodePlaceholder) || "Enter the referral code",
|
|
928
|
+
helperText: (_a2 = formState.errors.refCode) == null ? void 0 : _a2.message,
|
|
929
|
+
...field
|
|
930
|
+
}
|
|
931
|
+
);
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
),
|
|
935
|
+
props.showUserSource && /* @__PURE__ */ React3.createElement(
|
|
936
|
+
Controller2,
|
|
937
|
+
{
|
|
938
|
+
control,
|
|
939
|
+
name: "reference",
|
|
940
|
+
render: ({ field }) => {
|
|
941
|
+
var _a2, _b2;
|
|
942
|
+
return /* @__PURE__ */ React3.createElement(
|
|
943
|
+
Select,
|
|
944
|
+
{
|
|
945
|
+
label: ((_a2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _a2.label) || "How did you learn about us?",
|
|
946
|
+
placeholder: (_b2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _b2.placeholder,
|
|
947
|
+
isCreatable: false,
|
|
948
|
+
isMulti: false,
|
|
949
|
+
isSearchable: false,
|
|
950
|
+
isClearable: false,
|
|
951
|
+
options: props.userReferenceOptions || [],
|
|
952
|
+
onChange: (e) => field.onChange(e)
|
|
953
|
+
}
|
|
954
|
+
);
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
)
|
|
902
958
|
),
|
|
903
|
-
|
|
904
|
-
props.showRefCode && /* @__PURE__ */ React3.createElement(
|
|
959
|
+
showTermsOption || showNewsletterOption ? /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-3 hawa-mb-2" }, showTermsOption && /* @__PURE__ */ React3.createElement(
|
|
905
960
|
Controller2,
|
|
906
961
|
{
|
|
907
962
|
control,
|
|
908
|
-
name: "
|
|
963
|
+
name: "terms_accepted",
|
|
909
964
|
render: ({ field }) => {
|
|
910
|
-
var _a2;
|
|
965
|
+
var _a2, _b2;
|
|
911
966
|
return /* @__PURE__ */ React3.createElement(
|
|
912
|
-
|
|
967
|
+
Checkbox,
|
|
913
968
|
{
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
969
|
+
id: "terms_accepted",
|
|
970
|
+
helperText: (_b2 = (_a2 = formState.errors.terms_accepted) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString(),
|
|
971
|
+
onCheckedChange: (e) => field.onChange(e),
|
|
972
|
+
label: /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5 hawa-whitespace-nowrap hawa-flex-wrap" }, (texts == null ? void 0 : texts.iAcceptText) || "I accept the", " ", /* @__PURE__ */ React3.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React3.createElement(
|
|
973
|
+
"span",
|
|
974
|
+
{
|
|
975
|
+
onClick: (e) => {
|
|
976
|
+
e.preventDefault();
|
|
977
|
+
if (props.onRouteToTOS) {
|
|
978
|
+
props.onRouteToTOS();
|
|
979
|
+
}
|
|
980
|
+
},
|
|
981
|
+
className: "clickable-link"
|
|
982
|
+
},
|
|
983
|
+
(texts == null ? void 0 : texts.termsText) || "Terms of Service"
|
|
984
|
+
)))
|
|
919
985
|
}
|
|
920
986
|
);
|
|
921
987
|
}
|
|
922
988
|
}
|
|
923
|
-
),
|
|
924
|
-
props.showUserSource && /* @__PURE__ */ React3.createElement(
|
|
989
|
+
), showNewsletterOption && /* @__PURE__ */ React3.createElement(
|
|
925
990
|
Controller2,
|
|
926
991
|
{
|
|
927
992
|
control,
|
|
928
|
-
name: "
|
|
929
|
-
render: ({ field }) =>
|
|
930
|
-
var _a2, _b2;
|
|
931
|
-
return /* @__PURE__ */ React3.createElement(
|
|
932
|
-
Select,
|
|
933
|
-
{
|
|
934
|
-
label: ((_a2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _a2.label) || "How did you learn about us?",
|
|
935
|
-
placeholder: (_b2 = texts == null ? void 0 : texts.userReference) == null ? void 0 : _b2.placeholder,
|
|
936
|
-
isCreatable: false,
|
|
937
|
-
isMulti: false,
|
|
938
|
-
isSearchable: false,
|
|
939
|
-
isClearable: false,
|
|
940
|
-
options: props.userReferenceOptions || [],
|
|
941
|
-
onChange: (e) => field.onChange(e)
|
|
942
|
-
}
|
|
943
|
-
);
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
)
|
|
947
|
-
),
|
|
948
|
-
showTermsOption || showNewsletterOption ? /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-3 hawa-mb-2" }, showTermsOption && /* @__PURE__ */ React3.createElement(
|
|
949
|
-
Controller2,
|
|
950
|
-
{
|
|
951
|
-
control,
|
|
952
|
-
name: "terms_accepted",
|
|
953
|
-
render: ({ field }) => {
|
|
954
|
-
var _a2, _b2;
|
|
955
|
-
return /* @__PURE__ */ React3.createElement(
|
|
993
|
+
name: "newsletter_accepted",
|
|
994
|
+
render: ({ field }) => /* @__PURE__ */ React3.createElement(
|
|
956
995
|
Checkbox,
|
|
957
996
|
{
|
|
958
|
-
id: "
|
|
959
|
-
|
|
960
|
-
onCheckedChange:
|
|
961
|
-
label: /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-0.5 hawa-whitespace-nowrap hawa-flex-wrap" }, (texts == null ? void 0 : texts.iAcceptText) || "I accept the", " ", /* @__PURE__ */ React3.createElement(StopPropagationWrapper, null, /* @__PURE__ */ React3.createElement(
|
|
962
|
-
"span",
|
|
963
|
-
{
|
|
964
|
-
onClick: (e) => {
|
|
965
|
-
e.preventDefault();
|
|
966
|
-
if (props.onRouteToTOS) {
|
|
967
|
-
props.onRouteToTOS();
|
|
968
|
-
}
|
|
969
|
-
},
|
|
970
|
-
className: "clickable-link"
|
|
971
|
-
},
|
|
972
|
-
(texts == null ? void 0 : texts.termsText) || "Terms of Service"
|
|
973
|
-
)))
|
|
997
|
+
id: "newsletter_accepted",
|
|
998
|
+
label: (texts == null ? void 0 : texts.subscribeToNewsletter) || "Subscribe to our newsletter",
|
|
999
|
+
onCheckedChange: field.onChange
|
|
974
1000
|
}
|
|
975
|
-
)
|
|
1001
|
+
)
|
|
976
1002
|
}
|
|
977
|
-
|
|
978
|
-
),
|
|
979
|
-
|
|
1003
|
+
)) : null
|
|
1004
|
+
),
|
|
1005
|
+
/* @__PURE__ */ React3.createElement(
|
|
1006
|
+
Button,
|
|
980
1007
|
{
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
)) : null
|
|
993
|
-
),
|
|
994
|
-
/* @__PURE__ */ React3.createElement(
|
|
995
|
-
Button,
|
|
996
|
-
{
|
|
997
|
-
className: "hawa-w-full",
|
|
998
|
-
type: "submit",
|
|
999
|
-
isLoading: props.isLoading,
|
|
1000
|
-
disabled: props.isLoading
|
|
1001
|
-
},
|
|
1002
|
-
(texts == null ? void 0 : texts.registerText) || "Register"
|
|
1003
|
-
),
|
|
1004
|
-
props.additionalButtons
|
|
1005
|
-
)), props.onRouteToLogin && /* @__PURE__ */ React3.createElement("div", { 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" }, /* @__PURE__ */ React3.createElement("span", null, (texts == null ? void 0 : texts.existingUserText) || "Already have an account?"), /* @__PURE__ */ React3.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login")))
|
|
1008
|
+
className: "hawa-w-full",
|
|
1009
|
+
type: "submit",
|
|
1010
|
+
isLoading: props.isLoading,
|
|
1011
|
+
disabled: props.isLoading
|
|
1012
|
+
},
|
|
1013
|
+
(texts == null ? void 0 : texts.registerText) || "Register"
|
|
1014
|
+
),
|
|
1015
|
+
props.additionalButtons
|
|
1016
|
+
)),
|
|
1017
|
+
props.onRouteToLogin && /* @__PURE__ */ React3.createElement("div", { 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" }, /* @__PURE__ */ React3.createElement("span", null, (texts == null ? void 0 : texts.existingUserText) || "Already have an account?"), /* @__PURE__ */ React3.createElement("span", { onClick: props.onRouteToLogin, className: "clickable-link" }, (texts == null ? void 0 : texts.loginText) || "Login"))
|
|
1018
|
+
)
|
|
1006
1019
|
),
|
|
1007
1020
|
props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ React3.createElement(
|
|
1008
1021
|
CardFooter,
|
|
@@ -1062,14 +1075,7 @@ var AppLanding = ({ texts, ...props }) => {
|
|
|
1062
1075
|
handleEmail: props.handleEmail,
|
|
1063
1076
|
handlePhone: props.handlePhone
|
|
1064
1077
|
}
|
|
1065
|
-
), props.allowRegister && /* @__PURE__ */ React4.createElement("div", { className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-gray-300" }, texts == null ? void 0 : texts.newUserText, " ", /* @__PURE__ */ React4.createElement(
|
|
1066
|
-
"span",
|
|
1067
|
-
{
|
|
1068
|
-
onClick: props.handleRouteToRegister,
|
|
1069
|
-
className: "clickable-link"
|
|
1070
|
-
},
|
|
1071
|
-
texts == null ? void 0 : texts.createAccount
|
|
1072
|
-
)))));
|
|
1078
|
+
), props.allowRegister && /* @__PURE__ */ React4.createElement("div", { className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-gray-300" }, texts == null ? void 0 : texts.newUserText, " ", /* @__PURE__ */ React4.createElement("span", { onClick: props.handleRouteToRegister, className: "clickable-link" }, texts == null ? void 0 : texts.createAccount)))));
|
|
1073
1079
|
};
|
|
1074
1080
|
|
|
1075
1081
|
// blocks/auth/CheckEmail.tsx
|
|
@@ -1098,11 +1104,7 @@ import React6 from "react";
|
|
|
1098
1104
|
import { Controller as Controller3, useForm as useForm3 } from "react-hook-form";
|
|
1099
1105
|
import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
|
|
1100
1106
|
import * as z3 from "zod";
|
|
1101
|
-
var NewPasswordForm = ({
|
|
1102
|
-
texts,
|
|
1103
|
-
isLoading,
|
|
1104
|
-
...props
|
|
1105
|
-
}) => {
|
|
1107
|
+
var NewPasswordForm = ({ texts, isLoading, ...props }) => {
|
|
1106
1108
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1107
1109
|
const formSchema = z3.object({
|
|
1108
1110
|
password: z3.string({ required_error: (_a = texts == null ? void 0 : texts.password) == null ? void 0 : _a.required }).min(1, { message: (_b = texts == null ? void 0 : texts.password) == null ? void 0 : _b.required }).min(8, { message: (_c = texts == null ? void 0 : texts.password) == null ? void 0 : _c.tooShort }),
|
|
@@ -1124,9 +1126,7 @@ var NewPasswordForm = ({
|
|
|
1124
1126
|
if (props.handleNewPassword) {
|
|
1125
1127
|
return props.handleNewPassword(e);
|
|
1126
1128
|
} else {
|
|
1127
|
-
console.log(
|
|
1128
|
-
"Form is submitted but handleSubmission prop is missing"
|
|
1129
|
-
);
|
|
1129
|
+
console.log("Form is submitted but handleSubmission prop is missing");
|
|
1130
1130
|
}
|
|
1131
1131
|
})
|
|
1132
1132
|
},
|
|
@@ -1180,14 +1180,7 @@ var NewPasswordForm = ({
|
|
|
1180
1180
|
);
|
|
1181
1181
|
}
|
|
1182
1182
|
}
|
|
1183
|
-
)), /* @__PURE__ */ React6.createElement(Button, { className: "hawa-w-full", type: "submit", isLoading }, texts == null ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ React6.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_g = texts == null ? void 0 : texts.dontHaveAccount) != null ? _g : "Don't have an account? ", /* @__PURE__ */ React6.createElement(
|
|
1184
|
-
"span",
|
|
1185
|
-
{
|
|
1186
|
-
className: "clickable-link",
|
|
1187
|
-
onClick: props.handleRouteToRegister
|
|
1188
|
-
},
|
|
1189
|
-
(_h = texts == null ? void 0 : texts.registerText) != null ? _h : "Register"
|
|
1190
|
-
)))
|
|
1183
|
+
)), /* @__PURE__ */ React6.createElement(Button, { className: "hawa-w-full", type: "submit", isLoading }, texts == null ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ React6.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_g = texts == null ? void 0 : texts.dontHaveAccount) != null ? _g : "Don't have an account? ", /* @__PURE__ */ React6.createElement("span", { className: "clickable-link", onClick: props.handleRouteToRegister }, (_h = texts == null ? void 0 : texts.registerText) != null ? _h : "Register")))
|
|
1191
1184
|
));
|
|
1192
1185
|
};
|
|
1193
1186
|
|
|
@@ -1253,22 +1246,7 @@ var ResetPasswordForm = ({
|
|
|
1253
1246
|
}
|
|
1254
1247
|
}
|
|
1255
1248
|
)),
|
|
1256
|
-
/* @__PURE__ */ React7.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React7.createElement(
|
|
1257
|
-
Button,
|
|
1258
|
-
{
|
|
1259
|
-
type: "submit",
|
|
1260
|
-
className: "hawa-w-full",
|
|
1261
|
-
isLoading
|
|
1262
|
-
},
|
|
1263
|
-
((_i = props.texts) == null ? void 0 : _i.resetPassword) || "Reset Password"
|
|
1264
|
-
), allowRegister && /* @__PURE__ */ React7.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_k = (_j = props.texts) == null ? void 0 : _j.dontHaveAccount) != null ? _k : "Don't have an account? ", /* @__PURE__ */ React7.createElement(
|
|
1265
|
-
"span",
|
|
1266
|
-
{
|
|
1267
|
-
className: "clickable-link",
|
|
1268
|
-
onClick: props.handleRouteToRegister
|
|
1269
|
-
},
|
|
1270
|
-
(_m = (_l = props.texts) == null ? void 0 : _l.registerText) != null ? _m : "Register"
|
|
1271
|
-
)))
|
|
1249
|
+
/* @__PURE__ */ React7.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ React7.createElement(Button, { type: "submit", className: "hawa-w-full", isLoading }, ((_i = props.texts) == null ? void 0 : _i.resetPassword) || "Reset Password"), allowRegister && /* @__PURE__ */ React7.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_k = (_j = props.texts) == null ? void 0 : _j.dontHaveAccount) != null ? _k : "Don't have an account? ", /* @__PURE__ */ React7.createElement("span", { className: "clickable-link", onClick: props.handleRouteToRegister }, (_m = (_l = props.texts) == null ? void 0 : _l.registerText) != null ? _m : "Register")))
|
|
1272
1250
|
)) : /* @__PURE__ */ React7.createElement(CardContent, { headless: true }, /* @__PURE__ */ React7.createElement("div", { className: "hawa-text-center" }, ((_n = props.texts) == null ? void 0 : _n.emailSentText) || "An email has been sent with a link to set a new password")));
|
|
1273
1251
|
};
|
|
1274
1252
|
|
|
@@ -1316,7 +1294,7 @@ var CodeConfirmation = ({ codeLength = 6, ...props }) => {
|
|
|
1316
1294
|
}
|
|
1317
1295
|
};
|
|
1318
1296
|
}, []);
|
|
1319
|
-
return /* @__PURE__ */ React8.createElement(Card, null, /* @__PURE__ */ React8.createElement(CardContent, { headless: true }, props.showError && /* @__PURE__ */ React8.createElement(Alert, { title: props.errorTitle, text: props.errorText, severity: "error" }), /* @__PURE__ */ React8.createElement("div", { className: "hawa-mb-4 dark:hawa-text-white" }, /* @__PURE__ */ React8.createElement("div", { className: "hawa-text-lg hawa-font-bold" }, ((_c = props.texts) == null ? void 0 : _c.checkYourIdentifier) || "Please check your phone"), /* @__PURE__ */ React8.createElement("div", { className: "hawa-text-muted-foreground" }, /* @__PURE__ */ React8.createElement("span", null, (
|
|
1297
|
+
return /* @__PURE__ */ React8.createElement(Card, null, /* @__PURE__ */ React8.createElement(CardContent, { headless: true }, props.showError && /* @__PURE__ */ React8.createElement(Alert, { title: props.errorTitle, text: props.errorText, severity: "error" }), /* @__PURE__ */ React8.createElement("div", { className: "hawa-mb-4 dark:hawa-text-white" }, /* @__PURE__ */ React8.createElement("div", { className: "hawa-text-lg hawa-font-bold" }, ((_c = props.texts) == null ? void 0 : _c.checkYourIdentifier) || "Please check your phone"), /* @__PURE__ */ React8.createElement("div", { className: "hawa-text-muted-foreground hawa-flex hawa-flex-row" }, /* @__PURE__ */ React8.createElement("span", null, `${(_d = props.texts) == null ? void 0 : _d.weSentCode} ` || `We've sent a code to `, /* @__PURE__ */ React8.createElement("span", { dir: "ltr" }, props.identifier)))), /* @__PURE__ */ React8.createElement(
|
|
1320
1298
|
"form",
|
|
1321
1299
|
{
|
|
1322
1300
|
noValidate: true,
|
|
@@ -1410,19 +1388,13 @@ var UserReferralSource = ({
|
|
|
1410
1388
|
return /* @__PURE__ */ React9.createElement(
|
|
1411
1389
|
"div",
|
|
1412
1390
|
{
|
|
1413
|
-
className: cn(
|
|
1414
|
-
"hawa-transition-all",
|
|
1415
|
-
closed ? "hawa-opacity-0" : "hawa-opacity-100"
|
|
1416
|
-
),
|
|
1391
|
+
className: cn("hawa-transition-all", closed ? "hawa-opacity-0" : "hawa-opacity-100"),
|
|
1417
1392
|
ref: popUpRef
|
|
1418
1393
|
},
|
|
1419
1394
|
/* @__PURE__ */ React9.createElement(
|
|
1420
1395
|
Card,
|
|
1421
1396
|
{
|
|
1422
|
-
className: cn(
|
|
1423
|
-
"hawa-fixed hawa-bottom-4 hawa-p-0 ",
|
|
1424
|
-
boxPosition[position]
|
|
1425
|
-
),
|
|
1397
|
+
className: cn("hawa-fixed hawa-bottom-4 hawa-p-0", boxPosition[position]),
|
|
1426
1398
|
dir: props.direction
|
|
1427
1399
|
},
|
|
1428
1400
|
/* @__PURE__ */ React9.createElement(
|
|
@@ -1431,7 +1403,7 @@ var UserReferralSource = ({
|
|
|
1431
1403
|
type: "button",
|
|
1432
1404
|
className: cn(
|
|
1433
1405
|
props.direction === "rtl" ? "hawa-left-2" : "hawa-right-2",
|
|
1434
|
-
"hawa-absolute
|
|
1406
|
+
"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"
|
|
1435
1407
|
),
|
|
1436
1408
|
"data-dismiss-target": "#toast-default",
|
|
1437
1409
|
"aria-label": "Close",
|
|
@@ -1483,7 +1455,7 @@ var UserReferralSource = ({
|
|
|
1483
1455
|
)
|
|
1484
1456
|
},
|
|
1485
1457
|
/* @__PURE__ */ React9.createElement("div", { className: "hawa-mt-4 hawa-font-bold" }, props.question),
|
|
1486
|
-
/* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded
|
|
1458
|
+
/* @__PURE__ */ React9.createElement("div", { className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded" }, /* @__PURE__ */ React9.createElement(
|
|
1487
1459
|
Controller6,
|
|
1488
1460
|
{
|
|
1489
1461
|
control,
|
|
@@ -1535,10 +1507,7 @@ var UserReferralSource = ({
|
|
|
1535
1507
|
|
|
1536
1508
|
// blocks/feedback/FeedbackRating.tsx
|
|
1537
1509
|
import React10, { useEffect as useEffect2, useRef as useRef2, useState as useState5 } from "react";
|
|
1538
|
-
var FeedbackRating = ({
|
|
1539
|
-
position = "bottom-right",
|
|
1540
|
-
...props
|
|
1541
|
-
}) => {
|
|
1510
|
+
var FeedbackRating = ({ position = "bottom-right", ...props }) => {
|
|
1542
1511
|
const [closed, setClosed] = useState5(false);
|
|
1543
1512
|
const [answered, setAnswered] = useState5(false);
|
|
1544
1513
|
const [clickedOption, setClickedOption] = useState5(null);
|
|
@@ -1628,9 +1597,7 @@ var FeedbackRating = ({
|
|
|
1628
1597
|
}, 4800);
|
|
1629
1598
|
setTimeout(() => {
|
|
1630
1599
|
var _a, _b;
|
|
1631
|
-
(_b = popUpRef.current) == null ? void 0 : _b.removeChild(
|
|
1632
|
-
(_a = popUpRef.current) == null ? void 0 : _a.children[0]
|
|
1633
|
-
);
|
|
1600
|
+
(_b = popUpRef.current) == null ? void 0 : _b.removeChild((_a = popUpRef.current) == null ? void 0 : _a.children[0]);
|
|
1634
1601
|
clearTimeout(timeoutDestroy);
|
|
1635
1602
|
}, 5300);
|
|
1636
1603
|
},
|
|
@@ -1780,9 +1747,7 @@ var FeedbackForm = (props) => {
|
|
|
1780
1747
|
return /* @__PURE__ */ React12.createElement(
|
|
1781
1748
|
Card,
|
|
1782
1749
|
{
|
|
1783
|
-
className: cn(
|
|
1784
|
-
props.cardless ? "hawa-border-none hawa-bg-transparent hawa-shadow-none" : ""
|
|
1785
|
-
),
|
|
1750
|
+
className: cn(props.cardless ? "hawa-border-none hawa-bg-transparent hawa-shadow-none" : ""),
|
|
1786
1751
|
style: props.cardless ? { boxShadow: "none" } : void 0
|
|
1787
1752
|
},
|
|
1788
1753
|
/* @__PURE__ */ React12.createElement(CardContent, { headless: true, className: props.cardless ? "!hawa-p-0" : "" }, props.sent ? /* @__PURE__ */ React12.createElement("div", { className: "hawa-text-center hawa-min-h-[200px] hawa-flex hawa-flex-col hawa-justify-center" }, /* @__PURE__ */ React12.createElement("div", { className: "hawa-font-bold hawa-text-lg" }, props.texts.sentTitle || "Form submitted"), /* @__PURE__ */ React12.createElement("div", { className: "hawa-text-md" }, props.texts.sentSubtitle || "Thank you for your submission")) : /* @__PURE__ */ React12.createElement(
|
|
@@ -1955,10 +1920,7 @@ var LeadGenerator = ({ texts, submitHandler }) => {
|
|
|
1955
1920
|
|
|
1956
1921
|
// blocks/misc/Announcement.tsx
|
|
1957
1922
|
import React17 from "react";
|
|
1958
|
-
var Announcement = ({
|
|
1959
|
-
onActionClick,
|
|
1960
|
-
...props
|
|
1961
|
-
}) => {
|
|
1923
|
+
var Announcement = ({ onActionClick, ...props }) => {
|
|
1962
1924
|
return /* @__PURE__ */ React17.createElement(Card, null, /* @__PURE__ */ React17.createElement(
|
|
1963
1925
|
CardContent,
|
|
1964
1926
|
{
|
|
@@ -1966,14 +1928,7 @@ var Announcement = ({
|
|
|
1966
1928
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
|
1967
1929
|
},
|
|
1968
1930
|
/* @__PURE__ */ React17.createElement("div", { className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center" }, /* @__PURE__ */ React17.createElement("span", { className: "hawa-text-lg hawa-font-bold" }, props.title), /* @__PURE__ */ React17.createElement("span", { className: "hawa-text-sm" }, props.subtitle)),
|
|
1969
|
-
/* @__PURE__ */ React17.createElement(
|
|
1970
|
-
Button,
|
|
1971
|
-
{
|
|
1972
|
-
onClick: () => onActionClick(),
|
|
1973
|
-
className: "hawa-whitespace-nowrap"
|
|
1974
|
-
},
|
|
1975
|
-
props.actionText
|
|
1976
|
-
)
|
|
1931
|
+
/* @__PURE__ */ React17.createElement(Button, { onClick: () => onActionClick(), className: "hawa-whitespace-nowrap" }, props.actionText)
|
|
1977
1932
|
));
|
|
1978
1933
|
};
|
|
1979
1934
|
|
|
@@ -2019,25 +1974,22 @@ var ContactForm = ({
|
|
|
2019
1974
|
}) => {
|
|
2020
1975
|
var _a, _b, _c, _d, _e;
|
|
2021
1976
|
const customFieldsSchema = z8.object({
|
|
2022
|
-
...customFields == null ? void 0 : customFields.reduce(
|
|
2023
|
-
(
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
},
|
|
2039
|
-
{}
|
|
2040
|
-
)
|
|
1977
|
+
...customFields == null ? void 0 : customFields.reduce((acc, curr) => {
|
|
1978
|
+
switch (curr.type) {
|
|
1979
|
+
case "text":
|
|
1980
|
+
acc[curr.name] = z8.string().optional().default("");
|
|
1981
|
+
break;
|
|
1982
|
+
case "number":
|
|
1983
|
+
acc[curr.name] = z8.string().optional().default("");
|
|
1984
|
+
break;
|
|
1985
|
+
case "select":
|
|
1986
|
+
acc[curr.name] = z8.string().optional().default("");
|
|
1987
|
+
break;
|
|
1988
|
+
default:
|
|
1989
|
+
break;
|
|
1990
|
+
}
|
|
1991
|
+
return acc;
|
|
1992
|
+
}, {})
|
|
2041
1993
|
});
|
|
2042
1994
|
const contactFormSchema = z8.object({
|
|
2043
1995
|
name: z8.string({ required_error: (texts == null ? void 0 : texts.name.required) || "Name is required" }).min(1, (texts == null ? void 0 : texts.name.required) || "Name is required").default(""),
|
|
@@ -2107,13 +2059,10 @@ var ContactForm = ({
|
|
|
2107
2059
|
/* @__PURE__ */ React20.createElement(
|
|
2108
2060
|
"div",
|
|
2109
2061
|
{
|
|
2110
|
-
className: cn(
|
|
2111
|
-
"hawa-flex
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
"hawa-flex-col": size === "sm"
|
|
2115
|
-
}
|
|
2116
|
-
)
|
|
2062
|
+
className: cn("hawa-flex hawa-items-start hawa-justify-start hawa-gap-2", {
|
|
2063
|
+
"hawa-flex-row": size === "default",
|
|
2064
|
+
"hawa-flex-col": size === "sm"
|
|
2065
|
+
})
|
|
2117
2066
|
},
|
|
2118
2067
|
/* @__PURE__ */ React20.createElement(
|
|
2119
2068
|
Controller9,
|
|
@@ -2211,9 +2160,7 @@ var ContactForm = ({
|
|
|
2211
2160
|
placeholder: texts == null ? void 0 : texts.message.placeholder,
|
|
2212
2161
|
className: "hawa-min-h-20",
|
|
2213
2162
|
...field,
|
|
2214
|
-
onKeyDown: getHotkeyHandler([
|
|
2215
|
-
["mod+enter", () => SubmitForm(getValues())]
|
|
2216
|
-
])
|
|
2163
|
+
onKeyDown: getHotkeyHandler([["mod+enter", () => SubmitForm(getValues())]])
|
|
2217
2164
|
},
|
|
2218
2165
|
classNames: { textarea: "hawa-min-h-40 hawa-h-full" },
|
|
2219
2166
|
helperText: (_a2 = errors.message) == null ? void 0 : _a2.message
|
|
@@ -2222,14 +2169,7 @@ var ContactForm = ({
|
|
|
2222
2169
|
}
|
|
2223
2170
|
}
|
|
2224
2171
|
),
|
|
2225
|
-
/* @__PURE__ */ React20.createElement(
|
|
2226
|
-
Button,
|
|
2227
|
-
{
|
|
2228
|
-
type: "submit",
|
|
2229
|
-
className: cn("hawa-w-full", classNames == null ? void 0 : classNames.submitButton)
|
|
2230
|
-
},
|
|
2231
|
-
(texts == null ? void 0 : texts.submit) || "Submit"
|
|
2232
|
-
)
|
|
2172
|
+
/* @__PURE__ */ React20.createElement(Button, { type: "submit", className: cn("hawa-w-full", classNames == null ? void 0 : classNames.submitButton) }, (texts == null ? void 0 : texts.submit) || "Submit")
|
|
2233
2173
|
))
|
|
2234
2174
|
);
|
|
2235
2175
|
};
|
|
@@ -2278,10 +2218,7 @@ var ActionCard = (props) => {
|
|
|
2278
2218
|
|
|
2279
2219
|
// blocks/cards/AdCard.tsx
|
|
2280
2220
|
import React22, { useState as useState8, useEffect as useEffect3, useRef as useRef3 } from "react";
|
|
2281
|
-
var AdCard = ({
|
|
2282
|
-
orientation = "vertical",
|
|
2283
|
-
...props
|
|
2284
|
-
}) => {
|
|
2221
|
+
var AdCard = ({ orientation = "vertical", ...props }) => {
|
|
2285
2222
|
const adRef = useRef3(null);
|
|
2286
2223
|
const [closed, setClosed] = useState8(false);
|
|
2287
2224
|
let duration = 0;
|
|
@@ -2310,43 +2247,34 @@ var AdCard = ({
|
|
|
2310
2247
|
horizontal: "hawa-w-auto hawa-h-full hawa-bg-blue-500 hawa-rounded-inner",
|
|
2311
2248
|
vertical: "hawa-bg-blue-500 hawa-rounded-inner hawa-w-auto "
|
|
2312
2249
|
};
|
|
2313
|
-
return /* @__PURE__ */ React22.createElement("div", { ref: adRef }, /* @__PURE__ */ React22.createElement(
|
|
2314
|
-
"
|
|
2250
|
+
return /* @__PURE__ */ React22.createElement("div", { ref: adRef }, /* @__PURE__ */ React22.createElement("div", { className: cn(cardStyles[orientation], props.className), onClick: props.handleClick }, /* @__PURE__ */ React22.createElement("div", { className: "hawa-flex hawa-aspect-square hawa-w-full hawa-max-w-fit hawa-items-start" }, /* @__PURE__ */ React22.createElement(
|
|
2251
|
+
"img",
|
|
2315
2252
|
{
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
}
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
{
|
|
2330
|
-
onClick: (e) => {
|
|
2331
|
-
e.stopPropagation();
|
|
2332
|
-
if (props.canHide) {
|
|
2333
|
-
setClosed(true);
|
|
2334
|
-
setTimeout(() => {
|
|
2335
|
-
if (adRef.current) {
|
|
2336
|
-
adRef.current.removeChild(adRef.current.children[0]);
|
|
2337
|
-
}
|
|
2338
|
-
}, 200);
|
|
2339
|
-
} else {
|
|
2340
|
-
if (props.handleCantHide) {
|
|
2341
|
-
props.handleCantHide();
|
|
2253
|
+
src: props.imageURL ? props.imageURL : "https://via.placeholder.com/50",
|
|
2254
|
+
className: imageStyles[orientation]
|
|
2255
|
+
}
|
|
2256
|
+
)), /* @__PURE__ */ React22.createElement("div", { className: "hawa-w-full hawa-text-xs" }, /* @__PURE__ */ React22.createElement("div", { className: "hawa-font-bold" }, props.title), /* @__PURE__ */ React22.createElement("div", { className: "hawa-text-[12px]" }, props.description)), props.canHide && /* @__PURE__ */ React22.createElement(
|
|
2257
|
+
"span",
|
|
2258
|
+
{
|
|
2259
|
+
onClick: (e) => {
|
|
2260
|
+
e.stopPropagation();
|
|
2261
|
+
if (props.canHide) {
|
|
2262
|
+
setClosed(true);
|
|
2263
|
+
setTimeout(() => {
|
|
2264
|
+
if (adRef.current) {
|
|
2265
|
+
adRef.current.removeChild(adRef.current.children[0]);
|
|
2342
2266
|
}
|
|
2267
|
+
}, 200);
|
|
2268
|
+
} else {
|
|
2269
|
+
if (props.handleCantHide) {
|
|
2270
|
+
props.handleCantHide();
|
|
2343
2271
|
}
|
|
2344
|
-
}
|
|
2345
|
-
className: "hawa-absolute hawa-right-0 hawa-top-0 hawa-h-fit hawa-cursor-pointer hawa-select-none hawa-rounded-bl-lg hawa-rounded-tr-lg hawa-bg-primary/50 hawa-px-2.5 hawa-py-0.5 hawa-text-[10px] hawa-font-semibold hawa-text-primary-foreground"
|
|
2272
|
+
}
|
|
2346
2273
|
},
|
|
2347
|
-
"
|
|
2348
|
-
|
|
2349
|
-
|
|
2274
|
+
className: "hawa-absolute hawa-right-0 hawa-top-0 hawa-h-fit hawa-cursor-pointer hawa-select-none hawa-rounded-bl-lg hawa-rounded-tr-lg hawa-bg-primary/50 hawa-px-2.5 hawa-py-0.5 hawa-text-[10px] hawa-font-semibold hawa-text-primary-foreground"
|
|
2275
|
+
},
|
|
2276
|
+
"Hide"
|
|
2277
|
+
)));
|
|
2350
2278
|
};
|
|
2351
2279
|
|
|
2352
2280
|
// blocks/cards/PricingCard.tsx
|
|
@@ -2365,13 +2293,7 @@ var PricingCard = ({
|
|
|
2365
2293
|
medium: "hawa-w-full hawa-rounded hawa-min-w-fit hawa-border dark:hawa-border-gray-700 hawa-bg-background",
|
|
2366
2294
|
large: "hawa-w-full hawa-max-w-lg hawa-rounded hawa-border dark:hawa-border-gray-700 hawa-bg-background"
|
|
2367
2295
|
};
|
|
2368
|
-
return /* @__PURE__ */ React23.createElement(React23.Fragment, null, props.isLoadingCard ? /* @__PURE__ */ React23.createElement(
|
|
2369
|
-
Skeleton,
|
|
2370
|
-
{
|
|
2371
|
-
className: cn(cardSizes[size], "hawa-h-[200px]"),
|
|
2372
|
-
fade: "bottom"
|
|
2373
|
-
}
|
|
2374
|
-
) : /* @__PURE__ */ React23.createElement(
|
|
2296
|
+
return /* @__PURE__ */ React23.createElement(React23.Fragment, null, props.isLoadingCard ? /* @__PURE__ */ React23.createElement(Skeleton, { className: cn(cardSizes[size], "hawa-h-[200px]"), fade: "bottom" }) : /* @__PURE__ */ React23.createElement(
|
|
2375
2297
|
Card,
|
|
2376
2298
|
{
|
|
2377
2299
|
dir: direction,
|
|
@@ -2426,48 +2348,26 @@ var PricingCard = ({
|
|
|
2426
2348
|
clipRule: "evenodd"
|
|
2427
2349
|
}
|
|
2428
2350
|
)
|
|
2429
|
-
) : /* @__PURE__ */ React23.createElement("div", { className: "hawa-m-2 hawa-mx-2.5 hawa-h-4 hawa-w-4 hawa-rounded-full hawa-bg-primary/10" }), /* @__PURE__ */ React23.createElement("span", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-whitespace-nowrap hawa-text-start hawa-font-normal hawa-leading-tight hawa-text-primary/70" }, feature.text, " ", feature.soon && feature.included && /* @__PURE__ */ React23.createElement(
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
label: ((_a2 = props.texts) == null ? void 0 : _a2.soon) || "",
|
|
2433
|
-
color: "oceanic",
|
|
2434
|
-
size: "small"
|
|
2435
|
-
}
|
|
2436
|
-
))),
|
|
2437
|
-
feature.hint && /* @__PURE__ */ React23.createElement(
|
|
2438
|
-
Tooltip,
|
|
2351
|
+
) : /* @__PURE__ */ React23.createElement("div", { className: "hawa-m-2 hawa-mx-2.5 hawa-h-4 hawa-w-4 hawa-rounded-full hawa-bg-primary/10" }), /* @__PURE__ */ React23.createElement("span", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-whitespace-nowrap hawa-text-start hawa-font-normal hawa-leading-tight hawa-text-primary/70" }, feature.text, " ", feature.soon && feature.included && /* @__PURE__ */ React23.createElement(Chip, { label: ((_a2 = props.texts) == null ? void 0 : _a2.soon) || "", color: "oceanic", size: "small" }))),
|
|
2352
|
+
feature.hint && /* @__PURE__ */ React23.createElement(Tooltip, { content: feature.hint, side: feature.hintSide }, /* @__PURE__ */ React23.createElement(
|
|
2353
|
+
"svg",
|
|
2439
2354
|
{
|
|
2440
|
-
|
|
2441
|
-
|
|
2355
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2356
|
+
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
|
2357
|
+
viewBox: "0 0 24 24",
|
|
2358
|
+
fill: "none",
|
|
2359
|
+
stroke: "currentColor",
|
|
2360
|
+
strokeWidth: "2",
|
|
2361
|
+
strokeLinecap: "round",
|
|
2362
|
+
strokeLinejoin: "round"
|
|
2442
2363
|
},
|
|
2443
|
-
/* @__PURE__ */ React23.createElement(
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
className: "hawa-h-[14px] hawa-w-[14px] hawa-cursor-help",
|
|
2448
|
-
viewBox: "0 0 24 24",
|
|
2449
|
-
fill: "none",
|
|
2450
|
-
stroke: "currentColor",
|
|
2451
|
-
strokeWidth: "2",
|
|
2452
|
-
strokeLinecap: "round",
|
|
2453
|
-
strokeLinejoin: "round"
|
|
2454
|
-
},
|
|
2455
|
-
/* @__PURE__ */ React23.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
|
2456
|
-
/* @__PURE__ */ React23.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
|
2457
|
-
/* @__PURE__ */ React23.createElement("path", { d: "M12 17h.01" })
|
|
2458
|
-
)
|
|
2459
|
-
)
|
|
2364
|
+
/* @__PURE__ */ React23.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
|
2365
|
+
/* @__PURE__ */ React23.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
|
2366
|
+
/* @__PURE__ */ React23.createElement("path", { d: "M12 17h.01" })
|
|
2367
|
+
))
|
|
2460
2368
|
);
|
|
2461
2369
|
})),
|
|
2462
|
-
/* @__PURE__ */ React23.createElement(
|
|
2463
|
-
Button,
|
|
2464
|
-
{
|
|
2465
|
-
onClick: props.onPlanClicked,
|
|
2466
|
-
disabled: currentPlan,
|
|
2467
|
-
className: "hawa-w-full"
|
|
2468
|
-
},
|
|
2469
|
-
(_i = props.texts) == null ? void 0 : _i.buttonText
|
|
2470
|
-
)
|
|
2370
|
+
/* @__PURE__ */ React23.createElement(Button, { onClick: props.onPlanClicked, disabled: currentPlan, className: "hawa-w-full" }, (_i = props.texts) == null ? void 0 : _i.buttonText)
|
|
2471
2371
|
))
|
|
2472
2372
|
));
|
|
2473
2373
|
};
|
|
@@ -2554,25 +2454,16 @@ var ItemCard = ({
|
|
|
2554
2454
|
DropdownMenu,
|
|
2555
2455
|
{
|
|
2556
2456
|
items: headerActions,
|
|
2557
|
-
trigger: /* @__PURE__ */ React24.createElement(
|
|
2558
|
-
|
|
2457
|
+
trigger: /* @__PURE__ */ React24.createElement(Button, { variant: "ghost", size: "smallIcon", onClick: handleOpenActionHeader }, /* @__PURE__ */ React24.createElement("span", { className: "hawa-sr-only" }, "Open dropdown"), /* @__PURE__ */ React24.createElement(
|
|
2458
|
+
"svg",
|
|
2559
2459
|
{
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2460
|
+
className: "hawa-h-5 hawa-w-5",
|
|
2461
|
+
"aria-hidden": "true",
|
|
2462
|
+
fill: "currentColor",
|
|
2463
|
+
viewBox: "0 0 20 20"
|
|
2563
2464
|
},
|
|
2564
|
-
/* @__PURE__ */ React24.createElement("
|
|
2565
|
-
|
|
2566
|
-
"svg",
|
|
2567
|
-
{
|
|
2568
|
-
className: "hawa-h-5 hawa-w-5",
|
|
2569
|
-
"aria-hidden": "true",
|
|
2570
|
-
fill: "currentColor",
|
|
2571
|
-
viewBox: "0 0 20 20"
|
|
2572
|
-
},
|
|
2573
|
-
/* @__PURE__ */ React24.createElement("path", { d: "M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" })
|
|
2574
|
-
)
|
|
2575
|
-
)
|
|
2465
|
+
/* @__PURE__ */ React24.createElement("path", { d: "M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" })
|
|
2466
|
+
))
|
|
2576
2467
|
}
|
|
2577
2468
|
))), /* @__PURE__ */ React24.createElement("div", { className: "hawa-mx-2" }, header && /* @__PURE__ */ React24.createElement("h5", { className: "hawa-mb-2 hawa-text-2xl hawa-font-bold hawa-tracking-tight" }, header), content && /* @__PURE__ */ React24.createElement("span", { className: "hawa-w-full hawa-font-normal" }, content)), actions || counts ? /* @__PURE__ */ React24.createElement(
|
|
2578
2469
|
"div",
|
|
@@ -2669,11 +2560,7 @@ var PricingPlans = ({
|
|
|
2669
2560
|
import React27 from "react";
|
|
2670
2561
|
var ComparingPlans = (props) => {
|
|
2671
2562
|
const uniqueFeatures = Array.from(
|
|
2672
|
-
new Set(
|
|
2673
|
-
props.plans.flatMap(
|
|
2674
|
-
(plan) => plan.features.map((feature) => feature.text)
|
|
2675
|
-
)
|
|
2676
|
-
)
|
|
2563
|
+
new Set(props.plans.flatMap((plan) => plan.features.map((feature) => feature.text)))
|
|
2677
2564
|
);
|
|
2678
2565
|
return /* @__PURE__ */ React27.createElement("div", { id: "detailed-pricing", className: "hawa-w-full" }, /* @__PURE__ */ React27.createElement("div", { className: "hawa-mb-2 hawa-flex hawa-w-full hawa-flex-col hawa-justify-between hawa-gap-2 sm:hawa-flex-row" }, /* @__PURE__ */ React27.createElement(
|
|
2679
2566
|
Radio,
|
|
@@ -2743,9 +2630,7 @@ var ComparingPlans = (props) => {
|
|
|
2743
2630
|
)
|
|
2744
2631
|
},
|
|
2745
2632
|
/* @__PURE__ */ React27.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-foreground" }, featureText, props.plans.some(
|
|
2746
|
-
(plan) => plan.features.some(
|
|
2747
|
-
(feature) => feature.text === featureText && feature.hint
|
|
2748
|
-
)
|
|
2633
|
+
(plan) => plan.features.some((feature) => feature.text === featureText && feature.hint)
|
|
2749
2634
|
) && /* @__PURE__ */ React27.createElement(
|
|
2750
2635
|
Tooltip,
|
|
2751
2636
|
{
|
|
@@ -2753,13 +2638,9 @@ var ComparingPlans = (props) => {
|
|
|
2753
2638
|
content: (_b = (_a = props.plans.find(
|
|
2754
2639
|
(plan) => {
|
|
2755
2640
|
var _a2;
|
|
2756
|
-
return (_a2 = plan.features.find(
|
|
2757
|
-
(feature) => feature.text === featureText
|
|
2758
|
-
)) == null ? void 0 : _a2.hint;
|
|
2641
|
+
return (_a2 = plan.features.find((feature) => feature.text === featureText)) == null ? void 0 : _a2.hint;
|
|
2759
2642
|
}
|
|
2760
|
-
)) == null ? void 0 : _a.features.find(
|
|
2761
|
-
(feature) => feature.text === featureText
|
|
2762
|
-
)) == null ? void 0 : _b.hint
|
|
2643
|
+
)) == null ? void 0 : _a.features.find((feature) => feature.text === featureText)) == null ? void 0 : _b.hint
|
|
2763
2644
|
},
|
|
2764
2645
|
/* @__PURE__ */ React27.createElement(
|
|
2765
2646
|
"svg",
|
|
@@ -2774,9 +2655,7 @@ var ComparingPlans = (props) => {
|
|
|
2774
2655
|
/* @__PURE__ */ React27.createElement("path", { d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" })
|
|
2775
2656
|
)
|
|
2776
2657
|
), props.plans.some(
|
|
2777
|
-
(plan) => plan.features.some(
|
|
2778
|
-
(feature) => feature.text === featureText && feature.soon
|
|
2779
|
-
)
|
|
2658
|
+
(plan) => plan.features.some((feature) => feature.text === featureText && feature.soon)
|
|
2780
2659
|
) && /* @__PURE__ */ React27.createElement(
|
|
2781
2660
|
Chip,
|
|
2782
2661
|
{
|
|
@@ -2788,9 +2667,7 @@ var ComparingPlans = (props) => {
|
|
|
2788
2667
|
}
|
|
2789
2668
|
)),
|
|
2790
2669
|
props.plans.map((plan, planIndex) => {
|
|
2791
|
-
const feature = plan.features.find(
|
|
2792
|
-
(f) => f.text === featureText
|
|
2793
|
-
);
|
|
2670
|
+
const feature = plan.features.find((f) => f.text === featureText);
|
|
2794
2671
|
return /* @__PURE__ */ React27.createElement(
|
|
2795
2672
|
"div",
|
|
2796
2673
|
{
|
|
@@ -2804,32 +2681,25 @@ var ComparingPlans = (props) => {
|
|
|
2804
2681
|
})
|
|
2805
2682
|
), props.showButtons && /* @__PURE__ */ React27.createElement("div", { className: "hawa-grid hawa-grid-cols-[1fr_repeat(3,_minmax(0,_1fr))] hawa-gap-x-16 hawa-px-4 hawa-py-5" }, /* @__PURE__ */ React27.createElement("div", { className: "hawa-flex hawa-items-center" }), props.plans.map((plan, i) => {
|
|
2806
2683
|
var _a;
|
|
2807
|
-
return /* @__PURE__ */ React27.createElement(
|
|
2808
|
-
|
|
2684
|
+
return /* @__PURE__ */ React27.createElement("div", { key: i, className: "hawa-flex hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React27.createElement(
|
|
2685
|
+
Button,
|
|
2809
2686
|
{
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
// plan: plan.id,
|
|
2822
|
-
currency: (_a2 = props.currentCurrency) == null ? void 0 : _a2.value,
|
|
2823
|
-
cycle: (_b = props.currentCycle) == null ? void 0 : _b.value,
|
|
2824
|
-
...plan
|
|
2825
|
-
};
|
|
2826
|
-
props.onPlanClicked(clickedData);
|
|
2827
|
-
}
|
|
2687
|
+
className: "hawa-w-full hawa-max-w-xs",
|
|
2688
|
+
onClick: () => {
|
|
2689
|
+
var _a2, _b;
|
|
2690
|
+
if (props.onPlanClicked) {
|
|
2691
|
+
let clickedData = {
|
|
2692
|
+
// plan: plan.id,
|
|
2693
|
+
currency: (_a2 = props.currentCurrency) == null ? void 0 : _a2.value,
|
|
2694
|
+
cycle: (_b = props.currentCycle) == null ? void 0 : _b.value,
|
|
2695
|
+
...plan
|
|
2696
|
+
};
|
|
2697
|
+
props.onPlanClicked(clickedData);
|
|
2828
2698
|
}
|
|
2829
|
-
}
|
|
2830
|
-
|
|
2831
|
-
)
|
|
2832
|
-
);
|
|
2699
|
+
}
|
|
2700
|
+
},
|
|
2701
|
+
((_a = plan.texts) == null ? void 0 : _a.buttonText) || "Get Started"
|
|
2702
|
+
));
|
|
2833
2703
|
})));
|
|
2834
2704
|
};
|
|
2835
2705
|
|
|
@@ -2858,41 +2728,25 @@ var HorizontalPricing = (props) => {
|
|
|
2858
2728
|
options: props.billingCycles,
|
|
2859
2729
|
defaultValue: props.currentCycle
|
|
2860
2730
|
}
|
|
2861
|
-
)), data.map((d, i) => /* @__PURE__ */ React28.createElement(
|
|
2862
|
-
"
|
|
2731
|
+
)), data.map((d, i) => /* @__PURE__ */ React28.createElement("label", { key: i, htmlFor: d.title, className: "", onClick: () => setSelectedCard(d.title) }, /* @__PURE__ */ React28.createElement(
|
|
2732
|
+
"input",
|
|
2863
2733
|
{
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2734
|
+
type: "radio",
|
|
2735
|
+
name: "radio",
|
|
2736
|
+
id: d.title,
|
|
2737
|
+
className: "hawa-peer hawa-appearance-none"
|
|
2738
|
+
}
|
|
2739
|
+
), /* @__PURE__ */ React28.createElement(
|
|
2740
|
+
"div",
|
|
2741
|
+
{
|
|
2742
|
+
className: cn(
|
|
2743
|
+
selectedCard === d.title ? "peer-checked:hawa-border-primary peer-checked:hawa-ring-4 peer-checked:hawa-ring-primary/20" : "",
|
|
2744
|
+
"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"
|
|
2745
|
+
)
|
|
2868
2746
|
},
|
|
2869
|
-
/* @__PURE__ */ React28.createElement(
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
type: "radio",
|
|
2873
|
-
name: "radio",
|
|
2874
|
-
id: d.title,
|
|
2875
|
-
className: "hawa-peer hawa-appearance-none"
|
|
2876
|
-
}
|
|
2877
|
-
),
|
|
2878
|
-
/* @__PURE__ */ React28.createElement(
|
|
2879
|
-
"div",
|
|
2880
|
-
{
|
|
2881
|
-
className: cn(
|
|
2882
|
-
selectedCard === d.title ? "peer-checked:hawa-border-primary peer-checked:hawa-ring-4 peer-checked:hawa-ring-primary/20" : "",
|
|
2883
|
-
"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"
|
|
2884
|
-
)
|
|
2885
|
-
},
|
|
2886
|
-
/* @__PURE__ */ React28.createElement("div", { className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4" }, /* @__PURE__ */ React28.createElement(CheckIcons, null), /* @__PURE__ */ React28.createElement(
|
|
2887
|
-
CardText,
|
|
2888
|
-
{
|
|
2889
|
-
title: "Enterprise",
|
|
2890
|
-
subtitle: "For startups and new businesses"
|
|
2891
|
-
}
|
|
2892
|
-
)),
|
|
2893
|
-
/* @__PURE__ */ React28.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
|
2894
|
-
)
|
|
2895
|
-
))));
|
|
2747
|
+
/* @__PURE__ */ React28.createElement("div", { className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4" }, /* @__PURE__ */ React28.createElement(CheckIcons, null), /* @__PURE__ */ React28.createElement(CardText, { title: "Enterprise", subtitle: "For startups and new businesses" })),
|
|
2748
|
+
/* @__PURE__ */ React28.createElement(CardPrice, { amount: d.price, cycle: d.cycle })
|
|
2749
|
+
)))));
|
|
2896
2750
|
};
|
|
2897
2751
|
var CheckIcons = () => /* @__PURE__ */ React28.createElement(React28.Fragment, null, /* @__PURE__ */ React28.createElement(
|
|
2898
2752
|
"svg",
|