@gomusdev/web-components 4.2.0 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,6 +61,26 @@
61
61
  reject
62
62
  };
63
63
  }
64
+ /**
65
+ * When encountering a situation like `let [a, b, c] = $derived(blah())`,
66
+ * we need to stash an intermediate value that `a`, `b`, and `c` derive
67
+ * from, in case it's an iterable
68
+ * @template T
69
+ * @param {ArrayLike<T> | Iterable<T>} value
70
+ * @param {number} [n]
71
+ * @returns {Array<T>}
72
+ */
73
+ function to_array(value, n) {
74
+ if (Array.isArray(value)) return value;
75
+ if (n === void 0 || !(Symbol.iterator in value)) return Array.from(value);
76
+ /** @type {T[]} */
77
+ const array = [];
78
+ for (const element of value) {
79
+ array.push(element);
80
+ if (array.length === n) break;
81
+ }
82
+ return array;
83
+ }
64
84
  //#endregion
65
85
  //#region ../../node_modules/.pnpm/svelte@5.56.1_@typescript-eslint+types@8.60.1/node_modules/svelte/src/internal/client/constants.js
66
86
  /**
@@ -12141,6 +12161,49 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12141
12161
  });
12142
12162
  }
12143
12163
  //#endregion
12164
+ //#region src/lib/models/tour/UITour.svelte.ts
12165
+ function isUITour(x) {
12166
+ return x?.type === "Tour";
12167
+ }
12168
+ function createUITour(attributes, options) {
12169
+ return {
12170
+ ...attributes,
12171
+ type: "Tour",
12172
+ description: "",
12173
+ price_cents: attributes.totalPriceCents,
12174
+ tax_included: true,
12175
+ vat_pct: 0,
12176
+ instanceKey: options?.instanceKey ?? crypto.randomUUID(),
12177
+ wire: normalizeWireAttributes(attributes)
12178
+ };
12179
+ }
12180
+ /**
12181
+ * The tour's share of the tour_cart_item payload, normalized at construction:
12182
+ * snake_case keys, absent optionals omitted. The backend derives participants
12183
+ * from `quantity` but prices scale-priced tours from `quantities` — exactly
12184
+ * one of the two is emitted so they can never diverge on the wire.
12185
+ */
12186
+ function normalizeWireAttributes(attributes) {
12187
+ const wire = { language_id: attributes.languageId };
12188
+ if (attributes.quantities) wire.quantities = attributes.quantities;
12189
+ else wire.quantity = attributes.participants;
12190
+ if (attributes.gradeId != null) wire.grade_id = attributes.gradeId;
12191
+ if (attributes.ageGroupId != null) wire.age_group_id = attributes.ageGroupId;
12192
+ if (attributes.surcharges) wire.surcharges = attributes.surcharges;
12193
+ if (attributes.equipment) wire.equipment = attributes.equipment;
12194
+ if (attributes.attendees) wire.attendees = attributes.attendees;
12195
+ if (attributes.customs) wire.customs = attributes.customs;
12196
+ return wire;
12197
+ }
12198
+ /** Rebuilds a UITour from its localStorage JSON through the one construction path. */
12199
+ function reviveUITour(persisted) {
12200
+ const { type, description, price_cents, tax_included, vat_pct, instanceKey, wire, ...attributes } = persisted;
12201
+ return createUITour({
12202
+ ...attributes,
12203
+ totalPriceCents: price_cents
12204
+ }, { instanceKey });
12205
+ }
12206
+ //#endregion
12144
12207
  //#region src/lib/models/cart/CartItem.ts
12145
12208
  var lastMantleKey = 0;
12146
12209
  function createCartItem(product, options) {
@@ -12189,6 +12252,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12189
12252
  ...base,
12190
12253
  quantity: this.quantity
12191
12254
  };
12255
+ case "Tour": return {
12256
+ ...base,
12257
+ start_time: this.time,
12258
+ ...product.wire
12259
+ };
12192
12260
  default: throw new Error(`(orderAttributes) Unhandled product type: ${product}`);
12193
12261
  }
12194
12262
  },
@@ -12199,6 +12267,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12199
12267
  const segments = [];
12200
12268
  if (this.time) segments.push(`time: ${this.time}`);
12201
12269
  if (isScaleEventTicket(this.product)) segments.push(`scale_price: ${this.product.scale_price_id}`);
12270
+ if (isUITour(this.product)) segments.push(`tour: ${this.product.instanceKey}`);
12202
12271
  if (this.display?.discounted) segments.push("discounted");
12203
12272
  if (isMantleTicket(this.product) && this.mantle?.key) segments.push(`mantle_key: ${this.mantle.key}`);
12204
12273
  return segments.length > 0 ? ` (${segments.join(", ")})` : "";
@@ -12299,6 +12368,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12299
12368
  time: cartItem.time,
12300
12369
  quantity: cartItem.quantity
12301
12370
  });
12371
+ case "Tour":
12372
+ if (!isStillValid(cartItem)) return;
12373
+ return createCartItem(reviveUITour(cartItem.product), {
12374
+ time: cartItem.time,
12375
+ quantity: cartItem.quantity
12376
+ });
12302
12377
  case "Coupon": return createCartItem(createUICoupon(cartItem.product), { quantity: cartItem.quantity });
12303
12378
  default: throw new Error(`Unhandled case: ${type}`);
12304
12379
  }
@@ -12560,6 +12635,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12560
12635
  default: throw new Error(`(getMaxAvailability) Unhandled case: ${subtype2}`);
12561
12636
  }
12562
12637
  case "Coupon": return "unlimited";
12638
+ case "Tour": return "unlimited";
12563
12639
  default: throw new Error(`(getMaxAvailability) Unhandled case: ${type}`);
12564
12640
  }
12565
12641
  },
@@ -14144,8 +14220,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14144
14220
  var getPersonalizationDetails = createGetDetails(KEY$5);
14145
14221
  //#endregion
14146
14222
  //#region src/components/annualTicketPersonalization/components/AnnualTicketPersonalization.svelte
14147
- var root$55 = /* @__PURE__ */ from_html(`<li><a> </a></li>`);
14148
- var root_1$19 = /* @__PURE__ */ from_html(`<ul class="go-annual-ticket"><li class="go-annual-ticket-title"> </li> <li class="go-annual-ticket-personalization-count"> </li> <!></ul>`);
14223
+ var root$57 = /* @__PURE__ */ from_html(`<li><a> </a></li>`);
14224
+ var root_1$21 = /* @__PURE__ */ from_html(`<ul class="go-annual-ticket"><li class="go-annual-ticket-title"> </li> <li class="go-annual-ticket-personalization-count"> </li> <!></ul>`);
14149
14225
  function AnnualTicketPersonalization($$anchor, $$props) {
14150
14226
  push($$props, true);
14151
14227
  let token = prop($$props, "token", 7);
@@ -14170,7 +14246,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14170
14246
  var consequent_1 = ($$anchor) => {
14171
14247
  var fragment_1 = comment();
14172
14248
  each(first_child(fragment_1), 17, () => get$2(order).ticket_sales, (ticketSale) => ticketSale.id, ($$anchor, ticketSale) => {
14173
- var ul = root_1$19();
14249
+ var ul = root_1$21();
14174
14250
  var li = child(ul);
14175
14251
  var text = child(li, true);
14176
14252
  reset(li);
@@ -14179,7 +14255,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14179
14255
  reset(li_1);
14180
14256
  var node_2 = sibling(li_1, 2);
14181
14257
  var consequent = ($$anchor) => {
14182
- var li_2 = root$55();
14258
+ var li_2 = root$57();
14183
14259
  var a = child(li_2);
14184
14260
  var text_2 = child(a, true);
14185
14261
  reset(a);
@@ -14854,7 +14930,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14854
14930
  }
14855
14931
  //#endregion
14856
14932
  //#region src/components/forms/ui/generic/Form.svelte
14857
- var root$54 = /* @__PURE__ */ from_html(`<go-all-fields></go-all-fields> <go-form-feedback><go-errors-feedback></go-errors-feedback> <go-success-feedback></go-success-feedback></go-form-feedback> <go-submit> </go-submit>`, 3);
14933
+ var root$56 = /* @__PURE__ */ from_html(`<go-all-fields></go-all-fields> <go-form-feedback><go-errors-feedback></go-errors-feedback> <go-success-feedback></go-success-feedback></go-form-feedback> <go-submit> </go-submit>`, 3);
14858
14934
  function Form($$anchor, $$props) {
14859
14935
  push($$props, true);
14860
14936
  let formId = prop($$props, "formId", 7), custom = prop($$props, "custom", 7);
@@ -14899,7 +14975,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14899
14975
  var fragment = comment();
14900
14976
  var node = first_child(fragment);
14901
14977
  var consequent = ($$anchor) => {
14902
- var fragment_1 = root$54();
14978
+ var fragment_1 = root$56();
14903
14979
  var go_submit = sibling(sibling(first_child(fragment_1), 2), 2);
14904
14980
  var text = child(go_submit, true);
14905
14981
  reset(go_submit);
@@ -14926,7 +15002,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14926
15002
  }, [], ["details"]));
14927
15003
  //#endregion
14928
15004
  //#region src/components/auth/passwordReset/PasswordReset.svelte
14929
- var root$53 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15005
+ var root$55 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
14930
15006
  function PasswordReset($$anchor, $$props) {
14931
15007
  push($$props, true);
14932
15008
  let custom = prop($$props, "custom", 7, false);
@@ -14959,7 +15035,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14959
15035
  flushSync();
14960
15036
  }
14961
15037
  };
14962
- var go_form = root$53();
15038
+ var go_form = root$55();
14963
15039
  set_custom_element_data(go_form, "formId", "passwordReset");
14964
15040
  template_effect(() => set_custom_element_data(go_form, "custom", custom()));
14965
15041
  event("submit", go_form, passwordReset);
@@ -15123,7 +15199,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15123
15199
  return displayCart;
15124
15200
  }
15125
15201
  function createDisplayCartItem(cartItem, attrs) {
15126
- const quantity = resolveApiQuantity(attrs);
15202
+ const quantity = isUITour(cartItem.product) ? 1 : resolveApiQuantity(attrs);
15127
15203
  const displayPrice = attrs.price_cents ?? cartItem.product.price_cents;
15128
15204
  const originalPrice = cartItem.product.price_cents;
15129
15205
  const discounted = displayPrice < originalPrice;
@@ -15196,7 +15272,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15196
15272
  var getCartDetails = createGetDetails(KEY$3);
15197
15273
  //#endregion
15198
15274
  //#region src/components/cart/components/itemTitles/Coupon.svelte
15199
- var root$52 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span>`);
15275
+ var root$54 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span>`);
15200
15276
  function Coupon($$anchor, $$props) {
15201
15277
  push($$props, true);
15202
15278
  let cartItem = prop($$props, "cartItem", 7);
@@ -15209,7 +15285,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15209
15285
  flushSync();
15210
15286
  }
15211
15287
  };
15212
- var span = root$52();
15288
+ var span = root$54();
15213
15289
  var text = child(span, true);
15214
15290
  reset(span);
15215
15291
  template_effect(() => set_text(text, cartItem().product.title));
@@ -15219,8 +15295,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15219
15295
  create_custom_element(Coupon, { cartItem: {} }, [], [], { mode: "open" });
15220
15296
  //#endregion
15221
15297
  //#region src/components/cart/components/itemTitles/Event.svelte
15222
- var root$51 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span><span class="go-cart-item-time" data-testid="cart-item-time"> </span>`, 1);
15223
- var root_1$18 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"><span class="go-cart-item-title-event-title"> </span><span class="go-cart-item-title-ticket-title"> </span></span><!>`, 1);
15298
+ var root$53 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span><span class="go-cart-item-time" data-testid="cart-item-time"> </span>`, 1);
15299
+ var root_1$20 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"><span class="go-cart-item-title-event-title"> </span><span class="go-cart-item-title-ticket-title"> </span></span><!>`, 1);
15224
15300
  function Event$2($$anchor, $$props) {
15225
15301
  push($$props, true);
15226
15302
  let cartItem = prop($$props, "cartItem", 7);
@@ -15235,7 +15311,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15235
15311
  flushSync();
15236
15312
  }
15237
15313
  };
15238
- var fragment = root_1$18();
15314
+ var fragment = root_1$20();
15239
15315
  var span = first_child(fragment);
15240
15316
  var span_1 = child(span);
15241
15317
  var text = child(span_1, true);
@@ -15246,7 +15322,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15246
15322
  reset(span);
15247
15323
  var node = sibling(span);
