akeyless-client-commons 1.0.51 → 1.0.53

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.
@@ -470,6 +470,9 @@ __export(components_exports, {
470
470
  Loader: function() {
471
471
  return Loader;
472
472
  },
473
+ LoginWithGoogleButton: function() {
474
+ return LoginWithGoogleButton;
475
+ },
473
476
  MaxRowsLabel: function() {
474
477
  return MaxRowsLabel;
475
478
  },
@@ -658,11 +661,250 @@ var ErrorBoundary = /*#__PURE__*/ function(_import_react_default_Component) {
658
661
  }(import_react.default.Component);
659
662
  // src/components/utils/loaders.tsx
660
663
  var import_react_spinners = require("react-spinners");
664
+ // src/helpers/firebase.ts
665
+ var import_moment = __toESM(require("moment"));
666
+ var import_app = require("firebase/app");
667
+ var import_storage = require("firebase/storage");
668
+ var import_auth = require("firebase/auth");
669
+ var import_app_check = require("firebase/app-check");
670
+ var import_firestore = require("firebase/firestore");
671
+ var import_react2 = require("react");
672
+ var import_meta = {};
673
+ var initApp = function() {
674
+ var isNodeEnv2 = typeof process !== "undefined" && process.env;
675
+ var firebaseConfig = {
676
+ apiKey: isNodeEnv2 ? process.env.NEXT_PUBLIC_API_KEY : import_meta.env.VITE_API_KEY,
677
+ authDomain: isNodeEnv2 ? process.env.NEXT_PUBLIC_AUTH_DOMAIN : import_meta.env.VITE_AUTH_DOMAIN,
678
+ projectId: isNodeEnv2 ? process.env.NEXT_PUBLIC_PROJECT_ID : import_meta.env.VITE_PROJECT_ID,
679
+ storageBucket: isNodeEnv2 ? process.env.NEXT_PUBLIC_STORAGE_BUCKET : import_meta.env.VITE_STORAGE_BUCKET,
680
+ messagingSenderId: isNodeEnv2 ? process.env.NEXT_PUBLIC_MESSAGING_SENDER_ID : import_meta.env.VITE_MESSAGING_SENDER_ID,
681
+ appId: isNodeEnv2 ? process.env.NEXT_PUBLIC_APP_ID : import_meta.env.VITE_APP_ID
682
+ };
683
+ try {
684
+ var app2 = (0, import_app.initializeApp)(firebaseConfig);
685
+ var auth2 = (0, import_auth.getAuth)(app2);
686
+ auth2.settings.appVerificationDisabledForTesting = false;
687
+ var db2 = (0, import_firestore.getFirestore)(app2);
688
+ var storage2 = (0, import_storage.getStorage)(app2);
689
+ var googleLoginProvider2 = new import_auth.GoogleAuthProvider();
690
+ var recaptchaSiteKey = isNodeEnv2 ? process.env.NEXT_PUBLIC_RECAPTCHA_SITE_KEY : import_meta.env.VITE_RECAPTCHA_SITE_KEY;
691
+ var result = {
692
+ db: db2,
693
+ auth: auth2,
694
+ storage: storage2,
695
+ app: app2,
696
+ googleLoginProvider: googleLoginProvider2
697
+ };
698
+ if (recaptchaSiteKey) {
699
+ result.appCheck = (0, import_app_check.initializeAppCheck)(app2, {
700
+ provider: new import_app_check.ReCaptchaEnterpriseProvider(recaptchaSiteKey),
701
+ isTokenAutoRefreshEnabled: true
702
+ });
703
+ }
704
+ return result;
705
+ } catch (error) {
706
+ console.error("Failed to initialize Firebase app:", error);
707
+ return {};
708
+ }
709
+ };
710
+ var _initApp = initApp(), db = _initApp.db, auth = _initApp.auth, storage = _initApp.storage, app = _initApp.app, appCheck = _initApp.appCheck, googleLoginProvider = _initApp.googleLoginProvider;
711
+ var useLoginWithGoogle = function() {
712
+ var signInWithGoogle = (0, import_react2.useCallback)(/*#__PURE__*/ _async_to_generator(function() {
713
+ var result, user;
714
+ return _ts_generator(this, function(_state) {
715
+ switch(_state.label){
716
+ case 0:
717
+ return [
718
+ 4,
719
+ (0, import_auth.signInWithPopup)(auth, googleLoginProvider)
720
+ ];
721
+ case 1:
722
+ result = _state.sent();
723
+ user = result.user;
724
+ return [
725
+ 2,
726
+ user
727
+ ];
728
+ }
729
+ });
730
+ }), [
731
+ auth,
732
+ googleLoginProvider
733
+ ]);
734
+ return signInWithGoogle;
735
+ };
736
+ var collections = {
737
+ clients: (0, import_firestore.collection)(db, "nx-clients"),
738
+ sites: (0, import_firestore.collection)(db, "nx-sites"),
739
+ cars: (0, import_firestore.collection)(db, "units"),
740
+ users: (0, import_firestore.collection)(db, "nx-users"),
741
+ lastLocations: (0, import_firestore.collection)(db, "last_locations"),
742
+ ermEvents: (0, import_firestore.collection)(db, "erm_events_general"),
743
+ erm2Events: (0, import_firestore.collection)(db, "erm2_events_general"),
744
+ ruptelaEvents: (0, import_firestore.collection)(db, "ruptela_events_general"),
745
+ polygons: (0, import_firestore.collection)(db, "nx-polygons"),
746
+ polygonEvents: (0, import_firestore.collection)(db, "polygon_events"),
747
+ polygonCars: (0, import_firestore.collection)(db, "polygon_cars"),
748
+ canbus: (0, import_firestore.collection)(db, "erm_canbus_parameters"),
749
+ states: (0, import_firestore.collection)(db, "erm_states"),
750
+ app_pro_commands_queue: (0, import_firestore.collection)(db, "app_pro_commands_queue"),
751
+ trips: (0, import_firestore.collection)(db, "erm2_trip"),
752
+ tripsDetails: (0, import_firestore.collection)(db, "erm2_trip_details"),
753
+ audit: (0, import_firestore.collection)(db, "nx-audit"),
754
+ nx_settings: (0, import_firestore.collection)(db, "nx-settings"),
755
+ settings: (0, import_firestore.collection)(db, "settings"),
756
+ translations: (0, import_firestore.collection)(db, "nx-translations"),
757
+ nx_cars: (0, import_firestore.collection)(db, "nx-cars"),
758
+ boards: (0, import_firestore.collection)(db, "boards"),
759
+ protection_types: (0, import_firestore.collection)(db, "protectionTypes"),
760
+ board_types: (0, import_firestore.collection)(db, "boardTypes"),
761
+ charge_capacities: (0, import_firestore.collection)(db, "nx-charge-capacities")
762
+ };
763
+ var fire_base_TIME_TEMP = import_firestore.Timestamp.now;
764
+ // src/helpers/global.ts
765
+ var import_akeyless_types_commons = require("akeyless-types-commons");
766
+ var import_axios = __toESM(require("axios"));
767
+ // src/helpers/phoneNumber.ts
768
+ var import_libphonenumber_js = require("libphonenumber-js");
769
+ // src/helpers/global.ts
770
+ var import_lodash = require("lodash");
771
+ var import_meta2 = {};
772
+ var renderOnce = function() {
773
+ return true;
774
+ };
775
+ var getLocationUrl = function(lng, lat) {
776
+ return "https://www.google.com/maps?q=".concat(lat, ",").concat(lng);
777
+ };
778
+ var isNodeEnv = typeof process !== "undefined" && process.env;
779
+ var _ref = {
780
+ mode: isNodeEnv ? process.env.NEXT_PUBLIC_MODE : import_meta2.env.VITE_MODE,
781
+ isLocal: (isNodeEnv ? process.env.NEXT_PUBLIC_IS_LOCAL : import_meta2.env.VITE_is_local) === "true"
782
+ }, mode = _ref.mode, isLocal = _ref.isLocal;
783
+ // src/helpers/forms.ts
784
+ var import_xregexp = __toESM(require("xregexp"));
785
+ var textRegex = (0, import_xregexp.default)("[^\\p{L}\\s-]", "gu");
786
+ var numbersRegex = (0, import_xregexp.default)("[^0-9\\s-+]", "g");
787
+ var numbersOnlyRegex = (0, import_xregexp.default)("[^0-9]", "g");
788
+ var priceRegex = (0, import_xregexp.default)("[^0-9.]", "g");
789
+ var emailRegex = (0, import_xregexp.default)("[^\\p{L}0-9.@\\s-]", "gu");
790
+ var colorRegex = (0, import_xregexp.default)("[^#0-9A-Fa-f]", "g");
791
+ var carsRegex = (0, import_xregexp.default)("[^\\p{L}0-9,_]", "gu");
792
+ var textNumbersRegex = (0, import_xregexp.default)("[^\\p{L}0-9\\s+\\-]", "gu");
793
+ var addressRegex = (0, import_xregexp.default)("[^\\p{L}0-9\\s.,+-\\-]", "gu");
794
+ var chartsRegex = (0, import_xregexp.default)("[^\\p{L}0-9\\s.,_@!+-\\-]", "gu");
795
+ var handleChange = function(e) {
796
+ e.target.setCustomValidity("");
797
+ var validation = e.target.getAttribute("data-validation");
798
+ if (validation === "text") {
799
+ e.target.value = import_xregexp.default.replace(e.target.value, textRegex, "");
800
+ } else if (validation === "numbers") {
801
+ e.target.value = import_xregexp.default.replace(e.target.value, numbersRegex, "");
802
+ } else if (validation === "numbersOnly") {
803
+ e.target.value = import_xregexp.default.replace(e.target.value, numbersOnlyRegex, "");
804
+ } else if (validation === "price") {
805
+ e.target.value = import_xregexp.default.replace(e.target.value, priceRegex, "");
806
+ } else if (validation === "textNumbers") {
807
+ e.target.value = import_xregexp.default.replace(e.target.value, textNumbersRegex, "");
808
+ } else if (validation === "email") {
809
+ e.target.value = import_xregexp.default.replace(e.target.value, emailRegex, "");
810
+ } else if (validation === "color") {
811
+ e.target.value = import_xregexp.default.replace(e.target.value, colorRegex, "");
812
+ } else if (validation === "address") {
813
+ e.target.value = import_xregexp.default.replace(e.target.value, addressRegex, "");
814
+ } else if (validation === "cars") {
815
+ e.target.value = import_xregexp.default.replace(e.target.value, carsRegex, "");
816
+ } else if (validation === "charts") {
817
+ e.target.value = import_xregexp.default.replace(e.target.value, chartsRegex, "");
818
+ }
819
+ };
820
+ var handlePaste = function(e) {
821
+ var validation = e.currentTarget.getAttribute("data-validation");
822
+ var pasteData = e.clipboardData.getData("text");
823
+ if (validation === "text") {
824
+ pasteData = import_xregexp.default.replace(pasteData, textRegex, "");
825
+ } else if (validation === "numbers") {
826
+ pasteData = import_xregexp.default.replace(pasteData, numbersRegex, "");
827
+ } else if (validation === "numbersOnly") {
828
+ pasteData = import_xregexp.default.replace(pasteData, numbersOnlyRegex, "");
829
+ } else if (validation === "price") {
830
+ pasteData = import_xregexp.default.replace(pasteData, priceRegex, "");
831
+ } else if (validation === "textNumbers") {
832
+ pasteData = import_xregexp.default.replace(pasteData, textNumbersRegex, "");
833
+ } else if (validation === "email") {
834
+ pasteData = import_xregexp.default.replace(pasteData, emailRegex, "");
835
+ } else if (validation === "color") {
836
+ pasteData = import_xregexp.default.replace(pasteData, colorRegex, "");
837
+ } else if (validation === "address") {
838
+ pasteData = import_xregexp.default.replace(pasteData, addressRegex, "");
839
+ } else if (validation === "cars") {
840
+ pasteData = import_xregexp.default.replace(pasteData, carsRegex, "");
841
+ } else if (validation === "charts") {
842
+ pasteData = import_xregexp.default.replace(pasteData, chartsRegex, "");
843
+ }
844
+ e.preventDefault();
845
+ document.execCommand("insertText", false, pasteData);
846
+ };
847
+ var handleInvalid = function(e, requireError) {
848
+ e.target.setCustomValidity(requireError || "This filed is required !");
849
+ };
850
+ var useValidation = function(validationType, requireError) {
851
+ return {
852
+ onChange: handleChange,
853
+ onPaste: handlePaste,
854
+ onInvalid: function(e) {
855
+ return handleInvalid(e, requireError);
856
+ },
857
+ "data-validation": validationType
858
+ };
859
+ };
860
+ var getFormElementValue = function(form, name) {
861
+ var _form_elements_namedItem;
862
+ return ((_form_elements_namedItem = form.elements.namedItem(name)) === null || _form_elements_namedItem === void 0 ? void 0 : _form_elements_namedItem.value) || "";
863
+ };
864
+ // src/lib/utils.ts
865
+ var import_clsx = require("clsx");
866
+ var import_tailwind_merge = require("tailwind-merge");
867
+ function cn() {
868
+ for(var _len = arguments.length, inputs = new Array(_len), _key = 0; _key < _len; _key++){
869
+ inputs[_key] = arguments[_key];
870
+ }
871
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
872
+ }
873
+ // src/helpers/time_helpers.ts
874
+ var import_firestore2 = require("firebase/firestore");
875
+ var import_moment_timezone = __toESM(require("moment-timezone"));
876
+ function timestamp_to_string(firebaseTimestamp, options) {
877
+ var date;
878
+ if (_instanceof(firebaseTimestamp, import_firestore2.Timestamp)) {
879
+ date = firebaseTimestamp.toDate();
880
+ } else if (_instanceof(firebaseTimestamp, Date)) {
881
+ date = firebaseTimestamp;
882
+ } else if (typeof firebaseTimestamp === "string") {
883
+ date = import_moment_timezone.default.utc(firebaseTimestamp, (options === null || options === void 0 ? void 0 : options.fromFormat) || "DD/MM/YYYY HH:mm:ss").toDate();
884
+ if (isNaN(date.getTime())) {
885
+ throw new Error("Invalid date string format");
886
+ }
887
+ } else {
888
+ throw new Error("Invalid input: firebaseTimestamp must be a Timestamp, Date, or valid date string.");
889
+ }
890
+ if (options === null || options === void 0 ? void 0 : options.tz) {
891
+ var result = (0, import_moment_timezone.default)(date).tz(options === null || options === void 0 ? void 0 : options.tz).format((options === null || options === void 0 ? void 0 : options.format) || "DD/MM/YYYY HH:mm:ss");
892
+ return result;
893
+ }
894
+ return import_moment_timezone.default.utc(date).format((options === null || options === void 0 ? void 0 : options.format) || "DD/MM/YYYY HH:mm:ss");
895
+ }
896
+ // src/helpers/api.ts
897
+ var import_axios2 = __toESM(require("axios"));
898
+ var baseDomain = mode === "qa" ? "https://nx-api.xyz/api" : "https://nx-api.info/api";
899
+ var devicesDomain = isLocal ? "http://localhost:9001/api/devices" : baseDomain + "/devices";
900
+ var biDomain = isLocal ? "http://localhost:9002/api/bi" : baseDomain + "/bi";
901
+ var callCenterDomain = isLocal ? "http://localhost:9003/api/call-center" : baseDomain + "/call-center";
902
+ // src/components/utils/loaders.tsx
661
903
  var import_jsx_runtime3 = require("react/jsx-runtime");
662
904
  var Loader = function(param) {
663
905
  var color = param.color, size3 = param.size, _param_style = param.style, style = _param_style === void 0 ? {} : _param_style, _param_className = param.className, className = _param_className === void 0 ? "" : _param_className;
664
906
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", {
665
- className: "flex items-center justify-center ".concat(className),
907
+ className: cn("flex items-center justify-center", className),
666
908
  style: style,
667
909
  children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_spinners.ClipLoader, {
668
910
  loading: true,
@@ -671,15 +913,6 @@ var Loader = function(param) {
671
913
  })
672
914
  });
673
915
  };
674
- // src/lib/utils.ts
675
- var import_clsx = require("clsx");
676
- var import_tailwind_merge = require("tailwind-merge");
677
- function cn() {
678
- for(var _len = arguments.length, inputs = new Array(_len), _key = 0; _key < _len; _key++){
679
- inputs[_key] = arguments[_key];
680
- }
681
- return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
682
- }
683
916
  // src/components/utils/global.tsx
684
917
  var import_jsx_runtime4 = require("react/jsx-runtime");
685
918
  var Version = function(param) {
@@ -692,26 +925,131 @@ var Version = function(param) {
692
925
  ]
693
926
  });
694
927
  };
928
+ // src/components/utils/LoginWithGoogle.tsx
929
+ var import_react3 = require("react");
930
+ var import_jsx_runtime5 = require("react/jsx-runtime");
931
+ var GoogleSvg = function(param) {
932
+ var _param_width = param.width, width = _param_width === void 0 ? "20px" : _param_width, _param_height = param.height, height = _param_height === void 0 ? "20px" : _param_height, _param_viewBox = param.viewBox, viewBox = _param_viewBox === void 0 ? "0 0 256 266" : _param_viewBox;
933
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("svg", {
934
+ xmlns: "http://www.w3.org/2000/svg",
935
+ width: width,
936
+ height: height,
937
+ viewBox: viewBox,
938
+ preserveAspectRatio: "xMidYMid",
939
+ children: [
940
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", {
941
+ d: "M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027",
942
+ fill: "#4285F4"
943
+ }),
944
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", {
945
+ d: "M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1",
946
+ fill: "#34A853"
947
+ }),
948
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", {
949
+ d: "M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782",
950
+ fill: "#FBBC05"
951
+ }),
952
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", {
953
+ d: "M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251",
954
+ fill: "#EB4335"
955
+ })
956
+ ]
957
+ });
958
+ };
959
+ var LoginWithGoogleButton = function(param) {
960
+ var label = param.label, className = param.className, containerClassName = param.containerClassName, onClick = param.onClick, onError = param.onError, _param_loaderProps = param.loaderProps, loaderProps = _param_loaderProps === void 0 ? {
961
+ color: "#000"
962
+ } : _param_loaderProps, googleSvgProps = param.googleSvgProps;
963
+ var signInWithGoogle = useLoginWithGoogle();
964
+ var _ref = _sliced_to_array((0, import_react3.useState)(false), 2), isLoading = _ref[0], setIsLoading = _ref[1];
965
+ var onLoginClick = /*#__PURE__*/ function() {
966
+ var _ref = _async_to_generator(function(e) {
967
+ var user, error;
968
+ return _ts_generator(this, function(_state) {
969
+ switch(_state.label){
970
+ case 0:
971
+ _state.trys.push([
972
+ 0,
973
+ 3,
974
+ 4,
975
+ 5
976
+ ]);
977
+ setIsLoading(true);
978
+ return [
979
+ 4,
980
+ signInWithGoogle()
981
+ ];
982
+ case 1:
983
+ user = _state.sent();
984
+ return [
985
+ 4,
986
+ onClick(e, user)
987
+ ];
988
+ case 2:
989
+ _state.sent();
990
+ return [
991
+ 3,
992
+ 5
993
+ ];
994
+ case 3:
995
+ error = _state.sent();
996
+ console.error("error from login with google:", error);
997
+ onError === null || onError === void 0 ? void 0 : onError(error);
998
+ return [
999
+ 3,
1000
+ 5
1001
+ ];
1002
+ case 4:
1003
+ setIsLoading(false);
1004
+ return [
1005
+ 7
1006
+ ];
1007
+ case 5:
1008
+ return [
1009
+ 2
1010
+ ];
1011
+ }
1012
+ });
1013
+ });
1014
+ return function onLoginClick(e) {
1015
+ return _ref.apply(this, arguments);
1016
+ };
1017
+ }();
1018
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", {
1019
+ className: cn("flex justify-center", containerClassName),
1020
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("button", {
1021
+ className: cn("center gap-2 py-2 w-11/12 max-w-80 ", "shadow-sm hover:border-[#303edb] border-[1px] rounded-lg text-lg", className),
1022
+ onClick: function(e) {
1023
+ return onLoginClick(e);
1024
+ },
1025
+ disabled: isLoading,
1026
+ children: [
1027
+ label,
1028
+ isLoading ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Loader, _object_spread({}, loaderProps)) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(GoogleSvg, _object_spread({}, googleSvgProps))
1029
+ ]
1030
+ })
1031
+ });
1032
+ };
695
1033
  // src/components/table/components.tsx
696
1034
  var import_exceljs = __toESM(require("exceljs"));
697
1035
  var import_file_saver = require("file-saver");
698
- var import_react9 = require("react");
1036
+ var import_react10 = require("react");
699
1037
  // src/assets/svg.tsx
