@gomusdev/web-components 4.2.0 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
  },
@@ -14143,8 +14219,8 @@ var setPersonalizationDetails = createSetDetails(KEY$5);
14143
14219
  var getPersonalizationDetails = createGetDetails(KEY$5);
14144
14220
  //#endregion
14145
14221
  //#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>`);
14222
+ var root$57 = /* @__PURE__ */ from_html(`<li><a> </a></li>`);
14223
+ 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
14224
  function AnnualTicketPersonalization($$anchor, $$props) {
14149
14225
  push($$props, true);
14150
14226
  let token = prop($$props, "token", 7);
@@ -14169,7 +14245,7 @@ function AnnualTicketPersonalization($$anchor, $$props) {
14169
14245
  var consequent_1 = ($$anchor) => {
14170
14246
  var fragment_1 = comment();
14171
14247
  each(first_child(fragment_1), 17, () => get$2(order).ticket_sales, (ticketSale) => ticketSale.id, ($$anchor, ticketSale) => {
14172
- var ul = root_1$19();
14248
+ var ul = root_1$21();
14173
14249
  var li = child(ul);
14174
14250
  var text = child(li, true);
14175
14251
  reset(li);
@@ -14178,7 +14254,7 @@ function AnnualTicketPersonalization($$anchor, $$props) {
14178
14254
  reset(li_1);
14179
14255
  var node_2 = sibling(li_1, 2);
14180
14256
  var consequent = ($$anchor) => {
14181
- var li_2 = root$55();
14257
+ var li_2 = root$57();
14182
14258
  var a = child(li_2);
14183
14259
  var text_2 = child(a, true);
14184
14260
  reset(a);
@@ -14853,7 +14929,7 @@ function wrapInElement(host, tag, props) {
14853
14929
  }
14854
14930
  //#endregion
14855
14931
  //#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);
14932
+ 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
14933
  function Form($$anchor, $$props) {
14858
14934
  push($$props, true);
14859
14935
  let formId = prop($$props, "formId", 7), custom = prop($$props, "custom", 7);
@@ -14898,7 +14974,7 @@ function Form($$anchor, $$props) {
14898
14974
  var fragment = comment();
14899
14975
  var node = first_child(fragment);
14900
14976
  var consequent = ($$anchor) => {
14901
- var fragment_1 = root$54();
14977
+ var fragment_1 = root$56();
14902
14978
  var go_submit = sibling(sibling(first_child(fragment_1), 2), 2);
14903
14979
  var text = child(go_submit, true);
14904
14980
  reset(go_submit);
@@ -14925,7 +15001,7 @@ customElements.define("go-form", create_custom_element(Form, {
14925
15001
  }, [], ["details"]));
14926
15002
  //#endregion
14927
15003
  //#region src/components/auth/passwordReset/PasswordReset.svelte
14928
- var root$53 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15004
+ var root$55 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
14929
15005
  function PasswordReset($$anchor, $$props) {
14930
15006
  push($$props, true);
14931
15007
  let custom = prop($$props, "custom", 7, false);
@@ -14958,7 +15034,7 @@ function PasswordReset($$anchor, $$props) {
14958
15034
  flushSync();
14959
15035
  }
14960
15036
  };
14961
- var go_form = root$53();
15037
+ var go_form = root$55();
14962
15038
  set_custom_element_data(go_form, "formId", "passwordReset");
14963
15039
  template_effect(() => set_custom_element_data(go_form, "custom", custom()));
14964
15040
  event("submit", go_form, passwordReset);
@@ -15122,7 +15198,7 @@ function createDisplayCart(baseCart, apiItems) {
15122
15198
  return displayCart;
15123
15199
  }
15124
15200
  function createDisplayCartItem(cartItem, attrs) {
15125
- const quantity = resolveApiQuantity(attrs);
15201
+ const quantity = isUITour(cartItem.product) ? 1 : resolveApiQuantity(attrs);
15126
15202
  const displayPrice = attrs.price_cents ?? cartItem.product.price_cents;
15127
15203
  const originalPrice = cartItem.product.price_cents;
15128
15204
  const discounted = displayPrice < originalPrice;
@@ -15195,7 +15271,7 @@ var setCartDetails = createSetDetails(KEY$3);
15195
15271
  var getCartDetails = createGetDetails(KEY$3);
15196
15272
  //#endregion
15197
15273
  //#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>`);
15274
+ var root$54 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span>`);
15199
15275
  function Coupon($$anchor, $$props) {
15200
15276
  push($$props, true);
15201
15277
  let cartItem = prop($$props, "cartItem", 7);
@@ -15208,7 +15284,7 @@ function Coupon($$anchor, $$props) {
15208
15284
  flushSync();
15209
15285
  }
15210
15286
  };
15211
- var span = root$52();
15287
+ var span = root$54();
15212
15288
  var text = child(span, true);
15213
15289
  reset(span);
15214
15290
  template_effect(() => set_text(text, cartItem().product.title));
@@ -15218,8 +15294,8 @@ function Coupon($$anchor, $$props) {
15218
15294
  create_custom_element(Coupon, { cartItem: {} }, [], [], { mode: "open" });
15219
15295
  //#endregion
15220
15296
  //#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);
15297
+ 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);
15298
+ 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
15299
  function Event$2($$anchor, $$props) {
15224
15300
  push($$props, true);
15225
15301
  let cartItem = prop($$props, "cartItem", 7);
@@ -15234,7 +15310,7 @@ function Event$2($$anchor, $$props) {
15234
15310
  flushSync();
15235
15311
  }
15236
15312
  };
15237
- var fragment = root_1$18();
15313
+ var fragment = root_1$20();
15238
15314
  var span = first_child(fragment);
15239
15315
  var span_1 = child(span);
15240
15316
  var text = child(span_1, true);
@@ -15245,7 +15321,7 @@ function Event$2($$anchor, $$props) {
15245
15321
  reset(span);
15246
15322
  var node = sibling(span);
15247
15323
  var consequent = ($$anchor) => {
15248
- var fragment_1 = root$51();
15324
+ var fragment_1 = root$53();
15249
15325
  var span_3 = first_child(fragment_1);
15250
15326
  var text_2 = child(span_3, true);
15251
15327
  reset(span_3);
@@ -15274,9 +15350,9 @@ function Event$2($$anchor, $$props) {
15274
15350
  create_custom_element(Event$2, { cartItem: {} }, [], [], { mode: "open" });
15275
15351
  //#endregion
15276
15352
  //#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);
15353
+ var root$52 = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
15354
+ var root_1$19 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
15355
+ var root_2$14 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span> <!>`, 1);
15280
15356
  function Ticket($$anchor, $$props) {
15281
15357
  push($$props, true);
15282
15358
  let cartItem = prop($$props, "cartItem", 7);
@@ -15289,19 +15365,19 @@ function Ticket($$anchor, $$props) {
15289
15365
  flushSync();
15290
15366
  }
15291
15367
  };
15292
- var fragment = root_2$12();
15368
+ var fragment = root_2$14();
15293
15369
  var span = first_child(fragment);
15294
15370
  var text = child(span, true);
15295
15371
  reset(span);
15296
15372
  var node = sibling(span, 2);
15297
15373
  var consequent_1 = ($$anchor) => {
15298
- var fragment_1 = root_1$17();
15374
+ var fragment_1 = root_1$19();
15299
15375
  var span_1 = first_child(fragment_1);
15300
15376
  var text_1 = child(span_1, true);
15301
15377
  reset(span_1);
15302
15378
  var node_1 = sibling(span_1, 2);
15303
15379
  var consequent = ($$anchor) => {
15304
- var span_2 = root$50();
15380
+ var span_2 = root$52();
15305
15381
  var text_2 = child(span_2, true);
15306
15382
  reset(span_2);
15307
15383
  template_effect(($0) => set_text(text_2, $0), [() => formatTime(cartItem().time)]);
@@ -15325,6 +15401,93 @@ function Ticket($$anchor, $$props) {
15325
15401
  }
15326
15402
  create_custom_element(Ticket, { cartItem: {} }, [], [], { mode: "open" });
15327
15403
  //#endregion
15404
+ //#region src/components/cart/components/itemTitles/Tour.svelte
15405
+ var root$51 = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
15406
+ var root_1$18 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
15407
+ var root_2$13 = /* @__PURE__ */ from_html(`<span class="go-cart-item-custom" data-testid="cart-item-custom"> </span>`);
15408
+ 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);
15409
+ function Tour$1($$anchor, $$props) {
15410
+ push($$props, true);
15411
+ let cartItem = prop($$props, "cartItem", 7);
15412
+ const product = /* @__PURE__ */ user_derived(() => cartItem().product);
15413
+ const slot = /* @__PURE__ */ user_derived(() => {
15414
+ if (!cartItem().time) return null;
15415
+ try {
15416
+ return {
15417
+ date: formatDate(cartItem().time, {
15418
+ year: "numeric",
15419
+ month: "numeric",
15420
+ day: "numeric"
15421
+ }, shop.locale),
15422
+ time: formatTime(cartItem().time)
15423
+ };
15424
+ } catch {
15425
+ return {
15426
+ date: cartItem().time,
15427
+ time: ""
15428
+ };
15429
+ }
15430
+ });
15431
+ const displayCustom = (value) => value == null ? "" : typeof value === "object" ? JSON.stringify(value) : String(value);
15432
+ const customs = /* @__PURE__ */ user_derived(() => Object.entries(get$2(product).customs ?? {}).filter(([, value]) => value != null && value !== ""));
15433
+ var $$exports = {
15434
+ get cartItem() {
15435
+ return cartItem();
15436
+ },
15437
+ set cartItem($$value) {
15438
+ cartItem($$value);
15439
+ flushSync();
15440
+ }
15441
+ };
15442
+ var fragment = root_3$9();
15443
+ var span = first_child(fragment);
15444
+ var text = child(span, true);
15445
+ reset(span);
15446
+ var span_1 = sibling(span, 2);
15447
+ var text_1 = child(span_1, true);
15448
+ reset(span_1);
15449
+ var node = sibling(span_1, 2);
15450
+ var consequent_1 = ($$anchor) => {
15451
+ var fragment_1 = root_1$18();
15452
+ var span_2 = first_child(fragment_1);
15453
+ var text_2 = child(span_2, true);
15454
+ reset(span_2);
15455
+ var node_1 = sibling(span_2, 2);
15456
+ var consequent = ($$anchor) => {
15457
+ var span_3 = root$51();
15458
+ var text_3 = child(span_3, true);
15459
+ reset(span_3);
15460
+ template_effect(() => set_text(text_3, get$2(slot).time));
15461
+ append($$anchor, span_3);
15462
+ };
15463
+ if_block(node_1, ($$render) => {
15464
+ if (get$2(slot).time) $$render(consequent);
15465
+ });
15466
+ template_effect(() => set_text(text_2, get$2(slot).date));
15467
+ append($$anchor, fragment_1);
15468
+ };
15469
+ if_block(node, ($$render) => {
15470
+ if (get$2(slot)) $$render(consequent_1);
15471
+ });
15472
+ each(sibling(node, 2), 17, () => get$2(customs), ([key, value]) => key, ($$anchor, $$item) => {
15473
+ var $$array = /* @__PURE__ */ user_derived(() => to_array(get$2($$item), 2));
15474
+ let key = () => get$2($$array)[0];
15475
+ let value = () => get$2($$array)[1];
15476
+ var span_4 = root_2$13();
15477
+ var text_4 = child(span_4);
15478
+ reset(span_4);
15479
+ template_effect(($0) => set_text(text_4, `${key() ?? ""}: ${$0 ?? ""}`), [() => displayCustom(value())]);
15480
+ append($$anchor, span_4);
15481
+ });
15482
+ template_effect(($0) => {
15483
+ set_text(text, get$2(product).title);
15484
+ set_text(text_1, $0);
15485
+ }, [() => shop.t("cart.item.participants", { count: get$2(product).participants })]);
15486
+ append($$anchor, fragment);
15487
+ return pop($$exports);
15488
+ }
15489
+ create_custom_element(Tour$1, { cartItem: {} }, [], [], { mode: "open" });
15490
+ //#endregion
15328
15491
  //#region src/lib/models/cart/quantityStepper.ts
15329
15492
  /** `+`: from below the order minimum jump to it (at least `1`); otherwise step up by one. Capped at `max`. */
15330
15493
  function increment(value, { min, max }) {
@@ -15358,7 +15521,7 @@ function canDecrement(value, { floor = 0 }) {
15358
15521
  }
15359
15522
  //#endregion
15360
15523
  //#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>`);
15524
+ 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
15525
  function QuantityStepper($$anchor, $$props) {
15363
15526
  const inputId = props_id();
15364
15527
  push($$props, true);
@@ -15473,7 +15636,7 @@ function QuantityStepper($$anchor, $$props) {
15473
15636
  flushSync();
15474
15637
  }
15475
15638
  };
15476
- var div = root$49();
15639
+ var div = root$50();
15477
15640
  var button = child(div);
15478
15641
  var input = sibling(button, 2);
15479
15642
  remove_input_defaults(input);
@@ -15543,8 +15706,8 @@ function option(value) {
15543
15706
  }
15544
15707
  //#endregion
15545
15708
  //#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>`);
15709
+ var root$49 = /* @__PURE__ */ from_html(`<option> </option>`);
15710
+ var root_1$17 = /* @__PURE__ */ from_html(`<select class="go-quantity-select"></select>`);
15548
15711
  function QuantityControl($$anchor, $$props) {
15549
15712
  push($$props, true);
15550
15713
  /** Current committed quantity. */
@@ -15649,9 +15812,9 @@ function QuantityControl($$anchor, $$props) {
15649
15812
  }
15650
15813
  };
15651
15814
  var alternate = ($$anchor) => {
15652
- var select = root_1$16();
15815
+ var select = root_1$17();
15653
15816
  each(select, 21, () => generateQuantityOptions(min(), max(), { floor: deselectable() ? floor() : min() }), (q) => q.value, ($$anchor, q) => {
15654
- var option = root$48();
15817
+ var option = root$49();
15655
15818
  var text = child(option, true);
15656
15819
  reset(option);
15657
15820
  var option_value = {};
@@ -17535,9 +17698,9 @@ function createDOMPurify() {
17535
17698
  var purify = createDOMPurify();
17536
17699
  //#endregion
17537
17700
  //#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>`);
17701
+ var root$48 = /* @__PURE__ */ from_html(`<span class="go-sub-ticket-description"></span>`);
17702
+ var root_1$16 = /* @__PURE__ */ from_html(`<span class="go-sub-ticket-quantity"> </span>`);
17703
+ var root_2$12 = /* @__PURE__ */ from_html(`<li><span class="go-sub-ticket-title"> </span> <!> <!></li>`);
17541
17704
  function SubRow($$anchor, $$props) {
17542
17705
  push($$props, true);
17543
17706
  /** Capacity-aware ceiling from CapacityManager.subTicketMaxes; the combination max when absent. */
@@ -17580,13 +17743,13 @@ function SubRow($$anchor, $$props) {
17580
17743
  flushSync();
17581
17744
  }
17582
17745
  };
17583
- var li = root_2$11();
17746
+ var li = root_2$12();
17584
17747
  var span = child(li);
17585
17748
  var text = child(span, true);
17586
17749
  reset(span);
17587
17750
  var node = sibling(span, 2);
17588
17751
  var consequent = ($$anchor) => {
17589
- var span_1 = root$47();
17752
+ var span_1 = root$48();
17590
17753
  html$2(span_1, () => purify.sanitize(sub().description), true);
17591
17754
  reset(span_1);
17592
17755
  append($$anchor, span_1);
@@ -17596,7 +17759,7 @@ function SubRow($$anchor, $$props) {
17596
17759
  });
17597
17760
  var node_1 = sibling(node, 2);
17598
17761
  var consequent_1 = ($$anchor) => {
17599
- var span_2 = root_1$15();
17762
+ var span_2 = root_1$16();
17600
17763
  var text_1 = child(span_2, true);
17601
17764
  reset(span_2);
17602
17765
  template_effect(() => {
@@ -17655,12 +17818,13 @@ create_custom_element(SubRow, {
17655
17818
  }, [], [], { mode: "open" });
17656
17819
  //#endregion
17657
17820
  //#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);
17821
+ var root$47 = /* @__PURE__ */ from_html(`<s class="go-cart-item-price-original"> </s> <span class="go-cart-item-price-discounted"> </span>`, 1);
17822
+ var root_1$15 = /* @__PURE__ */ from_html(`<span class="go-cart-item-price-discounted"> </span>`);
17823
+ var root_2$11 = /* @__PURE__ */ from_html(`<span data-testid="cart-item-participant-count"> </span>`);
17824
+ var root_3$8 = /* @__PURE__ */ from_html(`<span> </span>`);
17825
+ var root_4$4 = /* @__PURE__ */ from_html(`<li class="go-cart-item-remove"><button class="go-cart-remove">⨉</button></li>`);
17826
+ var root_5$2 = /* @__PURE__ */ from_html(`<ul class="go-sub-tickets" role="list"></ul>`);
17827
+ 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
17828
  function Item$1($$anchor, $$props) {
17665
17829
  push($$props, true);
17666
17830
  let displayItem = prop($$props, "displayItem", 7), displayCart = prop($$props, "displayCart", 7), preview = prop($$props, "preview", 7);
@@ -17725,8 +17889,8 @@ function Item$1($$anchor, $$props) {
17725
17889
  };
17726
17890
  var fragment = comment();
17727
17891
  var node = first_child(fragment);
17728
- var consequent_7 = ($$anchor) => {
17729
- var fragment_1 = root_5$2();
17892
+ var consequent_9 = ($$anchor) => {
17893
+ var fragment_1 = root_6$2();
17730
17894
  var article = first_child(fragment_1);
17731
17895
  var ul = child(article);
17732
17896
  var li = child(ul);
@@ -17746,17 +17910,23 @@ function Item$1($$anchor, $$props) {
17746
17910
  return displayItem();
17747
17911
  } });
17748
17912
  };
17913
+ var consequent_3 = ($$anchor) => {
17914
+ Tour$1($$anchor, { get cartItem() {
17915
+ return displayItem();
17916
+ } });
17917
+ };
17749
17918
  if_block(node_1, ($$render) => {
17750
17919
  if (displayItem().product.type === "Ticket") $$render(consequent);
17751
17920
  else if (displayItem().product.type === "Event") $$render(consequent_1, 1);
17752
17921
  else if (displayItem().product.type === "Coupon") $$render(consequent_2, 2);
17922
+ else if (displayItem().product.type === "Tour") $$render(consequent_3, 3);
17753
17923
  });
17754
17924
  reset(li);
17755
17925
  var li_1 = sibling(li, 2);
17756
17926
  var node_2 = child(li_1);
17757
- var consequent_3 = ($$anchor) => {
17758
- var fragment_5 = root$46();
17759
- var s = first_child(fragment_5);
17927
+ var consequent_4 = ($$anchor) => {
17928
+ var fragment_6 = root$47();
17929
+ var s = first_child(fragment_6);
17760
17930
  var text = child(s, true);
17761
17931
  reset(s);
17762
17932
  var span = sibling(s, 2);
@@ -17766,29 +17936,36 @@ function Item$1($$anchor, $$props) {
17766
17936
  set_text(text, $0);
17767
17937
  set_text(text_1, $1);
17768
17938
  }, [() => formatCurrency(displayItem().display.originalPrice), () => formatCurrency(displayItem().final_price_cents)]);
17769
- append($$anchor, fragment_5);
17939
+ append($$anchor, fragment_6);
17770
17940
  };
17771
17941
  var alternate = ($$anchor) => {
17772
- var span_1 = root_1$14();
17942
+ var span_1 = root_1$15();
17773
17943
  var text_2 = child(span_1, true);
17774
17944
  reset(span_1);
17775
17945
  template_effect(($0) => set_text(text_2, $0), [() => formatCurrency(displayItem().final_price_cents)]);
17776
17946
  append($$anchor, span_1);
17777
17947
  };
17778
17948
  if_block(node_2, ($$render) => {
17779
- if (displayItem().display?.discounted) $$render(consequent_3);
17949
+ if (displayItem().display?.discounted) $$render(consequent_4);
17780
17950
  else $$render(alternate, -1);
17781
17951
  });
17782
17952
  reset(li_1);
17783
17953
  var li_2 = sibling(li_1, 2);
17784
17954
  var node_3 = child(li_2);
17785
- var consequent_4 = ($$anchor) => {
17786
- var span_2 = root_2$10();
17955
+ var consequent_5 = ($$anchor) => {
17956
+ var span_2 = root_2$11();
17787
17957
  var text_3 = child(span_2, true);
17788
17958
  reset(span_2);
17789
- template_effect(() => set_text(text_3, displayItem().quantity));
17959
+ template_effect(() => set_text(text_3, displayItem().product.participants));
17790
17960
  append($$anchor, span_2);
17791
17961
  };
17962
+ var consequent_6 = ($$anchor) => {
17963
+ var span_3 = root_3$8();
17964
+ var text_4 = child(span_3, true);
17965
+ reset(span_3);
17966
+ template_effect(() => set_text(text_4, displayItem().quantity));
17967
+ append($$anchor, span_3);
17968
+ };
17792
17969
  var alternate_1 = ($$anchor) => {
17793
17970
  {
17794
17971
  let $0 = /* @__PURE__ */ user_derived(() => displayItem().quantity ?? 0);
@@ -17811,13 +17988,14 @@ function Item$1($$anchor, $$props) {
17811
17988
  }
17812
17989
  };
17813
17990
  if_block(node_3, ($$render) => {
17814
- if (preview()) $$render(consequent_4);
17991
+ if (displayItem().product.type === "Tour") $$render(consequent_5);
17992
+ else if (preview()) $$render(consequent_6, 1);
17815
17993
  else $$render(alternate_1, -1);
17816
17994
  });
17817
17995
  reset(li_2);
17818
17996
  var node_4 = sibling(li_2, 2);
17819
- var consequent_5 = ($$anchor) => {
17820
- var li_3 = root_3$7();
17997
+ var consequent_7 = ($$anchor) => {
17998
+ var li_3 = root_4$4();
17821
17999
  var button = child(li_3);
17822
18000
  reset(li_3);
17823
18001
  template_effect(($0) => set_attribute(button, "aria-label", $0), [() => shop.t("cart.item.remove")]);
@@ -17825,16 +18003,16 @@ function Item$1($$anchor, $$props) {
17825
18003
  append($$anchor, li_3);
17826
18004
  };
17827
18005
  if_block(node_4, ($$render) => {
17828
- if (!preview()) $$render(consequent_5);
18006
+ if (!preview()) $$render(consequent_7);
17829
18007
  });
17830
18008
  var li_4 = sibling(node_4, 2);
17831
- var text_4 = child(li_4, true);
18009
+ var text_5 = child(li_4, true);
17832
18010
  reset(li_4);
17833
18011
  reset(ul);
17834
18012
  reset(article);
17835
18013
  var node_5 = sibling(article, 2);
17836
- var consequent_6 = ($$anchor) => {
17837
- var ul_1 = root_4$4();
18014
+ var consequent_8 = ($$anchor) => {
18015
+ var ul_1 = root_5$2();
17838
18016
  each(ul_1, 21, () => subTicketDefs(get$2(mantleProduct)), (sub) => sub.id, ($$anchor, sub) => {
17839
18017
  {
17840
18018
  let $0 = /* @__PURE__ */ user_derived(() => displayItem().mantle?.composition?.[get$2(sub).id] ?? 0);
@@ -17860,13 +18038,13 @@ function Item$1($$anchor, $$props) {
17860
18038
  append($$anchor, ul_1);
17861
18039
  };
17862
18040
  if_block(node_5, ($$render) => {
17863
- if (get$2(mantleProduct)) $$render(consequent_6);
18041
+ if (get$2(mantleProduct)) $$render(consequent_8);
17864
18042
  });
17865
- template_effect(($0) => set_text(text_4, $0), [() => formatCurrency(displayItem().total_price_cents)]);
18043
+ template_effect(($0) => set_text(text_5, $0), [() => formatCurrency(displayItem().total_price_cents)]);
17866
18044
  append($$anchor, fragment_1);
17867
18045
  };
17868
18046
  if_block(node, ($$render) => {
17869
- if (get$2(capacity)) $$render(consequent_7);
18047
+ if (get$2(capacity)) $$render(consequent_9);
17870
18048
  });
17871
18049
  append($$anchor, fragment);
17872
18050
  return pop($$exports);
@@ -17879,9 +18057,9 @@ create_custom_element(Item$1, {
17879
18057
  }, [], [], { mode: "open" });
17880
18058
  //#endregion
17881
18059
  //#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>`);
18060
+ var root$46 = /* @__PURE__ */ from_html(`<li class="go-cart-header-remove"></li>`);
18061
+ var root_1$14 = /* @__PURE__ */ from_html(`<li class="go-cart-item"><!></li>`);
18062
+ 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
18063
  function CartItems($$anchor, $$props) {
17886
18064
  push($$props, true);
17887
18065
  const _details = getCartDetails($$props.$$host);
@@ -17889,7 +18067,7 @@ function CartItems($$anchor, $$props) {
17889
18067
  var fragment = comment();
17890
18068
  var node = first_child(fragment);
17891
18069
  var consequent_1 = ($$anchor) => {
17892
- var ol = root_2$9();
18070
+ var ol = root_2$10();
17893
18071
  var li = child(ol);
17894
18072
  var ul = child(li);
17895
18073
  var li_1 = child(ul);
@@ -17903,7 +18081,7 @@ function CartItems($$anchor, $$props) {
17903
18081
  reset(li_3);
17904
18082
  var node_1 = sibling(li_3, 2);
17905
18083
  var consequent = ($$anchor) => {
17906
- append($$anchor, root$45());
18084
+ append($$anchor, root$46());
17907
18085
  };
17908
18086
  if_block(node_1, ($$render) => {
17909
18087
  if (!get$2(details).preview) $$render(consequent);
@@ -17914,7 +18092,7 @@ function CartItems($$anchor, $$props) {
17914
18092
  reset(ul);
17915
18093
  reset(li);
17916
18094
  each(sibling(li, 2), 17, () => get$2(details).displayCart.items, (item) => item.uuid, ($$anchor, item) => {
17917
- var li_6 = root_1$13();
18095
+ var li_6 = root_1$14();
17918
18096
  Item$1(child(li_6), {
17919
18097
  get displayItem() {
17920
18098
  return get$2(item);
@@ -17952,9 +18130,9 @@ function CartItems($$anchor, $$props) {
17952
18130
  customElements.define("go-cart-items", create_custom_element(CartItems, {}, [], []));
17953
18131
  //#endregion
17954
18132
  //#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>`);
18133
+ var root$45 = /* @__PURE__ */ from_html(`<li class="go-cart-coupon-remove-cell"><button class="go-cart-remove go-cart-coupon-remove">⨉</button></li>`);
18134
+ 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>`);
18135
+ var root_2$9 = /* @__PURE__ */ from_html(`<ol data-testid="cart-coupons"></ol>`);
17958
18136
  function CartCoupons($$anchor, $$props) {
17959
18137
  push($$props, true);
17960
18138
  const _details = getCartDetails($$props.$$host);
@@ -17962,9 +18140,9 @@ function CartCoupons($$anchor, $$props) {
17962
18140
  var fragment = comment();
17963
18141
  var node = first_child(fragment);
17964
18142
  var consequent_1 = ($$anchor) => {
17965
- var ol = root_2$8();
18143
+ var ol = root_2$9();
17966
18144
  each(ol, 21, () => get$2(details).displayCart.coupons, (coupon) => coupon.code, ($$anchor, coupon) => {
17967
- var li = root_1$12();
18145
+ var li = root_1$13();
17968
18146
  let classes;
17969
18147
  var article = child(li);
17970
18148
  var ul = child(article);
@@ -17973,7 +18151,7 @@ function CartCoupons($$anchor, $$props) {
17973
18151
  reset(li_1);
17974
18152
  var node_1 = sibling(li_1, 2);
17975
18153
  var consequent = ($$anchor) => {
17976
- var li_2 = root$44();
18154
+ var li_2 = root$45();
17977
18155
  var button = child(li_2);
17978
18156
  reset(li_2);
17979
18157
  template_effect(($0) => set_attribute(button, "aria-label", $0), [() => shop.t("cart.coupons.remove")]);
@@ -18005,7 +18183,7 @@ delegate(["click"]);
18005
18183
  customElements.define("go-cart-coupons", create_custom_element(CartCoupons, {}, [], []));
18006
18184
  //#endregion
18007
18185
  //#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>`);
18186
+ var root$44 = /* @__PURE__ */ from_html(`<span class="go-cart-total-amount" data-testid="cart-total-amount"> </span>`);
18009
18187
  function CartTotalAmount($$anchor, $$props) {
18010
18188
  push($$props, true);
18011
18189
  const _details = getCartDetails($$props.$$host);
@@ -18013,7 +18191,7 @@ function CartTotalAmount($$anchor, $$props) {
18013
18191
  var fragment = comment();
18014
18192
  var node = first_child(fragment);
18015
18193
  var consequent = ($$anchor) => {
18016
- var span = root$43();
18194
+ var span = root$44();
18017
18195
  var text = child(span, true);
18018
18196
  reset(span);
18019
18197
  template_effect(($0) => set_text(text, $0), [() => formatCurrency(get$2(details).totalPriceCents)]);
@@ -18082,7 +18260,7 @@ customElements.define("go-cart", create_custom_element(Cart, { preview: {
18082
18260
  } }, [], []));
18083
18261
  //#endregion
18084
18262
  //#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>`);
18263
+ var root$43 = /* @__PURE__ */ from_html(`<span class="go-cart-subtotal-amount" data-testid="cart-subtotal-amount"> </span>`);
18086
18264
  function CartSubtotalAmount($$anchor, $$props) {
18087
18265
  push($$props, true);
18088
18266
  const _details = getCartDetails($$props.$$host);
@@ -18090,7 +18268,7 @@ function CartSubtotalAmount($$anchor, $$props) {
18090
18268
  var fragment = comment();
18091
18269
  var node = first_child(fragment);
18092
18270
  var consequent = ($$anchor) => {
18093
- var span = root$42();
18271
+ var span = root$43();
18094
18272
  var text = child(span, true);
18095
18273
  reset(span);
18096
18274
  template_effect(($0) => set_text(text, $0), [() => formatCurrency(get$2(details).subtotalPriceCents)]);
@@ -18105,7 +18283,7 @@ function CartSubtotalAmount($$anchor, $$props) {
18105
18283
  customElements.define("go-cart-subtotal-amount", create_custom_element(CartSubtotalAmount, {}, [], []));
18106
18284
  //#endregion
18107
18285
  //#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>`);
18286
+ 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
18287
  function CartDiscountedAmount($$anchor, $$props) {
18110
18288
  push($$props, true);
18111
18289
  const _details = getCartDetails($$props.$$host);
@@ -18113,7 +18291,7 @@ function CartDiscountedAmount($$anchor, $$props) {
18113
18291
  var fragment = comment();
18114
18292
  var node = first_child(fragment);
18115
18293
  var consequent = ($$anchor) => {
18116
- var span = root$41();
18294
+ var span = root$42();
18117
18295
  var text = sibling(child(span), 1, true);
18118
18296
  reset(span);
18119
18297
  template_effect(($0) => set_text(text, $0), [() => formatCurrency(get$2(details).discountedAmountCents)]);
@@ -18266,7 +18444,7 @@ function fail(errors) {
18266
18444
  }
18267
18445
  //#endregion
18268
18446
  //#region src/components/couponRedemption/CouponRedemption.svelte
18269
- var root$40 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
18447
+ var root$41 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
18270
18448
  function CouponRedemption($$anchor, $$props) {
18271
18449
  push($$props, true);
18272
18450
  Forms.defineForm({
@@ -18302,7 +18480,7 @@ function CouponRedemption($$anchor, $$props) {
18302
18480
  return runRedeem(form);
18303
18481
  }
18304
18482
  var $$exports = { flush };
18305
- var go_form = root$40();
18483
+ var go_form = root$41();
18306
18484
  set_custom_element_data(go_form, "formId", "couponRedemption");
18307
18485
  event("submit", go_form, redeem$1);
18308
18486
  append($$anchor, go_form);
@@ -18358,8 +18536,8 @@ var GoDonation = class {
18358
18536
  var goDonation = new GoDonation();
18359
18537
  //#endregion
18360
18538
  //#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>`);
18539
+ var root$40 = /* @__PURE__ */ from_html(`<img alt="logo"/>`);
18540
+ 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
18541
  function DonationCampaign($$anchor, $$props) {
18364
18542
  push($$props, true);
18365
18543
  let campaign = prop($$props, "campaign", 7);
@@ -18373,12 +18551,12 @@ function DonationCampaign($$anchor, $$props) {
18373
18551
  flushSync();
18374
18552
  }
18375
18553
  };
18376
- var div = root_1$11();
18554
+ var div = root_1$12();
18377
18555
  let classes;
18378
18556
  var div_1 = child(div);
18379
18557
  var node = child(div_1);
18380
18558
  var consequent = ($$anchor) => {
18381
- var img = root$39();
18559
+ var img = root$40();
18382
18560
  template_effect(($0) => set_attribute(img, "src", $0), [() => campaign().picture.thumbnail.replace("thumbnail", "article_3x2")]);
18383
18561
  append($$anchor, img);
18384
18562
  };
@@ -18449,9 +18627,9 @@ function parseIds(ids) {
18449
18627
  }
18450
18628
  //#endregion
18451
18629
  //#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>`);
18630
+ var root$39 = /* @__PURE__ */ from_html(`<button> </button>`);
18631
+ 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>`);
18632
+ var root_2$8 = /* @__PURE__ */ from_html(`<div class="donation-selection"><h3> </h3> <div class="donation-options"></div> <!></div>`);
18455
18633
  function DonationSelector($$anchor, $$props) {
18456
18634
  push($$props, true);
18457
18635
  const guestMaxLimit = goDonation.campaign?.guest_limit / 100;
@@ -18468,13 +18646,13 @@ function DonationSelector($$anchor, $$props) {
18468
18646
  form.reportValidity();
18469
18647
  }
18470
18648
  }
18471
- var div = root_2$7();
18649
+ var div = root_2$8();
18472
18650
  var h3 = child(div);
18473
18651
  var text = child(h3, true);
18474
18652
  reset(h3);
18475
18653
  var div_1 = sibling(h3, 2);
18476
18654
  each(div_1, 20, () => goDonation.campaign?.options, (option) => option, ($$anchor, option) => {
18477
- var button = root$38();
18655
+ var button = root$39();
18478
18656
  let classes;
18479
18657
  var text_1 = child(button, true);
18480
18658
  reset(button);
@@ -18488,7 +18666,7 @@ function DonationSelector($$anchor, $$props) {
18488
18666
  reset(div_1);
18489
18667
  var node = sibling(div_1, 2);
18490
18668
  var consequent = ($$anchor) => {
18491
- var form_1 = root_1$10();
18669
+ var form_1 = root_1$11();
18492
18670
  var div_2 = child(form_1);
18493
18671
  var label = child(div_2);
18494
18672
  var text_2 = child(label, true);
@@ -18518,7 +18696,7 @@ delegate(["click", "input"]);
18518
18696
  create_custom_element(DonationSelector, {}, [], [], { mode: "open" });
18519
18697
  //#endregion
18520
18698
  //#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>`);
18699
+ 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
18700
  function Donations($$anchor, $$props) {
18523
18701
  push($$props, false);
18524
18702
  onMount(() => {
@@ -18528,7 +18706,7 @@ function Donations($$anchor, $$props) {
18528
18706
  var fragment = comment();
18529
18707
  var node = first_child(fragment);
18530
18708
  var consequent_1 = ($$anchor) => {
18531
- var div = root$37();
18709
+ var div = root$38();
18532
18710
  var node_1 = child(div);
18533
18711
  each(node_1, 1, () => shop?.donations?.campaigns, (campaign) => campaign.id, ($$anchor, campaign) => {
18534
18712
  DonationCampaign($$anchor, { get campaign() {
@@ -24367,7 +24545,7 @@ var rest_excludes$25 = new Set([
24367
24545
  "monthFormat",
24368
24546
  "yearFormat"
24369
24547
  ]);
24370
- var root$36 = /* @__PURE__ */ from_html(`<div><!></div>`);
24548
+ var root$37 = /* @__PURE__ */ from_html(`<div><!></div>`);
24371
24549
  function Calendar$1($$anchor, $$props) {
24372
24550
  push($$props, true);
24373
24551
  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 +24817,7 @@ function Calendar$1($$anchor, $$props) {
24639
24817
  append($$anchor, fragment_1);
24640
24818
  };
24641
24819
  var alternate = ($$anchor) => {
24642
- var div = root$36();
24820
+ var div = root$37();
24643
24821
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
24644
24822
  snippet(child(div), () => children() ?? noop$1, () => rootState.snippetProps);
24645
24823
  reset(div);
@@ -24694,7 +24872,7 @@ var rest_excludes$24 = new Set([
24694
24872
  "ref",
24695
24873
  "id"
24696
24874
  ]);
24697
- var root$35 = /* @__PURE__ */ from_html(`<div><!></div>`);
24875
+ var root$36 = /* @__PURE__ */ from_html(`<div><!></div>`);
24698
24876
  function Calendar_day($$anchor, $$props) {
24699
24877
  const uid = props_id();
24700
24878
  push($$props, true);
@@ -24749,7 +24927,7 @@ function Calendar_day($$anchor, $$props) {
24749
24927
  append($$anchor, fragment_1);
24750
24928
  };
24751
24929
  var alternate_1 = ($$anchor) => {
24752
- var div = root$35();
24930
+ var div = root$36();
24753
24931
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
24754
24932
  var node_2 = child(div);
24755
24933
  var consequent_1 = ($$anchor) => {
@@ -24794,7 +24972,7 @@ var rest_excludes$23 = new Set([
24794
24972
  "ref",
24795
24973
  "id"
24796
24974
  ]);
24797
- var root$34 = /* @__PURE__ */ from_html(`<table><!></table>`);
24975
+ var root$35 = /* @__PURE__ */ from_html(`<table><!></table>`);
24798
24976
  function Calendar_grid($$anchor, $$props) {
24799
24977
  const uid = props_id();
24800
24978
  push($$props, true);
@@ -24842,7 +25020,7 @@ function Calendar_grid($$anchor, $$props) {
24842
25020
  append($$anchor, fragment_1);
24843
25021
  };
24844
25022
  var alternate = ($$anchor) => {
24845
- var table = root$34();
25023
+ var table = root$35();
24846
25024
  attribute_effect(table, () => ({ ...get$2(mergedProps) }));
24847
25025
  snippet(child(table), () => children() ?? noop$1);
24848
25026
  reset(table);
@@ -24873,7 +25051,7 @@ var rest_excludes$22 = new Set([
24873
25051
  "ref",
24874
25052
  "id"
24875
25053
  ]);
24876
- var root$33 = /* @__PURE__ */ from_html(`<tbody><!></tbody>`);
25054
+ var root$34 = /* @__PURE__ */ from_html(`<tbody><!></tbody>`);
24877
25055
  function Calendar_grid_body($$anchor, $$props) {
24878
25056
  const uid = props_id();
24879
25057
  push($$props, true);
@@ -24921,7 +25099,7 @@ function Calendar_grid_body($$anchor, $$props) {
24921
25099
  append($$anchor, fragment_1);
24922
25100
  };
24923
25101
  var alternate = ($$anchor) => {
24924
- var tbody = root$33();
25102
+ var tbody = root$34();
24925
25103
  attribute_effect(tbody, () => ({ ...get$2(mergedProps) }));
24926
25104
  snippet(child(tbody), () => children() ?? noop$1);
24927
25105
  reset(tbody);
@@ -24954,7 +25132,7 @@ var rest_excludes$21 = new Set([
24954
25132
  "date",
24955
25133
  "month"
24956
25134
  ]);
24957
- var root$32 = /* @__PURE__ */ from_html(`<td><!></td>`);
25135
+ var root$33 = /* @__PURE__ */ from_html(`<td><!></td>`);
24958
25136
  function Calendar_cell($$anchor, $$props) {
24959
25137
  const uid = props_id();
24960
25138
  push($$props, true);
@@ -25025,7 +25203,7 @@ function Calendar_cell($$anchor, $$props) {
25025
25203
  append($$anchor, fragment_1);
25026
25204
  };
25027
25205
  var alternate = ($$anchor) => {
25028
- var td = root$32();
25206
+ var td = root$33();
25029
25207
  attribute_effect(td, () => ({ ...get$2(mergedProps) }));
25030
25208
  snippet(child(td), () => children() ?? noop$1, () => cellState.snippetProps);
25031
25209
  reset(td);
@@ -25058,7 +25236,7 @@ var rest_excludes$20 = new Set([
25058
25236
  "ref",
25059
25237
  "id"
25060
25238
  ]);
25061
- var root$31 = /* @__PURE__ */ from_html(`<thead><!></thead>`);
25239
+ var root$32 = /* @__PURE__ */ from_html(`<thead><!></thead>`);
25062
25240
  function Calendar_grid_head($$anchor, $$props) {
25063
25241
  const uid = props_id();
25064
25242
  push($$props, true);
@@ -25106,7 +25284,7 @@ function Calendar_grid_head($$anchor, $$props) {
25106
25284
  append($$anchor, fragment_1);
25107
25285
  };
25108
25286
  var alternate = ($$anchor) => {
25109
- var thead = root$31();
25287
+ var thead = root$32();
25110
25288
  attribute_effect(thead, () => ({ ...get$2(mergedProps) }));
25111
25289
  snippet(child(thead), () => children() ?? noop$1);
25112
25290
  reset(thead);
@@ -25137,7 +25315,7 @@ var rest_excludes$19 = new Set([
25137
25315
  "ref",
25138
25316
  "id"
25139
25317
  ]);
25140
- var root$30 = /* @__PURE__ */ from_html(`<th><!></th>`);
25318
+ var root$31 = /* @__PURE__ */ from_html(`<th><!></th>`);
25141
25319
  function Calendar_head_cell($$anchor, $$props) {
25142
25320
  const uid = props_id();
25143
25321
  push($$props, true);
@@ -25185,7 +25363,7 @@ function Calendar_head_cell($$anchor, $$props) {
25185
25363
  append($$anchor, fragment_1);
25186
25364
  };
25187
25365
  var alternate = ($$anchor) => {
25188
- var th = root$30();
25366
+ var th = root$31();
25189
25367
  attribute_effect(th, () => ({ ...get$2(mergedProps) }));
25190
25368
  snippet(child(th), () => children() ?? noop$1);
25191
25369
  reset(th);
@@ -25216,7 +25394,7 @@ var rest_excludes$18 = new Set([
25216
25394
  "ref",
25217
25395
  "id"
25218
25396
  ]);
25219
- var root$29 = /* @__PURE__ */ from_html(`<tr><!></tr>`);
25397
+ var root$30 = /* @__PURE__ */ from_html(`<tr><!></tr>`);
25220
25398
  function Calendar_grid_row($$anchor, $$props) {
25221
25399
  const uid = props_id();
25222
25400
  push($$props, true);
@@ -25264,7 +25442,7 @@ function Calendar_grid_row($$anchor, $$props) {
25264
25442
  append($$anchor, fragment_1);
25265
25443
  };
25266
25444
  var alternate = ($$anchor) => {
25267
- var tr = root$29();
25445
+ var tr = root$30();
25268
25446
  attribute_effect(tr, () => ({ ...get$2(mergedProps) }));
25269
25447
  snippet(child(tr), () => children() ?? noop$1);
25270
25448
  reset(tr);
@@ -25295,7 +25473,7 @@ var rest_excludes$17 = new Set([
25295
25473
  "ref",
25296
25474
  "id"
25297
25475
  ]);
25298
- var root$28 = /* @__PURE__ */ from_html(`<header><!></header>`);
25476
+ var root$29 = /* @__PURE__ */ from_html(`<header><!></header>`);
25299
25477
  function Calendar_header($$anchor, $$props) {
25300
25478
  const uid = props_id();
25301
25479
  push($$props, true);
@@ -25343,7 +25521,7 @@ function Calendar_header($$anchor, $$props) {
25343
25521
  append($$anchor, fragment_1);
25344
25522
  };
25345
25523
  var alternate = ($$anchor) => {
25346
- var header = root$28();
25524
+ var header = root$29();
25347
25525
  attribute_effect(header, () => ({ ...get$2(mergedProps) }));
25348
25526
  snippet(child(header), () => children() ?? noop$1);
25349
25527
  reset(header);
@@ -25374,7 +25552,7 @@ var rest_excludes$16 = new Set([
25374
25552
  "ref",
25375
25553
  "id"
25376
25554
  ]);
25377
- var root$27 = /* @__PURE__ */ from_html(`<div><!></div>`);
25555
+ var root$28 = /* @__PURE__ */ from_html(`<div><!></div>`);
25378
25556
  function Calendar_heading($$anchor, $$props) {
25379
25557
  const uid = props_id();
25380
25558
  push($$props, true);
@@ -25425,7 +25603,7 @@ function Calendar_heading($$anchor, $$props) {
25425
25603
  append($$anchor, fragment_1);
25426
25604
  };
25427
25605
  var alternate_1 = ($$anchor) => {
25428
- var div = root$27();
25606
+ var div = root$28();
25429
25607
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
25430
25608
  var node_2 = child(div);
25431
25609
  var consequent_1 = ($$anchor) => {
@@ -25471,7 +25649,7 @@ var rest_excludes$15 = new Set([
25471
25649
  "ref",
25472
25650
  "tabindex"
25473
25651
  ]);
25474
- var root$26 = /* @__PURE__ */ from_html(`<button><!></button>`);
25652
+ var root$27 = /* @__PURE__ */ from_html(`<button><!></button>`);
25475
25653
  function Calendar_next_button($$anchor, $$props) {
25476
25654
  const uid = props_id();
25477
25655
  push($$props, true);
@@ -25526,7 +25704,7 @@ function Calendar_next_button($$anchor, $$props) {
25526
25704
  append($$anchor, fragment_1);
25527
25705
  };
25528
25706
  var alternate = ($$anchor) => {
25529
- var button = root$26();
25707
+ var button = root$27();
25530
25708
  attribute_effect(button, () => ({ ...get$2(mergedProps) }));
25531
25709
  snippet(child(button), () => children() ?? noop$1);
25532
25710
  reset(button);
@@ -25559,7 +25737,7 @@ var rest_excludes$14 = new Set([
25559
25737
  "ref",
25560
25738
  "tabindex"
25561
25739
  ]);
25562
- var root$25 = /* @__PURE__ */ from_html(`<button><!></button>`);
25740
+ var root$26 = /* @__PURE__ */ from_html(`<button><!></button>`);
25563
25741
  function Calendar_prev_button($$anchor, $$props) {
25564
25742
  const uid = props_id();
25565
25743
  push($$props, true);
@@ -25614,7 +25792,7 @@ function Calendar_prev_button($$anchor, $$props) {
25614
25792
  append($$anchor, fragment_1);
25615
25793
  };
25616
25794
  var alternate = ($$anchor) => {
25617
- var button = root$25();
25795
+ var button = root$26();
25618
25796
  attribute_effect(button, () => ({ ...get$2(mergedProps) }));
25619
25797
  snippet(child(button), () => children() ?? noop$1);
25620
25798
  reset(button);
@@ -25643,7 +25821,7 @@ var rest_excludes$13 = new Set([
25643
25821
  "$$host",
25644
25822
  "value"
25645
25823
  ]);
25646
- var root$24 = /* @__PURE__ */ from_html(`<input/>`);
25824
+ var root$25 = /* @__PURE__ */ from_html(`<input/>`);
25647
25825
  function Hidden_input($$anchor, $$props) {
25648
25826
  push($$props, true);
25649
25827
  let value = prop($$props, "value", 15), restProps = /* @__PURE__ */ rest_props($$props, rest_excludes$13);
@@ -25669,7 +25847,7 @@ function Hidden_input($$anchor, $$props) {
25669
25847
  var fragment = comment();
25670
25848
  var node = first_child(fragment);
25671
25849
  var consequent = ($$anchor) => {
25672
- var input = root$24();
25850
+ var input = root$25();
25673
25851
  attribute_effect(input, () => ({
25674
25852
  ...get$2(mergedProps),
25675
25853
  value: value()
@@ -25677,7 +25855,7 @@ function Hidden_input($$anchor, $$props) {
25677
25855
  append($$anchor, input);
25678
25856
  };
25679
25857
  var alternate = ($$anchor) => {
25680
- var input_1 = root$24();
25858
+ var input_1 = root$25();
25681
25859
  attribute_effect(input_1, () => ({ ...get$2(mergedProps) }), void 0, void 0, void 0, void 0, true);
25682
25860
  bind_value(input_1, value);
25683
25861
  append($$anchor, input_1);
@@ -27990,7 +28168,7 @@ var rest_excludes$11 = new Set([
27990
28168
  "tooltip",
27991
28169
  "contentPointerEvents"
27992
28170
  ]);
27993
- var root$23 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
28171
+ var root$24 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
27994
28172
  function Popper_layer_inner($$anchor, $$props) {
27995
28173
  push($$props, true);
27996
28174
  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 +28446,7 @@ function Popper_layer_inner($$anchor, $$props) {
28268
28446
  const content = ($$anchor, $$arg0) => {
28269
28447
  let floatingProps = () => $$arg0?.().props;
28270
28448
  let wrapperProps = () => $$arg0?.().wrapperProps;
28271
- var fragment_1 = root$23();
28449
+ var fragment_1 = root$24();
28272
28450
  var node = first_child(fragment_1);
28273
28451
  var consequent = ($$anchor) => {
28274
28452
  Scroll_lock($$anchor, { get preventScroll() {
@@ -30632,8 +30810,8 @@ var rest_excludes$8 = new Set([
30632
30810
  "children",
30633
30811
  "child"
30634
30812
  ]);
30635
- var root$22 = /* @__PURE__ */ from_html(`<div><!></div>`);
30636
- var root_1$9 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
30813
+ var root$23 = /* @__PURE__ */ from_html(`<div><!></div>`);
30814
+ var root_1$10 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
30637
30815
  function Date_field_input($$anchor, $$props) {
30638
30816
  const uid = props_id();
30639
30817
  push($$props, true);
@@ -30681,7 +30859,7 @@ function Date_field_input($$anchor, $$props) {
30681
30859
  flushSync();
30682
30860
  }
30683
30861
  };
30684
- var fragment = root_1$9();
30862
+ var fragment = root_1$10();
30685
30863
  var node = first_child(fragment);
30686
30864
  var consequent = ($$anchor) => {
30687
30865
  var fragment_1 = comment();
@@ -30692,7 +30870,7 @@ function Date_field_input($$anchor, $$props) {
30692
30870
  append($$anchor, fragment_1);
30693
30871
  };
30694
30872
  var alternate = ($$anchor) => {
30695
- var div = root$22();
30873
+ var div = root$23();
30696
30874
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
30697
30875
  snippet(child(div), () => children() ?? noop$1, () => ({ segments: inputState.root.segmentContents }));
30698
30876
  reset(div);
@@ -30725,7 +30903,7 @@ var rest_excludes$7 = new Set([
30725
30903
  "children",
30726
30904
  "child"
30727
30905
  ]);
30728
- var root$21 = /* @__PURE__ */ from_html(`<div><!></div>`);
30906
+ var root$22 = /* @__PURE__ */ from_html(`<div><!></div>`);
30729
30907
  function Date_field_label($$anchor, $$props) {
30730
30908
  const uid = props_id();
30731
30909
  push($$props, true);
@@ -30773,7 +30951,7 @@ function Date_field_label($$anchor, $$props) {
30773
30951
  append($$anchor, fragment_1);
30774
30952
  };
30775
30953
  var alternate = ($$anchor) => {
30776
- var div = root$21();
30954
+ var div = root$22();
30777
30955
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
30778
30956
  snippet(child(div), () => children() ?? noop$1);
30779
30957
  reset(div);
@@ -30805,7 +30983,7 @@ var rest_excludes$6 = new Set([
30805
30983
  "child",
30806
30984
  "part"
30807
30985
  ]);
30808
- var root$20 = /* @__PURE__ */ from_html(`<span><!></span>`);
30986
+ var root$21 = /* @__PURE__ */ from_html(`<span><!></span>`);
30809
30987
  function Date_field_segment($$anchor, $$props) {
30810
30988
  const uid = props_id();
30811
30989
  push($$props, true);
@@ -30860,7 +31038,7 @@ function Date_field_segment($$anchor, $$props) {
30860
31038
  append($$anchor, fragment_1);
30861
31039
  };
30862
31040
  var alternate = ($$anchor) => {
30863
- var span = root$20();
31041
+ var span = root$21();
30864
31042
  attribute_effect(span, () => ({ ...get$2(mergedProps) }));
30865
31043
  snippet(child(span), () => children() ?? noop$1);
30866
31044
  reset(span);
@@ -31882,7 +32060,7 @@ var rest_excludes$5 = new Set([
31882
32060
  "id",
31883
32061
  "ref"
31884
32062
  ]);
31885
- var root$19 = /* @__PURE__ */ from_html(`<div><!></div>`);
32063
+ var root$20 = /* @__PURE__ */ from_html(`<div><!></div>`);
31886
32064
  function Date_picker_calendar($$anchor, $$props) {
31887
32065
  const uid = props_id();
31888
32066
  push($$props, true);
@@ -31962,7 +32140,7 @@ function Date_picker_calendar($$anchor, $$props) {
31962
32140
  append($$anchor, fragment_1);
31963
32141
  };
31964
32142
  var alternate = ($$anchor) => {
31965
- var div = root$19();
32143
+ var div = root$20();
31966
32144
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
31967
32145
  snippet(child(div), () => children() ?? noop$1, () => calendarState.snippetProps);
31968
32146
  reset(div);
@@ -32002,7 +32180,7 @@ var rest_excludes$4 = new Set([
32002
32180
  "customAnchor",
32003
32181
  "style"
32004
32182
  ]);
32005
- var root$18 = /* @__PURE__ */ from_html(`<div><div><!></div></div>`);
32183
+ var root$19 = /* @__PURE__ */ from_html(`<div><div><!></div></div>`);
32006
32184
  function Popover_content($$anchor, $$props) {
32007
32185
  const uid = props_id();
32008
32186
  push($$props, true);
@@ -32137,7 +32315,7 @@ function Popover_content($$anchor, $$props) {
32137
32315
  append($$anchor, fragment_3);
32138
32316
  };
32139
32317
  var alternate = ($$anchor) => {
32140
- var div = root$18();
32318
+ var div = root$19();
32141
32319
  attribute_effect(div, () => ({ ...wrapperProps() }));
32142
32320
  var div_1 = child(div);
32143
32321
  attribute_effect(div_1, () => ({ ...get$2(finalProps) }));
@@ -32207,7 +32385,7 @@ function Popover_content($$anchor, $$props) {
32207
32385
  append($$anchor, fragment_6);
32208
32386
  };
32209
32387
  var alternate_1 = ($$anchor) => {
32210
- var div_2 = root$18();
32388
+ var div_2 = root$19();
32211
32389
  attribute_effect(div_2, () => ({ ...wrapperProps() }));
32212
32390
  var div_3 = child(div_2);
32213
32391
  attribute_effect(div_3, () => ({ ...get$2(finalProps) }));
@@ -32338,7 +32516,7 @@ var rest_excludes$2 = new Set([
32338
32516
  "openDelay",
32339
32517
  "closeDelay"
32340
32518
  ]);
32341
- var root$17 = /* @__PURE__ */ from_html(`<button><!></button>`);
32519
+ var root$18 = /* @__PURE__ */ from_html(`<button><!></button>`);
32342
32520
  function Popover_trigger($$anchor, $$props) {
32343
32521
  const uid = props_id();
32344
32522
  push($$props, true);
@@ -32433,7 +32611,7 @@ function Popover_trigger($$anchor, $$props) {
32433
32611
  append($$anchor, fragment_2);
32434
32612
  };
32435
32613
  var alternate = ($$anchor) => {
32436
- var button = root$17();
32614
+ var button = root$18();
32437
32615
  attribute_effect(button, () => ({ ...get$2(mergedProps) }));
32438
32616
  snippet(child(button), () => children() ?? noop$1);
32439
32617
  reset(button);
@@ -32513,8 +32691,8 @@ create_custom_element(Date_picker_trigger, {
32513
32691
  }, [], [], { mode: "open" });
32514
32692
  //#endregion
32515
32693
  //#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);
32694
+ var root$17 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
32695
+ var root_1$9 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
32518
32696
  function DatePicker_1($$anchor, $$props) {
32519
32697
  push($$props, true);
32520
32698
  let dateString = prop($$props, "dateString", 15), labelClass = prop($$props, "labelClass", 7), inputClass = prop($$props, "inputClass", 7), labelText = prop($$props, "labelText", 7);
@@ -32571,7 +32749,7 @@ function DatePicker_1($$anchor, $$props) {
32571
32749
  set(date, $$value, true);
32572
32750
  },
32573
32751
  children: ($$anchor, $$slotProps) => {
32574
- var fragment_1 = root_1$8();
32752
+ var fragment_1 = root_1$9();
32575
32753
  var node_1 = first_child(fragment_1);
32576
32754
  component(node_1, () => Date_field_label, ($$anchor, DatePicker_Label) => {
32577
32755
  DatePicker_Label($$anchor, {
@@ -32601,7 +32779,7 @@ function DatePicker_1($$anchor, $$props) {
32601
32779
  {
32602
32780
  const children = ($$anchor, $$arg0) => {
32603
32781
  let segments = () => $$arg0?.().segments;
32604
- var fragment_4 = root$16();
32782
+ var fragment_4 = root$17();
32605
32783
  var node_5 = first_child(fragment_4);
32606
32784
  each(node_5, 17, segments, index$1, ($$anchor, $$item) => {
32607
32785
  let part = () => get$2($$item).part;
@@ -32652,12 +32830,12 @@ function DatePicker_1($$anchor, $$props) {
32652
32830
  const children = ($$anchor, $$arg0) => {
32653
32831
  let months = () => $$arg0?.().months;
32654
32832
  let weekdays = () => $$arg0?.().weekdays;
32655
- var fragment_8 = root$16();
32833
+ var fragment_8 = root$17();
32656
32834
  var node_10 = first_child(fragment_8);
32657
32835
  component(node_10, () => Calendar_header, ($$anchor, DatePicker_Header) => {
32658
32836
  DatePicker_Header($$anchor, {
32659
32837
  children: ($$anchor, $$slotProps) => {
32660
- var fragment_9 = root_1$8();
32838
+ var fragment_9 = root_1$9();
32661
32839
  var node_11 = first_child(fragment_9);
32662
32840
  component(node_11, () => Calendar_prev_button, ($$anchor, DatePicker_PrevButton) => {
32663
32841
  DatePicker_PrevButton($$anchor, { class: "go-datepicker-previous" });
@@ -32679,7 +32857,7 @@ function DatePicker_1($$anchor, $$props) {
32679
32857
  component(first_child(fragment_10), () => Calendar_grid, ($$anchor, DatePicker_Grid) => {
32680
32858
  DatePicker_Grid($$anchor, {
32681
32859
  children: ($$anchor, $$slotProps) => {
32682
- var fragment_11 = root$16();
32860
+ var fragment_11 = root$17();
32683
32861
  var node_16 = first_child(fragment_11);
32684
32862
  component(node_16, () => Calendar_grid_head, ($$anchor, DatePicker_GridHead) => {
32685
32863
  DatePicker_GridHead($$anchor, {
@@ -32807,10 +32985,10 @@ var rest_excludes = new Set([
32807
32985
  "inputClass",
32808
32986
  "host"
32809
32987
  ]);
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);
32988
+ var root$16 = /* @__PURE__ */ from_html(`<span class="go-field-star" aria-hidden="true">*</span>`);
32989
+ var root_1$8 = /* @__PURE__ */ from_html(` <!>`, 1);
32990
+ var root_2$7 = /* @__PURE__ */ from_html(`<label><!></label> <input/>`, 1);
32991
+ var root_3$7 = /* @__PURE__ */ from_html(`<label><!></label> <textarea></textarea>`, 1);
32814
32992
  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
32993
  var root_5$1 = /* @__PURE__ */ from_html(`<label><!></label> <input/> <!>`, 1);
32816
32994
  var root_6$1 = /* @__PURE__ */ from_html(`<label><input/> <span class="go-checkbox-label"><!></span></label>`);
@@ -32829,11 +33007,11 @@ function InputAndLabel($$anchor, $$props) {
32829
33007
  push($$props, true);
32830
33008
  const labelText = ($$anchor) => {
32831
33009
  next();
32832
- var fragment = root_1$7();
33010
+ var fragment = root_1$8();
32833
33011
  var text = first_child(fragment);
32834
33012
  var node = sibling(text);
32835
33013
  var consequent = ($$anchor) => {
32836
- append($$anchor, root$15());
33014
+ append($$anchor, root$16());
32837
33015
  };
32838
33016
  if_block(node, ($$render) => {
32839
33017
  if (field().required) $$render(consequent);
@@ -32842,7 +33020,7 @@ function InputAndLabel($$anchor, $$props) {
32842
33020
  append($$anchor, fragment);
32843
33021
  };
32844
33022
  const input = ($$anchor) => {
32845
- var fragment_1 = root_2$6();
33023
+ var fragment_1 = root_2$7();
32846
33024
  var label_1 = first_child(fragment_1);
32847
33025
  labelText(child(label_1));
32848
33026
  reset(label_1);
@@ -32863,7 +33041,7 @@ function InputAndLabel($$anchor, $$props) {
32863
33041
  append($$anchor, fragment_1);
32864
33042
  };
32865
33043
  const textarea = ($$anchor) => {
32866
- var fragment_2 = root_3$6();
33044
+ var fragment_2 = root_3$7();
32867
33045
  var label_2 = first_child(fragment_2);
32868
33046
  labelText(child(label_2));
32869
33047
  reset(label_2);
@@ -33233,10 +33411,10 @@ create_custom_element(InputAndLabel, {
33233
33411
  }, [], [], { mode: "open" });
33234
33412
  //#endregion
33235
33413
  //#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);
33414
+ var root$15 = /* @__PURE__ */ from_html(`<span> </span>`);
33415
+ var root_1$7 = /* @__PURE__ */ from_html(`<li> </li>`);
33416
+ var root_2$6 = /* @__PURE__ */ from_html(`<ul class="go-field-errors"></ul>`);
33417
+ var root_3$6 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
33240
33418
  function Field($$anchor, $$props) {
33241
33419
  push($$props, true);
33242
33420
  let key = prop($$props, "key", 7), required = prop($$props, "required", 7, false), labelClass = prop($$props, "labelClass", 7), inputClass = prop($$props, "inputClass", 7);
@@ -33294,7 +33472,7 @@ function Field($$anchor, $$props) {
33294
33472
  flushSync();
33295
33473
  }
33296
33474
  };
33297
- var fragment = root_3$5();
33475
+ var fragment = root_3$6();
33298
33476
  var node = first_child(fragment);
33299
33477
  InputAndLabel(node, {
33300
33478
  get describedByIds() {
@@ -33316,7 +33494,7 @@ function Field($$anchor, $$props) {
33316
33494
  });
33317
33495
  var node_1 = sibling(node, 2);
33318
33496
  var consequent = ($$anchor) => {
33319
- var span = root$14();
33497
+ var span = root$15();
33320
33498
  var text = child(span, true);
33321
33499
  reset(span);
33322
33500
  template_effect(() => {
@@ -33330,9 +33508,9 @@ function Field($$anchor, $$props) {
33330
33508
  });
33331
33509
  var node_2 = sibling(node_1, 2);
33332
33510
  var consequent_1 = ($$anchor) => {
33333
- var ul = root_2$5();
33511
+ var ul = root_2$6();
33334
33512
  each(ul, 21, () => get$2(allErrors), index$1, ($$anchor, error) => {
33335
- var li = root_1$6();
33513
+ var li = root_1$7();
33336
33514
  var text_1 = child(li, true);
33337
33515
  reset(li);
33338
33516
  template_effect(() => set_text(text_1, get$2(error)));
@@ -33372,7 +33550,7 @@ customElements.define("go-field", create_custom_element(Field, {
33372
33550
  }, [], ["getField"]));
33373
33551
  //#endregion
33374
33552
  //#region src/components/forms/ui/generic/AllFields.svelte
33375
- var root$13 = /* @__PURE__ */ from_html(`<go-field></go-field>`, 2);
33553
+ var root$14 = /* @__PURE__ */ from_html(`<go-field></go-field>`, 2);
33376
33554
  function AllFields($$anchor, $$props) {
33377
33555
  push($$props, true);
33378
33556
  let _details = getDetails$1($$props.$$host);
@@ -33380,7 +33558,7 @@ function AllFields($$anchor, $$props) {
33380
33558
  let allFields = /* @__PURE__ */ user_derived(() => get$2(details) ? Forms.getFormFields(get$2(details)?.formId) : []);
33381
33559
  var fragment = comment();
33382
33560
  each(first_child(fragment), 17, () => get$2(allFields), (field) => field.key, ($$anchor, field) => {
33383
- var go_field = root$13();
33561
+ var go_field = root$14();
33384
33562
  template_effect(() => set_custom_element_data(go_field, "key", get$2(field).key));
33385
33563
  template_effect(() => set_custom_element_data(go_field, "required", get$2(field).required));
33386
33564
  append($$anchor, go_field);
@@ -33391,10 +33569,10 @@ function AllFields($$anchor, $$props) {
33391
33569
  customElements.define("go-all-fields", create_custom_element(AllFields, {}, [], []));
33392
33570
  //#endregion
33393
33571
  //#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>`);
33572
+ var root$13 = /* @__PURE__ */ from_html(`<p aria-hidden="true"> </p>`);
33573
+ var root_1$6 = /* @__PURE__ */ from_html(`<li> </li>`);
33574
+ var root_2$5 = /* @__PURE__ */ from_html(`<ul class="go-error-feedback-api-errors"></ul>`);
33575
+ var root_3$5 = /* @__PURE__ */ from_html(`<div><p aria-live="assertive" class="sr-only"><!></p> <!> <!></div>`);
33398
33576
  function ErrorsFeedback($$anchor, $$props) {
33399
33577
  push($$props, true);
33400
33578
  const _details = getDetails$1($$props.$$host);
@@ -33415,7 +33593,7 @@ function ErrorsFeedback($$anchor, $$props) {
33415
33593
  $$props.$$host.classList.toggle("go-feedback", true);
33416
33594
  $$props.$$host.setAttribute("data-num-errors", get$2(numErrors).toString());
33417
33595
  });
33418
- var div = root_3$4();
33596
+ var div = root_3$5();
33419
33597
  var p = child(div);
33420
33598
  var node = child(p);
33421
33599
  var consequent = ($$anchor) => {
@@ -33429,7 +33607,7 @@ function ErrorsFeedback($$anchor, $$props) {
33429
33607
  reset(p);
33430
33608
  var node_1 = sibling(p, 2);
33431
33609
  var consequent_1 = ($$anchor) => {
33432
- var p_1 = root$12();
33610
+ var p_1 = root$13();
33433
33611
  var text_1 = child(p_1, true);
33434
33612
  reset(p_1);
33435
33613
  template_effect(($0) => set_text(text_1, $0), [() => shop.t("forms.errorSummary", { count: get$2(errorsRealtime) })]);
@@ -33440,9 +33618,9 @@ function ErrorsFeedback($$anchor, $$props) {
33440
33618
  });
33441
33619
  var node_2 = sibling(node_1, 2);
33442
33620
  var consequent_2 = ($$anchor) => {
33443
- var ul = root_2$4();
33621
+ var ul = root_2$5();
33444
33622
  each(ul, 21, () => get$2(details)?.apiErrors, index$1, ($$anchor, error) => {
33445
- var li = root_1$5();
33623
+ var li = root_1$6();
33446
33624
  var text_2 = child(li, true);
33447
33625
  reset(li);
33448
33626
  template_effect(() => set_text(text_2, get$2(error)));
@@ -33462,9 +33640,9 @@ function ErrorsFeedback($$anchor, $$props) {
33462
33640
  customElements.define("go-errors-feedback", create_custom_element(ErrorsFeedback, {}, [], []));
33463
33641
  //#endregion
33464
33642
  //#region src/components/forms/ui/generic/FormFeedback.svelte
33465
- var root$11 = /* @__PURE__ */ from_html(`<div class="go-form-feedback"><!></div>`);
33643
+ var root$12 = /* @__PURE__ */ from_html(`<div class="go-form-feedback"><!></div>`);
33466
33644
  function FormFeedback($$anchor, $$props) {
33467
- var div = root$11();
33645
+ var div = root$12();
33468
33646
  slot(child(div), $$props, "default", {}, null);
33469
33647
  reset(div);
33470
33648
  append($$anchor, div);
@@ -33498,7 +33676,7 @@ customElements.define("go-submit", create_custom_element(Submit, { buttonClass:
33498
33676
  } }, [], []));
33499
33677
  //#endregion
33500
33678
  //#region src/components/forms/ui/generic/SuccessFeedback.svelte
33501
- var root$10 = /* @__PURE__ */ from_html(`<div aria-live="assertive"> </div>`);
33679
+ var root$11 = /* @__PURE__ */ from_html(`<div aria-live="assertive"> </div>`);
33502
33680
  function SuccessFeedback($$anchor, $$props) {
33503
33681
  push($$props, true);
33504
33682
  const _details = getDetails$1($$props.$$host);
@@ -33506,7 +33684,7 @@ function SuccessFeedback($$anchor, $$props) {
33506
33684
  var fragment = comment();
33507
33685
  var node = first_child(fragment);
33508
33686
  var consequent = ($$anchor) => {
33509
- var div = root$10();
33687
+ var div = root$11();
33510
33688
  let classes;
33511
33689
  var text = child(div, true);
33512
33690
  reset(div);
@@ -35881,10 +36059,10 @@ customElements.define("go-order", create_custom_element(Order, { token: {
35881
36059
  } }, [], ["orderDetails"]));
35882
36060
  //#endregion
35883
36061
  //#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>`);
36062
+ 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);
36063
+ var root_1$5 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities"> </span>`, 1);
36064
+ var root_2$4 = /* @__PURE__ */ from_html(`<a aria-label="iCal link"> </a>`);
36065
+ 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
36066
  function Event$1($$anchor, $$props) {
35889
36067
  push($$props, true);
35890
36068
  let item = prop($$props, "item", 7), orderDetails = prop($$props, "orderDetails", 7);
@@ -35904,7 +36082,7 @@ function Event$1($$anchor, $$props) {
35904
36082
  flushSync();
35905
36083
  }
35906
36084
  };
35907
- var li = root_3$3();
36085
+ var li = root_3$4();
35908
36086
  var article = child(li);
35909
36087
  var ul = child(article);
35910
36088
  var li_1 = sibling(child(ul), 2);
@@ -35913,7 +36091,7 @@ function Event$1($$anchor, $$props) {
35913
36091
  reset(span);
35914
36092
  var node = sibling(span, 2);
35915
36093
  var consequent = ($$anchor) => {
35916
- var fragment = root$9();
36094
+ var fragment = root$10();
35917
36095
  var span_1 = first_child(fragment);
35918
36096
  var text_1 = child(span_1, true);
35919
36097
  reset(span_1);
@@ -35934,7 +36112,7 @@ function Event$1($$anchor, $$props) {
35934
36112
  });
35935
36113
  var node_1 = sibling(node, 2);
35936
36114
  each(node_1, 17, () => item().attributes.quantities, (scalePrice) => scalePrice.id, ($$anchor, scalePrice) => {
35937
- var fragment_1 = root_1$4();
36115
+ var fragment_1 = root_1$5();
35938
36116
  var span_3 = sibling(first_child(fragment_1), 2);
35939
36117
  var text_3 = child(span_3);
35940
36118
  reset(span_3);
@@ -35951,7 +36129,7 @@ function Event$1($$anchor, $$props) {
35951
36129
  var li_3 = sibling(li_2, 4);
35952
36130
  var node_2 = child(li_3);
35953
36131
  var consequent_1 = ($$anchor) => {
35954
- var a_1 = root_2$3();
36132
+ var a_1 = root_2$4();
35955
36133
  var text_6 = child(a_1, true);
35956
36134
  reset(a_1);
35957
36135
  template_effect(($0) => {
@@ -35986,10 +36164,10 @@ create_custom_element(Event$1, {
35986
36164
  }, [], [], { mode: "open" });
35987
36165
  //#endregion
35988
36166
  //#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);
36167
+ var root$9 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities" data-testid="order-sub-ticket"> </span>`, 1);
36168
+ var root_1$4 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span> <span class="go-cart-item-time"> </span>`, 1);
36169
+ var root_2$3 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span>`);
36170
+ var root_3$3 = /* @__PURE__ */ from_html(`<!> <br/> <a class="go-ticket-download" target="_blank" rel="noopener noreferrer"> </a>`, 1);
35993
36171
  var root_4$2 = /* @__PURE__ */ from_html(`<br/> <a class="go-ticket-personalization"> </a>`, 1);
35994
36172
  var root_5 = /* @__PURE__ */ from_html(`<a aria-label="passbook link"><img alt="apple wallet icon"/></a>`);
35995
36173
  var root_6 = /* @__PURE__ */ from_html(`<a aria-label="iCal link"> </a>`);
@@ -36034,7 +36212,7 @@ function TicketSale($$anchor, $$props) {
36034
36212
  reset(span);
36035
36213
  var node_2 = sibling(span, 2);
36036
36214
  each(node_2, 17, () => get$2(subTicketSales), (sub) => sub.id, ($$anchor, sub) => {
36037
- var fragment_2 = root$8();
36215
+ var fragment_2 = root$9();
36038
36216
  var span_1 = sibling(first_child(fragment_2), 2);
36039
36217
  var text_1 = child(span_1);
36040
36218
  reset(span_1);
@@ -36044,10 +36222,10 @@ function TicketSale($$anchor, $$props) {
36044
36222
  var node_3 = sibling(node_2, 2);
36045
36223
  var consequent_2 = ($$anchor) => {
36046
36224
  const barcodeId = /* @__PURE__ */ user_derived(() => item().attributes.barcodes[index]?.id);
36047
- var fragment_3 = root_3$2();
36225
+ var fragment_3 = root_3$3();
36048
36226
  var node_4 = first_child(fragment_3);
36049
36227
  var consequent = ($$anchor) => {
36050
- var fragment_4 = root_1$3();
36228
+ var fragment_4 = root_1$4();
36051
36229
  var span_2 = first_child(fragment_4);
36052
36230
  var text_2 = child(span_2, true);
36053
36231
  reset(span_2);
@@ -36064,7 +36242,7 @@ function TicketSale($$anchor, $$props) {
36064
36242
  append($$anchor, fragment_4);
36065
36243
  };
36066
36244
  var consequent_1 = ($$anchor) => {
36067
- var span_4 = root_2$2();
36245
+ var span_4 = root_2$3();
36068
36246
  var text_4 = child(span_4, true);
36069
36247
  reset(span_4);
36070
36248
  template_effect(($0) => set_text(text_4, $0), [() => formatDate(item().attributes.start_time, {
@@ -36211,6 +36389,96 @@ create_custom_element(TicketSale, {
36211
36389
  orderDetails: {}
36212
36390
  }, [], [], { mode: "open" });
36213
36391
  //#endregion
36392
+ //#region src/components/order/components/subcomponents/breakdown/items/Tour.svelte
36393
+ 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);
36394
+ var root_1$3 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities"> </span>`, 1);
36395
+ var root_2$2 = /* @__PURE__ */ from_html(`<a aria-label="iCal link"> </a>`);
36396
+ 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>`);
36397
+ function Tour($$anchor, $$props) {
36398
+ push($$props, true);
36399
+ let item = prop($$props, "item", 7);
36400
+ const priceRows = /* @__PURE__ */ user_derived(() => (item().attributes.prices ?? []).filter((row) => row.title && row.quantity != null));
36401
+ var $$exports = {
36402
+ get item() {
36403
+ return item();
36404
+ },
36405
+ set item($$value) {
36406
+ item($$value);
36407
+ flushSync();
36408
+ }
36409
+ };
36410
+ var li = root_3$2();
36411
+ var article = child(li);
36412
+ var ul = child(article);
36413
+ var li_1 = sibling(child(ul), 2);
36414
+ var span = child(li_1);
36415
+ var text = child(span, true);
36416
+ reset(span);
36417
+ var span_1 = sibling(span, 2);
36418
+ var text_1 = child(span_1, true);
36419
+ reset(span_1);
36420
+ var node = sibling(span_1, 2);
36421
+ var consequent = ($$anchor) => {
36422
+ var fragment = root$8();
36423
+ var span_2 = first_child(fragment);
36424
+ var text_2 = child(span_2, true);
36425
+ reset(span_2);
36426
+ var span_3 = sibling(span_2, 2);
36427
+ var text_3 = child(span_3, true);
36428
+ reset(span_3);
36429
+ template_effect(($0, $1) => {
36430
+ set_text(text_2, $0);
36431
+ set_text(text_3, $1);
36432
+ }, [() => formatDate(item().attributes.start_time, {
36433
+ month: "numeric",
36434
+ day: "numeric"
36435
+ }, shop.locale), () => formatTime(item().attributes.start_time)]);
36436
+ append($$anchor, fragment);
36437
+ };
36438
+ if_block(node, ($$render) => {
36439
+ if (item().attributes.start_time) $$render(consequent);
36440
+ });
36441
+ each(sibling(node, 2), 17, () => get$2(priceRows), (row) => row.title, ($$anchor, row) => {
36442
+ var fragment_1 = root_1$3();
36443
+ var span_4 = sibling(first_child(fragment_1), 2);
36444
+ var text_4 = child(span_4);
36445
+ reset(span_4);
36446
+ template_effect(() => set_text(text_4, `${get$2(row).quantity ?? ""} x ${get$2(row).title ?? ""}`));
36447
+ append($$anchor, fragment_1);
36448
+ });
36449
+ reset(li_1);
36450
+ var li_2 = sibling(li_1, 2);
36451
+ var text_5 = child(li_2, true);
36452
+ reset(li_2);
36453
+ var li_3 = sibling(li_2, 4);
36454
+ var node_2 = child(li_3);
36455
+ var consequent_1 = ($$anchor) => {
36456
+ var a = root_2$2();
36457
+ var text_6 = child(a, true);
36458
+ reset(a);
36459
+ template_effect(($0) => {
36460
+ set_attribute(a, "href", shop.apiUrl + item().attributes.ical_url);
36461
+ set_text(text_6, $0);
36462
+ }, [() => shop.t("common.calendar")]);
36463
+ append($$anchor, a);
36464
+ };
36465
+ if_block(node_2, ($$render) => {
36466
+ if (item().attributes.ical_url) $$render(consequent_1);
36467
+ });
36468
+ reset(li_3);
36469
+ reset(ul);
36470
+ reset(article);
36471
+ reset(li);
36472
+ template_effect(($0, $1) => {
36473
+ set_text(text, item().attributes.title);
36474
+ set_text(text_1, $0);
36475
+ set_text(text_5, $1);
36476
+ }, [() => shop.t("cart.item.participants", { count: item().attributes.participants }), () => formatCurrency$1(item().price_cents)]);
36477
+ append($$anchor, li);
36478
+ return pop($$exports);
36479
+ }
36480
+ create_custom_element(Tour, { item: {} }, [], [], { mode: "open" });
36481
+ //#endregion
36214
36482
  //#region src/components/order/components/subcomponents/breakdown/Breakdown.svelte
36215
36483
  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
36484
  function Breakdown($$anchor, $$props) {
@@ -36220,7 +36488,7 @@ function Breakdown($$anchor, $$props) {
36220
36488
  let order = /* @__PURE__ */ user_derived(() => get$2(orderDetails)?.order);
36221
36489
  var fragment = comment();
36222
36490
  var node = first_child(fragment);
36223
- var consequent_2 = ($$anchor) => {
36491
+ var consequent_3 = ($$anchor) => {
36224
36492
  var ol = root$7();
36225
36493
  var li = child(ol);
36226
36494
  var ul = child(li);
@@ -36260,9 +36528,15 @@ function Breakdown($$anchor, $$props) {
36260
36528
  }
36261
36529
  });
36262
36530
  };
36531
+ var consequent_2 = ($$anchor) => {
36532
+ Tour($$anchor, { get item() {
36533
+ return get$2(item);
36534
+ } });
36535
+ };
36263
36536
  if_block(node_2, ($$render) => {
36264
36537
  if (get$2(item).type === "Ticket") $$render(consequent);
36265
36538
  else if (get$2(item).type === "Event") $$render(consequent_1, 1);
36539
+ else if (get$2(item).type === "Tour") $$render(consequent_2, 2);
36266
36540
  });
36267
36541
  append($$anchor, fragment_1);
36268
36542
  });
@@ -36289,7 +36563,7 @@ function Breakdown($$anchor, $$props) {
36289
36563
  append($$anchor, ol);
36290
36564
  };
36291
36565
  if_block(node, ($$render) => {
36292
- if (get$2(order) && get$2(orderDetails)) $$render(consequent_2);
36566
+ if (get$2(order) && get$2(orderDetails)) $$render(consequent_3);
36293
36567
  });
36294
36568
  append($$anchor, fragment);
36295
36569
  pop();
@@ -37765,20 +38039,61 @@ customElements.define("go-withdrawal-form", create_custom_element(Withdrawal, {
37765
38039
  type: "Boolean"
37766
38040
  } }, [], []));
37767
38041
  //#endregion
38042
+ //#region src/go/cart.ts
38043
+ var REQUIRED = [
38044
+ "id",
38045
+ "time",
38046
+ "participants",
38047
+ "languageId",
38048
+ "totalPriceCents",
38049
+ "title"
38050
+ ];
38051
+ function validate(options) {
38052
+ for (const key of REQUIRED) if (options[key] == null || options[key] === "") throw new Error(`(go.cart.addTour) '${key}' is required`);
38053
+ if (!(options.participants > 0)) throw new Error(`(go.cart.addTour) 'participants' must be a positive number`);
38054
+ if (options.quantities) {
38055
+ const quantitiesSum = sum(Object.values(options.quantities));
38056
+ if (quantitiesSum !== options.participants) throw new Error(`(go.cart.addTour) 'quantities' must sum to 'participants' (${quantitiesSum} !== ${options.participants})`);
38057
+ }
38058
+ }
38059
+ /**
38060
+ * Adds a group-tour booking to the cart and resolves with the cart line's
38061
+ * uuid. Every call appends a NEW line — identical bookings coexist; use the
38062
+ * returned uuid to deduplicate or remove.
38063
+ *
38064
+ * Tours are not priced by the shop API: `totalPriceCents` is the
38065
+ * integrator-supplied booking total (incl. mandatory surcharges) and is
38066
+ * verified by the backend only at checkout.
38067
+ */
38068
+ async function addTour(options) {
38069
+ validate(options);
38070
+ if (!shop.cart) throw new Error("(go.cart.addTour) shop not initialized — call go.init first");
38071
+ const { time, ...attributes } = options;
38072
+ const item = createCartItem(createUITour(attributes), {
38073
+ quantity: 1,
38074
+ time
38075
+ });
38076
+ shop.cart.addItem(item);
38077
+ return item.uuid;
38078
+ }
38079
+ //#endregion
37768
38080
  //#region src/go/go.ts
37769
38081
  var initPromise = null;
37770
38082
  async function ensureShopReady() {
37771
38083
  if (initPromise) return initPromise;
37772
- if (!shop.client) throw new Error("[go.api] Shop not initialized — call go.init({ shop, api, locale }) first.");
38084
+ if (!shop.client) throw new Error("[go] Shop not initialized — call go.init({ shop, api, locale }) first.");
37773
38085
  }
38086
+ var resolveCommand = (method) => method.split(".").reduce((target, key) => target?.[key], go);
37774
38087
  async function initGo(window) {
37775
38088
  const stub = window.go;
37776
38089
  let q = stub && stub._queue || [];
37777
- console.log(q);
38090
+ 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
38091
  for (const command of q) {
37779
38092
  if (command.method === "load") continue;
37780
38093
  try {
37781
- await go[command.method](command.options);
38094
+ const fn = resolveCommand(command.method);
38095
+ if (typeof fn !== "function") throw new Error(`(go) unknown command: ${command.method}`);
38096
+ await fn(command.options);
37782
38097
  } catch (e) {
37783
38098
  console.error(e);
37784
38099
  }
@@ -37809,7 +38124,11 @@ var go = {
37809
38124
  await ensureShopReady();
37810
38125
  return shop.asyncFetch(() => shop.getOrders(params));
37811
38126
  }
37812
- }
38127
+ },
38128
+ cart: { addTour: async (options) => {
38129
+ await ensureShopReady();
38130
+ return addTour(options);
38131
+ } }
37813
38132
  };
37814
38133
  (async () => {
37815
38134
  await initGo(window);