15248
15324
  var consequent = ($$anchor) => {
15249
- var fragment_1 = root$51();
15325
+ var fragment_1 = root$53();
15250
15326
  var span_3 = first_child(fragment_1);
15251
15327
  var text_2 = child(span_3, true);
15252
15328
  reset(span_3);
@@ -15275,9 +15351,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15275
15351
  create_custom_element(Event$2, { cartItem: {} }, [], [], { mode: "open" });
15276
15352
  //#endregion
15277
15353
  //#region src/components/cart/components/itemTitles/Ticket.svelte
15278
- var root$50 = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
15279
- var root_1$17 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
15280
- var root_2$12 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span> <!>`, 1);
15354
+ var root$52 = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
15355
+ var root_1$19 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
15356
+ var root_2$14 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span> <!>`, 1);
15281
15357
  function Ticket($$anchor, $$props) {
15282
15358
  push($$props, true);
15283
15359
  let cartItem = prop($$props, "cartItem", 7);
@@ -15290,19 +15366,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15290
15366
  flushSync();
15291
15367
  }
15292
15368
  };
15293
- var fragment = root_2$12();
15369
+ var fragment = root_2$14();
15294
15370
  var span = first_child(fragment);
15295
15371
  var text = child(span, true);
15296
15372
  reset(span);
15297
15373
  var node = sibling(span, 2);
