magick-ui 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui/index.cjs CHANGED
@@ -77,6 +77,7 @@ __export(ui_exports, {
77
77
  FileUploadField: () => FileUploadField,
78
78
  Form: () => Form,
79
79
  FormField: () => FormField,
80
+ GoogleMapView: () => GoogleMapView,
80
81
  GradientContainer: () => GradientContainer,
81
82
  Grid: () => Grid,
82
83
  IconButton: () => IconButton,
@@ -3720,11 +3721,98 @@ function LinkButton({
3720
3721
  );
3721
3722
  }
3722
3723
 
3724
+ // src/ui/Map/index.tsx
3725
+ var import_react_google_maps = require("@vis.gl/react-google-maps");
3726
+ var import_react7 = require("react");
3727
+ var import_jsx_runtime34 = require("react/jsx-runtime");
3728
+ function MarkerWithInfo({
3729
+ marker,
3730
+ index,
3731
+ onMarkerClick
3732
+ }) {
3733
+ const [open, setOpen] = (0, import_react7.useState)(false);
3734
+ const handleClick = (0, import_react7.useCallback)(() => {
3735
+ setOpen((prev) => !prev);
3736
+ onMarkerClick?.(marker, index);
3737
+ }, [marker, index, onMarkerClick]);
3738
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
3739
+ import_react_google_maps.AdvancedMarker,
3740
+ {
3741
+ position: { lat: marker.lat, lng: marker.lng },
3742
+ title: marker.title,
3743
+ onClick: handleClick,
3744
+ children: [
3745
+ marker.color && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3746
+ import_react_google_maps.Pin,
3747
+ {
3748
+ background: marker.color,
3749
+ borderColor: marker.color,
3750
+ glyphColor: "#fff"
3751
+ }
3752
+ ),
3753
+ open && (marker.title || marker.description) && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3754
+ import_react_google_maps.InfoWindow,
3755
+ {
3756
+ position: { lat: marker.lat, lng: marker.lng },
3757
+ onCloseClick: () => setOpen(false),
3758
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "max-w-xs", children: [
3759
+ marker.title && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("h3", { className: "text-body-sm font-semibold", children: marker.title }),
3760
+ marker.description && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "text-body-sm text-element-inverse-gray mt-1", children: marker.description })
3761
+ ] })
3762
+ }
3763
+ )
3764
+ ]
3765
+ }
3766
+ );
3767
+ }
3768
+ var DEFAULT_CENTER = { lat: 16.8661, lng: 96.1951 };
3769
+ function GoogleMapView({
3770
+ apiKey,
3771
+ center = DEFAULT_CENTER,
3772
+ zoom = 12,
3773
+ markers = [],
3774
+ mapId,
3775
+ height = "400px",
3776
+ width = "100%",
3777
+ className,
3778
+ gestureHandling = "cooperative",
3779
+ disableDefaultUI = false,
3780
+ onMarkerClick
3781
+ }) {
3782
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_google_maps.APIProvider, { apiKey, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3783
+ "div",
3784
+ {
3785
+ className: cn("overflow-hidden rounded-unit-corner-radius-xl", className),
3786
+ style: { height, width },
3787
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3788
+ import_react_google_maps.Map,
3789
+ {
3790
+ defaultCenter: center,
3791
+ defaultZoom: zoom,
3792
+ mapId,
3793
+ gestureHandling,
3794
+ disableDefaultUI,
3795
+ style: { width: "100%", height: "100%" },
3796
+ children: markers.map((marker, i) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3797
+ MarkerWithInfo,
3798
+ {
3799
+ marker,
3800
+ index: i,
3801
+ onMarkerClick
3802
+ },
3803
+ `${marker.lat}-${marker.lng}-${i}`
3804
+ ))
3805
+ }
3806
+ )
3807
+ }
3808
+ ) });
3809
+ }
3810
+
3723
3811
  // src/ui/Media/index.tsx
3724
3812
  var import_class_variance_authority10 = require("class-variance-authority");
3725
3813
  var import_lucide_react16 = require("lucide-react");
3726
3814
  var React10 = __toESM(require("react"), 1);
3727
- var import_jsx_runtime34 = require("react/jsx-runtime");
3815
+ var import_jsx_runtime35 = require("react/jsx-runtime");
3728
3816
  var mediaVariants = (0, import_class_variance_authority10.cva)(
3729
3817
  "relative overflow-hidden bg-gray-100 dark:bg-gray-800",
3730
3818
  {
@@ -3822,7 +3910,7 @@ var Media = React10.forwardRef(
3822
3910
  const handleImageError = () => {
3823
3911
  setImageError(true);
3824
3912
  };
3825
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3913
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3826
3914
  "div",
3827
3915
  {
3828
3916
  ref,
@@ -3830,8 +3918,8 @@ var Media = React10.forwardRef(
3830
3918
  onMouseEnter: () => setIsHovered(true),
3831
3919
  onMouseLeave: () => setIsHovered(false),
3832
3920
  ...props,
3833
- children: type === "image" ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
3834
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3921
+ children: type === "image" ? /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
3922
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3835
3923
  "img",
3836
3924
  {
3837
3925
  src,
@@ -3849,13 +3937,13 @@ var Media = React10.forwardRef(
3849
3937
  style: { objectFit }
3850
3938
  }
3851
3939
  ),
3852
- !imageLoaded && !imageError && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "absolute inset-0 flex items-center justify-center bg-gray-200 dark:bg-gray-700", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-gray-300 border-t-gray-600" }) }),
3853
- imageError && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "absolute inset-0 flex items-center justify-center bg-gray-200 dark:bg-gray-700", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "text-center text-gray-500", children: [
3854
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "text-2xl", children: "\u{1F4F7}" }),
3855
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "text-sm", children: "Failed to load" })
3940
+ !imageLoaded && !imageError && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "absolute inset-0 flex items-center justify-center bg-gray-200 dark:bg-gray-700", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-gray-300 border-t-gray-600" }) }),
3941
+ imageError && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "absolute inset-0 flex items-center justify-center bg-gray-200 dark:bg-gray-700", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "text-center text-gray-500", children: [
3942
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "text-2xl", children: "\u{1F4F7}" }),
3943
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "text-sm", children: "Failed to load" })
3856
3944
  ] }) })
3857
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
3858
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3945
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
3946
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3859
3947
  "video",
3860
3948
  {
3861
3949
  ref: videoRef,
@@ -3868,7 +3956,7 @@ var Media = React10.forwardRef(
3868
3956
  preload: "metadata"
3869
3957
  }
3870
3958
  ),
3871
- showPlayButton && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3959
+ showPlayButton && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3872
3960
  "div",
3873
3961
  {
3874
3962
  className: cn(
@@ -3878,10 +3966,10 @@ var Media = React10.forwardRef(
3878
3966
  "opacity-0": !isHovered && !videoPlaying
3879
3967
  }
3880
3968
  ),
3881
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3969
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3882
3970
  IconButton,
3883
3971
  {
3884
- icon: videoPlaying ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react16.Pause, { className: "text-gray-900" }) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_lucide_react16.Play, { className: "ml-1 text-gray-900" }),
3972
+ icon: videoPlaying ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react16.Pause, { className: "text-gray-900" }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react16.Play, { className: "ml-1 text-gray-900" }),
3885
3973
  onClick: videoPlaying ? handlePause : handlePlay,
3886
3974
  varient: "outline",
3887
3975
  size: "md",
@@ -3902,7 +3990,7 @@ Media.displayName = "Media";
3902
3990
  // src/ui/MultiSelect/index.tsx
3903
3991
  var import_lucide_react17 = require("lucide-react");
3904
3992
  var React11 = __toESM(require("react"), 1);
3905
- var import_jsx_runtime35 = require("react/jsx-runtime");
3993
+ var import_jsx_runtime36 = require("react/jsx-runtime");
3906
3994
  function MultiSelect({
3907
3995
  options,
3908
3996
  selected,
@@ -3975,8 +4063,8 @@ function MultiSelect({
3975
4063
  e.preventDefault();
3976
4064
  inputRef.current?.focus();
3977
4065
  };
3978
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
3979
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
4066
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Popover, { open, onOpenChange: setOpen, children: [
4067
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
3980
4068
  "div",
3981
4069
  {
3982
4070
  ref: containerRef,
@@ -3988,10 +4076,10 @@ function MultiSelect({
3988
4076
  ),
3989
4077
  onClick: handleContainerClick,
3990
4078
  children: [
3991
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-1 flex-wrap items-center gap-1", children: [
4079
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex flex-1 flex-wrap items-center gap-1", children: [
3992
4080
  selected.map((value) => {
3993
4081
  const option = options.find((opt) => opt.value === value);
3994
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4082
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3995
4083
  Chip,
3996
4084
  {
3997
4085
  label: option?.label || value,
@@ -4002,12 +4090,12 @@ function MultiSelect({
4002
4090
  className: cn(
4003
4091
  disabled && "pointer-events-none cursor-not-allowed"
4004
4092
  ),
4005
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react17.X, { className: "hover:text-destructive ml-1.5 h-3 w-3 cursor-pointer" })
4093
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react17.X, { className: "hover:text-destructive ml-1.5 h-3 w-3 cursor-pointer" })
4006
4094
  },
4007
4095
  value
4008
4096
  );
4009
4097
  }),
4010
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4098
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
4011
4099
  "input",
4012
4100
  {
4013
4101
  ref: inputRef,
@@ -4021,25 +4109,25 @@ function MultiSelect({
4021
4109
  }
4022
4110
  )
4023
4111
  ] }),
4024
- selected.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4112
+ selected.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
4025
4113
  import_lucide_react17.CircleXIcon,
4026
4114
  {
4027
4115
  className: "text-icon-default size-4.5 shrink-0",
4028
4116
  onClick: () => onChange([])
4029
4117
  }
4030
4118
  ),
4031
- !createConfig?.enabled && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react17.ChevronDown, { className: "text-icon-default size-4.5 shrink-0" })
4119
+ !createConfig?.enabled && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react17.ChevronDown, { className: "text-icon-default size-4.5 shrink-0" })
4032
4120
  ]
4033
4121
  }
