@algorithm-shift/design-system 1.2.59 → 1.2.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -65,6 +65,8 @@ __export(src_exports, {
65
65
  Spacer: () => Spacer_default,
66
66
  Stages: () => Stages_default,
67
67
  SwitchToggle: () => SwitchToggle_default,
68
+ TabGroup: () => TabGroupComponent,
69
+ TabList: () => TabList,
68
70
  Table: () => Table_default,
69
71
  Tabs: () => Tabs_default,
70
72
  Text: () => TextInput_default,
@@ -79,15 +81,30 @@ __export(src_exports, {
79
81
  module.exports = __toCommonJS(src_exports);
80
82
 
81
83
  // src/components/Layout/Modal.tsx
84
+ var import_react = require("react");
82
85
  var import_jsx_runtime = require("react/jsx-runtime");
83
86
  var Modal = ({
84
87
  children,
85
- onClose,
86
- label,
87
88
  className,
88
- style
89
+ style,
90
+ showModal,
91
+ onModalClose,
92
+ label
89
93
  }) => {
90
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "min-h-80", children: [
94
+ (0, import_react.useEffect)(() => {
95
+ if (showModal) {
96
+ const wrapper = document.getElementById("canvas-wrapper") || document.getElementById("canvas-preview");
97
+ if (!wrapper) return;
98
+ const overlay = document.createElement("div");
99
+ overlay.className = "absolute flex inset-0 bg-black opacity-50 z-10 w-full h-full";
100
+ wrapper.appendChild(overlay);
101
+ return () => {
102
+ if (wrapper.contains(overlay)) wrapper.removeChild(overlay);
103
+ };
104
+ }
105
+ }, [showModal]);
106
+ if (!showModal) return null;
107
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${className} top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 shadow-lg rounded-md z-90 bg-[#fff] `, style: { position: "fixed", ...style }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "min-h-80", children: [
91
108
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex justify-between items-center p-4 border-b border-gray-300 bg-gray-100", children: [
92
109
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h4", { className: "text-[#000]", children: label || "Modal Title" }),
93
110
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -95,7 +112,7 @@ var Modal = ({
95
112
  {
96
113
  className: "cursor-pointer text-[#000]",
97
114
  role: "presentation",
98
- onClick: onClose,
115
+ onClick: () => onModalClose && onModalClose(false),
99
116
  children: "X"
100
117
  }
101
118
  )
@@ -142,7 +159,7 @@ var Container = ({
142
159
  var Container_default = Container;
143
160
 
144
161
  // src/components/Layout/Accordion.tsx
145
- var import_react = require("react");
162
+ var import_react2 = require("react");
146
163
  var import_jsx_runtime5 = require("react/jsx-runtime");
147
164
  var Accordion = ({
148
165
  children,
@@ -150,7 +167,7 @@ var Accordion = ({
150
167
  style,
151
168
  className
152
169
  }) => {
153
- const [isOpen, setIsOpen] = (0, import_react.useState)(false);
170
+ const [isOpen, setIsOpen] = (0, import_react2.useState)(false);
154
171
  const onToggleCollapse = () => {
155
172
  setIsOpen((prev) => !prev);
156
173
  };
@@ -195,6 +212,55 @@ var AccordionGroup = ({ children, style, className }) => {
195
212
  };
196
213
  var AccordionGroup_default = AccordionGroup;
197
214
 
215
+ // src/components/Layout/TabList.tsx
216
+ var import_jsx_runtime8 = require("react/jsx-runtime");
217
+ function TabList({
218
+ children,
219
+ style,
220
+ className,
221
+ activeTab,
222
+ tabId
223
+ }) {
224
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
225
+ "div",
226
+ {
227
+ className: `min-h-30 ${className} ${activeTab === tabId ? "visible" : "hidden"}`,
228
+ style,
229
+ children
230
+ }
231
+ );
232
+ }
233
+
234
+ // src/components/Layout/TabGroup.tsx
235
+ var import_react3 = require("react");
236
+ var import_jsx_runtime9 = require("react/jsx-runtime");
237
+ function TabGroupComponent({
238
+ children,
239
+ style,
240
+ className,
241
+ list,
242
+ activeTab,
243
+ onTabChange
244
+ }) {
245
+ const formatedList = (0, import_react3.useMemo)(
246
+ () => Array.isArray(list) ? [...list].sort((a, b) => (a.orderNumber ?? 0) - (b.orderNumber ?? 0)) : [],
247
+ [list]
248
+ );
249
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className, style, children: [
250
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "flex border-b border-gray-200 gap-1", children: formatedList.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
251
+ "button",
252
+ {
253
+ "data-id": tab.tabId,
254
+ className: `px-4 py-2 text-sm border-b-2 font-medium transition-colors cursor-pointer ${activeTab === tab.tabId ? " bg-blue-500 text-white" : "bg-gray-100 "}`,
255
+ onClick: () => onTabChange && onTabChange(tab.tabId),
256
+ children: tab.name || "Tab List"
257
+ },
258
+ tab.tabId
259
+ )) }),
260
+ children
261
+ ] });
262
+ }
263
+
198
264
  // src/components/ui/button.tsx
199
265
  var import_react_slot = require("@radix-ui/react-slot");
200
266
  var import_class_variance_authority = require("class-variance-authority");
@@ -217,7 +283,7 @@ function getInitials(name) {
217
283
  }
218
284
 
219
285
  // src/components/ui/button.tsx
220
- var import_jsx_runtime8 = require("react/jsx-runtime");
286
+ var import_jsx_runtime10 = require("react/jsx-runtime");
221
287
  var buttonVariants = (0, import_class_variance_authority.cva)(
222
288
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
223
289
  {
@@ -251,7 +317,7 @@ function Button({
251
317
  ...props
252
318
  }) {
253
319
  const Comp = asChild ? import_react_slot.Slot : "button";
254
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
320
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
255
321
  Comp,
256
322
  {
257
323
  "data-slot": "button",
@@ -262,14 +328,14 @@ function Button({
262
328
  }
263
329
 
264
330
  // src/components/Basic/Button/Button.tsx
265
- var import_jsx_runtime9 = require("react/jsx-runtime");
331
+ var import_jsx_runtime11 = require("react/jsx-runtime");
266
332
  var ButtonWrapper = ({
267
333
  className,
268
334
  style,
269
335
  textContent = "Button",
270
336
  ...props
271
337
  }) => {
272
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
338
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
273
339
  Button,
274
340
  {
275
341
  ...props,
@@ -285,7 +351,7 @@ var Button_default = ButtonWrapper;
285
351
  var image_placeholder_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAD25JREFUeJzt3XfwHGUdx/H3LyEJoQihJVITIEEQBUQHIQEBQaRMwApIyS8UQQREBQUZRaUXUQwwYoShSlWqQ5ci1ZE2YkIgEBIggNQEQgKk+Mf3t/7utt2ze7u35T6vmZ1M7vae57m7/fxu99nd5wERERERERERERERERERERERERERERERERERERERERERERERERERERERERGR7tJTdANiDAIOBDag3O2sm/eBS4Dnim6IxLsAWKKlkOVtYETrr6j+BhTdgBhfL7oBXWwYsH3RjSiDMgdkUNEN6HKDi25AGSxVdAMSeA14q+hG1FQPsFHRjZBk3qV5v/joYptTa0sTPA7pLbJBZVHmXSyRwikgIjEUEJEYCohIDAVEJIYCIhJDARGJoYCIxFBARGIoICIxqnQtVtYGAbsCewCfB9bELtB7G/gPcBdwBTC7qAaKxMnrWqweYC/gRVrfF/ERcB52+Xed6VqsCN22i7U0cBlwJbCOw/qDgMOAp4DP5dguKaluCshg4AZgnxSvXQu4F9sVky7STccgZwE7hTw+D7gFeBKYD4wEdgHG+NZbHrgR2AR4M7dWijjK8hhkLOHHGH8g/PiiB/g2FgT/ay5uox1lpWOQCsoyIHcS3AB+6vC6McB/fa9bDKzfRlvKSAGJkGQXa1ngCGwXJMp04FxggWOZawDfB1YKeW5ogrbFGQns4HvsZuAMh9c+C0zEdsE8PX2PHZ9F40psAvBF32PvAX/EfUigTwBHYl3oacwHLgSedlx/GWwbHRWzzgxgEvBByjZFuh63IWMudyxvCPCCY5nt/IJ8N6SszRK8vgd41Pf6f6VsS1mF/YJELW/g3u0d9suddJkLrO5Y37WOZV7nWF4iixwrn+tY3uaO5bUbkEm+cmalKON4XxkfUq8ewCQBWQLs7FDm0IRlxi3fcXwfCxzLW+hYXqIv2XXdxxzXm457mNqxaki9Sfl3KQYDK6RrTmLjgduws/ojO1RnnI9w2+VZAEzNoL7FWA+ji8cd1xvoWnk73byzsJ/bRtOAnzi+fg72l+gXwCohz29KgjeSQJr3HPaaRe02xMEE4CL6/zhtA2xHupAn9SLBYZbmAGcCLzm8fgmwO3Aabidlw8wDzgGmOK6/F3Zs6e9EWQ07l5Ur/8/UQTnXl1Uv1tm+ct4k+e7Rqb4y3if/8YInEL5b+xLZ96LVvRfrUILvz0md9qOj+H92VybYqxVnIPCtkDKdP+QU/L8cjdYE7qF+Xc2l1A0BuZ3gQdlpuA+teRiwnu+xm9ttVIxeosPhUUg6pBsC8gbW/ddoM2wjbHU8sjN2iUqjBcCl2TQtoBfr9/d/L09hu3WNFJKS+YDmfbi9c64vyzPpY7CuWf9+6MPAFgSPJ1YGTif8GOCkNtoRpzeivkewHrNx2Ik6//Mv035I6n4MMoHm9zYvj0pOb6hgOnaWNE9Z3w9yFMGNwFueBa7BJo65H+vKDFvvcWxjylov8eHw5BWSugdkGM33/5ySRyU92JwRe5N/OCD7gPRgXYZpT1Y9T/pLJuJMxC0cnjxCUveAAKyInXDclprMWJbHHYU9wDHAxyQLx73A8Azq90saDk/WIemGgNROntMffAa7ALFVMGZi53vy6MxIGw5PliFRQCqoE/ODrAv8ALvA8j7gIeAm7MTgl8nnTD60Hw5PViFRQCqorhPoHEA24fCMJTokox3LUEAqqI4BOQC7+C6rcHjaDYkCUkF1C0he4fC0ExIFpILqFJC8w+FJGxIFpILqEpBOhcOTJiQKSAXVISCdDodnLHYzmr/eVwgPiQKSgR7sJv7x2M3xeat6QIoKhydJSLohIMth4zBvkVcFv6b/w5vaV2GeqhyQAyk2HB7XkNQ9ICtgt0177+2EPCqZR/MHuFcelTTIKyDLYVd37o37PSFJlCUcHpeQ1D0g+9P83vy3DmTC/wFW5ZbbRsOxAQe8Mu8n21/CsoXD0yokdQ+Ibrl1MBz4O/Dphse2Bm4lm5AcCEwmeKXoo9iYwHMyqCOtB7Gbv97zPb46diGm6xn3rtMtAfHCsVHIc+NoPyQHUd5weB4Evkp4SO7qfHOqoRsCEhcOzzhs7Kk0ITkIG46zzOHwPER4SFYroC2VUPeADMfu2/aHYyHB/dCxJA9JlcLhiQqJhKhzQLxwbOh7/GNsGJ9DiA7J8g7lVzEcHoUkB1XqxRqOjcbnb/NH2Mkiz8GE9zo9QHxIol5XdG9VUlsR3rulXqwUqhIQ13B4ojb2BwkPSV3C4YkKSW+BbcqaAtInaTg8riGpWzg841BA2lb2gIwgXTg8rUJS13CAThRGqsskniOwrtyoA/IbHcqY3PfvBTQfeG+FTemwPuU4IF+nb/kn7jN5SUp16MXKIhyeyYT3bo2mHOGYiI3PdR82d+Kl2Iy8gzrYBolQxl2suN2q3duoO2p3qsjdqoFE9zi9iXU5b0e6P3raxcpA2QIyArvsPutweMp2zLEUwfGRw5bZ2AiSWyYoWwHJgH9jOSCPShrEBSTvcHj8ISn6gPw6WgekcZmBTfWwaYty6x4Qb7fZWxbnUcndNG+IeV8BGhWQuHCMz6EduwJ/Bk7G7Qx7nr5JsoA0LlOwG4XGhJRb94BsRP/lRUuAO/KoZBVsOrMrsLny8hYWkE6Ho2yGEjwOeR6bJCjJeMNPYHNJrt1Xbt0DAjar2DXA77DpLSrPH5Cz6O5weC6n+f2/j40RsCrwPayHy3XK7sXYdVk/Dnmut0PvR1LyByTsgLnbwgGwG8HPYU/fOmsAP8S6otPukvXm+zakXf6A+JcP6b5wgJ3zeJvmz+L6mPVHAcdh07glCchDwH4Uf9wlEeIC0q3h8PyJ5s9jAW6TGm0I/Ap4BvegzAf+gp10HZrlm5D2RAWk28MBsCPBz2VCwjI2w6bVezGkrKjlPayTZjd09r5wYQFROMxA4HWaP5tb2yhvS+zk4mzcw/I29ku2A/nNoyIx/AFROJqdR/Pn8zHtd18OwC5XuQC7fMU1LK8B52KXzddi/r8q8AfkV8U2p3S2JrihHpJh+UthQwVdgl2Q6RqWWcCZwOYZtkVCVHno0U7oAV6i+TO6J6e6hgBfA64mOMJm3PIscCLBK61rawD5DNcZRgFp7Tc0f0aLsHGu8rQsNmzrjdhur0tQFgNH5NwuF0PI8RaPnbB7EBZi+5t572sqIK19geDGeFQH618Ru0fF5VKXVzvYLr8B2O0Ai7DOjR3zqMT/c55LJQ0UEDfTaf6cHimgDSsCk4gPyLQC2uXxX30w0/WFSX5u1vT9f50Er5X8XO37/xbAyA7VvQp2lfNM4PCY9d6h2F0s/7a7duhaIap0T/qewMZFN6KE1gh5bC/sPpC8jMB+0Q/FjkmivAH8FuuSnptje0rB/5PZ6TsKtbgvT6b4vF2shR1/zm9R/yvYxZKdmInMRS1HNcnlrq8usQnWtTo1o/K8Cx4nEN+LORM4A7gQ6+GqvDKPavJQ0Q2ouKxmANsXO59xMNHhmI7NjzIaOJ+ahAPK/QvSC5yC/SXU5QutbYAdNHv2JJu5+H5J9HYyBfuOrsK6ULtap49BJJmjCX5Hm2VQbuOUdY3LEVTnD5emYBOuJvjF751BuUdjd276HY71Zkkf/YKU3wM0f0cvks1f+fGEX1YyDfhkBuXnTb8gAtixQKN1SDaAXJSbsDsK/b8kY7BJQKsQklQUkHq5luDBsmtv1vLE7zJ1bUhcaRerGu6i+Xt6ldZ/CPen/+TflcSf64ja3XqG8oaklmPzSjoHEfyuto9Zf2XsXvPG9W8k/p7zqoVEAZH/G4btBjV+V5Nj1j+R4Hdbt5AoINLkFpq/q7cI39hXIP6at7qEpCMBmeGrYNs8KpFM7Etwg9g1ZL2fhayXZUjKcp5kJ5rbNj2PSrYBXsDuST6F6pxF7UbLE5xL5DLfOstgl6M3rrOA8JDcQLVD0oMNJPEBFo6xxTZHysA/l8hcbBR3z48IbtBHASeFPF6HkIg0CZtL5Bt9zw0hOEjc6/Tfv6GQSO2FzSVyXd9zhxHciI/1vT7rkExFIZGS8c8l8gGwEsHxeN8ifBT3kwkPyfUoJFIDYXOJ3BHy2AkxZSgkUlthc4n4lznYycU4WYdkCpp3RErCP5eIfznVsZx2QhI2qNyBCd+HSC52IDoc87C5DV2dElHOX4kOSVh38hKC08aJFGIgNj1B2EZ6dorykoQkbHLQJdhcJppTRErjXIIb6QLSXy/lEpKwe+SXALfRfMKyNlbHxju6Gdil4LZIMuMIbqjnt1lmXEiOjXiuyHCMxy7inExOvWiN9zsvpIvmfKiBHqznqPF8iPP4tDFOJTwIZQvHJjRPI35fHpWoF6LaRgGXYrfOfinDcl1CcjvF7lYdEtKmzPkr0P0g4okLSdHhAI1qIgU7jvDR5O8Edsc6BCpJAZGsHEf/BY5gB8TjqXA4oNxj80r1/Byb6mw5shtZvlAKiGTtpaIbkCXtYonEUEBEYiggIjEUEJEYCohIDAVEJIYCIhJDARGJoYCIxEgSkHm+/8/JsiEiOXrf9/+5eVTSOBL4E/QPUylSdsvRPJ31MXlV9FlgR2xsV5EqWRr4CrBx0Q0RERERERERERERERERkZJLMgT9AGAPbNjKWdj4riJVMRzYD1gDeI4chh89j/5rWV7GJoMUqYJVgVfp337PyaMS/1xz++RRiUgOJtK87c53fWGSy90H+/4/NMFrRYrkv7jWeTBt3TAlEkMBEYmhgIjE6Emwrr9b7HXgXd9j04EjgRdalLUWMAn4VIL6Pc/11TGjxXpr99WxQYo6ngWOAGa2WG9kXx2jU9Qxra+OWS3WGwX8PmUdz2CfVas61u2rY/0UdUzF3sfLDnVMAtZLUccU4HBgdov1RmPvY5Tv8WHAar7Hkmz7TlznonvQoay7EpSXto572qzDZR67f7RZx90OdTTODZlXHQ+3WcftDnU80mYdf3Oo47EE5WVuoWPFLjfEN/ZJp1lcBox4o8063nKo450263i9JHW812Ydr3Sgjla/5mCT9biU9bFDWUCyY5BrHde7OsOyolyT0TpVqKMun1Un3odrHVe5VppkP2wINrPtujHrTAMupnVClwL2BzZKUH+aOiaQbrrqqcAl2K9mnEF9daQ5lpqCzTrrUkcv6Y6lktQxERiToo6ngcuARS3WG4y9jzR1/Bu43LGOA4g/lpoOXAR8lKIdIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIrX3Py2wAaYahY2rAAAAAElFTkSuQmCC";
286
352
 
287
353
  // src/components/Basic/Image/Image.tsx
288
- var import_jsx_runtime10 = require("react/jsx-runtime");
354
+ var import_jsx_runtime12 = require("react/jsx-runtime");
289
355
  var ImageControl = ({
290
356
  className,
291
357
  style,
@@ -302,26 +368,26 @@ var ImageControl = ({
302
368
  className
303
369
  );
304
370
  if (!imageUrl && !imageUrlExternal) {
305
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: imageClass, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("img", { src: image_placeholder_default, alt: altText, className: "opacity-50", width: 50, height: 50 }) });
371
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: imageClass, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("img", { src: image_placeholder_default, alt: altText, className: "opacity-50", width: 50, height: 50 }) });
306
372
  }
307
373
  const url = imageUrlExternal || imageUrl;
308
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("img", { src: url, alt: altText, className: defaultImgClass, style });
374
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("img", { src: url, alt: altText, className: defaultImgClass, style });
309
375
  };
310
376
  var Image_default = ImageControl;
311
377
 
312
378
  // src/components/Basic/Shape/Shape.tsx
313
- var import_jsx_runtime11 = require("react/jsx-runtime");
379
+ var import_jsx_runtime13 = require("react/jsx-runtime");
314
380
  var Shape = ({
315
381
  children,
316
382
  className,
317
383
  style
318
384
  }) => {
319
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className, style, children });
385
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className, style, children });
320
386
  };
321
387
  var Shape_default = Shape;
322
388
 
323
389
  // src/components/Basic/Typography/Typography.tsx
324
- var import_react2 = __toESM(require("react"));
390
+ var import_react4 = __toESM(require("react"));
325
391
  var Typography = ({
326
392
  className,
327
393
  style,
@@ -329,14 +395,14 @@ var Typography = ({
329
395
  textContent
330
396
  }) => {
331
397
  const Tag2 = tagName || "h1";
332
- return import_react2.default.createElement(
398
+ return import_react4.default.createElement(
333
399
  Tag2,
334
400
  {
335
401
  style,
336
402
  className: cn(className, "pointer-events-auto")
337
403
  },
338
404
  [
339
- import_react2.default.createElement("span", {
405
+ import_react4.default.createElement("span", {
340
406
  key: "html",
341
407
  className: "pointer-events-none",
342
408
  dangerouslySetInnerHTML: { __html: textContent }
@@ -7544,7 +7610,7 @@ __export(icons_exports, {
7544
7610
  });
7545
7611
 
7546
7612
  // node_modules/lucide-react/dist/esm/createLucideIcon.js
7547
- var import_react4 = require("react");
7613
+ var import_react6 = require("react");
7548
7614
 
7549
7615
  // node_modules/lucide-react/dist/esm/shared/src/utils.js
7550
7616
  var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
@@ -7568,7 +7634,7 @@ var hasA11yProp = (props) => {
7568
7634
  };
7569
7635
 
7570
7636
  // node_modules/lucide-react/dist/esm/Icon.js
7571
- var import_react3 = require("react");
7637
+ var import_react5 = require("react");
7572
7638
 
7573
7639
  // node_modules/lucide-react/dist/esm/defaultAttributes.js
7574
7640
  var defaultAttributes = {
@@ -7584,7 +7650,7 @@ var defaultAttributes = {
7584
7650
  };
7585
7651
 
7586
7652
  // node_modules/lucide-react/dist/esm/Icon.js
7587
- var Icon = (0, import_react3.forwardRef)(
7653
+ var Icon = (0, import_react5.forwardRef)(
7588
7654
  ({
7589
7655
  color = "currentColor",
7590
7656
  size = 24,
@@ -7594,7 +7660,7 @@ var Icon = (0, import_react3.forwardRef)(
7594
7660
  children,
7595
7661
  iconNode,
7596
7662
  ...rest
7597
- }, ref) => (0, import_react3.createElement)(
7663
+ }, ref) => (0, import_react5.createElement)(
7598
7664
  "svg",
7599
7665
  {
7600
7666
  ref,
@@ -7608,7 +7674,7 @@ var Icon = (0, import_react3.forwardRef)(
7608
7674
  ...rest
7609
7675
  },
7610
7676
  [
7611
- ...iconNode.map(([tag, attrs]) => (0, import_react3.createElement)(tag, attrs)),
7677
+ ...iconNode.map(([tag, attrs]) => (0, import_react5.createElement)(tag, attrs)),
7612
7678
  ...Array.isArray(children) ? children : [children]
7613
7679
  ]
7614
7680
  )
@@ -7616,8 +7682,8 @@ var Icon = (0, import_react3.forwardRef)(
7616
7682
 
7617
7683
  // node_modules/lucide-react/dist/esm/createLucideIcon.js
7618
7684
  var createLucideIcon = (iconName, iconNode) => {
7619
- const Component2 = (0, import_react4.forwardRef)(
7620
- ({ className, ...props }, ref) => (0, import_react4.createElement)(Icon, {
7685
+ const Component2 = (0, import_react6.forwardRef)(
7686
+ ({ className, ...props }, ref) => (0, import_react6.createElement)(Icon, {
7621
7687
  ref,
7622
7688
  iconNode,
7623
7689
  className: mergeClasses(
@@ -26654,9 +26720,9 @@ var ZoomOut = createLucideIcon("zoom-out", __iconNode1634);
26654
26720
 
26655
26721
  // src/components/Basic/Breadcrumb/Breadcrumb.tsx
26656
26722
  var import_link3 = __toESM(require("next/link"));
26657
- var import_jsx_runtime12 = require("react/jsx-runtime");
26723
+ var import_jsx_runtime14 = require("react/jsx-runtime");
26658
26724
  var Breadcrumb = ({ list = [], className, style }) => {
26659
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
26725
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
26660
26726
  "nav",
26661
26727
  {
26662
26728
  "aria-label": "breadcrumb",
@@ -26664,16 +26730,16 @@ var Breadcrumb = ({ list = [], className, style }) => {
26664
26730
  style,
26665
26731
  children: list.map((item, index) => {
26666
26732
  const isLast = index === list.length - 1;
26667
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex items-center", children: [
26668
- item.url && !isLast ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
26733
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex items-center", children: [
26734
+ item.url && !isLast ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
26669
26735
  import_link3.default,
26670
26736
  {
26671
26737
  href: item.url,
26672
26738
  className: "hover:text-foreground transition-colors",
26673
26739
  children: item.header
26674
26740
  }
26675
- ) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "text-foreground font-medium", children: item.header }),
26676
- !isLast && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ChevronRight, { className: "mx-2 h-4 w-4 text-muted-foreground" })
26741
+ ) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-foreground font-medium", children: item.header }),
26742
+ !isLast && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ChevronRight, { className: "mx-2 h-4 w-4 text-muted-foreground" })
26677
26743
  ] }, item.id);
26678
26744
  })
26679
26745
  }
@@ -26683,16 +26749,16 @@ var Breadcrumb_default = Breadcrumb;
26683
26749
 
26684
26750
  // src/components/ui/dropdown-menu.tsx
26685
26751
  var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
26686
- var import_jsx_runtime13 = require("react/jsx-runtime");
26752
+ var import_jsx_runtime15 = require("react/jsx-runtime");
26687
26753
  function DropdownMenu({
26688
26754
  ...props
26689
26755
  }) {
26690
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
26756
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
26691
26757
  }
26692
26758
  function DropdownMenuTrigger({
26693
26759
  ...props
26694
26760
  }) {
26695
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
26761
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
26696
26762
  DropdownMenuPrimitive.Trigger,
26697
26763
  {
26698
26764
  "data-slot": "dropdown-menu-trigger",
@@ -26705,7 +26771,7 @@ function DropdownMenuContent({
26705
26771
  sideOffset = 4,
26706
26772
  ...props
26707
26773
  }) {
26708
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
26774
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
26709
26775
  DropdownMenuPrimitive.Content,
26710
26776
  {
26711
26777
  "data-slot": "dropdown-menu-content",
@@ -26724,7 +26790,7 @@ function DropdownMenuItem({
26724
26790
  variant = "default",
26725
26791
  ...props
26726
26792
  }) {
26727
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
26793
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
26728
26794
  DropdownMenuPrimitive.Item,
26729
26795
  {
26730
26796
  "data-slot": "dropdown-menu-item",
@@ -26741,7 +26807,7 @@ function DropdownMenuItem({
26741
26807
  function DropdownMenuSub({
26742
26808
  ...props
26743
26809
  }) {
26744
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
26810
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
26745
26811
  }
26746
26812
  function DropdownMenuSubTrigger({
26747
26813
  className,
@@ -26749,7 +26815,7 @@ function DropdownMenuSubTrigger({
26749
26815
  children,
26750
26816
  ...props
26751
26817
  }) {
26752
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
26818
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
26753
26819
  DropdownMenuPrimitive.SubTrigger,
26754
26820
  {
26755
26821
  "data-slot": "dropdown-menu-sub-trigger",
@@ -26761,7 +26827,7 @@ function DropdownMenuSubTrigger({
26761
26827
  ...props,
26762
26828
  children: [
26763
26829
  children,
26764
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ChevronRight, { className: "ml-auto size-4" })
26830
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ChevronRight, { className: "ml-auto size-4" })
26765
26831
  ]
26766
26832
  }
26767
26833
  );
@@ -26770,7 +26836,7 @@ function DropdownMenuSubContent({
26770
26836
  className,
26771
26837
  ...props
26772
26838
  }) {
26773
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
26839
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
26774
26840
  DropdownMenuPrimitive.SubContent,
26775
26841
  {
26776
26842
  "data-slot": "dropdown-menu-sub-content",
@@ -26785,11 +26851,11 @@ function DropdownMenuSubContent({
26785
26851
 
26786
26852
  // src/components/Basic/ButtonGroup/ButtonGroup.tsx
26787
26853
  var import_link4 = __toESM(require("next/link"));
26788
- var import_jsx_runtime14 = require("react/jsx-runtime");
26854
+ var import_jsx_runtime16 = require("react/jsx-runtime");
26789
26855
  function SplitButton({ style, textContent, className, list = [] }) {
26790
26856
  const bgColor = style?.backgroundColor || "";
26791
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "inline-flex rounded-md overflow-hidden border border-teal-200 bg-teal-700 items-center focus:ring-0", style: { backgroundColor: bgColor }, children: [
26792
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
26857
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "inline-flex rounded-md overflow-hidden border border-teal-200 bg-teal-700 items-center focus:ring-0", style: { backgroundColor: bgColor }, children: [
26858
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
26793
26859
  Button,
26794
26860
  {
26795
26861
  className: `rounded-none border-r px-4 py-2 text-whit focus:ring-0 ${className || ""}`,
@@ -26797,17 +26863,17 @@ function SplitButton({ style, textContent, className, list = [] }) {
26797
26863
  children: textContent || "Button"
26798
26864
  }
26799
26865
  ),
26800
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(DropdownMenu, { children: [
26801
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
26866
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(DropdownMenu, { children: [
26867
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
26802
26868
  Button,
26803
26869
  {
26804
26870
  className: "rounded-none bg-teal-700 px-4 py-2 text-white ring-0 shadow-none hover:bg-teal-600 focus:ring-0",
26805
26871
  "aria-label": "Open Dropdown",
26806
26872
  style: { backgroundColor: bgColor },
26807
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ChevronDown, { className: "w-4 h-4" })
26873
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ChevronDown, { className: "w-4 h-4" })
26808
26874
  }
26809
26875
  ) }),
26810
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DropdownMenuContent, { align: "end", className: "bg-white min-w-[120px]", children: list.map((item) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DropdownMenuItem, { className: "text-black", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_link4.default, { href: item.url || "#", children: item.header }) }, item.id)) })
26876
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DropdownMenuContent, { align: "end", className: "bg-white min-w-[120px]", children: list.map((item) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DropdownMenuItem, { className: "text-black", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_link4.default, { href: item.url || "#", children: item.header }) }, item.id)) })
26811
26877
  ] })
26812
26878
  ] });
26813
26879
  }
@@ -26815,7 +26881,7 @@ function SplitButton({ style, textContent, className, list = [] }) {
26815
26881
  // src/components/Basic/Icon/Icon.tsx
26816
26882
  var faSolid = __toESM(require("@fortawesome/free-solid-svg-icons"));
26817
26883
  var import_react_fontawesome = require("@fortawesome/react-fontawesome");
26818
- var import_jsx_runtime15 = require("react/jsx-runtime");
26884
+ var import_jsx_runtime17 = require("react/jsx-runtime");
26819
26885
  var Icon2 = ({ iconType = "fontawesome", name = "Envelope", className, fontSize = 10, style }) => {
26820
26886
  let content = null;
26821
26887
  if (iconType === "fontawesome") {
@@ -26824,7 +26890,7 @@ var Icon2 = ({ iconType = "fontawesome", name = "Envelope", className, fontSize
26824
26890
  if (!faIcon) {
26825
26891
  return null;
26826
26892
  }
26827
- content = /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
26893
+ content = /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
26828
26894
  import_react_fontawesome.FontAwesomeIcon,
26829
26895
  {
26830
26896
  icon: faIcon,
@@ -26838,16 +26904,16 @@ var Icon2 = ({ iconType = "fontawesome", name = "Envelope", className, fontSize
26838
26904
  if (!Lucide) {
26839
26905
  return null;
26840
26906
  }
26841
- content = /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Lucide, { className: cn("w-5 h-5"), size: fontSize, style: { color: style?.color } });
26907
+ content = /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Lucide, { className: cn("w-5 h-5"), size: fontSize, style: { color: style?.color } });
26842
26908
  }
26843
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style, className, children: content });
26909
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { style, className, children: content });
26844
26910
  };
26845
26911
  var Icon_default = Icon2;
26846
26912
 
26847
26913
  // src/components/ui/input.tsx
26848
- var import_jsx_runtime16 = require("react/jsx-runtime");
26914
+ var import_jsx_runtime18 = require("react/jsx-runtime");
26849
26915
  function Input({ className, type, ...props }) {
26850
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
26916
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
26851
26917
  "input",
26852
26918
  {
26853
26919
  type,
@@ -26864,7 +26930,7 @@ function Input({ className, type, ...props }) {
26864
26930
  }
26865
26931
 
26866
26932
  // src/components/Inputs/TextInput/TextInput.tsx
26867
- var import_jsx_runtime17 = require("react/jsx-runtime");
26933
+ var import_jsx_runtime19 = require("react/jsx-runtime");
26868
26934
  var TextInput = ({ className, style, ...props }) => {
26869
26935
  const placeholder = props.placeholder || "Placeholder text";
26870
26936
  const isEditable = props.isEditable ?? true;
@@ -26874,8 +26940,8 @@ var TextInput = ({ className, style, ...props }) => {
26874
26940
  const handleChange = (e) => {
26875
26941
  props.onChange?.(e);
26876
26942
  };
26877
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
26878
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
26943
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
26944
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
26879
26945
  Input,
26880
26946
  {
26881
26947
  type: "text",
@@ -26893,13 +26959,13 @@ var TextInput = ({ className, style, ...props }) => {
26893
26959
  readOnly: isReadonly
26894
26960
  }
26895
26961
  ),
26896
- props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
26962
+ props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
26897
26963
  ] });
26898
26964
  };
26899
26965
  var TextInput_default = TextInput;
26900
26966
 
26901
26967
  // src/components/Inputs/NumberInput/NumberInput.tsx
26902
- var import_jsx_runtime18 = require("react/jsx-runtime");
26968
+ var import_jsx_runtime20 = require("react/jsx-runtime");
26903
26969
  var NumberInput = ({ className, style, ...props }) => {
26904
26970
  const placeholder = props.placeholder ?? "Placeholder text";
26905
26971
  const isEditable = props.isEditable ?? true;
@@ -26909,10 +26975,10 @@ var NumberInput = ({ className, style, ...props }) => {
26909
26975
  const handleChange = (e) => {
26910
26976
  props.onChange?.(e);
26911
26977
  };
26912
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
26913
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex justify-start items-center relative", children: [
26914
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Calculator, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
26915
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
26978
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
26979
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex justify-start items-center relative", children: [
26980
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Calculator, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
26981
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
26916
26982
  Input,
26917
26983
  {
26918
26984
  type: "number",
@@ -26932,13 +26998,13 @@ var NumberInput = ({ className, style, ...props }) => {
26932
26998
  }
26933
26999
  )
26934
27000
  ] }),
26935
- props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27001
+ props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
26936
27002
  ] });
26937
27003
  };
26938
27004
  var NumberInput_default = NumberInput;
26939
27005
 
26940
27006
  // src/components/Inputs/EmailInput/EmailInput.tsx
26941
- var import_jsx_runtime19 = require("react/jsx-runtime");
27007
+ var import_jsx_runtime21 = require("react/jsx-runtime");
26942
27008
  var EmailInput = ({ className, style, ...props }) => {
26943
27009
  const placeholder = props.placeholder ?? "Placeholder text";
26944
27010
  const isEditable = props.isEditable ?? true;
@@ -26948,10 +27014,10 @@ var EmailInput = ({ className, style, ...props }) => {
26948
27014
  const handleChange = (e) => {
26949
27015
  props.onChange?.(e);
26950
27016
  };
26951
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
26952
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex justify-start items-center relative", children: [
26953
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Mail, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
26954
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
27017
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
27018
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex justify-start items-center relative", children: [
27019
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Mail, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
27020
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
26955
27021
  Input,
26956
27022
  {
26957
27023
  type: "email",
@@ -26970,13 +27036,13 @@ var EmailInput = ({ className, style, ...props }) => {
26970
27036
  }
26971
27037
  )
26972
27038
  ] }),
26973
- props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27039
+ props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
26974
27040
  ] });
26975
27041
  };
26976
27042
  var EmailInput_default = EmailInput;
26977
27043
 
26978
27044
  // src/components/Inputs/PasswordInput/PasswordInput.tsx
26979
- var import_jsx_runtime20 = require("react/jsx-runtime");
27045
+ var import_jsx_runtime22 = require("react/jsx-runtime");
26980
27046
  var PasswordInput = ({ className, style, ...props }) => {
26981
27047
  const placeholder = props.placeholder ?? "Placeholder text";
26982
27048
  const isEditable = props.isEditable ?? true;
@@ -26986,10 +27052,10 @@ var PasswordInput = ({ className, style, ...props }) => {
26986
27052
  const handleChange = (e) => {
26987
27053
  props.onChange?.(e);
26988
27054
  };
26989
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
26990
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex justify-start items-center relative", children: [
26991
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ScanEye, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
26992
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
27055
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
27056
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex justify-start items-center relative", children: [
27057
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ScanEye, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
27058
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
26993
27059
  Input,
26994
27060
  {
26995
27061
  type: "password",
@@ -27009,15 +27075,15 @@ var PasswordInput = ({ className, style, ...props }) => {
27009
27075
  }
27010
27076
  )
27011
27077
  ] }),
27012
- props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27078
+ props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27013
27079
  ] });
27014
27080
  };
27015
27081
  var PasswordInput_default = PasswordInput;
27016
27082
 
27017
27083
  // src/components/ui/textarea.tsx
27018
- var import_jsx_runtime21 = require("react/jsx-runtime");
27084
+ var import_jsx_runtime23 = require("react/jsx-runtime");
27019
27085
  function Textarea({ className, ...props }) {
27020
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
27086
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
27021
27087
  "textarea",
27022
27088
  {
27023
27089
  "data-slot": "textarea",
@@ -27031,7 +27097,7 @@ function Textarea({ className, ...props }) {
27031
27097
  }
27032
27098
 
27033
27099
  // src/components/Inputs/Textarea/Textarea.tsx
27034
- var import_jsx_runtime22 = require("react/jsx-runtime");
27100
+ var import_jsx_runtime24 = require("react/jsx-runtime");
27035
27101
  var Textarea2 = ({ className, style, ...props }) => {
27036
27102
  const placeholder = props.placeholder ?? "Placeholder text";
27037
27103
  const isEditable = props.isEditable ?? true;
@@ -27041,8 +27107,8 @@ var Textarea2 = ({ className, style, ...props }) => {
27041
27107
  const handleChange = (e) => {
27042
27108
  props.onChange?.(e);
27043
27109
  };
27044
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
27045
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
27110
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
27111
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
27046
27112
  Textarea,
27047
27113
  {
27048
27114
  id: "textarea-field",
@@ -27060,13 +27126,13 @@ var Textarea2 = ({ className, style, ...props }) => {
27060
27126
  readOnly: isReadonly
27061
27127
  }
27062
27128
  ),
27063
- props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27129
+ props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27064
27130
  ] });
27065
27131
  };
27066
27132
  var Textarea_default = Textarea2;
27067
27133
 
27068
27134
  // src/components/Inputs/UrlInput/UrlInput.tsx
27069
- var import_jsx_runtime23 = require("react/jsx-runtime");
27135
+ var import_jsx_runtime25 = require("react/jsx-runtime");
27070
27136
  var UrlInput = ({ className, style, ...props }) => {
27071
27137
  const placeholder = props.placeholder ?? "Placeholder text";
27072
27138
  const isEditable = props.isEditable ?? true;
@@ -27076,10 +27142,10 @@ var UrlInput = ({ className, style, ...props }) => {
27076
27142
  const handleChange = (e) => {
27077
27143
  props.onChange?.(e);
27078
27144
  };
27079
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
27080
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex justify-start items-center relative", children: [
27081
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "bg-[#E9E9E9] absolute px-10 text-center top-1/2 h-full justify-center items-center flex w-10 -translate-y-1/2 text-[#383838] font-[500] text-[12px]", children: "https://" }),
27082
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
27145
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
27146
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex justify-start items-center relative", children: [
27147
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "bg-[#E9E9E9] absolute px-10 text-center top-1/2 h-full justify-center items-center flex w-10 -translate-y-1/2 text-[#383838] font-[500] text-[12px]", children: "https://" }),
27148
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
27083
27149
  Input,
27084
27150
  {
27085
27151
  id: "url-field",
@@ -27099,19 +27165,19 @@ var UrlInput = ({ className, style, ...props }) => {
27099
27165
  }
27100
27166
  )
27101
27167
  ] }),
27102
- props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27168
+ props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27103
27169
  ] });
27104
27170
  };
27105
27171
  var UrlInput_default = UrlInput;
27106
27172
 
27107
27173
  // src/components/ui/checkbox.tsx
27108
27174
  var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
27109
- var import_jsx_runtime24 = require("react/jsx-runtime");
27175
+ var import_jsx_runtime26 = require("react/jsx-runtime");
27110
27176
  function Checkbox({
27111
27177
  className,
27112
27178
  ...props
27113
27179
  }) {
27114
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
27180
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
27115
27181
  CheckboxPrimitive.Root,
27116
27182
  {
27117
27183
  "data-slot": "checkbox",
@@ -27120,12 +27186,12 @@ function Checkbox({
27120
27186
  className
27121
27187
  ),
27122
27188
  ...props,
27123
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
27189
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
27124
27190
  CheckboxPrimitive.Indicator,
27125
27191
  {
27126
27192
  "data-slot": "checkbox-indicator",
27127
27193
  className: "flex items-center justify-center text-current transition-none",
27128
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Check, { className: "size-3.5" })
27194
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Check, { className: "size-3.5" })
27129
27195
  }
27130
27196
  )
27131
27197
  }
@@ -27134,12 +27200,12 @@ function Checkbox({
27134
27200
 
27135
27201
  // src/components/ui/label.tsx
27136
27202
  var LabelPrimitive = __toESM(require("@radix-ui/react-label"));
27137
- var import_jsx_runtime25 = require("react/jsx-runtime");
27203
+ var import_jsx_runtime27 = require("react/jsx-runtime");
27138
27204
  function Label2({
27139
27205
  className,
27140
27206
  ...props
27141
27207
  }) {
27142
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
27208
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
27143
27209
  LabelPrimitive.Root,
27144
27210
  {
27145
27211
  "data-slot": "label",
@@ -27153,7 +27219,7 @@ function Label2({
27153
27219
  }
27154
27220
 
27155
27221
  // src/components/Inputs/Checkbox/Checkbox.tsx
27156
- var import_jsx_runtime26 = require("react/jsx-runtime");
27222
+ var import_jsx_runtime28 = require("react/jsx-runtime");
27157
27223
  var CheckboxInput = ({ className, style, ...props }) => {
27158
27224
  const isEditable = props.isEditable ?? true;
27159
27225
  const isDisabled = props.isDisabled ?? false;
@@ -27161,9 +27227,9 @@ var CheckboxInput = ({ className, style, ...props }) => {
27161
27227
  const handleChange = (value) => {
27162
27228
  props.onChange?.(value);
27163
27229
  };
27164
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
27165
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex items-center space-x-2", children: [
27166
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
27230
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
27231
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex items-center space-x-2", children: [
27232
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
27167
27233
  Checkbox,
27168
27234
  {
27169
27235
  id: props.name || "checkbox",
@@ -27172,21 +27238,21 @@ var CheckboxInput = ({ className, style, ...props }) => {
27172
27238
  disabled: !isEditable || isDisabled
27173
27239
  }
27174
27240
  ),
27175
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Label2, { htmlFor: props.name || "checkbox", children: text })
27241
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Label2, { htmlFor: props.name || "checkbox", children: text })
27176
27242
  ] }) }),
27177
- props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27243
+ props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27178
27244
  ] });
27179
27245
  };
27180
27246
  var Checkbox_default = CheckboxInput;
27181
27247
 
27182
27248
  // src/components/ui/radio-group.tsx
27183
27249
  var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"));
27184
- var import_jsx_runtime27 = require("react/jsx-runtime");
27250
+ var import_jsx_runtime29 = require("react/jsx-runtime");
27185
27251
  function RadioGroup2({
27186
27252
  className,
27187
27253
  ...props
27188
27254
  }) {
27189
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
27255
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
27190
27256
  RadioGroupPrimitive.Root,
27191
27257
  {
27192
27258
  "data-slot": "radio-group",
@@ -27199,7 +27265,7 @@ function RadioGroupItem({
27199
27265
  className,
27200
27266
  ...props
27201
27267
  }) {
27202
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
27268
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
27203
27269
  RadioGroupPrimitive.Item,
27204
27270
  {
27205
27271
  "data-slot": "radio-group-item",
@@ -27208,12 +27274,12 @@ function RadioGroupItem({
27208
27274
  className
27209
27275
  ),
27210
27276
  ...props,
27211
- children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
27277
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
27212
27278
  RadioGroupPrimitive.Indicator,
27213
27279
  {
27214
27280
  "data-slot": "radio-group-indicator",
27215
27281
  className: "relative flex items-center justify-center",
27216
- children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Circle, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
27282
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Circle, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
27217
27283
  }
27218
27284
  )
27219
27285
  }
@@ -27221,7 +27287,7 @@ function RadioGroupItem({
27221
27287
  }
27222
27288
 
27223
27289
  // src/components/Inputs/RadioInput/RadioInput.tsx
27224
- var import_jsx_runtime28 = require("react/jsx-runtime");
27290
+ var import_jsx_runtime30 = require("react/jsx-runtime");
27225
27291
  var RadioInput = ({
27226
27292
  className,
27227
27293
  style,
@@ -27241,29 +27307,29 @@ var RadioInput = ({
27241
27307
  onChange?.(value);
27242
27308
  };
27243
27309
  const resolvedDefaultValue = (typeof defaultValue === "string" ? defaultValue : void 0) ?? options[0]?.value;
27244
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
27245
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
27310
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
27311
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
27246
27312
  RadioGroup2,
27247
27313
  {
27248
27314
  defaultValue: resolvedDefaultValue,
27249
27315
  onValueChange: handleChange,
27250
27316
  children: [
27251
- options.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "text-sm text-gray-500", children: "No options available" }),
27252
- options.map((item) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex items-center space-x-2", children: [
27253
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(RadioGroupItem, { value: item.value, id: `radio-${item.value}` }),
27254
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Label2, { htmlFor: `radio-${item.value}`, children: item.label })
27317
+ options.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "text-sm text-gray-500", children: "No options available" }),
27318
+ options.map((item) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex items-center space-x-2", children: [
27319
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(RadioGroupItem, { value: item.value, id: `radio-${item.value}` }),
27320
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Label2, { htmlFor: `radio-${item.value}`, children: item.label })
27255
27321
  ] }, item.value))
27256
27322
  ]
27257
27323
  }
