@gomusdev/web-components 1.23.0 → 1.24.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.
@@ -12173,7 +12173,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
12173
12173
  const KEY$4 = "go-annual-ticket-personalization";
12174
12174
  const setPersonalizationDetails = createSetDetails(KEY$4);
12175
12175
  var root_3$8 = /* @__PURE__ */ from_html(`<li><a>Personalize</a></li>`);
12176
- var root_2$r = /* @__PURE__ */ from_html(`<ul class="go-annual-ticket"><li class="go-annual-ticket-title"> </li> <li class="go-annual-ticket-personalization-count"> </li> <!></ul>`);
12176
+ 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>`);
12177
12177
  function AnnualTicketPersonalization($$anchor, $$props) {
12178
12178
  push($$props, true);
12179
12179
  let token = prop($$props, "token", 7);
@@ -12200,7 +12200,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
12200
12200
  var fragment_1 = comment();
12201
12201
  var node_1 = first_child(fragment_1);
12202
12202
  each(node_1, 17, () => get$2(order).ticket_sales, (ticketSale) => ticketSale.id, ($$anchor3, ticketSale) => {
12203
- var ul = root_2$r();
12203
+ var ul = root_2$q();
12204
12204
  var li = child(ul);
12205
12205
  var text2 = child(li, true);
12206
12206
  reset(li);
@@ -15196,7 +15196,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15196
15196
  ["details"],
15197
15197
  false
15198
15198
  ));
15199
- var root$9 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15199
+ var root$7 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15200
15200
  function PasswordReset($$anchor, $$props) {
15201
15201
  push($$props, true);
15202
15202
  let form;
@@ -15230,7 +15230,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15230
15230
  flushSync();
15231
15231
  }
15232
15232
  };
15233
- var go_form = root$9();
15233
+ var go_form = root$7();
15234
15234
  set_custom_element_data(go_form, "formId", "passwordReset");
15235
15235
  template_effect(() => set_custom_element_data(go_form, "custom", custom2()));
15236
15236
  bind_this(go_form, ($$value) => form = $$value, () => form);
@@ -15238,7 +15238,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15238
15238
  return pop($$exports);
15239
15239
  }
15240
15240
  customElements.define("go-password-reset", create_custom_element(PasswordReset, { custom: {} }, [], [], false));
15241
- var root$8 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15241
+ var root$6 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15242
15242
  function SignIn($$anchor, $$props) {
15243
15243
  push($$props, true);
15244
15244
  let form;
@@ -15263,7 +15263,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15263
15263
  onMount(() => {
15264
15264
  $$props.$$host.addEventListener("go-submit", signIn);
15265
15265
  });
15266
- var go_form = root$8();
15266
+ var go_form = root$6();
15267
15267
  set_custom_element_data(go_form, "formId", "signIn");
15268
15268
  bind_this(go_form, ($$value) => form = $$value, () => form);
15269
15269
  append($$anchor, go_form);
@@ -15278,7 +15278,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15278
15278
  [],
15279
15279
  false
15280
15280
  ));
15281
- var root$7 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15281
+ var root$5 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15282
15282
  function SignUp($$anchor, $$props) {
15283
15283
  push($$props, true);
15284
15284
  Forms.defineForm({
@@ -15315,7 +15315,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15315
15315
  onMount(() => {
15316
15316
  $$props.$$host.addEventListener("go-submit", signUp);
15317
15317
  });
15318
- var go_form = root$7();
15318
+ var go_form = root$5();
15319
15319
  set_custom_element_data(go_form, "formId", "signUp");
15320
15320
  bind_this(go_form, ($$value) => form = $$value, () => form);
15321
15321
  append($$anchor, go_form);
@@ -15587,7 +15587,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15587
15587
  const cart = proxy(createCart([], { syncLocalStorage: true }));
15588
15588
  syncCartToLocalStorage(cart);
15589
15589
  dispatchCartEvents();
15590
- var root_2$q = /* @__PURE__ */ from_html(`<li data-go-cart-header-remove="">remove</li>`);
15590
+ var root_2$p = /* @__PURE__ */ from_html(`<li data-go-cart-header-remove="">remove</li>`);
15591
15591
  var root_5$2 = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
15592
15592
  var root_4$5 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
15593
15593
  var root_6$2 = /* @__PURE__ */ from_html(`<li data-go-cart-item-remove=""><button>⨉</button></li>`);
@@ -15623,7 +15623,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15623
15623
  var node_1 = sibling(child(ul), 6);
15624
15624
  {
15625
15625
  var consequent = ($$anchor3) => {
15626
- var li_1 = root_2$q();
15626
+ var li_1 = root_2$p();
15627
15627
  append($$anchor3, li_1);
15628
15628
  };
15629
15629
  if_block(node_1, ($$render) => {
@@ -21677,7 +21677,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
21677
21677
  set(this.#props, value);
21678
21678
  }
21679
21679
  }
21680
- var root_2$p = /* @__PURE__ */ from_html(`<div><!></div>`);
21680
+ var root_2$o = /* @__PURE__ */ from_html(`<div><!></div>`);
21681
21681
  function Calendar$1($$anchor, $$props) {
21682
21682
  push($$props, true);
21683
21683
  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, [
@@ -21976,7 +21976,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
21976
21976
  append($$anchor2, fragment_1);
21977
21977
  };
21978
21978
  var alternate = ($$anchor2) => {
21979
- var div = root_2$p();
21979
+ var div = root_2$o();
21980
21980
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
21981
21981
  var node_2 = child(div);
21982
21982
  snippet(node_2, () => children() ?? noop$1, () => rootState.snippetProps);
@@ -22027,7 +22027,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22027
22027
  [],
22028
22028
  true
22029
22029
  );
22030
- var root_2$o = /* @__PURE__ */ from_html(`<div><!></div>`);
22030
+ var root_2$n = /* @__PURE__ */ from_html(`<div><!></div>`);
22031
22031
  function Calendar_day($$anchor, $$props) {
22032
22032
  const uid = props_id();
22033
22033
  push($$props, true);
@@ -22089,7 +22089,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22089
22089
  append($$anchor2, fragment_1);
22090
22090
  };
22091
22091
  var alternate_1 = ($$anchor2) => {
22092
- var div = root_2$o();
22092
+ var div = root_2$n();
22093
22093
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
22094
22094
  var node_2 = child(div);
22095
22095
  {
@@ -22121,7 +22121,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22121
22121
  return pop($$exports);
22122
22122
  }
22123
22123
  create_custom_element(Calendar_day, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22124
- var root_2$n = /* @__PURE__ */ from_html(`<table><!></table>`);
22124
+ var root_2$m = /* @__PURE__ */ from_html(`<table><!></table>`);
22125
22125
  function Calendar_grid($$anchor, $$props) {
22126
22126
  const uid = props_id();
22127
22127
  push($$props, true);
@@ -22180,7 +22180,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22180
22180
  append($$anchor2, fragment_1);
22181
22181
  };
22182
22182
  var alternate = ($$anchor2) => {
22183
- var table = root_2$n();
22183
+ var table = root_2$m();
22184
22184
  attribute_effect(table, () => ({ ...get$2(mergedProps) }));
22185
22185
  var node_2 = child(table);
22186
22186
  snippet(node_2, () => children() ?? noop$1);
@@ -22196,7 +22196,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22196
22196
  return pop($$exports);
22197
22197
  }
22198
22198
  create_custom_element(Calendar_grid, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22199
- var root_2$m = /* @__PURE__ */ from_html(`<tbody><!></tbody>`);
22199
+ var root_2$l = /* @__PURE__ */ from_html(`<tbody><!></tbody>`);
22200
22200
  function Calendar_grid_body($$anchor, $$props) {
22201
22201
  const uid = props_id();
22202
22202
  push($$props, true);
@@ -22255,7 +22255,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22255
22255
  append($$anchor2, fragment_1);
22256
22256
  };
22257
22257
  var alternate = ($$anchor2) => {
22258
- var tbody = root_2$m();
22258
+ var tbody = root_2$l();
22259
22259
  attribute_effect(tbody, () => ({ ...get$2(mergedProps) }));
22260
22260
  var node_2 = child(tbody);
22261
22261
  snippet(node_2, () => children() ?? noop$1);
@@ -22271,7 +22271,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22271
22271
  return pop($$exports);
22272
22272
  }
22273
22273
  create_custom_element(Calendar_grid_body, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22274
- var root_2$l = /* @__PURE__ */ from_html(`<td><!></td>`);
22274
+ var root_2$k = /* @__PURE__ */ from_html(`<td><!></td>`);
22275
22275
  function Calendar_cell($$anchor, $$props) {
22276
22276
  const uid = props_id();
22277
22277
  push($$props, true);
@@ -22351,7 +22351,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22351
22351
  append($$anchor2, fragment_1);
22352
22352
  };
22353
22353
  var alternate = ($$anchor2) => {
22354
- var td = root_2$l();
22354
+ var td = root_2$k();
22355
22355
  attribute_effect(td, () => ({ ...get$2(mergedProps) }));
22356
22356
  var node_2 = child(td);
22357
22357
  snippet(node_2, () => children() ?? noop$1, () => cellState.snippetProps);
@@ -22380,7 +22380,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22380
22380
  [],
22381
22381
  true
22382
22382
  );
22383
- var root_2$k = /* @__PURE__ */ from_html(`<thead><!></thead>`);
22383
+ var root_2$j = /* @__PURE__ */ from_html(`<thead><!></thead>`);
22384
22384
  function Calendar_grid_head($$anchor, $$props) {
22385
22385
  const uid = props_id();
22386
22386
  push($$props, true);
@@ -22439,7 +22439,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22439
22439
  append($$anchor2, fragment_1);
22440
22440
  };
22441
22441
  var alternate = ($$anchor2) => {
22442
- var thead = root_2$k();
22442
+ var thead = root_2$j();
22443
22443
  attribute_effect(thead, () => ({ ...get$2(mergedProps) }));
22444
22444
  var node_2 = child(thead);
22445
22445
  snippet(node_2, () => children() ?? noop$1);
@@ -22455,7 +22455,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22455
22455
  return pop($$exports);
22456
22456
  }
22457
22457
  create_custom_element(Calendar_grid_head, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22458
- var root_2$j = /* @__PURE__ */ from_html(`<th><!></th>`);
22458
+ var root_2$i = /* @__PURE__ */ from_html(`<th><!></th>`);
22459
22459
  function Calendar_head_cell($$anchor, $$props) {
22460
22460
  const uid = props_id();
22461
22461
  push($$props, true);
@@ -22514,7 +22514,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22514
22514
  append($$anchor2, fragment_1);
22515
22515
  };
22516
22516
  var alternate = ($$anchor2) => {
22517
- var th = root_2$j();
22517
+ var th = root_2$i();
22518
22518
  attribute_effect(th, () => ({ ...get$2(mergedProps) }));
22519
22519
  var node_2 = child(th);
22520
22520
  snippet(node_2, () => children() ?? noop$1);
@@ -22530,7 +22530,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22530
22530
  return pop($$exports);
22531
22531
  }
22532
22532
  create_custom_element(Calendar_head_cell, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22533
- var root_2$i = /* @__PURE__ */ from_html(`<tr><!></tr>`);
22533
+ var root_2$h = /* @__PURE__ */ from_html(`<tr><!></tr>`);
22534
22534
  function Calendar_grid_row($$anchor, $$props) {
22535
22535
  const uid = props_id();
22536
22536
  push($$props, true);
@@ -22589,7 +22589,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22589
22589
  append($$anchor2, fragment_1);
22590
22590
  };
22591
22591
  var alternate = ($$anchor2) => {
22592
- var tr = root_2$i();
22592
+ var tr = root_2$h();
22593
22593
  attribute_effect(tr, () => ({ ...get$2(mergedProps) }));
22594
22594
  var node_2 = child(tr);
22595
22595
  snippet(node_2, () => children() ?? noop$1);
@@ -22605,7 +22605,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22605
22605
  return pop($$exports);
22606
22606
  }
22607
22607
  create_custom_element(Calendar_grid_row, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22608
- var root_2$h = /* @__PURE__ */ from_html(`<header><!></header>`);
22608
+ var root_2$g = /* @__PURE__ */ from_html(`<header><!></header>`);
22609
22609
  function Calendar_header($$anchor, $$props) {
22610
22610
  const uid = props_id();
22611
22611
  push($$props, true);
@@ -22664,7 +22664,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22664
22664
  append($$anchor2, fragment_1);
22665
22665
  };
22666
22666
  var alternate = ($$anchor2) => {
22667
- var header = root_2$h();
22667
+ var header = root_2$g();
22668
22668
  attribute_effect(header, () => ({ ...get$2(mergedProps) }));
22669
22669
  var node_2 = child(header);
22670
22670
  snippet(node_2, () => children() ?? noop$1);
@@ -22680,7 +22680,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22680
22680
  return pop($$exports);
22681
22681
  }
22682
22682
  create_custom_element(Calendar_header, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22683
- var root_2$g = /* @__PURE__ */ from_html(`<div><!></div>`);
22683
+ var root_2$f = /* @__PURE__ */ from_html(`<div><!></div>`);
22684
22684
  function Calendar_heading($$anchor, $$props) {
22685
22685
  const uid = props_id();
22686
22686
  push($$props, true);
@@ -22742,7 +22742,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22742
22742
  append($$anchor2, fragment_1);
22743
22743
  };
22744
22744
  var alternate_1 = ($$anchor2) => {
22745
- var div = root_2$g();
22745
+ var div = root_2$f();
22746
22746
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
22747
22747
  var node_2 = child(div);
22748
22748
  {
@@ -22774,7 +22774,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22774
22774
  return pop($$exports);
22775
22775
  }
22776
22776
  create_custom_element(Calendar_heading, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22777
- var root_2$f = /* @__PURE__ */ from_html(`<button><!></button>`);
22777
+ var root_2$e = /* @__PURE__ */ from_html(`<button><!></button>`);
22778
22778
  function Calendar_next_button($$anchor, $$props) {
22779
22779
  const uid = props_id();
22780
22780
  push($$props, true);
@@ -22841,7 +22841,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22841
22841
  append($$anchor2, fragment_1);
22842
22842
  };
22843
22843
  var alternate = ($$anchor2) => {
22844
- var button = root_2$f();
22844
+ var button = root_2$e();
22845
22845
  attribute_effect(button, () => ({ ...get$2(mergedProps) }));
22846
22846
  var node_2 = child(button);
22847
22847
  snippet(node_2, () => children() ?? noop$1);
@@ -22857,7 +22857,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22857
22857
  return pop($$exports);
22858
22858
  }
22859
22859
  create_custom_element(Calendar_next_button, { children: {}, child: {}, id: {}, ref: {}, tabindex: {} }, [], [], true);
22860
- var root_2$e = /* @__PURE__ */ from_html(`<button><!></button>`);
22860
+ var root_2$d = /* @__PURE__ */ from_html(`<button><!></button>`);
22861
22861
  function Calendar_prev_button($$anchor, $$props) {
22862
22862
  const uid = props_id();
22863
22863
  push($$props, true);
@@ -22924,7 +22924,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22924
22924
  append($$anchor2, fragment_1);
22925
22925
  };
22926
22926
  var alternate = ($$anchor2) => {
22927
- var button = root_2$e();
22927
+ var button = root_2$d();
22928
22928
  attribute_effect(button, () => ({ ...get$2(mergedProps) }));
22929
22929
  var node_2 = child(button);
22930
22930
  snippet(node_2, () => children() ?? noop$1);
@@ -22941,7 +22941,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22941
22941
  }
22942
22942
  create_custom_element(Calendar_prev_button, { children: {}, child: {}, id: {}, ref: {}, tabindex: {} }, [], [], true);
22943
22943
  var root_1$c = /* @__PURE__ */ from_html(`<input/>`);
22944
- var root_2$d = /* @__PURE__ */ from_html(`<input/>`);
22944
+ var root_2$c = /* @__PURE__ */ from_html(`<input/>`);
22945
22945
  function Hidden_input($$anchor, $$props) {
22946
22946
  push($$props, true);
22947
22947
  let value = prop($$props, "value", 15), restProps = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy", "$$host", "value"]);
@@ -22968,7 +22968,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22968
22968
  append($$anchor2, input);
22969
22969
  };
22970
22970
  var alternate = ($$anchor2) => {
22971
- var input_1 = root_2$d();
22971
+ var input_1 = root_2$c();
22972
22972
  attribute_effect(input_1, () => ({ ...get$2(mergedProps) }), void 0, void 0, void 0, void 0, true);
22973
22973
  bind_value(input_1, value);
22974
22974
  append($$anchor2, input_1);
@@ -28176,8 +28176,8 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
28176
28176
  pop();
28177
28177
  }
28178
28178
  create_custom_element(Date_field_hidden_input, {}, [], [], true);
28179
- var root_2$c = /* @__PURE__ */ from_html(`<div><!></div>`);
28180
- var root$6 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
28179
+ var root_2$b = /* @__PURE__ */ from_html(`<div><!></div>`);
28180
+ var root$4 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
28181
28181
  function Date_field_input($$anchor, $$props) {
28182
28182
  const uid = props_id();
28183
28183
  push($$props, true);
@@ -28235,7 +28235,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
28235
28235
  flushSync();
28236
28236
  }
28237
28237
  };
28238
- var fragment = root$6();
28238
+ var fragment = root$4();
28239
28239
  var node = first_child(fragment);
28240
28240
  {
28241
28241
  var consequent = ($$anchor2) => {
@@ -28248,7 +28248,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
28248
28248
  append($$anchor2, fragment_1);
28249
28249
  };
28250
28250
  var alternate = ($$anchor2) => {
28251
- var div = root_2$c();
28251
+ var div = root_2$b();
28252
28252
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
28253
28253
  var node_2 = child(div);
28254
28254
  snippet(node_2, () => children() ?? noop$1, () => ({ segments: inputState.root.segmentContents }));
@@ -28266,7 +28266,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
28266
28266
  return pop($$exports);
28267
28267
  }
28268
28268
  create_custom_element(Date_field_input, { id: {}, ref: {}, name: {}, children: {}, child: {} }, [], [], true);
28269
- var root_2$b = /* @__PURE__ */ from_html(`<div><!></div>`);
28269
+ var root_2$a = /* @__PURE__ */ from_html(`<div><!></div>`);
28270
28270
  function Date_field_label($$anchor, $$props) {
28271
28271
  const uid = props_id();
28272
28272
  push($$props, true);
@@ -28325,7 +28325,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
28325
28325
  append($$anchor2, fragment_1);
28326
28326
  };
28327
28327
  var alternate = ($$anchor2) => {
28328
- var div = root_2$b();
28328
+ var div = root_2$a();
28329
28329
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
28330
28330
  var node_2 = child(div);
28331
28331
  snippet(node_2, () => children() ?? noop$1);
@@ -28341,7 +28341,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
28341
28341
  return pop($$exports);
28342
28342
  }
28343
28343
  create_custom_element(Date_field_label, { id: {}, ref: {}, children: {}, child: {} }, [], [], true);
28344
- var root_2$a = /* @__PURE__ */ from_html(`<span><!></span>`);
28344
+ var root_2$9 = /* @__PURE__ */ from_html(`<span><!></span>`);
28345
28345
  function Date_field_segment($$anchor, $$props) {
28346
28346
  const uid = props_id();
28347
28347
  push($$props, true);
@@ -28408,7 +28408,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
28408
28408
  append($$anchor2, fragment_1);
28409
28409
  };
28410
28410
  var alternate = ($$anchor2) => {
28411
- var span = root_2$a();
28411
+ var span = root_2$9();
28412
28412
  attribute_effect(span, () => ({ ...get$2(mergedProps) }));
28413
28413
  var node_2 = child(span);
28414
28414
  snippet(node_2, () => children() ?? noop$1);
@@ -28983,7 +28983,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
28983
28983
  [],
28984
28984
  true
28985
28985
  );
28986
- var root_2$9 = /* @__PURE__ */ from_html(`<div><!></div>`);
28986
+ var root_2$8 = /* @__PURE__ */ from_html(`<div><!></div>`);
28987
28987
  function Date_picker_calendar($$anchor, $$props) {
28988
28988
  const uid = props_id();
28989
28989
  push($$props, true);
@@ -29070,7 +29070,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
29070
29070
  append($$anchor2, fragment_1);
29071
29071
  };
29072
29072
  var alternate = ($$anchor2) => {
29073
- var div = root_2$9();
29073
+ var div = root_2$8();
29074
29074
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
29075
29075
  var node_2 = child(div);
29076
29076
  snippet(node_2, () => children() ?? noop$1, () => calendarState.snippetProps);
@@ -29583,7 +29583,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
29583
29583
  return pop($$exports);
29584
29584
  }
29585
29585
  create_custom_element(Date_picker_trigger, { ref: {}, onkeydown: {} }, [], [], true);
29586
- var root_2$8 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
29586
+ var root_2$7 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
29587
29587
  var root_7$3 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
29588
29588
  var root_9$2 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
29589
29589
  var root_6$1 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
@@ -29642,7 +29642,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
29642
29642
  {
29643
29643
  const children = ($$anchor4, $$arg0) => {
29644
29644
  let segments = () => $$arg0?.().segments;
29645
- var fragment_2 = root_2$8();
29645
+ var fragment_2 = root_2$7();
29646
29646
  var node_3 = first_child(fragment_2);
29647
29647
  each(node_3, 17, segments, index$1, ($$anchor5, $$item) => {
29648
29648
  let part = () => get$2($$item).part;
@@ -29836,7 +29836,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
29836
29836
  return pop($$exports);
29837
29837
  }
29838
29838
  create_custom_element(DatePicker_1, { dateString: {}, labelClass: {}, inputClass: {} }, [], [], true);
29839
- var root_2$7 = /* @__PURE__ */ from_html(`<span class="go-field-star" aria-hidden="true">*</span>`);
29839
+ var root_2$6 = /* @__PURE__ */ from_html(`<span class="go-field-star" aria-hidden="true">*</span>`);
29840
29840
  var root_1$9 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
29841
29841
  var root_3$5 = /* @__PURE__ */ from_html(`<label><!></label> <input/>`, 1);
29842
29842
  var root_4$3 = /* @__PURE__ */ from_html(`<label><input/> <span class="go-checkbox-label"><!></span></label>`);
@@ -29853,7 +29853,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
29853
29853
  var node_1 = sibling(node, 2);
29854
29854
  {
29855
29855
  var consequent = ($$anchor3) => {
29856
- var span = root_2$7();
29856
+ var span = root_2$6();
29857
29857
  append($$anchor3, span);
29858
29858
  };
29859
29859
  if_block(node_1, ($$render) => {
@@ -30142,8 +30142,8 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30142
30142
  );
30143
30143
  var root_1$8 = /* @__PURE__ */ from_html(`<span> </span>`);
30144
30144
  var root_3$4 = /* @__PURE__ */ from_html(`<li> </li>`);
30145
- var root_2$6 = /* @__PURE__ */ from_html(`<ul class="go-field-errors" role="alert"></ul>`);
30146
- var root$5 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
30145
+ var root_2$5 = /* @__PURE__ */ from_html(`<ul class="go-field-errors" role="alert"></ul>`);
30146
+ var root$3 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
30147
30147
  function Field($$anchor, $$props) {
30148
30148
  push($$props, true);
30149
30149
  let key = prop($$props, "key", 7), required = prop($$props, "required", 7, false), labelClass = prop($$props, "labelClass", 7), inputClass = prop($$props, "inputClass", 7);
@@ -30207,7 +30207,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30207
30207
  flushSync();
30208
30208
  }
30209
30209
  };
30210
- var fragment = root$5();
30210
+ var fragment = root$3();
30211
30211
  var node = first_child(fragment);
30212
30212
  InputAndLabel(node, {
30213
30213
  get describedById() {
@@ -30246,7 +30246,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30246
30246
  var node_2 = sibling(node_1, 2);
30247
30247
  {
30248
30248
  var consequent_1 = ($$anchor2) => {
30249
- var ul = root_2$6();
30249
+ var ul = root_2$5();
30250
30250
  each(ul, 21, () => get$2(allErrors), index$1, ($$anchor3, error) => {
30251
30251
  var li = root_3$4();
30252
30252
  var text_1 = child(li, true);
@@ -30295,7 +30295,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30295
30295
  pop();
30296
30296
  }
30297
30297
  customElements.define("go-all-fields", create_custom_element(AllFields, {}, [], [], false));
30298
- var root_2$5 = /* @__PURE__ */ from_html(`<p aria-live="assertive" class="sr-only"> </p>`);
30298
+ var root_2$4 = /* @__PURE__ */ from_html(`<p aria-live="assertive" class="sr-only"> </p>`);
30299
30299
  var root_4$2 = /* @__PURE__ */ from_html(`<li> </li>`);
30300
30300
  var root_3$3 = /* @__PURE__ */ from_html(`<ul class="go-error-feedback-api-errors"></ul>`);
30301
30301
  var root_5 = /* @__PURE__ */ from_html(`<p aria-hidden="true"> </p>`);
@@ -30321,7 +30321,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30321
30321
  var node_1 = child(div);
30322
30322
  {
30323
30323
  var consequent = ($$anchor3) => {
30324
- var p2 = root_2$5();
30324
+ var p2 = root_2$4();
30325
30325
  var text2 = child(p2);
30326
30326
  reset(p2);
30327
30327
  template_effect(() => set_text(text2, `Failed to save because ${get$2(errorsOnSubmit) ?? ""} fields are invalid.`));
@@ -30376,9 +30376,9 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30376
30376
  pop();
30377
30377
  }
30378
30378
  customElements.define("go-errors-feedback", create_custom_element(ErrorsFeedback, {}, [], [], false));
30379
- var root$4 = /* @__PURE__ */ from_html(`<div class="go-form-feedback"><!></div>`);
30379
+ var root$2 = /* @__PURE__ */ from_html(`<div class="go-form-feedback"><!></div>`);
30380
30380
  function FormFeedback($$anchor, $$props) {
30381
- var div = root$4();
30381
+ var div = root$2();
30382
30382
  var node = child(div);
30383
30383
  slot(node, $$props, "default", {});
30384
30384
  reset(div);
@@ -30803,7 +30803,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30803
30803
  }
30804
30804
  customElements.define("go-order", create_custom_element(Order, { token: { attribute: "token", reflect: true, type: "String" } }, [], ["orderDetails"], false));
30805
30805
  var root_1$4 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities"> </span>`, 1);