4034
4122
  ) }),
4035
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4123
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
4036
4124
  PopoverContent,
4037
4125
  {
4038
4126
  className: "shadow-box w-[var(--radix-popover-trigger-width)] border-none bg-white p-2",
4039
4127
  align: "start",
4040
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "p-0", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "max-h-[300px] overflow-y-auto", children: filteredOptions.length === 0 && !canCreate ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "py-6 text-center text-gray-500", children: inputValue ? "No results found." : "Start typing to search..." }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col gap-1.5 px-1.5 pt-1.5 pb-0.5", children: [
4041
- createConfig?.enabled && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-text-default pb-0.5 font-semibold", children: "Select or create one" }),
4042
- filteredOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4128
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "p-0", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "max-h-[300px] overflow-y-auto", children: filteredOptions.length === 0 && !canCreate ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "py-6 text-center text-gray-500", children: inputValue ? "No results found." : "Start typing to search..." }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex flex-col gap-1.5 px-1.5 pt-1.5 pb-0.5", children: [
4129
+ createConfig?.enabled && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "text-text-default pb-0.5 font-semibold", children: "Select or create one" }),
4130
+ filteredOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
4043
4131
  Chip,
4044
4132
  {
4045
4133
  label: option.label,
@@ -4048,14 +4136,14 @@ function MultiSelect({
4048
4136
  },
4049
4137
  option.value
4050
4138
  )),
4051
- canCreate && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
4139
+ canCreate && /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
4052
4140
  "div",
4053
4141
  {
4054
4142
  onClick: async () => await handleCreate(),
4055
4143
  className: "flex items-center justify-between",
4056
4144
  children: [
4057
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Chip, { label: inputValue.trim(), className: "rounded-md" }),
4058
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4145
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Chip, { label: inputValue.trim(), className: "rounded-md" }),
4146
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
4059
4147
  Button,
