@gomusdev/web-components 1.48.0 → 1.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-js/components/forms/lib/Field.svelte.d.ts +1 -1
- package/dist-js/gomus-webcomponents.iife.js +132 -133
- package/dist-js/gomus-webcomponents.js +132 -133
- package/dist-js/lib/models/cart/CartItem.spec.d.ts +1 -0
- package/dist-js/lib/models/cart/types.d.ts +2 -0
- package/dist-js/lib/models/scalePrice/UIScaledPrice.svelte.d.ts +1 -0
- package/package.json +1 -1
|
@@ -11197,6 +11197,9 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
11197
11197
|
return this.uuid + ":" + this.quantity;
|
|
11198
11198
|
},
|
|
11199
11199
|
get price_cents() {
|
|
11200
|
+
if (this.time && this.product.dynamic_prices?.[this.time] != null) {
|
|
11201
|
+
return this.product.dynamic_prices[this.time];
|
|
11202
|
+
}
|
|
11200
11203
|
return this.product.price_cents;
|
|
11201
11204
|
},
|
|
11202
11205
|
get price_formatted() {
|
|
@@ -11226,10 +11229,11 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
11226
11229
|
const type = cartItem.type;
|
|
11227
11230
|
switch (type) {
|
|
11228
11231
|
case "Ticket":
|
|
11229
|
-
if (cartItem.product.
|
|
11232
|
+
if (cartItem.product.type === "timeslot" && !inTheFuture(cartItem.time)) return;
|
|
11230
11233
|
const ticket = createUITicket(cartItem.product);
|
|
11231
11234
|
return createCartItem(ticket, { time: cartItem.time, quantity: cartItem.quantity });
|
|
11232
11235
|
case "Event":
|
|
11236
|
+
if (cartItem.time && !inTheFuture(cartItem.time)) return;
|
|
11233
11237
|
const event2 = createUIScaledPricesTicket(cartItem.product, cartItem.id);
|
|
11234
11238
|
return createCartItem(event2, { time: cartItem.time, quantity: cartItem.quantity });
|
|
11235
11239
|
default:
|
|
@@ -16159,7 +16163,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16159
16163
|
options: data.options,
|
|
16160
16164
|
autocomplete: data.autocomplete ?? "",
|
|
16161
16165
|
placeholder: data.placeholder ?? "",
|
|
16162
|
-
description: data.description
|
|
16166
|
+
description: data.description,
|
|
16163
16167
|
apiErrors: data.apiErrors ?? [],
|
|
16164
16168
|
mounted: data.mounted ?? false,
|
|
16165
16169
|
required,
|
|
@@ -16541,7 +16545,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16541
16545
|
host.replaceChildren(element);
|
|
16542
16546
|
return element;
|
|
16543
16547
|
}
|
|
16544
|
-
var root_1$
|
|
16548
|
+
var root_1$l = /* @__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);
|
|
16545
16549
|
function Form($$anchor, $$props) {
|
|
16546
16550
|
push($$props, true);
|
|
16547
16551
|
let formId = prop($$props, "formId", 7), custom2 = prop($$props, "custom", 7);
|
|
@@ -16584,7 +16588,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16584
16588
|
var node = first_child(fragment);
|
|
16585
16589
|
{
|
|
16586
16590
|
var consequent = ($$anchor2) => {
|
|
16587
|
-
var fragment_1 = root_1$
|
|
16591
|
+
var fragment_1 = root_1$l();
|
|
16588
16592
|
var go_all_fields = first_child(fragment_1);
|
|
16589
16593
|
var go_form_feedback = sibling(go_all_fields, 2);
|
|
16590
16594
|
var go_submit = sibling(go_form_feedback, 2);
|
|
@@ -16611,7 +16615,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16611
16615
|
[],
|
|
16612
16616
|
["details"]
|
|
16613
16617
|
));
|
|
16614
|
-
var root$
|
|
16618
|
+
var root$d = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
|
|
16615
16619
|
function PasswordReset($$anchor, $$props) {
|
|
16616
16620
|
push($$props, true);
|
|
16617
16621
|
let custom2 = prop($$props, "custom", 7, false);
|
|
@@ -16641,7 +16645,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16641
16645
|
flushSync();
|
|
16642
16646
|
}
|
|
16643
16647
|
};
|
|
16644
|
-
var go_form = root$
|
|
16648
|
+
var go_form = root$d();
|
|
16645
16649
|
set_custom_element_data(go_form, "formId", "passwordReset");
|
|
16646
16650
|
template_effect(() => set_custom_element_data(go_form, "custom", custom2()));
|
|
16647
16651
|
event("submit", go_form, passwordReset);
|
|
@@ -16745,8 +16749,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16745
16749
|
[],
|
|
16746
16750
|
[]
|
|
16747
16751
|
));
|
|
16748
|
-
var root_1$
|
|
16749
|
-
var root$
|
|
16752
|
+
var root_1$k = /* @__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);
|
|
16753
|
+
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);
|
|
16750
16754
|
function Event$2($$anchor, $$props) {
|
|
16751
16755
|
push($$props, true);
|
|
16752
16756
|
let cartItem = prop($$props, "cartItem", 7);
|
|
@@ -16761,7 +16765,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16761
16765
|
flushSync();
|
|
16762
16766
|
}
|
|
16763
16767
|
};
|
|
16764
|
-
var fragment = root$
|
|
16768
|
+
var fragment = root$c();
|
|
16765
16769
|
var span = first_child(fragment);
|
|
16766
16770
|
var span_1 = child(span);
|
|
16767
16771
|
var text2 = child(span_1, true);
|
|
@@ -16773,7 +16777,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16773
16777
|
var node = sibling(span);
|
|
16774
16778
|
{
|
|
16775
16779
|
var consequent = ($$anchor2) => {
|
|
16776
|
-
var fragment_1 = root_1$
|
|
16780
|
+
var fragment_1 = root_1$k();
|
|
16777
16781
|
var span_3 = first_child(fragment_1);
|
|
16778
16782
|
var text_2 = child(span_3, true);
|
|
16779
16783
|
reset(span_3);
|
|
@@ -16805,8 +16809,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16805
16809
|
}
|
|
16806
16810
|
create_custom_element(Event$2, { cartItem: {} }, [], [], { mode: "open" });
|
|
16807
16811
|
var root_2$q = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
|
|
16808
|
-
var root_1$
|
|
16809
|
-
var root$
|
|
16812
|
+
var root_1$j = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
|
|
16813
|
+
var root$b = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span> <!>`, 1);
|
|
16810
16814
|
function Ticket($$anchor, $$props) {
|
|
16811
16815
|
push($$props, true);
|
|
16812
16816
|
let cartItem = prop($$props, "cartItem", 7);
|
|
@@ -16819,14 +16823,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16819
16823
|
flushSync();
|
|
16820
16824
|
}
|
|
16821
16825
|
};
|
|
16822
|
-
var fragment = root$
|
|
16826
|
+
var fragment = root$b();
|
|
16823
16827
|
var span = first_child(fragment);
|
|
16824
16828
|
var text2 = child(span, true);
|
|
16825
16829
|
reset(span);
|
|
16826
16830
|
var node = sibling(span, 2);
|
|
16827
16831
|
{
|
|
16828
16832
|
var consequent_1 = ($$anchor2) => {
|
|
16829
|
-
var fragment_1 = root_1$
|
|
16833
|
+
var fragment_1 = root_1$j();
|
|
16830
16834
|
var span_1 = first_child(fragment_1);
|
|
16831
16835
|
var text_1 = child(span_1, true);
|
|
16832
16836
|
reset(span_1);
|
|
@@ -16876,11 +16880,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16876
16880
|
function option(value) {
|
|
16877
16881
|
return { value, label: value.toString() };
|
|
16878
16882
|
}
|
|
16879
|
-
var root_5$
|
|
16883
|
+
var root_5$1 = /* @__PURE__ */ from_html(`<span> </span>`);
|
|
16880
16884
|
var root_7$3 = /* @__PURE__ */ from_html(`<option> </option>`);
|
|
16881
16885
|
var root_6$2 = /* @__PURE__ */ from_html(`<select></select>`);
|
|
16882
16886
|
var root_8$2 = /* @__PURE__ */ from_html(`<li class="go-cart-item-remove" data-go-cart-item-remove=""><button>⨉</button></li>`);
|
|
16883
|
-
var root_1$
|
|
16887
|
+
var root_1$i = /* @__PURE__ */ from_html(`<article><ul><li data-go-cart-item-title=""><!></li> <li class="go-cart-item-price" data-go-cart-item-price=""> </li> <li class="go-cart-item-count" data-go-cart-item-count=""><!></li> <!> <li class="go-cart-item-sum" data-go-cart-item-sum=""> </li></ul></article>`);
|
|
16884
16888
|
function Item$1($$anchor, $$props) {
|
|
16885
16889
|
push($$props, true);
|
|
16886
16890
|
let cartItem = prop($$props, "cartItem", 7), cart = prop($$props, "cart", 7), preview = prop($$props, "preview", 7);
|
|
@@ -16923,7 +16927,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16923
16927
|
var node = first_child(fragment);
|
|
16924
16928
|
{
|
|
16925
16929
|
var consequent_4 = ($$anchor2) => {
|
|
16926
|
-
var article = root_1$
|
|
16930
|
+
var article = root_1$i();
|
|
16927
16931
|
var ul = child(article);
|
|
16928
16932
|
var li = child(ul);
|
|
16929
16933
|
var node_1 = child(li);
|
|
@@ -16969,7 +16973,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16969
16973
|
var node_3 = child(li_2);
|
|
16970
16974
|
{
|
|
16971
16975
|
var consequent_2 = ($$anchor3) => {
|
|
16972
|
-
var span = root_5$
|
|
16976
|
+
var span = root_5$1();
|
|
16973
16977
|
var text_1 = child(span, true);
|
|
16974
16978
|
reset(span);
|
|
16975
16979
|
template_effect(() => set_text(text_1, cartItem().quantity));
|
|
@@ -17038,7 +17042,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17038
17042
|
var root_2$p = /* @__PURE__ */ from_html(`<li class="go-cart-header-remove" data-go-cart-header-remove=""></li>`);
|
|
17039
17043
|
var root_3$8 = /* @__PURE__ */ from_html(`<li class="go-cart-item" data-go-cart-item=""><!></li>`);
|
|
17040
17044
|
var root_4$6 = /* @__PURE__ */ from_html(`<li class="go-cart-footer-remove" data-go-cart-footer-remove=""></li>`);
|
|
17041
|
-
var root_1$
|
|
17045
|
+
var root_1$h = /* @__PURE__ */ from_html(`<ol data-testid="cart"><li class="go-cart-header" data-go-cart-header="" data-testid="cart-header"><ul><li class="go-cart-header-title" data-go-cart-header-title=""> </li> <li class="go-cart-header-price" data-go-cart-header-price=""> </li> <li class="go-cart-header-count" data-go-cart-header-count=""> </li> <!> <li class="go-cart-header-sum" data-go-cart-header-sum=""> </li></ul></li> <!> <li class="go-cart-footer" data-go-cart-footer="" data-testid="cart-footer"><ul><li class="go-cart-footer-title" data-go-cart-footer-title=""></li> <li class="go-cart-footer-price" data-go-cart-footer-price=""></li> <li class="go-cart-footer-count" data-go-cart-footer-count=""></li> <!> <li class="go-cart-footer-sum" data-go-cart-footer-sum="" data-go-cart-sum=""> </li></ul></li></ol>`);
|
|
17042
17046
|
function Cart($$anchor, $$props) {
|
|
17043
17047
|
push($$props, true);
|
|
17044
17048
|
const preview = prop($$props, "preview", 7, false);
|
|
@@ -17056,7 +17060,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17056
17060
|
var node = first_child(fragment);
|
|
17057
17061
|
{
|
|
17058
17062
|
var consequent_2 = ($$anchor2) => {
|
|
17059
|
-
var ol = root_1$
|
|
17063
|
+
var ol = root_1$h();
|
|
17060
17064
|
var li = child(ol);
|
|
17061
17065
|
var ul = child(li);
|
|
17062
17066
|
var li_1 = child(ul);
|
|
@@ -17243,7 +17247,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17243
17247
|
form.details.apiErrors = [shop.t("cart.coupon.form.errors.notValid")];
|
|
17244
17248
|
}
|
|
17245
17249
|
}
|
|
17246
|
-
var root$
|
|
17250
|
+
var root$a = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
|
|
17247
17251
|
function CouponRedemption($$anchor, $$props) {
|
|
17248
17252
|
push($$props, false);
|
|
17249
17253
|
Forms.defineForm({
|
|
@@ -17255,7 +17259,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17255
17259
|
await redeem(e.target);
|
|
17256
17260
|
}
|
|
17257
17261
|
init();
|
|
17258
|
-
var go_form = root$
|
|
17262
|
+
var go_form = root$a();
|
|
17259
17263
|
set_custom_element_data(go_form, "formId", "couponRedemption");
|
|
17260
17264
|
event("submit", go_form, redeem$1);
|
|
17261
17265
|
append($$anchor, go_form);
|
|
@@ -17305,8 +17309,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17305
17309
|
};
|
|
17306
17310
|
}
|
|
17307
17311
|
const goDonation = new GoDonation();
|
|
17308
|
-
var root_1$
|
|
17309
|
-
var root$
|
|
17312
|
+
var root_1$g = /* @__PURE__ */ from_html(`<img alt="logo"/>`);
|
|
17313
|
+
var root$9 = /* @__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>`);
|
|
17310
17314
|
function DonationCampaign($$anchor, $$props) {
|
|
17311
17315
|
push($$props, true);
|
|
17312
17316
|
let campaign = prop($$props, "campaign", 7);
|
|
@@ -17320,7 +17324,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17320
17324
|
flushSync();
|
|
17321
17325
|
}
|
|
17322
17326
|
};
|
|
17323
|
-
var div = root$
|
|
17327
|
+
var div = root$9();
|
|
17324
17328
|
let classes;
|
|
17325
17329
|
div.__click = () => goDonation.selectCampaign(campaign());
|
|
17326
17330
|
div.__keydown = (e) => {
|
|
@@ -17332,7 +17336,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17332
17336
|
var node = child(div_1);
|
|
17333
17337
|
{
|
|
17334
17338
|
var consequent = ($$anchor2) => {
|
|
17335
|
-
var img = root_1$
|
|
17339
|
+
var img = root_1$g();
|
|
17336
17340
|
template_effect(($0) => set_attribute(img, "src", $0), [
|
|
17337
17341
|
() => campaign().picture.thumbnail.replace("thumbnail", "article_3x2")
|
|
17338
17342
|
]);
|
|
@@ -17388,9 +17392,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17388
17392
|
});
|
|
17389
17393
|
return parsed.length > 0 ? parsed : void 0;
|
|
17390
17394
|
}
|
|
17391
|
-
var root_1$
|
|
17395
|
+
var root_1$f = /* @__PURE__ */ from_html(`<button> </button>`);
|
|
17392
17396
|
var root_2$o = /* @__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>`);
|
|
17393
|
-
var root$
|
|
17397
|
+
var root$8 = /* @__PURE__ */ from_html(`<div class="donation-selection"><h3> </h3> <div class="donation-options"></div> <!></div>`);
|
|
17394
17398
|
function DonationSelector($$anchor, $$props) {
|
|
17395
17399
|
push($$props, true);
|
|
17396
17400
|
const guestMaxLimit = goDonation.campaign?.guest_limit / 100;
|
|
@@ -17408,13 +17412,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17408
17412
|
form.reportValidity();
|
|
17409
17413
|
}
|
|
17410
17414
|
}
|
|
17411
|
-
var div = root$
|
|
17415
|
+
var div = root$8();
|
|
17412
17416
|
var h3 = child(div);
|
|
17413
17417
|
var text2 = child(h3, true);
|
|
17414
17418
|
reset(h3);
|
|
17415
17419
|
var div_1 = sibling(h3, 2);
|
|
17416
17420
|
each(div_1, 20, () => goDonation.campaign?.options, (option2) => option2, ($$anchor2, option2) => {
|
|
17417
|
-
var button = root_1$
|
|
17421
|
+
var button = root_1$f();
|
|
17418
17422
|
let classes;
|
|
17419
17423
|
button.__click = () => selectAmount(option2);
|
|
17420
17424
|
var text_1 = child(button, true);
|
|
@@ -17467,7 +17471,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17467
17471
|
}
|
|
17468
17472
|
delegate(["click", "input"]);
|
|
17469
17473
|
create_custom_element(DonationSelector, {}, [], [], { mode: "open" });
|
|
17470
|
-
var root_1$
|
|
17474
|
+
var root_1$e = /* @__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>`);
|
|
17471
17475
|
function Donations($$anchor, $$props) {
|
|
17472
17476
|
push($$props, false);
|
|
17473
17477
|
onMount(() => {
|
|
@@ -17480,7 +17484,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17480
17484
|
var node = first_child(fragment);
|
|
17481
17485
|
{
|
|
17482
17486
|
var consequent_1 = ($$anchor2) => {
|
|
17483
|
-
var div = root_1$
|
|
17487
|
+
var div = root_1$e();
|
|
17484
17488
|
var node_1 = child(div);
|
|
17485
17489
|
each(node_1, 1, () => shop?.donations?.campaigns, (campaign) => campaign.id, ($$anchor3, campaign) => {
|
|
17486
17490
|
DonationCampaign($$anchor3, {
|
|
@@ -23680,7 +23684,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23680
23684
|
return pop($$exports);
|
|
23681
23685
|
}
|
|
23682
23686
|
create_custom_element(Calendar_prev_button, { children: {}, child: {}, id: {}, ref: {}, tabindex: {} }, [], [], { mode: "open" });
|
|
23683
|
-
var root_1$
|
|
23687
|
+
var root_1$d = /* @__PURE__ */ from_html(`<input/>`);
|
|
23684
23688
|
var root_2$b = /* @__PURE__ */ from_html(`<input/>`);
|
|
23685
23689
|
function Hidden_input($$anchor, $$props) {
|
|
23686
23690
|
push($$props, true);
|
|
@@ -23703,7 +23707,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23703
23707
|
var node = first_child(fragment);
|
|
23704
23708
|
{
|
|
23705
23709
|
var consequent = ($$anchor2) => {
|
|
23706
|
-
var input = root_1$
|
|
23710
|
+
var input = root_1$d();
|
|
23707
23711
|
attribute_effect(input, () => ({ ...get$2(mergedProps), value: value() }), void 0, void 0, void 0, void 0, true);
|
|
23708
23712
|
append($$anchor2, input);
|
|
23709
23713
|
};
|
|
@@ -26157,7 +26161,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26157
26161
|
return pop($$exports);
|
|
26158
26162
|
}
|
|
26159
26163
|
create_custom_element(Popper_content, { content: {}, isStatic: {}, onPlaced: {} }, [], [], { mode: "open" });
|
|
26160
|
-
var root_1$
|
|
26164
|
+
var root_1$c = /* @__PURE__ */ from_html(`<!> <!>`, 1);
|
|
26161
26165
|
function Popper_layer_inner($$anchor, $$props) {
|
|
26162
26166
|
push($$props, true);
|
|
26163
26167
|
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), isValidEvent2 = 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, [
|
|
@@ -26476,7 +26480,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26476
26480
|
const content = ($$anchor2, $$arg0) => {
|
|
26477
26481
|
let floatingProps = () => $$arg0?.().props;
|
|
26478
26482
|
let wrapperProps = () => $$arg0?.().wrapperProps;
|
|
26479
|
-
var fragment_1 = root_1$
|
|
26483
|
+
var fragment_1 = root_1$c();
|
|
26480
26484
|
var node = first_child(fragment_1);
|
|
26481
26485
|
{
|
|
26482
26486
|
var consequent = ($$anchor3) => {
|
|
@@ -28932,7 +28936,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28932
28936
|
}
|
|
28933
28937
|
create_custom_element(Date_field_hidden_input, {}, [], [], { mode: "open" });
|
|
28934
28938
|
var root_2$a = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
28935
|
-
var root$
|
|
28939
|
+
var root$7 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
|
|
28936
28940
|
function Date_field_input($$anchor, $$props) {
|
|
28937
28941
|
const uid = props_id();
|
|
28938
28942
|
push($$props, true);
|
|
@@ -28990,7 +28994,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28990
28994
|
flushSync();
|
|
28991
28995
|
}
|
|
28992
28996
|
};
|
|
28993
|
-
var fragment = root$
|
|
28997
|
+
var fragment = root$7();
|
|
28994
28998
|
var node = first_child(fragment);
|
|
28995
28999
|
{
|
|
28996
29000
|
var consequent = ($$anchor2) => {
|
|
@@ -30848,7 +30852,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30848
30852
|
var root_9$2 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
|
|
30849
30853
|
var root_11$3 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
|
|
30850
30854
|
var root_8$1 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
|
|
30851
|
-
var root_1$
|
|
30855
|
+
var root_1$b = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
|
|
30852
30856
|
function DatePicker_1($$anchor, $$props) {
|
|
30853
30857
|
push($$props, true);
|
|
30854
30858
|
let dateString = prop($$props, "dateString", 15), labelClass = prop($$props, "labelClass", 7), inputClass = prop($$props, "inputClass", 7), labelText = prop($$props, "labelText", 7);
|
|
@@ -30905,7 +30909,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30905
30909
|
set(date2, $$value, true);
|
|
30906
30910
|
},
|
|
30907
30911
|
children: ($$anchor3, $$slotProps) => {
|
|
30908
|
-
var fragment_1 = root_1$
|
|
30912
|
+
var fragment_1 = root_1$b();
|
|
30909
30913
|
var node_1 = first_child(fragment_1);
|
|
30910
30914
|
component(node_1, () => Date_field_label, ($$anchor4, DatePicker_Label) => {
|
|
30911
30915
|
DatePicker_Label($$anchor4, {
|
|
@@ -31150,19 +31154,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31150
31154
|
{ mode: "open" }
|
|
31151
31155
|
);
|
|
31152
31156
|
var root_2$6 = /* @__PURE__ */ from_html(`<span class="go-field-star" aria-hidden="true">*</span>`);
|
|
31153
|
-
var root_1$
|
|
31157
|
+
var root_1$a = /* @__PURE__ */ from_html(` <!>`, 1);
|
|
31154
31158
|
var root_3$6 = /* @__PURE__ */ from_html(`<label><!></label> <input/>`, 1);
|
|
31155
31159
|
var root_4$3 = /* @__PURE__ */ from_html(`<label><input/> <span class="go-checkbox-label"><!></span></label>`);
|
|
31156
31160
|
var root_7$2 = /* @__PURE__ */ from_html(`<option> </option>`);
|
|
31157
31161
|
var root_6$1 = /* @__PURE__ */ from_html(`<option disabled hidden="" selected> </option> <!>`, 1);
|
|
31158
|
-
var root_5
|
|
31162
|
+
var root_5 = /* @__PURE__ */ from_html(`<label><!></label> <select><!></select>`, 1);
|
|
31159
31163
|
var root_11$2 = /* @__PURE__ */ from_html(`<label> <input/></label>`);
|
|
31160
31164
|
var root_9$1 = /* @__PURE__ */ from_html(`<fieldset><legend><!></legend> <!></fieldset>`);
|
|
31161
31165
|
function InputAndLabel($$anchor, $$props) {
|
|
31162
31166
|
push($$props, true);
|
|
31163
31167
|
const labelText = ($$anchor2) => {
|
|
31164
31168
|
next();
|
|
31165
|
-
var fragment = root_1$
|
|
31169
|
+
var fragment = root_1$a();
|
|
31166
31170
|
var text2 = first_child(fragment);
|
|
31167
31171
|
var node = sibling(text2);
|
|
31168
31172
|
{
|
|
@@ -31246,7 +31250,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31246
31250
|
append($$anchor2, label_2);
|
|
31247
31251
|
};
|
|
31248
31252
|
const select = ($$anchor2) => {
|
|
31249
|
-
var fragment_2 = root_5
|
|
31253
|
+
var fragment_2 = root_5();
|
|
31250
31254
|
var label_3 = first_child(fragment_2);
|
|
31251
31255
|
var node_3 = child(label_3);
|
|
31252
31256
|
labelText(node_3);
|
|
@@ -31361,13 +31365,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31361
31365
|
reset(fieldset);
|
|
31362
31366
|
append($$anchor2, fieldset);
|
|
31363
31367
|
};
|
|
31364
|
-
let field = prop($$props, "field", 15),
|
|
31368
|
+
let field = prop($$props, "field", 15), describedByIds = prop($$props, "describedByIds", 7), labelClass = prop($$props, "labelClass", 7), inputClass = prop($$props, "inputClass", 7), host = prop($$props, "host", 7), restProps = /* @__PURE__ */ rest_props($$props, [
|
|
31365
31369
|
"$$slots",
|
|
31366
31370
|
"$$events",
|
|
31367
31371
|
"$$legacy",
|
|
31368
31372
|
"$$host",
|
|
31369
31373
|
"field",
|
|
31370
|
-
"
|
|
31374
|
+
"describedByIds",
|
|
31371
31375
|
"labelClass",
|
|
31372
31376
|
"inputClass",
|
|
31373
31377
|
"host"
|
|
@@ -31399,7 +31403,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31399
31403
|
}
|
|
31400
31404
|
const fieldAttributes = /* @__PURE__ */ user_derived(() => ({
|
|
31401
31405
|
id: get$2(inputId),
|
|
31402
|
-
"aria-describedby":
|
|
31406
|
+
"aria-describedby": describedByIds(),
|
|
31403
31407
|
"aria-required": field().required,
|
|
31404
31408
|
"aria-invalid": field().errors.length > 0,
|
|
31405
31409
|
autocomplete: field().autocomplete,
|
|
@@ -31414,11 +31418,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31414
31418
|
field($$value);
|
|
31415
31419
|
flushSync();
|
|
31416
31420
|
},
|
|
31417
|
-
get
|
|
31418
|
-
return
|
|
31421
|
+
get describedByIds() {
|
|
31422
|
+
return describedByIds();
|
|
31419
31423
|
},
|
|
31420
|
-
set
|
|
31421
|
-
|
|
31424
|
+
set describedByIds($$value) {
|
|
31425
|
+
describedByIds($$value);
|
|
31422
31426
|
flushSync();
|
|
31423
31427
|
},
|
|
31424
31428
|
get labelClass() {
|
|
@@ -31463,7 +31467,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31463
31467
|
InputAndLabel,
|
|
31464
31468
|
{
|
|
31465
31469
|
field: {},
|
|
31466
|
-
|
|
31470
|
+
describedByIds: {},
|
|
31467
31471
|
labelClass: {},
|
|
31468
31472
|
inputClass: {},
|
|
31469
31473
|
host: {}
|
|
@@ -31472,10 +31476,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31472
31476
|
[],
|
|
31473
31477
|
{ mode: "open" }
|
|
31474
31478
|
);
|
|
31475
|
-
var root_1$
|
|
31479
|
+
var root_1$9 = /* @__PURE__ */ from_html(`<span> </span>`);
|
|
31476
31480
|
var root_3$5 = /* @__PURE__ */ from_html(`<li> </li>`);
|
|
31477
|
-
var root_2$5 = /* @__PURE__ */ from_html(`<ul class="go-field-errors"
|
|
31478
|
-
var root$
|
|
31481
|
+
var root_2$5 = /* @__PURE__ */ from_html(`<ul class="go-field-errors"></ul>`);
|
|
31482
|
+
var root$6 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
|
|
31479
31483
|
function Field($$anchor, $$props) {
|
|
31480
31484
|
push($$props, true);
|
|
31481
31485
|
let key = prop($$props, "key", 7), required = prop($$props, "required", 7, false), labelClass = prop($$props, "labelClass", 7), inputClass = prop($$props, "inputClass", 7);
|
|
@@ -31484,9 +31488,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31484
31488
|
const details = /* @__PURE__ */ user_derived(() => _details.value);
|
|
31485
31489
|
const getField = () => get$2(field);
|
|
31486
31490
|
let allErrors = /* @__PURE__ */ user_derived(() => get$2(field) ? [...get$2(field).errors, ...get$2(field).apiErrors].map((e) => shop.t(e)) : []);
|
|
31487
|
-
let
|
|
31488
|
-
let
|
|
31489
|
-
let
|
|
31491
|
+
let hasDescription = /* @__PURE__ */ user_derived(() => get$2(field)?.description);
|
|
31492
|
+
let hasErrors = /* @__PURE__ */ user_derived(() => get$2(allErrors).length > 0);
|
|
31493
|
+
let descriptionId = /* @__PURE__ */ user_derived(() => `go-description-${key()}-${Math.floor(Math.random() * 100)}`);
|
|
31494
|
+
let errorsId = /* @__PURE__ */ user_derived(() => `go-errors-${key()}-${Math.floor(Math.random() * 100)}`);
|
|
31495
|
+
let describedByIds = /* @__PURE__ */ user_derived(() => [
|
|
31496
|
+
get$2(hasDescription) && get$2(descriptionId),
|
|
31497
|
+
get$2(hasErrors) && get$2(errorsId)
|
|
31498
|
+
].filter(Boolean).join(" ") || void 0);
|
|
31490
31499
|
user_effect(() => {
|
|
31491
31500
|
$$props.$$host.classList.toggle("go-field", true);
|
|
31492
31501
|
$$props.$$host.classList.toggle("is-invalid", get$2(allErrors).length > 0);
|
|
@@ -31534,11 +31543,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31534
31543
|
flushSync();
|
|
31535
31544
|
}
|
|
31536
31545
|
};
|
|
31537
|
-
var fragment = root$
|
|
31546
|
+
var fragment = root$6();
|
|
31538
31547
|
var node = first_child(fragment);
|
|
31539
31548
|
InputAndLabel(node, {
|
|
31540
|
-
get
|
|
31541
|
-
return get$2(
|
|
31549
|
+
get describedByIds() {
|
|
31550
|
+
return get$2(describedByIds);
|
|
31542
31551
|
},
|
|
31543
31552
|
get labelClass() {
|
|
31544
31553
|
return labelClass();
|
|
@@ -31557,7 +31566,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31557
31566
|
var node_1 = sibling(node, 2);
|
|
31558
31567
|
{
|
|
31559
31568
|
var consequent = ($$anchor2) => {
|
|
31560
|
-
var span = root_1$
|
|
31569
|
+
var span = root_1$9();
|
|
31561
31570
|
var text2 = child(span, true);
|
|
31562
31571
|
reset(span);
|
|
31563
31572
|
template_effect(() => {
|
|
@@ -31567,7 +31576,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31567
31576
|
append($$anchor2, span);
|
|
31568
31577
|
};
|
|
31569
31578
|
if_block(node_1, ($$render) => {
|
|
31570
|
-
if (get$2(
|
|
31579
|
+
if (get$2(hasDescription)) $$render(consequent);
|
|
31571
31580
|
});
|
|
31572
31581
|
}
|
|
31573
31582
|
var node_2 = sibling(node_1, 2);
|
|
@@ -31586,7 +31595,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31586
31595
|
append($$anchor2, ul);
|
|
31587
31596
|
};
|
|
31588
31597
|
if_block(node_2, ($$render) => {
|
|
31589
|
-
if (get$2(
|
|
31598
|
+
if (get$2(hasErrors)) $$render(consequent_1);
|
|
31590
31599
|
});
|
|
31591
31600
|
}
|
|
31592
31601
|
append($$anchor, fragment);
|
|
@@ -31603,7 +31612,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31603
31612
|
[],
|
|
31604
31613
|
["getField"]
|
|
31605
31614
|
));
|
|
31606
|
-
var root_1$
|
|
31615
|
+
var root_1$8 = /* @__PURE__ */ from_html(`<go-field></go-field>`, 2);
|
|
31607
31616
|
function AllFields($$anchor, $$props) {
|
|
31608
31617
|
push($$props, true);
|
|
31609
31618
|
let _details = getDetails$1($$props.$$host);
|
|
@@ -31612,7 +31621,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31612
31621
|
var fragment = comment();
|
|
31613
31622
|
var node = first_child(fragment);
|
|
31614
31623
|
each(node, 17, () => get$2(allFields2), index$1, ($$anchor2, field) => {
|
|
31615
|
-
var go_field = root_1$
|
|
31624
|
+
var go_field = root_1$8();
|
|
31616
31625
|
template_effect(() => set_custom_element_data(go_field, "key", get$2(field).key));
|
|
31617
31626
|
template_effect(() => set_custom_element_data(go_field, "required", get$2(field).required));
|
|
31618
31627
|
append($$anchor2, go_field);
|
|
@@ -31621,11 +31630,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31621
31630
|
pop();
|
|
31622
31631
|
}
|
|
31623
31632
|
customElements.define("go-all-fields", create_custom_element(AllFields, {}, [], []));
|
|
31624
|
-
var root_2$4 = /* @__PURE__ */ from_html(`<p aria-
|
|
31633
|
+
var root_2$4 = /* @__PURE__ */ from_html(`<p aria-hidden="true"> </p>`);
|
|
31625
31634
|
var root_4$2 = /* @__PURE__ */ from_html(`<li> </li>`);
|
|
31626
31635
|
var root_3$4 = /* @__PURE__ */ from_html(`<ul class="go-error-feedback-api-errors"></ul>`);
|
|
31627
|
-
var
|
|
31628
|
-
var root_1$8 = /* @__PURE__ */ from_html(`<div><!> <!> <!></div>`);
|
|
31636
|
+
var root$5 = /* @__PURE__ */ from_html(`<div><p aria-live="assertive" class="sr-only"><!></p> <!> <!></div>`);
|
|
31629
31637
|
function ErrorsFeedback($$anchor, $$props) {
|
|
31630
31638
|
push($$props, true);
|
|
31631
31639
|
const _details = getDetails$1($$props.$$host);
|
|
@@ -31635,80 +31643,71 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31635
31643
|
set(errorsOnSubmit, errors(get$2(details)?.fields), true);
|
|
31636
31644
|
});
|
|
31637
31645
|
});
|
|
31638
|
-
let errorsRealtime = /* @__PURE__ */ state(
|
|
31646
|
+
let errorsRealtime = /* @__PURE__ */ state(0);
|
|
31639
31647
|
setInterval(
|
|
31640
31648
|
() => {
|
|
31641
|
-
set(errorsRealtime, errors(get$2(details)?.fields), true);
|
|
31649
|
+
set(errorsRealtime, errors(get$2(details)?.fields) || 0, true);
|
|
31642
31650
|
},
|
|
31643
31651
|
100
|
|
31644
31652
|
);
|
|
31653
|
+
let numErrors = /* @__PURE__ */ user_derived(() => get$2(errorsRealtime) + (get$2(details)?.apiErrors?.length || 0));
|
|
31645
31654
|
let errorsOnSubmit = /* @__PURE__ */ state(-1);
|
|
31646
|
-
|
|
31647
|
-
|
|
31648
|
-
|
|
31655
|
+
user_effect(() => {
|
|
31656
|
+
$$props.$$host.classList.toggle("is-invalid", get$2(numErrors) > 0);
|
|
31657
|
+
$$props.$$host.classList.toggle("go-feedback", true);
|
|
31658
|
+
$$props.$$host.setAttribute("data-num-errors", get$2(numErrors).toString());
|
|
31659
|
+
});
|
|
31660
|
+
var div = root$5();
|
|
31661
|
+
var p2 = child(div);
|
|
31662
|
+
var node = child(p2);
|
|
31649
31663
|
{
|
|
31650
|
-
var
|
|
31651
|
-
var
|
|
31652
|
-
|
|
31653
|
-
|
|
31654
|
-
|
|
31655
|
-
|
|
31656
|
-
var p2 = root_2$4();
|
|
31657
|
-
var text2 = child(p2, true);
|
|
31658
|
-
reset(p2);
|
|
31659
|
-
template_effect(($0) => set_text(text2, $0), [
|
|
31660
|
-
() => shop.t("forms.errorSummary", { count: get$2(errorsOnSubmit) })
|
|
31661
|
-
]);
|
|
31662
|
-
append($$anchor3, p2);
|
|
31663
|
-
};
|
|
31664
|
-
if_block(node_1, ($$render) => {
|
|
31665
|
-
if (get$2(errorsOnSubmit) > 0) $$render(consequent);
|
|
31666
|
-
});
|
|
31667
|
-
}
|
|
31668
|
-
var node_2 = sibling(node_1, 2);
|
|
31669
|
-
{
|
|
31670
|
-
var consequent_1 = ($$anchor3) => {
|
|
31671
|
-
var ul = root_3$4();
|
|
31672
|
-
each(ul, 21, () => get$2(details)?.apiErrors, index$1, ($$anchor4, error) => {
|
|
31673
|
-
var li = root_4$2();
|
|
31674
|
-
var text_1 = child(li, true);
|
|
31675
|
-
reset(li);
|
|
31676
|
-
template_effect(() => set_text(text_1, get$2(error)));
|
|
31677
|
-
append($$anchor4, li);
|
|
31678
|
-
});
|
|
31679
|
-
reset(ul);
|
|
31680
|
-
append($$anchor3, ul);
|
|
31681
|
-
};
|
|
31682
|
-
if_block(node_2, ($$render) => {
|
|
31683
|
-
if (get$2(details) && isArray(get$2(details).apiErrors) && get$2(details).apiErrors.length > 0) $$render(consequent_1);
|
|
31684
|
-
});
|
|
31685
|
-
}
|
|
31686
|
-
var node_3 = sibling(node_2, 2);
|
|
31687
|
-
{
|
|
31688
|
-
var consequent_2 = ($$anchor3) => {
|
|
31689
|
-
var p_1 = root_5();
|
|
31690
|
-
var text_2 = child(p_1, true);
|
|
31691
|
-
reset(p_1);
|
|
31692
|
-
template_effect(($0) => set_text(text_2, $0), [
|
|
31693
|
-
() => shop.t("forms.errorSummary", { count: get$2(errorsRealtime) })
|
|
31694
|
-
]);
|
|
31695
|
-
append($$anchor3, p_1);
|
|
31696
|
-
};
|
|
31697
|
-
if_block(node_3, ($$render) => {
|
|
31698
|
-
if (get$2(errorsRealtime) > 0) $$render(consequent_2);
|
|
31699
|
-
});
|
|
31700
|
-
}
|
|
31701
|
-
reset(div);
|
|
31702
|
-
template_effect(() => classes = set_class(div, 1, "go-error-feedback go-feedback", null, classes, {
|
|
31703
|
-
"is-invalid": get$2(errorsRealtime) || get$2(generalApiErrors).length > 0
|
|
31704
|
-
}));
|
|
31705
|
-
append($$anchor2, div);
|
|
31664
|
+
var consequent = ($$anchor2) => {
|
|
31665
|
+
var text$1 = text();
|
|
31666
|
+
template_effect(($0) => set_text(text$1, $0), [
|
|
31667
|
+
() => shop.t("forms.errorSummary", { count: get$2(errorsOnSubmit) })
|
|
31668
|
+
]);
|
|
31669
|
+
append($$anchor2, text$1);
|
|
31706
31670
|
};
|
|
31707
31671
|
if_block(node, ($$render) => {
|
|
31708
|
-
if (get$2(
|
|
31672
|
+
if (get$2(errorsOnSubmit) > 0) $$render(consequent);
|
|
31709
31673
|
});
|
|
31710
31674
|
}
|
|
31711
|
-
|
|
31675
|
+
reset(p2);
|
|
31676
|
+
var node_1 = sibling(p2, 2);
|
|
31677
|
+
{
|
|
31678
|
+
var consequent_1 = ($$anchor2) => {
|
|
31679
|
+
var p_1 = root_2$4();
|
|
31680
|
+
var text_1 = child(p_1, true);
|
|
31681
|
+
reset(p_1);
|
|
31682
|
+
template_effect(($0) => set_text(text_1, $0), [
|
|
31683
|
+
() => shop.t("forms.errorSummary", { count: get$2(errorsRealtime) })
|
|
31684
|
+
]);
|
|
31685
|
+
append($$anchor2, p_1);
|
|
31686
|
+
};
|
|
31687
|
+
if_block(node_1, ($$render) => {
|
|
31688
|
+
if (get$2(errorsRealtime) > 0) $$render(consequent_1);
|
|
31689
|
+
});
|
|
31690
|
+
}
|
|
31691
|
+
var node_2 = sibling(node_1, 2);
|
|
31692
|
+
{
|
|
31693
|
+
var consequent_2 = ($$anchor2) => {
|
|
31694
|
+
var ul = root_3$4();
|
|
31695
|
+
each(ul, 21, () => get$2(details)?.apiErrors, index$1, ($$anchor3, error) => {
|
|
31696
|
+
var li = root_4$2();
|
|
31697
|
+
var text_2 = child(li, true);
|
|
31698
|
+
reset(li);
|
|
31699
|
+
template_effect(() => set_text(text_2, get$2(error)));
|
|
31700
|
+
append($$anchor3, li);
|
|
31701
|
+
});
|
|
31702
|
+
reset(ul);
|
|
31703
|
+
append($$anchor2, ul);
|
|
31704
|
+
};
|
|
31705
|
+
if_block(node_2, ($$render) => {
|
|
31706
|
+
if (get$2(details) && isArray(get$2(details).apiErrors) && get$2(details).apiErrors.length > 0) $$render(consequent_2);
|
|
31707
|
+
});
|
|
31708
|
+
}
|
|
31709
|
+
reset(div);
|
|
31710
|
+
append($$anchor, div);
|
|
31712
31711
|
pop();
|
|
31713
31712
|
}
|
|
31714
31713
|
customElements.define("go-errors-feedback", create_custom_element(ErrorsFeedback, {}, [], []));
|
|
@@ -33573,7 +33572,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33573
33572
|
reset(ul);
|
|
33574
33573
|
reset(li);
|
|
33575
33574
|
var node_1 = sibling(li, 2);
|
|
33576
|
-
each(node_1, 17, () => get$2(details).preCart.items,
|
|
33575
|
+
each(node_1, 17, () => get$2(details).preCart.items, (ci) => ci.uuid, ($$anchor3, ci) => {
|
|
33577
33576
|
Item($$anchor3, {
|
|
33578
33577
|
get item() {
|
|
33579
33578
|
return get$2(ci);
|