27258
27324
  ) }),
27259
- props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27325
+ props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27260
27326
  ] });
27261
27327
  };
27262
27328
  var RadioInput_default = RadioInput;
27263
27329
 
27264
27330
  // src/components/Inputs/MultiCheckbox/MultiCheckbox.tsx
27265
- var import_react5 = require("react");
27266
- var import_jsx_runtime29 = require("react/jsx-runtime");
27331
+ var import_react7 = require("react");
27332
+ var import_jsx_runtime31 = require("react/jsx-runtime");
27267
27333
  var MultiCheckbox = ({
27268
27334
  className,
27269
27335
  style,
@@ -27276,12 +27342,12 @@ var MultiCheckbox = ({
27276
27342
  isDisabled = false
27277
27343
  }) => {
27278
27344
  const list = Array.isArray(data) ? data : [];
27279
- const [value, setValue] = (0, import_react5.useState)(propValue);
27345
+ const [value, setValue] = (0, import_react7.useState)(propValue);
27280
27346
  const options = (list || []).map((item) => ({
27281
27347
  value: item[dataKey || "value"],
27282
27348
  label: item[dataLabel || "label"]
27283
27349
  }));
27284
- const handleChange = (0, import_react5.useCallback)(
27350
+ const handleChange = (0, import_react7.useCallback)(
27285
27351
  (key, checked) => {
27286
27352
  setValue((prev) => {
27287
27353
  const newValue = { ...prev, [key]: checked };
@@ -27291,15 +27357,15 @@ var MultiCheckbox = ({
27291
27357
  },
27292
27358
  [onChange]
27293
27359
  );
27294
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
27360
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
27295
27361
  "div",
27296
27362
  {
27297
27363
  className: cn("flex flex-col gap-3", className),
27298
27364
  style,
27299
27365
  children: [
27300
- options.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "text-sm text-gray-500", children: "No options available." }),
27301
- options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex items-center space-x-2", children: [
27302
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
27366
+ options.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-sm text-gray-500", children: "No options available." }),
27367
+ options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center space-x-2", children: [
27368
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
27303
27369
  Checkbox,
27304
27370
  {
27305
27371
  id: opt.value,
@@ -27308,7 +27374,7 @@ var MultiCheckbox = ({
27308
27374
  disabled: !isEditable || isDisabled
27309
27375
  }
27310
27376
  ),
27311
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Label2, { htmlFor: opt.value, children: opt.label })
27377
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Label2, { htmlFor: opt.value, children: opt.label })
27312
27378
  ] }, opt.value))
27313
27379
  ]
27314
27380
  }
@@ -27317,15 +27383,15 @@ var MultiCheckbox = ({
27317
27383
  var MultiCheckbox_default = MultiCheckbox;
27318
27384
 
27319
27385
  // src/components/Global/TinyMceEditor.tsx
27320
- var import_react6 = require("react");
27386
+ var import_react8 = require("react");
27321
27387
  var import_tinymce_react = require("@tinymce/tinymce-react");
27322
- var import_jsx_runtime30 = require("react/jsx-runtime");
27388
+ var import_jsx_runtime32 = require("react/jsx-runtime");
27323
27389
  function MyEditor({
27324
27390
  value,
27325
27391
  onChange,
27326
27392
  isDefault
27327
27393
  }) {
27328
- const editorRef = (0, import_react6.useRef)(null);
27394
+ const editorRef = (0, import_react8.useRef)(null);
27329
27395
  function stripOuterP(html) {
27330
27396
  const trimmedHtml = html.trim();
27331
27397
  if (!trimmedHtml) return "";
@@ -27337,14 +27403,14 @@ function MyEditor({
27337
27403
  }
27338
27404
  return trimmedHtml;
27339
27405
  }
27340
- const isDefaultToolbar = (0, import_react6.useMemo)(() => {
27406
+ const isDefaultToolbar = (0, import_react8.useMemo)(() => {
27341
27407
  let toolbar = "undo redo | formatselect | bold italic forecolor";
27342
27408
  if (isDefault) {
27343
27409
  toolbar = "undo redo | blocks | bold italic forecolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help";
27344
27410
  }
27345
27411
  return toolbar;
27346
27412
  }, [isDefault]);
27347
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
27413
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
27348
27414
  import_tinymce_react.Editor,
27349
27415
  {
27350
27416
  apiKey: process.env.NEXT_PUBLIC_TINYMCE_API_KEY,
@@ -27388,9 +27454,9 @@ function MyEditor({
27388
27454
  }
27389
27455
 
27390
27456
  // src/components/Inputs/RichText/RichText.tsx
27391
- var import_jsx_runtime31 = require("react/jsx-runtime");
27457
+ var import_jsx_runtime33 = require("react/jsx-runtime");
27392
27458
  function RichText({ className, style, ...props }) {
27393
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
27459
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
27394
27460
  "div",
27395
27461
  {
27396
27462
  className: cn(className, props.errorMessage ? "border-red-500" : ""),
@@ -27399,8 +27465,8 @@ function RichText({ className, style, ...props }) {
27399
27465
  borderColor: props.errorMessage ? "#f87171" : style?.borderColor
27400
27466
  },
27401
27467
  children: [
27402
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(MyEditor, { onChange: (content) => props.onChange?.(content), value: props.value || "", isDefault: true }),
27403
- props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27468
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(MyEditor, { onChange: (content) => props.onChange?.(content), value: props.value || "", isDefault: true }),
27469
+ props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27404
27470
  ]
27405
27471
  }
27406
27472
  );
@@ -27408,16 +27474,16 @@ function RichText({ className, style, ...props }) {
27408
27474
 
27409
27475
  // src/components/ui/select.tsx
27410
27476
  var SelectPrimitive = __toESM(require("@radix-ui/react-select"));
27411
- var import_jsx_runtime32 = require("react/jsx-runtime");
27477
+ var import_jsx_runtime34 = require("react/jsx-runtime");
27412
27478
  function Select({
27413
27479
  ...props
27414
27480
  }) {
27415
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectPrimitive.Root, { "data-slot": "select", ...props });
27481
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectPrimitive.Root, { "data-slot": "select", ...props });
27416
27482
  }
27417
27483
  function SelectValue({
27418
27484
  ...props
27419
27485
  }) {
27420
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
27486
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
27421
27487
  }
27422
27488
  function SelectTrigger({
27423
27489
  className,
@@ -27425,7 +27491,7 @@ function SelectTrigger({
27425
27491
  children,
27426
27492
  ...props
27427
27493
  }) {
27428
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
27494
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
27429
27495
  SelectPrimitive.Trigger,
27430
27496
  {
27431
27497
  "data-slot": "select-trigger",
@@ -27437,7 +27503,7 @@ function SelectTrigger({
27437
27503
  ...props,
27438
27504
  children: [
27439
27505
  children,
27440
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ChevronDown, { className: "size-4 opacity-50" }) })
27506
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ChevronDown, { className: "size-4 opacity-50" }) })
27441
27507
  ]
27442
27508
  }
27443
27509
  );
@@ -27448,7 +27514,7 @@ function SelectContent({
27448
27514
  position = "popper",
27449
27515
  ...props
27450
27516
  }) {
27451
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
27517
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
27452
27518
  SelectPrimitive.Content,
27453
27519
  {
27454
27520
  "data-slot": "select-content",
@@ -27460,8 +27526,8 @@ function SelectContent({
27460
27526
  position,
27461
27527
  ...props,
27462
27528
  children: [
27463
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectScrollUpButton, {}),
27464
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
27529
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectScrollUpButton, {}),
27530
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
27465
27531
  SelectPrimitive.Viewport,
27466
27532
  {
27467
27533
  className: cn(
@@ -27471,7 +27537,7 @@ function SelectContent({
27471
27537
  children
27472
27538
  }
27473
27539
  ),
27474
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectScrollDownButton, {})
27540
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectScrollDownButton, {})
27475
27541
  ]
27476
27542
  }
27477
27543
  ) });
@@ -27481,7 +27547,7 @@ function SelectItem({
27481
27547
  children,
27482
27548
  ...props
27483
27549
  }) {
27484
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
27550
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
27485
27551
  SelectPrimitive.Item,
27486
27552
  {
27487
27553
  "data-slot": "select-item",
@@ -27491,8 +27557,8 @@ function SelectItem({
27491
27557
  ),
27492
27558
  ...props,
27493
27559
  children: [
27494
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Check, { className: "size-4" }) }) }),
27495
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectPrimitive.ItemText, { children })
27560
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Check, { className: "size-4" }) }) }),
27561
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectPrimitive.ItemText, { children })
27496
27562
  ]