4060
4148
  {
4061
4149
  variant: "ghost",
@@ -4076,7 +4164,7 @@ function MultiSelect({
4076
4164
  // src/ui/OTPInput/index.tsx
4077
4165
  var import_input_otp = require("input-otp");
4078
4166
  var React12 = __toESM(require("react"), 1);
4079
- var import_jsx_runtime36 = require("react/jsx-runtime");
4167
+ var import_jsx_runtime37 = require("react/jsx-runtime");
4080
4168
  function OTPInput({
4081
4169
  type = 4,
4082
4170
  separate = false,
@@ -4084,8 +4172,8 @@ function OTPInput({
4084
4172
  className,
4085
4173
  ...props
4086
4174
  }) {
4087
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: cn(className), children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(InputOTP, { disabled, className: "w-full", ...props, children: [
4088
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(InputOTPGroup, { className: "w-full", children: [...new Array(type / 2)].map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
4175
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: cn(className), children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(InputOTP, { disabled, className: "w-full", ...props, children: [
4176
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(InputOTPGroup, { className: "w-full", children: [...new Array(type / 2)].map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
4089
4177
  InputOTPSlot,
4090
4178
  {
4091
4179
  className: "w-full",
@@ -4094,8 +4182,8 @@ function OTPInput({
4094
4182
  },
4095
4183
  index
4096
4184
  )) }),
4097
- separate && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(InputOTPSeparator, {}),
4098
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(InputOTPGroup, { className: "w-full", children: [...new Array(type / 2)].map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
4185
+ separate && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(InputOTPSeparator, {}),
4186
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(InputOTPGroup, { className: "w-full", children: [...new Array(type / 2)].map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
4099
4187
  InputOTPSlot,
4100
4188
  {
4101
4189
  className: "w-full",
@@ -4111,7 +4199,7 @@ function InputOTP({
4111
4199
  containerClassName,
4112
4200
  ...props
4113
4201
  }) {
4114
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
4202
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
4115
4203
  import_input_otp.OTPInput,
4116
4204
  {
4117
4205
  "data-slot": "input-otp",
@@ -4122,7 +4210,7 @@ function InputOTP({
4122
4210
  );
4123
4211
  }
4124
4212
  function InputOTPGroup({ className, ...props }) {
4125
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
4213
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
4126
4214
  "div",
4127
4215
  {
4128
4216
  "data-slot": "input-otp-group",
@@ -4140,7 +4228,7 @@ function InputOTPSlot({
4140
4228
  }) {
4141
4229
  const inputOTPContext = React12.useContext(import_input_otp.OTPInputContext);
4142
4230
  const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};
4143
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
4231
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
4144
4232
  "div",
4145
4233
  {
4146
4234
  "data-slot": "input-otp-slot",
@@ -4155,26 +4243,26 @@ function InputOTPSlot({
4155
4243
  ),
4156
4244
  ...props,
4157
4245
  children: [
4158
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-h6", children: char || placeholder }),
4159
- hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }) })
4246
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "text-h6", children: char || placeholder }),
4247
+ hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }) })
4160
4248
  ]
4161
4249
  }
4162
4250
  );
4163
4251
  }
4164
4252
  function InputOTPSeparator({ ...props }) {
4165
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "bg-border-primary-normal h-0.5 w-2" }) });
4253
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "bg-border-primary-normal h-0.5 w-2" }) });
4166
4254
  }
4167
4255
 
4168
4256
  // src/ui/PasswordInput/index.tsx
4169
4257
  var React13 = __toESM(require("react"), 1);
4170
4258
  var import_lucide_react18 = require("lucide-react");
4171
- var import_jsx_runtime37 = require("react/jsx-runtime");
4259
+ var import_jsx_runtime38 = require("react/jsx-runtime");
4172
4260
  var PasswordInput = React13.memo(
4173
4261
  ({ type, label, className, ...props }) => {
4174
4262
  const [showPassword, setShowPassword] = React13.useState(false);
4175
4263
  const error = props["aria-invalid"] || false;
4176
4264
  const inputRef = React13.useRef(null);
4177
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
4265
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
4178
4266
  "div",
4179
4267
  {
4180
4268
  className: cn(
@@ -4194,7 +4282,7 @@ var PasswordInput = React13.memo(
4194
4282
  }
4195
4283
  ),
4196
4284
  children: [
4197
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
4285
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
4198
4286
  "input",
4199
4287
  {
4200
4288
  ref: inputRef,
@@ -4218,7 +4306,7 @@ var PasswordInput = React13.memo(
4218
4306
  }
4219
4307
  }
4220
4308
  ),
4221
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
4309
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
4222
4310
  "button",
4223
4311
  {
4224
4312
  tabIndex: -1,
@@ -4227,7 +4315,7 @@ var PasswordInput = React13.memo(
4227
4315
  onClick: () => setShowPassword(!showPassword),
4228
4316
  "aria-label": showPassword ? "Hide password" : "Show password",
4229
4317
  className: "hover:bg-primary-bg-soft absolute right-2 flex h-5 w-5 cursor-pointer items-center justify-center rounded-sm bg-white",
4230
- children: showPassword ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react18.Eye, { size: 16, className: "text-element-inverse-default-alt" }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react18.EyeOff, { size: 16, className: "text-element-inverse-default-alt" })
4318
+ children: showPassword ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react18.Eye, { size: 16, className: "text-element-inverse-default-alt" }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react18.EyeOff, { size: 16, className: "text-element-inverse-default-alt" })
4231
4319
  }
4232
4320
  )
4233
4321
  ]
@@ -4239,16 +4327,16 @@ var PasswordInput = React13.memo(
4239
4327
  // src/ui/Radio/index.tsx
4240
4328
  var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
4241
4329
  var import_lucide_react19 = require("lucide-react");
4242
- var import_jsx_runtime38 = require("react/jsx-runtime");
4330
+ var import_jsx_runtime39 = require("react/jsx-runtime");
4243
4331
  function Radio({ onSelect, options, ...props }) {
4244
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(BaseRadioGroup, { ...props, children: options.map((option) => {
4245
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
4332
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(BaseRadioGroup, { ...props, children: options.map((option) => {
4333
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
4246
4334
  Label2,
4247
4335
  {
4248
4336
  htmlFor: option.value,
4249
4337
  className: "hover:bg-surface-bg flex cursor-pointer items-center gap-x-2 rounded-lg p-1.5",
4250
4338
  children: [
4251
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
4339
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
4252
4340
  BaseRadioGroupItem,
4253
4341
  {
4254
4342
  onClick: () => {
@@ -4269,7 +4357,7 @@ function BaseRadioGroup({
4269
4357
  className,
4270
4358
  ...props
4271
4359
  }) {
4272
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
4360
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
4273
4361
  RadioGroupPrimitive.Root,
4274
4362
  {
4275
4363
  "data-slot": "radio-group",
@@ -4282,7 +4370,7 @@ function BaseRadioGroupItem({
4282
4370
  className,
4283
4371
  ...props
4284
4372
  }) {
4285
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
4373
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
4286
4374
  RadioGroupPrimitive.Item,
4287
4375
  {
4288
4376
  "data-slot": "radio-group-item",
@@ -4291,12 +4379,12 @@ function BaseRadioGroupItem({
4291
4379
  className
4292
4380
  ),
4293
4381
  ...props,
4294
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
4382
+ children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
4295
4383
  RadioGroupPrimitive.Indicator,
4296
4384
  {
4297
4385
  "data-slot": "radio-group-indicator",
4298
4386
  className: "relative flex items-center justify-center",
4299
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react19.CircleIcon, { className: "fill-check-box-and-radio-checked-enabled group-data-[state=checked]:hover:fill-check-box-and-radio-checked-hovered absolute top-1/2 left-1/2 size-[16px] -translate-x-1/2 -translate-y-1/2 stroke-none" })
4387
+ children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react19.CircleIcon, { className: "fill-check-box-and-radio-checked-enabled group-data-[state=checked]:hover:fill-check-box-and-radio-checked-hovered absolute top-1/2 left-1/2 size-[16px] -translate-x-1/2 -translate-y-1/2 stroke-none" })
4300
4388
  }
4301
4389
  )
4302
4390
  }
@@ -4307,8 +4395,8 @@ function BaseRadioGroupItem({
4307
4395
  var import_lodash = require("lodash");
4308
4396
  var import_lucide_react20 = require("lucide-react");
4309
4397
  var import_nuqs = require("nuqs");
4310
- var import_react7 = require("react");
4311
- var import_jsx_runtime39 = require("react/jsx-runtime");
4398
+ var import_react8 = require("react");
4399
+ var import_jsx_runtime40 = require("react/jsx-runtime");
4312
4400
  function SearchInput({
4313
4401
  searchKey,
4314
4402
  placeholder = "Search by...",
@@ -4320,8 +4408,8 @@ function SearchInput({
4320
4408
  const [search, setSearch] = (0, import_nuqs.useQueryState)(searchKey, {
4321
4409
  defaultValue: ""
4322
4410
  });
4323
- const [inputValue, setInputValue] = (0, import_react7.useState)(search ?? "");
4324
- const debouncedSetValue = (0, import_react7.useCallback)(
4411
+ const [inputValue, setInputValue] = (0, import_react8.useState)(search ?? "");
4412
+ const debouncedSetValue = (0, import_react8.useCallback)(
4325
4413
  (0, import_lodash.debounce)((value) => {
4326
4414
  if (addToParam) {
4327
4415
  setSearch(value);
@@ -4331,13 +4419,13 @@ function SearchInput({
4331
4419
  }, debounceDelay),
4332
4420
  [debounceDelay, addToParam, setSearch]
4333
4421
  );
4334
- (0, import_react7.useEffect)(() => {
4422
+ (0, import_react8.useEffect)(() => {
4335
4423
  debouncedSetValue(inputValue);
4336
4424
  return () => {
4337
4425
  debouncedSetValue.cancel();
4338
4426
  };
4339
4427
  }, [inputValue, debouncedSetValue]);
4340
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: cn("relative", className), children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
4428
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: cn("relative", className), children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
4341
4429
  Input,
4342
4430
  {
4343
4431
  onChange: (e) => {
@@ -4346,7 +4434,7 @@ function SearchInput({
4346
4434
  },
4347
4435
  placeholder,
4348
4436
  prefixNode: {
4349
- node: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react20.SearchIcon, { className: "text-element-inverse-default" }),
4437
+ node: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react20.SearchIcon, { className: "text-element-inverse-default" }),
4350
4438
  withBorder: false
4351
4439
  },
4352
4440
  value: inputValue,
@@ -4359,7 +4447,7 @@ function SearchInput({
4359
4447
  // src/ui/SelectHover/index.tsx
4360
4448
  var import_lucide_react21 = require("lucide-react");
4361
4449
  var React14 = __toESM(require("react"), 1);
4362
- var import_jsx_runtime40 = require("react/jsx-runtime");
4450
+ var import_jsx_runtime41 = require("react/jsx-runtime");
4363
4451
  function SelectHover({
4364
4452
  options,
4365
4453
  placeholder = "Select an option",
@@ -4386,15 +4474,15 @@ function SelectHover({
4386
4474
  setIsOpen(false);
4387
4475
  }, 300);
4388
4476
  };
4389
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Popover, { open: isOpen, onOpenChange: setIsOpen, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: [
4390
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Button, { role: "combobox", "aria-expanded": isOpen, className, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "truncate", children: selectedOption ? selectedOption.label : placeholder }) }) }),
4391
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
4477
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Popover, { open: isOpen, onOpenChange: setIsOpen, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: [
4478
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Button, { role: "combobox", "aria-expanded": isOpen, className, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "truncate", children: selectedOption ? selectedOption.label : placeholder }) }) }),
4479
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4392
4480
  PopoverContent,
4393
4481
  {
4394
4482
  className: "bg-surface-bg-container w-full rounded-3xl border-none p-2 shadow-md",
4395
4483
  onMouseEnter: handleMouseEnter,
4396
4484
  onMouseLeave: handleMouseLeave,
4397
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "flex max-h-[300px] flex-col items-start gap-[2px] overflow-auto", children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
4485
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "flex max-h-[300px] flex-col items-start gap-[2px] overflow-auto", children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
4398
4486
  "button",
4399
4487
  {
4400
4488
  className: cn(
@@ -4403,8 +4491,8 @@ function SelectHover({
4403
4491
  ),
4404
4492
  onClick: () => handleSelect(option.value),
4405
4493
  children: [
4406
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "flex-1", children: option.label }),
4407
- value === option.value && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react21.Check, { className: "text-icon-secondary ml-2 h-4 w-4" })
4494
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "flex-1", children: option.label }),
4495
+ value === option.value && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react21.Check, { className: "text-icon-secondary ml-2 h-4 w-4" })
4408
4496
  ]
4409
4497
  },
4410
4498
  option.value
@@ -4417,7 +4505,7 @@ function SelectHover({
4417
4505
  // src/ui/SelectInput/index.tsx
4418
4506
  var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
4419
4507
  var import_lucide_react22 = require("lucide-react");
4420
- var import_jsx_runtime41 = require("react/jsx-runtime");
4508
+ var import_jsx_runtime42 = require("react/jsx-runtime");
4421
4509
  function SelectInput({
4422
4510
  defaultValue,
4423
4511
  options,
@@ -4430,8 +4518,8 @@ function SelectInput({
4430
4518
  itemProps,
4431
4519
  ...props
4432
4520
  }) {
4433
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(BaseSelect, { onValueChange: onChange, defaultValue, ...props, children: [
4434
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4521
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(BaseSelect, { onValueChange: onChange, defaultValue, ...props, children: [
4522
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4435
4523
  BaseSelectTrigger,
4436
4524
  {
4437
4525
  withArrow,
@@ -4439,7 +4527,7 @@ function SelectInput({
4439
4527
  "aria-invalid": props["aria-invalid"],
4440
4528
  className: cn("w-full cursor-pointer", className),
4441
4529
  variant,
4442
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4530
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4443
4531
  BaseSelectValue,
4444
4532
  {
4445
4533
  className: "flex-1",
@@ -4448,7 +4536,7 @@ function SelectInput({
4448
4536
  )
4449
4537
  }
4450
4538
  ),
4451
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4539
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4452
4540
  BaseSelectContent,
4453
4541
  {
4454
4542
  ...contentProps,
@@ -4456,7 +4544,7 @@ function SelectInput({
4456
4544
  "border-stroke-inverse-slate-02 border",
4457
4545
  contentProps?.className
4458
4546
  ),
4459
- children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
4547
+ children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
4460
4548
  BaseSelectItem,
4461
4549
  {
4462
4550
  value: option.value,
@@ -4476,12 +4564,12 @@ function SelectInput({
4476
4564
  function BaseSelect({
4477
4565
  ...props
4478
4566
  }) {
4479
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectPrimitive.Root, { "data-slot": "select", ...props });
4567
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectPrimitive.Root, { "data-slot": "select", ...props });
4480
4568
  }
4481
4569
  function BaseSelectValue({
4482
4570
  ...props
4483
4571
  }) {
4484
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
4572
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
4485
4573
  }
4486
4574
  function BaseSelectTrigger({
4487
4575
  className,
@@ -4491,7 +4579,7 @@ function BaseSelectTrigger({
4491
4579
  children,
4492
4580
  ...props
4493
4581
  }) {
4494
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
4582
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
4495
4583
  SelectPrimitive.Trigger,
4496
4584
  {
4497
4585
  "data-slot": "select-trigger",
@@ -4512,7 +4600,7 @@ function BaseSelectTrigger({
4512
4600
  ...props,
4513
4601
  children: [
4514
4602
  children,
4515
- withArrow && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react22.ChevronDownIcon, { className: "text-icon-default size-4" }) })
4603
+ withArrow && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react22.ChevronDownIcon, { className: "text-icon-default size-4" }) })
4516
4604
  ]
4517
4605
  }
4518
4606
  );
@@ -4523,7 +4611,7 @@ function BaseSelectContent({
4523
4611
  position = "popper",
4524
4612
  ...props
4525
4613
  }) {
4526
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
4614
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
4527
4615
  SelectPrimitive.Content,
4528
4616
  {
4529
4617
  "data-slot": "select-content",
@@ -4535,8 +4623,8 @@ function BaseSelectContent({
4535
4623
  position,
4536
4624
  ...props,
4537
4625
  children: [
4538
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(BaseSelectScrollUpButton, {}),
4539
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4626
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(BaseSelectScrollUpButton, {}),
4627
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4540
4628
  SelectPrimitive.Viewport,
4541
4629
  {
4542
4630
  className: cn(
@@ -4546,7 +4634,7 @@ function BaseSelectContent({
4546
4634
  children
4547
4635
  }
4548
4636
  ),
4549
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(BaseSelectScrollDownButton, {})
4637
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(BaseSelectScrollDownButton, {})
4550
4638
  ]
4551
4639
  }
4552
4640
  ) });
@@ -4556,7 +4644,7 @@ function BaseSelectItem({
4556
4644
  children,
4557
4645
  ...props
4558
4646
  }) {
4559
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
4647
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
4560
4648
  SelectPrimitive.Item,
4561
4649
  {
4562
4650
  "data-slot": "select-item",
@@ -4566,8 +4654,8 @@ function BaseSelectItem({
4566
4654
  ),
4567
4655
  ...props,
4568
4656
  children: [
4569
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react22.CheckIcon, { className: "text-icon-secondary size-4" }) }) }),
4570
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectPrimitive.ItemText, { children })
4657
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react22.CheckIcon, { className: "text-icon-secondary size-4" }) }) }),
4658
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectPrimitive.ItemText, { children })
4571
4659
  ]
4572
4660
  }
4573
4661
  );
@@ -4576,7 +4664,7 @@ function BaseSelectScrollUpButton({
4576
4664
  className,
4577
4665
  ...props
4578
4666
  }) {
4579
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4667
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4580
4668
  SelectPrimitive.ScrollUpButton,
4581
4669
  {
4582
4670
  "data-slot": "select-scroll-up-button",
@@ -4585,7 +4673,7 @@ function BaseSelectScrollUpButton({
4585
4673
  className
4586
4674
  ),
4587
4675
  ...props,
4588
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react22.ChevronUpIcon, { className: "size-4" })
4676
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react22.ChevronUpIcon, { className: "size-4" })
4589
4677
  }
4590
4678
  );
4591
4679
  }
@@ -4593,7 +4681,7 @@ function BaseSelectScrollDownButton({
4593
4681
  className,
4594
4682
  ...props
4595
4683
  }) {
4596
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4684
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4597
4685
  SelectPrimitive.ScrollDownButton,
4598
4686
  {
4599
4687
  "data-slot": "select-scroll-down-button",
@@ -4602,7 +4690,7 @@ function BaseSelectScrollDownButton({
4602
4690
  className
4603
4691
  ),
4604
4692
  ...props,
4605
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react22.ChevronDownIcon, { className: "size-4" })
4693
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react22.ChevronDownIcon, { className: "size-4" })
4606
4694
  }
4607
4695
  );
4608
4696
  }
@@ -4610,15 +4698,15 @@ function BaseSelectScrollDownButton({
4610
4698
  // src/ui/Sheet/index.tsx
4611
4699
  var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
4612
4700
  var import_lucide_react23 = require("lucide-react");
4613
- var import_jsx_runtime42 = require("react/jsx-runtime");
4701
+ var import_jsx_runtime43 = require("react/jsx-runtime");
4614
4702
  function Sheet({ ...props }) {
4615
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
4703
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
4616
4704
  }
4617
4705
 
4618
4706
  // src/ui/Skeleton/index.tsx
4619
- var import_jsx_runtime43 = require("react/jsx-runtime");
4707
+ var import_jsx_runtime44 = require("react/jsx-runtime");
4620
4708
  function Skeleton({ className, ...props }) {
4621
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4709
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4622
4710
  "div",
4623
4711
  {
4624
4712
  "data-slot": "skeleton",
@@ -4634,7 +4722,7 @@ function Skeleton({ className, ...props }) {
4634
4722
  // src/ui/Slider/index.tsx
4635
4723
  var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
4636
4724
  var React15 = __toESM(require("react"), 1);
4637
- var import_jsx_runtime44 = require("react/jsx-runtime");
4725
+ var import_jsx_runtime45 = require("react/jsx-runtime");
4638
4726
  function Slider({
4639
4727
  className,
4640
4728
  defaultValue,
@@ -4647,7 +4735,7 @@ function Slider({
4647
4735
  () => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
4648
4736
  [value, defaultValue, min, max]
4649
4737
  );
4650
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
4738
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4651
4739
  SliderPrimitive.Root,
4652
4740
  {
4653
4741
  "data-slot": "slider",
@@ -4661,14 +4749,14 @@ function Slider({
4661
4749
  ),
4662
4750
  ...props,
4663
4751
  children: [
4664
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4752
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4665
4753
  SliderPrimitive.Track,
4666
4754
  {
4667
4755
  "data-slot": "slider-track",
4668
4756
  className: cn(
4669
4757
  "bg-audioProgress-bg relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
4670
4758
  ),
4671
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4759
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4672
4760
  SliderPrimitive.Range,
4673
4761
  {
4674
4762
  "data-slot": "slider-range",
@@ -4679,7 +4767,7 @@ function Slider({
4679
4767
  )
4680
4768
  }
4681
4769
  ),
4682
- Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4770
+ Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4683
4771
  SliderPrimitive.Thumb,
4684
4772
  {
4685
4773
  "data-slot": "slider-thumb",
@@ -4695,10 +4783,10 @@ function Slider({
4695
4783
  // src/ui/Sooner/index.tsx
4696
4784
  var import_next_themes = require("next-themes");
4697
4785
  var import_sonner = require("sonner");
4698
- var import_jsx_runtime45 = require("react/jsx-runtime");
4786
+ var import_jsx_runtime46 = require("react/jsx-runtime");
4699
4787
  var Toaster = ({ ...props }) => {
4700
4788
  const { theme = "system" } = (0, import_next_themes.useTheme)();
4701
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4789
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4702
4790
  import_sonner.Toaster,
4703
4791
  {
4704
4792
  theme,
@@ -4715,14 +4803,14 @@ var Toaster = ({ ...props }) => {
4715
4803
 
4716
4804
  // src/ui/Switch/index.tsx
4717
4805
  var SwitchPrimitive = __toESM(require("@radix-ui/react-switch"), 1);
4718
- var import_jsx_runtime46 = require("react/jsx-runtime");
4806
+ var import_jsx_runtime47 = require("react/jsx-runtime");
4719
4807
  function Switch({
4720
4808
  className,
4721
4809
  label,
4722
4810
  ...props
4723
4811
  }) {
4724
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex items-center space-x-2", children: [
4725
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4812
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center space-x-2", children: [
4813
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4726
4814
  SwitchPrimitive.Root,
4727
4815
  {
4728
4816
  "data-slot": "switch",
@@ -4732,7 +4820,7 @@ function Switch({
4732
4820
  className
4733
4821
  ),
4734
4822
  ...props,
4735
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4823
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4736
4824
  SwitchPrimitive.Thumb,
4737
4825
  {
4738
4826
  "data-slot": "switch-thumb",
@@ -4743,7 +4831,7 @@ function Switch({
4743
4831
  )
4744
4832
  }
4745
4833
  ),
4746
- label && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Label2, { htmlFor: props.id || label, children: label })
4834
+ label && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Label2, { htmlFor: props.id || label, children: label })
4747
4835
  ] });
4748
4836
  }
4749
4837
 
@@ -4755,8 +4843,8 @@ var import_class_variance_authority11 = require("class-variance-authority");
4755
4843
  var import_lucide_react25 = require("lucide-react");
4756
4844
  var import_magick_icons4 = require("magick-icons");
4757
4845
  var React16 = __toESM(require("react"), 1);
4758
- var import_react8 = require("react");
4759
- var import_jsx_runtime47 = require("react/jsx-runtime");
4846
+ var import_react9 = require("react");
4847
+ var import_jsx_runtime48 = require("react/jsx-runtime");
4760
4848
  var Table = ({
4761
4849
  columns,
4762
4850
  tableData,
@@ -4764,7 +4852,7 @@ var Table = ({
4764
4852
  emptyState = {
4765
4853
  emptyAction: void 0,
4766
4854
  label: "There is currently no data available to display in this table.",
4767
- icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(IconProfile, { icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_magick_icons4.IconsaxBriefcaseBold, {}), color: "teal" })
4855
+ icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(IconProfile, { icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_magick_icons4.IconsaxBriefcaseBold, {}), color: "teal" })
4768
4856
  },
4769
4857
  onRowClick
4770
4858
  }) => {
@@ -4776,41 +4864,41 @@ var Table = ({
4776
4864
  getSortedRowModel: (0, import_react_table.getSortedRowModel)()
4777
4865
  });
4778
4866
  const rowCount = table.getRowModel().rows.length;
4779
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "relative flex flex-col overflow-auto", children: [
4780
- isLoading ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4867
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "relative flex flex-col overflow-auto", children: [
4868
+ isLoading ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
4781
4869
  "div",
4782
4870
  {
4783
4871
  className: cn(
4784
4872
  rowCount === 0 ? "" : "bg-gray-100 dark:bg-gray-700",
4785
4873
  "absolute top-10 left-0 w-full h-full min-h-[100px] opacity-70 z-10 flex items-center justify-center"
4786
4874
  ),
4787
- children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react24.Loader2, { className: "size-10 text-stroke-inverse-slate-04 " })
4875
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react24.Loader2, { className: "size-10 text-stroke-inverse-slate-04 " })
4788
4876
  }
4789
4877
  ) : null,
4790
- !isLoading && rowCount === 0 ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-2", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex flex-col items-center gap-4", children: [
4878
+ !isLoading && rowCount === 0 ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-2", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col items-center gap-4", children: [
4791
4879
  emptyState?.icon,
4792
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Text, { children: emptyState?.label }),
4793
- emptyState?.emptyAction ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4880
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Text, { children: emptyState?.label }),
4881
+ emptyState?.emptyAction ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
4794
4882
  Button,
4795
4883
  {
4796
4884
  variant: "outline",
4797
- prefix: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_magick_icons4.MagickoAdd, { className: "[&_path]:fill-element-inverse-default" }),
4885
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_magick_icons4.MagickoAdd, { className: "[&_path]:fill-element-inverse-default" }),
4798
4886
  onClick: () => emptyState?.emptyAction?.(),
4799
4887
  children: "Create new"
4800
4888
  }
4801
4889
  ) : null
4802
4890
  ] }) }) : null,
4803
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "max-w-full flex-1 overflow-x-auto", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
4891
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "max-w-full flex-1 overflow-x-auto", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
4804
4892
  "table",
4805
4893
  {
4806
4894
  className: "w-full caption-bottom text-sm",
4807
4895
  style: { minWidth: "max-content" },
4808
4896
  children: [
4809
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("thead", { className: "bg-fill-inverse-slate-03", children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4897
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("thead", { className: "bg-fill-inverse-slate-03", children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
4810
4898
  "tr",
4811
4899
  {
4812
4900
  className: "hover:bg-muted/50 border-stroke-inverse-slate-02 border-b transition-colors",
4813
- children: headerGroup.headers.map((header) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4901
+ children: headerGroup.headers.map((header) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
4814
4902
  "th",
4815
4903
  {
4816
4904
  className: "text-muted-foreground h-12 px-4 text-left align-middle font-medium",
@@ -4824,14 +4912,14 @@ var Table = ({
4824
4912
  },
4825
4913
  headerGroup.id
4826
4914
  )) }),
4827
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("tbody", { className: "relative", children: [
4915
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("tbody", { className: "relative", children: [
4828
4916
  table.getRowModel().rows.map((row) => {
4829
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4917
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
4830
4918
  "tr",
4831
4919
  {
4832
4920
  className: "hover:bg-muted/50 bg-table-table-cell-unselected group/row border-stroke-inverse-slate-02 cursor-pointer border-b transition-colors",
4833
4921
  onClick: () => onRowClick?.(row.original),
4834
- children: row.getVisibleCells().map((cell) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("td", { className: "p-4", children: (0, import_react_table.flexRender)(
4922
+ children: row.getVisibleCells().map((cell) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("td", { className: "p-4", children: (0, import_react_table.flexRender)(
4835
4923
  cell.column.columnDef.cell,
4836
4924
  cell.getContext()
4837
4925
  ) }, cell.id))
@@ -4839,7 +4927,7 @@ var Table = ({
4839
4927
  row.id
4840
4928
  );
4841
4929
  }),
4842
- rowCount === 0 && Array.from({ length: 6 }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("td", { colSpan: columns.length, className: "h-12 p-4", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "" }) }) }, index))
4930
+ rowCount === 0 && Array.from({ length: 6 }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("td", { colSpan: columns.length, className: "h-12 p-4", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "" }) }) }, index))
4843
4931
  ] })
4844
4932
  ]
4845
4933
  }
@@ -4874,13 +4962,13 @@ var PrimaryCell = React16.forwardRef(
4874
4962
  }, ref) => {
4875
4963
  let content = children;
4876
4964
  if (variant === "badge") {
4877
- content = /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center gap-2", children: [
4965
+ content = /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex items-center gap-2", children: [
4878
4966
  children,
4879
- badgeContent && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Badge, { type: badgeType, size: badgeSize, children: badgeContent })
4967
+ badgeContent && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Badge, { type: badgeType, size: badgeSize, children: badgeContent })
4880
4968
  ] });
4881
4969
  } else if (variant === "progress") {
4882
- content = /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
4883
- progressValue !== 100 && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4970
+ content = /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
4971
+ progressValue !== 100 && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
4884
4972
  ProgressIndicator,
4885
4973
  {
4886
4974
  variant: "circle",
@@ -4889,23 +4977,23 @@ var PrimaryCell = React16.forwardRef(
4889
4977
  showPercentage: showProgressPercentage
4890
4978
  }
4891
4979
  ),
4892
- children && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "text-body-sm text-element-inverse-default", children })
4980
+ children && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "text-body-sm text-element-inverse-default", children })
4893
4981
  ] });
4894
4982
  } else if (variant === "error") {
4895
- content = /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
4896
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_lucide_react25.AlertCircle, { className: "size-4 shrink-0" }),
4897
- errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "text-body-sm", children: errorMessage }) : children
4983
+ content = /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
4984
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react25.AlertCircle, { className: "size-4 shrink-0" }),
4985
+ errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "text-body-sm", children: errorMessage }) : children
4898
4986
  ] });
4899
4987
  }
4900
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
4988
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
4901
4989
  "div",
4902
4990
  {
4903
4991
  ref,
4904
4992
  className: cn(primaryCellVariants({ variant })),
4905
4993
  ...props,
4906
4994
  children: [
4907
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: content }),
4908
- hoverUI && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "ml-2 flex items-center gap-2 opacity-0 transition-opacity duration-200 group-hover/row:opacity-100", children: hoverUI })
4995
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: content }),
4996
+ hoverUI && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "ml-2 flex items-center gap-2 opacity-0 transition-opacity duration-200 group-hover/row:opacity-100", children: hoverUI })
4909
4997
  ]
4910
4998
  }
4911
4999
  );
@@ -4914,7 +5002,7 @@ var PrimaryCell = React16.forwardRef(
4914
5002
  PrimaryCell.displayName = "PrimaryCell";
4915
5003
  Table.PrimaryCell = PrimaryCell;
4916
5004
  var TextCell = React16.forwardRef(({ text, copyable = true, className, ...props }, ref) => {
4917
- const [isCopied, setIsCopied] = (0, import_react8.useState)(false);
5005
+ const [isCopied, setIsCopied] = (0, import_react9.useState)(false);
4918
5006
  const [hoverRef, isHovering] = (0, import_usehooks.useHover)();
4919
5007
  const handleCopy = () => {
4920
5008
  navigator.clipboard.writeText(text);
@@ -4927,11 +5015,11 @@ var TextCell = React16.forwardRef(({ text, copyable = true, className, ...props
4927
5015
  }, 1200);
4928
5016
  }
4929
5017
  }, [isCopied]);
4930
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: cn("w-full h-full", className), ref, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "relative", ref: hoverRef, children: [
4931
- copyable && isHovering && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5018
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: cn("w-full h-full", className), ref, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "relative", ref: hoverRef, children: [
5019
+ copyable && isHovering && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
4932
5020
  IconButton,
4933
5021
  {
4934
- icon: isCopied ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5022
+ icon: isCopied ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
4935
5023
  import_magick_icons4.MagickoCopySuccess,
4936
5024
  {
4937
5025
  className: cn(
@@ -4939,16 +5027,16 @@ var TextCell = React16.forwardRef(({ text, copyable = true, className, ...props
4939
5027
  "transition-all ease-in duration-200"
4940
5028
  )
4941
5029
  }
4942
- ) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_magick_icons4.MagickoCopy, { className: "size-4" }),
5030
+ ) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_magick_icons4.MagickoCopy, { className: "size-4" }),
4943
5031
  className: "absolute top-1/2 -right-3 -translate-y-1/2",
4944
5032
  size: "sm",
4945
5033
  varient: "soft",
4946
5034
  onClick: handleCopy
4947
5035
  }
4948
5036
  ),
4949
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(Popover, { children: [
4950
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Text, { className: "truncate line-clamp-1", children: text ?? "-" }) }),
4951
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(PopoverContent, { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Text, { children: text ?? "-" }) })
5037
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Popover, { children: [
5038
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Text, { className: "truncate line-clamp-1", children: text ?? "-" }) }),
5039
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(PopoverContent, { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Text, { children: text ?? "-" }) })
4952
5040
  ] })
4953
5041
  ] }) });
4954
5042
  });
