@loczer/storefront-sdk 0.226.0 → 0.228.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 (37) 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.map +1 -1
  4. package/dist/components/ContractSaleDocument/DocumentAcceptanceSection.js +21 -4
  5. package/dist/components/ContractSaleDocument/InvoiceDetails.d.ts.map +1 -1
  6. package/dist/components/ContractSaleDocument/InvoiceDetails.js +83 -28
  7. package/dist/components/ContractSaleDocument/SignatureModal.d.ts.map +1 -1
  8. package/dist/components/ContractSaleDocument/SignatureModal.js +59 -101
  9. package/dist/components/Footer/businessHoursStatus.d.ts.map +1 -1
  10. package/dist/components/Footer/businessHoursStatus.js +21 -36
  11. package/dist/components/Footer/businessHoursUtils.d.ts.map +1 -1
  12. package/dist/components/Footer/businessHoursUtils.js +2 -1
  13. package/dist/components/SignatureInput/index.js +74 -0
  14. package/dist/components/SignatureInput.d.ts +12 -0
  15. package/dist/components/SignatureInput.d.ts.map +1 -0
  16. package/dist/i18n/en.d.ts +7 -0
  17. package/dist/i18n/en.d.ts.map +1 -1
  18. package/dist/i18n/en.js +7 -0
  19. package/dist/i18n/fr.d.ts +7 -0
  20. package/dist/i18n/fr.d.ts.map +1 -1
  21. package/dist/i18n/fr.js +7 -0
  22. package/dist/index.d.ts +163 -0
  23. package/dist/index.js +76 -74
  24. package/dist/lib/booking-period.d.ts.map +1 -1
  25. package/dist/lib/booking-period.js +120 -138
  26. package/dist/lib/booking.js +1 -1
  27. package/dist/lib/checkoutSubmit.js +1 -1
  28. package/dist/lib/contractSaleDocument.d.ts +42 -0
  29. package/dist/lib/contractSaleDocument.d.ts.map +1 -1
  30. package/dist/lib/contractSaleDocument.js +41 -30
  31. package/dist/lib/contractSaleDocumentApi.d.ts +63 -0
  32. package/dist/lib/contractSaleDocumentApi.d.ts.map +1 -1
  33. package/dist/pages/ContractSaleDocumentPage.d.ts +21 -0
  34. package/dist/pages/ContractSaleDocumentPage.d.ts.map +1 -1
  35. package/dist/storefront.css +1 -1
  36. package/dist/storefrontSchemas.js +1 -1
  37. package/package.json +1 -1
@@ -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,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,OAAO,EAAE,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,EAAE,wBAAwB,EAAE,CAAA;CAClC,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AA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M,uBAAuB,GAClC,OAAO,qBAAqB,EAAE,EAC9B,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,KACjE,wBAAwB,EA4C1B,CAAA;AAiED,KAAK,sCAAsC,GAAG;IAC5C,YAAY,EAAE,iBAAiB,CAAA;IAC/B,qBAAqB,EAAE,oBAAoB,EAAE,CAAA;IAC7C,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,kBAAkB,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;IACpE,iBAAiB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,MAAM,CAAA;IACjE,QAAQ,EAAE,MAAM,CAAA;IAChB,oCAAoC,CAAC,EAAE,OAAO,CAAA;IAC9C,aAAa,CAAC,EAAE,IAAI,CAAA;CACrB,CAAA;AAWD,eAAO,MAAM,+BAA+B,GAAI,uKAU7C,sCAAsC,KAAG;IAC1C,OAAO,EAAE,yBAAyB,EAAE,CAAA;IACpC,UAAU,EAAE,4BAA4B,EAAE,CAAA;IAC1C,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;CAwH/B,CAAA"}
@@ -96,7 +96,7 @@ var c = 3, l = 6, u = (e) => (Math.trunc(e) % 7 + 7) % 7, d = (e) => Array.isArr
96
96
  };
97
97
  }), s = p(_(t.startDate, o), _(t.endDate, o)), c = e(t.startDate), l = e(t.endDate);
98
98
  c.setHours(0, 0, 0, 0), l.setHours(0, 0, 0, 0);
99
- let m = !Number.isNaN(c.getTime()) && !Number.isNaN(l.getTime()) && c.getTime() <= E.getTime() && l.getTime() >= E.getTime();
99
+ let m = r || !Number.isNaN(c.getTime()) && !Number.isNaN(l.getTime()) && c.getTime() <= E.getTime() && l.getTime() >= E.getTime();
100
100
  return {
101
101
  id: String(n),
102
102
  label: t.name || s,
@@ -107,6 +107,7 @@ var c = 3, l = 6, u = (e) => (Math.trunc(e) % 7 + 7) % 7, d = (e) => Array.isArr
107
107
  items: h(a, f)
108
108
  };
