@forgebuild/sidon-booking-widget 4.2.0 → 4.3.1

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.
@@ -1,141 +1,142 @@
1
- // Hand-written typings for <sidon-booking-widget> and <sidon-berth-map>.
2
- // The entry modules only register the elements (side-effect imports), so
3
- // generated declarations come out as an empty `export {}`. The build copies
4
- // this file verbatim to dist/elements.d.ts and both entry .d.ts files
5
- // re-export it (scripts/write-element-types.mjs), which is why it imports
6
- // nothing: a relative import would dangle in dist/.
7
- //
8
- // Keep it in step with the `props` blocks in BookingWidget.svelte and
9
- // BerthMap.svelte and the events they emit. `npm run check` skips .d.ts
10
- // files (skipLibCheck), so check an edit with:
11
- // npx tsc --ignoreConfig --noEmit --skipLibCheck false --lib es2023,dom src/elements.d.ts
12
-
13
- /** Peer-marina logo pin. Mirrors OtherMarina in lib/types.ts. */
14
- export interface OtherMarina {
15
- name: string;
16
- lat: number;
17
- lng: number;
18
- logoMark: string | null;
19
- /** Always host-supplied: the package owns no site's routing. */
20
- href: string | null;
21
- }
22
-
23
- /** OTA booking status. An expired booking reports `cancelled`. */
24
- export type SidonBookingStatus = 'hold' | 'pending' | 'confirmed' | 'declined' | 'cancelled';
25
-
26
- /** 1 Documents, 2 Details, 3 Payment, 4 Booking. */
27
- export interface SidonStepChangeDetail { step: 1 | 2 | 3 | 4 }
28
- /** The booking widget fires this from the wizard only, never in booking-page mode. */
29
- export interface SidonLoaChangeDetail { loa: number }
30
- /** `bookingId` is OTA's booking UUID, `marina` the marina slug. */
31
- export interface SidonBookedDetail { bookingId: string; marina: string }
32
- export interface SidonBookingStatusDetail { bookingId: string; status: SidonBookingStatus }
33
- /** A berth label, or null when deselected. */
34
- export interface SidonBerthSelectedDetail { berthId: string | null }
35
- /** addToCart's argument. Mirrors CartPick in lib/types.ts. */
36
- export interface SidonCartPick {
37
- berth: string;
38
- from: string;
39
- to: string;
40
- length: number;
41
- beam: number | null;
42
- boatName: string;
43
- notes?: string;
44
- price: number | null;
45
- }
46
- /** Dates are `YYYY-MM-DD`; `berth` is a berth label. */
47
- export interface SidonQuickbookSubmitDetail { from: string | null; to: string | null; length: number; berth: string | null }
48
-
49
- // Element properties mirror the attributes, camelCased; optional like them.
50
- export interface SidonBookingWidgetElement extends HTMLElement {
51
- /** OTA marina slug. */
52
- marina?: string;
53
- /** '' (default) = this page's origin, where the forwarder route lives. */
54
- apiOrigin?: string;
55
- from?: string;
56
- to?: string;
57
- length?: number;
58
- berth?: string;
59
- /** en/it/fr/es (first two letters). Unset: the wizard is English and the
60
- booking page follows the booking's own locale. */
61
- locale?: string;
62
- currencySymbol?: string;
63
- variant?: 'navy' | 'dark';
64
- /** Present (even empty) = booking-page mode; a value overrides `?booking=`. */
65
- bookingId?: string | null;
66
- mapsApiKey?: string;
67
- mapStyle?: 'chart' | 'coastal';
68
- mapHeight?: string;
69
- mapWidth?: string;
70
- mapGap?: string;
71
- width?: string;
72
- layout?: 'stacked' | 'overlay';
73
- logoMark?: string | null;
74
- marinaName?: string;
75
- otherMarinas?: OtherMarina[];
76
- /** Sidon's origin for the Documents step's sign-in popup; defaults to https://sidonmarine.uk. */
77
- sidonOrigin?: string;
78
- /** Size in px of Sidon's sign-in window; default 480 x 720. */
79
- signInWidth?: number;
80
- signInHeight?: number;
81
- /** Origin serving OTA's /api/sailor/documents; '' (default) = this page's origin. */
82
- sailorApiOrigin?: string;
83
- /** Property only. Set: Details asks only for the boat and Next calls this
84
- instead of holding the berth; a string back shows as the error. */
85
- addToCart?: ((pick: SidonCartPick) => Promise<boolean | string>) | null;
86
- }
87
-
88
- export interface SidonBerthMapElement extends HTMLElement {
89
- /** OTA marina slug. */
90
- marina?: string;
91
- mapsApiKey?: string;
92
- /** '' (default) = this page's origin, where the forwarder route lives. */
93
- apiOrigin?: string;
94
- mapStyle?: 'chart' | 'coastal';
95
- locale?: string;
96
- currencySymbol?: string;
97
- from?: string;
98
- to?: string;
99
- length?: number;
100
- berth?: string;
101
- /** 'staff' (the OTA dashboard): every listed berth is clickable and fires
102
- sidon-berth-selected, occupied berths are painted for [from, to), and
103
- from/to follow their attributes. No card, availability or boat-length
104
- checks. Default 'guest'. */
105
- mode?: 'guest' | 'staff';
106
- /** Re-reads the map payload. Undefined until the element has mounted
107
- (a microtask after it is connected), so call `el.refresh?.()`. */
108
- readonly refresh?: () => void;
109
- bookPath?: string;
110
- logoMark?: string | null;
111
- marinaName?: string;
112
- otherMarinas?: OtherMarina[];
113
- mapHeight?: string;
114
- showWeather?: boolean;
115
- eyebrow?: string;
116
- cardTitle?: string;
117
- intro?: string;
118
- rangeLabel?: string;
119
- rangePlaceholder?: string;
120
- lengthLabel?: string;
121
- selectedLabel?: string;
122
- selectedPlaceholder?: string;
123
- ctaLabel?: string;
124
- }
125
-
126
- declare global {
127
- interface HTMLElementTagNameMap {
128
- 'sidon-booking-widget': SidonBookingWidgetElement;
129
- 'sidon-berth-map': SidonBerthMapElement;
130
- }
131
- // Dispatched with bubbles + composed, so listeners on any ancestor
132
- // element get the typed detail too.
133
- interface HTMLElementEventMap {
134
- 'sidon-step-change': CustomEvent<SidonStepChangeDetail>;
135
- 'sidon-loa-change': CustomEvent<SidonLoaChangeDetail>;
136
- 'sidon-booked': CustomEvent<SidonBookedDetail>;
137
- 'sidon-booking-status': CustomEvent<SidonBookingStatusDetail>;
138
- 'sidon-berth-selected': CustomEvent<SidonBerthSelectedDetail>;
139
- 'sidon-quickbook-submit': CustomEvent<SidonQuickbookSubmitDetail>;
140
- }
141
- }
1
+ // Hand-written typings for <sidon-booking-widget> and <sidon-berth-map>.
2
+ // The entry modules only register the elements (side-effect imports), so
3
+ // generated declarations come out as an empty `export {}`. The build copies
4
+ // this file verbatim to dist/elements.d.ts and both entry .d.ts files
5
+ // re-export it (scripts/write-element-types.mjs), which is why it imports
6
+ // nothing: a relative import would dangle in dist/.
7
+ //
8
+ // Keep it in step with the `props` blocks in BookingWidget.svelte and
9
+ // BerthMap.svelte and the events they emit. `npm run check` skips .d.ts
10
+ // files (skipLibCheck), so check an edit with:
11
+ // npx tsc --ignoreConfig --noEmit --skipLibCheck false --lib es2023,dom src/elements.d.ts
12
+
13
+ /** Peer-marina logo pin. Mirrors OtherMarina in lib/types.ts. */
14
+ export interface OtherMarina {
15
+ name: string;
16
+ lat: number;
17
+ lng: number;
18
+ logoMark: string | null;
19
+ /** Always host-supplied: the package owns no site's routing. */
20
+ href: string | null;
21
+ }
22
+
23
+ /** OTA booking status. An expired booking reports `cancelled`. */
24
+ export type SidonBookingStatus = 'hold' | 'pending' | 'confirmed' | 'declined' | 'cancelled';
25
+
26
+ /** 1 Documents, 2 Details, 3 Payment, 4 Booking. */
27
+ export interface SidonStepChangeDetail { step: 1 | 2 | 3 | 4 }
28
+ /** The booking widget fires this from the wizard only, never in booking-page mode. */
29
+ export interface SidonLoaChangeDetail { loa: number }
30
+ /** `bookingId` is OTA's booking UUID, `marina` the marina slug. */
31
+ export interface SidonBookedDetail { bookingId: string; marina: string }
32
+ export interface SidonBookingStatusDetail { bookingId: string; status: SidonBookingStatus }
33
+ /** A berth label, or null when deselected. */
34
+ export interface SidonBerthSelectedDetail { berthId: string | null }
35
+ /** addToCart's argument. Mirrors CartPick in lib/types.ts. */
36
+ export interface SidonCartPick {
37
+ berth: string;
38
+ from: string;
39
+ to: string;
40
+ length: number;
41
+ beam: number | null;
42
+ draft: number | null;
43
+ boatName: string;
44
+ notes?: string;
45
+ price: number | null;
46
+ }
47
+ /** Dates are `YYYY-MM-DD`; `berth` is a berth label. */
48
+ export interface SidonQuickbookSubmitDetail { from: string | null; to: string | null; length: number; berth: string | null }
49
+
50
+ // Element properties mirror the attributes, camelCased; optional like them.
51
+ export interface SidonBookingWidgetElement extends HTMLElement {
52
+ /** OTA marina slug. */
53
+ marina?: string;
54
+ /** '' (default) = this page's origin, where the forwarder route lives. */
55
+ apiOrigin?: string;
56
+ from?: string;
57
+ to?: string;
58
+ length?: number;
59
+ berth?: string;
60
+ /** en/it/fr/es (first two letters). Unset: the wizard is English and the
61
+ booking page follows the booking's own locale. */
62
+ locale?: string;
63
+ currencySymbol?: string;
64
+ variant?: 'navy' | 'dark';
65
+ /** Present (even empty) = booking-page mode; a value overrides `?booking=`. */
66
+ bookingId?: string | null;
67
+ mapsApiKey?: string;
68
+ mapStyle?: 'chart' | 'coastal';
69
+ mapHeight?: string;
70
+ mapWidth?: string;
71
+ mapGap?: string;
72
+ width?: string;
73
+ layout?: 'stacked' | 'overlay';
74
+ logoMark?: string | null;
75
+ marinaName?: string;
76
+ otherMarinas?: OtherMarina[];
77
+ /** Sidon's origin for the Documents step's sign-in popup; defaults to https://sidonmarine.uk. */
78
+ sidonOrigin?: string;
79
+ /** Size in px of Sidon's sign-in window; default 480 x 720. */
80
+ signInWidth?: number;
81
+ signInHeight?: number;
82
+ /** Origin serving OTA's /api/sailor/documents; '' (default) = this page's origin. */
83
+ sailorApiOrigin?: string;
84
+ /** Property only. Set: Details asks only for the boat and Next calls this
85
+ instead of holding the berth; a string back shows as the error. */
86
+ addToCart?: ((pick: SidonCartPick) => Promise<boolean | string>) | null;
87
+ }
88
+
89
+ export interface SidonBerthMapElement extends HTMLElement {
90
+ /** OTA marina slug. */
91
+ marina?: string;
92
+ mapsApiKey?: string;
93
+ /** '' (default) = this page's origin, where the forwarder route lives. */
94
+ apiOrigin?: string;
95
+ mapStyle?: 'chart' | 'coastal';
96
+ locale?: string;
97
+ currencySymbol?: string;
98
+ from?: string;
99
+ to?: string;
100
+ length?: number;
101
+ berth?: string;
102
+ /** 'staff' (the OTA dashboard): every listed berth is clickable and fires
103
+ sidon-berth-selected, occupied berths are painted for [from, to), and
104
+ from/to follow their attributes. No card, availability or boat-length
105
+ checks. Default 'guest'. */
106
+ mode?: 'guest' | 'staff';
107
+ /** Re-reads the map payload. Undefined until the element has mounted
108
+ (a microtask after it is connected), so call `el.refresh?.()`. */
109
+ readonly refresh?: () => void;
110
+ bookPath?: string;
111
+ logoMark?: string | null;
112
+ marinaName?: string;
113
+ otherMarinas?: OtherMarina[];
114
+ mapHeight?: string;
115
+ showWeather?: boolean;
116
+ eyebrow?: string;
117
+ cardTitle?: string;
118
+ intro?: string;
119
+ rangeLabel?: string;
120
+ rangePlaceholder?: string;
121
+ lengthLabel?: string;
122
+ selectedLabel?: string;
123
+ selectedPlaceholder?: string;
124
+ ctaLabel?: string;
125
+ }
126
+
127
+ declare global {
128
+ interface HTMLElementTagNameMap {
129
+ 'sidon-booking-widget': SidonBookingWidgetElement;
130
+ 'sidon-berth-map': SidonBerthMapElement;
131
+ }
132
+ // Dispatched with bubbles + composed, so listeners on any ancestor
133
+ // element get the typed detail too.
134
+ interface HTMLElementEventMap {
135
+ 'sidon-step-change': CustomEvent<SidonStepChangeDetail>;
136
+ 'sidon-loa-change': CustomEvent<SidonLoaChangeDetail>;
137
+ 'sidon-booked': CustomEvent<SidonBookedDetail>;
138
+ 'sidon-booking-status': CustomEvent<SidonBookingStatusDetail>;
139
+ 'sidon-berth-selected': CustomEvent<SidonBerthSelectedDetail>;
140
+ 'sidon-quickbook-submit': CustomEvent<SidonQuickbookSubmitDetail>;
141
+ }
142
+ }
@@ -4977,7 +4977,7 @@ async function Ya(e, t, n) {
4977
4977
  departure: n.departure,
4978
4978
  boat_length_m: String(n.boatLengthM)
4979
4979
  });
