@gomusdev/web-components 4.9.2 → 4.11.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.
@@ -6370,6 +6370,15 @@ createHTML: (html) => {
6370
6370
  return Class;
6371
6371
  }
6372
6372
  //#endregion
6373
+ //#region src/lib/helpers/locale.ts
6374
+ function warnOnInvalidLocale(locale) {
6375
+ try {
6376
+ if (Intl.NumberFormat.supportedLocalesOf(locale).length === 0) console.warn(`[go] Unknown locale "${locale}" — the browser has no locale data for it; price and date formatting will fall back to the browser default.`);
6377
+ } catch {
6378
+ console.warn(`[go] Invalid locale "${locale}" — not a valid BCP 47 language tag (use "de", "de-CH", "en", …). Price and date formatting will throw.`);
6379
+ }
6380
+ }
6381
+ //#endregion
6373
6382
  //#region src/lib/helpers/urls.ts
6374
6383
  var ANGULAR_URLS = {
6375
6384
  account: () => "/#/user/account",
@@ -11811,13 +11820,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11811
11820
  ...options
11812
11821
  }).format(zoned.toDate());
11813
11822
  }
11814
- function formatCurrency$1(priceCents) {
11815
- if (priceCents === void 0) throw Error("priceCents is required");
11816
- return new Intl.NumberFormat("de-DE", {
11817
- style: "currency",
11818
- currency: "EUR"
11819
- }).format(priceCents / 100);
11820
- }
11821
11823
  //#endregion
11822
11824
  //#region src/lib/models/ticket/UITicket.svelte.ts
11823
11825
  function isUITicket(x) {
@@ -12181,6 +12183,49 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12181
12183
  });
12182
12184
  }
12183
12185
  //#endregion
12186
+ //#region src/lib/helpers/utils.ts
12187
+ function formatCurrency(priceCents) {
12188
+ let format;
12189
+ try {
12190
+ format = new Intl.NumberFormat(shop.locale ?? "de", {
12191
+ style: "currency",
12192
+ currency: shop.currency ?? "EUR"
12193
+ });
12194
+ } catch {
12195
+ format = new Intl.NumberFormat("de", {
12196
+ style: "currency",
12197
+ currency: "EUR"
12198
+ });
12199
+ }
12200
+ return format.format((priceCents ?? 0) / 100);
12201
+ }
12202
+ /**
12203
+ * Parses a comma-separated string of IDs into an array of positive numbers.
12204
+ *
12205
+ * This function takes a string containing comma-separated values and converts
12206
+ * them into an array of positive integers. Invalid values (non-numeric, zero,
12207
+ * or negative numbers) are filtered out.
12208
+ *
12209
+ * @param ids - A comma-separated string of IDs (e.g., "1,2,3" or "10, 20, 30")
12210
+ * @returns An array of positive numbers if valid IDs are found, undefined otherwise
12211
+ *
12212
+ * @example
12213
+ * ```ts
12214
+ * parseIds("1,2,3") // Returns [1, 2, 3]
12215
+ * parseIds("10, 20, 30") // Returns [10, 20, 30] (handles whitespace)
12216
+ * parseIds("1,abc,3") // Returns [1, 3] (filters out invalid values)
12217
+ * parseIds("0,-1,2") // Returns [2] (filters out zero and negative numbers)
12218
+ * parseIds("") // Returns undefined
12219
+ * parseIds(undefined) // Returns undefined
12220
+ * parseIds("abc,def") // Returns undefined (no valid IDs)
12221
+ * ```
12222
+ */
12223
+ function parseIds(ids) {
12224
+ if (!ids) return;
12225
+ const parsed = ids.split(",").map((id) => id.trim()).map(Number).filter((num) => !isNaN(num) && num > 0);
12226
+ return parsed.length > 0 ? parsed : void 0;
12227
+ }
12228
+ //#endregion
12184
12229
  //#region src/lib/models/tour/UITour.svelte.ts
12185
12230
  function isUITour(x) {
12186
12231
  return x?.type === "Tour";
@@ -12574,13 +12619,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12574
12619
  if (products) products.forEach((p) => cart.addItem(createCartItem(p)));
12575
12620
  return cart;
12576
12621
  }
