braid-ui 1.0.57 → 1.0.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -8257,7 +8257,7 @@ var StatementView = ({
8257
8257
  ] });
8258
8258
  };
8259
8259
  var ACHDetailsSection = ({ data }) => {
8260
- const formatCurrency3 = (value) => {
8260
+ const formatCurrency4 = (value) => {
8261
8261
  return new Intl.NumberFormat("en-US", {
8262
8262
  style: "currency",
8263
8263
  currency: "USD",
@@ -8293,7 +8293,7 @@ var ACHDetailsSection = ({ data }) => {
8293
8293
  layout: "horizontal"
8294
8294
  }
8295
8295
  ),
8296
- /* @__PURE__ */ jsxRuntime.jsx(InfoField, { label: "Amount", value: formatCurrency3(data.amount), layout: "horizontal" }),
8296
+ /* @__PURE__ */ jsxRuntime.jsx(InfoField, { label: "Amount", value: formatCurrency4(data.amount), layout: "horizontal" }),
8297
8297
  /* @__PURE__ */ jsxRuntime.jsx(InfoField, { label: "SEC Code", value: data.secCode, layout: "horizontal" }),
8298
8298
  /* @__PURE__ */ jsxRuntime.jsx(InfoField, { label: "Company Entry Description", value: data.companyEntryDescription, layout: "horizontal" }),
8299
8299
  data.companyDiscretionaryData && /* @__PURE__ */ jsxRuntime.jsx(InfoField, { label: "Company Discretionary Data", value: data.companyDiscretionaryData, layout: "horizontal" }),
@@ -8460,7 +8460,6 @@ var NewTransactionView = ({
8460
8460
  onEditCounterparty,
8461
8461
  onTransactionTypeChange,
8462
8462
  onSubmit,
8463
- onCancel,
8464
8463
  onConfirmationClose,
8465
8464
  onConfirmationOpenChange,
8466
8465
  onNewTransaction,
@@ -8850,25 +8849,22 @@ var NewTransactionView = ({
8850
8849
  ] })
8851
8850
  }
8852
8851
  ) }),
8853
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-3 justify-end pt-4 border-t border-border", children: [
8854
- /* @__PURE__ */ jsxRuntime.jsx(Button, { type: "button", variant: "outline", onClick: onCancel, className: "w-32", children: "Cancel" }),
8855
- /* @__PURE__ */ jsxRuntime.jsx(
8856
- Button,
8857
- {
8858
- type: "button",
8859
- onClick: onSubmit,
8860
- className: "w-48",
8861
- disabled: !transactionType || !accountNumber || requiresCounterparty && !counterpartyName || isTransfer && !receiverAccountLookedUp || isAdjustment && (!adjustmentDirection || !adjustmentType) || !amount || !form.watch("certifyInformation") || isSubmitting,
8862
- children: isSubmitting ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
8863
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "h-4 w-4 mr-2 animate-spin" }),
8864
- "Submitting..."
8865
- ] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
8866
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCircle2, { className: "h-4 w-4 mr-2" }),
8867
- "Submit Transaction"
8868
- ] })
8869
- }
8870
- )
8871
- ] })
8852
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-end pt-4 border-t border-border", children: /* @__PURE__ */ jsxRuntime.jsx(
8853
+ Button,
8854
+ {
8855
+ type: "button",
8856
+ onClick: onSubmit,
8857
+ className: "w-48",
8858
+ disabled: !transactionType || !accountNumber || requiresCounterparty && !counterpartyName || isTransfer && !receiverAccountLookedUp || isAdjustment && (!adjustmentDirection || !adjustmentType) || !amount || !form.watch("certifyInformation") || isSubmitting,
8859
+ children: isSubmitting ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
8860
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "h-4 w-4 mr-2 animate-spin" }),
8861
+ "Submitting..."
8862
+ ] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
8863
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCircle2, { className: "h-4 w-4 mr-2" }),
8864
+ "Submit Transaction"
8865
+ ] })
8866
+ }
8867
+ ) })
8872
8868
  ] }) })
