@gomusdev/web-components 4.1.1 → 4.3.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.
Files changed (27) hide show
  1. package/README.md +15 -0
  2. package/dist-js/components/cart/components/itemTitles/Tour.svelte.d.ts +1 -0
  3. package/dist-js/components/membershipActivation/MembershipActivation.svelte.d.ts +1 -0
  4. package/dist-js/components/order/components/subcomponents/breakdown/items/Tour.svelte.d.ts +1 -0
  5. package/dist-js/gomus-webcomponents.iife.js +563 -195
  6. package/dist-js/gomus-webcomponents.js +563 -195
  7. package/dist-js/gomus-webcomponents.min.iife.js +47 -47
  8. package/dist-js/gomus-webcomponents.min.js +7687 -7451
  9. package/dist-js/src/components/cart/components/itemTitles/Tour.spec.d.ts +1 -0
  10. package/dist-js/src/components/membershipActivation/entry.d.ts +0 -0
  11. package/dist-js/src/components/membershipActivation/specs/MembershipActivation.spec.d.ts +1 -0
  12. package/dist-js/src/components/order/components/subcomponents/breakdown/items/Tour.spec.d.ts +1 -0
  13. package/dist-js/src/components/ticketSelection/subcomponents/tickets/subcomponents/segment/SegmentDetails.svelte.d.ts +21 -3
  14. package/dist-js/src/factories/CartItemFactories.d.ts +94 -5
  15. package/dist-js/src/factories/TourFactories.d.ts +41 -0
  16. package/dist-js/src/go/cart.d.ts +19 -0
  17. package/dist-js/src/go/cart.spec.d.ts +1 -0
  18. package/dist-js/src/go/go.d.ts +5 -1
  19. package/dist-js/src/lib/helpers/translations.d.ts +1 -0
  20. package/dist-js/src/lib/models/cart/CartItem.d.ts +7 -1
  21. package/dist-js/src/lib/models/cart/cart.svelte.d.ts +42 -6
  22. package/dist-js/src/lib/models/cart/localStorage.svelte.d.ts +7 -1
  23. package/dist-js/src/lib/models/cart/types.d.ts +4 -1
  24. package/dist-js/src/lib/models/tour/UITour.spec.d.ts +1 -0
  25. package/dist-js/src/lib/models/tour/UITour.svelte.d.ts +99 -0
  26. package/dist-js/src/lib/stores/shop.svelte.d.ts +23 -4
  27. 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
  },
@@ -13545,6 +13621,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13545
13621
  var SIGN_IN_ENDPOINT = "/api/v4/auth/sign_in";
13546
13622
  var SIGN_UP_ENDPOINT = "/api/v4/auth";
13547
13623
  var WITHDRAWAL_ENDPOINT = "/api/v4/orders/withdrawals";
13624
+ var MEMBERSHIP_ACTIVATION_ENDPOINT = "/api/v4/customer/memberships/activate";
13548
13625
  var ORDERS_ENDPOINT = "/api/v4/orders";
13549
13626
  //#endregion
13550
13627
  //#region ../../packages/gomus-api/lib/customerLevels.ts
@@ -13763,6 +13840,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13763
13840
  requiredFields: ["email"]
13764
13841
  });
13765
13842
  }