15298
15374
  var consequent_1 = ($$anchor) => {
15299
- var fragment_1 = root_1$17();
15375
+ var fragment_1 = root_1$19();
15300
15376
  var span_1 = first_child(fragment_1);
15301
15377
  var text_1 = child(span_1, true);
15302
15378
  reset(span_1);
15303
15379
  var node_1 = sibling(span_1, 2);
15304
15380
  var consequent = ($$anchor) => {
15305
- var span_2 = root$50();
15381
+ var span_2 = root$52();
15306
15382
  var text_2 = child(span_2, true);
15307
15383
  reset(span_2);
15308
15384
  template_effect(($0) => set_text(text_2, $0), [() => formatTime(cartItem().time)]);
@@ -15326,6 +15402,93 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15326
15402
  }
15327
15403
  create_custom_element(Ticket, { cartItem: {} }, [], [], { mode: "open" });
15328
15404
  //#endregion
15405
+ //#region src/components/cart/components/itemTitles/Tour.svelte
15406
+ var root$51 = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
15407
+ var root_1$18 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
15408
+ var root_2$13 = /* @__PURE__ */ from_html(`<span class="go-cart-item-custom" data-testid="cart-item-custom"> </span>`);
15409
+ var root_3$9 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span> <span class="go-cart-item-participants" data-testid="cart-item-participants"> </span> <!> <!>`, 1);
15410
+ function Tour$1($$anchor, $$props) {
15411
+ push($$props, true);
15412
+ let cartItem = prop($$props, "cartItem", 7);
15413
+ const product = /* @__PURE__ */ user_derived(() => cartItem().product);
15414
+ const slot = /* @__PURE__ */ user_derived(() => {
15415
+ if (!cartItem().time) return null;
15416
+ try {
15417
+ return {
15418
+ date: formatDate(cartItem().time, {
15419
+ year: "numeric",
15420
+ month: "numeric",
15421
+ day: "numeric"
15422
+ }, shop.locale),
15423
+ time: formatTime(cartItem().time)
15424
+ };
15425
+ } catch {
15426
+ return {
15427
+ date: cartItem().time,
15428
+ time: ""
15429
+ };
15430
+ }
15431
+ });
15432
+ const displayCustom = (value) => value == null ? "" : typeof value === "object" ? JSON.stringify(value) : String(value);
15433
+ const customs = /* @__PURE__ */ user_derived(() => Object.entries(get$2(product).customs ?? {}).filter(([, value]) => value != null && value !== ""));
15434
+ var $$exports = {
15435
+ get cartItem() {
15436
+ return cartItem();
15437
+ },
15438
+ set cartItem($$value) {
15439
+ cartItem($$value);
15440
+ flushSync();
15441
+ }
15442
+ };
15443
+ var fragment = root_3$9();
15444
+ var span = first_child(fragment);
15445
+ var text = child(span, true);
15446
+ reset(span);
15447
+ var span_1 = sibling(span, 2);
15448
+ var text_1 = child(span_1, true);
15449
+ reset(span_1);
15450
+ var node = sibling(span_1, 2);
15451
+ var consequent_1 = ($$anchor) => {
15452
+ var fragment_1 = root_1$18();
15453
+ var span_2 = first_child(fragment_1);
15454
+ var text_2 = child(span_2, true);
15455
+ reset(span_2);
15456
+ var node_1 = sibling(span_2, 2);
15457
+ var consequent = ($$anchor) => {
15458
+ var span_3 = root$51();
15459
+ var text_3 = child(span_3, true);
15460
+ reset(span_3);
15461
+ template_effect(() => set_text(text_3, get$2(slot).time));
15462
+ append($$anchor, span_3);
15463
+ };
15464
+ if_block(node_1, ($$render) => {
15465
+ if (get$2(slot).time) $$render(consequent);
15466
+ });
15467
+ template_effect(() => set_text(text_2, get$2(slot).date));
15468
+ append($$anchor, fragment_1);
15469
+ };
15470
+ if_block(node, ($$render) => {
15471
+ if (get$2(slot)) $$render(consequent_1);
15472
+ });
15473
+ each(sibling(node, 2), 17, () => get$2(customs), ([key, value]) => key, ($$anchor, $$item) => {
15474
+ var $$array = /* @__PURE__ */ user_derived(() => to_array(get$2($$item), 2));
15475
+ let key = () => get$2($$array)[0];
15476
+ let value = () => get$2($$array)[1];
15477
+ var span_4 = root_2$13();
15478
+ var text_4 = child(span_4);
15479
+ reset(span_4);
15480
+ template_effect(($0) => set_text(text_4, `${key() ?? ""}: ${$0 ?? ""}`), [() => displayCustom(value())]);
15481
+ append($$anchor, span_4);
15482
+ });
15483
+ template_effect(($0) => {
15484
+ set_text(text, get$2(product).title);
15485
+ set_text(text_1, $0);
15486
+ }, [() => shop.t("cart.item.participants", { count: get$2(product).participants })]);
15487
+ append($$anchor, fragment);
15488
+ return pop($$exports);
15489
+ }
15490
+ create_custom_element(Tour$1, { cartItem: {} }, [], [], { mode: "open" });
15491
+ //#endregion
15329
15492
  //#region src/lib/models/cart/quantityStepper.ts
15330
15493
  /** `+`: from below the order minimum jump to it (at least `1`); otherwise step up by one. Capped at `max`. */
15331
15494
  function increment(value, { min, max }) {
@@ -15359,7 +15522,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15359
15522
  }
15360
15523
  //#endregion
15361
15524
  //#region src/components/shared/quantityStepper/QuantityStepper.svelte
15362
- var root$49 = /* @__PURE__ */ from_html(`<div class="go-quantity-stepper" role="group"><button type="button" class="go-quantity-stepper-button go-quantity-stepper-decrement" tabindex="-1"><span aria-hidden="true">−</span></button> <input class="go-quantity-stepper-value" type="text" role="spinbutton" inputmode="numeric" autocomplete="off"/> <button type="button" class="go-quantity-stepper-button go-quantity-stepper-increment" tabindex="-1"><span aria-hidden="true">+</span></button></div>`);
15525
+ var root$50 = /* @__PURE__ */ from_html(`<div class="go-quantity-stepper" role="group"><button type="button" class="go-quantity-stepper-button go-quantity-stepper-decrement" tabindex="-1"><span aria-hidden="true">−</span></button> <input class="go-quantity-stepper-value" type="text" role="spinbutton" inputmode="numeric" autocomplete="off"/> <button type="button" class="go-quantity-stepper-button go-quantity-stepper-increment" tabindex="-1"><span aria-hidden="true">+</span></button></div>`);
15363
15526
  function QuantityStepper($$anchor, $$props) {
15364
15527
  const inputId = props_id();
15365
15528
  push($$props, true);
@@ -15474,7 +15637,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15474
15637
  flushSync();
15475
15638
  }
15476
15639
  };
15477
- var div = root$49();
15640
+ var div = root$50();
15478
15641
  var button = child(div);
15479
15642
  var input = sibling(button, 2);
15480
15643
  remove_input_defaults(input);
@@ -15544,8 +15707,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15544
15707
  }
15545
15708
  //#endregion
15546
15709
  //#region src/components/shared/quantityStepper/QuantityControl.svelte
15547
- var root$48 = /* @__PURE__ */ from_html(`<option> </option>`);
15548
- var root_1$16 = /* @__PURE__ */ from_html(`<select class="go-quantity-select"></select>`);
15710
+ var root$49 = /* @__PURE__ */ from_html(`<option> </option>`);
15711
+ var root_1$17 = /* @__PURE__ */ from_html(`<select class="go-quantity-select"></select>`);
15549
15712
  function QuantityControl($$anchor, $$props) {
15550
15713
  push($$props, true);
15551
15714
  /** Current committed quantity. */
@@ -15650,9 +15813,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15650
15813
  }
15651
15814
  };
15652
15815
  var alternate = ($$anchor) => {
15653
- var select = root_1$16();
15816
+ var select = root_1$17();
15654
15817
  each(select, 21, () => generateQuantityOptions(min(), max(), { floor: deselectable() ? floor() : min() }), (q) => q.value, ($$anchor, q) => {
15655
- var option = root$48();
15818
+ var option = root$49();
15656
15819
  var text = child(option, true);
15657
15820
  reset(option);
15658
15821
  var option_value = {};
@@ -17536,9 +17699,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17536
17699
  var purify = createDOMPurify();
17537
17700
  //#endregion
17538
17701
  //#region src/components/cart/components/SubRow.svelte
17539
- var root$47 = /* @__PURE__ */ from_html(`<span class="go-sub-ticket-description"></span>`);
17540
- var root_1$15 = /* @__PURE__ */ from_html(`<span class="go-sub-ticket-quantity"> </span>`);
17541
- var root_2$11 = /* @__PURE__ */ from_html(`<li><span class="go-sub-ticket-title"> </span> <!> <!></li>`);
17702
+ var root$48 = /* @__PURE__ */ from_html(`<span class="go-sub-ticket-description"></span>`);
17703
+ var root_1$16 = /* @__PURE__ */ from_html(`<span class="go-sub-ticket-quantity"> </span>`);
17704
+ var root_2$12 = /* @__PURE__ */ from_html(`<li><span class="go-sub-ticket-title"> </span> <!> <!></li>`);
17542
17705
  function SubRow($$anchor, $$props) {
17543
17706
  push($$props, true);
17544
17707
  /** Capacity-aware ceiling from CapacityManager.subTicketMaxes; the combination max when absent. */
@@ -17581,13 +17744,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17581
17744
  flushSync();
17582
17745
  }
17583
17746
  };
17584
- var li = root_2$11();
17747
+ var li = root_2$12();
17585
17748
  var span = child(li);
17586
17749
  var text = child(span, true);
17587
17750
  reset(span);
17588
17751
  var node = sibling(span, 2);
17589
17752
  var consequent = ($$anchor) => {
17590
- var span_1 = root$47();
17753
+ var span_1 = root$48();
17591
17754
  html$2(span_1, () => purify.sanitize(sub().description), true);
17592
17755
  reset(span_1);
17593
17756
  append($$anchor, span_1);
@@ -17597,7 +17760,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17597
17760
  });
17598
17761
  var node_1 = sibling(node, 2);
17599
17762
  var consequent_1 = ($$anchor) => {
17600
- var span_2 = root_1$15();
17763
+ var span_2 = root_1$16();
17601
17764
  var text_1 = child(span_2, true);
17602
17765
  reset(span_2);
17603
17766
  template_effect(() => {
@@ -17656,12 +17819,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17656
17819
  }, [], [], { mode: "open" });
17657
17820
  //#endregion
17658
17821
  //#region src/components/cart/components/Item.svelte
17659
- var root$46 = /* @__PURE__ */ from_html(`<s class="go-cart-item-price-original"> </s> <span class="go-cart-item-price-discounted"> </span>`, 1);
17660
- var root_1$14 = /* @__PURE__ */ from_html(`<span class="go-cart-item-price-discounted"> </span>`);
17661
- var root_2$10 = /* @__PURE__ */ from_html(`<span> </span>`);
17662
- var root_3$7 = /* @__PURE__ */ from_html(`<li class="go-cart-item-remove"><button class="go-cart-remove">⨉</button></li>`);
17663
- var root_4$4 = /* @__PURE__ */ from_html(`<ul class="go-sub-tickets" role="list"></ul>`);
17664
- var root_5$2 = /* @__PURE__ */ from_html(`<article class="go-cart-item-content"><ul><li class="go-cart-item-title-container"><!></li> <li class="go-cart-item-price"><!></li> <li class="go-cart-item-count"><!></li> <!> <li class="go-cart-item-sum"> </li></ul></article> <!>`, 1);
17822
+ var root$47 = /* @__PURE__ */ from_html(`<s class="go-cart-item-price-original"> </s> <span class="go-cart-item-price-discounted"> </span>`, 1);
17823
+ var root_1$15 = /* @__PURE__ */ from_html(`<span class="go-cart-item-price-discounted"> </span>`);
17824
+ var root_2$11 = /* @__PURE__ */ from_html(`<span data-testid="cart-item-participant-count"> </span>`);
17825
+ var root_3$8 = /* @__PURE__ */ from_html(`<span> </span>`);
17826
+ var root_4$4 = /* @__PURE__ */ from_html(`<li class="go-cart-item-remove"><button class="go-cart-remove">⨉</button></li>`);
17827
+ var root_5$2 = /* @__PURE__ */ from_html(`<ul class="go-sub-tickets" role="list"></ul>`);
17828
+ var root_6$2 = /* @__PURE__ */ from_html(`<article class="go-cart-item-content"><ul><li class="go-cart-item-title-container"><!></li> <li class="go-cart-item-price"><!></li> <li class="go-cart-item-count"><!></li> <!> <li class="go-cart-item-sum"> </li></ul></article> <!>`, 1);
17665
17829
  function Item$1($$anchor, $$props) {
17666
17830
  push($$props, true);
17667
17831
  let displayItem = prop($$props, "displayItem", 7), displayCart = prop($$props, "displayCart", 7), preview = prop($$props, "preview", 7);
@@ -17726,8 +17890,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17726
17890
  };
17727
17891
  var fragment = comment();
17728
17892
  var node = first_child(fragment);
17729
- var consequent_7 = ($$anchor) => {
17730
- var fragment_1 = root_5$2();
17893
+ var consequent_9 = ($$anchor) => {
17894
+ var fragment_1 = root_6$2();
17731
17895
  var article = first_child(fragment_1);
17732
17896
  var ul = child(article);
17733
17897
  var li = child(ul);
@@ -17747,17 +17911,23 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17747
17911
  return displayItem();
17748
17912
  } });
17749
17913
  };
17914
+ var consequent_3 = ($$anchor) => {
17915
+ Tour$1($$anchor, { get cartItem() {
17916
+ return displayItem();
17917
+ } });
17918
+ };
17750
17919
  if_block(node_1, ($$render) => {
17751
17920
  if (displayItem().product.type === "Ticket") $$render(consequent);
17752
17921
  else if (displayItem().product.type === "Event") $$render(consequent_1, 1);
17753
17922
  else if (displayItem().product.type === "Coupon") $$render(consequent_2, 2);
17923
+ else if (displayItem().product.type === "Tour") $$render(consequent_3, 3);
17754
17924
  });
17755
17925
  reset(li);
17756
17926
  var li_1 = sibling(li, 2);
17757
17927
  var node_2 = child(li_1);
17758
- var consequent_3 = ($$anchor) => {
17759
- var fragment_5 = root$46();
17760
- var s = first_child(fragment_5);
17928
+ var consequent_4 = ($$anchor) => {
17929
+ var fragment_6 = root$47();
17930
+ var s = first_child(fragment_6);
17761
17931
  var text = child(s, true);
17762
17932
  reset(s);
17763
17933
  var span = sibling(s, 2);
@@ -17767,29 +17937,36 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17767
17937
  set_text(text, $0);
17768
17938
  set_text(text_1, $1);
17769
17939
  }, [() => formatCurrency(displayItem().display.originalPrice), () => formatCurrency(displayItem().final_price_cents)]);
17770
- append($$anchor, fragment_5);
17940
+ append($$anchor, fragment_6);
17771
17941
  };
17772
17942
  var alternate = ($$anchor) => {
17773
- var span_1 = root_1$14();
17943
+ var span_1 = root_1$15();
17774
17944
  var text_2 = child(span_1, true);
17775
17945
  reset(span_1);
17776
17946
  template_effect(($0) => set_text(text_2, $0), [() => formatCurrency(displayItem().final_price_cents)]);
17777
17947
  append($$anchor, span_1);
17778
17948
  };
17779
17949
  if_block(node_2, ($$render) => {
17780
- if (displayItem().display?.discounted) $$render(consequent_3);
17950
+ if (displayItem().display?.discounted) $$render(consequent_4);
17781
17951
  else $$render(alternate, -1);
17782
17952
  });
17783
17953
  reset(li_1);
17784
17954
  var li_2 = sibling(li_1, 2);
17785
17955
  var node_3 = child(li_2);
17786
- var consequent_4 = ($$anchor) => {
17787
- var span_2 = root_2$10();
17956
+ var consequent_5 = ($$anchor) => {
17957
+ var span_2 = root_2$11();
17788
17958
  var text_3 = child(span_2, true);
17789
17959
  reset(span_2);
17790
- template_effect(() => set_text(text_3, displayItem().quantity));
17960
+ template_effect(() => set_text(text_3, displayItem().product.participants));
17791
17961
  append($$anchor, span_2);
17792
17962
  };
17963
+ var consequent_6 = ($$anchor) => {
17964
+ var span_3 = root_3$8();
17965
+ var text_4 = child(span_3, true);
17966
+ reset(span_3);
17967
+ template_effect(() => set_text(text_4, displayItem().quantity));
17968
+ append($$anchor, span_3);
17969
+ };
17793
17970
  var alternate_1 = ($$anchor) => {
17794
17971
  {
17795
17972
  let $0 = /* @__PURE__ */ user_derived(() => displayItem().quantity ?? 0);
@@ -17812,13 +17989,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17812
17989
  }
17813
17990
  };
17814
17991
  if_block(node_3, ($$render) => {
17815
- if (preview()) $$render(consequent_4);
17992
+ if (displayItem().product.type === "Tour") $$render(consequent_5);
17993
+ else if (preview()) $$render(consequent_6, 1);
17816
17994
  else $$render(alternate_1, -1);
17817
17995
  });
17818
17996
  reset(li_2);
17819
17997
  var node_4 = sibling(li_2, 2);
17820
- var consequent_5 = ($$anchor) => {
17821
- var li_3 = root_3$7();
17998
+ var consequent_7 = ($$anchor) => {
17999
+ var li_3 = root_4$4();
17822
18000
  var button = child(li_3);
17823
18001
  reset(li_3);
17824
18002
  template_effect(($0) => set_attribute(button, "aria-label", $0), [() => shop.t("cart.item.remove")]);
@@ -17826,16 +18004,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17826
18004
  append($$anchor, li_3);
17827
18005
  };
17828
18006
  if_block(node_4, ($$render) => {
17829
- if (!preview()) $$render(consequent_5);
18007
+ if (!preview()) $$render(consequent_7);
17830
18008
  });
17831
18009
  var li_4 = sibling(node_4, 2);
17832
- var text_4 = child(li_4, true);
18010
+ var text_5 = child(li_4, true);
17833
18011
  reset(li_4);
17834
18012
  reset(ul);
17835
18013
  reset(article);
17836
18014
  var node_5 = sibling(article, 2);
17837
- var consequent_6 = ($$anchor) => {
17838
- var ul_1 = root_4$4();
18015
+ var consequent_8 = ($$anchor) => {
18016
+ var ul_1 = root_5$2();
17839
18017
  each(ul_1, 21, () => subTicketDefs(get$2(mantleProduct)), (sub) => sub.id, ($$anchor, sub) => {
17840
18018
  {
17841
18019
  let $0 = /* @__PURE__ */ user_derived(() => displayItem().mantle?.composition?.[get$2(sub).id] ?? 0);
@@ -17861,13 +18039,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17861
18039
  append($$anchor, ul_1);
17862
18040
  };
17863
18041
  if_block(node_5, ($$render) => {
17864
- if (get$2(mantleProduct)) $$render(consequent_6);
18042
+ if (get$2(mantleProduct)) $$render(consequent_8);
17865
18043
  });
17866
- template_effect(($0) => set_text(text_4, $0), [() => formatCurrency(displayItem().total_price_cents)]);
18044
+ template_effect(($0) => set_text(text_5, $0), [() => formatCurrency(displayItem().total_price_cents)]);
17867
18045
  append($$anchor, fragment_1);
17868
18046
  };
17869
18047
  if_block(node, ($$render) => {
17870
- if (get$2(capacity)) $$render(consequent_7);
18048
+ if (get$2(capacity)) $$render(consequent_9);
17871
18049
  });
17872
18050
  append($$anchor, fragment);
17873
18051
  return pop($$exports);
@@ -17880,9 +18058,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17880
18058
  }, [], [], { mode: "open" });
17881
18059
  //#endregion
17882
18060
  //#region src/components/cart/components/CartItems.svelte
17883
- var root$45 = /* @__PURE__ */ from_html(`<li class="go-cart-header-remove"></li>`);
17884
- var root_1$13 = /* @__PURE__ */ from_html(`<li class="go-cart-item"><!></li>`);
17885
- var root_2$9 = /* @__PURE__ */ from_html(`<ol data-testid="cart-items"><li class="go-cart-header"><ul><li class="go-cart-header-title"> </li> <li class="go-cart-header-price"> </li> <li class="go-cart-header-count"> </li> <!> <li class="go-cart-header-sum"> </li></ul></li> <!></ol>`);
18061
+ var root$46 = /* @__PURE__ */ from_html(`<li class="go-cart-header-remove"></li>`);
18062
+ var root_1$14 = /* @__PURE__ */ from_html(`<li class="go-cart-item"><!></li>`);
18063
+ var root_2$10 = /* @__PURE__ */ from_html(`<ol data-testid="cart-items"><li class="go-cart-header"><ul><li class="go-cart-header-title"> </li> <li class="go-cart-header-price"> </li> <li class="go-cart-header-count"> </li> <!> <li class="go-cart-header-sum"> </li></ul></li> <!></ol>`);
17886
18064
  function CartItems($$anchor, $$props) {
17887
18065
  push($$props, true);
17888
18066
  const _details = getCartDetails($$props.$$host);
@@ -17890,7 +18068,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17890
18068
  var fragment = comment();
17891
18069
  var node = first_child(fragment);
17892
18070
  var consequent_1 = ($$anchor) => {
17893
- var ol = root_2$9();
18071
+ var ol = root_2$10();
17894
18072
  var li = child(ol);
17895
18073
  var ul = child(li);
17896
18074
  var li_1 = child(ul);
@@ -17904,7 +18082,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17904
18082
  reset(li_3);
17905
18083
  var node_1 = sibling(li_3, 2);
17906
18084
  var consequent = ($$anchor) => {
17907
- append($$anchor, root$45());
18085
+ append($$anchor, root$46());
17908
18086
  };
17909
18087
  if_block(node_1, ($$render) => {
17910
18088
  if (!get$2(details).preview) $$render(consequent);
@@ -17915,7 +18093,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17915
18093
  reset(ul);
17916
18094
  reset(li);
17917
18095
  each(sibling(li, 2), 17, () => get$2(details).displayCart.items, (item) => item.uuid, ($$anchor, item) => {
17918
- var li_6 = root_1$13();
18096
+ var li_6 = root_1$14();
17919
18097
  Item$1(child(li_6), {
17920
18098
  get displayItem() {
17921
18099
  return get$2(item);
@@ -17953,9 +18131,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17953
18131
  customElements.define("go-cart-items", create_custom_element(CartItems, {}, [], []));
17954
18132
  //#endregion
17955
18133
  //#region src/components/cart/components/CartCoupons.svelte
17956
- var root$44 = /* @__PURE__ */ from_html(`<li class="go-cart-coupon-remove-cell"><button class="go-cart-remove go-cart-coupon-remove">⨉</button></li>`);
17957
- var root_1$12 = /* @__PURE__ */ from_html(`<li><article class="go-cart-coupon-content"><ul><li class="go-cart-coupon-code"> </li> <!></ul></article></li>`);
17958
- var root_2$8 = /* @__PURE__ */ from_html(`<ol data-testid="cart-coupons"></ol>`);
18134
+ var root$45 = /* @__PURE__ */ from_html(`<li class="go-cart-coupon-remove-cell"><button class="go-cart-remove go-cart-coupon-remove">⨉</button></li>`);
18135
+ var root_1$13 = /* @__PURE__ */ from_html(`<li><article class="go-cart-coupon-content"><ul><li class="go-cart-coupon-code"> </li> <!></ul></article></li>`);
18136
+ var root_2$9 = /* @__PURE__ */ from_html(`<ol data-testid="cart-coupons"></ol>`);
17959
18137
  function CartCoupons($$anchor, $$props) {
17960
18138
  push($$props, true);
17961
18139
  const _details = getCartDetails($$props.$$host);
@@ -17963,9 +18141,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17963
18141
  var fragment = comment();
17964
18142
  var node = first_child(fragment);
17965
18143
  var consequent_1 = ($$anchor) => {
17966
- var ol = root_2$8();
18144
+ var ol = root_2$9();
17967
18145
  each(ol, 21, () => get$2(details).displayCart.coupons, (coupon) => coupon.code, ($$anchor, coupon) => {
17968
- var li = root_1$12();
18146
+ var li = root_1$13();
17969
18147
  let classes;
17970
18148
  var article = child(li);
17971
18149
  var ul = child(article);
@@ -17974,7 +18152,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17974
18152
  reset(li_1);
17975
18153
  var node_1 = sibling(li_1, 2);
17976
18154
  var consequent = ($$anchor) => {
17977
- var li_2 = root$44();
18155
+ var li_2 = root$45();
17978
18156
  var button = child(li_2);
17979
18157
  reset(li_2);
17980
18158
  template_effect(($0) => set_attribute(button, "aria-label", $0), [() => shop.t("cart.coupons.remove")]);
@@ -18006,7 +18184,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18006
18184
  customElements.define("go-cart-coupons", create_custom_element(CartCoupons, {}, [], []));
18007
18185
  //#endregion
18008
18186
  //#region src/components/cart/components/CartTotalAmount.svelte
18009
- var root$43 = /* @__PURE__ */ from_html(`<span class="go-cart-total-amount" data-testid="cart-total-amount"> </span>`);
18187
+ var root$44 = /* @__PURE__ */ from_html(`<span class="go-cart-total-amount" data-testid="cart-total-amount"> </span>`);
18010
18188
  function CartTotalAmount($$anchor, $$props) {
18011
18189
  push($$props, true);
18012
18190
  const _details = getCartDetails($$props.$$host);
@@ -18014,7 +18192,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18014
18192
  var fragment = comment();
18015
18193
  var node = first_child(fragment);
18016
18194
  var consequent = ($$anchor) => {
18017
- var span = root$43();
18195
+ var span = root$44();
18018
18196
  var text = child(span, true);
18019
18197
  reset(span);
18020
18198
  template_effect(($0) => set_text(text, $0), [() => formatCurrency(get$2(details).totalPriceCents)]);
@@ -18083,7 +18261,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18083
18261
  } }, [], []));
18084
18262
  //#endregion
18085
18263
  //#region src/components/cart/components/CartSubtotalAmount.svelte
18086
- var root$42 = /* @__PURE__ */ from_html(`<span class="go-cart-subtotal-amount" data-testid="cart-subtotal-amount"> </span>`);
18264
+ var root$43 = /* @__PURE__ */ from_html(`<span class="go-cart-subtotal-amount" data-testid="cart-subtotal-amount"> </span>`);
18087
18265
  function CartSubtotalAmount($$anchor, $$props) {
18088
18266
  push($$props, true);
18089
18267
  const _details = getCartDetails($$props.$$host);
@@ -18091,7 +18269,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18091
18269
  var fragment = comment();
18092
18270
  var node = first_child(fragment);
18093
18271
  var consequent = ($$anchor) => {
18094
- var span = root$42();
18272
+ var span = root$43();
18095
18273
  var text = child(span, true);
18096
18274
  reset(span);
18097
18275
  template_effect(($0) => set_text(text, $0), [() => formatCurrency(get$2(details).subtotalPriceCents)]);
@@ -18106,7 +18284,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18106
18284
  customElements.define("go-cart-subtotal-amount", create_custom_element(CartSubtotalAmount, {}, [], []));
18107
18285
  //#endregion
18108
18286
  //#region src/components/cart/components/CartDiscountedAmount.svelte
18109
- var root$41 = /* @__PURE__ */ from_html(`<span class="go-cart-discounted-amount" data-testid="cart-discounted-amount"><span class="go-cart-discounted-amount-sign">−</span> </span>`);
18287
+ var root$42 = /* @__PURE__ */ from_html(`<span class="go-cart-discounted-amount" data-testid="cart-discounted-amount"><span class="go-cart-discounted-amount-sign">−</span> </span>`);
18110
18288
  function CartDiscountedAmount($$anchor, $$props) {
18111
18289
  push($$props, true);
18112
18290
  const _details = getCartDetails($$props.$$host);
@@ -18114,7 +18292,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18114
18292
  var fragment = comment();
18115
18293
  var node = first_child(fragment);
18116
18294
  var consequent = ($$anchor) => {
18117
- var span = root$41();
18295
+ var span = root$42();
18118
18296
  var text = sibling(child(span), 1, true);
18119
18297
  reset(span);
18120
18298
  template_effect(($0) => set_text(text, $0), [() => formatCurrency(get$2(details).discountedAmountCents)]);
@@ -18267,7 +18445,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18267
18445
  }
18268
18446
  //#endregion
18269
18447
  //#region src/components/couponRedemption/CouponRedemption.svelte
18270
- var root$40 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
18448
+ var root$41 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
18271
18449
  function CouponRedemption($$anchor, $$props) {
18272
18450
  push($$props, true);
18273
18451
  Forms.defineForm({
@@ -18303,7 +18481,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18303
18481
  return runRedeem(form);
18304
18482
  }
18305
18483
  var $$exports = { flush };
18306
- var go_form = root$40();
18484
+ var go_form = root$41();
18307
18485
  set_custom_element_data(go_form, "formId", "couponRedemption");
18308
18486
  event("submit", go_form, redeem$1);
18309
18487
  append($$anchor, go_form);
@@ -18359,8 +18537,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18359
18537
  var goDonation = new GoDonation();
18360
18538
  //#endregion
18361
18539
  //#region src/components/donations/components/DonationCampaign.svelte
18362
- var root$39 = /* @__PURE__ */ from_html(`<img alt="logo"/>`);
18363
- var root_1$11 = /* @__PURE__ */ from_html(`<div role="button" tabindex="0"><div class="donation-image"><!></div> <div class="donation-info"><p class="donation-info-title"> </p> <p class="donation-info-description"> </p></div></div>`);
18540
+ var root$40 = /* @__PURE__ */ from_html(`<img alt="logo"/>`);
18541
+ var root_1$12 = /* @__PURE__ */ from_html(`<div role="button" tabindex="0"><div class="donation-image"><!></div> <div class="donation-info"><p class="donation-info-title"> </p> <p class="donation-info-description"> </p></div></div>`);
18364
18542
  function DonationCampaign($$anchor, $$props) {
18365
18543
  push($$props, true);
18366
18544
  let campaign = prop($$props, "campaign", 7);
@@ -18374,12 +18552,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18374
18552
  flushSync();
18375
18553
  }
18376
18554
  };
18377
- var div = root_1$11();
18555
+ var div = root_1$12();
18378
18556
  let classes;
18379
18557
  var div_1 = child(div);
18380
18558
  var node = child(div_1);
18381
18559
  var consequent = ($$anchor) => {
18382
- var img = root$39();
18560
+ var img = root$40();
18383
18561
  template_effect(($0) => set_attribute(img, "src", $0), [() => campaign().picture.thumbnail.replace("thumbnail", "article_3x2")]);
18384
18562
  append($$anchor, img);
18385
18563
  };
@@ -18450,9 +18628,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18450
18628
  }
18451
18629
  //#endregion
18452
18630
  //#region src/components/donations/components/DonationSelector.svelte
18453
- var root$38 = /* @__PURE__ */ from_html(`<button> </button>`);
18454
- var root_1$10 = /* @__PURE__ */ from_html(`<form id="donationForm" action="" novalidate=""><div class="donation-custom form-group"><label for="donation-custom-amount"> </label> <input class="form-control" id="donation-custom-amount" type="number" min="1"/></div></form>`);
18455
- var root_2$7 = /* @__PURE__ */ from_html(`<div class="donation-selection"><h3> </h3> <div class="donation-options"></div> <!></div>`);
18631
+ var root$39 = /* @__PURE__ */ from_html(`<button> </button>`);
18632
+ var root_1$11 = /* @__PURE__ */ from_html(`<form id="donationForm" action="" novalidate=""><div class="donation-custom form-group"><label for="donation-custom-amount"> </label> <input class="form-control" id="donation-custom-amount" type="number" min="1"/></div></form>`);
18633
+ var root_2$8 = /* @__PURE__ */ from_html(`<div class="donation-selection"><h3> </h3> <div class="donation-options"></div> <!></div>`);
18456
18634
  function DonationSelector($$anchor, $$props) {
18457
18635
  push($$props, true);
18458
18636
  const guestMaxLimit = goDonation.campaign?.guest_limit / 100;
@@ -18469,13 +18647,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18469
18647
  form.reportValidity();
18470
18648
  }
18471
18649
  }
18472
- var div = root_2$7();
18650
+ var div = root_2$8();
18473
18651
  var h3 = child(div);
18474
18652
  var text = child(h3, true);
18475
18653
  reset(h3);
18476
18654
  var div_1 = sibling(h3, 2);
18477
18655
  each(div_1, 20, () => goDonation.campaign?.options, (option) => option, ($$anchor, option) => {
18478
- var button = root$38();
18656
+ var button = root$39();
18479
18657
  let classes;
18480
18658
  var text_1 = child(button, true);
18481
18659
  reset(button);
@@ -18489,7 +18667,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18489
18667
  reset(div_1);
18490
18668
  var node = sibling(div_1, 2);
18491
18669
  var consequent = ($$anchor) => {
18492
- var form_1 = root_1$10();
18670
+ var form_1 = root_1$11();
18493
18671
  var div_2 = child(form_1);
18494
18672
  var label = child(div_2);
18495
18673
  var text_2 = child(label, true);
@@ -18519,7 +18697,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18519
18697
  create_custom_element(DonationSelector, {}, [], [], { mode: "open" });
18520
18698
  //#endregion
18521
18699
  //#region src/components/donations/components/Donations.svelte
18522
- var root$37 = /* @__PURE__ */ from_html(`<div class="go-donations-list"><!> <!> <div class="donation-actions"><button class="btn btn-default"> </button> <button class="btn btn-primary"> </button></div></div>`);
18700
+ var root$38 = /* @__PURE__ */ from_html(`<div class="go-donations-list"><!> <!> <div class="donation-actions"><button class="btn btn-default"> </button> <button class="btn btn-primary"> </button></div></div>`);
18523
18701
  function Donations($$anchor, $$props) {
18524
18702
  push($$props, false);
18525
18703
  onMount(() => {
@@ -18529,7 +18707,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18529
18707
  var fragment = comment();
18530
18708
  var node = first_child(fragment);
18531
18709
  var consequent_1 = ($$anchor) => {
18532
- var div = root$37();
18710
+ var div = root$38();
18533
18711
  var node_1 = child(div);
18534
18712
  each(node_1, 1, () => shop?.donations?.campaigns, (campaign) => campaign.id, ($$anchor, campaign) => {
18535
18713
  DonationCampaign($$anchor, { get campaign() {
@@ -24368,7 +24546,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
24368
24546
  "monthFormat",
24369
24547
  "yearFormat"
24370
24548
  ]);
24371
- var root$36 = /* @__PURE__ */ from_html(`<div><!></div>`);
24549
+ var root$37 = /* @__PURE__ */ from_html(`<div><!></div>`);
24372
24550
  function Calendar$1($$anchor, $$props) {
24373
24551
  push($$props, true);
24374
24552
  let child$18 = prop($$props, "child", 7), children = prop($$props, "children", 7), id = prop($$props, "id", 23, useId), ref = prop($$props, "ref", 15, null), value = prop($$props, "value", 15), onValueChange = prop($$props, "onValueChange", 7, noop), placeholder = prop($$props, "placeholder", 15), onPlaceholderChange = prop($$props, "onPlaceholderChange", 7, noop), weekdayFormat = prop($$props, "weekdayFormat", 7, "narrow"), weekStartsOn = prop($$props, "weekStartsOn", 7), pagedNavigation = prop($$props, "pagedNavigation", 7, false), isDateDisabled = prop($$props, "isDateDisabled", 7, () => false), isDateUnavailable = prop($$props, "isDateUnavailable", 7, () => false), fixedWeeks = prop($$props, "fixedWeeks", 7, false), numberOfMonths = prop($$props, "numberOfMonths", 7, 1), locale = prop($$props, "locale", 7), calendarLabel = prop($$props, "calendarLabel", 7, "Event"), disabled = prop($$props, "disabled", 7, false), readonly = prop($$props, "readonly", 7, false), minValue = prop($$props, "minValue", 7, void 0), maxValue = prop($$props, "maxValue", 7, void 0), preventDeselect = prop($$props, "preventDeselect", 7, false), type = prop($$props, "type", 7), disableDaysOutsideMonth = prop($$props, "disableDaysOutsideMonth", 7, true), initialFocus = prop($$props, "initialFocus", 7, false), maxDays = prop($$props, "maxDays", 7), monthFormat = prop($$props, "monthFormat", 7, "long"), yearFormat = prop($$props, "yearFormat", 7, "numeric"), restProps = /* @__PURE__ */ rest_props($$props, rest_excludes$25);
@@ -24640,7 +24818,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
24640
24818
  append($$anchor, fragment_1);
24641
24819
  };
24642
24820
  var alternate = ($$anchor) => {
24643
- var div = root$36();
24821
+ var div = root$37();
24644
24822
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
24645
24823
  snippet(child(div), () => children() ?? noop$1, () => rootState.snippetProps);
24646
24824
  reset(div);
@@ -24695,7 +24873,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
24695
24873
  "ref",
24696
24874
  "id"
24697
24875
  ]);
24698
- var root$35 = /* @__PURE__ */ from_html(`<div><!></div>`);
24876
+ var root$36 = /* @__PURE__ */ from_html(`<div><!></div>`);
24699
24877
  function Calendar_day($$anchor, $$props) {
24700
24878
  const uid = props_id();
24701
24879
  push($$props, true);
@@ -24750,7 +24928,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
24750
24928
  append($$anchor, fragment_1);
24751
24929
  };
24752
24930
  var alternate_1 = ($$anchor) => {
24753
- var div = root$35();
24931
+ var div = root$36();
24754
24932
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
24755
24933
  var node_2 = child(div);
24756
24934
  var consequent_1 = ($$anchor) => {
@@ -24795,7 +24973,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
24795
24973
  "ref",
24796
24974
  "id"
24797
24975
  ]);
24798
- var root$34 = /* @__PURE__ */ from_html(`<table><!></table>`);
24976
+ var root$35 = /* @__PURE__ */ from_html(`<table><!></table>`);
24799
24977
  function Calendar_grid($$anchor, $$props) {
24800
24978
  const uid = props_id();
24801
24979
  push($$props, true);
@@ -24843,7 +25021,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
24843
25021
  append($$anchor, fragment_1);
24844
25022
  };
24845
25023
  var alternate = ($$anchor) => {
24846
- var table = root$34();
25024
+ var table = root$35();
24847
25025
  attribute_effect(table, () => ({ ...get$2(mergedProps) }));
24848
25026
  snippet(child(table), () => children() ?? noop$1);
24849
25027
  reset(table);
@@ -24874,7 +25052,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
24874
25052
  "ref",
24875
25053
  "id"
24876
25054
  ]);
24877
- var root$33 = /* @__PURE__ */ from_html(`<tbody><!></tbody>`);
25055
+ var root$34 = /* @__PURE__ */ from_html(`<tbody><!></tbody>`);
24878
25056
  function Calendar_grid_body($$anchor, $$props) {
24879
25057
  const uid = props_id();
24880
25058
  push($$props, true);
@@ -24922,7 +25100,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
24922
25100
  append($$anchor, fragment_1);
24923
25101
  };
24924
25102
  var alternate = ($$anchor) => {
24925
- var tbody = root$33();
25103
+ var tbody = root$34();
24926
25104
  attribute_effect(tbody, () => ({ ...get$2(mergedProps) }));
24927
25105
  snippet(child(tbody), () => children() ?? noop$1);
24928
25106
  reset(tbody);
@@ -24955,7 +25133,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
24955
25133
  "date",
24956
25134
  "month"
24957
25135
  ]);
24958
- var root$32 = /* @__PURE__ */ from_html(`<td><!></td>`);
25136
+ var root$33 = /* @__PURE__ */ from_html(`<td><!></td>`);
24959
25137
  function Calendar_cell($$anchor, $$props) {
24960
25138
  const uid = props_id();
24961
25139
  push($$props, true);
@@ -25026,7 +25204,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25026
25204
  append($$anchor, fragment_1);
25027
25205
  };
25028
25206
  var alternate = ($$anchor) => {
25029
- var td = root$32();
25207
+ var td = root$33();
25030
25208
  attribute_effect(td, () => ({ ...get$2(mergedProps) }));
25031
25209
  snippet(child(td), () => children() ?? noop$1, () => cellState.snippetProps);
25032
25210
  reset(td);
@@ -25059,7 +25237,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25059
25237
  "ref",
25060
25238
  "id"
25061
25239
  ]);
25062
- var root$31 = /* @__PURE__ */ from_html(`<thead><!></thead>`);
25240
+ var root$32 = /* @__PURE__ */ from_html(`<thead><!></thead>`);
25063
25241
  function Calendar_grid_head($$anchor, $$props) {
25064
25242
  const uid = props_id();
25065
25243
  push($$props, true);
@@ -25107,7 +25285,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25107
25285
  append($$anchor, fragment_1);
25108
25286
  };
25109
25287
  var alternate = ($$anchor) => {
25110
- var thead = root$31();
25288
+ var thead = root$32();
25111
25289
  attribute_effect(thead, () => ({ ...get$2(mergedProps) }));
25112
25290
  snippet(child(thead), () => children() ?? noop$1);
25113
25291
  reset(thead);
@@ -25138,7 +25316,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25138
25316
  "ref",
25139
25317
  "id"
25140
25318
  ]);
25141
- var root$30 = /* @__PURE__ */ from_html(`<th><!></th>`);
25319
+ var root$31 = /* @__PURE__ */ from_html(`<th><!></th>`);
25142
25320
  function Calendar_head_cell($$anchor, $$props) {
25143
25321
  const uid = props_id();
25144
25322
  push($$props, true);
@@ -25186,7 +25364,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25186
25364
  append($$anchor, fragment_1);
25187
25365
  };
25188
25366
  var alternate = ($$anchor) => {
25189
- var th = root$30();
25367
+ var th = root$31();
25190
25368
  attribute_effect(th, () => ({ ...get$2(mergedProps) }));
25191
25369
  snippet(child(th), () => children() ?? noop$1);
25192
25370
  reset(th);
@@ -25217,7 +25395,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25217
25395
  "ref",
25218
25396
  "id"
25219
25397
  ]);
25220
- var root$29 = /* @__PURE__ */ from_html(`<tr><!></tr>`);
25398
+ var root$30 = /* @__PURE__ */ from_html(`<tr><!></tr>`);
25221
25399
  function Calendar_grid_row($$anchor, $$props) {
25222
25400
  const uid = props_id();
25223
25401
  push($$props, true);
@@ -25265,7 +25443,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25265
25443
  append($$anchor, fragment_1);
25266
25444
  };
25267
25445
  var alternate = ($$anchor) => {
25268
- var tr = root$29();
25446
+ var tr = root$30();
25269
25447
  attribute_effect(tr, () => ({ ...get$2(mergedProps) }));
25270
25448
  snippet(child(tr), () => children() ?? noop$1);
25271
25449
  reset(tr);
@@ -25296,7 +25474,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25296
25474
  "ref",
25297
25475
  "id"
25298
25476
  ]);
25299
- var root$28 = /* @__PURE__ */ from_html(`<header><!></header>`);
25477
+ var root$29 = /* @__PURE__ */ from_html(`<header><!></header>`);
25300
25478
  function Calendar_header($$anchor, $$props) {
25301
25479
  const uid = props_id();
25302
25480
  push($$props, true);
@@ -25344,7 +25522,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25344
25522
  append($$anchor, fragment_1);
25345
25523
  };
25346
25524
  var alternate = ($$anchor) => {
25347
- var header = root$28();
25525
+ var header = root$29();
25348
25526
  attribute_effect(header, () => ({ ...get$2(mergedProps) }));
25349
25527
  snippet(child(header), () => children() ?? noop$1);
25350
25528
  reset(header);
@@ -25375,7 +25553,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25375
25553
  "ref",
25376
25554
  "id"
25377
25555
  ]);
25378
- var root$27 = /* @__PURE__ */ from_html(`<div><!></div>`);
25556
+ var root$28 = /* @__PURE__ */ from_html(`<div><!></div>`);
25379
25557
  function Calendar_heading($$anchor, $$props) {
25380
25558
  const uid = props_id();
25381
25559
  push($$props, true);
@@ -25426,7 +25604,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25426
25604
  append($$anchor, fragment_1);
25427
25605
  };
25428
25606
  var alternate_1 = ($$anchor) => {
25429
- var div = root$27();
25607
+ var div = root$28();
25430
25608
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
25431
25609
  var node_2 = child(div);
25432
25610
  var consequent_1 = ($$anchor) => {
@@ -25472,7 +25650,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25472
25650
  "ref",
25473
25651
  "tabindex"
25474
25652
  ]);
25475
- var root$26 = /* @__PURE__ */ from_html(`<button><!></button>`);
25653
+ var root$27 = /* @__PURE__ */ from_html(`<button><!></button>`);
25476
25654
  function Calendar_next_button($$anchor, $$props) {
25477
25655
  const uid = props_id();
25478
25656
  push($$props, true);
@@ -25527,7 +25705,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25527
25705
  append($$anchor, fragment_1);
25528
25706
  };
25529
25707
  var alternate = ($$anchor) => {
25530
- var button = root$26();
25708
+ var button = root$27();
25531
25709
  attribute_effect(button, () => ({ ...get$2(mergedProps) }));
25532
25710
  snippet(child(button), () => children() ?? noop$1);
25533
25711
  reset(button);
@@ -25560,7 +25738,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25560
25738
  "ref",
25561
25739
  "tabindex"
25562
25740
  ]);
25563
- var root$25 = /* @__PURE__ */ from_html(`<button><!></button>`);
25741
+ var root$26 = /* @__PURE__ */ from_html(`<button><!></button>`);
25564
25742
  function Calendar_prev_button($$anchor, $$props) {
25565
25743
  const uid = props_id();
25566
25744
  push($$props, true);
@@ -25615,7 +25793,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25615
25793
  append($$anchor, fragment_1);
25616
25794
  };
25617
25795
  var alternate = ($$anchor) => {
25618
- var button = root$25();
25796
+ var button = root$26();
25619
25797
  attribute_effect(button, () => ({ ...get$2(mergedProps) }));
25620
25798
  snippet(child(button), () => children() ?? noop$1);
25621
25799
  reset(button);
@@ -25644,7 +25822,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25644
25822
  "$$host",
25645
25823
  "value"
25646
25824
  ]);
25647
- var root$24 = /* @__PURE__ */ from_html(`<input/>`);
25825
+ var root$25 = /* @__PURE__ */ from_html(`<input/>`);
25648
25826
  function Hidden_input($$anchor, $$props) {
25649
25827
  push($$props, true);
25650
25828
  let value = prop($$props, "value", 15), restProps = /* @__PURE__ */ rest_props($$props, rest_excludes$13);
@@ -25670,7 +25848,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25670
25848
  var fragment = comment();
25671
25849
  var node = first_child(fragment);
25672
25850
  var consequent = ($$anchor) => {
25673
- var input = root$24();
25851
+ var input = root$25();
25674
25852
  attribute_effect(input, () => ({
25675
25853
  ...get$2(mergedProps),
25676
25854
  value: value()
@@ -25678,7 +25856,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25678
25856
  append($$anchor, input);
25679
25857
  };
25680
25858
  var alternate = ($$anchor) => {
25681
- var input_1 = root$24();
25859
+ var input_1 = root$25();
25682
25860
  attribute_effect(input_1, () => ({ ...get$2(mergedProps) }), void 0, void 0, void 0, void 0, true);
25683
25861
  bind_value(input_1, value);
25684
25862
  append($$anchor, input_1);
@@ -27991,7 +28169,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
27991
28169
  "tooltip",
27992
28170
  "contentPointerEvents"
27993
28171
  ]);
27994
- var root$23 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
28172
+ var root$24 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
27995
28173
  function Popper_layer_inner($$anchor, $$props) {
27996
28174
  push($$props, true);
27997
28175
  let popper = prop($$props, "popper", 7), onEscapeKeydown = prop($$props, "onEscapeKeydown", 7), escapeKeydownBehavior = prop($$props, "escapeKeydownBehavior", 7), preventOverflowTextSelection = prop($$props, "preventOverflowTextSelection", 7), id = prop($$props, "id", 7), onPointerDown = prop($$props, "onPointerDown", 7), onPointerUp = prop($$props, "onPointerUp", 7), side = prop($$props, "side", 7), sideOffset = prop($$props, "sideOffset", 7), align = prop($$props, "align", 7), alignOffset = prop($$props, "alignOffset", 7), arrowPadding = prop($$props, "arrowPadding", 7), avoidCollisions = prop($$props, "avoidCollisions", 7), collisionBoundary = prop($$props, "collisionBoundary", 7), collisionPadding = prop($$props, "collisionPadding", 7), sticky = prop($$props, "sticky", 7), hideWhenDetached = prop($$props, "hideWhenDetached", 7), updatePositionStrategy = prop($$props, "updatePositionStrategy", 7), strategy = prop($$props, "strategy", 7), dir = prop($$props, "dir", 7), preventScroll = prop($$props, "preventScroll", 7), wrapperId = prop($$props, "wrapperId", 7), style = prop($$props, "style", 7), onPlaced = prop($$props, "onPlaced", 7), onInteractOutside = prop($$props, "onInteractOutside", 7), onCloseAutoFocus = prop($$props, "onCloseAutoFocus", 7), onOpenAutoFocus = prop($$props, "onOpenAutoFocus", 7), onFocusOutside = prop($$props, "onFocusOutside", 7), interactOutsideBehavior = prop($$props, "interactOutsideBehavior", 7, "close"), loop = prop($$props, "loop", 7), trapFocus = prop($$props, "trapFocus", 7, true), isValidEvent = prop($$props, "isValidEvent", 7, () => false), customAnchor = prop($$props, "customAnchor", 7, null), isStatic = prop($$props, "isStatic", 7, false), enabled = prop($$props, "enabled", 7), ref = prop($$props, "ref", 7), tooltip = prop($$props, "tooltip", 7, false), contentPointerEvents = prop($$props, "contentPointerEvents", 7, "auto"), restProps = /* @__PURE__ */ rest_props($$props, rest_excludes$11);
@@ -28269,7 +28447,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
28269
28447
  const content = ($$anchor, $$arg0) => {
28270
28448
  let floatingProps = () => $$arg0?.().props;
28271
28449
  let wrapperProps = () => $$arg0?.().wrapperProps;
28272
- var fragment_1 = root$23();
28450
+ var fragment_1 = root$24();
28273
28451
  var node = first_child(fragment_1);
28274
28452
  var consequent = ($$anchor) => {
28275
28453
  Scroll_lock($$anchor, { get preventScroll() {
@@ -30633,8 +30811,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
30633
30811
  "children",
30634
30812
  "child"
30635
30813
  ]);
30636
- var root$22 = /* @__PURE__ */ from_html(`<div><!></div>`);
30637
- var root_1$9 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
30814
+ var root$23 = /* @__PURE__ */ from_html(`<div><!></div>`);
30815
+ var root_1$10 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
30638
30816
  function Date_field_input($$anchor, $$props) {
30639
30817
  const uid = props_id();
30640
30818
  push($$props, true);
@@ -30682,7 +30860,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
30682
30860
  flushSync();
30683
30861
  }
30684
30862
  };
30685
- var fragment = root_1$9();
30863
+ var fragment = root_1$10();
30686
30864
  var node = first_child(fragment);
30687
30865
  var consequent = ($$anchor) => {
30688
30866
  var fragment_1 = comment();
@@ -30693,7 +30871,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
30693
30871
  append($$anchor, fragment_1);
30694
30872
  };
30695
30873
  var alternate = ($$anchor) => {
30696
- var div = root$22();
30874
+ var div = root$23();
30697
30875
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
30698
30876
  snippet(child(div), () => children() ?? noop$1, () => ({ segments: inputState.root.segmentContents }));
30699
30877
  reset(div);
@@ -30726,7 +30904,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
30726
30904
  "children",
30727
30905
  "child"
30728
30906
  ]);
30729
- var root$21 = /* @__PURE__ */ from_html(`<div><!></div>`);
30907
+ var root$22 = /* @__PURE__ */ from_html(`<div><!></div>`);
30730
30908
  function Date_field_label($$anchor, $$props) {
30731
30909
  const uid = props_id();
30732
30910
  push($$props, true);
@@ -30774,7 +30952,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
30774
30952
  append($$anchor, fragment_1);
30775
30953
  };
30776
30954
  var alternate = ($$anchor) => {
30777
- var div = root$21();
30955
+ var div = root$22();
30778
30956
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
30779
30957
  snippet(child(div), () => children() ?? noop$1);
30780
30958
  reset(div);
@@ -30806,7 +30984,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
30806
30984
  "child",
30807
30985
  "part"
30808
30986
  ]);
30809
- var root$20 = /* @__PURE__ */ from_html(`<span><!></span>`);
30987
+ var root$21 = /* @__PURE__ */ from_html(`<span><!></span>`);
30810
30988
  function Date_field_segment($$anchor, $$props) {
30811
30989
  const uid = props_id();
30812
30990
  push($$props, true);
@@ -30861,7 +31039,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
30861
31039
  append($$anchor, fragment_1);
30862
31040
  };
30863
31041
  var alternate = ($$anchor) => {
30864
- var span = root$20();
31042
+ var span = root$21();
30865
31043
  attribute_effect(span, () => ({ ...get$2(mergedProps) }));
30866
31044
  snippet(child(span), () => children() ?? noop$1);
30867
31045
  reset(span);
@@ -31883,7 +32061,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31883
32061
  "id",
31884
32062
  "ref"
31885
32063
  ]);
31886
- var root$19 = /* @__PURE__ */ from_html(`<div><!></div>`);
32064
+ var root$20 = /* @__PURE__ */ from_html(`<div><!></div>`);
31887
32065
  function Date_picker_calendar($$anchor, $$props) {
31888
32066
  const uid = props_id();
31889
32067
  push($$props, true);
@@ -31963,7 +32141,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31963
32141
  append($$anchor, fragment_1);
31964
32142
  };
31965
32143
  var alternate = ($$anchor) => {
31966
- var div = root$19();
32144
+ var div = root$20();
31967
32145
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
31968
32146
  snippet(child(div), () => children() ?? noop$1, () => calendarState.snippetProps);
31969
32147
  reset(div);
@@ -32003,7 +32181,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32003
32181
  "customAnchor",
32004
32182
  "style"
32005
32183
  ]);
32006
- var root$18 = /* @__PURE__ */ from_html(`<div><div><!></div></div>`);
32184
+ var root$19 = /* @__PURE__ */ from_html(`<div><div><!></div></div>`);
32007
32185
  function Popover_content($$anchor, $$props) {
32008
32186
  const uid = props_id();
32009
32187
  push($$props, true);
@@ -32138,7 +32316,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32138
32316
  append($$anchor, fragment_3);
32139
32317
  };
32140
32318
  var alternate = ($$anchor) => {
32141
- var div = root$18();
32319
+ var div = root$19();
32142
32320
  attribute_effect(div, () => ({ ...wrapperProps() }));
32143
32321
  var div_1 = child(div);
32144
32322
  attribute_effect(div_1, () => ({ ...get$2(finalProps) }));
@@ -32208,7 +32386,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32208
32386
  append($$anchor, fragment_6);
32209
32387
  };
32210
32388
  var alternate_1 = ($$anchor) => {
32211
- var div_2 = root$18();
32389
+ var div_2 = root$19();
32212
32390
  attribute_effect(div_2, () => ({ ...wrapperProps() }));
32213
32391
  var div_3 = child(div_2);
32214
32392
  attribute_effect(div_3, () => ({ ...get$2(finalProps) }));
@@ -32339,7 +32517,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32339
32517
  "openDelay",
32340
32518
  "closeDelay"
32341
32519
  ]);
32342
- var root$17 = /* @__PURE__ */ from_html(`<button><!></button>`);
32520
+ var root$18 = /* @__PURE__ */ from_html(`<button><!></button>`);
32343
32521
  function Popover_trigger($$anchor, $$props) {
32344
32522
  const uid = props_id();
32345
32523
  push($$props, true);
@@ -32434,7 +32612,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32434
32612
  append($$anchor, fragment_2);
32435
32613
  };
32436
32614
  var alternate = ($$anchor) => {
32437
- var button = root$17();
32615
+ var button = root$18();
32438
32616
  attribute_effect(button, () => ({ ...get$2(mergedProps) }));
32439
32617
  snippet(child(button), () => children() ?? noop$1);
32440
32618
  reset(button);
@@ -32514,8 +32692,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32514
32692
  }, [], [], { mode: "open" });
32515
32693
  //#endregion
32516
32694
  //#region src/components/forms/ui/generic/DatePicker.svelte
32517
- var root$16 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
32518
- var root_1$8 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
32695
+ var root$17 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
32696
+ var root_1$9 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
32519
32697
  function DatePicker_1($$anchor, $$props) {
32520
32698
  push($$props, true);
32521
32699
  let dateString = prop($$props, "dateString", 15), labelClass = prop($$props, "labelClass", 7), inputClass = prop($$props, "inputClass", 7), labelText = prop($$props, "labelText", 7);
@@ -32572,7 +32750,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32572
32750
  set(date, $$value, true);
32573
32751
  },
32574
32752
  children: ($$anchor, $$slotProps) => {
32575
- var fragment_1 = root_1$8();
32753
+ var fragment_1 = root_1$9();
32576
32754
  var node_1 = first_child(fragment_1);
32577
32755
  component(node_1, () => Date_field_label, ($$anchor, DatePicker_Label) => {
32578
32756
  DatePicker_Label($$anchor, {
@@ -32602,7 +32780,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32602
32780
  {
32603
32781
  const children = ($$anchor, $$arg0) => {
32604
32782
  let segments = () => $$arg0?.().segments;
32605
- var fragment_4 = root$16();
32783
+ var fragment_4 = root$17();
32606
32784
  var node_5 = first_child(fragment_4);
32607
32785
  each(node_5, 17, segments, index$1, ($$anchor, $$item) => {
32608
32786
  let part = () => get$2($$item).part;
@@ -32653,12 +32831,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32653
32831
  const children = ($$anchor, $$arg0) => {
32654
32832
  let months = () => $$arg0?.().months;
32655
32833
  let weekdays = () => $$arg0?.().weekdays;
32656
- var fragment_8 = root$16();
32834
+ var fragment_8 = root$17();
32657
32835
  var node_10 = first_child(fragment_8);
32658
32836
  component(node_10, () => Calendar_header, ($$anchor, DatePicker_Header) => {
32659
32837
  DatePicker_Header($$anchor, {
32660
32838
  children: ($$anchor, $$slotProps) => {
32661
- var fragment_9 = root_1$8();
32839
+ var fragment_9 = root_1$9();
32662
32840
  var node_11 = first_child(fragment_9);
32663
32841
  component(node_11, () => Calendar_prev_button, ($$anchor, DatePicker_PrevButton) => {
32664
32842
  DatePicker_PrevButton($$anchor, { class: "go-datepicker-previous" });
@@ -32680,7 +32858,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32680
32858
  component(first_child(fragment_10), () => Calendar_grid, ($$anchor, DatePicker_Grid) => {
32681
32859
  DatePicker_Grid($$anchor, {
32682
32860
  children: ($$anchor, $$slotProps) => {
32683
- var fragment_11 = root$16();
32861
+ var fragment_11 = root$17();
32684
32862
  var node_16 = first_child(fragment_11);
32685
32863
  component(node_16, () => Calendar_grid_head, ($$anchor, DatePicker_GridHead) => {
32686
32864
  DatePicker_GridHead($$anchor, {
@@ -32808,10 +32986,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32808
32986
  "inputClass",
32809
32987
  "host"
32810
32988
  ]);
32811
- var root$15 = /* @__PURE__ */ from_html(`<span class="go-field-star" aria-hidden="true">*</span>`);
32812
- var root_1$7 = /* @__PURE__ */ from_html(` <!>`, 1);
32813
- var root_2$6 = /* @__PURE__ */ from_html(`<label><!></label> <input/>`, 1);
32814
- var root_3$6 = /* @__PURE__ */ from_html(`<label><!></label> <textarea></textarea>`, 1);
32989
+ var root$16 = /* @__PURE__ */ from_html(`<span class="go-field-star" aria-hidden="true">*</span>`);
32990
+ var root_1$8 = /* @__PURE__ */ from_html(` <!>`, 1);
32991
+ var root_2$7 = /* @__PURE__ */ from_html(`<label><!></label> <input/>`, 1);
32992
+ var root_3$7 = /* @__PURE__ */ from_html(`<label><!></label> <textarea></textarea>`, 1);
32815
32993
  var root_4$3 = /* @__PURE__ */ from_html(`<figure role="status" aria-live="polite"><img class="go-file-preview"/> <figcaption class="go-file-preview-caption"> </figcaption></figure>`);
32816
32994
  var root_5$1 = /* @__PURE__ */ from_html(`<label><!></label> <input/> <!>`, 1);
32817
32995
  var root_6$1 = /* @__PURE__ */ from_html(`<label><input/> <span class="go-checkbox-label"><!></span></label>`);
@@ -32830,11 +33008,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32830
33008
  push($$props, true);
32831
33009
  const labelText = ($$anchor) => {
32832
33010
  next();
32833
- var fragment = root_1$7();
33011
+ var fragment = root_1$8();
32834
33012
  var text = first_child(fragment);
32835
33013
  var node = sibling(text);
32836
33014
  var consequent = ($$anchor) => {
32837
- append($$anchor, root$15());
33015
+ append($$anchor, root$16());
32838
33016
  };
32839
33017
  if_block(node, ($$render) => {
32840
33018
  if (field().required) $$render(consequent);
@@ -32843,7 +33021,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32843
33021
  append($$anchor, fragment);
32844
33022
  };
32845
33023
  const input = ($$anchor) => {
32846
- var fragment_1 = root_2$6();
33024
+ var fragment_1 = root_2$7();
32847
33025
  var label_1 = first_child(fragment_1);
32848
33026
  labelText(child(label_1));
32849
33027
  reset(label_1);
@@ -32864,7 +33042,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32864
33042
  append($$anchor, fragment_1);
32865
33043
  };
32866
33044
  const textarea = ($$anchor) => {
32867
- var fragment_2 = root_3$6();
33045
+ var fragment_2 = root_3$7();
32868
33046
  var label_2 = first_child(fragment_2);
32869
33047
  labelText(child(label_2));
32870
33048
  reset(label_2);
@@ -33234,10 +33412,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33234
33412
  }, [], [], { mode: "open" });
33235
33413
  //#endregion
33236
33414
  //#region src/components/forms/ui/generic/Field.svelte
33237
- var root$14 = /* @__PURE__ */ from_html(`<span> </span>`);
33238
- var root_1$6 = /* @__PURE__ */ from_html(`<li> </li>`);
33239
- var root_2$5 = /* @__PURE__ */ from_html(`<ul class="go-field-errors"></ul>`);
33240
- var root_3$5 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
33415
+ var root$15 = /* @__PURE__ */ from_html(`<span> </span>`);
33416
+ var root_1$7 = /* @__PURE__ */ from_html(`<li> </li>`);
33417
+ var root_2$6 = /* @__PURE__ */ from_html(`<ul class="go-field-errors"></ul>`);
33418
+ var root_3$6 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
33241
33419
  function Field($$anchor, $$props) {
33242
33420
  push($$props, true);
33243
33421
  let key = prop($$props, "key", 7), required = prop($$props, "required", 7, false), labelClass = prop($$props, "labelClass", 7), inputClass = prop($$props, "inputClass", 7);
@@ -33295,7 +33473,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33295
33473
  flushSync();
33296
33474
  }
33297
33475
  };
33298
- var fragment = root_3$5();
33476
+ var fragment = root_3$6();
33299
33477
  var node = first_child(fragment);
33300
33478
  InputAndLabel(node, {
33301
33479
  get describedByIds() {
@@ -33317,7 +33495,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33317
33495
  });
33318
33496
  var node_1 = sibling(node, 2);
33319
33497
  var consequent = ($$anchor) => {
33320
- var span = root$14();
33498
+ var span = root$15();
33321
33499
  var text = child(span, true);
33322
33500
  reset(span);
33323
33501
  template_effect(() => {
@@ -33331,9 +33509,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33331
33509
  });
33332
33510
  var node_2 = sibling(node_1, 2);
33333
33511
  var consequent_1 = ($$anchor) => {
33334
- var ul = root_2$5();
33512
+ var ul = root_2$6();
33335
33513
  each(ul, 21, () => get$2(allErrors), index$1, ($$anchor, error) => {
33336
- var li = root_1$6();
33514
+ var li = root_1$7();
33337
33515
  var text_1 = child(li, true);
33338
33516
  reset(li);
33339
33517
  template_effect(() => set_text(text_1, get$2(error)));
@@ -33373,7 +33551,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33373
33551
  }, [], ["getField"]));
33374
33552
  //#endregion
33375
33553
  //#region src/components/forms/ui/generic/AllFields.svelte
33376
- var root$13 = /* @__PURE__ */ from_html(`<go-field></go-field>`, 2);
33554
+ var root$14 = /* @__PURE__ */ from_html(`<go-field></go-field>`, 2);
33377
33555
  function AllFields($$anchor, $$props) {
33378
33556
  push($$props, true);
33379
33557
  let _details = getDetails$1($$props.$$host);
@@ -33381,7 +33559,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33381
33559
  let allFields = /* @__PURE__ */ user_derived(() => get$2(details) ? Forms.getFormFields(get$2(details)?.formId) : []);
33382
33560
  var fragment = comment();
33383
33561
  each(first_child(fragment), 17, () => get$2(allFields), (field) => field.key, ($$anchor, field) => {
33384
- var go_field = root$13();
33562
+ var go_field = root$14();
33385
33563
  template_effect(() => set_custom_element_data(go_field, "key", get$2(field).key));
33386
33564
  template_effect(() => set_custom_element_data(go_field, "required", get$2(field).required));
33387
33565
  append($$anchor, go_field);
@@ -33392,10 +33570,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33392
33570
  customElements.define("go-all-fields", create_custom_element(AllFields, {}, [], []));
33393
33571
  //#endregion
33394
33572
  //#region src/components/forms/ui/generic/ErrorsFeedback.svelte
33395
- var root$12 = /* @__PURE__ */ from_html(`<p aria-hidden="true"> </p>`);
33396
- var root_1$5 = /* @__PURE__ */ from_html(`<li> </li>`);
33397
- var root_2$4 = /* @__PURE__ */ from_html(`<ul class="go-error-feedback-api-errors"></ul>`);
33398
- var root_3$4 = /* @__PURE__ */ from_html(`<div><p aria-live="assertive" class="sr-only"><!></p> <!> <!></div>`);
33573
+ var root$13 = /* @__PURE__ */ from_html(`<p aria-hidden="true"> </p>`);
33574
+ var root_1$6 = /* @__PURE__ */ from_html(`<li> </li>`);
33575
+ var root_2$5 = /* @__PURE__ */ from_html(`<ul class="go-error-feedback-api-errors"></ul>`);
33576
+ var root_3$5 = /* @__PURE__ */ from_html(`<div><p aria-live="assertive" class="sr-only"><!></p> <!> <!></div>`);
33399
33577
  function ErrorsFeedback($$anchor, $$props) {
33400
33578
  push($$props, true);
33401
33579
  const _details = getDetails$1($$props.$$host);
@@ -33416,7 +33594,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33416
33594
  $$props.$$host.classList.toggle("go-feedback", true);
33417
33595
  $$props.$$host.setAttribute("data-num-errors", get$2(numErrors).toString());
33418
33596
  });
33419
- var div = root_3$4();
33597
+ var div = root_3$5();
33420
33598
  var p = child(div);
33421
33599
  var node = child(p);
33422
33600
  var consequent = ($$anchor) => {
@@ -33430,7 +33608,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33430
33608
  reset(p);
33431
33609
  var node_1 = sibling(p, 2);
33432
33610
  var consequent_1 = ($$anchor) => {
33433
- var p_1 = root$12();
33611
+ var p_1 = root$13();
33434
33612
  var text_1 = child(p_1, true);
33435
33613
  reset(p_1);
33436
33614
  template_effect(($0) => set_text(text_1, $0), [() => shop.t("forms.errorSummary", { count: get$2(errorsRealtime) })]);
@@ -33441,9 +33619,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33441
33619
  });
33442
33620
  var node_2 = sibling(node_1, 2);
33443
33621
  var consequent_2 = ($$anchor) => {
33444
- var ul = root_2$4();
33622
+ var ul = root_2$5();
33445
33623
  each(ul, 21, () => get$2(details)?.apiErrors, index$1, ($$anchor, error) => {
33446
- var li = root_1$5();
33624
+ var li = root_1$6();
33447
33625
  var text_2 = child(li, true);
33448
33626
  reset(li);
33449
33627
  template_effect(() => set_text(text_2, get$2(error)));
@@ -33463,9 +33641,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33463
33641
  customElements.define("go-errors-feedback", create_custom_element(ErrorsFeedback, {}, [], []));
33464
33642
  //#endregion
33465
33643
  //#region src/components/forms/ui/generic/FormFeedback.svelte
33466
- var root$11 = /* @__PURE__ */ from_html(`<div class="go-form-feedback"><!></div>`);
33644
+ var root$12 = /* @__PURE__ */ from_html(`<div class="go-form-feedback"><!></div>`);
33467
33645
  function FormFeedback($$anchor, $$props) {
33468
- var div = root$11();
33646
+ var div = root$12();
33469
33647
  slot(child(div), $$props, "default", {}, null);
33470
33648
  reset(div);
33471
33649
  append($$anchor, div);
@@ -33499,7 +33677,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33499
33677
  } }, [], []));
33500
33678
  //#endregion
33501
33679
  //#region src/components/forms/ui/generic/SuccessFeedback.svelte
33502
- var root$10 = /* @__PURE__ */ from_html(`<div aria-live="assertive"> </div>`);
33680
+ var root$11 = /* @__PURE__ */ from_html(`<div aria-live="assertive"> </div>`);
33503
33681
  function SuccessFeedback($$anchor, $$props) {
33504
33682
  push($$props, true);
33505
33683
  const _details = getDetails$1($$props.$$host);
@@ -33507,7 +33685,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33507
33685
  var fragment = comment();
33508
33686
  var node = first_child(fragment);
33509
33687
  var consequent = ($$anchor) => {
33510
- var div = root$10();
33688
+ var div = root$11();
33511
33689
  let classes;
33512
33690
  var text = child(div, true);
33513
33691
  reset(div);
@@ -35882,10 +36060,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
35882
36060
  } }, [], ["orderDetails"]));
35883
36061
  //#endregion
35884
36062
  //#region src/components/order/components/subcomponents/breakdown/items/Event.svelte
35885
- var root$9 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <span class="go-cart-item-time" data-testid="cart-item-time"> </span>`, 1);
35886
- var root_1$4 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities"> </span>`, 1);
35887
- var root_2$3 = /* @__PURE__ */ from_html(`<a aria-label="iCal link"> </a>`);
35888
- var root_3$3 = /* @__PURE__ */ from_html(`<li><article><ul><li class="go-order-breakdown-count">1</li> <li class="go-order-breakdown-product"><span class="go-order-item-title"> </span> <!> <!> <a class="go-ticket-download" target="_blank" rel="noopener noreferrer"> </a></li> <li class="go-order-breakdown-item-price"> </li> <li class="go-order-breakdown-passbook"></li> <li class="go-order-breakdown-ical"><!></li></ul></article></li>`);
36063
+ var root$10 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <span class="go-cart-item-time" data-testid="cart-item-time"> </span>`, 1);
36064
+ var root_1$5 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities"> </span>`, 1);
36065
+ var root_2$4 = /* @__PURE__ */ from_html(`<a aria-label="iCal link"> </a>`);
36066
+ var root_3$4 = /* @__PURE__ */ from_html(`<li><article><ul><li class="go-order-breakdown-count">1</li> <li class="go-order-breakdown-product"><span class="go-order-item-title"> </span> <!> <!> <a class="go-ticket-download" target="_blank" rel="noopener noreferrer"> </a></li> <li class="go-order-breakdown-item-price"> </li> <li class="go-order-breakdown-passbook"></li> <li class="go-order-breakdown-ical"><!></li></ul></article></li>`);
35889
36067
  function Event$1($$anchor, $$props) {
35890
36068
  push($$props, true);
35891
36069
  let item = prop($$props, "item", 7), orderDetails = prop($$props, "orderDetails", 7);
@@ -35905,7 +36083,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
35905
36083
  flushSync();
35906
36084
  }
