@tesouro/embedded-components-react 0.5.279 → 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.
Files changed (104) hide show
  1. package/dist/index.d.ts +21 -6
  2. package/dist/lib/ReceivablesWidget.d.ts +21 -6
  3. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +14 -13
  4. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +24 -168
  5. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +173 -44
  6. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +42 -94
  7. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index13.js +91 -76
  8. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index14.js +67 -173
  9. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index15.js +186 -17
  10. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js +27 -0
  11. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +11 -13
  12. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +42 -27
  13. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +28 -132
  14. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +137 -16
  15. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +16 -62
  16. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +66 -28
  17. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +28 -34
  18. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableAttachmentsSection.js +1 -1
  19. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableCustomerSection.js +38 -0
  20. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +304 -287
  21. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/auditHistory/labels.js +1 -1
  22. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/customer.js +58 -0
  23. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +15 -15
  24. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +14 -6
  25. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentTerms.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/permissions.js +2 -1
  27. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/preview.js +62 -62
  28. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +41 -35
  29. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/reminders.js +1 -1
  30. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/totals.js +21 -13
  31. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +124 -124
  32. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +11 -11
  33. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableAttachmentUploads.js +13 -13
  34. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableBankAccount.js +1 -1
  35. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableCustomerPicker.js +109 -0
  36. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +6 -6
  37. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +520 -476
  38. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableIssuePreflight.js +10 -10
  39. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +6 -6
  40. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentTerms.js +1 -1
  41. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePreview.js +1 -1
  42. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableRecurrence.js +92 -77
  43. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js +11 -11
  44. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableStatusCards.js +1 -1
  45. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +4 -4
  46. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +79 -75
  47. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useSendReceivableWithPaymentLink.js +3 -3
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +26 -23
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +9 -25
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +26 -228
  51. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +227 -52
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +50 -212
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +193 -138
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +157 -12
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +10 -19
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +23 -2
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +2 -116
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +118 -3
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +3 -39
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +209 -53
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +2 -23
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +36 -7
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +53 -77
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +17 -35
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +8 -18
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +73 -37
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +36 -26
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +17 -19
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +39 -8
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +26 -33
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +20 -14
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +8 -24
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +34 -84
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +14 -492
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +28 -2
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +79 -39
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +490 -68
  78. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +2 -487
  79. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +41 -217
  80. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +70 -21
  81. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +440 -5
  82. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +224 -0
  83. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +21 -263
  84. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +8 -2
  85. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +261 -24
  86. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +2 -237
  87. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +100 -3
  88. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +21 -242
  89. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +226 -82
  90. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +3 -60
  91. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +233 -178
  92. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +85 -37
  93. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +60 -0
  94. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +194 -0
  95. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +45 -0
  96. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +9 -9
  97. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/CounterpartSelector.js +2 -23
  98. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartSelector.js +2 -51
  99. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +8 -8
  100. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js +4 -80
  101. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +10 -22
  102. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  103. package/package.json +1 -1
  104. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +0 -100
@@ -9,7 +9,7 @@ import { useAnalyticsTrack as n } from "../../../../../shared/feature/dist/lib/a
9
9
  import { useRefetchWidget as r, useWidgetConfig as i, useWidgetError as ee, useWidgetInitStaleForToken as te, useWidgetLoading as ne } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
10
10
  import "../../../../../shared/feature/dist/index.js";
11
11
  import { ReceivablesWidgetAnalyticsEvent as re } from "./analytics/events.js";
12
- import { RECEIVABLE_STATUS_BADGE_LABELS_EN as ie } from "../../../../ui/dist/index13.js";
12
+ import { RECEIVABLE_STATUS_BADGE_LABELS_EN as ie } from "../../../../ui/dist/index14.js";
13
13
  import "../../../../ui/dist/index.js";
14
14
  import { hasSelectedText as ae } from "../../../../../shared/product-catalog/feature/dist/lib/helpers.js";
15
15
  import "../../../../../shared/product-catalog/feature/dist/index.js";
@@ -37,11 +37,11 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: he, embeddedBankNa
37
37
  ...k
38
38
  }), [k]), [j, M] = l(), [N, P] = l(!1), [F, Te] = l(j);
39
39
  j && j !== F && Te(j);