13843
+ activateMembership(params) {
13844
+ return this.apiPost(MEMBERSHIP_ACTIVATION_ENDPOINT, {
13845
+ body: params,
13846
+ requiredFields: ["email"],
13847
+ parseAs: "text"
13848
+ });
13849
+ }
13766
13850
  checkout(params) {
13767
13851
  return this.apiPost(`/api/v4/orders`, {
13768
13852
  body: params,
@@ -14136,8 +14220,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14136
14220
  var getPersonalizationDetails = createGetDetails(KEY$5);
14137
14221
  //#endregion
14138
14222
  //#region src/components/annualTicketPersonalization/components/AnnualTicketPersonalization.svelte
14139
- var root$55 = /* @__PURE__ */ from_html(`<li><a> </a></li>`);
14140
- var root_1$19 = /* @__PURE__ */ from_html(`<ul class="go-annual-ticket"><li class="go-annual-ticket-title"> </li> <li class="go-annual-ticket-personalization-count"> </li> <!></ul>`);
14223
+ var root$57 = /* @__PURE__ */ from_html(`<li><a> </a></li>`);
14224
+ 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>`);
14141
14225
  function AnnualTicketPersonalization($$anchor, $$props) {
14142
14226
  push($$props, true);
14143
14227
  let token = prop($$props, "token", 7);
@@ -14162,7 +14246,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14162
14246
  var consequent_1 = ($$anchor) => {
14163
14247
  var fragment_1 = comment();
14164
14248
  each(first_child(fragment_1), 17, () => get$2(order).ticket_sales, (ticketSale) => ticketSale.id, ($$anchor, ticketSale) => {
14165
- var ul = root_1$19();
14249
+ var ul = root_1$21();
14166
14250
  var li = child(ul);
14167
14251
  var text = child(li, true);
14168
14252
  reset(li);
@@ -14171,7 +14255,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14171
14255
  reset(li_1);
14172
14256
  var node_2 = sibling(li_1, 2);
14173
14257
  var consequent = ($$anchor) => {
14174
- var li_2 = root$55();
14258
+ var li_2 = root$57();
14175
14259
  var a = child(li_2);
14176
14260
  var text_2 = child(a, true);
14177
14261
  reset(a);
@@ -14846,7 +14930,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14846
14930
  }
14847
14931
  //#endregion
14848
14932
  //#region src/components/forms/ui/generic/Form.svelte
14849
- var root$54 = /* @__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);
14933
+ 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);
14850
14934
  function Form($$anchor, $$props) {
14851
14935
  push($$props, true);
14852
14936
  let formId = prop($$props, "formId", 7), custom = prop($$props, "custom", 7);
@@ -14891,7 +14975,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14891
14975
  var fragment = comment();
14892
14976
  var node = first_child(fragment);
14893
14977
  var consequent = ($$anchor) => {
14894
- var fragment_1 = root$54();
14978
+ var fragment_1 = root$56();
14895
14979
  var go_submit = sibling(sibling(first_child(fragment_1), 2), 2);
14896
14980
  var text = child(go_submit, true);
14897
14981
  reset(go_submit);
@@ -14918,7 +15002,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14918
15002
  }, [], ["details"]));
14919
15003
  //#endregion
14920
15004
  //#region src/components/auth/passwordReset/PasswordReset.svelte
14921
- var root$53 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
15005
+ var root$55 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
14922
15006
  function PasswordReset($$anchor, $$props) {
14923
15007
  push($$props, true);
14924
15008
  let custom = prop($$props, "custom", 7, false);
@@ -14951,7 +15035,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14951
15035
  flushSync();
14952
15036
  }
14953
15037
  };
14954
- var go_form = root$53();
15038
+ var go_form = root$55();
14955
15039
  set_custom_element_data(go_form, "formId", "passwordReset");
14956
15040
  template_effect(() => set_custom_element_data(go_form, "custom", custom()));
14957
15041
  event("submit", go_form, passwordReset);
@@ -15115,7 +15199,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15115
15199
  return displayCart;
15116
15200
  }
15117
15201
  function createDisplayCartItem(cartItem, attrs) {
15118
- const quantity = resolveApiQuantity(attrs);
15202
+ const quantity = isUITour(cartItem.product) ? 1 : resolveApiQuantity(attrs);
15119
15203
  const displayPrice = attrs.price_cents ?? cartItem.product.price_cents;
15120
15204
  const originalPrice = cartItem.product.price_cents;
15121
15205
  const discounted = displayPrice < originalPrice;
@@ -15188,7 +15272,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15188
15272
  var getCartDetails = createGetDetails(KEY$3);
15189
15273
  //#endregion
15190
15274
  //#region src/components/cart/components/itemTitles/Coupon.svelte
15191
- var root$52 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span>`);
15275
+ var root$54 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span>`);
15192
15276
  function Coupon($$anchor, $$props) {
15193
15277
  push($$props, true);
15194
15278
  let cartItem = prop($$props, "cartItem", 7);
@@ -15201,7 +15285,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15201
15285
  flushSync();
15202
15286
  }
15203
15287
  };
15204
- var span = root$52();
15288
+ var span = root$54();
15205
15289
  var text = child(span, true);
15206
15290
  reset(span);
15207
15291
  template_effect(() => set_text(text, cartItem().product.title));
@@ -15211,8 +15295,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15211
15295
  create_custom_element(Coupon, { cartItem: {} }, [], [], { mode: "open" });
15212
15296
  //#endregion
15213
15297
  //#region src/components/cart/components/itemTitles/Event.svelte
15214
- var root$51 = /* @__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);
15215
- var root_1$18 = /* @__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);
15298
+ 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);
15299
+ 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);
15216
15300
  function Event$2($$anchor, $$props) {
15217
15301
  push($$props, true);
15218
15302
  let cartItem = prop($$props, "cartItem", 7);
@@ -15227,7 +15311,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15227
15311
  flushSync();
15228
15312
  }
15229
15313
  };
15230
- var fragment = root_1$18();
15314
+ var fragment = root_1$20();
15231
15315
  var span = first_child(fragment);
15232
15316
  var span_1 = child(span);
15233
15317
  var text = child(span_1, true);
@@ -15238,7 +15322,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15238
15322
  reset(span);
15239
15323
  var node = sibling(span);
15240
15324
  var consequent = ($$anchor) => {
15241
- var fragment_1 = root$51();
15325
+ var fragment_1 = root$53();
15242
15326
  var span_3 = first_child(fragment_1);
15243
15327
  var text_2 = child(span_3, true);
15244
15328
  reset(span_3);
@@ -15267,9 +15351,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15267
15351
  create_custom_element(Event$2, { cartItem: {} }, [], [], { mode: "open" });
15268
15352
  //#endregion
15269
15353
  //#region src/components/cart/components/itemTitles/Ticket.svelte
15270
- var root$50 = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
15271
- var root_1$17 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
15272
- var root_2$12 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span> <!>`, 1);
15354
+ var root$52 = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
15355
+ var root_1$19 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
15356
+ var root_2$14 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span> <!>`, 1);
15273
15357
  function Ticket($$anchor, $$props) {
15274
15358
  push($$props, true);
15275
15359
  let cartItem = prop($$props, "cartItem", 7);
@@ -15282,19 +15366,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15282
15366
  flushSync();
15283
15367
  }
15284
15368
  };
15285
- var fragment = root_2$12();
15369
+ var fragment = root_2$14();
15286
15370
  var span = first_child(fragment);
15287
15371
  var text = child(span, true);
15288
15372
  reset(span);
15289
15373
  var node = sibling(span, 2);
15290
15374
  var consequent_1 = ($$anchor) => {
15291
- var fragment_1 = root_1$17();
15375
+ var fragment_1 = root_1$19();
15292
15376
  var span_1 = first_child(fragment_1);
15293
15377
  var text_1 = child(span_1, true);
15294
15378
  reset(span_1);
15295
15379
  var node_1 = sibling(span_1, 2);
15296
15380
  var consequent = ($$anchor) => {
15297
- var span_2 = root$50();
15381
+ var span_2 = root$52();
15298
15382
  var text_2 = child(span_2, true);
15299
15383
  reset(span_2);
15300
15384
  template_effect(($0) => set_text(text_2, $0), [() => formatTime(cartItem().time)]);
@@ -15318,6 +15402,93 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15318
15402
  }
15319
15403
  create_custom_element(Ticket, { cartItem: {} }, [], [], { mode: "open" });
15320
15404
  //#endregion
15405
+ //#region src/components/cart/components/itemTitles/Tour.svelte
15406
+ var root$51 = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
15407
+ var root_1$18 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
15408
+ var root_2$13 = /* @__PURE__ */ from_html(`<span class="go-cart-item-custom" data-testid="cart-item-custom"> </span>`);
15409
+ 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);
15410
+ function Tour$1($$anchor, $$props) {
15411
+ push($$props, true);
15412
+ let cartItem = prop($$props, "cartItem", 7);
15413
+ const product = /* @__PURE__ */ user_derived(() => cartItem().product);
15414
+ const slot = /* @__PURE__ */ user_derived(() => {
15415
+ if (!cartItem().time) return null;
15416
+ try {
15417
+ return {
15418
+ date: formatDate(cartItem().time, {
15419
+ year: "numeric",
15420
+ month: "numeric",
15421
+ day: "numeric"
15422
+ }, shop.locale),
15423
+ time: formatTime(cartItem().time)
15424
+ };
15425
+ } catch {
15426
+ return {
15427
+ date: cartItem().time,
15428
+ time: ""
15429
+ };
15430
+ }
15431
+ });
15432
+ const displayCustom = (value) => value == null ? "" : typeof value === "object" ? JSON.stringify(value) : String(value);
15433
+ const customs = /* @__PURE__ */ user_derived(() => Object.entries(get$2(product).customs ?? {}).filter(([, value]) => value != null && value !== ""));
15434
+ var $$exports = {
15435
+ get cartItem() {
15436
+ return cartItem();
15437
+ },
15438
+ set cartItem($$value) {
15439
+ cartItem($$value);
15440
+ flushSync();
15441
+ }
15442
+ };
15443
+ var fragment = root_3$9();
15444
+ var span = first_child(fragment);
15445
+ var text = child(span, true);
15446
+ reset(span);
15447
+ var span_1 = sibling(span, 2);
15448
+ var text_1 = child(span_1, true);
15449
+ reset(span_1);
15450
+ var node = sibling(span_1, 2);
15451
+ var consequent_1 = ($$anchor) => {
15452
+ var fragment_1 = root_1$18();
15453
+ var span_2 = first_child(fragment_1);
15454
+ var text_2 = child(span_2, true);
15455
+ reset(span_2);
15456
+ var node_1 = sibling(span_2, 2);
15457
+ var consequent = ($$anchor) => {
15458
+ var span_3 = root$51();
15459
+ var text_3 = child(span_3, true);
15460
+ reset(span_3);
15461
+ template_effect(() => set_text(text_3, get$2(slot).time));
15462
+ append($$anchor, span_3);
15463
+ };
15464
+ if_block(node_1, ($$render) => {
15465
+ if (get$2(slot).time) $$render(consequent);
15466
+ });
15467
+ template_effect(() => set_text(text_2, get$2(slot).date));
15468
+ append($$anchor, fragment_1);
15469
+ };
15470
+ if_block(node, ($$render) => {
15471
+ if (get$2(slot)) $$render(consequent_1);
15472
+ });
15473
+ each(sibling(node, 2), 17, () => get$2(customs), ([key, value]) => key, ($$anchor, $$item) => {
15474
+ var $$array = /* @__PURE__ */ user_derived(() => to_array(get$2($$item), 2));
15475
+ let key = () => get$2($$array)[0];
15476
+ let value = () => get$2($$array)[1];
15477
+ var span_4 = root_2$13();
15478
+ var text_4 = child(span_4);
15479
+ reset(span_4);
15480
+ template_effect(($0) => set_text(text_4, `${key() ?? ""}: ${$0 ?? ""}`), [() => displayCustom(value())]);
15481
+ append($$anchor, span_4);
15482
+ });
15483
+ template_effect(($0) => {
15484
+ set_text(text, get$2(product).title);
15485
+ set_text(text_1, $0);
15486
+ }, [() => shop.t("cart.item.participants", { count: get$2(product).participants })]);
15487
+ append($$anchor, fragment);
15488
+ return pop($$exports);
15489
+ }
15490
+ create_custom_element(Tour$1, { cartItem: {} }, [], [], { mode: "open" });
15491
+ //#endregion
15321
15492
  //#region src/lib/models/cart/quantityStepper.ts
15322
15493
  /** `+`: from below the order minimum jump to it (at least `1`); otherwise step up by one. Capped at `max`. */
15323
15494
  function increment(value, { min, max }) {
@@ -15351,7 +15522,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15351
15522
  }
15352
15523
  //#endregion
15353
15524
  //#region src/components/shared/quantityStepper/QuantityStepper.svelte
15354
- var root$49 = /* @__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>`);
15525
+ 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>`);
15355
15526
  function QuantityStepper($$anchor, $$props) {
15356
15527
  const inputId = props_id();
15357
15528
  push($$props, true);
@@ -15466,7 +15637,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15466
15637
  flushSync();
15467
15638
  }
15468
15639
  };
15469
- var div = root$49();
15640
+ var div = root$50();
15470
15641
  var button = child(div);
15471
15642
  var input = sibling(button, 2);
15472
15643
  remove_input_defaults(input);
@@ -15536,8 +15707,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15536
15707
  }
15537
15708
  //#endregion
15538
15709
  //#region src/components/shared/quantityStepper/QuantityControl.svelte
15539
- var root$48 = /* @__PURE__ */ from_html(`<option> </option>`);
15540
- var root_1$16 = /* @__PURE__ */ from_html(`<select class="go-quantity-select"></select>`);
15710
+ var root$49 = /* @__PURE__ */ from_html(`<option> </option>`);
15711
+ var root_1$17 = /* @__PURE__ */ from_html(`<select class="go-quantity-select"></select>`);
15541
15712
  function QuantityControl($$anchor, $$props) {
15542
15713
  push($$props, true);
15543
15714
  /** Current committed quantity. */
@@ -15642,9 +15813,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15642
15813
  }
15643
15814
  };
15644
15815
  var alternate = ($$anchor) => {
15645
- var select = root_1$16();
15816
+ var select = root_1$17();
15646
15817
  each(select, 21, () => generateQuantityOptions(min(), max(), { floor: deselectable() ? floor() : min() }), (q) => q.value, ($$anchor, q) => {
15647
- var option = root$48();
15818
+ var option = root$49();
15648
15819
  var text = child(option, true);
15649
15820
  reset(option);
15650
15821
  var option_value = {};
@@ -17528,9 +17699,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17528
17699
  var purify = createDOMPurify();
17529
17700
  //#endregion
17530
17701
  //#region src/components/cart/components/SubRow.svelte
17531
- var root$47 = /* @__PURE__ */ from_html(`<span class="go-sub-ticket-description"></span>`);
17532
- var root_1$15 = /* @__PURE__ */ from_html(`<span class="go-sub-ticket-quantity"> </span>`);
17533
- var root_2$11 = /* @__PURE__ */ from_html(`<li><span class="go-sub-ticket-title"> </span> <!> <!></li>`);
17702
+ var root$48 = /* @__PURE__ */ from_html(`<span class="go-sub-ticket-description"></span>`);
17703
+ var root_1$16 = /* @__PURE__ */ from_html(`<span class="go-sub-ticket-quantity"> </span>`);
17704
+ var root_2$12 = /* @__PURE__ */ from_html(`<li><span class="go-sub-ticket-title"> </span> <!> <!></li>`);
17534
17705
  function SubRow($$anchor, $$props) {
17535
17706
  push($$props, true);
17536
17707
  /** Capacity-aware ceiling from CapacityManager.subTicketMaxes; the combination max when absent. */
@@ -17573,13 +17744,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17573
17744
  flushSync();
17574
17745
  }
17575
17746
  };
17576
- var li = root_2$11();
17747
+ var li = root_2$12();
17577
17748
  var span = child(li);
17578
17749
  var text = child(span, true);
17579
17750
  reset(span);
17580
17751
  var node = sibling(span, 2);
17581
17752
  var consequent = ($$anchor) => {
17582
- var span_1 = root$47();
17753
+ var span_1 = root$48();
17583
17754
  html$2(span_1, () => purify.sanitize(sub().description), true);
17584
17755
  reset(span_1);
17585
17756
  append($$anchor, span_1);
@@ -17589,7 +17760,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17589
17760
  });
17590
17761
  var node_1 = sibling(node, 2);
17591
17762
  var consequent_1 = ($$anchor) => {
17592
- var span_2 = root_1$15();
17763
+ var span_2 = root_1$16();
17593
17764
  var text_1 = child(span_2, true);
17594
17765
  reset(span_2);
17595
17766
  template_effect(() => {
@@ -17648,12 +17819,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17648
17819
  }, [], [], { mode: "open" });
17649
17820
  //#endregion
17650
17821
  //#region src/components/cart/components/Item.svelte
17651
- var root$46 = /* @__PURE__ */ from_html(`<s class="go-cart-item-price-original"> </s> <span class="go-cart-item-price-discounted"> </span>`, 1);
17652
- var root_1$14 = /* @__PURE__ */ from_html(`<span class="go-cart-item-price-discounted"> </span>`);
17653
- var root_2$10 = /* @__PURE__ */ from_html(`<span> </span>`);
17654
- var root_3$7 = /* @__PURE__ */ from_html(`<li class="go-cart-item-remove"><button class="go-cart-remove">⨉</button></li>`);
17655
- var root_4$4 = /* @__PURE__ */ from_html(`<ul class="go-sub-tickets" role="list"></ul>`);
17656
- var root_5$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);
17822
+ var root$47 = /* @__PURE__ */ from_html(`<s class="go-cart-item-price-original"> </s> <span class="go-cart-item-price-discounted"> </span>`, 1);
17823
+ var root_1$15 = /* @__PURE__ */ from_html(`<span class="go-cart-item-price-discounted"> </span>`);
17824
+ var root_2$11 = /* @__PURE__ */ from_html(`<span data-testid="cart-item-participant-count"> </span>`);
17825
+ var root_3$8 = /* @__PURE__ */ from_html(`<span> </span>`);
17826
+ var root_4$4 = /* @__PURE__ */ from_html(`<li class="go-cart-item-remove"><button class="go-cart-remove">⨉</button></li>`);
17827
+ var root_5$2 = /* @__PURE__ */ from_html(`<ul class="go-sub-tickets" role="list"></ul>`);
17828
+ 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);
17657
17829
  function Item$1($$anchor, $$props) {
17658
17830
  push($$props, true);
17659
17831
  let displayItem = prop($$props, "displayItem", 7), displayCart = prop($$props, "displayCart", 7), preview = prop($$props, "preview", 7);
@@ -17718,8 +17890,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17718
17890
  };
17719
17891
  var fragment = comment();
17720
17892
  var node = first_child(fragment);
17721
- var consequent_7 = ($$anchor) => {
17722
- var fragment_1 = root_5$2();
17893
+ var consequent_9 = ($$anchor) => {
17894
+ var fragment_1 = root_6$2();
17723
17895
  var article = first_child(fragment_1);
17724
17896
  var ul = child(article);
17725
17897
  var li = child(ul);
@@ -17739,17 +17911,23 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17739
17911
  return displayItem();
17740
17912
  } });
17741
17913
  };
17914
+ var consequent_3 = ($$anchor) => {
17915
+ Tour$1($$anchor, { get cartItem() {
17916
+ return displayItem();
17917
+ } });
17918
+ };
17742
17919
  if_block(node_1, ($$render) => {
17743
17920
  if (displayItem().product.type === "Ticket") $$render(consequent);
17744
17921
  else if (displayItem().product.type === "Event") $$render(consequent_1, 1);
17745
17922
  else if (displayItem().product.type === "Coupon") $$render(consequent_2, 2);
17923
+ else if (displayItem().product.type === "Tour") $$render(consequent_3, 3);
17746
17924
  });
17747
17925
  reset(li);
17748
17926
  var li_1 = sibling(li, 2);
17749
17927
  var node_2 = child(li_1);
17750
- var consequent_3 = ($$anchor) => {
17751
- var fragment_5 = root$46();
17752
- var s = first_child(fragment_5);
17928
+ var consequent_4 = ($$anchor) => {
17929
+ var fragment_6 = root$47();
17930
+ var s = first_child(fragment_6);
17753
17931
  var text = child(s, true);
17754
17932
  reset(s);
17755
17933
  var span = sibling(s, 2);
@@ -17759,29 +17937,36 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17759
17937
  set_text(text, $0);
17760
17938
  set_text(text_1, $1);
17761
17939
  }, [() => formatCurrency(displayItem().display.originalPrice), () => formatCurrency(displayItem().final_price_cents)]);
17762
- append($$anchor, fragment_5);
17940
+ append($$anchor, fragment_6);
17763
17941
  };
17764
17942
  var alternate = ($$anchor) => {
17765
- var span_1 = root_1$14();
17943
+ var span_1 = root_1$15();
17766
17944
  var text_2 = child(span_1, true);
17767
17945
  reset(span_1);
17768
17946
  template_effect(($0) => set_text(text_2, $0), [() => formatCurrency(displayItem().final_price_cents)]);
17769
17947
  append($$anchor, span_1);
17770
17948
  };
17771
17949
  if_block(node_2, ($$render) => {
17772
- if (displayItem().display?.discounted) $$render(consequent_3);
17950
+ if (displayItem().display?.discounted) $$render(consequent_4);
17773
17951
  else $$render(alternate, -1);
17774
17952
  });
17775
17953
  reset(li_1);
17776
17954
  var li_2 = sibling(li_1, 2);
17777
17955
  var node_3 = child(li_2);
17778
- var consequent_4 = ($$anchor) => {
17779
- var span_2 = root_2$10();
17956
+ var consequent_5 = ($$anchor) => {
17957
+ var span_2 = root_2$11();
17780
17958
  var text_3 = child(span_2, true);
17781
17959
  reset(span_2);
17782
- template_effect(() => set_text(text_3, displayItem().quantity));
17960
+ template_effect(() => set_text(text_3, displayItem().product.participants));
17783
17961
  append($$anchor, span_2);
17784
17962
  };
17963
+ var consequent_6 = ($$anchor) => {
17964
+ var span_3 = root_3$8();
17965
+ var text_4 = child(span_3, true);
17966
+ reset(span_3);
17967
+ template_effect(() => set_text(text_4, displayItem().quantity));
17968
+ append($$anchor, span_3);
17969
+ };
17785
17970
  var alternate_1 = ($$anchor) => {
17786
17971
  {
17787
17972
  let $0 = /* @__PURE__ */ user_derived(() => displayItem().quantity ?? 0);
@@ -17804,13 +17989,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17804
17989
  }
17805
17990
  };
17806
17991
  if_block(node_3, ($$render) => {
17807
- if (preview()) $$render(consequent_4);
17992
+ if (displayItem().product.type === "Tour") $$render(consequent_5);
17993
+ else if (preview()) $$render(consequent_6, 1);
17808
17994
  else $$render(alternate_1, -1);
17809
17995
  });
17810
17996
  reset(li_2);
17811
17997
  var node_4 = sibling(li_2, 2);
17812
- var consequent_5 = ($$anchor) => {
17813
- var li_3 = root_3$7();
17998
+ var consequent_7 = ($$anchor) => {
17999
+ var li_3 = root_4$4();
17814
18000
  var button = child(li_3);
17815
18001
  reset(li_3);
17816
18002
  template_effect(($0) => set_attribute(button, "aria-label", $0), [() => shop.t("cart.item.remove")]);
@@ -17818,16 +18004,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17818
18004
  append($$anchor, li_3);
17819
18005
  };
17820
18006
  if_block(node_4, ($$render) => {
17821
- if (!preview()) $$render(consequent_5);
18007
+ if (!preview()) $$render(consequent_7);
17822
18008
  });
17823
18009
  var li_4 = sibling(node_4, 2);
17824
- var text_4 = child(li_4, true);
18010
+ var text_5 = child(li_4, true);
17825
18011
  reset(li_4);
17826
18012
  reset(ul);
17827
18013
  reset(article);
17828
18014
  var node_5 = sibling(article, 2);
17829
- var consequent_6 = ($$anchor) => {
17830
- var ul_1 = root_4$4();
18015
+ var consequent_8 = ($$anchor) => {
18016
+ var ul_1 = root_5$2();
17831
18017
  each(ul_1, 21, () => subTicketDefs(get$2(mantleProduct)), (sub) => sub.id, ($$anchor, sub) => {
17832
18018
  {
17833
18019
  let $0 = /* @__PURE__ */ user_derived(() => displayItem().mantle?.composition?.[get$2(sub).id] ?? 0);
@@ -17853,13 +18039,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17853
18039
  append($$anchor, ul_1);
17854
18040
  };
17855
18041
  if_block(node_5, ($$render) => {
17856
- if (get$2(mantleProduct)) $$render(consequent_6);
18042
+ if (get$2(mantleProduct)) $$render(consequent_8);
17857
18043
  });
17858
- template_effect(($0) => set_text(text_4, $0), [() => formatCurrency(displayItem().total_price_cents)]);
18044
+ template_effect(($0) => set_text(text_5, $0), [() => formatCurrency(displayItem().total_price_cents)]);
17859
18045
  append($$anchor, fragment_1);
17860
18046
  };
17861
18047
  if_block(node, ($$render) => {
17862
- if (get$2(capacity)) $$render(consequent_7);
18048
+ if (get$2(capacity)) $$render(consequent_9);
17863
18049
  });
17864
18050
  append($$anchor, fragment);
17865
18051
  return pop($$exports);
@@ -17872,9 +18058,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17872
18058
  }, [], [], { mode: "open" });
17873
18059
  //#endregion
17874
18060
  //#region src/components/cart/components/CartItems.svelte
17875
- var root$45 = /* @__PURE__ */ from_html(`<li class="go-cart-header-remove"></li>`);
17876
- var root_1$13 = /* @__PURE__ */ from_html(`<li class="go-cart-item"><!></li>`);
17877
- var root_2$9 = /* @__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>`);
18061
+ var root$46 = /* @__PURE__ */ from_html(`<li class="go-cart-header-remove"></li>`);
18062
+ var root_1$14 = /* @__PURE__ */ from_html(`<li class="go-cart-item"><!></li>`);
18063
+ 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>`);
17878
18064
  function CartItems($$anchor, $$props) {
17879
18065
  push($$props, true);
17880
18066
  const _details = getCartDetails($$props.$$host);
@@ -17882,7 +18068,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17882
18068
  var fragment = comment();
17883
18069
  var node = first_child(fragment);
17884
18070
  var consequent_1 = ($$anchor) => {
17885
- var ol = root_2$9();
18071
+ var ol = root_2$10();
17886
18072
  var li = child(ol);
17887
18073
  var ul = child(li);
17888
18074
  var li_1 = child(ul);
@@ -17896,7 +18082,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17896
18082
  reset(li_3);
17897
18083
  var node_1 = sibling(li_3, 2);
17898
18084
  var consequent = ($$anchor) => {
17899
- append($$anchor, root$45());
18085
+ append($$anchor, root$46());
17900
18086
  };
17901
18087
  if_block(node_1, ($$render) => {
17902
18088
  if (!get$2(details).preview) $$render(consequent);
@@ -17907,7 +18093,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17907
18093
  reset(ul);
17908
18094
  reset(li);
17909
18095
  each(sibling(li, 2), 17, () => get$2(details).displayCart.items, (item) => item.uuid, ($$anchor, item) => {
17910
- var li_6 = root_1$13();
18096
+ var li_6 = root_1$14();
17911
18097
  Item$1(child(li_6), {
17912
18098
  get displayItem() {
17913
18099
  return get$2(item);
@@ -17945,9 +18131,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17945
18131
  customElements.define("go-cart-items", create_custom_element(CartItems, {}, [], []));
17946
18132
  //#endregion
17947
18133
  //#region src/components/cart/components/CartCoupons.svelte
17948
- var root$44 = /* @__PURE__ */ from_html(`<li class="go-cart-coupon-remove-cell"><button class="go-cart-remove go-cart-coupon-remove">⨉</button></li>`);
17949
- var root_1$12 = /* @__PURE__ */ from_html(`<li><article class="go-cart-coupon-content"><ul><li class="go-cart-coupon-code"> </li> <!></ul></article></li>`);
17950
- var root_2$8 = /* @__PURE__ */ from_html(`<ol data-testid="cart-coupons"></ol>`);
18134
+ var root$45 = /* @__PURE__ */ from_html(`<li class="go-cart-coupon-remove-cell"><button class="go-cart-remove go-cart-coupon-remove">⨉</button></li>`);
18135
+ 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>`);
18136
+ var root_2$9 = /* @__PURE__ */ from_html(`<ol data-testid="cart-coupons"></ol>`);
17951
18137
  function CartCoupons($$anchor, $$props) {
17952
18138
  push($$props, true);
17953
18139
  const _details = getCartDetails($$props.$$host);
@@ -17955,9 +18141,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17955
18141
  var fragment = comment();
17956
18142
  var node = first_child(fragment);
17957
18143
  var consequent_1 = ($$anchor) => {
17958
- var ol = root_2$8();
18144
+ var ol = root_2$9();
17959
18145
  each(ol, 21, () => get$2(details).displayCart.coupons, (coupon) => coupon.code, ($$anchor, coupon) => {
17960
- var li = root_1$12();
18146
+ var li = root_1$13();
17961
18147
  let classes;
17962
18148
  var article = child(li);
17963
18149
  var ul = child(article);
@@ -17966,7 +18152,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17966
18152
  reset(li_1);
17967
18153
  var node_1 = sibling(li_1, 2);
17968
18154
  var consequent = ($$anchor) => {
17969
- var li_2 = root$44();
18155
+ var li_2 = root$45();
17970
18156
  var button = child(li_2);
17971
18157
  reset(li_2);
17972
18158
  template_effect(($0) => set_attribute(button, "aria-label", $0), [() => shop.t("cart.coupons.remove")]);
@@ -17998,7 +18184,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17998
18184
  customElements.define("go-cart-coupons", create_custom_element(CartCoupons, {}, [], []));
17999
18185
  //#endregion
18000
18186
  //#region src/components/cart/components/CartTotalAmount.svelte
18001
- var root$43 = /* @__PURE__ */ from_html(`<span class="go-cart-total-amount" data-testid="cart-total-amount"> </span>`);
18187
+ var root$44 = /* @__PURE__ */ from_html(`<span class="go-cart-total-amount" data-testid="cart-total-amount"> </span>`);
18002
18188
  function CartTotalAmount($$anchor, $$props) {
18003
18189
  push($$props, true);
18004
18190
  const _details = getCartDetails($$props.$$host);
@@ -18006,7 +18192,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18006
18192
  var fragment = comment();
18007
18193
  var node = first_child(fragment);
18008
18194
  var consequent = ($$anchor) => {
18009
- var span = root$43();
18195
+ var span = root$44();
18010
18196
  var text = child(span, true);
18011
18197
  reset(span);
18012
18198
  template_effect(($0) => set_text(text, $0), [() => formatCurrency(get$2(details).totalPriceCents)]);
@@ -18075,7 +18261,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18075
18261
  } }, [], []));
18076
18262
  //#endregion
18077
18263
  //#region src/components/cart/components/CartSubtotalAmount.svelte
18078
- var root$42 = /* @__PURE__ */ from_html(`<span class="go-cart-subtotal-amount" data-testid="cart-subtotal-amount"> </span>`);
18264
+ var root$43 = /* @__PURE__ */ from_html(`<span class="go-cart-subtotal-amount" data-testid="cart-subtotal-amount"> </span>`);
18079
18265
  function CartSubtotalAmount($$anchor, $$props) {
18080
18266
  push($$props, true);
18081
18267
  const _details = getCartDetails($$props.$$host);
@@ -18083,7 +18269,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18083
18269
  var fragment = comment();
18084
18270
  var node = first_child(fragment);
18085
18271
  var consequent = ($$anchor) => {
18086
- var span = root$42();
18272
+ var span = root$43();
18087
18273
  var text = child(span, true);
18088
18274
  reset(span);
18089
18275
  template_effect(($0) => set_text(text, $0), [() => formatCurrency(get$2(details).subtotalPriceCents)]);
@@ -18098,7 +18284,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18098
18284
  customElements.define("go-cart-subtotal-amount", create_custom_element(CartSubtotalAmount, {}, [], []));
18099
18285
  //#endregion
18100
18286
  //#region src/components/cart/components/CartDiscountedAmount.svelte
18101
- var root$41 = /* @__PURE__ */ from_html(`<span class="go-cart-discounted-amount" data-testid="cart-discounted-amount"><span class="go-cart-discounted-amount-sign">−</span> </span>`);
18287
+ 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>`);
18102
18288
  function CartDiscountedAmount($$anchor, $$props) {
18103
18289
  push($$props, true);
18104
18290
  const _details = getCartDetails($$props.$$host);
@@ -18106,7 +18292,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18106
18292
  var fragment = comment();
18107
18293
  var node = first_child(fragment);
18108
18294
  var consequent = ($$anchor) => {
18109
- var span = root$41();
18295
+ var span = root$42();
18110
18296
  var text = sibling(child(span), 1, true);
18111
18297
  reset(span);
18112
18298
  template_effect(($0) => set_text(text, $0), [() => formatCurrency(get$2(details).discountedAmountCents)]);
@@ -18259,7 +18445,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18259
18445
  }
18260
18446
  //#endregion
18261
18447
  //#region src/components/couponRedemption/CouponRedemption.svelte
18262
- var root$40 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
18448
+ var root$41 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
18263
18449
  function CouponRedemption($$anchor, $$props) {
18264
18450
  push($$props, true);
18265
18451
  Forms.defineForm({
@@ -18295,7 +18481,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18295
18481
  return runRedeem(form);
18296
18482
  }
18297
18483
  var $$exports = { flush };
18298
- var go_form = root$40();
18484
+ var go_form = root$41();
18299
18485
  set_custom_element_data(go_form, "formId", "couponRedemption");
18300
18486
  event("submit", go_form, redeem$1);
18301
18487
  append($$anchor, go_form);
@@ -18351,8 +18537,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18351
18537
  var goDonation = new GoDonation();
18352
18538
  //#endregion
18353
18539
  //#region src/components/donations/components/DonationCampaign.svelte
18354
- var root$39 = /* @__PURE__ */ from_html(`<img alt="logo"/>`);
18355
- var root_1$11 = /* @__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>`);
18540
+ var root$40 = /* @__PURE__ */ from_html(`<img alt="logo"/>`);
18541
+ 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>`);
18356
18542
  function DonationCampaign($$anchor, $$props) {
18357
18543
  push($$props, true);
18358
18544
  let campaign = prop($$props, "campaign", 7);
@@ -18366,12 +18552,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18366
18552
  flushSync();
18367
18553
  }
18368
18554
  };
18369
- var div = root_1$11();
18555
+ var div = root_1$12();
18370
18556
  let classes;
18371
18557
  var div_1 = child(div);
18372
18558
  var node = child(div_1);
18373
18559
  var consequent = ($$anchor) => {
18374
- var img = root$39();
18560
+ var img = root$40();
18375
18561
  template_effect(($0) => set_attribute(img, "src", $0), [() => campaign().picture.thumbnail.replace("thumbnail", "article_3x2")]);
18376
18562
  append($$anchor, img);
18377
18563
  };
@@ -18442,9 +18628,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18442
18628
  }
18443
18629
  //#endregion
18444
18630
  //#region src/components/donations/components/DonationSelector.svelte
18445
- var root$38 = /* @__PURE__ */ from_html(`<button> </button>`);
18446
- var root_1$10 = /* @__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>`);
18447
- var root_2$7 = /* @__PURE__ */ from_html(`<div class="donation-selection"><h3> </h3> <div class="donation-options"></div> <!></div>`);
18631
+ var root$39 = /* @__PURE__ */ from_html(`<button> </button>`);
18632
+ 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>`);
18633
+ var root_2$8 = /* @__PURE__ */ from_html(`<div class="donation-selection"><h3> </h3> <div class="donation-options"></div> <!></div>`);
18448
18634
  function DonationSelector($$anchor, $$props) {
18449
18635
  push($$props, true);
18450
18636
  const guestMaxLimit = goDonation.campaign?.guest_limit / 100;
@@ -18461,13 +18647,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18461
18647
  form.reportValidity();
18462
18648
  }
18463
18649
  }
18464
- var div = root_2$7();
18650
+ var div = root_2$8();
18465
18651
  var h3 = child(div);
18466
18652
  var text = child(h3, true);
18467
18653
  reset(h3);
18468
18654
  var div_1 = sibling(h3, 2);
18469
18655
  each(div_1, 20, () => goDonation.campaign?.options, (option) => option, ($$anchor, option) => {
18470
- var button = root$38();
18656
+ var button = root$39();
18471
18657
  let classes;
18472
18658
  var text_1 = child(button, true);
18473
18659
  reset(button);
@@ -18481,7 +18667,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18481
18667
  reset(div_1);
18482
18668
  var node = sibling(div_1, 2);
18483
18669
  var consequent = ($$anchor) => {
18484
- var form_1 = root_1$10();
18670
+ var form_1 = root_1$11();
18485
18671
  var div_2 = child(form_1);
18486
18672
  var label = child(div_2);
18487
18673
  var text_2 = child(label, true);
@@ -18511,7 +18697,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18511
18697
  create_custom_element(DonationSelector, {}, [], [], { mode: "open" });
18512
18698
  //#endregion
18513
18699
  //#region src/components/donations/components/Donations.svelte
18514
- var root$37 = /* @__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>`);
18700
+ 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>`);
18515
18701
  function Donations($$anchor, $$props) {
18516
18702
  push($$props, false);
18517
18703
  onMount(() => {
@@ -18521,7 +18707,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18521
18707
  var fragment = comment();
18522
18708
  var node = first_child(fragment);
18523
18709
  var consequent_1 = ($$anchor) => {
18524
- var div = root$37();
18710
+ var div = root$38();
18525
18711
  var node_1 = child(div);
18526
18712
  each(node_1, 1, () => shop?.donations?.campaigns, (campaign) => campaign.id, ($$anchor, campaign) => {
18527
18713
  DonationCampaign($$anchor, { get campaign() {
@@ -24360,7 +24546,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
24360
24546
  "monthFormat",
24361
24547
  "yearFormat"
24362
24548
  ]);
24363
- var root$36 = /* @__PURE__ */ from_html(`<div><!></div>`);
24549
+ var root$37 = /* @__PURE__ */ from_html(`<div><!></div>`);
24364
24550
  function Calendar$1($$anchor, $$props) {
24365
24551
  push($$props, true);
24366
24552
  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);
@@ -24632,7 +24818,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
24632
24818
  append($$anchor, fragment_1);
24633
24819
  };
24634
24820
  var alternate = ($$anchor) => {
24635
- var div = root$36();
24821
+ var div = root$37();
24636
24822
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
24637
24823
  snippet(child(div), () => children() ?? noop$1, () => rootState.snippetProps);
24638
24824
  reset(div);
@@ -24687,7 +24873,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
24687
24873
  "ref",
24688
24874
  "id"
24689
24875
  ]);
24690
- var root$35 = /* @__PURE__ */ from_html(`<div><!></div>`);
24876
+ var root$36 = /* @__PURE__ */ from_html(`<div><!></div>`);
24691
24877
  function Calendar_day($$anchor, $$props) {
24692
24878
  const uid = props_id();
24693
24879
  push($$props, true);
@@ -24742,7 +24928,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
24742
24928
  append($$anchor, fragment_1);
24743
24929
  };
24744
24930
  var alternate_1 = ($$anchor) => {
24745
- var div = root$35();
24931
+ var div = root$36();
24746
24932
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
24747
24933
  var node_2 = child(div);
24748
24934
  var consequent_1 = ($$anchor) => {
@@ -24787,7 +24973,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
24787
24973
  "ref",
24788
24974
  "id"
24789
24975
  ]);
24790
- var root$34 = /* @__PURE__ */ from_html(`<table><!></table>`);
24976
+ var root$35 = /* @__PURE__ */ from_html(`<table><!></table>`);
24791
24977
  function Calendar_grid($$anchor, $$props) {
24792
24978
  const uid = props_id();
24793
24979
  push($$props, true);
@@ -24835,7 +25021,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
24835
25021
  append($$anchor, fragment_1);
24836
25022
  };
24837
25023
  var alternate = ($$anchor) => {
24838
- var table = root$34();
25024
+ var table = root$35();
24839
25025
  attribute_effect(table, () => ({ ...get$2(mergedProps) }));
24840
25026
  snippet(child(table), () => children() ?? noop$1);
24841
25027
  reset(table);
@@ -24866,7 +25052,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
24866
25052
  "ref",
24867
25053
  "id"
24868
25054
  ]);
24869
- var root$33 = /* @__PURE__ */ from_html(`<tbody><!></tbody>`);
25055
+ var root$34 = /* @__PURE__ */ from_html(`<tbody><!></tbody>`);
24870
25056
  function Calendar_grid_body($$anchor, $$props) {
24871
25057
  const uid = props_id();
24872
25058
  push($$props, true);
@@ -24914,7 +25100,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
24914
25100
  append($$anchor, fragment_1);
24915
25101
  };
24916
25102
  var alternate = ($$anchor) => {
24917
- var tbody = root$33();
25103
+ var tbody = root$34();
24918
25104
  attribute_effect(tbody, () => ({ ...get$2(mergedProps) }));
24919
25105
  snippet(child(tbody), () => children() ?? noop$1);
24920
25106
  reset(tbody);
@@ -24947,7 +25133,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
24947
25133
  "date",
24948
25134
  "month"
24949
25135
  ]);
24950
- var root$32 = /* @__PURE__ */ from_html(`<td><!></td>`);
25136
+ var root$33 = /* @__PURE__ */ from_html(`<td><!></td>`);
24951
25137
  function Calendar_cell($$anchor, $$props) {
24952
25138
  const uid = props_id();
24953
25139
  push($$props, true);
@@ -25018,7 +25204,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25018
25204
  append($$anchor, fragment_1);
25019
25205
  };
25020
25206
  var alternate = ($$anchor) => {
25021
- var td = root$32();
25207
+ var td = root$33();
25022
25208
  attribute_effect(td, () => ({ ...get$2(mergedProps) }));
25023
25209
  snippet(child(td), () => children() ?? noop$1, () => cellState.snippetProps);
25024
25210
  reset(td);
@@ -25051,7 +25237,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25051
25237
  "ref",
25052
25238
  "id"
25053
25239
  ]);
25054
- var root$31 = /* @__PURE__ */ from_html(`<thead><!></thead>`);
25240
+ var root$32 = /* @__PURE__ */ from_html(`<thead><!></thead>`);
25055
25241
  function Calendar_grid_head($$anchor, $$props) {
25056
25242
  const uid = props_id();
25057
25243
  push($$props, true);
@@ -25099,7 +25285,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25099
25285
  append($$anchor, fragment_1);
25100
25286
  };
25101
25287
  var alternate = ($$anchor) => {
25102
- var thead = root$31();
25288
+ var thead = root$32();
25103
25289
  attribute_effect(thead, () => ({ ...get$2(mergedProps) }));
25104
25290
  snippet(child(thead), () => children() ?? noop$1);
25105
25291
  reset(thead);
@@ -25130,7 +25316,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25130
25316
  "ref",
25131
25317
  "id"
25132
25318
  ]);
25133
- var root$30 = /* @__PURE__ */ from_html(`<th><!></th>`);
25319
+ var root$31 = /* @__PURE__ */ from_html(`<th><!></th>`);
25134
25320
  function Calendar_head_cell($$anchor, $$props) {
25135
25321
  const uid = props_id();
25136
25322
  push($$props, true);
@@ -25178,7 +25364,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25178
25364
  append($$anchor, fragment_1);
25179
25365
  };
25180
25366
  var alternate = ($$anchor) => {
25181
- var th = root$30();
25367
+ var th = root$31();
25182
25368
  attribute_effect(th, () => ({ ...get$2(mergedProps) }));
25183
25369
  snippet(child(th), () => children() ?? noop$1);
25184
25370
  reset(th);
@@ -25209,7 +25395,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25209
25395
  "ref",
25210
25396
  "id"
25211
25397
  ]);
25212
- var root$29 = /* @__PURE__ */ from_html(`<tr><!></tr>`);
25398
+ var root$30 = /* @__PURE__ */ from_html(`<tr><!></tr>`);
25213
25399
  function Calendar_grid_row($$anchor, $$props) {
25214
25400
  const uid = props_id();
25215
25401
  push($$props, true);
@@ -25257,7 +25443,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25257
25443
  append($$anchor, fragment_1);
25258
25444
  };
25259
25445
  var alternate = ($$anchor) => {
25260
- var tr = root$29();
25446
+ var tr = root$30();
25261
25447
  attribute_effect(tr, () => ({ ...get$2(mergedProps) }));
25262
25448
  snippet(child(tr), () => children() ?? noop$1);
25263
25449
  reset(tr);
@@ -25288,7 +25474,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25288
25474
  "ref",
25289
25475
  "id"
25290
25476
  ]);
25291
- var root$28 = /* @__PURE__ */ from_html(`<header><!></header>`);
25477
+ var root$29 = /* @__PURE__ */ from_html(`<header><!></header>`);
25292
25478
  function Calendar_header($$anchor, $$props) {
25293
25479
  const uid = props_id();
25294
25480
  push($$props, true);
@@ -25336,7 +25522,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25336
25522
  append($$anchor, fragment_1);
25337
25523
  };
25338
25524
  var alternate = ($$anchor) => {
25339
- var header = root$28();
25525
+ var header = root$29();
25340
25526
  attribute_effect(header, () => ({ ...get$2(mergedProps) }));
25341
25527
  snippet(child(header), () => children() ?? noop$1);
25342
25528
  reset(header);
@@ -25367,7 +25553,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25367
25553
  "ref",
25368
25554
  "id"
25369
25555
  ]);
25370
- var root$27 = /* @__PURE__ */ from_html(`<div><!></div>`);
25556
+ var root$28 = /* @__PURE__ */ from_html(`<div><!></div>`);
25371
25557
  function Calendar_heading($$anchor, $$props) {
25372
25558
  const uid = props_id();
25373
25559
  push($$props, true);
@@ -25418,7 +25604,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25418
25604
  append($$anchor, fragment_1);
25419
25605
  };
25420
25606
  var alternate_1 = ($$anchor) => {
25421
- var div = root$27();
25607
+ var div = root$28();
25422
25608
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
25423
25609
  var node_2 = child(div);
25424
25610
  var consequent_1 = ($$anchor) => {
@@ -25464,7 +25650,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25464
25650
  "ref",
25465
25651
  "tabindex"
25466
25652
  ]);
25467
- var root$26 = /* @__PURE__ */ from_html(`<button><!></button>`);
25653
+ var root$27 = /* @__PURE__ */ from_html(`<button><!></button>`);
25468
25654
  function Calendar_next_button($$anchor, $$props) {
25469
25655
  const uid = props_id();
25470
25656
  push($$props, true);
@@ -25519,7 +25705,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25519
25705
  append($$anchor, fragment_1);
25520
25706
  };
25521
25707
  var alternate = ($$anchor) => {
25522
- var button = root$26();
25708
+ var button = root$27();
25523
25709
  attribute_effect(button, () => ({ ...get$2(mergedProps) }));
25524
25710
  snippet(child(button), () => children() ?? noop$1);
25525
25711
  reset(button);
@@ -25552,7 +25738,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25552
25738
  "ref",
25553
25739
  "tabindex"
25554
25740
  ]);
25555
- var root$25 = /* @__PURE__ */ from_html(`<button><!></button>`);
25741
+ var root$26 = /* @__PURE__ */ from_html(`<button><!></button>`);
25556
25742
  function Calendar_prev_button($$anchor, $$props) {
25557
25743
  const uid = props_id();
25558
25744
  push($$props, true);
@@ -25607,7 +25793,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25607
25793
  append($$anchor, fragment_1);
25608
25794
  };
25609
25795
  var alternate = ($$anchor) => {
25610
- var button = root$25();
25796
+ var button = root$26();
25611
25797
  attribute_effect(button, () => ({ ...get$2(mergedProps) }));
25612
25798
  snippet(child(button), () => children() ?? noop$1);
25613
25799
  reset(button);
@@ -25636,7 +25822,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25636
25822
  "$$host",
25637
25823
  "value"
25638
25824
  ]);
25639
- var root$24 = /* @__PURE__ */ from_html(`<input/>`);
25825
+ var root$25 = /* @__PURE__ */ from_html(`<input/>`);
25640
25826
  function Hidden_input($$anchor, $$props) {
25641
25827
  push($$props, true);
25642
25828
  let value = prop($$props, "value", 15), restProps = /* @__PURE__ */ rest_props($$props, rest_excludes$13);
@@ -25662,7 +25848,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25662
25848
  var fragment = comment();
25663
25849
  var node = first_child(fragment);
25664
25850
  var consequent = ($$anchor) => {
25665
- var input = root$24();
25851
+ var input = root$25();
25666
25852
  attribute_effect(input, () => ({
25667
25853
  ...get$2(mergedProps),
25668
25854
  value: value()
@@ -25670,7 +25856,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
25670
25856
  append($$anchor, input);
25671
25857
  };
25672
25858
  var alternate = ($$anchor) => {
25673
- var input_1 = root$24();
25859
+ var input_1 = root$25();
25674
25860
  attribute_effect(input_1, () => ({ ...get$2(mergedProps) }), void 0, void 0, void 0, void 0, true);
25675
25861
  bind_value(input_1, value);
25676
25862
  append($$anchor, input_1);
@@ -27983,7 +28169,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
27983
28169
  "tooltip",
27984
28170
  "contentPointerEvents"
27985
28171
  ]);
27986
- var root$23 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
28172
+ var root$24 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
27987
28173
  function Popper_layer_inner($$anchor, $$props) {
27988
28174
  push($$props, true);
27989
28175
  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);
@@ -28261,7 +28447,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
28261
28447
  const content = ($$anchor, $$arg0) => {
28262
28448
  let floatingProps = () => $$arg0?.().props;
28263
28449
  let wrapperProps = () => $$arg0?.().wrapperProps;
28264
- var fragment_1 = root$23();
28450
+ var fragment_1 = root$24();
28265
28451
  var node = first_child(fragment_1);
28266
28452
  var consequent = ($$anchor) => {
28267
28453
  Scroll_lock($$anchor, { get preventScroll() {
@@ -30625,8 +30811,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
30625
30811
  "children",
30626
30812
  "child"
30627
30813
  ]);
30628
- var root$22 = /* @__PURE__ */ from_html(`<div><!></div>`);
30629
- var root_1$9 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
30814
+ var root$23 = /* @__PURE__ */ from_html(`<div><!></div>`);
30815
+ var root_1$10 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
30630
30816
  function Date_field_input($$anchor, $$props) {
30631
30817
  const uid = props_id();
30632
30818
  push($$props, true);
@@ -30674,7 +30860,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
30674
30860
  flushSync();
30675
30861
  }
30676
30862
  };
30677
- var fragment = root_1$9();
30863
+ var fragment = root_1$10();
30678
30864
  var node = first_child(fragment);
30679
30865
  var consequent = ($$anchor) => {
30680
30866
  var fragment_1 = comment();
@@ -30685,7 +30871,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
30685
30871
  append($$anchor, fragment_1);
30686
30872
  };
30687
30873
  var alternate = ($$anchor) => {
30688
- var div = root$22();
30874
+ var div = root$23();
30689
30875
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
30690
30876
  snippet(child(div), () => children() ?? noop$1, () => ({ segments: inputState.root.segmentContents }));
30691
30877
  reset(div);
@@ -30718,7 +30904,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
30718
30904
  "children",
30719
30905
  "child"
30720
30906
  ]);
30721
- var root$21 = /* @__PURE__ */ from_html(`<div><!></div>`);
30907
+ var root$22 = /* @__PURE__ */ from_html(`<div><!></div>`);
30722
30908
  function Date_field_label($$anchor, $$props) {
30723
30909
  const uid = props_id();
30724
30910
  push($$props, true);
@@ -30766,7 +30952,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
30766
30952
  append($$anchor, fragment_1);
30767
30953
  };
30768
30954
  var alternate = ($$anchor) => {
30769
- var div = root$21();
30955
+ var div = root$22();
30770
30956
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
30771
30957
  snippet(child(div), () => children() ?? noop$1);
30772
30958
  reset(div);
@@ -30798,7 +30984,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
30798
30984
  "child",
30799
30985
  "part"
30800
30986
  ]);
30801
- var root$20 = /* @__PURE__ */ from_html(`<span><!></span>`);
30987
+ var root$21 = /* @__PURE__ */ from_html(`<span><!></span>`);
30802
30988
  function Date_field_segment($$anchor, $$props) {
30803
30989
  const uid = props_id();
30804
30990
  push($$props, true);
@@ -30853,7 +31039,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
30853
31039
  append($$anchor, fragment_1);
30854
31040
  };
30855
31041
  var alternate = ($$anchor) => {
30856
- var span = root$20();
31042
+ var span = root$21();
30857
31043
  attribute_effect(span, () => ({ ...get$2(mergedProps) }));
30858
31044
  snippet(child(span), () => children() ?? noop$1);
30859
31045
  reset(span);
@@ -31875,7 +32061,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31875
32061
  "id",
31876
32062
  "ref"
31877
32063
  ]);
31878
- var root$19 = /* @__PURE__ */ from_html(`<div><!></div>`);
32064
+ var root$20 = /* @__PURE__ */ from_html(`<div><!></div>`);
31879
32065
  function Date_picker_calendar($$anchor, $$props) {
31880
32066
  const uid = props_id();
31881
32067
  push($$props, true);
@@ -31955,7 +32141,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31955
32141
  append($$anchor, fragment_1);
31956
32142
  };
31957
32143
  var alternate = ($$anchor) => {
31958
- var div = root$19();
32144
+ var div = root$20();
31959
32145
  attribute_effect(div, () => ({ ...get$2(mergedProps) }));
31960
32146
  snippet(child(div), () => children() ?? noop$1, () => calendarState.snippetProps);
31961
32147
  reset(div);
@@ -31995,7 +32181,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
31995
32181
  "customAnchor",
31996
32182
  "style"
31997
32183
  ]);
31998
- var root$18 = /* @__PURE__ */ from_html(`<div><div><!></div></div>`);
32184
+ var root$19 = /* @__PURE__ */ from_html(`<div><div><!></div></div>`);
31999
32185
  function Popover_content($$anchor, $$props) {
32000
32186
  const uid = props_id();
32001
32187
  push($$props, true);
@@ -32130,7 +32316,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32130
32316
  append($$anchor, fragment_3);
32131
32317
  };
32132
32318
  var alternate = ($$anchor) => {
32133
- var div = root$18();
32319
+ var div = root$19();
32134
32320
  attribute_effect(div, () => ({ ...wrapperProps() }));
32135
32321
  var div_1 = child(div);
32136
32322
  attribute_effect(div_1, () => ({ ...get$2(finalProps) }));
@@ -32200,7 +32386,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32200
32386
  append($$anchor, fragment_6);
32201
32387
  };
32202
32388
  var alternate_1 = ($$anchor) => {
32203
- var div_2 = root$18();
32389
+ var div_2 = root$19();
32204
32390
  attribute_effect(div_2, () => ({ ...wrapperProps() }));
32205
32391
  var div_3 = child(div_2);
32206
32392
  attribute_effect(div_3, () => ({ ...get$2(finalProps) }));
@@ -32331,7 +32517,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32331
32517
  "openDelay",
32332
32518
  "closeDelay"
32333
32519
  ]);
32334
- var root$17 = /* @__PURE__ */ from_html(`<button><!></button>`);
32520
+ var root$18 = /* @__PURE__ */ from_html(`<button><!></button>`);
32335
32521
  function Popover_trigger($$anchor, $$props) {
32336
32522
  const uid = props_id();
32337
32523
  push($$props, true);
@@ -32426,7 +32612,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32426
32612
  append($$anchor, fragment_2);
32427
32613
  };
32428
32614
  var alternate = ($$anchor) => {
32429
- var button = root$17();
32615
+ var button = root$18();
32430
32616
  attribute_effect(button, () => ({ ...get$2(mergedProps) }));
32431
32617
  snippet(child(button), () => children() ?? noop$1);
32432
32618
  reset(button);
@@ -32506,8 +32692,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32506
32692
  }, [], [], { mode: "open" });
32507
32693
  //#endregion
32508
32694
  //#region src/components/forms/ui/generic/DatePicker.svelte
32509
- var root$16 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
32510
- var root_1$8 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
32695
+ var root$17 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
32696
+ var root_1$9 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
32511
32697
  function DatePicker_1($$anchor, $$props) {
32512
32698
  push($$props, true);
32513
32699
  let dateString = prop($$props, "dateString", 15), labelClass = prop($$props, "labelClass", 7), inputClass = prop($$props, "inputClass", 7), labelText = prop($$props, "labelText", 7);
@@ -32564,7 +32750,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32564
32750
  set(date, $$value, true);
32565
32751
  },
32566
32752
  children: ($$anchor, $$slotProps) => {
32567
- var fragment_1 = root_1$8();
32753
+ var fragment_1 = root_1$9();
32568
32754
  var node_1 = first_child(fragment_1);
32569
32755
  component(node_1, () => Date_field_label, ($$anchor, DatePicker_Label) => {
32570
32756
  DatePicker_Label($$anchor, {
@@ -32594,7 +32780,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32594
32780
  {
32595
32781
  const children = ($$anchor, $$arg0) => {
32596
32782
  let segments = () => $$arg0?.().segments;
32597
- var fragment_4 = root$16();
32783
+ var fragment_4 = root$17();
32598
32784
  var node_5 = first_child(fragment_4);
32599
32785
  each(node_5, 17, segments, index$1, ($$anchor, $$item) => {
32600
32786
  let part = () => get$2($$item).part;
@@ -32645,12 +32831,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32645
32831
  const children = ($$anchor, $$arg0) => {
32646
32832
  let months = () => $$arg0?.().months;
32647
32833
  let weekdays = () => $$arg0?.().weekdays;
32648
- var fragment_8 = root$16();
32834
+ var fragment_8 = root$17();
32649
32835
  var node_10 = first_child(fragment_8);
32650
32836
  component(node_10, () => Calendar_header, ($$anchor, DatePicker_Header) => {
32651
32837
  DatePicker_Header($$anchor, {
32652
32838
  children: ($$anchor, $$slotProps) => {
32653
- var fragment_9 = root_1$8();
32839
+ var fragment_9 = root_1$9();
32654
32840
  var node_11 = first_child(fragment_9);
32655
32841
  component(node_11, () => Calendar_prev_button, ($$anchor, DatePicker_PrevButton) => {
32656
32842
  DatePicker_PrevButton($$anchor, { class: "go-datepicker-previous" });
@@ -32672,7 +32858,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32672
32858
  component(first_child(fragment_10), () => Calendar_grid, ($$anchor, DatePicker_Grid) => {
32673
32859
  DatePicker_Grid($$anchor, {
32674
32860
  children: ($$anchor, $$slotProps) => {
32675
- var fragment_11 = root$16();
32861
+ var fragment_11 = root$17();
32676
32862
  var node_16 = first_child(fragment_11);
32677
32863
  component(node_16, () => Calendar_grid_head, ($$anchor, DatePicker_GridHead) => {
32678
32864
  DatePicker_GridHead($$anchor, {
@@ -32800,10 +32986,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32800
32986
  "inputClass",
32801
32987
  "host"
32802
32988
  ]);
32803
- var root$15 = /* @__PURE__ */ from_html(`<span class="go-field-star" aria-hidden="true">*</span>`);
32804
- var root_1$7 = /* @__PURE__ */ from_html(` <!>`, 1);
32805
- var root_2$6 = /* @__PURE__ */ from_html(`<label><!></label> <input/>`, 1);
32806
- var root_3$6 = /* @__PURE__ */ from_html(`<label><!></label> <textarea></textarea>`, 1);
32989
+ var root$16 = /* @__PURE__ */ from_html(`<span class="go-field-star" aria-hidden="true">*</span>`);
32990
+ var root_1$8 = /* @__PURE__ */ from_html(` <!>`, 1);
32991
+ var root_2$7 = /* @__PURE__ */ from_html(`<label><!></label> <input/>`, 1);
32992
+ var root_3$7 = /* @__PURE__ */ from_html(`<label><!></label> <textarea></textarea>`, 1);
32807
32993
  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>`);
32808
32994
  var root_5$1 = /* @__PURE__ */ from_html(`<label><!></label> <input/> <!>`, 1);
32809
32995
  var root_6$1 = /* @__PURE__ */ from_html(`<label><input/> <span class="go-checkbox-label"><!></span></label>`);
@@ -32822,11 +33008,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32822
33008
  push($$props, true);
32823
33009
  const labelText = ($$anchor) => {
32824
33010
  next();
32825
- var fragment = root_1$7();
33011
+ var fragment = root_1$8();
32826
33012
  var text = first_child(fragment);
32827
33013
  var node = sibling(text);
32828
33014
  var consequent = ($$anchor) => {
32829
- append($$anchor, root$15());
33015
+ append($$anchor, root$16());
32830
33016
  };
32831
33017
  if_block(node, ($$render) => {
32832
33018
  if (field().required) $$render(consequent);
@@ -32835,7 +33021,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32835
33021
  append($$anchor, fragment);
32836
33022
  };
32837
33023
  const input = ($$anchor) => {
32838
- var fragment_1 = root_2$6();
33024
+ var fragment_1 = root_2$7();
32839
33025
  var label_1 = first_child(fragment_1);
32840
33026
  labelText(child(label_1));
32841
33027
  reset(label_1);
@@ -32856,7 +33042,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32856
33042
  append($$anchor, fragment_1);
32857
33043
  };
32858
33044
  const textarea = ($$anchor) => {
32859
- var fragment_2 = root_3$6();
33045
+ var fragment_2 = root_3$7();
32860
33046
  var label_2 = first_child(fragment_2);
32861
33047
  labelText(child(label_2));
32862
33048
  reset(label_2);
@@ -33226,10 +33412,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33226
33412
  }, [], [], { mode: "open" });
33227
33413
  //#endregion
33228
33414
  //#region src/components/forms/ui/generic/Field.svelte
33229
- var root$14 = /* @__PURE__ */ from_html(`<span> </span>`);
33230
- var root_1$6 = /* @__PURE__ */ from_html(`<li> </li>`);
33231
- var root_2$5 = /* @__PURE__ */ from_html(`<ul class="go-field-errors"></ul>`);
33232
- var root_3$5 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
33415
+ var root$15 = /* @__PURE__ */ from_html(`<span> </span>`);
33416
+ var root_1$7 = /* @__PURE__ */ from_html(`<li> </li>`);
33417
+ var root_2$6 = /* @__PURE__ */ from_html(`<ul class="go-field-errors"></ul>`);
33418
+ var root_3$6 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
33233
33419
  function Field($$anchor, $$props) {
33234
33420
  push($$props, true);
33235
33421
  let key = prop($$props, "key", 7), required = prop($$props, "required", 7, false), labelClass = prop($$props, "labelClass", 7), inputClass = prop($$props, "inputClass", 7);
@@ -33287,7 +33473,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33287
33473
  flushSync();
33288
33474
  }
33289
33475
  };
33290
- var fragment = root_3$5();
33476
+ var fragment = root_3$6();
33291
33477
  var node = first_child(fragment);
33292
33478
  InputAndLabel(node, {
33293
33479
  get describedByIds() {
@@ -33309,7 +33495,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33309
33495
  });
33310
33496
  var node_1 = sibling(node, 2);
33311
33497
  var consequent = ($$anchor) => {
33312
- var span = root$14();
33498
+ var span = root$15();
33313
33499
  var text = child(span, true);
33314
33500
  reset(span);
33315
33501
  template_effect(() => {
@@ -33323,9 +33509,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33323
33509
  });
33324
33510
  var node_2 = sibling(node_1, 2);
33325
33511
  var consequent_1 = ($$anchor) => {
33326
- var ul = root_2$5();
33512
+ var ul = root_2$6();
33327
33513
  each(ul, 21, () => get$2(allErrors), index$1, ($$anchor, error) => {
33328
- var li = root_1$6();
33514
+ var li = root_1$7();
33329
33515
  var text_1 = child(li, true);
33330
33516
  reset(li);
33331
33517
  template_effect(() => set_text(text_1, get$2(error)));
@@ -33365,7 +33551,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33365
33551
  }, [], ["getField"]));
33366
33552
  //#endregion
33367
33553
  //#region src/components/forms/ui/generic/AllFields.svelte
33368
- var root$13 = /* @__PURE__ */ from_html(`<go-field></go-field>`, 2);
33554
+ var root$14 = /* @__PURE__ */ from_html(`<go-field></go-field>`, 2);
33369
33555
  function AllFields($$anchor, $$props) {
33370
33556
  push($$props, true);
33371
33557
  let _details = getDetails$1($$props.$$host);
@@ -33373,7 +33559,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33373
33559
  let allFields = /* @__PURE__ */ user_derived(() => get$2(details) ? Forms.getFormFields(get$2(details)?.formId) : []);
33374
33560
  var fragment = comment();
33375
33561
  each(first_child(fragment), 17, () => get$2(allFields), (field) => field.key, ($$anchor, field) => {
33376
- var go_field = root$13();
33562
+ var go_field = root$14();
33377
33563
  template_effect(() => set_custom_element_data(go_field, "key", get$2(field).key));
33378
33564
  template_effect(() => set_custom_element_data(go_field, "required", get$2(field).required));
33379
33565
  append($$anchor, go_field);
@@ -33384,10 +33570,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33384
33570
  customElements.define("go-all-fields", create_custom_element(AllFields, {}, [], []));
33385
33571
  //#endregion
33386
33572
  //#region src/components/forms/ui/generic/ErrorsFeedback.svelte
33387
- var root$12 = /* @__PURE__ */ from_html(`<p aria-hidden="true"> </p>`);
33388
- var root_1$5 = /* @__PURE__ */ from_html(`<li> </li>`);
33389
- var root_2$4 = /* @__PURE__ */ from_html(`<ul class="go-error-feedback-api-errors"></ul>`);
33390
- var root_3$4 = /* @__PURE__ */ from_html(`<div><p aria-live="assertive" class="sr-only"><!></p> <!> <!></div>`);
33573
+ var root$13 = /* @__PURE__ */ from_html(`<p aria-hidden="true"> </p>`);
33574
+ var root_1$6 = /* @__PURE__ */ from_html(`<li> </li>`);
33575
+ var root_2$5 = /* @__PURE__ */ from_html(`<ul class="go-error-feedback-api-errors"></ul>`);
33576
+ var root_3$5 = /* @__PURE__ */ from_html(`<div><p aria-live="assertive" class="sr-only"><!></p> <!> <!></div>`);
33391
33577
  function ErrorsFeedback($$anchor, $$props) {
33392
33578
  push($$props, true);
33393
33579
  const _details = getDetails$1($$props.$$host);
@@ -33408,7 +33594,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33408
33594
  $$props.$$host.classList.toggle("go-feedback", true);
33409
33595
  $$props.$$host.setAttribute("data-num-errors", get$2(numErrors).toString());
33410
33596
  });
33411
- var div = root_3$4();
33597
+ var div = root_3$5();
33412
33598
  var p = child(div);
33413
33599
  var node = child(p);
33414
33600
  var consequent = ($$anchor) => {
@@ -33422,7 +33608,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33422
33608
  reset(p);
33423
33609
  var node_1 = sibling(p, 2);
33424
33610
  var consequent_1 = ($$anchor) => {
33425
- var p_1 = root$12();
33611
+ var p_1 = root$13();
33426
33612
  var text_1 = child(p_1, true);
33427
33613
  reset(p_1);
33428
33614
  template_effect(($0) => set_text(text_1, $0), [() => shop.t("forms.errorSummary", { count: get$2(errorsRealtime) })]);
@@ -33433,9 +33619,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33433
33619
  });
33434
33620
  var node_2 = sibling(node_1, 2);
33435
33621
  var consequent_2 = ($$anchor) => {
33436
- var ul = root_2$4();
33622
+ var ul = root_2$5();
33437
33623
  each(ul, 21, () => get$2(details)?.apiErrors, index$1, ($$anchor, error) => {
33438
- var li = root_1$5();
33624
+ var li = root_1$6();
33439
33625
  var text_2 = child(li, true);
33440
33626
  reset(li);
33441
33627
  template_effect(() => set_text(text_2, get$2(error)));
@@ -33455,9 +33641,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33455
33641
  customElements.define("go-errors-feedback", create_custom_element(ErrorsFeedback, {}, [], []));
33456
33642
  //#endregion
33457
33643
  //#region src/components/forms/ui/generic/FormFeedback.svelte
33458
- var root$11 = /* @__PURE__ */ from_html(`<div class="go-form-feedback"><!></div>`);
33644
+ var root$12 = /* @__PURE__ */ from_html(`<div class="go-form-feedback"><!></div>`);
33459
33645
  function FormFeedback($$anchor, $$props) {
33460
- var div = root$11();
33646
+ var div = root$12();
33461
33647
  slot(child(div), $$props, "default", {}, null);
33462
33648
  reset(div);
33463
33649
  append($$anchor, div);
@@ -33491,7 +33677,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33491
33677
  } }, [], []));
33492
33678
  //#endregion
33493
33679
  //#region src/components/forms/ui/generic/SuccessFeedback.svelte
33494
- var root$10 = /* @__PURE__ */ from_html(`<div aria-live="assertive"> </div>`);
33680
+ var root$11 = /* @__PURE__ */ from_html(`<div aria-live="assertive"> </div>`);
33495
33681
  function SuccessFeedback($$anchor, $$props) {
33496
33682
  push($$props, true);
33497
33683
  const _details = getDetails$1($$props.$$host);
@@ -33499,7 +33685,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33499
33685
  var fragment = comment();
33500
33686
  var node = first_child(fragment);
33501
33687
  var consequent = ($$anchor) => {
33502
- var div = root$10();
33688
+ var div = root$11();
33503
33689
  let classes;
33504
33690
  var text = child(div, true);
33505
33691
  reset(div);
@@ -35772,6 +35958,47 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
35772
35958
  type: "String"
35773
35959
  } }, [], []));
35774
35960
  //#endregion
35961
+ //#region src/components/membershipActivation/MembershipActivation.svelte
35962
+ function MembershipActivation($$anchor, $$props) {
35963
+ push($$props, true);
35964
+ let custom = prop($$props, "custom", 7, false);
35965
+ Forms.defineForm({
35966
+ id: "membershipActivation",
35967
+ submitLabel: "membership.activation.actions.submit",
35968
+ fields: [{
35969
+ key: "email",
35970
+ required: true
35971
+ }]
35972
+ });
35973
+ async function onSubmit(event) {
35974
+ const details = event.target.details;
35975
+ if ((await shop.activateMembership(details.formData)).response?.ok) $$props.$$host.dispatchEvent(new Event("go-success", {
35976
+ bubbles: true,
35977
+ composed: true
35978
+ }));
35979
+ else details.apiErrors = [shop.t("membership.activation.form.errors.requestFailed")];
35980
+ }
35981
+ wrapInElement($$props.$$host, "go-form", {
35982
+ "form-id": "membershipActivation",
35983
+ custom: custom()
35984
+ });
35985
+ $$props.$$host.addEventListener("submit", onSubmit);
35986
+ return pop({
35987
+ get custom() {
35988
+ return custom();
35989
+ },
35990
+ set custom($$value = false) {
35991
+ custom($$value);
35992
+ flushSync();
35993
+ }
35994
+ });
35995
+ }
35996
+ customElements.define("go-membership-activation", create_custom_element(MembershipActivation, { custom: {
35997
+ attribute: "custom",
35998
+ reflect: true,
35999
+ type: "Boolean"
36000
+ } }, [], []));
36001
+ //#endregion
35775
36002
  //#region src/components/order/lib/OrderDetails.svelte.ts
35776
36003
  var OrderDetails = class {
35777
36004
  #token = /* @__PURE__ */ state();
@@ -35833,10 +36060,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
35833
36060
  } }, [], ["orderDetails"]));