35907
36085
  };
35908
- var li = root_3$3();
36086
+ var li = root_3$4();
35909
36087
  var article = child(li);
35910
36088
  var ul = child(article);
35911
36089
  var li_1 = sibling(child(ul), 2);
@@ -35914,7 +36092,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
35914
36092
  reset(span);
35915
36093
  var node = sibling(span, 2);
35916
36094
  var consequent = ($$anchor) => {
35917
- var fragment = root$9();
36095
+ var fragment = root$10();
35918
36096
  var span_1 = first_child(fragment);
35919
36097
  var text_1 = child(span_1, true);
35920
36098
  reset(span_1);
@@ -35935,7 +36113,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
35935
36113
  });
35936
36114
  var node_1 = sibling(node, 2);
35937
36115
  each(node_1, 17, () => item().attributes.quantities, (scalePrice) => scalePrice.id, ($$anchor, scalePrice) => {
35938
- var fragment_1 = root_1$4();
36116
+ var fragment_1 = root_1$5();
35939
36117
  var span_3 = sibling(first_child(fragment_1), 2);
35940
36118
  var text_3 = child(span_3);
35941
36119
  reset(span_3);
@@ -35952,7 +36130,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
35952
36130
  var li_3 = sibling(li_2, 4);
35953
36131
  var node_2 = child(li_3);
35954
36132
  var consequent_1 = ($$anchor) => {
35955
- var a_1 = root_2$3();
36133
+ var a_1 = root_2$4();
35956
36134
  var text_6 = child(a_1, true);
35957
36135
  reset(a_1);
35958
36136
  template_effect(($0) => {
@@ -35987,10 +36165,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
35987
36165
  }, [], [], { mode: "open" });
35988
36166
  //#endregion
35989
36167
  //#region src/components/order/components/subcomponents/breakdown/items/TicketSale.svelte
35990
- var root$8 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities" data-testid="order-sub-ticket"> </span>`, 1);
35991
- var root_1$3 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span> <span class="go-cart-item-time"> </span>`, 1);
35992
- var root_2$2 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span>`);
35993
- var root_3$2 = /* @__PURE__ */ from_html(`<!> <br/> <a class="go-ticket-download" target="_blank" rel="noopener noreferrer"> </a>`, 1);
36168
+ var root$9 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities" data-testid="order-sub-ticket"> </span>`, 1);
36169
+ var root_1$4 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span> <span class="go-cart-item-time"> </span>`, 1);
36170
+ var root_2$3 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span>`);
36171
+ var root_3$3 = /* @__PURE__ */ from_html(`<!> <br/> <a class="go-ticket-download" target="_blank" rel="noopener noreferrer"> </a>`, 1);
35994
36172
  var root_4$2 = /* @__PURE__ */ from_html(`<br/> <a class="go-ticket-personalization"> </a>`, 1);
35995
36173
  var root_5 = /* @__PURE__ */ from_html(`<a aria-label="passbook link"><img alt="apple wallet icon"/></a>`);
35996
36174
  var root_6 = /* @__PURE__ */ from_html(`<a aria-label="iCal link"> </a>`);
@@ -36035,7 +36213,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36035
36213
  reset(span);
36036
36214
  var node_2 = sibling(span, 2);
36037
36215
  each(node_2, 17, () => get$2(subTicketSales), (sub) => sub.id, ($$anchor, sub) => {
36038
- var fragment_2 = root$8();
36216
+ var fragment_2 = root$9();
36039
36217
  var span_1 = sibling(first_child(fragment_2), 2);
36040
36218
  var text_1 = child(span_1);
36041
36219
  reset(span_1);
@@ -36045,10 +36223,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36045
36223
  var node_3 = sibling(node_2, 2);
36046
36224
  var consequent_2 = ($$anchor) => {
36047
36225
  const barcodeId = /* @__PURE__ */ user_derived(() => item().attributes.barcodes[index]?.id);
36048
- var fragment_3 = root_3$2();
36226
+ var fragment_3 = root_3$3();
36049
36227
  var node_4 = first_child(fragment_3);
36050
36228
  var consequent = ($$anchor) => {
36051
- var fragment_4 = root_1$3();
36229
+ var fragment_4 = root_1$4();
36052
36230
  var span_2 = first_child(fragment_4);
36053
36231
  var text_2 = child(span_2, true);
36054
36232
  reset(span_2);
@@ -36065,7 +36243,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36065
36243
  append($$anchor, fragment_4);
36066
36244
  };
36067
36245
  var consequent_1 = ($$anchor) => {
36068
- var span_4 = root_2$2();
36246
+ var span_4 = root_2$3();
36069
36247
  var text_4 = child(span_4, true);
36070
36248
  reset(span_4);
36071
36249
  template_effect(($0) => set_text(text_4, $0), [() => formatDate(item().attributes.start_time, {
@@ -36212,6 +36390,96 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36212
36390
  orderDetails: {}
36213
36391
  }, [], [], { mode: "open" });
36214
36392
  //#endregion
36393
+ //#region src/components/order/components/subcomponents/breakdown/items/Tour.svelte
36394
+ var root$8 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <span class="go-cart-item-time" data-testid="cart-item-time"> </span>`, 1);
36395
+ var root_1$3 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities"> </span>`, 1);
36396
+ var root_2$2 = /* @__PURE__ */ from_html(`<a aria-label="iCal link"> </a>`);
36397
+ var root_3$2 = /* @__PURE__ */ from_html(`<li><article><ul><li class="go-order-breakdown-count">1</li> <li class="go-order-breakdown-product"><span class="go-order-item-title"> </span> <span class="go-order-item-participants" data-testid="order-item-participants"> </span> <!> <!></li> <li class="go-order-breakdown-item-price"> </li> <li class="go-order-breakdown-passbook"></li> <li class="go-order-breakdown-ical"><!></li></ul></article></li>`);
36398
+ function Tour($$anchor, $$props) {
36399
+ push($$props, true);
36400
+ let item = prop($$props, "item", 7);
36401
+ const priceRows = /* @__PURE__ */ user_derived(() => (item().attributes.prices ?? []).filter((row) => row.title && row.quantity != null));
36402
+ var $$exports = {
36403
+ get item() {
36404
+ return item();
36405
+ },
36406
+ set item($$value) {
36407
+ item($$value);
36408
+ flushSync();
36409
+ }
36410
+ };
36411
+ var li = root_3$2();
36412
+ var article = child(li);
36413
+ var ul = child(article);
36414
+ var li_1 = sibling(child(ul), 2);
36415
+ var span = child(li_1);
36416
+ var text = child(span, true);
36417
+ reset(span);
36418
+ var span_1 = sibling(span, 2);
36419
+ var text_1 = child(span_1, true);
36420
+ reset(span_1);
36421
+ var node = sibling(span_1, 2);
36422
+ var consequent = ($$anchor) => {
36423
+ var fragment = root$8();
36424
+ var span_2 = first_child(fragment);
36425
+ var text_2 = child(span_2, true);
36426
+ reset(span_2);
36427
+ var span_3 = sibling(span_2, 2);
36428
+ var text_3 = child(span_3, true);
36429
+ reset(span_3);
36430
+ template_effect(($0, $1) => {
36431
+ set_text(text_2, $0);
36432
+ set_text(text_3, $1);
36433
+ }, [() => formatDate(item().attributes.start_time, {
36434
+ month: "numeric",
36435
+ day: "numeric"
36436
+ }, shop.locale), () => formatTime(item().attributes.start_time)]);
36437
+ append($$anchor, fragment);
36438
+ };
36439
+ if_block(node, ($$render) => {
36440
+ if (item().attributes.start_time) $$render(consequent);
36441
+ });
36442
+ each(sibling(node, 2), 17, () => get$2(priceRows), (row) => row.title, ($$anchor, row) => {
36443
+ var fragment_1 = root_1$3();
36444
+ var span_4 = sibling(first_child(fragment_1), 2);
36445
+ var text_4 = child(span_4);
36446
+ reset(span_4);
36447
+ template_effect(() => set_text(text_4, `${get$2(row).quantity ?? ""} x ${get$2(row).title ?? ""}`));
36448
+ append($$anchor, fragment_1);
36449
+ });
36450
+ reset(li_1);
36451
+ var li_2 = sibling(li_1, 2);
36452
+ var text_5 = child(li_2, true);
36453
+ reset(li_2);
36454
+ var li_3 = sibling(li_2, 4);
36455
+ var node_2 = child(li_3);
36456
+ var consequent_1 = ($$anchor) => {
36457
+ var a = root_2$2();
36458
+ var text_6 = child(a, true);
36459
+ reset(a);
36460
+ template_effect(($0) => {
36461
+ set_attribute(a, "href", shop.apiUrl + item().attributes.ical_url);
36462
+ set_text(text_6, $0);
36463
+ }, [() => shop.t("common.calendar")]);
36464
+ append($$anchor, a);
36465
+ };
36466
+ if_block(node_2, ($$render) => {
36467
+ if (item().attributes.ical_url) $$render(consequent_1);
36468
+ });
36469
+ reset(li_3);
36470
+ reset(ul);
36471
+ reset(article);
36472
+ reset(li);
36473
+ template_effect(($0, $1) => {
36474
+ set_text(text, item().attributes.title);
36475
+ set_text(text_1, $0);
36476
+ set_text(text_5, $1);
36477
+ }, [() => shop.t("cart.item.participants", { count: item().attributes.participants }), () => formatCurrency$1(item().price_cents)]);
36478
+ append($$anchor, li);
36479
+ return pop($$exports);
36480
+ }
36481
+ create_custom_element(Tour, { item: {} }, [], [], { mode: "open" });
36482
+ //#endregion
36215
36483
  //#region src/components/order/components/subcomponents/breakdown/Breakdown.svelte
36216
36484
  var root$7 = /* @__PURE__ */ from_html(`<ol><li class="data-go-order-breakdown-header"><ul><li class="go-order-breakdown-header-count"> </li> <li class="go-order-breakdown-header-product"> </li> <li class="go-order-breakdown-header-price"> </li> <li class="go-order-breakdown-header-passbook"></li></ul></li> <!> <li class="go-order-breakdown-footer"><ul><li class="go-cart-footer-title"></li> <li class="go-cart-footer-count"></li> <li class="go-cart-footer-price"> </li> <li class="go-cart-footer-passbook"></li></ul></li></ol>`);
36217
36485
  function Breakdown($$anchor, $$props) {
@@ -36221,7 +36489,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36221
36489
  let order = /* @__PURE__ */ user_derived(() => get$2(orderDetails)?.order);
36222
36490
  var fragment = comment();
36223
36491
  var node = first_child(fragment);
36224
- var consequent_2 = ($$anchor) => {
36492
+ var consequent_3 = ($$anchor) => {
36225
36493
  var ol = root$7();
36226
36494
  var li = child(ol);
36227
36495
  var ul = child(li);
@@ -36261,9 +36529,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36261
36529
  }
36262
36530
  });
36263
36531
  };
36532
+ var consequent_2 = ($$anchor) => {
36533
+ Tour($$anchor, { get item() {
36534
+ return get$2(item);
36535
+ } });
36536
+ };
36264
36537
  if_block(node_2, ($$render) => {
36265
36538
  if (get$2(item).type === "Ticket") $$render(consequent);
36266
36539
  else if (get$2(item).type === "Event") $$render(consequent_1, 1);
36540
+ else if (get$2(item).type === "Tour") $$render(consequent_2, 2);
36267
36541
  });
36268
36542
  append($$anchor, fragment_1);
36269
36543
  });
@@ -36290,7 +36564,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36290
36564
  append($$anchor, ol);
36291
36565
  };
36292
36566
  if_block(node, ($$render) => {
36293
- if (get$2(order) && get$2(orderDetails)) $$render(consequent_2);
36567
+ if (get$2(order) && get$2(orderDetails)) $$render(consequent_3);
36294
36568
  });
36295
36569
  append($$anchor, fragment);
36296
36570
  pop();
@@ -37766,20 +38040,61 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
37766
38040
  type: "Boolean"
37767
38041
  } }, [], []));