27497
27563
  }
27498
27564
  );
@@ -27501,7 +27567,7 @@ function SelectScrollUpButton({
27501
27567
  className,
27502
27568
  ...props
27503
27569
  }) {
27504
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
27570
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
27505
27571
  SelectPrimitive.ScrollUpButton,
27506
27572
  {
27507
27573
  "data-slot": "select-scroll-up-button",
@@ -27510,7 +27576,7 @@ function SelectScrollUpButton({
27510
27576
  className
27511
27577
  ),
27512
27578
  ...props,
27513
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ChevronUp, { className: "size-4" })
27579
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ChevronUp, { className: "size-4" })
27514
27580
  }
27515
27581
  );
27516
27582
  }
@@ -27518,7 +27584,7 @@ function SelectScrollDownButton({
27518
27584
  className,
27519
27585
  ...props
27520
27586
  }) {
27521
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
27587
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
27522
27588
  SelectPrimitive.ScrollDownButton,
27523
27589
  {
27524
27590
  "data-slot": "select-scroll-down-button",
@@ -27527,13 +27593,13 @@ function SelectScrollDownButton({
27527
27593
  className
27528
27594
  ),
27529
27595
  ...props,
27530
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ChevronDown, { className: "size-4" })
27596
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ChevronDown, { className: "size-4" })
27531
27597
  }