35834
36061
  //#endregion
35835
36062
  //#region src/components/order/components/subcomponents/breakdown/items/Event.svelte
35836
- var root$9 = /* @__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);
35837
- var root_1$4 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities"> </span>`, 1);
35838
- var root_2$3 = /* @__PURE__ */ from_html(`<a aria-label="iCal link"> </a>`);
35839
- var root_3$3 = /* @__PURE__ */ from_html(`<li><article><ul><li class="go-order-breakdown-count">1</li> <li class="go-order-breakdown-product"><span class="go-order-item-title"> </span> <!> <!> <a class="go-ticket-download" target="_blank" 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>`);
36063
+ 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);
36064
+ var root_1$5 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities"> </span>`, 1);
36065
+ var root_2$4 = /* @__PURE__ */ from_html(`<a aria-label="iCal link"> </a>`);
36066
+ 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>`);
35840
36067
  function Event$1($$anchor, $$props) {
35841
36068
  push($$props, true);
35842
36069
  let item = prop($$props, "item", 7), orderDetails = prop($$props, "orderDetails", 7);
@@ -35856,7 +36083,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
35856
36083
  flushSync();
35857
36084
  }
35858
36085
  };
35859
- var li = root_3$3();
36086
+ var li = root_3$4();
35860
36087
  var article = child(li);
35861
36088
  var ul = child(article);
35862
36089
  var li_1 = sibling(child(ul), 2);
@@ -35865,7 +36092,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
35865
36092
  reset(span);
35866
36093
  var node = sibling(span, 2);
35867
36094
  var consequent = ($$anchor) => {
35868
- var fragment = root$9();
36095
+ var fragment = root$10();
35869
36096
  var span_1 = first_child(fragment);
35870
36097
  var text_1 = child(span_1, true);
35871
36098
  reset(span_1);
@@ -35886,7 +36113,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
35886
36113
  });
35887
36114
  var node_1 = sibling(node, 2);
35888
36115
  each(node_1, 17, () => item().attributes.quantities, (scalePrice) => scalePrice.id, ($$anchor, scalePrice) => {
35889
- var fragment_1 = root_1$4();
36116
+ var fragment_1 = root_1$5();
35890
36117
  var span_3 = sibling(first_child(fragment_1), 2);
35891
36118
  var text_3 = child(span_3);
35892
36119
  reset(span_3);
@@ -35903,7 +36130,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
35903
36130
  var li_3 = sibling(li_2, 4);
35904
36131
  var node_2 = child(li_3);
35905
36132
  var consequent_1 = ($$anchor) => {
35906
- var a_1 = root_2$3();
36133
+ var a_1 = root_2$4();
35907
36134
  var text_6 = child(a_1, true);
35908
36135
  reset(a_1);
35909
36136
  template_effect(($0) => {
@@ -35938,10 +36165,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
35938
36165
  }, [], [], { mode: "open" });
35939
36166
  //#endregion
35940
36167
  //#region src/components/order/components/subcomponents/breakdown/items/TicketSale.svelte
35941
- var root$8 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities" data-testid="order-sub-ticket"> </span>`, 1);
35942
- var root_1$3 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span> <span class="go-cart-item-time"> </span>`, 1);
35943
- var root_2$2 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span>`);
35944
- var root_3$2 = /* @__PURE__ */ from_html(`<!> <br/> <a class="go-ticket-download" target="_blank" rel="noopener noreferrer"> </a>`, 1);
36168
+ var root$9 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities" data-testid="order-sub-ticket"> </span>`, 1);
36169
+ var root_1$4 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span> <span class="go-cart-item-time"> </span>`, 1);
36170
+ var root_2$3 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span>`);
36171
+ var root_3$3 = /* @__PURE__ */ from_html(`<!> <br/> <a class="go-ticket-download" target="_blank" rel="noopener noreferrer"> </a>`, 1);
35945
36172
  var root_4$2 = /* @__PURE__ */ from_html(`<br/> <a class="go-ticket-personalization"> </a>`, 1);
