warqadui 0.0.90 → 0.0.91

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.
Files changed (3) hide show
  1. package/dist/index.js +309 -311
  2. package/dist/index.mjs +312 -314
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -8123,122 +8123,15 @@ var import_react_router_dom6 = require("react-router-dom");
8123
8123
  var import_lucide_react20 = require("lucide-react");
8124
8124
  var import_react34 = require("react");
8125
8125
  var import_antd6 = require("antd");
8126
-
8127
- // src/components/ErrorPage/ErrorPage.tsx
8128
8126
  var import_jsx_runtime43 = require("react/jsx-runtime");
8129
- var ErrorPageBase = ({
8130
- title,
8131
- message: message16,
8132
- statusCode,
8133
- action,
8134
- className = ""
8135
- }) => {
8136
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
8137
- "div",
8138
- {
8139
- className: `flex-1 m-auto h-full w-full min-h-[50vh] flex flex-col items-center justify-center p-6 text-zinc-900 dark:text-zinc-100 ${className}`,
8140
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "relative flex flex-col items-center justify-center w-full max-w-2xl text-center", children: [
8141
- statusCode && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "absolute inset-0 flex items-center justify-center z-0 select-none pointer-events-none opacity-[0.03] dark:opacity-5", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "text-[12rem] sm:text-[16rem] md:text-[20rem] font-bold leading-none tracking-tighter", children: statusCode }) }),
8142
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "relative z-10 space-y-6", children: [
8143
- statusCode && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("h2", { className: "text-xl md:text-2xl font-semibold text-zinc-500 dark:text-zinc-400", children: [
8144
- "Error ",
8145
- statusCode
8146
- ] }),
8147
- title && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("h1", { className: "text-4xl md:text-5xl font-extrabold tracking-tight drop-shadow-sm", children: title }),
8148
- message16 && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: "text-lg md:text-xl text-zinc-600 dark:text-zinc-400 max-w-md mx-auto", children: message16 }),
8149
- action && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "pt-8", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
8150
- "button",
8151
- {
8152
- onClick: action.onClick,
8153
- className: "px-8 py-3.5 rounded-full text-white font-semibold shadow-[0_4px_14px_0_rgba(0,0,0,0.1)] hover:shadow-[0_6px_20px_rgba(0,0,0,0.15)] transition-all hover:-translate-y-0.5 active:translate-y-0 focus:outline-none focus:ring-2 focus:ring-offset-2",
8154
- style: { backgroundColor: "var(--primary-color, #3b82f6)" },
8155
- children: action.label
8156
- }
8157
- ) })
8158
- ] })
8159
- ] })
8160
- }
8161
- );
8162
- };
8163
-
8164
- // src/components/ErrorPage/ErrorPage.500.tsx
8165
- var import_jsx_runtime44 = require("react/jsx-runtime");
8166
- var ErrorPage500 = (props) => {
8167
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
8168
- ErrorPageBase,
8169
- {
8170
- statusCode: 500,
8171
- title: "Internal Server Error",
8172
- message: "Oops, something went wrong on our end. Please try again later.",
8173
- action: { label: "Go Home", onClick: () => window.location.href = "/" },
8174
- ...props
8175
- }
8176
- );
8177
- };
8178
-
8179
- // src/components/ErrorPage/ErrorPage.404.tsx
8180
- var import_jsx_runtime45 = require("react/jsx-runtime");
8181
- var ErrorPage404 = (props) => {
8182
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
8183
- ErrorPageBase,
8184
- {
8185
- statusCode: 404,
8186
- title: "Page Not Found",
8187
- message: "The page you are looking for doesn't exist or has been moved.",
8188
- action: { label: "Go Home", onClick: () => window.location.href = "/" },
8189
- ...props
8190
- }
8191
- );
8192
- };
8193
-
8194
- // src/components/ErrorPage/ErrorPage.401.tsx
8195
- var import_jsx_runtime46 = require("react/jsx-runtime");
8196
- var ErrorPage401 = (props) => {
8197
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
8198
- ErrorPageBase,
8199
- {
8200
- statusCode: 401,
8201
- title: "Unauthorized",
8202
- message: "You don't have permission to access this page.",
8203
- action: { label: "Go Home", onClick: () => window.location.href = "/" },
8204
- ...props
8205
- }
8206
- );
8207
- };
8208
-
8209
- // src/components/ErrorPage/ErrorPage.400.tsx
8210
- var import_jsx_runtime47 = require("react/jsx-runtime");
8211
- var ErrorPage400 = (props) => {
8212
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
8213
- ErrorPageBase,
8214
- {
8215
- statusCode: 400,
8216
- title: "Bad Request",
8217
- message: "Your request could not be processed. Please try again.",
8218
- action: { label: "Go Home", onClick: () => window.location.href = "/" },
8219
- ...props
8220
- }
8221
- );
8222
- };
8223
-
8224
- // src/components/ErrorPage/index.ts
8225
- var ErrorPage = Object.assign(ErrorPageBase, {
8226
- 500: ErrorPage500,
8227
- 404: ErrorPage404,
8228
- 401: ErrorPage401,
8229
- 400: ErrorPage400
8230
- });
8231
-
8232
- // src/components/accounts/Accounts.tsx
8233
- var import_jsx_runtime48 = require("react/jsx-runtime");
8234
- var ErrorPage5002 = ErrorPage[500];
8235
8127
  function Accounts({ v, url }) {
8236
8128
  const { enums } = useWarqadConfig();
8237
8129
  const { branchId } = (0, import_react_router_dom6.useParams)();
8238
8130
  const navigate = (0, import_react_router_dom6.useNavigate)();
8239
8131
  const { type } = (0, import_react_router_dom6.useParams)();
8240
8132
  if (!enums.accountTypes.includes(type)) {
8241
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ErrorPage5002, { title: `${type} page not found` });
8133
+ import_antd6.message.error("Invalid account type");
8134
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_router_dom6.Navigate, { to: "/accounts", replace: true });
8242
8135
  }
8243
8136
  const [deleteAccount, setDeleteAccount] = (0, import_react34.useState)(null);
8244
8137
  const { isLoading, remove } = useApis_default();
@@ -8252,17 +8145,17 @@ function Accounts({ v, url }) {
8252
8145
  const items = (data2) => [
8253
8146
  {
8254
8147
  label: `Edit ${type}`,
8255
- icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react20.FilePenLine, { size: 16 }),
8148
+ icon: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react20.FilePenLine, { size: 16 }),
8256
8149
  onClick: () => navigate(`update?id=${data2?._id}`)
8257
8150
  },
8258
8151
  {
8259
8152
  label: `Delete ${type}`,
8260
- icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react20.Trash2, { className: "text-red-500", size: 16 }),
8153
+ icon: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react20.Trash2, { className: "text-red-500", size: 16 }),
8261
8154
  onClick: () => setDeleteAccount(data2)
8262
8155
  },
8263
8156
  isEmployee && !data2?.user && {
8264
8157
  label: `Link User`,
8265
- icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react20.Cable, { size: 16 }),
8158
+ icon: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react20.Cable, { size: 16 }),
8266
8159
  onClick: () => navigate(`link-user?id=${data2?._id}`)
8267
8160
  }
8268
8161
  ].filter(Boolean);
@@ -8272,7 +8165,7 @@ function Accounts({ v, url }) {
8272
8165
  header: "Name",
8273
8166
  cell: ({ row }) => {
8274
8167
  const account = row.original;
8275
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { children: account?.name });
8168
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { children: account?.name });
8276
8169
  }
8277
8170
  },
8278
8171
  {
@@ -8280,7 +8173,7 @@ function Accounts({ v, url }) {
8280
8173
  header: "Sex",
8281
8174
  cell: ({ row }) => {
8282
8175
  const account = row.original;
8283
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { children: account?.sex });
8176
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { children: account?.sex });
8284
8177
  }
8285
8178
  },
8286
8179
  {
@@ -8288,7 +8181,7 @@ function Accounts({ v, url }) {
8288
8181
  header: "Email",
8289
8182
  cell: ({ row }) => {
8290
8183
  const account = row.original;
8291
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { children: account?.email || "N/A" });
8184
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { children: account?.email || "N/A" });
8292
8185
  }
8293
8186
  },
8294
8187
  {
@@ -8296,7 +8189,7 @@ function Accounts({ v, url }) {
8296
8189
  header: "Phone",
8297
8190
  cell: ({ row }) => {
8298
8191
  const account = row.original;
8299
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { children: account?.phoneNumber || "N/A" });
8192
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { children: account?.phoneNumber || "N/A" });
8300
8193
  }
