@tesouro/embedded-components-react 0.5.279 → 0.5.281
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.css +8 -0
- package/dist/index.d.ts +23 -8
- package/dist/lib/BankAccountOnboardingWidget.d.ts +2 -2
- package/dist/lib/ReceivablesWidget.d.ts +21 -6
- package/dist/lib/WidgetSuite.d.ts +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index18.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index13.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index14.js +7 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index15.js +8 -160
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index16.js +20 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index17.js +148 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index18.js +21 -96
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index19.js +37 -79
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index20.js +98 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index21.js +83 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +3 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +54 -184
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +108 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +181 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +74 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +27 -412
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +88 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index29.js +413 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index30.js +13 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +77 -226
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +78 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +216 -234
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +44 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +233 -611
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +25 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +647 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +4 -243
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +42 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +250 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +2 -66
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js +67 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +47 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/invalidatePayableQueries.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/reconcileCancelledPaymentQueries.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetNative/BillsTab.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/data-access/dist/index4.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +14 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +24 -168
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +173 -44
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +42 -94
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index13.js +91 -76
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index14.js +67 -173
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index15.js +186 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +11 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +42 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +28 -132
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +137 -16
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +16 -62
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +66 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +28 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableAttachmentsSection.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableCustomerSection.js +38 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +304 -287
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/auditHistory/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/customer.js +58 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentTerms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/permissions.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/preview.js +62 -62
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +41 -35
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/reminders.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/totals.js +21 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +124 -124
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableAttachmentUploads.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableBankAccount.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableCustomerPicker.js +109 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +520 -476
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableIssuePreflight.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentTerms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePreview.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableRecurrence.js +92 -77
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableStatusCards.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +79 -75
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useSendReceivableWithPaymentLink.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +26 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +9 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +26 -228
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +227 -52
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +50 -212
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +193 -138
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +157 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +2 -116
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +118 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +3 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +209 -53
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +36 -7
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +53 -77
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +17 -35
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +8 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +73 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +36 -26
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +17 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +39 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +26 -33
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +20 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +34 -84
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +14 -492
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +28 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +79 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +490 -68
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +2 -487
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +41 -217
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +70 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +440 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +224 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +21 -263
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +261 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +2 -237
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +100 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +21 -242
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +226 -82
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +3 -60
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +233 -178
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +85 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +60 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +194 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +45 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/CounterpartSelector.js +2 -23
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartSelector.js +2 -51
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js +4 -80
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +10 -22
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/labels.js +2 -2
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +0 -100
package/dist/index.css
CHANGED
|
@@ -4957,6 +4957,14 @@
|
|
|
4957
4957
|
.ttw\:hover\:\!text-sidebar-accent-foreground:hover {
|
|
4958
4958
|
color: var(--ttw-sidebar-accent-foreground) !important;
|
|
4959
4959
|
}
|
|
4960
|
+
.ttw\:hover\:text-\[color-mix\(in_srgb\,var\(--ttw-destructive\)\,black_10\%\)\]:hover {
|
|
4961
|
+
color: var(--ttw-destructive);
|
|
4962
|
+
}
|
|
4963
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
4964
|
+
.ttw\:hover\:text-\[color-mix\(in_srgb\,var\(--ttw-destructive\)\,black_10\%\)\]:hover {
|
|
4965
|
+
color: color-mix(in srgb,var(--ttw-destructive),black 10%);
|
|
4966
|
+
}
|
|
4967
|
+
}
|
|
4960
4968
|
.ttw\:hover\:text-accent-foreground:hover {
|
|
4961
4969
|
color: var(--ttw-accent-foreground);
|
|
4962
4970
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1969,7 +1969,7 @@ interface BankAccountOnboardingWidgetLabels {
|
|
|
1969
1969
|
/** The prompt shown when closing with unsaved changes. */
|
|
1970
1970
|
unsavedApplicationDialog: Partial<UnsavedApplicationDialogLabels>;
|
|
1971
1971
|
/**
|
|
1972
|
-
* The prompt confirming "
|
|
1972
|
+
* The prompt confirming "Delete". Its bold run
|
|
1973
1973
|
* defaults to `saveAndClose`, so it names the footer's save control.
|
|
1974
1974
|
*/
|
|
1975
1975
|
deleteApplicationDialog: Partial<DeleteApplicationDialogLabels>;
|
|
@@ -1982,7 +1982,7 @@ interface BankAccountOnboardingWidgetLabels {
|
|
|
1982
1982
|
deleteApplication: string;
|
|
1983
1983
|
/** Shown once the application has been deleted. */
|
|
1984
1984
|
applicationDeletedToast: string;
|
|
1985
|
-
/** Shown after "Save and
|
|
1985
|
+
/** Shown after "Save and continue later" or the close prompt's "Save changes" writes the application. */
|
|
1986
1986
|
applicationSavedToast: string;
|
|
1987
1987
|
businessReviewTitle: string;
|
|
1988
1988
|
businessReviewSubtitle: string;
|
|
@@ -5088,6 +5088,17 @@ interface ReceivableBillingSectionLabels {
|
|
|
5088
5088
|
purchaseOrderOptional: string;
|
|
5089
5089
|
}
|
|
5090
5090
|
|
|
5091
|
+
interface ReceivableCustomerSectionLabels {
|
|
5092
|
+
customerHeading: string;
|
|
5093
|
+
customerDescription: string;
|
|
5094
|
+
customerNameLabel: string;
|
|
5095
|
+
customerListToggleButton: string;
|
|
5096
|
+
customerEmailLabel: string;
|
|
5097
|
+
addCustomerDetailsButton: string;
|
|
5098
|
+
viewCustomerDetailsButton: string;
|
|
5099
|
+
clearCustomerButton: string;
|
|
5100
|
+
}
|
|
5101
|
+
|
|
5091
5102
|
interface ReceivableRecurrenceSectionLabels {
|
|
5092
5103
|
recurrenceRepeatLabel: string;
|
|
5093
5104
|
recurrenceMonthDayLead: string;
|
|
@@ -5176,16 +5187,12 @@ interface UnsavedInvoiceDialogLabels {
|
|
|
5176
5187
|
unsavedSaveDraftButton: string;
|
|
5177
5188
|
unsavedCloseButton: string;
|
|
5178
5189
|
}
|
|
5179
|
-
interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, ReceivableRecurrenceSectionLabels, ReceivableRecurrenceEmailDialogLabels, UnsavedInvoiceDialogLabels {
|
|
5190
|
+
interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, ReceivableCustomerSectionLabels, ReceivableRecurrenceSectionLabels, ReceivableRecurrenceEmailDialogLabels, UnsavedInvoiceDialogLabels {
|
|
5180
5191
|
createTitle: string;
|
|
5181
5192
|
createDescription: string;
|
|
5182
5193
|
editTitle: string;
|
|
5183
5194
|
editDescription: string;
|
|
5184
5195
|
closeButton: string;
|
|
5185
|
-
customerHeading: string;
|
|
5186
|
-
customerDescription: string;
|
|
5187
|
-
customerEmailLabel: string;
|
|
5188
|
-
addCustomerDetailsButton: string;
|
|
5189
5196
|
dueDateLabel: string;
|
|
5190
5197
|
lineItemsHeading: string;
|
|
5191
5198
|
lineItemsDescription: string;
|
|
@@ -5421,8 +5428,16 @@ type InvoicesFilterLabelOverrides = PartialDeep<InvoicesFilterLabels>;
|
|
|
5421
5428
|
|
|
5422
5429
|
interface ReceivableMessageLabels {
|
|
5423
5430
|
customerRequired: string;
|
|
5424
|
-
customerAddressRequired: string;
|
|
5425
5431
|
customerEmailInvalid: string;
|
|
5432
|
+
customerPickerPlaceholder: string;
|
|
5433
|
+
customerPickerSearchOnlyPlaceholder: string;
|
|
5434
|
+
customerPickerEmpty: string;
|
|
5435
|
+
customerPickerSearchOnlyEmpty: string;
|
|
5436
|
+
customerPickerLoading: string;
|
|
5437
|
+
customerPickerLoadFailed: string;
|
|
5438
|
+
customerPickerMoreMatches: string;
|
|
5439
|
+
customerPickerDescription: string;
|
|
5440
|
+
customerPickerSearchOnlyDescription: string;
|
|
5426
5441
|
currencyRequired: string;
|
|
5427
5442
|
lineItemNameTooLong: string;
|
|
5428
5443
|
/** `{maxAmount}` is replaced with the formatted cap. */
|
|
@@ -1037,7 +1037,7 @@ interface BankAccountOnboardingWidgetLabels {
|
|
|
1037
1037
|
/** The prompt shown when closing with unsaved changes. */
|
|
1038
1038
|
unsavedApplicationDialog: Partial<UnsavedApplicationDialogLabels>;
|
|
1039
1039
|
/**
|
|
1040
|
-
* The prompt confirming "
|
|
1040
|
+
* The prompt confirming "Delete". Its bold run
|
|
1041
1041
|
* defaults to `saveAndClose`, so it names the footer's save control.
|
|
1042
1042
|
*/
|
|
1043
1043
|
deleteApplicationDialog: Partial<DeleteApplicationDialogLabels>;
|
|
@@ -1050,7 +1050,7 @@ interface BankAccountOnboardingWidgetLabels {
|
|
|
1050
1050
|
deleteApplication: string;
|
|
1051
1051
|
/** Shown once the application has been deleted. */
|
|
1052
1052
|
applicationDeletedToast: string;
|
|
1053
|
-
/** Shown after "Save and
|
|
1053
|
+
/** Shown after "Save and continue later" or the close prompt's "Save changes" writes the application. */
|
|
1054
1054
|
applicationSavedToast: string;
|
|
1055
1055
|
businessReviewTitle: string;
|
|
1056
1056
|
businessReviewSubtitle: string;
|
|
@@ -1008,6 +1008,17 @@ interface ReceivableBillingSectionLabels {
|
|
|
1008
1008
|
purchaseOrderOptional: string;
|
|
1009
1009
|
}
|
|
1010
1010
|
|
|
1011
|
+
interface ReceivableCustomerSectionLabels {
|
|
1012
|
+
customerHeading: string;
|
|
1013
|
+
customerDescription: string;
|
|
1014
|
+
customerNameLabel: string;
|
|
1015
|
+
customerListToggleButton: string;
|
|
1016
|
+
customerEmailLabel: string;
|
|
1017
|
+
addCustomerDetailsButton: string;
|
|
1018
|
+
viewCustomerDetailsButton: string;
|
|
1019
|
+
clearCustomerButton: string;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1011
1022
|
interface ReceivableRecurrenceSectionLabels {
|
|
1012
1023
|
recurrenceRepeatLabel: string;
|
|
1013
1024
|
recurrenceMonthDayLead: string;
|
|
@@ -1096,16 +1107,12 @@ interface UnsavedInvoiceDialogLabels {
|
|
|
1096
1107
|
unsavedSaveDraftButton: string;
|
|
1097
1108
|
unsavedCloseButton: string;
|
|
1098
1109
|
}
|
|
1099
|
-
interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, ReceivableRecurrenceSectionLabels, ReceivableRecurrenceEmailDialogLabels, UnsavedInvoiceDialogLabels {
|
|
1110
|
+
interface ReceivableFormDialogLabels extends ReceivableBillingSectionLabels, ReceivableCustomerSectionLabels, ReceivableRecurrenceSectionLabels, ReceivableRecurrenceEmailDialogLabels, UnsavedInvoiceDialogLabels {
|
|
1100
1111
|
createTitle: string;
|
|
1101
1112
|
createDescription: string;
|
|
1102
1113
|
editTitle: string;
|
|
1103
1114
|
editDescription: string;
|
|
1104
1115
|
closeButton: string;
|
|
1105
|
-
customerHeading: string;
|
|
1106
|
-
customerDescription: string;
|
|
1107
|
-
customerEmailLabel: string;
|
|
1108
|
-
addCustomerDetailsButton: string;
|
|
1109
1116
|
dueDateLabel: string;
|
|
1110
1117
|
lineItemsHeading: string;
|
|
1111
1118
|
lineItemsDescription: string;
|
|
@@ -1341,8 +1348,16 @@ type InvoicesFilterLabelOverrides = PartialDeep<InvoicesFilterLabels>;
|
|
|
1341
1348
|
|
|
1342
1349
|
interface ReceivableMessageLabels {
|
|
1343
1350
|
customerRequired: string;
|
|
1344
|
-
customerAddressRequired: string;
|
|
1345
1351
|
customerEmailInvalid: string;
|
|
1352
|
+
customerPickerPlaceholder: string;
|
|
1353
|
+
customerPickerSearchOnlyPlaceholder: string;
|
|
1354
|
+
customerPickerEmpty: string;
|
|
1355
|
+
customerPickerSearchOnlyEmpty: string;
|
|
1356
|
+
customerPickerLoading: string;
|
|
1357
|
+
customerPickerLoadFailed: string;
|
|
1358
|
+
customerPickerMoreMatches: string;
|
|
1359
|
+
customerPickerDescription: string;
|
|
1360
|
+
customerPickerSearchOnlyDescription: string;
|
|
1346
1361
|
currencyRequired: string;
|
|
1347
1362
|
lineItemNameTooLong: string;
|
|
1348
1363
|
/** `{maxAmount}` is replaced with the formatted cap. */
|
|
@@ -1086,7 +1086,7 @@ interface BankAccountOnboardingWidgetLabels {
|
|
|
1086
1086
|
/** The prompt shown when closing with unsaved changes. */
|
|
1087
1087
|
unsavedApplicationDialog: Partial<UnsavedApplicationDialogLabels>;
|
|
1088
1088
|
/**
|
|
1089
|
-
* The prompt confirming "
|
|
1089
|
+
* The prompt confirming "Delete". Its bold run
|
|
1090
1090
|
* defaults to `saveAndClose`, so it names the footer's save control.
|
|
1091
1091
|
*/
|
|
1092
1092
|
deleteApplicationDialog: Partial<DeleteApplicationDialogLabels>;
|
|
@@ -1099,7 +1099,7 @@ interface BankAccountOnboardingWidgetLabels {
|
|
|
1099
1099
|
deleteApplication: string;
|
|
1100
1100
|
/** Shown once the application has been deleted. */
|
|
1101
1101
|
applicationDeletedToast: string;
|
|
1102
|
-
/** Shown after "Save and
|
|
1102
|
+
/** Shown after "Save and continue later" or the close prompt's "Save changes" writes the application. */
|
|
1103
1103
|
applicationSavedToast: string;
|
|
1104
1104
|
businessReviewTitle: string;
|
|
1105
1105
|
businessReviewSubtitle: string;
|
|
@@ -59,8 +59,8 @@ var n = {
|
|
|
59
59
|
cancel: "Cancel",
|
|
60
60
|
next: "Next",
|
|
61
61
|
submit: "Submit application",
|
|
62
|
-
saveAndClose: "Save and
|
|
63
|
-
deleteApplication: "
|
|
62
|
+
saveAndClose: "Save and continue later",
|
|
63
|
+
deleteApplication: "Delete",
|
|
64
64
|
applicationDeletedToast: "Application deleted.",
|
|
65
65
|
applicationSavedToast: "Application saved. You can continue later.",
|
|
66
66
|
businessReviewTitle: "Review your business details",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var e = {
|
|
3
3
|
title: "Delete this application?",
|
|
4
4
|
descriptionBeforeEmphasis: "Everything you've entered so far will be permanently removed. If you'd rather come back later, use ",
|
|
5
|
-
descriptionEmphasis: "Save and
|
|
5
|
+
descriptionEmphasis: "Save and continue later",
|
|
6
6
|
descriptionAfterEmphasis: " instead.",
|
|
7
7
|
keepEditingButton: "Keep editing",
|
|
8
8
|
deleteButton: "Delete application"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./index31.js";
|
|
1
|
+
import "./index20.js";
|
|
2
|
+
import "./index25.js";
|
|
4
3
|
import "./index33.js";
|
|
5
4
|
import "./index35.js";
|
|
6
|
-
import "./index36.js";
|
|
7
5
|
import "./index37.js";
|
|
8
6
|
import "./index38.js";
|
|
9
7
|
import "./index39.js";
|
|
10
|
-
import
|
|
11
|
-
import "./
|
|
8
|
+
import "./index40.js";
|
|
9
|
+
import "./index41.js";
|
|
10
|
+
import { BillCreateWidget as e, BillDetailsWidget as t } from "./index43.js";
|
|
11
|
+
import "./index44.js";
|
|
12
12
|
export { e as BillCreateWidget, t as BillDetailsWidget };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { formatRejectionDate as e } from "../../../../shared/util/dist/lib/formatRejectionDate.js";
|
|
2
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index13.js
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
if (
|
|
6
|
-
|
|
2
|
+
function e({ isCapabilityUnknown: e, canApproveNow: t, canOverridePolicy: n, status: r, hasApprovalPolicy: i, pendingApproverNames: a, labels: o }) {
|
|
3
|
+
if (e) return { showApprovalOverrideNotice: !1 };
|
|
4
|
+
if (n) return { showApprovalOverrideNotice: !t };
|
|
5
|
+
if (t || r !== "approve_in_progress" || !i) return { showApprovalOverrideNotice: !1 };
|
|
6
|
+
let s = [...new Set(a)];
|
|
7
7
|
return {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
showApprovalOverrideNotice: !1,
|
|
9
|
+
awaitingApprovalNotice: s.length ? o.awaitingApprovalNotice(s) : o.awaitingApprovalUnknownNotice
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
|
-
export {
|
|
13
|
+
export { e as resolveApprovalNotices };
|
|
@@ -1,33 +1,12 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { hasAnyScope as e } from "../../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
6
|
-
import { useCurrentUserQuery as t } from "../../../../shared/data-access/dist/lib/useCurrentUserQuery.js";
|
|
7
|
-
import { Scope as n } from "../../../../shared/data-access/dist/lib/scopes.js";
|
|
8
|
-
import "../../../../shared/data-access/dist/index.js";
|
|
9
|
-
import { useWidgetConfig as r } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
10
|
-
import "../../../../shared/feature/dist/index.js";
|
|
11
|
-
import { usePayableApprovalRequestsQuery as i } from "../../data-access/dist/index2.js";
|
|
12
|
-
import "../../data-access/dist/index.js";
|
|
13
|
-
import { currentApprovalRound as a } from "./index3.js";
|
|
14
|
-
import { usePayableApprovalRoundStart as o } from "./index11.js";
|
|
15
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index14.js
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
enabled: d
|
|
20
|
-
}), p = t({ enabled: d }), m = p.data?.id, h = (e) => e.caller_is_policy_approver ?? !!(m && e.user_ids.includes(m)), g = i(s, {
|
|
21
|
-
enabled: d,
|
|
22
|
-
hasAwaitedRequest: d ? (e) => a(e, f).some(h) : void 0,
|
|
23
|
-
currentRoundStartedAt: f
|
|
24
|
-
}), _ = d ? a(g.data?.data, f) : [], v = _.some(h), y = _.filter((e) => e.status === "waiting");
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
if (!e) return;
|
|
4
|
+
let { onOpen: n, canEditExisting: r, ...i } = e;
|
|
25
5
|
return {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
isLoading: g.isLoading || p.isLoading
|
|
6
|
+
...i,
|
|
7
|
+
onEditExisting: t && r ? n : void 0,
|
|
8
|
+
onAdd: t ? void 0 : n
|
|
30
9
|
};
|
|
31
10
|
}
|
|
32
11
|
//#endregion
|
|
33
|
-
export {
|
|
12
|
+
export { e as resolvePaymentInstructionsGestures };
|
|
@@ -1,165 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
-
import "../../../../shared/ui/dist/index.js";
|
|
7
|
-
import { useWidgetConfig as t } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
8
|
-
import "../../../../shared/feature/dist/index.js";
|
|
9
|
-
import { useApprovePayableApprovalRequestMutation as n, useRejectPayableApprovalRequestMutation as r } from "../../data-access/dist/index2.js";
|
|
10
|
-
import { useCancelPayableMutation as i } from "../../data-access/dist/index6.js";
|
|
11
|
-
import { useCancelScheduledPaymentMutation as a } from "../../data-access/dist/index7.js";
|
|
12
|
-
import { useForceApprovePayableMutation as o } from "../../data-access/dist/index11.js";
|
|
13
|
-
import { useForceRejectPayableMutation as s } from "../../data-access/dist/index12.js";
|
|
14
|
-
import { useReopenPayableMutation as c } from "../../data-access/dist/index13.js";
|
|
15
|
-
import "../../data-access/dist/index.js";
|
|
16
|
-
import { getBillDetailActions as l } from "./index7.js";
|
|
17
|
-
import { useState as u } from "react";
|
|
18
|
-
import { BanIcon as d, HandIcon as f } from "lucide-react";
|
|
1
|
+
import { formatRejectionDate as e } from "../../../../shared/util/dist/lib/formatRejectionDate.js";
|
|
19
2
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index15.js
|
|
20
|
-
function
|
|
21
|
-
let
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
canDecideApprovalRequest: !!p,
|
|
25
|
-
arePendingApproversUnknown: m,
|
|
26
|
-
hasApprovalPolicy: w,
|
|
27
|
-
hasWaitingRequest: T,
|
|
28
|
-
hasScheduledPayment: h || v,
|
|
29
|
-
scheduledPaymentIntentId: g,
|
|
30
|
-
isPayabilityUnknown: x,
|
|
31
|
-
canEdit: !!k,
|
|
32
|
-
labels: S
|
|
33
|
-
}) : [], W = (t) => ({
|
|
34
|
-
onError: () => e.error(S.actionError),
|
|
35
|
-
onSuccess: () => {
|
|
36
|
-
let n = b(t) && !w ? `${t}NoApprovalPolicy` : t;
|
|
37
|
-
e.success(S.actionSuccess[n]), A?.(t);
|
|
38
|
-
}
|
|
39
|
-
}), G = {
|
|
40
|
-
reject: {
|
|
41
|
-
isPending: M.isPending,
|
|
42
|
-
run: (e) => p && M.mutate({
|
|
43
|
-
path: { approval_request_id: p },
|
|
44
|
-
body: e ? { reject_reason: e } : void 0
|
|
45
|
-
}, W("reject"))
|
|
46
|
-
},
|
|
47
|
-
approve: {
|
|
48
|
-
isPending: N.isPending,
|
|
49
|
-
run: () => p && N.mutate({ path: { approval_request_id: p } }, W("approve"))
|
|
50
|
-
},
|
|
51
|
-
cancel: {
|
|
52
|
-
isPending: P.isPending,
|
|
53
|
-
run: () => d && P.mutate({ path: { payable_id: d } }, W("cancel"))
|
|
54
|
-
},
|
|
55
|
-
cancelScheduledPayment: {
|
|
56
|
-
isPending: F.isPending,
|
|
57
|
-
run: () => {
|
|
58
|
-
let e = H?.scheduledPaymentIntentId;
|
|
59
|
-
d && e && F.mutate({
|
|
60
|
-
path: { payment_intent_id: e },
|
|
61
|
-
payableId: d
|
|
62
|
-
}, W("cancelScheduledPayment"));
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
reopen: {
|
|
66
|
-
isPending: I.isPending,
|
|
67
|
-
run: () => d && I.mutate({ path: { payable_id: d } }, W("reopen"))
|
|
68
|
-
},
|
|
69
|
-
forceApprove: {
|
|
70
|
-
isPending: L.isPending,
|
|
71
|
-
run: () => d && L.mutate({ path: { payable_id: d } }, W("forceApprove"))
|
|
72
|
-
},
|
|
73
|
-
forceReject: {
|
|
74
|
-
isPending: R.isPending,
|
|
75
|
-
run: () => d && R.mutate({ path: { payable_id: d } }, W("forceReject"))
|
|
76
|
-
}
|
|
77
|
-
}, K = U.map((e) => ({
|
|
78
|
-
...e,
|
|
79
|
-
disabled: z,
|
|
80
|
-
loading: e.id === "markAsPaid" ? C : G[e.id]?.isPending ?? !1,
|
|
81
|
-
onSelect: () => {
|
|
82
|
-
if (!z && d) {
|
|
83
|
-
if (e.id === "payBill") {
|
|
84
|
-
D();
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
if (e.id === "markAsPaid") {
|
|
88
|
-
O();
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
if (e.id === "edit") {
|
|
92
|
-
k?.();
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
if (y(e.id)) {
|
|
96
|
-
V({
|
|
97
|
-
id: e.id,
|
|
98
|
-
scheduledPaymentIntentId: g
|
|
99
|
-
});
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
G[e.id]?.run();
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}));
|
|
3
|
+
function t({ payableStatus: t, approvalRequests: n, userNames: r, payableUpdatedAt: i, labels: a, now: o }) {
|
|
4
|
+
let s = n.find((e) => e.status === "rejected");
|
|
5
|
+
if (!s) return t !== "rejected" || !i ? void 0 : { actorLabel: a.rejectedOn(e(i, o)) };
|
|
6
|
+
let c = s.rejected_by ? r.get(s.rejected_by) : void 0, l = e(s.updated_at, o);
|
|
106
7
|
return {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
row: K.filter((e) => e.surface === "row"),
|
|
110
|
-
menu: K.filter((e) => e.surface === "menu")
|
|
111
|
-
},
|
|
112
|
-
decisionDialog: {
|
|
113
|
-
open: !!H,
|
|
114
|
-
copy: H ? {
|
|
115
|
-
...S.decisionDialog[H.id],
|
|
116
|
-
...b(H.id) && !w ? S.decisionDialog[H.id].noApprovalPolicy : void 0,
|
|
117
|
-
presentation: _(H.id),
|
|
118
|
-
pendingApprovers: b(H.id) ? E ?? [] : void 0
|
|
119
|
-
} : void 0,
|
|
120
|
-
isPending: H ? G[H.id]?.isPending ?? !1 : !1,
|
|
121
|
-
onCancel: () => {
|
|
122
|
-
z || V(void 0);
|
|
123
|
-
},
|
|
124
|
-
onConfirm: (e) => {
|
|
125
|
-
H && !z && (G[H.id]?.run(e), V(void 0));
|
|
126
|
-
}
|
|
127
|
-
}
|
|
8
|
+
actorLabel: c ? a.rejectedByOn(c, l) : a.rejectedOn(l),
|
|
9
|
+
message: s.reject_reason ? a.rejectionMessage(s.reject_reason) : void 0
|
|
128
10
|
};
|
|
129
11
|
}
|
|
130
|
-
var m = {
|
|
131
|
-
alignment: "center",
|
|
132
|
-
icon: f,
|
|
133
|
-
tone: "destructive",
|
|
134
|
-
actionWidth: "equal"
|
|
135
|
-
}, h = {
|
|
136
|
-
alignment: "center",
|
|
137
|
-
icon: d,
|
|
138
|
-
tone: "destructive",
|
|
139
|
-
actionWidth: "equal"
|
|
140
|
-
}, g = {
|
|
141
|
-
alignment: "center",
|
|
142
|
-
icon: d,
|
|
143
|
-
tone: "destructive",
|
|
144
|
-
actionWidth: "equal"
|
|
145
|
-
};
|
|
146
|
-
function _(e) {
|
|
147
|
-
if (b(e)) return m;
|
|
148
|
-
if (e === "reject") return h;
|
|
149
|
-
if (e === "cancel") return g;
|
|
150
|
-
}
|
|
151
|
-
var v = [
|
|
152
|
-
"reject",
|
|
153
|
-
"cancel",
|
|
154
|
-
"cancelScheduledPayment",
|
|
155
|
-
"forceApprove",
|
|
156
|
-
"forceReject"
|
|
157
|
-
];
|
|
158
|
-
function y(e) {
|
|
159
|
-
return v.includes(e);
|
|
160
|
-
}
|
|
161
|
-
function b(e) {
|
|
162
|
-
return e === "forceApprove" || e === "forceReject";
|
|
163
|
-
}
|
|
164
12
|
//#endregion
|
|
165
|
-
export {
|
|
13
|
+
export { t as resolveBillRejectionNotice };
|
|
@@ -3,24 +3,31 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
5
|
import { hasAnyScope as e } from "../../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
6
|
-
import {
|
|
6
|
+
import { useCurrentUserQuery as t } from "../../../../shared/data-access/dist/lib/useCurrentUserQuery.js";
|
|
7
|
+
import { Scope as n } from "../../../../shared/data-access/dist/lib/scopes.js";
|
|
7
8
|
import "../../../../shared/data-access/dist/index.js";
|
|
8
|
-
import { useWidgetConfig as
|
|
9
|
+
import { useWidgetConfig as r } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
9
10
|
import "../../../../shared/feature/dist/index.js";
|
|
10
|
-
import {
|
|
11
|
-
import { usePayablePaymentRecordsQuery as i } from "../../data-access/dist/index18.js";
|
|
11
|
+
import { usePayableApprovalRequestsQuery as i } from "../../data-access/dist/index2.js";
|
|
12
12
|
import "../../data-access/dist/index.js";
|
|
13
|
+
import { currentApprovalRound as a } from "./index3.js";
|
|
14
|
+
import { usePayableApprovalRoundStart as o } from "./index11.js";
|
|
13
15
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index16.js
|
|
14
|
-
function
|
|
15
|
-
let { initResponse:
|
|
16
|
+
function s({ payableId: s, status: c }) {
|
|
17
|
+
let { initResponse: l } = r(), u = e(l?.scopes, [n.ApprovalRequestReadOrg]), d = c === "approve_in_progress" && u, { roundStartedAt: f } = o({
|
|
18
|
+
payableId: s,
|
|
19
|
+
enabled: d
|
|
20
|
+
}), p = t({ enabled: d }), m = p.data?.id, h = (e) => e.caller_is_policy_approver ?? !!(m && e.user_ids.includes(m)), g = i(s, {
|
|
21
|
+
enabled: d,
|
|
22
|
+
hasAwaitedRequest: d ? (e) => a(e, f).some(h) : void 0,
|
|
23
|
+
currentRoundStartedAt: f
|
|
24
|
+
}), _ = d ? a(g.data?.data, f) : [], v = _.some(h), y = _.filter((e) => e.status === "waiting");
|
|
16
25
|
return {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
scheduledDate: p ?? void 0,
|
|
22
|
-
scheduledPaymentIntentId: d?.payment_intent_id ?? void 0
|
|
26
|
+
id: y.filter(h).find((e) => !(m && (e.approved_by ?? []).includes(m)))?.id,
|
|
27
|
+
isPolicyApprover: v,
|
|
28
|
+
hasWaitingRequest: y.length > 0,
|
|
29
|
+
isLoading: g.isLoading || p.isLoading
|
|
23
30
|
};
|
|
24
31
|
}
|
|
25
32
|
//#endregion
|
|
26
|
-
export {
|
|
33
|
+
export { s as useCurrentApprovalRequestId };
|