35946
36173
  var root_5 = /* @__PURE__ */ from_html(`<a aria-label="passbook link"><img alt="apple wallet icon"/></a>`);
35947
36174
  var root_6 = /* @__PURE__ */ from_html(`<a aria-label="iCal link"> </a>`);
@@ -35986,7 +36213,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
35986
36213
  reset(span);
35987
36214
  var node_2 = sibling(span, 2);
35988
36215
  each(node_2, 17, () => get$2(subTicketSales), (sub) => sub.id, ($$anchor, sub) => {
35989
- var fragment_2 = root$8();
36216
+ var fragment_2 = root$9();
35990
36217
  var span_1 = sibling(first_child(fragment_2), 2);
35991
36218
  var text_1 = child(span_1);
35992
36219
  reset(span_1);
@@ -35996,10 +36223,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
35996
36223
  var node_3 = sibling(node_2, 2);
35997
36224
  var consequent_2 = ($$anchor) => {
35998
36225
  const barcodeId = /* @__PURE__ */ user_derived(() => item().attributes.barcodes[index]?.id);
35999
- var fragment_3 = root_3$2();
36226
+ var fragment_3 = root_3$3();
36000
36227
  var node_4 = first_child(fragment_3);
36001
36228
  var consequent = ($$anchor) => {
36002
- var fragment_4 = root_1$3();
36229
+ var fragment_4 = root_1$4();
36003
36230
  var span_2 = first_child(fragment_4);
36004
36231
  var text_2 = child(span_2, true);
36005
36232
  reset(span_2);
@@ -36016,7 +36243,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36016
36243
  append($$anchor, fragment_4);
36017
36244
  };
36018
36245
  var consequent_1 = ($$anchor) => {
36019
- var span_4 = root_2$2();
36246
+ var span_4 = root_2$3();
36020
36247
  var text_4 = child(span_4, true);
36021
36248
  reset(span_4);
36022
36249
  template_effect(($0) => set_text(text_4, $0), [() => formatDate(item().attributes.start_time, {
@@ -36163,6 +36390,96 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36163
36390
  orderDetails: {}
36164
36391
  }, [], [], { mode: "open" });
36165
36392
  //#endregion
36393
+ //#region src/components/order/components/subcomponents/breakdown/items/Tour.svelte
36394
+ 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);
36395
+ var root_1$3 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities"> </span>`, 1);
36396
+ var root_2$2 = /* @__PURE__ */ from_html(`<a aria-label="iCal link"> </a>`);
36397
+ 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>`);
36398
+ function Tour($$anchor, $$props) {
36399
+ push($$props, true);
36400
+ let item = prop($$props, "item", 7);
36401
+ const priceRows = /* @__PURE__ */ user_derived(() => (item().attributes.prices ?? []).filter((row) => row.title && row.quantity != null));
36402
+ var $$exports = {
36403
+ get item() {
36404
+ return item();
36405
+ },
36406
+ set item($$value) {
36407
+ item($$value);
36408
+ flushSync();
36409
+ }
36410
+ };
36411
+ var li = root_3$2();
36412
+ var article = child(li);
36413
+ var ul = child(article);
36414
+ var li_1 = sibling(child(ul), 2);
36415
+ var span = child(li_1);
36416
+ var text = child(span, true);
36417
+ reset(span);
36418
+ var span_1 = sibling(span, 2);
36419
+ var text_1 = child(span_1, true);
36420
+ reset(span_1);
36421
+ var node = sibling(span_1, 2);
36422
+ var consequent = ($$anchor) => {
36423
+ var fragment = root$8();
36424
+ var span_2 = first_child(fragment);
36425
+ var text_2 = child(span_2, true);
36426
+ reset(span_2);
36427
+ var span_3 = sibling(span_2, 2);
36428
+ var text_3 = child(span_3, true);
36429
+ reset(span_3);
36430
+ template_effect(($0, $1) => {
36431
+ set_text(text_2, $0);
36432
+ set_text(text_3, $1);
36433
+ }, [() => formatDate(item().attributes.start_time, {
36434
+ month: "numeric",
36435
+ day: "numeric"
36436
+ }, shop.locale), () => formatTime(item().attributes.start_time)]);
36437
+ append($$anchor, fragment);
36438
+ };
36439
+ if_block(node, ($$render) => {
36440
+ if (item().attributes.start_time) $$render(consequent);
36441
+ });
36442
+ each(sibling(node, 2), 17, () => get$2(priceRows), (row) => row.title, ($$anchor, row) => {
36443
+ var fragment_1 = root_1$3();
36444
+ var span_4 = sibling(first_child(fragment_1), 2);
36445
+ var text_4 = child(span_4);
36446
+ reset(span_4);
36447
+ template_effect(() => set_text(text_4, `${get$2(row).quantity ?? ""} x ${get$2(row).title ?? ""}`));
36448
+ append($$anchor, fragment_1);
36449
+ });
36450
+ reset(li_1);
36451
+ var li_2 = sibling(li_1, 2);
36452
+ var text_5 = child(li_2, true);
36453
+ reset(li_2);
36454
+ var li_3 = sibling(li_2, 4);
36455
+ var node_2 = child(li_3);
36456
+ var consequent_1 = ($$anchor) => {
36457
+ var a = root_2$2();
36458
+ var text_6 = child(a, true);
36459
+ reset(a);
36460
+ template_effect(($0) => {
36461
+ set_attribute(a, "href", shop.apiUrl + item().attributes.ical_url);
36462
+ set_text(text_6, $0);
36463
+ }, [() => shop.t("common.calendar")]);
36464
+ append($$anchor, a);
36465
+ };
36466
+ if_block(node_2, ($$render) => {
36467
+ if (item().attributes.ical_url) $$render(consequent_1);
36468
+ });
36469
+ reset(li_3);
36470
+ reset(ul);
36471
+ reset(article);
36472
+ reset(li);
36473
+ template_effect(($0, $1) => {
36474
+ set_text(text, item().attributes.title);
36475
+ set_text(text_1, $0);
36476
+ set_text(text_5, $1);
36477
+ }, [() => shop.t("cart.item.participants", { count: item().attributes.participants }), () => formatCurrency$1(item().price_cents)]);
36478
+ append($$anchor, li);
36479
+ return pop($$exports);
36480
+ }
36481
+ create_custom_element(Tour, { item: {} }, [], [], { mode: "open" });
36482
+ //#endregion
36166
36483
  //#region src/components/order/components/subcomponents/breakdown/Breakdown.svelte
36167
36484
  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>`);
36168
36485
  function Breakdown($$anchor, $$props) {
@@ -36172,7 +36489,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36172
36489
  let order = /* @__PURE__ */ user_derived(() => get$2(orderDetails)?.order);
36173
36490
  var fragment = comment();
36174
36491
  var node = first_child(fragment);
36175
- var consequent_2 = ($$anchor) => {
36492
+ var consequent_3 = ($$anchor) => {
36176
36493
  var ol = root$7();
36177
36494
  var li = child(ol);
36178
36495
  var ul = child(li);
@@ -36212,9 +36529,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36212
36529
  }
36213
36530
  });
36214
36531
  };
36532
+ var consequent_2 = ($$anchor) => {
36533
+ Tour($$anchor, { get item() {
36534
+ return get$2(item);
36535
+ } });
36536
+ };
36215
36537
  if_block(node_2, ($$render) => {
36216
36538
  if (get$2(item).type === "Ticket") $$render(consequent);
36217
36539
  else if (get$2(item).type === "Event") $$render(consequent_1, 1);
36540
+ else if (get$2(item).type === "Tour") $$render(consequent_2, 2);
36218
36541
  });
36219
36542
  append($$anchor, fragment_1);
36220
36543
  });
@@ -36241,7 +36564,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
36241
36564
  append($$anchor, ol);
36242
36565
  };