8301
8194
  },
8302
8195
  isEmployee && {
@@ -8304,7 +8197,7 @@ function Accounts({ v, url }) {
8304
8197
  header: "User",
8305
8198
  cell: ({ row }) => {
8306
8199
  const account = row.original;
8307
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Badge, { variant: account?.user ? "success" : "danger", size: "sm", children: account?.user ? "Linked" : "Not Linked" });
8200
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Badge, { variant: account?.user ? "success" : "danger", size: "sm", children: account?.user ? "Linked" : "Not Linked" });
8308
8201
  }
8309
8202
  },
8310
8203
  {
@@ -8312,13 +8205,13 @@ function Accounts({ v, url }) {
8312
8205
  header: "Actions",
8313
8206
  cell: ({ row }) => {
8314
8207
  const data2 = row.original;
8315
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
8208
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
8316
8209
  Dropdown,
8317
8210
  {
8318
8211
  className: "cursor-pointer w-[150px]",
8319
8212
  items: items(data2),
8320
8213
  triggerMode: "hover",
8321
- children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react20.EllipsisVertical, {})
8214
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react20.EllipsisVertical, {})
8322
8215
  }
8323
8216
  );
8324
8217
  }
@@ -8336,9 +8229,9 @@ function Accounts({ v, url }) {
8336
8229
  return error;
8337
8230
  }
8338
8231
  };
8339
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
8340
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Modal2, {}),
8341
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
8232
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
8233
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Modal2, {}),
8234
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
8342
8235
  ConfirmModal,
8343
8236
  {
8344
8237
  isOpen: !!deleteAccount,
@@ -8351,7 +8244,7 @@ function Accounts({ v, url }) {
8351
8244
  children: null
8352
8245
  }
8353
8246
  ),
8354
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
8247
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
8355
8248
  TransactionViewComponent,