12577
- function formatCurrency(priceCents) {
12578
- priceCents = priceCents ?? 0;
12579
- return new Intl.NumberFormat("de-DE", {
12580
- style: "currency",
12581
- currency: "EUR"
12582
- }).format(priceCents / 100);
12583
- }
12584
12622
  function createMainCart() {
12585
12623
  const cart = proxy(createCart());
12586
12624
  syncCartToLocalStorage(cart);
@@ -13695,6 +13733,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13695
13733
  get$2(this.#data).apiUrl = apiUrl;
13696
13734
  get$2(this.#data).shopDomain = shopDomain;
13697
13735
  get$2(this.#data).locale = locale || "de";
13736
+ warnOnInvalidLocale(get$2(this.#data).locale);
13698
13737
  this.#fetchStatus = {};
13699
13738
  get$2(this.#data).client = client(apiUrl, shopDomain);
13700
13739
  get$2(this.#data).capacityManager = createCapacityManager();
@@ -15521,9 +15560,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15521
15560
  create_custom_element(Event$2, { cartItem: {} }, [], [], { mode: "open" });
15522
15561
  //#endregion
15523
15562
  //#region src/components/cart/components/itemTitles/Ticket.svelte
15524
- var root$52 = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
15525
- var root_1$19 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
15526
- var root_2$14 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span> <!>`, 1);
15563
+ var root$52 = /* @__PURE__ */ from_html(`<span class="go-cart-item-subtitle" data-testid="cart-item-subtitle"> </span>`);
15564
+ var root_1$19 = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
15565
+ var root_2$14 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
15566
+ var root_3$10 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span> <!> <!>`, 1);
15527
15567
  function Ticket($$anchor, $$props) {
15528
15568
  push($$props, true);
15529
15569
  let cartItem = prop($$props, "cartItem", 7);
@@ -15536,35 +15576,47 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15536
15576
  flushSync();
15537
15577
  }
15538
15578
  };
15539
- var fragment = root_2$14();
15579
+ var fragment = root_3$10();
15540
15580
  var span = first_child(fragment);
15541
15581
  var text = child(span, true);
15542
15582
  reset(span);
15543
15583
  var node = sibling(span, 2);
15544
- var consequent_1 = ($$anchor) => {
15545
- var fragment_1 = root_1$19();
15546
- var span_1 = first_child(fragment_1);
15584
+ var consequent = ($$anchor) => {
15585
+ var span_1 = root$52();
15547
15586
  var text_1 = child(span_1, true);
15548
15587
  reset(span_1);
15549
- var node_1 = sibling(span_1, 2);
15550
- var consequent = ($$anchor) => {
15551
- var span_2 = root$52();
15552
- var text_2 = child(span_2, true);
15553
- reset(span_2);
15554
- template_effect(($0) => set_text(text_2, $0), [() => formatTime(cartItem().time)]);
15555
- append($$anchor, span_2);
15588
+ template_effect(() => set_text(text_1, cartItem().product.sub_title));
15589
+ append($$anchor, span_1);
15590
+ };
15591
+ var d = /* @__PURE__ */ user_derived(() => isUITicket(cartItem().product) && cartItem().product.sub_title);
15592
+ if_block(node, ($$render) => {
15593
+ if (get$2(d)) $$render(consequent);
15594
+ });
15595
+ var node_1 = sibling(node, 2);
15596
+ var consequent_2 = ($$anchor) => {
15597
+ var fragment_1 = root_2$14();
15598
+ var span_2 = first_child(fragment_1);
15599
+ var text_2 = child(span_2, true);
15600
+ reset(span_2);
15601
+ var node_2 = sibling(span_2, 2);
15602
+ var consequent_1 = ($$anchor) => {
15603
+ var span_3 = root_1$19();
15604
+ var text_3 = child(span_3, true);
15605
+ reset(span_3);
15606
+ template_effect(($0) => set_text(text_3, $0), [() => formatTime(cartItem().time)]);
15607
+ append($$anchor, span_3);
15556
15608
  };
15557
- if_block(node_1, ($$render) => {
15558
- if (cartItem().product.type === "Ticket" && cartItem().product.subtype === "timeslot") $$render(consequent);
15609
+ if_block(node_2, ($$render) => {
15610
+ if (cartItem().product.type === "Ticket" && cartItem().product.subtype === "timeslot") $$render(consequent_1);
15559
15611
  });
15560
- template_effect(($0) => set_text(text_1, $0), [() => formatDate(cartItem().time, {
15612
+ template_effect(($0) => set_text(text_2, $0), [() => formatDate(cartItem().time, {
15561
15613
  month: "numeric",
15562
15614
  day: "numeric"
15563
15615
  }, shop.locale)]);
15564
15616
  append($$anchor, fragment_1);
15565
15617
  };
15566
- if_block(node, ($$render) => {
15567
- if (cartItem().time) $$render(consequent_1);
15618
+ if_block(node_1, ($$render) => {
15619
+ if (cartItem().time) $$render(consequent_2);
15568
15620
  });
15569
15621
  template_effect(() => set_text(text, cartItem().product.title));
15570
15622
  append($$anchor, fragment);
@@ -18010,7 +18062,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18010
18062
  var root_2$11 = /* @__PURE__ */ from_html(`<span data-testid="cart-item-participant-count"> </span>`);
18011
18063
  var root_3$8 = /* @__PURE__ */ from_html(`<span data-testid="cart-item-voucher-quantity"> </span>`);
18012
18064
  var root_4$4 = /* @__PURE__ */ from_html(`<span> </span>`);
18013
- var root_5$2 = /* @__PURE__ */ from_html(`<li class="go-cart-item-remove"><button class="go-cart-remove">⨉</button></li>`);
18065
+ var root_5$3 = /* @__PURE__ */ from_html(`<li class="go-cart-item-remove"><button class="go-cart-remove">⨉</button></li>`);
18014
18066
  var root_6$2 = /* @__PURE__ */ from_html(`<ul class="go-sub-tickets" role="list"></ul>`);
18015
18067
  var root_7$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);
18016
18068
  function Item$1($$anchor, $$props) {
@@ -18192,7 +18244,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18192
18244
  reset(li_2);
18193
18245
  var node_4 = sibling(li_2, 2);
18194
18246
  var consequent_8 = ($$anchor) => {
18195
- var li_3 = root_5$2();
18247
+ var li_3 = root_5$3();
18196
18248
  var button = child(li_3);
18197
18249
  reset(li_3);
18198
18250
  template_effect(($0) => set_attribute(button, "aria-label", $0), [() => shop.t("cart.item.remove")]);
@@ -18875,51 +18927,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18875
18927
  delegate(["click", "keydown"]);
18876
18928
  create_custom_element(DonationCampaign, { campaign: {} }, [], [], { mode: "open" });
18877
18929
  //#endregion
18878
- //#region src/lib/helpers/utils.ts
18879
- function currency(value, currency) {
18880
- if (currency == "CHF") return new Intl.NumberFormat("de-CH", {
18881
- style: "currency",
18882
- currency
18883
- }).format(value);
18884
- else return new Intl.NumberFormat("de-DE", {
18885
- style: "currency",
18886
- currency
18887
- }).format(value);
18888
- }
18889
- /**
18890
- * Parses a comma-separated string of IDs into an array of positive numbers.
18891
- *
18892
- * This function takes a string containing comma-separated values and converts
18893
- * them into an array of positive integers. Invalid values (non-numeric, zero,
18894
- * or negative numbers) are filtered out.
18895
- *
18896
- * @param ids - A comma-separated string of IDs (e.g., "1,2,3" or "10, 20, 30")
18897
- * @returns An array of positive numbers if valid IDs are found, undefined otherwise
18898
- *
18899
- * @example
18900
- * ```ts
18901
- * parseIds("1,2,3") // Returns [1, 2, 3]
18902
- * parseIds("10, 20, 30") // Returns [10, 20, 30] (handles whitespace)
18903
- * parseIds("1,abc,3") // Returns [1, 3] (filters out invalid values)
18904
- * parseIds("0,-1,2") // Returns [2] (filters out zero and negative numbers)
18905
- * parseIds("") // Returns undefined
18906
- * parseIds(undefined) // Returns undefined
18907
- * parseIds("abc,def") // Returns undefined (no valid IDs)
18908
- * ```
18909
- */
18910
- function parseIds(ids) {
18911
- if (!ids) return;
18912
- const parsed = ids.split(",").map((id) => id.trim()).map(Number).filter((num) => !isNaN(num) && num > 0);
18913
- return parsed.length > 0 ? parsed : void 0;
18914
- }
18915
- //#endregion
18916
18930
  //#region src/components/donations/components/DonationSelector.svelte
18917
18931
  var root$39 = /* @__PURE__ */ from_html(`<button> </button>`);
18918
18932
  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>`);
18919
18933
  var root_2$8 = /* @__PURE__ */ from_html(`<div class="donation-selection"><h3> </h3> <div class="donation-options"></div> <!></div>`);
18920
18934
  function DonationSelector($$anchor, $$props) {
18921
18935
  push($$props, true);
18922
- const guestMaxLimit = goDonation.campaign?.guest_limit / 100;
18936
+ const guestMaxLimit = goDonation.campaign?.guest_limit ? goDonation.campaign.guest_limit / 100 : void 0;
18923
18937
  let customAmount = /* @__PURE__ */ state(void 0);
18924
18938
  function selectAmount(amount) {
18925
18939
  goDonation.amount = amount;
@@ -18946,7 +18960,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18946
18960
  template_effect(($0) => {
18947
18961
  classes = set_class(button, 1, "btn btn-default", null, classes, { selected: goDonation.amount === option });
18948
18962
  set_text(text_1, $0);
18949
- }, [() => currency(option / 100, shop.currency)]);
18963
+ }, [() => formatCurrency(option)]);
18950
18964
  delegated("click", button, () => selectAmount(option));
18951
18965
  append($$anchor, button);
18952
18966
  });
@@ -33277,14 +33291,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33277
33291
  var root_2$7 = /* @__PURE__ */ from_html(`<label><!></label> <input/>`, 1);
33278
33292
  var root_3$7 = /* @__PURE__ */ from_html(`<label><!></label> <textarea></textarea>`, 1);
33279
33293
  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>`);
33280
- var root_5$1 = /* @__PURE__ */ from_html(`<label><!></label> <input/> <!>`, 1);
33294
+ var root_5$2 = /* @__PURE__ */ from_html(`<label><!></label> <input/> <!>`, 1);
33281
33295
  var root_6$1 = /* @__PURE__ */ from_html(`<label><input/> <span class="go-checkbox-label"><!></span></label>`);
33282
33296
  var root_7$1 = /* @__PURE__ */ from_html(`<img src="" alt=""/> <option> </option>`, 1);
33283
33297
  var root_8$1 = /* @__PURE__ */ from_html(`<option disabled="" hidden="" selected=""> </option> <!>`, 1);
33284
33298
  var select_content = /* @__PURE__ */ from_html(`<!>`, 1);
33285
33299
  var root_9$1 = /* @__PURE__ */ from_html(`<label><!></label> <select><!></select>`, 1);
33286
33300
  var root_10$1 = /* @__PURE__ */ from_html(`<img style="width: 60px" aria-hidden="true"/>`);
33287
- var root_11 = /* @__PURE__ */ from_html(`<span class="go-payment-mode-icons"></span>`);
33301
+ var root_11$1 = /* @__PURE__ */ from_html(`<span class="go-payment-mode-icons"></span>`);
33288
33302
  var root_12 = /* @__PURE__ */ from_html(`<span class="go-payment-mode-name"> </span>`);
33289
33303
  var root_13 = /* @__PURE__ */ from_html(`<label><input type="radio"/> <!></label>`);
33290
33304
  var root_14 = /* @__PURE__ */ from_html(`<fieldset role="radiogroup"><legend><!></legend> <!></fieldset>`);
@@ -33349,7 +33363,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33349
33363
  append($$anchor, fragment_2);
33350
33364
  };
33351
33365
  const file = ($$anchor) => {
33352
- var fragment_3 = root_5$1();
33366
+ var fragment_3 = root_5$2();
33353
33367
  var label_3 = first_child(fragment_3);
33354
33368
  labelText(child(label_3));
33355
33369
  reset(label_3);
@@ -33499,7 +33513,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33499
33513
  remove_input_defaults(input_4);
33500
33514
  var node_11 = sibling(input_4, 2);
33501
33515
  var consequent_3 = ($$anchor) => {
33502
- var span_2 = root_11();
33516
+ var span_2 = root_11$1();
33503
33517
  each(span_2, 20, () => get$2(mode).icons, (icon) => icon, ($$anchor, icon) => {
33504
33518
  const url = /* @__PURE__ */ user_derived(() => CDN_PATH + icon + ".svg");
33505
33519
  var img_1 = root_10$1();
@@ -36443,7 +36457,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36443
36457
  }, [
36444
36458
  () => orderDetails().downloadLink(item()),
36445
36459
  () => shop.t("common.download"),
36446
- () => formatCurrency$1(item().price_cents)
36460
+ () => formatCurrency(item().price_cents)
36447
36461
  ]);
36448
36462
  append($$anchor, li);
36449
36463
  return pop($$exports);
@@ -36454,17 +36468,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36454
36468
  }, [], [], { mode: "open" });
36455
36469
  //#endregion
36456
36470
  //#region src/components/order/components/subcomponents/breakdown/items/TicketSale.svelte
36457
- var root$9 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities" data-testid="order-sub-ticket"> </span>`, 1);
36458
- var root_1$4 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span> <span class="go-cart-item-time"> </span>`, 1);
36459
- var root_2$3 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span>`);
36460
- var root_3$3 = /* @__PURE__ */ from_html(`<!> <br/> <a class="go-ticket-download" target="_blank" rel="noopener noreferrer"> </a>`, 1);
36461
- var root_4$2 = /* @__PURE__ */ from_html(`<br/> <a class="go-ticket-personalization"> </a>`, 1);
36462
- var root_5 = /* @__PURE__ */ from_html(`<a aria-label="passbook link"><img alt="apple wallet icon"/></a>`);
36463
- var root_6 = /* @__PURE__ */ from_html(`<a aria-label="iCal link"> </a>`);
36464
- var root_7 = /* @__PURE__ */ from_html(`<li><article><ul><li class="go-order-breakdown-count"></li> <li class="go-order-breakdown-product"><span class="go-order-item-title"> </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>`);
36465
- var root_8 = /* @__PURE__ */ from_html(`<a class="go-ticket-download" target="_blank" rel="noopener noreferrer"> </a>`);
36466
- var root_9 = /* @__PURE__ */ from_html(`<a class="go-ticket-personalization"> </a>`);
36467
- var root_10 = /* @__PURE__ */ from_html(`<li><article><ul><li class="go-order-breakdown-count"> </li> <li class="go-order-breakdown-product"><span class="go-order-item-title"> </span> <!></li> <li class="go-order-breakdown-item-price"> </li> <li class="go-order-breakdown-passbook"></li></ul></article></li>`);
36471
+ var root$9 = /* @__PURE__ */ from_html(`<span class="go-order-item-subtitle" data-testid="order-item-subtitle"> </span>`);
36472
+ var root_1$4 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities" data-testid="order-sub-ticket"> </span>`, 1);
36473
+ var root_2$3 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span> <span class="go-cart-item-time"> </span>`, 1);
36474
+ var root_3$3 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span>`);
36475
+ var root_4$2 = /* @__PURE__ */ from_html(`<!> <br/> <a class="go-ticket-download" target="_blank" rel="noopener noreferrer"> </a>`, 1);
36476
+ var root_5$1 = /* @__PURE__ */ from_html(`<br/> <a class="go-ticket-personalization"> </a>`, 1);
36477
+ var root_6 = /* @__PURE__ */ from_html(`<a aria-label="passbook link"><img alt="apple wallet icon"/></a>`);
36478
+ var root_7 = /* @__PURE__ */ from_html(`<a aria-label="iCal link"> </a>`);
36479
+ var root_8 = /* @__PURE__ */ from_html(`<li><article><ul><li class="go-order-breakdown-count"></li> <li class="go-order-breakdown-product"><span class="go-order-item-title"> </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>`);
36480
+ var root_9 = /* @__PURE__ */ from_html(`<a class="go-ticket-download" target="_blank" rel="noopener noreferrer"> </a>`);
36481
+ var root_10 = /* @__PURE__ */ from_html(`<a class="go-ticket-personalization"> </a>`);
36482
+ var root_11 = /* @__PURE__ */ from_html(`<li><article><ul><li class="go-order-breakdown-count"> </li> <li class="go-order-breakdown-product"><span class="go-order-item-title"> </span> <!> <!></li> <li class="go-order-breakdown-item-price"> </li> <li class="go-order-breakdown-passbook"></li></ul></article></li>`);
36468
36483
  function TicketSale($$anchor, $$props) {
36469
36484
  push($$props, true);
36470
36485
  const APPLE_WALLET_CDN_PATH = `https://cdn.shop.platform.gomus.de/apple_wallet_${shop.locale}.svg`;
@@ -36488,10 +36503,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36488
36503
  };
36489
36504
  var fragment = comment();
36490
36505
  var node = first_child(fragment);
36491
- var consequent_5 = ($$anchor) => {
36506
+ var consequent_6 = ($$anchor) => {
36492
36507
  var fragment_1 = comment();
36493
36508
  each(first_child(fragment_1), 17, () => ({ length: item().attributes.quantity }), index$1, ($$anchor, $$item, index) => {
36494
- var li = root_7();
36509
+ var li = root_8();
36495
36510
  var article = child(li);
36496
36511
  var ul = child(article);
36497
36512
  var li_1 = child(ul);
@@ -36501,82 +36516,93 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36501
36516
  var text = child(span, true);
36502
36517
  reset(span);
36503
36518
  var node_2 = sibling(span, 2);
36504
- each(node_2, 17, () => get$2(subTicketSales), (sub) => sub.id, ($$anchor, sub) => {
36505
- var fragment_2 = root$9();
36506
- var span_1 = sibling(first_child(fragment_2), 2);
36507
- var text_1 = child(span_1);
36519
+ var consequent = ($$anchor) => {
36520
+ var span_1 = root$9();
36521
+ var text_1 = child(span_1, true);
36508
36522
  reset(span_1);
36509
- template_effect(() => set_text(text_1, `${get$2(sub).quantity ?? ""} x ${get$2(sub).title ?? ""}`));
36510
- append($$anchor, fragment_2);
36523
+ template_effect(() => set_text(text_1, item().attributes.sub_title));
36524
+ append($$anchor, span_1);
36525
+ };
36526
+ if_block(node_2, ($$render) => {
36527
+ if (item().attributes.sub_title) $$render(consequent);
36511
36528
  });
36512
36529
  var node_3 = sibling(node_2, 2);
36513
- var consequent_2 = ($$anchor) => {
36530
+ each(node_3, 17, () => get$2(subTicketSales), (sub) => sub.id, ($$anchor, sub) => {
36531
+ var fragment_2 = root_1$4();
36532
+ var span_2 = sibling(first_child(fragment_2), 2);
36533
+ var text_2 = child(span_2);
36534
+ reset(span_2);
36535
+ template_effect(() => set_text(text_2, `${get$2(sub).quantity ?? ""} x ${get$2(sub).title ?? ""}`));
36536
+ append($$anchor, fragment_2);
36537
+ });
36538
+ var node_4 = sibling(node_3, 2);
36539
+ var consequent_3 = ($$anchor) => {
36514
36540
  const barcodeId = /* @__PURE__ */ user_derived(() => item().attributes.barcodes[index]?.id);
36515
- var fragment_3 = root_3$3();
36516
- var node_4 = first_child(fragment_3);
36517
- var consequent = ($$anchor) => {
36518
- var fragment_4 = root_1$4();
36519
- var span_2 = first_child(fragment_4);
36520
- var text_2 = child(span_2, true);
36521
- reset(span_2);
36522
- var span_3 = sibling(span_2, 2);
36541
+ var fragment_3 = root_4$2();
36542
+ var node_5 = first_child(fragment_3);
36543
+ var consequent_1 = ($$anchor) => {
36544
+ var fragment_4 = root_2$3();
36545
+ var span_3 = first_child(fragment_4);
36523
36546
  var text_3 = child(span_3, true);
36524
36547
  reset(span_3);
36548
+ var span_4 = sibling(span_3, 2);
36549
+ var text_4 = child(span_4, true);
36550
+ reset(span_4);
36525
36551
  template_effect(($0, $1) => {
36526
- set_text(text_2, $0);
36527
- set_text(text_3, $1);
36552
+ set_text(text_3, $0);
36553
+ set_text(text_4, $1);
36528
36554
  }, [() => formatDate(item().attributes.start_time, {
36529
36555
  month: "numeric",
36530
36556
  day: "numeric"
36531
36557
  }, shop.locale), () => formatTime(item().attributes.start_time)]);
36532
36558
  append($$anchor, fragment_4);
36533
36559
  };
36534
- var consequent_1 = ($$anchor) => {
36535
- var span_4 = root_2$3();
36536
- var text_4 = child(span_4, true);
36537
- reset(span_4);
36538
- template_effect(($0) => set_text(text_4, $0), [() => formatDate(item().attributes.start_time, {
36560
+ var consequent_2 = ($$anchor) => {
36561
+ var span_5 = root_3$3();
36562
+ var text_5 = child(span_5, true);
36563
+ reset(span_5);
36564
+ template_effect(($0) => set_text(text_5, $0), [() => formatDate(item().attributes.start_time, {
36539
36565
  month: "numeric",
36540
36566
  day: "numeric"
36541
36567
  }, shop.locale)]);
36542
- append($$anchor, span_4);
36568
+ append($$anchor, span_5);
36543
36569
  };
36544
- if_block(node_4, ($$render) => {
36545
- if (item().attributes.ticket_type === "time_slot") $$render(consequent);
36546
- else if (item().attributes.ticket_type === "normal") $$render(consequent_1, 1);
36570
+ if_block(node_5, ($$render) => {
36571
+ if (item().attributes.ticket_type === "time_slot") $$render(consequent_1);
36572
+ else if (item().attributes.ticket_type === "normal") $$render(consequent_2, 1);
36547
36573
  });
36548
- var a = sibling(node_4, 4);
36549
- var text_5 = child(a, true);
36574
+ var a = sibling(node_5, 4);
36575
+ var text_6 = child(a, true);
36550
36576
  reset(a);
36551
36577
  template_effect(($0, $1) => {
36552
36578
  set_attribute(a, "href", $0);
36553
- set_text(text_5, $1);
36579
+ set_text(text_6, $1);
36554
36580
  }, [() => orderDetails().downloadLink(item(), get$2(barcodeId)), () => shop.t("common.download")]);
36555
36581
  append($$anchor, fragment_3);
36556
36582
  };
36557
36583
  var alternate = ($$anchor) => {
36558
- var fragment_5 = root_4$2();
36584
+ var fragment_5 = root_5$1();
36559
36585
  var a_1 = sibling(first_child(fragment_5), 2);
36560
- var text_6 = child(a_1, true);
36586
+ var text_7 = child(a_1, true);
36561
36587
  reset(a_1);
36562
36588
  template_effect(($0, $1) => {
36563
36589
  set_attribute(a_1, "href", $0);
36564
- set_text(text_6, $1);
36590
+ set_text(text_7, $1);
36565
36591
  }, [() => orderDetails().downloadLink(item()), () => shop.t("common.personalize")]);
36566
36592
  append($$anchor, fragment_5);
36567
36593
  };
36568
- if_block(node_3, ($$render) => {
36569
- if (item().attributes.ticket_type == "time_slot" || item().attributes.ticket_type == "normal") $$render(consequent_2);
36594
+ if_block(node_4, ($$render) => {
36595
+ if (item().attributes.ticket_type == "time_slot" || item().attributes.ticket_type == "normal") $$render(consequent_3);
36570
36596
  else $$render(alternate, -1);
36571
36597
  });
36572
36598
  reset(li_2);
36573
36599
  var li_3 = sibling(li_2, 2);
36574
- var text_7 = child(li_3, true);
36600
+ var text_8 = child(li_3, true);
36575
36601
  reset(li_3);
36576
36602
  var li_4 = sibling(li_3, 2);
36577
- var node_5 = child(li_4);
36578
- var consequent_3 = ($$anchor) => {
36579
- var a_2 = root_5();
36603
+ var node_6 = child(li_4);
36604
+ var consequent_4 = ($$anchor) => {
36605
+ var a_2 = root_6();
36580
36606
  var img = child(a_2);
36581
36607
  reset(a_2);
36582
36608
  template_effect(() => {
@@ -36585,24 +36611,24 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36585
36611
  });
36586
36612
  append($$anchor, a_2);
36587
36613
  };
36588
- if_block(node_5, ($$render) => {
36589
- if (item().attributes.barcodes[index] && item().attributes.barcodes[index]?.passbook_url) $$render(consequent_3);
36614
+ if_block(node_6, ($$render) => {
36615
+ if (item().attributes.barcodes[index] && item().attributes.barcodes[index]?.passbook_url) $$render(consequent_4);
36590
36616
  });
36591
36617
  reset(li_4);
36592
36618
  var li_5 = sibling(li_4, 2);
36593
- var node_6 = child(li_5);
36594
- var consequent_4 = ($$anchor) => {
36595
- var a_3 = root_6();
36596
- var text_8 = child(a_3, true);
36619
+ var node_7 = child(li_5);
36620
+ var consequent_5 = ($$anchor) => {
36621
+ var a_3 = root_7();
36622
+ var text_9 = child(a_3, true);
36597
36623
  reset(a_3);
36598
36624
  template_effect(($0) => {
36599
36625
  set_attribute(a_3, "href", shop.apiUrl + item().attributes.ical_url);
36600
- set_text(text_8, $0);
36626
+ set_text(text_9, $0);
36601
36627
  }, [() => shop.t("common.calendar")]);
36602
36628
  append($$anchor, a_3);
36603
36629
  };
36604
- if_block(node_6, ($$render) => {
36605
- if (item().attributes.ical_url) $$render(consequent_4);
36630
+ if_block(node_7, ($$render) => {
36631
+ if (item().attributes.ical_url) $$render(consequent_5);
36606
36632
  });
36607
36633
  reset(li_5);
36608
36634
  reset(ul);
@@ -36610,65 +36636,76 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36610
36636
  reset(li);
36611
36637
  template_effect(($0) => {
36612
36638
  set_text(text, item().attributes.title);
36613
- set_text(text_7, $0);
36614
- }, [() => formatCurrency$1(item().price_cents)]);
36639
+ set_text(text_8, $0);
36640
+ }, [() => formatCurrency(item().price_cents)]);
36615
36641
  append($$anchor, li);
36616
36642
  });
36617
36643
  append($$anchor, fragment_1);
36618
36644
  };
36619
36645
  var alternate_2 = ($$anchor) => {
36620
- var li_6 = root_10();
36646
+ var li_6 = root_11();
36621
36647
  var article_1 = child(li_6);
36622
36648
  var ul_1 = child(article_1);
36623
36649
  var li_7 = child(ul_1);
36624
- var text_9 = child(li_7, true);
36650
+ var text_10 = child(li_7, true);
36625
36651
  reset(li_7);
36626
36652
  var li_8 = sibling(li_7, 2);
36627
- var span_5 = child(li_8);
36628
- var text_10 = child(span_5, true);
36629
- reset(span_5);
36630
- var node_7 = sibling(span_5, 2);
36631
- var consequent_6 = ($$anchor) => {
36632
- var a_4 = root_8();
36633
- var text_11 = child(a_4, true);
36653
+ var span_6 = child(li_8);
36654
+ var text_11 = child(span_6, true);
36655
+ reset(span_6);
36656
+ var node_8 = sibling(span_6, 2);
36657
+ var consequent_7 = ($$anchor) => {
36658
+ var span_7 = root$9();
36659
+ var text_12 = child(span_7, true);
36660
+ reset(span_7);
36661
+ template_effect(() => set_text(text_12, item().attributes.sub_title));
36662
+ append($$anchor, span_7);
36663
+ };
36664
+ if_block(node_8, ($$render) => {
36665
+ if (item().attributes.sub_title) $$render(consequent_7);
36666
+ });
36667
+ var node_9 = sibling(node_8, 2);
36668
+ var consequent_8 = ($$anchor) => {
36669
+ var a_4 = root_9();
36670
+ var text_13 = child(a_4, true);
36634
36671
  reset(a_4);
36635
36672
  template_effect(($0, $1) => {
36636
36673
  set_attribute(a_4, "href", $0);
36637
- set_text(text_11, $1);
36674
+ set_text(text_13, $1);
36638
36675
  }, [() => orderDetails().downloadLink(item()), () => shop.t("common.download")]);
36639
36676
  append($$anchor, a_4);
36640
36677
  };
36641
36678
  var alternate_1 = ($$anchor) => {
36642
- var a_5 = root_9();
36643
- var text_12 = child(a_5, true);
36679
+ var a_5 = root_10();
36680
+ var text_14 = child(a_5, true);
36644
36681
  reset(a_5);
36645
36682
  template_effect(($0, $1) => {
36646
36683
  set_attribute(a_5, "href", $0);
36647
- set_text(text_12, $1);
36684
+ set_text(text_14, $1);
36648
36685
  }, [() => orderDetails().downloadLink(item()), () => shop.t("common.personalize")]);
36649
36686
  append($$anchor, a_5);
36650
36687
  };
36651
- if_block(node_7, ($$render) => {
36652
- if (item().attributes.is_voucher) $$render(consequent_6);
36688
+ if_block(node_9, ($$render) => {
36689
+ if (item().attributes.is_voucher) $$render(consequent_8);
36653
36690
  else $$render(alternate_1, -1);
36654
36691
  });
36655
36692
  reset(li_8);
36656
36693
  var li_9 = sibling(li_8, 2);
36657
- var text_13 = child(li_9, true);
36694
+ var text_15 = child(li_9, true);
36658
36695
  reset(li_9);
36659
36696
  next(2);
36660
36697
  reset(ul_1);
36661
36698
  reset(article_1);
36662
36699
  reset(li_6);
36663
36700
  template_effect(($0) => {
36664
- set_text(text_9, item().attributes.quantity);
36665
- set_text(text_10, item().attributes.title);
36666
- set_text(text_13, $0);
36667
- }, [() => formatCurrency$1(item().price_cents)]);
36701
+ set_text(text_10, item().attributes.quantity);
36702
+ set_text(text_11, item().attributes.title);
36703
+ set_text(text_15, $0);
36704
+ }, [() => formatCurrency(item().price_cents)]);
36668
36705
  append($$anchor, li_6);
36669
36706
  };
36670
36707
  if_block(node, ($$render) => {
36671
- if (item().attributes.ticket_type == "time_slot" || item().attributes.ticket_type == "normal") $$render(consequent_5);
36708
+ if (item().attributes.ticket_type == "time_slot" || item().attributes.ticket_type == "normal") $$render(consequent_6);
36672
36709
  else $$render(alternate_2, -1);
36673
36710
  });
36674
36711
  append($$anchor, fragment);
@@ -36763,7 +36800,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36763
36800
  set_text(text, item().attributes.title);
36764
36801
  set_text(text_1, $0);
36765
36802
  set_text(text_5, $1);
36766
- }, [() => shop.t("cart.item.participants", { count: item().attributes.participants }), () => formatCurrency$1(item().price_cents)]);
36803
+ }, [() => shop.t("cart.item.participants", { count: item().attributes.participants }), () => formatCurrency(item().price_cents)]);
36767
36804
  append($$anchor, li);
36768
36805
  return pop($$exports);
36769
36806
  }
@@ -36848,7 +36885,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36848
36885
  () => shop.t("common.table.count"),
36849
36886
  () => shop.t("common.table.product"),
36850
36887
  () => shop.t("common.table.price"),
36851
- () => shop.t("common.table.total", { value: formatCurrency$1(get$2(order).total_price_cents) })
36888
+ () => shop.t("common.table.total", { value: formatCurrency(get$2(order).total_price_cents) })
36852
36889
  ]);
36853
36890
  append($$anchor, ol);
36854
36891
  };
@@ -36947,11 +36984,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36947
36984
  });
36948
36985
  let form = /* @__PURE__ */ state(void 0);
36949
36986
  const user = /* @__PURE__ */ user_derived(() => shop.getCustomer());
36987
+ const userData = /* @__PURE__ */ user_derived(() => get$2(user) && "data" in get$2(user) ? get$2(user).data : void 0);
36950
36988
  onMount(async () => {
36951
36989
  await shop.waitForAllFetches();
36952
36990
  await pollUntilTruthy(() => get$2(form).details);
36953
- await pollUntilTruthy(() => get$2(user).data);
36954
- get$2(form).details.fill(get$2(user).data);
36991
+ await pollUntilTruthy(() => get$2(userData));
36992
+ get$2(form).details.fill(get$2(userData));
36955
36993
  });
36956
36994
  var go_form = root$5();
36957
36995
  set_custom_element_data(go_form, "formId", "accountDetailsForm");
@@ -36966,7 +37004,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36966
37004
  function Overview($$anchor, $$props) {
36967
37005
  push($$props, true);
36968
37006
  const user = /* @__PURE__ */ user_derived(() => shop.getCustomer());
36969
- const data = /* @__PURE__ */ user_derived(() => get$2(user)?.data);
37007
+ const data = /* @__PURE__ */ user_derived(() => get$2(user) && "data" in get$2(user) ? get$2(user).data : void 0);
36970
37008
  var fragment = comment();
36971
37009
  var node = first_child(fragment);
36972
37010
  var consequent = ($$anchor) => {
@@ -37476,10 +37514,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
37476
37514
  //#endregion
37477
37515
  //#region src/components/ticketSelection/subcomponents/tickets/subcomponents/segment/Item.svelte
37478
37516
  var root$3 = /* @__PURE__ */ from_html(`<span class="go-tickets-item-title-event-title"> </span> <span class="go-tickets-item-title-product-title"> </span>`, 1);
37479
- var root_1$2 = /* @__PURE__ */ from_html(`<li class="go-tickets-item-info"><button type="button" data-testid="ticket-info-toggle"></button></li>`);
37480
- var root_2$1 = /* @__PURE__ */ from_html(`<li class="go-ticket-additional-info" data-testid="ticket-additional-info"> </li>`);
37481
- var root_3$1 = /* @__PURE__ */ from_html(`<ul class="go-sub-tickets" role="list"></ul>`);
37482
- var root_4$1 = /* @__PURE__ */ from_html(`<li><article><ul><li class="go-tickets-item-title"><!></li> <!> <li class="go-tickets-item-description" data-go-tickets-description=""></li> <!> <li class="go-tickets-item-price" data-go-tickets-price=""> </li> <li class="go-tickets-item-quality" data-go-tickets-quality=""><!></li></ul></article> <!></li>`);
37517
+ var root_1$2 = /* @__PURE__ */ from_html(`<span class="go-tickets-item-subtitle" data-testid="ticket-subtitle"> </span>`);
37518
+ var root_2$1 = /* @__PURE__ */ from_html(`<li class="go-tickets-item-info"><button type="button" data-testid="ticket-info-toggle"></button></li>`);
37519
+ var root_3$1 = /* @__PURE__ */ from_html(`<li class="go-ticket-additional-info" data-testid="ticket-additional-info"> </li>`);
37520
+ var root_4$1 = /* @__PURE__ */ from_html(`<ul class="go-sub-tickets" role="list"></ul>`);
37521
+ var root_5 = /* @__PURE__ */ from_html(`<li><article><ul><li class="go-tickets-item-title"><!> <!></li> <!> <li class="go-tickets-item-description" data-go-tickets-description=""></li> <!> <li class="go-tickets-item-price" data-go-tickets-price=""> </li> <li class="go-tickets-item-quality" data-go-tickets-quality=""><!></li></ul></article> <!></li>`);
37483
37522
  function Item($$anchor, $$props) {
37484
37523
  const uid = props_id();
37485
37524
  push($$props, true);
@@ -37543,17 +37582,28 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
37543
37582
  };
37544
37583
  var fragment_2 = comment();
37545
37584
  var node = first_child(fragment_2);
37546
- var consequent_3 = ($$anchor) => {
37547
- var li = root_4$1();
37585
+ var consequent_4 = ($$anchor) => {
37586
+ var li = root_5();
37548
37587
  var article = child(li);
37549
37588
  var ul = child(article);
37550
37589
  var li_1 = child(ul);
37551
37590
  var node_1 = child(li_1);
37552
37591
  titleSnippet(node_1);
37553
- reset(li_1);
37554
- var node_2 = sibling(li_1, 2);
37592
+ var node_2 = sibling(node_1, 2);
37555
37593
  var consequent = ($$anchor) => {
37556
- var li_2 = root_1$2();
37594
+ var span_2 = root_1$2();
37595
+ var text_3 = child(span_2, true);
37596
+ reset(span_2);
37597
+ template_effect(() => set_text(text_3, item().product.sub_title));
37598
+ append($$anchor, span_2);
37599
+ };
37600
+ if_block(node_2, ($$render) => {
37601
+ if (item().product.sub_title) $$render(consequent);
37602
+ });
37603
+ reset(li_1);
37604
+ var node_3 = sibling(li_1, 2);
37605
+ var consequent_1 = ($$anchor) => {
37606
+ var li_2 = root_2$1();
37557
37607
  var button = child(li_2);
37558
37608
  reset(li_2);
37559
37609
  template_effect(($0) => {
@@ -37565,35 +37615,35 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
37565
37615
  delegated("click", button, () => set(infoExpanded, !get$2(infoExpanded)));
37566
37616
  append($$anchor, li_2);
37567
37617
  };
37568
- if_block(node_2, ($$render) => {
37569
- if (get$2(reductionReason)) $$render(consequent);
37618
+ if_block(node_3, ($$render) => {
37619
+ if (get$2(reductionReason)) $$render(consequent_1);
37570
37620
  });
37571
- var li_3 = sibling(node_2, 2);
37621
+ var li_3 = sibling(node_3, 2);
37572
37622
  html$2(li_3, () => purify.sanitize(item().product.description), true);
37573
37623
  reset(li_3);
37574
- var node_3 = sibling(li_3, 2);
37575
- var consequent_1 = ($$anchor) => {
37576
- var li_4 = root_2$1();
37577
- var text_3 = child(li_4, true);
37624
+ var node_4 = sibling(li_3, 2);
37625
+ var consequent_2 = ($$anchor) => {
37626
+ var li_4 = root_3$1();
37627
+ var text_4 = child(li_4, true);
37578
37628
  reset(li_4);
37579
37629
  template_effect(($0) => {
37580
37630
  set_attribute(li_4, "id", infoPanelId);
37581
37631
  set_attribute(li_4, "hidden", !get$2(infoExpanded));
37582
- set_text(text_3, $0);
37632
+ set_text(text_4, $0);
37583
37633
  }, [() => shop.t(get$2(reductionReason))]);
37584
37634
  append($$anchor, li_4);
37585
37635
  };
37586
- if_block(node_3, ($$render) => {
37587
- if (get$2(reductionReason)) $$render(consequent_1);
37636
+ if_block(node_4, ($$render) => {
37637
+ if (get$2(reductionReason)) $$render(consequent_2);
37588
37638
  });
37589
- var li_5 = sibling(node_3, 2);
37590
- var text_4 = child(li_5, true);
37639
+ var li_5 = sibling(node_4, 2);
37640
+ var text_5 = child(li_5, true);
37591
37641
  reset(li_5);
37592
37642
  var li_6 = sibling(li_5, 2);
37593
- var node_4 = child(li_6);
37643
+ var node_5 = child(li_6);
37594
37644
  {
37595
37645
  let $0 = /* @__PURE__ */ user_derived(() => quantityLabel(item()));
37596
- QuantityControl(node_4, {
37646
+ QuantityControl(node_5, {
37597
37647
  get value() {
37598
37648
  return item().quantity;
37599
37649
  },
@@ -37612,9 +37662,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
37612
37662
  reset(li_6);
37613
37663
  reset(ul);
37614
37664
  reset(article);
37615
- var node_5 = sibling(article, 2);
37616
- var consequent_2 = ($$anchor) => {
37617
- var ul_1 = root_3$1();
37665
+ var node_6 = sibling(article, 2);
37666
+ var consequent_3 = ($$anchor) => {
37667
+ var ul_1 = root_4$1();
37618
37668
  each(ul_1, 21, () => subTicketDefs(get$2(mantleProduct)), (sub) => sub.id, ($$anchor, sub) => {
37619
37669
  {
37620
37670
  let $0 = /* @__PURE__ */ user_derived(() => item().mantle?.composition?.[get$2(sub).id] ?? 0);
@@ -37636,19 +37686,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
37636
37686
  template_effect(() => set_attribute(ul_1, "aria-label", get$2(mantleProduct).title));
37637
37687
  append($$anchor, ul_1);
37638
37688
  };
37639
- if_block(node_5, ($$render) => {
37640
- if (get$2(mantleProduct) && item().quantity > 0) $$render(consequent_2);
37689
+ if_block(node_6, ($$render) => {
37690
+ if (get$2(mantleProduct) && item().quantity > 0) $$render(consequent_3);
37641
37691
  });
37642
37692
  reset(li);
37643
37693
  template_effect(() => {
37644
37694
  set_class(article, 1, clsx(["go-tickets-item", get$2(capacity).bookedOut && "is-booked-out"]));
37645
37695
  set_attribute(article, "data-testid", item().uuid);
37646
- set_text(text_4, item().price_formatted);
37696
+ set_text(text_5, item().price_formatted);
37647
37697
  });
37648
37698
  append($$anchor, li);
37649
37699
  };
37650
37700
  if_block(node, ($$render) => {
37651
- if (get$2(capacity) && !get$2(capacity).unavailable) $$render(consequent_3);
37701
+ if (get$2(capacity) && !get$2(capacity).unavailable) $$render(consequent_4);
37652
37702
  });
37653
37703
  append($$anchor, fragment_2);
37654
37704
  return pop($$exports);