@gomusdev/web-components 4.2.0 → 4.4.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.
@@ -60,6 +60,26 @@ function deferred() {
60
60
  reject
61
61
  };
62
62
  }
63
+ /**
64
+ * When encountering a situation like `let [a, b, c] = $derived(blah())`,
65
+ * we need to stash an intermediate value that `a`, `b`, and `c` derive
66
+ * from, in case it's an iterable
67
+ * @template T
68
+ * @param {ArrayLike<T> | Iterable<T>} value
69
+ * @param {number} [n]
70
+ * @returns {Array<T>}
71
+ */
72
+ function to_array(value, n) {
73
+ if (Array.isArray(value)) return value;
74
+ if (n === void 0 || !(Symbol.iterator in value)) return Array.from(value);
75
+ /** @type {T[]} */
76
+ const array = [];
77
+ for (const element of value) {
78
+ array.push(element);
79
+ if (array.length === n) break;
80
+ }
81
+ return array;
82
+ }
63
83
  //#endregion
64
84
  //#region ../../node_modules/.pnpm/svelte@5.56.1_@typescript-eslint+types@8.60.1/node_modules/svelte/src/internal/client/constants.js
65
85
  /**
@@ -12140,6 +12160,49 @@ function dispatchCartEvents(cart) {
12140
12160
  });
12141
12161
  }
12142
12162
  //#endregion
12163
+ //#region src/lib/models/tour/UITour.svelte.ts
12164
+ function isUITour(x) {
12165
+ return x?.type === "Tour";
12166
+ }
12167
+ function createUITour(attributes, options) {
12168
+ return {
12169
+ ...attributes,
12170
+ type: "Tour",
12171
+ description: "",
12172
+ price_cents: attributes.totalPriceCents,
12173
+ tax_included: true,
12174
+ vat_pct: 0,
12175
+ instanceKey: options?.instanceKey ?? crypto.randomUUID(),
12176
+ wire: normalizeWireAttributes(attributes)
12177
+ };
12178
+ }
12179
+ /**
12180
+ * The tour's share of the tour_cart_item payload, normalized at construction:
12181
+ * snake_case keys, absent optionals omitted. The backend derives participants
12182
+ * from `quantity` but prices scale-priced tours from `quantities` — exactly
12183
+ * one of the two is emitted so they can never diverge on the wire.
12184
+ */
12185
+ function normalizeWireAttributes(attributes) {
12186
+ const wire = { language_id: attributes.languageId };
12187
+ if (attributes.quantities) wire.quantities = attributes.quantities;
12188
+ else wire.quantity = attributes.participants;
12189
+ if (attributes.gradeId != null) wire.grade_id = attributes.gradeId;
12190
+ if (attributes.ageGroupId != null) wire.age_group_id = attributes.ageGroupId;
12191
+ if (attributes.surcharges) wire.surcharges = attributes.surcharges;
12192
+ if (attributes.equipment) wire.equipment = attributes.equipment;
12193
+ if (attributes.attendees) wire.attendees = attributes.attendees;
12194
+ if (attributes.customs) wire.customs = attributes.customs;
12195
+ return wire;
12196
+ }
12197
+ /** Rebuilds a UITour from its localStorage JSON through the one construction path. */
12198
+ function reviveUITour(persisted) {
12199
+ const { type, description, price_cents, tax_included, vat_pct, instanceKey, wire, ...attributes } = persisted;
12200
+ return createUITour({
12201
+ ...attributes,
12202
+ totalPriceCents: price_cents
12203
+ }, { instanceKey });
12204
+ }
12205
+ //#endregion
12143
12206
  //#region src/lib/models/cart/CartItem.ts
12144
12207
  var lastMantleKey = 0;
12145
12208
  function createCartItem(product, options) {
@@ -12188,6 +12251,11 @@ function createCartItem(product, options) {
12188
12251
  ...base,
12189
12252
  quantity: this.quantity
12190
12253
  };
12254
+ case "Tour": return {
12255
+ ...base,
12256
+ start_time: this.time,
12257
+ ...product.wire
12258
+ };
12191
12259
  default: throw new Error(`(orderAttributes) Unhandled product type: ${product}`);
12192
12260
  }
12193
12261
  },
@@ -12198,6 +12266,7 @@ function createCartItem(product, options) {
12198
12266
  const segments = [];
12199
12267
  if (this.time) segments.push(`time: ${this.time}`);
12200
12268
  if (isScaleEventTicket(this.product)) segments.push(`scale_price: ${this.product.scale_price_id}`);
12269
+ if (isUITour(this.product)) segments.push(`tour: ${this.product.instanceKey}`);
12201
12270
  if (this.display?.discounted) segments.push("discounted");
12202
12271
  if (isMantleTicket(this.product) && this.mantle?.key) segments.push(`mantle_key: ${this.mantle.key}`);
12203
12272
  return segments.length > 0 ? ` (${segments.join(", ")})` : "";
@@ -12298,6 +12367,12 @@ function generateCartItem(cartItem) {
12298
12367
  time: cartItem.time,
12299
12368
  quantity: cartItem.quantity
12300
12369
  });
12370
+ case "Tour":
12371
+ if (!isStillValid(cartItem)) return;
12372
+ return createCartItem(reviveUITour(cartItem.product), {
12373
+ time: cartItem.time,
12374
+ quantity: cartItem.quantity
12375
+ });
12301
12376
  case "Coupon": return createCartItem(createUICoupon(cartItem.product), { quantity: cartItem.quantity });
12302
12377
  default: throw new Error(`Unhandled case: ${type}`);
12303
12378
  }
@@ -12559,6 +12634,7 @@ function createCapacityManager() {
12559
12634
  default: throw new Error(`(getMaxAvailability) Unhandled case: ${subtype2}`);
12560
12635
  }
12561
12636
  case "Coupon": return "unlimited";
12637
+ case "Tour": return "unlimited";
12562
12638
  default: throw new Error(`(getMaxAvailability) Unhandled case: ${type}`);
12563
12639
  }
12564
12640
  },
@@ -13546,6 +13622,7 @@ var SIGN_UP_ENDPOINT = "/api/v4/auth";
13546
13622
  var WITHDRAWAL_ENDPOINT = "/api/v4/orders/withdrawals";
13547
13623
  var MEMBERSHIP_ACTIVATION_ENDPOINT = "/api/v4/customer/memberships/activate";
13548
13624
  var ORDERS_ENDPOINT = "/api/v4/orders";
13625
+ var CUSTOMER_ADDRESSES_ENDPOINT = "/api/v4/customer/customer_addresses";
13549
13626
  //#endregion
13550
13627
  //#region ../../packages/gomus-api/lib/customerLevels.ts
13551
13628
  var CustomerLevels = {
@@ -13667,6 +13744,10 @@ var Shop = class {
13667
13744
  query: params
13668
13745
  });
13669
13746
  }
