@gomusdev/web-components 4.14.4 → 4.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/dist-js/components/order/components/subcomponents/breakdown/items/Coupon.svelte.d.ts +1 -0
- package/dist-js/components/order/components/subcomponents/breakdown/items/Donation.svelte.d.ts +1 -0
- package/dist-js/components/order/components/subcomponents/breakdown/items/Merchandise.svelte.d.ts +1 -0
- package/dist-js/gomus-webcomponents.iife.js +286 -114
- package/dist-js/gomus-webcomponents.js +286 -114
- package/dist-js/gomus-webcomponents.min.iife.js +19 -19
- package/dist-js/gomus-webcomponents.min.js +4593 -4489
- package/dist-js/src/components/order/components/subcomponents/breakdown/items/Coupon.spec.d.ts +1 -0
- package/dist-js/src/components/order/components/subcomponents/breakdown/items/Donation.spec.d.ts +1 -0
- package/dist-js/src/components/order/components/subcomponents/breakdown/items/Merchandise.spec.d.ts +1 -0
- package/dist-js/src/components/order/lib/OrderDetails.spec.d.ts +1 -0
- package/dist-js/src/factories/CouponFactories.d.ts +14 -1
- package/dist-js/src/factories/DonationFactories.d.ts +9 -0
- package/dist-js/src/factories/MerchandiseFactories.d.ts +11 -0
- package/package.json +1 -1
|
@@ -6381,12 +6381,14 @@ var defaultTranslations_default = {
|
|
|
6381
6381
|
en: {
|
|
6382
6382
|
"quantity.remove": "Remove item",
|
|
6383
6383
|
"quantity.remove.label": "✕",
|
|
6384
|
-
"cart.item.remove": "✕"
|
|
6384
|
+
"cart.item.remove": "✕",
|
|
6385
|
+
"common.table.donation": "Donation"
|
|
6385
6386
|
},
|
|
6386
6387
|
de: {
|
|
6387
6388
|
"quantity.remove": "Artikel entfernen",
|
|
6388
6389
|
"quantity.remove.label": "✕",
|
|
6389
|
-
"cart.item.remove": "✕"
|
|
6390
|
+
"cart.item.remove": "✕",
|
|
6391
|
+
"common.table.donation": "Spende"
|
|
6390
6392
|
}
|
|
6391
6393
|
};
|
|
6392
6394
|
//#endregion
|
|
@@ -13986,6 +13988,9 @@ var Shop = class {
|
|
|
13986
13988
|
}
|
|
13987
13989
|
});
|
|
13988
13990
|
}
|
|
13991
|
+
#fetchId(endpoint, query, path = {}) {
|
|
13992
|
+
return endpoint + JSON.stringify(query) + JSON.stringify(path);
|
|
13993
|
+
}
|
|
13989
13994
|
/**
|
|
13990
13995
|
* Returns a reactive value that will contain the fetched data, no need to await.
|
|
13991
13996
|
*
|
|
@@ -14007,7 +14012,7 @@ var Shop = class {
|
|
|
14007
14012
|
return get$2(this.#data)[dataKey];
|
|
14008
14013
|
}
|
|
14009
14014
|
const query = options.query;
|
|
14010
|
-
const fetchId = endpoint
|
|
14015
|
+
const fetchId = this.#fetchId(endpoint, query, options.path);
|
|
14011
14016
|
const isNotFetchedYet = !this.#fetchStatus[fetchId];
|
|
14012
14017
|
const isCacheExpired = this.#fetchStatus[fetchId]?.fetchedAt < Date.now() - options.cache * 1e3;
|
|
14013
14018
|
if (isNotFetchedYet || isCacheExpired) this.apiGet(endpoint, query, options.path).then((ret) => {
|
|
@@ -14141,7 +14146,7 @@ var Shop = class {
|
|
|
14141
14146
|
}
|
|
14142
14147
|
async apiGet(path, query = {}, pathOptions) {
|
|
14143
14148
|
this.#ensureApi();
|
|
14144
|
-
const fetchId = path
|
|
14149
|
+
const fetchId = this.#fetchId(path, query, pathOptions);
|
|
14145
14150
|
this.#fetchStatus[fetchId] = {
|
|
14146
14151
|
status: "fetching",
|
|
14147
14152
|
fetchedAt: Date.now()
|
|
@@ -14313,7 +14318,7 @@ var setPersonalizationDetails = createSetDetails(KEY$5);
|
|
|
14313
14318
|
var getPersonalizationDetails = createGetDetails(KEY$5);
|
|
14314
14319
|
//#endregion
|
|
14315
14320
|
//#region src/components/annualTicketPersonalization/components/AnnualTicketPersonalization.svelte
|
|
14316
|
-
var root$
|
|
14321
|
+
var root$61 = /* @__PURE__ */ from_html(`<li><a> </a></li>`);
|
|
14317
14322
|
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>`);
|
|
14318
14323
|
function AnnualTicketPersonalization($$anchor, $$props) {
|
|
14319
14324
|
push($$props, true);
|
|
@@ -14348,7 +14353,7 @@ function AnnualTicketPersonalization($$anchor, $$props) {
|
|
|
14348
14353
|
reset(li_1);
|
|
14349
14354
|
var node_2 = sibling(li_1, 2);
|
|
14350
14355
|
var consequent = ($$anchor) => {
|
|
14351
|
-
var li_2 = root$
|
|
14356
|
+
var li_2 = root$61();
|
|
14352
14357
|
var a = child(li_2);
|
|
14353
14358
|
var text_2 = child(a, true);
|
|
14354
14359
|
reset(a);
|
|
@@ -15035,7 +15040,7 @@ function wrapInElement(host, tag, props) {
|
|
|
15035
15040
|
}
|
|
15036
15041
|
//#endregion
|
|
15037
15042
|
//#region src/components/forms/ui/generic/Form.svelte
|
|
15038
|
-
var root$
|
|
15043
|
+
var root$60 = /* @__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);
|
|
15039
15044
|
function Form($$anchor, $$props) {
|
|
15040
15045
|
push($$props, true);
|
|
15041
15046
|
let formId = prop($$props, "formId", 7), custom = prop($$props, "custom", 7);
|
|
@@ -15081,7 +15086,7 @@ function Form($$anchor, $$props) {
|
|
|
15081
15086
|
var fragment = comment();
|
|
15082
15087
|
var node = first_child(fragment);
|
|
15083
15088
|
var consequent = ($$anchor) => {
|
|
15084
|
-
var fragment_1 = root$
|
|
15089
|
+
var fragment_1 = root$60();
|
|
15085
15090
|
var go_submit = sibling(sibling(first_child(fragment_1), 2), 2);
|
|
15086
15091
|
var text = child(go_submit, true);
|
|
15087
15092
|
reset(go_submit);
|
|
@@ -15108,7 +15113,7 @@ customElements.define("go-form", create_custom_element(Form, {
|
|
|
15108
15113
|
}, [], ["details"]));
|
|
15109
15114
|
//#endregion
|
|
15110
15115
|
//#region src/components/auth/passwordReset/PasswordReset.svelte
|
|
15111
|
-
var root$
|
|
15116
|
+
var root$59 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
|
|
15112
15117
|
function PasswordReset($$anchor, $$props) {
|
|
15113
15118
|
push($$props, true);
|
|
15114
15119
|
let custom = prop($$props, "custom", 7, false), redirectUrl = prop($$props, "redirectUrl", 7, "");
|
|
@@ -15152,7 +15157,7 @@ function PasswordReset($$anchor, $$props) {
|
|
|
15152
15157
|
flushSync();
|
|
15153
15158
|
}
|
|
15154
15159
|
};
|
|
15155
|
-
var go_form = root$
|
|
15160
|
+
var go_form = root$59();
|
|
15156
15161
|
set_custom_element_data(go_form, "formId", "passwordReset");
|
|
15157
15162
|
template_effect(() => set_custom_element_data(go_form, "custom", custom()));
|
|
15158
15163
|
event("submit", go_form, passwordReset);
|
|
@@ -15168,7 +15173,7 @@ customElements.define("go-password-reset", create_custom_element(PasswordReset,
|
|
|
15168
15173
|
}, [], []));
|
|
15169
15174
|
//#endregion
|
|
15170
15175
|
//#region src/components/auth/setPassword/SetPassword.svelte
|
|
15171
|
-
var root$
|
|
15176
|
+
var root$58 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
|
|
15172
15177
|
function SetPassword($$anchor, $$props) {
|
|
15173
15178
|
push($$props, true);
|
|
15174
15179
|
let accessToken = prop($$props, "accessToken", 7, ""), client = prop($$props, "client", 7, ""), uid = prop($$props, "uid", 7, "");
|
|
@@ -15222,7 +15227,7 @@ function SetPassword($$anchor, $$props) {
|
|
|
15222
15227
|
flushSync();
|
|
15223
15228
|
}
|
|
15224
15229
|
};
|
|
15225
|
-
var go_form = root$
|
|
15230
|
+
var go_form = root$58();
|
|
15226
15231
|
set_custom_element_data(go_form, "formId", "setPassword");
|
|
15227
15232
|
event("submit", go_form, setNewPassword);
|
|
15228
15233
|
append($$anchor, go_form);
|
|
@@ -15474,8 +15479,8 @@ var setCartDetails = createSetDetails(KEY$3);
|
|
|
15474
15479
|
var getCartDetails = createGetDetails(KEY$3);
|
|
15475
15480
|
//#endregion
|
|
15476
15481
|
//#region src/components/cart/components/itemTitles/Coupon.svelte
|
|
15477
|
-
var root$
|
|
15478
|
-
function Coupon($$anchor, $$props) {
|
|
15482
|
+
var root$57 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span>`);
|
|
15483
|
+
function Coupon$1($$anchor, $$props) {
|
|
15479
15484
|
push($$props, true);
|
|
15480
15485
|
let cartItem = prop($$props, "cartItem", 7);
|
|
15481
15486
|
var $$exports = {
|
|
@@ -15487,17 +15492,17 @@ function Coupon($$anchor, $$props) {
|
|
|
15487
15492
|
flushSync();
|
|
15488
15493
|
}
|
|
15489
15494
|
};
|
|
15490
|
-
var span = root$
|
|
15495
|
+
var span = root$57();
|
|
15491
15496
|
var text = child(span, true);
|
|
15492
15497
|
reset(span);
|
|
15493
15498
|
template_effect(() => set_text(text, cartItem().product.title));
|
|
15494
15499
|
append($$anchor, span);
|
|
15495
15500
|
return pop($$exports);
|
|
15496
15501
|
}
|
|
15497
|
-
create_custom_element(Coupon, { cartItem: {} }, [], [], { mode: "open" });
|
|
15502
|
+
create_custom_element(Coupon$1, { cartItem: {} }, [], [], { mode: "open" });
|
|
15498
15503
|
//#endregion
|
|
15499
15504
|
//#region src/components/cart/components/itemTitles/Event.svelte
|
|
15500
|
-
var root$
|
|
15505
|
+
var root$56 = /* @__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);
|
|
15501
15506
|
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);
|
|
15502
15507
|
function Event$2($$anchor, $$props) {
|
|
15503
15508
|
push($$props, true);
|
|
@@ -15524,7 +15529,7 @@ function Event$2($$anchor, $$props) {
|
|
|
15524
15529
|
reset(span);
|
|
15525
15530
|
var node = sibling(span);
|
|
15526
15531
|
var consequent = ($$anchor) => {
|
|
15527
|
-
var fragment_1 = root$
|
|
15532
|
+
var fragment_1 = root$56();
|
|
15528
15533
|
var span_3 = first_child(fragment_1);
|
|
15529
15534
|
var text_2 = child(span_3, true);
|
|
15530
15535
|
reset(span_3);
|
|
@@ -15550,7 +15555,7 @@ function Event$2($$anchor, $$props) {
|
|
|
15550
15555
|
create_custom_element(Event$2, { cartItem: {} }, [], [], { mode: "open" });
|
|
15551
15556
|
//#endregion
|
|
15552
15557
|
//#region src/components/cart/components/itemTitles/Ticket.svelte
|
|
15553
|
-
var root$
|
|
15558
|
+
var root$55 = /* @__PURE__ */ from_html(`<span class="go-cart-item-subtitle" data-testid="cart-item-subtitle"> </span>`);
|
|
15554
15559
|
var root_1$19 = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
|
|
15555
15560
|
var root_2$14 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
|
|
15556
15561
|
var root_3$10 = /* @__PURE__ */ from_html(`<span class="go-cart-item-title" data-testid="cart-item-title"> </span> <!> <!>`, 1);
|
|
@@ -15572,7 +15577,7 @@ function Ticket($$anchor, $$props) {
|
|
|
15572
15577
|
reset(span);
|
|
15573
15578
|
var node = sibling(span, 2);
|
|
15574
15579
|
var consequent = ($$anchor) => {
|
|
15575
|
-
var span_1 = root$
|
|
15580
|
+
var span_1 = root$55();
|
|
15576
15581
|
var text_1 = child(span_1, true);
|
|
15577
15582
|
reset(span_1);
|
|
15578
15583
|
template_effect(() => set_text(text_1, cartItem().product.sub_title));
|
|
@@ -15612,7 +15617,7 @@ function Ticket($$anchor, $$props) {
|
|
|
15612
15617
|
create_custom_element(Ticket, { cartItem: {} }, [], [], { mode: "open" });
|
|
15613
15618
|
//#endregion
|
|
15614
15619
|
//#region src/components/cart/components/itemTitles/Tour.svelte
|
|
15615
|
-
var root$
|
|
15620
|
+
var root$54 = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
|
|
15616
15621
|
var root_1$18 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
|
|
15617
15622
|
var root_2$13 = /* @__PURE__ */ from_html(`<span class="go-cart-item-custom" data-testid="cart-item-custom"> </span>`);
|
|
15618
15623
|
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);
|
|
@@ -15660,7 +15665,7 @@ function Tour$1($$anchor, $$props) {
|
|
|
15660
15665
|
reset(span_2);
|
|
15661
15666
|
var node_1 = sibling(span_2, 2);
|
|
15662
15667
|
var consequent = ($$anchor) => {
|
|
15663
|
-
var span_3 = root$
|
|
15668
|
+
var span_3 = root$54();
|
|
15664
15669
|
var text_3 = child(span_3, true);
|
|
15665
15670
|
reset(span_3);
|
|
15666
15671
|
template_effect(() => set_text(text_3, get$2(slot).time));
|
|
@@ -15727,7 +15732,7 @@ function canDecrement(value, { floor = 0 }) {
|
|
|
15727
15732
|
}
|
|
15728
15733
|
//#endregion
|
|
15729
15734
|
//#region src/components/shared/quantityStepper/QuantityStepper.svelte
|
|
15730
|
-
var root$
|
|
15735
|
+
var root$53 = /* @__PURE__ */ from_html(`<div class="go-quantity-stepper" role="group"><button type="button" 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>`);
|
|
15731
15736
|
function QuantityStepper($$anchor, $$props) {
|
|
15732
15737
|
const inputId = props_id();
|
|
15733
15738
|
push($$props, true);
|
|
@@ -15881,7 +15886,7 @@ function QuantityStepper($$anchor, $$props) {
|
|
|
15881
15886
|
flushSync();
|
|
15882
15887
|
}
|
|
15883
15888
|
};
|
|
15884
|
-
var div = root$
|
|
15889
|
+
var div = root$53();
|
|
15885
15890
|
var button = child(div);
|
|
15886
15891
|
let classes;
|
|
15887
15892
|
var span = child(button);
|
|
@@ -15961,7 +15966,7 @@ function option(value) {
|
|
|
15961
15966
|
}
|
|
15962
15967
|
//#endregion
|
|
15963
15968
|
//#region src/components/shared/quantityStepper/QuantityControl.svelte
|
|
15964
|
-
var root$
|
|
15969
|
+
var root$52 = /* @__PURE__ */ from_html(`<option> </option>`);
|
|
15965
15970
|
var root_1$17 = /* @__PURE__ */ from_html(`<select class="go-quantity-select"></select>`);
|
|
15966
15971
|
function QuantityControl($$anchor, $$props) {
|
|
15967
15972
|
push($$props, true);
|
|
@@ -16091,7 +16096,7 @@ function QuantityControl($$anchor, $$props) {
|
|
|
16091
16096
|
var alternate = ($$anchor) => {
|
|
16092
16097
|
var select = root_1$17();
|
|
16093
16098
|
each(select, 21, () => generateQuantityOptions(min(), max(), { floor: deselectable() ? floor() : min() }), (q) => q.value, ($$anchor, q) => {
|
|
16094
|
-
var option = root$
|
|
16099
|
+
var option = root$52();
|
|
16095
16100
|
var text = child(option, true);
|
|
16096
16101
|
reset(option);
|
|
16097
16102
|
var option_value = {};
|
|
@@ -17976,7 +17981,7 @@ function createDOMPurify() {
|
|
|
17976
17981
|
var purify = createDOMPurify();
|
|
17977
17982
|
//#endregion
|
|
17978
17983
|
//#region src/components/cart/components/SubRow.svelte
|
|
17979
|
-
var root$
|
|
17984
|
+
var root$51 = /* @__PURE__ */ from_html(`<span class="go-sub-ticket-description"></span>`);
|
|
17980
17985
|
var root_1$16 = /* @__PURE__ */ from_html(`<span class="go-sub-ticket-quantity"> </span>`);
|
|
17981
17986
|
var root_2$12 = /* @__PURE__ */ from_html(`<li><span class="go-sub-ticket-title"> </span> <!> <!></li>`);
|
|
17982
17987
|
function SubRow($$anchor, $$props) {
|
|
@@ -18027,7 +18032,7 @@ function SubRow($$anchor, $$props) {
|
|
|
18027
18032
|
reset(span);
|
|
18028
18033
|
var node = sibling(span, 2);
|
|
18029
18034
|
var consequent = ($$anchor) => {
|
|
18030
|
-
var span_1 = root$
|
|
18035
|
+
var span_1 = root$51();
|
|
18031
18036
|
html$2(span_1, () => purify.sanitize(sub().description), true);
|
|
18032
18037
|
reset(span_1);
|
|
18033
18038
|
append($$anchor, span_1);
|
|
@@ -18114,7 +18119,7 @@ function quantityLabel(item, locale) {
|
|
|
18114
18119
|
}
|
|
18115
18120
|
//#endregion
|
|
18116
18121
|
//#region src/components/cart/components/Item.svelte
|
|
18117
|
-
var root$
|
|
18122
|
+
var root$50 = /* @__PURE__ */ from_html(`<s class="go-cart-item-price-original"> </s> <span class="go-cart-item-price-discounted"> </span>`, 1);
|
|
18118
18123
|
var root_1$15 = /* @__PURE__ */ from_html(`<span class="go-cart-item-price-discounted"> </span>`);
|
|
18119
18124
|
var root_2$11 = /* @__PURE__ */ from_html(`<span data-testid="cart-item-participant-count"> </span>`);
|
|
18120
18125
|
var root_3$8 = /* @__PURE__ */ from_html(`<span data-testid="cart-item-voucher-quantity"> </span>`);
|
|
@@ -18203,7 +18208,7 @@ function Item$1($$anchor, $$props) {
|
|
|
18203
18208
|
} });
|
|
18204
18209
|
};
|
|
18205
18210
|
var consequent_2 = ($$anchor) => {
|
|
18206
|
-
Coupon($$anchor, { get cartItem() {
|
|
18211
|
+
Coupon$1($$anchor, { get cartItem() {
|
|
18207
18212
|
return displayItem();
|
|
18208
18213
|
} });
|
|
18209
18214
|
};
|
|
@@ -18222,7 +18227,7 @@ function Item$1($$anchor, $$props) {
|
|
|
18222
18227
|
var li_1 = sibling(li, 2);
|
|
18223
18228
|
var node_2 = child(li_1);
|
|
18224
18229
|
var consequent_4 = ($$anchor) => {
|
|
18225
|
-
var fragment_6 = root$
|
|
18230
|
+
var fragment_6 = root$50();
|
|
18226
18231
|
var s = first_child(fragment_6);
|
|
18227
18232
|
var text = child(s, true);
|
|
18228
18233
|
reset(s);
|
|
@@ -18369,7 +18374,7 @@ create_custom_element(Item$1, {
|
|
|
18369
18374
|
}, [], [], { mode: "open" });
|
|
18370
18375
|
//#endregion
|
|
18371
18376
|
//#region src/components/cart/components/CartItems.svelte
|
|
18372
|
-
var root$
|
|
18377
|
+
var root$49 = /* @__PURE__ */ from_html(`<li class="go-cart-header-remove"></li>`);
|
|
18373
18378
|
var root_1$14 = /* @__PURE__ */ from_html(`<li class="go-cart-item"><!></li>`);
|
|
18374
18379
|
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>`);
|
|
18375
18380
|
function CartItems($$anchor, $$props) {
|
|
@@ -18393,7 +18398,7 @@ function CartItems($$anchor, $$props) {
|
|
|
18393
18398
|
reset(li_3);
|
|
18394
18399
|
var node_1 = sibling(li_3, 2);
|
|
18395
18400
|
var consequent = ($$anchor) => {
|
|
18396
|
-
append($$anchor, root$
|
|
18401
|
+
append($$anchor, root$49());
|
|
18397
18402
|
};
|
|
18398
18403
|
if_block(node_1, ($$render) => {
|
|
18399
18404
|
if (!get$2(details).preview) $$render(consequent);
|
|
@@ -18442,7 +18447,7 @@ function CartItems($$anchor, $$props) {
|
|
|
18442
18447
|
customElements.define("go-cart-items", create_custom_element(CartItems, {}, [], []));
|
|
18443
18448
|
//#endregion
|
|
18444
18449
|
//#region src/components/cart/components/CartCoupons.svelte
|
|
18445
|
-
var root$
|
|
18450
|
+
var root$48 = /* @__PURE__ */ from_html(`<li class="go-cart-coupon-remove-cell"><button class="go-cart-remove go-cart-coupon-remove">⨉</button></li>`);
|
|
18446
18451
|
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>`);
|
|
18447
18452
|
var root_2$9 = /* @__PURE__ */ from_html(`<ol data-testid="cart-coupons"></ol>`);
|
|
18448
18453
|
function CartCoupons($$anchor, $$props) {
|
|
@@ -18463,7 +18468,7 @@ function CartCoupons($$anchor, $$props) {
|
|
|
18463
18468
|
reset(li_1);
|
|
18464
18469
|
var node_1 = sibling(li_1, 2);
|
|
18465
18470
|
var consequent = ($$anchor) => {
|
|
18466
|
-
var li_2 = root$
|
|
18471
|
+
var li_2 = root$48();
|
|
18467
18472
|
var button = child(li_2);
|
|
18468
18473
|
reset(li_2);
|
|
18469
18474
|
template_effect(($0) => set_attribute(button, "aria-label", $0), [() => shop.t("cart.coupons.remove")]);
|
|
@@ -18495,7 +18500,7 @@ delegate(["click"]);
|
|
|
18495
18500
|
customElements.define("go-cart-coupons", create_custom_element(CartCoupons, {}, [], []));
|
|
18496
18501
|
//#endregion
|
|
18497
18502
|
//#region src/components/cart/components/CartTotalAmount.svelte
|
|
18498
|
-
var root$
|
|
18503
|
+
var root$47 = /* @__PURE__ */ from_html(`<span class="go-cart-total-amount" data-testid="cart-total-amount"> </span>`);
|
|
18499
18504
|
function CartTotalAmount($$anchor, $$props) {
|
|
18500
18505
|
push($$props, true);
|
|
18501
18506
|
const _details = getCartDetails($$props.$$host);
|
|
@@ -18503,7 +18508,7 @@ function CartTotalAmount($$anchor, $$props) {
|
|
|
18503
18508
|
var fragment = comment();
|
|
18504
18509
|
var node = first_child(fragment);
|
|
18505
18510
|
var consequent = ($$anchor) => {
|
|
18506
|
-
var span = root$
|
|
18511
|
+
var span = root$47();
|
|
18507
18512
|
var text = child(span, true);
|
|
18508
18513
|
reset(span);
|
|
18509
18514
|
template_effect(($0) => set_text(text, $0), [() => formatCurrency(get$2(details).totalPriceCents)]);
|
|
@@ -18572,7 +18577,7 @@ customElements.define("go-cart", create_custom_element(Cart, { preview: {
|
|
|
18572
18577
|
} }, [], []));
|
|
18573
18578
|
//#endregion
|
|
18574
18579
|
//#region src/components/cart/components/CartSubtotalAmount.svelte
|
|
18575
|
-
var root$
|
|
18580
|
+
var root$46 = /* @__PURE__ */ from_html(`<span class="go-cart-subtotal-amount" data-testid="cart-subtotal-amount"> </span>`);
|
|
18576
18581
|
function CartSubtotalAmount($$anchor, $$props) {
|
|
18577
18582
|
push($$props, true);
|
|
18578
18583
|
const _details = getCartDetails($$props.$$host);
|
|
@@ -18580,7 +18585,7 @@ function CartSubtotalAmount($$anchor, $$props) {
|
|
|
18580
18585
|
var fragment = comment();
|
|
18581
18586
|
var node = first_child(fragment);
|
|
18582
18587
|
var consequent = ($$anchor) => {
|
|
18583
|
-
var span = root$
|
|
18588
|
+
var span = root$46();
|
|
18584
18589
|
var text = child(span, true);
|
|
18585
18590
|
reset(span);
|
|
18586
18591
|
template_effect(($0) => set_text(text, $0), [() => formatCurrency(get$2(details).subtotalPriceCents)]);
|
|
@@ -18595,7 +18600,7 @@ function CartSubtotalAmount($$anchor, $$props) {
|
|
|
18595
18600
|
customElements.define("go-cart-subtotal-amount", create_custom_element(CartSubtotalAmount, {}, [], []));
|
|
18596
18601
|
//#endregion
|
|
18597
18602
|
//#region src/components/cart/components/CartDiscountedAmount.svelte
|
|
18598
|
-
var root$
|
|
18603
|
+
var root$45 = /* @__PURE__ */ from_html(`<span class="go-cart-discounted-amount" data-testid="cart-discounted-amount"><span class="go-cart-discounted-amount-sign">−</span> </span>`);
|
|
18599
18604
|
function CartDiscountedAmount($$anchor, $$props) {
|
|
18600
18605
|
push($$props, true);
|
|
18601
18606
|
const _details = getCartDetails($$props.$$host);
|
|
@@ -18603,7 +18608,7 @@ function CartDiscountedAmount($$anchor, $$props) {
|
|
|
18603
18608
|
var fragment = comment();
|
|
18604
18609
|
var node = first_child(fragment);
|
|
18605
18610
|
var consequent = ($$anchor) => {
|
|
18606
|
-
var span = root$
|
|
18611
|
+
var span = root$45();
|
|
18607
18612
|
var text = sibling(child(span), 1, true);
|
|
18608
18613
|
reset(span);
|
|
18609
18614
|
template_effect(($0) => set_text(text, $0), [() => formatCurrency(get$2(details).discountedAmountCents)]);
|
|
@@ -18847,7 +18852,7 @@ function fail(errors) {
|
|
|
18847
18852
|
}
|
|
18848
18853
|
//#endregion
|
|
18849
18854
|
//#region src/components/couponRedemption/CouponRedemption.svelte
|
|
18850
|
-
var root$
|
|
18855
|
+
var root$44 = /* @__PURE__ */ from_html(`<go-form></go-form>`, 2);
|
|
18851
18856
|
function CouponRedemption($$anchor, $$props) {
|
|
18852
18857
|
push($$props, true);
|
|
18853
18858
|
Forms.defineForm({
|
|
@@ -18884,7 +18889,7 @@ function CouponRedemption($$anchor, $$props) {
|
|
|
18884
18889
|
return runRedeem(form);
|
|
18885
18890
|
}
|
|
18886
18891
|
var $$exports = { flush };
|
|
18887
|
-
var go_form = root$
|
|
18892
|
+
var go_form = root$44();
|
|
18888
18893
|
set_custom_element_data(go_form, "formId", "couponRedemption");
|
|
18889
18894
|
event("submit", go_form, redeem$1);
|
|
18890
18895
|
append($$anchor, go_form);
|
|
@@ -18940,7 +18945,7 @@ var GoDonation = class {
|
|
|
18940
18945
|
var goDonation = new GoDonation();
|
|
18941
18946
|
//#endregion
|
|
18942
18947
|
//#region src/components/donations/components/DonationCampaign.svelte
|
|
18943
|
-
var root$
|
|
18948
|
+
var root$43 = /* @__PURE__ */ from_html(`<img alt="logo"/>`);
|
|
18944
18949
|
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>`);
|
|
18945
18950
|
function DonationCampaign($$anchor, $$props) {
|
|
18946
18951
|
push($$props, true);
|
|
@@ -18960,7 +18965,7 @@ function DonationCampaign($$anchor, $$props) {
|
|
|
18960
18965
|
var div_1 = child(div);
|
|
18961
18966
|
var node = child(div_1);
|
|
18962
18967
|
var consequent = ($$anchor) => {
|
|
18963
|
-
var img = root$
|
|
18968
|
+
var img = root$43();
|
|
18964
18969
|
template_effect(($0) => set_attribute(img, "src", $0), [() => campaign().picture.thumbnail.replace("thumbnail", "article_3x2")]);
|
|
18965
18970
|
append($$anchor, img);
|
|
18966
18971
|
};
|
|
@@ -18993,7 +18998,7 @@ delegate(["click", "keydown"]);
|
|
|
18993
18998
|
create_custom_element(DonationCampaign, { campaign: {} }, [], [], { mode: "open" });
|
|
18994
18999
|
//#endregion
|
|
18995
19000
|
//#region src/components/donations/components/DonationSelector.svelte
|
|
18996
|
-
var root$
|
|
19001
|
+
var root$42 = /* @__PURE__ */ from_html(`<button> </button>`);
|
|
18997
19002
|
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>`);
|
|
18998
19003
|
var root_2$8 = /* @__PURE__ */ from_html(`<div class="donation-selection"><h3> </h3> <div class="donation-options"></div> <!></div>`);
|
|
18999
19004
|
function DonationSelector($$anchor, $$props) {
|
|
@@ -19018,7 +19023,7 @@ function DonationSelector($$anchor, $$props) {
|
|
|
19018
19023
|
reset(h3);
|
|
19019
19024
|
var div_1 = sibling(h3, 2);
|
|
19020
19025
|
each(div_1, 20, () => goDonation.campaign?.options, (option) => option, ($$anchor, option) => {
|
|
19021
|
-
var button = root$
|
|
19026
|
+
var button = root$42();
|
|
19022
19027
|
let classes;
|
|
19023
19028
|
var text_1 = child(button, true);
|
|
19024
19029
|
reset(button);
|
|
@@ -19062,7 +19067,7 @@ delegate(["click", "input"]);
|
|
|
19062
19067
|
create_custom_element(DonationSelector, {}, [], [], { mode: "open" });
|
|
19063
19068
|
//#endregion
|
|
19064
19069
|
//#region src/components/donations/components/Donations.svelte
|
|
19065
|
-
var root$
|
|
19070
|
+
var root$41 = /* @__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>`);
|
|
19066
19071
|
function Donations($$anchor, $$props) {
|
|
19067
19072
|
push($$props, false);
|
|
19068
19073
|
onMount(() => {
|
|
@@ -19072,7 +19077,7 @@ function Donations($$anchor, $$props) {
|
|
|
19072
19077
|
var fragment = comment();
|
|
19073
19078
|
var node = first_child(fragment);
|
|
19074
19079
|
var consequent_1 = ($$anchor) => {
|
|
19075
|
-
var div = root$
|
|
19080
|
+
var div = root$41();
|
|
19076
19081
|
var node_1 = child(div);
|
|
19077
19082
|
each(node_1, 1, () => shop?.donations?.campaigns, (campaign) => campaign.id, ($$anchor, campaign) => {
|
|
19078
19083
|
DonationCampaign($$anchor, { get campaign() {
|
|
@@ -24911,7 +24916,7 @@ var rest_excludes$25 = new Set([
|
|
|
24911
24916
|
"monthFormat",
|
|
24912
24917
|
"yearFormat"
|
|
24913
24918
|
]);
|
|
24914
|
-
var root$
|
|
24919
|
+
var root$40 = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
24915
24920
|
function Calendar$1($$anchor, $$props) {
|
|
24916
24921
|
push($$props, true);
|
|
24917
24922
|
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);
|
|
@@ -25183,7 +25188,7 @@ function Calendar$1($$anchor, $$props) {
|
|
|
25183
25188
|
append($$anchor, fragment_1);
|
|
25184
25189
|
};
|
|
25185
25190
|
var alternate = ($$anchor) => {
|
|
25186
|
-
var div = root$
|
|
25191
|
+
var div = root$40();
|
|
25187
25192
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
25188
25193
|
snippet(child(div), () => children() ?? noop$1, () => rootState.snippetProps);
|
|
25189
25194
|
reset(div);
|
|
@@ -25238,7 +25243,7 @@ var rest_excludes$24 = new Set([
|
|
|
25238
25243
|
"ref",
|
|
25239
25244
|
"id"
|
|
25240
25245
|
]);
|
|
25241
|
-
var root$
|
|
25246
|
+
var root$39 = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
25242
25247
|
function Calendar_day($$anchor, $$props) {
|
|
25243
25248
|
const uid = props_id();
|
|
25244
25249
|
push($$props, true);
|
|
@@ -25293,7 +25298,7 @@ function Calendar_day($$anchor, $$props) {
|
|
|
25293
25298
|
append($$anchor, fragment_1);
|
|
25294
25299
|
};
|
|
25295
25300
|
var alternate_1 = ($$anchor) => {
|
|
25296
|
-
var div = root$
|
|
25301
|
+
var div = root$39();
|
|
25297
25302
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
25298
25303
|
var node_2 = child(div);
|
|
25299
25304
|
var consequent_1 = ($$anchor) => {
|
|
@@ -25338,7 +25343,7 @@ var rest_excludes$23 = new Set([
|
|
|
25338
25343
|
"ref",
|
|
25339
25344
|
"id"
|
|
25340
25345
|
]);
|
|
25341
|
-
var root$
|
|
25346
|
+
var root$38 = /* @__PURE__ */ from_html(`<table><!></table>`);
|
|
25342
25347
|
function Calendar_grid($$anchor, $$props) {
|
|
25343
25348
|
const uid = props_id();
|
|
25344
25349
|
push($$props, true);
|
|
@@ -25386,7 +25391,7 @@ function Calendar_grid($$anchor, $$props) {
|
|
|
25386
25391
|
append($$anchor, fragment_1);
|
|
25387
25392
|
};
|
|
25388
25393
|
var alternate = ($$anchor) => {
|
|
25389
|
-
var table = root$
|
|
25394
|
+
var table = root$38();
|
|
25390
25395
|
attribute_effect(table, () => ({ ...get$2(mergedProps) }));
|
|
25391
25396
|
snippet(child(table), () => children() ?? noop$1);
|
|
25392
25397
|
reset(table);
|
|
@@ -25417,7 +25422,7 @@ var rest_excludes$22 = new Set([
|
|
|
25417
25422
|
"ref",
|
|
25418
25423
|
"id"
|
|
25419
25424
|
]);
|
|
25420
|
-
var root$
|
|
25425
|
+
var root$37 = /* @__PURE__ */ from_html(`<tbody><!></tbody>`);
|
|
25421
25426
|
function Calendar_grid_body($$anchor, $$props) {
|
|
25422
25427
|
const uid = props_id();
|
|
25423
25428
|
push($$props, true);
|
|
@@ -25465,7 +25470,7 @@ function Calendar_grid_body($$anchor, $$props) {
|
|
|
25465
25470
|
append($$anchor, fragment_1);
|
|
25466
25471
|
};
|
|
25467
25472
|
var alternate = ($$anchor) => {
|
|
25468
|
-
var tbody = root$
|
|
25473
|
+
var tbody = root$37();
|
|
25469
25474
|
attribute_effect(tbody, () => ({ ...get$2(mergedProps) }));
|
|
25470
25475
|
snippet(child(tbody), () => children() ?? noop$1);
|
|
25471
25476
|
reset(tbody);
|
|
@@ -25498,7 +25503,7 @@ var rest_excludes$21 = new Set([
|
|
|
25498
25503
|
"date",
|
|
25499
25504
|
"month"
|
|
25500
25505
|
]);
|
|
25501
|
-
var root$
|
|
25506
|
+
var root$36 = /* @__PURE__ */ from_html(`<td><!></td>`);
|
|
25502
25507
|
function Calendar_cell($$anchor, $$props) {
|
|
25503
25508
|
const uid = props_id();
|
|
25504
25509
|
push($$props, true);
|
|
@@ -25569,7 +25574,7 @@ function Calendar_cell($$anchor, $$props) {
|
|
|
25569
25574
|
append($$anchor, fragment_1);
|
|
25570
25575
|
};
|
|
25571
25576
|
var alternate = ($$anchor) => {
|
|
25572
|
-
var td = root$
|
|
25577
|
+
var td = root$36();
|
|
25573
25578
|
attribute_effect(td, () => ({ ...get$2(mergedProps) }));
|
|
25574
25579
|
snippet(child(td), () => children() ?? noop$1, () => cellState.snippetProps);
|
|
25575
25580
|
reset(td);
|
|
@@ -25602,7 +25607,7 @@ var rest_excludes$20 = new Set([
|
|
|
25602
25607
|
"ref",
|
|
25603
25608
|
"id"
|
|
25604
25609
|
]);
|
|
25605
|
-
var root$
|
|
25610
|
+
var root$35 = /* @__PURE__ */ from_html(`<thead><!></thead>`);
|
|
25606
25611
|
function Calendar_grid_head($$anchor, $$props) {
|
|
25607
25612
|
const uid = props_id();
|
|
25608
25613
|
push($$props, true);
|
|
@@ -25650,7 +25655,7 @@ function Calendar_grid_head($$anchor, $$props) {
|
|
|
25650
25655
|
append($$anchor, fragment_1);
|
|
25651
25656
|
};
|
|
25652
25657
|
var alternate = ($$anchor) => {
|
|
25653
|
-
var thead = root$
|
|
25658
|
+
var thead = root$35();
|
|
25654
25659
|
attribute_effect(thead, () => ({ ...get$2(mergedProps) }));
|
|
25655
25660
|
snippet(child(thead), () => children() ?? noop$1);
|
|
25656
25661
|
reset(thead);
|
|
@@ -25681,7 +25686,7 @@ var rest_excludes$19 = new Set([
|
|
|
25681
25686
|
"ref",
|
|
25682
25687
|
"id"
|
|
25683
25688
|
]);
|
|
25684
|
-
var root$
|
|
25689
|
+
var root$34 = /* @__PURE__ */ from_html(`<th><!></th>`);
|
|
25685
25690
|
function Calendar_head_cell($$anchor, $$props) {
|
|
25686
25691
|
const uid = props_id();
|
|
25687
25692
|
push($$props, true);
|
|
@@ -25729,7 +25734,7 @@ function Calendar_head_cell($$anchor, $$props) {
|
|
|
25729
25734
|
append($$anchor, fragment_1);
|
|
25730
25735
|
};
|
|
25731
25736
|
var alternate = ($$anchor) => {
|
|
25732
|
-
var th = root$
|
|
25737
|
+
var th = root$34();
|
|
25733
25738
|
attribute_effect(th, () => ({ ...get$2(mergedProps) }));
|
|
25734
25739
|
snippet(child(th), () => children() ?? noop$1);
|
|
25735
25740
|
reset(th);
|
|
@@ -25760,7 +25765,7 @@ var rest_excludes$18 = new Set([
|
|
|
25760
25765
|
"ref",
|
|
25761
25766
|
"id"
|
|
25762
25767
|
]);
|
|
25763
|
-
var root$
|
|
25768
|
+
var root$33 = /* @__PURE__ */ from_html(`<tr><!></tr>`);
|
|
25764
25769
|
function Calendar_grid_row($$anchor, $$props) {
|
|
25765
25770
|
const uid = props_id();
|
|
25766
25771
|
push($$props, true);
|
|
@@ -25808,7 +25813,7 @@ function Calendar_grid_row($$anchor, $$props) {
|
|
|
25808
25813
|
append($$anchor, fragment_1);
|
|
25809
25814
|
};
|
|
25810
25815
|
var alternate = ($$anchor) => {
|
|
25811
|
-
var tr = root$
|
|
25816
|
+
var tr = root$33();
|
|
25812
25817
|
attribute_effect(tr, () => ({ ...get$2(mergedProps) }));
|
|
25813
25818
|
snippet(child(tr), () => children() ?? noop$1);
|
|
25814
25819
|
reset(tr);
|
|
@@ -25839,7 +25844,7 @@ var rest_excludes$17 = new Set([
|
|
|
25839
25844
|
"ref",
|
|
25840
25845
|
"id"
|
|
25841
25846
|
]);
|
|
25842
|
-
var root$
|
|
25847
|
+
var root$32 = /* @__PURE__ */ from_html(`<header><!></header>`);
|
|
25843
25848
|
function Calendar_header($$anchor, $$props) {
|
|
25844
25849
|
const uid = props_id();
|
|
25845
25850
|
push($$props, true);
|
|
@@ -25887,7 +25892,7 @@ function Calendar_header($$anchor, $$props) {
|
|
|
25887
25892
|
append($$anchor, fragment_1);
|
|
25888
25893
|
};
|
|
25889
25894
|
var alternate = ($$anchor) => {
|
|
25890
|
-
var header = root$
|
|
25895
|
+
var header = root$32();
|
|
25891
25896
|
attribute_effect(header, () => ({ ...get$2(mergedProps) }));
|
|
25892
25897
|
snippet(child(header), () => children() ?? noop$1);
|
|
25893
25898
|
reset(header);
|
|
@@ -25918,7 +25923,7 @@ var rest_excludes$16 = new Set([
|
|
|
25918
25923
|
"ref",
|
|
25919
25924
|
"id"
|
|
25920
25925
|
]);
|
|
25921
|
-
var root$
|
|
25926
|
+
var root$31 = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
25922
25927
|
function Calendar_heading($$anchor, $$props) {
|
|
25923
25928
|
const uid = props_id();
|
|
25924
25929
|
push($$props, true);
|
|
@@ -25969,7 +25974,7 @@ function Calendar_heading($$anchor, $$props) {
|
|
|
25969
25974
|
append($$anchor, fragment_1);
|
|
25970
25975
|
};
|
|
25971
25976
|
var alternate_1 = ($$anchor) => {
|
|
25972
|
-
var div = root$
|
|
25977
|
+
var div = root$31();
|
|
25973
25978
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
25974
25979
|
var node_2 = child(div);
|
|
25975
25980
|
var consequent_1 = ($$anchor) => {
|
|
@@ -26015,7 +26020,7 @@ var rest_excludes$15 = new Set([
|
|
|
26015
26020
|
"ref",
|
|
26016
26021
|
"tabindex"
|
|
26017
26022
|
]);
|
|
26018
|
-
var root$
|
|
26023
|
+
var root$30 = /* @__PURE__ */ from_html(`<button><!></button>`);
|
|
26019
26024
|
function Calendar_next_button($$anchor, $$props) {
|
|
26020
26025
|
const uid = props_id();
|
|
26021
26026
|
push($$props, true);
|
|
@@ -26070,7 +26075,7 @@ function Calendar_next_button($$anchor, $$props) {
|
|
|
26070
26075
|
append($$anchor, fragment_1);
|
|
26071
26076
|
};
|
|
26072
26077
|
var alternate = ($$anchor) => {
|
|
26073
|
-
var button = root$
|
|
26078
|
+
var button = root$30();
|
|
26074
26079
|
attribute_effect(button, () => ({ ...get$2(mergedProps) }));
|
|
26075
26080
|
snippet(child(button), () => children() ?? noop$1);
|
|
26076
26081
|
reset(button);
|
|
@@ -26103,7 +26108,7 @@ var rest_excludes$14 = new Set([
|
|
|
26103
26108
|
"ref",
|
|
26104
26109
|
"tabindex"
|
|
26105
26110
|
]);
|
|
26106
|
-
var root$
|
|
26111
|
+
var root$29 = /* @__PURE__ */ from_html(`<button><!></button>`);
|
|
26107
26112
|
function Calendar_prev_button($$anchor, $$props) {
|
|
26108
26113
|
const uid = props_id();
|
|
26109
26114
|
push($$props, true);
|
|
@@ -26158,7 +26163,7 @@ function Calendar_prev_button($$anchor, $$props) {
|
|
|
26158
26163
|
append($$anchor, fragment_1);
|
|
26159
26164
|
};
|
|
26160
26165
|
var alternate = ($$anchor) => {
|
|
26161
|
-
var button = root$
|
|
26166
|
+
var button = root$29();
|
|
26162
26167
|
attribute_effect(button, () => ({ ...get$2(mergedProps) }));
|
|
26163
26168
|
snippet(child(button), () => children() ?? noop$1);
|
|
26164
26169
|
reset(button);
|
|
@@ -26187,7 +26192,7 @@ var rest_excludes$13 = new Set([
|
|
|
26187
26192
|
"$$host",
|
|
26188
26193
|
"value"
|
|
26189
26194
|
]);
|
|
26190
|
-
var root$
|
|
26195
|
+
var root$28 = /* @__PURE__ */ from_html(`<input/>`);
|
|
26191
26196
|
function Hidden_input($$anchor, $$props) {
|
|
26192
26197
|
push($$props, true);
|
|
26193
26198
|
let value = prop($$props, "value", 15), restProps = /* @__PURE__ */ rest_props($$props, rest_excludes$13);
|
|
@@ -26213,7 +26218,7 @@ function Hidden_input($$anchor, $$props) {
|
|
|
26213
26218
|
var fragment = comment();
|
|
26214
26219
|
var node = first_child(fragment);
|
|
26215
26220
|
var consequent = ($$anchor) => {
|
|
26216
|
-
var input = root$
|
|
26221
|
+
var input = root$28();
|
|
26217
26222
|
attribute_effect(input, () => ({
|
|
26218
26223
|
...get$2(mergedProps),
|
|
26219
26224
|
value: value()
|
|
@@ -26221,7 +26226,7 @@ function Hidden_input($$anchor, $$props) {
|
|
|
26221
26226
|
append($$anchor, input);
|
|
26222
26227
|
};
|
|
26223
26228
|
var alternate = ($$anchor) => {
|
|
26224
|
-
var input_1 = root$
|
|
26229
|
+
var input_1 = root$28();
|
|
26225
26230
|
attribute_effect(input_1, () => ({ ...get$2(mergedProps) }), void 0, void 0, void 0, void 0, true);
|
|
26226
26231
|
bind_value(input_1, value);
|
|
26227
26232
|
append($$anchor, input_1);
|
|
@@ -28534,7 +28539,7 @@ var rest_excludes$11 = new Set([
|
|
|
28534
28539
|
"tooltip",
|
|
28535
28540
|
"contentPointerEvents"
|
|
28536
28541
|
]);
|
|
28537
|
-
var root$
|
|
28542
|
+
var root$27 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
|
|
28538
28543
|
function Popper_layer_inner($$anchor, $$props) {
|
|
28539
28544
|
push($$props, true);
|
|
28540
28545
|
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);
|
|
@@ -28812,7 +28817,7 @@ function Popper_layer_inner($$anchor, $$props) {
|
|
|
28812
28817
|
const content = ($$anchor, $$arg0) => {
|
|
28813
28818
|
let floatingProps = () => $$arg0?.().props;
|
|
28814
28819
|
let wrapperProps = () => $$arg0?.().wrapperProps;
|
|
28815
|
-
var fragment_1 = root$
|
|
28820
|
+
var fragment_1 = root$27();
|
|
28816
28821
|
var node = first_child(fragment_1);
|
|
28817
28822
|
var consequent = ($$anchor) => {
|
|
28818
28823
|
Scroll_lock($$anchor, { get preventScroll() {
|
|
@@ -31176,7 +31181,7 @@ var rest_excludes$8 = new Set([
|
|
|
31176
31181
|
"children",
|
|
31177
31182
|
"child"
|
|
31178
31183
|
]);
|
|
31179
|
-
var root$
|
|
31184
|
+
var root$26 = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
31180
31185
|
var root_1$10 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
|
|
31181
31186
|
function Date_field_input($$anchor, $$props) {
|
|
31182
31187
|
const uid = props_id();
|
|
@@ -31236,7 +31241,7 @@ function Date_field_input($$anchor, $$props) {
|
|
|
31236
31241
|
append($$anchor, fragment_1);
|
|
31237
31242
|
};
|
|
31238
31243
|
var alternate = ($$anchor) => {
|
|
31239
|
-
var div = root$
|
|
31244
|
+
var div = root$26();
|
|
31240
31245
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
31241
31246
|
snippet(child(div), () => children() ?? noop$1, () => ({ segments: inputState.root.segmentContents }));
|
|
31242
31247
|
reset(div);
|
|
@@ -31269,7 +31274,7 @@ var rest_excludes$7 = new Set([
|
|
|
31269
31274
|
"children",
|
|
31270
31275
|
"child"
|
|
31271
31276
|
]);
|
|
31272
|
-
var root$
|
|
31277
|
+
var root$25 = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
31273
31278
|
function Date_field_label($$anchor, $$props) {
|
|
31274
31279
|
const uid = props_id();
|
|
31275
31280
|
push($$props, true);
|
|
@@ -31317,7 +31322,7 @@ function Date_field_label($$anchor, $$props) {
|
|
|
31317
31322
|
append($$anchor, fragment_1);
|
|
31318
31323
|
};
|
|
31319
31324
|
var alternate = ($$anchor) => {
|
|
31320
|
-
var div = root$
|
|
31325
|
+
var div = root$25();
|
|
31321
31326
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
31322
31327
|
snippet(child(div), () => children() ?? noop$1);
|
|
31323
31328
|
reset(div);
|
|
@@ -31349,7 +31354,7 @@ var rest_excludes$6 = new Set([
|
|
|
31349
31354
|
"child",
|
|
31350
31355
|
"part"
|
|
31351
31356
|
]);
|
|
31352
|
-
var root$
|
|
31357
|
+
var root$24 = /* @__PURE__ */ from_html(`<span><!></span>`);
|
|
31353
31358
|
function Date_field_segment($$anchor, $$props) {
|
|
31354
31359
|
const uid = props_id();
|
|
31355
31360
|
push($$props, true);
|
|
@@ -31404,7 +31409,7 @@ function Date_field_segment($$anchor, $$props) {
|
|
|
31404
31409
|
append($$anchor, fragment_1);
|
|
31405
31410
|
};
|
|
31406
31411
|
var alternate = ($$anchor) => {
|
|
31407
|
-
var span = root$
|
|
31412
|
+
var span = root$24();
|
|
31408
31413
|
attribute_effect(span, () => ({ ...get$2(mergedProps) }));
|
|
31409
31414
|
snippet(child(span), () => children() ?? noop$1);
|
|
31410
31415
|
reset(span);
|
|
@@ -32426,7 +32431,7 @@ var rest_excludes$5 = new Set([
|
|
|
32426
32431
|
"id",
|
|
32427
32432
|
"ref"
|
|
32428
32433
|
]);
|
|
32429
|
-
var root$
|
|
32434
|
+
var root$23 = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
32430
32435
|
function Date_picker_calendar($$anchor, $$props) {
|
|
32431
32436
|
const uid = props_id();
|
|
32432
32437
|
push($$props, true);
|
|
@@ -32506,7 +32511,7 @@ function Date_picker_calendar($$anchor, $$props) {
|
|
|
32506
32511
|
append($$anchor, fragment_1);
|
|
32507
32512
|
};
|
|
32508
32513
|
var alternate = ($$anchor) => {
|
|
32509
|
-
var div = root$
|
|
32514
|
+
var div = root$23();
|
|
32510
32515
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
32511
32516
|
snippet(child(div), () => children() ?? noop$1, () => calendarState.snippetProps);
|
|
32512
32517
|
reset(div);
|
|
@@ -32546,7 +32551,7 @@ var rest_excludes$4 = new Set([
|
|
|
32546
32551
|
"customAnchor",
|
|
32547
32552
|
"style"
|
|
32548
32553
|
]);
|
|
32549
|
-
var root$
|
|
32554
|
+
var root$22 = /* @__PURE__ */ from_html(`<div><div><!></div></div>`);
|
|
32550
32555
|
function Popover_content($$anchor, $$props) {
|
|
32551
32556
|
const uid = props_id();
|
|
32552
32557
|
push($$props, true);
|
|
@@ -32681,7 +32686,7 @@ function Popover_content($$anchor, $$props) {
|
|
|
32681
32686
|
append($$anchor, fragment_3);
|
|
32682
32687
|
};
|
|
32683
32688
|
var alternate = ($$anchor) => {
|
|
32684
|
-
var div = root$
|
|
32689
|
+
var div = root$22();
|
|
32685
32690
|
attribute_effect(div, () => ({ ...wrapperProps() }));
|
|
32686
32691
|
var div_1 = child(div);
|
|
32687
32692
|
attribute_effect(div_1, () => ({ ...get$2(finalProps) }));
|
|
@@ -32751,7 +32756,7 @@ function Popover_content($$anchor, $$props) {
|
|
|
32751
32756
|
append($$anchor, fragment_6);
|
|
32752
32757
|
};
|
|
32753
32758
|
var alternate_1 = ($$anchor) => {
|
|
32754
|
-
var div_2 = root$
|
|
32759
|
+
var div_2 = root$22();
|
|
32755
32760
|
attribute_effect(div_2, () => ({ ...wrapperProps() }));
|
|
32756
32761
|
var div_3 = child(div_2);
|
|
32757
32762
|
attribute_effect(div_3, () => ({ ...get$2(finalProps) }));
|
|
@@ -32882,7 +32887,7 @@ var rest_excludes$2 = new Set([
|
|
|
32882
32887
|
"openDelay",
|
|
32883
32888
|
"closeDelay"
|
|
32884
32889
|
]);
|
|
32885
|
-
var root$
|
|
32890
|
+
var root$21 = /* @__PURE__ */ from_html(`<button><!></button>`);
|
|
32886
32891
|
function Popover_trigger($$anchor, $$props) {
|
|
32887
32892
|
const uid = props_id();
|
|
32888
32893
|
push($$props, true);
|
|
@@ -32977,7 +32982,7 @@ function Popover_trigger($$anchor, $$props) {
|
|
|
32977
32982
|
append($$anchor, fragment_2);
|
|
32978
32983
|
};
|
|
32979
32984
|
var alternate = ($$anchor) => {
|
|
32980
|
-
var button = root$
|
|
32985
|
+
var button = root$21();
|
|
32981
32986
|
attribute_effect(button, () => ({ ...get$2(mergedProps) }));
|
|
32982
32987
|
snippet(child(button), () => children() ?? noop$1);
|
|
32983
32988
|
reset(button);
|
|
@@ -33057,7 +33062,7 @@ create_custom_element(Date_picker_trigger, {
|
|
|
33057
33062
|
}, [], [], { mode: "open" });
|
|
33058
33063
|
//#endregion
|
|
33059
33064
|
//#region src/components/forms/ui/generic/DatePicker.svelte
|
|
33060
|
-
var root$
|
|
33065
|
+
var root$20 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
|
|
33061
33066
|
var root_1$9 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
|
|
33062
33067
|
function DatePicker_1($$anchor, $$props) {
|
|
33063
33068
|
push($$props, true);
|
|
@@ -33145,7 +33150,7 @@ function DatePicker_1($$anchor, $$props) {
|
|
|
33145
33150
|
{
|
|
33146
33151
|
const children = ($$anchor, $$arg0) => {
|
|
33147
33152
|
let segments = () => $$arg0?.().segments;
|
|
33148
|
-
var fragment_4 = root$
|
|
33153
|
+
var fragment_4 = root$20();
|
|
33149
33154
|
var node_5 = first_child(fragment_4);
|
|
33150
33155
|
each(node_5, 17, segments, index$1, ($$anchor, $$item) => {
|
|
33151
33156
|
let part = () => get$2($$item).part;
|
|
@@ -33196,7 +33201,7 @@ function DatePicker_1($$anchor, $$props) {
|
|
|
33196
33201
|
const children = ($$anchor, $$arg0) => {
|
|
33197
33202
|
let months = () => $$arg0?.().months;
|
|
33198
33203
|
let weekdays = () => $$arg0?.().weekdays;
|
|
33199
|
-
var fragment_8 = root$
|
|
33204
|
+
var fragment_8 = root$20();
|
|
33200
33205
|
var node_10 = first_child(fragment_8);
|
|
33201
33206
|
component(node_10, () => Calendar_header, ($$anchor, DatePicker_Header) => {
|
|
33202
33207
|
DatePicker_Header($$anchor, {
|
|
@@ -33223,7 +33228,7 @@ function DatePicker_1($$anchor, $$props) {
|
|
|
33223
33228
|
component(first_child(fragment_10), () => Calendar_grid, ($$anchor, DatePicker_Grid) => {
|
|
33224
33229
|
DatePicker_Grid($$anchor, {
|
|
33225
33230
|
children: ($$anchor, $$slotProps) => {
|
|
33226
|
-
var fragment_11 = root$
|
|
33231
|
+
var fragment_11 = root$20();
|
|
33227
33232
|
var node_16 = first_child(fragment_11);
|
|
33228
33233
|
component(node_16, () => Calendar_grid_head, ($$anchor, DatePicker_GridHead) => {
|
|
33229
33234
|
DatePicker_GridHead($$anchor, {
|
|
@@ -33351,7 +33356,7 @@ var rest_excludes = new Set([
|
|
|
33351
33356
|
"inputClass",
|
|
33352
33357
|
"host"
|
|
33353
33358
|
]);
|
|
33354
|
-
var root$
|
|
33359
|
+
var root$19 = /* @__PURE__ */ from_html(`<span class="go-field-star" aria-hidden="true">*</span>`);
|
|
33355
33360
|
var root_1$8 = /* @__PURE__ */ from_html(` <!>`, 1);
|
|
33356
33361
|
var root_2$7 = /* @__PURE__ */ from_html(`<label><!></label> <input/>`, 1);
|
|
33357
33362
|
var root_3$7 = /* @__PURE__ */ from_html(`<label><!></label> <textarea></textarea>`, 1);
|
|
@@ -33377,7 +33382,7 @@ function InputAndLabel($$anchor, $$props) {
|
|
|
33377
33382
|
var text = first_child(fragment);
|
|
33378
33383
|
var node = sibling(text);
|
|
33379
33384
|
var consequent = ($$anchor) => {
|
|
33380
|
-
append($$anchor, root$
|
|
33385
|
+
append($$anchor, root$19());
|
|
33381
33386
|
};
|
|
33382
33387
|
if_block(node, ($$render) => {
|
|
33383
33388
|
if (field().required) $$render(consequent);
|
|
@@ -33777,7 +33782,7 @@ create_custom_element(InputAndLabel, {
|
|
|
33777
33782
|
}, [], [], { mode: "open" });
|
|
33778
33783
|
//#endregion
|
|
33779
33784
|
//#region src/components/forms/ui/generic/Field.svelte
|
|
33780
|
-
var root$
|
|
33785
|
+
var root$18 = /* @__PURE__ */ from_html(`<span> </span>`);
|
|
33781
33786
|
var root_1$7 = /* @__PURE__ */ from_html(`<li> </li>`);
|
|
33782
33787
|
var root_2$6 = /* @__PURE__ */ from_html(`<ul class="go-field-errors"></ul>`);
|
|
33783
33788
|
var root_3$6 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
|
|
@@ -33860,7 +33865,7 @@ function Field($$anchor, $$props) {
|
|
|
33860
33865
|
});
|
|
33861
33866
|
var node_1 = sibling(node, 2);
|
|
33862
33867
|
var consequent = ($$anchor) => {
|
|
33863
|
-
var span = root$
|
|
33868
|
+
var span = root$18();
|
|
33864
33869
|
var text = child(span, true);
|
|
33865
33870
|
reset(span);
|
|
33866
33871
|
template_effect(() => {
|
|
@@ -33916,7 +33921,7 @@ customElements.define("go-field", create_custom_element(Field, {
|
|
|
33916
33921
|
}, [], ["getField"]));
|
|
33917
33922
|
//#endregion
|
|
33918
33923
|
//#region src/components/forms/ui/generic/AllFields.svelte
|
|
33919
|
-
var root$
|
|
33924
|
+
var root$17 = /* @__PURE__ */ from_html(`<go-field></go-field>`, 2);
|
|
33920
33925
|
function AllFields($$anchor, $$props) {
|
|
33921
33926
|
push($$props, true);
|
|
33922
33927
|
let _details = getDetails$1($$props.$$host);
|
|
@@ -33924,7 +33929,7 @@ function AllFields($$anchor, $$props) {
|
|
|
33924
33929
|
let allFields = /* @__PURE__ */ user_derived(() => get$2(details) ? Forms.getFormFields(get$2(details)?.formId) : []);
|
|
33925
33930
|
var fragment = comment();
|
|
33926
33931
|
each(first_child(fragment), 17, () => get$2(allFields), (field) => field.key, ($$anchor, field) => {
|
|
33927
|
-
var go_field = root$
|
|
33932
|
+
var go_field = root$17();
|
|
33928
33933
|
template_effect(() => set_custom_element_data(go_field, "key", get$2(field).key));
|
|
33929
33934
|
template_effect(() => set_custom_element_data(go_field, "required", get$2(field).required));
|
|
33930
33935
|
append($$anchor, go_field);
|
|
@@ -33935,7 +33940,7 @@ function AllFields($$anchor, $$props) {
|
|
|
33935
33940
|
customElements.define("go-all-fields", create_custom_element(AllFields, {}, [], []));
|
|
33936
33941
|
//#endregion
|
|
33937
33942
|
//#region src/components/forms/ui/generic/ErrorsFeedback.svelte
|
|
33938
|
-
var root$
|
|
33943
|
+
var root$16 = /* @__PURE__ */ from_html(`<p aria-hidden="true"> </p>`);
|
|
33939
33944
|
var root_1$6 = /* @__PURE__ */ from_html(`<li> </li>`);
|
|
33940
33945
|
var root_2$5 = /* @__PURE__ */ from_html(`<ul class="go-error-feedback-api-errors"></ul>`);
|
|
33941
33946
|
var root_3$5 = /* @__PURE__ */ from_html(`<div><p aria-live="assertive" class="sr-only"><!></p> <!> <!></div>`);
|
|
@@ -33973,7 +33978,7 @@ function ErrorsFeedback($$anchor, $$props) {
|
|
|
33973
33978
|
reset(p);
|
|
33974
33979
|
var node_1 = sibling(p, 2);
|
|
33975
33980
|
var consequent_1 = ($$anchor) => {
|
|
33976
|
-
var p_1 = root$
|
|
33981
|
+
var p_1 = root$16();
|
|
33977
33982
|
var text_1 = child(p_1, true);
|
|
33978
33983
|
reset(p_1);
|
|
33979
33984
|
template_effect(($0) => set_text(text_1, $0), [() => shop.t("forms.errorSummary", { count: get$2(errorsRealtime) })]);
|
|
@@ -34006,9 +34011,9 @@ function ErrorsFeedback($$anchor, $$props) {
|
|
|
34006
34011
|
customElements.define("go-errors-feedback", create_custom_element(ErrorsFeedback, {}, [], []));
|
|
34007
34012
|
//#endregion
|
|
34008
34013
|
//#region src/components/forms/ui/generic/FormFeedback.svelte
|
|
34009
|
-
var root$
|
|
34014
|
+
var root$15 = /* @__PURE__ */ from_html(`<div class="go-form-feedback"><!></div>`);
|
|
34010
34015
|
function FormFeedback($$anchor, $$props) {
|
|
34011
|
-
var div = root$
|
|
34016
|
+
var div = root$15();
|
|
34012
34017
|
slot(child(div), $$props, "default", {}, null);
|
|
34013
34018
|
reset(div);
|
|
34014
34019
|
append($$anchor, div);
|
|
@@ -34042,7 +34047,7 @@ customElements.define("go-submit", create_custom_element(Submit, { buttonClass:
|
|
|
34042
34047
|
} }, [], []));
|
|
34043
34048
|
//#endregion
|
|
34044
34049
|
//#region src/components/forms/ui/generic/SuccessFeedback.svelte
|
|
34045
|
-
var root$
|
|
34050
|
+
var root$14 = /* @__PURE__ */ from_html(`<div aria-live="assertive"> </div>`);
|
|
34046
34051
|
function SuccessFeedback($$anchor, $$props) {
|
|
34047
34052
|
push($$props, true);
|
|
34048
34053
|
const _details = getDetails$1($$props.$$host);
|
|
@@ -34050,7 +34055,7 @@ function SuccessFeedback($$anchor, $$props) {
|
|
|
34050
34055
|
var fragment = comment();
|
|
34051
34056
|
var node = first_child(fragment);
|
|
34052
34057
|
var consequent = ($$anchor) => {
|
|
34053
|
-
var div = root$
|
|
34058
|
+
var div = root$14();
|
|
34054
34059
|
let classes;
|
|
34055
34060
|
var text = child(div, true);
|
|
34056
34061
|
reset(div);
|
|
@@ -36537,8 +36542,9 @@ var OrderDetails = class {
|
|
|
36537
36542
|
if (!this.order?.is_valid) return;
|
|
36538
36543
|
switch (item.type) {
|
|
36539
36544
|
case "Event": return `${shop.apiUrl}/api/v4/orders/${this.order.id}/events/${item.attributes.id}.pdf?locale=${shop.locale}&token=${this.token}`;
|
|
36545
|
+
case "Coupon": return `${shop.apiUrl}/api/v4/orders/${this.order.id}/coupons/${item.attributes.id}.pdf?locale=${shop.locale}&token=${this.token}`;
|
|
36540
36546
|
case "Ticket":
|
|
36541
|
-
if (item.attributes.ticket_type === "annual" && !item.attributes.is_voucher) if (configStore.config.urls.annualTicketPersonalizationList
|
|
36547
|
+
if (item.attributes.ticket_type === "annual" && !item.attributes.is_voucher) if (configStore.config.urls.annualTicketPersonalizationList) return configStore.config.urls.annualTicketPersonalizationList(this.token);
|
|
36542
36548
|
else return shop.urls?.annualTicketPersonalizationList(this.token);
|
|
36543
36549
|
else return `${shop.apiUrl}/api/v4/orders/${this.order.id}/tickets/${item.attributes.id}.pdf?locale=${shop.locale}&token=${this.token}&barcode_id=${barcodeId}`;
|
|
36544
36550
|
break;
|
|
@@ -36585,8 +36591,109 @@ customElements.define("go-order", create_custom_element(Order, { token: {
|
|
|
36585
36591
|
type: "String"
|
|
36586
36592
|
} }, [], ["orderDetails"]));
|
|
36587
36593
|
//#endregion
|
|
36594
|
+
//#region src/components/order/components/subcomponents/breakdown/items/Coupon.svelte
|
|
36595
|
+
var root$13 = /* @__PURE__ */ from_html(`<li><article><ul><li class="go-order-breakdown-count"> </li> <li class="go-order-breakdown-product"><span class="go-order-item-title"> </span> <br/> <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></ul></article></li>`);
|
|
36596
|
+
function Coupon($$anchor, $$props) {
|
|
36597
|
+
push($$props, true);
|
|
36598
|
+
let item = prop($$props, "item", 7), orderDetails = prop($$props, "orderDetails", 7);
|
|
36599
|
+
const valueCents = /* @__PURE__ */ user_derived(() => item().attributes.value_cents > 0 ? item().attributes.value_cents : item().price_cents);
|
|
36600
|
+
var $$exports = {
|
|
36601
|
+
get item() {
|
|
36602
|
+
return item();
|
|
36603
|
+
},
|
|
36604
|
+
set item($$value) {
|
|
36605
|
+
item($$value);
|
|
36606
|
+
flushSync();
|
|
36607
|
+
},
|
|
36608
|
+
get orderDetails() {
|
|
36609
|
+
return orderDetails();
|
|
36610
|
+
},
|
|
36611
|
+
set orderDetails($$value) {
|
|
36612
|
+
orderDetails($$value);
|
|
36613
|
+
flushSync();
|
|
36614
|
+
}
|
|
36615
|
+
};
|
|
36616
|
+
var li = root$13();
|
|
36617
|
+
var article = child(li);
|
|
36618
|
+
var ul = child(article);
|
|
36619
|
+
var li_1 = child(ul);
|
|
36620
|
+
var text = child(li_1, true);
|
|
36621
|
+
reset(li_1);
|
|
36622
|
+
var li_2 = sibling(li_1, 2);
|
|
36623
|
+
var span = child(li_2);
|
|
36624
|
+
var text_1 = child(span, true);
|
|
36625
|
+
reset(span);
|
|
36626
|
+
var a = sibling(span, 4);
|
|
36627
|
+
var text_2 = child(a, true);
|
|
36628
|
+
reset(a);
|
|
36629
|
+
reset(li_2);
|
|
36630
|
+
var li_3 = sibling(li_2, 2);
|
|
36631
|
+
var text_3 = child(li_3, true);
|
|
36632
|
+
reset(li_3);
|
|
36633
|
+
next(2);
|
|
36634
|
+
reset(ul);
|
|
36635
|
+
reset(article);
|
|
36636
|
+
reset(li);
|
|
36637
|
+
template_effect(($0, $1, $2) => {
|
|
36638
|
+
set_text(text, item().attributes.quantity);
|
|
36639
|
+
set_text(text_1, item().attributes.title);
|
|
36640
|
+
set_attribute(a, "href", $0);
|
|
36641
|
+
set_text(text_2, $1);
|
|
36642
|
+
set_text(text_3, $2);
|
|
36643
|
+
}, [
|
|
36644
|
+
() => orderDetails().downloadLink(item()),
|
|
36645
|
+
() => shop.t("common.download"),
|
|
36646
|
+
() => formatCurrency(get$2(valueCents))
|
|
36647
|
+
]);
|
|
36648
|
+
append($$anchor, li);
|
|
36649
|
+
return pop($$exports);
|
|
36650
|
+
}
|
|
36651
|
+
create_custom_element(Coupon, {
|
|
36652
|
+
item: {},
|
|
36653
|
+
orderDetails: {}
|
|
36654
|
+
}, [], [], { mode: "open" });
|
|
36655
|
+
//#endregion
|
|
36656
|
+
//#region src/components/order/components/subcomponents/breakdown/items/Donation.svelte
|
|
36657
|
+
var root$12 = /* @__PURE__ */ from_html(`<li class="go-order-breakdown-donation"><article><ul><li class="go-order-breakdown-count">1</li> <li class="go-order-breakdown-product"><span class="go-order-item-title"> </span></li> <li class="go-order-breakdown-item-price"> </li> <li class="go-order-breakdown-passbook"></li></ul></article></li>`);
|
|
36658
|
+
function Donation($$anchor, $$props) {
|
|
36659
|
+
push($$props, true);
|
|
36660
|
+
let donation = prop($$props, "donation", 7);
|
|
36661
|
+
const campaign = /* @__PURE__ */ user_derived(() => shop.donations?.campaigns?.find((c) => c.id === donation().donation_campaign_id));
|
|
36662
|
+
var $$exports = {
|
|
36663
|
+
get donation() {
|
|
36664
|
+
return donation();
|
|
36665
|
+
},
|
|
36666
|
+
set donation($$value) {
|
|
36667
|
+
donation($$value);
|
|
36668
|
+
flushSync();
|
|
36669
|
+
}
|
|
36670
|
+
};
|
|
36671
|
+
var li = root$12();
|
|
36672
|
+
var article = child(li);
|
|
36673
|
+
var ul = child(article);
|
|
36674
|
+
var li_1 = sibling(child(ul), 2);
|
|
36675
|
+
var span = child(li_1);
|
|
36676
|
+
var text = child(span, true);
|
|
36677
|
+
reset(span);
|
|
36678
|
+
reset(li_1);
|
|
36679
|
+
var li_2 = sibling(li_1, 2);
|
|
36680
|
+
var text_1 = child(li_2, true);
|
|
36681
|
+
reset(li_2);
|
|
36682
|
+
next(2);
|
|
36683
|
+
reset(ul);
|
|
36684
|
+
reset(article);
|
|
36685
|
+
reset(li);
|
|
36686
|
+
template_effect(($0, $1) => {
|
|
36687
|
+
set_text(text, $0);
|
|
36688
|
+
set_text(text_1, $1);
|
|
36689
|
+
}, [() => get$2(campaign)?.name ?? shop.t("common.table.donation"), () => formatCurrency(donation().donation_cents)]);
|
|
36690
|
+
append($$anchor, li);
|
|
36691
|
+
return pop($$exports);
|
|
36692
|
+
}
|
|
36693
|
+
create_custom_element(Donation, { donation: {} }, [], [], { mode: "open" });
|
|
36694
|
+
//#endregion
|
|
36588
36695
|
//#region src/components/order/components/subcomponents/breakdown/items/Event.svelte
|
|
36589
|
-
var root$
|
|
36696
|
+
var root$11 = /* @__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);
|
|
36590
36697
|
var root_1$5 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities"> </span>`, 1);
|
|
36591
36698
|
var root_2$4 = /* @__PURE__ */ from_html(`<a aria-label="iCal link"> </a>`);
|
|
36592
36699
|
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>`);
|
|
@@ -36618,7 +36725,7 @@ function Event$1($$anchor, $$props) {
|
|
|
36618
36725
|
reset(span);
|
|
36619
36726
|
var node = sibling(span, 2);
|
|
36620
36727
|
var consequent = ($$anchor) => {
|
|
36621
|
-
var fragment = root$
|
|
36728
|
+
var fragment = root$11();
|
|
36622
36729
|
var span_1 = first_child(fragment);
|
|
36623
36730
|
var text_1 = child(span_1, true);
|
|
36624
36731
|
reset(span_1);
|
|
@@ -36687,6 +36794,48 @@ create_custom_element(Event$1, {
|
|
|
36687
36794
|
orderDetails: {}
|
|
36688
36795
|
}, [], [], { mode: "open" });
|
|
36689
36796
|
//#endregion
|
|
36797
|
+
//#region src/components/order/components/subcomponents/breakdown/items/Merchandise.svelte
|
|
36798
|
+
var root$10 = /* @__PURE__ */ from_html(`<li><article><ul><li class="go-order-breakdown-count"> </li> <li class="go-order-breakdown-product"><span class="go-order-item-title"> </span></li> <li class="go-order-breakdown-item-price"> </li> <li class="go-order-breakdown-passbook"></li></ul></article></li>`);
|
|
36799
|
+
function Merchandise($$anchor, $$props) {
|
|
36800
|
+
push($$props, true);
|
|
36801
|
+
let item = prop($$props, "item", 7);
|
|
36802
|
+
var $$exports = {
|
|
36803
|
+
get item() {
|
|
36804
|
+
return item();
|
|
36805
|
+
},
|
|
36806
|
+
set item($$value) {
|
|
36807
|
+
item($$value);
|
|
36808
|
+
flushSync();
|
|
36809
|
+
}
|
|
36810
|
+
};
|
|
36811
|
+
var li = root$10();
|
|
36812
|
+
var article = child(li);
|
|
36813
|
+
var ul = child(article);
|
|
36814
|
+
var li_1 = child(ul);
|
|
36815
|
+
var text = child(li_1, true);
|
|
36816
|
+
reset(li_1);
|
|
36817
|
+
var li_2 = sibling(li_1, 2);
|
|
36818
|
+
var span = child(li_2);
|
|
36819
|
+
var text_1 = child(span, true);
|
|
36820
|
+
reset(span);
|
|
36821
|
+
reset(li_2);
|
|
36822
|
+
var li_3 = sibling(li_2, 2);
|
|
36823
|
+
var text_2 = child(li_3, true);
|
|
36824
|
+
reset(li_3);
|
|
36825
|
+
next(2);
|
|
36826
|
+
reset(ul);
|
|
36827
|
+
reset(article);
|
|
36828
|
+
reset(li);
|
|
36829
|
+
template_effect(($0) => {
|
|
36830
|
+
set_text(text, item().attributes.quantity);
|
|
36831
|
+
set_text(text_1, item().attributes.title);
|
|
36832
|
+
set_text(text_2, $0);
|
|
36833
|
+
}, [() => formatCurrency(item().price_cents)]);
|
|
36834
|
+
append($$anchor, li);
|
|
36835
|
+
return pop($$exports);
|
|
36836
|
+
}
|
|
36837
|
+
create_custom_element(Merchandise, { item: {} }, [], [], { mode: "open" });
|
|
36838
|
+
//#endregion
|
|
36690
36839
|
//#region src/components/order/components/subcomponents/breakdown/items/TicketSale.svelte
|
|
36691
36840
|
var root$9 = /* @__PURE__ */ from_html(`<span class="go-order-item-subtitle" data-testid="order-item-subtitle"> </span>`);
|
|
36692
36841
|
var root_1$4 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities" data-testid="order-sub-ticket"> </span>`, 1);
|
|
@@ -37018,7 +37167,7 @@ function Tour($$anchor, $$props) {
|
|
|
37018
37167
|
create_custom_element(Tour, { item: {} }, [], [], { mode: "open" });
|
|
37019
37168
|
//#endregion
|
|
37020
37169
|
//#region src/components/order/components/subcomponents/breakdown/Breakdown.svelte
|
|
37021
|
-
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>`);
|
|
37170
|
+
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>`);
|
|
37022
37171
|
function Breakdown($$anchor, $$props) {
|
|
37023
37172
|
push($$props, true);
|
|
37024
37173
|
const _orderDetails = getDetails($$props.$$host);
|
|
@@ -37026,7 +37175,7 @@ function Breakdown($$anchor, $$props) {
|
|
|
37026
37175
|
let order = /* @__PURE__ */ user_derived(() => get$2(orderDetails)?.order);
|
|
37027
37176
|
var fragment = comment();
|
|
37028
37177
|
var node = first_child(fragment);
|
|
37029
|
-
var
|
|
37178
|
+
var consequent_5 = ($$anchor) => {
|
|
37030
37179
|
var ol = root$7();
|
|
37031
37180
|
var li = child(ol);
|
|
37032
37181
|
var ul = child(li);
|
|
@@ -37071,14 +37220,37 @@ function Breakdown($$anchor, $$props) {
|
|
|
37071
37220
|
return get$2(item);
|
|
37072
37221
|
} });
|
|
37073
37222
|
};
|
|
37223
|
+
var consequent_3 = ($$anchor) => {
|
|
37224
|
+
Coupon($$anchor, {
|
|
37225
|
+
get item() {
|
|
37226
|
+
return get$2(item);
|
|
37227
|
+
},
|
|
37228
|
+
get orderDetails() {
|
|
37229
|
+
return get$2(orderDetails);
|
|
37230
|
+
}
|
|
37231
|
+
});
|
|
37232
|
+
};
|
|
37233
|
+
var consequent_4 = ($$anchor) => {
|
|
37234
|
+
Merchandise($$anchor, { get item() {
|
|
37235
|
+
return get$2(item);
|
|
37236
|
+
} });
|
|
37237
|
+
};
|
|
37074
37238
|
if_block(node_2, ($$render) => {
|
|
37075
37239
|
if (get$2(item).type === "Ticket") $$render(consequent);
|
|
37076
37240
|
else if (get$2(item).type === "Event") $$render(consequent_1, 1);
|
|
37077
37241
|
else if (get$2(item).type === "Tour") $$render(consequent_2, 2);
|
|
37242
|
+
else if (get$2(item).type === "Coupon") $$render(consequent_3, 3);
|
|
37243
|
+
else if (get$2(item).type === "Merchandise") $$render(consequent_4, 4);
|
|
37078
37244
|
});
|
|
37079
37245
|
append($$anchor, fragment_1);
|
|
37080
37246
|
});
|
|
37081
|
-
var
|
|
37247
|
+
var node_3 = sibling(node_1, 2);
|
|
37248
|
+
each(node_3, 17, () => get$2(order).donations ?? [], (donation) => donation.id, ($$anchor, donation) => {
|
|
37249
|
+
Donation($$anchor, { get donation() {
|
|
37250
|
+
return get$2(donation);
|
|
37251
|
+
} });
|
|
37252
|
+
});
|
|
37253
|
+
var li_4 = sibling(node_3, 2);
|
|
37082
37254
|
var ul_1 = child(li_4);
|
|
37083
37255
|
var li_5 = sibling(child(ul_1), 4);
|
|
37084
37256
|
var text_3 = child(li_5, true);
|
|
@@ -37101,7 +37273,7 @@ function Breakdown($$anchor, $$props) {
|
|
|
37101
37273
|
append($$anchor, ol);
|
|
37102
37274
|
};
|
|
37103
37275
|
if_block(node, ($$render) => {
|
|
37104
|
-
if (get$2(order) && get$2(orderDetails)) $$render(
|
|
37276
|
+
if (get$2(order) && get$2(orderDetails)) $$render(consequent_5);
|
|
37105
37277
|
});
|
|
37106
37278
|
append($$anchor, fragment);
|
|
37107
37279
|
pop();
|