@gomusdev/web-components 1.39.2 → 1.39.3

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.
@@ -32325,7 +32325,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32325
32325
  const datePart = d.start_time.slice(0, 10);
32326
32326
  const sameDay = tsd.selectedDate?.toString() == datePart;
32327
32327
  const after = Date.parse(d.start_time) >= Date.parse(tsd.selectedTime);
32328
- return sameDay && after;
32328
+ const availableSeats = (d.seats?.available ?? 0) > 0;
32329
+ return sameDay && after && availableSeats;
32329
32330
  });
32330
32331
  for (const date2 of dates) {
32331
32332
  if (date2.prices) {
@@ -32325,7 +32325,8 @@ async function load_Events_ScaledPricesTickets(segment) {
32325
32325
  const datePart = d.start_time.slice(0, 10);
32326
32326
  const sameDay = tsd.selectedDate?.toString() == datePart;
32327
32327
  const after = Date.parse(d.start_time) >= Date.parse(tsd.selectedTime);
32328
- return sameDay && after;
32328
+ const availableSeats = (d.seats?.available ?? 0) > 0;
32329
+ return sameDay && after && availableSeats;
32329
32330
  });
32330
32331
  for (const date2 of dates) {
32331
32332
  if (date2.prices) {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Giantmonkey GmbH"
5
5
  },
6
6
  "license": "MIT",
7
- "version": "1.39.2",
7
+ "version": "1.39.3",
8
8
  "type": "module",
9
9
  "main": "./dist-js/gomus-webcomponents.iife.js",
10
10
  "module": "./dist-js/gomus-webcomponents.iife.js",