@@ -4958,7 +5046,7 @@ var Table_default = Table;
4958
5046
 
4959
5047
  // src/ui/Tabs/index.tsx
4960
5048
  var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
4961
- var import_jsx_runtime48 = require("react/jsx-runtime");
5049
+ var import_jsx_runtime49 = require("react/jsx-runtime");
4962
5050
  function Tabs({
4963
5051
  defaultActiveTab,
4964
5052
  tabSmall,
@@ -4967,8 +5055,8 @@ function Tabs({
4967
5055
  showContent = true,
4968
5056
  ...props
4969
5057
  }) {
4970
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(BaseTabs, { defaultValue: defaultActiveTab, className, ...props, children: [
4971
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(BaseTabsList, { children: tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
5058
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(BaseTabs, { defaultValue: defaultActiveTab, className, ...props, children: [
5059
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(BaseTabsList, { children: tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
4972
5060
  BaseTabsTrigger,
4973
5061
  {
4974
5062
  tabSmall,
@@ -4976,22 +5064,22 @@ function Tabs({
4976
5064
  className: "relative flex cursor-pointer items-center justify-center gap-x-2",
4977
5065
  onClick: typeof tab === "object" && "onClick" in tab ? tab.onClick : void 0,
4978
5066
  children: [
4979
- tab.icon && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { children: tab.icon }),
5067
+ tab.icon && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { children: tab.icon }),
4980
5068
  tab.label,
4981
- tab.notification && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "bg-icon-destructive absolute top-1 right-1 size-1.5 rounded-full" }),
4982
- !!tab.count && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Badge, { type: "primary-soft", children: tab.count })
5069
+ tab.notification && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "bg-icon-destructive absolute top-1 right-1 size-1.5 rounded-full" }),
5070
+ !!tab.count && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Badge, { type: "primary-soft", children: tab.count })
4983
5071
  ]
4984
5072
  },
4985
5073
  tab.value
4986
5074
  )) }),
4987
- showContent && "content" in tabs[0] && tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(BaseTabsContent, { value: tab.value, children: tab.content }, tab.value))
5075
+ showContent && "content" in tabs[0] && tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(BaseTabsContent, { value: tab.value, children: tab.content }, tab.value))
4988
5076
  ] });