700
- var import_jsx_runtime5 = require("react/jsx-runtime");
1038
+ var import_jsx_runtime6 = require("react/jsx-runtime");
701
1039
  var RedXSvg = function(param) {
702
1040
  var height = param.height, width = param.width, viewBox = param.viewBox;
703
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("svg", {
1041
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("svg", {
704
1042
  xmlns: "http://www.w3.org/2000/svg",
705
1043
  width: width || "32",
706
1044
  height: height || "32",
707
1045
  viewBox: viewBox || "0 0 32 32",
708
1046
  fill: "none",
709
1047
  children: [
710
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", {
1048
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", {
711
1049
  d: "M21.0801 10.3C20.6101 9.80996 19.8301 9.79996 19.3401 10.27L15.6101 13.89L11.8801 10.27C11.3901 9.79996 10.6101 9.80996 10.1401 10.3C9.67008 10.79 9.68008 11.57 10.1701 12.04L13.8501 15.61L10.1701 19.18C9.68008 19.65 9.67008 20.43 10.1401 20.92C10.6101 21.41 11.3901 21.42 11.8801 20.95L15.6101 17.33L19.3401 20.95C19.5701 21.17 19.8801 21.3 20.2001 21.3C20.8801 21.29 21.4301 20.73 21.4201 20.04C21.4201 19.72 21.2901 19.41 21.0601 19.19L17.3801 15.62L21.0601 12.05C21.5501 11.58 21.5601 10.8 21.0901 10.31L21.0801 10.3Z",
712
1050
  fill: "#FF4C2B"
713
1051
  }),
714
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", {
1052
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", {
715
1053
  d: "M15.61 0C6.99 0 0 6.99 0 15.61C0.86 36.32 30.36 36.31 31.22 15.61C31.21 6.99 24.23 0 15.61 0ZM15.61 28.76C8.35 28.76 2.47 22.87 2.46 15.61C3.18 -1.84 28.04 -1.83 28.76 15.61C28.76 22.87 22.87 28.75 15.61 28.76Z",
716
1054
  fill: "#FF4C2B"
717
1055
  })
@@ -720,20 +1058,20 @@ var RedXSvg = function(param) {
720
1058
  };
721
1059
  var RedXSvg2 = function(param) {
722
1060
  var height = param.height, width = param.width, viewBox = param.viewBox;
723
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("svg", {
1061
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("svg", {
724
1062
  xmlns: "http://www.w3.org/2000/svg",
725
1063
  width: width || "18px",
726
1064
  height: height || "18px",
727
1065
  viewBox: viewBox || "0,0,256,256",
728
1066
  fillRule: "nonzero",
729
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("g", {
1067
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("g", {
730
1068
  fill: "#e90404",
731
1069
  fillRule: "nonzero",
732
1070
  stroke: "none",
733
1071
  strokeWidth: "1",
734
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("g", {
1072
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("g", {
735
1073
  transform: "scale(10.66667,10.66667)",
736
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", {
1074
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", {
737
1075
  d: "M4.99023,3.99023c-0.40692,0.00011 -0.77321,0.24676 -0.92633,0.62377c-0.15312,0.37701 -0.06255,0.80921 0.22907,1.09303l6.29297,6.29297l-6.29297,6.29297c-0.26124,0.25082 -0.36647,0.62327 -0.27511,0.97371c0.09136,0.35044 0.36503,0.62411 0.71547,0.71547c0.35044,0.09136 0.72289,-0.01388 0.97371,-0.27511l6.29297,-6.29297l6.29297,6.29297c0.25082,0.26124 0.62327,0.36648 0.97371,0.27512c0.35044,-0.09136 0.62411,-0.36503 0.71547,-0.71547c0.09136,-0.35044 -0.01388,-0.72289 -0.27512,-0.97371l-6.29297,-6.29297l6.29297,-6.29297c0.29576,-0.28749 0.38469,-0.72707 0.22393,-1.10691c-0.16075,-0.37985 -0.53821,-0.62204 -0.9505,-0.60988c-0.2598,0.00774 -0.50638,0.11632 -0.6875,0.30273l-6.29297,6.29297l-6.29297,-6.29297c-0.18827,-0.19353 -0.4468,-0.30272 -0.7168,-0.30273z"
738
1076
  })
739
1077
  })
@@ -742,18 +1080,18 @@ var RedXSvg2 = function(param) {
742
1080
  };
743
1081
  var GreenVSvg = function(param) {
744
1082
  var height = param.height, width = param.width, viewBox = param.viewBox;
745
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("svg", {
1083
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("svg", {
746
1084
  xmlns: "http://www.w3.org/2000/svg",
747
1085
  width: width || "32",
748
1086
  height: height || "32",
749
1087
  viewBox: viewBox || "0 0 32 32",
750
1088
  fill: "none",
751
1089
  children: [
752
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", {
1090
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", {
753
1091
  d: "M15.61 0C6.99 0 0.01 6.99 0 15.61C0.86 36.32 30.36 36.31 31.22 15.61C31.21 6.99 24.23 0 15.61 0ZM15.61 28.76C8.35 28.76 2.47 22.87 2.46 15.61C3.18 -1.84 28.04 -1.83 28.76 15.61C28.76 22.87 22.87 28.75 15.61 28.76Z",
754
1092
  fill: "#3B8F08"
755
1093
  }),
756
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", {
1094
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", {
757
1095
  d: "M21.66 10.15L13.37 18.44L9.58003 14.54C9.10003 14.06 8.32003 14.07 7.84003 14.54C7.38003 15.01 7.36003 15.76 7.82003 16.24L12.48 21.03C12.96 21.52 13.74 21.52 14.23 21.05L23.41 11.87C23.88 11.38 23.87 10.6 23.38 10.13C22.9 9.67003 22.15 9.67003 21.68 10.13L21.66 10.15Z",
758
1096
  fill: "#3B8F08"
759
1097
  })
@@ -761,9 +1099,9 @@ var GreenVSvg = function(param) {
761
1099
  });
762
1100
  };
763
1101
  // src/assets/table.tsx
764
- var import_jsx_runtime6 = require("react/jsx-runtime");
1102
+ var import_jsx_runtime7 = require("react/jsx-runtime");
765
1103
  var sortSvg = function(upside_down) {
766
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("svg", {
1104
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("svg", {
767
1105
  style: upside_down ? {
768
1106
  transform: "rotate(180deg)"
769
1107
  } : {},
@@ -776,13 +1114,13 @@ var sortSvg = function(upside_down) {
776
1114
  preserveAspectRatio: "xMidYMid meet",
777
1115
  children: [
778
1116
  " ",
779
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("g", {
1117
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("g", {
780
1118
  transform: "translate(0.000000,1536.000000) scale(0.100000,-0.100000)",
781
1119
  fill: "#fff",
782
1120
  stroke: "none",
783
1121
  children: [
784
1122
  " ",
785
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", {
1123
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", {
786
1124
  d: "M6465 15350 c3 -5 -27 -25 -68 -44 -40 -19 -103 -57 -140 -86 -37 -28 -584 -569 -1215 -1203 -631 -633 -1699 -1705 -2374 -2382 -674 -676 -1237 -1243 -1249 -1260 -13 -16 -37 -46 -53 -65 -36 -41 -108 -185 -126 -250 -32 -119 -30 -352 3 -465 35 -120 102 -231 197 -325 132 -133 288 -208 479 -231 214 -26 418 31 596 166 39 29 703 685 1477 1458 774 772 1432 1421 1461 1441 105 73 239 71 347 -3 52 -36 70 -57 107 -131 17 -33 18 -252 24 -4710 6 -4979 3 -4715 49 -4855 118 -363 507 -605 876 -545 77 13 201 53 245 79 19 12 45 26 59 31 41 18 157 119 206 179 43 53 113 173 127 217 3 11 16 51 29 89 l22 70 6 4690 c5 4887 4 4736 43 4784 6 7 16 23 22 34 20 42 116 103 188 120 42 10 75 13 85 8 10 -5 34 -11 55 -15 20 -4 59 -21 85 -38 26 -17 686 -671 1467 -1453 781 -782 1443 -1439 1470 -1459 68 -49 178 -106 245 -128 30 -10 100 -24 155 -32 87 -12 114 -12 200 1 128 18 187 39 360 131 37 19 178 162 211 212 36 56 94 176 94 194 0 7 7 31 16 52 23 55 23 352 0 406 -9 21 -16 46 -16 56 0 30 -83 185 -130 242 -80 98 -4793 4810 -4865 4865 -66 50 -182 111 -250 132 -16 5 -29 15 -27 21 1 9 -62 12 -249 12 -157 0 -248 -4 -244 -10z"
787
1125
  }),
788
1126
  " "
@@ -793,8 +1131,8 @@ var sortSvg = function(upside_down) {
793
1131
  });
794
1132
  };
795
1133
  var emptyFilterSvg = function(solid) {
796
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, {
797
- children: solid ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("svg", {
1134
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, {
1135
+ children: solid ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("svg", {
798
1136
  version: "1.0",
799
1137
  xmlns: "http://www.w3.org/2000/svg",
800
1138
  width: "13",
@@ -803,13 +1141,13 @@ var emptyFilterSvg = function(solid) {
803
1141
  preserveAspectRatio: "xMidYMid meet",
804
1142
  children: [
805
1143
  " ",
806
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("g", {
1144
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("g", {
807
1145
  transform: "translate(0.000000,900.000000) scale(0.100000,-0.100000)",
808
1146
  fill: "#fff",
809
1147
  stroke: "none",
810
1148
  children: [
811
1149
  " ",
812
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", {
1150
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", {
813
1151
  d: "M382 8980 c-7 -11 -19 -20 -27 -20 -46 0 -166 -99 -196 -162 -46 -95 -51 -115 -47 -199 3 -70 9 -95 37 -149 42 -85 45 -90 118 -190 34 -47 72 -98 83 -115 12 -16 50 -70 85 -120 143 -200 188 -263 235 -330 27 -38 56 -79 64 -90 8 -11 46 -65 85 -120 38 -55 96 -136 128 -179 32 -44 60 -84 62 -90 2 -6 32 -48 65 -93 34 -45 99 -137 146 -203 47 -66 113 -159 148 -205 34 -46 62 -87 62 -90 0 -4 20 -33 45 -65 25 -32 45 -61 45 -64 0 -3 33 -50 73 -105 39 -54 106 -146 147 -205 41 -58 103 -144 138 -191 34 -46 62 -87 62 -90 0 -3 22 -36 50 -73 27 -37 61 -83 75 -102 14 -19 59 -82 100 -140 41 -58 95 -133 120 -167 25 -34 45 -66 45 -70 0 -4 13 -22 28 -40 15 -17 47 -61 72 -97 25 -37 74 -107 110 -156 36 -50 99 -138 140 -196 41 -58 108 -150 148 -205 39 -54 72 -102 72 -105 0 -3 20 -32 45 -64 25 -32 45 -62 45 -67 0 -5 14 -22 30 -38 17 -16 30 -33 30 -38 0 -5 19 -34 43 -65 90 -122 154 -259 178 -387 11 -56 14 -423 19 -1850 l5 -1780 29 -58 c36 -71 112 -148 168 -171 24 -10 51 -22 60 -27 24 -12 205 -11 213 1 3 6 15 10 25 10 11 0 34 6 52 14 18 8 52 21 76 30 64 24 118 44 165 62 23 8 55 22 70 30 16 8 36 14 46 14 9 0 26 7 37 15 10 8 27 15 37 15 11 0 31 6 45 14 15 8 47 22 72 31 25 9 60 23 78 31 18 8 39 14 47 14 7 0 26 6 42 14 15 8 48 22 73 31 25 10 57 23 72 31 14 8 35 14 45 14 11 0 28 7 39 15 10 8 26 15 35 15 14 0 62 19 197 76 18 8 40 14 48 14 9 0 28 6 42 14 28 15 36 18 235 92 23 9 56 22 72 29 17 7 50 21 75 31 84 34 127 77 181 182 9 18 20 56 24 85 4 28 10 714 14 1522 6 1402 7 1472 25 1520 41 109 110 235 188 344 46 62 88 121 93 130 6 9 30 45 55 80 72 101 159 222 250 351 47 67 113 159 148 205 34 46 62 87 62 90 0 4 27 42 60 85 33 43 60 81 60 84 0 3 22 36 50 73 27 37 60 83 72 101 13 18 30 41 38 52 8 10 35 49 60 85 25 37 73 104 108 150 34 46 62 87 62 90 0 3 33 50 73 103 40 53 81 111 91 127 11 17 45 65 78 107 32 43 58 80 58 83 0 4 20 33 45 65 25 32 45 63 45 70 0 6 7 13 15 16 8 4 15 10 15 16 0 5 26 44 58 86 32 42 70 95 85 117 64 95 144 206 208 292 38 51 69 95 69 99 0 3 13 23 29 43 26 33 92 126 193 271 21 30 48 68 60 85 85 112 108 144 108 150 0 3 27 42 60 85 33 43 60 81 60 85 0 3 28 44 63 90 34 47 82 114 107 151 25 36 50 71 56 77 5 7 32 44 58 82 27 39 62 86 77 106 16 20 29 42 29 48 0 6 4 11 8 11 5 0 25 32 45 71 36 68 37 75 37 175 0 118 -13 163 -69 234 -37 48 -127 112 -173 124 -16 3 -28 13 -28 21 0 13 -486 15 -4103 15 -4091 0 -4102 0 -4115 -20z"
814
1152
  }),
815
1153
  " "
@@ -817,7 +1155,7 @@ var emptyFilterSvg = function(solid) {
817
1155
  }),
818
1156
  " "
819
1157
  ]
820
- }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("svg", {
1158
+ }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("svg", {
821
1159
  version: "1.0",
822
1160
  xmlns: "http://www.w3.org/2000/svg",
823
1161
  width: "13",
@@ -826,13 +1164,13 @@ var emptyFilterSvg = function(solid) {
826
1164
  preserveAspectRatio: "xMidYMid meet",
827
1165
  children: [
828
1166
  " ",
829
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("g", {
1167
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("g", {
830
1168
  transform: "translate(0.000000,300.000000) scale(0.050000,-0.050000)",
831
1169
  fill: "#fff",
832
1170
  stroke: "none",
833
1171
  children: [
834
1172
  " ",
835
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", {
1173
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", {
836
1174
  d: "M58 5702 c-100 -101 -84 -148 136 -416 107 -130 242 -294 301 -366 58 -71 173 -211 254 -310 81 -99 441 -535 799 -969 l652 -789 0 -1201 c0 -1396 2 -1411 182 -1411 60 0 1302 604 1360 662 36 36 38 79 38 935 0 494 5 925 12 959 8 41 370 495 1110 1393 1202 1459 1158 1394 1040 1513 l-59 58 -2883 0 -2883 0 -59 -58z m5349 -327 c-16 -26 -150 -190 -683 -835 -169 -203 -381 -460 -472 -570 -90 -110 -290 -352 -443 -537 -154 -186 -301 -369 -329 -408 l-50 -70 -6 -913 -5 -913 -410 -205 c-225 -112 -413 -204 -418 -204 -6 0 -12 503 -15 1117 l-6 1118 -50 70 c-27 39 -175 222 -329 408 -153 185 -353 427 -443 537 -91 110 -303 367 -472 570 -533 645 -667 809 -683 835 -12 20 474 25 2407 25 1933 0 2419 -5 2407 -25z"
837
1175
  }),
838
1176
  " "
@@ -844,10 +1182,10 @@ var emptyFilterSvg = function(solid) {
844
1182
  });
845
1183
  };
846
1184
  var slashFilterSvg = function(solid) {
847
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, {
848
- children: solid ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", {
1185
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, {
1186
+ children: solid ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", {
849
1187
  className: "mt-[-4px] mr-[-2px] ",
850
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("svg", {
1188
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("svg", {
851
1189
  version: "1.0",
852
1190
  xmlns: "http://www.w3.org/2000/svg",
853
1191
  width: "18",
@@ -856,17 +1194,17 @@ var slashFilterSvg = function(solid) {
856
1194
  preserveAspectRatio: "xMidYMid meet",
857
1195
  children: [
858
1196
  " ",
859
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("g", {
1197
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("g", {
860
1198
  transform: "translate(0.000000,900.000000) scale(0.100000,-0.100000)",
861
1199
  fill: "#fff",
862
1200
  stroke: "none",
863
1201
  children: [
864
1202
  " ",
865
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", {
1203
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", {
866
1204
  d: "M1000 8221 c-71 -27 -103 -47 -149 -92 -122 -123 -144 -294 -58 -456 22 -42 6838 -6858 6880 -6880 162 -86 333 -64 456 58 123 123 144 294 57 458 -10 19 -508 525 -1107 1124 l-1089 1089 1 256 1 257 676 1350 677 1350 115 6 c125 6 173 20 244 68 54 37 89 78 124 145 24 46 27 61 27 161 0 100 -3 115 -28 162 -52 100 -119 157 -225 194 -54 18 -131 19 -2817 19 l-2762 0 -341 340 c-188 186 -356 347 -374 357 -103 55 -220 68 -308 34z"
867
1205
  }),
868
1206
  " ",
869
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", {
1207
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", {
870
1208
  d: "M2340 5338 c0 -7 146 -305 325 -662 l325 -649 0 -1112 c0 -1043 1 -1114 18 -1160 27 -76 47 -107 94 -154 48 -47 80 -67 153 -93 46 -17 120 -18 1231 -18 1085 0 1186 1 1235 17 30 9 66 24 81 33 68 40 158 146 158 186 0 14 -3600 3624 -3614 3624 -3 0 -6 -6 -6 -12z"
871
1209
  }),
872
1210
  " "
@@ -875,9 +1213,9 @@ var slashFilterSvg = function(solid) {
875
1213
  " "
876
1214
  ]
877
1215
  })
878
- }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", {
1216
+ }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", {
879
1217
  className: "mt-[-4px] mr-[-2px] ",
880
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("svg", {
1218
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("svg", {
881
1219
  version: "1.0",
882
1220
  xmlns: "http://www.w3.org/2000/svg",
883
1221
  width: "18",
@@ -886,153 +1224,71 @@ var slashFilterSvg = function(solid) {
886
1224
  preserveAspectRatio: "xMidYMid meet",
887
1225
  children: [
888
1226
  " ",
889
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("g", {
1227
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("g", {
890
1228
  transform: "translate(0.000000,900.000000) scale(0.100000,-0.100000)",
891
1229
  fill: "#fff",
892
1230
  stroke: "none",
893
1231
  children: [
894
1232
  " ",
895
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", {
1233
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", {
896
1234
  d: "M1000 8221 c-71 -27 -103 -47 -149 -92 -122 -123 -144 -294 -58 -456 22 -42 6838 -6858 6880 -6880 162 -86 333 -64 456 58 123 123 144 294 57 458 -10 19 -508 525 -1107 1124 l-1089 1089 1 256 1 257 676 1350 677 1350 115 6 c125 6 173 20 244 68 54 37 89 78 124 145 24 46 27 61 27 161 0 100 -3 115 -28 162 -52 100 -119 157 -225 194 -54 18 -131 19 -2817 19 l-2762 0 -341 340 c-188 186 -356 347 -374 357 -103 55 -220 68 -308 34z m5494 -1490 c6 -10 -1204 -2436 -1226 -2458 -13 -13 -168 139 -1247 1217 -677 677 -1231 1236 -1231 1241 0 12 3697 12 3704 0z"
897
1235
  }),
898
1236
  " ",
899
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", {
1237
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", {
900
1238
  d: "M2340 5338 c0 -7 146 -305 325 -662 l325 -649 0 -1112 c0 -1043 1 -1114 18 -1160 27 -76 47 -107 94 -154 48 -47 80 -67 153 -93 46 -17 120 -18 1231 -18 1085 0 1186 1 1235 17 30 9 66 24 81 33 68 40 158 146 158 185 0 18 -692 715 -709 715 -6 0 -11 -38 -13 -97 l-3 -98 -745 0 -745 0 -3 858 -2 859 -694 694 c-382 382 -697 694 -700 694 -3 0 -6 -6 -6 -12z"
901
- }),
902
- " "
903
- ]
904
- }),
905
- " "
906
- ]
907
- })
908
- })
909
- });
910
- };
911
- var exportToExcelSvg = function(width, height, viewBox) {
912
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("svg", {
913
- version: "1.0",
914
- xmlns: "http://www.w3.org/2000/svg",
915
- width: width || "18",
916
- height: height || "18",
917
- viewBox: viewBox || "0 0 150.000000 150.000000",
918
- preserveAspectRatio: "xMidYMid meet",
919
- children: [
920
- " ",
921
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("g", {
922
- transform: "translate(0.000000,150.000000) scale(0.100000,-0.100000)",
923
- fill: "#ffffff",
924
- stroke: "none",
925
- children: [
926
- " ",
927
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", {
928
- d: "M205 1418 c-3 -7 -4 -317 -3 -688 l3 -675 435 -3 c239 -1 441 0 449 3 11 4 9 11 -9 30 l-23 25 -396 2 -396 3 0 625 0 625 280 0 280 0 5 -190 5 -190 190 -5 190 -5 5 -175 5 -175 25 0 25 0 3 200 2 199 -202 203 -203 203 -333 0 c-257 0 -334 -3 -337 -12z m828 -235 c70 -70 127 -131 127 -135 0 -5 -60 -7 -132 -6 l-133 3 -3 133 c-1 72 1 132 6 132 4 0 65 -57 135 -127z"
929
- }),
930
- " ",
931
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", {
932
- d: "M518 915 c-6 -6 9 -37 42 -90 11 -16 23 -37 27 -45 4 -8 19 -36 35 -61 15 -25 28 -56 28 -68 0 -20 -29 -69 -121 -209 -16 -24 -29 -47 -29 -53 0 -5 31 -9 68 -9 l69 0 42 82 c60 116 66 118 107 35 56 -114 53 -112 127 -115 51 -2 67 0 67 11 0 7 -5 18 -11 24 -11 11 -26 36 -49 78 -6 11 -19 34 -30 50 -11 17 -24 40 -29 52 -5 11 -15 24 -20 28 -26 16 -18 33 97 212 25 39 39 70 34 75 -5 5 -36 8 -68 6 l-59 -3 -42 -84 c-24 -46 -45 -86 -48 -89 -6 -6 -44 40 -45 54 0 6 -13 35 -29 65 l-28 54 -65 3 c-35 2 -67 0 -70 -3z"
933
- }),
934
- " ",
935
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("path", {
936
- d: "M1135 548 c-3 -7 -6 -67 -7 -133 l-3 -120 -55 -3 c-30 -1 -61 -5 -68 -7 -8 -3 28 -53 95 -132 122 -146 129 -153 140 -153 4 0 22 17 38 37 26 32 53 63 175 206 13 15 30 27 38 27 9 0 12 3 8 7 -3 4 -39 9 -79 12 l-72 6 -5 130 -5 130 -98 3 c-72 2 -99 -1 -102 -10z m145 -183 l5 -130 28 -3 c15 -2 27 -8 27 -14 0 -18 -92 -128 -107 -128 -11 1 -97 107 -101 125 -2 8 7 15 25 17 l28 3 3 120 c1 66 4 126 7 133 3 9 18 12 42 10 l38 -3 5 -130z"
937
- }),
938
- " "
939
- ]
940
- }),
941
- " "
942
- ]
943
- });
944
- };
945
- // src/components/table/hooks.tsx
946
- var import_react3 = require("react");
947
- var import_zustand = require("zustand");
948
- var import_lodash2 = require("lodash");
949
- // src/components/table/Table.tsx
950
- var import_react2 = __toESM(require("react"));
951
- var import_lodash = require("lodash");
952
- // src/helpers/forms.ts
953
- var import_xregexp = __toESM(require("xregexp"));
954
- var textRegex = (0, import_xregexp.default)("[^\\p{L}\\s-]", "gu");
955
- var numbersRegex = (0, import_xregexp.default)("[^0-9\\s-+]", "g");
956
- var numbersOnlyRegex = (0, import_xregexp.default)("[^0-9]", "g");
957
- var priceRegex = (0, import_xregexp.default)("[^0-9.]", "g");
958
- var emailRegex = (0, import_xregexp.default)("[^\\p{L}0-9.@\\s-]", "gu");
959
- var colorRegex = (0, import_xregexp.default)("[^#0-9A-Fa-f]", "g");
960
- var carsRegex = (0, import_xregexp.default)("[^\\p{L}0-9,_]", "gu");
961
- var textNumbersRegex = (0, import_xregexp.default)("[^\\p{L}0-9\\s+\\-]", "gu");
962
- var addressRegex = (0, import_xregexp.default)("[^\\p{L}0-9\\s.,+-\\-]", "gu");
963
- var chartsRegex = (0, import_xregexp.default)("[^\\p{L}0-9\\s.,_@!+-\\-]", "gu");
964
- var handleChange = function(e) {
965
- e.target.setCustomValidity("");
966
- var validation = e.target.getAttribute("data-validation");
967
- if (validation === "text") {
968
- e.target.value = import_xregexp.default.replace(e.target.value, textRegex, "");
969
- } else if (validation === "numbers") {
970
- e.target.value = import_xregexp.default.replace(e.target.value, numbersRegex, "");
971
- } else if (validation === "numbersOnly") {
972
- e.target.value = import_xregexp.default.replace(e.target.value, numbersOnlyRegex, "");
973
- } else if (validation === "price") {
974
- e.target.value = import_xregexp.default.replace(e.target.value, priceRegex, "");
975
- } else if (validation === "textNumbers") {
976
- e.target.value = import_xregexp.default.replace(e.target.value, textNumbersRegex, "");
977
- } else if (validation === "email") {
978
- e.target.value = import_xregexp.default.replace(e.target.value, emailRegex, "");
979
- } else if (validation === "color") {
980
- e.target.value = import_xregexp.default.replace(e.target.value, colorRegex, "");
981
- } else if (validation === "address") {
982
- e.target.value = import_xregexp.default.replace(e.target.value, addressRegex, "");
983
- } else if (validation === "cars") {
984
- e.target.value = import_xregexp.default.replace(e.target.value, carsRegex, "");
985
- } else if (validation === "charts") {
986
- e.target.value = import_xregexp.default.replace(e.target.value, chartsRegex, "");
987
- }
988
- };
989
- var handlePaste = function(e) {
990
- var validation = e.currentTarget.getAttribute("data-validation");
991
- var pasteData = e.clipboardData.getData("text");
992
- if (validation === "text") {
993
- pasteData = import_xregexp.default.replace(pasteData, textRegex, "");
994
- } else if (validation === "numbers") {
995
- pasteData = import_xregexp.default.replace(pasteData, numbersRegex, "");
996
- } else if (validation === "numbersOnly") {
997
- pasteData = import_xregexp.default.replace(pasteData, numbersOnlyRegex, "");
998
- } else if (validation === "price") {
999
- pasteData = import_xregexp.default.replace(pasteData, priceRegex, "");
1000
- } else if (validation === "textNumbers") {
1001
- pasteData = import_xregexp.default.replace(pasteData, textNumbersRegex, "");
1002
- } else if (validation === "email") {
1003
- pasteData = import_xregexp.default.replace(pasteData, emailRegex, "");
1004
- } else if (validation === "color") {
1005
- pasteData = import_xregexp.default.replace(pasteData, colorRegex, "");
1006
- } else if (validation === "address") {
1007
- pasteData = import_xregexp.default.replace(pasteData, addressRegex, "");
1008
- } else if (validation === "cars") {
1009
- pasteData = import_xregexp.default.replace(pasteData, carsRegex, "");
1010
- } else if (validation === "charts") {
1011
- pasteData = import_xregexp.default.replace(pasteData, chartsRegex, "");
1012
- }
1013
- e.preventDefault();
1014
- document.execCommand("insertText", false, pasteData);
1015
- };
1016
- var handleInvalid = function(e, requireError) {
1017
- e.target.setCustomValidity(requireError || "This filed is required !");
1018
- };
1019
- var useValidation = function(validationType, requireError) {
1020
- return {
1021
- onChange: handleChange,
1022
- onPaste: handlePaste,
1023
- onInvalid: function(e) {
1024
- return handleInvalid(e, requireError);
1025
- },
1026
- "data-validation": validationType
1027
- };
1239
+ }),
1240
+ " "
1241
+ ]
1242
+ }),
1243
+ " "
1244
+ ]
1245
+ })
1246
+ })
1247
+ });
1028
1248
  };
1029
- var getFormElementValue = function(form, name) {
1030
- var _form_elements_namedItem;
1031
- return ((_form_elements_namedItem = form.elements.namedItem(name)) === null || _form_elements_namedItem === void 0 ? void 0 : _form_elements_namedItem.value) || "";
1249
+ var exportToExcelSvg = function(width, height, viewBox) {
1250
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("svg", {
1251
+ version: "1.0",
1252
+ xmlns: "http://www.w3.org/2000/svg",
1253
+ width: width || "18",
1254
+ height: height || "18",
1255
+ viewBox: viewBox || "0 0 150.000000 150.000000",
1256
+ preserveAspectRatio: "xMidYMid meet",
1257
+ children: [
1258
+ " ",
1259
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("g", {
1260
+ transform: "translate(0.000000,150.000000) scale(0.100000,-0.100000)",
1261
+ fill: "#ffffff",
1262
+ stroke: "none",
1263
+ children: [
1264
+ " ",
1265
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", {
1266
+ d: "M205 1418 c-3 -7 -4 -317 -3 -688 l3 -675 435 -3 c239 -1 441 0 449 3 11 4 9 11 -9 30 l-23 25 -396 2 -396 3 0 625 0 625 280 0 280 0 5 -190 5 -190 190 -5 190 -5 5 -175 5 -175 25 0 25 0 3 200 2 199 -202 203 -203 203 -333 0 c-257 0 -334 -3 -337 -12z m828 -235 c70 -70 127 -131 127 -135 0 -5 -60 -7 -132 -6 l-133 3 -3 133 c-1 72 1 132 6 132 4 0 65 -57 135 -127z"
1267
+ }),
1268
+ " ",
1269
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", {
1270
+ d: "M518 915 c-6 -6 9 -37 42 -90 11 -16 23 -37 27 -45 4 -8 19 -36 35 -61 15 -25 28 -56 28 -68 0 -20 -29 -69 -121 -209 -16 -24 -29 -47 -29 -53 0 -5 31 -9 68 -9 l69 0 42 82 c60 116 66 118 107 35 56 -114 53 -112 127 -115 51 -2 67 0 67 11 0 7 -5 18 -11 24 -11 11 -26 36 -49 78 -6 11 -19 34 -30 50 -11 17 -24 40 -29 52 -5 11 -15 24 -20 28 -26 16 -18 33 97 212 25 39 39 70 34 75 -5 5 -36 8 -68 6 l-59 -3 -42 -84 c-24 -46 -45 -86 -48 -89 -6 -6 -44 40 -45 54 0 6 -13 35 -29 65 l-28 54 -65 3 c-35 2 -67 0 -70 -3z"
1271
+ }),
1272
+ " ",
1273
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", {
1274
+ d: "M1135 548 c-3 -7 -6 -67 -7 -133 l-3 -120 -55 -3 c-30 -1 -61 -5 -68 -7 -8 -3 28 -53 95 -132 122 -146 129 -153 140 -153 4 0 22 17 38 37 26 32 53 63 175 206 13 15 30 27 38 27 9 0 12 3 8 7 -3 4 -39 9 -79 12 l-72 6 -5 130 -5 130 -98 3 c-72 2 -99 -1 -102 -10z m145 -183 l5 -130 28 -3 c15 -2 27 -8 27 -14 0 -18 -92 -128 -107 -128 -11 1 -97 107 -101 125 -2 8 7 15 25 17 l28 3 3 120 c1 66 4 126 7 133 3 9 18 12 42 10 l38 -3 5 -130z"
1275
+ }),
1276
+ " "
1277
+ ]
1278
+ }),
1279
+ " "
1280
+ ]
1281
+ });
1032
1282
  };
1283
+ // src/components/table/hooks.tsx
1284
+ var import_react5 = require("react");
1285
+ var import_zustand = require("zustand");
1286
+ var import_lodash3 = require("lodash");
1033
1287
  // src/components/table/Table.tsx
1034
- var import_jsx_runtime7 = require("react/jsx-runtime");
1035
- var TableContext = (0, import_react2.createContext)(null);
1288
+ var import_react4 = __toESM(require("react"));
1289
+ var import_lodash2 = require("lodash");
1290
+ var import_jsx_runtime8 = require("react/jsx-runtime");
1291
+ var TableContext = (0, import_react4.createContext)(null);
1036
1292
  var TableProvider = function(props) {
1037
1293
  var // basic props
1038
1294
  data = props.data, headers = props.headers, optionalElement = props.optionalElement, _props_keysToRender = props.keysToRender, keysToRender = _props_keysToRender === void 0 ? [] : _props_keysToRender, _props_direction = props.direction, direction = _props_direction === void 0 ? "ltr" : _props_direction, _props_onRowClick = props.onRowClick, onRowClick = _props_onRowClick === void 0 ? function(data2) {} : _props_onRowClick, // container styles props
@@ -1052,7 +1308,7 @@ var TableProvider = function(props) {
1052
1308
  data: data,
1053
1309
  filterableColumns: filterableColumns
1054
1310
  }), filters = _useFilter.filters, filterPopupsDisplay = _useFilter.filterPopupsDisplay, filterOptions = _useFilter.filterOptions, handleFilterChange = _useFilter.handleFilterChange, handleFilterClick = _useFilter.handleFilterClick, closeFilterWindow = _useFilter.closeFilterWindow, clearFilter = _useFilter.clearFilter;
1055
- var allKeys = (0, import_react2.useMemo)(function() {
1311
+ var allKeys = (0, import_react4.useMemo)(function() {
1056
1312
  return Array.from(data.reduce(function(keys, obj) {
1057
1313
  Object.keys(obj).forEach(function(key) {
1058
1314
  return keys.add(key);
@@ -1062,7 +1318,7 @@ var TableProvider = function(props) {
1062
1318
  }, [
1063
1319
  data
1064
1320
  ]);
1065
- var dataToRender = (0, import_react2.useMemo)(function() {
1321
+ var dataToRender = (0, import_react4.useMemo)(function() {
1066
1322
  var filtered = data;
1067
1323
  if (includeSearch && deferredSearchQuery.length > 0) {
1068
1324
  var cleanString = function(str) {
@@ -1128,9 +1384,9 @@ var TableProvider = function(props) {
1128
1384
  handleFilterClick: handleFilterClick,
1129
1385
  closeFilterWindow: closeFilterWindow
1130
1386
  });
1131
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(TableContext.Provider, {
1387
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TableContext.Provider, {
1132
1388
  value: providerValues,
1133
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", {
1389
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", {
1134
1390
  className: "flex flex-col gap-2 ".concat(containerClassName),
1135
1391
  style: _object_spread_props(_object_spread({}, containerStyle), {
1136
1392
  direction: direction
@@ -1141,51 +1397,51 @@ var TableProvider = function(props) {
1141
1397
  };
1142
1398
  var TableBase = function(props) {
1143
1399
  var containerHeaderClassName = props.containerHeaderClassName, optionalElement = props.optionalElement, tableContainerClass = props.tableContainerClass, tableContainerStyle = props.tableContainerStyle, tableStyle = props.tableStyle, includeSearch = props.includeSearch, exportToExcelKeys = props.exportToExcelKeys, sumColumns = props.sumColumns, direction = props.direction, maxRowsLabel1 = props.maxRowsLabel1, maxRowsLabel2 = props.maxRowsLabel2, searchContainerClassName = props.searchContainerClassName;
1144
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(TableProvider, _object_spread_props(_object_spread({}, props), {
1400
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(TableProvider, _object_spread_props(_object_spread({}, props), {
1145
1401
  children: [
1146
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", {
1402
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", {
1147
1403
  style: {
1148
1404
  direction: direction
1149
1405
  },
1150
1406
  className: cn("flex justify-start items-center gap-2", containerHeaderClassName || ""),
1151
1407
  children: [
1152
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", {
1408
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", {
1153
1409
  className: cn("flex justify-start items-center gap-2", searchContainerClassName),
1154
1410
  children: [
1155
- includeSearch && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Search, {}),
1156
- exportToExcelKeys && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ExportToExcel, {})
1411
+ includeSearch && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Search, {}),
1412
+ exportToExcelKeys && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ExportToExcel, {})
1157
1413
  ]
1158
1414
  }),
1159
- maxRowsLabel1 && maxRowsLabel2 && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(MaxRowsLabel, {}),
1415
+ maxRowsLabel1 && maxRowsLabel2 && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(MaxRowsLabel, {}),
1160
1416
  optionalElement && optionalElement
1161
1417
  ]
1162
1418
  }),
1163
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", {
1419
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", {
1164
1420
  style: _object_spread_props(_object_spread({}, tableContainerStyle || {}), {
1165
1421
  direction: direction
1166
1422
  }),
1167
1423
  className: cn("animate-slide-in-up overflow-y-auto", tableContainerClass || ""),
1168
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("table", {
1424
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("table", {
1169
1425
  style: tableStyle,
1170
1426
  className: "min-w-full text-sm font-light relative",
1171
1427
  children: [
1172
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(TableHead, {}),
1173
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(TableBody, {})
1428
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TableHead, {}),
1429
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TableBody, {})
1174
1430
  ]
1175
1431
  })
1176
1432
  }),
1177
- sumColumns && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Summary, {})
1433
+ sumColumns && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Summary, {})
1178
1434
  ]
1179
1435
  }));
1180
1436
  };
1181
1437
  var areEqual = function(prevProps, nextProps) {
1182
- return (0, import_lodash.isEqual)(prevProps, nextProps);
1438
+ return (0, import_lodash2.isEqual)(prevProps, nextProps);
1183
1439
  };
1184
- var Table = import_react2.default.memo(TableBase, areEqual);
1440
+ var Table = import_react4.default.memo(TableBase, areEqual);
1185
1441
  Table.displayName = "Table";
1186
1442
  // src/components/table/hooks.tsx
1187
1443
  var useTableContext = function() {
1188
- var context = (0, import_react3.useContext)(TableContext);
1444
+ var context = (0, import_react5.useContext)(TableContext);
1189
1445
  if (!context) {
1190
1446
  throw new Error("useTableContext must be used within a Table component");
1191
1447
  }
@@ -1196,8 +1452,8 @@ var useFilter = function(param) {
1196
1452
  var initFilter = filterableColumns.reduce(function(acc, col) {
1197
1453
  return _object_spread_props(_object_spread({}, acc), _define_property({}, col.dataKey, []));
1198
1454
  }, {});
1199
- var _ref = _sliced_to_array((0, import_react3.useState)(initFilter), 2), filters = _ref[0], setFilters = _ref[1];
1200
- var _ref1 = _sliced_to_array((0, import_react3.useState)(""), 2), filterPopupsDisplay = _ref1[0], setFilterPopupsDisplay = _ref1[1];
1455
+ var _ref = _sliced_to_array((0, import_react5.useState)(initFilter), 2), filters = _ref[0], setFilters = _ref[1];
1456
+ var _ref1 = _sliced_to_array((0, import_react5.useState)(""), 2), filterPopupsDisplay = _ref1[0], setFilterPopupsDisplay = _ref1[1];
1201
1457
  var filterOptions = filterableColumns.reduce(function(acc, col) {
1202
1458
  acc[col.dataKey] = Array.from(new Set(data.map(function(item) {
1203
1459
  return item[col.dataKey];
@@ -1216,7 +1472,7 @@ var useFilter = function(param) {
1216
1472
  setFilters(newFilters);
1217
1473
  };
1218
1474
  var clearFilter = function() {
1219
- if (!(0, import_lodash2.isEqual)(filters, initFilter)) {
1475
+ if (!(0, import_lodash3.isEqual)(filters, initFilter)) {
1220
1476
  setFilters(initFilter);
1221
1477
  }
1222
1478
  };
@@ -1243,8 +1499,8 @@ var useFilter = function(param) {
1243
1499
  };
1244
1500
  };
1245
1501
  var useSort = function() {
1246
- var _ref = _sliced_to_array((0, import_react3.useState)(null), 2), sortColumn = _ref[0], setSortColumn = _ref[1];
1247
- var _ref1 = _sliced_to_array((0, import_react3.useState)(null), 2), sortOrder = _ref1[0], setSortOrder = _ref1[1];
1502
+ var _ref = _sliced_to_array((0, import_react5.useState)(null), 2), sortColumn = _ref[0], setSortColumn = _ref[1];
1503
+ var _ref1 = _sliced_to_array((0, import_react5.useState)(null), 2), sortOrder = _ref1[0], setSortOrder = _ref1[1];
1248
1504
  var handleSort = function(columnIndex) {
1249
1505
  var newSortOrder = "asc";
1250
1506
  if (sortColumn === columnIndex && sortOrder === "asc") {
@@ -1269,9 +1525,9 @@ var useSort = function() {
1269
1525
  };
1270
1526
  };
1271
1527
  var useSearch = function() {
1272
- var _ref = _sliced_to_array((0, import_react3.useState)(""), 2), searchQuery = _ref[0], setSearchQuery = _ref[1];
1273
- var _ref1 = _sliced_to_array((0, import_react3.useTransition)(), 2), isPending = _ref1[0], startTransition = _ref1[1];
1274
- var deferredSearchQuery = (0, import_react3.useDeferredValue)(searchQuery);
1528
+ var _ref = _sliced_to_array((0, import_react5.useState)(""), 2), searchQuery = _ref[0], setSearchQuery = _ref[1];
1529
+ var _ref1 = _sliced_to_array((0, import_react5.useTransition)(), 2), isPending = _ref1[0], startTransition = _ref1[1];
1530
+ var deferredSearchQuery = (0, import_react5.useDeferredValue)(searchQuery);
1275
1531
  var handleSearch = function(e) {
1276
1532
  var value = e.target.value;
1277
1533
  startTransition(function() {
@@ -1293,132 +1549,9 @@ var useSearch = function() {
1293
1549
  deferredSearchQuery: deferredSearchQuery
1294
1550
  };
1295
1551
  };
1296
- // src/helpers/firebase.ts
1297
- var import_moment = __toESM(require("moment"));
1298
- var import_app = require("firebase/app");
1299
- var import_storage = require("firebase/storage");
1300
- var import_auth = require("firebase/auth");
1301
- var import_app_check = require("firebase/app-check");
1302
- var import_firestore = require("firebase/firestore");
1303
- var import_react4 = require("react");
1304
- var import_meta = {};
1305
- var initApp = function() {
1306
- var isNodeEnv2 = typeof process !== "undefined" && process.env;
1307
- var firebaseConfig = {
1308
- apiKey: isNodeEnv2 ? process.env.NEXT_PUBLIC_API_KEY : import_meta.env.VITE_API_KEY,
1309
- authDomain: isNodeEnv2 ? process.env.NEXT_PUBLIC_AUTH_DOMAIN : import_meta.env.VITE_AUTH_DOMAIN,
1310
- projectId: isNodeEnv2 ? process.env.NEXT_PUBLIC_PROJECT_ID : import_meta.env.VITE_PROJECT_ID,
1311
- storageBucket: isNodeEnv2 ? process.env.NEXT_PUBLIC_STORAGE_BUCKET : import_meta.env.VITE_STORAGE_BUCKET,
1312
- messagingSenderId: isNodeEnv2 ? process.env.NEXT_PUBLIC_MESSAGING_SENDER_ID : import_meta.env.VITE_MESSAGING_SENDER_ID,
1313
- appId: isNodeEnv2 ? process.env.NEXT_PUBLIC_APP_ID : import_meta.env.VITE_APP_ID
1314
- };
1315
- try {
1316
- var app2 = (0, import_app.initializeApp)(firebaseConfig);
1317
- var auth2 = (0, import_auth.getAuth)(app2);
1318
- auth2.settings.appVerificationDisabledForTesting = false;
1319
- var db2 = (0, import_firestore.getFirestore)(app2);
1320
- var storage2 = (0, import_storage.getStorage)(app2);
1321
- var googleLoginProvider2 = new import_auth.GoogleAuthProvider();
1322
- var recaptchaSiteKey = isNodeEnv2 ? process.env.NEXT_PUBLIC_RECAPTCHA_SITE_KEY : import_meta.env.VITE_RECAPTCHA_SITE_KEY;
1323
- var result = {
1324
- db: db2,
1325
- auth: auth2,
1326
- storage: storage2,
1327
- app: app2,
1328
- googleLoginProvider: googleLoginProvider2
1329
- };
1330
- if (recaptchaSiteKey) {
1331
- result.appCheck = (0, import_app_check.initializeAppCheck)(app2, {
1332
- provider: new import_app_check.ReCaptchaEnterpriseProvider(recaptchaSiteKey),
1333
- isTokenAutoRefreshEnabled: true
1334
- });
1335
- }
1336
- return result;
1337
- } catch (error) {
1338
- console.error("Failed to initialize Firebase app:", error);
1339
- return {};
1340
- }
1341
- };
1342
- var _initApp = initApp(), db = _initApp.db, auth = _initApp.auth, storage = _initApp.storage, app = _initApp.app, appCheck = _initApp.appCheck, googleLoginProvider = _initApp.googleLoginProvider;
1343
- var collections = {
1344
- clients: (0, import_firestore.collection)(db, "nx-clients"),
1345
- sites: (0, import_firestore.collection)(db, "nx-sites"),
1346
- cars: (0, import_firestore.collection)(db, "units"),
1347
- users: (0, import_firestore.collection)(db, "nx-users"),
1348
- lastLocations: (0, import_firestore.collection)(db, "last_locations"),
1349
- ermEvents: (0, import_firestore.collection)(db, "erm_events_general"),
1350
- erm2Events: (0, import_firestore.collection)(db, "erm2_events_general"),
1351
- ruptelaEvents: (0, import_firestore.collection)(db, "ruptela_events_general"),
1352
- polygons: (0, import_firestore.collection)(db, "nx-polygons"),
1353
- polygonEvents: (0, import_firestore.collection)(db, "polygon_events"),
1354
- polygonCars: (0, import_firestore.collection)(db, "polygon_cars"),
1355
- canbus: (0, import_firestore.collection)(db, "erm_canbus_parameters"),
1356
- states: (0, import_firestore.collection)(db, "erm_states"),
1357
- app_pro_commands_queue: (0, import_firestore.collection)(db, "app_pro_commands_queue"),
1358
- trips: (0, import_firestore.collection)(db, "erm2_trip"),
1359
- tripsDetails: (0, import_firestore.collection)(db, "erm2_trip_details"),
1360
- audit: (0, import_firestore.collection)(db, "nx-audit"),
1361
- nx_settings: (0, import_firestore.collection)(db, "nx-settings"),
1362
- settings: (0, import_firestore.collection)(db, "settings"),
1363
- translations: (0, import_firestore.collection)(db, "nx-translations"),
1364
- nx_cars: (0, import_firestore.collection)(db, "nx-cars"),
1365
- boards: (0, import_firestore.collection)(db, "boards"),
1366
- protection_types: (0, import_firestore.collection)(db, "protectionTypes"),
1367
- board_types: (0, import_firestore.collection)(db, "boardTypes"),
1368
- charge_capacities: (0, import_firestore.collection)(db, "nx-charge-capacities")
1369
- };
1370
- var fire_base_TIME_TEMP = import_firestore.Timestamp.now;
1371
- // src/helpers/global.ts
1372
- var import_akeyless_types_commons = require("akeyless-types-commons");
1373
- var import_axios = __toESM(require("axios"));
1374
- // src/helpers/phoneNumber.ts
1375
- var import_libphonenumber_js = require("libphonenumber-js");
1376
- // src/helpers/global.ts
1377
- var import_lodash3 = require("lodash");
1378
- var import_meta2 = {};
1379
- var renderOnce = function() {
1380
- return true;
1381
- };
1382
- var getLocationUrl = function(lng, lat) {
1383
- return "https://www.google.com/maps?q=".concat(lat, ",").concat(lng);
1384
- };
1385
- var isNodeEnv = typeof process !== "undefined" && process.env;
1386
- var _ref = {
1387
- mode: isNodeEnv ? process.env.NEXT_PUBLIC_MODE : import_meta2.env.VITE_MODE,
1388
- isLocal: (isNodeEnv ? process.env.NEXT_PUBLIC_IS_LOCAL : import_meta2.env.VITE_is_local) === "true"
1389
- }, mode = _ref.mode, isLocal = _ref.isLocal;
1390
- // src/helpers/time_helpers.ts
1391
- var import_firestore2 = require("firebase/firestore");
1392
- var import_moment_timezone = __toESM(require("moment-timezone"));
1393
- function timestamp_to_string(firebaseTimestamp, options) {
1394
- var date;
1395
- if (_instanceof(firebaseTimestamp, import_firestore2.Timestamp)) {
1396
- date = firebaseTimestamp.toDate();
1397
- } else if (_instanceof(firebaseTimestamp, Date)) {
1398
- date = firebaseTimestamp;
1399
- } else if (typeof firebaseTimestamp === "string") {
1400
- date = import_moment_timezone.default.utc(firebaseTimestamp, (options === null || options === void 0 ? void 0 : options.fromFormat) || "DD/MM/YYYY HH:mm:ss").toDate();
1401
- if (isNaN(date.getTime())) {
1402
- throw new Error("Invalid date string format");
1403
- }
1404
- } else {
1405
- throw new Error("Invalid input: firebaseTimestamp must be a Timestamp, Date, or valid date string.");
1406
- }
1407
- if (options === null || options === void 0 ? void 0 : options.tz) {
1408
- var result = (0, import_moment_timezone.default)(date).tz(options === null || options === void 0 ? void 0 : options.tz).format((options === null || options === void 0 ? void 0 : options.format) || "DD/MM/YYYY HH:mm:ss");
1409
- return result;
1410
- }
1411
- return import_moment_timezone.default.utc(date).format((options === null || options === void 0 ? void 0 : options.format) || "DD/MM/YYYY HH:mm:ss");
1412
- }
1413
- // src/helpers/api.ts
1414
- var import_axios2 = __toESM(require("axios"));
1415
- var baseDomain = mode === "qa" ? "https://nx-api.xyz/api" : "https://nx-api.info/api";
1416
- var devicesDomain = isLocal ? "http://localhost:9001/api/devices" : baseDomain + "/devices";
1417
- var biDomain = isLocal ? "http://localhost:9002/api/bi" : baseDomain + "/bi";
1418
- var callCenterDomain = isLocal ? "http://localhost:9003/api/call-center" : baseDomain + "/call-center";
1419
1552
  // src/components/ui/badge.tsx
1420
1553
  var import_class_variance_authority = require("class-variance-authority");
1421
- var import_jsx_runtime8 = require("react/jsx-runtime");
1554
+ var import_jsx_runtime9 = require("react/jsx-runtime");
1422
1555
  var badgeVariants = (0, import_class_variance_authority.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", {
1423
1556
  variants: {
1424
1557
  variant: {
@@ -1437,7 +1570,7 @@ function Badge(_param) {
1437
1570
  "className",
1438
1571
  "variant"
1439
1572
  ]);
1440
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", _object_spread({
1573
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", _object_spread({
1441
1574
  className: cn(badgeVariants({
1442
1575
  variant: variant
1443
1576
  }), className)
@@ -1447,7 +1580,7 @@ function Badge(_param) {
1447
1580
  var import_react_slot = require("@radix-ui/react-slot");
1448
1581
  var import_class_variance_authority2 = require("class-variance-authority");
1449
1582
  var React3 = __toESM(require("react"));
1450
- var import_jsx_runtime9 = require("react/jsx-runtime");
1583
+ var import_jsx_runtime10 = require("react/jsx-runtime");
1451
1584
  var buttonVariants = (0, import_class_variance_authority2.cva)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", {
1452
1585
  variants: {
1453
1586
  variant: {
@@ -1478,7 +1611,7 @@ var Button = React3.forwardRef(function(_param, ref) {
1478
1611
  "asChild"
1479
1612
  ]);
1480
1613
  var Comp = asChild ? import_react_slot.Slot : "button";
1481
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Comp, _object_spread({
1614
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Comp, _object_spread({
1482
1615
  ref: ref,
1483
1616
  "data-slot": "button",
1484
1617
  className: cn(buttonVariants({
@@ -1491,13 +1624,13 @@ var Button = React3.forwardRef(function(_param, ref) {
1491
1624
  Button.displayName = "Button";
1492
1625
  // src/components/ui/input.tsx
1493
1626
  var React4 = __toESM(require("react"));
1494
- var import_jsx_runtime10 = require("react/jsx-runtime");
1627
+ var import_jsx_runtime11 = require("react/jsx-runtime");
1495
1628
  var Input = React4.forwardRef(function(_param, ref) {
1496
1629
  var className = _param.className, type = _param.type, props = _object_without_properties(_param, [
1497
1630
  "className",
1498
1631
  "type"
1499
1632
  ]);
1500
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("input", _object_spread({
1633
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("input", _object_spread({
1501
1634
  type: type,
1502
1635
  className: cn("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", className),
1503
1636
  ref: ref
@@ -1507,7 +1640,7 @@ Input.displayName = "Input";
1507
1640
  // src/components/ui/progress.tsx
1508
1641
  var React5 = __toESM(require("react"));
1509
1642
  var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
1510
- var import_jsx_runtime11 = require("react/jsx-runtime");
1643
+ var import_jsx_runtime12 = require("react/jsx-runtime");
1511
1644
  var ProgressComponent = React5.forwardRef(function(_param, ref) {
1512
1645
  var className = _param.className, value = _param.value, containerClassName = _param.containerClassName, indicatorClassName = _param.indicatorClassName, showValueClassName = _param.showValueClassName, _param_showValue = _param.showValue, showValue = _param_showValue === void 0 ? false : _param_showValue, props = _object_without_properties(_param, [
1513
1646
  "className",
@@ -1517,18 +1650,18 @@ var ProgressComponent = React5.forwardRef(function(_param, ref) {
1517
1650
  "showValueClassName",
1518
1651
  "showValue"
1519
1652
  ]);
1520
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", {
1653
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", {
1521
1654
  className: cn("relative w-full", containerClassName),
1522
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ProgressPrimitive.Root, _object_spread_props(_object_spread({
1655
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ProgressPrimitive.Root, _object_spread_props(_object_spread({
1523
1656
  ref: ref,
1524
1657
  className: cn("w-full h-5 bg-[#e5e7eb] relative overflow-hidden rounded-full", className)
1525
1658
  }, props), {
1526
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ProgressPrimitive.Indicator, {
1659
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ProgressPrimitive.Indicator, {
1527
1660
  className: cn("h-full w-full flex-1 bg-[green] transition-all rounded-full", indicatorClassName),
1528
1661
  style: {
1529
1662
  transform: "translateX(-".concat(100 - (value || 0), "%)")
1530
1663
  },
1531
- children: showValue && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", {
1664
+ children: showValue && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", {
1532
1665
  className: cn("absolute right-1 top-[-2px] font-medium text-white", showValueClassName),
1533
1666
  children: "".concat(value || 0, "%")
1534
1667
  })
@@ -1541,8 +1674,8 @@ ProgressComponent.displayName = ProgressPrimitive.Root.displayName;
1541
1674
  var import_react_dom = __toESM(require("react-dom"));
1542
1675
  var import_cmdk2 = require("cmdk");
1543
1676
  var import_lucide_react3 = require("lucide-react");
1544
- var import_react6 = __toESM(require("react"));
1545
- var import_react7 = require("react");
1677
+ var import_react7 = __toESM(require("react"));
1678
+ var import_react8 = require("react");
1546
1679
  // src/components/ui/command.tsx
1547
1680
  var import_cmdk = require("cmdk");
1548
1681
  var import_lucide_react2 = require("lucide-react");
@@ -1551,13 +1684,13 @@ var React7 = __toESM(require("react"));
1551
1684
  var React6 = __toESM(require("react"));
1552
1685
  var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
1553
1686
  var import_lucide_react = require("lucide-react");
1554
- var import_jsx_runtime12 = require("react/jsx-runtime");
1687
+ var import_jsx_runtime13 = require("react/jsx-runtime");
1555
1688
  var DialogPortal = DialogPrimitive.Portal;
1556
1689
  var DialogOverlay = React6.forwardRef(function(_param, ref) {
1557
1690
  var className = _param.className, props = _object_without_properties(_param, [
1558
1691
  "className"
1559
1692
  ]);
1560
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DialogPrimitive.Overlay, _object_spread({
1693
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DialogPrimitive.Overlay, _object_spread({
1561
1694
  ref: ref,
1562
1695
  className: cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className)
1563
1696
  }, props));
@@ -1568,22 +1701,22 @@ var DialogContent = React6.forwardRef(function(_param, ref) {
1568
1701
  "className",
1569
1702
  "children"
1570
1703
  ]);
1571
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(DialogPortal, {
1704
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(DialogPortal, {
1572
1705
  children: [
1573
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DialogOverlay, {}),
1574
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(DialogPrimitive.Content, _object_spread_props(_object_spread({
1706
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DialogOverlay, {}),
1707
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(DialogPrimitive.Content, _object_spread_props(_object_spread({
1575
1708
  ref: ref,
1576
1709
  className: cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", className)
1577
1710
  }, props), {
1578
1711
  children: [
1579
1712
  children,
1580
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(DialogPrimitive.Close, {
1713
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(DialogPrimitive.Close, {
1581
1714
  className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",
1582
1715
  children: [
1583
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react.X, {
1716
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react.X, {
1584
1717
  className: "h-4 w-4"
1585
1718
  }),
1586
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", {
1719
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", {
1587
1720
  className: "sr-only",
1588
1721
  children: "Close"
1589
1722
  })
@@ -1599,7 +1732,7 @@ var DialogHeader = function(_param) {
1599
1732
  var className = _param.className, props = _object_without_properties(_param, [
1600
1733
  "className"
1601
1734
  ]);
1602
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", _object_spread({
1735
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", _object_spread({
1603
1736
  className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className)
1604
1737
  }, props));
1605
1738
  };
@@ -1608,7 +1741,7 @@ var DialogFooter = function(_param) {
1608
1741
  var className = _param.className, props = _object_without_properties(_param, [
1609
1742
  "className"
1610
1743
  ]);
1611
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", _object_spread({
1744
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", _object_spread({
1612
1745
  className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)
1613
1746
  }, props));
1614
1747
  };
@@ -1617,7 +1750,7 @@ var DialogTitle = React6.forwardRef(function(_param, ref) {
1617
1750
  var className = _param.className, props = _object_without_properties(_param, [
1618
1751
  "className"
1619
1752
  ]);
1620
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DialogPrimitive.Title, _object_spread({
1753
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DialogPrimitive.Title, _object_spread({
1621
1754
  ref: ref,
1622
1755
  className: cn("text-lg font-semibold leading-none tracking-tight", className)
1623
1756
  }, props));
@@ -1627,19 +1760,19 @@ var DialogDescription = React6.forwardRef(function(_param, ref) {
1627
1760
  var className = _param.className, props = _object_without_properties(_param, [
1628
1761
  "className"
1629
1762
  ]);
1630
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DialogPrimitive.Description, _object_spread({
1763
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DialogPrimitive.Description, _object_spread({
1631
1764
  ref: ref,
1632
1765
  className: cn("text-sm text-muted-foreground", className)
1633
1766
  }, props));
1634
1767
  });
1635
1768
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
1636
1769
  // src/components/ui/command.tsx
1637
- var import_jsx_runtime13 = require("react/jsx-runtime");
1770
+ var import_jsx_runtime14 = require("react/jsx-runtime");
1638
1771
  var Command = React7.forwardRef(function(_param, ref) {
1639
1772
  var className = _param.className, props = _object_without_properties(_param, [
1640
1773
  "className"
1641
1774
  ]);
1642
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_cmdk.Command, _object_spread({
1775
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_cmdk.Command, _object_spread({
1643
1776
  ref: ref,
1644
1777
  className: cn("flex h-full w-full flex-col overflow-hidden rounded-lg bg-popover text-popover-foreground", className)
1645
1778
  }, props));
@@ -1650,16 +1783,16 @@ var CommandInput = React7.forwardRef(function(_param, ref) {
1650
1783
  "className",
1651
1784
  "withSearchIcon"
1652
1785
  ]);
1653
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", {
1786
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", {
1654
1787
  className: "flex items-center border-b border-input px-3",
1655
1788
  "cmdk-input-wrapper": "",
1656
1789
  children: [
1657
- withSearchIcon && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react2.Search, {
1790
+ withSearchIcon && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react2.Search, {
1658
1791
  size: 20,
1659
1792
  strokeWidth: 2,
1660
1793
  className: "me-3 text-muted-foreground/80"
1661
1794
  }),
1662
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_cmdk.Command.Input, _object_spread({
1795
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_cmdk.Command.Input, _object_spread({
1663
1796
  ref: ref,
1664
1797
  className: cn("flex h-10 w-full rounded-lg bg-transparent py-2 text-sm outline-none placeholder:text-muted-foreground/70 disabled:cursor-not-allowed disabled:opacity-50", className)
1665
1798
  }, props))
@@ -1671,14 +1804,14 @@ var CommandList = React7.forwardRef(function(_param, ref) {
1671
1804
  var className = _param.className, props = _object_without_properties(_param, [
1672
1805
  "className"
1673
1806
  ]);
1674
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_cmdk.Command.List, _object_spread({
1807
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_cmdk.Command.List, _object_spread({
1675
1808
  ref: ref,
1676
1809
  className: cn("max-h-80 overflow-y-auto overflow-x-hidden", className)
1677
1810
  }, props));
1678
1811
  });
1679
1812
  CommandList.displayName = import_cmdk.Command.List.displayName;
1680
1813
  var CommandEmpty = React7.forwardRef(function(props, ref) {
1681
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_cmdk.Command.Empty, _object_spread({
1814
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_cmdk.Command.Empty, _object_spread({
1682
1815
  ref: ref,
1683
1816
  className: "py-6 text-center text-sm"
1684
1817
  }, props));
@@ -1688,7 +1821,7 @@ var CommandGroup = React7.forwardRef(function(_param, ref) {
1688
1821
  var className = _param.className, props = _object_without_properties(_param, [
1689
1822
  "className"
1690
1823
  ]);
1691
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_cmdk.Command.Group, _object_spread({
1824
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_cmdk.Command.Group, _object_spread({
1692
1825
  ref: ref,
1693
1826
  className: cn("overflow-hidden p-2 text-foreground [&_[cmdk-group-heading]]:px-3 [&_[cmdk-group-heading]]:py-2 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", className)
1694
1827
  }, props));
@@ -1698,7 +1831,7 @@ var CommandSeparator = React7.forwardRef(function(_param, ref) {
1698
1831
  var className = _param.className, props = _object_without_properties(_param, [
1699
1832
  "className"
1700
1833
  ]);
1701
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_cmdk.Command.Separator, _object_spread({
1834
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_cmdk.Command.Separator, _object_spread({
1702
1835
  ref: ref,
1703
1836
  className: cn("-mx-1 h-px bg-border", className)
1704
1837
  }, props));
@@ -1708,7 +1841,7 @@ var CommandItem = React7.forwardRef(function(_param, ref) {
1708
1841
  var className = _param.className, props = _object_without_properties(_param, [
1709
1842
  "className"
1710
1843
  ]);
1711
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_cmdk.Command.Item, _object_spread({
1844
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_cmdk.Command.Item, _object_spread({
1712
1845
  ref: ref,
1713
1846
  className: cn("relative flex cursor-default select-none items-center gap-3 rounded-md px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", className)
1714
1847
  }, props));
@@ -1718,7 +1851,7 @@ var CommandShortcut = function(_param) {
1718
1851
  var className = _param.className, props = _object_without_properties(_param, [
1719
1852
  "className"
1720
1853
  ]);
1721
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("kbd", _object_spread({
1854
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("kbd", _object_spread({
1722
1855
  className: cn("-me-1 ms-auto inline-flex h-5 max-h-full items-center rounded border border-border bg-background px-1 font-[inherit] text-[0.625rem] font-medium text-muted-foreground/70", className)
1723
1856
  }, props));
1724
1857
  };
@@ -3289,9 +3422,9 @@ var computePosition2 = function(reference, floating, options) {
3289
3422
  };
3290
3423
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
3291
3424
  var React8 = __toESM(require("react"), 1);
3292
- var import_react5 = require("react");
3425
+ var import_react6 = require("react");
3293
3426
  var ReactDOM = __toESM(require("react-dom"), 1);
3294
- var index = typeof document !== "undefined" ? import_react5.useLayoutEffect : import_react5.useEffect;
3427
+ var index = typeof document !== "undefined" ? import_react6.useLayoutEffect : import_react6.useEffect;
3295
3428
  function deepEqual(a, b) {
3296
3429
  if (a === b) {
3297
3430
  return true;
@@ -3556,7 +3689,7 @@ var flip3 = function(options, deps) {
3556
3689
  });
3557
3690
  };
3558
3691
  // src/components/ui/multiselect.tsx
3559
- var import_jsx_runtime14 = require("react/jsx-runtime");
3692
+ var import_jsx_runtime15 = require("react/jsx-runtime");
3560
3693
  var Portal2 = function(param) {
3561
3694
  var children = param.children;
3562
3695
  return import_react_dom.default.createPortal(children, document.body);
@@ -3633,7 +3766,7 @@ function isOptionsExist(groupOption, targetOption) {
3633
3766
  }
3634
3767
  return false;
3635
3768
  }
3636
- var CommandEmpty2 = (0, import_react7.forwardRef)(function(_param, forwardedRef) {
3769
+ var CommandEmpty2 = (0, import_react8.forwardRef)(function(_param, forwardedRef) {
3637
3770
  var className = _param.className, props = _object_without_properties(_param, [
3638
3771
  "className"
3639
3772
  ]);
@@ -3641,7 +3774,7 @@ var CommandEmpty2 = (0, import_react7.forwardRef)(function(_param, forwardedRef)
3641
3774
  return state.filtered.count === 0;
3642
3775
  });
3643
3776
  if (!render) return null;
3644
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", _object_spread({
3777
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", _object_spread({
3645
3778
  ref: forwardedRef,
3646
3779
  className: cn("px-2 py-4 text-center text-sm", className),
3647
3780
  "cmdk-empty": "",
@@ -3650,8 +3783,8 @@ var CommandEmpty2 = (0, import_react7.forwardRef)(function(_param, forwardedRef)
3650
3783
  });
3651
3784
  CommandEmpty2.displayName = "CommandEmpty";
3652
3785
  function useDebounce(value, delay) {
3653
- var _import_react6_default_useState = _sliced_to_array(import_react6.default.useState(value), 2), debouncedValue = _import_react6_default_useState[0], setDebouncedValue = _import_react6_default_useState[1];
3654
- (0, import_react7.useEffect)(function() {
3786
+ var _import_react7_default_useState = _sliced_to_array(import_react7.default.useState(value), 2), debouncedValue = _import_react7_default_useState[0], setDebouncedValue = _import_react7_default_useState[1];
3787
+ (0, import_react8.useEffect)(function() {
3655
3788
  var timer = setTimeout(function() {
3656
3789
  return setDebouncedValue(value);
3657
3790
  }, delay || 500);
@@ -3664,10 +3797,10 @@ function useDebounce(value, delay) {
3664
3797
  ]);
3665
3798
  return debouncedValue;
3666
3799
  }
3667
- var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
3800
+ var MultipleSelector = (0, import_react8.forwardRef)(function(param, ref) {
3668
3801
  var value = param.value, onChange = param.onChange, placeholder = param.placeholder, tmp = param.defaultOptions, arrayDefaultOptions = tmp === void 0 ? [] : tmp, arrayOptions = param.options, delay = param.delay, onSearch = param.onSearch, onSearchSync = param.onSearchSync, loadingIndicator = param.loadingIndicator, emptyIndicator = param.emptyIndicator, _param_maxSelected = param.maxSelected, maxSelected = _param_maxSelected === void 0 ? Number.MAX_SAFE_INTEGER : _param_maxSelected, onMaxSelected = param.onMaxSelected, _param_hidePlaceholderWhenSelected = param.hidePlaceholderWhenSelected, hidePlaceholderWhenSelected = _param_hidePlaceholderWhenSelected === void 0 ? true : _param_hidePlaceholderWhenSelected, disabled = param.disabled, groupBy = param.groupBy, className = param.className, badgeClassName = param.badgeClassName, _param_selectFirstItem = param.selectFirstItem, selectFirstItem = _param_selectFirstItem === void 0 ? true : _param_selectFirstItem, createNewOptionLabel = param.createNewOptionLabel, _param_triggerSearchOnFocus = param.triggerSearchOnFocus, triggerSearchOnFocus = _param_triggerSearchOnFocus === void 0 ? true : _param_triggerSearchOnFocus, commandProps = param.commandProps, inputProps = param.inputProps, _param_hideClearAllButton = param.hideClearAllButton, hideClearAllButton = _param_hideClearAllButton === void 0 ? false : _param_hideClearAllButton, dropdownClassName = param.dropdownClassName, dropdownOptionClassName = param.dropdownOptionClassName, emptyIndicatorClassName = param.emptyIndicatorClassName, _param_unremovableOptions = param.unremovableOptions, unremovableOptions = _param_unremovableOptions === void 0 ? [] : _param_unremovableOptions, name = param.name, _param_dropdownContainerClassName = param.dropdownContainerClassName, dropdownContainerClassName = _param_dropdownContainerClassName === void 0 ? "" : _param_dropdownContainerClassName;
3669
3802
  var _containerRef_current;
3670
- var _import_react6_default_useState = _sliced_to_array(import_react6.default.useState(false), 2), isLoading = _import_react6_default_useState[0], setIsLoading = _import_react6_default_useState[1];
3803
+ var _import_react7_default_useState = _sliced_to_array(import_react7.default.useState(false), 2), isLoading = _import_react7_default_useState[0], setIsLoading = _import_react7_default_useState[1];
3671
3804
  var _useFloating = useFloating({
3672
3805
  placement: "bottom-start",
3673
3806
  middleware: [
@@ -3677,20 +3810,20 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
3677
3810
  ],
3678
3811
  whileElementsMounted: autoUpdate
3679
3812
  }), x = _useFloating.x, y = _useFloating.y, strategy = _useFloating.strategy, refs = _useFloating.refs, update = _useFloating.update;
3680
- var containerRef = (0, import_react7.useRef)(null);
3813
+ var containerRef = (0, import_react8.useRef)(null);
3681
3814
  var setContainerRef = function(node) {
3682
3815
  containerRef.current = node;
3683
3816
  refs.setReference(node);
3684
3817
  };
3685
- var inputRef = (0, import_react7.useRef)(null);
3686
- var _import_react6_default_useState1 = _sliced_to_array(import_react6.default.useState(false), 2), open = _import_react6_default_useState1[0], setOpen = _import_react6_default_useState1[1];
3687
- var _import_react6_default_useState2 = _sliced_to_array(import_react6.default.useState(false), 2), onScrollbar = _import_react6_default_useState2[0], setOnScrollbar = _import_react6_default_useState2[1];
3688
- var dropdownRef = (0, import_react7.useRef)(null);
3689
- var _import_react6_default_useState3 = _sliced_to_array(import_react6.default.useState(value || []), 2), selected = _import_react6_default_useState3[0], setSelected = _import_react6_default_useState3[1];
3690
- var _import_react6_default_useState4 = _sliced_to_array(import_react6.default.useState(transToGroupOption(arrayDefaultOptions, groupBy)), 2), options = _import_react6_default_useState4[0], setOptions = _import_react6_default_useState4[1];
3691
- var _import_react6_default_useState5 = _sliced_to_array(import_react6.default.useState(""), 2), inputValue = _import_react6_default_useState5[0], setInputValue = _import_react6_default_useState5[1];
3818
+ var inputRef = (0, import_react8.useRef)(null);
3819
+ var _import_react7_default_useState1 = _sliced_to_array(import_react7.default.useState(false), 2), open = _import_react7_default_useState1[0], setOpen = _import_react7_default_useState1[1];
3820
+ var _import_react7_default_useState2 = _sliced_to_array(import_react7.default.useState(false), 2), onScrollbar = _import_react7_default_useState2[0], setOnScrollbar = _import_react7_default_useState2[1];
3821
+ var dropdownRef = (0, import_react8.useRef)(null);
3822
+ var _import_react7_default_useState3 = _sliced_to_array(import_react7.default.useState(value || []), 2), selected = _import_react7_default_useState3[0], setSelected = _import_react7_default_useState3[1];
3823
+ var _import_react7_default_useState4 = _sliced_to_array(import_react7.default.useState(transToGroupOption(arrayDefaultOptions, groupBy)), 2), options = _import_react7_default_useState4[0], setOptions = _import_react7_default_useState4[1];
3824
+ var _import_react7_default_useState5 = _sliced_to_array(import_react7.default.useState(""), 2), inputValue = _import_react7_default_useState5[0], setInputValue = _import_react7_default_useState5[1];
3692
3825
  var debouncedSearchTerm = useDebounce(inputValue, delay || 500);
3693
- import_react6.default.useImperativeHandle(ref, function() {
3826
+ import_react7.default.useImperativeHandle(ref, function() {
3694
3827
  return {
3695
3828
  selectedValue: _to_consumable_array(selected),
3696
3829
  input: inputRef.current,
@@ -3705,7 +3838,7 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
3705
3838
  }, [
3706
3839
  selected
3707
3840
  ]);
3708
- (0, import_react7.useEffect)(function() {
3841
+ (0, import_react8.useEffect)(function() {
3709
3842
  if (open) {
3710
3843
  update();
3711
3844
  }
@@ -3713,14 +3846,14 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
3713
3846
  open,
3714
3847
  update
3715
3848
  ]);
3716
- var handleClickOutside = (0, import_react7.useCallback)(function(event) {
3849
+ var handleClickOutside = (0, import_react8.useCallback)(function(event) {
3717
3850
  if (dropdownRef.current && !dropdownRef.current.contains(event.target) && containerRef.current && !containerRef.current.contains(event.target)) {
3718
3851
  var _inputRef_current;
3719
3852
  setOpen(false);
3720
3853
  (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.blur();
3721
3854
  }
3722
3855
  }, []);
3723
- (0, import_react7.useEffect)(function() {
3856
+ (0, import_react8.useEffect)(function() {
3724
3857
  if (open) {
3725
3858
  document.addEventListener("mousedown", handleClickOutside);
3726
3859
  document.addEventListener("touchend", handleClickOutside);
@@ -3736,14 +3869,14 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
3736
3869
  open,
3737
3870
  handleClickOutside
3738
3871
  ]);
3739
- (0, import_react7.useEffect)(function() {
3872
+ (0, import_react8.useEffect)(function() {
3740
3873
  if (value) {
3741
3874
  setSelected(value);
3742
3875
  }
3743
3876
  }, [
3744
3877
  value
3745
3878
  ]);
3746
- (0, import_react7.useEffect)(function() {
3879
+ (0, import_react8.useEffect)(function() {
3747
3880
  if (!arrayOptions || onSearch) return;
3748
3881
  var newOption = transToGroupOption(arrayOptions || [], groupBy);
3749
3882
  if (JSON.stringify(newOption) !== JSON.stringify(options)) {
@@ -3756,7 +3889,7 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
3756
3889
  onSearch,
3757
3890
  options
3758
3891
  ]);
3759
- (0, import_react7.useEffect)(function() {
3892
+ (0, import_react8.useEffect)(function() {
3760
3893
  var doSearchSync = function() {
3761
3894
  var res = onSearchSync === null || onSearchSync === void 0 ? void 0 : onSearchSync(debouncedSearchTerm);
3762
3895
  setOptions(transToGroupOption(res || [], groupBy));
@@ -3790,7 +3923,7 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
3790
3923
  triggerSearchOnFocus,
3791
3924
  onSearchSync
3792
3925
  ]);
3793
- (0, import_react7.useEffect)(function() {
3926
+ (0, import_react8.useEffect)(function() {
3794
3927
  var doSearch = /*#__PURE__*/ function() {
3795
3928
  var _ref = _async_to_generator(function() {
3796
3929
  var res;
@@ -3866,7 +3999,7 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
3866
3999
  triggerSearchOnFocus,
3867
4000
  onSearch
3868
4001
  ]);
3869
- var handleUnselect = (0, import_react7.useCallback)(function(option) {
4002
+ var handleUnselect = (0, import_react8.useCallback)(function(option) {
3870
4003
  if (unremovableOptions.find(function(v) {
3871
4004
  return (0, import_lodash4.isEqual)(v.value, option.value);
3872
4005
  })) {
@@ -3882,7 +4015,7 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
3882
4015
  selected,
3883
4016
  unremovableOptions
3884
4017
  ]);
3885
- var handleKeyDown = (0, import_react7.useCallback)(function(e) {
4018
+ var handleKeyDown = (0, import_react8.useCallback)(function(e) {
3886
4019
  var input = inputRef.current;
3887
4020
  if (input) {
3888
4021
  if (e.key === "Delete" || e.key === "Backspace") {
@@ -3901,7 +4034,7 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
3901
4034
  handleUnselect,
3902
4035
  selected
3903
4036
  ]);
3904
- var combinedFloatingRef = (0, import_react7.useCallback)(function(node) {
4037
+ var combinedFloatingRef = (0, import_react8.useCallback)(function(node) {
3905
4038
  if (!node) return;
3906
4039
  refs.setFloating(node);
3907
4040
  dropdownRef.current = node;
@@ -3920,7 +4053,7 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
3920
4053
  })) {
3921
4054
  return void 0;
3922
4055
  }
3923
- var Item = /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CommandItem, {
4056
+ var Item = /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CommandItem, {
3924
4057
  value: inputValue,
3925
4058
  className: "cursor-pointer",
3926
4059
  onMouseDown: function(e) {
@@ -3952,17 +4085,17 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
3952
4085
  }
3953
4086
  return void 0;
3954
4087
  };
3955
- var EmptyItem = (0, import_react7.useCallback)(function() {
4088
+ var EmptyItem = (0, import_react8.useCallback)(function() {
3956
4089
  if (!emptyIndicator) return void 0;
3957
4090
  if (onSearch && !createNewOptionLabel && Object.keys(options).length === 0) {
3958
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CommandItem, {
4091
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CommandItem, {
3959
4092
  className: "",
3960
4093
  value: "-",
3961
4094
  disabled: true,
3962
4095
  children: emptyIndicator
3963
4096
  });
3964
4097
  }
3965
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CommandEmpty2, {
4098
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CommandEmpty2, {
3966
4099
  className: emptyIndicatorClassName,
3967
4100
  children: emptyIndicator
3968
4101
  });
@@ -3973,13 +4106,13 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
3973
4106
  options,
3974
4107
  emptyIndicatorClassName
3975
4108
  ]);
3976
- var selectables = (0, import_react7.useMemo)(function() {
4109
+ var selectables = (0, import_react8.useMemo)(function() {
3977
4110
  return removePickedOption(options, selected);
3978
4111
  }, [
3979
4112
  options,
3980
4113
  selected
3981
4114
  ]);
3982
- var commandFilter = (0, import_react7.useCallback)(function() {
4115
+ var commandFilter = (0, import_react8.useCallback)(function() {
3983
4116
  if (commandProps === null || commandProps === void 0 ? void 0 : commandProps.filter) {
3984
4117
  return commandProps.filter;
3985
4118
  }
@@ -3993,7 +4126,7 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
3993
4126
  createNewOptionLabel,
3994
4127
  commandProps === null || commandProps === void 0 ? void 0 : commandProps.filter
3995
4128
  ]);
3996
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(Command, _object_spread_props(_object_spread({}, commandProps), {
4129
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(Command, _object_spread_props(_object_spread({}, commandProps), {
3997
4130
  onKeyDown: function(e) {
3998
4131
  var _commandProps_onKeyDown;
3999
4132
  handleKeyDown(e);
@@ -4003,7 +4136,7 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
4003
4136
  shouldFilter: (commandProps === null || commandProps === void 0 ? void 0 : commandProps.shouldFilter) !== void 0 ? commandProps.shouldFilter : !onSearch,
4004
4137
  filter: commandFilter(),
4005
4138
  children: [
4006
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", {
4139
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", {
4007
4140
  ref: setContainerRef,
4008
4141
  className: cn("relative min-h-[38px] py-2 rounded-lg border border-input text-sm transition-shadow focus-within:border-ring focus-within:outline-none focus-within:ring-[3px] focus-within:ring-ring/20 has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-50", {
4009
4142
  "p-1": selected.length !== 0,
@@ -4014,11 +4147,11 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
4014
4147
  if (disabled) return;
4015
4148
  (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
4016
4149
  },
4017
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", {
4150
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", {
4018
4151
  className: "flex flex-wrap gap-1",
4019
4152
  children: [
4020
4153
  selected.map(function(option) {
4021
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", {
4154
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", {
4022
4155
  className: cn("animate-fadeIn relative inline-flex h-7 cursor-default items-center rounded-md border border-solid bg-background pe-7 pl-2 ps-2 text-xs font-medium text-secondary-foreground transition-all hover:bg-background disabled:cursor-not-allowed disabled:opacity-50 data-[fixed]:pe-2 px-1", badgeClassName),
4023
4156
  "data-fixed": option.fixed,
4024
4157
  "data-disabled": disabled || void 0,
@@ -4026,7 +4159,7 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
4026
4159
  option.label,
4027
4160
  !unremovableOptions.find(function(v) {
4028
4161
  return (0, import_lodash4.isEqual)(v.value, option.value);
4029
- }) && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("button", {
4162
+ }) && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("button", {
4030
4163
  className: "absolute -inset-y-px -end-px flex size-7 items-center justify-center rounded-e-lg border border-transparent p-0 text-muted-foreground/80 outline-0 transition-colors hover:text-foreground focus-visible:outline focus-visible:outline-2 focus-visible:outline-ring/70",
4031
4164
  onKeyDown: function(e) {
4032
4165
  if (e.key === "Enter") {
@@ -4041,7 +4174,7 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
4041
4174
  return handleUnselect(option);
4042
4175
  },
4043
4176
  "aria-label": "Remove",
4044
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react3.X, {
4177
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react3.X, {
4045
4178
  size: 14,
4046
4179
  strokeWidth: 2,
4047
4180
  "aria-hidden": "true"
@@ -4050,7 +4183,7 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
4050
4183
  ]
4051
4184
  }, option.value);
4052
4185
  }),
4053
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_cmdk2.Command.Input, _object_spread_props(_object_spread({}, inputProps), {
4186
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_cmdk2.Command.Input, _object_spread_props(_object_spread({}, inputProps), {
4054
4187
  ref: inputRef,
4055
4188
  value: inputValue,
4056
4189
  disabled: disabled,
@@ -4081,7 +4214,7 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
4081
4214
  "ml-1": selected.length !== 0
4082
4215
  }, inputProps === null || inputProps === void 0 ? void 0 : inputProps.className)
4083
4216
  })),
4084
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("button", {
4217
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("button", {
4085
4218
  type: "button",
4086
4219
  onClick: function() {
4087
4220
  setSelected(selected.filter(function(s) {
@@ -4095,7 +4228,7 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
4095
4228
  return s.fixed;
4096
4229
  }).length === selected.length) && "hidden"),
4097
4230
  "aria-label": "Clear all",
4098
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react3.X, {
4231
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react3.X, {
4099
4232
  size: 16,
4100
4233
  strokeWidth: 2,
4101
4234
  "aria-hidden": "true"
@@ -4104,8 +4237,8 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
4104
4237
  ]
4105
4238
  })
4106
4239
  }),
4107
- open && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Portal2, {
4108
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", {
4240
+ open && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Portal2, {
4241
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", {
4109
4242
  ref: combinedFloatingRef,
4110
4243
  style: {
4111
4244
  position: strategy,
@@ -4115,7 +4248,7 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
4115
4248
  },
4116
4249
  className: cn("z-[9999] overflow-hidden rounded-lg border border-input", dropdownContainerClassName),
4117
4250
  "data-state": open ? "open" : "closed",
4118
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CommandList, {
4251
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CommandList, {
4119
4252
  className: "bg-popover text-popover-foreground shadow-lg shadow-black/5 outline-none",
4120
4253
  onMouseLeave: function() {
4121
4254
  setOnScrollbar(false);
@@ -4127,23 +4260,23 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
4127
4260
  var _inputRef_current;
4128
4261
  (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
4129
4262
  },
4130
- children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jsx_runtime14.Fragment, {
4263
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jsx_runtime15.Fragment, {
4131
4264
  children: loadingIndicator
4132
- }) : /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, {
4265
+ }) : /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, {
4133
4266
  children: [
4134
4267
  EmptyItem(),
4135
4268
  CreatableItem(),
4136
- !selectFirstItem && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CommandItem, {
4269
+ !selectFirstItem && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CommandItem, {
4137
4270
  value: "-",
4138
4271
  className: "hidden"
4139
4272
  }),
4140
4273
  Object.entries(selectables).map(function(param) {
4141
4274
  var _param = _sliced_to_array(param, 2), key = _param[0], dropdowns = _param[1];
4142
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CommandGroup, {
4275
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CommandGroup, {
4143
4276
  heading: key,
4144
4277
  className: cn("h-full overflow-auto", dropdownClassName),
4145
4278
  children: dropdowns.map(function(option) {
4146
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CommandItem, {
4279
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(CommandItem, {
4147
4280
  value: option.value,
4148
4281
  disabled: option.disable,
4149
4282
  onMouseDown: function(e) {
@@ -4174,7 +4307,7 @@ var MultipleSelector = (0, import_react7.forwardRef)(function(param, ref) {
4174
4307
  })
4175
4308
  })
4176
4309
  }),
4177
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("input", {
4310
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("input", {
4178
4311
  value: JSON.stringify(selected),
4179
4312
  type: "hidden",
4180
4313
  name: name
@@ -4186,16 +4319,16 @@ MultipleSelector.displayName = "MultipleSelector";
4186
4319
  var multiselect_default = MultipleSelector;
4187
4320
  // src/components/ui/popover.tsx
4188
4321
  var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
4189
- var import_jsx_runtime15 = require("react/jsx-runtime");
4322
+ var import_jsx_runtime16 = require("react/jsx-runtime");
4190
4323
  function Popover(_param) {
4191
4324
  var props = _extends({}, _object_destructuring_empty(_param));
4192
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(PopoverPrimitive.Root, _object_spread({
4325
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(PopoverPrimitive.Root, _object_spread({
4193
4326
  "data-slot": "popover"
4194
4327
  }, props));
4195
4328
  }
4196
4329
  function PopoverTrigger(_param) {
4197
4330
  var props = _extends({}, _object_destructuring_empty(_param));
4198
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(PopoverPrimitive.Trigger, _object_spread({
4331
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(PopoverPrimitive.Trigger, _object_spread({
4199
4332
  "data-slot": "popover-trigger"
4200
4333
  }, props));
4201
4334
  }
@@ -4206,8 +4339,8 @@ function PopoverContent(_param) {
4206
4339
  "sideOffset",
4207
4340
  "showArrow"
4208
4341
  ]);
4209
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(PopoverPrimitive.Portal, {
4210
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(PopoverPrimitive.Content, _object_spread_props(_object_spread({
4342
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(PopoverPrimitive.Portal, {
4343
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(PopoverPrimitive.Content, _object_spread_props(_object_spread({
4211
4344
  "data-slot": "popover-content",
4212
4345
  align: align,
4213
4346
  sideOffset: sideOffset,
@@ -4215,7 +4348,7 @@ function PopoverContent(_param) {
4215
4348
  }, props), {
4216
4349
  children: [
4217
4350
  props.children,
4218
- showArrow && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(PopoverPrimitive.Arrow, {
4351
+ showArrow && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(PopoverPrimitive.Arrow, {
4219
4352
  className: "fill-popover -my-px drop-shadow-[0_1px_0_hsl(var(--border))]"
4220
4353
  })
4221
4354
  ]
@@ -4224,27 +4357,27 @@ function PopoverContent(_param) {
4224
4357
  }
4225
4358
  // src/components/ui/SearchSelect.tsx
4226
4359
  var import_lucide_react4 = require("lucide-react");
4227
- var import_react8 = require("react");
4228
- var import_jsx_runtime16 = require("react/jsx-runtime");
4360
+ var import_react9 = require("react");
4361
+ var import_jsx_runtime17 = require("react/jsx-runtime");
4229
4362
  function SearchSelect(param) {
4230
4363
  var options = param.options, name = param.name, _param_selectPlaceholder = param.selectPlaceholder, selectPlaceholder = _param_selectPlaceholder === void 0 ? "Select" : _param_selectPlaceholder, defaultValue = param.defaultValue, _param_searchPlaceholder = param.searchPlaceholder, searchPlaceholder = _param_searchPlaceholder === void 0 ? "Search" : _param_searchPlaceholder, dropdownClassName = param.dropdownClassName, dropdownOptionClassName = param.dropdownOptionClassName, notFoundLabel = param.notFoundLabel, notFoundLabelClassName = param.notFoundLabelClassName, elementClassName = param.elementClassName, searchClassName = param.searchClassName, buttonClassName = param.buttonClassName, buttonFocusClassName = param.buttonFocusClassName, value = param.value, disabled = param.disabled, onChange = param.onChange, direction = param.direction, createNewOptionLabel = param.createNewOptionLabel, createNewOptionContainerClassName = param.createNewOptionContainerClassName;
4231
- var id = (0, import_react8.useId)();
4232
- var _ref = _sliced_to_array((0, import_react8.useState)(false), 2), open = _ref[0], setOpen = _ref[1];
4233
- var _ref1 = _sliced_to_array((0, import_react8.useState)(value || defaultValue || ""), 2), selectedValue = _ref1[0], setSelectedValue = _ref1[1];
4234
- var _ref2 = _sliced_to_array((0, import_react8.useState)(""), 2), searchQuery = _ref2[0], setSearchQuery = _ref2[1];
4235
- var _ref3 = _sliced_to_array((0, import_react8.useState)([]), 2), newOptions = _ref3[0], setNewOptions = _ref3[1];
4236
- (0, import_react8.useEffect)(function() {
4364
+ var id = (0, import_react9.useId)();
4365
+ var _ref = _sliced_to_array((0, import_react9.useState)(false), 2), open = _ref[0], setOpen = _ref[1];
4366
+ var _ref1 = _sliced_to_array((0, import_react9.useState)(value || defaultValue || ""), 2), selectedValue = _ref1[0], setSelectedValue = _ref1[1];
4367
+ var _ref2 = _sliced_to_array((0, import_react9.useState)(""), 2), searchQuery = _ref2[0], setSearchQuery = _ref2[1];
4368
+ var _ref3 = _sliced_to_array((0, import_react9.useState)([]), 2), newOptions = _ref3[0], setNewOptions = _ref3[1];
4369
+ (0, import_react9.useEffect)(function() {
4237
4370
  setSelectedValue(value);
4238
4371
  }, [
4239
4372
  value
4240
4373
  ]);
4241
- var allOptions = (0, import_react8.useMemo)(function() {
4374
+ var allOptions = (0, import_react9.useMemo)(function() {
4242
4375
  return _to_consumable_array(options).concat(_to_consumable_array(newOptions));
4243
4376
  }, [
4244
4377
  options,
4245
4378
  newOptions
4246
4379
  ]);
4247
- var filteredOptions = (0, import_react8.useMemo)(function() {
4380
+ var filteredOptions = (0, import_react9.useMemo)(function() {
4248
4381
  if (!searchQuery) return allOptions;
4249
4382
  var query2 = searchQuery.toLowerCase().trim();
4250
4383
  return allOptions.filter(function(option) {
@@ -4256,7 +4389,7 @@ function SearchSelect(param) {
4256
4389
  allOptions,
4257
4390
  searchQuery
4258
4391
  ]);
4259
- var selectLabel = (0, import_react8.useMemo)(function() {
4392
+ var selectLabel = (0, import_react9.useMemo)(function() {
4260
4393
  var _allOptions_find;
4261
4394
  return selectedValue ? ((_allOptions_find = allOptions.find(function(item) {
4262
4395
  return item.value === selectedValue;
@@ -4266,7 +4399,7 @@ function SearchSelect(param) {
4266
4399
  allOptions,
4267
4400
  selectPlaceholder
4268
4401
  ]);
4269
- var addNewOption = (0, import_react8.useCallback)(function() {
4402
+ var addNewOption = (0, import_react9.useCallback)(function() {
4270
4403
  var newOption = {
4271
4404
  value: searchQuery,
4272
4405
  label: searchQuery
@@ -4283,22 +4416,22 @@ function SearchSelect(param) {
4283
4416
  }, [
4284
4417
  searchQuery
4285
4418
  ]);
4286
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", {
4419
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", {
4287
4420
  style: {
4288
4421
  direction: direction
4289
4422
  },
4290
4423
  className: cn("w-full", elementClassName),
4291
4424
  children: [
4292
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Popover, {
4425
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Popover, {
4293
4426
  open: open,
4294
4427
  onOpenChange: function(isOpen) {
4295
4428
  setOpen(isOpen);
4296
4429
  if (!isOpen) setSearchQuery("");
4297
4430
  },
4298
4431
  children: [
4299
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(PopoverTrigger, {
4432
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(PopoverTrigger, {
4300
4433
  asChild: true,
4301
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Button, {
4434
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Button, {
4302
4435
  id: id,
4303
4436
  variant: "outline",
4304
4437
  role: "combobox",
@@ -4306,11 +4439,11 @@ function SearchSelect(param) {
4306
4439
  disabled: disabled,
4307
4440
  className: cn("border-input w-full justify-between px-3 font-normal outline-offset-0 outline-none focus-visible:outline-[3px]", buttonClassName, open && buttonFocusClassName),
4308
4441
  children: [
4309
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", {
4442
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", {
4310
4443
  className: cn("truncate", !selectedValue && "text-muted-foreground"),
4311
4444
  children: selectLabel
4312
4445
  }),
4313
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react4.ChevronDownIcon, {
4446
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react4.ChevronDownIcon, {
4314
4447
  size: 16,
4315
4448
  className: "text-muted-foreground/80 shrink-0",
4316
4449
  "aria-hidden": "true"
@@ -4318,12 +4451,12 @@ function SearchSelect(param) {
4318
4451
  ]
4319
4452
  })
4320
4453
  }),
4321
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(PopoverContent, {
4454
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(PopoverContent, {
4322
4455
  className: cn("border-input w-full min-w-[var(--radix-popper-anchor-width)] p-0 bg-[#fff]"),
4323
4456
  align: "start",
4324
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Command, {
4457
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Command, {
4325
4458
  children: [
4326
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CommandInput, {
4459
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CommandInput, {
4327
4460
  style: {
4328
4461
  direction: direction
4329
4462
  },
@@ -4339,24 +4472,24 @@ function SearchSelect(param) {
4339
4472
  }
4340
4473
  }
4341
4474
  }),
4342
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CommandList, {
4343
- children: filteredOptions.length === 0 && searchQuery !== "" ? createNewOptionLabel ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CommandEmpty, {
4475
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CommandList, {
4476
+ children: filteredOptions.length === 0 && searchQuery !== "" ? createNewOptionLabel ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CommandEmpty, {
4344
4477
  style: {
4345
4478
  direction: direction
4346
4479
  },
4347
4480
  onClick: addNewOption,
4348
4481
  className: cn("hover:bg-[#cccbcb] cursor-pointer w-full", createNewOptionContainerClassName),
4349
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", {
4482
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", {
4350
4483
  className: cn("w-full h-10 flex items-center px-2", notFoundLabelClassName),
4351
4484
  children: "".concat(createNewOptionLabel, " : ").concat(searchQuery)
4352
4485
  })
4353
- }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CommandEmpty, {
4486
+ }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CommandEmpty, {
4354
4487
  className: cn("w-full py-2 text-center", notFoundLabelClassName),
4355
4488
  children: notFoundLabel
4356
- }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CommandGroup, {
4489
+ }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CommandGroup, {
4357
4490
  className: cn("max-h-52 overflow-y-auto", dropdownClassName),
4358
4491
  children: filteredOptions.map(function(option) {
4359
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(CommandItem, {
4492
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(CommandItem, {
4360
4493
  className: cn("hover:bg-[#cccbcb] cursor-pointer", dropdownOptionClassName, selectedValue === option.value && "bg-[#cccbcb]"),
4361
4494
  value: JSON.stringify(option),
4362
4495
  onSelect: function(currentValue) {
@@ -4368,7 +4501,7 @@ function SearchSelect(param) {
4368
4501
  },
4369
4502
  children: [
4370
4503
  option.label,
4371
- selectedValue === option.value && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react4.CheckIcon, {
4504
+ selectedValue === option.value && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_lucide_react4.CheckIcon, {
4372
4505
  size: 16,
4373
4506
  className: "ml-auto"
4374
4507
  })
@@ -4382,7 +4515,7 @@ function SearchSelect(param) {
4382
4515
  })
4383
4516
  ]
4384
4517
  }),
4385
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("input", {
4518
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("input", {
4386
4519
  name: name,
4387
4520
  type: "hidden",
4388
4521
  value: selectedValue
@@ -4391,7 +4524,7 @@ function SearchSelect(param) {
4391
4524
  });
4392
4525
  }
4393
4526
  // src/components/table/components.tsx
4394
- var import_jsx_runtime17 = require("react/jsx-runtime");
4527
+ var import_jsx_runtime18 = require("react/jsx-runtime");
4395
4528
  var getFixedNumber = function() {
4396
4529
  var number = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, fix = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 4;
4397
4530
  var sum_value = number % 1 === 0 ? number : number.toFixed(fix).replace(/\.?0+$/, "");
@@ -4401,14 +4534,14 @@ var TableRow2 = function(param) {
4401
4534
  var item = param.item, index2 = param.index;
4402
4535
  var _useTableContext = useTableContext(), rowStyles = _useTableContext.rowStyles, rowClassName = _useTableContext.rowClassName, keysToRender = _useTableContext.keysToRender, onRowClick = _useTableContext.onRowClick, zebraStriping = _useTableContext.zebraStriping;
4403
4536
  var zebraClassName = zebraStriping ? index2 % 2 === 0 ? zebraStriping.evenRowClassName || "" : zebraStriping.oddRowClassName || "bg-gray-300" : "";
4404
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("tr", {
4537
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("tr", {
4405
4538
  className: cn("hover:bg-[#808080] hover:text-[#fff]", zebraClassName, rowClassName || ""),
4406
4539
  onClick: function() {
4407
4540
  return onRowClick && onRowClick(item);
4408
4541
  },
4409
4542
  style: rowStyles,
4410
4543
  children: keysToRender.map(function(key, index3) {
4411
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(TableCell, {
4544
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(TableCell, {
4412
4545
  value: item[key]
4413
4546
  }, index3);
4414
4547
  })
@@ -4417,7 +4550,7 @@ var TableRow2 = function(param) {
4417
4550
  var TableCell = function(param) {
4418
4551
  var value = param.value;
4419
4552
  var _useTableContext = useTableContext(), cellStyle = _useTableContext.cellStyle, cellClassName = _useTableContext.cellClassName;
4420
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", {
4553
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("td", {
4421
4554
  title: [
4422
4555
  "string",
4423
4556
  "number",
@@ -4428,60 +4561,60 @@ var TableCell = function(param) {
4428
4561
  children: value
4429
4562
  });
4430
4563
  };
4431
- var Filter = (0, import_react9.memo)(function(param) {
4564
+ var Filter = (0, import_react10.memo)(function(param) {
4432
4565
  var filterableColumn = param.filterableColumn, index2 = param.index;
4433
4566
  var _filters_filterableColumn_dataKey, _filters_filterableColumn_dataKey1, _filterOptions_filterableColumn_dataKey;
4434
4567
  var _useTableContext = useTableContext(), direction = _useTableContext.direction, headers = _useTableContext.headers, filters = _useTableContext.filters, filterOptions = _useTableContext.filterOptions, filterPopupsDisplay = _useTableContext.filterPopupsDisplay, handleFilterChange = _useTableContext.handleFilterChange, handleFilterClick = _useTableContext.handleFilterClick, closeFilterWindow = _useTableContext.closeFilterWindow, filterLabel = _useTableContext.filterLabel;
4435
4568
  var displayRight = direction === "rtl" && index2 === headers.length - 1 || direction === "ltr" && index2 !== headers.length - 1;
4436
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", {
4569
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", {
4437
4570
  className: "absolute top-1 right-1 ",
4438
4571
  children: [
4439
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("button", {
4572
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("button", {
4440
4573
  title: filterLabel + " " + filterableColumn.header,
4441
4574
  className: "text-[12px]",
4442
4575
  onClick: function() {
4443
4576
  return handleFilterClick(filterableColumn.dataKey);
4444
4577
  },
4445
- children: filterPopupsDisplay === filterableColumn.dataKey ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jsx_runtime17.Fragment, {
4446
- children: ((_filters_filterableColumn_dataKey = filters[filterableColumn.dataKey]) === null || _filters_filterableColumn_dataKey === void 0 ? void 0 : _filters_filterableColumn_dataKey.length) > 0 ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jsx_runtime17.Fragment, {
4578
+ children: filterPopupsDisplay === filterableColumn.dataKey ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, {
4579
+ children: ((_filters_filterableColumn_dataKey = filters[filterableColumn.dataKey]) === null || _filters_filterableColumn_dataKey === void 0 ? void 0 : _filters_filterableColumn_dataKey.length) > 0 ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, {
4447
4580
  children: slashFilterSvg(true)
4448
- }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jsx_runtime17.Fragment, {
4581
+ }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, {
4449
4582
  children: emptyFilterSvg(true)
4450
4583
  })
4451
- }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jsx_runtime17.Fragment, {
4452
- children: ((_filters_filterableColumn_dataKey1 = filters[filterableColumn.dataKey]) === null || _filters_filterableColumn_dataKey1 === void 0 ? void 0 : _filters_filterableColumn_dataKey1.length) > 0 ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jsx_runtime17.Fragment, {
4584
+ }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, {
4585
+ children: ((_filters_filterableColumn_dataKey1 = filters[filterableColumn.dataKey]) === null || _filters_filterableColumn_dataKey1 === void 0 ? void 0 : _filters_filterableColumn_dataKey1.length) > 0 ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, {
4453
4586
  children: slashFilterSvg()
4454
- }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jsx_runtime17.Fragment, {
4587
+ }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, {
4455
4588
  children: emptyFilterSvg()
4456
4589
  })
4457
4590
  })
4458
4591
  }),
4459
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", {
4592
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", {
4460
4593
  className: "relative",
4461
- children: filterPopupsDisplay === filterableColumn.dataKey && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", {
4594
+ children: filterPopupsDisplay === filterableColumn.dataKey && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", {
4462
4595
  className: "absolute top-[-20px] z-20 ".concat(displayRight ? " left-[100%]" : "right-[100%]", " w-44 h-52 text-black bg-white p-1 flex flex-col items-center gap-2 shadow"),
4463
4596
  children: [
4464
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", {
4597
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", {
4465
4598
  className: "flex justify-between items-center border-black border-b-[1px] w-[90%]",
4466
4599
  children: [
4467
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", {
4600
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", {
4468
4601
  className: "text-start",
4469
4602
  children: filterLabel + " " + filterableColumn.header
4470
4603
  }),
4471
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("button", {
4604
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("button", {
4472
4605
  onClick: closeFilterWindow,
4473
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(RedXSvg2, {})
4606
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(RedXSvg2, {})
4474
4607
  })
4475
4608
  ]
4476
4609
  }),
4477
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", {
4610
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", {
4478
4611
  className: "overflow-auto h-[80%] flex flex-col gap-1 w-full cursor-pointer ",
4479
4612
  children: (_filterOptions_filterableColumn_dataKey = filterOptions[filterableColumn.dataKey]) === null || _filterOptions_filterableColumn_dataKey === void 0 ? void 0 : _filterOptions_filterableColumn_dataKey.map(function(option, i) {
4480
4613
  var _filters_filterableColumn_dataKey;
4481
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", {
4614
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", {
4482
4615
  className: "flex items-center px-2 justify-start hover:bg-[#547f22] hover:text-white",
4483
4616
  children: [
4484
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("input", {
4617
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("input", {
4485
4618
  type: "checkbox",
4486
4619
  className: "cursor-pointer",
4487
4620
  checked: (_filters_filterableColumn_dataKey = filters[filterableColumn.dataKey]) === null || _filters_filterableColumn_dataKey === void 0 ? void 0 : _filters_filterableColumn_dataKey.includes(option),
@@ -4489,7 +4622,7 @@ var Filter = (0, import_react9.memo)(function(param) {
4489
4622
  return handleFilterChange(filterableColumn.dataKey, option);
4490
4623
  }
4491
4624
  }),
4492
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("button", {
4625
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("button", {
4493
4626
  className: "flex-1 text-start px-2",
4494
4627
  onClick: function() {
4495
4628
  return handleFilterChange(filterableColumn.dataKey, option);
@@ -4506,39 +4639,39 @@ var Filter = (0, import_react9.memo)(function(param) {
4506
4639
  ]
4507
4640
  });
4508
4641
  });
4509
- var TableHead = (0, import_react9.memo)(function() {
4642
+ var TableHead = (0, import_react10.memo)(function() {
4510
4643
  var _useTableContext = useTableContext(), headers = _useTableContext.headers, headerStyle = _useTableContext.headerStyle, headerCellStyle = _useTableContext.headerCellStyle, sortColumn = _useTableContext.sortColumn, handleSort = _useTableContext.handleSort, sortKeys = _useTableContext.sortKeys, sortOrder = _useTableContext.sortOrder, _useTableContext_filterableColumns = _useTableContext.filterableColumns, filterableColumns = _useTableContext_filterableColumns === void 0 ? [] : _useTableContext_filterableColumns, sortLabel = _useTableContext.sortLabel, headerClassName = _useTableContext.headerClassName, headerCellClassName = _useTableContext.headerCellClassName;
4511
- var sortDisplay = (0, import_react9.useMemo)(function() {
4644
+ var sortDisplay = (0, import_react10.useMemo)(function() {
4512
4645
  return Boolean(sortKeys === null || sortKeys === void 0 ? void 0 : sortKeys.length);
4513
4646
  }, [
4514
4647
  sortKeys
4515
4648
  ]);
4516
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("thead", {
4649
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("thead", {
4517
4650
  className: cn("bg-[#282828] text-white sticky top-0", headerClassName),
4518
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("tr", {
4651
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("tr", {
4519
4652
  style: headerStyle,
4520
4653
  children: headers.map(function(header, index2) {
4521
4654
  var filterableColumn = filterableColumns.find(function(col) {
4522
4655
  return col.header === header;
4523
4656
  });
4524
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("th", {
4657
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("th", {
4525
4658
  title: sortDisplay ? "".concat(sortLabel, " ").concat(header) : header,
4526
4659
  style: headerCellStyle,
4527
4660
  className: cn("border-black border-[1px] max-w-[130px] px-2 text-center relative", headerCellClassName),
4528
4661
  children: [
4529
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", {
4662
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", {
4530
4663
  className: "px-2 ".concat(sortDisplay ? "cursor-pointer" : ""),
4531
4664
  onClick: function() {
4532
4665
  return sortDisplay && handleSort(index2);
4533
4666
  },
4534
4667
  children: header
4535
4668
  }),
4536
- sortDisplay && sortColumn === index2 && (sortOrder === "desc" ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jsx_runtime17.Fragment, {
4669
+ sortDisplay && sortColumn === index2 && (sortOrder === "desc" ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, {
4537
4670
  children: sortSvg()
4538
- }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jsx_runtime17.Fragment, {
4671
+ }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, {
4539
4672
  children: sortSvg(true)
4540
4673
  })),
4541
- filterableColumn && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Filter, {
4674
+ filterableColumn && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Filter, {
4542
4675
  filterableColumn: filterableColumn,
4543
4676
  index: index2
4544
4677
  })
@@ -4548,39 +4681,39 @@ var TableHead = (0, import_react9.memo)(function() {
4548
4681
  })
4549
4682
  });
4550
4683
  }, renderOnce);
4551
- var TableBody = (0, import_react9.memo)(function() {
4684
+ var TableBody = (0, import_react10.memo)(function() {
4552
4685
  var dataToRender = useTableContext().dataToRender;
4553
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("tbody", {
4686
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("tbody", {
4554
4687
  className: "divide-y divide-gray-600",
4555
4688
  children: dataToRender.renderedData.map(function(item, index2) {
4556
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(TableRow2, {
4689
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(TableRow2, {
4557
4690
  item: item,
4558
4691
  index: index2
4559
4692
  }, index2);
4560
4693
  })
4561
4694
  });
4562
4695
  }, renderOnce);
4563
- var MaxRowsLabel = (0, import_react9.memo)(function() {
4696
+ var MaxRowsLabel = (0, import_react10.memo)(function() {
4564
4697
  var _useTableContext = useTableContext(), data = _useTableContext.data, dataToRender = _useTableContext.dataToRender, maxRowsLabel1 = _useTableContext.maxRowsLabel1, maxRowsLabel2 = _useTableContext.maxRowsLabel2, maxRows = _useTableContext.maxRows, maxRowsContainerClassName = _useTableContext.maxRowsContainerClassName;
4565
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", {
4698
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", {
4566
4699
  className: cn("flex justify-start items-center text-lg gap-1", maxRowsContainerClassName || ""),
4567
4700
  children: [
4568
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", {
4701
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", {
4569
4702
  children: maxRowsLabel1
4570
4703
  }),
4571
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", {
4704
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", {
4572
4705
  children: maxRows > dataToRender.renderedData.length ? dataToRender.renderedData.length : maxRows
4573
4706
  }),
4574
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", {
4707
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", {
4575
4708
  children: maxRowsLabel2
4576
4709
  }),
4577
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", {
4710
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", {
4578
4711
  children: dataToRender.filtered.length
4579
4712
  })
4580
4713
  ]
4581
4714
  });
4582
4715
  }, renderOnce);
4583
- var ExportToExcel = (0, import_react9.memo)(function() {
4716
+ var ExportToExcel = (0, import_react10.memo)(function() {
4584
4717
  var _useTableContext = useTableContext(), exportToExcelKeys = _useTableContext.exportToExcelKeys, dataToAddToExcelTable = _useTableContext.dataToAddToExcelTable, excelFileName = _useTableContext.excelFileName, dataToRender = _useTableContext.dataToRender, headers = _useTableContext.headers, sumColumns = _useTableContext.sumColumns, exportExcelTitle = _useTableContext.exportExcelTitle, exportExcelContent = _useTableContext.exportExcelContent, exportToExcelClassName = _useTableContext.exportToExcelClassName;
4585
4718
  var addPropertiesToExcel = function(properties) {
4586
4719
  var newData = _to_consumable_array(dataToRender.renderedData);
@@ -4653,16 +4786,16 @@ var ExportToExcel = (0, import_react9.memo)(function() {
4653
4786
  return _ref.apply(this, arguments);
4654
4787
  };
4655
4788
  }();
4656
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("button", {
4789
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("button", {
4657
4790
  onClick: onExportExcelClick,
4658
4791
  title: exportExcelTitle,
4659
4792
  className: cn("px-2 py-[2px] bg-[#547f22] text-white rounded-lg text-[16px]", exportToExcelClassName),
4660
4793
  children: exportExcelContent || exportToExcelSvg()
4661
4794
  });
4662
4795
  }, renderOnce);
4663
- var Search = (0, import_react9.memo)(function() {
4796
+ var Search = (0, import_react10.memo)(function() {
4664
4797
  var _useTableContext = useTableContext(), searchQuery = _useTableContext.searchQuery, handleSearch = _useTableContext.handleSearch, searchPlaceHolder = _useTableContext.searchPlaceHolder, searchInputClassName = _useTableContext.searchInputClassName, searchInputStyle = _useTableContext.searchInputStyle;
4665
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("input", {
4798
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("input", {
4666
4799
  className: cn("w-40 border-black border-[1px] text-lg px-2 ", searchInputClassName),
4667
4800
  type: "text",
4668
4801
  placeholder: searchPlaceHolder,
@@ -4671,19 +4804,19 @@ var Search = (0, import_react9.memo)(function() {
4671
4804
  style: searchInputStyle
4672
4805
  });
4673
4806
  }, renderOnce);
4674
- var Summary = (0, import_react9.memo)(function() {
4807
+ var Summary = (0, import_react10.memo)(function() {
4675
4808
  var _useTableContext = useTableContext(), summaryContainerStyle = _useTableContext.summaryContainerStyle, summaryLabelStyle = _useTableContext.summaryLabelStyle, summaryLabel = _useTableContext.summaryLabel, summaryRowStyle = _useTableContext.summaryRowStyle, sumColumns = _useTableContext.sumColumns, dataToRender = _useTableContext.dataToRender, direction = _useTableContext.direction;
4676
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", {
4809
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", {
4677
4810
  style: _object_spread_props(_object_spread({}, summaryContainerStyle), {
4678
4811
  direction: direction
4679
4812
  }),
4680
4813
  className: "w-full h-8 flex justify-between items-center px-3 text-[18px] font-bold",
4681
4814
  children: [
4682
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", {
4815
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", {
4683
4816
  style: summaryLabelStyle,
4684
4817
  children: summaryLabel
4685
4818
  }),
4686
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", {
4819
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", {
4687
4820
  style: summaryRowStyle,
4688
4821
  className: "flex gap-3",
4689
4822
  children: sumColumns.map(function(val) {
@@ -4691,16 +4824,16 @@ var Summary = (0, import_react9.memo)(function() {
4691
4824
  return acc + Number(v[val.dataKey]) || 0;
4692
4825
  }, 0);
4693
4826
  var sum_value = getFixedNumber(sum_res);
4694
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", {
4827
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", {
4695
4828
  className: "flex gap-1 justify-start",
4696
4829
  children: [
4697
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", {
4830
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", {
4698
4831
  children: val.label
4699
4832
  }),
4700
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", {
4833
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", {
4701
4834
  children: ":"
4702
4835
  }),
4703
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", {
4836
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", {
4704
4837
  children: val.ui ? val.ui(sum_value) : sum_value
4705
4838
  })
4706
4839
  ]
@@ -4717,7 +4850,7 @@ var TimesUI = function(param) {
4717
4850
  fromFormat: fromFormat,
4718
4851
  tz: tz
4719
4852
  });
4720
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", {
4853
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", {
4721
4854
  style: {
4722
4855
  direction: "ltr"
4723
4856
  },
@@ -4733,22 +4866,22 @@ var TableButton = function(param) {
4733
4866
  edit: "fa-light fa-pen-to-square text-xl",
4734
4867
  delete: "fa-light fa-trash text-xl"
4735
4868
  };
4736
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jsx_runtime17.Fragment, {
4737
- children: type === "custom" ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("button", {
4869
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, {
4870
+ children: type === "custom" ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("button", {
4738
4871
  className: className,
4739
4872
  title: title,
4740
4873
  onClick: onClick,
4741
4874
  children: children
4742
- }) : type === "add" ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Button, {
4875
+ }) : type === "add" ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Button, {
4743
4876
  title: title,
4744
4877
  onClick: onClick,
4745
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("i", {
4878
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("i", {
4746
4879
  className: cn("fa-regular fa-plus text-2xl", className)
4747
4880
  })
4748
- }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("button", {
4881
+ }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("button", {
4749
4882
  title: title,
4750
4883
  onClick: onClick,
4751
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("i", {
4884
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("i", {
4752
4885
  className: cn(icon[type], className)
4753
4886
  })
4754
4887
  })
@@ -4756,7 +4889,7 @@ var TableButton = function(param) {
4756
4889
  };
4757
4890
  var DurationUI = function(param) {
4758
4891
  var duration = param.duration, _param_daysLabel = param.daysLabel, daysLabel = _param_daysLabel === void 0 ? "d" : _param_daysLabel, _param_hoursLabel = param.hoursLabel, hoursLabel = _param_hoursLabel === void 0 ? "h" : _param_hoursLabel, _param_minutesLabel = param.minutesLabel, minutesLabel = _param_minutesLabel === void 0 ? "m" : _param_minutesLabel, _param_secondsLabel = param.secondsLabel, secondsLabel = _param_secondsLabel === void 0 ? "s" : _param_secondsLabel, _param_className = param.className, className = _param_className === void 0 ? "" : _param_className, direction = param.direction;
4759
- var _ref = (0, import_react9.useMemo)(function() {
4892
+ var _ref = (0, import_react10.useMemo)(function() {
4760
4893
  var secondsInDay = 86400;
4761
4894
  var days = Math.floor(duration / secondsInDay);
4762
4895
  var remainderAfterDays = duration % secondsInDay;
@@ -4777,14 +4910,14 @@ var DurationUI = function(param) {
4777
4910
  }, [
4778
4911
  duration
4779
4912
  ]), daysStr = _ref.daysStr, hoursStr = _ref.hoursStr, minutesStr = _ref.minutesStr, secondsStr = _ref.secondsStr;
4780
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", {
4913
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", {
4781
4914
  title: "".concat(daysStr, " ").concat(daysLabel, " ").concat(hoursStr, " ").concat(hoursLabel, " ").concat(minutesStr, " ").concat(minutesLabel, " ").concat(secondsStr, " ").concat(secondsLabel).trim(),
4782
4915
  style: {
4783
4916
  direction: "ltr"
4784
4917
  },
4785
4918
  className: cn("flex gap-1 ".concat(direction === "rtl" ? "justify-end" : "justify-start"), className),
4786
4919
  children: [
4787
- daysStr !== "00" && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("span", {
4920
+ daysStr !== "00" && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", {
4788
4921
  style: {
4789
4922
  display: "inline-block"
4790
4923
  },
@@ -4794,7 +4927,7 @@ var DurationUI = function(param) {
4794
4927
  daysLabel
4795
4928
  ]
4796
4929
  }),
4797
- hoursStr !== "00" && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("span", {
4930
+ hoursStr !== "00" && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", {
4798
4931
  style: {
4799
4932
  display: "inline-block"
4800
4933
  },
@@ -4804,7 +4937,7 @@ var DurationUI = function(param) {
4804
4937
  hoursLabel
4805
4938
  ]
4806
4939
  }),
4807
- minutesStr !== "00" && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("span", {
4940
+ minutesStr !== "00" && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", {
4808
4941
  style: {
4809
4942
  display: "inline-block"
4810
4943
  },
@@ -4814,7 +4947,7 @@ var DurationUI = function(param) {
4814
4947
  minutesLabel
4815
4948
  ]
4816
4949
  }),
4817
- secondsStr !== "00" && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("span", {
4950
+ secondsStr !== "00" && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", {
4818
4951
  style: {
4819
4952
  display: "inline-block"
4820
4953
  },
@@ -4829,7 +4962,7 @@ var DurationUI = function(param) {
4829
4962
  };
4830
4963
  var PhoneUI = function(param) {
4831
4964
  var phone = param.phone, direction = param.direction, _param_className = param.className, className = _param_className === void 0 ? "" : _param_className;
4832
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", {
4965
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", {
4833
4966
  style: {
4834
4967
  direction: "ltr"
4835
4968
  },
@@ -4840,9 +4973,9 @@ var PhoneUI = function(param) {
4840
4973
  };
4841
4974
  var BooleanUi = function(param) {
4842
4975
  var value = param.value, size3 = param.size, className = param.className, falseUi = param.falseUi, trueUi = param.trueUi;
4843
- return value ? trueUi !== null && trueUi !== void 0 ? trueUi : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("i", {
4976
+ return value ? trueUi !== null && trueUi !== void 0 ? trueUi : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("i", {
4844
4977
  className: cn("fa-light fa-check ".concat(size3 === "small" ? "text-lg" : "text-2xl"), className)
4845
- }) : falseUi !== null && falseUi !== void 0 ? falseUi : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("i", {
4978
+ }) : falseUi !== null && falseUi !== void 0 ? falseUi : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("i", {
4846
4979
  className: cn("fa-light fa-xmark ".concat(size3 === "small" ? "text-lg" : "text-2xl"), className)
4847
4980
  });
4848
4981
  };
@@ -4852,7 +4985,7 @@ var GeoUi = function(param) {
4852
4985
  var lat = value.lat || value.latitude;
4853
4986
  var googleMapsLink = getLocationUrl(lang, lat);
4854
4987
  var langLatUi = linkUi || " ".concat(lang, " ").concat(lat);
4855
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("a", {
4988
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("a", {
4856
4989
  href: googleMapsLink,
4857
4990
  target: "_blank",
4858
4991
  className: cn("_ellipsis text-blue-500 hover:text-blue-700 underline", className),
@@ -4862,7 +4995,7 @@ var GeoUi = function(param) {
4862
4995
  };
4863
4996
  var NumberUI = function(param) {
4864
4997
  var number = param.number, direction = param.direction, _param_className = param.className, className = _param_className === void 0 ? "" : _param_className;
4865
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", {
4998
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", {
4866
4999
  style: {
4867
5000
  direction: "ltr"
4868
5001
  },
@@ -4872,15 +5005,15 @@ var NumberUI = function(param) {
4872
5005
  });
4873
5006
  };
4874
5007
  // src/components/forms/ModularForm/ModularForm.tsx
4875
- var import_react12 = require("react");
5008
+ var import_react13 = require("react");
4876
5009
  // src/components/forms/ModularForm/formElements.tsx
4877
- var import_react11 = require("react");
5010
+ var import_react12 = require("react");
4878
5011
  // src/components/forms/ModularForm/InternationalPhonePicker.tsx
4879
5012
  var import_lucide_react5 = require("lucide-react");
4880
- var import_react10 = require("react");
5013
+ var import_react11 = require("react");
4881
5014
  var RPNInput = __toESM(require("react-phone-number-input"));
4882
5015
  var import_flags = __toESM(require("react-phone-number-input/flags"));
4883
- var import_jsx_runtime18 = require("react/jsx-runtime");
5016
+ var import_jsx_runtime19 = require("react/jsx-runtime");
4884
5017
  function InternationalPhonePicker(param) {
4885
5018
  var setPhoneValue = param.setPhoneValue, _param_phoneValue = param.phoneValue, phoneValue = _param_phoneValue === void 0 ? "" : _param_phoneValue, _param_placeholder = param.placeholder, placeholder = _param_placeholder === void 0 ? "" : _param_placeholder, _param_className = param.className, className = _param_className === void 0 ? "" : _param_className, _param_containerClassName = param.containerClassName, containerClassName = _param_containerClassName === void 0 ? "" : _param_containerClassName, _param_defaultCountry = param.defaultCountry, defaultCountry = _param_defaultCountry === void 0 ? "IL" : _param_defaultCountry, _param_flagContainerClassName = param.flagContainerClassName, flagContainerClassName = _param_flagContainerClassName === void 0 ? "" : _param_flagContainerClassName, _param_inputClassName = param.inputClassName, inputClassName = _param_inputClassName === void 0 ? "" : _param_inputClassName, defaultValue = param.defaultValue, name = param.name, style = param.style, onEnter = param.onEnter, labelContent = param.labelContent, labelClassName = param.labelClassName, required = param.required, direction = param.direction;
4886
5019
  var handleKeyDown = function(e) {
@@ -4890,8 +5023,8 @@ function InternationalPhonePicker(param) {
4890
5023
  }
4891
5024
  }
4892
5025
  };
4893
- var _ref = _sliced_to_array((0, import_react10.useState)(""), 2), tempPhoneValue = _ref[0], setTempPhoneValue = _ref[1];
4894
- (0, import_react10.useEffect)(function() {
5026
+ var _ref = _sliced_to_array((0, import_react11.useState)(""), 2), tempPhoneValue = _ref[0], setTempPhoneValue = _ref[1];
5027
+ (0, import_react11.useEffect)(function() {
4895
5028
  if (defaultValue) {
4896
5029
  if (setPhoneValue) {
4897
5030
  setPhoneValue(defaultValue);
@@ -4903,19 +5036,19 @@ function InternationalPhonePicker(param) {
4903
5036
  defaultValue,
4904
5037
  setPhoneValue
4905
5038
  ]);
4906
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", {
5039
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", {
4907
5040
  style: {
4908
5041
  direction: direction
4909
5042
  },
4910
5043
  className: cn("space-y-2", "".concat(labelContent ? "flex gap-1 items-center" : ""), containerClassName),
4911
5044
  children: [
4912
- labelContent && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ElementLabel, {
5045
+ labelContent && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ElementLabel, {
4913
5046
  labelContent: labelContent,
4914
5047
  labelClassName: labelClassName,
4915
5048
  name: name,
4916
5049
  required: required
4917
5050
  }),
4918
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(RPNInput.default, {
5051
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(RPNInput.default, {
4919
5052
  style: {
4920
5053
  direction: "ltr"
4921
5054
  },
@@ -4948,7 +5081,7 @@ function InternationalPhonePicker(param) {
4948
5081
  setTempPhoneValue(newValue !== null && newValue !== void 0 ? newValue : "");
4949
5082
  }
4950
5083
  }),
4951
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("input", {
5084
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("input", {
4952
5085
  type: "hidden",
4953
5086
  name: name,
4954
5087
  value: tempPhoneValue
@@ -4956,20 +5089,20 @@ function InternationalPhonePicker(param) {
4956
5089
  ]
4957
5090
  });
4958
5091
  }
4959
- var PhoneInput = (0, import_react10.forwardRef)(function(_param, ref) {
5092
+ var PhoneInput = (0, import_react11.forwardRef)(function(_param, ref) {
4960
5093
  var className = _param.className, onKeyDown = _param.onKeyDown, defaultValue = _param.defaultValue, style = _param.style, props = _object_without_properties(_param, [
4961
5094
  "className",
4962
5095
  "onKeyDown",
4963
5096
  "defaultValue",
4964
5097
  "style"
4965
5098
  ]);
4966
- var inputRef = (0, import_react10.useRef)(null);
4967
- (0, import_react10.useEffect)(function() {
5099
+ var inputRef = (0, import_react11.useRef)(null);
5100
+ (0, import_react11.useEffect)(function() {
4968
5101
  if (inputRef.current) {
4969
5102
  inputRef.current.focus();
4970
5103
  }
4971
5104
  }, []);
4972
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Input, _object_spread({
5105
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Input, _object_spread({
4973
5106
  className: cn("-ms-px rounded-s-none shadow-none focus-visible:z-10 h-full", className),
4974
5107
  onKeyDown: onKeyDown,
4975
5108
  defaultValue: defaultValue,
@@ -4990,24 +5123,24 @@ var CountrySelect = function(param) {
4990
5123
  var handleSelect = function(event) {
4991
5124
  onChange(event.target.value);
4992
5125
  };
4993
- var originalClassName = (0, import_react10.useMemo)(function() {
5126
+ var originalClassName = (0, import_react11.useMemo)(function() {
4994
5127
  return "relative inline-flex items-center self-stretch rounded-s-lg border border-input bg-background py-2 pe-2 ps-3 text-muted-foreground transition-shadow focus-within:z-10 focus-within:border-ring focus-within:outline-none focus-within:ring-[3px] focus-within:ring-ring/20 hover:bg-accent hover:text-foreground has-[:disabled]:pointer-events-none has-[:disabled]:opacity-50";
4995
5128
  }, []);
4996
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", {
5129
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", {
4997
5130
  className: cn(originalClassName, className),
4998
5131
  children: [
4999
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", {
5132
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", {
5000
5133
  className: "inline-flex items-center gap-1",
5001
5134
  "aria-hidden": "true",
5002
5135
  children: [
5003
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(FlagComponent, {
5136
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FlagComponent, {
5004
5137
  country: value,
5005
5138
  countryName: value,
5006
5139
  "aria-hidden": "true"
5007
5140
  }),
5008
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", {
5141
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", {
5009
5142
  className: "text-muted-foreground/80",
5010
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react5.ChevronDown, {
5143
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react5.ChevronDown, {
5011
5144
  size: 16,
5012
5145
  strokeWidth: 2,
5013
5146
  "aria-hidden": "true"
@@ -5015,7 +5148,7 @@ var CountrySelect = function(param) {
5015
5148
  })
5016
5149
  ]
5017
5150
  }),
5018
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("select", {
5151
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("select", {
5019
5152
  disabled: disabled,
5020
5153
  value: value,
5021
5154
  onChange: handleSelect,
@@ -5025,7 +5158,7 @@ var CountrySelect = function(param) {
5025
5158
  return x.value;
5026
5159
  }).map(function(option, i) {
5027
5160
  var _option_value;
5028
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("option", {
5161
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("option", {
5029
5162
  className: "text-black",
5030
5163
  value: option.value,
5031
5164
  children: [
@@ -5042,20 +5175,20 @@ var CountrySelect = function(param) {
5042
5175
  var FlagComponent = function(param) {
5043
5176
  var country = param.country, countryName = param.countryName;
5044
5177
  var Flag = import_flags.default[country];
5045
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", {
5178
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", {
5046
5179
  className: "w-5 overflow-hidden rounded-sm",
5047
- children: Flag ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Flag, {
5180
+ children: Flag ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Flag, {
5048
5181
  title: countryName
5049
- }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react5.Phone, {
5182
+ }) : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react5.Phone, {
5050
5183
  size: 16,
5051
5184
  "aria-hidden": "true"
5052
5185
  })
5053
5186
  });
5054
5187
  };
5055
5188
  // src/components/forms/ModularForm/formElements.tsx
5056
- var import_jsx_runtime19 = require("react/jsx-runtime");
5189
+ var import_jsx_runtime20 = require("react/jsx-runtime");
5057
5190
  var useSortValues = function(options, sortDirection, sortAsNumber) {
5058
- var sortOptions = (0, import_react11.useMemo)(function() {
5191
+ var sortOptions = (0, import_react12.useMemo)(function() {
5059
5192
  var sorted = sortAsNumber ? options.sort(function(a, b) {
5060
5193
  return parseInt(b.label) - parseInt(a.label);
5061
5194
  }) : options.sort(function(a, b) {
@@ -5071,30 +5204,30 @@ var useSortValues = function(options, sortDirection, sortAsNumber) {
5071
5204
  };
5072
5205
  var InputContainer = function(param) {
5073
5206
  var validationError = param.validationError, _param_name = param.name, name = _param_name === void 0 ? "" : _param_name, _param_inputType = param.inputType, inputType = _param_inputType === void 0 ? "text" : _param_inputType, _param_labelContent = param.labelContent, labelContent = _param_labelContent === void 0 ? "" : _param_labelContent, _param_defaultValue = param.defaultValue, defaultValue = _param_defaultValue === void 0 ? "" : _param_defaultValue, _param_validationName = param.validationName, validationName = _param_validationName === void 0 ? "textNumbers" : _param_validationName, _param_containerClassName = param.containerClassName, containerClassName = _param_containerClassName === void 0 ? "" : _param_containerClassName, _param_labelClassName = param.labelClassName, labelClassName = _param_labelClassName === void 0 ? "" : _param_labelClassName, _param_elementClassName = param.elementClassName, elementClassName = _param_elementClassName === void 0 ? "" : _param_elementClassName, _param_required = param.required, required = _param_required === void 0 ? false : _param_required, placeholder = param.placeholder, props = param.props, minLength = param.minLength, onKeyDown = param.onKeyDown, onChange = param.onChange, direction = param.direction, value = param.value;
5074
- var handleChangeFunction = (0, import_react11.useCallback)(function(e) {
5207
+ var handleChangeFunction = (0, import_react12.useCallback)(function(e) {
5075
5208
  handleChange(e);
5076
5209
  onChange === null || onChange === void 0 ? void 0 : onChange(e);
5077
5210
  }, [
5078
5211
  onChange
5079
5212
  ]);
5080
- var validationProps = (0, import_react11.useMemo)(function() {
5213
+ var validationProps = (0, import_react12.useMemo)(function() {
5081
5214
  return _object_spread_props(_object_spread({}, useValidation(validationName, validationError)), {
5082
5215
  onChange: handleChangeFunction
5083
5216
  });
5084
5217
  }, [
5085
5218
  handleChangeFunction
5086
5219
  ]);
5087
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", {
5220
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", {
5088
5221
  className: cn("center", containerClassName),
5089
5222
  children: [
5090
- labelContent && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ElementLabel, {
5223
+ labelContent && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ElementLabel, {
5091
5224
  direction: direction,
5092
5225
  labelContent: labelContent,
5093
5226
  labelClassName: labelClassName,
5094
5227
  name: name,
5095
5228
  required: required
5096
5229
  }),
5097
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("input", _object_spread_props(_object_spread(_object_spread_props(_object_spread({}, props), {
5230
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("input", _object_spread_props(_object_spread(_object_spread_props(_object_spread({}, props), {
5098
5231
  minLength: minLength,
5099
5232
  placeholder: placeholder,
5100
5233
  className: cn("w-[70%] bg-inherit border-b-[1px] border-black px-2", elementClassName),
@@ -5116,44 +5249,44 @@ var SelectContainer = function(param) {
5116
5249
  var _param_name = param.name, name = _param_name === void 0 ? "" : _param_name, _param_labelContent = param.labelContent, labelContent = _param_labelContent === void 0 ? "" : _param_labelContent, _param_containerClassName = param.containerClassName, containerClassName = _param_containerClassName === void 0 ? "" : _param_containerClassName, _param_labelClassName = param.labelClassName, labelClassName = _param_labelClassName === void 0 ? "" : _param_labelClassName, _param_defaultValue = param.defaultValue, defaultValue = _param_defaultValue === void 0 ? "" : _param_defaultValue, _param_elementClassName = param.elementClassName, elementClassName = _param_elementClassName === void 0 ? "" : _param_elementClassName, _param_optionClassName = param.optionClassName, optionClassName = _param_optionClassName === void 0 ? "" : _param_optionClassName, _param_required = param.required, required = _param_required === void 0 ? false : _param_required, _param_options = param.options, options = _param_options === void 0 ? [] : _param_options, _param_optionsContainerClassName = param.optionsContainerClassName, optionsContainerClassName = _param_optionsContainerClassName === void 0 ? "" : _param_optionsContainerClassName, _param_sortDirection = param.sortDirection, sortDirection = _param_sortDirection === void 0 ? "abc" : _param_sortDirection, sortAsNumber = param.sortAsNumber, direction = param.direction, onChange = param.onChange;
5117
5250
  var _sortOptions_, _options_find;
5118
5251
  var sortOptions = useSortValues(options, sortDirection, sortAsNumber);
5119
- var _ref = _sliced_to_array((0, import_react11.useState)(false), 2), isOpen = _ref[0], setIsOpen = _ref[1];
5120
- var _ref1 = _sliced_to_array((0, import_react11.useState)(defaultValue || ((_sortOptions_ = sortOptions[0]) === null || _sortOptions_ === void 0 ? void 0 : _sortOptions_.value) || ""), 2), selectedValue = _ref1[0], setSelectedValue = _ref1[1];
5252
+ var _ref = _sliced_to_array((0, import_react12.useState)(false), 2), isOpen = _ref[0], setIsOpen = _ref[1];
5253
+ var _ref1 = _sliced_to_array((0, import_react12.useState)(defaultValue || ((_sortOptions_ = sortOptions[0]) === null || _sortOptions_ === void 0 ? void 0 : _sortOptions_.value) || ""), 2), selectedValue = _ref1[0], setSelectedValue = _ref1[1];
5121
5254
  var handleOptionClick = function(value) {
5122
5255
  setSelectedValue(value);
5123
5256
  onChange === null || onChange === void 0 ? void 0 : onChange(value);
5124
5257
  setIsOpen(false);
5125
5258
  };
5126
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", {
5259
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", {
5127
5260
  className: cn("center", containerClassName),
5128
5261
  children: [
5129
- labelContent && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ElementLabel, {
5262
+ labelContent && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ElementLabel, {
5130
5263
  direction: direction,
5131
5264
  labelContent: labelContent,
5132
5265
  labelClassName: labelClassName,
5133
5266
  name: name,
5134
5267
  required: required
5135
5268
  }),
5136
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", {
5269
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", {
5137
5270
  className: cn("w-[70%] relative", elementClassName),
5138
5271
  onClick: function() {
5139
5272
  return setIsOpen(!isOpen);
5140
5273
  },
5141
5274
  children: [
5142
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", {
5275
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", {
5143
5276
  className: "border-b-[1px] border-black max-h-6 cursor-pointer",
5144
5277
  children: ((_options_find = options.find(function(opt) {
5145
5278
  return opt.value === selectedValue;
5146
5279
  })) === null || _options_find === void 0 ? void 0 : _options_find.label) || selectedValue
5147
5280
  }),
5148
- isOpen ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("i", {
5281
+ isOpen ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("i", {
5149
5282
  className: "fa-light fa-chevron-up absolute top-[1px] left-1 cursor-pointer"
5150
- }) : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("i", {
5283
+ }) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("i", {
5151
5284
  className: "fa-light fa-chevron-down absolute top-[1px] left-1 cursor-pointer"
5152
5285
  }),
5153
- isOpen && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", {
5286
+ isOpen && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", {
5154
5287
  className: cn("absolute w-full bg-white border border-gray-300 max-h-32 overflow-y-auto z-10", optionsContainerClassName),
5155
5288
  children: sortOptions.map(function(option) {
5156
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", {
5289
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", {
5157
5290
  className: "p-2 cursor-pointer hover:bg-gray-200 ".concat(optionClassName),
5158
5291
  onClick: function() {
5159
5292
  return handleOptionClick(option.value);
@@ -5162,7 +5295,7 @@ var SelectContainer = function(param) {
5162
5295
  }, option.value);
5163
5296
  })
5164
5297
  }),
5165
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("input", {
5298
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("input", {
5166
5299
  value: selectedValue,
5167
5300
  type: "hidden",
5168
5301
  name: name,
@@ -5176,17 +5309,17 @@ var SelectContainer = function(param) {
5176
5309
  function MultiSelect(param) {
5177
5310
  var onChange = param.onChange, selectedOptions = param.selectedOptions, emptyOptionsElement = param.emptyOptionsElement, unremovableOptions = param.unremovableOptions, _param_options = param.options, options = _param_options === void 0 ? [] : _param_options, _param_styles = param.styles, styles = _param_styles === void 0 ? {} : _param_styles, _param_name = param.name, name = _param_name === void 0 ? "multipleSelect" : _param_name, _param_placeholder = param.placeholder, placeholder = _param_placeholder === void 0 ? "Select items" : _param_placeholder, labelContent = param.labelContent, required = param.required, labelClassName = param.labelClassName, groupBy = param.groupBy, onSearch = param.onSearch, onSearchSync = param.onSearchSync, triggerSearchOnFocus = param.triggerSearchOnFocus, _param_sortDirection = param.sortDirection, sortDirection = _param_sortDirection === void 0 ? "abc" : _param_sortDirection, sortAsNumber = param.sortAsNumber, direction = param.direction, createNewOptionLabel = param.createNewOptionLabel, searchInputProps = param.searchInputProps;
5178
5311
  var sortOptions = useSortValues(options, sortDirection, sortAsNumber);
5179
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", {
5312
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", {
5180
5313
  className: cn("".concat(labelContent ? "flex gap-1 items-center" : ""), styles.containerClassName),
5181
5314
  children: [
5182
- labelContent && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ElementLabel, {
5315
+ labelContent && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ElementLabel, {
5183
5316
  direction: direction,
5184
5317
  labelContent: labelContent,
5185
5318
  labelClassName: labelClassName,
5186
5319
  name: name,
5187
5320
  required: required
5188
5321
  }),
5189
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(multiselect_default, {
5322
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(multiselect_default, {
5190
5323
  commandProps: {
5191
5324
  label: placeholder
5192
5325
  },
@@ -5207,7 +5340,7 @@ function MultiSelect(param) {
5207
5340
  className: styles.className,
5208
5341
  dropdownClassName: styles.dropdownClassName,
5209
5342
  dropdownOptionClassName: styles.dropdownOptionClassName,
5210
- emptyIndicator: emptyOptionsElement || /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", {
5343
+ emptyIndicator: emptyOptionsElement || /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", {
5211
5344
  className: "text-center text-sm",
5212
5345
  children: "all options selected."
5213
5346
  }),
@@ -5221,17 +5354,17 @@ function MultiSelect(param) {
5221
5354
  var SelectWithSearch = function(param) {
5222
5355
  var options = param.options, labelClassName = param.labelClassName, labelContent = param.labelContent, name = param.name, onChange = param.onChange, value = param.value, placeholder = param.placeholder, required = param.required, defaultValue = param.defaultValue, notFoundLabel = param.notFoundLabel, searchPlaceholder = param.searchPlaceholder, containerClassName = param.containerClassName, dropdownClassName = param.dropdownClassName, dropdownOptionClassName = param.dropdownOptionClassName, elementClassName = param.elementClassName, notFoundLabelClassName = param.notFoundLabelClassName, searchClassName = param.searchClassName, buttonClassName = param.buttonClassName, buttonFocusClassName = param.buttonFocusClassName, _param_sortDirection = param.sortDirection, sortDirection = _param_sortDirection === void 0 ? "abc" : _param_sortDirection, sortAsNumber = param.sortAsNumber, disabled = param.disabled, direction = param.direction, createNewOptionLabel = param.createNewOptionLabel, createNewOptionContainerClassName = param.createNewOptionContainerClassName;
5223
5356
  var sortOptions = useSortValues(options, sortDirection, sortAsNumber);
5224
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", {
5357
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", {
5225
5358
  className: cn("flex justify-between items-center w-full", containerClassName),
5226
5359
  children: [
5227
- labelContent && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ElementLabel, {
5360
+ labelContent && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ElementLabel, {
5228
5361
  direction: direction,
5229
5362
  labelContent: labelContent,
5230
5363
  labelClassName: labelClassName,
5231
5364
  name: name,
5232
5365
  required: required
5233
5366
  }),
5234
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SearchSelect, {
5367
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SearchSelect, {
5235
5368
  direction: direction,
5236
5369
  createNewOptionLabel: createNewOptionLabel,
5237
5370
  createNewOptionContainerClassName: createNewOptionContainerClassName,
@@ -5257,10 +5390,10 @@ var SelectWithSearch = function(param) {
5257
5390
  };
5258
5391
  var TextAreaContainer = function(param) {
5259
5392
  var _param_name = param.name, name = _param_name === void 0 ? "" : _param_name, _param_labelContent = param.labelContent, labelContent = _param_labelContent === void 0 ? "" : _param_labelContent, _param_defaultValue = param.defaultValue, defaultValue = _param_defaultValue === void 0 ? "" : _param_defaultValue, _param_containerClassName = param.containerClassName, containerClassName = _param_containerClassName === void 0 ? "" : _param_containerClassName, _param_labelClassName = param.labelClassName, labelClassName = _param_labelClassName === void 0 ? "" : _param_labelClassName, _param_elementClassName = param.elementClassName, elementClassName = _param_elementClassName === void 0 ? "" : _param_elementClassName, _param_required = param.required, required = _param_required === void 0 ? false : _param_required, placeholder = param.placeholder, props = param.props, minLength = param.minLength, onKeyDown = param.onKeyDown, onChange = param.onChange, direction = param.direction;
5260
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", {
5393
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", {
5261
5394
  className: cn("flex flex-col gap-2 items-center", containerClassName),
5262
5395
  children: [
5263
- labelContent && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ElementLabel, {
5396
+ labelContent && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ElementLabel, {
5264
5397
  direction: direction,
5265
5398
  labelContent: labelContent,
5266
5399
  labelClassName: "w-fit text-xl px-2 border-b-2 border-[#000] text-center ".concat(labelClassName),
@@ -5268,7 +5401,7 @@ var TextAreaContainer = function(param) {
5268
5401
  required: required,
5269
5402
  withDots: false
5270
5403
  }),
5271
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("textarea", _object_spread_props(_object_spread({}, props), {
5404
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("textarea", _object_spread_props(_object_spread({}, props), {
5272
5405
  onChange: onChange,
5273
5406
  minLength: minLength,
5274
5407
  placeholder: placeholder,
@@ -5283,28 +5416,28 @@ var TextAreaContainer = function(param) {
5283
5416
  };
5284
5417
  var ElementLabel = function(param) {
5285
5418
  var labelContent = param.labelContent, labelClassName = param.labelClassName, name = param.name, required = param.required, _param_withDots = param.withDots, withDots = _param_withDots === void 0 ? true : _param_withDots, direction = param.direction;
5286
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("label", {
5419
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("label", {
5287
5420
  style: {
5288
5421
  direction: direction
5289
5422
  },
5290
5423
  className: cn("text-start w-[30%] flex gap-0.5", labelClassName),
5291
5424
  htmlFor: name,
5292
5425
  children: [
5293
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", {
5426
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", {
5294
5427
  children: labelContent
5295
5428
  }),
5296
- required && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", {
5429
+ required && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", {
5297
5430
  className: "text-red-500",
5298
5431
  children: "*"
5299
5432
  }),
5300
- withDots && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", {
5433
+ withDots && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", {
5301
5434
  children: ":"
5302
5435
  })
5303
5436
  ]
5304
5437
  });
5305
5438
  };
5306
5439
  // src/components/forms/ModularForm/ModularForm.tsx
5307
- var import_jsx_runtime20 = require("react/jsx-runtime");
5440
+ var import_jsx_runtime21 = require("react/jsx-runtime");
5308
5441
  var ModularForm = function(param) {
5309
5442
  var _param_submitFunction = param.submitFunction, submitFunction = _param_submitFunction === void 0 ? /*#__PURE__*/ function() {
5310
5443
  var _ref = _async_to_generator(function(form) {
@@ -5318,8 +5451,8 @@ var ModularForm = function(param) {
5318
5451
  return _ref.apply(this, arguments);
5319
5452
  };
5320
5453
  }() : _param_submitFunction, _param_elements = param.elements, elements = _param_elements === void 0 ? [] : _param_elements, headerContent = param.headerContent, buttonContent = param.buttonContent, _param_formClassName = param.formClassName, formClassName = _param_formClassName === void 0 ? "" : _param_formClassName, _param_headerClassName = param.headerClassName, headerClassName = _param_headerClassName === void 0 ? "" : _param_headerClassName, _param_direction = param.direction, direction = _param_direction === void 0 ? "rtl" : _param_direction, _param_buttonClassName = param.buttonClassName, buttonClassName = _param_buttonClassName === void 0 ? "" : _param_buttonClassName, submitRef = param.submitRef, _param_footerClassName = param.footerClassName, footerClassName = _param_footerClassName === void 0 ? "" : _param_footerClassName, _param_errorClassName = param.errorClassName, errorClassName = _param_errorClassName === void 0 ? "" : _param_errorClassName;
5321
- var _ref = _sliced_to_array((0, import_react12.useState)(""), 2), errorMsg = _ref[0], setErrorMsg = _ref[1];
5322
- var _ref1 = _sliced_to_array((0, import_react12.useState)(false), 2), isLoading = _ref1[0], setIsLoading = _ref1[1];
5454
+ var _ref = _sliced_to_array((0, import_react13.useState)(""), 2), errorMsg = _ref[0], setErrorMsg = _ref[1];
5455
+ var _ref1 = _sliced_to_array((0, import_react13.useState)(false), 2), isLoading = _ref1[0], setIsLoading = _ref1[1];
5323
5456
  var onSubmit = /*#__PURE__*/ function() {
5324
5457
  var _ref = _async_to_generator(function(e) {
5325
5458
  var form, err;
@@ -5381,66 +5514,66 @@ var ModularForm = function(param) {
5381
5514
  return _ref.apply(this, arguments);
5382
5515
  };
5383
5516
  }();
5384
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("form", {
5517
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("form", {
5385
5518
  onSubmit: onSubmit,
5386
5519
  style: {
5387
5520
  direction: direction
5388
5521
  },
5389
5522
  className: cn("w-[350px] px-5 py-5 flex flex-col gap-5", formClassName),
5390
5523
  children: [
5391
- headerContent && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", {
5524
+ headerContent && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", {
5392
5525
  className: cn("border-b-2 border-[#547f22] pb-2 text-start font-bold text-[20px]", headerClassName),
5393
5526
  children: headerContent
5394
5527
  }),
5395
5528
  elements.map(function(element, index2) {
5396
5529
  switch(element.type){
5397
5530
  case "input":
5398
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(InputContainer, _object_spread_props(_object_spread({}, element), {
5531
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(InputContainer, _object_spread_props(_object_spread({}, element), {
5399
5532
  direction: direction
5400
5533
  }), index2);
5401
5534
  case "textarea":
5402
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(TextAreaContainer, _object_spread_props(_object_spread({}, element), {
5535
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(TextAreaContainer, _object_spread_props(_object_spread({}, element), {
5403
5536
  direction: direction
5404
5537
  }), index2);
5405
5538
  case "select":
5406
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SelectContainer, _object_spread_props(_object_spread({}, element), {
5539
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectContainer, _object_spread_props(_object_spread({}, element), {
5407
5540
  direction: direction
5408
5541
  }), index2);
5409
5542
  case "multiSelect":
5410
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(MultiSelect, _object_spread_props(_object_spread({}, element), {
5543
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(MultiSelect, _object_spread_props(_object_spread({}, element), {
5411
5544
  direction: direction
5412
5545
  }), index2);
5413
5546
  case "selectWithSearch":
5414
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SelectWithSearch, _object_spread_props(_object_spread({}, element), {
5547
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectWithSearch, _object_spread_props(_object_spread({}, element), {
5415
5548
  direction: direction
5416
5549
  }), index2);
5417
5550
  case "internationalPhoneInput":
5418
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(InternationalPhonePicker, _object_spread_props(_object_spread({}, element), {
5551
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(InternationalPhonePicker, _object_spread_props(_object_spread({}, element), {
5419
5552
  direction: direction
5420
5553
  }), index2);
5421
5554
  case "custom":
5422
5555
  var _element_element;
5423
- return typeof ((_element_element = element.element) === null || _element_element === void 0 ? void 0 : _element_element.type) !== "string" && (0, import_react12.cloneElement)(element.element, {
5556
+ return typeof ((_element_element = element.element) === null || _element_element === void 0 ? void 0 : _element_element.type) !== "string" && (0, import_react13.cloneElement)(element.element, {
5424
5557
  key: index2
5425
5558
  });
5426
5559
  default:
5427
5560
  return null;
5428
5561
  }
5429
5562
  }),
5430
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", {
5563
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", {
5431
5564
  className: cn("flex justify-between w-full", footerClassName),
5432
5565
  children: [
5433
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", {
5566
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", {
5434
5567
  title: errorMsg,
5435
5568
  className: cn("text-[#f22] text-[18px] max-w-[80%] ellipsis", errorClassName),
5436
5569
  children: errorMsg
5437
5570
  }),
5438
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("button", {
5571
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("button", {
5439
5572
  ref: submitRef,
5440
5573
  disabled: isLoading,
5441
5574
  className: cn("bg-[#547f22] px-3 py-1 rounded-lg text-white min-w-20", buttonClassName),
5442
5575
  type: "submit",
5443
- children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Loader, {
5576
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Loader, {
5444
5577
  size: 25,
5445
5578
  color: "#fff"
5446
5579
  }) : buttonContent
@@ -5452,32 +5585,32 @@ var ModularForm = function(param) {
5452
5585
  };
5453
5586
  var ModularForm_default = ModularForm;
5454
5587
  // src/components/forms/index.tsx
5455
- var import_react13 = require("react");
5588
+ var import_react14 = require("react");
5456
5589
  var import_moment2 = __toESM(require("moment"));
5457
- var import_jsx_runtime21 = require("react/jsx-runtime");
5590
+ var import_jsx_runtime22 = require("react/jsx-runtime");
5458
5591
  var ConfirmForm = function(param) {
5459
5592
  var onV = param.onV, onX = param.onX, _param_headline = param.headline, headline = _param_headline === void 0 ? "" : _param_headline, _param_direction = param.direction, direction = _param_direction === void 0 ? "rtl" : _param_direction, _param_containerClassName = param.containerClassName, containerClassName = _param_containerClassName === void 0 ? "" : _param_containerClassName, _param_buttonsContainerClassName = param.buttonsContainerClassName, buttonsContainerClassName = _param_buttonsContainerClassName === void 0 ? "" : _param_buttonsContainerClassName, _param_headlineClassName = param.headlineClassName, headlineClassName = _param_headlineClassName === void 0 ? "" : _param_headlineClassName;
5460
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", {
5593
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", {
5461
5594
  style: {
5462
5595
  direction: direction,
5463
5596
  padding: "30px"
5464
5597
  },
5465
5598
  className: cn("w-full h-full flex flex-col gap-3", containerClassName),
5466
5599
  children: [
5467
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", {
5600
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", {
5468
5601
  className: cn("text-lg font-bold", headlineClassName),
5469
5602
  children: headline
5470
5603
  }),
5471
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", {
5604
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", {
5472
5605
  className: cn("flex justify-center items-center gap-2 w-full", buttonsContainerClassName),
5473
5606
  children: [
5474
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("button", {
5607
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("button", {
5475
5608
  onClick: onX,
5476
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(RedXSvg, {})
5609
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(RedXSvg, {})
5477
5610
  }),
5478
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("button", {
5611
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("button", {
5479
5612
  onClick: onV,
5480
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(GreenVSvg, {})
5613
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(GreenVSvg, {})
5481
5614
  })
5482
5615
  ]
5483
5616
  })
@@ -5497,7 +5630,7 @@ var DatePicker = function(param) {
5497
5630
  return _ref.apply(this, arguments);
5498
5631
  };
5499
5632
  }() : _param_submit, _param_formClassName = param.formClassName, formClassName = _param_formClassName === void 0 ? "" : _param_formClassName, _param_labelsClassName = param.labelsClassName, labelsClassName = _param_labelsClassName === void 0 ? "" : _param_labelsClassName, _param_inputsClassName = param.inputsClassName, inputsClassName = _param_inputsClassName === void 0 ? "" : _param_inputsClassName, _param_buttonClassName = param.buttonClassName, buttonClassName = _param_buttonClassName === void 0 ? "" : _param_buttonClassName, _param_buttonStyle = param.buttonStyle, buttonStyle = _param_buttonStyle === void 0 ? {} : _param_buttonStyle, defaultFrom = param.defaultFrom, defaultTo = param.defaultTo, _param_direction = param.direction, direction = _param_direction === void 0 ? "rtl" : _param_direction, _param_fromText = param.fromText, fromText = _param_fromText === void 0 ? "From date" : _param_fromText, _param_toText = param.toText, toText = _param_toText === void 0 ? "To date" : _param_toText, _param_buttonText = param.buttonText, buttonText = _param_buttonText === void 0 ? "Search" : _param_buttonText;
5500
- var _ref = _sliced_to_array((0, import_react13.useState)(false), 2), isLoading = _ref[0], setIsLoading = _ref[1];
5633
+ var _ref = _sliced_to_array((0, import_react14.useState)(false), 2), isLoading = _ref[0], setIsLoading = _ref[1];
5501
5634
  var onSubmit = /*#__PURE__*/ function() {
5502
5635
  var _ref = _async_to_generator(function(e) {
5503
5636
  return _ts_generator(this, function(_state) {
@@ -5522,19 +5655,19 @@ var DatePicker = function(param) {
5522
5655
  return _ref.apply(this, arguments);
5523
5656
  };
5524
5657
  }();
5525
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("form", {
5658
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("form", {
5526
5659
  style: {
5527
5660
  direction: direction
5528
5661
  },
5529
5662
  onSubmit: onSubmit,
5530
5663
  className: cn("w-full h-10 flex justify-start gap-3 items-center ", formClassName),
5531
5664
  children: [
5532
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("label", {
5665
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("label", {
5533
5666
  className: cn("center text-[14px] relative gap-2", labelsClassName),
5534
5667
  htmlFor: "from",
5535
5668
  children: [
5536
5669
  fromText,
5537
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("input", {
5670
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("input", {
5538
5671
  className: "w-[125px] text-[14px] py-[2px] px-1 rounded-[2px] border-black border-[1px] text-end ".concat(inputsClassName),
5539
5672
  type: "date",
5540
5673
  name: "from",
@@ -5542,12 +5675,12 @@ var DatePicker = function(param) {
5542
5675
  })
5543
5676
  ]
5544
5677
  }),
5545
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("label", {
5678
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("label", {
5546
5679
  className: cn("center text-[14px] relative gap-2 ", labelsClassName),
5547
5680
  htmlFor: "to",
5548
5681
  children: [
5549
5682
  toText,
5550
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("input", {
5683
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("input", {
5551
5684
  className: "w-[125px] text-[14px] py-[2px] px-1 rounded-[2px] border-black border-[1px] text-end ".concat(inputsClassName),
5552
5685
  type: "date",
5553
5686
  name: "to",
@@ -5555,12 +5688,12 @@ var DatePicker = function(param) {
5555
5688
  })
5556
5689
  ]
5557
5690
  }),
5558
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("button", {
5691
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("button", {
5559
5692
  disabled: isLoading,
5560
5693
  style: buttonStyle,
5561
5694
  className: cn("bg-[#699a2c] text-[#fff] font-[500] w-[75px] h-[27px]", buttonClassName),
5562
5695
  type: "submit",
5563
- children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Loader, {
5696
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Loader, {
5564
5697
  className: "pt-[2px]",
5565
5698
  size: 20,
5566
5699
  color: "#fff"
@@ -5571,19 +5704,19 @@ var DatePicker = function(param) {
5571
5704
  };
5572
5705
  // src/components/CodeInput.tsx
5573
5706
  var import_input_otp = require("input-otp");
5574
- var import_react14 = require("react");
5575
- var import_jsx_runtime22 = require("react/jsx-runtime");
5707
+ var import_react15 = require("react");
5708
+ var import_jsx_runtime23 = require("react/jsx-runtime");
5576
5709
  function CodeInput(param) {
5577
5710
  var codeValue = param.codeValue, setCodeValue = param.setCodeValue, _param_className = param.className, className = _param_className === void 0 ? "" : _param_className, _param_slotContainerClassName = param.slotContainerClassName, slotContainerClassName = _param_slotContainerClassName === void 0 ? "" : _param_slotContainerClassName;
5578
- var firstInputRef = (0, import_react14.useRef)(null);
5579
- (0, import_react14.useEffect)(function() {
5711
+ var firstInputRef = (0, import_react15.useRef)(null);
5712
+ (0, import_react15.useEffect)(function() {
5580
5713
  if (firstInputRef.current) {
5581
5714
  firstInputRef.current.focus();
5582
5715
  }
5583
5716
  }, []);
5584
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", {
5717
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", {
5585
5718
  className: cn("space-y-2 flex justify-center items-center", className),
5586
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_input_otp.OTPInput, {
5719
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_input_otp.OTPInput, {
5587
5720
  ref: firstInputRef,
5588
5721
  value: codeValue,
5589
5722
  onChange: function(newVal) {
@@ -5593,10 +5726,10 @@ function CodeInput(param) {
5593
5726
  maxLength: 6,
5594
5727
  render: function(param) {
5595
5728
  var slots = param.slots;
5596
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", {
5729
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", {
5597
5730
  className: cn("flex gap-5", slotContainerClassName),
5598
5731
  children: slots.map(function(slot, idx) {
5599
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Slot2, _object_spread({}, slot), idx);
5732
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Slot2, _object_spread({}, slot), idx);
5600
5733
  })
5601
5734
  });
5602
5735
  }
@@ -5604,11 +5737,11 @@ function CodeInput(param) {
5604
5737
  });
5605
5738
  }
5606
5739
  function Slot2(props) {
5607
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", {
5740
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", {
5608
5741
  className: cn("flex size-9 items-center justify-center rounded-lg border border-input bg-background font-medium text-foreground shadow-sm shadow-black/5 transition-shadow", {
5609
5742
  "z-10 border border-ring ring-[3px] ring-ring/20": props.isActive
5610
5743
  }),
5611
- children: props.char !== null && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", {
5744
+ children: props.char !== null && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", {
5612
5745
  children: props.char
5613
5746
  })
5614
5747
  });
@@ -5632,6 +5765,7 @@ function Slot2(props) {
5632
5765
  InputContainer: InputContainer,
5633
5766
  InternationalPhonePicker: InternationalPhonePicker,
5634
5767
  Loader: Loader,
5768
+ LoginWithGoogleButton: LoginWithGoogleButton,
5635
5769
  MaxRowsLabel: MaxRowsLabel,
5636
5770
  ModularForm: ModularForm,
5637
5771
  MultiSelect: MultiSelect,