@loczer/storefront-sdk 0.225.0 → 0.227.0

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 (42) hide show
  1. package/dist/chunks/pkg/booking-engine/dist/{schemas-DGn2a1my.js → schemas-DW5gdDYz.js} +4 -3
  2. package/dist/chunks/pkg/booking-engine/dist/utils/opening-hours-period-TCyLhzZw.js +82 -0
  3. package/dist/components/ContractSaleDocument/DocumentAcceptanceSection.d.ts +2 -1
  4. package/dist/components/ContractSaleDocument/DocumentAcceptanceSection.d.ts.map +1 -1
  5. package/dist/components/ContractSaleDocument/DocumentAcceptanceSection.js +27 -27
  6. package/dist/components/ContractSaleDocument/Invoice.d.ts.map +1 -1
  7. package/dist/components/ContractSaleDocument/Invoice.js +6 -3
  8. package/dist/components/ContractSaleDocument/InvoiceDetails.d.ts +2 -1
  9. package/dist/components/ContractSaleDocument/InvoiceDetails.d.ts.map +1 -1
  10. package/dist/components/ContractSaleDocument/InvoiceDetails.js +147 -90
  11. package/dist/components/ContractSaleDocument/PageFooter.d.ts +2 -1
  12. package/dist/components/ContractSaleDocument/PageFooter.d.ts.map +1 -1
  13. package/dist/components/ContractSaleDocument/PageFooter.js +10 -9
  14. package/dist/components/ContractSaleDocument/PageHeader.d.ts +2 -1
  15. package/dist/components/ContractSaleDocument/PageHeader.d.ts.map +1 -1
  16. package/dist/components/ContractSaleDocument/PageHeader.js +10 -9
  17. package/dist/components/Footer/businessHoursStatus.d.ts.map +1 -1
  18. package/dist/components/Footer/businessHoursStatus.js +21 -36
  19. package/dist/components/Footer/businessHoursUtils.d.ts.map +1 -1
  20. package/dist/components/Footer/businessHoursUtils.js +2 -1
  21. package/dist/i18n/en.d.ts +6 -0
  22. package/dist/i18n/en.d.ts.map +1 -1
  23. package/dist/i18n/en.js +6 -0
  24. package/dist/i18n/fr.d.ts +6 -0
  25. package/dist/i18n/fr.d.ts.map +1 -1
  26. package/dist/i18n/fr.js +6 -0
  27. package/dist/index.d.ts +144 -0
  28. package/dist/index.js +75 -74
  29. package/dist/lib/booking-period.d.ts.map +1 -1
  30. package/dist/lib/booking-period.js +120 -138
  31. package/dist/lib/booking.js +1 -1
  32. package/dist/lib/checkoutSubmit.js +1 -1
  33. package/dist/lib/contractSaleDocument.d.ts +41 -0
  34. package/dist/lib/contractSaleDocument.d.ts.map +1 -1
  35. package/dist/lib/contractSaleDocument.js +40 -30
  36. package/dist/lib/contractSaleDocumentApi.d.ts +60 -0
  37. package/dist/lib/contractSaleDocumentApi.d.ts.map +1 -1
  38. package/dist/pages/ContractSaleDocumentPage.d.ts +20 -0
  39. package/dist/pages/ContractSaleDocumentPage.d.ts.map +1 -1
  40. package/dist/storefront.css +1 -1
  41. package/dist/storefrontSchemas.js +1 -1
  42. package/package.json +1 -1