36243
36566
  if_block(node, ($$render) => {
36244
- if (get$2(order) && get$2(orderDetails)) $$render(consequent_2);
36567
+ if (get$2(order) && get$2(orderDetails)) $$render(consequent_3);
36245
36568
  });
36246
36569
  append($$anchor, fragment);
36247
36570
  pop();
@@ -37717,20 +38040,61 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
37717
38040
  type: "Boolean"
37718
38041
  } }, [], []));
37719
38042
  //#endregion
38043
+ //#region src/go/cart.ts
38044
+ var REQUIRED = [
38045
+ "id",
38046
+ "time",
38047
+ "participants",
38048
+ "languageId",
38049
+ "totalPriceCents",
38050
+ "title"
38051
+ ];
38052
+ function validate(options) {
38053
+ for (const key of REQUIRED) if (options[key] == null || options[key] === "") throw new Error(`(go.cart.addTour) '${key}' is required`);
38054
+ if (!(options.participants > 0)) throw new Error(`(go.cart.addTour) 'participants' must be a positive number`);
38055
+ if (options.quantities) {
38056
+ const quantitiesSum = sum(Object.values(options.quantities));
38057
+ if (quantitiesSum !== options.participants) throw new Error(`(go.cart.addTour) 'quantities' must sum to 'participants' (${quantitiesSum} !== ${options.participants})`);
38058
+ }
38059
+ }
38060
+ /**
38061
+ * Adds a group-tour booking to the cart and resolves with the cart line's
38062
+ * uuid. Every call appends a NEW line — identical bookings coexist; use the
38063
+ * returned uuid to deduplicate or remove.
38064
+ *
38065
+ * Tours are not priced by the shop API: `totalPriceCents` is the
38066
+ * integrator-supplied booking total (incl. mandatory surcharges) and is
38067
+ * verified by the backend only at checkout.
38068
+ */
38069
+ async function addTour(options) {
38070
+ validate(options);
38071
+ if (!shop.cart) throw new Error("(go.cart.addTour) shop not initialized — call go.init first");
38072
+ const { time, ...attributes } = options;
38073
+ const item = createCartItem(createUITour(attributes), {
38074
+ quantity: 1,
38075
+ time
38076
+ });
38077
+ shop.cart.addItem(item);
38078
+ return item.uuid;
38079
+ }
38080
+ //#endregion
37720
38081
  //#region src/go/go.ts