30806
- var root$3 = /* @__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>`);
30806
+ 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>`);
30807
30807
  function Event$1($$anchor, $$props) {
30808
30808
  push($$props, true);
30809
30809
  let item = prop($$props, "item", 7), orderDetails = prop($$props, "orderDetails", 7);
@@ -30823,7 +30823,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30823
30823
  flushSync();
30824
30824
  }
30825
30825
  };
30826
- var li = root$3();
30826
+ var li = root$1();
30827
30827
  var article = child(li);
30828
30828
  var ul = child(article);
30829
30829
  var li_1 = sibling(child(ul), 2);
@@ -30869,7 +30869,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30869
30869
  var root_3$2 = /* @__PURE__ */ from_html(`<!> <br/> <!>`, 1);
30870
30870
  var root_8 = /* @__PURE__ */ from_html(`<br/> <a class="go-ticket-personalization">Personalize</a>`, 1);
30871
30871
  var root_9 = /* @__PURE__ */ from_html(`<a aria-label="passbook link"><img alt="apple wallet icon"/></a>`);
30872
- var root_2$4 = /* @__PURE__ */ from_html(`<li><article><ul><li class="go-order-breakdown-count"></li> <li class="go-order-breakdown-product"><span class="go-order-item-title"> </span> <!></li> <li class="go-order-breakdown-item-price"> </li> <li class="go-order-breakdown-passbook"><!></li></ul></article></li>`);
30872
+ var root_2$3 = /* @__PURE__ */ from_html(`<li><article><ul><li class="go-order-breakdown-count"></li> <li class="go-order-breakdown-product"><span class="go-order-item-title"> </span> <!></li> <li class="go-order-breakdown-item-price"> </li> <li class="go-order-breakdown-passbook"><!></li></ul></article></li>`);
30873
30873
  var root_11$1 = /* @__PURE__ */ from_html(`<a class="go-ticket-download" target="_blank">Download</a>`);
