@gomusdev/web-components 1.28.0 → 1.30.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.
@@ -10979,7 +10979,13 @@ function isUIEventTicket(x) {
10979
10979
  }
10980
10980
  let uuid$1 = 1;
10981
10981
  function createUIEventTicket(apiTicket, dateId, options) {
10982
- const finalOptions = { minAvailableCapacity: 0, selectedTime: "", ...options ?? {} };
10982
+ const finalOptions = {
10983
+ minAvailableCapacity: 0,
10984
+ selectedTime: "",
10985
+ event_title: "",
10986
+ ...options ?? {},
10987
+ ...apiTicket
10988
+ };
10983
10989
  const product = {
10984
10990
  product_type: "Event",
10985
10991
  id: dateId,
@@ -12669,8 +12675,8 @@ class PersonalizationDetails {
12669
12675
  }
12670
12676
  const KEY$4 = "go-annual-ticket-personalization";
12671
12677
  const setPersonalizationDetails = createSetDetails(KEY$4);
12672
- var root_3$7 = /* @__PURE__ */ from_html(`<li><a>Personalize</a></li>`);
12673
- var root_2$s = /* @__PURE__ */ from_html(`<ul class="go-annual-ticket"><li class="go-annual-ticket-title"> </li> <li class="go-annual-ticket-personalization-count"> </li> <!></ul>`);
12678
+ var root_3$8 = /* @__PURE__ */ from_html(`<li><a>Personalize</a></li>`);
12679
+ var root_2$r = /* @__PURE__ */ from_html(`<ul class="go-annual-ticket"><li class="go-annual-ticket-title"> </li> <li class="go-annual-ticket-personalization-count"> </li> <!></ul>`);
12674
12680
  function AnnualTicketPersonalization($$anchor, $$props) {
12675
12681
  push($$props, true);
12676
12682
  let token = prop($$props, "token", 7);
@@ -12697,7 +12703,7 @@ function AnnualTicketPersonalization($$anchor, $$props) {
12697
12703
  var fragment_1 = comment();
12698
12704
  var node_1 = first_child(fragment_1);
12699
12705
  each(node_1, 17, () => get$2(order).ticket_sales, (ticketSale) => ticketSale.id, ($$anchor3, ticketSale) => {
12700
- var ul = root_2$s();
12706
+ var ul = root_2$r();
12701
12707
  var li = child(ul);
12702
12708
  var text2 = child(li, true);
12703
12709
  reset(li);
@@ -12707,7 +12713,7 @@ function AnnualTicketPersonalization($$anchor, $$props) {
12707
12713
  var node_2 = sibling(li_1, 2);
12708
12714
  {
12709
12715
  var consequent = ($$anchor4) => {
12710
- var li_2 = root_3$7();
12716
+ var li_2 = root_3$8();
12711
12717
  var a2 = child(li_2);
12712
12718
  reset(li_2);
12713
12719
  template_effect(($0) => set_attribute(a2, "href", $0), [() => details.goToPersonalization(get$2(ticketSale))]);
@@ -15816,10 +15822,12 @@ customElements.define("go-sign-up", create_custom_element(
15816
15822
  false
15817
15823
  ));
15818
15824
  var root_1$g = /* @__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);
15819
- var root$6 = /* @__PURE__ */ from_html(`<li data-go-cart-item-title=""><span class="go-cart-item-title" data-testid="cart-item-title"> </span> <!></li>`);
15825
+ var root$6 = /* @__PURE__ */ from_html(`<li data-go-cart-item-title=""><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> <!></li>`);
15820
15826
  function Event$2($$anchor, $$props) {
15821
15827
  push($$props, true);
15822
15828
  let cartItem = prop($$props, "cartItem", 7);
15829
+ if (!isUIEventTicket(cartItem().product)) throw new Error("Product is not an event ticket");
15830
+ const product = cartItem().product;
15823
15831
  var $$exports = {
15824
15832
  get cartItem() {
15825
15833
  return cartItem();
@@ -15831,22 +15839,27 @@ function Event$2($$anchor, $$props) {
15831
15839
  };
15832
15840
  var li = root$6();
15833
15841
  var span = child(li);
15834
- var text2 = child(span, true);
15842
+ var span_1 = child(span);
15843
+ var text2 = child(span_1, true);
15844
+ reset(span_1);
15845
+ var span_2 = sibling(span_1, 2);
15846
+ var text_1 = child(span_2, true);
15847
+ reset(span_2);
15835
15848
  reset(span);
15836
15849
  var node = sibling(span, 2);
15837
15850
  {
15838
15851
  var consequent = ($$anchor2) => {
15839
15852
  var fragment = root_1$g();
15840
- var span_1 = first_child(fragment);
15841
- var text_1 = child(span_1, true);
15842
- reset(span_1);
15843
- var span_2 = sibling(span_1, 2);
15844
- var text_2 = child(span_2, true);
15845
- reset(span_2);
15853
+ var span_3 = first_child(fragment);
15854
+ var text_2 = child(span_3, true);
15855
+ reset(span_3);
15856
+ var span_4 = sibling(span_3, 2);
15857
+ var text_3 = child(span_4, true);
15858
+ reset(span_4);
15846
15859
  template_effect(
15847
15860
  ($0, $1) => {
15848
- set_text(text_1, $0);
15849
- set_text(text_2, $1);
15861
+ set_text(text_2, $0);
15862
+ set_text(text_3, $1);
15850
15863
  },
15851
15864
  [
15852
15865
  () => formatDate(cartItem().time, { month: "numeric", day: "numeric" }, shop.locale),
@@ -15860,12 +15873,15 @@ function Event$2($$anchor, $$props) {
15860
15873
  });
15861
15874
  }
15862
15875
  reset(li);
15863
- template_effect(() => set_text(text2, cartItem().product.title));
15876
+ template_effect(() => {
15877
+ set_text(text2, product.event_title);
15878
+ set_text(text_1, product.title);
15879
+ });
15864
15880
  append($$anchor, li);
15865
15881
  return pop($$exports);
15866
15882
  }
15867
15883
  create_custom_element(Event$2, { cartItem: {} }, [], [], true);
15868
- var root_2$r = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
15884
+ var root_2$q = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
15869
15885
  var root_1$f = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
15870
15886
  var root$5 = /* @__PURE__ */ from_html(`<li data-go-cart-item-title=""><span class="go-cart-item-title" data-testid="cart-item-title"> </span> <!></li>`);
15871
15887
  function Ticket($$anchor, $$props) {
@@ -15894,7 +15910,7 @@ function Ticket($$anchor, $$props) {
15894
15910
  var node_1 = sibling(span_1, 2);
15895
15911
  {
15896
15912
  var consequent = ($$anchor3) => {
15897
- var span_2 = root_2$r();
15913
+ var span_2 = root_2$q();
15898
15914
  var text_2 = child(span_2, true);
15899
15915
  reset(span_2);
15900
15916
  template_effect(($0) => set_text(text_2, $0), [() => formatTime(cartItem().time)]);
@@ -15919,9 +15935,9 @@ function Ticket($$anchor, $$props) {
15919
15935
  return pop($$exports);
15920
15936
  }
15921
15937
  create_custom_element(Ticket, { cartItem: {} }, [], [], true);
15922
- var root_2$q = /* @__PURE__ */ from_html(`<li class="go-cart-header-remove" data-go-cart-header-remove=""></li>`);
15938
+ var root_2$p = /* @__PURE__ */ from_html(`<li class="go-cart-header-remove" data-go-cart-header-remove=""></li>`);
15923
15939
  var root_7$4 = /* @__PURE__ */ from_html(`<li class="go-cart-item-remove" data-go-cart-item-remove=""><button>⨉</button></li>`);
15924
- var root_3$6 = /* @__PURE__ */ from_html(`<li class="go-cart-item" data-go-cart-item=""><article><ul><!> <li class="go-cart-item-price" data-go-cart-item-price=""> </li> <li class="go-cart-item-count" data-go-cart-item-count=""> </li> <!> <li class="go-cart-item-sum" data-go-cart-item-sum=""> </li></ul></article></li>`);
15940
+ var root_3$7 = /* @__PURE__ */ from_html(`<li class="go-cart-item" data-go-cart-item=""><article><ul><!> <li class="go-cart-item-price" data-go-cart-item-price=""> </li> <li class="go-cart-item-count" data-go-cart-item-count=""> </li> <!> <li class="go-cart-item-sum" data-go-cart-item-sum=""> </li></ul></article></li>`);
15925
15941
  var root_8$1 = /* @__PURE__ */ from_html(`<li class="go-cart-footer-remove" data-go-cart-footer-remove=""></li>`);
15926
15942
  var root_1$e = /* @__PURE__ */ from_html(`<ol data-testid="cart"><li class="go-cart-header" data-go-cart-header="" data-testid="cart-header"><ul><li class="go-cart-header-title" data-go-cart-header-title=""> </li> <li class="go-cart-header-price" data-go-cart-header-price=""> </li> <li class="go-cart-header-count" data-go-cart-header-count=""> </li> <!> <li class="go-cart-header-sum" data-go-cart-header-sum=""> </li></ul></li> <!> <li class="go-cart-footer" data-go-cart-footer="" data-testid="cart-footer"><ul><li class="go-cart-footer-title" data-go-cart-footer-title=""></li> <li class="go-cart-footer-price" data-go-cart-footer-price=""></li> <li class="go-cart-footer-count" data-go-cart-footer-count=""></li> <!> <li class="go-cart-footer-sum" data-go-cart-footer-sum="" data-go-cart-sum=""> </li></ul></li></ol>`);
15927
15943
  function Cart($$anchor, $$props) {
@@ -15956,7 +15972,7 @@ function Cart($$anchor, $$props) {
15956
15972
  var node_1 = sibling(li_3, 2);
15957
15973
  {
15958
15974
  var consequent = ($$anchor3) => {
15959
- var li_4 = root_2$q();
15975
+ var li_4 = root_2$p();
15960
15976
  append($$anchor3, li_4);
15961
15977
  };
15962
15978
  if_block(node_1, ($$render) => {
@@ -15970,7 +15986,7 @@ function Cart($$anchor, $$props) {
15970
15986
  reset(li);
15971
15987
  var node_2 = sibling(li, 2);
15972
15988
  each(node_2, 17, () => get$2(cart).items, (cartItem) => cartItem.uuid, ($$anchor3, cartItem) => {
15973
- var li_6 = root_3$6();
15989
+ var li_6 = root_3$7();
15974
15990
  var article = child(li_6);
15975
15991
  var ul_1 = child(article);
15976
15992
  var node_3 = child(ul_1);
@@ -15996,7 +16012,7 @@ function Cart($$anchor, $$props) {
15996
16012
  if_block(
15997
16013
  node_4,
15998
16014
  ($$render) => {
15999
- if (get$2(cartItem).product.product_type == "Event") $$render(consequent_2);
16015
+ if (get$2(cartItem).product.product_type === "Event") $$render(consequent_2);
16000
16016
  },
16001
16017
  true
16002
16018
  );
@@ -16004,7 +16020,7 @@ function Cart($$anchor, $$props) {
16004
16020
  append($$anchor4, fragment_2);
16005
16021
  };
16006
16022
  if_block(node_3, ($$render) => {
16007
- if (get$2(cartItem).product.product_type == "Ticket") $$render(consequent_1);
16023
+ if (get$2(cartItem).product.product_type === "Ticket") $$render(consequent_1);
16008
16024
  else $$render(alternate, false);
16009
16025
  });
16010
16026
  }
@@ -21012,7 +21028,7 @@ class CalendarHeaderState {
21012
21028
  set(this.#props, value);
21013
21029
  }
21014
21030
  }
21015
- var root_2$p = /* @__PURE__ */ from_html(`<div><!></div>`);
21031
+ var root_2$o = /* @__PURE__ */ from_html(`<div><!></div>`);
21016
21032
  function Calendar$1($$anchor, $$props) {
21017
21033
  push($$props, true);
21018
21034
  let child$1 = 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), readonly2 = 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, [
@@ -21311,7 +21327,7 @@ function Calendar$1($$anchor, $$props) {
21311
21327
  append($$anchor2, fragment_1);
21312
21328
  };
21313
21329
  var alternate = ($$anchor2) => {
21314
- var div = root_2$p();
21330
+ var div = root_2$o();
21315
21331
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
21316
21332
  var node_2 = child(div);
21317
21333
  snippet(node_2, () => children() ?? noop$1, () => rootState.snippetProps);
@@ -21362,7 +21378,7 @@ create_custom_element(
21362
21378
  [],
21363
21379
  true
21364
21380
  );
21365
- var root_2$o = /* @__PURE__ */ from_html(`<div><!></div>`);
21381
+ var root_2$n = /* @__PURE__ */ from_html(`<div><!></div>`);
21366
21382
  function Calendar_day($$anchor, $$props) {
21367
21383
  const uid = props_id();
21368
21384
  push($$props, true);
@@ -21424,7 +21440,7 @@ function Calendar_day($$anchor, $$props) {
21424
21440
  append($$anchor2, fragment_1);
21425
21441
  };
21426
21442
  var alternate_1 = ($$anchor2) => {
21427
- var div = root_2$o();
21443
+ var div = root_2$n();
21428
21444
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
21429
21445
  var node_2 = child(div);
21430
21446
  {
@@ -21456,7 +21472,7 @@ function Calendar_day($$anchor, $$props) {
21456
21472
  return pop($$exports);
21457
21473
  }
21458
21474
  create_custom_element(Calendar_day, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
21459
- var root_2$n = /* @__PURE__ */ from_html(`<table><!></table>`);
21475
+ var root_2$m = /* @__PURE__ */ from_html(`<table><!></table>`);
21460
21476
  function Calendar_grid($$anchor, $$props) {
21461
21477
  const uid = props_id();
21462
21478
  push($$props, true);
@@ -21515,7 +21531,7 @@ function Calendar_grid($$anchor, $$props) {
21515
21531
  append($$anchor2, fragment_1);
21516
21532
  };
21517
21533
  var alternate = ($$anchor2) => {
21518
- var table = root_2$n();
21534
+ var table = root_2$m();
21519
21535
  attribute_effect(table, () => ({ ...get$2(mergedProps) }));
21520
21536
  var node_2 = child(table);
21521
21537
  snippet(node_2, () => children() ?? noop$1);
@@ -21531,7 +21547,7 @@ function Calendar_grid($$anchor, $$props) {
21531
21547
  return pop($$exports);
21532
21548
  }
21533
21549
  create_custom_element(Calendar_grid, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
21534
- var root_2$m = /* @__PURE__ */ from_html(`<tbody><!></tbody>`);
21550
+ var root_2$l = /* @__PURE__ */ from_html(`<tbody><!></tbody>`);
21535
21551
  function Calendar_grid_body($$anchor, $$props) {
21536
21552
  const uid = props_id();
21537
21553
  push($$props, true);
@@ -21590,7 +21606,7 @@ function Calendar_grid_body($$anchor, $$props) {
21590
21606
  append($$anchor2, fragment_1);
21591
21607
  };
21592
21608
  var alternate = ($$anchor2) => {
21593
- var tbody = root_2$m();
21609
+ var tbody = root_2$l();
21594
21610
  attribute_effect(tbody, () => ({ ...get$2(mergedProps) }));
21595
21611
  var node_2 = child(tbody);
21596
21612
  snippet(node_2, () => children() ?? noop$1);
@@ -21606,7 +21622,7 @@ function Calendar_grid_body($$anchor, $$props) {
21606
21622
  return pop($$exports);
21607
21623
  }
21608
21624
  create_custom_element(Calendar_grid_body, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
21609
- var root_2$l = /* @__PURE__ */ from_html(`<td><!></td>`);
21625
+ var root_2$k = /* @__PURE__ */ from_html(`<td><!></td>`);
21610
21626
  function Calendar_cell($$anchor, $$props) {
21611
21627
  const uid = props_id();
21612
21628
  push($$props, true);
@@ -21686,7 +21702,7 @@ function Calendar_cell($$anchor, $$props) {
21686
21702
  append($$anchor2, fragment_1);
21687
21703
  };
21688
21704
  var alternate = ($$anchor2) => {
21689
- var td = root_2$l();
21705
+ var td = root_2$k();
21690
21706
  attribute_effect(td, () => ({ ...get$2(mergedProps) }));
21691
21707
  var node_2 = child(td);
21692
21708
  snippet(node_2, () => children() ?? noop$1, () => cellState.snippetProps);
@@ -21715,7 +21731,7 @@ create_custom_element(
21715
21731
  [],
21716
21732
  true
21717
21733
  );
21718
- var root_2$k = /* @__PURE__ */ from_html(`<thead><!></thead>`);
21734
+ var root_2$j = /* @__PURE__ */ from_html(`<thead><!></thead>`);
21719
21735
  function Calendar_grid_head($$anchor, $$props) {
21720
21736
  const uid = props_id();
21721
21737
  push($$props, true);
@@ -21774,7 +21790,7 @@ function Calendar_grid_head($$anchor, $$props) {
21774
21790
  append($$anchor2, fragment_1);
21775
21791
  };
21776
21792
  var alternate = ($$anchor2) => {
21777
- var thead = root_2$k();
21793
+ var thead = root_2$j();
21778
21794
  attribute_effect(thead, () => ({ ...get$2(mergedProps) }));
21779
21795
  var node_2 = child(thead);
21780
21796
  snippet(node_2, () => children() ?? noop$1);
@@ -21790,7 +21806,7 @@ function Calendar_grid_head($$anchor, $$props) {
21790
21806
  return pop($$exports);
21791
21807
  }
21792
21808
  create_custom_element(Calendar_grid_head, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
21793
- var root_2$j = /* @__PURE__ */ from_html(`<th><!></th>`);
21809
+ var root_2$i = /* @__PURE__ */ from_html(`<th><!></th>`);
21794
21810
  function Calendar_head_cell($$anchor, $$props) {
21795
21811
  const uid = props_id();
21796
21812
  push($$props, true);
@@ -21849,7 +21865,7 @@ function Calendar_head_cell($$anchor, $$props) {
21849
21865
  append($$anchor2, fragment_1);
21850
21866
  };
21851
21867
  var alternate = ($$anchor2) => {
21852
- var th = root_2$j();
21868
+ var th = root_2$i();
21853
21869
  attribute_effect(th, () => ({ ...get$2(mergedProps) }));
21854
21870
  var node_2 = child(th);
21855
21871
  snippet(node_2, () => children() ?? noop$1);
@@ -21865,7 +21881,7 @@ function Calendar_head_cell($$anchor, $$props) {
21865
21881
  return pop($$exports);
21866
21882
  }
21867
21883
  create_custom_element(Calendar_head_cell, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
21868
- var root_2$i = /* @__PURE__ */ from_html(`<tr><!></tr>`);
21884
+ var root_2$h = /* @__PURE__ */ from_html(`<tr><!></tr>`);
21869
21885
  function Calendar_grid_row($$anchor, $$props) {
21870
21886
  const uid = props_id();
21871
21887
  push($$props, true);
@@ -21924,7 +21940,7 @@ function Calendar_grid_row($$anchor, $$props) {
21924
21940
  append($$anchor2, fragment_1);
21925
21941
  };
21926
21942
  var alternate = ($$anchor2) => {
21927
- var tr = root_2$i();
21943
+ var tr = root_2$h();
21928
21944
  attribute_effect(tr, () => ({ ...get$2(mergedProps) }));
21929
21945
  var node_2 = child(tr);
21930
21946
  snippet(node_2, () => children() ?? noop$1);
@@ -21940,7 +21956,7 @@ function Calendar_grid_row($$anchor, $$props) {
21940
21956
  return pop($$exports);
21941
21957
  }
21942
21958
  create_custom_element(Calendar_grid_row, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
21943
- var root_2$h = /* @__PURE__ */ from_html(`<header><!></header>`);
21959
+ var root_2$g = /* @__PURE__ */ from_html(`<header><!></header>`);
21944
21960
  function Calendar_header($$anchor, $$props) {
21945
21961
  const uid = props_id();
21946
21962
  push($$props, true);
@@ -21999,7 +22015,7 @@ function Calendar_header($$anchor, $$props) {
21999
22015
  append($$anchor2, fragment_1);
22000
22016
  };
22001
22017
  var alternate = ($$anchor2) => {
22002
- var header = root_2$h();
22018
+ var header = root_2$g();
22003
22019
  attribute_effect(header, () => ({ ...get$2(mergedProps) }));
22004
22020
  var node_2 = child(header);
22005
22021
  snippet(node_2, () => children() ?? noop$1);
@@ -22015,7 +22031,7 @@ function Calendar_header($$anchor, $$props) {
22015
22031
  return pop($$exports);
22016
22032
  }
22017
22033
  create_custom_element(Calendar_header, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22018
- var root_2$g = /* @__PURE__ */ from_html(`<div><!></div>`);
22034
+ var root_2$f = /* @__PURE__ */ from_html(`<div><!></div>`);
22019
22035
  function Calendar_heading($$anchor, $$props) {
22020
22036
  const uid = props_id();
22021
22037
  push($$props, true);
@@ -22077,7 +22093,7 @@ function Calendar_heading($$anchor, $$props) {
22077
22093
  append($$anchor2, fragment_1);
22078
22094
  };
22079
22095
  var alternate_1 = ($$anchor2) => {
22080
- var div = root_2$g();
22096
+ var div = root_2$f();
22081
22097
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
22082
22098
  var node_2 = child(div);
22083
22099
  {
@@ -22109,7 +22125,7 @@ function Calendar_heading($$anchor, $$props) {
22109
22125
  return pop($$exports);
22110
22126
  }
22111
22127
  create_custom_element(Calendar_heading, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22112
- var root_2$f = /* @__PURE__ */ from_html(`<button><!></button>`);
22128
+ var root_2$e = /* @__PURE__ */ from_html(`<button><!></button>`);
22113
22129
  function Calendar_next_button($$anchor, $$props) {
22114
22130
  const uid = props_id();
22115
22131
  push($$props, true);
@@ -22176,7 +22192,7 @@ function Calendar_next_button($$anchor, $$props) {
22176
22192
  append($$anchor2, fragment_1);
22177
22193
  };
22178
22194
  var alternate = ($$anchor2) => {
22179
- var button = root_2$f();
22195
+ var button = root_2$e();
22180
22196
  attribute_effect(button, () => ({ ...get$2(mergedProps) }));
22181
22197
  var node_2 = child(button);
22182
22198
  snippet(node_2, () => children() ?? noop$1);
@@ -22192,7 +22208,7 @@ function Calendar_next_button($$anchor, $$props) {
22192
22208
  return pop($$exports);
22193
22209
  }
22194
22210
  create_custom_element(Calendar_next_button, { children: {}, child: {}, id: {}, ref: {}, tabindex: {} }, [], [], true);
22195
- var root_2$e = /* @__PURE__ */ from_html(`<button><!></button>`);
22211
+ var root_2$d = /* @__PURE__ */ from_html(`<button><!></button>`);
22196
22212
  function Calendar_prev_button($$anchor, $$props) {
22197
22213
  const uid = props_id();
22198
22214
  push($$props, true);
@@ -22259,7 +22275,7 @@ function Calendar_prev_button($$anchor, $$props) {
22259
22275
  append($$anchor2, fragment_1);
22260
22276
  };
22261
22277
  var alternate = ($$anchor2) => {
22262
- var button = root_2$e();
22278
+ var button = root_2$d();
22263
22279
  attribute_effect(button, () => ({ ...get$2(mergedProps) }));
22264
22280
  var node_2 = child(button);
22265
22281
  snippet(node_2, () => children() ?? noop$1);
@@ -22277,7 +22293,7 @@ function Calendar_prev_button($$anchor, $$props) {
22277
22293
  create_custom_element(Calendar_prev_button, { children: {}, child: {}, id: {}, ref: {}, tabindex: {} }, [], [], true);
22278
22294
  enable_legacy_mode_flag();
22279
22295
  var root_1$d = /* @__PURE__ */ from_html(`<input/>`);
22280
- var root_2$d = /* @__PURE__ */ from_html(`<input/>`);
22296
+ var root_2$c = /* @__PURE__ */ from_html(`<input/>`);
22281
22297
  function Hidden_input($$anchor, $$props) {
22282
22298
  push($$props, true);
22283
22299
  let value = prop($$props, "value", 15), restProps = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy", "$$host", "value"]);
@@ -22304,7 +22320,7 @@ function Hidden_input($$anchor, $$props) {
22304
22320
  append($$anchor2, input);
22305
22321
  };
22306
22322
  var alternate = ($$anchor2) => {
22307
- var input_1 = root_2$d();
22323
+ var input_1 = root_2$c();
22308
22324
  attribute_effect(input_1, () => ({ ...get$2(mergedProps) }), void 0, void 0, void 0, void 0, true);
22309
22325
  bind_value(input_1, value);
22310
22326
  append($$anchor2, input_1);
@@ -27512,7 +27528,7 @@ function Date_field_hidden_input($$anchor, $$props) {
27512
27528
  pop();
27513
27529
  }
27514
27530
  create_custom_element(Date_field_hidden_input, {}, [], [], true);
27515
- var root_2$c = /* @__PURE__ */ from_html(`<div><!></div>`);
27531
+ var root_2$b = /* @__PURE__ */ from_html(`<div><!></div>`);
27516
27532
  var root$4 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
27517
27533
  function Date_field_input($$anchor, $$props) {
27518
27534
  const uid = props_id();
@@ -27584,7 +27600,7 @@ function Date_field_input($$anchor, $$props) {
27584
27600
  append($$anchor2, fragment_1);
27585
27601
  };
27586
27602
  var alternate = ($$anchor2) => {
27587
- var div = root_2$c();
27603
+ var div = root_2$b();
27588
27604
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
27589
27605
  var node_2 = child(div);
27590
27606
  snippet(node_2, () => children() ?? noop$1, () => ({ segments: inputState.root.segmentContents }));
@@ -27602,7 +27618,7 @@ function Date_field_input($$anchor, $$props) {
27602
27618
  return pop($$exports);
27603
27619
  }
27604
27620
  create_custom_element(Date_field_input, { id: {}, ref: {}, name: {}, children: {}, child: {} }, [], [], true);
27605
- var root_2$b = /* @__PURE__ */ from_html(`<div><!></div>`);
27621
+ var root_2$a = /* @__PURE__ */ from_html(`<div><!></div>`);
27606
27622
  function Date_field_label($$anchor, $$props) {
27607
27623
  const uid = props_id();
27608
27624
  push($$props, true);
@@ -27661,7 +27677,7 @@ function Date_field_label($$anchor, $$props) {
27661
27677
  append($$anchor2, fragment_1);
27662
27678
  };
27663
27679
  var alternate = ($$anchor2) => {
27664
- var div = root_2$b();
27680
+ var div = root_2$a();
27665
27681
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
27666
27682
  var node_2 = child(div);
27667
27683
  snippet(node_2, () => children() ?? noop$1);
@@ -27677,7 +27693,7 @@ function Date_field_label($$anchor, $$props) {
27677
27693
  return pop($$exports);
27678
27694
  }
27679
27695
  create_custom_element(Date_field_label, { id: {}, ref: {}, children: {}, child: {} }, [], [], true);
27680
- var root_2$a = /* @__PURE__ */ from_html(`<span><!></span>`);
27696
+ var root_2$9 = /* @__PURE__ */ from_html(`<span><!></span>`);
27681
27697
  function Date_field_segment($$anchor, $$props) {
27682
27698
  const uid = props_id();
27683
27699
  push($$props, true);
@@ -27744,7 +27760,7 @@ function Date_field_segment($$anchor, $$props) {
27744
27760
  append($$anchor2, fragment_1);
27745
27761
  };
27746
27762
  var alternate = ($$anchor2) => {
27747
- var span = root_2$a();
27763
+ var span = root_2$9();
27748
27764
  attribute_effect(span, () => ({ ...get$2(mergedProps) }));
27749
27765
  var node_2 = child(span);
27750
27766
  snippet(node_2, () => children() ?? noop$1);
@@ -28319,7 +28335,7 @@ create_custom_element(
28319
28335
  [],
28320
28336
  true
28321
28337
  );
28322
- var root_2$9 = /* @__PURE__ */ from_html(`<div><!></div>`);
28338
+ var root_2$8 = /* @__PURE__ */ from_html(`<div><!></div>`);
28323
28339
  function Date_picker_calendar($$anchor, $$props) {
28324
28340
  const uid = props_id();
28325
28341
  push($$props, true);
@@ -28406,7 +28422,7 @@ function Date_picker_calendar($$anchor, $$props) {
28406
28422
  append($$anchor2, fragment_1);
28407
28423
  };
28408
28424
  var alternate = ($$anchor2) => {
28409
- var div = root_2$9();
28425
+ var div = root_2$8();
28410
28426
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
28411
28427
  var node_2 = child(div);
28412
28428
  snippet(node_2, () => children() ?? noop$1, () => calendarState.snippetProps);
@@ -28422,7 +28438,7 @@ function Date_picker_calendar($$anchor, $$props) {
28422
28438
  return pop($$exports);
28423
28439
  }
28424
28440
  create_custom_element(Date_picker_calendar, { children: {}, child: {}, id: {}, ref: {} }, [], [], true);
28425
- var root_4$3 = /* @__PURE__ */ from_html(`<div><div><!></div></div>`);
28441
+ var root_4$4 = /* @__PURE__ */ from_html(`<div><div><!></div></div>`);
28426
28442
  var root_9$3 = /* @__PURE__ */ from_html(`<div><div><!></div></div>`);
28427
28443
  function Popover_content($$anchor, $$props) {
28428
28444
  const uid = props_id();
@@ -28557,7 +28573,7 @@ function Popover_content($$anchor, $$props) {
28557
28573
  append($$anchor4, fragment_3);
28558
28574
  };
28559
28575
  var alternate = ($$anchor4) => {
28560
- var div = root_4$3();
28576
+ var div = root_4$4();
28561
28577
  attribute_effect(div, () => ({ ...wrapperProps() }));
28562
28578
  var div_1 = child(div);
28563
28579
  attribute_effect(div_1, () => ({ ...get$2(finalProps) }));
@@ -28757,7 +28773,7 @@ function Date_picker_content($$anchor, $$props) {
28757
28773
  return pop($$exports);
28758
28774
  }
28759
28775
  create_custom_element(Date_picker_content, { ref: {}, onOpenAutoFocus: {} }, [], [], true);
28760
- var root_3$5 = /* @__PURE__ */ from_html(`<button><!></button>`);
28776
+ var root_3$6 = /* @__PURE__ */ from_html(`<button><!></button>`);
28761
28777
  function Popover_trigger($$anchor, $$props) {
28762
28778
  const uid = props_id();
28763
28779
  push($$props, true);
@@ -28841,7 +28857,7 @@ function Popover_trigger($$anchor, $$props) {
28841
28857
  append($$anchor3, fragment_2);
28842
28858
  };
28843
28859
  var alternate = ($$anchor3) => {
28844
- var button = root_3$5();
28860
+ var button = root_3$6();
28845
28861
  attribute_effect(button, () => ({ ...get$2(mergedProps) }));
28846
28862
  var node_2 = child(button);
28847
28863
  snippet(node_2, () => children() ?? noop$1);
@@ -28919,7 +28935,7 @@ function Date_picker_trigger($$anchor, $$props) {
28919
28935
  return pop($$exports);
28920
28936
  }
28921
28937
  create_custom_element(Date_picker_trigger, { ref: {}, onkeydown: {} }, [], [], true);
28922
- var root_2$8 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
28938
+ var root_2$7 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
28923
28939
  var root_7$3 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
28924
28940
  var root_9$2 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
28925
28941
  var root_6$2 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
@@ -28978,7 +28994,7 @@ function DatePicker_1($$anchor, $$props) {
28978
28994
  {
28979
28995
  const children = ($$anchor4, $$arg0) => {
28980
28996
  let segments = () => $$arg0?.().segments;
28981
- var fragment_2 = root_2$8();
28997
+ var fragment_2 = root_2$7();
28982
28998
  var node_3 = first_child(fragment_2);
28983
28999
  each(node_3, 17, segments, index$1, ($$anchor5, $$item) => {
28984
29000
  let part = () => get$2($$item).part;
@@ -29172,10 +29188,10 @@ function DatePicker_1($$anchor, $$props) {
29172
29188
  return pop($$exports);
29173
29189
  }
29174
29190
  create_custom_element(DatePicker_1, { dateString: {}, labelClass: {}, inputClass: {} }, [], [], true);
29175
- var root_2$7 = /* @__PURE__ */ from_html(`<span class="go-field-star" aria-hidden="true">*</span>`);
29191
+ var root_2$6 = /* @__PURE__ */ from_html(`<span class="go-field-star" aria-hidden="true">*</span>`);
29176
29192
  var root_1$a = /* @__PURE__ */ from_html(` <!>`, 1);
29177
- var root_3$4 = /* @__PURE__ */ from_html(`<label><!></label> <input/>`, 1);
29178
- var root_4$2 = /* @__PURE__ */ from_html(`<label><input/> <span class="go-checkbox-label"><!></span></label>`);
29193
+ var root_3$5 = /* @__PURE__ */ from_html(`<label><!></label> <input/>`, 1);
29194
+ var root_4$3 = /* @__PURE__ */ from_html(`<label><input/> <span class="go-checkbox-label"><!></span></label>`);
29179
29195
  var root_7$2 = /* @__PURE__ */ from_html(`<option> </option>`);
29180
29196
  var root_6$1 = /* @__PURE__ */ from_html(`<option disabled hidden="" selected> </option> <!>`, 1);
29181
29197
  var root_5$1 = /* @__PURE__ */ from_html(`<label><!></label> <select><!></select>`, 1);
@@ -29190,7 +29206,7 @@ function InputAndLabel($$anchor, $$props) {
29190
29206
  var node = sibling(text2);
29191
29207
  {
29192
29208
  var consequent = ($$anchor3) => {
29193
- var span = root_2$7();
29209
+ var span = root_2$6();
29194
29210
  append($$anchor3, span);
29195
29211
  };
29196
29212
  if_block(node, ($$render) => {
@@ -29201,7 +29217,7 @@ function InputAndLabel($$anchor, $$props) {
29201
29217
  append($$anchor2, fragment);
29202
29218
  };
29203
29219
  const input = ($$anchor2) => {
29204
- var fragment_1 = root_3$4();
29220
+ var fragment_1 = root_3$5();
29205
29221
  var label_1 = first_child(fragment_1);
29206
29222
  var node_1 = child(label_1);
29207
29223
  labelText(node_1);
@@ -29231,7 +29247,7 @@ function InputAndLabel($$anchor, $$props) {
29231
29247
  append($$anchor2, fragment_1);
29232
29248
  };
29233
29249
  const checkbox = ($$anchor2) => {
29234
- var label_2 = root_4$2();
29250
+ var label_2 = root_4$3();
29235
29251
  var input_2 = child(label_2);
29236
29252
  var event_handler = (e) => field(field().value = e.target.checked, true);
29237
29253
  attribute_effect(
@@ -29485,8 +29501,8 @@ create_custom_element(
29485
29501
  true
29486
29502
  );
29487
29503
  var root_1$9 = /* @__PURE__ */ from_html(`<span> </span>`);
29488
- var root_3$3 = /* @__PURE__ */ from_html(`<li> </li>`);
29489
- var root_2$6 = /* @__PURE__ */ from_html(`<ul class="go-field-errors" role="alert"></ul>`);
29504
+ var root_3$4 = /* @__PURE__ */ from_html(`<li> </li>`);
29505
+ var root_2$5 = /* @__PURE__ */ from_html(`<ul class="go-field-errors" role="alert"></ul>`);
29490
29506
  var root$3 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
29491
29507
  function Field($$anchor, $$props) {
29492
29508
  push($$props, true);
@@ -29585,9 +29601,9 @@ function Field($$anchor, $$props) {
29585
29601
  var node_2 = sibling(node_1, 2);
29586
29602
  {
29587
29603
  var consequent_1 = ($$anchor2) => {
29588
- var ul = root_2$6();
29604
+ var ul = root_2$5();
29589
29605
  each(ul, 21, () => get$2(allErrors), index$1, ($$anchor3, error) => {
29590
- var li = root_3$3();
29606
+ var li = root_3$4();
29591
29607
  var text_1 = child(li, true);
29592
29608
  reset(li);
29593
29609
  template_effect(() => set_text(text_1, get$2(error)));
@@ -29634,9 +29650,9 @@ function AllFields($$anchor, $$props) {
29634
29650
  pop();
29635
29651
  }
29636
29652
  customElements.define("go-all-fields", create_custom_element(AllFields, {}, [], [], false));
29637
- var root_2$5 = /* @__PURE__ */ from_html(`<p aria-live="assertive" class="sr-only"> </p>`);
29638
- var root_4$1 = /* @__PURE__ */ from_html(`<li> </li>`);
29639
- var root_3$2 = /* @__PURE__ */ from_html(`<ul class="go-error-feedback-api-errors"></ul>`);
29653
+ var root_2$4 = /* @__PURE__ */ from_html(`<p aria-live="assertive" class="sr-only"> </p>`);
29654
+ var root_4$2 = /* @__PURE__ */ from_html(`<li> </li>`);
29655
+ var root_3$3 = /* @__PURE__ */ from_html(`<ul class="go-error-feedback-api-errors"></ul>`);
29640
29656
  var root_5 = /* @__PURE__ */ from_html(`<p aria-hidden="true"> </p>`);
29641
29657
  var root_1$7 = /* @__PURE__ */ from_html(`<div><!> <!> <!></div>`);
29642
29658
  function ErrorsFeedback($$anchor, $$props) {
@@ -29666,7 +29682,7 @@ function ErrorsFeedback($$anchor, $$props) {
29666
29682
  var node_1 = child(div);
29667
29683
  {
29668
29684
  var consequent = ($$anchor3) => {
29669
- var p2 = root_2$5();
29685
+ var p2 = root_2$4();
29670
29686
  var text2 = child(p2, true);
29671
29687
  reset(p2);
29672
29688
  template_effect(($0) => set_text(text2, $0), [
@@ -29681,9 +29697,9 @@ function ErrorsFeedback($$anchor, $$props) {
29681
29697
  var node_2 = sibling(node_1, 2);
29682
29698
  {
29683
29699
  var consequent_1 = ($$anchor3) => {
29684
- var ul = root_3$2();
29700
+ var ul = root_3$3();
29685
29701
  each(ul, 21, () => get$2(details)?.apiErrors, index$1, ($$anchor4, error) => {
29686
- var li = root_4$1();
29702
+ var li = root_4$2();
29687
29703
  var text_1 = child(li, true);
29688
29704
  reset(li);
29689
29705
  template_effect(() => set_text(text_1, get$2(error)));
@@ -30159,7 +30175,7 @@ function Order($$anchor, $$props) {
30159
30175
  }
30160
30176
  customElements.define("go-order", create_custom_element(Order, { token: { attribute: "token", reflect: true, type: "String" } }, [], ["orderDetails"], false));
30161
30177
  var root_1$5 = /* @__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);
30162
- var root_2$4 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities"> </span>`, 1);
30178
+ var root_2$3 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities"> </span>`, 1);
30163
30179
  var root$1 = /* @__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">Download</a></li> <li class="go-order-breakdown-item-price"> </li> <li class="go-order-breakdown-passbook"></li></ul></article></li>`);
30164
30180
  function Event$1($$anchor, $$props) {
30165
30181
  push($$props, true);
@@ -30215,7 +30231,7 @@ function Event$1($$anchor, $$props) {
30215
30231
  }
30216
30232
  var node_1 = sibling(node, 2);
30217
30233
  each(node_1, 17, () => item().attributes.quantities, index$1, ($$anchor2, scalePrice) => {
30218
- var fragment_1 = root_2$4();
30234
+ var fragment_1 = root_2$3();
30219
30235
  var span_3 = sibling(first_child(fragment_1), 2);
30220
30236
  var text_3 = child(span_3);
30221
30237
  reset(span_3);
@@ -30246,12 +30262,12 @@ function Event$1($$anchor, $$props) {
30246
30262
  return pop($$exports);
30247
30263
  }
30248
30264
  create_custom_element(Event$1, { item: {}, orderDetails: {} }, [], [], true);
30249
- var root_4 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span> <span class="go-cart-item-time"> </span>`, 1);
30265
+ var root_4$1 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span> <span class="go-cart-item-time"> </span>`, 1);
30250
30266
  var root_6 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span>`);
30251
- var root_3$1 = /* @__PURE__ */ from_html(`<!> <br/> <a class="go-ticket-download" target="_blank">Download</a>`, 1);
30267
+ var root_3$2 = /* @__PURE__ */ from_html(`<!> <br/> <a class="go-ticket-download" target="_blank">Download</a>`, 1);
30252
30268
  var root_7$1 = /* @__PURE__ */ from_html(`<br/> <a class="go-ticket-personalization">Personalize</a>`, 1);
30253
30269
  var root_8 = /* @__PURE__ */ from_html(`<a aria-label="passbook link"><img alt="apple wallet icon"/></a>`);
30254
- var root_2$3 = /* @__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>`);
30270
+ var root_2$2 = /* @__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>`);
30255
30271
  var root_10 = /* @__PURE__ */ from_html(`<a class="go-ticket-download" target="_blank">Download</a>`);
30256
30272
  var root_11$1 = /* @__PURE__ */ from_html(`<a class="go-ticket-personalization">Personalize</a>`);
30257
30273
  var root_9 = /* @__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>`);
@@ -30282,7 +30298,7 @@ function TicketSale($$anchor, $$props) {
30282
30298
  var fragment_1 = comment();
30283
30299
  var node_1 = first_child(fragment_1);
30284
30300
  each(node_1, 17, () => ({ length: item().attributes.quantity }), index$1, ($$anchor3, $$item, index2) => {
30285
- var li = root_2$3();
30301
+ var li = root_2$2();
30286
30302
  var article = child(li);
30287
30303
  var ul = child(article);
30288
30304
  var li_1 = child(ul);
@@ -30295,11 +30311,11 @@ function TicketSale($$anchor, $$props) {
30295
30311
  {
30296
30312
  var consequent_2 = ($$anchor4) => {
30297
30313
  const barcodeId = /* @__PURE__ */ user_derived(() => item().attributes.barcodes[index2].id);
30298
- var fragment_2 = root_3$1();
30314
+ var fragment_2 = root_3$2();
30299
30315
  var node_3 = first_child(fragment_2);
30300
30316
  {
30301
30317
  var consequent = ($$anchor5) => {
30302
- var fragment_3 = root_4();
30318
+ var fragment_3 = root_4$1();
30303
30319
  var span_1 = first_child(fragment_3);
30304
30320
  var text_1 = child(span_1, true);
30305
30321
  reset(span_1);
@@ -30769,7 +30785,12 @@ async function loadEventScaledPricesTickets(segment) {
30769
30785
  const eid = tsd.eventIds[0];
30770
30786
  const eventDate = await shop.asyncFetch(() => shop.getEventDetailsOnDate(eid, segment.dateId));
30771
30787
  if (eventDate.prices) {
30772
- const UITickets = eventDate.prices.map((t) => createUIEventTicket(t, segment.dateId, { selectedTime: eventDate.start_time })) || [];
30788
+ console.log("Event Title", eventDate.event_title);
30789
+ debugger;
30790
+ const UITickets = eventDate.prices.map((t) => createUIEventTicket(t, segment.dateId, {
30791
+ selectedTime: eventDate.start_time,
30792
+ event_title: eventDate.event_title
30793
+ })) || [];
30773
30794
  segment.preCart = createCart(UITickets);
30774
30795
  } else console.warn("(loadEventScaledPricesTickets) event.prices is undefined");
30775
30796
  if (eventDate.seats) shop.capacityManager.addSeats(segment.dateId, eventDate.seats);
@@ -30970,6 +30991,9 @@ function selectedTime(product, tsd) {
30970
30991
  throw new Error(`(selectedTime) Unhandled Ticket Type: ${exhaustedChecking2}`);
30971
30992
  }
30972
30993
  case "Event":
30994
+ if (!isUIEventTicket(product)) {
30995
+ throw new Error("(selectedTime) this should not happen");
30996
+ }
30973
30997
  return product.selectedTime || "";
30974
30998
  default:
30975
30999
  const exhaustedChecking = product.product_type;
@@ -30998,10 +31022,31 @@ function generateQuantityOptions(min2, max2) {
30998
31022
  }
30999
31023
  return options;
31000
31024
  }
31001
- var root_2$2 = /* @__PURE__ */ from_html(`<option> </option>`);
31002
- var root_1$3 = /* @__PURE__ */ from_html(`<li><article data-go-ticket=""><ul><li class="go-tickets-item-title" data-go-tickets-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=""><select></select></li></ul></article></li>`);
31025
+ var root_1$3 = /* @__PURE__ */ from_html(`<span class="go-tickets-item-title-event-title"> </span> <span class="go-tickets-item-title-product-title"> </span>`, 1);
31026
+ var root_4 = /* @__PURE__ */ from_html(`<option> </option>`);
31027
+ var root_3$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=""><select></select></li></ul></article></li>`);
31003
31028
  function Item($$anchor, $$props) {
31004
31029
  push($$props, true);
31030
+ const scaled_title = ($$anchor2) => {
31031
+ var fragment = root_1$3();
31032
+ var span = first_child(fragment);
31033
+ var text2 = child(span, true);
31034
+ reset(span);
31035
+ var span_1 = sibling(span, 2);
31036
+ var text_1 = child(span_1, true);
31037
+ reset(span_1);
31038
+ template_effect(() => {
31039
+ set_text(text2, item().product.event_title);
31040
+ set_text(text_1, item().product.title);
31041
+ });
31042
+ append($$anchor2, fragment);
31043
+ };
31044
+ const default_title = ($$anchor2) => {
31045
+ next();
31046
+ var text_2 = text();
31047
+ template_effect(() => set_text(text_2, item().product.title));
31048
+ append($$anchor2, text_2);
31049
+ };
31005
31050
  let item = prop($$props, "item", 7), details = prop($$props, "details", 7);
31006
31051
  let capacity = /* @__PURE__ */ state(void 0);
31007
31052
  user_effect(() => {
@@ -31015,6 +31060,8 @@ function Item($$anchor, $$props) {
31015
31060
  ci.quantity = parseInt(el.value);
31016
31061
  ci.time = selectedTime(ci.product, tsd);
31017
31062
  }
31063
+ let titleSnippet = default_title;
31064
+ if (isUIEventTicket(item().product)) titleSnippet = scaled_title;
31018
31065
  var $$exports = {
31019
31066
  get item() {
31020
31067
  return item();
@@ -31031,35 +31078,35 @@ function Item($$anchor, $$props) {
31031
31078
  flushSync();
31032
31079
  }
31033
31080
  };
31034
- var fragment = comment();
31035
- var node = first_child(fragment);
31081
+ var fragment_2 = comment();
31082
+ var node = first_child(fragment_2);
31036
31083
  {
31037
31084
  var consequent = ($$anchor2) => {
31038
- var li = root_1$3();
31085
+ var li = root_3$1();
31039
31086
  var article = child(li);
31040
- let classes;
31041
31087
  var ul = child(article);
31042
31088
  var li_1 = child(ul);
31043
- var text2 = child(li_1, true);
31089
+ var node_1 = child(li_1);
31090
+ titleSnippet(node_1);
31044
31091
  reset(li_1);
31045
31092
  var li_2 = sibling(li_1, 2);
31046
- var node_1 = child(li_2);
31047
- html(node_1, () => item().product.description);
31093
+ var node_2 = child(li_2);
31094
+ html(node_2, () => item().product.description);
31048
31095
  reset(li_2);
31049
31096
  var li_3 = sibling(li_2, 2);
31050
- var text_1 = child(li_3, true);
31097
+ var text_3 = child(li_3, true);
31051
31098
  reset(li_3);
31052
31099
  var li_4 = sibling(li_3, 2);
31053
31100
  var select = child(li_4);
31054
31101
  select.__change = (e) => update(item(), e.target, details()?.ticketSelectionDetails);
31055
31102
  each(select, 21, () => generateQuantityOptions(get$2(capacity).min, get$2(capacity).max), index$1, ($$anchor3, q) => {
31056
- var option = root_2$2();
31057
- var text_2 = child(option, true);
31103
+ var option = root_4();
31104
+ var text_4 = child(option, true);
31058
31105
  reset(option);
31059
31106
  var option_value = {};
31060
31107
  template_effect(() => {
31061
31108
  set_selected(option, item().quantity === get$2(q).value);
31062
- set_text(text_2, get$2(q).label);
31109
+ set_text(text_4, get$2(q).label);
31063
31110
  if (option_value !== (option_value = get$2(q).value)) {
31064
31111
  option.value = (option.__value = get$2(q).value) ?? "";
31065
31112
  }
@@ -31072,10 +31119,12 @@ function Item($$anchor, $$props) {
31072
31119
  reset(article);
31073
31120
  reset(li);
31074
31121
  template_effect(() => {
31075
- classes = set_class(article, 1, "go-tickets-item", null, classes, { "is-booked-out": get$2(capacity).bookedOut });
31122
+ set_class(article, 1, clsx([
31123
+ "go-tickets-item",
31124
+ get$2(capacity).bookedOut && "is-booked-out"
31125
+ ]));
31076
31126
  set_attribute(article, "data-testid", item().uuid);
31077
- set_text(text2, item().product.title);
31078
- set_text(text_1, item().price_formatted);
31127
+ set_text(text_3, item().price_formatted);
31079
31128
  });
31080
31129
  append($$anchor2, li);
31081
31130
  };
@@ -31083,7 +31132,7 @@ function Item($$anchor, $$props) {
31083
31132
  if (get$2(capacity) && !get$2(capacity).unavailable) $$render(consequent);
31084
31133
  });
31085
31134
  }
31086
- append($$anchor, fragment);
31135
+ append($$anchor, fragment_2);
31087
31136
  return pop($$exports);
31088
31137
  }
31089
31138
  delegate(["change"]);
@@ -31208,18 +31257,8 @@ let Details$1 = class Details {
31208
31257
  return ret;
31209
31258
  }
31210
31259
  };
31211
- function dataAttr(name, condition, value = "") {
31212
- return function(element) {
31213
- const n = "data-go-" + name;
31214
- if (condition) {
31215
- element.setAttribute(n, value);
31216
- } else {
31217
- element.removeAttribute(n);
31218
- }
31219
- };
31220
- }
31221
31260
  var root_2$1 = /* @__PURE__ */ from_html(`<li><label> <input type="radio" name="timeslot"/></label></li>`);
31222
- var root_1$1 = /* @__PURE__ */ from_html(`<ul data-testid="timeslots" data-go-timeslots=""></ul>`);
31261
+ var root_1$1 = /* @__PURE__ */ from_html(`<ul data-testid="timeslots"></ul>`);
31223
31262
  function Timeslots($$anchor, $$props) {
31224
31263
  push($$props, true);
31225
31264
  const binding_group = [];
@@ -31249,10 +31288,12 @@ function Timeslots($$anchor, $$props) {
31249
31288
  var input_value;
31250
31289
  reset(label);
31251
31290
  reset(li);
31252
- attach(li, () => dataAttr("selected", get$2(selected)));
31253
31291
  template_effect(() => {
31254
- set_class(li, 1, clsx(timeslot.capacity == 0 ? "sold-out" : ""));
31255
- set_class(label, 1, clsx(timeslot.available ? "" : "disabled"));
31292
+ set_class(li, 1, clsx([
31293
+ timeslot.capacity === 0 && "is-sold-out",
31294
+ !timeslot.available && "is-disabled",
31295
+ get$2(selected) && "is-selected"
31296
+ ]));
31256
31297
  set_text(text2, `${timeslot.timeFormatted ?? ""} `);
31257
31298
  input.disabled = timeslot.capacity == 0;
31258
31299
  set_attribute(input, "aria-disabled", timeslot.capacity == 0);
@@ -31540,18 +31581,28 @@ function CalendarUI($$anchor, $$props) {
31540
31581
  children: ($$anchor13, $$slotProps4) => {
31541
31582
  var fragment_11 = comment();
31542
31583
  var node_16 = first_child(fragment_11);
31543
- component(node_16, () => Calendar_day, ($$anchor14, Calendar_Day) => {
31544
- Calendar_Day($$anchor14, {
31545
- class: "go-calendar-day",
31546
- children: ($$anchor15, $$slotProps5) => {
31547
- next();
31548
- var text_3 = text();
31549
- template_effect(() => set_text(text_3, get$2(date2).day));
31550
- append($$anchor15, text_3);
31551
- },
31552
- $$slots: { default: true }
31584
+ {
31585
+ let $0 = /* @__PURE__ */ user_derived(() => [
31586
+ "go-calendar-day",
31587
+ calendarClass().isDateUnavailable(get$2(date2)) && "is-unavailable",
31588
+ calendarClass().isDateDisabled(get$2(date2)) && "is-disabled",
31589
+ calendarClass().selected === get$2(date2) && "is-selected"
31590
+ ]);
31591
+ component(node_16, () => Calendar_day, ($$anchor14, Calendar_Day) => {
31592
+ Calendar_Day($$anchor14, {
31593
+ get class() {
31594
+ return get$2($0);
31595
+ },
31596
+ children: ($$anchor15, $$slotProps5) => {
31597
+ next();
31598
+ var text_3 = text();
31599
+ template_effect(() => set_text(text_3, get$2(date2).day));
31600
+ append($$anchor15, text_3);
31601
+ },
31602
+ $$slots: { default: true }
31603
+ });
31553
31604
  });
31554
- });
31605
+ }
31555
31606
  append($$anchor13, fragment_11);
31556
31607
  },
31557
31608
  $$slots: { default: true }
@@ -31692,7 +31743,7 @@ class Details2 {
31692
31743
  return ret;
31693
31744
  }
31694
31745
  }
31695
- var root = /* @__PURE__ */ from_html(`<button data-add-to-cart-button="" data-testid="go-add-to-cart-button__button">Add to cart</button>`);
31746
+ var root = /* @__PURE__ */ from_html(`<button data-add-to-cart-button="" data-testid="go-add-to-cart-button__button"> </button>`);
31696
31747
  function AddToCartButton($$anchor, $$props) {
31697
31748
  push($$props, true);
31698
31749
  const _tsd = getTicketSelectionDetails($$props.$$host);
@@ -31700,14 +31751,18 @@ function AddToCartButton($$anchor, $$props) {
31700
31751
  var $$exports = { details };
31701
31752
  var button = root();
31702
31753
  button.__click = () => details.addToCart();
31754
+ var text2 = child(button, true);
31755
+ reset(button);
31703
31756
  template_effect(
31704
- ($0, $1) => {
31757
+ ($0, $1, $2) => {
31705
31758
  button.disabled = $0;
31706
31759
  set_attribute(button, "data-x", $1);
31760
+ set_text(text2, $2);
31707
31761
  },
31708
31762
  [
31709
31763
  () => !details.anyTicketsSelected(),
31710
- () => !details.anyTicketsSelected()
31764
+ () => !details.anyTicketsSelected(),
31765
+ () => shop.t("common.actions.cart")
31711
31766
  ]
31712
31767
  );
31713
31768
  append($$anchor, button);