8873
8869
  ] }) }),
8874
8870
  /* @__PURE__ */ jsxRuntime.jsx(Dialog, { open: confirmationOpen, onOpenChange: () => {
@@ -8930,17 +8926,11 @@ var NewTransactionView = ({
8930
8926
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: "Please review the error message above and try again. If the problem persists, contact support." })
8931
8927
  ] }) }),
8932
8928
  /* @__PURE__ */ jsxRuntime.jsxs(DialogFooter, { className: "sm:justify-end gap-2 flex-shrink-0", children: [
8933
- submissionStatus === "error" && /* @__PURE__ */ jsxRuntime.jsx(Button, { type: "button", variant: "outline", onClick: () => onConfirmationOpenChange(false), children: "Edit" }),
8934
- submissionStatus === "success" && /* @__PURE__ */ jsxRuntime.jsx(Button, { type: "button", variant: "outline", onClick: onNewTransaction, children: "New Transaction" }),
8935
- /* @__PURE__ */ jsxRuntime.jsx(
8936
- Button,
8937
- {
8938
- type: "button",
8939
- onClick: onConfirmationClose,
8940
- variant: submissionStatus === "success" ? "default" : "outline",
8941
- children: submissionStatus === "success" ? "View Transaction" : "Close"
8942
- }
8943
- )
8929
+ submissionStatus === "error" && /* @__PURE__ */ jsxRuntime.jsx(Button, { type: "button", onClick: () => onConfirmationOpenChange(false), children: "Edit" }),
8930
+ submissionStatus === "success" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
8931
+ /* @__PURE__ */ jsxRuntime.jsx(Button, { type: "button", variant: "outline", onClick: onNewTransaction, children: "New Transaction" }),
8932
+ /* @__PURE__ */ jsxRuntime.jsx(Button, { type: "button", onClick: onConfirmationClose, children: "View Transaction" })
8933
+ ] })
8944
8934
  ] })
8945
8935
  ] }) })
8946
8936
  ] });
@@ -14032,7 +14022,7 @@ var TransactionHistory = () => {
14032
14022
  setRowsPerPage(value);
14033
14023
  setCurrentPage(1);
14034
14024
  };