30874
30874
  var root_12 = /* @__PURE__ */ from_html(`<a class="go-ticket-personalization">Personalize</a>`);
30875
30875
  var root_10 = /* @__PURE__ */ from_html(`<li><article><ul><li class="go-order-breakdown-count"> </li> <li class="go-order-breakdown-product"><span class="go-order-item-title"> </span> <!></li> <li class="go-order-breakdown-item-price"> </li> <li class="go-order-breakdown-passbook"></li></ul></article></li>`);
@@ -30900,7 +30900,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30900
30900
  var fragment_1 = comment();
30901
30901
  var node_1 = first_child(fragment_1);
30902
30902
  each(node_1, 17, () => ({ length: item().attributes.quantity }), index$1, ($$anchor3, $$item, index2) => {
30903
- var li = root_2$4();
30903
+ var li = root_2$3();
30904
30904
  var article = child(li);
30905
30905
  var ul = child(article);
30906
30906
  var li_1 = child(ul);
@@ -31186,70 +31186,6 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31186
31186
  });
31187
31187
  return parsed.length > 0 ? parsed : void 0;
31188
31188
  }
31189
- var root_2$3 = /* @__PURE__ */ from_html(`<div><!></div>`);
31190
- var root$2 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
31191
- function Wrapper($$anchor, $$props) {
31192
- push($$props, true);
31193
- let host = prop($$props, "host", 7), children = prop($$props, "children", 7), restProps = /* @__PURE__ */ rest_props($$props, [
31194
- "$$slots",
31195
- "$$events",
31196
- "$$legacy",
31197
- "$$host",
31198
- "host",
31199
- "children"
31200
- ]);
31201
- if (host()) {
31202
- for (const prop2 in restProps) {
31203
- host().setAttribute(prop2, restProps[prop2]);
31204
- }
31205
- }
31206
- var $$exports = {
31207
- get host() {
31208
- return host();
31209
- },
31210
- set host($$value) {
31211
- host($$value);
31212
- flushSync();
31213
- },
31214
- get children() {
31215
- return children();
31216
- },
31217
- set children($$value) {
31218
- children($$value);
31219
- flushSync();
31220
- }
31221
- };
31222
- var fragment = root$2();
31223
- var node = first_child(fragment);
31224
- {
31225
- var consequent = ($$anchor2) => {
31226
- var fragment_1 = comment();
31227
- var node_1 = first_child(fragment_1);
31228
- snippet(node_1, children);
31229
- append($$anchor2, fragment_1);
31230
- };
31231
- if_block(node, ($$render) => {
31232
- if (host()) $$render(consequent);
31233
- });
31234
- }
31235
- var node_2 = sibling(node, 2);
31236
- {
31237
- var consequent_1 = ($$anchor2) => {
31238
- var div = root_2$3();
31239
- attribute_effect(div, () => ({ ...restProps }));
31240
- var node_3 = child(div);
31241
- snippet(node_3, children);
31242
- reset(div);
31243
- append($$anchor2, div);
31244
- };
31245
- if_block(node_2, ($$render) => {
31246
- if (!host()) $$render(consequent_1);
31247
- });
31248
- }
31249
- append($$anchor, fragment);
31250
- return pop($$exports);
31251
- }
31252
- create_custom_element(Wrapper, { host: {}, children: {} }, [], [], true);
31253
31189
  function TicketSelection($$anchor, $$props) {
31254
31190
  push($$props, true);
31255
31191
  let mode = prop($$props, "mode", 7), filters = prop($$props, "filters", 7), eventIds = prop($$props, "eventIds", 7), museumIds = prop($$props, "museumIds", 7), exhibitionIds = prop($$props, "exhibitionIds", 7), selectedDate = prop($$props, "selectedDate", 7), ticketIds = prop($$props, "ticketIds", 7), ticketGroupIds = prop($$props, "ticketGroupIds", 7);
@@ -31266,6 +31202,12 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31266
31202
  details.selectedDate = $fae977aafc393c5c$export$6b862160d295c8e(selectedDate());
31267
31203
  }
