@tesouro/embedded-components-react 0.7.44 → 0.7.46

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 (108) hide show
  1. package/dist/index.d.ts +30 -39
  2. package/dist/lib/CounterpartsWidget.d.ts +29 -22
  3. package/dist/lib/CounterpartsWidgetPublic.d.ts +29 -22
  4. package/dist/lib/CustomersWidget.d.ts +29 -22
  5. package/dist/lib/LinkedAccountsWidget.d.ts +1 -0
  6. package/dist/lib/ReceivablesWidget.d.ts +1 -0
  7. package/dist/lib/WidgetSuite.d.ts +1 -0
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +12 -12
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +15 -15
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +9 -9
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +30 -30
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +3 -2
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +7 -6
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +3 -2
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +9 -8
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +5 -4
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +1 -1
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +1 -1
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +3 -2
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +40 -40
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +3 -2
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +1 -1
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +8 -7
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +9 -13
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +7 -10
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +76 -11
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +1 -1
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +27 -9
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +2 -76
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +30 -0
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +1 -1
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +5 -27
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +32 -2
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -30
  38. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index.js +1 -2
  39. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +36 -36
  40. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/viewModels.js +73 -77
  41. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +8 -25
  42. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index7.js +197 -208
  43. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +9 -9
  44. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/auditHistory/labels.js +2 -2
  45. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +1 -1
  46. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +2 -2
  47. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +22 -23
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +10 -24
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +53 -37
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +21 -53
  51. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +8 -21
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +77 -8
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +31 -69
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +17 -38
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +40 -17
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +26 -38
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +18 -27
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +8 -18
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +35 -9
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +14 -36
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +26 -14
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +84 -23
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +487 -80
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +2 -494
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +48 -2
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +62 -38
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +438 -61
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +207 -431
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +20 -222
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +6 -21
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +265 -0
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +2 -265
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +131 -2
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +22 -125
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +235 -23
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +3 -240
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +249 -3
  78. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +54 -242
  79. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +221 -51
  80. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +38 -222
  81. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/forms.js +2 -1
  82. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/permissions.js +8 -7
  83. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +200 -191
  84. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/mocks/linkedAccounts.js +87 -79
  85. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index15.js +1 -0
  86. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index5.js +10 -0
  87. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +11 -10
  88. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/organization/useOrganizationQuery.js +24 -0
  89. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index.js +8 -0
  90. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index2.js +14 -0
  91. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js +13 -0
  92. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index4.js +18 -0
  93. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index5.js +2 -0
  94. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index6.js +20 -0
  95. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index7.js +32 -0
  96. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index8.js +2 -0
  97. package/dist/libs/tesouro-embedded-components-react/{bill-pay-widget → shared/document-status}/util/dist/lib/derivePayableStatus.js +23 -10
  98. package/dist/libs/tesouro-embedded-components-react/shared/document-status/util/dist/lib/receivableFilledTone.js +22 -0
  99. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  100. package/package.json +1 -1
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +0 -18
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +0 -2
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -7
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +0 -34
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +0 -2
  106. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +0 -25
  107. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +0 -8
  108. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +0 -45
package/dist/index.d.ts CHANGED
@@ -3439,6 +3439,7 @@ interface Labels$1 {
3439
3439
  learnMoreButton: string;
3440
3440
  connectTitle: string;
3441
3441
  nicknameLabel: string;
3442
+ nameOnAccountLabel: string;
3442
3443
  accountNumberLabel: string;
3443
3444
  routingNumberLabel: string;
3444
3445
  routingNumberError: string;
@@ -4319,6 +4320,9 @@ type AcceptDisclosuresWidgetProps = WidgetProviderProps & InnerProps$1;
4319
4320
  */
4320
4321
  declare function AcceptDisclosuresWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: AcceptDisclosuresWidgetProps): React.JSX.Element;
4321
4322
 
