@gomusdev/web-components 4.2.0 → 4.4.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.
- package/README.md +15 -0
- package/dist-js/components/cart/components/itemTitles/Tour.svelte.d.ts +1 -0
- package/dist-js/components/order/components/subcomponents/breakdown/items/Tour.svelte.d.ts +1 -0
- package/dist-js/gomus-webcomponents.iife.js +523 -195
- package/dist-js/gomus-webcomponents.js +523 -195
- package/dist-js/gomus-webcomponents.min.iife.js +47 -47
- package/dist-js/gomus-webcomponents.min.js +7511 -7313
- package/dist-js/src/components/cart/components/itemTitles/Tour.spec.d.ts +1 -0
- package/dist-js/src/components/order/components/subcomponents/breakdown/items/Tour.spec.d.ts +1 -0
- package/dist-js/src/components/ticketSelection/subcomponents/tickets/subcomponents/segment/SegmentDetails.svelte.d.ts +21 -3
- package/dist-js/src/factories/CartItemFactories.d.ts +94 -5
- package/dist-js/src/factories/TourFactories.d.ts +41 -0
- package/dist-js/src/go/cart.d.ts +19 -0
- package/dist-js/src/go/cart.spec.d.ts +1 -0
- package/dist-js/src/go/go.d.ts +8 -3
- package/dist-js/src/lib/helpers/translations.d.ts +1 -0
- package/dist-js/src/lib/models/cart/CartItem.d.ts +7 -1
- package/dist-js/src/lib/models/cart/cart.svelte.d.ts +42 -6
- package/dist-js/src/lib/models/cart/localStorage.svelte.d.ts +7 -1
- package/dist-js/src/lib/models/cart/types.d.ts +4 -1
- package/dist-js/src/lib/models/tour/UITour.spec.d.ts +1 -0
- package/dist-js/src/lib/models/tour/UITour.svelte.d.ts +99 -0
- package/dist-js/src/lib/stores/shop.svelte.d.ts +24 -4
- package/package.json +2 -2
|
@@ -61,6 +61,26 @@
|
|
|
61
61
|
reject
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* When encountering a situation like `let [a, b, c] = $derived(blah())`,
|
|
66
|
+
* we need to stash an intermediate value that `a`, `b`, and `c` derive
|
|
67
|
+
* from, in case it's an iterable
|
|
68
|
+
* @template T
|
|
69
|
+
* @param {ArrayLike<T> | Iterable<T>} value
|
|
70
|
+
* @param {number} [n]
|
|
71
|
+
* @returns {Array<T>}
|
|
72
|
+
*/
|
|
73
|
+
function to_array(value, n) {
|
|
74
|
+
if (Array.isArray(value)) return value;
|
|
75
|
+
if (n === void 0 || !(Symbol.iterator in value)) return Array.from(value);
|
|
76
|
+
/** @type {T[]} */
|
|
77
|
+
const array = [];
|
|
78
|
+
for (const element of value) {
|
|
79
|
+
array.push(element);
|
|
80
|
+
if (array.length === n) break;
|
|
81
|
+
}
|
|
82
|
+
return array;
|
|
83
|
+
}
|
|
64
84
|
//#endregion
|
|
65
85
|
//#region ../../node_modules/.pnpm/svelte@5.56.1_@typescript-eslint+types@8.60.1/node_modules/svelte/src/internal/client/constants.js
|
|
66
86
|
/**
|
|
@@ -12141,6 +12161,49 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12141
12161
|
});
|
|
12142
12162
|
}
|
|
12143
12163
|
//#endregion
|
|
12164
|
+
//#region src/lib/models/tour/UITour.svelte.ts
|
|
12165
|
+
function isUITour(x) {
|
|
12166
|
+
return x?.type === "Tour";
|
|
12167
|
+
}
|
|
12168
|
+
function createUITour(attributes, options) {
|
|
12169
|
+
return {
|
|
12170
|
+
...attributes,
|
|
12171
|
+
type: "Tour",
|
|
12172
|
+
description: "",
|
|
12173
|
+
price_cents: attributes.totalPriceCents,
|
|
12174
|
+
tax_included: true,
|
|
12175
|
+
vat_pct: 0,
|
|
12176
|
+
instanceKey: options?.instanceKey ?? crypto.randomUUID(),
|
|
12177
|
+
wire: normalizeWireAttributes(attributes)
|
|
12178
|
+
};
|
|
12179
|
+
}
|
|
12180
|
+
/**
|
|
12181
|
+
* The tour's share of the tour_cart_item payload, normalized at construction:
|
|
12182
|
+
* snake_case keys, absent optionals omitted. The backend derives participants
|
|
12183
|
+
* from `quantity` but prices scale-priced tours from `quantities` — exactly
|
|
12184
|
+
* one of the two is emitted so they can never diverge on the wire.
|
|
12185
|
+
*/
|
|
12186
|
+
function normalizeWireAttributes(attributes) {
|
|
12187
|
+
const wire = { language_id: attributes.languageId };
|
|
12188
|
+
if (attributes.quantities) wire.quantities = attributes.quantities;
|
|
12189
|
+
else wire.quantity = attributes.participants;
|
|
12190
|
+
if (attributes.gradeId != null) wire.grade_id = attributes.gradeId;
|
|
12191
|
+
if (attributes.ageGroupId != null) wire.age_group_id = attributes.ageGroupId;
|
|
12192
|
+
if (attributes.surcharges) wire.surcharges = attributes.surcharges;
|
|
12193
|
+
if (attributes.equipment) wire.equipment = attributes.equipment;
|
|
12194
|
+
if (attributes.attendees) wire.attendees = attributes.attendees;
|
|
12195
|
+
if (attributes.customs) wire.customs = attributes.customs;
|
|
12196
|
+
return wire;
|
|
12197
|
+
}
|
|
12198
|
+
/** Rebuilds a UITour from its localStorage JSON through the one construction path. */
|
|
12199
|
+
function reviveUITour(persisted) {
|
|
12200
|
+
const { type, description, price_cents, tax_included, vat_pct, instanceKey, wire, ...attributes } = persisted;
|
|
12201
|
+
return createUITour({
|
|
12202
|
+
...attributes,
|
|
12203
|
+
totalPriceCents: price_cents
|
|
12204
|
+
}, { instanceKey });
|
|
12205
|
+
}
|
|
12206
|
+
//#endregion
|
|
12144
12207
|
//#region src/lib/models/cart/CartItem.ts
|
|
12145
12208
|
var lastMantleKey = 0;
|
|
12146
12209
|
function createCartItem(product, options) {
|
|
@@ -12189,6 +12252,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12189
12252
|
...base,
|
|
12190
12253
|
quantity: this.quantity
|
|
12191
12254
|
};
|
|
12255
|
+
case "Tour": return {
|
|
12256
|
+
...base,
|
|
12257
|
+
start_time: this.time,
|
|
12258
|
+
...product.wire
|
|
12259
|
+
};
|
|
12192
12260
|
default: throw new Error(`(orderAttributes) Unhandled product type: ${product}`);
|
|
12193
12261
|
}
|
|
12194
12262
|
},
|
|
@@ -12199,6 +12267,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12199
12267
|
const segments = [];
|
|
12200
12268
|
if (this.time) segments.push(`time: ${this.time}`);
|
|
12201
12269
|
if (isScaleEventTicket(this.product)) segments.push(`scale_price: ${this.product.scale_price_id}`);
|
|
12270
|
+
if (isUITour(this.product)) segments.push(`tour: ${this.product.instanceKey}`);
|
|
12202
12271
|
if (this.display?.discounted) segments.push("discounted");
|
|
12203
12272
|
if (isMantleTicket(this.product) && this.mantle?.key) segments.push(`mantle_key: ${this.mantle.key}`);
|
|
12204
12273
|
return segments.length > 0 ? ` (${segments.join(", ")})` : "";
|
|
@@ -12299,6 +12368,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12299
12368
|
time: cartItem.time,
|
|
12300
12369
|
quantity: cartItem.quantity
|
|
12301
12370
|
});
|
|
12371
|
+
case "Tour":
|
|
12372
|
+
if (!isStillValid(cartItem)) return;
|
|
12373
|
+
return createCartItem(reviveUITour(cartItem.product), {
|
|
12374
|
+
time: cartItem.time,
|
|
12375
|
+
quantity: cartItem.quantity
|
|
12376
|
+
});
|
|
12302
12377
|
case "Coupon": return createCartItem(createUICoupon(cartItem.product), { quantity: cartItem.quantity });
|
|
12303
12378
|
default: throw new Error(`Unhandled case: ${type}`);
|
|
12304
12379
|
}
|
|
@@ -12560,6 +12635,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12560
12635
|
default: throw new Error(`(getMaxAvailability) Unhandled case: ${subtype2}`);
|
|
12561
12636
|
}
|
|
12562
12637
|
case "Coupon": return "unlimited";
|
|
12638
|
+
case "Tour": return "unlimited";
|
|
12563
12639
|
default: throw new Error(`(getMaxAvailability) Unhandled case: ${type}`);
|
|
12564
12640
|
}
|
|
12565
12641
|
},
|
|
@@ -13547,6 +13623,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
13547
13623
|
var WITHDRAWAL_ENDPOINT = "/api/v4/orders/withdrawals";
|
|
13548
13624
|
var MEMBERSHIP_ACTIVATION_ENDPOINT = "/api/v4/customer/memberships/activate";
|
|
13549
13625
|
var ORDERS_ENDPOINT = "/api/v4/orders";
|
|
13626
|
+
var CUSTOMER_ADDRESSES_ENDPOINT = "/api/v4/customer/customer_addresses";
|
|
13550
13627
|
//#endregion
|
|
13551
13628
|
//#region ../../packages/gomus-api/lib/customerLevels.ts
|
|
13552
13629
|
var CustomerLevels = {
|
|
@@ -13668,6 +13745,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
13668
13745
|
query: params
|
|
13669
13746
|
});
|
|
13670
13747
|
}
|
|
13748
|
+
getCustomerAddresses() {
|
|
13749
|
+
if (!this.auth.data.accessToken) return NOT_SIGNED_IN;
|
|
13750
|
+
return this.fetchAndCache(CUSTOMER_ADDRESSES_ENDPOINT, "customerAddresses", "", { cache: 5 });
|
|
13751
|
+
}
|
|
13671
13752
|
ticketsCalendar(params) {
|
|
13672
13753
|
return this.fetchAndCache(TICKETS_CALENDAR_ENDPOINT, `ticketsCalendar-${JSON.stringify(params)}`, "data", {
|
|
13673
13754
|
cache: 60,
|
|
@@ -14144,8 +14225,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14144
14225
|
var getPersonalizationDetails = createGetDetails(KEY$5);
|
|
14145
14226
|
//#endregion
|
|
14146
14227
|
//#region src/components/annualTicketPersonalization/components/AnnualTicketPersonalization.svelte
|
|
14147
|
-
var root$
|
|
14148
|
-
var root_1$
|
|
14228
|
+
var root$57 = /* @__PURE__ */ from_html(`<li><a> </a></li>`);
|
|
14229
|
+
var root_1$21 = /* @__PURE__ */ from_html(`<ul class="go-annual-ticket"><li class="go-annual-ticket-title"> </li> <li class="go-annual-ticket-personalization-count"> </li> <!></ul>`);
|
|
14149
14230
|
function AnnualTicketPersonalization($$anchor, $$props) {
|
|
14150
14231
|
push($$props, true);
|
|
14151
14232
|
let token = prop($$props, "token", 7);
|
|
@@ -14170,7 +14251,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14170
14251
|
var consequent_1 = ($$anchor) => {
|
|
14171
14252
|
var fragment_1 = comment();
|
|
14172
14253
|
each(first_child(fragment_1), 17, () => get$2(order).ticket_sales, (ticketSale) => ticketSale.id, ($$anchor, ticketSale) => {
|
|
14173
|
-
var ul = root_1$
|
|
14254
|
+
var ul = root_1$21();
|
|
14174
14255
|
var li = child(ul);
|
|
14175
14256
|
var text = child(li, true);
|
|
14176
14257
|
reset(li);
|
|
@@ -14179,7 +14260,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14179
14260
|
reset(li_1);
|
|
14180
14261
|
var node_2 = sibling(li_1, 2);
|
|
14181
14262
|
var consequent = ($$anchor) => {
|
|
14182
|
-
var li_2 = root$
|
|
14263
|
+
var li_2 = root$57();
|
|
14183
14264
|
var a = child(li_2);
|
|
14184
14265
|
var text_2 = child(a, true);
|
|
14185
14266
|
reset(a);
|
|
@@ -14854,7 +14935,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14854
14935
|
}
|
|
14855
14936
|
//#endregion
|
|
14856
14937
|
//#region src/components/forms/ui/generic/Form.svelte
|
|
14857
|
-
var root$
|
|
14938
|
+
var root$56 = /* @__PURE__ */ from_html(`<go-all-fields></go-all-fields> <go-form-feedback><go-errors-feedback></go-errors-feedback> <go-success-feedback></go-success-feedback></go-form-feedback> <go-submit> </go-submit>`, 3);
|
|
14858
14939
|
function Form($$anchor, $$props) {
|
|
14859
14940
|
push($$props, true);
|
|
14860
14941
|
let formId = prop($$props, "formId", 7), custom = prop($$props, "custom", 7);
|
|
@@ -14899,7 +14980,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14899
14980
|
var fragment = comment();
|
|
14900
14981
|
var node = first_child(fragment);
|
|
14901
14982
|
var consequent = ($$anchor) => {
|
|
14902
|
-
var fragment_1 = root$
|
|
14983
|
+
var fragment_1 = root$56();
|
|
14903
14984
|
var go_submit = sibling(sibling(first_child(fragment_1), 2), 2);
|
|
14904
14985
|
var text = child(go_submit, true);
|
|
14905
14986
|
reset(go_submit);
|
|
@@ -14926,7 +15007,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14926
15007
|
}, [], ["details"]));
|
|
14927
15008
|
//#endregion
|
|
14928
15009
|
//#region src/components/auth/passwordReset/PasswordReset.svelte
|
|
14929
|
-
var root$
|
|
15010
|
+
var root$55 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
|
|
14930
15011
|
function PasswordReset($$anchor, $$props) {
|
|
14931
15012
|
push($$props, true);
|
|
14932
15013
|
let custom = prop($$props, "custom", 7, false);
|
|
@@ -14959,7 +15040,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14959
15040
|
flushSync();
|
|
14960
15041
|
}
|
|
14961
15042
|
};
|
|
14962
|
-
var go_form = root$
|
|
15043
|
+
var go_form = root$55();
|
|
14963
15044
|
set_custom_element_data(go_form, "formId", "passwordReset");
|
|
14964
15045
|
template_effect(() => set_custom_element_data(go_form, "custom", custom()));
|
|
14965
15046
|
event("submit", go_form, passwordReset);
|
|
@@ -15123,7 +15204,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15123
15204
|
return displayCart;
|
|
15124
15205
|
}
|
|
15125
15206
|
function createDisplayCartItem(cartItem, attrs) {
|
|
15126
|
-
const quantity = resolveApiQuantity(attrs);
|
|
15207
|
+
const quantity = isUITour(cartItem.product) ? 1 : resolveApiQuantity(attrs);
|
|
15127
15208
|
const displayPrice = attrs.price_cents ?? cartItem.product.price_cents;
|
|
15128
15209
|
const originalPrice = cartItem.product.price_cents;
|
|
15129
15210
|
const discounted = displayPrice < originalPrice;
|
|
@@ -15196,7 +15277,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15196
15277
|
var getCartDetails = createGetDetails(KEY$3);
|
|
15197
15278
|
//#endregion
|
|
15198
15279
|
//#region src/components/cart/components/itemTitles/Coupon.svelte
|
|
15199
|
-
var root$
|
|
15280
|
+
var root$54 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span>`);
|
|
15200
15281
|
function Coupon($$anchor, $$props) {
|
|
15201
15282
|
push($$props, true);
|
|
15202
15283
|
let cartItem = prop($$props, "cartItem", 7);
|
|
@@ -15209,7 +15290,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15209
15290
|
flushSync();
|
|
15210
15291
|
}
|
|
15211
15292
|
};
|
|
15212
|
-
var span = root$
|
|
15293
|
+
var span = root$54();
|
|
15213
15294
|
var text = child(span, true);
|
|
15214
15295
|
reset(span);
|
|
15215
15296
|
template_effect(() => set_text(text, cartItem().product.title));
|
|
@@ -15219,8 +15300,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15219
15300
|
create_custom_element(Coupon, { cartItem: {} }, [], [], { mode: "open" });
|
|
15220
15301
|
//#endregion
|
|
15221
15302
|
//#region src/components/cart/components/itemTitles/Event.svelte
|
|
15222
|
-
var root$
|
|
15223
|
-
var root_1$
|
|
15303
|
+
var root$53 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span><span class="go-cart-item-time" data-testid="cart-item-time"> </span>`, 1);
|
|
15304
|
+
var root_1$20 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"><span class="go-cart-item-title-event-title"> </span><span class="go-cart-item-title-ticket-title"> </span></span><!>`, 1);
|
|
15224
15305
|
function Event$2($$anchor, $$props) {
|
|
15225
15306
|
push($$props, true);
|
|
15226
15307
|
let cartItem = prop($$props, "cartItem", 7);
|
|
@@ -15235,7 +15316,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15235
15316
|
flushSync();
|
|
15236
15317
|
}
|
|
15237
15318
|
};
|
|
15238
|
-
var fragment = root_1$
|
|
15319
|
+
var fragment = root_1$20();
|
|
15239
15320
|
var span = first_child(fragment);
|
|
15240
15321
|
var span_1 = child(span);
|
|
15241
15322
|
var text = child(span_1, true);
|
|
@@ -15246,7 +15327,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15246
15327
|
reset(span);
|
|
15247
15328
|
var node = sibling(span);
|
|
15248
15329
|
var consequent = ($$anchor) => {
|
|
15249
|
-
var fragment_1 = root$
|
|
15330
|
+
var fragment_1 = root$53();
|
|
15250
15331
|
var span_3 = first_child(fragment_1);
|
|
15251
15332
|
var text_2 = child(span_3, true);
|
|
15252
15333
|
reset(span_3);
|
|
@@ -15275,9 +15356,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15275
15356
|
create_custom_element(Event$2, { cartItem: {} }, [], [], { mode: "open" });
|
|
15276
15357
|
//#endregion
|
|
15277
15358
|
//#region src/components/cart/components/itemTitles/Ticket.svelte
|
|
15278
|
-
var root$
|
|
15279
|
-
var root_1$
|
|
15280
|
-
var root_2$
|
|
15359
|
+
var root$52 = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
|
|
15360
|
+
var root_1$19 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
|
|
15361
|
+
var root_2$14 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span> <!>`, 1);
|
|
15281
15362
|
function Ticket($$anchor, $$props) {
|
|
15282
15363
|
push($$props, true);
|
|
15283
15364
|
let cartItem = prop($$props, "cartItem", 7);
|
|
@@ -15290,19 +15371,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15290
15371
|
flushSync();
|
|
15291
15372
|
}
|
|
15292
15373
|
};
|
|
15293
|
-
var fragment = root_2$
|
|
15374
|
+
var fragment = root_2$14();
|
|
15294
15375
|
var span = first_child(fragment);
|
|
15295
15376
|
var text = child(span, true);
|
|
15296
15377
|
reset(span);
|
|
15297
15378
|
var node = sibling(span, 2);
|
|
15298
15379
|
var consequent_1 = ($$anchor) => {
|
|
15299
|
-
var fragment_1 = root_1$
|
|
15380
|
+
var fragment_1 = root_1$19();
|
|
15300
15381
|
var span_1 = first_child(fragment_1);
|
|
15301
15382
|
var text_1 = child(span_1, true);
|
|
15302
15383
|
reset(span_1);
|
|
15303
15384
|
var node_1 = sibling(span_1, 2);
|
|
15304
15385
|
var consequent = ($$anchor) => {
|
|
15305
|
-
var span_2 = root$
|
|
15386
|
+
var span_2 = root$52();
|
|
15306
15387
|
var text_2 = child(span_2, true);
|
|
15307
15388
|
reset(span_2);
|
|
15308
15389
|
template_effect(($0) => set_text(text_2, $0), [() => formatTime(cartItem().time)]);
|
|
@@ -15326,6 +15407,93 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15326
15407
|
}
|
|
15327
15408
|
create_custom_element(Ticket, { cartItem: {} }, [], [], { mode: "open" });
|
|
15328
15409
|
//#endregion
|
|
15410
|
+
//#region src/components/cart/components/itemTitles/Tour.svelte
|
|
15411
|
+
var root$51 = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
|
|
15412
|
+
var root_1$18 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
|
|
15413
|
+
var root_2$13 = /* @__PURE__ */ from_html(`<span class="go-cart-item-custom" data-testid="cart-item-custom"> </span>`);
|
|
15414
|
+
var root_3$9 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span> <span class="go-cart-item-participants" data-testid="cart-item-participants"> </span> <!> <!>`, 1);
|
|
15415
|
+
function Tour$1($$anchor, $$props) {
|
|
15416
|
+
push($$props, true);
|
|
15417
|
+
let cartItem = prop($$props, "cartItem", 7);
|
|
15418
|
+
const product = /* @__PURE__ */ user_derived(() => cartItem().product);
|
|
15419
|
+
const slot = /* @__PURE__ */ user_derived(() => {
|
|
15420
|
+
if (!cartItem().time) return null;
|
|
15421
|
+
try {
|
|
15422
|
+
return {
|
|
15423
|
+
date: formatDate(cartItem().time, {
|
|
15424
|
+
year: "numeric",
|
|
15425
|
+
month: "numeric",
|
|
15426
|
+
day: "numeric"
|
|
15427
|
+
}, shop.locale),
|
|
15428
|
+
time: formatTime(cartItem().time)
|
|
15429
|
+
};
|
|
15430
|
+
} catch {
|
|
15431
|
+
return {
|
|
15432
|
+
date: cartItem().time,
|
|
15433
|
+
time: ""
|
|
15434
|
+
};
|
|
15435
|
+
}
|
|
15436
|
+
});
|
|
15437
|
+
const displayCustom = (value) => value == null ? "" : typeof value === "object" ? JSON.stringify(value) : String(value);
|
|
15438
|
+
const customs = /* @__PURE__ */ user_derived(() => Object.entries(get$2(product).customs ?? {}).filter(([, value]) => value != null && value !== ""));
|
|
15439
|
+
var $$exports = {
|
|
15440
|
+
get cartItem() {
|
|
15441
|
+
return cartItem();
|
|
15442
|
+
},
|
|
15443
|
+
set cartItem($$value) {
|
|
15444
|
+
cartItem($$value);
|
|
15445
|
+
flushSync();
|
|
15446
|
+
}
|
|
15447
|
+
};
|
|
15448
|
+
var fragment = root_3$9();
|
|
15449
|
+
var span = first_child(fragment);
|
|
15450
|
+
var text = child(span, true);
|
|
15451
|
+
reset(span);
|
|
15452
|
+
var span_1 = sibling(span, 2);
|
|
15453
|
+
var text_1 = child(span_1, true);
|
|
15454
|
+
reset(span_1);
|
|
15455
|
+
var node = sibling(span_1, 2);
|
|
15456
|
+
var consequent_1 = ($$anchor) => {
|
|
15457
|
+
var fragment_1 = root_1$18();
|
|
15458
|
+
var span_2 = first_child(fragment_1);
|
|
15459
|
+
var text_2 = child(span_2, true);
|
|
15460
|
+
reset(span_2);
|
|
15461
|
+
var node_1 = sibling(span_2, 2);
|
|
15462
|
+
var consequent = ($$anchor) => {
|
|
15463
|
+
var span_3 = root$51();
|
|
15464
|
+
var text_3 = child(span_3, true);
|
|
15465
|
+
reset(span_3);
|
|
15466
|
+
template_effect(() => set_text(text_3, get$2(slot).time));
|
|
15467
|
+
append($$anchor, span_3);
|
|
15468
|
+
};
|
|
15469
|
+
if_block(node_1, ($$render) => {
|
|
15470
|
+
if (get$2(slot).time) $$render(consequent);
|
|
15471
|
+
});
|
|
15472
|
+
template_effect(() => set_text(text_2, get$2(slot).date));
|
|
15473
|
+
append($$anchor, fragment_1);
|
|
15474
|
+
};
|
|
15475
|
+
if_block(node, ($$render) => {
|
|
15476
|
+
if (get$2(slot)) $$render(consequent_1);
|
|
15477
|
+
});
|
|
15478
|
+
each(sibling(node, 2), 17, () => get$2(customs), ([key, value]) => key, ($$anchor, $$item) => {
|
|
15479
|
+
var $$array = /* @__PURE__ */ user_derived(() => to_array(get$2($$item), 2));
|
|
15480
|
+
let key = () => get$2($$array)[0];
|
|
15481
|
+
let value = () => get$2($$array)[1];
|
|
15482
|
+
var span_4 = root_2$13();
|
|
15483
|
+
var text_4 = child(span_4);
|
|
15484
|
+
reset(span_4);
|
|
15485
|
+
template_effect(($0) => set_text(text_4, `${key() ?? ""}: ${$0 ?? ""}`), [() => displayCustom(value())]);
|
|
15486
|
+
append($$anchor, span_4);
|
|
15487
|
+
});
|
|
15488
|
+
template_effect(($0) => {
|
|
15489
|
+
set_text(text, get$2(product).title);
|
|
15490
|
+
set_text(text_1, $0);
|
|
15491
|
+
}, [() => shop.t("cart.item.participants", { count: get$2(product).participants })]);
|
|
15492
|
+
append($$anchor, fragment);
|
|
15493
|
+
return pop($$exports);
|
|
15494
|
+
}
|
|
15495
|
+
create_custom_element(Tour$1, { cartItem: {} }, [], [], { mode: "open" });
|
|
15496
|
+
//#endregion
|
|
15329
15497
|
//#region src/lib/models/cart/quantityStepper.ts
|
|
15330
15498
|
/** `+`: from below the order minimum jump to it (at least `1`); otherwise step up by one. Capped at `max`. */
|
|
15331
15499
|
function increment(value, { min, max }) {
|
|
@@ -15359,7 +15527,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15359
15527
|
}
|
|
15360
15528
|
//#endregion
|
|
15361
15529
|
//#region src/components/shared/quantityStepper/QuantityStepper.svelte
|
|
15362
|
-
var root$
|
|
15530
|
+
var root$50 = /* @__PURE__ */ from_html(`<div class="go-quantity-stepper" role="group"><button type="button" class="go-quantity-stepper-button go-quantity-stepper-decrement" tabindex="-1"><span aria-hidden="true">−</span></button> <input class="go-quantity-stepper-value" type="text" role="spinbutton" inputmode="numeric" autocomplete="off"/> <button type="button" class="go-quantity-stepper-button go-quantity-stepper-increment" tabindex="-1"><span aria-hidden="true">+</span></button></div>`);
|
|
15363
15531
|
function QuantityStepper($$anchor, $$props) {
|
|
15364
15532
|
const inputId = props_id();
|
|
15365
15533
|
push($$props, true);
|
|
@@ -15474,7 +15642,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15474
15642
|
flushSync();
|
|
15475
15643
|
}
|
|
15476
15644
|
};
|
|
15477
|
-
var div = root$
|
|
15645
|
+
var div = root$50();
|
|
15478
15646
|
var button = child(div);
|
|
15479
15647
|
var input = sibling(button, 2);
|
|
15480
15648
|
remove_input_defaults(input);
|
|
@@ -15544,8 +15712,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15544
15712
|
}
|
|
15545
15713
|
//#endregion
|
|
15546
15714
|
//#region src/components/shared/quantityStepper/QuantityControl.svelte
|
|
15547
|
-
var root$
|
|
15548
|
-
var root_1$
|
|
15715
|
+
var root$49 = /* @__PURE__ */ from_html(`<option> </option>`);
|
|
15716
|
+
var root_1$17 = /* @__PURE__ */ from_html(`<select class="go-quantity-select"></select>`);
|
|
15549
15717
|
function QuantityControl($$anchor, $$props) {
|
|
15550
15718
|
push($$props, true);
|
|
15551
15719
|
/** Current committed quantity. */
|
|
@@ -15650,9 +15818,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15650
15818
|
}
|
|
15651
15819
|
};
|
|
15652
15820
|
var alternate = ($$anchor) => {
|
|
15653
|
-
var select = root_1$
|
|
15821
|
+
var select = root_1$17();
|
|
15654
15822
|
each(select, 21, () => generateQuantityOptions(min(), max(), { floor: deselectable() ? floor() : min() }), (q) => q.value, ($$anchor, q) => {
|
|
15655
|
-
var option = root$
|
|
15823
|
+
var option = root$49();
|
|
15656
15824
|
var text = child(option, true);
|
|
15657
15825
|
reset(option);
|
|
15658
15826
|
var option_value = {};
|
|
@@ -17536,9 +17704,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17536
17704
|
var purify = createDOMPurify();
|
|
17537
17705
|
//#endregion
|
|
17538
17706
|
//#region src/components/cart/components/SubRow.svelte
|
|
17539
|
-
var root$
|
|
17540
|
-
var root_1$
|
|
17541
|
-
var root_2$
|
|
17707
|
+
var root$48 = /* @__PURE__ */ from_html(`<span class="go-sub-ticket-description"></span>`);
|
|
17708
|
+
var root_1$16 = /* @__PURE__ */ from_html(`<span class="go-sub-ticket-quantity"> </span>`);
|
|
17709
|
+
var root_2$12 = /* @__PURE__ */ from_html(`<li><span class="go-sub-ticket-title"> </span> <!> <!></li>`);
|
|
17542
17710
|
function SubRow($$anchor, $$props) {
|
|
17543
17711
|
push($$props, true);
|
|
17544
17712
|
/** Capacity-aware ceiling from CapacityManager.subTicketMaxes; the combination max when absent. */
|
|
@@ -17581,13 +17749,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17581
17749
|
flushSync();
|
|
17582
17750
|
}
|
|
17583
17751
|
};
|
|
17584
|
-
var li = root_2$
|
|
17752
|
+
var li = root_2$12();
|
|
17585
17753
|
var span = child(li);
|
|
17586
17754
|
var text = child(span, true);
|
|
17587
17755
|
reset(span);
|
|
17588
17756
|
var node = sibling(span, 2);
|
|
17589
17757
|
var consequent = ($$anchor) => {
|
|
17590
|
-
var span_1 = root$
|
|
17758
|
+
var span_1 = root$48();
|
|
17591
17759
|
html$2(span_1, () => purify.sanitize(sub().description), true);
|
|
17592
17760
|
reset(span_1);
|
|
17593
17761
|
append($$anchor, span_1);
|
|
@@ -17597,7 +17765,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17597
17765
|
});
|
|
17598
17766
|
var node_1 = sibling(node, 2);
|
|
17599
17767
|
var consequent_1 = ($$anchor) => {
|
|
17600
|
-
var span_2 = root_1$
|
|
17768
|
+
var span_2 = root_1$16();
|
|
17601
17769
|
var text_1 = child(span_2, true);
|
|
17602
17770
|
reset(span_2);
|
|
17603
17771
|
template_effect(() => {
|
|
@@ -17656,12 +17824,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17656
17824
|
}, [], [], { mode: "open" });
|
|
17657
17825
|
//#endregion
|
|
17658
17826
|
//#region src/components/cart/components/Item.svelte
|
|
17659
|
-
var root$
|
|
17660
|
-
var root_1$
|
|
17661
|
-
var root_2$
|
|
17662
|
-
var root_3$
|
|
17663
|
-
var root_4$4 = /* @__PURE__ */ from_html(`<
|
|
17664
|
-
var root_5$2 = /* @__PURE__ */ from_html(`<
|
|
17827
|
+
var root$47 = /* @__PURE__ */ from_html(`<s class="go-cart-item-price-original"> </s> <span class="go-cart-item-price-discounted"> </span>`, 1);
|
|
17828
|
+
var root_1$15 = /* @__PURE__ */ from_html(`<span class="go-cart-item-price-discounted"> </span>`);
|
|
17829
|
+
var root_2$11 = /* @__PURE__ */ from_html(`<span data-testid="cart-item-participant-count"> </span>`);
|
|
17830
|
+
var root_3$8 = /* @__PURE__ */ from_html(`<span> </span>`);
|
|
17831
|
+
var root_4$4 = /* @__PURE__ */ from_html(`<li class="go-cart-item-remove"><button class="go-cart-remove">⨉</button></li>`);
|
|
17832
|
+
var root_5$2 = /* @__PURE__ */ from_html(`<ul class="go-sub-tickets" role="list"></ul>`);
|
|
17833
|
+
var root_6$2 = /* @__PURE__ */ from_html(`<article class="go-cart-item-content"><ul><li class="go-cart-item-title-container"><!></li> <li class="go-cart-item-price"><!></li> <li class="go-cart-item-count"><!></li> <!> <li class="go-cart-item-sum"> </li></ul></article> <!>`, 1);
|
|
17665
17834
|
function Item$1($$anchor, $$props) {
|
|
17666
17835
|
push($$props, true);
|
|
17667
17836
|
let displayItem = prop($$props, "displayItem", 7), displayCart = prop($$props, "displayCart", 7), preview = prop($$props, "preview", 7);
|
|
@@ -17726,8 +17895,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17726
17895
|
};
|
|
17727
17896
|
var fragment = comment();
|
|
17728
17897
|
var node = first_child(fragment);
|
|
17729
|
-
var
|
|
17730
|
-
var fragment_1 =
|
|
17898
|
+
var consequent_9 = ($$anchor) => {
|
|
17899
|
+
var fragment_1 = root_6$2();
|
|
17731
17900
|
var article = first_child(fragment_1);
|
|
17732
17901
|
var ul = child(article);
|
|
17733
17902
|
var li = child(ul);
|
|
@@ -17747,17 +17916,23 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17747
17916
|
return displayItem();
|
|
17748
17917
|
} });
|
|
17749
17918
|
};
|
|
17919
|
+
var consequent_3 = ($$anchor) => {
|
|
17920
|
+
Tour$1($$anchor, { get cartItem() {
|
|
17921
|
+
return displayItem();
|
|
17922
|
+
} });
|
|
17923
|
+
};
|
|
17750
17924
|
if_block(node_1, ($$render) => {
|
|
17751
17925
|
if (displayItem().product.type === "Ticket") $$render(consequent);
|
|
17752
17926
|
else if (displayItem().product.type === "Event") $$render(consequent_1, 1);
|
|
17753
17927
|
else if (displayItem().product.type === "Coupon") $$render(consequent_2, 2);
|
|
17928
|
+
else if (displayItem().product.type === "Tour") $$render(consequent_3, 3);
|
|
17754
17929
|
});
|
|
17755
17930
|
reset(li);
|
|
17756
17931
|
var li_1 = sibling(li, 2);
|
|
17757
17932
|
var node_2 = child(li_1);
|
|
17758
|
-
var
|
|
17759
|
-
var
|
|
17760
|
-
var s = first_child(
|
|
17933
|
+
var consequent_4 = ($$anchor) => {
|
|
17934
|
+
var fragment_6 = root$47();
|
|
17935
|
+
var s = first_child(fragment_6);
|
|
17761
17936
|
var text = child(s, true);
|
|
17762
17937
|
reset(s);
|
|
17763
17938
|
var span = sibling(s, 2);
|
|
@@ -17767,29 +17942,36 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17767
17942
|
set_text(text, $0);
|
|
17768
17943
|
set_text(text_1, $1);
|
|
17769
17944
|
}, [() => formatCurrency(displayItem().display.originalPrice), () => formatCurrency(displayItem().final_price_cents)]);
|
|
17770
|
-
append($$anchor,
|
|
17945
|
+
append($$anchor, fragment_6);
|
|
17771
17946
|
};
|
|
17772
17947
|
var alternate = ($$anchor) => {
|
|
17773
|
-
var span_1 = root_1$
|
|
17948
|
+
var span_1 = root_1$15();
|
|
17774
17949
|
var text_2 = child(span_1, true);
|
|
17775
17950
|
reset(span_1);
|
|
17776
17951
|
template_effect(($0) => set_text(text_2, $0), [() => formatCurrency(displayItem().final_price_cents)]);
|
|
17777
17952
|
append($$anchor, span_1);
|
|
17778
17953
|
};
|
|
17779
17954
|
if_block(node_2, ($$render) => {
|
|
17780
|
-
if (displayItem().display?.discounted) $$render(
|
|
17955
|
+
if (displayItem().display?.discounted) $$render(consequent_4);
|
|
17781
17956
|
else $$render(alternate, -1);
|
|
17782
17957
|
});
|
|
17783
17958
|
reset(li_1);
|
|
17784
17959
|
var li_2 = sibling(li_1, 2);
|
|
17785
17960
|
var node_3 = child(li_2);
|
|
17786
|
-
var
|
|
17787
|
-
var span_2 = root_2$
|
|
17961
|
+
var consequent_5 = ($$anchor) => {
|
|
17962
|
+
var span_2 = root_2$11();
|
|
17788
17963
|
var text_3 = child(span_2, true);
|
|
17789
17964
|
reset(span_2);
|
|
17790
|
-
template_effect(() => set_text(text_3, displayItem().
|
|
17965
|
+
template_effect(() => set_text(text_3, displayItem().product.participants));
|
|
17791
17966
|
append($$anchor, span_2);
|
|
17792
17967
|
};
|
|
17968
|
+
var consequent_6 = ($$anchor) => {
|
|
17969
|
+
var span_3 = root_3$8();
|
|
17970
|
+
var text_4 = child(span_3, true);
|
|
17971
|
+
reset(span_3);
|
|
17972
|
+
template_effect(() => set_text(text_4, displayItem().quantity));
|
|
17973
|
+
append($$anchor, span_3);
|
|
17974
|
+
};
|
|
17793
17975
|
var alternate_1 = ($$anchor) => {
|
|
17794
17976
|
{
|
|
17795
17977
|
let $0 = /* @__PURE__ */ user_derived(() => displayItem().quantity ?? 0);
|
|
@@ -17812,13 +17994,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17812
17994
|
}
|
|
17813
17995
|
};
|
|
17814
17996
|
if_block(node_3, ($$render) => {
|
|
17815
|
-
if (
|
|
17997
|
+
if (displayItem().product.type === "Tour") $$render(consequent_5);
|
|
17998
|
+
else if (preview()) $$render(consequent_6, 1);
|
|
17816
17999
|
else $$render(alternate_1, -1);
|
|
17817
18000
|
});
|
|
17818
18001
|
reset(li_2);
|
|
17819
18002
|
var node_4 = sibling(li_2, 2);
|
|
17820
|
-
var
|
|
17821
|
-
var li_3 =
|
|
18003
|
+
var consequent_7 = ($$anchor) => {
|
|
18004
|
+
var li_3 = root_4$4();
|
|
17822
18005
|
var button = child(li_3);
|
|
17823
18006
|
reset(li_3);
|
|
17824
18007
|
template_effect(($0) => set_attribute(button, "aria-label", $0), [() => shop.t("cart.item.remove")]);
|
|
@@ -17826,16 +18009,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17826
18009
|
append($$anchor, li_3);
|
|
17827
18010
|
};
|
|
17828
18011
|
if_block(node_4, ($$render) => {
|
|
17829
|
-
if (!preview()) $$render(
|
|
18012
|
+
if (!preview()) $$render(consequent_7);
|
|
17830
18013
|
});
|
|
17831
18014
|
var li_4 = sibling(node_4, 2);
|
|
17832
|
-
var
|
|
18015
|
+
var text_5 = child(li_4, true);
|
|
17833
18016
|
reset(li_4);
|
|
17834
18017
|
reset(ul);
|
|
17835
18018
|
reset(article);
|
|
17836
18019
|
var node_5 = sibling(article, 2);
|
|
17837
|
-
var
|
|
17838
|
-
var ul_1 =
|
|
18020
|
+
var consequent_8 = ($$anchor) => {
|
|
18021
|
+
var ul_1 = root_5$2();
|
|
17839
18022
|
each(ul_1, 21, () => subTicketDefs(get$2(mantleProduct)), (sub) => sub.id, ($$anchor, sub) => {
|
|
17840
18023
|
{
|
|
17841
18024
|
let $0 = /* @__PURE__ */ user_derived(() => displayItem().mantle?.composition?.[get$2(sub).id] ?? 0);
|
|
@@ -17861,13 +18044,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17861
18044
|
append($$anchor, ul_1);
|
|
17862
18045
|
};
|
|
17863
18046
|
if_block(node_5, ($$render) => {
|
|
17864
|
-
if (get$2(mantleProduct)) $$render(
|
|
18047
|
+
if (get$2(mantleProduct)) $$render(consequent_8);
|
|
17865
18048
|
});
|
|
17866
|
-
template_effect(($0) => set_text(
|
|
18049
|
+
template_effect(($0) => set_text(text_5, $0), [() => formatCurrency(displayItem().total_price_cents)]);
|
|
17867
18050
|
append($$anchor, fragment_1);
|
|
17868
18051
|
};
|
|
17869
18052
|
if_block(node, ($$render) => {
|
|
17870
|
-
if (get$2(capacity)) $$render(
|
|
18053
|
+
if (get$2(capacity)) $$render(consequent_9);
|
|
17871
18054
|
});
|
|
17872
18055
|
append($$anchor, fragment);
|
|
17873
18056
|
return pop($$exports);
|
|
@@ -17880,9 +18063,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17880
18063
|
}, [], [], { mode: "open" });
|
|
17881
18064
|
//#endregion
|
|
17882
18065
|
//#region src/components/cart/components/CartItems.svelte
|
|
17883
|
-
var root$
|
|
17884
|
-
var root_1$
|
|
17885
|
-
var root_2$
|
|
18066
|
+
var root$46 = /* @__PURE__ */ from_html(`<li class="go-cart-header-remove"></li>`);
|
|
18067
|
+
var root_1$14 = /* @__PURE__ */ from_html(`<li class="go-cart-item"><!></li>`);
|
|
18068
|
+
var root_2$10 = /* @__PURE__ */ from_html(`<ol data-testid="cart-items"><li class="go-cart-header"><ul><li class="go-cart-header-title"> </li> <li class="go-cart-header-price"> </li> <li class="go-cart-header-count"> </li> <!> <li class="go-cart-header-sum"> </li></ul></li> <!></ol>`);
|
|
17886
18069
|
function CartItems($$anchor, $$props) {
|
|
17887
18070
|
push($$props, true);
|
|
17888
18071
|
const _details = getCartDetails($$props.$$host);
|
|
@@ -17890,7 +18073,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17890
18073
|
var fragment = comment();
|
|
17891
18074
|
var node = first_child(fragment);
|
|
17892
18075
|
var consequent_1 = ($$anchor) => {
|
|
17893
|
-
var ol = root_2$
|
|
18076
|
+
var ol = root_2$10();
|
|
17894
18077
|
var li = child(ol);
|
|
17895
18078
|
var ul = child(li);
|
|
17896
18079
|
var li_1 = child(ul);
|
|
@@ -17904,7 +18087,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17904
18087
|
reset(li_3);
|
|
17905
18088
|
var node_1 = sibling(li_3, 2);
|
|
17906
18089
|
var consequent = ($$anchor) => {
|
|
17907
|
-
append($$anchor, root$
|
|
18090
|
+
append($$anchor, root$46());
|
|
17908
18091
|
};
|
|
17909
18092
|
if_block(node_1, ($$render) => {
|
|
17910
18093
|
if (!get$2(details).preview) $$render(consequent);
|
|
@@ -17915,7 +18098,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17915
18098
|
reset(ul);
|
|
17916
18099
|
reset(li);
|
|
17917
18100
|
each(sibling(li, 2), 17, () => get$2(details).displayCart.items, (item) => item.uuid, ($$anchor, item) => {
|
|
17918
|
-
var li_6 = root_1$
|
|
18101
|
+
var li_6 = root_1$14();
|
|
17919
18102
|
Item$1(child(li_6), {
|
|
17920
18103
|
get displayItem() {
|
|
17921
18104
|
return get$2(item);
|
|
@@ -17953,9 +18136,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17953
18136
|
customElements.define("go-cart-items", create_custom_element(CartItems, {}, [], []));
|
|
17954
18137
|
//#endregion
|
|
17955
18138
|
//#region src/components/cart/components/CartCoupons.svelte
|
|
17956
|
-
var root$
|
|
17957
|
-
var root_1$
|
|
17958
|
-
var root_2$
|
|
18139
|
+
var root$45 = /* @__PURE__ */ from_html(`<li class="go-cart-coupon-remove-cell"><button class="go-cart-remove go-cart-coupon-remove">⨉</button></li>`);
|
|
18140
|
+
var root_1$13 = /* @__PURE__ */ from_html(`<li><article class="go-cart-coupon-content"><ul><li class="go-cart-coupon-code"> </li> <!></ul></article></li>`);
|
|
18141
|
+
var root_2$9 = /* @__PURE__ */ from_html(`<ol data-testid="cart-coupons"></ol>`);
|
|
17959
18142
|
function CartCoupons($$anchor, $$props) {
|
|
17960
18143
|
push($$props, true);
|
|
17961
18144
|
const _details = getCartDetails($$props.$$host);
|
|
@@ -17963,9 +18146,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17963
18146
|
var fragment = comment();
|
|
17964
18147
|
var node = first_child(fragment);
|
|
17965
18148
|
var consequent_1 = ($$anchor) => {
|
|
17966
|
-
var ol = root_2$
|
|
18149
|
+
var ol = root_2$9();
|
|
17967
18150
|
each(ol, 21, () => get$2(details).displayCart.coupons, (coupon) => coupon.code, ($$anchor, coupon) => {
|
|
17968
|
-
var li = root_1$
|
|
18151
|
+
var li = root_1$13();
|
|
17969
18152
|
let classes;
|
|
17970
18153
|
var article = child(li);
|
|
17971
18154
|
var ul = child(article);
|
|
@@ -17974,7 +18157,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17974
18157
|
reset(li_1);
|
|
17975
18158
|
var node_1 = sibling(li_1, 2);
|
|
17976
18159
|
var consequent = ($$anchor) => {
|
|
17977
|
-
var li_2 = root$
|
|
18160
|
+
var li_2 = root$45();
|
|
17978
18161
|
var button = child(li_2);
|
|
17979
18162
|
reset(li_2);
|
|
17980
18163
|
template_effect(($0) => set_attribute(button, "aria-label", $0), [() => shop.t("cart.coupons.remove")]);
|
|
@@ -18006,7 +18189,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18006
18189
|
customElements.define("go-cart-coupons", create_custom_element(CartCoupons, {}, [], []));
|
|
18007
18190
|
//#endregion
|
|
18008
18191
|
//#region src/components/cart/components/CartTotalAmount.svelte
|
|
18009
|
-
var root$
|
|
18192
|
+
var root$44 = /* @__PURE__ */ from_html(`<span class="go-cart-total-amount" data-testid="cart-total-amount"> </span>`);
|
|
18010
18193
|
function CartTotalAmount($$anchor, $$props) {
|
|
18011
18194
|
push($$props, true);
|
|
18012
18195
|
const _details = getCartDetails($$props.$$host);
|
|
@@ -18014,7 +18197,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18014
18197
|
var fragment = comment();
|
|
18015
18198
|
var node = first_child(fragment);
|
|
18016
18199
|
var consequent = ($$anchor) => {
|
|
18017
|
-
var span = root$
|
|
18200
|
+
var span = root$44();
|
|
18018
18201
|
var text = child(span, true);
|
|
18019
18202
|
reset(span);
|
|
18020
18203
|
template_effect(($0) => set_text(text, $0), [() => formatCurrency(get$2(details).totalPriceCents)]);
|
|
@@ -18083,7 +18266,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18083
18266
|
} }, [], []));
|
|
18084
18267
|
//#endregion
|
|
18085
18268
|
//#region src/components/cart/components/CartSubtotalAmount.svelte
|
|
18086
|
-
var root$
|
|
18269
|
+
var root$43 = /* @__PURE__ */ from_html(`<span class="go-cart-subtotal-amount" data-testid="cart-subtotal-amount"> </span>`);
|
|
18087
18270
|
function CartSubtotalAmount($$anchor, $$props) {
|
|
18088
18271
|
push($$props, true);
|
|
18089
18272
|
const _details = getCartDetails($$props.$$host);
|
|
@@ -18091,7 +18274,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18091
18274
|
var fragment = comment();
|
|
18092
18275
|
var node = first_child(fragment);
|
|
18093
18276
|
var consequent = ($$anchor) => {
|
|
18094
|
-
var span = root$
|
|
18277
|
+
var span = root$43();
|
|
18095
18278
|
var text = child(span, true);
|
|
18096
18279
|
reset(span);
|
|
18097
18280
|
template_effect(($0) => set_text(text, $0), [() => formatCurrency(get$2(details).subtotalPriceCents)]);
|
|
@@ -18106,7 +18289,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18106
18289
|
customElements.define("go-cart-subtotal-amount", create_custom_element(CartSubtotalAmount, {}, [], []));
|
|
18107
18290
|
//#endregion
|
|
18108
18291
|
//#region src/components/cart/components/CartDiscountedAmount.svelte
|
|
18109
|
-
var root$
|
|
18292
|
+
var root$42 = /* @__PURE__ */ from_html(`<span class="go-cart-discounted-amount" data-testid="cart-discounted-amount"><span class="go-cart-discounted-amount-sign">−</span> </span>`);
|
|
18110
18293
|
function CartDiscountedAmount($$anchor, $$props) {
|
|
18111
18294
|
push($$props, true);
|
|
18112
18295
|
const _details = getCartDetails($$props.$$host);
|
|
@@ -18114,7 +18297,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18114
18297
|
var fragment = comment();
|
|
18115
18298
|
var node = first_child(fragment);
|
|
18116
18299
|
var consequent = ($$anchor) => {
|
|
18117
|
-
var span = root$
|
|
18300
|
+
var span = root$42();
|
|
18118
18301
|
var text = sibling(child(span), 1, true);
|
|
18119
18302
|
reset(span);
|
|
18120
18303
|
template_effect(($0) => set_text(text, $0), [() => formatCurrency(get$2(details).discountedAmountCents)]);
|
|
@@ -18267,7 +18450,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18267
18450
|
}
|
|
18268
18451
|
//#endregion
|
|
18269
18452
|
//#region src/components/couponRedemption/CouponRedemption.svelte
|
|
18270
|
-
var root$
|
|
18453
|
+
var root$41 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
|
|
18271
18454
|
function CouponRedemption($$anchor, $$props) {
|
|
18272
18455
|
push($$props, true);
|
|
18273
18456
|
Forms.defineForm({
|
|
@@ -18303,7 +18486,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18303
18486
|
return runRedeem(form);
|
|
18304
18487
|
}
|
|
18305
18488
|
var $$exports = { flush };
|
|
18306
|
-
var go_form = root$
|
|
18489
|
+
var go_form = root$41();
|
|
18307
18490
|
set_custom_element_data(go_form, "formId", "couponRedemption");
|
|
18308
18491
|
event("submit", go_form, redeem$1);
|
|
18309
18492
|
append($$anchor, go_form);
|
|
@@ -18359,8 +18542,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18359
18542
|
var goDonation = new GoDonation();
|
|
18360
18543
|
//#endregion
|
|
18361
18544
|
//#region src/components/donations/components/DonationCampaign.svelte
|
|
18362
|
-
var root$
|
|
18363
|
-
var root_1$
|
|
18545
|
+
var root$40 = /* @__PURE__ */ from_html(`<img alt="logo"/>`);
|
|
18546
|
+
var root_1$12 = /* @__PURE__ */ from_html(`<div role="button" tabindex="0"><div class="donation-image"><!></div> <div class="donation-info"><p class="donation-info-title"> </p> <p class="donation-info-description"> </p></div></div>`);
|
|
18364
18547
|
function DonationCampaign($$anchor, $$props) {
|
|
18365
18548
|
push($$props, true);
|
|
18366
18549
|
let campaign = prop($$props, "campaign", 7);
|
|
@@ -18374,12 +18557,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18374
18557
|
flushSync();
|
|
18375
18558
|
}
|
|
18376
18559
|
};
|
|
18377
|
-
var div = root_1$
|
|
18560
|
+
var div = root_1$12();
|
|
18378
18561
|
let classes;
|
|
18379
18562
|
var div_1 = child(div);
|
|
18380
18563
|
var node = child(div_1);
|
|
18381
18564
|
var consequent = ($$anchor) => {
|
|
18382
|
-
var img = root$
|
|
18565
|
+
var img = root$40();
|
|
18383
18566
|
template_effect(($0) => set_attribute(img, "src", $0), [() => campaign().picture.thumbnail.replace("thumbnail", "article_3x2")]);
|
|
18384
18567
|
append($$anchor, img);
|
|
18385
18568
|
};
|
|
@@ -18450,9 +18633,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18450
18633
|
}
|
|
18451
18634
|
//#endregion
|
|
18452
18635
|
//#region src/components/donations/components/DonationSelector.svelte
|
|
18453
|
-
var root$
|
|
18454
|
-
var root_1$
|
|
18455
|
-
var root_2$
|
|
18636
|
+
var root$39 = /* @__PURE__ */ from_html(`<button> </button>`);
|
|
18637
|
+
var root_1$11 = /* @__PURE__ */ from_html(`<form id="donationForm" action="" novalidate=""><div class="donation-custom form-group"><label for="donation-custom-amount"> </label> <input class="form-control" id="donation-custom-amount" type="number" min="1"/></div></form>`);
|
|
18638
|
+
var root_2$8 = /* @__PURE__ */ from_html(`<div class="donation-selection"><h3> </h3> <div class="donation-options"></div> <!></div>`);
|
|
18456
18639
|
function DonationSelector($$anchor, $$props) {
|
|
18457
18640
|
push($$props, true);
|
|
18458
18641
|
const guestMaxLimit = goDonation.campaign?.guest_limit / 100;
|
|
@@ -18469,13 +18652,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18469
18652
|
form.reportValidity();
|
|
18470
18653
|
}
|
|
18471
18654
|
}
|
|
18472
|
-
var div = root_2$
|
|
18655
|
+
var div = root_2$8();
|
|
18473
18656
|
var h3 = child(div);
|
|
18474
18657
|
var text = child(h3, true);
|
|
18475
18658
|
reset(h3);
|
|
18476
18659
|
var div_1 = sibling(h3, 2);
|
|
18477
18660
|
each(div_1, 20, () => goDonation.campaign?.options, (option) => option, ($$anchor, option) => {
|
|
18478
|
-
var button = root$
|
|
18661
|
+
var button = root$39();
|
|
18479
18662
|
let classes;
|
|
18480
18663
|
var text_1 = child(button, true);
|
|
18481
18664
|
reset(button);
|
|
@@ -18489,7 +18672,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18489
18672
|
reset(div_1);
|
|
18490
18673
|
var node = sibling(div_1, 2);
|
|
18491
18674
|
var consequent = ($$anchor) => {
|
|
18492
|
-
var form_1 = root_1$
|
|
18675
|
+
var form_1 = root_1$11();
|
|
18493
18676
|
var div_2 = child(form_1);
|
|
18494
18677
|
var label = child(div_2);
|
|
18495
18678
|
var text_2 = child(label, true);
|
|
@@ -18519,7 +18702,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18519
18702
|
create_custom_element(DonationSelector, {}, [], [], { mode: "open" });
|
|
18520
18703
|
//#endregion
|
|
18521
18704
|
//#region src/components/donations/components/Donations.svelte
|
|
18522
|
-
var root$
|
|
18705
|
+
var root$38 = /* @__PURE__ */ from_html(`<div class="go-donations-list"><!> <!> <div class="donation-actions"><button class="btn btn-default"> </button> <button class="btn btn-primary"> </button></div></div>`);
|
|
18523
18706
|
function Donations($$anchor, $$props) {
|
|
18524
18707
|
push($$props, false);
|
|
18525
18708
|
onMount(() => {
|
|
@@ -18529,7 +18712,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18529
18712
|
var fragment = comment();
|
|
18530
18713
|
var node = first_child(fragment);
|
|
18531
18714
|
var consequent_1 = ($$anchor) => {
|
|
18532
|
-
var div = root$
|
|
18715
|
+
var div = root$38();
|
|
18533
18716
|
var node_1 = child(div);
|
|
18534
18717
|
each(node_1, 1, () => shop?.donations?.campaigns, (campaign) => campaign.id, ($$anchor, campaign) => {
|
|
18535
18718
|
DonationCampaign($$anchor, { get campaign() {
|
|
@@ -24368,7 +24551,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24368
24551
|
"monthFormat",
|
|
24369
24552
|
"yearFormat"
|
|
24370
24553
|
]);
|
|
24371
|
-
var root$
|
|
24554
|
+
var root$37 = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
24372
24555
|
function Calendar$1($$anchor, $$props) {
|
|
24373
24556
|
push($$props, true);
|
|
24374
24557
|
let child$18 = 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), readonly = 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, rest_excludes$25);
|
|
@@ -24640,7 +24823,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24640
24823
|
append($$anchor, fragment_1);
|
|
24641
24824
|
};
|
|
24642
24825
|
var alternate = ($$anchor) => {
|
|
24643
|
-
var div = root$
|
|
24826
|
+
var div = root$37();
|
|
24644
24827
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
24645
24828
|
snippet(child(div), () => children() ?? noop$1, () => rootState.snippetProps);
|
|
24646
24829
|
reset(div);
|
|
@@ -24695,7 +24878,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24695
24878
|
"ref",
|
|
24696
24879
|
"id"
|
|
24697
24880
|
]);
|
|
24698
|
-
var root$
|
|
24881
|
+
var root$36 = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
24699
24882
|
function Calendar_day($$anchor, $$props) {
|
|
24700
24883
|
const uid = props_id();
|
|
24701
24884
|
push($$props, true);
|
|
@@ -24750,7 +24933,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24750
24933
|
append($$anchor, fragment_1);
|
|
24751
24934
|
};
|
|
24752
24935
|
var alternate_1 = ($$anchor) => {
|
|
24753
|
-
var div = root$
|
|
24936
|
+
var div = root$36();
|
|
24754
24937
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
24755
24938
|
var node_2 = child(div);
|
|
24756
24939
|
var consequent_1 = ($$anchor) => {
|
|
@@ -24795,7 +24978,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24795
24978
|
"ref",
|
|
24796
24979
|
"id"
|
|
24797
24980
|
]);
|
|
24798
|
-
var root$
|
|
24981
|
+
var root$35 = /* @__PURE__ */ from_html(`<table><!></table>`);
|
|
24799
24982
|
function Calendar_grid($$anchor, $$props) {
|
|
24800
24983
|
const uid = props_id();
|
|
24801
24984
|
push($$props, true);
|
|
@@ -24843,7 +25026,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24843
25026
|
append($$anchor, fragment_1);
|
|
24844
25027
|
};
|
|
24845
25028
|
var alternate = ($$anchor) => {
|
|
24846
|
-
var table = root$
|
|
25029
|
+
var table = root$35();
|
|
24847
25030
|
attribute_effect(table, () => ({ ...get$2(mergedProps) }));
|
|
24848
25031
|
snippet(child(table), () => children() ?? noop$1);
|
|
24849
25032
|
reset(table);
|
|
@@ -24874,7 +25057,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24874
25057
|
"ref",
|
|
24875
25058
|
"id"
|
|
24876
25059
|
]);
|
|
24877
|
-
var root$
|
|
25060
|
+
var root$34 = /* @__PURE__ */ from_html(`<tbody><!></tbody>`);
|
|
24878
25061
|
function Calendar_grid_body($$anchor, $$props) {
|
|
24879
25062
|
const uid = props_id();
|
|
24880
25063
|
push($$props, true);
|
|
@@ -24922,7 +25105,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24922
25105
|
append($$anchor, fragment_1);
|
|
24923
25106
|
};
|
|
24924
25107
|
var alternate = ($$anchor) => {
|
|
24925
|
-
var tbody = root$
|
|
25108
|
+
var tbody = root$34();
|
|
24926
25109
|
attribute_effect(tbody, () => ({ ...get$2(mergedProps) }));
|
|
24927
25110
|
snippet(child(tbody), () => children() ?? noop$1);
|
|
24928
25111
|
reset(tbody);
|
|
@@ -24955,7 +25138,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24955
25138
|
"date",
|
|
24956
25139
|
"month"
|
|
24957
25140
|
]);
|
|
24958
|
-
var root$
|
|
25141
|
+
var root$33 = /* @__PURE__ */ from_html(`<td><!></td>`);
|
|
24959
25142
|
function Calendar_cell($$anchor, $$props) {
|
|
24960
25143
|
const uid = props_id();
|
|
24961
25144
|
push($$props, true);
|
|
@@ -25026,7 +25209,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25026
25209
|
append($$anchor, fragment_1);
|
|
25027
25210
|
};
|
|
25028
25211
|
var alternate = ($$anchor) => {
|
|
25029
|
-
var td = root$
|
|
25212
|
+
var td = root$33();
|
|
25030
25213
|
attribute_effect(td, () => ({ ...get$2(mergedProps) }));
|
|
25031
25214
|
snippet(child(td), () => children() ?? noop$1, () => cellState.snippetProps);
|
|
25032
25215
|
reset(td);
|
|
@@ -25059,7 +25242,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25059
25242
|
"ref",
|
|
25060
25243
|
"id"
|
|
25061
25244
|
]);
|
|
25062
|
-
var root$
|
|
25245
|
+
var root$32 = /* @__PURE__ */ from_html(`<thead><!></thead>`);
|
|
25063
25246
|
function Calendar_grid_head($$anchor, $$props) {
|
|
25064
25247
|
const uid = props_id();
|
|
25065
25248
|
push($$props, true);
|
|
@@ -25107,7 +25290,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25107
25290
|
append($$anchor, fragment_1);
|
|
25108
25291
|
};
|
|
25109
25292
|
var alternate = ($$anchor) => {
|
|
25110
|
-
var thead = root$
|
|
25293
|
+
var thead = root$32();
|
|
25111
25294
|
attribute_effect(thead, () => ({ ...get$2(mergedProps) }));
|
|
25112
25295
|
snippet(child(thead), () => children() ?? noop$1);
|
|
25113
25296
|
reset(thead);
|
|
@@ -25138,7 +25321,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25138
25321
|
"ref",
|
|
25139
25322
|
"id"
|
|
25140
25323
|
]);
|
|
25141
|
-
var root$
|
|
25324
|
+
var root$31 = /* @__PURE__ */ from_html(`<th><!></th>`);
|
|
25142
25325
|
function Calendar_head_cell($$anchor, $$props) {
|
|
25143
25326
|
const uid = props_id();
|
|
25144
25327
|
push($$props, true);
|
|
@@ -25186,7 +25369,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25186
25369
|
append($$anchor, fragment_1);
|
|
25187
25370
|
};
|
|
25188
25371
|
var alternate = ($$anchor) => {
|
|
25189
|
-
var th = root$
|
|
25372
|
+
var th = root$31();
|
|
25190
25373
|
attribute_effect(th, () => ({ ...get$2(mergedProps) }));
|
|
25191
25374
|
snippet(child(th), () => children() ?? noop$1);
|
|
25192
25375
|
reset(th);
|
|
@@ -25217,7 +25400,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25217
25400
|
"ref",
|
|
25218
25401
|
"id"
|
|
25219
25402
|
]);
|
|
25220
|
-
var root$
|
|
25403
|
+
var root$30 = /* @__PURE__ */ from_html(`<tr><!></tr>`);
|
|
25221
25404
|
function Calendar_grid_row($$anchor, $$props) {
|
|
25222
25405
|
const uid = props_id();
|
|
25223
25406
|
push($$props, true);
|
|
@@ -25265,7 +25448,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25265
25448
|
append($$anchor, fragment_1);
|
|
25266
25449
|
};
|
|
25267
25450
|
var alternate = ($$anchor) => {
|
|
25268
|
-
var tr = root$
|
|
25451
|
+
var tr = root$30();
|
|
25269
25452
|
attribute_effect(tr, () => ({ ...get$2(mergedProps) }));
|
|
25270
25453
|
snippet(child(tr), () => children() ?? noop$1);
|
|
25271
25454
|
reset(tr);
|
|
@@ -25296,7 +25479,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25296
25479
|
"ref",
|
|
25297
25480
|
"id"
|
|
25298
25481
|
]);
|
|
25299
|
-
var root$
|
|
25482
|
+
var root$29 = /* @__PURE__ */ from_html(`<header><!></header>`);
|
|
25300
25483
|
function Calendar_header($$anchor, $$props) {
|
|
25301
25484
|
const uid = props_id();
|
|
25302
25485
|
push($$props, true);
|
|
@@ -25344,7 +25527,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25344
25527
|
append($$anchor, fragment_1);
|
|
25345
25528
|
};
|
|
25346
25529
|
var alternate = ($$anchor) => {
|
|
25347
|
-
var header = root$
|
|
25530
|
+
var header = root$29();
|
|
25348
25531
|
attribute_effect(header, () => ({ ...get$2(mergedProps) }));
|
|
25349
25532
|
snippet(child(header), () => children() ?? noop$1);
|
|
25350
25533
|
reset(header);
|
|
@@ -25375,7 +25558,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25375
25558
|
"ref",
|
|
25376
25559
|
"id"
|
|
25377
25560
|
]);
|
|
25378
|
-
var root$
|
|
25561
|
+
var root$28 = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
25379
25562
|
function Calendar_heading($$anchor, $$props) {
|
|
25380
25563
|
const uid = props_id();
|
|
25381
25564
|
push($$props, true);
|
|
@@ -25426,7 +25609,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25426
25609
|
append($$anchor, fragment_1);
|
|
25427
25610
|
};
|
|
25428
25611
|
var alternate_1 = ($$anchor) => {
|
|
25429
|
-
var div = root$
|
|
25612
|
+
var div = root$28();
|
|
25430
25613
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
25431
25614
|
var node_2 = child(div);
|
|
25432
25615
|
var consequent_1 = ($$anchor) => {
|
|
@@ -25472,7 +25655,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25472
25655
|
"ref",
|
|
25473
25656
|
"tabindex"
|
|
25474
25657
|
]);
|
|
25475
|
-
var root$
|
|
25658
|
+
var root$27 = /* @__PURE__ */ from_html(`<button><!></button>`);
|
|
25476
25659
|
function Calendar_next_button($$anchor, $$props) {
|
|
25477
25660
|
const uid = props_id();
|
|
25478
25661
|
push($$props, true);
|
|
@@ -25527,7 +25710,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25527
25710
|
append($$anchor, fragment_1);
|
|
25528
25711
|
};
|
|
25529
25712
|
var alternate = ($$anchor) => {
|
|
25530
|
-
var button = root$
|
|
25713
|
+
var button = root$27();
|
|
25531
25714
|
attribute_effect(button, () => ({ ...get$2(mergedProps) }));
|
|
25532
25715
|
snippet(child(button), () => children() ?? noop$1);
|
|
25533
25716
|
reset(button);
|
|
@@ -25560,7 +25743,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25560
25743
|
"ref",
|
|
25561
25744
|
"tabindex"
|
|
25562
25745
|
]);
|
|
25563
|
-
var root$
|
|
25746
|
+
var root$26 = /* @__PURE__ */ from_html(`<button><!></button>`);
|
|
25564
25747
|
function Calendar_prev_button($$anchor, $$props) {
|
|
25565
25748
|
const uid = props_id();
|
|
25566
25749
|
push($$props, true);
|
|
@@ -25615,7 +25798,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25615
25798
|
append($$anchor, fragment_1);
|
|
25616
25799
|
};
|
|
25617
25800
|
var alternate = ($$anchor) => {
|
|
25618
|
-
var button = root$
|
|
25801
|
+
var button = root$26();
|
|
25619
25802
|
attribute_effect(button, () => ({ ...get$2(mergedProps) }));
|
|
25620
25803
|
snippet(child(button), () => children() ?? noop$1);
|
|
25621
25804
|
reset(button);
|
|
@@ -25644,7 +25827,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25644
25827
|
"$$host",
|
|
25645
25828
|
"value"
|
|
25646
25829
|
]);
|
|
25647
|
-
var root$
|
|
25830
|
+
var root$25 = /* @__PURE__ */ from_html(`<input/>`);
|
|
25648
25831
|
function Hidden_input($$anchor, $$props) {
|
|
25649
25832
|
push($$props, true);
|
|
25650
25833
|
let value = prop($$props, "value", 15), restProps = /* @__PURE__ */ rest_props($$props, rest_excludes$13);
|
|
@@ -25670,7 +25853,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25670
25853
|
var fragment = comment();
|
|
25671
25854
|
var node = first_child(fragment);
|
|
25672
25855
|
var consequent = ($$anchor) => {
|
|
25673
|
-
var input = root$
|
|
25856
|
+
var input = root$25();
|
|
25674
25857
|
attribute_effect(input, () => ({
|
|
25675
25858
|
...get$2(mergedProps),
|
|
25676
25859
|
value: value()
|
|
@@ -25678,7 +25861,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25678
25861
|
append($$anchor, input);
|
|
25679
25862
|
};
|
|
25680
25863
|
var alternate = ($$anchor) => {
|
|
25681
|
-
var input_1 = root$
|
|
25864
|
+
var input_1 = root$25();
|
|
25682
25865
|
attribute_effect(input_1, () => ({ ...get$2(mergedProps) }), void 0, void 0, void 0, void 0, true);
|
|
25683
25866
|
bind_value(input_1, value);
|
|
25684
25867
|
append($$anchor, input_1);
|
|
@@ -27991,7 +28174,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
27991
28174
|
"tooltip",
|
|
27992
28175
|
"contentPointerEvents"
|
|
27993
28176
|
]);
|
|
27994
|
-
var root$
|
|
28177
|
+
var root$24 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
|
|
27995
28178
|
function Popper_layer_inner($$anchor, $$props) {
|
|
27996
28179
|
push($$props, true);
|
|
27997
28180
|
let popper = prop($$props, "popper", 7), onEscapeKeydown = prop($$props, "onEscapeKeydown", 7), escapeKeydownBehavior = prop($$props, "escapeKeydownBehavior", 7), preventOverflowTextSelection = prop($$props, "preventOverflowTextSelection", 7), id = prop($$props, "id", 7), onPointerDown = prop($$props, "onPointerDown", 7), onPointerUp = prop($$props, "onPointerUp", 7), side = prop($$props, "side", 7), sideOffset = prop($$props, "sideOffset", 7), align = prop($$props, "align", 7), alignOffset = prop($$props, "alignOffset", 7), arrowPadding = prop($$props, "arrowPadding", 7), avoidCollisions = prop($$props, "avoidCollisions", 7), collisionBoundary = prop($$props, "collisionBoundary", 7), collisionPadding = prop($$props, "collisionPadding", 7), sticky = prop($$props, "sticky", 7), hideWhenDetached = prop($$props, "hideWhenDetached", 7), updatePositionStrategy = prop($$props, "updatePositionStrategy", 7), strategy = prop($$props, "strategy", 7), dir = prop($$props, "dir", 7), preventScroll = prop($$props, "preventScroll", 7), wrapperId = prop($$props, "wrapperId", 7), style = prop($$props, "style", 7), onPlaced = prop($$props, "onPlaced", 7), onInteractOutside = prop($$props, "onInteractOutside", 7), onCloseAutoFocus = prop($$props, "onCloseAutoFocus", 7), onOpenAutoFocus = prop($$props, "onOpenAutoFocus", 7), onFocusOutside = prop($$props, "onFocusOutside", 7), interactOutsideBehavior = prop($$props, "interactOutsideBehavior", 7, "close"), loop = prop($$props, "loop", 7), trapFocus = prop($$props, "trapFocus", 7, true), isValidEvent = prop($$props, "isValidEvent", 7, () => false), customAnchor = prop($$props, "customAnchor", 7, null), isStatic = prop($$props, "isStatic", 7, false), enabled = prop($$props, "enabled", 7), ref = prop($$props, "ref", 7), tooltip = prop($$props, "tooltip", 7, false), contentPointerEvents = prop($$props, "contentPointerEvents", 7, "auto"), restProps = /* @__PURE__ */ rest_props($$props, rest_excludes$11);
|
|
@@ -28269,7 +28452,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28269
28452
|
const content = ($$anchor, $$arg0) => {
|
|
28270
28453
|
let floatingProps = () => $$arg0?.().props;
|
|
28271
28454
|
let wrapperProps = () => $$arg0?.().wrapperProps;
|
|
28272
|
-
var fragment_1 = root$
|
|
28455
|
+
var fragment_1 = root$24();
|
|
28273
28456
|
var node = first_child(fragment_1);
|
|
28274
28457
|
var consequent = ($$anchor) => {
|
|
28275
28458
|
Scroll_lock($$anchor, { get preventScroll() {
|
|
@@ -30633,8 +30816,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30633
30816
|
"children",
|
|
30634
30817
|
"child"
|
|
30635
30818
|
]);
|
|
30636
|
-
var root$
|
|
30637
|
-
var root_1$
|
|
30819
|
+
var root$23 = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
30820
|
+
var root_1$10 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
|
|
30638
30821
|
function Date_field_input($$anchor, $$props) {
|
|
30639
30822
|
const uid = props_id();
|
|
30640
30823
|
push($$props, true);
|
|
@@ -30682,7 +30865,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30682
30865
|
flushSync();
|
|
30683
30866
|
}
|
|
30684
30867
|
};
|
|
30685
|
-
var fragment = root_1$
|
|
30868
|
+
var fragment = root_1$10();
|
|
30686
30869
|
var node = first_child(fragment);
|
|
30687
30870
|
var consequent = ($$anchor) => {
|
|
30688
30871
|
var fragment_1 = comment();
|
|
@@ -30693,7 +30876,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30693
30876
|
append($$anchor, fragment_1);
|
|
30694
30877
|
};
|
|
30695
30878
|
var alternate = ($$anchor) => {
|
|
30696
|
-
var div = root$
|
|
30879
|
+
var div = root$23();
|
|
30697
30880
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
30698
30881
|
snippet(child(div), () => children() ?? noop$1, () => ({ segments: inputState.root.segmentContents }));
|
|
30699
30882
|
reset(div);
|
|
@@ -30726,7 +30909,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30726
30909
|
"children",
|
|
30727
30910
|
"child"
|
|
30728
30911
|
]);
|
|
30729
|
-
var root$
|
|
30912
|
+
var root$22 = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
30730
30913
|
function Date_field_label($$anchor, $$props) {
|
|
30731
30914
|
const uid = props_id();
|
|
30732
30915
|
push($$props, true);
|
|
@@ -30774,7 +30957,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30774
30957
|
append($$anchor, fragment_1);
|
|
30775
30958
|
};
|
|
30776
30959
|
var alternate = ($$anchor) => {
|
|
30777
|
-
var div = root$
|
|
30960
|
+
var div = root$22();
|
|
30778
30961
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
30779
30962
|
snippet(child(div), () => children() ?? noop$1);
|
|
30780
30963
|
reset(div);
|
|
@@ -30806,7 +30989,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30806
30989
|
"child",
|
|
30807
30990
|
"part"
|
|
30808
30991
|
]);
|
|
30809
|
-
var root$
|
|
30992
|
+
var root$21 = /* @__PURE__ */ from_html(`<span><!></span>`);
|
|
30810
30993
|
function Date_field_segment($$anchor, $$props) {
|
|
30811
30994
|
const uid = props_id();
|
|
30812
30995
|
push($$props, true);
|
|
@@ -30861,7 +31044,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30861
31044
|
append($$anchor, fragment_1);
|
|
30862
31045
|
};
|
|
30863
31046
|
var alternate = ($$anchor) => {
|
|
30864
|
-
var span = root$
|
|
31047
|
+
var span = root$21();
|
|
30865
31048
|
attribute_effect(span, () => ({ ...get$2(mergedProps) }));
|
|
30866
31049
|
snippet(child(span), () => children() ?? noop$1);
|
|
30867
31050
|
reset(span);
|
|
@@ -31883,7 +32066,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31883
32066
|
"id",
|
|
31884
32067
|
"ref"
|
|
31885
32068
|
]);
|
|
31886
|
-
var root$
|
|
32069
|
+
var root$20 = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
31887
32070
|
function Date_picker_calendar($$anchor, $$props) {
|
|
31888
32071
|
const uid = props_id();
|
|
31889
32072
|
push($$props, true);
|
|
@@ -31963,7 +32146,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31963
32146
|
append($$anchor, fragment_1);
|
|
31964
32147
|
};
|
|
31965
32148
|
var alternate = ($$anchor) => {
|
|
31966
|
-
var div = root$
|
|
32149
|
+
var div = root$20();
|
|
31967
32150
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
31968
32151
|
snippet(child(div), () => children() ?? noop$1, () => calendarState.snippetProps);
|
|
31969
32152
|
reset(div);
|
|
@@ -32003,7 +32186,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32003
32186
|
"customAnchor",
|
|
32004
32187
|
"style"
|
|
32005
32188
|
]);
|
|
32006
|
-
var root$
|
|
32189
|
+
var root$19 = /* @__PURE__ */ from_html(`<div><div><!></div></div>`);
|
|
32007
32190
|
function Popover_content($$anchor, $$props) {
|
|
32008
32191
|
const uid = props_id();
|
|
32009
32192
|
push($$props, true);
|
|
@@ -32138,7 +32321,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32138
32321
|
append($$anchor, fragment_3);
|
|
32139
32322
|
};
|
|
32140
32323
|
var alternate = ($$anchor) => {
|
|
32141
|
-
var div = root$
|
|
32324
|
+
var div = root$19();
|
|
32142
32325
|
attribute_effect(div, () => ({ ...wrapperProps() }));
|
|
32143
32326
|
var div_1 = child(div);
|
|
32144
32327
|
attribute_effect(div_1, () => ({ ...get$2(finalProps) }));
|
|
@@ -32208,7 +32391,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32208
32391
|
append($$anchor, fragment_6);
|
|
32209
32392
|
};
|
|
32210
32393
|
var alternate_1 = ($$anchor) => {
|
|
32211
|
-
var div_2 = root$
|
|
32394
|
+
var div_2 = root$19();
|
|
32212
32395
|
attribute_effect(div_2, () => ({ ...wrapperProps() }));
|
|
32213
32396
|
var div_3 = child(div_2);
|
|
32214
32397
|
attribute_effect(div_3, () => ({ ...get$2(finalProps) }));
|
|
@@ -32339,7 +32522,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32339
32522
|
"openDelay",
|
|
32340
32523
|
"closeDelay"
|
|
32341
32524
|
]);
|
|
32342
|
-
var root$
|
|
32525
|
+
var root$18 = /* @__PURE__ */ from_html(`<button><!></button>`);
|
|
32343
32526
|
function Popover_trigger($$anchor, $$props) {
|
|
32344
32527
|
const uid = props_id();
|
|
32345
32528
|
push($$props, true);
|
|
@@ -32434,7 +32617,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32434
32617
|
append($$anchor, fragment_2);
|
|
32435
32618
|
};
|
|
32436
32619
|
var alternate = ($$anchor) => {
|
|
32437
|
-
var button = root$
|
|
32620
|
+
var button = root$18();
|
|
32438
32621
|
attribute_effect(button, () => ({ ...get$2(mergedProps) }));
|
|
32439
32622
|
snippet(child(button), () => children() ?? noop$1);
|
|
32440
32623
|
reset(button);
|
|
@@ -32514,8 +32697,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32514
32697
|
}, [], [], { mode: "open" });
|
|
32515
32698
|
//#endregion
|
|
32516
32699
|
//#region src/components/forms/ui/generic/DatePicker.svelte
|
|
32517
|
-
var root$
|
|
32518
|
-
var root_1$
|
|
32700
|
+
var root$17 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
|
|
32701
|
+
var root_1$9 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
|
|
32519
32702
|
function DatePicker_1($$anchor, $$props) {
|
|
32520
32703
|
push($$props, true);
|
|
32521
32704
|
let dateString = prop($$props, "dateString", 15), labelClass = prop($$props, "labelClass", 7), inputClass = prop($$props, "inputClass", 7), labelText = prop($$props, "labelText", 7);
|
|
@@ -32572,7 +32755,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32572
32755
|
set(date, $$value, true);
|
|
32573
32756
|
},
|
|
32574
32757
|
children: ($$anchor, $$slotProps) => {
|
|
32575
|
-
var fragment_1 = root_1$
|
|
32758
|
+
var fragment_1 = root_1$9();
|
|
32576
32759
|
var node_1 = first_child(fragment_1);
|
|
32577
32760
|
component(node_1, () => Date_field_label, ($$anchor, DatePicker_Label) => {
|
|
32578
32761
|
DatePicker_Label($$anchor, {
|
|
@@ -32602,7 +32785,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32602
32785
|
{
|
|
32603
32786
|
const children = ($$anchor, $$arg0) => {
|
|
32604
32787
|
let segments = () => $$arg0?.().segments;
|
|
32605
|
-
var fragment_4 = root$
|
|
32788
|
+
var fragment_4 = root$17();
|
|
32606
32789
|
var node_5 = first_child(fragment_4);
|
|
32607
32790
|
each(node_5, 17, segments, index$1, ($$anchor, $$item) => {
|
|
32608
32791
|
let part = () => get$2($$item).part;
|
|
@@ -32653,12 +32836,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32653
32836
|
const children = ($$anchor, $$arg0) => {
|
|
32654
32837
|
let months = () => $$arg0?.().months;
|
|
32655
32838
|
let weekdays = () => $$arg0?.().weekdays;
|
|
32656
|
-
var fragment_8 = root$
|
|
32839
|
+
var fragment_8 = root$17();
|
|
32657
32840
|
var node_10 = first_child(fragment_8);
|
|
32658
32841
|
component(node_10, () => Calendar_header, ($$anchor, DatePicker_Header) => {
|
|
32659
32842
|
DatePicker_Header($$anchor, {
|
|
32660
32843
|
children: ($$anchor, $$slotProps) => {
|
|
32661
|
-
var fragment_9 = root_1$
|
|
32844
|
+
var fragment_9 = root_1$9();
|
|
32662
32845
|
var node_11 = first_child(fragment_9);
|
|
32663
32846
|
component(node_11, () => Calendar_prev_button, ($$anchor, DatePicker_PrevButton) => {
|
|
32664
32847
|
DatePicker_PrevButton($$anchor, { class: "go-datepicker-previous" });
|
|
@@ -32680,7 +32863,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32680
32863
|
component(first_child(fragment_10), () => Calendar_grid, ($$anchor, DatePicker_Grid) => {
|
|
32681
32864
|
DatePicker_Grid($$anchor, {
|
|
32682
32865
|
children: ($$anchor, $$slotProps) => {
|
|
32683
|
-
var fragment_11 = root$
|
|
32866
|
+
var fragment_11 = root$17();
|
|
32684
32867
|
var node_16 = first_child(fragment_11);
|
|
32685
32868
|
component(node_16, () => Calendar_grid_head, ($$anchor, DatePicker_GridHead) => {
|
|
32686
32869
|
DatePicker_GridHead($$anchor, {
|
|
@@ -32808,10 +32991,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32808
32991
|
"inputClass",
|
|
32809
32992
|
"host"
|
|
32810
32993
|
]);
|
|
32811
|
-
var root$
|
|
32812
|
-
var root_1$
|
|
32813
|
-
var root_2$
|
|
32814
|
-
var root_3$
|
|
32994
|
+
var root$16 = /* @__PURE__ */ from_html(`<span class="go-field-star" aria-hidden="true">*</span>`);
|
|
32995
|
+
var root_1$8 = /* @__PURE__ */ from_html(` <!>`, 1);
|
|
32996
|
+
var root_2$7 = /* @__PURE__ */ from_html(`<label><!></label> <input/>`, 1);
|
|
32997
|
+
var root_3$7 = /* @__PURE__ */ from_html(`<label><!></label> <textarea></textarea>`, 1);
|
|
32815
32998
|
var root_4$3 = /* @__PURE__ */ from_html(`<figure role="status" aria-live="polite"><img class="go-file-preview"/> <figcaption class="go-file-preview-caption"> </figcaption></figure>`);
|
|
32816
32999
|
var root_5$1 = /* @__PURE__ */ from_html(`<label><!></label> <input/> <!>`, 1);
|
|
32817
33000
|
var root_6$1 = /* @__PURE__ */ from_html(`<label><input/> <span class="go-checkbox-label"><!></span></label>`);
|
|
@@ -32830,11 +33013,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32830
33013
|
push($$props, true);
|
|
32831
33014
|
const labelText = ($$anchor) => {
|
|
32832
33015
|
next();
|
|
32833
|
-
var fragment = root_1$
|
|
33016
|
+
var fragment = root_1$8();
|
|
32834
33017
|
var text = first_child(fragment);
|
|
32835
33018
|
var node = sibling(text);
|
|
32836
33019
|
var consequent = ($$anchor) => {
|
|
32837
|
-
append($$anchor, root$
|
|
33020
|
+
append($$anchor, root$16());
|
|
32838
33021
|
};
|
|
32839
33022
|
if_block(node, ($$render) => {
|
|
32840
33023
|
if (field().required) $$render(consequent);
|
|
@@ -32843,7 +33026,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32843
33026
|
append($$anchor, fragment);
|
|
32844
33027
|
};
|
|
32845
33028
|
const input = ($$anchor) => {
|
|
32846
|
-
var fragment_1 = root_2$
|
|
33029
|
+
var fragment_1 = root_2$7();
|
|
32847
33030
|
var label_1 = first_child(fragment_1);
|
|
32848
33031
|
labelText(child(label_1));
|
|
32849
33032
|
reset(label_1);
|
|
@@ -32864,7 +33047,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32864
33047
|
append($$anchor, fragment_1);
|
|
32865
33048
|
};
|
|
32866
33049
|
const textarea = ($$anchor) => {
|
|
32867
|
-
var fragment_2 = root_3$
|
|
33050
|
+
var fragment_2 = root_3$7();
|
|
32868
33051
|
var label_2 = first_child(fragment_2);
|
|
32869
33052
|
labelText(child(label_2));
|
|
32870
33053
|
reset(label_2);
|
|
@@ -33234,10 +33417,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33234
33417
|
}, [], [], { mode: "open" });
|
|
33235
33418
|
//#endregion
|
|
33236
33419
|
//#region src/components/forms/ui/generic/Field.svelte
|
|
33237
|
-
var root$
|
|
33238
|
-
var root_1$
|
|
33239
|
-
var root_2$
|
|
33240
|
-
var root_3$
|
|
33420
|
+
var root$15 = /* @__PURE__ */ from_html(`<span> </span>`);
|
|
33421
|
+
var root_1$7 = /* @__PURE__ */ from_html(`<li> </li>`);
|
|
33422
|
+
var root_2$6 = /* @__PURE__ */ from_html(`<ul class="go-field-errors"></ul>`);
|
|
33423
|
+
var root_3$6 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
|
|
33241
33424
|
function Field($$anchor, $$props) {
|
|
33242
33425
|
push($$props, true);
|
|
33243
33426
|
let key = prop($$props, "key", 7), required = prop($$props, "required", 7, false), labelClass = prop($$props, "labelClass", 7), inputClass = prop($$props, "inputClass", 7);
|
|
@@ -33295,7 +33478,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33295
33478
|
flushSync();
|
|
33296
33479
|
}
|
|
33297
33480
|
};
|
|
33298
|
-
var fragment = root_3$
|
|
33481
|
+
var fragment = root_3$6();
|
|
33299
33482
|
var node = first_child(fragment);
|
|
33300
33483
|
InputAndLabel(node, {
|
|
33301
33484
|
get describedByIds() {
|
|
@@ -33317,7 +33500,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33317
33500
|
});
|
|
33318
33501
|
var node_1 = sibling(node, 2);
|
|
33319
33502
|
var consequent = ($$anchor) => {
|
|
33320
|
-
var span = root$
|
|
33503
|
+
var span = root$15();
|
|
33321
33504
|
var text = child(span, true);
|
|
33322
33505
|
reset(span);
|
|
33323
33506
|
template_effect(() => {
|
|
@@ -33331,9 +33514,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33331
33514
|
});
|
|
33332
33515
|
var node_2 = sibling(node_1, 2);
|
|
33333
33516
|
var consequent_1 = ($$anchor) => {
|
|
33334
|
-
var ul = root_2$
|
|
33517
|
+
var ul = root_2$6();
|
|
33335
33518
|
each(ul, 21, () => get$2(allErrors), index$1, ($$anchor, error) => {
|
|
33336
|
-
var li = root_1$
|
|
33519
|
+
var li = root_1$7();
|
|
33337
33520
|
var text_1 = child(li, true);
|
|
33338
33521
|
reset(li);
|
|
33339
33522
|
template_effect(() => set_text(text_1, get$2(error)));
|
|
@@ -33373,7 +33556,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33373
33556
|
}, [], ["getField"]));
|
|
33374
33557
|
//#endregion
|
|
33375
33558
|
//#region src/components/forms/ui/generic/AllFields.svelte
|
|
33376
|
-
var root$
|
|
33559
|
+
var root$14 = /* @__PURE__ */ from_html(`<go-field></go-field>`, 2);
|
|
33377
33560
|
function AllFields($$anchor, $$props) {
|
|
33378
33561
|
push($$props, true);
|
|
33379
33562
|
let _details = getDetails$1($$props.$$host);
|
|
@@ -33381,7 +33564,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33381
33564
|
let allFields = /* @__PURE__ */ user_derived(() => get$2(details) ? Forms.getFormFields(get$2(details)?.formId) : []);
|
|
33382
33565
|
var fragment = comment();
|
|
33383
33566
|
each(first_child(fragment), 17, () => get$2(allFields), (field) => field.key, ($$anchor, field) => {
|
|
33384
|
-
var go_field = root$
|
|
33567
|
+
var go_field = root$14();
|
|
33385
33568
|
template_effect(() => set_custom_element_data(go_field, "key", get$2(field).key));
|
|
33386
33569
|
template_effect(() => set_custom_element_data(go_field, "required", get$2(field).required));
|
|
33387
33570
|
append($$anchor, go_field);
|
|
@@ -33392,10 +33575,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33392
33575
|
customElements.define("go-all-fields", create_custom_element(AllFields, {}, [], []));
|
|
33393
33576
|
//#endregion
|
|
33394
33577
|
//#region src/components/forms/ui/generic/ErrorsFeedback.svelte
|
|
33395
|
-
var root$
|
|
33396
|
-
var root_1$
|
|
33397
|
-
var root_2$
|
|
33398
|
-
var root_3$
|
|
33578
|
+
var root$13 = /* @__PURE__ */ from_html(`<p aria-hidden="true"> </p>`);
|
|
33579
|
+
var root_1$6 = /* @__PURE__ */ from_html(`<li> </li>`);
|
|
33580
|
+
var root_2$5 = /* @__PURE__ */ from_html(`<ul class="go-error-feedback-api-errors"></ul>`);
|
|
33581
|
+
var root_3$5 = /* @__PURE__ */ from_html(`<div><p aria-live="assertive" class="sr-only"><!></p> <!> <!></div>`);
|
|
33399
33582
|
function ErrorsFeedback($$anchor, $$props) {
|
|
33400
33583
|
push($$props, true);
|
|
33401
33584
|
const _details = getDetails$1($$props.$$host);
|
|
@@ -33416,7 +33599,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33416
33599
|
$$props.$$host.classList.toggle("go-feedback", true);
|
|
33417
33600
|
$$props.$$host.setAttribute("data-num-errors", get$2(numErrors).toString());
|
|
33418
33601
|
});
|
|
33419
|
-
var div = root_3$
|
|
33602
|
+
var div = root_3$5();
|
|
33420
33603
|
var p = child(div);
|
|
33421
33604
|
var node = child(p);
|
|
33422
33605
|
var consequent = ($$anchor) => {
|
|
@@ -33430,7 +33613,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33430
33613
|
reset(p);
|
|
33431
33614
|
var node_1 = sibling(p, 2);
|
|
33432
33615
|
var consequent_1 = ($$anchor) => {
|
|
33433
|
-
var p_1 = root$
|
|
33616
|
+
var p_1 = root$13();
|
|
33434
33617
|
var text_1 = child(p_1, true);
|
|
33435
33618
|
reset(p_1);
|
|
33436
33619
|
template_effect(($0) => set_text(text_1, $0), [() => shop.t("forms.errorSummary", { count: get$2(errorsRealtime) })]);
|
|
@@ -33441,9 +33624,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33441
33624
|
});
|
|
33442
33625
|
var node_2 = sibling(node_1, 2);
|
|
33443
33626
|
var consequent_2 = ($$anchor) => {
|
|
33444
|
-
var ul = root_2$
|
|
33627
|
+
var ul = root_2$5();
|
|
33445
33628
|
each(ul, 21, () => get$2(details)?.apiErrors, index$1, ($$anchor, error) => {
|
|
33446
|
-
var li = root_1$
|
|
33629
|
+
var li = root_1$6();
|
|
33447
33630
|
var text_2 = child(li, true);
|
|
33448
33631
|
reset(li);
|
|
33449
33632
|
template_effect(() => set_text(text_2, get$2(error)));
|
|
@@ -33463,9 +33646,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33463
33646
|
customElements.define("go-errors-feedback", create_custom_element(ErrorsFeedback, {}, [], []));
|
|
33464
33647
|
//#endregion
|
|
33465
33648
|
//#region src/components/forms/ui/generic/FormFeedback.svelte
|
|
33466
|
-
var root$
|
|
33649
|
+
var root$12 = /* @__PURE__ */ from_html(`<div class="go-form-feedback"><!></div>`);
|
|
33467
33650
|
function FormFeedback($$anchor, $$props) {
|
|
33468
|
-
var div = root$
|
|
33651
|
+
var div = root$12();
|
|
33469
33652
|
slot(child(div), $$props, "default", {}, null);
|
|
33470
33653
|
reset(div);
|
|
33471
33654
|
append($$anchor, div);
|
|
@@ -33499,7 +33682,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33499
33682
|
} }, [], []));
|
|
33500
33683
|
//#endregion
|
|
33501
33684
|
//#region src/components/forms/ui/generic/SuccessFeedback.svelte
|
|
33502
|
-
var root$
|
|
33685
|
+
var root$11 = /* @__PURE__ */ from_html(`<div aria-live="assertive"> </div>`);
|
|
33503
33686
|
function SuccessFeedback($$anchor, $$props) {
|
|
33504
33687
|
push($$props, true);
|
|
33505
33688
|
const _details = getDetails$1($$props.$$host);
|
|
@@ -33507,7 +33690,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33507
33690
|
var fragment = comment();
|
|
33508
33691
|
var node = first_child(fragment);
|
|
33509
33692
|
var consequent = ($$anchor) => {
|
|
33510
|
-
var div = root$
|
|
33693
|
+
var div = root$11();
|
|
33511
33694
|
let classes;
|
|
33512
33695
|
var text = child(div, true);
|
|
33513
33696
|
reset(div);
|
|
@@ -35882,10 +36065,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
35882
36065
|
} }, [], ["orderDetails"]));
|
|
35883
36066
|
//#endregion
|
|
35884
36067
|
//#region src/components/order/components/subcomponents/breakdown/items/Event.svelte
|
|
35885
|
-
var root$
|
|
35886
|
-
var root_1$
|
|
35887
|
-
var root_2$
|
|
35888
|
-
var root_3$
|
|
36068
|
+
var root$10 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <span class="go-cart-item-time" data-testid="cart-item-time"> </span>`, 1);
|
|
36069
|
+
var root_1$5 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities"> </span>`, 1);
|
|
36070
|
+
var root_2$4 = /* @__PURE__ */ from_html(`<a aria-label="iCal link"> </a>`);
|
|
36071
|
+
var root_3$4 = /* @__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" rel="noopener noreferrer"> </a></li> <li class="go-order-breakdown-item-price"> </li> <li class="go-order-breakdown-passbook"></li> <li class="go-order-breakdown-ical"><!></li></ul></article></li>`);
|
|
35889
36072
|
function Event$1($$anchor, $$props) {
|
|
35890
36073
|
push($$props, true);
|
|
35891
36074
|
let item = prop($$props, "item", 7), orderDetails = prop($$props, "orderDetails", 7);
|
|
@@ -35905,7 +36088,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
35905
36088
|
flushSync();
|
|
35906
36089
|
}
|
|
35907
36090
|
};
|
|
35908
|
-
var li = root_3$
|
|
36091
|
+
var li = root_3$4();
|
|
35909
36092
|
var article = child(li);
|
|
35910
36093
|
var ul = child(article);
|
|
35911
36094
|
var li_1 = sibling(child(ul), 2);
|
|
@@ -35914,7 +36097,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
35914
36097
|
reset(span);
|
|
35915
36098
|
var node = sibling(span, 2);
|
|
35916
36099
|
var consequent = ($$anchor) => {
|
|
35917
|
-
var fragment = root$
|
|
36100
|
+
var fragment = root$10();
|
|
35918
36101
|
var span_1 = first_child(fragment);
|
|
35919
36102
|
var text_1 = child(span_1, true);
|
|
35920
36103
|
reset(span_1);
|
|
@@ -35935,7 +36118,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
35935
36118
|
});
|
|
35936
36119
|
var node_1 = sibling(node, 2);
|
|
35937
36120
|
each(node_1, 17, () => item().attributes.quantities, (scalePrice) => scalePrice.id, ($$anchor, scalePrice) => {
|
|
35938
|
-
var fragment_1 = root_1$
|
|
36121
|
+
var fragment_1 = root_1$5();
|
|
35939
36122
|
var span_3 = sibling(first_child(fragment_1), 2);
|
|
35940
36123
|
var text_3 = child(span_3);
|
|
35941
36124
|
reset(span_3);
|
|
@@ -35952,7 +36135,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
35952
36135
|
var li_3 = sibling(li_2, 4);
|
|
35953
36136
|
var node_2 = child(li_3);
|
|
35954
36137
|
var consequent_1 = ($$anchor) => {
|
|
35955
|
-
var a_1 = root_2$
|
|
36138
|
+
var a_1 = root_2$4();
|
|
35956
36139
|
var text_6 = child(a_1, true);
|
|
35957
36140
|
reset(a_1);
|
|
35958
36141
|
template_effect(($0) => {
|
|
@@ -35987,10 +36170,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
35987
36170
|
}, [], [], { mode: "open" });
|
|
35988
36171
|
//#endregion
|
|
35989
36172
|
//#region src/components/order/components/subcomponents/breakdown/items/TicketSale.svelte
|
|
35990
|
-
var root$
|
|
35991
|
-
var root_1$
|
|
35992
|
-
var root_2$
|
|
35993
|
-
var root_3$
|
|
36173
|
+
var root$9 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities" data-testid="order-sub-ticket"> </span>`, 1);
|
|
36174
|
+
var root_1$4 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span> <span class="go-cart-item-time"> </span>`, 1);
|
|
36175
|
+
var root_2$3 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span>`);
|
|
36176
|
+
var root_3$3 = /* @__PURE__ */ from_html(`<!> <br/> <a class="go-ticket-download" target="_blank" rel="noopener noreferrer"> </a>`, 1);
|
|
35994
36177
|
var root_4$2 = /* @__PURE__ */ from_html(`<br/> <a class="go-ticket-personalization"> </a>`, 1);
|
|
35995
36178
|
var root_5 = /* @__PURE__ */ from_html(`<a aria-label="passbook link"><img alt="apple wallet icon"/></a>`);
|
|
35996
36179
|
var root_6 = /* @__PURE__ */ from_html(`<a aria-label="iCal link"> </a>`);
|
|
@@ -36035,7 +36218,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36035
36218
|
reset(span);
|
|
36036
36219
|
var node_2 = sibling(span, 2);
|
|
36037
36220
|
each(node_2, 17, () => get$2(subTicketSales), (sub) => sub.id, ($$anchor, sub) => {
|
|
36038
|
-
var fragment_2 = root$
|
|
36221
|
+
var fragment_2 = root$9();
|
|
36039
36222
|
var span_1 = sibling(first_child(fragment_2), 2);
|
|
36040
36223
|
var text_1 = child(span_1);
|
|
36041
36224
|
reset(span_1);
|
|
@@ -36045,10 +36228,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36045
36228
|
var node_3 = sibling(node_2, 2);
|
|
36046
36229
|
var consequent_2 = ($$anchor) => {
|
|
36047
36230
|
const barcodeId = /* @__PURE__ */ user_derived(() => item().attributes.barcodes[index]?.id);
|
|
36048
|
-
var fragment_3 = root_3$
|
|
36231
|
+
var fragment_3 = root_3$3();
|
|
36049
36232
|
var node_4 = first_child(fragment_3);
|
|
36050
36233
|
var consequent = ($$anchor) => {
|
|
36051
|
-
var fragment_4 = root_1$
|
|
36234
|
+
var fragment_4 = root_1$4();
|
|
36052
36235
|
var span_2 = first_child(fragment_4);
|
|
36053
36236
|
var text_2 = child(span_2, true);
|
|
36054
36237
|
reset(span_2);
|
|
@@ -36065,7 +36248,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36065
36248
|
append($$anchor, fragment_4);
|
|
36066
36249
|
};
|
|
36067
36250
|
var consequent_1 = ($$anchor) => {
|
|
36068
|
-
var span_4 = root_2$
|
|
36251
|
+
var span_4 = root_2$3();
|
|
36069
36252
|
var text_4 = child(span_4, true);
|
|
36070
36253
|
reset(span_4);
|
|
36071
36254
|
template_effect(($0) => set_text(text_4, $0), [() => formatDate(item().attributes.start_time, {
|
|
@@ -36212,6 +36395,96 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36212
36395
|
orderDetails: {}
|
|
36213
36396
|
}, [], [], { mode: "open" });
|
|
36214
36397
|
//#endregion
|
|
36398
|
+
//#region src/components/order/components/subcomponents/breakdown/items/Tour.svelte
|
|
36399
|
+
var root$8 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <span class="go-cart-item-time" data-testid="cart-item-time"> </span>`, 1);
|
|
36400
|
+
var root_1$3 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities"> </span>`, 1);
|
|
36401
|
+
var root_2$2 = /* @__PURE__ */ from_html(`<a aria-label="iCal link"> </a>`);
|
|
36402
|
+
var root_3$2 = /* @__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> <span class="go-order-item-participants" data-testid="order-item-participants"> </span> <!> <!></li> <li class="go-order-breakdown-item-price"> </li> <li class="go-order-breakdown-passbook"></li> <li class="go-order-breakdown-ical"><!></li></ul></article></li>`);
|
|
36403
|
+
function Tour($$anchor, $$props) {
|
|
36404
|
+
push($$props, true);
|
|
36405
|
+
let item = prop($$props, "item", 7);
|
|
36406
|
+
const priceRows = /* @__PURE__ */ user_derived(() => (item().attributes.prices ?? []).filter((row) => row.title && row.quantity != null));
|
|
36407
|
+
var $$exports = {
|
|
36408
|
+
get item() {
|
|
36409
|
+
return item();
|
|
36410
|
+
},
|
|
36411
|
+
set item($$value) {
|
|
36412
|
+
item($$value);
|
|
36413
|
+
flushSync();
|
|
36414
|
+
}
|
|
36415
|
+
};
|
|
36416
|
+
var li = root_3$2();
|
|
36417
|
+
var article = child(li);
|
|
36418
|
+
var ul = child(article);
|
|
36419
|
+
var li_1 = sibling(child(ul), 2);
|
|
36420
|
+
var span = child(li_1);
|
|
36421
|
+
var text = child(span, true);
|
|
36422
|
+
reset(span);
|
|
36423
|
+
var span_1 = sibling(span, 2);
|
|
36424
|
+
var text_1 = child(span_1, true);
|
|
36425
|
+
reset(span_1);
|
|
36426
|
+
var node = sibling(span_1, 2);
|
|
36427
|
+
var consequent = ($$anchor) => {
|
|
36428
|
+
var fragment = root$8();
|
|
36429
|
+
var span_2 = first_child(fragment);
|
|
36430
|
+
var text_2 = child(span_2, true);
|
|
36431
|
+
reset(span_2);
|
|
36432
|
+
var span_3 = sibling(span_2, 2);
|
|
36433
|
+
var text_3 = child(span_3, true);
|
|
36434
|
+
reset(span_3);
|
|
36435
|
+
template_effect(($0, $1) => {
|
|
36436
|
+
set_text(text_2, $0);
|
|
36437
|
+
set_text(text_3, $1);
|
|
36438
|
+
}, [() => formatDate(item().attributes.start_time, {
|
|
36439
|
+
month: "numeric",
|
|
36440
|
+
day: "numeric"
|
|
36441
|
+
}, shop.locale), () => formatTime(item().attributes.start_time)]);
|
|
36442
|
+
append($$anchor, fragment);
|
|
36443
|
+
};
|
|
36444
|
+
if_block(node, ($$render) => {
|
|
36445
|
+
if (item().attributes.start_time) $$render(consequent);
|
|
36446
|
+
});
|
|
36447
|
+
each(sibling(node, 2), 17, () => get$2(priceRows), (row) => row.title, ($$anchor, row) => {
|
|
36448
|
+
var fragment_1 = root_1$3();
|
|
36449
|
+
var span_4 = sibling(first_child(fragment_1), 2);
|
|
36450
|
+
var text_4 = child(span_4);
|
|
36451
|
+
reset(span_4);
|
|
36452
|
+
template_effect(() => set_text(text_4, `${get$2(row).quantity ?? ""} x ${get$2(row).title ?? ""}`));
|
|
36453
|
+
append($$anchor, fragment_1);
|
|
36454
|
+
});
|
|
36455
|
+
reset(li_1);
|
|
36456
|
+
var li_2 = sibling(li_1, 2);
|
|
36457
|
+
var text_5 = child(li_2, true);
|
|
36458
|
+
reset(li_2);
|
|
36459
|
+
var li_3 = sibling(li_2, 4);
|
|
36460
|
+
var node_2 = child(li_3);
|
|
36461
|
+
var consequent_1 = ($$anchor) => {
|
|
36462
|
+
var a = root_2$2();
|
|
36463
|
+
var text_6 = child(a, true);
|
|
36464
|
+
reset(a);
|
|
36465
|
+
template_effect(($0) => {
|
|
36466
|
+
set_attribute(a, "href", shop.apiUrl + item().attributes.ical_url);
|
|
36467
|
+
set_text(text_6, $0);
|
|
36468
|
+
}, [() => shop.t("common.calendar")]);
|
|
36469
|
+
append($$anchor, a);
|
|
36470
|
+
};
|
|
36471
|
+
if_block(node_2, ($$render) => {
|
|
36472
|
+
if (item().attributes.ical_url) $$render(consequent_1);
|
|
36473
|
+
});
|
|
36474
|
+
reset(li_3);
|
|
36475
|
+
reset(ul);
|
|
36476
|
+
reset(article);
|
|
36477
|
+
reset(li);
|
|
36478
|
+
template_effect(($0, $1) => {
|
|
36479
|
+
set_text(text, item().attributes.title);
|
|
36480
|
+
set_text(text_1, $0);
|
|
36481
|
+
set_text(text_5, $1);
|
|
36482
|
+
}, [() => shop.t("cart.item.participants", { count: item().attributes.participants }), () => formatCurrency$1(item().price_cents)]);
|
|
36483
|
+
append($$anchor, li);
|
|
36484
|
+
return pop($$exports);
|
|
36485
|
+
}
|
|
36486
|
+
create_custom_element(Tour, { item: {} }, [], [], { mode: "open" });
|
|
36487
|
+
//#endregion
|
|
36215
36488
|
//#region src/components/order/components/subcomponents/breakdown/Breakdown.svelte
|
|
36216
36489
|
var root$7 = /* @__PURE__ */ from_html(`<ol><li class="data-go-order-breakdown-header"><ul><li class="go-order-breakdown-header-count"> </li> <li class="go-order-breakdown-header-product"> </li> <li class="go-order-breakdown-header-price"> </li> <li class="go-order-breakdown-header-passbook"></li></ul></li> <!> <li class="go-order-breakdown-footer"><ul><li class="go-cart-footer-title"></li> <li class="go-cart-footer-count"></li> <li class="go-cart-footer-price"> </li> <li class="go-cart-footer-passbook"></li></ul></li></ol>`);
|
|
36217
36490
|
function Breakdown($$anchor, $$props) {
|
|
@@ -36221,7 +36494,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36221
36494
|
let order = /* @__PURE__ */ user_derived(() => get$2(orderDetails)?.order);
|
|
36222
36495
|
var fragment = comment();
|
|
36223
36496
|
var node = first_child(fragment);
|
|
36224
|
-
var
|
|
36497
|
+
var consequent_3 = ($$anchor) => {
|
|
36225
36498
|
var ol = root$7();
|
|
36226
36499
|
var li = child(ol);
|
|
36227
36500
|
var ul = child(li);
|
|
@@ -36261,9 +36534,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36261
36534
|
}
|
|
36262
36535
|
});
|
|
36263
36536
|
};
|
|
36537
|
+
var consequent_2 = ($$anchor) => {
|
|
36538
|
+
Tour($$anchor, { get item() {
|
|
36539
|
+
return get$2(item);
|
|
36540
|
+
} });
|
|
36541
|
+
};
|
|
36264
36542
|
if_block(node_2, ($$render) => {
|
|
36265
36543
|
if (get$2(item).type === "Ticket") $$render(consequent);
|
|
36266
36544
|
else if (get$2(item).type === "Event") $$render(consequent_1, 1);
|
|
36545
|
+
else if (get$2(item).type === "Tour") $$render(consequent_2, 2);
|
|
36267
36546
|
});
|
|
36268
36547
|
append($$anchor, fragment_1);
|
|
36269
36548
|
});
|
|
@@ -36290,7 +36569,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36290
36569
|
append($$anchor, ol);
|
|
36291
36570
|
};
|
|
36292
36571
|
if_block(node, ($$render) => {
|
|
36293
|
-
if (get$2(order) && get$2(orderDetails)) $$render(
|
|
36572
|
+
if (get$2(order) && get$2(orderDetails)) $$render(consequent_3);
|
|
36294
36573
|
});
|
|
36295
36574
|
append($$anchor, fragment);
|
|
36296
36575
|
pop();
|
|
@@ -37766,20 +38045,61 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
37766
38045
|
type: "Boolean"
|
|
37767
38046
|
} }, [], []));
|
|
37768
38047
|
//#endregion
|
|
38048
|
+
//#region src/go/cart.ts
|
|
38049
|
+
var REQUIRED = [
|
|
38050
|
+
"id",
|
|
38051
|
+
"time",
|
|
38052
|
+
"participants",
|
|
38053
|
+
"languageId",
|
|
38054
|
+
"totalPriceCents",
|
|
38055
|
+
"title"
|
|
38056
|
+
];
|
|
38057
|
+
function validate(options) {
|
|
38058
|
+
for (const key of REQUIRED) if (options[key] == null || options[key] === "") throw new Error(`(go.cart.addTour) '${key}' is required`);
|
|
38059
|
+
if (!(options.participants > 0)) throw new Error(`(go.cart.addTour) 'participants' must be a positive number`);
|
|
38060
|
+
if (options.quantities) {
|
|
38061
|
+
const quantitiesSum = sum(Object.values(options.quantities));
|
|
38062
|
+
if (quantitiesSum !== options.participants) throw new Error(`(go.cart.addTour) 'quantities' must sum to 'participants' (${quantitiesSum} !== ${options.participants})`);
|
|
38063
|
+
}
|
|
38064
|
+
}
|
|
38065
|
+
/**
|
|
38066
|
+
* Adds a group-tour booking to the cart and resolves with the cart line's
|
|
38067
|
+
* uuid. Every call appends a NEW line — identical bookings coexist; use the
|
|
38068
|
+
* returned uuid to deduplicate or remove.
|
|
38069
|
+
*
|
|
38070
|
+
* Tours are not priced by the shop API: `totalPriceCents` is the
|
|
38071
|
+
* integrator-supplied booking total (incl. mandatory surcharges) and is
|
|
38072
|
+
* verified by the backend only at checkout.
|
|
38073
|
+
*/
|
|
38074
|
+
async function addTour(options) {
|
|
38075
|
+
validate(options);
|
|
38076
|
+
if (!shop.cart) throw new Error("(go.cart.addTour) shop not initialized — call go.init first");
|
|
38077
|
+
const { time, ...attributes } = options;
|
|
38078
|
+
const item = createCartItem(createUITour(attributes), {
|
|
38079
|
+
quantity: 1,
|
|
38080
|
+
time
|
|
38081
|
+
});
|
|
38082
|
+
shop.cart.addItem(item);
|
|
38083
|
+
return item.uuid;
|
|
38084
|
+
}
|
|
38085
|
+
//#endregion
|
|
37769
38086
|
//#region src/go/go.ts
|
|
37770
38087
|
var initPromise = null;
|
|
37771
38088
|
async function ensureShopReady() {
|
|
37772
38089
|
if (initPromise) return initPromise;
|
|
37773
|
-
if (!shop.client) throw new Error("[go
|
|
38090
|
+
if (!shop.client) throw new Error("[go] Shop not initialized — call go.init({ shop, api, locale }) first.");
|
|
37774
38091
|
}
|
|
38092
|
+
var resolveCommand = (method) => method.split(".").reduce((target, key) => target?.[key], go);
|
|
37775
38093
|
async function initGo(window) {
|
|
37776
38094
|
const stub = window.go;
|
|
37777
38095
|
let q = stub && stub._queue || [];
|
|
37778
|
-
console.
|
|
38096
|
+
if (stub && stub._queue && !stub.cart) console.warn("(go) the pasted go snippet predates go.cart — cart calls cannot be queued before load. Update the snippet or gate on window.go.loaded.");
|
|
37779
38097
|
for (const command of q) {
|
|
37780
38098
|
if (command.method === "load") continue;
|
|
37781
38099
|
try {
|
|
37782
|
-
|
|
38100
|
+
const fn = resolveCommand(command.method);
|
|
38101
|
+
if (typeof fn !== "function") throw new Error(`(go) unknown command: ${command.method}`);
|
|
38102
|
+
await fn(command.options);
|
|
37783
38103
|
} catch (e) {
|
|
37784
38104
|
console.error(e);
|
|
37785
38105
|
}
|
|
@@ -37809,8 +38129,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
37809
38129
|
getOrders: async (params) => {
|
|
37810
38130
|
await ensureShopReady();
|
|
37811
38131
|
return shop.asyncFetch(() => shop.getOrders(params));
|
|
38132
|
+
},
|
|
38133
|
+
getCustomerAddresses: async () => {
|
|
38134
|
+
await ensureShopReady();
|
|
38135
|
+
return shop.asyncFetch(() => shop.getCustomerAddresses());
|
|
37812
38136
|
}
|
|
37813
|
-
}
|
|
38137
|
+
},
|
|
38138
|
+
cart: { addTour: async (options) => {
|
|
38139
|
+
await ensureShopReady();
|
|
38140
|
+
return addTour(options);
|
|
38141
|
+
} }
|
|
37814
38142
|
};
|
|
37815
38143
|
(async () => {
|
|
37816
38144
|
await initGo(window);
|