@forgebuild/sidon-booking-widget 4.1.0 → 4.1.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.
@@ -4052,7 +4052,7 @@ async function Ma(e, t = {}) {
4052
4052
  //#region src/components/Summary.svelte
4053
4053
  var Na = /* @__PURE__ */ Y("<div class=\"sbw-summary-row sbw-summary-row-end svelte-1gqd250\"><span class=\"sbw-total svelte-1gqd250\"> </span></div>"), Pa = /* @__PURE__ */ Y("<div class=\"sbw-summary svelte-1gqd250\"><div class=\"sbw-summary-row svelte-1gqd250\"><span class=\"sbw-summary-icon svelte-1gqd250\" aria-hidden=\"true\"><svg viewBox=\"0 0 500 500\" fill=\"currentColor\" class=\"svelte-1gqd250\"><path d=\"M 444.197 406.065 C 437.556 433.272 415.422 453.058 389.965 453.058 C 364.51 450.585 341.27 432.035 333.522 404.829 C 331.308 396.172 323.561 391.224 315.814 391.224 C 308.067 391.224 300.32 397.408 298.107 404.829 C 290.359 432.035 267.119 451.822 241.662 453.058 C 216.207 450.585 192.965 432.035 185.219 404.829 C 183.005 396.172 175.258 391.224 167.511 391.224 C 159.764 391.224 152.017 397.408 149.803 404.829 C 142.056 432.035 118.813 451.822 93.359 453.058 C 67.904 453.058 45.769 434.509 39.13 406.065 L 2.606 415.958 C 13.673 461.716 50.197 493.868 93.359 493.868 C 136.522 493.868 149.803 479.029 167.511 451.822 C 198.5 497.579 257.157 507.473 298.107 471.609 C 304.747 465.426 311.388 459.241 315.814 451.822 C 333.522 479.029 361.191 493.868 389.965 493.868 C 432.022 493.868 469.652 461.716 480.719 415.958 C 480.719 415.958 444.197 406.065 444.197 406.065 Z\" class=\"svelte-1gqd250\"></path><path d=\"M 488.466 267.558 C 482.932 260.136 475.185 255.19 466.331 255.19 L 374.471 255.19 L 294.786 190.882 L 212.888 190.882 L 212.888 255.19 L 130.989 255.19 C 82.292 255.19 56.836 276.214 49.089 321.97 C 42.448 364.018 73.438 397.408 77.865 401.118 C 84.506 408.539 96.679 407.302 102.213 398.645 C 108.854 391.224 107.746 377.621 100 371.437 C 100 371.437 80.079 350.415 83.399 329.391 C 86.719 309.604 92.252 296.001 129.882 296.001 L 448.624 296.001 C 436.448 313.314 381.112 378.858 381.112 378.858 C 374.471 386.277 374.471 399.882 381.112 406.065 C 384.432 409.776 388.859 412.248 393.285 412.248 C 397.713 412.248 402.141 409.776 405.46 406.065 C 485.146 313.314 487.36 299.711 489.573 294.764 C 491.787 282.398 487.36 272.505 486.252 270.031 L 488.466 267.558 Z M 283.718 255.19 L 247.196 255.19 L 247.196 230.457 L 282.613 230.457 L 313.6 255.19 L 283.718 255.19 Z\" class=\"svelte-1gqd250\"></path><polygon points=\"409.887 5.382 386.646 32.588 428.702 79.583 111.067 79.583 153.123 32.588 129.882 5.382 47.983 98.132 129.882 190.883 153.123 163.677 111.067 116.682 428.702 116.682 386.646 163.677 409.887 190.883 492.893 98.132 409.887 5.382\" class=\"svelte-1gqd250\"></polygon></svg></span> <div class=\"sbw-loa-control svelte-1gqd250\"><button type=\"button\" class=\"sbw-loa-btn svelte-1gqd250\" aria-label=\"Decrease length\"><span class=\"sbw-loa-glyph svelte-1gqd250\">−</span></button> <input type=\"number\" class=\"sbw-loa-input svelte-1gqd250\" step=\"1\"/> <button type=\"button\" class=\"sbw-loa-btn svelte-1gqd250\" aria-label=\"Increase length\"><span class=\"sbw-loa-glyph svelte-1gqd250\">+</span></button> <span class=\"sbw-loa-unit svelte-1gqd250\">m</span></div></div> <div class=\"sbw-summary-row sbw-summary-row-end svelte-1gqd250\"><span class=\"sbw-summary-icon svelte-1gqd250\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"svelte-1gqd250\"><circle cx=\"12\" cy=\"5\" r=\"2.2\" class=\"svelte-1gqd250\"></circle><path d=\"M12 7.2V21\" class=\"svelte-1gqd250\"></path><path d=\"M8 11h8\" class=\"svelte-1gqd250\"></path><path d=\"M5 14a7 7 0 0 0 14 0\" class=\"svelte-1gqd250\"></path></svg></span> <span class=\"sbw-berth-label svelte-1gqd250\"> </span></div> <div class=\"sbw-summary-row svelte-1gqd250\"><span class=\"sbw-summary-icon svelte-1gqd250\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"svelte-1gqd250\"><rect x=\"3\" y=\"5\" width=\"18\" height=\"16\" rx=\"2\" class=\"svelte-1gqd250\"></rect><path d=\"M3 10h18M8 3v4M16 3v4\" class=\"svelte-1gqd250\"></path><path d=\"M8 15h6M11 13l3 2-3 2\" class=\"svelte-1gqd250\"></path></svg></span> <input type=\"text\" readonly=\"\" placeholder=\"—\" class=\"sbw-dates-input svelte-1gqd250\"/></div> <!></div>"), Fa = {
4054
4054
  hash: "svelte-1gqd250",
4055
- code: ".sbw-summary.svelte-1gqd250 {display:grid;grid-template-columns:1fr auto;gap:12px 24px;padding:20px;background:var(--brand-ink, #252525);border-radius:var(--sbw-radius, 10px) var(--sbw-radius, 10px) 0 0;}.sbw-summary-row.svelte-1gqd250 {display:flex;align-items:center;gap:10px;}.sbw-summary-row-end.svelte-1gqd250 {justify-content:flex-end;}.sbw-summary-icon.svelte-1gqd250 {color:var(--brand-gold, #c9a86b);display:inline-flex;flex-shrink:0;}.sbw-summary-icon.svelte-1gqd250 svg:where(.svelte-1gqd250) {width:22px;height:22px;display:block;}.sbw-loa-control.svelte-1gqd250 {display:flex;align-items:center;gap:8px;}.sbw-loa-btn.svelte-1gqd250 {width:32px;height:32px;border-radius:999px;border:none;background:rgba(255, 255, 255, 0.1);color:#fff;font-size:18px;line-height:1;cursor:pointer;position:relative;overflow:hidden;transition:color 0.2s cubic-bezier(0, 0, 0.2, 1), transform 0.2s cubic-bezier(0, 0, 0.2, 1);}\n /* Gold fill grows from the button's center on hover, rather than a flat\n background swap - ported from the reference site's own boat-length\n buttons. top/left:50% + translate(-50%,-50%) keeps it centered as\n width/height animate; the glyph span (z-index:1) stays above it. */.sbw-loa-btn.svelte-1gqd250::before {content:'';position:absolute;top:50%;left:50%;width:0;height:0;border-radius:9999px;background:var(--brand-gold, #c9a86b);transform:translate(-50%, -50%);transition:width 0.24s, height 0.24s;}.sbw-loa-btn.svelte-1gqd250:hover:not(:disabled) {color:var(--brand-navy, #16365b);}.sbw-loa-btn.svelte-1gqd250:hover:not(:disabled)::before {width:100%;height:100%;}.sbw-loa-glyph.svelte-1gqd250 {position:relative;z-index:1;}.sbw-loa-btn.svelte-1gqd250:active:not(:disabled) {transform:scale(0.9);}.sbw-loa-btn.svelte-1gqd250:disabled {opacity:0.4;cursor:not-allowed;}.sbw-loa-input.svelte-1gqd250 {width:56px;text-align:center;font-size:26px;font-weight:500;color:#fff;background:transparent;border:0;outline:none;}.sbw-loa-unit.svelte-1gqd250 {font-size:22px;color:rgba(255, 255, 255, 0.6);}.sbw-berth-label.svelte-1gqd250,\n .sbw-dates-input.svelte-1gqd250 {font-size:20px;font-weight:500;color:#fff;}.sbw-dates-input.svelte-1gqd250 {background:transparent;border:0;outline:none;cursor:pointer;width:100%;min-width:220px;}.sbw-dates-input.svelte-1gqd250:hover {color:var(--brand-gold, #c9a86b);}.sbw-total.svelte-1gqd250 {font-size:34px;font-weight:500;color:var(--brand-gold, #c9a86b);}\n\n /* Ported from sidon-ai's own booking page: length/selected-berth/total\n briefly scale up and flash gold when their value changes. */\n @keyframes svelte-1gqd250-sbw-pulse-update {\n 0% { transform: scale(1); }\n 35% { transform: scale(1.06); color: var(--brand-gold, #c9a86b); }\n 100% { transform: scale(1); }\n }.sbw-pulse-update {\n animation: svelte-1gqd250-sbw-pulse-update 0.28s ease-out;}\n\n /* Branded flatpickr popup — ported from sidon-ai's flatpickr-theme.css\n (navy header strip, gold in-range fill). :global() so these reach the\n dynamically-created .flatpickr-* elements flatpickr mounts at runtime,\n which Svelte's scoped-class rewriting can't touch. Relies on appendTo\n (see the mountRangePicker call above) landing the popup inside this\n shadow root — outside it, these rules and --brand-navy/--brand-gold\n wouldn't reach it at all. No Teko/Hind webfonts bundled here (see\n README's v1-limitations note), so this keeps the system font stack\n instead of sidon-ai's branded headline face. */.flatpickr-calendar {border-radius:14px !important;box-shadow:0 20px 60px -12px rgba(11, 25, 39, 0.35), 0 2px 8px rgba(11, 25, 39, 0.08) !important;border:none !important;background:#fff !important;}.flatpickr-calendar.multiMonth {width:620px !important;}.flatpickr-calendar.multiMonth .flatpickr-days,\n .flatpickr-calendar.multiMonth .dayContainer {width:100% !important;}.flatpickr-calendar::before,\n .flatpickr-calendar::after {display:none !important;}.flatpickr-months {background:var(--brand-navy, #16365b) !important;border-top-left-radius:14px !important;border-top-right-radius:14px !important;display:flex !important;align-items:center !important;height:56px !important;padding:0 8px !important;}.flatpickr-months .flatpickr-month {color:#fff !important;fill:#fff !important;background:transparent !important;height:56px !important;display:flex !important;align-items:center !important;justify-content:center !important;}.flatpickr-current-month {position:static !important;width:auto !important;height:auto !important;padding:0 !important;line-height:1 !important;font-size:22px !important;font-weight:600 !important;text-transform:uppercase !important;letter-spacing:0.01em !important;}.flatpickr-current-month .flatpickr-monthDropdown-months {color:#fff !important;font-size:22px !important;font-weight:600 !important;text-transform:uppercase !important;}.flatpickr-current-month input.cur-year {color:#fff !important;font-size:16px !important;font-weight:600 !important;align-self:center !important;margin-left:6px !important;}.flatpickr-months .flatpickr-prev-month,\n .flatpickr-months .flatpickr-next-month {fill:#fff !important;color:#fff !important;height:56px !important;width:56px !important;padding:0 !important;display:flex !important;align-items:center !important;justify-content:center !important;top:0 !important;transition:background-color 160ms ease !important;}.flatpickr-months .flatpickr-prev-month svg,\n .flatpickr-months .flatpickr-next-month svg {fill:#fff !important;width:28px !important;height:28px !important;}.flatpickr-months .flatpickr-prev-month:hover,\n .flatpickr-months .flatpickr-next-month:hover {background:rgba(255, 255, 255, 0.12) !important;}.flatpickr-weekday {color:var(--brand-navy, #16365b) !important;font-weight:700 !important;letter-spacing:0.1em !important;text-transform:uppercase !important;background:transparent !important;}.flatpickr-day {color:var(--brand-navy, #16365b) !important;font-weight:500 !important;border-radius:0 !important;transition:background-color 140ms ease, color 140ms ease !important;}.flatpickr-day.today:not(.selected):not(.startRange):not(.endRange) {border:none !important;color:var(--brand-gold, #c9a86b) !important;font-weight:700 !important;}.flatpickr-day:hover:not(.selected):not(.startRange):not(.endRange):not(.inRange):not(.flatpickr-disabled) {background:color-mix(in srgb, var(--brand-navy, #16365b) 8%, transparent) !important;border-color:transparent !important;}.flatpickr-day.selected,\n .flatpickr-day.startRange,\n .flatpickr-day.endRange,\n .flatpickr-day.selected:hover,\n .flatpickr-day.startRange:hover,\n .flatpickr-day.endRange:hover {background:var(--brand-navy, #16365b) !important;border-color:var(--brand-navy, #16365b) !important;color:#fff !important;font-weight:600 !important;border-radius:0 !important;box-shadow:none !important;}.flatpickr-day.inRange,\n .flatpickr-day.inRange:hover {background:var(--brand-gold, #c9a86b) !important;border-color:var(--brand-gold, #c9a86b) !important;color:var(--brand-navy, #16365b) !important;border-radius:0 !important;}.flatpickr-day.startRange:not(.endRange) {border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;}.flatpickr-day.endRange:not(.startRange) {border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;}.flatpickr-day.flatpickr-disabled,\n .flatpickr-day.flatpickr-disabled:hover,\n .flatpickr-day.prevMonthDay,\n .flatpickr-day.nextMonthDay {color:color-mix(in srgb, var(--brand-navy, #16365b) 22%, transparent) !important;background:transparent !important;font-weight:400 !important;}"
4055
+ code: ".sbw-summary.svelte-1gqd250 {display:grid;grid-template-columns:1fr auto;gap:12px 24px;padding:20px;background:var(--brand-ink, #252525);border-radius:var(--sbw-radius, 10px) var(--sbw-radius, 10px) 0 0;}.sbw-summary-row.svelte-1gqd250 {display:flex;align-items:center;gap:10px;}.sbw-summary-row-end.svelte-1gqd250 {justify-content:flex-end;}.sbw-summary-icon.svelte-1gqd250 {color:var(--brand-gold, #c9a86b);display:inline-flex;flex-shrink:0;}.sbw-summary-icon.svelte-1gqd250 svg:where(.svelte-1gqd250) {width:22px;height:22px;display:block;}.sbw-loa-control.svelte-1gqd250 {display:flex;align-items:center;gap:8px;}.sbw-loa-btn.svelte-1gqd250 {width:32px;height:32px;border-radius:999px;border:none;background:rgba(255, 255, 255, 0.1);color:#fff;font-size:18px;line-height:1;cursor:pointer;position:relative;overflow:hidden;transition:color 0.2s cubic-bezier(0, 0, 0.2, 1), transform 0.2s cubic-bezier(0, 0, 0.2, 1);}\n /* Gold fill grows from the button's center on hover, rather than a flat\n background swap - ported from the reference site's own boat-length\n buttons. top/left:50% + translate(-50%,-50%) keeps it centered as\n width/height animate; the glyph span (z-index:1) stays above it. */.sbw-loa-btn.svelte-1gqd250::before {content:'';position:absolute;top:50%;left:50%;width:0;height:0;border-radius:9999px;background:var(--brand-gold, #c9a86b);transform:translate(-50%, -50%);transition:width 0.24s, height 0.24s;}.sbw-loa-btn.svelte-1gqd250:hover:not(:disabled) {color:var(--brand-navy, #16365b);}.sbw-loa-btn.svelte-1gqd250:hover:not(:disabled)::before {width:100%;height:100%;}.sbw-loa-glyph.svelte-1gqd250 {position:relative;z-index:1;}.sbw-loa-btn.svelte-1gqd250:active:not(:disabled) {transform:scale(0.9);}.sbw-loa-btn.svelte-1gqd250:disabled {opacity:0.4;cursor:not-allowed;}\n /* +/- buttons sit either side, so the native spinner only steals room. */.sbw-loa-input.svelte-1gqd250::-webkit-inner-spin-button,\n .sbw-loa-input.svelte-1gqd250::-webkit-outer-spin-button {-webkit-appearance:none;margin:0;}.sbw-loa-input.svelte-1gqd250 {-moz-appearance:textfield;appearance:textfield;width:4.5ch; /* fits 12.5 */padding:0;text-align:center;font-size:26px;font-weight:500;color:#fff;background:transparent;border:0;outline:none;}.sbw-loa-unit.svelte-1gqd250 {font-size:22px;color:rgba(255, 255, 255, 0.6);}.sbw-berth-label.svelte-1gqd250,\n .sbw-dates-input.svelte-1gqd250 {font-size:20px;font-weight:500;color:#fff;}.sbw-dates-input.svelte-1gqd250 {background:transparent;border:0;outline:none;cursor:pointer;width:100%;min-width:220px;}.sbw-dates-input.svelte-1gqd250:hover {color:var(--brand-gold, #c9a86b);}.sbw-total.svelte-1gqd250 {font-size:34px;font-weight:500;color:var(--brand-gold, #c9a86b);}\n\n /* Ported from sidon-ai's own booking page: length/selected-berth/total\n briefly scale up and flash gold when their value changes. */\n @keyframes svelte-1gqd250-sbw-pulse-update {\n 0% { transform: scale(1); }\n 35% { transform: scale(1.06); color: var(--brand-gold, #c9a86b); }\n 100% { transform: scale(1); }\n }.sbw-pulse-update {\n animation: svelte-1gqd250-sbw-pulse-update 0.28s ease-out;}\n\n /* Branded flatpickr popup — ported from sidon-ai's flatpickr-theme.css\n (navy header strip, gold in-range fill). :global() so these reach the\n dynamically-created .flatpickr-* elements flatpickr mounts at runtime,\n which Svelte's scoped-class rewriting can't touch. Relies on appendTo\n (see the mountRangePicker call above) landing the popup inside this\n shadow root — outside it, these rules and --brand-navy/--brand-gold\n wouldn't reach it at all. No Teko/Hind webfonts bundled here (see\n README's v1-limitations note), so this keeps the system font stack\n instead of sidon-ai's branded headline face. */.flatpickr-calendar {border-radius:14px !important;box-shadow:0 20px 60px -12px rgba(11, 25, 39, 0.35), 0 2px 8px rgba(11, 25, 39, 0.08) !important;border:none !important;background:#fff !important;}.flatpickr-calendar.multiMonth {width:620px !important;}.flatpickr-calendar.multiMonth .flatpickr-days,\n .flatpickr-calendar.multiMonth .dayContainer {width:100% !important;}.flatpickr-calendar::before,\n .flatpickr-calendar::after {display:none !important;}.flatpickr-months {background:var(--brand-navy, #16365b) !important;border-top-left-radius:14px !important;border-top-right-radius:14px !important;display:flex !important;align-items:center !important;height:56px !important;padding:0 8px !important;}.flatpickr-months .flatpickr-month {color:#fff !important;fill:#fff !important;background:transparent !important;height:56px !important;display:flex !important;align-items:center !important;justify-content:center !important;}.flatpickr-current-month {position:static !important;width:auto !important;height:auto !important;padding:0 !important;line-height:1 !important;font-size:22px !important;font-weight:600 !important;text-transform:uppercase !important;letter-spacing:0.01em !important;}.flatpickr-current-month .flatpickr-monthDropdown-months {color:#fff !important;font-size:22px !important;font-weight:600 !important;text-transform:uppercase !important;}.flatpickr-current-month input.cur-year {color:#fff !important;font-size:16px !important;font-weight:600 !important;align-self:center !important;margin-left:6px !important;}.flatpickr-months .flatpickr-prev-month,\n .flatpickr-months .flatpickr-next-month {fill:#fff !important;color:#fff !important;height:56px !important;width:56px !important;padding:0 !important;display:flex !important;align-items:center !important;justify-content:center !important;top:0 !important;transition:background-color 160ms ease !important;}.flatpickr-months .flatpickr-prev-month svg,\n .flatpickr-months .flatpickr-next-month svg {fill:#fff !important;width:28px !important;height:28px !important;}.flatpickr-months .flatpickr-prev-month:hover,\n .flatpickr-months .flatpickr-next-month:hover {background:rgba(255, 255, 255, 0.12) !important;}.flatpickr-weekday {color:var(--brand-navy, #16365b) !important;font-weight:700 !important;letter-spacing:0.1em !important;text-transform:uppercase !important;background:transparent !important;}.flatpickr-day {color:var(--brand-navy, #16365b) !important;font-weight:500 !important;border-radius:0 !important;transition:background-color 140ms ease, color 140ms ease !important;}.flatpickr-day.today:not(.selected):not(.startRange):not(.endRange) {border:none !important;color:var(--brand-gold, #c9a86b) !important;font-weight:700 !important;}.flatpickr-day:hover:not(.selected):not(.startRange):not(.endRange):not(.inRange):not(.flatpickr-disabled) {background:color-mix(in srgb, var(--brand-navy, #16365b) 8%, transparent) !important;border-color:transparent !important;}.flatpickr-day.selected,\n .flatpickr-day.startRange,\n .flatpickr-day.endRange,\n .flatpickr-day.selected:hover,\n .flatpickr-day.startRange:hover,\n .flatpickr-day.endRange:hover {background:var(--brand-navy, #16365b) !important;border-color:var(--brand-navy, #16365b) !important;color:#fff !important;font-weight:600 !important;border-radius:0 !important;box-shadow:none !important;}.flatpickr-day.inRange,\n .flatpickr-day.inRange:hover {background:var(--brand-gold, #c9a86b) !important;border-color:var(--brand-gold, #c9a86b) !important;color:var(--brand-navy, #16365b) !important;border-radius:0 !important;}.flatpickr-day.startRange:not(.endRange) {border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;}.flatpickr-day.endRange:not(.startRange) {border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;}.flatpickr-day.flatpickr-disabled,\n .flatpickr-day.flatpickr-disabled:hover,\n .flatpickr-day.prevMonthDay,\n .flatpickr-day.nextMonthDay {color:color-mix(in srgb, var(--brand-navy, #16365b) 22%, transparent) !important;background:transparent !important;font-weight:400 !important;}"
4056
4056
  };
4057
4057
  function Ia(e, t) {
4058
4058
  Xe(t, !0), ai(e, Fa);
@@ -5020,11 +5020,14 @@ var yo = /* @__PURE__ */ Y("<div><span class=\"sbw-step-dot svelte-9crcip\"></sp
5020
5020
  };
5021
5021
  function So(e, t) {
5022
5022
  Xe(t, !0), ai(e, xo);
5023
- let n = $(t, "active", 7), r = $(t, "first", 7, 1), i = $(t, "labels", 7), a = $(t, "onStepClick", 7);
5024
- function o(e) {
5023
+ let n = $(t, "active", 7), r = $(t, "first", 7, 1), i = $(t, "labels", 7), a = $(t, "skip", 7), o = $(t, "onStepClick", 7), s = /* @__PURE__ */ I(() => i().map((e, t) => ({
5024
+ label: e,
5025
+ n: t + 1
5026
+ })).filter((e) => e.n >= r() && e.n !== a()));
5027
+ function c(e) {
5025
5028
  return n() !== 4 && e < n();
5026
5029
  }
5027
- var s = {
5030
+ var l = {
5028
5031
  get active() {
5029
5032
  return n();
5030
5033
  },
@@ -5043,40 +5046,47 @@ function So(e, t) {
5043
5046
  set labels(e) {
5044
5047
  i(e), z();
5045
5048
  },
5046
- get onStepClick() {
5049
+ get skip() {
5047
5050
  return a();
5048
5051
  },
5049
- set onStepClick(e) {
5052
+ set skip(e) {
5050
5053
  a(e), z();
5054
+ },
5055
+ get onStepClick() {
5056
+ return o();
5057
+ },
5058
+ set onStepClick(e) {
5059
+ o(e), z();
5051
5060
  }
5052
- }, c = bo();
5053
- return Qr(c, 21, () => i().slice(r() - 1), Jr, (e, t, i) => {
5054
- let s = /* @__PURE__ */ I(() => i + r()), c = /* @__PURE__ */ I(() => q(s) < n()), l = /* @__PURE__ */ I(() => q(s) === n());
5061
+ }, u = bo();
5062
+ return Qr(u, 21, () => q(s), Jr, (e, t, r) => {
5063
+ let i = () => q(t).label, a = () => q(t).n, s = /* @__PURE__ */ I(() => a() < n()), l = /* @__PURE__ */ I(() => a() === n());
5055
5064
  var u = yo();
5056
5065
  let d;
5057
5066
  var f = H(u);
5058
- f.textContent = i + 1;
5067
+ f.textContent = r + 1;
5059
5068
  var p = U(f, 2), m = H(p, !0);
5060
- P(p), P(u), W((e, n, r) => {
5061
- d = fi(u, 1, "sbw-step-item svelte-9crcip", null, d, e), xi(u, "role", n), xi(u, "tabindex", r), Z(m, q(t));
5069
+ P(p), P(u), W((e, t, n) => {
5070
+ d = fi(u, 1, "sbw-step-item svelte-9crcip", null, d, e), xi(u, "role", t), xi(u, "tabindex", n), Z(m, i());
5062
5071
  }, [
5063
5072
  () => ({
5064
5073
  "sbw-step-active": q(l),
5065
- "sbw-step-done": q(c),
5066
- "sbw-step-filled": q(l) || q(c),
5067
- "sbw-step-selectable": o(q(s))
5074
+ "sbw-step-done": q(s),
5075
+ "sbw-step-filled": q(l) || q(s),
5076
+ "sbw-step-selectable": c(a())
5068
5077
  }),
5069
- () => o(q(s)) ? "button" : void 0,
5070
- () => o(q(s)) ? 0 : void 0
5071
- ]), Tr("click", u, () => o(q(s)) && a()(q(s))), Tr("keydown", u, (e) => {
5072
- o(q(s)) && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), a()(q(s)));
5078
+ () => c(a()) ? "button" : void 0,
5079
+ () => c(a()) ? 0 : void 0
5080
+ ]), Tr("click", u, () => c(a()) && o()(a())), Tr("keydown", u, (e) => {
5081
+ c(a()) && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), o()(a()));
5073
5082
  }), X(e, u);
5074
- }), P(c), X(e, c), Ze(s);
5083
+ }), P(u), X(e, u), Ze(l);
5075
5084
  }
5076
5085
  Er(["click", "keydown"]), Ii(So, {
5077
5086
  active: {},
5078
5087
  first: {},
5079
5088
  labels: {},
5089
+ skip: {},
5080
5090
  onStepClick: {}
5081
5091
  }, [], [], { mode: "open" });
5082
5092
  //#endregion
@@ -6658,9 +6668,9 @@ Er(["click"]), Ii(nc, {
6658
6668
  }, [], [], { mode: "open" });
6659
6669
  //#endregion
6660
6670
  //#region src/components/ContractSection.svelte
6661
- var rc = /* @__PURE__ */ Y("<p class=\"sbw-contract-agreed svelte-1g7u6xt\"> </p>"), ic = /* @__PURE__ */ Y("<label class=\"sbw-agree-row svelte-1g7u6xt\"><input type=\"checkbox\"/> <span> <strong> </strong>.</span></label> <button type=\"button\" class=\"sbw-btn-primary\"> </button>", 1), ac = /* @__PURE__ */ Y("<div class=\"sbw-contract-error svelte-1g7u6xt\" role=\"alert\"> </div>"), oc = /* @__PURE__ */ Y("<div class=\"sbw-contract svelte-1g7u6xt\"><div class=\"sbw-contract-heading svelte-1g7u6xt\"> </div> <div class=\"sbw-contract-body svelte-1g7u6xt\"> </div> <!> <!></div>"), sc = {
6671
+ var rc = /* @__PURE__ */ Y("<p class=\"sbw-contract-agreed svelte-1g7u6xt\"> </p>"), ic = /* @__PURE__ */ Y("<label class=\"sbw-agree-row svelte-1g7u6xt\"><input type=\"checkbox\"/> <span> <strong> </strong>.</span></label> <button type=\"button\" class=\"sbw-btn-primary\"> </button>", 1), ac = /* @__PURE__ */ Y("<div class=\"sbw-contract-error svelte-1g7u6xt\" role=\"alert\"> </div>"), oc = /* @__PURE__ */ Y("<div class=\"sbw-contract svelte-1g7u6xt\"><details class=\"sbw-contract-doc svelte-1g7u6xt\"><summary class=\"sbw-contract-heading svelte-1g7u6xt\"> </summary> <div class=\"sbw-contract-body svelte-1g7u6xt\"> </div></details> <!> <!></div>"), sc = {
6662
6672
  hash: "svelte-1g7u6xt",
6663
- code: "\n /* Carried over from the 0.4 DetailsStep contract block. */.sbw-contract.svelte-1g7u6xt {display:flex;flex-direction:column;gap:10px;padding:0 20px 20px;}.sbw-contract-heading.svelte-1g7u6xt {font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:#252525;}.sbw-contract-body.svelte-1g7u6xt {max-height:280px;overflow-y:auto;padding:16px;border-radius:14px;border:1px solid rgba(37, 37, 37, 0.08);background:#fafafa;font-size:13px;line-height:1.7;white-space:pre-wrap;color:var(--brand-navy, #16365b);}.sbw-agree-row.svelte-1g7u6xt {display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5;color:var(--brand-navy, #16365b);cursor:pointer;}.sbw-contract-agreed.svelte-1g7u6xt {margin:0;font-size:13px;font-weight:600;color:#1f9d55;}.sbw-contract-error.svelte-1g7u6xt {font-size:14px;color:#cc4949;}"
6673
+ code: "\n /* Carried over from the 0.4 DetailsStep contract block. */.sbw-contract.svelte-1g7u6xt {display:flex;flex-direction:column;gap:10px;padding:0 20px 20px;}.sbw-contract-heading.svelte-1g7u6xt {font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:#252525;display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;}.sbw-contract-heading.svelte-1g7u6xt::-webkit-details-marker {display:none;}.sbw-contract-heading.svelte-1g7u6xt::after {content:'+';font-size:18px;font-weight:400;letter-spacing:0;}.sbw-contract-doc[open].svelte-1g7u6xt .sbw-contract-heading:where(.svelte-1g7u6xt)::after {content:'−';}.sbw-contract-doc[open].svelte-1g7u6xt .sbw-contract-body:where(.svelte-1g7u6xt) {margin-top:10px;}.sbw-contract-body.svelte-1g7u6xt {max-height:280px;overflow-y:auto;padding:16px;border-radius:14px;border:1px solid rgba(37, 37, 37, 0.08);background:#fafafa;font-size:13px;line-height:1.7;white-space:pre-wrap;color:var(--brand-navy, #16365b);}.sbw-agree-row.svelte-1g7u6xt {display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5;color:var(--brand-navy, #16365b);cursor:pointer;}.sbw-contract-agreed.svelte-1g7u6xt {margin:0;font-size:13px;font-weight:600;color:#1f9d55;}.sbw-contract-error.svelte-1g7u6xt {font-size:14px;color:#cc4949;}"
6664
6674
  };
6665
6675
  function cc(e, t) {
6666
6676
  Xe(t, !0), ai(e, sc);
@@ -6724,14 +6734,14 @@ function cc(e, t) {
6724
6734
  set onchange(e) {
6725
6735
  c(e), z();
6726
6736
  }
6727
- }, y = oc(), b = H(y), x = H(b, !0);
6728
- P(b);
6729
- var S = U(b, 2), ee = H(S, !0);
6730
- P(S);
6731
- var C = U(S, 2), w = (e) => {
6737
+ }, y = oc(), b = H(y), x = H(b), S = H(x, !0);
6738
+ P(x);
6739
+ var ee = U(x, 2), C = H(ee, !0);
6740
+ P(ee), P(b);
6741
+ var w = U(b, 2), T = (e) => {
6732
6742
  var t = rc(), n = H(t, !0);
6733
6743
  P(t), W((e) => Z(n, e), [() => q(l).contractAgreedOn(g(q(m)))]), X(e, t);
6734
- }, T = (e) => {
6744
+ }, te = (e) => {
6735
6745
  var t = ic(), n = hn(t), r = H(n);
6736
6746
  yi(r);
6737
6747
  var i = U(r, 2), a = H(i), o = U(a), s = H(o, !0);
@@ -6741,17 +6751,17 @@ function cc(e, t) {
6741
6751
  Z(a, `${q(l).readAgree ?? ""} `), Z(s, q(l).agreement), c.disabled = !q(u) || q(d), Z(f, q(d) ? q(l).sending : q(l).agree);
6742
6752
  }), Ei(r, () => q(u), (e) => V(u, e)), Tr("click", c, _), X(e, t);
6743
6753
  };
6744
- Q(C, (e) => {
6745
- q(m) ? e(w) : q(h) && e(T, 1);
6754
+ Q(w, (e) => {
6755
+ q(m) ? e(T) : q(h) && e(te, 1);
6746
6756
  });
6747
- var te = U(C, 2), ne = (e) => {
6757
+ var ne = U(w, 2), E = (e) => {
6748
6758
  var t = ac(), n = H(t, !0);
6749
6759
  P(t), W(() => Z(n, q(f))), X(e, t);
6750
6760
  };
6751
- return Q(te, (e) => {
6752
- q(f) && e(ne);
6761
+ return Q(ne, (e) => {
6762
+ q(f) && e(E);
6753
6763
  }), P(y), W(() => {
6754
- Z(x, q(l).contractHeading), Z(ee, s().renderedBody);
6764
+ Z(S, q(l).contractHeading), Z(C, s().renderedBody);
6755
6765
  }), X(e, y), Ze(v);
6756
6766
  }
6757
6767
  Er(["click"]), Ii(cc, {
@@ -13136,10 +13146,10 @@ function Lc(e, t) {
13136
13146
  if (e) return e;
13137
13147
  let t = ja(i()) ?? new Date((/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0));
13138
13148
  return new Date(t.getTime() + 2592e5);
13139
- }))), oe = /* @__PURE__ */ B(null), se = /* @__PURE__ */ B(""), ce = /* @__PURE__ */ B(""), le = /* @__PURE__ */ B(""), ue = /* @__PURE__ */ B(""), de = /* @__PURE__ */ B(null), fe = /* @__PURE__ */ B(""), pe = /* @__PURE__ */ B(null), me = /* @__PURE__ */ B(on([])), he = /* @__PURE__ */ B(null), ge = /* @__PURE__ */ B(0), _e = /* @__PURE__ */ B(!1), ve = /* @__PURE__ */ B(null), ye = /* @__PURE__ */ B(null), be = /* @__PURE__ */ B(null), xe = /* @__PURE__ */ B(null), Se = /* @__PURE__ */ B(void 0), Ce = /* @__PURE__ */ B(!1), we = /* @__PURE__ */ B(null), Te = /* @__PURE__ */ B("#16365b"), Ee = /* @__PURE__ */ B("#c9a86b"), j = /* @__PURE__ */ B("#252525");
13149
+ }))), oe = /* @__PURE__ */ B(null), se = /* @__PURE__ */ B(""), ce = /* @__PURE__ */ B(""), le = /* @__PURE__ */ B(""), ue = /* @__PURE__ */ B(""), de = /* @__PURE__ */ B(null), fe = /* @__PURE__ */ B(""), pe = /* @__PURE__ */ B(null), me = /* @__PURE__ */ B(on([])), he = /* @__PURE__ */ B(null), ge = /* @__PURE__ */ B(0), _e = /* @__PURE__ */ B(!1), ve = /* @__PURE__ */ B(null), ye = /* @__PURE__ */ B(null), be = /* @__PURE__ */ B(null), xe = /* @__PURE__ */ B(null), Se = /* @__PURE__ */ I(() => !q(pe) || !!q(pe).stripePublishableKey), Ce = /* @__PURE__ */ B(void 0), we = /* @__PURE__ */ B(!1), Te = /* @__PURE__ */ B(null), Ee = /* @__PURE__ */ B("#16365b"), j = /* @__PURE__ */ B("#c9a86b"), De = /* @__PURE__ */ B("#252525");
13140
13150
  qr(() => {
13141
13151
  let e = getComputedStyle(T);
13142
- V(j, e.getPropertyValue("--brand-ink").trim() || q(j), !0), V(Te, e.getPropertyValue("--brand-navy").trim() || q(Te), !0), V(Ee, e.getPropertyValue("--brand-gold").trim() || q(Ee), !0);
13152
+ V(De, e.getPropertyValue("--brand-ink").trim() || q(De), !0), V(Ee, e.getPropertyValue("--brand-navy").trim() || q(Ee), !0), V(j, e.getPropertyValue("--brand-gold").trim() || q(j), !0);
13143
13153
  }), qr(() => {
13144
13154
  let e = new ResizeObserver(() => {
13145
13155
  window.dispatchEvent(new Event("resize"));
@@ -13148,28 +13158,28 @@ function Lc(e, t) {
13148
13158
  }), qr(() => {
13149
13159
  _() === "overlay" ? (T.style.maxWidth = "none", T.style.setProperty("--sbw-card-width", g())) : T.style.maxWidth = g();
13150
13160
  });
13151
- let De = /* @__PURE__ */ I(() => !!d() && !D && !q(he)), Oe = /* @__PURE__ */ I(() => q(de) != null && q(de) > 0 ? q(de) : null), ke = /* @__PURE__ */ I(() => (q(pe)?.berths ?? []).filter((e) => e.status === "available")), Ae = /* @__PURE__ */ I(() => !q(ke).length || q(ke).some((e) => e.lengthM == null) ? 200 : Math.max(...q(ke).map((e) => e.lengthM ?? 0))), je = /* @__PURE__ */ I(() => q(oe) && q(me).some((e) => e.label === q(oe)) ? q(oe) : ao(q(me))), Me = /* @__PURE__ */ I(() => q(me).find((e) => e.label === q(je)) ?? null), Ne = /* @__PURE__ */ I(() => q(Me)?.totalPrice == null ? null : co(q(Me).totalPrice, q(pe)?.currency ?? null, l(), q(ne))), Pe = !1;
13161
+ let Oe = /* @__PURE__ */ I(() => !!d() && !D && !q(he)), ke = /* @__PURE__ */ I(() => q(de) != null && q(de) > 0 ? q(de) : null), Ae = /* @__PURE__ */ I(() => (q(pe)?.berths ?? []).filter((e) => e.status === "available")), je = /* @__PURE__ */ I(() => !q(Ae).length || q(Ae).some((e) => e.lengthM == null) ? 200 : Math.max(...q(Ae).map((e) => e.lengthM ?? 0))), Me = /* @__PURE__ */ I(() => q(oe) && q(me).some((e) => e.label === q(oe)) ? q(oe) : ao(q(me))), Ne = /* @__PURE__ */ I(() => q(me).find((e) => e.label === q(Me)) ?? null), Pe = /* @__PURE__ */ I(() => q(Ne)?.totalPrice == null ? null : co(q(Ne).totalPrice, q(pe)?.currency ?? null, l(), q(ne))), Fe = !1;
13152
13162
  Tn(() => {
13153
- Pe || !q(ke).length || (Pe = !0, q(ie) > q(Ae) && V(ie, q(Ae), !0));
13163
+ Fe || !q(Ae).length || (Fe = !0, q(ie) > q(je) && V(ie, q(je), !0));
13154
13164
  }), Tn(() => {
13155
13165
  let e = s();
13156
13166
  J(() => {
13157
13167
  q(k) <= 2 && V(oe, e || null, !0);
13158
13168
  });
13159
13169
  });
13160
- let Fe = {
13170
+ let Ie = {
13161
13171
  arrival: "",
13162
13172
  departure: ""
13163
- }, Ie = /* @__PURE__ */ I(() => q(A) && q(ae) && +q(ae) > +q(A) ? Fe = {
13173
+ }, Le = /* @__PURE__ */ I(() => q(A) && q(ae) && +q(ae) > +q(A) ? Ie = {
13164
13174
  arrival: Aa(q(A)),
13165
13175
  departure: Aa(q(ae))
13166
- } : Fe), Le = /* @__PURE__ */ B(1);
13176
+ } : Ie), Re = /* @__PURE__ */ B(1);
13167
13177
  qr(() => {
13168
- D || Io(r(), n(), J(() => q(Ie)), null).then((e) => {
13169
- e.requirements.length || (V(Le, 2), q(k) === 1 && (V(_e, !0), V(k, 2)));
13178
+ D || Io(r(), n(), J(() => q(Le)), null).then((e) => {
13179
+ e.requirements.length || (V(Re, 2), q(k) === 1 && (V(_e, !0), V(k, 2)));
13170
13180
  }, () => {});
13171
13181
  });
13172
- let Re = {
13182
+ let M = {
13173
13183
  email: "",
13174
13184
  name: ""
13175
13185
  };
@@ -13177,10 +13187,10 @@ function Lc(e, t) {
13177
13187
  let e = q(ve);
13178
13188
  J(() => {
13179
13189
  if (e) {
13180
- V(ce, Re.email = e.email, !0), !q(se).trim() && e.name && V(se, Re.name = e.name, !0);
13190
+ V(ce, M.email = e.email, !0), !q(se).trim() && e.name && V(se, M.name = e.name, !0);
13181
13191
  return;
13182
13192
  }
13183
- Re.email && q(ce) === Re.email && V(ce, ""), Re.name && q(se) === Re.name && V(se, ""), Re = {
13193
+ M.email && q(ce) === M.email && V(ce, ""), M.name && q(se) === M.name && V(se, ""), M = {
13184
13194
  email: "",
13185
13195
  name: ""
13186
13196
  };
@@ -13191,11 +13201,11 @@ function Lc(e, t) {
13191
13201
  V(ie, e, !0);
13192
13202
  });
13193
13203
  });
13194
- let M = "";
13204
+ let ze = "";
13195
13205
  Tn(() => {
13196
13206
  let e = q(ye);
13197
13207
  J(() => {
13198
- e && !q(ue).trim() ? V(ue, M = e, !0) : !e && M && q(ue) === M && V(ue, M = "", !0);
13208
+ e && !q(ue).trim() ? V(ue, ze = e, !0) : !e && ze && q(ue) === ze && V(ue, ze = "", !0);
13199
13209
  });
13200
13210
  }), Tn(() => {
13201
13211
  if (D) return;
@@ -13220,7 +13230,7 @@ function Lc(e, t) {
13220
13230
  arrival: Aa(q(A)),
13221
13231
  departure: Aa(q(ae)),
13222
13232
  boatLengthM: q(ie),
13223
- boatBeamM: q(Oe)
13233
+ boatBeamM: q(ke)
13224
13234
  };
13225
13235
  q(ge);
13226
13236
  let t = !1, i = setTimeout(() => {
@@ -13238,30 +13248,30 @@ function Lc(e, t) {
13238
13248
  }), Tn(() => {
13239
13249
  D || te("sidon-loa-change", { loa: q(ie) });
13240
13250
  });
13241
- function ze(e) {
13251
+ function N(e) {
13242
13252
  q(k) <= 2 && V(oe, e, !0);
13243
13253
  }
13244
- function N(e) {
13245
- e < q(k) && Je();
13254
+ function Be(e) {
13255
+ e < q(k) && Ye();
13246
13256
  }
13247
- function Be() {
13248
- q(Ce) || (V(we, null), q(k) === 1 ? q(_e) && V(k, 2) : q(k) === 2 ? We() : q(k) === 3 && Ke());
13257
+ function Ve() {
13258
+ q(we) || (V(Te, null), q(k) === 1 ? q(_e) && V(k, 2) : q(k) === 2 ? Ge() : q(k) === 3 && qe());
13249
13259
  }
13250
- let Ve = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
13251
- function He() {
13260
+ let He = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
13261
+ function Ue() {
13252
13262
  let e = q(E).wizard;
13253
- return !q(A) || !q(ae) || +q(ae) <= +q(A) ? e.errDates : q(ie) > 0 ? q(je) ? q(se).trim() ? q(ue).trim() ? Ve.test(q(ce).trim()) ? null : e.errEmail : e.errBoatName : e.errName : e.errNoBerth : e.errLength;
13263
+ return !q(A) || !q(ae) || +q(ae) <= +q(A) ? e.errDates : q(ie) > 0 ? q(Me) ? q(se).trim() ? q(ue).trim() ? He.test(q(ce).trim()) ? null : e.errEmail : e.errBoatName : e.errName : e.errNoBerth : e.errLength;
13254
13264
  }
13255
- function Ue() {
13265
+ function We() {
13256
13266
  return q(ve) ? Do(S())?.token ?? null : null;
13257
13267
  }
13258
- async function We() {
13259
- let e = He();
13260
- if (e) return void V(we, e, !0);
13261
- V(Ce, !0);
13268
+ async function Ge() {
13269
+ let e = Ue();
13270
+ if (e) return void V(Te, e, !0);
13271
+ V(we, !0);
13262
13272
  try {
13263
13273
  let e = await Ro(r(), n(), {
13264
- berthLabel: q(je),
13274
+ berthLabel: q(Me),
13265
13275
  arrival: Aa(q(A)),
13266
13276
  departure: Aa(q(ae)),
13267
13277
  contactName: q(se).trim(),
@@ -13269,25 +13279,25 @@ function Lc(e, t) {
13269
13279
  contactPhone: q(le).trim() || void 0,
13270
13280
  boatName: q(ue).trim(),
13271
13281
  boatLengthM: q(ie),
13272
- boatBeamM: q(Oe),
13282
+ boatBeamM: q(ke),
13273
13283
  notes: q(fe).trim() || void 0,
13274
13284
  locale: q(ne)
13275
- }, Ue()), t = {
13285
+ }, We()), t = {
13276
13286
  id: e.booking.id,
13277
13287
  token: e.token
13278
13288
  };
13279
- V(O, t, !0), kc(n(), t), e.payment ? (V(xe, e, !0), V(k, 3)) : qe(t.id);
13289
+ V(O, t, !0), kc(n(), t), e.payment ? (V(xe, e, !0), V(k, 3)) : Je(t.id);
13280
13290
  } catch (e) {
13281
- Ge(e);
13291
+ Ke(e);
13282
13292
  } finally {
13283
- V(Ce, !1);
13293
+ V(we, !1);
13284
13294
  }
13285
13295
  }
13286
- function Ge(e) {
13296
+ function Ke(e) {
13287
13297
  let t = q(E).wizard;
13288
- if (!(e instanceof Ao) || e.status === 0) return void V(we, t.errNetwork, !0);
13298
+ if (!(e instanceof Ao) || e.status === 0) return void V(Te, t.errNetwork, !0);
13289
13299
  if (Ja(e.status, e.message)) {
13290
- V(Le, 1), V(k, 1), V(we, q(E).docsStep.missingNow, !0);
13300
+ V(Re, 1), V(k, 1), V(Te, q(E).docsStep.missingNow, !0);
13291
13301
  return;
13292
13302
  }
13293
13303
  (e.status === 409 || e.status === 404) && nn(ge);
@@ -13298,50 +13308,50 @@ function Lc(e, t) {
13298
13308
  502: t.errPayment,
13299
13309
  503: t.errUnavailable
13300
13310
  };
13301
- V(we, n[e.status] ?? (e.status >= 500 ? t.errUnavailable : e.message), !0);
13311
+ V(Te, n[e.status] ?? (e.status >= 500 ? t.errUnavailable : e.message), !0);
13302
13312
  }
13303
- async function Ke() {
13313
+ async function qe() {
13304
13314
  let e = q(O);
13305
- if (!(!e || !q(Se))) {
13306
- V(Ce, !0);
13315
+ if (!(!e || !q(Ce))) {
13316
+ V(we, !0);
13307
13317
  try {
13308
- await q(Se).confirm();
13318
+ await q(Ce).confirm();
13309
13319
  } catch (e) {
13310
- V(we, e instanceof Error ? e.message : q(E).wizard.errNetwork, !0), V(Ce, !1);
13320
+ V(Te, e instanceof Error ? e.message : q(E).wizard.errNetwork, !0), V(we, !1);
13311
13321
  return;
13312
13322
  }
13313
- await Bo(r(), n(), e).catch(() => {}), V(Ce, !1), qe(e.id);
13323
+ await Bo(r(), n(), e).catch(() => {}), V(we, !1), Je(e.id);
13314
13324
  }
13315
13325
  }
13316
- function qe(e) {
13326
+ function Je(e) {
13317
13327
  V(xe, null), V(k, 4), te("sidon-booked", {
13318
13328
  bookingId: e,
13319
13329
  marina: n()
13320
13330
  });
13321
13331
  }
13322
- async function Je() {
13332
+ async function Ye() {
13323
13333
  let e = q(O);
13324
- if (q(Ce)) return;
13334
+ if (q(we)) return;
13325
13335
  if (q(k) === 2) {
13326
- V(we, null), V(k, q(Le), !0);
13336
+ V(Te, null), V(k, q(Re), !0);
13327
13337
  return;
13328
13338
  }
13329
13339
  if (q(k) !== 3 || !e) return;
13330
- V(we, null), V(Ce, !0);
13340
+ V(Te, null), V(we, !0);
13331
13341
  let t = await Vo(r(), n(), e).then(() => !0, (e) => e instanceof Ao && e.status >= 400 && e.status < 500 && e.status !== 429);
13332
- if (V(Ce, !1), !t) return void V(we, q(E).wizard.errNetwork, !0);
13342
+ if (V(we, !1), !t) return void V(Te, q(E).wizard.errNetwork, !0);
13333
13343
  Ac(n()), V(O, null), V(xe, null), V(k, 2);
13334
13344
  }
13335
- function Ye() {
13336
- Ac(n()), V(O, null), V(we, null), V(k, q(Le), !0);
13345
+ function Qe() {
13346
+ Ac(n()), V(O, null), V(Te, null), V(k, q(Re), !0);
13337
13347
  }
13338
- function Qe(e, t) {
13348
+ function $e(e, t) {
13339
13349
  t !== null && q(O) && te("sidon-booking-status", {
13340
13350
  bookingId: q(O).id,
13341
13351
  status: e
13342
13352
  });
13343
13353
  }
13344
- var $e = {
13354
+ var et = {
13345
13355
  get marina() {
13346
13356
  return n();
13347
13357
  },
@@ -13486,7 +13496,7 @@ function Lc(e, t) {
13486
13496
  set sailorApiOrigin(e = "") {
13487
13497
  w(e), z();
13488
13498
  }
13489
- }, et = Fc(), tt = hn(et), nt = (e) => {
13499
+ }, tt = Fc(), nt = hn(tt), rt = (e) => {
13490
13500
  var t = Mc();
13491
13501
  let n;
13492
13502
  var r = H(t);
@@ -13506,10 +13516,10 @@ function Lc(e, t) {
13506
13516
  return q(e);
13507
13517
  },
13508
13518
  get navy() {
13509
- return q(Te);
13519
+ return q(Ee);
13510
13520
  },
13511
13521
  get gold() {
13512
- return q(Ee);
13522
+ return q(j);
13513
13523
  },
13514
13524
  get logoMark() {
13515
13525
  return v();
@@ -13533,9 +13543,9 @@ function Lc(e, t) {
13533
13543
  return q(ie);
13534
13544
  },
13535
13545
  get selectedBerth() {
13536
- return q(je);
13546
+ return q(Me);
13537
13547
  },
13538
- onBerthClick: ze
13548
+ onBerthClick: N
13539
13549
  });
13540
13550
  }
13541
13551
  P(t), W(() => {
@@ -13545,12 +13555,12 @@ function Lc(e, t) {
13545
13555
  }), mi(t, `height: ${p() ?? ""}; width: ${m() ?? ""}; margin-bottom: ${h() ?? ""};`);
13546
13556
  }), X(e, t);
13547
13557
  };
13548
- Q(tt, (e) => {
13549
- q(De) && e(nt);
13558
+ Q(nt, (e) => {
13559
+ q(Oe) && e(rt);
13550
13560
  });
13551
- var rt = U(tt, 2);
13552
- let it;
13553
- var at = H(rt), ot = (e) => {
13561
+ var it = U(nt, 2);
13562
+ let at;
13563
+ var ot = H(it), st = (e) => {
13554
13564
  var t = Fr(), i = hn(t), a = (e) => {
13555
13565
  {
13556
13566
  let t = /* @__PURE__ */ I(() => c() ? q(ne) : null);
@@ -13576,7 +13586,7 @@ function Lc(e, t) {
13576
13586
  get host() {
13577
13587
  return T;
13578
13588
  },
13579
- onstatus: Qe
13589
+ onstatus: $e
13580
13590
  });
13581
13591
  }
13582
13592
  }, o = (e) => {
@@ -13586,19 +13596,19 @@ function Lc(e, t) {
13586
13596
  Q(i, (e) => {
13587
13597
  q(O) ? e(a) : e(o, -1);
13588
13598
  }), X(e, t);
13589
- }, st = (e) => {
13599
+ }, ct = (e) => {
13590
13600
  var t = Pc(), i = hn(t), a = (e) => {
13591
13601
  {
13592
- let t = /* @__PURE__ */ I(() => q(je) ?? "—"), n = /* @__PURE__ */ I(() => c() || "en"), r = /* @__PURE__ */ I(() => q(k) > 2);
13602
+ let t = /* @__PURE__ */ I(() => q(Me) ?? "—"), n = /* @__PURE__ */ I(() => c() || "en"), r = /* @__PURE__ */ I(() => q(k) > 2);
13593
13603
  Ia(e, {
13594
13604
  get berthLabel() {
13595
13605
  return q(t);
13596
13606
  },
13597
13607
  get priceLabel() {
13598
- return q(Ne);
13608
+ return q(Pe);
13599
13609
  },
13600
13610
  get maxLoa() {
13601
- return q(Ae);
13611
+ return q(je);
13602
13612
  },
13603
13613
  get locale() {
13604
13614
  return q(n);
@@ -13631,18 +13641,24 @@ function Lc(e, t) {
13631
13641
  q(k) !== 4 && e(a);
13632
13642
  });
13633
13643
  var o = U(i, 2);
13634
- So(o, {
13635
- get active() {
13636
- return q(k);
13637
- },
13638
- get first() {
13639
- return q(Le);
13640
- },
13641
- get labels() {
13642
- return q(E).steps;
13643
- },
13644
- onStepClick: N
13645
- });
13644
+ {
13645
+ let e = /* @__PURE__ */ I(() => q(Se) ? void 0 : 3);
13646
+ So(o, {
13647
+ get active() {
13648
+ return q(k);
13649
+ },
13650
+ get first() {
13651
+ return q(Re);
13652
+ },
13653
+ get skip() {
13654
+ return q(e);
13655
+ },
13656
+ get labels() {
13657
+ return q(E).steps;
13658
+ },
13659
+ onStepClick: Be
13660
+ });
13661
+ }
13646
13662
  var s = U(o, 2), d = (e) => {
13647
13663
  var t = Nc(), n = H(t, !0);
13648
13664
  P(t), W(() => Z(n, q(he))), X(e, t);
@@ -13655,9 +13671,9 @@ function Lc(e, t) {
13655
13671
  let t = /* @__PURE__ */ I(() => ({
13656
13672
  name: y(),
13657
13673
  logo: v(),
13658
- accent: q(Ee),
13659
- background: q(Te),
13660
- ink: q(j)
13674
+ accent: q(j),
13675
+ background: q(Ee),
13676
+ ink: q(De)
13661
13677
  }));
13662
13678
  ms(e, {
13663
13679
  get apiOrigin() {
@@ -13682,10 +13698,10 @@ function Lc(e, t) {
13682
13698
  return q(t);
13683
13699
  },
13684
13700
  get arrival() {
13685
- return q(Ie).arrival;
13701
+ return q(Le).arrival;
13686
13702
  },
13687
13703
  get departure() {
13688
- return q(Ie).departure;
13704
+ return q(Le).departure;
13689
13705
  },
13690
13706
  get lang() {
13691
13707
  return q(ne);
@@ -13789,7 +13805,7 @@ function Lc(e, t) {
13789
13805
  get totalLabel() {
13790
13806
  return q(t);
13791
13807
  }
13792
- }), (e) => V(Se, e), () => q(Se));
13808
+ }), (e) => V(Ce, e), () => q(Ce));
13793
13809
  }
13794
13810
  }, g = (e) => {
13795
13811
  {
@@ -13816,8 +13832,8 @@ function Lc(e, t) {
13816
13832
  get host() {
13817
13833
  return T;
13818
13834
  },
13819
- onstatus: Qe,
13820
- onstartover: Ye
13835
+ onstatus: $e,
13836
+ onstartover: Qe
13821
13837
  });
13822
13838
  }
13823
13839
  };
@@ -13832,16 +13848,16 @@ function Lc(e, t) {
13832
13848
  return q(k);
13833
13849
  },
13834
13850
  get firstStep() {
13835
- return q(Le);
13851
+ return q(Re);
13836
13852
  },
13837
13853
  get sending() {
13838
- return q(Ce);
13854
+ return q(we);
13839
13855
  },
13840
13856
  get nextDisabled() {
13841
13857
  return q(e);
13842
13858
  },
13843
13859
  get error() {
13844
- return q(we);
13860
+ return q(Te);
13845
13861
  },
13846
13862
  get labels() {
13847
13863
  return q(E);
@@ -13849,17 +13865,17 @@ function Lc(e, t) {
13849
13865
  get variant() {
13850
13866
  return u();
13851
13867
  },
13852
- onBack: Je,
13853
- onNext: Be
13868
+ onBack: Ye,
13869
+ onNext: Ve
13854
13870
  });
13855
13871
  }
13856
13872
  X(e, t);
13857
13873
  };
13858
- return Q(at, (e) => {
13859
- D ? e(ot) : e(st, -1);
13860
- }), P(rt), W(() => {
13861
- it = fi(rt, 1, "sbw-root svelte-h0br6q", null, it, { "sbw-root--overlay": _() === "overlay" }), mi(rt, `--sbw-map-h: ${(q(De) ? p() : "0px") ?? ""}; --sbw-map-gap: ${(q(De) ? h() : "0px") ?? ""};`);
13862
- }), X(e, et), Ze($e);
13874
+ return Q(ot, (e) => {
13875
+ D ? e(st) : e(ct, -1);
13876
+ }), P(it), W(() => {
13877
+ at = fi(it, 1, "sbw-root svelte-h0br6q", null, at, { "sbw-root--overlay": _() === "overlay" }), mi(it, `--sbw-map-h: ${(q(Oe) ? p() : "0px") ?? ""}; --sbw-map-gap: ${(q(Oe) ? h() : "0px") ?? ""};`);
13878
+ }), X(e, tt), Ze(et);
13863
13879
  }
13864
13880
  customElements.define("sidon-booking-widget", Ii(Lc, {
13865
13881
  marina: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgebuild/sidon-booking-widget",
3
- "version": "4.1.0",
3
+ "version": "4.1.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",