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