14035
- const formatCurrency3 = (value) => {
14025
+ const formatCurrency4 = (value) => {
14036
14026
  const formatted = new Intl.NumberFormat("en-US", {
14037
14027
  style: "currency",
14038
14028
  currency: "USD",
@@ -14321,7 +14311,7 @@ var TransactionHistory = () => {
14321
14311
  children: [
14322
14312
  /* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-3 py-2 text-xs", children: transaction.created }),
14323
14313
  /* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-3 py-2 text-xs", children: transaction.accountNumber }),
14324
- /* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-3 py-2 text-xs text-right", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: transaction.amount < 0 ? "text-destructive" : "", children: formatCurrency3(transaction.amount) }) }),
14314
+ /* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-3 py-2 text-xs text-right", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: transaction.amount < 0 ? "text-destructive" : "", children: formatCurrency4(transaction.amount) }) }),
14325
14315
  /* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-3 py-2", children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "link", className: "h-auto p-0 font-normal text-xs", children: transaction.customer }) }),
14326
14316
  /* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-3 py-2", children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "link", className: "h-auto p-0 font-normal text-xs", children: transaction.counterparty }) }),
14327
14317
  /* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-3 py-2 text-xs truncate", children: transaction.description }),
@@ -14804,9 +14794,6 @@ function NewTransaction() {
14804
14794
  setConfirmationOpen(false);
14805
14795
  resetForm();
14806
14796
  };
14807
- const handleCancel = () => {
14808
- navigate("/dashboard");
14809
- };
14810
14797
  const isReviewReady = React15.useMemo(() => {
14811
14798
  const data = form.watch();
14812
14799
  const requiresCounterparty = ["ach", "wire"].includes(data.transactionType);
@@ -14851,7 +14838,6 @@ function NewTransaction() {
14851
14838
  onEditCounterparty: handleEditCounterparty,
14852
14839
  onTransactionTypeChange: handleTransactionTypeChange,
14853
14840
  onSubmit: handleSubmit,
14854
- onCancel: handleCancel,
14855
14841
  onConfirmationClose: handleConfirmationClose,
14856
14842
  onConfirmationOpenChange: setConfirmationOpen,
14857
14843
  onNewTransaction: handleNewTransaction,
@@ -14862,66 +14848,60 @@ function NewTransaction() {
14862
14848
  onEditReceiverAccount: handleEditReceiverAccount,
14863
14849
  isReviewReady,
14864
14850
  adjustmentTypeOptions,
14865
- transactionTypeOptions
14851
+ transactionTypeOptions,
14852
+ showSuccessInfoBox: true,
14853
+ successInfoMessage: "The transaction is being manually reviewed"
14866
14854
  }
14867
14855
  );
14868
14856
  }
14869
- var TransactionDetail = () => {
14870
- const { id } = reactRouterDom.useParams();
14871
- const navigate = reactRouterDom.useNavigate();
14872
- const transaction = mockTransactions.find((t) => t.id === id);
14873
- if (!transaction) {
14874
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "container mx-auto px-4 py-8", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center", children: [
14875
- /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-2xl font-bold mb-2", children: "Transaction Not Found" }),
14876
- /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground mb-4", children: [
14877
- "The transaction #",
14878
- id,
14879
- " could not be found."
14880
- ] }),
14881
- /* @__PURE__ */ jsxRuntime.jsx(Button, { onClick: () => navigate("/transactions/history"), children: "Back to Transaction History" })
14882
- ] }) });
14857
+ var getStatusVariant = (status) => {
14858
+ switch (status) {
14859
+ case "POSTED":
14860
+ return "success";
14861
+ case "PENDING":
14862
+ return "warning";
14863
+ case "FAILED":
14864
+ return "destructive";
14865
+ case "CANCELLED":
14866
+ return "outline";
14867
+ default:
14868
+ return "outline";
14883
14869
  }
14884
- const getStatusVariant3 = (status) => {
14885
- switch (status) {
14886
- case "POSTED":
14887
- return "success";
14888
- case "PENDING":
14889
- return "warning";
14890
- case "FAILED":
14891
- return "destructive";
14892
- case "CANCELLED":
14893
- return "outline";
14894
- default:
14895
- return "outline";
14896
- }
14897
- };
14898
- const getProcessingStatusVariant = (status) => {
14899
- switch (status) {
14900
- case "CONFIRMED":
14901
- return "success";
14902
- case "SENT":
14903
- return "success";
14904
- case "SUBMITTED":
14905
- return "warning";
14906
- case "CUSTOMER_REVIEW":
14907
- return "warning";
14908
- case "MANUAL_REVIEW":
14909
- return "warning";
14910
- case "INITIATED":
14911
- return "outline";
14912
- default:
14913
- return "outline";
14914
- }
14915
- };
14916
- const formatCurrency3 = (value) => {
14917
- return new Intl.NumberFormat("en-US", {
14918
- style: "currency",
14919
- currency: "USD",
14920
- minimumFractionDigits: 2
14921
- }).format(value);
14922
- };
14923
- const isWireTransfer = transaction.transactionType.toLowerCase().includes("wire");
14924
- const isACHTransfer = transaction.transactionType.toLowerCase().includes("ach");
14870
+ };
14871
+ var getProcessingStatusVariant = (status) => {
14872
+ switch (status) {
14873
+ case "CONFIRMED":
14874
+ case "SENT":
14875
+ return "success";
14876
+ case "SUBMITTED":
14877
+ case "CUSTOMER_REVIEW":
14878
+ case "MANUAL_REVIEW":
14879
+ return "warning";
14880
+ case "INITIATED":
14881
+ default:
14882
+ return "outline";
14883
+ }
14884
+ };
14885
+ var formatCurrency3 = (value) => {
14886
+ return new Intl.NumberFormat("en-US", {
14887
+ style: "currency",
14888
+ currency: "USD",
14889
+ minimumFractionDigits: 2
14890
+ }).format(value);
14891
+ };
14892
+ var TransactionDetailView = ({
14893
+ transaction,
14894
+ timelineEvents,
14895
+ isWireTransfer,
14896
+ isACHTransfer,
14897
+ onReturn,
14898
+ onCancel,
14899
+ onAccountClick,
14900
+ onCustomerClick,
14901
+ onCounterpartyClick,
14902
+ onOFACClick,
14903
+ onProductClick
14904
+ }) => {
14925
14905
  return /* @__PURE__ */ jsxRuntime.jsx(
14926
14906
  PageLayout,
14927
14907
  {
@@ -14937,7 +14917,7 @@ var TransactionDetail = () => {
14937
14917
  isInbound: transaction.isInbound
14938
14918
  }
14939
14919
  ),
14940
- /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: getStatusVariant3(transaction.status), children: transaction.status }),
14920
+ /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: getStatusVariant(transaction.status), children: transaction.status }),
14941
14921
  /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: getProcessingStatusVariant(transaction.processingStatus), children: transaction.processingStatus })
