@gomusdev/web-components 1.29.0 → 1.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-js/components/ticketSelection/subcomponents/tickets/TicketsEmpty.spec.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/TicketsEmpty.svelte.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/utils.svelte.d.ts +1 -1
- package/dist-js/factories/EventFactories.d.ts +69 -0
- package/dist-js/factories/TicketFactories.d.ts +130 -0
- package/dist-js/gomus-webcomponents.css +11 -19
- package/dist-js/gomus-webcomponents.iife.js +194 -122
- package/dist-js/gomus-webcomponents.js +194 -122
- package/dist-js/lib/models/cart/CartItem.d.ts +2 -2
- package/dist-js/lib/models/scalePrice/UIScaledPrice.svelte.d.ts +2 -17
- package/dist-js/lib/models/ticket/UITicket.svelte.d.ts +1 -0
- package/dist-js/mocks/ScalingPricesMocks.d.ts +11 -0
- package/dist-js/mocks/TicketMocks.d.ts +2 -0
- package/dist-js/mocks/mocks.d.ts +2 -34
- package/package.json +1 -1
|
@@ -10951,6 +10951,11 @@ function createUITicket(apiTicket, options) {
|
|
|
10951
10951
|
function initUITimeslotTickets(tickets, selectedTime2 = "") {
|
|
10952
10952
|
return sort(Object.values(tickets).map((ticket) => createUITicket(ticket, { selectedTime: selectedTime2 })), (f) => f.shop_order);
|
|
10953
10953
|
}
|
|
10954
|
+
function filterAvailabletickets(tickets, selectedTime2 = "") {
|
|
10955
|
+
let available = Object.entries(tickets);
|
|
10956
|
+
if (selectedTime2 !== "") available = available.filter(([, t]) => t.total_capacities?.[selectedTime2] && t.total_capacities[selectedTime2] > 0);
|
|
10957
|
+
return Object.fromEntries(available);
|
|
10958
|
+
}
|
|
10954
10959
|
const maxQuantity_Quotas = function(manager, cart, item, preCart) {
|
|
10955
10960
|
if (manager.capacityPolicy(item) !== "quotas") throw new Error("(getMaxQuantityQuotas) impossible");
|
|
10956
10961
|
if (!isUITicket(item.product)) {
|
|
@@ -10965,6 +10970,8 @@ const maxQuantity_Quotas = function(manager, cart, item, preCart) {
|
|
|
10965
10970
|
quotaManager.setPrecartItemQuantity(product.id, i.quantity);
|
|
10966
10971
|
}
|
|
10967
10972
|
}
|
|
10973
|
+
console.log("checking quotas for", p2.id, "on", p2.selectedTime);
|
|
10974
|
+
console.log("available timeslots", quotaManager.timeslots());
|
|
10968
10975
|
const cap = quotaManager.ticketCapacity(p2.id, p2.selectedTime);
|
|
10969
10976
|
const total = quotaManager.totalCapacity(p2.id, p2.selectedTime);
|
|
10970
10977
|
return {
|
|
@@ -10979,7 +10986,13 @@ function isUIEventTicket(x) {
|
|
|
10979
10986
|
}
|
|
10980
10987
|
let uuid$1 = 1;
|
|
10981
10988
|
function createUIEventTicket(apiTicket, dateId, options) {
|
|
10982
|
-
const finalOptions = {
|
|
10989
|
+
const finalOptions = {
|
|
10990
|
+
minAvailableCapacity: 0,
|
|
10991
|
+
selectedTime: "",
|
|
10992
|
+
event_title: "",
|
|
10993
|
+
...options ?? {},
|
|
10994
|
+
...apiTicket
|
|
10995
|
+
};
|
|
10983
10996
|
const product = {
|
|
10984
10997
|
product_type: "Event",
|
|
10985
10998
|
id: dateId,
|
|
@@ -12669,8 +12682,8 @@ class PersonalizationDetails {
|
|
|
12669
12682
|
}
|
|
12670
12683
|
const KEY$4 = "go-annual-ticket-personalization";
|
|
12671
12684
|
const setPersonalizationDetails = createSetDetails(KEY$4);
|
|
12672
|
-
var root_3$
|
|
12673
|
-
var root_2$
|
|
12685
|
+
var root_3$8 = /* @__PURE__ */ from_html(`<li><a>Personalize</a></li>`);
|
|
12686
|
+
var root_2$r = /* @__PURE__ */ from_html(`<ul class="go-annual-ticket"><li class="go-annual-ticket-title"> </li> <li class="go-annual-ticket-personalization-count"> </li> <!></ul>`);
|
|
12674
12687
|
function AnnualTicketPersonalization($$anchor, $$props) {
|
|
12675
12688
|
push($$props, true);
|
|
12676
12689
|
let token = prop($$props, "token", 7);
|
|
@@ -12697,7 +12710,7 @@ function AnnualTicketPersonalization($$anchor, $$props) {
|
|
|
12697
12710
|
var fragment_1 = comment();
|
|
12698
12711
|
var node_1 = first_child(fragment_1);
|
|
12699
12712
|
each(node_1, 17, () => get$2(order).ticket_sales, (ticketSale) => ticketSale.id, ($$anchor3, ticketSale) => {
|
|
12700
|
-
var ul = root_2$
|
|
12713
|
+
var ul = root_2$r();
|
|
12701
12714
|
var li = child(ul);
|
|
12702
12715
|
var text2 = child(li, true);
|
|
12703
12716
|
reset(li);
|
|
@@ -12707,7 +12720,7 @@ function AnnualTicketPersonalization($$anchor, $$props) {
|
|
|
12707
12720
|
var node_2 = sibling(li_1, 2);
|
|
12708
12721
|
{
|
|
12709
12722
|
var consequent = ($$anchor4) => {
|
|
12710
|
-
var li_2 = root_3$
|
|
12723
|
+
var li_2 = root_3$8();
|
|
12711
12724
|
var a2 = child(li_2);
|
|
12712
12725
|
reset(li_2);
|
|
12713
12726
|
template_effect(($0) => set_attribute(a2, "href", $0), [() => details.goToPersonalization(get$2(ticketSale))]);
|
|
@@ -15816,10 +15829,12 @@ customElements.define("go-sign-up", create_custom_element(
|
|
|
15816
15829
|
false
|
|
15817
15830
|
));
|
|
15818
15831
|
var root_1$g = /* @__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);
|
|
15819
|
-
var root$6 = /* @__PURE__ */ from_html(`<li data-go-cart-item-title=""><span class="go-cart-item-title" data-testid="cart-item-title"> </span> <!></li>`);
|
|
15832
|
+
var root$6 = /* @__PURE__ */ from_html(`<li data-go-cart-item-title=""><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> <!></li>`);
|
|
15820
15833
|
function Event$2($$anchor, $$props) {
|
|
15821
15834
|
push($$props, true);
|
|
15822
15835
|
let cartItem = prop($$props, "cartItem", 7);
|
|
15836
|
+
if (!isUIEventTicket(cartItem().product)) throw new Error("Product is not an event ticket");
|
|
15837
|
+
const product = cartItem().product;
|
|
15823
15838
|
var $$exports = {
|
|
15824
15839
|
get cartItem() {
|
|
15825
15840
|
return cartItem();
|
|
@@ -15831,22 +15846,27 @@ function Event$2($$anchor, $$props) {
|
|
|
15831
15846
|
};
|
|
15832
15847
|
var li = root$6();
|
|
15833
15848
|
var span = child(li);
|
|
15834
|
-
var
|
|
15849
|
+
var span_1 = child(span);
|
|
15850
|
+
var text2 = child(span_1, true);
|
|
15851
|
+
reset(span_1);
|
|
15852
|
+
var span_2 = sibling(span_1, 2);
|
|
15853
|
+
var text_1 = child(span_2, true);
|
|
15854
|
+
reset(span_2);
|
|
15835
15855
|
reset(span);
|
|
15836
15856
|
var node = sibling(span, 2);
|
|
15837
15857
|
{
|
|
15838
15858
|
var consequent = ($$anchor2) => {
|
|
15839
15859
|
var fragment = root_1$g();
|
|
15840
|
-
var
|
|
15841
|
-
var
|
|
15842
|
-
reset(
|
|
15843
|
-
var
|
|
15844
|
-
var
|
|
15845
|
-
reset(
|
|
15860
|
+
var span_3 = first_child(fragment);
|
|
15861
|
+
var text_2 = child(span_3, true);
|
|
15862
|
+
reset(span_3);
|
|
15863
|
+
var span_4 = sibling(span_3, 2);
|
|
15864
|
+
var text_3 = child(span_4, true);
|
|
15865
|
+
reset(span_4);
|
|
15846
15866
|
template_effect(
|
|
15847
15867
|
($0, $1) => {
|
|
15848
|
-
set_text(
|
|
15849
|
-
set_text(
|
|
15868
|
+
set_text(text_2, $0);
|
|
15869
|
+
set_text(text_3, $1);
|
|
15850
15870
|
},
|
|
15851
15871
|
[
|
|
15852
15872
|
() => formatDate(cartItem().time, { month: "numeric", day: "numeric" }, shop.locale),
|
|
@@ -15860,12 +15880,15 @@ function Event$2($$anchor, $$props) {
|
|
|
15860
15880
|
});
|
|
15861
15881
|
}
|
|
15862
15882
|
reset(li);
|
|
15863
|
-
template_effect(() =>
|
|
15883
|
+
template_effect(() => {
|
|
15884
|
+
set_text(text2, product.event_title);
|
|
15885
|
+
set_text(text_1, product.title);
|
|
15886
|
+
});
|
|
15864
15887
|
append($$anchor, li);
|
|
15865
15888
|
return pop($$exports);
|
|
15866
15889
|
}
|
|
15867
15890
|
create_custom_element(Event$2, { cartItem: {} }, [], [], true);
|
|
15868
|
-
var root_2$
|
|
15891
|
+
var root_2$q = /* @__PURE__ */ from_html(`<span class="go-cart-item-time" data-testid="cart-item-time"> </span>`);
|
|
15869
15892
|
var root_1$f = /* @__PURE__ */ from_html(`<span class="go-cart-item-date" data-testid="cart-item-date"> </span> <!>`, 1);
|
|
15870
15893
|
var root$5 = /* @__PURE__ */ from_html(`<li data-go-cart-item-title=""><span class="go-cart-item-title" data-testid="cart-item-title"> </span> <!></li>`);
|
|
15871
15894
|
function Ticket($$anchor, $$props) {
|
|
@@ -15894,7 +15917,7 @@ function Ticket($$anchor, $$props) {
|
|
|
15894
15917
|
var node_1 = sibling(span_1, 2);
|
|
15895
15918
|
{
|
|
15896
15919
|
var consequent = ($$anchor3) => {
|
|
15897
|
-
var span_2 = root_2$
|
|
15920
|
+
var span_2 = root_2$q();
|
|
15898
15921
|
var text_2 = child(span_2, true);
|
|
15899
15922
|
reset(span_2);
|
|
15900
15923
|
template_effect(($0) => set_text(text_2, $0), [() => formatTime(cartItem().time)]);
|
|
@@ -15919,9 +15942,9 @@ function Ticket($$anchor, $$props) {
|
|
|
15919
15942
|
return pop($$exports);
|
|
15920
15943
|
}
|
|
15921
15944
|
create_custom_element(Ticket, { cartItem: {} }, [], [], true);
|
|
15922
|
-
var root_2$
|
|
15945
|
+
var root_2$p = /* @__PURE__ */ from_html(`<li class="go-cart-header-remove" data-go-cart-header-remove=""></li>`);
|
|
15923
15946
|
var root_7$4 = /* @__PURE__ */ from_html(`<li class="go-cart-item-remove" data-go-cart-item-remove=""><button>⨉</button></li>`);
|
|
15924
|
-
var root_3$
|
|
15947
|
+
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>`);
|
|
15925
15948
|
var root_8$1 = /* @__PURE__ */ from_html(`<li class="go-cart-footer-remove" data-go-cart-footer-remove=""></li>`);
|
|
15926
15949
|
var root_1$e = /* @__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>`);
|
|
15927
15950
|
function Cart($$anchor, $$props) {
|
|
@@ -15956,7 +15979,7 @@ function Cart($$anchor, $$props) {
|
|
|
15956
15979
|
var node_1 = sibling(li_3, 2);
|
|
15957
15980
|
{
|
|
15958
15981
|
var consequent = ($$anchor3) => {
|
|
15959
|
-
var li_4 = root_2$
|
|
15982
|
+
var li_4 = root_2$p();
|
|
15960
15983
|
append($$anchor3, li_4);
|
|
15961
15984
|
};
|
|
15962
15985
|
if_block(node_1, ($$render) => {
|
|
@@ -15970,7 +15993,7 @@ function Cart($$anchor, $$props) {
|
|
|
15970
15993
|
reset(li);
|
|
15971
15994
|
var node_2 = sibling(li, 2);
|
|
15972
15995
|
each(node_2, 17, () => get$2(cart).items, (cartItem) => cartItem.uuid, ($$anchor3, cartItem) => {
|
|
15973
|
-
var li_6 = root_3$
|
|
15996
|
+
var li_6 = root_3$7();
|
|
15974
15997
|
var article = child(li_6);
|
|
15975
15998
|
var ul_1 = child(article);
|
|
15976
15999
|
var node_3 = child(ul_1);
|
|
@@ -15996,7 +16019,7 @@ function Cart($$anchor, $$props) {
|
|
|
15996
16019
|
if_block(
|
|
15997
16020
|
node_4,
|
|
15998
16021
|
($$render) => {
|
|
15999
|
-
if (get$2(cartItem).product.product_type
|
|
16022
|
+
if (get$2(cartItem).product.product_type === "Event") $$render(consequent_2);
|
|
16000
16023
|
},
|
|
16001
16024
|
true
|
|
16002
16025
|
);
|
|
@@ -16004,7 +16027,7 @@ function Cart($$anchor, $$props) {
|
|
|
16004
16027
|
append($$anchor4, fragment_2);
|
|
16005
16028
|
};
|
|
16006
16029
|
if_block(node_3, ($$render) => {
|
|
16007
|
-
if (get$2(cartItem).product.product_type
|
|
16030
|
+
if (get$2(cartItem).product.product_type === "Ticket") $$render(consequent_1);
|
|
16008
16031
|
else $$render(alternate, false);
|
|
16009
16032
|
});
|
|
16010
16033
|
}
|
|
@@ -21012,7 +21035,7 @@ class CalendarHeaderState {
|
|
|
21012
21035
|
set(this.#props, value);
|
|
21013
21036
|
}
|
|
21014
21037
|
}
|
|
21015
|
-
var root_2$
|
|
21038
|
+
var root_2$o = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
21016
21039
|
function Calendar$1($$anchor, $$props) {
|
|
21017
21040
|
push($$props, true);
|
|
21018
21041
|
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, [
|
|
@@ -21311,7 +21334,7 @@ function Calendar$1($$anchor, $$props) {
|
|
|
21311
21334
|
append($$anchor2, fragment_1);
|
|
21312
21335
|
};
|
|
21313
21336
|
var alternate = ($$anchor2) => {
|
|
21314
|
-
var div = root_2$
|
|
21337
|
+
var div = root_2$o();
|
|
21315
21338
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
21316
21339
|
var node_2 = child(div);
|
|
21317
21340
|
snippet(node_2, () => children() ?? noop$1, () => rootState.snippetProps);
|
|
@@ -21362,7 +21385,7 @@ create_custom_element(
|
|
|
21362
21385
|
[],
|
|
21363
21386
|
true
|
|
21364
21387
|
);
|
|
21365
|
-
var root_2$
|
|
21388
|
+
var root_2$n = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
21366
21389
|
function Calendar_day($$anchor, $$props) {
|
|
21367
21390
|
const uid = props_id();
|
|
21368
21391
|
push($$props, true);
|
|
@@ -21424,7 +21447,7 @@ function Calendar_day($$anchor, $$props) {
|
|
|
21424
21447
|
append($$anchor2, fragment_1);
|
|
21425
21448
|
};
|
|
21426
21449
|
var alternate_1 = ($$anchor2) => {
|
|
21427
|
-
var div = root_2$
|
|
21450
|
+
var div = root_2$n();
|
|
21428
21451
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
21429
21452
|
var node_2 = child(div);
|
|
21430
21453
|
{
|
|
@@ -21456,7 +21479,7 @@ function Calendar_day($$anchor, $$props) {
|
|
|
21456
21479
|
return pop($$exports);
|
|
21457
21480
|
}
|
|
21458
21481
|
create_custom_element(Calendar_day, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
|
|
21459
|
-
var root_2$
|
|
21482
|
+
var root_2$m = /* @__PURE__ */ from_html(`<table><!></table>`);
|
|
21460
21483
|
function Calendar_grid($$anchor, $$props) {
|
|
21461
21484
|
const uid = props_id();
|
|
21462
21485
|
push($$props, true);
|
|
@@ -21515,7 +21538,7 @@ function Calendar_grid($$anchor, $$props) {
|
|
|
21515
21538
|
append($$anchor2, fragment_1);
|
|
21516
21539
|
};
|
|
21517
21540
|
var alternate = ($$anchor2) => {
|
|
21518
|
-
var table = root_2$
|
|
21541
|
+
var table = root_2$m();
|
|
21519
21542
|
attribute_effect(table, () => ({ ...get$2(mergedProps) }));
|
|
21520
21543
|
var node_2 = child(table);
|
|
21521
21544
|
snippet(node_2, () => children() ?? noop$1);
|
|
@@ -21531,7 +21554,7 @@ function Calendar_grid($$anchor, $$props) {
|
|
|
21531
21554
|
return pop($$exports);
|
|
21532
21555
|
}
|
|
21533
21556
|
create_custom_element(Calendar_grid, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
|
|
21534
|
-
var root_2$
|
|
21557
|
+
var root_2$l = /* @__PURE__ */ from_html(`<tbody><!></tbody>`);
|
|
21535
21558
|
function Calendar_grid_body($$anchor, $$props) {
|
|
21536
21559
|
const uid = props_id();
|
|
21537
21560
|
push($$props, true);
|
|
@@ -21590,7 +21613,7 @@ function Calendar_grid_body($$anchor, $$props) {
|
|
|
21590
21613
|
append($$anchor2, fragment_1);
|
|
21591
21614
|
};
|
|
21592
21615
|
var alternate = ($$anchor2) => {
|
|
21593
|
-
var tbody = root_2$
|
|
21616
|
+
var tbody = root_2$l();
|
|
21594
21617
|
attribute_effect(tbody, () => ({ ...get$2(mergedProps) }));
|
|
21595
21618
|
var node_2 = child(tbody);
|
|
21596
21619
|
snippet(node_2, () => children() ?? noop$1);
|
|
@@ -21606,7 +21629,7 @@ function Calendar_grid_body($$anchor, $$props) {
|
|
|
21606
21629
|
return pop($$exports);
|
|
21607
21630
|
}
|
|
21608
21631
|
create_custom_element(Calendar_grid_body, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
|
|
21609
|
-
var root_2$
|
|
21632
|
+
var root_2$k = /* @__PURE__ */ from_html(`<td><!></td>`);
|
|
21610
21633
|
function Calendar_cell($$anchor, $$props) {
|
|
21611
21634
|
const uid = props_id();
|
|
21612
21635
|
push($$props, true);
|
|
@@ -21686,7 +21709,7 @@ function Calendar_cell($$anchor, $$props) {
|
|
|
21686
21709
|
append($$anchor2, fragment_1);
|
|
21687
21710
|
};
|
|
21688
21711
|
var alternate = ($$anchor2) => {
|
|
21689
|
-
var td = root_2$
|
|
21712
|
+
var td = root_2$k();
|
|
21690
21713
|
attribute_effect(td, () => ({ ...get$2(mergedProps) }));
|
|
21691
21714
|
var node_2 = child(td);
|
|
21692
21715
|
snippet(node_2, () => children() ?? noop$1, () => cellState.snippetProps);
|
|
@@ -21715,7 +21738,7 @@ create_custom_element(
|
|
|
21715
21738
|
[],
|
|
21716
21739
|
true
|
|
21717
21740
|
);
|
|
21718
|
-
var root_2$
|
|
21741
|
+
var root_2$j = /* @__PURE__ */ from_html(`<thead><!></thead>`);
|
|
21719
21742
|
function Calendar_grid_head($$anchor, $$props) {
|
|
21720
21743
|
const uid = props_id();
|
|
21721
21744
|
push($$props, true);
|
|
@@ -21774,7 +21797,7 @@ function Calendar_grid_head($$anchor, $$props) {
|
|
|
21774
21797
|
append($$anchor2, fragment_1);
|
|
21775
21798
|
};
|
|
21776
21799
|
var alternate = ($$anchor2) => {
|
|
21777
|
-
var thead = root_2$
|
|
21800
|
+
var thead = root_2$j();
|
|
21778
21801
|
attribute_effect(thead, () => ({ ...get$2(mergedProps) }));
|
|
21779
21802
|
var node_2 = child(thead);
|
|
21780
21803
|
snippet(node_2, () => children() ?? noop$1);
|
|
@@ -21790,7 +21813,7 @@ function Calendar_grid_head($$anchor, $$props) {
|
|
|
21790
21813
|
return pop($$exports);
|
|
21791
21814
|
}
|
|
21792
21815
|
create_custom_element(Calendar_grid_head, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
|
|
21793
|
-
var root_2$
|
|
21816
|
+
var root_2$i = /* @__PURE__ */ from_html(`<th><!></th>`);
|
|
21794
21817
|
function Calendar_head_cell($$anchor, $$props) {
|
|
21795
21818
|
const uid = props_id();
|
|
21796
21819
|
push($$props, true);
|
|
@@ -21849,7 +21872,7 @@ function Calendar_head_cell($$anchor, $$props) {
|
|
|
21849
21872
|
append($$anchor2, fragment_1);
|
|
21850
21873
|
};
|
|
21851
21874
|
var alternate = ($$anchor2) => {
|
|
21852
|
-
var th = root_2$
|
|
21875
|
+
var th = root_2$i();
|
|
21853
21876
|
attribute_effect(th, () => ({ ...get$2(mergedProps) }));
|
|
21854
21877
|
var node_2 = child(th);
|
|
21855
21878
|
snippet(node_2, () => children() ?? noop$1);
|
|
@@ -21865,7 +21888,7 @@ function Calendar_head_cell($$anchor, $$props) {
|
|
|
21865
21888
|
return pop($$exports);
|
|
21866
21889
|
}
|
|
21867
21890
|
create_custom_element(Calendar_head_cell, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
|
|
21868
|
-
var root_2$
|
|
21891
|
+
var root_2$h = /* @__PURE__ */ from_html(`<tr><!></tr>`);
|
|
21869
21892
|
function Calendar_grid_row($$anchor, $$props) {
|
|
21870
21893
|
const uid = props_id();
|
|
21871
21894
|
push($$props, true);
|
|
@@ -21924,7 +21947,7 @@ function Calendar_grid_row($$anchor, $$props) {
|
|
|
21924
21947
|
append($$anchor2, fragment_1);
|
|
21925
21948
|
};
|
|
21926
21949
|
var alternate = ($$anchor2) => {
|
|
21927
|
-
var tr = root_2$
|
|
21950
|
+
var tr = root_2$h();
|
|
21928
21951
|
attribute_effect(tr, () => ({ ...get$2(mergedProps) }));
|
|
21929
21952
|
var node_2 = child(tr);
|
|
21930
21953
|
snippet(node_2, () => children() ?? noop$1);
|
|
@@ -21940,7 +21963,7 @@ function Calendar_grid_row($$anchor, $$props) {
|
|
|
21940
21963
|
return pop($$exports);
|
|
21941
21964
|
}
|
|
21942
21965
|
create_custom_element(Calendar_grid_row, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
|
|
21943
|
-
var root_2$
|
|
21966
|
+
var root_2$g = /* @__PURE__ */ from_html(`<header><!></header>`);
|
|
21944
21967
|
function Calendar_header($$anchor, $$props) {
|
|
21945
21968
|
const uid = props_id();
|
|
21946
21969
|
push($$props, true);
|
|
@@ -21999,7 +22022,7 @@ function Calendar_header($$anchor, $$props) {
|
|
|
21999
22022
|
append($$anchor2, fragment_1);
|
|
22000
22023
|
};
|
|
22001
22024
|
var alternate = ($$anchor2) => {
|
|
22002
|
-
var header = root_2$
|
|
22025
|
+
var header = root_2$g();
|
|
22003
22026
|
attribute_effect(header, () => ({ ...get$2(mergedProps) }));
|
|
22004
22027
|
var node_2 = child(header);
|
|
22005
22028
|
snippet(node_2, () => children() ?? noop$1);
|
|
@@ -22015,7 +22038,7 @@ function Calendar_header($$anchor, $$props) {
|
|
|
22015
22038
|
return pop($$exports);
|
|
22016
22039
|
}
|
|
22017
22040
|
create_custom_element(Calendar_header, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
|
|
22018
|
-
var root_2$
|
|
22041
|
+
var root_2$f = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
22019
22042
|
function Calendar_heading($$anchor, $$props) {
|
|
22020
22043
|
const uid = props_id();
|
|
22021
22044
|
push($$props, true);
|
|
@@ -22077,7 +22100,7 @@ function Calendar_heading($$anchor, $$props) {
|
|
|
22077
22100
|
append($$anchor2, fragment_1);
|
|
22078
22101
|
};
|
|
22079
22102
|
var alternate_1 = ($$anchor2) => {
|
|
22080
|
-
var div = root_2$
|
|
22103
|
+
var div = root_2$f();
|
|
22081
22104
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
22082
22105
|
var node_2 = child(div);
|
|
22083
22106
|
{
|
|
@@ -22109,7 +22132,7 @@ function Calendar_heading($$anchor, $$props) {
|
|
|
22109
22132
|
return pop($$exports);
|
|
22110
22133
|
}
|
|
22111
22134
|
create_custom_element(Calendar_heading, { children: {}, child: {}, ref: {}, id: {} }, [], [], true);
|
|
22112
|
-
var root_2$
|
|
22135
|
+
var root_2$e = /* @__PURE__ */ from_html(`<button><!></button>`);
|
|
22113
22136
|
function Calendar_next_button($$anchor, $$props) {
|
|
22114
22137
|
const uid = props_id();
|
|
22115
22138
|
push($$props, true);
|
|
@@ -22176,7 +22199,7 @@ function Calendar_next_button($$anchor, $$props) {
|
|
|
22176
22199
|
append($$anchor2, fragment_1);
|
|
22177
22200
|
};
|
|
22178
22201
|
var alternate = ($$anchor2) => {
|
|
22179
|
-
var button = root_2$
|
|
22202
|
+
var button = root_2$e();
|
|
22180
22203
|
attribute_effect(button, () => ({ ...get$2(mergedProps) }));
|
|
22181
22204
|
var node_2 = child(button);
|
|
22182
22205
|
snippet(node_2, () => children() ?? noop$1);
|
|
@@ -22192,7 +22215,7 @@ function Calendar_next_button($$anchor, $$props) {
|
|
|
22192
22215
|
return pop($$exports);
|
|
22193
22216
|
}
|
|
22194
22217
|
create_custom_element(Calendar_next_button, { children: {}, child: {}, id: {}, ref: {}, tabindex: {} }, [], [], true);
|
|
22195
|
-
var root_2$
|
|
22218
|
+
var root_2$d = /* @__PURE__ */ from_html(`<button><!></button>`);
|
|
22196
22219
|
function Calendar_prev_button($$anchor, $$props) {
|
|
22197
22220
|
const uid = props_id();
|
|
22198
22221
|
push($$props, true);
|
|
@@ -22259,7 +22282,7 @@ function Calendar_prev_button($$anchor, $$props) {
|
|
|
22259
22282
|
append($$anchor2, fragment_1);
|
|
22260
22283
|
};
|
|
22261
22284
|
var alternate = ($$anchor2) => {
|
|
22262
|
-
var button = root_2$
|
|
22285
|
+
var button = root_2$d();
|
|
22263
22286
|
attribute_effect(button, () => ({ ...get$2(mergedProps) }));
|
|
22264
22287
|
var node_2 = child(button);
|
|
22265
22288
|
snippet(node_2, () => children() ?? noop$1);
|
|
@@ -22277,7 +22300,7 @@ function Calendar_prev_button($$anchor, $$props) {
|
|
|
22277
22300
|
create_custom_element(Calendar_prev_button, { children: {}, child: {}, id: {}, ref: {}, tabindex: {} }, [], [], true);
|
|
22278
22301
|
enable_legacy_mode_flag();
|
|
22279
22302
|
var root_1$d = /* @__PURE__ */ from_html(`<input/>`);
|
|
22280
|
-
var root_2$
|
|
22303
|
+
var root_2$c = /* @__PURE__ */ from_html(`<input/>`);
|
|
22281
22304
|
function Hidden_input($$anchor, $$props) {
|
|
22282
22305
|
push($$props, true);
|
|
22283
22306
|
let value = prop($$props, "value", 15), restProps = /* @__PURE__ */ rest_props($$props, ["$$slots", "$$events", "$$legacy", "$$host", "value"]);
|
|
@@ -22304,7 +22327,7 @@ function Hidden_input($$anchor, $$props) {
|
|
|
22304
22327
|
append($$anchor2, input);
|
|
22305
22328
|
};
|
|
22306
22329
|
var alternate = ($$anchor2) => {
|
|
22307
|
-
var input_1 = root_2$
|
|
22330
|
+
var input_1 = root_2$c();
|
|
22308
22331
|
attribute_effect(input_1, () => ({ ...get$2(mergedProps) }), void 0, void 0, void 0, void 0, true);
|
|
22309
22332
|
bind_value(input_1, value);
|
|
22310
22333
|
append($$anchor2, input_1);
|
|
@@ -27512,7 +27535,7 @@ function Date_field_hidden_input($$anchor, $$props) {
|
|
|
27512
27535
|
pop();
|
|
27513
27536
|
}
|
|
27514
27537
|
create_custom_element(Date_field_hidden_input, {}, [], [], true);
|
|
27515
|
-
var root_2$
|
|
27538
|
+
var root_2$b = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
27516
27539
|
var root$4 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
|
|
27517
27540
|
function Date_field_input($$anchor, $$props) {
|
|
27518
27541
|
const uid = props_id();
|
|
@@ -27584,7 +27607,7 @@ function Date_field_input($$anchor, $$props) {
|
|
|
27584
27607
|
append($$anchor2, fragment_1);
|
|
27585
27608
|
};
|
|
27586
27609
|
var alternate = ($$anchor2) => {
|
|
27587
|
-
var div = root_2$
|
|
27610
|
+
var div = root_2$b();
|
|
27588
27611
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
27589
27612
|
var node_2 = child(div);
|
|
27590
27613
|
snippet(node_2, () => children() ?? noop$1, () => ({ segments: inputState.root.segmentContents }));
|
|
@@ -27602,7 +27625,7 @@ function Date_field_input($$anchor, $$props) {
|
|
|
27602
27625
|
return pop($$exports);
|
|
27603
27626
|
}
|
|
27604
27627
|
create_custom_element(Date_field_input, { id: {}, ref: {}, name: {}, children: {}, child: {} }, [], [], true);
|
|
27605
|
-
var root_2$
|
|
27628
|
+
var root_2$a = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
27606
27629
|
function Date_field_label($$anchor, $$props) {
|
|
27607
27630
|
const uid = props_id();
|
|
27608
27631
|
push($$props, true);
|
|
@@ -27661,7 +27684,7 @@ function Date_field_label($$anchor, $$props) {
|
|
|
27661
27684
|
append($$anchor2, fragment_1);
|
|
27662
27685
|
};
|
|
27663
27686
|
var alternate = ($$anchor2) => {
|
|
27664
|
-
var div = root_2$
|
|
27687
|
+
var div = root_2$a();
|
|
27665
27688
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
27666
27689
|
var node_2 = child(div);
|
|
27667
27690
|
snippet(node_2, () => children() ?? noop$1);
|
|
@@ -27677,7 +27700,7 @@ function Date_field_label($$anchor, $$props) {
|
|
|
27677
27700
|
return pop($$exports);
|
|
27678
27701
|
}
|
|
27679
27702
|
create_custom_element(Date_field_label, { id: {}, ref: {}, children: {}, child: {} }, [], [], true);
|
|
27680
|
-
var root_2$
|
|
27703
|
+
var root_2$9 = /* @__PURE__ */ from_html(`<span><!></span>`);
|
|
27681
27704
|
function Date_field_segment($$anchor, $$props) {
|
|
27682
27705
|
const uid = props_id();
|
|
27683
27706
|
push($$props, true);
|
|
@@ -27744,7 +27767,7 @@ function Date_field_segment($$anchor, $$props) {
|
|
|
27744
27767
|
append($$anchor2, fragment_1);
|
|
27745
27768
|
};
|
|
27746
27769
|
var alternate = ($$anchor2) => {
|
|
27747
|
-
var span = root_2$
|
|
27770
|
+
var span = root_2$9();
|
|
27748
27771
|
attribute_effect(span, () => ({ ...get$2(mergedProps) }));
|
|
27749
27772
|
var node_2 = child(span);
|
|
27750
27773
|
snippet(node_2, () => children() ?? noop$1);
|
|
@@ -28319,7 +28342,7 @@ create_custom_element(
|
|
|
28319
28342
|
[],
|
|
28320
28343
|
true
|
|
28321
28344
|
);
|
|
28322
|
-
var root_2$
|
|
28345
|
+
var root_2$8 = /* @__PURE__ */ from_html(`<div><!></div>`);
|
|
28323
28346
|
function Date_picker_calendar($$anchor, $$props) {
|
|
28324
28347
|
const uid = props_id();
|
|
28325
28348
|
push($$props, true);
|
|
@@ -28406,7 +28429,7 @@ function Date_picker_calendar($$anchor, $$props) {
|
|
|
28406
28429
|
append($$anchor2, fragment_1);
|
|
28407
28430
|
};
|
|
28408
28431
|
var alternate = ($$anchor2) => {
|
|
28409
|
-
var div = root_2$
|
|
28432
|
+
var div = root_2$8();
|
|
28410
28433
|
attribute_effect(div, () => ({ ...get$2(mergedProps) }));
|
|
28411
28434
|
var node_2 = child(div);
|
|
28412
28435
|
snippet(node_2, () => children() ?? noop$1, () => calendarState.snippetProps);
|
|
@@ -28422,7 +28445,7 @@ function Date_picker_calendar($$anchor, $$props) {
|
|
|
28422
28445
|
return pop($$exports);
|
|
28423
28446
|
}
|
|
28424
28447
|
create_custom_element(Date_picker_calendar, { children: {}, child: {}, id: {}, ref: {} }, [], [], true);
|
|
28425
|
-
var root_4$
|
|
28448
|
+
var root_4$4 = /* @__PURE__ */ from_html(`<div><div><!></div></div>`);
|
|
28426
28449
|
var root_9$3 = /* @__PURE__ */ from_html(`<div><div><!></div></div>`);
|
|
28427
28450
|
function Popover_content($$anchor, $$props) {
|
|
28428
28451
|
const uid = props_id();
|
|
@@ -28557,7 +28580,7 @@ function Popover_content($$anchor, $$props) {
|
|
|
28557
28580
|
append($$anchor4, fragment_3);
|
|
28558
28581
|
};
|
|
28559
28582
|
var alternate = ($$anchor4) => {
|
|
28560
|
-
var div = root_4$
|
|
28583
|
+
var div = root_4$4();
|
|
28561
28584
|
attribute_effect(div, () => ({ ...wrapperProps() }));
|
|
28562
28585
|
var div_1 = child(div);
|
|
28563
28586
|
attribute_effect(div_1, () => ({ ...get$2(finalProps) }));
|
|
@@ -28757,7 +28780,7 @@ function Date_picker_content($$anchor, $$props) {
|
|
|
28757
28780
|
return pop($$exports);
|
|
28758
28781
|
}
|
|
28759
28782
|
create_custom_element(Date_picker_content, { ref: {}, onOpenAutoFocus: {} }, [], [], true);
|
|
28760
|
-
var root_3$
|
|
28783
|
+
var root_3$6 = /* @__PURE__ */ from_html(`<button><!></button>`);
|
|
28761
28784
|
function Popover_trigger($$anchor, $$props) {
|
|
28762
28785
|
const uid = props_id();
|
|
28763
28786
|
push($$props, true);
|
|
@@ -28841,7 +28864,7 @@ function Popover_trigger($$anchor, $$props) {
|
|
|
28841
28864
|
append($$anchor3, fragment_2);
|
|
28842
28865
|
};
|
|
28843
28866
|
var alternate = ($$anchor3) => {
|
|
28844
|
-
var button = root_3$
|
|
28867
|
+
var button = root_3$6();
|
|
28845
28868
|
attribute_effect(button, () => ({ ...get$2(mergedProps) }));
|
|
28846
28869
|
var node_2 = child(button);
|
|
28847
28870
|
snippet(node_2, () => children() ?? noop$1);
|
|
@@ -28919,7 +28942,7 @@ function Date_picker_trigger($$anchor, $$props) {
|
|
|
28919
28942
|
return pop($$exports);
|
|
28920
28943
|
}
|
|
28921
28944
|
create_custom_element(Date_picker_trigger, { ref: {}, onkeydown: {} }, [], [], true);
|
|
28922
|
-
var root_2$
|
|
28945
|
+
var root_2$7 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
|
|
28923
28946
|
var root_7$3 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
|
|
28924
28947
|
var root_9$2 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
|
|
28925
28948
|
var root_6$2 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
|
|
@@ -28978,7 +29001,7 @@ function DatePicker_1($$anchor, $$props) {
|
|
|
28978
29001
|
{
|
|
28979
29002
|
const children = ($$anchor4, $$arg0) => {
|
|
28980
29003
|
let segments = () => $$arg0?.().segments;
|
|
28981
|
-
var fragment_2 = root_2$
|
|
29004
|
+
var fragment_2 = root_2$7();
|
|
28982
29005
|
var node_3 = first_child(fragment_2);
|
|
28983
29006
|
each(node_3, 17, segments, index$1, ($$anchor5, $$item) => {
|
|
28984
29007
|
let part = () => get$2($$item).part;
|
|
@@ -29172,10 +29195,10 @@ function DatePicker_1($$anchor, $$props) {
|
|
|
29172
29195
|
return pop($$exports);
|
|
29173
29196
|
}
|
|
29174
29197
|
create_custom_element(DatePicker_1, { dateString: {}, labelClass: {}, inputClass: {} }, [], [], true);
|
|
29175
|
-
var root_2$
|
|
29198
|
+
var root_2$6 = /* @__PURE__ */ from_html(`<span class="go-field-star" aria-hidden="true">*</span>`);
|
|
29176
29199
|
var root_1$a = /* @__PURE__ */ from_html(` <!>`, 1);
|
|
29177
|
-
var root_3$
|
|
29178
|
-
var root_4$
|
|
29200
|
+
var root_3$5 = /* @__PURE__ */ from_html(`<label><!></label> <input/>`, 1);
|
|
29201
|
+
var root_4$3 = /* @__PURE__ */ from_html(`<label><input/> <span class="go-checkbox-label"><!></span></label>`);
|
|
29179
29202
|
var root_7$2 = /* @__PURE__ */ from_html(`<option> </option>`);
|
|
29180
29203
|
var root_6$1 = /* @__PURE__ */ from_html(`<option disabled hidden="" selected> </option> <!>`, 1);
|
|
29181
29204
|
var root_5$1 = /* @__PURE__ */ from_html(`<label><!></label> <select><!></select>`, 1);
|
|
@@ -29190,7 +29213,7 @@ function InputAndLabel($$anchor, $$props) {
|
|
|
29190
29213
|
var node = sibling(text2);
|
|
29191
29214
|
{
|
|
29192
29215
|
var consequent = ($$anchor3) => {
|
|
29193
|
-
var span = root_2$
|
|
29216
|
+
var span = root_2$6();
|
|
29194
29217
|
append($$anchor3, span);
|
|
29195
29218
|
};
|
|
29196
29219
|
if_block(node, ($$render) => {
|
|
@@ -29201,7 +29224,7 @@ function InputAndLabel($$anchor, $$props) {
|
|
|
29201
29224
|
append($$anchor2, fragment);
|
|
29202
29225
|
};
|
|
29203
29226
|
const input = ($$anchor2) => {
|
|
29204
|
-
var fragment_1 = root_3$
|
|
29227
|
+
var fragment_1 = root_3$5();
|
|
29205
29228
|
var label_1 = first_child(fragment_1);
|
|
29206
29229
|
var node_1 = child(label_1);
|
|
29207
29230
|
labelText(node_1);
|
|
@@ -29231,7 +29254,7 @@ function InputAndLabel($$anchor, $$props) {
|
|
|
29231
29254
|
append($$anchor2, fragment_1);
|
|
29232
29255
|
};
|
|
29233
29256
|
const checkbox = ($$anchor2) => {
|
|
29234
|
-
var label_2 = root_4$
|
|
29257
|
+
var label_2 = root_4$3();
|
|
29235
29258
|
var input_2 = child(label_2);
|
|
29236
29259
|
var event_handler = (e) => field(field().value = e.target.checked, true);
|
|
29237
29260
|
attribute_effect(
|
|
@@ -29485,8 +29508,8 @@ create_custom_element(
|
|
|
29485
29508
|
true
|
|
29486
29509
|
);
|
|
29487
29510
|
var root_1$9 = /* @__PURE__ */ from_html(`<span> </span>`);
|
|
29488
|
-
var root_3$
|
|
29489
|
-
var root_2$
|
|
29511
|
+
var root_3$4 = /* @__PURE__ */ from_html(`<li> </li>`);
|
|
29512
|
+
var root_2$5 = /* @__PURE__ */ from_html(`<ul class="go-field-errors" role="alert"></ul>`);
|
|
29490
29513
|
var root$3 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
|
|
29491
29514
|
function Field($$anchor, $$props) {
|
|
29492
29515
|
push($$props, true);
|
|
@@ -29585,9 +29608,9 @@ function Field($$anchor, $$props) {
|
|
|
29585
29608
|
var node_2 = sibling(node_1, 2);
|
|
29586
29609
|
{
|
|
29587
29610
|
var consequent_1 = ($$anchor2) => {
|
|
29588
|
-
var ul = root_2$
|
|
29611
|
+
var ul = root_2$5();
|
|
29589
29612
|
each(ul, 21, () => get$2(allErrors), index$1, ($$anchor3, error) => {
|
|
29590
|
-
var li = root_3$
|
|
29613
|
+
var li = root_3$4();
|
|
29591
29614
|
var text_1 = child(li, true);
|
|
29592
29615
|
reset(li);
|
|
29593
29616
|
template_effect(() => set_text(text_1, get$2(error)));
|
|
@@ -29634,9 +29657,9 @@ function AllFields($$anchor, $$props) {
|
|
|
29634
29657
|
pop();
|
|
29635
29658
|
}
|
|
29636
29659
|
customElements.define("go-all-fields", create_custom_element(AllFields, {}, [], [], false));
|
|
29637
|
-
var root_2$
|
|
29638
|
-
var root_4$
|
|
29639
|
-
var root_3$
|
|
29660
|
+
var root_2$4 = /* @__PURE__ */ from_html(`<p aria-live="assertive" class="sr-only"> </p>`);
|
|
29661
|
+
var root_4$2 = /* @__PURE__ */ from_html(`<li> </li>`);
|
|
29662
|
+
var root_3$3 = /* @__PURE__ */ from_html(`<ul class="go-error-feedback-api-errors"></ul>`);
|
|
29640
29663
|
var root_5 = /* @__PURE__ */ from_html(`<p aria-hidden="true"> </p>`);
|
|
29641
29664
|
var root_1$7 = /* @__PURE__ */ from_html(`<div><!> <!> <!></div>`);
|
|
29642
29665
|
function ErrorsFeedback($$anchor, $$props) {
|
|
@@ -29666,7 +29689,7 @@ function ErrorsFeedback($$anchor, $$props) {
|
|
|
29666
29689
|
var node_1 = child(div);
|
|
29667
29690
|
{
|
|
29668
29691
|
var consequent = ($$anchor3) => {
|
|
29669
|
-
var p2 = root_2$
|
|
29692
|
+
var p2 = root_2$4();
|
|
29670
29693
|
var text2 = child(p2, true);
|
|
29671
29694
|
reset(p2);
|
|
29672
29695
|
template_effect(($0) => set_text(text2, $0), [
|
|
@@ -29681,9 +29704,9 @@ function ErrorsFeedback($$anchor, $$props) {
|
|
|
29681
29704
|
var node_2 = sibling(node_1, 2);
|
|
29682
29705
|
{
|
|
29683
29706
|
var consequent_1 = ($$anchor3) => {
|
|
29684
|
-
var ul = root_3$
|
|
29707
|
+
var ul = root_3$3();
|
|
29685
29708
|
each(ul, 21, () => get$2(details)?.apiErrors, index$1, ($$anchor4, error) => {
|
|
29686
|
-
var li = root_4$
|
|
29709
|
+
var li = root_4$2();
|
|
29687
29710
|
var text_1 = child(li, true);
|
|
29688
29711
|
reset(li);
|
|
29689
29712
|
template_effect(() => set_text(text_1, get$2(error)));
|
|
@@ -30159,7 +30182,7 @@ function Order($$anchor, $$props) {
|
|
|
30159
30182
|
}
|
|
30160
30183
|
customElements.define("go-order", create_custom_element(Order, { token: { attribute: "token", reflect: true, type: "String" } }, [], ["orderDetails"], false));
|
|
30161
30184
|
var root_1$5 = /* @__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);
|
|
30162
|
-
var root_2$
|
|
30185
|
+
var root_2$3 = /* @__PURE__ */ from_html(`<br/> <span class="go-order-item-quantities"> </span>`, 1);
|
|
30163
30186
|
var root$1 = /* @__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">Download</a></li> <li class="go-order-breakdown-item-price"> </li> <li class="go-order-breakdown-passbook"></li></ul></article></li>`);
|
|
30164
30187
|
function Event$1($$anchor, $$props) {
|
|
30165
30188
|
push($$props, true);
|
|
@@ -30215,7 +30238,7 @@ function Event$1($$anchor, $$props) {
|
|
|
30215
30238
|
}
|
|
30216
30239
|
var node_1 = sibling(node, 2);
|
|
30217
30240
|
each(node_1, 17, () => item().attributes.quantities, index$1, ($$anchor2, scalePrice) => {
|
|
30218
|
-
var fragment_1 = root_2$
|
|
30241
|
+
var fragment_1 = root_2$3();
|
|
30219
30242
|
var span_3 = sibling(first_child(fragment_1), 2);
|
|
30220
30243
|
var text_3 = child(span_3);
|
|
30221
30244
|
reset(span_3);
|
|
@@ -30246,12 +30269,12 @@ function Event$1($$anchor, $$props) {
|
|
|
30246
30269
|
return pop($$exports);
|
|
30247
30270
|
}
|
|
30248
30271
|
create_custom_element(Event$1, { item: {}, orderDetails: {} }, [], [], true);
|
|
30249
|
-
var root_4 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span> <span class="go-cart-item-time"> </span>`, 1);
|
|
30272
|
+
var root_4$1 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span> <span class="go-cart-item-time"> </span>`, 1);
|
|
30250
30273
|
var root_6 = /* @__PURE__ */ from_html(`<span class="go-cart-item-date"> </span>`);
|
|
30251
|
-
var root_3$
|
|
30274
|
+
var root_3$2 = /* @__PURE__ */ from_html(`<!> <br/> <a class="go-ticket-download" target="_blank">Download</a>`, 1);
|
|
30252
30275
|
var root_7$1 = /* @__PURE__ */ from_html(`<br/> <a class="go-ticket-personalization">Personalize</a>`, 1);
|
|
30253
30276
|
var root_8 = /* @__PURE__ */ from_html(`<a aria-label="passbook link"><img alt="apple wallet icon"/></a>`);
|
|
30254
|
-
var root_2$
|
|
30277
|
+
var root_2$2 = /* @__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>`);
|
|
30255
30278
|
var root_10 = /* @__PURE__ */ from_html(`<a class="go-ticket-download" target="_blank">Download</a>`);
|
|
30256
30279
|
var root_11$1 = /* @__PURE__ */ from_html(`<a class="go-ticket-personalization">Personalize</a>`);
|
|
30257
30280
|
var root_9 = /* @__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>`);
|
|
@@ -30282,7 +30305,7 @@ function TicketSale($$anchor, $$props) {
|
|
|
30282
30305
|
var fragment_1 = comment();
|
|
30283
30306
|
var node_1 = first_child(fragment_1);
|
|
30284
30307
|
each(node_1, 17, () => ({ length: item().attributes.quantity }), index$1, ($$anchor3, $$item, index2) => {
|
|
30285
|
-
var li = root_2$
|
|
30308
|
+
var li = root_2$2();
|
|
30286
30309
|
var article = child(li);
|
|
30287
30310
|
var ul = child(article);
|
|
30288
30311
|
var li_1 = child(ul);
|
|
@@ -30295,11 +30318,11 @@ function TicketSale($$anchor, $$props) {
|
|
|
30295
30318
|
{
|
|
30296
30319
|
var consequent_2 = ($$anchor4) => {
|
|
30297
30320
|
const barcodeId = /* @__PURE__ */ user_derived(() => item().attributes.barcodes[index2].id);
|
|
30298
|
-
var fragment_2 = root_3$
|
|
30321
|
+
var fragment_2 = root_3$2();
|
|
30299
30322
|
var node_3 = first_child(fragment_2);
|
|
30300
30323
|
{
|
|
30301
30324
|
var consequent = ($$anchor5) => {
|
|
30302
|
-
var fragment_3 = root_4();
|
|
30325
|
+
var fragment_3 = root_4$1();
|
|
30303
30326
|
var span_1 = first_child(fragment_3);
|
|
30304
30327
|
var text_1 = child(span_1, true);
|
|
30305
30328
|
reset(span_1);
|
|
@@ -30677,15 +30700,27 @@ function Tickets($$anchor, $$props) {
|
|
|
30677
30700
|
const _tsd = getTicketSelectionDetails($$props.$$host);
|
|
30678
30701
|
const tsd = /* @__PURE__ */ user_derived(() => _tsd.value);
|
|
30679
30702
|
user_effect(() => {
|
|
30680
|
-
|
|
30681
|
-
|
|
30682
|
-
|
|
30683
|
-
$$props.$$host.style.display = "block";
|
|
30684
|
-
}
|
|
30703
|
+
$$props.$$host.style.display = get$2(tsd)?.isTicketsVisible ? "block" : "none";
|
|
30704
|
+
$$props.$$host.classList.toggle("is-hidden", !get$2(tsd)?.isTicketsVisible);
|
|
30705
|
+
$$props.$$host.classList.toggle("is-visible", get$2(tsd)?.isTicketsVisible);
|
|
30685
30706
|
});
|
|
30686
30707
|
pop();
|
|
30687
30708
|
}
|
|
30688
30709
|
customElements.define("go-tickets", create_custom_element(Tickets, {}, [], [], false));
|
|
30710
|
+
function TicketsEmpty($$anchor, $$props) {
|
|
30711
|
+
push($$props, true);
|
|
30712
|
+
const _tsd = getTicketSelectionDetails($$props.$$host);
|
|
30713
|
+
const tsd = /* @__PURE__ */ user_derived(() => _tsd.value);
|
|
30714
|
+
const numTickets = /* @__PURE__ */ user_derived(() => sum(get$2(tsd)?.preCarts || [], (pc) => pc.items.length));
|
|
30715
|
+
const isVisible = /* @__PURE__ */ user_derived(() => !get$2(tsd)?.isTicketsVisible || get$2(tsd)?.isTicketsVisible && get$2(numTickets) === 0);
|
|
30716
|
+
user_effect(() => {
|
|
30717
|
+
$$props.$$host.style.display = get$2(isVisible) ? "block" : "none";
|
|
30718
|
+
$$props.$$host.classList.toggle("is-hidden", !get$2(isVisible));
|
|
30719
|
+
$$props.$$host.classList.toggle("is-visible", get$2(isVisible));
|
|
30720
|
+
});
|
|
30721
|
+
pop();
|
|
30722
|
+
}
|
|
30723
|
+
customElements.define("go-tickets-empty", create_custom_element(TicketsEmpty, {}, [], [], false));
|
|
30689
30724
|
function TicketsSum($$anchor, $$props) {
|
|
30690
30725
|
push($$props, true);
|
|
30691
30726
|
const _tsd = getTicketSelectionDetails($$props.$$host);
|
|
@@ -30740,7 +30775,8 @@ async function loadDayTickets(segment) {
|
|
|
30740
30775
|
timeslot = Object.keys(Object.values(quotas)[0].capacities)[0];
|
|
30741
30776
|
}
|
|
30742
30777
|
shop.capacityManager.addQuotas(quotas);
|
|
30743
|
-
const
|
|
30778
|
+
const available = filterAvailabletickets(tickets, timeslot);
|
|
30779
|
+
const uiTickets = initUITimeslotTickets(available, timeslot);
|
|
30744
30780
|
segment.preCart = createCart(uiTickets);
|
|
30745
30781
|
}
|
|
30746
30782
|
async function loadEventScaledPricesTickets(segment) {
|
|
@@ -30769,7 +30805,12 @@ async function loadEventScaledPricesTickets(segment) {
|
|
|
30769
30805
|
const eid = tsd.eventIds[0];
|
|
30770
30806
|
const eventDate = await shop.asyncFetch(() => shop.getEventDetailsOnDate(eid, segment.dateId));
|
|
30771
30807
|
if (eventDate.prices) {
|
|
30772
|
-
|
|
30808
|
+
console.log("Event Title", eventDate.event_title);
|
|
30809
|
+
debugger;
|
|
30810
|
+
const UITickets = eventDate.prices.map((t) => createUIEventTicket(t, segment.dateId, {
|
|
30811
|
+
selectedTime: eventDate.start_time,
|
|
30812
|
+
event_title: eventDate.event_title
|
|
30813
|
+
})) || [];
|
|
30773
30814
|
segment.preCart = createCart(UITickets);
|
|
30774
30815
|
} else console.warn("(loadEventScaledPricesTickets) event.prices is undefined");
|
|
30775
30816
|
if (eventDate.seats) shop.capacityManager.addSeats(segment.dateId, eventDate.seats);
|
|
@@ -30811,7 +30852,8 @@ async function loadEventTickets(segment) {
|
|
|
30811
30852
|
valid_at: tsd.selectedDate?.toString()
|
|
30812
30853
|
}));
|
|
30813
30854
|
shop.capacityManager.addQuotas(quotas);
|
|
30814
|
-
const
|
|
30855
|
+
const available = filterAvailabletickets(tickets, tsd.selectedTime);
|
|
30856
|
+
const uiTickets = initUITimeslotTickets(available, tsd.selectedTime);
|
|
30815
30857
|
segment.preCart = createCart(uiTickets);
|
|
30816
30858
|
}
|
|
30817
30859
|
async function loadTimeslotTickets(segment) {
|
|
@@ -30820,7 +30862,7 @@ async function loadTimeslotTickets(segment) {
|
|
|
30820
30862
|
segment.clear();
|
|
30821
30863
|
return;
|
|
30822
30864
|
}
|
|
30823
|
-
const
|
|
30865
|
+
const { tickets, quotas } = await shop.asyncFetch(() => shop.ticketsAndQuotas({
|
|
30824
30866
|
by_bookable: true,
|
|
30825
30867
|
valid_at: tsd.selectedDate?.toString(),
|
|
30826
30868
|
// @ts-ignore
|
|
@@ -30830,8 +30872,9 @@ async function loadTimeslotTickets(segment) {
|
|
|
30830
30872
|
"by_ticket_ids[]": tsd.ticketIds,
|
|
30831
30873
|
"by_ticket_group_ids[]": tsd.ticketGroupIds
|
|
30832
30874
|
}));
|
|
30833
|
-
shop.capacityManager.addQuotas(
|
|
30834
|
-
const
|
|
30875
|
+
shop.capacityManager.addQuotas(quotas);
|
|
30876
|
+
const available = filterAvailabletickets(tickets, tsd.selectedTime);
|
|
30877
|
+
const uiTickets = initUITimeslotTickets(available, tsd.selectedTime);
|
|
30835
30878
|
segment.preCart = createCart(uiTickets);
|
|
30836
30879
|
}
|
|
30837
30880
|
class TicketSegmentDetails {
|
|
@@ -30940,7 +30983,7 @@ customElements.define("go-ticket-segment", create_custom_element(
|
|
|
30940
30983
|
TicketSegment,
|
|
30941
30984
|
{
|
|
30942
30985
|
dateId: { attribute: "date-id", reflect: true, type: "Number" },
|
|
30943
|
-
filters: {}
|
|
30986
|
+
filters: { attribute: "filters", reflect: true, type: "String" }
|
|
30944
30987
|
},
|
|
30945
30988
|
[],
|
|
30946
30989
|
["details"],
|
|
@@ -30970,6 +31013,9 @@ function selectedTime(product, tsd) {
|
|
|
30970
31013
|
throw new Error(`(selectedTime) Unhandled Ticket Type: ${exhaustedChecking2}`);
|
|
30971
31014
|
}
|
|
30972
31015
|
case "Event":
|
|
31016
|
+
if (!isUIEventTicket(product)) {
|
|
31017
|
+
throw new Error("(selectedTime) this should not happen");
|
|
31018
|
+
}
|
|
30973
31019
|
return product.selectedTime || "";
|
|
30974
31020
|
default:
|
|
30975
31021
|
const exhaustedChecking = product.product_type;
|
|
@@ -30998,10 +31044,31 @@ function generateQuantityOptions(min2, max2) {
|
|
|
30998
31044
|
}
|
|
30999
31045
|
return options;
|
|
31000
31046
|
}
|
|
31001
|
-
var
|
|
31002
|
-
var
|
|
31047
|
+
var root_1$3 = /* @__PURE__ */ from_html(`<span class="go-tickets-item-title-event-title"> </span> <span class="go-tickets-item-title-product-title"> </span>`, 1);
|
|
31048
|
+
var root_4 = /* @__PURE__ */ from_html(`<option> </option>`);
|
|
31049
|
+
var root_3$1 = /* @__PURE__ */ from_html(`<li><article><ul><li class="go-tickets-item-title"><!></li> <li class="go-tickets-item-description" data-go-tickets-description=""><!></li> <li class="go-tickets-item-price" data-go-tickets-price=""> </li> <li class="go-tickets-item-quality" data-go-tickets-quality=""><select></select></li></ul></article></li>`);
|
|
31003
31050
|
function Item($$anchor, $$props) {
|
|
31004
31051
|
push($$props, true);
|
|
31052
|
+
const scaled_title = ($$anchor2) => {
|
|
31053
|
+
var fragment = root_1$3();
|
|
31054
|
+
var span = first_child(fragment);
|
|
31055
|
+
var text2 = child(span, true);
|
|
31056
|
+
reset(span);
|
|
31057
|
+
var span_1 = sibling(span, 2);
|
|
31058
|
+
var text_1 = child(span_1, true);
|
|
31059
|
+
reset(span_1);
|
|
31060
|
+
template_effect(() => {
|
|
31061
|
+
set_text(text2, item().product.event_title);
|
|
31062
|
+
set_text(text_1, item().product.title);
|
|
31063
|
+
});
|
|
31064
|
+
append($$anchor2, fragment);
|
|
31065
|
+
};
|
|
31066
|
+
const default_title = ($$anchor2) => {
|
|
31067
|
+
next();
|
|
31068
|
+
var text_2 = text();
|
|
31069
|
+
template_effect(() => set_text(text_2, item().product.title));
|
|
31070
|
+
append($$anchor2, text_2);
|
|
31071
|
+
};
|
|
31005
31072
|
let item = prop($$props, "item", 7), details = prop($$props, "details", 7);
|
|
31006
31073
|
let capacity = /* @__PURE__ */ state(void 0);
|
|
31007
31074
|
user_effect(() => {
|
|
@@ -31015,6 +31082,8 @@ function Item($$anchor, $$props) {
|
|
|
31015
31082
|
ci.quantity = parseInt(el.value);
|
|
31016
31083
|
ci.time = selectedTime(ci.product, tsd);
|
|
31017
31084
|
}
|
|
31085
|
+
let titleSnippet = default_title;
|
|
31086
|
+
if (isUIEventTicket(item().product)) titleSnippet = scaled_title;
|
|
31018
31087
|
var $$exports = {
|
|
31019
31088
|
get item() {
|
|
31020
31089
|
return item();
|
|
@@ -31031,35 +31100,35 @@ function Item($$anchor, $$props) {
|
|
|
31031
31100
|
flushSync();
|
|
31032
31101
|
}
|
|
31033
31102
|
};
|
|
31034
|
-
var
|
|
31035
|
-
var node = first_child(
|
|
31103
|
+
var fragment_2 = comment();
|
|
31104
|
+
var node = first_child(fragment_2);
|
|
31036
31105
|
{
|
|
31037
31106
|
var consequent = ($$anchor2) => {
|
|
31038
|
-
var li =
|
|
31107
|
+
var li = root_3$1();
|
|
31039
31108
|
var article = child(li);
|
|
31040
|
-
let classes;
|
|
31041
31109
|
var ul = child(article);
|
|
31042
31110
|
var li_1 = child(ul);
|
|
31043
|
-
var
|
|
31111
|
+
var node_1 = child(li_1);
|
|
31112
|
+
titleSnippet(node_1);
|
|
31044
31113
|
reset(li_1);
|
|
31045
31114
|
var li_2 = sibling(li_1, 2);
|
|
31046
|
-
var
|
|
31047
|
-
html(
|
|
31115
|
+
var node_2 = child(li_2);
|
|
31116
|
+
html(node_2, () => item().product.description);
|
|
31048
31117
|
reset(li_2);
|
|
31049
31118
|
var li_3 = sibling(li_2, 2);
|
|
31050
|
-
var
|
|
31119
|
+
var text_3 = child(li_3, true);
|
|
31051
31120
|
reset(li_3);
|
|
31052
31121
|
var li_4 = sibling(li_3, 2);
|
|
31053
31122
|
var select = child(li_4);
|
|
31054
31123
|
select.__change = (e) => update(item(), e.target, details()?.ticketSelectionDetails);
|
|
31055
31124
|
each(select, 21, () => generateQuantityOptions(get$2(capacity).min, get$2(capacity).max), index$1, ($$anchor3, q) => {
|
|
31056
|
-
var option =
|
|
31057
|
-
var
|
|
31125
|
+
var option = root_4();
|
|
31126
|
+
var text_4 = child(option, true);
|
|
31058
31127
|
reset(option);
|
|
31059
31128
|
var option_value = {};
|
|
31060
31129
|
template_effect(() => {
|
|
31061
31130
|
set_selected(option, item().quantity === get$2(q).value);
|
|
31062
|
-
set_text(
|
|
31131
|
+
set_text(text_4, get$2(q).label);
|
|
31063
31132
|
if (option_value !== (option_value = get$2(q).value)) {
|
|
31064
31133
|
option.value = (option.__value = get$2(q).value) ?? "";
|
|
31065
31134
|
}
|
|
@@ -31072,10 +31141,12 @@ function Item($$anchor, $$props) {
|
|
|
31072
31141
|
reset(article);
|
|
31073
31142
|
reset(li);
|
|
31074
31143
|
template_effect(() => {
|
|
31075
|
-
|
|
31144
|
+
set_class(article, 1, clsx([
|
|
31145
|
+
"go-tickets-item",
|
|
31146
|
+
get$2(capacity).bookedOut && "is-booked-out"
|
|
31147
|
+
]));
|
|
31076
31148
|
set_attribute(article, "data-testid", item().uuid);
|
|
31077
|
-
set_text(
|
|
31078
|
-
set_text(text_1, item().price_formatted);
|
|
31149
|
+
set_text(text_3, item().price_formatted);
|
|
31079
31150
|
});
|
|
31080
31151
|
append($$anchor2, li);
|
|
31081
31152
|
};
|
|
@@ -31083,7 +31154,7 @@ function Item($$anchor, $$props) {
|
|
|
31083
31154
|
if (get$2(capacity) && !get$2(capacity).unavailable) $$render(consequent);
|
|
31084
31155
|
});
|
|
31085
31156
|
}
|
|
31086
|
-
append($$anchor,
|
|
31157
|
+
append($$anchor, fragment_2);
|
|
31087
31158
|
return pop($$exports);
|
|
31088
31159
|
}
|
|
31089
31160
|
delegate(["change"]);
|
|
@@ -31240,11 +31311,12 @@ function Timeslots($$anchor, $$props) {
|
|
|
31240
31311
|
reset(label);
|
|
31241
31312
|
reset(li);
|
|
31242
31313
|
template_effect(() => {
|
|
31243
|
-
set_class(li, 1, clsx(
|
|
31244
|
-
|
|
31245
|
-
|
|
31246
|
-
|
|
31247
|
-
|
|
31314
|
+
set_class(li, 1, clsx({
|
|
31315
|
+
"go-timeslot": true,
|
|
31316
|
+
"is-sold-out": timeslot.capacity === 0,
|
|
31317
|
+
"is-disabled": !timeslot.available,
|
|
31318
|
+
"is-selected": get$2(selected)
|
|
31319
|
+
}));
|
|
31248
31320
|
set_text(text2, `${timeslot.timeFormatted ?? ""} `);
|
|
31249
31321
|
input.disabled = timeslot.capacity == 0;
|
|
31250
31322
|
set_attribute(input, "aria-disabled", timeslot.capacity == 0);
|