@algorithm-shift/design-system 1.2.58 → 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,33 +27707,38 @@ 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",
27645
27715
  name: props.name,
27646
27716
  value: props.value || "",
27647
- className: cn(className, props.errorMessage ? "border-red-500" : ""),
27717
+ className: cn(
27718
+ "rounded-md",
27719
+ className,
27720
+ props.errorMessage ? "border-red-500" : ""
27721
+ ),
27648
27722
  style: {
27649
27723
  ...style,
27650
27724
  borderColor: props.errorMessage ? "#f87171" : style?.borderColor
27651
27725
  },
27652
27726
  onChange: (phone) => handleChange(phone),
27653
27727
  inputProps: {
27654
- id: "phone-field"
27728
+ id: "phone-field",
27729
+ style: { width: "100%", border: "none", outline: "none" }
27655
27730
  },
27656
27731
  placeholder,
27657
27732
  disabled: isDisabled || !isEditable
27658
27733
  }
27659
27734
  ),
27660
- 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 })
27661
27736
  ] });
27662
27737
  };
27663
27738
  var PhoneInput_default = PhoneInput;
27664
27739
 
27665
27740
  // src/components/Inputs/SearchInput/SearchInput.tsx
27666
- var import_jsx_runtime37 = require("react/jsx-runtime");
27741
+ var import_jsx_runtime39 = require("react/jsx-runtime");
27667
27742
  var SearchInput = ({ className, style, ...props }) => {
27668
27743
  const placeholder = props.placeholder ?? "Placeholder text";
27669
27744
  const isEditable = props.isEditable ?? true;
@@ -27673,10 +27748,10 @@ var SearchInput = ({ className, style, ...props }) => {
27673
27748
  const handleChange = (e) => {
27674
27749
  props.onChange?.(e);
27675
27750
  };
27676
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
27677
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex justify-start items-center relative", children: [
27678
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Search, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
27679
- /* @__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)(
27680
27755
  Input,
27681
27756
  {
27682
27757
  type: "text",
@@ -27696,17 +27771,17 @@ var SearchInput = ({ className, style, ...props }) => {
27696
27771
  }
27697
27772
  )
27698
27773
  ] }),
27699
- 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 })
27700
27775
  ] });
27701
27776
  };
27702
27777
  var SearchInput_default = SearchInput;
27703
27778
 
27704
27779
  // src/components/Inputs/FileInput/FileInput.tsx
27705
- var import_jsx_runtime38 = require("react/jsx-runtime");
27780
+ var import_jsx_runtime40 = require("react/jsx-runtime");
27706
27781
  var FileInput2 = ({ className, style, ...props }) => {
27707
27782
  const placeholder = props.placeholder ?? "Placeholder text";
27708
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "d-flex items-center relative align-middle", children: [
27709
- /* @__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)(
27710
27785
  Input,
27711
27786
  {
27712
27787
  type: "file",
@@ -27725,13 +27800,13 @@ var FileInput2 = ({ className, style, ...props }) => {
27725
27800
  }
27726
27801
  }
27727
27802
  ),
27728
- 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 })
27729
27804
  ] });
27730
27805
  };
27731
27806
  var FileInput_default = FileInput2;
27732
27807
 
27733
27808
  // src/components/Inputs/DatePicker/DatePicker.tsx
27734
- var import_jsx_runtime39 = require("react/jsx-runtime");
27809
+ var import_jsx_runtime41 = require("react/jsx-runtime");
27735
27810
  function DatePicker({ className, style, ...props }) {
27736
27811
  const placeholder = props.placeholder ?? "Placeholder text";
27737
27812
  const minimumDate = props.minimumDate ?? "none";
@@ -27759,10 +27834,10 @@ function DatePicker({ className, style, ...props }) {
27759
27834
  const handleChange = (e) => {
27760
27835
  props.onChange?.(e);
27761
27836
  };
27762
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
27763
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex justify-start items-center relative", children: [
27764
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Calendar, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
27765
- /* @__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)(
27766
27841
  Input,
27767
27842
  {
27768
27843
  type: "date",
@@ -27788,7 +27863,7 @@ function DatePicker({ className, style, ...props }) {
27788
27863
  }
27789
27864
  )
27790
27865
  ] }),
27791
- 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 })
27792
27867
  ] });
27793
27868
  }
27794
27869
 
@@ -27799,7 +27874,7 @@ var import_date_fns = require("date-fns");
27799
27874
  // src/components/ui/calendar.tsx
27800
27875
  var React3 = __toESM(require("react"));
27801
27876
  var import_react_day_picker = require("react-day-picker");
27802
- var import_jsx_runtime40 = require("react/jsx-runtime");
27877
+ var import_jsx_runtime42 = require("react/jsx-runtime");
27803
27878
  function Calendar2({
27804
27879
  className,
27805
27880
  classNames,
@@ -27811,7 +27886,7 @@ function Calendar2({
27811
27886
  ...props
27812
27887
  }) {
27813
27888
  const defaultClassNames = (0, import_react_day_picker.getDefaultClassNames)();
27814
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
27889
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
27815
27890
  import_react_day_picker.DayPicker,
27816
27891
  {
27817
27892
  showOutsideDays,
@@ -27910,7 +27985,7 @@ function Calendar2({
27910
27985
  },
27911
27986
  components: {
27912
27987
  Root: ({ className: className2, rootRef, ...props2 }) => {
27913
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
27988
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
27914
27989
  "div",
27915
27990
  {
27916
27991
  "data-slot": "calendar",
@@ -27922,10 +27997,10 @@ function Calendar2({
27922
27997
  },
27923
27998
  Chevron: ({ className: className2, orientation, ...props2 }) => {
27924
27999
  if (orientation === "left") {
27925
- 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 });
27926
28001
  }
27927
28002
  if (orientation === "right") {
27928
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
28003
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
27929
28004
  ChevronRight,
27930
28005
  {
27931
28006
  className: cn("size-4", className2),
@@ -27933,11 +28008,11 @@ function Calendar2({
27933
28008
  }
27934
28009
  );
27935
28010
  }
27936
- 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 });
27937
28012
  },
27938
28013
  DayButton: CalendarDayButton,
27939
28014
  WeekNumber: ({ children, ...props2 }) => {
27940
- 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 }) });
27941
28016
  },
27942
28017
  ...components
27943
28018
  },
@@ -27956,7 +28031,7 @@ function CalendarDayButton({
27956
28031
  React3.useEffect(() => {
27957
28032
  if (modifiers.focused) ref.current?.focus();
27958
28033
  }, [modifiers.focused]);
27959
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
28034
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
27960
28035
  Button,
27961
28036
  {
27962
28037
  ref,
@@ -27979,16 +28054,16 @@ function CalendarDayButton({
27979
28054
 
27980
28055
  // src/components/ui/popover.tsx
27981
28056
  var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
27982
- var import_jsx_runtime41 = require("react/jsx-runtime");
28057
+ var import_jsx_runtime43 = require("react/jsx-runtime");
27983
28058
  function Popover({
27984
28059
  ...props
27985
28060
  }) {
27986
- 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 });
27987
28062
  }
27988
28063
  function PopoverTrigger({
27989
28064
  ...props
27990
28065
  }) {
27991
- 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 });
27992
28067
  }
27993
28068
  function PopoverContent({
27994
28069
  className,
@@ -27996,7 +28071,7 @@ function PopoverContent({
27996
28071
  sideOffset = 4,
27997
28072
  ...props
27998
28073
  }) {
27999
- 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)(
28000
28075
  PopoverPrimitive.Content,
28001
28076
  {
28002
28077
  "data-slot": "popover-content",
@@ -28012,7 +28087,7 @@ function PopoverContent({
28012
28087
  }
28013
28088
 
28014
28089
  // src/components/Inputs/DateRange/DateRange.tsx
28015
- var import_jsx_runtime42 = require("react/jsx-runtime");
28090
+ var import_jsx_runtime44 = require("react/jsx-runtime");
28016
28091
  var DateRange = ({ className, style, ...props }) => {
28017
28092
  const isDateRange = (val) => !!val && val.from instanceof Date;
28018
28093
  const [date, setDate] = React4.useState(
@@ -28027,9 +28102,9 @@ var DateRange = ({ className, style, ...props }) => {
28027
28102
  props.onChange?.(value);
28028
28103
  }
28029
28104
  };
28030
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
28031
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Popover, { children: [
28032
- /* @__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)(
28033
28108
  Button,
28034
28109
  {
28035
28110
  id: "date",
@@ -28038,15 +28113,15 @@ var DateRange = ({ className, style, ...props }) => {
28038
28113
  "w-full justify-start text-left font-normal text-[11px] border-[#BDBDBD]",
28039
28114
  !date && "text-muted-foreground"
28040
28115
  ),
28041
- 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: [
28042
28117
  (0, import_date_fns.format)(date.from, "LLL dd, y"),
28043
28118
  " -",
28044
28119
  " ",
28045
28120
  (0, import_date_fns.format)(date.to, "LLL dd, y")
28046
- ] }) : (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" })
28047
28122
  }
28048
28123
  ) }),
28049
- /* @__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)(
28050
28125
  Calendar2,
28051
28126
  {
28052
28127
  mode: "range",
@@ -28057,13 +28132,13 @@ var DateRange = ({ className, style, ...props }) => {
28057
28132
  }
28058
28133
  ) })
28059
28134
  ] }) }),
28060
- 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 })
28061
28136
  ] });
28062
28137
  };
28063
28138
  var DateRange_default = DateRange;
28064
28139
 
28065
28140
  // src/components/Inputs/TextInputGroup/TextInputGroup.tsx
28066
- var import_jsx_runtime43 = require("react/jsx-runtime");
28141
+ var import_jsx_runtime45 = require("react/jsx-runtime");
28067
28142
  var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
28068
28143
  const placeholder = props.placeholder ?? "Placeholder text";
28069
28144
  const isEditable = props.isEditable ?? true;
@@ -28073,8 +28148,8 @@ var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
28073
28148
  const handleChange = (e) => {
28074
28149
  props.onChange?.(e);
28075
28150
  };
28076
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
28077
- /* @__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)(
28078
28153
  "div",
28079
28154
  {
28080
28155
  className: cn(
@@ -28084,8 +28159,8 @@ var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
28084
28159
  props.errorMessage ? "border-red-500" : ""
28085
28160
  ),
28086
28161
  children: [
28087
- 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 }),
28088
- /* @__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)(
28089
28164
  Input,
28090
28165
  {
28091
28166
  id: props.name || "prepend-input",
@@ -28107,30 +28182,30 @@ var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
28107
28182
  readOnly: isReadonly
28108
28183
  }
28109
28184
  ),
28110
- 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 })
28111
28186
  ]
28112
28187
  }
28113
28188
  ),
28114
- 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 })
28115
28190
  ] });
28116
28191
  };
28117
28192
  var TextInputGroup_default = TextInputGroup;
28118
28193
 
28119
28194
  // src/components/DataDisplay/Table/Table.tsx
28120
- var import_react7 = require("react");
28195
+ var import_react9 = require("react");
28121
28196
 
28122
28197
  // src/components/ui/data-table.tsx
28123
28198
  var import_react_table = require("@tanstack/react-table");
28124
28199
 
28125
28200
  // src/components/ui/table.tsx
28126
- var import_jsx_runtime44 = require("react/jsx-runtime");
28201
+ var import_jsx_runtime46 = require("react/jsx-runtime");
28127
28202
  function Table3({ className, ...props }) {
28128
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
28203
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
28129
28204
  "div",
28130
28205
  {
28131
28206
  "data-slot": "table-container",
28132
28207
  className: "relative w-full overflow-x-auto rounded-md border border-gray-200 bg-white",
28133
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
28208
+ children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
28134
28209
  "table",
28135
28210
  {
28136
28211
  "data-slot": "table",
@@ -28142,7 +28217,7 @@ function Table3({ className, ...props }) {
28142
28217
  );
28143
28218
  }
28144
28219
  function TableHeader({ className, ...props }) {
28145
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
28220
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
28146
28221
  "thead",
28147
28222
  {
28148
28223
  "data-slot": "table-header",
@@ -28155,7 +28230,7 @@ function TableHeader({ className, ...props }) {
28155
28230
  );
28156
28231
  }
28157
28232
  function TableBody({ className, ...props }) {
28158
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
28233
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
28159
28234
  "tbody",
28160
28235
  {
28161
28236
  "data-slot": "table-body",
@@ -28168,7 +28243,7 @@ function TableBody({ className, ...props }) {
28168
28243
  );
28169
28244
  }
28170
28245
  function TableRow({ className, ...props }) {
28171
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
28246
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
28172
28247
  "tr",
28173
28248
  {
28174
28249
  "data-slot": "table-row",
@@ -28181,7 +28256,7 @@ function TableRow({ className, ...props }) {
28181
28256
  );
28182
28257
  }
28183
28258
  function TableHead({ className, ...props }) {
28184
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
28259
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
28185
28260
  "th",
28186
28261
  {
28187
28262
  "data-slot": "table-head",
@@ -28194,7 +28269,7 @@ function TableHead({ className, ...props }) {
28194
28269
  );
28195
28270
  }
28196
28271
  function TableCell({ className, ...props }) {
28197
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
28272
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
28198
28273
  "td",
28199
28274
  {
28200
28275
  "data-slot": "table-cell",
@@ -28208,7 +28283,7 @@ function TableCell({ className, ...props }) {
28208
28283
  }
28209
28284
 
28210
28285
  // src/components/ui/data-table.tsx
28211
- var import_jsx_runtime45 = require("react/jsx-runtime");
28286
+ var import_jsx_runtime47 = require("react/jsx-runtime");
28212
28287
  function DataTable({
28213
28288
  columns,
28214
28289
  rowActions,
@@ -28233,14 +28308,14 @@ function DataTable({
28233
28308
  onCellClick(rowData, columnId);
28234
28309
  }
28235
28310
  };
28236
- 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: [
28237
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableHeader, { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableRow, { children: headerGroup.headers.map((header) => {
28238
- 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)(
28239
28314
  header.column.columnDef.header,
28240
28315
  header.getContext()
28241
28316
  ) }, header.id);
28242
28317
  }) }, headerGroup.id)) }),
28243
- /* @__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)(
28244
28319
  TableRow,
28245
28320
  {
28246
28321
  "data-state": row.getIsSelected() && "selected",
@@ -28250,7 +28325,7 @@ function DataTable({
28250
28325
  const isCellClickable = cellClickEnabled(row.original, cell.column.id);
28251
28326
  const dynamicClass = cell.column.columnDef.meta?.cellClass || "";
28252
28327
  const dynamicStyle = cell.column.columnDef.meta?.cellStyle || {};
28253
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
28328
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
28254
28329
  TableCell,
28255
28330
  {
28256
28331
  className: `${dynamicClass} ${isCellClickable ? "underline cursor-pointer" : ""}`,
@@ -28265,18 +28340,18 @@ function DataTable({
28265
28340
  cell.id
28266
28341
  );
28267
28342
  }),
28268
- 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)) })
28269
28344
  ]
28270
28345
  },
28271
28346
  row.id
28272
- )) : /* @__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." }) }) }) })
28273
28348
  ] }) });
28274
28349
  }
28275
28350
 
28276
28351
  // src/components/ui/pagination.tsx
28277
- var import_jsx_runtime46 = require("react/jsx-runtime");
28352
+ var import_jsx_runtime48 = require("react/jsx-runtime");
28278
28353
  function Pagination({ className, ...props }) {
28279
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
28354
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
28280
28355
  "nav",
28281
28356
  {
28282
28357
  role: "navigation",
@@ -28291,7 +28366,7 @@ function PaginationContent({
28291
28366
  className,
28292
28367
  ...props
28293
28368
  }) {
28294
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
28369
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
28295
28370
  "ul",
28296
28371
  {
28297
28372
  "data-slot": "pagination-content",
@@ -28301,7 +28376,7 @@ function PaginationContent({
28301
28376
  );
28302
28377
  }
28303
28378
  function PaginationItem({ ...props }) {
28304
- 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 });
28305
28380
  }
28306
28381
  function PaginationLink({
28307
28382
  className,
@@ -28309,7 +28384,7 @@ function PaginationLink({
28309
28384
  size = "icon",
28310
28385
  ...props
28311
28386
  }) {
28312
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
28387
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
28313
28388
  "a",
28314
28389
  {
28315
28390
  "aria-current": isActive ? "page" : void 0,
@@ -28330,7 +28405,7 @@ function PaginationPrevious({
28330
28405
  className,
28331
28406
  ...props
28332
28407
  }) {
28333
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
28408
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
28334
28409
  PaginationLink,
28335
28410
  {
28336
28411
  "aria-label": "Go to previous page",
@@ -28338,8 +28413,8 @@ function PaginationPrevious({
28338
28413
  className: cn("gap-1 px-2.5 sm:pl-2.5", className),
28339
28414
  ...props,
28340
28415
  children: [
28341
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ChevronLeft, {}),
28342
- /* @__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" })
28343
28418
  ]
28344
28419
  }
28345
28420
  );
@@ -28348,7 +28423,7 @@ function PaginationNext({
28348
28423
  className,
28349
28424
  ...props
28350
28425
  }) {
28351
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
28426
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
28352
28427
  PaginationLink,
28353
28428
  {
28354
28429
  "aria-label": "Go to next page",
@@ -28356,8 +28431,8 @@ function PaginationNext({
28356
28431
  className: cn("gap-1 px-2.5 sm:pr-2.5", className),
28357
28432
  ...props,
28358
28433
  children: [
28359
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "hidden sm:block", children: "Next" }),
28360
- /* @__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, {})
28361
28436
  ]
28362
28437
  }
28363
28438
  );
@@ -28366,7 +28441,7 @@ function PaginationEllipsis({
28366
28441
  className,
28367
28442
  ...props
28368
28443
  }) {
28369
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
28444
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
28370
28445
  "span",
28371
28446
  {
28372
28447
  "aria-hidden": true,
@@ -28374,15 +28449,15 @@ function PaginationEllipsis({
28374
28449
  className: cn("flex size-9 items-center justify-center", className),
28375
28450
  ...props,
28376
28451
  children: [
28377
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Ellipsis, { className: "size-4" }),
28378
- /* @__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" })
28379
28454
  ]
28380
28455
  }
28381
28456
  );
28382
28457
  }
28383
28458
 
28384
28459
  // src/components/DataDisplay/Pagination/Pagination.tsx
28385
- var import_jsx_runtime47 = require("react/jsx-runtime");
28460
+ var import_jsx_runtime49 = require("react/jsx-runtime");
28386
28461
  var CustomPagination = ({
28387
28462
  totalPages,
28388
28463
  currentPage,
@@ -28428,10 +28503,10 @@ var CustomPagination = ({
28428
28503
  }
28429
28504
  };
28430
28505
  const pageNumbers = getPageNumbers();
28431
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex flex-row gap-1 w-full items-center justify-between", children: [
28432
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center gap-2", children: [
28433
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "text-sm text-muted-foreground whitespace-nowrap", children: "Items per page:" }),
28434
- /* @__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)(
28435
28510
  Select,
28436
28511
  {
28437
28512
  defaultValue: String(perPage),
@@ -28439,26 +28514,26 @@ var CustomPagination = ({
28439
28514
  onPageChange({ page: 1, itemsPerPage: Number(value) });
28440
28515
  },
28441
28516
  children: [
28442
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectTrigger, { className: "w-[100px]", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectValue, { placeholder: "Select" }) }),
28443
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(SelectContent, { children: [
28444
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectItem, { value: "5", children: "5" }),
28445
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectItem, { value: "10", children: "10" }),
28446
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectItem, { value: "20", children: "20" }),
28447
- /* @__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" })
28448
28523
  ] })
28449
28524
  ]
28450
28525
  }
28451
28526
  )
28452
28527
  ] }),
28453
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Pagination, { className: "justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(PaginationContent, { children: [
28454
- /* @__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)(
28455
28530
  PaginationPrevious,
28456
28531
  {
28457
28532
  onClick: () => handlePageChange(currentPage - 1),
28458
28533
  className: currentPage === 1 ? "pointer-events-none opacity-50" : "cursor-pointer"
28459
28534
  }
28460
28535
  ) }),
28461
- 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)(
28462
28537
  PaginationLink,
28463
28538
  {
28464
28539
  onClick: () => handlePageChange(pageNumber),
@@ -28467,7 +28542,7 @@ var CustomPagination = ({
28467
28542
  children: pageNumber
28468
28543
  }
28469
28544
  ) }, index)),
28470
- /* @__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)(
28471
28546
  PaginationNext,
28472
28547
  {
28473
28548
  onClick: () => handlePageChange(currentPage + 1),
@@ -28480,7 +28555,7 @@ var CustomPagination = ({
28480
28555
  var Pagination_default = CustomPagination;
28481
28556
 
28482
28557
  // src/components/DataDisplay/Table/Table.tsx
28483
- var import_jsx_runtime48 = require("react/jsx-runtime");
28558
+ var import_jsx_runtime50 = require("react/jsx-runtime");
28484
28559
  var Table4 = ({
28485
28560
  columns,
28486
28561
  data,
@@ -28500,9 +28575,9 @@ var Table4 = ({
28500
28575
  const rawData = Array.isArray(data) ? data : [];
28501
28576
  const rawRowActions = Array.isArray(rowActions) ? rowActions : [];
28502
28577
  const isControlled = typeof page === "number";
28503
- const [internalPage, setInternalPage] = (0, import_react7.useState)(1);
28578
+ const [internalPage, setInternalPage] = (0, import_react9.useState)(1);
28504
28579
  const currentPage = isControlled ? page : internalPage;
28505
- (0, import_react7.useEffect)(() => {
28580
+ (0, import_react9.useEffect)(() => {
28506
28581
  if (isControlled) return;
28507
28582
  if (currentPage > 1 && !pagination) setInternalPage(1);
28508
28583
  }, [pagination, isControlled]);
@@ -28526,8 +28601,8 @@ var Table4 = ({
28526
28601
  if (!selectedColumn) return false;
28527
28602
  return selectedColumn.isClickable ?? false;
28528
28603
  };
28529
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: `${className || ""} space-y-3`, style, children: [
28530
- /* @__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)(
28531
28606
  DataTable,
28532
28607
  {
28533
28608
  ...props,
@@ -28538,7 +28613,7 @@ var Table4 = ({
28538
28613
  cellClickEnabled: isCellClickEnabled
28539
28614
  }
28540
28615
  ),
28541
- enablePagination && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
28616
+ enablePagination && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
28542
28617
  Pagination_default,
28543
28618
  {
28544
28619
  perPage: itemsPerPage,
@@ -28553,7 +28628,7 @@ var Table_default = Table4;
28553
28628
 
28554
28629
  // src/components/Navigation/Tabs/Tabs.tsx
28555
28630
  var import_link5 = __toESM(require("next/link"));
28556
- var import_jsx_runtime49 = require("react/jsx-runtime");
28631
+ var import_jsx_runtime51 = require("react/jsx-runtime");
28557
28632
  var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
28558
28633
  const rawTabs = Array.isArray(tabs) ? tabs : [];
28559
28634
  const baseClasses = "text-[12px] text-foreground p-2 text-center rounded-md transition-colors";
@@ -28566,23 +28641,23 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
28566
28641
  const renderDesktopTab = (tab, index) => {
28567
28642
  const finalClasses = [baseClasses, isActive(tab.url) ? activeClasses : hoverClasses, tab.className || ""].join(" ");
28568
28643
  if (Array.isArray(tab.children) && tab.children.length > 0 && tab.isDropDown) {
28569
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(DropdownMenu, { children: [
28570
- /* @__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: [
28571
28646
  tab.header,
28572
- /* @__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" })
28573
28648
  ] }),
28574
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
28649
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
28575
28650
  DropdownMenuContent,
28576
28651
  {
28577
28652
  align: "start",
28578
28653
  sideOffset: 6,
28579
28654
  className: "z-50 min-w-[160px] rounded-md border border-gray-200 bg-white p-1 shadow-lg",
28580
- children: tab.children.map((item) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
28655
+ children: tab.children.map((item) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
28581
28656
  DropdownMenuItem,
28582
28657
  {
28583
28658
  asChild: true,
28584
28659
  className: "cursor-pointer rounded-sm px-3 py-2 text-[12px] text-gray-800 hover:bg-gray-100 focus:bg-gray-100",
28585
- 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 })
28586
28661
  },
28587
28662
  item.id
28588
28663
  ))
@@ -28590,14 +28665,14 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
28590
28665
  )
28591
28666
  ] }, index);
28592
28667
  }
28593
- 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);
28594
28669
  };
28595
- const renderMobileMenu = () => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(DropdownMenu, { children: [
28596
- /* @__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: [
28597
- /* @__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" }),
28598
28673
  "Menu"
28599
28674
  ] }),
28600
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
28675
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
28601
28676
  DropdownMenuContent,
28602
28677
  {
28603
28678
  align: "start",
@@ -28606,25 +28681,25 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
28606
28681
  children: rawTabs.map((tab, i) => {
28607
28682
  const hasChildren = Array.isArray(tab.children) && tab.children.length > 0 && tab.isDropDown;
28608
28683
  if (hasChildren) {
28609
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(DropdownMenuSub, { children: [
28610
- /* @__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 }),
28611
- /* @__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)(
28612
28687
  DropdownMenuItem,
28613
28688
  {
28614
28689
  asChild: true,
28615
28690
  className: "cursor-pointer rounded-sm px-3 py-2 text-[12px] text-gray-800 hover:bg-gray-100",
28616
- 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 })
28617
28692
  },
28618
28693
  item.id
28619
28694
  )) })
28620
28695
  ] }, i);
28621
28696
  }
28622
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
28697
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
28623
28698
  DropdownMenuItem,
28624
28699
  {
28625
28700
  asChild: true,
28626
28701
  className: "cursor-pointer rounded-sm px-3 py-2 text-[13px] text-gray-800 hover:bg-gray-100",
28627
- 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 })
28628
28703
  },
28629
28704
  i
28630
28705
  );
@@ -28634,56 +28709,56 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
28634
28709
  ] });
28635
28710
  const forceMobile = canvasMode === "mobile" || canvasMode === "tablet";
28636
28711
  const forceDesktop = canvasMode === "desktop";
28637
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className, style, children: [
28638
- 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) }) }),
28639
- forceMobile && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { children: renderMobileMenu() }),
28640
- /* @__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() })
28641
28716
  ] });
28642
28717
  };
28643
28718
  var Tabs_default = Tabs;
28644
28719
 
28645
28720
  // src/components/Navigation/Stages/Stages.tsx
28646
- var import_react8 = __toESM(require("react"));
28647
- var import_jsx_runtime50 = require("react/jsx-runtime");
28721
+ var import_react10 = __toESM(require("react"));
28722
+ var import_jsx_runtime52 = require("react/jsx-runtime");
28648
28723
  var StagesComponent = ({ stages, isShowBtn, buttonText, className, style }) => {
28649
- 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: [
28650
- /* @__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" }) }) }) }),
28651
- /* @__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: [
28652
- /* @__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)(
28653
28728
  "button",
28654
28729
  {
28655
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"}`,
28656
28731
  children: stage.header
28657
28732
  }
28658
28733
  ),
28659
- 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" })
28660
28735
  ] }, stage.id)) }),
28661
- 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 }) })
28662
28737
  ] }) });
28663
28738
  };
28664
28739
  var Stages_default = StagesComponent;
28665
28740
 
28666
28741
  // src/components/Navigation/Spacer/Spacer.tsx
28667
- var import_jsx_runtime51 = require("react/jsx-runtime");
28742
+ var import_jsx_runtime53 = require("react/jsx-runtime");
28668
28743
  var Spacer = ({ className, style }) => {
28669
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: `${className}`, style });
28744
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: `${className}`, style });
28670
28745
  };
28671
28746
  var Spacer_default = Spacer;
28672
28747
 
28673
28748
  // src/components/Navigation/Profile/Profile.tsx
28674
- var import_jsx_runtime52 = require("react/jsx-runtime");
28749
+ var import_jsx_runtime54 = require("react/jsx-runtime");
28675
28750
 
28676
28751
  // src/components/Navigation/Notification/Notification.tsx
28677
- var import_jsx_runtime53 = require("react/jsx-runtime");
28752
+ var import_jsx_runtime55 = require("react/jsx-runtime");
28678
28753
 
28679
28754
  // src/components/Navigation/Logo/Logo.tsx
28680
- var import_jsx_runtime54 = require("react/jsx-runtime");
28755
+ var import_jsx_runtime56 = require("react/jsx-runtime");
28681
28756
 
28682
28757
  // src/components/ui/avatar.tsx
28683
28758
  var React6 = __toESM(require("react"));
28684
28759
  var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"));
28685
- var import_jsx_runtime55 = require("react/jsx-runtime");
28686
- 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)(
28687
28762
  AvatarPrimitive.Root,
28688
28763
  {
28689
28764
  ref,
@@ -28695,7 +28770,7 @@ var Avatar = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
28695
28770
  }
28696
28771
  ));
28697
28772
  Avatar.displayName = AvatarPrimitive.Root.displayName;
28698
- 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)(
28699
28774
  AvatarPrimitive.Image,
28700
28775
  {
28701
28776
  ref,
@@ -28704,7 +28779,7 @@ var AvatarImage = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE
28704
28779
  }
28705
28780
  ));
28706
28781
  AvatarImage.displayName = AvatarPrimitive.Image.displayName;
28707
- 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)(
28708
28783
  AvatarPrimitive.Fallback,
28709
28784
  {
28710
28785
  ref,
@@ -28720,7 +28795,8 @@ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
28720
28795
  // src/components/Navigation/Navbar/Navbar.tsx
28721
28796
  var import_link6 = __toESM(require("next/link"));
28722
28797
  var import_image3 = __toESM(require("next/image"));
28723
- 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");
28724
28800
  function Navbar({
28725
28801
  style,
28726
28802
  badgeType,
@@ -28732,12 +28808,13 @@ function Navbar({
28732
28808
  altText = "Logo",
28733
28809
  canvasMode = "desktop",
28734
28810
  list = [],
28811
+ profileMenu = [],
28735
28812
  userName = "Guest User"
28736
28813
  }) {
28737
28814
  const isMobileView = canvasMode === "mobile" || canvasMode === "tablet";
28738
- 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-2", children: [
28739
- /* @__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" }) }),
28740
- !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)(
28741
28818
  import_link6.default,
28742
28819
  {
28743
28820
  href: item.url || "#",
@@ -28746,54 +28823,60 @@ function Navbar({
28746
28823
  },
28747
28824
  item.id
28748
28825
  )) }),
28749
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex items-center space-x-3", children: [
28750
- !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: [
28751
- /* @__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" }),
28752
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Input, { placeholder: "Search", className: "pl-9 text-gray-400" })
28753
- ] }) }) : /* @__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)(
28754
28831
  Button,
28755
28832
  {
28756
28833
  variant: "ghost",
28757
28834
  size: "icon",
28758
28835
  className: "border border-gray-400",
28759
- 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" })
28760
28837
  }
28761
28838
  ),
28762
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "relative bg-[#E9E9E9] rounded-md", children: [
28763
- /* @__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]" }) }),
28764
- 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" })
28765
28842
  ] }),
28766
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(DropdownMenu, { children: [
28767
- /* @__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: [
28768
- !isMobileView && showName && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("h4", { className: "text-[#000000] text-[13px] font-[500] mb-0", children: userName }),
28769
- !isMobileView ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
28770
- /* @__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)(
28771
28848
  AvatarImage,
28772
28849
  {
28773
28850
  src: "/images/appbuilder/toolset/profile.svg",
28774
28851
  alt: "Profile"
28775
28852
  }
28776
- ) : /* @__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) }) }),
28777
- /* @__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)(
28778
28855
  Button,
28779
28856
  {
28780
28857
  variant: "ghost",
28781
28858
  size: "icon",
28782
28859
  className: "text-gray-900 md:hidden",
28783
- 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" })
28784
28861
  }
28785
28862
  )
28786
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
28863
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
28787
28864
  Button,
28788
28865
  {
28789
28866
  variant: "ghost",
28790
28867
  size: "icon",
28791
28868
  className: "text-gray-900",
28792
- 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" })
28793
28870
  }
28794
28871
  )
28795
28872
  ] }) }),
28796
- /* @__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
+ ] })
28797
28880
  ] })
28798
28881
  ] })
28799
28882
  ] }) });
@@ -28801,28 +28884,28 @@ function Navbar({
28801
28884
 
28802
28885
  // src/components/Chart/BarChart.tsx
28803
28886
  var import_recharts = require("recharts");
28804
- var import_jsx_runtime57 = require("react/jsx-runtime");
28887
+ var import_jsx_runtime59 = require("react/jsx-runtime");
28805
28888
  var ChartComponent = ({ className, style, ...props }) => {
28806
28889
  const data = Array.isArray(props?.data) ? props.data : [];
28807
28890
  const chartType = props.chartType || "bar";
28808
28891
  const legendsPosition = props.legendsPosition === "middle" || props.legendsPosition === "bottom" ? props.legendsPosition : "top";
28809
- 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: [
28810
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.CartesianGrid, { strokeDasharray: "3 3" }),
28811
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.XAxis, { dataKey: "name" }),
28812
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.YAxis, {}),
28813
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.Tooltip, {}),
28814
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.Legend, { verticalAlign: legendsPosition, align: "center" }),
28815
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.Bar, { dataKey: "value", fill: "#00695C" })
28816
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_recharts.AreaChart, { data, children: [
28817
- /* @__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: [
28818
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("stop", { offset: "5%", stopColor: "#00695C", stopOpacity: 0.8 }),
28819
- /* @__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 })
28820
28903
  ] }) }),
28821
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.CartesianGrid, { strokeDasharray: "3 3" }),
28822
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.XAxis, { dataKey: "name" }),
28823
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.YAxis, {}),
28824
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.Tooltip, {}),
28825
- /* @__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)(
28826
28909
  import_recharts.Area,
28827
28910
  {
28828
28911
  type: "monotone",
@@ -28838,7 +28921,7 @@ var BarChart_default = ChartComponent;
28838
28921
 
28839
28922
  // src/components/Chart/PieChart.tsx
28840
28923
  var import_recharts2 = require("recharts");
28841
- var import_jsx_runtime58 = require("react/jsx-runtime");
28924
+ var import_jsx_runtime60 = require("react/jsx-runtime");
28842
28925
  var DonutChart = ({ className, style, ...props }) => {
28843
28926
  const data = Array.isArray(props?.data) ? props.data : [];
28844
28927
  const total = data.reduce((sum, d) => sum + d.value, 0);
@@ -28849,7 +28932,7 @@ var DonutChart = ({ className, style, ...props }) => {
28849
28932
  const renderLabel = ({ value, x, y }) => {
28850
28933
  if (value == null) return null;
28851
28934
  const percentage = (Number(value) / total * 100).toFixed(0);
28852
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
28935
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
28853
28936
  "text",
28854
28937
  {
28855
28938
  x,
@@ -28871,33 +28954,33 @@ var DonutChart = ({ className, style, ...props }) => {
28871
28954
  const wrapperClass = canvasMode ? forceDesktop ? "flex-row" : "flex-col" : "flex-col md:flex-row";
28872
28955
  const renderLegends = () => {
28873
28956
  if (!showLegends) return null;
28874
- 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)(
28875
28958
  "div",
28876
28959
  {
28877
28960
  className: "flex items-center space-x-2 rounded-md border border-gray-200 px-3 py-2 w-[48%] md:w-auto",
28878
28961
  children: [
28879
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
28962
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
28880
28963
  "span",
28881
28964
  {
28882
28965
  className: "inline-block w-[16px] h-[16px] rounded",
28883
28966
  style: { backgroundColor: d.color }
28884
28967
  }
28885
28968
  ),
28886
- /* @__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 })
28887
28970
  ]
28888
28971
  },
28889
28972
  d.name
28890
28973
  )) });
28891
28974
  };
28892
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
28975
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
28893
28976
  "div",
28894
28977
  {
28895
28978
  className: `relative flex items-center ${wrapperClass} ${className}`,
28896
28979
  style,
28897
28980
  children: [
28898
- /* @__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: [
28899
- 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: [
28900
- /* @__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)(
28901
28984
  import_recharts2.Pie,
28902
28985
  {
28903
28986
  data,
@@ -28909,8 +28992,8 @@ var DonutChart = ({ className, style, ...props }) => {
28909
28992
  labelLine: false,
28910
28993
  isAnimationActive: false,
28911
28994
  children: [
28912
- data.map((entry, index) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_recharts2.Cell, { fill: entry.color }, `cell-${index}`)),
28913
- /* @__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)(
28914
28997
  import_recharts2.LabelList,
28915
28998
  {
28916
28999
  dataKey: "value",
@@ -28921,14 +29004,14 @@ var DonutChart = ({ className, style, ...props }) => {
28921
29004
  ]
28922
29005
  }
28923
29006
  ),
28924
- /* @__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] })
28925
29008
  ] }) }),
28926
- /* @__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: [
28927
29010
  total,
28928
29011
  "k"
28929
29012
  ] })
28930
29013
  ] }),
28931
- /* @__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"}
28932
29015
  w-full md:w-auto`, children: renderLegends() })
28933
29016
  ]
28934
29017
  }
@@ -28937,10 +29020,10 @@ var DonutChart = ({ className, style, ...props }) => {
28937
29020
  var PieChart_default = DonutChart;
28938
29021
 
28939
29022
  // src/components/Blocks/EmailComposer.tsx
28940
- var import_jsx_runtime59 = require("react/jsx-runtime");
29023
+ var import_jsx_runtime61 = require("react/jsx-runtime");
28941
29024
  function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc, setShowBcc, cc, setCc, bcc, setBcc, subject, setSubject, body, setBody }) {
28942
- 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: [
28943
- /* @__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)(
28944
29027
  "input",
28945
29028
  {
28946
29029
  type: "email",
@@ -28949,8 +29032,8 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
28949
29032
  required: true
28950
29033
  }
28951
29034
  ) }),
28952
- /* @__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: [
28953
- /* @__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)(
28954
29037
  "input",
28955
29038
  {
28956
29039
  type: "email",
@@ -28961,7 +29044,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
28961
29044
  required: true
28962
29045
  }
28963
29046
  ),
28964
- !showCc && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
29047
+ !showCc && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
28965
29048
  "button",
28966
29049
  {
28967
29050
  onClick: () => setShowCc?.(true),
@@ -28969,7 +29052,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
28969
29052
  children: "Cc"
28970
29053
  }
28971
29054
  ),
28972
- !showBcc && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
29055
+ !showBcc && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
28973
29056
  "button",
28974
29057
  {
28975
29058
  onClick: () => setShowBcc?.(true),
@@ -28978,7 +29061,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
28978
29061
  }
28979
29062
  )
28980
29063
  ] }) }),
28981
- 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)(
28982
29065
  "input",
28983
29066
  {
28984
29067
  type: "text",
@@ -28988,7 +29071,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
28988
29071
  className: "w-full flex-1 border-2 rounded-md h-[40px] px-3 focus:outline-none border-[#E9E9E9] text-[#383838]"
28989
29072
  }
28990
29073
  ) }),
28991
- 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)(
28992
29075
  "input",
28993
29076
  {
28994
29077
  type: "text",
@@ -28998,7 +29081,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
28998
29081
  className: "w-full flex-1 border-2 rounded-md h-[40px] px-3 focus:outline-none border-[#E9E9E9] text-[#383838]"
28999
29082
  }
29000
29083
  ) }),
29001
- /* @__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)(
29002
29085
  "input",
29003
29086
  {
29004
29087
  type: "text",
@@ -29008,11 +29091,11 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
29008
29091
  className: "w-full flex-1 border-2 rounded-md h-[40px] px-3 focus:outline-none border-[#E9E9E9] text-[#383838]"
29009
29092
  }
29010
29093
  ) }),
29011
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(MyEditor, { value: body, onChange: setBody }) }),
29012
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex justify-end gap-2", children: [
29013
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("button", { className: "px-4 py-2 rounded-md text-gray-600 hover:bg-gray-100", children: "Discard" }),
29014
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("button", { className: "px-4 py-2 rounded-md border text-[#12715B] border-[#12715B]", children: "Reset" }),
29015
- /* @__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" })
29016
29099
  ] })
29017
29100
  ] }) });
29018
29101
  }
@@ -29089,6 +29172,8 @@ function showSonnerToast({
29089
29172
  Spacer,
29090
29173
  Stages,
29091
29174
  SwitchToggle,
29175
+ TabGroup,
29176
+ TabList,
29092
29177
  Table,
29093
29178
  Tabs,
29094
29179
  Text,