14942
14922
  ] }),
14943
14923
  maxWidth: "full",
@@ -14945,12 +14925,12 @@ var TransactionDetail = () => {
14945
14925
  {
14946
14926
  label: "Return",
14947
14927
  variant: "outline",
14948
- onClick: () => console.log("Return transaction")
14928
+ onClick: onReturn
14949
14929
  },
14950
14930
  {
14951
14931
  label: "Cancel",
14952
14932
  variant: "default",
14953
- onClick: () => console.log("Cancel transaction")
14933
+ onClick: onCancel
14954
14934
  }
14955
14935
  ],
14956
14936
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col lg:flex-row items-start gap-6", children: [
@@ -14960,7 +14940,15 @@ var TransactionDetail = () => {
14960
14940
  InfoField,
14961
14941
  {
14962
14942
  label: "Account Number",
14963
- value: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "link", className: "h-auto p-0 text-sm", children: transaction.accountNumber }),
14943
+ value: /* @__PURE__ */ jsxRuntime.jsx(
14944
+ Button,
14945
+ {
14946
+ variant: "link",
14947
+ className: "h-auto p-0 text-sm",
14948
+ onClick: () => onAccountClick(transaction.accountNumber),
14949
+ children: transaction.accountNumber
14950
+ }
14951
+ ),
14964
14952
  layout: "horizontal"
14965
14953
  }
14966
14954
  ),
@@ -14968,7 +14956,15 @@ var TransactionDetail = () => {
14968
14956
  InfoField,
14969
14957
  {
14970
14958
  label: "Customer",
14971
- value: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "link", className: "h-auto p-0 text-sm", children: transaction.customer }),
14959
+ value: /* @__PURE__ */ jsxRuntime.jsx(
14960
+ Button,
14961
+ {
14962
+ variant: "link",
14963
+ className: "h-auto p-0 text-sm",
14964
+ onClick: () => onCustomerClick(transaction.customer),
14965
+ children: transaction.customer
14966
+ }
14967
+ ),
14972
14968
  layout: "horizontal"
14973
14969
  }
14974
14970
  ),
@@ -14977,12 +14973,35 @@ var TransactionDetail = () => {
14977
14973
  InfoField,
14978
14974
  {
14979
14975
  label: "Counterparty",
14980
- value: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "link", className: "h-auto p-0 text-sm", children: transaction.counterparty }),
14976
+ value: /* @__PURE__ */ jsxRuntime.jsx(
14977
+ Button,
14978
+ {
14979
+ variant: "link",
14980
+ className: "h-auto p-0 text-sm",
14981
+ onClick: () => onCounterpartyClick(transaction.counterparty),
14982
+ children: transaction.counterparty
14983
+ }
14984
+ ),
14981
14985
  layout: "horizontal"
