@gomusdev/web-components 1.21.0 → 1.22.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.
|
@@ -5693,6 +5693,9 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
5693
5693
|
localStorage.setItem("go-auth", this.toString());
|
|
5694
5694
|
}
|
|
5695
5695
|
load() {
|
|
5696
|
+
if (!localStorage) {
|
|
5697
|
+
return;
|
|
5698
|
+
}
|
|
5696
5699
|
const str = localStorage.getItem("go-auth");
|
|
5697
5700
|
if (!str) {
|
|
5698
5701
|
this.signOut();
|
|
@@ -31146,7 +31149,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
31146
31149
|
create_custom_element(Wrapper, { host: {}, children: {} }, [], [], true);
|
|
31147
31150
|
function TicketSelection($$anchor, $$props) {
|
|
31148
31151
|
push($$props, true);
|
|
31149
|
-
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), ticketIds = prop($$props, "ticketIds", 7), ticketGroupIds = prop($$props, "ticketGroupIds", 7);
|
|
31152
|
+
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);
|
|
31150
31153
|
const details = new TicketSelectionDetails();
|
|
31151
31154
|
user_effect(() => {
|
|
31152
31155
|
details.mode = mode();
|
|
@@ -31156,6 +31159,9 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
31156
31159
|
details.exhibitionIds = parseIds(exhibitionIds());
|
|
31157
31160
|
details.ticketIds = parseIds(ticketIds());
|
|
31158
31161
|
details.ticketGroupIds = parseIds(ticketGroupIds());
|
|
31162
|
+
if (selectedDate()) {
|
|
31163
|
+
details.selectedDate = $fae977aafc393c5c$export$6b862160d295c8e(selectedDate());
|
|
31164
|
+
}
|
|
31159
31165
|
});
|
|
31160
31166
|
setTicketSelectionDetails($$props.$$host, details);
|
|
31161
31167
|
var $$exports = {
|
|
@@ -31195,6 +31201,13 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
31195
31201
|
exhibitionIds($$value);
|
|
31196
31202
|
flushSync();
|
|
31197
31203
|
},
|
|
31204
|
+
get selectedDate() {
|
|
31205
|
+
return selectedDate();
|
|
31206
|
+
},
|
|
31207
|
+
set selectedDate($$value) {
|
|
31208
|
+
selectedDate($$value);
|
|
31209
|
+
flushSync();
|
|
31210
|
+
},
|
|
31198
31211
|
get ticketIds() {
|
|
31199
31212
|
return ticketIds();
|
|
31200
31213
|
},
|
|
@@ -31221,6 +31234,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
31221
31234
|
ticketGroupIds: { attribute: "ticket-group-ids", reflect: true, type: "String" },
|
|
31222
31235
|
museumIds: { attribute: "museum-ids", reflect: true, type: "String" },
|
|
31223
31236
|
exhibitionIds: { attribute: "exhibition-ids", reflect: true, type: "String" },
|
|
31237
|
+
selectedDate: { attribute: "selected-date", reflect: true, type: "String" },
|
|
31224
31238
|
filters: {}
|
|
31225
31239
|
},
|
|
31226
31240
|
[],
|
|
@@ -31535,9 +31549,6 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
31535
31549
|
}
|
|
31536
31550
|
function generateQuantityOptions(cart2, item) {
|
|
31537
31551
|
const { min: min2, max: max2 } = selectOptions(cart2, item);
|
|
31538
|
-
if (max2 < min2) {
|
|
31539
|
-
throw new Error("(generateQuantityOptions) max must be greater than min");
|
|
31540
|
-
}
|
|
31541
31552
|
const options = [{ value: 0, label: "0" }];
|
|
31542
31553
|
for (let quantity = min2; quantity <= max2; quantity++) {
|
|
31543
31554
|
if (quantity == 0) continue;
|
|
@@ -5693,6 +5693,9 @@ class Auth {
|
|
|
5693
5693
|
localStorage.setItem("go-auth", this.toString());
|
|
5694
5694
|
}
|
|
5695
5695
|
load() {
|
|
5696
|
+
if (!localStorage) {
|
|
5697
|
+
return;
|
|
5698
|
+
}
|
|
5696
5699
|
const str = localStorage.getItem("go-auth");
|
|
5697
5700
|
if (!str) {
|
|
5698
5701
|
this.signOut();
|
|
@@ -31146,7 +31149,7 @@ function Wrapper($$anchor, $$props) {
|
|
|
31146
31149
|
create_custom_element(Wrapper, { host: {}, children: {} }, [], [], true);
|
|
31147
31150
|
function TicketSelection($$anchor, $$props) {
|
|
31148
31151
|
push($$props, true);
|
|
31149
|
-
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), ticketIds = prop($$props, "ticketIds", 7), ticketGroupIds = prop($$props, "ticketGroupIds", 7);
|
|
31152
|
+
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);
|
|
31150
31153
|
const details = new TicketSelectionDetails();
|
|
31151
31154
|
user_effect(() => {
|
|
31152
31155
|
details.mode = mode();
|
|
@@ -31156,6 +31159,9 @@ function TicketSelection($$anchor, $$props) {
|
|
|
31156
31159
|
details.exhibitionIds = parseIds(exhibitionIds());
|
|
31157
31160
|
details.ticketIds = parseIds(ticketIds());
|
|
31158
31161
|
details.ticketGroupIds = parseIds(ticketGroupIds());
|
|
31162
|
+
if (selectedDate()) {
|
|
31163
|
+
details.selectedDate = $fae977aafc393c5c$export$6b862160d295c8e(selectedDate());
|
|
31164
|
+
}
|
|
31159
31165
|
});
|
|
31160
31166
|
setTicketSelectionDetails($$props.$$host, details);
|
|
31161
31167
|
var $$exports = {
|
|
@@ -31195,6 +31201,13 @@ function TicketSelection($$anchor, $$props) {
|
|
|
31195
31201
|
exhibitionIds($$value);
|
|
31196
31202
|
flushSync();
|
|
31197
31203
|
},
|
|
31204
|
+
get selectedDate() {
|
|
31205
|
+
return selectedDate();
|
|
31206
|
+
},
|
|
31207
|
+
set selectedDate($$value) {
|
|
31208
|
+
selectedDate($$value);
|
|
31209
|
+
flushSync();
|
|
31210
|
+
},
|
|
31198
31211
|
get ticketIds() {
|
|
31199
31212
|
return ticketIds();
|
|
31200
31213
|
},
|
|
@@ -31221,6 +31234,7 @@ customElements.define("go-ticket-selection", create_custom_element(
|
|
|
31221
31234
|
ticketGroupIds: { attribute: "ticket-group-ids", reflect: true, type: "String" },
|
|
31222
31235
|
museumIds: { attribute: "museum-ids", reflect: true, type: "String" },
|
|
31223
31236
|
exhibitionIds: { attribute: "exhibition-ids", reflect: true, type: "String" },
|
|
31237
|
+
selectedDate: { attribute: "selected-date", reflect: true, type: "String" },
|
|
31224
31238
|
filters: {}
|
|
31225
31239
|
},
|
|
31226
31240
|
[],
|
|
@@ -31535,9 +31549,6 @@ function selectOptions(cart2, item) {
|
|
|
31535
31549
|
}
|
|
31536
31550
|
function generateQuantityOptions(cart2, item) {
|
|
31537
31551
|
const { min: min2, max: max2 } = selectOptions(cart2, item);
|
|
31538
|
-
if (max2 < min2) {
|
|
31539
|
-
throw new Error("(generateQuantityOptions) max must be greater than min");
|
|
31540
|
-
}
|
|
31541
31552
|
const options = [{ value: 0, label: "0" }];
|
|
31542
31553
|
for (let quantity = min2; quantity <= max2; quantity++) {
|
|
31543
31554
|
if (quantity == 0) continue;
|