37721
38082
  var initPromise = null;
37722
38083
  async function ensureShopReady() {
37723
38084
  if (initPromise) return initPromise;
37724
- if (!shop.client) throw new Error("[go.api] Shop not initialized — call go.init({ shop, api, locale }) first.");
38085
+ if (!shop.client) throw new Error("[go] Shop not initialized — call go.init({ shop, api, locale }) first.");
37725
38086
  }
38087
+ var resolveCommand = (method) => method.split(".").reduce((target, key) => target?.[key], go);
37726
38088
  async function initGo(window) {
37727
38089
  const stub = window.go;
37728
38090
  let q = stub && stub._queue || [];
37729
- console.log(q);
38091
+ 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.");
37730
38092
  for (const command of q) {
37731
38093
  if (command.method === "load") continue;
37732
38094
  try {
37733
- await go[command.method](command.options);
38095
+ const fn = resolveCommand(command.method);
38096
+ if (typeof fn !== "function") throw new Error(`(go) unknown command: ${command.method}`);
38097
+ await fn(command.options);
37734
38098
  } catch (e) {
37735
38099
  console.error(e);
37736
38100
  }
@@ -37761,7 +38125,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
37761
38125
  await ensureShopReady();
37762
38126
  return shop.asyncFetch(() => shop.getOrders(params));
37763
38127
  }
37764
- }
38128
+ },
38129
+ cart: { addTour: async (options) => {
38130
+ await ensureShopReady();
38131
+ return addTour(options);
38132
+ } }
37765
38133
  };
37766
38134
  (async () => {
37767
38135
  await initGo(window);