14982
14986
  }
14983
14987
  ),
14984
14988
  /* @__PURE__ */ jsxRuntime.jsx(InfoField, { label: "Post Date", value: transaction.created.split(" ")[0], layout: "horizontal" }),
14985
- /* @__PURE__ */ jsxRuntime.jsx(InfoField, { label: "OFAC ID", value: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "link", className: "h-auto p-0 text-sm", children: "18323208" }), layout: "horizontal" }),
14989
+ /* @__PURE__ */ jsxRuntime.jsx(
14990
+ InfoField,
14991
+ {
14992
+ label: "OFAC ID",
14993
+ value: /* @__PURE__ */ jsxRuntime.jsx(
14994
+ Button,
14995
+ {
14996
+ variant: "link",
14997
+ className: "h-auto p-0 text-sm",
14998
+ onClick: () => onOFACClick("18323208"),
14999
+ children: "18323208"
15000
+ }
15001
+ ),
15002
+ layout: "horizontal"
15003
+ }
15004
+ ),
14986
15005
  /* @__PURE__ */ jsxRuntime.jsx(InfoField, { label: "Original Filename", value: "-", layout: "horizontal" }),
14987
15006
  /* @__PURE__ */ jsxRuntime.jsx(InfoField, { label: "Loaded From File", value: "iso21130757012764355B7.xml.126534273Q299", layout: "horizontal" }),
14988
15007
  /* @__PURE__ */ jsxRuntime.jsx(InfoField, { label: "Payment ID", value: transaction.id, layout: "horizontal" }),
@@ -14998,7 +15017,15 @@ var TransactionDetail = () => {
14998
15017
  InfoField,
14999
15018
  {
15000
15019
  label: "Product ID",
15001
- value: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "link", className: "h-auto p-0 text-sm", children: "130" }),
15020
+ value: /* @__PURE__ */ jsxRuntime.jsx(
15021
+ Button,
15022
+ {
15023
+ variant: "link",
15024
+ className: "h-auto p-0 text-sm",
15025
+ onClick: () => onProductClick("130"),
15026
+ children: "130"
15027
+ }
15028
+ ),
15002
15029
  layout: "horizontal"
15003
15030
  }
15004
15031
  ),
@@ -15008,11 +15035,66 @@ var TransactionDetail = () => {
15008
15035
  isACHTransfer && transaction.achDetails && /* @__PURE__ */ jsxRuntime.jsx(ACHDetailsSection, { data: transaction.achDetails }),
15009
15036
  isWireTransfer && transaction.wireDetails && /* @__PURE__ */ jsxRuntime.jsx(WireDetailsSection, { data: transaction.wireDetails })
15010
15037
  ] }),
15011
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "lg:w-64", children: /* @__PURE__ */ jsxRuntime.jsx(FormCard, { title: "Transaction Timeline", children: /* @__PURE__ */ jsxRuntime.jsx(AlertTimeline, { events: mockTransactionTimeline }) }) })
15038
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "lg:w-64", children: /* @__PURE__ */ jsxRuntime.jsx(FormCard, { title: "Transaction Timeline", children: /* @__PURE__ */ jsxRuntime.jsx(AlertTimeline, { events: timelineEvents }) }) })
15012
15039
  ] })
15013
15040
  }
15014
15041
  );
15015
15042
  };
