@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
@@ -9,7 +9,8 @@ import { DEFAULT_CANCELLATION_POLICY as V, DEFAULT_PAYMENT_POLICIES as H, cancel
9
9
  import { fulfillmentModeSchema as K, publicBookingEngineConfigurationSchema as q, publicCheckoutConfigurationSchema as J, publicCheckoutDynamicOptionsSchema as Y } from "./schemas/public-booking-engine-configuration-CEM9mexX.js";
10
10
  import { DEFAULT_BOOKING_DELIVERY_OPTION as X, bookingCustomerInputSchema as Z, bookingDeliveryOptionSchema as Q, bookingScheduleInputSchema as $, cartItemInputSchema as ee, createBookingInputBaseSchema as te, createBookingInputSchema as ne, resolveBookingDeliveryOption as re, validateBookingDeliveryAddress as ie } from "./schemas/cart-inputs-epi7FXIk.js";
11
11
  import { bookingInsuranceConsentSourceSchema as ae, bookingInsuranceItemSnapshotSchema as oe, bookingInsuranceSnapshotSchema as se, buildBookingInsuranceSnapshot as ce, calculateInsuranceCalendarDays as le, insuranceProviderSchema as ue } from "./schemas/insurance-DXc34Bzy.js";
12
+ import { resolveOpeningHoursForDate as de, resolveOpeningHoursPeriodForDate as fe } from "./utils/opening-hours-period-TCyLhzZw.js";
12
13
  import "./schemas/base-product-Bde9lJQD.js";
13
- import { assetIdSchema as de, baseAssetSchema as fe, baseAssetStatusSchema as pe } from "./schemas/base-asset-BhIOL2rP.js";
14
- import { baseBookingItemSchema as me, baseBookingSchema as he, baseBookingStateSchema as ge } from "./schemas/base-booking-C9kJFMIu.js";
15
- export { X as DEFAULT_BOOKING_DELIVERY_OPTION, V as DEFAULT_CANCELLATION_POLICY, H as DEFAULT_PAYMENT_POLICIES, m as DEFAULT_PRODUCT_KIND, h as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, g as PRODUCT_VARIANT_CODE_MAX_LENGTH, _ as accessoryProductSchema, de as assetIdSchema, fe as baseAssetSchema, pe as baseAssetStatusSchema, me as baseBookingItemSchema, he as baseBookingSchema, ge as baseBookingStateSchema, v as bikeProductSchema, Z as bookingCustomerInputSchema, Q as bookingDeliveryOptionSchema, ae as bookingInsuranceConsentSourceSchema, oe as bookingInsuranceItemSnapshotSchema, se as bookingInsuranceSnapshotSchema, $ as bookingScheduleInputSchema, ce as buildBookingInsuranceSnapshot, le as calculateInsuranceCalendarDays, U as cancellationPolicySchema, W as cancellationPolicyTierSchema, ee as cartItemInputSchema, te as createBookingInputBaseSchema, ne as createBookingInputSchema, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, y as eBikeProductSchema, K as fulfillmentModeSchema, t as getLocalizedStringValue, ue as insuranceProviderSchema, b as isProductVariantCodeIdentifierKind, M as isoDateSchema, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, G as paymentPoliciesSchema, d as priceSchema, f as priceUnitSchema, p as productIdSchema, x as productInsuranceSchema, S as productKindSchema, C as productSchema, w as productStorefrontDisplayModeSchema, T as productVariantAttributeSchema, E as productVariantCodeSchema, D as productVariantIdentifierSchema, O as productVariantSchema, q as publicBookingEngineConfigurationSchema, J as publicCheckoutConfigurationSchema, Y as publicCheckoutDynamicOptionsSchema, re as resolveBookingDeliveryOption, k as richTextJsonDocSchema, A as richTextSchema, j as richTextVersionSchema, N as shopConfigurationSchema, P as shopExtraTimeSlotRuleSchema, F as shopOpeningDayIndexSchema, I as shopOpeningDaySchema, L as shopOpeningHoursOverrideSchema, R as shopOpeningHoursPeriodSchema, z as shopOpeningSlotSchema, u as signedMoneyMinorSchema, B as timeOfDaySchema, ie as validateBookingDeliveryAddress };
14
+ import { assetIdSchema as pe, baseAssetSchema as me, baseAssetStatusSchema as he } from "./schemas/base-asset-BhIOL2rP.js";
15
+ import { baseBookingItemSchema as ge, baseBookingSchema as _e, baseBookingStateSchema as ve } from "./schemas/base-booking-C9kJFMIu.js";
16
+ export { X as DEFAULT_BOOKING_DELIVERY_OPTION, V as DEFAULT_CANCELLATION_POLICY, H as DEFAULT_PAYMENT_POLICIES, m as DEFAULT_PRODUCT_KIND, h as PRODUCT_VARIANT_CODE_IDENTIFIER_KIND, g as PRODUCT_VARIANT_CODE_MAX_LENGTH, _ as accessoryProductSchema, pe as assetIdSchema, me as baseAssetSchema, he as baseAssetStatusSchema, ge as baseBookingItemSchema, _e as baseBookingSchema, ve as baseBookingStateSchema, v as bikeProductSchema, Z as bookingCustomerInputSchema, Q as bookingDeliveryOptionSchema, ae as bookingInsuranceConsentSourceSchema, oe as bookingInsuranceItemSnapshotSchema, se as bookingInsuranceSnapshotSchema, $ as bookingScheduleInputSchema, ce as buildBookingInsuranceSnapshot, le as calculateInsuranceCalendarDays, U as cancellationPolicySchema, W as cancellationPolicyTierSchema, ee as cartItemInputSchema, te as createBookingInputBaseSchema, ne as createBookingInputSchema, e as createLocalizedStringEntry, a as currencyCodeSchema, o as currencyMinorUnitDigits, y as eBikeProductSchema, K as fulfillmentModeSchema, t as getLocalizedStringValue, ue as insuranceProviderSchema, b as isProductVariantCodeIdentifierKind, M as isoDateSchema, n as localizedStringArraySchema, r as localizedStringEntrySchema, i as localizedStringSchema, s as majorToMinor, c as minorToMajor, l as moneyMinorSchema, G as paymentPoliciesSchema, d as priceSchema, f as priceUnitSchema, p as productIdSchema, x as productInsuranceSchema, S as productKindSchema, C as productSchema, w as productStorefrontDisplayModeSchema, T as productVariantAttributeSchema, E as productVariantCodeSchema, D as productVariantIdentifierSchema, O as productVariantSchema, q as publicBookingEngineConfigurationSchema, J as publicCheckoutConfigurationSchema, Y as publicCheckoutDynamicOptionsSchema, re as resolveBookingDeliveryOption, de as resolveOpeningHoursForDate, fe as resolveOpeningHoursPeriodForDate, k as richTextJsonDocSchema, A as richTextSchema, j as richTextVersionSchema, N as shopConfigurationSchema, P as shopExtraTimeSlotRuleSchema, F as shopOpeningDayIndexSchema, I as shopOpeningDaySchema, L as shopOpeningHoursOverrideSchema, R as shopOpeningHoursPeriodSchema, z as shopOpeningSlotSchema, u as signedMoneyMinorSchema, B as timeOfDaySchema, ie as validateBookingDeliveryAddress };
@@ -0,0 +1,82 @@
1
+ //#region ../booking-engine/dist/utils/opening-hours-period.js
2
+ var e = /^(\d{4})-(\d{2})-(\d{2})$/;
3
+ function t(e) {
4
+ return e % 4 == 0 && (e % 100 != 0 || e % 400 == 0);
5
+ }
6
+ function n(e, n) {
7
+ return n === 2 ? t(e) ? 29 : 28 : n === 4 || n === 6 || n === 9 || n === 11 ? 30 : 31;
8
+ }
9
+ function r(t) {
10
+ let r = e.exec(t);
11
+ if (!r) return null;
12
+ let i = Number(r[1]), a = Number(r[2]), o = Number(r[3]);
13
+ return a < 1 || a > 12 || o < 1 || o > n(i, a) ? null : {
14
+ year: i,
15
+ month: a,
16
+ day: o,
17
+ key: i * 1e4 + a * 100 + o
18
+ };
19
+ }
20
+ function i(e, t) {
21
+ let r = e.year + t;
22
+ return r < 0 || r > 9999 || e.day > n(r, e.month) ? null : {
23
+ year: r,
24
+ month: e.month,
25
+ day: e.day,
26
+ key: r * 1e4 + e.month * 100 + e.day
27
+ };
28
+ }
29
+ function a(e, t, n) {
30
+ return e.key >= t.key && e.key <= n.key;
31
+ }
32
+ function o(e) {
33
+ return (new Date(Date.UTC(e.year, e.month - 1, e.day)).getUTCDay() + 6) % 7;
34
+ }
35
+ function s(e) {
36
+ return (e % 7 + 7) % 7;
37
+ }
38
+ function c(e, t) {
39
+ let n = r(t);
40
+ if (!n) return;
41
+ let o, s = -1, c = -1;
42
+ for (let t of e) {
43
+ let e = r(t.startDate), l = r(t.endDate);
44
+ if (!e || !l) continue;
45
+ let u = e.key <= l.key ? e : l, d = e.key <= l.key ? l : e;
46
+ if (a(n, u, d)) return t;
47
+ d.key >= n.key || [.../* @__PURE__ */ new Set([n.year - u.year, n.year - d.year])].some((e) => {
48
+ if (e <= 0) return !1;
49
+ let t = i(u, e), r = i(d, e);
50
+ return !!(t && r && a(n, t, r));
51
+ }) && (d.key > s || d.key === s && u.key > c) && (o = t, s = d.key, c = u.key);
52
+ }
53
+ return o;
54
+ }
55
+ function l(e, t, n) {
56
+ let i = r(n);
57
+ if (!i) return {
58
+ period: void 0,
59
+ override: void 0,
60
+ weekday: null,
61
+ openingSlots: void 0
62
+ };
63
+ let a = c(e, n), l = t?.find((e) => r(e.date)?.key === i.key), u = o(i);
64
+ return l ? {
65
+ period: a,
66
+ override: l,
67
+ weekday: u,
68
+ openingSlots: l.openingSlots
69
+ } : a ? {
70
+ period: a,
71
+ override: void 0,
72
+ weekday: u,
73
+ openingSlots: a.openingHours.find((e) => s(e.day) === u)?.openingSlots ?? []
74
+ } : {
75
+ period: void 0,
76
+ override: void 0,
77
+ weekday: u,
78
+ openingSlots: void 0
79
+ };
80
+ }
81
+ //#endregion
82
+ export { l as resolveOpeningHoursForDate, c as resolveOpeningHoursPeriodForDate };
@@ -4,7 +4,8 @@ type DocumentAcceptanceSectionProps = {
4
4
  documentLanguage: ContractSaleDocumentLanguage;
5
5
  formatDate: (date: Date | string | number) => string;
6
6
  className?: string;
7
+ compact?: boolean;
7
8
  };
8
- export declare function DocumentAcceptanceSection({ saleDocument, documentLanguage, formatDate, className, }: DocumentAcceptanceSectionProps): import("react/jsx-runtime").JSX.Element | null;
9
+ export declare function DocumentAcceptanceSection({ saleDocument, documentLanguage, formatDate, className, compact, }: DocumentAcceptanceSectionProps): import("react/jsx-runtime").JSX.Element | null;
9
10
  export {};
10
11
  //# sourceMappingURL=DocumentAcceptanceSection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentAcceptanceSection.d.ts","sourceRoot":"","sources":["../../../src/components/ContractSaleDocument/DocumentAcceptanceSection.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,oBAAoB,EACpB,4BAA4B,EAC7B,MAAM,gCAAgC,CAAA;AAIvC,KAAK,8BAA8B,GAAG;IACpC,YAAY,EAAE,oBAAoB,CAAA;IAClC,gBAAgB,EAAE,4BAA4B,CAAA;IAC9C,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,KAAK,MAAM,CAAA;IACpD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,wBAAgB,yBAAyB,CAAC,EACxC,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,SAAS,GACV,EAAE,8BAA8B,kDAuGhC"}
1
+ {"version":3,"file":"DocumentAcceptanceSection.d.ts","sourceRoot":"","sources":["../../../src/components/ContractSaleDocument/DocumentAcceptanceSection.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,oBAAoB,EACpB,4BAA4B,EAC7B,MAAM,gCAAgC,CAAA;AAIvC,KAAK,8BAA8B,GAAG;IACpC,YAAY,EAAE,oBAAoB,CAAA;IAClC,gBAAgB,EAAE,4BAA4B,CAAA;IAC9C,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,KAAK,MAAM,CAAA;IACpD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,wBAAgB,yBAAyB,CAAC,EACxC,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,OAAe,GAChB,EAAE,8BAA8B,kDAgHhC"}
@@ -3,59 +3,59 @@ import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
3
3
  import { useTranslation as i } from "react-i18next";
4
4
  import { cn as a } from "@rpcbase/ui";
5
5
  //#region src/components/ContractSaleDocument/DocumentAcceptanceSection.tsx
6
- function o({ saleDocument: o, documentLanguage: s, formatDate: c, className: l }) {
7
- let { t: u } = i(), d = (t, n = {}) => e(u, s, t, n), f = o.acceptance?.mode === "signature" ? o.acceptance : null, p = o.acceptance?.mode === "acceptance" ? o.acceptance : null, m = o.acceptanceLevel === "signature" || f !== null;
6
+ function o({ saleDocument: o, documentLanguage: s, formatDate: c, className: l, compact: u = !1 }) {
7
+ let { t: d } = i(), f = (t, n = {}) => e(d, s, t, n), p = o.acceptance?.mode === "signature" ? o.acceptance : null, m = o.acceptance?.mode === "acceptance" ? o.acceptance : null, h = o.acceptanceLevel === "signature" || p !== null;
8
8
  return o.acceptanceLevel === "none" && !o.acceptance ? null : /* @__PURE__ */ n("section", {
9
- className: a("mt-auto border-t border-border pt-8", l),
9
+ className: a("mt-auto border-t border-border", u ? "pt-3" : "pt-8", l),
10
10
  "data-testid": "contract-sale-document-acceptance-section",
11
- children: m ? /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n("p", {
12
- className: "mb-12 text-center text-sm text-muted-foreground",
13
- children: /* @__PURE__ */ n("span", { children: d("docs_contract_sale_signature_acknowledgement") })
14
- }), f ? /* @__PURE__ */ r("div", {
11
+ children: h ? /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n("p", {
12
+ className: a("text-center text-sm text-muted-foreground", u ? "mb-4" : "mb-12"),
13
+ children: /* @__PURE__ */ n("span", { children: f("docs_contract_sale_signature_acknowledgement") })
14
+ }), p ? /* @__PURE__ */ r("div", {
15
15
  className: "flex flex-col justify-between md:flex-row",
16
16
  children: [/* @__PURE__ */ r("div", {
17
17
  className: "mb-8 w-full md:mb-0 md:w-2/5",
18
18
  children: [
19
19
  /* @__PURE__ */ n("p", {
20
20
  className: "font-semibold text-foreground",
21
- children: /* @__PURE__ */ n("span", { children: d("docs_contract_sale_signature_issuer_label") })
21
+ children: /* @__PURE__ */ n("span", { children: f("docs_contract_sale_signature_issuer_label") })
22
22
  }),
23
23
  /* @__PURE__ */ n("p", {
24
24
  className: "mb-2 mt-2 text-sm text-muted-foreground",
25
- children: /* @__PURE__ */ r("span", { children: [d("docs_contract_sale_signature_date_label"), ": ___________________"] })
25
+ children: /* @__PURE__ */ r("span", { children: [f("docs_contract_sale_signature_date_label"), ": ___________________"] })
26
26
  }),
27
- /* @__PURE__ */ n("div", { className: "h-24 rounded-lg bg-muted/40" })
27
+ /* @__PURE__ */ n("div", { className: a("rounded-lg bg-muted/40", u ? "h-20" : "h-24") })
28
28
  ]
29
29
  }), /* @__PURE__ */ r("div", {
30
30
  className: "w-full text-left md:w-2/5",
31
31
  children: [
32
32
  /* @__PURE__ */ n("p", {
33
33
  className: "font-semibold text-foreground",
34
- children: /* @__PURE__ */ n("span", { children: d("docs_contract_sale_signature_customer_label") })
34
+ children: /* @__PURE__ */ n("span", { children: f("docs_contract_sale_signature_customer_label") })
35
35
  }),
36
36
  /* @__PURE__ */ n("p", {
37
37
  className: "mb-2 mt-2 text-sm text-muted-foreground",
38
38
  children: /* @__PURE__ */ r("span", { children: [
39
- d("docs_contract_sale_signature_date_label"),
39
+ f("docs_contract_sale_signature_date_label"),
40
40
  ": ",
41
- c(f.date)
41
+ c(p.date)
42
42
  ] })
43
43
  }),
44
44
  /* @__PURE__ */ n("div", {
45
- className: "flex h-24 items-center justify-center rounded-lg bg-muted/40 p-2",
45
+ className: a("flex items-center justify-center rounded-lg bg-muted/40 p-2", u ? "h-20" : "h-24"),
46
46
  children: /* @__PURE__ */ n("img", {
47
- src: f.signature,
48
- alt: d("docs_contract_sale_signature_image_alt"),
47
+ src: p.signature,
48
+ alt: f("docs_contract_sale_signature_image_alt"),
49
49
  className: "max-h-full max-w-full"
50
50
  })
51
51
  }),
52
52
  /* @__PURE__ */ n("p", {
53
- className: "mt-2 text-sm text-foreground",
54
- children: /* @__PURE__ */ n("span", { children: f.name })
53
+ className: a("text-sm text-foreground", u ? "mt-1" : "mt-2"),
54
+ children: /* @__PURE__ */ n("span", { children: p.name })
55
55
  }),
56
56
  /* @__PURE__ */ n("p", {
57
57
  className: "text-sm text-muted-foreground",
58
- children: /* @__PURE__ */ n("span", { children: f.phone })
58
+ children: /* @__PURE__ */ n("span", { children: p.phone })
59
59
  })
60
60
  ]
61
61
  })]
@@ -66,36 +66,36 @@ function o({ saleDocument: o, documentLanguage: s, formatDate: c, className: l }
66
66
  children: [
67
67
  /* @__PURE__ */ n("p", {
68
68
  className: "font-semibold text-foreground",
69
- children: /* @__PURE__ */ n("span", { children: d("docs_contract_sale_signature_issuer_label") })
69
+ children: /* @__PURE__ */ n("span", { children: f("docs_contract_sale_signature_issuer_label") })
70
70
  }),
71
71
  /* @__PURE__ */ n("p", {
72
72
  className: "mb-2 mt-2 text-sm text-muted-foreground",
73
- children: /* @__PURE__ */ r("span", { children: [d("docs_contract_sale_signature_date_label"), ": ___________________"] })
73
+ children: /* @__PURE__ */ r("span", { children: [f("docs_contract_sale_signature_date_label"), ": ___________________"] })
74
74
  }),
75
- /* @__PURE__ */ n("div", { className: "h-24 rounded-lg bg-muted/40" })
75
+ /* @__PURE__ */ n("div", { className: a("rounded-lg bg-muted/40", u ? "h-20" : "h-24") })
76
76
  ]
77
77
  }), /* @__PURE__ */ r("div", {
78
78
  className: "w-full md:w-2/5",
79
79
  children: [
80
80
  /* @__PURE__ */ n("p", {
81
81
  className: "font-semibold text-foreground",
82
- children: /* @__PURE__ */ n("span", { children: d("docs_contract_sale_signature_customer_label") })
82
+ children: /* @__PURE__ */ n("span", { children: f("docs_contract_sale_signature_customer_label") })
83
83
  }),
84
84
  /* @__PURE__ */ n("p", {
85
85
  className: "mb-2 mt-2 text-sm text-muted-foreground",
86
- children: /* @__PURE__ */ r("span", { children: [d("docs_contract_sale_signature_date_label"), ": ___________________"] })
86
+ children: /* @__PURE__ */ r("span", { children: [f("docs_contract_sale_signature_date_label"), ": ___________________"] })
87
87
  }),
88
- /* @__PURE__ */ n("div", { className: "h-24 rounded-lg bg-muted/40" })
88
+ /* @__PURE__ */ n("div", { className: a("rounded-lg bg-muted/40", u ? "h-20" : "h-24") })
89
89
  ]
90
90
  })]
91
91
  })] }) : /* @__PURE__ */ r("div", {
92
92
  className: "rounded-lg border border-border bg-muted/30 p-4",
93
93
  children: [/* @__PURE__ */ n("p", {
94
94
  className: "text-sm font-medium text-foreground",
95
- children: /* @__PURE__ */ n("span", { children: d(p ? "docs_contract_sale_acceptance_section_accepted_title" : "docs_contract_sale_acceptance_section_required_title") })
95
+ children: /* @__PURE__ */ n("span", { children: f(m ? "docs_contract_sale_acceptance_section_accepted_title" : "docs_contract_sale_acceptance_section_required_title") })
96
96
  }), /* @__PURE__ */ n("p", {
97
97
  className: "mt-1 text-sm text-muted-foreground",
98
- children: /* @__PURE__ */ n("span", { children: p ? d("docs_contract_sale_acceptance_section_accepted_date", { date: c(p.date) }) : d("docs_contract_sale_acceptance_section_required_description") })
98
+ children: /* @__PURE__ */ n("span", { children: m ? f("docs_contract_sale_acceptance_section_accepted_date", { date: c(m.date) }) : f("docs_contract_sale_acceptance_section_required_description") })
99
99
  })]
100
100
  })
101
101
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Invoice.d.ts","sourceRoot":"","sources":["../../../src/components/ContractSaleDocument/Invoice.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,oBAAoB,IAAI,wBAAwB,EAChD,oCAAoC,EAKrC,MAAM,gCAAgC,CAAA;AAUvC,OAAO,eAAe,CAAA;AAOtB,KAAK,yBAAyB,GAAG;IAC/B,IAAI,EAAE,wBAAwB,CAAA;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,UAAU,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAA;IAClC,UAAU,CAAC,EAAE,aAAa,GAAG,KAAK,CAAA;IAClC,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,EAAE,CACT,UAAU,EAAE,oCAAoC,KAC7C,OAAO,CAAC,wBAAwB,GAAG,IAAI,CAAC,GAAG,wBAAwB,GAAG,IAAI,CAAA;CAChF,CAAA;AAsKD,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EAAE,WAAW,EACjB,cAAqB,EACrB,sBAA6B,EAC7B,UAAuB,EACvB,UAA0B,EAC1B,iBAAiB,EACjB,QAAQ,GACT,EAAE,yBAAyB,2CAmiB3B;AAED,YAAY,EAAE,yBAAyB,EAAE,CAAA"}
1
+ {"version":3,"file":"Invoice.d.ts","sourceRoot":"","sources":["../../../src/components/ContractSaleDocument/Invoice.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,oBAAoB,IAAI,wBAAwB,EAChD,oCAAoC,EAKrC,MAAM,gCAAgC,CAAA;AAUvC,OAAO,eAAe,CAAA;AAOtB,KAAK,yBAAyB,GAAG;IAC/B,IAAI,EAAE,wBAAwB,CAAA;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,UAAU,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAA;IAClC,UAAU,CAAC,EAAE,aAAa,GAAG,KAAK,CAAA;IAClC,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,EAAE,CACT,UAAU,EAAE,oCAAoC,KAC7C,OAAO,CAAC,wBAAwB,GAAG,IAAI,CAAC,GAAG,wBAAwB,GAAG,IAAI,CAAA;CAChF,CAAA;AAsKD,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EAAE,WAAW,EACjB,cAAqB,EACrB,sBAA6B,EAC7B,UAAuB,EACvB,UAA0B,EAC1B,iBAAiB,EACjB,QAAQ,GACT,EAAE,yBAAyB,2CAsiB3B;AAED,YAAY,EAAE,yBAAyB,EAAE,CAAA"}
@@ -306,7 +306,8 @@ function x({ data: c, showAppendices: h = !0, withEnglishTranslation: g = !0, he
306
306
  saleDocumentNumber: w.saleDocumentNumber,
307
307
  currentPage: t + 1,
308
308
  totalPages: Y,
309
- documentLanguage: U
309
+ documentLanguage: U,
310
+ compact: C
310
311
  }),
311
312
  e.kind === "invoice" ? /* @__PURE__ */ f(i, {
312
313
  saleDocument: w,
@@ -320,7 +321,8 @@ function x({ data: c, showAppendices: h = !0, withEnglishTranslation: g = !0, he
320
321
  showNotesSection: e.showNotesSection,
321
322
  showAcceptanceSection: e.showAcceptanceSection,
322
323
  documentQrCodeUrl: e.showInvoiceMeta && me ? F : void 0,
323
- documentLanguage: U
324
+ documentLanguage: U,
325
+ compact: C
324
326
  }) : /* @__PURE__ */ f("main", {
325
327
  className: "flex flex-grow flex-col px-4 text-left md:px-8",
326
328
  children: /* @__PURE__ */ f(ee, {
@@ -335,7 +337,8 @@ function x({ data: c, showAppendices: h = !0, withEnglishTranslation: g = !0, he
335
337
  saleDocumentNumber: w.saleDocumentNumber,
336
338
  currentPage: t + 1,
337
339
  totalPages: Y,
338
- documentLanguage: U
340
+ documentLanguage: U,
341
+ compact: C
339
342
  })
340
343
  ]
341
344
  }, e.key);
@@ -12,7 +12,8 @@ type InvoiceDetailsProps = {
12
12
  showNotesSection?: boolean;
13
13
  showAcceptanceSection?: boolean;
14
14
  documentQrCodeUrl?: string;
15
+ compact?: boolean;
15
16
  };
16
- export declare function InvoiceDetails({ saleDocument, items, subtotal, tax, total, formatDate, documentLanguage, showInvoiceMeta, showTotalsSection, showNotesSection, showAcceptanceSection, documentQrCodeUrl, }: InvoiceDetailsProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function InvoiceDetails({ saleDocument, items, subtotal, tax, total, formatDate, documentLanguage, showInvoiceMeta, showTotalsSection, showNotesSection, showAcceptanceSection, documentQrCodeUrl, compact, }: InvoiceDetailsProps): import("react/jsx-runtime").JSX.Element;
17
18
  export {};
18
19
  //# sourceMappingURL=InvoiceDetails.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InvoiceDetails.d.ts","sourceRoot":"","sources":["../../../src/components/ContractSaleDocument/InvoiceDetails.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,oBAAoB,EACpB,4BAA4B,EAC5B,4BAA4B,EAC7B,MAAM,gCAAgC,CAAA;AAKvC,KAAK,mBAAmB,GAAG;IACzB,YAAY,EAAE,oBAAoB,CAAA;IAClC,KAAK,EAAE,4BAA4B,EAAE,CAAA;IACrC,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,KAAK,MAAM,CAAA;IACpD,gBAAgB,EAAE,4BAA4B,CAAA;IAC9C,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B,CAAA;AA0CD,wBAAgB,cAAc,CAAC,EAC7B,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,GAAG,EACH,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,eAAsB,EACtB,iBAAwB,EACxB,gBAAuB,EACvB,qBAA4B,EAC5B,iBAAiB,GAClB,EAAE,mBAAmB,2CAwOrB"}
1
+ {"version":3,"file":"InvoiceDetails.d.ts","sourceRoot":"","sources":["../../../src/components/ContractSaleDocument/InvoiceDetails.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,oBAAoB,EACpB,4BAA4B,EAC5B,4BAA4B,EAC7B,MAAM,gCAAgC,CAAA;AAKvC,KAAK,mBAAmB,GAAG;IACzB,YAAY,EAAE,oBAAoB,CAAA;IAClC,KAAK,EAAE,4BAA4B,EAAE,CAAA;IACrC,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,KAAK,MAAM,CAAA;IACpD,gBAAgB,EAAE,4BAA4B,CAAA;IAC9C,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AA0CD,wBAAgB,cAAc,CAAC,EAC7B,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,GAAG,EACH,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,eAAsB,EACtB,iBAAwB,EACxB,gBAAuB,EACvB,qBAA4B,EAC5B,iBAAiB,EACjB,OAAe,GAChB,EAAE,mBAAmB,2CA8UrB"}