@sikka/hawa 0.11.8-next → 0.11.10-next
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +74 -60
- package/dist/index.d.ts +74 -60
- package/dist/index.js +981 -919
- package/dist/index.mjs +725 -644
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -466,6 +466,9 @@ __export(components_exports, {
|
|
|
466
466
|
DataTable: function() {
|
|
467
467
|
return DataTable;
|
|
468
468
|
},
|
|
469
|
+
DestroyableCard: function() {
|
|
470
|
+
return DestroyableCard;
|
|
471
|
+
},
|
|
469
472
|
Dialog: function() {
|
|
470
473
|
return Dialog;
|
|
471
474
|
},
|
|
@@ -2573,8 +2576,54 @@ var ColorPicker = function(_param) {
|
|
|
2573
2576
|
className: cn("hawa-w-24 hawa-bg-background hawa-rounded-br-lg hawa-rounded-tr-lg hawa-pl-2 hawa-pr-2", props.colorTextClassNames)
|
|
2574
2577
|
}, textInputProps)));
|
|
2575
2578
|
};
|
|
2576
|
-
// components/elements/
|
|
2579
|
+
// components/elements/DestroyableCard.tsx
|
|
2577
2580
|
var import_react18 = __toESM(require("react"));
|
|
2581
|
+
var DestroyableCard = function(_param) {
|
|
2582
|
+
var _param_position = _param.position, position = _param_position === void 0 ? "bottom-right" : _param_position, fixed = _param.fixed, direction = _param.direction, props = _object_without_properties(_param, [
|
|
2583
|
+
"position",
|
|
2584
|
+
"fixed",
|
|
2585
|
+
"direction"
|
|
2586
|
+
]);
|
|
2587
|
+
var _ref = _sliced_to_array((0, import_react18.useState)(false), 2), closed = _ref[0], setClosed = _ref[1];
|
|
2588
|
+
var popUpRef = (0, import_react18.useRef)(null);
|
|
2589
|
+
var boxPosition = {
|
|
2590
|
+
"bottom-right": "hawa-right-4 hawa-bottom-4",
|
|
2591
|
+
"bottom-left": "hawa-left-4 hawa-bottom-4"
|
|
2592
|
+
};
|
|
2593
|
+
return /* @__PURE__ */ import_react18.default.createElement("div", {
|
|
2594
|
+
className: cn("hawa-transition-all", closed ? "hawa-opacity-0" : "hawa-opacity-100"),
|
|
2595
|
+
ref: popUpRef
|
|
2596
|
+
}, /* @__PURE__ */ import_react18.default.createElement(Card, {
|
|
2597
|
+
className: cn(fixed ? "hawa-fixed" : "hawa-relative", fixed && position && boxPosition[position]),
|
|
2598
|
+
dir: direction
|
|
2599
|
+
}, /* @__PURE__ */ import_react18.default.createElement("button", {
|
|
2600
|
+
type: "button",
|
|
2601
|
+
className: cn(direction === "rtl" ? "hawa-left-2" : "hawa-right-2", "hawa-absolute hawa-top-2 hawa-inline-flex hawa-h-8 hawa-w-8 hawa-rounded hawa-p-1.5 hawa-text-gray-400 hawa-transition-all hover:hawa-bg-gray-100 hover:hawa-text-gray-900 focus:hawa-ring-2 focus:hawa-ring-gray-300 dark:hawa-bg-gray-800 dark:hawa-text-gray-500 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-white"),
|
|
2602
|
+
"data-dismiss-target": "#destroyable-card",
|
|
2603
|
+
"aria-label": "Close",
|
|
2604
|
+
onClick: function() {
|
|
2605
|
+
setClosed(true);
|
|
2606
|
+
setTimeout(function() {
|
|
2607
|
+
if (popUpRef === null || popUpRef === void 0 ? void 0 : popUpRef.current) {
|
|
2608
|
+
popUpRef === null || popUpRef === void 0 ? void 0 : popUpRef.current.removeChild(popUpRef === null || popUpRef === void 0 ? void 0 : popUpRef.current.children[0]);
|
|
2609
|
+
}
|
|
2610
|
+
}, 200);
|
|
2611
|
+
}
|
|
2612
|
+
}, /* @__PURE__ */ import_react18.default.createElement("svg", {
|
|
2613
|
+
"aria-hidden": "true",
|
|
2614
|
+
className: "hawa-h-5 hawa-w-5",
|
|
2615
|
+
fill: "currentColor",
|
|
2616
|
+
viewBox: "0 0 20 20"
|
|
2617
|
+
}, /* @__PURE__ */ import_react18.default.createElement("path", {
|
|
2618
|
+
fillRule: "evenodd",
|
|
2619
|
+
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
|
2620
|
+
clipRule: "evenodd"
|
|
2621
|
+
}))), /* @__PURE__ */ import_react18.default.createElement(CardContent, {
|
|
2622
|
+
headless: true
|
|
2623
|
+
}, props.children)));
|
|
2624
|
+
};
|
|
2625
|
+
// components/elements/PinInput.tsx
|
|
2626
|
+
var import_react19 = __toESM(require("react"));
|
|
2578
2627
|
var import_clsx8 = __toESM(require("clsx"));
|
|
2579
2628
|
var PinInput = function(_param) {
|
|
2580
2629
|
var label = _param.label, icon = _param.icon, digits = _param.digits, _param_width = _param.width, width = _param_width === void 0 ? "normal" : _param_width, getPins = _param.getPins, props = _object_without_properties(_param, [
|
|
@@ -2584,7 +2633,7 @@ var PinInput = function(_param) {
|
|
|
2584
2633
|
"width",
|
|
2585
2634
|
"getPins"
|
|
2586
2635
|
]);
|
|
2587
|
-
var _ref = _sliced_to_array((0,
|
|
2636
|
+
var _ref = _sliced_to_array((0, import_react19.useState)(Array.from(Array(digits))), 2), pin = _ref[0], setPin = _ref[1];
|
|
2588
2637
|
var handleKeyDown = function(e, index) {
|
|
2589
2638
|
var backTo = 0;
|
|
2590
2639
|
if (e.key === "Backspace") {
|
|
@@ -2593,7 +2642,7 @@ var PinInput = function(_param) {
|
|
|
2593
2642
|
previousInput === null || previousInput === void 0 ? void 0 : previousInput.focus();
|
|
2594
2643
|
}
|
|
2595
2644
|
};
|
|
2596
|
-
(0,
|
|
2645
|
+
(0, import_react19.useEffect)(function() {
|
|
2597
2646
|
var unfilled = pin.includes(void 0);
|
|
2598
2647
|
if (!unfilled && getPins) {
|
|
2599
2648
|
getPins(pin);
|
|
@@ -2618,13 +2667,13 @@ var PinInput = function(_param) {
|
|
|
2618
2667
|
}
|
|
2619
2668
|
}
|
|
2620
2669
|
};
|
|
2621
|
-
return /* @__PURE__ */
|
|
2670
|
+
return /* @__PURE__ */ import_react19.default.createElement("div", {
|
|
2622
2671
|
className: "hawa-flex hawa-flex-col hawa-gap-2"
|
|
2623
|
-
}, /* @__PURE__ */
|
|
2672
|
+
}, /* @__PURE__ */ import_react19.default.createElement("div", {
|
|
2624
2673
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-justify-center hawa-gap-2",
|
|
2625
2674
|
dir: "ltr"
|
|
2626
2675
|
}, pin.map(function(value, index) {
|
|
2627
|
-
return /* @__PURE__ */
|
|
2676
|
+
return /* @__PURE__ */ import_react19.default.createElement("input", _object_spread({
|
|
2628
2677
|
key: index,
|
|
2629
2678
|
type: "text",
|
|
2630
2679
|
maxLength: 1,
|
|
@@ -2642,19 +2691,19 @@ var PinInput = function(_param) {
|
|
|
2642
2691
|
return e.target.select();
|
|
2643
2692
|
}
|
|
2644
2693
|
}, props));
|
|
2645
|
-
})), props.helperText && /* @__PURE__ */
|
|
2694
|
+
})), props.helperText && /* @__PURE__ */ import_react19.default.createElement("p", {
|
|
2646
2695
|
className: "hawa-my-0 hawa-text-xs hawa-text-helper-color"
|
|
2647
2696
|
}, props.helperText));
|
|
2648
2697
|
};
|
|
2649
2698
|
// components/elements/FileDropzone.tsx
|
|
2650
|
-
var
|
|
2699
|
+
var import_react20 = __toESM(require("react"));
|
|
2651
2700
|
var import_react_dropzone = require("react-dropzone");
|
|
2652
2701
|
var import_clsx9 = __toESM(require("clsx"));
|
|
2653
2702
|
var FileDropzone = function(param) {
|
|
2654
2703
|
var texts = param.texts, files = param.files, setFiles = param.setFiles, setDeletedFiles = param.setDeletedFiles, onAcceptedFiles = param.onAcceptedFiles, errorMessages = param.errorMessages, maxFiles = param.maxFiles, accept = param.accept, showPreview = param.showPreview, onDeleteFile = param.onDeleteFile, onClearFiles = param.onClearFiles, disclaimer = param.disclaimer, maxSize = param.maxSize, label = param.label, termsLink = param.termsLink, privacyLink = param.privacyLink;
|
|
2655
2704
|
var _fileRejections__errors_, _fileRejections_;
|
|
2656
|
-
var _ref = _sliced_to_array((0,
|
|
2657
|
-
var _ref1 = _sliced_to_array((0,
|
|
2705
|
+
var _ref = _sliced_to_array((0, import_react20.useState)(0), 2), cmp = _ref[0], setCmp = _ref[1];
|
|
2706
|
+
var _ref1 = _sliced_to_array((0, import_react20.useState)(0), 2), max = _ref1[0], setMax = _ref1[1];
|
|
2658
2707
|
var _ref2 = (0, import_react_dropzone.useDropzone)({
|
|
2659
2708
|
multiple: true,
|
|
2660
2709
|
accept: accept,
|
|
@@ -2668,7 +2717,7 @@ var FileDropzone = function(param) {
|
|
|
2668
2717
|
}));
|
|
2669
2718
|
}
|
|
2670
2719
|
}), getRootProps = _ref2.getRootProps, getInputProps = _ref2.getInputProps, fileRejections = _ref2.fileRejections, acceptedFiles = _ref2.acceptedFiles, isDragActive = _ref2.isDragActive;
|
|
2671
|
-
(0,
|
|
2720
|
+
(0, import_react20.useEffect)(function() {
|
|
2672
2721
|
return function() {
|
|
2673
2722
|
files === null || files === void 0 ? void 0 : files.forEach(function(file) {
|
|
2674
2723
|
URL.revokeObjectURL(file.preview);
|
|
@@ -2677,7 +2726,7 @@ var FileDropzone = function(param) {
|
|
|
2677
2726
|
}, [
|
|
2678
2727
|
files
|
|
2679
2728
|
]);
|
|
2680
|
-
(0,
|
|
2729
|
+
(0, import_react20.useEffect)(function() {
|
|
2681
2730
|
setFiles(acceptedFiles);
|
|
2682
2731
|
}, [
|
|
2683
2732
|
acceptedFiles,
|
|
@@ -2693,7 +2742,7 @@ var FileDropzone = function(param) {
|
|
|
2693
2742
|
acceptedFiles.length = 0;
|
|
2694
2743
|
setFiles([]);
|
|
2695
2744
|
};
|
|
2696
|
-
(0,
|
|
2745
|
+
(0, import_react20.useEffect)(function() {
|
|
2697
2746
|
if (maxSize > 0) {
|
|
2698
2747
|
var k = 1024;
|
|
2699
2748
|
var sizes = [
|
|
@@ -2716,28 +2765,28 @@ var FileDropzone = function(param) {
|
|
|
2716
2765
|
var errs = fileRejections.map(function(rej, i) {
|
|
2717
2766
|
switch(rej.errors[0].code){
|
|
2718
2767
|
case "file-too-large":
|
|
2719
|
-
return /* @__PURE__ */
|
|
2768
|
+
return /* @__PURE__ */ import_react20.default.createElement(Alert, {
|
|
2720
2769
|
key: i,
|
|
2721
2770
|
text: rej.file.name,
|
|
2722
2771
|
title: texts.fileTooLarge,
|
|
2723
2772
|
severity: "error"
|
|
2724
2773
|
});
|
|
2725
2774
|
case "too-many-files":
|
|
2726
|
-
return /* @__PURE__ */
|
|
2775
|
+
return /* @__PURE__ */ import_react20.default.createElement(Alert, {
|
|
2727
2776
|
key: i,
|
|
2728
2777
|
text: rej.file.name,
|
|
2729
2778
|
title: texts.tooManyFiles,
|
|
2730
2779
|
severity: "error"
|
|
2731
2780
|
});
|
|
2732
2781
|
case "file-invalid-type":
|
|
2733
|
-
return /* @__PURE__ */
|
|
2782
|
+
return /* @__PURE__ */ import_react20.default.createElement(Alert, {
|
|
2734
2783
|
key: i,
|
|
2735
2784
|
text: rej.file.name,
|
|
2736
2785
|
title: texts.invalidFileType,
|
|
2737
2786
|
severity: "error"
|
|
2738
2787
|
});
|
|
2739
2788
|
default:
|
|
2740
|
-
return /* @__PURE__ */
|
|
2789
|
+
return /* @__PURE__ */ import_react20.default.createElement(Alert, {
|
|
2741
2790
|
key: i,
|
|
2742
2791
|
text: rej.file.name,
|
|
2743
2792
|
title: rej.errors[0].code,
|
|
@@ -2746,10 +2795,10 @@ var FileDropzone = function(param) {
|
|
|
2746
2795
|
}
|
|
2747
2796
|
});
|
|
2748
2797
|
var thumbs = files === null || files === void 0 ? void 0 : files.map(function(file, index) {
|
|
2749
|
-
return /* @__PURE__ */
|
|
2798
|
+
return /* @__PURE__ */ import_react20.default.createElement("div", {
|
|
2750
2799
|
className: "hawa-relative hawa-rounded",
|
|
2751
2800
|
key: index
|
|
2752
|
-
}, /* @__PURE__ */
|
|
2801
|
+
}, /* @__PURE__ */ import_react20.default.createElement("button", {
|
|
2753
2802
|
onClick: function(e) {
|
|
2754
2803
|
e.stopPropagation();
|
|
2755
2804
|
acceptedFiles.splice(acceptedFiles.indexOf(file), 1);
|
|
@@ -2759,18 +2808,18 @@ var FileDropzone = function(param) {
|
|
|
2759
2808
|
type: "button",
|
|
2760
2809
|
className: "hawa-absolute hawa-left-0 hawa-ml-auto hawa-inline-flex hawa-items-center hawa-rounded-inner hawa-rounded-bl-none hawa-rounded-tr-none hawa-bg-gray-900 hawa-p-1.5 hawa-text-sm hawa-text-gray-400 hawa-transition-all hover:hawa-bg-gray-200 hover:hawa-text-gray-900 dark:hover:hawa-bg-gray-600 dark:hover:hawa-text-white",
|
|
2761
2810
|
"data-modal-toggle": "defaultModal"
|
|
2762
|
-
}, /* @__PURE__ */
|
|
2811
|
+
}, /* @__PURE__ */ import_react20.default.createElement("svg", {
|
|
2763
2812
|
"aria-hidden": "true",
|
|
2764
2813
|
className: "hawa-h-5 hawa-w-5",
|
|
2765
2814
|
fill: "currentColor",
|
|
2766
2815
|
viewBox: "0 0 20 20"
|
|
2767
|
-
}, /* @__PURE__ */
|
|
2816
|
+
}, /* @__PURE__ */ import_react20.default.createElement("path", {
|
|
2768
2817
|
fillRule: "evenodd",
|
|
2769
2818
|
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
|
2770
2819
|
clipRule: "evenodd"
|
|
2771
|
-
})), /* @__PURE__ */
|
|
2820
|
+
})), /* @__PURE__ */ import_react20.default.createElement("span", {
|
|
2772
2821
|
className: "hawa-sr-only"
|
|
2773
|
-
}, "Close modal")), /* @__PURE__ */
|
|
2822
|
+
}, "Close modal")), /* @__PURE__ */ import_react20.default.createElement("div", {
|
|
2774
2823
|
style: {
|
|
2775
2824
|
display: "flex",
|
|
2776
2825
|
justifyContent: "center",
|
|
@@ -2788,13 +2837,13 @@ var FileDropzone = function(param) {
|
|
|
2788
2837
|
}));
|
|
2789
2838
|
});
|
|
2790
2839
|
var _texts_disclaimer, _texts_terms, _texts_and, _texts_privacyPolicy;
|
|
2791
|
-
return /* @__PURE__ */
|
|
2840
|
+
return /* @__PURE__ */ import_react20.default.createElement("div", null, label && /* @__PURE__ */ import_react20.default.createElement("div", {
|
|
2792
2841
|
className: "hawa-mb-2 hawa-block hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300"
|
|
2793
|
-
}, label), /* @__PURE__ */
|
|
2842
|
+
}, label), /* @__PURE__ */ import_react20.default.createElement("div", {
|
|
2794
2843
|
className: (0, import_clsx9.default)("hawa-flex hawa-flex-col hawa-justify-center hawa-rounded hawa-border hawa-border-dashed hawa-p-6 hawa-transition-all ", isDragActive ? "hawa-bg-muted" : "hawa-bg-muted/20 hover:hawa-bg-muted/50 ")
|
|
2795
|
-
}, /* @__PURE__ */
|
|
2844
|
+
}, /* @__PURE__ */ import_react20.default.createElement("div", _object_spread({}, getRootProps({})), /* @__PURE__ */ import_react20.default.createElement("p", _object_spread({}, getInputProps())), /* @__PURE__ */ import_react20.default.createElement("div", {
|
|
2796
2845
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2 hawa-pt-4 hawa-text-center"
|
|
2797
|
-
}, /* @__PURE__ */
|
|
2846
|
+
}, /* @__PURE__ */ import_react20.default.createElement("svg", {
|
|
2798
2847
|
stroke: "currentColor",
|
|
2799
2848
|
fill: "none",
|
|
2800
2849
|
strokeWidth: "2",
|
|
@@ -2803,52 +2852,52 @@ var FileDropzone = function(param) {
|
|
|
2803
2852
|
strokeLinejoin: "round",
|
|
2804
2853
|
height: "1.5em",
|
|
2805
2854
|
width: "1.5em"
|
|
2806
|
-
}, /* @__PURE__ */
|
|
2855
|
+
}, /* @__PURE__ */ import_react20.default.createElement("path", {
|
|
2807
2856
|
stroke: "none",
|
|
2808
2857
|
d: "M0 0h24v24H0z",
|
|
2809
2858
|
fill: "none"
|
|
2810
|
-
}), /* @__PURE__ */
|
|
2859
|
+
}), /* @__PURE__ */ import_react20.default.createElement("path", {
|
|
2811
2860
|
d: "M19 11v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2"
|
|
2812
|
-
}), /* @__PURE__ */
|
|
2861
|
+
}), /* @__PURE__ */ import_react20.default.createElement("path", {
|
|
2813
2862
|
d: "M13 13l9 3l-4 2l-2 4l-3 -9"
|
|
2814
|
-
}), /* @__PURE__ */
|
|
2863
|
+
}), /* @__PURE__ */ import_react20.default.createElement("path", {
|
|
2815
2864
|
d: "M3 3l0 .01"
|
|
2816
|
-
}), /* @__PURE__ */
|
|
2865
|
+
}), /* @__PURE__ */ import_react20.default.createElement("path", {
|
|
2817
2866
|
d: "M7 3l0 .01"
|
|
2818
|
-
}), /* @__PURE__ */
|
|
2867
|
+
}), /* @__PURE__ */ import_react20.default.createElement("path", {
|
|
2819
2868
|
d: "M11 3l0 .01"
|
|
2820
|
-
}), /* @__PURE__ */
|
|
2869
|
+
}), /* @__PURE__ */ import_react20.default.createElement("path", {
|
|
2821
2870
|
d: "M15 3l0 .01"
|
|
2822
|
-
}), /* @__PURE__ */
|
|
2871
|
+
}), /* @__PURE__ */ import_react20.default.createElement("path", {
|
|
2823
2872
|
d: "M3 7l0 .01"
|
|
2824
|
-
}), /* @__PURE__ */
|
|
2873
|
+
}), /* @__PURE__ */ import_react20.default.createElement("path", {
|
|
2825
2874
|
d: "M3 11l0 .01"
|
|
2826
|
-
}), /* @__PURE__ */
|
|
2875
|
+
}), /* @__PURE__ */ import_react20.default.createElement("path", {
|
|
2827
2876
|
d: "M3 15l0 .01"
|
|
2828
|
-
})), typeof texts.clickHereToUpload === "function" ? texts.clickHereToUpload() : texts.clickHereToUpload), /* @__PURE__ */
|
|
2877
|
+
})), typeof texts.clickHereToUpload === "function" ? texts.clickHereToUpload() : texts.clickHereToUpload), /* @__PURE__ */ import_react20.default.createElement("div", {
|
|
2829
2878
|
className: "hawa-pt-2 hawa-text-center hawa-text-xs hawa-select-none"
|
|
2830
|
-
}, texts.acceptedFileTypes, " ", accept.split(",")), /* @__PURE__ */
|
|
2879
|
+
}, texts.acceptedFileTypes, " ", accept.split(",")), /* @__PURE__ */ import_react20.default.createElement("div", {
|
|
2831
2880
|
className: "hawa-pb-2 hawa-pt-1 hawa-text-center hawa-text-xs hawa-select-none"
|
|
2832
|
-
}, texts.maxFileSize, " ", max)), acceptedFiles.length > 0 && /* @__PURE__ */
|
|
2881
|
+
}, texts.maxFileSize, " ", max)), acceptedFiles.length > 0 && /* @__PURE__ */ import_react20.default.createElement("div", {
|
|
2833
2882
|
className: "hawa-flex hawa-justify-center hawa-rounded-lg hawa-p-2 "
|
|
2834
|
-
}, /* @__PURE__ */
|
|
2883
|
+
}, /* @__PURE__ */ import_react20.default.createElement(Button, {
|
|
2835
2884
|
onClick: clearAllFiles
|
|
2836
|
-
}, "Clear All")), acceptedFiles.length > 0 && thumbs && showPreview ? /* @__PURE__ */
|
|
2885
|
+
}, "Clear All")), acceptedFiles.length > 0 && thumbs && showPreview ? /* @__PURE__ */ import_react20.default.createElement("aside", {
|
|
2837
2886
|
className: "hawa-flex hawa-flex-row hawa-flex-wrap hawa-justify-center hawa-gap-2 hawa-rounded-lg hawa-p-2"
|
|
2838
|
-
}, thumbs) : null, /* @__PURE__ */
|
|
2887
|
+
}, thumbs) : null, /* @__PURE__ */ import_react20.default.createElement("div", {
|
|
2839
2888
|
className: "px-4"
|
|
2840
|
-
}, ((_fileRejections_ = fileRejections[0]) === null || _fileRejections_ === void 0 ? void 0 : (_fileRejections__errors_ = _fileRejections_.errors[0]) === null || _fileRejections__errors_ === void 0 ? void 0 : _fileRejections__errors_.code) && errs)), disclaimer && /* @__PURE__ */
|
|
2889
|
+
}, ((_fileRejections_ = fileRejections[0]) === null || _fileRejections_ === void 0 ? void 0 : (_fileRejections__errors_ = _fileRejections_.errors[0]) === null || _fileRejections__errors_ === void 0 ? void 0 : _fileRejections__errors_.code) && errs)), disclaimer && /* @__PURE__ */ import_react20.default.createElement("div", {
|
|
2841
2890
|
className: "hawa-mt-2 hawa-text-sm hawa-text-muted-foreground/50"
|
|
2842
|
-
}, (_texts_disclaimer = texts.disclaimer) !== null && _texts_disclaimer !== void 0 ? _texts_disclaimer : "By uploading a file you agree to our", " ", /* @__PURE__ */
|
|
2891
|
+
}, (_texts_disclaimer = texts.disclaimer) !== null && _texts_disclaimer !== void 0 ? _texts_disclaimer : "By uploading a file you agree to our", " ", /* @__PURE__ */ import_react20.default.createElement("a", {
|
|
2843
2892
|
href: termsLink,
|
|
2844
2893
|
className: "clickable-link hawa-text-muted-foreground/50"
|
|
2845
|
-
}, (_texts_terms = texts.terms) !== null && _texts_terms !== void 0 ? _texts_terms : "Terms"), " ", (_texts_and = texts.and) !== null && _texts_and !== void 0 ? _texts_and : "and", " ", /* @__PURE__ */
|
|
2894
|
+
}, (_texts_terms = texts.terms) !== null && _texts_terms !== void 0 ? _texts_terms : "Terms"), " ", (_texts_and = texts.and) !== null && _texts_and !== void 0 ? _texts_and : "and", " ", /* @__PURE__ */ import_react20.default.createElement("a", {
|
|
2846
2895
|
href: privacyLink,
|
|
2847
2896
|
className: "clickable-link hawa-text-muted-foreground/50"
|
|
2848
2897
|
}, (_texts_privacyPolicy = texts.privacyPolicy) !== null && _texts_privacyPolicy !== void 0 ? _texts_privacyPolicy : "Privacy Policy")));
|
|
2849
2898
|
};
|
|
2850
2899
|
// components/elements/PhoneInput.tsx
|
|
2851
|
-
var
|
|
2900
|
+
var import_react22 = __toESM(require("react"));
|
|
2852
2901
|
// components/countries.ts
|
|
2853
2902
|
var countries = [
|
|
2854
2903
|
{
|
|
@@ -4543,7 +4592,7 @@ var countries = [
|
|
|
4543
4592
|
var countries_default = countries;
|
|
4544
4593
|
// components/elements/Select.tsx
|
|
4545
4594
|
var import_clsx10 = __toESM(require("clsx"));
|
|
4546
|
-
var
|
|
4595
|
+
var import_react21 = __toESM(require("react"));
|
|
4547
4596
|
var import_react_select = __toESM(require("react-select"));
|
|
4548
4597
|
var import_creatable = __toESM(require("react-select/creatable"));
|
|
4549
4598
|
var Select = function(_param) {
|
|
@@ -4553,18 +4602,18 @@ var Select = function(_param) {
|
|
|
4553
4602
|
var NoOption = function() {
|
|
4554
4603
|
var _props_texts;
|
|
4555
4604
|
var _props_texts_noOptions;
|
|
4556
|
-
return /* @__PURE__ */
|
|
4605
|
+
return /* @__PURE__ */ import_react21.default.createElement("div", null, (_props_texts_noOptions = (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.noOptions) !== null && _props_texts_noOptions !== void 0 ? _props_texts_noOptions : "No Items Found");
|
|
4557
4606
|
};
|
|
4558
4607
|
var Control = function(param) {
|
|
4559
4608
|
var children = param.children, innerProps = param.innerProps, innerRef = param.innerRef;
|
|
4560
|
-
return /* @__PURE__ */
|
|
4609
|
+
return /* @__PURE__ */ import_react21.default.createElement("div", _object_spread({
|
|
4561
4610
|
ref: innerRef,
|
|
4562
4611
|
className: (0, import_clsx10.default)("hawa-text-sm hawa-flex hawa-p-2 hawa-w-full hawa-rounded hawa-border hawa-bg-background hawa-text-gray-900 focus:hawa-border-blue-500 focus:hawa-ring-blue-500 dark:focus:hawa-ring-blue-500")
|
|
4563
4612
|
}, innerProps), children);
|
|
4564
4613
|
};
|
|
4565
4614
|
var Option = function(param) {
|
|
4566
4615
|
var children = param.children, innerProps = param.innerProps, innerRef = param.innerRef;
|
|
4567
|
-
return /* @__PURE__ */
|
|
4616
|
+
return /* @__PURE__ */ import_react21.default.createElement("div", _object_spread({
|
|
4568
4617
|
ref: innerRef,
|
|
4569
4618
|
className: cn("hawa-flex hawa-cursor-pointer hawa-select-none hawa-flex-row hawa-items-center hawa-justify-between hawa-rounded-inner hawa-p-1 hawa-px-2 hover:hawa-bg-primary hawa-transition-all hover:hawa-text-primary-foreground")
|
|
4570
4619
|
}, innerProps), children);
|
|
@@ -4578,17 +4627,17 @@ var Select = function(_param) {
|
|
|
4578
4627
|
"innerRef"
|
|
4579
4628
|
]);
|
|
4580
4629
|
var menuOpen = menuProps.selectProps.menuIsOpen;
|
|
4581
|
-
return /* @__PURE__ */
|
|
4630
|
+
return /* @__PURE__ */ import_react21.default.createElement("div", _object_spread({
|
|
4582
4631
|
className: cn("hawa-absolute hawa-shadow-md dark:dark-shadow hawa-z-10 hawa-mt-1 hawa-flex hawa-flex-col hawa-justify-start hawa-rounded hawa-border hawa-bg-background -hawa-mx-1", props.phoneCode ? "hawa-p-1.5" : "hawa-p-1.5 hawa-w-full", menuOpen && "hawa-zoom-in-95 hawa-animate-in hawa-fade-in-0 "),
|
|
4583
4632
|
ref: innerRef
|
|
4584
4633
|
}, innerProps), children);
|
|
4585
4634
|
};
|
|
4586
|
-
return /* @__PURE__ */
|
|
4635
|
+
return /* @__PURE__ */ import_react21.default.createElement("div", {
|
|
4587
4636
|
className: cn("hawa-flex hawa-flex-col hawa-gap-2", props.width === "fit" ? "hawa-w-fit" : "hawa-w-full")
|
|
4588
|
-
}, props.label && /* @__PURE__ */
|
|
4637
|
+
}, props.label && /* @__PURE__ */ import_react21.default.createElement(Label2, null, props.label), props.isLoading ? /* @__PURE__ */ import_react21.default.createElement(Skeleton, {
|
|
4589
4638
|
className: "hawa-h-[40px] hawa-w-full"
|
|
4590
4639
|
}) : !props.isCreatable ? // TODO: enable keyboard to go to the next item in the list
|
|
4591
|
-
/* @__PURE__ */
|
|
4640
|
+
/* @__PURE__ */ import_react21.default.createElement(import_react_select.default, {
|
|
4592
4641
|
noOptionsMessage: NoOption,
|
|
4593
4642
|
classNames: {
|
|
4594
4643
|
control: function() {
|
|
@@ -4633,7 +4682,7 @@ var Select = function(_param) {
|
|
|
4633
4682
|
isClearable: props.isClearable,
|
|
4634
4683
|
isMulti: props.isMulti,
|
|
4635
4684
|
isSearchable: props.isSearchable
|
|
4636
|
-
}) : /* @__PURE__ */
|
|
4685
|
+
}) : /* @__PURE__ */ import_react21.default.createElement(import_creatable.default, {
|
|
4637
4686
|
formatCreateLabel: function(inputValue) {
|
|
4638
4687
|
var _props_texts;
|
|
4639
4688
|
var _props_texts_createLabel;
|
|
@@ -4677,16 +4726,16 @@ var Select = function(_param) {
|
|
|
4677
4726
|
onInputChange: function(newValue, action) {
|
|
4678
4727
|
return props.onInputChange(newValue, action);
|
|
4679
4728
|
}
|
|
4680
|
-
}), props.helperText && /* @__PURE__ */
|
|
4729
|
+
}), props.helperText && /* @__PURE__ */ import_react21.default.createElement("p", {
|
|
4681
4730
|
className: "hawa-text-xs hawa-text-helper-color"
|
|
4682
4731
|
}, props.helperText));
|
|
4683
4732
|
};
|
|
4684
4733
|
// components/elements/PhoneInput.tsx
|
|
4685
4734
|
var PhoneInput = function(props) {
|
|
4686
|
-
var _ref = _sliced_to_array((0,
|
|
4687
|
-
var _ref1 = _sliced_to_array((0,
|
|
4688
|
-
var inputRef = (0,
|
|
4689
|
-
(0,
|
|
4735
|
+
var _ref = _sliced_to_array((0, import_react22.useState)(""), 2), phoneNumber = _ref[0], setPhoneNumber = _ref[1];
|
|
4736
|
+
var _ref1 = _sliced_to_array((0, import_react22.useState)(props.preferredCountry), 2), countryCode = _ref1[0], setCountryCode = _ref1[1];
|
|
4737
|
+
var inputRef = (0, import_react22.useRef)(null);
|
|
4738
|
+
(0, import_react22.useEffect)(function() {
|
|
4690
4739
|
if (inputRef.current) {
|
|
4691
4740
|
var _inputRef_current;
|
|
4692
4741
|
(_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
|
|
@@ -4700,12 +4749,12 @@ var PhoneInput = function(props) {
|
|
|
4700
4749
|
console.log("handleChange prop was not provided in <PhoneInput/>");
|
|
4701
4750
|
}
|
|
4702
4751
|
};
|
|
4703
|
-
return /* @__PURE__ */
|
|
4752
|
+
return /* @__PURE__ */ import_react22.default.createElement("div", {
|
|
4704
4753
|
className: "hawa-flex hawa-flex-col hawa-w-full hawa-gap-2"
|
|
4705
|
-
}, props.label && /* @__PURE__ */
|
|
4754
|
+
}, props.label && /* @__PURE__ */ import_react22.default.createElement(Label2, null, props.label), /* @__PURE__ */ import_react22.default.createElement("div", {
|
|
4706
4755
|
dir: "ltr",
|
|
4707
4756
|
className: "hawa-flex hawa-flex-row hawa-w-full"
|
|
4708
|
-
}, /* @__PURE__ */
|
|
4757
|
+
}, /* @__PURE__ */ import_react22.default.createElement(Select, {
|
|
4709
4758
|
width: "fit",
|
|
4710
4759
|
phoneCode: true,
|
|
4711
4760
|
hideIndicator: true,
|
|
@@ -4717,9 +4766,9 @@ var PhoneInput = function(props) {
|
|
|
4717
4766
|
defaultValue: props.preferredCountry,
|
|
4718
4767
|
value: countryCode === null || countryCode === void 0 ? void 0 : countryCode.label,
|
|
4719
4768
|
onChange: setCountryCode
|
|
4720
|
-
}), /* @__PURE__ */
|
|
4769
|
+
}), /* @__PURE__ */ import_react22.default.createElement("div", {
|
|
4721
4770
|
className: "hawa-flex hawa-max-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-w-full hawa-gap-0"
|
|
4722
|
-
}, /* @__PURE__ */
|
|
4771
|
+
}, /* @__PURE__ */ import_react22.default.createElement("input", {
|
|
4723
4772
|
ref: inputRef,
|
|
4724
4773
|
id: "phone-number",
|
|
4725
4774
|
className: cn("hawa-block hawa-h-[40px] hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-2 hawa-text-sm hawa-border-l-0 hawa-border-l-transparent hawa-rounded-l-none hawa-w-full"),
|
|
@@ -4727,100 +4776,100 @@ var PhoneInput = function(props) {
|
|
|
4727
4776
|
value: phoneNumber,
|
|
4728
4777
|
type: "tel",
|
|
4729
4778
|
placeholder: "531045453"
|
|
4730
|
-
}))), /* @__PURE__ */
|
|
4779
|
+
}))), /* @__PURE__ */ import_react22.default.createElement("p", {
|
|
4731
4780
|
className: cn("hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all", props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0")
|
|
4732
4781
|
}, props.helperText));
|
|
4733
4782
|
};
|
|
4734
4783
|
{}// components/elements/AppStores.tsx
|
|
4735
|
-
var
|
|
4784
|
+
var import_react23 = __toESM(require("react"));
|
|
4736
4785
|
var AppStores = function(props) {
|
|
4737
|
-
return /* @__PURE__ */
|
|
4786
|
+
return /* @__PURE__ */ import_react23.default.createElement("div", {
|
|
4738
4787
|
className: "hawa-flex hawa-justify-center"
|
|
4739
|
-
}, /* @__PURE__ */
|
|
4788
|
+
}, /* @__PURE__ */ import_react23.default.createElement("div", null, props.store === "apple" ? props.mode === "dark" ? /* @__PURE__ */ import_react23.default.createElement("div", {
|
|
4740
4789
|
className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-bg-black hawa-text-white"
|
|
4741
|
-
}, /* @__PURE__ */
|
|
4790
|
+
}, /* @__PURE__ */ import_react23.default.createElement("div", {
|
|
4742
4791
|
className: "hawa-mr-3"
|
|
4743
|
-
}, /* @__PURE__ */
|
|
4792
|
+
}, /* @__PURE__ */ import_react23.default.createElement("svg", {
|
|
4744
4793
|
viewBox: "0 0 384 512",
|
|
4745
4794
|
width: "30"
|
|
4746
|
-
}, /* @__PURE__ */
|
|
4795
|
+
}, /* @__PURE__ */ import_react23.default.createElement("path", {
|
|
4747
4796
|
fill: "currentColor",
|
|
4748
4797
|
d: "M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"
|
|
4749
|
-
}))), /* @__PURE__ */
|
|
4798
|
+
}))), /* @__PURE__ */ import_react23.default.createElement("div", null, /* @__PURE__ */ import_react23.default.createElement("div", {
|
|
4750
4799
|
className: "hawa-text-xs"
|
|
4751
|
-
}, "Download on the"), /* @__PURE__ */
|
|
4800
|
+
}, "Download on the"), /* @__PURE__ */ import_react23.default.createElement("div", {
|
|
4752
4801
|
className: "hawa-font-sans hawa--mt-1 hawa-text-2xl hawa-font-semibold"
|
|
4753
|
-
}, "App Store"))) : /* @__PURE__ */
|
|
4802
|
+
}, "App Store"))) : /* @__PURE__ */ import_react23.default.createElement("div", {
|
|
4754
4803
|
className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-border hawa-border-black hawa-bg-transparent hawa-text-black"
|
|
4755
|
-
}, /* @__PURE__ */
|
|
4804
|
+
}, /* @__PURE__ */ import_react23.default.createElement("div", {
|
|
4756
4805
|
className: "hawa-mr-3"
|
|
4757
|
-
}, /* @__PURE__ */
|
|
4806
|
+
}, /* @__PURE__ */ import_react23.default.createElement("svg", {
|
|
4758
4807
|
viewBox: "0 0 384 512",
|
|
4759
4808
|
width: "30"
|
|
4760
|
-
}, /* @__PURE__ */
|
|
4809
|
+
}, /* @__PURE__ */ import_react23.default.createElement("path", {
|
|
4761
4810
|
fill: "currentColor",
|
|
4762
4811
|
d: "M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"
|
|
4763
|
-
}))), /* @__PURE__ */
|
|
4812
|
+
}))), /* @__PURE__ */ import_react23.default.createElement("div", null, /* @__PURE__ */ import_react23.default.createElement("div", {
|
|
4764
4813
|
className: "hawa-text-xs"
|
|
4765
|
-
}, "Download on the"), /* @__PURE__ */
|
|
4814
|
+
}, "Download on the"), /* @__PURE__ */ import_react23.default.createElement("div", {
|
|
4766
4815
|
className: "hawa-font-sans hawa--mt-1 hawa-text-2xl hawa-font-semibold"
|
|
4767
|
-
}, "App Store"))) : props.mode === "dark" ? /* @__PURE__ */
|
|
4816
|
+
}, "App Store"))) : props.mode === "dark" ? /* @__PURE__ */ import_react23.default.createElement("div", {
|
|
4768
4817
|
className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-bg-black hawa-text-white"
|
|
4769
|
-
}, /* @__PURE__ */
|
|
4818
|
+
}, /* @__PURE__ */ import_react23.default.createElement("div", {
|
|
4770
4819
|
className: "hawa-mr-3"
|
|
4771
|
-
}, /* @__PURE__ */
|
|
4820
|
+
}, /* @__PURE__ */ import_react23.default.createElement("svg", {
|
|
4772
4821
|
viewBox: "30 336.7 120.9 129.2",
|
|
4773
4822
|
width: "30"
|
|
4774
|
-
}, /* @__PURE__ */
|
|
4823
|
+
}, /* @__PURE__ */ import_react23.default.createElement("path", {
|
|
4775
4824
|
fill: "#FFD400",
|
|
4776
4825
|
d: "M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"
|
|
4777
|
-
}), /* @__PURE__ */
|
|
4826
|
+
}), /* @__PURE__ */ import_react23.default.createElement("path", {
|
|
4778
4827
|
fill: "#FF3333",
|
|
4779
4828
|
d: "M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"
|
|
4780
|
-
}), /* @__PURE__ */
|
|
4829
|
+
}), /* @__PURE__ */ import_react23.default.createElement("path", {
|
|
4781
4830
|
fill: "#48FF48",
|
|
4782
4831
|
d: "M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"
|
|
4783
|
-
}), /* @__PURE__ */
|
|
4832
|
+
}), /* @__PURE__ */ import_react23.default.createElement("path", {
|
|
4784
4833
|
fill: "#3BCCFF",
|
|
4785
4834
|
d: "M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"
|
|
4786
|
-
}))), /* @__PURE__ */
|
|
4835
|
+
}))), /* @__PURE__ */ import_react23.default.createElement("div", null, /* @__PURE__ */ import_react23.default.createElement("div", {
|
|
4787
4836
|
className: "hawa-text-xs"
|
|
4788
|
-
}, "GET IT ON"), /* @__PURE__ */
|
|
4837
|
+
}, "GET IT ON"), /* @__PURE__ */ import_react23.default.createElement("div", {
|
|
4789
4838
|
className: "hawa-font-sans hawa--mt-1 hawa-text-xl hawa-font-semibold"
|
|
4790
|
-
}, "Google Play"))) : /* @__PURE__ */
|
|
4839
|
+
}, "Google Play"))) : /* @__PURE__ */ import_react23.default.createElement("div", {
|
|
4791
4840
|
className: "hawa-mt-3 hawa-flex hawa-h-14 hawa-w-48 hawa-items-center hawa-justify-center hawa-rounded-lg hawa-border hawa-border-black hawa-bg-white hawa-text-black"
|
|
4792
|
-
}, /* @__PURE__ */
|
|
4841
|
+
}, /* @__PURE__ */ import_react23.default.createElement("div", {
|
|
4793
4842
|
className: "hawa-mr-3"
|
|
4794
|
-
}, /* @__PURE__ */
|
|
4843
|
+
}, /* @__PURE__ */ import_react23.default.createElement("svg", {
|
|
4795
4844
|
viewBox: "30 336.7 120.9 129.2",
|
|
4796
4845
|
width: "30"
|
|
4797
|
-
}, /* @__PURE__ */
|
|
4846
|
+
}, /* @__PURE__ */ import_react23.default.createElement("path", {
|
|
4798
4847
|
fill: "#FFD400",
|
|
4799
4848
|
d: "M119.2,421.2c15.3-8.4,27-14.8,28-15.3c3.2-1.7,6.5-6.2,0-9.7 c-2.1-1.1-13.4-7.3-28-15.3l-20.1,20.2L119.2,421.2z"
|
|
4800
|
-
}), /* @__PURE__ */
|
|
4849
|
+
}), /* @__PURE__ */ import_react23.default.createElement("path", {
|
|
4801
4850
|
fill: "#FF3333",
|
|
4802
4851
|
d: "M99.1,401.1l-64.2,64.7c1.5,0.2,3.2-0.2,5.2-1.3 c4.2-2.3,48.8-26.7,79.1-43.3L99.1,401.1L99.1,401.1z"
|
|
4803
|
-
}), /* @__PURE__ */
|
|
4852
|
+
}), /* @__PURE__ */ import_react23.default.createElement("path", {
|
|
4804
4853
|
fill: "#48FF48",
|
|
4805
4854
|
d: "M99.1,401.1l20.1-20.2c0,0-74.6-40.7-79.1-43.1 c-1.7-1-3.6-1.3-5.3-1L99.1,401.1z"
|
|
4806
|
-
}), /* @__PURE__ */
|
|
4855
|
+
}), /* @__PURE__ */ import_react23.default.createElement("path", {
|
|
4807
4856
|
fill: "#3BCCFF",
|
|
4808
4857
|
d: "M99.1,401.1l-64.3-64.3c-2.6,0.6-4.8,2.9-4.8,7.6 c0,7.5,0,107.5,0,113.8c0,4.3,1.7,7.4,4.9,7.7L99.1,401.1z"
|
|
4809
|
-
}))), /* @__PURE__ */
|
|
4858
|
+
}))), /* @__PURE__ */ import_react23.default.createElement("div", null, /* @__PURE__ */ import_react23.default.createElement("div", {
|
|
4810
4859
|
className: "hawa-text-xs"
|
|
4811
|
-
}, "GET IT ON"), /* @__PURE__ */
|
|
4860
|
+
}, "GET IT ON"), /* @__PURE__ */ import_react23.default.createElement("div", {
|
|
4812
4861
|
className: "hawa-font-sans hawa--mt-1 hawa-text-xl hawa-font-semibold"
|
|
4813
4862
|
}, "Google Play")))));
|
|
4814
4863
|
};
|
|
4815
4864
|
// components/elements/SortButton.tsx
|
|
4816
|
-
var
|
|
4865
|
+
var import_react24 = __toESM(require("react"));
|
|
4817
4866
|
var SortButton = function(props) {
|
|
4818
|
-
return /* @__PURE__ */
|
|
4867
|
+
return /* @__PURE__ */ import_react24.default.createElement(Button, {
|
|
4819
4868
|
variant: "ghost",
|
|
4820
4869
|
centered: false,
|
|
4821
4870
|
className: cn("hawa-flex hawa-w-full hawa-flex-row hawa-justify-start hawa-gap-2 hawa-text-start hawa-items-start", props.condensed && "hawa-h-6"),
|
|
4822
4871
|
onClick: props.onSort
|
|
4823
|
-
}, props.label, /* @__PURE__ */
|
|
4872
|
+
}, props.label, /* @__PURE__ */ import_react24.default.createElement("svg", {
|
|
4824
4873
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4825
4874
|
viewBox: "0 0 24 24",
|
|
4826
4875
|
fill: "none",
|
|
@@ -4829,48 +4878,48 @@ var SortButton = function(props) {
|
|
|
4829
4878
|
strokeLinecap: "round",
|
|
4830
4879
|
strokeLinejoin: "round",
|
|
4831
4880
|
className: props.condensed ? "hawa-h-3 hawa-w-3" : "hawa-h-4 hawa-w-4"
|
|
4832
|
-
}, /* @__PURE__ */
|
|
4881
|
+
}, /* @__PURE__ */ import_react24.default.createElement("path", {
|
|
4833
4882
|
d: "m21 16-4 4-4-4"
|
|
4834
|
-
}), /* @__PURE__ */
|
|
4883
|
+
}), /* @__PURE__ */ import_react24.default.createElement("path", {
|
|
4835
4884
|
d: "M17 20V4"
|
|
4836
|
-
}), /* @__PURE__ */
|
|
4885
|
+
}), /* @__PURE__ */ import_react24.default.createElement("path", {
|
|
4837
4886
|
d: "m3 8 4-4 4 4"
|
|
4838
|
-
}), /* @__PURE__ */
|
|
4887
|
+
}), /* @__PURE__ */ import_react24.default.createElement("path", {
|
|
4839
4888
|
d: "M7 4v16"
|
|
4840
4889
|
})));
|
|
4841
4890
|
};
|
|
4842
4891
|
// components/elements/DataTable.tsx
|
|
4843
|
-
var
|
|
4892
|
+
var React38 = __toESM(require("react"));
|
|
4844
4893
|
var import_react_table = require("@tanstack/react-table");
|
|
4845
4894
|
// components/elements/Table.tsx
|
|
4846
|
-
var
|
|
4847
|
-
var Table =
|
|
4895
|
+
var React36 = __toESM(require("react"));
|
|
4896
|
+
var Table = React36.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
4848
4897
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
4849
4898
|
"className"
|
|
4850
4899
|
]);
|
|
4851
|
-
return
|
|
4900
|
+
return React36.createElement("div", {
|
|
4852
4901
|
className: "hawa-relative hawa-w-full hawa-overflow-auto hawa-rounded hawa-border"
|
|
4853
|
-
}, /* @__PURE__ */
|
|
4902
|
+
}, /* @__PURE__ */ React36.createElement("table", _object_spread({
|
|
4854
4903
|
ref: ref,
|
|
4855
4904
|
className: cn("hawa-w-full hawa-caption-bottom hawa-text-sm", className)
|
|
4856
4905
|
}, props)));
|
|
4857
4906
|
});
|
|
4858
4907
|
Table.displayName = "Table";
|
|
4859
|
-
var TableHeader =
|
|
4908
|
+
var TableHeader = React36.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
4860
4909
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
4861
4910
|
"className"
|
|
4862
4911
|
]);
|
|
4863
|
-
return
|
|
4912
|
+
return React36.createElement("thead", _object_spread({
|
|
4864
4913
|
ref: ref,
|
|
4865
4914
|
className: cn("[&_tr]:hawa-border-b", "hawa-bg-muted/50", className)
|
|
4866
4915
|
}, props));
|
|
4867
4916
|
});
|
|
4868
4917
|
TableHeader.displayName = "TableHeader";
|
|
4869
|
-
var TableHead =
|
|
4918
|
+
var TableHead = React36.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
4870
4919
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
4871
4920
|
"className"
|
|
4872
4921
|
]);
|
|
4873
|
-
return
|
|
4922
|
+
return React36.createElement("th", _object_spread({
|
|
4874
4923
|
ref: ref,
|
|
4875
4924
|
className: cn("hawa-bg-muted/60 dark:hawa-bg-muted/40 hawa-text-start hawa-align-middle hawa-font-medium hawa-text-muted-foreground [&:has([role=checkbox])]:hawa-pr-0 [&:not(:last-child)&:not(:first-child)]:hawa-border-x", props.dir === "rtl" ? "[&:not(:last-child)]:hawa-border-l" : "[&:not(:last-child)]:hawa-border-r", props.condensed ? "hawa-h-8" : "hawa-h-12", props.clickable ? "hawa-px-1" : "hawa-px-4", //First and last columns
|
|
4876
4925
|
props.clickable ? " [&:not(:last-child)&:not(:first-child)]:hawa-p-1" : "hawa-px-4", //Columns in between
|
|
@@ -4878,32 +4927,32 @@ var TableHead = React35.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
4878
4927
|
}, props));
|
|
4879
4928
|
});
|
|
4880
4929
|
TableHead.displayName = "TableHead";
|
|
4881
|
-
var TableBody =
|
|
4930
|
+
var TableBody = React36.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
4882
4931
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
4883
4932
|
"className"
|
|
4884
4933
|
]);
|
|
4885
|
-
return
|
|
4934
|
+
return React36.createElement("tbody", _object_spread({
|
|
4886
4935
|
ref: ref,
|
|
4887
4936
|
className: cn(// "[&_tr:last-child]:border-0"
|
|
4888
4937
|
"hawa-border-none", className)
|
|
4889
4938
|
}, props));
|
|
4890
4939
|
});
|
|
4891
4940
|
TableBody.displayName = "TableBody";
|
|
4892
|
-
var TableFooter =
|
|
4941
|
+
var TableFooter = React36.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
4893
4942
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
4894
4943
|
"className"
|
|
4895
4944
|
]);
|
|
4896
|
-
return
|
|
4945
|
+
return React36.createElement("tfoot", _object_spread({
|
|
4897
4946
|
ref: ref,
|
|
4898
4947
|
className: cn("hawa-bg-primary hawa-font-medium hawa-text-primary-foreground", className)
|
|
4899
4948
|
}, props));
|
|
4900
4949
|
});
|
|
4901
4950
|
TableFooter.displayName = "TableFooter";
|
|
4902
|
-
var TableRow =
|
|
4951
|
+
var TableRow = React36.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
4903
4952
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
4904
4953
|
"className"
|
|
4905
4954
|
]);
|
|
4906
|
-
return
|
|
4955
|
+
return React36.createElement("tr", _object_spread({
|
|
4907
4956
|
ref: ref,
|
|
4908
4957
|
className: cn(// "border-b",
|
|
4909
4958
|
"hawa-transition-colors data-[state=selected]:hawa-bg-muted hawa-bg-background", // hover:bg-muted/50
|
|
@@ -4911,11 +4960,11 @@ var TableRow = React35.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
4911
4960
|
}, props));
|
|
4912
4961
|
});
|
|
4913
4962
|
TableRow.displayName = "TableRow";
|
|
4914
|
-
var TableCell =
|
|
4963
|
+
var TableCell = React36.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
4915
4964
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
4916
4965
|
"className"
|
|
4917
4966
|
]);
|
|
4918
|
-
return
|
|
4967
|
+
return React36.createElement("td", _object_spread({
|
|
4919
4968
|
ref: ref,
|
|
4920
4969
|
className: cn(// "border-x",
|
|
4921
4970
|
props.condensed ? "hawa-p-0 hawa-px-4" : "hawa-p-4", "hawa-align-middle [&:has([role=checkbox])]:hawa-pr-0 ", "[&:not(:last-child)&:not(:first-child)]:hawa-border-x", // "[&:not(:last-child)]:hawa-border-r",
|
|
@@ -4923,18 +4972,18 @@ var TableCell = React35.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
4923
4972
|
}, props));
|
|
4924
4973
|
});
|
|
4925
4974
|
TableCell.displayName = "TableCell";
|
|
4926
|
-
var TableCaption =
|
|
4975
|
+
var TableCaption = React36.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
4927
4976
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
4928
4977
|
"className"
|
|
4929
4978
|
]);
|
|
4930
|
-
return
|
|
4979
|
+
return React36.createElement("caption", _object_spread({
|
|
4931
4980
|
ref: ref,
|
|
4932
4981
|
className: cn("hawa-mt-4 hawa-text-sm hawa-text-muted-foreground", className)
|
|
4933
4982
|
}, props));
|
|
4934
4983
|
});
|
|
4935
4984
|
TableCaption.displayName = "TableCaption";
|
|
4936
4985
|
// components/elements/Input.tsx
|
|
4937
|
-
var
|
|
4986
|
+
var import_react25 = __toESM(require("react"));
|
|
4938
4987
|
var Input = function(_param) {
|
|
4939
4988
|
var _param_margin = _param.margin, margin = _param_margin === void 0 ? "none" : _param_margin, _param_width = _param.width, width = _param_width === void 0 ? "full" : _param_width, _param_preview = _param.preview, preview = _param_preview === void 0 ? false : _param_preview, props = _object_without_properties(_param, [
|
|
4940
4989
|
"margin",
|
|
@@ -4955,24 +5004,24 @@ var Input = function(_param) {
|
|
|
4955
5004
|
};
|
|
4956
5005
|
var defaultStyle = "hawa-flex hawa-max-h-fit hawa-h-fit hawa-relative hawa-flex-col hawa-justify-center hawa-gap-0";
|
|
4957
5006
|
var defaultInputStyle = "hawa-block hawa-w-full hawa-rounded hawa-border hawa-transition-all hawa-bg-background hawa-p-3 hawa-text-sm ";
|
|
4958
|
-
return /* @__PURE__ */
|
|
5007
|
+
return /* @__PURE__ */ import_react25.default.createElement("div", {
|
|
4959
5008
|
className: cn(defaultStyle, marginStyles[margin], widthStyles[width], props.containerClassName, "hawa-w-full hawa-gap-2 ")
|
|
4960
|
-
}, props.label && /* @__PURE__ */
|
|
5009
|
+
}, props.label && /* @__PURE__ */ import_react25.default.createElement(Label2, {
|
|
4961
5010
|
htmlFor: props.id,
|
|
4962
5011
|
hint: props.hint,
|
|
4963
5012
|
hintSide: props.hintSide,
|
|
4964
5013
|
required: props.isRequired
|
|
4965
|
-
}, props.label), props.isLoading ? /* @__PURE__ */
|
|
5014
|
+
}, props.label), props.isLoading ? /* @__PURE__ */ import_react25.default.createElement("div", {
|
|
4966
5015
|
className: "hawa-pb-2"
|
|
4967
|
-
}, /* @__PURE__ */
|
|
5016
|
+
}, /* @__PURE__ */ import_react25.default.createElement(Skeleton, {
|
|
4968
5017
|
className: "hawa-h-[40px] hawa-w-full"
|
|
4969
|
-
})) : /* @__PURE__ */
|
|
5018
|
+
})) : /* @__PURE__ */ import_react25.default.createElement(import_react25.default.Fragment, null, /* @__PURE__ */ import_react25.default.createElement("div", {
|
|
4970
5019
|
className: cn("hawa-absolute hawa-top-[22px] hawa-h-[0.8px] hawa-w-full hawa-bg-gray-200 hawa-transition-all dark:hawa-bg-gray-800", preview ? "hawa-opacity-100" : "hawa-opacity-0")
|
|
4971
|
-
}), /* @__PURE__ */
|
|
5020
|
+
}), /* @__PURE__ */ import_react25.default.createElement(import_react25.default.Fragment, null, /* @__PURE__ */ import_react25.default.createElement("div", {
|
|
4972
5021
|
className: cn("hawa-relative")
|
|
4973
|
-
}, props.icon && /* @__PURE__ */
|
|
5022
|
+
}, props.icon && /* @__PURE__ */ import_react25.default.createElement("div", {
|
|
4974
5023
|
className: "hawa-absolute hawa-left-3 hawa-top-1/2 hawa--translate-y-1/2"
|
|
4975
|
-
}, props.icon), /* @__PURE__ */
|
|
5024
|
+
}, props.icon), /* @__PURE__ */ import_react25.default.createElement("input", {
|
|
4976
5025
|
required: true,
|
|
4977
5026
|
className: cn(defaultInputStyle, " dark:hawa-text-white", props.icon && "hawa-pl-10", "focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0", preview && "hawa-border-transparent hawa-bg-transparent hawa-px-0", (_props_inputProps = props.inputProps) === null || _props_inputProps === void 0 ? void 0 : _props_inputProps.className),
|
|
4978
5027
|
dir: props.dir,
|
|
@@ -4986,9 +5035,9 @@ var Input = function(_param) {
|
|
|
4986
5035
|
style: {
|
|
4987
5036
|
height: 40
|
|
4988
5037
|
}
|
|
4989
|
-
})), props.iconInside && /* @__PURE__ */
|
|
5038
|
+
})), props.iconInside && /* @__PURE__ */ import_react25.default.createElement("div", {
|
|
4990
5039
|
className: "hawa-absolute hawa-right-1 hawa-top-[41px] hawa--translate-y-1/2"
|
|
4991
|
-
}, props.iconInside), /* @__PURE__ */
|
|
5040
|
+
}, props.iconInside), /* @__PURE__ */ import_react25.default.createElement("p", {
|
|
4992
5041
|
className: cn("hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all", props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0")
|
|
4993
5042
|
}, props.helperText))));
|
|
4994
5043
|
};
|
|
@@ -4999,17 +5048,17 @@ var DataTable = function(_param) {
|
|
|
4999
5048
|
"data"
|
|
5000
5049
|
]);
|
|
5001
5050
|
var _props_texts, _table_getRowModel_rows, _props_texts1, _props_texts2, _props_texts3, _props_texts4, _props_texts5, _props_texts6, _props_texts7, _props_texts8, _props_texts9, _props_texts10;
|
|
5002
|
-
var
|
|
5051
|
+
var _React38_useState = _sliced_to_array(React38.useState([
|
|
5003
5052
|
{
|
|
5004
5053
|
id: props.defaultSort || "",
|
|
5005
5054
|
desc: false
|
|
5006
5055
|
}
|
|
5007
|
-
]), 2), sorting =
|
|
5008
|
-
var
|
|
5009
|
-
var
|
|
5010
|
-
var
|
|
5011
|
-
var
|
|
5012
|
-
var
|
|
5056
|
+
]), 2), sorting = _React38_useState[0], setSorting = _React38_useState[1];
|
|
5057
|
+
var _React38_useState1 = _sliced_to_array(React38.useState([]), 2), columnFilters = _React38_useState1[0], setColumnFilters = _React38_useState1[1];
|
|
5058
|
+
var _React38_useState2 = _sliced_to_array(React38.useState(""), 2), globalFilter = _React38_useState2[0], setGlobalFilter = _React38_useState2[1];
|
|
5059
|
+
var _React38_useState3 = _sliced_to_array(React38.useState({}), 2), expanded = _React38_useState3[0], setExpanded = _React38_useState3[1];
|
|
5060
|
+
var _React38_useState4 = _sliced_to_array(React38.useState({}), 2), columnVisibility = _React38_useState4[0], setColumnVisibility = _React38_useState4[1];
|
|
5061
|
+
var _React38_useState5 = _sliced_to_array(React38.useState({}), 2), rowSelection = _React38_useState5[0], setRowSelection = _React38_useState5[1];
|
|
5013
5062
|
var table = (0, import_react_table.useReactTable)({
|
|
5014
5063
|
data: data,
|
|
5015
5064
|
columns: columns,
|
|
@@ -5033,11 +5082,11 @@ var DataTable = function(_param) {
|
|
|
5033
5082
|
expanded: expanded
|
|
5034
5083
|
}
|
|
5035
5084
|
});
|
|
5036
|
-
return /* @__PURE__ */
|
|
5085
|
+
return /* @__PURE__ */ React38.createElement("div", {
|
|
5037
5086
|
className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-4"
|
|
5038
|
-
}, /* @__PURE__ */
|
|
5087
|
+
}, /* @__PURE__ */ React38.createElement("div", {
|
|
5039
5088
|
className: "hawa-flex hawa-items-center"
|
|
5040
|
-
}, /* @__PURE__ */
|
|
5089
|
+
}, /* @__PURE__ */ React38.createElement(Input, {
|
|
5041
5090
|
placeholder: (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.searchPlaceholder,
|
|
5042
5091
|
value: globalFilter !== null && globalFilter !== void 0 ? globalFilter : "",
|
|
5043
5092
|
onChange: function(event) {
|
|
@@ -5045,47 +5094,47 @@ var DataTable = function(_param) {
|
|
|
5045
5094
|
},
|
|
5046
5095
|
margin: "none",
|
|
5047
5096
|
className: "hawa-w-full md:hawa-max-w-sm"
|
|
5048
|
-
})), props.isLoading ? /* @__PURE__ */
|
|
5097
|
+
})), props.isLoading ? /* @__PURE__ */ React38.createElement(Skeleton, {
|
|
5049
5098
|
className: "hawa-h-[130px] hawa-w-full"
|
|
5050
|
-
}) : /* @__PURE__ */
|
|
5099
|
+
}) : /* @__PURE__ */ React38.createElement(React38.Fragment, null, /* @__PURE__ */ React38.createElement("div", {
|
|
5051
5100
|
className: "hawa-rounded-md"
|
|
5052
|
-
}, /* @__PURE__ */
|
|
5053
|
-
return /* @__PURE__ */
|
|
5101
|
+
}, /* @__PURE__ */ React38.createElement(Table, null, table.getAllColumns().length > 0 && /* @__PURE__ */ React38.createElement(TableHeader, null, table.getHeaderGroups().map(function(headerGroup) {
|
|
5102
|
+
return /* @__PURE__ */ React38.createElement(TableRow, {
|
|
5054
5103
|
key: headerGroup.id
|
|
5055
5104
|
}, headerGroup.headers.map(function(header) {
|
|
5056
5105
|
var _header_column_columnDef_meta;
|
|
5057
5106
|
var isSortable = (_header_column_columnDef_meta = header.column.columnDef.meta) === null || _header_column_columnDef_meta === void 0 ? void 0 : _header_column_columnDef_meta.sortable;
|
|
5058
|
-
return /* @__PURE__ */
|
|
5107
|
+
return /* @__PURE__ */ React38.createElement(TableHead, {
|
|
5059
5108
|
dir: props.direction,
|
|
5060
5109
|
condensed: props.condensed,
|
|
5061
5110
|
clickable: isSortable,
|
|
5062
5111
|
key: header.id
|
|
5063
5112
|
}, header.isPlaceholder ? null : (0, import_react_table.flexRender)(header.column.columnDef.header, header.getContext()));
|
|
5064
5113
|
}));
|
|
5065
|
-
})), /* @__PURE__ */
|
|
5066
|
-
return /* @__PURE__ */
|
|
5114
|
+
})), /* @__PURE__ */ React38.createElement(TableBody, null, ((_table_getRowModel_rows = table.getRowModel().rows) === null || _table_getRowModel_rows === void 0 ? void 0 : _table_getRowModel_rows.length) ? table.getRowModel().rows.map(function(row) {
|
|
5115
|
+
return /* @__PURE__ */ React38.createElement(TableRow, {
|
|
5067
5116
|
key: row.id,
|
|
5068
5117
|
"data-state": row.getIsSelected() && "selected"
|
|
5069
5118
|
}, row.getVisibleCells().map(function(cell) {
|
|
5070
|
-
return /* @__PURE__ */
|
|
5119
|
+
return /* @__PURE__ */ React38.createElement(TableCell, {
|
|
5071
5120
|
dir: props.direction,
|
|
5072
5121
|
condensed: props.condensed,
|
|
5073
5122
|
key: cell.id
|
|
5074
5123
|
}, (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()));
|
|
5075
5124
|
}));
|
|
5076
|
-
}) : /* @__PURE__ */
|
|
5125
|
+
}) : /* @__PURE__ */ React38.createElement(TableRow, null, /* @__PURE__ */ React38.createElement(TableCell, {
|
|
5077
5126
|
colSpan: columns.length,
|
|
5078
5127
|
className: "hawa-h-24 hawa-text-center"
|
|
5079
|
-
}, (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.noData))))), /* @__PURE__ */
|
|
5128
|
+
}, (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.noData))))), /* @__PURE__ */ React38.createElement("div", {
|
|
5080
5129
|
className: "hawa-flex hawa-items-center hawa-justify-between"
|
|
5081
|
-
}, !props.showCount && /* @__PURE__ */
|
|
5130
|
+
}, !props.showCount && /* @__PURE__ */ React38.createElement("div", {
|
|
5082
5131
|
className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm hawa-text-muted-foreground"
|
|
5083
|
-
}), props.showCount && /* @__PURE__ */
|
|
5132
|
+
}), props.showCount && /* @__PURE__ */ React38.createElement("div", {
|
|
5084
5133
|
className: "text-sm text-muted-foreground",
|
|
5085
5134
|
dir: props.direction
|
|
5086
|
-
}, /* @__PURE__ */
|
|
5135
|
+
}, /* @__PURE__ */ React38.createElement("span", null, (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.total), " ", /* @__PURE__ */ React38.createElement("span", null, table.getFilteredRowModel().rows.length)), table.getPageCount() !== 0 && /* @__PURE__ */ React38.createElement("div", {
|
|
5087
5136
|
className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 "
|
|
5088
|
-
}, /* @__PURE__ */
|
|
5137
|
+
}, /* @__PURE__ */ React38.createElement(DropdownMenu, {
|
|
5089
5138
|
size: "sm",
|
|
5090
5139
|
width: "parent",
|
|
5091
5140
|
direction: props.direction,
|
|
@@ -5111,7 +5160,7 @@ var DataTable = function(_param) {
|
|
|
5111
5160
|
value: 50
|
|
5112
5161
|
}
|
|
5113
5162
|
],
|
|
5114
|
-
trigger: /* @__PURE__ */
|
|
5163
|
+
trigger: /* @__PURE__ */ React38.createElement(Button, {
|
|
5115
5164
|
variant: "outline",
|
|
5116
5165
|
size: "icon",
|
|
5117
5166
|
className: "hawa-h-fit hawa-w-fit hawa-p-0 hawa-px-2 hawa-py-1 "
|
|
@@ -5119,17 +5168,17 @@ var DataTable = function(_param) {
|
|
|
5119
5168
|
onItemSelect: function(e) {
|
|
5120
5169
|
return table.setPageSize(Number(e));
|
|
5121
5170
|
}
|
|
5122
|
-
}), /* @__PURE__ */
|
|
5171
|
+
}), /* @__PURE__ */ React38.createElement("div", {
|
|
5123
5172
|
className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm "
|
|
5124
|
-
}, /* @__PURE__ */
|
|
5173
|
+
}, /* @__PURE__ */ React38.createElement("span", {
|
|
5125
5174
|
className: "hawa-flex hawa-items-center hawa-gap-1"
|
|
5126
|
-
}, /* @__PURE__ */
|
|
5175
|
+
}, /* @__PURE__ */ React38.createElement("div", null, (_props_texts9 = props.texts) === null || _props_texts9 === void 0 ? void 0 : _props_texts9.page), /* @__PURE__ */ React38.createElement("div", {
|
|
5127
5176
|
className: "hawa-flex hawa-flex-row hawa-gap-1"
|
|
5128
|
-
}, /* @__PURE__ */
|
|
5177
|
+
}, /* @__PURE__ */ React38.createElement("span", {
|
|
5129
5178
|
className: "hawa-font-bold"
|
|
5130
|
-
}, table.getState().pagination.pageIndex + 1), /* @__PURE__ */
|
|
5179
|
+
}, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React38.createElement("span", null, (_props_texts10 = props.texts) === null || _props_texts10 === void 0 ? void 0 : _props_texts10.of), /* @__PURE__ */ React38.createElement("span", {
|
|
5131
5180
|
className: "hawa-font-bold"
|
|
5132
|
-
}, table.getPageCount())))), /* @__PURE__ */
|
|
5181
|
+
}, table.getPageCount())))), /* @__PURE__ */ React38.createElement(Button, {
|
|
5133
5182
|
variant: "outline",
|
|
5134
5183
|
size: "smallIcon",
|
|
5135
5184
|
onClick: function() {
|
|
@@ -5137,7 +5186,7 @@ var DataTable = function(_param) {
|
|
|
5137
5186
|
},
|
|
5138
5187
|
disabled: !table.getCanPreviousPage(),
|
|
5139
5188
|
className: cn(props.direction === "ltr" && "hawa-rotate-180")
|
|
5140
|
-
}, /* @__PURE__ */
|
|
5189
|
+
}, /* @__PURE__ */ React38.createElement("svg", {
|
|
5141
5190
|
"aria-label": "Chevron Right Icon",
|
|
5142
5191
|
stroke: "currentColor",
|
|
5143
5192
|
fill: "currentColor",
|
|
@@ -5145,10 +5194,10 @@ var DataTable = function(_param) {
|
|
|
5145
5194
|
viewBox: "0 0 16 16",
|
|
5146
5195
|
height: "1em",
|
|
5147
5196
|
width: "1em"
|
|
5148
|
-
}, /* @__PURE__ */
|
|
5197
|
+
}, /* @__PURE__ */ React38.createElement("path", {
|
|
5149
5198
|
fillRule: "evenodd",
|
|
5150
5199
|
d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"
|
|
5151
|
-
}))), /* @__PURE__ */
|
|
5200
|
+
}))), /* @__PURE__ */ React38.createElement(Button, {
|
|
5152
5201
|
variant: "outline",
|
|
5153
5202
|
size: "smallIcon",
|
|
5154
5203
|
onClick: function() {
|
|
@@ -5156,7 +5205,7 @@ var DataTable = function(_param) {
|
|
|
5156
5205
|
},
|
|
5157
5206
|
disabled: !table.getCanNextPage(),
|
|
5158
5207
|
className: cn(props.direction === "rtl" && "hawa-rotate-180")
|
|
5159
|
-
}, /* @__PURE__ */
|
|
5208
|
+
}, /* @__PURE__ */ React38.createElement("svg", {
|
|
5160
5209
|
"aria-label": "Chevron Right Icon",
|
|
5161
5210
|
stroke: "currentColor",
|
|
5162
5211
|
fill: "currentColor",
|
|
@@ -5164,13 +5213,13 @@ var DataTable = function(_param) {
|
|
|
5164
5213
|
viewBox: "0 0 16 16",
|
|
5165
5214
|
height: "1em",
|
|
5166
5215
|
width: "1em"
|
|
5167
|
-
}, /* @__PURE__ */
|
|
5216
|
+
}, /* @__PURE__ */ React38.createElement("path", {
|
|
5168
5217
|
fillRule: "evenodd",
|
|
5169
5218
|
d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"
|
|
5170
5219
|
})))))));
|
|
5171
5220
|
};
|
|
5172
5221
|
// components/elements/SimpleTable.tsx
|
|
5173
|
-
var
|
|
5222
|
+
var React39 = __toESM(require("react"));
|
|
5174
5223
|
var import_react_table2 = require("@tanstack/react-table");
|
|
5175
5224
|
var SimpleTable = function(_param) {
|
|
5176
5225
|
var columns = _param.columns, data = _param.data, props = _object_without_properties(_param, [
|
|
@@ -5183,42 +5232,42 @@ var SimpleTable = function(_param) {
|
|
|
5183
5232
|
columns: columns,
|
|
5184
5233
|
getCoreRowModel: (0, import_react_table2.getCoreRowModel)()
|
|
5185
5234
|
});
|
|
5186
|
-
return /* @__PURE__ */
|
|
5235
|
+
return /* @__PURE__ */ React39.createElement("div", {
|
|
5187
5236
|
className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-4"
|
|
5188
|
-
}, props.isLoading ? /* @__PURE__ */
|
|
5237
|
+
}, props.isLoading ? /* @__PURE__ */ React39.createElement(Skeleton, {
|
|
5189
5238
|
className: "h-[130px] w-full"
|
|
5190
|
-
}) : /* @__PURE__ */
|
|
5239
|
+
}) : /* @__PURE__ */ React39.createElement(React39.Fragment, null, /* @__PURE__ */ React39.createElement("div", {
|
|
5191
5240
|
className: "hawa-rounded"
|
|
5192
|
-
}, /* @__PURE__ */
|
|
5193
|
-
return /* @__PURE__ */
|
|
5241
|
+
}, /* @__PURE__ */ React39.createElement(Table, null, table.getAllColumns().length > 0 && /* @__PURE__ */ React39.createElement(TableHeader, null, table.getHeaderGroups().map(function(headerGroup) {
|
|
5242
|
+
return /* @__PURE__ */ React39.createElement(TableRow, {
|
|
5194
5243
|
key: headerGroup.id
|
|
5195
5244
|
}, headerGroup.headers.map(function(header) {
|
|
5196
|
-
return /* @__PURE__ */
|
|
5245
|
+
return /* @__PURE__ */ React39.createElement(TableHead, {
|
|
5197
5246
|
condensed: props.condensed,
|
|
5198
5247
|
dir: props.direction,
|
|
5199
5248
|
key: header.id
|
|
5200
5249
|
}, header.isPlaceholder ? null : (0, import_react_table2.flexRender)(header.column.columnDef.header, header.getContext()));
|
|
5201
5250
|
}));
|
|
5202
|
-
})), /* @__PURE__ */
|
|
5203
|
-
return /* @__PURE__ */
|
|
5251
|
+
})), /* @__PURE__ */ React39.createElement(TableBody, null, ((_table_getRowModel_rows = table.getRowModel().rows) === null || _table_getRowModel_rows === void 0 ? void 0 : _table_getRowModel_rows.length) ? table.getRowModel().rows.map(function(row) {
|
|
5252
|
+
return /* @__PURE__ */ React39.createElement(TableRow, {
|
|
5204
5253
|
key: row.id,
|
|
5205
5254
|
"data-state": row.getIsSelected() && "selected"
|
|
5206
5255
|
}, row.getVisibleCells().map(function(cell) {
|
|
5207
|
-
return /* @__PURE__ */
|
|
5256
|
+
return /* @__PURE__ */ React39.createElement(TableCell, {
|
|
5208
5257
|
dir: props.direction,
|
|
5209
5258
|
condensed: props.condensed,
|
|
5210
5259
|
key: cell.id
|
|
5211
5260
|
}, (0, import_react_table2.flexRender)(cell.column.columnDef.cell, cell.getContext()));
|
|
5212
5261
|
}));
|
|
5213
|
-
}) : /* @__PURE__ */
|
|
5262
|
+
}) : /* @__PURE__ */ React39.createElement(TableRow, null, /* @__PURE__ */ React39.createElement(TableCell, {
|
|
5214
5263
|
colSpan: columns.length,
|
|
5215
5264
|
className: "hawa-h-24 hawa-text-center"
|
|
5216
5265
|
}, (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.noData)))))));
|
|
5217
5266
|
};
|
|
5218
5267
|
// components/elements/Accordion.tsx
|
|
5219
|
-
var
|
|
5268
|
+
var React40 = __toESM(require("react"));
|
|
5220
5269
|
var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
|
|
5221
|
-
var Accordion =
|
|
5270
|
+
var Accordion = React40.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5222
5271
|
var items = _param.items, itemClassNames = _param.itemClassNames, triggerclassNames = _param.triggerclassNames, contentclassNames = _param.contentclassNames, className = _param.className, props = _object_without_properties(_param, [
|
|
5223
5272
|
"items",
|
|
5224
5273
|
"itemClassNames",
|
|
@@ -5226,43 +5275,43 @@ var Accordion = React39.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
5226
5275
|
"contentclassNames",
|
|
5227
5276
|
"className"
|
|
5228
5277
|
]);
|
|
5229
|
-
return
|
|
5278
|
+
return React40.createElement(AccordionPrimitive.Root, {
|
|
5230
5279
|
type: props.type,
|
|
5231
5280
|
collapsible: true
|
|
5232
5281
|
}, items.map(function(item, index) {
|
|
5233
|
-
return /* @__PURE__ */
|
|
5282
|
+
return /* @__PURE__ */ React40.createElement(AccordionItem, {
|
|
5234
5283
|
className: itemClassNames,
|
|
5235
5284
|
key: index,
|
|
5236
5285
|
value: "item-".concat(index)
|
|
5237
|
-
}, /* @__PURE__ */
|
|
5286
|
+
}, /* @__PURE__ */ React40.createElement(AccordionTrigger, {
|
|
5238
5287
|
className: triggerclassNames
|
|
5239
|
-
}, item.trigger), /* @__PURE__ */
|
|
5288
|
+
}, item.trigger), /* @__PURE__ */ React40.createElement(AccordionContent, {
|
|
5240
5289
|
className: contentclassNames
|
|
5241
5290
|
}, item.content));
|
|
5242
5291
|
}));
|
|
5243
5292
|
});
|
|
5244
5293
|
Accordion.displayName = "Accordion";
|
|
5245
|
-
var AccordionItem =
|
|
5294
|
+
var AccordionItem = React40.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5246
5295
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
5247
5296
|
"className"
|
|
5248
5297
|
]);
|
|
5249
|
-
return
|
|
5298
|
+
return React40.createElement(AccordionPrimitive.Item, _object_spread({
|
|
5250
5299
|
ref: ref,
|
|
5251
5300
|
className: cn(className)
|
|
5252
5301
|
}, props));
|
|
5253
5302
|
});
|
|
5254
5303
|
AccordionItem.displayName = "AccordionItem";
|
|
5255
|
-
var AccordionTrigger =
|
|
5304
|
+
var AccordionTrigger = React40.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5256
5305
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
5257
5306
|
"className",
|
|
5258
5307
|
"children"
|
|
5259
5308
|
]);
|
|
5260
|
-
return
|
|
5309
|
+
return React40.createElement(AccordionPrimitive.Header, {
|
|
5261
5310
|
className: "hawa-flex"
|
|
5262
|
-
}, /* @__PURE__ */
|
|
5311
|
+
}, /* @__PURE__ */ React40.createElement(AccordionPrimitive.Trigger, _object_spread({
|
|
5263
5312
|
ref: ref,
|
|
5264
5313
|
className: cn("hawa-flex hawa-bg-muted/50 hawa-flex-1 hover:hawa-bg-muted hawa-items-center hawa-justify-between hawa-p-4 hawa-font-medium hawa-transition-all [&[data-state=open]>svg]:hawa-rotate-180", className)
|
|
5265
|
-
}, props), children, /* @__PURE__ */
|
|
5314
|
+
}, props), children, /* @__PURE__ */ React40.createElement("svg", {
|
|
5266
5315
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5267
5316
|
width: "24",
|
|
5268
5317
|
height: "24",
|
|
@@ -5273,26 +5322,26 @@ var AccordionTrigger = React39.forwardRef(function(_param, ref) /* @__PURE__ */
|
|
|
5273
5322
|
strokeLinecap: "round",
|
|
5274
5323
|
strokeLinejoin: "round",
|
|
5275
5324
|
className: "hawa-h-4 hawa-w-4 hawa-shrink-0 hawa-transition-transform hawa-duration-200"
|
|
5276
|
-
}, /* @__PURE__ */
|
|
5325
|
+
}, /* @__PURE__ */ React40.createElement("path", {
|
|
5277
5326
|
d: "m6 9 6 6 6-6"
|
|
5278
5327
|
}))));
|
|
5279
5328
|
});
|
|
5280
5329
|
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
5281
|
-
var AccordionContent =
|
|
5330
|
+
var AccordionContent = React40.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5282
5331
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
5283
5332
|
"className",
|
|
5284
5333
|
"children"
|
|
5285
5334
|
]);
|
|
5286
|
-
return
|
|
5335
|
+
return React40.createElement(AccordionPrimitive.Content, _object_spread({
|
|
5287
5336
|
ref: ref,
|
|
5288
5337
|
className: cn("hawa-overflow-hidden hawa-text-sm hawa-transition-all data-[state=closed]:hawa-animate-accordion-up data-[state=open]:hawa-animate-accordion-down", className)
|
|
5289
|
-
}, props), /* @__PURE__ */
|
|
5338
|
+
}, props), /* @__PURE__ */ React40.createElement("div", {
|
|
5290
5339
|
className: "hawa-bg-background hawa-border hawa-p-4"
|
|
5291
5340
|
}, children));
|
|
5292
5341
|
});
|
|
5293
5342
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
5294
5343
|
// components/elements/Separator.tsx
|
|
5295
|
-
var
|
|
5344
|
+
var React41 = __toESM(require("react"));
|
|
5296
5345
|
// node_modules/@babel/runtime/helpers/esm/extends.js
|
|
5297
5346
|
function _extends1() {
|
|
5298
5347
|
_extends1 = Object.assign ? Object.assign.bind() : function _extends(target) {
|
|
@@ -5309,14 +5358,14 @@ function _extends1() {
|
|
|
5309
5358
|
return _extends1.apply(this, arguments);
|
|
5310
5359
|
}
|
|
5311
5360
|
// node_modules/@radix-ui/react-separator/dist/index.mjs
|
|
5312
|
-
var
|
|
5361
|
+
var import_react29 = require("react");
|
|
5313
5362
|
// node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
5314
|
-
var
|
|
5363
|
+
var import_react28 = require("react");
|
|
5315
5364
|
var import_react_dom = require("react-dom");
|
|
5316
5365
|
// node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
5317
|
-
var
|
|
5366
|
+
var import_react27 = require("react");
|
|
5318
5367
|
// node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
5319
|
-
var
|
|
5368
|
+
var import_react26 = require("react");
|
|
5320
5369
|
function $6ed0406888f73fc4$var$setRef(ref, value) {
|
|
5321
5370
|
if (typeof ref === "function") ref(value);
|
|
5322
5371
|
else if (ref !== null && ref !== void 0) ref.current = value;
|
|
@@ -5332,45 +5381,45 @@ function $6ed0406888f73fc4$export$43e446d32b3d21af() {
|
|
|
5332
5381
|
};
|
|
5333
5382
|
}
|
|
5334
5383
|
// node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
5335
|
-
var $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /* @__PURE__ */ (0,
|
|
5384
|
+
var $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /* @__PURE__ */ (0, import_react27.forwardRef)(function(props, forwardedRef) {
|
|
5336
5385
|
var children = props.children, slotProps = _object_without_properties(props, [
|
|
5337
5386
|
"children"
|
|
5338
5387
|
]);
|
|
5339
|
-
var childrenArray =
|
|
5388
|
+
var childrenArray = import_react27.Children.toArray(children);
|
|
5340
5389
|
var slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);
|
|
5341
5390
|
if (slottable) {
|
|
5342
5391
|
var newElement = slottable.props.children;
|
|
5343
5392
|
var newChildren = childrenArray.map(function(child) {
|
|
5344
5393
|
if (child === slottable) {
|
|
5345
|
-
if (
|
|
5346
|
-
return /* @__PURE__ */ (0,
|
|
5394
|
+
if (import_react27.Children.count(newElement) > 1) return import_react27.Children.only(null);
|
|
5395
|
+
return /* @__PURE__ */ (0, import_react27.isValidElement)(newElement) ? newElement.props.children : null;
|
|
5347
5396
|
} else return child;
|
|
5348
5397
|
});
|
|
5349
|
-
return /* @__PURE__ */ (0,
|
|
5398
|
+
return /* @__PURE__ */ (0, import_react27.createElement)($5e63c961fc1ce211$var$SlotClone, _extends1({}, slotProps, {
|
|
5350
5399
|
ref: forwardedRef
|
|
5351
|
-
}), /* @__PURE__ */ (0,
|
|
5400
|
+
}), /* @__PURE__ */ (0, import_react27.isValidElement)(newElement) ? /* @__PURE__ */ (0, import_react27.cloneElement)(newElement, void 0, newChildren) : null);
|
|
5352
5401
|
}
|
|
5353
|
-
return /* @__PURE__ */ (0,
|
|
5402
|
+
return /* @__PURE__ */ (0, import_react27.createElement)($5e63c961fc1ce211$var$SlotClone, _extends1({}, slotProps, {
|
|
5354
5403
|
ref: forwardedRef
|
|
5355
5404
|
}), children);
|
|
5356
5405
|
});
|
|
5357
5406
|
$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = "Slot";
|
|
5358
|
-
var $5e63c961fc1ce211$var$SlotClone = /* @__PURE__ */ (0,
|
|
5407
|
+
var $5e63c961fc1ce211$var$SlotClone = /* @__PURE__ */ (0, import_react27.forwardRef)(function(props, forwardedRef) {
|
|
5359
5408
|
var children = props.children, slotProps = _object_without_properties(props, [
|
|
5360
5409
|
"children"
|
|
5361
5410
|
]);
|
|
5362
|
-
if (/* @__PURE__ */ (0,
|
|
5411
|
+
if (/* @__PURE__ */ (0, import_react27.isValidElement)(children)) return /* @__PURE__ */ (0, import_react27.cloneElement)(children, _object_spread_props(_object_spread({}, $5e63c961fc1ce211$var$mergeProps(slotProps, children.props)), {
|
|
5363
5412
|
ref: forwardedRef ? $6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref) : children.ref
|
|
5364
5413
|
}));
|
|
5365
|
-
return
|
|
5414
|
+
return import_react27.Children.count(children) > 1 ? import_react27.Children.only(null) : null;
|
|
5366
5415
|
});
|
|
5367
5416
|
$5e63c961fc1ce211$var$SlotClone.displayName = "SlotClone";
|
|
5368
5417
|
var $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = function(param) {
|
|
5369
5418
|
var children = param.children;
|
|
5370
|
-
return /* @__PURE__ */ (0,
|
|
5419
|
+
return /* @__PURE__ */ (0, import_react27.createElement)(import_react27.Fragment, null, children);
|
|
5371
5420
|
};
|
|
5372
5421
|
function $5e63c961fc1ce211$var$isSlottable(child) {
|
|
5373
|
-
return /* @__PURE__ */ (0,
|
|
5422
|
+
return /* @__PURE__ */ (0, import_react27.isValidElement)(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;
|
|
5374
5423
|
}
|
|
5375
5424
|
function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
|
|
5376
5425
|
var _loop = function(propName) {
|
|
@@ -5416,15 +5465,15 @@ var $8927f6f2acc4f386$var$NODES = [
|
|
|
5416
5465
|
"ul"
|
|
5417
5466
|
];
|
|
5418
5467
|
var $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.reduce(function(primitive, node) {
|
|
5419
|
-
var Node = /* @__PURE__ */ (0,
|
|
5468
|
+
var Node = /* @__PURE__ */ (0, import_react28.forwardRef)(function(props, forwardedRef) {
|
|
5420
5469
|
var asChild = props.asChild, primitiveProps = _object_without_properties(props, [
|
|
5421
5470
|
"asChild"
|
|
5422
5471
|
]);
|
|
5423
5472
|
var Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : node;
|
|
5424
|
-
(0,
|
|
5473
|
+
(0, import_react28.useEffect)(function() {
|
|
5425
5474
|
window[Symbol.for("radix-ui")] = true;
|
|
5426
5475
|
}, []);
|
|
5427
|
-
return /* @__PURE__ */ (0,
|
|
5476
|
+
return /* @__PURE__ */ (0, import_react28.createElement)(Comp, _extends1({}, primitiveProps, {
|
|
5428
5477
|
ref: forwardedRef
|
|
5429
5478
|
}));
|
|
5430
5479
|
});
|
|
@@ -5437,7 +5486,7 @@ var $89eedd556c436f6a$var$ORIENTATIONS = [
|
|
|
5437
5486
|
"horizontal",
|
|
5438
5487
|
"vertical"
|
|
5439
5488
|
];
|
|
5440
|
-
var $89eedd556c436f6a$export$1ff3c3f08ae963c0 = /* @__PURE__ */ (0,
|
|
5489
|
+
var $89eedd556c436f6a$export$1ff3c3f08ae963c0 = /* @__PURE__ */ (0, import_react29.forwardRef)(function(props, forwardedRef) {
|
|
5441
5490
|
var decorative = props.decorative, tmp = props.orientation, orientationProp = tmp === void 0 ? $89eedd556c436f6a$var$DEFAULT_ORIENTATION : tmp, domProps = _object_without_properties(props, [
|
|
5442
5491
|
"decorative",
|
|
5443
5492
|
"orientation"
|
|
@@ -5450,7 +5499,7 @@ var $89eedd556c436f6a$export$1ff3c3f08ae963c0 = /* @__PURE__ */ (0, import_react
|
|
|
5450
5499
|
"aria-orientation": ariaOrientation,
|
|
5451
5500
|
role: "separator"
|
|
5452
5501
|
};
|
|
5453
|
-
return /* @__PURE__ */ (0,
|
|
5502
|
+
return /* @__PURE__ */ (0, import_react29.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends1({
|
|
5454
5503
|
"data-orientation": orientation
|
|
5455
5504
|
}, semanticProps, domProps, {
|
|
5456
5505
|
ref: forwardedRef
|
|
@@ -5472,13 +5521,13 @@ function $89eedd556c436f6a$var$isValidOrientation(orientation) {
|
|
|
5472
5521
|
}
|
|
5473
5522
|
var $89eedd556c436f6a$export$be92b6f5f03c0fe9 = $89eedd556c436f6a$export$1ff3c3f08ae963c0;
|
|
5474
5523
|
// components/elements/Separator.tsx
|
|
5475
|
-
var Separator2 =
|
|
5524
|
+
var Separator2 = React41.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5476
5525
|
var className = _param.className, _param_orientation = _param.orientation, orientation = _param_orientation === void 0 ? "horizontal" : _param_orientation, _param_decorative = _param.decorative, decorative = _param_decorative === void 0 ? true : _param_decorative, props = _object_without_properties(_param, [
|
|
5477
5526
|
"className",
|
|
5478
5527
|
"orientation",
|
|
5479
5528
|
"decorative"
|
|
5480
5529
|
]);
|
|
5481
|
-
return
|
|
5530
|
+
return React41.createElement($89eedd556c436f6a$export$be92b6f5f03c0fe9, _object_spread({
|
|
5482
5531
|
ref: ref,
|
|
5483
5532
|
decorative: decorative,
|
|
5484
5533
|
orientation: orientation,
|
|
@@ -5487,17 +5536,17 @@ var Separator2 = React40.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
5487
5536
|
});
|
|
5488
5537
|
Separator2.displayName = $89eedd556c436f6a$export$be92b6f5f03c0fe9.displayName;
|
|
5489
5538
|
// components/elements/Progress.tsx
|
|
5490
|
-
var
|
|
5539
|
+
var React42 = __toESM(require("react"));
|
|
5491
5540
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
|
5492
|
-
var Progress =
|
|
5541
|
+
var Progress = React42.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5493
5542
|
var className = _param.className, value = _param.value, props = _object_without_properties(_param, [
|
|
5494
5543
|
"className",
|
|
5495
5544
|
"value"
|
|
5496
5545
|
]);
|
|
5497
|
-
return
|
|
5546
|
+
return React42.createElement(ProgressPrimitive.Root, _object_spread({
|
|
5498
5547
|
ref: ref,
|
|
5499
5548
|
className: cn("hawa-relative hawa-h-4 hawa-w-full hawa-overflow-hidden hawa-rounded hawa-bg-secondary", className)
|
|
5500
|
-
}, props), /* @__PURE__ */
|
|
5549
|
+
}, props), /* @__PURE__ */ React42.createElement(ProgressPrimitive.Indicator, {
|
|
5501
5550
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
|
5502
5551
|
style: {
|
|
5503
5552
|
transform: "translateX(-".concat(100 - (value || 0), "%)")
|
|
@@ -5506,14 +5555,14 @@ var Progress = React41.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
5506
5555
|
});
|
|
5507
5556
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
5508
5557
|
// components/elements/BackToTop.tsx
|
|
5509
|
-
var
|
|
5558
|
+
var import_react30 = __toESM(require("react"));
|
|
5510
5559
|
var import_clsx11 = require("clsx");
|
|
5511
5560
|
var BackToTop = function(_param) {
|
|
5512
5561
|
var props = _extends({}, _object_destructuring_empty(_param));
|
|
5513
|
-
var _ref = _sliced_to_array((0,
|
|
5514
|
-
var _ref1 = _sliced_to_array((0,
|
|
5515
|
-
var self = (0,
|
|
5516
|
-
var _rect = (0,
|
|
5562
|
+
var _ref = _sliced_to_array((0, import_react30.useState)(false), 2), visible = _ref[0], setVisible = _ref[1];
|
|
5563
|
+
var _ref1 = _sliced_to_array((0, import_react30.useState)(null), 2), rect = _ref1[0], _setRect = _ref1[1];
|
|
5564
|
+
var self = (0, import_react30.useRef)(null);
|
|
5565
|
+
var _rect = (0, import_react30.useRef)(rect);
|
|
5517
5566
|
var setRect = function(data) {
|
|
5518
5567
|
_rect.current = data;
|
|
5519
5568
|
_setRect(data);
|
|
@@ -5547,7 +5596,7 @@ var BackToTop = function(_param) {
|
|
|
5547
5596
|
});
|
|
5548
5597
|
}
|
|
5549
5598
|
};
|
|
5550
|
-
(0,
|
|
5599
|
+
(0, import_react30.useEffect)(function() {
|
|
5551
5600
|
if (!props.anchor.current) return;
|
|
5552
5601
|
props.anchor.current.addEventListener("scroll", onScroll);
|
|
5553
5602
|
var interval = setInterval(function() {
|
|
@@ -5582,7 +5631,7 @@ var BackToTop = function(_param) {
|
|
|
5582
5631
|
};
|
|
5583
5632
|
return style;
|
|
5584
5633
|
};
|
|
5585
|
-
return /* @__PURE__ */
|
|
5634
|
+
return /* @__PURE__ */ import_react30.default.createElement(Button, {
|
|
5586
5635
|
className: cn("hawa-fixed hawa-cursor-pointer hawa-rounded hawa-transition-all", visible ? "hawa-pointer-events-all hawa-opacity-100" : "hawa-pointer-events-none hawa-opacity-0"),
|
|
5587
5636
|
onClick: backToTop,
|
|
5588
5637
|
style: _object_spread_props(_object_spread({}, getStyles()), {
|
|
@@ -5590,147 +5639,147 @@ var BackToTop = function(_param) {
|
|
|
5590
5639
|
}),
|
|
5591
5640
|
ref: self,
|
|
5592
5641
|
size: "icon"
|
|
5593
|
-
}, /* @__PURE__ */
|
|
5642
|
+
}, /* @__PURE__ */ import_react30.default.createElement("svg", {
|
|
5594
5643
|
className: (0, import_clsx11.clsx)("hawa-h-6 hawa-w-6 hawa-shrink-0 hawa-rotate-180 hawa-transition-all disabled:hawa-bg-gray-200"),
|
|
5595
5644
|
"aria-label": "Arrow Icon",
|
|
5596
5645
|
viewBox: "0 0 20 20",
|
|
5597
5646
|
fill: "currentColor"
|
|
5598
|
-
}, /* @__PURE__ */
|
|
5647
|
+
}, /* @__PURE__ */ import_react30.default.createElement("path", {
|
|
5599
5648
|
d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"
|
|
5600
5649
|
})));
|
|
5601
5650
|
};
|
|
5602
5651
|
// components/elements/Tabs.tsx
|
|
5603
|
-
var
|
|
5652
|
+
var React44 = __toESM(require("react"));
|
|
5604
5653
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
|
5605
|
-
var TabsContext =
|
|
5654
|
+
var TabsContext = React44.createContext({
|
|
5606
5655
|
orientation: "vertical"
|
|
5607
5656
|
});
|
|
5608
|
-
var Tabs =
|
|
5657
|
+
var Tabs = React44.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5609
5658
|
var className = _param.className, orientation = _param.orientation, props = _object_without_properties(_param, [
|
|
5610
5659
|
"className",
|
|
5611
5660
|
"orientation"
|
|
5612
5661
|
]);
|
|
5613
|
-
return
|
|
5662
|
+
return React44.createElement(TabsPrimitive.Root, _object_spread({
|
|
5614
5663
|
ref: ref,
|
|
5615
5664
|
className: cn("hawa-flex hawa-gap-2", orientation === "vertical" ? "hawa-flex-row" : "hawa-flex-col", className)
|
|
5616
|
-
}, props), /* @__PURE__ */
|
|
5665
|
+
}, props), /* @__PURE__ */ React44.createElement(TabsContext.Provider, {
|
|
5617
5666
|
value: {
|
|
5618
5667
|
orientation: orientation
|
|
5619
5668
|
}
|
|
5620
5669
|
}, props.children));
|
|
5621
5670
|
});
|
|
5622
5671
|
Tabs.displayName = TabsPrimitive.Root.displayName;
|
|
5623
|
-
var TabsList =
|
|
5672
|
+
var TabsList = React44.forwardRef(function(_param, ref) {
|
|
5624
5673
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
5625
5674
|
"className"
|
|
5626
5675
|
]);
|
|
5627
|
-
var orientation =
|
|
5676
|
+
var orientation = React44.useContext(TabsContext).orientation;
|
|
5628
5677
|
console.log("orient ", orientation);
|
|
5629
|
-
return /* @__PURE__ */
|
|
5678
|
+
return /* @__PURE__ */ React44.createElement(TabsPrimitive.List, _object_spread({
|
|
5630
5679
|
ref: ref,
|
|
5631
5680
|
className: cn("hawa-flex hawa-w-fit hawa-flex-wrap hawa-items-center hawa-justify-start hawa-gap-1 hawa-rounded hawa-border hawa-bg-muted hawa-p-1 hawa-text-muted-foreground dark:hawa-border-primary/10", orientation === "vertical" ? "hawa-flex-col" : "hawa-flex-row", className)
|
|
5632
5681
|
}, props));
|
|
5633
5682
|
});
|
|
5634
5683
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
5635
|
-
var TabsTrigger =
|
|
5684
|
+
var TabsTrigger = React44.forwardRef(function(_param, ref) {
|
|
5636
5685
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
5637
5686
|
"className"
|
|
5638
5687
|
]);
|
|
5639
|
-
return /* @__PURE__ */
|
|
5688
|
+
return /* @__PURE__ */ React44.createElement(TabsPrimitive.Trigger, _object_spread({
|
|
5640
5689
|
ref: ref,
|
|
5641
5690
|
className: cn("hawa-inline-flex hawa-w-full hawa-flex-1 hawa-select-none hawa-items-center hawa-justify-center hawa-whitespace-nowrap hawa-rounded hawa-border hawa-px-3 hawa-py-1.5 hawa-text-sm hawa-font-medium hawa-ring-offset-background hawa-transition-all focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[state=active]:hawa-bg-primary data-[state=active]:hawa-text-primary-foreground data-[state=active]:hawa-shadow-sm dark:hawa-border-primary/10", className)
|
|
5642
5691
|
}, props));
|
|
5643
5692
|
});
|
|
5644
5693
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
5645
|
-
var TabsContent =
|
|
5694
|
+
var TabsContent = React44.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5646
5695
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
5647
5696
|
"className"
|
|
5648
5697
|
]);
|
|
5649
|
-
return
|
|
5698
|
+
return React44.createElement(TabsPrimitive.Content, _object_spread({
|
|
5650
5699
|
ref: ref,
|
|
5651
5700
|
className: cn("hawa-w-full hawa-ring-offset-hawa-background focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2", className)
|
|
5652
5701
|
}, props));
|
|
5653
5702
|
});
|
|
5654
5703
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
5655
5704
|
// components/elements/ScrollArea.tsx
|
|
5656
|
-
var
|
|
5705
|
+
var React45 = __toESM(require("react"));
|
|
5657
5706
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
|
5658
|
-
var ScrollArea =
|
|
5707
|
+
var ScrollArea = React45.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5659
5708
|
var className = _param.className, children = _param.children, _param_orientation = _param.orientation, orientation = _param_orientation === void 0 ? "vertical" : _param_orientation, props = _object_without_properties(_param, [
|
|
5660
5709
|
"className",
|
|
5661
5710
|
"children",
|
|
5662
5711
|
"orientation"
|
|
5663
5712
|
]);
|
|
5664
|
-
return
|
|
5713
|
+
return React45.createElement(ScrollAreaPrimitive.Root, _object_spread({
|
|
5665
5714
|
ref: ref,
|
|
5666
5715
|
className: cn("hawa-relative hawa-overflow-hidden", className)
|
|
5667
|
-
}, props), /* @__PURE__ */
|
|
5716
|
+
}, props), /* @__PURE__ */ React45.createElement(ScrollAreaPrimitive.Viewport, {
|
|
5668
5717
|
className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]"
|
|
5669
|
-
}, children), /* @__PURE__ */
|
|
5718
|
+
}, children), /* @__PURE__ */ React45.createElement(ScrollBar, {
|
|
5670
5719
|
orientation: orientation
|
|
5671
|
-
}), /* @__PURE__ */
|
|
5720
|
+
}), /* @__PURE__ */ React45.createElement(ScrollAreaPrimitive.Corner, null));
|
|
5672
5721
|
});
|
|
5673
5722
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
5674
|
-
var ScrollBar =
|
|
5723
|
+
var ScrollBar = React45.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5675
5724
|
var className = _param.className, _param_orientation = _param.orientation, orientation = _param_orientation === void 0 ? "vertical" : _param_orientation, props = _object_without_properties(_param, [
|
|
5676
5725
|
"className",
|
|
5677
5726
|
"orientation"
|
|
5678
5727
|
]);
|
|
5679
|
-
return
|
|
5728
|
+
return React45.createElement(ScrollAreaPrimitive.ScrollAreaScrollbar, _object_spread({
|
|
5680
5729
|
ref: ref,
|
|
5681
5730
|
orientation: orientation,
|
|
5682
5731
|
className: cn("hawa-flex hawa-touch-none hawa-select-none hawa-transition-colors", orientation === "vertical" && "hawa-h-full hawa-w-2.5 hawa-border-l hawa-border-l-transparent hawa-p-[1px]", orientation === "horizontal" && "hawa-h-2.5 hawa-border-t hawa-border-t-transparent hawa-p-[1px]", className)
|
|
5683
|
-
}, props), /* @__PURE__ */
|
|
5732
|
+
}, props), /* @__PURE__ */ React45.createElement(ScrollAreaPrimitive.ScrollAreaThumb, {
|
|
5684
5733
|
className: cn("hawa-relative hawa-rounded-full hawa-bg-border", orientation === "vertical" && "hawa-flex-1")
|
|
5685
5734
|
}));
|
|
5686
5735
|
});
|
|
5687
5736
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
5688
5737
|
// components/elements/Logos.tsx
|
|
5689
|
-
var
|
|
5738
|
+
var import_react31 = __toESM(require("react"));
|
|
5690
5739
|
var Logos = {
|
|
5691
5740
|
hawa: function(props) {
|
|
5692
|
-
return /* @__PURE__ */
|
|
5741
|
+
return /* @__PURE__ */ import_react31.default.createElement("svg", _object_spread({
|
|
5693
5742
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5694
5743
|
xmlSpace: "preserve",
|
|
5695
5744
|
viewBox: "0 0 765 765"
|
|
5696
|
-
}, props), /* @__PURE__ */
|
|
5745
|
+
}, props), /* @__PURE__ */ import_react31.default.createElement("path", {
|
|
5697
5746
|
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",
|
|
5698
5747
|
fill: "currentColor"
|
|
5699
5748
|
}));
|
|
5700
5749
|
},
|
|
5701
5750
|
sikka: function(props) {
|
|
5702
|
-
return /* @__PURE__ */
|
|
5751
|
+
return /* @__PURE__ */ import_react31.default.createElement("svg", _object_spread({
|
|
5703
5752
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5704
5753
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
5705
5754
|
xmlSpace: "preserve",
|
|
5706
5755
|
viewBox: "0 0 916.5 765",
|
|
5707
5756
|
fill: "currentColor"
|
|
5708
|
-
}, props), /* @__PURE__ */
|
|
5757
|
+
}, props), /* @__PURE__ */ import_react31.default.createElement("defs", null, /* @__PURE__ */ import_react31.default.createElement("path", {
|
|
5709
5758
|
id: "a",
|
|
5710
5759
|
d: "M0 0h916.5v765H0z"
|
|
5711
|
-
})), /* @__PURE__ */
|
|
5760
|
+
})), /* @__PURE__ */ import_react31.default.createElement("clipPath", {
|
|
5712
5761
|
id: "b"
|
|
5713
|
-
}, /* @__PURE__ */
|
|
5762
|
+
}, /* @__PURE__ */ import_react31.default.createElement("use", {
|
|
5714
5763
|
xlinkHref: "#a",
|
|
5715
5764
|
overflow: "visible"
|
|
5716
|
-
})), /* @__PURE__ */
|
|
5765
|
+
})), /* @__PURE__ */ import_react31.default.createElement("g", {
|
|
5717
5766
|
clipPath: "url(#b)"
|
|
5718
|
-
}, /* @__PURE__ */
|
|
5767
|
+
}, /* @__PURE__ */ import_react31.default.createElement("defs", null, /* @__PURE__ */ import_react31.default.createElement("path", {
|
|
5719
5768
|
id: "c",
|
|
5720
5769
|
d: "M0 0h916.5v765H0z"
|
|
5721
|
-
})), /* @__PURE__ */
|
|
5770
|
+
})), /* @__PURE__ */ import_react31.default.createElement("clipPath", {
|
|
5722
5771
|
id: "d"
|
|
5723
|
-
}, /* @__PURE__ */
|
|
5772
|
+
}, /* @__PURE__ */ import_react31.default.createElement("use", {
|
|
5724
5773
|
xlinkHref: "#c",
|
|
5725
5774
|
overflow: "visible"
|
|
5726
|
-
})), /* @__PURE__ */
|
|
5775
|
+
})), /* @__PURE__ */ import_react31.default.createElement("g", {
|
|
5727
5776
|
clipPath: "url(#d)"
|
|
5728
|
-
}, /* @__PURE__ */
|
|
5777
|
+
}, /* @__PURE__ */ import_react31.default.createElement("path", {
|
|
5729
5778
|
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"
|
|
5730
5779
|
}))));
|
|
5731
5780
|
},
|
|
5732
5781
|
mail: function(props) {
|
|
5733
|
-
return /* @__PURE__ */
|
|
5782
|
+
return /* @__PURE__ */ import_react31.default.createElement("svg", _object_spread({
|
|
5734
5783
|
stroke: "currentColor",
|
|
5735
5784
|
fill: "none",
|
|
5736
5785
|
"stroke-width": "2",
|
|
@@ -5740,14 +5789,14 @@ var Logos = {
|
|
|
5740
5789
|
height: "1em",
|
|
5741
5790
|
width: "1em",
|
|
5742
5791
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5743
|
-
}, props), /* @__PURE__ */
|
|
5792
|
+
}, props), /* @__PURE__ */ import_react31.default.createElement("path", {
|
|
5744
5793
|
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"
|
|
5745
|
-
}), /* @__PURE__ */
|
|
5794
|
+
}), /* @__PURE__ */ import_react31.default.createElement("polyline", {
|
|
5746
5795
|
points: "22,6 12,13 2,6"
|
|
5747
5796
|
}));
|
|
5748
5797
|
},
|
|
5749
5798
|
phone: function(props) {
|
|
5750
|
-
return /* @__PURE__ */
|
|
5799
|
+
return /* @__PURE__ */ import_react31.default.createElement("svg", _object_spread({
|
|
5751
5800
|
stroke: "currentColor",
|
|
5752
5801
|
fill: "none",
|
|
5753
5802
|
"stroke-width": "2",
|
|
@@ -5756,132 +5805,132 @@ var Logos = {
|
|
|
5756
5805
|
height: "1em",
|
|
5757
5806
|
width: "1em",
|
|
5758
5807
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5759
|
-
}, props), /* @__PURE__ */
|
|
5808
|
+
}, props), /* @__PURE__ */ import_react31.default.createElement("path", {
|
|
5760
5809
|
"stroke-linecap": "round",
|
|
5761
5810
|
"stroke-linejoin": "round",
|
|
5762
5811
|
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"
|
|
5763
5812
|
}));
|
|
5764
5813
|
},
|
|
5765
5814
|
twitter: function(props) {
|
|
5766
|
-
return /* @__PURE__ */
|
|
5815
|
+
return /* @__PURE__ */ import_react31.default.createElement("svg", _object_spread({
|
|
5767
5816
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5768
5817
|
viewBox: "0 0 24 24"
|
|
5769
|
-
}, props), /* @__PURE__ */
|
|
5818
|
+
}, props), /* @__PURE__ */ import_react31.default.createElement("path", {
|
|
5770
5819
|
fill: "currentColor",
|
|
5771
5820
|
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"
|
|
5772
5821
|
}));
|
|
5773
5822
|
},
|
|
5774
5823
|
microsoft: function(props) {
|
|
5775
|
-
return /* @__PURE__ */
|
|
5824
|
+
return /* @__PURE__ */ import_react31.default.createElement("svg", _object_spread({
|
|
5776
5825
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5777
5826
|
viewBox: "0 0 20 20"
|
|
5778
|
-
}, props), /* @__PURE__ */
|
|
5827
|
+
}, props), /* @__PURE__ */ import_react31.default.createElement("path", {
|
|
5779
5828
|
fill: "currentColor",
|
|
5780
5829
|
d: "M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"
|
|
5781
5830
|
}));
|
|
5782
5831
|
},
|
|
5783
5832
|
github: function(props) {
|
|
5784
|
-
return /* @__PURE__ */
|
|
5833
|
+
return /* @__PURE__ */ import_react31.default.createElement("svg", _object_spread({
|
|
5785
5834
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5786
5835
|
viewBox: "0 0 438.549 438.549"
|
|
5787
|
-
}, props), /* @__PURE__ */
|
|
5836
|
+
}, props), /* @__PURE__ */ import_react31.default.createElement("path", {
|
|
5788
5837
|
fill: "currentColor",
|
|
5789
5838
|
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"
|
|
5790
5839
|
}));
|
|
5791
5840
|
},
|
|
5792
5841
|
radix: function(props) {
|
|
5793
|
-
return /* @__PURE__ */
|
|
5842
|
+
return /* @__PURE__ */ import_react31.default.createElement("svg", _object_spread({
|
|
5794
5843
|
viewBox: "0 0 25 25",
|
|
5795
5844
|
fill: "none"
|
|
5796
|
-
}, props), /* @__PURE__ */
|
|
5845
|
+
}, props), /* @__PURE__ */ import_react31.default.createElement("path", {
|
|
5797
5846
|
d: "M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z",
|
|
5798
5847
|
fill: "currentcolor"
|
|
5799
|
-
}), /* @__PURE__ */
|
|
5848
|
+
}), /* @__PURE__ */ import_react31.default.createElement("path", {
|
|
5800
5849
|
d: "M12 0H4V8H12V0Z",
|
|
5801
5850
|
fill: "currentcolor"
|
|
5802
|
-
}), /* @__PURE__ */
|
|
5851
|
+
}), /* @__PURE__ */ import_react31.default.createElement("path", {
|
|
5803
5852
|
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",
|
|
5804
5853
|
fill: "currentcolor"
|
|
5805
5854
|
}));
|
|
5806
5855
|
},
|
|
5807
5856
|
aria: function(props) {
|
|
5808
|
-
return /* @__PURE__ */
|
|
5857
|
+
return /* @__PURE__ */ import_react31.default.createElement("svg", _object_spread({
|
|
5809
5858
|
role: "img",
|
|
5810
5859
|
viewBox: "0 0 24 24",
|
|
5811
5860
|
fill: "currentColor"
|
|
5812
|
-
}, props), /* @__PURE__ */
|
|
5861
|
+
}, props), /* @__PURE__ */ import_react31.default.createElement("path", {
|
|
5813
5862
|
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"
|
|
5814
5863
|
}));
|
|
5815
5864
|
},
|
|
5816
5865
|
npm: function(props) {
|
|
5817
|
-
return /* @__PURE__ */
|
|
5866
|
+
return /* @__PURE__ */ import_react31.default.createElement("svg", _object_spread({
|
|
5818
5867
|
viewBox: "0 0 24 24"
|
|
5819
|
-
}, props), /* @__PURE__ */
|
|
5868
|
+
}, props), /* @__PURE__ */ import_react31.default.createElement("path", {
|
|
5820
5869
|
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",
|
|
5821
5870
|
fill: "currentColor"
|
|
5822
5871
|
}));
|
|
5823
5872
|
},
|
|
5824
5873
|
yarn: function(props) {
|
|
5825
|
-
return /* @__PURE__ */
|
|
5874
|
+
return /* @__PURE__ */ import_react31.default.createElement("svg", _object_spread({
|
|
5826
5875
|
viewBox: "0 0 24 24"
|
|
5827
|
-
}, props), /* @__PURE__ */
|
|
5876
|
+
}, props), /* @__PURE__ */ import_react31.default.createElement("path", {
|
|
5828
5877
|
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",
|
|
5829
5878
|
fill: "currentColor"
|
|
5830
5879
|
}));
|
|
5831
5880
|
},
|
|
5832
5881
|
pnpm: function(props) {
|
|
5833
|
-
return /* @__PURE__ */
|
|
5882
|
+
return /* @__PURE__ */ import_react31.default.createElement("svg", _object_spread({
|
|
5834
5883
|
viewBox: "0 0 24 24"
|
|
5835
|
-
}, props), /* @__PURE__ */
|
|
5884
|
+
}, props), /* @__PURE__ */ import_react31.default.createElement("path", {
|
|
5836
5885
|
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",
|
|
5837
5886
|
fill: "currentColor"
|
|
5838
5887
|
}));
|
|
5839
5888
|
},
|
|
5840
5889
|
react: function(props) {
|
|
5841
|
-
return /* @__PURE__ */
|
|
5890
|
+
return /* @__PURE__ */ import_react31.default.createElement("svg", _object_spread({
|
|
5842
5891
|
viewBox: "0 0 24 24"
|
|
5843
|
-
}, props), /* @__PURE__ */
|
|
5892
|
+
}, props), /* @__PURE__ */ import_react31.default.createElement("path", {
|
|
5844
5893
|
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",
|
|
5845
5894
|
fill: "currentColor"
|
|
5846
5895
|
}));
|
|
5847
5896
|
},
|
|
5848
5897
|
tailwind: function(props) {
|
|
5849
|
-
return /* @__PURE__ */
|
|
5898
|
+
return /* @__PURE__ */ import_react31.default.createElement("svg", _object_spread({
|
|
5850
5899
|
viewBox: "0 0 24 24"
|
|
5851
|
-
}, props), /* @__PURE__ */
|
|
5900
|
+
}, props), /* @__PURE__ */ import_react31.default.createElement("path", {
|
|
5852
5901
|
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",
|
|
5853
5902
|
fill: "currentColor"
|
|
5854
5903
|
}));
|
|
5855
5904
|
},
|
|
5856
5905
|
google: function(props) {
|
|
5857
|
-
return /* @__PURE__ */
|
|
5906
|
+
return /* @__PURE__ */ import_react31.default.createElement("svg", _object_spread({
|
|
5858
5907
|
role: "img",
|
|
5859
5908
|
viewBox: "0 0 24 24"
|
|
5860
|
-
}, props), /* @__PURE__ */
|
|
5909
|
+
}, props), /* @__PURE__ */ import_react31.default.createElement("path", {
|
|
5861
5910
|
fill: "currentColor",
|
|
5862
5911
|
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"
|
|
5863
5912
|
}));
|
|
5864
5913
|
},
|
|
5865
5914
|
apple: function(props) {
|
|
5866
|
-
return /* @__PURE__ */
|
|
5915
|
+
return /* @__PURE__ */ import_react31.default.createElement("svg", _object_spread({
|
|
5867
5916
|
role: "img",
|
|
5868
5917
|
viewBox: "0 0 24 24"
|
|
5869
|
-
}, props), /* @__PURE__ */
|
|
5918
|
+
}, props), /* @__PURE__ */ import_react31.default.createElement("path", {
|
|
5870
5919
|
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",
|
|
5871
5920
|
fill: "currentColor"
|
|
5872
5921
|
}));
|
|
5873
5922
|
},
|
|
5874
5923
|
paypal: function(props) {
|
|
5875
|
-
return /* @__PURE__ */
|
|
5924
|
+
return /* @__PURE__ */ import_react31.default.createElement("svg", _object_spread({
|
|
5876
5925
|
role: "img",
|
|
5877
5926
|
viewBox: "0 0 24 24"
|
|
5878
|
-
}, props), /* @__PURE__ */
|
|
5927
|
+
}, props), /* @__PURE__ */ import_react31.default.createElement("path", {
|
|
5879
5928
|
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",
|
|
5880
5929
|
fill: "currentColor"
|
|
5881
5930
|
}));
|
|
5882
5931
|
},
|
|
5883
5932
|
spinner: function(props) {
|
|
5884
|
-
return /* @__PURE__ */
|
|
5933
|
+
return /* @__PURE__ */ import_react31.default.createElement("svg", _object_spread({
|
|
5885
5934
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5886
5935
|
width: "24",
|
|
5887
5936
|
height: "24",
|
|
@@ -5891,30 +5940,30 @@ var Logos = {
|
|
|
5891
5940
|
strokeWidth: "2",
|
|
5892
5941
|
strokeLinecap: "round",
|
|
5893
5942
|
strokeLinejoin: "round"
|
|
5894
|
-
}, props), /* @__PURE__ */
|
|
5943
|
+
}, props), /* @__PURE__ */ import_react31.default.createElement("path", {
|
|
5895
5944
|
d: "M21 12a9 9 0 1 1-6.219-8.56"
|
|
5896
5945
|
}));
|
|
5897
5946
|
},
|
|
5898
5947
|
whatsapp: function(props) {
|
|
5899
|
-
return /* @__PURE__ */
|
|
5948
|
+
return /* @__PURE__ */ import_react31.default.createElement("svg", _object_spread({
|
|
5900
5949
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5901
5950
|
width: "24",
|
|
5902
5951
|
height: "24",
|
|
5903
5952
|
viewBox: "0 0 24 24",
|
|
5904
5953
|
fill: "currentColor"
|
|
5905
|
-
}, props), /* @__PURE__ */
|
|
5954
|
+
}, props), /* @__PURE__ */ import_react31.default.createElement("path", {
|
|
5906
5955
|
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"
|
|
5907
5956
|
}));
|
|
5908
5957
|
}
|
|
5909
5958
|
};
|
|
5910
5959
|
// components/elements/Command.tsx
|
|
5911
|
-
var
|
|
5960
|
+
var React47 = __toESM(require("react"));
|
|
5912
5961
|
var import_cmdk = require("cmdk");
|
|
5913
|
-
var Command =
|
|
5962
|
+
var Command = React47.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5914
5963
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
5915
5964
|
"className"
|
|
5916
5965
|
]);
|
|
5917
|
-
return
|
|
5966
|
+
return React47.createElement(import_cmdk.Command, _object_spread({
|
|
5918
5967
|
ref: ref,
|
|
5919
5968
|
className: cn("hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-overflow-hidden hawa-rounded-md hawa-bg-popover hawa-text-popover-foreground", className)
|
|
5920
5969
|
}, props));
|
|
@@ -5924,20 +5973,20 @@ var CommandDialog = function(_param) {
|
|
|
5924
5973
|
var children = _param.children, props = _object_without_properties(_param, [
|
|
5925
5974
|
"children"
|
|
5926
5975
|
]);
|
|
5927
|
-
return /* @__PURE__ */
|
|
5976
|
+
return /* @__PURE__ */ React47.createElement(Dialog, _object_spread({}, props), /* @__PURE__ */ React47.createElement(DialogContent, {
|
|
5928
5977
|
className: "hawa-overflow-hidden hawa-p-0 hawa-shadow-lg"
|
|
5929
|
-
}, /* @__PURE__ */
|
|
5978
|
+
}, /* @__PURE__ */ React47.createElement(Command, {
|
|
5930
5979
|
className: "[&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:hawa-pt-0 [&_[cmdk-group]]:hawa-px-2 [&_[cmdk-input-wrapper]_svg]:hawa-h-5 [&_[cmdk-input-wrapper]_svg]:hawa-w-5 [&_[cmdk-input]]:hawa-h-12 [&_[cmdk-item]]:hawa-px-2 [&_[cmdk-item]]:hawa-py-3 [&_[cmdk-item]_svg]:hawa-h-5 [&_[cmdk-item]_svg]:hawa-w-5"
|
|
5931
5980
|
}, children)));
|
|
5932
5981
|
};
|
|
5933
|
-
var CommandInput =
|
|
5982
|
+
var CommandInput = React47.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5934
5983
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
5935
5984
|
"className"
|
|
5936
5985
|
]);
|
|
5937
|
-
return
|
|
5986
|
+
return React47.createElement("div", {
|
|
5938
5987
|
className: "hawa-flex hawa-items-center hawa-border-b hawa-px-3",
|
|
5939
5988
|
"cmdk-input-wrapper": ""
|
|
5940
|
-
}, /* @__PURE__ */
|
|
5989
|
+
}, /* @__PURE__ */ React47.createElement("svg", {
|
|
5941
5990
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5942
5991
|
width: "24",
|
|
5943
5992
|
height: "24",
|
|
@@ -5948,60 +5997,60 @@ var CommandInput = React46.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
5948
5997
|
strokeLinecap: "round",
|
|
5949
5998
|
strokeLinejoin: "round",
|
|
5950
5999
|
className: "hawa-mr-2 hawa-h-4 hawa-w-4 hawa-shrink-0 hawa-opacity-50"
|
|
5951
|
-
}, /* @__PURE__ */
|
|
6000
|
+
}, /* @__PURE__ */ React47.createElement("circle", {
|
|
5952
6001
|
cx: "11",
|
|
5953
6002
|
cy: "11",
|
|
5954
6003
|
r: "8"
|
|
5955
|
-
}), /* @__PURE__ */
|
|
6004
|
+
}), /* @__PURE__ */ React47.createElement("path", {
|
|
5956
6005
|
d: "m21 21-4.3-4.3"
|
|
5957
|
-
})), /* @__PURE__ */
|
|
6006
|
+
})), /* @__PURE__ */ React47.createElement(import_cmdk.Command.Input, _object_spread({
|
|
5958
6007
|
ref: ref,
|
|
5959
6008
|
className: cn("hawa-flex hawa-h-11 hawa-w-full hawa-rounded-md hawa-bg-transparent hawa-py-3 hawa-text-sm hawa-outline-none placeholder:hawa-text-muted-foreground disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50", className)
|
|
5960
6009
|
}, props)));
|
|
5961
6010
|
});
|
|
5962
6011
|
CommandInput.displayName = import_cmdk.Command.Input.displayName;
|
|
5963
|
-
var CommandList =
|
|
6012
|
+
var CommandList = React47.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5964
6013
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
5965
6014
|
"className"
|
|
5966
6015
|
]);
|
|
5967
|
-
return
|
|
6016
|
+
return React47.createElement(import_cmdk.Command.List, _object_spread({
|
|
5968
6017
|
ref: ref,
|
|
5969
6018
|
className: cn("hawa-max-h-[300px] hawa-overflow-y-auto hawa-overflow-x-hidden", className)
|
|
5970
6019
|
}, props));
|
|
5971
6020
|
});
|
|
5972
6021
|
CommandList.displayName = import_cmdk.Command.List.displayName;
|
|
5973
|
-
var CommandEmpty =
|
|
5974
|
-
return /* @__PURE__ */
|
|
6022
|
+
var CommandEmpty = React47.forwardRef(function(props, ref) {
|
|
6023
|
+
return /* @__PURE__ */ React47.createElement(import_cmdk.Command.Empty, _object_spread({
|
|
5975
6024
|
ref: ref,
|
|
5976
6025
|
className: "hawa-py-6 hawa-text-center hawa-text-sm"
|
|
5977
6026
|
}, props));
|
|
5978
6027
|
});
|
|
5979
6028
|
CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
|
|
5980
|
-
var CommandGroup =
|
|
6029
|
+
var CommandGroup = React47.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5981
6030
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
5982
6031
|
"className"
|
|
5983
6032
|
]);
|
|
5984
|
-
return
|
|
6033
|
+
return React47.createElement(import_cmdk.Command.Group, _object_spread({
|
|
5985
6034
|
ref: ref,
|
|
5986
6035
|
className: cn("hawa-overflow-hidden hawa-p-1 hawa-text-foreground [&_[cmdk-group-heading]]:hawa-px-2 [&_[cmdk-group-heading]]:hawa-py-1.5 [&_[cmdk-group-heading]]:hawa-text-xs [&_[cmdk-group-heading]]:hawa-font-medium [&_[cmdk-group-heading]]:hawa-text-muted-foreground", className)
|
|
5987
6036
|
}, props));
|
|
5988
6037
|
});
|
|
5989
6038
|
CommandGroup.displayName = import_cmdk.Command.Group.displayName;
|
|
5990
|
-
var CommandSeparator =
|
|
6039
|
+
var CommandSeparator = React47.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5991
6040
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
5992
6041
|
"className"
|
|
5993
6042
|
]);
|
|
5994
|
-
return
|
|
6043
|
+
return React47.createElement(import_cmdk.Command.Separator, _object_spread({
|
|
5995
6044
|
ref: ref,
|
|
5996
6045
|
className: cn("hawa--mx-1 hawa-h-px hawa-bg-border", className)
|
|
5997
6046
|
}, props));
|
|
5998
6047
|
});
|
|
5999
6048
|
CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
|
|
6000
|
-
var CommandItem =
|
|
6049
|
+
var CommandItem = React47.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6001
6050
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6002
6051
|
"className"
|
|
6003
6052
|
]);
|
|
6004
|
-
return
|
|
6053
|
+
return React47.createElement(import_cmdk.Command.Item, _object_spread({
|
|
6005
6054
|
ref: ref,
|
|
6006
6055
|
className: cn("hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-outline-none aria-selected:hawa-bg-accent aria-selected:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50", className)
|
|
6007
6056
|
}, props));
|
|
@@ -6011,13 +6060,13 @@ var CommandShortcut = function(_param) {
|
|
|
6011
6060
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6012
6061
|
"className"
|
|
6013
6062
|
]);
|
|
6014
|
-
return /* @__PURE__ */
|
|
6063
|
+
return /* @__PURE__ */ React47.createElement("span", _object_spread({
|
|
6015
6064
|
className: cn("hawa-ml-auto hawa-text-xs hawa-tracking-widest hawa-text-muted-foreground", className)
|
|
6016
6065
|
}, props));
|
|
6017
6066
|
};
|
|
6018
6067
|
CommandShortcut.displayName = "CommandShortcut";
|
|
6019
6068
|
// components/elements/Combobox.tsx
|
|
6020
|
-
var
|
|
6069
|
+
var React48 = __toESM(require("react"));
|
|
6021
6070
|
var PopoverPrimitive2 = __toESM(require("@radix-ui/react-popover"));
|
|
6022
6071
|
var Combobox = function(_param) {
|
|
6023
6072
|
var getProperty = function getProperty(obj, key) {
|
|
@@ -6030,30 +6079,30 @@ var Combobox = function(_param) {
|
|
|
6030
6079
|
"popoverClassName",
|
|
6031
6080
|
"data"
|
|
6032
6081
|
]);
|
|
6033
|
-
var
|
|
6034
|
-
var
|
|
6035
|
-
return /* @__PURE__ */
|
|
6082
|
+
var _React48_useState = _sliced_to_array(React48.useState(false), 2), open = _React48_useState[0], setOpen = _React48_useState[1];
|
|
6083
|
+
var _React48_useState1 = _sliced_to_array(React48.useState(defaultValue), 2), value = _React48_useState1[0], setValue = _React48_useState1[1];
|
|
6084
|
+
return /* @__PURE__ */ React48.createElement("div", {
|
|
6036
6085
|
className: cn("hawa-flex hawa-flex-col hawa-gap-2 hawa-relative hawa-h-fit", props.width === "fit" ? "hawa-w-fit" : "hawa-w-full")
|
|
6037
|
-
}, props.label && /* @__PURE__ */
|
|
6086
|
+
}, props.label && /* @__PURE__ */ React48.createElement(Label2, null, props.label), /* @__PURE__ */ React48.createElement(PopoverPrimitive2.Root, {
|
|
6038
6087
|
open: open,
|
|
6039
6088
|
onOpenChange: setOpen
|
|
6040
|
-
}, /* @__PURE__ */
|
|
6089
|
+
}, /* @__PURE__ */ React48.createElement(PopoverTrigger, {
|
|
6041
6090
|
disabled: props.isLoading || props.preview
|
|
6042
|
-
}, props.isLoading ? /* @__PURE__ */
|
|
6091
|
+
}, props.isLoading ? /* @__PURE__ */ React48.createElement("div", {
|
|
6043
6092
|
className: "hawa-pb-2"
|
|
6044
|
-
}, /* @__PURE__ */
|
|
6093
|
+
}, /* @__PURE__ */ React48.createElement(Skeleton, {
|
|
6045
6094
|
className: "hawa-h-[40px] hawa-w-full"
|
|
6046
|
-
})) : /* @__PURE__ */
|
|
6095
|
+
})) : /* @__PURE__ */ React48.createElement("div", {
|
|
6047
6096
|
className: "hawa-flex hawa-flex-col hawa-gap-2 "
|
|
6048
|
-
}, /* @__PURE__ */
|
|
6097
|
+
}, /* @__PURE__ */ React48.createElement("div", {
|
|
6049
6098
|
className: cn("hawa-absolute hawa-top-[22px] hawa-h-[0.8px] hawa-w-full hawa-bg-gray-200 hawa-transition-all dark:hawa-bg-gray-800", props.preview ? "hawa-opacity-100" : "hawa-opacity-0")
|
|
6050
|
-
}), /* @__PURE__ */
|
|
6099
|
+
}), /* @__PURE__ */ React48.createElement("button", {
|
|
6051
6100
|
role: "combobox",
|
|
6052
6101
|
"aria-expanded": open,
|
|
6053
6102
|
className: cn("hawa-text-primary hawa-border hawa-h-10 hawa-py-2 hawa-justify-between hawa-w-full hawa-font-normal hawa-inline-flex hawa-items-center hawa-transition-all hawa-select-none hawa-rounded-md hawa-text-sm hawa-ring-offset-background focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50", props.preview ? "hawa-px-0 hawa-rounded-none hawa-border-transparent hawa-cursor-default" : "hawa-px-3 hawa-bg-background ")
|
|
6054
6103
|
}, value ? getProperty(data.find(function(item) {
|
|
6055
6104
|
return item[valueKey] === value;
|
|
6056
|
-
}) || {}, labelKey) : props.placeholder || "...", /* @__PURE__ */
|
|
6105
|
+
}) || {}, labelKey) : props.placeholder || "...", /* @__PURE__ */ React48.createElement("svg", {
|
|
6057
6106
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6058
6107
|
className: cn("hawa-w-4 hawa-h-4 hawa-transition-all", !props.preview ? "hawa-opacity-100 hawa-visible" : "hawa-opacity-0 hawa-invisible"),
|
|
6059
6108
|
viewBox: "0 0 24 24",
|
|
@@ -6062,18 +6111,18 @@ var Combobox = function(_param) {
|
|
|
6062
6111
|
strokeWidth: "2",
|
|
6063
6112
|
strokeLinecap: "round",
|
|
6064
6113
|
strokeLinejoin: "round"
|
|
6065
|
-
}, /* @__PURE__ */
|
|
6114
|
+
}, /* @__PURE__ */ React48.createElement("path", {
|
|
6066
6115
|
d: "m6 9 6 6 6-6"
|
|
6067
|
-
}))), /* @__PURE__ */
|
|
6116
|
+
}))), /* @__PURE__ */ React48.createElement("p", {
|
|
6068
6117
|
className: cn("hawa-my-0 hawa-text-xs hawa-text-helper-color hawa-transition-all", props.helperText ? "hawa-opacity-100 hawa-h-4" : "hawa-opacity-0 hawa-h-0")
|
|
6069
|
-
}, props.helperText), " ")), /* @__PURE__ */
|
|
6118
|
+
}, props.helperText), " ")), /* @__PURE__ */ React48.createElement(PopoverContent, {
|
|
6070
6119
|
className: cn("popover-w-parent")
|
|
6071
|
-
}, /* @__PURE__ */
|
|
6120
|
+
}, /* @__PURE__ */ React48.createElement(Command, null, !props.hideInput && /* @__PURE__ */ React48.createElement(CommandInput, {
|
|
6072
6121
|
placeholder: props.searchPlaceholder
|
|
6073
|
-
}), /* @__PURE__ */
|
|
6122
|
+
}), /* @__PURE__ */ React48.createElement(CommandEmpty, null, "No framework found."), /* @__PURE__ */ React48.createElement(CommandGroup, {
|
|
6074
6123
|
className: " hawa-max-h-[200px] hawa-overflow-y-auto"
|
|
6075
6124
|
}, data.map(function(item) {
|
|
6076
|
-
return /* @__PURE__ */
|
|
6125
|
+
return /* @__PURE__ */ React48.createElement(CommandItem, {
|
|
6077
6126
|
key: getProperty(item, valueKey),
|
|
6078
6127
|
onSelect: function() {
|
|
6079
6128
|
var newValue = getProperty(item, valueKey);
|
|
@@ -6083,7 +6132,7 @@ var Combobox = function(_param) {
|
|
|
6083
6132
|
}
|
|
6084
6133
|
setOpen(false);
|
|
6085
6134
|
}
|
|
6086
|
-
}, /* @__PURE__ */
|
|
6135
|
+
}, /* @__PURE__ */ React48.createElement("svg", {
|
|
6087
6136
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6088
6137
|
width: "24",
|
|
6089
6138
|
height: "24",
|
|
@@ -6094,36 +6143,36 @@ var Combobox = function(_param) {
|
|
|
6094
6143
|
strokeLinecap: "round",
|
|
6095
6144
|
strokeLinejoin: "round",
|
|
6096
6145
|
className: cn("hawa-mr-2 hawa-h-4 hawa-w-4", value === getProperty(item, valueKey) ? "hawa-opacity-100" : "hawa-opacity-0")
|
|
6097
|
-
}, /* @__PURE__ */
|
|
6146
|
+
}, /* @__PURE__ */ React48.createElement("polyline", {
|
|
6098
6147
|
points: "20 6 9 17 4 12"
|
|
6099
6148
|
})), getProperty(item, labelKey));
|
|
6100
6149
|
}))))));
|
|
6101
6150
|
};
|
|
6102
6151
|
// components/elements/Count.tsx
|
|
6103
|
-
var
|
|
6152
|
+
var import_react32 = __toESM(require("react"));
|
|
6104
6153
|
var Count = function(props) {
|
|
6105
|
-
return /* @__PURE__ */
|
|
6154
|
+
return /* @__PURE__ */ import_react32.default.createElement("div", {
|
|
6106
6155
|
className: "hawa-flex hawa-h-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-px-2"
|
|
6107
|
-
}, /* @__PURE__ */
|
|
6156
|
+
}, /* @__PURE__ */ import_react32.default.createElement("div", null, props.icon), /* @__PURE__ */ import_react32.default.createElement("div", {
|
|
6108
6157
|
className: "hawa-text-sm"
|
|
6109
6158
|
}, props.count));
|
|
6110
6159
|
};
|
|
6111
6160
|
// components/elements/InterfaceSettings.tsx
|
|
6112
|
-
var
|
|
6161
|
+
var import_react33 = __toESM(require("react"));
|
|
6113
6162
|
var InterfaceSettings = function(_param) {
|
|
6114
6163
|
var _param_orientation = _param.orientation, orientation = _param_orientation === void 0 ? "horizontal" : _param_orientation, _param_width = _param.width, width = _param_width === void 0 ? "default" : _param_width, props = _object_without_properties(_param, [
|
|
6115
6164
|
"orientation",
|
|
6116
6165
|
"width"
|
|
6117
6166
|
]);
|
|
6118
|
-
var _ref = _sliced_to_array((0,
|
|
6119
|
-
var _ref1 = _sliced_to_array((0,
|
|
6167
|
+
var _ref = _sliced_to_array((0, import_react33.useState)(props.currentColorMode), 2), color = _ref[0], setColor = _ref[1];
|
|
6168
|
+
var _ref1 = _sliced_to_array((0, import_react33.useState)(props.currentLanguage), 2), language = _ref1[0], setLanguage = _ref1[1];
|
|
6120
6169
|
var orientationStyle = {
|
|
6121
6170
|
horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
|
|
6122
6171
|
vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
|
|
6123
6172
|
};
|
|
6124
|
-
return /* @__PURE__ */
|
|
6173
|
+
return /* @__PURE__ */ import_react33.default.createElement("div", {
|
|
6125
6174
|
className: cn(orientationStyle[orientation])
|
|
6126
|
-
}, /* @__PURE__ */
|
|
6175
|
+
}, /* @__PURE__ */ import_react33.default.createElement(Radio, {
|
|
6127
6176
|
width: width,
|
|
6128
6177
|
defaultValue: language,
|
|
6129
6178
|
onChangeTab: function(e) {
|
|
@@ -6141,7 +6190,7 @@ var InterfaceSettings = function(_param) {
|
|
|
6141
6190
|
label: "English"
|
|
6142
6191
|
}
|
|
6143
6192
|
]
|
|
6144
|
-
}), /* @__PURE__ */
|
|
6193
|
+
}), /* @__PURE__ */ import_react33.default.createElement(Radio, {
|
|
6145
6194
|
width: width,
|
|
6146
6195
|
defaultValue: color,
|
|
6147
6196
|
onChangeTab: function(e) {
|
|
@@ -6152,21 +6201,21 @@ var InterfaceSettings = function(_param) {
|
|
|
6152
6201
|
options: [
|
|
6153
6202
|
{
|
|
6154
6203
|
value: "light",
|
|
6155
|
-
label: /* @__PURE__ */
|
|
6204
|
+
label: /* @__PURE__ */ import_react33.default.createElement("svg", {
|
|
6156
6205
|
width: "15",
|
|
6157
6206
|
height: "15",
|
|
6158
6207
|
viewBox: "0 0 15 15",
|
|
6159
6208
|
fill: "none",
|
|
6160
6209
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6161
6210
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
|
6162
|
-
}, /* @__PURE__ */
|
|
6211
|
+
}, /* @__PURE__ */ import_react33.default.createElement("path", {
|
|
6163
6212
|
d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",
|
|
6164
6213
|
fill: "currentColor"
|
|
6165
6214
|
}))
|
|
6166
6215
|
},
|
|
6167
6216
|
{
|
|
6168
6217
|
value: "dark",
|
|
6169
|
-
label: /* @__PURE__ */
|
|
6218
|
+
label: /* @__PURE__ */ import_react33.default.createElement("svg", {
|
|
6170
6219
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6171
6220
|
width: "24",
|
|
6172
6221
|
height: "24",
|
|
@@ -6174,7 +6223,7 @@ var InterfaceSettings = function(_param) {
|
|
|
6174
6223
|
fill: "none",
|
|
6175
6224
|
stroke: "currentColor",
|
|
6176
6225
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
|
6177
|
-
}, /* @__PURE__ */
|
|
6226
|
+
}, /* @__PURE__ */ import_react33.default.createElement("path", {
|
|
6178
6227
|
d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"
|
|
6179
6228
|
}))
|
|
6180
6229
|
}
|
|
@@ -6182,28 +6231,28 @@ var InterfaceSettings = function(_param) {
|
|
|
6182
6231
|
}));
|
|
6183
6232
|
};
|
|
6184
6233
|
// components/elements/NavigationMenu.tsx
|
|
6185
|
-
var
|
|
6234
|
+
var React51 = __toESM(require("react"));
|
|
6186
6235
|
var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"));
|
|
6187
6236
|
var import_class_variance_authority3 = require("class-variance-authority");
|
|
6188
|
-
var NavigationMenuRoot =
|
|
6237
|
+
var NavigationMenuRoot = React51.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6189
6238
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
6190
6239
|
"className",
|
|
6191
6240
|
"children"
|
|
6192
6241
|
]);
|
|
6193
|
-
return
|
|
6242
|
+
return React51.createElement(NavigationMenuPrimitive.Root, _object_spread({
|
|
6194
6243
|
ref: ref,
|
|
6195
6244
|
className: cn("hawa-relative hawa-z-10 hawa-flex hawa-flex-1 hawa-items-center hawa-justify-center", // "hawa-max-w-max",
|
|
6196
6245
|
className)
|
|
6197
|
-
}, props), children, /* @__PURE__ */
|
|
6246
|
+
}, props), children, /* @__PURE__ */ React51.createElement(NavigationMenuViewport, {
|
|
6198
6247
|
className: props.viewportClassNames
|
|
6199
6248
|
}));
|
|
6200
6249
|
});
|
|
6201
6250
|
NavigationMenuRoot.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
6202
|
-
var NavigationMenuList =
|
|
6251
|
+
var NavigationMenuList = React51.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6203
6252
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6204
6253
|
"className"
|
|
6205
6254
|
]);
|
|
6206
|
-
return
|
|
6255
|
+
return React51.createElement(NavigationMenuPrimitive.List, _object_spread({
|
|
6207
6256
|
ref: ref,
|
|
6208
6257
|
className: cn("hawa-group hawa-flex hawa-flex-1 hawa-list-none hawa-items-center hawa-justify-center hawa-gap-1", className)
|
|
6209
6258
|
}, props));
|
|
@@ -6211,15 +6260,15 @@ var NavigationMenuList = React50.forwardRef(function(_param, ref) /* @__PURE__ *
|
|
|
6211
6260
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
6212
6261
|
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
6213
6262
|
var navigationMenuTriggerStyle = (0, import_class_variance_authority3.cva)("hawa-group hawa-inline-flex hawa-h-10 hawa-w-max hawa-items-center hawa-gap-1 hawa-justify-center hawa-rounded-md hawa-bg-background hawa-px-4 hawa-py-2 hawa-text-sm hawa-font-medium hawa-transition-colors hover:hawa-bg-accent hover:hawa-text-accent-foreground focus:hawa-bg-accent focus:hawa-text-accent-foreground focus:hawa-outline-none disabled:hawa-pointer-events-none disabled:hawa-opacity-50 data-[active]:hawa-bg-accent/50 ");
|
|
6214
|
-
var NavigationMenuTrigger =
|
|
6263
|
+
var NavigationMenuTrigger = React51.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6215
6264
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
6216
6265
|
"className",
|
|
6217
6266
|
"children"
|
|
6218
6267
|
]);
|
|
6219
|
-
return
|
|
6268
|
+
return React51.createElement(NavigationMenuPrimitive.Trigger, _object_spread({
|
|
6220
6269
|
ref: ref,
|
|
6221
6270
|
className: cn(navigationMenuTriggerStyle(), "hawa-group", className)
|
|
6222
|
-
}, props), children, " ", /* @__PURE__ */
|
|
6271
|
+
}, props), children, " ", /* @__PURE__ */ React51.createElement("svg", {
|
|
6223
6272
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6224
6273
|
width: "24",
|
|
6225
6274
|
height: "24",
|
|
@@ -6231,16 +6280,16 @@ var NavigationMenuTrigger = React50.forwardRef(function(_param, ref) /* @__PURE_
|
|
|
6231
6280
|
"stroke-linejoin": "round",
|
|
6232
6281
|
"aria-hidden": "true",
|
|
6233
6282
|
className: "hawa-relative hawa-top-[1px] hawa-h-4 hawa-w-4 hawa-transition hawa-duration-200 group-data-[state=open]:hawa-rotate-180"
|
|
6234
|
-
}, /* @__PURE__ */
|
|
6283
|
+
}, /* @__PURE__ */ React51.createElement("path", {
|
|
6235
6284
|
d: "m6 9 6 6 6-6"
|
|
6236
6285
|
})));
|
|
6237
6286
|
});
|
|
6238
6287
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
6239
|
-
var NavigationMenuContent =
|
|
6288
|
+
var NavigationMenuContent = React51.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6240
6289
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6241
6290
|
"className"
|
|
6242
6291
|
]);
|
|
6243
|
-
return
|
|
6292
|
+
return React51.createElement(NavigationMenuPrimitive.Content, _object_spread({
|
|
6244
6293
|
ref: ref,
|
|
6245
6294
|
className: cn("hawa-absolute hawa-w-full hawa-left-0 hawa-top-0 ", // "md:hawa-absolute md:hawa-w-auto hawa-left-0 hawa-top-0 ",
|
|
6246
6295
|
// animation
|
|
@@ -6250,51 +6299,51 @@ var NavigationMenuContent = React50.forwardRef(function(_param, ref) /* @__PURE_
|
|
|
6250
6299
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
6251
6300
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
6252
6301
|
var NavMenuItem = function(props) {
|
|
6253
|
-
return /* @__PURE__ */
|
|
6302
|
+
return /* @__PURE__ */ React51.createElement(NavigationMenuLink, null, /* @__PURE__ */ React51.createElement("div", {
|
|
6254
6303
|
className: "hawa-max-w-md hawa-cursor-pointer hawa-p-4 hawa-py-2 hawa-rounded hawa-flex hawa-flex-row hawa-gap-4 hawa-items-center hawa-transition-all hover:hawa-bg-muted"
|
|
6255
|
-
}, props.icon && props.icon, /* @__PURE__ */
|
|
6304
|
+
}, props.icon && props.icon, /* @__PURE__ */ React51.createElement("div", {
|
|
6256
6305
|
className: "hawa-flex hawa-flex-col"
|
|
6257
|
-
}, /* @__PURE__ */
|
|
6306
|
+
}, /* @__PURE__ */ React51.createElement("h1", {
|
|
6258
6307
|
className: "hawa-font-bold hawa-text-xl"
|
|
6259
|
-
}, props.title), /* @__PURE__ */
|
|
6308
|
+
}, props.title), /* @__PURE__ */ React51.createElement("p", {
|
|
6260
6309
|
className: "hawa-text-sm"
|
|
6261
6310
|
}, props.subtitle))));
|
|
6262
6311
|
};
|
|
6263
|
-
var NavigationMenuViewport =
|
|
6312
|
+
var NavigationMenuViewport = React51.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6264
6313
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6265
6314
|
"className"
|
|
6266
6315
|
]);
|
|
6267
|
-
return
|
|
6316
|
+
return React51.createElement("div", {
|
|
6268
6317
|
className: cn("hawa-absolute hawa-w-full hawa-top-full hawa-flex hawa-justify-center")
|
|
6269
|
-
}, /* @__PURE__ */
|
|
6318
|
+
}, /* @__PURE__ */ React51.createElement(NavigationMenuPrimitive.Viewport, _object_spread({
|
|
6270
6319
|
className: cn("hawa-origin-top-center hawa-relative hawa-mt-1.5 hawa-h-[var(--radix-navigation-menu-viewport-height)] hawa-w-full hawa-overflow-hidden hawa-rounded-md hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-lg data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-90 ", // "md:hawa-w-[var(--radix-navigation-menu-viewport-width)]",
|
|
6271
6320
|
className),
|
|
6272
6321
|
ref: ref
|
|
6273
6322
|
}, props)));
|
|
6274
6323
|
});
|
|
6275
6324
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
6276
|
-
var NavigationMenuIndicator =
|
|
6325
|
+
var NavigationMenuIndicator = React51.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6277
6326
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6278
6327
|
"className"
|
|
6279
6328
|
]);
|
|
6280
|
-
return
|
|
6329
|
+
return React51.createElement(NavigationMenuPrimitive.Indicator, _object_spread({
|
|
6281
6330
|
ref: ref,
|
|
6282
6331
|
className: cn("hawa-top-full hawa-z-[1] hawa-flex hawa-h-1.5 hawa-items-end hawa-justify-center hawa-overflow-hidden data-[state=visible]:hawa-animate-in data-[state=hidden]:hawa-animate-out data-[state=hidden]:hawa-fade-out data-[state=visible]:hawa-fade-in", className)
|
|
6283
|
-
}, props), /* @__PURE__ */
|
|
6332
|
+
}, props), /* @__PURE__ */ React51.createElement("div", {
|
|
6284
6333
|
className: "hawa-relative hawa-top-[60%] hawa-h-2 hawa-w-2 hawa-rotate-45 hawa-rounded-tl-sm hawa-bg-border hawa-shadow-md"
|
|
6285
6334
|
}));
|
|
6286
6335
|
});
|
|
6287
6336
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
6288
6337
|
var NavigationMenu = function(props) {
|
|
6289
|
-
return /* @__PURE__ */
|
|
6338
|
+
return /* @__PURE__ */ React51.createElement(NavigationMenuRoot, {
|
|
6290
6339
|
dir: props.direction,
|
|
6291
6340
|
delayDuration: 0,
|
|
6292
6341
|
className: props.rootClassNames,
|
|
6293
6342
|
viewportClassNames: props.viewportClassNames
|
|
6294
|
-
}, /* @__PURE__ */
|
|
6295
|
-
return /* @__PURE__ */
|
|
6343
|
+
}, /* @__PURE__ */ React51.createElement(NavigationMenuList, null, props.items.map(function(item, i) {
|
|
6344
|
+
return /* @__PURE__ */ React51.createElement(NavigationMenuItem, {
|
|
6296
6345
|
key: i
|
|
6297
|
-
}, item.content ? /* @__PURE__ */
|
|
6346
|
+
}, item.content ? /* @__PURE__ */ React51.createElement(React51.Fragment, null, /* @__PURE__ */ React51.createElement(NavigationMenuTrigger, null, item.trigger), /* @__PURE__ */ React51.createElement(NavigationMenuContent, null, item.content)) : /* @__PURE__ */ React51.createElement(NavigationMenuLink, {
|
|
6298
6347
|
onClick: function() {
|
|
6299
6348
|
if (item.action) {
|
|
6300
6349
|
item.action();
|
|
@@ -6305,58 +6354,58 @@ var NavigationMenu = function(props) {
|
|
|
6305
6354
|
})));
|
|
6306
6355
|
};
|
|
6307
6356
|
// components/layout/Stats.tsx
|
|
6308
|
-
var
|
|
6357
|
+
var import_react34 = __toESM(require("react"));
|
|
6309
6358
|
var Stats = function(_param) {
|
|
6310
6359
|
var _param_variant = _param.variant, variant = _param_variant === void 0 ? "default" : _param_variant, props = _object_without_properties(_param, [
|
|
6311
6360
|
"variant"
|
|
6312
6361
|
]);
|
|
6313
|
-
return /* @__PURE__ */
|
|
6362
|
+
return /* @__PURE__ */ import_react34.default.createElement(Card, {
|
|
6314
6363
|
onClick: props.handleClick,
|
|
6315
6364
|
clickable: Boolean(props.handleClick),
|
|
6316
6365
|
className: cn(props.className)
|
|
6317
|
-
}, /* @__PURE__ */
|
|
6366
|
+
}, /* @__PURE__ */ import_react34.default.createElement("div", {
|
|
6318
6367
|
className: "hawa-flex hawa-flex-row hawa-justify-between hawa-p-4 hawa-items-center"
|
|
6319
|
-
}, /* @__PURE__ */
|
|
6368
|
+
}, /* @__PURE__ */ import_react34.default.createElement(CardTitle, {
|
|
6320
6369
|
className: "hawa-text-sm hawa-font-medium"
|
|
6321
|
-
}, props.label), props.icon && /* @__PURE__ */
|
|
6370
|
+
}, props.label), props.icon && /* @__PURE__ */ import_react34.default.createElement("span", null, props.icon)), /* @__PURE__ */ import_react34.default.createElement(CardContent, null, props.isLoading ? /* @__PURE__ */ import_react34.default.createElement(Skeleton, {
|
|
6322
6371
|
className: "hawa-h-8 hawa-w-3/4"
|
|
6323
|
-
}) : /* @__PURE__ */
|
|
6372
|
+
}) : /* @__PURE__ */ import_react34.default.createElement("div", {
|
|
6324
6373
|
className: "hawa-text-2xl hawa-font-bold"
|
|
6325
|
-
}, props.number), props.isLoading && props.helperText ? /* @__PURE__ */
|
|
6374
|
+
}, props.number), props.isLoading && props.helperText ? /* @__PURE__ */ import_react34.default.createElement(Skeleton, {
|
|
6326
6375
|
className: "hawa-mt-2 hawa-h-4 hawa-w-1/2"
|
|
6327
|
-
}) : props.helperText && /* @__PURE__ */
|
|
6376
|
+
}) : props.helperText && /* @__PURE__ */ import_react34.default.createElement("p", {
|
|
6328
6377
|
className: "hawa-text-xs hawa-text-muted-foreground"
|
|
6329
|
-
}, props.helperText), props.isLoading && props.chart ? /* @__PURE__ */
|
|
6378
|
+
}, props.helperText), props.isLoading && props.chart ? /* @__PURE__ */ import_react34.default.createElement(Skeleton, {
|
|
6330
6379
|
className: "hawa-mt-2 hawa-h-4 hawa-w-1/2"
|
|
6331
6380
|
}) : props.chart));
|
|
6332
6381
|
};
|
|
6333
6382
|
// components/layout/Sidebar.tsx
|
|
6334
|
-
var
|
|
6383
|
+
var React53 = __toESM(require("react"));
|
|
6335
6384
|
var AccordionPrimitive2 = __toESM(require("@radix-ui/react-accordion"));
|
|
6336
6385
|
var Accordion2 = AccordionPrimitive2.Root;
|
|
6337
6386
|
var triggerStyles = "hawa-flex hawa-flex-1 hawa-items-center hawa-duration-75 hawa-select-none hawa-cursor-pointer hawa-rounded hawa-justify-between hawa-p-2 hawa-px-3 hawa-font-medium hawa-transition-all [&[data-state=open]>svg]:hawa--rotate-90";
|
|
6338
|
-
var AccordionItem2 =
|
|
6387
|
+
var AccordionItem2 = React53.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6339
6388
|
var className = _param.className, props = _object_without_properties(_param, [
|
|
6340
6389
|
"className"
|
|
6341
6390
|
]);
|
|
6342
|
-
return
|
|
6391
|
+
return React53.createElement(AccordionPrimitive2.Item, _object_spread({
|
|
6343
6392
|
ref: ref,
|
|
6344
6393
|
className: cn(className)
|
|
6345
6394
|
}, props));
|
|
6346
6395
|
});
|
|
6347
6396
|
AccordionItem2.displayName = "AccordionItem";
|
|
6348
|
-
var AccordionTrigger2 =
|
|
6397
|
+
var AccordionTrigger2 = React53.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6349
6398
|
var className = _param.className, showArrow = _param.showArrow, children = _param.children, props = _object_without_properties(_param, [
|
|
6350
6399
|
"className",
|
|
6351
6400
|
"showArrow",
|
|
6352
6401
|
"children"
|
|
6353
6402
|
]);
|
|
6354
|
-
return
|
|
6403
|
+
return React53.createElement(AccordionPrimitive2.Header, {
|
|
6355
6404
|
className: "flex"
|
|
6356
|
-
}, /* @__PURE__ */
|
|
6405
|
+
}, /* @__PURE__ */ React53.createElement(AccordionPrimitive2.Trigger, _object_spread({
|
|
6357
6406
|
ref: ref,
|
|
6358
6407
|
className: cn(triggerStyles, className)
|
|
6359
|
-
}, props), children, showArrow && /* @__PURE__ */
|
|
6408
|
+
}, props), children, showArrow && /* @__PURE__ */ React53.createElement("svg", {
|
|
6360
6409
|
"aria-label": "Chevron Right Icon",
|
|
6361
6410
|
stroke: "currentColor",
|
|
6362
6411
|
fill: "currentColor",
|
|
@@ -6364,31 +6413,31 @@ var AccordionTrigger2 = React52.forwardRef(function(_param, ref) /* @__PURE__ */
|
|
|
6364
6413
|
height: "1em",
|
|
6365
6414
|
width: "1em",
|
|
6366
6415
|
className: "hawa-h-4 hawa-w-4 hawa-shrink-0 hawa-rotate-90 hawa-transition-transform hawa-duration-200"
|
|
6367
|
-
}, /* @__PURE__ */
|
|
6416
|
+
}, /* @__PURE__ */ React53.createElement("path", {
|
|
6368
6417
|
d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"
|
|
6369
6418
|
}))));
|
|
6370
6419
|
});
|
|
6371
6420
|
AccordionTrigger2.displayName = AccordionPrimitive2.Trigger.displayName;
|
|
6372
|
-
var AccordionContent2 =
|
|
6421
|
+
var AccordionContent2 = React53.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
6373
6422
|
var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
|
|
6374
6423
|
"className",
|
|
6375
6424
|
"children"
|
|
6376
6425
|
]);
|
|
6377
|
-
return
|
|
6426
|
+
return React53.createElement(AccordionPrimitive2.Content, _object_spread({
|
|
6378
6427
|
ref: ref,
|
|
6379
6428
|
className: cn("hawa-overflow-hidden hawa-text-sm hawa-transition-all data-[state=closed]:hawa-animate-accordion-up data-[state=open]:hawa-animate-accordion-down", className)
|
|
6380
|
-
}, props), /* @__PURE__ */
|
|
6429
|
+
}, props), /* @__PURE__ */ React53.createElement("div", null, children));
|
|
6381
6430
|
});
|
|
6382
6431
|
AccordionContent2.displayName = AccordionPrimitive2.Content.displayName;
|
|
6383
6432
|
var SidebarGroup = function(param) {
|
|
6384
6433
|
var title = param.title, items = param.items, selectedItem = param.selectedItem, openedItem = param.openedItem, setOpenedItem = param.setOpenedItem, onItemClick = param.onItemClick, onSubItemClick = param.onSubItemClick, direction = param.direction, isOpen = param.isOpen;
|
|
6385
|
-
return /* @__PURE__ */
|
|
6434
|
+
return /* @__PURE__ */ React53.createElement("div", {
|
|
6386
6435
|
className: "hawa-m-2"
|
|
6387
|
-
}, title && /* @__PURE__ */
|
|
6436
|
+
}, title && /* @__PURE__ */ React53.createElement("h3", {
|
|
6388
6437
|
className: "hawa-mb-1 hawa-font-bold"
|
|
6389
|
-
}, title), /* @__PURE__ */
|
|
6438
|
+
}, title), /* @__PURE__ */ React53.createElement("ul", {
|
|
6390
6439
|
className: "hawa-flex hawa-flex-col hawa-gap-2"
|
|
6391
|
-
}, /* @__PURE__ */
|
|
6440
|
+
}, /* @__PURE__ */ React53.createElement(Accordion2, {
|
|
6392
6441
|
value: openedItem,
|
|
6393
6442
|
type: "single",
|
|
6394
6443
|
onValueChange: function(e) {
|
|
@@ -6397,7 +6446,7 @@ var SidebarGroup = function(param) {
|
|
|
6397
6446
|
collapsible: true,
|
|
6398
6447
|
className: "hawa-flex hawa-flex-col hawa-gap-1"
|
|
6399
6448
|
}, items.map(function(item, idx) {
|
|
6400
|
-
return /* @__PURE__ */
|
|
6449
|
+
return /* @__PURE__ */ React53.createElement(SidebarItem, {
|
|
6401
6450
|
isOpen: isOpen,
|
|
6402
6451
|
selectedItem: selectedItem,
|
|
6403
6452
|
key: idx,
|
|
@@ -6420,25 +6469,25 @@ var SidebarItem = function(_param) {
|
|
|
6420
6469
|
return props.selectedItem === value ? "hawa-bg-primary hawa-text-primary-foreground hawa-cursor-default" : "hover:hawa-bg-primary/10";
|
|
6421
6470
|
};
|
|
6422
6471
|
if (item.subitems) {
|
|
6423
|
-
return /* @__PURE__ */
|
|
6472
|
+
return /* @__PURE__ */ React53.createElement(AccordionItem2, {
|
|
6424
6473
|
value: item.value,
|
|
6425
6474
|
className: "hawa-overflow-x-clip ",
|
|
6426
6475
|
dir: direction
|
|
6427
|
-
}, /* @__PURE__ */
|
|
6476
|
+
}, /* @__PURE__ */ React53.createElement(AccordionTrigger2, {
|
|
6428
6477
|
className: cn("hawa-overflow-x-clip hawa-w-full", props.selectedItem === item.value ? "hawa-cursor-default hawa-bg-primary hawa-text-primary-foreground" : "hover:hawa-bg-primary/10", item.subitems && item.subitems.some(function(subitem) {
|
|
6429
6478
|
return props.selectedItem === subitem.value;
|
|
6430
6479
|
}) ? "hawa-bg-primary/90 hawa-text-primary-foreground hover:hawa-bg-primary/90" : ""),
|
|
6431
6480
|
showArrow: isOpen
|
|
6432
|
-
}, /* @__PURE__ */
|
|
6481
|
+
}, /* @__PURE__ */ React53.createElement("div", {
|
|
6433
6482
|
className: cn(!isOpen && "hawa-py-1", "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2")
|
|
6434
|
-
}, item.icon && item.icon, /* @__PURE__ */
|
|
6483
|
+
}, item.icon && item.icon, /* @__PURE__ */ React53.createElement("span", {
|
|
6435
6484
|
className: cn("hawa-transition-all ", isOpen ? "hawa-opacity-100" : "hawa-opacity-0")
|
|
6436
|
-
}, item.label))), item.subitems && /* @__PURE__ */
|
|
6485
|
+
}, item.label))), item.subitems && /* @__PURE__ */ React53.createElement(AccordionContent2, {
|
|
6437
6486
|
className: "hawa-mt-1 hawa-h-full hawa-rounded"
|
|
6438
|
-
}, /* @__PURE__ */
|
|
6487
|
+
}, /* @__PURE__ */ React53.createElement("div", {
|
|
6439
6488
|
className: cn("hawa-flex hawa-h-full hawa-flex-col hawa-gap-2 hawa-bg-foreground/5 hawa-p-1")
|
|
6440
6489
|
}, item.subitems.map(function(subitem, idx) {
|
|
6441
|
-
return /* @__PURE__ */
|
|
6490
|
+
return /* @__PURE__ */ React53.createElement("li", {
|
|
6442
6491
|
key: idx,
|
|
6443
6492
|
onClick: function(e) {
|
|
6444
6493
|
e.stopPropagation();
|
|
@@ -6457,7 +6506,7 @@ var SidebarItem = function(_param) {
|
|
|
6457
6506
|
}, subitem.icon && subitem.icon, subitem.label);
|
|
6458
6507
|
}))));
|
|
6459
6508
|
} else {
|
|
6460
|
-
return /* @__PURE__ */
|
|
6509
|
+
return /* @__PURE__ */ React53.createElement("div", {
|
|
6461
6510
|
dir: direction,
|
|
6462
6511
|
onClick: function() {
|
|
6463
6512
|
if (item.onClick) {
|
|
@@ -6470,25 +6519,25 @@ var SidebarItem = function(_param) {
|
|
|
6470
6519
|
}
|
|
6471
6520
|
},
|
|
6472
6521
|
className: cn(triggerStyles, getSelectedStyle(item.value), "hawa-overflow-x-clip ")
|
|
6473
|
-
}, /* @__PURE__ */
|
|
6522
|
+
}, /* @__PURE__ */ React53.createElement("div", {
|
|
6474
6523
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2"
|
|
6475
|
-
}, item.icon && item.icon, /* @__PURE__ */
|
|
6524
|
+
}, item.icon && item.icon, /* @__PURE__ */ React53.createElement("span", {
|
|
6476
6525
|
className: cn("hawa-whitespace-nowrap hawa-transition-all", isOpen ? "hawa-opacity-100" : "hawa-opacity-0")
|
|
6477
6526
|
}, item.label)));
|
|
6478
6527
|
}
|
|
6479
6528
|
};
|
|
6480
6529
|
// components/layout/AppLayout.tsx
|
|
6481
|
-
var
|
|
6530
|
+
var import_react36 = __toESM(require("react"));
|
|
6482
6531
|
// components/hooks/useBreakpoint.ts
|
|
6483
|
-
var
|
|
6532
|
+
var import_react35 = require("react");
|
|
6484
6533
|
var useBreakpoint = function() {
|
|
6485
6534
|
var _window;
|
|
6486
|
-
var _ref = _sliced_to_array((0,
|
|
6535
|
+
var _ref = _sliced_to_array((0, import_react35.useState)((_window = window) === null || _window === void 0 ? void 0 : _window.innerWidth), 2), breakpoint = _ref[0], setBreakpoint = _ref[1];
|
|
6487
6536
|
var resize = function() {
|
|
6488
6537
|
var _window;
|
|
6489
6538
|
setBreakpoint((_window = window) === null || _window === void 0 ? void 0 : _window.innerWidth);
|
|
6490
6539
|
};
|
|
6491
|
-
(0,
|
|
6540
|
+
(0, import_react35.useEffect)(function() {
|
|
6492
6541
|
if (typeof window !== "undefined") {
|
|
6493
6542
|
var _window;
|
|
6494
6543
|
(_window = window) === null || _window === void 0 ? void 0 : _window.addEventListener("resize", resize);
|
|
@@ -6528,17 +6577,17 @@ var AppLayout = function(_param) {
|
|
|
6528
6577
|
lg: closeDrawerWidth
|
|
6529
6578
|
}
|
|
6530
6579
|
};
|
|
6531
|
-
var ref = (0,
|
|
6580
|
+
var ref = (0, import_react36.useRef)(null);
|
|
6532
6581
|
var isRTL = direction === "rtl";
|
|
6533
|
-
var _ref = _sliced_to_array((0,
|
|
6534
|
-
var _ref1 = _sliced_to_array((0,
|
|
6582
|
+
var _ref = _sliced_to_array((0, import_react36.useState)(""), 2), openedSidebarItem = _ref[0], setOpenedSidebarItem = _ref[1];
|
|
6583
|
+
var _ref1 = _sliced_to_array((0, import_react36.useState)(currentPage), 2), selectedItem = _ref1[0], setSelectedItem = _ref1[1];
|
|
6535
6584
|
var size = useBreakpoint();
|
|
6536
6585
|
if (typeof window == "undefined") {
|
|
6537
6586
|
size = 1200;
|
|
6538
6587
|
}
|
|
6539
|
-
var _ref2 = _sliced_to_array((0,
|
|
6588
|
+
var _ref2 = _sliced_to_array((0, import_react36.useState)(size > 600 ? keepOpen : false), 2), openSideMenu = _ref2[0], setOpenSideMenu = _ref2[1];
|
|
6540
6589
|
var drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
|
|
6541
|
-
(0,
|
|
6590
|
+
(0, import_react36.useEffect)(function() {
|
|
6542
6591
|
var handleClickOutside = function(event) {
|
|
6543
6592
|
if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
|
|
6544
6593
|
setOpenSideMenu(false);
|
|
@@ -6551,11 +6600,11 @@ var AppLayout = function(_param) {
|
|
|
6551
6600
|
}, [
|
|
6552
6601
|
keepOpen
|
|
6553
6602
|
]);
|
|
6554
|
-
return /* @__PURE__ */
|
|
6603
|
+
return /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
6555
6604
|
className: "hawa-fixed hawa-left-0"
|
|
6556
|
-
}, props.topBar && /* @__PURE__ */
|
|
6605
|
+
}, props.topBar && /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
6557
6606
|
className: cn("hawa-fixed hawa-left-0 hawa-right-0 hawa-top-0 hawa-z-30 hawa-flex hawa-h-14 hawa-w-full hawa-items-center hawa-justify-between hawa-bg-primary-foreground hawa-p-2", isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row")
|
|
6558
|
-
}, size > 600 ? /* @__PURE__ */
|
|
6607
|
+
}, size > 600 ? /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
6559
6608
|
className: cn("dark:hawa-text-white", isRTL ? [
|
|
6560
6609
|
size > 600 ? "hawa-mr-14" : "hawa-mr-2",
|
|
6561
6610
|
keepOpen ? "hawa-mr-40" : ""
|
|
@@ -6569,15 +6618,15 @@ var AppLayout = function(_param) {
|
|
|
6569
6618
|
marginLeft: "".concat(drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize], "px")
|
|
6570
6619
|
}
|
|
6571
6620
|
}, props.pageTitle) : // Mobile Drawer Menu Button
|
|
6572
|
-
/* @__PURE__ */
|
|
6621
|
+
/* @__PURE__ */ import_react36.default.createElement("div", {
|
|
6573
6622
|
dir: direction,
|
|
6574
6623
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
|
6575
|
-
}, /* @__PURE__ */
|
|
6624
|
+
}, /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
6576
6625
|
onClick: function() {
|
|
6577
6626
|
return setOpenSideMenu(true);
|
|
6578
6627
|
},
|
|
6579
6628
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
|
6580
|
-
}, /* @__PURE__ */
|
|
6629
|
+
}, /* @__PURE__ */ import_react36.default.createElement("svg", {
|
|
6581
6630
|
stroke: "currentColor",
|
|
6582
6631
|
fill: "currentColor",
|
|
6583
6632
|
strokeWidth: 0,
|
|
@@ -6585,19 +6634,19 @@ var AppLayout = function(_param) {
|
|
|
6585
6634
|
"aria-hidden": "true",
|
|
6586
6635
|
height: "1.6em",
|
|
6587
6636
|
width: "1.6em"
|
|
6588
|
-
}, /* @__PURE__ */
|
|
6637
|
+
}, /* @__PURE__ */ import_react36.default.createElement("path", {
|
|
6589
6638
|
fillRule: "evenodd",
|
|
6590
6639
|
clipRule: "evenodd",
|
|
6591
6640
|
d: "M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
|
|
6592
|
-
}))), props.pageTitle ? /* @__PURE__ */
|
|
6641
|
+
}))), props.pageTitle ? /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
6593
6642
|
className: "hawa-text-sm"
|
|
6594
|
-
}, props.pageTitle) : /* @__PURE__ */
|
|
6643
|
+
}, props.pageTitle) : /* @__PURE__ */ import_react36.default.createElement("div", null)), /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
6595
6644
|
className: cn("hawa-flex hawa-gap-2 dark:hawa-text-white", isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row")
|
|
6596
|
-
}, size > 600 ? /* @__PURE__ */
|
|
6645
|
+
}, size > 600 ? /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
6597
6646
|
className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs"
|
|
6598
|
-
}, /* @__PURE__ */
|
|
6647
|
+
}, /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
6599
6648
|
className: "hawa-font-bold"
|
|
6600
|
-
}, props.username), " ", /* @__PURE__ */
|
|
6649
|
+
}, props.username), " ", /* @__PURE__ */ import_react36.default.createElement("div", null, props.email)) : null, /* @__PURE__ */ import_react36.default.createElement(DropdownMenu, {
|
|
6601
6650
|
triggerClassname: "hawa-mx-2",
|
|
6602
6651
|
align: "end",
|
|
6603
6652
|
alignOffset: 8,
|
|
@@ -6609,22 +6658,22 @@ var AppLayout = function(_param) {
|
|
|
6609
6658
|
onItemSelect: function(e) {
|
|
6610
6659
|
return console.log("selecting item ", e);
|
|
6611
6660
|
},
|
|
6612
|
-
trigger: /* @__PURE__ */
|
|
6661
|
+
trigger: /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
6613
6662
|
className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600"
|
|
6614
|
-
}, props.avatarImage ? /* @__PURE__ */
|
|
6663
|
+
}, props.avatarImage ? /* @__PURE__ */ import_react36.default.createElement("img", {
|
|
6615
6664
|
src: props.avatarImage,
|
|
6616
6665
|
alt: "User Avatar"
|
|
6617
|
-
}) : /* @__PURE__ */
|
|
6666
|
+
}) : /* @__PURE__ */ import_react36.default.createElement("svg", {
|
|
6618
6667
|
"aria-label": "Avatar Icon",
|
|
6619
6668
|
className: "hawa-absolute hawa--left-1 hawa-h-10 hawa-w-10 hawa-text-gray-400",
|
|
6620
6669
|
fill: "currentColor",
|
|
6621
6670
|
viewBox: "0 0 20 20"
|
|
6622
|
-
}, /* @__PURE__ */
|
|
6671
|
+
}, /* @__PURE__ */ import_react36.default.createElement("path", {
|
|
6623
6672
|
fillRule: "evenodd",
|
|
6624
6673
|
d: "M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",
|
|
6625
6674
|
clipRule: "evenodd"
|
|
6626
6675
|
})))
|
|
6627
|
-
}))), /* @__PURE__ */
|
|
6676
|
+
}))), /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
6628
6677
|
className: cn("hawa-fixed hawa-z-40 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all", design === "floating" ? isRTL ? "hawa-right-5 hawa-top-5" : "hawa-bottom-5 hawa-left-5 hawa-top-5" : isRTL ? "hawa-right-0 hawa-top-0 hawa-h-full" : "hawa-left-0 hawa-top-0 hawa-h-full"),
|
|
6629
6678
|
style: {
|
|
6630
6679
|
width: size > 600 ? openSideMenu ? "".concat(drawerSizeStyle["opened"][drawerSize], "px") : "".concat(drawerSizeStyle["closed"][drawerSize], "px") : openSideMenu ? "".concat(drawerSizeStyle["opened"][drawerSize], "px") : "0px"
|
|
@@ -6641,27 +6690,27 @@ var AppLayout = function(_param) {
|
|
|
6641
6690
|
}
|
|
6642
6691
|
},
|
|
6643
6692
|
ref: ref
|
|
6644
|
-
}, /* @__PURE__ */
|
|
6693
|
+
}, /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
6645
6694
|
onClick: props.onLogoClick,
|
|
6646
6695
|
dir: direction,
|
|
6647
6696
|
className: cn("hawa-fixed hawa-z-50 hawa-mb-2 hawa-flex hawa-h-14 hawa-w-full hawa-flex-row hawa-items-center hawa-justify-center hawa-bg-primary-foreground hawa-transition-all", props.onLogoClick && "hawa-cursor-pointer"),
|
|
6648
6697
|
style: {
|
|
6649
6698
|
width: size > 600 ? "".concat(openSideMenu ? openDrawerWidth : 56, "px") : "".concat(openSideMenu ? openDrawerWidth : 0, "px")
|
|
6650
6699
|
}
|
|
6651
|
-
}, /* @__PURE__ */
|
|
6700
|
+
}, /* @__PURE__ */ import_react36.default.createElement("img", {
|
|
6652
6701
|
className: cn("hawa-h-9 hawa-opacity-0 hawa-transition-all", !openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100"),
|
|
6653
6702
|
src: props.logoLink
|
|
6654
|
-
}), size > 600 ? /* @__PURE__ */
|
|
6703
|
+
}), size > 600 ? /* @__PURE__ */ import_react36.default.createElement("img", {
|
|
6655
6704
|
className: cn("hawa-fixed hawa-h-9 hawa-transition-all", // isRTL ? "right-2.5" : "left-2.5",
|
|
6656
6705
|
design === "floating" ? isRTL ? "hawa-right-7.5 hawa-top-7" : "hawa-left-7.5 hawa-top-7" : isRTL ? "hawa-right-2.5 hawa-top-2.5" : "hawa-left-2.5 hawa-top-2.5", openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100"),
|
|
6657
6706
|
src: props.logoSymbol
|
|
6658
|
-
}) : null), /* @__PURE__ */
|
|
6707
|
+
}) : null), /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
6659
6708
|
className: cn("hawa-fixed hawa-bottom-14 hawa-bg-primary-foreground hawa-p-0 hawa-py-2 hawa-transition-all", design === "floating" ? "hawa-top-[76px]" : "hawa-top-14", openSideMenu ? "hawa-overflow-auto" : "hawa-overflow-hidden"),
|
|
6660
6709
|
style: {
|
|
6661
6710
|
height: design === "floating" ? "calc(100% - 152px)" : "calc(100% - 112px)",
|
|
6662
6711
|
width: size > 600 ? "".concat(openSideMenu ? openDrawerWidth : 56, "px") : "".concat(openSideMenu ? openDrawerWidth : 0, "px")
|
|
6663
6712
|
}
|
|
6664
|
-
}, /* @__PURE__ */
|
|
6713
|
+
}, /* @__PURE__ */ import_react36.default.createElement(SidebarGroup, {
|
|
6665
6714
|
direction: direction,
|
|
6666
6715
|
onItemClick: function(values) {
|
|
6667
6716
|
if (clickedItem) {
|
|
@@ -6680,16 +6729,16 @@ var AppLayout = function(_param) {
|
|
|
6680
6729
|
},
|
|
6681
6730
|
isOpen: openSideMenu,
|
|
6682
6731
|
items: props.drawerItems
|
|
6683
|
-
})), /* @__PURE__ */
|
|
6732
|
+
})), /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
6684
6733
|
className: cn("hawa-fixed hawa-flex hawa-h-14 hawa-w-full hawa-items-center hawa-justify-center hawa-gap-2 hawa-overflow-clip hawa-bg-primary-foreground hawa-transition-all", direction === "rtl" ? "hawa-flex-row-reverse" : "hawa-flex-row", design === "floating" ? "hawa-bottom-5" : "hawa-bottom-0"),
|
|
6685
6734
|
style: {
|
|
6686
6735
|
width: size > 600 ? "".concat(openSideMenu ? openDrawerWidth : 56, "px") : "".concat(openSideMenu ? openDrawerWidth : 0, "px")
|
|
6687
6736
|
}
|
|
6688
|
-
}, DrawerFooterActions && openSideMenu ? /* @__PURE__ */
|
|
6737
|
+
}, DrawerFooterActions && openSideMenu ? /* @__PURE__ */ import_react36.default.createElement(import_react36.default.Fragment, null, DrawerFooterActions) : null, size > 600 && openSideMenu ? /* @__PURE__ */ import_react36.default.createElement(Tooltip, {
|
|
6689
6738
|
side: "left",
|
|
6690
6739
|
delayDuration: 500,
|
|
6691
6740
|
content: keepOpen ? ((_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.collapseSidebar) || "Collapse Sidebar" : ((_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.expandSidebar) || "Expand Sidebar"
|
|
6692
|
-
}, /* @__PURE__ */
|
|
6741
|
+
}, /* @__PURE__ */ import_react36.default.createElement(Button, {
|
|
6693
6742
|
variant: "light",
|
|
6694
6743
|
onClick: function() {
|
|
6695
6744
|
var newKeepOpenState = !keepOpen;
|
|
@@ -6699,15 +6748,15 @@ var AppLayout = function(_param) {
|
|
|
6699
6748
|
setKeepOpen(newKeepOpenState);
|
|
6700
6749
|
},
|
|
6701
6750
|
size: "smallIcon"
|
|
6702
|
-
}, /* @__PURE__ */
|
|
6751
|
+
}, /* @__PURE__ */ import_react36.default.createElement("svg", {
|
|
6703
6752
|
className: cn("hawa-h-6 hawa-w-6 hawa-shrink-0 hawa-text-primary hawa-transition-all disabled:hawa-bg-gray-200 ", keepOpen ? isRTL ? "hawa--rotate-90" : "hawa-rotate-90" : isRTL ? "hawa-rotate-90" : "hawa--rotate-90"),
|
|
6704
6753
|
fill: "currentColor",
|
|
6705
6754
|
viewBox: "0 0 20 20"
|
|
6706
|
-
}, /* @__PURE__ */
|
|
6755
|
+
}, /* @__PURE__ */ import_react36.default.createElement("path", {
|
|
6707
6756
|
fillRule: "evenodd",
|
|
6708
6757
|
d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",
|
|
6709
6758
|
clipRule: "evenodd"
|
|
6710
|
-
})))) : null)), /* @__PURE__ */
|
|
6759
|
+
})))) : null)), /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
6711
6760
|
className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all",
|
|
6712
6761
|
style: design === "floating" ? isRTL ? {
|
|
6713
6762
|
height: "calc(100% - ".concat(props.topBar ? "56" : "0", "px)"),
|
|
@@ -6733,22 +6782,22 @@ var AppLayout = function(_param) {
|
|
|
6733
6782
|
}, props.children));
|
|
6734
6783
|
};
|
|
6735
6784
|
// components/layout/Copyrights.tsx
|
|
6736
|
-
var
|
|
6785
|
+
var import_react37 = __toESM(require("react"));
|
|
6737
6786
|
var Copyrights = function(props) {
|
|
6738
|
-
return /* @__PURE__ */
|
|
6787
|
+
return /* @__PURE__ */ import_react37.default.createElement("div", {
|
|
6739
6788
|
className: "hawa-my-2 hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-1 hawa-text-xs hawa-text-gray-400"
|
|
6740
|
-
}, props.withLogo ? /* @__PURE__ */
|
|
6789
|
+
}, props.withLogo ? /* @__PURE__ */ import_react37.default.createElement("a", {
|
|
6741
6790
|
href: props.onLogoClicked
|
|
6742
|
-
}, /* @__PURE__ */
|
|
6791
|
+
}, /* @__PURE__ */ import_react37.default.createElement("div", {
|
|
6743
6792
|
className: "hawa-cursor-pointer"
|
|
6744
|
-
}, /* @__PURE__ */
|
|
6793
|
+
}, /* @__PURE__ */ import_react37.default.createElement("image", {
|
|
6745
6794
|
href: props.logoURL,
|
|
6746
6795
|
width: 100,
|
|
6747
6796
|
height: 50
|
|
6748
|
-
}))) : null, /* @__PURE__ */
|
|
6797
|
+
}))) : null, /* @__PURE__ */ import_react37.default.createElement("div", null, props.version), props.credits ? props.credits : null);
|
|
6749
6798
|
};
|
|
6750
6799
|
// components/layout/Navbar.tsx
|
|
6751
|
-
var
|
|
6800
|
+
var import_react38 = __toESM(require("react"));
|
|
6752
6801
|
// components/elements/Collapsible.tsx
|
|
6753
6802
|
var CollapsiblePrimitive = __toESM(require("@radix-ui/react-collapsible"));
|
|
6754
6803
|
var Collapsible = CollapsiblePrimitive.Root;
|
|
@@ -6756,68 +6805,129 @@ var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
|
|
6756
6805
|
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
6757
6806
|
// components/layout/Navbar.tsx
|
|
6758
6807
|
var Navbar = function(props) {
|
|
6759
|
-
var _ref = _sliced_to_array((0,
|
|
6760
|
-
return /* @__PURE__ */
|
|
6808
|
+
var _ref = _sliced_to_array((0, import_react38.useState)(false), 2), isOpen = _ref[0], setIsOpen = _ref[1];
|
|
6809
|
+
return /* @__PURE__ */ import_react38.default.createElement("nav", {
|
|
6761
6810
|
className: "hawa-bg-gray-800 hawa-p-4 hawa-transition-all"
|
|
6762
|
-
}, /* @__PURE__ */
|
|
6811
|
+
}, /* @__PURE__ */ import_react38.default.createElement(Collapsible, null, /* @__PURE__ */ import_react38.default.createElement("div", {
|
|
6763
6812
|
className: "hawa-container hawa-mx-auto hawa-flex hawa-justify-between hawa-items-center"
|
|
6764
|
-
}, /* @__PURE__ */
|
|
6813
|
+
}, /* @__PURE__ */ import_react38.default.createElement("div", {
|
|
6765
6814
|
className: "hawa-flex hawa-items-center"
|
|
6766
|
-
}, /* @__PURE__ */
|
|
6815
|
+
}, /* @__PURE__ */ import_react38.default.createElement("a", {
|
|
6767
6816
|
href: "/",
|
|
6768
6817
|
className: "hawa-text-white hawa-text-xl hawa-font-bold"
|
|
6769
|
-
}, "YourLogo")), /* @__PURE__ */
|
|
6818
|
+
}, "YourLogo")), /* @__PURE__ */ import_react38.default.createElement("div", {
|
|
6770
6819
|
className: "hawa-hidden hawa-md:hawa-flex hawa-space-x-4"
|
|
6771
|
-
}, /* @__PURE__ */
|
|
6820
|
+
}, /* @__PURE__ */ import_react38.default.createElement("a", {
|
|
6772
6821
|
href: "/about",
|
|
6773
6822
|
className: "hawa-text-white"
|
|
6774
|
-
}, "About"), /* @__PURE__ */
|
|
6823
|
+
}, "About"), /* @__PURE__ */ import_react38.default.createElement("a", {
|
|
6775
6824
|
href: "/services",
|
|
6776
6825
|
className: "hawa-text-white"
|
|
6777
|
-
}, "Services"), /* @__PURE__ */
|
|
6826
|
+
}, "Services"), /* @__PURE__ */ import_react38.default.createElement("a", {
|
|
6778
6827
|
href: "/contact",
|
|
6779
6828
|
className: "hawa-text-white"
|
|
6780
|
-
}, "Contact")), /* @__PURE__ */
|
|
6829
|
+
}, "Contact")), /* @__PURE__ */ import_react38.default.createElement("div", {
|
|
6781
6830
|
className: "hawa-md:hawa-hidden"
|
|
6782
|
-
}, /* @__PURE__ */
|
|
6831
|
+
}, /* @__PURE__ */ import_react38.default.createElement(CollapsibleTrigger2, {
|
|
6783
6832
|
className: "hawa-text-white hawa-p-2",
|
|
6784
6833
|
"aria-label": "Toggle menu"
|
|
6785
|
-
}, /* @__PURE__ */
|
|
6834
|
+
}, /* @__PURE__ */ import_react38.default.createElement("svg", {
|
|
6786
6835
|
className: "hawa-w-6 hawa-h-6",
|
|
6787
6836
|
fill: "none",
|
|
6788
6837
|
stroke: "currentColor",
|
|
6789
6838
|
viewBox: "0 0 24 24",
|
|
6790
6839
|
xmlns: "http://www.w3.org/2000/svg"
|
|
6791
|
-
}, /* @__PURE__ */
|
|
6840
|
+
}, /* @__PURE__ */ import_react38.default.createElement("path", {
|
|
6792
6841
|
strokeLinecap: "round",
|
|
6793
6842
|
strokeLinejoin: "round",
|
|
6794
6843
|
strokeWidth: "2",
|
|
6795
6844
|
d: "M4 6h16M4 12h16m-7 6h7"
|
|
6796
|
-
}))))), /* @__PURE__ */
|
|
6845
|
+
}))))), /* @__PURE__ */ import_react38.default.createElement(CollapsibleContent2, {
|
|
6797
6846
|
className: "hwa-transition-all hawa-fade-in-0 data-[state=open]:hawa-zoom-in-95 data-[state=open]:hawa-animate-in hawa-flex hawa-flex-col hawa-space-y-2 hawa-mt-4"
|
|
6798
|
-
}, /* @__PURE__ */
|
|
6847
|
+
}, /* @__PURE__ */ import_react38.default.createElement("a", {
|
|
6799
6848
|
href: "/about",
|
|
6800
6849
|
className: "hawa-text-white hawa-px-2"
|
|
6801
|
-
}, "About"), /* @__PURE__ */
|
|
6850
|
+
}, "About"), /* @__PURE__ */ import_react38.default.createElement("a", {
|
|
6802
6851
|
href: "/services",
|
|
6803
6852
|
className: "hawa-text-white hawa-px-2"
|
|
6804
|
-
}, "Services"), /* @__PURE__ */
|
|
6853
|
+
}, "Services"), /* @__PURE__ */ import_react38.default.createElement("a", {
|
|
6805
6854
|
href: "/contact",
|
|
6806
6855
|
className: "hawa-text-white hawa-px-2"
|
|
6807
6856
|
}, "Contact"))));
|
|
6808
6857
|
};
|
|
6809
6858
|
// components/blocks/auth/LoginForm.tsx
|
|
6810
|
-
var
|
|
6859
|
+
var import_react40 = __toESM(require("react"));
|
|
6811
6860
|
var import_react_hook_form = require("react-hook-form");
|
|
6812
6861
|
var import_zod = require("@hookform/resolvers/zod");
|
|
6813
6862
|
var import_libphonenumber_js = require("libphonenumber-js");
|
|
6814
6863
|
var z = __toESM(require("zod"));
|
|
6864
|
+
// components/blocks/auth/AuthButtons.tsx
|
|
6865
|
+
var import_react39 = __toESM(require("react"));
|
|
6866
|
+
var AuthButtons = function(props) {
|
|
6867
|
+
var _props_texts, _props_texts1, _props_texts2, _props_texts3, _props_texts4, _props_texts5, _props_texts6;
|
|
6868
|
+
var _props_texts_continueWithGoogle, _props_texts_continueWithGithub, _props_texts_continueWithTwitter, _props_texts_continueWithApple, _props_texts_continueWithMicrosoft, _props_texts_continueWithEmail, _props_texts_continueWithPhone;
|
|
6869
|
+
return /* @__PURE__ */ import_react39.default.createElement("div", {
|
|
6870
|
+
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
6871
|
+
}, props.viaGoogle && /* @__PURE__ */ import_react39.default.createElement(Button, {
|
|
6872
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
6873
|
+
variant: "outline",
|
|
6874
|
+
onClick: props.handleGoogle
|
|
6875
|
+
}, /* @__PURE__ */ import_react39.default.createElement(Logos.google, {
|
|
6876
|
+
className: "hawa-h-4 hawa-w-4"
|
|
6877
|
+
}), (_props_texts_continueWithGoogle = (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.continueWithGoogle) !== null && _props_texts_continueWithGoogle !== void 0 ? _props_texts_continueWithGoogle : "Continue With Google"), props.viaGithub && /* @__PURE__ */ import_react39.default.createElement(Button, {
|
|
6878
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
6879
|
+
variant: "outline",
|
|
6880
|
+
onClick: props.handleGithub
|
|
6881
|
+
}, /* @__PURE__ */ import_react39.default.createElement(Logos.github, {
|
|
6882
|
+
className: "hawa-h-4 hawa-w-4"
|
|
6883
|
+
}), (_props_texts_continueWithGithub = (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.continueWithGithub) !== null && _props_texts_continueWithGithub !== void 0 ? _props_texts_continueWithGithub : "Continue With Github"), props.viaTwitter && /* @__PURE__ */ import_react39.default.createElement(Button, {
|
|
6884
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
6885
|
+
variant: "outline",
|
|
6886
|
+
onClick: props.handleTwitter
|
|
6887
|
+
}, /* @__PURE__ */ import_react39.default.createElement(Logos.twitter, {
|
|
6888
|
+
className: "hawa-h-4 hawa-w-4"
|
|
6889
|
+
}), (_props_texts_continueWithTwitter = (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.continueWithTwitter) !== null && _props_texts_continueWithTwitter !== void 0 ? _props_texts_continueWithTwitter : "Continue With Twitter"), props.viaApple && /* @__PURE__ */ import_react39.default.createElement(Button, {
|
|
6890
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
6891
|
+
variant: "outline",
|
|
6892
|
+
onClick: props.handleApple
|
|
6893
|
+
}, /* @__PURE__ */ import_react39.default.createElement(Logos.apple, {
|
|
6894
|
+
className: "hawa-h-4 hawa-w-4"
|
|
6895
|
+
}), (_props_texts_continueWithApple = (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.continueWithApple) !== null && _props_texts_continueWithApple !== void 0 ? _props_texts_continueWithApple : "Continue With Apple"), props.viaMicrosoft && /* @__PURE__ */ import_react39.default.createElement(Button, {
|
|
6896
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
6897
|
+
variant: "outline",
|
|
6898
|
+
onClick: props.handleMicrosoft
|
|
6899
|
+
}, /* @__PURE__ */ import_react39.default.createElement(Logos.microsoft, {
|
|
6900
|
+
className: "hawa-h-4 hawa-w-4"
|
|
6901
|
+
}), (_props_texts_continueWithMicrosoft = (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.continueWithMicrosoft) !== null && _props_texts_continueWithMicrosoft !== void 0 ? _props_texts_continueWithMicrosoft : "Continue With Microsoft"), props.viaEmail && /* @__PURE__ */ import_react39.default.createElement(Button, {
|
|
6902
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
6903
|
+
variant: "outline",
|
|
6904
|
+
onClick: props.handleEmail
|
|
6905
|
+
}, /* @__PURE__ */ import_react39.default.createElement(Logos.mail, {
|
|
6906
|
+
className: "hawa-h-4 hawa-w-4"
|
|
6907
|
+
}), (_props_texts_continueWithEmail = (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.continueWithEmail) !== null && _props_texts_continueWithEmail !== void 0 ? _props_texts_continueWithEmail : "Continue With Email"), props.viaPhone && /* @__PURE__ */ import_react39.default.createElement(Button, {
|
|
6908
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
6909
|
+
variant: "outline",
|
|
6910
|
+
onClick: props.handlePhone
|
|
6911
|
+
}, /* @__PURE__ */ import_react39.default.createElement(Logos.phone, {
|
|
6912
|
+
className: "hawa-h-4 hawa-w-4"
|
|
6913
|
+
}), (_props_texts_continueWithPhone = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.continueWithPhone) !== null && _props_texts_continueWithPhone !== void 0 ? _props_texts_continueWithPhone : "Continue With Phone"));
|
|
6914
|
+
};
|
|
6915
|
+
// components/blocks/auth/LoginForm.tsx
|
|
6815
6916
|
var LoginForm = function(_param) {
|
|
6816
6917
|
var loginType = _param.loginType, texts = _param.texts, _param_passwordLength = _param.passwordLength, passwordLength = _param_passwordLength === void 0 ? 8 : _param_passwordLength, props = _object_without_properties(_param, [
|
|
6817
6918
|
"loginType",
|
|
6818
6919
|
"texts",
|
|
6819
6920
|
"passwordLength"
|
|
6820
6921
|
]);
|
|
6922
|
+
var thirdPartyAuthTexts = {
|
|
6923
|
+
continueWithGoogle: texts === null || texts === void 0 ? void 0 : texts.continueWithGoogle,
|
|
6924
|
+
continueWithTwitter: texts === null || texts === void 0 ? void 0 : texts.continueWithTwitter,
|
|
6925
|
+
continueWithApple: texts === null || texts === void 0 ? void 0 : texts.continueWithApple,
|
|
6926
|
+
continueWithMicrosoft: texts === null || texts === void 0 ? void 0 : texts.continueWithMicrosoft,
|
|
6927
|
+
continueWithGithub: texts === null || texts === void 0 ? void 0 : texts.continueWithGithub,
|
|
6928
|
+
continueWithEmail: texts === null || texts === void 0 ? void 0 : texts.continueWithEmail,
|
|
6929
|
+
continueWithPhone: texts === null || texts === void 0 ? void 0 : texts.continueWithPhone
|
|
6930
|
+
};
|
|
6821
6931
|
var formSchema;
|
|
6822
6932
|
if (loginType === "email") {
|
|
6823
6933
|
formSchema = z.object({
|
|
@@ -6886,13 +6996,13 @@ var LoginForm = function(_param) {
|
|
|
6886
6996
|
var renderFields = function() {
|
|
6887
6997
|
switch(loginType){
|
|
6888
6998
|
case "email":
|
|
6889
|
-
return /* @__PURE__ */
|
|
6999
|
+
return /* @__PURE__ */ import_react40.default.createElement(import_react40.default.Fragment, null, /* @__PURE__ */ import_react40.default.createElement(import_react_hook_form.Controller, {
|
|
6890
7000
|
control: control,
|
|
6891
7001
|
name: "email",
|
|
6892
7002
|
render: function(param) {
|
|
6893
7003
|
var field = param.field;
|
|
6894
7004
|
var _formState_errors_email;
|
|
6895
|
-
return /* @__PURE__ */
|
|
7005
|
+
return /* @__PURE__ */ import_react40.default.createElement(Input, _object_spread({
|
|
6896
7006
|
width: "full",
|
|
6897
7007
|
autoComplete: "email",
|
|
6898
7008
|
label: (texts === null || texts === void 0 ? void 0 : texts.emailLabel) || "Email",
|
|
@@ -6900,13 +7010,13 @@ var LoginForm = function(_param) {
|
|
|
6900
7010
|
placeholder: (texts === null || texts === void 0 ? void 0 : texts.emailPlaceholder) || "contact@sikka.io"
|
|
6901
7011
|
}, field));
|
|
6902
7012
|
}
|
|
6903
|
-
}), /* @__PURE__ */
|
|
7013
|
+
}), /* @__PURE__ */ import_react40.default.createElement("div", null, /* @__PURE__ */ import_react40.default.createElement(import_react_hook_form.Controller, {
|
|
6904
7014
|
control: control,
|
|
6905
7015
|
name: "password",
|
|
6906
7016
|
render: function(param) {
|
|
6907
7017
|
var field = param.field;
|
|
6908
7018
|
var _formState_errors_password;
|
|
6909
|
-
return /* @__PURE__ */
|
|
7019
|
+
return /* @__PURE__ */ import_react40.default.createElement(Input, _object_spread({
|
|
6910
7020
|
width: "full",
|
|
6911
7021
|
autoComplete: "current-password",
|
|
6912
7022
|
type: "password",
|
|
@@ -6915,18 +7025,18 @@ var LoginForm = function(_param) {
|
|
|
6915
7025
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
6916
7026
|
}, field));
|
|
6917
7027
|
}
|
|
6918
|
-
}), !props.withoutResetPassword && /* @__PURE__ */
|
|
7028
|
+
}), !props.withoutResetPassword && /* @__PURE__ */ import_react40.default.createElement("div", {
|
|
6919
7029
|
onClick: props.onForgotPassword,
|
|
6920
7030
|
className: "hawa-mb-3 hawa-mt-2 hawa-w-fit hawa-cursor-pointer hawa-text-xs dark:hawa-text-gray-300"
|
|
6921
7031
|
}, (texts === null || texts === void 0 ? void 0 : texts.forgotPassword) || "Forgot Password?")));
|
|
6922
7032
|
case "username":
|
|
6923
|
-
return /* @__PURE__ */
|
|
7033
|
+
return /* @__PURE__ */ import_react40.default.createElement(import_react40.default.Fragment, null, /* @__PURE__ */ import_react40.default.createElement(import_react_hook_form.Controller, {
|
|
6924
7034
|
control: control,
|
|
6925
7035
|
name: "username",
|
|
6926
7036
|
render: function(param) {
|
|
6927
7037
|
var field = param.field;
|
|
6928
7038
|
var _formState_errors_username;
|
|
6929
|
-
return /* @__PURE__ */
|
|
7039
|
+
return /* @__PURE__ */ import_react40.default.createElement(Input, _object_spread({
|
|
6930
7040
|
width: "full",
|
|
6931
7041
|
autoComplete: "username",
|
|
6932
7042
|
label: (texts === null || texts === void 0 ? void 0 : texts.usernameLabel) || "Username",
|
|
@@ -6934,13 +7044,13 @@ var LoginForm = function(_param) {
|
|
|
6934
7044
|
placeholder: (texts === null || texts === void 0 ? void 0 : texts.usernamePlaceholder) || "sikka_sa"
|
|
6935
7045
|
}, field));
|
|
6936
7046
|
}
|
|
6937
|
-
}), /* @__PURE__ */
|
|
7047
|
+
}), /* @__PURE__ */ import_react40.default.createElement("div", null, /* @__PURE__ */ import_react40.default.createElement(import_react_hook_form.Controller, {
|
|
6938
7048
|
control: control,
|
|
6939
7049
|
name: "password",
|
|
6940
7050
|
render: function(param) {
|
|
6941
7051
|
var field = param.field;
|
|
6942
7052
|
var _formState_errors_password;
|
|
6943
|
-
return /* @__PURE__ */
|
|
7053
|
+
return /* @__PURE__ */ import_react40.default.createElement(Input, _object_spread({
|
|
6944
7054
|
width: "full",
|
|
6945
7055
|
autoComplete: "current-password",
|
|
6946
7056
|
type: "password",
|
|
@@ -6949,18 +7059,18 @@ var LoginForm = function(_param) {
|
|
|
6949
7059
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
6950
7060
|
}, field));
|
|
6951
7061
|
}
|
|
6952
|
-
}), !props.withoutResetPassword && /* @__PURE__ */
|
|
7062
|
+
}), !props.withoutResetPassword && /* @__PURE__ */ import_react40.default.createElement("div", {
|
|
6953
7063
|
onClick: props.onForgotPassword,
|
|
6954
7064
|
className: "hawa-mb-3 hawa-mt-2 hawa-w-fit hawa-cursor-pointer hawa-text-xs dark:hawa-text-gray-300"
|
|
6955
7065
|
}, (texts === null || texts === void 0 ? void 0 : texts.forgotPassword) || "Forgot Password?")));
|
|
6956
7066
|
case "phone":
|
|
6957
|
-
return /* @__PURE__ */
|
|
7067
|
+
return /* @__PURE__ */ import_react40.default.createElement(import_react40.default.Fragment, null, /* @__PURE__ */ import_react40.default.createElement(import_react_hook_form.Controller, {
|
|
6958
7068
|
control: control,
|
|
6959
7069
|
name: "phone",
|
|
6960
7070
|
render: function(param) {
|
|
6961
7071
|
var field = param.field;
|
|
6962
7072
|
var _formState_errors_phone;
|
|
6963
|
-
return /* @__PURE__ */
|
|
7073
|
+
return /* @__PURE__ */ import_react40.default.createElement(PhoneInput, {
|
|
6964
7074
|
label: texts === null || texts === void 0 ? void 0 : texts.phoneLabel,
|
|
6965
7075
|
helperText: (_formState_errors_phone = formState.errors.phone) === null || _formState_errors_phone === void 0 ? void 0 : _formState_errors_phone.message,
|
|
6966
7076
|
preferredCountry: {
|
|
@@ -6973,13 +7083,13 @@ var LoginForm = function(_param) {
|
|
|
6973
7083
|
}
|
|
6974
7084
|
}));
|
|
6975
7085
|
case "link":
|
|
6976
|
-
return /* @__PURE__ */
|
|
7086
|
+
return /* @__PURE__ */ import_react40.default.createElement(import_react40.default.Fragment, null, /* @__PURE__ */ import_react40.default.createElement(import_react_hook_form.Controller, {
|
|
6977
7087
|
control: control,
|
|
6978
7088
|
name: "email",
|
|
6979
7089
|
render: function(param) {
|
|
6980
7090
|
var field = param.field;
|
|
6981
7091
|
var _formState_errors_email;
|
|
6982
|
-
return /* @__PURE__ */
|
|
7092
|
+
return /* @__PURE__ */ import_react40.default.createElement(Input, _object_spread({
|
|
6983
7093
|
width: "full",
|
|
6984
7094
|
autoComplete: "email",
|
|
6985
7095
|
label: (texts === null || texts === void 0 ? void 0 : texts.emailLabel) || "Email",
|
|
@@ -6992,17 +7102,17 @@ var LoginForm = function(_param) {
|
|
|
6992
7102
|
break;
|
|
6993
7103
|
}
|
|
6994
7104
|
};
|
|
6995
|
-
return /* @__PURE__ */
|
|
7105
|
+
return /* @__PURE__ */ import_react40.default.createElement("div", {
|
|
6996
7106
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
6997
|
-
}, /* @__PURE__ */
|
|
7107
|
+
}, /* @__PURE__ */ import_react40.default.createElement(Card, {
|
|
6998
7108
|
dir: props.direction
|
|
6999
|
-
}, /* @__PURE__ */
|
|
7109
|
+
}, /* @__PURE__ */ import_react40.default.createElement(CardContent, {
|
|
7000
7110
|
headless: true
|
|
7001
|
-
}, props.showError && /* @__PURE__ */
|
|
7111
|
+
}, props.showError && /* @__PURE__ */ import_react40.default.createElement(Alert, {
|
|
7002
7112
|
title: props.errorTitle,
|
|
7003
7113
|
text: props.errorText,
|
|
7004
7114
|
severity: "error"
|
|
7005
|
-
}), /* @__PURE__ */
|
|
7115
|
+
}), /* @__PURE__ */ import_react40.default.createElement("form", {
|
|
7006
7116
|
className: "hawa-flex hawa-flex-col hawa-gap-4",
|
|
7007
7117
|
onSubmit: handleSubmit(function(e) {
|
|
7008
7118
|
if (props.onLogin) {
|
|
@@ -7011,42 +7121,26 @@ var LoginForm = function(_param) {
|
|
|
7011
7121
|
console.log("Form is submitted but onLogin prop is missing");
|
|
7012
7122
|
}
|
|
7013
7123
|
})
|
|
7014
|
-
}, renderFields(), /* @__PURE__ */
|
|
7124
|
+
}, renderFields(), /* @__PURE__ */ import_react40.default.createElement(Button, {
|
|
7015
7125
|
className: "hawa-mt-0 hawa-w-full",
|
|
7016
7126
|
type: "submit",
|
|
7017
7127
|
isLoading: props.isLoading
|
|
7018
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login"), props.additionalButtons, props.allowRegister && /* @__PURE__ */
|
|
7128
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login"), props.additionalButtons, props.allowRegister && /* @__PURE__ */ import_react40.default.createElement("div", {
|
|
7019
7129
|
className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal hawa-select-none dark:hawa-text-gray-300"
|
|
7020
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.newUserText) || "New user?", " ", /* @__PURE__ */
|
|
7130
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.newUserText) || "New user?", " ", /* @__PURE__ */ import_react40.default.createElement("span", {
|
|
7021
7131
|
onClick: props.onRouteToRegister,
|
|
7022
7132
|
className: "clickable-link"
|
|
7023
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.createAccount) || "Create Account")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
|
7133
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.createAccount) || "Create Account")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react40.default.createElement(CardFooter, {
|
|
7024
7134
|
className: cn(props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2")
|
|
7025
|
-
},
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
}),
|
|
7034
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7035
|
-
variant: "outline",
|
|
7036
|
-
onClick: props.onGithubLogin
|
|
7037
|
-
}, props.isGithubLoading ? /* @__PURE__ */ import_react38.default.createElement(Loading, {
|
|
7038
|
-
size: "button"
|
|
7039
|
-
}) : /* @__PURE__ */ import_react38.default.createElement(Logos.github, {
|
|
7040
|
-
className: "hawa-h-4 hawa-w-4"
|
|
7041
|
-
}), !props.logosOnly && (texts === null || texts === void 0 ? void 0 : texts.loginViaGithubLabel)), props.viaTwitter && /* @__PURE__ */ import_react38.default.createElement(Button, {
|
|
7042
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7043
|
-
variant: "outline",
|
|
7044
|
-
onClick: props.onTwitterLogin
|
|
7045
|
-
}, props.isTwitterLoading ? /* @__PURE__ */ import_react38.default.createElement(Loading, {
|
|
7046
|
-
size: "button"
|
|
7047
|
-
}) : /* @__PURE__ */ import_react38.default.createElement(Logos.twitter, {
|
|
7048
|
-
className: "hawa-h-4 hawa-w-4"
|
|
7049
|
-
}), " ", !props.logosOnly && (texts === null || texts === void 0 ? void 0 : texts.loginViaTwitterLabel))) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */ import_react38.default.createElement(InterfaceSettings, {
|
|
7135
|
+
}, /* @__PURE__ */ import_react40.default.createElement(AuthButtons, {
|
|
7136
|
+
texts: thirdPartyAuthTexts,
|
|
7137
|
+
viaGoogle: props.viaGoogle,
|
|
7138
|
+
viaGithub: props.viaGithub,
|
|
7139
|
+
viaTwitter: props.viaTwitter,
|
|
7140
|
+
handleGoogle: props.onGoogleLogin,
|
|
7141
|
+
handleGithub: props.onGithubLogin,
|
|
7142
|
+
handleTwitter: props.onTwitterLogin
|
|
7143
|
+
})) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */ import_react40.default.createElement(InterfaceSettings, {
|
|
7050
7144
|
currentColorMode: props.currentColorMode,
|
|
7051
7145
|
currentLanguage: props.currentLanguage,
|
|
7052
7146
|
handleColorMode: props.handleColorMode,
|
|
@@ -7054,7 +7148,7 @@ var LoginForm = function(_param) {
|
|
|
7054
7148
|
}));
|
|
7055
7149
|
};
|
|
7056
7150
|
// components/blocks/auth/RegisterForm.tsx
|
|
7057
|
-
var
|
|
7151
|
+
var import_react41 = __toESM(require("react"));
|
|
7058
7152
|
var import_react_hook_form2 = require("react-hook-form");
|
|
7059
7153
|
var import_zod2 = require("@hookform/resolvers/zod");
|
|
7060
7154
|
var z2 = __toESM(require("zod"));
|
|
@@ -7062,6 +7156,15 @@ var RegisterForm = function(_param) {
|
|
|
7062
7156
|
var texts = _param.texts, props = _object_without_properties(_param, [
|
|
7063
7157
|
"texts"
|
|
7064
7158
|
]);
|
|
7159
|
+
var thirdPartyAuthTexts = {
|
|
7160
|
+
continueWithGoogle: texts === null || texts === void 0 ? void 0 : texts.continueWithGoogle,
|
|
7161
|
+
continueWithTwitter: texts === null || texts === void 0 ? void 0 : texts.continueWithTwitter,
|
|
7162
|
+
continueWithApple: texts === null || texts === void 0 ? void 0 : texts.continueWithApple,
|
|
7163
|
+
continueWithMicrosoft: texts === null || texts === void 0 ? void 0 : texts.continueWithMicrosoft,
|
|
7164
|
+
continueWithGithub: texts === null || texts === void 0 ? void 0 : texts.continueWithGithub,
|
|
7165
|
+
continueWithEmail: texts === null || texts === void 0 ? void 0 : texts.continueWithEmail,
|
|
7166
|
+
continueWithPhone: texts === null || texts === void 0 ? void 0 : texts.continueWithPhone
|
|
7167
|
+
};
|
|
7065
7168
|
var methods = (0, import_react_hook_form2.useForm)();
|
|
7066
7169
|
var fieldSchemas = {};
|
|
7067
7170
|
props.registerFields.forEach(function(field) {
|
|
@@ -7130,17 +7233,17 @@ var RegisterForm = function(_param) {
|
|
|
7130
7233
|
var _ref = (0, import_react_hook_form2.useForm)({
|
|
7131
7234
|
resolver: (0, import_zod2.zodResolver)(formSchema)
|
|
7132
7235
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState;
|
|
7133
|
-
return /* @__PURE__ */
|
|
7236
|
+
return /* @__PURE__ */ import_react41.default.createElement("div", {
|
|
7134
7237
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7135
|
-
}, /* @__PURE__ */
|
|
7238
|
+
}, /* @__PURE__ */ import_react41.default.createElement(Card, {
|
|
7136
7239
|
dir: props.direction
|
|
7137
|
-
}, /* @__PURE__ */
|
|
7240
|
+
}, /* @__PURE__ */ import_react41.default.createElement(CardContent, {
|
|
7138
7241
|
headless: true
|
|
7139
|
-
}, /* @__PURE__ */
|
|
7242
|
+
}, /* @__PURE__ */ import_react41.default.createElement("div", null, props.showError && /* @__PURE__ */ import_react41.default.createElement(Alert, {
|
|
7140
7243
|
title: props.errorTitle,
|
|
7141
7244
|
text: props.errorText,
|
|
7142
7245
|
severity: "error"
|
|
7143
|
-
}), /* @__PURE__ */
|
|
7246
|
+
}), /* @__PURE__ */ import_react41.default.createElement(import_react_hook_form2.FormProvider, _object_spread({}, methods), /* @__PURE__ */ import_react41.default.createElement("form", {
|
|
7144
7247
|
onSubmit: handleSubmit(function(e) {
|
|
7145
7248
|
if (props.onRegister) {
|
|
7146
7249
|
return props.onRegister(e);
|
|
@@ -7149,18 +7252,18 @@ var RegisterForm = function(_param) {
|
|
|
7149
7252
|
}
|
|
7150
7253
|
}),
|
|
7151
7254
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7152
|
-
}, /* @__PURE__ */
|
|
7255
|
+
}, /* @__PURE__ */ import_react41.default.createElement("div", {
|
|
7153
7256
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7154
7257
|
}, props.registerFields.map(function(fld, i) {
|
|
7155
7258
|
if (fld === "fullname") {
|
|
7156
|
-
return /* @__PURE__ */
|
|
7259
|
+
return /* @__PURE__ */ import_react41.default.createElement(import_react_hook_form2.Controller, {
|
|
7157
7260
|
key: i,
|
|
7158
7261
|
control: control,
|
|
7159
7262
|
name: "fullName",
|
|
7160
7263
|
render: function(param) {
|
|
7161
7264
|
var field = param.field;
|
|
7162
7265
|
var _formState_errors_fullName;
|
|
7163
|
-
return /* @__PURE__ */
|
|
7266
|
+
return /* @__PURE__ */ import_react41.default.createElement(Input, _object_spread({
|
|
7164
7267
|
width: "full",
|
|
7165
7268
|
label: texts === null || texts === void 0 ? void 0 : texts.fullNameLabel,
|
|
7166
7269
|
placeholder: texts === null || texts === void 0 ? void 0 : texts.fullNamePlaceholder,
|
|
@@ -7170,14 +7273,14 @@ var RegisterForm = function(_param) {
|
|
|
7170
7273
|
});
|
|
7171
7274
|
}
|
|
7172
7275
|
if (fld === "email") {
|
|
7173
|
-
return /* @__PURE__ */
|
|
7276
|
+
return /* @__PURE__ */ import_react41.default.createElement(import_react_hook_form2.Controller, {
|
|
7174
7277
|
key: i,
|
|
7175
7278
|
control: control,
|
|
7176
7279
|
name: "email",
|
|
7177
7280
|
render: function(param) {
|
|
7178
7281
|
var field = param.field;
|
|
7179
7282
|
var _formState_errors_email;
|
|
7180
|
-
return /* @__PURE__ */
|
|
7283
|
+
return /* @__PURE__ */ import_react41.default.createElement(Input, _object_spread({
|
|
7181
7284
|
width: "full",
|
|
7182
7285
|
autoComplete: "email",
|
|
7183
7286
|
label: texts === null || texts === void 0 ? void 0 : texts.emailLabel,
|
|
@@ -7188,14 +7291,14 @@ var RegisterForm = function(_param) {
|
|
|
7188
7291
|
});
|
|
7189
7292
|
}
|
|
7190
7293
|
if (fld === "username") {
|
|
7191
|
-
return /* @__PURE__ */
|
|
7294
|
+
return /* @__PURE__ */ import_react41.default.createElement(import_react_hook_form2.Controller, {
|
|
7192
7295
|
key: i,
|
|
7193
7296
|
control: control,
|
|
7194
7297
|
name: "username",
|
|
7195
7298
|
render: function(param) {
|
|
7196
7299
|
var field = param.field;
|
|
7197
7300
|
var _formState_errors_username;
|
|
7198
|
-
return /* @__PURE__ */
|
|
7301
|
+
return /* @__PURE__ */ import_react41.default.createElement(Input, _object_spread({
|
|
7199
7302
|
width: "full",
|
|
7200
7303
|
autoComplete: "username",
|
|
7201
7304
|
label: texts === null || texts === void 0 ? void 0 : texts.usernameLabel,
|
|
@@ -7205,13 +7308,13 @@ var RegisterForm = function(_param) {
|
|
|
7205
7308
|
}
|
|
7206
7309
|
});
|
|
7207
7310
|
}
|
|
7208
|
-
})), /* @__PURE__ */
|
|
7311
|
+
})), /* @__PURE__ */ import_react41.default.createElement(import_react_hook_form2.Controller, {
|
|
7209
7312
|
control: control,
|
|
7210
7313
|
name: "password",
|
|
7211
7314
|
render: function(param) {
|
|
7212
7315
|
var field = param.field;
|
|
7213
7316
|
var _formState_errors_password;
|
|
7214
|
-
return /* @__PURE__ */
|
|
7317
|
+
return /* @__PURE__ */ import_react41.default.createElement(Input, _object_spread({
|
|
7215
7318
|
width: "full",
|
|
7216
7319
|
type: "password",
|
|
7217
7320
|
autoComplete: "new-password",
|
|
@@ -7220,13 +7323,13 @@ var RegisterForm = function(_param) {
|
|
|
7220
7323
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
7221
7324
|
}, field));
|
|
7222
7325
|
}
|
|
7223
|
-
}), /* @__PURE__ */
|
|
7326
|
+
}), /* @__PURE__ */ import_react41.default.createElement(import_react_hook_form2.Controller, {
|
|
7224
7327
|
control: control,
|
|
7225
7328
|
name: "confirm_password",
|
|
7226
7329
|
render: function(param) {
|
|
7227
7330
|
var field = param.field;
|
|
7228
7331
|
var _formState_errors_confirm_password;
|
|
7229
|
-
return /* @__PURE__ */
|
|
7332
|
+
return /* @__PURE__ */ import_react41.default.createElement(Input, _object_spread({
|
|
7230
7333
|
width: "full",
|
|
7231
7334
|
type: "password",
|
|
7232
7335
|
autoComplete: "new-password",
|
|
@@ -7235,25 +7338,25 @@ var RegisterForm = function(_param) {
|
|
|
7235
7338
|
helperText: (_formState_errors_confirm_password = formState.errors.confirm_password) === null || _formState_errors_confirm_password === void 0 ? void 0 : _formState_errors_confirm_password.message
|
|
7236
7339
|
}, field));
|
|
7237
7340
|
}
|
|
7238
|
-
}), props.additionalInputs, props.showRefCode && /* @__PURE__ */
|
|
7341
|
+
}), props.additionalInputs, props.showRefCode && /* @__PURE__ */ import_react41.default.createElement(import_react_hook_form2.Controller, {
|
|
7239
7342
|
control: control,
|
|
7240
7343
|
name: "refCode",
|
|
7241
7344
|
render: function(param) {
|
|
7242
7345
|
var field = param.field;
|
|
7243
7346
|
var _formState_errors_refCode;
|
|
7244
|
-
return /* @__PURE__ */
|
|
7347
|
+
return /* @__PURE__ */ import_react41.default.createElement(Input, _object_spread({
|
|
7245
7348
|
width: "full",
|
|
7246
7349
|
label: texts === null || texts === void 0 ? void 0 : texts.refCode,
|
|
7247
7350
|
placeholder: (texts === null || texts === void 0 ? void 0 : texts.refCodePlaceholder) || "Enter the referral code",
|
|
7248
7351
|
helperText: (_formState_errors_refCode = formState.errors.refCode) === null || _formState_errors_refCode === void 0 ? void 0 : _formState_errors_refCode.message
|
|
7249
7352
|
}, field));
|
|
7250
7353
|
}
|
|
7251
|
-
}), props.showUserSource && /* @__PURE__ */
|
|
7354
|
+
}), props.showUserSource && /* @__PURE__ */ import_react41.default.createElement(import_react_hook_form2.Controller, {
|
|
7252
7355
|
control: control,
|
|
7253
7356
|
name: "reference",
|
|
7254
7357
|
render: function(param) {
|
|
7255
7358
|
var field = param.field;
|
|
7256
|
-
return /* @__PURE__ */
|
|
7359
|
+
return /* @__PURE__ */ import_react41.default.createElement(Select, {
|
|
7257
7360
|
label: (texts === null || texts === void 0 ? void 0 : texts.userReferenceLabel) || "How did you learn about us?",
|
|
7258
7361
|
placeholder: texts === null || texts === void 0 ? void 0 : texts.userReferencePlaceholder,
|
|
7259
7362
|
isCreatable: false,
|
|
@@ -7266,74 +7369,58 @@ var RegisterForm = function(_param) {
|
|
|
7266
7369
|
}
|
|
7267
7370
|
});
|
|
7268
7371
|
}
|
|
7269
|
-
}), /* @__PURE__ */
|
|
7372
|
+
}), /* @__PURE__ */ import_react41.default.createElement("div", {
|
|
7270
7373
|
className: "hawa-flex hawa-flex-col hawa-gap-3"
|
|
7271
|
-
}, props.showTermsOption && /* @__PURE__ */
|
|
7374
|
+
}, props.showTermsOption && /* @__PURE__ */ import_react41.default.createElement(import_react_hook_form2.Controller, {
|
|
7272
7375
|
control: control,
|
|
7273
7376
|
name: "terms_accepted",
|
|
7274
7377
|
render: function(param) {
|
|
7275
7378
|
var field = param.field;
|
|
7276
7379
|
var _formState_errors_terms_accepted_message, _formState_errors_terms_accepted;
|
|
7277
|
-
return /* @__PURE__ */
|
|
7380
|
+
return /* @__PURE__ */ import_react41.default.createElement(Checkbox, {
|
|
7278
7381
|
id: "terms_accepted",
|
|
7279
7382
|
helperText: (_formState_errors_terms_accepted = formState.errors.terms_accepted) === null || _formState_errors_terms_accepted === void 0 ? void 0 : (_formState_errors_terms_accepted_message = _formState_errors_terms_accepted.message) === null || _formState_errors_terms_accepted_message === void 0 ? void 0 : _formState_errors_terms_accepted_message.toString(),
|
|
7280
7383
|
onCheckedChange: function(e) {
|
|
7281
7384
|
return field.onChange(e);
|
|
7282
7385
|
},
|
|
7283
|
-
label: /* @__PURE__ */
|
|
7386
|
+
label: /* @__PURE__ */ import_react41.default.createElement("div", {
|
|
7284
7387
|
className: "hawa-flex hawa-flex-row hawa-gap-0.5"
|
|
7285
|
-
}, /* @__PURE__ */
|
|
7388
|
+
}, /* @__PURE__ */ import_react41.default.createElement("span", null, texts === null || texts === void 0 ? void 0 : texts.iAcceptText), " ", /* @__PURE__ */ import_react41.default.createElement(StopPropagationWrapper, null, /* @__PURE__ */ import_react41.default.createElement("a", {
|
|
7286
7389
|
onClick: props.onRouteToTOS,
|
|
7287
7390
|
className: "clickable-link"
|
|
7288
7391
|
}, texts === null || texts === void 0 ? void 0 : texts.termsText)))
|
|
7289
7392
|
});
|
|
7290
7393
|
}
|
|
7291
|
-
}), props.showNewsletterOption && /* @__PURE__ */
|
|
7394
|
+
}), props.showNewsletterOption && /* @__PURE__ */ import_react41.default.createElement(import_react_hook_form2.Controller, {
|
|
7292
7395
|
control: control,
|
|
7293
7396
|
name: "newsletter_accepted",
|
|
7294
7397
|
render: function(param) {
|
|
7295
7398
|
var field = param.field;
|
|
7296
|
-
return /* @__PURE__ */
|
|
7399
|
+
return /* @__PURE__ */ import_react41.default.createElement(Checkbox, {
|
|
7297
7400
|
id: "newsletter_accepted",
|
|
7298
7401
|
label: texts === null || texts === void 0 ? void 0 : texts.subscribeToNewsletter,
|
|
7299
7402
|
onCheckedChange: field.onChange
|
|
7300
7403
|
});
|
|
7301
7404
|
}
|
|
7302
|
-
})), /* @__PURE__ */
|
|
7405
|
+
})), /* @__PURE__ */ import_react41.default.createElement(Button, {
|
|
7303
7406
|
isLoading: props.isLoading,
|
|
7304
7407
|
className: "hawa-w-full hawa-mt-4"
|
|
7305
|
-
}, texts === null || texts === void 0 ? void 0 : texts.registerText), props.additionalButtons)), /* @__PURE__ */
|
|
7408
|
+
}, texts === null || texts === void 0 ? void 0 : texts.registerText), props.additionalButtons)), /* @__PURE__ */ import_react41.default.createElement("div", {
|
|
7306
7409
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-1 hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-white"
|
|
7307
|
-
}, /* @__PURE__ */
|
|
7410
|
+
}, /* @__PURE__ */ import_react41.default.createElement("span", null, texts === null || texts === void 0 ? void 0 : texts.existingUserText), /* @__PURE__ */ import_react41.default.createElement("span", {
|
|
7308
7411
|
onClick: props.onRouteToLogin,
|
|
7309
7412
|
className: "clickable-link"
|
|
7310
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
|
7413
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react41.default.createElement(CardFooter, {
|
|
7311
7414
|
className: cn(props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2")
|
|
7312
|
-
},
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
-
})
|
|
7321
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7322
|
-
variant: "outline",
|
|
7323
|
-
onClick: props.onGithubRegister
|
|
7324
|
-
}, props.isGithubLoading ? /* @__PURE__ */ import_react39.default.createElement(Loading, {
|
|
7325
|
-
size: "button"
|
|
7326
|
-
}) : /* @__PURE__ */ import_react39.default.createElement(Logos.github, {
|
|
7327
|
-
className: "hawa-h-4 hawa-w-4"
|
|
7328
|
-
}), " ", !props.logosOnly && (texts === null || texts === void 0 ? void 0 : texts.registerViaGithubLabel)), props.viaTwitter && /* @__PURE__ */ import_react39.default.createElement(Button, {
|
|
7329
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7330
|
-
variant: "outline",
|
|
7331
|
-
onClick: props.onTwitterRegister
|
|
7332
|
-
}, props.isTwitterLoading ? /* @__PURE__ */ import_react39.default.createElement(Loading, {
|
|
7333
|
-
size: "button"
|
|
7334
|
-
}) : /* @__PURE__ */ import_react39.default.createElement(Logos.twitter, {
|
|
7335
|
-
className: "hawa-h-4 hawa-w-4"
|
|
7336
|
-
}), " ", !props.logosOnly && (texts === null || texts === void 0 ? void 0 : texts.registerViaTwitterLabel))) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */ import_react39.default.createElement(InterfaceSettings, {
|
|
7415
|
+
}, /* @__PURE__ */ import_react41.default.createElement(AuthButtons, {
|
|
7416
|
+
texts: thirdPartyAuthTexts,
|
|
7417
|
+
viaGoogle: props.viaGoogle,
|
|
7418
|
+
viaGithub: props.viaGithub,
|
|
7419
|
+
viaTwitter: props.viaTwitter,
|
|
7420
|
+
handleGoogle: props.onGoogleRegister,
|
|
7421
|
+
handleGithub: props.onGithubRegister,
|
|
7422
|
+
handleTwitter: props.onTwitterRegister
|
|
7423
|
+
})) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */ import_react41.default.createElement(InterfaceSettings, {
|
|
7337
7424
|
currentColorMode: props.currentColorMode,
|
|
7338
7425
|
currentLanguage: props.currentLanguage,
|
|
7339
7426
|
handleColorMode: props.handleColorMode,
|
|
@@ -7341,65 +7428,39 @@ var RegisterForm = function(_param) {
|
|
|
7341
7428
|
}));
|
|
7342
7429
|
};
|
|
7343
7430
|
// components/blocks/auth/AppLanding.tsx
|
|
7344
|
-
var
|
|
7431
|
+
var import_react42 = __toESM(require("react"));
|
|
7345
7432
|
var AppLanding = function(props) {
|
|
7346
|
-
var _props_texts, _props_texts1
|
|
7347
|
-
|
|
7348
|
-
return /* @__PURE__ */ import_react40.default.createElement("div", {
|
|
7433
|
+
var _props_texts, _props_texts1;
|
|
7434
|
+
return /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7349
7435
|
dir: props.direction
|
|
7350
|
-
}, /* @__PURE__ */
|
|
7436
|
+
}, /* @__PURE__ */ import_react42.default.createElement(Card, null, /* @__PURE__ */ import_react42.default.createElement(CardContent, {
|
|
7351
7437
|
headless: true,
|
|
7352
7438
|
className: "hawa-flex hawa-flex-col hawa-gap-6"
|
|
7353
|
-
},
|
|
7354
|
-
|
|
7355
|
-
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
},
|
|
7370
|
-
|
|
7371
|
-
}), (_props_texts_continueWithTwitter = (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.continueWithTwitter) !== null && _props_texts_continueWithTwitter !== void 0 ? _props_texts_continueWithTwitter : "Continue With Twitter"), props.viaApple && /* @__PURE__ */ import_react40.default.createElement(Button, {
|
|
7372
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7373
|
-
variant: "outline",
|
|
7374
|
-
onClick: props.handleApple
|
|
7375
|
-
}, /* @__PURE__ */ import_react40.default.createElement(Logos.apple, {
|
|
7376
|
-
className: "hawa-h-4 hawa-w-4"
|
|
7377
|
-
}), (_props_texts_continueWithApple = (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.continueWithApple) !== null && _props_texts_continueWithApple !== void 0 ? _props_texts_continueWithApple : "Continue With Apple"), props.viaMicrosoft && /* @__PURE__ */ import_react40.default.createElement(Button, {
|
|
7378
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7379
|
-
variant: "outline",
|
|
7380
|
-
onClick: props.handleMicrosoft
|
|
7381
|
-
}, /* @__PURE__ */ import_react40.default.createElement(Logos.microsoft, {
|
|
7382
|
-
className: "hawa-h-4 hawa-w-4"
|
|
7383
|
-
}), (_props_texts_continueWithMicrosoft = (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.continueWithMicrosoft) !== null && _props_texts_continueWithMicrosoft !== void 0 ? _props_texts_continueWithMicrosoft : "Continue With Microsoft"), props.viaEmail && /* @__PURE__ */ import_react40.default.createElement(Button, {
|
|
7384
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7385
|
-
variant: "outline",
|
|
7386
|
-
onClick: props.handleEmail
|
|
7387
|
-
}, /* @__PURE__ */ import_react40.default.createElement(Logos.mail, {
|
|
7388
|
-
className: "hawa-h-4 hawa-w-4"
|
|
7389
|
-
}), (_props_texts_continueWithEmail = (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.continueWithEmail) !== null && _props_texts_continueWithEmail !== void 0 ? _props_texts_continueWithEmail : "Continue With Email"), props.viaPhone && /* @__PURE__ */ import_react40.default.createElement(Button, {
|
|
7390
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7391
|
-
variant: "outline",
|
|
7392
|
-
onClick: props.handlePhone
|
|
7393
|
-
}, /* @__PURE__ */ import_react40.default.createElement(Logos.phone, {
|
|
7394
|
-
className: "hawa-h-4 hawa-w-4"
|
|
7395
|
-
}), (_props_texts_continueWithPhone = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.continueWithPhone) !== null && _props_texts_continueWithPhone !== void 0 ? _props_texts_continueWithPhone : "Continue With Phone"), !props.withoutSignUp && /* @__PURE__ */ import_react40.default.createElement("div", {
|
|
7439
|
+
}, /* @__PURE__ */ import_react42.default.createElement(AuthButtons, {
|
|
7440
|
+
texts: _object_spread({}, props.texts),
|
|
7441
|
+
viaApple: props.viaApple,
|
|
7442
|
+
viaGoogle: props.viaGoogle,
|
|
7443
|
+
viaEmail: props.viaEmail,
|
|
7444
|
+
viaGithub: props.viaGithub,
|
|
7445
|
+
viaMicrosoft: props.viaMicrosoft,
|
|
7446
|
+
viaPhone: props.viaPhone,
|
|
7447
|
+
viaTwitter: props.viaTwitter,
|
|
7448
|
+
handleApple: props.handleApple,
|
|
7449
|
+
handleGoogle: props.handleGoogle,
|
|
7450
|
+
handleTwitter: props.handleTwitter,
|
|
7451
|
+
handleMicrosoft: props.handleMicrosoft,
|
|
7452
|
+
handleGithub: props.handleGithub,
|
|
7453
|
+
handleEmail: props.handleEmail,
|
|
7454
|
+
handlePhone: props.handlePhone
|
|
7455
|
+
}), !props.withoutSignUp && //TODO: change to "register"
|
|
7456
|
+
/* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7396
7457
|
className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-gray-300"
|
|
7397
|
-
}, (
|
|
7458
|
+
}, (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.newUserText, " ", /* @__PURE__ */ import_react42.default.createElement("span", {
|
|
7398
7459
|
onClick: props.handleRouteToRegister,
|
|
7399
7460
|
className: "clickable-link"
|
|
7400
|
-
}, (
|
|
7461
|
+
}, (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.createAccount)))), /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7401
7462
|
className: "hawa-mt-4 hawa-flex hawa-flex-row hawa-justify-between"
|
|
7402
|
-
}, /* @__PURE__ */
|
|
7463
|
+
}, /* @__PURE__ */ import_react42.default.createElement(Radio, {
|
|
7403
7464
|
onChangeTab: props.handleLanguage,
|
|
7404
7465
|
design: "tabs",
|
|
7405
7466
|
options: [
|
|
@@ -7412,20 +7473,20 @@ var AppLanding = function(props) {
|
|
|
7412
7473
|
label: "English"
|
|
7413
7474
|
}
|
|
7414
7475
|
]
|
|
7415
|
-
}), /* @__PURE__ */
|
|
7476
|
+
}), /* @__PURE__ */ import_react42.default.createElement(Radio, {
|
|
7416
7477
|
onChangeTab: props.handleColorMode,
|
|
7417
7478
|
design: "tabs",
|
|
7418
7479
|
options: [
|
|
7419
7480
|
{
|
|
7420
7481
|
value: "light",
|
|
7421
|
-
label: /* @__PURE__ */
|
|
7482
|
+
label: /* @__PURE__ */ import_react42.default.createElement("svg", {
|
|
7422
7483
|
width: "15",
|
|
7423
7484
|
height: "15",
|
|
7424
7485
|
viewBox: "0 0 15 15",
|
|
7425
7486
|
fill: "none",
|
|
7426
7487
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7427
7488
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
|
7428
|
-
}, /* @__PURE__ */
|
|
7489
|
+
}, /* @__PURE__ */ import_react42.default.createElement("path", {
|
|
7429
7490
|
d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",
|
|
7430
7491
|
fill: "currentColor",
|
|
7431
7492
|
fillRule: "evenodd",
|
|
@@ -7434,7 +7495,7 @@ var AppLanding = function(props) {
|
|
|
7434
7495
|
},
|
|
7435
7496
|
{
|
|
7436
7497
|
value: "dark",
|
|
7437
|
-
label: /* @__PURE__ */
|
|
7498
|
+
label: /* @__PURE__ */ import_react42.default.createElement("svg", {
|
|
7438
7499
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7439
7500
|
width: "24",
|
|
7440
7501
|
height: "24",
|
|
@@ -7445,7 +7506,7 @@ var AppLanding = function(props) {
|
|
|
7445
7506
|
strokeLinecap: "round",
|
|
7446
7507
|
strokeLinejoin: "round",
|
|
7447
7508
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
|
7448
|
-
}, /* @__PURE__ */
|
|
7509
|
+
}, /* @__PURE__ */ import_react42.default.createElement("path", {
|
|
7449
7510
|
d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"
|
|
7450
7511
|
}))
|
|
7451
7512
|
}
|
|
@@ -7453,16 +7514,16 @@ var AppLanding = function(props) {
|
|
|
7453
7514
|
})));
|
|
7454
7515
|
};
|
|
7455
7516
|
// components/blocks/auth/CheckEmail.tsx
|
|
7456
|
-
var
|
|
7517
|
+
var import_react43 = __toESM(require("react"));
|
|
7457
7518
|
var CheckEmail = function(param) {
|
|
7458
7519
|
var texts = param.texts, handleResend = param.handleResend;
|
|
7459
|
-
return /* @__PURE__ */
|
|
7520
|
+
return /* @__PURE__ */ import_react43.default.createElement(Card, null, /* @__PURE__ */ import_react43.default.createElement(CardContent, {
|
|
7460
7521
|
headless: true
|
|
7461
|
-
}, /* @__PURE__ */
|
|
7522
|
+
}, /* @__PURE__ */ import_react43.default.createElement("div", {
|
|
7462
7523
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center"
|
|
7463
|
-
}, /* @__PURE__ */
|
|
7524
|
+
}, /* @__PURE__ */ import_react43.default.createElement("div", {
|
|
7464
7525
|
className: "hawa-flex hawa-h-16 hawa-w-16 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground"
|
|
7465
|
-
}, /* @__PURE__ */
|
|
7526
|
+
}, /* @__PURE__ */ import_react43.default.createElement("svg", {
|
|
7466
7527
|
stroke: "currentColor",
|
|
7467
7528
|
fill: "none",
|
|
7468
7529
|
"stroke-width": "2",
|
|
@@ -7472,23 +7533,23 @@ var CheckEmail = function(param) {
|
|
|
7472
7533
|
height: "0.5em",
|
|
7473
7534
|
width: "0.5em",
|
|
7474
7535
|
xmlns: "http://www.w3.org/2000/svg"
|
|
7475
|
-
}, /* @__PURE__ */
|
|
7536
|
+
}, /* @__PURE__ */ import_react43.default.createElement("path", {
|
|
7476
7537
|
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"
|
|
7477
|
-
}), /* @__PURE__ */
|
|
7538
|
+
}), /* @__PURE__ */ import_react43.default.createElement("polyline", {
|
|
7478
7539
|
points: "22,6 12,13 2,6"
|
|
7479
|
-
}))), /* @__PURE__ */
|
|
7540
|
+
}))), /* @__PURE__ */ import_react43.default.createElement("div", {
|
|
7480
7541
|
className: "hawa-m-2 hawa-text-xl hawa-font-bold"
|
|
7481
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.checkEmail) || "Check your Email"), /* @__PURE__ */
|
|
7542
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.checkEmail) || "Check your Email"), /* @__PURE__ */ import_react43.default.createElement("div", {
|
|
7482
7543
|
className: "hawa-text-sm"
|
|
7483
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.pleaseVerify) || "Thank you for signing up! To complete your registration, we've sent a verification email to the address you provided. Please check your inbox and follow the instructions in the email to activate your account."))), /* @__PURE__ */
|
|
7544
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.pleaseVerify) || "Thank you for signing up! To complete your registration, we've sent a verification email to the address you provided. Please check your inbox and follow the instructions in the email to activate your account."))), /* @__PURE__ */ import_react43.default.createElement(CardFooter, {
|
|
7484
7545
|
className: "hawa-flex hawa-flex-col hawa-justify-center "
|
|
7485
|
-
}, /* @__PURE__ */
|
|
7546
|
+
}, /* @__PURE__ */ import_react43.default.createElement("span", {
|
|
7486
7547
|
className: "clickable-link hawa-text-sm",
|
|
7487
7548
|
onClick: handleResend
|
|
7488
7549
|
}, (texts === null || texts === void 0 ? void 0 : texts.resendEmail) || "Resend Email")));
|
|
7489
7550
|
};
|
|
7490
7551
|
// components/blocks/auth/NewPassword.tsx
|
|
7491
|
-
var
|
|
7552
|
+
var import_react44 = __toESM(require("react"));
|
|
7492
7553
|
var import_react_hook_form3 = require("react-hook-form");
|
|
7493
7554
|
var import_zod3 = require("@hookform/resolvers/zod");
|
|
7494
7555
|
var z3 = __toESM(require("zod"));
|
|
@@ -7522,18 +7583,18 @@ var NewPasswordForm = function(_param) {
|
|
|
7522
7583
|
var _ref = (0, import_react_hook_form3.useForm)({
|
|
7523
7584
|
resolver: (0, import_zod3.zodResolver)(formSchema)
|
|
7524
7585
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState;
|
|
7525
|
-
var _ref1 = _sliced_to_array((0,
|
|
7586
|
+
var _ref1 = _sliced_to_array((0, import_react44.useState)(false), 2), matchError = _ref1[0], setMatchError = _ref1[1];
|
|
7526
7587
|
var _texts_dontHaveAccount, _texts_registerText;
|
|
7527
|
-
return /* @__PURE__ */
|
|
7588
|
+
return /* @__PURE__ */ import_react44.default.createElement(Card, {
|
|
7528
7589
|
dir: props.direction
|
|
7529
|
-
}, matchError && /* @__PURE__ */
|
|
7590
|
+
}, matchError && /* @__PURE__ */ import_react44.default.createElement(Alert, {
|
|
7530
7591
|
text: texts === null || texts === void 0 ? void 0 : texts.passwordMatchError,
|
|
7531
7592
|
severity: "error"
|
|
7532
|
-
}), props.passwordChanged ? /* @__PURE__ */
|
|
7593
|
+
}), props.passwordChanged ? /* @__PURE__ */ import_react44.default.createElement(CardContent, {
|
|
7533
7594
|
headless: true
|
|
7534
|
-
}, /* @__PURE__ */
|
|
7595
|
+
}, /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
7535
7596
|
className: "hawa-text-center"
|
|
7536
|
-
}, texts === null || texts === void 0 ? void 0 : texts.passwordChanged)) : /* @__PURE__ */
|
|
7597
|
+
}, texts === null || texts === void 0 ? void 0 : texts.passwordChanged)) : /* @__PURE__ */ import_react44.default.createElement("form", {
|
|
7537
7598
|
onSubmit: handleSubmit(function(e) {
|
|
7538
7599
|
if (props.handleNewPassword) {
|
|
7539
7600
|
return props.handleNewPassword(e);
|
|
@@ -7541,16 +7602,16 @@ var NewPasswordForm = function(_param) {
|
|
|
7541
7602
|
console.log("Form is submitted but handleSubmission prop is missing");
|
|
7542
7603
|
}
|
|
7543
7604
|
})
|
|
7544
|
-
}, !props.headless && /* @__PURE__ */
|
|
7605
|
+
}, !props.headless && /* @__PURE__ */ import_react44.default.createElement(CardHeader, null, /* @__PURE__ */ import_react44.default.createElement(CardTitle, null, "Create Password"), /* @__PURE__ */ import_react44.default.createElement(CardDescription, null, "Set a new password for your account")), /* @__PURE__ */ import_react44.default.createElement(CardContent, {
|
|
7545
7606
|
headless: props.headless,
|
|
7546
7607
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7547
|
-
}, /* @__PURE__ */
|
|
7608
|
+
}, /* @__PURE__ */ import_react44.default.createElement(import_react_hook_form3.Controller, {
|
|
7548
7609
|
control: control,
|
|
7549
7610
|
name: "password",
|
|
7550
7611
|
render: function(param) {
|
|
7551
7612
|
var field = param.field;
|
|
7552
7613
|
var _formState_errors_password;
|
|
7553
|
-
return /* @__PURE__ */
|
|
7614
|
+
return /* @__PURE__ */ import_react44.default.createElement(Input, _object_spread({
|
|
7554
7615
|
width: "full",
|
|
7555
7616
|
type: "password",
|
|
7556
7617
|
autoComplete: "new-password",
|
|
@@ -7559,13 +7620,13 @@ var NewPasswordForm = function(_param) {
|
|
|
7559
7620
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
7560
7621
|
}, field));
|
|
7561
7622
|
}
|
|
7562
|
-
}), /* @__PURE__ */
|
|
7623
|
+
}), /* @__PURE__ */ import_react44.default.createElement(import_react_hook_form3.Controller, {
|
|
7563
7624
|
control: control,
|
|
7564
7625
|
name: "confirm_password",
|
|
7565
7626
|
render: function(param) {
|
|
7566
7627
|
var field = param.field;
|
|
7567
7628
|
var _formState_errors_confirm_password;
|
|
7568
|
-
return /* @__PURE__ */
|
|
7629
|
+
return /* @__PURE__ */ import_react44.default.createElement(Input, _object_spread({
|
|
7569
7630
|
width: "full",
|
|
7570
7631
|
type: "password",
|
|
7571
7632
|
autoComplete: "new-password",
|
|
@@ -7574,20 +7635,20 @@ var NewPasswordForm = function(_param) {
|
|
|
7574
7635
|
helperText: (_formState_errors_confirm_password = formState.errors.confirm_password) === null || _formState_errors_confirm_password === void 0 ? void 0 : _formState_errors_confirm_password.message
|
|
7575
7636
|
}, field));
|
|
7576
7637
|
}
|
|
7577
|
-
})), /* @__PURE__ */
|
|
7638
|
+
})), /* @__PURE__ */ import_react44.default.createElement(CardFooter, {
|
|
7578
7639
|
className: "hawa-flex hawa-flex-col"
|
|
7579
|
-
}, /* @__PURE__ */
|
|
7640
|
+
}, /* @__PURE__ */ import_react44.default.createElement(Button, {
|
|
7580
7641
|
className: "hawa-w-full",
|
|
7581
7642
|
type: "submit"
|
|
7582
|
-
}, texts === null || texts === void 0 ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */
|
|
7643
|
+
}, texts === null || texts === void 0 ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
7583
7644
|
className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300"
|
|
7584
|
-
}, (_texts_dontHaveAccount = texts === null || texts === void 0 ? void 0 : texts.dontHaveAccount) !== null && _texts_dontHaveAccount !== void 0 ? _texts_dontHaveAccount : "Don't have an account? ", /* @__PURE__ */
|
|
7645
|
+
}, (_texts_dontHaveAccount = texts === null || texts === void 0 ? void 0 : texts.dontHaveAccount) !== null && _texts_dontHaveAccount !== void 0 ? _texts_dontHaveAccount : "Don't have an account? ", /* @__PURE__ */ import_react44.default.createElement("span", {
|
|
7585
7646
|
className: "clickable-link",
|
|
7586
7647
|
onClick: props.handleRouteToRegister
|
|
7587
7648
|
}, (_texts_registerText = texts === null || texts === void 0 ? void 0 : texts.registerText) !== null && _texts_registerText !== void 0 ? _texts_registerText : "Register")))));
|
|
7588
7649
|
};
|
|
7589
7650
|
// components/blocks/auth/ResetPassword.tsx
|
|
7590
|
-
var
|
|
7651
|
+
var import_react45 = __toESM(require("react"));
|
|
7591
7652
|
var import_react_hook_form4 = require("react-hook-form");
|
|
7592
7653
|
var import_zod4 = require("@hookform/resolvers/zod");
|
|
7593
7654
|
var z4 = __toESM(require("zod"));
|
|
@@ -7606,9 +7667,9 @@ var ResetPasswordForm = function(props) {
|
|
|
7606
7667
|
resolver: (0, import_zod4.zodResolver)(formSchema)
|
|
7607
7668
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState;
|
|
7608
7669
|
var _props_texts_dontHaveAccount, _props_texts_registerText;
|
|
7609
|
-
return /* @__PURE__ */
|
|
7670
|
+
return /* @__PURE__ */ import_react45.default.createElement(Card, {
|
|
7610
7671
|
dir: props.direction
|
|
7611
|
-
}, !props.sent ? /* @__PURE__ */
|
|
7672
|
+
}, !props.sent ? /* @__PURE__ */ import_react45.default.createElement(import_react45.default.Fragment, null, !props.headless && /* @__PURE__ */ import_react45.default.createElement(CardHeader, null, /* @__PURE__ */ import_react45.default.createElement(CardTitle, null, " ", ((_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.headTitle) || "Reset Password"), /* @__PURE__ */ import_react45.default.createElement(CardDescription, null, ((_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.headDescription) || "Enter your email to reset your account password")), /* @__PURE__ */ import_react45.default.createElement("form", {
|
|
7612
7673
|
onSubmit: handleSubmit(function(e) {
|
|
7613
7674
|
if (props.handleResetPassword) {
|
|
7614
7675
|
return props.handleResetPassword(e);
|
|
@@ -7616,39 +7677,39 @@ var ResetPasswordForm = function(props) {
|
|
|
7616
7677
|
console.log("handleResetPassword prop is missing");
|
|
7617
7678
|
}
|
|
7618
7679
|
})
|
|
7619
|
-
}, /* @__PURE__ */
|
|
7680
|
+
}, /* @__PURE__ */ import_react45.default.createElement(CardContent, {
|
|
7620
7681
|
headless: props.headless
|
|
7621
|
-
}, /* @__PURE__ */
|
|
7682
|
+
}, /* @__PURE__ */ import_react45.default.createElement(import_react_hook_form4.Controller, {
|
|
7622
7683
|
control: control,
|
|
7623
7684
|
name: "email",
|
|
7624
7685
|
render: function(param) {
|
|
7625
7686
|
var field = param.field;
|
|
7626
7687
|
var _props_texts, _formState_errors_email, _props_texts1;
|
|
7627
|
-
return /* @__PURE__ */
|
|
7688
|
+
return /* @__PURE__ */ import_react45.default.createElement(Input, _object_spread({
|
|
7628
7689
|
width: "full",
|
|
7629
7690
|
label: (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.emailLabel,
|
|
7630
7691
|
helperText: (_formState_errors_email = formState.errors.email) === null || _formState_errors_email === void 0 ? void 0 : _formState_errors_email.message,
|
|
7631
7692
|
placeholder: (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.emailPlaceholder
|
|
7632
7693
|
}, field));
|
|
7633
7694
|
}
|
|
7634
|
-
})), /* @__PURE__ */
|
|
7695
|
+
})), /* @__PURE__ */ import_react45.default.createElement(CardFooter, {
|
|
7635
7696
|
className: "hawa-flex hawa-flex-col"
|
|
7636
|
-
}, /* @__PURE__ */
|
|
7697
|
+
}, /* @__PURE__ */ import_react45.default.createElement(Button, {
|
|
7637
7698
|
type: "submit",
|
|
7638
7699
|
className: "hawa-w-full"
|
|
7639
|
-
}, (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resetPassword), props.allowRegister && /* @__PURE__ */
|
|
7700
|
+
}, (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resetPassword), props.allowRegister && /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
7640
7701
|
className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300"
|
|
7641
|
-
}, (_props_texts_dontHaveAccount = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.dontHaveAccount) !== null && _props_texts_dontHaveAccount !== void 0 ? _props_texts_dontHaveAccount : "Don't have an account? ", /* @__PURE__ */
|
|
7702
|
+
}, (_props_texts_dontHaveAccount = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.dontHaveAccount) !== null && _props_texts_dontHaveAccount !== void 0 ? _props_texts_dontHaveAccount : "Don't have an account? ", /* @__PURE__ */ import_react45.default.createElement("span", {
|
|
7642
7703
|
className: "clickable-link",
|
|
7643
7704
|
onClick: props.handleRouteToRegister
|
|
7644
|
-
}, (_props_texts_registerText = (_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.registerText) !== null && _props_texts_registerText !== void 0 ? _props_texts_registerText : "Register"))))) : /* @__PURE__ */
|
|
7705
|
+
}, (_props_texts_registerText = (_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.registerText) !== null && _props_texts_registerText !== void 0 ? _props_texts_registerText : "Register"))))) : /* @__PURE__ */ import_react45.default.createElement(CardContent, {
|
|
7645
7706
|
headless: true
|
|
7646
|
-
}, /* @__PURE__ */
|
|
7707
|
+
}, /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
7647
7708
|
className: "hawa-text-center"
|
|
7648
7709
|
}, (_props_texts8 = props.texts) === null || _props_texts8 === void 0 ? void 0 : _props_texts8.emailSentText)));
|
|
7649
7710
|
};
|
|
7650
7711
|
// components/blocks/auth/CodeConfirmation.tsx
|
|
7651
|
-
var
|
|
7712
|
+
var import_react46 = __toESM(require("react"));
|
|
7652
7713
|
var import_react_hook_form5 = require("react-hook-form");
|
|
7653
7714
|
var import_zod5 = require("@hookform/resolvers/zod");
|
|
7654
7715
|
var z5 = __toESM(require("zod"));
|
|
@@ -7665,19 +7726,19 @@ var CodeConfirmation = function(props) {
|
|
|
7665
7726
|
resolver: (0, import_zod5.zodResolver)(formSchema)
|
|
7666
7727
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState, setValue = _ref.setValue;
|
|
7667
7728
|
var _props_texts_checkYourPhone, _props_texts_weSentCode, _props_texts_didntGetCode, _props_texts_resendCode, _props_texts_cancel, _props_texts_confirm;
|
|
7668
|
-
return /* @__PURE__ */
|
|
7729
|
+
return /* @__PURE__ */ import_react46.default.createElement(Card, null, /* @__PURE__ */ import_react46.default.createElement(CardContent, {
|
|
7669
7730
|
headless: true
|
|
7670
|
-
}, props.showError && /* @__PURE__ */
|
|
7731
|
+
}, props.showError && /* @__PURE__ */ import_react46.default.createElement(Alert, {
|
|
7671
7732
|
title: props.errorTitle,
|
|
7672
7733
|
text: props.errorText,
|
|
7673
7734
|
severity: "error"
|
|
7674
|
-
}), /* @__PURE__ */
|
|
7735
|
+
}), /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
7675
7736
|
className: "hawa-mb-4 dark:hawa-text-white"
|
|
7676
|
-
}, /* @__PURE__ */
|
|
7737
|
+
}, /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
7677
7738
|
className: "hawa-text-lg hawa-font-bold"
|
|
7678
|
-
}, (_props_texts_checkYourPhone = (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.checkYourPhone) !== null && _props_texts_checkYourPhone !== void 0 ? _props_texts_checkYourPhone : "Please check your phone"), /* @__PURE__ */
|
|
7739
|
+
}, (_props_texts_checkYourPhone = (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.checkYourPhone) !== null && _props_texts_checkYourPhone !== void 0 ? _props_texts_checkYourPhone : "Please check your phone"), /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
7679
7740
|
className: "hawa-text-muted-foreground"
|
|
7680
|
-
}, /* @__PURE__ */
|
|
7741
|
+
}, /* @__PURE__ */ import_react46.default.createElement("span", null, (_props_texts_weSentCode = (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.weSentCode) !== null && _props_texts_weSentCode !== void 0 ? _props_texts_weSentCode : "We've sent a code to "), /* @__PURE__ */ import_react46.default.createElement("span", null, props.phoneNumber)), " "), /* @__PURE__ */ import_react46.default.createElement("form", {
|
|
7681
7742
|
onSubmit: handleSubmit(function(e) {
|
|
7682
7743
|
if (props.handleConfirm) {
|
|
7683
7744
|
return props.handleConfirm(e);
|
|
@@ -7685,13 +7746,13 @@ var CodeConfirmation = function(props) {
|
|
|
7685
7746
|
console.log("Form is submitted but handleConfirm prop is missing");
|
|
7686
7747
|
}
|
|
7687
7748
|
})
|
|
7688
|
-
}, /* @__PURE__ */
|
|
7749
|
+
}, /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form5.Controller, {
|
|
7689
7750
|
control: control,
|
|
7690
7751
|
name: "otp_code",
|
|
7691
7752
|
render: function(param) {
|
|
7692
7753
|
var field = param.field;
|
|
7693
7754
|
var _formState_errors_otp_code;
|
|
7694
|
-
return /* @__PURE__ */
|
|
7755
|
+
return /* @__PURE__ */ import_react46.default.createElement(PinInput, {
|
|
7695
7756
|
width: "full",
|
|
7696
7757
|
digits: 6,
|
|
7697
7758
|
getPins: function(e) {
|
|
@@ -7700,18 +7761,18 @@ var CodeConfirmation = function(props) {
|
|
|
7700
7761
|
helperText: (_formState_errors_otp_code = formState.errors.otp_code) === null || _formState_errors_otp_code === void 0 ? void 0 : _formState_errors_otp_code.message
|
|
7701
7762
|
});
|
|
7702
7763
|
}
|
|
7703
|
-
}), /* @__PURE__ */
|
|
7764
|
+
}), /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
7704
7765
|
className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground"
|
|
7705
|
-
}, /* @__PURE__ */
|
|
7766
|
+
}, /* @__PURE__ */ import_react46.default.createElement("span", null, (_props_texts_didntGetCode = (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.didntGetCode) !== null && _props_texts_didntGetCode !== void 0 ? _props_texts_didntGetCode : "Didn't get the code?"), " ", /* @__PURE__ */ import_react46.default.createElement("span", {
|
|
7706
7767
|
className: "clickable-link"
|
|
7707
|
-
}, (_props_texts_resendCode = (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resendCode) !== null && _props_texts_resendCode !== void 0 ? _props_texts_resendCode : "Click to resend")), /* @__PURE__ */
|
|
7768
|
+
}, (_props_texts_resendCode = (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resendCode) !== null && _props_texts_resendCode !== void 0 ? _props_texts_resendCode : "Click to resend")), /* @__PURE__ */ import_react46.default.createElement("div", {
|
|
7708
7769
|
className: "hawa-mt-4 hawa-grid hawa-grid-cols-2 hawa-gap-2"
|
|
7709
|
-
}, /* @__PURE__ */
|
|
7770
|
+
}, /* @__PURE__ */ import_react46.default.createElement(Button, {
|
|
7710
7771
|
variant: "secondary"
|
|
7711
|
-
}, (_props_texts_cancel = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.cancel) !== null && _props_texts_cancel !== void 0 ? _props_texts_cancel : "Cancel"), /* @__PURE__ */
|
|
7772
|
+
}, (_props_texts_cancel = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.cancel) !== null && _props_texts_cancel !== void 0 ? _props_texts_cancel : "Cancel"), /* @__PURE__ */ import_react46.default.createElement(Button, null, (_props_texts_confirm = (_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.confirm) !== null && _props_texts_confirm !== void 0 ? _props_texts_confirm : "Confirm")))));
|
|
7712
7773
|
};
|
|
7713
7774
|
// components/blocks/feedback/UserReferralSource.tsx
|
|
7714
|
-
var
|
|
7775
|
+
var import_react47 = __toESM(require("react"));
|
|
7715
7776
|
var import_react_hook_form6 = require("react-hook-form");
|
|
7716
7777
|
var import_zod6 = require("@hookform/resolvers/zod");
|
|
7717
7778
|
var z6 = __toESM(require("zod"));
|
|
@@ -7721,8 +7782,8 @@ var UserReferralSource = function(_param) {
|
|
|
7721
7782
|
"options"
|
|
7722
7783
|
]);
|
|
7723
7784
|
var _props_texts, _props_texts1;
|
|
7724
|
-
var _ref = _sliced_to_array((0,
|
|
7725
|
-
var popUpRef = (0,
|
|
7785
|
+
var _ref = _sliced_to_array((0, import_react47.useState)(false), 2), closed = _ref[0], setClosed = _ref[1];
|
|
7786
|
+
var popUpRef = (0, import_react47.useRef)(null);
|
|
7726
7787
|
var formSchema = z6.object({
|
|
7727
7788
|
source: z6.string({
|
|
7728
7789
|
required_error: (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.pleaseSelectOption
|
|
@@ -7736,13 +7797,13 @@ var UserReferralSource = function(_param) {
|
|
|
7736
7797
|
"bottom-right": "hawa-right-4",
|
|
7737
7798
|
"bottom-left": "hawa-left-4"
|
|
7738
7799
|
};
|
|
7739
|
-
return /* @__PURE__ */
|
|
7800
|
+
return /* @__PURE__ */ import_react47.default.createElement("div", {
|
|
7740
7801
|
className: cn("hawa-transition-all", closed ? "hawa-opacity-0" : "hawa-opacity-100"),
|
|
7741
7802
|
ref: popUpRef
|
|
7742
|
-
}, /* @__PURE__ */
|
|
7803
|
+
}, /* @__PURE__ */ import_react47.default.createElement(Card, {
|
|
7743
7804
|
className: cn("hawa-fixed hawa-bottom-4 hawa-p-0 ", boxPosition[position]),
|
|
7744
7805
|
dir: props.direction
|
|
7745
|
-
}, /* @__PURE__ */
|
|
7806
|
+
}, /* @__PURE__ */ import_react47.default.createElement("button", {
|
|
7746
7807
|
type: "button",
|
|
7747
7808
|
className: cn(props.direction === "rtl" ? "hawa-left-2" : "hawa-right-2", "hawa-absolute hawa-top-2 hawa-inline-flex hawa-h-8 hawa-w-8 hawa-rounded hawa-p-1.5 hawa-text-gray-400 hawa-transition-all hover:hawa-bg-gray-100 hover:hawa-text-gray-900 focus:hawa-ring-2 focus:hawa-ring-gray-300 dark:hawa-bg-gray-800 dark:hawa-text-gray-500 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-white"),
|
|
7748
7809
|
"data-dismiss-target": "#toast-default",
|
|
@@ -7755,37 +7816,37 @@ var UserReferralSource = function(_param) {
|
|
|
7755
7816
|
}
|
|
7756
7817
|
}, 200);
|
|
7757
7818
|
}
|
|
7758
|
-
}, /* @__PURE__ */
|
|
7819
|
+
}, /* @__PURE__ */ import_react47.default.createElement("svg", {
|
|
7759
7820
|
"aria-hidden": "true",
|
|
7760
7821
|
className: "hawa-h-5 hawa-w-5",
|
|
7761
7822
|
fill: "currentColor",
|
|
7762
7823
|
viewBox: "0 0 20 20"
|
|
7763
|
-
}, /* @__PURE__ */
|
|
7824
|
+
}, /* @__PURE__ */ import_react47.default.createElement("path", {
|
|
7764
7825
|
fillRule: "evenodd",
|
|
7765
7826
|
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
|
7766
7827
|
clipRule: "evenodd"
|
|
7767
|
-
}))), /* @__PURE__ */
|
|
7828
|
+
}))), /* @__PURE__ */ import_react47.default.createElement(CardContent, {
|
|
7768
7829
|
headless: true
|
|
7769
|
-
}, /* @__PURE__ */
|
|
7830
|
+
}, /* @__PURE__ */ import_react47.default.createElement("form", {
|
|
7770
7831
|
onSubmit: handleSubmit(function(e) {
|
|
7771
7832
|
if (props.onSubmitForm) {
|
|
7772
7833
|
props.onSubmitForm(e);
|
|
7773
7834
|
}
|
|
7774
7835
|
console.log("onSubmitForm was not provided");
|
|
7775
7836
|
})
|
|
7776
|
-
}, /* @__PURE__ */
|
|
7837
|
+
}, /* @__PURE__ */ import_react47.default.createElement("div", {
|
|
7777
7838
|
className: cn("hawa-flex hawa-flex-col hawa-gap-4 hawa-transition-all", closed ? "hawa-opacity-0" : "hawa-opacity-100")
|
|
7778
|
-
}, /* @__PURE__ */
|
|
7839
|
+
}, /* @__PURE__ */ import_react47.default.createElement("div", {
|
|
7779
7840
|
className: "hawa-mt-4 hawa-font-bold"
|
|
7780
|
-
}, props.question), /* @__PURE__ */
|
|
7841
|
+
}, props.question), /* @__PURE__ */ import_react47.default.createElement("div", {
|
|
7781
7842
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded "
|
|
7782
|
-
}, /* @__PURE__ */
|
|
7843
|
+
}, /* @__PURE__ */ import_react47.default.createElement(import_react_hook_form6.Controller, {
|
|
7783
7844
|
control: control,
|
|
7784
7845
|
name: "source",
|
|
7785
7846
|
render: function(param) {
|
|
7786
7847
|
var field = param.field;
|
|
7787
7848
|
var _formState_errors_source_message, _formState_errors_source;
|
|
7788
|
-
return /* @__PURE__ */
|
|
7849
|
+
return /* @__PURE__ */ import_react47.default.createElement(Radio, {
|
|
7789
7850
|
direction: props.direction,
|
|
7790
7851
|
orientation: "vertical",
|
|
7791
7852
|
options: options,
|
|
@@ -7796,38 +7857,38 @@ var UserReferralSource = function(_param) {
|
|
|
7796
7857
|
helperText: (_formState_errors_source = formState.errors.source) === null || _formState_errors_source === void 0 ? void 0 : (_formState_errors_source_message = _formState_errors_source.message) === null || _formState_errors_source_message === void 0 ? void 0 : _formState_errors_source_message.toString()
|
|
7797
7858
|
});
|
|
7798
7859
|
}
|
|
7799
|
-
})), /* @__PURE__ */
|
|
7860
|
+
})), /* @__PURE__ */ import_react47.default.createElement("div", null, /* @__PURE__ */ import_react47.default.createElement(import_react_hook_form6.Controller, {
|
|
7800
7861
|
control: control,
|
|
7801
7862
|
name: "feedback",
|
|
7802
7863
|
render: function(param) {
|
|
7803
7864
|
var field = param.field;
|
|
7804
7865
|
var _formState_errors_feedback_message, _formState_errors_feedback;
|
|
7805
|
-
return /* @__PURE__ */
|
|
7866
|
+
return /* @__PURE__ */ import_react47.default.createElement(Textarea, _object_spread_props(_object_spread({}, field), {
|
|
7806
7867
|
helperText: (_formState_errors_feedback = formState.errors.feedback) === null || _formState_errors_feedback === void 0 ? void 0 : (_formState_errors_feedback_message = _formState_errors_feedback.message) === null || _formState_errors_feedback_message === void 0 ? void 0 : _formState_errors_feedback_message.toString()
|
|
7807
7868
|
}));
|
|
7808
7869
|
}
|
|
7809
|
-
}))), /* @__PURE__ */
|
|
7870
|
+
}))), /* @__PURE__ */ import_react47.default.createElement(Button, {
|
|
7810
7871
|
type: "submit",
|
|
7811
7872
|
className: "hawa-mt-4 hawa-w-full"
|
|
7812
7873
|
}, ((_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.submit) || "Submit")))));
|
|
7813
7874
|
};
|
|
7814
7875
|
// components/blocks/feedback/FeedbackRating.tsx
|
|
7815
|
-
var
|
|
7876
|
+
var import_react48 = __toESM(require("react"));
|
|
7816
7877
|
var import_clsx12 = __toESM(require("clsx"));
|
|
7817
7878
|
var FeedbackRating = function(_param) {
|
|
7818
7879
|
var _param_position = _param.position, position = _param_position === void 0 ? "bottom-right" : _param_position, props = _object_without_properties(_param, [
|
|
7819
7880
|
"position"
|
|
7820
7881
|
]);
|
|
7821
|
-
var _ref = _sliced_to_array((0,
|
|
7822
|
-
var _ref1 = _sliced_to_array((0,
|
|
7823
|
-
var _ref2 = _sliced_to_array((0,
|
|
7824
|
-
var _ref3 = _sliced_to_array((0,
|
|
7825
|
-
var popUpRef = (0,
|
|
7882
|
+
var _ref = _sliced_to_array((0, import_react48.useState)(false), 2), closed = _ref[0], setClosed = _ref[1];
|
|
7883
|
+
var _ref1 = _sliced_to_array((0, import_react48.useState)(false), 2), answered = _ref1[0], setAnswered = _ref1[1];
|
|
7884
|
+
var _ref2 = _sliced_to_array((0, import_react48.useState)(null), 2), clickedOption = _ref2[0], setClickedOption = _ref2[1];
|
|
7885
|
+
var _ref3 = _sliced_to_array((0, import_react48.useState)(5), 2), closingTimer = _ref3[0], setClosingTimer = _ref3[1];
|
|
7886
|
+
var popUpRef = (0, import_react48.useRef)(null);
|
|
7826
7887
|
var boxPosition = {
|
|
7827
7888
|
"bottom-right": "hawa-right-4",
|
|
7828
7889
|
"bottom-left": "hawa-left-4"
|
|
7829
7890
|
};
|
|
7830
|
-
(0,
|
|
7891
|
+
(0, import_react48.useEffect)(function() {
|
|
7831
7892
|
var timeoutHide = setTimeout(function() {
|
|
7832
7893
|
if (closingTimer >= 0) {
|
|
7833
7894
|
setClosingTimer(closingTimer - 1);
|
|
@@ -7847,14 +7908,14 @@ var FeedbackRating = function(_param) {
|
|
|
7847
7908
|
}
|
|
7848
7909
|
}, 200);
|
|
7849
7910
|
};
|
|
7850
|
-
return /* @__PURE__ */
|
|
7911
|
+
return /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
7851
7912
|
ref: popUpRef,
|
|
7852
7913
|
className: (0, import_clsx12.default)(props.banner ? "hawa-w-full hawa-left-0 hawa-fixed hawa-bottom-0 hawa-px-0 md:hawa-px-4" : "hawa-fixed hawa-bottom-4 ", boxPosition[position])
|
|
7853
|
-
}, /* @__PURE__ */
|
|
7914
|
+
}, /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
7854
7915
|
className: (0, import_clsx12.default)("hawa-relative hawa-flex hawa-w-full hawa-flex-col hawa-gap-2 hawa-rounded hawa-border hawa-bg-background hawa-p-4 hawa-shadow-md hawa-transition-all", closed ? "hawa-opacity-0" : "hawa-opacity-100", props.banner && "hawa-rounded-none md:hawa-rounded hawa-px-4 md:hawa-px-64")
|
|
7855
|
-
}, /* @__PURE__ */
|
|
7916
|
+
}, /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
7856
7917
|
className: "hawa-absolute hawa-left-2 hawa-top-2 hawa-p-1.5 hawa-text-sm"
|
|
7857
|
-
}, props.title), /* @__PURE__ */
|
|
7918
|
+
}, props.title), /* @__PURE__ */ import_react48.default.createElement("button", {
|
|
7858
7919
|
type: "button",
|
|
7859
7920
|
className: "hawa-absolute hawa-right-2 hawa-top-2 hawa-inline-flex hawa-h-8 hawa-w-8 hawa-rounded hawa-p-1.5 hawa-text-gray-400 hover:hawa-bg-gray-100 hover:hawa-text-gray-900 focus:hawa-ring-2 focus:hawa-ring-gray-300 dark:hawa-bg-gray-800 dark:hawa-text-gray-500 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-white",
|
|
7860
7921
|
"data-dismiss-target": "#toast-default",
|
|
@@ -7862,21 +7923,21 @@ var FeedbackRating = function(_param) {
|
|
|
7862
7923
|
onClick: function() {
|
|
7863
7924
|
return slowClose();
|
|
7864
7925
|
}
|
|
7865
|
-
}, /* @__PURE__ */
|
|
7926
|
+
}, /* @__PURE__ */ import_react48.default.createElement("svg", {
|
|
7866
7927
|
"aria-hidden": "true",
|
|
7867
7928
|
className: "hawa-h-5 hawa-w-5",
|
|
7868
7929
|
fill: "currentColor",
|
|
7869
7930
|
viewBox: "0 0 20 20"
|
|
7870
|
-
}, /* @__PURE__ */
|
|
7931
|
+
}, /* @__PURE__ */ import_react48.default.createElement("path", {
|
|
7871
7932
|
fillRule: "evenodd",
|
|
7872
7933
|
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
|
7873
7934
|
clipRule: "evenodd"
|
|
7874
|
-
}))), /* @__PURE__ */
|
|
7935
|
+
}))), /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
7875
7936
|
className: "hawa-mt-8"
|
|
7876
|
-
}, props.question), /* @__PURE__ */
|
|
7937
|
+
}, props.question), /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
7877
7938
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded"
|
|
7878
7939
|
}, props.options && props.options.map(function(op, i) {
|
|
7879
|
-
return /* @__PURE__ */
|
|
7940
|
+
return /* @__PURE__ */ import_react48.default.createElement("span", {
|
|
7880
7941
|
key: i,
|
|
7881
7942
|
onClick: function() {
|
|
7882
7943
|
if (props.onOptionClicked) {
|
|
@@ -7895,15 +7956,15 @@ var FeedbackRating = function(_param) {
|
|
|
7895
7956
|
},
|
|
7896
7957
|
className: (0, import_clsx12.default)("hawa-w-full hawa-cursor-pointer hawa-rounded hawa-border hawa-p-4 hawa-text-center hawa-transition-all ", clickedOption === op ? "hawa-bg-gray-500 hawa-text-white" : "hawa-border hawa-bg-background hover:hawa-bg-gray-300 dark:hover:hawa-bg-gray-700")
|
|
7897
7958
|
}, op);
|
|
7898
|
-
})), props.texts && /* @__PURE__ */
|
|
7959
|
+
})), props.texts && /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
7899
7960
|
className: " hawa-flex hawa-flex-row hawa-justify-between hawa-text-xs"
|
|
7900
|
-
}, /* @__PURE__ */
|
|
7961
|
+
}, /* @__PURE__ */ import_react48.default.createElement("span", null, props.texts.least), /* @__PURE__ */ import_react48.default.createElement("span", null, props.texts.most)), answered && /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
7901
7962
|
className: "hawa-absolute hawa-left-0 hawa-top-0 hawa-gap-2 hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded hawa-bg-black hawa-bg-opacity-80 hawa-p-4 hawa-text-center hawa-transition-all"
|
|
7902
|
-
}, /* @__PURE__ */
|
|
7963
|
+
}, /* @__PURE__ */ import_react48.default.createElement("span", {
|
|
7903
7964
|
className: "hawa-font-bold hawa-text-white"
|
|
7904
|
-
}, "Thank you for your answer. This box will disappear in", " " + closingTimer, " seconds"), /* @__PURE__ */
|
|
7965
|
+
}, "Thank you for your answer. This box will disappear in", " " + closingTimer, " seconds"), /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
7905
7966
|
className: "hawa-flex hawa-flex-row hawa-gap-2"
|
|
7906
|
-
}, /* @__PURE__ */
|
|
7967
|
+
}, /* @__PURE__ */ import_react48.default.createElement(Button, {
|
|
7907
7968
|
variant: "secondary",
|
|
7908
7969
|
onClick: function() {
|
|
7909
7970
|
return slowClose();
|
|
@@ -7911,27 +7972,27 @@ var FeedbackRating = function(_param) {
|
|
|
7911
7972
|
}, "Close")))));
|
|
7912
7973
|
};
|
|
7913
7974
|
// components/blocks/feedback/FeedbackEmoji.tsx
|
|
7914
|
-
var
|
|
7975
|
+
var import_react49 = __toESM(require("react"));
|
|
7915
7976
|
var FeedbackEmoji = function(props) {
|
|
7916
|
-
var _ref = _sliced_to_array((0,
|
|
7917
|
-
var _ref1 = _sliced_to_array((0,
|
|
7918
|
-
var _ref2 = _sliced_to_array((0,
|
|
7919
|
-
var _ref3 = _sliced_to_array((0,
|
|
7977
|
+
var _ref = _sliced_to_array((0, import_react49.useState)(null), 2), selectedEmoji = _ref[0], setSelectedEmoji = _ref[1];
|
|
7978
|
+
var _ref1 = _sliced_to_array((0, import_react49.useState)(false), 2), loadingSubmit = _ref1[0], setLoadingSubmit = _ref1[1];
|
|
7979
|
+
var _ref2 = _sliced_to_array((0, import_react49.useState)(""), 2), feedbackText = _ref2[0], setFeedbackText = _ref2[1];
|
|
7980
|
+
var _ref3 = _sliced_to_array((0, import_react49.useState)(false), 2), helperText = _ref3[0], setHelperText = _ref3[1];
|
|
7920
7981
|
var emojis = [
|
|
7921
7982
|
{
|
|
7922
|
-
icon: /* @__PURE__ */
|
|
7983
|
+
icon: /* @__PURE__ */ import_react49.default.createElement(VeryGoodEmoji, null),
|
|
7923
7984
|
value: "very-good"
|
|
7924
7985
|
},
|
|
7925
7986
|
{
|
|
7926
|
-
icon: /* @__PURE__ */
|
|
7987
|
+
icon: /* @__PURE__ */ import_react49.default.createElement(GoodEmoji, null),
|
|
7927
7988
|
value: "good"
|
|
7928
7989
|
},
|
|
7929
7990
|
{
|
|
7930
|
-
icon: /* @__PURE__ */
|
|
7991
|
+
icon: /* @__PURE__ */ import_react49.default.createElement(BadEmoji, null),
|
|
7931
7992
|
value: "bad"
|
|
7932
7993
|
},
|
|
7933
7994
|
{
|
|
7934
|
-
icon: /* @__PURE__ */
|
|
7995
|
+
icon: /* @__PURE__ */ import_react49.default.createElement(VeryBadEmoji, null),
|
|
7935
7996
|
value: "very-bad"
|
|
7936
7997
|
}
|
|
7937
7998
|
];
|
|
@@ -8002,14 +8063,14 @@ var FeedbackEmoji = function(props) {
|
|
|
8002
8063
|
return _ref.apply(this, arguments);
|
|
8003
8064
|
};
|
|
8004
8065
|
}();
|
|
8005
|
-
return /* @__PURE__ */
|
|
8066
|
+
return /* @__PURE__ */ import_react49.default.createElement("div", {
|
|
8006
8067
|
className: cn("hawa-flex hawa-flex-col hawa-gap-2 hawa-rounded hawa-border hawa-p-2 hawa-transition-all", selectedEmoji ? "hawa-h-[185px] hawa-min-w-fit" : "hawa-h-[44px] ")
|
|
8007
|
-
}, /* @__PURE__ */
|
|
8068
|
+
}, /* @__PURE__ */ import_react49.default.createElement("div", {
|
|
8008
8069
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 "
|
|
8009
|
-
}, /* @__PURE__ */
|
|
8070
|
+
}, /* @__PURE__ */ import_react49.default.createElement("div", {
|
|
8010
8071
|
className: "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-0.5 "
|
|
8011
8072
|
}, emojis.map(function(emoji, i) {
|
|
8012
|
-
return /* @__PURE__ */
|
|
8073
|
+
return /* @__PURE__ */ import_react49.default.createElement(Button, {
|
|
8013
8074
|
key: i,
|
|
8014
8075
|
onClick: function() {
|
|
8015
8076
|
if (selectedEmoji === emoji.value) {
|
|
@@ -8022,29 +8083,29 @@ var FeedbackEmoji = function(props) {
|
|
|
8022
8083
|
size: "smallIcon",
|
|
8023
8084
|
className: cn(selectedEmoji === emoji.value ? "hawa-bg-primary/10 hover:hawa-bg-primary/10 " : "hawa-text-[#666666]")
|
|
8024
8085
|
}, emoji.icon);
|
|
8025
|
-
}))), /* @__PURE__ */
|
|
8086
|
+
}))), /* @__PURE__ */ import_react49.default.createElement("div", {
|
|
8026
8087
|
className: cn("hawa-flex hawa-flex-col hawa-overflow-clip hawa-transition-all hawa-duration-500 hawa-ease-in-out ", selectedEmoji ? "hawa-visible hawa-opacity-100" : "hawa-invisible hawa-opacity-0 ")
|
|
8027
|
-
}, props.showSuccess ? /* @__PURE__ */
|
|
8088
|
+
}, props.showSuccess ? /* @__PURE__ */ import_react49.default.createElement("div", {
|
|
8028
8089
|
className: "hawa-flex hawa-h-full hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2 hawa-pt-4"
|
|
8029
|
-
}, /* @__PURE__ */
|
|
8090
|
+
}, /* @__PURE__ */ import_react49.default.createElement("div", {
|
|
8030
8091
|
className: "hawa-rounded hawa-bg-primary hawa-p-2 hawa-text-primary-foreground"
|
|
8031
|
-
}, /* @__PURE__ */
|
|
8092
|
+
}, /* @__PURE__ */ import_react49.default.createElement("svg", {
|
|
8032
8093
|
stroke: "currentColor",
|
|
8033
8094
|
fill: "currentColor",
|
|
8034
8095
|
strokeWidth: "0",
|
|
8035
8096
|
viewBox: "0 0 512 512",
|
|
8036
8097
|
height: "0.5em",
|
|
8037
8098
|
width: "0.5em"
|
|
8038
|
-
}, /* @__PURE__ */
|
|
8099
|
+
}, /* @__PURE__ */ import_react49.default.createElement("path", {
|
|
8039
8100
|
d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"
|
|
8040
|
-
}))), /* @__PURE__ */
|
|
8101
|
+
}))), /* @__PURE__ */ import_react49.default.createElement("div", {
|
|
8041
8102
|
className: "hawa-text-sm hawa-flex hawa-flex-col hawa-text-center"
|
|
8042
|
-
}, /* @__PURE__ */
|
|
8103
|
+
}, /* @__PURE__ */ import_react49.default.createElement("span", null, "Your feedback has been received!"), /* @__PURE__ */ import_react49.default.createElement("span", null, "Thank you for your help"))) : /* @__PURE__ */ import_react49.default.createElement("div", {
|
|
8043
8104
|
className: "hawa-flex hawa-flex-col hawa-gap-2"
|
|
8044
|
-
}, /* @__PURE__ */
|
|
8105
|
+
}, /* @__PURE__ */ import_react49.default.createElement(Popover, {
|
|
8045
8106
|
className: "hawa-select-none hawa-p-1 hawa-text-xs ",
|
|
8046
8107
|
open: helperText,
|
|
8047
|
-
trigger: /* @__PURE__ */
|
|
8108
|
+
trigger: /* @__PURE__ */ import_react49.default.createElement(Textarea, {
|
|
8048
8109
|
className: cn("hawa-mb-2 hawa-h-full hawa-resize-none"),
|
|
8049
8110
|
placeholder: "Your feedback",
|
|
8050
8111
|
onChange: function(e) {
|
|
@@ -8055,9 +8116,9 @@ var FeedbackEmoji = function(props) {
|
|
|
8055
8116
|
console.log("changing to", e.target.value);
|
|
8056
8117
|
}
|
|
8057
8118
|
})
|
|
8058
|
-
}, /* @__PURE__ */
|
|
8119
|
+
}, /* @__PURE__ */ import_react49.default.createElement("span", {
|
|
8059
8120
|
className: "hawa-m-2"
|
|
8060
|
-
}, "Please enter your feedback"), " "), /* @__PURE__ */
|
|
8121
|
+
}, "Please enter your feedback"), " "), /* @__PURE__ */ import_react49.default.createElement(Button, {
|
|
8061
8122
|
isLoading: loadingSubmit,
|
|
8062
8123
|
onClick: onFeedbackSubmit,
|
|
8063
8124
|
className: "hawa-w-full",
|
|
@@ -8065,20 +8126,20 @@ var FeedbackEmoji = function(props) {
|
|
|
8065
8126
|
}, "Submit"))));
|
|
8066
8127
|
};
|
|
8067
8128
|
var VeryGoodEmoji = function() {
|
|
8068
|
-
return /* @__PURE__ */
|
|
8129
|
+
return /* @__PURE__ */ import_react49.default.createElement("svg", {
|
|
8069
8130
|
fill: "none",
|
|
8070
8131
|
height: "16",
|
|
8071
8132
|
viewBox: "0 0 16 16",
|
|
8072
8133
|
width: "16",
|
|
8073
8134
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8074
|
-
}, /* @__PURE__ */
|
|
8135
|
+
}, /* @__PURE__ */ import_react49.default.createElement("g", {
|
|
8075
8136
|
clipPath: "url(#clip0_53_166)"
|
|
8076
|
-
}, /* @__PURE__ */
|
|
8137
|
+
}, /* @__PURE__ */ import_react49.default.createElement("path", {
|
|
8077
8138
|
clipRule: "evenodd",
|
|
8078
8139
|
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM4.5 8.97498H3.875V9.59998C3.875 11.4747 5.81046 12.8637 7.99817 12.8637C10.1879 12.8637 12.125 11.4832 12.125 9.59998V8.97498H11.5H4.5ZM7.99817 11.6137C6.59406 11.6137 5.63842 10.9482 5.28118 10.225H10.7202C10.3641 10.9504 9.40797 11.6137 7.99817 11.6137Z",
|
|
8079
8140
|
fill: "currentColor",
|
|
8080
8141
|
fillRule: "evenodd"
|
|
8081
|
-
}), /* @__PURE__ */
|
|
8142
|
+
}), /* @__PURE__ */ import_react49.default.createElement("path", {
|
|
8082
8143
|
clipRule: "evenodd",
|
|
8083
8144
|
d: "M6.15295 4.92093L5.375 3.5L4.59705 4.92093L3 5.21885L4.11625 6.39495L3.90717 8L5.375 7.30593L6.84283 8L6.63375 6.39495L7.75 5.21885L6.15295 4.92093ZM11.403 4.92093L10.625 3.5L9.84705 4.92093L8.25 5.21885L9.36625 6.39495L9.15717 8L10.625 7.30593L12.0928 8L11.8837 6.39495L13 5.21885L11.403 4.92093Z",
|
|
8084
8145
|
fill: "#FF990A",
|
|
@@ -8086,15 +8147,15 @@ var VeryGoodEmoji = function() {
|
|
|
8086
8147
|
})));
|
|
8087
8148
|
};
|
|
8088
8149
|
var GoodEmoji = function() {
|
|
8089
|
-
return /* @__PURE__ */
|
|
8150
|
+
return /* @__PURE__ */ import_react49.default.createElement("svg", {
|
|
8090
8151
|
fill: "none",
|
|
8091
8152
|
height: "16",
|
|
8092
8153
|
viewBox: "0 0 16 16",
|
|
8093
8154
|
width: "16",
|
|
8094
8155
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8095
|
-
}, /* @__PURE__ */
|
|
8156
|
+
}, /* @__PURE__ */ import_react49.default.createElement("g", {
|
|
8096
8157
|
clipPath: "url(#clip0_53_167)"
|
|
8097
|
-
}, /* @__PURE__ */
|
|
8158
|
+
}, /* @__PURE__ */ import_react49.default.createElement("path", {
|
|
8098
8159
|
clipRule: "evenodd",
|
|
8099
8160
|
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.5249 10.8478L11.8727 10.3286L10.8342 9.6329L10.4863 10.1522C9.94904 10.9543 9.0363 11.4802 8.00098 11.4802C6.96759 11.4802 6.05634 10.9563 5.51863 10.1567L5.16986 9.63804L4.13259 10.3356L4.48137 10.8542C5.2414 11.9844 6.53398 12.7302 8.00098 12.7302C9.47073 12.7302 10.7654 11.9816 11.5249 10.8478ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",
|
|
8100
8161
|
fill: "currentColor",
|
|
@@ -8102,15 +8163,15 @@ var GoodEmoji = function() {
|
|
|
8102
8163
|
})));
|
|
8103
8164
|
};
|
|
8104
8165
|
var BadEmoji = function() {
|
|
8105
|
-
return /* @__PURE__ */
|
|
8166
|
+
return /* @__PURE__ */ import_react49.default.createElement("svg", {
|
|
8106
8167
|
fill: "none",
|
|
8107
8168
|
height: "16",
|
|
8108
8169
|
viewBox: "0 0 16 16",
|
|
8109
8170
|
width: "16",
|
|
8110
8171
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8111
|
-
}, /* @__PURE__ */
|
|
8172
|
+
}, /* @__PURE__ */ import_react49.default.createElement("g", {
|
|
8112
8173
|
clipPath: "url(#clip0_53_152)"
|
|
8113
|
-
}, /* @__PURE__ */
|
|
8174
|
+
}, /* @__PURE__ */ import_react49.default.createElement("path", {
|
|
8114
8175
|
clipRule: "evenodd",
|
|
8115
8176
|
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM5.75 7.75C6.30228 7.75 6.75 7.30228 6.75 6.75C6.75 6.19772 6.30228 5.75 5.75 5.75C5.19772 5.75 4.75 6.19772 4.75 6.75C4.75 7.30228 5.19772 7.75 5.75 7.75ZM11.25 6.75C11.25 7.30228 10.8023 7.75 10.25 7.75C9.69771 7.75 9.25 7.30228 9.25 6.75C9.25 6.19772 9.69771 5.75 10.25 5.75C10.8023 5.75 11.25 6.19772 11.25 6.75ZM11.5249 11.2622L11.8727 11.7814L10.8342 12.4771L10.4863 11.9578C9.94904 11.1557 9.0363 10.6298 8.00098 10.6298C6.96759 10.6298 6.05634 11.1537 5.51863 11.9533L5.16986 12.4719L4.13259 11.7744L4.48137 11.2558C5.2414 10.1256 6.53398 9.37982 8.00098 9.37982C9.47073 9.37982 10.7654 10.1284 11.5249 11.2622Z",
|
|
8116
8177
|
fill: "currentColor",
|
|
@@ -8118,18 +8179,18 @@ var BadEmoji = function() {
|
|
|
8118
8179
|
})));
|
|
8119
8180
|
};
|
|
8120
8181
|
var VeryBadEmoji = function() {
|
|
8121
|
-
return /* @__PURE__ */
|
|
8182
|
+
return /* @__PURE__ */ import_react49.default.createElement("svg", {
|
|
8122
8183
|
fill: "none",
|
|
8123
8184
|
height: "16",
|
|
8124
8185
|
viewBox: "0 0 16 16",
|
|
8125
8186
|
width: "16",
|
|
8126
8187
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8127
|
-
}, /* @__PURE__ */
|
|
8188
|
+
}, /* @__PURE__ */ import_react49.default.createElement("g", {
|
|
8128
8189
|
clipPath: "url(#clip0_53_151)"
|
|
8129
|
-
}, /* @__PURE__ */
|
|
8190
|
+
}, /* @__PURE__ */ import_react49.default.createElement("path", {
|
|
8130
8191
|
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",
|
|
8131
8192
|
fill: "#0070F3"
|
|
8132
|
-
}), /* @__PURE__ */
|
|
8193
|
+
}), /* @__PURE__ */ import_react49.default.createElement("path", {
|
|
8133
8194
|
clipRule: "evenodd",
|
|
8134
8195
|
d: "M8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 10.9668 3.48826 13.4711 6.20649 14.2496L5.79351 15.6916C2.44895 14.7338 0 11.6539 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 9.4652 15.6054 10.8405 14.9162 12.023L13.6203 11.2677C14.1794 10.3083 14.5 9.19272 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",
|
|
8135
8196
|
fill: "currentColor",
|
|
@@ -8137,7 +8198,7 @@ var VeryBadEmoji = function() {
|
|
|
8137
8198
|
})));
|
|
8138
8199
|
};
|
|
8139
8200
|
// components/blocks/feedback/FeedbackForm.tsx
|
|
8140
|
-
var
|
|
8201
|
+
var import_react50 = __toESM(require("react"));
|
|
8141
8202
|
var import_react_hook_form7 = require("react-hook-form");
|
|
8142
8203
|
var import_zod7 = require("@hookform/resolvers/zod");
|
|
8143
8204
|
var z7 = __toESM(require("zod"));
|
|
@@ -8158,9 +8219,9 @@ var FeedbackForm = function(props) {
|
|
|
8158
8219
|
var _ref = (0, import_react_hook_form7.useForm)({
|
|
8159
8220
|
resolver: (0, import_zod7.zodResolver)(formSchema)
|
|
8160
8221
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState;
|
|
8161
|
-
return /* @__PURE__ */
|
|
8222
|
+
return /* @__PURE__ */ import_react50.default.createElement(Card, null, /* @__PURE__ */ import_react50.default.createElement(CardContent, {
|
|
8162
8223
|
headless: true
|
|
8163
|
-
}, /* @__PURE__ */
|
|
8224
|
+
}, /* @__PURE__ */ import_react50.default.createElement("form", {
|
|
8164
8225
|
onSubmit: handleSubmit(function(e) {
|
|
8165
8226
|
if (props.onSubmit) {
|
|
8166
8227
|
return props.onSubmit(e);
|
|
@@ -8169,13 +8230,13 @@ var FeedbackForm = function(props) {
|
|
|
8169
8230
|
}
|
|
8170
8231
|
}),
|
|
8171
8232
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
8172
|
-
}, /* @__PURE__ */
|
|
8233
|
+
}, /* @__PURE__ */ import_react50.default.createElement(Label2, null, (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.requestType), /* @__PURE__ */ import_react50.default.createElement(import_react_hook_form7.Controller, {
|
|
8173
8234
|
name: "requestType",
|
|
8174
8235
|
control: control,
|
|
8175
8236
|
render: function(param) {
|
|
8176
8237
|
var field = param.field;
|
|
8177
8238
|
var _formState_errors_requestType_message, _formState_errors_requestType;
|
|
8178
|
-
return /* @__PURE__ */
|
|
8239
|
+
return /* @__PURE__ */ import_react50.default.createElement(Select, _object_spread_props(_object_spread({}, field), {
|
|
8179
8240
|
onChange: function(option) {
|
|
8180
8241
|
return field.onChange(option.value);
|
|
8181
8242
|
},
|
|
@@ -8183,70 +8244,70 @@ var FeedbackForm = function(props) {
|
|
|
8183
8244
|
helperText: (_formState_errors_requestType = formState.errors.requestType) === null || _formState_errors_requestType === void 0 ? void 0 : (_formState_errors_requestType_message = _formState_errors_requestType.message) === null || _formState_errors_requestType_message === void 0 ? void 0 : _formState_errors_requestType_message.toString()
|
|
8184
8245
|
}));
|
|
8185
8246
|
}
|
|
8186
|
-
}), /* @__PURE__ */
|
|
8247
|
+
}), /* @__PURE__ */ import_react50.default.createElement(Label2, null, props.texts.description), /* @__PURE__ */ import_react50.default.createElement(import_react_hook_form7.Controller, {
|
|
8187
8248
|
name: "description",
|
|
8188
8249
|
control: control,
|
|
8189
8250
|
render: function(param) {
|
|
8190
8251
|
var field = param.field;
|
|
8191
8252
|
var _formState_errors_description_message, _formState_errors_description;
|
|
8192
|
-
return /* @__PURE__ */
|
|
8253
|
+
return /* @__PURE__ */ import_react50.default.createElement(Textarea, _object_spread_props(_object_spread({}, field), {
|
|
8193
8254
|
helperText: formState.errors.description && ((_formState_errors_description = formState.errors.description) === null || _formState_errors_description === void 0 ? void 0 : (_formState_errors_description_message = _formState_errors_description.message) === null || _formState_errors_description_message === void 0 ? void 0 : _formState_errors_description_message.toString())
|
|
8194
8255
|
}));
|
|
8195
8256
|
}
|
|
8196
|
-
}), /* @__PURE__ */
|
|
8257
|
+
}), /* @__PURE__ */ import_react50.default.createElement(Button, {
|
|
8197
8258
|
type: "submit"
|
|
8198
8259
|
}, (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.submit))));
|
|
8199
8260
|
};
|
|
8200
8261
|
// components/blocks/misc/LegalTexts.tsx
|
|
8201
|
-
var
|
|
8262
|
+
var import_react51 = __toESM(require("react"));
|
|
8202
8263
|
var LegalTexts = function(_param) {
|
|
8203
8264
|
var tabs = _param.tabs, props = _object_without_properties(_param, [
|
|
8204
8265
|
"tabs"
|
|
8205
8266
|
]);
|
|
8206
|
-
return /* @__PURE__ */
|
|
8267
|
+
return /* @__PURE__ */ import_react51.default.createElement(Tabs, {
|
|
8207
8268
|
value: props.activeTab,
|
|
8208
8269
|
onValueChange: props.handleTabChange,
|
|
8209
8270
|
defaultValue: props.defaultTab || tabs[0].value,
|
|
8210
8271
|
dir: props.direction
|
|
8211
|
-
}, /* @__PURE__ */
|
|
8272
|
+
}, /* @__PURE__ */ import_react51.default.createElement(TabsList, {
|
|
8212
8273
|
className: "hawa-w-full"
|
|
8213
8274
|
}, tabs.map(function(tab, index) {
|
|
8214
|
-
return /* @__PURE__ */
|
|
8275
|
+
return /* @__PURE__ */ import_react51.default.createElement(TabsTrigger, {
|
|
8215
8276
|
key: index,
|
|
8216
8277
|
value: tab.value
|
|
8217
8278
|
}, tab.title);
|
|
8218
8279
|
})), tabs.map(function(tab, index) {
|
|
8219
|
-
return /* @__PURE__ */
|
|
8280
|
+
return /* @__PURE__ */ import_react51.default.createElement(TabsContent, {
|
|
8220
8281
|
key: index,
|
|
8221
8282
|
value: tab.value
|
|
8222
|
-
}, /* @__PURE__ */
|
|
8283
|
+
}, /* @__PURE__ */ import_react51.default.createElement(ScrollArea, {
|
|
8223
8284
|
className: cn("hawa-p-4 hawa-rounded hawa-bg-muted hawa-border", props.scrollAreaClassName)
|
|
8224
8285
|
}, tab.content));
|
|
8225
8286
|
}));
|
|
8226
8287
|
};
|
|
8227
8288
|
// components/blocks/misc/EmptyState.tsx
|
|
8228
|
-
var
|
|
8289
|
+
var import_react52 = __toESM(require("react"));
|
|
8229
8290
|
var EmptyState = function(param) {
|
|
8230
8291
|
var texts = param.texts, onActionClick = param.onActionClick;
|
|
8231
8292
|
var _texts_youreCaughtUp, _texts_actionText;
|
|
8232
|
-
return /* @__PURE__ */
|
|
8293
|
+
return /* @__PURE__ */ import_react52.default.createElement(Card, null, /* @__PURE__ */ import_react52.default.createElement(CardContent, {
|
|
8233
8294
|
headless: true
|
|
8234
|
-
}, /* @__PURE__ */
|
|
8295
|
+
}, /* @__PURE__ */ import_react52.default.createElement("div", {
|
|
8235
8296
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center "
|
|
8236
|
-
}, /* @__PURE__ */
|
|
8297
|
+
}, /* @__PURE__ */ import_react52.default.createElement("div", {
|
|
8237
8298
|
className: "hawa-flex hawa-h-10 hawa-w-10 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground"
|
|
8238
|
-
}, /* @__PURE__ */
|
|
8299
|
+
}, /* @__PURE__ */ import_react52.default.createElement("svg", {
|
|
8239
8300
|
stroke: "currentColor",
|
|
8240
8301
|
fill: "currentColor",
|
|
8241
8302
|
strokeWidth: "0",
|
|
8242
8303
|
viewBox: "0 0 512 512",
|
|
8243
8304
|
height: "0.35em",
|
|
8244
8305
|
width: "0.35em"
|
|
8245
|
-
}, /* @__PURE__ */
|
|
8306
|
+
}, /* @__PURE__ */ import_react52.default.createElement("path", {
|
|
8246
8307
|
d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"
|
|
8247
|
-
}))), /* @__PURE__ */
|
|
8308
|
+
}))), /* @__PURE__ */ import_react52.default.createElement("div", {
|
|
8248
8309
|
className: "hawa-m-2 hawa-text-xl hawa-font-bold"
|
|
8249
|
-
}, (_texts_youreCaughtUp = texts === null || texts === void 0 ? void 0 : texts.youreCaughtUp) !== null && _texts_youreCaughtUp !== void 0 ? _texts_youreCaughtUp : "You're all caught up"))), /* @__PURE__ */
|
|
8310
|
+
}, (_texts_youreCaughtUp = texts === null || texts === void 0 ? void 0 : texts.youreCaughtUp) !== null && _texts_youreCaughtUp !== void 0 ? _texts_youreCaughtUp : "You're all caught up"))), /* @__PURE__ */ import_react52.default.createElement(CardFooter, null, /* @__PURE__ */ import_react52.default.createElement(Button, {
|
|
8250
8311
|
className: "hawa-w-full",
|
|
8251
8312
|
onClick: function() {
|
|
8252
8313
|
return onActionClick();
|
|
@@ -8254,36 +8315,36 @@ var EmptyState = function(param) {
|
|
|
8254
8315
|
}, (_texts_actionText = texts === null || texts === void 0 ? void 0 : texts.actionText) !== null && _texts_actionText !== void 0 ? _texts_actionText : "Go Home")));
|
|
8255
8316
|
};
|
|
8256
8317
|
// components/blocks/misc/Testimonial.tsx
|
|
8257
|
-
var
|
|
8318
|
+
var import_react53 = __toESM(require("react"));
|
|
8258
8319
|
var Testimonial = function(props) {
|
|
8259
|
-
return /* @__PURE__ */
|
|
8320
|
+
return /* @__PURE__ */ import_react53.default.createElement(Card, null, /* @__PURE__ */ import_react53.default.createElement(CardContent, {
|
|
8260
8321
|
headless: true
|
|
8261
|
-
}, /* @__PURE__ */
|
|
8322
|
+
}, /* @__PURE__ */ import_react53.default.createElement("div", null, /* @__PURE__ */ import_react53.default.createElement("p", {
|
|
8262
8323
|
className: "mb-4 max-w-sm"
|
|
8263
|
-
}, "The team at Sikka Software is simply amazing. The tech is easy to follow, easy to work with, and infinitely flexible. The solution opportunities created by Tines are endless.")), /* @__PURE__ */
|
|
8324
|
+
}, "The team at Sikka Software is simply amazing. The tech is easy to follow, easy to work with, and infinitely flexible. The solution opportunities created by Tines are endless.")), /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
8264
8325
|
className: "flex flex-row gap-4"
|
|
8265
|
-
}, /* @__PURE__ */
|
|
8326
|
+
}, /* @__PURE__ */ import_react53.default.createElement("svg", {
|
|
8266
8327
|
width: "48",
|
|
8267
8328
|
height: "48",
|
|
8268
8329
|
viewBox: "0 0 48 48",
|
|
8269
8330
|
fill: "none"
|
|
8270
|
-
}, /* @__PURE__ */
|
|
8331
|
+
}, /* @__PURE__ */ import_react53.default.createElement("rect", {
|
|
8271
8332
|
width: "48",
|
|
8272
8333
|
height: "48",
|
|
8273
8334
|
rx: "24",
|
|
8274
8335
|
fill: "#45BE8B"
|
|
8275
|
-
}), /* @__PURE__ */
|
|
8336
|
+
}), /* @__PURE__ */ import_react53.default.createElement("path", {
|
|
8276
8337
|
d: "M14.1412 22.4427L17.5803 16.5199C17.7671 16.1981 18.1112 16 18.4834 16H20.8581C21.653 16 22.1565 16.8528 21.7725 17.5488L19.3042 22.0225C19.2202 22.1747 19.1762 22.3458 19.1762 22.5196C19.1762 23.0879 19.6369 23.5486 20.2052 23.5486H21.5827C22.1594 23.5486 22.627 24.0162 22.627 24.5929V31.347C22.627 31.9237 22.1594 32.3913 21.5827 32.3913H15.0443C14.4676 32.3913 14 31.9237 14 31.347V22.9671C14 22.7829 14.0487 22.602 14.1412 22.4427Z",
|
|
8277
8338
|
fill: "#FFFFFF"
|
|
8278
|
-
}), /* @__PURE__ */
|
|
8339
|
+
}), /* @__PURE__ */ import_react53.default.createElement("path", {
|
|
8279
8340
|
d: "M25.356 22.4427L28.7951 16.5199C28.982 16.1981 29.326 16 29.6982 16H32.0729C32.8679 16 33.3713 16.8528 32.9873 17.5488L30.5191 22.0225C30.4351 22.1747 30.391 22.3458 30.391 22.5196C30.391 23.0879 30.8518 23.5486 31.4201 23.5486H32.7975C33.3743 23.5486 33.8418 24.0162 33.8418 24.5929V31.347C33.8418 31.9237 33.3743 32.3913 32.7975 32.3913H26.2592C25.6824 32.3913 25.2148 31.9237 25.2148 31.347V22.9671C25.2148 22.7829 25.2636 22.602 25.356 22.4427Z",
|
|
8280
8341
|
fill: "#FFFFFF"
|
|
8281
|
-
})), /* @__PURE__ */
|
|
8342
|
+
})), /* @__PURE__ */ import_react53.default.createElement("span", {
|
|
8282
8343
|
className: "border border-l "
|
|
8283
|
-
}), " ", /* @__PURE__ */
|
|
8344
|
+
}), " ", /* @__PURE__ */ import_react53.default.createElement("div", null, /* @__PURE__ */ import_react53.default.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ import_react53.default.createElement("div", null, " Chief Information Security Officer")))));
|
|
8284
8345
|
};
|
|
8285
8346
|
// components/blocks/misc/LeadGenerator.tsx
|
|
8286
|
-
var
|
|
8347
|
+
var import_react54 = __toESM(require("react"));
|
|
8287
8348
|
var import_react_hook_form8 = require("react-hook-form");
|
|
8288
8349
|
var LeadGenerator = function(param) {
|
|
8289
8350
|
var texts = param.texts, submitHandler = param.submitHandler;
|
|
@@ -8296,10 +8357,10 @@ var LeadGenerator = function(param) {
|
|
|
8296
8357
|
}
|
|
8297
8358
|
};
|
|
8298
8359
|
var _texts_submit;
|
|
8299
|
-
return /* @__PURE__ */
|
|
8360
|
+
return /* @__PURE__ */ import_react54.default.createElement(Card, null, /* @__PURE__ */ import_react54.default.createElement(CardHeader, null, /* @__PURE__ */ import_react54.default.createElement(CardTitle, null, texts === null || texts === void 0 ? void 0 : texts.title), /* @__PURE__ */ import_react54.default.createElement(CardDescription, null, texts === null || texts === void 0 ? void 0 : texts.subtitle)), /* @__PURE__ */ import_react54.default.createElement(CardContent, null, /* @__PURE__ */ import_react54.default.createElement("form", {
|
|
8300
8361
|
className: "hawa-flex hawa-flex-row hawa-gap-2",
|
|
8301
8362
|
onSubmit: handleSubmit(onSubmit)
|
|
8302
|
-
}, /* @__PURE__ */
|
|
8363
|
+
}, /* @__PURE__ */ import_react54.default.createElement(import_react_hook_form8.Controller, {
|
|
8303
8364
|
name: "email",
|
|
8304
8365
|
control: control,
|
|
8305
8366
|
rules: {
|
|
@@ -8312,32 +8373,32 @@ var LeadGenerator = function(param) {
|
|
|
8312
8373
|
defaultValue: "",
|
|
8313
8374
|
render: function(param) {
|
|
8314
8375
|
var field = param.field;
|
|
8315
|
-
return /* @__PURE__ */
|
|
8376
|
+
return /* @__PURE__ */ import_react54.default.createElement(Input, _object_spread_props(_object_spread({}, field), {
|
|
8316
8377
|
type: "email",
|
|
8317
8378
|
placeholder: "example@sikka.io"
|
|
8318
8379
|
}));
|
|
8319
8380
|
}
|
|
8320
|
-
}), /* @__PURE__ */
|
|
8381
|
+
}), /* @__PURE__ */ import_react54.default.createElement(Button, {
|
|
8321
8382
|
type: "submit",
|
|
8322
8383
|
disabled: !formState.isValid
|
|
8323
8384
|
}, (_texts_submit = texts === null || texts === void 0 ? void 0 : texts.submit) !== null && _texts_submit !== void 0 ? _texts_submit : "Submit"))));
|
|
8324
8385
|
};
|
|
8325
8386
|
// components/blocks/misc/Announcement.tsx
|
|
8326
|
-
var
|
|
8387
|
+
var import_react55 = __toESM(require("react"));
|
|
8327
8388
|
var Announcement = function(_param) {
|
|
8328
8389
|
var onActionClick = _param.onActionClick, props = _object_without_properties(_param, [
|
|
8329
8390
|
"onActionClick"
|
|
8330
8391
|
]);
|
|
8331
|
-
return /* @__PURE__ */
|
|
8392
|
+
return /* @__PURE__ */ import_react55.default.createElement(Card, null, /* @__PURE__ */ import_react55.default.createElement(CardContent, {
|
|
8332
8393
|
headless: true,
|
|
8333
8394
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
|
8334
|
-
}, /* @__PURE__ */
|
|
8395
|
+
}, /* @__PURE__ */ import_react55.default.createElement("div", {
|
|
8335
8396
|
className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center "
|
|
8336
|
-
}, /* @__PURE__ */
|
|
8397
|
+
}, /* @__PURE__ */ import_react55.default.createElement("span", {
|
|
8337
8398
|
className: "hawa-text-lg hawa-font-bold"
|
|
8338
|
-
}, props.title), /* @__PURE__ */
|
|
8399
|
+
}, props.title), /* @__PURE__ */ import_react55.default.createElement("span", {
|
|
8339
8400
|
className: "hawa-text-sm"
|
|
8340
|
-
}, props.subtitle)), /* @__PURE__ */
|
|
8401
|
+
}, props.subtitle)), /* @__PURE__ */ import_react55.default.createElement(Button, {
|
|
8341
8402
|
onClick: function() {
|
|
8342
8403
|
return onActionClick();
|
|
8343
8404
|
},
|
|
@@ -8345,56 +8406,56 @@ var Announcement = function(_param) {
|
|
|
8345
8406
|
}, props.actionText)));
|
|
8346
8407
|
};
|
|
8347
8408
|
// components/blocks/misc/NotFound.tsx
|
|
8348
|
-
var
|
|
8409
|
+
var import_react56 = __toESM(require("react"));
|
|
8349
8410
|
var NotFound = function(param) {
|
|
8350
8411
|
var _param_variant = param.variant, variant = _param_variant === void 0 ? "contained" : _param_variant, texts = param.texts;
|
|
8351
8412
|
var _texts_pageNotFound, _texts_ifLost, _texts_home;
|
|
8352
|
-
return /* @__PURE__ */
|
|
8413
|
+
return /* @__PURE__ */ import_react56.default.createElement(Card, null, /* @__PURE__ */ import_react56.default.createElement(CardContent, {
|
|
8353
8414
|
headless: true
|
|
8354
|
-
}, /* @__PURE__ */
|
|
8415
|
+
}, /* @__PURE__ */ import_react56.default.createElement("div", {
|
|
8355
8416
|
className: "hawa-flex hawa-flex-col hawa-items-center dark:hawa-text-white"
|
|
8356
|
-
}, /* @__PURE__ */
|
|
8417
|
+
}, /* @__PURE__ */ import_react56.default.createElement("div", {
|
|
8357
8418
|
className: "hawa-text-center hawa-text-6xl hawa-font-bold "
|
|
8358
|
-
}, "404"), /* @__PURE__ */
|
|
8419
|
+
}, "404"), /* @__PURE__ */ import_react56.default.createElement("div", {
|
|
8359
8420
|
className: "hawa-m-2 hawa-text-center hawa-text-xl hawa-font-bold "
|
|
8360
|
-
}, (_texts_pageNotFound = texts === null || texts === void 0 ? void 0 : texts.pageNotFound) !== null && _texts_pageNotFound !== void 0 ? _texts_pageNotFound : "Page Not Found"), /* @__PURE__ */
|
|
8421
|
+
}, (_texts_pageNotFound = texts === null || texts === void 0 ? void 0 : texts.pageNotFound) !== null && _texts_pageNotFound !== void 0 ? _texts_pageNotFound : "Page Not Found"), /* @__PURE__ */ import_react56.default.createElement("div", {
|
|
8361
8422
|
className: "hawa-mb-4 hawa-text-center"
|
|
8362
|
-
}, (_texts_ifLost = texts === null || texts === void 0 ? void 0 : texts.ifLost) !== null && _texts_ifLost !== void 0 ? _texts_ifLost : /* @__PURE__ */
|
|
8423
|
+
}, (_texts_ifLost = texts === null || texts === void 0 ? void 0 : texts.ifLost) !== null && _texts_ifLost !== void 0 ? _texts_ifLost : /* @__PURE__ */ import_react56.default.createElement(import_react56.default.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ import_react56.default.createElement("span", {
|
|
8363
8424
|
className: "clickable-link"
|
|
8364
|
-
}, "help@sikka.io"))), /* @__PURE__ */
|
|
8425
|
+
}, "help@sikka.io"))), /* @__PURE__ */ import_react56.default.createElement(Button, {
|
|
8365
8426
|
className: "hawa-w-full"
|
|
8366
8427
|
}, (_texts_home = texts === null || texts === void 0 ? void 0 : texts.home) !== null && _texts_home !== void 0 ? _texts_home : "Home"))));
|
|
8367
8428
|
};
|
|
8368
8429
|
// components/blocks/misc/NoPermission.tsx
|
|
8369
|
-
var
|
|
8430
|
+
var import_react57 = __toESM(require("react"));
|
|
8370
8431
|
var NoPermission = function(param) {
|
|
8371
8432
|
var texts = param.texts;
|
|
8372
8433
|
var _texts_title, _texts_subtitle;
|
|
8373
|
-
return /* @__PURE__ */
|
|
8434
|
+
return /* @__PURE__ */ import_react57.default.createElement(Card, null, /* @__PURE__ */ import_react57.default.createElement(CardContent, {
|
|
8374
8435
|
headless: true
|
|
8375
|
-
}, /* @__PURE__ */
|
|
8436
|
+
}, /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
8376
8437
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center"
|
|
8377
|
-
}, /* @__PURE__ */
|
|
8438
|
+
}, /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
8378
8439
|
className: "hawa-flex hawa-h-10 hawa-w-10 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground"
|
|
8379
|
-
}, /* @__PURE__ */
|
|
8440
|
+
}, /* @__PURE__ */ import_react57.default.createElement("svg", {
|
|
8380
8441
|
stroke: "currentColor",
|
|
8381
8442
|
fill: "currentColor",
|
|
8382
8443
|
strokeWidth: "0",
|
|
8383
8444
|
viewBox: "0 0 448 512",
|
|
8384
8445
|
height: "0.35em",
|
|
8385
8446
|
width: "0.35em"
|
|
8386
|
-
}, /* @__PURE__ */
|
|
8447
|
+
}, /* @__PURE__ */ import_react57.default.createElement("path", {
|
|
8387
8448
|
d: "M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"
|
|
8388
|
-
})), " "), /* @__PURE__ */
|
|
8449
|
+
})), " "), /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
8389
8450
|
className: "hawa-m-2 hawa-text-xl hawa-font-bold"
|
|
8390
|
-
}, (_texts_title = texts === null || texts === void 0 ? void 0 : texts.title) !== null && _texts_title !== void 0 ? _texts_title : "You don't have permission"), /* @__PURE__ */
|
|
8451
|
+
}, (_texts_title = texts === null || texts === void 0 ? void 0 : texts.title) !== null && _texts_title !== void 0 ? _texts_title : "You don't have permission"), /* @__PURE__ */ import_react57.default.createElement("div", null, (_texts_subtitle = texts === null || texts === void 0 ? void 0 : texts.subtitle) !== null && _texts_subtitle !== void 0 ? _texts_subtitle : "If you think this is a problem please contact your administrator or our customer support"))));
|
|
8391
8452
|
};
|
|
8392
8453
|
// components/blocks/pricing/PricingPlans.tsx
|
|
8393
|
-
var
|
|
8454
|
+
var import_react58 = __toESM(require("react"));
|
|
8394
8455
|
var PricingPlans = function(props) {
|
|
8395
|
-
return /* @__PURE__ */
|
|
8456
|
+
return /* @__PURE__ */ import_react58.default.createElement("div", null, /* @__PURE__ */ import_react58.default.createElement("div", {
|
|
8396
8457
|
className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between"
|
|
8397
|
-
}, /* @__PURE__ */
|
|
8458
|
+
}, /* @__PURE__ */ import_react58.default.createElement(Radio, {
|
|
8398
8459
|
design: "tabs",
|
|
8399
8460
|
defaultValue: props.currentCycle,
|
|
8400
8461
|
options: props.billingCycles,
|
|
@@ -8403,7 +8464,7 @@ var PricingPlans = function(props) {
|
|
|
8403
8464
|
props.onCycleChange(e);
|
|
8404
8465
|
}
|
|
8405
8466
|
}
|
|
8406
|
-
}), /* @__PURE__ */
|
|
8467
|
+
}), /* @__PURE__ */ import_react58.default.createElement(Radio, {
|
|
8407
8468
|
design: "tabs",
|
|
8408
8469
|
defaultValue: props.currentCurrency,
|
|
8409
8470
|
options: props.currencies,
|
|
@@ -8412,10 +8473,10 @@ var PricingPlans = function(props) {
|
|
|
8412
8473
|
props.onCurrencyChange(e);
|
|
8413
8474
|
}
|
|
8414
8475
|
}
|
|
8415
|
-
})), /* @__PURE__ */
|
|
8476
|
+
})), /* @__PURE__ */ import_react58.default.createElement("div", {
|
|
8416
8477
|
className: "hawa-flex hawa-flex-row hawa-justify-between"
|
|
8417
8478
|
}, props.plans.map(function(plan, index) {
|
|
8418
|
-
return /* @__PURE__ */
|
|
8479
|
+
return /* @__PURE__ */ import_react58.default.createElement(PricingCard, _object_spread_props(_object_spread({
|
|
8419
8480
|
key: index,
|
|
8420
8481
|
onPlanClicked: function() {
|
|
8421
8482
|
if (props.onPlanClicked) {
|
|
@@ -8436,26 +8497,26 @@ var PricingPlans = function(props) {
|
|
|
8436
8497
|
})));
|
|
8437
8498
|
};
|
|
8438
8499
|
// components/blocks/pricing/ComparingPlans.tsx
|
|
8439
|
-
var
|
|
8500
|
+
var import_react59 = __toESM(require("react"));
|
|
8440
8501
|
var CheckMark = function() {
|
|
8441
|
-
return /* @__PURE__ */
|
|
8502
|
+
return /* @__PURE__ */ import_react59.default.createElement("svg", {
|
|
8442
8503
|
className: "hawa-h-5 hawa-w-5 hawa-text-green-500",
|
|
8443
8504
|
"aria-hidden": "true",
|
|
8444
8505
|
fill: "currentColor",
|
|
8445
8506
|
viewBox: "0 0 20 20"
|
|
8446
|
-
}, /* @__PURE__ */
|
|
8507
|
+
}, /* @__PURE__ */ import_react59.default.createElement("path", {
|
|
8447
8508
|
fillRule: "evenodd",
|
|
8448
8509
|
d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
|
|
8449
8510
|
clipRule: "evenodd"
|
|
8450
8511
|
}));
|
|
8451
8512
|
};
|
|
8452
8513
|
var UncheckMark = function() {
|
|
8453
|
-
return /* @__PURE__ */
|
|
8514
|
+
return /* @__PURE__ */ import_react59.default.createElement("svg", {
|
|
8454
8515
|
className: "hawa-h-5 hawa-w-5 hawa-text-red-500",
|
|
8455
8516
|
"aria-hidden": "true",
|
|
8456
8517
|
fill: "currentColor",
|
|
8457
8518
|
viewBox: "0 0 20 20"
|
|
8458
|
-
}, /* @__PURE__ */
|
|
8519
|
+
}, /* @__PURE__ */ import_react59.default.createElement("path", {
|
|
8459
8520
|
fillRule: "evenodd",
|
|
8460
8521
|
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
|
8461
8522
|
clipRule: "evenodd"
|
|
@@ -8463,14 +8524,14 @@ var UncheckMark = function() {
|
|
|
8463
8524
|
};
|
|
8464
8525
|
var ComparingPlans = function(props) {
|
|
8465
8526
|
var _props_plans;
|
|
8466
|
-
var _ref = _sliced_to_array((0,
|
|
8467
|
-
var _ref1 = _sliced_to_array((0,
|
|
8468
|
-
return /* @__PURE__ */
|
|
8527
|
+
var _ref = _sliced_to_array((0, import_react59.useState)("sar"), 2), currentCurrency = _ref[0], setCurrentCurrency = _ref[1];
|
|
8528
|
+
var _ref1 = _sliced_to_array((0, import_react59.useState)("month"), 2), currentCycle = _ref1[0], setCurrentCycle = _ref1[1];
|
|
8529
|
+
return /* @__PURE__ */ import_react59.default.createElement("div", {
|
|
8469
8530
|
id: "detailed-pricing",
|
|
8470
8531
|
className: "hawa-w-full hawa-overflow-x-auto"
|
|
8471
|
-
}, /* @__PURE__ */
|
|
8532
|
+
}, /* @__PURE__ */ import_react59.default.createElement("div", {
|
|
8472
8533
|
className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between"
|
|
8473
|
-
}, /* @__PURE__ */
|
|
8534
|
+
}, /* @__PURE__ */ import_react59.default.createElement(Radio, {
|
|
8474
8535
|
design: "tabs",
|
|
8475
8536
|
defaultValue: currentCycle,
|
|
8476
8537
|
options: props.billingCycles,
|
|
@@ -8481,7 +8542,7 @@ var ComparingPlans = function(props) {
|
|
|
8481
8542
|
console.log("onCycleChange was not provided");
|
|
8482
8543
|
}
|
|
8483
8544
|
}
|
|
8484
|
-
}), /* @__PURE__ */
|
|
8545
|
+
}), /* @__PURE__ */ import_react59.default.createElement(Radio, {
|
|
8485
8546
|
design: "tabs",
|
|
8486
8547
|
defaultValue: currentCurrency,
|
|
8487
8548
|
options: props.currencies,
|
|
@@ -8492,56 +8553,56 @@ var ComparingPlans = function(props) {
|
|
|
8492
8553
|
console.log("onCurrencyChange was not provided");
|
|
8493
8554
|
}
|
|
8494
8555
|
}
|
|
8495
|
-
})), /* @__PURE__ */
|
|
8556
|
+
})), /* @__PURE__ */ import_react59.default.createElement("div", {
|
|
8496
8557
|
className: " hawa-overflow-hidden hawa-rounded"
|
|
8497
|
-
}, /* @__PURE__ */
|
|
8558
|
+
}, /* @__PURE__ */ import_react59.default.createElement("div", {
|
|
8498
8559
|
className: "hawa-grid hawa-grid-cols-4 hawa-gap-x-2 hawa-border-b hawa-border-t hawa-border-gray-200 hawa-bg-gray-100 hawa-p-4 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-border-gray-700 dark:hawa-bg-gray-800 dark:hawa-text-white"
|
|
8499
|
-
}, /* @__PURE__ */
|
|
8560
|
+
}, /* @__PURE__ */ import_react59.default.createElement("div", {
|
|
8500
8561
|
className: "hawa-flex hawa-items-center"
|
|
8501
8562
|
}), props.plans.map(function(plan, i) {
|
|
8502
|
-
return /* @__PURE__ */
|
|
8563
|
+
return /* @__PURE__ */ import_react59.default.createElement("div", {
|
|
8503
8564
|
key: i
|
|
8504
|
-
}, /* @__PURE__ */
|
|
8565
|
+
}, /* @__PURE__ */ import_react59.default.createElement("h5", {
|
|
8505
8566
|
className: "hawa-text-md hawa-font-bold hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
8506
|
-
}, plan.texts.title), /* @__PURE__ */
|
|
8567
|
+
}, plan.texts.title), /* @__PURE__ */ import_react59.default.createElement("div", {
|
|
8507
8568
|
className: " hawa-flex hawa-items-baseline hawa-text-gray-900 dark:hawa-text-white"
|
|
8508
|
-
}, /* @__PURE__ */
|
|
8569
|
+
}, /* @__PURE__ */ import_react59.default.createElement(import_react59.default.Fragment, null, /* @__PURE__ */ import_react59.default.createElement("span", {
|
|
8509
8570
|
className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight"
|
|
8510
|
-
}, plan.price), /* @__PURE__ */
|
|
8571
|
+
}, plan.price), /* @__PURE__ */ import_react59.default.createElement("span", {
|
|
8511
8572
|
className: "hawa-mx-1 hawa-text-sm hawa-font-semibold"
|
|
8512
|
-
}, plan.texts.currencyText)), /* @__PURE__ */
|
|
8573
|
+
}, plan.texts.currencyText)), /* @__PURE__ */ import_react59.default.createElement("span", {
|
|
8513
8574
|
className: "hawa-ml-1 hawa-text-xl hawa-font-normal hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
8514
|
-
}, "/ ", plan.texts.cycleText)), /* @__PURE__ */
|
|
8575
|
+
}, "/ ", plan.texts.cycleText)), /* @__PURE__ */ import_react59.default.createElement("h5", {
|
|
8515
8576
|
className: "hawa-text-md hawa-font-normal hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
8516
8577
|
}, plan.texts.subtitle));
|
|
8517
8578
|
})), (_props_plans = props.plans) === null || _props_plans === void 0 ? void 0 : _props_plans.map(function(plan) {
|
|
8518
8579
|
return plan.features.map(function(feature, j) {
|
|
8519
|
-
return /* @__PURE__ */
|
|
8580
|
+
return /* @__PURE__ */ import_react59.default.createElement("div", {
|
|
8520
8581
|
key: j,
|
|
8521
8582
|
className: "hawa-grid hawa-grid-cols-4 hawa-gap-x-16 hawa-border-b hawa-border-gray-200 hawa-px-4 hawa-py-5 hawa-text-sm hawa-text-gray-700 dark:hawa-border-gray-700"
|
|
8522
|
-
}, /* @__PURE__ */
|
|
8583
|
+
}, /* @__PURE__ */ import_react59.default.createElement("div", {
|
|
8523
8584
|
className: " hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
8524
|
-
}, feature.text, feature.description && /* @__PURE__ */
|
|
8585
|
+
}, feature.text, feature.description && /* @__PURE__ */ import_react59.default.createElement(Tooltip, {
|
|
8525
8586
|
side: "right",
|
|
8526
8587
|
content: feature.description
|
|
8527
|
-
}, /* @__PURE__ */
|
|
8588
|
+
}, /* @__PURE__ */ import_react59.default.createElement("svg", {
|
|
8528
8589
|
stroke: "currentColor",
|
|
8529
8590
|
fill: "currentColor",
|
|
8530
8591
|
strokeWidth: "0",
|
|
8531
8592
|
viewBox: "0 0 16 16",
|
|
8532
8593
|
height: "1em",
|
|
8533
8594
|
width: "1em"
|
|
8534
|
-
}, /* @__PURE__ */
|
|
8595
|
+
}, /* @__PURE__ */ import_react59.default.createElement("path", {
|
|
8535
8596
|
d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"
|
|
8536
|
-
})))), /* @__PURE__ */
|
|
8597
|
+
})))), /* @__PURE__ */ import_react59.default.createElement(UncheckMark, null), /* @__PURE__ */ import_react59.default.createElement(CheckMark, null), /* @__PURE__ */ import_react59.default.createElement(UncheckMark, null));
|
|
8537
8598
|
});
|
|
8538
8599
|
})));
|
|
8539
8600
|
};
|
|
8540
8601
|
// components/blocks/pricing/HorizontalPricing.tsx
|
|
8541
|
-
var
|
|
8602
|
+
var import_react60 = __toESM(require("react"));
|
|
8542
8603
|
var import_clsx13 = __toESM(require("clsx"));
|
|
8543
8604
|
var HorizontalPricing = function(props) {
|
|
8544
|
-
var _ref = _sliced_to_array((0,
|
|
8605
|
+
var _ref = _sliced_to_array((0, import_react60.useState)(""), 2), selectedCard = _ref[0], setSelectedCard = _ref[1];
|
|
8545
8606
|
var data = [
|
|
8546
8607
|
{
|
|
8547
8608
|
title: "basic",
|
|
@@ -8559,96 +8620,96 @@ var HorizontalPricing = function(props) {
|
|
|
8559
8620
|
cycle: "/mo"
|
|
8560
8621
|
}
|
|
8561
8622
|
];
|
|
8562
|
-
return /* @__PURE__ */
|
|
8623
|
+
return /* @__PURE__ */ import_react60.default.createElement("div", {
|
|
8563
8624
|
className: "hawa-z-10 hawa-w-full hawa-max-w-screen-sm"
|
|
8564
|
-
}, /* @__PURE__ */
|
|
8625
|
+
}, /* @__PURE__ */ import_react60.default.createElement("div", {
|
|
8565
8626
|
className: "hawa-max-w-2xl "
|
|
8566
|
-
}, /* @__PURE__ */
|
|
8627
|
+
}, /* @__PURE__ */ import_react60.default.createElement("div", {
|
|
8567
8628
|
className: "hawa-flex hawa-flex-row hawa-justify-between"
|
|
8568
|
-
}, /* @__PURE__ */
|
|
8629
|
+
}, /* @__PURE__ */ import_react60.default.createElement(Radio, {
|
|
8569
8630
|
design: "tabs",
|
|
8570
8631
|
options: props.currencies,
|
|
8571
8632
|
defaultValue: props.currentCurrency
|
|
8572
|
-
}), /* @__PURE__ */
|
|
8633
|
+
}), /* @__PURE__ */ import_react60.default.createElement(Radio, {
|
|
8573
8634
|
design: "tabs",
|
|
8574
8635
|
options: props.billingCycles,
|
|
8575
8636
|
defaultValue: props.currentCycle
|
|
8576
8637
|
})), data.map(function(d, i) {
|
|
8577
|
-
return /* @__PURE__ */
|
|
8638
|
+
return /* @__PURE__ */ import_react60.default.createElement("label", {
|
|
8578
8639
|
key: i,
|
|
8579
8640
|
htmlFor: d.title,
|
|
8580
8641
|
className: "",
|
|
8581
8642
|
onClick: function() {
|
|
8582
8643
|
return setSelectedCard(d.title);
|
|
8583
8644
|
}
|
|
8584
|
-
}, /* @__PURE__ */
|
|
8645
|
+
}, /* @__PURE__ */ import_react60.default.createElement("input", {
|
|
8585
8646
|
type: "radio",
|
|
8586
8647
|
name: "radio",
|
|
8587
8648
|
id: d.title,
|
|
8588
8649
|
className: "hawa-peer hawa-appearance-none"
|
|
8589
|
-
}), /* @__PURE__ */
|
|
8650
|
+
}), /* @__PURE__ */ import_react60.default.createElement("div", {
|
|
8590
8651
|
className: (0, import_clsx13.default)(selectedCard === d.title ? "peer-checked:hawa-border-blue-500" : "", "hawa-peer hawa-flex hawa-cursor-pointer hawa-items-center hawa-justify-between hawa-rounded-xl hawa-border hawa-bg-background hawa-px-5 hawa-py-4 hawa-shadow dark:hawa-text-white peer-checked:[&_.active]:hawa-block peer-checked:[&_.default]:hawa-hidden")
|
|
8591
|
-
}, /* @__PURE__ */
|
|
8652
|
+
}, /* @__PURE__ */ import_react60.default.createElement("div", {
|
|
8592
8653
|
className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4"
|
|
8593
|
-
}, /* @__PURE__ */
|
|
8654
|
+
}, /* @__PURE__ */ import_react60.default.createElement(CheckIcons, null), /* @__PURE__ */ import_react60.default.createElement(CardText, {
|
|
8594
8655
|
title: "Enterprise",
|
|
8595
8656
|
subtitle: "For startups and new businesses"
|
|
8596
|
-
})), /* @__PURE__ */
|
|
8657
|
+
})), /* @__PURE__ */ import_react60.default.createElement(CardPrice, {
|
|
8597
8658
|
amount: d.price,
|
|
8598
8659
|
cycle: d.cycle
|
|
8599
8660
|
})));
|
|
8600
8661
|
})));
|
|
8601
8662
|
};
|
|
8602
8663
|
var CheckIcons = function() {
|
|
8603
|
-
return /* @__PURE__ */
|
|
8664
|
+
return /* @__PURE__ */ import_react60.default.createElement(import_react60.default.Fragment, null, /* @__PURE__ */ import_react60.default.createElement("svg", {
|
|
8604
8665
|
fill: "none",
|
|
8605
8666
|
viewBox: "0 0 24 24",
|
|
8606
8667
|
strokeWidth: "1.5",
|
|
8607
8668
|
stroke: "currentColor",
|
|
8608
8669
|
className: "hawa-default hawa-h-8 hawa-w-8 hawa-text-neutral-500"
|
|
8609
|
-
}, /* @__PURE__ */
|
|
8670
|
+
}, /* @__PURE__ */ import_react60.default.createElement("path", {
|
|
8610
8671
|
strokeLinecap: "round",
|
|
8611
8672
|
strokeLinejoin: "round",
|
|
8612
8673
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
8613
|
-
})), /* @__PURE__ */
|
|
8674
|
+
})), /* @__PURE__ */ import_react60.default.createElement("svg", {
|
|
8614
8675
|
viewBox: "0 0 24 24",
|
|
8615
8676
|
fill: "currentColor",
|
|
8616
8677
|
className: "hawa-active hawa-hidden hawa-h-8 hawa-w-8 hawa-text-blue-500"
|
|
8617
|
-
}, /* @__PURE__ */
|
|
8678
|
+
}, /* @__PURE__ */ import_react60.default.createElement("path", {
|
|
8618
8679
|
fillRule: "evenodd",
|
|
8619
8680
|
clipRule: "evenodd",
|
|
8620
8681
|
d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z"
|
|
8621
8682
|
})));
|
|
8622
8683
|
};
|
|
8623
8684
|
var CardText = function(props) {
|
|
8624
|
-
return /* @__PURE__ */
|
|
8685
|
+
return /* @__PURE__ */ import_react60.default.createElement("div", {
|
|
8625
8686
|
className: "hawa-peer hawa-flex hawa-flex-col hawa-items-start "
|
|
8626
|
-
}, /* @__PURE__ */
|
|
8687
|
+
}, /* @__PURE__ */ import_react60.default.createElement("h2", {
|
|
8627
8688
|
className: "hawa-font-medium hawa-text-neutral-700 dark:hawa-text-gray-100 sm:hawa-text-xl"
|
|
8628
|
-
}, props.title), /* @__PURE__ */
|
|
8689
|
+
}, props.title), /* @__PURE__ */ import_react60.default.createElement("p", {
|
|
8629
8690
|
className: "hawa-text-sm hawa-text-neutral-500 dark:hawa-text-gray-300"
|
|
8630
8691
|
}, props.subtitle, " "));
|
|
8631
8692
|
};
|
|
8632
8693
|
var CardPrice = function(props) {
|
|
8633
|
-
return /* @__PURE__ */
|
|
8694
|
+
return /* @__PURE__ */ import_react60.default.createElement("h2", {
|
|
8634
8695
|
className: "hawa-peer hawa-text-xl hawa-font-semibold hawa-text-neutral-900 dark:hawa-text-white sm:hawa-text-2xl"
|
|
8635
|
-
}, props.amount, /* @__PURE__ */
|
|
8696
|
+
}, props.amount, /* @__PURE__ */ import_react60.default.createElement("span", {
|
|
8636
8697
|
className: "hawa-text-base hawa-font-medium hawa-text-neutral-400"
|
|
8637
8698
|
}, props.cycle));
|
|
8638
8699
|
};
|
|
8639
8700
|
// components/blocks/Usage.tsx
|
|
8640
|
-
var
|
|
8701
|
+
var import_react61 = __toESM(require("react"));
|
|
8641
8702
|
var Usage = function(props) {
|
|
8642
8703
|
var _props_percent;
|
|
8643
|
-
return /* @__PURE__ */
|
|
8704
|
+
return /* @__PURE__ */ import_react61.default.createElement("div", {
|
|
8644
8705
|
className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-1 hawa-rounded hawa-border hawa-bg-card hawa-p-4"
|
|
8645
|
-
}, /* @__PURE__ */
|
|
8706
|
+
}, /* @__PURE__ */ import_react61.default.createElement("div", {
|
|
8646
8707
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2"
|
|
8647
|
-
}, /* @__PURE__ */
|
|
8708
|
+
}, /* @__PURE__ */ import_react61.default.createElement("span", {
|
|
8648
8709
|
className: "hawa-bg-white-200"
|
|
8649
|
-
}, props.title), props.tooltip && /* @__PURE__ */
|
|
8710
|
+
}, props.title), props.tooltip && /* @__PURE__ */ import_react61.default.createElement(Tooltip, {
|
|
8650
8711
|
content: props.tooltip
|
|
8651
|
-
}, /* @__PURE__ */
|
|
8712
|
+
}, /* @__PURE__ */ import_react61.default.createElement("svg", {
|
|
8652
8713
|
stroke: "currentColor",
|
|
8653
8714
|
"aria-label": "Exclamation Circle",
|
|
8654
8715
|
fill: "currentColor",
|
|
@@ -8656,28 +8717,28 @@ var Usage = function(props) {
|
|
|
8656
8717
|
viewBox: "0 0 16 16",
|
|
8657
8718
|
height: "1em",
|
|
8658
8719
|
width: "1em"
|
|
8659
|
-
}, /* @__PURE__ */
|
|
8720
|
+
}, /* @__PURE__ */ import_react61.default.createElement("path", {
|
|
8660
8721
|
d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"
|
|
8661
|
-
})))), /* @__PURE__ */
|
|
8722
|
+
})))), /* @__PURE__ */ import_react61.default.createElement("div", {
|
|
8662
8723
|
className: "hawa-bg-white-100 hawa-flex hawa-flex-row"
|
|
8663
|
-
}, /* @__PURE__ */
|
|
8724
|
+
}, /* @__PURE__ */ import_react61.default.createElement("div", null, props.currentUsage), /* @__PURE__ */ import_react61.default.createElement("div", null, " (", props.percent, "%)")), /* @__PURE__ */ import_react61.default.createElement(Progress, {
|
|
8664
8725
|
value: (_props_percent = props.percent) !== null && _props_percent !== void 0 ? _props_percent : 0
|
|
8665
8726
|
}));
|
|
8666
8727
|
};
|
|
8667
8728
|
// components/hooks/useDiscloser.ts
|
|
8668
|
-
var
|
|
8729
|
+
var import_react62 = require("react");
|
|
8669
8730
|
// components/hooks/useHover.ts
|
|
8670
|
-
var
|
|
8731
|
+
var import_react63 = require("react");
|
|
8671
8732
|
// components/hooks/useCarousel.ts
|
|
8672
|
-
var
|
|
8733
|
+
var import_react64 = require("react");
|
|
8673
8734
|
// components/hooks/useWindowSize.ts
|
|
8674
|
-
var
|
|
8735
|
+
var import_react65 = require("react");
|
|
8675
8736
|
var useWindowSize = function() {
|
|
8676
|
-
var _ref = _sliced_to_array((0,
|
|
8737
|
+
var _ref = _sliced_to_array((0, import_react65.useState)({
|
|
8677
8738
|
width: void 0,
|
|
8678
8739
|
height: void 0
|
|
8679
8740
|
}), 2), windowSize = _ref[0], setWindowSize = _ref[1];
|
|
8680
|
-
(0,
|
|
8741
|
+
(0, import_react65.useEffect)(function() {
|
|
8681
8742
|
var handleResize = function handleResize() {
|
|
8682
8743
|
setWindowSize({
|
|
8683
8744
|
width: window.innerWidth,
|
|
@@ -8693,7 +8754,7 @@ var useWindowSize = function() {
|
|
|
8693
8754
|
return windowSize;
|
|
8694
8755
|
};
|
|
8695
8756
|
// components/hooks/useFocusWithin.ts
|
|
8696
|
-
var
|
|
8757
|
+
var import_react66 = require("react");
|
|
8697
8758
|
function containsRelatedTarget(event) {
|
|
8698
8759
|
if (_instanceof(event.currentTarget, HTMLElement) && _instanceof(event.relatedTarget, HTMLElement)) {
|
|
8699
8760
|
return event.currentTarget.contains(event.relatedTarget);
|
|
@@ -8702,9 +8763,9 @@ function containsRelatedTarget(event) {
|
|
|
8702
8763
|
}
|
|
8703
8764
|
function useFocusWithin() {
|
|
8704
8765
|
var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, onBlur = _ref.onBlur, onFocus = _ref.onFocus;
|
|
8705
|
-
var ref = (0,
|
|
8706
|
-
var _ref1 = _sliced_to_array((0,
|
|
8707
|
-
var focusedRef = (0,
|
|
8766
|
+
var ref = (0, import_react66.useRef)(null);
|
|
8767
|
+
var _ref1 = _sliced_to_array((0, import_react66.useState)(false), 2), focused = _ref1[0], _setFocused = _ref1[1];
|
|
8768
|
+
var focusedRef = (0, import_react66.useRef)(false);
|
|
8708
8769
|
var setFocused = function(value) {
|
|
8709
8770
|
_setFocused(value);
|
|
8710
8771
|
focusedRef.current = value;
|
|
@@ -8721,7 +8782,7 @@ function useFocusWithin() {
|
|
|
8721
8782
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
8722
8783
|
}
|
|
8723
8784
|
};
|
|
8724
|
-
(0,
|
|
8785
|
+
(0, import_react66.useEffect)(function() {
|
|
8725
8786
|
if (ref.current) {
|
|
8726
8787
|
ref.current.addEventListener("focusin", handleFocusIn);
|
|
8727
8788
|
ref.current.addEventListener("focusout", handleFocusOut);
|
|
@@ -8742,7 +8803,7 @@ function useFocusWithin() {
|
|
|
8742
8803
|
};
|
|
8743
8804
|
}
|
|
8744
8805
|
// components/hooks/useMediaQuery.ts
|
|
8745
|
-
var
|
|
8806
|
+
var import_react67 = require("react");
|
|
8746
8807
|
function attachMediaListener(query, callback) {
|
|
8747
8808
|
try {
|
|
8748
8809
|
query.addEventListener("change", callback);
|
|
@@ -8769,9 +8830,9 @@ function useMediaQuery(query, initialValue) {
|
|
|
8769
8830
|
var getInitialValueInEffect = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
8770
8831
|
getInitialValueInEffect: true
|
|
8771
8832
|
}).getInitialValueInEffect;
|
|
8772
|
-
var _ref = _sliced_to_array((0,
|
|
8773
|
-
var queryRef = (0,
|
|
8774
|
-
(0,
|
|
8833
|
+
var _ref = _sliced_to_array((0, import_react67.useState)(getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)), 2), matches = _ref[0], setMatches = _ref[1];
|
|
8834
|
+
var queryRef = (0, import_react67.useRef)();
|
|
8835
|
+
(0, import_react67.useEffect)(function() {
|
|
8775
8836
|
if ("matchMedia" in window) {
|
|
8776
8837
|
queryRef.current = window.matchMedia(query);
|
|
8777
8838
|
setMatches(queryRef.current.matches);
|
|
@@ -8786,15 +8847,15 @@ function useMediaQuery(query, initialValue) {
|
|
|
8786
8847
|
return matches;
|
|
8787
8848
|
}
|
|
8788
8849
|
// components/hooks/useScrollPosition.ts
|
|
8789
|
-
var
|
|
8850
|
+
var import_react68 = require("react");
|
|
8790
8851
|
// components/hooks/useTable.ts
|
|
8791
|
-
var
|
|
8852
|
+
var import_react69 = require("react");
|
|
8792
8853
|
// components/hooks/useTabs.ts
|
|
8793
|
-
var
|
|
8854
|
+
var import_react70 = require("react");
|
|
8794
8855
|
function useTabs() {
|
|
8795
8856
|
var initialTab = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
8796
|
-
var _ref = _sliced_to_array((0,
|
|
8797
|
-
(0,
|
|
8857
|
+
var _ref = _sliced_to_array((0, import_react70.useState)(initialTab), 2), activeTab = _ref[0], setActiveTab = _ref[1];
|
|
8858
|
+
(0, import_react70.useEffect)(function() {
|
|
8798
8859
|
var handleHashChange = function() {
|
|
8799
8860
|
var hash = window.location.hash.substring(1);
|
|
8800
8861
|
setActiveTab(hash || initialTab);
|
|
@@ -8858,6 +8919,7 @@ function useTabs() {
|
|
|
8858
8919
|
Copyrights: Copyrights,
|
|
8859
8920
|
Count: Count,
|
|
8860
8921
|
DataTable: DataTable,
|
|
8922
|
+
DestroyableCard: DestroyableCard,
|
|
8861
8923
|
Dialog: Dialog,
|
|
8862
8924
|
DialogContent: DialogContent,
|
|
8863
8925
|
DialogDescription: DialogDescription,
|