27532
27598
  );
27533
27599
  }
27534
27600
 
27535
27601
  // src/components/Inputs/Dropdown/Dropdown.tsx
27536
- var import_jsx_runtime33 = require("react/jsx-runtime");
27602
+ var import_jsx_runtime35 = require("react/jsx-runtime");
27537
27603
  var Dropdown = ({ className, style, ...props }) => {
27538
27604
  const list = Array.isArray(props?.data) ? props.data : [];
27539
27605
  const placeholder = props.placeholder ? props.placeholder : "Placeholder text";
@@ -27549,9 +27615,9 @@ var Dropdown = ({ className, style, ...props }) => {
27549
27615
  value: item[dataKey],
27550
27616
  label: item[dataLabel]
27551
27617
  }));
27552
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
27553
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(Select, { name: props.name, value: props.value || "", onValueChange: handleChange, disabled: isDisabled || !isEditable, children: [
27554
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
27618
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
27619
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Select, { name: props.name, value: props.value || "", onValueChange: handleChange, disabled: isDisabled || !isEditable, children: [
27620
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
27555
27621
  SelectTrigger,
27556
27622
  {
27557
27623
  id: props.name || "select-field",
@@ -27561,24 +27627,28 @@ var Dropdown = ({ className, style, ...props }) => {
27561
27627
  borderColor: props.errorMessage ? "#f87171" : style?.borderColor
27562
27628
  },
27563
27629
  "aria-readonly": isReadonly,
27564
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SelectValue, { placeholder })
27630
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectValue, { placeholder })
27565
27631
  }
27566
27632
  ),
27567
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SelectContent, { children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
27633
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(SelectContent, { children: [
27634
+ props.dataLoading && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectItem, { value: "none", disabled: true, children: "Loading..." }),
27635
+ !props.dataLoading && options.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectItem, { value: "none", disabled: true, children: "No options" }),
27636
+ options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectItem, { value: opt.value, children: opt.label }, opt.value))
27637
+ ] })
27568
27638
  ] }),
27569
- props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27639
+ props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27570
27640
  ] });
27571
27641
  };
27572
27642
  var Dropdown_default = Dropdown;
27573
27643
 
27574
27644
  // src/components/ui/switch.tsx
27575
27645
  var SwitchPrimitive = __toESM(require("@radix-ui/react-switch"));
