@gomusdev/web-components 1.25.2 → 1.25.4

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.
@@ -4006,28 +4006,6 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
4006
4006
  branches.ensure(component2, component2 && ((target) => render_fn(target, component2)));
4007
4007
  }, EFFECT_TRANSPARENT);
4008
4008
  }
4009
- function append_styles$1(anchor, css) {
4010
- effect(() => {
4011
- var root2 = anchor.getRootNode();
4012
- var target = (
4013
- /** @type {ShadowRoot} */
4014
- root2.host ? (
4015
- /** @type {ShadowRoot} */
4016
- root2
4017
- ) : (
4018
- /** @type {Document} */
4019
- root2.head ?? /** @type {Document} */
4020
- root2.ownerDocument.head
4021
- )
4022
- );
4023
- if (!target.querySelector("#" + css.hash)) {
4024
- const style = document.createElement("style");
4025
- style.id = css.hash;
4026
- style.textContent = css.code;
4027
- target.appendChild(style);
4028
- }
4029
- });
4030
- }
4031
4009
  function attach(node, get_fn) {
4032
4010
  var fn = void 0;
4033
4011
  var e;
@@ -10987,8 +10965,6 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
10987
10965
  quotaManager.setPrecartItemQuantity(product.id, i.quantity);
10988
10966
  }
10989
10967
  }
10990
- console.log("checking quotas for", p2.id, "on", p2.selectedTime);
10991
- console.log("available timeslots", quotaManager.timeslots());
10992
10968
  const cap = quotaManager.ticketCapacity(p2.id, p2.selectedTime);
10993
10969
  const total = quotaManager.totalCapacity(p2.id, p2.selectedTime);
10994
10970
  return {
@@ -11003,7 +10979,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
11003
10979
  }
11004
10980
  let uuid$1 = 1;