109
109
  }).filter((t) => {
110
+ if (t.isCurrent) return !0;
110
111
  let n = e(t.endDate);
111
112
  return Number.isNaN(n.getTime()) ? !0 : (n.setHours(0, 0, 0, 0), n.getTime() >= E.getTime());
112
113
  }).sort((e, t) => e.startDate.localeCompare(t.startDate)), O = D.length > 0 ? D.find((e) => e.startDate === w?.startDate && e.endDate === w?.endDate)?.id ?? D[0].id : null, k = b(S, m), A = k ? t(s(e(k), l)) : void 0, j = /* @__PURE__ */ new Map();
@@ -0,0 +1,74 @@
1
+ import { Button as e } from "../../ui/button.js";
2
+ import { useEffect as t, useRef as n, useState as r } from "react";
3
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
4
+ import { cn as o } from "@rpcbase/ui";
5
+ import s from "react-signature-canvas";
6
+ //#region src/components/SignatureInput.tsx
7
+ var c = 30, l = 20, u = 220;
8
+ function d({ value: d, onChange: f, clearLabel: p, ariaLabel: m, id: h, disabled: g = !1, className: _, testId: v }) {
9
+ let y = n(null), b = n(void 0), [x, S] = r(!!d);
10
+ return t(() => {
11
+ let e = y.current;
12
+ !e || b.current === d || (b.current = d, e.clear(), d && e.fromDataURL(d), S(!!d));
13
+ }, [d]), t(() => {
14
+ let e = y.current?.getCanvas();
15
+ if (!e || typeof PointerEvent > "u") return;
16
+ let t = (t) => {
17
+ t.isPrimary && e.setPointerCapture(t.pointerId);
18
+ }, n = (t) => {
19
+ e.hasPointerCapture(t.pointerId) && e.releasePointerCapture(t.pointerId);
20
+ };
21
+ return e.addEventListener("pointerdown", t), e.addEventListener("pointerup", n), e.addEventListener("pointercancel", n), () => {
22
+ e.removeEventListener("pointerdown", t), e.removeEventListener("pointerup", n), e.removeEventListener("pointercancel", n);
23
+ };
24
+ }, []), /* @__PURE__ */ a("div", {
25
+ className: o("grid gap-1", _),
26
+ "data-testid": v,
27
+ children: [/* @__PURE__ */ i("div", {
28
+ className: "rounded-md border border-input bg-white p-2",
29
+ children: /* @__PURE__ */ a("div", {
30
+ className: "relative rounded-sm",
31
+ style: { height: u },
32
+ children: [/* @__PURE__ */ i(s, {
33
+ ref: y,
34
+ penColor: "black",
35
+ canvasProps: {
36
+ id: h,
37
+ "aria-label": m,
38
+ "aria-disabled": g,
39
+ className: o("absolute inset-0 h-full w-full touch-none", g && "pointer-events-none")
40
+ },
41
+ onEnd: () => {
42
+ let e = y.current;
43
+ if (!e || e.isEmpty()) {
44
+ b.current = null, S(!1), f(null);
45
+ return;
46
+ }
47
+ let t = e.toDataURL();
48
+ b.current = t, S(!0), f(t);
49
+ }
50
+ }), /* @__PURE__ */ i("div", {
51
+ className: "pointer-events-none absolute rounded-sm border border-dashed border-primary/35",
52
+ style: {
53
+ top: c,
54
+ bottom: c,
55
+ left: l,
56
+ right: l
57
+ }
58
+ })]
59
+ })
60
+ }), /* @__PURE__ */ i(e, {
61
+ type: "button",
62
+ onClick: () => {
63
+ y.current?.clear(), b.current = null, S(!1), f(null);
64
+ },
65
+ variant: "link",
66
+ size: "sm",
67
+ className: "h-auto justify-self-start p-0",
68
+ disabled: g || !x,
69
+ children: /* @__PURE__ */ i("span", { children: p })
70
+ })]
71
+ });
72
+ }
73
+ //#endregion
74
+ export { d as SignatureInput };
@@ -0,0 +1,12 @@
1
+ export type SignatureInputProps = {
2
+ value: string | null;
3
+ onChange: (value: string | null) => void;
4
+ clearLabel: string;
5
+ ariaLabel: string;
6
+ id?: string;
7
+ disabled?: boolean;
8
+ className?: string;
9
+ testId?: string;
10
+ };
11
+ export declare function SignatureInput({ value, onChange, clearLabel, ariaLabel, id, disabled, className, testId, }: SignatureInputProps): import("react/jsx-runtime").JSX.Element;
12
+ //# sourceMappingURL=SignatureInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SignatureInput.d.ts","sourceRoot":"","sources":["../../src/components/SignatureInput.tsx"],"names":[],"mappings":"AAYA,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACxC,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,QAAQ,EACR,UAAU,EACV,SAAS,EACT,EAAE,EACF,QAAgB,EAChB,SAAS,EACT,MAAM,GACP,EAAE,mBAAmB,2CA+GrB"}
package/dist/i18n/en.d.ts CHANGED
@@ -303,6 +303,12 @@ export declare const storefront: {
303
303
  docs_contract_sale_due_date_label: string;
304
304
  docs_contract_sale_invoice_recipient_label: string;
305
305
  docs_contract_sale_credit_note_recipient_label: string;
306
+ docs_contract_sale_legal_form_label: string;
307
+ docs_contract_sale_legal_share_capital_label: string;
308
+ docs_contract_sale_legal_company_registration_label: string;
309
+ docs_contract_sale_legal_establishment_registration_label: string;
310
+ docs_contract_sale_legal_vat_number_label: string;
311
+ docs_contract_sale_legal_trade_register_label: string;
306
312
  docs_contract_sale_rental_details_title: string;
307
313
  docs_contract_sale_booking_number_label: string;
308
314
  docs_contract_sale_rental_start_label: string;
@@ -342,6 +348,7 @@ export declare const storefront: {
342
348
  docs_contract_sale_signature_validation_identity: string;
343
349
  docs_contract_sale_signature_acknowledgement: string;
344
350
  docs_contract_sale_signature_issuer_label: string;
351
+ docs_contract_sale_signature_issuer_representative_label: string;
345
352
  docs_contract_sale_signature_customer_label: string;
346
353
  docs_contract_sale_signature_date_label: string;
347
354
  docs_contract_sale_signature_image_alt: string;
@@ -1 +1 @@
1
- {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/i18n/en.ts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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+gBtB,CAAA"}
package/dist/i18n/en.js CHANGED
@@ -304,6 +304,12 @@ var e = {
304
304
  docs_contract_sale_due_date_label: "Due Date:",
305
305
  docs_contract_sale_invoice_recipient_label: "Bill To:",
306
306
  docs_contract_sale_credit_note_recipient_label: "Issued To:",
307
+ docs_contract_sale_legal_form_label: "Legal form",
308
+ docs_contract_sale_legal_share_capital_label: "Share capital",
309
+ docs_contract_sale_legal_company_registration_label: "Company registration no.",
310
+ docs_contract_sale_legal_establishment_registration_label: "Establishment registration no.",
311
+ docs_contract_sale_legal_vat_number_label: "VAT no.",
312
+ docs_contract_sale_legal_trade_register_label: "Trade register",
307
313
  docs_contract_sale_rental_details_title: "Rental details",
308
314
  docs_contract_sale_booking_number_label: "Booking",
309
315
  docs_contract_sale_rental_start_label: "Start",
@@ -343,6 +349,7 @@ var e = {
343
349
  docs_contract_sale_signature_validation_identity: "Please fill in your name and phone number.",
344
350
  docs_contract_sale_signature_acknowledgement: "By signing this document, I accept the terms and conditions below.",
345
351
  docs_contract_sale_signature_issuer_label: "Seller signature",
352
+ docs_contract_sale_signature_issuer_representative_label: "Legal representative",
346
353
  docs_contract_sale_signature_customer_label: "Customer signature",
347
354
  docs_contract_sale_signature_date_label: "Date",
348
355
  docs_contract_sale_signature_image_alt: "Signature",
package/dist/i18n/fr.d.ts CHANGED
@@ -304,6 +304,12 @@ export declare const storefront: {
304
304
  docs_contract_sale_due_date_label: string;
305
305
  docs_contract_sale_invoice_recipient_label: string;
306
306
  docs_contract_sale_credit_note_recipient_label: string;
307
+ docs_contract_sale_legal_form_label: string;
308
+ docs_contract_sale_legal_share_capital_label: string;
309
+ docs_contract_sale_legal_company_registration_label: string;
310
+ docs_contract_sale_legal_establishment_registration_label: string;
311
+ docs_contract_sale_legal_vat_number_label: string;
312
+ docs_contract_sale_legal_trade_register_label: string;
307
313
  docs_contract_sale_rental_details_title: string;
308
314
  docs_contract_sale_booking_number_label: string;
309
315
  docs_contract_sale_rental_start_label: string;
@@ -343,6 +349,7 @@ export declare const storefront: {
343
349
  docs_contract_sale_signature_validation_identity: string;
344
350
  docs_contract_sale_signature_acknowledgement: string;
345
351
  docs_contract_sale_signature_issuer_label: string;
352
+ docs_contract_sale_signature_issuer_representative_label: string;
346
353
  docs_contract_sale_signature_customer_label: string;
347
354
  docs_contract_sale_signature_date_label: string;
348
355
  docs_contract_sale_signature_image_alt: string;
@@ -1 +1 @@
1
- {"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/i18n/fr.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAygBtB,CAAA"}
1
+ {"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/i18n/fr.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAghBtB,CAAA"}
package/dist/i18n/fr.js CHANGED
@@ -305,6 +305,12 @@ var e = {
305
305
  docs_contract_sale_due_date_label: "Date d'échéance :",
306
306
  docs_contract_sale_invoice_recipient_label: "Facturé à :",
307
307
  docs_contract_sale_credit_note_recipient_label: "Émis à :",
308
+ docs_contract_sale_legal_form_label: "Forme juridique",
309
+ docs_contract_sale_legal_share_capital_label: "Capital social",
310
+ docs_contract_sale_legal_company_registration_label: "N° d’immatriculation",
311
+ docs_contract_sale_legal_establishment_registration_label: "N° d’établissement",
312
+ docs_contract_sale_legal_vat_number_label: "N° de TVA",
313
+ docs_contract_sale_legal_trade_register_label: "Registre du commerce",
308
314
  docs_contract_sale_rental_details_title: "Détails de la location",
309
315
  docs_contract_sale_booking_number_label: "Réservation",
310
316
  docs_contract_sale_rental_start_label: "Départ",
@@ -344,6 +350,7 @@ var e = {
344
350
  docs_contract_sale_signature_validation_identity: "Veuillez renseigner votre nom et votre téléphone.",
345
351
  docs_contract_sale_signature_acknowledgement: "En signant ce document, j'accepte les conditions générales applicables ci-après.",
346
352
  docs_contract_sale_signature_issuer_label: "Signature du loueur",
353
+ docs_contract_sale_signature_issuer_representative_label: "Le représentant légal",
347
354
  docs_contract_sale_signature_customer_label: "Signature du locataire",
348
355
  docs_contract_sale_signature_date_label: "Date",
349
356
  docs_contract_sale_signature_image_alt: "Signature",
package/dist/index.d.ts CHANGED
@@ -91,6 +91,16 @@ export declare const acceptContractSaleDocumentResponseSchema: z.ZodObject<{
91
91
  }, z.core.$strict>>;
92
92
  email: z.ZodOptional<z.ZodString>;
93
93
  phone: z.ZodOptional<z.ZodString>;
94
+ legalIdentity: z.ZodOptional<z.ZodObject<{
95
+ legalName: z.ZodOptional<z.ZodString>;
96
+ registeredAddress: z.ZodOptional<z.ZodString>;
97
+ companyRegistrationNumber: z.ZodOptional<z.ZodString>;
98
+ establishmentRegistrationNumber: z.ZodOptional<z.ZodString>;
99
+ vatNumber: z.ZodOptional<z.ZodString>;
100
+ legalForm: z.ZodOptional<z.ZodString>;
101
+ shareCapital: z.ZodOptional<z.ZodString>;
102
+ tradeRegister: z.ZodOptional<z.ZodString>;
103
+ }, z.core.$strict>>;
94
104
  }, z.core.$strip>;
95
105
  recipient: z.ZodObject<{
96
106
  name: z.ZodString;
@@ -115,6 +125,16 @@ export declare const acceptContractSaleDocumentResponseSchema: z.ZodObject<{
115
125
  }, z.core.$strict>>;
116
126
  email: z.ZodOptional<z.ZodString>;
117
127
  phone: z.ZodOptional<z.ZodString>;
128
+ legalIdentity: z.ZodOptional<z.ZodObject<{
129
+ legalName: z.ZodOptional<z.ZodString>;
130
+ registeredAddress: z.ZodOptional<z.ZodString>;
131
+ companyRegistrationNumber: z.ZodOptional<z.ZodString>;
132
+ establishmentRegistrationNumber: z.ZodOptional<z.ZodString>;
133
+ vatNumber: z.ZodOptional<z.ZodString>;
134
+ legalForm: z.ZodOptional<z.ZodString>;
135
+ shareCapital: z.ZodOptional<z.ZodString>;
136
+ tradeRegister: z.ZodOptional<z.ZodString>;
137
+ }, z.core.$strict>>;
118
138
  }, z.core.$strip>;
119
139
  items: z.ZodArray<z.ZodObject<{
120
140
  id: z.ZodNumber;
@@ -149,6 +169,7 @@ export declare const acceptContractSaleDocumentResponseSchema: z.ZodObject<{
149
169
  acceptance: "acceptance";
150
170
  signature: "signature";
151
171
  }>>;
172
+ issuerSignature: z.ZodOptional<z.ZodString>;
152
173
  notes: z.ZodOptional<z.ZodString>;
153
174
  date: z.ZodPreprocess<z.ZodDate>;
154
175
  dueDate: z.ZodPreprocess<z.ZodDate>;
@@ -1146,6 +1167,16 @@ export declare const contractSaleDocumentApiSchema: z.ZodObject<{
1146
1167
  }, z.core.$strict>>;
1147
1168
  email: z.ZodOptional<z.ZodString>;
1148
1169
  phone: z.ZodOptional<z.ZodString>;
1170
+ legalIdentity: z.ZodOptional<z.ZodObject<{
1171
+ legalName: z.ZodOptional<z.ZodString>;
1172
+ registeredAddress: z.ZodOptional<z.ZodString>;
1173
+ companyRegistrationNumber: z.ZodOptional<z.ZodString>;
1174
+ establishmentRegistrationNumber: z.ZodOptional<z.ZodString>;
1175
+ vatNumber: z.ZodOptional<z.ZodString>;
1176
+ legalForm: z.ZodOptional<z.ZodString>;
1177
+ shareCapital: z.ZodOptional<z.ZodString>;
1178
+ tradeRegister: z.ZodOptional<z.ZodString>;
1179
+ }, z.core.$strict>>;
1149
1180
  }, z.core.$strip>;
1150
1181
  recipient: z.ZodObject<{
1151
1182
  name: z.ZodString;
@@ -1170,6 +1201,16 @@ export declare const contractSaleDocumentApiSchema: z.ZodObject<{
1170
1201
  }, z.core.$strict>>;
1171
1202
  email: z.ZodOptional<z.ZodString>;
1172
1203
  phone: z.ZodOptional<z.ZodString>;
1204
+ legalIdentity: z.ZodOptional<z.ZodObject<{
1205
+ legalName: z.ZodOptional<z.ZodString>;
1206
+ registeredAddress: z.ZodOptional<z.ZodString>;
1207
+ companyRegistrationNumber: z.ZodOptional<z.ZodString>;
1208
+ establishmentRegistrationNumber: z.ZodOptional<z.ZodString>;
1209
+ vatNumber: z.ZodOptional<z.ZodString>;
1210
+ legalForm: z.ZodOptional<z.ZodString>;
1211
+ shareCapital: z.ZodOptional<z.ZodString>;
1212
+ tradeRegister: z.ZodOptional<z.ZodString>;
1213
+ }, z.core.$strict>>;
1173
1214
  }, z.core.$strip>;
1174
1215
  items: z.ZodArray<z.ZodObject<{
1175
1216
  id: z.ZodNumber;
@@ -1204,6 +1245,7 @@ export declare const contractSaleDocumentApiSchema: z.ZodObject<{
1204
1245
  acceptance: "acceptance";
1205
1246
  signature: "signature";
1206
1247
  }>>;
1248
+ issuerSignature: z.ZodOptional<z.ZodString>;
1207
1249
  notes: z.ZodOptional<z.ZodString>;
1208
1250
  date: z.ZodPreprocess<z.ZodDate>;
1209
1251
  dueDate: z.ZodPreprocess<z.ZodDate>;
@@ -1293,6 +1335,16 @@ export declare const contractSaleDocumentContactSchema: z.ZodObject<{
1293
1335
  }, z.core.$strict>>;
1294
1336
  email: z.ZodOptional<z.ZodString>;
1295
1337
  phone: z.ZodOptional<z.ZodString>;
1338
+ legalIdentity: z.ZodOptional<z.ZodObject<{
1339
+ legalName: z.ZodOptional<z.ZodString>;
1340
+ registeredAddress: z.ZodOptional<z.ZodString>;
1341
+ companyRegistrationNumber: z.ZodOptional<z.ZodString>;
1342
+ establishmentRegistrationNumber: z.ZodOptional<z.ZodString>;
1343
+ vatNumber: z.ZodOptional<z.ZodString>;
1344
+ legalForm: z.ZodOptional<z.ZodString>;
1345
+ shareCapital: z.ZodOptional<z.ZodString>;
1346
+ tradeRegister: z.ZodOptional<z.ZodString>;
1347
+ }, z.core.$strict>>;
1296
1348
  }, z.core.$strip>;
1297
1349
 
1298
1350
  export declare type ContractSaleDocumentData = z.infer<typeof contractSaleDocumentSchema>;
@@ -1428,6 +1480,16 @@ export declare const contractSaleDocumentSchema: z.ZodObject<{
1428
1480
  }, z.core.$strict>>;
1429
1481
  email: z.ZodOptional<z.ZodString>;
1430
1482
  phone: z.ZodOptional<z.ZodString>;
1483
+ legalIdentity: z.ZodOptional<z.ZodObject<{
1484
+ legalName: z.ZodOptional<z.ZodString>;
1485
+ registeredAddress: z.ZodOptional<z.ZodString>;
1486
+ companyRegistrationNumber: z.ZodOptional<z.ZodString>;
1487
+ establishmentRegistrationNumber: z.ZodOptional<z.ZodString>;
1488
+ vatNumber: z.ZodOptional<z.ZodString>;
1489
+ legalForm: z.ZodOptional<z.ZodString>;
1490
+ shareCapital: z.ZodOptional<z.ZodString>;
1491
+ tradeRegister: z.ZodOptional<z.ZodString>;
1492
+ }, z.core.$strict>>;
1431
1493
  }, z.core.$strip>;
1432
1494
  recipient: z.ZodObject<{
1433
1495
  name: z.ZodString;
@@ -1452,6 +1514,16 @@ export declare const contractSaleDocumentSchema: z.ZodObject<{
1452
1514
  }, z.core.$strict>>;
1453
1515
  email: z.ZodOptional<z.ZodString>;
1454
1516
  phone: z.ZodOptional<z.ZodString>;
1517
+ legalIdentity: z.ZodOptional<z.ZodObject<{
1518
+ legalName: z.ZodOptional<z.ZodString>;
1519
+ registeredAddress: z.ZodOptional<z.ZodString>;
1520
+ companyRegistrationNumber: z.ZodOptional<z.ZodString>;
1521
+ establishmentRegistrationNumber: z.ZodOptional<z.ZodString>;
1522
+ vatNumber: z.ZodOptional<z.ZodString>;
1523
+ legalForm: z.ZodOptional<z.ZodString>;
1524
+ shareCapital: z.ZodOptional<z.ZodString>;
1525
+ tradeRegister: z.ZodOptional<z.ZodString>;
1526
+ }, z.core.$strict>>;
1455
1527
  }, z.core.$strip>;
1456
1528
  items: z.ZodArray<z.ZodObject<{
1457
1529
  id: z.ZodNumber;
@@ -1494,6 +1566,7 @@ export declare const contractSaleDocumentSchema: z.ZodObject<{
1494
1566
  acceptance: "acceptance";
1495
1567
  signature: "signature";
1496
1568
  }>>;
1569
+ issuerSignature: z.ZodOptional<z.ZodString>;
1497
1570
  acceptance: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1498
1571
  mode: z.ZodLiteral<"acceptance">;
1499
1572
  date: z.ZodDate;
@@ -1890,6 +1963,16 @@ export declare const getContractSaleDocumentResponseSchema: z.ZodObject<{
1890
1963
  }, z.core.$strict>>;
1891
1964
  email: z.ZodOptional<z.ZodString>;
1892
1965
  phone: z.ZodOptional<z.ZodString>;
1966
+ legalIdentity: z.ZodOptional<z.ZodObject<{
1967
+ legalName: z.ZodOptional<z.ZodString>;
1968
+ registeredAddress: z.ZodOptional<z.ZodString>;
1969
+ companyRegistrationNumber: z.ZodOptional<z.ZodString>;
1970
+ establishmentRegistrationNumber: z.ZodOptional<z.ZodString>;
1971
+ vatNumber: z.ZodOptional<z.ZodString>;
1972
+ legalForm: z.ZodOptional<z.ZodString>;
1973
+ shareCapital: z.ZodOptional<z.ZodString>;
1974
+ tradeRegister: z.ZodOptional<z.ZodString>;
1975
+ }, z.core.$strict>>;
1893
1976
  }, z.core.$strip>;
1894
1977
  recipient: z.ZodObject<{
1895
1978
  name: z.ZodString;
@@ -1914,6 +1997,16 @@ export declare const getContractSaleDocumentResponseSchema: z.ZodObject<{
1914
1997
  }, z.core.$strict>>;
1915
1998
  email: z.ZodOptional<z.ZodString>;
1916
1999
  phone: z.ZodOptional<z.ZodString>;
2000
+ legalIdentity: z.ZodOptional<z.ZodObject<{
2001
+ legalName: z.ZodOptional<z.ZodString>;
2002
+ registeredAddress: z.ZodOptional<z.ZodString>;
2003
+ companyRegistrationNumber: z.ZodOptional<z.ZodString>;
2004
+ establishmentRegistrationNumber: z.ZodOptional<z.ZodString>;
2005
+ vatNumber: z.ZodOptional<z.ZodString>;
2006
+ legalForm: z.ZodOptional<z.ZodString>;
2007
+ shareCapital: z.ZodOptional<z.ZodString>;
2008
+ tradeRegister: z.ZodOptional<z.ZodString>;
2009
+ }, z.core.$strict>>;
1917
2010
  }, z.core.$strip>;
1918
2011
  items: z.ZodArray<z.ZodObject<{
1919
2012
  id: z.ZodNumber;
@@ -1948,6 +2041,7 @@ export declare const getContractSaleDocumentResponseSchema: z.ZodObject<{
1948
2041
  acceptance: "acceptance";
1949
2042
  signature: "signature";
1950
2043
  }>>;
2044
+ issuerSignature: z.ZodOptional<z.ZodString>;
1951
2045
  notes: z.ZodOptional<z.ZodString>;
1952
2046
  date: z.ZodPreprocess<z.ZodDate>;
1953
2047
  dueDate: z.ZodPreprocess<z.ZodDate>;
@@ -2541,6 +2635,28 @@ declare type MoneyMinor_2 = number;
2541
2635
 
2542
2636
  export declare const moneyMinorSchema: z.ZodNumber;
2543
2637
 
2638
+ export declare type OpeningHoursDateRange = {
2639
+ startDate: string;
2640
+ endDate: string;
2641
+ };
2642
+
2643
+ export declare type OpeningHoursOverrideLike = {
2644
+ date: string;
2645
+ openingSlots: readonly OpeningHoursSlotLike[];
2646
+ };
2647
+
2648
+ export declare type OpeningHoursPeriodLike = OpeningHoursDateRange & {
2649
+ openingHours: readonly {
2650
+ day: number;
2651
+ openingSlots: readonly OpeningHoursSlotLike[];
2652
+ }[];
2653
+ };
2654
+
2655
+ export declare type OpeningHoursSlotLike = {
2656
+ start: string;
2657
+ end: string;
2658
+ };
2659
+
2544
2660
  export declare type PaymentPolicies = z.infer<typeof paymentPoliciesSchema>;
2545
2661
 
2546
2662
  export declare const paymentPoliciesSchema: z.ZodObject<{
@@ -3077,6 +3193,26 @@ export declare const resolveBookingSearchParams: (searchParams: URLSearchParams,
3077
3193
 
3078
3194
  export declare const resolveBookingSearchParamsFromSessionStorage: (searchParams: URLSearchParams, storeSlug?: string) => URLSearchParams;
3079
3195
 
3196
+ export declare type ResolvedOpeningHoursForDate<TPeriod extends OpeningHoursPeriodLike, TOverride extends OpeningHoursOverrideLike> = {
3197
+ period: TPeriod | undefined;
3198
+ override: TOverride | undefined;
3199
+ weekday: number | null;
3200
+ openingSlots: readonly OpeningHoursSlotLike[] | undefined;
3201
+ };
3202
+
3203
+ /**
3204
+ * Shared date-to-slots resolution used by both booking validation and the
3205
+ * storefront. Date-specific overrides take precedence over seasonal hours.
3206
+ */
3207
+ export declare function resolveOpeningHoursForDate<TPeriod extends OpeningHoursPeriodLike, TOverride extends OpeningHoursOverrideLike>(periods: readonly TPeriod[], overrides: readonly TOverride[] | undefined, isoDate: string): ResolvedOpeningHoursForDate<TPeriod, TOverride>;
3208
+
3209
+ /**
3210
+ * Resolves the opening-hours period for a business date. Exact coverage wins.
3211
+ * When no period covers the requested year, the most recent past period whose
3212
+ * calendar range recurs over that month/day is used as a graceful fallback.
3213
+ */
3214
+ export declare function resolveOpeningHoursPeriodForDate<T extends OpeningHoursDateRange>(periods: readonly T[], isoDate: string): T | undefined;
3215
+
3080
3216
  export declare const resolveStorefrontCartItemProduct: (item: StorefrontCartItem, products: StorefrontProductsCollections) => StorefrontProduct | null;
3081
3217
 
3082
3218
  export declare const resolveStorefrontMapsHref: (shop: StorefrontContactShop | undefined) => string | undefined;
@@ -3279,6 +3415,19 @@ export declare const shopOpeningSlotSchema: z.ZodObject<{
3279
3415
 
3280
3416
  export declare const shouldBlockStorefrontUnavailableItem: (record: StorefrontPublicAvailabilityRecord | undefined) => boolean;
3281
3417
 
3418
+ export declare function SignatureInput({ value, onChange, clearLabel, ariaLabel, id, disabled, className, testId, }: SignatureInputProps): JSX.Element;
3419
+
3420
+ export declare type SignatureInputProps = {
3421
+ value: string | null;
3422
+ onChange: (value: string | null) => void;
3423
+ clearLabel: string;
3424
+ ariaLabel: string;
3425
+ id?: string;
3426
+ disabled?: boolean;
3427
+ className?: string;
3428
+ testId?: string;
3429
+ };
3430
+
3282
3431
  export declare type SignedMoneyMinor = z.infer<typeof signedMoneyMinorSchema>;
3283
3432
 
3284
3433
  export declare const signedMoneyMinorSchema: z.ZodNumber;
@@ -4352,6 +4501,12 @@ export declare const storefrontEn: {
4352
4501
  docs_contract_sale_due_date_label: string;
4353
4502
  docs_contract_sale_invoice_recipient_label: string;
4354
4503
  docs_contract_sale_credit_note_recipient_label: string;
4504
+ docs_contract_sale_legal_form_label: string;
4505
+ docs_contract_sale_legal_share_capital_label: string;
4506
+ docs_contract_sale_legal_company_registration_label: string;
4507
+ docs_contract_sale_legal_establishment_registration_label: string;
4508
+ docs_contract_sale_legal_vat_number_label: string;
4509
+ docs_contract_sale_legal_trade_register_label: string;
4355
4510
  docs_contract_sale_rental_details_title: string;
4356
4511
  docs_contract_sale_booking_number_label: string;
4357
4512
  docs_contract_sale_rental_start_label: string;
@@ -4391,6 +4546,7 @@ export declare const storefrontEn: {
4391
4546
  docs_contract_sale_signature_validation_identity: string;
4392
4547
  docs_contract_sale_signature_acknowledgement: string;
4393
4548
  docs_contract_sale_signature_issuer_label: string;
4549
+ docs_contract_sale_signature_issuer_representative_label: string;
4394
4550
  docs_contract_sale_signature_customer_label: string;
4395
4551
  docs_contract_sale_signature_date_label: string;
4396
4552
  docs_contract_sale_signature_image_alt: string;
@@ -4906,6 +5062,12 @@ export declare const storefrontFr: {
4906
5062
  docs_contract_sale_due_date_label: string;
4907
5063
  docs_contract_sale_invoice_recipient_label: string;
4908
5064
  docs_contract_sale_credit_note_recipient_label: string;
5065
+ docs_contract_sale_legal_form_label: string;
5066
+ docs_contract_sale_legal_share_capital_label: string;
5067
+ docs_contract_sale_legal_company_registration_label: string;
5068
+ docs_contract_sale_legal_establishment_registration_label: string;
5069
+ docs_contract_sale_legal_vat_number_label: string;
5070
+ docs_contract_sale_legal_trade_register_label: string;
4909
5071
  docs_contract_sale_rental_details_title: string;
4910
5072
  docs_contract_sale_booking_number_label: string;
4911
5073
  docs_contract_sale_rental_start_label: string;
@@ -4945,6 +5107,7 @@ export declare const storefrontFr: {
4945
5107
  docs_contract_sale_signature_validation_identity: string;
4946
5108
  docs_contract_sale_signature_acknowledgement: string;
4947
5109
  docs_contract_sale_signature_issuer_label: string;
5110
+ docs_contract_sale_signature_issuer_representative_label: string;
4948
5111
  docs_contract_sale_signature_customer_label: string;
4949
5112
  docs_contract_sale_signature_date_label: string;
4950
5113
  docs_contract_sale_signature_image_alt: string;