27576
- var import_jsx_runtime34 = require("react/jsx-runtime");
27646
+ var import_jsx_runtime36 = require("react/jsx-runtime");
27577
27647
  function Switch({
27578
27648
  className,
27579
27649
  ...props
27580
27650
  }) {
27581
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
27651
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
27582
27652
  SwitchPrimitive.Root,
27583
27653
  {
27584
27654
  "data-slot": "switch",
@@ -27587,7 +27657,7 @@ function Switch({
27587
27657
  className
27588
27658
  ),
27589
27659
  ...props,
27590
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
27660
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
27591
27661
  SwitchPrimitive.Thumb,
27592
27662
  {
27593
27663
  "data-slot": "switch-thumb",
@@ -27601,16 +27671,16 @@ function Switch({
27601
27671
  }
27602
27672
 
27603
27673
  // src/components/Inputs/SwitchToggle/SwitchToggle.tsx
27604
- var import_jsx_runtime35 = require("react/jsx-runtime");
27674
+ var import_jsx_runtime37 = require("react/jsx-runtime");
27605
27675
  var SwitchToggle = ({ className, style, ...props }) => {
27606
27676
  const isEditable = props.isEditable ?? true;
27607
27677
  const isDisabled = props.isDisabled ?? false;
27608
27678
  const handleChange = (value) => {
27609
27679
  props.onChange?.(value);
27610
27680
  };
27611
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
27612
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex items-center space-x-2 mb-2", children: [
27613
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
27681
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
27682
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex items-center space-x-2 mb-2", children: [
27683
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
27614
27684
  Switch,
27615
27685
  {
27616
27686
  id: props.name || "switch",
@@ -27619,9 +27689,9 @@ var SwitchToggle = ({ className, style, ...props }) => {
27619
27689
  disabled: isDisabled || !isEditable
27620
27690
  }
27621
27691
  ),
27622
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Label2, { htmlFor: props.name || "switch", children: props.text })
27692
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Label2, { htmlFor: props.name || "switch", children: props.text })
27623
27693
  ] }) }),
27624
- props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27694
+ props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27625
27695
  ] });
27626
27696
  };
27627
27697
  var SwitchToggle_default = SwitchToggle;
@@ -27629,7 +27699,7 @@ var SwitchToggle_default = SwitchToggle;
27629
27699
  // src/components/Inputs/PhoneInput/PhoneInput.tsx
27630
27700
  var import_react_international_phone = require("react-international-phone");
27631
27701
  var import_style = require("react-international-phone/style.css");
27632
- var import_jsx_runtime36 = require("react/jsx-runtime");
27702
+ var import_jsx_runtime38 = require("react/jsx-runtime");
27633
27703
  var PhoneInput = ({ className, style, ...props }) => {
27634
27704
  const placeholder = props.placeholder ?? "Enter phone number";
27635
27705
  const isEditable = props.isEditable ?? true;
@@ -27637,8 +27707,8 @@ var PhoneInput = ({ className, style, ...props }) => {
27637
27707
  const handleChange = (val) => {
27638
27708
  props.onChange?.(val);
27639
27709
  };
27640
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
27641
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
27710
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
27711
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
27642
27712
  import_react_international_phone.PhoneInput,
27643
27713
  {
27644
27714
  defaultCountry: "in",
@@ -27662,13 +27732,13 @@ var PhoneInput = ({ className, style, ...props }) => {
27662
27732
  disabled: isDisabled || !isEditable
27663
27733
  }
27664
27734
  ),
27665
- props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27735
+ props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27666
27736
  ] });
27667
27737
  };
27668
27738
  var PhoneInput_default = PhoneInput;
27669
27739
 
27670
27740
  // src/components/Inputs/SearchInput/SearchInput.tsx
27671
- var import_jsx_runtime37 = require("react/jsx-runtime");
27741
+ var import_jsx_runtime39 = require("react/jsx-runtime");
27672
27742
  var SearchInput = ({ className, style, ...props }) => {
27673
27743
  const placeholder = props.placeholder ?? "Placeholder text";
27674
27744
  const isEditable = props.isEditable ?? true;
@@ -27678,10 +27748,10 @@ var SearchInput = ({ className, style, ...props }) => {
27678
27748
  const handleChange = (e) => {
27679
27749
  props.onChange?.(e);
27680
27750
  };
27681
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
27682
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex justify-start items-center relative", children: [
27683
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Search, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
27684
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
27751
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
27752
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex justify-start items-center relative", children: [
27753
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Search, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
27754
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
27685
27755
  Input,
27686
27756
  {
27687
27757
  type: "text",
@@ -27701,17 +27771,17 @@ var SearchInput = ({ className, style, ...props }) => {
27701
27771
  }
27702
27772
  )
27703
27773
  ] }),
27704
- props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27774
+ props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27705
27775
  ] });
27706
27776
  };
27707
27777
  var SearchInput_default = SearchInput;
27708
27778
 
27709
27779
  // src/components/Inputs/FileInput/FileInput.tsx
27710
- var import_jsx_runtime38 = require("react/jsx-runtime");
27780
+ var import_jsx_runtime40 = require("react/jsx-runtime");
27711
27781
  var FileInput2 = ({ className, style, ...props }) => {
27712
27782
  const placeholder = props.placeholder ?? "Placeholder text";
27713
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "d-flex items-center relative align-middle", children: [
27714
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
27783
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "d-flex items-center relative align-middle", children: [
27784
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
27715
27785
  Input,
27716
27786
  {
27717
27787
  type: "file",
@@ -27730,13 +27800,13 @@ var FileInput2 = ({ className, style, ...props }) => {
27730
27800
  }
27731
27801
  }
27732
27802
  ),
27733
- props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27803
+ props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27734
27804
  ] });
27735
27805
  };
27736
27806
  var FileInput_default = FileInput2;
27737
27807
 
27738
27808
  // src/components/Inputs/DatePicker/DatePicker.tsx
27739
- var import_jsx_runtime39 = require("react/jsx-runtime");
27809
+ var import_jsx_runtime41 = require("react/jsx-runtime");
27740
27810
  function DatePicker({ className, style, ...props }) {
27741
27811
  const placeholder = props.placeholder ?? "Placeholder text";
27742
27812
  const minimumDate = props.minimumDate ?? "none";
@@ -27764,10 +27834,10 @@ function DatePicker({ className, style, ...props }) {
27764
27834
  const handleChange = (e) => {
27765
27835
  props.onChange?.(e);
27766
27836
  };
27767
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
27768
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex justify-start items-center relative", children: [
27769
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Calendar, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
27770
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
27837
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
27838
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex justify-start items-center relative", children: [
27839
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Calendar, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
27840
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
27771
27841
  Input,
27772
27842
  {
27773
27843
  type: "date",
@@ -27793,7 +27863,7 @@ function DatePicker({ className, style, ...props }) {
27793
27863
  }
27794
27864
  )
27795
27865
  ] }),
27796
- props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27866
+ props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27797
27867
  ] });
27798
27868
  }
27799
27869
 
@@ -27804,7 +27874,7 @@ var import_date_fns = require("date-fns");
27804
27874
  // src/components/ui/calendar.tsx
27805
27875
  var React3 = __toESM(require("react"));
27806
27876
  var import_react_day_picker = require("react-day-picker");
27807
- var import_jsx_runtime40 = require("react/jsx-runtime");
27877
+ var import_jsx_runtime42 = require("react/jsx-runtime");
27808
27878
  function Calendar2({
27809
27879
  className,
27810
27880
  classNames,
@@ -27816,7 +27886,7 @@ function Calendar2({
27816
27886
  ...props
27817
27887
  }) {
27818
27888
  const defaultClassNames = (0, import_react_day_picker.getDefaultClassNames)();
27819
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
27889
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
27820
27890
  import_react_day_picker.DayPicker,
27821
27891
  {
27822
27892
  showOutsideDays,
@@ -27915,7 +27985,7 @@ function Calendar2({
27915
27985
  },
27916
27986
  components: {
27917
27987
  Root: ({ className: className2, rootRef, ...props2 }) => {
27918
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
27988
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
27919
27989
  "div",
27920
27990
  {
27921
27991
  "data-slot": "calendar",
@@ -27927,10 +27997,10 @@ function Calendar2({
27927
27997
  },
27928
27998
  Chevron: ({ className: className2, orientation, ...props2 }) => {
27929
27999
  if (orientation === "left") {
27930
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ChevronLeft, { className: cn("size-4", className2), ...props2 });
28000
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ChevronLeft, { className: cn("size-4", className2), ...props2 });
27931
28001
  }
27932
28002
  if (orientation === "right") {
27933
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
28003
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
27934
28004
  ChevronRight,
27935
28005
  {
27936
28006
  className: cn("size-4", className2),
@@ -27938,11 +28008,11 @@ function Calendar2({
27938
28008
  }
27939
28009
  );
27940
28010
  }
27941
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ChevronDown, { className: cn("size-4", className2), ...props2 });
28011
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ChevronDown, { className: cn("size-4", className2), ...props2 });
27942
28012
  },
27943
28013
  DayButton: CalendarDayButton,
27944
28014
  WeekNumber: ({ children, ...props2 }) => {
27945
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("td", { ...props2, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) });
28015
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("td", { ...props2, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) });
27946
28016
  },
27947
28017
  ...components
27948
28018
  },
@@ -27961,7 +28031,7 @@ function CalendarDayButton({
27961
28031
  React3.useEffect(() => {
27962
28032
  if (modifiers.focused) ref.current?.focus();
27963
28033
  }, [modifiers.focused]);
27964
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
28034
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
27965
28035
  Button,
27966
28036
  {
27967
28037
  ref,
@@ -27984,16 +28054,16 @@ function CalendarDayButton({
27984
28054
 
27985
28055
  // src/components/ui/popover.tsx
27986
28056
  var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
27987
- var import_jsx_runtime41 = require("react/jsx-runtime");
28057
+ var import_jsx_runtime43 = require("react/jsx-runtime");
27988
28058
  function Popover({
27989
28059
  ...props
27990
28060
  }) {
27991
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
28061
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
27992
28062
  }
27993
28063
  function PopoverTrigger({
27994
28064
  ...props
27995
28065
  }) {
27996
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
28066
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
27997
28067
  }
27998
28068
  function PopoverContent({
27999
28069
  className,
@@ -28001,7 +28071,7 @@ function PopoverContent({
28001
28071
  sideOffset = 4,
28002
28072
  ...props
28003
28073
  }) {
28004
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
28074
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
28005
28075
  PopoverPrimitive.Content,
28006
28076
  {
28007
28077
  "data-slot": "popover-content",
@@ -28017,7 +28087,7 @@ function PopoverContent({
28017
28087
  }
28018
28088
 
28019
28089
  // src/components/Inputs/DateRange/DateRange.tsx
28020
- var import_jsx_runtime42 = require("react/jsx-runtime");
28090
+ var import_jsx_runtime44 = require("react/jsx-runtime");
28021
28091
  var DateRange = ({ className, style, ...props }) => {
28022
28092
  const isDateRange = (val) => !!val && val.from instanceof Date;
28023
28093
  const [date, setDate] = React4.useState(
@@ -28032,9 +28102,9 @@ var DateRange = ({ className, style, ...props }) => {
28032
28102
  props.onChange?.(value);
28033
28103
  }
28034
28104
  };
28035
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
28036
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Popover, { children: [
28037
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
28105
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
28106
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(Popover, { children: [
28107
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
28038
28108
  Button,
28039
28109
  {
28040
28110
  id: "date",
@@ -28043,15 +28113,15 @@ var DateRange = ({ className, style, ...props }) => {
28043
28113
  "w-full justify-start text-left font-normal text-[11px] border-[#BDBDBD]",
28044
28114
  !date && "text-muted-foreground"
28045
28115
  ),
28046
- children: date?.from ? date.to ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
28116
+ children: date?.from ? date.to ? /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
28047
28117
  (0, import_date_fns.format)(date.from, "LLL dd, y"),
28048
28118
  " -",
28049
28119
  " ",
28050
28120
  (0, import_date_fns.format)(date.to, "LLL dd, y")
28051
- ] }) : (0, import_date_fns.format)(date.from, "LLL dd, y") : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { children: "Pick a date range" })
28121
+ ] }) : (0, import_date_fns.format)(date.from, "LLL dd, y") : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { children: "Pick a date range" })
28052
28122
  }
28053
28123
  ) }),
28054
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
28124
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
28055
28125
  Calendar2,
28056
28126
  {
28057
28127
  mode: "range",
@@ -28062,13 +28132,13 @@ var DateRange = ({ className, style, ...props }) => {
28062
28132
  }
28063
28133
  ) })
28064
28134
  ] }) }),
28065
- props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
28135
+ props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
28066
28136
  ] });
28067
28137
  };
28068
28138
  var DateRange_default = DateRange;
28069
28139
 
28070
28140
  // src/components/Inputs/TextInputGroup/TextInputGroup.tsx
28071
- var import_jsx_runtime43 = require("react/jsx-runtime");
28141
+ var import_jsx_runtime45 = require("react/jsx-runtime");
28072
28142
  var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
28073
28143
  const placeholder = props.placeholder ?? "Placeholder text";
28074
28144
  const isEditable = props.isEditable ?? true;
@@ -28078,8 +28148,8 @@ var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
28078
28148
  const handleChange = (e) => {
28079
28149
  props.onChange?.(e);
28080
28150
  };
28081
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
28082
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
28151
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
28152
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
28083
28153
  "div",
28084
28154
  {
28085
28155
  className: cn(
@@ -28089,8 +28159,8 @@ var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
28089
28159
  props.errorMessage ? "border-red-500" : ""
28090
28160
  ),
28091
28161
  children: [
28092
- prepend && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "px-3 flex items-center bg-gray-500 text-white h-10 rounded-l-md", children: prepend }),
28093
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
28162
+ prepend && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "px-3 flex items-center bg-gray-500 text-white h-10 rounded-l-md", children: prepend }),
28163
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
28094
28164
  Input,
28095
28165
  {
28096
28166
  id: props.name || "prepend-input",
@@ -28112,30 +28182,30 @@ var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
28112
28182
  readOnly: isReadonly
28113
28183
  }
28114
28184
  ),
28115
- append && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "px-3 flex items-center bg-gray-500 text-white h-10 rounded-r-md", children: append })
28185
+ append && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "px-3 flex items-center bg-gray-500 text-white h-10 rounded-r-md", children: append })
28116
28186
  ]
28117
28187
  }
28118
28188
  ),
28119
- props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
28189
+ props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
28120
28190
  ] });
28121
28191
  };
28122
28192
  var TextInputGroup_default = TextInputGroup;
28123
28193
 
28124
28194
  // src/components/DataDisplay/Table/Table.tsx
28125
- var import_react7 = require("react");
28195
+ var import_react9 = require("react");
28126
28196
 
28127
28197
  // src/components/ui/data-table.tsx
28128
28198
  var import_react_table = require("@tanstack/react-table");
28129
28199
 
28130
28200
  // src/components/ui/table.tsx