37768
38042
  //#endregion
38043
+ //#region src/go/cart.ts
38044
+ var REQUIRED = [
38045
+ "id",
38046
+ "time",
38047
+ "participants",
38048
+ "languageId",
38049
+ "totalPriceCents",
38050
+ "title"
38051
+ ];
38052
+ function validate(options) {
38053
+ for (const key of REQUIRED) if (options[key] == null || options[key] === "") throw new Error(`(go.cart.addTour) '${key}' is required`);
38054
+ if (!(options.participants > 0)) throw new Error(`(go.cart.addTour) 'participants' must be a positive number`);
38055
+ if (options.quantities) {
38056
+ const quantitiesSum = sum(Object.values(options.quantities));
38057
+ if (quantitiesSum !== options.participants) throw new Error(`(go.cart.addTour) 'quantities' must sum to 'participants' (${quantitiesSum} !== ${options.participants})`);
38058
+ }
38059
+ }
38060
+ /**
38061
+ * Adds a group-tour booking to the cart and resolves with the cart line's
38062
+ * uuid. Every call appends a NEW line — identical bookings coexist; use the
38063
+ * returned uuid to deduplicate or remove.
38064
+ *
38065
+ * Tours are not priced by the shop API: `totalPriceCents` is the
38066
+ * integrator-supplied booking total (incl. mandatory surcharges) and is
38067
+ * verified by the backend only at checkout.
38068
+ */
38069
+ async function addTour(options) {
38070
+ validate(options);
38071
+ if (!shop.cart) throw new Error("(go.cart.addTour) shop not initialized — call go.init first");
38072
+ const { time, ...attributes } = options;
38073
+ const item = createCartItem(createUITour(attributes), {
38074
+ quantity: 1,
38075
+ time
38076
+ });
38077
+ shop.cart.addItem(item);
38078
+ return item.uuid;
38079
+ }
38080
+ //#endregion
37769
38081
  //#region src/go/go.ts
