@gomusdev/web-components 1.25.3 → 1.26.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.
@@ -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;
@@ -11001,7 +10979,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
11001
10979
  }
11002
10980
  let uuid$1 = 1;
11003
10981
  function createUIEventTicket(apiTicket, dateId, options) {
11004
- const finalOptions = { minAvailableCapacity: 0, selectedTime: "", ...{} };
10982
+ const finalOptions = { minAvailableCapacity: 0, selectedTime: "", ...options ?? {} };
11005
10983
  const product = {
11006
10984
  product_type: "Event",
11007
10985
  id: dateId,
@@ -11045,7 +11023,10 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
11045
11023
  let available = max_in_cart;
11046
11024
  if (seats.overbook) available = Math.min(seats.max || 100, seats.max_per_registration || 100);
11047
11025
  const preCartTotal = preCart.totalQuantity;
11048
- const cartTotal = cart.totalQuantity;
11026
+ const cartTotal = sum(
11027
+ cart.items.filter((i) => preCart.items.some((pi) => pi.uuid === i.uuid)),
11028
+ (i) => i.quantity
11029
+ );
11049
11030
  const max2 = Math.max(available - cartTotal - preCartTotal + item.quantity, 0);
11050
11031
  const ret = {
11051
11032
  max: max2,
@@ -12689,7 +12670,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
12689
12670
  const KEY$4 = "go-annual-ticket-personalization";
12690
12671
  const setPersonalizationDetails = createSetDetails(KEY$4);
12691
12672
  var root_3$7 = /* @__PURE__ */ from_html(`<li><a>Personalize</a></li>`);
12692
- 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>`);
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>`);
12693
12674
  function AnnualTicketPersonalization($$anchor, $$props) {
12694
12675
  push($$props, true);
12695
12676
  let token = prop($$props, "token", 7);
@@ -12716,7 +12697,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
12716
12697
  var fragment_1 = comment();
12717
12698
  var node_1 = first_child(fragment_1);
12718
12699
  each(node_1, 17, () => get$2(order).ticket_sales, (ticketSale) => ticketSale.id, ($$anchor3, ticketSale) => {
12719
- var ul = root_2$q();
12700
+ var ul = root_2$s();
12720
12701
  var li = child(ul);
12721
12702
  var text2 = child(li, true);
12722
12703
  reset(li);
@@ -15647,7 +15628,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15647
15628
  host.replaceChildren(element);
15648
15629
  return element;
15649
15630
  }
15650
- 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);
15631
+ 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);
15651
15632
  function Form($$anchor, $$props) {
15652
15633
  push($$props, true);
15653
15634
  let formId = prop($$props, "formId", 7), custom2 = prop($$props, "custom", 7);
@@ -15688,7 +15669,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15688
15669
  var node = first_child(fragment);
15689
15670
  {
15690
15671
  var consequent = ($$anchor2) => {
15691
- var fragment_1 = root_1$g();
15672
+ var fragment_1 = root_1$h();
15692
15673
  var go_all_fields = first_child(fragment_1);
15693
15674
  var go_form_feedback = sibling(go_all_fields, 2);
15694
15675
  sibling(go_form_feedback, 2);
@@ -15711,7 +15692,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15711
15692
  ["details"],
15712
15693
  false
15713
15694
  ));
15714
- var root$8 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15695
+ var root$9 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15715
15696
  function PasswordReset($$anchor, $$props) {
15716
15697
  push($$props, true);
15717
15698
  let form;
@@ -15745,7 +15726,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15745
15726
  flushSync();
15746
15727
  }
15747
15728
  };
15748
- var go_form = root$8();
15729
+ var go_form = root$9();
15749
15730
  set_custom_element_data(go_form, "formId", "passwordReset");
15750
15731
  template_effect(() => set_custom_element_data(go_form, "custom", custom2()));
15751
15732
  bind_this(go_form, ($$value) => form = $$value, () => form);
@@ -15753,7 +15734,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15753
15734
  return pop($$exports);
15754
15735
  }
15755
15736
  customElements.define("go-password-reset", create_custom_element(PasswordReset, { custom: {} }, [], [], false));
15756
- var root$7 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15737
+ var root$8 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15757
15738
  function SignIn($$anchor, $$props) {
15758
15739
  push($$props, true);
15759
15740
  let form;
@@ -15778,7 +15759,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15778
15759
  onMount(() => {
15779
15760
  $$props.$$host.addEventListener("go-submit", signIn);
15780
15761
  });
15781
- var go_form = root$7();
15762
+ var go_form = root$8();
15782
15763
  set_custom_element_data(go_form, "formId", "signIn");
15783
15764
  bind_this(go_form, ($$value) => form = $$value, () => form);
15784
15765
  append($$anchor, go_form);
@@ -15793,7 +15774,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15793
15774
  [],
15794
15775
  false
15795
15776
  ));