28131
- var import_jsx_runtime44 = require("react/jsx-runtime");
28201
+ var import_jsx_runtime46 = require("react/jsx-runtime");
28132
28202
  function Table3({ className, ...props }) {
28133
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
28203
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
28134
28204
  "div",
28135
28205
  {
28136
28206
  "data-slot": "table-container",
28137
28207
  className: "relative w-full overflow-x-auto rounded-md border border-gray-200 bg-white",
28138
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
28208
+ children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
28139
28209
  "table",
28140
28210
  {
28141
28211
  "data-slot": "table",
@@ -28147,7 +28217,7 @@ function Table3({ className, ...props }) {
28147
28217
  );
28148
28218
  }
28149
28219
  function TableHeader({ className, ...props }) {
28150
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
28220
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
28151
28221
  "thead",
28152
28222
  {
28153
28223
  "data-slot": "table-header",
@@ -28160,7 +28230,7 @@ function TableHeader({ className, ...props }) {
28160
28230
  );
28161
28231
  }
28162
28232
  function TableBody({ className, ...props }) {
28163
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
28233
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
28164
28234
  "tbody",
28165
28235
  {
28166
28236
  "data-slot": "table-body",
@@ -28173,7 +28243,7 @@ function TableBody({ className, ...props }) {
28173
28243
  );
28174
28244
  }
28175
28245
  function TableRow({ className, ...props }) {
28176
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
28246
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
28177
28247
  "tr",
28178
28248
  {
28179
28249
  "data-slot": "table-row",
@@ -28186,7 +28256,7 @@ function TableRow({ className, ...props }) {
28186
28256
  );
28187
28257
  }
28188
28258
  function TableHead({ className, ...props }) {
28189
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
28259
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
28190
28260
  "th",
28191
28261
  {
28192
28262
  "data-slot": "table-head",
@@ -28199,7 +28269,7 @@ function TableHead({ className, ...props }) {
28199
28269
  );
28200
28270
  }
28201
28271
  function TableCell({ className, ...props }) {
28202
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
28272
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
28203
28273
  "td",
28204
28274
  {
28205
28275
  "data-slot": "table-cell",
@@ -28213,7 +28283,7 @@ function TableCell({ className, ...props }) {
28213
28283
  }
28214
28284
 
28215
28285
  // src/components/ui/data-table.tsx
28216
- var import_jsx_runtime45 = require("react/jsx-runtime");
28286
+ var import_jsx_runtime47 = require("react/jsx-runtime");
28217
28287
  function DataTable({
28218
28288
  columns,
28219
28289
  rowActions,
@@ -28238,14 +28308,14 @@ function DataTable({
28238
28308
  onCellClick(rowData, columnId);
28239
28309
  }
28240
28310
  };
28241
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "overflow-hidden rounded-md border w-full", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(Table3, { children: [
28242
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableHeader, { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableRow, { children: headerGroup.headers.map((header) => {
28243
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableHead, { children: header.isPlaceholder ? null : (0, import_react_table.flexRender)(
28311
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "overflow-hidden rounded-md border w-full", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(Table3, { children: [
28312
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TableHeader, { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TableRow, { children: headerGroup.headers.map((header) => {
28313
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TableHead, { children: header.isPlaceholder ? null : (0, import_react_table.flexRender)(
28244
28314
  header.column.columnDef.header,
28245
28315
  header.getContext()
28246
28316
  ) }, header.id);
28247
28317
  }) }, headerGroup.id)) }),
28248
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableBody, { children: loading ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableCell, { colSpan: columns.length, className: "h-24 text-center", children: "Loading..." }) }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: table.getRowModel().rows?.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
28318
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TableBody, { children: loading ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TableCell, { colSpan: columns.length, className: "h-24 text-center", children: "Loading..." }) }) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_jsx_runtime47.Fragment, { children: table.getRowModel().rows?.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
28249
28319
  TableRow,
28250
28320
  {
28251
28321
  "data-state": row.getIsSelected() && "selected",
@@ -28255,7 +28325,7 @@ function DataTable({
28255
28325
  const isCellClickable = cellClickEnabled(row.original, cell.column.id);
28256
28326
  const dynamicClass = cell.column.columnDef.meta?.cellClass || "";
28257
28327
  const dynamicStyle = cell.column.columnDef.meta?.cellStyle || {};
28258
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
28328
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
28259
28329
  TableCell,
28260
28330
  {
28261
28331
  className: `${dynamicClass} ${isCellClickable ? "underline cursor-pointer" : ""}`,
@@ -28270,18 +28340,18 @@ function DataTable({
28270
28340
  cell.id
28271
28341
  );
28272
28342
  }),
28273
- rowActions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "absolute top-0 right-0 bg-white py-3 min-w-[100px] z-50 shadow-md flex items-center justify-center gap-3 p-2 opacity-0 group-hover:opacity-100 duration-300 h-full", children: rowActions.map((action, index) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "text-[#383838] text-[12px] cursor-pointer font-[400]", children: action.header }, index)) })
28343
+ rowActions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "absolute top-0 right-0 bg-white py-3 min-w-[100px] z-50 shadow-md flex items-center justify-center gap-3 p-2 opacity-0 group-hover:opacity-100 duration-300 h-full", children: rowActions.map((action, index) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "text-[#383838] text-[12px] cursor-pointer font-[400]", children: action.header }, index)) })
28274
28344
  ]
28275
28345
  },
28276
28346
  row.id
28277
- )) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableCell, { colSpan: columns.length, className: "h-24 text-center", children: "No results." }) }) }) })
28347
+ )) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TableCell, { colSpan: columns.length, className: "h-24 text-center", children: "No results." }) }) }) })
28278
28348
  ] }) });
28279
28349
  }
28280
28350
 
28281
28351
  // src/components/ui/pagination.tsx
28282
- var import_jsx_runtime46 = require("react/jsx-runtime");
28352
+ var import_jsx_runtime48 = require("react/jsx-runtime");
28283
28353
  function Pagination({ className, ...props }) {
28284
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
28354
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
28285
28355
  "nav",
28286
28356
  {
28287
28357
  role: "navigation",
@@ -28296,7 +28366,7 @@ function PaginationContent({
28296
28366
  className,
28297
28367
  ...props
28298
28368
  }) {
28299
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
28369
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
28300
28370
  "ul",
28301
28371
  {
28302
28372
  "data-slot": "pagination-content",
@@ -28306,7 +28376,7 @@ function PaginationContent({
28306
28376
  );
28307
28377
  }
28308
28378
  function PaginationItem({ ...props }) {
28309
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("li", { "data-slot": "pagination-item", ...props });
28379
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("li", { "data-slot": "pagination-item", ...props });
28310
28380
  }
28311
28381
  function PaginationLink({
28312
28382
  className,
@@ -28314,7 +28384,7 @@ function PaginationLink({
28314
28384
  size = "icon",
28315
28385
  ...props
28316
28386
  }) {
28317
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
28387
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
28318
28388
  "a",
28319
28389
  {
28320
28390
  "aria-current": isActive ? "page" : void 0,
@@ -28335,7 +28405,7 @@ function PaginationPrevious({
28335
28405
  className,
28336
28406
  ...props
28337
28407
  }) {
28338
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
28408
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
28339
28409
  PaginationLink,
28340
28410
  {
28341
28411
  "aria-label": "Go to previous page",
@@ -28343,8 +28413,8 @@ function PaginationPrevious({
28343
28413
  className: cn("gap-1 px-2.5 sm:pl-2.5", className),
28344
28414
  ...props,
28345
28415
  children: [
28346
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ChevronLeft, {}),
28347
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "hidden sm:block", children: "Previous" })
28416
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ChevronLeft, {}),
28417
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "hidden sm:block", children: "Previous" })
28348
28418
  ]
28349
28419
  }
28350
28420
  );
@@ -28353,7 +28423,7 @@ function PaginationNext({
28353
28423
  className,
28354
28424
  ...props
28355
28425
  }) {
28356
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
28426
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
28357
28427
  PaginationLink,
28358
28428
  {
28359
28429
  "aria-label": "Go to next page",
@@ -28361,8 +28431,8 @@ function PaginationNext({
28361
28431
  className: cn("gap-1 px-2.5 sm:pr-2.5", className),
28362
28432
  ...props,
28363
28433
  children: [
28364
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "hidden sm:block", children: "Next" }),
28365
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ChevronRight, {})
28434
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "hidden sm:block", children: "Next" }),
28435
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ChevronRight, {})
28366
28436
  ]
28367
28437
  }
28368
28438
  );
@@ -28371,7 +28441,7 @@ function PaginationEllipsis({
28371
28441
  className,
28372
28442
  ...props
28373
28443
  }) {
28374
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
28444
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
28375
28445
  "span",
28376
28446
  {
28377
28447
  "aria-hidden": true,
@@ -28379,15 +28449,15 @@ function PaginationEllipsis({
28379
28449
  className: cn("flex size-9 items-center justify-center", className),
28380
28450
  ...props,
28381
28451
  children: [
28382
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Ellipsis, { className: "size-4" }),
28383
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "sr-only", children: "More pages" })
28452
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Ellipsis, { className: "size-4" }),
28453
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "sr-only", children: "More pages" })
28384
28454
  ]
28385
28455
  }
28386
28456
  );
28387
28457
  }
28388
28458
 
28389
28459
  // src/components/DataDisplay/Pagination/Pagination.tsx
28390
- var import_jsx_runtime47 = require("react/jsx-runtime");
28460
+ var import_jsx_runtime49 = require("react/jsx-runtime");
28391
28461
  var CustomPagination = ({
28392
28462
  totalPages,
28393
28463
  currentPage,
@@ -28433,10 +28503,10 @@ var CustomPagination = ({
28433
28503
  }
28434
28504
  };
28435
28505
  const pageNumbers = getPageNumbers();
28436
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex flex-row gap-1 w-full items-center justify-between", children: [
28437
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center gap-2", children: [
28438
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "text-sm text-muted-foreground whitespace-nowrap", children: "Items per page:" }),
28439
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
28506
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-row gap-1 w-full items-center justify-between", children: [
28507
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center gap-2", children: [
28508
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "text-sm text-muted-foreground whitespace-nowrap", children: "Items per page:" }),
28509
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
28440
28510
  Select,
28441
28511
  {
28442
28512
  defaultValue: String(perPage),
@@ -28444,26 +28514,26 @@ var CustomPagination = ({
28444
28514
  onPageChange({ page: 1, itemsPerPage: Number(value) });
28445
28515
  },
28446
28516
  children: [
28447
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectTrigger, { className: "w-[100px]", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectValue, { placeholder: "Select" }) }),
28448
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(SelectContent, { children: [
28449
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectItem, { value: "5", children: "5" }),
28450
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectItem, { value: "10", children: "10" }),
28451
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectItem, { value: "20", children: "20" }),
28452
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectItem, { value: "50", children: "50" })
28517
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SelectTrigger, { className: "w-[100px]", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SelectValue, { placeholder: "Select" }) }),
28518
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(SelectContent, { children: [
28519
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SelectItem, { value: "5", children: "5" }),
28520
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SelectItem, { value: "10", children: "10" }),
28521
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SelectItem, { value: "20", children: "20" }),
28522
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SelectItem, { value: "50", children: "50" })
28453
28523
  ] })
28454
28524
  ]
28455
28525
  }
28456
28526
  )
28457
28527
  ] }),