8356
8249
  {
8357
8250
  columns,
@@ -8444,7 +8337,7 @@ var Formats_default = Formats;
8444
8337
 
8445
8338
  // src/hooks/useAccountBalance.tsx
8446
8339
  var import_react35 = require("react");
8447
- var import_jsx_runtime49 = require("react/jsx-runtime");
8340
+ var import_jsx_runtime44 = require("react/jsx-runtime");
8448
8341
  var useAccountbalance = ({
8449
8342
  url,
8450
8343
  showBalance,
@@ -8478,15 +8371,15 @@ var useAccountbalance = ({
8478
8371
  return null;
8479
8372
  }
8480
8373
  if (isLoading) {
8481
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("h2", { className: "text-gray-500", children: "Getting Balance..." });
8374
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("h2", { className: "text-gray-500", children: "Getting Balance..." });
8482
8375
  }
8483
8376
  if (error) {
8484
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("h2", { className: "text-red-500", children: [
8377
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("h2", { className: "text-red-500", children: [
8485
8378
  "Error: ",
8486
8379
  error
8487
8380
  ] });
8488
8381
  }
8489
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
8382
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
8490
8383
  "h2",
8491
8384
  {
8492
8385
  className: `${balance.startsWith("-") ? "text-red-500" : "text-green-500"}`,
@@ -8503,7 +8396,7 @@ var useAccountBalance_default = useAccountbalance;
8503
8396
 
8504
8397
  // src/components/accounts/Feilds/Account.tsx
8505
8398
  var import_react_router_dom8 = require("react-router-dom");
8506
- var import_jsx_runtime50 = require("react/jsx-runtime");
8399
+ var import_jsx_runtime45 = require("react/jsx-runtime");
8507
8400
  function Account({
8508
8401
  name,
8509
8402
  label,
@@ -8523,8 +8416,8 @@ function Account({
8523
8416
  showBalance,
8524
8417
  accountId
8525
8418
  });
8526
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-2", children: [
8527
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
8419
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex flex-col gap-2", children: [
8420
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
8528
8421
  Fields_default.SearchApi,
8529
8422
  {
8530
8423
  name,
@@ -8541,13 +8434,13 @@ function Account({
8541
8434
  disabled
8542
8435
  }
8543
8436
  ),
8544
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(BalanceView, {})
8437
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(BalanceView, {})
8545
8438
  ] });
8546
8439
  }
8547
8440
  var Account_default = Account;
8548
8441
 
8549
8442
  // src/components/accounts/Feilds/Customers.tsx
8550
- var import_jsx_runtime51 = require("react/jsx-runtime");
8443
+ var import_jsx_runtime46 = require("react/jsx-runtime");
8551
8444
  function Customer({
8552
8445
  name = "customer",
8553
8446
  label = "Customer",
@@ -8560,7 +8453,7 @@ function Customer({
8560
8453
  disabled,
8561
8454
  v
8562
8455
  }) {
8563
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
8456
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
8564
8457
  Account_default,
8565
8458
  {
8566
8459
  name,
@@ -8579,7 +8472,7 @@ function Customer({
8579
8472
  var Customers_default = Customer;
8580
8473
 
8581
8474
  // src/components/accounts/Feilds/Employee.tsx
8582
- var import_jsx_runtime52 = require("react/jsx-runtime");
8475
+ var import_jsx_runtime47 = require("react/jsx-runtime");
8583
8476
  function Employee({
8584
8477
  name = "employee",
8585
8478
  label = "Employee",
@@ -8592,7 +8485,7 @@ function Employee({
8592
8485
  disabled,
8593
8486
  v
8594
8487
  }) {
8595
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
8488
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
8596
8489
  Account_default,
8597
8490
  {
8598
8491
  name,
@@ -8611,7 +8504,7 @@ function Employee({
8611
8504
  var Employee_default = Employee;
8612
8505
 
8613
8506
  // src/components/accounts/Feilds/Branches.tsx
8614
- var import_jsx_runtime53 = require("react/jsx-runtime");
8507
+ var import_jsx_runtime48 = require("react/jsx-runtime");
8615
8508
  function Branches({
8616
8509
  name = "branch",
8617
8510
  label = "Branch",
@@ -8624,7 +8517,7 @@ function Branches({
8624
8517
  v,
8625
8518
  disabled
8626
8519
  }) {
8627
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
8520
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
8628
8521
  Account_default,
8629
8522
  {
8630
8523
  name,
@@ -8653,8 +8546,7 @@ var Feilds_default = AccountFields;
8653
8546
 
8654
8547
  // src/components/accounts/AccountForm.tsx
8655
8548
  var import_react_router_dom9 = require("react-router-dom");
8656
- var import_jsx_runtime54 = require("react/jsx-runtime");
8657
- var ErrorPage5003 = ErrorPage[500];
8549
+ var import_jsx_runtime49 = require("react/jsx-runtime");
8658
8550
  function AccountForm() {
8659
8551
  const { enums } = useWarqadConfig();
8660
8552
  const { branchId } = (0, import_react_router_dom9.useParams)();
@@ -8663,7 +8555,8 @@ function AccountForm() {
8663
8555
  const type = getParams("type");
8664
8556
  const isEdit = !!id;
8665
8557
  if (!enums.accountTypes.includes(type)) {
8666
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ErrorPage5003, { title: `${type} page not found` });
8558
+ import_antd7.message.error("Invalid account type");
8559
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react_router_dom9.Navigate, { to: "/accounts", replace: true });
8667
8560
  }
8668
8561
  const { post, put, isLoading } = useApis_default();
8669
8562
  const { isLoading: isLoadingGet, get } = useApis_default();
@@ -8718,24 +8611,24 @@ function AccountForm() {
8718
8611
  fetches();
8719
8612
  }
8720
8613
  }, [id]);
8721
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
8614
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
8722
8615
  Card,
8723
8616
  {
8724
8617
  className: "max-w-4xl mx-auto mt-10 relative",
8725
8618
  isLoading: isLoadingGet,
8726
8619
  loadingText: "Processing...",
8727
8620
  children: [
8728
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Card.Header, { children: [
8729
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Card.Title, { children: `${isEdit ? "Edit" : "Add"} ${type}` }),
8730
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Card.Description, { children: isEdit ? `Update the details for this ${type}` : `Create a new ${type} and add it to your list` })
8621
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Card.Header, { children: [
8622
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Card.Title, { children: `${isEdit ? "Edit" : "Add"} ${type}` }),
8623
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Card.Description, { children: isEdit ? `Update the details for this ${type}` : `Create a new ${type} and add it to your list` })
8731
8624
  ] }),
8732
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Card.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
8625
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Card.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
8733
8626
  "form",
8734
8627
  {
8735
8628
  onSubmit: handleSubmit(onSubmit, (errors) => console.log(errors)),
8736
8629
  children: [
8737
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-4", children: [
8738
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8630
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-4", children: [
8631
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8739
8632
  Fields_default.Input,
8740
8633
  {
8741
8634
  label: "Name",
@@ -8746,7 +8639,7 @@ function AccountForm() {
8746
8639
  required: true
8747
8640
  }
8748
8641
  ),
8749
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8642
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8750
8643
  Fields_default.Select,
8751
8644
  {
8752
8645
  label: "Sex",
@@ -8755,7 +8648,7 @@ function AccountForm() {
8755
8648
  enumName: "sex"
8756
8649
  }
8757
8650
  ),
8758
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8651
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8759
8652
  Fields_default.Input,
8760
8653
  {
8761
8654
  label: "Email",
@@ -8765,7 +8658,7 @@ function AccountForm() {
8765
8658
  placeholder: "e.g maoo@exapmle.com"
8766
8659
  }
8767
8660
  ),
8768
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8661
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8769
8662
  Fields_default.PhoneInput,
8770
8663
  {
8771
8664
  label: "Phone Number",
@@ -8774,7 +8667,7 @@ function AccountForm() {
8774
8667
  placeholder: "Enter phone number"
8775
8668
  }
8776
8669
  ),
8777
- !branchId && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8670
+ !branchId && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8778
8671
  Feilds_default.Branches,
8779
8672
  {
8780
8673
  label: "Branch",
@@ -8785,7 +8678,7 @@ function AccountForm() {
8785
8678
  }
8786
8679
  )
8787
8680
  ] }),
8788
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("footer", { className: "flex justify-end mt-4", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
8681
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("footer", { className: "flex justify-end mt-4", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
8789
8682
  Button,
8790
8683
  {
8791
8684
  isLoading,
@@ -8844,7 +8737,7 @@ var import_react_hook_form9 = require("react-hook-form");
8844
8737
  var import_zod5 = require("@hookform/resolvers/zod");
8845
8738
  var import_antd8 = require("antd");
8846
8739
  var import_react37 = require("react");
8847
- var import_jsx_runtime55 = require("react/jsx-runtime");
8740
+ var import_jsx_runtime50 = require("react/jsx-runtime");
8848
8741
  function LinkUser({ type: initialType = "employee" }) {
8849
8742
  const { getQuery, navigate, getParams } = useApp_default();
8850
8743
  const id = getQuery("id");
@@ -8900,26 +8793,26 @@ function LinkUser({ type: initialType = "employee" }) {
8900
8793
  navigate(-1);
8901
8794
  }
8902
8795
  }, [id]);
8903
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
8796
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
8904
8797
  Card,
8905
8798
  {
8906
8799
  className: "max-w-4xl mx-auto mt-10 relative",
8907
8800
  isLoading: isLoadingGet,
8908
8801
  loadingText: "Processing...",
8909
8802
  children: [
8910
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Card.Header, { children: [
8911
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Card.Title, { children: `Link User ` }),
8912
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Card.Description, { children: "Link User Employee and add it to your list" })
8803
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Card.Header, { children: [
8804
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Card.Title, { children: `Link User ` }),
8805
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Card.Description, { children: "Link User Employee and add it to your list" })
8913
8806
  ] }),
8914
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Card.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
8807
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Card.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
8915
8808
  "form",
8916
8809
  {
8917
8810
  onSubmit: handleSubmit(onSubmit, (errors) => console.log(errors)),
8918
8811
  className: "space-y-4",
8919
8812
  children: [
8920
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-4", children: [
8813
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-4", children: [
8921
8814
  " ",
8922
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8815
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
8923
8816
  Fields_default.Input,
8924
8817
  {
8925
8818
  label: "Name",
@@ -8930,7 +8823,7 @@ function LinkUser({ type: initialType = "employee" }) {
8930
8823
  disabled: true
8931
8824
  }
8932
8825
  ),
8933
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8826
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
8934
8827
  Fields_default.Input,
8935
8828
  {
8936
8829
  label: "Email",
@@ -8941,7 +8834,7 @@ function LinkUser({ type: initialType = "employee" }) {
8941
8834
  required: true
8942
8835
  }
8943
8836
  ),
8944
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8837
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
8945
8838
  Fields_default.Select,
8946
8839
  {
8947
8840
  label: "Role",
@@ -8952,7 +8845,7 @@ function LinkUser({ type: initialType = "employee" }) {
8952
8845
  }
8953
8846
  )
8954
8847
  ] }),
8955
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("footer", { className: "flex justify-end mt-4", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8848
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("footer", { className: "flex justify-end mt-4", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
8956
8849
  Button,
8957
8850
  {
8958
8851
  isLoading,
@@ -8981,7 +8874,7 @@ var import_react_hook_form10 = require("react-hook-form");
8981
8874
  var import_zod6 = require("@hookform/resolvers/zod");
8982
8875
  var import_antd9 = require("antd");
8983
8876
  var import_react38 = require("react");
8984
- var import_jsx_runtime56 = require("react/jsx-runtime");
8877
+ var import_jsx_runtime51 = require("react/jsx-runtime");
8985
8878
  var { Countdown } = import_antd9.Statistic;
8986
8879
  function VerifyEmailForm({
8987
8880
  data,
@@ -9049,9 +8942,9 @@ function VerifyEmailForm({
9049
8942
  import_antd9.message.error(error?.message || "Something went wrong");
9050
8943
  }
9051
8944
  };
9052
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("form", { onSubmit: handleSubmit(onSubmit, (errors) => console.log(errors)), children: [
9053
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "space-y-2", children: [
9054
- oldEmail && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "border-b-2 pb-2", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8945
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("form", { onSubmit: handleSubmit(onSubmit, (errors) => console.log(errors)), children: [
8946
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "space-y-2", children: [
8947
+ oldEmail && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "border-b-2 pb-2", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
9055
8948
  Fields_default.Input,
9056
8949
  {
9057
8950
  label: "Current Email",
@@ -9061,7 +8954,7 @@ function VerifyEmailForm({
9061
8954
  disabled: true
9062
8955
  }
9063
8956
  ) }),
9064
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8957
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
9065
8958
  Fields_default.Input,
9066
8959
  {
9067
8960
  label: "New Email",
@@ -9072,7 +8965,7 @@ function VerifyEmailForm({
9072
8965
  disabled: true
9073
8966
  }
9074
8967
  ),
9075
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8968
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
9076
8969
  Fields_default.Input,
9077
8970
  {
9078
8971
  label: "Token",
@@ -9083,19 +8976,19 @@ function VerifyEmailForm({
9083
8976
  }
9084
8977
  )
9085
8978
  ] }),
9086
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex items-center gap-2 mt-2", children: [
9087
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("h1", { className: "text-sm text-gray-600 dark:text-gray-400", children: [
8979
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex items-center gap-2 mt-2", children: [
8980
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("h1", { className: "text-sm text-gray-600 dark:text-gray-400", children: [
9088
8981
  "Didn't receive a verification token or expired?",
9089
8982
  " "
9090
8983
  ] }),
9091
- hasPassed || !threeMinutesLater ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8984
+ hasPassed || !threeMinutesLater ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
9092
8985
  "span",
9093
8986
  {
9094
8987
  onClick: resend,
9095
8988
  className: "text-blue-600 cursor-pointer underline text-sm",
9096
8989
  children: "Resend"
9097
8990
  }
9098
- ) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-blue-600 cursor-pointer underline text-sm", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8991
+ ) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-blue-600 cursor-pointer underline text-sm", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
9099
8992
  Countdown,
9100
8993
  {
9101
8994
  styles: { content: { fontSize: 14, color: "#3b82f6" } },
@@ -9105,7 +8998,7 @@ function VerifyEmailForm({
9105
8998
  threeMinutesLater
9106
8999
  ) })
9107
9000
  ] }),
9108
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("footer", { className: "flex justify-end mt-4", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
9001
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("footer", { className: "flex justify-end mt-4", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
9109
9002
  Button,
9110
9003
  {
9111
9004
  isLoading,
@@ -9123,7 +9016,7 @@ var VerifyEmailForm_default = VerifyEmailForm;
9123
9016
  var import_react_hook_form11 = require("react-hook-form");
9124
9017
  var import_zod7 = require("@hookform/resolvers/zod");
9125
9018
  var import_antd10 = require("antd");
9126
- var import_jsx_runtime57 = require("react/jsx-runtime");
9019
+ var import_jsx_runtime52 = require("react/jsx-runtime");
9127
9020
  function UpdateEmailForm({
9128
9021
  data,
9129
9022
  close,
@@ -9156,9 +9049,9 @@ function UpdateEmailForm({
9156
9049
  import_antd10.message.error(error?.message || "Something went wrong");
9157
9050
  }
9158
9051
  };
9159
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("form", { onSubmit: handleSubmit(onSubmit), children: [
9160
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "space-y-4", children: [
9161
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
9052
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("form", { onSubmit: handleSubmit(onSubmit), children: [
9053
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "space-y-4", children: [
9054
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
9162
9055
  Fields_default.Input,
9163
9056
  {
9164
9057
  label: "Current Email",
@@ -9167,7 +9060,7 @@ function UpdateEmailForm({
9167
9060
  disabled: true
9168
9061
  }
9169
9062
  ),
9170
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
9063
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
9171
9064
  Fields_default.Input,
9172
9065
  {
9173
9066
  label: "New Email Address",
@@ -9178,10 +9071,10 @@ function UpdateEmailForm({
9178
9071
  required: true
9179
9072
  }
9180
9073
  ),
9181
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "bg-blue-50 dark:bg-blue-900/10 border-l-4 border-blue-400 p-3 rounded", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "text-xs text-blue-700 dark:text-blue-400", children: "Note: You will need to verify the new email address before it becomes primary." }) })
9074
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "bg-blue-50 dark:bg-blue-900/10 border-l-4 border-blue-400 p-3 rounded", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", { className: "text-xs text-blue-700 dark:text-blue-400", children: "Note: You will need to verify the new email address before it becomes primary." }) })
9182
9075
  ] }),
9183
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("footer", { className: "flex justify-end mt-6 gap-3", children: [
9184
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
9076
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("footer", { className: "flex justify-end mt-6 gap-3", children: [
9077
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
9185
9078
  Button,
9186
9079
  {
9187
9080
  type: "button",
@@ -9191,7 +9084,7 @@ function UpdateEmailForm({
9191
9084
  children: "Cancel"
9192
9085
  }
9193
9086
  ),
9194
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
9087
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
9195
9088
  Button,
9196
9089
  {
9197
9090
  isLoading,
@@ -9210,7 +9103,7 @@ var UpdateEmailForm_default = UpdateEmailForm;
9210
9103
  var import_react_hook_form12 = require("react-hook-form");
9211
9104
  var import_antd11 = require("antd");
9212
9105
  var import_react39 = require("react");
9213
- var import_jsx_runtime58 = require("react/jsx-runtime");
9106
+ var import_jsx_runtime53 = require("react/jsx-runtime");
9214
9107
  var { Countdown: Countdown2 } = import_antd11.Statistic;
9215
9108
  function ResetPasswordForm({
9216
9109
  data,
@@ -9265,9 +9158,9 @@ function ResetPasswordForm({
9265
9158
  import_antd11.message.error(error?.message || "Something went wrong");
9266
9159
  }
9267
9160
  };
9268
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("form", { onSubmit: handleSubmit(onSubmit), children: [
9269
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "space-y-4", children: [
9270
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "border-b-2 pb-4 dark:border-zinc-800", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
9161
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("form", { onSubmit: handleSubmit(onSubmit), children: [
9162
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "space-y-4", children: [
9163
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "border-b-2 pb-4 dark:border-zinc-800", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9271
9164
  Fields_default.Input,
9272
9165
  {
9273
9166
  label: "Target Email",
@@ -9276,10 +9169,10 @@ function ResetPasswordForm({
9276
9169
  disabled: true
9277
9170
  }
9278
9171
  ) }),
9279
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "bg-orange-50 dark:bg-orange-900/10 border-l-4 border-orange-400 p-4 rounded-xl", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "text-sm text-orange-700 dark:text-orange-300", children: "Click context below to send a secure password reset link to this user." }) }),
9280
- !hasPassed && threeMinutesLater && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center gap-2 mt-2 bg-blue-50 dark:bg-blue-900/10 p-2 rounded-lg", children: [
9281
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "text-xs text-blue-600 dark:text-blue-400 font-medium", children: "You can request another link in:" }),
9282
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-blue-600 font-bold text-xs", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
9172
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "bg-orange-50 dark:bg-orange-900/10 border-l-4 border-orange-400 p-4 rounded-xl", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-sm text-orange-700 dark:text-orange-300", children: "Click context below to send a secure password reset link to this user." }) }),
9173
+ !hasPassed && threeMinutesLater && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex items-center gap-2 mt-2 bg-blue-50 dark:bg-blue-900/10 p-2 rounded-lg", children: [
9174
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-xs text-blue-600 dark:text-blue-400 font-medium", children: "You can request another link in:" }),
9175
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "text-blue-600 font-bold text-xs", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9283
9176
  Countdown2,
9284
9177
  {
9285
9178
  styles: { content: { fontSize: 12, color: "#3b82f6" } },
@@ -9290,8 +9183,8 @@ function ResetPasswordForm({
9290
9183
  ) })
9291
9184
  ] })
9292
9185
  ] }),
9293
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("footer", { className: "flex justify-end mt-8 gap-3", children: [
9294
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
9186
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("footer", { className: "flex justify-end mt-8 gap-3", children: [
9187
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9295
9188
  Button,
9296
9189
  {
9297
9190
  type: "button",
@@ -9301,7 +9194,7 @@ function ResetPasswordForm({
9301
9194
  children: "Cancel"
9302
9195
  }
9303
9196
  ),
9304
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
9197
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9305
9198
  Button,
9306
9199
  {
9307
9200
  isLoading,
@@ -9319,11 +9212,11 @@ var ResetPasswordForm_default = ResetPasswordForm;
9319
9212
  // src/components/users/Activate.tsx
9320
9213
  var import_antd12 = require("antd");
9321
9214
  var import_react40 = require("react");
9322
- var import_jsx_runtime59 = require("react/jsx-runtime");
9215
+ var import_jsx_runtime54 = require("react/jsx-runtime");
9323
9216
  var ActivateUser = ({ data }) => {
9324
9217
  const [checked, setChecked] = (0, import_react40.useState)(data?.isActive);
9325
9218
  const { put, isLoading } = useApis_default();
9326
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_jsx_runtime59.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
9219
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_jsx_runtime54.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
9327
9220
  import_antd12.Switch,
9328
9221
  {
9329
9222
  onChange: async (e) => {
@@ -9351,7 +9244,7 @@ var Activate_default = ActivateUser;
9351
9244
 
9352
9245
  // src/components/users/users.tsx
9353
9246
  var import_react_router_dom10 = require("react-router-dom");
9354
- var import_jsx_runtime60 = require("react/jsx-runtime");
9247
+ var import_jsx_runtime55 = require("react/jsx-runtime");
9355
9248
  function Users() {
9356
9249
  const navigate = (0, import_react_router_dom10.useNavigate)();
9357
9250
  const { data, TransactionViewComponent, reload } = useTransaction_default({
@@ -9363,11 +9256,11 @@ function Users() {
9363
9256
  const items = (data2) => [
9364
9257
  {
9365
9258
  label: `Reset Password`,
9366
- icon: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_lucide_react21.Key, { size: 16 }),
9259
+ icon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_lucide_react21.Key, { size: 16 }),
9367
9260
  onClick: () => openState({
9368
9261
  title: "Request Password Reset",
9369
9262
  type: "form",
9370
- content: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
9263
+ content: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
9371
9264
  ResetPasswordForm_default,
9372
9265
  {
9373
9266
  data: data2,
@@ -9380,11 +9273,11 @@ function Users() {
9380
9273
  },
9381
9274
  {
9382
9275
  label: `Update Email`,
9383
- icon: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_lucide_react21.Mail, { size: 16 }),
9276
+ icon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_lucide_react21.Mail, { size: 16 }),
9384
9277
  onClick: () => openState({
9385
9278
  title: "Update Email Address",
9386
9279
  type: "form",
9387
- content: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
9280
+ content: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
9388
9281
  UpdateEmailForm_default,
9389
9282
  {
9390
9283
  data: data2,
@@ -9397,11 +9290,11 @@ function Users() {
9397
9290
  },
9398
9291
  data2?.emailVerification && {
9399
9292
  label: `Verify Email`,
9400
- icon: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_lucide_react21.ShieldCheck, {}),
9293
+ icon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_lucide_react21.ShieldCheck, {}),
9401
9294
  onClick: () => openState({
9402
9295
  title: "Verify Email",
9403
9296
  type: "form",
9404
- content: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
9297
+ content: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
9405
9298
  VerifyEmailForm_default,
9406
9299
  {
9407
9300
  data: data2,
@@ -9422,16 +9315,16 @@ function Users() {
9422
9315
  const data2 = row.original;
9423
9316
  const emailVerification = data2?.emailVerification;
9424
9317
  const newEmail = emailVerification?.email !== data2?.email ? emailVerification?.email : null;
9425
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "space-y-1", children: [
9426
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("section", { className: "flex items-center gap-2", children: [
9318
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "space-y-1", children: [
9319
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("section", { className: "flex items-center gap-2", children: [
9427
9320
  " ",
9428
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("p", { children: data2?.email }),
9429
- data2?.isEmailVerified && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Badge, { variant: "success", size: "sm", children: "Verified" }),
9430
- !data2?.isEmailVerified && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Badge, { variant: "warning", size: "sm", children: "Not Verified" })
9321
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { children: data2?.email }),
9322
+ data2?.isEmailVerified && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Badge, { variant: "success", size: "sm", children: "Verified" }),
9323
+ !data2?.isEmailVerified && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Badge, { variant: "warning", size: "sm", children: "Not Verified" })
9431
9324
  ] }),
9432
- newEmail && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("section", { className: "flex items-center gap-2", children: [
9433
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_lucide_react21.Info, { size: 16, className: "text-orange-600" }),
9434
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("p", { children: newEmail })
9325
+ newEmail && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("section", { className: "flex items-center gap-2", children: [
9326
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_lucide_react21.Info, { size: 16, className: "text-orange-600" }),
9327
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { children: newEmail })
9435
9328
  ] })
9436
9329
  ] });
9437
9330
  }
@@ -9441,7 +9334,7 @@ function Users() {
9441
9334
  header: "Role",
9442
9335
  cell: ({ row }) => {
9443
9336
  const data2 = row.original;
9444
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
9337
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
9445
9338
  Badge,
9446
9339
  {
9447
9340
  variant: data2?.role === "admin" ? "primary" : "warning",
@@ -9456,7 +9349,7 @@ function Users() {
9456
9349
  header: "Employee Name",
9457
9350
  cell: ({ row }) => {
9458
9351
  const account = row.original?.account;
9459
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { children: account?.name || "N/A" });
9352
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { children: account?.name || "N/A" });
9460
9353
  }
9461
9354
  },
9462
9355
  {
@@ -9464,7 +9357,7 @@ function Users() {
9464
9357
  header: "Status",
9465
9358
  cell: ({ row }) => {
9466
9359
  const data2 = row.original;
9467
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Activate_default, { data: data2 });
9360
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Activate_default, { data: data2 });
9468
9361
  }
9469
9362
  },
9470
9363
  {
@@ -9472,13 +9365,13 @@ function Users() {
9472
9365
  header: "Actions",
9473
9366
  cell: ({ row }) => {
9474
9367
  const data2 = row.original;
9475
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
9368
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
9476
9369
  Dropdown,
9477
9370
  {
9478
9371
  className: "w-fit! cursor-pointer",
9479
9372
  items: items(data2),
9480
9373
  triggerMode: "hover",
9481
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_lucide_react21.EllipsisVertical, {})
9374
+ children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_lucide_react21.EllipsisVertical, {})
9482
9375
  }
9483
9376
  );
9484
9377
  }
@@ -9487,9 +9380,9 @@ function Users() {
9487
9380
  [items]
9488
9381
  );
9489
9382
  const users = data?.data || [];
9490
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
9491
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Modal2, {}),
9492
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
9383
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
9384
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Modal2, {}),
9385
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
9493
9386
  TransactionViewComponent,
9494
9387
  {
9495
9388
  columns,
@@ -9510,7 +9403,7 @@ var users_default = Users;
9510
9403
  var import_react_hook_form13 = require("react-hook-form");
9511
9404
  var import_zod8 = require("@hookform/resolvers/zod");
9512
9405
  var import_antd13 = require("antd");
9513
- var import_jsx_runtime61 = require("react/jsx-runtime");
9406
+ var import_jsx_runtime56 = require("react/jsx-runtime");
9514
9407
  function UserForm() {
9515
9408
  const { navigate } = useApp_default();
9516
9409
  const { post, isLoading } = useApis_default();
@@ -9535,14 +9428,14 @@ function UserForm() {
9535
9428
  import_antd13.message.error(error?.message || "Something went wrong");
9536
9429
  }
9537
9430
  };
9538
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Card, { className: "max-w-xl mx-auto mt-10 relative", children: [
9539
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Card.Header, { children: [
9540
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Card.Title, { children: "Add User" }),
9541
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Card.Description, { children: "Create a new user by providing their email and phone number." })
9431
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Card, { className: "max-w-xl mx-auto mt-10 relative", children: [
9432
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Card.Header, { children: [
9433
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Card.Title, { children: "Add User" }),
9434
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Card.Description, { children: "Create a new user by providing their email and phone number." })
9542
9435
  ] }),
9543
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Card.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("form", { onSubmit: handleSubmit(onSubmit), children: [
9544
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "space-y-4", children: [
9545
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9436
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Card.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("form", { onSubmit: handleSubmit(onSubmit), children: [
9437
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "space-y-4", children: [
9438
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
9546
9439
  Fields_default.Input,
9547
9440
  {
9548
9441
  label: "Email",
@@ -9553,7 +9446,7 @@ function UserForm() {
9553
9446
  required: true
9554
9447
  }
9555
9448
  ),
9556
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9449
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
9557
9450
  Fields_default.PhoneInput,
9558
9451
  {
9559
9452
  label: "Phone Number",
@@ -9562,7 +9455,7 @@ function UserForm() {
9562
9455
  placeholder: "Enter phone number"
9563
9456
  }
9564
9457
  ),
9565
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9458
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
9566
9459
  Fields_default.Select,
9567
9460
  {
9568
9461
  label: "Role",
@@ -9573,7 +9466,7 @@ function UserForm() {
9573
9466
  }
9574
9467
  )
9575
9468
  ] }),
9576
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("footer", { className: "flex justify-end mt-6", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
9469
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("footer", { className: "flex justify-end mt-6", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
9577
9470
  Button,
9578
9471
  {
9579
9472
  isLoading,
@@ -9596,7 +9489,7 @@ var import_react_hook_form14 = require("react-hook-form");
9596
9489
  var import_zod9 = require("@hookform/resolvers/zod");
9597
9490
  var z4 = __toESM(require("zod"));
9598
9491
  var import_antd14 = require("antd");
9599
- var import_jsx_runtime62 = require("react/jsx-runtime");
9492
+ var import_jsx_runtime57 = require("react/jsx-runtime");
9600
9493
  var resetPageSchema = z4.object({
9601
9494
  password: z4.string().min(6, "Password must be at least 6 characters"),
9602
9495
  confirmPassword: z4.string().min(6, "Password must be at least 6 characters")
@@ -9662,14 +9555,14 @@ function ResetPasswordPage() {
9662
9555
  }
9663
9556
  };
9664
9557
  if (verifying) {
9665
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "h-screen w-full flex items-center justify-center bg-slate-50 dark:bg-[#0A0B10]", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "text-center space-y-4", children: [
9666
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_antd14.Spin, { size: "large" }),
9667
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: "text-slate-500 animate-pulse", children: "Verifying reset link..." })
9558
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "h-screen w-full flex items-center justify-center bg-slate-50 dark:bg-[#0A0B10]", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "text-center space-y-4", children: [
9559
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_antd14.Spin, { size: "large" }),
9560
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "text-slate-500 animate-pulse", children: "Verifying reset link..." })
9668
9561
  ] }) });
9669
9562
  }
9670
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex h-screen w-full overflow-hidden bg-white dark:bg-[#0A0B10]", children: [
9671
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "hidden lg:flex lg:w-1/2 relative overflow-hidden bg-slate-900 border-r border-slate-800", children: [
9672
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
9563
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex h-screen w-full overflow-hidden bg-white dark:bg-[#0A0B10]", children: [
9564
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "hidden lg:flex lg:w-1/2 relative overflow-hidden bg-slate-900 border-r border-slate-800", children: [
9565
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
9673
9566
  "div",
9674
9567
  {
9675
9568
  className: "absolute inset-0 z-0 opacity-40 bg-cover bg-center",
@@ -9678,35 +9571,35 @@ function ResetPasswordPage() {
9678
9571
  }
9679
9572
  }
9680
9573
  ),
9681
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "absolute inset-0 bg-linear-to-tr from-[#0A0B10] via-transparent to-indigo-500/10 z-10" }),
9682
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "relative z-20 p-12 flex flex-col justify-between w-full h-full", children: [
9683
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex items-center gap-3", children: [
9684
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "h-10 w-10 bg-indigo-600 rounded-lg flex items-center justify-center shadow-indigo-500/20 shadow-xl", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react22.Terminal, { className: "text-white w-6 h-6" }) }),
9685
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "text-2xl font-bold text-white tracking-widest uppercase", children: "Warqad UI" })
9574
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "absolute inset-0 bg-linear-to-tr from-[#0A0B10] via-transparent to-indigo-500/10 z-10" }),
9575
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "relative z-20 p-12 flex flex-col justify-between w-full h-full", children: [
9576
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex items-center gap-3", children: [
9577
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "h-10 w-10 bg-indigo-600 rounded-lg flex items-center justify-center shadow-indigo-500/20 shadow-xl", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_lucide_react22.Terminal, { className: "text-white w-6 h-6" }) }),
9578
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-2xl font-bold text-white tracking-widest uppercase", children: "Warqad UI" })
9686
9579
  ] }),
9687
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "max-w-md", children: [
9688
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("h1", { className: "text-5xl font-extrabold text-white mb-6 leading-tight", children: [
9580
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "max-w-md", children: [
9581
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("h1", { className: "text-5xl font-extrabold text-white mb-6 leading-tight", children: [
9689
9582
  "Secure ",
9690
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "text-indigo-400", children: "Access" }),
9583
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-indigo-400", children: "Access" }),
9691
9584
  " ",
9692
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("br", {}),
9585
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("br", {}),
9693
9586
  " ",
9694
9587
  "Simplified."
9695
9588
  ] }),
9696
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: "text-slate-400 text-lg leading-relaxed", children: "Reset your credentials securely and regain access to your dashboard in minutes." })
9589
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "text-slate-400 text-lg leading-relaxed", children: "Reset your credentials securely and regain access to your dashboard in minutes." })
9697
9590
  ] }),
9698
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "text-slate-500 text-sm italic", children: "Trusted by developers worldwide." })
9591
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "text-slate-500 text-sm italic", children: "Trusted by developers worldwide." })
9699
9592
  ] })
9700
9593
  ] }),
9701
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "w-full lg:w-1/2 p-8 lg:p-16 flex flex-col justify-center bg-white dark:bg-[#0A0B10] relative", children: [
9702
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "absolute top-4 right-4 z-50", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(ThemeToggle, {}) }),
9703
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "max-w-md w-full mx-auto", children: !isVerified || error ? /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "text-center space-y-6", children: [
9704
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "mx-auto w-16 h-16 bg-red-100 dark:bg-red-900/20 rounded-full flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react22.ShieldCheck, { className: "text-red-600 dark:text-red-400 w-8 h-8" }) }),
9705
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { children: [
9706
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("h2", { className: "text-3xl font-bold text-slate-900 dark:text-white mb-2", children: "Link Invalid" }),
9707
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: "text-slate-500 dark:text-slate-400", children: error || "The reset link is invalid or has already been used." })
9594
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "w-full lg:w-1/2 p-8 lg:p-16 flex flex-col justify-center bg-white dark:bg-[#0A0B10] relative", children: [
9595
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "absolute top-4 right-4 z-50", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ThemeToggle, {}) }),
9596
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "max-w-md w-full mx-auto", children: !isVerified || error ? /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "text-center space-y-6", children: [
9597
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "mx-auto w-16 h-16 bg-red-100 dark:bg-red-900/20 rounded-full flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_lucide_react22.ShieldCheck, { className: "text-red-600 dark:text-red-400 w-8 h-8" }) }),
9598
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { children: [
9599
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("h2", { className: "text-3xl font-bold text-slate-900 dark:text-white mb-2", children: "Link Invalid" }),
9600
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "text-slate-500 dark:text-slate-400", children: error || "The reset link is invalid or has already been used." })
9708
9601
  ] }),
9709
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
9602
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
9710
9603
  Button,
9711
9604
  {
9712
9605
  onClick: () => navigate("/login"),
@@ -9714,22 +9607,22 @@ function ResetPasswordPage() {
9714
9607
  children: "Back to Login"
9715
9608
  }
9716
9609
  )
9717
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
9718
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "mb-10", children: [
9719
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("h2", { className: "text-3xl font-bold text-slate-900 dark:text-white mb-3 tracking-tight", children: "Reset Password" }),
9720
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("p", { className: "text-slate-500 dark:text-slate-400", children: [
9610
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
9611
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "mb-10", children: [
9612
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("h2", { className: "text-3xl font-bold text-slate-900 dark:text-white mb-3 tracking-tight", children: "Reset Password" }),
9613
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("p", { className: "text-slate-500 dark:text-slate-400", children: [
9721
9614
  "Set a new, strong password for",
9722
9615
  " ",
9723
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "text-indigo-600 font-medium", children: email })
9616
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-indigo-600 font-medium", children: email })
9724
9617
  ] })
9725
9618
  ] }),
9726
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
9619
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
9727
9620
  "form",
9728
9621
  {
9729
9622
  onSubmit: methods.handleSubmit(onSubmit),
9730
9623
  className: "space-y-6",
9731
9624
  children: [
9732
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
9625
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
9733
9626
  Fields_default.Input,
9734
9627
  {
9735
9628
  form: methods,
@@ -9738,11 +9631,11 @@ function ResetPasswordPage() {
9738
9631
  type: "password",
9739
9632
  placeholder: "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",
9740
9633
  required: true,
9741
- icon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react22.Lock, { size: 18, className: "text-slate-400" }),
9634
+ icon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_lucide_react22.Lock, { size: 18, className: "text-slate-400" }),
9742
9635
  className: "bg-slate-50 dark:bg-slate-900/50 h-12"
9743
9636
  }
9744
9637
  ),
9745
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
9638
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
9746
9639
  Fields_default.Input,
9747
9640
  {
9748
9641
  form: methods,
@@ -9751,11 +9644,11 @@ function ResetPasswordPage() {
9751
9644
  type: "password",
9752
9645
  placeholder: "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",
9753
9646
  required: true,
9754
- icon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react22.ShieldCheck, { size: 18, className: "text-slate-400" }),
9647
+ icon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_lucide_react22.ShieldCheck, { size: 18, className: "text-slate-400" }),
9755
9648
  className: "bg-slate-50 dark:bg-slate-900/50 h-12"
9756
9649
  }
9757
9650
  ),
9758
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
9651
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
9759
9652
  Button,
9760
9653
  {
9761
9654
  type: "submit",
@@ -9763,7 +9656,7 @@ function ResetPasswordPage() {
9763
9656
  className: "w-full h-12 bg-indigo-600 hover:bg-indigo-500 text-white font-semibold flex items-center justify-center gap-2",
9764
9657
  children: [
9765
9658
  "Update Password",
9766
- !isLoading && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react22.ArrowRight, { size: 18 })
9659
+ !isLoading && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_lucide_react22.ArrowRight, { size: 18 })
9767
9660
  ]
9768
9661
  }
9769
9662
  )
@@ -9780,7 +9673,7 @@ var ResetPasswordPage_default = ResetPasswordPage;
9780
9673
  var import_lucide_react23 = require("lucide-react");
9781
9674
  var import_react_router_dom12 = require("react-router-dom");
9782
9675
  var import_antd15 = require("antd");
9783
- var import_jsx_runtime63 = require("react/jsx-runtime");
9676
+ var import_jsx_runtime58 = require("react/jsx-runtime");
9784
9677
  var UserProfile = ({
9785
9678
  items,
9786
9679
  name,
@@ -9813,21 +9706,21 @@ var UserProfile = ({
9813
9706
  const defaultItems = [
9814
9707
  {
9815
9708
  label: "My Profile",
9816
- icon: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_lucide_react23.User, { size: 18 }),
9709
+ icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react23.User, { size: 18 }),
9817
9710
  onClick: () => navigate("profile"),
9818
9711
  className: "min-w-[150px]"
9819
9712
  },
9820
9713
  {
9821
9714
  label: "Logout",
9822
- icon: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_lucide_react23.LogOut, { size: 18 }),
9715
+ icon: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react23.LogOut, { size: 18 }),
9823
9716
  onClick: logout,
9824
9717
  className: "text-red-500 hover:bg-red-50 dark:hover:bg-red-950/20"
9825
9718
  }
9826
9719
  ];
9827
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex items-center gap-3", children: [
9828
- showThemeToggle && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(ThemeToggle, {}),
9829
- showThemeToggle && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "w-px h-6 mx-2 bg-gray-200 dark:bg-gray-800" }),
9830
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
9720
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center gap-3", children: [
9721
+ showThemeToggle && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ThemeToggle, {}),
9722
+ showThemeToggle && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "w-px h-6 mx-2 bg-gray-200 dark:bg-gray-800" }),
9723
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
9831
9724
  ProfileDropdown,
9832
9725
  {
9833
9726
  name: name || account?.name || "User",
@@ -9845,12 +9738,12 @@ var UserProfile_default = UserProfile;
9845
9738
  // src/components/users/ProfilePage.tsx
9846
9739
  var import_react_router_dom13 = require("react-router-dom");
9847
9740
  var import_lucide_react24 = require("lucide-react");
9848
- var import_jsx_runtime64 = require("react/jsx-runtime");
9741
+ var import_jsx_runtime59 = require("react/jsx-runtime");
9849
9742
  var ProfilePage = () => {
9850
9743
  const navigate = (0, import_react_router_dom13.useNavigate)();
9851
9744
  const { user, account } = useAuth();
9852
9745
  if (!user) {
9853
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "flex items-center justify-center min-h-[400px]", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("h1", { children: "Please login to view your profile" }) });
9746
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "flex items-center justify-center min-h-[400px]", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("h1", { children: "Please login to view your profile" }) });
9854
9747
  }
9855
9748
  const extraInfo = [
9856
9749
  {
@@ -9869,19 +9762,19 @@ var ProfilePage = () => {
9869
9762
  copiable: false
9870
9763
  }
9871
9764
  ];
9872
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "p-4 sm:p-8 space-y-6", children: [
9873
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "max-w-5xl mx-auto", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
9765
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "p-4 sm:p-8 space-y-6", children: [
9766
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "max-w-5xl mx-auto", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
9874
9767
  Button,
9875
9768
  {
9876
9769
  variant: "outline",
9877
9770
  size: "sm",
9878
9771
  onClick: () => navigate(-1),
9879
- icon: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_lucide_react24.ArrowLeft, { size: 16 }),
9772
+ icon: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_lucide_react24.ArrowLeft, { size: 16 }),
9880
9773
  className: "rounded-full font-bold px-5",
9881
9774
  children: "Back"
9882
9775
  }
9883
9776
  ) }),
9884
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
9777
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
9885
9778
  ProfileView,
9886
9779
  {
9887
9780
  name: account?.name || "User Account",
@@ -9901,7 +9794,7 @@ var import_react_router_dom14 = require("react-router-dom");
9901
9794
  var import_lucide_react25 = require("lucide-react");
9902
9795
  var import_react43 = require("react");
9903
9796
  var import_antd16 = require("antd");
9904
- var import_jsx_runtime65 = require("react/jsx-runtime");
9797
+ var import_jsx_runtime60 = require("react/jsx-runtime");
9905
9798
  function Wallets({ v, url }) {
9906
9799
  const { branchId } = (0, import_react_router_dom14.useParams)();
9907
9800
  const [deleteWallet, setDeleteWallet] = (0, import_react43.useState)(null);
@@ -9916,12 +9809,12 @@ function Wallets({ v, url }) {
9916
9809
  const items = (data2) => [
9917
9810
  {
9918
9811
  label: `Edit Wallet`,
9919
- icon: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_lucide_react25.FilePenLine, { size: 16 }),
9812
+ icon: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_lucide_react25.FilePenLine, { size: 16 }),
9920
9813
  onClick: () => navigate(`update?id=${data2?._id}`)
9921
9814
  },
9922
9815
  {
9923
9816
  label: `Delete Wallet`,
9924
- icon: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_lucide_react25.Trash2, { className: "text-red-500", size: 16 }),
9817
+ icon: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_lucide_react25.Trash2, { className: "text-red-500", size: 16 }),
9925
9818
  onClick: () => setDeleteWallet(data2)
9926
9819
  }
9927
9820
  ].filter(Boolean);
@@ -9931,7 +9824,7 @@ function Wallets({ v, url }) {
9931
9824
  header: "Name",
9932
9825
  cell: ({ row }) => {
9933
9826
  const wallet = row.original;
9934
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { children: wallet?.name });
9827
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { children: wallet?.name });
9935
9828
  }
9936
9829
  },
9937
9830
  {
@@ -9939,7 +9832,7 @@ function Wallets({ v, url }) {
9939
9832
  header: "Type",
9940
9833
  cell: ({ row }) => {
9941
9834
  const wallet = row.original;
9942
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "capitalize", children: wallet?.type });
9835
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "capitalize", children: wallet?.type });
9943
9836
  }
9944
9837
  },
9945
9838
  {
@@ -9947,7 +9840,7 @@ function Wallets({ v, url }) {
9947
9840
  header: "Currency",
9948
9841
  cell: ({ row }) => {
9949
9842
  const wallet = row.original;
9950
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { children: wallet?.currency });
9843
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { children: wallet?.currency });
9951
9844
  }
9952
9845
  },
9953
9846
  {
@@ -9955,7 +9848,7 @@ function Wallets({ v, url }) {
9955
9848
  header: "Account No",
9956
9849
  cell: ({ row }) => {
9957
9850
  const wallet = row.original;
9958
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { children: wallet?.accountNo || "N/A" });
9851
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { children: wallet?.accountNo || "N/A" });
9959
9852
  }
9960
9853
  },
9961
9854
  {
@@ -9963,13 +9856,13 @@ function Wallets({ v, url }) {
9963
9856
  header: "Actions",
9964
9857
  cell: ({ row }) => {
9965
9858
  const data2 = row.original;
9966
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
9859
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
9967
9860
  Dropdown,
9968
9861
  {
9969
9862
  className: "cursor-pointer w-[150px]",
9970
9863
  items: items(data2),
9971
9864
  triggerMode: "hover",
9972
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_lucide_react25.EllipsisVertical, {})
9865
+ children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_lucide_react25.EllipsisVertical, {})
9973
9866
  }
9974
9867
  );
9975
9868
  }
@@ -9987,9 +9880,9 @@ function Wallets({ v, url }) {
9987
9880
  return error;
9988
9881
  }
9989
9882
  };
9990
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
9991
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Modal2, {}),
9992
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
9883
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
9884
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Modal2, {}),
9885
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
9993
9886
  ConfirmModal,
9994
9887
  {
9995
9888
  isOpen: !!deleteWallet,
@@ -10002,7 +9895,7 @@ function Wallets({ v, url }) {
10002
9895
  children: null
10003
9896
  }
10004
9897
  ),
10005
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
9898
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
10006
9899
  TransactionViewComponent,
10007
9900
  {
10008
9901
  columns,
@@ -10036,7 +9929,7 @@ var import_zod11 = require("@hookform/resolvers/zod");
10036
9929
  var import_antd17 = require("antd");
10037
9930
  var import_react44 = require("react");
10038
9931
  var import_react_router_dom15 = require("react-router-dom");
10039
- var import_jsx_runtime66 = require("react/jsx-runtime");
9932
+ var import_jsx_runtime61 = require("react/jsx-runtime");
10040
9933
  function WalletForm() {
10041
9934
  const { enums } = useWarqadConfig();
10042
9935
  const { branchId } = (0, import_react_router_dom15.useParams)();
@@ -10098,24 +9991,24 @@ function WalletForm() {
10098
9991
  fetches();
10099
9992
  }
10100
9993
  }, [id]);
10101
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
9994
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
10102
9995
  Card,
10103
9996
  {
10104
9997
  className: "max-w-4xl mx-auto mt-10 relative",
10105
9998
  isLoading: isLoadingGet,
10106
9999
  loadingText: "Processing...",
10107
10000
  children: [
10108
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Card.Header, { children: [
10109
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Card.Title, { children: `${isEdit ? "Edit" : "Add"} Wallet` }),
10110
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Card.Description, { children: isEdit ? `Update the details for this wallet` : `Create a new wallet and add it to your list` })
10001
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Card.Header, { children: [
10002
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Card.Title, { children: `${isEdit ? "Edit" : "Add"} Wallet` }),
10003
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Card.Description, { children: isEdit ? `Update the details for this wallet` : `Create a new wallet and add it to your list` })
10111
10004
  ] }),
10112
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Card.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
10005
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Card.Content, { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
10113
10006
  "form",
10114
10007
  {
10115
10008
  onSubmit: handleSubmit(onSubmit, (errors) => console.log(errors)),
10116
10009
  children: [
10117
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-4", children: [
10118
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
10010
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-4", children: [
10011
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
10119
10012
  Fields_default.Input,
10120
10013
  {
10121
10014
  label: "Name",
@@ -10126,7 +10019,7 @@ function WalletForm() {
10126
10019
  required: true
10127
10020
  }
10128
10021
  ),
10129
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
10022
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
10130
10023
  Fields_default.Select,
10131
10024
  {
10132
10025
  label: "Wallet Type",
@@ -10136,7 +10029,7 @@ function WalletForm() {
10136
10029
  enumName: "walletTypes"
10137
10030
  }
10138
10031
  ),
10139
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
10032
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
10140
10033
  Fields_default.Select,
10141
10034
  {
10142
10035
  label: "Currency",
@@ -10146,7 +10039,7 @@ function WalletForm() {
10146
10039
  enumName: "currencies"
10147
10040
  }
10148
10041
  ),
10149
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
10042
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
10150
10043
  Fields_default.Input,
10151
10044
  {
10152
10045
  label: "Account Number",
@@ -10156,7 +10049,7 @@ function WalletForm() {
10156
10049
  placeholder: "Enter account number (optional)"
10157
10050
  }
10158
10051
  ),
10159
- !branchId && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
10052
+ !branchId && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
10160
10053
  Feilds_default.Branches,
10161
10054
  {
10162
10055
  label: "Branch",
@@ -10167,7 +10060,7 @@ function WalletForm() {
10167
10060
  }
10168
10061
  )
10169
10062
  ] }),
10170
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("footer", { className: "flex justify-end mt-4", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
10063
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("footer", { className: "flex justify-end mt-4", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
10171
10064
  Button,
10172
10065
  {
10173
10066
  isLoading,
@@ -10189,7 +10082,7 @@ var WalletForm_default = WalletForm;
10189
10082
 
10190
10083
  // src/components/wallets/Feilds/Wallet.tsx
10191
10084
  var import_react_router_dom16 = require("react-router-dom");
10192
- var import_jsx_runtime67 = require("react/jsx-runtime");
10085
+ var import_jsx_runtime62 = require("react/jsx-runtime");
10193
10086
  function Wallet({
10194
10087
  name,
10195
10088
  label,
@@ -10209,8 +10102,8 @@ function Wallet({
10209
10102
  showBalance,
10210
10103
  accountId: walletId
10211
10104
  });
10212
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex flex-col gap-2", children: [
10213
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
10105
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex flex-col gap-2", children: [
10106
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
10214
10107
  Fields_default.SearchApi,
10215
10108
  {
10216
10109
  name,
@@ -10227,7 +10120,7 @@ function Wallet({
10227
10120
  disabled
10228
10121
  }
10229
10122
  ),
10230
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(BalanceView, {})
10123
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(BalanceView, {})
10231
10124
  ] });
10232
10125
  }
10233
10126
  var Wallet_default = Wallet;
@@ -10237,6 +10130,111 @@ var WalletField = {
10237
10130
  Wallet: Wallet_default
10238
10131
  };
10239
10132
  var Feilds_default2 = WalletField;
10133
+
10134
+ // src/components/ErrorPage/ErrorPage.tsx
10135
+ var import_jsx_runtime63 = require("react/jsx-runtime");
10136
+ var ErrorPageBase = ({
10137
+ title,
10138
+ message: message16,
10139
+ statusCode,
10140
+ action,
10141
+ className = ""
10142
+ }) => {
10143
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
10144
+ "div",
10145
+ {
10146
+ className: `flex-1 m-auto h-full w-full min-h-[50vh] flex flex-col items-center justify-center p-6 text-zinc-900 dark:text-zinc-100 ${className}`,
10147
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "relative flex flex-col items-center justify-center w-full max-w-2xl text-center", children: [
10148
+ statusCode && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "absolute inset-0 flex items-center justify-center z-0 select-none pointer-events-none opacity-[0.03] dark:opacity-5", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-[12rem] sm:text-[16rem] md:text-[20rem] font-bold leading-none tracking-tighter", children: statusCode }) }),
10149
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "relative z-10 space-y-6", children: [
10150
+ statusCode && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("h2", { className: "text-xl md:text-2xl font-semibold text-zinc-500 dark:text-zinc-400", children: [
10151
+ "Error ",
10152
+ statusCode
10153
+ ] }),
10154
+ title && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("h1", { className: "text-4xl md:text-5xl font-extrabold tracking-tight drop-shadow-sm", children: title }),
10155
+ message16 && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { className: "text-lg md:text-xl text-zinc-600 dark:text-zinc-400 max-w-md mx-auto", children: message16 }),
10156
+ action && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "pt-8", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
10157
+ "button",
10158
+ {
10159
+ onClick: action.onClick,
10160
+ className: "px-8 py-3.5 rounded-full text-white font-semibold shadow-[0_4px_14px_0_rgba(0,0,0,0.1)] hover:shadow-[0_6px_20px_rgba(0,0,0,0.15)] transition-all hover:-translate-y-0.5 active:translate-y-0 focus:outline-none focus:ring-2 focus:ring-offset-2",
10161
+ style: { backgroundColor: "var(--primary-color, #3b82f6)" },
10162
+ children: action.label
10163
+ }
10164
+ ) })
10165
+ ] })
10166
+ ] })
10167
+ }
10168
+ );
10169
+ };
10170
+
10171
+ // src/components/ErrorPage/ErrorPage.500.tsx
10172
+ var import_jsx_runtime64 = require("react/jsx-runtime");
10173
+ var ErrorPage500 = (props) => {
10174
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
10175
+ ErrorPageBase,
10176
+ {
10177
+ statusCode: 500,
10178
+ title: "Internal Server Error",
10179
+ message: "Oops, something went wrong on our end. Please try again later.",
10180
+ action: { label: "Go Home", onClick: () => window.location.href = "/" },
10181
+ ...props
10182
+ }
10183
+ );
10184
+ };
10185
+
10186
+ // src/components/ErrorPage/ErrorPage.404.tsx
10187
+ var import_jsx_runtime65 = require("react/jsx-runtime");
10188
+ var ErrorPage404 = (props) => {
10189
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
10190
+ ErrorPageBase,
10191
+ {
10192
+ statusCode: 404,
10193
+ title: "Page Not Found",
10194
+ message: "The page you are looking for doesn't exist or has been moved.",
10195
+ action: { label: "Go Home", onClick: () => window.location.href = "/" },
10196
+ ...props
10197
+ }
10198
+ );
10199
+ };
10200
+
10201
+ // src/components/ErrorPage/ErrorPage.401.tsx
10202
+ var import_jsx_runtime66 = require("react/jsx-runtime");
10203
+ var ErrorPage401 = (props) => {
10204
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
10205
+ ErrorPageBase,
10206
+ {
10207
+ statusCode: 401,
10208
+ title: "Unauthorized",
10209
+ message: "You don't have permission to access this page.",
10210
+ action: { label: "Go Home", onClick: () => window.location.href = "/" },
10211
+ ...props
10212
+ }
10213
+ );
10214
+ };
10215
+
10216
+ // src/components/ErrorPage/ErrorPage.400.tsx
10217
+ var import_jsx_runtime67 = require("react/jsx-runtime");
10218
+ var ErrorPage400 = (props) => {
10219
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
10220
+ ErrorPageBase,
10221
+ {
10222
+ statusCode: 400,
10223
+ title: "Bad Request",
10224
+ message: "Your request could not be processed. Please try again.",
10225
+ action: { label: "Go Home", onClick: () => window.location.href = "/" },
10226
+ ...props
10227
+ }
10228
+ );
10229
+ };
10230
+
10231
+ // src/components/ErrorPage/index.ts
10232
+ var ErrorPage = Object.assign(ErrorPageBase, {
10233
+ 500: ErrorPage500,
10234
+ 404: ErrorPage404,
10235
+ 401: ErrorPage401,
10236
+ 400: ErrorPage400
10237
+ });
10240
10238
  // Annotate the CommonJS export names for ESM import in node:
10241
10239
  0 && (module.exports = {
10242
10240
  AccountFields,