15796
- var root$6 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15777
+ var root$7 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15797
15778
  function SignUp($$anchor, $$props) {
15798
15779
  push($$props, true);
15799
15780
  Forms.defineForm({
@@ -15830,7 +15811,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15830
15811
  onMount(() => {
15831
15812
  $$props.$$host.addEventListener("go-submit", signUp);
15832
15813
  });
15833
- var go_form = root$6();
15814
+ var go_form = root$7();
15834
15815
  set_custom_element_data(go_form, "formId", "signUp");
15835
15816
  bind_this(go_form, ($$value) => form = $$value, () => form);
15836
15817
  append($$anchor, go_form);
@@ -15845,14 +15826,116 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15845
15826
  [],
15846
15827
  false
15847
15828
  ));
15848
- var root_2$p = /* @__PURE__ */ from_html(`<li data-go-cart-header-remove="">remove</li>`);
15849
- var root_5$2 = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
15850
- var root_4$4 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
15851
- var root_6$2 = /* @__PURE__ */ from_html(`<li data-go-cart-item-remove=""><button>⨉</button></li>`);
15852
- 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>`);
15853
- var root_7$4 = /* @__PURE__ */ from_html(`<li data-go-cart-footer-remove=""></li>`);
15854
- var root_8$1 = /* @__PURE__ */ from_html(`<a href="javascript:void(0);" class="go-cart-checkout-button" data-testid="checkout-button">Checkout</a>`);
15855
- 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);
15829
+ 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);
15830
+ 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>`);
15831
+ function Event$2($$anchor, $$props) {
15832
+ push($$props, true);
15833
+ let cartItem = prop($$props, "cartItem", 7);
15834
+ var $$exports = {
15835
+ get cartItem() {
15836
+ return cartItem();
15837
+ },
15838
+ set cartItem($$value) {
15839
+ cartItem($$value);
15840
+ flushSync();
15841
+ }
15842
+ };
15843
+ var li = root$6();
15844
+ var span = child(li);
15845
+ var text2 = child(span, true);
15846
+ reset(span);
15847
+ var node = sibling(span, 2);
15848
+ {
15849
+ var consequent = ($$anchor2) => {
15850
+ var fragment = root_1$g();
15851
+ var span_1 = first_child(fragment);
15852
+ var text_1 = child(span_1, true);
15853
+ reset(span_1);
15854
+ var span_2 = sibling(span_1, 2);
15855
+ var text_2 = child(span_2, true);
15856
+ reset(span_2);
15857
+ template_effect(
15858
+ ($0, $1) => {
15859
+ set_text(text_1, $0);
15860
+ set_text(text_2, $1);
15861
+ },
15862
+ [
15863
+ () => formatDate(cartItem().time, { month: "numeric", day: "numeric" }, shop.locale),
15864
+ () => formatTime(cartItem().time)
15865
+ ]
15866
+ );
15867
+ append($$anchor2, fragment);
15868
+ };
15869
+ if_block(node, ($$render) => {
15870
+ if (cartItem().time) $$render(consequent);
15871
+ });
15872
+ }
15873
+ reset(li);
15874
+ template_effect(() => set_text(text2, cartItem().product.title));
15875
+ append($$anchor, li);
15876
+ return pop($$exports);
15877
+ }
15878
+ create_custom_element(Event$2, { cartItem: {} }, [], [], true);
15879
+ var root_2$r = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
15880
+ var root_1$f = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
15881
+ 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>`);
15882
+ function Ticket($$anchor, $$props) {
15883
+ push($$props, true);
15884
+ let cartItem = prop($$props, "cartItem", 7);
15885
+ var $$exports = {
15886
+ get cartItem() {
15887
+ return cartItem();
15888
+ },
15889
+ set cartItem($$value) {
15890
+ cartItem($$value);
15891
+ flushSync();
15892
+ }
15893
+ };
15894
+ var li = root$5();
15895
+ var span = child(li);
15896
+ var text2 = child(span, true);
15897
+ reset(span);
15898
+ var node = sibling(span, 2);
15899
+ {
15900
+ var consequent_1 = ($$anchor2) => {
15901
+ var fragment = root_1$f();
15902
+ var span_1 = first_child(fragment);
15903
+ var text_1 = child(span_1, true);
15904
+ reset(span_1);
15905
+ var node_1 = sibling(span_1, 2);
15906
+ {
15907
+ var consequent = ($$anchor3) => {
15908
+ var span_2 = root_2$r();
15909
+ var text_2 = child(span_2, true);
15910
+ reset(span_2);
15911
+ template_effect(($0) => set_text(text_2, $0), [() => formatTime(cartItem().time)]);
15912
+ append($$anchor3, span_2);
15913
+ };
15914
+ if_block(node_1, ($$render) => {
15915
+ if (cartItem().product.type === "timeslot") $$render(consequent);
15916
+ });
15917
+ }
15918
+ template_effect(($0) => set_text(text_1, $0), [
15919
+ () => formatDate(cartItem().time, { month: "numeric", day: "numeric" }, shop.locale)
15920
+ ]);
15921
+ append($$anchor2, fragment);
15922
+ };
15923
+ if_block(node, ($$render) => {
15924
+ if (cartItem().time) $$render(consequent_1);
15925
+ });
15926
+ }
15927
+ reset(li);
15928
+ template_effect(() => set_text(text2, cartItem().product.title));
15929
+ append($$anchor, li);
15930
+ return pop($$exports);
15931
+ }
15932
+ create_custom_element(Ticket, { cartItem: {} }, [], [], true);
15933
+ var root_2$q = /* @__PURE__ */ from_html(`<li data-go-cart-header-remove="">remove</li>`);
15934
+ var root_7$4 = /* @__PURE__ */ from_html(`<li data-go-cart-item-remove=""><button>⨉</button></li>`);
15935
+ 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>`);
15936
+ var root_8$1 = /* @__PURE__ */ from_html(`<li data-go-cart-footer-remove=""></li>`);
15937
+ var root_9$4 = /* @__PURE__ */ from_html(`<a href="javascript:void(0);" class="go-cart-checkout-button" data-testid="checkout-button">Checkout</a>`);
15938
+ 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);
15856
15939
  function Cart($$anchor, $$props) {
15857
15940
  push($$props, true);
15858
15941
  const preview = prop($$props, "preview", 7, false);
@@ -15875,14 +15958,14 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15875
15958
  var node = first_child(fragment);
15876
15959
  {
15877
15960
  var consequent_6 = ($$anchor2) => {
15878
- var fragment_1 = root_1$f();
15961
+ var fragment_1 = root_1$e();
15879
15962
  var ol = first_child(fragment_1);
15880
15963
  var li = child(ol);
15881
15964
  var ul = child(li);
15882
15965
  var node_1 = sibling(child(ul), 6);
15883
15966
  {
15884
15967
  var consequent = ($$anchor3) => {
15885
- var li_1 = root_2$p();
15968
+ var li_1 = root_2$q();
15886
15969
  append($$anchor3, li_1);
15887
15970
  };
15888
15971
  if_block(node_1, ($$render) => {
@@ -15897,96 +15980,96 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15897
15980
  var li_2 = root_3$6();
15898
15981
  var article = child(li_2);
15899
15982
  var ul_1 = child(article);
15900
- var li_3 = child(ul_1);
15901
- var span = child(li_3);
15902
- var text2 = child(span, true);
15903
- reset(span);
15904
- var node_3 = sibling(span, 2);
15983
+ var node_3 = child(ul_1);
15905
15984
  {
15906
- var consequent_2 = ($$anchor4) => {
15907
- var fragment_2 = root_4$4();
15908
- var span_1 = first_child(fragment_2);
15909
- var text_1 = child(span_1, true);
15910
- reset(span_1);
15911
- var node_4 = sibling(span_1, 2);
15985
+ var consequent_1 = ($$anchor4) => {
15986
+ Ticket($$anchor4, {
15987
+ get cartItem() {
15988
+ return get$2(cartItem);
15989
+ }
15990
+ });
15991
+ };
15992
+ var alternate = ($$anchor4) => {
15993
+ var fragment_3 = comment();
15994
+ var node_4 = first_child(fragment_3);
15912
15995
  {
15913
- var consequent_1 = ($$anchor5) => {
15914
- var span_2 = root_5$2();
15915
- var text_2 = child(span_2, true);
15916
- reset(span_2);
15917
- template_effect(($0) => set_text(text_2, $0), [() => formatTime(get$2(cartItem).time)]);
15918
- append($$anchor5, span_2);
15996
+ var consequent_2 = ($$anchor5) => {
15997
+ Event$2($$anchor5, {
15998
+ get cartItem() {
15999
+ return get$2(cartItem);
16000
+ }
16001
+ });
15919
16002
  };
15920
- if_block(node_4, ($$render) => {
15921
- if (get$2(cartItem).product.type === "timeslot") $$render(consequent_1);
15922
- });
16003
+ if_block(
16004
+ node_4,
16005
+ ($$render) => {
16006
+ if (get$2(cartItem).product.product_type == "Event") $$render(consequent_2);
16007
+ },
16008
+ true
16009
+ );
15923
16010
  }
15924
- template_effect(($0) => set_text(text_1, $0), [
15925
- () => formatDate(get$2(cartItem).time, { month: "numeric", day: "numeric" }, shop.locale)
15926
- ]);
15927
- append($$anchor4, fragment_2);
16011
+ append($$anchor4, fragment_3);
15928
16012
  };
15929
16013
  if_block(node_3, ($$render) => {
15930
- if (get$2(cartItem).product.type === "timeslot" && get$2(cartItem).time) $$render(consequent_2);
16014
+ if (get$2(cartItem).product.product_type == "Ticket") $$render(consequent_1);
16015
+ else $$render(alternate, false);
15931
16016
  });
15932
16017
  }
16018
+ var li_3 = sibling(node_3, 2);
16019
+ var text2 = child(li_3, true);
15933
16020
  reset(li_3);
15934
16021
  var li_4 = sibling(li_3, 2);
15935
- var text_3 = child(li_4, true);
16022
+ var text_1 = child(li_4, true);
15936
16023
  reset(li_4);
15937
- var li_5 = sibling(li_4, 2);
15938
- var text_4 = child(li_5, true);
15939
- reset(li_5);
15940
- var node_5 = sibling(li_5, 2);
16024
+ var node_5 = sibling(li_4, 2);
15941
16025
  {
15942
16026
  var consequent_3 = ($$anchor4) => {
15943
- var li_6 = root_6$2();
15944
- var button = child(li_6);
16027
+ var li_5 = root_7$4();
16028
+ var button = child(li_5);
15945
16029
  button.__click = () => get$2(cart).deleteItem(get$2(cartItem));
15946
- reset(li_6);
15947
- append($$anchor4, li_6);
16030
+ reset(li_5);
16031
+ append($$anchor4, li_5);
15948
16032
  };
15949
16033
  if_block(node_5, ($$render) => {
15950
16034
  if (!preview()) $$render(consequent_3);
15951
16035
  });
15952
16036
  }
15953
- var li_7 = sibling(node_5, 2);
15954
- var text_5 = child(li_7, true);
15955
- reset(li_7);
16037
+ var li_6 = sibling(node_5, 2);
16038
+ var text_2 = child(li_6, true);
16039
+ reset(li_6);
15956
16040
  reset(ul_1);
15957
16041
  reset(article);
15958
16042
  reset(li_2);
15959
16043
  template_effect(() => {
15960
16044
  set_attribute(article, "data-testid", get$2(cartItem).uuid);
15961
- set_text(text2, get$2(cartItem).product.title);
15962
- set_text(text_3, get$2(cartItem).final_price_formatted);
15963
- set_text(text_4, get$2(cartItem).quantity);
15964
- set_text(text_5, get$2(cartItem).total_price_formatted);
16045
+ set_text(text2, get$2(cartItem).final_price_formatted);
16046
+ set_text(text_1, get$2(cartItem).quantity);
16047
+ set_text(text_2, get$2(cartItem).total_price_formatted);
15965
16048
  });
15966
16049
  append($$anchor3, li_2);
15967
16050
  });
15968
- var li_8 = sibling(node_2, 2);
15969
- var ul_2 = child(li_8);
16051
+ var li_7 = sibling(node_2, 2);
16052
+ var ul_2 = child(li_7);
15970
16053
  var node_6 = sibling(child(ul_2), 6);
15971
16054
  {
15972
16055
  var consequent_4 = ($$anchor3) => {
15973
- var li_9 = root_7$4();
15974
- append($$anchor3, li_9);
16056
+ var li_8 = root_8$1();
16057
+ append($$anchor3, li_8);
15975
16058
  };
15976
16059
  if_block(node_6, ($$render) => {
15977
16060
  if (!preview()) $$render(consequent_4);
15978
16061
  });
15979
16062
  }
15980
- var li_10 = sibling(node_6, 2);
15981
- var text_6 = child(li_10, true);
15982
- reset(li_10);
16063
+ var li_9 = sibling(node_6, 2);
16064
+ var text_3 = child(li_9, true);
16065
+ reset(li_9);
15983
16066
  reset(ul_2);
15984
- reset(li_8);
16067
+ reset(li_7);
15985
16068
  reset(ol);
15986
16069
  var node_7 = sibling(ol, 2);
15987
16070
  {
15988
16071
  var consequent_5 = ($$anchor3) => {
15989
- var a2 = root_8$1();
16072
+ var a2 = root_9$4();
15990
16073
  a2.__click = navToCheckout;
15991
16074
  append($$anchor3, a2);
15992
16075
  };
@@ -15994,7 +16077,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15994
16077
  if (!preview()) $$render(consequent_5);
15995
16078
  });
15996
16079
  }
15997
- template_effect(() => set_text(text_6, get$2(cart).totalFormatted));
16080
+ template_effect(() => set_text(text_3, get$2(cart).totalFormatted));
15998
16081
  append($$anchor2, fragment_1);
15999
16082
  };
16000
16083
  if_block(node, ($$render) => {
@@ -21936,7 +22019,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
21936
22019
  set(this.#props, value);
21937
22020
  }
21938
22021
  }
21939
- var root_2$o = /* @__PURE__ */ from_html(`<div><!></div>`);
22022
+ var root_2$p = /* @__PURE__ */ from_html(`<div><!></div>`);
21940
22023
  function Calendar$1($$anchor, $$props) {
21941
22024
  push($$props, true);
21942
22025
  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, [
@@ -22235,7 +22318,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22235
22318
  append($$anchor2, fragment_1);
22236
22319
  };
22237
22320
  var alternate = ($$anchor2) => {
22238
- var div = root_2$o();
22321
+ var div = root_2$p();
22239
22322
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
22240
22323
  var node_2 = child(div);
22241
22324
  snippet(node_2, () => children() ?? noop$1, () => rootState.snippetProps);
@@ -22286,7 +22369,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22286
22369
  [],
22287
22370
  true
22288
22371
  );
22289
- var root_2$n = /* @__PURE__ */ from_html(`<div><!></div>`);
22372
+ var root_2$o = /* @__PURE__ */ from_html(`<div><!></div>`);
22290
22373
  function Calendar_day($$anchor, $$props) {
22291
22374
  const uid = props_id();
22292
22375
  push($$props, true);
@@ -22348,7 +22431,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22348
22431
  append($$anchor2, fragment_1);
22349
22432
  };
22350
22433
  var alternate_1 = ($$anchor2) => {
22351
- var div = root_2$n();
22434
+ var div = root_2$o();
22352
22435
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
22353
22436
  var node_2 = child(div);
22354
22437
  {
@@ -22380,7 +22463,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22380
22463
  return pop($$exports);
22381
22464
  }
22382
22465
  create_custom_element(Calendar_day, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22383
- var root_2$m = /* @__PURE__ */ from_html(`<table><!></table>`);
22466
+ var root_2$n = /* @__PURE__ */ from_html(`<table><!></table>`);
22384
22467
  function Calendar_grid($$anchor, $$props) {
22385
22468
  const uid = props_id();
22386
22469
  push($$props, true);
@@ -22439,7 +22522,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22439
22522
  append($$anchor2, fragment_1);
22440
22523
  };
22441
22524
  var alternate = ($$anchor2) => {
22442
- var table = root_2$m();
22525
+ var table = root_2$n();
22443
22526
  attribute_effect(table, () => ({ ...get$2(mergedProps) }));
22444
22527
  var node_2 = child(table);
22445
22528
  snippet(node_2, () => children() ?? noop$1);
@@ -22455,7 +22538,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22455
22538
  return pop($$exports);
22456
22539
  }
22457
22540
  create_custom_element(Calendar_grid, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22458
- var root_2$l = /* @__PURE__ */ from_html(`<tbody><!></tbody>`);
22541
+ var root_2$m = /* @__PURE__ */ from_html(`<tbody><!></tbody>`);
22459
22542
  function Calendar_grid_body($$anchor, $$props) {
22460
22543
  const uid = props_id();
22461
22544
  push($$props, true);
@@ -22514,7 +22597,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22514
22597
  append($$anchor2, fragment_1);
22515
22598
  };
22516
22599
  var alternate = ($$anchor2) => {
22517
- var tbody = root_2$l();
22600
+ var tbody = root_2$m();
22518
22601
  attribute_effect(tbody, () => ({ ...get$2(mergedProps) }));
22519
22602
  var node_2 = child(tbody);
22520
22603
  snippet(node_2, () => children() ?? noop$1);
@@ -22530,7 +22613,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22530
22613
  return pop($$exports);
22531
22614
  }
22532
22615
  create_custom_element(Calendar_grid_body, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22533
- var root_2$k = /* @__PURE__ */ from_html(`<td><!></td>`);
22616
+ var root_2$l = /* @__PURE__ */ from_html(`<td><!></td>`);
22534
22617
  function Calendar_cell($$anchor, $$props) {
22535
22618
  const uid = props_id();
22536
22619
  push($$props, true);
@@ -22610,7 +22693,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22610
22693
  append($$anchor2, fragment_1);
22611
22694
  };
22612
22695
  var alternate = ($$anchor2) => {
22613
- var td = root_2$k();
22696
+ var td = root_2$l();
22614
22697
  attribute_effect(td, () => ({ ...get$2(mergedProps) }));
22615
22698
  var node_2 = child(td);
22616
22699
  snippet(node_2, () => children() ?? noop$1, () => cellState.snippetProps);
@@ -22639,7 +22722,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22639
22722
  [],
22640
22723
  true
22641
22724
  );
22642
- var root_2$j = /* @__PURE__ */ from_html(`<thead><!></thead>`);
22725
+ var root_2$k = /* @__PURE__ */ from_html(`<thead><!></thead>`);
22643
22726
  function Calendar_grid_head($$anchor, $$props) {
22644
22727
  const uid = props_id();
22645
22728
  push($$props, true);
@@ -22698,7 +22781,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22698
22781
  append($$anchor2, fragment_1);
22699
22782
  };
22700
22783
  var alternate = ($$anchor2) => {
22701
- var thead = root_2$j();
22784
+ var thead = root_2$k();
22702
22785
  attribute_effect(thead, () => ({ ...get$2(mergedProps) }));
22703
22786
  var node_2 = child(thead);
22704
22787
  snippet(node_2, () => children() ?? noop$1);
@@ -22714,7 +22797,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22714
22797
  return pop($$exports);
22715
22798
  }
22716
22799
  create_custom_element(Calendar_grid_head, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22717
- var root_2$i = /* @__PURE__ */ from_html(`<th><!></th>`);
22800
+ var root_2$j = /* @__PURE__ */ from_html(`<th><!></th>`);
22718
22801
  function Calendar_head_cell($$anchor, $$props) {
22719
22802
  const uid = props_id();
22720
22803
  push($$props, true);
@@ -22773,7 +22856,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22773
22856
  append($$anchor2, fragment_1);
22774
22857
  };
22775
22858
  var alternate = ($$anchor2) => {
22776
- var th = root_2$i();
22859
+ var th = root_2$j();
22777
22860
  attribute_effect(th, () => ({ ...get$2(mergedProps) }));
22778
22861
  var node_2 = child(th);
22779
22862
  snippet(node_2, () => children() ?? noop$1);
@@ -22789,7 +22872,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22789
22872
  return pop($$exports);
22790
22873
  }
22791
22874
  create_custom_element(Calendar_head_cell, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22792
- var root_2$h = /* @__PURE__ */ from_html(`<tr><!></tr>`);
22875
+ var root_2$i = /* @__PURE__ */ from_html(`<tr><!></tr>`);
22793
22876
  function Calendar_grid_row($$anchor, $$props) {
22794
22877
  const uid = props_id();
22795
22878
  push($$props, true);
@@ -22848,7 +22931,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22848
22931
  append($$anchor2, fragment_1);
22849
22932
  };
22850
22933
  var alternate = ($$anchor2) => {
22851
- var tr = root_2$h();
22934
+ var tr = root_2$i();
22852
22935
  attribute_effect(tr, () => ({ ...get$2(mergedProps) }));
22853
22936
  var node_2 = child(tr);
22854
22937
  snippet(node_2, () => children() ?? noop$1);
@@ -22864,7 +22947,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22864
22947
  return pop($$exports);
22865
22948
  }
22866
22949
  create_custom_element(Calendar_grid_row, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22867
- var root_2$g = /* @__PURE__ */ from_html(`<header><!></header>`);
22950
+ var root_2$h = /* @__PURE__ */ from_html(`<header><!></header>`);
22868
22951
  function Calendar_header($$anchor, $$props) {
22869
22952
  const uid = props_id();
22870
22953
  push($$props, true);
@@ -22923,7 +23006,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22923
23006
  append($$anchor2, fragment_1);
22924
23007
  };
22925
23008
  var alternate = ($$anchor2) => {
22926
- var header = root_2$g();
23009
+ var header = root_2$h();
22927
23010
  attribute_effect(header, () => ({ ...get$2(mergedProps) }));
22928
23011
  var node_2 = child(header);
22929
23012
  snippet(node_2, () => children() ?? noop$1);
@@ -22939,7 +23022,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22939
23022
  return pop($$exports);
22940
23023
  }
22941
23024
  create_custom_element(Calendar_header, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22942
- var root_2$f = /* @__PURE__ */ from_html(`<div><!></div>`);
23025
+ var root_2$g = /* @__PURE__ */ from_html(`<div><!></div>`);
22943
23026
  function Calendar_heading($$anchor, $$props) {
22944
23027
  const uid = props_id();
22945
23028
  push($$props, true);
@@ -23001,7 +23084,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
23001
23084
  append($$anchor2, fragment_1);
23002
23085
  };
23003
23086
  var alternate_1 = ($$anchor2) => {
23004
- var div = root_2$f();
23087
+ var div = root_2$g();
23005
23088
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
23006
23089
  var node_2 = child(div);
23007
23090
  {
@@ -23033,7 +23116,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
23033
23116
  return pop($$exports);
23034
23117
  }
23035
23118
  create_custom_element(Calendar_heading, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
23036
- var root_2$e = /* @__PURE__ */ from_html(`<button><!></button>`);
23119
+ var root_2$f = /* @__PURE__ */ from_html(`<button><!></button>`);
23037
23120
  function Calendar_next_button($$anchor, $$props) {
23038
23121
  const uid = props_id();
23039
23122
  push($$props, true);
@@ -23100,7 +23183,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
23100
23183
  append($$anchor2, fragment_1);
23101
23184
  };
23102
23185
  var alternate = ($$anchor2) => {
23103
- var button = root_2$e();
23186
+ var button = root_2$f();
23104
23187
  attribute_effect(button, () => ({ ...get$2(mergedProps) }));
23105
23188
  var node_2 = child(button);
23106
23189
  snippet(node_2, () => children() ?? noop$1);
@@ -23116,7 +23199,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
23116
23199
  return pop($$exports);
23117
23200
  }
23118
23201
  create_custom_element(Calendar_next_button, { children: {}, child: {}, id: {}, ref: {}, tabindex: {} }, [], [], true);
23119
- var root_2$d = /* @__PURE__ */ from_html(`<button><!></button>`);
23202
+ var root_2$e = /* @__PURE__ */ from_html(`<button><!></button>`);
23120
23203
  function Calendar_prev_button($$anchor, $$props) {
23121
23204
  const uid = props_id();
23122
23205
  push($$props, true);
@@ -23183,7 +23266,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
23183
23266
  append($$anchor2, fragment_1);
23184
23267
  };
23185
23268
  var alternate = ($$anchor2) => {
23186
- var button = root_2$d();
23269
+ var button = root_2$e();
23187
23270
  attribute_effect(button, () => ({ ...get$2(mergedProps) }));
23188
23271
  var node_2 = child(button);
23189
23272
  snippet(node_2, () => children() ?? noop$1);
@@ -23200,8 +23283,8 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
23200
23283
  }
23201
23284
  create_custom_element(Calendar_prev_button, { children: {}, child: {}, id: {}, ref: {}, tabindex: {} }, [], [], true);
23202
23285
  enable_legacy_mode_flag();
23203
- var root_1$e = /* @__PURE__ */ from_html(`<input/>`);
23204
- var root_2$c = /* @__PURE__ */ from_html(`<input/>`);
23286
+ var root_1$d = /* @__PURE__ */ from_html(`<input/>`);
23287
+ var root_2$d = /* @__PURE__ */ from_html(`<input/>`);
23205
23288
  function Hidden_input($$anchor, $$props) {
23206
23289
  push($$props, true);
23207
23290
  let value = prop($$props, "value", 15), restProps = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy", "$$host", "value"]);
@@ -23223,12 +23306,12 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
23223
23306
  var node = first_child(fragment);
23224
23307
  {
23225
23308
  var consequent = ($$anchor2) => {
23226
- var input = root_1$e();
23309
+ var input = root_1$d();
23227
23310
  attribute_effect(input, () => ({ ...get$2(mergedProps), value: value() }), void 0, void 0, void 0, void 0, true);
23228
23311
  append($$anchor2, input);
23229
23312
  };
23230
23313
  var alternate = ($$anchor2) => {
23231
- var input_1 = root_2$c();
23314
+ var input_1 = root_2$d();
23232
23315
  attribute_effect(input_1, () => ({ ...get$2(mergedProps) }), void 0, void 0, void 0, void 0, true);
23233
23316
  bind_value(input_1, value);
23234
23317
  append($$anchor2, input_1);
@@ -25671,7 +25754,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
25671
25754
  return pop($$exports);
25672
25755
  }
25673
25756
  create_custom_element(Popper_content, { content: {}, isStatic: {}, onPlaced: {} }, [], [], true);
25674
- var root_1$d = /* @__PURE__ */ from_html(`<!> <!>`, 1);
25757
+ var root_1$c = /* @__PURE__ */ from_html(`<!> <!>`, 1);
25675
25758
  function Popper_layer_inner($$anchor, $$props) {
25676
25759
  push($$props, true);
25677
25760
  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, [
@@ -25982,7 +26065,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
25982
26065
  const content = ($$anchor2, $$arg0) => {
25983
26066
  let floatingProps = () => $$arg0?.().props;
25984
26067
  let wrapperProps = () => $$arg0?.().wrapperProps;
25985
- var fragment_1 = root_1$d();
26068
+ var fragment_1 = root_1$c();
25986
26069
  var node = first_child(fragment_1);
25987
26070
  {
25988
26071
  var consequent = ($$anchor3) => {
@@ -28436,8 +28519,8 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
28436
28519
  pop();
28437
28520
  }
28438
28521
  create_custom_element(Date_field_hidden_input, {}, [], [], true);
28439
- var root_2$b = /* @__PURE__ */ from_html(`<div><!></div>`);
28440
- var root$5 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
28522
+ var root_2$c = /* @__PURE__ */ from_html(`<div><!></div>`);
28523
+ var root$4 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
28441
28524
  function Date_field_input($$anchor, $$props) {
28442
28525
  const uid = props_id();
28443
28526
  push($$props, true);
@@ -28495,7 +28578,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
28495
28578
  flushSync();
28496
28579
  }
28497
28580
  };
28498
- var fragment = root$5();
28581
+ var fragment = root$4();
28499
28582
  var node = first_child(fragment);
28500
28583
  {
28501
28584
  var consequent = ($$anchor2) => {
@@ -28508,7 +28591,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
28508
28591
  append($$anchor2, fragment_1);
28509
28592
  };
28510
28593
  var alternate = ($$anchor2) => {
28511
- var div = root_2$b();
28594
+ var div = root_2$c();
28512
28595
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
28513
28596
  var node_2 = child(div);
28514
28597
  snippet(node_2, () => children() ?? noop$1, () => ({ segments: inputState.root.segmentContents }));
@@ -28526,7 +28609,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
28526
28609
  return pop($$exports);
28527
28610
  }
28528
28611
  create_custom_element(Date_field_input, { id: {}, ref: {}, name: {}, children: {}, child: {} }, [], [], true);
28529
- var root_2$a = /* @__PURE__ */ from_html(`<div><!></div>`);
28612
+ var root_2$b = /* @__PURE__ */ from_html(`<div><!></div>`);
28530
28613
  function Date_field_label($$anchor, $$props) {
28531
28614
  const uid = props_id();
28532
28615
  push($$props, true);
@@ -28585,7 +28668,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
28585
28668
  append($$anchor2, fragment_1);
28586
28669
  };
28587
28670
  var alternate = ($$anchor2) => {
28588
- var div = root_2$a();
28671
+ var div = root_2$b();
28589
28672
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
28590
28673
  var node_2 = child(div);
28591
28674
  snippet(node_2, () => children() ?? noop$1);
@@ -28601,7 +28684,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
28601
28684
  return pop($$exports);
28602
28685
  }
28603
28686
  create_custom_element(Date_field_label, { id: {}, ref: {}, children: {}, child: {} }, [], [], true);
28604
- var root_2$9 = /* @__PURE__ */ from_html(`<span><!></span>`);
28687
+ var root_2$a = /* @__PURE__ */ from_html(`<span><!></span>`);
28605
28688
  function Date_field_segment($$anchor, $$props) {
28606
28689
  const uid = props_id();
28607
28690
  push($$props, true);
@@ -28668,7 +28751,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
28668
28751
  append($$anchor2, fragment_1);
28669
28752
  };
28670
28753
  var alternate = ($$anchor2) => {
28671
- var span = root_2$9();
28754
+ var span = root_2$a();
28672
28755
  attribute_effect(span, () => ({ ...get$2(mergedProps) }));
28673
28756
  var node_2 = child(span);
28674
28757
  snippet(node_2, () => children() ?? noop$1);
@@ -29243,7 +29326,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
29243
29326
  [],
29244
29327
  true
29245
29328
  );
29246
- var root_2$8 = /* @__PURE__ */ from_html(`<div><!></div>`);
29329
+ var root_2$9 = /* @__PURE__ */ from_html(`<div><!></div>`);
29247
29330
  function Date_picker_calendar($$anchor, $$props) {
29248
29331
  const uid = props_id();
29249
29332
  push($$props, true);
@@ -29330,7 +29413,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
29330
29413
  append($$anchor2, fragment_1);
29331
29414
  };
29332
29415
  var alternate = ($$anchor2) => {
29333
- var div = root_2$8();
29416
+ var div = root_2$9();
29334
29417
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
29335
29418
  var node_2 = child(div);
29336
29419
  snippet(node_2, () => children() ?? noop$1, () => calendarState.snippetProps);
@@ -29843,11 +29926,11 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
29843
29926
  return pop($$exports);
29844
29927
  }
29845
29928
  create_custom_element(Date_picker_trigger, { ref: {}, onkeydown: {} }, [], [], true);
29846
- var root_2$7 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
29929
+ var root_2$8 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
29847
29930
  var root_7$3 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
29848
29931
  var root_9$2 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
29849
29932
  var root_6$1 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
29850
- var root_1$c = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
29933
+ var root_1$b = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
29851
29934
  function DatePicker_1($$anchor, $$props) {
29852
29935
  push($$props, true);
29853
29936
  let dateString = prop($$props, "dateString", 15), labelClass = prop($$props, "labelClass", 7), inputClass = prop($$props, "inputClass", 7);
@@ -29889,7 +29972,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
29889
29972
  set(date2, $$value, true);
29890
29973
  },
29891
29974
  children: ($$anchor3, $$slotProps) => {
29892
- var fragment_1 = root_1$c();
29975
+ var fragment_1 = root_1$b();
29893
29976
  var node_1 = first_child(fragment_1);
29894
29977
  component(node_1, () => Date_field_label, ($$anchor4, DatePicker_Label) => {
29895
29978
  DatePicker_Label($$anchor4, {
@@ -29902,7 +29985,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
29902
29985
  {
29903
29986
  const children = ($$anchor4, $$arg0) => {
29904
29987
  let segments = () => $$arg0?.().segments;
29905
- var fragment_2 = root_2$7();
29988
+ var fragment_2 = root_2$8();
29906
29989
  var node_3 = first_child(fragment_2);
29907
29990
  each(node_3, 17, segments, index$1, ($$anchor5, $$item) => {
29908
29991
  let part = () => get$2($$item).part;
@@ -30096,8 +30179,8 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30096
30179
  return pop($$exports);
30097
30180
  }
30098
30181
  create_custom_element(DatePicker_1, { dateString: {}, labelClass: {}, inputClass: {} }, [], [], true);
30099
- var root_2$6 = /* @__PURE__ */ from_html(`<span class="go-field-star" aria-hidden="true">*</span>`);
30100
- var root_1$b = /* @__PURE__ */ from_html(`<!> <!>`, 1);
30182
+ var root_2$7 = /* @__PURE__ */ from_html(`<span class="go-field-star" aria-hidden="true">*</span>`);
30183
+ var root_1$a = /* @__PURE__ */ from_html(`<!> <!>`, 1);
30101
30184
  var root_3$4 = /* @__PURE__ */ from_html(`<label><!></label> <input/>`, 1);
30102
30185
  var root_4$2 = /* @__PURE__ */ from_html(`<label><input/> <span class="go-checkbox-label"><!></span></label>`);
30103
30186
  var root_7$2 = /* @__PURE__ */ from_html(`<option> </option>`);
@@ -30107,13 +30190,13 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30107
30190
  function InputAndLabel($$anchor, $$props) {
30108
30191
  push($$props, true);
30109
30192
  const labelText = ($$anchor2) => {
30110
- var fragment = root_1$b();
30193
+ var fragment = root_1$a();
30111
30194
  var node = first_child(fragment);
30112
30195
  html$2(node, () => purify.sanitize(field().label));
30113
30196
  var node_1 = sibling(node, 2);
30114
30197
  {
30115
30198
  var consequent = ($$anchor3) => {
30116
- var span = root_2$6();
30199
+ var span = root_2$7();
30117
30200
  append($$anchor3, span);
30118
30201
  };
30119
30202
  if_block(node_1, ($$render) => {
@@ -30400,10 +30483,10 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30400
30483
  [],
30401
30484
  true
30402
30485
  );
30403
- var root_1$a = /* @__PURE__ */ from_html(`<span> </span>`);
30486
+ var root_1$9 = /* @__PURE__ */ from_html(`<span> </span>`);
30404
30487
  var root_3$3 = /* @__PURE__ */ from_html(`<li> </li>`);
30405
- var root_2$5 = /* @__PURE__ */ from_html(`<ul class="go-field-errors" role="alert"></ul>`);
30406
- var root$4 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
30488
+ var root_2$6 = /* @__PURE__ */ from_html(`<ul class="go-field-errors" role="alert"></ul>`);
30489
+ var root$3 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
30407
30490
  function Field($$anchor, $$props) {
30408
30491
  push($$props, true);
30409
30492
  let key = prop($$props, "key", 7), required = prop($$props, "required", 7, false), labelClass = prop($$props, "labelClass", 7), inputClass = prop($$props, "inputClass", 7);
@@ -30467,7 +30550,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30467
30550
  flushSync();
30468
30551
  }
30469
30552
  };
30470
- var fragment = root$4();
30553
+ var fragment = root$3();
30471
30554
  var node = first_child(fragment);
30472
30555
  InputAndLabel(node, {
30473
30556
  get describedById() {
@@ -30490,7 +30573,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30490
30573
  var node_1 = sibling(node, 2);
30491
30574
  {
30492
30575
  var consequent = ($$anchor2) => {
30493
- var span = root_1$a();
30576
+ var span = root_1$9();
30494
30577
  var text2 = child(span, true);
30495
30578
  reset(span);
30496
30579
  template_effect(() => {
@@ -30506,7 +30589,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30506
30589
  var node_2 = sibling(node_1, 2);
30507
30590
  {
30508
30591
  var consequent_1 = ($$anchor2) => {
30509
- var ul = root_2$5();
30592
+ var ul = root_2$6();
30510
30593
  each(ul, 21, () => get$2(allErrors), index$1, ($$anchor3, error) => {
30511
30594
  var li = root_3$3();
30512
30595
  var text_1 = child(li, true);
@@ -30537,7 +30620,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30537
30620
  ["getField"],
30538
30621
  false
30539
30622
  ));
30540
- var root_1$9 = /* @__PURE__ */ from_html(`<go-field></go-field>`, 2);
30623
+ var root_1$8 = /* @__PURE__ */ from_html(`<go-field></go-field>`, 2);
30541
30624
  function AllFields($$anchor, $$props) {
30542
30625
  push($$props, true);
30543
30626
  let _details = getDetails$1($$props.$$host);
@@ -30546,7 +30629,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30546
30629
  var fragment = comment();
30547
30630
  var node = first_child(fragment);
30548
30631
  each(node, 17, () => get$2(allFields2), index$1, ($$anchor2, field) => {
30549
- var go_field = root_1$9();
30632
+ var go_field = root_1$8();
30550
30633
  template_effect(() => set_custom_element_data(go_field, "key", get$2(field).key));
30551
30634
  template_effect(() => set_custom_element_data(go_field, "required", get$2(field).required));
30552
30635
  append($$anchor2, go_field);
@@ -30555,11 +30638,11 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30555
30638
  pop();
30556
30639
  }
30557
30640
  customElements.define("go-all-fields", create_custom_element(AllFields, {}, [], [], false));
30558
- var root_2$4 = /* @__PURE__ */ from_html(`<p aria-live="assertive" class="sr-only"> </p>`);
30641
+ var root_2$5 = /* @__PURE__ */ from_html(`<p aria-live="assertive" class="sr-only"> </p>`);
30559
30642
  var root_4$1 = /* @__PURE__ */ from_html(`<li> </li>`);
30560
30643
  var root_3$2 = /* @__PURE__ */ from_html(`<ul class="go-error-feedback-api-errors"></ul>`);
30561
30644
  var root_5 = /* @__PURE__ */ from_html(`<p aria-hidden="true"> </p>`);
30562
- var root_1$8 = /* @__PURE__ */ from_html(`<div><!> <!> <!></div>`);
30645
+ var root_1$7 = /* @__PURE__ */ from_html(`<div><!> <!> <!></div>`);
30563
30646
  function ErrorsFeedback($$anchor, $$props) {
30564
30647
  push($$props, true);
30565
30648
  const _details = getDetails$1($$props.$$host);
@@ -30576,12 +30659,12 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30576
30659
  var node = first_child(fragment);
30577
30660
  {
30578
30661
  var consequent_3 = ($$anchor2) => {
30579
- var div = root_1$8();
30662
+ var div = root_1$7();
30580
30663
  let classes;
30581
30664
  var node_1 = child(div);
30582
30665
  {
30583
30666
  var consequent = ($$anchor3) => {
30584
- var p2 = root_2$4();
30667
+ var p2 = root_2$5();
30585
30668
  var text2 = child(p2);
30586
30669
  reset(p2);
30587
30670
  template_effect(() => set_text(text2, `Failed to save because ${get$2(errorsOnSubmit) ?? ""} fields are invalid.`));
@@ -30636,9 +30719,9 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30636
30719
  pop();
30637
30720
  }
30638
30721
  customElements.define("go-errors-feedback", create_custom_element(ErrorsFeedback, {}, [], [], false));
30639
- var root$3 = /* @__PURE__ */ from_html(`<div class="go-form-feedback"><!></div>`);
30722
+ var root$2 = /* @__PURE__ */ from_html(`<div class="go-form-feedback"><!></div>`);
30640
30723
  function FormFeedback($$anchor, $$props) {
30641
- var div = root$3();
30724
+ var div = root$2();
30642
30725
  var node = child(div);
30643
30726
  slot(node, $$props, "default", {});
30644
30727
  reset(div);
@@ -30671,7 +30754,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30671
30754
  [],
30672
30755
  false
30673
30756
  ));
30674
- var root_1$7 = /* @__PURE__ */ from_html(`<div aria-live="assertive"> </div>`);
30757
+ var root_1$6 = /* @__PURE__ */ from_html(`<div aria-live="assertive"> </div>`);
30675
30758
  function SuccessFeedback($$anchor, $$props) {
30676
30759
  push($$props, true);
30677
30760
  const _details = getDetails$1($$props.$$host);
@@ -30680,7 +30763,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30680
30763
  var node = first_child(fragment);
30681
30764
  {
30682
30765
  var consequent = ($$anchor2) => {
30683
- var div = root_1$7();
30766
+ var div = root_1$6();
30684
30767
  let classes;
30685
30768
  var text2 = child(div, true);
30686
30769
  reset(div);
@@ -31069,8 +31152,9 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31069
31152
  return pop($$exports);
31070
31153
  }
31071
31154
  customElements.define("go-order", create_custom_element(Order, { token: { attribute: "token", reflect: true, type: "String" } }, [], ["orderDetails"], false));
31072
- var root_1$6 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities"> </span>`, 1);
31073
- 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>`);
31155
+ 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);
31156
+ var root_2$4 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities"> </span>`, 1);
31157
+ 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>`);
31074
31158
  function Event$1($$anchor, $$props) {
31075
31159
  push($$props, true);
31076
31160
  let item = prop($$props, "item", 7), orderDetails = prop($$props, "orderDetails", 7);
@@ -31090,7 +31174,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31090
31174
  flushSync();
31091
31175
  }
31092
31176
  };
31093
- var li = root$2();
31177
+ var li = root$1();
31094
31178
  var article = child(li);
31095
31179
  var ul = child(article);
31096
31180
  var li_1 = sibling(child(ul), 2);
@@ -31098,18 +31182,44 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31098
31182
  var text2 = child(span, true);
31099
31183
  reset(span);
31100
31184
  var node = sibling(span, 2);
31101
- each(node, 17, () => item().attributes.quantities, index$1, ($$anchor2, scalePrice) => {
31102
- var fragment = root_1$6();
31103
- var span_1 = sibling(first_child(fragment), 2);
31104
- var text_1 = child(span_1);
31105
- reset(span_1);
31106
- template_effect(() => set_text(text_1, `${get$2(scalePrice).quantity ?? ""} x ${get$2(scalePrice).title ?? ""}`));
31107
- append($$anchor2, fragment);
31185
+ {
31186
+ var consequent = ($$anchor2) => {
31187
+ var fragment = root_1$5();
31188
+ var span_1 = first_child(fragment);
31189
+ var text_1 = child(span_1, true);
31190
+ reset(span_1);
31191
+ var span_2 = sibling(span_1, 2);
31192
+ var text_2 = child(span_2, true);
31193
+ reset(span_2);
31194
+ template_effect(
31195
+ ($0, $1) => {
31196
+ set_text(text_1, $0);
31197
+ set_text(text_2, $1);
31198
+ },
31199
+ [
31200
+ () => formatDate(item().attributes.start_time, { month: "numeric", day: "numeric" }, shop.locale),
31201
+ () => formatTime(item().attributes.start_time)
31202
+ ]
31203
+ );
31204
+ append($$anchor2, fragment);
31205
+ };
31206
+ if_block(node, ($$render) => {
31207
+ if (item().attributes.start_time) $$render(consequent);
31208
+ });
31209
+ }
31210
+ var node_1 = sibling(node, 2);
31211
+ each(node_1, 17, () => item().attributes.quantities, index$1, ($$anchor2, scalePrice) => {
31212
+ var fragment_1 = root_2$4();
31213
+ var span_3 = sibling(first_child(fragment_1), 2);
31214
+ var text_3 = child(span_3);
31215
+ reset(span_3);
31216
+ template_effect(() => set_text(text_3, `${get$2(scalePrice).quantity ?? ""} x ${get$2(scalePrice).title ?? ""}`));
31217
+ append($$anchor2, fragment_1);
31108
31218
  });
31109
- var a2 = sibling(node, 2);
31219
+ var a2 = sibling(node_1, 2);
31110
31220
  reset(li_1);
31111
31221
  var li_2 = sibling(li_1, 2);
31112
- var text_2 = child(li_2, true);
31222
+ var text_4 = child(li_2, true);
31113
31223
  reset(li_2);
31114
31224
  next(2);
31115
31225
  reset(ul);
@@ -31119,7 +31229,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31119
31229
  ($0, $1) => {
31120
31230
  set_text(text2, item().attributes.title);
31121
31231
  set_attribute(a2, "href", $0);
31122
- set_text(text_2, $1);
31232
+ set_text(text_4, $1);
31123
31233
  },
31124
31234
  [
31125
31235
  () => orderDetails().downloadLink(item()),
@@ -31336,7 +31446,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31336
31446
  return pop($$exports);
31337
31447
  }
31338
31448
  create_custom_element(TicketSale, { item: {}, orderDetails: {} }, [], [], true);
31339
- 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>`);
31449
+ 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>`);
31340
31450
  function Breakdown($$anchor, $$props) {
31341
31451
  push($$props, true);
31342
31452
  const _orderDetails = getDetails($$props.$$host);
@@ -31346,7 +31456,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31346
31456
  var node = first_child(fragment);
31347
31457
  {
31348
31458
  var consequent_2 = ($$anchor2) => {
31349
- var ol = root_1$5();
31459
+ var ol = root_1$4();
31350
31460
  var node_1 = sibling(child(ol), 2);
31351
31461
  each(node_1, 17, () => get$2(order).items, (item) => item.id, ($$anchor3, item) => {
31352
31462
  var fragment_1 = comment();
@@ -31650,12 +31760,12 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31650
31760
  }
31651
31761
  if (tsd.eventIds.length > 1) throw new Error("(loadEventScaledPricesTickets) currently we support only one eventId in go-ticket-selection");
31652
31762
  const eid = tsd.eventIds[0];
31653
- const event = await shop.asyncFetch(() => shop.getEventDetailsOnDate(eid, segment.dateId));
31654
- if (event.prices) {
31655
- const UITickets = event.prices.map((t) => createUIEventTicket(t, segment.dateId)) || [];
31763
+ const eventDate = await shop.asyncFetch(() => shop.getEventDetailsOnDate(eid, segment.dateId));
31764
+ if (eventDate.prices) {
31765
+ const UITickets = eventDate.prices.map((t) => createUIEventTicket(t, segment.dateId, { selectedTime: eventDate.start_time })) || [];
31656
31766
  segment.preCart = createCart(UITickets);
31657
31767
  } else console.warn("(loadEventScaledPricesTickets) event.prices is undefined");
31658
- if (event.seats) shop.capacityManager.addSeats(segment.dateId, event.seats);
31768
+ if (eventDate.seats) shop.capacityManager.addSeats(segment.dateId, eventDate.seats);
31659
31769
  else console.warn("(loadEventScaledPricesTickets) event.seats is undefined");
31660
31770
  }
31661
31771
  async function loadEventTickets(segment) {
@@ -31853,7 +31963,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31853
31963
  throw new Error(`(selectedTime) Unhandled Ticket Type: ${exhaustedChecking2}`);
31854
31964
  }
31855
31965
  case "Event":
31856
- return "";
31966
+ return product.selectedTime || "";
31857
31967
  default:
31858
31968
  const exhaustedChecking = product.product_type;
31859
31969
  throw new Error(`(selectedTime) Unhandled product type: ${exhaustedChecking}`);
@@ -31863,66 +31973,6 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31863
31973
  const d = /* @__PURE__ */ new Date();
31864
31974
  return d.toISOString();
31865
31975
  }
31866
- var root_1$4 = /* @__PURE__ */ from_html(`<label class="svelte-1qd449h"> </label>`);
31867
- var root$1 = /* @__PURE__ */ from_html(`<div class="svelte-1qd449h"><!> <pre><!>
31868
- </pre></div>`);
31869
- const $$css = {
31870
- hash: "svelte-1qd449h",
31871
- 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 */}"
31872
- };
31873
- function Log($$anchor, $$props) {
31874
- push($$props, true);
31875
- append_styles$1($$anchor, $$css);
31876
- let data = prop($$props, "data", 7), format = prop($$props, "format", 7, true), label = prop($$props, "label", 7, "");
31877
- var $$exports = {
31878
- get data() {
31879
- return data();
31880
- },
31881
- set data($$value) {
31882
- data($$value);
31883
- flushSync();
31884
- },
31885
- get format() {
31886
- return format();
31887
- },
31888
- set format($$value = true) {
31889
- format($$value);
31890
- flushSync();
31891
- },
31892
- get label() {
31893
- return label();
31894
- },
31895
- set label($$value = "") {
31896
- label($$value);
31897
- flushSync();
31898
- }
31899
- };
31900
- var div = root$1();
31901
- var node = child(div);
31902
- {
31903
- var consequent = ($$anchor2) => {
31904
- var label_1 = root_1$4();
31905
- var text2 = child(label_1);
31906
- reset(label_1);
31907
- template_effect(() => set_text(text2, `${label() ?? ""}:`));
31908
- append($$anchor2, label_1);
31909
- };
31910
- if_block(node, ($$render) => {
31911
- if (label()) $$render(consequent);
31912
- });
31913
- }
31914
- var pre = sibling(node, 2);
31915
- let classes;
31916
- var node_1 = child(pre);
31917
- html$2(node_1, () => format() ? JSON.stringify(data(), null, 2) : JSON.stringify(data()));
31918
- next();
31919
- reset(pre);
31920
- reset(div);
31921
- template_effect(() => classes = set_class(pre, 1, "svelte-1qd449h", null, classes, { format: format() }));
31922
- append($$anchor, div);
31923
- return pop($$exports);
31924
- }
31925
- create_custom_element(Log, { data: {}, format: {}, label: {} }, [], [], true);
31926
31976
  function generateQuantityOptions(min2, max2) {
31927
31977
  let options = [{ value: 0, label: "0" }];
31928
31978
  if (max2 === 0) {