28458
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Pagination, { className: "justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(PaginationContent, { children: [
28459
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(PaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
28528
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Pagination, { className: "justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(PaginationContent, { children: [
28529
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(PaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
28460
28530
  PaginationPrevious,
28461
28531
  {
28462
28532
  onClick: () => handlePageChange(currentPage - 1),
28463
28533
  className: currentPage === 1 ? "pointer-events-none opacity-50" : "cursor-pointer"
28464
28534
  }
28465
28535
  ) }),
28466
- pageNumbers.map((pageNumber, index) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(PaginationItem, { children: pageNumber === "..." ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(PaginationEllipsis, {}) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
28536
+ pageNumbers.map((pageNumber, index) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(PaginationItem, { children: pageNumber === "..." ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(PaginationEllipsis, {}) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
28467
28537
  PaginationLink,
28468
28538
  {
28469
28539
  onClick: () => handlePageChange(pageNumber),
@@ -28472,7 +28542,7 @@ var CustomPagination = ({
28472
28542
  children: pageNumber
28473
28543
  }
28474
28544
  ) }, index)),
28475
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(PaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
28545
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(PaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
28476
28546
  PaginationNext,
28477
28547
  {
28478
28548
  onClick: () => handlePageChange(currentPage + 1),
@@ -28485,7 +28555,7 @@ var CustomPagination = ({
28485
28555
  var Pagination_default = CustomPagination;
28486
28556
 
28487
28557
  // src/components/DataDisplay/Table/Table.tsx
28488
- var import_jsx_runtime48 = require("react/jsx-runtime");
28558
+ var import_jsx_runtime50 = require("react/jsx-runtime");
28489
28559
  var Table4 = ({
28490
28560
  columns,
28491
28561
  data,
@@ -28505,9 +28575,9 @@ var Table4 = ({
28505
28575
  const rawData = Array.isArray(data) ? data : [];
28506
28576
  const rawRowActions = Array.isArray(rowActions) ? rowActions : [];
28507
28577
  const isControlled = typeof page === "number";
28508
- const [internalPage, setInternalPage] = (0, import_react7.useState)(1);
28578
+ const [internalPage, setInternalPage] = (0, import_react9.useState)(1);
28509
28579
  const currentPage = isControlled ? page : internalPage;
28510
- (0, import_react7.useEffect)(() => {
28580
+ (0, import_react9.useEffect)(() => {
28511
28581
  if (isControlled) return;
28512
28582
  if (currentPage > 1 && !pagination) setInternalPage(1);
28513
28583
  }, [pagination, isControlled]);
@@ -28531,8 +28601,8 @@ var Table4 = ({
28531
28601
  if (!selectedColumn) return false;
28532
28602
  return selectedColumn.isClickable ?? false;
28533
28603
  };
28534
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: `${className || ""} space-y-3`, style, children: [
28535
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
28604
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: `${className || ""} space-y-3`, style, children: [
28605
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
28536
28606
  DataTable,
28537
28607
  {
28538
28608
  ...props,
@@ -28543,7 +28613,7 @@ var Table4 = ({
28543
28613
  cellClickEnabled: isCellClickEnabled
28544
28614
  }
28545
28615
  ),
28546
- enablePagination && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
28616
+ enablePagination && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
28547
28617
  Pagination_default,
28548
28618
  {
28549
28619
  perPage: itemsPerPage,
@@ -28558,7 +28628,7 @@ var Table_default = Table4;
28558
28628
 
28559
28629
  // src/components/Navigation/Tabs/Tabs.tsx
28560
28630
  var import_link5 = __toESM(require("next/link"));
28561
- var import_jsx_runtime49 = require("react/jsx-runtime");
28631
+ var import_jsx_runtime51 = require("react/jsx-runtime");
28562
28632
  var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
28563
28633
  const rawTabs = Array.isArray(tabs) ? tabs : [];
28564
28634
  const baseClasses = "text-[12px] text-foreground p-2 text-center rounded-md transition-colors";
@@ -28571,23 +28641,23 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
28571
28641
  const renderDesktopTab = (tab, index) => {
28572
28642
  const finalClasses = [baseClasses, isActive(tab.url) ? activeClasses : hoverClasses, tab.className || ""].join(" ");
28573
28643
  if (Array.isArray(tab.children) && tab.children.length > 0 && tab.isDropDown) {
28574
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(DropdownMenu, { children: [
28575
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(DropdownMenuTrigger, { className: `${finalClasses} inline-flex items-center gap-1`, children: [
28644
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(DropdownMenu, { children: [
28645
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(DropdownMenuTrigger, { className: `${finalClasses} inline-flex items-center gap-1`, children: [
28576
28646
  tab.header,
28577
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ChevronDown, { className: "h-4 w-4 opacity-80" })
28647
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ChevronDown, { className: "h-4 w-4 opacity-80" })
28578
28648
  ] }),
28579
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
28649
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
28580
28650
  DropdownMenuContent,
28581
28651
  {
28582
28652
  align: "start",
28583
28653
  sideOffset: 6,
28584
28654
  className: "z-50 min-w-[160px] rounded-md border border-gray-200 bg-white p-1 shadow-lg",
28585
- children: tab.children.map((item) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
28655
+ children: tab.children.map((item) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
28586
28656
  DropdownMenuItem,
28587
28657
  {
28588
28658
  asChild: true,
28589
28659
  className: "cursor-pointer rounded-sm px-3 py-2 text-[12px] text-gray-800 hover:bg-gray-100 focus:bg-gray-100",
28590
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_link5.default, { href: item.url || "#", children: item.header })
28660
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_link5.default, { href: item.url || "#", children: item.header })
28591
28661
  },
28592
28662
  item.id
28593
28663
  ))
@@ -28595,14 +28665,14 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
28595
28665
  )
28596
28666
  ] }, index);
28597
28667
  }
28598
- return tab.url ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_link5.default, { href: tab.url, className: finalClasses, style: tab.style, children: tab.header }, index) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: finalClasses, style: tab.style, role: "button", tabIndex: 0, children: tab.header }, index);
28668
+ return tab.url ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_link5.default, { href: tab.url, className: finalClasses, style: tab.style, children: tab.header }, index) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: finalClasses, style: tab.style, role: "button", tabIndex: 0, children: tab.header }, index);
28599
28669
  };
28600
- const renderMobileMenu = () => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(DropdownMenu, { children: [
28601
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(DropdownMenuTrigger, { className: "flex items-center gap-2 px-3 py-2 rounded-md bg-white/10 text-white text-sm", children: [
28602
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Menu, { className: "h-4 w-4" }),
28670
+ const renderMobileMenu = () => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(DropdownMenu, { children: [
28671
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(DropdownMenuTrigger, { className: "flex items-center gap-2 px-3 py-2 rounded-md bg-white/10 text-white text-sm", children: [
28672
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Menu, { className: "h-4 w-4" }),
28603
28673
  "Menu"
28604
28674
  ] }),
28605
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
28675
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
28606
28676
  DropdownMenuContent,
28607
28677
  {
28608
28678
  align: "start",
@@ -28611,25 +28681,25 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
28611
28681
  children: rawTabs.map((tab, i) => {
28612
28682
  const hasChildren = Array.isArray(tab.children) && tab.children.length > 0 && tab.isDropDown;
28613
28683
  if (hasChildren) {
28614
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(DropdownMenuSub, { children: [
28615
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DropdownMenuSubTrigger, { className: "flex items-center justify-between cursor-pointer rounded-sm px-3 py-2 text-[13px] text-foreground hover:text-foreground", children: tab.header }),
28616
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DropdownMenuSubContent, { className: "bg-white border shadow-lg rounded-md p-1", children: tab.children.map((item) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
28684
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(DropdownMenuSub, { children: [
28685
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DropdownMenuSubTrigger, { className: "flex items-center justify-between cursor-pointer rounded-sm px-3 py-2 text-[13px] text-foreground hover:text-foreground", children: tab.header }),
28686
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DropdownMenuSubContent, { className: "bg-white border shadow-lg rounded-md p-1", children: tab.children.map((item) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
28617
28687
  DropdownMenuItem,
28618
28688
  {
28619
28689
  asChild: true,
28620
28690
  className: "cursor-pointer rounded-sm px-3 py-2 text-[12px] text-gray-800 hover:bg-gray-100",
28621
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_link5.default, { href: item.url || "#", children: item.header })
28691
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_link5.default, { href: item.url || "#", children: item.header })
28622
28692
  },
28623
28693
  item.id
28624
28694
  )) })
28625
28695
  ] }, i);
28626
28696
  }
28627
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
28697
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
28628
28698
  DropdownMenuItem,
28629
28699
  {
28630
28700
  asChild: true,
28631
28701
  className: "cursor-pointer rounded-sm px-3 py-2 text-[13px] text-gray-800 hover:bg-gray-100",
28632
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_link5.default, { href: tab.url || "#", children: tab.header })
28702
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_link5.default, { href: tab.url || "#", children: tab.header })
28633
28703
  },
28634
28704
  i
28635
28705
  );
@@ -28639,56 +28709,56 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
28639
28709
  ] });
28640
28710
  const forceMobile = canvasMode === "mobile" || canvasMode === "tablet";
28641
28711
  const forceDesktop = canvasMode === "desktop";
28642
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className, style, children: [
28643
- forceDesktop && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "hidden md:flex", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: `flex gap-2 ${verticalMenu ? "flex-col items-start" : "flex-row"}`, children: rawTabs.map(renderDesktopTab) }) }),
28644
- forceMobile && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { children: renderMobileMenu() }),
28645
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "md:hidden", children: renderMobileMenu() })
28712
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className, style, children: [
28713
+ forceDesktop && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "hidden md:flex", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: `flex gap-2 ${verticalMenu ? "flex-col items-start" : "flex-row"}`, children: rawTabs.map(renderDesktopTab) }) }),
28714
+ forceMobile && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { children: renderMobileMenu() }),
28715
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "md:hidden", children: renderMobileMenu() })
28646
28716
  ] });
28647
28717
  };
28648
28718
  var Tabs_default = Tabs;
28649
28719
 
28650
28720
  // src/components/Navigation/Stages/Stages.tsx
28651
- var import_react8 = __toESM(require("react"));
28652
- var import_jsx_runtime50 = require("react/jsx-runtime");
28721
+ var import_react10 = __toESM(require("react"));
28722
+ var import_jsx_runtime52 = require("react/jsx-runtime");
28653
28723
  var StagesComponent = ({ stages, isShowBtn, buttonText, className, style }) => {
28654
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center justify-between bg-red p-2 rounded-lg border border-gray-200 w-full", children: [
28655
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("button", { className: "p-2 hover:bg-gray-100 rounded", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("svg", { className: "w-4 h-4 text-gray-600", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" }) }) }) }),
28656
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex items-center flex-1 px-2 flex-wrap gap-2", children: stages?.length > 0 && stages?.map((stage, index) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_react8.default.Fragment, { children: [
28657
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
28724
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex items-center justify-between bg-red p-2 rounded-lg border border-gray-200 w-full", children: [
28725
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("button", { className: "p-2 hover:bg-gray-100 rounded", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("svg", { className: "w-4 h-4 text-gray-600", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" }) }) }) }),
28726
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex items-center flex-1 px-2 flex-wrap gap-2", children: stages?.length > 0 && stages?.map((stage, index) => /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_react10.default.Fragment, { children: [
28727
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
28658
28728
  "button",
28659
28729
  {
28660
28730
  className: `min-w-[120px] px-4 py-2 rounded-full text-sm font-medium transition-colors duration-200 whitespace-nowrap ${stage.isActive ? "bg-[#034486] text-white shadow-md" : "bg-white text-gray-700 hover:bg-gray-100 border border-gray-200"}`,
28661
28731
  children: stage.header
28662
28732
  }
28663
28733
  ),
28664
- index < stages.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex-shrink-0 w-3 h-px bg-gray-300" })
28734
+ index < stages.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex-shrink-0 w-3 h-px bg-gray-300" })
28665
28735
  ] }, stage.id)) }),
28666
- isShowBtn && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("button", { className: "bg-[#034486] text-white px-6 py-2 rounded-lg text-sm font-medium transition-colors duration-200 shadow-sm", children: buttonText }) })
28736
+ isShowBtn && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("button", { className: "bg-[#034486] text-white px-6 py-2 rounded-lg text-sm font-medium transition-colors duration-200 shadow-sm", children: buttonText }) })
28667
28737
  ] }) });
28668
28738
  };
28669
28739
  var Stages_default = StagesComponent;
28670
28740
 
28671
28741
  // src/components/Navigation/Spacer/Spacer.tsx
28672
- var import_jsx_runtime51 = require("react/jsx-runtime");
28742
+ var import_jsx_runtime53 = require("react/jsx-runtime");
28673
28743
  var Spacer = ({ className, style }) => {
28674
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: `${className}`, style });
28744
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: `${className}`, style });
28675
28745
  };
28676
28746
  var Spacer_default = Spacer;
28677
28747
 
28678
28748
  // src/components/Navigation/Profile/Profile.tsx
28679
- var import_jsx_runtime52 = require("react/jsx-runtime");
28749
+ var import_jsx_runtime54 = require("react/jsx-runtime");
28680
28750
 
28681
28751
  // src/components/Navigation/Notification/Notification.tsx
28682
- var import_jsx_runtime53 = require("react/jsx-runtime");
28752
+ var import_jsx_runtime55 = require("react/jsx-runtime");
28683
28753
 
28684
28754
  // src/components/Navigation/Logo/Logo.tsx
28685
- var import_jsx_runtime54 = require("react/jsx-runtime");
28755
+ var import_jsx_runtime56 = require("react/jsx-runtime");
28686
28756
 
28687
28757
  // src/components/ui/avatar.tsx
28688
28758
  var React6 = __toESM(require("react"));
28689
28759
  var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"));
28690
- var import_jsx_runtime55 = require("react/jsx-runtime");
28691
- var Avatar = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
28760
+ var import_jsx_runtime57 = require("react/jsx-runtime");
28761
+ var Avatar = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
28692
28762
  AvatarPrimitive.Root,
28693
28763
  {
28694
28764
  ref,
@@ -28700,7 +28770,7 @@ var Avatar = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
28700
28770
  }
28701
28771
  ));
28702
28772
  Avatar.displayName = AvatarPrimitive.Root.displayName;
28703
- var AvatarImage = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
28773
+ var AvatarImage = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
28704
28774
  AvatarPrimitive.Image,
28705
28775
  {
28706
28776
  ref,
@@ -28709,7 +28779,7 @@ var AvatarImage = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE
28709
28779
  }
28710
28780
  ));
28711
28781
  AvatarImage.displayName = AvatarPrimitive.Image.displayName;
28712
- var AvatarFallback = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
28782
+ var AvatarFallback = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
28713
28783
  AvatarPrimitive.Fallback,
28714
28784
  {
28715
28785
  ref,
@@ -28725,7 +28795,8 @@ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
28725
28795
  // src/components/Navigation/Navbar/Navbar.tsx
28726
28796
  var import_link6 = __toESM(require("next/link"));
28727
28797
  var import_image3 = __toESM(require("next/image"));
28728
- var import_jsx_runtime56 = require("react/jsx-runtime");
28798
+ var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
28799
+ var import_jsx_runtime58 = require("react/jsx-runtime");
28729
28800
  function Navbar({
28730
28801
  style,
28731
28802
  badgeType,
@@ -28737,12 +28808,13 @@ function Navbar({
28737
28808
  altText = "Logo",
28738
28809
  canvasMode = "desktop",
28739
28810
  list = [],
28811
+ profileMenu = [],
28740
28812
  userName = "Guest User"
28741
28813
  }) {
28742
28814
  const isMobileView = canvasMode === "mobile" || canvasMode === "tablet";
28743
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("nav", { className: "w-full border-b bg-white shadow-sm", style, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "mx-auto flex max-w-7xl items-center justify-between px-4 py-4", children: [
28744
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_link6.default, { href: "/", className: "flex items-center space-x-2", children: imageUrl ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_image3.default, { src: imageUrl, alt: altText, width: 200, height: 200 }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "font-semibold text-blue-700", children: "Logo" }) }),
28745
- !isMobileView && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "flex items-center space-x-6 sm:hidden md:flex", children: list.map((item) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
28815
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("nav", { className: "w-full border-b bg-white shadow-sm", style, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "mx-auto flex max-w-7xl items-center justify-between px-4 py-4", children: [
28816
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_link6.default, { href: "/", className: "flex items-center space-x-2", children: imageUrl ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_image3.default, { src: imageUrl, alt: altText, width: 200, height: 200 }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "font-semibold text-blue-700", children: "Logo" }) }),
28817
+ !isMobileView && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex items-center space-x-6 sm:hidden md:flex", children: list.map((item) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
28746
28818
  import_link6.default,
28747
28819
  {
28748
28820
  href: item.url || "#",
@@ -28751,54 +28823,60 @@ function Navbar({
28751
28823
  },
28752
28824
  item.id
28753
28825
  )) }),
28754
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex items-center space-x-3", children: [
28755
- !isMobileView ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "flex-1 px-6", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "relative w-full max-w-md border border-gray-300 rounded-md", children: [
28756
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400" }),
28757
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Input, { placeholder: "Search", className: "pl-9 text-gray-400" })
28758
- ] }) }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
28826
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center space-x-3", children: [
28827
+ !isMobileView ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex-1 px-6", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "relative w-full max-w-md border border-gray-300 rounded-md", children: [
28828
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400" }),
28829
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Input, { placeholder: "Search", className: "pl-9 text-gray-400" })
28830
+ ] }) }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
28759
28831
  Button,
28760
28832
  {
28761
28833
  variant: "ghost",
28762
28834
  size: "icon",
28763
28835
  className: "border border-gray-400",
28764
- children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Search, { className: "h-5 w-5 text-gray-400" })
28836
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Search, { className: "h-5 w-5 text-gray-400" })
28765
28837
  }
28766
28838
  ),
28767
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "relative bg-[#E9E9E9] rounded-md", children: [
28768
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Button, { variant: "ghost", size: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Bell, { className: "h-5 w-5 text-[#1C1B1F]" }) }),
28769
- badgeType === "number" && !(hideBadgeWhenZero && badgeCount === 0) && Number(badgeCount) > 0 ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "absolute -top-1 -right-1 flex h-4 w-4 items-center justify-center rounded-full bg-red-500 text-[10px] text-white leading-8", children: badgeCount }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "absolute -top-1 -right-1 flex h-2 w-2 items-center justify-center rounded-full bg-red-500" })
28839
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "relative bg-[#E9E9E9] rounded-md", children: [
28840
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Button, { variant: "ghost", size: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Bell, { className: "h-5 w-5 text-[#1C1B1F]" }) }),
28841
+ badgeType === "number" && !(hideBadgeWhenZero && badgeCount === 0) && Number(badgeCount) > 0 ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "absolute -top-1 -right-1 flex h-4 w-4 items-center justify-center rounded-full bg-red-500 text-[10px] text-white leading-8", children: badgeCount }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "absolute -top-1 -right-1 flex h-2 w-2 items-center justify-center rounded-full bg-red-500" })
28770
28842
  ] }),