4989
5077
  }
4990
5078
  function BaseTabs({
4991
5079
  className,
4992
5080
  ...props
4993
5081
  }) {
4994
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5082
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4995
5083
  TabsPrimitive.Root,
4996
5084
  {
4997
5085
  "data-slot": "tabs",
@@ -5004,7 +5092,7 @@ function BaseTabsList({
5004
5092
  className,
5005
5093
  ...props
5006
5094
  }) {
5007
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5095
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5008
5096
  TabsPrimitive.List,
5009
5097
  {
5010
5098
  "data-slot": "tabs-list",
@@ -5021,7 +5109,7 @@ function BaseTabsTrigger({
5021
5109
  tabSmall,
5022
5110
  ...props
5023
5111
  }) {
5024
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5112
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5025
5113
  TabsPrimitive.Trigger,
5026
5114
  {
5027
5115
  "data-slot": "tabs-trigger",
@@ -5038,7 +5126,7 @@ function BaseTabsContent({
5038
5126
  className,
5039
5127
  ...props
5040
5128
  }) {
5041
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5129
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5042
5130
  TabsPrimitive.Content,
5043
5131
  {
5044
5132
  "data-slot": "tabs-content",
@@ -5050,7 +5138,7 @@ function BaseTabsContent({
5050
5138
 
5051
5139
  // src/ui/Tag/index.tsx
5052
5140
  var import_class_variance_authority12 = require("class-variance-authority");
5053
- var import_jsx_runtime49 = require("react/jsx-runtime");
5141
+ var import_jsx_runtime50 = require("react/jsx-runtime");
5054
5142
  var tagVariants = (0, import_class_variance_authority12.cva)("px-1 rounded-sm", {
5055
5143
  variants: {
5056
5144
  variant: {
@@ -5068,14 +5156,14 @@ function Tag({
5068
5156
  variant,
5069
5157
  className
5070
5158
  }) {
5071
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { "data-slot": "tag", className: cn(tagVariants({ variant }), className), children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "text-caption font-semibold text-white", children: label }) });
5159
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { "data-slot": "tag", className: cn(tagVariants({ variant }), className), children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "text-caption font-semibold text-white", children: label }) });
5072
5160
  }
5073
5161
 
5074
5162
  // src/ui/TextAreaInput/index.tsx
5075
5163
  var React17 = __toESM(require("react"), 1);
5076
- var import_jsx_runtime50 = require("react/jsx-runtime");
5164
+ var import_jsx_runtime51 = require("react/jsx-runtime");
5077
5165
  var TextareaInput = React17.forwardRef(({ className, label, ...props }, ref) => {
5078
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5166
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5079
5167
  "textarea",
5080
5168
  {
5081
5169
  ref,
@@ -5095,8 +5183,8 @@ var TextAreaInput_default = TextareaInput;
5095
5183
 
5096
5184
  // src/ui/TimePicker/index.tsx
5097
5185
  var import_lucide_react26 = require("lucide-react");
5098
- var import_react9 = require("react");
5099
- var import_jsx_runtime51 = require("react/jsx-runtime");
5186
+ var import_react10 = require("react");
5187
+ var import_jsx_runtime52 = require("react/jsx-runtime");
5100
5188
  function TimePicker({
5101
5189
  label,
5102
5190
  onValueChange,
@@ -5105,7 +5193,7 @@ function TimePicker({
5105
5193
  value,
5106
5194
  ...props
5107
5195
  }) {
5108
- const [isOpen, setIsOpen] = (0, import_react9.useState)(false);
5196
+ const [isOpen, setIsOpen] = (0, import_react10.useState)(false);
5109
5197
  const currentValue = value || defaultValue || "";
5110
5198
  const formatTimeForDisplay = (timeValue) => {
5111
5199
  if (!timeValue) return "";
@@ -5117,10 +5205,10 @@ function TimePicker({
5117
5205
  const handleChange = (value2) => {
5118
5206
  onValueChange?.(value2);
5119
5207
  };
5120
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col gap-3", children: [
5121
- label && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Label2, { htmlFor: "time-picker", className: "px-1", children: "Time" }),
5122
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(DropdownMenu, { open: isOpen, onOpenChange: setIsOpen, children: [
5123
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DropdownMenuTrigger, { className: "!p-0", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5208
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex flex-col gap-3", children: [
5209
+ label && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Label2, { htmlFor: "time-picker", className: "px-1", children: "Time" }),
5210
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(DropdownMenu, { open: isOpen, onOpenChange: setIsOpen, children: [
5211
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DropdownMenuTrigger, { className: "!p-0", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5124
5212
  Input,
5125
5213
  {
5126
5214
  ...props,
@@ -5128,17 +5216,17 @@ function TimePicker({
5128
5216
  value: currentValue ? formatTimeForDisplay(currentValue) : "",
5129
5217
  onKeyDown: (e) => e.preventDefault(),
5130
5218
  prefixNode: {
5131
- node: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react26.Clock, { className: "pointer-events-none h-5 w-5 text-gray-700" }),
5219
+ node: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_lucide_react26.Clock, { className: "pointer-events-none h-5 w-5 text-gray-700" }),
5132
5220
  withBorder: false
5133
5221
  }
5134
5222
  }
5135
5223
  ) }),
5136
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5224
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5137
5225
  DropdownMenuContent,
5138
5226
  {
5139
5227
  align: "start",
5140
5228
  className: "max-h-60 min-w-41 overflow-y-auto",
5141
- children: timeOptions?.map((item) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5229
+ children: timeOptions?.map((item) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5142
5230
  DropdownMenuItem,
5143
5231
  {
5144
5232
  className: cn(
@@ -5159,11 +5247,11 @@ function TimePicker({
5159
5247
  // src/ui/Title/index.tsx
5160
5248
  var import_react_slot6 = require("@radix-ui/react-slot");
5161
5249
  var React18 = __toESM(require("react"), 1);
5162
- var import_jsx_runtime52 = require("react/jsx-runtime");
5250
+ var import_jsx_runtime53 = require("react/jsx-runtime");
5163
5251
  var Title2 = React18.forwardRef(
5164
5252
  ({ className, asChild = false, ...props }, ref) => {
5165
5253
  const Comp = asChild ? import_react_slot6.Slot : "h2";
5166
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5254
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5167
5255
  Comp,
5168
5256
  {
5169
5257
  ref,
@@ -5182,7 +5270,7 @@ var Title_default = Title2;
5182
5270
  // src/ui/Toggle/index.tsx
5183
5271
  var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
5184
5272
  var import_class_variance_authority13 = require("class-variance-authority");
5185
- var import_jsx_runtime53 = require("react/jsx-runtime");
5273
+ var import_jsx_runtime54 = require("react/jsx-runtime");
5186
5274
  var toggleVariants = (0, import_class_variance_authority13.cva)(
5187
5275
  "inline-flex items-center justify-center gap-2 text-sm font-medium disabled:pointer-events-none disabled:text-icon-inactive data-[state=on]:disabled:text-icon-inactive data-[state=on]:disabled:bg-toggle-bg-inactiveDefault data-[state=on]:bg-toggle-bg-activeDefault data-[state=on]:hover:bg-toggle-bg-activeHover data-[state=on]:text-icon-white hover:bg-toggle-bg-inactiveHover hover:text-icon-default [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap cursor-pointer",
5188
5276
  {
@@ -5217,7 +5305,7 @@ function Toggle({
5217
5305
  size,
5218
5306
  ...props
5219
5307
  }) {
5220
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5308
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5221
5309
  TogglePrimitive.Root,
5222
5310
  {
5223
5311
  "data-slot": "toggle",
@@ -5229,12 +5317,12 @@ function Toggle({
5229
5317
  }
5230
5318
 
5231
5319
  // src/ui/ToggleDropdownButton/index.tsx
5232
- var import_react11 = require("react");
5320
+ var import_react12 = require("react");
5233
5321
 
5234
5322
  // src/ui/ToggleDropdownButton/ToggleDropdownLeftButton.tsx
5235
5323
  var import_class_variance_authority14 = require("class-variance-authority");
5236
5324
  var React19 = __toESM(require("react"), 1);
5237
- var import_jsx_runtime54 = require("react/jsx-runtime");
5325
+ var import_jsx_runtime55 = require("react/jsx-runtime");
5238
5326
  var toggleDropdownLeftButtonVariants = (0, import_class_variance_authority14.cva)(
5239
5327
  "flex items-center justify-center cursor-pointer transition-all",
5240
5328
  {
@@ -5330,7 +5418,7 @@ function ToggleDropdownLeftButton({
5330
5418
  }) {
5331
5419
  const iconClass = selected ? "text-element-static-white fill-element-static-white" : "text-element-inverse-default fill-element-inverse-default";
5332
5420
  const isIcon = React19.isValidElement(children);
5333
- return type === "text" ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5421
+ return type === "text" ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5334
5422
  "button",
5335
5423
  {
5336
5424
  type: "button",
@@ -5339,7 +5427,7 @@ function ToggleDropdownLeftButton({
5339
5427
  className
5340
5428
  ),
5341
5429
  ...props,
5342
- children: isIcon ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5430
+ children: isIcon ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5343
5431
  IconContainer,
5344
5432
  {
5345
5433
  colorInFill: false,
@@ -5352,7 +5440,7 @@ function ToggleDropdownLeftButton({
5352
5440
  }
5353
5441
  ) : children
5354
5442
  }
5355
- ) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5443
+ ) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5356
5444
  "button",
5357
5445
  {
5358
5446
  type: "button",
@@ -5361,7 +5449,7 @@ function ToggleDropdownLeftButton({
5361
5449
  className
5362
5450
  ),
5363
5451
  ...props,
5364
- children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5452
+ children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5365
5453
  IconContainer,
5366
5454
  {
5367
5455
  colorInFill: false,
@@ -5380,7 +5468,7 @@ function ToggleDropdownLeftButton({
5380
5468
  // src/ui/ToggleDropdownButton/ToggleDropdownRightButton.tsx
5381
5469
  var import_class_variance_authority15 = require("class-variance-authority");
5382
5470
  var React20 = __toESM(require("react"), 1);
5383
- var import_jsx_runtime55 = require("react/jsx-runtime");
5471
+ var import_jsx_runtime56 = require("react/jsx-runtime");
5384
5472
  var toggleDropdownRightButtonVariants = (0, import_class_variance_authority15.cva)(
5385
5473
  "flex items-center justify-center group cursor-pointer transition-all",
5386
5474
  {
@@ -5476,7 +5564,7 @@ function ToggleDropdownRightButton({
5476
5564
  }) {
5477
5565
  const iconClass = selected ? "text-element-static-white fill-element-static-white" : "text-element-inverse-default fill-element-inverse-default";
5478
5566
  const isIcon = React20.isValidElement(children);
5479
- return type === "text" ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5567
+ return type === "text" ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5480
5568
  "button",
5481
5569
  {
5482
5570
  type: "button",
@@ -5485,7 +5573,7 @@ function ToggleDropdownRightButton({
5485
5573
  className
5486
5574
  ),
5487
5575
  ...props,
5488
- children: isIcon ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5576
+ children: isIcon ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5489
5577
  IconContainer,
5490
5578
  {
5491
5579
  colorInFill: false,
@@ -5498,7 +5586,7 @@ function ToggleDropdownRightButton({
5498
5586
  }
5499
5587
  ) : children
5500
5588
  }
5501
- ) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5589
+ ) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5502
5590
  "button",
5503
5591
  {
5504
5592
  type: "button",
@@ -5507,7 +5595,7 @@ function ToggleDropdownRightButton({
5507
5595
  className
5508
5596
  ),
5509
5597
  ...props,
5510
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5598
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5511
5599
  IconContainer,
5512
5600
  {
5513
5601
  colorInFill: false,
@@ -5524,10 +5612,10 @@ function ToggleDropdownRightButton({
5524
5612
  }
5525
5613
 
5526
5614
  // src/ui/ToggleDropdownButton/useToggleDropdown.ts
5527
- var import_react10 = require("react");
5615
+ var import_react11 = require("react");
5528
5616
 
5529
5617
  // src/ui/ToggleDropdownButton/index.tsx
5530
- var import_jsx_runtime56 = require("react/jsx-runtime");
5618
+ var import_jsx_runtime57 = require("react/jsx-runtime");
5531
5619
  var ToggleDropdownButton = ({
5532
5620
  type,
5533
5621
  selected,
@@ -5538,15 +5626,15 @@ var ToggleDropdownButton = ({
5538
5626
  onLeftButtonClick,
5539
5627
  dropdownMenu
5540
5628
  }) => {
5541
- const rightButtonRef = (0, import_react11.useRef)(null);
5629
+ const rightButtonRef = (0, import_react12.useRef)(null);
5542
5630
  const handleRightButtonClick = () => {
5543
5631
  onRightButtonClick?.();
5544
5632
  };
5545
5633
  const handleLeftButtonClick = () => {
5546
5634
  onLeftButtonClick?.();
5547
5635
  };
5548
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "gap-x-unit-1px flex items-center", children: [
5549
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5636
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "gap-x-unit-1px flex items-center", children: [
5637
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5550
5638
  ToggleDropdownLeftButton,
5551
5639
  {
5552
5640
  selected,
@@ -5557,8 +5645,8 @@ var ToggleDropdownButton = ({
5557
5645
  children: leftButtonChildren
5558
5646
  }
5559
5647
  ),
5560
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "relative", children: [
5561
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5648
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "relative", children: [
5649
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5562
5650
  ToggleDropdownRightButton,
5563
5651
  {
5564
5652
  ref: rightButtonRef,
@@ -5578,8 +5666,8 @@ var ToggleDropdownButton_default = ToggleDropdownButton;
5578
5666
 
5579
5667
  // src/ui/ToolToggle/index.tsx
5580
5668
  var import_lucide_react27 = require("lucide-react");
5581
- var import_react12 = require("react");
5582
- var import_jsx_runtime57 = require("react/jsx-runtime");
5669
+ var import_react13 = require("react");
5670
+ var import_jsx_runtime58 = require("react/jsx-runtime");
5583
5671
  var ToolToggle = ({
5584
5672
  dropdown,
5585
5673
  dropdownContent,
@@ -5587,41 +5675,41 @@ var ToolToggle = ({
5587
5675
  className,
5588
5676
  onClick
5589
5677
  }) => {
5590
- const [active, setActive] = (0, import_react12.useState)(false);
5678
+ const [active, setActive] = (0, import_react13.useState)(false);
5591
5679
  const handleClick = () => {
5592
5680
  setActive(!active);
5593
5681
  onClick?.(active);
5594
5682
  };
5595
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: cn(dropdown ? "min-w-20" : "min-w-[52px]", className), children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(DropdownMenu, { children: [
5596
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
5683
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: cn(dropdown ? "min-w-20" : "min-w-[52px]", className), children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(DropdownMenu, { children: [
5684
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5597
5685
  DropdownMenuTrigger,
5598
5686
  {
5599
5687
  className: cn(
5600
5688
  "border-border-primary-light !bg-toggle-bg-inactiveDefault hover:!bg-toggle-bg-inactiveHover flex h-full w-full items-center justify-center gap-x-2 !rounded-full border p-4 transition-all",
5601
5689
  active && "!bg-toggle-bg-activeDefault hover:!bg-toggle-bg-activeHover"
5602
5690
  ),
5603
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
5691
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
5604
5692
  "div",
5605
5693
  {
5606
5694
  className: "flex items-center justify-center gap-x-2",
5607
5695
  onClick: handleClick,
5608
5696
  children: [
5609
5697
  icon,
5610
- dropdown && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_lucide_react27.ChevronDown, { className: "text-icon-default size-5" })
5698
+ dropdown && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react27.ChevronDown, { className: "text-icon-default size-5" })
5611
5699
  ]
5612
5700
  }
5613
5701
  )
5614
5702
  }
5615
5703
  ),
5616
- dropdown && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(DropdownMenuContent, { align: "start", className: "min-w-41", children: dropdownContent })
5704
+ dropdown && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(DropdownMenuContent, { align: "start", className: "min-w-41", children: dropdownContent })
5617
5705
  ] }) });
5618
5706
  };
5619
5707
 
5620
5708
  // src/ui/WrapperCard/index.tsx
5621
- var import_jsx_runtime58 = require("react/jsx-runtime");
5709
+ var import_jsx_runtime59 = require("react/jsx-runtime");
5622
5710
  var WrapperCard = (props) => {
5623
5711
  const { children, className } = props;
5624
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5712
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5625
5713
  "div",
5626
5714
  {
5627
5715
  className: cn(
@@ -5637,7 +5725,7 @@ var WrapperCard = (props) => {
5637
5725
  var import_react_slot7 = require("@radix-ui/react-slot");
5638
5726
  var React21 = __toESM(require("react"), 1);
5639
5727
  var import_react_hook_form = require("react-hook-form");
5640
- var import_jsx_runtime59 = require("react/jsx-runtime");
5728
+ var import_jsx_runtime60 = require("react/jsx-runtime");
5641
5729
  var BaseForm = import_react_hook_form.FormProvider;
5642
5730
  var FormFieldContext = React21.createContext(
5643
5731
  {}
@@ -5645,7 +5733,7 @@ var FormFieldContext = React21.createContext(
5645
5733
  var BaseFormField = ({
5646
5734
  ...props
5647
5735
  }) => {
5648
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react_hook_form.Controller, { ...props }) });
5736
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react_hook_form.Controller, { ...props }) });
5649
5737
  };
5650
5738
  var useFormField = () => {
5651
5739
  const fieldContext = React21.useContext(FormFieldContext);
@@ -5671,7 +5759,7 @@ var FormItemContext = React21.createContext(
5671
5759
  );
5672
5760
  function BaseFormItem({ className, ...props }) {
5673
5761
  const id = React21.useId();
5674
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5762
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5675
5763
  "div",
5676
5764
  {
5677
5765
  "data-slot": "form-item",
@@ -5685,7 +5773,7 @@ function BaseFormLabel({
5685
5773
  ...props
5686
5774
  }) {
5687
5775
  const { error, formItemId } = useFormField();
5688
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5776
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5689
5777
  Label2,
5690
5778
  {
5691
5779
  "data-slot": "form-label",
@@ -5701,7 +5789,7 @@ function BaseFormLabel({
5701
5789
  }
5702
5790
  function BaseFormControl({ ...props }) {
5703
5791
  const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
5704
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5792
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5705
5793
  import_react_slot7.Slot,
5706
5794
  {
5707
5795
  "data-slot": "form-control",
@@ -5717,7 +5805,7 @@ function BaseFormDescription({
5717
5805
  ...props
5718
5806
  }) {
5719
5807
  const { formDescriptionId } = useFormField();
5720
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5808
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5721
5809
  "p",
5722
5810
  {
5723
5811
  "data-slot": "form-description",
@@ -5733,7 +5821,7 @@ function BaseFormMessage({ className, ...props }) {
5733
5821
  if (!body) {
5734
5822
  return null;
5735
5823
  }
5736
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5824
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5737
5825
  "p",
5738
5826
  {
5739
5827
  "data-slot": "form-message",
@@ -5747,7 +5835,7 @@ function BaseFormMessage({ className, ...props }) {
5747
5835
 
5748
5836
  // src/ui/form/FormField.tsx
5749
5837
  var React22 = __toESM(require("react"), 1);
5750
- var import_jsx_runtime60 = require("react/jsx-runtime");
5838
+ var import_jsx_runtime61 = require("react/jsx-runtime");
5751
5839
  var FormField = ({
5752
5840
  control,
5753
5841
  field,
@@ -5755,18 +5843,18 @@ var FormField = ({
5755
5843
  onBlur,
5756
5844
  className
5757
5845
  }) => {
5758
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5846
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5759
5847
  BaseFormField,
5760
5848
  {
5761
5849
  control,
5762
5850
  name: field.name,
5763
- render: ({ field: formField }) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(BaseFormItem, { className: cn("w-full", className), children: [
5764
- field.label && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(BaseFormLabel, { className: "gap-1", children: [
5851
+ render: ({ field: formField }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(BaseFormItem, { className: cn("w-full", className), children: [
5852
+ field.label && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(BaseFormLabel, { className: "gap-1", children: [
5765
5853
  field.label,
5766
- field.required && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "text-element-inverse-red", children: "*" }),
5767
- field.optional && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "text-title-sm!", children: "(Optional)" })
5854
+ field.required && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "text-element-inverse-red", children: "*" }),
5855
+ field.optional && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "text-title-sm!", children: "(Optional)" })
5768
5856
  ] }),
5769
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(BaseFormControl, { children: React22.isValidElement(field.render) ? React22.cloneElement(
5857
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(BaseFormControl, { children: React22.isValidElement(field.render) ? React22.cloneElement(
5770
5858
  field.render,
5771
5859
  {
5772
5860
  ...formField,
@@ -5776,7 +5864,7 @@ var FormField = ({
5776
5864
  }
5777
5865
  }
5778
5866
  ) : field.render }),
5779
- isShowError && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(BaseFormMessage, {})
5867
+ isShowError && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(BaseFormMessage, {})
5780
5868
  ] })
5781
5869
  },
5782
5870
  field.name
@@ -5784,10 +5872,10 @@ var FormField = ({
5784
5872
  };
5785
5873
 
5786
5874
  // src/ui/form/Form.tsx
5787
- var import_react13 = require("react");
5875
+ var import_react14 = require("react");
5788
5876
  var import_react_hook_form2 = require("react-hook-form");
5789
- var import_jsx_runtime61 = require("react/jsx-runtime");
5790
- var FormMethodsContext = (0, import_react13.createContext)(
5877
+ var import_jsx_runtime62 = require("react/jsx-runtime");
5878
+ var FormMethodsContext = (0, import_react14.createContext)(
5791
5879
  null
5792
5880
  );
5793
5881
  function Form({
@@ -5797,11 +5885,11 @@ function Form({
5797
5885
  className,
5798
5886
  children
5799
5887
  }) {
5800
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5888
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5801
5889
  FormMethodsContext.Provider,
5802
5890
  {
5803
5891
  value: formMethods,
5804
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(BaseForm, { ...formMethods, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5892
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(BaseForm, { ...formMethods, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5805
5893
  "form",
5806
5894
  {
5807
5895
  id,
@@ -5822,7 +5910,7 @@ Form.InputField = function InputField({
5822
5910
  ...props
5823
5911
  }) {
5824
5912
  const { control } = (0, import_react_hook_form2.useFormContext)();
5825
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5913
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5826
5914
  FormField,
5827
5915
  {
5828
5916
  className: "w-full",
@@ -5833,7 +5921,7 @@ Form.InputField = function InputField({
5833
5921
  name,
5834
5922
  label,
5835
5923
  required,
5836
- render: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Input, { ...props, inputClassName: props.inputClassName })
5924
+ render: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Input, { ...props, inputClassName: props.inputClassName })
5837
5925
  }
5838
5926
  }
5839
5927
  );
@@ -5844,7 +5932,7 @@ Form.PasswordField = function PasswordField({
5844
5932
  ...props
5845
5933
  }) {
5846
5934
  const { control } = (0, import_react_hook_form2.useFormContext)();
5847
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5935
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5848
5936
  FormField,
5849
5937
  {
5850
5938
  className: "w-full",
@@ -5852,7 +5940,7 @@ Form.PasswordField = function PasswordField({
5852
5940
  field: {
5853
5941
  name,
5854
5942
  label,
5855
- render: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(PasswordInput, { ...props })
5943
+ render: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(PasswordInput, { ...props })
5856
5944
  }
5857
5945
  }
5858
5946
  );
@@ -5864,7 +5952,7 @@ Form.SelectInputField = function SelectInputField({
5864
5952
  ...props
5865
5953
  }) {
5866
5954
  const { control } = (0, import_react_hook_form2.useFormContext)();
5867
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5955
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5868
5956
  FormField,
5869
5957
  {
5870
5958
  control,
@@ -5872,7 +5960,7 @@ Form.SelectInputField = function SelectInputField({
5872
5960
  name,
5873
5961
  required,
5874
5962
  label,
5875
- render: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(SelectInput, { ...props })
5963
+ render: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(SelectInput, { ...props })
5876
5964
  }
5877
5965
  }
5878
5966
  );
@@ -5884,14 +5972,14 @@ Form.MultiSelectField = function MultiSelectField({
5884
5972
  }) {
5885
5973
  const { control, watch, setValue } = (0, import_react_hook_form2.useFormContext)();
5886
5974
  const selectedValues = watch(name) || [];
5887
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5975
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5888
5976
  FormField,
5889
5977
  {
5890
5978
  control,
5891
5979
  field: {
5892
5980
  name,
5893
5981
  label,
5894
- render: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5982
+ render: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5895
5983
  MultiSelect,
5896
5984
  {
5897
5985
  ...props,
@@ -5910,7 +5998,7 @@ Form.TextareaField = function TextareaField({
5910
5998
  ...props
5911
5999
  }) {
5912
6000
  const { control } = (0, import_react_hook_form2.useFormContext)();
5913
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6001
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5914
6002
  FormField,
5915
6003
  {
5916
6004
  control,
@@ -5918,7 +6006,7 @@ Form.TextareaField = function TextareaField({
5918
6006
  name,
5919
6007
  label,
5920
6008
  optional,
5921
- render: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(TextAreaInput_default, { ...props })
6009
+ render: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(TextAreaInput_default, { ...props })
5922
6010
  }
5923
6011
  }
5924
6012
  );
@@ -5936,14 +6024,14 @@ Form.FileUploadField = function FileUploadFieldComponent({
5936
6024
  const { control, formState } = (0, import_react_hook_form2.useFormContext)();
5937
6025
  const fieldError = formState.errors[name];
5938
6026
  const hasValidationError = !!fieldError;
5939
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6027
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5940
6028
  import_react_hook_form2.Controller,
5941
6029
  {
5942
6030
  control,
5943
6031
  name,
5944
- render: ({ field: formField }) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "space-y-1", children: [
5945
- label && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("label", { htmlFor: name, className: "font-medium", children: label }),
5946
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6032
+ render: ({ field: formField }) => /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "space-y-1", children: [
6033
+ label && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("label", { htmlFor: name, className: "font-medium", children: label }),
6034
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5947
6035
  FileUploadField,
5948
6036
  {
5949
6037
  field: { name, isMultiple, maxFiles, children },
@@ -5974,7 +6062,7 @@ Form.DateInputField = function DateInputField({
5974
6062
  }) {
5975
6063
  const { control, watch, setValue } = (0, import_react_hook_form2.useFormContext)();
5976
6064
  const value = watch(name);
5977
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6065
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5978
6066
  FormField,
5979
6067
  {
5980
6068
  control,
@@ -5982,7 +6070,7 @@ Form.DateInputField = function DateInputField({
5982
6070
  name,
5983
6071
  label,
5984
6072
  required,
5985
- render: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6073
+ render: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5986
6074
  DatePickerInput,
5987
6075
  {
5988
6076
  ...props,
@@ -6001,14 +6089,14 @@ Form.TimeInputField = function TimeInputField({
6001
6089
  ...props
6002
6090
  }) {
6003
6091
  const { control, setValue } = (0, import_react_hook_form2.useFormContext)();
6004
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6092
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6005
6093
  FormField,
6006
6094
  {
6007
6095
  control,
6008
6096
  field: {
6009
6097
  name,
6010
6098
  label,
6011
- render: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6099
+ render: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6012
6100
  TimePicker,
6013
6101
  {
6014
6102
  onValueChange: (value) => {
@@ -6027,13 +6115,13 @@ Form.CheckboxField = function CheckboxField({
6027
6115
  ...props
6028
6116
  }) {
6029
6117
  const { control } = (0, import_react_hook_form2.useFormContext)();
6030
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6118
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6031
6119
  FormField,
6032
6120
  {
6033
6121
  control,
6034
6122
  field: {
6035
6123
  name,
6036
- render: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Checkbox, { value: name, label, ...props })
6124
+ render: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Checkbox, { value: name, label, ...props })
6037
6125
  }
6038
6126
  }
6039
6127
  );
@@ -6043,12 +6131,12 @@ Form.OTPInputField = function OTPInputField({
6043
6131
  ...props
6044
6132
  }) {
6045
6133
  const { control } = (0, import_react_hook_form2.useFormContext)();
6046
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6134
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6047
6135
  FormField,
6048
6136
  {
6049
6137
  className: "w-full",
6050
6138
  control,
6051
- field: { name, render: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(OTPInput, { ...props }) }
6139
+ field: { name, render: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(OTPInput, { ...props }) }
6052
6140
  }
6053
6141
  );
6054
6142
  };
@@ -6059,14 +6147,14 @@ Form.RadioField = function RadioField({
6059
6147
  }) {
6060
6148
  const { control } = (0, import_react_hook_form2.useFormContext)();
6061
6149
  const { setValue } = (0, import_react_hook_form2.useFormContext)();
6062
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6150
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6063
6151
  FormField,
6064
6152
  {
6065
6153
  control,
6066
6154
  field: {
6067
6155
  name,
6068
6156
  label,
6069
- render: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6157
+ render: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6070
6158
  Radio,
6071
6159
  {
6072
6160
  ...props,
@@ -6083,13 +6171,13 @@ Form.ComboboxField = function ComboboxField({
6083
6171
  }) {
6084
6172
  const { control, setValue, watch } = (0, import_react_hook_form2.useFormContext)();
6085
6173
  const value = watch(name);
6086
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6174
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6087
6175
  FormField,
6088
6176
  {
6089
6177
  control,
6090
6178
  field: {
6091
6179
  name,
6092
- render: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6180
+ render: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6093
6181
  Combobox,
6094
6182
  {
6095
6183
  ...props,
@@ -6111,7 +6199,7 @@ Form.SwitchField = function SwitchField({
6111
6199
  }) {
6112
6200
  const { control, setValue, watch } = (0, import_react_hook_form2.useFormContext)();
6113
6201
  const value = watch(name);
6114
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6202
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6115
6203
  FormField,
6116
6204
  {
6117
6205
  control,
@@ -6119,9 +6207,9 @@ Form.SwitchField = function SwitchField({
6119
6207
  field: {
6120
6208
  name,
6121
6209
  label,
6122
- render: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex items-center", children: [
6123
- prefix && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "mr-2", children: prefix }),
6124
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
6210
+ render: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex items-center", children: [
6211
+ prefix && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "mr-2", children: prefix }),
6212
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6125
6213
  Switch,
6126
6214
  {
6127
6215
  ...props,
@@ -6129,7 +6217,7 @@ Form.SwitchField = function SwitchField({
6129
6217
  onCheckedChange: (checked) => setValue(name, checked)
6130
6218
  }
6131
6219
  ),
6132
- suffix && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "ml-2", children: suffix })
6220
+ suffix && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "ml-2", children: suffix })
6133
6221
  ] })
6134
6222
  }
6135
6223
  }
@@ -6184,6 +6272,7 @@ Form.SwitchField = function SwitchField({
6184
6272
  FileUploadField,
6185
6273
  Form,
6186
6274
  FormField,
6275
+ GoogleMapView,
6187
6276
  GradientContainer,
6188
6277
  Grid,
6189
6278
  IconButton,