31268
31204
  });
31205
+ user_effect(() => {
31206
+ if (details.selectedDate) untrack(() => {
31207
+ selectedDate(details.selectedDate.toString());
31208
+ console.log(details.selectedDate);
31209
+ });
31210
+ });
31269
31211
  setTicketSelectionDetails($$props.$$host, details);
31270
31212
  var $$exports = {
31271
31213
  details,
@@ -31332,13 +31274,13 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31332
31274
  TicketSelection,
31333
31275
  {
31334
31276
  mode: { attribute: "mode", reflect: true, type: "String" },
31277
+ filters: { attribute: "filters", reflect: true, type: "String" },
31335
31278
  eventIds: { attribute: "event-ids", reflect: true, type: "String" },
31336
31279
  ticketIds: { attribute: "ticket-ids", reflect: true, type: "String" },
31337
31280
  ticketGroupIds: { attribute: "ticket-group-ids", reflect: true, type: "String" },
31338
31281
  museumIds: { attribute: "museum-ids", reflect: true, type: "String" },
31339
31282
  exhibitionIds: { attribute: "exhibition-ids", reflect: true, type: "String" },
31340
- selectedDate: { attribute: "selected-date", reflect: true, type: "String" },
31341
- filters: {}
31283
+ selectedDate: { attribute: "selected-date", reflect: true, type: "String" }
31342
31284
  },
31343
31285
  [],
31344
31286
  ["details"],
@@ -32060,7 +32002,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32060
32002
  return false;
32061
32003
  }
