@tesouro/embedded-components-react 0.5.257 → 0.5.259

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