28771
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(DropdownMenu, { children: [
28772
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex items-center space-x-2", children: [
28773
- !isMobileView && showName && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("h4", { className: "text-[#000000] text-[13px] font-[500] mb-0", children: userName }),
28774
- !isMobileView ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
28775
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Avatar, { className: "cursor-pointer h-8 w-8 text-gray-900", children: profileType === "avatar" ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
28843
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(DropdownMenu, { children: [
28844
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center space-x-2", children: [
28845
+ !isMobileView && showName && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("h4", { className: "text-[#000000] text-[13px] font-[500] mb-0", children: userName }),
28846
+ !isMobileView ? /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
28847
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Avatar, { className: "cursor-pointer h-8 w-8 text-gray-900", children: profileType === "avatar" ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
28776
28848
  AvatarImage,
28777
28849
  {
28778
28850
  src: "/images/appbuilder/toolset/profile.svg",
28779
28851
  alt: "Profile"
28780
28852
  }
28781
- ) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "w-8 h-8 bg-[#12715b] rounded-full text-[#fff] text-center text-[11px] flex items-center justify-center", children: userName && getInitials(userName) }) }),
28782
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
28853
+ ) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "w-8 h-8 bg-[#12715b] rounded-full text-[#fff] text-center text-[11px] flex items-center justify-center", children: userName && getInitials(userName) }) }),
28854
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
28783
28855
  Button,
28784
28856
  {
28785
28857
  variant: "ghost",
28786
28858
  size: "icon",
28787
28859
  className: "text-gray-900 md:hidden",
28788
- children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Menu, { className: "h-6 w-6" })
28860
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Menu, { className: "h-6 w-6" })
28789
28861
  }
28790
28862
  )
28791
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
28863
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
28792
28864
  Button,
28793
28865
  {
28794
28866
  variant: "ghost",
28795
28867
  size: "icon",
28796
28868
  className: "text-gray-900",
28797
- children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Menu, { className: "h-6 w-6" })
28869
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Menu, { className: "h-6 w-6" })
28798
28870
  }
28799
28871
  )
28800
28872
  ] }) }),
28801
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DropdownMenuContent, { align: "end", className: "bg-white", children: list && list.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_jsx_runtime56.Fragment, { children: list.map((item) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DropdownMenuItem, { className: "text-black", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_link6.default, { href: item.url || "#", children: item.header }) }, item.id)) }) })
28873
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(DropdownMenuContent, { align: "end", className: "bg-white", children: [
28874
+ profileMenu && profileMenu.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx_runtime58.Fragment, { children: profileMenu.map((item) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(DropdownMenuItem, { className: "text-black", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_link6.default, { href: item.url || "#", children: item.header }) }, item.id)) }),
28875
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "md:hidden", children: [
28876
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_dropdown_menu.DropdownMenuSeparator, {}),
28877
+ list && list.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx_runtime58.Fragment, { children: list.map((item) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(DropdownMenuItem, { className: "text-black", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_link6.default, { href: item.url || "#", children: item.header }) }, item.id)) })
28878
+ ] })
28879
+ ] })
28802
28880
  ] })
28803
28881
  ] })
28804
28882
  ] }) });
@@ -28806,28 +28884,28 @@ function Navbar({
28806
28884
 
28807
28885
  // src/components/Chart/BarChart.tsx
28808
28886
  var import_recharts = require("recharts");
28809
- var import_jsx_runtime57 = require("react/jsx-runtime");
28887
+ var import_jsx_runtime59 = require("react/jsx-runtime");
28810
28888
  var ChartComponent = ({ className, style, ...props }) => {
28811
28889
  const data = Array.isArray(props?.data) ? props.data : [];
28812
28890
  const chartType = props.chartType || "bar";
28813
28891
  const legendsPosition = props.legendsPosition === "middle" || props.legendsPosition === "bottom" ? props.legendsPosition : "top";
28814
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: `${className} h-[400px]`, style, children: data.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.ResponsiveContainer, { width: "100%", height: "100%", children: chartType === "bar" ? /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_recharts.BarChart, { data, children: [
28815
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.CartesianGrid, { strokeDasharray: "3 3" }),
28816
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.XAxis, { dataKey: "name" }),
28817
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.YAxis, {}),
28818
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.Tooltip, {}),
28819
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.Legend, { verticalAlign: legendsPosition, align: "center" }),
28820
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.Bar, { dataKey: "value", fill: "#00695C" })
28821
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_recharts.AreaChart, { data, children: [
28822
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("linearGradient", { id: "colorCount", x1: "0", y1: "0", x2: "0", y2: "1", children: [
28823
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("stop", { offset: "5%", stopColor: "#00695C", stopOpacity: 0.8 }),
28824
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("stop", { offset: "95%", stopColor: "#00695C", stopOpacity: 0 })
28892
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: `${className} h-[400px]`, style, children: data.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_recharts.ResponsiveContainer, { width: "100%", height: "100%", children: chartType === "bar" ? /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_recharts.BarChart, { data, children: [
28893
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_recharts.CartesianGrid, { strokeDasharray: "3 3" }),
28894
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_recharts.XAxis, { dataKey: "name" }),
28895
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_recharts.YAxis, {}),
28896
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_recharts.Tooltip, {}),
28897
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_recharts.Legend, { verticalAlign: legendsPosition, align: "center" }),
28898
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_recharts.Bar, { dataKey: "value", fill: "#00695C" })
28899
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_recharts.AreaChart, { data, children: [
28900
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("linearGradient", { id: "colorCount", x1: "0", y1: "0", x2: "0", y2: "1", children: [
28901
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("stop", { offset: "5%", stopColor: "#00695C", stopOpacity: 0.8 }),
28902
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("stop", { offset: "95%", stopColor: "#00695C", stopOpacity: 0 })
28825
28903
  ] }) }),
28826
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.CartesianGrid, { strokeDasharray: "3 3" }),
28827
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.XAxis, { dataKey: "name" }),
28828
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.YAxis, {}),
28829
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.Tooltip, {}),
28830
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
28904
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_recharts.CartesianGrid, { strokeDasharray: "3 3" }),
28905
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_recharts.XAxis, { dataKey: "name" }),
28906
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_recharts.YAxis, {}),
28907
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_recharts.Tooltip, {}),
28908
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
28831
28909
  import_recharts.Area,
28832
28910
  {
28833
28911
  type: "monotone",
@@ -28843,7 +28921,7 @@ var BarChart_default = ChartComponent;
28843
28921
 
28844
28922
  // src/components/Chart/PieChart.tsx
28845
28923
  var import_recharts2 = require("recharts");
28846
- var import_jsx_runtime58 = require("react/jsx-runtime");
28924
+ var import_jsx_runtime60 = require("react/jsx-runtime");
28847
28925
  var DonutChart = ({ className, style, ...props }) => {
28848
28926
  const data = Array.isArray(props?.data) ? props.data : [];
28849
28927
  const total = data.reduce((sum, d) => sum + d.value, 0);
@@ -28854,7 +28932,7 @@ var DonutChart = ({ className, style, ...props }) => {
28854
28932
  const renderLabel = ({ value, x, y }) => {
28855
28933
  if (value == null) return null;
28856
28934
  const percentage = (Number(value) / total * 100).toFixed(0);
28857
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
28935
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
28858
28936
  "text",
28859
28937
  {
28860
28938
  x,
@@ -28876,33 +28954,33 @@ var DonutChart = ({ className, style, ...props }) => {
28876
28954
  const wrapperClass = canvasMode ? forceDesktop ? "flex-row" : "flex-col" : "flex-col md:flex-row";
28877
28955
  const renderLegends = () => {
28878
28956
  if (!showLegends) return null;
28879
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx_runtime58.Fragment, { children: data.map((d) => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
28957
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_jsx_runtime60.Fragment, { children: data.map((d) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
28880
28958
  "div",
28881
28959
  {
28882
28960
  className: "flex items-center space-x-2 rounded-md border border-gray-200 px-3 py-2 w-[48%] md:w-auto",
28883
28961
  children: [
28884
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
28962
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
28885
28963
  "span",
28886
28964
  {
28887
28965
  className: "inline-block w-[16px] h-[16px] rounded",
28888
28966
  style: { backgroundColor: d.color }
28889
28967
  }
28890
28968
  ),
28891
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-[#000000] text-[12px] md:text-[13px] font-[500]", children: d.name })
28969
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "text-[#000000] text-[12px] md:text-[13px] font-[500]", children: d.name })
28892
28970
  ]
28893
28971
  },
28894
28972
  d.name
28895
28973
  )) });
28896
28974
  };
28897
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
28975
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
28898
28976
  "div",
28899
28977
  {
28900
28978
  className: `relative flex items-center ${wrapperClass} ${className}`,
28901
28979
  style,
28902
28980
  children: [
28903
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "relative w-full md:w-[70%] h-[300px] md:h-[400px] flex items-center justify-center", children: [
28904
- data.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_recharts2.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_recharts2.PieChart, { children: [
28905
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
28981
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "relative w-full md:w-[70%] h-[300px] md:h-[400px] flex items-center justify-center", children: [
28982
+ data.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_recharts2.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_recharts2.PieChart, { children: [
28983
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
28906
28984
  import_recharts2.Pie,
28907
28985
  {
28908
28986
  data,
@@ -28914,8 +28992,8 @@ var DonutChart = ({ className, style, ...props }) => {
28914
28992
  labelLine: false,
28915
28993
  isAnimationActive: false,
28916
28994
  children: [
28917
- data.map((entry, index) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_recharts2.Cell, { fill: entry.color }, `cell-${index}`)),
28918
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
28995
+ data.map((entry, index) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_recharts2.Cell, { fill: entry.color }, `cell-${index}`)),
28996
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
28919
28997
  import_recharts2.LabelList,
28920
28998
  {
28921
28999
  dataKey: "value",
@@ -28926,14 +29004,14 @@ var DonutChart = ({ className, style, ...props }) => {
28926
29004
  ]
28927
29005
  }
28928
29006
  ),
28929
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_recharts2.Tooltip, { formatter: (value, name) => [`${value}k`, name] })
29007
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_recharts2.Tooltip, { formatter: (value, name) => [`${value}k`, name] })
28930
29008
  ] }) }),
28931
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-2xl md:text-4xl font-bold text-[#000]", children: [
29009
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-2xl md:text-4xl font-bold text-[#000]", children: [
28932
29010
  total,
28933
29011
  "k"
28934
29012
  ] })
28935
29013
  ] }),
28936
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: `flex ${forceDesktop ? "flex-col ml-auto space-y-3" : "flex-wrap justify-center gap-2 mt-4"}
29014
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: `flex ${forceDesktop ? "flex-col ml-auto space-y-3" : "flex-wrap justify-center gap-2 mt-4"}
28937
29015
  w-full md:w-auto`, children: renderLegends() })
28938
29016
  ]
28939
29017
  }
@@ -28942,10 +29020,10 @@ var DonutChart = ({ className, style, ...props }) => {
28942
29020
  var PieChart_default = DonutChart;
28943
29021
 
28944
29022
  // src/components/Blocks/EmailComposer.tsx
28945
- var import_jsx_runtime59 = require("react/jsx-runtime");
29023
+ var import_jsx_runtime61 = require("react/jsx-runtime");
28946
29024
  function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc, setShowBcc, cc, setCc, bcc, setBcc, subject, setSubject, body, setBody }) {
28947
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "border rounded-md shadow bg-[#fff] p-4 mx-auto z-[50] relative", children: [
28948
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mb-3", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
29025
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "border rounded-md shadow bg-[#fff] p-4 mx-auto z-[50] relative", children: [
29026
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "mb-3", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
28949
29027
  "input",
28950
29028
  {
28951
29029
  type: "email",
@@ -28954,8 +29032,8 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
28954
29032
  required: true
28955
29033
  }
28956
29034
  ) }),
28957
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mb-3", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center gap-2", children: [
28958
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
29035
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "mb-3", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex items-center gap-2", children: [
29036
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
28959
29037
  "input",
28960
29038
  {
28961
29039
  type: "email",
@@ -28966,7 +29044,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
28966
29044
  required: true
28967
29045
  }
28968
29046
  ),
28969
- !showCc && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
29047
+ !showCc && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
28970
29048
  "button",
28971
29049
  {
28972
29050
  onClick: () => setShowCc?.(true),
@@ -28974,7 +29052,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
28974
29052
  children: "Cc"
28975
29053
  }
28976
29054
  ),
28977
- !showBcc && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
29055
+ !showBcc && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
28978
29056
  "button",
28979
29057
  {
28980
29058
  onClick: () => setShowBcc?.(true),
@@ -28983,7 +29061,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
28983
29061
  }
28984
29062
  )
28985
29063
  ] }) }),
28986
- showCc && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mb-3", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
29064
+ showCc && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "mb-3", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
28987
29065
  "input",
28988
29066
  {
28989
29067
  type: "text",
@@ -28993,7 +29071,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
28993
29071
  className: "w-full flex-1 border-2 rounded-md h-[40px] px-3 focus:outline-none border-[#E9E9E9] text-[#383838]"
28994
29072
  }
28995
29073
  ) }),
28996
- showBcc && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mb-3", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
29074
+ showBcc && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "mb-3", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
28997
29075
  "input",
28998
29076
  {
28999
29077
  type: "text",
@@ -29003,7 +29081,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
29003
29081
  className: "w-full flex-1 border-2 rounded-md h-[40px] px-3 focus:outline-none border-[#E9E9E9] text-[#383838]"
29004
29082
  }
29005
29083
  ) }),
29006
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mb-3", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
29084
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "mb-3", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
29007
29085
  "input",
29008
29086
  {
29009
29087
  type: "text",
@@ -29013,11 +29091,11 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
29013
29091
  className: "w-full flex-1 border-2 rounded-md h-[40px] px-3 focus:outline-none border-[#E9E9E9] text-[#383838]"
29014
29092
  }
29015
29093
  ) }),
29016
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(MyEditor, { value: body, onChange: setBody }) }),
29017
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex justify-end gap-2", children: [
29018
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("button", { className: "px-4 py-2 rounded-md text-gray-600 hover:bg-gray-100", children: "Discard" }),
29019
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("button", { className: "px-4 py-2 rounded-md border text-[#12715B] border-[#12715B]", children: "Reset" }),
29020
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("button", { className: "px-4 py-2 rounded-md bg-[#12715B] text-white", children: "Send" })
29094
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(MyEditor, { value: body, onChange: setBody }) }),
29095
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex justify-end gap-2", children: [
29096
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("button", { className: "px-4 py-2 rounded-md text-gray-600 hover:bg-gray-100", children: "Discard" }),
29097
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("button", { className: "px-4 py-2 rounded-md border text-[#12715B] border-[#12715B]", children: "Reset" }),
29098
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("button", { className: "px-4 py-2 rounded-md bg-[#12715B] text-white", children: "Send" })
29021
29099
  ] })
29022
29100
  ] }) });
29023
29101
  }
@@ -29094,6 +29172,8 @@ function showSonnerToast({
29094
29172
  Spacer,
29095
29173
  Stages,
29096
29174
  SwitchToggle,
29175
+ TabGroup,
29176
+ TabList,
29097
29177
  Table,
29098
29178
  Tabs,
29099
29179
  Text,