4980
- return n.boatBeamM && r.set("boat_beam_m", String(n.boatBeamM)), Ei(await qa(`${Si(e, t)}/availability?${r}`, "Failed to load availability"));
4980
+ return n.boatBeamM && r.set("boat_beam_m", String(n.boatBeamM)), n.boatDraftM && r.set("boat_draft_m", String(n.boatDraftM)), Ei(await qa(`${Si(e, t)}/availability?${r}`, "Failed to load availability"));
4981
4981
  }
4982
4982
  //#endregion
4983
4983
  //#region src/BerthMap.svelte
@@ -4359,7 +4359,7 @@ function no(e) {
4359
4359
  boat_length_m: e.boatLengthM,
4360
4360
  locale: e.locale
4361
4361
  }, n = e.contactPhone?.trim();
4362
- n && (t.contact_phone = n), e.boatBeamM != null && (t.boat_beam_m = e.boatBeamM);
4362
+ n && (t.contact_phone = n), e.boatBeamM != null && (t.boat_beam_m = e.boatBeamM), e.boatDraftM != null && (t.boat_draft_m = e.boatDraftM);
4363
4363
  let r = e.notes?.trim();
4364
4364
  return r && (t.notes = r), t;
4365
4365
  }
@@ -5271,7 +5271,7 @@ async function Ro(e, t, n) {
5271
5271
  departure: n.departure,
5272
5272
  boat_length_m: String(n.boatLengthM)
5273
5273
  });
5274
- return n.boatBeamM && r.set("boat_beam_m", String(n.boatBeamM)), Ya(await Mo(`${Va(e, t)}/availability?${r}`, "Failed to load availability"));
5274
+ return n.boatBeamM && r.set("boat_beam_m", String(n.boatBeamM)), n.boatDraftM && r.set("boat_draft_m", String(n.boatDraftM)), Ya(await Mo(`${Va(e, t)}/availability?${r}`, "Failed to load availability"));
5275
5275
  }
