@gomusdev/web-components 1.26.1 → 1.26.2

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.
@@ -31729,9 +31729,10 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31729
31729
  "by_ticket_ids[]": tsd.ticketIds,
31730
31730
  "by_ticket_group_ids[]": tsd.ticketGroupIds
31731
31731
  }));
31732
- const selectedTime2 = "10:00";
31733
- const selectedDate = tsd.selectedDate.toString();
31734
- const timeslot = selectedDate + "T" + selectedTime2 + ":00+01:00";
31732
+ let timeslot;
31733
+ if (quotas && Object.values(quotas).length > 0 && Object.keys(Object.values(quotas)[0].capacities).length > 0) {
31734
+ timeslot = Object.keys(Object.values(quotas)[0].capacities)[0];
31735
+ }
31735
31736
  shop.capacityManager.addQuotas(quotas);
31736
31737
  const uiTickets = initUITimeslotTickets(tickets, timeslot);
31737
31738
  segment.preCart = createCart(uiTickets);
@@ -31729,9 +31729,10 @@ async function loadDayTickets(segment) {
31729
31729
  "by_ticket_ids[]": tsd.ticketIds,
31730
31730
  "by_ticket_group_ids[]": tsd.ticketGroupIds
31731
31731
  }));
31732
- const selectedTime2 = "10:00";
31733
- const selectedDate = tsd.selectedDate.toString();
31734
- const timeslot = selectedDate + "T" + selectedTime2 + ":00+01:00";
31732
+ let timeslot;
31733
+ if (quotas && Object.values(quotas).length > 0 && Object.keys(Object.values(quotas)[0].capacities).length > 0) {
31734
+ timeslot = Object.keys(Object.values(quotas)[0].capacities)[0];
31735
+ }
31735
31736
  shop.capacityManager.addQuotas(quotas);
31736
31737
  const uiTickets = initUITimeslotTickets(tickets, timeslot);
31737
31738
  segment.preCart = createCart(uiTickets);
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Giantmonkey GmbH"
5
5
  },
6
6
  "license": "MIT",
7
- "version": "1.26.1",
7
+ "version": "1.26.2",
8
8
  "type": "module",
9
9
  "main": "./dist-js/gomus-webcomponents.iife.js",
10
10
  "module": "./dist-js/gomus-webcomponents.iife.js",