@@ -2,12 +2,13 @@ import { formatContractSaleDocumentLabel as e, formatContractSaleDocumentLegalLa
2
2
  import { DocumentAcceptanceSection as n } from "./DocumentAcceptanceSection.js";
3
3
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
4
  import { useTranslation as a } from "react-i18next";
5
+ import { cn as o } from "@rpcbase/ui";
5
6
  //#region src/components/ContractSaleDocument/InvoiceDetails.tsx
6
- function o(e) {
7
+ function s(e) {
7
8
  let t = e?.trim() ?? "";
8
9
  return !t || t === "-" ? "" : t;
9
10
  }
10
- function s(e, t, n) {
11
+ function c(e, t, n) {
11
12
  let r = t.trim().toUpperCase();
12
13
  try {
13
14
  return new Intl.NumberFormat(n, {
@@ -18,7 +19,7 @@ function s(e, t, n) {
18
19
  return `${e.toFixed(2)} ${r}`;
19
20
  }
20
21
  }
21
- function c(e, t, n) {
22
+ function l(e, t, n) {
22
23
  let r = e instanceof Date ? e : new Date(e);
23
24
  if (Number.isNaN(r.getTime())) return "-";
24
25
  try {
@@ -34,9 +35,9 @@ function c(e, t, n) {
34
35
  }).format(r);
35
36
  }
36
37
  }
37
- function l({ saleDocument: l, items: u, subtotal: d, tax: f, total: p, formatDate: m, documentLanguage: h, showInvoiceMeta: g = !0, showTotalsSection: _ = !0, showNotesSection: v = !0, showAcceptanceSection: y = !0, documentQrCodeUrl: b }) {
38
- let { t: x } = a(), S = (t, n = {}) => e(x, h, t, n), C = (e, n = {}) => t(x, h, e, n), w = (e, t = {}) => {
39
- let n = S(e, t), a = n.indexOf(" / ");
38
+ function u({ saleDocument: u, items: d, subtotal: f, tax: p, total: m, formatDate: h, documentLanguage: g, showInvoiceMeta: _ = !0, showTotalsSection: v = !0, showNotesSection: y = !0, showAcceptanceSection: b = !0, documentQrCodeUrl: x, compact: S = !1 }) {
39
+ let { t: C } = a(), w = (t, n = {}) => e(C, g, t, n), T = (e, n = {}) => t(C, g, e, n), E = (e, t = {}) => {
40
+ let n = w(e, t), a = n.indexOf(" / ");
40
41
  return a === -1 ? /* @__PURE__ */ r("span", { children: n }) : /* @__PURE__ */ i("span", {
41
42
  className: "inline-flex flex-col text-left leading-snug",
42
43
  children: [/* @__PURE__ */ r("span", { children: n.slice(0, a) }), /* @__PURE__ */ r("span", {
@@ -44,146 +45,201 @@ function l({ saleDocument: l, items: u, subtotal: d, tax: f, total: p, formatDat
44
45
  children: n.slice(a + 3)
45
46
  })]
46
47
  });
47
- }, T = !_ && !v && !y, E = o(l.issuer.address), D = o(l.recipient.address), O = l.recipient.email?.trim() ?? "", k = l.kind === "credit_note", A = S(k ? "docs_contract_sale_credit_note_title" : l.kind === "quote" ? "docs_contract_sale_quote_title" : "docs_contract_sale_invoice_title"), j = S(k ? "docs_contract_sale_credit_note_date_label" : l.kind === "quote" ? "docs_contract_sale_quote_date_label" : "docs_contract_sale_invoice_date_label"), M = S(k ? "docs_contract_sale_credit_note_recipient_label" : "docs_contract_sale_invoice_recipient_label"), N = k ? -1 : 1;
48
+ }, D = !v && !y && !b, O = u.issuer.legalIdentity, k = O?.legalName?.trim() || u.issuer.name, A = k === u.issuer.name ? "" : u.issuer.name, j = s(O?.registeredAddress || u.issuer.address), M = O ? [
49
+ O.legalForm ? {
50
+ key: "legal-form",
51
+ label: T("docs_contract_sale_legal_form_label"),
52
+ value: O.legalForm
53
+ } : null,
54
+ O.shareCapital ? {
55
+ key: "share-capital",
56
+ label: T("docs_contract_sale_legal_share_capital_label"),
57
+ value: O.shareCapital
58
+ } : null,
59
+ O.companyRegistrationNumber ? {
60
+ key: "company-registration",
61
+ label: T("docs_contract_sale_legal_company_registration_label"),
62
+ value: O.companyRegistrationNumber
63
+ } : null,
64
+ O.establishmentRegistrationNumber ? {
65
+ key: "establishment-registration",
66
+ label: T("docs_contract_sale_legal_establishment_registration_label"),
67
+ value: O.establishmentRegistrationNumber
68
+ } : null,
69
+ O.vatNumber ? {
70
+ key: "vat-number",
71
+ label: T("docs_contract_sale_legal_vat_number_label"),
72
+ value: O.vatNumber
73
+ } : null,
74
+ O.tradeRegister ? {
75
+ key: "trade-register",
76
+ label: T("docs_contract_sale_legal_trade_register_label"),
77
+ value: O.tradeRegister
78
+ } : null
79
+ ].filter((e) => e !== null) : [], N = s(u.recipient.address), P = u.recipient.email?.trim() ?? "", F = u.kind === "credit_note", I = w(F ? "docs_contract_sale_credit_note_title" : u.kind === "quote" ? "docs_contract_sale_quote_title" : "docs_contract_sale_invoice_title"), L = w(F ? "docs_contract_sale_credit_note_date_label" : u.kind === "quote" ? "docs_contract_sale_quote_date_label" : "docs_contract_sale_invoice_date_label"), R = w(F ? "docs_contract_sale_credit_note_recipient_label" : "docs_contract_sale_invoice_recipient_label"), z = F ? -1 : 1;
48
80
  return /* @__PURE__ */ i("main", {
49
81
  className: "flex flex-grow flex-col px-4 md:px-8",
50
82
  children: [
51
- g && /* @__PURE__ */ i("header", {
52
- className: "mb-8 grid gap-6",
83
+ _ && /* @__PURE__ */ i("header", {
84
+ className: o("grid", S ? "mb-4 gap-3" : "mb-8 gap-6"),
53
85
  children: [/* @__PURE__ */ i("div", {
54
- className: "grid gap-6 md:grid-cols-2 md:gap-8",
86
+ className: o("grid md:grid-cols-2", S ? "gap-3 md:gap-4" : "gap-6 md:gap-8"),
55
87
  children: [/* @__PURE__ */ i("div", { children: [/* @__PURE__ */ i("h1", {
56
- className: "flex flex-wrap items-baseline gap-x-2 gap-y-1 text-xl font-semibold text-foreground",
57
- children: [/* @__PURE__ */ r("span", { children: A }), /* @__PURE__ */ i("span", {
88
+ className: o("flex flex-wrap items-baseline gap-x-2 gap-y-1 font-semibold text-foreground", S ? "text-lg" : "text-xl"),
89
+ children: [/* @__PURE__ */ r("span", { children: I }), /* @__PURE__ */ i("span", {
58
90
  className: "font-normal text-muted-foreground",
59
- children: ["#", l.saleDocumentNumber]
91
+ children: ["#", u.saleDocumentNumber]
60
92
  })]
61
- }), b === void 0 ? null : /* @__PURE__ */ r("div", {
62
- className: "mt-4 h-24 w-24",
93
+ }), x === void 0 ? null : /* @__PURE__ */ r("div", {
94
+ className: o(S ? "mt-2 h-16 w-16" : "mt-4 h-24 w-24"),
63
95
  "data-testid": "contract-sale-document-public-url-qr-container",
64
- children: b ? /* @__PURE__ */ r("img", {
65
- src: b,
66
- alt: x("docs_contract_sale_qr_alt"),
96
+ children: x ? /* @__PURE__ */ r("img", {
97
+ src: x,
98
+ alt: C("docs_contract_sale_qr_alt"),
67
99
  className: "block h-full w-full",
68
100
  "data-testid": "contract-sale-document-public-url-qr"
69
101
  }) : null
70
102
  })] }), /* @__PURE__ */ i("div", {
71
- className: "md:text-right",
103
+ className: o("md:text-right", S && "text-sm leading-5"),
72
104
  children: [/* @__PURE__ */ i("div", {
73
105
  className: "mb-2",
74
106
  children: [/* @__PURE__ */ r("p", {
75
107
  className: "font-semibold text-foreground",
76
- children: j
108
+ children: L
77
109
  }), /* @__PURE__ */ r("p", {
78
110
  className: "text-muted-foreground",
79
- children: m(l.date)
111
+ children: h(u.date)
80
112
  })]
81
113
  }), /* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("p", {
82
114
  className: "font-semibold text-foreground",
83
- children: S("docs_contract_sale_due_date_label")
115
+ children: w("docs_contract_sale_due_date_label")
84
116
  }), /* @__PURE__ */ r("p", {
85
117
  className: "text-muted-foreground",
86
- children: m(l.dueDate)
118
+ children: h(u.dueDate)
87
119
  })] })]
88
120
  })]
89
121
  }), /* @__PURE__ */ i("div", {
90
- className: "grid gap-6 md:grid-cols-2 md:gap-8",
91
- children: [/* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("h2", {
92
- className: "text-xl font-semibold text-primary",
93
- children: l.issuer.name
94
- }), E ? /* @__PURE__ */ r("p", {
95
- className: "text-muted-foreground whitespace-pre-line",
96
- children: E
97
- }) : null] }), /* @__PURE__ */ i("div", {
98
- className: "md:text-right",
99
- children: [
100
- /* @__PURE__ */ r("h3", {
101
- className: "mb-2 font-semibold text-foreground",
102
- children: M
103
- }),
104
- /* @__PURE__ */ r("p", {
105
- className: "font-bold text-foreground",
106
- children: l.recipient.name
122
+ className: o("grid md:grid-cols-2", S ? "gap-3 md:gap-4" : "gap-6 md:gap-8"),
123
+ children: [
124
+ /* @__PURE__ */ i("div", { children: [
125
+ /* @__PURE__ */ r("h2", {
126
+ className: o("font-semibold text-primary", S ? "text-lg" : "text-xl"),
127
+ children: k
107
128
  }),
108
- D ? /* @__PURE__ */ r("p", {
109
- className: "text-muted-foreground whitespace-pre-line",
110
- children: D
129
+ A ? /* @__PURE__ */ r("p", {
130
+ className: "text-xs text-muted-foreground",
131
+ children: A
111
132
  }) : null,
112
- O ? /* @__PURE__ */ r("p", {
113
- className: "text-muted-foreground",
114
- children: O
133
+ j ? /* @__PURE__ */ r("p", {
134
+ className: "text-muted-foreground whitespace-pre-line",
135
+ children: j
115
136
  }) : null
116
- ]
117
- })]
137
+ ] }),
138
+ /* @__PURE__ */ i("div", {
139
+ className: o("md:text-right", S && "text-sm leading-5"),
140
+ children: [
141
+ /* @__PURE__ */ r("h3", {
142
+ className: "mb-2 font-semibold text-foreground",
143
+ children: R
144
+ }),
145
+ /* @__PURE__ */ r("p", {
146
+ className: "font-bold text-foreground",
147
+ children: u.recipient.name
148
+ }),
149
+ N ? /* @__PURE__ */ r("p", {
150
+ className: "text-muted-foreground whitespace-pre-line",
151
+ children: N
152
+ }) : null,
153
+ P ? /* @__PURE__ */ r("p", {
154
+ className: "text-muted-foreground",
155
+ children: P
156
+ }) : null
157
+ ]
158
+ }),
159
+ M.length > 0 ? /* @__PURE__ */ r("dl", {
160
+ className: "-mt-2.5 flex flex-wrap gap-x-2 gap-y-0.5 text-[11px] leading-4 text-muted-foreground md:col-span-2",
161
+ "data-testid": "contract-sale-document-issuer-legal-identity",
162
+ children: M.map((e) => /* @__PURE__ */ i("div", {
163
+ className: "inline-flex min-w-0 gap-1",
164
+ children: [/* @__PURE__ */ r("dt", {
165
+ className: "font-medium text-foreground",
166
+ children: /* @__PURE__ */ i("span", { children: [e.label, ":"] })
167
+ }), /* @__PURE__ */ r("dd", {
168
+ className: "break-words",
169
+ children: /* @__PURE__ */ r("span", { children: e.value })
170
+ })]
171
+ }, e.key))
172
+ }) : null
173
+ ]
118
174
  })]
119
175
  }),
120
- g && l.rental ? /* @__PURE__ */ r("section", {
121
- className: "mb-6 border-y border-border py-3",
176
+ _ && u.rental ? /* @__PURE__ */ r("section", {
177
+ className: o("border-y border-border", S ? "mb-3 py-2" : "mb-6 py-3"),
122
178
  "data-testid": "contract-sale-document-rental-details",
123
179
  children: /* @__PURE__ */ i("dl", {
124
- className: "grid gap-1 text-sm",
180
+ className: o("grid", S ? "gap-0.5 text-[13px] leading-[18px]" : "gap-1 text-sm"),
125
181
  children: [
126
182
  /* @__PURE__ */ i("div", {
127
183
  className: "flex items-baseline gap-1 whitespace-nowrap",
128
184
  children: [/* @__PURE__ */ r("dt", {
129
185
  className: "font-medium text-foreground",
130
- children: /* @__PURE__ */ i("span", { children: [S("docs_contract_sale_booking_number_label"), ":"] })
186
+ children: /* @__PURE__ */ i("span", { children: [w("docs_contract_sale_booking_number_label"), ":"] })
131
187
  }), /* @__PURE__ */ r("dd", {
132
188
  className: "text-muted-foreground",
133
- children: /* @__PURE__ */ r("span", { children: l.rental.bookingNumber })
189
+ children: /* @__PURE__ */ r("span", { children: u.rental.bookingNumber })
134
190
  })]
135
191
  }),
136
192
  /* @__PURE__ */ i("div", {
137
193
  className: "flex items-baseline gap-1 whitespace-nowrap",
138
194
  children: [/* @__PURE__ */ r("dt", {
139
195
  className: "font-medium text-foreground",
140
- children: /* @__PURE__ */ i("span", { children: [S("docs_contract_sale_rental_start_label"), ":"] })
196
+ children: /* @__PURE__ */ i("span", { children: [w("docs_contract_sale_rental_start_label"), ":"] })
141
197
  }), /* @__PURE__ */ r("dd", {
142
198
  className: "text-muted-foreground",
143
- children: /* @__PURE__ */ r("span", { children: c(l.rental.start, h.legal, l.rental.timeZone) })
199
+ children: /* @__PURE__ */ r("span", { children: l(u.rental.start, g.legal, u.rental.timeZone) })
144
200
  })]
145
201
  }),
146
202
  /* @__PURE__ */ i("div", {
147
203
  className: "flex items-baseline gap-1 whitespace-nowrap",
148
204
  children: [/* @__PURE__ */ r("dt", {
149
205
  className: "font-medium text-foreground",
150
- children: /* @__PURE__ */ i("span", { children: [S("docs_contract_sale_rental_end_label"), ":"] })
206
+ children: /* @__PURE__ */ i("span", { children: [w("docs_contract_sale_rental_end_label"), ":"] })
151
207
  }), /* @__PURE__ */ r("dd", {
152
208
  className: "text-muted-foreground",
153
- children: /* @__PURE__ */ r("span", { children: c(l.rental.end, h.legal, l.rental.timeZone) })
209
+ children: /* @__PURE__ */ r("span", { children: l(u.rental.end, g.legal, u.rental.timeZone) })
154
210
  })]
155
211
  })
156
212
  ]
157
213
  })
158
214
  }) : null,
159
215
  /* @__PURE__ */ i("section", {
160
- className: T ? "mb-0 flex flex-grow flex-col" : "mb-8",
216
+ className: o(D ? "mb-0 flex flex-grow flex-col" : S ? "mb-4" : "mb-8"),
161
217
  children: [/* @__PURE__ */ i("div", {
162
- className: "flex bg-muted p-2 text-xs font-semibold text-muted-foreground md:p-3 md:text-base",
218
+ className: o("flex bg-muted font-semibold text-muted-foreground", S ? "p-2 text-sm leading-5" : "p-2 text-xs md:p-3 md:text-base"),
163
219
  children: [
164
220
  /* @__PURE__ */ r("div", {
165
221
  className: "w-5/12 pr-2 md:w-1/2",
166
- children: /* @__PURE__ */ r("span", { children: C("docs_contract_sale_description_label") })
222
+ children: /* @__PURE__ */ r("span", { children: T("docs_contract_sale_description_label") })
167
223
  }),
168
224
  /* @__PURE__ */ r("div", {
169
225
  className: "w-1/6 text-center",
170
- children: /* @__PURE__ */ r("span", { children: C("docs_contract_sale_quantity_label") })
226
+ children: /* @__PURE__ */ r("span", { children: T("docs_contract_sale_quantity_label") })
171
227
  }),
172
228
  /* @__PURE__ */ r("div", {
173
229
  className: "w-3/12 text-right md:w-1/6",
174
- children: /* @__PURE__ */ r("span", { children: C("docs_contract_sale_unit_price_label") })
230
+ children: /* @__PURE__ */ r("span", { children: T("docs_contract_sale_unit_price_label") })
175
231
  }),
176
232
  /* @__PURE__ */ r("div", {
177
233
  className: "w-1/6 text-right",
178
- children: /* @__PURE__ */ r("span", { children: C("docs_contract_sale_line_total_label") })
234
+ children: /* @__PURE__ */ r("span", { children: T("docs_contract_sale_line_total_label") })
179
235
  })
180
236
  ]
181
237
  }), /* @__PURE__ */ r("div", {
182
- className: T ? "flex flex-1 flex-col" : "flex flex-col",
183
- children: u.map((e) => {
184
- let t = 1 + (e.taxRate ?? l.taxRate ?? 0);
238
+ className: D ? "flex flex-1 flex-col" : "flex flex-col",
239
+ children: d.map((e) => {
240
+ let t = 1 + (e.taxRate ?? u.taxRate ?? 0);
185
241
  return /* @__PURE__ */ i("div", {
186
- className: "flex items-center border-b border-border p-2 text-sm md:p-3 md:text-base",
242
+ className: o("flex items-center border-b border-border", S ? "p-2 text-sm leading-5" : "p-2 text-sm md:p-3 md:text-base"),
187
243
  children: [
188
244
  /* @__PURE__ */ r("div", {
189
245
  className: "w-5/12 pr-2 md:w-1/2",
@@ -201,19 +257,19 @@ function l({ saleDocument: l, items: u, subtotal: d, tax: f, total: p, formatDat
201
257
  }),
202
258
  /* @__PURE__ */ r("div", {
203
259
  className: "w-3/12 text-right md:w-1/6",
204
- children: /* @__PURE__ */ r("span", { children: s(e.unitPrice / t * N, l.currency, h.customer) })
260
+ children: /* @__PURE__ */ r("span", { children: c(e.unitPrice / t * z, u.currency, g.customer) })
205
261
  }),
206
262
  /* @__PURE__ */ r("div", {
207
263
  className: "w-1/6 text-right",
208
- children: /* @__PURE__ */ r("span", { children: s(e.quantity * e.unitPrice / t * N, l.currency, h.customer) })
264
+ children: /* @__PURE__ */ r("span", { children: c(e.quantity * e.unitPrice / t * z, u.currency, g.customer) })
209
265
  })
210
266
  ]
211
267
  }, e.id);
212
268
  })
213
269
  })]
214
270
  }),
215
- _ && /* @__PURE__ */ r("section", {
216
- className: "mb-16 flex justify-end",
271
+ v && /* @__PURE__ */ r("section", {
272
+ className: o("flex justify-end", S ? "mb-6 text-sm leading-5" : "mb-16"),
217
273
  children: /* @__PURE__ */ i("div", {
218
274
  className: "w-full md:w-1/3",
219
275
  children: [
@@ -221,55 +277,56 @@ function l({ saleDocument: l, items: u, subtotal: d, tax: f, total: p, formatDat
221
277
  className: "mb-2 flex items-start justify-between gap-4",
222
278
  children: [/* @__PURE__ */ r("span", {
223
279
  className: "text-muted-foreground",
224
- children: w("docs_contract_sale_subtotal_label")
280
+ children: E("docs_contract_sale_subtotal_label")
225
281
  }), /* @__PURE__ */ r("span", {
226
282
  className: "shrink-0 text-right font-semibold",
227
- children: s(d, l.currency, h.customer)
283
+ children: c(f, u.currency, g.customer)
228
284
  })]
229
285
  }),
230
- f !== 0 && /* @__PURE__ */ i("div", {
286
+ p !== 0 && /* @__PURE__ */ i("div", {
231
287
  className: "mb-2 flex items-start justify-between gap-4",
232
288
  children: [/* @__PURE__ */ r("span", {
233
289
  className: "text-muted-foreground",
234
- children: w("docs_contract_sale_tax_label", { rate: ((l.taxRate ?? 0) * 100).toFixed(0) })
290
+ children: E("docs_contract_sale_tax_label", { rate: ((u.taxRate ?? 0) * 100).toFixed(0) })
235
291
  }), /* @__PURE__ */ r("span", {
236
292
  className: "shrink-0 text-right font-semibold",
237
- children: s(f, l.currency, h.customer)
293
+ children: c(p, u.currency, g.customer)
238
294
  })]
239
295
  }),
240
296
  /* @__PURE__ */ i("div", {
241
297
  className: "mt-2 flex items-start justify-between gap-4 border-t border-border pt-2",
242
298
  children: [/* @__PURE__ */ r("span", {
243
- className: "text-xl font-bold",
244
- children: w("docs_contract_sale_total_label")
299
+ className: o("font-bold", S ? "text-lg" : "text-xl"),
300
+ children: E("docs_contract_sale_total_label")
245
301
  }), /* @__PURE__ */ r("span", {
246
- className: "shrink-0 text-right text-xl font-bold",
247
- children: s(p, l.currency, h.customer)
302
+ className: o("shrink-0 text-right font-bold", S ? "text-lg" : "text-xl"),
303
+ children: c(m, u.currency, g.customer)
248
304
  })]
249
305
  })
250
306
  ]
251
307
  })
252
308
  }),
253
- v && l.notes && /* @__PURE__ */ i("section", {
254
- className: "mb-16",
309
+ y && u.notes && /* @__PURE__ */ i("section", {
310
+ className: o(S ? "mb-6" : "mb-16"),
255
311
  children: [/* @__PURE__ */ r("h3", {
256
- className: "mb-4 border-b border-border pb-2 font-semibold text-foreground",
257
- children: S("docs_contract_sale_notes_title")
312
+ className: o("border-b border-border font-semibold text-foreground", S ? "mb-2 pb-1" : "mb-4 pb-2"),
313
+ children: w("docs_contract_sale_notes_title")
258
314
  }), /* @__PURE__ */ r("div", {
259
315
  className: "text-sm text-muted-foreground",
260
316
  children: /* @__PURE__ */ r("p", {
261
317
  className: "whitespace-pre-wrap break-words",
262
- children: l.notes
318
+ children: u.notes
263
319
  })
264
320
  })]
265
321
  }),
266
- y ? /* @__PURE__ */ r(n, {
267
- saleDocument: l,
268
- documentLanguage: h,
269
- formatDate: m
322
+ b ? /* @__PURE__ */ r(n, {
323
+ saleDocument: u,
324
+ documentLanguage: g,
325
+ formatDate: h,
326
+ compact: S
270
327
  }) : null
271
328
  ]
272
329
  });
273
330
  }
274
331
  //#endregion
275
- export { l as InvoiceDetails };
332
+ export { u as InvoiceDetails };
@@ -5,7 +5,8 @@ type PageFooterProps = {
5
5
  currentPage: number;
6
6
  totalPages: number;
7
7
  documentLanguage: ContractSaleDocumentLanguage;
8
+ compact?: boolean;
8
9
  };
9
- export declare function PageFooter({ documentTitle, saleDocumentNumber, currentPage, totalPages, documentLanguage, }: PageFooterProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function PageFooter({ documentTitle, saleDocumentNumber, currentPage, totalPages, documentLanguage, compact, }: PageFooterProps): import("react/jsx-runtime").JSX.Element;
10
11
  export {};
11
12
  //# sourceMappingURL=PageFooter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageFooter.d.ts","sourceRoot":"","sources":["../../../src/components/ContractSaleDocument/PageFooter.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAIlF,KAAK,eAAe,GAAG;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,gBAAgB,EAAE,4BAA4B,CAAA;CAC/C,CAAA;AAED,wBAAgB,UAAU,CAAC,EACzB,aAAa,EACb,kBAAkB,EAClB,WAAW,EACX,UAAU,EACV,gBAAgB,GACjB,EAAE,eAAe,2CAiBjB"}
1
+ {"version":3,"file":"PageFooter.d.ts","sourceRoot":"","sources":["../../../src/components/ContractSaleDocument/PageFooter.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAIlF,KAAK,eAAe,GAAG;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,gBAAgB,EAAE,4BAA4B,CAAA;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,wBAAgB,UAAU,CAAC,EACzB,aAAa,EACb,kBAAkB,EAClB,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,OAAe,GAChB,EAAE,eAAe,2CAsBjB"}
@@ -1,20 +1,21 @@
1
1
  import { formatContractSaleDocumentLegalLabel as e } from "./language.js";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
3
  import { useTranslation as r } from "react-i18next";
4
+ import { cn as i } from "@rpcbase/ui";
4
5
  //#region src/components/ContractSaleDocument/PageFooter.tsx
5
- function i({ documentTitle: i, saleDocumentNumber: a, currentPage: o, totalPages: s, documentLanguage: c }) {
6
- let { t: l } = r(), u = e(l, c, "docs_contract_sale_page_counter", {
7
- current_page: o,
8
- total_pages: s
6
+ function a({ documentTitle: a, saleDocumentNumber: o, currentPage: s, totalPages: c, documentLanguage: l, compact: u = !1 }) {
7
+ let { t: d } = r(), f = e(d, l, "docs_contract_sale_page_counter", {
8
+ current_page: s,
9
+ total_pages: c
9
10
  });
10
11
  return /* @__PURE__ */ n("footer", {
11
- className: "mt-12 hidden items-center justify-between border-t border-border px-4 pb-4 pt-4 text-sm text-muted-foreground md:flex md:px-8",
12
+ className: i("hidden items-center justify-between border-t border-border px-4 text-sm text-muted-foreground md:flex md:px-8", u ? "mt-3 py-2" : "mt-12 pb-4 pt-4"),
12
13
  children: [/* @__PURE__ */ n("span", { children: [
13
- i,
14
+ a,
14
15
  " #",
15
- a
16
- ] }), s > 1 && /* @__PURE__ */ t("span", { children: u })]
16
+ o
17
+ ] }), c > 1 && /* @__PURE__ */ t("span", { children: f })]
17
18
  });
18
19
  }
19
20
  //#endregion
20
- export { i as PageFooter };
21
+ export { a as PageFooter };
@@ -5,7 +5,8 @@ type PageHeaderProps = {
5
5
  currentPage: number;
6
6
  totalPages: number;
7
7
  documentLanguage: ContractSaleDocumentLanguage;
8
+ compact?: boolean;
8
9
  };
9
- export declare function PageHeader({ documentTitle, saleDocumentNumber, currentPage, totalPages, documentLanguage, }: PageHeaderProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function PageHeader({ documentTitle, saleDocumentNumber, currentPage, totalPages, documentLanguage, compact, }: PageHeaderProps): import("react/jsx-runtime").JSX.Element;
10
11
  export {};
11
12
  //# sourceMappingURL=PageHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/ContractSaleDocument/PageHeader.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAIlF,KAAK,eAAe,GAAG;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,gBAAgB,EAAE,4BAA4B,CAAA;CAC/C,CAAA;AAED,wBAAgB,UAAU,CAAC,EACzB,aAAa,EACb,kBAAkB,EAClB,WAAW,EACX,UAAU,EACV,gBAAgB,GACjB,EAAE,eAAe,2CAiBjB"}
1
+ {"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/ContractSaleDocument/PageHeader.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAIlF,KAAK,eAAe,GAAG;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,gBAAgB,EAAE,4BAA4B,CAAA;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,wBAAgB,UAAU,CAAC,EACzB,aAAa,EACb,kBAAkB,EAClB,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,OAAe,GAChB,EAAE,eAAe,2CAsBjB"}
@@ -1,20 +1,21 @@
1
1
  import { formatContractSaleDocumentLegalLabel as e } from "./language.js";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
3
  import { useTranslation as r } from "react-i18next";
4
+ import { cn as i } from "@rpcbase/ui";
4
5
  //#region src/components/ContractSaleDocument/PageHeader.tsx
5
- function i({ documentTitle: i, saleDocumentNumber: a, currentPage: o, totalPages: s, documentLanguage: c }) {
6
- let { t: l } = r(), u = e(l, c, "docs_contract_sale_page_counter", {
7
- current_page: o,
8
- total_pages: s
6
+ function a({ documentTitle: a, saleDocumentNumber: o, currentPage: s, totalPages: c, documentLanguage: l, compact: u = !1 }) {
7
+ let { t: d } = r(), f = e(d, l, "docs_contract_sale_page_counter", {
8
+ current_page: s,
9
+ total_pages: c
9
10
  });
10
11
  return /* @__PURE__ */ n("div", {
11
- className: "sticky top-0 z-10 mb-8 flex items-center justify-between border-b border-border bg-card/95 px-4 pb-4 pt-4 text-sm text-muted-foreground backdrop-blur md:px-8",
12
+ className: i("sticky top-0 z-10 flex items-center justify-between border-b border-border bg-card/95 px-4 text-sm text-muted-foreground backdrop-blur md:px-8", u ? "mb-4 py-3" : "mb-8 pb-4 pt-4"),
12
13
  children: [/* @__PURE__ */ n("span", { children: [
13
- i,
14
+ a,
14
15
  " #",
15
- a
16
- ] }), s > 1 && /* @__PURE__ */ t("span", { children: u })]
16
+ o
17
+ ] }), c > 1 && /* @__PURE__ */ t("span", { children: f })]
17
18
  });
18
19
  }
19
20
  //#endregion
20
- export { i as PageHeader };
21
+ export { a as PageHeader };
@@ -1 +1 @@
1
- {"version":3,"file":"businessHoursStatus.d.ts","sourceRoot":"","sources":["../../../src/components/Footer/businessHoursStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EAC1B,MAAM,0BAA0B,CAAA;AAKjC,KAAK,0BAA0B,GAAG;IAChC,YAAY,EAAE,iBAAiB,CAAA;IAC/B,qBAAqB,EAAE,oBAAoB,EAAE,CAAA;IAC7C,QAAQ,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,IAAI,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAC3B;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IACA,IAAI,EAAE,QAAQ,CAAA;IACd,WAAW,EAAE;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,aAAa,EAAE,MAAM,CAAA;QACrB,IAAI,EAAE,MAAM,CAAA;KACb,GAAG,IAAI,CAAA;CACT,GACC;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAA;AAyFvB,eAAO,MAAM,sBAAsB,GAAI,mEAKpC,0BAA0B,KAAG,mBAkD/B,CAAA;AAED,eAAO,MAAM,uBAAuB,GAAI,MAAM,MAAM,EAAE,UAAU,MAAM,KAAG,MAexE,CAAA;AAED,eAAO,MAAM,0BAA0B,GAAI,YAAY,MAAM,EAAE,UAAU,MAAM,KAAG,MAejF,CAAA;AAED,eAAO,MAAM,uBAAuB,GAAI,YAAY,MAAM,EAAE,UAAU,MAAM,KAAG,MAiB9E,CAAA"}
1
+ {"version":3,"file":"businessHoursStatus.d.ts","sourceRoot":"","sources":["../../../src/components/Footer/businessHoursStatus.ts"],"names":[],"mappings":"AAEA,OAAO,EAML,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EAC1B,MAAM,0BAA0B,CAAA;AAKjC,KAAK,0BAA0B,GAAG;IAChC,YAAY,EAAE,iBAAiB,CAAA;IAC/B,qBAAqB,EAAE,oBAAoB,EAAE,CAAA;IAC7C,QAAQ,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,IAAI,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAC3B;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IACA,IAAI,EAAE,QAAQ,CAAA;IACd,WAAW,EAAE;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,aAAa,EAAE,MAAM,CAAA;QACrB,IAAI,EAAE,MAAM,CAAA;KACb,GAAG,IAAI,CAAA;CACT,GACC;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAA;AAwDvB,eAAO,MAAM,sBAAsB,GAAI,mEAKpC,0BAA0B,KAAG,mBAgD/B,CAAA;AAED,eAAO,MAAM,uBAAuB,GAAI,MAAM,MAAM,EAAE,UAAU,MAAM,KAAG,MAexE,CAAA;AAED,eAAO,MAAM,0BAA0B,GAAI,YAAY,MAAM,EAAE,UAAU,MAAM,KAAG,MAejF,CAAA;AAED,eAAO,MAAM,uBAAuB,GAAI,YAAY,MAAM,EAAE,UAAU,MAAM,KAAG,MAiB9E,CAAA"}
@@ -1,8 +1,10 @@
1
- import { businessDateStringToDate as e, calendarDateToBusinessDateString as t, getWeekdayFromDateString as n, instantToBusinessDateTimeParts as r, normalizeBusinessDateString as i, parseTimeToMinutes as a } from "../../lib/booking-period.js";
1
+ import { resolveOpeningHoursForDate as e } from "../../chunks/pkg/booking-engine/dist/utils/opening-hours-period-TCyLhzZw.js";
2
+ import "../../chunks/pkg/booking-engine/dist/schemas-DW5gdDYz.js";
3
+ import { businessDateStringToDate as t, calendarDateToBusinessDateString as n, instantToBusinessDateTimeParts as r, normalizeBusinessDateString as i, parseTimeToMinutes as a } from "../../lib/booking-period.js";
2
4
  //#region src/components/Footer/businessHoursStatus.ts
3
- var o = 370, s = (n, r) => {
4
- let i = e(n);
5
- if (!Number.isNaN(i.getTime())) return i.setDate(i.getDate() + r), t(i);
5
+ var o = 370, s = (e, r) => {
6
+ let i = t(e);
7
+ if (!Number.isNaN(i.getTime())) return i.setDate(i.getDate() + r), n(i);
6
8
  }, c = (e) => Array.isArray(e) ? e.map((e) => {
7
9
  let t = a(e.start), n = a(e.end);
8
10
  return t == null || n == null || t >= 1440 || n > 1440 || n <= t ? null : {
@@ -10,23 +12,7 @@ var o = 370, s = (n, r) => {
10
12
  endMinutes: n,
11
13
  startTime: e.start
12
14
  };
13
- }).filter((e) => e != null).sort((e, t) => e.startMinutes - t.startMinutes) : [], l = (e) => {
14
- let t = /* @__PURE__ */ new Map();
15
- return e.forEach((e) => {
16
- let n = i(e.date);
17
- n && t.set(n, e);
18
- }), t;
19
- }, u = (e, t, r) => {
20
- let a = r.get(e);
21
- if (a) return c(a.openingSlots);
22
- let o = t.find((t) => {
23
- let n = i(t.startDate), r = i(t.endDate);
24
- return !n || !r ? !1 : e >= (n < r ? n : r) && e <= (n < r ? r : n);
25
- });
26
- if (!o) return [];
27
- let s = n(e);
28
- return c(o.openingHours.find((e) => e.day === s)?.openingSlots);
29
- }, d = ({ openingHours: e, openingHoursOverrides: t, timeZone: n, referenceDate: i = /* @__PURE__ */ new Date() }) => {
15
+ }).filter((e) => e != null).sort((e, t) => e.startMinutes - t.startMinutes) : [], l = (t, n, r) => c(e(n, r, t).openingSlots), u = ({ openingHours: e, openingHoursOverrides: t, timeZone: n, referenceDate: i = /* @__PURE__ */ new Date() }) => {
30
16
  if (e.length === 0 && t.length === 0) return { kind: "unknown" };
31
17
  let a;
32
18
  try {
@@ -35,19 +21,18 @@ var o = 370, s = (n, r) => {
35
21
  return { kind: "unknown" };
36
22
  }
37
23
  if (!a) return { kind: "unknown" };
38
- let c = l(t);
39
- for (let t = 0; t <= o; t += 1) {
40
- let n = s(a.dateString, t);
41
- if (!n) return { kind: "unknown" };
42
- let r = u(n, e, c);
43
- if (t === 0 && r.some((e) => a.minutesFromMidnight >= e.startMinutes && a.minutesFromMidnight < e.endMinutes)) return { kind: "open" };
44
- let i = r.find((e) => t > 0 || e.startMinutes > a.minutesFromMidnight);
45
- if (i) return {
24
+ for (let n = 0; n <= o; n += 1) {
25
+ let r = s(a.dateString, n);
26
+ if (!r) return { kind: "unknown" };
27
+ let i = l(r, e, t);
28
+ if (n === 0 && i.some((e) => a.minutesFromMidnight >= e.startMinutes && a.minutesFromMidnight < e.endMinutes)) return { kind: "open" };
29
+ let o = i.find((e) => n > 0 || e.startMinutes > a.minutesFromMidnight);
30
+ if (o) return {
46
31
  kind: "closed",
47
32
  nextOpening: {
48
- date: n,
49
- daysFromToday: t,
50
- time: i.startTime
33
+ date: r,
34
+ daysFromToday: n,
35
+ time: o.startTime
51
36
  }
52
37
  };
53
38
  }
@@ -55,7 +40,7 @@ var o = 370, s = (n, r) => {
55
40
  kind: "closed",
56
41
  nextOpening: null
57
42
  };
58
- }, f = (e, t) => {
43
+ }, d = (e, t) => {
59
44
  let n = a(e);
60
45
  if (n == null || n >= 1440) return e;
61
46
  let r = new Date(Date.UTC(2024, 0, 1, Math.floor(n / 60), n % 60));
@@ -68,7 +53,7 @@ var o = 370, s = (n, r) => {
68
53
  } catch {
69
54
  return e;
70
55
  }
71
- }, p = (e, t) => {
56
+ }, f = (e, t) => {
72
57
  let n = i(e);
73
58
  if (!n) return e;
74
59
  let [r, a, o] = n.split("-").map(Number), s = new Date(Date.UTC(r, a - 1, o));
@@ -80,7 +65,7 @@ var o = 370, s = (n, r) => {
80
65
  } catch {
81
66
  return e;
82
67
  }
83
- }, m = (e, t) => {
68
+ }, p = (e, t) => {
84
69
  let n = i(e);
85
70
  if (!n) return e;
86
71
  let [r, a, o] = n.split("-").map(Number), s = new Date(Date.UTC(r, a - 1, o));
@@ -96,4 +81,4 @@ var o = 370, s = (n, r) => {
96
81
  }
97
82
  };
98
83
  //#endregion
99
- export { m as formatBusinessHoursDate, f as formatBusinessHoursTime, p as formatBusinessHoursWeekday, d as getBusinessHoursStatus };
84
+ export { p as formatBusinessHoursDate, d as formatBusinessHoursTime, f as formatBusinessHoursWeekday, u as getBusinessHoursStatus };
@@ -1 +1 @@
1
- {"version":3,"file":"businessHoursUtils.d.ts","sourceRoot":"","sources":["../../../src/components/Footer/businessHoursUtils.ts"],"names":[],"mappings":"AAEA,OAAO,EAQL,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,OAAO,EACb,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AAGtE,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,OAAO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