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