13747
+ getCustomerAddresses() {
13748
+ if (!this.auth.data.accessToken) return NOT_SIGNED_IN;
13749
+ return this.fetchAndCache(CUSTOMER_ADDRESSES_ENDPOINT, "customerAddresses", "", { cache: 5 });
13750
+ }
13670
13751
  ticketsCalendar(params) {
13671
13752
  return this.fetchAndCache(TICKETS_CALENDAR_ENDPOINT, `ticketsCalendar-${JSON.stringify(params)}`, "data", {
13672
13753
  cache: 60,
@@ -14143,8 +14224,8 @@ var setPersonalizationDetails = createSetDetails(KEY$5);
14143
14224
  var getPersonalizationDetails = createGetDetails(KEY$5);
14144
14225
  //#endregion
14145
14226
  //#region src/components/annualTicketPersonalization/components/AnnualTicketPersonalization.svelte
14146
- var root$55 = /* @__PURE__ */ from_html(`<li><a> </a></li>`);
14147
- 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>`);
14227
+ var root$57 = /* @__PURE__ */ from_html(`<li><a> </a></li>`);
14228
+ 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>`);
14148
14229
  function AnnualTicketPersonalization($$anchor, $$props) {
14149
14230
  push($$props, true);
14150
14231
  let token = prop($$props, "token", 7);
@@ -14169,7 +14250,7 @@ function AnnualTicketPersonalization($$anchor, $$props) {
14169
14250
  var consequent_1 = ($$anchor) => {
14170
14251
  var fragment_1 = comment();
14171
14252
  each(first_child(fragment_1), 17, () => get$2(order).ticket_sales, (ticketSale) => ticketSale.id, ($$anchor, ticketSale) => {
14172
- var ul = root_1$19();
14253
+ var ul = root_1$21();
14173
14254
  var li = child(ul);
14174
14255
  var text = child(li, true);
14175
14256
  reset(li);
@@ -14178,7 +14259,7 @@ function AnnualTicketPersonalization($$anchor, $$props) {
14178
14259
  reset(li_1);
14179
14260
  var node_2 = sibling(li_1, 2);
14180
14261
  var consequent = ($$anchor) => {
14181
- var li_2 = root$55();
14262
+ var li_2 = root$57();
14182
14263
  var a = child(li_2);
14183
14264
  var text_2 = child(a, true);
14184
14265
  reset(a);
@@ -14853,7 +14934,7 @@ function wrapInElement(host, tag, props) {
14853
14934
  }
14854
14935
  //#endregion
14855
14936
  //#region src/components/forms/ui/generic/Form.svelte
14856
- 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);
14937
+ 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);
14857
14938
  function Form($$anchor, $$props) {
14858
14939
  push($$props, true);
14859
14940
  let formId = prop($$props, "formId", 7), custom = prop($$props, "custom", 7);
@@ -14898,7 +14979,7 @@ function Form($$anchor, $$props) {
14898
14979
  var fragment = comment();
14899
14980
  var node = first_child(fragment);
14900
14981
  var consequent = ($$anchor) => {
14901
- var fragment_1 = root$54();
14982
+ var fragment_1 = root$56();
14902
14983
  var go_submit = sibling(sibling(first_child(fragment_1), 2), 2);
14903
14984
  var text = child(go_submit, true);
14904
14985
  reset(go_submit);
@@ -14925,7 +15006,7 @@ customElements.define("go-form", create_custom_element(Form, {
14925
15006
  }, [], ["details"]));
14926
15007
  //#endregion
14927
15008
  //#region src/components/auth/passwordReset/PasswordReset.svelte
14928
- var root$53 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15009
+ var root$55 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
14929
15010
  function PasswordReset($$anchor, $$props) {
14930
15011
  push($$props, true);
14931
15012
  let custom = prop($$props, "custom", 7, false);
@@ -14958,7 +15039,7 @@ function PasswordReset($$anchor, $$props) {
14958
15039
  flushSync();
14959
15040
  }
14960
15041
  };
14961
- var go_form = root$53();
15042
+ var go_form = root$55();
14962
15043
  set_custom_element_data(go_form, "formId", "passwordReset");
14963
15044
  template_effect(() => set_custom_element_data(go_form, "custom", custom()));
14964
15045
  event("submit", go_form, passwordReset);
@@ -15122,7 +15203,7 @@ function createDisplayCart(baseCart, apiItems) {
15122
15203
  return displayCart;
15123
15204
  }
15124
15205
  function createDisplayCartItem(cartItem, attrs) {
15125
- const quantity = resolveApiQuantity(attrs);
15206
+ const quantity = isUITour(cartItem.product) ? 1 : resolveApiQuantity(attrs);
15126
15207
  const displayPrice = attrs.price_cents ?? cartItem.product.price_cents;
15127
15208
  const originalPrice = cartItem.product.price_cents;
15128
15209
  const discounted = displayPrice < originalPrice;
@@ -15195,7 +15276,7 @@ var setCartDetails = createSetDetails(KEY$3);
15195
15276
  var getCartDetails = createGetDetails(KEY$3);
15196
15277
  //#endregion
15197
15278
  //#region src/components/cart/components/itemTitles/Coupon.svelte
15198
- var root$52 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span>`);
15279
+ var root$54 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span>`);
15199
15280
  function Coupon($$anchor, $$props) {
15200
15281
  push($$props, true);
15201
15282
  let cartItem = prop($$props, "cartItem", 7);
@@ -15208,7 +15289,7 @@ function Coupon($$anchor, $$props) {
15208
15289
  flushSync();
15209
15290
  }
15210
15291
  };
15211
- var span = root$52();
15292
+ var span = root$54();
15212
15293
  var text = child(span, true);
15213
15294
  reset(span);
15214
15295
  template_effect(() => set_text(text, cartItem().product.title));
@@ -15218,8 +15299,8 @@ function Coupon($$anchor, $$props) {
15218
15299
  create_custom_element(Coupon, { cartItem: {} }, [], [], { mode: "open" });
15219
15300
  //#endregion
15220
15301
  //#region src/components/cart/components/itemTitles/Event.svelte
15221
- 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);
15222
- 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);
15302
+ 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);
15303
+ 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);
15223
15304
  function Event$2($$anchor, $$props) {
15224
15305
  push($$props, true);
15225
15306
  let cartItem = prop($$props, "cartItem", 7);
@@ -15234,7 +15315,7 @@ function Event$2($$anchor, $$props) {
15234
15315
  flushSync();
15235
15316
  }
15236
15317
  };
15237
- var fragment = root_1$18();
15318
+ var fragment = root_1$20();
15238
15319
  var span = first_child(fragment);
15239
15320
  var span_1 = child(span);
15240
15321
  var text = child(span_1, true);
@@ -15245,7 +15326,7 @@ function Event$2($$anchor, $$props) {
15245
15326
  reset(span);
15246
15327
  var node = sibling(span);
15247
15328
  var consequent = ($$anchor) => {
15248
- var fragment_1 = root$51();
15329
+ var fragment_1 = root$53();
15249
15330
  var span_3 = first_child(fragment_1);
15250
15331
  var text_2 = child(span_3, true);
15251
15332
  reset(span_3);
@@ -15274,9 +15355,9 @@ function Event$2($$anchor, $$props) {
15274
15355
  create_custom_element(Event$2, { cartItem: {} }, [], [], { mode: "open" });
15275
15356
  //#endregion
15276
15357
  //#region src/components/cart/components/itemTitles/Ticket.svelte
15277
- var root$50 = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
15278
- var root_1$17 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
15279
- var root_2$12 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span> <!>`, 1);
15358
+ var root$52 = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
15359
+ var root_1$19 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
15360
+ var root_2$14 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span> <!>`, 1);
15280
15361
  function Ticket($$anchor, $$props) {
15281
15362
  push($$props, true);
15282
15363
  let cartItem = prop($$props, "cartItem", 7);
@@ -15289,19 +15370,19 @@ function Ticket($$anchor, $$props) {
15289
15370
  flushSync();
15290
15371
  }
15291
15372
  };
15292
- var fragment = root_2$12();
15373
+ var fragment = root_2$14();
15293
15374
  var span = first_child(fragment);
15294
15375
  var text = child(span, true);
15295
15376
  reset(span);
15296
15377
  var node = sibling(span, 2);
15297
15378
  var consequent_1 = ($$anchor) => {
15298
- var fragment_1 = root_1$17();
15379
+ var fragment_1 = root_1$19();
15299
15380
  var span_1 = first_child(fragment_1);
15300
15381
  var text_1 = child(span_1, true);
15301
15382
  reset(span_1);
15302
15383
  var node_1 = sibling(span_1, 2);
15303
15384
  var consequent = ($$anchor) => {
15304
- var span_2 = root$50();
15385
+ var span_2 = root$52();
15305
15386
  var text_2 = child(span_2, true);
15306
15387
  reset(span_2);
15307
15388
  template_effect(($0) => set_text(text_2, $0), [() => formatTime(cartItem().time)]);
@@ -15325,6 +15406,93 @@ function Ticket($$anchor, $$props) {
15325
15406
  }
15326
15407
  create_custom_element(Ticket, { cartItem: {} }, [], [], { mode: "open" });
15327
15408
  //#endregion
15409
+ //#region src/components/cart/components/itemTitles/Tour.svelte
15410
+ var root$51 = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
15411
+ var root_1$18 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
15412
+ var root_2$13 = /* @__PURE__ */ from_html(`<span class="go-cart-item-custom" data-testid="cart-item-custom"> </span>`);
15413
+ 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);
15414
+ function Tour$1($$anchor, $$props) {
15415
+ push($$props, true);
15416
+ let cartItem = prop($$props, "cartItem", 7);
15417
+ const product = /* @__PURE__ */ user_derived(() => cartItem().product);
15418
+ const slot = /* @__PURE__ */ user_derived(() => {
15419
+ if (!cartItem().time) return null;
15420
+ try {
15421
+ return {
15422
+ date: formatDate(cartItem().time, {
15423
+ year: "numeric",
15424
+ month: "numeric",
15425
+ day: "numeric"
15426
+ }, shop.locale),
15427
+ time: formatTime(cartItem().time)
15428
+ };
15429
+ } catch {
15430
+ return {
15431
+ date: cartItem().time,
15432
+ time: ""
15433
+ };
15434
+ }
15435
+ });
15436
+ const displayCustom = (value) => value == null ? "" : typeof value === "object" ? JSON.stringify(value) : String(value);
15437
+ const customs = /* @__PURE__ */ user_derived(() => Object.entries(get$2(product).customs ?? {}).filter(([, value]) => value != null && value !== ""));
15438
+ var $$exports = {
15439
+ get cartItem() {
15440
+ return cartItem();
15441
+ },
15442
+ set cartItem($$value) {
15443
+ cartItem($$value);
15444
+ flushSync();
15445
+ }
15446
+ };
15447
+ var fragment = root_3$9();
15448
+ var span = first_child(fragment);
15449
+ var text = child(span, true);
15450
+ reset(span);
15451
+ var span_1 = sibling(span, 2);
15452
+ var text_1 = child(span_1, true);
15453
+ reset(span_1);
15454
+ var node = sibling(span_1, 2);
15455
+ var consequent_1 = ($$anchor) => {
15456
+ var fragment_1 = root_1$18();
15457
+ var span_2 = first_child(fragment_1);
15458
+ var text_2 = child(span_2, true);
15459
+ reset(span_2);
15460
+ var node_1 = sibling(span_2, 2);
15461
+ var consequent = ($$anchor) => {
15462
+ var span_3 = root$51();
15463
+ var text_3 = child(span_3, true);
15464
+ reset(span_3);
15465
+ template_effect(() => set_text(text_3, get$2(slot).time));
15466
+ append($$anchor, span_3);
15467
+ };
15468
+ if_block(node_1, ($$render) => {
15469
+ if (get$2(slot).time) $$render(consequent);
15470
+ });
15471
+ template_effect(() => set_text(text_2, get$2(slot).date));
15472
+ append($$anchor, fragment_1);
15473
+ };
15474
+ if_block(node, ($$render) => {
15475
+ if (get$2(slot)) $$render(consequent_1);
15476
+ });
15477
+ each(sibling(node, 2), 17, () => get$2(customs), ([key, value]) => key, ($$anchor, $$item) => {
15478
+ var $$array = /* @__PURE__ */ user_derived(() => to_array(get$2($$item), 2));
15479
+ let key = () => get$2($$array)[0];
15480
+ let value = () => get$2($$array)[1];
15481
+ var span_4 = root_2$13();
15482
+ var text_4 = child(span_4);
15483
+ reset(span_4);
15484
+ template_effect(($0) => set_text(text_4, `${key() ?? ""}: ${$0 ?? ""}`), [() => displayCustom(value())]);
15485
+ append($$anchor, span_4);
15486
+ });
15487
+ template_effect(($0) => {
15488
+ set_text(text, get$2(product).title);
15489
+ set_text(text_1, $0);
15490
+ }, [() => shop.t("cart.item.participants", { count: get$2(product).participants })]);
15491
+ append($$anchor, fragment);
15492
+ return pop($$exports);
15493
+ }
15494
+ create_custom_element(Tour$1, { cartItem: {} }, [], [], { mode: "open" });
15495
+ //#endregion
15328
15496
  //#region src/lib/models/cart/quantityStepper.ts
15329
15497
  /** `+`: from below the order minimum jump to it (at least `1`); otherwise step up by one. Capped at `max`. */
15330
15498
  function increment(value, { min, max }) {
@@ -15358,7 +15526,7 @@ function canDecrement(value, { floor = 0 }) {
15358
15526
  }
15359
15527
  //#endregion
15360
15528
  //#region src/components/shared/quantityStepper/QuantityStepper.svelte
15361
- 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>`);
15529
+ 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>`);
15362
15530
  function QuantityStepper($$anchor, $$props) {
15363
15531
  const inputId = props_id();
15364
15532
  push($$props, true);
@@ -15473,7 +15641,7 @@ function QuantityStepper($$anchor, $$props) {
15473
15641
  flushSync();
15474
15642
  }
15475
15643
  };
15476
- var div = root$49();
15644
+ var div = root$50();
15477
15645
  var button = child(div);
15478
15646
  var input = sibling(button, 2);
15479
15647
  remove_input_defaults(input);
@@ -15543,8 +15711,8 @@ function option(value) {
15543
15711
  }
15544
15712
  //#endregion
15545
15713
  //#region src/components/shared/quantityStepper/QuantityControl.svelte
15546
- var root$48 = /* @__PURE__ */ from_html(`<option> </option>`);
15547
- var root_1$16 = /* @__PURE__ */ from_html(`<select class="go-quantity-select"></select>`);
15714
+ var root$49 = /* @__PURE__ */ from_html(`<option> </option>`);
15715
+ var root_1$17 = /* @__PURE__ */ from_html(`<select class="go-quantity-select"></select>`);
15548
15716
  function QuantityControl($$anchor, $$props) {
15549
15717
  push($$props, true);
15550
15718
  /** Current committed quantity. */
@@ -15649,9 +15817,9 @@ function QuantityControl($$anchor, $$props) {
15649
15817
  }
15650
15818
  };
15651
15819
  var alternate = ($$anchor) => {
15652
- var select = root_1$16();
15820
+ var select = root_1$17();
15653
15821
  each(select, 21, () => generateQuantityOptions(min(), max(), { floor: deselectable() ? floor() : min() }), (q) => q.value, ($$anchor, q) => {
15654
- var option = root$48();
15822
+ var option = root$49();
15655
15823
  var text = child(option, true);
15656
15824
  reset(option);
15657
15825
  var option_value = {};
@@ -17535,9 +17703,9 @@ function createDOMPurify() {
17535
17703
  var purify = createDOMPurify();
17536
17704
  //#endregion
17537
17705
  //#region src/components/cart/components/SubRow.svelte
17538
- var root$47 = /* @__PURE__ */ from_html(`<span class="go-sub-ticket-description"></span>`);
17539
- var root_1$15 = /* @__PURE__ */ from_html(`<span class="go-sub-ticket-quantity"> </span>`);
17540
- var root_2$11 = /* @__PURE__ */ from_html(`<li><span class="go-sub-ticket-title"> </span> <!> <!></li>`);
17706
+ var root$48 = /* @__PURE__ */ from_html(`<span class="go-sub-ticket-description"></span>`);
17707
+ var root_1$16 = /* @__PURE__ */ from_html(`<span class="go-sub-ticket-quantity"> </span>`);
17708
+ var root_2$12 = /* @__PURE__ */ from_html(`<li><span class="go-sub-ticket-title"> </span> <!> <!></li>`);
17541
17709
  function SubRow($$anchor, $$props) {
17542
17710
  push($$props, true);
17543
17711
  /** Capacity-aware ceiling from CapacityManager.subTicketMaxes; the combination max when absent. */
@@ -17580,13 +17748,13 @@ function SubRow($$anchor, $$props) {
17580
17748
  flushSync();
17581
17749
  }
17582
17750
  };
17583
- var li = root_2$11();
17751
+ var li = root_2$12();
17584
17752
  var span = child(li);
17585
17753
  var text = child(span, true);
17586
17754
  reset(span);
17587
17755
  var node = sibling(span, 2);
17588
17756
  var consequent = ($$anchor) => {
17589
- var span_1 = root$47();
17757
+ var span_1 = root$48();
17590
17758
  html$2(span_1, () => purify.sanitize(sub().description), true);
17591
17759
  reset(span_1);
17592
17760
  append($$anchor, span_1);
@@ -17596,7 +17764,7 @@ function SubRow($$anchor, $$props) {
17596
17764
  });
17597
17765
  var node_1 = sibling(node, 2);
17598
17766
  var consequent_1 = ($$anchor) => {
17599
- var span_2 = root_1$15();
17767
+ var span_2 = root_1$16();
17600
17768
  var text_1 = child(span_2, true);
17601
17769
  reset(span_2);
17602
17770
  template_effect(() => {
@@ -17655,12 +17823,13 @@ create_custom_element(SubRow, {
17655
17823
  }, [], [], { mode: "open" });
17656
17824
  //#endregion
17657
17825
  //#region src/components/cart/components/Item.svelte
17658
- var root$46 = /* @__PURE__ */ from_html(`<s class="go-cart-item-price-original"> </s> <span class="go-cart-item-price-discounted"> </span>`, 1);
17659
- var root_1$14 = /* @__PURE__ */ from_html(`<span class="go-cart-item-price-discounted"> </span>`);
17660
- var root_2$10 = /* @__PURE__ */ from_html(`<span> </span>`);
17661
- var root_3$7 = /* @__PURE__ */ from_html(`<li class="go-cart-item-remove"><button class="go-cart-remove">⨉</button></li>`);
17662
- var root_4$4 = /* @__PURE__ */ from_html(`<ul class="go-sub-tickets" role="list"></ul>`);
17663
- 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);
17826
+ var root$47 = /* @__PURE__ */ from_html(`<s class="go-cart-item-price-original"> </s> <span class="go-cart-item-price-discounted"> </span>`, 1);
17827
+ var root_1$15 = /* @__PURE__ */ from_html(`<span class="go-cart-item-price-discounted"> </span>`);
17828
+ var root_2$11 = /* @__PURE__ */ from_html(`<span data-testid="cart-item-participant-count"> </span>`);
17829
+ var root_3$8 = /* @__PURE__ */ from_html(`<span> </span>`);
17830
+ var root_4$4 = /* @__PURE__ */ from_html(`<li class="go-cart-item-remove"><button class="go-cart-remove">⨉</button></li>`);
17831
+ var root_5$2 = /* @__PURE__ */ from_html(`<ul class="go-sub-tickets" role="list"></ul>`);
17832
+ 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);
17664
17833
  function Item$1($$anchor, $$props) {
17665
17834
  push($$props, true);
17666
17835
  let displayItem = prop($$props, "displayItem", 7), displayCart = prop($$props, "displayCart", 7), preview = prop($$props, "preview", 7);
@@ -17725,8 +17894,8 @@ function Item$1($$anchor, $$props) {
17725
17894
  };
17726
17895
  var fragment = comment();
17727
17896
  var node = first_child(fragment);
17728
- var consequent_7 = ($$anchor) => {
17729
- var fragment_1 = root_5$2();
17897
+ var consequent_9 = ($$anchor) => {
17898
+ var fragment_1 = root_6$2();
17730
17899
  var article = first_child(fragment_1);
17731
17900
  var ul = child(article);
17732
17901
  var li = child(ul);
@@ -17746,17 +17915,23 @@ function Item$1($$anchor, $$props) {
17746
17915
  return displayItem();
17747
17916
  } });
17748
17917
  };
17918
+ var consequent_3 = ($$anchor) => {
17919
+ Tour$1($$anchor, { get cartItem() {
17920
+ return displayItem();
17921
+ } });
17922
+ };
17749
17923
  if_block(node_1, ($$render) => {
17750
17924
  if (displayItem().product.type === "Ticket") $$render(consequent);
17751
17925
  else if (displayItem().product.type === "Event") $$render(consequent_1, 1);
17752
17926
  else if (displayItem().product.type === "Coupon") $$render(consequent_2, 2);
17927
+ else if (displayItem().product.type === "Tour") $$render(consequent_3, 3);
17753
17928
  });
17754
17929
  reset(li);
17755
17930
  var li_1 = sibling(li, 2);
17756
17931
  var node_2 = child(li_1);
17757
- var consequent_3 = ($$anchor) => {
17758
- var fragment_5 = root$46();
17759
- var s = first_child(fragment_5);
17932
+ var consequent_4 = ($$anchor) => {
17933
+ var fragment_6 = root$47();
17934
+ var s = first_child(fragment_6);
17760
17935
  var text = child(s, true);
17761
17936
  reset(s);
17762
17937
  var span = sibling(s, 2);
@@ -17766,29 +17941,36 @@ function Item$1($$anchor, $$props) {
17766
17941
  set_text(text, $0);
17767
17942
  set_text(text_1, $1);
17768
17943
  }, [() => formatCurrency(displayItem().display.originalPrice), () => formatCurrency(displayItem().final_price_cents)]);
17769
- append($$anchor, fragment_5);
17944
+ append($$anchor, fragment_6);
17770
17945
  };
17771
17946
  var alternate = ($$anchor) => {
17772
- var span_1 = root_1$14();
17947
+ var span_1 = root_1$15();
17773
17948
  var text_2 = child(span_1, true);
17774
17949
  reset(span_1);
17775
17950
  template_effect(($0) => set_text(text_2, $0), [() => formatCurrency(displayItem().final_price_cents)]);
17776
17951
  append($$anchor, span_1);
17777
17952
  };
17778
17953
  if_block(node_2, ($$render) => {
17779
- if (displayItem().display?.discounted) $$render(consequent_3);
17954
+ if (displayItem().display?.discounted) $$render(consequent_4);
17780
17955
  else $$render(alternate, -1);
17781
17956
  });
17782
17957
  reset(li_1);
17783
17958
  var li_2 = sibling(li_1, 2);
17784
17959
  var node_3 = child(li_2);
17785
- var consequent_4 = ($$anchor) => {
17786
- var span_2 = root_2$10();
17960
+ var consequent_5 = ($$anchor) => {
17961
+ var span_2 = root_2$11();
17787
17962
  var text_3 = child(span_2, true);
17788
17963
  reset(span_2);
17789
- template_effect(() => set_text(text_3, displayItem().quantity));
17964
+ template_effect(() => set_text(text_3, displayItem().product.participants));
17790
17965
  append($$anchor, span_2);
17791
17966
  };
17967
+ var consequent_6 = ($$anchor) => {
17968
+ var span_3 = root_3$8();
17969
+ var text_4 = child(span_3, true);
17970
+ reset(span_3);
17971
+ template_effect(() => set_text(text_4, displayItem().quantity));
17972
+ append($$anchor, span_3);
17973
+ };
17792
17974
  var alternate_1 = ($$anchor) => {
17793
17975
  {
17794
17976
  let $0 = /* @__PURE__ */ user_derived(() => displayItem().quantity ?? 0);
@@ -17811,13 +17993,14 @@ function Item$1($$anchor, $$props) {
17811
17993
  }
17812
17994
  };
17813
17995
  if_block(node_3, ($$render) => {
17814
- if (preview()) $$render(consequent_4);
17996
+ if (displayItem().product.type === "Tour") $$render(consequent_5);
17997
+ else if (preview()) $$render(consequent_6, 1);
17815
17998
  else $$render(alternate_1, -1);
17816
17999
  });
17817
18000
  reset(li_2);
17818
18001
  var node_4 = sibling(li_2, 2);
17819
- var consequent_5 = ($$anchor) => {
17820
- var li_3 = root_3$7();
18002
+ var consequent_7 = ($$anchor) => {
18003
+ var li_3 = root_4$4();
17821
18004
  var button = child(li_3);
17822
18005
  reset(li_3);
17823
18006
  template_effect(($0) => set_attribute(button, "aria-label", $0), [() => shop.t("cart.item.remove")]);
@@ -17825,16 +18008,16 @@ function Item$1($$anchor, $$props) {
17825
18008
  append($$anchor, li_3);
17826
18009
  };
17827
18010
  if_block(node_4, ($$render) => {
17828
- if (!preview()) $$render(consequent_5);
18011
+ if (!preview()) $$render(consequent_7);
17829
18012
  });
17830
18013
  var li_4 = sibling(node_4, 2);
17831
- var text_4 = child(li_4, true);
18014
+ var text_5 = child(li_4, true);
17832
18015
  reset(li_4);
17833
18016
  reset(ul);
17834
18017
  reset(article);
17835
18018
  var node_5 = sibling(article, 2);
17836
- var consequent_6 = ($$anchor) => {
17837
- var ul_1 = root_4$4();
18019
+ var consequent_8 = ($$anchor) => {
18020
+ var ul_1 = root_5$2();
17838
18021
  each(ul_1, 21, () => subTicketDefs(get$2(mantleProduct)), (sub) => sub.id, ($$anchor, sub) => {
17839
18022
  {
17840
18023
  let $0 = /* @__PURE__ */ user_derived(() => displayItem().mantle?.composition?.[get$2(sub).id] ?? 0);
@@ -17860,13 +18043,13 @@ function Item$1($$anchor, $$props) {
17860
18043
  append($$anchor, ul_1);
17861
18044
  };
17862
18045
  if_block(node_5, ($$render) => {
17863
- if (get$2(mantleProduct)) $$render(consequent_6);
18046
+ if (get$2(mantleProduct)) $$render(consequent_8);
17864
18047
  });
17865
- template_effect(($0) => set_text(text_4, $0), [() => formatCurrency(displayItem().total_price_cents)]);
18048
+ template_effect(($0) => set_text(text_5, $0), [() => formatCurrency(displayItem().total_price_cents)]);
17866
18049
  append($$anchor, fragment_1);
17867
18050
  };
17868
18051
  if_block(node, ($$render) => {
17869
- if (get$2(capacity)) $$render(consequent_7);
18052
+ if (get$2(capacity)) $$render(consequent_9);
17870
18053
  });
17871
18054
  append($$anchor, fragment);
17872
18055
  return pop($$exports);
@@ -17879,9 +18062,9 @@ create_custom_element(Item$1, {
17879
18062
  }, [], [], { mode: "open" });
17880
18063
  //#endregion
17881
18064
  //#region src/components/cart/components/CartItems.svelte
17882
- var root$45 = /* @__PURE__ */ from_html(`<li class="go-cart-header-remove"></li>`);
17883
- var root_1$13 = /* @__PURE__ */ from_html(`<li class="go-cart-item"><!></li>`);
17884
- 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>`);
18065
+ var root$46 = /* @__PURE__ */ from_html(`<li class="go-cart-header-remove"></li>`);
18066
+ var root_1$14 = /* @__PURE__ */ from_html(`<li class="go-cart-item"><!></li>`);
18067
+ 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>`);
17885
18068
  function CartItems($$anchor, $$props) {
17886
18069
  push($$props, true);
17887
18070
  const _details = getCartDetails($$props.$$host);
@@ -17889,7 +18072,7 @@ function CartItems($$anchor, $$props) {
17889
18072
  var fragment = comment();
17890
18073
  var node = first_child(fragment);
17891
18074
  var consequent_1 = ($$anchor) => {
17892
- var ol = root_2$9();
18075
+ var ol = root_2$10();
17893
18076
  var li = child(ol);
17894
18077
  var ul = child(li);
17895
18078
  var li_1 = child(ul);
@@ -17903,7 +18086,7 @@ function CartItems($$anchor, $$props) {
17903
18086
  reset(li_3);
17904
18087
  var node_1 = sibling(li_3, 2);
17905
18088
  var consequent = ($$anchor) => {
17906
- append($$anchor, root$45());
18089
+ append($$anchor, root$46());
17907
18090
  };
17908
18091
  if_block(node_1, ($$render) => {
17909
18092
  if (!get$2(details).preview) $$render(consequent);
@@ -17914,7 +18097,7 @@ function CartItems($$anchor, $$props) {
17914
18097
  reset(ul);
17915
18098
  reset(li);
17916
18099
  each(sibling(li, 2), 17, () => get$2(details).displayCart.items, (item) => item.uuid, ($$anchor, item) => {
17917
- var li_6 = root_1$13();
18100
+ var li_6 = root_1$14();
17918
18101
  Item$1(child(li_6), {
17919
18102
  get displayItem() {
17920
18103
  return get$2(item);
@@ -17952,9 +18135,9 @@ function CartItems($$anchor, $$props) {
17952
18135
  customElements.define("go-cart-items", create_custom_element(CartItems, {}, [], []));
17953
18136
  //#endregion
17954
18137
  //#region src/components/cart/components/CartCoupons.svelte
17955
- var root$44 = /* @__PURE__ */ from_html(`<li class="go-cart-coupon-remove-cell"><button class="go-cart-remove go-cart-coupon-remove">⨉</button></li>`);
17956
- 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>`);
17957
- var root_2$8 = /* @__PURE__ */ from_html(`<ol data-testid="cart-coupons"></ol>`);
18138
+ var root$45 = /* @__PURE__ */ from_html(`<li class="go-cart-coupon-remove-cell"><button class="go-cart-remove go-cart-coupon-remove">⨉</button></li>`);
18139
+ 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>`);
18140
+ var root_2$9 = /* @__PURE__ */ from_html(`<ol data-testid="cart-coupons"></ol>`);
17958
18141
  function CartCoupons($$anchor, $$props) {
17959
18142
  push($$props, true);
17960
18143
  const _details = getCartDetails($$props.$$host);
@@ -17962,9 +18145,9 @@ function CartCoupons($$anchor, $$props) {
17962
18145
  var fragment = comment();
17963
18146
  var node = first_child(fragment);
17964
18147
  var consequent_1 = ($$anchor) => {
17965
- var ol = root_2$8();
18148
+ var ol = root_2$9();
17966
18149
  each(ol, 21, () => get$2(details).displayCart.coupons, (coupon) => coupon.code, ($$anchor, coupon) => {
17967
- var li = root_1$12();
18150
+ var li = root_1$13();
17968
18151
  let classes;
17969
18152
  var article = child(li);
17970
18153
  var ul = child(article);
@@ -17973,7 +18156,7 @@ function CartCoupons($$anchor, $$props) {
17973
18156
  reset(li_1);
17974
18157
  var node_1 = sibling(li_1, 2);
17975
18158
  var consequent = ($$anchor) => {
17976
- var li_2 = root$44();
18159
+ var li_2 = root$45();
17977
18160
  var button = child(li_2);
17978
18161
  reset(li_2);
17979
18162
  template_effect(($0) => set_attribute(button, "aria-label", $0), [() => shop.t("cart.coupons.remove")]);
@@ -18005,7 +18188,7 @@ delegate(["click"]);
18005
18188
  customElements.define("go-cart-coupons", create_custom_element(CartCoupons, {}, [], []));
18006
18189
  //#endregion
18007
18190
  //#region src/components/cart/components/CartTotalAmount.svelte
18008
- var root$43 = /* @__PURE__ */ from_html(`<span class="go-cart-total-amount" data-testid="cart-total-amount"> </span>`);
18191
+ var root$44 = /* @__PURE__ */ from_html(`<span class="go-cart-total-amount" data-testid="cart-total-amount"> </span>`);
18009
18192
  function CartTotalAmount($$anchor, $$props) {
18010
18193
  push($$props, true);
18011
18194
  const _details = getCartDetails($$props.$$host);
@@ -18013,7 +18196,7 @@ function CartTotalAmount($$anchor, $$props) {
18013
18196
  var fragment = comment();
18014
18197
  var node = first_child(fragment);
18015
18198
  var consequent = ($$anchor) => {
18016
- var span = root$43();
18199
+ var span = root$44();
18017
18200
  var text = child(span, true);
18018
18201
  reset(span);
18019
18202
  template_effect(($0) => set_text(text, $0), [() => formatCurrency(get$2(details).totalPriceCents)]);
@@ -18082,7 +18265,7 @@ customElements.define("go-cart", create_custom_element(Cart, { preview: {
18082
18265
  } }, [], []));
18083
18266
  //#endregion
18084
18267
  //#region src/components/cart/components/CartSubtotalAmount.svelte
18085
- var root$42 = /* @__PURE__ */ from_html(`<span class="go-cart-subtotal-amount" data-testid="cart-subtotal-amount"> </span>`);
18268
+ var root$43 = /* @__PURE__ */ from_html(`<span class="go-cart-subtotal-amount" data-testid="cart-subtotal-amount"> </span>`);
18086
18269
  function CartSubtotalAmount($$anchor, $$props) {
18087
18270
  push($$props, true);
18088
18271
  const _details = getCartDetails($$props.$$host);
@@ -18090,7 +18273,7 @@ function CartSubtotalAmount($$anchor, $$props) {
18090
18273
  var fragment = comment();
18091
18274
  var node = first_child(fragment);
18092
18275
  var consequent = ($$anchor) => {
18093
- var span = root$42();
18276
+ var span = root$43();
18094
18277
  var text = child(span, true);
18095
18278
  reset(span);
18096
18279
  template_effect(($0) => set_text(text, $0), [() => formatCurrency(get$2(details).subtotalPriceCents)]);
@@ -18105,7 +18288,7 @@ function CartSubtotalAmount($$anchor, $$props) {
18105
18288
  customElements.define("go-cart-subtotal-amount", create_custom_element(CartSubtotalAmount, {}, [], []));
18106
18289
  //#endregion
18107
18290
  //#region src/components/cart/components/CartDiscountedAmount.svelte
18108
- 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>`);
18291
+ 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>`);
18109
18292
  function CartDiscountedAmount($$anchor, $$props) {
18110
18293
  push($$props, true);
18111
18294
  const _details = getCartDetails($$props.$$host);
@@ -18113,7 +18296,7 @@ function CartDiscountedAmount($$anchor, $$props) {
18113
18296
  var fragment = comment();
18114
18297
  var node = first_child(fragment);
18115
18298
  var consequent = ($$anchor) => {
18116
- var span = root$41();
18299
+ var span = root$42();
18117
18300
  var text = sibling(child(span), 1, true);
18118
18301
  reset(span);
18119
18302
  template_effect(($0) => set_text(text, $0), [() => formatCurrency(get$2(details).discountedAmountCents)]);
@@ -18266,7 +18449,7 @@ function fail(errors) {
18266
18449
  }
18267
18450
  //#endregion
18268
18451
  //#region src/components/couponRedemption/CouponRedemption.svelte
18269
- var root$40 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
18452
+ var root$41 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
18270
18453
  function CouponRedemption($$anchor, $$props) {
18271
18454
  push($$props, true);
18272
18455
  Forms.defineForm({
@@ -18302,7 +18485,7 @@ function CouponRedemption($$anchor, $$props) {
18302
18485
  return runRedeem(form);
18303
18486
  }
18304
18487
  var $$exports = { flush };
18305
- var go_form = root$40();
18488
+ var go_form = root$41();
18306
18489
  set_custom_element_data(go_form, "formId", "couponRedemption");
18307
18490
  event("submit", go_form, redeem$1);
18308
18491
  append($$anchor, go_form);
@@ -18358,8 +18541,8 @@ var GoDonation = class {
18358
18541
  var goDonation = new GoDonation();
18359
18542
  //#endregion
18360
18543
  //#region src/components/donations/components/DonationCampaign.svelte
18361
- var root$39 = /* @__PURE__ */ from_html(`<img alt="logo"/>`);
18362
- 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>`);
18544
+ var root$40 = /* @__PURE__ */ from_html(`<img alt="logo"/>`);
18545
+ 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>`);
18363
18546
  function DonationCampaign($$anchor, $$props) {
18364
18547
  push($$props, true);
18365
18548
  let campaign = prop($$props, "campaign", 7);
@@ -18373,12 +18556,12 @@ function DonationCampaign($$anchor, $$props) {
18373
18556
  flushSync();
18374
18557
  }
18375
18558
  };
18376
- var div = root_1$11();
18559
+ var div = root_1$12();
18377
18560
  let classes;
18378
18561
  var div_1 = child(div);
18379
18562
  var node = child(div_1);
18380
18563
  var consequent = ($$anchor) => {
18381
- var img = root$39();
18564
+ var img = root$40();
18382
18565
  template_effect(($0) => set_attribute(img, "src", $0), [() => campaign().picture.thumbnail.replace("thumbnail", "article_3x2")]);
18383
18566
  append($$anchor, img);
18384
18567
  };
@@ -18449,9 +18632,9 @@ function parseIds(ids) {
18449
18632
  }
18450
18633
  //#endregion
18451
18634
  //#region src/components/donations/components/DonationSelector.svelte
18452
- var root$38 = /* @__PURE__ */ from_html(`<button> </button>`);
18453
- 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>`);
18454
- var root_2$7 = /* @__PURE__ */ from_html(`<div class="donation-selection"><h3> </h3> <div class="donation-options"></div> <!></div>`);
18635
+ var root$39 = /* @__PURE__ */ from_html(`<button> </button>`);
18636
+ 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>`);
18637
+ var root_2$8 = /* @__PURE__ */ from_html(`<div class="donation-selection"><h3> </h3> <div class="donation-options"></div> <!></div>`);
18455
18638
  function DonationSelector($$anchor, $$props) {
18456
18639
  push($$props, true);
18457
18640
  const guestMaxLimit = goDonation.campaign?.guest_limit / 100;
@@ -18468,13 +18651,13 @@ function DonationSelector($$anchor, $$props) {
18468
18651
  form.reportValidity();
18469
18652
  }
18470
18653
  }
18471
- var div = root_2$7();
18654
+ var div = root_2$8();
18472
18655
  var h3 = child(div);
18473
18656
  var text = child(h3, true);
18474
18657
  reset(h3);
18475
18658
  var div_1 = sibling(h3, 2);
18476
18659
  each(div_1, 20, () => goDonation.campaign?.options, (option) => option, ($$anchor, option) => {
18477
- var button = root$38();
18660
+ var button = root$39();
18478
18661
  let classes;
18479
18662
  var text_1 = child(button, true);
18480
18663
  reset(button);
@@ -18488,7 +18671,7 @@ function DonationSelector($$anchor, $$props) {
18488
18671
  reset(div_1);
18489
18672
  var node = sibling(div_1, 2);
18490
18673
  var consequent = ($$anchor) => {
18491
- var form_1 = root_1$10();
18674
+ var form_1 = root_1$11();
18492
18675
  var div_2 = child(form_1);
18493
18676
  var label = child(div_2);
18494
18677
  var text_2 = child(label, true);
@@ -18518,7 +18701,7 @@ delegate(["click", "input"]);
18518
18701
  create_custom_element(DonationSelector, {}, [], [], { mode: "open" });
18519
18702
  //#endregion
18520
18703
  //#region src/components/donations/components/Donations.svelte
18521
- 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>`);
18704
+ 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>`);
18522
18705
  function Donations($$anchor, $$props) {
18523
18706
  push($$props, false);
18524
18707
  onMount(() => {
@@ -18528,7 +18711,7 @@ function Donations($$anchor, $$props) {
18528
18711
  var fragment = comment();
18529
18712
  var node = first_child(fragment);
18530
18713
  var consequent_1 = ($$anchor) => {
18531
- var div = root$37();
18714
+ var div = root$38();
18532
18715
  var node_1 = child(div);
18533
18716
  each(node_1, 1, () => shop?.donations?.campaigns, (campaign) => campaign.id, ($$anchor, campaign) => {
18534
18717
  DonationCampaign($$anchor, { get campaign() {
@@ -24367,7 +24550,7 @@ var rest_excludes$25 = new Set([
24367
24550
  "monthFormat",
24368
24551
  "yearFormat"
24369
24552
  ]);
24370
- var root$36 = /* @__PURE__ */ from_html(`<div><!></div>`);
24553
+ var root$37 = /* @__PURE__ */ from_html(`<div><!></div>`);
24371
24554
  function Calendar$1($$anchor, $$props) {
24372
24555
  push($$props, true);
24373
24556
  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);
@@ -24639,7 +24822,7 @@ function Calendar$1($$anchor, $$props) {
24639
24822
  append($$anchor, fragment_1);
24640
24823
  };
24641
24824
  var alternate = ($$anchor) => {
24642
- var div = root$36();
24825
+ var div = root$37();
24643
24826
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
24644
24827
  snippet(child(div), () => children() ?? noop$1, () => rootState.snippetProps);
24645
24828
  reset(div);
@@ -24694,7 +24877,7 @@ var rest_excludes$24 = new Set([
24694
24877
  "ref",
24695
24878
  "id"
24696
24879
  ]);
24697
- var root$35 = /* @__PURE__ */ from_html(`<div><!></div>`);
24880
+ var root$36 = /* @__PURE__ */ from_html(`<div><!></div>`);
24698
24881
  function Calendar_day($$anchor, $$props) {
24699
24882
  const uid = props_id();
24700
24883
  push($$props, true);
@@ -24749,7 +24932,7 @@ function Calendar_day($$anchor, $$props) {
24749
24932
  append($$anchor, fragment_1);
24750
24933
  };
24751
24934
  var alternate_1 = ($$anchor) => {
24752
- var div = root$35();
24935
+ var div = root$36();
24753
24936
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
24754
24937
  var node_2 = child(div);
24755
24938
  var consequent_1 = ($$anchor) => {
@@ -24794,7 +24977,7 @@ var rest_excludes$23 = new Set([
24794
24977
  "ref",
24795
24978
  "id"
24796
24979
  ]);
24797
- var root$34 = /* @__PURE__ */ from_html(`<table><!></table>`);
24980
+ var root$35 = /* @__PURE__ */ from_html(`<table><!></table>`);
24798
24981
  function Calendar_grid($$anchor, $$props) {
24799
24982
  const uid = props_id();
24800
24983
  push($$props, true);
@@ -24842,7 +25025,7 @@ function Calendar_grid($$anchor, $$props) {
24842
25025
  append($$anchor, fragment_1);
24843
25026
  };
24844
25027
  var alternate = ($$anchor) => {
24845
- var table = root$34();
25028
+ var table = root$35();
24846
25029
  attribute_effect(table, () => ({ ...get$2(mergedProps) }));
24847
25030
  snippet(child(table), () => children() ?? noop$1);
24848
25031
  reset(table);
@@ -24873,7 +25056,7 @@ var rest_excludes$22 = new Set([
24873
25056
  "ref",
24874
25057
  "id"
24875
25058
  ]);
24876
- var root$33 = /* @__PURE__ */ from_html(`<tbody><!></tbody>`);
25059
+ var root$34 = /* @__PURE__ */ from_html(`<tbody><!></tbody>`);
24877
25060
  function Calendar_grid_body($$anchor, $$props) {
24878
25061
  const uid = props_id();
24879
25062
  push($$props, true);
@@ -24921,7 +25104,7 @@ function Calendar_grid_body($$anchor, $$props) {
24921
25104
  append($$anchor, fragment_1);
24922
25105
  };
24923
25106
  var alternate = ($$anchor) => {
24924
- var tbody = root$33();
25107
+ var tbody = root$34();
24925
25108
  attribute_effect(tbody, () => ({ ...get$2(mergedProps) }));
24926
25109
  snippet(child(tbody), () => children() ?? noop$1);
24927
25110
  reset(tbody);
@@ -24954,7 +25137,7 @@ var rest_excludes$21 = new Set([
24954
25137
  "date",
24955
25138
  "month"
24956
25139
  ]);
24957
- var root$32 = /* @__PURE__ */ from_html(`<td><!></td>`);
25140
+ var root$33 = /* @__PURE__ */ from_html(`<td><!></td>`);
24958
25141
  function Calendar_cell($$anchor, $$props) {
24959
25142
  const uid = props_id();
24960
25143
  push($$props, true);
@@ -25025,7 +25208,7 @@ function Calendar_cell($$anchor, $$props) {
25025
25208
  append($$anchor, fragment_1);
25026
25209
  };
25027
25210
  var alternate = ($$anchor) => {
25028
- var td = root$32();
25211
+ var td = root$33();
25029
25212
  attribute_effect(td, () => ({ ...get$2(mergedProps) }));
25030
25213
  snippet(child(td), () => children() ?? noop$1, () => cellState.snippetProps);
25031
25214
  reset(td);
@@ -25058,7 +25241,7 @@ var rest_excludes$20 = new Set([
25058
25241
  "ref",
25059
25242
  "id"
25060
25243
  ]);
25061
- var root$31 = /* @__PURE__ */ from_html(`<thead><!></thead>`);
25244
+ var root$32 = /* @__PURE__ */ from_html(`<thead><!></thead>`);
25062
25245
  function Calendar_grid_head($$anchor, $$props) {
25063
25246
  const uid = props_id();
25064
25247
  push($$props, true);
@@ -25106,7 +25289,7 @@ function Calendar_grid_head($$anchor, $$props) {
25106
25289
  append($$anchor, fragment_1);
25107
25290
  };
25108
25291
  var alternate = ($$anchor) => {
25109
- var thead = root$31();
25292
+ var thead = root$32();
25110
25293
  attribute_effect(thead, () => ({ ...get$2(mergedProps) }));
25111
25294
  snippet(child(thead), () => children() ?? noop$1);
25112
25295
  reset(thead);
@@ -25137,7 +25320,7 @@ var rest_excludes$19 = new Set([
25137
25320
  "ref",
25138
25321
  "id"
25139
25322
  ]);
25140
- var root$30 = /* @__PURE__ */ from_html(`<th><!></th>`);
25323
+ var root$31 = /* @__PURE__ */ from_html(`<th><!></th>`);
25141
25324
  function Calendar_head_cell($$anchor, $$props) {
25142
25325
  const uid = props_id();
25143
25326
  push($$props, true);
@@ -25185,7 +25368,7 @@ function Calendar_head_cell($$anchor, $$props) {
25185
25368
  append($$anchor, fragment_1);
25186
25369
  };
25187
25370
  var alternate = ($$anchor) => {
25188
- var th = root$30();
25371
+ var th = root$31();
25189
25372
  attribute_effect(th, () => ({ ...get$2(mergedProps) }));
25190
25373
  snippet(child(th), () => children() ?? noop$1);
25191
25374
  reset(th);
@@ -25216,7 +25399,7 @@ var rest_excludes$18 = new Set([
25216
25399
  "ref",
25217
25400
  "id"
25218
25401
  ]);
25219
- var root$29 = /* @__PURE__ */ from_html(`<tr><!></tr>`);
25402
+ var root$30 = /* @__PURE__ */ from_html(`<tr><!></tr>`);
25220
25403
  function Calendar_grid_row($$anchor, $$props) {
25221
25404
  const uid = props_id();
25222
25405
  push($$props, true);
@@ -25264,7 +25447,7 @@ function Calendar_grid_row($$anchor, $$props) {
25264
25447
  append($$anchor, fragment_1);
25265
25448
  };
25266
25449
  var alternate = ($$anchor) => {
25267
- var tr = root$29();
25450
+ var tr = root$30();
25268
25451
  attribute_effect(tr, () => ({ ...get$2(mergedProps) }));
25269
25452
  snippet(child(tr), () => children() ?? noop$1);
25270
25453
  reset(tr);
@@ -25295,7 +25478,7 @@ var rest_excludes$17 = new Set([
25295
25478
  "ref",
25296
25479
  "id"
25297
25480
  ]);
25298
- var root$28 = /* @__PURE__ */ from_html(`<header><!></header>`);
25481
+ var root$29 = /* @__PURE__ */ from_html(`<header><!></header>`);
25299
25482
  function Calendar_header($$anchor, $$props) {
25300
25483
  const uid = props_id();
25301
25484
  push($$props, true);
@@ -25343,7 +25526,7 @@ function Calendar_header($$anchor, $$props) {
25343
25526
  append($$anchor, fragment_1);
25344
25527
  };
25345
25528
  var alternate = ($$anchor) => {
25346
- var header = root$28();
25529
+ var header = root$29();
25347
25530
  attribute_effect(header, () => ({ ...get$2(mergedProps) }));
25348
25531
  snippet(child(header), () => children() ?? noop$1);
25349
25532
  reset(header);
@@ -25374,7 +25557,7 @@ var rest_excludes$16 = new Set([
25374
25557
  "ref",
25375
25558
  "id"
25376
25559
  ]);
25377
- var root$27 = /* @__PURE__ */ from_html(`<div><!></div>`);
25560
+ var root$28 = /* @__PURE__ */ from_html(`<div><!></div>`);
25378
25561
  function Calendar_heading($$anchor, $$props) {
25379
25562
  const uid = props_id();
25380
25563
  push($$props, true);
@@ -25425,7 +25608,7 @@ function Calendar_heading($$anchor, $$props) {
25425
25608
  append($$anchor, fragment_1);
25426
25609
  };
25427
25610
  var alternate_1 = ($$anchor) => {
25428
- var div = root$27();
25611
+ var div = root$28();
25429
25612
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
25430
25613
  var node_2 = child(div);
25431
25614
  var consequent_1 = ($$anchor) => {
@@ -25471,7 +25654,7 @@ var rest_excludes$15 = new Set([
25471
25654
  "ref",
25472
25655
  "tabindex"
25473
25656
  ]);
25474
- var root$26 = /* @__PURE__ */ from_html(`<button><!></button>`);
25657
+ var root$27 = /* @__PURE__ */ from_html(`<button><!></button>`);
25475
25658
  function Calendar_next_button($$anchor, $$props) {
25476
25659
  const uid = props_id();
25477
25660
  push($$props, true);
@@ -25526,7 +25709,7 @@ function Calendar_next_button($$anchor, $$props) {
25526
25709
  append($$anchor, fragment_1);
25527
25710
  };
25528
25711
  var alternate = ($$anchor) => {
25529
- var button = root$26();
25712
+ var button = root$27();
25530
25713
  attribute_effect(button, () => ({ ...get$2(mergedProps) }));
25531
25714
  snippet(child(button), () => children() ?? noop$1);
25532
25715
  reset(button);
@@ -25559,7 +25742,7 @@ var rest_excludes$14 = new Set([
25559
25742
  "ref",
25560
25743
  "tabindex"
25561
25744
  ]);
25562
- var root$25 = /* @__PURE__ */ from_html(`<button><!></button>`);
25745
+ var root$26 = /* @__PURE__ */ from_html(`<button><!></button>`);
25563
25746
  function Calendar_prev_button($$anchor, $$props) {
25564
25747
  const uid = props_id();
25565
25748
  push($$props, true);
@@ -25614,7 +25797,7 @@ function Calendar_prev_button($$anchor, $$props) {
25614
25797
  append($$anchor, fragment_1);
25615
25798
  };
25616
25799
  var alternate = ($$anchor) => {
25617
- var button = root$25();
25800
+ var button = root$26();
25618
25801
  attribute_effect(button, () => ({ ...get$2(mergedProps) }));
25619
25802
  snippet(child(button), () => children() ?? noop$1);
25620
25803
  reset(button);
@@ -25643,7 +25826,7 @@ var rest_excludes$13 = new Set([
25643
25826
  "$$host",
25644
25827
  "value"
25645
25828
  ]);
25646
- var root$24 = /* @__PURE__ */ from_html(`<input/>`);
25829
+ var root$25 = /* @__PURE__ */ from_html(`<input/>`);
25647
25830
  function Hidden_input($$anchor, $$props) {
25648
25831
  push($$props, true);
25649
25832
  let value = prop($$props, "value", 15), restProps = /* @__PURE__ */ rest_props($$props, rest_excludes$13);
@@ -25669,7 +25852,7 @@ function Hidden_input($$anchor, $$props) {
25669
25852
  var fragment = comment();
25670
25853
  var node = first_child(fragment);
25671
25854
  var consequent = ($$anchor) => {
25672
- var input = root$24();
25855
+ var input = root$25();
25673
25856
  attribute_effect(input, () => ({
25674
25857
  ...get$2(mergedProps),
25675
25858
  value: value()
@@ -25677,7 +25860,7 @@ function Hidden_input($$anchor, $$props) {
25677
25860
  append($$anchor, input);
25678
25861
  };
25679
25862
  var alternate = ($$anchor) => {
25680
- var input_1 = root$24();
25863
+ var input_1 = root$25();
25681
25864
  attribute_effect(input_1, () => ({ ...get$2(mergedProps) }), void 0, void 0, void 0, void 0, true);
25682
25865
  bind_value(input_1, value);
25683
25866
  append($$anchor, input_1);
@@ -27990,7 +28173,7 @@ var rest_excludes$11 = new Set([
27990
28173
  "tooltip",
27991
28174
  "contentPointerEvents"
27992
28175
  ]);
27993
- var root$23 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
28176
+ var root$24 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
27994
28177
  function Popper_layer_inner($$anchor, $$props) {
27995
28178
  push($$props, true);
27996
28179
  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);
@@ -28268,7 +28451,7 @@ function Popper_layer_inner($$anchor, $$props) {
28268
28451
  const content = ($$anchor, $$arg0) => {
28269
28452
  let floatingProps = () => $$arg0?.().props;
28270
28453
  let wrapperProps = () => $$arg0?.().wrapperProps;
28271
- var fragment_1 = root$23();
28454
+ var fragment_1 = root$24();
28272
28455
  var node = first_child(fragment_1);
28273
28456
  var consequent = ($$anchor) => {
28274
28457
  Scroll_lock($$anchor, { get preventScroll() {
@@ -30632,8 +30815,8 @@ var rest_excludes$8 = new Set([
30632
30815
  "children",
30633
30816
  "child"
30634
30817
  ]);
30635
- var root$22 = /* @__PURE__ */ from_html(`<div><!></div>`);
30636
- var root_1$9 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
30818
+ var root$23 = /* @__PURE__ */ from_html(`<div><!></div>`);
30819
+ var root_1$10 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
30637
30820
  function Date_field_input($$anchor, $$props) {
30638
30821
  const uid = props_id();
30639
30822
  push($$props, true);
@@ -30681,7 +30864,7 @@ function Date_field_input($$anchor, $$props) {
30681
30864
  flushSync();
30682
30865
  }
30683
30866
  };
30684
- var fragment = root_1$9();
30867
+ var fragment = root_1$10();
30685
30868
  var node = first_child(fragment);
30686
30869
  var consequent = ($$anchor) => {
30687
30870
  var fragment_1 = comment();
@@ -30692,7 +30875,7 @@ function Date_field_input($$anchor, $$props) {
30692
30875
  append($$anchor, fragment_1);
30693
30876
  };
30694
30877
  var alternate = ($$anchor) => {
30695
- var div = root$22();
30878
+ var div = root$23();
30696
30879
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
30697
30880
  snippet(child(div), () => children() ?? noop$1, () => ({ segments: inputState.root.segmentContents }));
30698
30881
  reset(div);
@@ -30725,7 +30908,7 @@ var rest_excludes$7 = new Set([
30725
30908
  "children",
30726
30909
  "child"
30727
30910
  ]);
30728
- var root$21 = /* @__PURE__ */ from_html(`<div><!></div>`);
30911
+ var root$22 = /* @__PURE__ */ from_html(`<div><!></div>`);
30729
30912
  function Date_field_label($$anchor, $$props) {
30730
30913
  const uid = props_id();
30731
30914
  push($$props, true);
@@ -30773,7 +30956,7 @@ function Date_field_label($$anchor, $$props) {
30773
30956
  append($$anchor, fragment_1);
30774
30957
  };
30775
30958
  var alternate = ($$anchor) => {
30776
- var div = root$21();
30959
+ var div = root$22();
30777
30960
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
30778
30961
  snippet(child(div), () => children() ?? noop$1);
30779
30962
  reset(div);
@@ -30805,7 +30988,7 @@ var rest_excludes$6 = new Set([
30805
30988
  "child",
30806
30989
  "part"
30807
30990
  ]);
30808
- var root$20 = /* @__PURE__ */ from_html(`<span><!></span>`);
30991
+ var root$21 = /* @__PURE__ */ from_html(`<span><!></span>`);
30809
30992
  function Date_field_segment($$anchor, $$props) {
30810
30993
  const uid = props_id();
30811
30994
  push($$props, true);
@@ -30860,7 +31043,7 @@ function Date_field_segment($$anchor, $$props) {
30860
31043
  append($$anchor, fragment_1);
30861
31044
  };
30862
31045
  var alternate = ($$anchor) => {
30863
- var span = root$20();
31046
+ var span = root$21();
30864
31047
  attribute_effect(span, () => ({ ...get$2(mergedProps) }));
30865
31048
  snippet(child(span), () => children() ?? noop$1);
30866
31049
  reset(span);
@@ -31882,7 +32065,7 @@ var rest_excludes$5 = new Set([
31882
32065
  "id",
31883
32066
  "ref"
31884
32067
  ]);
31885
- var root$19 = /* @__PURE__ */ from_html(`<div><!></div>`);
32068
+ var root$20 = /* @__PURE__ */ from_html(`<div><!></div>`);
31886
32069
  function Date_picker_calendar($$anchor, $$props) {
31887
32070
  const uid = props_id();
31888
32071
  push($$props, true);
@@ -31962,7 +32145,7 @@ function Date_picker_calendar($$anchor, $$props) {
31962
32145
  append($$anchor, fragment_1);
31963
32146
  };
31964
32147
  var alternate = ($$anchor) => {
31965
- var div = root$19();
32148
+ var div = root$20();
31966
32149
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
31967
32150
  snippet(child(div), () => children() ?? noop$1, () => calendarState.snippetProps);
31968
32151
  reset(div);
@@ -32002,7 +32185,7 @@ var rest_excludes$4 = new Set([
32002
32185
  "customAnchor",
32003
32186
  "style"
32004
32187
  ]);
32005
- var root$18 = /* @__PURE__ */ from_html(`<div><div><!></div></div>`);
32188
+ var root$19 = /* @__PURE__ */ from_html(`<div><div><!></div></div>`);
32006
32189
  function Popover_content($$anchor, $$props) {
32007
32190
  const uid = props_id();
32008
32191
  push($$props, true);
@@ -32137,7 +32320,7 @@ function Popover_content($$anchor, $$props) {
32137
32320
  append($$anchor, fragment_3);
32138
32321
  };
32139
32322
  var alternate = ($$anchor) => {
32140
- var div = root$18();
32323
+ var div = root$19();
32141
32324
  attribute_effect(div, () => ({ ...wrapperProps() }));
32142
32325
  var div_1 = child(div);
32143
32326
  attribute_effect(div_1, () => ({ ...get$2(finalProps) }));
@@ -32207,7 +32390,7 @@ function Popover_content($$anchor, $$props) {
32207
32390
  append($$anchor, fragment_6);
32208
32391
  };
32209
32392
  var alternate_1 = ($$anchor) => {
32210
- var div_2 = root$18();
32393
+ var div_2 = root$19();
32211
32394
  attribute_effect(div_2, () => ({ ...wrapperProps() }));
32212
32395
  var div_3 = child(div_2);
32213
32396
  attribute_effect(div_3, () => ({ ...get$2(finalProps) }));
@@ -32338,7 +32521,7 @@ var rest_excludes$2 = new Set([
32338
32521
  "openDelay",
32339
32522
  "closeDelay"
32340
32523
  ]);
32341
- var root$17 = /* @__PURE__ */ from_html(`<button><!></button>`);
32524
+ var root$18 = /* @__PURE__ */ from_html(`<button><!></button>`);
32342
32525
  function Popover_trigger($$anchor, $$props) {
32343
32526
  const uid = props_id();
32344
32527
  push($$props, true);
@@ -32433,7 +32616,7 @@ function Popover_trigger($$anchor, $$props) {
32433
32616
  append($$anchor, fragment_2);
32434
32617
  };
32435
32618
  var alternate = ($$anchor) => {
32436
- var button = root$17();
32619
+ var button = root$18();
32437
32620
  attribute_effect(button, () => ({ ...get$2(mergedProps) }));
32438
32621
  snippet(child(button), () => children() ?? noop$1);
32439
32622
  reset(button);
@@ -32513,8 +32696,8 @@ create_custom_element(Date_picker_trigger, {
32513
32696
  }, [], [], { mode: "open" });
32514
32697
  //#endregion
32515
32698
  //#region src/components/forms/ui/generic/DatePicker.svelte
32516
- var root$16 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
32517
- var root_1$8 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
32699
+ var root$17 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
32700
+ var root_1$9 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
32518
32701
  function DatePicker_1($$anchor, $$props) {
32519
32702
  push($$props, true);
32520
32703
  let dateString = prop($$props, "dateString", 15), labelClass = prop($$props, "labelClass", 7), inputClass = prop($$props, "inputClass", 7), labelText = prop($$props, "labelText", 7);
@@ -32571,7 +32754,7 @@ function DatePicker_1($$anchor, $$props) {
32571
32754
  set(date, $$value, true);
32572
32755
  },
32573
32756
  children: ($$anchor, $$slotProps) => {
32574
- var fragment_1 = root_1$8();
32757
+ var fragment_1 = root_1$9();
32575
32758
  var node_1 = first_child(fragment_1);
32576
32759
  component(node_1, () => Date_field_label, ($$anchor, DatePicker_Label) => {
32577
32760
  DatePicker_Label($$anchor, {
@@ -32601,7 +32784,7 @@ function DatePicker_1($$anchor, $$props) {
32601
32784
  {
32602
32785
  const children = ($$anchor, $$arg0) => {
32603
32786
  let segments = () => $$arg0?.().segments;
32604
- var fragment_4 = root$16();
32787
+ var fragment_4 = root$17();
32605
32788
  var node_5 = first_child(fragment_4);
32606
32789
  each(node_5, 17, segments, index$1, ($$anchor, $$item) => {
32607
32790
  let part = () => get$2($$item).part;
@@ -32652,12 +32835,12 @@ function DatePicker_1($$anchor, $$props) {
32652
32835
  const children = ($$anchor, $$arg0) => {
32653
32836
  let months = () => $$arg0?.().months;
32654
32837
  let weekdays = () => $$arg0?.().weekdays;
32655
- var fragment_8 = root$16();
32838
+ var fragment_8 = root$17();
32656
32839
  var node_10 = first_child(fragment_8);
32657
32840
  component(node_10, () => Calendar_header, ($$anchor, DatePicker_Header) => {
32658
32841
  DatePicker_Header($$anchor, {
32659
32842
  children: ($$anchor, $$slotProps) => {
32660
- var fragment_9 = root_1$8();
32843
+ var fragment_9 = root_1$9();
32661
32844
  var node_11 = first_child(fragment_9);
32662
32845
  component(node_11, () => Calendar_prev_button, ($$anchor, DatePicker_PrevButton) => {
32663
32846
  DatePicker_PrevButton($$anchor, { class: "go-datepicker-previous" });
@@ -32679,7 +32862,7 @@ function DatePicker_1($$anchor, $$props) {
32679
32862
  component(first_child(fragment_10), () => Calendar_grid, ($$anchor, DatePicker_Grid) => {
32680
32863
  DatePicker_Grid($$anchor, {
32681
32864
  children: ($$anchor, $$slotProps) => {
32682
- var fragment_11 = root$16();
32865
+ var fragment_11 = root$17();
32683
32866
  var node_16 = first_child(fragment_11);
32684
32867
  component(node_16, () => Calendar_grid_head, ($$anchor, DatePicker_GridHead) => {
32685
32868
  DatePicker_GridHead($$anchor, {
@@ -32807,10 +32990,10 @@ var rest_excludes = new Set([
32807
32990
  "inputClass",
32808
32991
  "host"
32809
32992
  ]);
32810
- var root$15 = /* @__PURE__ */ from_html(`<span class="go-field-star" aria-hidden="true">*</span>`);
32811
- var root_1$7 = /* @__PURE__ */ from_html(` <!>`, 1);
32812
- var root_2$6 = /* @__PURE__ */ from_html(`<label><!></label> <input/>`, 1);
32813
- var root_3$6 = /* @__PURE__ */ from_html(`<label><!></label> <textarea></textarea>`, 1);
32993
+ var root$16 = /* @__PURE__ */ from_html(`<span class="go-field-star" aria-hidden="true">*</span>`);
32994
+ var root_1$8 = /* @__PURE__ */ from_html(` <!>`, 1);
32995
+ var root_2$7 = /* @__PURE__ */ from_html(`<label><!></label> <input/>`, 1);
32996
+ var root_3$7 = /* @__PURE__ */ from_html(`<label><!></label> <textarea></textarea>`, 1);
32814
32997
  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>`);
32815
32998
  var root_5$1 = /* @__PURE__ */ from_html(`<label><!></label> <input/> <!>`, 1);
32816
32999
  var root_6$1 = /* @__PURE__ */ from_html(`<label><input/> <span class="go-checkbox-label"><!></span></label>`);
@@ -32829,11 +33012,11 @@ function InputAndLabel($$anchor, $$props) {
32829
33012
  push($$props, true);
32830
33013
  const labelText = ($$anchor) => {
32831
33014
  next();
32832
- var fragment = root_1$7();
33015
+ var fragment = root_1$8();
32833
33016
  var text = first_child(fragment);
32834
33017
  var node = sibling(text);
32835
33018
  var consequent = ($$anchor) => {
32836
- append($$anchor, root$15());
33019
+ append($$anchor, root$16());
32837
33020
  };
32838
33021
  if_block(node, ($$render) => {
32839
33022
  if (field().required) $$render(consequent);
@@ -32842,7 +33025,7 @@ function InputAndLabel($$anchor, $$props) {
32842
33025
  append($$anchor, fragment);
32843
33026
  };
32844
33027
  const input = ($$anchor) => {
32845
- var fragment_1 = root_2$6();
33028
+ var fragment_1 = root_2$7();
32846
33029
  var label_1 = first_child(fragment_1);
32847
33030
  labelText(child(label_1));
32848
33031
  reset(label_1);
@@ -32863,7 +33046,7 @@ function InputAndLabel($$anchor, $$props) {
32863
33046
  append($$anchor, fragment_1);
32864
33047
  };
32865
33048
  const textarea = ($$anchor) => {
32866
- var fragment_2 = root_3$6();
33049
+ var fragment_2 = root_3$7();
32867
33050
  var label_2 = first_child(fragment_2);
32868
33051
  labelText(child(label_2));
32869
33052
  reset(label_2);
@@ -33233,10 +33416,10 @@ create_custom_element(InputAndLabel, {
33233
33416
  }, [], [], { mode: "open" });
33234
33417
  //#endregion
33235
33418
  //#region src/components/forms/ui/generic/Field.svelte
33236
- var root$14 = /* @__PURE__ */ from_html(`<span> </span>`);
33237
- var root_1$6 = /* @__PURE__ */ from_html(`<li> </li>`);
33238
- var root_2$5 = /* @__PURE__ */ from_html(`<ul class="go-field-errors"></ul>`);
33239
- var root_3$5 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
33419
+ var root$15 = /* @__PURE__ */ from_html(`<span> </span>`);
33420
+ var root_1$7 = /* @__PURE__ */ from_html(`<li> </li>`);
33421
+ var root_2$6 = /* @__PURE__ */ from_html(`<ul class="go-field-errors"></ul>`);
33422
+ var root_3$6 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
33240
33423
  function Field($$anchor, $$props) {
33241
33424
  push($$props, true);
33242
33425
  let key = prop($$props, "key", 7), required = prop($$props, "required", 7, false), labelClass = prop($$props, "labelClass", 7), inputClass = prop($$props, "inputClass", 7);
@@ -33294,7 +33477,7 @@ function Field($$anchor, $$props) {
33294
33477
  flushSync();
33295
33478
  }
33296
33479
  };
33297
- var fragment = root_3$5();
33480
+ var fragment = root_3$6();
33298
33481
  var node = first_child(fragment);
33299
33482
  InputAndLabel(node, {
33300
33483
  get describedByIds() {
@@ -33316,7 +33499,7 @@ function Field($$anchor, $$props) {
33316
33499
  });
33317
33500
  var node_1 = sibling(node, 2);
33318
33501
  var consequent = ($$anchor) => {
33319
- var span = root$14();
33502
+ var span = root$15();
33320
33503
  var text = child(span, true);
33321
33504
  reset(span);
33322
33505
  template_effect(() => {
@@ -33330,9 +33513,9 @@ function Field($$anchor, $$props) {
33330
33513
  });
33331
33514
  var node_2 = sibling(node_1, 2);
33332
33515
  var consequent_1 = ($$anchor) => {
33333
- var ul = root_2$5();
33516
+ var ul = root_2$6();
33334
33517
  each(ul, 21, () => get$2(allErrors), index$1, ($$anchor, error) => {
33335
- var li = root_1$6();
33518
+ var li = root_1$7();
33336
33519
  var text_1 = child(li, true);
33337
33520
  reset(li);
33338
33521
  template_effect(() => set_text(text_1, get$2(error)));
@@ -33372,7 +33555,7 @@ customElements.define("go-field", create_custom_element(Field, {
33372
33555
  }, [], ["getField"]));
33373
33556
  //#endregion
33374
33557
  //#region src/components/forms/ui/generic/AllFields.svelte
33375
- var root$13 = /* @__PURE__ */ from_html(`<go-field></go-field>`, 2);
33558
+ var root$14 = /* @__PURE__ */ from_html(`<go-field></go-field>`, 2);
33376
33559
  function AllFields($$anchor, $$props) {
33377
33560
  push($$props, true);
33378
33561
  let _details = getDetails$1($$props.$$host);
@@ -33380,7 +33563,7 @@ function AllFields($$anchor, $$props) {
33380
33563
  let allFields = /* @__PURE__ */ user_derived(() => get$2(details) ? Forms.getFormFields(get$2(details)?.formId) : []);
33381
33564
  var fragment = comment();
33382
33565
  each(first_child(fragment), 17, () => get$2(allFields), (field) => field.key, ($$anchor, field) => {
33383
- var go_field = root$13();
33566
+ var go_field = root$14();
33384
33567
  template_effect(() => set_custom_element_data(go_field, "key", get$2(field).key));
33385
33568
  template_effect(() => set_custom_element_data(go_field, "required", get$2(field).required));
33386
33569
  append($$anchor, go_field);
@@ -33391,10 +33574,10 @@ function AllFields($$anchor, $$props) {
33391
33574
  customElements.define("go-all-fields", create_custom_element(AllFields, {}, [], []));
33392
33575
  //#endregion
33393
33576
  //#region src/components/forms/ui/generic/ErrorsFeedback.svelte
33394
- var root$12 = /* @__PURE__ */ from_html(`<p aria-hidden="true"> </p>`);
33395
- var root_1$5 = /* @__PURE__ */ from_html(`<li> </li>`);
33396
- var root_2$4 = /* @__PURE__ */ from_html(`<ul class="go-error-feedback-api-errors"></ul>`);
33397
- var root_3$4 = /* @__PURE__ */ from_html(`<div><p aria-live="assertive" class="sr-only"><!></p> <!> <!></div>`);
33577
+ var root$13 = /* @__PURE__ */ from_html(`<p aria-hidden="true"> </p>`);
33578
+ var root_1$6 = /* @__PURE__ */ from_html(`<li> </li>`);
33579
+ var root_2$5 = /* @__PURE__ */ from_html(`<ul class="go-error-feedback-api-errors"></ul>`);
33580
+ var root_3$5 = /* @__PURE__ */ from_html(`<div><p aria-live="assertive" class="sr-only"><!></p> <!> <!></div>`);
33398
33581
  function ErrorsFeedback($$anchor, $$props) {
33399
33582
  push($$props, true);
33400
33583
  const _details = getDetails$1($$props.$$host);
@@ -33415,7 +33598,7 @@ function ErrorsFeedback($$anchor, $$props) {
33415
33598
  $$props.$$host.classList.toggle("go-feedback", true);
33416
33599
  $$props.$$host.setAttribute("data-num-errors", get$2(numErrors).toString());
33417
33600
  });
33418
- var div = root_3$4();
33601
+ var div = root_3$5();
33419
33602
  var p = child(div);
33420
33603
  var node = child(p);
33421
33604
  var consequent = ($$anchor) => {
@@ -33429,7 +33612,7 @@ function ErrorsFeedback($$anchor, $$props) {
33429
33612
  reset(p);
33430
33613
  var node_1 = sibling(p, 2);
33431
33614
  var consequent_1 = ($$anchor) => {
33432
- var p_1 = root$12();
33615
+ var p_1 = root$13();
33433
33616
  var text_1 = child(p_1, true);
33434
33617
  reset(p_1);
33435
33618
  template_effect(($0) => set_text(text_1, $0), [() => shop.t("forms.errorSummary", { count: get$2(errorsRealtime) })]);
@@ -33440,9 +33623,9 @@ function ErrorsFeedback($$anchor, $$props) {
33440
33623
  });
33441
33624
  var node_2 = sibling(node_1, 2);
33442
33625
  var consequent_2 = ($$anchor) => {
33443
- var ul = root_2$4();
33626
+ var ul = root_2$5();
33444
33627
  each(ul, 21, () => get$2(details)?.apiErrors, index$1, ($$anchor, error) => {
33445
- var li = root_1$5();
33628
+ var li = root_1$6();
33446
33629
  var text_2 = child(li, true);
33447
33630
  reset(li);
33448
33631
  template_effect(() => set_text(text_2, get$2(error)));
@@ -33462,9 +33645,9 @@ function ErrorsFeedback($$anchor, $$props) {
33462
33645
  customElements.define("go-errors-feedback", create_custom_element(ErrorsFeedback, {}, [], []));
33463
33646
  //#endregion
33464
33647
  //#region src/components/forms/ui/generic/FormFeedback.svelte
33465
- var root$11 = /* @__PURE__ */ from_html(`<div class="go-form-feedback"><!></div>`);
33648
+ var root$12 = /* @__PURE__ */ from_html(`<div class="go-form-feedback"><!></div>`);
33466
33649
  function FormFeedback($$anchor, $$props) {
33467
- var div = root$11();
33650
+ var div = root$12();
33468
33651
  slot(child(div), $$props, "default", {}, null);
33469
33652
  reset(div);
33470
33653
  append($$anchor, div);
@@ -33498,7 +33681,7 @@ customElements.define("go-submit", create_custom_element(Submit, { buttonClass:
33498
33681
  } }, [], []));
33499
33682
  //#endregion
33500
33683
  //#region src/components/forms/ui/generic/SuccessFeedback.svelte
33501
- var root$10 = /* @__PURE__ */ from_html(`<div aria-live="assertive"> </div>`);
33684
+ var root$11 = /* @__PURE__ */ from_html(`<div aria-live="assertive"> </div>`);
33502
33685
  function SuccessFeedback($$anchor, $$props) {
33503
33686
  push($$props, true);
33504
33687
  const _details = getDetails$1($$props.$$host);
@@ -33506,7 +33689,7 @@ function SuccessFeedback($$anchor, $$props) {
33506
33689
  var fragment = comment();
33507
33690
  var node = first_child(fragment);
33508
33691
  var consequent = ($$anchor) => {
33509
- var div = root$10();
33692
+ var div = root$11();
33510
33693
  let classes;
33511
33694
  var text = child(div, true);
33512
33695
  reset(div);
@@ -35881,10 +36064,10 @@ customElements.define("go-order", create_custom_element(Order, { token: {
35881
36064
  } }, [], ["orderDetails"]));
35882
36065
  //#endregion
35883
36066
  //#region src/components/order/components/subcomponents/breakdown/items/Event.svelte
35884
- 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);
35885
- var root_1$4 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities"> </span>`, 1);
35886
- var root_2$3 = /* @__PURE__ */ from_html(`<a aria-label="iCal link"> </a>`);
35887
- 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>`);
36067
+ 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);
36068
+ var root_1$5 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities"> </span>`, 1);
36069
+ var root_2$4 = /* @__PURE__ */ from_html(`<a aria-label="iCal link"> </a>`);
36070
+ 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>`);
35888
36071
  function Event$1($$anchor, $$props) {
35889
36072
  push($$props, true);
35890
36073
  let item = prop($$props, "item", 7), orderDetails = prop($$props, "orderDetails", 7);
@@ -35904,7 +36087,7 @@ function Event$1($$anchor, $$props) {
35904
36087
  flushSync();
35905
36088
  }
35906
36089
  };
35907
- var li = root_3$3();
36090
+ var li = root_3$4();
35908
36091
  var article = child(li);
35909
36092
  var ul = child(article);
35910
36093
  var li_1 = sibling(child(ul), 2);
@@ -35913,7 +36096,7 @@ function Event$1($$anchor, $$props) {
35913
36096
  reset(span);
35914
36097
  var node = sibling(span, 2);
35915
36098
  var consequent = ($$anchor) => {
35916
- var fragment = root$9();
36099
+ var fragment = root$10();
35917
36100
  var span_1 = first_child(fragment);
35918
36101
  var text_1 = child(span_1, true);
35919
36102
  reset(span_1);
@@ -35934,7 +36117,7 @@ function Event$1($$anchor, $$props) {
35934
36117
  });
35935
36118
  var node_1 = sibling(node, 2);
35936
36119
  each(node_1, 17, () => item().attributes.quantities, (scalePrice) => scalePrice.id, ($$anchor, scalePrice) => {
35937
- var fragment_1 = root_1$4();
36120
+ var fragment_1 = root_1$5();
35938
36121
  var span_3 = sibling(first_child(fragment_1), 2);
35939
36122
  var text_3 = child(span_3);
35940
36123
  reset(span_3);
@@ -35951,7 +36134,7 @@ function Event$1($$anchor, $$props) {
35951
36134
  var li_3 = sibling(li_2, 4);
35952
36135
  var node_2 = child(li_3);
35953
36136
  var consequent_1 = ($$anchor) => {
35954
- var a_1 = root_2$3();
36137
+ var a_1 = root_2$4();
35955
36138
  var text_6 = child(a_1, true);
35956
36139
  reset(a_1);
35957
36140
  template_effect(($0) => {
@@ -35986,10 +36169,10 @@ create_custom_element(Event$1, {
35986
36169
  }, [], [], { mode: "open" });
35987
36170
  //#endregion
35988
36171
  //#region src/components/order/components/subcomponents/breakdown/items/TicketSale.svelte
35989
- var root$8 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities" data-testid="order-sub-ticket"> </span>`, 1);
35990
- var root_1$3 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span> <span class="go-cart-item-time"> </span>`, 1);
35991
- var root_2$2 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span>`);
35992
- var root_3$2 = /* @__PURE__ */ from_html(`<!> <br/> <a class="go-ticket-download" target="_blank" rel="noopener noreferrer"> </a>`, 1);
36172
+ var root$9 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities" data-testid="order-sub-ticket"> </span>`, 1);
36173
+ var root_1$4 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span> <span class="go-cart-item-time"> </span>`, 1);
36174
+ var root_2$3 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span>`);
36175
+ var root_3$3 = /* @__PURE__ */ from_html(`<!> <br/> <a class="go-ticket-download" target="_blank" rel="noopener noreferrer"> </a>`, 1);
35993
36176
  var root_4$2 = /* @__PURE__ */ from_html(`<br/> <a class="go-ticket-personalization"> </a>`, 1);
35994
36177
  var root_5 = /* @__PURE__ */ from_html(`<a aria-label="passbook link"><img alt="apple wallet icon"/></a>`);
35995
36178
  var root_6 = /* @__PURE__ */ from_html(`<a aria-label="iCal link"> </a>`);
@@ -36034,7 +36217,7 @@ function TicketSale($$anchor, $$props) {
36034
36217
  reset(span);
36035
36218
  var node_2 = sibling(span, 2);
36036
36219
  each(node_2, 17, () => get$2(subTicketSales), (sub) => sub.id, ($$anchor, sub) => {
36037
- var fragment_2 = root$8();
36220
+ var fragment_2 = root$9();
36038
36221
  var span_1 = sibling(first_child(fragment_2), 2);
36039
36222
  var text_1 = child(span_1);
36040
36223
  reset(span_1);
@@ -36044,10 +36227,10 @@ function TicketSale($$anchor, $$props) {
36044
36227
  var node_3 = sibling(node_2, 2);
36045
36228
  var consequent_2 = ($$anchor) => {
36046
36229
  const barcodeId = /* @__PURE__ */ user_derived(() => item().attributes.barcodes[index]?.id);
36047
- var fragment_3 = root_3$2();
36230
+ var fragment_3 = root_3$3();
36048
36231
  var node_4 = first_child(fragment_3);
36049
36232
  var consequent = ($$anchor) => {
36050
- var fragment_4 = root_1$3();
36233
+ var fragment_4 = root_1$4();
36051
36234
  var span_2 = first_child(fragment_4);
36052
36235
  var text_2 = child(span_2, true);
36053
36236
  reset(span_2);
@@ -36064,7 +36247,7 @@ function TicketSale($$anchor, $$props) {
36064
36247
  append($$anchor, fragment_4);
36065
36248
  };
36066
36249
  var consequent_1 = ($$anchor) => {
36067
- var span_4 = root_2$2();
36250
+ var span_4 = root_2$3();
36068
36251
  var text_4 = child(span_4, true);
36069
36252
  reset(span_4);
36070
36253
  template_effect(($0) => set_text(text_4, $0), [() => formatDate(item().attributes.start_time, {
@@ -36211,6 +36394,96 @@ create_custom_element(TicketSale, {
36211
36394
  orderDetails: {}
36212
36395
  }, [], [], { mode: "open" });
36213
36396
  //#endregion
36397
+ //#region src/components/order/components/subcomponents/breakdown/items/Tour.svelte
36398
+ 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);
36399
+ var root_1$3 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities"> </span>`, 1);
36400
+ var root_2$2 = /* @__PURE__ */ from_html(`<a aria-label="iCal link"> </a>`);
36401
+ 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>`);
36402
+ function Tour($$anchor, $$props) {
36403
+ push($$props, true);
36404
+ let item = prop($$props, "item", 7);
36405
+ const priceRows = /* @__PURE__ */ user_derived(() => (item().attributes.prices ?? []).filter((row) => row.title && row.quantity != null));
36406
+ var $$exports = {
36407
+ get item() {
36408
+ return item();
36409
+ },
36410
+ set item($$value) {
36411
+ item($$value);
36412
+ flushSync();
36413
+ }
36414
+ };
36415
+ var li = root_3$2();
36416
+ var article = child(li);
36417
+ var ul = child(article);
36418
+ var li_1 = sibling(child(ul), 2);
36419
+ var span = child(li_1);
36420
+ var text = child(span, true);
36421
+ reset(span);
36422
+ var span_1 = sibling(span, 2);
36423
+ var text_1 = child(span_1, true);
36424
+ reset(span_1);
36425
+ var node = sibling(span_1, 2);
36426
+ var consequent = ($$anchor) => {
36427
+ var fragment = root$8();
36428
+ var span_2 = first_child(fragment);
36429
+ var text_2 = child(span_2, true);
36430
+ reset(span_2);
36431
+ var span_3 = sibling(span_2, 2);
36432
+ var text_3 = child(span_3, true);
36433
+ reset(span_3);
36434
+ template_effect(($0, $1) => {
36435
+ set_text(text_2, $0);
36436
+ set_text(text_3, $1);
36437
+ }, [() => formatDate(item().attributes.start_time, {
36438
+ month: "numeric",
36439
+ day: "numeric"
36440
+ }, shop.locale), () => formatTime(item().attributes.start_time)]);
36441
+ append($$anchor, fragment);
36442
+ };
36443
+ if_block(node, ($$render) => {
36444
+ if (item().attributes.start_time) $$render(consequent);
36445
+ });
36446
+ each(sibling(node, 2), 17, () => get$2(priceRows), (row) => row.title, ($$anchor, row) => {
36447
+ var fragment_1 = root_1$3();
36448
+ var span_4 = sibling(first_child(fragment_1), 2);
36449
+ var text_4 = child(span_4);
36450
+ reset(span_4);
36451
+ template_effect(() => set_text(text_4, `${get$2(row).quantity ?? ""} x ${get$2(row).title ?? ""}`));
36452
+ append($$anchor, fragment_1);
36453
+ });
36454
+ reset(li_1);
36455
+ var li_2 = sibling(li_1, 2);
36456
+ var text_5 = child(li_2, true);
36457
+ reset(li_2);
36458
+ var li_3 = sibling(li_2, 4);
36459
+ var node_2 = child(li_3);
36460
+ var consequent_1 = ($$anchor) => {
36461
+ var a = root_2$2();
36462
+ var text_6 = child(a, true);
36463
+ reset(a);
36464
+ template_effect(($0) => {
36465
+ set_attribute(a, "href", shop.apiUrl + item().attributes.ical_url);
36466
+ set_text(text_6, $0);
36467
+ }, [() => shop.t("common.calendar")]);
36468
+ append($$anchor, a);
36469
+ };
36470
+ if_block(node_2, ($$render) => {
36471
+ if (item().attributes.ical_url) $$render(consequent_1);
36472
+ });
36473
+ reset(li_3);
36474
+ reset(ul);
36475
+ reset(article);
36476
+ reset(li);
36477
+ template_effect(($0, $1) => {
36478
+ set_text(text, item().attributes.title);
36479
+ set_text(text_1, $0);
36480
+ set_text(text_5, $1);
36481
+ }, [() => shop.t("cart.item.participants", { count: item().attributes.participants }), () => formatCurrency$1(item().price_cents)]);
36482
+ append($$anchor, li);
36483
+ return pop($$exports);
36484
+ }
36485
+ create_custom_element(Tour, { item: {} }, [], [], { mode: "open" });
36486
+ //#endregion
36214
36487
  //#region src/components/order/components/subcomponents/breakdown/Breakdown.svelte
36215
36488
  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>`);
36216
36489
  function Breakdown($$anchor, $$props) {
@@ -36220,7 +36493,7 @@ function Breakdown($$anchor, $$props) {
36220
36493
  let order = /* @__PURE__ */ user_derived(() => get$2(orderDetails)?.order);
36221
36494
  var fragment = comment();
36222
36495
  var node = first_child(fragment);
36223
- var consequent_2 = ($$anchor) => {
36496
+ var consequent_3 = ($$anchor) => {
36224
36497
  var ol = root$7();
36225
36498
  var li = child(ol);
36226
36499
  var ul = child(li);
@@ -36260,9 +36533,15 @@ function Breakdown($$anchor, $$props) {
36260
36533
  }
36261
36534
  });
36262
36535
  };
36536
+ var consequent_2 = ($$anchor) => {
36537
+ Tour($$anchor, { get item() {
36538
+ return get$2(item);
36539
+ } });
36540
+ };
36263
36541
  if_block(node_2, ($$render) => {
36264
36542
  if (get$2(item).type === "Ticket") $$render(consequent);
36265
36543
  else if (get$2(item).type === "Event") $$render(consequent_1, 1);
36544
+ else if (get$2(item).type === "Tour") $$render(consequent_2, 2);
36266
36545
  });
36267
36546
  append($$anchor, fragment_1);
36268
36547
  });
@@ -36289,7 +36568,7 @@ function Breakdown($$anchor, $$props) {
36289
36568
  append($$anchor, ol);
36290
36569
  };
36291
36570
  if_block(node, ($$render) => {
36292
- if (get$2(order) && get$2(orderDetails)) $$render(consequent_2);
36571
+ if (get$2(order) && get$2(orderDetails)) $$render(consequent_3);
36293
36572
  });
36294
36573
  append($$anchor, fragment);
36295
36574
  pop();
@@ -37765,20 +38044,61 @@ customElements.define("go-withdrawal-form", create_custom_element(Withdrawal, {
37765
38044
  type: "Boolean"
37766
38045
  } }, [], []));
37767
38046
  //#endregion
38047
+ //#region src/go/cart.ts
38048
+ var REQUIRED = [
38049
+ "id",
38050
+ "time",
38051
+ "participants",
38052
+ "languageId",
38053
+ "totalPriceCents",
38054
+ "title"
38055
+ ];
38056
+ function validate(options) {
38057
+ for (const key of REQUIRED) if (options[key] == null || options[key] === "") throw new Error(`(go.cart.addTour) '${key}' is required`);
38058
+ if (!(options.participants > 0)) throw new Error(`(go.cart.addTour) 'participants' must be a positive number`);
38059
+ if (options.quantities) {
38060
+ const quantitiesSum = sum(Object.values(options.quantities));
38061
+ if (quantitiesSum !== options.participants) throw new Error(`(go.cart.addTour) 'quantities' must sum to 'participants' (${quantitiesSum} !== ${options.participants})`);
38062
+ }
38063
+ }
38064
+ /**
38065
+ * Adds a group-tour booking to the cart and resolves with the cart line's
38066
+ * uuid. Every call appends a NEW line — identical bookings coexist; use the
38067
+ * returned uuid to deduplicate or remove.
38068
+ *
38069
+ * Tours are not priced by the shop API: `totalPriceCents` is the
38070
+ * integrator-supplied booking total (incl. mandatory surcharges) and is
38071
+ * verified by the backend only at checkout.
38072
+ */
38073
+ async function addTour(options) {
38074
+ validate(options);
38075
+ if (!shop.cart) throw new Error("(go.cart.addTour) shop not initialized — call go.init first");
38076
+ const { time, ...attributes } = options;
38077
+ const item = createCartItem(createUITour(attributes), {
38078
+ quantity: 1,
38079
+ time
38080
+ });
38081
+ shop.cart.addItem(item);
38082
+ return item.uuid;
38083
+ }
38084
+ //#endregion
37768
38085
  //#region src/go/go.ts
37769
38086
  var initPromise = null;
37770
38087
  async function ensureShopReady() {
37771
38088
  if (initPromise) return initPromise;
37772
- if (!shop.client) throw new Error("[go.api] Shop not initialized — call go.init({ shop, api, locale }) first.");
38089
+ if (!shop.client) throw new Error("[go] Shop not initialized — call go.init({ shop, api, locale }) first.");
37773
38090
  }
38091
+ var resolveCommand = (method) => method.split(".").reduce((target, key) => target?.[key], go);
37774
38092
  async function initGo(window) {
37775
38093
  const stub = window.go;
37776
38094
  let q = stub && stub._queue || [];
37777
- console.log(q);
38095
+ 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.");
37778
38096
  for (const command of q) {
37779
38097
  if (command.method === "load") continue;
37780
38098
  try {
37781
- await go[command.method](command.options);
38099
+ const fn = resolveCommand(command.method);
38100
+ if (typeof fn !== "function") throw new Error(`(go) unknown command: ${command.method}`);
38101
+ await fn(command.options);
37782
38102
  } catch (e) {
37783
38103
  console.error(e);
37784
38104
  }
@@ -37808,8 +38128,16 @@ var go = {
37808
38128
  getOrders: async (params) => {
37809
38129
  await ensureShopReady();
37810
38130
  return shop.asyncFetch(() => shop.getOrders(params));
38131
+ },
38132
+ getCustomerAddresses: async () => {
38133
+ await ensureShopReady();
38134
+ return shop.asyncFetch(() => shop.getCustomerAddresses());
37811
38135
  }
37812
- }
38136
+ },
38137
+ cart: { addTour: async (options) => {
38138
+ await ensureShopReady();
38139
+ return addTour(options);
38140
+ } }
37813
38141
  };
37814
38142
  (async () => {
37815
38143
  await initGo(window);