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