11005
10981
  function createUIEventTicket(apiTicket, dateId, options) {
11006
- const finalOptions = { minAvailableCapacity: 0, selectedTime: "", ...{} };
10982
+ const finalOptions = { minAvailableCapacity: 0, selectedTime: "", ...options ?? {} };
11007
10983
  const product = {
11008
10984
  product_type: "Event",
11009
10985
  id: dateId,
@@ -12358,9 +12334,6 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
12358
12334
  return get$2(this.#data).capacityManager;
12359
12335
  }
12360
12336
  get cart() {
12361
- if (!get$2(this.#data).cart) {
12362
- get$2(this.#data).cart = createMainCart();
12363
- }
12364
12337
  return get$2(this.#data).cart;
12365
12338
  }
12366
12339
  get auth() {
@@ -12694,7 +12667,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
12694
12667
  const KEY$4 = "go-annual-ticket-personalization";
12695
12668
  const setPersonalizationDetails = createSetDetails(KEY$4);
12696
12669
  var root_3$7 = /* @__PURE__ */ from_html(`<li><a>Personalize</a></li>`);
12697
- var root_2$q = /* @__PURE__ */ from_html(`<ul class="go-annual-ticket"><li class="go-annual-ticket-title"> </li> <li class="go-annual-ticket-personalization-count"> </li> <!></ul>`);
12670
+ 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>`);
12698
12671
  function AnnualTicketPersonalization($$anchor, $$props) {
12699
12672
  push($$props, true);
12700
12673
  let token = prop($$props, "token", 7);
@@ -12721,7 +12694,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
12721
12694
  var fragment_1 = comment();
12722
12695
  var node_1 = first_child(fragment_1);
12723
12696
  each(node_1, 17, () => get$2(order).ticket_sales, (ticketSale) => ticketSale.id, ($$anchor3, ticketSale) => {
12724
- var ul = root_2$q();
12697
+ var ul = root_2$s();
12725
12698
  var li = child(ul);
12726
12699
  var text2 = child(li, true);
12727
12700
  reset(li);
@@ -15652,7 +15625,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15652
15625
  host.replaceChildren(element);
15653
15626
  return element;
15654
15627
  }
15655
- var root_1$g = /* @__PURE__ */ from_html(`<go-all-fields></go-all-fields> <go-form-feedback><go-errors-feedback></go-errors-feedback> <go-success-feedback></go-success-feedback></go-form-feedback> <go-submit>Submit</go-submit>`, 3);
15628
+ var root_1$h = /* @__PURE__ */ from_html(`<go-all-fields></go-all-fields> <go-form-feedback><go-errors-feedback></go-errors-feedback> <go-success-feedback></go-success-feedback></go-form-feedback> <go-submit>Submit</go-submit>`, 3);
15656
15629
  function Form($$anchor, $$props) {
15657
15630
  push($$props, true);
15658
15631
  let formId = prop($$props, "formId", 7), custom2 = prop($$props, "custom", 7);
@@ -15693,7 +15666,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15693
15666
  var node = first_child(fragment);
15694
15667
  {
15695
15668
  var consequent = ($$anchor2) => {
15696
- var fragment_1 = root_1$g();
15669
+ var fragment_1 = root_1$h();
15697
15670
  var go_all_fields = first_child(fragment_1);
15698
15671
  var go_form_feedback = sibling(go_all_fields, 2);
15699
15672
  sibling(go_form_feedback, 2);
@@ -15716,7 +15689,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15716
15689
  ["details"],
15717
15690
  false
15718
15691
  ));
15719
- var root$8 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15692
+ var root$9 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15720
15693
  function PasswordReset($$anchor, $$props) {
15721
15694
  push($$props, true);
15722
15695
  let form;
@@ -15750,7 +15723,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15750
15723
  flushSync();
15751
15724
  }
15752
15725
  };
15753
- var go_form = root$8();
15726
+ var go_form = root$9();
15754
15727
  set_custom_element_data(go_form, "formId", "passwordReset");
15755
15728
  template_effect(() => set_custom_element_data(go_form, "custom", custom2()));
15756
15729
  bind_this(go_form, ($$value) => form = $$value, () => form);
@@ -15758,7 +15731,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15758
15731
  return pop($$exports);
15759
15732
  }
15760
15733
  customElements.define("go-password-reset", create_custom_element(PasswordReset, { custom: {} }, [], [], false));
15761
- var root$7 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15734
+ var root$8 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15762
15735
  function SignIn($$anchor, $$props) {
15763
15736
  push($$props, true);
15764
15737
  let form;
@@ -15783,7 +15756,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15783
15756
  onMount(() => {
15784
15757
  $$props.$$host.addEventListener("go-submit", signIn);
15785
15758
  });
15786
- var go_form = root$7();
15759
+ var go_form = root$8();
15787
15760
  set_custom_element_data(go_form, "formId", "signIn");
15788
15761
  bind_this(go_form, ($$value) => form = $$value, () => form);
15789
15762
  append($$anchor, go_form);
@@ -15798,7 +15771,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15798
15771
  [],
15799
15772
  false
15800
15773
  ));
15801
- var root$6 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15774
+ var root$7 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15802
15775
  function SignUp($$anchor, $$props) {
15803
15776
  push($$props, true);
15804
15777
  Forms.defineForm({
@@ -15835,7 +15808,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15835
15808
  onMount(() => {
15836
15809
  $$props.$$host.addEventListener("go-submit", signUp);
15837
15810
  });
15838
- var go_form = root$6();
15811
+ var go_form = root$7();
15839
15812
  set_custom_element_data(go_form, "formId", "signUp");
15840
15813
  bind_this(go_form, ($$value) => form = $$value, () => form);
15841
15814
  append($$anchor, go_form);
@@ -15850,14 +15823,116 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15850
15823
  [],
15851
15824
  false
15852
15825
  ));
15853
- var root_2$p = /* @__PURE__ */ from_html(`<li data-go-cart-header-remove="">remove</li>`);
15854
- var root_5$2 = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
15855
- var root_4$4 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
15856
- var root_6$2 = /* @__PURE__ */ from_html(`<li data-go-cart-item-remove=""><button>⨉</button></li>`);
15857
- var root_3$6 = /* @__PURE__ */ from_html(`<li data-go-cart-item=""><article><ul><li data-go-cart-item-title=""><span class="go-cart-item-title" data-testid="cart-item-title"> </span> <!></li> <li data-go-cart-item-price=""> </li> <li data-go-cart-item-count=""> </li> <!> <li data-go-cart-item-sum=""> </li></ul></article></li>`);
15858
- var root_7$4 = /* @__PURE__ */ from_html(`<li data-go-cart-footer-remove=""></li>`);
15859
- var root_8$1 = /* @__PURE__ */ from_html(`<a href="javascript:void(0);" class="go-cart-checkout-button" data-testid="checkout-button">Checkout</a>`);
15860
- var root_1$f = /* @__PURE__ */ from_html(`<ol data-testid="cart"><li data-go-cart-header="" data-testid="cart-header"><ul><li data-go-cart-header-title="">Product</li> <li data-go-cart-header-price="">Price</li> <li data-go-cart-header-count="">Count</li> <!> <li data-go-cart-header-sum="">Sum</li></ul></li> <!> <li data-go-cart-footer="" data-testid="cart-footer"><ul><li data-go-cart-footer-title=""></li> <li data-go-cart-footer-price=""></li> <li data-go-cart-footer-count=""></li> <!> <li data-go-cart-footer-sum="" data-go-cart-sum=""> </li></ul></li></ol> <!>`, 1);
15826
+ 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);
15827
+ 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>`);
15828
+ function Event$2($$anchor, $$props) {
15829
+ push($$props, true);
15830
+ let cartItem = prop($$props, "cartItem", 7);
15831
+ var $$exports = {
15832
+ get cartItem() {
15833
+ return cartItem();
15834
+ },
15835
+ set cartItem($$value) {
15836
+ cartItem($$value);
15837
+ flushSync();
15838
+ }
15839
+ };
15840
+ var li = root$6();
15841
+ var span = child(li);
15842
+ var text2 = child(span, true);
15843
+ reset(span);
15844
+ var node = sibling(span, 2);
15845
+ {
15846
+ var consequent = ($$anchor2) => {
15847
+ var fragment = root_1$g();
15848
+ var span_1 = first_child(fragment);
15849
+ var text_1 = child(span_1, true);
15850
+ reset(span_1);
15851
+ var span_2 = sibling(span_1, 2);
15852
+ var text_2 = child(span_2, true);
15853
+ reset(span_2);
15854
+ template_effect(
15855
+ ($0, $1) => {
15856
+ set_text(text_1, $0);
15857
+ set_text(text_2, $1);
15858
+ },
15859
+ [
15860
+ () => formatDate(cartItem().time, { month: "numeric", day: "numeric" }, shop.locale),
15861
+ () => formatTime(cartItem().time)
15862
+ ]
15863
+ );
15864
+ append($$anchor2, fragment);
15865
+ };
15866
+ if_block(node, ($$render) => {
15867
+ if (cartItem().time) $$render(consequent);
15868
+ });
15869
+ }
15870
+ reset(li);
15871
+ template_effect(() => set_text(text2, cartItem().product.title));
15872
+ append($$anchor, li);
15873
+ return pop($$exports);
15874
+ }
15875
+ create_custom_element(Event$2, { cartItem: {} }, [], [], true);
15876
+ var root_2$r = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
15877
+ var root_1$f = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
15878
+ 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>`);
15879
+ function Ticket($$anchor, $$props) {
15880
+ push($$props, true);
15881
+ let cartItem = prop($$props, "cartItem", 7);
15882
+ var $$exports = {
15883
+ get cartItem() {
15884
+ return cartItem();
15885
+ },
15886
+ set cartItem($$value) {
15887
+ cartItem($$value);
15888
+ flushSync();
15889
+ }
15890
+ };
15891
+ var li = root$5();
15892
+ var span = child(li);
15893
+ var text2 = child(span, true);
15894
+ reset(span);
15895
+ var node = sibling(span, 2);
15896
+ {
15897
+ var consequent_1 = ($$anchor2) => {
15898
+ var fragment = root_1$f();
15899
+ var span_1 = first_child(fragment);
15900
+ var text_1 = child(span_1, true);
15901
+ reset(span_1);
15902
+ var node_1 = sibling(span_1, 2);
15903
+ {
15904
+ var consequent = ($$anchor3) => {
15905
+ var span_2 = root_2$r();
15906
+ var text_2 = child(span_2, true);
15907
+ reset(span_2);
15908
+ template_effect(($0) => set_text(text_2, $0), [() => formatTime(cartItem().time)]);
15909
+ append($$anchor3, span_2);
15910
+ };
15911
+ if_block(node_1, ($$render) => {
15912
+ if (cartItem().product.type === "timeslot") $$render(consequent);
15913
+ });
15914
+ }
15915
+ template_effect(($0) => set_text(text_1, $0), [
15916
+ () => formatDate(cartItem().time, { month: "numeric", day: "numeric" }, shop.locale)
15917
+ ]);
15918
+ append($$anchor2, fragment);
15919
+ };
15920
+ if_block(node, ($$render) => {
15921
+ if (cartItem().time) $$render(consequent_1);
15922
+ });
15923
+ }
15924
+ reset(li);
15925
+ template_effect(() => set_text(text2, cartItem().product.title));
15926
+ append($$anchor, li);
15927
+ return pop($$exports);
15928
+ }
15929
+ create_custom_element(Ticket, { cartItem: {} }, [], [], true);
15930
+ var root_2$q = /* @__PURE__ */ from_html(`<li data-go-cart-header-remove="">remove</li>`);
15931
+ var root_7$4 = /* @__PURE__ */ from_html(`<li data-go-cart-item-remove=""><button>⨉</button></li>`);
15932
+ var root_3$6 = /* @__PURE__ */ from_html(`<li data-go-cart-item=""><article><ul><!> <li data-go-cart-item-price=""> </li> <li data-go-cart-item-count=""> </li> <!> <li data-go-cart-item-sum=""> </li></ul></article></li>`);
15933
+ var root_8$1 = /* @__PURE__ */ from_html(`<li data-go-cart-footer-remove=""></li>`);
15934
+ var root_9$4 = /* @__PURE__ */ from_html(`<a href="javascript:void(0);" class="go-cart-checkout-button" data-testid="checkout-button">Checkout</a>`);
15935
+ var root_1$e = /* @__PURE__ */ from_html(`<ol data-testid="cart"><li data-go-cart-header="" data-testid="cart-header"><ul><li data-go-cart-header-title="">Product</li> <li data-go-cart-header-price="">Price</li> <li data-go-cart-header-count="">Count</li> <!> <li data-go-cart-header-sum="">Sum</li></ul></li> <!> <li data-go-cart-footer="" data-testid="cart-footer"><ul><li data-go-cart-footer-title=""></li> <li data-go-cart-footer-price=""></li> <li data-go-cart-footer-count=""></li> <!> <li data-go-cart-footer-sum="" data-go-cart-sum=""> </li></ul></li></ol> <!>`, 1);
15861
15936
  function Cart($$anchor, $$props) {
15862
15937
  push($$props, true);
15863
15938
  const preview = prop($$props, "preview", 7, false);
@@ -15866,6 +15941,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15866
15941
  go.config.navigateTo(go.config.urls.checkoutForm());
15867
15942
  }
15868
15943
  }
15944
+ let cart = /* @__PURE__ */ user_derived(() => shop.cart);
15869
15945
  var $$exports = {
15870
15946
  get preview() {
15871
15947
  return preview();
@@ -15879,14 +15955,14 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15879
15955
  var node = first_child(fragment);
15880
15956
  {
15881
15957
  var consequent_6 = ($$anchor2) => {
15882
- var fragment_1 = root_1$f();
15958
+ var fragment_1 = root_1$e();
15883
15959
  var ol = first_child(fragment_1);
15884
15960
  var li = child(ol);
15885
15961
  var ul = child(li);
15886
15962
  var node_1 = sibling(child(ul), 6);
15887
15963
  {
15888
15964
  var consequent = ($$anchor3) => {
15889
- var li_1 = root_2$p();
15965
+ var li_1 = root_2$q();
15890
15966
  append($$anchor3, li_1);
15891
15967
  };
15892
15968
  if_block(node_1, ($$render) => {
@@ -15897,100 +15973,100 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15897
15973
  reset(ul);
15898
15974
  reset(li);
15899
15975
  var node_2 = sibling(li, 2);
15900
- each(node_2, 17, () => shop.cart.items, (cartItem) => cartItem.uuid, ($$anchor3, cartItem) => {
15976
+ each(node_2, 17, () => get$2(cart).items, (cartItem) => cartItem.uuid, ($$anchor3, cartItem) => {
15901
15977
  var li_2 = root_3$6();
15902
15978
  var article = child(li_2);
15903
15979
  var ul_1 = child(article);
15904
- var li_3 = child(ul_1);
15905
- var span = child(li_3);
15906
- var text2 = child(span, true);
15907
- reset(span);
15908
- var node_3 = sibling(span, 2);
15980
+ var node_3 = child(ul_1);
15909
15981
  {
15910
- var consequent_2 = ($$anchor4) => {
15911
- var fragment_2 = root_4$4();
15912
- var span_1 = first_child(fragment_2);
15913
- var text_1 = child(span_1, true);
15914
- reset(span_1);
15915
- var node_4 = sibling(span_1, 2);
15982
+ var consequent_1 = ($$anchor4) => {
15983
+ Ticket($$anchor4, {
15984
+ get cartItem() {
15985
+ return get$2(cartItem);
15986
+ }
15987
+ });
15988
+ };
15989
+ var alternate = ($$anchor4) => {
15990
+ var fragment_3 = comment();
15991
+ var node_4 = first_child(fragment_3);
15916
15992
  {
15917
- var consequent_1 = ($$anchor5) => {
15918
- var span_2 = root_5$2();
15919
- var text_2 = child(span_2, true);
15920
- reset(span_2);
15921
- template_effect(($0) => set_text(text_2, $0), [() => formatTime(get$2(cartItem).time)]);
15922
- append($$anchor5, span_2);
15993
+ var consequent_2 = ($$anchor5) => {
15994
+ Event$2($$anchor5, {
15995
+ get cartItem() {
15996
+ return get$2(cartItem);
15997
+ }
15998
+ });
15923
15999
  };
15924
- if_block(node_4, ($$render) => {
15925
- if (get$2(cartItem).product.type === "timeslot") $$render(consequent_1);
15926
- });
16000
+ if_block(
16001
+ node_4,
16002
+ ($$render) => {
16003
+ if (get$2(cartItem).product.product_type == "Event") $$render(consequent_2);
16004
+ },
16005
+ true
16006
+ );
15927
16007
  }
15928
- template_effect(($0) => set_text(text_1, $0), [
15929
- () => formatDate(get$2(cartItem).time, { month: "numeric", day: "numeric" }, shop.locale)
15930
- ]);
15931
- append($$anchor4, fragment_2);
16008
+ append($$anchor4, fragment_3);
15932
16009
  };
15933
16010
  if_block(node_3, ($$render) => {
15934
- if (get$2(cartItem).product.type === "timeslot" && get$2(cartItem).time) $$render(consequent_2);
16011
+ if (get$2(cartItem).product.product_type == "Ticket") $$render(consequent_1);
16012
+ else $$render(alternate, false);
15935
16013
  });
15936
16014
  }
16015
+ var li_3 = sibling(node_3, 2);
16016
+ var text2 = child(li_3, true);
15937
16017
  reset(li_3);
15938
16018
  var li_4 = sibling(li_3, 2);
15939
- var text_3 = child(li_4, true);
16019
+ var text_1 = child(li_4, true);
15940
16020
  reset(li_4);
15941
- var li_5 = sibling(li_4, 2);
15942
- var text_4 = child(li_5, true);
15943
- reset(li_5);
15944
- var node_5 = sibling(li_5, 2);
16021
+ var node_5 = sibling(li_4, 2);
15945
16022
  {
15946
16023
  var consequent_3 = ($$anchor4) => {
15947
- var li_6 = root_6$2();
15948
- var button = child(li_6);
15949
- button.__click = () => shop.cart.deleteItem(get$2(cartItem));
15950
- reset(li_6);
15951
- append($$anchor4, li_6);
16024
+ var li_5 = root_7$4();
16025
+ var button = child(li_5);
16026
+ button.__click = () => get$2(cart).deleteItem(get$2(cartItem));
16027
+ reset(li_5);
16028
+ append($$anchor4, li_5);
15952
16029
  };
15953
16030
  if_block(node_5, ($$render) => {
15954
16031
  if (!preview()) $$render(consequent_3);
15955
16032
  });
15956
16033
  }
15957
- var li_7 = sibling(node_5, 2);
15958
- var text_5 = child(li_7, true);
15959
- reset(li_7);
16034
+ var li_6 = sibling(node_5, 2);
16035
+ var text_2 = child(li_6, true);
16036
+ reset(li_6);
15960
16037
  reset(ul_1);
15961
16038
  reset(article);
15962
16039
  reset(li_2);
15963
16040
  template_effect(() => {
15964
16041
  set_attribute(article, "data-testid", get$2(cartItem).uuid);
15965
- set_text(text2, get$2(cartItem).product.title);
15966
- set_text(text_3, get$2(cartItem).final_price_formatted);
15967
- set_text(text_4, get$2(cartItem).quantity);
15968
- set_text(text_5, get$2(cartItem).total_price_formatted);
16042
+ set_text(text2, get$2(cartItem).final_price_formatted);
16043
+ set_text(text_1, get$2(cartItem).quantity);
16044
+ set_text(text_2, get$2(cartItem).total_price_formatted);
15969
16045
  });
15970
16046
  append($$anchor3, li_2);
15971
16047
  });
15972
- var li_8 = sibling(node_2, 2);
15973
- var ul_2 = child(li_8);
16048
+ var li_7 = sibling(node_2, 2);
16049
+ var ul_2 = child(li_7);
15974
16050
  var node_6 = sibling(child(ul_2), 6);
15975
16051
  {
15976
16052
  var consequent_4 = ($$anchor3) => {
15977
- var li_9 = root_7$4();
15978
- append($$anchor3, li_9);
16053
+ var li_8 = root_8$1();
16054
+ append($$anchor3, li_8);
15979
16055
  };
15980
16056
  if_block(node_6, ($$render) => {
15981
16057
  if (!preview()) $$render(consequent_4);
15982
16058
  });
15983
16059
  }
15984
- var li_10 = sibling(node_6, 2);
15985
- var text_6 = child(li_10, true);
15986
- reset(li_10);
16060
+ var li_9 = sibling(node_6, 2);
16061
+ var text_3 = child(li_9, true);
16062
+ reset(li_9);
15987
16063
  reset(ul_2);
15988
- reset(li_8);
16064
+ reset(li_7);
15989
16065
  reset(ol);
15990
16066
  var node_7 = sibling(ol, 2);
15991
16067
  {
15992
16068
  var consequent_5 = ($$anchor3) => {
15993
- var a2 = root_8$1();
16069
+ var a2 = root_9$4();
15994
16070
  a2.__click = navToCheckout;
15995
16071
  append($$anchor3, a2);
15996
16072
  };
@@ -15998,11 +16074,11 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15998
16074
  if (!preview()) $$render(consequent_5);
15999
16075
  });
16000
16076
  }
16001
- template_effect(() => set_text(text_6, shop.cart.totalFormatted));
16077
+ template_effect(() => set_text(text_3, get$2(cart).totalFormatted));
16002
16078
  append($$anchor2, fragment_1);
16003
16079
  };
16004
16080
  if_block(node, ($$render) => {
16005
- if (shop.cart.items.length) $$render(consequent_6);
16081
+ if (get$2(cart) && get$2(cart).items.length) $$render(consequent_6);
16006
16082
  });
16007
16083
  }
16008
16084
  append($$anchor, fragment);
@@ -16016,13 +16092,12 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
16016
16092
  pop();
16017
16093
  }
16018
16094
  customElements.define("go-cart-empty", create_custom_element(CartEmpty, {}, [], [], false));
16019
- enable_legacy_mode_flag();
16020
16095
  function CartCounter($$anchor, $$props) {
16021
- push($$props, false);
16022
- init();
16096
+ push($$props, true);
16097
+ let cartCounter = /* @__PURE__ */ user_derived(() => shop.cart?.items.length);
16023
16098
  next();
16024
16099
  var text2 = text$1();
16025
- template_effect(() => set_text(text2, shop.cart.items.length));
16100
+ template_effect(() => set_text(text2, get$2(cartCounter)));
16026
16101
  append($$anchor, text2);
16027
16102
  pop();
16028
16103
  }
@@ -21941,7 +22016,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
21941
22016
  set(this.#props, value);
21942
22017
  }
21943
22018
  }
21944
- var root_2$o = /* @__PURE__ */ from_html(`<div><!></div>`);
22019
+ var root_2$p = /* @__PURE__ */ from_html(`<div><!></div>`);
21945
22020
  function Calendar$1($$anchor, $$props) {
21946
22021
  push($$props, true);
21947
22022
  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, [
@@ -22240,7 +22315,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22240
22315
  append($$anchor2, fragment_1);
22241
22316
  };
22242
22317
  var alternate = ($$anchor2) => {
22243
- var div = root_2$o();
22318
+ var div = root_2$p();
22244
22319
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
22245
22320
  var node_2 = child(div);
22246
22321
  snippet(node_2, () => children() ?? noop$1, () => rootState.snippetProps);
@@ -22291,7 +22366,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22291
22366
  [],
22292
22367
  true
22293
22368
  );
22294
- var root_2$n = /* @__PURE__ */ from_html(`<div><!></div>`);
22369
+ var root_2$o = /* @__PURE__ */ from_html(`<div><!></div>`);
22295
22370
  function Calendar_day($$anchor, $$props) {
22296
22371
  const uid = props_id();
22297
22372
  push($$props, true);
@@ -22353,7 +22428,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22353
22428
  append($$anchor2, fragment_1);
22354
22429
  };
22355
22430
  var alternate_1 = ($$anchor2) => {
22356
- var div = root_2$n();
22431
+ var div = root_2$o();
22357
22432
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
22358
22433
  var node_2 = child(div);
22359
22434
  {
@@ -22385,7 +22460,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22385
22460
  return pop($$exports);
22386
22461
  }
22387
22462
  create_custom_element(Calendar_day, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22388
- var root_2$m = /* @__PURE__ */ from_html(`<table><!></table>`);
22463
+ var root_2$n = /* @__PURE__ */ from_html(`<table><!></table>`);
22389
22464
  function Calendar_grid($$anchor, $$props) {
22390
22465
  const uid = props_id();
22391
22466
  push($$props, true);
@@ -22444,7 +22519,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22444
22519
  append($$anchor2, fragment_1);
22445
22520
  };
22446
22521
  var alternate = ($$anchor2) => {
22447
- var table = root_2$m();
22522
+ var table = root_2$n();
22448
22523
  attribute_effect(table, () => ({ ...get$2(mergedProps) }));
22449
22524
  var node_2 = child(table);
22450
22525
  snippet(node_2, () => children() ?? noop$1);
@@ -22460,7 +22535,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22460
22535
  return pop($$exports);
22461
22536
  }
22462
22537
  create_custom_element(Calendar_grid, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22463
- var root_2$l = /* @__PURE__ */ from_html(`<tbody><!></tbody>`);
22538
+ var root_2$m = /* @__PURE__ */ from_html(`<tbody><!></tbody>`);
22464
22539
  function Calendar_grid_body($$anchor, $$props) {
22465
22540
  const uid = props_id();
22466
22541
  push($$props, true);
@@ -22519,7 +22594,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22519
22594
  append($$anchor2, fragment_1);
22520
22595
  };
22521
22596
  var alternate = ($$anchor2) => {
22522
- var tbody = root_2$l();
22597
+ var tbody = root_2$m();
22523
22598
  attribute_effect(tbody, () => ({ ...get$2(mergedProps) }));
22524
22599
  var node_2 = child(tbody);
22525
22600
  snippet(node_2, () => children() ?? noop$1);
@@ -22535,7 +22610,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22535
22610
  return pop($$exports);
22536
22611
  }
22537
22612
  create_custom_element(Calendar_grid_body, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22538
- var root_2$k = /* @__PURE__ */ from_html(`<td><!></td>`);
22613
+ var root_2$l = /* @__PURE__ */ from_html(`<td><!></td>`);
22539
22614
  function Calendar_cell($$anchor, $$props) {
22540
22615
  const uid = props_id();
22541
22616
  push($$props, true);
@@ -22615,7 +22690,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22615
22690
  append($$anchor2, fragment_1);
22616
22691
  };
22617
22692
  var alternate = ($$anchor2) => {
22618
- var td = root_2$k();
22693
+ var td = root_2$l();
22619
22694
  attribute_effect(td, () => ({ ...get$2(mergedProps) }));
22620
22695
  var node_2 = child(td);
22621
22696
  snippet(node_2, () => children() ?? noop$1, () => cellState.snippetProps);
@@ -22644,7 +22719,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22644
22719
  [],
22645
22720
  true
22646
22721
  );
22647
- var root_2$j = /* @__PURE__ */ from_html(`<thead><!></thead>`);
22722
+ var root_2$k = /* @__PURE__ */ from_html(`<thead><!></thead>`);
22648
22723
  function Calendar_grid_head($$anchor, $$props) {
22649
22724
  const uid = props_id();
22650
22725
  push($$props, true);
@@ -22703,7 +22778,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22703
22778
  append($$anchor2, fragment_1);
22704
22779
  };
22705
22780
  var alternate = ($$anchor2) => {
22706
- var thead = root_2$j();
22781
+ var thead = root_2$k();
22707
22782
  attribute_effect(thead, () => ({ ...get$2(mergedProps) }));
22708
22783
  var node_2 = child(thead);
22709
22784
  snippet(node_2, () => children() ?? noop$1);
@@ -22719,7 +22794,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22719
22794
  return pop($$exports);
22720
22795
  }
22721
22796
  create_custom_element(Calendar_grid_head, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22722
- var root_2$i = /* @__PURE__ */ from_html(`<th><!></th>`);
22797
+ var root_2$j = /* @__PURE__ */ from_html(`<th><!></th>`);
22723
22798
  function Calendar_head_cell($$anchor, $$props) {
22724
22799
  const uid = props_id();
22725
22800
  push($$props, true);
@@ -22778,7 +22853,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22778
22853
  append($$anchor2, fragment_1);
22779
22854
  };
22780
22855
  var alternate = ($$anchor2) => {
22781
- var th = root_2$i();
22856
+ var th = root_2$j();
22782
22857
  attribute_effect(th, () => ({ ...get$2(mergedProps) }));
22783
22858
  var node_2 = child(th);
22784
22859
  snippet(node_2, () => children() ?? noop$1);
@@ -22794,7 +22869,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22794
22869
  return pop($$exports);
22795
22870
  }
22796
22871
  create_custom_element(Calendar_head_cell, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22797
- var root_2$h = /* @__PURE__ */ from_html(`<tr><!></tr>`);
22872
+ var root_2$i = /* @__PURE__ */ from_html(`<tr><!></tr>`);
22798
22873
  function Calendar_grid_row($$anchor, $$props) {
22799
22874
  const uid = props_id();
22800
22875
  push($$props, true);
@@ -22853,7 +22928,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22853
22928
  append($$anchor2, fragment_1);
22854
22929
  };
22855
22930
  var alternate = ($$anchor2) => {
22856
- var tr = root_2$h();
22931
+ var tr = root_2$i();
22857
22932
  attribute_effect(tr, () => ({ ...get$2(mergedProps) }));
22858
22933
  var node_2 = child(tr);
22859
22934
  snippet(node_2, () => children() ?? noop$1);
@@ -22869,7 +22944,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22869
22944
  return pop($$exports);
22870
22945
  }
22871
22946
  create_custom_element(Calendar_grid_row, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22872
- var root_2$g = /* @__PURE__ */ from_html(`<header><!></header>`);
22947
+ var root_2$h = /* @__PURE__ */ from_html(`<header><!></header>`);
22873
22948
  function Calendar_header($$anchor, $$props) {
22874
22949
  const uid = props_id();
22875
22950
  push($$props, true);
@@ -22928,7 +23003,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22928
23003
  append($$anchor2, fragment_1);
22929
23004
  };
22930
23005
  var alternate = ($$anchor2) => {
22931
- var header = root_2$g();
23006
+ var header = root_2$h();
22932
23007
  attribute_effect(header, () => ({ ...get$2(mergedProps) }));
22933
23008
  var node_2 = child(header);
22934
23009
  snippet(node_2, () => children() ?? noop$1);
@@ -22944,7 +23019,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22944
23019
  return pop($$exports);
22945
23020
  }
22946
23021
  create_custom_element(Calendar_header, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22947
- var root_2$f = /* @__PURE__ */ from_html(`<div><!></div>`);
23022
+ var root_2$g = /* @__PURE__ */ from_html(`<div><!></div>`);
22948
23023
  function Calendar_heading($$anchor, $$props) {
22949
23024
  const uid = props_id();
22950
23025
  push($$props, true);
@@ -23006,7 +23081,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
23006
23081
  append($$anchor2, fragment_1);
23007
23082
  };
23008
23083
  var alternate_1 = ($$anchor2) => {
23009
- var div = root_2$f();
23084
+ var div = root_2$g();
23010
23085
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
23011
23086
  var node_2 = child(div);
23012
23087
  {
@@ -23038,7 +23113,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
23038
23113
  return pop($$exports);
23039
23114
  }
23040
23115
  create_custom_element(Calendar_heading, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
23041
- var root_2$e = /* @__PURE__ */ from_html(`<button><!></button>`);
23116
+ var root_2$f = /* @__PURE__ */ from_html(`<button><!></button>`);
23042
23117
  function Calendar_next_button($$anchor, $$props) {
23043
23118
  const uid = props_id();
23044
23119
  push($$props, true);
@@ -23105,7 +23180,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
23105
23180
  append($$anchor2, fragment_1);
23106
23181
  };
23107
23182
  var alternate = ($$anchor2) => {
23108
- var button = root_2$e();
23183
+ var button = root_2$f();
23109
23184
  attribute_effect(button, () => ({ ...get$2(mergedProps) }));
23110
23185
  var node_2 = child(button);
23111
23186
  snippet(node_2, () => children() ?? noop$1);
@@ -23121,7 +23196,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
23121
23196
  return pop($$exports);
23122
23197
  }
23123
23198
  create_custom_element(Calendar_next_button, { children: {}, child: {}, id: {}, ref: {}, tabindex: {} }, [], [], true);
23124
- var root_2$d = /* @__PURE__ */ from_html(`<button><!></button>`);
23199
+ var root_2$e = /* @__PURE__ */ from_html(`<button><!></button>`);
23125
23200
  function Calendar_prev_button($$anchor, $$props) {
23126
23201
  const uid = props_id();
23127
23202
  push($$props, true);
@@ -23188,7 +23263,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
23188
23263
  append($$anchor2, fragment_1);
23189
23264
  };
23190
23265
  var alternate = ($$anchor2) => {
23191
- var button = root_2$d();
23266
+ var button = root_2$e();
23192
23267
  attribute_effect(button, () => ({ ...get$2(mergedProps) }));
23193
23268
  var node_2 = child(button);
23194
23269
  snippet(node_2, () => children() ?? noop$1);
@@ -23204,8 +23279,9 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
23204
23279
  return pop($$exports);
23205
23280
  }
23206
23281
  create_custom_element(Calendar_prev_button, { children: {}, child: {}, id: {}, ref: {}, tabindex: {} }, [], [], true);
23207
- var root_1$e = /* @__PURE__ */ from_html(`<input/>`);
23208
- var root_2$c = /* @__PURE__ */ from_html(`<input/>`);
23282
+ enable_legacy_mode_flag();
23283
+ var root_1$d = /* @__PURE__ */ from_html(`<input/>`);
23284
+ var root_2$d = /* @__PURE__ */ from_html(`<input/>`);
23209
23285
  function Hidden_input($$anchor, $$props) {
23210
23286
  push($$props, true);
23211
23287
  let value = prop($$props, "value", 15), restProps = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy", "$$host", "value"]);
@@ -23227,12 +23303,12 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
23227
23303
  var node = first_child(fragment);
23228
23304
  {
23229
23305
  var consequent = ($$anchor2) => {
23230
- var input = root_1$e();
23306
+ var input = root_1$d();
23231
23307
  attribute_effect(input, () => ({ ...get$2(mergedProps), value: value() }), void 0, void 0, void 0, void 0, true);
23232
23308
  append($$anchor2, input);
23233
23309
  };
23234
23310
  var alternate = ($$anchor2) => {
23235
- var input_1 = root_2$c();
23311
+ var input_1 = root_2$d();
23236
23312
  attribute_effect(input_1, () => ({ ...get$2(mergedProps) }), void 0, void 0, void 0, void 0, true);
23237
23313
  bind_value(input_1, value);
23238
23314
  append($$anchor2, input_1);
@@ -25675,7 +25751,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
25675
25751
  return pop($$exports);
25676
25752
  }
25677
25753
  create_custom_element(Popper_content, { content: {}, isStatic: {}, onPlaced: {} }, [], [], true);
25678
- var root_1$d = /* @__PURE__ */ from_html(`<!> <!>`, 1);
25754
+ var root_1$c = /* @__PURE__ */ from_html(`<!> <!>`, 1);
25679
25755
  function Popper_layer_inner($$anchor, $$props) {
25680
25756
  push($$props, true);
25681
25757
  let popper = prop($$props, "popper", 7), onEscapeKeydown = prop($$props, "onEscapeKeydown", 7), escapeKeydownBehavior = prop($$props, "escapeKeydownBehavior", 7), preventOverflowTextSelection = prop($$props, "preventOverflowTextSelection", 7), id = prop($$props, "id", 7), onPointerDown = prop($$props, "onPointerDown", 7), onPointerUp = prop($$props, "onPointerUp", 7), side = prop($$props, "side", 7), sideOffset = prop($$props, "sideOffset", 7), align = prop($$props, "align", 7), alignOffset = prop($$props, "alignOffset", 7), arrowPadding = prop($$props, "arrowPadding", 7), avoidCollisions = prop($$props, "avoidCollisions", 7), collisionBoundary = prop($$props, "collisionBoundary", 7), collisionPadding = prop($$props, "collisionPadding", 7), sticky = prop($$props, "sticky", 7), hideWhenDetached = prop($$props, "hideWhenDetached", 7), updatePositionStrategy = prop($$props, "updatePositionStrategy", 7), strategy = prop($$props, "strategy", 7), dir = prop($$props, "dir", 7), preventScroll = prop($$props, "preventScroll", 7), wrapperId = prop($$props, "wrapperId", 7), style = prop($$props, "style", 7), onPlaced = prop($$props, "onPlaced", 7), onInteractOutside = prop($$props, "onInteractOutside", 7), onCloseAutoFocus = prop($$props, "onCloseAutoFocus", 7), onOpenAutoFocus = prop($$props, "onOpenAutoFocus", 7), onFocusOutside = prop($$props, "onFocusOutside", 7), interactOutsideBehavior = prop($$props, "interactOutsideBehavior", 7, "close"), loop = prop($$props, "loop", 7), trapFocus = prop($$props, "trapFocus", 7, true), isValidEvent2 = prop($$props, "isValidEvent", 7, () => false), customAnchor = prop($$props, "customAnchor", 7, null), isStatic = prop($$props, "isStatic", 7, false), enabled = prop($$props, "enabled", 7), ref = prop($$props, "ref", 7), tooltip = prop($$props, "tooltip", 7, false), restProps = /* @__PURE__ */ rest_props($$props, [
@@ -25986,7 +26062,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
25986
26062
  const content = ($$anchor2, $$arg0) => {
25987
26063
  let floatingProps = () => $$arg0?.().props;
25988
26064
  let wrapperProps = () => $$arg0?.().wrapperProps;
25989
- var fragment_1 = root_1$d();
26065
+ var fragment_1 = root_1$c();
25990
26066
  var node = first_child(fragment_1);
25991
26067
  {
25992
26068
  var consequent = ($$anchor3) => {
@@ -28440,8 +28516,8 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
28440
28516
  pop();
28441
28517
  }
28442
28518
  create_custom_element(Date_field_hidden_input, {}, [], [], true);
28443
- var root_2$b = /* @__PURE__ */ from_html(`<div><!></div>`);
28444
- var root$5 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
28519
+ var root_2$c = /* @__PURE__ */ from_html(`<div><!></div>`);
28520
+ var root$4 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
28445
28521
  function Date_field_input($$anchor, $$props) {
28446
28522
  const uid = props_id();
28447
28523
  push($$props, true);
@@ -28499,7 +28575,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
28499
28575
  flushSync();
28500
28576
  }
28501
28577
  };
28502
- var fragment = root$5();
28578
+ var fragment = root$4();
28503
28579
  var node = first_child(fragment);
28504
28580
  {
28505
28581
  var consequent = ($$anchor2) => {
@@ -28512,7 +28588,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
28512
28588
  append($$anchor2, fragment_1);
28513
28589
  };
28514
28590
  var alternate = ($$anchor2) => {
28515
- var div = root_2$b();
28591
+ var div = root_2$c();
28516
28592
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
28517
28593
  var node_2 = child(div);
28518
28594
  snippet(node_2, () => children() ?? noop$1, () => ({ segments: inputState.root.segmentContents }));
@@ -28530,7 +28606,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
28530
28606
  return pop($$exports);
28531
28607
  }
28532
28608
  create_custom_element(Date_field_input, { id: {}, ref: {}, name: {}, children: {}, child: {} }, [], [], true);
28533
- var root_2$a = /* @__PURE__ */ from_html(`<div><!></div>`);
28609
+ var root_2$b = /* @__PURE__ */ from_html(`<div><!></div>`);
28534
28610
  function Date_field_label($$anchor, $$props) {
28535
28611
  const uid = props_id();
28536
28612
  push($$props, true);
@@ -28589,7 +28665,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
28589
28665
  append($$anchor2, fragment_1);
28590
28666
  };
28591
28667
  var alternate = ($$anchor2) => {
28592
- var div = root_2$a();
28668
+ var div = root_2$b();
28593
28669
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
28594
28670
  var node_2 = child(div);
28595
28671
  snippet(node_2, () => children() ?? noop$1);
@@ -28605,7 +28681,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
28605
28681
  return pop($$exports);
28606
28682
  }
28607
28683
  create_custom_element(Date_field_label, { id: {}, ref: {}, children: {}, child: {} }, [], [], true);
28608
- var root_2$9 = /* @__PURE__ */ from_html(`<span><!></span>`);
28684
+ var root_2$a = /* @__PURE__ */ from_html(`<span><!></span>`);
28609
28685
  function Date_field_segment($$anchor, $$props) {
28610
28686
  const uid = props_id();
28611
28687
  push($$props, true);
@@ -28672,7 +28748,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
28672
28748
  append($$anchor2, fragment_1);
28673
28749
  };
28674
28750
  var alternate = ($$anchor2) => {
28675
- var span = root_2$9();
28751
+ var span = root_2$a();
28676
28752
  attribute_effect(span, () => ({ ...get$2(mergedProps) }));
28677
28753
  var node_2 = child(span);
28678
28754
  snippet(node_2, () => children() ?? noop$1);
@@ -29247,7 +29323,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
29247
29323
  [],
29248
29324
  true
29249
29325
  );
29250
- var root_2$8 = /* @__PURE__ */ from_html(`<div><!></div>`);
29326
+ var root_2$9 = /* @__PURE__ */ from_html(`<div><!></div>`);
29251
29327
  function Date_picker_calendar($$anchor, $$props) {
29252
29328
  const uid = props_id();
29253
29329
  push($$props, true);
@@ -29334,7 +29410,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
29334
29410
  append($$anchor2, fragment_1);
29335
29411
  };
29336
29412
  var alternate = ($$anchor2) => {
29337
- var div = root_2$8();
29413
+ var div = root_2$9();
29338
29414
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
29339
29415
  var node_2 = child(div);
29340
29416
  snippet(node_2, () => children() ?? noop$1, () => calendarState.snippetProps);
@@ -29847,11 +29923,11 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
29847
29923
  return pop($$exports);
29848
29924
  }
29849
29925
  create_custom_element(Date_picker_trigger, { ref: {}, onkeydown: {} }, [], [], true);
29850
- var root_2$7 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
29926
+ var root_2$8 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
29851
29927
  var root_7$3 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
29852
29928
  var root_9$2 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
29853
29929
  var root_6$1 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
29854
- var root_1$c = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
29930
+ var root_1$b = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
29855
29931
  function DatePicker_1($$anchor, $$props) {
29856
29932
  push($$props, true);
29857
29933
  let dateString = prop($$props, "dateString", 15), labelClass = prop($$props, "labelClass", 7), inputClass = prop($$props, "inputClass", 7);
@@ -29893,7 +29969,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
29893
29969
  set(date2, $$value, true);
29894
29970
  },
29895
29971
  children: ($$anchor3, $$slotProps) => {
29896
- var fragment_1 = root_1$c();
29972
+ var fragment_1 = root_1$b();
29897
29973
  var node_1 = first_child(fragment_1);
29898
29974
  component(node_1, () => Date_field_label, ($$anchor4, DatePicker_Label) => {
29899
29975
  DatePicker_Label($$anchor4, {
@@ -29906,7 +29982,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
29906
29982
  {
29907
29983
  const children = ($$anchor4, $$arg0) => {
29908
29984
  let segments = () => $$arg0?.().segments;
29909
- var fragment_2 = root_2$7();
29985
+ var fragment_2 = root_2$8();
29910
29986
  var node_3 = first_child(fragment_2);
29911
29987
  each(node_3, 17, segments, index$1, ($$anchor5, $$item) => {
29912
29988
  let part = () => get$2($$item).part;
@@ -30100,8 +30176,8 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30100
30176
  return pop($$exports);
30101
30177
  }
30102
30178
  create_custom_element(DatePicker_1, { dateString: {}, labelClass: {}, inputClass: {} }, [], [], true);
30103
- var root_2$6 = /* @__PURE__ */ from_html(`<span class="go-field-star" aria-hidden="true">*</span>`);
30104
- var root_1$b = /* @__PURE__ */ from_html(`<!> <!>`, 1);
30179
+ var root_2$7 = /* @__PURE__ */ from_html(`<span class="go-field-star" aria-hidden="true">*</span>`);
30180
+ var root_1$a = /* @__PURE__ */ from_html(`<!> <!>`, 1);
30105
30181
  var root_3$4 = /* @__PURE__ */ from_html(`<label><!></label> <input/>`, 1);
30106
30182
  var root_4$2 = /* @__PURE__ */ from_html(`<label><input/> <span class="go-checkbox-label"><!></span></label>`);
30107
30183
  var root_7$2 = /* @__PURE__ */ from_html(`<option> </option>`);
@@ -30111,13 +30187,13 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30111
30187
  function InputAndLabel($$anchor, $$props) {
30112
30188
  push($$props, true);
30113
30189
  const labelText = ($$anchor2) => {
30114
- var fragment = root_1$b();
30190
+ var fragment = root_1$a();
30115
30191
  var node = first_child(fragment);
30116
30192
  html$2(node, () => purify.sanitize(field().label));
30117
30193
  var node_1 = sibling(node, 2);
30118
30194
  {
30119
30195
  var consequent = ($$anchor3) => {
30120
- var span = root_2$6();
30196
+ var span = root_2$7();
30121
30197
  append($$anchor3, span);
30122
30198
  };
30123
30199
  if_block(node_1, ($$render) => {
@@ -30404,10 +30480,10 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30404
30480
  [],
30405
30481
  true
30406
30482
  );
30407
- var root_1$a = /* @__PURE__ */ from_html(`<span> </span>`);
30483
+ var root_1$9 = /* @__PURE__ */ from_html(`<span> </span>`);
30408
30484
  var root_3$3 = /* @__PURE__ */ from_html(`<li> </li>`);
30409
- var root_2$5 = /* @__PURE__ */ from_html(`<ul class="go-field-errors" role="alert"></ul>`);
30410
- var root$4 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
30485
+ var root_2$6 = /* @__PURE__ */ from_html(`<ul class="go-field-errors" role="alert"></ul>`);
30486
+ var root$3 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
30411
30487
  function Field($$anchor, $$props) {
30412
30488
  push($$props, true);
30413
30489
  let key = prop($$props, "key", 7), required = prop($$props, "required", 7, false), labelClass = prop($$props, "labelClass", 7), inputClass = prop($$props, "inputClass", 7);
@@ -30471,7 +30547,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30471
30547
  flushSync();
30472
30548
  }
30473
30549
  };
30474
- var fragment = root$4();
30550
+ var fragment = root$3();
30475
30551
  var node = first_child(fragment);
30476
30552
  InputAndLabel(node, {
30477
30553
  get describedById() {
@@ -30494,7 +30570,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30494
30570
  var node_1 = sibling(node, 2);
30495
30571
  {
30496
30572
  var consequent = ($$anchor2) => {
30497
- var span = root_1$a();
30573
+ var span = root_1$9();
30498
30574
  var text2 = child(span, true);
30499
30575
  reset(span);
30500
30576
  template_effect(() => {
@@ -30510,7 +30586,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30510
30586
  var node_2 = sibling(node_1, 2);
30511
30587
  {
30512
30588
  var consequent_1 = ($$anchor2) => {
30513
- var ul = root_2$5();
30589
+ var ul = root_2$6();
30514
30590
  each(ul, 21, () => get$2(allErrors), index$1, ($$anchor3, error) => {
30515
30591
  var li = root_3$3();
30516
30592
  var text_1 = child(li, true);
@@ -30541,7 +30617,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30541
30617
  ["getField"],
30542
30618
  false
30543
30619
  ));
30544
- var root_1$9 = /* @__PURE__ */ from_html(`<go-field></go-field>`, 2);
30620
+ var root_1$8 = /* @__PURE__ */ from_html(`<go-field></go-field>`, 2);
30545
30621
  function AllFields($$anchor, $$props) {
30546
30622
  push($$props, true);
30547
30623
  let _details = getDetails$1($$props.$$host);
@@ -30550,7 +30626,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30550
30626
  var fragment = comment();
30551
30627
  var node = first_child(fragment);
30552
30628
  each(node, 17, () => get$2(allFields2), index$1, ($$anchor2, field) => {
30553
- var go_field = root_1$9();
30629
+ var go_field = root_1$8();
30554
30630
  template_effect(() => set_custom_element_data(go_field, "key", get$2(field).key));
30555
30631
  template_effect(() => set_custom_element_data(go_field, "required", get$2(field).required));
30556
30632
  append($$anchor2, go_field);
@@ -30559,11 +30635,11 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30559
30635
  pop();
30560
30636
  }
30561
30637
  customElements.define("go-all-fields", create_custom_element(AllFields, {}, [], [], false));
30562
- var root_2$4 = /* @__PURE__ */ from_html(`<p aria-live="assertive" class="sr-only"> </p>`);
30638
+ var root_2$5 = /* @__PURE__ */ from_html(`<p aria-live="assertive" class="sr-only"> </p>`);
30563
30639
  var root_4$1 = /* @__PURE__ */ from_html(`<li> </li>`);
30564
30640
  var root_3$2 = /* @__PURE__ */ from_html(`<ul class="go-error-feedback-api-errors"></ul>`);
30565
30641
  var root_5 = /* @__PURE__ */ from_html(`<p aria-hidden="true"> </p>`);
30566
- var root_1$8 = /* @__PURE__ */ from_html(`<div><!> <!> <!></div>`);
30642
+ var root_1$7 = /* @__PURE__ */ from_html(`<div><!> <!> <!></div>`);
30567
30643
  function ErrorsFeedback($$anchor, $$props) {
30568
30644
  push($$props, true);
30569
30645
  const _details = getDetails$1($$props.$$host);
@@ -30580,12 +30656,12 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30580
30656
  var node = first_child(fragment);
30581
30657
  {
30582
30658
  var consequent_3 = ($$anchor2) => {
30583
- var div = root_1$8();
30659
+ var div = root_1$7();
30584
30660
  let classes;
30585
30661
  var node_1 = child(div);
30586
30662
  {
30587
30663
  var consequent = ($$anchor3) => {
30588
- var p2 = root_2$4();
30664
+ var p2 = root_2$5();
30589
30665
  var text2 = child(p2);
30590
30666
  reset(p2);
30591
30667
  template_effect(() => set_text(text2, `Failed to save because ${get$2(errorsOnSubmit) ?? ""} fields are invalid.`));
@@ -30640,9 +30716,9 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30640
30716
  pop();
30641
30717
  }
30642
30718
  customElements.define("go-errors-feedback", create_custom_element(ErrorsFeedback, {}, [], [], false));
30643
- var root$3 = /* @__PURE__ */ from_html(`<div class="go-form-feedback"><!></div>`);
30719
+ var root$2 = /* @__PURE__ */ from_html(`<div class="go-form-feedback"><!></div>`);
30644
30720
  function FormFeedback($$anchor, $$props) {
30645
- var div = root$3();
30721
+ var div = root$2();
30646
30722
  var node = child(div);
30647
30723
  slot(node, $$props, "default", {});
30648
30724
  reset(div);
@@ -30675,7 +30751,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30675
30751
  [],
30676
30752
  false
30677
30753
  ));
30678
- var root_1$7 = /* @__PURE__ */ from_html(`<div aria-live="assertive"> </div>`);
30754
+ var root_1$6 = /* @__PURE__ */ from_html(`<div aria-live="assertive"> </div>`);
30679
30755
  function SuccessFeedback($$anchor, $$props) {
30680
30756
  push($$props, true);
30681
30757
  const _details = getDetails$1($$props.$$host);
@@ -30684,7 +30760,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30684
30760
  var node = first_child(fragment);
30685
30761
  {
30686
30762
  var consequent = ($$anchor2) => {
30687
- var div = root_1$7();
30763
+ var div = root_1$6();
30688
30764
  let classes;
30689
30765
  var text2 = child(div, true);
30690
30766
  reset(div);
@@ -30852,7 +30928,6 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30852
30928
  const getTicketSelectionDetails = createGetDetails(KEY$2);
30853
30929
  function If($$anchor, $$props) {
30854
30930
  push($$props, true);
30855
- const cart = shop.cart;
30856
30931
  let when = prop($$props, "when", 7), then = prop($$props, "then", 7, "show");
30857
30932
  const _ticketSelectionDetails = getTicketSelectionDetails($$props.$$host);
30858
30933
  const ticketSelectionDetails = /* @__PURE__ */ user_derived(() => _ticketSelectionDetails.value);
@@ -30861,7 +30936,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30861
30936
  let data = /* @__PURE__ */ user_derived(() => ({
30862
30937
  ticketSelection: get$2(ticketSelectionDetails),
30863
30938
  formData: get$2(formDetails)?.formData,
30864
- cart
30939
+ cart: shop.cart
30865
30940
  }));
30866
30941
  const _setData = (_data) => {
30867
30942
  set(data, _data);
@@ -31074,8 +31149,9 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31074
31149
  return pop($$exports);
31075
31150
  }
31076
31151
  customElements.define("go-order", create_custom_element(Order, { token: { attribute: "token", reflect: true, type: "String" } }, [], ["orderDetails"], false));
31077
- var root_1$6 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities"> </span>`, 1);
31078
- var root$2 = /* @__PURE__ */ from_html(`<li><article><ul><li class="go-order-breakdown-count">1</li> <li class="go-order-breakdown-product"><span class="go-order-item-title"> </span> <!> <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>`);
31152
+ 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);
31153
+ var root_2$4 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities"> </span>`, 1);
31154
+ 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>`);
31079
31155
  function Event$1($$anchor, $$props) {
31080
31156
  push($$props, true);
31081
31157
  let item = prop($$props, "item", 7), orderDetails = prop($$props, "orderDetails", 7);
@@ -31095,7 +31171,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31095
31171
  flushSync();
31096
31172
  }
31097
31173
  };
31098
- var li = root$2();
31174
+ var li = root$1();
31099
31175
  var article = child(li);
31100
31176
  var ul = child(article);
31101
31177
  var li_1 = sibling(child(ul), 2);
@@ -31103,18 +31179,44 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31103
31179
  var text2 = child(span, true);
31104
31180
  reset(span);
31105
31181
  var node = sibling(span, 2);
31106
- each(node, 17, () => item().attributes.quantities, index$1, ($$anchor2, scalePrice) => {
31107
- var fragment = root_1$6();
31108
- var span_1 = sibling(first_child(fragment), 2);
31109
- var text_1 = child(span_1);
31110
- reset(span_1);
31111
- template_effect(() => set_text(text_1, `${get$2(scalePrice).quantity ?? ""} x ${get$2(scalePrice).title ?? ""}`));
31112
- append($$anchor2, fragment);
31182
+ {
31183
+ var consequent = ($$anchor2) => {
31184
+ var fragment = root_1$5();
31185
+ var span_1 = first_child(fragment);
31186
+ var text_1 = child(span_1, true);
31187
+ reset(span_1);
31188
+ var span_2 = sibling(span_1, 2);
31189
+ var text_2 = child(span_2, true);
31190
+ reset(span_2);
31191
+ template_effect(
31192
+ ($0, $1) => {
31193
+ set_text(text_1, $0);
31194
+ set_text(text_2, $1);
31195
+ },
31196
+ [
31197
+ () => formatDate(item().attributes.start_time, { month: "numeric", day: "numeric" }, shop.locale),
31198
+ () => formatTime(item().attributes.start_time)
31199
+ ]
31200
+ );
31201
+ append($$anchor2, fragment);
31202
+ };
31203
+ if_block(node, ($$render) => {
31204
+ if (item().attributes.start_time) $$render(consequent);
31205
+ });
31206
+ }
31207
+ var node_1 = sibling(node, 2);
31208
+ each(node_1, 17, () => item().attributes.quantities, index$1, ($$anchor2, scalePrice) => {
31209
+ var fragment_1 = root_2$4();
31210
+ var span_3 = sibling(first_child(fragment_1), 2);
31211
+ var text_3 = child(span_3);
31212
+ reset(span_3);
31213
+ template_effect(() => set_text(text_3, `${get$2(scalePrice).quantity ?? ""} x ${get$2(scalePrice).title ?? ""}`));
31214
+ append($$anchor2, fragment_1);
31113
31215
  });
31114
- var a2 = sibling(node, 2);
31216
+ var a2 = sibling(node_1, 2);
31115
31217
  reset(li_1);
31116
31218
  var li_2 = sibling(li_1, 2);
31117
- var text_2 = child(li_2, true);
31219
+ var text_4 = child(li_2, true);
31118
31220
  reset(li_2);
31119
31221
  next(2);
31120
31222
  reset(ul);
@@ -31124,7 +31226,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31124
31226
  ($0, $1) => {
31125
31227
  set_text(text2, item().attributes.title);
31126
31228
  set_attribute(a2, "href", $0);
31127
- set_text(text_2, $1);
31229
+ set_text(text_4, $1);
31128
31230
  },
31129
31231
  [
31130
31232
  () => orderDetails().downloadLink(item()),
@@ -31341,7 +31443,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31341
31443
  return pop($$exports);
31342
31444
  }
31343
31445
  create_custom_element(TicketSale, { item: {}, orderDetails: {} }, [], [], true);
31344
- var root_1$5 = /* @__PURE__ */ from_html(`<ol><li class="data-go-order-breakdown-header"><ul><li class="go-order-breakdown-header-count">Count</li> <li class="go-order-breakdown-header-product">Product</li> <li class="go-order-breakdown-header-price">Price</li> <li class="go-order-breakdown-header-passbook"></li></ul></li> <!> <li class="go-order-breakdown-footer"><ul><li class="go-cart-footer-title"></li> <li class="go-cart-footer-count"></li> <li class="go-cart-footer-price"> </li> <li class="go-cart-footer-passbook"></li></ul></li></ol>`);
31446
+ var root_1$4 = /* @__PURE__ */ from_html(`<ol><li class="data-go-order-breakdown-header"><ul><li class="go-order-breakdown-header-count">Count</li> <li class="go-order-breakdown-header-product">Product</li> <li class="go-order-breakdown-header-price">Price</li> <li class="go-order-breakdown-header-passbook"></li></ul></li> <!> <li class="go-order-breakdown-footer"><ul><li class="go-cart-footer-title"></li> <li class="go-cart-footer-count"></li> <li class="go-cart-footer-price"> </li> <li class="go-cart-footer-passbook"></li></ul></li></ol>`);
31345
31447
  function Breakdown($$anchor, $$props) {
31346
31448
  push($$props, true);
31347
31449
  const _orderDetails = getDetails($$props.$$host);
@@ -31351,7 +31453,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31351
31453
  var node = first_child(fragment);
31352
31454
  {
31353
31455
  var consequent_2 = ($$anchor2) => {
31354
- var ol = root_1$5();
31456
+ var ol = root_1$4();
31355
31457
  var node_1 = sibling(child(ol), 2);
31356
31458
  each(node_1, 17, () => get$2(order).items, (item) => item.id, ($$anchor3, item) => {
31357
31459
  var fragment_1 = comment();
@@ -31627,7 +31729,6 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31627
31729
  const selectedTime2 = "10:00";
31628
31730
  const selectedDate = tsd.selectedDate.toString();
31629
31731
  const timeslot = selectedDate + "T" + selectedTime2 + ":00+01:00";
31630
- console.log("creating day tickets for ", selectedTime2, " on ", timeslot, " with ", tickets.length, " tickets", quotas);
31631
31732
  shop.capacityManager.addQuotas(quotas);
31632
31733
  const uiTickets = initUITimeslotTickets(tickets, timeslot);
31633
31734
  segment.preCart = createCart(uiTickets);
@@ -31656,12 +31757,12 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31656
31757
  }
31657
31758
  if (tsd.eventIds.length > 1) throw new Error("(loadEventScaledPricesTickets) currently we support only one eventId in go-ticket-selection");
31658
31759
  const eid = tsd.eventIds[0];
31659
- const event = await shop.asyncFetch(() => shop.getEventDetailsOnDate(eid, segment.dateId));
31660
- if (event.prices) {
31661
- const UITickets = event.prices.map((t) => createUIEventTicket(t, segment.dateId)) || [];
31760
+ const eventDate = await shop.asyncFetch(() => shop.getEventDetailsOnDate(eid, segment.dateId));
31761
+ if (eventDate.prices) {
31762
+ const UITickets = eventDate.prices.map((t) => createUIEventTicket(t, segment.dateId, { selectedTime: eventDate.start_time })) || [];
31662
31763
  segment.preCart = createCart(UITickets);
31663
31764
  } else console.warn("(loadEventScaledPricesTickets) event.prices is undefined");
31664
- if (event.seats) shop.capacityManager.addSeats(segment.dateId, event.seats);
31765
+ if (eventDate.seats) shop.capacityManager.addSeats(segment.dateId, eventDate.seats);
31665
31766
  else console.warn("(loadEventScaledPricesTickets) event.seats is undefined");
31666
31767
  }
31667
31768
  async function loadEventTickets(segment) {
@@ -31720,8 +31821,6 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31720
31821
  "by_ticket_group_ids[]": tsd.ticketGroupIds
31721
31822
  }));
31722
31823
  shop.capacityManager.addQuotas(result.quotas);
31723
- console.log("selected-date: ", tsd.selectedDate.toString(), " selected-timeslot: ", tsd.selectedTimeslot, " selected-filters: ", tsd.filters, "");
31724
- console.log("creating timeslot tickets for ", tsd.selectedTime, " with ", result.tickets.length, " tickets");
31725
31824
  const uiTickets = initUITimeslotTickets(result.tickets, tsd.selectedTime);
31726
31825
  segment.preCart = createCart(uiTickets);
31727
31826
  }
@@ -31861,7 +31960,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31861
31960
  throw new Error(`(selectedTime) Unhandled Ticket Type: ${exhaustedChecking2}`);
31862
31961
  }
31863
31962
  case "Event":
31864
- return "";
31963
+ return product.selectedTime || "";
31865
31964
  default:
31866
31965
  const exhaustedChecking = product.product_type;
31867
31966
  throw new Error(`(selectedTime) Unhandled product type: ${exhaustedChecking}`);
@@ -31871,68 +31970,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31871
31970
  const d = /* @__PURE__ */ new Date();
31872
31971
  return d.toISOString();
31873
31972
  }
31874
- var root_1$4 = /* @__PURE__ */ from_html(`<label class="svelte-1qd449h"> </label>`);
31875
- var root$1 = /* @__PURE__ */ from_html(`<div class="svelte-1qd449h"><!> <pre><!>
31876
- </pre></div>`);
31877
- const $$css = {
31878
- hash: "svelte-1qd449h",
31879
- code: "div.svelte-1qd449h {display:grid;}label.svelte-1qd449h {font-weight:bold;display:inline-block;}pre.svelte-1qd449h {margin-top:0.5rlh;padding:0;white-space:pre-wrap; /* CSS3: Wrap long lines */word-wrap:break-word; /* For legacy support */}"
31880
- };
31881
- function Log($$anchor, $$props) {
31882
- push($$props, true);
31883
- append_styles$1($$anchor, $$css);
31884
- let data = prop($$props, "data", 7), format = prop($$props, "format", 7, true), label = prop($$props, "label", 7, "");
31885
- var $$exports = {
31886
- get data() {
31887
- return data();
31888
- },
31889
- set data($$value) {
31890
- data($$value);
31891
- flushSync();
31892
- },
31893
- get format() {
31894
- return format();
31895
- },
31896
- set format($$value = true) {
31897
- format($$value);
31898
- flushSync();
31899
- },
31900
- get label() {
31901
- return label();
31902
- },
31903
- set label($$value = "") {
31904
- label($$value);
31905
- flushSync();
31906
- }
31907
- };
31908
- var div = root$1();
31909
- var node = child(div);
31910
- {
31911
- var consequent = ($$anchor2) => {
31912
- var label_1 = root_1$4();
31913
- var text2 = child(label_1);
31914
- reset(label_1);
31915
- template_effect(() => set_text(text2, `${label() ?? ""}:`));
31916
- append($$anchor2, label_1);
31917
- };
31918
- if_block(node, ($$render) => {
31919
- if (label()) $$render(consequent);
31920
- });
31921
- }
31922
- var pre = sibling(node, 2);
31923
- let classes;
31924
- var node_1 = child(pre);
31925
- html$2(node_1, () => format() ? JSON.stringify(data(), null, 2) : JSON.stringify(data()));
31926
- next();
31927
- reset(pre);
31928
- reset(div);
31929
- template_effect(() => classes = set_class(pre, 1, "svelte-1qd449h", null, classes, { format: format() }));
31930
- append($$anchor, div);
31931
- return pop($$exports);
31932
- }
31933
- create_custom_element(Log, { data: {}, format: {}, label: {} }, [], [], true);
31934
31973
  function generateQuantityOptions(min2, max2) {
31935
- console.log("generateQuantityOptions", max2, min2);
31936
31974
  let options = [{ value: 0, label: "0" }];
31937
31975
  if (max2 === 0) {
31938
31976
  return options;