warqadui 0.0.90 → 0.0.92

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