@wisemen/wise-invoicing-web 0.0.6 → 0.0.7

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 (59) hide show
  1. package/dist/{BillingDocumentDetailViewDataProvider-BGE-p_FL.js → BillingDocumentDetailViewDataProvider-CmHbMXp0.js} +463 -469
  2. package/dist/{BillingDocumentPdf-Ca81NkZq.js → BillingDocumentPdf-Dj_s1l_p.js} +2 -2
  3. package/dist/{CreditNoteDetailViewDataProvider-b5dY_4mH.js → CreditNoteDetailViewDataProvider-DPePmzgn.js} +68 -68
  4. package/dist/{CreditNotePdfViewDataProvider-C2QqCdQ7.js → CreditNotePdfViewDataProvider-Dp0zI0fB.js} +2 -2
  5. package/dist/{CustomFieldValueText-ne5yy02J.js → CustomFieldValueText-BGbQwhON.js} +1 -1
  6. package/dist/{DunningCaseDetailViewDataProvider-jsh-LlGx.js → DunningCaseDetailViewDataProvider-CInwZwMc.js} +4 -4
  7. package/dist/{DunningCaseOverviewView-WbXalMt6.js → DunningCaseOverviewView-DvOmEcJY.js} +4 -4
  8. package/dist/DunningCaseReminderPdfViewDataProvider-I0I_WQQB.js +490 -0
  9. package/dist/{DunningCaseSendDialog-D7jAZ8yT.js → DunningCaseSendDialog-DISQ1Fs3.js} +2 -2
  10. package/dist/{InvoiceDetailViewDataProvider-BAVdcJay.js → InvoiceDetailViewDataProvider-YOlvUavt.js} +411 -411
  11. package/dist/{InvoiceOverviewViewDataProvider-BT9cuQXw.js → InvoiceOverviewViewDataProvider-i8tXATJE.js} +47 -47
  12. package/dist/{InvoicePdfView-BpIaYdZX.js → InvoicePdfView-Desmlys1.js} +1 -1
  13. package/dist/{InvoicePdfViewDataProvider-DGCnmNE-.js → InvoicePdfViewDataProvider--CHm0HAM.js} +2 -2
  14. package/dist/{InvoicePublicPdfViewDataProvider-KV0_hKUI.js → InvoicePublicPdfViewDataProvider-DoNBZsmi.js} +3 -3
  15. package/dist/{IssuerSettingsViewDataProvider-Bs4rEES2.js → IssuerSettingsViewDataProvider-COqHGUE6.js} +1 -1
  16. package/dist/{ReminderSettingsViewDataProvider-D4bRLLXx.js → ReminderSettingsViewDataProvider-Dys4bUU7.js} +2 -2
  17. package/dist/{address.transformer-B8C0pwT1.js → address.transformer-jGddczLV.js} +2 -73
  18. package/dist/{billingDocumentDetail.transformer-DIKAl4_L.js → billingDocumentDetail.transformer-BBn9R_cx.js} +32 -42
  19. package/dist/{creditNoteDetail.query-DHP69UiB.js → creditNoteDetail.query-BcPsB96h.js} +11 -11
  20. package/dist/customFieldValue.util-BwsX8exl.js +16 -0
  21. package/dist/{dist-PErDVE6-.js → dist-BBjpqvUl.js} +2 -2
  22. package/dist/dist-BFx8U4Su.js +72 -0
  23. package/dist/{dist-YTXTCfo1.js → dist-boJIIxnT.js} +1 -1
  24. package/dist/{i18n.lib-BGcQ_OBF.js → i18n.lib-C6eb-F-e.js} +28 -4
  25. package/dist/index.d.ts +30 -1
  26. package/dist/index.js +186 -185
  27. package/dist/instant.transformer-KmBsH3E9.js +18 -0
  28. package/dist/{invoice.service-DG5eacZC.js → invoice.service-Bb8VqQvc.js} +38 -32
  29. package/dist/{invoiceDeliveryStatus.util-CX-IdqAu.js → invoiceDeliveryStatus.util-BPkGCQM6.js} +2 -2
  30. package/dist/{invoiceDetail.query-C_IMGjOX.js → invoiceDetail.query-Cek8nyaw.js} +1 -1
  31. package/dist/{invoicingConfig.composable-Kad_HHx_.js → invoicingConfig.composable-D8HuO3Sl.js} +1 -1
  32. package/dist/{issuerSettings.query-6wnSPphB.js → issuerSettings.query-Bvz-Oj5D.js} +13 -12
  33. package/dist/libs/i18n.lib.d.ts +24 -0
  34. package/dist/locales/en-US.json.d.ts +14 -2
  35. package/dist/locales/nl-BE.json.d.ts +14 -2
  36. package/dist/modules/dunning-case/models/dunningCaseReminderPdf.model.d.ts +49 -0
  37. package/dist/modules/dunning-case/models/dunningCaseReminderPdf.transformer.d.ts +8 -0
  38. package/dist/modules/dunning-case/models/dunningCaseReminderPdf.transformer.spec.d.ts +1 -0
  39. package/dist/modules/dunning-case/test/builders/dunningCaseReminderPdfDto.builder.d.ts +27 -0
  40. package/dist/modules/dunning-case/use-cases/pdf/api/dunningCaseReminderPdf.query.d.ts +1 -1
  41. package/dist/modules/dunning-case/use-cases/pdf/api/dunningCaseReminderPdf.service.d.ts +2 -2
  42. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfFooter.vue.d.ts +2 -2
  43. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfHeader.vue.d.ts +7 -0
  44. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfTable.vue.d.ts +10 -16
  45. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfTotals.vue.d.ts +7 -0
  46. package/dist/modules/dunning-case/use-cases/pdf/utils/dunningCaseReminderPdf.util.d.ts +15 -6
  47. package/dist/modules/dunning-case/use-cases/pdf/views/DunningCaseReminderPdfView.vue.d.ts +2 -2
  48. package/dist/modules/invoice/api/mutations/invoiceUpdate.mutation.d.ts +1 -1
  49. package/dist/modules/invoice/api/queries/invoicePublicDetail.query.d.ts +1 -1
  50. package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.model.d.ts +4 -0
  51. package/dist/percentage.util-Bl78kSSk.js +35 -0
  52. package/dist/{plainDate.transformer-Dfe5r84P.js → plainDate.transformer-BxvJpJOv.js} +1 -32
  53. package/dist/{reminderConfig.query-hmDNKreg.js → reminderConfig.query-DsJNqqi7.js} +8 -7
  54. package/dist/style.css +1 -1
  55. package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +432 -432
  56. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +36 -36
  57. package/package.json +1 -1
  58. package/dist/DunningCaseReminderPdfViewDataProvider-B3Y2aYFf.js +0 -239
  59. package/dist/download.util-PjaUQR6r.js +0 -9