5276
5276
  async function zo(e, t, n, r) {
5277
5277
  let i = r ? { "X-Sailor-Token": r } : {};
@@ -5767,14 +5767,14 @@ Er(["click", "change"]), Ii(gs, {
5767
5767
  }, [], [], { mode: "open" });
5768
5768
  //#endregion
5769
5769
  //#region src/components/DetailsStep.svelte
5770
- var _s = /* @__PURE__ */ Y("<div class=\"sbw-field svelte-xjlajk\"><label for=\"sbw-contact-name\" class=\"svelte-xjlajk\"> <span class=\"sbw-required\">*</span></label> <input id=\"sbw-contact-name\" type=\"text\" required=\"\" maxlength=\"100\" autocomplete=\"name\" class=\"svelte-xjlajk\"/></div>"), vs = /* @__PURE__ */ Y("<div class=\"sbw-field-grid svelte-xjlajk\"><div class=\"sbw-field svelte-xjlajk\"><label for=\"sbw-email\" class=\"svelte-xjlajk\"> <span class=\"sbw-required\">*</span></label> <input id=\"sbw-email\" type=\"email\" required=\"\" maxlength=\"255\" autocomplete=\"email\" class=\"svelte-xjlajk\"/></div> <div class=\"sbw-field svelte-xjlajk\"><label for=\"sbw-phone\" class=\"svelte-xjlajk\"> </label> <input id=\"sbw-phone\" type=\"tel\" maxlength=\"30\" autocomplete=\"tel\" class=\"svelte-xjlajk\"/></div></div>"), ys = /* @__PURE__ */ Y("<div class=\"sbw-details svelte-xjlajk\"><div class=\"sbw-details-heading svelte-xjlajk\"> </div> <div class=\"sbw-field-grid svelte-xjlajk\"><!> <div class=\"sbw-field svelte-xjlajk\"><label for=\"sbw-boat-name\" class=\"svelte-xjlajk\"> <span class=\"sbw-required\">*</span></label> <input id=\"sbw-boat-name\" type=\"text\" required=\"\" maxlength=\"100\" class=\"svelte-xjlajk\"/></div></div> <!> <div class=\"sbw-field-grid svelte-xjlajk\"><div class=\"sbw-field svelte-xjlajk\"><label for=\"sbw-beam\" class=\"svelte-xjlajk\"> </label> <input id=\"sbw-beam\" type=\"number\" min=\"0.1\" step=\"0.1\" inputmode=\"decimal\" class=\"svelte-xjlajk\"/></div></div> <div class=\"sbw-field svelte-xjlajk\"><label for=\"sbw-notes\" class=\"svelte-xjlajk\"> </label> <textarea id=\"sbw-notes\" rows=\"3\" maxlength=\"2000\" class=\"svelte-xjlajk\"></textarea></div></div>"), bs = {
5770
+ var _s = /* @__PURE__ */ Y("<div class=\"sbw-field svelte-xjlajk\"><label for=\"sbw-contact-name\" class=\"svelte-xjlajk\"> <span class=\"sbw-required\">*</span></label> <input id=\"sbw-contact-name\" type=\"text\" required=\"\" maxlength=\"100\" autocomplete=\"name\" class=\"svelte-xjlajk\"/></div>"), vs = /* @__PURE__ */ Y("<div class=\"sbw-field-grid svelte-xjlajk\"><div class=\"sbw-field svelte-xjlajk\"><label for=\"sbw-email\" class=\"svelte-xjlajk\"> <span class=\"sbw-required\">*</span></label> <input id=\"sbw-email\" type=\"email\" required=\"\" maxlength=\"255\" autocomplete=\"email\" class=\"svelte-xjlajk\"/></div> <div class=\"sbw-field svelte-xjlajk\"><label for=\"sbw-phone\" class=\"svelte-xjlajk\"> </label> <input id=\"sbw-phone\" type=\"tel\" maxlength=\"30\" autocomplete=\"tel\" class=\"svelte-xjlajk\"/></div></div>"), ys = /* @__PURE__ */ Y("<div class=\"sbw-details svelte-xjlajk\"><div class=\"sbw-details-heading svelte-xjlajk\"> </div> <div class=\"sbw-field-grid svelte-xjlajk\"><!> <div class=\"sbw-field svelte-xjlajk\"><label for=\"sbw-boat-name\" class=\"svelte-xjlajk\"> <span class=\"sbw-required\">*</span></label> <input id=\"sbw-boat-name\" type=\"text\" required=\"\" maxlength=\"100\" class=\"svelte-xjlajk\"/></div></div> <!> <div class=\"sbw-field-grid svelte-xjlajk\"><div class=\"sbw-field svelte-xjlajk\"><label for=\"sbw-beam\" class=\"svelte-xjlajk\"> </label> <input id=\"sbw-beam\" type=\"number\" min=\"0.1\" step=\"0.1\" inputmode=\"decimal\" class=\"svelte-xjlajk\"/></div> <div class=\"sbw-field svelte-xjlajk\"><label for=\"sbw-draft\" class=\"svelte-xjlajk\"> </label> <input id=\"sbw-draft\" type=\"number\" min=\"0.1\" step=\"0.1\" inputmode=\"decimal\" class=\"svelte-xjlajk\"/></div></div> <div class=\"sbw-field svelte-xjlajk\"><label for=\"sbw-notes\" class=\"svelte-xjlajk\"> </label> <textarea id=\"sbw-notes\" rows=\"3\" maxlength=\"2000\" class=\"svelte-xjlajk\"></textarea></div></div>"), bs = {
5771
5771
  hash: "svelte-xjlajk",
5772
- code: ".sbw-details.svelte-xjlajk {display:flex;flex-direction:column;gap:20px;padding:20px;}.sbw-details-heading.svelte-xjlajk {font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:#252525;}.sbw-field-grid.svelte-xjlajk {display:grid;grid-template-columns:1fr 1fr;gap:16px;}.sbw-field.svelte-xjlajk {display:flex;flex-direction:column;gap:6px;}.sbw-field.svelte-xjlajk label:where(.svelte-xjlajk) {font-size:11px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:#252525;}.sbw-field.svelte-xjlajk input:where(.svelte-xjlajk),\n .sbw-field.svelte-xjlajk textarea:where(.svelte-xjlajk) {height:48px;padding:0 14px;border:1px solid #e4e7ec;border-radius:var(--sbw-radius, 10px);font-size:15px;color:var(--brand-navy, #16365b);background:#fff;outline:none;font-family:inherit;}.sbw-field.svelte-xjlajk textarea:where(.svelte-xjlajk) {height:auto;padding:10px 14px;resize:vertical;}.sbw-field.svelte-xjlajk input:where(.svelte-xjlajk):focus,\n .sbw-field.svelte-xjlajk textarea:where(.svelte-xjlajk):focus {border-color:var(--brand-navy, #16365b);}"
5772
+ code: ".sbw-details.svelte-xjlajk {display:flex;flex-direction:column;gap:20px;padding:20px;}.sbw-details-heading.svelte-xjlajk {font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:#252525;}.sbw-field-grid.svelte-xjlajk {display:grid;grid-template-columns:1fr 1fr;gap:16px;}.sbw-field.svelte-xjlajk {display:flex;flex-direction:column;gap:6px;}.sbw-field.svelte-xjlajk label:where(.svelte-xjlajk) {font-size:11px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:#252525;}.sbw-field.svelte-xjlajk input:where(.svelte-xjlajk),\r\n .sbw-field.svelte-xjlajk textarea:where(.svelte-xjlajk) {height:48px;padding:0 14px;border:1px solid #e4e7ec;border-radius:var(--sbw-radius, 10px);font-size:15px;color:var(--brand-navy, #16365b);background:#fff;outline:none;font-family:inherit;}.sbw-field.svelte-xjlajk textarea:where(.svelte-xjlajk) {height:auto;padding:10px 14px;resize:vertical;}.sbw-field.svelte-xjlajk input:where(.svelte-xjlajk):focus,\r\n .sbw-field.svelte-xjlajk textarea:where(.svelte-xjlajk):focus {border-color:var(--brand-navy, #16365b);}"
5773
5773
  };
5774
5774
  function xs(e, t) {
5775
5775
  Ye(t, !0), ai(e, bs);
5776
- let n = $(t, "contactName", 15, ""), r = $(t, "contactEmail", 15, ""), i = $(t, "contactPhone", 15, ""), a = $(t, "boatName", 15, ""), o = $(t, "boatBeamM", 15, null), s = $(t, "notes", 15, ""), c = $(t, "emailLocked", 7, !1), l = $(t, "contact", 7, !0), u = $(t, "labels", 7);
5777
- var d = {
5776
+ let n = $(t, "contactName", 15, ""), r = $(t, "contactEmail", 15, ""), i = $(t, "contactPhone", 15, ""), a = $(t, "boatName", 15, ""), o = $(t, "boatBeamM", 15, null), s = $(t, "boatDraftM", 15, null), c = $(t, "notes", 15, ""), l = $(t, "emailLocked", 7, !1), u = $(t, "contact", 7, !0), d = $(t, "labels", 7);
5777
+ var f = {
5778
5778
  get contactName() {
5779
5779
  return n();
5780
5780
  },
@@ -5805,70 +5805,80 @@ function xs(e, t) {
5805
5805
  set boatBeamM(e = null) {
5806
5806
  o(e), B();
5807
5807
  },
5808
- get notes() {
5808
+ get boatDraftM() {
5809
5809
  return s();
5810
5810
  },
5811
- set notes(e = "") {
5811
+ set boatDraftM(e = null) {
5812
5812
  s(e), B();
5813
5813
  },
5814
- get emailLocked() {
5814
+ get notes() {
5815
5815
  return c();
5816
5816
  },
5817
- set emailLocked(e = !1) {
5817
+ set notes(e = "") {
5818
5818
  c(e), B();
5819
5819
  },
5820
- get contact() {
5820
+ get emailLocked() {
5821
5821
  return l();
5822
5822
  },
5823
- set contact(e = !0) {
5823
+ set emailLocked(e = !1) {
5824
5824
  l(e), B();
5825
5825
  },
5826
- get labels() {
5826
+ get contact() {
5827
5827
  return u();
5828
5828
  },
5829
- set labels(e) {
5829
+ set contact(e = !0) {
5830
5830
  u(e), B();
5831
+ },
5832
+ get labels() {
5833
+ return d();
5834
+ },
5835
+ set labels(e) {
5836
+ d(e), B();
5831
5837
  }
5832
- }, f = ys(), p = U(f), m = U(p, !0);
5833
- F(p);
5834
- var h = W(p, 2), g = U(h), _ = (e) => {
5838
+ }, p = ys(), m = U(p), h = U(m, !0);
5839
+ F(m);
5840
+ var g = W(m, 2), _ = U(g), v = (e) => {
5835
5841
  var t = _s(), r = U(t), i = U(r);
5836
5842
  Ve(), F(r);
5837
5843
  var a = W(r, 2);
5838
- yi(a), F(t), G(() => Z(i, `${u().skipperName ?? ""} `)), Ti(a, n), X(e, t);
5844
+ yi(a), F(t), G(() => Z(i, `${d().skipperName ?? ""} `)), Ti(a, n), X(e, t);
5839
5845
  };
5840
- Q(g, (e) => {
5841
- l() && e(_);
5846
+ Q(_, (e) => {
5847
+ u() && e(v);
5842
5848
  });
5843
- var v = W(g, 2), y = U(v), b = U(y);
5844
- Ve(), F(y);
5845
- var x = W(y, 2);
5846
- yi(x), F(v), F(h);
5847
- var S = W(h, 2), C = (e) => {
5849
+ var y = W(_, 2), b = U(y), x = U(b);
5850
+ Ve(), F(b);
5851
+ var S = W(b, 2);
5852
+ yi(S), F(y), F(g);
5853
+ var C = W(g, 2), ee = (e) => {
5848
5854
  var t = vs(), n = U(t), a = U(n), o = U(a);
5849
5855
  Ve(), F(a);
5850
5856
  var s = W(a, 2);
5851
5857
  yi(s), F(n);
5852
- var l = W(n, 2), d = U(l), f = U(d, !0);
5853
- F(d);
5854
- var p = W(d, 2);
5855
- yi(p), F(l), F(t), G(() => {
5856
- Z(o, `${u().email ?? ""} `), s.readOnly = c(), Z(f, u().phone);
5858
+ var c = W(n, 2), u = U(c), f = U(u, !0);
5859
+ F(u);
5860
+ var p = W(u, 2);
5861
+ yi(p), F(c), F(t), G(() => {
5862
+ Z(o, `${d().email ?? ""} `), s.readOnly = l(), Z(f, d().phone);
5857
5863
  }), Ti(s, r), Ti(p, i), X(e, t);
5858
5864
  };
5859
- Q(S, (e) => {
5860
- l() && e(C);
5865
+ Q(C, (e) => {
5866
+ u() && e(ee);
5861
5867
  });
5862
- var ee = W(S, 2), w = U(ee), T = U(w), te = U(T, !0);
5863
- F(T);
5864
- var ne = W(T, 2);
5865
- yi(ne), F(w), F(ee);
5866
- var E = W(ee, 2), D = U(E), O = U(D, !0);
5867
- F(D);
5868
- var k = W(D, 2);
5869
- return dt(k), F(E), F(f), G(() => {
5870
- Z(m, u().yourDetails), Z(b, `${u().boatName ?? ""} `), Z(te, u().wizard.boatBeam), Z(O, u().notes);
5871
- }), Ti(x, a), Ti(ne, o), Ti(k, s), X(e, f), Xe(d);
5868
+ var w = W(C, 2), T = U(w), te = U(T), ne = U(te, !0);
5869
+ F(te);
5870
+ var E = W(te, 2);
5871
+ yi(E), F(T);
5872
+ var D = W(T, 2), O = U(D), k = U(O, !0);
5873
+ F(O);
5874
+ var re = W(O, 2);
5875
+ yi(re), F(D), F(w);
5876
+ var A = W(w, 2), ie = U(A), ae = U(ie, !0);
5877
+ F(ie);
5878
+ var j = W(ie, 2);
5879
+ return dt(j), F(A), F(p), G(() => {
5880
+ Z(h, d().yourDetails), Z(x, `${d().boatName ?? ""} `), Z(ne, d().wizard.boatBeam), Z(k, d().wizard.boatDraft), Z(ae, d().notes);
5881
+ }), Ti(S, a), Ti(E, o), Ti(re, s), Ti(j, c), X(e, p), Xe(f);
5872
5882
  }
5873
5883
  Ii(xs, {
5874
5884
  contactName: {},
@@ -5876,6 +5886,7 @@ Ii(xs, {
5876
5886
  contactPhone: {},
5877
5887
  boatName: {},
5878
5888
  boatBeamM: {},
5889
+ boatDraftM: {},
5879
5890
  notes: {},
5880
5891
  emailLocked: {},
5881
5892
  contact: {},
@@ -5893,6 +5904,7 @@ var Ss = {
5893
5904
  ],
5894
5905
  wizard: {
5895
5906
  boatBeam: "Baglio (m)",
5907
+ boatDraft: "Pescaggio (m)",
5896
5908
  errDates: "Scegli le date di arrivo e partenza.",
5897
5909
  errLength: "Indica la lunghezza dell'imbarcazione.",
5898
5910
  errNoBerth: "Nessun posto barca adatto a questa imbarcazione in queste date. Prova altre date o contatta la marina.",
@@ -6042,6 +6054,7 @@ var Ss = {
6042
6054
  ],
6043
6055
  wizard: {
6044
6056
  boatBeam: "Beam (m)",
6057
+ boatDraft: "Draft (m)",
6045
6058
  errDates: "Please pick arrival and departure dates.",
6046
6059
  errLength: "Please set your boat length.",
6047
6060
  errNoBerth: "No berth fits this boat on these dates. Try other dates or contact the marina.",
@@ -6191,6 +6204,7 @@ var Ss = {
6191
6204
  ],
6192
6205
  wizard: {
6193
6206
  boatBeam: "Largeur (m)",
6207
+ boatDraft: "Tirant d'eau (m)",
6194
6208
  errDates: "Choisissez les dates d'arrivée et de départ.",
6195
6209
  errLength: "Indiquez la longueur de votre bateau.",
6196
6210
  errNoBerth: "Aucune place ne convient à ce bateau à ces dates. Essayez d'autres dates ou contactez la marina.",
@@ -6340,6 +6354,7 @@ var Ss = {
6340
6354
  ],
6341
6355
  wizard: {
6342
6356
  boatBeam: "Manga (m)",
6357
+ boatDraft: "Calado (m)",
6343
6358
  errDates: "Elige las fechas de llegada y salida.",
6344
6359
  errLength: "Indica la eslora de tu barco.",
6345
6360
  errNoBerth: "Ningún amarre admite este barco en esas fechas. Prueba otras fechas o contacta con la marina.",
@@ -13273,7 +13288,7 @@ function Fc() {
13273
13288
  //#region src/BookingWidget.svelte
13274
13289
  var Ic = /* @__PURE__ */ Y("<div><!></div>"), Lc = /* @__PURE__ */ Y("<div class=\"sbw-load-error svelte-h0br6q\" role=\"alert\"> </div>"), Rc = /* @__PURE__ */ Y("<!> <!> <!> <!> <!>", 1), zc = /* @__PURE__ */ Y("<!> <div><!></div>", 1), Bc = {
13275
13290
  hash: "svelte-h0br6q",
13276
- code: ":host {--sbw-radius: 10px;display:block;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;box-sizing:border-box;max-width:560px; /* fallback until the width prop's effect runs; see script */margin:0 auto;}:host .svelte-h0br6q {box-sizing:border-box;}.sbw-root.svelte-h0br6q {border-radius:var(--sbw-radius);overflow:hidden;background:#fff; /* solid card even where a step leaves gaps */box-shadow:0 8px 32px rgba(0, 0, 0, 0.16);}\n /* Inline, not a replacement for the card: the guest can still change\n dates or length, and the next successful load clears it. */.sbw-load-error.svelte-h0br6q {padding:16px 20px;font-size:14px;color:#cc4949;background:#fff;}\n /* Sits outside .sbw-root (not a child of it) specifically so map-width\n can be set to 100vw and actually break out full-bleed - .sbw-root's\n own overflow:hidden (for its rounded corners) would otherwise clip\n anything wider than the card right back down to the card's width,\n no matter what width/margin the child itself asks for. */.sbw-map-slot.svelte-h0br6q {border-radius:var(--sbw-radius) var(--sbw-radius) 0 0;overflow:hidden;\n /* Google's panes carry z-indexes (the logo overlay's floatPane is ~104);\n contained here, so the overlay card's z-index:1 paints above them. */isolation:isolate;}.sbw-map-slot--full-bleed.svelte-h0br6q {\n /* Standard full-bleed trick: escapes a centered ancestor of any width\n by sizing to the viewport and pulling back by the half-difference.\n Only correct when width is actually 100vw (see class:sbw-map-slot--\n full-bleed above) - applying this margin at any other width would\n misposition it instead of centering it. */margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);border-radius:0;}\n /* Overlay: the card's negative-margin pull-up does the overlap, and its\n position/z-index paints it over the map's own positioned layers. */\n /* Below 768px overlay stacks; map-height/map-gap are sized for the\n overlay, so fall back to a half-screen map and a small gap. */\n @media (max-width: 767px) {.sbw-map-slot--overlay.svelte-h0br6q {height:50vh !important;margin-bottom:24px !important;}\n }\n @media (min-width: 768px) {.sbw-map-slot--overlay.svelte-h0br6q {margin-bottom:0 !important; /* beats the stacked inline margin */border-radius:0;}.sbw-root--overlay.svelte-h0br6q {position:relative;z-index:1;max-width:var(--sbw-card-width, 560px);margin-top:calc(var(--sbw-map-gap, 24px) - var(--sbw-map-h, 280px));margin-left:var(--sbw-card-inset, 24px);}\n }"
13291
+ code: ":host {--sbw-radius: 10px;display:block;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;box-sizing:border-box;max-width:560px; /* fallback until the width prop's effect runs; see script */margin:0 auto;}:host .svelte-h0br6q {box-sizing:border-box;}.sbw-root.svelte-h0br6q {border-radius:var(--sbw-radius);overflow:hidden;background:#fff; /* solid card even where a step leaves gaps */box-shadow:0 8px 32px rgba(0, 0, 0, 0.16);}\r\n /* Inline, not a replacement for the card: the guest can still change\r\n dates or length, and the next successful load clears it. */.sbw-load-error.svelte-h0br6q {padding:16px 20px;font-size:14px;color:#cc4949;background:#fff;}\r\n /* Sits outside .sbw-root (not a child of it) specifically so map-width\r\n can be set to 100vw and actually break out full-bleed - .sbw-root's\r\n own overflow:hidden (for its rounded corners) would otherwise clip\r\n anything wider than the card right back down to the card's width,\r\n no matter what width/margin the child itself asks for. */.sbw-map-slot.svelte-h0br6q {border-radius:var(--sbw-radius) var(--sbw-radius) 0 0;overflow:hidden;\r\n /* Google's panes carry z-indexes (the logo overlay's floatPane is ~104);\r\n contained here, so the overlay card's z-index:1 paints above them. */isolation:isolate;}.sbw-map-slot--full-bleed.svelte-h0br6q {\r\n /* Standard full-bleed trick: escapes a centered ancestor of any width\r\n by sizing to the viewport and pulling back by the half-difference.\r\n Only correct when width is actually 100vw (see class:sbw-map-slot--\r\n full-bleed above) - applying this margin at any other width would\r\n misposition it instead of centering it. */margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);border-radius:0;}\r\n /* Overlay: the card's negative-margin pull-up does the overlap, and its\r\n position/z-index paints it over the map's own positioned layers. */\r\n /* Below 768px overlay stacks; map-height/map-gap are sized for the\r\n overlay, so fall back to a half-screen map and a small gap. */\r\n @media (max-width: 767px) {.sbw-map-slot--overlay.svelte-h0br6q {height:50vh !important;margin-bottom:24px !important;}\r\n }\r\n @media (min-width: 768px) {.sbw-map-slot--overlay.svelte-h0br6q {margin-bottom:0 !important; /* beats the stacked inline margin */border-radius:0;}.sbw-root--overlay.svelte-h0br6q {position:relative;z-index:1;max-width:var(--sbw-card-width, 560px);margin-top:calc(var(--sbw-map-gap, 24px) - var(--sbw-map-h, 280px));margin-left:var(--sbw-card-inset, 24px);}\r\n }"
13277
13292
  };
13278
13293
  function Vc(e, t) {
13279
13294
  Ye(t, !0), ai(e, Bc);
@@ -13308,10 +13323,10 @@ function Vc(e, t) {
13308
13323
  if (e) return e;
13309
13324
  let t = ja(i()) ?? new Date((/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0));
13310
13325
  return new Date(t.getTime() + 2592e5);
13311
- }))), se = /* @__PURE__ */ V(null), ce = /* @__PURE__ */ V(""), le = /* @__PURE__ */ V(""), ue = /* @__PURE__ */ V(""), de = /* @__PURE__ */ V(""), fe = /* @__PURE__ */ V(null), pe = /* @__PURE__ */ V(""), me = /* @__PURE__ */ V(null), he = /* @__PURE__ */ V(an([])), ge = /* @__PURE__ */ V(null), _e = /* @__PURE__ */ V(0), ve = /* @__PURE__ */ V(!1), ye = /* @__PURE__ */ V(null), be = /* @__PURE__ */ V(null), xe = /* @__PURE__ */ V(null), Se = /* @__PURE__ */ V({}), Ce = /* @__PURE__ */ V(null), we = /* @__PURE__ */ L(() => !J(me) || !!J(me).stripePublishableKey), Te = /* @__PURE__ */ V(void 0), M = /* @__PURE__ */ V(!1), Ee = /* @__PURE__ */ V(null), De = /* @__PURE__ */ V("#16365b"), Oe = /* @__PURE__ */ V("#c9a86b"), ke = /* @__PURE__ */ V(""), Ae = /* @__PURE__ */ V("#252525");
13326
+ }))), se = /* @__PURE__ */ V(null), ce = /* @__PURE__ */ V(""), le = /* @__PURE__ */ V(""), ue = /* @__PURE__ */ V(""), de = /* @__PURE__ */ V(""), fe = /* @__PURE__ */ V(null), pe = /* @__PURE__ */ V(null), me = /* @__PURE__ */ V(""), he = /* @__PURE__ */ V(null), ge = /* @__PURE__ */ V(an([])), _e = /* @__PURE__ */ V(null), ve = /* @__PURE__ */ V(0), ye = /* @__PURE__ */ V(!1), be = /* @__PURE__ */ V(null), xe = /* @__PURE__ */ V(null), Se = /* @__PURE__ */ V(null), Ce = /* @__PURE__ */ V({}), we = /* @__PURE__ */ V(null), Te = /* @__PURE__ */ L(() => !J(he) || !!J(he).stripePublishableKey), M = /* @__PURE__ */ V(void 0), Ee = /* @__PURE__ */ V(!1), De = /* @__PURE__ */ V(null), Oe = /* @__PURE__ */ V("#16365b"), ke = /* @__PURE__ */ V("#c9a86b"), Ae = /* @__PURE__ */ V(""), je = /* @__PURE__ */ V("#252525");
13312
13327
  qr(() => {
13313
13328
  let e = getComputedStyle(ne);
13314
- H(Ae, e.getPropertyValue("--brand-ink").trim() || J(Ae), !0), H(De, e.getPropertyValue("--brand-navy").trim() || J(De), !0), H(Oe, e.getPropertyValue("--brand-gold").trim() || J(Oe), !0), H(ke, e.getPropertyValue("--brand-sea").trim(), !0);
13329
+ H(je, e.getPropertyValue("--brand-ink").trim() || J(je), !0), H(Oe, e.getPropertyValue("--brand-navy").trim() || J(Oe), !0), H(ke, e.getPropertyValue("--brand-gold").trim() || J(ke), !0), H(Ae, e.getPropertyValue("--brand-sea").trim(), !0);
13315
13330
  }), qr(() => {
13316
13331
  let e = new ResizeObserver(() => {
13317
13332
  window.dispatchEvent(new Event("resize"));
@@ -13320,58 +13335,58 @@ function Vc(e, t) {
13320
13335
  }), qr(() => {
13321
13336
  _() === "overlay" ? (ne.style.maxWidth = "none", ne.style.setProperty("--sbw-card-width", g())) : ne.style.maxWidth = g();
13322
13337
  });
13323
- let je = /* @__PURE__ */ V(void 0), Me = /* @__PURE__ */ V(void 0);
13324
- function Ne() {
13325
- return _() !== "overlay" || !J(je) || !J(Me) || !matchMedia("(min-width: 768px)").matches ? 0 : J(Me).getBoundingClientRect().right - J(je).getBoundingClientRect().left;
13338
+ let Me = /* @__PURE__ */ V(void 0), Ne = /* @__PURE__ */ V(void 0);
13339
+ function Pe() {
13340
+ return _() !== "overlay" || !J(Me) || !J(Ne) || !matchMedia("(min-width: 768px)").matches ? 0 : J(Ne).getBoundingClientRect().right - J(Me).getBoundingClientRect().left;
13326
13341
  }
13327
- let Pe = /* @__PURE__ */ L(() => !!d() && !k && !J(ge)), Fe = /* @__PURE__ */ L(() => J(fe) != null && J(fe) > 0 ? J(fe) : null), Ie = /* @__PURE__ */ L(() => (J(me)?.berths ?? []).filter((e) => e.status === "available")), Le = /* @__PURE__ */ L(() => !J(Ie).length || J(Ie).some((e) => e.lengthM == null) ? 200 : Math.max(...J(Ie).map((e) => e.lengthM ?? 0))), N = /* @__PURE__ */ L(() => J(se) && J(he).some((e) => e.label === J(se)) ? J(se) : ao(J(he))), Re = /* @__PURE__ */ L(() => J(he).find((e) => e.label === J(N)) ?? null), P = /* @__PURE__ */ L(() => J(Re)?.totalPrice == null ? null : co(J(Re).totalPrice, J(me)?.currency ?? null, l(), J(D))), ze = !1;
13342
+ let Fe = /* @__PURE__ */ L(() => !!d() && !k && !J(_e)), Ie = /* @__PURE__ */ L(() => J(fe) != null && J(fe) > 0 ? J(fe) : null), Le = /* @__PURE__ */ L(() => J(pe) != null && J(pe) > 0 ? J(pe) : null), N = /* @__PURE__ */ L(() => (J(he)?.berths ?? []).filter((e) => e.status === "available")), Re = /* @__PURE__ */ L(() => !J(N).length || J(N).some((e) => e.lengthM == null) ? 200 : Math.max(...J(N).map((e) => e.lengthM ?? 0))), P = /* @__PURE__ */ L(() => J(se) && J(ge).some((e) => e.label === J(se)) ? J(se) : ao(J(ge))), ze = /* @__PURE__ */ L(() => J(ge).find((e) => e.label === J(P)) ?? null), Be = /* @__PURE__ */ L(() => J(ze)?.totalPrice == null ? null : co(J(ze).totalPrice, J(he)?.currency ?? null, l(), J(D))), Ve = !1;
13328
13343
  wn(() => {
13329
- ze || !J(Ie).length || (ze = !0, J(ae) > J(Le) && H(ae, J(Le), !0));
13344
+ Ve || !J(N).length || (Ve = !0, J(ae) > J(Re) && H(ae, J(Re), !0));
13330
13345
  }), wn(() => {
13331
13346
  let e = s();
13332
13347
  _r(() => {
13333
13348
  J(A) <= 2 && H(se, e || null, !0);
13334
13349
  });
13335
13350
  });
13336
- let Be = {
13351
+ let He = {
13337
13352
  arrival: "",
13338
13353
  departure: ""
13339
- }, Ve = /* @__PURE__ */ L(() => J(j) && J(oe) && +J(oe) > +J(j) ? Be = {
13354
+ }, Ue = /* @__PURE__ */ L(() => J(j) && J(oe) && +J(oe) > +J(j) ? He = {
13340
13355
  arrival: Aa(J(j)),
13341
13356
  departure: Aa(J(oe))
13342
- } : Be), He = /* @__PURE__ */ V(1);
13357
+ } : He), We = /* @__PURE__ */ V(1);
13343
13358
  qr(() => {
13344
- k || Lo(r(), n(), _r(() => J(Ve)), null).then((e) => {
13345
- e.requirements.length || (H(He, 2), J(A) === 1 && (H(ve, !0), H(A, 2)));
13359
+ k || Lo(r(), n(), _r(() => J(Ue)), null).then((e) => {
13360
+ e.requirements.length || (H(We, 2), J(A) === 1 && (H(ye, !0), H(A, 2)));
13346
13361
  }, () => {});
13347
13362
  });
13348
- let Ue = {
13363
+ let Ge = {
13349
13364
  email: "",
13350
13365
  name: ""
13351
13366
  };
13352
13367
  wn(() => {
13353
- let e = J(ye);
13368
+ let e = J(be);
13354
13369
  _r(() => {
13355
13370
  if (e) {
13356
- H(le, Ue.email = e.email, !0), !J(ce).trim() && e.name && H(ce, Ue.name = e.name, !0);
13371
+ H(le, Ge.email = e.email, !0), !J(ce).trim() && e.name && H(ce, Ge.name = e.name, !0);
13357
13372
  return;
13358
13373
  }
13359
- Ue.email && J(le) === Ue.email && H(le, ""), Ue.name && J(ce) === Ue.name && H(ce, ""), Ue = {
13374
+ Ge.email && J(le) === Ge.email && H(le, ""), Ge.name && J(ce) === Ge.name && H(ce, ""), Ge = {
13360
13375
  email: "",
13361
13376
  name: ""
13362
13377
  };
13363
13378
  });
13364
13379
  }), wn(() => {
13365
- let e = J(xe);
13380
+ let e = J(Se);
13366
13381
  e && _r(() => {
13367
13382
  H(ae, e, !0);
13368
13383
  });
13369
13384
  });
13370
- let We = "";
13385
+ let Ke = "";
13371
13386
  wn(() => {
13372
- let e = J(be);
13387
+ let e = J(xe);
13373
13388
  _r(() => {
13374
- e && !J(de).trim() ? H(de, We = e, !0) : !e && We && J(de) === We && H(de, We = "", !0);
13389
+ e && !J(de).trim() ? H(de, Ke = e, !0) : !e && Ke && J(de) === Ke && H(de, Ke = "", !0);
13375
13390
  });
13376
13391
  }), wn(() => {
13377
13392
  if (k) return;
@@ -13379,12 +13394,12 @@ function Vc(e, t) {
13379
13394
  from: Aa(J(j)),
13380
13395
  to: Aa(J(oe))
13381
13396
  } : void 0;
13382
- J(_e);
13397
+ J(ve);
13383
13398
  let t = !1, i = setTimeout(() => {
13384
13399
  Io(r(), n(), e).then((e) => {
13385
- t || (H(me, e, !0), H(ge, null));
13400
+ t || (H(he, e, !0), H(_e, null));
13386
13401
  }).catch(() => {
13387
- t || H(ge, J(O).wizard.errLoad, !0);
13402
+ t || H(_e, J(O).wizard.errLoad, !0);
13388
13403
  });
13389
13404
  }, 200);
13390
13405
  return () => {
@@ -13396,14 +13411,15 @@ function Vc(e, t) {
13396
13411
  arrival: Aa(J(j)),
13397
13412
  departure: Aa(J(oe)),
13398
13413
  boatLengthM: J(ae),
13399
- boatBeamM: J(Fe)
13414
+ boatBeamM: J(Ie),
13415
+ boatDraftM: J(Le)
13400
13416
  };
13401
- J(_e);
13417
+ J(ve);
13402
13418
  let t = !1, i = setTimeout(() => {
13403
13419
  Ro(r(), n(), e).then((e) => {
13404
- t || (H(he, e, !0), H(ge, null));
13420
+ t || (H(ge, e, !0), H(_e, null));
13405
13421
  }).catch(() => {
13406
- t || H(ge, J(O).wizard.errLoad, !0);
13422
+ t || H(_e, J(O).wizard.errLoad, !0);
13407
13423
  });
13408
13424
  }, 200);
13409
13425
  return () => {
@@ -13414,52 +13430,53 @@ function Vc(e, t) {
13414
13430
  }), wn(() => {
13415
13431
  k || E("sidon-loa-change", { loa: J(ae) });
13416
13432
  });
13417
- function Ge(e) {
13433
+ function qe(e) {
13418
13434
  J(A) <= 2 && H(se, e, !0);
13419
13435
  }
13420
- function Ke(e) {
13421
- e < J(A) && it();
13436
+ function Je(e) {
13437
+ e < J(A) && ot();
13422
13438
  }
13423
- function qe() {
13424
- J(M) || (H(Ee, null), J(A) === 1 ? J(ve) && H(A, 2) : J(A) === 2 ? J(te) ? Qe() : et() : J(A) === 3 && nt());
13425
- }
13426
- let Je = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
13427
13439
  function Ze() {
13440
+ J(Ee) || (H(De, null), J(A) === 1 ? J(ye) && H(A, 2) : J(A) === 2 ? J(te) ? et() : nt() : J(A) === 3 && it());
13441
+ }
13442
+ let Qe = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
13443
+ function $e() {
13428
13444
  let e = J(O).wizard;
13429
- return !J(j) || !J(oe) || +J(oe) <= +J(j) ? e.errDates : J(ae) > 0 ? J(N) ? !J(te) && !J(ce).trim() ? e.errName : J(de).trim() ? !J(te) && !Je.test(J(le).trim()) ? e.errEmail : null : e.errBoatName : e.errNoBerth : e.errLength;
13445
+ return !J(j) || !J(oe) || +J(oe) <= +J(j) ? e.errDates : J(ae) > 0 ? J(P) ? !J(te) && !J(ce).trim() ? e.errName : J(de).trim() ? !J(te) && !Qe.test(J(le).trim()) ? e.errEmail : null : e.errBoatName : e.errNoBerth : e.errLength;
13430
13446
  }
13431
- async function Qe() {
13432
- let e = Ze();
13433
- if (e) return void H(Ee, e, !0);
13434
- H(M, !0);
13447
+ async function et() {
13448
+ let e = $e();
13449
+ if (e) return void H(De, e, !0);
13450
+ H(Ee, !0);
13435
13451
  try {
13436
13452
  let e = await T()({
13437
- berth: J(N),
13453
+ berth: J(P),
13438
13454
  from: Aa(J(j)),
13439
13455
  to: Aa(J(oe)),
13440
13456
  length: J(ae),
13441
- beam: J(Fe),
13457
+ beam: J(Ie),
13458
+ draft: J(Le),
13442
13459
  boatName: J(de).trim(),
13443
- notes: J(pe).trim() || void 0,
13444
- price: J(Re)?.totalPrice ?? null
13460
+ notes: J(me).trim() || void 0,
13461
+ price: J(ze)?.totalPrice ?? null
13445
13462
  });
13446
- typeof e == "string" && H(Ee, e, !0);
13463
+ typeof e == "string" && H(De, e, !0);
13447
13464
  } catch {
13448
- H(Ee, J(O).wizard.errNetwork, !0);
13465
+ H(De, J(O).wizard.errNetwork, !0);
13449
13466
  } finally {
13450
- H(M, !1);
13467
+ H(Ee, !1);
13451
13468
  }
13452
13469
  }
13453
- function $e() {
13454
- return J(ye) ? Oo(S())?.token ?? null : null;
13470
+ function tt() {
13471
+ return J(be) ? Oo(S())?.token ?? null : null;
13455
13472
  }
13456
- async function et() {
13457
- let e = Ze();
13458
- if (e) return void H(Ee, e, !0);
13459
- H(M, !0);
13473
+ async function nt() {
13474
+ let e = $e();
13475
+ if (e) return void H(De, e, !0);
13476
+ H(Ee, !0);
13460
13477
  try {
13461
13478
  let e = await zo(r(), n(), {
13462
- berthLabel: J(N),
13479
+ berthLabel: J(P),
13463
13480
  arrival: Aa(J(j)),
13464
13481
  departure: Aa(J(oe)),
13465
13482
  contactName: J(ce).trim(),
@@ -13467,30 +13484,31 @@ function Vc(e, t) {
13467
13484
  contactPhone: J(ue).trim() || void 0,
13468
13485
  boatName: J(de).trim(),
13469
13486
  boatLengthM: J(ae),
13470
- boatBeamM: J(Fe),
13471
- notes: J(pe).trim() || void 0,
13487
+ boatBeamM: J(Ie),
13488
+ boatDraftM: J(Le),
13489
+ notes: J(me).trim() || void 0,
13472
13490
  locale: J(D)
13473
- }, $e()), t = {
13491
+ }, tt()), t = {
13474
13492
  id: e.booking.id,
13475
13493
  token: e.token
13476
13494
  };
13477
13495
  H(re, t, !0), Nc(n(), t);
13478
- let i = await Promise.allSettled(Object.values(J(Se)).map((e) => Uo(r(), n(), t, e)));
13479
- H(Se, {}), i.some((e) => e.status === "rejected") && H(Ee, J(O).docsStep.sendFailed, !0), e.payment ? (H(Ce, e, !0), H(A, 3)) : rt(t.id);
13496
+ let i = await Promise.allSettled(Object.values(J(Ce)).map((e) => Uo(r(), n(), t, e)));
13497
+ H(Ce, {}), i.some((e) => e.status === "rejected") && H(De, J(O).docsStep.sendFailed, !0), e.payment ? (H(we, e, !0), H(A, 3)) : at(t.id);
13480
13498
  } catch (e) {
13481
- tt(e);
13499
+ rt(e);
13482
13500
  } finally {
13483
- H(M, !1);
13501
+ H(Ee, !1);
13484
13502
  }
13485
13503
  }
13486
- function tt(e) {
13504
+ function rt(e) {
13487
13505
  let t = J(O).wizard;
13488
- if (!(e instanceof jo) || e.status === 0) return void H(Ee, t.errNetwork, !0);
13506
+ if (!(e instanceof jo) || e.status === 0) return void H(De, t.errNetwork, !0);
13489
13507
  if (Ja(e.status, e.message)) {
13490
- H(He, 1), H(A, 1), H(Ee, J(O).docsStep.missingNow, !0);
13508
+ H(We, 1), H(A, 1), H(De, J(O).docsStep.missingNow, !0);
13491
13509
  return;
13492
13510
  }
13493
- (e.status === 409 || e.status === 404) && tn(_e);
13511
+ (e.status === 409 || e.status === 404) && tn(ve);
13494
13512
  let n = {
13495
13513
  404: t.errTaken,
13496
13514
  409: t.errTaken,
@@ -13498,50 +13516,50 @@ function Vc(e, t) {
13498
13516
  502: t.errPayment,
13499
13517
  503: t.errUnavailable
13500
13518
  };
13501
- H(Ee, n[e.status] ?? (e.status >= 500 ? t.errUnavailable : e.message), !0);
13519
+ H(De, n[e.status] ?? (e.status >= 500 ? t.errUnavailable : e.message), !0);
13502
13520
  }
13503
- async function nt() {
13521
+ async function it() {
13504
13522
  let e = J(re);
13505
- if (!(!e || !J(Te))) {
13506
- H(M, !0);
13523
+ if (!(!e || !J(M))) {
13524
+ H(Ee, !0);
13507
13525
  try {
13508
- await J(Te).confirm();
13526
+ await J(M).confirm();
13509
13527
  } catch (e) {
13510
- H(Ee, e instanceof Error ? e.message : J(O).wizard.errNetwork, !0), H(M, !1);
13528
+ H(De, e instanceof Error ? e.message : J(O).wizard.errNetwork, !0), H(Ee, !1);
13511
13529
  return;
13512
13530
  }
13513
- await Vo(r(), n(), e).catch(() => {}), H(M, !1), rt(e.id);
13531
+ await Vo(r(), n(), e).catch(() => {}), H(Ee, !1), at(e.id);
13514
13532
  }
13515
13533
  }
13516
- function rt(e) {
13517
- H(Ce, null), H(A, 4), E("sidon-booked", {
13534
+ function at(e) {
13535
+ H(we, null), H(A, 4), E("sidon-booked", {
13518
13536
  bookingId: e,
13519
13537
  marina: n()
13520
13538
  });
13521
13539
  }
13522
- async function it() {
13540
+ async function ot() {
13523
13541
  let e = J(re);
13524
- if (J(M)) return;
13542
+ if (J(Ee)) return;
13525
13543
  if (J(A) === 2) {
13526
- H(Ee, null), H(A, J(He), !0);
13544
+ H(De, null), H(A, J(We), !0);
13527
13545
  return;
13528
13546
  }
13529
13547
  if (J(A) !== 3 || !e) return;
13530
- H(Ee, null), H(M, !0);
13548
+ H(De, null), H(Ee, !0);
13531
13549
  let t = await Ho(r(), n(), e).then(() => !0, (e) => e instanceof jo && e.status >= 400 && e.status < 500 && e.status !== 429);
13532
- if (H(M, !1), !t) return void H(Ee, J(O).wizard.errNetwork, !0);
13533
- Pc(n()), H(re, null), H(Ce, null), H(A, 2);
13550
+ if (H(Ee, !1), !t) return void H(De, J(O).wizard.errNetwork, !0);
13551
+ Pc(n()), H(re, null), H(we, null), H(A, 2);
13534
13552
  }
13535
- function at() {
13536
- Pc(n()), H(re, null), H(Ee, null), H(A, J(He), !0);
13553
+ function st() {
13554
+ Pc(n()), H(re, null), H(De, null), H(A, J(We), !0);
13537
13555
  }
13538
- function ot(e, t) {
13556
+ function ct(e, t) {
13539
13557
  t !== null && J(re) && E("sidon-booking-status", {
13540
13558
  bookingId: J(re).id,
13541
13559
  status: e
13542
13560
  });
13543
13561
  }
13544
- var st = {
13562
+ var lt = {
13545
13563
  get marina() {
13546
13564
  return n();
13547
13565
  },
@@ -13692,18 +13710,18 @@ function Vc(e, t) {
13692
13710
  set addToCart(e = null) {
13693
13711
  T(e), B();
13694
13712
  }
13695
- }, ct = zc(), lt = mn(ct), ut = (e) => {
13713
+ }, ut = zc(), dt = mn(ut), I = (e) => {
13696
13714
  var t = Ic();
13697
13715
  let n;
13698
13716
  var r = U(t);
13699
13717
  {
13700
13718
  let e = /* @__PURE__ */ L(() => ({
13701
- lat: J(me)?.profile.lat ?? 0,
13702
- lng: J(me)?.profile.lng ?? 0
13703
- })), t = /* @__PURE__ */ L(() => J(me)?.berths ?? []), n = /* @__PURE__ */ L(() => J(me)?.overlays ?? []), i = /* @__PURE__ */ L(() => J(me)?.layout ?? null), a = /* @__PURE__ */ L(() => J(Re) ? {
13704
- title: `${J(O).berth} ${J(Re).label}`,
13705
- price: J(P) ?? J(O).priceOnRequest,
13706
- note: J(O).nights(J(Re).nights)
13719
+ lat: J(he)?.profile.lat ?? 0,
13720
+ lng: J(he)?.profile.lng ?? 0
13721
+ })), t = /* @__PURE__ */ L(() => J(he)?.berths ?? []), n = /* @__PURE__ */ L(() => J(he)?.overlays ?? []), i = /* @__PURE__ */ L(() => J(he)?.layout ?? null), a = /* @__PURE__ */ L(() => J(ze) ? {
13722
+ title: `${J(O).berth} ${J(ze).label}`,
13723
+ price: J(Be) ?? J(O).priceOnRequest,
13724
+ note: J(O).nights(J(ze).nights)
13707
13725
  } : null);
13708
13726
  yo(r, {
13709
13727
  get mapsApiKey() {
@@ -13716,13 +13734,13 @@ function Vc(e, t) {
13716
13734
  return J(e);
13717
13735
  },
13718
13736
  get navy() {
13719
- return J(De);
13737
+ return J(Oe);
13720
13738
  },
13721
13739
  get gold() {
13722
- return J(Oe);
13740
+ return J(ke);
13723
13741
  },
13724
13742
  get sea() {
13725
- return J(ke);
13743
+ return J(Ae);
13726
13744
  },
13727
13745
  get logoMark() {
13728
13746
  return v();
@@ -13746,28 +13764,28 @@ function Vc(e, t) {
13746
13764
  return J(ae);
13747
13765
  },
13748
13766
  get selectedBerth() {
13749
- return J(N);
13767
+ return J(P);
13750
13768
  },
13751
- onBerthClick: Ge,
13752
- fitInset: Ne,
13769
+ onBerthClick: qe,
13770
+ fitInset: Pe,
13753
13771
  get info() {
13754
13772
  return J(a);
13755
13773
  }
13756
13774
  });
13757
13775
  }
13758
- F(t), Ai(t, (e) => H(je, e), () => J(je)), G(() => {
13776
+ F(t), Ai(t, (e) => H(Me, e), () => J(Me)), G(() => {
13759
13777
  n = fi(t, 1, "sbw-map-slot svelte-h0br6q", null, n, {
13760
13778
  "sbw-map-slot--full-bleed": m() === "100vw",
13761
13779
  "sbw-map-slot--overlay": _() === "overlay"
13762
13780
  }), mi(t, `height: ${p() ?? ""}; width: ${m() ?? ""}; margin-bottom: ${h() ?? ""};`);
13763
13781
  }), X(e, t);
13764
13782
  };
13765
- Q(lt, (e) => {
13766
- J(Pe) && e(ut);
13783
+ Q(dt, (e) => {
13784
+ J(Fe) && e(I);
13767
13785
  });
13768
- var dt = W(lt, 2);
13769
- let I;
13770
- var ft = U(dt), pt = (e) => {
13786
+ var ft = W(dt, 2);
13787
+ let pt;
13788
+ var mt = U(ft), ht = (e) => {
13771
13789
  var t = Fr(), i = mn(t), a = (e) => {
13772
13790
  {
13773
13791
  let t = /* @__PURE__ */ L(() => c() ? J(D) : null);
@@ -13793,7 +13811,7 @@ function Vc(e, t) {
13793
13811
  get host() {
13794
13812
  return ne;
13795
13813
  },
13796
- onstatus: ot
13814
+ onstatus: ct
13797
13815
  });
13798
13816
  }
13799
13817
  }, o = (e) => {
@@ -13803,19 +13821,19 @@ function Vc(e, t) {
13803
13821
  Q(i, (e) => {
13804
13822
  J(re) ? e(a) : e(o, -1);
13805
13823
  }), X(e, t);
13806
- }, mt = (e) => {
13824
+ }, gt = (e) => {
13807
13825
  var t = Rc(), i = mn(t);
13808
13826
  {
13809
- let e = /* @__PURE__ */ L(() => J(N) ?? "—"), t = /* @__PURE__ */ L(() => c() || "en"), n = /* @__PURE__ */ L(() => J(A) > 2);
13827
+ let e = /* @__PURE__ */ L(() => J(P) ?? "—"), t = /* @__PURE__ */ L(() => c() || "en"), n = /* @__PURE__ */ L(() => J(A) > 2);
13810
13828
  Ia(i, {
13811
13829
  get berthLabel() {
13812
13830
  return J(e);
13813
13831
  },
13814
13832
  get priceLabel() {
13815
- return J(P);
13833
+ return J(Be);
13816
13834
  },
13817
13835
  get maxLoa() {
13818
- return J(Le);
13836
+ return J(Re);
13819
13837
  },
13820
13838
  get locale() {
13821
13839
  return J(t);
@@ -13845,13 +13863,13 @@ function Vc(e, t) {
13845
13863
  }
13846
13864
  var a = W(i, 2);
13847
13865
  {
13848
- let e = /* @__PURE__ */ L(() => J(we) ? void 0 : 3);
13866
+ let e = /* @__PURE__ */ L(() => J(Te) ? void 0 : 3);
13849
13867
  Co(a, {
13850
13868
  get active() {
13851
13869
  return J(A);
13852
13870
  },
13853
13871
  get first() {
13854
- return J(He);
13872
+ return J(We);
13855
13873
  },
13856
13874
  get skip() {
13857
13875
  return J(e);
@@ -13859,24 +13877,24 @@ function Vc(e, t) {
13859
13877
  get labels() {
13860
13878
  return J(O).steps;
13861
13879
  },
13862
- onStepClick: Ke
13880
+ onStepClick: Je
13863
13881
  });
13864
13882
  }
13865
13883
  var o = W(a, 2), s = (e) => {
13866
13884
  var t = Lc(), n = U(t, !0);
13867
- F(t), G(() => Z(n, J(ge))), X(e, t);
13885
+ F(t), G(() => Z(n, J(_e))), X(e, t);
13868
13886
  };
13869
13887
  Q(o, (e) => {
13870
- J(ge) && J(A) !== 4 && e(s);
13888
+ J(_e) && J(A) !== 4 && e(s);
13871
13889
  });
13872
13890
  var d = W(o, 2), f = (e) => {
13873
13891
  {
13874
13892
  let t = /* @__PURE__ */ L(() => ({
13875
13893
  name: y(),
13876
13894
  logo: v(),
13877
- accent: J(Oe),
13878
- background: J(De),
13879
- ink: J(Ae)
13895
+ accent: J(ke),
13896
+ background: J(Oe),
13897
+ ink: J(je)
13880
13898
  }));
13881
13899
  gs(e, {
13882
13900
  get apiOrigin() {
@@ -13901,10 +13919,10 @@ function Vc(e, t) {
13901
13919
  return J(t);
13902
13920
  },
13903
13921
  get arrival() {
13904
- return J(Ve).arrival;
13922
+ return J(Ue).arrival;
13905
13923
  },
13906
13924
  get departure() {
13907
- return J(Ve).departure;
13925
+ return J(Ue).departure;
13908
13926
  },
13909
13927
  get lang() {
13910
13928
  return J(D);
@@ -13916,40 +13934,40 @@ function Vc(e, t) {
13916
13934
  return u();
13917
13935
  },
13918
13936
  get complete() {
13919
- return J(ve);
13937
+ return J(ye);
13920
13938
  },
13921
13939
  set complete(e) {
13922
- H(ve, e, !0);
13940
+ H(ye, e, !0);
13923
13941
  },
13924
13942
  get sailor() {
13925
- return J(ye);
13943
+ return J(be);
13926
13944
  },
13927
13945
  set sailor(e) {
13928
- H(ye, e, !0);
13946
+ H(be, e, !0);
13929
13947
  },
13930
13948
  get boatName() {
13931
- return J(be);
13949
+ return J(xe);
13932
13950
  },
13933
13951
  set boatName(e) {
13934
- H(be, e, !0);
13952
+ H(xe, e, !0);
13935
13953
  },
13936
13954
  get boatLength() {
13937
- return J(xe);
13955
+ return J(Se);
13938
13956
  },
13939
13957
  set boatLength(e) {
13940
- H(xe, e, !0);
13958
+ H(Se, e, !0);
13941
13959
  },
13942
13960
  get staged() {
13943
- return J(Se);
13961
+ return J(Ce);
13944
13962
  },
13945
13963
  set staged(e) {
13946
- H(Se, e);
13964
+ H(Ce, e);
13947
13965
  }
13948
13966
  });
13949
13967
  }
13950
13968
  }, p = (e) => {
13951
13969
  {
13952
- let t = /* @__PURE__ */ L(() => !!J(ye)), n = /* @__PURE__ */ L(() => !J(te));
13970
+ let t = /* @__PURE__ */ L(() => !!J(be)), n = /* @__PURE__ */ L(() => !J(te));
13953
13971
  xs(e, {
13954
13972
  get emailLocked() {
13955
13973
  return J(t);
@@ -13990,20 +14008,26 @@ function Vc(e, t) {
13990
14008
  set boatBeamM(e) {
13991
14009
  H(fe, e, !0);
13992
14010
  },
13993
- get notes() {
14011
+ get boatDraftM() {
13994
14012
  return J(pe);
13995
14013
  },
13996
- set notes(e) {
14014
+ set boatDraftM(e) {
13997
14015
  H(pe, e, !0);
14016
+ },
14017
+ get notes() {
14018
+ return J(me);
14019
+ },
14020
+ set notes(e) {
14021
+ H(me, e, !0);
13998
14022
  }
13999
14023
  });
14000
14024
  }
14001
14025
  }, m = (e) => {
14002
14026
  {
14003
- let t = /* @__PURE__ */ L(() => co(J(Ce).booking.totalPrice, J(Ce).booking.currency, l(), J(D)));
14027
+ let t = /* @__PURE__ */ L(() => co(J(we).booking.totalPrice, J(we).booking.currency, l(), J(D)));
14004
14028
  Ai(ec(e, {
14005
14029
  get payment() {
14006
- return J(Ce).payment;
14030
+ return J(we).payment;
14007
14031
  },
14008
14032
  get host() {
14009
14033
  return ne;
@@ -14017,7 +14041,7 @@ function Vc(e, t) {
14017
14041
  get totalLabel() {
14018
14042
  return J(t);
14019
14043
  }
14020
- }), (e) => H(Te, e), () => J(Te));
14044
+ }), (e) => H(M, e), () => J(M));
14021
14045
  }
14022
14046
  }, h = (e) => {
14023
14047
  {
@@ -14044,26 +14068,26 @@ function Vc(e, t) {
14044
14068
  get host() {
14045
14069
  return ne;
14046
14070
  },
14047
- onstatus: ot,
14048
- onstartover: at
14071
+ onstatus: ct,
14072
+ onstartover: st
14049
14073
  });
14050
14074
  }
14051
14075
  };
14052
14076
  Q(d, (e) => {
14053
- J(A) === 1 ? e(f) : J(A) === 2 ? e(p, 1) : J(A) === 3 && J(Ce)?.payment ? e(m, 2) : J(A) === 4 && J(re) && e(h, 3);
14077
+ J(A) === 1 ? e(f) : J(A) === 2 ? e(p, 1) : J(A) === 3 && J(we)?.payment ? e(m, 2) : J(A) === 4 && J(re) && e(h, 3);
14054
14078
  });
14055
14079
  var g = W(d, 2);
14056
14080
  {
14057
- let e = /* @__PURE__ */ L(() => J(te) && J(A) === 2 ? J(O).addToCart : void 0), t = /* @__PURE__ */ L(() => J(A) === 1 && !J(ve));
14081
+ let e = /* @__PURE__ */ L(() => J(te) && J(A) === 2 ? J(O).addToCart : void 0), t = /* @__PURE__ */ L(() => J(A) === 1 && !J(ye));
14058
14082
  oc(g, {
14059
14083
  get step() {
14060
14084
  return J(A);
14061
14085
  },
14062
14086
  get firstStep() {
14063
- return J(He);
14087
+ return J(We);
14064
14088
  },
14065
14089
  get sending() {
14066
- return J(M);
14090
+ return J(Ee);
14067
14091
  },
14068
14092
  get nextLabel() {
14069
14093
  return J(e);
@@ -14072,7 +14096,7 @@ function Vc(e, t) {
14072
14096
  return J(t);
14073
14097
  },
14074
14098
  get error() {
14075
- return J(Ee);
14099
+ return J(De);
14076
14100
  },
14077
14101
  get labels() {
14078
14102
  return J(O);
@@ -14080,17 +14104,17 @@ function Vc(e, t) {
14080
14104
  get variant() {
14081
14105
  return u();
14082
14106
  },
14083
- onBack: it,
14084
- onNext: qe
14107
+ onBack: ot,
14108
+ onNext: Ze
14085
14109
  });
14086
14110
  }
14087
14111
  X(e, t);
14088
14112
  };
14089
- return Q(ft, (e) => {
14090
- k ? e(pt) : e(mt, -1);
14091
- }), F(dt), Ai(dt, (e) => H(Me, e), () => J(Me)), G(() => {
14092
- I = fi(dt, 1, "sbw-root svelte-h0br6q", null, I, { "sbw-root--overlay": _() === "overlay" }), mi(dt, `--sbw-map-h: ${(J(Pe) ? p() : "0px") ?? ""}; --sbw-map-gap: ${(J(Pe) ? h() : "0px") ?? ""};`);
14093
- }), X(e, ct), Xe(st);
14113
+ return Q(mt, (e) => {
14114
+ k ? e(ht) : e(gt, -1);
14115
+ }), F(ft), Ai(ft, (e) => H(Ne, e), () => J(Ne)), G(() => {
14116
+ pt = fi(ft, 1, "sbw-root svelte-h0br6q", null, pt, { "sbw-root--overlay": _() === "overlay" }), mi(ft, `--sbw-map-h: ${(J(Fe) ? p() : "0px") ?? ""}; --sbw-map-gap: ${(J(Fe) ? h() : "0px") ?? ""};`);
14117
+ }), X(e, ut), Xe(lt);
14094
14118
  }
14095
14119
  customElements.define("sidon-booking-widget", Ii(Vc, {
14096
14120
  marina: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgebuild/sidon-booking-widget",
3
- "version": "4.2.0",
3
+ "version": "4.3.1",
4
4
  "description": "Berth booking and berth map custom elements for marinas on OTA, plus an Astro forwarder route and server client.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",