@tesouro/embedded-components-react 0.5.278 → 0.5.280
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 +21 -6
- package/dist/lib/ReceivablesWidget.d.ts +21 -6
- 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/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +1 -1
- 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/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/widgetDomEvents.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +0 -100
|
@@ -9,348 +9,365 @@ import { useAnalyticsTrack as r } from "../../../../../shared/feature/dist/lib/a
|
|
|
9
9
|
import { WidgetProvider as i } from "../../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
10
10
|
import "../../../../../shared/feature/dist/index.js";
|
|
11
11
|
import { CounterpartFormSheet as a } from "../../../../../shared/counterpart-management/ui/dist/index9.js";
|
|
12
|
-
import { CounterpartSelector as o } from "../../../../../shared/counterpart-management/feature/dist/lib/CounterpartSelector.js";
|
|
13
12
|
import "../../../../../shared/counterpart-management/feature/dist/index.js";
|
|
14
|
-
import { CounterpartDetailsContainer as
|
|
13
|
+
import { CounterpartDetailsContainer as o } from "../../../../../counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartDetailsContainer.js";
|
|
15
14
|
import "../../../../../counterparts-widget/feature/dist/index.js";
|
|
16
|
-
import { ReceivablesWidgetAnalyticsEvent as
|
|
17
|
-
import { PAGE_SIZE_OPTIONS as
|
|
18
|
-
import { InvoicesFilterBar as
|
|
19
|
-
import { ReceivableActionsModal as
|
|
20
|
-
import { ReceivableActionDialog as
|
|
21
|
-
import { ReceivableBankAccountSection as
|
|
22
|
-
import { ReceivableBillingSection as
|
|
23
|
-
import { ReceivableDetailsPanel as
|
|
24
|
-
import { ReceivableFormDialog as
|
|
25
|
-
import { ReceivablePaymentDialog as
|
|
26
|
-
import { ReceivablePreview as
|
|
27
|
-
import { ReceivableRecurrenceEmailDialog as
|
|
28
|
-
import { ReceivableRecurrenceSection as
|
|
29
|
-
import { ReceivableRemindersSection as
|
|
30
|
-
import { ReceivableSendDialog as
|
|
31
|
-
import { ReceivablesScreen as
|
|
32
|
-
import { UnsavedInvoiceDialog as
|
|
15
|
+
import { ReceivablesWidgetAnalyticsEvent as s, WIDGET_NAME as c } from "./analytics/events.js";
|
|
16
|
+
import { PAGE_SIZE_OPTIONS as l } from "./constants.js";
|
|
17
|
+
import { InvoicesFilterBar as u } from "../../../../ui/dist/index4.js";
|
|
18
|
+
import { ReceivableActionsModal as d } from "../../../../ui/dist/index9.js";
|
|
19
|
+
import { ReceivableActionDialog as f } from "../../../../ui/dist/index15.js";
|
|
20
|
+
import { ReceivableBankAccountSection as p } from "../../../../ui/dist/index16.js";
|
|
21
|
+
import { ReceivableBillingSection as m } from "../../../../ui/dist/index21.js";
|
|
22
|
+
import { ReceivableDetailsPanel as h } from "../../../../ui/dist/index40.js";
|
|
23
|
+
import { ReceivableFormDialog as g } from "../../../../ui/dist/index44.js";
|
|
24
|
+
import { ReceivablePaymentDialog as _ } from "../../../../ui/dist/index45.js";
|
|
25
|
+
import { ReceivablePreview as v } from "../../../../ui/dist/index49.js";
|
|
26
|
+
import { ReceivableRecurrenceEmailDialog as y } from "../../../../ui/dist/index51.js";
|
|
27
|
+
import { ReceivableRecurrenceSection as b } from "../../../../ui/dist/index53.js";
|
|
28
|
+
import { ReceivableRemindersSection as x } from "../../../../ui/dist/index55.js";
|
|
29
|
+
import { ReceivableSendDialog as ee } from "../../../../ui/dist/index56.js";
|
|
30
|
+
import { ReceivablesScreen as te } from "../../../../ui/dist/index58.js";
|
|
31
|
+
import { UnsavedInvoiceDialog as ne } from "../../../../ui/dist/index59.js";
|
|
33
32
|
import "../../../../ui/dist/index.js";
|
|
34
|
-
import { ReceivableAttachmentsSection as
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
33
|
+
import { ReceivableAttachmentsSection as re } from "./ReceivableAttachmentsSection.js";
|
|
34
|
+
import { ReceivableCustomerSection as S } from "./ReceivableCustomerSection.js";
|
|
35
|
+
import { MeasureUnitsManagerContainer as C } from "../../../../../shared/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js";
|
|
36
|
+
import { ProductSelector as w } from "../../../../../shared/product-catalog/feature/dist/lib/ProductSelector.js";
|
|
37
37
|
import "../../../../../shared/product-catalog/feature/dist/index.js";
|
|
38
|
-
import { useReceivablesWidget as
|
|
39
|
-
import { useEffect as
|
|
40
|
-
import { Fragment as
|
|
38
|
+
import { useReceivablesWidget as T } from "./useReceivablesWidget.js";
|
|
39
|
+
import { useEffect as E, useId as D } from "react";
|
|
40
|
+
import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
41
41
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js
|
|
42
|
-
function
|
|
43
|
-
let
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}, [
|
|
47
|
-
let
|
|
42
|
+
function j({ auditHistoryLabels: i, bankAttribution: c, counterpartFormLabels: j, counterpartMessageLabels: M, detailsLabels: N, embeddedBankName: P, filterBarLabels: F, filterLabels: I, formLabels: L, headerStart: R, initialCounterpartId: z, initialView: B, measureUnitDeleteLabels: V, measureUnitsLabels: H, messageLabels: ie, onReceivableCreated: U, onReceivableOpened: W, onTemplateSettingsClick: G, pageSizeOptions: K = l, paymentLabels: q, previewLabels: J, productMessageLabels: Y, screenLabels: X, sendLabels: ae, actionLabels: oe, actionsModalLabels: se }) {
|
|
43
|
+
let Z = r();
|
|
44
|
+
E(() => {
|
|
45
|
+
Z(s.Mounted);
|
|
46
|
+
}, [Z]);
|
|
47
|
+
let Q = T({
|
|
48
48
|
auditHistoryLabels: i,
|
|
49
|
-
counterpartMessageLabels:
|
|
50
|
-
embeddedBankName:
|
|
51
|
-
filterLabels:
|
|
52
|
-
initialCounterpartId:
|
|
53
|
-
initialView:
|
|
54
|
-
messageLabels:
|
|
55
|
-
onReceivableCreated:
|
|
56
|
-
onReceivableOpened:
|
|
57
|
-
pageSizeOptions:
|
|
58
|
-
screenLabels:
|
|
59
|
-
}),
|
|
60
|
-
return /* @__PURE__ */
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
/* @__PURE__ */
|
|
63
|
-
rows:
|
|
64
|
-
isLoading:
|
|
65
|
-
isError:
|
|
66
|
-
isAccessRestricted:
|
|
67
|
-
sorting:
|
|
68
|
-
onSortingChange:
|
|
69
|
-
pageSize:
|
|
70
|
-
onPageSizeChange:
|
|
71
|
-
pageSizeOptions:
|
|
72
|
-
hasNextPage:
|
|
73
|
-
hasPrevPage:
|
|
74
|
-
onNextPage:
|
|
75
|
-
onPrevPage:
|
|
76
|
-
statusCards:
|
|
77
|
-
onStatusCardSelect:
|
|
78
|
-
filterBar: /* @__PURE__ */
|
|
79
|
-
...
|
|
80
|
-
labels:
|
|
49
|
+
counterpartMessageLabels: M,
|
|
50
|
+
embeddedBankName: P,
|
|
51
|
+
filterLabels: I,
|
|
52
|
+
initialCounterpartId: z,
|
|
53
|
+
initialView: B,
|
|
54
|
+
messageLabels: ie,
|
|
55
|
+
onReceivableCreated: U,
|
|
56
|
+
onReceivableOpened: W,
|
|
57
|
+
pageSizeOptions: K,
|
|
58
|
+
screenLabels: X
|
|
59
|
+
}), ce = D(), le = D(), $ = D(), ue = D(), de = D(), fe = D();
|
|
60
|
+
return /* @__PURE__ */ A(O, { children: [
|
|
61
|
+
/* @__PURE__ */ k(n, { position: "bottom-left" }),
|
|
62
|
+
/* @__PURE__ */ k(te, {
|
|
63
|
+
rows: Q.table.rows,
|
|
64
|
+
isLoading: Q.isTableLoading,
|
|
65
|
+
isError: Q.isError,
|
|
66
|
+
isAccessRestricted: Q.isAccessRestricted,
|
|
67
|
+
sorting: Q.table.sorting,
|
|
68
|
+
onSortingChange: Q.table.onSortingChange,
|
|
69
|
+
pageSize: Q.table.pageSize,
|
|
70
|
+
onPageSizeChange: Q.table.onPageSizeChange,
|
|
71
|
+
pageSizeOptions: K,
|
|
72
|
+
hasNextPage: Q.table.hasNextPage,
|
|
73
|
+
hasPrevPage: Q.table.hasPrevPage,
|
|
74
|
+
onNextPage: Q.table.onNextPage,
|
|
75
|
+
onPrevPage: Q.table.onPrevPage,
|
|
76
|
+
statusCards: Q.table.statusCards,
|
|
77
|
+
onStatusCardSelect: Q.table.onStatusCardSelect,
|
|
78
|
+
filterBar: /* @__PURE__ */ k(u, {
|
|
79
|
+
...Q.table.filterBar,
|
|
80
|
+
labels: F
|
|
81
81
|
}),
|
|
82
|
-
isFiltering:
|
|
83
|
-
headerStart:
|
|
84
|
-
bankAttribution:
|
|
85
|
-
onCreateClick:
|
|
86
|
-
onSettingsClick:
|
|
87
|
-
onRowClick:
|
|
88
|
-
onRetry:
|
|
89
|
-
labels:
|
|
82
|
+
isFiltering: Q.table.isFiltering,
|
|
83
|
+
headerStart: R,
|
|
84
|
+
bankAttribution: c,
|
|
85
|
+
onCreateClick: Q.canWrite ? Q.openCreate : void 0,
|
|
86
|
+
onSettingsClick: Q.canEditSettings ? G : void 0,
|
|
87
|
+
onRowClick: Q.handleRowClick,
|
|
88
|
+
onRetry: Q.onRetry,
|
|
89
|
+
labels: X
|
|
90
90
|
}),
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
open:
|
|
93
|
-
onRequestClose:
|
|
94
|
-
mode:
|
|
95
|
-
values:
|
|
96
|
-
errors:
|
|
97
|
-
unitOptions:
|
|
98
|
-
currencySymbol:
|
|
99
|
-
lineItemControls:
|
|
100
|
-
autoFocusLineItemId:
|
|
101
|
-
lineItemsLoading:
|
|
102
|
-
inProgress:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
91
|
+
/* @__PURE__ */ k(g, {
|
|
92
|
+
open: Q.form.open,
|
|
93
|
+
onRequestClose: Q.form.requestClose,
|
|
94
|
+
mode: Q.form.mode,
|
|
95
|
+
values: Q.form.sheetValues,
|
|
96
|
+
errors: Q.form.errors,
|
|
97
|
+
unitOptions: Q.form.lineItemUnitOptions,
|
|
98
|
+
currencySymbol: Q.form.currencySymbol,
|
|
99
|
+
lineItemControls: Q.form.lineItemControls,
|
|
100
|
+
autoFocusLineItemId: Q.form.autoFocusLineItemId,
|
|
101
|
+
lineItemsLoading: Q.form.lineItemsLoading,
|
|
102
|
+
inProgress: Q.form.isSubmitting || Q.actionsSuspended,
|
|
103
|
+
customerSection: /* @__PURE__ */ k(S, {
|
|
104
|
+
idPrefix: le,
|
|
105
|
+
customerId: Q.form.values.customerId,
|
|
106
|
+
customer: Q.form.customer,
|
|
107
|
+
customerName: Q.form.values.customerName,
|
|
108
|
+
customerEmail: Q.form.values.customerEmail,
|
|
109
|
+
customerError: Q.form.errors.customerId,
|
|
110
|
+
customerEmailError: Q.form.errors.customerEmail,
|
|
111
|
+
canCreate: Q.canCreateCustomer,
|
|
112
|
+
messages: Q.messages,
|
|
113
|
+
disabled: Q.form.isSubmitting,
|
|
114
|
+
onCustomerSelect: (e) => Q.form.updateValues({ customerId: e }),
|
|
115
|
+
onCustomerNameChange: (e) => Q.form.updateValues({ customerName: e }),
|
|
116
|
+
onCustomerEmailChange: (e) => Q.form.updateValues({ customerEmail: e }),
|
|
117
|
+
onCustomerEmailBlur: Q.form.commitCustomerEmail,
|
|
118
|
+
onAddDetailsClick: Q.form.openCounterpartCreate,
|
|
119
|
+
onViewDetailsClick: Q.openCustomerDetails ? () => Q.openCustomerDetails?.(Q.form.values.customerId) : void 0,
|
|
120
|
+
onClearClick: () => Q.form.updateValues({
|
|
121
|
+
customerId: "",
|
|
122
|
+
customerName: "",
|
|
123
|
+
customerEmail: ""
|
|
124
|
+
}),
|
|
125
|
+
labels: L
|
|
108
126
|
}),
|
|
109
|
-
renderProductSelector: (e, t) => /* @__PURE__ */
|
|
127
|
+
renderProductSelector: (e, t) => /* @__PURE__ */ k(w, {
|
|
110
128
|
...t,
|
|
111
129
|
inputValue: e.name,
|
|
112
|
-
selectedProductId:
|
|
113
|
-
currency:
|
|
130
|
+
selectedProductId: Q.form.values.lineItems.find((t) => t.id === e.id)?.productId || void 0,
|
|
131
|
+
currency: Q.form.values.currency,
|
|
114
132
|
maxLength: 100,
|
|
115
|
-
onInputValueChange: (t) =>
|
|
116
|
-
onProductSelect: (t) =>
|
|
133
|
+
onInputValueChange: (t) => Q.form.updateLineItem(e.id, { name: t }),
|
|
134
|
+
onProductSelect: (t) => Q.form.selectProduct(e.id, t)
|
|
117
135
|
}),
|
|
118
|
-
onChange:
|
|
119
|
-
onLineItemChange:
|
|
120
|
-
onLineItemCommit:
|
|
121
|
-
onLineItemQuantityStep:
|
|
122
|
-
onTaxRateCommit:
|
|
123
|
-
onDiscountFocus:
|
|
124
|
-
onDiscountCommit:
|
|
125
|
-
totals:
|
|
126
|
-
onManageUnits:
|
|
127
|
-
onAddLineItem:
|
|
128
|
-
onRemoveLineItem:
|
|
129
|
-
showDueDateField:
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
customDateCalendar: /* @__PURE__ */ O(e, {
|
|
136
|
+
onChange: Q.form.updateValues,
|
|
137
|
+
onLineItemChange: Q.form.updateLineItem,
|
|
138
|
+
onLineItemCommit: Q.form.commitLineItem,
|
|
139
|
+
onLineItemQuantityStep: Q.form.stepLineItem,
|
|
140
|
+
onTaxRateCommit: Q.form.commitTaxRate,
|
|
141
|
+
onDiscountFocus: Q.form.focusDiscount,
|
|
142
|
+
onDiscountCommit: Q.form.commitDiscount,
|
|
143
|
+
totals: Q.form.totalsView,
|
|
144
|
+
onManageUnits: Q.openMeasureUnits,
|
|
145
|
+
onAddLineItem: Q.form.addLineItem,
|
|
146
|
+
onRemoveLineItem: Q.form.removeLineItem,
|
|
147
|
+
showDueDateField: Q.form.showDueDateField,
|
|
148
|
+
billingSection: Q.form.showBillingSection && /* @__PURE__ */ k(m, {
|
|
149
|
+
idPrefix: ce,
|
|
150
|
+
paymentTerms: Q.form.paymentTerms.view,
|
|
151
|
+
paymentTermsError: Q.form.errors.paymentTermsId,
|
|
152
|
+
disabled: Q.form.isSubmitting,
|
|
153
|
+
onPaymentTermsChange: Q.form.paymentTerms.select,
|
|
154
|
+
onCustomDatePickerOpenChange: Q.form.paymentTerms.changeCustomDatePickerOpen,
|
|
155
|
+
purchaseOrder: Q.form.purchaseOrder,
|
|
156
|
+
onPurchaseOrderChange: (e) => Q.form.updateValues({ purchaseOrder: e }),
|
|
157
|
+
customDateCalendar: /* @__PURE__ */ k(e, {
|
|
141
158
|
mode: "single",
|
|
142
159
|
captionLayout: "dropdown",
|
|
143
|
-
...
|
|
144
|
-
onSelect:
|
|
160
|
+
...Q.form.paymentTerms.calendar,
|
|
161
|
+
onSelect: Q.form.paymentTerms.selectCustomDate
|
|
145
162
|
}),
|
|
146
|
-
recurrenceSection:
|
|
147
|
-
idPrefix:
|
|
148
|
-
view:
|
|
149
|
-
disabled:
|
|
150
|
-
onFrequencyChange:
|
|
151
|
-
onMonthDayChange:
|
|
152
|
-
onWeekdayChange:
|
|
153
|
-
onStartDateChange:
|
|
154
|
-
onEndModeChange:
|
|
155
|
-
onEndDateChange:
|
|
156
|
-
onMaxOccurrencesChange:
|
|
157
|
-
onCreationModeChange:
|
|
158
|
-
onSetUpEmailClick:
|
|
159
|
-
emailDialog: /* @__PURE__ */
|
|
160
|
-
idPrefix:
|
|
161
|
-
view:
|
|
162
|
-
onOpenChange:
|
|
163
|
-
onChange:
|
|
164
|
-
onSave:
|
|
165
|
-
labels:
|
|
163
|
+
recurrenceSection: Q.form.showRecurrenceSection && (Q.form.recurrenceLoading ? /* @__PURE__ */ k(t, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ k(b, {
|
|
164
|
+
idPrefix: $,
|
|
165
|
+
view: Q.form.recurrence.view,
|
|
166
|
+
disabled: Q.form.isSubmitting,
|
|
167
|
+
onFrequencyChange: Q.form.recurrence.changeFrequency,
|
|
168
|
+
onMonthDayChange: Q.form.recurrence.changeMonthDay,
|
|
169
|
+
onWeekdayChange: Q.form.recurrence.changeWeekday,
|
|
170
|
+
onStartDateChange: Q.form.recurrence.changeStartDate,
|
|
171
|
+
onEndModeChange: Q.form.recurrence.changeEndMode,
|
|
172
|
+
onEndDateChange: Q.form.recurrence.changeEndDate,
|
|
173
|
+
onMaxOccurrencesChange: Q.form.recurrence.changeMaxOccurrences,
|
|
174
|
+
onCreationModeChange: Q.form.recurrence.changeCreationMode,
|
|
175
|
+
onSetUpEmailClick: Q.form.recurrence.setUpEmail,
|
|
176
|
+
emailDialog: /* @__PURE__ */ k(y, {
|
|
177
|
+
idPrefix: $,
|
|
178
|
+
view: Q.form.recurrence.emailView,
|
|
179
|
+
onOpenChange: Q.form.recurrence.changeEmailOpen,
|
|
180
|
+
onChange: Q.form.recurrence.changeEmail,
|
|
181
|
+
onSave: Q.form.recurrence.saveEmail,
|
|
182
|
+
labels: L
|
|
166
183
|
}),
|
|
167
|
-
labels:
|
|
184
|
+
labels: L
|
|
168
185
|
})),
|
|
169
|
-
remindersSection:
|
|
170
|
-
idPrefix:
|
|
171
|
-
view:
|
|
172
|
-
onToggle:
|
|
173
|
-
onPaymentReminderSelect:
|
|
174
|
-
onOverdueReminderSelect:
|
|
175
|
-
onBeforeDueInputChange:
|
|
176
|
-
onBeforeDueSave:
|
|
177
|
-
onOverdueTermChange:
|
|
178
|
-
onOverdueAddTerm:
|
|
179
|
-
onOverdueClear:
|
|
180
|
-
onOverdueSave:
|
|
181
|
-
labels:
|
|
186
|
+
remindersSection: Q.form.reminders.view && /* @__PURE__ */ k(x, {
|
|
187
|
+
idPrefix: de,
|
|
188
|
+
view: Q.form.reminders.view,
|
|
189
|
+
onToggle: Q.form.reminders.toggle,
|
|
190
|
+
onPaymentReminderSelect: Q.form.reminders.selectPaymentReminder,
|
|
191
|
+
onOverdueReminderSelect: Q.form.reminders.selectOverdueReminder,
|
|
192
|
+
onBeforeDueInputChange: Q.form.reminders.changeBeforeDueInput,
|
|
193
|
+
onBeforeDueSave: Q.form.reminders.saveBeforeDue,
|
|
194
|
+
onOverdueTermChange: Q.form.reminders.changeOverdueTerm,
|
|
195
|
+
onOverdueAddTerm: Q.form.reminders.addOverdueTerm,
|
|
196
|
+
onOverdueClear: Q.form.reminders.clearOverdueTerms,
|
|
197
|
+
onOverdueSave: Q.form.reminders.saveOverdue,
|
|
198
|
+
labels: L
|
|
182
199
|
}),
|
|
183
|
-
labels:
|
|
200
|
+
labels: L
|
|
184
201
|
}),
|
|
185
|
-
bankAccountSection: /* @__PURE__ */
|
|
186
|
-
idPrefix:
|
|
187
|
-
view:
|
|
188
|
-
error:
|
|
189
|
-
disabled:
|
|
190
|
-
onAccountSelect:
|
|
191
|
-
onAddAccountClick:
|
|
192
|
-
onFormChange:
|
|
193
|
-
onFormSave:
|
|
194
|
-
onFormCancel:
|
|
195
|
-
labels:
|
|
202
|
+
bankAccountSection: /* @__PURE__ */ k(p, {
|
|
203
|
+
idPrefix: ue,
|
|
204
|
+
view: Q.form.bankAccount.view,
|
|
205
|
+
error: Q.form.errors.bankAccountId,
|
|
206
|
+
disabled: Q.form.isSubmitting,
|
|
207
|
+
onAccountSelect: Q.form.bankAccount.selectAccount,
|
|
208
|
+
onAddAccountClick: Q.form.bankAccount.openAddAccount,
|
|
209
|
+
onFormChange: Q.form.bankAccount.updateAccountForm,
|
|
210
|
+
onFormSave: Q.form.bankAccount.saveAccount,
|
|
211
|
+
onFormCancel: Q.form.bankAccount.cancelAddAccount,
|
|
212
|
+
labels: L
|
|
196
213
|
}),
|
|
197
|
-
attachmentsSection:
|
|
198
|
-
view:
|
|
199
|
-
disabled:
|
|
200
|
-
onFilesSelect:
|
|
201
|
-
onIncludeInEmailChange:
|
|
202
|
-
onRemove:
|
|
203
|
-
labels:
|
|
214
|
+
attachmentsSection: Q.form.attachmentsView && /* @__PURE__ */ k(re, {
|
|
215
|
+
view: Q.form.attachmentsView,
|
|
216
|
+
disabled: Q.form.isSubmitting,
|
|
217
|
+
onFilesSelect: Q.form.selectAttachmentFiles,
|
|
218
|
+
onIncludeInEmailChange: Q.form.setAttachmentIncludeInEmail,
|
|
219
|
+
onRemove: Q.form.removeAttachment,
|
|
220
|
+
labels: L
|
|
204
221
|
}),
|
|
205
|
-
preview: /* @__PURE__ */
|
|
206
|
-
view:
|
|
207
|
-
labels:
|
|
222
|
+
preview: /* @__PURE__ */ k(v, {
|
|
223
|
+
view: Q.form.preview,
|
|
224
|
+
labels: J
|
|
208
225
|
}),
|
|
209
|
-
closeDisabled:
|
|
210
|
-
cancelDisabled:
|
|
211
|
-
draftButtonLabel:
|
|
212
|
-
draftDisabled:
|
|
213
|
-
draftLoading:
|
|
214
|
-
primaryButtonLabel:
|
|
215
|
-
primaryDisabled:
|
|
216
|
-
primaryLoading:
|
|
217
|
-
scrollContainerRef:
|
|
218
|
-
onSubmit:
|
|
219
|
-
onDraftClick:
|
|
220
|
-
onPrimaryClick:
|
|
221
|
-
labels:
|
|
226
|
+
closeDisabled: Q.form.isSubmitting,
|
|
227
|
+
cancelDisabled: Q.form.isSubmitting || Q.form.attachmentsUploading,
|
|
228
|
+
draftButtonLabel: Q.form.draftButtonLabel,
|
|
229
|
+
draftDisabled: Q.form.draftDisabled,
|
|
230
|
+
draftLoading: Q.form.draftLoading,
|
|
231
|
+
primaryButtonLabel: Q.form.primaryButtonLabel,
|
|
232
|
+
primaryDisabled: Q.form.primaryDisabled,
|
|
233
|
+
primaryLoading: Q.form.primaryLoading,
|
|
234
|
+
scrollContainerRef: Q.form.scrollContainerRef,
|
|
235
|
+
onSubmit: Q.form.submit,
|
|
236
|
+
onDraftClick: Q.form.selectDraftMode,
|
|
237
|
+
onPrimaryClick: Q.form.selectPrimaryMode,
|
|
238
|
+
labels: L
|
|
222
239
|
}),
|
|
223
|
-
/* @__PURE__ */
|
|
224
|
-
...
|
|
225
|
-
labels:
|
|
240
|
+
/* @__PURE__ */ k(ne, {
|
|
241
|
+
...Q.form.unsavedPrompt,
|
|
242
|
+
labels: L
|
|
226
243
|
}),
|
|
227
|
-
/* @__PURE__ */
|
|
228
|
-
open:
|
|
244
|
+
/* @__PURE__ */ k(h, {
|
|
245
|
+
open: Q.detailsOpen,
|
|
229
246
|
onOpenChange: (e) => {
|
|
230
|
-
e ||
|
|
247
|
+
e || Q.closeDetails();
|
|
231
248
|
},
|
|
232
|
-
details:
|
|
233
|
-
message:
|
|
234
|
-
isLoading:
|
|
235
|
-
onActionClick:
|
|
236
|
-
onClose:
|
|
237
|
-
openSections:
|
|
238
|
-
onOpenSectionsChange:
|
|
239
|
-
disabledActions:
|
|
240
|
-
labels:
|
|
241
|
-
},
|
|
242
|
-
/* @__PURE__ */
|
|
243
|
-
counterpartId:
|
|
249
|
+
details: Q.details.detailsView,
|
|
250
|
+
message: Q.details.messageView,
|
|
251
|
+
isLoading: Q.details.isLoading,
|
|
252
|
+
onActionClick: Q.handleDetailsActionClick,
|
|
253
|
+
onClose: Q.closeDetails,
|
|
254
|
+
openSections: Q.details.openSections,
|
|
255
|
+
onOpenSectionsChange: Q.details.setOpenSections,
|
|
256
|
+
disabledActions: Q.actions.pendingActions,
|
|
257
|
+
labels: N
|
|
258
|
+
}, Q.detailsPanelKey),
|
|
259
|
+
/* @__PURE__ */ k(o, {
|
|
260
|
+
counterpartId: Q.customerDetailsId,
|
|
244
261
|
counterpartType: "customer",
|
|
245
|
-
onClose:
|
|
262
|
+
onClose: Q.closeCustomerDetails
|
|
246
263
|
}),
|
|
247
|
-
/* @__PURE__ */
|
|
248
|
-
open:
|
|
264
|
+
/* @__PURE__ */ k(ee, {
|
|
265
|
+
open: Q.actions.sendOpen,
|
|
249
266
|
onOpenChange: (e) => {
|
|
250
|
-
e ||
|
|
267
|
+
e || Q.actions.closeSend();
|
|
251
268
|
},
|
|
252
|
-
values:
|
|
253
|
-
errors:
|
|
254
|
-
inProgress:
|
|
255
|
-
onChange: (e) =>
|
|
269
|
+
values: Q.actions.sendValues,
|
|
270
|
+
errors: Q.actions.sendErrors,
|
|
271
|
+
inProgress: Q.actions.sendInProgress || Q.actionsSuspended,
|
|
272
|
+
onChange: (e) => Q.actions.setSendValues((t) => ({
|
|
256
273
|
...t,
|
|
257
274
|
...e
|
|
258
275
|
})),
|
|
259
|
-
onSubmit:
|
|
260
|
-
onCancel:
|
|
261
|
-
labels:
|
|
276
|
+
onSubmit: Q.actions.submitSend,
|
|
277
|
+
onCancel: Q.actions.closeSend,
|
|
278
|
+
labels: ae
|
|
262
279
|
}),
|
|
263
|
-
/* @__PURE__ */
|
|
264
|
-
open:
|
|
280
|
+
/* @__PURE__ */ k(_, {
|
|
281
|
+
open: Q.actions.payment.isOpen,
|
|
265
282
|
onOpenChange: (e) => {
|
|
266
|
-
e ||
|
|
283
|
+
e || Q.actions.payment.close();
|
|
267
284
|
},
|
|
268
|
-
step:
|
|
269
|
-
values:
|
|
270
|
-
errors:
|
|
271
|
-
currencySymbol:
|
|
272
|
-
amountDueLabel:
|
|
273
|
-
review:
|
|
274
|
-
inProgress:
|
|
275
|
-
onChange:
|
|
276
|
-
onFillAmountDue:
|
|
277
|
-
onSave:
|
|
278
|
-
onEdit:
|
|
279
|
-
onConfirm:
|
|
280
|
-
onCancel:
|
|
281
|
-
labels:
|
|
285
|
+
step: Q.actions.payment.step,
|
|
286
|
+
values: Q.actions.payment.values,
|
|
287
|
+
errors: Q.actions.payment.errors,
|
|
288
|
+
currencySymbol: Q.actions.payment.currencySymbol,
|
|
289
|
+
amountDueLabel: Q.actions.payment.amountDueLabel,
|
|
290
|
+
review: Q.actions.payment.review,
|
|
291
|
+
inProgress: Q.actions.payment.inProgress || Q.actionsSuspended,
|
|
292
|
+
onChange: Q.actions.payment.change,
|
|
293
|
+
onFillAmountDue: Q.actions.payment.fillAmountDue,
|
|
294
|
+
onSave: Q.actions.payment.save,
|
|
295
|
+
onEdit: Q.actions.payment.edit,
|
|
296
|
+
onConfirm: Q.actions.payment.confirm,
|
|
297
|
+
onCancel: Q.actions.payment.close,
|
|
298
|
+
labels: q
|
|
282
299
|
}),
|
|
283
|
-
|
|
284
|
-
open: !!
|
|
300
|
+
Q.actions.actionDialog && /* @__PURE__ */ k(f, {
|
|
301
|
+
open: !!Q.actions.actionTarget,
|
|
285
302
|
onOpenChange: (e) => {
|
|
286
|
-
e ||
|
|
303
|
+
e || Q.actions.closeAction();
|
|
287
304
|
},
|
|
288
|
-
title:
|
|
289
|
-
description:
|
|
290
|
-
confirmLabel:
|
|
291
|
-
cancelLabel:
|
|
292
|
-
cancelVariant:
|
|
293
|
-
destructive:
|
|
294
|
-
error:
|
|
295
|
-
inProgress:
|
|
296
|
-
comment:
|
|
297
|
-
onCommentChange:
|
|
298
|
-
onConfirm:
|
|
299
|
-
onCancel:
|
|
300
|
-
labels:
|
|
305
|
+
title: Q.actions.actionDialog.title,
|
|
306
|
+
description: Q.actions.actionDialog.description,
|
|
307
|
+
confirmLabel: Q.actions.actionDialog.confirmLabel,
|
|
308
|
+
cancelLabel: Q.actions.actionDialog.cancelLabel,
|
|
309
|
+
cancelVariant: Q.actions.actionDialog.cancelVariant,
|
|
310
|
+
destructive: Q.actions.actionDialog.destructive,
|
|
311
|
+
error: Q.actions.actionError,
|
|
312
|
+
inProgress: Q.actions.actionInProgress || Q.actionsSuspended,
|
|
313
|
+
comment: Q.actions.actionComment,
|
|
314
|
+
onCommentChange: Q.actions.setActionComment,
|
|
315
|
+
onConfirm: Q.actions.confirmAction,
|
|
316
|
+
onCancel: Q.actions.closeAction,
|
|
317
|
+
labels: oe
|
|
301
318
|
}),
|
|
302
|
-
/* @__PURE__ */
|
|
303
|
-
idPrefix:
|
|
304
|
-
open:
|
|
305
|
-
view:
|
|
306
|
-
onSkip:
|
|
307
|
-
onSubjectChange:
|
|
308
|
-
onMessageChange:
|
|
309
|
-
onSend:
|
|
310
|
-
onToggleItem:
|
|
311
|
-
onToggleAll:
|
|
312
|
-
onAllSelectedChange:
|
|
313
|
-
onSaveItems:
|
|
314
|
-
labels:
|
|
319
|
+
/* @__PURE__ */ k(d, {
|
|
320
|
+
idPrefix: fe,
|
|
321
|
+
open: Q.actionsModal.isOpen,
|
|
322
|
+
view: Q.actionsModal.view,
|
|
323
|
+
onSkip: Q.actionsModal.skip,
|
|
324
|
+
onSubjectChange: Q.actionsModal.changeSubject,
|
|
325
|
+
onMessageChange: Q.actionsModal.changeMessage,
|
|
326
|
+
onSend: Q.actionsModal.send,
|
|
327
|
+
onToggleItem: Q.actionsModal.toggleItem,
|
|
328
|
+
onToggleAll: Q.actionsModal.toggleAll,
|
|
329
|
+
onAllSelectedChange: Q.actionsModal.setAllSelected,
|
|
330
|
+
onSaveItems: Q.actionsModal.saveItems,
|
|
331
|
+
labels: se
|
|
315
332
|
}),
|
|
316
|
-
/* @__PURE__ */
|
|
317
|
-
open:
|
|
333
|
+
/* @__PURE__ */ k(a, {
|
|
334
|
+
open: Q.form.counterpartView === "create",
|
|
318
335
|
onOpenChange: (e) => {
|
|
319
|
-
e ||
|
|
336
|
+
e || Q.form.counterpartForm.close();
|
|
320
337
|
},
|
|
321
338
|
mode: "create",
|
|
322
|
-
values:
|
|
323
|
-
errors:
|
|
324
|
-
stateOptions:
|
|
325
|
-
inProgress:
|
|
326
|
-
onChange: (e) =>
|
|
339
|
+
values: Q.form.counterpartForm.values,
|
|
340
|
+
errors: Q.form.counterpartForm.errors,
|
|
341
|
+
stateOptions: Q.form.stateOptions,
|
|
342
|
+
inProgress: Q.form.counterpartForm.isSubmitting || Q.actionsSuspended,
|
|
343
|
+
onChange: (e) => Q.form.counterpartForm.setValues((t) => ({
|
|
327
344
|
...t,
|
|
328
345
|
...e
|
|
329
346
|
})),
|
|
330
|
-
onAddressChange: (e) =>
|
|
347
|
+
onAddressChange: (e) => Q.form.counterpartForm.setValues((t) => ({
|
|
331
348
|
...t,
|
|
332
349
|
address: {
|
|
333
350
|
...t.address,
|
|
334
351
|
...e
|
|
335
352
|
}
|
|
336
353
|
})),
|
|
337
|
-
onSubmit:
|
|
338
|
-
onCancel:
|
|
339
|
-
labels:
|
|
354
|
+
onSubmit: Q.form.counterpartForm.submit,
|
|
355
|
+
onCancel: Q.form.counterpartForm.close,
|
|
356
|
+
labels: j
|
|
340
357
|
}),
|
|
341
|
-
/* @__PURE__ */
|
|
342
|
-
open:
|
|
343
|
-
onClose:
|
|
344
|
-
suspended:
|
|
345
|
-
managerLabels:
|
|
346
|
-
deleteLabels:
|
|
347
|
-
messageLabels:
|
|
358
|
+
/* @__PURE__ */ k(C, {
|
|
359
|
+
open: Q.measureUnitsOpen,
|
|
360
|
+
onClose: Q.closeMeasureUnits,
|
|
361
|
+
suspended: Q.actionsSuspended,
|
|
362
|
+
managerLabels: H,
|
|
363
|
+
deleteLabels: V,
|
|
364
|
+
messageLabels: Y
|
|
348
365
|
})
|
|
349
366
|
] });
|
|
350
367
|
}
|
|
351
|
-
function
|
|
352
|
-
return /* @__PURE__ */
|
|
353
|
-
widgetName:
|
|
368
|
+
function M({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, providerLabels: m, ...h }) {
|
|
369
|
+
return /* @__PURE__ */ k(i, {
|
|
370
|
+
widgetName: c,
|
|
354
371
|
baseUrl: e,
|
|
355
372
|
widgetToken: t,
|
|
356
373
|
organizationId: n,
|
|
@@ -358,14 +375,14 @@ function j({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
|
|
|
358
375
|
gatewayRouting: a,
|
|
359
376
|
linkComponent: o,
|
|
360
377
|
implementation: s,
|
|
361
|
-
uiFramework:
|
|
378
|
+
uiFramework: l,
|
|
362
379
|
errorFallback: u,
|
|
363
380
|
onError: d,
|
|
364
381
|
analytics: f,
|
|
365
382
|
disclosuresAcceptance: p,
|
|
366
383
|
providerLabels: m,
|
|
367
|
-
children: /* @__PURE__ */
|
|
384
|
+
children: /* @__PURE__ */ k(j, { ...h })
|
|
368
385
|
});
|
|
369
386
|
}
|
|
370
387
|
//#endregion
|
|
371
|
-
export {
|
|
388
|
+
export { M as ReceivablesWidget, M as default };
|