40
- let [I, L] = l(!1), [Ee, R] = l(), De = e(_?.scopes, [t.CounterpartReadOrg]), Oe = a(() => R(void 0), []), [z, B] = l(!1), ke = a(() => B(!0), []), V = a(() => B(!1), []), Ae = a((e, t) => {
40
+ let [I, L] = l(!1), [Ee, R] = l(), z = e(_?.scopes, [t.CounterpartReadOrg]), De = a(() => R(void 0), []), [B, V] = l(!1), Oe = a(() => V(!0), []), H = a(() => V(!1), []), ke = a((e, t) => {
41
41
  M(e), P(!0), h?.(e, t);
42
- }, [h]), H = de({ messages: O }), U = H.open, je = a((e, t, n) => {
42
+ }, [h]), U = de({ messages: O }), W = U.open, Ae = a((e, t, n) => {
43
43
  let r = oe(n);
44
- r.openDetails && (M(e), P(!0)), r.actionsModal && U({
44
+ r.openDetails && (M(e), P(!0)), r.actionsModal && W({
45
45
  action: n.mode,
46
46
  receivableId: e,
47
47
  documentType: t,
@@ -49,7 +49,7 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: he, embeddedBankNa
49
49
  inlineItems: n.inlineItems,
50
50
  showEmailStep: r.actionsModal.showEmailStep
51
51
  }), h?.(e, t);
52
- }, [h, U]), W = me({
52
+ }, [h, W]), G = me({
53
53
  initialCounterpartId: p === "create" ? void 0 : f,
54
54
  messages: O,
55
55
  statusLabels: A,
@@ -57,20 +57,20 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: he, embeddedBankNa
57
57
  pageSizeOptions: ve,
58
58
  enabled: w,
59
59
  visible: S
60
- }), Me = a((e) => {
60
+ }), je = a((e) => {
61
61
  M(e), P(!0), g?.(e, "invoice");
62
- }, [g]), G = fe({
62
+ }, [g]), K = fe({
63
63
  selectedReceivableId: j,
64
64
  enabled: N && w,
65
65
  canWrite: C,
66
66
  messages: O,
67
67
  statusLabels: A,
68
68
  auditHistoryLabels: u,
69
- onOpenReceivable: Me,
70
- onOpenCustomer: De ? R : void 0
71
- }), K = c("edit"), Ne = a((e, t, n) => {
72
- let r = n.mode === "issue", i = r && K.current !== "issue" && n.hasCustomerEmail;
73
- (i || n.inlineItems.length !== 0) && U({
69
+ onOpenReceivable: je,
70
+ onOpenCustomer: z ? R : void 0
71
+ }), q = c("edit"), Me = a((e, t, n) => {
72
+ let r = n.mode === "issue", i = r && q.current !== "issue" && n.hasCustomerEmail;
73
+ (i || n.inlineItems.length !== 0) && W({
74
74
  action: r || n.mode === "recurrence" ? n.mode : "update",
75
75
  receivableId: e,
76
76
  documentType: t,
@@ -78,35 +78,36 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: he, embeddedBankNa
78
78
  inlineItems: n.inlineItems,
79
79
  showEmailStep: i
80
80
  });
81
- }, [U]), q = pe({
81
+ }, [W]), J = pe({
82
82
  messages: O,
83
83
  counterpartMessageLabels: he,
84
84
  embeddedBankName: ge,
85
- onCreated: je,
86
- onUpdated: Ne
87
- }), Pe = a(() => {
88
- T && q.openCreate("invoice");
89
- }, [T, q.openCreate]), J = c(!1);
85
+ canCreateCustomer: x.canCreateCustomer,
86
+ onCreated: Ae,
87
+ onUpdated: Me
88
+ }), Ne = a(() => {
89
+ T && J.openCreate("invoice");
90
+ }, [T, J.openCreate]), Y = c(!1);
90
91
  o(() => {
91
- J.current || p === "create" && T && (J.current = !0, q.openCreate("invoice", { customerId: f }));
92
+ Y.current || p === "create" && T && (Y.current = !0, J.openCreate("invoice", { customerId: f }));
92
93
  }, [
93
94
  T,
94
- q.openCreate,
95
+ J.openCreate,
95
96
  f,
96
97
  p
97
98
  ]);
98
- let Y = ue({
99
- selectedReceivable: G.receivable,
100
- selectedRecurrence: G.recurrence,
99
+ let X = ue({
100
+ selectedReceivable: K.receivable,
101
+ selectedRecurrence: K.recurrence,
101
102
  messages: O,
102
- onCreated: Ae,
103
+ onCreated: ke,
103
104
  onDeleted: (e) => {
104
105
  e === j && (M(void 0), P(!1));
105
106
  },
106
107
  onCompleteBeforeIssue: (e, t) => {
107
- K.current = t, q.openEdit(e, { highlightForIssue: !0 }), N && L(!0), P(!1);
108
+ q.current = t, J.openEdit(e, { highlightForIssue: !0 }), N && L(!0), P(!1);
108
109
  },
109
- onIssuedForSend: (e, t) => U({
110
+ onIssuedForSend: (e, t) => W({
110
111
  action: "issue",
111
112
  receivableId: e,
112
113
  documentType: "invoice",
@@ -116,23 +117,23 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: he, embeddedBankNa
116
117
  })
117
118
  });
118
119
  o(() => {
119
- q.open || (K.current = "edit");
120
- }, [q.open]), o(() => {
121
- !q.open && I && (L(!1), P(!0));
122
- }, [q.open, I]);
123
- let X = b && !x.canWrite, Z = q.open || q.counterpartView !== "none" || !!Y.actionTarget || Y.sendOpen || Y.payment.isOpen || H.isOpen || z, Fe = q.close, Ie = q.counterpartForm.close, { closeAction: Le, closeSend: Re } = Y, Q = Y.payment.close, $ = H.close;
120
+ J.open || (q.current = "edit");
121
+ }, [J.open]), o(() => {
122
+ !J.open && I && (L(!1), P(!0));
123
+ }, [J.open, I]);
124
+ let Z = b && !x.canWrite, Pe = J.open || J.counterpartView !== "none" || !!X.actionTarget || X.sendOpen || X.payment.isOpen || U.isOpen || B, Fe = J.close, Ie = J.counterpartForm.close, { closeAction: Le, closeSend: Re } = X, Q = X.payment.close, $ = U.close;
124
125
  o(() => {
125
- X && Z && (Fe(), Ie(), Le(), Re(), Q(), $(), V());
126
+ Z && Pe && (Fe(), Ie(), Le(), Re(), Q(), $(), H());
126
127
  }, [
127
128
  Le,
128
129
  $,
129
130
  Ie,
130
131
  Fe,
131
- V,
132
+ H,
132
133
  Q,
133
134
  Re,
134
- Z,
135
- X
135
+ Pe,
136
+ Z
136
137
  ]);
137
138
  let ze = a((e) => {
138
139
  ae() || (M(e.id), P(!0), g?.(e.id, e.type));
@@ -141,20 +142,20 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: he, embeddedBankNa
141
142
  }, []), Ve = a((e, t) => {
142
143
  if (T) {
143
144
  if (e === "edit") {
144
- G.receivable && (K.current = "edit", q.openEdit(G.receivable), L(!0), P(!1));
145
+ K.receivable && (q.current = "edit", J.openEdit(K.receivable), L(!0), P(!1));
145
146
  return;
146
147
  }
147
- Y.openAction(e, {
148
+ X.openAction(e, {
148
149
  id: t.id,
149
- title: G.receivable ? se(G.receivable, O) : t.title,
150
+ title: K.receivable ? se(K.receivable, O) : t.title,
150
151
  type: t.type
151
- }, G.receivable ?? null);
152
+ }, K.receivable ?? null);
152
153
  }
153
154
  }, [
154
- Y,
155
+ X,
155
156
  T,
156
- G.receivable,
157
- q.openEdit,
157
+ K.receivable,
158
+ J.openEdit,
158
159
  O
159
160
  ]);
160
161
  return {
@@ -162,56 +163,59 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: he, embeddedBankNa
162
163
  canEditSettings: S && x.canEditSettings,
163
164
  actionsSuspended: we,
164
165
  isAccessRestricted: b && !x.canRead,
165
- table: S ? W : {
166
- ...W,
166
+ table: S ? G : {
167
+ ...G,
167
168
  rows: [],
168
169
  statusCards: void 0,
169
170
  isError: !1
170
171
  },
171
- isTableLoading: S ? W.isLoading || D && W.rows.length === 0 : D,
172
- isError: E || S && W.isError,
173
- onRetry: E ? Ce : W.onRetry,
174
- details: G,
172
+ isTableLoading: S ? G.isLoading || D && G.rows.length === 0 : D,
173
+ isError: E || S && G.isError,
174
+ onRetry: E ? Ce : G.onRetry,
175
+ details: K,
175
176
  detailsOpen: N && S,
176
177
  closeDetails: Be,
177
178
  detailsPanelKey: F,
178
179
  customerDetailsId: Ee,
179
- closeCustomerDetails: Oe,
180
+ closeCustomerDetails: De,
181
+ openCustomerDetails: z ? R : void 0,
182
+ canCreateCustomer: x.canCreateCustomer,
183
+ messages: O,
180
184
  form: {
181
- ...q,
182
- open: C && q.open,
183
- counterpartView: C ? q.counterpartView : "none",
185
+ ...J,
186
+ open: C && J.open,
187
+ counterpartView: C ? J.counterpartView : "none",
184
188
  counterpartForm: {
185
- ...q.counterpartForm,
186
- submit: d(T, q.counterpartForm.submit)
189
+ ...J.counterpartForm,
190
+ submit: d(T, J.counterpartForm.submit)
187
191
  },
188
- submit: d(T, q.submit),
189
- submitDraft: d(T, q.submitDraft),
190
- submitPrimary: d(T, q.submitPrimary)
192
+ submit: d(T, J.submit),
193
+ submitDraft: d(T, J.submitDraft),
194
+ submitPrimary: d(T, J.submitPrimary)
191
195
  },
192
- openCreate: Pe,
193
- measureUnitsOpen: C && z,
194
- openMeasureUnits: ke,
195
- closeMeasureUnits: V,
196
+ openCreate: Ne,
197
+ measureUnitsOpen: C && B,
198
+ openMeasureUnits: Oe,
199
+ closeMeasureUnits: H,
196
200
  actions: {
197
- ...Y,
198
- actionDialog: C ? Y.actionDialog : void 0,
199
- sendOpen: C && Y.sendOpen,
200
- openAction: d(T, Y.openAction),
201
- confirmAction: d(T, Y.confirmAction),
202
- submitSend: d(T, Y.submitSend),
201
+ ...X,
202
+ actionDialog: C ? X.actionDialog : void 0,
203
+ sendOpen: C && X.sendOpen,
204
+ openAction: d(T, X.openAction),
205
+ confirmAction: d(T, X.confirmAction),
206
+ submitSend: d(T, X.submitSend),
203
207
  payment: {
204
- ...Y.payment,
205
- isOpen: C && Y.payment.isOpen,
206
- save: d(T, Y.payment.save),
207
- confirm: d(T, Y.payment.confirm)
208
+ ...X.payment,
209
+ isOpen: C && X.payment.isOpen,
210
+ save: d(T, X.payment.save),
211
+ confirm: d(T, X.payment.confirm)
208
212
  }
209
213
  },
210
214
  actionsModal: {
211
- ...H,
212
- isOpen: C && H.isOpen,
213
- send: d(T, H.send),
214
- saveItems: d(T, H.saveItems)
215
+ ...U,
216
+ isOpen: C && U.isOpen,
217
+ send: d(T, U.send),
218
+ saveItems: d(T, U.saveItems)
215
219
  },
216
220
  handleRowClick: ze,
217
221
  handleDetailsActionClick: Ve
@@ -10,9 +10,9 @@ import "../../../../../shared/data-access/dist/index.js";
10
10
  import "../../../../../shared/ui/dist/index.js";
11
11
  import { useWidgetConfig as i } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
12
12
  import "../../../../../shared/feature/dist/index.js";
13
- import { useEntityPaymentMethodsQuery as a } from "../../../../data-access/dist/index4.js";
14
- import { useCreatePaymentLinkMutation as o } from "../../../../data-access/dist/index6.js";
15
- import { useSendReceivableEmailMutation as s } from "../../../../data-access/dist/index9.js";
13
+ import { useEntityPaymentMethodsQuery as a } from "../../../../data-access/dist/index5.js";
14
+ import { useCreatePaymentLinkMutation as o } from "../../../../data-access/dist/index7.js";
15
+ import { useSendReceivableEmailMutation as s } from "../../../../data-access/dist/index10.js";
16
16
  import "../../../../data-access/dist/index.js";
17
17
  import { getReceivePaymentMethods as c } from "./preview.js";
18
18
  import { useCallback as l } from "react";
@@ -7,27 +7,30 @@ import { ReceivableActionsModal as n } from "./index9.js";
7
7
  import "./index10.js";
8
8
  import "./index11.js";
9
9
  import "./index12.js";
10
- import { RECEIVABLE_STATUS_BADGE_LABELS_EN as r } from "./index13.js";
11
- import { ReceivableActionDialog as i } from "./index14.js";
12
- import { ReceivableBankAccountSection as a } from "./index15.js";
13
- import { ReceivableAttachmentsSection as o } from "./index16.js";
14
- import { RECEIVABLE_PAYMENT_TERMS_CUSTOM_DATE as s, RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE as c } from "./index19.js";
15
- import { ReceivableBillingSection as l } from "./index20.js";
16
- import "./index21.js";
10
+ import "./index13.js";
11
+ import { RECEIVABLE_STATUS_BADGE_LABELS_EN as r } from "./index14.js";
12
+ import { ReceivableActionDialog as i } from "./index15.js";
13
+ import { ReceivableBankAccountSection as a } from "./index16.js";
14
+ import { ReceivableAttachmentsSection as o } from "./index17.js";
15
+ import { RECEIVABLE_PAYMENT_TERMS_CUSTOM_DATE as s, RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE as c } from "./index20.js";
16
+ import { ReceivableBillingSection as l } from "./index21.js";
17
17
  import "./index22.js";
18
- import { RECEIVABLE_DETAILS_SECTION as u } from "./index25.js";
19
- import { ReceivableDetailsPanel as d } from "./index37.js";
20
- import "./index38.js";
21
- import { ReceivableFormDialog as f } from "./index41.js";
22
- import { ReceivablePaymentDialog as p } from "./index42.js";
23
- import "./index43.js";
24
- import { ReceivablePreview as m } from "./index46.js";
25
- import "./index47.js";
26
- import { ReceivableRecurrenceEmailDialog as h } from "./index48.js";
27
- import { ReceivableRecurrenceSection as g } from "./index50.js";
28
- import "./index51.js";
29
- import { ReceivableRemindersSection as _ } from "./index52.js";
30
- import { ReceivableSendDialog as v } from "./index53.js";
31
- import { ReceivablesScreen as y } from "./index55.js";
32
- import { UnsavedInvoiceDialog as b } from "./index56.js";
33
- export { t as InvoicesFilterBar, e as InvoicesFilterField, u as RECEIVABLE_DETAILS_SECTION, s as RECEIVABLE_PAYMENT_TERMS_CUSTOM_DATE, c as RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE, r as RECEIVABLE_STATUS_BADGE_LABELS_EN, i as ReceivableActionDialog, n as ReceivableActionsModal, o as ReceivableAttachmentsSection, a as ReceivableBankAccountSection, l as ReceivableBillingSection, d as ReceivableDetailsPanel, f as ReceivableFormDialog, p as ReceivablePaymentDialog, m as ReceivablePreview, h as ReceivableRecurrenceEmailDialog, g as ReceivableRecurrenceSection, _ as ReceivableRemindersSection, v as ReceivableSendDialog, y as ReceivablesScreen, b as UnsavedInvoiceDialog };
18
+ import { ReceivableCustomerSection as u } from "./index23.js";
19
+ import "./index24.js";
20
+ import "./index25.js";
21
+ import { RECEIVABLE_DETAILS_SECTION as d } from "./index28.js";
22
+ import { ReceivableDetailsPanel as f } from "./index40.js";
23
+ import "./index41.js";
24
+ import { ReceivableFormDialog as p } from "./index44.js";
25
+ import { ReceivablePaymentDialog as m } from "./index45.js";
26
+ import "./index46.js";
27
+ import { ReceivablePreview as h } from "./index49.js";
28
+ import "./index50.js";
29
+ import { ReceivableRecurrenceEmailDialog as g } from "./index51.js";
30
+ import { ReceivableRecurrenceSection as _ } from "./index53.js";
31
+ import "./index54.js";
32
+ import { ReceivableRemindersSection as v } from "./index55.js";
33
+ import { ReceivableSendDialog as y } from "./index56.js";
34
+ import { ReceivablesScreen as b } from "./index58.js";
35
+ import { UnsavedInvoiceDialog as x } from "./index59.js";
36
+ export { t as InvoicesFilterBar, e as InvoicesFilterField, d as RECEIVABLE_DETAILS_SECTION, s as RECEIVABLE_PAYMENT_TERMS_CUSTOM_DATE, c as RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE, r as RECEIVABLE_STATUS_BADGE_LABELS_EN, i as ReceivableActionDialog, n as ReceivableActionsModal, o as ReceivableAttachmentsSection, a as ReceivableBankAccountSection, l as ReceivableBillingSection, u as ReceivableCustomerSection, f as ReceivableDetailsPanel, p as ReceivableFormDialog, m as ReceivablePaymentDialog, h as ReceivablePreview, g as ReceivableRecurrenceEmailDialog, _ as ReceivableRecurrenceSection, v as ReceivableRemindersSection, y as ReceivableSendDialog, b as ReceivablesScreen, x as UnsavedInvoiceDialog };
@@ -1,29 +1,13 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js
2
2
  var e = {
3
- recurrenceRepeatLabel: "Repeat this invoice",
4
- recurrenceMonthDayLead: "on the",
5
- recurrenceMonthDayTrail: "day of every month",
6
- recurrenceWeekdayLead: "on",
7
- recurrenceStartOnLabel: "Start on",
8
- recurrenceEndChoiceLead: "and end",
9
- recurrenceEndCountLead: "and end after",
10
- recurrenceDatePlaceholder: "Mon DD, YYYY",
11
- recurrenceCreationModeQuestion: "When an invoice in the series is created, what should happen?",
12
- recurrenceCreationModeHint: "(You can change this at any time)",
13
- recurrenceSetUpEmail: "Set up the email"
14
- }, t = {
15
- recurrenceEmailTitle: "Email sent with each invoice",
16
- recurrenceEmailDescription: "The same recipients, subject, and message are used for every invoice in the series.",
17
- recurrenceEmailTo: "To",
18
- recurrenceEmailCc: "Cc",
19
- recurrenceEmailBcc: "Bcc",
20
- recurrenceEmailSubject: "Subject",
21
- recurrenceEmailMessage: "Message",
22
- recurrenceEmailRecipientPlaceholder: "name@example.com",
23
- recurrenceEmailMessagePlaceholder: "e.g., Thank you for your business",
24
- recurrenceEmailFootnote: "Each invoice is finalized and emailed automatically on its schedule.",
25
- recurrenceEmailCancel: "Cancel",
26
- recurrenceEmailSave: "Save"
3
+ customerHeading: "Customer details",
4
+ customerDescription: "Who are you billing?",
5
+ customerNameLabel: "Name",
6
+ customerListToggleButton: "Show customers",
7
+ customerEmailLabel: "Email",
8
+ addCustomerDetailsButton: "Add more details including address, phone, etc.",
9
+ viewCustomerDetailsButton: "View details",
10
+ clearCustomerButton: "Clear"
27
11
  };
28
12
  //#endregion
29
- export { t as RECEIVABLE_RECURRENCE_EMAIL_DIALOG_LABELS_EN, e as RECEIVABLE_RECURRENCE_SECTION_LABELS_EN };
13
+ export { e as RECEIVABLE_CUSTOMER_SECTION_LABELS_EN };
@@ -1,231 +1,29 @@
1
- import { RECEIVABLE_BILLING_SECTION_LABELS_EN as e } from "./index11.js";
2
- import { RECEIVABLE_RECURRENCE_EMAIL_DIALOG_LABELS_EN as t, RECEIVABLE_RECURRENCE_SECTION_LABELS_EN as n } from "./index12.js";
3
1
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js
4
- var r = {
5
- draft: "Draft",
6
- issuing: "Issuing",
7
- issued: "Issued",
8
- failed: "Failed",
9
- accepted: "Accepted",
10
- expired: "Expired",
11
- declined: "Declined",
12
- recurring: "Recurring",
13
- partially_paid: "Partially paid",
14
- paid: "Paid",
15
- overdue: "Overdue",
16
- uncollectible: "Uncollectible",
17
- canceled: "Cancelled",
18
- deleted: "Deleted",
19
- unknown: "Unknown"
20
- }, i = { all: "All invoices" }, a = {
21
- createInvoiceButton: "Create Invoice",
22
- settingsButton: "Invoice settings",
23
- bankAttributionPrefix: "Business Banking provided by",
24
- statusCardsAll: i.all,
25
- columnDueDate: "Due date",
26
- columnStatus: "Status",
27
- columnNumber: "Number",
28
- columnCustomer: "Customer",
29
- columnIssueDate: "Issue date",
30
- columnAmount: "Amount",
31
- openRow: (e) => `View invoice — ${e}`,
32
- sortByDueDate: "Sort by due date",
33
- sortByStatus: "Sort by status",
34
- sortByNumber: "Sort by number",
35
- sortByIssueDate: "Sort by issue date",
36
- sortByAmount: "Sort by amount",
37
- emptyTitle: "No Invoices",
38
- emptyDescription: "You don’t have any invoices yet.",
39
- filterEmptyTitle: "No Invoices Found",
40
- errorTitle: "Failed to load Invoices",
41
- errorDescription: "There was an error loading invoices.",
42
- errorRetry: "Reload",
43
- accessRestrictedTitle: "Access Restricted",
44
- accessRestrictedDescription: "You don’t have permissions to view this page. Contact your system administrator for details.",
45
- statusBadge: r
46
- }, o = {
47
- unsavedTitle: "Save this invoice as a draft?",
48
- unsavedDescription: "This invoice has changes that have not been saved. Save it as a draft to finish later, or discard the changes.",
49
- unsavedDiscardButton: "Discard changes",
50
- unsavedSaveDraftButton: "Save as draft",
51
- unsavedCloseButton: "Close"
52
- }, s = {
53
- ...e,
54
- ...n,
55
- ...t,
56
- ...o,
57
- createTitle: "Create invoice",
58
- createDescription: "Create and issue an invoice to your customers",
59
- editTitle: "Edit invoice",
60
- editDescription: "Invoice details",
61
- closeButton: "Close",
62
- customerHeading: "Customer details",
63
- customerDescription: "Who are you billing?",
64
- customerEmailLabel: "Email",
65
- addCustomerDetailsButton: "Add more details including address, phone, etc.",
66
- dueDateLabel: "Due date",
67
- lineItemsHeading: "Products and services",
68
- lineItemsDescription: "Add the products and services on this invoice. You'll have the option to save new items to your inventory.",
69
- productLabel: "Item name",
70
- quantityLabel: "Quantity",
71
- unitLabel: "Units",
72
- unitPlaceholder: "Select",
73
- unitNone: "None",
74
- manageUnitsOption: "Manage measure units",
75
- priceLabel: "Price",
76
- taxableLabel: "Taxable",
77
- taxRateLabel: "Tax rate",
78
- taxRatePlaceholder: "e.g. 6.25",
79
- taxRateSuffix: "%",
80
- discountLabel: "Discount",
81
- discountPercentageOption: "%",
82
- discountAmountOptionAriaLabel: "Flat discount",
83
- discountPercentageOptionAriaLabel: "Percentage discount",
84
- subtotalLabel: "Subtotal",
85
- discountTotalLabel: "Discount",
86
- nonTaxableSubtotalLabel: "Non-taxable subtotal",
87
- taxableSubtotalLabel: "Taxable subtotal",
88
- taxTotalLabel: "Tax",
89
- totalLabel: "Total",
90
- decreaseQuantityButton: "Decrease quantity",
91
- increaseQuantityButton: "Increase quantity",
92
- addLineItemButton: "Add item",
93
- removeLineItemButton: "Remove line item",
94
- cancelButton: "Cancel",
95
- notesHeading: "Notes",
96
- notesDescription: "Provide additional information for your customer.",
97
- optionalSuffix: "(optional)",
98
- openingNoteLabel: "Opening note to the customer",
99
- openingNotePlaceholder: "e.g., As discussed on our call, please find the attached invoice.",
100
- openingNoteDescription: "Appears above your line items. Use it to reference a discussion, agreement, or project.",
101
- closingNoteLabel: "Closing note to the customer",
102
- closingNotePlaceholder: "e.g., Thank you for your business!",
103
- closingNoteDescription: "Appears below your line items. Commonly used for thank you messages or payment instructions.",
104
- bankAccountHeading: "Payment instructions",
105
- bankAccountDescription: "Tells the customer how they can pay you. We'll include the selected info on the invoice",
106
- bankAccountLabel: "Bank account",
107
- bankAccountHint: "Display your bank account number and routing number",
108
- bankAccountSelectorLabel: "Bank account selector",
109
- bankAccountPlaceholder: "Select bank account",
110
- bankAccountAddOption: "Add a new account",
111
- bankAccountFormHeading: "Add a bank account",
112
- bankAccountRoutingNumberLabel: "Routing number",
113
- bankAccountRoutingNumberPlaceholder: "e.g. 123456789",
114
- bankAccountAccountNumberLabel: "Account number",
115
- bankAccountAccountNumberPlaceholder: "e.g. 123456789",
116
- bankAccountHolderNameLabel: "Account holder name",
117
- bankAccountHolderNamePlaceholder: "e.g. James Smith",
118
- bankAccountNicknameLabel: "Account nickname",
119
- bankAccountNicknamePlaceholder: "e.g. Empire Bank Checking",
120
- bankAccountCancelButton: "Cancel",
121
- bankAccountSaveButton: "Save account",
122
- bankAccountRestrictedTitle: "There are no bank accounts on file for this account",
123
- bankAccountRestrictedDescription: "A bank account is required in order to issue invoices. Contact your company admin to set one up.",
124
- attachmentsHeading: "Attachments",
125
- attachmentsDescription: "Associate additional documents with this invoice for your own reference or to share with the customer. e.g. contracts, photos, terms and conditions, etc.",
126
- attachmentsDropPrompt: "Drop your files here, or",
127
- attachmentsBrowseLink: "browse to upload",
128
- attachmentsFormatsHint: "PDF, DOC, JPG, PNG (max. 3MB)",
129
- remindersToggleLabel: "Payment reminders",
130
- remindersDescription: "Send reminders when an invoice is approaching its due date or past due.",
131
- remindersLibraryNote: "New reminders will be saved to your organization's library and can be managed via Invoice settings",
132
- reminderNumberOfDays: "Number of days",
133
- reminderBefore: "BEFORE",
134
- reminderAfter: "AFTER",
135
- reminderDueDate: "due date",
136
- reminderNone: "No reminder",
137
- reminderBeforeDueInputLabel: "Days before due date",
138
- reminderPlaceholder: "e.g., 3",
139
- reminderAddTermButton: "Add",
140
- reminderClearButton: "Clear",
141
- reminderSaveButton: "Save"
142
- }, c = {
143
- hiddenDescription: "Invoice details",
144
- loadingTitle: "Loading invoice details",
145
- moreActionsLabel: "More actions",
146
- viewPdfButton: "View PDF",
147
- closeButton: "Close",
148
- invoiceDateCaption: "Invoice date",
149
- paymentHistoryHeading: "Payment history",
150
- paymentHistoryEmpty: "You've received no payments yet.",
151
- paymentHistoryTotalLabel: "Total received",
152
- paymentHistoryLoading: "Loading payment history",
153
- customerDetailsHeading: "Customer details",
154
- recurringAmountCaption: "Recurring amount",
155
- startsOnCaption: "Starts on",
156
- endsOnCaption: "Ends on",
157
- recurringSeriesRowLabel: "Recurring series",
158
- scheduleIssueDateColumn: "Issue date",
159
- scheduleAmountColumn: "Amount",
160
- scheduleStatusColumn: "Status",
161
- scheduleNumberColumn: "Number",
162
- scheduleEmpty: "No invoices are scheduled.",
163
- auditHistoryHeading: "Audit history",
164
- auditHistoryEmpty: "No history yet.",
165
- auditHistoryLoading: "Loading history",
166
- auditHistoryError: "The audit history could not be loaded.",
167
- auditHistoryNamesError: "Some names could not be loaded.",
168
- billingHeading: "Billing details",
169
- lineItemsHeading: "Line items",
170
- notesHeading: "Notes",
171
- notesOpeningLabel: "Opening note to customer",
172
- notesClosingLabel: "Closing note to customer",
173
- attachmentsHeading: "Attachments",
174
- attachmentsEmpty: "No attached files",
175
- attachmentsFileColumn: "File",
176
- attachmentsEmailedColumn: "Emailed",
177
- lineItemMultiplier: "x",
178
- lineItemEaLabel: "ea",
179
- noLineItems: "No line items.",
180
- editButton: "Edit",
181
- issueButton: "Issue",
182
- issueAndSendButton: "Issue and send",
183
- recordPaymentButton: "Record payment",
184
- sendButton: "Resend",
185
- acceptButton: "Accept",
186
- declineButton: "Decline",
187
- markPaidButton: "Mark as paid",
188
- markUncollectibleButton: "Mark as uncollectible",
189
- cancelButton: "Cancel invoice",
190
- cloneButton: "Duplicate",
191
- deleteButton: "Delete",
192
- pauseRecurrenceButton: "Pause series",
193
- resumeRecurrenceButton: "Resume series",
194
- cancelRecurrenceButton: "Cancel series",
195
- recurringBadge: "Recurring"
196
- }, l = {
197
- title: "Send receivable",
198
- description: "Send this document to the customer by email.",
199
- toLabel: "To",
200
- ccLabel: "CC",
201
- bccLabel: "BCC",
202
- subjectLabel: "Subject",
203
- bodyLabel: "Message",
204
- cancelButton: "Cancel",
205
- sendButton: "Send"
206
- }, u = {
207
- title: "Record payment",
208
- amountLabel: "Amount",
209
- amountPlaceholder: "0",
210
- fullAmountDuePrefix: "Enter full amount due of",
211
- dateLabel: "Date",
212
- datePlaceholder: "Pick a date",
213
- timeLabel: "Time",
214
- timeZoneSuffix: "UTC",
215
- cancelButton: "Cancel",
216
- saveButton: "Save",
217
- reviewTitle: "Manual payment record",
218
- receivedLabel: "Received",
219
- referenceLabel: "Reference",
220
- createdByLabel: "Created by",
221
- reviewWarning: "Please, check the details of your payment record. You won't be able to change or delete it after.",
222
- editRecordButton: "Edit record",
223
- confirmButton: "Confirm"
224
- }, d = {
225
- cancelButton: "Cancel",
226
- confirmButton: "Confirm",
227
- commentLabel: "Comment (optional)",
228
- commentPlaceholder: "Add a comment"
2
+ var e = {
3
+ recurrenceRepeatLabel: "Repeat this invoice",
4
+ recurrenceMonthDayLead: "on the",
5
+ recurrenceMonthDayTrail: "day of every month",
6
+ recurrenceWeekdayLead: "on",
7
+ recurrenceStartOnLabel: "Start on",
8
+ recurrenceEndChoiceLead: "and end",
9
+ recurrenceEndCountLead: "and end after",
10
+ recurrenceDatePlaceholder: "Mon DD, YYYY",
11
+ recurrenceCreationModeQuestion: "When an invoice in the series is created, what should happen?",
12
+ recurrenceCreationModeHint: "(You can change this at any time)",
13
+ recurrenceSetUpEmail: "Set up the email"
14
+ }, t = {
15
+ recurrenceEmailTitle: "Email sent with each invoice",
16
+ recurrenceEmailDescription: "The same recipients, subject, and message are used for every invoice in the series.",
17
+ recurrenceEmailTo: "To",
18
+ recurrenceEmailCc: "Cc",
19
+ recurrenceEmailBcc: "Bcc",
20
+ recurrenceEmailSubject: "Subject",
21
+ recurrenceEmailMessage: "Message",
22
+ recurrenceEmailRecipientPlaceholder: "name@example.com",
23
+ recurrenceEmailMessagePlaceholder: "e.g., Thank you for your business",
24
+ recurrenceEmailFootnote: "Each invoice is finalized and emailed automatically on its schedule.",
25
+ recurrenceEmailCancel: "Cancel",
26
+ recurrenceEmailSave: "Save"
229
27
  };
230
28
  //#endregion
231
- export { a as RECEIVABLES_SCREEN_LABELS_EN, d as RECEIVABLE_ACTION_DIALOG_LABELS_EN, c as RECEIVABLE_DETAILS_PANEL_LABELS_EN, s as RECEIVABLE_FORM_DIALOG_LABELS_EN, u as RECEIVABLE_PAYMENT_DIALOG_LABELS_EN, l as RECEIVABLE_SEND_DIALOG_LABELS_EN, r as RECEIVABLE_STATUS_BADGE_LABELS_EN, i as RECEIVABLE_STATUS_CARDS_LABELS_EN, o as UNSAVED_INVOICE_DIALOG_LABELS_EN };
29
+ export { t as RECEIVABLE_RECURRENCE_EMAIL_DIALOG_LABELS_EN, e as RECEIVABLE_RECURRENCE_SECTION_LABELS_EN };