@gomusdev/web-components 1.39.4 → 1.40.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/config/{defaultConfig.d.ts → configStore.svelte.d.ts} +12 -1
- package/dist-js/entry.d.ts +0 -0
- package/dist-js/go/go.d.ts +16 -0
- package/dist-js/go/go.spec.d.ts +1 -0
- package/dist-js/go/snippet.d.ts +1 -0
- package/dist-js/gomus-webcomponents.iife.js +374 -275
- package/dist-js/gomus-webcomponents.js +374 -275
- package/package.json +8 -4
- package/dist-js/config/config.d.ts +0 -8
- /package/dist-js/config/{config.spec.d.ts → configStore.spec.d.ts} +0 -0
- /package/dist-js/{go.svelte.d.ts → go/go.e2e.unit.spec.d.ts} +0 -0
|
@@ -12313,7 +12313,7 @@ function removeTrailingSlash(url) {
|
|
|
12313
12313
|
return url;
|
|
12314
12314
|
}
|
|
12315
12315
|
function client(publicApiUrl, shopUrl) {
|
|
12316
|
-
return createClient({ baseUrl:
|
|
12316
|
+
return createClient({ baseUrl: publicApiUrl, headers: { "X-Shop-Url": shopUrl } });
|
|
12317
12317
|
}
|
|
12318
12318
|
const CALENDAR_ENDPOINT = "/api/v4/calendar";
|
|
12319
12319
|
const TICKETS_CALENDAR_ENDPOINT = "/api/v4/tickets/calendar";
|
|
@@ -12725,7 +12725,7 @@ function createGetDetails(KEY2) {
|
|
|
12725
12725
|
}
|
|
12726
12726
|
};
|
|
12727
12727
|
}
|
|
12728
|
-
|
|
12728
|
+
let defaultConfig = {
|
|
12729
12729
|
urls: {},
|
|
12730
12730
|
navigateTo: (url) => {
|
|
12731
12731
|
window.location.assign(url);
|
|
@@ -12733,18 +12733,39 @@ const defaultConfig = {
|
|
|
12733
12733
|
forms: {},
|
|
12734
12734
|
fields: {}
|
|
12735
12735
|
};
|
|
12736
|
-
class
|
|
12737
|
-
|
|
12736
|
+
class ConfigStoreSvelte {
|
|
12737
|
+
defaultConfig = assign(defaultConfig, window.customOptions);
|
|
12738
|
+
override = this.defaultConfig;
|
|
12739
|
+
#options = /* @__PURE__ */ state(proxy({}));
|
|
12740
|
+
get options() {
|
|
12741
|
+
return get$2(this.#options);
|
|
12742
|
+
}
|
|
12743
|
+
set options(value) {
|
|
12744
|
+
set(this.#options, value, true);
|
|
12745
|
+
}
|
|
12746
|
+
constructor() {
|
|
12747
|
+
this.update();
|
|
12748
|
+
}
|
|
12749
|
+
update() {
|
|
12750
|
+
this.options = assign(this.defaultConfig, this.override);
|
|
12751
|
+
}
|
|
12738
12752
|
get config() {
|
|
12739
|
-
return
|
|
12753
|
+
return this.options;
|
|
12754
|
+
}
|
|
12755
|
+
define(options) {
|
|
12756
|
+
console.log("ConfigStore.define", options);
|
|
12757
|
+
this.override = assign(this.override, options);
|
|
12758
|
+
this.update();
|
|
12759
|
+
return this;
|
|
12740
12760
|
}
|
|
12741
|
-
|
|
12742
|
-
|
|
12761
|
+
default(options) {
|
|
12762
|
+
console.log("ConfigStore.default", options);
|
|
12763
|
+
this.defaultConfig = assign(this.defaultConfig, options);
|
|
12764
|
+
this.update();
|
|
12743
12765
|
return this;
|
|
12744
12766
|
}
|
|
12745
12767
|
}
|
|
12746
|
-
const
|
|
12747
|
-
window.go = go;
|
|
12768
|
+
const configStore = new ConfigStoreSvelte();
|
|
12748
12769
|
class PersonalizationDetails {
|
|
12749
12770
|
#token = /* @__PURE__ */ state();
|
|
12750
12771
|
get token() {
|
|
@@ -12771,8 +12792,8 @@ class PersonalizationDetails {
|
|
|
12771
12792
|
if (this.ticketSaleId) return snapshot(this.order?.ticket_sales.find((ts) => ts.id == this.ticketSaleId));
|
|
12772
12793
|
}
|
|
12773
12794
|
goToPersonalization(ticketSale) {
|
|
12774
|
-
if (
|
|
12775
|
-
return
|
|
12795
|
+
if (configStore.config.urls.annualTicketPersonalizationForm) {
|
|
12796
|
+
return configStore.config.urls.annualTicketPersonalizationForm(this.token, ticketSale.id);
|
|
12776
12797
|
} else {
|
|
12777
12798
|
return shop.urls.annualTicketPersonalizationForm(this.token, ticketSale.id);
|
|
12778
12799
|
}
|
|
@@ -12781,7 +12802,7 @@ class PersonalizationDetails {
|
|
|
12781
12802
|
const KEY$4 = "go-annual-ticket-personalization";
|
|
12782
12803
|
const setPersonalizationDetails = createSetDetails(KEY$4);
|
|
12783
12804
|
var root_3$8 = /* @__PURE__ */ from_html(`<li><a> </a></li>`);
|
|
12784
|
-
var root_2$
|
|
12805
|
+
var root_2$q = /* @__PURE__ */ from_html(`<ul class="go-annual-ticket"><li class="go-annual-ticket-title"> </li> <li class="go-annual-ticket-personalization-count"> </li> <!></ul>`);
|
|
12785
12806
|
function AnnualTicketPersonalization($$anchor, $$props) {
|
|
12786
12807
|
push($$props, true);
|
|
12787
12808
|
let token = prop($$props, "token", 7);
|
|
@@ -12808,7 +12829,7 @@ function AnnualTicketPersonalization($$anchor, $$props) {
|
|
|
12808
12829
|
var fragment_1 = comment();
|
|
12809
12830
|
var node_1 = first_child(fragment_1);
|
|
12810
12831
|
each(node_1, 17, () => get$2(order).ticket_sales, (ticketSale) => ticketSale.id, ($$anchor3, ticketSale) => {
|
|
12811
|
-
var ul = root_2$
|
|
12832
|
+
var ul = root_2$q();
|
|
12812
12833
|
var li = child(ul);
|
|
12813
12834
|
var text2 = child(li, true);
|
|
12814
12835
|
reset(li);
|
|
@@ -16080,20 +16101,20 @@ function validateField(field) {
|
|
|
16080
16101
|
}
|
|
16081
16102
|
const _Forms = class _Forms {
|
|
16082
16103
|
static defineForm(options) {
|
|
16083
|
-
|
|
16104
|
+
configStore.default({
|
|
16084
16105
|
forms: {
|
|
16085
16106
|
[options.id]: { fields: options.fields, submitLabel: options.submitLabel }
|
|
16086
16107
|
}
|
|
16087
16108
|
});
|
|
16088
16109
|
}
|
|
16089
16110
|
static defineFields(fields) {
|
|
16090
|
-
|
|
16111
|
+
configStore.default({ fields });
|
|
16091
16112
|
}
|
|
16092
16113
|
static setRequiredApiKeys(formId, requiredApiKeys) {
|
|
16093
16114
|
__privateGet(_Forms, _requiredApiKeysMap)[formId] = requiredApiKeys;
|
|
16094
16115
|
}
|
|
16095
16116
|
static getFormOptions(formId) {
|
|
16096
|
-
return
|
|
16117
|
+
return configStore.config.forms[formId];
|
|
16097
16118
|
}
|
|
16098
16119
|
static createField(key, required) {
|
|
16099
16120
|
const init2 = _Forms.getFieldInit(key);
|
|
@@ -16106,7 +16127,7 @@ const _Forms = class _Forms {
|
|
|
16106
16127
|
return formFields(formId);
|
|
16107
16128
|
}
|
|
16108
16129
|
static getFieldInit(key) {
|
|
16109
|
-
return
|
|
16130
|
+
return configStore.config.fields[key];
|
|
16110
16131
|
}
|
|
16111
16132
|
};
|
|
16112
16133
|
_requiredApiKeysMap = new WeakMap();
|
|
@@ -16114,7 +16135,7 @@ __privateAdd(_Forms, _requiredApiKeysMap, {});
|
|
|
16114
16135
|
_Forms.defineFields(allFields);
|
|
16115
16136
|
let Forms = _Forms;
|
|
16116
16137
|
function formFields(formId) {
|
|
16117
|
-
const definition =
|
|
16138
|
+
const definition = configStore.config.forms[formId];
|
|
16118
16139
|
if (!definition) {
|
|
16119
16140
|
throw new Error(`(formFields) Form ${formId} not found`);
|
|
16120
16141
|
}
|
|
@@ -16189,12 +16210,12 @@ function AnnualTicketPersonalizationForm($$anchor, $$props) {
|
|
|
16189
16210
|
form.details.apiErrors = [result.error.error];
|
|
16190
16211
|
return;
|
|
16191
16212
|
}
|
|
16192
|
-
const beforeSubmit =
|
|
16213
|
+
const beforeSubmit = configStore.config.forms.personalization?.beforeSubmit;
|
|
16193
16214
|
if (beforeSubmit) {
|
|
16194
16215
|
beforeSubmit(body);
|
|
16195
16216
|
}
|
|
16196
|
-
if (
|
|
16197
|
-
|
|
16217
|
+
if (configStore.config.urls.annualTicketPersonalizationFormSubmit?.()) {
|
|
16218
|
+
configStore.config.navigateTo(configStore.config.urls.annualTicketPersonalizationFormSubmit());
|
|
16198
16219
|
}
|
|
16199
16220
|
}
|
|
16200
16221
|
let templateForm = null;
|
|
@@ -16680,7 +16701,7 @@ function Event$2($$anchor, $$props) {
|
|
|
16680
16701
|
return pop($$exports);
|
|
16681
16702
|
}
|
|
16682
16703
|
create_custom_element(Event$2, { cartItem: {} }, [], [], { mode: "open" });
|
|
16683
|
-
var root_2$
|
|
16704
|
+
var root_2$p = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
|
|
16684
16705
|
var root_1$g = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
|
|
16685
16706
|
var root$8 = /* @__PURE__ */ from_html(`<li data-go-cart-item-title=""><span class="go-cart-item-title" data-testid="cart-item-title"> </span> <!></li>`);
|
|
16686
16707
|
function Ticket($$anchor, $$props) {
|
|
@@ -16709,7 +16730,7 @@ function Ticket($$anchor, $$props) {
|
|
|
16709
16730
|
var node_1 = sibling(span_1, 2);
|
|
16710
16731
|
{
|
|
16711
16732
|
var consequent = ($$anchor3) => {
|
|
16712
|
-
var span_2 = root_2$
|
|
16733
|
+
var span_2 = root_2$p();
|
|
16713
16734
|
var text_2 = child(span_2, true);
|
|
16714
16735
|
reset(span_2);
|
|
16715
16736
|
template_effect(($0) => set_text(text_2, $0), [() => formatTime(cartItem().time)]);
|
|
@@ -16734,10 +16755,10 @@ function Ticket($$anchor, $$props) {
|
|
|
16734
16755
|
return pop($$exports);
|
|
16735
16756
|
}
|
|
16736
16757
|
create_custom_element(Ticket, { cartItem: {} }, [], [], { mode: "open" });
|
|
16737
|
-
var root_2$
|
|
16738
|
-
var root_7$
|
|
16758
|
+
var root_2$o = /* @__PURE__ */ from_html(`<li class="go-cart-header-remove" data-go-cart-header-remove=""></li>`);
|
|
16759
|
+
var root_7$3 = /* @__PURE__ */ from_html(`<li class="go-cart-item-remove" data-go-cart-item-remove=""><button>⨉</button></li>`);
|
|
16739
16760
|
var root_3$7 = /* @__PURE__ */ from_html(`<li class="go-cart-item" data-go-cart-item=""><article><ul><!> <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></li>`);
|
|
16740
|
-
var root_8$
|
|
16761
|
+
var root_8$2 = /* @__PURE__ */ from_html(`<li class="go-cart-footer-remove" data-go-cart-footer-remove=""></li>`);
|
|
16741
16762
|
var root_1$f = /* @__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>`);
|
|
16742
16763
|
function Cart($$anchor, $$props) {
|
|
16743
16764
|
push($$props, true);
|
|
@@ -16771,7 +16792,7 @@ function Cart($$anchor, $$props) {
|
|
|
16771
16792
|
var node_1 = sibling(li_3, 2);
|
|
16772
16793
|
{
|
|
16773
16794
|
var consequent = ($$anchor3) => {
|
|
16774
|
-
var li_4 = root_2$
|
|
16795
|
+
var li_4 = root_2$o();
|
|
16775
16796
|
append($$anchor3, li_4);
|
|
16776
16797
|
};
|
|
16777
16798
|
if_block(node_1, ($$render) => {
|
|
@@ -16832,7 +16853,7 @@ function Cart($$anchor, $$props) {
|
|
|
16832
16853
|
var node_5 = sibling(li_8, 2);
|
|
16833
16854
|
{
|
|
16834
16855
|
var consequent_3 = ($$anchor4) => {
|
|
16835
|
-
var li_9 = root_7$
|
|
16856
|
+
var li_9 = root_7$3();
|
|
16836
16857
|
var button = child(li_9);
|
|
16837
16858
|
button.__click = () => get$2(cart).deleteItem(get$2(cartItem));
|
|
16838
16859
|
reset(li_9);
|
|
@@ -16861,7 +16882,7 @@ function Cart($$anchor, $$props) {
|
|
|
16861
16882
|
var node_6 = sibling(child(ul_2), 6);
|
|
16862
16883
|
{
|
|
16863
16884
|
var consequent_4 = ($$anchor3) => {
|
|
16864
|
-
var li_12 = root_8$
|
|
16885
|
+
var li_12 = root_8$2();
|
|
16865
16886
|
append($$anchor3, li_12);
|
|
16866
16887
|
};
|
|
16867
16888
|
if_block(node_6, ($$render) => {
|
|
@@ -16945,12 +16966,12 @@ function CheckoutForm($$anchor, $$props) {
|
|
|
16945
16966
|
form.details.apiErrors = checkout.error;
|
|
16946
16967
|
return;
|
|
16947
16968
|
}
|
|
16948
|
-
const beforeSubmit =
|
|
16969
|
+
const beforeSubmit = configStore.config.forms.checkoutGuest?.beforeSubmit;
|
|
16949
16970
|
if (beforeSubmit) {
|
|
16950
16971
|
await beforeSubmit(form.details.formData);
|
|
16951
16972
|
}
|
|
16952
16973
|
const paymentUrl = checkout.data.meta.payment_url;
|
|
16953
|
-
|
|
16974
|
+
configStore.config.navigateTo?.(paymentUrl);
|
|
16954
16975
|
});
|
|
16955
16976
|
});
|
|
16956
16977
|
var $$exports = {
|
|
@@ -21898,7 +21919,7 @@ class CalendarHeaderState {
|
|
|
21898
21919
|
set(this.#props, value);
|
|
21899
21920
|
}
|
|
21900
21921
|
}
|
|
21901
|
-
var root_2$
|
|
21922
|
+
var root_2$n = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
21902
21923
|
function Calendar$1($$anchor, $$props) {
|
|
21903
21924
|
push($$props, true);
|
|
21904
21925
|
let child$1 = 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), readonly2 = 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, [
|
|
@@ -22201,7 +22222,7 @@ function Calendar$1($$anchor, $$props) {
|
|
|
22201
22222
|
append($$anchor2, fragment_1);
|
|
22202
22223
|
};
|
|
22203
22224
|
var alternate = ($$anchor2) => {
|
|
22204
|
-
var div = root_2$
|
|
22225
|
+
var div = root_2$n();
|
|
22205
22226
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
22206
22227
|
var node_2 = child(div);
|
|
22207
22228
|
snippet(node_2, () => children() ?? noop$1, () => rootState.snippetProps);
|
|
@@ -22252,7 +22273,7 @@ create_custom_element(
|
|
|
22252
22273
|
[],
|
|
22253
22274
|
{ mode: "open" }
|
|
22254
22275
|
);
|
|
22255
|
-
var root_2$
|
|
22276
|
+
var root_2$m = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
22256
22277
|
function Calendar_day($$anchor, $$props) {
|
|
22257
22278
|
const uid = props_id();
|
|
22258
22279
|
push($$props, true);
|
|
@@ -22314,7 +22335,7 @@ function Calendar_day($$anchor, $$props) {
|
|
|
22314
22335
|
append($$anchor2, fragment_1);
|
|
22315
22336
|
};
|
|
22316
22337
|
var alternate_1 = ($$anchor2) => {
|
|
22317
|
-
var div = root_2$
|
|
22338
|
+
var div = root_2$m();
|
|
22318
22339
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
22319
22340
|
var node_2 = child(div);
|
|
22320
22341
|
{
|
|
@@ -22346,7 +22367,7 @@ function Calendar_day($$anchor, $$props) {
|
|
|
22346
22367
|
return pop($$exports);
|
|
22347
22368
|
}
|
|
22348
22369
|
create_custom_element(Calendar_day, { children: {}, child: {}, ref: {}, id: {} }, [], [], { mode: "open" });
|
|
22349
|
-
var root_2$
|
|
22370
|
+
var root_2$l = /* @__PURE__ */ from_html(`<table><!></table>`);
|
|
22350
22371
|
function Calendar_grid($$anchor, $$props) {
|
|
22351
22372
|
const uid = props_id();
|
|
22352
22373
|
push($$props, true);
|
|
@@ -22405,7 +22426,7 @@ function Calendar_grid($$anchor, $$props) {
|
|
|
22405
22426
|
append($$anchor2, fragment_1);
|
|
22406
22427
|
};
|
|
22407
22428
|
var alternate = ($$anchor2) => {
|
|
22408
|
-
var table = root_2$
|
|
22429
|
+
var table = root_2$l();
|
|
22409
22430
|
attribute_effect(table, () => ({ ...get$2(mergedProps) }));
|
|
22410
22431
|
var node_2 = child(table);
|
|
22411
22432
|
snippet(node_2, () => children() ?? noop$1);
|
|
@@ -22421,7 +22442,7 @@ function Calendar_grid($$anchor, $$props) {
|
|
|
22421
22442
|
return pop($$exports);
|
|
22422
22443
|
}
|
|
22423
22444
|
create_custom_element(Calendar_grid, { children: {}, child: {}, ref: {}, id: {} }, [], [], { mode: "open" });
|
|
22424
|
-
var root_2$
|
|
22445
|
+
var root_2$k = /* @__PURE__ */ from_html(`<tbody><!></tbody>`);
|
|
22425
22446
|
function Calendar_grid_body($$anchor, $$props) {
|
|
22426
22447
|
const uid = props_id();
|
|
22427
22448
|
push($$props, true);
|
|
@@ -22480,7 +22501,7 @@ function Calendar_grid_body($$anchor, $$props) {
|
|
|
22480
22501
|
append($$anchor2, fragment_1);
|
|
22481
22502
|
};
|
|
22482
22503
|
var alternate = ($$anchor2) => {
|
|
22483
|
-
var tbody = root_2$
|
|
22504
|
+
var tbody = root_2$k();
|
|
22484
22505
|
attribute_effect(tbody, () => ({ ...get$2(mergedProps) }));
|
|
22485
22506
|
var node_2 = child(tbody);
|
|
22486
22507
|
snippet(node_2, () => children() ?? noop$1);
|
|
@@ -22496,7 +22517,7 @@ function Calendar_grid_body($$anchor, $$props) {
|
|
|
22496
22517
|
return pop($$exports);
|
|
22497
22518
|
}
|
|
22498
22519
|
create_custom_element(Calendar_grid_body, { children: {}, child: {}, ref: {}, id: {} }, [], [], { mode: "open" });
|
|
22499
|
-
var root_2$
|
|
22520
|
+
var root_2$j = /* @__PURE__ */ from_html(`<td><!></td>`);
|
|
22500
22521
|
function Calendar_cell($$anchor, $$props) {
|
|
22501
22522
|
const uid = props_id();
|
|
22502
22523
|
push($$props, true);
|
|
@@ -22576,7 +22597,7 @@ function Calendar_cell($$anchor, $$props) {
|
|
|
22576
22597
|
append($$anchor2, fragment_1);
|
|
22577
22598
|
};
|
|
22578
22599
|
var alternate = ($$anchor2) => {
|
|
22579
|
-
var td = root_2$
|
|
22600
|
+
var td = root_2$j();
|
|
22580
22601
|
attribute_effect(td, () => ({ ...get$2(mergedProps) }));
|
|
22581
22602
|
var node_2 = child(td);
|
|
22582
22603
|
snippet(node_2, () => children() ?? noop$1, () => cellState.snippetProps);
|
|
@@ -22605,7 +22626,7 @@ create_custom_element(
|
|
|
22605
22626
|
[],
|
|
22606
22627
|
{ mode: "open" }
|
|
22607
22628
|
);
|
|
22608
|
-
var root_2$
|
|
22629
|
+
var root_2$i = /* @__PURE__ */ from_html(`<thead><!></thead>`);
|
|
22609
22630
|
function Calendar_grid_head($$anchor, $$props) {
|
|
22610
22631
|
const uid = props_id();
|
|
22611
22632
|
push($$props, true);
|
|
@@ -22664,7 +22685,7 @@ function Calendar_grid_head($$anchor, $$props) {
|
|
|
22664
22685
|
append($$anchor2, fragment_1);
|
|
22665
22686
|
};
|
|
22666
22687
|
var alternate = ($$anchor2) => {
|
|
22667
|
-
var thead = root_2$
|
|
22688
|
+
var thead = root_2$i();
|
|
22668
22689
|
attribute_effect(thead, () => ({ ...get$2(mergedProps) }));
|
|
22669
22690
|
var node_2 = child(thead);
|
|
22670
22691
|
snippet(node_2, () => children() ?? noop$1);
|
|
@@ -22680,7 +22701,7 @@ function Calendar_grid_head($$anchor, $$props) {
|
|
|
22680
22701
|
return pop($$exports);
|
|
22681
22702
|
}
|
|
22682
22703
|
create_custom_element(Calendar_grid_head, { children: {}, child: {}, ref: {}, id: {} }, [], [], { mode: "open" });
|
|
22683
|
-
var root_2$
|
|
22704
|
+
var root_2$h = /* @__PURE__ */ from_html(`<th><!></th>`);
|
|
22684
22705
|
function Calendar_head_cell($$anchor, $$props) {
|
|
22685
22706
|
const uid = props_id();
|
|
22686
22707
|
push($$props, true);
|
|
@@ -22739,7 +22760,7 @@ function Calendar_head_cell($$anchor, $$props) {
|
|
|
22739
22760
|
append($$anchor2, fragment_1);
|
|
22740
22761
|
};
|
|
22741
22762
|
var alternate = ($$anchor2) => {
|
|
22742
|
-
var th = root_2$
|
|
22763
|
+
var th = root_2$h();
|
|
22743
22764
|
attribute_effect(th, () => ({ ...get$2(mergedProps) }));
|
|
22744
22765
|
var node_2 = child(th);
|
|
22745
22766
|
snippet(node_2, () => children() ?? noop$1);
|
|
@@ -22755,7 +22776,7 @@ function Calendar_head_cell($$anchor, $$props) {
|
|
|
22755
22776
|
return pop($$exports);
|
|
22756
22777
|
}
|
|
22757
22778
|
create_custom_element(Calendar_head_cell, { children: {}, child: {}, ref: {}, id: {} }, [], [], { mode: "open" });
|
|
22758
|
-
var root_2$
|
|
22779
|
+
var root_2$g = /* @__PURE__ */ from_html(`<tr><!></tr>`);
|
|
22759
22780
|
function Calendar_grid_row($$anchor, $$props) {
|
|
22760
22781
|
const uid = props_id();
|
|
22761
22782
|
push($$props, true);
|
|
@@ -22814,7 +22835,7 @@ function Calendar_grid_row($$anchor, $$props) {
|
|
|
22814
22835
|
append($$anchor2, fragment_1);
|
|
22815
22836
|
};
|
|
22816
22837
|
var alternate = ($$anchor2) => {
|
|
22817
|
-
var tr = root_2$
|
|
22838
|
+
var tr = root_2$g();
|
|
22818
22839
|
attribute_effect(tr, () => ({ ...get$2(mergedProps) }));
|
|
22819
22840
|
var node_2 = child(tr);
|
|
22820
22841
|
snippet(node_2, () => children() ?? noop$1);
|
|
@@ -22830,7 +22851,7 @@ function Calendar_grid_row($$anchor, $$props) {
|
|
|
22830
22851
|
return pop($$exports);
|
|
22831
22852
|
}
|
|
22832
22853
|
create_custom_element(Calendar_grid_row, { children: {}, child: {}, ref: {}, id: {} }, [], [], { mode: "open" });
|
|
22833
|
-
var root_2$
|
|
22854
|
+
var root_2$f = /* @__PURE__ */ from_html(`<header><!></header>`);
|
|
22834
22855
|
function Calendar_header($$anchor, $$props) {
|
|
22835
22856
|
const uid = props_id();
|
|
22836
22857
|
push($$props, true);
|
|
@@ -22889,7 +22910,7 @@ function Calendar_header($$anchor, $$props) {
|
|
|
22889
22910
|
append($$anchor2, fragment_1);
|
|
22890
22911
|
};
|
|
22891
22912
|
var alternate = ($$anchor2) => {
|
|
22892
|
-
var header = root_2$
|
|
22913
|
+
var header = root_2$f();
|
|
22893
22914
|
attribute_effect(header, () => ({ ...get$2(mergedProps) }));
|
|
22894
22915
|
var node_2 = child(header);
|
|
22895
22916
|
snippet(node_2, () => children() ?? noop$1);
|
|
@@ -22905,7 +22926,7 @@ function Calendar_header($$anchor, $$props) {
|
|
|
22905
22926
|
return pop($$exports);
|
|
22906
22927
|
}
|
|
22907
22928
|
create_custom_element(Calendar_header, { children: {}, child: {}, ref: {}, id: {} }, [], [], { mode: "open" });
|
|
22908
|
-
var root_2$
|
|
22929
|
+
var root_2$e = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
22909
22930
|
function Calendar_heading($$anchor, $$props) {
|
|
22910
22931
|
const uid = props_id();
|
|
22911
22932
|
push($$props, true);
|
|
@@ -22967,7 +22988,7 @@ function Calendar_heading($$anchor, $$props) {
|
|
|
22967
22988
|
append($$anchor2, fragment_1);
|
|
22968
22989
|
};
|
|
22969
22990
|
var alternate_1 = ($$anchor2) => {
|
|
22970
|
-
var div = root_2$
|
|
22991
|
+
var div = root_2$e();
|
|
22971
22992
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
22972
22993
|
var node_2 = child(div);
|
|
22973
22994
|
{
|
|
@@ -22999,7 +23020,7 @@ function Calendar_heading($$anchor, $$props) {
|
|
|
22999
23020
|
return pop($$exports);
|
|
23000
23021
|
}
|
|
23001
23022
|
create_custom_element(Calendar_heading, { children: {}, child: {}, ref: {}, id: {} }, [], [], { mode: "open" });
|
|
23002
|
-
var root_2$
|
|
23023
|
+
var root_2$d = /* @__PURE__ */ from_html(`<button><!></button>`);
|
|
23003
23024
|
function Calendar_next_button($$anchor, $$props) {
|
|
23004
23025
|
const uid = props_id();
|
|
23005
23026
|
push($$props, true);
|
|
@@ -23066,7 +23087,7 @@ function Calendar_next_button($$anchor, $$props) {
|
|
|
23066
23087
|
append($$anchor2, fragment_1);
|
|
23067
23088
|
};
|
|
23068
23089
|
var alternate = ($$anchor2) => {
|
|
23069
|
-
var button = root_2$
|
|
23090
|
+
var button = root_2$d();
|
|
23070
23091
|
attribute_effect(button, () => ({ ...get$2(mergedProps) }));
|
|
23071
23092
|
var node_2 = child(button);
|
|
23072
23093
|
snippet(node_2, () => children() ?? noop$1);
|
|
@@ -23082,7 +23103,7 @@ function Calendar_next_button($$anchor, $$props) {
|
|
|
23082
23103
|
return pop($$exports);
|
|
23083
23104
|
}
|
|
23084
23105
|
create_custom_element(Calendar_next_button, { children: {}, child: {}, id: {}, ref: {}, tabindex: {} }, [], [], { mode: "open" });
|
|
23085
|
-
var root_2$
|
|
23106
|
+
var root_2$c = /* @__PURE__ */ from_html(`<button><!></button>`);
|
|
23086
23107
|
function Calendar_prev_button($$anchor, $$props) {
|
|
23087
23108
|
const uid = props_id();
|
|
23088
23109
|
push($$props, true);
|
|
@@ -23149,7 +23170,7 @@ function Calendar_prev_button($$anchor, $$props) {
|
|
|
23149
23170
|
append($$anchor2, fragment_1);
|
|
23150
23171
|
};
|
|
23151
23172
|
var alternate = ($$anchor2) => {
|
|
23152
|
-
var button = root_2$
|
|
23173
|
+
var button = root_2$c();
|
|
23153
23174
|
attribute_effect(button, () => ({ ...get$2(mergedProps) }));
|
|
23154
23175
|
var node_2 = child(button);
|
|
23155
23176
|
snippet(node_2, () => children() ?? noop$1);
|
|
@@ -23166,7 +23187,7 @@ function Calendar_prev_button($$anchor, $$props) {
|
|
|
23166
23187
|
}
|
|
23167
23188
|
create_custom_element(Calendar_prev_button, { children: {}, child: {}, id: {}, ref: {}, tabindex: {} }, [], [], { mode: "open" });
|
|
23168
23189
|
var root_1$e = /* @__PURE__ */ from_html(`<input/>`);
|
|
23169
|
-
var root_2$
|
|
23190
|
+
var root_2$b = /* @__PURE__ */ from_html(`<input/>`);
|
|
23170
23191
|
function Hidden_input($$anchor, $$props) {
|
|
23171
23192
|
push($$props, true);
|
|
23172
23193
|
let value = prop($$props, "value", 15), restProps = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy", "$$host", "value"]);
|
|
@@ -23193,7 +23214,7 @@ function Hidden_input($$anchor, $$props) {
|
|
|
23193
23214
|
append($$anchor2, input);
|
|
23194
23215
|
};
|
|
23195
23216
|
var alternate = ($$anchor2) => {
|
|
23196
|
-
var input_1 = root_2$
|
|
23217
|
+
var input_1 = root_2$b();
|
|
23197
23218
|
attribute_effect(input_1, () => ({ ...get$2(mergedProps) }), void 0, void 0, void 0, void 0, true);
|
|
23198
23219
|
bind_value(input_1, value);
|
|
23199
23220
|
append($$anchor2, input_1);
|
|
@@ -28416,7 +28437,7 @@ function Date_field_hidden_input($$anchor, $$props) {
|
|
|
28416
28437
|
pop();
|
|
28417
28438
|
}
|
|
28418
28439
|
create_custom_element(Date_field_hidden_input, {}, [], [], { mode: "open" });
|
|
28419
|
-
var root_2$
|
|
28440
|
+
var root_2$a = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
28420
28441
|
var root$6 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
|
|
28421
28442
|
function Date_field_input($$anchor, $$props) {
|
|
28422
28443
|
const uid = props_id();
|
|
@@ -28488,7 +28509,7 @@ function Date_field_input($$anchor, $$props) {
|
|
|
28488
28509
|
append($$anchor2, fragment_1);
|
|
28489
28510
|
};
|
|
28490
28511
|
var alternate = ($$anchor2) => {
|
|
28491
|
-
var div = root_2$
|
|
28512
|
+
var div = root_2$a();
|
|
28492
28513
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
28493
28514
|
var node_2 = child(div);
|
|
28494
28515
|
snippet(node_2, () => children() ?? noop$1, () => ({ segments: inputState.root.segmentContents }));
|
|
@@ -28506,7 +28527,7 @@ function Date_field_input($$anchor, $$props) {
|
|
|
28506
28527
|
return pop($$exports);
|
|
28507
28528
|
}
|
|
28508
28529
|
create_custom_element(Date_field_input, { id: {}, ref: {}, name: {}, children: {}, child: {} }, [], [], { mode: "open" });
|
|
28509
|
-
var root_2$
|
|
28530
|
+
var root_2$9 = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
28510
28531
|
function Date_field_label($$anchor, $$props) {
|
|
28511
28532
|
const uid = props_id();
|
|
28512
28533
|
push($$props, true);
|
|
@@ -28565,7 +28586,7 @@ function Date_field_label($$anchor, $$props) {
|
|
|
28565
28586
|
append($$anchor2, fragment_1);
|
|
28566
28587
|
};
|
|
28567
28588
|
var alternate = ($$anchor2) => {
|
|
28568
|
-
var div = root_2$
|
|
28589
|
+
var div = root_2$9();
|
|
28569
28590
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
28570
28591
|
var node_2 = child(div);
|
|
28571
28592
|
snippet(node_2, () => children() ?? noop$1);
|
|
@@ -28581,7 +28602,7 @@ function Date_field_label($$anchor, $$props) {
|
|
|
28581
28602
|
return pop($$exports);
|
|
28582
28603
|
}
|
|
28583
28604
|
create_custom_element(Date_field_label, { id: {}, ref: {}, children: {}, child: {} }, [], [], { mode: "open" });
|
|
28584
|
-
var root_2$
|
|
28605
|
+
var root_2$8 = /* @__PURE__ */ from_html(`<span><!></span>`);
|
|
28585
28606
|
function Date_field_segment($$anchor, $$props) {
|
|
28586
28607
|
const uid = props_id();
|
|
28587
28608
|
push($$props, true);
|
|
@@ -28648,7 +28669,7 @@ function Date_field_segment($$anchor, $$props) {
|
|
|
28648
28669
|
append($$anchor2, fragment_1);
|
|
28649
28670
|
};
|
|
28650
28671
|
var alternate = ($$anchor2) => {
|
|
28651
|
-
var span = root_2$
|
|
28672
|
+
var span = root_2$8();
|
|
28652
28673
|
attribute_effect(span, () => ({ ...get$2(mergedProps) }));
|
|
28653
28674
|
var node_2 = child(span);
|
|
28654
28675
|
snippet(node_2, () => children() ?? noop$1);
|
|
@@ -29681,7 +29702,7 @@ create_custom_element(
|
|
|
29681
29702
|
[],
|
|
29682
29703
|
{ mode: "open" }
|
|
29683
29704
|
);
|
|
29684
|
-
var root_2$
|
|
29705
|
+
var root_2$7 = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
29685
29706
|
function Date_picker_calendar($$anchor, $$props) {
|
|
29686
29707
|
const uid = props_id();
|
|
29687
29708
|
push($$props, true);
|
|
@@ -29768,7 +29789,7 @@ function Date_picker_calendar($$anchor, $$props) {
|
|
|
29768
29789
|
append($$anchor2, fragment_1);
|
|
29769
29790
|
};
|
|
29770
29791
|
var alternate = ($$anchor2) => {
|
|
29771
|
-
var div = root_2$
|
|
29792
|
+
var div = root_2$7();
|
|
29772
29793
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
29773
29794
|
var node_2 = child(div);
|
|
29774
29795
|
snippet(node_2, () => children() ?? noop$1, () => calendarState.snippetProps);
|
|
@@ -29784,7 +29805,7 @@ function Date_picker_calendar($$anchor, $$props) {
|
|
|
29784
29805
|
return pop($$exports);
|
|
29785
29806
|
}
|
|
29786
29807
|
create_custom_element(Date_picker_calendar, { children: {}, child: {}, id: {}, ref: {} }, [], [], { mode: "open" });
|
|
29787
|
-
var root_4$
|
|
29808
|
+
var root_4$5 = /* @__PURE__ */ from_html(`<div><div><!></div></div>`);
|
|
29788
29809
|
var root_9$3 = /* @__PURE__ */ from_html(`<div><div><!></div></div>`);
|
|
29789
29810
|
function Popover_content($$anchor, $$props) {
|
|
29790
29811
|
const uid = props_id();
|
|
@@ -29934,7 +29955,7 @@ function Popover_content($$anchor, $$props) {
|
|
|
29934
29955
|
append($$anchor4, fragment_3);
|
|
29935
29956
|
};
|
|
29936
29957
|
var alternate = ($$anchor4) => {
|
|
29937
|
-
var div = root_4$
|
|
29958
|
+
var div = root_4$5();
|
|
29938
29959
|
attribute_effect(div, () => ({ ...wrapperProps() }));
|
|
29939
29960
|
var div_1 = child(div);
|
|
29940
29961
|
attribute_effect(div_1, () => ({ ...get$2(finalProps) }));
|
|
@@ -30329,14 +30350,14 @@ function Date_picker_trigger($$anchor, $$props) {
|
|
|
30329
30350
|
return pop($$exports);
|
|
30330
30351
|
}
|
|
30331
30352
|
create_custom_element(Date_picker_trigger, { ref: {}, onkeydown: {} }, [], [], { mode: "open" });
|
|
30332
|
-
var
|
|
30333
|
-
var
|
|
30334
|
-
var
|
|
30335
|
-
var
|
|
30353
|
+
var root_4$4 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
|
|
30354
|
+
var root_9$2 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
|
|
30355
|
+
var root_11$3 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
|
|
30356
|
+
var root_8$1 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
|
|
30336
30357
|
var root_1$c = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
|
|
30337
30358
|
function DatePicker_1($$anchor, $$props) {
|
|
30338
30359
|
push($$props, true);
|
|
30339
|
-
let dateString = prop($$props, "dateString", 15), labelClass = prop($$props, "labelClass", 7), inputClass = prop($$props, "inputClass", 7);
|
|
30360
|
+
let dateString = prop($$props, "dateString", 15), labelClass = prop($$props, "labelClass", 7), inputClass = prop($$props, "inputClass", 7), labelText = prop($$props, "labelText", 7);
|
|
30340
30361
|
let date2 = /* @__PURE__ */ state(proxy($14e0f24ef4ac5c92$export$d0bdf45af03a6ea3($14e0f24ef4ac5c92$export$aa8b41735afcabd2())));
|
|
30341
30362
|
user_effect(() => {
|
|
30342
30363
|
dateString(get$2(date2).toString());
|
|
@@ -30362,226 +30383,269 @@ function DatePicker_1($$anchor, $$props) {
|
|
|
30362
30383
|
set inputClass($$value) {
|
|
30363
30384
|
inputClass($$value);
|
|
30364
30385
|
flushSync();
|
|
30386
|
+
},
|
|
30387
|
+
get labelText() {
|
|
30388
|
+
return labelText();
|
|
30389
|
+
},
|
|
30390
|
+
set labelText($$value) {
|
|
30391
|
+
labelText($$value);
|
|
30392
|
+
flushSync();
|
|
30365
30393
|
}
|
|
30366
30394
|
};
|
|
30367
30395
|
var fragment = comment();
|
|
30368
30396
|
var node = first_child(fragment);
|
|
30369
|
-
|
|
30370
|
-
|
|
30371
|
-
|
|
30372
|
-
|
|
30373
|
-
|
|
30374
|
-
|
|
30375
|
-
|
|
30376
|
-
|
|
30377
|
-
|
|
30378
|
-
|
|
30379
|
-
|
|
30380
|
-
|
|
30381
|
-
|
|
30382
|
-
|
|
30383
|
-
|
|
30384
|
-
|
|
30385
|
-
|
|
30386
|
-
|
|
30387
|
-
|
|
30388
|
-
|
|
30389
|
-
const children = ($$anchor4, $$arg0) => {
|
|
30390
|
-
let segments = () => $$arg0?.().segments;
|
|
30391
|
-
var fragment_2 = root_2$7();
|
|
30392
|
-
var node_3 = first_child(fragment_2);
|
|
30393
|
-
each(node_3, 17, segments, index$1, ($$anchor5, $$item) => {
|
|
30394
|
-
let part = () => get$2($$item).part;
|
|
30395
|
-
let value = () => get$2($$item).value;
|
|
30396
|
-
var fragment_3 = comment();
|
|
30397
|
-
var node_4 = first_child(fragment_3);
|
|
30398
|
-
component(node_4, () => Date_field_segment, ($$anchor6, DatePicker_Segment) => {
|
|
30399
|
-
DatePicker_Segment($$anchor6, {
|
|
30400
|
-
get part() {
|
|
30401
|
-
return part();
|
|
30402
|
-
},
|
|
30403
|
-
children: ($$anchor7, $$slotProps2) => {
|
|
30404
|
-
next();
|
|
30405
|
-
var text$1 = text();
|
|
30406
|
-
template_effect(() => set_text(text$1, value()));
|
|
30407
|
-
append($$anchor7, text$1);
|
|
30408
|
-
},
|
|
30409
|
-
$$slots: { default: true }
|
|
30410
|
-
});
|
|
30411
|
-
});
|
|
30412
|
-
append($$anchor5, fragment_3);
|
|
30413
|
-
});
|
|
30414
|
-
var node_5 = sibling(node_3, 2);
|
|
30415
|
-
component(node_5, () => Date_picker_trigger, ($$anchor5, DatePicker_Trigger) => {
|
|
30416
|
-
DatePicker_Trigger($$anchor5, { class: "go-calendar-button" });
|
|
30417
|
-
});
|
|
30418
|
-
append($$anchor4, fragment_2);
|
|
30419
|
-
};
|
|
30420
|
-
component(node_2, () => Date_field_input, ($$anchor4, DatePicker_Input) => {
|
|
30421
|
-
DatePicker_Input($$anchor4, {
|
|
30397
|
+
{
|
|
30398
|
+
let $0 = /* @__PURE__ */ user_derived(() => shop.locale || "de");
|
|
30399
|
+
component(node, () => Date_picker, ($$anchor2, DatePicker_Root) => {
|
|
30400
|
+
DatePicker_Root($$anchor2, {
|
|
30401
|
+
get locale() {
|
|
30402
|
+
return get$2($0);
|
|
30403
|
+
},
|
|
30404
|
+
weekStartsOn: 1,
|
|
30405
|
+
isDateDisabled: (date3) => date3.compare($14e0f24ef4ac5c92$export$d0bdf45af03a6ea3($14e0f24ef4ac5c92$export$aa8b41735afcabd2())) < 0,
|
|
30406
|
+
get value() {
|
|
30407
|
+
return get$2(date2);
|
|
30408
|
+
},
|
|
30409
|
+
set value($$value) {
|
|
30410
|
+
set(date2, $$value, true);
|
|
30411
|
+
},
|
|
30412
|
+
children: ($$anchor3, $$slotProps) => {
|
|
30413
|
+
var fragment_1 = root_1$c();
|
|
30414
|
+
var node_1 = first_child(fragment_1);
|
|
30415
|
+
component(node_1, () => Date_field_label, ($$anchor4, DatePicker_Label) => {
|
|
30416
|
+
DatePicker_Label($$anchor4, {
|
|
30422
30417
|
get class() {
|
|
30423
|
-
return `go-datepicker-
|
|
30418
|
+
return `go-datepicker-label ${labelClass() ?? ""}`;
|
|
30419
|
+
},
|
|
30420
|
+
children: ($$anchor5, $$slotProps2) => {
|
|
30421
|
+
var fragment_2 = comment();
|
|
30422
|
+
var node_2 = first_child(fragment_2);
|
|
30423
|
+
{
|
|
30424
|
+
var consequent = ($$anchor6) => {
|
|
30425
|
+
var fragment_3 = comment();
|
|
30426
|
+
var node_3 = first_child(fragment_3);
|
|
30427
|
+
snippet(node_3, labelText);
|
|
30428
|
+
append($$anchor6, fragment_3);
|
|
30429
|
+
};
|
|
30430
|
+
if_block(node_2, ($$render) => {
|
|
30431
|
+
if (labelText()) $$render(consequent);
|
|
30432
|
+
});
|
|
30433
|
+
}
|
|
30434
|
+
append($$anchor5, fragment_2);
|
|
30424
30435
|
},
|
|
30425
|
-
children,
|
|
30426
30436
|
$$slots: { default: true }
|
|
30427
30437
|
});
|
|
30428
30438
|
});
|
|
30429
|
-
|
|
30430
|
-
|
|
30431
|
-
|
|
30432
|
-
|
|
30433
|
-
|
|
30434
|
-
var
|
|
30435
|
-
|
|
30436
|
-
|
|
30437
|
-
|
|
30438
|
-
|
|
30439
|
-
|
|
30440
|
-
|
|
30441
|
-
|
|
30442
|
-
|
|
30443
|
-
|
|
30444
|
-
|
|
30445
|
-
|
|
30446
|
-
|
|
30447
|
-
|
|
30448
|
-
|
|
30449
|
-
|
|
30450
|
-
|
|
30451
|
-
|
|
30452
|
-
DatePicker_Heading($$anchor9, { class: "go-datepicker-selected-month" });
|
|
30453
|
-
});
|
|
30454
|
-
var node_11 = sibling(node_10, 2);
|
|
30455
|
-
component(node_11, () => Calendar_next_button, ($$anchor9, DatePicker_NextButton) => {
|
|
30456
|
-
DatePicker_NextButton($$anchor9, { class: "go-datepicker-next" });
|
|
30457
|
-
});
|
|
30458
|
-
append($$anchor8, fragment_7);
|
|
30459
|
-
},
|
|
30460
|
-
$$slots: { default: true }
|
|
30461
|
-
});
|
|
30439
|
+
var node_4 = sibling(node_1, 2);
|
|
30440
|
+
{
|
|
30441
|
+
const children = ($$anchor4, $$arg0) => {
|
|
30442
|
+
let segments = () => $$arg0?.().segments;
|
|
30443
|
+
var fragment_4 = root_4$4();
|
|
30444
|
+
var node_5 = first_child(fragment_4);
|
|
30445
|
+
each(node_5, 17, segments, index$1, ($$anchor5, $$item) => {
|
|
30446
|
+
let part = () => get$2($$item).part;
|
|
30447
|
+
let value = () => get$2($$item).value;
|
|
30448
|
+
var fragment_5 = comment();
|
|
30449
|
+
var node_6 = first_child(fragment_5);
|
|
30450
|
+
component(node_6, () => Date_field_segment, ($$anchor6, DatePicker_Segment) => {
|
|
30451
|
+
DatePicker_Segment($$anchor6, {
|
|
30452
|
+
get part() {
|
|
30453
|
+
return part();
|
|
30454
|
+
},
|
|
30455
|
+
children: ($$anchor7, $$slotProps2) => {
|
|
30456
|
+
next();
|
|
30457
|
+
var text$1 = text();
|
|
30458
|
+
template_effect(() => set_text(text$1, value()));
|
|
30459
|
+
append($$anchor7, text$1);
|
|
30460
|
+
},
|
|
30461
|
+
$$slots: { default: true }
|
|
30462
30462
|
});
|
|
30463
|
-
|
|
30464
|
-
|
|
30465
|
-
|
|
30466
|
-
|
|
30467
|
-
|
|
30468
|
-
|
|
30469
|
-
|
|
30463
|
+
});
|
|
30464
|
+
append($$anchor5, fragment_5);
|
|
30465
|
+
});
|
|
30466
|
+
var node_7 = sibling(node_5, 2);
|
|
30467
|
+
component(node_7, () => Date_picker_trigger, ($$anchor5, DatePicker_Trigger) => {
|
|
30468
|
+
DatePicker_Trigger($$anchor5, { class: "go-calendar-button" });
|
|
30469
|
+
});
|
|
30470
|
+
append($$anchor4, fragment_4);
|
|
30471
|
+
};
|
|
30472
|
+
component(node_4, () => Date_field_input, ($$anchor4, DatePicker_Input) => {
|
|
30473
|
+
DatePicker_Input($$anchor4, {
|
|
30474
|
+
get class() {
|
|
30475
|
+
return `go-datepicker-input ${inputClass() ?? ""}`;
|
|
30476
|
+
},
|
|
30477
|
+
children,
|
|
30478
|
+
$$slots: { default: true }
|
|
30479
|
+
});
|
|
30480
|
+
});
|
|
30481
|
+
}
|
|
30482
|
+
var node_8 = sibling(node_4, 2);
|
|
30483
|
+
component(node_8, () => Date_picker_content, ($$anchor4, DatePicker_Content) => {
|
|
30484
|
+
DatePicker_Content($$anchor4, {
|
|
30485
|
+
children: ($$anchor5, $$slotProps2) => {
|
|
30486
|
+
var fragment_7 = comment();
|
|
30487
|
+
var node_9 = first_child(fragment_7);
|
|
30488
|
+
{
|
|
30489
|
+
const children = ($$anchor6, $$arg0) => {
|
|
30490
|
+
let months = () => $$arg0?.().months;
|
|
30491
|
+
let weekdays = () => $$arg0?.().weekdays;
|
|
30492
|
+
var fragment_8 = root_8$1();
|
|
30493
|
+
var node_10 = first_child(fragment_8);
|
|
30494
|
+
component(node_10, () => Calendar_header, ($$anchor7, DatePicker_Header) => {
|
|
30495
|
+
DatePicker_Header($$anchor7, {
|
|
30496
|
+
children: ($$anchor8, $$slotProps3) => {
|
|
30470
30497
|
var fragment_9 = root_9$2();
|
|
30471
|
-
var
|
|
30472
|
-
component(
|
|
30473
|
-
|
|
30474
|
-
children: ($$anchor11, $$slotProps4) => {
|
|
30475
|
-
var fragment_10 = comment();
|
|
30476
|
-
var node_15 = first_child(fragment_10);
|
|
30477
|
-
component(node_15, () => Calendar_grid_row, ($$anchor12, DatePicker_GridRow) => {
|
|
30478
|
-
DatePicker_GridRow($$anchor12, {
|
|
30479
|
-
children: ($$anchor13, $$slotProps5) => {
|
|
30480
|
-
var fragment_11 = comment();
|
|
30481
|
-
var node_16 = first_child(fragment_11);
|
|
30482
|
-
each(node_16, 17, weekdays, index$1, ($$anchor14, day) => {
|
|
30483
|
-
var fragment_12 = comment();
|
|
30484
|
-
var node_17 = first_child(fragment_12);
|
|
30485
|
-
component(node_17, () => Calendar_head_cell, ($$anchor15, DatePicker_HeadCell) => {
|
|
30486
|
-
DatePicker_HeadCell($$anchor15, {
|
|
30487
|
-
children: ($$anchor16, $$slotProps6) => {
|
|
30488
|
-
next();
|
|
30489
|
-
var text_1 = text();
|
|
30490
|
-
template_effect(() => set_text(text_1, get$2(day)));
|
|
30491
|
-
append($$anchor16, text_1);
|
|
30492
|
-
},
|
|
30493
|
-
$$slots: { default: true }
|
|
30494
|
-
});
|
|
30495
|
-
});
|
|
30496
|
-
append($$anchor14, fragment_12);
|
|
30497
|
-
});
|
|
30498
|
-
append($$anchor13, fragment_11);
|
|
30499
|
-
},
|
|
30500
|
-
$$slots: { default: true }
|
|
30501
|
-
});
|
|
30502
|
-
});
|
|
30503
|
-
append($$anchor11, fragment_10);
|
|
30504
|
-
},
|
|
30505
|
-
$$slots: { default: true }
|
|
30506
|
-
});
|
|
30498
|
+
var node_11 = first_child(fragment_9);
|
|
30499
|
+
component(node_11, () => Calendar_prev_button, ($$anchor9, DatePicker_PrevButton) => {
|
|
30500
|
+
DatePicker_PrevButton($$anchor9, { class: "go-datepicker-previous" });
|
|
30507
30501
|
});
|
|
30508
|
-
var
|
|
30509
|
-
component(
|
|
30510
|
-
|
|
30511
|
-
|
|
30512
|
-
|
|
30513
|
-
|
|
30514
|
-
|
|
30515
|
-
|
|
30516
|
-
|
|
30517
|
-
|
|
30518
|
-
|
|
30519
|
-
|
|
30520
|
-
|
|
30521
|
-
|
|
30522
|
-
|
|
30523
|
-
|
|
30524
|
-
|
|
30525
|
-
|
|
30526
|
-
|
|
30527
|
-
|
|
30528
|
-
|
|
30529
|
-
|
|
30530
|
-
|
|
30531
|
-
|
|
30532
|
-
|
|
30533
|
-
|
|
30534
|
-
|
|
30535
|
-
|
|
30536
|
-
|
|
30537
|
-
|
|
30538
|
-
|
|
30539
|
-
|
|
30502
|
+
var node_12 = sibling(node_11, 2);
|
|
30503
|
+
component(node_12, () => Calendar_heading, ($$anchor9, DatePicker_Heading) => {
|
|
30504
|
+
DatePicker_Heading($$anchor9, { class: "go-datepicker-selected-month" });
|
|
30505
|
+
});
|
|
30506
|
+
var node_13 = sibling(node_12, 2);
|
|
30507
|
+
component(node_13, () => Calendar_next_button, ($$anchor9, DatePicker_NextButton) => {
|
|
30508
|
+
DatePicker_NextButton($$anchor9, { class: "go-datepicker-next" });
|
|
30509
|
+
});
|
|
30510
|
+
append($$anchor8, fragment_9);
|
|
30511
|
+
},
|
|
30512
|
+
$$slots: { default: true }
|
|
30513
|
+
});
|
|
30514
|
+
});
|
|
30515
|
+
var node_14 = sibling(node_10, 2);
|
|
30516
|
+
each(node_14, 16, months, (month) => month, ($$anchor7, month) => {
|
|
30517
|
+
var fragment_10 = comment();
|
|
30518
|
+
var node_15 = first_child(fragment_10);
|
|
30519
|
+
component(node_15, () => Calendar_grid, ($$anchor8, DatePicker_Grid) => {
|
|
30520
|
+
DatePicker_Grid($$anchor8, {
|
|
30521
|
+
children: ($$anchor9, $$slotProps3) => {
|
|
30522
|
+
var fragment_11 = root_11$3();
|
|
30523
|
+
var node_16 = first_child(fragment_11);
|
|
30524
|
+
component(node_16, () => Calendar_grid_head, ($$anchor10, DatePicker_GridHead) => {
|
|
30525
|
+
DatePicker_GridHead($$anchor10, {
|
|
30526
|
+
children: ($$anchor11, $$slotProps4) => {
|
|
30527
|
+
var fragment_12 = comment();
|
|
30528
|
+
var node_17 = first_child(fragment_12);
|
|
30529
|
+
component(node_17, () => Calendar_grid_row, ($$anchor12, DatePicker_GridRow) => {
|
|
30530
|
+
DatePicker_GridRow($$anchor12, {
|
|
30531
|
+
children: ($$anchor13, $$slotProps5) => {
|
|
30532
|
+
var fragment_13 = comment();
|
|
30533
|
+
var node_18 = first_child(fragment_13);
|
|
30534
|
+
each(node_18, 17, weekdays, index$1, ($$anchor14, day) => {
|
|
30535
|
+
var fragment_14 = comment();
|
|
30536
|
+
var node_19 = first_child(fragment_14);
|
|
30537
|
+
component(node_19, () => Calendar_head_cell, ($$anchor15, DatePicker_HeadCell) => {
|
|
30538
|
+
DatePicker_HeadCell($$anchor15, {
|
|
30539
|
+
children: ($$anchor16, $$slotProps6) => {
|
|
30540
|
+
next();
|
|
30541
|
+
var text_1 = text();
|
|
30542
|
+
template_effect(() => set_text(text_1, get$2(day)));
|
|
30543
|
+
append($$anchor16, text_1);
|
|
30540
30544
|
},
|
|
30541
30545
|
$$slots: { default: true }
|
|
30542
30546
|
});
|
|
30543
30547
|
});
|
|
30544
|
-
append($$
|
|
30548
|
+
append($$anchor14, fragment_14);
|
|
30545
30549
|
});
|
|
30546
|
-
append($$
|
|
30550
|
+
append($$anchor13, fragment_13);
|
|
30547
30551
|
},
|
|
30548
30552
|
$$slots: { default: true }
|
|
30549
30553
|
});
|
|
30550
30554
|
});
|
|
30551
|
-
append($$
|
|
30552
|
-
}
|
|
30553
|
-
|
|
30554
|
-
}
|
|
30555
|
-
$$slots: { default: true }
|
|
30555
|
+
append($$anchor11, fragment_12);
|
|
30556
|
+
},
|
|
30557
|
+
$$slots: { default: true }
|
|
30558
|
+
});
|
|
30556
30559
|
});
|
|
30557
|
-
|
|
30558
|
-
|
|
30559
|
-
|
|
30560
|
-
|
|
30560
|
+
var node_20 = sibling(node_16, 2);
|
|
30561
|
+
component(node_20, () => Calendar_grid_body, ($$anchor10, DatePicker_GridBody) => {
|
|
30562
|
+
DatePicker_GridBody($$anchor10, {
|
|
30563
|
+
children: ($$anchor11, $$slotProps4) => {
|
|
30564
|
+
var fragment_16 = comment();
|
|
30565
|
+
var node_21 = first_child(fragment_16);
|
|
30566
|
+
each(node_21, 16, () => month.weeks, (weekDates) => weekDates, ($$anchor12, weekDates) => {
|
|
30567
|
+
var fragment_17 = comment();
|
|
30568
|
+
var node_22 = first_child(fragment_17);
|
|
30569
|
+
component(node_22, () => Calendar_grid_row, ($$anchor13, DatePicker_GridRow_1) => {
|
|
30570
|
+
DatePicker_GridRow_1($$anchor13, {
|
|
30571
|
+
children: ($$anchor14, $$slotProps5) => {
|
|
30572
|
+
var fragment_18 = comment();
|
|
30573
|
+
var node_23 = first_child(fragment_18);
|
|
30574
|
+
each(node_23, 16, () => weekDates, (date3) => date3, ($$anchor15, date3, $$index_2, $$array) => {
|
|
30575
|
+
var fragment_19 = comment();
|
|
30576
|
+
var node_24 = first_child(fragment_19);
|
|
30577
|
+
component(node_24, () => Calendar_cell, ($$anchor16, DatePicker_Cell) => {
|
|
30578
|
+
DatePicker_Cell($$anchor16, {
|
|
30579
|
+
get date() {
|
|
30580
|
+
return date3;
|
|
30581
|
+
},
|
|
30582
|
+
get month() {
|
|
30583
|
+
return month.value;
|
|
30584
|
+
},
|
|
30585
|
+
children: ($$anchor17, $$slotProps6) => {
|
|
30586
|
+
var fragment_20 = comment();
|
|
30587
|
+
var node_25 = first_child(fragment_20);
|
|
30588
|
+
component(node_25, () => Calendar_day, ($$anchor18, DatePicker_Day) => {
|
|
30589
|
+
DatePicker_Day($$anchor18, {});
|
|
30590
|
+
});
|
|
30591
|
+
append($$anchor17, fragment_20);
|
|
30592
|
+
},
|
|
30593
|
+
$$slots: { default: true }
|
|
30594
|
+
});
|
|
30595
|
+
});
|
|
30596
|
+
append($$anchor15, fragment_19);
|
|
30597
|
+
});
|
|
30598
|
+
append($$anchor14, fragment_18);
|
|
30599
|
+
},
|
|
30600
|
+
$$slots: { default: true }
|
|
30601
|
+
});
|
|
30602
|
+
});
|
|
30603
|
+
append($$anchor12, fragment_17);
|
|
30604
|
+
});
|
|
30605
|
+
append($$anchor11, fragment_16);
|
|
30606
|
+
},
|
|
30607
|
+
$$slots: { default: true }
|
|
30608
|
+
});
|
|
30609
|
+
});
|
|
30610
|
+
append($$anchor9, fragment_11);
|
|
30611
|
+
},
|
|
30612
|
+
$$slots: { default: true }
|
|
30613
|
+
});
|
|
30561
30614
|
});
|
|
30615
|
+
append($$anchor7, fragment_10);
|
|
30562
30616
|
});
|
|
30563
|
-
append($$
|
|
30617
|
+
append($$anchor6, fragment_8);
|
|
30618
|
+
};
|
|
30619
|
+
component(node_9, () => Date_picker_calendar, ($$anchor6, DatePicker_Calendar) => {
|
|
30620
|
+
DatePicker_Calendar($$anchor6, { children, $$slots: { default: true } });
|
|
30564
30621
|
});
|
|
30565
|
-
|
|
30566
|
-
|
|
30567
|
-
|
|
30568
|
-
|
|
30569
|
-
|
|
30570
|
-
}
|
|
30571
|
-
append($$anchor5, fragment_5);
|
|
30572
|
-
},
|
|
30573
|
-
$$slots: { default: true }
|
|
30622
|
+
}
|
|
30623
|
+
append($$anchor5, fragment_7);
|
|
30624
|
+
},
|
|
30625
|
+
$$slots: { default: true }
|
|
30626
|
+
});
|
|
30574
30627
|
});
|
|
30575
|
-
|
|
30576
|
-
|
|
30577
|
-
|
|
30578
|
-
|
|
30628
|
+
append($$anchor3, fragment_1);
|
|
30629
|
+
},
|
|
30630
|
+
$$slots: { default: true }
|
|
30631
|
+
});
|
|
30579
30632
|
});
|
|
30580
|
-
}
|
|
30633
|
+
}
|
|
30581
30634
|
append($$anchor, fragment);
|
|
30582
30635
|
return pop($$exports);
|
|
30583
30636
|
}
|
|
30584
|
-
create_custom_element(
|
|
30637
|
+
create_custom_element(
|
|
30638
|
+
DatePicker_1,
|
|
30639
|
+
{
|
|
30640
|
+
dateString: {},
|
|
30641
|
+
labelClass: {},
|
|
30642
|
+
inputClass: {},
|
|
30643
|
+
labelText: {}
|
|
30644
|
+
},
|
|
30645
|
+
[],
|
|
30646
|
+
[],
|
|
30647
|
+
{ mode: "open" }
|
|
30648
|
+
);
|
|
30585
30649
|
var root_2$6 = /* @__PURE__ */ from_html(`<span class="go-field-star" aria-hidden="true">*</span>`);
|
|
30586
30650
|
var root_1$b = /* @__PURE__ */ from_html(` <!>`, 1);
|
|
30587
30651
|
var root_3$5 = /* @__PURE__ */ from_html(`<label><!></label> <input/>`, 1);
|
|
@@ -30736,6 +30800,9 @@ function InputAndLabel($$anchor, $$props) {
|
|
|
30736
30800
|
get inputClass() {
|
|
30737
30801
|
return inputClass();
|
|
30738
30802
|
},
|
|
30803
|
+
get labelText() {
|
|
30804
|
+
return labelText;
|
|
30805
|
+
},
|
|
30739
30806
|
get dateString() {
|
|
30740
30807
|
return field().value;
|
|
30741
30808
|
},
|
|
@@ -31519,7 +31586,7 @@ customElements.define("go-init", create_custom_element(
|
|
|
31519
31586
|
function Link($$anchor, $$props) {
|
|
31520
31587
|
push($$props, true);
|
|
31521
31588
|
const to = prop($$props, "to", 7);
|
|
31522
|
-
const href = /* @__PURE__ */ user_derived(() =>
|
|
31589
|
+
const href = /* @__PURE__ */ user_derived(() => configStore.config.urls[to()]);
|
|
31523
31590
|
const a2 = wrapInElement($$props.$$host, "a");
|
|
31524
31591
|
user_effect(() => {
|
|
31525
31592
|
if (!get$2(href)) {
|
|
@@ -31531,11 +31598,11 @@ function Link($$anchor, $$props) {
|
|
|
31531
31598
|
});
|
|
31532
31599
|
a2.addEventListener("click", (e) => {
|
|
31533
31600
|
e.preventDefault();
|
|
31534
|
-
if (!
|
|
31601
|
+
if (!configStore.config.urls[to()]) {
|
|
31535
31602
|
console.warn(`[go-link] No URL found for route "${to()}". You can define it with go.config.urls.${to()} = () => 'https://example.com/my-route'`);
|
|
31536
31603
|
return;
|
|
31537
31604
|
}
|
|
31538
|
-
|
|
31605
|
+
configStore.config.navigateTo(configStore.config.urls[to()]());
|
|
31539
31606
|
});
|
|
31540
31607
|
var $$exports = {
|
|
31541
31608
|
get to() {
|
|
@@ -31574,8 +31641,8 @@ class OrderDetails {
|
|
|
31574
31641
|
return `${shop.apiUrl}/api/v4/orders/${this.order.id}/events/${item.attributes.id}.pdf?locale=${shop.locale}&token=${this.token}`;
|
|
31575
31642
|
case "Ticket":
|
|
31576
31643
|
if (item.attributes.ticket_type === "annual" && !item.attributes.is_voucher) {
|
|
31577
|
-
if (
|
|
31578
|
-
return
|
|
31644
|
+
if (configStore.config.urls.annualTicketPersonalizationList?.()) {
|
|
31645
|
+
return configStore.config.urls.annualTicketPersonalizationList(this.token);
|
|
31579
31646
|
} else {
|
|
31580
31647
|
return shop.urls?.annualTicketPersonalizationList(this.token);
|
|
31581
31648
|
}
|
|
@@ -32283,6 +32350,7 @@ async function loadEventTickets(segment) {
|
|
|
32283
32350
|
const uiTickets = initUITimeslotTickets(available, tsd.selectedTime);
|
|
32284
32351
|
segment.preCart = createCart(uiTickets);
|
|
32285
32352
|
}
|
|
32353
|
+
const TWO_HOURS_IN_MILLISECONDS = 2 * 60 * 60 * 1e3;
|
|
32286
32354
|
async function load_Events_ScaledPricesTickets(segment) {
|
|
32287
32355
|
const tsd = segment.ticketSelectionDetails;
|
|
32288
32356
|
if (!tsd) {
|
|
@@ -32324,7 +32392,9 @@ async function load_Events_ScaledPricesTickets(segment) {
|
|
|
32324
32392
|
dates = dates.filter((d) => {
|
|
32325
32393
|
const datePart = d.start_time.slice(0, 10);
|
|
32326
32394
|
const sameDay = tsd.selectedDate?.toString() == datePart;
|
|
32327
|
-
const
|
|
32395
|
+
const selectedMs = Date.parse(tsd.selectedTime);
|
|
32396
|
+
const startMs = Date.parse(d.start_time);
|
|
32397
|
+
const after = startMs >= selectedMs && startMs <= selectedMs + TWO_HOURS_IN_MILLISECONDS;
|
|
32328
32398
|
const availableSeats = (d.seats?.available ?? 0) > 0;
|
|
32329
32399
|
return sameDay && after && availableSeats;
|
|
32330
32400
|
});
|
|
@@ -32670,15 +32740,18 @@ function Item($$anchor, $$props) {
|
|
|
32670
32740
|
const scaled_title = ($$anchor2) => {
|
|
32671
32741
|
var fragment = root_1$4();
|
|
32672
32742
|
var span = first_child(fragment);
|
|
32673
|
-
var text2 = child(span
|
|
32743
|
+
var text2 = child(span);
|
|
32674
32744
|
reset(span);
|
|
32675
32745
|
var span_1 = sibling(span, 2);
|
|
32676
32746
|
var text_1 = child(span_1, true);
|
|
32677
32747
|
reset(span_1);
|
|
32678
|
-
template_effect(
|
|
32679
|
-
|
|
32680
|
-
|
|
32681
|
-
|
|
32748
|
+
template_effect(
|
|
32749
|
+
($0) => {
|
|
32750
|
+
set_text(text2, `${item().product.event_title ?? ""} - ${$0 ?? ""}`);
|
|
32751
|
+
set_text(text_1, item().product.title);
|
|
32752
|
+
},
|
|
32753
|
+
[() => formatTime(item().product.selectedTime)]
|
|
32754
|
+
);
|
|
32682
32755
|
append($$anchor2, fragment);
|
|
32683
32756
|
};
|
|
32684
32757
|
const default_title = ($$anchor2) => {
|
|
@@ -33369,8 +33442,8 @@ let Details$1 = class Details2 {
|
|
|
33369
33442
|
});
|
|
33370
33443
|
shop.cart.addItems(newItems);
|
|
33371
33444
|
preCarts.forEach((pc) => pc.items.forEach((i) => i.quantity = 0));
|
|
33372
|
-
if (
|
|
33373
|
-
|
|
33445
|
+
if (configStore.config.urls.cart) {
|
|
33446
|
+
configStore.config.navigateTo(configStore.config.urls.cart());
|
|
33374
33447
|
}
|
|
33375
33448
|
}
|
|
33376
33449
|
anyTicketsSelected() {
|
|
@@ -33507,3 +33580,29 @@ function Overview($$anchor, $$props) {
|
|
|
33507
33580
|
pop();
|
|
33508
33581
|
}
|
|
33509
33582
|
customElements.define("go-profile-overview", create_custom_element(Overview, {}, [], []));
|
|
33583
|
+
async function initGo(window2) {
|
|
33584
|
+
const stub = window2.go;
|
|
33585
|
+
let q = stub && stub._queue || [];
|
|
33586
|
+
console.log(q);
|
|
33587
|
+
for (const command of q) {
|
|
33588
|
+
try {
|
|
33589
|
+
await go[command.method](command.options);
|
|
33590
|
+
} catch (e) {
|
|
33591
|
+
console.error(e);
|
|
33592
|
+
}
|
|
33593
|
+
}
|
|
33594
|
+
window2.go = go;
|
|
33595
|
+
if (stub) stub._queue = null;
|
|
33596
|
+
}
|
|
33597
|
+
const go = {
|
|
33598
|
+
loaded: true,
|
|
33599
|
+
config: (options) => {
|
|
33600
|
+
configStore.define(options);
|
|
33601
|
+
},
|
|
33602
|
+
init: async (options) => {
|
|
33603
|
+
await shop.load("https://" + options.api, options.shop, options.locale);
|
|
33604
|
+
}
|
|
33605
|
+
};
|
|
33606
|
+
(async () => {
|
|
33607
|
+
await initGo(window);
|
|
33608
|
+
})();
|