@@ -4,18 +4,18 @@ import { a as t, b as n, c as r, g as i, h as a, m as o, o as s, p as c, s as l,
4
4
  import { n as f, r as p, t as m } from "./useCurrencyFormat.composable-MtZaqKnO.js";
5
5
  import { t as h } from "./search.composable-BCtYqudV.js";
6
6
  import { t as g } from "./src-BFgnUugN.js";
7
- import { t as _ } from "./invoice.service-DG5eacZC.js";
8
- import { t as v } from "./plainDate.transformer-Dfe5r84P.js";
9
- import { G as y, H as b, I as x, L as S, tt as C, w as ee } from "./dist-D9lp7NDv.js";
10
- import { n as w } from "./dist-YTXTCfo1.js";
11
- import { a as te, c as ne, d as re, f as ie, i as T, l as ae, n as oe, o as se, r as E, s as ce, t as D, u as le } from "./dist-PErDVE6-.js";
12
- import { a as ue } from "./billingDocumentDetail.transformer-DIKAl4_L.js";
13
- import { i as de, n as O, r as fe, t as pe } from "./CustomFieldValueText-ne5yy02J.js";
7
+ import { t as _ } from "./invoice.service-Bb8VqQvc.js";
8
+ import { t as v } from "./plainDate.transformer-BxvJpJOv.js";
9
+ import { t as y } from "./instant.transformer-KmBsH3E9.js";
10
+ import { G as b, H as x, I as S, L as ee, tt as te, w as C } from "./dist-D9lp7NDv.js";
11
+ import { n as w } from "./dist-boJIIxnT.js";
12
+ import { a as ne, c as re, d as ie, f as T, i as ae, l as E, n as oe, o as se, r as D, s as ce, t as le, u as ue } from "./dist-BBjpqvUl.js";
13
+ import { i as de, n as O, r as fe, t as pe } from "./CustomFieldValueText-BGbQwhON.js";
14
14
  import { t as me } from "./customerUuid.model-GUFYq3O2.js";
15
15
  import { t as he } from "./DataProvider-Dj34ljUX.js";
16
16
  import { t as ge } from "./formango.util-D5c2ql--.js";
17
- import { c as _e, l as ve, n as ye, o as be, s as xe, t as Se, u as Ce } from "./invoiceDeliveryStatus.util-CX-IdqAu.js";
18
- import { t as we } from "./issuerSettings.query-6wnSPphB.js";
17
+ import { c as _e, l as ve, n as ye, o as be, s as xe, t as Se, u as Ce } from "./invoiceDeliveryStatus.util-BPkGCQM6.js";
18
+ import { t as we } from "./issuerSettings.query-Bvz-Oj5D.js";
19
19
  import { t as Te } from "./dashboard-BaWGNEek.js";
20
20
  import { RouterLink as Ee, useRouter as De } from "vue-router";
21
21
  import { z as k } from "zod";
@@ -156,7 +156,7 @@ var Ct = /* @__PURE__ */ L({
156
156
  I(V(rt), {
157
157
  title: V(r).t("wise_invoicing.invoice.create.modal_title"),
158
158
  description: V(r).t("wise_invoicing.invoice.create.modal_description"),
159
- icon: V(x),
159
+ icon: V(S),
160
160
  "is-description-visible": !0
161
161
  }, null, 8, [
162
162
  "title",
@@ -264,7 +264,7 @@ function Mt(e, t) {
264
264
  try {
265
265
  switch (e) {
266
266
  case l.DATE: return v.toDto(v.fromDto(t));
267
- case l.TIMESTAMP: return ue.toDto(ue.fromDto(t));
267
+ case l.TIMESTAMP: return y.toDto(y.fromDto(t));
268
268
  default: return t;
269
269
  }
270
270
  } catch {
@@ -363,17 +363,17 @@ function Nt(e) {
363
363
  })), a = e.customFieldDefinitions.map((n) => {
364
364
  let r = Z.getKey(n), i = O.getLabel(n, t.locale.value);
365
365
  switch (n.type) {
366
- case l.BOOLEAN: return ne({
366
+ case l.BOOLEAN: return re({
367
367
  entityLabel: i,
368
368
  key: r,
369
369
  label: i
370
370
  });
371
371
  case l.MONETARY: {
372
372
  let t = Z.getRuleNumber(n, "precision"), a = Z.getMonetaryCurrency(n, e.currency);
373
- return re({
373
+ return ie({
374
374
  customUnit: a,
375
375
  defaultValue: {
376
- operator: le.EQUALS,
376
+ operator: ue.EQUALS,
377
377
  value: null
378
378
  },
379
379
  disableOperators: !0,
@@ -384,9 +384,9 @@ function Nt(e) {
384
384
  step: t === void 0 ? void 0 : 1 / 10 ** t
385
385
  });
386
386
  }
387
- case l.NUMBER: return re({
387
+ case l.NUMBER: return ie({
388
388
  defaultValue: {
389
- operator: le.EQUALS,
389
+ operator: ue.EQUALS,
390
390
  value: null
391
391
  },
392
392
  disableOperators: !0,
@@ -396,9 +396,9 @@ function Nt(e) {
396
396
  min: Z.getRuleNumber(n, "min")
397
397
  });
398
398
  case l.MULTI_SELECT:
399
- case l.SINGLE_SELECT: return te({
399
+ case l.SINGLE_SELECT: return ne({
400
400
  defaultValue: {
401
- operator: E.INCLUDES,
401
+ operator: D.INCLUDES,
402
402
  value: []
403
403
  },
404
404
  disableOperators: !0,
@@ -410,9 +410,9 @@ function Nt(e) {
410
410
  case l.DATE:
411
411
  case l.TEXT:
412
412
  case l.TEXT_ARRAY:
413
- case l.TIMESTAMP: return ie({
413
+ case l.TIMESTAMP: return T({
414
414
  defaultValue: {
415
- operator: E.INCLUDES,
415
+ operator: D.INCLUDES,
416
416
  value: []
417
417
  },
418
418
  disableOperators: !0,
@@ -423,12 +423,12 @@ function Nt(e) {
423
423
  });
424
424
  default: throw TypeError("Unsupported custom field definition type");
425
425
  }
426
- }), s = T({
426
+ }), s = ae({
427
427
  actionGroup: { name: "invoices" },
428
428
  filters: [
429
- ie({
429
+ T({
430
430
  defaultValue: {
431
- operator: E.INCLUDES,
431
+ operator: D.INCLUDES,
432
432
  value: []
433
433
  },
434
434
  disableOperators: !0,
@@ -437,9 +437,9 @@ function Nt(e) {
437
437
  label: t.t("wise_invoicing.invoice.overview.filters.customer"),
438
438
  options: async (e) => (n.updateSearch(e), await new Promise((e) => setTimeout(e, 0)), i.value.map((e) => e.uuid))
439
439
  }),
440
- ae({
440
+ E({
441
441
  defaultValue: {
442
- operator: D.IS_BETWEEN,
442
+ operator: le.IS_BETWEEN,
443
443
  value: {
444
444
  from: null,
445
445
  until: null
@@ -449,9 +449,9 @@ function Nt(e) {
449
449
  key: "dueOnRange",
450
450
  label: t.t("wise_invoicing.invoice.overview.filters.due_on")
451
451
  }),
452
- te({
452
+ ne({
453
453
  defaultValue: {
454
- operator: E.INCLUDES,
454
+ operator: D.INCLUDES,
455
455
  value: []
456
456
  },
457
457
  disableOperators: !0,
@@ -706,7 +706,7 @@ var Lt = { class: "font-medium text-secondary" }, Rt = ["title"], zt = /* @__PUR
706
706
  default: H(() => [F("span", {
707
707
  title: t.customerName,
708
708
  class: "truncate text-sm/4 font-medium text-primary"
709
- }, B(t.customerName), 9, Gt), t.type === V(i).CREDIT_NOTE ? (R(), M(V(y), {
709
+ }, B(t.customerName), 9, Gt), t.type === V(i).CREDIT_NOTE ? (R(), M(V(b), {
710
710
  key: 0,
711
711
  "aria-label": V(n).t("wise_invoicing.invoice.type.credit_note"),
712
712
  class: "size-3 shrink-0 text-warning-primary",
@@ -1172,7 +1172,7 @@ var $ = class {
1172
1172
  }), (e, t) => (R(), M(xn, {
1173
1173
  "confirm-label": V(i).t("wise_invoicing.invoice.overview.bulk.finalize.confirm"),
1174
1174
  description: V(i).t("wise_invoicing.invoice.overview.bulk.finalize.description"),
1175
- icon: V(ee),
1175
+ icon: V(C),
1176
1176
  "is-preview-loading": l.value,
1177
1177
  "is-submitting": u.value,
1178
1178
  "loading-label": V(i).t("wise_invoicing.invoice.overview.bulk.finalize.loading"),
@@ -1224,7 +1224,7 @@ var wn = /* @__PURE__ */ L({
1224
1224
  let e = new Set(g.value);
1225
1225
  return n.invoices.filter((t) => !e.has(t.uuid));
1226
1226
  }), y = j(() => v.value.length), b = j(() => d.value === null ? n.invoices.length : h.value);
1227
- async function S() {
1227
+ async function x() {
1228
1228
  let e = g.value;
1229
1229
  if (e.length === 0 || u.value) return;
1230
1230
  u.value = !0;
@@ -1243,7 +1243,7 @@ var wn = /* @__PURE__ */ L({
1243
1243
  message: i.t("wise_invoicing.invoice.overview.bulk.mark_as_ready.skipped", { count: y.value })
1244
1244
  })), t.value.meta.processed !== 0 && (n.onMarkedAsReady(), r("close"));
1245
1245
  }
1246
- async function C() {
1246
+ async function ee() {
1247
1247
  if (l.value = !0, m.value.length === 0) {
1248
1248
  d.value = $.createEmptyPreview(), l.value = !1;
1249
1249
  return;
@@ -1256,11 +1256,11 @@ var wn = /* @__PURE__ */ L({
1256
1256
  d.value = e.value, l.value = !1;
1257
1257
  }
1258
1258
  return Pe(() => {
1259
- C();
1259
+ ee();
1260
1260
  }), (e, t) => (R(), M(xn, {
1261
1261
  "confirm-label": V(i).t("wise_invoicing.invoice.overview.bulk.mark_as_ready.confirm"),
1262
1262
  description: V(i).t("wise_invoicing.invoice.overview.bulk.mark_as_ready.description"),
1263
- icon: V(x),
1263
+ icon: V(S),
1264
1264
  "is-preview-loading": l.value,
1265
1265
  "is-submitting": u.value,
1266
1266
  "loading-label": V(i).t("wise_invoicing.invoice.overview.bulk.mark_as_ready.loading"),
@@ -1272,7 +1272,7 @@ var wn = /* @__PURE__ */ L({
1272
1272
  "skipped-preview-label": V(i).t("wise_invoicing.invoice.overview.bulk.mark_as_ready.skipped_preview", { count: y.value }),
1273
1273
  title: V(i).t("wise_invoicing.invoice.overview.bulk.mark_as_ready.title", { count: b.value }),
1274
1274
  onClose: t[0] ||= (e) => r("close"),
1275
- onConfirm: S
1275
+ onConfirm: x
1276
1276
  }, null, 8, [
1277
1277
  "confirm-label",
1278
1278
  "description",
@@ -1345,7 +1345,7 @@ var En = /* @__PURE__ */ L({
1345
1345
  }), (e, t) => (R(), M(xn, {
1346
1346
  "confirm-label": V(i).t("wise_invoicing.invoice.overview.bulk.send.confirm"),
1347
1347
  description: V(i).t("wise_invoicing.invoice.overview.bulk.send.description"),
1348
- icon: V(C),
1348
+ icon: V(te),
1349
1349
  "is-preview-loading": l.value,
1350
1350
  "is-submitting": u.value,
1351
1351
  "loading-label": V(i).t("wise_invoicing.invoice.overview.bulk.send.loading"),
@@ -1411,7 +1411,7 @@ var En = /* @__PURE__ */ L({
1411
1411
  trigger: H(() => [I(V(W), {
1412
1412
  "aria-label": t.ariaLabel,
1413
1413
  label: s.value,
1414
- "icon-right": V(b),
1414
+ "icon-right": V(x),
1415
1415
  variant: "secondary"
1416
1416
  }, null, 8, [
1417
1417
  "aria-label",
@@ -1468,19 +1468,19 @@ var En = /* @__PURE__ */ L({
1468
1468
  d.ISSUED_ON,
1469
1469
  d.NET_AMOUNT
1470
1470
  ]
1471
- }), v = Ft(), { customerUuids: y, customFields: b, dueOnRange: x, filters: C, lifecycleStatuses: ee } = Nt({
1471
+ }), v = Ft(), { customerUuids: y, customFields: b, dueOnRange: x, filters: S, lifecycleStatuses: te } = Nt({
1472
1472
  currency: t.currency,
1473
1473
  customFieldDefinitions: t.customFieldDefinitions
1474
1474
  });
1475
- oe(C);
1476
- let w = z(null), te = j(() => v.getFilters(m.value)), { isFetchingNextPage: ne, isLoading: re, fetchNextPage: ie, result: T } = bt({ params: {
1475
+ oe(S);
1476
+ let C = z(null), w = j(() => v.getFilters(m.value)), { isFetchingNextPage: ne, isLoading: re, fetchNextPage: ie, result: T } = bt({ params: {
1477
1477
  filters: j(() => ({
1478
- issuedOnRange: w.value,
1478
+ issuedOnRange: C.value,
1479
1479
  customerUuids: y.value,
1480
1480
  customFields: b.value,
1481
1481
  dueOnRange: x.value,
1482
- lifecycleStatuses: ee.value,
1483
- ...te.value
1482
+ lifecycleStatuses: te.value,
1483
+ ...w.value
1484
1484
  })),
1485
1485
  search: p.debouncedSearch,
1486
1486
  sort: _.values
@@ -1496,7 +1496,7 @@ var En = /* @__PURE__ */ L({
1496
1496
  actionGroup: ae,
1497
1497
  availableColumns: le,
1498
1498
  initialState: He("invoice-overview-columns", []).value
1499
- }), O = j(() => T.value.isErr() ? T.value.getError() : null), fe = j(() => C.activeFilters.value.length), pe = j(() => (p.debouncedSearch.value?.trim().length ?? 0) > 0), me = j(() => D.selectedInvoices.value.some((e) => e.status === a.READY)), he = j(() => D.selectedInvoices.value.some((e) => e.status === a.DRAFT)), { canSend: ge } = jt({ selectedInvoices: () => D.selectedInvoices.value });
1499
+ }), O = j(() => T.value.isErr() ? T.value.getError() : null), fe = j(() => S.activeFilters.value.length), pe = j(() => (p.debouncedSearch.value?.trim().length ?? 0) > 0), me = j(() => D.selectedInvoices.value.some((e) => e.status === a.READY)), he = j(() => D.selectedInvoices.value.some((e) => e.status === a.DRAFT)), { canSend: ge } = jt({ selectedInvoices: () => D.selectedInvoices.value });
1500
1500
  Re(E, () => {
1501
1501
  D.syncSelection();
1502
1502
  });
@@ -1561,8 +1561,8 @@ var En = /* @__PURE__ */ L({
1561
1561
  class: "items-stretch"
1562
1562
  }, {
1563
1563
  default: H(() => [I(Dn, {
1564
- modelValue: w.value,
1565
- "onUpdate:modelValue": t[1] ||= (e) => w.value = e,
1564
+ modelValue: C.value,
1565
+ "onUpdate:modelValue": t[1] ||= (e) => C.value = e,
1566
1566
  "aria-label": V(n).t("wise_invoicing.invoice.overview.filters.issued_on")
1567
1567
  }, null, 8, ["modelValue", "aria-label"]), I(V(K), { justify: "end" }, {
1568
1568
  default: H(() => [
@@ -1570,7 +1570,7 @@ var En = /* @__PURE__ */ L({
1570
1570
  modelValue: V(p).search.value,
1571
1571
  "onUpdate:modelValue": t[2] ||= (e) => V(p).search.value = e,
1572
1572
  label: null,
1573
- "icon-left": V(S),
1573
+ "icon-left": V(ee),
1574
1574
  placeholder: V(n).t("wise_invoicing.common.search"),
1575
1575
  size: "sm",
1576
1576
  type: "search"
@@ -1613,7 +1613,7 @@ var En = /* @__PURE__ */ L({
1613
1613
  }),
1614
1614
  onNextPage: V(ie),
1615
1615
  onClearSearch: t[3] ||= (e) => V(p).clear(),
1616
- onClearFilters: t[4] ||= (e) => V(C).clearAll()
1616
+ onClearFilters: t[4] ||= (e) => V(S).clearAll()
1617
1617
  }, null, 8, [
1618
1618
  "columns",
1619
1619
  "data",
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./documentTitle.composable-4ApFl9TZ.js";
2
- import { t } from "./BillingDocumentPdf-Ca81NkZq.js";
2
+ import { t } from "./BillingDocumentPdf-Dj_s1l_p.js";
3
3
  import { useI18n as n } from "vue-i18n";
4
4
  import { computed as r, createElementBlock as i, createVNode as a, defineComponent as o, openBlock as s } from "vue";
5
5
  //#region src/modules/invoice/use-cases/pdf/views/InvoicePdfView.vue?vue&type=script&setup=true&lang.ts
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./DataProvider-Dj34ljUX.js";
2
- import { t } from "./InvoicePdfView-BpIaYdZX.js";
3
- import { t as n } from "./invoiceDetail.query-C_IMGjOX.js";
2
+ import { t } from "./InvoicePdfView-Desmlys1.js";
3
+ import { t as n } from "./invoiceDetail.query-Cek8nyaw.js";
4
4
  import { useI18n as r } from "vue-i18n";
5
5
  import { computed as i, createBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, openBlock as l, unref as u, withCtx as d } from "vue";
6
6
  import { UIText as f } from "@wisemen/vue-core-design-system";
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { t } from "./invoice.service-DG5eacZC.js";
2
+ import { t } from "./invoice.service-Bb8VqQvc.js";
3
3
  import { t as n } from "./DataProvider-Dj34ljUX.js";
4
- import { t as r } from "./InvoicePdfView-BpIaYdZX.js";
4
+ import { t as r } from "./InvoicePdfView-Desmlys1.js";
5
5
  import { useRouter as i } from "vue-router";
6
6
  import { useI18n as a } from "vue-i18n";
7
7
  import { computed as o, createBlock as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, openBlock as f, unref as p, watch as m, withCtx as h } from "vue";
@@ -41,4 +41,4 @@ var b = { class: "flex min-h-screen items-center justify-center bg-secondary" },
41
41
  }
42
42
  }), C = /* @__PURE__ */ e({ default: () => w }), w = S;
43
43
  //#endregion
44
- export { C as n, w as t };
44
+ export { C as n, y as r, w as t };
@@ -4,7 +4,7 @@ import { r as n } from "./useCurrencyFormat.composable-MtZaqKnO.js";
4
4
  import { t as r } from "./addressForm.model-C853zEtX.js";
5
5
  import { t as i } from "./DataProvider-Dj34ljUX.js";
6
6
  import { t as a } from "./formango.util-D5c2ql--.js";
7
- import { n as o, r as s, t as c } from "./issuerSettings.query-6wnSPphB.js";
7
+ import { n as o, r as s, t as c } from "./issuerSettings.query-Bvz-Oj5D.js";
8
8
  import { t as l } from "./dashboard-BaWGNEek.js";
9
9
  import { z as u } from "zod";
10
10
  import { useI18n as d } from "vue-i18n";
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { t } from "./i18n.lib-BGcQ_OBF.js";
2
+ import { t } from "./i18n.lib-C6eb-F-e.js";
3
3
  import "./api.util-BCSgCfpS.js";
4
4
  import { a as n, d as r, t as i, y as a } from "./documentTitle.composable-4ApFl9TZ.js";
5
- import { i as o, n as s, r as c, t as l } from "./reminderConfig.query-hmDNKreg.js";
5
+ import { i as o, n as s, r as c, t as l } from "./reminderConfig.query-DsJNqqi7.js";
6
6
  import { t as u } from "./DataProvider-Dj34ljUX.js";
7
7
  import { t as d } from "./formango.util-D5c2ql--.js";
8
8
  import { z as f } from "zod";
@@ -32,78 +32,7 @@ var e = /^[A-Z]{2}$/, t = class {
32
32
  e.country
33
33
  ].some(Boolean);
34
34
  }
35
- };
36
- //#endregion
37
- //#region ../../../node_modules/.pnpm/@wisemen+vue-core-utils@0.1.1_libphonenumber-js@1.13.10/node_modules/@wisemen/vue-core-utils/dist/index.mjs
38
- function n() {
39
- return process.env.ENVIRONMENT !== "production";
40
- }
41
- new class {
42
- prefix;
43
- constructor(e = {}) {
44
- this.prefix = e.prefix ?? "";
45
- }
46
- buildArgs(e, t) {
47
- return typeof e == "string" ? [`${this.prefix.length > 0 ? `${this.prefix} ` : ""}${e}`, ...t] : this.prefix.length > 0 ? [
48
- this.prefix,
49
- e,
50
- ...t
51
- ] : [e, ...t];
52
- }
53
- log(e, t, ...n) {
54
- let r = this.buildArgs(t, n);
55
- switch (e) {
56
- case "debug":
57
- console.debug(...r);
58
- break;
59
- case "info":
60
- console.info(...r);
61
- break;
62
- case "warn":
63
- console.warn(...r);
64
- break;
65
- case "error": console.error(...r);
66
- }
67
- }
68
- debug(e, ...t) {
69
- n() && this.log("debug", e, ...t);
70
- }
71
- error(e, ...t) {
72
- this.log("error", e, ...t);
73
- }
74
- info(e, ...t) {
75
- n() && this.log("info", e, ...t);
76
- }
77
- warn(e, ...t) {
78
- this.log("warn", e, ...t);
79
- }
80
- }();
81
- var r = /([a-z])([A-Z])/g, i = /([A-Z]+)([A-Z][a-z])/g, a = /[\u0300-\u036F]/g, o = /[^\w\s-]/g, s = /[\s_]+/g, c = /^-+|-+$/g, l = /<[^>]*>/g, u = class {
82
- static camelToKebab(e) {
83
- return e.replace(r, "$1-$2").replace(i, "$1-$2").toLowerCase();
84
- }
85
- static capitalize(e) {
86
- return e.length === 0 ? e : e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
87
- }
88
- static isEmpty(e) {
89
- return e == null || e.trim().length === 0;
90
- }
91
- static slugify(e) {
92
- return e.toLowerCase().trim().normalize("NFD").replace(a, "").replace(o, "").replace(s, "-").replace(c, "");
93
- }
94
- static stripHtml(e) {
95
- return e.replace(l, "");
96
- }
97
- static trimOrNull(e) {
98
- return e?.trim() || null;
99
- }
100
- static trimOrUndefined(e) {
101
- return e?.trim() || void 0;
102
- }
103
- static truncate(e, t) {
104
- return e.length <= t ? e : `${e.slice(0, t)}...`;
105
- }
106
- }, d = class e {
35
+ }, n = class e {
107
36
  static fromDto(e) {
108
37
  return {
109
38
  placeId: e.placeId,
@@ -164,4 +93,4 @@ var r = /([a-z])([A-Z])/g, i = /([A-Z]+)([A-Z][a-z])/g, a = /[\u0300-\u036F]/g,
164
93
  }
165
94
  };
166
95
  //#endregion
167
- export { u as n, t as r, d as t };
96
+ export { t as n, n as t };
@@ -1,26 +1,16 @@
1
1
  import "./api.util-BCSgCfpS.js";
2
2
  import { l as e, s as t } from "./documentTitle.composable-4ApFl9TZ.js";
3
- import { i as n, r, t as i } from "./plainDate.transformer-Dfe5r84P.js";
4
- import { n as a, t as o } from "./address.transformer-B8C0pwT1.js";
5
- import { Temporal as s } from "temporal-polyfill";
6
- //#region src/utils/instant.transformer.ts
7
- var c = class {
8
- static fromDto(e) {
9
- return s.Instant.from(e);
10
- }
11
- static fromNullableDto(e) {
12
- return e === null ? null : this.fromDto(e);
13
- }
14
- static toDto(e) {
15
- return e.toString();
16
- }
17
- static toNullableDto(e) {
18
- return e === null ? null : this.toDto(e);
19
- }
20
- }, l = class {
3
+ import { n, t as r } from "./plainDate.transformer-BxvJpJOv.js";
4
+ import { n as i } from "./percentage.util-Bl78kSSk.js";
5
+ import { t as a } from "./address.transformer-jGddczLV.js";
6
+ import { t as o } from "./instant.transformer-KmBsH3E9.js";
7
+ import { t as s } from "./dist-BFx8U4Su.js";
8
+ import { Temporal as c } from "temporal-polyfill";
9
+ //#region src/models/billing-document/activity-log/billingDocumentActivityLog.transformer.ts
10
+ var l = class {
21
11
  static fromDto(e) {
22
12
  return {
23
- createdAt: c.fromDto(e.createdAt),
13
+ createdAt: o.fromDto(e.createdAt),
24
14
  action: e.action,
25
15
  actor: e.actor,
26
16
  actorType: e.actorType,
@@ -31,7 +21,7 @@ var c = class {
31
21
  static fromDto(t) {
32
22
  if (t === null) return null;
33
23
  if (t.type === e.PERCENTAGE) {
34
- let e = r.fromNullableDto(t.percentage);
24
+ let e = i.fromNullableDto(t.percentage);
35
25
  return e?.getValue() === 0 ? null : {
36
26
  amount: null,
37
27
  description: t.description,
@@ -42,7 +32,7 @@ var c = class {
42
32
  return {
43
33
  amount: t.amount === null ? null : n.fromDto(t.amount),
44
34
  description: t.description,
45
- percentage: r.fromNullableDto(t.percentage),
35
+ percentage: i.fromNullableDto(t.percentage),
46
36
  type: t.type
47
37
  };
48
38
  }
@@ -50,12 +40,12 @@ var c = class {
50
40
  return t === null ? null : t.type === e.PERCENTAGE ? {
51
41
  amount: null,
52
42
  description: t.description,
53
- percentage: r.toNullableDto(t.percentage),
43
+ percentage: i.toNullableDto(t.percentage),
54
44
  type: t.type
55
45
  } : {
56
46
  amount: n.toNullableDto(t.amount),
57
47
  description: t.description,
58
- percentage: r.toNullableDto(t.percentage),
48
+ percentage: i.toNullableDto(t.percentage),
59
49
  type: t.type
60
50
  };
61
51
  }
@@ -86,7 +76,7 @@ var c = class {
86
76
  //#endregion
87
77
  //#region src/modules/custom-field/models/custom-field-value/customFieldValue.transformer.ts
88
78
  function f(e) {
89
- return e === "infinity" || e === "-infinity" ? e : i.fromDto(e);
79
+ return e === "infinity" || e === "-infinity" ? e : r.fromDto(e);
90
80
  }
91
81
  var p = class {
92
82
  static fromDto(e) {
@@ -135,7 +125,7 @@ var p = class {
135
125
  case t.TIMESTAMP: return {
136
126
  definitionUuid: r,
137
127
  type: t.TIMESTAMP,
138
- value: c.fromDto(e.value)
128
+ value: o.fromDto(e.value)
139
129
  };
140
130
  }
141
131
  throw TypeError("Unsupported custom field value DTO type");
@@ -150,7 +140,7 @@ var p = class {
150
140
  case t.TEXT_ARRAY: return e;
151
141
  case t.DATE: return {
152
142
  ...e,
153
- value: typeof e.value == "string" ? e.value : i.toDto(e.value)
143
+ value: typeof e.value == "string" ? e.value : r.toDto(e.value)
154
144
  };
155
145
  case t.MONETARY: return {
156
146
  ...e,
@@ -187,13 +177,13 @@ function m(e) {
187
177
  unit: e.unit,
188
178
  unitPrice: n.fromDto(e.unitPrice),
189
179
  vatRate: e.vatRate,
190
- vatRatePercentage: r.fromDto(e.vatRatePercentage)
180
+ vatRatePercentage: i.fromDto(e.vatRatePercentage)
191
181
  };
192
182
  }
193
183
  function h(e) {
194
184
  return {
195
185
  uuid: e.uuid,
196
- createdAt: c.fromDto(e.createdAt),
186
+ createdAt: o.fromDto(e.createdAt),
197
187
  grossAmount: n.fromDto(e.grossAmount),
198
188
  paidAmount: n.fromNullableDto(e.paidAmount),
199
189
  sequence: e.sequence,
@@ -210,7 +200,7 @@ function g(e) {
210
200
  }) : null;
211
201
  }
212
202
  var _ = class {
213
- static fromViewInvoiceDetailDto(e, t, r) {
203
+ static fromViewInvoiceDetailDto(e, t, i) {
214
204
  let l = e.ungroupedLines.map(m), f = e.groups.toSorted((e, t) => e.position - t.position).map((e) => ({
215
205
  uuid: e.uuid,
216
206
  name: e.name,
@@ -221,17 +211,17 @@ var _ = class {
221
211
  })), _ = [...l, ...f.flatMap((e) => e.lines)].toSorted((e, t) => e.position - t.position);
222
212
  return {
223
213
  uuid: t,
224
- createdAt: c.fromDto(e.createdAt),
225
- deliveredOn: i.fromNullableDto(e.deliveredOn),
226
- dueOn: i.fromDto(e.dueOn ?? s.Now.plainDateISO().toString()),
227
- issueOn: i.fromDto(e.issueOn ?? s.Now.plainDateISO().toString()),
228
- updatedAt: c.fromDto(e.updatedAt),
214
+ createdAt: o.fromDto(e.createdAt),
215
+ deliveredOn: r.fromNullableDto(e.deliveredOn),
216
+ dueOn: r.fromDto(e.dueOn ?? c.Now.plainDateISO().toString()),
217
+ issueOn: r.fromDto(e.issueOn ?? c.Now.plainDateISO().toString()),
218
+ updatedAt: o.fromDto(e.updatedAt),
229
219
  isDisputed: e.isDisputed,
230
220
  isOverdue: e.isOverdue,
231
221
  issuer: {
232
222
  uuid: e.issuer.uuid,
233
223
  name: e.issuer.name,
234
- address: o.fromNullableDto(e.issuer.address),
224
+ address: a.fromNullableDto(e.issuer.address),
235
225
  alternativeBankAccountNumber: e.issuer.alternativeBankAccountNumber,
236
226
  bankAccountNumber: e.issuer.bankAccountNumber,
237
227
  email: e.issuer.email,
@@ -247,7 +237,7 @@ var _ = class {
247
237
  uuid: e.customer.uuid,
248
238
  externalId: e.customer.externalId,
249
239
  name: e.customer.name,
250
- address: o.fromNullableDto(e.customer.address),
240
+ address: a.fromNullableDto(e.customer.address),
251
241
  email: e.customer.email,
252
242
  phoneNumber: e.customer.phoneNumber,
253
243
  type: e.customer.type,
@@ -256,7 +246,7 @@ var _ = class {
256
246
  customFields: e.customFields.map(p.fromDto),
257
247
  deliveryStatus: e.deliveryStatus,
258
248
  effectiveNet: n.fromDto(e.effectiveNet),
259
- externalRemarks: a.trimOrNull(e.externalRemarks),
249
+ externalRemarks: s.trimOrNull(e.externalRemarks),
260
250
  file: d.fromNullableDto(e.file),
261
251
  globalDiscount: u.fromDto(e.globalDiscount),
262
252
  grossAmount: n.fromDto(e.grossAmount),
@@ -280,15 +270,15 @@ var _ = class {
280
270
  },
281
271
  reminders: e.reminders.map((e) => ({
282
272
  uuid: e.uuid,
283
- sentAt: c.fromDto(e.sentAt)
284
- })).toSorted((e, t) => s.Instant.compare(e.sentAt, t.sentAt)),
273
+ sentAt: o.fromDto(e.sentAt)
274
+ })).toSorted((e, t) => c.Instant.compare(e.sentAt, t.sentAt)),
285
275
  sequence: e.sequence,
286
276
  settlementStatus: e.settlementStatus,
287
277
  status: e.status,
288
- subject: a.trimOrNull(e.subject),
278
+ subject: s.trimOrNull(e.subject),
289
279
  totalCreditedAmount: g(e),
290
280
  totalDiscountAmount: n.fromNullableDto(e.totalDiscountAmount),
291
- type: r,
281
+ type: i,
292
282
  ungroupedLines: l,
293
283
  vatAmount: n.fromDto(e.vatAmount),
294
284
  vatSummaries: e.vatSummaries.map((e) => ({
@@ -300,4 +290,4 @@ var _ = class {
300
290
  }
301
291
  };
302
292
  //#endregion
303
- export { c as a, l as i, p as n, u as r, _ as t };
293
+ export { l as i, p as n, u as r, _ as t };
@@ -1,21 +1,21 @@
1
1
  import { D as e, F as t, H as n, O as r, f as i, g as a, k as o, t as s, x as c, y as l } from "./api.util-BCSgCfpS.js";
2
2
  import { g as u, r as d } from "./documentTitle.composable-4ApFl9TZ.js";
3
- import { i as f, t as p } from "./plainDate.transformer-Dfe5r84P.js";
4
- import { n as m } from "./address.transformer-B8C0pwT1.js";
5
- import { i as h, n as g, r as _, t as v } from "./billingDocumentDetail.transformer-DIKAl4_L.js";
3
+ import { n as f, t as p } from "./plainDate.transformer-BxvJpJOv.js";
4
+ import { i as m, n as h, r as g, t as _ } from "./billingDocumentDetail.transformer-BBn9R_cx.js";
5
+ import { t as v } from "./dist-BFx8U4Su.js";
6
6
  import { useQuery as y } from "@wisemen/vue-core-api-utils";
7
7
  //#region src/modules/credit-note/models/detail/creditNoteDetail.transformer.ts
8
8
  var b = class {
9
9
  static fromDto(e) {
10
- return v.fromViewInvoiceDetailDto(e, e.uuid, u.CREDIT_NOTE);
10
+ return _.fromViewInvoiceDetailDto(e, e.uuid, u.CREDIT_NOTE);
11
11
  }
12
12
  }, x = class {
13
13
  static toDto(e) {
14
14
  return {
15
15
  issuedOn: p.toDto(e.issuedOn),
16
- externalRemarks: m.trimOrNull(e.externalRemarks),
17
- poNumber: m.trimOrNull(e.poNumber),
18
- subject: m.trimOrNull(e.subject)
16
+ externalRemarks: v.trimOrNull(e.externalRemarks),
17
+ poNumber: v.trimOrNull(e.poNumber),
18
+ subject: v.trimOrNull(e.subject)
19
19
  };
20
20
  }
21
21
  static toForm(e) {
@@ -33,9 +33,9 @@ function S(e) {
33
33
  return {
34
34
  isDiscount: e.isDiscount,
35
35
  name: e.name,
36
- customFields: e.customFields.map(g.toDto),
36
+ customFields: e.customFields.map(h.toDto),
37
37
  description: e.description,
38
- discount: _.toDto(e.discount),
38
+ discount: g.toDto(e.discount),
39
39
  position: e.position,
40
40
  quantity: Math.abs(e.quantity),
41
41
  unit: e.unit,
@@ -48,7 +48,7 @@ var C = class {
48
48
  return {
49
49
  groups: e.groups.map((e) => ({
50
50
  name: e.name,
51
- customFields: e.customFields.map(g.toDto),
51
+ customFields: e.customFields.map(h.toDto),
52
52
  description: e.description,
53
53
  lines: e.lines.map(S),
54
54
  position: e.position
@@ -76,7 +76,7 @@ var C = class {
76
76
  limit: n.pagination.limit
77
77
  }
78
78
  } }))).map((e) => ({
79
- data: e.data.logs.map(h.fromDto),
79
+ data: e.data.logs.map(m.fromDto),
80
80
  meta: { next: e.data.nextKey }
81
81
  }));
82
82
  }