15043
+ var TransactionDetail = () => {
15044
+ const { id } = reactRouterDom.useParams();
15045
+ const navigate = reactRouterDom.useNavigate();
15046
+ const transaction = mockTransactions.find((t) => t.id === id);
15047
+ if (!transaction) {
15048
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "container mx-auto px-4 py-8", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center", children: [
15049
+ /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-2xl font-bold mb-2", children: "Transaction Not Found" }),
15050
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground mb-4", children: [
15051
+ "The transaction #",
15052
+ id,
15053
+ " could not be found."
15054
+ ] }),
15055
+ /* @__PURE__ */ jsxRuntime.jsx(Button, { onClick: () => navigate("/transactions/history"), children: "Back to Transaction History" })
15056
+ ] }) });
15057
+ }
15058
+ const isWireTransfer = transaction.transactionType.toLowerCase().includes("wire");
15059
+ const isACHTransfer = transaction.transactionType.toLowerCase().includes("ach");
15060
+ const handleReturn = () => {
15061
+ console.log("Return transaction");
15062
+ };
15063
+ const handleCancel = () => {
15064
+ console.log("Cancel transaction");
15065
+ };
15066
+ const handleAccountClick = (accountNumber) => {
15067
+ navigate(`/accounts/${accountNumber}`);
15068
+ };
15069
+ const handleCustomerClick = (customer) => {
15070
+ console.log("Navigate to customer:", customer);
15071
+ };
15072
+ const handleCounterpartyClick = (counterparty) => {
15073
+ console.log("Navigate to counterparty:", counterparty);
15074
+ };
15075
+ const handleOFACClick = (ofacId) => {
15076
+ navigate(`/compliance/ofac/${ofacId}`);
15077
+ };
15078
+ const handleProductClick = (productId) => {
15079
+ console.log("Navigate to product:", productId);
15080
+ };
15081
+ return /* @__PURE__ */ jsxRuntime.jsx(
15082
+ TransactionDetailView,
15083
+ {
15084
+ transaction,
15085
+ timelineEvents: mockTransactionTimeline,
15086
+ isWireTransfer,
15087
+ isACHTransfer,
15088
+ onReturn: handleReturn,
15089
+ onCancel: handleCancel,
15090
+ onAccountClick: handleAccountClick,
15091
+ onCustomerClick: handleCustomerClick,
15092
+ onCounterpartyClick: handleCounterpartyClick,
15093
+ onOFACClick: handleOFACClick,
15094
+ onProductClick: handleProductClick
15095
+ }
15096
+ );
15097
+ };
15016
15098
  var TransactionDetail_default = TransactionDetail;
15017
15099
  function UIKit() {
15018
15100
  const breadcrumbs = [
@@ -15331,7 +15413,7 @@ var mockVelocityLimits = [
15331
15413
  comparisonMethod: "fuzzy"
15332
15414
  }
15333
15415
  ];
15334
- var getStatusVariant = (status) => {
15416
+ var getStatusVariant2 = (status) => {
15335
15417
  switch (status) {
15336
15418
  case "ACTIVE":
15337
15419
  return "success";
@@ -15447,7 +15529,7 @@ function VelocityLimits() {
15447
15529
  key: "status",
15448
15530
  title: "Status",
15449
15531
  sortable: true,
15450
- render: (value) => /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: getStatusVariant(value), children: value })
15532
+ render: (value) => /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: getStatusVariant2(value), children: value })
15451
15533
  },
15452
15534
  {
15453
15535
  key: "associatedEntity",
@@ -15830,7 +15912,7 @@ function CreateVelocityLimit() {
15830
15912
  ] }) }) }) }) })
15831
15913
  ] });
15832
15914
  }
15833
- var getStatusVariant2 = (status) => {
15915
+ var getStatusVariant3 = (status) => {
15834
15916
  switch (status) {
15835
15917
  case "ACTIVE":
15836
15918
  return "success";
@@ -16067,7 +16149,7 @@ function VelocityLimitDetail() {
16067
16149
  {
16068
16150
  title: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
16069
16151
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: limit.limitName }),
16070
- /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: getStatusVariant2(limit.status), children: limit.status })
16152
+ /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: getStatusVariant3(limit.status), children: limit.status })
16071
16153
  ] }),
16072
16154
  cards: [
16073
16155
  {