@gomusdev/web-components 1.10.0 → 1.11.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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -12510,7 +12510,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
12510
12510
|
const timeRegex2 = `${time2}(?:${opts.join("|")})`;
|
|
12511
12511
|
return new RegExp(`^${dateSource}T(?:${timeRegex2})$`);
|
|
12512
12512
|
}
|
|
12513
|
-
const string$
|
|
12513
|
+
const string$1 = (params) => {
|
|
12514
12514
|
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
12515
12515
|
return new RegExp(`^${regex}$`);
|
|
12516
12516
|
};
|
|
@@ -12858,7 +12858,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
12858
12858
|
});
|
|
12859
12859
|
const $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
|
|
12860
12860
|
$ZodType.init(inst, def);
|
|
12861
|
-
inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string$
|
|
12861
|
+
inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string$1(inst._zod.bag);
|
|
12862
12862
|
inst._zod.parse = (payload, _) => {
|
|
12863
12863
|
if (def.coerce)
|
|
12864
12864
|
try {
|
|
@@ -14215,7 +14215,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
14215
14215
|
inst.time = (params) => inst.check(time(params));
|
|
14216
14216
|
inst.duration = (params) => inst.check(duration(params));
|
|
14217
14217
|
});
|
|
14218
|
-
function string
|
|
14218
|
+
function string(params) {
|
|
14219
14219
|
return _string(ZodString, params);
|
|
14220
14220
|
}
|
|
14221
14221
|
const ZodStringFormat = /* @__PURE__ */ $constructor("ZodStringFormat", (inst, def) => {
|
|
@@ -14519,7 +14519,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
14519
14519
|
placeholder: "",
|
|
14520
14520
|
description: "",
|
|
14521
14521
|
autocomplete: "email",
|
|
14522
|
-
validator: string
|
|
14522
|
+
validator: string().email("Invalid email")
|
|
14523
14523
|
},
|
|
14524
14524
|
confirmEmail: {
|
|
14525
14525
|
key: "confirmEmail",
|
|
@@ -14529,7 +14529,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
14529
14529
|
placeholder: "",
|
|
14530
14530
|
description: "",
|
|
14531
14531
|
autocomplete: "email",
|
|
14532
|
-
validator: string
|
|
14532
|
+
validator: string().email("Invalid email").min(1, "Please confirm your email")
|
|
14533
14533
|
},
|
|
14534
14534
|
password: {
|
|
14535
14535
|
key: "password",
|
|
@@ -14548,7 +14548,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
14548
14548
|
placeholder: "",
|
|
14549
14549
|
description: "",
|
|
14550
14550
|
autocomplete: "new-password",
|
|
14551
|
-
validator: string
|
|
14551
|
+
validator: string().min(6, "Password must be at least 6 characters")
|
|
14552
14552
|
},
|
|
14553
14553
|
confirmPassword: {
|
|
14554
14554
|
key: "confirmPassword",
|
|
@@ -14558,7 +14558,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
14558
14558
|
placeholder: "",
|
|
14559
14559
|
description: "",
|
|
14560
14560
|
autocomplete: "new-password",
|
|
14561
|
-
validator: string
|
|
14561
|
+
validator: string().min(6, "Please confirm your password")
|
|
14562
14562
|
},
|
|
14563
14563
|
addressee: {
|
|
14564
14564
|
key: "addressee",
|
|
@@ -14658,7 +14658,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
14658
14658
|
placeholder: "",
|
|
14659
14659
|
description: "",
|
|
14660
14660
|
autocomplete: "off",
|
|
14661
|
-
validator: string
|
|
14661
|
+
validator: string().date()
|
|
14662
14662
|
}
|
|
14663
14663
|
};
|
|
14664
14664
|
function createField(data, required) {
|
|
@@ -15373,12 +15373,13 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
15373
15373
|
return new Intl.NumberFormat("de-DE", { style: "currency", currency: "EUR" }).format(priceCents / 100);
|
|
15374
15374
|
}
|
|
15375
15375
|
var root_2$p = /* @__PURE__ */ from_html(`<li data-go-cart-header-remove="">remove</li>`);
|
|
15376
|
-
var root_5$2 = /* @__PURE__ */ from_html(`<span> </span>`);
|
|
15377
|
-
var root_4$4 = /* @__PURE__ */ from_html(`<span> </span> <!>`, 1);
|
|
15376
|
+
var root_5$2 = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
|
|
15377
|
+
var root_4$4 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
|
|
15378
15378
|
var root_6$1 = /* @__PURE__ */ from_html(`<li data-go-cart-item-remove=""><button>⨉</button></li>`);
|
|
15379
|
-
var root_3$6 = /* @__PURE__ */ from_html(`<li data-go-cart-item=""><article><ul><li data-go-cart-item-title=""> <!></li> <li data-go-cart-item-price=""> </li> <li data-go-cart-item-count=""> </li> <!> <li data-go-cart-item-sum=""> </li></ul></article></li>`);
|
|
15379
|
+
var root_3$6 = /* @__PURE__ */ from_html(`<li data-go-cart-item=""><article><ul><li data-go-cart-item-title=""><span class="go-cart-item-title" data-testid="cart-item-title"> </span> <!></li> <li data-go-cart-item-price=""> </li> <li data-go-cart-item-count=""> </li> <!> <li data-go-cart-item-sum=""> </li></ul></article></li>`);
|
|
15380
15380
|
var root_7$3 = /* @__PURE__ */ from_html(`<li data-go-cart-footer-remove=""></li>`);
|
|
15381
|
-
var
|
|
15381
|
+
var root_8 = /* @__PURE__ */ from_html(`<a href="javascript:void(0);" class="go-cart-checkout-button" data-testid="checkout-button">Checkout</a>`);
|
|
15382
|
+
var root_1$b = /* @__PURE__ */ from_html(`<ol data-testid="cart"><li data-go-cart-header="" data-testid="cart-header"><ul><li data-go-cart-header-title="">Product</li> <li data-go-cart-header-price="">Price</li> <li data-go-cart-header-count="">Count</li> <!> <li data-go-cart-header-sum="">Sum</li></ul></li> <!> <li data-go-cart-footer="" data-testid="cart-footer"><ul><li data-go-cart-footer-title=""></li> <li data-go-cart-footer-price=""></li> <li data-go-cart-footer-count=""></li> <!> <li data-go-cart-footer-sum="" data-go-cart-sum=""> </li></ul></li></ol> <!>`, 1);
|
|
15382
15383
|
function Cart($$anchor, $$props) {
|
|
15383
15384
|
push($$props, true);
|
|
15384
15385
|
const preview = prop($$props, "preview", 7, false);
|
|
@@ -15399,7 +15400,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
15399
15400
|
var fragment = comment();
|
|
15400
15401
|
var node = first_child(fragment);
|
|
15401
15402
|
{
|
|
15402
|
-
var
|
|
15403
|
+
var consequent_6 = ($$anchor2) => {
|
|
15403
15404
|
var fragment_1 = root_1$b();
|
|
15404
15405
|
var ol = first_child(fragment_1);
|
|
15405
15406
|
var li = child(ol);
|
|
@@ -15423,22 +15424,24 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
15423
15424
|
var article = child(li_2);
|
|
15424
15425
|
var ul_1 = child(article);
|
|
15425
15426
|
var li_3 = child(ul_1);
|
|
15426
|
-
var
|
|
15427
|
-
var
|
|
15427
|
+
var span = child(li_3);
|
|
15428
|
+
var text2 = child(span, true);
|
|
15429
|
+
reset(span);
|
|
15430
|
+
var node_3 = sibling(span, 2);
|
|
15428
15431
|
{
|
|
15429
15432
|
var consequent_2 = ($$anchor4) => {
|
|
15430
15433
|
var fragment_2 = root_4$4();
|
|
15431
|
-
var
|
|
15432
|
-
var text_1 = child(
|
|
15433
|
-
reset(
|
|
15434
|
-
var node_4 = sibling(
|
|
15434
|
+
var span_1 = first_child(fragment_2);
|
|
15435
|
+
var text_1 = child(span_1, true);
|
|
15436
|
+
reset(span_1);
|
|
15437
|
+
var node_4 = sibling(span_1, 2);
|
|
15435
15438
|
{
|
|
15436
15439
|
var consequent_1 = ($$anchor5) => {
|
|
15437
|
-
var
|
|
15438
|
-
var text_2 = child(
|
|
15439
|
-
reset(
|
|
15440
|
+
var span_2 = root_5$2();
|
|
15441
|
+
var text_2 = child(span_2, true);
|
|
15442
|
+
reset(span_2);
|
|
15440
15443
|
template_effect(($0) => set_text(text_2, $0), [() => formatTime(get$2(cartItem).attributes.time)]);
|
|
15441
|
-
append($$anchor5,
|
|
15444
|
+
append($$anchor5, span_2);
|
|
15442
15445
|
};
|
|
15443
15446
|
if_block(node_4, ($$render) => {
|
|
15444
15447
|
if (get$2(cartItem).item.type === "timeslot") $$render(consequent_1);
|
|
@@ -15481,7 +15484,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
15481
15484
|
reset(li_2);
|
|
15482
15485
|
template_effect(() => {
|
|
15483
15486
|
set_attribute(article, "data-testid", get$2(cartItem).uuid);
|
|
15484
|
-
set_text(text2,
|
|
15487
|
+
set_text(text2, get$2(cartItem).item.title);
|
|
15485
15488
|
set_text(text_3, get$2(cartItem).final_price_formatted);
|
|
15486
15489
|
set_text(text_4, get$2(cartItem).quantity);
|
|
15487
15490
|
set_text(text_5, get$2(cartItem).total_price_formatted);
|
|
@@ -15506,13 +15509,22 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
15506
15509
|
reset(ul_2);
|
|
15507
15510
|
reset(li_8);
|
|
15508
15511
|
reset(ol);
|
|
15509
|
-
var
|
|
15510
|
-
|
|
15512
|
+
var node_7 = sibling(ol, 2);
|
|
15513
|
+
{
|
|
15514
|
+
var consequent_5 = ($$anchor3) => {
|
|
15515
|
+
var a2 = root_8();
|
|
15516
|
+
a2.__click = navToCheckout;
|
|
15517
|
+
append($$anchor3, a2);
|
|
15518
|
+
};
|
|
15519
|
+
if_block(node_7, ($$render) => {
|
|
15520
|
+
if (!preview()) $$render(consequent_5);
|
|
15521
|
+
});
|
|
15522
|
+
}
|
|
15511
15523
|
template_effect(() => set_text(text_6, cart.totalFormatted));
|
|
15512
15524
|
append($$anchor2, fragment_1);
|
|
15513
15525
|
};
|
|
15514
15526
|
if_block(node, ($$render) => {
|
|
15515
|
-
if (cart.items.length) $$render(
|
|
15527
|
+
if (cart.items.length) $$render(consequent_6);
|
|
15516
15528
|
});
|
|
15517
15529
|
}
|
|
15518
15530
|
append($$anchor, fragment);
|
|
@@ -15520,6 +15532,12 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
15520
15532
|
}
|
|
15521
15533
|
delegate(["click"]);
|
|
15522
15534
|
customElements.define("go-cart", create_custom_element(Cart, { preview: {} }, [], [], false));
|
|
15535
|
+
function CartEmpty($$anchor, $$props) {
|
|
15536
|
+
push($$props, true);
|
|
15537
|
+
wrapInElement($$props.$$host, "go-if", { when: "data.cart.items.length === 0" });
|
|
15538
|
+
pop();
|
|
15539
|
+
}
|
|
15540
|
+
customElements.define("go-cart-empty", create_custom_element(CartEmpty, {}, [], [], false));
|
|
15523
15541
|
enable_legacy_mode_flag();
|
|
15524
15542
|
function CartCounter($$anchor, $$props) {
|
|
15525
15543
|
push($$props, false);
|
|
@@ -30090,7 +30108,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
30090
30108
|
const func = new Function("data", `return ${expression};`);
|
|
30091
30109
|
return func(data);
|
|
30092
30110
|
} catch (error) {
|
|
30093
|
-
throw new Error(`Error while evaluating when (${
|
|
30111
|
+
throw new Error(`Error while evaluating when (${expression}) in go-if: ${error.message}`);
|
|
30094
30112
|
}
|
|
30095
30113
|
}
|
|
30096
30114
|
const validTicketSelectionFilters = ["timeslot", "day", "annual"];
|
|
@@ -30220,6 +30238,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
30220
30238
|
if (!get$2(formDetails)) return;
|
|
30221
30239
|
get$2(data).formData = get$2(formDetails).formData;
|
|
30222
30240
|
});
|
|
30241
|
+
get$2(data).cart = cart;
|
|
30223
30242
|
let evaluatedWhen = /* @__PURE__ */ user_derived(() => evaluateExpression(when(), get$2(data)));
|
|
30224
30243
|
let content = null;
|
|
30225
30244
|
user_effect(() => {
|
|
@@ -12510,7 +12510,7 @@ function datetime$1(args) {
|
|
|
12510
12510
|
const timeRegex2 = `${time2}(?:${opts.join("|")})`;
|
|
12511
12511
|
return new RegExp(`^${dateSource}T(?:${timeRegex2})$`);
|
|
12512
12512
|
}
|
|
12513
|
-
const string$
|
|
12513
|
+
const string$1 = (params) => {
|
|
12514
12514
|
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
12515
12515
|
return new RegExp(`^${regex}$`);
|
|
12516
12516
|
};
|
|
@@ -12858,7 +12858,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
12858
12858
|
});
|
|
12859
12859
|
const $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
|
|
12860
12860
|
$ZodType.init(inst, def);
|
|
12861
|
-
inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string$
|
|
12861
|
+
inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string$1(inst._zod.bag);
|
|
12862
12862
|
inst._zod.parse = (payload, _) => {
|
|
12863
12863
|
if (def.coerce)
|
|
12864
12864
|
try {
|
|
@@ -14215,7 +14215,7 @@ const ZodString2 = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
|
14215
14215
|
inst.time = (params) => inst.check(time(params));
|
|
14216
14216
|
inst.duration = (params) => inst.check(duration(params));
|
|
14217
14217
|
});
|
|
14218
|
-
function string
|
|
14218
|
+
function string(params) {
|
|
14219
14219
|
return _string(ZodString2, params);
|
|
14220
14220
|
}
|
|
14221
14221
|
const ZodStringFormat = /* @__PURE__ */ $constructor("ZodStringFormat", (inst, def) => {
|
|
@@ -14519,7 +14519,7 @@ var allFields = {
|
|
|
14519
14519
|
placeholder: "",
|
|
14520
14520
|
description: "",
|
|
14521
14521
|
autocomplete: "email",
|
|
14522
|
-
validator: string
|
|
14522
|
+
validator: string().email("Invalid email")
|
|
14523
14523
|
},
|
|
14524
14524
|
confirmEmail: {
|
|
14525
14525
|
key: "confirmEmail",
|
|
@@ -14529,7 +14529,7 @@ var allFields = {
|
|
|
14529
14529
|
placeholder: "",
|
|
14530
14530
|
description: "",
|
|
14531
14531
|
autocomplete: "email",
|
|
14532
|
-
validator: string
|
|
14532
|
+
validator: string().email("Invalid email").min(1, "Please confirm your email")
|
|
14533
14533
|
},
|
|
14534
14534
|
password: {
|
|
14535
14535
|
key: "password",
|
|
@@ -14548,7 +14548,7 @@ var allFields = {
|
|
|
14548
14548
|
placeholder: "",
|
|
14549
14549
|
description: "",
|
|
14550
14550
|
autocomplete: "new-password",
|
|
14551
|
-
validator: string
|
|
14551
|
+
validator: string().min(6, "Password must be at least 6 characters")
|
|
14552
14552
|
},
|
|
14553
14553
|
confirmPassword: {
|
|
14554
14554
|
key: "confirmPassword",
|
|
@@ -14558,7 +14558,7 @@ var allFields = {
|
|
|
14558
14558
|
placeholder: "",
|
|
14559
14559
|
description: "",
|
|
14560
14560
|
autocomplete: "new-password",
|
|
14561
|
-
validator: string
|
|
14561
|
+
validator: string().min(6, "Please confirm your password")
|
|
14562
14562
|
},
|
|
14563
14563
|
addressee: {
|
|
14564
14564
|
key: "addressee",
|
|
@@ -14658,7 +14658,7 @@ var allFields = {
|
|
|
14658
14658
|
placeholder: "",
|
|
14659
14659
|
description: "",
|
|
14660
14660
|
autocomplete: "off",
|
|
14661
|
-
validator: string
|
|
14661
|
+
validator: string().date()
|
|
14662
14662
|
}
|
|
14663
14663
|
};
|
|
14664
14664
|
function createField(data, required) {
|
|
@@ -15373,12 +15373,13 @@ function formatCurrency(priceCents) {
|
|
|
15373
15373
|
return new Intl.NumberFormat("de-DE", { style: "currency", currency: "EUR" }).format(priceCents / 100);
|
|
15374
15374
|
}
|
|
15375
15375
|
var root_2$p = /* @__PURE__ */ from_html(`<li data-go-cart-header-remove="">remove</li>`);
|
|
15376
|
-
var root_5$2 = /* @__PURE__ */ from_html(`<span> </span>`);
|
|
15377
|
-
var root_4$4 = /* @__PURE__ */ from_html(`<span> </span> <!>`, 1);
|
|
15376
|
+
var root_5$2 = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
|
|
15377
|
+
var root_4$4 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
|
|
15378
15378
|
var root_6$1 = /* @__PURE__ */ from_html(`<li data-go-cart-item-remove=""><button>⨉</button></li>`);
|
|
15379
|
-
var root_3$6 = /* @__PURE__ */ from_html(`<li data-go-cart-item=""><article><ul><li data-go-cart-item-title=""> <!></li> <li data-go-cart-item-price=""> </li> <li data-go-cart-item-count=""> </li> <!> <li data-go-cart-item-sum=""> </li></ul></article></li>`);
|
|
15379
|
+
var root_3$6 = /* @__PURE__ */ from_html(`<li data-go-cart-item=""><article><ul><li data-go-cart-item-title=""><span class="go-cart-item-title" data-testid="cart-item-title"> </span> <!></li> <li data-go-cart-item-price=""> </li> <li data-go-cart-item-count=""> </li> <!> <li data-go-cart-item-sum=""> </li></ul></article></li>`);
|
|
15380
15380
|
var root_7$3 = /* @__PURE__ */ from_html(`<li data-go-cart-footer-remove=""></li>`);
|
|
15381
|
-
var
|
|
15381
|
+
var root_8 = /* @__PURE__ */ from_html(`<a href="javascript:void(0);" class="go-cart-checkout-button" data-testid="checkout-button">Checkout</a>`);
|
|
15382
|
+
var root_1$b = /* @__PURE__ */ from_html(`<ol data-testid="cart"><li data-go-cart-header="" data-testid="cart-header"><ul><li data-go-cart-header-title="">Product</li> <li data-go-cart-header-price="">Price</li> <li data-go-cart-header-count="">Count</li> <!> <li data-go-cart-header-sum="">Sum</li></ul></li> <!> <li data-go-cart-footer="" data-testid="cart-footer"><ul><li data-go-cart-footer-title=""></li> <li data-go-cart-footer-price=""></li> <li data-go-cart-footer-count=""></li> <!> <li data-go-cart-footer-sum="" data-go-cart-sum=""> </li></ul></li></ol> <!>`, 1);
|
|
15382
15383
|
function Cart($$anchor, $$props) {
|
|
15383
15384
|
push($$props, true);
|
|
15384
15385
|
const preview = prop($$props, "preview", 7, false);
|
|
@@ -15399,7 +15400,7 @@ function Cart($$anchor, $$props) {
|
|
|
15399
15400
|
var fragment = comment();
|
|
15400
15401
|
var node = first_child(fragment);
|
|
15401
15402
|
{
|
|
15402
|
-
var
|
|
15403
|
+
var consequent_6 = ($$anchor2) => {
|
|
15403
15404
|
var fragment_1 = root_1$b();
|
|
15404
15405
|
var ol = first_child(fragment_1);
|
|
15405
15406
|
var li = child(ol);
|
|
@@ -15423,22 +15424,24 @@ function Cart($$anchor, $$props) {
|
|
|
15423
15424
|
var article = child(li_2);
|
|
15424
15425
|
var ul_1 = child(article);
|
|
15425
15426
|
var li_3 = child(ul_1);
|
|
15426
|
-
var
|
|
15427
|
-
var
|
|
15427
|
+
var span = child(li_3);
|
|
15428
|
+
var text2 = child(span, true);
|
|
15429
|
+
reset(span);
|
|
15430
|
+
var node_3 = sibling(span, 2);
|
|
15428
15431
|
{
|
|
15429
15432
|
var consequent_2 = ($$anchor4) => {
|
|
15430
15433
|
var fragment_2 = root_4$4();
|
|
15431
|
-
var
|
|
15432
|
-
var text_1 = child(
|
|
15433
|
-
reset(
|
|
15434
|
-
var node_4 = sibling(
|
|
15434
|
+
var span_1 = first_child(fragment_2);
|
|
15435
|
+
var text_1 = child(span_1, true);
|
|
15436
|
+
reset(span_1);
|
|
15437
|
+
var node_4 = sibling(span_1, 2);
|
|
15435
15438
|
{
|
|
15436
15439
|
var consequent_1 = ($$anchor5) => {
|
|
15437
|
-
var
|
|
15438
|
-
var text_2 = child(
|
|
15439
|
-
reset(
|
|
15440
|
+
var span_2 = root_5$2();
|
|
15441
|
+
var text_2 = child(span_2, true);
|
|
15442
|
+
reset(span_2);
|
|
15440
15443
|
template_effect(($0) => set_text(text_2, $0), [() => formatTime(get$2(cartItem).attributes.time)]);
|
|
15441
|
-
append($$anchor5,
|
|
15444
|
+
append($$anchor5, span_2);
|
|
15442
15445
|
};
|
|
15443
15446
|
if_block(node_4, ($$render) => {
|
|
15444
15447
|
if (get$2(cartItem).item.type === "timeslot") $$render(consequent_1);
|
|
@@ -15481,7 +15484,7 @@ function Cart($$anchor, $$props) {
|
|
|
15481
15484
|
reset(li_2);
|
|
15482
15485
|
template_effect(() => {
|
|
15483
15486
|
set_attribute(article, "data-testid", get$2(cartItem).uuid);
|
|
15484
|
-
set_text(text2,
|
|
15487
|
+
set_text(text2, get$2(cartItem).item.title);
|
|
15485
15488
|
set_text(text_3, get$2(cartItem).final_price_formatted);
|
|
15486
15489
|
set_text(text_4, get$2(cartItem).quantity);
|
|
15487
15490
|
set_text(text_5, get$2(cartItem).total_price_formatted);
|
|
@@ -15506,13 +15509,22 @@ function Cart($$anchor, $$props) {
|
|
|
15506
15509
|
reset(ul_2);
|
|
15507
15510
|
reset(li_8);
|
|
15508
15511
|
reset(ol);
|
|
15509
|
-
var
|
|
15510
|
-
|
|
15512
|
+
var node_7 = sibling(ol, 2);
|
|
15513
|
+
{
|
|
15514
|
+
var consequent_5 = ($$anchor3) => {
|
|
15515
|
+
var a2 = root_8();
|
|
15516
|
+
a2.__click = navToCheckout;
|
|
15517
|
+
append($$anchor3, a2);
|
|
15518
|
+
};
|
|
15519
|
+
if_block(node_7, ($$render) => {
|
|
15520
|
+
if (!preview()) $$render(consequent_5);
|
|
15521
|
+
});
|
|
15522
|
+
}
|
|
15511
15523
|
template_effect(() => set_text(text_6, cart.totalFormatted));
|
|
15512
15524
|
append($$anchor2, fragment_1);
|
|
15513
15525
|
};
|
|
15514
15526
|
if_block(node, ($$render) => {
|
|
15515
|
-
if (cart.items.length) $$render(
|
|
15527
|
+
if (cart.items.length) $$render(consequent_6);
|
|
15516
15528
|
});
|
|
15517
15529
|
}
|
|
15518
15530
|
append($$anchor, fragment);
|
|
@@ -15520,6 +15532,12 @@ function Cart($$anchor, $$props) {
|
|
|
15520
15532
|
}
|
|
15521
15533
|
delegate(["click"]);
|
|
15522
15534
|
customElements.define("go-cart", create_custom_element(Cart, { preview: {} }, [], [], false));
|
|
15535
|
+
function CartEmpty($$anchor, $$props) {
|
|
15536
|
+
push($$props, true);
|
|
15537
|
+
wrapInElement($$props.$$host, "go-if", { when: "data.cart.items.length === 0" });
|
|
15538
|
+
pop();
|
|
15539
|
+
}
|
|
15540
|
+
customElements.define("go-cart-empty", create_custom_element(CartEmpty, {}, [], [], false));
|
|
15523
15541
|
enable_legacy_mode_flag();
|
|
15524
15542
|
function CartCounter($$anchor, $$props) {
|
|
15525
15543
|
push($$props, false);
|
|
@@ -30090,7 +30108,7 @@ function evaluateExpression(expression, data) {
|
|
|
30090
30108
|
const func = new Function("data", `return ${expression};`);
|
|
30091
30109
|
return func(data);
|
|
30092
30110
|
} catch (error) {
|
|
30093
|
-
throw new Error(`Error while evaluating when (${
|
|
30111
|
+
throw new Error(`Error while evaluating when (${expression}) in go-if: ${error.message}`);
|
|
30094
30112
|
}
|
|
30095
30113
|
}
|
|
30096
30114
|
const validTicketSelectionFilters = ["timeslot", "day", "annual"];
|
|
@@ -30220,6 +30238,7 @@ function If($$anchor, $$props) {
|
|
|
30220
30238
|
if (!get$2(formDetails)) return;
|
|
30221
30239
|
get$2(data).formData = get$2(formDetails).formData;
|
|
30222
30240
|
});
|
|
30241
|
+
get$2(data).cart = cart;
|
|
30223
30242
|
let evaluatedWhen = /* @__PURE__ */ user_derived(() => evaluateExpression(when(), get$2(data)));
|
|
30224
30243
|
let content = null;
|
|
30225
30244
|
user_effect(() => {
|