@tesouro/embedded-components-react 0.5.252 → 0.5.255
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.d.ts +95 -79
- package/dist/lib/ReceivablesWidget.d.ts +25 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +214 -209
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +162 -145
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +32 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetNative/BillPayWidgetNative.js +48 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetNative/BillsTab.js +32 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetNative/labels.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +19 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +38 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +11 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +78 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -78
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +29 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +26 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +5 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index6.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index7.js +54 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index8.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +89 -88
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +55 -74
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentRecord.js +71 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +123 -164
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +40 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +91 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +83 -78
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +7 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/receivables.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +15 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +206 -89
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +38 -38
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +8 -7
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +0 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -4594,6 +4594,76 @@ interface CounterpartMessageLabels {
|
|
|
4594
4594
|
deleteBankAccountMessage: string;
|
|
4595
4595
|
}
|
|
4596
4596
|
|
|
4597
|
+
interface NoPolicyBannerLabels {
|
|
4598
|
+
Title: string;
|
|
4599
|
+
Body: string;
|
|
4600
|
+
/**
|
|
4601
|
+
* Heading for an org that *has* rules, none of which this editor can show. The
|
|
4602
|
+
* plain `Title` would contradict the notice sitting directly above it, which
|
|
4603
|
+
* has just said how many rules exist.
|
|
4604
|
+
*/
|
|
4605
|
+
TitleWithUnlistedRules: string;
|
|
4606
|
+
/** Body for that case. The notice above already explains the why. */
|
|
4607
|
+
BodyWithUnlistedRules: string;
|
|
4608
|
+
CreateRule: string;
|
|
4609
|
+
}
|
|
4610
|
+
|
|
4611
|
+
interface NoPolicyBannerTestIds {
|
|
4612
|
+
root?: string;
|
|
4613
|
+
createRuleButton?: string;
|
|
4614
|
+
/** The disabled-reason wrapper shown in place of the button. */
|
|
4615
|
+
createRuleBlocked?: string;
|
|
4616
|
+
}
|
|
4617
|
+
interface NoPolicyBannerProps {
|
|
4618
|
+
onCreateRule: () => void;
|
|
4619
|
+
disabled?: boolean;
|
|
4620
|
+
/**
|
|
4621
|
+
* Why Create rule is off, shown on hover and on keyboard focus. Omit it for the
|
|
4622
|
+
* transient reasons that explain themselves on screen (a write in flight).
|
|
4623
|
+
*/
|
|
4624
|
+
createRuleDisabledReason?: string;
|
|
4625
|
+
/**
|
|
4626
|
+
* Whether the org has rules that simply are not shown here. Switches the copy
|
|
4627
|
+
* off the "none created yet" claim, which would contradict the notice that
|
|
4628
|
+
* sits above this banner and has just counted them.
|
|
4629
|
+
*/
|
|
4630
|
+
hasUnlistedRules?: boolean;
|
|
4631
|
+
labels?: Partial<NoPolicyBannerLabels>;
|
|
4632
|
+
testIds?: NoPolicyBannerTestIds;
|
|
4633
|
+
}
|
|
4634
|
+
|
|
4635
|
+
interface GapCoverageAlertLabels {
|
|
4636
|
+
Title: string;
|
|
4637
|
+
Footer: string;
|
|
4638
|
+
}
|
|
4639
|
+
|
|
4640
|
+
/**
|
|
4641
|
+
* One uncovered bill-amount range. `label` is pre-formatted by the caller
|
|
4642
|
+
* (e.g. "$10.01 to $99.99" or "$500.01 or more") — this component renders it
|
|
4643
|
+
* as-is rather than composing range/currency copy itself.
|
|
4644
|
+
*/
|
|
4645
|
+
interface GapRange {
|
|
4646
|
+
id: string;
|
|
4647
|
+
label: string;
|
|
4648
|
+
/**
|
|
4649
|
+
* Why a new rule cannot take this range, for the link's tooltip. A range can be
|
|
4650
|
+
* uncovered today and still be spoken for — a rule whose schedule has not
|
|
4651
|
+
* started covers nothing yet but claims its range — in which case starting a
|
|
4652
|
+
* rule here only ever ends in a rejected save. Omit for a range that is free.
|
|
4653
|
+
*/
|
|
4654
|
+
blockedReason?: string;
|
|
4655
|
+
}
|
|
4656
|
+
interface GapCoverageAlertTestIds {
|
|
4657
|
+
root?: string;
|
|
4658
|
+
}
|
|
4659
|
+
interface GapCoverageAlertProps {
|
|
4660
|
+
gaps: GapRange[];
|
|
4661
|
+
onSelectGap: (id: string) => void;
|
|
4662
|
+
disabled?: boolean;
|
|
4663
|
+
labels?: Partial<GapCoverageAlertLabels>;
|
|
4664
|
+
testIds?: GapCoverageAlertTestIds;
|
|
4665
|
+
}
|
|
4666
|
+
|
|
4597
4667
|
/**
|
|
4598
4668
|
* Co-located user-facing strings for the counterparts widget UI. Each component
|
|
4599
4669
|
* takes a `labels?: Partial<...Labels>` prop merged over the matching
|
|
@@ -5254,15 +5324,22 @@ interface ReceivableSendDialogLabels {
|
|
|
5254
5324
|
}
|
|
5255
5325
|
interface ReceivablePaymentDialogLabels {
|
|
5256
5326
|
title: string;
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5327
|
+
amountLabel: string;
|
|
5328
|
+
amountPlaceholder: string;
|
|
5329
|
+
fullAmountDuePrefix: string;
|
|
5330
|
+
dateLabel: string;
|
|
5331
|
+
datePlaceholder: string;
|
|
5332
|
+
timeLabel: string;
|
|
5333
|
+
timeZoneSuffix: string;
|
|
5264
5334
|
cancelButton: string;
|
|
5265
|
-
|
|
5335
|
+
saveButton: string;
|
|
5336
|
+
reviewTitle: string;
|
|
5337
|
+
receivedLabel: string;
|
|
5338
|
+
referenceLabel: string;
|
|
5339
|
+
createdByLabel: string;
|
|
5340
|
+
reviewWarning: string;
|
|
5341
|
+
editRecordButton: string;
|
|
5342
|
+
confirmButton: string;
|
|
5266
5343
|
}
|
|
5267
5344
|
interface ReceivableActionDialogLabels {
|
|
5268
5345
|
cancelButton: string;
|
|
@@ -5323,7 +5400,16 @@ interface ReceivableMessageLabels {
|
|
|
5323
5400
|
sendToRequired: string;
|
|
5324
5401
|
sendSubjectRequired: string;
|
|
5325
5402
|
sendBodyRequired: string;
|
|
5326
|
-
|
|
5403
|
+
paymentRecordAmountRequired: string;
|
|
5404
|
+
paymentRecordAmountNegative: string;
|
|
5405
|
+
paymentRecordAmountZero: string;
|
|
5406
|
+
paymentRecordDateRequired: string;
|
|
5407
|
+
paymentRecordTimeRequired: string;
|
|
5408
|
+
/** `{name}` is replaced with the customer's name. */
|
|
5409
|
+
paymentRecordFrom: string;
|
|
5410
|
+
paymentRecordCreated: string;
|
|
5411
|
+
/** `{errorMessage}` is replaced with the API's reason. */
|
|
5412
|
+
paymentRecordCreateFailed: string;
|
|
5327
5413
|
genericError: string;
|
|
5328
5414
|
lineItemsLoading: string;
|
|
5329
5415
|
paymentTermsCustomDatePlaceholder: string;
|
|
@@ -5998,76 +6084,6 @@ interface CheckAmountAndDetailScreenProps {
|
|
|
5998
6084
|
continueDisabled?: boolean;
|
|
5999
6085
|
}
|
|
6000
6086
|
|
|
6001
|
-
interface NoPolicyBannerLabels {
|
|
6002
|
-
Title: string;
|
|
6003
|
-
Body: string;
|
|
6004
|
-
/**
|
|
6005
|
-
* Heading for an org that *has* rules, none of which this editor can show. The
|
|
6006
|
-
* plain `Title` would contradict the notice sitting directly above it, which
|
|
6007
|
-
* has just said how many rules exist.
|
|
6008
|
-
*/
|
|
6009
|
-
TitleWithUnlistedRules: string;
|
|
6010
|
-
/** Body for that case. The notice above already explains the why. */
|
|
6011
|
-
BodyWithUnlistedRules: string;
|
|
6012
|
-
CreateRule: string;
|
|
6013
|
-
}
|
|
6014
|
-
|
|
6015
|
-
interface NoPolicyBannerTestIds {
|
|
6016
|
-
root?: string;
|
|
6017
|
-
createRuleButton?: string;
|
|
6018
|
-
/** The disabled-reason wrapper shown in place of the button. */
|
|
6019
|
-
createRuleBlocked?: string;
|
|
6020
|
-
}
|
|
6021
|
-
interface NoPolicyBannerProps {
|
|
6022
|
-
onCreateRule: () => void;
|
|
6023
|
-
disabled?: boolean;
|
|
6024
|
-
/**
|
|
6025
|
-
* Why Create rule is off, shown on hover and on keyboard focus. Omit it for the
|
|
6026
|
-
* transient reasons that explain themselves on screen (a write in flight).
|
|
6027
|
-
*/
|
|
6028
|
-
createRuleDisabledReason?: string;
|
|
6029
|
-
/**
|
|
6030
|
-
* Whether the org has rules that simply are not shown here. Switches the copy
|
|
6031
|
-
* off the "none created yet" claim, which would contradict the notice that
|
|
6032
|
-
* sits above this banner and has just counted them.
|
|
6033
|
-
*/
|
|
6034
|
-
hasUnlistedRules?: boolean;
|
|
6035
|
-
labels?: Partial<NoPolicyBannerLabels>;
|
|
6036
|
-
testIds?: NoPolicyBannerTestIds;
|
|
6037
|
-
}
|
|
6038
|
-
|
|
6039
|
-
interface GapCoverageAlertLabels {
|
|
6040
|
-
Title: string;
|
|
6041
|
-
Footer: string;
|
|
6042
|
-
}
|
|
6043
|
-
|
|
6044
|
-
/**
|
|
6045
|
-
* One uncovered bill-amount range. `label` is pre-formatted by the caller
|
|
6046
|
-
* (e.g. "$10.01 to $99.99" or "$500.01 or more") — this component renders it
|
|
6047
|
-
* as-is rather than composing range/currency copy itself.
|
|
6048
|
-
*/
|
|
6049
|
-
interface GapRange {
|
|
6050
|
-
id: string;
|
|
6051
|
-
label: string;
|
|
6052
|
-
/**
|
|
6053
|
-
* Why a new rule cannot take this range, for the link's tooltip. A range can be
|
|
6054
|
-
* uncovered today and still be spoken for — a rule whose schedule has not
|
|
6055
|
-
* started covers nothing yet but claims its range — in which case starting a
|
|
6056
|
-
* rule here only ever ends in a rejected save. Omit for a range that is free.
|
|
6057
|
-
*/
|
|
6058
|
-
blockedReason?: string;
|
|
6059
|
-
}
|
|
6060
|
-
interface GapCoverageAlertTestIds {
|
|
6061
|
-
root?: string;
|
|
6062
|
-
}
|
|
6063
|
-
interface GapCoverageAlertProps {
|
|
6064
|
-
gaps: GapRange[];
|
|
6065
|
-
onSelectGap: (id: string) => void;
|
|
6066
|
-
disabled?: boolean;
|
|
6067
|
-
labels?: Partial<GapCoverageAlertLabels>;
|
|
6068
|
-
testIds?: GapCoverageAlertTestIds;
|
|
6069
|
-
}
|
|
6070
|
-
|
|
6071
6087
|
type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
|
|
6072
6088
|
|
|
6073
6089
|
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, APPLICATION_STATUS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, CustomersWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, ReceivablesWidgetMonite as InvoicingWidget, LinkedAccountsWidget, MARKETING_WIDGET_LABELS_EN, MARKETING_WIDGET_STATUS_LABELS_EN, MarketingBenefitIcon, MarketingWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, Scope, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework, UploadReceiptWidget, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, getGlobalWidgetConfig, getGlobalWidgetInitState, isScope, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
|
|
@@ -1263,15 +1263,22 @@ interface ReceivableSendDialogLabels {
|
|
|
1263
1263
|
}
|
|
1264
1264
|
interface ReceivablePaymentDialogLabels {
|
|
1265
1265
|
title: string;
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1266
|
+
amountLabel: string;
|
|
1267
|
+
amountPlaceholder: string;
|
|
1268
|
+
fullAmountDuePrefix: string;
|
|
1269
|
+
dateLabel: string;
|
|
1270
|
+
datePlaceholder: string;
|
|
1271
|
+
timeLabel: string;
|
|
1272
|
+
timeZoneSuffix: string;
|
|
1273
1273
|
cancelButton: string;
|
|
1274
|
-
|
|
1274
|
+
saveButton: string;
|
|
1275
|
+
reviewTitle: string;
|
|
1276
|
+
receivedLabel: string;
|
|
1277
|
+
referenceLabel: string;
|
|
1278
|
+
createdByLabel: string;
|
|
1279
|
+
reviewWarning: string;
|
|
1280
|
+
editRecordButton: string;
|
|
1281
|
+
confirmButton: string;
|
|
1275
1282
|
}
|
|
1276
1283
|
interface ReceivableActionDialogLabels {
|
|
1277
1284
|
cancelButton: string;
|
|
@@ -1332,7 +1339,16 @@ interface ReceivableMessageLabels {
|
|
|
1332
1339
|
sendToRequired: string;
|
|
1333
1340
|
sendSubjectRequired: string;
|
|
1334
1341
|
sendBodyRequired: string;
|
|
1335
|
-
|
|
1342
|
+
paymentRecordAmountRequired: string;
|
|
1343
|
+
paymentRecordAmountNegative: string;
|
|
1344
|
+
paymentRecordAmountZero: string;
|
|
1345
|
+
paymentRecordDateRequired: string;
|
|
1346
|
+
paymentRecordTimeRequired: string;
|
|
1347
|
+
/** `{name}` is replaced with the customer's name. */
|
|
1348
|
+
paymentRecordFrom: string;
|
|
1349
|
+
paymentRecordCreated: string;
|
|
1350
|
+
/** `{errorMessage}` is replaced with the API's reason. */
|
|
1351
|
+
paymentRecordCreateFailed: string;
|
|
1336
1352
|
genericError: string;
|
|
1337
1353
|
lineItemsLoading: string;
|
|
1338
1354
|
paymentTermsCustomDatePlaceholder: string;
|
|
@@ -33,7 +33,8 @@ function c({ payableId: i, file: a, isDocumentPending: c, pendingFileName: l, re
|
|
|
33
33
|
}, w = r(), T = s(m), E = !!(a && !v || m);
|
|
34
34
|
if (!E && (c || w.isPending)) return /* @__PURE__ */ o(t, {
|
|
35
35
|
mode: "loading",
|
|
36
|
-
fileName: l
|
|
36
|
+
fileName: l,
|
|
37
|
+
labels: p?.panel
|
|
37
38
|
});
|
|
38
39
|
if (!E && u) return /* @__PURE__ */ o("div", {
|
|
39
40
|
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4 ttw:text-sm ttw:text-muted-foreground",
|
|
@@ -41,6 +42,7 @@ function c({ payableId: i, file: a, isDocumentPending: c, pendingFileName: l, re
|
|
|
41
42
|
});
|
|
42
43
|
if (!E) return /* @__PURE__ */ o(t, {
|
|
43
44
|
mode: "upload",
|
|
45
|
+
labels: p?.panel,
|
|
44
46
|
uploadStatus: w.isPending || x ? "uploading" : "idle",
|
|
45
47
|
uploadErrorMessage: w.isError ? C.attachFailed : S ? C.deleteFailed : void 0,
|
|
46
48
|
noticeMessage: v && !S ? C.pendingDeletionNotice : void 0,
|
|
@@ -68,6 +70,7 @@ function c({ payableId: i, file: a, isDocumentPending: c, pendingFileName: l, re
|
|
|
68
70
|
}, C.preview);
|
|
69
71
|
return /* @__PURE__ */ o(t, {
|
|
70
72
|
mode: "document",
|
|
73
|
+
labels: p?.panel,
|
|
71
74
|
fileName: D,
|
|
72
75
|
preview: O,
|
|
73
76
|
isDeleting: x,
|