4323
+ /** Display statuses; overdue state is represented separately on the due date. */
4324
+ type BillBadgeStatus = 'draft' | 'ready_to_submit' | 'pending_approval' | 'ready_to_pay' | 'scheduled' | 'paid' | 'canceled' | 'rejected';
4325
+
4322
4326
  interface AddressFieldGroupLabels {
4323
4327
  line1: string;
4324
4328
  line2: string;
@@ -4475,6 +4479,28 @@ interface CounterpartMessageLabels {
4475
4479
  deleteBankAccountFailed: string;
4476
4480
  }
4477
4481
 
4482
+ type BillStatusBadgeLabels = Record<BillBadgeStatus, string> & {
4483
+ unknown: string;
4484
+ };
4485
+
4486
+ interface ReceivableStatusBadgeLabels {
4487
+ draft: string;
4488
+ issuing: string;
4489
+ issued: string;
4490
+ failed: string;
4491
+ accepted: string;
4492
+ expired: string;
4493
+ declined: string;
4494
+ recurring: string;
4495
+ partially_paid: string;
4496
+ paid: string;
4497
+ overdue: string;
4498
+ uncollectible: string;
4499
+ canceled: string;
4500
+ deleted: string;
4501
+ unknown: string;
4502
+ }
4503
+
4478
4504
  interface NoPolicyBannerLabels {
4479
4505
  Title: string;
4480
4506
  Body: string;
@@ -4658,28 +4684,10 @@ interface CounterpartDetailsSheetLabels {
4658
4684
  routingNumberLabel: string;
4659
4685
  noPaymentMethods: string;
4660
4686
  editButton: string;
4661
- billStatusDraft: string;
4662
- billStatusReadyToSubmit: string;
4663
- billStatusPendingApproval: string;
4664
- billStatusReadyToPay: string;
4665
- billStatusPaid: string;
4666
- billStatusCanceled: string;
4667
- billStatusRejected: string;
4668
- receivableStatusDraft: string;
4669
- receivableStatusIssuing: string;
4670
- receivableStatusIssued: string;
4671
- receivableStatusFailed: string;
4672
- receivableStatusAccepted: string;
4673
- receivableStatusExpired: string;
4674
- receivableStatusDeclined: string;
4675
- receivableStatusRecurring: string;
4676
- receivableStatusPartiallyPaid: string;
4677
- receivableStatusPaid: string;
4678
- receivableStatusOverdue: string;
4679
- receivableStatusUncollectible: string;
4680
- receivableStatusCanceled: string;
4681
- receivableStatusDeleted: string;
4682
- receivableStatusUnknown: string;
4687
+ /** Overrides for the shared bill status badge in recent documents. */
4688
+ billStatusBadge: Partial<BillStatusBadgeLabels>;
4689
+ /** Overrides for the shared invoice status badge in recent documents. */
4690
+ invoiceStatusBadge: Partial<ReceivableStatusBadgeLabels>;
4683
4691
  optionalSuffix: string;
4684
4692
  editingCustomerDetailsHeading: string;
4685
4693
  editingVendorDetailsHeading: string;
@@ -5228,23 +5236,6 @@ interface ReceivableRecurrenceEmailDialogLabels {
5228
5236
  recurrenceEmailSave: string;
5229
5237
  }
5230
5238
 
5231
- interface ReceivableStatusBadgeLabels {
5232
- draft: string;
5233
- issuing: string;
5234
- issued: string;
5235
- failed: string;
5236
- accepted: string;
5237
- expired: string;
5238
- declined: string;
5239
- recurring: string;
5240
- partially_paid: string;
5241
- paid: string;
5242
- overdue: string;
5243
- uncollectible: string;
5244
- canceled: string;
5245
- deleted: string;
5246
- unknown: string;
5247
- }
5248
5239
  interface ReceivablesScreenLabels {
5249
5240
  createInvoiceButton: string;
5250
5241
  /** The settings button's accessible name and tooltip. */
@@ -813,6 +813,31 @@ interface CounterpartMessageLabels {
813
813
  deleteBankAccountFailed: string;
814
814
  }
815
815
 
816
+ /** Display statuses; overdue state is represented separately on the due date. */
817
+ type BillBadgeStatus = 'draft' | 'ready_to_submit' | 'pending_approval' | 'ready_to_pay' | 'scheduled' | 'paid' | 'canceled' | 'rejected';
818
+
819
+ type BillStatusBadgeLabels = Record<BillBadgeStatus, string> & {
820
+ unknown: string;
821
+ };
822
+
823
+ interface ReceivableStatusBadgeLabels {
824
+ draft: string;
825
+ issuing: string;
826
+ issued: string;
827
+ failed: string;
828
+ accepted: string;
829
+ expired: string;
830
+ declined: string;
831
+ recurring: string;
832
+ partially_paid: string;
833
+ paid: string;
834
+ overdue: string;
835
+ uncollectible: string;
836
+ canceled: string;
837
+ deleted: string;
838
+ unknown: string;
839
+ }
840
+
816
841
  interface CounterpartsScreenLabels {
817
842
  /** Customer-mode create action. */
818
843
  createButton: string;
@@ -926,28 +951,10 @@ interface CounterpartDetailsSheetLabels {
926
951
  routingNumberLabel: string;
927
952
  noPaymentMethods: string;
928
953
  editButton: string;
929
- billStatusDraft: string;
930
- billStatusReadyToSubmit: string;
931
- billStatusPendingApproval: string;
932
- billStatusReadyToPay: string;
933
- billStatusPaid: string;
934
- billStatusCanceled: string;
935
- billStatusRejected: string;
936
- receivableStatusDraft: string;
937
- receivableStatusIssuing: string;
938
- receivableStatusIssued: string;
939
- receivableStatusFailed: string;
940
- receivableStatusAccepted: string;
941
- receivableStatusExpired: string;
942
- receivableStatusDeclined: string;
943
- receivableStatusRecurring: string;
944
- receivableStatusPartiallyPaid: string;
945
- receivableStatusPaid: string;
946
- receivableStatusOverdue: string;
947
- receivableStatusUncollectible: string;
948
- receivableStatusCanceled: string;
949
- receivableStatusDeleted: string;
950
- receivableStatusUnknown: string;
954
+ /** Overrides for the shared bill status badge in recent documents. */
955
+ billStatusBadge: Partial<BillStatusBadgeLabels>;
956
+ /** Overrides for the shared invoice status badge in recent documents. */
957
+ invoiceStatusBadge: Partial<ReceivableStatusBadgeLabels>;
951
958
  optionalSuffix: string;
952
959
  editingCustomerDetailsHeading: string;
953
960
  editingVendorDetailsHeading: string;
@@ -813,6 +813,31 @@ interface CounterpartMessageLabels {
813
813
  deleteBankAccountFailed: string;
814
814
  }
815
815
 
816
+ /** Display statuses; overdue state is represented separately on the due date. */
817
+ type BillBadgeStatus = 'draft' | 'ready_to_submit' | 'pending_approval' | 'ready_to_pay' | 'scheduled' | 'paid' | 'canceled' | 'rejected';
818
+
819
+ type BillStatusBadgeLabels = Record<BillBadgeStatus, string> & {
820
+ unknown: string;
821
+ };
822
+
823
+ interface ReceivableStatusBadgeLabels {
824
+ draft: string;
825
+ issuing: string;
826
+ issued: string;
827
+ failed: string;
828
+ accepted: string;
829
+ expired: string;
830
+ declined: string;
831
+ recurring: string;
832
+ partially_paid: string;
833
+ paid: string;
834
+ overdue: string;
835
+ uncollectible: string;
836
+ canceled: string;
837
+ deleted: string;
838
+ unknown: string;
839
+ }
840
+
816
841
  interface CounterpartsScreenLabels {
817
842
  /** Customer-mode create action. */
818
843
  createButton: string;
@@ -926,28 +951,10 @@ interface CounterpartDetailsSheetLabels {
926
951
  routingNumberLabel: string;
927
952
  noPaymentMethods: string;
928
953
  editButton: string;
929
- billStatusDraft: string;
930
- billStatusReadyToSubmit: string;
931
- billStatusPendingApproval: string;
932
- billStatusReadyToPay: string;
933
- billStatusPaid: string;
934
- billStatusCanceled: string;
935
- billStatusRejected: string;
936
- receivableStatusDraft: string;
937
- receivableStatusIssuing: string;
938
- receivableStatusIssued: string;
939
- receivableStatusFailed: string;
940
- receivableStatusAccepted: string;
941
- receivableStatusExpired: string;
942
- receivableStatusDeclined: string;
943
- receivableStatusRecurring: string;
944
- receivableStatusPartiallyPaid: string;
945
- receivableStatusPaid: string;
946
- receivableStatusOverdue: string;
947
- receivableStatusUncollectible: string;
948
- receivableStatusCanceled: string;
949
- receivableStatusDeleted: string;
950
- receivableStatusUnknown: string;
954
+ /** Overrides for the shared bill status badge in recent documents. */
955
+ billStatusBadge: Partial<BillStatusBadgeLabels>;
956
+ /** Overrides for the shared invoice status badge in recent documents. */
957
+ invoiceStatusBadge: Partial<ReceivableStatusBadgeLabels>;
951
958
  optionalSuffix: string;
952
959
  editingCustomerDetailsHeading: string;
953
960
  editingVendorDetailsHeading: string;
@@ -803,6 +803,31 @@ interface CounterpartMessageLabels {
803
803
  deleteBankAccountFailed: string;
804
804
  }
805
805
 
806
+ /** Display statuses; overdue state is represented separately on the due date. */
807
+ type BillBadgeStatus = 'draft' | 'ready_to_submit' | 'pending_approval' | 'ready_to_pay' | 'scheduled' | 'paid' | 'canceled' | 'rejected';
808
+
809
+ type BillStatusBadgeLabels = Record<BillBadgeStatus, string> & {
810
+ unknown: string;
811
+ };
812
+
813
+ interface ReceivableStatusBadgeLabels {
814
+ draft: string;
815
+ issuing: string;
816
+ issued: string;
817
+ failed: string;
818
+ accepted: string;
819
+ expired: string;
820
+ declined: string;
821
+ recurring: string;
822
+ partially_paid: string;
823
+ paid: string;
824
+ overdue: string;
825
+ uncollectible: string;
826
+ canceled: string;
827
+ deleted: string;
828
+ unknown: string;
829
+ }
830
+
806
831
  interface CounterpartsScreenLabels {
807
832
  /** Customer-mode create action. */
808
833
  createButton: string;
@@ -916,28 +941,10 @@ interface CounterpartDetailsSheetLabels {
916
941
  routingNumberLabel: string;
917
942
  noPaymentMethods: string;
918
943
  editButton: string;
919
- billStatusDraft: string;
920
- billStatusReadyToSubmit: string;
921
- billStatusPendingApproval: string;
922
- billStatusReadyToPay: string;
923
- billStatusPaid: string;
924
- billStatusCanceled: string;
925
- billStatusRejected: string;
926
- receivableStatusDraft: string;
927
- receivableStatusIssuing: string;
928
- receivableStatusIssued: string;
929
- receivableStatusFailed: string;
930
- receivableStatusAccepted: string;
931
- receivableStatusExpired: string;
932
- receivableStatusDeclined: string;
933
- receivableStatusRecurring: string;
934
- receivableStatusPartiallyPaid: string;
935
- receivableStatusPaid: string;
936
- receivableStatusOverdue: string;
937
- receivableStatusUncollectible: string;
938
- receivableStatusCanceled: string;
939
- receivableStatusDeleted: string;
940
- receivableStatusUnknown: string;
944
+ /** Overrides for the shared bill status badge in recent documents. */
945
+ billStatusBadge: Partial<BillStatusBadgeLabels>;
946
+ /** Overrides for the shared invoice status badge in recent documents. */
947
+ invoiceStatusBadge: Partial<ReceivableStatusBadgeLabels>;
941
948
  optionalSuffix: string;
942
949
  editingCustomerDetailsHeading: string;
943
950
  editingVendorDetailsHeading: string;
@@ -9,6 +9,7 @@ interface Labels {
9
9
  learnMoreButton: string;
10
10
  connectTitle: string;
11
11
  nicknameLabel: string;
12
+ nameOnAccountLabel: string;
12
13
  accountNumberLabel: string;
13
14
  routingNumberLabel: string;
14
15
  routingNumberError: string;
@@ -1077,6 +1077,7 @@ interface ReceivableStatusBadgeLabels {
1077
1077
  deleted: string;
1078
1078
  unknown: string;
1079
1079
  }
1080
+
1080
1081
  interface ReceivablesScreenLabels {
1081
1082
  createInvoiceButton: string;
1082
1083
  /** The settings button's accessible name and tooltip. */
@@ -2487,6 +2487,7 @@ interface Labels$1 {
2487
2487
  learnMoreButton: string;
2488
2488
  connectTitle: string;
2489
2489
  nicknameLabel: string;
2490
+ nameOnAccountLabel: string;
2490
2491
  accountNumberLabel: string;
2491
2492
  routingNumberLabel: string;
2492
2493
  routingNumberError: string;
@@ -1,10 +1,10 @@
1
1
  import { formatCalendarDate as e } from "../../../../shared/util/dist/lib/formatCalendarDate.js";
2
- import { derivePayableStatus as t } from "../../../util/dist/lib/derivePayableStatus.js";
3
- import { formatBillMoney as n } from "../../../util/dist/lib/formatBillMoney.js";
4
- import { resolveLineItemAmountMinorUnits as r } from "../../../util/dist/lib/resolveLineItemAmount.js";
5
- import { resolveLineItemQuantity as i } from "../../../util/dist/lib/resolveLineItemQuantity.js";
6
- import { resolveVendor as a, resolveVendorName as o } from "../../../util/dist/lib/resolveVendor.js";
7
- import { formatGlCodeLabel as s } from "./index13.js";
2
+ import { formatBillMoney as t } from "../../../util/dist/lib/formatBillMoney.js";
3
+ import { resolveLineItemAmountMinorUnits as n } from "../../../util/dist/lib/resolveLineItemAmount.js";
4
+ import { resolveLineItemQuantity as r } from "../../../util/dist/lib/resolveLineItemQuantity.js";
5
+ import { resolveVendor as i, resolveVendorName as a } from "../../../util/dist/lib/resolveVendor.js";
6
+ import { formatGlCodeLabel as o } from "./index13.js";
7
+ import { derivePayableStatus as s } from "../../../../shared/document-status/util/dist/lib/derivePayableStatus.js";
8
8
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js
9
9
  function c(e) {
10
10
  return e.total_amount ?? e.amount_due ?? void 0;
@@ -13,13 +13,13 @@ function l(e) {
13
13
  return typeof e == "string" ? e : "";
14
14
  }
15
15
  function u({ payable: u, lineItems: f, ledgerAccounts: p, labels: m, hasScheduledPayment: h, now: g, rejection: _, achInstructions: v, achInstructionsReadable: y = !1 }) {
16
- let b = u.currency, x = (e) => n(e, b), S = t({
16
+ let b = u.currency, x = (e) => t(e, b), S = s({
17
17
  apiStatus: u.status,
18
18
  dueDate: u.due_date,
19
19
  scheduledPaymentDate: u.scheduled_payment_date,
20
20
  hasScheduledPayment: h,
21
21
  now: g
22
- }), C = a(u), w = o(u), T = e(u.issued_at) || m.notProvided, E = e(u.due_date) || m.notProvided, D = [{
22
+ }), C = i(u), w = a(u), T = e(u.issued_at) || m.notProvided, E = e(u.due_date) || m.notProvided, D = [{
23
23
  label: m.vendorRow,
24
24
  value: w || m.notProvided,
25
25
  secondaryValue: C?.email ?? void 0
@@ -45,14 +45,14 @@ function u({ payable: u, lineItems: f, ledgerAccounts: p, labels: m, hasSchedule
45
45
  label: m.poNumberRow,
46
46
  value: l(u.purchase_order_number) || m.notProvided
47
47
  }
48
- ], A = new Map(p.map((e) => [e.id, s(e)])), j = f.map((e) => {
49
- let t = x(e.unit_price), n = String(i(e));
48
+ ], A = new Map(p.map((e) => [e.id, o(e)])), j = f.map((e) => {
49
+ let t = x(e.unit_price), i = String(r(e));
50
50
  return {
51
51
  id: e.id,
52
52
  description: e.name ?? e.description ?? "",
53
53
  glCodeLabel: (e.ledger_account_id ? A.get(e.ledger_account_id) : void 0) || m.glCodeMissing,
54
- quantityLabel: t ? m.quantityValue(n, t) : m.quantityOnlyValue(n),
55
- amountLabel: x(r(e)) ?? ""
54
+ quantityLabel: t ? m.quantityValue(i, t) : m.quantityOnlyValue(i),
55
+ amountLabel: x(n(e)) ?? ""
56
56
  };
57
57
  }), M = [
58
58
  {
@@ -1,19 +1,19 @@
1
1
  import { formatCalendarDate as e } from "../../../../shared/util/dist/lib/formatCalendarDate.js";
2
- import { derivePayableStatus as t } from "../../../util/dist/lib/derivePayableStatus.js";
3
- import { formatBillMoney as n } from "../../../util/dist/lib/formatBillMoney.js";
4
- import { resolveAmountDueMinorUnits as r } from "../../../util/dist/lib/resolveAmountDue.js";
5
- import { resolveLineItemAmountMinorUnits as i } from "../../../util/dist/lib/resolveLineItemAmount.js";
6
- import { resolveLineItemQuantity as a } from "../../../util/dist/lib/resolveLineItemQuantity.js";
7
- import { resolveVendor as o } from "../../../util/dist/lib/resolveVendor.js";
2
+ import { formatBillMoney as t } from "../../../util/dist/lib/formatBillMoney.js";
3
+ import { resolveAmountDueMinorUnits as n } from "../../../util/dist/lib/resolveAmountDue.js";
4
+ import { resolveLineItemAmountMinorUnits as r } from "../../../util/dist/lib/resolveLineItemAmount.js";
5
+ import { resolveLineItemQuantity as i } from "../../../util/dist/lib/resolveLineItemQuantity.js";
6
+ import { resolveVendor as a } from "../../../util/dist/lib/resolveVendor.js";
7
+ import { derivePayableStatus as o } from "../../../../shared/document-status/util/dist/lib/derivePayableStatus.js";
8
8
  import { getPaidAtLabel as s, resolveInvoiceTotalMinorUnits as c } from "./index24.js";
9
9
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js
10
10
  function l({ payable: l, lineItems: u, glCodeOptions: d, glCodeRosterAvailable: f = !0, history: p, paymentHistory: m, approvalPolicy: h, labels: g, hasScheduledPayment: _, rejection: v, payableAchInstructions: y, payableAchInstructionsReadable: b = !1 }) {
11
- let x = l.currency, S = t({
11
+ let x = l.currency, S = o({
12
12
  apiStatus: l.status,
13
13
  dueDate: l.due_date,
14
14
  scheduledPaymentDate: l.scheduled_payment_date,
15
15
  hasScheduledPayment: _
16
- }), C = o(l), w = b ? y : void 0, T = w?.account_number, E = !!(w?.account_holder_name && w.routing_number && w.account_number), D = e(l.issued_at) || g.notProvided, O = e(l.due_date) || g.notProvided, k = new Map(d.map((e) => [e.value, e.label])), A = [
16
+ }), C = a(l), w = b ? y : void 0, T = w?.account_number, E = !!(w?.account_holder_name && w.routing_number && w.account_number), D = e(l.issued_at) || g.notProvided, O = e(l.due_date) || g.notProvided, k = new Map(d.map((e) => [e.value, e.label])), A = [
17
17
  {
18
18
  label: g.subtotalRow,
19
19
  minorUnits: l.subtotal
@@ -28,8 +28,8 @@ function l({ payable: l, lineItems: u, glCodeOptions: d, glCodeRosterAvailable:
28
28
  }
29
29
  ].map((e) => ({
30
30
  label: e.label,
31
- value: n(e.minorUnits, x)
32
- })).filter((e) => !!e.value), j = n(c(l), x);
31
+ value: t(e.minorUnits, x)
32
+ })).filter((e) => !!e.value), j = t(c(l), x);
33
33
  j && A.push({
34
34
  label: g.totalRow,
35
35
  value: j,
@@ -37,8 +37,8 @@ function l({ payable: l, lineItems: u, glCodeOptions: d, glCodeRosterAvailable:
37
37
  });
38
38
  let M = s(l);
39
39
  return {
40
- amountDue: n(r(l), x) ?? "",
41
- amountPaid: M ? n(l.amount_paid, x) : void 0,
40
+ amountDue: t(n(l), x) ?? "",
41
+ amountPaid: M ? t(l.amount_paid, x) : void 0,
42
42
  paidOnLabel: M ? g.paidOnLabel(M) : void 0,
43
43
  invoiceDateLabel: D,
44
44
  dueDateLabel: O,
@@ -66,13 +66,13 @@ function l({ payable: l, lineItems: u, glCodeOptions: d, glCodeRosterAvailable:
66
66
  }
67
67
  ],
68
68
  lineItems: u.map((e) => {
69
- let t = n(e.unit_price, x), r = String(a(e));
69
+ let n = t(e.unit_price, x), a = String(i(e));
70
70
  return {
71
71
  id: e.id,
72
72
  description: e.name ?? e.description ?? "",
73
73
  glCodeLabel: e.ledger_account_id ? k.get(e.ledger_account_id) ?? (f ? g.glCodeMissing : g.glCodeUnavailable) : g.glCodeMissing,
74
- qtyPriceLabel: t ? g.qtyPriceValue(r, t) : g.qtyOnlyValue(r),
75
- amount: n(i(e), x) ?? ""
74
+ qtyPriceLabel: n ? g.qtyPriceValue(a, n) : g.qtyOnlyValue(a),
75
+ amount: t(r(e), x) ?? ""
76
76
  };
77
77
  }),
78
78
  amountRows: A,
@@ -10,10 +10,10 @@ import "../../../../shared/data-access/dist/index.js";
10
10
  import { useWidgetConfig as te } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
11
11
  import { useOrganizationUserNames as ne } from "../../../../shared/feature/dist/lib/user/useOrganizationUserNames.js";
12
12
  import "../../../../shared/feature/dist/index.js";
13
- import { hasUnpaidBalance as re } from "../../../util/dist/lib/derivePayableStatus.js";
14
- import { isEditablePayableStatus as ie } from "../../../util/dist/lib/isEditablePayableStatus.js";
15
- import { resolveVendor as ae } from "../../../util/dist/lib/resolveVendor.js";
16
- import { formatGlCodeLabel as oe, resolveGlCodeAvailability as se } from "./index13.js";
13
+ import { isEditablePayableStatus as re } from "../../../util/dist/lib/isEditablePayableStatus.js";
14
+ import { resolveVendor as ie } from "../../../util/dist/lib/resolveVendor.js";
15
+ import { formatGlCodeLabel as ae, resolveGlCodeAvailability as oe } from "./index13.js";
16
+ import { hasUnpaidBalance as se } from "../../../../shared/document-status/util/dist/lib/derivePayableStatus.js";
17
17
  import { BillDecisionDialog as r } from "../../../ui/dist/index4.js";
18
18
  import "../../../ui/dist/index.js";
19
19
  import { BillDialogScreen as ce } from "../../ui/dist/index31.js";
@@ -60,7 +60,7 @@ function l({ open: l, onOpenChange: u, payableId: d, initialCounterpartId: Ge, r
60
60
  ..._
61
61
  }), [_]), Je = d ? void 0 : Ge, [Ye, Xe] = s(Je), [y, Ze] = s(!!Je), [Qe, $e] = s(!1), [b, x] = s(!1), [et, tt] = s(), S = a((e) => {
62
62
  tt(() => e);
63
- }, []), [nt, rt] = s(), C = d ?? nt, w = _e(C, { pollWhileOcrProcessing: !0 }), T = ge(C), { initResponse: E } = te(), it = !!E, at = t(E?.scopes, [n.AccountingConfigReadOrg]), D = ee({ enabled: at }), O = w.data, k = !C || !!O, A = !f && k && !!C && O?.status !== "draft", ot = !f && !!O && !ie(O?.status), j = f || ot, M = ye({
63
+ }, []), [nt, rt] = s(), C = d ?? nt, w = _e(C, { pollWhileOcrProcessing: !0 }), T = ge(C), { initResponse: E } = te(), it = !!E, at = t(E?.scopes, [n.AccountingConfigReadOrg]), D = ee({ enabled: at }), O = w.data, k = !C || !!O, A = !f && k && !!C && O?.status !== "draft", ot = !f && !!O && !re(O?.status), j = f || ot, M = ye({
64
64
  payable: O,
65
65
  lineItems: T.lineItems,
66
66
  labels: v
@@ -78,7 +78,7 @@ function l({ open: l, onOpenChange: u, payableId: d, initialCounterpartId: Ge, r
78
78
  hasScheduledPayment: P.hasScheduledPayment,
79
79
  scheduledDate: P.scheduledDate,
80
80
  labels: g.scheduledRelativeDay
81
- }), I = Ce(E?.scopes), ct = t(E?.scopes, [n.PayableWriteOrg]), lt = t(E?.scopes, [n.CounterpartWriteOrg]) && ct, L = lt && re(O?.status) && !P.hasScheduledPayment && !P.isResolving, ut = L && I, dt = L || lt && O?.status === "rejected", ft = !f && k && (!C || O?.status === "draft") && !P.hasScheduledPayment && !P.isResolving, R = Re({
81
+ }), I = Ce(E?.scopes), ct = t(E?.scopes, [n.PayableWriteOrg]), lt = t(E?.scopes, [n.CounterpartWriteOrg]) && ct, L = lt && se(O?.status) && !P.hasScheduledPayment && !P.isResolving, ut = L && I, dt = L || lt && O?.status === "rejected", ft = !f && k && (!C || O?.status === "draft") && !P.hasScheduledPayment && !P.isResolving, R = Re({
82
82
  payableId: C,
83
83
  counterpartId: f ? N : Ye,
84
84
  payableCounterpartId: N,
@@ -129,7 +129,7 @@ function l({ open: l, onOpenChange: u, payableId: d, initialCounterpartId: Ge, r
129
129
  }), vt = !!(V.isSavingDraft || V.isFinalizing || R.isVendorSavePending), H = f ? C : void 0, U = Oe({
130
130
  payableId: H,
131
131
  status: O?.status
132
- }), W = Ve(null), [yt, bt] = s(!1), xt = ae(O), G = Le({
132
+ }), W = Ve(null), [yt, bt] = s(!1), xt = ie(O), G = Le({
133
133
  counterpartId: f ? N : void 0,
134
134
  currency: O?.currency,
135
135
  currentBankAccountId: f ? O?.counterpart_bank_account_id ?? void 0 : void 0,
@@ -204,8 +204,8 @@ function l({ open: l, onOpenChange: u, payableId: d, initialCounterpartId: Ge, r
204
204
  Pt
205
205
  ]), J = o(() => (D.data?.data ?? []).map((e) => ({
206
206
  value: e.id,
207
- label: oe(e)
208
- })), [D.data]), { unavailableMessage: It, disabled: Lt, rosterAvailable: Rt } = se({
207
+ label: ae(e)
208
+ })), [D.data]), { unavailableMessage: It, disabled: Lt, rosterAvailable: Rt } = oe({
209
209
  isInitResolved: it,
210
210
  canReadGlCodes: at,
211
211
  isResolving: D.isResolving,
@@ -6,13 +6,13 @@ import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/ind
6
6
  import { formatCalendarDate as t } from "../../../../shared/util/dist/lib/formatCalendarDate.js";
7
7
  import { formatMoneyExact as n } from "../../../../shared/util/dist/lib/formatMoneyExact.js";
8
8
  import "../../../../shared/ui/dist/index.js";
9
- import { derivePayableStatus as r } from "../../../util/dist/lib/derivePayableStatus.js";
10
- import { DuplicateVerdict as i } from "../../../util/dist/lib/duplicateVerdict.js";
11
- import { suspectedPayableDuplicates as a } from "../../../util/dist/lib/payableDuplicates.js";
12
- import { duplicateVerdictMatches as o, groupSuspectedDuplicates as s, resolveDuplicateOriginalId as c } from "../../../util/dist/lib/groupDuplicates.js";
13
- import { isEditablePayableStatus as l } from "../../../util/dist/lib/isEditablePayableStatus.js";
14
- import { payableRemoval as u } from "../../../util/dist/lib/payableRemoval.js";
15
- import { resolveVendorName as d } from "../../../util/dist/lib/resolveVendor.js";
9
+ import { DuplicateVerdict as r } from "../../../util/dist/lib/duplicateVerdict.js";
10
+ import { suspectedPayableDuplicates as i } from "../../../util/dist/lib/payableDuplicates.js";
11
+ import { duplicateVerdictMatches as a, groupSuspectedDuplicates as o, resolveDuplicateOriginalId as s } from "../../../util/dist/lib/groupDuplicates.js";
12
+ import { isEditablePayableStatus as c } from "../../../util/dist/lib/isEditablePayableStatus.js";
13
+ import { payableRemoval as l } from "../../../util/dist/lib/payableRemoval.js";
14
+ import { resolveVendorName as u } from "../../../util/dist/lib/resolveVendor.js";
15
+ import { derivePayableStatus as d } from "../../../../shared/document-status/util/dist/lib/derivePayableStatus.js";
16
16
  import { useApplyDuplicateVerdictsMutation as f } from "../../../data-access/dist/lib/useApplyDuplicateVerdictsMutation.js";
17
17
  import "../../../data-access/dist/index.js";
18
18
  import { usePayablesByIdsQueries as p } from "../../data-access/dist/index22.js";
@@ -24,14 +24,14 @@ import { BanIcon as y, FileCheckIcon as b, Trash2Icon as x } from "lucide-react"
24
24
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js
25
25
  var S = 5;
26
26
  function C(e, t) {
27
- return t ? s(e).map(({ members: e }) => e).find((e) => e.some((e) => e.id === t)) ?? [] : [];
27
+ return t ? o(e).map(({ members: e }) => e).find((e) => e.some((e) => e.id === t)) ?? [] : [];
28
28
  }
29
- function w({ payable: s, canManage: w = !0, onRemoved: T, onOpenPayable: E, labels: D }) {
29
+ function w({ payable: o, canManage: w = !0, onRemoved: T, onOpenPayable: E, labels: D }) {
30
30
  let O = _(() => ({
31
31
  ...h,
32
32
  ...D
33
- }), [D]), k = a(s), [A] = k, j = s?.id, M = _(() => [...new Set(k.map((e) => e.matched_payable_id))], [k]), N = p(M, { enabled: !!(A && j) }), P = f(), [F, I] = v(!1), [L, R] = v(), [z, B] = v(), V = u(s?.status), H = g(async (t, n, r, i, a) => {
34
- let s = o(t, n, a);
33
+ }), [D]), k = i(o), [A] = k, j = o?.id, M = _(() => [...new Set(k.map((e) => e.matched_payable_id))], [k]), N = p(M, { enabled: !!(A && j) }), P = f(), [F, I] = v(!1), [L, R] = v(), [z, B] = v(), V = l(o?.status), H = g(async (t, n, r, i, o) => {
34
+ let s = a(t, n, o);
35
35
  if (s.length && t?.id) try {
36
36
  await P.mutateAsync({
37
37
  verdict: n,
@@ -39,13 +39,13 @@ function w({ payable: s, canManage: w = !0, onRemoved: T, onOpenPayable: E, labe
39
39
  payableId: t.id,
40
40
  duplicateId: e.id,
41
41
  matchedPayableId: e.matched_payable_id,
42
- removeBy: u(t.status)
42
+ removeBy: l(t.status)
43
43
  }))
44
44
  }), e.success(r), i?.();
45
45
  } catch {
46
46
  e.error(O.verdictFailedToast);
47
47
  }
48
- }, [P, O]), U = g((e, t, n) => H(s, e, t, n), [H, s]), W = V === "delete" ? {
48
+ }, [P, O]), U = g((e, t, n) => H(o, e, t, n), [H, o]), W = V === "delete" ? {
49
49
  button: O.deleteBillButton,
50
50
  title: O.deleteConfirmTitle,
51
51
  description: O.deleteConfirmDescription,
@@ -67,7 +67,7 @@ function w({ payable: s, canManage: w = !0, onRemoved: T, onOpenPayable: E, labe
67
67
  backButton: O.cancelConfirmBackButton,
68
68
  toast: O.cancelledToast
69
69
  }, G = g(async () => {
70
- await U(i.Remove, W.toast, T), I(!1);
70
+ await U(r.Remove, W.toast, T), I(!1);
71
71
  }, [
72
72
  U,
73
73
  T,
@@ -98,7 +98,7 @@ function w({ payable: s, canManage: w = !0, onRemoved: T, onOpenPayable: E, labe
98
98
  toast: O.confirmedToast
99
99
  }
100
100
  }), [O]), q = K[L?.removeBy ?? "cancel"], J = g(async () => {
101
- L && (await H(L.payable, i.Remove, K[L.removeBy].toast, L.payable.id === j ? T : void 0), R(void 0));
101
+ L && (await H(L.payable, r.Remove, K[L.removeBy].toast, L.payable.id === j ? T : void 0), R(void 0));
102
102
  }, [
103
103
  H,
104
104
  T,
@@ -106,39 +106,39 @@ function w({ payable: s, canManage: w = !0, onRemoved: T, onOpenPayable: E, labe
106
106
  L,
107
107
  K
108
108
  ]), Y = g(async () => {
109
- z && (await H(z.payable, i.Keep, O.dismissedToast, void 0, z.originalPayableId), B(void 0));
109
+ z && (await H(z.payable, r.Keep, O.dismissedToast, void 0, z.originalPayableId), B(void 0));
110
110
  }, [
111
111
  H,
112
112
  O.dismissedToast,
113
113
  z
114
114
  ]), X = w && !!(A && j), Z = X && !!V, Q = _(() => {
115
115
  let e = new Map(N.flatMap((e) => e.data ? [[e.data.id, e.data]] : []));
116
- s?.id && e.set(s.id, s);
117
- let i = C([...e.values()], j);
118
- if (i.length < 2) return [];
119
- let o = c(i), f = (e) => {
116
+ o?.id && e.set(o.id, o);
117
+ let r = C([...e.values()], j);
118
+ if (r.length < 2) return [];
119
+ let a = s(r), f = (e) => {
120
120
  let t = e.total_amount ?? e.amount_due;
121
121
  return t == null ? "" : n(t / 100, { currencyCode: e.currency ?? "USD" });
122
122
  };
123
- return i.map((e) => {
124
- let n = e.status ? r({
123
+ return r.map((e) => {
124
+ let n = e.status ? d({
125
125
  apiStatus: e.status,
126
126
  dueDate: e.due_date,
127
127
  scheduledPaymentDate: e.scheduled_payment_date
128
- }) : void 0, i = e.id === o, s = e.id === j, c = w && a(e).length > 0, p = d(e), m = u(e.status);
128
+ }) : void 0, r = e.id === a, o = e.id === j, s = w && i(e).length > 0, p = u(e), m = l(e.status);
129
129
  return {
130
130
  id: e.id,
131
131
  roleLabel: p,
132
- badges: [...i ? [O.originalBillBadge] : [], ...s ? [O.currentBillBadge] : []],
132
+ badges: [...r ? [O.originalBillBadge] : [], ...o ? [O.currentBillBadge] : []],
133
133
  invoiceNumberLabel: e.document_id ?? "",
134
- roleTone: i ? void 0 : "warning",
134
+ roleTone: r ? void 0 : "warning",
135
135
  amountLabel: f(e),
136
136
  addedOnLabel: t(e.created_at?.slice(0, 10)),
137
137
  dueDateLabel: t(e.due_date),
138
138
  status: n?.status,
139
139
  statusTone: n?.tone,
140
- onOpen: !s && E ? () => E(e.id, l(e.status ?? void 0)) : void 0,
141
- menu: c ? {
140
+ onOpen: !o && E ? () => E(e.id, c(e.status ?? void 0)) : void 0,
141
+ menu: s ? {
142
142
  triggerLabel: O.openRow({
143
143
  vendorLabel: p,
144
144
  invoiceNumberLabel: "",
@@ -151,7 +151,7 @@ function w({ payable: s, canManage: w = !0, onRemoved: T, onOpenPayable: E, labe
151
151
  disabled: P.isPending,
152
152
  onSelect: () => B({
153
153
  payable: e,
154
- originalPayableId: i ? void 0 : o
154
+ originalPayableId: r ? void 0 : a
155
155
  })
156
156
  }, ...m ? [{
157
157
  id: "cancel-duplicate",
@@ -172,13 +172,13 @@ function w({ payable: s, canManage: w = !0, onRemoved: T, onOpenPayable: E, labe
172
172
  N,
173
173
  O,
174
174
  E,
175
- s,
175
+ o,
176
176
  j,
177
177
  K
178
178
  ]);
179
179
  return {
180
180
  isPossibleDuplicate: !!A,
181
- onNotADuplicate: X ? () => B({ payable: s }) : void 0,
181
+ onNotADuplicate: X ? () => B({ payable: o }) : void 0,
182
182
  onRemoveBill: Z ? () => I(!0) : void 0,
183
183
  removeBillLabel: Z ? W.button : void 0,
184
184
  removeConfirmation: {