32062
32004
  // @ts-ignore
32063
- apiFilters() {
32005
+ get apiFilters() {
32064
32006
  return this.details?.filters?.map((f) => ({
32065
32007
  day: "normal",
32066
32008
  timeslot: "time_slot",
@@ -32069,7 +32011,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32069
32011
  "event:ticket": "not implemented"
32070
32012
  })[f]);
32071
32013
  }
32072
- params() {
32014
+ params(startAt) {
32073
32015
  if (!this.details) return {};
32074
32016
  const params = {
32075
32017
  by_bookable: true,
@@ -32082,24 +32024,38 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32082
32024
  "by_museum_ids[]": this.details.museumIds,
32083
32025
  "by_exhibition_ids[]": this.details.exhibitionIds,
32084
32026
  "by_event_ids[]": this.details.eventIds,
32027
+ // https://gitlab.giantmonkey.de/gomus/gomus/-/merge_requests/11544
32028
+ // this helps us to differentiate sold-out days from not available days
32029
+ // the api gives an error right now
32030
+ // depth: 'availability_status',
32085
32031
  // these logic are there to minimize fetches
32086
- start_at: this.startAt.set({ day: 1 }).toString(),
32087
- end_at: this.startAt.add({ months: 1 }).set({ day: 14 }).toString()
32032
+ start_at: startAt.toString(),
32033
+ end_at: startAt.add({ months: 1 }).toString()
32088
32034
  };
32089
32035
  return params;
32090
32036
  }
32037
+ fetchPeriod() {
32038
+ const thisMonth = this.startAt.set({ day: 1 });
32039
+ return [
32040
+ thisMonth.subtract({ months: 1 }),
32041
+ thisMonth,
32042
+ thisMonth.add({ months: 1 }),
32043
+ thisMonth.add({ months: 2 })
32044
+ ];
32045
+ }
32091
32046
  eventsDates() {
32092
- const ret = shop.calendar(this.params());
32047
+ const method = shop.calendar.bind(shop);
32048
+ const ret = this.fetchPeriod().reduce((prev, startAt) => assign(prev, method(this.params(startAt))), {});
32093
32049
  return ret;
32094
32050
  }
32095
32051
  ticketsDates() {
32096
- const ret = shop.ticketsCalendar(this.params());
32052
+ const method = shop.ticketsCalendar.bind(shop);
32053
+ const ret = this.fetchPeriod().reduce((prev, startAt) => assign(prev, method(this.params(startAt))), {});
32097
32054
  return ret;
32098
32055
  }
32099
32056
  }
32100
32057
  var root_3 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
32101
32058
  var root_11 = /* @__PURE__ */ from_html(`<div> </div>`);
32102
- var root_17 = /* @__PURE__ */ from_html(`<div></div> `, 1);
32103
32059
  var root_7 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
32104
32060
  var root_2 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
32105
32061
  var root_1 = /* @__PURE__ */ from_html(`<div data-calendar-wrapper=""><!></div>`);
@@ -32139,6 +32095,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32139
32095
  var node_2 = first_child(fragment_1);
32140
32096
  component(node_2, () => Calendar_prev_button, ($$anchor5, Calendar_PrevButton) => {
32141
32097
  Calendar_PrevButton($$anchor5, {
32098
+ class: "go-calendar-prev-button",
32142
32099
  children: ($$anchor6, $$slotProps2) => {
32143
32100
  next();
32144
32101
  var text2 = text$1("Prev");
@@ -32149,11 +32106,12 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32149
32106
  });
32150
32107
  var node_3 = sibling(node_2, 2);
32151
32108
  component(node_3, () => Calendar_heading, ($$anchor5, Calendar_Heading) => {
32152
- Calendar_Heading($$anchor5, {});
32109
+ Calendar_Heading($$anchor5, { class: "go-calendar-heading" });
32153
32110
  });
32154
32111
  var node_4 = sibling(node_3, 2);
32155
32112
  component(node_4, () => Calendar_next_button, ($$anchor5, Calendar_NextButton) => {
32156
32113
  Calendar_NextButton($$anchor5, {
32114
+ class: "go-calendar-next-button",
32157
32115
  children: ($$anchor6, $$slotProps2) => {
32158
32116
  next();
32159
32117
  var text_1 = text$1("Next");
@@ -32173,16 +32131,19 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32173
32131
  var node_6 = first_child(fragment_2);
32174
32132
  component(node_6, () => Calendar_grid, ($$anchor4, Calendar_Grid) => {
32175
32133
  Calendar_Grid($$anchor4, {
32134
+ class: "go-calendar-grid",
32176
32135
  children: ($$anchor5, $$slotProps) => {
32177
32136
  var fragment_3 = root_7();
32178
32137
  var node_7 = first_child(fragment_3);
32179
32138
  component(node_7, () => Calendar_grid_head, ($$anchor6, Calendar_GridHead) => {
32180
32139
  Calendar_GridHead($$anchor6, {
32140
+ class: "go-calendar-grid-head",
32181
32141
  children: ($$anchor7, $$slotProps2) => {
32182
32142
  var fragment_4 = comment();
32183
32143
  var node_8 = first_child(fragment_4);
32184
32144
  component(node_8, () => Calendar_grid_row, ($$anchor8, Calendar_GridRow) => {
32185
32145
  Calendar_GridRow($$anchor8, {
32146
+ class: "go-calendar-grid-row",
32186
32147
  children: ($$anchor9, $$slotProps3) => {
32187
32148
  var fragment_5 = comment();
32188
32149
  var node_9 = first_child(fragment_5);
@@ -32216,6 +32177,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32216
32177
  var node_11 = sibling(node_7, 2);
32217
32178
  component(node_11, () => Calendar_grid_body, ($$anchor6, Calendar_GridBody) => {
32218
32179
  Calendar_GridBody($$anchor6, {
32180
+ class: "go-calendar-grid-body",
32219
32181
  children: ($$anchor7, $$slotProps2) => {
32220
32182
  var fragment_7 = comment();
32221
32183
  var node_12 = first_child(fragment_7);
@@ -32224,6 +32186,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32224
32186
  var node_13 = first_child(fragment_8);
32225
32187
  component(node_13, () => Calendar_grid_row, ($$anchor9, Calendar_GridRow_1) => {
32226
32188
  Calendar_GridRow_1($$anchor9, {
32189
+ class: "go-calendar-grid-row",
32227
32190
  children: ($$anchor10, $$slotProps3) => {
32228
32191
  var fragment_9 = comment();
32229
32192
  var node_14 = first_child(fragment_9);
@@ -32238,16 +32201,18 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32238
32201
  get month() {
32239
32202
  return get$2(month).value;
32240
32203
  },
32204
+ class: "go-calendar-cell",
32241
32205
  children: ($$anchor13, $$slotProps4) => {
32242
32206
  var fragment_11 = comment();
32243
32207
  var node_16 = first_child(fragment_11);
32244
32208
  component(node_16, () => Calendar_day, ($$anchor14, Calendar_Day) => {
32245
32209
  Calendar_Day($$anchor14, {
32210
+ class: "go-calendar-day",
32246
32211
  children: ($$anchor15, $$slotProps5) => {
32247
- var fragment_12 = root_17();
32248
- var text_3 = sibling(first_child(fragment_12));
32249
- template_effect(() => set_text(text_3, ` ${get$2(date2).day ?? ""}`));
32250
- append($$anchor15, fragment_12);
32212
+ next();
32213
+ var text_3 = text$1();
32214
+ template_effect(() => set_text(text_3, get$2(date2).day));
32215
+ append($$anchor15, text_3);
32251
32216
  },
32252
32217
  $$slots: { default: true }
32253
32218
  });
@@ -32292,6 +32257,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32292
32257
  isDateDisabled: (date2) => calendarClass().isDateDisabled(date2),
32293
32258
  isDateUnavailable: (date2) => calendarClass().isDateUnavailable(date2),
32294
32259
  disableDaysOutsideMonth: false,
32260
+ class: "go-calendar-root",
32295
32261
  get value() {
32296
32262
  return calendarClass().selected;
32297
32263
  },
@@ -32315,7 +32281,6 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32315
32281
  return pop($$exports);
32316
32282
  }
32317
32283
  create_custom_element(CalendarUI, { calendarClass: {} }, [], ["details"], true);
32318
- var root$1 = /* @__PURE__ */ from_html(`<div data-calendar-wrapper=""><!></div>`);
32319
32284
  function Calendar_1($$anchor, $$props) {
32320
32285
  push($$props, true);
32321
32286
  const ticketsCalendar = new Calendar();
@@ -32329,15 +32294,12 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32329
32294
  get$2(ticketSelectionDetails).selectedDate = void 0;
32330
32295
  }
32331
32296
  });
32332
- let wrapper = /* @__PURE__ */ state(void 0);
32333
- onMount(() => {
32334
- get$2(wrapper)?.addEventListener("go-date-select", (e) => {
32335
- if (get$2(ticketSelectionDetails)) get$2(ticketSelectionDetails).selectedDate = e.detail.selected;
32336
- });
32297
+ $$props.$$host.addEventListener("go-date-select", (e) => {
32298
+ if (get$2(ticketSelectionDetails)) get$2(ticketSelectionDetails).selectedDate = e.detail.selected;
32337
32299
  });
32338
32300
  var $$exports = { details };
32339
- var div = root$1();
32340
- var node = child(div);
32301
+ var fragment = comment();
32302
+ var node = first_child(fragment);
32341
32303
  {
32342
32304
  var consequent = ($$anchor2) => {
32343
32305
  CalendarUI($$anchor2, {
@@ -32350,9 +32312,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32350
32312
  if (get$2(ticketSelectionDetails)?.isCalendarVisible) $$render(consequent);
32351
32313
  });
32352
32314
  }
32353
- reset(div);
32354
- bind_this(div, ($$value) => set(wrapper, $$value), () => get$2(wrapper));
32355
- append($$anchor, div);
32315
+ append($$anchor, fragment);
32356
32316
  return pop($$exports);
32357
32317
  }
32358
32318
  customElements.define("go-calendar", create_custom_element(Calendar_1, {}, [], ["details"], false));
@@ -32431,6 +32391,10 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32431
32391
  });
32432
32392
  a2.addEventListener("click", (e) => {
32433
32393
  e.preventDefault();
32394
+ if (!go.config.urls[to()]) {
32395
+ console.warn(`[go-link] No URL found for route "${to()}". You can define it with go.config.urls.${to()} = () => 'https://example.com/my-route'`);
32396
+ return;
32397
+ }
32434
32398
  go.config.navigateTo(go.config.urls[to()]());
32435
32399
  });
32436
32400
  var $$exports = {