@sikka/hawa 0.27.23-next → 0.27.24-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/blocks/auth/index.d.mts +29 -3
- package/dist/blocks/auth/index.d.ts +29 -3
- package/dist/blocks/auth/index.js +385 -382
- package/dist/blocks/auth/index.mjs +314 -308
- package/dist/blocks/feedback/index.d.mts +1 -1
- package/dist/blocks/feedback/index.d.ts +1 -1
- package/dist/blocks/feedback/index.mjs +5 -5
- package/dist/blocks/index.d.mts +28 -2
- package/dist/blocks/index.d.ts +28 -2
- package/dist/blocks/index.js +400 -397
- package/dist/blocks/index.mjs +19 -15
- package/dist/blocks/misc/index.d.mts +1 -1
- package/dist/blocks/misc/index.d.ts +1 -1
- package/dist/blocks/misc/index.mjs +5 -5
- package/dist/blocks/pricing/index.d.mts +1 -1
- package/dist/blocks/pricing/index.d.ts +1 -1
- package/dist/blocks/pricing/index.mjs +4 -4
- package/dist/{chunk-5UYZN5SQ.mjs → chunk-3ZURZ4TW.mjs} +1 -1
- package/dist/{chunk-W5I4VB5Z.mjs → chunk-4F7LNY2V.mjs} +1 -1
- package/dist/{chunk-MMOEFJSP.mjs → chunk-6HOSGMTV.mjs} +1 -1
- package/dist/{chunk-M6XGGAPQ.mjs → chunk-KZCOE6V3.mjs} +1 -1
- package/dist/{chunk-EFWL3FFK.mjs → chunk-N5J4XNGU.mjs} +1 -1
- package/dist/{chunk-DUL6C2S2.mjs → chunk-NK7TELIV.mjs} +1 -1
- package/dist/{chunk-ZOWDRDAM.mjs → chunk-R2NAPFAZ.mjs} +221 -221
- package/dist/{chunk-7QEBDFLT.mjs → chunk-SYZ5JMYJ.mjs} +2 -4
- package/dist/{chunk-7CYXEZDV.mjs → chunk-TIQERSM3.mjs} +1 -1
- package/dist/{chunk-DQHPOUHR.mjs → chunk-ZV3KYZ5G.mjs} +1 -1
- package/dist/elements/index.d.mts +3 -3
- package/dist/elements/index.d.ts +3 -3
- package/dist/elements/index.mjs +3 -3
- package/dist/index.css +3 -0
- package/dist/index.d.mts +52 -26
- package/dist/index.d.ts +52 -26
- package/dist/index.js +18 -13
- package/dist/index.mjs +17 -13
- package/dist/layout/index.mjs +2 -2
- package/dist/{textTypes-u4OSE-rn.d.ts → textTypes-ah2JJr8v.d.mts} +1 -1
- package/dist/{textTypes-u4OSE-rn.d.mts → textTypes-ah2JJr8v.d.ts} +1 -1
- package/package.json +1 -1
package/dist/blocks/index.js
CHANGED
@@ -35,6 +35,7 @@ __export(blocks_exports, {
|
|
35
35
|
AdCard: () => AdCard,
|
36
36
|
Announcement: () => Announcement,
|
37
37
|
AppLanding: () => AppLanding,
|
38
|
+
AuthButtons: () => AuthButtons,
|
38
39
|
CheckEmail: () => CheckEmail,
|
39
40
|
CodeConfirmation: () => CodeConfirmation,
|
40
41
|
ComparingPlans: () => ComparingPlans,
|
@@ -62,10 +63,12 @@ __export(blocks_exports, {
|
|
62
63
|
});
|
63
64
|
module.exports = __toCommonJS(blocks_exports);
|
64
65
|
|
65
|
-
// blocks/auth/
|
66
|
-
var
|
67
|
-
|
68
|
-
|
66
|
+
// blocks/auth/AuthButtons.tsx
|
67
|
+
var import_react3 = __toESM(require("react"));
|
68
|
+
|
69
|
+
// elements/button/Button.tsx
|
70
|
+
var React2 = __toESM(require("react"));
|
71
|
+
var import_class_variance_authority = require("class-variance-authority");
|
69
72
|
|
70
73
|
// util/index.ts
|
71
74
|
var import_clsx = require("clsx");
|
@@ -74,17 +77,6 @@ function cn(...inputs) {
|
|
74
77
|
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
75
78
|
}
|
76
79
|
|
77
|
-
// blocks/auth/LoginForm.tsx
|
78
|
-
var import_libphonenumber_js = require("libphonenumber-js");
|
79
|
-
var z = __toESM(require("zod"));
|
80
|
-
|
81
|
-
// elements/alert/Alert.tsx
|
82
|
-
var import_react2 = __toESM(require("react"));
|
83
|
-
|
84
|
-
// elements/button/Button.tsx
|
85
|
-
var React2 = __toESM(require("react"));
|
86
|
-
var import_class_variance_authority = require("class-variance-authority");
|
87
|
-
|
88
80
|
// elements/loading/Loading.tsx
|
89
81
|
var import_react = __toESM(require("react"));
|
90
82
|
var Loading = ({
|
@@ -375,7 +367,296 @@ var Button = React2.forwardRef(
|
|
375
367
|
);
|
376
368
|
Button.displayName = "Button";
|
377
369
|
|
370
|
+
// elements/logos/Logos.tsx
|
371
|
+
var import_react2 = __toESM(require("react"));
|
372
|
+
var Logos = {
|
373
|
+
hawa: (props) => /* @__PURE__ */ import_react2.default.createElement(
|
374
|
+
"svg",
|
375
|
+
{
|
376
|
+
xmlns: "http://www.w3.org/2000/svg",
|
377
|
+
xmlSpace: "preserve",
|
378
|
+
viewBox: "0 0 765 765",
|
379
|
+
...props
|
380
|
+
},
|
381
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
382
|
+
"path",
|
383
|
+
{
|
384
|
+
d: "M382.5 0C171.6 0 0 171.6 0 382.5V765h382.5C593.4 765 765 593.4 765 382.5S593.4 0 382.5 0zM281.6 305.7c98 0 177.7 79.7 177.7 177.7 0 98-79.7 177.7-177.7 177.7s-177.7-79.7-177.7-177.7c0-98 79.7-177.7 177.7-177.7zm246 314.5c23.2-41.6 35.6-88.7 35.6-136.7 0-155.3-126.3-281.6-281.6-281.6-48 0-95.1 12.4-136.8 35.6C194.9 156 285 104 382.5 104c153.6 0 278.6 125 278.6 278.6 0 97.3-52 187.5-133.5 237.6z",
|
385
|
+
fill: "currentColor"
|
386
|
+
}
|
387
|
+
)
|
388
|
+
),
|
389
|
+
sikka: (props) => /* @__PURE__ */ import_react2.default.createElement(
|
390
|
+
"svg",
|
391
|
+
{
|
392
|
+
xmlns: "http://www.w3.org/2000/svg",
|
393
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
394
|
+
xmlSpace: "preserve",
|
395
|
+
viewBox: "0 0 916.5 765",
|
396
|
+
fill: "currentColor",
|
397
|
+
...props
|
398
|
+
},
|
399
|
+
/* @__PURE__ */ import_react2.default.createElement("defs", null, /* @__PURE__ */ import_react2.default.createElement("path", { id: "a", d: "M0 0h916.5v765H0z" })),
|
400
|
+
/* @__PURE__ */ import_react2.default.createElement("clipPath", { id: "b" }, /* @__PURE__ */ import_react2.default.createElement("use", { xlinkHref: "#a", overflow: "visible" })),
|
401
|
+
/* @__PURE__ */ import_react2.default.createElement("g", { clipPath: "url(#b)" }, /* @__PURE__ */ import_react2.default.createElement("defs", null, /* @__PURE__ */ import_react2.default.createElement("path", { id: "c", d: "M0 0h916.5v765H0z" })), /* @__PURE__ */ import_react2.default.createElement("clipPath", { id: "d" }, /* @__PURE__ */ import_react2.default.createElement("use", { xlinkHref: "#c", overflow: "visible" })), /* @__PURE__ */ import_react2.default.createElement("g", { clipPath: "url(#d)" }, /* @__PURE__ */ import_react2.default.createElement("path", { d: "M458.3 0h-31.9c-14.6 0-26.5 11.9-26.5 26.3v313.3L136.6 17.1C126 3.9 120.7 0 106.1 0H9.7C.5 0 0 7.9 0 17.1 0 21 1.3 26.3 4 29l288.7 353.6L4 736.1c-2.7 2.7-4 7.9-4 11.8 0 9.2.4 17.1 9.7 17.1h96.4c14.6 0 19.9-3.9 30.5-17.1l263.3-322.5v313.3c0 14.4 11.9 26.3 26.5 26.3h31.9M458.3 765h31.9c14.6 0 26.5-11.8 26.5-26.3V425.5L780 748c10.7 13.2 15.9 17.1 30.5 17.1h96.4c9.2 0 9.7-7.9 9.7-17.1 0-3.9-1.3-9.2-4-11.8L623.8 382.5 912.5 28.9c2.7-2.7 4-7.9 4-11.9 0-9.2-.5-17.1-9.7-17.1h-96.4c-14.6 0-19.9 3.9-30.5 17.1L516.7 339.5V26.3c0-14.4-11.9-26.3-26.5-26.3h-31.9" })))
|
402
|
+
),
|
403
|
+
mail: (props) => /* @__PURE__ */ import_react2.default.createElement(
|
404
|
+
"svg",
|
405
|
+
{
|
406
|
+
stroke: "currentColor",
|
407
|
+
fill: "none",
|
408
|
+
strokeWidth: "2",
|
409
|
+
viewBox: "0 0 24 24",
|
410
|
+
strokeLinecap: "round",
|
411
|
+
strokeLinejoin: "round",
|
412
|
+
xmlns: "http://www.w3.org/2000/svg",
|
413
|
+
...props
|
414
|
+
},
|
415
|
+
/* @__PURE__ */ import_react2.default.createElement("path", { 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" }),
|
416
|
+
/* @__PURE__ */ import_react2.default.createElement("polyline", { points: "22,6 12,13 2,6" })
|
417
|
+
),
|
418
|
+
phone: (props) => /* @__PURE__ */ import_react2.default.createElement(
|
419
|
+
"svg",
|
420
|
+
{
|
421
|
+
stroke: "currentColor",
|
422
|
+
fill: "none",
|
423
|
+
strokeWidth: "2",
|
424
|
+
viewBox: "0 0 24 24",
|
425
|
+
"aria-hidden": "true",
|
426
|
+
xmlns: "http://www.w3.org/2000/svg",
|
427
|
+
...props
|
428
|
+
},
|
429
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
430
|
+
"path",
|
431
|
+
{
|
432
|
+
strokeLinecap: "round",
|
433
|
+
strokeLinejoin: "round",
|
434
|
+
d: "M10.5 1.5H8.25A2.25 2.25 0 006 3.75v16.5a2.25 2.25 0 002.25 2.25h7.5A2.25 2.25 0 0018 20.25V3.75a2.25 2.25 0 00-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"
|
435
|
+
}
|
436
|
+
)
|
437
|
+
),
|
438
|
+
twitter: (props) => /* @__PURE__ */ import_react2.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react2.default.createElement(
|
439
|
+
"path",
|
440
|
+
{
|
441
|
+
fill: "currentColor",
|
442
|
+
d: "M21.543 7.104c.015.211.015.423.015.636 0 6.507-4.954 14.01-14.01 14.01v-.003A13.94 13.94 0 0 1 0 19.539a9.88 9.88 0 0 0 7.287-2.041 4.93 4.93 0 0 1-4.6-3.42 4.916 4.916 0 0 0 2.223-.084A4.926 4.926 0 0 1 .96 9.167v-.062a4.887 4.887 0 0 0 2.235.616A4.928 4.928 0 0 1 1.67 3.148a13.98 13.98 0 0 0 10.15 5.144 4.929 4.929 0 0 1 8.39-4.49 9.868 9.868 0 0 0 3.128-1.196 4.941 4.941 0 0 1-2.165 2.724A9.828 9.828 0 0 0 24 4.555a10.019 10.019 0 0 1-2.457 2.549z"
|
443
|
+
}
|
444
|
+
)),
|
445
|
+
instagram: (props) => /* @__PURE__ */ import_react2.default.createElement(
|
446
|
+
"svg",
|
447
|
+
{
|
448
|
+
xmlns: "http://www.w3.org/2000/svg",
|
449
|
+
fill: "currentColor",
|
450
|
+
viewBox: "0 0 16 16",
|
451
|
+
...props
|
452
|
+
},
|
453
|
+
/* @__PURE__ */ import_react2.default.createElement("path", { d: "M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z" })
|
454
|
+
),
|
455
|
+
microsoft: (props) => /* @__PURE__ */ import_react2.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", ...props }, /* @__PURE__ */ import_react2.default.createElement(
|
456
|
+
"path",
|
457
|
+
{
|
458
|
+
fill: "currentColor",
|
459
|
+
d: "M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"
|
460
|
+
}
|
461
|
+
)),
|
462
|
+
github: (props) => /* @__PURE__ */ import_react2.default.createElement(
|
463
|
+
"svg",
|
464
|
+
{
|
465
|
+
xmlns: "http://www.w3.org/2000/svg",
|
466
|
+
viewBox: "0 0 438.549 438.549",
|
467
|
+
...props
|
468
|
+
},
|
469
|
+
/* @__PURE__ */ import_react2.default.createElement(
|
470
|
+
"path",
|
471
|
+
{
|
472
|
+
fill: "currentColor",
|
473
|
+
d: "M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"
|
474
|
+
}
|
475
|
+
)
|
476
|
+
),
|
477
|
+
radix: (props) => /* @__PURE__ */ import_react2.default.createElement("svg", { viewBox: "0 0 25 25", fill: "none", ...props }, /* @__PURE__ */ import_react2.default.createElement(
|
478
|
+
"path",
|
479
|
+
{
|
480
|
+
d: "M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z",
|
481
|
+
fill: "currentcolor"
|
482
|
+
}
|
483
|
+
), /* @__PURE__ */ import_react2.default.createElement("path", { d: "M12 0H4V8H12V0Z", fill: "currentcolor" }), /* @__PURE__ */ import_react2.default.createElement(
|
484
|
+
"path",
|
485
|
+
{
|
486
|
+
d: "M17 8C19.2091 8 21 6.20914 21 4C21 1.79086 19.2091 0 17 0C14.7909 0 13 1.79086 13 4C13 6.20914 14.7909 8 17 8Z",
|
487
|
+
fill: "currentcolor"
|
488
|
+
}
|
489
|
+
)),
|
490
|
+
aria: (props) => /* @__PURE__ */ import_react2.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", fill: "currentColor", ...props }, /* @__PURE__ */ import_react2.default.createElement("path", { d: "M13.966 22.624l-1.69-4.281H8.122l3.892-9.144 5.662 13.425zM8.884 1.376H0v21.248zm15.116 0h-8.884L24 22.624Z" })),
|
491
|
+
npm: (props) => /* @__PURE__ */ import_react2.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react2.default.createElement(
|
492
|
+
"path",
|
493
|
+
{
|
494
|
+
d: "M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z",
|
495
|
+
fill: "currentColor"
|
496
|
+
}
|
497
|
+
)),
|
498
|
+
yarn: (props) => /* @__PURE__ */ import_react2.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react2.default.createElement(
|
499
|
+
"path",
|
500
|
+
{
|
501
|
+
d: "M12 0C5.375 0 0 5.375 0 12s5.375 12 12 12 12-5.375 12-12S18.625 0 12 0zm.768 4.105c.183 0 .363.053.525.157.125.083.287.185.755 1.154.31-.088.468-.042.551-.019.204.056.366.19.463.375.477.917.542 2.553.334 3.605-.241 1.232-.755 2.029-1.131 2.576.324.329.778.899 1.117 1.825.278.774.31 1.478.273 2.015a5.51 5.51 0 0 0 .602-.329c.593-.366 1.487-.917 2.553-.931.714-.009 1.269.445 1.353 1.103a1.23 1.23 0 0 1-.945 1.362c-.649.158-.95.278-1.821.843-1.232.797-2.539 1.242-3.012 1.39a1.686 1.686 0 0 1-.704.343c-.737.181-3.266.315-3.466.315h-.046c-.783 0-1.214-.241-1.45-.491-.658.329-1.51.19-2.122-.134a1.078 1.078 0 0 1-.58-1.153 1.243 1.243 0 0 1-.153-.195c-.162-.25-.528-.936-.454-1.946.056-.723.556-1.367.88-1.71a5.522 5.522 0 0 1 .408-2.256c.306-.727.885-1.348 1.32-1.737-.32-.537-.644-1.367-.329-2.21.227-.602.412-.936.82-1.08h-.005c.199-.074.389-.153.486-.259a3.418 3.418 0 0 1 2.298-1.103c.037-.093.079-.185.125-.283.31-.658.639-1.029 1.024-1.168a.94.94 0 0 1 .328-.06zm.006.7c-.507.016-1.001 1.519-1.001 1.519s-1.27-.204-2.266.871c-.199.218-.468.334-.746.44-.079.028-.176.023-.417.672-.371.991.625 2.094.625 2.094s-1.186.839-1.626 1.881c-.486 1.144-.338 2.261-.338 2.261s-.843.732-.899 1.487c-.051.663.139 1.2.343 1.515.227.343.51.176.51.176s-.561.653-.037.931c.477.25 1.283.394 1.71-.037.31-.31.371-1.001.486-1.283.028-.065.12.111.209.199.097.093.264.195.264.195s-.755.324-.445 1.066c.102.246.468.403 1.066.398.222-.005 2.664-.139 3.313-.296.375-.088.505-.283.505-.283s1.566-.431 2.998-1.357c.917-.598 1.293-.76 2.034-.936.612-.148.57-1.098-.241-1.084-.839.009-1.575.44-2.196.825-1.163.718-1.742.672-1.742.672l-.018-.032c-.079-.13.371-1.293-.134-2.678-.547-1.515-1.413-1.881-1.344-1.997.297-.5 1.038-1.297 1.334-2.78.176-.899.13-2.377-.269-3.151-.074-.144-.732.241-.732.241s-.616-1.371-.788-1.483a.271.271 0 0 0-.157-.046z",
|
502
|
+
fill: "currentColor"
|
503
|
+
}
|
504
|
+
)),
|
505
|
+
pnpm: (props) => /* @__PURE__ */ import_react2.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react2.default.createElement(
|
506
|
+
"path",
|
507
|
+
{
|
508
|
+
d: "M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z",
|
509
|
+
fill: "currentColor"
|
510
|
+
}
|
511
|
+
)),
|
512
|
+
react: (props) => /* @__PURE__ */ import_react2.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react2.default.createElement(
|
513
|
+
"path",
|
514
|
+
{
|
515
|
+
d: "M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z",
|
516
|
+
fill: "currentColor"
|
517
|
+
}
|
518
|
+
)),
|
519
|
+
tailwind: (props) => /* @__PURE__ */ import_react2.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react2.default.createElement(
|
520
|
+
"path",
|
521
|
+
{
|
522
|
+
d: "M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z",
|
523
|
+
fill: "currentColor"
|
524
|
+
}
|
525
|
+
)),
|
526
|
+
google: (props) => /* @__PURE__ */ import_react2.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react2.default.createElement(
|
527
|
+
"path",
|
528
|
+
{
|
529
|
+
fill: "currentColor",
|
530
|
+
d: "M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"
|
531
|
+
}
|
532
|
+
)),
|
533
|
+
apple: (props) => /* @__PURE__ */ import_react2.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react2.default.createElement(
|
534
|
+
"path",
|
535
|
+
{
|
536
|
+
d: "M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",
|
537
|
+
fill: "currentColor"
|
538
|
+
}
|
539
|
+
)),
|
540
|
+
paypal: (props) => /* @__PURE__ */ import_react2.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react2.default.createElement(
|
541
|
+
"path",
|
542
|
+
{
|
543
|
+
d: "M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944.901C5.026.382 5.474 0 5.998 0h7.46c2.57 0 4.578.543 5.69 1.81 1.01 1.15 1.304 2.42 1.012 4.287-.023.143-.047.288-.077.437-.983 5.05-4.349 6.797-8.647 6.797h-2.19c-.524 0-.968.382-1.05.9l-1.12 7.106zm14.146-14.42a3.35 3.35 0 0 0-.607-.541c-.013.076-.026.175-.041.254-.93 4.778-4.005 7.201-9.138 7.201h-2.19a.563.563 0 0 0-.556.479l-1.187 7.527h-.506l-.24 1.516a.56.56 0 0 0 .554.647h3.882c.46 0 .85-.334.922-.788.06-.26.76-4.852.816-5.09a.932.932 0 0 1 .923-.788h.58c3.76 0 6.705-1.528 7.565-5.946.36-1.847.174-3.388-.777-4.471z",
|
544
|
+
fill: "currentColor"
|
545
|
+
}
|
546
|
+
)),
|
547
|
+
spinner: (props) => /* @__PURE__ */ import_react2.default.createElement(
|
548
|
+
"svg",
|
549
|
+
{
|
550
|
+
xmlns: "http://www.w3.org/2000/svg",
|
551
|
+
width: "24",
|
552
|
+
height: "24",
|
553
|
+
viewBox: "0 0 24 24",
|
554
|
+
fill: "none",
|
555
|
+
stroke: "currentColor",
|
556
|
+
strokeWidth: "2",
|
557
|
+
strokeLinecap: "round",
|
558
|
+
strokeLinejoin: "round",
|
559
|
+
...props
|
560
|
+
},
|
561
|
+
/* @__PURE__ */ import_react2.default.createElement("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
562
|
+
),
|
563
|
+
whatsapp: (props) => /* @__PURE__ */ import_react2.default.createElement(
|
564
|
+
"svg",
|
565
|
+
{
|
566
|
+
xmlns: "http://www.w3.org/2000/svg",
|
567
|
+
viewBox: "0 0 24 24",
|
568
|
+
fill: "currentColor",
|
569
|
+
...props
|
570
|
+
},
|
571
|
+
/* @__PURE__ */ import_react2.default.createElement("path", { d: "M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z" })
|
572
|
+
)
|
573
|
+
};
|
574
|
+
|
575
|
+
// blocks/auth/AuthButtons.tsx
|
576
|
+
var AuthButtons = (props) => {
|
577
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
578
|
+
return /* @__PURE__ */ import_react3.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, props.viaGoogle && /* @__PURE__ */ import_react3.default.createElement(
|
579
|
+
Button,
|
580
|
+
{
|
581
|
+
disabled: props.isGoogleLoading,
|
582
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
583
|
+
variant: "outline",
|
584
|
+
onClick: props.handleGoogle
|
585
|
+
},
|
586
|
+
props.isGoogleLoading ? /* @__PURE__ */ import_react3.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react3.default.createElement(Logos.google, { className: "hawa-icon" }),
|
587
|
+
(_b = (_a = props.texts) == null ? void 0 : _a.continueWithGoogle) != null ? _b : "Continue With Google"
|
588
|
+
), props.viaGithub && /* @__PURE__ */ import_react3.default.createElement(
|
589
|
+
Button,
|
590
|
+
{
|
591
|
+
disabled: props.isGithubLoading,
|
592
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
593
|
+
variant: "outline",
|
594
|
+
onClick: props.handleGithub
|
595
|
+
},
|
596
|
+
props.isGithubLoading ? /* @__PURE__ */ import_react3.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react3.default.createElement(Logos.github, { className: "hawa-icon" }),
|
597
|
+
(_d = (_c = props.texts) == null ? void 0 : _c.continueWithGithub) != null ? _d : "Continue With Github"
|
598
|
+
), props.viaTwitter && /* @__PURE__ */ import_react3.default.createElement(
|
599
|
+
Button,
|
600
|
+
{
|
601
|
+
disabled: props.isTwitterLoading,
|
602
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
603
|
+
variant: "outline",
|
604
|
+
onClick: props.handleTwitter
|
605
|
+
},
|
606
|
+
props.isTwitterLoading ? /* @__PURE__ */ import_react3.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react3.default.createElement(Logos.twitter, { className: "hawa-icon" }),
|
607
|
+
(_f = (_e = props.texts) == null ? void 0 : _e.continueWithTwitter) != null ? _f : "Continue With Twitter"
|
608
|
+
), props.viaApple && /* @__PURE__ */ import_react3.default.createElement(
|
609
|
+
Button,
|
610
|
+
{
|
611
|
+
disabled: props.isAppleLoading,
|
612
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
613
|
+
variant: "outline",
|
614
|
+
onClick: props.handleApple
|
615
|
+
},
|
616
|
+
props.isAppleLoading ? /* @__PURE__ */ import_react3.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react3.default.createElement(Logos.apple, { className: "hawa-icon" }),
|
617
|
+
(_h = (_g = props.texts) == null ? void 0 : _g.continueWithApple) != null ? _h : "Continue With Apple"
|
618
|
+
), props.viaMicrosoft && /* @__PURE__ */ import_react3.default.createElement(
|
619
|
+
Button,
|
620
|
+
{
|
621
|
+
disabled: props.isMicrosoftLoading,
|
622
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
623
|
+
variant: "outline",
|
624
|
+
onClick: props.handleMicrosoft
|
625
|
+
},
|
626
|
+
props.isMicrosoftLoading ? /* @__PURE__ */ import_react3.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react3.default.createElement(Logos.microsoft, { className: "hawa-icon" }),
|
627
|
+
(_j = (_i = props.texts) == null ? void 0 : _i.continueWithMicrosoft) != null ? _j : "Continue With Microsoft"
|
628
|
+
), props.viaEmail && /* @__PURE__ */ import_react3.default.createElement(
|
629
|
+
Button,
|
630
|
+
{
|
631
|
+
disabled: props.isEmailLoading,
|
632
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
633
|
+
variant: "outline",
|
634
|
+
onClick: props.handleEmail
|
635
|
+
},
|
636
|
+
props.isEmailLoading ? /* @__PURE__ */ import_react3.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react3.default.createElement(Logos.mail, { className: "hawa-icon" }),
|
637
|
+
(_l = (_k = props.texts) == null ? void 0 : _k.continueWithEmail) != null ? _l : "Continue With Email"
|
638
|
+
), props.viaPhone && /* @__PURE__ */ import_react3.default.createElement(
|
639
|
+
Button,
|
640
|
+
{
|
641
|
+
disabled: props.isPhoneLoading,
|
642
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
643
|
+
variant: "outline",
|
644
|
+
onClick: props.handlePhone
|
645
|
+
},
|
646
|
+
props.isPhoneLoading ? /* @__PURE__ */ import_react3.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react3.default.createElement(Logos.phone, { className: "hawa-icon" }),
|
647
|
+
(_n = (_m = props.texts) == null ? void 0 : _m.continueWithPhone) != null ? _n : "Continue With Phone"
|
648
|
+
));
|
649
|
+
};
|
650
|
+
|
651
|
+
// blocks/auth/LoginForm.tsx
|
652
|
+
var import_react13 = __toESM(require("react"));
|
653
|
+
var import_react_hook_form = require("react-hook-form");
|
654
|
+
var import_zod = require("@hookform/resolvers/zod");
|
655
|
+
var import_libphonenumber_js = require("libphonenumber-js");
|
656
|
+
var z = __toESM(require("zod"));
|
657
|
+
|
378
658
|
// elements/alert/Alert.tsx
|
659
|
+
var import_react4 = __toESM(require("react"));
|
379
660
|
var Alert = ({
|
380
661
|
direction = "ltr",
|
381
662
|
severity = "none",
|
@@ -384,9 +665,9 @@ var Alert = ({
|
|
384
665
|
className,
|
385
666
|
...props
|
386
667
|
}) => {
|
387
|
-
const alertRef = (0,
|
388
|
-
const [closed, setClosed] = (0,
|
389
|
-
(0,
|
668
|
+
const alertRef = (0, import_react4.useRef)(null);
|
669
|
+
const [closed, setClosed] = (0, import_react4.useState)(false);
|
670
|
+
(0, import_react4.useEffect)(() => {
|
390
671
|
if (duration) {
|
391
672
|
const timeoutHide = setTimeout(() => {
|
392
673
|
setClosed(true);
|
@@ -421,7 +702,7 @@ var Alert = ({
|
|
421
702
|
hyper: "hawa-text-white hawa-bg-gradient-to-tl hawa-from-pink-700 hawa-via-red-500 hawa-to-yellow-600 ",
|
422
703
|
oceanic: "hawa-text-white hawa-bg-gradient-to-bl hawa-from-green-500 hawa-via-blue-700 hawa-to-purple-500"
|
423
704
|
};
|
424
|
-
return /* @__PURE__ */
|
705
|
+
return /* @__PURE__ */ import_react4.default.createElement("div", { ref: alertRef }, /* @__PURE__ */ import_react4.default.createElement(
|
425
706
|
"div",
|
426
707
|
{
|
427
708
|
"data-testid": "alert",
|
@@ -435,13 +716,13 @@ var Alert = ({
|
|
435
716
|
className
|
436
717
|
)
|
437
718
|
},
|
438
|
-
/* @__PURE__ */
|
719
|
+
/* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-flex hawa-flex-row" }, icon && /* @__PURE__ */ import_react4.default.createElement(
|
439
720
|
"div",
|
440
721
|
{
|
441
722
|
className: direction === "rtl" ? "hawa-pl-2 hawa-pt-1" : "hawa-pr-2 hawa-pt-1"
|
442
723
|
},
|
443
724
|
icon
|
444
|
-
), /* @__PURE__ */
|
725
|
+
), /* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ import_react4.default.createElement(
|
445
726
|
"span",
|
446
727
|
{
|
447
728
|
className: cn(
|
@@ -450,7 +731,7 @@ var Alert = ({
|
|
450
731
|
)
|
451
732
|
},
|
452
733
|
props.title
|
453
|
-
), /* @__PURE__ */
|
734
|
+
), /* @__PURE__ */ import_react4.default.createElement(
|
454
735
|
"span",
|
455
736
|
{
|
456
737
|
className: cn(
|
@@ -459,7 +740,7 @@ var Alert = ({
|
|
459
740
|
)
|
460
741
|
},
|
461
742
|
props.text
|
462
|
-
), props.actions && /* @__PURE__ */
|
743
|
+
), props.actions && /* @__PURE__ */ import_react4.default.createElement("div", { className: "hawa-mt-2 hawa-flex hawa-flex-row hawa-gap-2" }, props.actions.map((act, index) => /* @__PURE__ */ import_react4.default.createElement(
|
463
744
|
Button,
|
464
745
|
{
|
465
746
|
key: index,
|
@@ -468,7 +749,7 @@ var Alert = ({
|
|
468
749
|
},
|
469
750
|
act.label
|
470
751
|
))))),
|
471
|
-
!props.persistent && /* @__PURE__ */
|
752
|
+
!props.persistent && /* @__PURE__ */ import_react4.default.createElement(
|
472
753
|
"button",
|
473
754
|
{
|
474
755
|
type: "button",
|
@@ -491,8 +772,8 @@ var Alert = ({
|
|
491
772
|
}, 200);
|
492
773
|
}
|
493
774
|
},
|
494
|
-
/* @__PURE__ */
|
495
|
-
/* @__PURE__ */
|
775
|
+
/* @__PURE__ */ import_react4.default.createElement("span", { className: "hawa-sr-only" }, "Close"),
|
776
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
496
777
|
"svg",
|
497
778
|
{
|
498
779
|
"aria-label": "Close Icon",
|
@@ -501,7 +782,7 @@ var Alert = ({
|
|
501
782
|
fill: "currentColor",
|
502
783
|
viewBox: "0 0 20 20"
|
503
784
|
},
|
504
|
-
/* @__PURE__ */
|
785
|
+
/* @__PURE__ */ import_react4.default.createElement(
|
505
786
|
"path",
|
506
787
|
{
|
507
788
|
fillRule: "evenodd",
|
@@ -515,8 +796,8 @@ var Alert = ({
|
|
515
796
|
};
|
516
797
|
|
517
798
|
// elements/card/Card.tsx
|
518
|
-
var
|
519
|
-
var Card =
|
799
|
+
var React6 = __toESM(require("react"));
|
800
|
+
var Card = React6.forwardRef(
|
520
801
|
({ className, variant = "default", clickable = false, ...props }, ref) => {
|
521
802
|
let variantStyles = {
|
522
803
|
default: cn(
|
@@ -529,7 +810,7 @@ var Card = React4.forwardRef(
|
|
529
810
|
clickable && "hawa-cursor-pointer active:hawa-translate-x-0.5 active:hawa-translate-y-0.5 active:hawa-shadow-color-primary-active active:translate-x-0.5 active:translate-y-0.5 active:shadow-color-primary-active"
|
530
811
|
)
|
531
812
|
};
|
532
|
-
return /* @__PURE__ */
|
813
|
+
return /* @__PURE__ */ React6.createElement(
|
533
814
|
"div",
|
534
815
|
{
|
535
816
|
ref,
|
@@ -539,7 +820,7 @@ var Card = React4.forwardRef(
|
|
539
820
|
);
|
540
821
|
}
|
541
822
|
);
|
542
|
-
var CardHeader =
|
823
|
+
var CardHeader = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement(
|
543
824
|
"div",
|
544
825
|
{
|
545
826
|
ref,
|
@@ -550,7 +831,7 @@ var CardHeader = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
550
831
|
...props
|
551
832
|
}
|
552
833
|
));
|
553
|
-
var CardTitle =
|
834
|
+
var CardTitle = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement(
|
554
835
|
"h3",
|
555
836
|
{
|
556
837
|
ref,
|
@@ -558,7 +839,7 @@ var CardTitle = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
558
839
|
...props
|
559
840
|
}
|
560
841
|
));
|
561
|
-
var CardDescription =
|
842
|
+
var CardDescription = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement(
|
562
843
|
"p",
|
563
844
|
{
|
564
845
|
ref,
|
@@ -566,8 +847,8 @@ var CardDescription = React4.forwardRef(({ className, ...props }, ref) => /* @__
|
|
566
847
|
...props
|
567
848
|
}
|
568
849
|
));
|
569
|
-
var CardContent =
|
570
|
-
({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */
|
850
|
+
var CardContent = React6.forwardRef(
|
851
|
+
({ headless, noPadding, className, ...props }, ref) => /* @__PURE__ */ React6.createElement(
|
571
852
|
"div",
|
572
853
|
{
|
573
854
|
ref,
|
@@ -580,7 +861,7 @@ var CardContent = React4.forwardRef(
|
|
580
861
|
}
|
581
862
|
)
|
582
863
|
);
|
583
|
-
var CardFooter =
|
864
|
+
var CardFooter = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React6.createElement(
|
584
865
|
"div",
|
585
866
|
{
|
586
867
|
ref,
|
@@ -596,15 +877,15 @@ CardTitle.displayName = "CardTitle";
|
|
596
877
|
Card.displayName = "Card";
|
597
878
|
|
598
879
|
// elements/input/Input.tsx
|
599
|
-
var
|
880
|
+
var import_react7 = __toESM(require("react"));
|
600
881
|
|
601
882
|
// elements/label/Label.tsx
|
602
|
-
var
|
883
|
+
var React8 = __toESM(require("react"));
|
603
884
|
|
604
885
|
// elements/tooltip/Tooltip.tsx
|
605
|
-
var
|
886
|
+
var import_react5 = __toESM(require("react"));
|
606
887
|
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
|
607
|
-
var TooltipContent =
|
888
|
+
var TooltipContent = import_react5.default.forwardRef(({ className, sideOffset = 4, size = "default", ...props }, ref) => /* @__PURE__ */ import_react5.default.createElement(
|
608
889
|
TooltipPrimitive.Content,
|
609
890
|
{
|
610
891
|
ref,
|
@@ -621,7 +902,7 @@ var TooltipContent = import_react3.default.forwardRef(({ className, sideOffset =
|
|
621
902
|
}
|
622
903
|
));
|
623
904
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
624
|
-
var TooltipArrow =
|
905
|
+
var TooltipArrow = import_react5.default.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ import_react5.default.createElement(TooltipPrimitive.Arrow, { ref, className: cn(className), ...props }));
|
625
906
|
TooltipArrow.displayName = TooltipPrimitive.Arrow.displayName;
|
626
907
|
var Tooltip = ({
|
627
908
|
side,
|
@@ -638,13 +919,13 @@ var Tooltip = ({
|
|
638
919
|
delayDuration = 300,
|
639
920
|
...props
|
640
921
|
}) => {
|
641
|
-
return /* @__PURE__ */
|
922
|
+
return /* @__PURE__ */ import_react5.default.createElement(
|
642
923
|
TooltipPrimitive.TooltipProvider,
|
643
924
|
{
|
644
925
|
delayDuration,
|
645
926
|
...providerProps
|
646
927
|
},
|
647
|
-
/* @__PURE__ */
|
928
|
+
/* @__PURE__ */ import_react5.default.createElement(
|
648
929
|
TooltipPrimitive.Root,
|
649
930
|
{
|
650
931
|
open: !disabled && open,
|
@@ -652,8 +933,8 @@ var Tooltip = ({
|
|
652
933
|
onOpenChange,
|
653
934
|
...props
|
654
935
|
},
|
655
|
-
/* @__PURE__ */
|
656
|
-
/* @__PURE__ */
|
936
|
+
/* @__PURE__ */ import_react5.default.createElement(TooltipPrimitive.Trigger, { ...triggerProps }, children),
|
937
|
+
/* @__PURE__ */ import_react5.default.createElement(
|
657
938
|
TooltipContent,
|
658
939
|
{
|
659
940
|
size,
|
@@ -673,7 +954,7 @@ var Tooltip = ({
|
|
673
954
|
};
|
674
955
|
|
675
956
|
// elements/label/Label.tsx
|
676
|
-
var Label =
|
957
|
+
var Label = React8.forwardRef(({ className, hint, hintSide, required, children, ...props }, ref) => /* @__PURE__ */ React8.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-1 hawa-transition-all" }, /* @__PURE__ */ React8.createElement(
|
677
958
|
"label",
|
678
959
|
{
|
679
960
|
ref,
|
@@ -684,8 +965,8 @@ var Label = React6.forwardRef(({ className, hint, hintSide, required, children,
|
|
684
965
|
...props
|
685
966
|
},
|
686
967
|
children,
|
687
|
-
required && /* @__PURE__ */
|
688
|
-
), hint && /* @__PURE__ */
|
968
|
+
required && /* @__PURE__ */ React8.createElement("span", { className: "hawa-mx-0.5 hawa-text-red-500" }, "*")
|
969
|
+
), hint && /* @__PURE__ */ React8.createElement(
|
689
970
|
Tooltip,
|
690
971
|
{
|
691
972
|
content: hint,
|
@@ -695,7 +976,7 @@ var Label = React6.forwardRef(({ className, hint, hintSide, required, children,
|
|
695
976
|
onClick: (event) => event.preventDefault()
|
696
977
|
}
|
697
978
|
},
|
698
|
-
/* @__PURE__ */
|
979
|
+
/* @__PURE__ */ React8.createElement("div", null, /* @__PURE__ */ React8.createElement(
|
699
980
|
"svg",
|
700
981
|
{
|
701
982
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -707,15 +988,15 @@ var Label = React6.forwardRef(({ className, hint, hintSide, required, children,
|
|
707
988
|
strokeLinecap: "round",
|
708
989
|
strokeLinejoin: "round"
|
709
990
|
},
|
710
|
-
/* @__PURE__ */
|
711
|
-
/* @__PURE__ */
|
712
|
-
/* @__PURE__ */
|
991
|
+
/* @__PURE__ */ React8.createElement("circle", { cx: "12", cy: "12", r: "10" }),
|
992
|
+
/* @__PURE__ */ React8.createElement("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
|
993
|
+
/* @__PURE__ */ React8.createElement("path", { d: "M12 17h.01" })
|
713
994
|
))
|
714
995
|
)));
|
715
996
|
Label.displayName = "Label";
|
716
997
|
|
717
998
|
// elements/skeleton/Skeleton.tsx
|
718
|
-
var
|
999
|
+
var import_react6 = __toESM(require("react"));
|
719
1000
|
function Skeleton({
|
720
1001
|
className,
|
721
1002
|
content,
|
@@ -734,7 +1015,7 @@ function Skeleton({
|
|
734
1015
|
right: "hawa-mask-fade-right",
|
735
1016
|
left: "hawa-mask-fade-left "
|
736
1017
|
};
|
737
|
-
return /* @__PURE__ */
|
1018
|
+
return /* @__PURE__ */ import_react6.default.createElement(
|
738
1019
|
"div",
|
739
1020
|
{
|
740
1021
|
className: cn(
|
@@ -750,7 +1031,7 @@ function Skeleton({
|
|
750
1031
|
}
|
751
1032
|
|
752
1033
|
// elements/input/Input.tsx
|
753
|
-
var Input = (0,
|
1034
|
+
var Input = (0, import_react7.forwardRef)(
|
754
1035
|
({
|
755
1036
|
margin = "none",
|
756
1037
|
width = "full",
|
@@ -777,7 +1058,7 @@ var Input = (0, import_react5.forwardRef)(
|
|
777
1058
|
};
|
778
1059
|
let defaultStyle = "hawa-flex hawa-max-h-fit hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
|
779
1060
|
let defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm ";
|
780
|
-
return /* @__PURE__ */
|
1061
|
+
return /* @__PURE__ */ import_react7.default.createElement(
|
781
1062
|
"div",
|
782
1063
|
{
|
783
1064
|
className: cn(
|
@@ -788,8 +1069,8 @@ var Input = (0, import_react5.forwardRef)(
|
|
788
1069
|
"hawa-w-full hawa-gap-2"
|
789
1070
|
)
|
790
1071
|
},
|
791
|
-
props.label && /* @__PURE__ */
|
792
|
-
/* @__PURE__ */
|
1072
|
+
props.label && /* @__PURE__ */ import_react7.default.createElement(Label, { ...labelProps }, props.label),
|
1073
|
+
/* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-w-full hawa-items-center " }, props.prefixText && /* @__PURE__ */ import_react7.default.createElement("span", { className: cn("hawa-me-2 hawa-opacity-90", !forceHideHelperText && "hawa-mb-2") }, props.prefixText), props.isLoading ? /* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-pb-2" }, /* @__PURE__ */ import_react7.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" })) : /* @__PURE__ */ import_react7.default.createElement(import_react7.default.Fragment, null, !props.hideSeparator && /* @__PURE__ */ import_react7.default.createElement(
|
793
1074
|
"div",
|
794
1075
|
{
|
795
1076
|
className: cn(
|
@@ -797,7 +1078,7 @@ var Input = (0, import_react5.forwardRef)(
|
|
797
1078
|
preview ? "hawa-opacity-100" : "hawa-opacity-0"
|
798
1079
|
)
|
799
1080
|
}
|
800
|
-
), /* @__PURE__ */
|
1081
|
+
), /* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2" }, /* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-relative" }, props.startIcon && /* @__PURE__ */ import_react7.default.createElement("div", { className: "hawa-absolute hawa-start-3 hawa-top-1/2 hawa--translate-y-1/2" }, props.startIcon), props.endIcon && /* @__PURE__ */ import_react7.default.createElement(
|
801
1082
|
"div",
|
802
1083
|
{
|
803
1084
|
className: cn(
|
@@ -806,7 +1087,7 @@ var Input = (0, import_react5.forwardRef)(
|
|
806
1087
|
)
|
807
1088
|
},
|
808
1089
|
props.endIcon
|
809
|
-
), /* @__PURE__ */
|
1090
|
+
), /* @__PURE__ */ import_react7.default.createElement(
|
810
1091
|
"input",
|
811
1092
|
{
|
812
1093
|
required: true,
|
@@ -832,7 +1113,7 @@ var Input = (0, import_react5.forwardRef)(
|
|
832
1113
|
inputProps == null ? void 0 : inputProps.className
|
833
1114
|
)
|
834
1115
|
}
|
835
|
-
)), !forceHideHelperText && /* @__PURE__ */
|
1116
|
+
)), !forceHideHelperText && /* @__PURE__ */ import_react7.default.createElement(
|
836
1117
|
"p",
|
837
1118
|
{
|
838
1119
|
className: cn(
|
@@ -841,7 +1122,7 @@ var Input = (0, import_react5.forwardRef)(
|
|
841
1122
|
)
|
842
1123
|
},
|
843
1124
|
props.helperText
|
844
|
-
), !props.disabled && forceHideHelperText && /* @__PURE__ */
|
1125
|
+
), !props.disabled && forceHideHelperText && /* @__PURE__ */ import_react7.default.createElement(
|
845
1126
|
"div",
|
846
1127
|
{
|
847
1128
|
className: cn(
|
@@ -850,7 +1131,7 @@ var Input = (0, import_react5.forwardRef)(
|
|
850
1131
|
)
|
851
1132
|
},
|
852
1133
|
props.helperText
|
853
|
-
), showCount && /* @__PURE__ */
|
1134
|
+
), showCount && /* @__PURE__ */ import_react7.default.createElement(
|
854
1135
|
"div",
|
855
1136
|
{
|
856
1137
|
className: cn(
|
@@ -871,7 +1152,7 @@ var Input = (0, import_react5.forwardRef)(
|
|
871
1152
|
);
|
872
1153
|
|
873
1154
|
// elements/phoneInput/PhoneInput.tsx
|
874
|
-
var
|
1155
|
+
var import_react9 = __toESM(require("react"));
|
875
1156
|
|
876
1157
|
// countries.ts
|
877
1158
|
var countries = [
|
@@ -2567,7 +2848,7 @@ var countries = [
|
|
2567
2848
|
var countries_default = countries;
|
2568
2849
|
|
2569
2850
|
// elements/select/Select.tsx
|
2570
|
-
var
|
2851
|
+
var import_react8 = __toESM(require("react"));
|
2571
2852
|
var import_react_select = __toESM(require("react-select"));
|
2572
2853
|
var import_creatable = __toESM(require("react-select/creatable"));
|
2573
2854
|
var import_clsx2 = __toESM(require("clsx"));
|
@@ -2578,10 +2859,10 @@ var Select = ({
|
|
2578
2859
|
}) => {
|
2579
2860
|
const NoOption = () => {
|
2580
2861
|
var _a, _b;
|
2581
|
-
return /* @__PURE__ */
|
2862
|
+
return /* @__PURE__ */ import_react8.default.createElement("div", null, (_b = (_a = props.texts) == null ? void 0 : _a.noOptions) != null ? _b : "No Items Found");
|
2582
2863
|
};
|
2583
2864
|
const Control = ({ children, innerProps, innerRef }) => {
|
2584
|
-
return /* @__PURE__ */
|
2865
|
+
return /* @__PURE__ */ import_react8.default.createElement(
|
2585
2866
|
"div",
|
2586
2867
|
{
|
2587
2868
|
ref: innerRef,
|
@@ -2594,7 +2875,7 @@ var Select = ({
|
|
2594
2875
|
);
|
2595
2876
|
};
|
2596
2877
|
const Option = ({ children, innerProps, innerRef }) => {
|
2597
|
-
return /* @__PURE__ */
|
2878
|
+
return /* @__PURE__ */ import_react8.default.createElement(
|
2598
2879
|
"div",
|
2599
2880
|
{
|
2600
2881
|
ref: innerRef,
|
@@ -2615,7 +2896,7 @@ var Select = ({
|
|
2615
2896
|
...menuProps
|
2616
2897
|
}) => {
|
2617
2898
|
const menuOpen = menuProps.selectProps.menuIsOpen;
|
2618
|
-
return /* @__PURE__ */
|
2899
|
+
return /* @__PURE__ */ import_react8.default.createElement(
|
2619
2900
|
"div",
|
2620
2901
|
{
|
2621
2902
|
className: cn(
|
@@ -2629,7 +2910,7 @@ var Select = ({
|
|
2629
2910
|
children
|
2630
2911
|
);
|
2631
2912
|
};
|
2632
|
-
return /* @__PURE__ */
|
2913
|
+
return /* @__PURE__ */ import_react8.default.createElement(
|
2633
2914
|
"div",
|
2634
2915
|
{
|
2635
2916
|
className: cn(
|
@@ -2637,10 +2918,10 @@ var Select = ({
|
|
2637
2918
|
props.width === "fit" ? "hawa-w-fit" : "hawa-w-full"
|
2638
2919
|
)
|
2639
2920
|
},
|
2640
|
-
props.label && /* @__PURE__ */
|
2641
|
-
props.isLoading ? /* @__PURE__ */
|
2921
|
+
props.label && /* @__PURE__ */ import_react8.default.createElement(Label, { ...labelProps }, props.label),
|
2922
|
+
props.isLoading ? /* @__PURE__ */ import_react8.default.createElement(Skeleton, { className: "hawa-h-[40px] hawa-w-full" }) : !props.isCreatable ? (
|
2642
2923
|
// TODO: enable keyboard to go to the next item in the list
|
2643
|
-
/* @__PURE__ */
|
2924
|
+
/* @__PURE__ */ import_react8.default.createElement(
|
2644
2925
|
import_react_select.default,
|
2645
2926
|
{
|
2646
2927
|
noOptionsMessage: NoOption,
|
@@ -2677,7 +2958,7 @@ var Select = ({
|
|
2677
2958
|
isSearchable: props.isSearchable
|
2678
2959
|
}
|
2679
2960
|
)
|
2680
|
-
) : /* @__PURE__ */
|
2961
|
+
) : /* @__PURE__ */ import_react8.default.createElement(
|
2681
2962
|
import_creatable.default,
|
2682
2963
|
{
|
2683
2964
|
formatCreateLabel: (inputValue) => {
|
@@ -2707,7 +2988,7 @@ var Select = ({
|
|
2707
2988
|
onInputChange: (newValue, action) => props.onInputChange(newValue, action)
|
2708
2989
|
}
|
2709
2990
|
),
|
2710
|
-
!props.hideHelperText && /* @__PURE__ */
|
2991
|
+
!props.hideHelperText && /* @__PURE__ */ import_react8.default.createElement(
|
2711
2992
|
"p",
|
2712
2993
|
{
|
2713
2994
|
className: cn(
|
@@ -2722,10 +3003,10 @@ var Select = ({
|
|
2722
3003
|
|
2723
3004
|
// elements/phoneInput/PhoneInput.tsx
|
2724
3005
|
var PhoneInput = ({ labelProps, ...props }) => {
|
2725
|
-
const [phoneNumber, setPhoneNumber] = (0,
|
2726
|
-
const [countryCode, setCountryCode] = (0,
|
2727
|
-
const inputRef = (0,
|
2728
|
-
(0,
|
3006
|
+
const [phoneNumber, setPhoneNumber] = (0, import_react9.useState)("");
|
3007
|
+
const [countryCode, setCountryCode] = (0, import_react9.useState)(props.preferredCountry);
|
3008
|
+
const inputRef = (0, import_react9.useRef)(null);
|
3009
|
+
(0, import_react9.useEffect)(() => {
|
2729
3010
|
var _a;
|
2730
3011
|
if (inputRef.current) {
|
2731
3012
|
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
@@ -2743,7 +3024,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
2743
3024
|
console.log("handleChange prop was not provided in <PhoneInput/>");
|
2744
3025
|
}
|
2745
3026
|
};
|
2746
|
-
return /* @__PURE__ */
|
3027
|
+
return /* @__PURE__ */ import_react9.default.createElement("div", { className: "hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ import_react9.default.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ import_react9.default.createElement("div", { dir: "ltr", className: "hawa-flex hawa-w-full hawa-flex-row" }, /* @__PURE__ */ import_react9.default.createElement(
|
2747
3028
|
Select,
|
2748
3029
|
{
|
2749
3030
|
width: "fit",
|
@@ -2759,7 +3040,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
2759
3040
|
value: countryCode == null ? void 0 : countryCode.label,
|
2760
3041
|
onChange: setCountryCode
|
2761
3042
|
}
|
2762
|
-
), /* @__PURE__ */
|
3043
|
+
), /* @__PURE__ */ import_react9.default.createElement("div", { className: "hawa-relative hawa-flex hawa-h-fit hawa-w-full hawa-flex-col hawa-justify-center hawa-gap-0" }, /* @__PURE__ */ import_react9.default.createElement(
|
2763
3044
|
"input",
|
2764
3045
|
{
|
2765
3046
|
ref: inputRef,
|
@@ -2772,7 +3053,7 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
2772
3053
|
type: "tel",
|
2773
3054
|
placeholder: props.placeholder
|
2774
3055
|
}
|
2775
|
-
))), /* @__PURE__ */
|
3056
|
+
))), /* @__PURE__ */ import_react9.default.createElement(
|
2776
3057
|
"p",
|
2777
3058
|
{
|
2778
3059
|
className: cn(
|
@@ -2785,8 +3066,8 @@ var PhoneInput = ({ labelProps, ...props }) => {
|
|
2785
3066
|
};
|
2786
3067
|
|
2787
3068
|
// icons/Emojis.tsx
|
2788
|
-
var
|
2789
|
-
var VeryGoodEmoji = () => /* @__PURE__ */
|
3069
|
+
var import_react10 = __toESM(require("react"));
|
3070
|
+
var VeryGoodEmoji = () => /* @__PURE__ */ import_react10.default.createElement(
|
2790
3071
|
"svg",
|
2791
3072
|
{
|
2792
3073
|
fill: "none",
|
@@ -2795,7 +3076,7 @@ var VeryGoodEmoji = () => /* @__PURE__ */ import_react8.default.createElement(
|
|
2795
3076
|
width: "16",
|
2796
3077
|
xmlns: "http://www.w3.org/2000/svg"
|
2797
3078
|
},
|
2798
|
-
/* @__PURE__ */
|
3079
|
+
/* @__PURE__ */ import_react10.default.createElement("g", { clipPath: "url(#clip0_53_166)" }, /* @__PURE__ */ import_react10.default.createElement(
|
2799
3080
|
"path",
|
2800
3081
|
{
|
2801
3082
|
clipRule: "evenodd",
|
@@ -2803,7 +3084,7 @@ var VeryGoodEmoji = () => /* @__PURE__ */ import_react8.default.createElement(
|
|
2803
3084
|
fill: "currentColor",
|
2804
3085
|
fillRule: "evenodd"
|
2805
3086
|
}
|
2806
|
-
), /* @__PURE__ */
|
3087
|
+
), /* @__PURE__ */ import_react10.default.createElement(
|
2807
3088
|
"path",
|
2808
3089
|
{
|
2809
3090
|
clipRule: "evenodd",
|
@@ -2813,7 +3094,7 @@ var VeryGoodEmoji = () => /* @__PURE__ */ import_react8.default.createElement(
|
|
2813
3094
|
}
|
2814
3095
|
))
|
2815
3096
|
);
|
2816
|
-
var GoodEmoji = () => /* @__PURE__ */
|
3097
|
+
var GoodEmoji = () => /* @__PURE__ */ import_react10.default.createElement(
|
2817
3098
|
"svg",
|
2818
3099
|
{
|
2819
3100
|
fill: "none",
|
@@ -2822,7 +3103,7 @@ var GoodEmoji = () => /* @__PURE__ */ import_react8.default.createElement(
|
|
2822
3103
|
width: "16",
|
2823
3104
|
xmlns: "http://www.w3.org/2000/svg"
|
2824
3105
|
},
|
2825
|
-
/* @__PURE__ */
|
3106
|
+
/* @__PURE__ */ import_react10.default.createElement("g", { clipPath: "url(#clip0_53_167)" }, /* @__PURE__ */ import_react10.default.createElement(
|
2826
3107
|
"path",
|
2827
3108
|
{
|
2828
3109
|
clipRule: "evenodd",
|
@@ -2832,7 +3113,7 @@ var GoodEmoji = () => /* @__PURE__ */ import_react8.default.createElement(
|
|
2832
3113
|
}
|
2833
3114
|
))
|
2834
3115
|
);
|
2835
|
-
var BadEmoji = () => /* @__PURE__ */
|
3116
|
+
var BadEmoji = () => /* @__PURE__ */ import_react10.default.createElement(
|
2836
3117
|
"svg",
|
2837
3118
|
{
|
2838
3119
|
fill: "none",
|
@@ -2841,7 +3122,7 @@ var BadEmoji = () => /* @__PURE__ */ import_react8.default.createElement(
|
|
2841
3122
|
width: "16",
|
2842
3123
|
xmlns: "http://www.w3.org/2000/svg"
|
2843
3124
|
},
|
2844
|
-
/* @__PURE__ */
|
3125
|
+
/* @__PURE__ */ import_react10.default.createElement("g", { clipPath: "url(#clip0_53_152)" }, /* @__PURE__ */ import_react10.default.createElement(
|
2845
3126
|
"path",
|
2846
3127
|
{
|
2847
3128
|
clipRule: "evenodd",
|
@@ -2851,7 +3132,7 @@ var BadEmoji = () => /* @__PURE__ */ import_react8.default.createElement(
|
|
2851
3132
|
}
|
2852
3133
|
))
|
2853
3134
|
);
|
2854
|
-
var VeryBadEmoji = () => /* @__PURE__ */
|
3135
|
+
var VeryBadEmoji = () => /* @__PURE__ */ import_react10.default.createElement(
|
2855
3136
|
"svg",
|
2856
3137
|
{
|
2857
3138
|
fill: "none",
|
@@ -2860,13 +3141,13 @@ var VeryBadEmoji = () => /* @__PURE__ */ import_react8.default.createElement(
|
|
2860
3141
|
width: "16",
|
2861
3142
|
xmlns: "http://www.w3.org/2000/svg"
|
2862
3143
|
},
|
2863
|
-
/* @__PURE__ */
|
3144
|
+
/* @__PURE__ */ import_react10.default.createElement("g", { clipPath: "url(#clip0_53_151)" }, /* @__PURE__ */ import_react10.default.createElement(
|
2864
3145
|
"path",
|
2865
3146
|
{
|
2866
3147
|
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",
|
2867
3148
|
fill: "#0070F3"
|
2868
3149
|
}
|
2869
|
-
), /* @__PURE__ */
|
3150
|
+
), /* @__PURE__ */ import_react10.default.createElement(
|
2870
3151
|
"path",
|
2871
3152
|
{
|
2872
3153
|
clipRule: "evenodd",
|
@@ -2878,8 +3159,8 @@ var VeryBadEmoji = () => /* @__PURE__ */ import_react8.default.createElement(
|
|
2878
3159
|
);
|
2879
3160
|
|
2880
3161
|
// icons/InputIcons.tsx
|
2881
|
-
var
|
2882
|
-
var EyeIcon = (props) => /* @__PURE__ */
|
3162
|
+
var import_react11 = __toESM(require("react"));
|
3163
|
+
var EyeIcon = (props) => /* @__PURE__ */ import_react11.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react11.default.createElement(
|
2883
3164
|
"svg",
|
2884
3165
|
{
|
2885
3166
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2890,10 +3171,10 @@ var EyeIcon = (props) => /* @__PURE__ */ import_react9.default.createElement("di
|
|
2890
3171
|
strokeLinecap: "round",
|
2891
3172
|
strokeLinejoin: "round"
|
2892
3173
|
},
|
2893
|
-
/* @__PURE__ */
|
2894
|
-
/* @__PURE__ */
|
3174
|
+
/* @__PURE__ */ import_react11.default.createElement("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
3175
|
+
/* @__PURE__ */ import_react11.default.createElement("circle", { cx: "12", cy: "12", r: "3" })
|
2895
3176
|
));
|
2896
|
-
var HiddenEyeIcon = (props) => /* @__PURE__ */
|
3177
|
+
var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react11.default.createElement("div", { className: cn("hawa-h-5 hawa-w-5", props.className) }, /* @__PURE__ */ import_react11.default.createElement(
|
2897
3178
|
"svg",
|
2898
3179
|
{
|
2899
3180
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -2904,20 +3185,20 @@ var HiddenEyeIcon = (props) => /* @__PURE__ */ import_react9.default.createEleme
|
|
2904
3185
|
strokeLinecap: "round",
|
2905
3186
|
strokeLinejoin: "round"
|
2906
3187
|
},
|
2907
|
-
/* @__PURE__ */
|
2908
|
-
/* @__PURE__ */
|
2909
|
-
/* @__PURE__ */
|
2910
|
-
/* @__PURE__ */
|
3188
|
+
/* @__PURE__ */ import_react11.default.createElement("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
3189
|
+
/* @__PURE__ */ import_react11.default.createElement("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
|
3190
|
+
/* @__PURE__ */ import_react11.default.createElement("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
|
3191
|
+
/* @__PURE__ */ import_react11.default.createElement("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
2911
3192
|
));
|
2912
3193
|
|
2913
3194
|
// icons/CommonIcons.tsx
|
2914
|
-
var
|
3195
|
+
var import_react12 = __toESM(require("react"));
|
2915
3196
|
var CheckMark = ({ size = "default", className }) => {
|
2916
3197
|
let sizeStyles = {
|
2917
3198
|
default: "hawa-h-5 hawa-w-5",
|
2918
3199
|
sm: "hawa-h-3 hawa-w-3"
|
2919
3200
|
};
|
2920
|
-
return /* @__PURE__ */
|
3201
|
+
return /* @__PURE__ */ import_react12.default.createElement(
|
2921
3202
|
"svg",
|
2922
3203
|
{
|
2923
3204
|
className: cn(sizeStyles[size], className),
|
@@ -2925,7 +3206,7 @@ var CheckMark = ({ size = "default", className }) => {
|
|
2925
3206
|
fill: "currentColor",
|
2926
3207
|
viewBox: "0 0 20 20"
|
2927
3208
|
},
|
2928
|
-
/* @__PURE__ */
|
3209
|
+
/* @__PURE__ */ import_react12.default.createElement(
|
2929
3210
|
"path",
|
2930
3211
|
{
|
2931
3212
|
fillRule: "evenodd",
|
@@ -2940,7 +3221,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
2940
3221
|
default: "hawa-h-5 hawa-w-5",
|
2941
3222
|
sm: "hawa-h-3 hawa-w-3"
|
2942
3223
|
};
|
2943
|
-
return /* @__PURE__ */
|
3224
|
+
return /* @__PURE__ */ import_react12.default.createElement(
|
2944
3225
|
"svg",
|
2945
3226
|
{
|
2946
3227
|
className: cn(sizeStyles[size], className),
|
@@ -2948,7 +3229,7 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
2948
3229
|
fill: "currentColor",
|
2949
3230
|
viewBox: "0 0 20 20"
|
2950
3231
|
},
|
2951
|
-
/* @__PURE__ */
|
3232
|
+
/* @__PURE__ */ import_react12.default.createElement(
|
2952
3233
|
"path",
|
2953
3234
|
{
|
2954
3235
|
fillRule: "evenodd",
|
@@ -2959,290 +3240,6 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
2959
3240
|
);
|
2960
3241
|
};
|
2961
3242
|
|
2962
|
-
// blocks/auth/AuthButtons.tsx
|
2963
|
-
var import_react12 = __toESM(require("react"));
|
2964
|
-
|
2965
|
-
// elements/logos/Logos.tsx
|
2966
|
-
var import_react11 = __toESM(require("react"));
|
2967
|
-
var Logos = {
|
2968
|
-
hawa: (props) => /* @__PURE__ */ import_react11.default.createElement(
|
2969
|
-
"svg",
|
2970
|
-
{
|
2971
|
-
xmlns: "http://www.w3.org/2000/svg",
|
2972
|
-
xmlSpace: "preserve",
|
2973
|
-
viewBox: "0 0 765 765",
|
2974
|
-
...props
|
2975
|
-
},
|
2976
|
-
/* @__PURE__ */ import_react11.default.createElement(
|
2977
|
-
"path",
|
2978
|
-
{
|
2979
|
-
d: "M382.5 0C171.6 0 0 171.6 0 382.5V765h382.5C593.4 765 765 593.4 765 382.5S593.4 0 382.5 0zM281.6 305.7c98 0 177.7 79.7 177.7 177.7 0 98-79.7 177.7-177.7 177.7s-177.7-79.7-177.7-177.7c0-98 79.7-177.7 177.7-177.7zm246 314.5c23.2-41.6 35.6-88.7 35.6-136.7 0-155.3-126.3-281.6-281.6-281.6-48 0-95.1 12.4-136.8 35.6C194.9 156 285 104 382.5 104c153.6 0 278.6 125 278.6 278.6 0 97.3-52 187.5-133.5 237.6z",
|
2980
|
-
fill: "currentColor"
|
2981
|
-
}
|
2982
|
-
)
|
2983
|
-
),
|
2984
|
-
sikka: (props) => /* @__PURE__ */ import_react11.default.createElement(
|
2985
|
-
"svg",
|
2986
|
-
{
|
2987
|
-
xmlns: "http://www.w3.org/2000/svg",
|
2988
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
2989
|
-
xmlSpace: "preserve",
|
2990
|
-
viewBox: "0 0 916.5 765",
|
2991
|
-
fill: "currentColor",
|
2992
|
-
...props
|
2993
|
-
},
|
2994
|
-
/* @__PURE__ */ import_react11.default.createElement("defs", null, /* @__PURE__ */ import_react11.default.createElement("path", { id: "a", d: "M0 0h916.5v765H0z" })),
|
2995
|
-
/* @__PURE__ */ import_react11.default.createElement("clipPath", { id: "b" }, /* @__PURE__ */ import_react11.default.createElement("use", { xlinkHref: "#a", overflow: "visible" })),
|
2996
|
-
/* @__PURE__ */ import_react11.default.createElement("g", { clipPath: "url(#b)" }, /* @__PURE__ */ import_react11.default.createElement("defs", null, /* @__PURE__ */ import_react11.default.createElement("path", { id: "c", d: "M0 0h916.5v765H0z" })), /* @__PURE__ */ import_react11.default.createElement("clipPath", { id: "d" }, /* @__PURE__ */ import_react11.default.createElement("use", { xlinkHref: "#c", overflow: "visible" })), /* @__PURE__ */ import_react11.default.createElement("g", { clipPath: "url(#d)" }, /* @__PURE__ */ import_react11.default.createElement("path", { d: "M458.3 0h-31.9c-14.6 0-26.5 11.9-26.5 26.3v313.3L136.6 17.1C126 3.9 120.7 0 106.1 0H9.7C.5 0 0 7.9 0 17.1 0 21 1.3 26.3 4 29l288.7 353.6L4 736.1c-2.7 2.7-4 7.9-4 11.8 0 9.2.4 17.1 9.7 17.1h96.4c14.6 0 19.9-3.9 30.5-17.1l263.3-322.5v313.3c0 14.4 11.9 26.3 26.5 26.3h31.9M458.3 765h31.9c14.6 0 26.5-11.8 26.5-26.3V425.5L780 748c10.7 13.2 15.9 17.1 30.5 17.1h96.4c9.2 0 9.7-7.9 9.7-17.1 0-3.9-1.3-9.2-4-11.8L623.8 382.5 912.5 28.9c2.7-2.7 4-7.9 4-11.9 0-9.2-.5-17.1-9.7-17.1h-96.4c-14.6 0-19.9 3.9-30.5 17.1L516.7 339.5V26.3c0-14.4-11.9-26.3-26.5-26.3h-31.9" })))
|
2997
|
-
),
|
2998
|
-
mail: (props) => /* @__PURE__ */ import_react11.default.createElement(
|
2999
|
-
"svg",
|
3000
|
-
{
|
3001
|
-
stroke: "currentColor",
|
3002
|
-
fill: "none",
|
3003
|
-
strokeWidth: "2",
|
3004
|
-
viewBox: "0 0 24 24",
|
3005
|
-
strokeLinecap: "round",
|
3006
|
-
strokeLinejoin: "round",
|
3007
|
-
xmlns: "http://www.w3.org/2000/svg",
|
3008
|
-
...props
|
3009
|
-
},
|
3010
|
-
/* @__PURE__ */ import_react11.default.createElement("path", { 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" }),
|
3011
|
-
/* @__PURE__ */ import_react11.default.createElement("polyline", { points: "22,6 12,13 2,6" })
|
3012
|
-
),
|
3013
|
-
phone: (props) => /* @__PURE__ */ import_react11.default.createElement(
|
3014
|
-
"svg",
|
3015
|
-
{
|
3016
|
-
stroke: "currentColor",
|
3017
|
-
fill: "none",
|
3018
|
-
strokeWidth: "2",
|
3019
|
-
viewBox: "0 0 24 24",
|
3020
|
-
"aria-hidden": "true",
|
3021
|
-
xmlns: "http://www.w3.org/2000/svg",
|
3022
|
-
...props
|
3023
|
-
},
|
3024
|
-
/* @__PURE__ */ import_react11.default.createElement(
|
3025
|
-
"path",
|
3026
|
-
{
|
3027
|
-
strokeLinecap: "round",
|
3028
|
-
strokeLinejoin: "round",
|
3029
|
-
d: "M10.5 1.5H8.25A2.25 2.25 0 006 3.75v16.5a2.25 2.25 0 002.25 2.25h7.5A2.25 2.25 0 0018 20.25V3.75a2.25 2.25 0 00-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"
|
3030
|
-
}
|
3031
|
-
)
|
3032
|
-
),
|
3033
|
-
twitter: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react11.default.createElement(
|
3034
|
-
"path",
|
3035
|
-
{
|
3036
|
-
fill: "currentColor",
|
3037
|
-
d: "M21.543 7.104c.015.211.015.423.015.636 0 6.507-4.954 14.01-14.01 14.01v-.003A13.94 13.94 0 0 1 0 19.539a9.88 9.88 0 0 0 7.287-2.041 4.93 4.93 0 0 1-4.6-3.42 4.916 4.916 0 0 0 2.223-.084A4.926 4.926 0 0 1 .96 9.167v-.062a4.887 4.887 0 0 0 2.235.616A4.928 4.928 0 0 1 1.67 3.148a13.98 13.98 0 0 0 10.15 5.144 4.929 4.929 0 0 1 8.39-4.49 9.868 9.868 0 0 0 3.128-1.196 4.941 4.941 0 0 1-2.165 2.724A9.828 9.828 0 0 0 24 4.555a10.019 10.019 0 0 1-2.457 2.549z"
|
3038
|
-
}
|
3039
|
-
)),
|
3040
|
-
instagram: (props) => /* @__PURE__ */ import_react11.default.createElement(
|
3041
|
-
"svg",
|
3042
|
-
{
|
3043
|
-
xmlns: "http://www.w3.org/2000/svg",
|
3044
|
-
fill: "currentColor",
|
3045
|
-
viewBox: "0 0 16 16",
|
3046
|
-
...props
|
3047
|
-
},
|
3048
|
-
/* @__PURE__ */ import_react11.default.createElement("path", { d: "M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z" })
|
3049
|
-
),
|
3050
|
-
microsoft: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", ...props }, /* @__PURE__ */ import_react11.default.createElement(
|
3051
|
-
"path",
|
3052
|
-
{
|
3053
|
-
fill: "currentColor",
|
3054
|
-
d: "M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"
|
3055
|
-
}
|
3056
|
-
)),
|
3057
|
-
github: (props) => /* @__PURE__ */ import_react11.default.createElement(
|
3058
|
-
"svg",
|
3059
|
-
{
|
3060
|
-
xmlns: "http://www.w3.org/2000/svg",
|
3061
|
-
viewBox: "0 0 438.549 438.549",
|
3062
|
-
...props
|
3063
|
-
},
|
3064
|
-
/* @__PURE__ */ import_react11.default.createElement(
|
3065
|
-
"path",
|
3066
|
-
{
|
3067
|
-
fill: "currentColor",
|
3068
|
-
d: "M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"
|
3069
|
-
}
|
3070
|
-
)
|
3071
|
-
),
|
3072
|
-
radix: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { viewBox: "0 0 25 25", fill: "none", ...props }, /* @__PURE__ */ import_react11.default.createElement(
|
3073
|
-
"path",
|
3074
|
-
{
|
3075
|
-
d: "M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z",
|
3076
|
-
fill: "currentcolor"
|
3077
|
-
}
|
3078
|
-
), /* @__PURE__ */ import_react11.default.createElement("path", { d: "M12 0H4V8H12V0Z", fill: "currentcolor" }), /* @__PURE__ */ import_react11.default.createElement(
|
3079
|
-
"path",
|
3080
|
-
{
|
3081
|
-
d: "M17 8C19.2091 8 21 6.20914 21 4C21 1.79086 19.2091 0 17 0C14.7909 0 13 1.79086 13 4C13 6.20914 14.7909 8 17 8Z",
|
3082
|
-
fill: "currentcolor"
|
3083
|
-
}
|
3084
|
-
)),
|
3085
|
-
aria: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", fill: "currentColor", ...props }, /* @__PURE__ */ import_react11.default.createElement("path", { d: "M13.966 22.624l-1.69-4.281H8.122l3.892-9.144 5.662 13.425zM8.884 1.376H0v21.248zm15.116 0h-8.884L24 22.624Z" })),
|
3086
|
-
npm: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react11.default.createElement(
|
3087
|
-
"path",
|
3088
|
-
{
|
3089
|
-
d: "M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z",
|
3090
|
-
fill: "currentColor"
|
3091
|
-
}
|
3092
|
-
)),
|
3093
|
-
yarn: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react11.default.createElement(
|
3094
|
-
"path",
|
3095
|
-
{
|
3096
|
-
d: "M12 0C5.375 0 0 5.375 0 12s5.375 12 12 12 12-5.375 12-12S18.625 0 12 0zm.768 4.105c.183 0 .363.053.525.157.125.083.287.185.755 1.154.31-.088.468-.042.551-.019.204.056.366.19.463.375.477.917.542 2.553.334 3.605-.241 1.232-.755 2.029-1.131 2.576.324.329.778.899 1.117 1.825.278.774.31 1.478.273 2.015a5.51 5.51 0 0 0 .602-.329c.593-.366 1.487-.917 2.553-.931.714-.009 1.269.445 1.353 1.103a1.23 1.23 0 0 1-.945 1.362c-.649.158-.95.278-1.821.843-1.232.797-2.539 1.242-3.012 1.39a1.686 1.686 0 0 1-.704.343c-.737.181-3.266.315-3.466.315h-.046c-.783 0-1.214-.241-1.45-.491-.658.329-1.51.19-2.122-.134a1.078 1.078 0 0 1-.58-1.153 1.243 1.243 0 0 1-.153-.195c-.162-.25-.528-.936-.454-1.946.056-.723.556-1.367.88-1.71a5.522 5.522 0 0 1 .408-2.256c.306-.727.885-1.348 1.32-1.737-.32-.537-.644-1.367-.329-2.21.227-.602.412-.936.82-1.08h-.005c.199-.074.389-.153.486-.259a3.418 3.418 0 0 1 2.298-1.103c.037-.093.079-.185.125-.283.31-.658.639-1.029 1.024-1.168a.94.94 0 0 1 .328-.06zm.006.7c-.507.016-1.001 1.519-1.001 1.519s-1.27-.204-2.266.871c-.199.218-.468.334-.746.44-.079.028-.176.023-.417.672-.371.991.625 2.094.625 2.094s-1.186.839-1.626 1.881c-.486 1.144-.338 2.261-.338 2.261s-.843.732-.899 1.487c-.051.663.139 1.2.343 1.515.227.343.51.176.51.176s-.561.653-.037.931c.477.25 1.283.394 1.71-.037.31-.31.371-1.001.486-1.283.028-.065.12.111.209.199.097.093.264.195.264.195s-.755.324-.445 1.066c.102.246.468.403 1.066.398.222-.005 2.664-.139 3.313-.296.375-.088.505-.283.505-.283s1.566-.431 2.998-1.357c.917-.598 1.293-.76 2.034-.936.612-.148.57-1.098-.241-1.084-.839.009-1.575.44-2.196.825-1.163.718-1.742.672-1.742.672l-.018-.032c-.079-.13.371-1.293-.134-2.678-.547-1.515-1.413-1.881-1.344-1.997.297-.5 1.038-1.297 1.334-2.78.176-.899.13-2.377-.269-3.151-.074-.144-.732.241-.732.241s-.616-1.371-.788-1.483a.271.271 0 0 0-.157-.046z",
|
3097
|
-
fill: "currentColor"
|
3098
|
-
}
|
3099
|
-
)),
|
3100
|
-
pnpm: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react11.default.createElement(
|
3101
|
-
"path",
|
3102
|
-
{
|
3103
|
-
d: "M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z",
|
3104
|
-
fill: "currentColor"
|
3105
|
-
}
|
3106
|
-
)),
|
3107
|
-
react: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react11.default.createElement(
|
3108
|
-
"path",
|
3109
|
-
{
|
3110
|
-
d: "M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z",
|
3111
|
-
fill: "currentColor"
|
3112
|
-
}
|
3113
|
-
)),
|
3114
|
-
tailwind: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react11.default.createElement(
|
3115
|
-
"path",
|
3116
|
-
{
|
3117
|
-
d: "M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z",
|
3118
|
-
fill: "currentColor"
|
3119
|
-
}
|
3120
|
-
)),
|
3121
|
-
google: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react11.default.createElement(
|
3122
|
-
"path",
|
3123
|
-
{
|
3124
|
-
fill: "currentColor",
|
3125
|
-
d: "M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"
|
3126
|
-
}
|
3127
|
-
)),
|
3128
|
-
apple: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react11.default.createElement(
|
3129
|
-
"path",
|
3130
|
-
{
|
3131
|
-
d: "M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",
|
3132
|
-
fill: "currentColor"
|
3133
|
-
}
|
3134
|
-
)),
|
3135
|
-
paypal: (props) => /* @__PURE__ */ import_react11.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ import_react11.default.createElement(
|
3136
|
-
"path",
|
3137
|
-
{
|
3138
|
-
d: "M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944.901C5.026.382 5.474 0 5.998 0h7.46c2.57 0 4.578.543 5.69 1.81 1.01 1.15 1.304 2.42 1.012 4.287-.023.143-.047.288-.077.437-.983 5.05-4.349 6.797-8.647 6.797h-2.19c-.524 0-.968.382-1.05.9l-1.12 7.106zm14.146-14.42a3.35 3.35 0 0 0-.607-.541c-.013.076-.026.175-.041.254-.93 4.778-4.005 7.201-9.138 7.201h-2.19a.563.563 0 0 0-.556.479l-1.187 7.527h-.506l-.24 1.516a.56.56 0 0 0 .554.647h3.882c.46 0 .85-.334.922-.788.06-.26.76-4.852.816-5.09a.932.932 0 0 1 .923-.788h.58c3.76 0 6.705-1.528 7.565-5.946.36-1.847.174-3.388-.777-4.471z",
|
3139
|
-
fill: "currentColor"
|
3140
|
-
}
|
3141
|
-
)),
|
3142
|
-
spinner: (props) => /* @__PURE__ */ import_react11.default.createElement(
|
3143
|
-
"svg",
|
3144
|
-
{
|
3145
|
-
xmlns: "http://www.w3.org/2000/svg",
|
3146
|
-
width: "24",
|
3147
|
-
height: "24",
|
3148
|
-
viewBox: "0 0 24 24",
|
3149
|
-
fill: "none",
|
3150
|
-
stroke: "currentColor",
|
3151
|
-
strokeWidth: "2",
|
3152
|
-
strokeLinecap: "round",
|
3153
|
-
strokeLinejoin: "round",
|
3154
|
-
...props
|
3155
|
-
},
|
3156
|
-
/* @__PURE__ */ import_react11.default.createElement("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
3157
|
-
),
|
3158
|
-
whatsapp: (props) => /* @__PURE__ */ import_react11.default.createElement(
|
3159
|
-
"svg",
|
3160
|
-
{
|
3161
|
-
xmlns: "http://www.w3.org/2000/svg",
|
3162
|
-
viewBox: "0 0 24 24",
|
3163
|
-
fill: "currentColor",
|
3164
|
-
...props
|
3165
|
-
},
|
3166
|
-
/* @__PURE__ */ import_react11.default.createElement("path", { d: "M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z" })
|
3167
|
-
)
|
3168
|
-
};
|
3169
|
-
|
3170
|
-
// blocks/auth/AuthButtons.tsx
|
3171
|
-
var AuthButtons = (props) => {
|
3172
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
3173
|
-
return /* @__PURE__ */ import_react12.default.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-4" }, props.viaGoogle && /* @__PURE__ */ import_react12.default.createElement(
|
3174
|
-
Button,
|
3175
|
-
{
|
3176
|
-
disabled: props.isGoogleLoading,
|
3177
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
3178
|
-
variant: "outline",
|
3179
|
-
onClick: props.handleGoogle
|
3180
|
-
},
|
3181
|
-
props.isGoogleLoading ? /* @__PURE__ */ import_react12.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react12.default.createElement(Logos.google, { className: "hawa-icon" }),
|
3182
|
-
(_b = (_a = props.texts) == null ? void 0 : _a.continueWithGoogle) != null ? _b : "Continue With Google"
|
3183
|
-
), props.viaGithub && /* @__PURE__ */ import_react12.default.createElement(
|
3184
|
-
Button,
|
3185
|
-
{
|
3186
|
-
disabled: props.isGithubLoading,
|
3187
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
3188
|
-
variant: "outline",
|
3189
|
-
onClick: props.handleGithub
|
3190
|
-
},
|
3191
|
-
props.isGithubLoading ? /* @__PURE__ */ import_react12.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react12.default.createElement(Logos.github, { className: "hawa-icon" }),
|
3192
|
-
(_d = (_c = props.texts) == null ? void 0 : _c.continueWithGithub) != null ? _d : "Continue With Github"
|
3193
|
-
), props.viaTwitter && /* @__PURE__ */ import_react12.default.createElement(
|
3194
|
-
Button,
|
3195
|
-
{
|
3196
|
-
disabled: props.isTwitterLoading,
|
3197
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
3198
|
-
variant: "outline",
|
3199
|
-
onClick: props.handleTwitter
|
3200
|
-
},
|
3201
|
-
props.isTwitterLoading ? /* @__PURE__ */ import_react12.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react12.default.createElement(Logos.twitter, { className: "hawa-icon" }),
|
3202
|
-
(_f = (_e = props.texts) == null ? void 0 : _e.continueWithTwitter) != null ? _f : "Continue With Twitter"
|
3203
|
-
), props.viaApple && /* @__PURE__ */ import_react12.default.createElement(
|
3204
|
-
Button,
|
3205
|
-
{
|
3206
|
-
disabled: props.isAppleLoading,
|
3207
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
3208
|
-
variant: "outline",
|
3209
|
-
onClick: props.handleApple
|
3210
|
-
},
|
3211
|
-
props.isAppleLoading ? /* @__PURE__ */ import_react12.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react12.default.createElement(Logos.apple, { className: "hawa-icon" }),
|
3212
|
-
(_h = (_g = props.texts) == null ? void 0 : _g.continueWithApple) != null ? _h : "Continue With Apple"
|
3213
|
-
), props.viaMicrosoft && /* @__PURE__ */ import_react12.default.createElement(
|
3214
|
-
Button,
|
3215
|
-
{
|
3216
|
-
disabled: props.isMicrosoftLoading,
|
3217
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
3218
|
-
variant: "outline",
|
3219
|
-
onClick: props.handleMicrosoft
|
3220
|
-
},
|
3221
|
-
props.isMicrosoftLoading ? /* @__PURE__ */ import_react12.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react12.default.createElement(Logos.microsoft, { className: "hawa-icon" }),
|
3222
|
-
(_j = (_i = props.texts) == null ? void 0 : _i.continueWithMicrosoft) != null ? _j : "Continue With Microsoft"
|
3223
|
-
), props.viaEmail && /* @__PURE__ */ import_react12.default.createElement(
|
3224
|
-
Button,
|
3225
|
-
{
|
3226
|
-
disabled: props.isEmailLoading,
|
3227
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
3228
|
-
variant: "outline",
|
3229
|
-
onClick: props.handleEmail
|
3230
|
-
},
|
3231
|
-
props.isEmailLoading ? /* @__PURE__ */ import_react12.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react12.default.createElement(Logos.mail, { className: "hawa-icon" }),
|
3232
|
-
(_l = (_k = props.texts) == null ? void 0 : _k.continueWithEmail) != null ? _l : "Continue With Email"
|
3233
|
-
), props.viaPhone && /* @__PURE__ */ import_react12.default.createElement(
|
3234
|
-
Button,
|
3235
|
-
{
|
3236
|
-
disabled: props.isPhoneLoading,
|
3237
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
3238
|
-
variant: "outline",
|
3239
|
-
onClick: props.handlePhone
|
3240
|
-
},
|
3241
|
-
props.isPhoneLoading ? /* @__PURE__ */ import_react12.default.createElement(Loading, { size: "button" }) : /* @__PURE__ */ import_react12.default.createElement(Logos.phone, { className: "hawa-icon" }),
|
3242
|
-
(_n = (_m = props.texts) == null ? void 0 : _m.continueWithPhone) != null ? _n : "Continue With Phone"
|
3243
|
-
));
|
3244
|
-
};
|
3245
|
-
|
3246
3243
|
// blocks/auth/LoginForm.tsx
|
3247
3244
|
var LoginForm = ({
|
3248
3245
|
loginType = "email",
|
@@ -4219,10 +4216,15 @@ var import_react19 = __toESM(require("react"));
|
|
4219
4216
|
var import_react_hook_form4 = require("react-hook-form");
|
4220
4217
|
var import_zod4 = require("@hookform/resolvers/zod");
|
4221
4218
|
var z4 = __toESM(require("zod"));
|
4222
|
-
var ResetPasswordForm = (
|
4219
|
+
var ResetPasswordForm = ({
|
4220
|
+
allowRegister = true,
|
4221
|
+
...props
|
4222
|
+
}) => {
|
4223
4223
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
4224
4224
|
const formSchema = z4.object({
|
4225
|
-
email: z4.string({
|
4225
|
+
email: z4.string({
|
4226
|
+
required_error: ((_b = (_a = props.texts) == null ? void 0 : _a.email) == null ? void 0 : _b.required) || "Email is required"
|
4227
|
+
}).email({ message: ((_d = (_c = props.texts) == null ? void 0 : _c.email) == null ? void 0 : _d.invalid) || "Invalid email" }).min(1, { message: ((_f = (_e = props.texts) == null ? void 0 : _e.email) == null ? void 0 : _f.required) || "Email is required" })
|
4226
4228
|
});
|
4227
4229
|
const { handleSubmit, control, formState } = (0, import_react_hook_form4.useForm)({
|
4228
4230
|
resolver: (0, import_zod4.zodResolver)(formSchema)
|
@@ -4239,7 +4241,7 @@ var ResetPasswordForm = (props) => {
|
|
4239
4241
|
}
|
4240
4242
|
})
|
4241
4243
|
},
|
4242
|
-
/* @__PURE__ */ import_react19.default.createElement(CardContent, { headless: props.headless }, /* @__PURE__ */ import_react19.default.createElement(
|
4244
|
+
/* @__PURE__ */ import_react19.default.createElement(CardContent, { headless: props.headless, className: "hawa-pb-4" }, /* @__PURE__ */ import_react19.default.createElement(
|
4243
4245
|
import_react_hook_form4.Controller,
|
4244
4246
|
{
|
4245
4247
|
control,
|
@@ -4250,7 +4252,7 @@ var ResetPasswordForm = (props) => {
|
|
4250
4252
|
Input,
|
4251
4253
|
{
|
4252
4254
|
width: "full",
|
4253
|
-
label: (_b2 = (_a2 = props.texts) == null ? void 0 : _a2.email) == null ? void 0 : _b2.label,
|
4255
|
+
label: ((_b2 = (_a2 = props.texts) == null ? void 0 : _a2.email) == null ? void 0 : _b2.label) || "Email",
|
4254
4256
|
helperText: (_c2 = formState.errors.email) == null ? void 0 : _c2.message,
|
4255
4257
|
placeholder: (_e2 = (_d2 = props.texts) == null ? void 0 : _d2.email) == null ? void 0 : _e2.placeholder,
|
4256
4258
|
...field
|
@@ -4259,7 +4261,7 @@ var ResetPasswordForm = (props) => {
|
|
4259
4261
|
}
|
4260
4262
|
}
|
4261
4263
|
)),
|
4262
|
-
/* @__PURE__ */ import_react19.default.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ import_react19.default.createElement(Button, { type: "submit", className: "hawa-w-full" }, (_i = props.texts) == null ? void 0 : _i.resetPassword),
|
4264
|
+
/* @__PURE__ */ import_react19.default.createElement(CardFooter, { className: "hawa-flex hawa-flex-col" }, /* @__PURE__ */ import_react19.default.createElement(Button, { type: "submit", className: "hawa-w-full " }, ((_i = props.texts) == null ? void 0 : _i.resetPassword) || "Reset Password"), allowRegister && /* @__PURE__ */ import_react19.default.createElement("div", { className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300" }, (_k = (_j = props.texts) == null ? void 0 : _j.dontHaveAccount) != null ? _k : "Don't have an account? ", /* @__PURE__ */ import_react19.default.createElement(
|
4263
4265
|
"span",
|
4264
4266
|
{
|
4265
4267
|
className: "clickable-link",
|
@@ -4267,7 +4269,7 @@ var ResetPasswordForm = (props) => {
|
|
4267
4269
|
},
|
4268
4270
|
(_m = (_l = props.texts) == null ? void 0 : _l.registerText) != null ? _m : "Register"
|
4269
4271
|
)))
|
4270
|
-
)) : /* @__PURE__ */ import_react19.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react19.default.createElement("div", { className: "hawa-text-center" }, (_n = props.texts) == null ? void 0 : _n.emailSentText)));
|
4272
|
+
)) : /* @__PURE__ */ import_react19.default.createElement(CardContent, { headless: true }, /* @__PURE__ */ import_react19.default.createElement("div", { className: "hawa-text-center" }, ((_n = props.texts) == null ? void 0 : _n.emailSentText) || "An email has been sent with a link to set a new password")));
|
4271
4273
|
};
|
4272
4274
|
|
4273
4275
|
// blocks/auth/CodeConfirmation.tsx
|
@@ -6892,6 +6894,7 @@ var Usage = (props) => {
|
|
6892
6894
|
AdCard,
|
6893
6895
|
Announcement,
|
6894
6896
|
AppLanding,
|
6897
|
+
AuthButtons,
|
6895
6898
|
CheckEmail,
|
6896
6899
|
CodeConfirmation,
|
6897
6900
|
ComparingPlans,
|