37770
38082
  var initPromise = null;
37771
38083
  async function ensureShopReady() {
37772
38084
  if (initPromise) return initPromise;
37773
- if (!shop.client) throw new Error("[go.api] Shop not initialized — call go.init({ shop, api, locale }) first.");
38085
+ if (!shop.client) throw new Error("[go] Shop not initialized — call go.init({ shop, api, locale }) first.");
37774
38086
  }
38087
+ var resolveCommand = (method) => method.split(".").reduce((target, key) => target?.[key], go);
37775
38088
  async function initGo(window) {
37776
38089
  const stub = window.go;
37777
38090
  let q = stub && stub._queue || [];
37778
- console.log(q);
38091
+ if (stub && stub._queue && !stub.cart) console.warn("(go) the pasted go snippet predates go.cart — cart calls cannot be queued before load. Update the snippet or gate on window.go.loaded.");
37779
38092
  for (const command of q) {
37780
38093
  if (command.method === "load") continue;
37781
38094
  try {
37782
- await go[command.method](command.options);
38095
+ const fn = resolveCommand(command.method);
38096
+ if (typeof fn !== "function") throw new Error(`(go) unknown command: ${command.method}`);
38097
+ await fn(command.options);
37783
38098
  } catch (e) {
37784
38099
  console.error(e);
37785
38100
  }
@@ -37810,7 +38125,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
37810
38125
  await ensureShopReady();
37811
38126
  return shop.asyncFetch(() => shop.getOrders(params));
37812
38127
  }
37813
- }
38128
+ },
38129
+ cart: { addTour: async (options) => {
38130
+ await ensureShopReady();
38131
+ return addTour(options);
38132
+ } }
37814
38133
  };
37815
38134
  (async () => {
37816
38135
  await initGo(window);