@sikka/hawa 0.10.19-next → 0.10.20-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.d.mts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +404 -370
- package/dist/index.mjs +251 -227
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -562,6 +562,9 @@ __export(components_exports, {
|
|
|
562
562
|
NavMenuItem: function() {
|
|
563
563
|
return NavMenuItem;
|
|
564
564
|
},
|
|
565
|
+
Navbar: function() {
|
|
566
|
+
return Navbar;
|
|
567
|
+
},
|
|
565
568
|
NavigationMenu: function() {
|
|
566
569
|
return NavigationMenu;
|
|
567
570
|
},
|
|
@@ -6848,8 +6851,38 @@ var Copyrights = function(props) {
|
|
|
6848
6851
|
height: 50
|
|
6849
6852
|
}))) : null, /* @__PURE__ */ import_react36.default.createElement("div", null, props.version), props.credits ? props.credits : null);
|
|
6850
6853
|
};
|
|
6851
|
-
// components/
|
|
6854
|
+
// components/layout/Navbar.tsx
|
|
6852
6855
|
var import_react37 = __toESM(require("react"));
|
|
6856
|
+
var Navbar = function(_param) {
|
|
6857
|
+
var test = _param.test, props = _object_without_properties(_param, [
|
|
6858
|
+
"test"
|
|
6859
|
+
]);
|
|
6860
|
+
return /* @__PURE__ */ import_react37.default.createElement("div", {
|
|
6861
|
+
className: "hawa-flex hawa-flex-row hawa-justify-between hawa-items-center hawa-bg-card hawa-p-4 hawa-rounded hawa-border"
|
|
6862
|
+
}, /* @__PURE__ */ import_react37.default.createElement("div", null, /* @__PURE__ */ import_react37.default.createElement(Logos.sikka, {
|
|
6863
|
+
className: "hawa-h-8 hawa-w-8"
|
|
6864
|
+
})), /* @__PURE__ */ import_react37.default.createElement("div", null, /* @__PURE__ */ import_react37.default.createElement(NavigationMenu, {
|
|
6865
|
+
direction: "ltr",
|
|
6866
|
+
rootClassNames: "hawa-w-fit",
|
|
6867
|
+
viewportClassNames: "hawa-max-w-md",
|
|
6868
|
+
items: [
|
|
6869
|
+
{
|
|
6870
|
+
trigger: "item 2",
|
|
6871
|
+
action: function() {
|
|
6872
|
+
return console.log("clicked on item");
|
|
6873
|
+
}
|
|
6874
|
+
},
|
|
6875
|
+
{
|
|
6876
|
+
trigger: "item 3",
|
|
6877
|
+
content: /* @__PURE__ */ import_react37.default.createElement("div", {
|
|
6878
|
+
className: "hawa-p-4"
|
|
6879
|
+
}, "something here")
|
|
6880
|
+
}
|
|
6881
|
+
]
|
|
6882
|
+
})), /* @__PURE__ */ import_react37.default.createElement("div", null, /* @__PURE__ */ import_react37.default.createElement(Button, null, "Login")));
|
|
6883
|
+
};
|
|
6884
|
+
// components/blocks/auth/LoginForm.tsx
|
|
6885
|
+
var import_react38 = __toESM(require("react"));
|
|
6853
6886
|
var import_react_hook_form2 = require("react-hook-form");
|
|
6854
6887
|
var import_zod = require("@hookform/resolvers/zod");
|
|
6855
6888
|
var import_libphonenumber_js = require("libphonenumber-js");
|
|
@@ -6927,13 +6960,13 @@ var LoginForm = function(_param) {
|
|
|
6927
6960
|
var renderFields = function() {
|
|
6928
6961
|
switch(loginType){
|
|
6929
6962
|
case "email":
|
|
6930
|
-
return /* @__PURE__ */
|
|
6963
|
+
return /* @__PURE__ */ import_react38.default.createElement(import_react38.default.Fragment, null, /* @__PURE__ */ import_react38.default.createElement(import_react_hook_form2.Controller, {
|
|
6931
6964
|
control: control,
|
|
6932
6965
|
name: "email",
|
|
6933
6966
|
render: function(param) {
|
|
6934
6967
|
var field = param.field;
|
|
6935
6968
|
var _formState_errors_email;
|
|
6936
|
-
return /* @__PURE__ */
|
|
6969
|
+
return /* @__PURE__ */ import_react38.default.createElement(Input, _object_spread({
|
|
6937
6970
|
width: "full",
|
|
6938
6971
|
autoComplete: "email",
|
|
6939
6972
|
label: (texts === null || texts === void 0 ? void 0 : texts.emailLabel) || "Email",
|
|
@@ -6941,13 +6974,13 @@ var LoginForm = function(_param) {
|
|
|
6941
6974
|
placeholder: (texts === null || texts === void 0 ? void 0 : texts.emailPlaceholder) || "contact@sikka.io"
|
|
6942
6975
|
}, field));
|
|
6943
6976
|
}
|
|
6944
|
-
}), /* @__PURE__ */
|
|
6977
|
+
}), /* @__PURE__ */ import_react38.default.createElement("div", null, /* @__PURE__ */ import_react38.default.createElement(import_react_hook_form2.Controller, {
|
|
6945
6978
|
control: control,
|
|
6946
6979
|
name: "password",
|
|
6947
6980
|
render: function(param) {
|
|
6948
6981
|
var field = param.field;
|
|
6949
6982
|
var _formState_errors_password;
|
|
6950
|
-
return /* @__PURE__ */
|
|
6983
|
+
return /* @__PURE__ */ import_react38.default.createElement(Input, _object_spread({
|
|
6951
6984
|
width: "full",
|
|
6952
6985
|
autoComplete: "current-password",
|
|
6953
6986
|
type: "password",
|
|
@@ -6956,18 +6989,18 @@ var LoginForm = function(_param) {
|
|
|
6956
6989
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
6957
6990
|
}, field));
|
|
6958
6991
|
}
|
|
6959
|
-
}), !props.withoutResetPassword && /* @__PURE__ */
|
|
6992
|
+
}), !props.withoutResetPassword && /* @__PURE__ */ import_react38.default.createElement("div", {
|
|
6960
6993
|
onClick: props.onForgotPassword,
|
|
6961
6994
|
className: "hawa-mb-3 hawa-mt-2 hawa-w-fit hawa-cursor-pointer hawa-text-xs dark:hawa-text-gray-300"
|
|
6962
6995
|
}, (texts === null || texts === void 0 ? void 0 : texts.forgotPassword) || "Forgot Password?")));
|
|
6963
6996
|
case "username":
|
|
6964
|
-
return /* @__PURE__ */
|
|
6997
|
+
return /* @__PURE__ */ import_react38.default.createElement(import_react38.default.Fragment, null, /* @__PURE__ */ import_react38.default.createElement(import_react_hook_form2.Controller, {
|
|
6965
6998
|
control: control,
|
|
6966
6999
|
name: "username",
|
|
6967
7000
|
render: function(param) {
|
|
6968
7001
|
var field = param.field;
|
|
6969
7002
|
var _formState_errors_username;
|
|
6970
|
-
return /* @__PURE__ */
|
|
7003
|
+
return /* @__PURE__ */ import_react38.default.createElement(Input, _object_spread({
|
|
6971
7004
|
width: "full",
|
|
6972
7005
|
autoComplete: "username",
|
|
6973
7006
|
label: (texts === null || texts === void 0 ? void 0 : texts.usernameLabel) || "Username",
|
|
@@ -6975,13 +7008,13 @@ var LoginForm = function(_param) {
|
|
|
6975
7008
|
placeholder: (texts === null || texts === void 0 ? void 0 : texts.usernamePlaceholder) || "sikka_sa"
|
|
6976
7009
|
}, field));
|
|
6977
7010
|
}
|
|
6978
|
-
}), /* @__PURE__ */
|
|
7011
|
+
}), /* @__PURE__ */ import_react38.default.createElement("div", null, /* @__PURE__ */ import_react38.default.createElement(import_react_hook_form2.Controller, {
|
|
6979
7012
|
control: control,
|
|
6980
7013
|
name: "password",
|
|
6981
7014
|
render: function(param) {
|
|
6982
7015
|
var field = param.field;
|
|
6983
7016
|
var _formState_errors_password;
|
|
6984
|
-
return /* @__PURE__ */
|
|
7017
|
+
return /* @__PURE__ */ import_react38.default.createElement(Input, _object_spread({
|
|
6985
7018
|
width: "full",
|
|
6986
7019
|
autoComplete: "current-password",
|
|
6987
7020
|
type: "password",
|
|
@@ -6990,18 +7023,18 @@ var LoginForm = function(_param) {
|
|
|
6990
7023
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
6991
7024
|
}, field));
|
|
6992
7025
|
}
|
|
6993
|
-
}), !props.withoutResetPassword && /* @__PURE__ */
|
|
7026
|
+
}), !props.withoutResetPassword && /* @__PURE__ */ import_react38.default.createElement("div", {
|
|
6994
7027
|
onClick: props.onForgotPassword,
|
|
6995
7028
|
className: "hawa-mb-3 hawa-mt-2 hawa-w-fit hawa-cursor-pointer hawa-text-xs dark:hawa-text-gray-300"
|
|
6996
7029
|
}, (texts === null || texts === void 0 ? void 0 : texts.forgotPassword) || "Forgot Password?")));
|
|
6997
7030
|
case "phone":
|
|
6998
|
-
return /* @__PURE__ */
|
|
7031
|
+
return /* @__PURE__ */ import_react38.default.createElement(import_react38.default.Fragment, null, /* @__PURE__ */ import_react38.default.createElement(import_react_hook_form2.Controller, {
|
|
6999
7032
|
control: control,
|
|
7000
7033
|
name: "phone",
|
|
7001
7034
|
render: function(param) {
|
|
7002
7035
|
var field = param.field;
|
|
7003
7036
|
var _formState_errors_phone;
|
|
7004
|
-
return /* @__PURE__ */
|
|
7037
|
+
return /* @__PURE__ */ import_react38.default.createElement(PhoneInput, {
|
|
7005
7038
|
label: texts === null || texts === void 0 ? void 0 : texts.phoneLabel,
|
|
7006
7039
|
helperText: (_formState_errors_phone = formState.errors.phone) === null || _formState_errors_phone === void 0 ? void 0 : _formState_errors_phone.message,
|
|
7007
7040
|
preferredCountry: {
|
|
@@ -7014,13 +7047,13 @@ var LoginForm = function(_param) {
|
|
|
7014
7047
|
}
|
|
7015
7048
|
}));
|
|
7016
7049
|
case "link":
|
|
7017
|
-
return /* @__PURE__ */
|
|
7050
|
+
return /* @__PURE__ */ import_react38.default.createElement(import_react38.default.Fragment, null, /* @__PURE__ */ import_react38.default.createElement(import_react_hook_form2.Controller, {
|
|
7018
7051
|
control: control,
|
|
7019
7052
|
name: "email",
|
|
7020
7053
|
render: function(param) {
|
|
7021
7054
|
var field = param.field;
|
|
7022
7055
|
var _formState_errors_email;
|
|
7023
|
-
return /* @__PURE__ */
|
|
7056
|
+
return /* @__PURE__ */ import_react38.default.createElement(Input, _object_spread({
|
|
7024
7057
|
width: "full",
|
|
7025
7058
|
autoComplete: "email",
|
|
7026
7059
|
label: (texts === null || texts === void 0 ? void 0 : texts.emailLabel) || "Email",
|
|
@@ -7033,17 +7066,17 @@ var LoginForm = function(_param) {
|
|
|
7033
7066
|
break;
|
|
7034
7067
|
}
|
|
7035
7068
|
};
|
|
7036
|
-
return /* @__PURE__ */
|
|
7069
|
+
return /* @__PURE__ */ import_react38.default.createElement("div", {
|
|
7037
7070
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7038
|
-
}, /* @__PURE__ */
|
|
7071
|
+
}, /* @__PURE__ */ import_react38.default.createElement(Card, {
|
|
7039
7072
|
dir: props.direction
|
|
7040
|
-
}, /* @__PURE__ */
|
|
7073
|
+
}, /* @__PURE__ */ import_react38.default.createElement(CardContent, {
|
|
7041
7074
|
headless: true
|
|
7042
|
-
}, props.showError && /* @__PURE__ */
|
|
7075
|
+
}, props.showError && /* @__PURE__ */ import_react38.default.createElement(Alert, {
|
|
7043
7076
|
title: props.errorTitle,
|
|
7044
7077
|
text: props.errorText,
|
|
7045
7078
|
severity: "error"
|
|
7046
|
-
}), /* @__PURE__ */
|
|
7079
|
+
}), /* @__PURE__ */ import_react38.default.createElement("form", {
|
|
7047
7080
|
className: "hawa-flex hawa-flex-col hawa-gap-4",
|
|
7048
7081
|
onSubmit: handleSubmit(function(e) {
|
|
7049
7082
|
if (props.onLogin) {
|
|
@@ -7052,42 +7085,42 @@ var LoginForm = function(_param) {
|
|
|
7052
7085
|
console.log("Form is submitted but onLogin prop is missing");
|
|
7053
7086
|
}
|
|
7054
7087
|
})
|
|
7055
|
-
}, renderFields(), /* @__PURE__ */
|
|
7088
|
+
}, renderFields(), /* @__PURE__ */ import_react38.default.createElement(Button, {
|
|
7056
7089
|
className: "hawa-mt-0 hawa-w-full",
|
|
7057
7090
|
type: "submit",
|
|
7058
7091
|
isLoading: props.isLoading
|
|
7059
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login"), props.additionalButtons, !props.withoutRegister && /* @__PURE__ */
|
|
7092
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login"), props.additionalButtons, !props.withoutRegister && /* @__PURE__ */ import_react38.default.createElement("div", {
|
|
7060
7093
|
className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal hawa-select-none dark:hawa-text-gray-300"
|
|
7061
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.newUserText) || "New user?", " ", /* @__PURE__ */
|
|
7094
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.newUserText) || "New user?", " ", /* @__PURE__ */ import_react38.default.createElement("span", {
|
|
7062
7095
|
onClick: props.onRouteToRegister,
|
|
7063
7096
|
className: "clickable-link"
|
|
7064
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.createAccount) || "Create Account")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
|
7097
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.createAccount) || "Create Account")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react38.default.createElement(CardFooter, {
|
|
7065
7098
|
className: cn(props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2")
|
|
7066
|
-
}, props.viaGoogle && /* @__PURE__ */
|
|
7099
|
+
}, props.viaGoogle && /* @__PURE__ */ import_react38.default.createElement(Button, {
|
|
7067
7100
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7068
7101
|
variant: "outline",
|
|
7069
7102
|
onClick: props.onGoogleLogin
|
|
7070
|
-
}, props.isGoogleLoading ? /* @__PURE__ */
|
|
7103
|
+
}, props.isGoogleLoading ? /* @__PURE__ */ import_react38.default.createElement(Loading, {
|
|
7071
7104
|
size: "button"
|
|
7072
|
-
}) : /* @__PURE__ */
|
|
7105
|
+
}) : /* @__PURE__ */ import_react38.default.createElement(Logos.google, {
|
|
7073
7106
|
className: "hawa-h-4 hawa-w-4"
|
|
7074
|
-
}), !props.logosOnly && (texts === null || texts === void 0 ? void 0 : texts.loginViaGoogleLabel)), props.viaGithub && /* @__PURE__ */
|
|
7107
|
+
}), !props.logosOnly && (texts === null || texts === void 0 ? void 0 : texts.loginViaGoogleLabel)), props.viaGithub && /* @__PURE__ */ import_react38.default.createElement(Button, {
|
|
7075
7108
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7076
7109
|
variant: "outline",
|
|
7077
7110
|
onClick: props.onGithubLogin
|
|
7078
|
-
}, props.isGithubLoading ? /* @__PURE__ */
|
|
7111
|
+
}, props.isGithubLoading ? /* @__PURE__ */ import_react38.default.createElement(Loading, {
|
|
7079
7112
|
size: "button"
|
|
7080
|
-
}) : /* @__PURE__ */
|
|
7113
|
+
}) : /* @__PURE__ */ import_react38.default.createElement(Logos.github, {
|
|
7081
7114
|
className: "hawa-h-4 hawa-w-4"
|
|
7082
|
-
}), !props.logosOnly && (texts === null || texts === void 0 ? void 0 : texts.loginViaGithubLabel)), props.viaTwitter && /* @__PURE__ */
|
|
7115
|
+
}), !props.logosOnly && (texts === null || texts === void 0 ? void 0 : texts.loginViaGithubLabel)), props.viaTwitter && /* @__PURE__ */ import_react38.default.createElement(Button, {
|
|
7083
7116
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7084
7117
|
variant: "outline",
|
|
7085
7118
|
onClick: props.onTwitterLogin
|
|
7086
|
-
}, props.isTwitterLoading ? /* @__PURE__ */
|
|
7119
|
+
}, props.isTwitterLoading ? /* @__PURE__ */ import_react38.default.createElement(Loading, {
|
|
7087
7120
|
size: "button"
|
|
7088
|
-
}) : /* @__PURE__ */
|
|
7121
|
+
}) : /* @__PURE__ */ import_react38.default.createElement(Logos.twitter, {
|
|
7089
7122
|
className: "hawa-h-4 hawa-w-4"
|
|
7090
|
-
}), " ", !props.logosOnly && (texts === null || texts === void 0 ? void 0 : texts.loginViaTwitterLabel))) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */
|
|
7123
|
+
}), " ", !props.logosOnly && (texts === null || texts === void 0 ? void 0 : texts.loginViaTwitterLabel))) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */ import_react38.default.createElement(InterfaceSettings, {
|
|
7091
7124
|
currentColorMode: props.currentColorMode,
|
|
7092
7125
|
currentLanguage: props.currentLanguage,
|
|
7093
7126
|
handleColorMode: props.handleColorMode,
|
|
@@ -7095,7 +7128,7 @@ var LoginForm = function(_param) {
|
|
|
7095
7128
|
}));
|
|
7096
7129
|
};
|
|
7097
7130
|
// components/blocks/auth/RegisterForm.tsx
|
|
7098
|
-
var
|
|
7131
|
+
var import_react39 = __toESM(require("react"));
|
|
7099
7132
|
var import_react_hook_form3 = require("react-hook-form");
|
|
7100
7133
|
var import_zod2 = require("@hookform/resolvers/zod");
|
|
7101
7134
|
var z2 = __toESM(require("zod"));
|
|
@@ -7171,17 +7204,17 @@ var RegisterForm = function(_param) {
|
|
|
7171
7204
|
var _ref = (0, import_react_hook_form3.useForm)({
|
|
7172
7205
|
resolver: (0, import_zod2.zodResolver)(formSchema)
|
|
7173
7206
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState;
|
|
7174
|
-
return /* @__PURE__ */
|
|
7207
|
+
return /* @__PURE__ */ import_react39.default.createElement("div", {
|
|
7175
7208
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7176
|
-
}, /* @__PURE__ */
|
|
7209
|
+
}, /* @__PURE__ */ import_react39.default.createElement(Card, {
|
|
7177
7210
|
dir: props.direction
|
|
7178
|
-
}, /* @__PURE__ */
|
|
7211
|
+
}, /* @__PURE__ */ import_react39.default.createElement(CardContent, {
|
|
7179
7212
|
headless: true
|
|
7180
|
-
}, /* @__PURE__ */
|
|
7213
|
+
}, /* @__PURE__ */ import_react39.default.createElement("div", null, props.showError && /* @__PURE__ */ import_react39.default.createElement(Alert, {
|
|
7181
7214
|
title: props.errorTitle,
|
|
7182
7215
|
text: props.errorText,
|
|
7183
7216
|
severity: "error"
|
|
7184
|
-
}), /* @__PURE__ */
|
|
7217
|
+
}), /* @__PURE__ */ import_react39.default.createElement(import_react_hook_form3.FormProvider, _object_spread({}, methods), /* @__PURE__ */ import_react39.default.createElement("form", {
|
|
7185
7218
|
onSubmit: handleSubmit(function(e) {
|
|
7186
7219
|
if (props.onRegister) {
|
|
7187
7220
|
return props.onRegister(e);
|
|
@@ -7190,18 +7223,18 @@ var RegisterForm = function(_param) {
|
|
|
7190
7223
|
}
|
|
7191
7224
|
}),
|
|
7192
7225
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7193
|
-
}, /* @__PURE__ */
|
|
7226
|
+
}, /* @__PURE__ */ import_react39.default.createElement("div", {
|
|
7194
7227
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7195
7228
|
}, props.registerFields.map(function(fld, i) {
|
|
7196
7229
|
if (fld === "fullname") {
|
|
7197
|
-
return /* @__PURE__ */
|
|
7230
|
+
return /* @__PURE__ */ import_react39.default.createElement(import_react_hook_form3.Controller, {
|
|
7198
7231
|
key: i,
|
|
7199
7232
|
control: control,
|
|
7200
7233
|
name: "fullName",
|
|
7201
7234
|
render: function(param) {
|
|
7202
7235
|
var field = param.field;
|
|
7203
7236
|
var _formState_errors_fullName;
|
|
7204
|
-
return /* @__PURE__ */
|
|
7237
|
+
return /* @__PURE__ */ import_react39.default.createElement(Input, _object_spread({
|
|
7205
7238
|
width: "full",
|
|
7206
7239
|
label: texts === null || texts === void 0 ? void 0 : texts.fullNameLabel,
|
|
7207
7240
|
placeholder: texts === null || texts === void 0 ? void 0 : texts.fullNamePlaceholder,
|
|
@@ -7211,14 +7244,14 @@ var RegisterForm = function(_param) {
|
|
|
7211
7244
|
});
|
|
7212
7245
|
}
|
|
7213
7246
|
if (fld === "email") {
|
|
7214
|
-
return /* @__PURE__ */
|
|
7247
|
+
return /* @__PURE__ */ import_react39.default.createElement(import_react_hook_form3.Controller, {
|
|
7215
7248
|
key: i,
|
|
7216
7249
|
control: control,
|
|
7217
7250
|
name: "email",
|
|
7218
7251
|
render: function(param) {
|
|
7219
7252
|
var field = param.field;
|
|
7220
7253
|
var _formState_errors_email;
|
|
7221
|
-
return /* @__PURE__ */
|
|
7254
|
+
return /* @__PURE__ */ import_react39.default.createElement(Input, _object_spread({
|
|
7222
7255
|
width: "full",
|
|
7223
7256
|
autoComplete: "email",
|
|
7224
7257
|
label: texts === null || texts === void 0 ? void 0 : texts.emailLabel,
|
|
@@ -7229,14 +7262,14 @@ var RegisterForm = function(_param) {
|
|
|
7229
7262
|
});
|
|
7230
7263
|
}
|
|
7231
7264
|
if (fld === "username") {
|
|
7232
|
-
return /* @__PURE__ */
|
|
7265
|
+
return /* @__PURE__ */ import_react39.default.createElement(import_react_hook_form3.Controller, {
|
|
7233
7266
|
key: i,
|
|
7234
7267
|
control: control,
|
|
7235
7268
|
name: "username",
|
|
7236
7269
|
render: function(param) {
|
|
7237
7270
|
var field = param.field;
|
|
7238
7271
|
var _formState_errors_username;
|
|
7239
|
-
return /* @__PURE__ */
|
|
7272
|
+
return /* @__PURE__ */ import_react39.default.createElement(Input, _object_spread({
|
|
7240
7273
|
width: "full",
|
|
7241
7274
|
autoComplete: "username",
|
|
7242
7275
|
label: texts === null || texts === void 0 ? void 0 : texts.usernameLabel,
|
|
@@ -7246,13 +7279,13 @@ var RegisterForm = function(_param) {
|
|
|
7246
7279
|
}
|
|
7247
7280
|
});
|
|
7248
7281
|
}
|
|
7249
|
-
})), /* @__PURE__ */
|
|
7282
|
+
})), /* @__PURE__ */ import_react39.default.createElement(import_react_hook_form3.Controller, {
|
|
7250
7283
|
control: control,
|
|
7251
7284
|
name: "password",
|
|
7252
7285
|
render: function(param) {
|
|
7253
7286
|
var field = param.field;
|
|
7254
7287
|
var _formState_errors_password;
|
|
7255
|
-
return /* @__PURE__ */
|
|
7288
|
+
return /* @__PURE__ */ import_react39.default.createElement(Input, _object_spread({
|
|
7256
7289
|
width: "full",
|
|
7257
7290
|
type: "password",
|
|
7258
7291
|
autoComplete: "new-password",
|
|
@@ -7261,13 +7294,13 @@ var RegisterForm = function(_param) {
|
|
|
7261
7294
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
7262
7295
|
}, field));
|
|
7263
7296
|
}
|
|
7264
|
-
}), /* @__PURE__ */
|
|
7297
|
+
}), /* @__PURE__ */ import_react39.default.createElement(import_react_hook_form3.Controller, {
|
|
7265
7298
|
control: control,
|
|
7266
7299
|
name: "confirm_password",
|
|
7267
7300
|
render: function(param) {
|
|
7268
7301
|
var field = param.field;
|
|
7269
7302
|
var _formState_errors_confirm_password;
|
|
7270
|
-
return /* @__PURE__ */
|
|
7303
|
+
return /* @__PURE__ */ import_react39.default.createElement(Input, _object_spread({
|
|
7271
7304
|
width: "full",
|
|
7272
7305
|
type: "password",
|
|
7273
7306
|
autoComplete: "new-password",
|
|
@@ -7276,25 +7309,25 @@ var RegisterForm = function(_param) {
|
|
|
7276
7309
|
helperText: (_formState_errors_confirm_password = formState.errors.confirm_password) === null || _formState_errors_confirm_password === void 0 ? void 0 : _formState_errors_confirm_password.message
|
|
7277
7310
|
}, field));
|
|
7278
7311
|
}
|
|
7279
|
-
}), props.additionalInputs, props.showRefCode && /* @__PURE__ */
|
|
7312
|
+
}), props.additionalInputs, props.showRefCode && /* @__PURE__ */ import_react39.default.createElement(import_react_hook_form3.Controller, {
|
|
7280
7313
|
control: control,
|
|
7281
7314
|
name: "refCode",
|
|
7282
7315
|
render: function(param) {
|
|
7283
7316
|
var field = param.field;
|
|
7284
7317
|
var _formState_errors_refCode;
|
|
7285
|
-
return /* @__PURE__ */
|
|
7318
|
+
return /* @__PURE__ */ import_react39.default.createElement(Input, _object_spread({
|
|
7286
7319
|
width: "full",
|
|
7287
7320
|
label: texts === null || texts === void 0 ? void 0 : texts.refCode,
|
|
7288
7321
|
placeholder: (texts === null || texts === void 0 ? void 0 : texts.refCodePlaceholder) || "Enter the referral code",
|
|
7289
7322
|
helperText: (_formState_errors_refCode = formState.errors.refCode) === null || _formState_errors_refCode === void 0 ? void 0 : _formState_errors_refCode.message
|
|
7290
7323
|
}, field));
|
|
7291
7324
|
}
|
|
7292
|
-
}), props.showUserSource && /* @__PURE__ */
|
|
7325
|
+
}), props.showUserSource && /* @__PURE__ */ import_react39.default.createElement(import_react_hook_form3.Controller, {
|
|
7293
7326
|
control: control,
|
|
7294
7327
|
name: "reference",
|
|
7295
7328
|
render: function(param) {
|
|
7296
7329
|
var field = param.field;
|
|
7297
|
-
return /* @__PURE__ */
|
|
7330
|
+
return /* @__PURE__ */ import_react39.default.createElement(Select, {
|
|
7298
7331
|
label: (texts === null || texts === void 0 ? void 0 : texts.userReferenceLabel) || "How did you learn about us?",
|
|
7299
7332
|
placeholder: texts === null || texts === void 0 ? void 0 : texts.userReferencePlaceholder,
|
|
7300
7333
|
isCreatable: false,
|
|
@@ -7307,74 +7340,74 @@ var RegisterForm = function(_param) {
|
|
|
7307
7340
|
}
|
|
7308
7341
|
});
|
|
7309
7342
|
}
|
|
7310
|
-
}), /* @__PURE__ */
|
|
7343
|
+
}), /* @__PURE__ */ import_react39.default.createElement("div", {
|
|
7311
7344
|
className: "hawa-flex hawa-flex-col hawa-gap-3"
|
|
7312
|
-
}, props.showTermsOption && /* @__PURE__ */
|
|
7345
|
+
}, props.showTermsOption && /* @__PURE__ */ import_react39.default.createElement(import_react_hook_form3.Controller, {
|
|
7313
7346
|
control: control,
|
|
7314
7347
|
name: "terms_accepted",
|
|
7315
7348
|
render: function(param) {
|
|
7316
7349
|
var field = param.field;
|
|
7317
7350
|
var _formState_errors_terms_accepted_message, _formState_errors_terms_accepted;
|
|
7318
|
-
return /* @__PURE__ */
|
|
7351
|
+
return /* @__PURE__ */ import_react39.default.createElement(Checkbox, {
|
|
7319
7352
|
id: "terms_accepted",
|
|
7320
7353
|
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(),
|
|
7321
7354
|
onCheckedChange: function(e) {
|
|
7322
7355
|
return field.onChange(e);
|
|
7323
7356
|
},
|
|
7324
|
-
label: /* @__PURE__ */
|
|
7357
|
+
label: /* @__PURE__ */ import_react39.default.createElement("div", {
|
|
7325
7358
|
className: "hawa-flex hawa-flex-row hawa-gap-0.5"
|
|
7326
|
-
}, /* @__PURE__ */
|
|
7359
|
+
}, /* @__PURE__ */ import_react39.default.createElement("span", null, texts === null || texts === void 0 ? void 0 : texts.iAcceptText), " ", /* @__PURE__ */ import_react39.default.createElement(StopPropagationWrapper, null, /* @__PURE__ */ import_react39.default.createElement("a", {
|
|
7327
7360
|
onClick: props.onRouteToTOS,
|
|
7328
7361
|
className: "clickable-link"
|
|
7329
7362
|
}, texts === null || texts === void 0 ? void 0 : texts.termsText)))
|
|
7330
7363
|
});
|
|
7331
7364
|
}
|
|
7332
|
-
}), props.showNewsletterOption && /* @__PURE__ */
|
|
7365
|
+
}), props.showNewsletterOption && /* @__PURE__ */ import_react39.default.createElement(import_react_hook_form3.Controller, {
|
|
7333
7366
|
control: control,
|
|
7334
7367
|
name: "newsletter_accepted",
|
|
7335
7368
|
render: function(param) {
|
|
7336
7369
|
var field = param.field;
|
|
7337
|
-
return /* @__PURE__ */
|
|
7370
|
+
return /* @__PURE__ */ import_react39.default.createElement(Checkbox, {
|
|
7338
7371
|
id: "newsletter_accepted",
|
|
7339
7372
|
label: texts === null || texts === void 0 ? void 0 : texts.subscribeToNewsletter,
|
|
7340
7373
|
onCheckedChange: field.onChange
|
|
7341
7374
|
});
|
|
7342
7375
|
}
|
|
7343
|
-
})), /* @__PURE__ */
|
|
7376
|
+
})), /* @__PURE__ */ import_react39.default.createElement(Button, {
|
|
7344
7377
|
isLoading: props.isLoading,
|
|
7345
7378
|
className: "hawa-w-full hawa-mt-4"
|
|
7346
|
-
}, texts === null || texts === void 0 ? void 0 : texts.registerText), props.additionalButtons)), /* @__PURE__ */
|
|
7379
|
+
}, texts === null || texts === void 0 ? void 0 : texts.registerText), props.additionalButtons)), /* @__PURE__ */ import_react39.default.createElement("div", {
|
|
7347
7380
|
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"
|
|
7348
|
-
}, /* @__PURE__ */
|
|
7381
|
+
}, /* @__PURE__ */ import_react39.default.createElement("span", null, texts === null || texts === void 0 ? void 0 : texts.existingUserText), /* @__PURE__ */ import_react39.default.createElement("span", {
|
|
7349
7382
|
onClick: props.onRouteToLogin,
|
|
7350
7383
|
className: "clickable-link"
|
|
7351
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
|
7384
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react39.default.createElement(CardFooter, {
|
|
7352
7385
|
className: cn(props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2")
|
|
7353
|
-
}, props.viaGoogle && /* @__PURE__ */
|
|
7386
|
+
}, props.viaGoogle && /* @__PURE__ */ import_react39.default.createElement(Button, {
|
|
7354
7387
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7355
7388
|
variant: "outline",
|
|
7356
7389
|
onClick: props.onGoogleRegister
|
|
7357
|
-
}, props.isGoogleLoading ? /* @__PURE__ */
|
|
7390
|
+
}, props.isGoogleLoading ? /* @__PURE__ */ import_react39.default.createElement(Loading, {
|
|
7358
7391
|
size: "button"
|
|
7359
|
-
}) : /* @__PURE__ */
|
|
7392
|
+
}) : /* @__PURE__ */ import_react39.default.createElement(Logos.google, {
|
|
7360
7393
|
className: "hawa-h-4 hawa-w-4"
|
|
7361
|
-
}), " ", !props.logosOnly && (texts === null || texts === void 0 ? void 0 : texts.registerViaGoogleLabel)), props.viaGithub && /* @__PURE__ */
|
|
7394
|
+
}), " ", !props.logosOnly && (texts === null || texts === void 0 ? void 0 : texts.registerViaGoogleLabel)), props.viaGithub && /* @__PURE__ */ import_react39.default.createElement(Button, {
|
|
7362
7395
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7363
7396
|
variant: "outline",
|
|
7364
7397
|
onClick: props.onGithubRegister
|
|
7365
|
-
}, props.isGithubLoading ? /* @__PURE__ */
|
|
7398
|
+
}, props.isGithubLoading ? /* @__PURE__ */ import_react39.default.createElement(Loading, {
|
|
7366
7399
|
size: "button"
|
|
7367
|
-
}) : /* @__PURE__ */
|
|
7400
|
+
}) : /* @__PURE__ */ import_react39.default.createElement(Logos.github, {
|
|
7368
7401
|
className: "hawa-h-4 hawa-w-4"
|
|
7369
|
-
}), " ", !props.logosOnly && (texts === null || texts === void 0 ? void 0 : texts.registerViaGithubLabel)), props.viaTwitter && /* @__PURE__ */
|
|
7402
|
+
}), " ", !props.logosOnly && (texts === null || texts === void 0 ? void 0 : texts.registerViaGithubLabel)), props.viaTwitter && /* @__PURE__ */ import_react39.default.createElement(Button, {
|
|
7370
7403
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7371
7404
|
variant: "outline",
|
|
7372
7405
|
onClick: props.onTwitterRegister
|
|
7373
|
-
}, props.isTwitterLoading ? /* @__PURE__ */
|
|
7406
|
+
}, props.isTwitterLoading ? /* @__PURE__ */ import_react39.default.createElement(Loading, {
|
|
7374
7407
|
size: "button"
|
|
7375
|
-
}) : /* @__PURE__ */
|
|
7408
|
+
}) : /* @__PURE__ */ import_react39.default.createElement(Logos.twitter, {
|
|
7376
7409
|
className: "hawa-h-4 hawa-w-4"
|
|
7377
|
-
}), " ", !props.logosOnly && (texts === null || texts === void 0 ? void 0 : texts.registerViaTwitterLabel))) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */
|
|
7410
|
+
}), " ", !props.logosOnly && (texts === null || texts === void 0 ? void 0 : texts.registerViaTwitterLabel))) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */ import_react39.default.createElement(InterfaceSettings, {
|
|
7378
7411
|
currentColorMode: props.currentColorMode,
|
|
7379
7412
|
currentLanguage: props.currentLanguage,
|
|
7380
7413
|
handleColorMode: props.handleColorMode,
|
|
@@ -7382,65 +7415,65 @@ var RegisterForm = function(_param) {
|
|
|
7382
7415
|
}));
|
|
7383
7416
|
};
|
|
7384
7417
|
// components/blocks/auth/AppLanding.tsx
|
|
7385
|
-
var
|
|
7418
|
+
var import_react40 = __toESM(require("react"));
|
|
7386
7419
|
var AppLanding = function(props) {
|
|
7387
7420
|
var _props_texts, _props_texts1, _props_texts2, _props_texts3, _props_texts4, _props_texts5, _props_texts6, _props_texts7, _props_texts8;
|
|
7388
7421
|
var _props_texts_continueWithGoogle, _props_texts_continueWithGithub, _props_texts_continueWithTwitter, _props_texts_continueWithApple, _props_texts_continueWithMicrosoft, _props_texts_continueWithEmail, _props_texts_continueWithPhone;
|
|
7389
|
-
return /* @__PURE__ */
|
|
7422
|
+
return /* @__PURE__ */ import_react40.default.createElement("div", {
|
|
7390
7423
|
dir: props.direction
|
|
7391
|
-
}, /* @__PURE__ */
|
|
7424
|
+
}, /* @__PURE__ */ import_react40.default.createElement(Card, null, /* @__PURE__ */ import_react40.default.createElement(CardContent, {
|
|
7392
7425
|
headless: true,
|
|
7393
7426
|
className: "hawa-flex hawa-flex-col hawa-gap-6"
|
|
7394
|
-
}, props.viaGoogle && /* @__PURE__ */
|
|
7427
|
+
}, props.viaGoogle && /* @__PURE__ */ import_react40.default.createElement(Button, {
|
|
7395
7428
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7396
7429
|
variant: "outline",
|
|
7397
7430
|
onClick: props.handleGoogle
|
|
7398
|
-
}, /* @__PURE__ */
|
|
7431
|
+
}, /* @__PURE__ */ import_react40.default.createElement(Logos.google, {
|
|
7399
7432
|
className: "hawa-h-4 hawa-w-4"
|
|
7400
|
-
}), (_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__ */
|
|
7433
|
+
}), (_props_texts_continueWithGoogle = (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.continueWithGoogle) !== null && _props_texts_continueWithGoogle !== void 0 ? _props_texts_continueWithGoogle : "Continue With Google"), props.viaGithub && /* @__PURE__ */ import_react40.default.createElement(Button, {
|
|
7401
7434
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7402
7435
|
variant: "outline",
|
|
7403
7436
|
onClick: props.handleGithub
|
|
7404
|
-
}, /* @__PURE__ */
|
|
7437
|
+
}, /* @__PURE__ */ import_react40.default.createElement(Logos.github, {
|
|
7405
7438
|
className: "hawa-h-4 hawa-w-4"
|
|
7406
|
-
}), (_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__ */
|
|
7439
|
+
}), (_props_texts_continueWithGithub = (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.continueWithGithub) !== null && _props_texts_continueWithGithub !== void 0 ? _props_texts_continueWithGithub : "Continue With Github"), props.viaTwitter && /* @__PURE__ */ import_react40.default.createElement(Button, {
|
|
7407
7440
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7408
7441
|
variant: "outline",
|
|
7409
7442
|
onClick: props.handleTwitter
|
|
7410
|
-
}, /* @__PURE__ */
|
|
7443
|
+
}, /* @__PURE__ */ import_react40.default.createElement(Logos.twitter, {
|
|
7411
7444
|
className: "hawa-h-4 hawa-w-4"
|
|
7412
|
-
}), (_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__ */
|
|
7445
|
+
}), (_props_texts_continueWithTwitter = (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.continueWithTwitter) !== null && _props_texts_continueWithTwitter !== void 0 ? _props_texts_continueWithTwitter : "Continue With Twitter"), props.viaApple && /* @__PURE__ */ import_react40.default.createElement(Button, {
|
|
7413
7446
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7414
7447
|
variant: "outline",
|
|
7415
7448
|
onClick: props.handleApple
|
|
7416
|
-
}, /* @__PURE__ */
|
|
7449
|
+
}, /* @__PURE__ */ import_react40.default.createElement(Logos.apple, {
|
|
7417
7450
|
className: "hawa-h-4 hawa-w-4"
|
|
7418
|
-
}), (_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__ */
|
|
7451
|
+
}), (_props_texts_continueWithApple = (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.continueWithApple) !== null && _props_texts_continueWithApple !== void 0 ? _props_texts_continueWithApple : "Continue With Apple"), props.viaMicrosoft && /* @__PURE__ */ import_react40.default.createElement(Button, {
|
|
7419
7452
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7420
7453
|
variant: "outline",
|
|
7421
7454
|
onClick: props.handleMicrosoft
|
|
7422
|
-
}, /* @__PURE__ */
|
|
7455
|
+
}, /* @__PURE__ */ import_react40.default.createElement(Logos.microsoft, {
|
|
7423
7456
|
className: "hawa-h-4 hawa-w-4"
|
|
7424
|
-
}), (_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__ */
|
|
7457
|
+
}), (_props_texts_continueWithMicrosoft = (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.continueWithMicrosoft) !== null && _props_texts_continueWithMicrosoft !== void 0 ? _props_texts_continueWithMicrosoft : "Continue With Microsoft"), props.viaEmail && /* @__PURE__ */ import_react40.default.createElement(Button, {
|
|
7425
7458
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7426
7459
|
variant: "outline",
|
|
7427
7460
|
onClick: props.handleEmail
|
|
7428
|
-
}, /* @__PURE__ */
|
|
7461
|
+
}, /* @__PURE__ */ import_react40.default.createElement(Logos.mail, {
|
|
7429
7462
|
className: "hawa-h-4 hawa-w-4"
|
|
7430
|
-
}), (_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__ */
|
|
7463
|
+
}), (_props_texts_continueWithEmail = (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.continueWithEmail) !== null && _props_texts_continueWithEmail !== void 0 ? _props_texts_continueWithEmail : "Continue With Email"), props.viaPhone && /* @__PURE__ */ import_react40.default.createElement(Button, {
|
|
7431
7464
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7432
7465
|
variant: "outline",
|
|
7433
7466
|
onClick: props.handlePhone
|
|
7434
|
-
}, /* @__PURE__ */
|
|
7467
|
+
}, /* @__PURE__ */ import_react40.default.createElement(Logos.phone, {
|
|
7435
7468
|
className: "hawa-h-4 hawa-w-4"
|
|
7436
|
-
}), (_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"), !props.withoutSignUp && /* @__PURE__ */
|
|
7469
|
+
}), (_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"), !props.withoutSignUp && /* @__PURE__ */ import_react40.default.createElement("div", {
|
|
7437
7470
|
className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-gray-300"
|
|
7438
|
-
}, (_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.newUserText, " ", /* @__PURE__ */
|
|
7471
|
+
}, (_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.newUserText, " ", /* @__PURE__ */ import_react40.default.createElement("span", {
|
|
7439
7472
|
onClick: props.handleRouteToRegister,
|
|
7440
7473
|
className: "clickable-link"
|
|
7441
|
-
}, (_props_texts8 = props.texts) === null || _props_texts8 === void 0 ? void 0 : _props_texts8.createAccount)))), /* @__PURE__ */
|
|
7474
|
+
}, (_props_texts8 = props.texts) === null || _props_texts8 === void 0 ? void 0 : _props_texts8.createAccount)))), /* @__PURE__ */ import_react40.default.createElement("div", {
|
|
7442
7475
|
className: "hawa-mt-4 hawa-flex hawa-flex-row hawa-justify-between"
|
|
7443
|
-
}, /* @__PURE__ */
|
|
7476
|
+
}, /* @__PURE__ */ import_react40.default.createElement(Radio, {
|
|
7444
7477
|
onChangeTab: props.handleLanguage,
|
|
7445
7478
|
design: "tabs",
|
|
7446
7479
|
options: [
|
|
@@ -7453,20 +7486,20 @@ var AppLanding = function(props) {
|
|
|
7453
7486
|
label: "English"
|
|
7454
7487
|
}
|
|
7455
7488
|
]
|
|
7456
|
-
}), /* @__PURE__ */
|
|
7489
|
+
}), /* @__PURE__ */ import_react40.default.createElement(Radio, {
|
|
7457
7490
|
onChangeTab: props.handleColorMode,
|
|
7458
7491
|
design: "tabs",
|
|
7459
7492
|
options: [
|
|
7460
7493
|
{
|
|
7461
7494
|
value: "light",
|
|
7462
|
-
label: /* @__PURE__ */
|
|
7495
|
+
label: /* @__PURE__ */ import_react40.default.createElement("svg", {
|
|
7463
7496
|
width: "15",
|
|
7464
7497
|
height: "15",
|
|
7465
7498
|
viewBox: "0 0 15 15",
|
|
7466
7499
|
fill: "none",
|
|
7467
7500
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7468
7501
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
|
7469
|
-
}, /* @__PURE__ */
|
|
7502
|
+
}, /* @__PURE__ */ import_react40.default.createElement("path", {
|
|
7470
7503
|
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",
|
|
7471
7504
|
fill: "currentColor",
|
|
7472
7505
|
fillRule: "evenodd",
|
|
@@ -7475,7 +7508,7 @@ var AppLanding = function(props) {
|
|
|
7475
7508
|
},
|
|
7476
7509
|
{
|
|
7477
7510
|
value: "dark",
|
|
7478
|
-
label: /* @__PURE__ */
|
|
7511
|
+
label: /* @__PURE__ */ import_react40.default.createElement("svg", {
|
|
7479
7512
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7480
7513
|
width: "24",
|
|
7481
7514
|
height: "24",
|
|
@@ -7486,7 +7519,7 @@ var AppLanding = function(props) {
|
|
|
7486
7519
|
strokeLinecap: "round",
|
|
7487
7520
|
strokeLinejoin: "round",
|
|
7488
7521
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
|
7489
|
-
}, /* @__PURE__ */
|
|
7522
|
+
}, /* @__PURE__ */ import_react40.default.createElement("path", {
|
|
7490
7523
|
d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"
|
|
7491
7524
|
}))
|
|
7492
7525
|
}
|
|
@@ -7494,16 +7527,16 @@ var AppLanding = function(props) {
|
|
|
7494
7527
|
})));
|
|
7495
7528
|
};
|
|
7496
7529
|
// components/blocks/auth/CheckEmail.tsx
|
|
7497
|
-
var
|
|
7530
|
+
var import_react41 = __toESM(require("react"));
|
|
7498
7531
|
var CheckEmail = function(param) {
|
|
7499
7532
|
var texts = param.texts, handleResend = param.handleResend;
|
|
7500
|
-
return /* @__PURE__ */
|
|
7533
|
+
return /* @__PURE__ */ import_react41.default.createElement(Card, null, /* @__PURE__ */ import_react41.default.createElement(CardContent, {
|
|
7501
7534
|
headless: true
|
|
7502
|
-
}, /* @__PURE__ */
|
|
7535
|
+
}, /* @__PURE__ */ import_react41.default.createElement("div", {
|
|
7503
7536
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center"
|
|
7504
|
-
}, /* @__PURE__ */
|
|
7537
|
+
}, /* @__PURE__ */ import_react41.default.createElement("div", {
|
|
7505
7538
|
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"
|
|
7506
|
-
}, /* @__PURE__ */
|
|
7539
|
+
}, /* @__PURE__ */ import_react41.default.createElement("svg", {
|
|
7507
7540
|
stroke: "currentColor",
|
|
7508
7541
|
fill: "none",
|
|
7509
7542
|
"stroke-width": "2",
|
|
@@ -7513,23 +7546,23 @@ var CheckEmail = function(param) {
|
|
|
7513
7546
|
height: "0.5em",
|
|
7514
7547
|
width: "0.5em",
|
|
7515
7548
|
xmlns: "http://www.w3.org/2000/svg"
|
|
7516
|
-
}, /* @__PURE__ */
|
|
7549
|
+
}, /* @__PURE__ */ import_react41.default.createElement("path", {
|
|
7517
7550
|
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"
|
|
7518
|
-
}), /* @__PURE__ */
|
|
7551
|
+
}), /* @__PURE__ */ import_react41.default.createElement("polyline", {
|
|
7519
7552
|
points: "22,6 12,13 2,6"
|
|
7520
|
-
}))), /* @__PURE__ */
|
|
7553
|
+
}))), /* @__PURE__ */ import_react41.default.createElement("div", {
|
|
7521
7554
|
className: "hawa-m-2 hawa-text-xl hawa-font-bold"
|
|
7522
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.checkEmail) || "Check your Email"), /* @__PURE__ */
|
|
7555
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.checkEmail) || "Check your Email"), /* @__PURE__ */ import_react41.default.createElement("div", {
|
|
7523
7556
|
className: "hawa-text-sm"
|
|
7524
|
-
}, (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__ */
|
|
7557
|
+
}, (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_react41.default.createElement(CardFooter, {
|
|
7525
7558
|
className: "hawa-flex hawa-flex-col hawa-justify-center "
|
|
7526
|
-
}, /* @__PURE__ */
|
|
7559
|
+
}, /* @__PURE__ */ import_react41.default.createElement("span", {
|
|
7527
7560
|
className: "clickable-link hawa-text-sm",
|
|
7528
7561
|
onClick: handleResend
|
|
7529
7562
|
}, (texts === null || texts === void 0 ? void 0 : texts.resendEmail) || "Resend Email")));
|
|
7530
7563
|
};
|
|
7531
7564
|
// components/blocks/auth/NewPassword.tsx
|
|
7532
|
-
var
|
|
7565
|
+
var import_react42 = __toESM(require("react"));
|
|
7533
7566
|
var import_react_hook_form4 = require("react-hook-form");
|
|
7534
7567
|
var import_zod3 = require("@hookform/resolvers/zod");
|
|
7535
7568
|
var z3 = __toESM(require("zod"));
|
|
@@ -7563,17 +7596,17 @@ var NewPasswordForm = function(_param) {
|
|
|
7563
7596
|
var _ref = (0, import_react_hook_form4.useForm)({
|
|
7564
7597
|
resolver: (0, import_zod3.zodResolver)(formSchema)
|
|
7565
7598
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState;
|
|
7566
|
-
var _ref1 = _sliced_to_array((0,
|
|
7567
|
-
return /* @__PURE__ */
|
|
7599
|
+
var _ref1 = _sliced_to_array((0, import_react42.useState)(false), 2), matchError = _ref1[0], setMatchError = _ref1[1];
|
|
7600
|
+
return /* @__PURE__ */ import_react42.default.createElement(Card, {
|
|
7568
7601
|
dir: props.direction
|
|
7569
|
-
}, matchError && /* @__PURE__ */
|
|
7602
|
+
}, matchError && /* @__PURE__ */ import_react42.default.createElement(Alert, {
|
|
7570
7603
|
text: texts === null || texts === void 0 ? void 0 : texts.passwordMatchError,
|
|
7571
7604
|
severity: "error"
|
|
7572
|
-
}), props.passwordChanged ? /* @__PURE__ */
|
|
7605
|
+
}), props.passwordChanged ? /* @__PURE__ */ import_react42.default.createElement(CardContent, {
|
|
7573
7606
|
headless: true
|
|
7574
|
-
}, /* @__PURE__ */
|
|
7607
|
+
}, /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7575
7608
|
className: "hawa-text-center"
|
|
7576
|
-
}, texts === null || texts === void 0 ? void 0 : texts.passwordChanged)) : /* @__PURE__ */
|
|
7609
|
+
}, texts === null || texts === void 0 ? void 0 : texts.passwordChanged)) : /* @__PURE__ */ import_react42.default.createElement("form", {
|
|
7577
7610
|
onSubmit: handleSubmit(function(e) {
|
|
7578
7611
|
if (props.handleNewPassword) {
|
|
7579
7612
|
return props.handleNewPassword(e);
|
|
@@ -7581,16 +7614,16 @@ var NewPasswordForm = function(_param) {
|
|
|
7581
7614
|
console.log("Form is submitted but handleSubmission prop is missing");
|
|
7582
7615
|
}
|
|
7583
7616
|
})
|
|
7584
|
-
}, !props.headless && /* @__PURE__ */
|
|
7617
|
+
}, !props.headless && /* @__PURE__ */ import_react42.default.createElement(CardHeader, null, /* @__PURE__ */ import_react42.default.createElement(CardTitle, null, "Create Password"), /* @__PURE__ */ import_react42.default.createElement(CardDescription, null, "Set a new password for your account")), /* @__PURE__ */ import_react42.default.createElement(CardContent, {
|
|
7585
7618
|
headless: props.headless,
|
|
7586
7619
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7587
|
-
}, /* @__PURE__ */
|
|
7620
|
+
}, /* @__PURE__ */ import_react42.default.createElement(import_react_hook_form4.Controller, {
|
|
7588
7621
|
control: control,
|
|
7589
7622
|
name: "password",
|
|
7590
7623
|
render: function(param) {
|
|
7591
7624
|
var field = param.field;
|
|
7592
7625
|
var _formState_errors_password;
|
|
7593
|
-
return /* @__PURE__ */
|
|
7626
|
+
return /* @__PURE__ */ import_react42.default.createElement(Input, _object_spread({
|
|
7594
7627
|
width: "full",
|
|
7595
7628
|
type: "password",
|
|
7596
7629
|
autoComplete: "new-password",
|
|
@@ -7599,13 +7632,13 @@ var NewPasswordForm = function(_param) {
|
|
|
7599
7632
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
7600
7633
|
}, field));
|
|
7601
7634
|
}
|
|
7602
|
-
}), /* @__PURE__ */
|
|
7635
|
+
}), /* @__PURE__ */ import_react42.default.createElement(import_react_hook_form4.Controller, {
|
|
7603
7636
|
control: control,
|
|
7604
7637
|
name: "confirm_password",
|
|
7605
7638
|
render: function(param) {
|
|
7606
7639
|
var field = param.field;
|
|
7607
7640
|
var _formState_errors_confirm_password;
|
|
7608
|
-
return /* @__PURE__ */
|
|
7641
|
+
return /* @__PURE__ */ import_react42.default.createElement(Input, _object_spread({
|
|
7609
7642
|
width: "full",
|
|
7610
7643
|
type: "password",
|
|
7611
7644
|
autoComplete: "new-password",
|
|
@@ -7614,13 +7647,13 @@ var NewPasswordForm = function(_param) {
|
|
|
7614
7647
|
helperText: (_formState_errors_confirm_password = formState.errors.confirm_password) === null || _formState_errors_confirm_password === void 0 ? void 0 : _formState_errors_confirm_password.message
|
|
7615
7648
|
}, field));
|
|
7616
7649
|
}
|
|
7617
|
-
})), /* @__PURE__ */
|
|
7650
|
+
})), /* @__PURE__ */ import_react42.default.createElement(CardFooter, null, /* @__PURE__ */ import_react42.default.createElement(Button, {
|
|
7618
7651
|
className: "hawa-w-full",
|
|
7619
7652
|
type: "submit"
|
|
7620
7653
|
}, texts === null || texts === void 0 ? void 0 : texts.updatePassword))));
|
|
7621
7654
|
};
|
|
7622
7655
|
// components/blocks/auth/ResetPassword.tsx
|
|
7623
|
-
var
|
|
7656
|
+
var import_react43 = __toESM(require("react"));
|
|
7624
7657
|
var import_react_hook_form5 = require("react-hook-form");
|
|
7625
7658
|
var import_zod4 = require("@hookform/resolvers/zod");
|
|
7626
7659
|
var z4 = __toESM(require("zod"));
|
|
@@ -7639,9 +7672,9 @@ var ResetPasswordForm = function(props) {
|
|
|
7639
7672
|
resolver: (0, import_zod4.zodResolver)(formSchema)
|
|
7640
7673
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState;
|
|
7641
7674
|
var _props_texts_dontHaveAccount, _props_texts_registerText;
|
|
7642
|
-
return /* @__PURE__ */
|
|
7675
|
+
return /* @__PURE__ */ import_react43.default.createElement(Card, {
|
|
7643
7676
|
dir: props.direction
|
|
7644
|
-
}, !props.sent ? /* @__PURE__ */
|
|
7677
|
+
}, !props.sent ? /* @__PURE__ */ import_react43.default.createElement(import_react43.default.Fragment, null, !props.headless && /* @__PURE__ */ import_react43.default.createElement(CardHeader, null, /* @__PURE__ */ import_react43.default.createElement(CardTitle, null, "Reset Password"), /* @__PURE__ */ import_react43.default.createElement(CardDescription, null, "Enter your email to reset your account password")), /* @__PURE__ */ import_react43.default.createElement("form", {
|
|
7645
7678
|
onSubmit: handleSubmit(function(e) {
|
|
7646
7679
|
if (props.handleResetPassword) {
|
|
7647
7680
|
return props.handleResetPassword(e);
|
|
@@ -7649,16 +7682,16 @@ var ResetPasswordForm = function(props) {
|
|
|
7649
7682
|
console.log("Form is submitted but handleResetPassword prop is missing");
|
|
7650
7683
|
}
|
|
7651
7684
|
})
|
|
7652
|
-
}, /* @__PURE__ */
|
|
7685
|
+
}, /* @__PURE__ */ import_react43.default.createElement(CardContent, {
|
|
7653
7686
|
headless: props.headless
|
|
7654
|
-
}, /* @__PURE__ */
|
|
7687
|
+
}, /* @__PURE__ */ import_react43.default.createElement(import_react_hook_form5.Controller, {
|
|
7655
7688
|
control: control,
|
|
7656
7689
|
name: "email",
|
|
7657
7690
|
render: function(param) /* @__PURE__ */ {
|
|
7658
7691
|
var field = param.field;
|
|
7659
7692
|
var _props_texts, _formState_errors_email, _props_texts1;
|
|
7660
7693
|
var _field_value;
|
|
7661
|
-
return
|
|
7694
|
+
return import_react43.default.createElement(Input, _object_spread_props(_object_spread({
|
|
7662
7695
|
width: "full",
|
|
7663
7696
|
type: "text",
|
|
7664
7697
|
label: (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.emailLabel,
|
|
@@ -7668,22 +7701,22 @@ var ResetPasswordForm = function(props) {
|
|
|
7668
7701
|
value: (_field_value = field.value) !== null && _field_value !== void 0 ? _field_value : ""
|
|
7669
7702
|
}));
|
|
7670
7703
|
}
|
|
7671
|
-
}), /* @__PURE__ */
|
|
7704
|
+
}), /* @__PURE__ */ import_react43.default.createElement("div", {
|
|
7672
7705
|
className: "hawa-mt-2 hawa-pb-2 hawa-text-start hawa-text-sm dark:hawa-text-gray-300"
|
|
7673
|
-
}, (_props_texts_dontHaveAccount = (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.dontHaveAccount) !== null && _props_texts_dontHaveAccount !== void 0 ? _props_texts_dontHaveAccount : "Don't have an account? ", /* @__PURE__ */
|
|
7706
|
+
}, (_props_texts_dontHaveAccount = (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.dontHaveAccount) !== null && _props_texts_dontHaveAccount !== void 0 ? _props_texts_dontHaveAccount : "Don't have an account? ", /* @__PURE__ */ import_react43.default.createElement("span", {
|
|
7674
7707
|
onClick: props.handleRouteToRegister,
|
|
7675
7708
|
className: "clickable-link"
|
|
7676
|
-
}, (_props_texts_registerText = (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.registerText) !== null && _props_texts_registerText !== void 0 ? _props_texts_registerText : "Register"))), /* @__PURE__ */
|
|
7709
|
+
}, (_props_texts_registerText = (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.registerText) !== null && _props_texts_registerText !== void 0 ? _props_texts_registerText : "Register"))), /* @__PURE__ */ import_react43.default.createElement(CardFooter, null, /* @__PURE__ */ import_react43.default.createElement(Button, {
|
|
7677
7710
|
type: "submit",
|
|
7678
7711
|
className: "hawa-w-full"
|
|
7679
|
-
}, (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resetPassword)))) : /* @__PURE__ */
|
|
7712
|
+
}, (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resetPassword)))) : /* @__PURE__ */ import_react43.default.createElement(CardContent, {
|
|
7680
7713
|
headless: true
|
|
7681
|
-
}, /* @__PURE__ */
|
|
7714
|
+
}, /* @__PURE__ */ import_react43.default.createElement("div", {
|
|
7682
7715
|
className: "hawa-text-center"
|
|
7683
7716
|
}, (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.emailSentText)));
|
|
7684
7717
|
};
|
|
7685
7718
|
// components/blocks/auth/CodeConfirmation.tsx
|
|
7686
|
-
var
|
|
7719
|
+
var import_react44 = __toESM(require("react"));
|
|
7687
7720
|
var import_react_hook_form6 = require("react-hook-form");
|
|
7688
7721
|
var import_zod5 = require("@hookform/resolvers/zod");
|
|
7689
7722
|
var z5 = __toESM(require("zod"));
|
|
@@ -7700,19 +7733,19 @@ var CodeConfirmation = function(props) {
|
|
|
7700
7733
|
resolver: (0, import_zod5.zodResolver)(formSchema)
|
|
7701
7734
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState, setValue = _ref.setValue;
|
|
7702
7735
|
var _props_texts_checkYourPhone, _props_texts_weSentCode, _props_texts_didntGetCode, _props_texts_resendCode, _props_texts_cancel, _props_texts_confirm;
|
|
7703
|
-
return /* @__PURE__ */
|
|
7736
|
+
return /* @__PURE__ */ import_react44.default.createElement(Card, null, /* @__PURE__ */ import_react44.default.createElement(CardContent, {
|
|
7704
7737
|
headless: true
|
|
7705
|
-
}, props.showError && /* @__PURE__ */
|
|
7738
|
+
}, props.showError && /* @__PURE__ */ import_react44.default.createElement(Alert, {
|
|
7706
7739
|
title: props.errorTitle,
|
|
7707
7740
|
text: props.errorText,
|
|
7708
7741
|
severity: "error"
|
|
7709
|
-
}), /* @__PURE__ */
|
|
7742
|
+
}), /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
7710
7743
|
className: "hawa-mb-4 dark:hawa-text-white"
|
|
7711
|
-
}, /* @__PURE__ */
|
|
7744
|
+
}, /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
7712
7745
|
className: "hawa-text-lg hawa-font-bold"
|
|
7713
|
-
}, (_props_texts_checkYourPhone = (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.checkYourPhone) !== null && _props_texts_checkYourPhone !== void 0 ? _props_texts_checkYourPhone : "Please check your phone"), /* @__PURE__ */
|
|
7746
|
+
}, (_props_texts_checkYourPhone = (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.checkYourPhone) !== null && _props_texts_checkYourPhone !== void 0 ? _props_texts_checkYourPhone : "Please check your phone"), /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
7714
7747
|
className: "hawa-text-muted-foreground"
|
|
7715
|
-
}, /* @__PURE__ */
|
|
7748
|
+
}, /* @__PURE__ */ import_react44.default.createElement("span", null, (_props_texts_weSentCode = (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.weSentCode) !== null && _props_texts_weSentCode !== void 0 ? _props_texts_weSentCode : "We've sent a code to "), /* @__PURE__ */ import_react44.default.createElement("span", null, props.phoneNumber)), " "), /* @__PURE__ */ import_react44.default.createElement("form", {
|
|
7716
7749
|
onSubmit: handleSubmit(function(e) {
|
|
7717
7750
|
if (props.handleConfirm) {
|
|
7718
7751
|
return props.handleConfirm(e);
|
|
@@ -7720,13 +7753,13 @@ var CodeConfirmation = function(props) {
|
|
|
7720
7753
|
console.log("Form is submitted but handleConfirm prop is missing");
|
|
7721
7754
|
}
|
|
7722
7755
|
})
|
|
7723
|
-
}, /* @__PURE__ */
|
|
7756
|
+
}, /* @__PURE__ */ import_react44.default.createElement(import_react_hook_form6.Controller, {
|
|
7724
7757
|
control: control,
|
|
7725
7758
|
name: "otp_code",
|
|
7726
7759
|
render: function(param) {
|
|
7727
7760
|
var field = param.field;
|
|
7728
7761
|
var _formState_errors_otp_code;
|
|
7729
|
-
return /* @__PURE__ */
|
|
7762
|
+
return /* @__PURE__ */ import_react44.default.createElement(PinInput, {
|
|
7730
7763
|
width: "full",
|
|
7731
7764
|
digits: 6,
|
|
7732
7765
|
getPins: function(e) {
|
|
@@ -7735,34 +7768,34 @@ var CodeConfirmation = function(props) {
|
|
|
7735
7768
|
helperText: (_formState_errors_otp_code = formState.errors.otp_code) === null || _formState_errors_otp_code === void 0 ? void 0 : _formState_errors_otp_code.message
|
|
7736
7769
|
});
|
|
7737
7770
|
}
|
|
7738
|
-
}), /* @__PURE__ */
|
|
7771
|
+
}), /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
7739
7772
|
className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground"
|
|
7740
|
-
}, /* @__PURE__ */
|
|
7773
|
+
}, /* @__PURE__ */ import_react44.default.createElement("span", null, (_props_texts_didntGetCode = (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.didntGetCode) !== null && _props_texts_didntGetCode !== void 0 ? _props_texts_didntGetCode : "Didn't get the code?"), " ", /* @__PURE__ */ import_react44.default.createElement("span", {
|
|
7741
7774
|
className: "clickable-link"
|
|
7742
|
-
}, (_props_texts_resendCode = (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resendCode) !== null && _props_texts_resendCode !== void 0 ? _props_texts_resendCode : "Click to resend")), /* @__PURE__ */
|
|
7775
|
+
}, (_props_texts_resendCode = (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resendCode) !== null && _props_texts_resendCode !== void 0 ? _props_texts_resendCode : "Click to resend")), /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
7743
7776
|
className: "hawa-mt-4 hawa-grid hawa-grid-cols-2 hawa-gap-2"
|
|
7744
|
-
}, /* @__PURE__ */
|
|
7777
|
+
}, /* @__PURE__ */ import_react44.default.createElement(Button, {
|
|
7745
7778
|
variant: "secondary"
|
|
7746
|
-
}, (_props_texts_cancel = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.cancel) !== null && _props_texts_cancel !== void 0 ? _props_texts_cancel : "Cancel"), /* @__PURE__ */
|
|
7779
|
+
}, (_props_texts_cancel = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.cancel) !== null && _props_texts_cancel !== void 0 ? _props_texts_cancel : "Cancel"), /* @__PURE__ */ import_react44.default.createElement(Button, null, (_props_texts_confirm = (_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.confirm) !== null && _props_texts_confirm !== void 0 ? _props_texts_confirm : "Confirm")))));
|
|
7747
7780
|
};
|
|
7748
7781
|
// components/blocks/feedback/UserReferralSource.tsx
|
|
7749
|
-
var
|
|
7782
|
+
var import_react45 = __toESM(require("react"));
|
|
7750
7783
|
var import_clsx12 = __toESM(require("clsx"));
|
|
7751
7784
|
var UserReferralSource = function(_param) {
|
|
7752
7785
|
var _param_position = _param.position, position = _param_position === void 0 ? "bottom-right" : _param_position, _param_options = _param.options, options = _param_options === void 0 ? [] : _param_options, props = _object_without_properties(_param, [
|
|
7753
7786
|
"position",
|
|
7754
7787
|
"options"
|
|
7755
7788
|
]);
|
|
7756
|
-
var _ref = _sliced_to_array((0,
|
|
7757
|
-
var _ref1 = _sliced_to_array((0,
|
|
7758
|
-
var _ref2 = _sliced_to_array((0,
|
|
7759
|
-
var _ref3 = _sliced_to_array((0,
|
|
7760
|
-
var popUpRef = (0,
|
|
7789
|
+
var _ref = _sliced_to_array((0, import_react45.useState)(false), 2), closed = _ref[0], setClosed = _ref[1];
|
|
7790
|
+
var _ref1 = _sliced_to_array((0, import_react45.useState)(false), 2), answered = _ref1[0], setAnswered = _ref1[1];
|
|
7791
|
+
var _ref2 = _sliced_to_array((0, import_react45.useState)(null), 2), clickedOption = _ref2[0], setClickedOption = _ref2[1];
|
|
7792
|
+
var _ref3 = _sliced_to_array((0, import_react45.useState)(5), 2), closingTimer = _ref3[0], setClosingTimer = _ref3[1];
|
|
7793
|
+
var popUpRef = (0, import_react45.useRef)(null);
|
|
7761
7794
|
var boxPosition = {
|
|
7762
7795
|
"bottom-right": "hawa-right-4",
|
|
7763
7796
|
"bottom-left": "hawa-left-4"
|
|
7764
7797
|
};
|
|
7765
|
-
(0,
|
|
7798
|
+
(0, import_react45.useEffect)(function() {
|
|
7766
7799
|
var timeoutHide = setTimeout(function() {
|
|
7767
7800
|
if (closingTimer >= 0) {
|
|
7768
7801
|
setClosingTimer(closingTimer - 1);
|
|
@@ -7782,10 +7815,10 @@ var UserReferralSource = function(_param) {
|
|
|
7782
7815
|
}
|
|
7783
7816
|
}, 200);
|
|
7784
7817
|
};
|
|
7785
|
-
return /* @__PURE__ */
|
|
7818
|
+
return /* @__PURE__ */ import_react45.default.createElement(Card, {
|
|
7786
7819
|
ref: popUpRef,
|
|
7787
7820
|
className: (0, import_clsx12.default)("hawa-fixed hawa-bottom-4 hawa-p-0 ", boxPosition[position])
|
|
7788
|
-
}, /* @__PURE__ */
|
|
7821
|
+
}, /* @__PURE__ */ import_react45.default.createElement("button", {
|
|
7789
7822
|
type: "button",
|
|
7790
7823
|
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 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",
|
|
7791
7824
|
"data-dismiss-target": "#toast-default",
|
|
@@ -7793,47 +7826,47 @@ var UserReferralSource = function(_param) {
|
|
|
7793
7826
|
onClick: function() {
|
|
7794
7827
|
return slowClose();
|
|
7795
7828
|
}
|
|
7796
|
-
}, /* @__PURE__ */
|
|
7829
|
+
}, /* @__PURE__ */ import_react45.default.createElement("svg", {
|
|
7797
7830
|
"aria-hidden": "true",
|
|
7798
7831
|
className: "hawa-h-5 hawa-w-5",
|
|
7799
7832
|
fill: "currentColor",
|
|
7800
7833
|
viewBox: "0 0 20 20"
|
|
7801
|
-
}, /* @__PURE__ */
|
|
7834
|
+
}, /* @__PURE__ */ import_react45.default.createElement("path", {
|
|
7802
7835
|
fillRule: "evenodd",
|
|
7803
7836
|
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",
|
|
7804
7837
|
clipRule: "evenodd"
|
|
7805
|
-
}))), /* @__PURE__ */
|
|
7838
|
+
}))), /* @__PURE__ */ import_react45.default.createElement(CardContent, {
|
|
7806
7839
|
headless: true
|
|
7807
|
-
}, /* @__PURE__ */
|
|
7840
|
+
}, /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
7808
7841
|
className: (0, import_clsx12.default)("hawa-flex hawa-flex-col hawa-gap-4", closed ? "hawa-opacity-0" : "hawa-opacity-100")
|
|
7809
|
-
}, /* @__PURE__ */
|
|
7842
|
+
}, /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
7810
7843
|
className: "hawa-mt-4 hawa-font-bold"
|
|
7811
|
-
}, props.question), /* @__PURE__ */
|
|
7844
|
+
}, props.question), /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
7812
7845
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded "
|
|
7813
|
-
}, /* @__PURE__ */
|
|
7846
|
+
}, /* @__PURE__ */ import_react45.default.createElement(Radio, {
|
|
7814
7847
|
orientation: "vertical",
|
|
7815
7848
|
options: options
|
|
7816
|
-
})), /* @__PURE__ */
|
|
7849
|
+
})), /* @__PURE__ */ import_react45.default.createElement("div", null, /* @__PURE__ */ import_react45.default.createElement(Textarea, null))), /* @__PURE__ */ import_react45.default.createElement(Button, {
|
|
7817
7850
|
className: "hawa-mt-4 hawa-w-full"
|
|
7818
7851
|
}, "Submit")));
|
|
7819
7852
|
};
|
|
7820
7853
|
// components/blocks/feedback/FeedbackRating.tsx
|
|
7821
|
-
var
|
|
7854
|
+
var import_react46 = __toESM(require("react"));
|
|
7822
7855
|
var import_clsx13 = __toESM(require("clsx"));
|
|
7823
7856
|
var FeedbackRating = function(_param) {
|
|
7824
7857
|
var _param_position = _param.position, position = _param_position === void 0 ? "bottom-right" : _param_position, props = _object_without_properties(_param, [
|
|
7825
7858
|
"position"
|
|
7826
7859
|
]);
|
|
7827
|
-
var _ref = _sliced_to_array((0,
|
|
7828
|
-
var _ref1 = _sliced_to_array((0,
|
|
7829
|
-
var _ref2 = _sliced_to_array((0,
|
|
7830
|
-
var _ref3 = _sliced_to_array((0,
|
|
7831
|
-
var popUpRef = (0,
|
|
7860
|
+
var _ref = _sliced_to_array((0, import_react46.useState)(false), 2), closed = _ref[0], setClosed = _ref[1];
|
|
7861
|
+
var _ref1 = _sliced_to_array((0, import_react46.useState)(false), 2), answered = _ref1[0], setAnswered = _ref1[1];
|
|
7862
|
+
var _ref2 = _sliced_to_array((0, import_react46.useState)(null), 2), clickedOption = _ref2[0], setClickedOption = _ref2[1];
|
|
7863
|
+
var _ref3 = _sliced_to_array((0, import_react46.useState)(5), 2), closingTimer = _ref3[0], setClosingTimer = _ref3[1];
|
|
7864
|
+
var popUpRef = (0, import_react46.useRef)(null);
|
|
7832
7865
|
var boxPosition = {
|
|
7833
7866
|
"bottom-right": "hawa-right-4",
|
|
7834
7867
|
"bottom-left": "hawa-left-4"
|
|
7835
7868
|
};
|
|
7836
|
-
(0,
|
|
7869
|
+
(0, import_react46.useEffect)(function() {
|
|
7837
7870
|
var timeoutHide = setTimeout(function() {
|
|
7838
7871
|
if (closingTimer >= 0) {
|
|
7839
7872
|
setClosingTimer(closingTimer - 1);
|
|
@@ -7853,14 +7886,14 @@ var FeedbackRating = function(_param) {
|
|
|
7853
7886
|
}
|
|
7854
7887
|
}, 200);
|
|
7855
7888
|
};
|
|
7856
|
-
return /* @__PURE__ */
|
|
7889
|
+
return /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
7857
7890
|
ref: popUpRef,
|
|
7858
7891
|
className: (0, import_clsx13.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])
|
|
7859
|
-
}, /* @__PURE__ */
|
|
7892
|
+
}, /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
7860
7893
|
className: (0, import_clsx13.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")
|
|
7861
|
-
}, /* @__PURE__ */
|
|
7894
|
+
}, /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
7862
7895
|
className: "hawa-absolute hawa-left-2 hawa-top-2 hawa-p-1.5 hawa-text-sm"
|
|
7863
|
-
}, props.title), /* @__PURE__ */
|
|
7896
|
+
}, props.title), /* @__PURE__ */ import_react46.default.createElement("button", {
|
|
7864
7897
|
type: "button",
|
|
7865
7898
|
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",
|
|
7866
7899
|
"data-dismiss-target": "#toast-default",
|
|
@@ -7868,21 +7901,21 @@ var FeedbackRating = function(_param) {
|
|
|
7868
7901
|
onClick: function() {
|
|
7869
7902
|
return slowClose();
|
|
7870
7903
|
}
|
|
7871
|
-
}, /* @__PURE__ */
|
|
7904
|
+
}, /* @__PURE__ */ import_react46.default.createElement("svg", {
|
|
7872
7905
|
"aria-hidden": "true",
|
|
7873
7906
|
className: "hawa-h-5 hawa-w-5",
|
|
7874
7907
|
fill: "currentColor",
|
|
7875
7908
|
viewBox: "0 0 20 20"
|
|
7876
|
-
}, /* @__PURE__ */
|
|
7909
|
+
}, /* @__PURE__ */ import_react46.default.createElement("path", {
|
|
7877
7910
|
fillRule: "evenodd",
|
|
7878
7911
|
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",
|
|
7879
7912
|
clipRule: "evenodd"
|
|
7880
|
-
}))), /* @__PURE__ */
|
|
7913
|
+
}))), /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
7881
7914
|
className: "hawa-mt-8"
|
|
7882
|
-
}, props.question), /* @__PURE__ */
|
|
7915
|
+
}, props.question), /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
7883
7916
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded"
|
|
7884
7917
|
}, props.options && props.options.map(function(op, i) {
|
|
7885
|
-
return /* @__PURE__ */
|
|
7918
|
+
return /* @__PURE__ */ import_react46.default.createElement("span", {
|
|
7886
7919
|
key: i,
|
|
7887
7920
|
onClick: function() {
|
|
7888
7921
|
if (props.onOptionClicked) {
|
|
@@ -7901,15 +7934,15 @@ var FeedbackRating = function(_param) {
|
|
|
7901
7934
|
},
|
|
7902
7935
|
className: (0, import_clsx13.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")
|
|
7903
7936
|
}, op);
|
|
7904
|
-
})), props.texts && /* @__PURE__ */
|
|
7937
|
+
})), props.texts && /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
7905
7938
|
className: " hawa-flex hawa-flex-row hawa-justify-between hawa-text-xs"
|
|
7906
|
-
}, /* @__PURE__ */
|
|
7939
|
+
}, /* @__PURE__ */ import_react46.default.createElement("span", null, props.texts.least), /* @__PURE__ */ import_react46.default.createElement("span", null, props.texts.most)), answered && /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
7907
7940
|
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"
|
|
7908
|
-
}, /* @__PURE__ */
|
|
7941
|
+
}, /* @__PURE__ */ import_react46.default.createElement("span", {
|
|
7909
7942
|
className: "hawa-font-bold hawa-text-white"
|
|
7910
|
-
}, "Thank you for your answer. This box will disappear in", " " + closingTimer, " seconds"), /* @__PURE__ */
|
|
7943
|
+
}, "Thank you for your answer. This box will disappear in", " " + closingTimer, " seconds"), /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
7911
7944
|
className: "hawa-flex hawa-flex-row hawa-gap-2"
|
|
7912
|
-
}, /* @__PURE__ */
|
|
7945
|
+
}, /* @__PURE__ */ import_react46.default.createElement(Button, {
|
|
7913
7946
|
variant: "secondary",
|
|
7914
7947
|
onClick: function() {
|
|
7915
7948
|
return slowClose();
|
|
@@ -7917,27 +7950,27 @@ var FeedbackRating = function(_param) {
|
|
|
7917
7950
|
}, "Close")))));
|
|
7918
7951
|
};
|
|
7919
7952
|
// components/blocks/feedback/FeedbackEmoji.tsx
|
|
7920
|
-
var
|
|
7953
|
+
var import_react47 = __toESM(require("react"));
|
|
7921
7954
|
var FeedbackEmoji = function(props) {
|
|
7922
|
-
var _ref = _sliced_to_array((0,
|
|
7923
|
-
var _ref1 = _sliced_to_array((0,
|
|
7924
|
-
var _ref2 = _sliced_to_array((0,
|
|
7925
|
-
var _ref3 = _sliced_to_array((0,
|
|
7955
|
+
var _ref = _sliced_to_array((0, import_react47.useState)(null), 2), selectedEmoji = _ref[0], setSelectedEmoji = _ref[1];
|
|
7956
|
+
var _ref1 = _sliced_to_array((0, import_react47.useState)(false), 2), loadingSubmit = _ref1[0], setLoadingSubmit = _ref1[1];
|
|
7957
|
+
var _ref2 = _sliced_to_array((0, import_react47.useState)(""), 2), feedbackText = _ref2[0], setFeedbackText = _ref2[1];
|
|
7958
|
+
var _ref3 = _sliced_to_array((0, import_react47.useState)(false), 2), helperText = _ref3[0], setHelperText = _ref3[1];
|
|
7926
7959
|
var emojis = [
|
|
7927
7960
|
{
|
|
7928
|
-
icon: /* @__PURE__ */
|
|
7961
|
+
icon: /* @__PURE__ */ import_react47.default.createElement(VeryGoodEmoji, null),
|
|
7929
7962
|
value: "very-good"
|
|
7930
7963
|
},
|
|
7931
7964
|
{
|
|
7932
|
-
icon: /* @__PURE__ */
|
|
7965
|
+
icon: /* @__PURE__ */ import_react47.default.createElement(GoodEmoji, null),
|
|
7933
7966
|
value: "good"
|
|
7934
7967
|
},
|
|
7935
7968
|
{
|
|
7936
|
-
icon: /* @__PURE__ */
|
|
7969
|
+
icon: /* @__PURE__ */ import_react47.default.createElement(BadEmoji, null),
|
|
7937
7970
|
value: "bad"
|
|
7938
7971
|
},
|
|
7939
7972
|
{
|
|
7940
|
-
icon: /* @__PURE__ */
|
|
7973
|
+
icon: /* @__PURE__ */ import_react47.default.createElement(VeryBadEmoji, null),
|
|
7941
7974
|
value: "very-bad"
|
|
7942
7975
|
}
|
|
7943
7976
|
];
|
|
@@ -8008,14 +8041,14 @@ var FeedbackEmoji = function(props) {
|
|
|
8008
8041
|
return _ref.apply(this, arguments);
|
|
8009
8042
|
};
|
|
8010
8043
|
}();
|
|
8011
|
-
return /* @__PURE__ */
|
|
8044
|
+
return /* @__PURE__ */ import_react47.default.createElement("div", {
|
|
8012
8045
|
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] ")
|
|
8013
|
-
}, /* @__PURE__ */
|
|
8046
|
+
}, /* @__PURE__ */ import_react47.default.createElement("div", {
|
|
8014
8047
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 "
|
|
8015
|
-
}, /* @__PURE__ */
|
|
8048
|
+
}, /* @__PURE__ */ import_react47.default.createElement("div", {
|
|
8016
8049
|
className: "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-0.5 "
|
|
8017
8050
|
}, emojis.map(function(emoji, i) {
|
|
8018
|
-
return /* @__PURE__ */
|
|
8051
|
+
return /* @__PURE__ */ import_react47.default.createElement(Button, {
|
|
8019
8052
|
key: i,
|
|
8020
8053
|
onClick: function() {
|
|
8021
8054
|
if (selectedEmoji === emoji.value) {
|
|
@@ -8028,29 +8061,29 @@ var FeedbackEmoji = function(props) {
|
|
|
8028
8061
|
size: "smallIcon",
|
|
8029
8062
|
className: cn(selectedEmoji === emoji.value ? "hawa-bg-primary/10 hover:hawa-bg-primary/10 " : "hawa-text-[#666666]")
|
|
8030
8063
|
}, emoji.icon);
|
|
8031
|
-
}))), /* @__PURE__ */
|
|
8064
|
+
}))), /* @__PURE__ */ import_react47.default.createElement("div", {
|
|
8032
8065
|
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 ")
|
|
8033
|
-
}, props.showSuccess ? /* @__PURE__ */
|
|
8066
|
+
}, props.showSuccess ? /* @__PURE__ */ import_react47.default.createElement("div", {
|
|
8034
8067
|
className: "hawa-flex hawa-h-full hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2 hawa-pt-4"
|
|
8035
|
-
}, /* @__PURE__ */
|
|
8068
|
+
}, /* @__PURE__ */ import_react47.default.createElement("div", {
|
|
8036
8069
|
className: "hawa-rounded hawa-bg-primary hawa-p-2 hawa-text-primary-foreground"
|
|
8037
|
-
}, /* @__PURE__ */
|
|
8070
|
+
}, /* @__PURE__ */ import_react47.default.createElement("svg", {
|
|
8038
8071
|
stroke: "currentColor",
|
|
8039
8072
|
fill: "currentColor",
|
|
8040
8073
|
strokeWidth: "0",
|
|
8041
8074
|
viewBox: "0 0 512 512",
|
|
8042
8075
|
height: "0.5em",
|
|
8043
8076
|
width: "0.5em"
|
|
8044
|
-
}, /* @__PURE__ */
|
|
8077
|
+
}, /* @__PURE__ */ import_react47.default.createElement("path", {
|
|
8045
8078
|
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"
|
|
8046
|
-
}))), /* @__PURE__ */
|
|
8079
|
+
}))), /* @__PURE__ */ import_react47.default.createElement("div", {
|
|
8047
8080
|
className: "hawa-text-sm hawa-flex hawa-flex-col hawa-text-center"
|
|
8048
|
-
}, /* @__PURE__ */
|
|
8081
|
+
}, /* @__PURE__ */ import_react47.default.createElement("span", null, "Your feedback has been received!"), /* @__PURE__ */ import_react47.default.createElement("span", null, "Thank you for your help"))) : /* @__PURE__ */ import_react47.default.createElement("div", {
|
|
8049
8082
|
className: "hawa-flex hawa-flex-col hawa-gap-2"
|
|
8050
|
-
}, /* @__PURE__ */
|
|
8083
|
+
}, /* @__PURE__ */ import_react47.default.createElement(Popover, {
|
|
8051
8084
|
className: "hawa-select-none hawa-p-1 hawa-text-xs ",
|
|
8052
8085
|
open: helperText,
|
|
8053
|
-
trigger: /* @__PURE__ */
|
|
8086
|
+
trigger: /* @__PURE__ */ import_react47.default.createElement(Textarea, {
|
|
8054
8087
|
className: cn("hawa-mb-2 hawa-h-full hawa-resize-none"),
|
|
8055
8088
|
placeholder: "Your feedback",
|
|
8056
8089
|
onChange: function(e) {
|
|
@@ -8061,9 +8094,9 @@ var FeedbackEmoji = function(props) {
|
|
|
8061
8094
|
console.log("changing to", e.target.value);
|
|
8062
8095
|
}
|
|
8063
8096
|
})
|
|
8064
|
-
}, /* @__PURE__ */
|
|
8097
|
+
}, /* @__PURE__ */ import_react47.default.createElement("span", {
|
|
8065
8098
|
className: "hawa-m-2"
|
|
8066
|
-
}, "Please enter your feedback"), " "), /* @__PURE__ */
|
|
8099
|
+
}, "Please enter your feedback"), " "), /* @__PURE__ */ import_react47.default.createElement(Button, {
|
|
8067
8100
|
isLoading: loadingSubmit,
|
|
8068
8101
|
onClick: onFeedbackSubmit,
|
|
8069
8102
|
className: "hawa-w-full",
|
|
@@ -8071,20 +8104,20 @@ var FeedbackEmoji = function(props) {
|
|
|
8071
8104
|
}, "Submit"))));
|
|
8072
8105
|
};
|
|
8073
8106
|
var VeryGoodEmoji = function() {
|
|
8074
|
-
return /* @__PURE__ */
|
|
8107
|
+
return /* @__PURE__ */ import_react47.default.createElement("svg", {
|
|
8075
8108
|
fill: "none",
|
|
8076
8109
|
height: "16",
|
|
8077
8110
|
viewBox: "0 0 16 16",
|
|
8078
8111
|
width: "16",
|
|
8079
8112
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8080
|
-
}, /* @__PURE__ */
|
|
8113
|
+
}, /* @__PURE__ */ import_react47.default.createElement("g", {
|
|
8081
8114
|
clipPath: "url(#clip0_53_166)"
|
|
8082
|
-
}, /* @__PURE__ */
|
|
8115
|
+
}, /* @__PURE__ */ import_react47.default.createElement("path", {
|
|
8083
8116
|
clipRule: "evenodd",
|
|
8084
8117
|
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",
|
|
8085
8118
|
fill: "currentColor",
|
|
8086
8119
|
fillRule: "evenodd"
|
|
8087
|
-
}), /* @__PURE__ */
|
|
8120
|
+
}), /* @__PURE__ */ import_react47.default.createElement("path", {
|
|
8088
8121
|
clipRule: "evenodd",
|
|
8089
8122
|
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",
|
|
8090
8123
|
fill: "#FF990A",
|
|
@@ -8092,15 +8125,15 @@ var VeryGoodEmoji = function() {
|
|
|
8092
8125
|
})));
|
|
8093
8126
|
};
|
|
8094
8127
|
var GoodEmoji = function() {
|
|
8095
|
-
return /* @__PURE__ */
|
|
8128
|
+
return /* @__PURE__ */ import_react47.default.createElement("svg", {
|
|
8096
8129
|
fill: "none",
|
|
8097
8130
|
height: "16",
|
|
8098
8131
|
viewBox: "0 0 16 16",
|
|
8099
8132
|
width: "16",
|
|
8100
8133
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8101
|
-
}, /* @__PURE__ */
|
|
8134
|
+
}, /* @__PURE__ */ import_react47.default.createElement("g", {
|
|
8102
8135
|
clipPath: "url(#clip0_53_167)"
|
|
8103
|
-
}, /* @__PURE__ */
|
|
8136
|
+
}, /* @__PURE__ */ import_react47.default.createElement("path", {
|
|
8104
8137
|
clipRule: "evenodd",
|
|
8105
8138
|
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",
|
|
8106
8139
|
fill: "currentColor",
|
|
@@ -8108,15 +8141,15 @@ var GoodEmoji = function() {
|
|
|
8108
8141
|
})));
|
|
8109
8142
|
};
|
|
8110
8143
|
var BadEmoji = function() {
|
|
8111
|
-
return /* @__PURE__ */
|
|
8144
|
+
return /* @__PURE__ */ import_react47.default.createElement("svg", {
|
|
8112
8145
|
fill: "none",
|
|
8113
8146
|
height: "16",
|
|
8114
8147
|
viewBox: "0 0 16 16",
|
|
8115
8148
|
width: "16",
|
|
8116
8149
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8117
|
-
}, /* @__PURE__ */
|
|
8150
|
+
}, /* @__PURE__ */ import_react47.default.createElement("g", {
|
|
8118
8151
|
clipPath: "url(#clip0_53_152)"
|
|
8119
|
-
}, /* @__PURE__ */
|
|
8152
|
+
}, /* @__PURE__ */ import_react47.default.createElement("path", {
|
|
8120
8153
|
clipRule: "evenodd",
|
|
8121
8154
|
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",
|
|
8122
8155
|
fill: "currentColor",
|
|
@@ -8124,18 +8157,18 @@ var BadEmoji = function() {
|
|
|
8124
8157
|
})));
|
|
8125
8158
|
};
|
|
8126
8159
|
var VeryBadEmoji = function() {
|
|
8127
|
-
return /* @__PURE__ */
|
|
8160
|
+
return /* @__PURE__ */ import_react47.default.createElement("svg", {
|
|
8128
8161
|
fill: "none",
|
|
8129
8162
|
height: "16",
|
|
8130
8163
|
viewBox: "0 0 16 16",
|
|
8131
8164
|
width: "16",
|
|
8132
8165
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8133
|
-
}, /* @__PURE__ */
|
|
8166
|
+
}, /* @__PURE__ */ import_react47.default.createElement("g", {
|
|
8134
8167
|
clipPath: "url(#clip0_53_151)"
|
|
8135
|
-
}, /* @__PURE__ */
|
|
8168
|
+
}, /* @__PURE__ */ import_react47.default.createElement("path", {
|
|
8136
8169
|
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",
|
|
8137
8170
|
fill: "#0070F3"
|
|
8138
|
-
}), /* @__PURE__ */
|
|
8171
|
+
}), /* @__PURE__ */ import_react47.default.createElement("path", {
|
|
8139
8172
|
clipRule: "evenodd",
|
|
8140
8173
|
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",
|
|
8141
8174
|
fill: "currentColor",
|
|
@@ -8143,7 +8176,7 @@ var VeryBadEmoji = function() {
|
|
|
8143
8176
|
})));
|
|
8144
8177
|
};
|
|
8145
8178
|
// components/blocks/feedback/FeedbackForm.tsx
|
|
8146
|
-
var
|
|
8179
|
+
var import_react48 = __toESM(require("react"));
|
|
8147
8180
|
var import_react_hook_form7 = require("react-hook-form");
|
|
8148
8181
|
var import_zod6 = require("@hookform/resolvers/zod");
|
|
8149
8182
|
var z6 = __toESM(require("zod"));
|
|
@@ -8164,9 +8197,9 @@ var FeedbackForm = function(props) {
|
|
|
8164
8197
|
var _ref = (0, import_react_hook_form7.useForm)({
|
|
8165
8198
|
resolver: (0, import_zod6.zodResolver)(formSchema)
|
|
8166
8199
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState;
|
|
8167
|
-
return /* @__PURE__ */
|
|
8200
|
+
return /* @__PURE__ */ import_react48.default.createElement(Card, null, /* @__PURE__ */ import_react48.default.createElement(CardContent, {
|
|
8168
8201
|
headless: true
|
|
8169
|
-
}, /* @__PURE__ */
|
|
8202
|
+
}, /* @__PURE__ */ import_react48.default.createElement("form", {
|
|
8170
8203
|
onSubmit: handleSubmit(function(e) {
|
|
8171
8204
|
if (props.onSubmit) {
|
|
8172
8205
|
return props.onSubmit(e);
|
|
@@ -8175,13 +8208,13 @@ var FeedbackForm = function(props) {
|
|
|
8175
8208
|
}
|
|
8176
8209
|
}),
|
|
8177
8210
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
8178
|
-
}, /* @__PURE__ */
|
|
8211
|
+
}, /* @__PURE__ */ import_react48.default.createElement(Label2, null, (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.requestType), /* @__PURE__ */ import_react48.default.createElement(import_react_hook_form7.Controller, {
|
|
8179
8212
|
name: "requestType",
|
|
8180
8213
|
control: control,
|
|
8181
8214
|
render: function(param) {
|
|
8182
8215
|
var field = param.field;
|
|
8183
8216
|
var _formState_errors_requestType_message, _formState_errors_requestType;
|
|
8184
|
-
return /* @__PURE__ */
|
|
8217
|
+
return /* @__PURE__ */ import_react48.default.createElement(Select, _object_spread_props(_object_spread({}, field), {
|
|
8185
8218
|
onChange: function(option) {
|
|
8186
8219
|
return field.onChange(option.value);
|
|
8187
8220
|
},
|
|
@@ -8189,70 +8222,70 @@ var FeedbackForm = function(props) {
|
|
|
8189
8222
|
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()
|
|
8190
8223
|
}));
|
|
8191
8224
|
}
|
|
8192
|
-
}), /* @__PURE__ */
|
|
8225
|
+
}), /* @__PURE__ */ import_react48.default.createElement(Label2, null, props.texts.description), /* @__PURE__ */ import_react48.default.createElement(import_react_hook_form7.Controller, {
|
|
8193
8226
|
name: "description",
|
|
8194
8227
|
control: control,
|
|
8195
8228
|
render: function(param) {
|
|
8196
8229
|
var field = param.field;
|
|
8197
8230
|
var _formState_errors_description_message, _formState_errors_description;
|
|
8198
|
-
return /* @__PURE__ */
|
|
8231
|
+
return /* @__PURE__ */ import_react48.default.createElement(Textarea, _object_spread_props(_object_spread({}, field), {
|
|
8199
8232
|
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())
|
|
8200
8233
|
}));
|
|
8201
8234
|
}
|
|
8202
|
-
}), /* @__PURE__ */
|
|
8235
|
+
}), /* @__PURE__ */ import_react48.default.createElement(Button, {
|
|
8203
8236
|
type: "submit"
|
|
8204
8237
|
}, (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.submit))));
|
|
8205
8238
|
};
|
|
8206
8239
|
// components/blocks/misc/LegalTexts.tsx
|
|
8207
|
-
var
|
|
8240
|
+
var import_react49 = __toESM(require("react"));
|
|
8208
8241
|
var LegalTexts = function(_param) {
|
|
8209
8242
|
var tabs = _param.tabs, props = _object_without_properties(_param, [
|
|
8210
8243
|
"tabs"
|
|
8211
8244
|
]);
|
|
8212
|
-
return /* @__PURE__ */
|
|
8245
|
+
return /* @__PURE__ */ import_react49.default.createElement(Tabs, {
|
|
8213
8246
|
value: props.activeTab,
|
|
8214
8247
|
onValueChange: props.handleTabChange,
|
|
8215
8248
|
defaultValue: props.defaultTab || tabs[0].value,
|
|
8216
8249
|
dir: props.direction
|
|
8217
|
-
}, /* @__PURE__ */
|
|
8250
|
+
}, /* @__PURE__ */ import_react49.default.createElement(TabsList, {
|
|
8218
8251
|
className: "hawa-w-full"
|
|
8219
8252
|
}, tabs.map(function(tab, index) {
|
|
8220
|
-
return /* @__PURE__ */
|
|
8253
|
+
return /* @__PURE__ */ import_react49.default.createElement(TabsTrigger, {
|
|
8221
8254
|
key: index,
|
|
8222
8255
|
value: tab.value
|
|
8223
8256
|
}, tab.title);
|
|
8224
8257
|
})), tabs.map(function(tab, index) {
|
|
8225
|
-
return /* @__PURE__ */
|
|
8258
|
+
return /* @__PURE__ */ import_react49.default.createElement(TabsContent, {
|
|
8226
8259
|
key: index,
|
|
8227
8260
|
value: tab.value
|
|
8228
|
-
}, /* @__PURE__ */
|
|
8261
|
+
}, /* @__PURE__ */ import_react49.default.createElement(ScrollArea, {
|
|
8229
8262
|
className: cn("hawa-p-4 hawa-rounded hawa-bg-muted hawa-border", props.scrollAreaClassName)
|
|
8230
8263
|
}, tab.content));
|
|
8231
8264
|
}));
|
|
8232
8265
|
};
|
|
8233
8266
|
// components/blocks/misc/EmptyState.tsx
|
|
8234
|
-
var
|
|
8267
|
+
var import_react50 = __toESM(require("react"));
|
|
8235
8268
|
var EmptyState = function(param) {
|
|
8236
8269
|
var texts = param.texts, onActionClick = param.onActionClick;
|
|
8237
8270
|
var _texts_youreCaughtUp, _texts_actionText;
|
|
8238
|
-
return /* @__PURE__ */
|
|
8271
|
+
return /* @__PURE__ */ import_react50.default.createElement(Card, null, /* @__PURE__ */ import_react50.default.createElement(CardContent, {
|
|
8239
8272
|
headless: true
|
|
8240
|
-
}, /* @__PURE__ */
|
|
8273
|
+
}, /* @__PURE__ */ import_react50.default.createElement("div", {
|
|
8241
8274
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center "
|
|
8242
|
-
}, /* @__PURE__ */
|
|
8275
|
+
}, /* @__PURE__ */ import_react50.default.createElement("div", {
|
|
8243
8276
|
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"
|
|
8244
|
-
}, /* @__PURE__ */
|
|
8277
|
+
}, /* @__PURE__ */ import_react50.default.createElement("svg", {
|
|
8245
8278
|
stroke: "currentColor",
|
|
8246
8279
|
fill: "currentColor",
|
|
8247
8280
|
strokeWidth: "0",
|
|
8248
8281
|
viewBox: "0 0 512 512",
|
|
8249
8282
|
height: "0.35em",
|
|
8250
8283
|
width: "0.35em"
|
|
8251
|
-
}, /* @__PURE__ */
|
|
8284
|
+
}, /* @__PURE__ */ import_react50.default.createElement("path", {
|
|
8252
8285
|
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"
|
|
8253
|
-
}))), /* @__PURE__ */
|
|
8286
|
+
}))), /* @__PURE__ */ import_react50.default.createElement("div", {
|
|
8254
8287
|
className: "hawa-m-2 hawa-text-xl hawa-font-bold"
|
|
8255
|
-
}, (_texts_youreCaughtUp = texts === null || texts === void 0 ? void 0 : texts.youreCaughtUp) !== null && _texts_youreCaughtUp !== void 0 ? _texts_youreCaughtUp : "You're all caught up"))), /* @__PURE__ */
|
|
8288
|
+
}, (_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_react50.default.createElement(CardFooter, null, /* @__PURE__ */ import_react50.default.createElement(Button, {
|
|
8256
8289
|
className: "hawa-w-full",
|
|
8257
8290
|
onClick: function() {
|
|
8258
8291
|
return onActionClick();
|
|
@@ -8260,36 +8293,36 @@ var EmptyState = function(param) {
|
|
|
8260
8293
|
}, (_texts_actionText = texts === null || texts === void 0 ? void 0 : texts.actionText) !== null && _texts_actionText !== void 0 ? _texts_actionText : "Go Home")));
|
|
8261
8294
|
};
|
|
8262
8295
|
// components/blocks/misc/Testimonial.tsx
|
|
8263
|
-
var
|
|
8296
|
+
var import_react51 = __toESM(require("react"));
|
|
8264
8297
|
var Testimonial = function(props) {
|
|
8265
|
-
return /* @__PURE__ */
|
|
8298
|
+
return /* @__PURE__ */ import_react51.default.createElement(Card, null, /* @__PURE__ */ import_react51.default.createElement(CardContent, {
|
|
8266
8299
|
headless: true
|
|
8267
|
-
}, /* @__PURE__ */
|
|
8300
|
+
}, /* @__PURE__ */ import_react51.default.createElement("div", null, /* @__PURE__ */ import_react51.default.createElement("p", {
|
|
8268
8301
|
className: "mb-4 max-w-sm"
|
|
8269
|
-
}, "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__ */
|
|
8302
|
+
}, "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_react51.default.createElement("div", {
|
|
8270
8303
|
className: "flex flex-row gap-4"
|
|
8271
|
-
}, /* @__PURE__ */
|
|
8304
|
+
}, /* @__PURE__ */ import_react51.default.createElement("svg", {
|
|
8272
8305
|
width: "48",
|
|
8273
8306
|
height: "48",
|
|
8274
8307
|
viewBox: "0 0 48 48",
|
|
8275
8308
|
fill: "none"
|
|
8276
|
-
}, /* @__PURE__ */
|
|
8309
|
+
}, /* @__PURE__ */ import_react51.default.createElement("rect", {
|
|
8277
8310
|
width: "48",
|
|
8278
8311
|
height: "48",
|
|
8279
8312
|
rx: "24",
|
|
8280
8313
|
fill: "#45BE8B"
|
|
8281
|
-
}), /* @__PURE__ */
|
|
8314
|
+
}), /* @__PURE__ */ import_react51.default.createElement("path", {
|
|
8282
8315
|
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",
|
|
8283
8316
|
fill: "#FFFFFF"
|
|
8284
|
-
}), /* @__PURE__ */
|
|
8317
|
+
}), /* @__PURE__ */ import_react51.default.createElement("path", {
|
|
8285
8318
|
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",
|
|
8286
8319
|
fill: "#FFFFFF"
|
|
8287
|
-
})), /* @__PURE__ */
|
|
8320
|
+
})), /* @__PURE__ */ import_react51.default.createElement("span", {
|
|
8288
8321
|
className: "border border-l "
|
|
8289
|
-
}), " ", /* @__PURE__ */
|
|
8322
|
+
}), " ", /* @__PURE__ */ import_react51.default.createElement("div", null, /* @__PURE__ */ import_react51.default.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ import_react51.default.createElement("div", null, " Chief Information Security Officer")))));
|
|
8290
8323
|
};
|
|
8291
8324
|
// components/blocks/misc/LeadGenerator.tsx
|
|
8292
|
-
var
|
|
8325
|
+
var import_react52 = __toESM(require("react"));
|
|
8293
8326
|
var import_react_hook_form8 = require("react-hook-form");
|
|
8294
8327
|
var LeadGenerator = function(param) {
|
|
8295
8328
|
var texts = param.texts, submitHandler = param.submitHandler;
|
|
@@ -8302,10 +8335,10 @@ var LeadGenerator = function(param) {
|
|
|
8302
8335
|
}
|
|
8303
8336
|
};
|
|
8304
8337
|
var _texts_submit;
|
|
8305
|
-
return /* @__PURE__ */
|
|
8338
|
+
return /* @__PURE__ */ import_react52.default.createElement(Card, null, /* @__PURE__ */ import_react52.default.createElement(CardHeader, null, /* @__PURE__ */ import_react52.default.createElement(CardTitle, null, texts === null || texts === void 0 ? void 0 : texts.title), /* @__PURE__ */ import_react52.default.createElement(CardDescription, null, texts === null || texts === void 0 ? void 0 : texts.subtitle)), /* @__PURE__ */ import_react52.default.createElement(CardContent, null, /* @__PURE__ */ import_react52.default.createElement("form", {
|
|
8306
8339
|
className: "hawa-flex hawa-flex-row hawa-gap-2",
|
|
8307
8340
|
onSubmit: handleSubmit(onSubmit)
|
|
8308
|
-
}, /* @__PURE__ */
|
|
8341
|
+
}, /* @__PURE__ */ import_react52.default.createElement(import_react_hook_form8.Controller, {
|
|
8309
8342
|
name: "email",
|
|
8310
8343
|
control: control,
|
|
8311
8344
|
rules: {
|
|
@@ -8318,32 +8351,32 @@ var LeadGenerator = function(param) {
|
|
|
8318
8351
|
defaultValue: "",
|
|
8319
8352
|
render: function(param) {
|
|
8320
8353
|
var field = param.field;
|
|
8321
|
-
return /* @__PURE__ */
|
|
8354
|
+
return /* @__PURE__ */ import_react52.default.createElement(Input, _object_spread_props(_object_spread({}, field), {
|
|
8322
8355
|
type: "email",
|
|
8323
8356
|
placeholder: "example@sikka.io"
|
|
8324
8357
|
}));
|
|
8325
8358
|
}
|
|
8326
|
-
}), /* @__PURE__ */
|
|
8359
|
+
}), /* @__PURE__ */ import_react52.default.createElement(Button, {
|
|
8327
8360
|
type: "submit",
|
|
8328
8361
|
disabled: !formState.isValid
|
|
8329
8362
|
}, (_texts_submit = texts === null || texts === void 0 ? void 0 : texts.submit) !== null && _texts_submit !== void 0 ? _texts_submit : "Submit"))));
|
|
8330
8363
|
};
|
|
8331
8364
|
// components/blocks/misc/Announcement.tsx
|
|
8332
|
-
var
|
|
8365
|
+
var import_react53 = __toESM(require("react"));
|
|
8333
8366
|
var Announcement = function(_param) {
|
|
8334
8367
|
var onActionClick = _param.onActionClick, props = _object_without_properties(_param, [
|
|
8335
8368
|
"onActionClick"
|
|
8336
8369
|
]);
|
|
8337
|
-
return /* @__PURE__ */
|
|
8370
|
+
return /* @__PURE__ */ import_react53.default.createElement(Card, null, /* @__PURE__ */ import_react53.default.createElement(CardContent, {
|
|
8338
8371
|
headless: true,
|
|
8339
8372
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
|
8340
|
-
}, /* @__PURE__ */
|
|
8373
|
+
}, /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
8341
8374
|
className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center "
|
|
8342
|
-
}, /* @__PURE__ */
|
|
8375
|
+
}, /* @__PURE__ */ import_react53.default.createElement("span", {
|
|
8343
8376
|
className: "hawa-text-lg hawa-font-bold"
|
|
8344
|
-
}, props.title), /* @__PURE__ */
|
|
8377
|
+
}, props.title), /* @__PURE__ */ import_react53.default.createElement("span", {
|
|
8345
8378
|
className: "hawa-text-sm"
|
|
8346
|
-
}, props.subtitle)), /* @__PURE__ */
|
|
8379
|
+
}, props.subtitle)), /* @__PURE__ */ import_react53.default.createElement(Button, {
|
|
8347
8380
|
onClick: function() {
|
|
8348
8381
|
return onActionClick();
|
|
8349
8382
|
},
|
|
@@ -8351,56 +8384,56 @@ var Announcement = function(_param) {
|
|
|
8351
8384
|
}, props.actionText)));
|
|
8352
8385
|
};
|
|
8353
8386
|
// components/blocks/misc/NotFound.tsx
|
|
8354
|
-
var
|
|
8387
|
+
var import_react54 = __toESM(require("react"));
|
|
8355
8388
|
var NotFound = function(param) {
|
|
8356
8389
|
var _param_variant = param.variant, variant = _param_variant === void 0 ? "contained" : _param_variant, texts = param.texts;
|
|
8357
8390
|
var _texts_pageNotFound, _texts_ifLost, _texts_home;
|
|
8358
|
-
return /* @__PURE__ */
|
|
8391
|
+
return /* @__PURE__ */ import_react54.default.createElement(Card, null, /* @__PURE__ */ import_react54.default.createElement(CardContent, {
|
|
8359
8392
|
headless: true
|
|
8360
|
-
}, /* @__PURE__ */
|
|
8393
|
+
}, /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
8361
8394
|
className: "hawa-flex hawa-flex-col hawa-items-center dark:hawa-text-white"
|
|
8362
|
-
}, /* @__PURE__ */
|
|
8395
|
+
}, /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
8363
8396
|
className: "hawa-text-center hawa-text-6xl hawa-font-bold "
|
|
8364
|
-
}, "404"), /* @__PURE__ */
|
|
8397
|
+
}, "404"), /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
8365
8398
|
className: "hawa-m-2 hawa-text-center hawa-text-xl hawa-font-bold "
|
|
8366
|
-
}, (_texts_pageNotFound = texts === null || texts === void 0 ? void 0 : texts.pageNotFound) !== null && _texts_pageNotFound !== void 0 ? _texts_pageNotFound : "Page Not Found"), /* @__PURE__ */
|
|
8399
|
+
}, (_texts_pageNotFound = texts === null || texts === void 0 ? void 0 : texts.pageNotFound) !== null && _texts_pageNotFound !== void 0 ? _texts_pageNotFound : "Page Not Found"), /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
8367
8400
|
className: "hawa-mb-4 hawa-text-center"
|
|
8368
|
-
}, (_texts_ifLost = texts === null || texts === void 0 ? void 0 : texts.ifLost) !== null && _texts_ifLost !== void 0 ? _texts_ifLost : /* @__PURE__ */
|
|
8401
|
+
}, (_texts_ifLost = texts === null || texts === void 0 ? void 0 : texts.ifLost) !== null && _texts_ifLost !== void 0 ? _texts_ifLost : /* @__PURE__ */ import_react54.default.createElement(import_react54.default.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ import_react54.default.createElement("span", {
|
|
8369
8402
|
className: "clickable-link"
|
|
8370
|
-
}, "help@sikka.io"))), /* @__PURE__ */
|
|
8403
|
+
}, "help@sikka.io"))), /* @__PURE__ */ import_react54.default.createElement(Button, {
|
|
8371
8404
|
className: "hawa-w-full"
|
|
8372
8405
|
}, (_texts_home = texts === null || texts === void 0 ? void 0 : texts.home) !== null && _texts_home !== void 0 ? _texts_home : "Home"))));
|
|
8373
8406
|
};
|
|
8374
8407
|
// components/blocks/misc/NoPermission.tsx
|
|
8375
|
-
var
|
|
8408
|
+
var import_react55 = __toESM(require("react"));
|
|
8376
8409
|
var NoPermission = function(param) {
|
|
8377
8410
|
var texts = param.texts;
|
|
8378
8411
|
var _texts_title, _texts_subtitle;
|
|
8379
|
-
return /* @__PURE__ */
|
|
8412
|
+
return /* @__PURE__ */ import_react55.default.createElement(Card, null, /* @__PURE__ */ import_react55.default.createElement(CardContent, {
|
|
8380
8413
|
headless: true
|
|
8381
|
-
}, /* @__PURE__ */
|
|
8414
|
+
}, /* @__PURE__ */ import_react55.default.createElement("div", {
|
|
8382
8415
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center"
|
|
8383
|
-
}, /* @__PURE__ */
|
|
8416
|
+
}, /* @__PURE__ */ import_react55.default.createElement("div", {
|
|
8384
8417
|
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"
|
|
8385
|
-
}, /* @__PURE__ */
|
|
8418
|
+
}, /* @__PURE__ */ import_react55.default.createElement("svg", {
|
|
8386
8419
|
stroke: "currentColor",
|
|
8387
8420
|
fill: "currentColor",
|
|
8388
8421
|
strokeWidth: "0",
|
|
8389
8422
|
viewBox: "0 0 448 512",
|
|
8390
8423
|
height: "0.35em",
|
|
8391
8424
|
width: "0.35em"
|
|
8392
|
-
}, /* @__PURE__ */
|
|
8425
|
+
}, /* @__PURE__ */ import_react55.default.createElement("path", {
|
|
8393
8426
|
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"
|
|
8394
|
-
})), " "), /* @__PURE__ */
|
|
8427
|
+
})), " "), /* @__PURE__ */ import_react55.default.createElement("div", {
|
|
8395
8428
|
className: "hawa-m-2 hawa-text-xl hawa-font-bold"
|
|
8396
|
-
}, (_texts_title = texts === null || texts === void 0 ? void 0 : texts.title) !== null && _texts_title !== void 0 ? _texts_title : "You don't have permission"), /* @__PURE__ */
|
|
8429
|
+
}, (_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_react55.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"))));
|
|
8397
8430
|
};
|
|
8398
8431
|
// components/blocks/pricing/PricingPlans.tsx
|
|
8399
|
-
var
|
|
8432
|
+
var import_react56 = __toESM(require("react"));
|
|
8400
8433
|
var PricingPlans = function(props) {
|
|
8401
|
-
return /* @__PURE__ */
|
|
8434
|
+
return /* @__PURE__ */ import_react56.default.createElement("div", null, /* @__PURE__ */ import_react56.default.createElement("div", {
|
|
8402
8435
|
className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between"
|
|
8403
|
-
}, /* @__PURE__ */
|
|
8436
|
+
}, /* @__PURE__ */ import_react56.default.createElement(Radio, {
|
|
8404
8437
|
design: "tabs",
|
|
8405
8438
|
defaultValue: props.currentCycle,
|
|
8406
8439
|
options: props.billingCycles,
|
|
@@ -8409,7 +8442,7 @@ var PricingPlans = function(props) {
|
|
|
8409
8442
|
props.onCycleChange(e);
|
|
8410
8443
|
}
|
|
8411
8444
|
}
|
|
8412
|
-
}), /* @__PURE__ */
|
|
8445
|
+
}), /* @__PURE__ */ import_react56.default.createElement(Radio, {
|
|
8413
8446
|
design: "tabs",
|
|
8414
8447
|
defaultValue: props.currentCurrency,
|
|
8415
8448
|
options: props.currencies,
|
|
@@ -8418,10 +8451,10 @@ var PricingPlans = function(props) {
|
|
|
8418
8451
|
props.onCurrencyChange(e);
|
|
8419
8452
|
}
|
|
8420
8453
|
}
|
|
8421
|
-
})), /* @__PURE__ */
|
|
8454
|
+
})), /* @__PURE__ */ import_react56.default.createElement("div", {
|
|
8422
8455
|
className: "hawa-flex hawa-flex-row hawa-justify-between"
|
|
8423
8456
|
}, props.plans.map(function(plan, index) {
|
|
8424
|
-
return /* @__PURE__ */
|
|
8457
|
+
return /* @__PURE__ */ import_react56.default.createElement(PricingCard, _object_spread_props(_object_spread({
|
|
8425
8458
|
key: index,
|
|
8426
8459
|
onPlanClicked: function() {
|
|
8427
8460
|
if (props.onPlanClicked) {
|
|
@@ -8442,26 +8475,26 @@ var PricingPlans = function(props) {
|
|
|
8442
8475
|
})));
|
|
8443
8476
|
};
|
|
8444
8477
|
// components/blocks/pricing/ComparingPlans.tsx
|
|
8445
|
-
var
|
|
8478
|
+
var import_react57 = __toESM(require("react"));
|
|
8446
8479
|
var CheckMark = function() {
|
|
8447
|
-
return /* @__PURE__ */
|
|
8480
|
+
return /* @__PURE__ */ import_react57.default.createElement("svg", {
|
|
8448
8481
|
className: "hawa-h-5 hawa-w-5 hawa-text-green-500",
|
|
8449
8482
|
"aria-hidden": "true",
|
|
8450
8483
|
fill: "currentColor",
|
|
8451
8484
|
viewBox: "0 0 20 20"
|
|
8452
|
-
}, /* @__PURE__ */
|
|
8485
|
+
}, /* @__PURE__ */ import_react57.default.createElement("path", {
|
|
8453
8486
|
fillRule: "evenodd",
|
|
8454
8487
|
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",
|
|
8455
8488
|
clipRule: "evenodd"
|
|
8456
8489
|
}));
|
|
8457
8490
|
};
|
|
8458
8491
|
var UncheckMark = function() {
|
|
8459
|
-
return /* @__PURE__ */
|
|
8492
|
+
return /* @__PURE__ */ import_react57.default.createElement("svg", {
|
|
8460
8493
|
className: "hawa-h-5 hawa-w-5 hawa-text-red-500",
|
|
8461
8494
|
"aria-hidden": "true",
|
|
8462
8495
|
fill: "currentColor",
|
|
8463
8496
|
viewBox: "0 0 20 20"
|
|
8464
|
-
}, /* @__PURE__ */
|
|
8497
|
+
}, /* @__PURE__ */ import_react57.default.createElement("path", {
|
|
8465
8498
|
fillRule: "evenodd",
|
|
8466
8499
|
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",
|
|
8467
8500
|
clipRule: "evenodd"
|
|
@@ -8469,14 +8502,14 @@ var UncheckMark = function() {
|
|
|
8469
8502
|
};
|
|
8470
8503
|
var ComparingPlans = function(props) {
|
|
8471
8504
|
var _props_plans;
|
|
8472
|
-
var _ref = _sliced_to_array((0,
|
|
8473
|
-
var _ref1 = _sliced_to_array((0,
|
|
8474
|
-
return /* @__PURE__ */
|
|
8505
|
+
var _ref = _sliced_to_array((0, import_react57.useState)("sar"), 2), currentCurrency = _ref[0], setCurrentCurrency = _ref[1];
|
|
8506
|
+
var _ref1 = _sliced_to_array((0, import_react57.useState)("month"), 2), currentCycle = _ref1[0], setCurrentCycle = _ref1[1];
|
|
8507
|
+
return /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
8475
8508
|
id: "detailed-pricing",
|
|
8476
8509
|
className: "hawa-w-full hawa-overflow-x-auto"
|
|
8477
|
-
}, /* @__PURE__ */
|
|
8510
|
+
}, /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
8478
8511
|
className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between"
|
|
8479
|
-
}, /* @__PURE__ */
|
|
8512
|
+
}, /* @__PURE__ */ import_react57.default.createElement(Radio, {
|
|
8480
8513
|
design: "tabs",
|
|
8481
8514
|
defaultValue: currentCycle,
|
|
8482
8515
|
options: props.billingCycles,
|
|
@@ -8487,7 +8520,7 @@ var ComparingPlans = function(props) {
|
|
|
8487
8520
|
console.log("onCycleChange was not provided");
|
|
8488
8521
|
}
|
|
8489
8522
|
}
|
|
8490
|
-
}), /* @__PURE__ */
|
|
8523
|
+
}), /* @__PURE__ */ import_react57.default.createElement(Radio, {
|
|
8491
8524
|
design: "tabs",
|
|
8492
8525
|
defaultValue: currentCurrency,
|
|
8493
8526
|
options: props.currencies,
|
|
@@ -8498,56 +8531,56 @@ var ComparingPlans = function(props) {
|
|
|
8498
8531
|
console.log("onCurrencyChange was not provided");
|
|
8499
8532
|
}
|
|
8500
8533
|
}
|
|
8501
|
-
})), /* @__PURE__ */
|
|
8534
|
+
})), /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
8502
8535
|
className: " hawa-overflow-hidden hawa-rounded"
|
|
8503
|
-
}, /* @__PURE__ */
|
|
8536
|
+
}, /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
8504
8537
|
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"
|
|
8505
|
-
}, /* @__PURE__ */
|
|
8538
|
+
}, /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
8506
8539
|
className: "hawa-flex hawa-items-center"
|
|
8507
8540
|
}), props.plans.map(function(plan, i) {
|
|
8508
|
-
return /* @__PURE__ */
|
|
8541
|
+
return /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
8509
8542
|
key: i
|
|
8510
|
-
}, /* @__PURE__ */
|
|
8543
|
+
}, /* @__PURE__ */ import_react57.default.createElement("h5", {
|
|
8511
8544
|
className: "hawa-text-md hawa-font-bold hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
8512
|
-
}, plan.texts.title), /* @__PURE__ */
|
|
8545
|
+
}, plan.texts.title), /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
8513
8546
|
className: " hawa-flex hawa-items-baseline hawa-text-gray-900 dark:hawa-text-white"
|
|
8514
|
-
}, /* @__PURE__ */
|
|
8547
|
+
}, /* @__PURE__ */ import_react57.default.createElement(import_react57.default.Fragment, null, /* @__PURE__ */ import_react57.default.createElement("span", {
|
|
8515
8548
|
className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight"
|
|
8516
|
-
}, plan.price), /* @__PURE__ */
|
|
8549
|
+
}, plan.price), /* @__PURE__ */ import_react57.default.createElement("span", {
|
|
8517
8550
|
className: "hawa-mx-1 hawa-text-sm hawa-font-semibold"
|
|
8518
|
-
}, plan.texts.currencyText)), /* @__PURE__ */
|
|
8551
|
+
}, plan.texts.currencyText)), /* @__PURE__ */ import_react57.default.createElement("span", {
|
|
8519
8552
|
className: "hawa-ml-1 hawa-text-xl hawa-font-normal hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
8520
|
-
}, "/ ", plan.texts.cycleText)), /* @__PURE__ */
|
|
8553
|
+
}, "/ ", plan.texts.cycleText)), /* @__PURE__ */ import_react57.default.createElement("h5", {
|
|
8521
8554
|
className: "hawa-text-md hawa-font-normal hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
8522
8555
|
}, plan.texts.subtitle));
|
|
8523
8556
|
})), (_props_plans = props.plans) === null || _props_plans === void 0 ? void 0 : _props_plans.map(function(plan) {
|
|
8524
8557
|
return plan.features.map(function(feature, j) {
|
|
8525
|
-
return /* @__PURE__ */
|
|
8558
|
+
return /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
8526
8559
|
key: j,
|
|
8527
8560
|
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"
|
|
8528
|
-
}, /* @__PURE__ */
|
|
8561
|
+
}, /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
8529
8562
|
className: " hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
8530
|
-
}, feature.text, feature.description && /* @__PURE__ */
|
|
8563
|
+
}, feature.text, feature.description && /* @__PURE__ */ import_react57.default.createElement(Tooltip, {
|
|
8531
8564
|
side: "right",
|
|
8532
8565
|
content: feature.description
|
|
8533
|
-
}, /* @__PURE__ */
|
|
8566
|
+
}, /* @__PURE__ */ import_react57.default.createElement("svg", {
|
|
8534
8567
|
stroke: "currentColor",
|
|
8535
8568
|
fill: "currentColor",
|
|
8536
8569
|
strokeWidth: "0",
|
|
8537
8570
|
viewBox: "0 0 16 16",
|
|
8538
8571
|
height: "1em",
|
|
8539
8572
|
width: "1em"
|
|
8540
|
-
}, /* @__PURE__ */
|
|
8573
|
+
}, /* @__PURE__ */ import_react57.default.createElement("path", {
|
|
8541
8574
|
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"
|
|
8542
|
-
})))), /* @__PURE__ */
|
|
8575
|
+
})))), /* @__PURE__ */ import_react57.default.createElement(UncheckMark, null), /* @__PURE__ */ import_react57.default.createElement(CheckMark, null), /* @__PURE__ */ import_react57.default.createElement(UncheckMark, null));
|
|
8543
8576
|
});
|
|
8544
8577
|
})));
|
|
8545
8578
|
};
|
|
8546
8579
|
// components/blocks/pricing/HorizontalPricing.tsx
|
|
8547
|
-
var
|
|
8580
|
+
var import_react58 = __toESM(require("react"));
|
|
8548
8581
|
var import_clsx14 = __toESM(require("clsx"));
|
|
8549
8582
|
var HorizontalPricing = function(props) {
|
|
8550
|
-
var _ref = _sliced_to_array((0,
|
|
8583
|
+
var _ref = _sliced_to_array((0, import_react58.useState)(""), 2), selectedCard = _ref[0], setSelectedCard = _ref[1];
|
|
8551
8584
|
var data = [
|
|
8552
8585
|
{
|
|
8553
8586
|
title: "basic",
|
|
@@ -8565,96 +8598,96 @@ var HorizontalPricing = function(props) {
|
|
|
8565
8598
|
cycle: "/mo"
|
|
8566
8599
|
}
|
|
8567
8600
|
];
|
|
8568
|
-
return /* @__PURE__ */
|
|
8601
|
+
return /* @__PURE__ */ import_react58.default.createElement("div", {
|
|
8569
8602
|
className: "hawa-z-10 hawa-w-full hawa-max-w-screen-sm"
|
|
8570
|
-
}, /* @__PURE__ */
|
|
8603
|
+
}, /* @__PURE__ */ import_react58.default.createElement("div", {
|
|
8571
8604
|
className: "hawa-max-w-2xl "
|
|
8572
|
-
}, /* @__PURE__ */
|
|
8605
|
+
}, /* @__PURE__ */ import_react58.default.createElement("div", {
|
|
8573
8606
|
className: "hawa-flex hawa-flex-row hawa-justify-between"
|
|
8574
|
-
}, /* @__PURE__ */
|
|
8607
|
+
}, /* @__PURE__ */ import_react58.default.createElement(Radio, {
|
|
8575
8608
|
design: "tabs",
|
|
8576
8609
|
options: props.currencies,
|
|
8577
8610
|
defaultValue: props.currentCurrency
|
|
8578
|
-
}), /* @__PURE__ */
|
|
8611
|
+
}), /* @__PURE__ */ import_react58.default.createElement(Radio, {
|
|
8579
8612
|
design: "tabs",
|
|
8580
8613
|
options: props.billingCycles,
|
|
8581
8614
|
defaultValue: props.currentCycle
|
|
8582
8615
|
})), data.map(function(d, i) {
|
|
8583
|
-
return /* @__PURE__ */
|
|
8616
|
+
return /* @__PURE__ */ import_react58.default.createElement("label", {
|
|
8584
8617
|
key: i,
|
|
8585
8618
|
htmlFor: d.title,
|
|
8586
8619
|
className: "",
|
|
8587
8620
|
onClick: function() {
|
|
8588
8621
|
return setSelectedCard(d.title);
|
|
8589
8622
|
}
|
|
8590
|
-
}, /* @__PURE__ */
|
|
8623
|
+
}, /* @__PURE__ */ import_react58.default.createElement("input", {
|
|
8591
8624
|
type: "radio",
|
|
8592
8625
|
name: "radio",
|
|
8593
8626
|
id: d.title,
|
|
8594
8627
|
className: "hawa-peer hawa-appearance-none"
|
|
8595
|
-
}), /* @__PURE__ */
|
|
8628
|
+
}), /* @__PURE__ */ import_react58.default.createElement("div", {
|
|
8596
8629
|
className: (0, import_clsx14.default)(selectedCard === d.title ? "peer-checked:hawa-border-blue-500" : "", "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")
|
|
8597
|
-
}, /* @__PURE__ */
|
|
8630
|
+
}, /* @__PURE__ */ import_react58.default.createElement("div", {
|
|
8598
8631
|
className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4"
|
|
8599
|
-
}, /* @__PURE__ */
|
|
8632
|
+
}, /* @__PURE__ */ import_react58.default.createElement(CheckIcons, null), /* @__PURE__ */ import_react58.default.createElement(CardText, {
|
|
8600
8633
|
title: "Enterprise",
|
|
8601
8634
|
subtitle: "For startups and new businesses"
|
|
8602
|
-
})), /* @__PURE__ */
|
|
8635
|
+
})), /* @__PURE__ */ import_react58.default.createElement(CardPrice, {
|
|
8603
8636
|
amount: d.price,
|
|
8604
8637
|
cycle: d.cycle
|
|
8605
8638
|
})));
|
|
8606
8639
|
})));
|
|
8607
8640
|
};
|
|
8608
8641
|
var CheckIcons = function() {
|
|
8609
|
-
return /* @__PURE__ */
|
|
8642
|
+
return /* @__PURE__ */ import_react58.default.createElement(import_react58.default.Fragment, null, /* @__PURE__ */ import_react58.default.createElement("svg", {
|
|
8610
8643
|
fill: "none",
|
|
8611
8644
|
viewBox: "0 0 24 24",
|
|
8612
8645
|
strokeWidth: "1.5",
|
|
8613
8646
|
stroke: "currentColor",
|
|
8614
8647
|
className: "hawa-default hawa-h-8 hawa-w-8 hawa-text-neutral-500"
|
|
8615
|
-
}, /* @__PURE__ */
|
|
8648
|
+
}, /* @__PURE__ */ import_react58.default.createElement("path", {
|
|
8616
8649
|
strokeLinecap: "round",
|
|
8617
8650
|
strokeLinejoin: "round",
|
|
8618
8651
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
8619
|
-
})), /* @__PURE__ */
|
|
8652
|
+
})), /* @__PURE__ */ import_react58.default.createElement("svg", {
|
|
8620
8653
|
viewBox: "0 0 24 24",
|
|
8621
8654
|
fill: "currentColor",
|
|
8622
8655
|
className: "hawa-active hawa-hidden hawa-h-8 hawa-w-8 hawa-text-blue-500"
|
|
8623
|
-
}, /* @__PURE__ */
|
|
8656
|
+
}, /* @__PURE__ */ import_react58.default.createElement("path", {
|
|
8624
8657
|
fillRule: "evenodd",
|
|
8625
8658
|
clipRule: "evenodd",
|
|
8626
8659
|
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"
|
|
8627
8660
|
})));
|
|
8628
8661
|
};
|
|
8629
8662
|
var CardText = function(props) {
|
|
8630
|
-
return /* @__PURE__ */
|
|
8663
|
+
return /* @__PURE__ */ import_react58.default.createElement("div", {
|
|
8631
8664
|
className: "hawa-peer hawa-flex hawa-flex-col hawa-items-start "
|
|
8632
|
-
}, /* @__PURE__ */
|
|
8665
|
+
}, /* @__PURE__ */ import_react58.default.createElement("h2", {
|
|
8633
8666
|
className: "hawa-font-medium hawa-text-neutral-700 dark:hawa-text-gray-100 sm:hawa-text-xl"
|
|
8634
|
-
}, props.title), /* @__PURE__ */
|
|
8667
|
+
}, props.title), /* @__PURE__ */ import_react58.default.createElement("p", {
|
|
8635
8668
|
className: "hawa-text-sm hawa-text-neutral-500 dark:hawa-text-gray-300"
|
|
8636
8669
|
}, props.subtitle, " "));
|
|
8637
8670
|
};
|
|
8638
8671
|
var CardPrice = function(props) {
|
|
8639
|
-
return /* @__PURE__ */
|
|
8672
|
+
return /* @__PURE__ */ import_react58.default.createElement("h2", {
|
|
8640
8673
|
className: "hawa-peer hawa-text-xl hawa-font-semibold hawa-text-neutral-900 dark:hawa-text-white sm:hawa-text-2xl"
|
|
8641
|
-
}, props.amount, /* @__PURE__ */
|
|
8674
|
+
}, props.amount, /* @__PURE__ */ import_react58.default.createElement("span", {
|
|
8642
8675
|
className: "hawa-text-base hawa-font-medium hawa-text-neutral-400"
|
|
8643
8676
|
}, props.cycle));
|
|
8644
8677
|
};
|
|
8645
8678
|
// components/blocks/Usage.tsx
|
|
8646
|
-
var
|
|
8679
|
+
var import_react59 = __toESM(require("react"));
|
|
8647
8680
|
var Usage = function(props) {
|
|
8648
8681
|
var _props_percent;
|
|
8649
|
-
return /* @__PURE__ */
|
|
8682
|
+
return /* @__PURE__ */ import_react59.default.createElement("div", {
|
|
8650
8683
|
className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-1 hawa-rounded hawa-border hawa-bg-card hawa-p-4"
|
|
8651
|
-
}, /* @__PURE__ */
|
|
8684
|
+
}, /* @__PURE__ */ import_react59.default.createElement("div", {
|
|
8652
8685
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2"
|
|
8653
|
-
}, /* @__PURE__ */
|
|
8686
|
+
}, /* @__PURE__ */ import_react59.default.createElement("span", {
|
|
8654
8687
|
className: "hawa-bg-white-200"
|
|
8655
|
-
}, props.title), props.tooltip && /* @__PURE__ */
|
|
8688
|
+
}, props.title), props.tooltip && /* @__PURE__ */ import_react59.default.createElement(Tooltip, {
|
|
8656
8689
|
content: props.tooltip
|
|
8657
|
-
}, /* @__PURE__ */
|
|
8690
|
+
}, /* @__PURE__ */ import_react59.default.createElement("svg", {
|
|
8658
8691
|
stroke: "currentColor",
|
|
8659
8692
|
"aria-label": "Exclamation Circle",
|
|
8660
8693
|
fill: "currentColor",
|
|
@@ -8662,28 +8695,28 @@ var Usage = function(props) {
|
|
|
8662
8695
|
viewBox: "0 0 16 16",
|
|
8663
8696
|
height: "1em",
|
|
8664
8697
|
width: "1em"
|
|
8665
|
-
}, /* @__PURE__ */
|
|
8698
|
+
}, /* @__PURE__ */ import_react59.default.createElement("path", {
|
|
8666
8699
|
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"
|
|
8667
|
-
})))), /* @__PURE__ */
|
|
8700
|
+
})))), /* @__PURE__ */ import_react59.default.createElement("div", {
|
|
8668
8701
|
className: "hawa-bg-white-100 hawa-flex hawa-flex-row"
|
|
8669
|
-
}, /* @__PURE__ */
|
|
8702
|
+
}, /* @__PURE__ */ import_react59.default.createElement("div", null, props.currentUsage), /* @__PURE__ */ import_react59.default.createElement("div", null, " (", props.percent, "%)")), /* @__PURE__ */ import_react59.default.createElement(Progress, {
|
|
8670
8703
|
value: (_props_percent = props.percent) !== null && _props_percent !== void 0 ? _props_percent : 0
|
|
8671
8704
|
}));
|
|
8672
8705
|
};
|
|
8673
8706
|
// components/hooks/useDiscloser.ts
|
|
8674
|
-
var import_react59 = require("react");
|
|
8675
|
-
// components/hooks/useHover.ts
|
|
8676
8707
|
var import_react60 = require("react");
|
|
8677
|
-
// components/hooks/
|
|
8708
|
+
// components/hooks/useHover.ts
|
|
8678
8709
|
var import_react61 = require("react");
|
|
8679
|
-
// components/hooks/
|
|
8710
|
+
// components/hooks/useCarousel.ts
|
|
8680
8711
|
var import_react62 = require("react");
|
|
8712
|
+
// components/hooks/useWindowSize.ts
|
|
8713
|
+
var import_react63 = require("react");
|
|
8681
8714
|
var useWindowSize = function() {
|
|
8682
|
-
var _ref = _sliced_to_array((0,
|
|
8715
|
+
var _ref = _sliced_to_array((0, import_react63.useState)({
|
|
8683
8716
|
width: void 0,
|
|
8684
8717
|
height: void 0
|
|
8685
8718
|
}), 2), windowSize = _ref[0], setWindowSize = _ref[1];
|
|
8686
|
-
(0,
|
|
8719
|
+
(0, import_react63.useEffect)(function() {
|
|
8687
8720
|
var handleResize = function handleResize() {
|
|
8688
8721
|
setWindowSize({
|
|
8689
8722
|
width: window.innerWidth,
|
|
@@ -8699,7 +8732,7 @@ var useWindowSize = function() {
|
|
|
8699
8732
|
return windowSize;
|
|
8700
8733
|
};
|
|
8701
8734
|
// components/hooks/useFocusWithin.ts
|
|
8702
|
-
var
|
|
8735
|
+
var import_react64 = require("react");
|
|
8703
8736
|
function containsRelatedTarget(event) {
|
|
8704
8737
|
if (_instanceof(event.currentTarget, HTMLElement) && _instanceof(event.relatedTarget, HTMLElement)) {
|
|
8705
8738
|
return event.currentTarget.contains(event.relatedTarget);
|
|
@@ -8708,9 +8741,9 @@ function containsRelatedTarget(event) {
|
|
|
8708
8741
|
}
|
|
8709
8742
|
function useFocusWithin() {
|
|
8710
8743
|
var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, onBlur = _ref.onBlur, onFocus = _ref.onFocus;
|
|
8711
|
-
var ref = (0,
|
|
8712
|
-
var _ref1 = _sliced_to_array((0,
|
|
8713
|
-
var focusedRef = (0,
|
|
8744
|
+
var ref = (0, import_react64.useRef)(null);
|
|
8745
|
+
var _ref1 = _sliced_to_array((0, import_react64.useState)(false), 2), focused = _ref1[0], _setFocused = _ref1[1];
|
|
8746
|
+
var focusedRef = (0, import_react64.useRef)(false);
|
|
8714
8747
|
var setFocused = function(value) {
|
|
8715
8748
|
_setFocused(value);
|
|
8716
8749
|
focusedRef.current = value;
|
|
@@ -8727,7 +8760,7 @@ function useFocusWithin() {
|
|
|
8727
8760
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
8728
8761
|
}
|
|
8729
8762
|
};
|
|
8730
|
-
(0,
|
|
8763
|
+
(0, import_react64.useEffect)(function() {
|
|
8731
8764
|
if (ref.current) {
|
|
8732
8765
|
ref.current.addEventListener("focusin", handleFocusIn);
|
|
8733
8766
|
ref.current.addEventListener("focusout", handleFocusOut);
|
|
@@ -8748,7 +8781,7 @@ function useFocusWithin() {
|
|
|
8748
8781
|
};
|
|
8749
8782
|
}
|
|
8750
8783
|
// components/hooks/useMediaQuery.ts
|
|
8751
|
-
var
|
|
8784
|
+
var import_react65 = require("react");
|
|
8752
8785
|
function attachMediaListener(query, callback) {
|
|
8753
8786
|
try {
|
|
8754
8787
|
query.addEventListener("change", callback);
|
|
@@ -8775,9 +8808,9 @@ function useMediaQuery(query, initialValue) {
|
|
|
8775
8808
|
var getInitialValueInEffect = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
8776
8809
|
getInitialValueInEffect: true
|
|
8777
8810
|
}).getInitialValueInEffect;
|
|
8778
|
-
var _ref = _sliced_to_array((0,
|
|
8779
|
-
var queryRef = (0,
|
|
8780
|
-
(0,
|
|
8811
|
+
var _ref = _sliced_to_array((0, import_react65.useState)(getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)), 2), matches = _ref[0], setMatches = _ref[1];
|
|
8812
|
+
var queryRef = (0, import_react65.useRef)();
|
|
8813
|
+
(0, import_react65.useEffect)(function() {
|
|
8781
8814
|
if ("matchMedia" in window) {
|
|
8782
8815
|
queryRef.current = window.matchMedia(query);
|
|
8783
8816
|
setMatches(queryRef.current.matches);
|
|
@@ -8792,15 +8825,15 @@ function useMediaQuery(query, initialValue) {
|
|
|
8792
8825
|
return matches;
|
|
8793
8826
|
}
|
|
8794
8827
|
// components/hooks/useScrollPosition.ts
|
|
8795
|
-
var import_react65 = require("react");
|
|
8796
|
-
// components/hooks/useTable.ts
|
|
8797
8828
|
var import_react66 = require("react");
|
|
8798
|
-
// components/hooks/
|
|
8829
|
+
// components/hooks/useTable.ts
|
|
8799
8830
|
var import_react67 = require("react");
|
|
8831
|
+
// components/hooks/useTabs.ts
|
|
8832
|
+
var import_react68 = require("react");
|
|
8800
8833
|
function useTabs() {
|
|
8801
8834
|
var initialTab = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
8802
|
-
var _ref = _sliced_to_array((0,
|
|
8803
|
-
(0,
|
|
8835
|
+
var _ref = _sliced_to_array((0, import_react68.useState)(initialTab), 2), activeTab = _ref[0], setActiveTab = _ref[1];
|
|
8836
|
+
(0, import_react68.useEffect)(function() {
|
|
8804
8837
|
var handleHashChange = function() {
|
|
8805
8838
|
var hash = window.location.hash.substring(1);
|
|
8806
8839
|
setActiveTab(hash || initialTab);
|
|
@@ -8896,6 +8929,7 @@ function useTabs() {
|
|
|
8896
8929
|
LoginForm: LoginForm,
|
|
8897
8930
|
Logos: Logos,
|
|
8898
8931
|
NavMenuItem: NavMenuItem,
|
|
8932
|
+
Navbar: Navbar,
|
|
8899
8933
|
NavigationMenu: NavigationMenu,
|
|
8900
8934
|
NavigationMenuLink: NavigationMenuLink,
|
|
8901
8935
|
NewPasswordForm: NewPasswordForm,
|