@gomusdev/web-components 3.0.0-next.2 → 3.0.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 3.0.0-next.
|
|
3
|
+
## 3.0.0-next.3 (2026-05-21)
|
|
4
4
|
|
|
5
5
|
### Bug Fixes
|
|
6
6
|
|
|
7
|
-
*
|
|
7
|
+
* include 2.1.1 patches from master
|
|
8
8
|
|
|
9
|
-
## 3.0.0-next.1 (2026-05-
|
|
9
|
+
## 3.0.0-next.1 (2026-05-21)
|
|
10
10
|
|
|
11
11
|
### ⚠ BREAKING CHANGES
|
|
12
12
|
|
|
@@ -31,6 +31,7 @@ Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
|
|
31
31
|
### Bug Fixes
|
|
32
32
|
|
|
33
33
|
* flush unsubmitted coupon token before checkout
|
|
34
|
+
* **shop:** remove dangerous clearCache() that wiped auth and cart, closes [this.#data](https://gitlab.giantmonkey.de/gomus/this./issues/data) [gomus/frontend#24](https://gitlab.giantmonkey.de/gomus/frontend/issues/24)
|
|
34
35
|
* validate coupon on go-after-validation, not just submit
|
|
35
36
|
|
|
36
37
|
### Documentation
|
|
@@ -39,11 +40,11 @@ Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
|
|
39
40
|
|
|
40
41
|
# Changelog
|
|
41
42
|
|
|
42
|
-
## 2.1.1
|
|
43
|
+
## 2.1.1 (2026-05-21)
|
|
43
44
|
|
|
44
45
|
### Bug Fixes
|
|
45
46
|
|
|
46
|
-
*
|
|
47
|
+
* add optional chaining to barcode id access
|
|
47
48
|
|
|
48
49
|
## 2.1.0 (2026-05-05)
|
|
49
50
|
|
|
@@ -16684,7 +16684,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16684
16684
|
host.replaceChildren(element);
|
|
16685
16685
|
return element;
|
|
16686
16686
|
}
|
|
16687
|
-
var root_1$
|
|
16687
|
+
var root_1$p = /* @__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);
|
|
16688
16688
|
function Form($$anchor, $$props) {
|
|
16689
16689
|
push($$props, true);
|
|
16690
16690
|
let formId = prop($$props, "formId", 7), custom2 = prop($$props, "custom", 7);
|
|
@@ -16727,7 +16727,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16727
16727
|
var node = first_child(fragment);
|
|
16728
16728
|
{
|
|
16729
16729
|
var consequent = ($$anchor2) => {
|
|
16730
|
-
var fragment_1 = root_1$
|
|
16730
|
+
var fragment_1 = root_1$p();
|
|
16731
16731
|
var go_all_fields = first_child(fragment_1);
|
|
16732
16732
|
var go_form_feedback = sibling(go_all_fields, 2);
|
|
16733
16733
|
var go_submit = sibling(go_form_feedback, 2);
|
|
@@ -17009,7 +17009,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17009
17009
|
const KEY$3 = "go-cart-details";
|
|
17010
17010
|
const setCartDetails = createSetDetails(KEY$3);
|
|
17011
17011
|
const getCartDetails = createGetDetails(KEY$3);
|
|
17012
|
-
var root_1$
|
|
17012
|
+
var root_1$o = /* @__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);
|
|
17013
17013
|
var root$c = /* @__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);
|
|
17014
17014
|
function Event$2($$anchor, $$props) {
|
|
17015
17015
|
push($$props, true);
|
|
@@ -17037,7 +17037,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17037
17037
|
var node = sibling(span);
|
|
17038
17038
|
{
|
|
17039
17039
|
var consequent = ($$anchor2) => {
|
|
17040
|
-
var fragment_1 = root_1$
|
|
17040
|
+
var fragment_1 = root_1$o();
|
|
17041
17041
|
var span_3 = first_child(fragment_1);
|
|
17042
17042
|
var text_2 = child(span_3, true);
|
|
17043
17043
|
reset(span_3);
|
|
@@ -17069,7 +17069,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17069
17069
|
}
|
|
17070
17070
|
create_custom_element(Event$2, { cartItem: {} }, [], [], { mode: "open" });
|
|
17071
17071
|
var root_2$r = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
|
|
17072
|
-
var root_1$
|
|
17072
|
+
var root_1$n = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
|
|
17073
17073
|
var root$b = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span> <!>`, 1);
|
|
17074
17074
|
function Ticket($$anchor, $$props) {
|
|
17075
17075
|
push($$props, true);
|
|
@@ -17090,7 +17090,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17090
17090
|
var node = sibling(span, 2);
|
|
17091
17091
|
{
|
|
17092
17092
|
var consequent_1 = ($$anchor2) => {
|
|
17093
|
-
var fragment_1 = root_1$
|
|
17093
|
+
var fragment_1 = root_1$n();
|
|
17094
17094
|
var span_1 = first_child(fragment_1);
|
|
17095
17095
|
var text_1 = child(span_1, true);
|
|
17096
17096
|
reset(span_1);
|
|
@@ -17146,7 +17146,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17146
17146
|
var root_9$4 = /* @__PURE__ */ from_html(`<option> </option>`);
|
|
17147
17147
|
var root_8$3 = /* @__PURE__ */ from_html(`<select class="go-cart-item-select"></select>`);
|
|
17148
17148
|
var root_10$1 = /* @__PURE__ */ from_html(`<li class="go-cart-item-remove"><button class="go-cart-remove">⨉</button></li>`);
|
|
17149
|
-
var root_1$
|
|
17149
|
+
var root_1$m = /* @__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>`);
|
|
17150
17150
|
function Item$1($$anchor, $$props) {
|
|
17151
17151
|
push($$props, true);
|
|
17152
17152
|
let displayItem = prop($$props, "displayItem", 7), displayCart = prop($$props, "displayCart", 7), preview = prop($$props, "preview", 7);
|
|
@@ -17207,7 +17207,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17207
17207
|
var node = first_child(fragment);
|
|
17208
17208
|
{
|
|
17209
17209
|
var consequent_5 = ($$anchor2) => {
|
|
17210
|
-
var article = root_1$
|
|
17210
|
+
var article = root_1$m();
|
|
17211
17211
|
var ul = child(article);
|
|
17212
17212
|
var li = child(ul);
|
|
17213
17213
|
var node_1 = child(li);
|
|
@@ -17352,7 +17352,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17352
17352
|
create_custom_element(Item$1, { displayItem: {}, displayCart: {}, preview: {} }, [], [], { mode: "open" });
|
|
17353
17353
|
var root_2$q = /* @__PURE__ */ from_html(`<li class="go-cart-header-remove"></li>`);
|
|
17354
17354
|
var root_3$9 = /* @__PURE__ */ from_html(`<li class="go-cart-item"><!></li>`);
|
|
17355
|
-
var root_1$
|
|
17355
|
+
var root_1$l = /* @__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>`);
|
|
17356
17356
|
function CartItems($$anchor, $$props) {
|
|
17357
17357
|
push($$props, true);
|
|
17358
17358
|
const _details = getCartDetails($$props.$$host);
|
|
@@ -17361,7 +17361,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17361
17361
|
var node = first_child(fragment);
|
|
17362
17362
|
{
|
|
17363
17363
|
var consequent_1 = ($$anchor2) => {
|
|
17364
|
-
var ol = root_1$
|
|
17364
|
+
var ol = root_1$l();
|
|
17365
17365
|
var li = child(ol);
|
|
17366
17366
|
var ul = child(li);
|
|
17367
17367
|
var li_1 = child(ul);
|
|
@@ -17433,7 +17433,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17433
17433
|
customElements.define("go-cart-items", create_custom_element(CartItems, {}, [], []));
|
|
17434
17434
|
var root_3$8 = /* @__PURE__ */ from_html(`<li class="go-cart-coupon-remove-cell"><button class="go-cart-remove go-cart-coupon-remove">⨉</button></li>`);
|
|
17435
17435
|
var root_2$p = /* @__PURE__ */ from_html(`<li><article class="go-cart-coupon-content"><ul><li class="go-cart-coupon-code"> </li> <!></ul></article></li>`);
|
|
17436
|
-
var root_1$
|
|
17436
|
+
var root_1$k = /* @__PURE__ */ from_html(`<ol data-testid="cart-coupons"></ol>`);
|
|
17437
17437
|
function CartCoupons($$anchor, $$props) {
|
|
17438
17438
|
push($$props, true);
|
|
17439
17439
|
const _details = getCartDetails($$props.$$host);
|
|
@@ -17442,7 +17442,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17442
17442
|
var node = first_child(fragment);
|
|
17443
17443
|
{
|
|
17444
17444
|
var consequent_1 = ($$anchor2) => {
|
|
17445
|
-
var ol = root_1$
|
|
17445
|
+
var ol = root_1$k();
|
|
17446
17446
|
each(ol, 20, () => get$2(details).displayCart.coupons, (coupon) => coupon, ($$anchor3, coupon) => {
|
|
17447
17447
|
var li = root_2$p();
|
|
17448
17448
|
let classes;
|
|
@@ -17493,7 +17493,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17493
17493
|
}
|
|
17494
17494
|
delegate(["click"]);
|
|
17495
17495
|
customElements.define("go-cart-coupons", create_custom_element(CartCoupons, {}, [], []));
|
|
17496
|
-
var root_1$
|
|
17496
|
+
var root_1$j = /* @__PURE__ */ from_html(`<span class="go-cart-total-amount" data-testid="cart-total-amount"> </span>`);
|
|
17497
17497
|
function CartTotalAmount($$anchor, $$props) {
|
|
17498
17498
|
push($$props, true);
|
|
17499
17499
|
const _details = getCartDetails($$props.$$host);
|
|
@@ -17502,7 +17502,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17502
17502
|
var node = first_child(fragment);
|
|
17503
17503
|
{
|
|
17504
17504
|
var consequent = ($$anchor2) => {
|
|
17505
|
-
var span = root_1$
|
|
17505
|
+
var span = root_1$j();
|
|
17506
17506
|
var text2 = child(span, true);
|
|
17507
17507
|
reset(span);
|
|
17508
17508
|
template_effect(($0) => set_text(text2, $0), [() => formatCurrency(get$2(details).totalPriceCents)]);
|
|
@@ -17516,10 +17516,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17516
17516
|
pop();
|
|
17517
17517
|
}
|
|
17518
17518
|
customElements.define("go-cart-total-amount", create_custom_element(CartTotalAmount, {}, [], []));
|
|
17519
|
-
var root_1$j = /* @__PURE__ */ from_html(`<go-cart-items></go-cart-items> <go-cart-coupons></go-cart-coupons> <go-cart-total-amount></go-cart-total-amount>`, 3);
|
|
17520
17519
|
function Cart($$anchor, $$props) {
|
|
17521
17520
|
push($$props, true);
|
|
17522
|
-
const preview = prop($$props, "preview", 7, false)
|
|
17521
|
+
const preview = prop($$props, "preview", 7, false);
|
|
17523
17522
|
const details = new CartDetails();
|
|
17524
17523
|
setCartDetails($$props.$$host, details);
|
|
17525
17524
|
user_effect(() => {
|
|
@@ -17538,37 +17537,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17538
17537
|
set preview($$value = false) {
|
|
17539
17538
|
preview($$value);
|
|
17540
17539
|
flushSync();
|
|
17541
|
-
},
|
|
17542
|
-
get default() {
|
|
17543
|
-
return useDefault();
|
|
17544
|
-
},
|
|
17545
|
-
set default($$value = false) {
|
|
17546
|
-
useDefault($$value);
|
|
17547
|
-
flushSync();
|
|
17548
17540
|
}
|
|
17549
17541
|
};
|
|
17550
|
-
var fragment = comment();
|
|
17551
|
-
var node = first_child(fragment);
|
|
17552
|
-
{
|
|
17553
|
-
var consequent = ($$anchor2) => {
|
|
17554
|
-
var fragment_1 = root_1$j();
|
|
17555
|
-
var go_cart_items = first_child(fragment_1);
|
|
17556
|
-
var go_cart_coupons = sibling(go_cart_items, 2);
|
|
17557
|
-
sibling(go_cart_coupons, 2);
|
|
17558
|
-
append($$anchor2, fragment_1);
|
|
17559
|
-
};
|
|
17560
|
-
if_block(node, ($$render) => {
|
|
17561
|
-
if (useDefault()) $$render(consequent);
|
|
17562
|
-
});
|
|
17563
|
-
}
|
|
17564
|
-
append($$anchor, fragment);
|
|
17565
17542
|
return pop($$exports);
|
|
17566
17543
|
}
|
|
17567
17544
|
customElements.define("go-cart", create_custom_element(
|
|
17568
17545
|
Cart,
|
|
17569
17546
|
{
|
|
17570
|
-
preview: { attribute: "preview", reflect: true, type: "Boolean" }
|
|
17571
|
-
default: { attribute: "default", reflect: true, type: "Boolean" }
|
|
17547
|
+
preview: { attribute: "preview", reflect: true, type: "Boolean" }
|
|
17572
17548
|
},
|
|
17573
17549
|
[],
|
|
17574
17550
|
[]
|
|
@@ -35122,7 +35098,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
35122
35098
|
var node_2 = sibling(span, 2);
|
|
35123
35099
|
{
|
|
35124
35100
|
var consequent_2 = ($$anchor4) => {
|
|
35125
|
-
const barcodeId = /* @__PURE__ */ user_derived(() => item().attributes.barcodes[index2]
|
|
35101
|
+
const barcodeId = /* @__PURE__ */ user_derived(() => item().attributes.barcodes[index2]?.id);
|
|
35126
35102
|
var fragment_2 = root_3$2();
|
|
35127
35103
|
var node_3 = first_child(fragment_2);
|
|
35128
35104
|
{
|
|
@@ -16684,7 +16684,7 @@ function wrapInElement(host, tag, props) {
|
|
|
16684
16684
|
host.replaceChildren(element);
|
|
16685
16685
|
return element;
|
|
16686
16686
|
}
|
|
16687
|
-
var root_1$
|
|
16687
|
+
var root_1$p = /* @__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);
|
|
16688
16688
|
function Form($$anchor, $$props) {
|
|
16689
16689
|
push($$props, true);
|
|
16690
16690
|
let formId = prop($$props, "formId", 7), custom2 = prop($$props, "custom", 7);
|
|
@@ -16727,7 +16727,7 @@ function Form($$anchor, $$props) {
|
|
|
16727
16727
|
var node = first_child(fragment);
|
|
16728
16728
|
{
|
|
16729
16729
|
var consequent = ($$anchor2) => {
|
|
16730
|
-
var fragment_1 = root_1$
|
|
16730
|
+
var fragment_1 = root_1$p();
|
|
16731
16731
|
var go_all_fields = first_child(fragment_1);
|
|
16732
16732
|
var go_form_feedback = sibling(go_all_fields, 2);
|
|
16733
16733
|
var go_submit = sibling(go_form_feedback, 2);
|
|
@@ -17009,7 +17009,7 @@ class CartDetails {
|
|
|
17009
17009
|
const KEY$3 = "go-cart-details";
|
|
17010
17010
|
const setCartDetails = createSetDetails(KEY$3);
|
|
17011
17011
|
const getCartDetails = createGetDetails(KEY$3);
|
|
17012
|
-
var root_1$
|
|
17012
|
+
var root_1$o = /* @__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);
|
|
17013
17013
|
var root$c = /* @__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);
|
|
17014
17014
|
function Event$2($$anchor, $$props) {
|
|
17015
17015
|
push($$props, true);
|
|
@@ -17037,7 +17037,7 @@ function Event$2($$anchor, $$props) {
|
|
|
17037
17037
|
var node = sibling(span);
|
|
17038
17038
|
{
|
|
17039
17039
|
var consequent = ($$anchor2) => {
|
|
17040
|
-
var fragment_1 = root_1$
|
|
17040
|
+
var fragment_1 = root_1$o();
|
|
17041
17041
|
var span_3 = first_child(fragment_1);
|
|
17042
17042
|
var text_2 = child(span_3, true);
|
|
17043
17043
|
reset(span_3);
|
|
@@ -17069,7 +17069,7 @@ function Event$2($$anchor, $$props) {
|
|
|
17069
17069
|
}
|
|
17070
17070
|
create_custom_element(Event$2, { cartItem: {} }, [], [], { mode: "open" });
|
|
17071
17071
|
var root_2$r = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
|
|
17072
|
-
var root_1$
|
|
17072
|
+
var root_1$n = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
|
|
17073
17073
|
var root$b = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span> <!>`, 1);
|
|
17074
17074
|
function Ticket($$anchor, $$props) {
|
|
17075
17075
|
push($$props, true);
|
|
@@ -17090,7 +17090,7 @@ function Ticket($$anchor, $$props) {
|
|
|
17090
17090
|
var node = sibling(span, 2);
|
|
17091
17091
|
{
|
|
17092
17092
|
var consequent_1 = ($$anchor2) => {
|
|
17093
|
-
var fragment_1 = root_1$
|
|
17093
|
+
var fragment_1 = root_1$n();
|
|
17094
17094
|
var span_1 = first_child(fragment_1);
|
|
17095
17095
|
var text_1 = child(span_1, true);
|
|
17096
17096
|
reset(span_1);
|
|
@@ -17146,7 +17146,7 @@ var root_7$3 = /* @__PURE__ */ from_html(`<span> </span>`);
|
|
|
17146
17146
|
var root_9$4 = /* @__PURE__ */ from_html(`<option> </option>`);
|
|
17147
17147
|
var root_8$3 = /* @__PURE__ */ from_html(`<select class="go-cart-item-select"></select>`);
|
|
17148
17148
|
var root_10$1 = /* @__PURE__ */ from_html(`<li class="go-cart-item-remove"><button class="go-cart-remove">⨉</button></li>`);
|
|
17149
|
-
var root_1$
|
|
17149
|
+
var root_1$m = /* @__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>`);
|
|
17150
17150
|
function Item$1($$anchor, $$props) {
|
|
17151
17151
|
push($$props, true);
|
|
17152
17152
|
let displayItem = prop($$props, "displayItem", 7), displayCart = prop($$props, "displayCart", 7), preview = prop($$props, "preview", 7);
|
|
@@ -17207,7 +17207,7 @@ function Item$1($$anchor, $$props) {
|
|
|
17207
17207
|
var node = first_child(fragment);
|
|
17208
17208
|
{
|
|
17209
17209
|
var consequent_5 = ($$anchor2) => {
|
|
17210
|
-
var article = root_1$
|
|
17210
|
+
var article = root_1$m();
|
|
17211
17211
|
var ul = child(article);
|
|
17212
17212
|
var li = child(ul);
|
|
17213
17213
|
var node_1 = child(li);
|
|
@@ -17352,7 +17352,7 @@ delegate(["change", "click"]);
|
|
|
17352
17352
|
create_custom_element(Item$1, { displayItem: {}, displayCart: {}, preview: {} }, [], [], { mode: "open" });
|
|
17353
17353
|
var root_2$q = /* @__PURE__ */ from_html(`<li class="go-cart-header-remove"></li>`);
|
|
17354
17354
|
var root_3$9 = /* @__PURE__ */ from_html(`<li class="go-cart-item"><!></li>`);
|
|
17355
|
-
var root_1$
|
|
17355
|
+
var root_1$l = /* @__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>`);
|
|
17356
17356
|
function CartItems($$anchor, $$props) {
|
|
17357
17357
|
push($$props, true);
|
|
17358
17358
|
const _details = getCartDetails($$props.$$host);
|
|
@@ -17361,7 +17361,7 @@ function CartItems($$anchor, $$props) {
|
|
|
17361
17361
|
var node = first_child(fragment);
|
|
17362
17362
|
{
|
|
17363
17363
|
var consequent_1 = ($$anchor2) => {
|
|
17364
|
-
var ol = root_1$
|
|
17364
|
+
var ol = root_1$l();
|
|
17365
17365
|
var li = child(ol);
|
|
17366
17366
|
var ul = child(li);
|
|
17367
17367
|
var li_1 = child(ul);
|
|
@@ -17433,7 +17433,7 @@ function CartItems($$anchor, $$props) {
|
|
|
17433
17433
|
customElements.define("go-cart-items", create_custom_element(CartItems, {}, [], []));
|
|
17434
17434
|
var root_3$8 = /* @__PURE__ */ from_html(`<li class="go-cart-coupon-remove-cell"><button class="go-cart-remove go-cart-coupon-remove">⨉</button></li>`);
|
|
17435
17435
|
var root_2$p = /* @__PURE__ */ from_html(`<li><article class="go-cart-coupon-content"><ul><li class="go-cart-coupon-code"> </li> <!></ul></article></li>`);
|
|
17436
|
-
var root_1$
|
|
17436
|
+
var root_1$k = /* @__PURE__ */ from_html(`<ol data-testid="cart-coupons"></ol>`);
|
|
17437
17437
|
function CartCoupons($$anchor, $$props) {
|
|
17438
17438
|
push($$props, true);
|
|
17439
17439
|
const _details = getCartDetails($$props.$$host);
|
|
@@ -17442,7 +17442,7 @@ function CartCoupons($$anchor, $$props) {
|
|
|
17442
17442
|
var node = first_child(fragment);
|
|
17443
17443
|
{
|
|
17444
17444
|
var consequent_1 = ($$anchor2) => {
|
|
17445
|
-
var ol = root_1$
|
|
17445
|
+
var ol = root_1$k();
|
|
17446
17446
|
each(ol, 20, () => get$2(details).displayCart.coupons, (coupon) => coupon, ($$anchor3, coupon) => {
|
|
17447
17447
|
var li = root_2$p();
|
|
17448
17448
|
let classes;
|
|
@@ -17493,7 +17493,7 @@ function CartCoupons($$anchor, $$props) {
|
|
|
17493
17493
|
}
|
|
17494
17494
|
delegate(["click"]);
|
|
17495
17495
|
customElements.define("go-cart-coupons", create_custom_element(CartCoupons, {}, [], []));
|
|
17496
|
-
var root_1$
|
|
17496
|
+
var root_1$j = /* @__PURE__ */ from_html(`<span class="go-cart-total-amount" data-testid="cart-total-amount"> </span>`);
|
|
17497
17497
|
function CartTotalAmount($$anchor, $$props) {
|
|
17498
17498
|
push($$props, true);
|
|
17499
17499
|
const _details = getCartDetails($$props.$$host);
|
|
@@ -17502,7 +17502,7 @@ function CartTotalAmount($$anchor, $$props) {
|
|
|
17502
17502
|
var node = first_child(fragment);
|
|
17503
17503
|
{
|
|
17504
17504
|
var consequent = ($$anchor2) => {
|
|
17505
|
-
var span = root_1$
|
|
17505
|
+
var span = root_1$j();
|
|
17506
17506
|
var text2 = child(span, true);
|
|
17507
17507
|
reset(span);
|
|
17508
17508
|
template_effect(($0) => set_text(text2, $0), [() => formatCurrency(get$2(details).totalPriceCents)]);
|
|
@@ -17516,10 +17516,9 @@ function CartTotalAmount($$anchor, $$props) {
|
|
|
17516
17516
|
pop();
|
|
17517
17517
|
}
|
|
17518
17518
|
customElements.define("go-cart-total-amount", create_custom_element(CartTotalAmount, {}, [], []));
|
|
17519
|
-
var root_1$j = /* @__PURE__ */ from_html(`<go-cart-items></go-cart-items> <go-cart-coupons></go-cart-coupons> <go-cart-total-amount></go-cart-total-amount>`, 3);
|
|
17520
17519
|
function Cart($$anchor, $$props) {
|
|
17521
17520
|
push($$props, true);
|
|
17522
|
-
const preview = prop($$props, "preview", 7, false)
|
|
17521
|
+
const preview = prop($$props, "preview", 7, false);
|
|
17523
17522
|
const details = new CartDetails();
|
|
17524
17523
|
setCartDetails($$props.$$host, details);
|
|
17525
17524
|
user_effect(() => {
|
|
@@ -17538,37 +17537,14 @@ function Cart($$anchor, $$props) {
|
|
|
17538
17537
|
set preview($$value = false) {
|
|
17539
17538
|
preview($$value);
|
|
17540
17539
|
flushSync();
|
|
17541
|
-
},
|
|
17542
|
-
get default() {
|
|
17543
|
-
return useDefault();
|
|
17544
|
-
},
|
|
17545
|
-
set default($$value = false) {
|
|
17546
|
-
useDefault($$value);
|
|
17547
|
-
flushSync();
|
|
17548
17540
|
}
|
|
17549
17541
|
};
|
|
17550
|
-
var fragment = comment();
|
|
17551
|
-
var node = first_child(fragment);
|
|
17552
|
-
{
|
|
17553
|
-
var consequent = ($$anchor2) => {
|
|
17554
|
-
var fragment_1 = root_1$j();
|
|
17555
|
-
var go_cart_items = first_child(fragment_1);
|
|
17556
|
-
var go_cart_coupons = sibling(go_cart_items, 2);
|
|
17557
|
-
sibling(go_cart_coupons, 2);
|
|
17558
|
-
append($$anchor2, fragment_1);
|
|
17559
|
-
};
|
|
17560
|
-
if_block(node, ($$render) => {
|
|
17561
|
-
if (useDefault()) $$render(consequent);
|
|
17562
|
-
});
|
|
17563
|
-
}
|
|
17564
|
-
append($$anchor, fragment);
|
|
17565
17542
|
return pop($$exports);
|
|
17566
17543
|
}
|
|
17567
17544
|
customElements.define("go-cart", create_custom_element(
|
|
17568
17545
|
Cart,
|
|
17569
17546
|
{
|
|
17570
|
-
preview: { attribute: "preview", reflect: true, type: "Boolean" }
|
|
17571
|
-
default: { attribute: "default", reflect: true, type: "Boolean" }
|
|
17547
|
+
preview: { attribute: "preview", reflect: true, type: "Boolean" }
|
|
17572
17548
|
},
|
|
17573
17549
|
[],
|
|
17574
17550
|
[]
|
|
@@ -35122,7 +35098,7 @@ function TicketSale($$anchor, $$props) {
|
|
|
35122
35098
|
var node_2 = sibling(span, 2);
|
|
35123
35099
|
{
|
|
35124
35100
|
var consequent_2 = ($$anchor4) => {
|
|
35125
|
-
const barcodeId = /* @__PURE__ */ user_derived(() => item().attributes.barcodes[index2]
|
|
35101
|
+
const barcodeId = /* @__PURE__ */ user_derived(() => item().attributes.barcodes[index2]?.id);
|
|
35126
35102
|
var fragment_2 = root_3$2();
|
|
35127
35103
|
var node_3 = first_child(fragment_2);
|
|
35128
35104
|
{
|