@gomusdev/web-components 1.23.0 → 1.24.1

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 @@ class PersonalizationDetails {
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 @@ function AnnualTicketPersonalization($$anchor, $$props) {
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);
@@ -15142,7 +15142,6 @@ function Form($$anchor, $$props) {
15142
15142
  details.validateForm();
15143
15143
  details?.form?.dispatchEvent(new Event("go-after-validation", event));
15144
15144
  if (details.isValid) {
15145
- console.log("hoo");
15146
15145
  details.apiErrors = {};
15147
15146
  details?.form?.dispatchEvent(new Event("go-submit", event));
15148
15147
  }
@@ -15196,7 +15195,7 @@ customElements.define("go-form", create_custom_element(
15196
15195
  ["details"],
15197
15196
  false
15198
15197
  ));
15199
- var root$9 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15198
+ var root$7 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15200
15199
  function PasswordReset($$anchor, $$props) {
15201
15200
  push($$props, true);
15202
15201
  let form;
@@ -15230,7 +15229,7 @@ function PasswordReset($$anchor, $$props) {
15230
15229
  flushSync();
15231
15230
  }
15232
15231
  };
15233
- var go_form = root$9();
15232
+ var go_form = root$7();
15234
15233
  set_custom_element_data(go_form, "formId", "passwordReset");
15235
15234
  template_effect(() => set_custom_element_data(go_form, "custom", custom2()));
15236
15235
  bind_this(go_form, ($$value) => form = $$value, () => form);
@@ -15238,7 +15237,7 @@ function PasswordReset($$anchor, $$props) {
15238
15237
  return pop($$exports);
15239
15238
  }
15240
15239
  customElements.define("go-password-reset", create_custom_element(PasswordReset, { custom: {} }, [], [], false));
15241
- var root$8 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15240
+ var root$6 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15242
15241
  function SignIn($$anchor, $$props) {
15243
15242
  push($$props, true);
15244
15243
  let form;
@@ -15263,7 +15262,7 @@ function SignIn($$anchor, $$props) {
15263
15262
  onMount(() => {
15264
15263
  $$props.$$host.addEventListener("go-submit", signIn);
15265
15264
  });
15266
- var go_form = root$8();
15265
+ var go_form = root$6();
15267
15266
  set_custom_element_data(go_form, "formId", "signIn");
15268
15267
  bind_this(go_form, ($$value) => form = $$value, () => form);
15269
15268
  append($$anchor, go_form);
@@ -15278,7 +15277,7 @@ customElements.define("go-sign-in", create_custom_element(
15278
15277
  [],
15279
15278
  false
15280
15279
  ));
15281
- var root$7 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15280
+ var root$5 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15282
15281
  function SignUp($$anchor, $$props) {
15283
15282
  push($$props, true);
15284
15283
  Forms.defineForm({
@@ -15315,7 +15314,7 @@ function SignUp($$anchor, $$props) {
15315
15314
  onMount(() => {
15316
15315
  $$props.$$host.addEventListener("go-submit", signUp);
15317
15316
  });
15318
- var go_form = root$7();
15317
+ var go_form = root$5();
15319
15318
  set_custom_element_data(go_form, "formId", "signUp");
15320
15319
  bind_this(go_form, ($$value) => form = $$value, () => form);
15321
15320
  append($$anchor, go_form);
@@ -15453,7 +15452,13 @@ function createUITicket(apiTicket, options) {
15453
15452
  };
15454
15453
  return uiTicket;
15455
15454
  }
15456
- function initUITimeslotTickets(tickets) {
15455
+ function initUITimeslotTickets(tickets, selectedTimeSlot) {
15456
+ return sort(Object.values(tickets).filter((ticket) => ticket.capacities[selectedTimeSlot]).map((ticket) => createUITicket(ticket)), (f) => f.shop_order);
15457
+ }
15458
+ function initUIDayTickets(tickets) {
15459
+ return sort(Object.values(tickets).map((ticket) => createUITicket(ticket)), (f) => f.shop_order);
15460
+ }
15461
+ function initUIAnnualTickets(tickets) {
15457
15462
  return sort(Object.values(tickets).map((ticket) => createUITicket(ticket)), (f) => f.shop_order);
15458
15463
  }
15459
15464
  function updateLocalStorage(cart2) {
@@ -15587,7 +15592,7 @@ function formatCurrency(priceCents) {
15587
15592
  const cart = proxy(createCart([], { syncLocalStorage: true }));
15588
15593
  syncCartToLocalStorage(cart);
15589
15594
  dispatchCartEvents();
15590
- var root_2$q = /* @__PURE__ */ from_html(`<li data-go-cart-header-remove="">remove</li>`);
15595
+ var root_2$p = /* @__PURE__ */ from_html(`<li data-go-cart-header-remove="">remove</li>`);
15591
15596
  var root_5$2 = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
15592
15597
  var root_4$5 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
15593
15598
  var root_6$2 = /* @__PURE__ */ from_html(`<li data-go-cart-item-remove=""><button>⨉</button></li>`);
@@ -15623,7 +15628,7 @@ function Cart($$anchor, $$props) {
15623
15628
  var node_1 = sibling(child(ul), 6);
15624
15629
  {
15625
15630
  var consequent = ($$anchor3) => {
15626
- var li_1 = root_2$q();
15631
+ var li_1 = root_2$p();
15627
15632
  append($$anchor3, li_1);
15628
15633
  };
15629
15634
  if_block(node_1, ($$render) => {
@@ -21677,7 +21682,7 @@ class CalendarHeaderState {
21677
21682
  set(this.#props, value);
21678
21683
  }
21679
21684
  }
21680
- var root_2$p = /* @__PURE__ */ from_html(`<div><!></div>`);
21685
+ var root_2$o = /* @__PURE__ */ from_html(`<div><!></div>`);
21681
21686
  function Calendar$1($$anchor, $$props) {
21682
21687
  push($$props, true);
21683
21688
  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 +21981,7 @@ function Calendar$1($$anchor, $$props) {
21976
21981
  append($$anchor2, fragment_1);
21977
21982
  };
21978
21983
  var alternate = ($$anchor2) => {
21979
- var div = root_2$p();
21984
+ var div = root_2$o();
21980
21985
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
21981
21986
  var node_2 = child(div);
21982
21987
  snippet(node_2, () => children() ?? noop$1, () => rootState.snippetProps);
@@ -22027,7 +22032,7 @@ create_custom_element(
22027
22032
  [],
22028
22033
  true
22029
22034
  );
22030
- var root_2$o = /* @__PURE__ */ from_html(`<div><!></div>`);
22035
+ var root_2$n = /* @__PURE__ */ from_html(`<div><!></div>`);
22031
22036
  function Calendar_day($$anchor, $$props) {
22032
22037
  const uid = props_id();
22033
22038
  push($$props, true);
@@ -22089,7 +22094,7 @@ function Calendar_day($$anchor, $$props) {
22089
22094
  append($$anchor2, fragment_1);
22090
22095
  };
22091
22096
  var alternate_1 = ($$anchor2) => {
22092
- var div = root_2$o();
22097
+ var div = root_2$n();
22093
22098
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
22094
22099
  var node_2 = child(div);
22095
22100
  {
@@ -22121,7 +22126,7 @@ function Calendar_day($$anchor, $$props) {
22121
22126
  return pop($$exports);
22122
22127
  }
22123
22128
  create_custom_element(Calendar_day, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22124
- var root_2$n = /* @__PURE__ */ from_html(`<table><!></table>`);
22129
+ var root_2$m = /* @__PURE__ */ from_html(`<table><!></table>`);
22125
22130
  function Calendar_grid($$anchor, $$props) {
22126
22131
  const uid = props_id();
22127
22132
  push($$props, true);
@@ -22180,7 +22185,7 @@ function Calendar_grid($$anchor, $$props) {
22180
22185
  append($$anchor2, fragment_1);
22181
22186
  };
22182
22187
  var alternate = ($$anchor2) => {
22183
- var table = root_2$n();
22188
+ var table = root_2$m();
22184
22189
  attribute_effect(table, () => ({ ...get$2(mergedProps) }));
22185
22190
  var node_2 = child(table);
22186
22191
  snippet(node_2, () => children() ?? noop$1);
@@ -22196,7 +22201,7 @@ function Calendar_grid($$anchor, $$props) {
22196
22201
  return pop($$exports);
22197
22202
  }
22198
22203
  create_custom_element(Calendar_grid, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22199
- var root_2$m = /* @__PURE__ */ from_html(`<tbody><!></tbody>`);
22204
+ var root_2$l = /* @__PURE__ */ from_html(`<tbody><!></tbody>`);
22200
22205
  function Calendar_grid_body($$anchor, $$props) {
22201
22206
  const uid = props_id();
22202
22207
  push($$props, true);
@@ -22255,7 +22260,7 @@ function Calendar_grid_body($$anchor, $$props) {
22255
22260
  append($$anchor2, fragment_1);
22256
22261
  };
22257
22262
  var alternate = ($$anchor2) => {
22258
- var tbody = root_2$m();
22263
+ var tbody = root_2$l();
22259
22264
  attribute_effect(tbody, () => ({ ...get$2(mergedProps) }));
22260
22265
  var node_2 = child(tbody);
22261
22266
  snippet(node_2, () => children() ?? noop$1);
@@ -22271,7 +22276,7 @@ function Calendar_grid_body($$anchor, $$props) {
22271
22276
  return pop($$exports);
22272
22277
  }
22273
22278
  create_custom_element(Calendar_grid_body, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22274
- var root_2$l = /* @__PURE__ */ from_html(`<td><!></td>`);
22279
+ var root_2$k = /* @__PURE__ */ from_html(`<td><!></td>`);
22275
22280
  function Calendar_cell($$anchor, $$props) {
22276
22281
  const uid = props_id();
22277
22282
  push($$props, true);
@@ -22351,7 +22356,7 @@ function Calendar_cell($$anchor, $$props) {
22351
22356
  append($$anchor2, fragment_1);
22352
22357
  };
22353
22358
  var alternate = ($$anchor2) => {
22354
- var td = root_2$l();
22359
+ var td = root_2$k();
22355
22360
  attribute_effect(td, () => ({ ...get$2(mergedProps) }));
22356
22361
  var node_2 = child(td);
22357
22362
  snippet(node_2, () => children() ?? noop$1, () => cellState.snippetProps);
@@ -22380,7 +22385,7 @@ create_custom_element(
22380
22385
  [],
22381
22386
  true
22382
22387
  );
22383
- var root_2$k = /* @__PURE__ */ from_html(`<thead><!></thead>`);
22388
+ var root_2$j = /* @__PURE__ */ from_html(`<thead><!></thead>`);
22384
22389
  function Calendar_grid_head($$anchor, $$props) {
22385
22390
  const uid = props_id();
22386
22391
  push($$props, true);
@@ -22439,7 +22444,7 @@ function Calendar_grid_head($$anchor, $$props) {
22439
22444
  append($$anchor2, fragment_1);
22440
22445
  };
22441
22446
  var alternate = ($$anchor2) => {
22442
- var thead = root_2$k();
22447
+ var thead = root_2$j();
22443
22448
  attribute_effect(thead, () => ({ ...get$2(mergedProps) }));
22444
22449
  var node_2 = child(thead);
22445
22450
  snippet(node_2, () => children() ?? noop$1);
@@ -22455,7 +22460,7 @@ function Calendar_grid_head($$anchor, $$props) {
22455
22460
  return pop($$exports);
22456
22461
  }
22457
22462
  create_custom_element(Calendar_grid_head, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22458
- var root_2$j = /* @__PURE__ */ from_html(`<th><!></th>`);
22463
+ var root_2$i = /* @__PURE__ */ from_html(`<th><!></th>`);
22459
22464
  function Calendar_head_cell($$anchor, $$props) {
22460
22465
  const uid = props_id();
22461
22466
  push($$props, true);
@@ -22514,7 +22519,7 @@ function Calendar_head_cell($$anchor, $$props) {
22514
22519
  append($$anchor2, fragment_1);
22515
22520
  };
22516
22521
  var alternate = ($$anchor2) => {
22517
- var th = root_2$j();
22522
+ var th = root_2$i();
22518
22523
  attribute_effect(th, () => ({ ...get$2(mergedProps) }));
22519
22524
  var node_2 = child(th);
22520
22525
  snippet(node_2, () => children() ?? noop$1);
@@ -22530,7 +22535,7 @@ function Calendar_head_cell($$anchor, $$props) {
22530
22535
  return pop($$exports);
22531
22536
  }
22532
22537
  create_custom_element(Calendar_head_cell, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22533
- var root_2$i = /* @__PURE__ */ from_html(`<tr><!></tr>`);
22538
+ var root_2$h = /* @__PURE__ */ from_html(`<tr><!></tr>`);
22534
22539
  function Calendar_grid_row($$anchor, $$props) {
22535
22540
  const uid = props_id();
22536
22541
  push($$props, true);
@@ -22589,7 +22594,7 @@ function Calendar_grid_row($$anchor, $$props) {
22589
22594
  append($$anchor2, fragment_1);
22590
22595
  };
22591
22596
  var alternate = ($$anchor2) => {
22592
- var tr = root_2$i();
22597
+ var tr = root_2$h();
22593
22598
  attribute_effect(tr, () => ({ ...get$2(mergedProps) }));
22594
22599
  var node_2 = child(tr);
22595
22600
  snippet(node_2, () => children() ?? noop$1);
@@ -22605,7 +22610,7 @@ function Calendar_grid_row($$anchor, $$props) {
22605
22610
  return pop($$exports);
22606
22611
  }
22607
22612
  create_custom_element(Calendar_grid_row, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22608
- var root_2$h = /* @__PURE__ */ from_html(`<header><!></header>`);
22613
+ var root_2$g = /* @__PURE__ */ from_html(`<header><!></header>`);
22609
22614
  function Calendar_header($$anchor, $$props) {
22610
22615
  const uid = props_id();
22611
22616
  push($$props, true);
@@ -22664,7 +22669,7 @@ function Calendar_header($$anchor, $$props) {
22664
22669
  append($$anchor2, fragment_1);
22665
22670
  };
22666
22671
  var alternate = ($$anchor2) => {
22667
- var header = root_2$h();
22672
+ var header = root_2$g();
22668
22673
  attribute_effect(header, () => ({ ...get$2(mergedProps) }));
22669
22674
  var node_2 = child(header);
22670
22675
  snippet(node_2, () => children() ?? noop$1);
@@ -22680,7 +22685,7 @@ function Calendar_header($$anchor, $$props) {
22680
22685
  return pop($$exports);
22681
22686
  }
22682
22687
  create_custom_element(Calendar_header, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22683
- var root_2$g = /* @__PURE__ */ from_html(`<div><!></div>`);
22688
+ var root_2$f = /* @__PURE__ */ from_html(`<div><!></div>`);
22684
22689
  function Calendar_heading($$anchor, $$props) {
22685
22690
  const uid = props_id();
22686
22691
  push($$props, true);
@@ -22742,7 +22747,7 @@ function Calendar_heading($$anchor, $$props) {
22742
22747
  append($$anchor2, fragment_1);
22743
22748
  };
22744
22749
  var alternate_1 = ($$anchor2) => {
22745
- var div = root_2$g();
22750
+ var div = root_2$f();
22746
22751
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
22747
22752
  var node_2 = child(div);
22748
22753
  {
@@ -22774,7 +22779,7 @@ function Calendar_heading($$anchor, $$props) {
22774
22779
  return pop($$exports);
22775
22780
  }
22776
22781
  create_custom_element(Calendar_heading, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
22777
- var root_2$f = /* @__PURE__ */ from_html(`<button><!></button>`);
22782
+ var root_2$e = /* @__PURE__ */ from_html(`<button><!></button>`);
22778
22783
  function Calendar_next_button($$anchor, $$props) {
22779
22784
  const uid = props_id();
22780
22785
  push($$props, true);
@@ -22841,7 +22846,7 @@ function Calendar_next_button($$anchor, $$props) {
22841
22846
  append($$anchor2, fragment_1);
22842
22847
  };
22843
22848
  var alternate = ($$anchor2) => {
22844
- var button = root_2$f();
22849
+ var button = root_2$e();
22845
22850
  attribute_effect(button, () => ({ ...get$2(mergedProps) }));
22846
22851
  var node_2 = child(button);
22847
22852
  snippet(node_2, () => children() ?? noop$1);
@@ -22857,7 +22862,7 @@ function Calendar_next_button($$anchor, $$props) {
22857
22862
  return pop($$exports);
22858
22863
  }
22859
22864
  create_custom_element(Calendar_next_button, { children: {}, child: {}, id: {}, ref: {}, tabindex: {} }, [], [], true);
22860
- var root_2$e = /* @__PURE__ */ from_html(`<button><!></button>`);
22865
+ var root_2$d = /* @__PURE__ */ from_html(`<button><!></button>`);
22861
22866
  function Calendar_prev_button($$anchor, $$props) {
22862
22867
  const uid = props_id();
22863
22868
  push($$props, true);
@@ -22924,7 +22929,7 @@ function Calendar_prev_button($$anchor, $$props) {
22924
22929
  append($$anchor2, fragment_1);
22925
22930
  };
22926
22931
  var alternate = ($$anchor2) => {
22927
- var button = root_2$e();
22932
+ var button = root_2$d();
22928
22933
  attribute_effect(button, () => ({ ...get$2(mergedProps) }));
22929
22934
  var node_2 = child(button);
22930
22935
  snippet(node_2, () => children() ?? noop$1);
@@ -22941,7 +22946,7 @@ function Calendar_prev_button($$anchor, $$props) {
22941
22946
  }
22942
22947
  create_custom_element(Calendar_prev_button, { children: {}, child: {}, id: {}, ref: {}, tabindex: {} }, [], [], true);
22943
22948
  var root_1$c = /* @__PURE__ */ from_html(`<input/>`);
22944
- var root_2$d = /* @__PURE__ */ from_html(`<input/>`);
22949
+ var root_2$c = /* @__PURE__ */ from_html(`<input/>`);
22945
22950
  function Hidden_input($$anchor, $$props) {
22946
22951
  push($$props, true);
22947
22952
  let value = prop($$props, "value", 15), restProps = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy", "$$host", "value"]);
@@ -22968,7 +22973,7 @@ function Hidden_input($$anchor, $$props) {
22968
22973
  append($$anchor2, input);
22969
22974
  };
22970
22975
  var alternate = ($$anchor2) => {
22971
- var input_1 = root_2$d();
22976
+ var input_1 = root_2$c();
22972
22977
  attribute_effect(input_1, () => ({ ...get$2(mergedProps) }), void 0, void 0, void 0, void 0, true);
22973
22978
  bind_value(input_1, value);
22974
22979
  append($$anchor2, input_1);
@@ -28176,8 +28181,8 @@ function Date_field_hidden_input($$anchor, $$props) {
28176
28181
  pop();
28177
28182
  }
28178
28183
  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);
28184
+ var root_2$b = /* @__PURE__ */ from_html(`<div><!></div>`);
28185
+ var root$4 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
28181
28186
  function Date_field_input($$anchor, $$props) {
28182
28187
  const uid = props_id();
28183
28188
  push($$props, true);
@@ -28235,7 +28240,7 @@ function Date_field_input($$anchor, $$props) {
28235
28240
  flushSync();
28236
28241
  }
28237
28242
  };
28238
- var fragment = root$6();
28243
+ var fragment = root$4();
28239
28244
  var node = first_child(fragment);
28240
28245
  {
28241
28246
  var consequent = ($$anchor2) => {
@@ -28248,7 +28253,7 @@ function Date_field_input($$anchor, $$props) {
28248
28253
  append($$anchor2, fragment_1);
28249
28254
  };
28250
28255
  var alternate = ($$anchor2) => {
28251
- var div = root_2$c();
28256
+ var div = root_2$b();
28252
28257
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
28253
28258
  var node_2 = child(div);
28254
28259
  snippet(node_2, () => children() ?? noop$1, () => ({ segments: inputState.root.segmentContents }));
@@ -28266,7 +28271,7 @@ function Date_field_input($$anchor, $$props) {
28266
28271
  return pop($$exports);
28267
28272
  }
28268
28273
  create_custom_element(Date_field_input, { id: {}, ref: {}, name: {}, children: {}, child: {} }, [], [], true);
28269
- var root_2$b = /* @__PURE__ */ from_html(`<div><!></div>`);
28274
+ var root_2$a = /* @__PURE__ */ from_html(`<div><!></div>`);
28270
28275
  function Date_field_label($$anchor, $$props) {
28271
28276
  const uid = props_id();
28272
28277
  push($$props, true);
@@ -28325,7 +28330,7 @@ function Date_field_label($$anchor, $$props) {
28325
28330
  append($$anchor2, fragment_1);
28326
28331
  };
28327
28332
  var alternate = ($$anchor2) => {
28328
- var div = root_2$b();
28333
+ var div = root_2$a();
28329
28334
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
28330
28335
  var node_2 = child(div);
28331
28336
  snippet(node_2, () => children() ?? noop$1);
@@ -28341,7 +28346,7 @@ function Date_field_label($$anchor, $$props) {
28341
28346
  return pop($$exports);
28342
28347
  }
28343
28348
  create_custom_element(Date_field_label, { id: {}, ref: {}, children: {}, child: {} }, [], [], true);
28344
- var root_2$a = /* @__PURE__ */ from_html(`<span><!></span>`);
28349
+ var root_2$9 = /* @__PURE__ */ from_html(`<span><!></span>`);
28345
28350
  function Date_field_segment($$anchor, $$props) {
28346
28351
  const uid = props_id();
28347
28352
  push($$props, true);
@@ -28408,7 +28413,7 @@ function Date_field_segment($$anchor, $$props) {
28408
28413
  append($$anchor2, fragment_1);
28409
28414
  };
28410
28415
  var alternate = ($$anchor2) => {
28411
- var span = root_2$a();
28416
+ var span = root_2$9();
28412
28417
  attribute_effect(span, () => ({ ...get$2(mergedProps) }));
28413
28418
  var node_2 = child(span);
28414
28419
  snippet(node_2, () => children() ?? noop$1);
@@ -28983,7 +28988,7 @@ create_custom_element(
28983
28988
  [],
28984
28989
  true
28985
28990
  );
28986
- var root_2$9 = /* @__PURE__ */ from_html(`<div><!></div>`);
28991
+ var root_2$8 = /* @__PURE__ */ from_html(`<div><!></div>`);
28987
28992
  function Date_picker_calendar($$anchor, $$props) {
28988
28993
  const uid = props_id();
28989
28994
  push($$props, true);
@@ -29070,7 +29075,7 @@ function Date_picker_calendar($$anchor, $$props) {
29070
29075
  append($$anchor2, fragment_1);
29071
29076
  };
29072
29077
  var alternate = ($$anchor2) => {
29073
- var div = root_2$9();
29078
+ var div = root_2$8();
29074
29079
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
29075
29080
  var node_2 = child(div);
29076
29081
  snippet(node_2, () => children() ?? noop$1, () => calendarState.snippetProps);
@@ -29583,7 +29588,7 @@ function Date_picker_trigger($$anchor, $$props) {
29583
29588
  return pop($$exports);
29584
29589
  }
29585
29590
  create_custom_element(Date_picker_trigger, { ref: {}, onkeydown: {} }, [], [], true);
29586
- var root_2$8 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
29591
+ var root_2$7 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
29587
29592
  var root_7$3 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
29588
29593
  var root_9$2 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
29589
29594
  var root_6$1 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
@@ -29642,7 +29647,7 @@ function DatePicker_1($$anchor, $$props) {
29642
29647
  {
29643
29648
  const children = ($$anchor4, $$arg0) => {
29644
29649
  let segments = () => $$arg0?.().segments;
29645
- var fragment_2 = root_2$8();
29650
+ var fragment_2 = root_2$7();
29646
29651
  var node_3 = first_child(fragment_2);
29647
29652
  each(node_3, 17, segments, index$1, ($$anchor5, $$item) => {
29648
29653
  let part = () => get$2($$item).part;
@@ -29836,7 +29841,7 @@ function DatePicker_1($$anchor, $$props) {
29836
29841
  return pop($$exports);
29837
29842
  }
29838
29843
  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>`);
29844
+ var root_2$6 = /* @__PURE__ */ from_html(`<span class="go-field-star" aria-hidden="true">*</span>`);
29840
29845
  var root_1$9 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
29841
29846
  var root_3$5 = /* @__PURE__ */ from_html(`<label><!></label> <input/>`, 1);
29842
29847
  var root_4$3 = /* @__PURE__ */ from_html(`<label><input/> <span class="go-checkbox-label"><!></span></label>`);
@@ -29853,7 +29858,7 @@ function InputAndLabel($$anchor, $$props) {
29853
29858
  var node_1 = sibling(node, 2);
29854
29859
  {
29855
29860
  var consequent = ($$anchor3) => {
29856
- var span = root_2$7();
29861
+ var span = root_2$6();
29857
29862
  append($$anchor3, span);
29858
29863
  };
29859
29864
  if_block(node_1, ($$render) => {
@@ -30142,8 +30147,8 @@ create_custom_element(
30142
30147
  );
30143
30148
  var root_1$8 = /* @__PURE__ */ from_html(`<span> </span>`);
30144
30149
  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);
30150
+ var root_2$5 = /* @__PURE__ */ from_html(`<ul class="go-field-errors" role="alert"></ul>`);
30151
+ var root$3 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
30147
30152
  function Field($$anchor, $$props) {
30148
30153
  push($$props, true);
30149
30154
  let key = prop($$props, "key", 7), required = prop($$props, "required", 7, false), labelClass = prop($$props, "labelClass", 7), inputClass = prop($$props, "inputClass", 7);
@@ -30207,7 +30212,7 @@ function Field($$anchor, $$props) {
30207
30212
  flushSync();
30208
30213
  }
30209
30214
  };
30210
- var fragment = root$5();
30215
+ var fragment = root$3();
30211
30216
  var node = first_child(fragment);
30212
30217
  InputAndLabel(node, {
30213
30218
  get describedById() {
@@ -30246,7 +30251,7 @@ function Field($$anchor, $$props) {
30246
30251
  var node_2 = sibling(node_1, 2);
30247
30252
  {
30248
30253
  var consequent_1 = ($$anchor2) => {
30249
- var ul = root_2$6();
30254
+ var ul = root_2$5();
30250
30255
  each(ul, 21, () => get$2(allErrors), index$1, ($$anchor3, error) => {
30251
30256
  var li = root_3$4();
30252
30257
  var text_1 = child(li, true);
@@ -30295,7 +30300,7 @@ function AllFields($$anchor, $$props) {
30295
30300
  pop();
30296
30301
  }
30297
30302
  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>`);
30303
+ var root_2$4 = /* @__PURE__ */ from_html(`<p aria-live="assertive" class="sr-only"> </p>`);
30299
30304
  var root_4$2 = /* @__PURE__ */ from_html(`<li> </li>`);
30300
30305
  var root_3$3 = /* @__PURE__ */ from_html(`<ul class="go-error-feedback-api-errors"></ul>`);
30301
30306
  var root_5 = /* @__PURE__ */ from_html(`<p aria-hidden="true"> </p>`);
@@ -30321,7 +30326,7 @@ function ErrorsFeedback($$anchor, $$props) {
30321
30326
  var node_1 = child(div);
30322
30327
  {
30323
30328
  var consequent = ($$anchor3) => {
30324
- var p2 = root_2$5();
30329
+ var p2 = root_2$4();
30325
30330
  var text2 = child(p2);
30326
30331
  reset(p2);
30327
30332
  template_effect(() => set_text(text2, `Failed to save because ${get$2(errorsOnSubmit) ?? ""} fields are invalid.`));
@@ -30376,9 +30381,9 @@ function ErrorsFeedback($$anchor, $$props) {
30376
30381
  pop();
30377
30382
  }
30378
30383
  customElements.define("go-errors-feedback", create_custom_element(ErrorsFeedback, {}, [], [], false));
30379
- var root$4 = /* @__PURE__ */ from_html(`<div class="go-form-feedback"><!></div>`);
30384
+ var root$2 = /* @__PURE__ */ from_html(`<div class="go-form-feedback"><!></div>`);
30380
30385
  function FormFeedback($$anchor, $$props) {
30381
- var div = root$4();
30386
+ var div = root$2();
30382
30387
  var node = child(div);
30383
30388
  slot(node, $$props, "default", {});
30384
30389
  reset(div);
@@ -30803,7 +30808,7 @@ function Order($$anchor, $$props) {
30803
30808
  }
30804
30809
  customElements.define("go-order", create_custom_element(Order, { token: { attribute: "token", reflect: true, type: "String" } }, [], ["orderDetails"], false));
30805
30810
  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>`);
30811
+ 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
30812
  function Event$1($$anchor, $$props) {
30808
30813
  push($$props, true);
30809
30814
  let item = prop($$props, "item", 7), orderDetails = prop($$props, "orderDetails", 7);
@@ -30823,7 +30828,7 @@ function Event$1($$anchor, $$props) {
30823
30828
  flushSync();
30824
30829
  }
30825
30830
  };
30826
- var li = root$3();
30831
+ var li = root$1();
30827
30832
  var article = child(li);
30828
30833
  var ul = child(article);
30829
30834
  var li_1 = sibling(child(ul), 2);
@@ -30869,7 +30874,7 @@ var root_7$1 = /* @__PURE__ */ from_html(`<a class="go-ticket-download" target="
30869
30874
  var root_3$2 = /* @__PURE__ */ from_html(`<!> <br/> <!>`, 1);
30870
30875
  var root_8 = /* @__PURE__ */ from_html(`<br/> <a class="go-ticket-personalization">Personalize</a>`, 1);
30871
30876
  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>`);
30877
+ 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
30878
  var root_11$1 = /* @__PURE__ */ from_html(`<a class="go-ticket-download" target="_blank">Download</a>`);
30874
30879
  var root_12 = /* @__PURE__ */ from_html(`<a class="go-ticket-personalization">Personalize</a>`);
30875
30880
  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 +30905,7 @@ function TicketSale($$anchor, $$props) {
30900
30905
  var fragment_1 = comment();
30901
30906
  var node_1 = first_child(fragment_1);
30902
30907
  each(node_1, 17, () => ({ length: item().attributes.quantity }), index$1, ($$anchor3, $$item, index2) => {
30903
- var li = root_2$4();
30908
+ var li = root_2$3();
30904
30909
  var article = child(li);
30905
30910
  var ul = child(article);
30906
30911
  var li_1 = child(ul);
@@ -31186,70 +31191,6 @@ function parseTokens(tokens, possibleTokens) {
31186
31191
  });
31187
31192
  return parsed.length > 0 ? parsed : void 0;
31188
31193
  }
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
31194
  function TicketSelection($$anchor, $$props) {
31254
31195
  push($$props, true);
31255
31196
  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 +31207,11 @@ function TicketSelection($$anchor, $$props) {
31266
31207
  details.selectedDate = $fae977aafc393c5c$export$6b862160d295c8e(selectedDate());
31267
31208
  }
31268
31209
  });
31210
+ user_effect(() => {
31211
+ if (details.selectedDate) untrack(() => {
31212
+ selectedDate(details.selectedDate.toString());
31213
+ });
31214
+ });
31269
31215
  setTicketSelectionDetails($$props.$$host, details);
31270
31216
  var $$exports = {
31271
31217
  details,
@@ -31332,13 +31278,13 @@ customElements.define("go-ticket-selection", create_custom_element(
31332
31278
  TicketSelection,
31333
31279
  {
31334
31280
  mode: { attribute: "mode", reflect: true, type: "String" },
31281
+ filters: { attribute: "filters", reflect: true, type: "String" },
31335
31282
  eventIds: { attribute: "event-ids", reflect: true, type: "String" },
31336
31283
  ticketIds: { attribute: "ticket-ids", reflect: true, type: "String" },
31337
31284
  ticketGroupIds: { attribute: "ticket-group-ids", reflect: true, type: "String" },
31338
31285
  museumIds: { attribute: "museum-ids", reflect: true, type: "String" },
31339
31286
  exhibitionIds: { attribute: "exhibition-ids", reflect: true, type: "String" },
31340
- selectedDate: { attribute: "selected-date", reflect: true, type: "String" },
31341
- filters: {}
31287
+ selectedDate: { attribute: "selected-date", reflect: true, type: "String" }
31342
31288
  },
31343
31289
  [],
31344
31290
  ["details"],
@@ -31382,21 +31328,24 @@ function loadAnnualTickets(segment) {
31382
31328
  "by_ticket_group_ids[]": tsd.ticketGroupIds
31383
31329
  }));
31384
31330
  if (!tickets) return [];
31385
- segment.tickets = initUITimeslotTickets(tickets);
31331
+ segment.tickets = initUIAnnualTickets(tickets);
31386
31332
  }
31387
31333
  function loadDayTickets(segment) {
31388
31334
  const tsd = segment.ticketSelectionDetails;
31389
31335
  if (!tsd) return [];
31390
31336
  if (!tsd.filters?.includes("day")) return [];
31391
- const tickets = snapshot(shop.tickets({
31337
+ const result = snapshot(shop.ticketsAndQuotas({
31392
31338
  by_bookable: true,
31339
+ valid_at: tsd.selectedDate?.toString(),
31393
31340
  // @ts-ignore
31394
31341
  "by_ticket_types[]": ["normal"],
31342
+ "by_museum_ids[]": tsd.museumIds,
31343
+ "by_exhibition_ids[]": tsd.exhibitionIds,
31395
31344
  "by_ticket_ids[]": tsd.ticketIds,
31396
31345
  "by_ticket_group_ids[]": tsd.ticketGroupIds
31397
31346
  }));
31398
- if (!tickets) return [];
31399
- segment.tickets = initUITimeslotTickets(tickets);
31347
+ if (!result) return [];
31348
+ segment.tickets = initUIDayTickets(result.tickets);
31400
31349
  }
31401
31350
  function loadEventScaledPricesTickets(segment) {
31402
31351
  const tsd = segment.ticketSelectionDetails;
@@ -31549,7 +31498,7 @@ function loadTimeslotTickets(segment) {
31549
31498
  "by_ticket_group_ids[]": tsd.ticketGroupIds
31550
31499
  }));
31551
31500
  if (!result) return [];
31552
- segment.tickets = initUITimeslotTickets(result.tickets);
31501
+ segment.tickets = initUITimeslotTickets(result.tickets, tsd.selectedTimeslot);
31553
31502
  }
31554
31503
  class TicketSegmentDetails {
31555
31504
  #ticketSelectionDetails;
@@ -32060,7 +32009,7 @@ class Calendar {
32060
32009
  return false;
32061
32010
  }
32062
32011
  // @ts-ignore
32063
- apiFilters() {
32012
+ get apiFilters() {
32064
32013
  return this.details?.filters?.map((f) => ({
32065
32014
  day: "normal",
32066
32015
  timeslot: "time_slot",
@@ -32069,7 +32018,7 @@ class Calendar {
32069
32018
  "event:ticket": "not implemented"
32070
32019
  })[f]);
32071
32020
  }
32072
- params() {
32021
+ params(startAt) {
32073
32022
  if (!this.details) return {};
32074
32023
  const params = {
32075
32024
  by_bookable: true,
@@ -32082,24 +32031,38 @@ class Calendar {
32082
32031
  "by_museum_ids[]": this.details.museumIds,
32083
32032
  "by_exhibition_ids[]": this.details.exhibitionIds,
32084
32033
  "by_event_ids[]": this.details.eventIds,
32034
+ // https://gitlab.giantmonkey.de/gomus/gomus/-/merge_requests/11544
32035
+ // this helps us to differentiate sold-out days from not available days
32036
+ // the api gives an error right now
32037
+ // depth: 'availability_status',
32085
32038
  // 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()
32039
+ start_at: startAt.toString(),
32040
+ end_at: startAt.add({ months: 1 }).toString()
32088
32041
  };
32089
32042
  return params;
32090
32043
  }
32044
+ fetchPeriod() {
32045
+ const thisMonth = this.startAt.set({ day: 1 });
32046
+ return [
32047
+ thisMonth.subtract({ months: 1 }),
32048
+ thisMonth,
32049
+ thisMonth.add({ months: 1 }),
32050
+ thisMonth.add({ months: 2 })
32051
+ ];
32052
+ }
32091
32053
  eventsDates() {
32092
- const ret = shop.calendar(this.params());
32054
+ const method = shop.calendar.bind(shop);
32055
+ const ret = this.fetchPeriod().reduce((prev, startAt) => assign(prev, method(this.params(startAt))), {});
32093
32056
  return ret;
32094
32057
  }
32095
32058
  ticketsDates() {
32096
- const ret = shop.ticketsCalendar(this.params());
32059
+ const method = shop.ticketsCalendar.bind(shop);
32060
+ const ret = this.fetchPeriod().reduce((prev, startAt) => assign(prev, method(this.params(startAt))), {});
32097
32061
  return ret;
32098
32062
  }
32099
32063
  }
32100
32064
  var root_3 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
32101
32065
  var root_11 = /* @__PURE__ */ from_html(`<div> </div>`);
32102
- var root_17 = /* @__PURE__ */ from_html(`<div></div> `, 1);
32103
32066
  var root_7 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
32104
32067
  var root_2 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
32105
32068
  var root_1 = /* @__PURE__ */ from_html(`<div data-calendar-wrapper=""><!></div>`);
@@ -32139,6 +32102,7 @@ function CalendarUI($$anchor, $$props) {
32139
32102
  var node_2 = first_child(fragment_1);
32140
32103
  component(node_2, () => Calendar_prev_button, ($$anchor5, Calendar_PrevButton) => {
32141
32104
  Calendar_PrevButton($$anchor5, {
32105
+ class: "go-calendar-prev-button",
32142
32106
  children: ($$anchor6, $$slotProps2) => {
32143
32107
  next();
32144
32108
  var text2 = text$1("Prev");
@@ -32149,11 +32113,12 @@ function CalendarUI($$anchor, $$props) {
32149
32113
  });
32150
32114
  var node_3 = sibling(node_2, 2);
32151
32115
  component(node_3, () => Calendar_heading, ($$anchor5, Calendar_Heading) => {
32152
- Calendar_Heading($$anchor5, {});
32116
+ Calendar_Heading($$anchor5, { class: "go-calendar-heading" });
32153
32117
  });
32154
32118
  var node_4 = sibling(node_3, 2);
32155
32119
  component(node_4, () => Calendar_next_button, ($$anchor5, Calendar_NextButton) => {
32156
32120
  Calendar_NextButton($$anchor5, {
32121
+ class: "go-calendar-next-button",
32157
32122
  children: ($$anchor6, $$slotProps2) => {
32158
32123
  next();
32159
32124
  var text_1 = text$1("Next");
@@ -32173,16 +32138,19 @@ function CalendarUI($$anchor, $$props) {
32173
32138
  var node_6 = first_child(fragment_2);
32174
32139
  component(node_6, () => Calendar_grid, ($$anchor4, Calendar_Grid) => {
32175
32140
  Calendar_Grid($$anchor4, {
32141
+ class: "go-calendar-grid",
32176
32142
  children: ($$anchor5, $$slotProps) => {
32177
32143
  var fragment_3 = root_7();
32178
32144
  var node_7 = first_child(fragment_3);
32179
32145
  component(node_7, () => Calendar_grid_head, ($$anchor6, Calendar_GridHead) => {
32180
32146
  Calendar_GridHead($$anchor6, {
32147
+ class: "go-calendar-grid-head",
32181
32148
  children: ($$anchor7, $$slotProps2) => {
32182
32149
  var fragment_4 = comment();
32183
32150
  var node_8 = first_child(fragment_4);
32184
32151
  component(node_8, () => Calendar_grid_row, ($$anchor8, Calendar_GridRow) => {
32185
32152
  Calendar_GridRow($$anchor8, {
32153
+ class: "go-calendar-grid-row",
32186
32154
  children: ($$anchor9, $$slotProps3) => {
32187
32155
  var fragment_5 = comment();
32188
32156
  var node_9 = first_child(fragment_5);
@@ -32216,6 +32184,7 @@ function CalendarUI($$anchor, $$props) {
32216
32184
  var node_11 = sibling(node_7, 2);
32217
32185
  component(node_11, () => Calendar_grid_body, ($$anchor6, Calendar_GridBody) => {
32218
32186
  Calendar_GridBody($$anchor6, {
32187
+ class: "go-calendar-grid-body",
32219
32188
  children: ($$anchor7, $$slotProps2) => {
32220
32189
  var fragment_7 = comment();
32221
32190
  var node_12 = first_child(fragment_7);
@@ -32224,6 +32193,7 @@ function CalendarUI($$anchor, $$props) {
32224
32193
  var node_13 = first_child(fragment_8);
32225
32194
  component(node_13, () => Calendar_grid_row, ($$anchor9, Calendar_GridRow_1) => {
32226
32195
  Calendar_GridRow_1($$anchor9, {
32196
+ class: "go-calendar-grid-row",
32227
32197
  children: ($$anchor10, $$slotProps3) => {
32228
32198
  var fragment_9 = comment();
32229
32199
  var node_14 = first_child(fragment_9);
@@ -32238,16 +32208,18 @@ function CalendarUI($$anchor, $$props) {
32238
32208
  get month() {
32239
32209
  return get$2(month).value;
32240
32210
  },
32211
+ class: "go-calendar-cell",
32241
32212
  children: ($$anchor13, $$slotProps4) => {
32242
32213
  var fragment_11 = comment();
32243
32214
  var node_16 = first_child(fragment_11);
32244
32215
  component(node_16, () => Calendar_day, ($$anchor14, Calendar_Day) => {
32245
32216
  Calendar_Day($$anchor14, {
32217
+ class: "go-calendar-day",
32246
32218
  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);
32219
+ next();
32220
+ var text_3 = text$1();
32221
+ template_effect(() => set_text(text_3, get$2(date2).day));
32222
+ append($$anchor15, text_3);
32251
32223
  },
32252
32224
  $$slots: { default: true }
32253
32225
  });
@@ -32292,6 +32264,7 @@ function CalendarUI($$anchor, $$props) {
32292
32264
  isDateDisabled: (date2) => calendarClass().isDateDisabled(date2),
32293
32265
  isDateUnavailable: (date2) => calendarClass().isDateUnavailable(date2),
32294
32266
  disableDaysOutsideMonth: false,
32267
+ class: "go-calendar-root",
32295
32268
  get value() {
32296
32269
  return calendarClass().selected;
32297
32270
  },
@@ -32315,7 +32288,6 @@ function CalendarUI($$anchor, $$props) {
32315
32288
  return pop($$exports);
32316
32289
  }
32317
32290
  create_custom_element(CalendarUI, { calendarClass: {} }, [], ["details"], true);
32318
- var root$1 = /* @__PURE__ */ from_html(`<div data-calendar-wrapper=""><!></div>`);
32319
32291
  function Calendar_1($$anchor, $$props) {
32320
32292
  push($$props, true);
32321
32293
  const ticketsCalendar = new Calendar();
@@ -32329,15 +32301,12 @@ function Calendar_1($$anchor, $$props) {
32329
32301
  get$2(ticketSelectionDetails).selectedDate = void 0;
32330
32302
  }
32331
32303
  });
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
- });
32304
+ $$props.$$host.addEventListener("go-date-select", (e) => {
32305
+ if (get$2(ticketSelectionDetails)) get$2(ticketSelectionDetails).selectedDate = e.detail.selected;
32337
32306
  });
32338
32307
  var $$exports = { details };
32339
- var div = root$1();
32340
- var node = child(div);
32308
+ var fragment = comment();
32309
+ var node = first_child(fragment);
32341
32310
  {
32342
32311
  var consequent = ($$anchor2) => {
32343
32312
  CalendarUI($$anchor2, {
@@ -32350,9 +32319,7 @@ function Calendar_1($$anchor, $$props) {
32350
32319
  if (get$2(ticketSelectionDetails)?.isCalendarVisible) $$render(consequent);
32351
32320
  });
32352
32321
  }
32353
- reset(div);
32354
- bind_this(div, ($$value) => set(wrapper, $$value), () => get$2(wrapper));
32355
- append($$anchor, div);
32322
+ append($$anchor, fragment);
32356
32323
  return pop($$exports);
32357
32324
  }
32358
32325
  customElements.define("go-calendar", create_custom_element(Calendar_1, {}, [], ["details"], false));
@@ -32431,6 +32398,10 @@ function Link($$anchor, $$props) {
32431
32398
  });
32432
32399
  a2.addEventListener("click", (e) => {
32433
32400
  e.preventDefault();
32401
+ if (!go.config.urls[to()]) {
32402
+ console.warn(`[go-link] No URL found for route "${to()}". You can define it with go.config.urls.${to()} = () => 'https://example.com/my-route'`);
32403
+ return;
32404
+ }
32434
32405
  go.config.navigateTo(go.config.urls[to()]());
32435
32406
  });
32436
32407
  var $$exports = {