@gomusdev/web-components 1.26.3 → 1.27.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.
@@ -259,9 +259,9 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
259
259
  }
260
260
  const empty = [];
261
261
  function snapshot(value, skip_warning = false, no_tojson = false) {
262
- return clone$2(value, /* @__PURE__ */ new Map(), "", empty, null, no_tojson);
262
+ return clone$1(value, /* @__PURE__ */ new Map(), "", empty, null, no_tojson);
263
263
  }
264
- function clone$2(value, cloned, path, paths, original = null, no_tojson = false) {
264
+ function clone$1(value, cloned, path, paths, original = null, no_tojson = false) {
265
265
  if (typeof value === "object" && value !== null) {
266
266
  var unwrapped = cloned.get(value);
267
267
  if (unwrapped !== void 0) return unwrapped;
@@ -285,7 +285,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
285
285
  for (var i = 0; i < value.length; i += 1) {
286
286
  var element = value[i];
287
287
  if (i in value) {
288
- copy[i] = clone$2(element, cloned, path, paths, null, no_tojson);
288
+ copy[i] = clone$1(element, cloned, path, paths, null, no_tojson);
289
289
  }
290
290
  }
291
291
  return copy;
@@ -297,7 +297,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
297
297
  cloned.set(original, copy);
298
298
  }
299
299
  for (var key in value) {
300
- copy[key] = clone$2(
300
+ copy[key] = clone$1(
301
301
  // @ts-expect-error
302
302
  value[key],
303
303
  cloned,
@@ -317,7 +317,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
317
317
  }
318
318
  if (typeof /** @type {T & { toJSON?: any } } */
319
319
  value.toJSON === "function" && !no_tojson) {
320
- return clone$2(
320
+ return clone$1(
321
321
  /** @type {T & { toJSON(): any } } */
322
322
  value.toJSON(),
323
323
  cloned,
@@ -2997,7 +2997,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
2997
2997
  return clone2;
2998
2998
  };
2999
2999
  }
3000
- function text$1(value = "") {
3000
+ function text(value = "") {
3001
3001
  if (!hydrating) {
3002
3002
  var t = create_text(value + "");
3003
3003
  assign_nodes(t, t);
@@ -3916,7 +3916,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
3916
3916
  next2.e.prev = prev && prev.e;
3917
3917
  }
3918
3918
  }
3919
- function html$2(node, get_value, svg2 = false, mathml = false, skip_warning = false) {
3919
+ function html(node, get_value, svg = false, mathml = false, skip_warning = false) {
3920
3920
  var anchor = node;
3921
3921
  var value = "";
3922
3922
  template_effect(() => {
@@ -3956,10 +3956,10 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
3956
3956
  return;
3957
3957
  }
3958
3958
  var html2 = value + "";
3959
- if (svg2) html2 = `<svg>${html2}</svg>`;
3959
+ if (svg) html2 = `<svg>${html2}</svg>`;
3960
3960
  else if (mathml) html2 = `<math>${html2}</math>`;
3961
3961
  var node2 = create_fragment_from_html(html2);
3962
- if (svg2 || mathml) {
3962
+ if (svg || mathml) {
3963
3963
  node2 = /** @type {Element} */
3964
3964
  /* @__PURE__ */ get_first_child(node2);
3965
3965
  }
@@ -3969,7 +3969,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
3969
3969
  /** @type {TemplateNode} */
3970
3970
  node2.lastChild
3971
3971
  );
3972
- if (svg2 || mathml) {
3972
+ if (svg || mathml) {
3973
3973
  while (/* @__PURE__ */ get_first_child(node2)) {
3974
3974
  anchor.before(
3975
3975
  /** @type {Node} */
@@ -9418,13 +9418,13 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
9418
9418
  let ZodReadonly$1 = class ZodReadonly extends ZodType$1 {
9419
9419
  _parse(input) {
9420
9420
  const result = this._def.innerType._parse(input);
9421
- const freeze2 = (data) => {
9421
+ const freeze = (data) => {
9422
9422
  if (isValid(data)) {
9423
9423
  data.value = Object.freeze(data.value);
9424
9424
  }
9425
9425
  return data;
9426
9426
  };
9427
- return isAsync(result) ? result.then((data) => freeze2(data)) : freeze2(result);
9427
+ return isAsync(result) ? result.then((data) => freeze(data)) : freeze(result);
9428
9428
  }
9429
9429
  unwrap() {
9430
9430
  return this._def.innerType;
@@ -11114,7 +11114,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
11114
11114
  return totalCap;
11115
11115
  },
11116
11116
  timeslotsOn(date2) {
11117
- const ret2 = this.timeslots().filter((x) => x.timeSlot.startsWith(date2.toString())).filter((x) => x.capacity > 0);
11117
+ const ret2 = this.timeslots().filter((x) => x.timeSlot.startsWith(date2.toString()));
11118
11118
  return ret2;
11119
11119
  }
11120
11120
  };
@@ -12382,7 +12382,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
12382
12382
  return this.translate(key, values);
12383
12383
  }
12384
12384
  translate(key, values) {
12385
- if (!this.translations?.[key]) return "";
12385
+ if (!this.translations?.[key]) return key;
12386
12386
  let translatedString = this.translations[key];
12387
12387
  if (values && translatedString) {
12388
12388
  for (const [key2, value] of Object.entries(values)) {
@@ -12865,7 +12865,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
12865
12865
  function escapeRegex(str) {
12866
12866
  return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
12867
12867
  }
12868
- function clone$1(inst, def, params) {
12868
+ function clone(inst, def, params) {
12869
12869
  const cl = new inst._zod.constr(def ?? inst._zod.def);
12870
12870
  if (!def || params?.parent)
12871
12871
  cl._zod.parent = inst;
@@ -14720,7 +14720,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
14720
14720
  ]
14721
14721
  }));
14722
14722
  };
14723
- inst.clone = (def2, params) => clone$1(inst, def2, params);
14723
+ inst.clone = (def2, params) => clone(inst, def2, params);
14724
14724
  inst.brand = () => inst;
14725
14725
  inst.register = ((reg, meta) => {
14726
14726
  reg.add(inst, meta);
@@ -15103,7 +15103,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15103
15103
  key: "salutation",
15104
15104
  apiKey: "customer_salutation_id",
15105
15105
  type: "select",
15106
- label: "Please choose",
15106
+ label: "user.registration.form.customer_salutation_id",
15107
15107
  placeholder: "",
15108
15108
  description: "",
15109
15109
  autocomplete: "honorific-prefix",
@@ -15113,7 +15113,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15113
15113
  key: "firstName",
15114
15114
  apiKey: "name",
15115
15115
  type: "text",
15116
- label: "First name",
15116
+ label: "user.registration.form.name",
15117
15117
  placeholder: "",
15118
15118
  description: "",
15119
15119
  autocomplete: "given-name"
@@ -15122,7 +15122,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15122
15122
  key: "lastName",
15123
15123
  apiKey: "surname",
15124
15124
  type: "text",
15125
- label: "Last name",
15125
+ label: "user.registration.form.surname",
15126
15126
  placeholder: "",
15127
15127
  description: "",
15128
15128
  autocomplete: "family-name"
@@ -15131,27 +15131,27 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15131
15131
  key: "email",
15132
15132
  apiKey: "email",
15133
15133
  type: "email",
15134
- label: "E-mail",
15134
+ label: "user.registration.form.email",
15135
15135
  placeholder: "",
15136
15136
  description: "",
15137
15137
  autocomplete: "email",
15138
- validator: string().email("Invalid email")
15138
+ validator: string().email("user.fieldErrors.emailValid")
15139
15139
  },
15140
15140
  confirmEmail: {
15141
15141
  key: "confirmEmail",
15142
15142
  apiKey: "email_confirmation",
15143
15143
  type: "email",
15144
- label: "Confirm E-mail",
15144
+ label: "user.registration.form.confirmEmail",
15145
15145
  placeholder: "",
15146
15146
  description: "",
15147
15147
  autocomplete: "email",
15148
- validator: string().email("Invalid email").min(1, "Please confirm your email")
15148
+ validator: string().email("user.fieldErrors.emailValid")
15149
15149
  },
15150
15150
  password: {
15151
15151
  key: "password",
15152
15152
  apiKey: "password",
15153
15153
  type: "password",
15154
- label: "Password",
15154
+ label: "user.registration.form.password",
15155
15155
  placeholder: "",
15156
15156
  description: "",
15157
15157
  autocomplete: "current-password"
@@ -15160,27 +15160,26 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15160
15160
  key: "password",
15161
15161
  apiKey: "password",
15162
15162
  type: "password",
15163
- label: "Password",
15163
+ label: "user.registration.form.password",
15164
15164
  placeholder: "",
15165
15165
  description: "",
15166
15166
  autocomplete: "new-password",
15167
- validator: string().min(6, "Password must be at least 6 characters")
15167
+ validator: string().min(6, "user.fieldErrors.passwordTooShort")
15168
15168
  },
15169
15169
  confirmPassword: {
15170
15170
  key: "confirmPassword",
15171
15171
  apiKey: "password_confirmation",
15172
15172
  type: "password",
15173
- label: "Confirm password",
15173
+ label: "user.registration.form.confirmPassword",
15174
15174
  placeholder: "",
15175
15175
  description: "",
15176
- autocomplete: "new-password",
15177
- validator: string().min(6, "Please confirm your password")
15176
+ autocomplete: "new-password"
15178
15177
  },
15179
15178
  addressee: {
15180
15179
  key: "addressee",
15181
15180
  apiKey: "addr_addressat",
15182
15181
  type: "text",
15183
- label: "Addressee",
15182
+ label: "user.registration.form.adressat",
15184
15183
  placeholder: "",
15185
15184
  description: "",
15186
15185
  autocomplete: "name"
@@ -15189,7 +15188,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15189
15188
  key: "street",
15190
15189
  apiKey: "addr_street",
15191
15190
  type: "text",
15192
- label: "Street",
15191
+ label: "user.registration.form.street",
15193
15192
  placeholder: "",
15194
15193
  description: "",
15195
15194
  autocomplete: "street-address"
@@ -15198,7 +15197,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15198
15197
  key: "postcode",
15199
15198
  apiKey: "addr_zip",
15200
15199
  type: "text",
15201
- label: "Postcode",
15200
+ label: "user.registration.form.plz",
15202
15201
  placeholder: "",
15203
15202
  description: "",
15204
15203
  autocomplete: "postal-code"
@@ -15207,7 +15206,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15207
15206
  key: "city",
15208
15207
  apiKey: "addr_city",
15209
15208
  type: "text",
15210
- label: "City",
15209
+ label: "user.registration.form.city",
15211
15210
  placeholder: "",
15212
15211
  description: "",
15213
15212
  autocomplete: "address-level2"
@@ -15216,7 +15215,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15216
15215
  key: "country",
15217
15216
  apiKey: "addr_country_id",
15218
15217
  type: "select",
15219
- label: "Country",
15218
+ label: "user.registration.form.country",
15220
15219
  placeholder: "",
15221
15220
  description: "",
15222
15221
  autocomplete: "country",
@@ -15242,7 +15241,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15242
15241
  key: "language",
15243
15242
  apiKey: "language_id",
15244
15243
  type: "select",
15245
- label: "Language",
15244
+ label: "user.registration.form.language",
15246
15245
  placeholder: "",
15247
15246
  description: "",
15248
15247
  autocomplete: "language",
@@ -15252,17 +15251,8 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15252
15251
  key: "acceptTerms",
15253
15252
  apiKey: "terms",
15254
15253
  type: "checkbox",
15255
- label: "I agree to the Terms",
15256
- placeholder: "",
15257
- description: "",
15258
- autocomplete: "off"
15259
- },
15260
- rememberMe: {
15261
- key: "rememberMe",
15262
- type: "checkbox",
15263
- label: "Remember me",
15254
+ label: "user.registration.form.accept",
15264
15255
  placeholder: "",
15265
- required: false,
15266
15256
  description: "",
15267
15257
  autocomplete: "off"
15268
15258
  },
@@ -15270,7 +15260,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15270
15260
  apiKey: "start_at",
15271
15261
  key: "startAt",
15272
15262
  type: "date",
15273
- label: "StartAt Date",
15263
+ label: "ticket.annual.personalization.list.startAt.update",
15274
15264
  placeholder: "",
15275
15265
  description: "",
15276
15266
  autocomplete: "off",
@@ -15306,7 +15296,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15306
15296
  field.errors = [];
15307
15297
  if (!field.validator) {
15308
15298
  if (field.required) {
15309
- if (field.value === false || field.value === "") field.errors = field.value ? [] : [`${field.label} is required`];
15299
+ if (field.value === false || field.value === "") field.errors = field.value ? [] : [`common.fieldErrors.required`];
15310
15300
  }
15311
15301
  return;
15312
15302
  }
@@ -15583,12 +15573,12 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15583
15573
  if (field.apiKey === "password_confirmation") {
15584
15574
  const passwordField = this.fields.find((f) => f.apiKey === "password");
15585
15575
  if (!passwordField || passwordField && field.value !== passwordField.value) {
15586
- field.errors.push("Passwords do not match");
15576
+ field.errors.push("user.fieldErrors.passwordMatch");
15587
15577
  }
15588
15578
  } else if (field.apiKey === "email_confirmation") {
15589
15579
  const emailField = this.fields.find((f) => f.apiKey === "email");
15590
15580
  if (!emailField || emailField && field.value !== emailField.value) {
15591
- field.errors.push("Emails do not match");
15581
+ field.errors.push("user.fieldErrors.emailMatch");
15592
15582
  }
15593
15583
  }
15594
15584
  }
@@ -15930,20 +15920,14 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15930
15920
  return pop($$exports);
15931
15921
  }
15932
15922
  create_custom_element(Ticket, { cartItem: {} }, [], [], true);
15933
- var root_2$q = /* @__PURE__ */ from_html(`<li data-go-cart-header-remove="">remove</li>`);
15934
- var root_7$4 = /* @__PURE__ */ from_html(`<li data-go-cart-item-remove=""><button>⨉</button></li>`);
15935
- var root_3$6 = /* @__PURE__ */ from_html(`<li data-go-cart-item=""><article><ul><!> <li data-go-cart-item-price=""> </li> <li data-go-cart-item-count=""> </li> <!> <li data-go-cart-item-sum=""> </li></ul></article></li>`);
15936
- var root_8$1 = /* @__PURE__ */ from_html(`<li data-go-cart-footer-remove=""></li>`);
15937
- var root_9$4 = /* @__PURE__ */ from_html(`<a href="javascript:void(0);" class="go-cart-checkout-button" data-testid="checkout-button">Checkout</a>`);
15938
- var root_1$e = /* @__PURE__ */ from_html(`<ol data-testid="cart"><li data-go-cart-header="" data-testid="cart-header"><ul><li data-go-cart-header-title="">Product</li> <li data-go-cart-header-price="">Price</li> <li data-go-cart-header-count="">Count</li> <!> <li data-go-cart-header-sum="">Sum</li></ul></li> <!> <li data-go-cart-footer="" data-testid="cart-footer"><ul><li data-go-cart-footer-title=""></li> <li data-go-cart-footer-price=""></li> <li data-go-cart-footer-count=""></li> <!> <li data-go-cart-footer-sum="" data-go-cart-sum=""> </li></ul></li></ol> <!>`, 1);
15923
+ var root_2$q = /* @__PURE__ */ from_html(`<li class="go-cart-header-remove" data-go-cart-header-remove=""></li>`);
15924
+ var root_7$4 = /* @__PURE__ */ from_html(`<li class="go-cart-item-remove" data-go-cart-item-remove=""><button>⨉</button></li>`);
15925
+ var root_3$6 = /* @__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>`);
15926
+ var root_8$1 = /* @__PURE__ */ from_html(`<li class="go-cart-footer-remove" data-go-cart-footer-remove=""></li>`);
15927
+ 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>`);
15939
15928
  function Cart($$anchor, $$props) {
15940
15929
  push($$props, true);
15941
15930
  const preview = prop($$props, "preview", 7, false);
15942
- function navToCheckout() {
15943
- if (go.config.urls.checkoutForm?.()) {
15944
- go.config.navigateTo(go.config.urls.checkoutForm());
15945
- }
15946
- }
15947
15931
  let cart = /* @__PURE__ */ user_derived(() => shop.cart);
15948
15932
  var $$exports = {
15949
15933
  get preview() {
@@ -15957,28 +15941,38 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15957
15941
  var fragment = comment();
15958
15942
  var node = first_child(fragment);
15959
15943
  {
15960
- var consequent_6 = ($$anchor2) => {
15961
- var fragment_1 = root_1$e();
15962
- var ol = first_child(fragment_1);
15944
+ var consequent_5 = ($$anchor2) => {
15945
+ var ol = root_1$e();
15963
15946
  var li = child(ol);
15964
15947
  var ul = child(li);
15965
- var node_1 = sibling(child(ul), 6);
15948
+ var li_1 = child(ul);
15949
+ var text2 = child(li_1, true);
15950
+ reset(li_1);
15951
+ var li_2 = sibling(li_1, 2);
15952
+ var text_1 = child(li_2, true);
15953
+ reset(li_2);
15954
+ var li_3 = sibling(li_2, 2);
15955
+ var text_2 = child(li_3, true);
15956
+ reset(li_3);
15957
+ var node_1 = sibling(li_3, 2);
15966
15958
  {
15967
15959
  var consequent = ($$anchor3) => {
15968
- var li_1 = root_2$q();
15969
- append($$anchor3, li_1);
15960
+ var li_4 = root_2$q();
15961
+ append($$anchor3, li_4);
15970
15962
  };
15971
15963
  if_block(node_1, ($$render) => {
15972
15964
  if (!preview()) $$render(consequent);
15973
15965
  });
15974
15966
  }
15975
- next(2);
15967
+ var li_5 = sibling(node_1, 2);
15968
+ var text_3 = child(li_5, true);
15969
+ reset(li_5);
15976
15970
  reset(ul);
15977
15971
  reset(li);
15978
15972
  var node_2 = sibling(li, 2);
15979
15973
  each(node_2, 17, () => get$2(cart).items, (cartItem) => cartItem.uuid, ($$anchor3, cartItem) => {
15980
- var li_2 = root_3$6();
15981
- var article = child(li_2);
15974
+ var li_6 = root_3$6();
15975
+ var article = child(li_6);
15982
15976
  var ul_1 = child(article);
15983
15977
  var node_3 = child(ul_1);
15984
15978
  {
@@ -15990,8 +15984,8 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
15990
15984
  });
15991
15985
  };
15992
15986
  var alternate = ($$anchor4) => {
15993
- var fragment_3 = comment();
15994
- var node_4 = first_child(fragment_3);
15987
+ var fragment_2 = comment();
15988
+ var node_4 = first_child(fragment_2);
15995
15989
  {
15996
15990
  var consequent_2 = ($$anchor5) => {
15997
15991
  Event$2($$anchor5, {
@@ -16008,80 +16002,83 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
16008
16002
  true
16009
16003
  );
16010
16004
  }
16011
- append($$anchor4, fragment_3);
16005
+ append($$anchor4, fragment_2);
16012
16006
  };
16013
16007
  if_block(node_3, ($$render) => {
16014
16008
  if (get$2(cartItem).product.product_type == "Ticket") $$render(consequent_1);
16015
16009
  else $$render(alternate, false);
16016
16010
  });
16017
16011
  }
16018
- var li_3 = sibling(node_3, 2);
16019
- var text2 = child(li_3, true);
16020
- reset(li_3);
16021
- var li_4 = sibling(li_3, 2);
16022
- var text_1 = child(li_4, true);
16023
- reset(li_4);
16024
- var node_5 = sibling(li_4, 2);
16012
+ var li_7 = sibling(node_3, 2);
16013
+ var text_4 = child(li_7, true);
16014
+ reset(li_7);
16015
+ var li_8 = sibling(li_7, 2);
16016
+ var text_5 = child(li_8, true);
16017
+ reset(li_8);
16018
+ var node_5 = sibling(li_8, 2);
16025
16019
  {
16026
16020
  var consequent_3 = ($$anchor4) => {
16027
- var li_5 = root_7$4();
16028
- var button = child(li_5);
16021
+ var li_9 = root_7$4();
16022
+ var button = child(li_9);
16029
16023
  button.__click = () => get$2(cart).deleteItem(get$2(cartItem));
16030
- reset(li_5);
16031
- append($$anchor4, li_5);
16024
+ reset(li_9);
16025
+ append($$anchor4, li_9);
16032
16026
  };
16033
16027
  if_block(node_5, ($$render) => {
16034
16028
  if (!preview()) $$render(consequent_3);
16035
16029
  });
16036
16030
  }
16037
- var li_6 = sibling(node_5, 2);
16038
- var text_2 = child(li_6, true);
16039
- reset(li_6);
16031
+ var li_10 = sibling(node_5, 2);
16032
+ var text_6 = child(li_10, true);
16033
+ reset(li_10);
16040
16034
  reset(ul_1);
16041
16035
  reset(article);
16042
- reset(li_2);
16036
+ reset(li_6);
16043
16037
  template_effect(() => {
16044
16038
  set_attribute(article, "data-testid", get$2(cartItem).uuid);
16045
- set_text(text2, get$2(cartItem).final_price_formatted);
16046
- set_text(text_1, get$2(cartItem).quantity);
16047
- set_text(text_2, get$2(cartItem).total_price_formatted);
16039
+ set_text(text_4, get$2(cartItem).final_price_formatted);
16040
+ set_text(text_5, get$2(cartItem).quantity);
16041
+ set_text(text_6, get$2(cartItem).total_price_formatted);
16048
16042
  });
16049
- append($$anchor3, li_2);
16043
+ append($$anchor3, li_6);
16050
16044
  });
16051
- var li_7 = sibling(node_2, 2);
16052
- var ul_2 = child(li_7);
16045
+ var li_11 = sibling(node_2, 2);
16046
+ var ul_2 = child(li_11);
16053
16047
  var node_6 = sibling(child(ul_2), 6);
16054
16048
  {
16055
16049
  var consequent_4 = ($$anchor3) => {
16056
- var li_8 = root_8$1();
16057
- append($$anchor3, li_8);
16050
+ var li_12 = root_8$1();
16051
+ append($$anchor3, li_12);
16058
16052
  };
16059
16053
  if_block(node_6, ($$render) => {
16060
16054
  if (!preview()) $$render(consequent_4);
16061
16055
  });
16062
16056
  }
16063
- var li_9 = sibling(node_6, 2);
16064
- var text_3 = child(li_9, true);
16065
- reset(li_9);
16057
+ var li_13 = sibling(node_6, 2);
16058
+ var text_7 = child(li_13, true);
16059
+ reset(li_13);
16066
16060
  reset(ul_2);
16067
- reset(li_7);
16061
+ reset(li_11);
16068
16062
  reset(ol);
16069
- var node_7 = sibling(ol, 2);
16070
- {
16071
- var consequent_5 = ($$anchor3) => {
16072
- var a2 = root_9$4();
16073
- a2.__click = navToCheckout;
16074
- append($$anchor3, a2);
16075
- };
16076
- if_block(node_7, ($$render) => {
16077
- if (!preview()) $$render(consequent_5);
16078
- });
16079
- }
16080
- template_effect(() => set_text(text_3, get$2(cart).totalFormatted));
16081
- append($$anchor2, fragment_1);
16063
+ template_effect(
16064
+ ($0, $1, $2, $3) => {
16065
+ set_text(text2, $0);
16066
+ set_text(text_1, $1);
16067
+ set_text(text_2, $2);
16068
+ set_text(text_3, $3);
16069
+ set_text(text_7, get$2(cart).totalFormatted);
16070
+ },
16071
+ [
16072
+ () => shop.t("cart.content.table.desc"),
16073
+ () => shop.t("cart.content.table.price"),
16074
+ () => shop.t("cart.content.table.quantity"),
16075
+ () => shop.t("cart.content.table.total")
16076
+ ]
16077
+ );
16078
+ append($$anchor2, ol);
16082
16079
  };
16083
16080
  if_block(node, ($$render) => {
16084
- if (get$2(cart) && get$2(cart).items.length) $$render(consequent_6);
16081
+ if (get$2(cart) && get$2(cart).items.length) $$render(consequent_5);
16085
16082
  });
16086
16083
  }
16087
16084
  append($$anchor, fragment);
@@ -16099,9 +16096,9 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
16099
16096
  push($$props, true);
16100
16097
  let cartCounter = /* @__PURE__ */ user_derived(() => shop.cart?.items.length);
16101
16098
  next();
16102
- var text2 = text$1();
16103
- template_effect(() => set_text(text2, get$2(cartCounter)));
16104
- append($$anchor, text2);
16099
+ var text$1 = text();
16100
+ template_effect(() => set_text(text$1, get$2(cartCounter)));
16101
+ append($$anchor, text$1);
16105
16102
  pop();
16106
16103
  }
16107
16104
  customElements.define("go-cart-counter", create_custom_element(CartCounter, {}, [], [], false));
@@ -16153,1009 +16150,6 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
16153
16150
  return pop($$exports);
16154
16151
  }
16155
16152
  customElements.define("go-checkout-form", create_custom_element(CheckoutForm, { custom: {} }, [], [], false));
16156
- /*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */
16157
- const {
16158
- entries,
16159
- setPrototypeOf,
16160
- isFrozen,
16161
- getPrototypeOf,
16162
- getOwnPropertyDescriptor
16163
- } = Object;
16164
- let {
16165
- freeze,
16166
- seal,
16167
- create
16168
- } = Object;
16169
- let {
16170
- apply,
16171
- construct
16172
- } = typeof Reflect !== "undefined" && Reflect;
16173
- if (!freeze) {
16174
- freeze = function freeze2(x) {
16175
- return x;
16176
- };
16177
- }
16178
- if (!seal) {
16179
- seal = function seal2(x) {
16180
- return x;
16181
- };
16182
- }
16183
- if (!apply) {
16184
- apply = function apply2(func, thisArg) {
16185
- for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
16186
- args[_key - 2] = arguments[_key];
16187
- }
16188
- return func.apply(thisArg, args);
16189
- };
16190
- }
16191
- if (!construct) {
16192
- construct = function construct2(Func) {
16193
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
16194
- args[_key2 - 1] = arguments[_key2];
16195
- }
16196
- return new Func(...args);
16197
- };
16198
- }
16199
- const arrayForEach = unapply(Array.prototype.forEach);
16200
- const arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
16201
- const arrayPop = unapply(Array.prototype.pop);
16202
- const arrayPush = unapply(Array.prototype.push);
16203
- const arraySplice = unapply(Array.prototype.splice);
16204
- const stringToLowerCase = unapply(String.prototype.toLowerCase);
16205
- const stringToString = unapply(String.prototype.toString);
16206
- const stringMatch = unapply(String.prototype.match);
16207
- const stringReplace = unapply(String.prototype.replace);
16208
- const stringIndexOf = unapply(String.prototype.indexOf);
16209
- const stringTrim = unapply(String.prototype.trim);
16210
- const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
16211
- const regExpTest = unapply(RegExp.prototype.test);
16212
- const typeErrorCreate = unconstruct(TypeError);
16213
- function unapply(func) {
16214
- return function(thisArg) {
16215
- if (thisArg instanceof RegExp) {
16216
- thisArg.lastIndex = 0;
16217
- }
16218
- for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
16219
- args[_key3 - 1] = arguments[_key3];
16220
- }
16221
- return apply(func, thisArg, args);
16222
- };
16223
- }
16224
- function unconstruct(Func) {
16225
- return function() {
16226
- for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
16227
- args[_key4] = arguments[_key4];
16228
- }
16229
- return construct(Func, args);
16230
- };
16231
- }
16232
- function addToSet(set2, array2) {
16233
- let transformCaseFunc = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : stringToLowerCase;
16234
- if (setPrototypeOf) {
16235
- setPrototypeOf(set2, null);
16236
- }
16237
- let l = array2.length;
16238
- while (l--) {
16239
- let element = array2[l];
16240
- if (typeof element === "string") {
16241
- const lcElement = transformCaseFunc(element);
16242
- if (lcElement !== element) {
16243
- if (!isFrozen(array2)) {
16244
- array2[l] = lcElement;
16245
- }
16246
- element = lcElement;
16247
- }
16248
- }
16249
- set2[element] = true;
16250
- }
16251
- return set2;
16252
- }
16253
- function cleanArray(array2) {
16254
- for (let index2 = 0; index2 < array2.length; index2++) {
16255
- const isPropertyExist = objectHasOwnProperty(array2, index2);
16256
- if (!isPropertyExist) {
16257
- array2[index2] = null;
16258
- }
16259
- }
16260
- return array2;
16261
- }
16262
- function clone(object) {
16263
- const newObject = create(null);
16264
- for (const [property, value] of entries(object)) {
16265
- const isPropertyExist = objectHasOwnProperty(object, property);
16266
- if (isPropertyExist) {
16267
- if (Array.isArray(value)) {
16268
- newObject[property] = cleanArray(value);
16269
- } else if (value && typeof value === "object" && value.constructor === Object) {
16270
- newObject[property] = clone(value);
16271
- } else {
16272
- newObject[property] = value;
16273
- }
16274
- }
16275
- }
16276
- return newObject;
16277
- }
16278
- function lookupGetter(object, prop2) {
16279
- while (object !== null) {
16280
- const desc = getOwnPropertyDescriptor(object, prop2);
16281
- if (desc) {
16282
- if (desc.get) {
16283
- return unapply(desc.get);
16284
- }
16285
- if (typeof desc.value === "function") {
16286
- return unapply(desc.value);
16287
- }
16288
- }
16289
- object = getPrototypeOf(object);
16290
- }
16291
- function fallbackValue() {
16292
- return null;
16293
- }
16294
- return fallbackValue;
16295
- }
16296
- const html$1 = freeze(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]);
16297
- const svg$1 = freeze(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]);
16298
- const svgFilters = freeze(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]);
16299
- const svgDisallowed = freeze(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]);
16300
- const mathMl$1 = freeze(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]);
16301
- const mathMlDisallowed = freeze(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]);
16302
- const text = freeze(["#text"]);
16303
- const html = freeze(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]);
16304
- const svg = freeze(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]);
16305
- const mathMl = freeze(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]);
16306
- const xml = freeze(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]);
16307
- const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm);
16308
- const ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm);
16309
- const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm);
16310
- const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/);
16311
- const ARIA_ATTR = seal(/^aria-[\-\w]+$/);
16312
- const IS_ALLOWED_URI = seal(
16313
- /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
16314
- // eslint-disable-line no-useless-escape
16315
- );
16316
- const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
16317
- const ATTR_WHITESPACE = seal(
16318
- /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
16319
- // eslint-disable-line no-control-regex
16320
- );
16321
- const DOCTYPE_NAME = seal(/^html$/i);
16322
- const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
16323
- var EXPRESSIONS = /* @__PURE__ */ Object.freeze({
16324
- __proto__: null,
16325
- ARIA_ATTR,
16326
- ATTR_WHITESPACE,
16327
- CUSTOM_ELEMENT,
16328
- DATA_ATTR,
16329
- DOCTYPE_NAME,
16330
- ERB_EXPR,
16331
- IS_ALLOWED_URI,
16332
- IS_SCRIPT_OR_DATA,
16333
- MUSTACHE_EXPR,
16334
- TMPLIT_EXPR
16335
- });
16336
- const NODE_TYPE = {
16337
- element: 1,
16338
- text: 3,
16339
- // Deprecated
16340
- progressingInstruction: 7,
16341
- comment: 8,
16342
- document: 9
16343
- };
16344
- const getGlobal = function getGlobal2() {
16345
- return typeof window === "undefined" ? null : window;
16346
- };
16347
- const _createTrustedTypesPolicy = function _createTrustedTypesPolicy2(trustedTypes, purifyHostElement) {
16348
- if (typeof trustedTypes !== "object" || typeof trustedTypes.createPolicy !== "function") {
16349
- return null;
16350
- }
16351
- let suffix = null;
16352
- const ATTR_NAME = "data-tt-policy-suffix";
16353
- if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {
16354
- suffix = purifyHostElement.getAttribute(ATTR_NAME);
16355
- }
16356
- const policyName = "dompurify" + (suffix ? "#" + suffix : "");
16357
- try {
16358
- return trustedTypes.createPolicy(policyName, {
16359
- createHTML(html2) {
16360
- return html2;
16361
- },
16362
- createScriptURL(scriptUrl) {
16363
- return scriptUrl;
16364
- }
16365
- });
16366
- } catch (_) {
16367
- console.warn("TrustedTypes policy " + policyName + " could not be created.");
16368
- return null;
16369
- }
16370
- };
16371
- const _createHooksMap = function _createHooksMap2() {
16372
- return {
16373
- afterSanitizeAttributes: [],
16374
- afterSanitizeElements: [],
16375
- afterSanitizeShadowDOM: [],
16376
- beforeSanitizeAttributes: [],
16377
- beforeSanitizeElements: [],
16378
- beforeSanitizeShadowDOM: [],
16379
- uponSanitizeAttribute: [],
16380
- uponSanitizeElement: [],
16381
- uponSanitizeShadowNode: []
16382
- };
16383
- };
16384
- function createDOMPurify() {
16385
- let window2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
16386
- const DOMPurify = (root2) => createDOMPurify(root2);
16387
- DOMPurify.version = "3.3.0";
16388
- DOMPurify.removed = [];
16389
- if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
16390
- DOMPurify.isSupported = false;
16391
- return DOMPurify;
16392
- }
16393
- let {
16394
- document: document2
16395
- } = window2;
16396
- const originalDocument = document2;
16397
- const currentScript = originalDocument.currentScript;
16398
- const {
16399
- DocumentFragment,
16400
- HTMLTemplateElement,
16401
- Node: Node2,
16402
- Element: Element2,
16403
- NodeFilter,
16404
- NamedNodeMap = window2.NamedNodeMap || window2.MozNamedAttrMap,
16405
- HTMLFormElement,
16406
- DOMParser,
16407
- trustedTypes
16408
- } = window2;
16409
- const ElementPrototype = Element2.prototype;
16410
- const cloneNode = lookupGetter(ElementPrototype, "cloneNode");
16411
- const remove = lookupGetter(ElementPrototype, "remove");
16412
- const getNextSibling = lookupGetter(ElementPrototype, "nextSibling");
16413
- const getChildNodes = lookupGetter(ElementPrototype, "childNodes");
16414
- const getParentNode2 = lookupGetter(ElementPrototype, "parentNode");
16415
- if (typeof HTMLTemplateElement === "function") {
16416
- const template = document2.createElement("template");
16417
- if (template.content && template.content.ownerDocument) {
16418
- document2 = template.content.ownerDocument;
16419
- }
16420
- }
16421
- let trustedTypesPolicy;
16422
- let emptyHTML = "";
16423
- const {
16424
- implementation,
16425
- createNodeIterator,
16426
- createDocumentFragment,
16427
- getElementsByTagName
16428
- } = document2;
16429
- const {
16430
- importNode
16431
- } = originalDocument;
16432
- let hooks = _createHooksMap();
16433
- DOMPurify.isSupported = typeof entries === "function" && typeof getParentNode2 === "function" && implementation && implementation.createHTMLDocument !== void 0;
16434
- const {
16435
- MUSTACHE_EXPR: MUSTACHE_EXPR2,
16436
- ERB_EXPR: ERB_EXPR2,
16437
- TMPLIT_EXPR: TMPLIT_EXPR2,
16438
- DATA_ATTR: DATA_ATTR2,
16439
- ARIA_ATTR: ARIA_ATTR2,
16440
- IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA2,
16441
- ATTR_WHITESPACE: ATTR_WHITESPACE2,
16442
- CUSTOM_ELEMENT: CUSTOM_ELEMENT2
16443
- } = EXPRESSIONS;
16444
- let {
16445
- IS_ALLOWED_URI: IS_ALLOWED_URI$1
16446
- } = EXPRESSIONS;
16447
- let ALLOWED_TAGS = null;
16448
- const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);
16449
- let ALLOWED_ATTR = null;
16450
- const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);
16451
- let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {
16452
- tagNameCheck: {
16453
- writable: true,
16454
- configurable: false,
16455
- enumerable: true,
16456
- value: null
16457
- },
16458
- attributeNameCheck: {
16459
- writable: true,
16460
- configurable: false,
16461
- enumerable: true,
16462
- value: null
16463
- },
16464
- allowCustomizedBuiltInElements: {
16465
- writable: true,
16466
- configurable: false,
16467
- enumerable: true,
16468
- value: false
16469
- }
16470
- }));
16471
- let FORBID_TAGS = null;
16472
- let FORBID_ATTR = null;
16473
- const EXTRA_ELEMENT_HANDLING = Object.seal(create(null, {
16474
- tagCheck: {
16475
- writable: true,
16476
- configurable: false,
16477
- enumerable: true,
16478
- value: null
16479
- },
16480
- attributeCheck: {
16481
- writable: true,
16482
- configurable: false,
16483
- enumerable: true,
16484
- value: null
16485
- }
16486
- }));
16487
- let ALLOW_ARIA_ATTR = true;
16488
- let ALLOW_DATA_ATTR = true;
16489
- let ALLOW_UNKNOWN_PROTOCOLS = false;
16490
- let ALLOW_SELF_CLOSE_IN_ATTR = true;
16491
- let SAFE_FOR_TEMPLATES = false;
16492
- let SAFE_FOR_XML = true;
16493
- let WHOLE_DOCUMENT = false;
16494
- let SET_CONFIG = false;
16495
- let FORCE_BODY = false;
16496
- let RETURN_DOM = false;
16497
- let RETURN_DOM_FRAGMENT = false;
16498
- let RETURN_TRUSTED_TYPE = false;
16499
- let SANITIZE_DOM = true;
16500
- let SANITIZE_NAMED_PROPS = false;
16501
- const SANITIZE_NAMED_PROPS_PREFIX = "user-content-";
16502
- let KEEP_CONTENT = true;
16503
- let IN_PLACE = false;
16504
- let USE_PROFILES = {};
16505
- let FORBID_CONTENTS = null;
16506
- const DEFAULT_FORBID_CONTENTS = addToSet({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
16507
- let DATA_URI_TAGS = null;
16508
- const DEFAULT_DATA_URI_TAGS = addToSet({}, ["audio", "video", "img", "source", "image", "track"]);
16509
- let URI_SAFE_ATTRIBUTES = null;
16510
- const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]);
16511
- const MATHML_NAMESPACE = "http://www.w3.org/1998/Math/MathML";
16512
- const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
16513
- const HTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
16514
- let NAMESPACE = HTML_NAMESPACE;
16515
- let IS_EMPTY_INPUT = false;
16516
- let ALLOWED_NAMESPACES = null;
16517
- const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);
16518
- let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]);
16519
- let HTML_INTEGRATION_POINTS = addToSet({}, ["annotation-xml"]);
16520
- const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ["title", "style", "font", "a", "script"]);
16521
- let PARSER_MEDIA_TYPE = null;
16522
- const SUPPORTED_PARSER_MEDIA_TYPES = ["application/xhtml+xml", "text/html"];
16523
- const DEFAULT_PARSER_MEDIA_TYPE = "text/html";
16524
- let transformCaseFunc = null;
16525
- let CONFIG = null;
16526
- const formElement = document2.createElement("form");
16527
- const isRegexOrFunction = function isRegexOrFunction2(testValue) {
16528
- return testValue instanceof RegExp || testValue instanceof Function;
16529
- };
16530
- const _parseConfig = function _parseConfig2() {
16531
- let cfg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
16532
- if (CONFIG && CONFIG === cfg) {
16533
- return;
16534
- }
16535
- if (!cfg || typeof cfg !== "object") {
16536
- cfg = {};
16537
- }
16538
- cfg = clone(cfg);
16539
- PARSER_MEDIA_TYPE = // eslint-disable-next-line unicorn/prefer-includes
16540
- SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;
16541
- transformCaseFunc = PARSER_MEDIA_TYPE === "application/xhtml+xml" ? stringToString : stringToLowerCase;
16542
- ALLOWED_TAGS = objectHasOwnProperty(cfg, "ALLOWED_TAGS") ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
16543
- ALLOWED_ATTR = objectHasOwnProperty(cfg, "ALLOWED_ATTR") ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
16544
- ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, "ALLOWED_NAMESPACES") ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
16545
- URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, "ADD_URI_SAFE_ATTR") ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
16546
- DATA_URI_TAGS = objectHasOwnProperty(cfg, "ADD_DATA_URI_TAGS") ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
16547
- FORBID_CONTENTS = objectHasOwnProperty(cfg, "FORBID_CONTENTS") ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
16548
- FORBID_TAGS = objectHasOwnProperty(cfg, "FORBID_TAGS") ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
16549
- FORBID_ATTR = objectHasOwnProperty(cfg, "FORBID_ATTR") ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
16550
- USE_PROFILES = objectHasOwnProperty(cfg, "USE_PROFILES") ? cfg.USE_PROFILES : false;
16551
- ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false;
16552
- ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false;
16553
- ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false;
16554
- ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false;
16555
- SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false;
16556
- SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false;
16557
- WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false;
16558
- RETURN_DOM = cfg.RETURN_DOM || false;
16559
- RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false;
16560
- RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false;
16561
- FORCE_BODY = cfg.FORCE_BODY || false;
16562
- SANITIZE_DOM = cfg.SANITIZE_DOM !== false;
16563
- SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false;
16564
- KEEP_CONTENT = cfg.KEEP_CONTENT !== false;
16565
- IN_PLACE = cfg.IN_PLACE || false;
16566
- IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;
16567
- NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;
16568
- MATHML_TEXT_INTEGRATION_POINTS = cfg.MATHML_TEXT_INTEGRATION_POINTS || MATHML_TEXT_INTEGRATION_POINTS;
16569
- HTML_INTEGRATION_POINTS = cfg.HTML_INTEGRATION_POINTS || HTML_INTEGRATION_POINTS;
16570
- CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};
16571
- if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {
16572
- CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;
16573
- }
16574
- if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {
16575
- CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;
16576
- }
16577
- if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === "boolean") {
16578
- CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;
16579
- }
16580
- if (SAFE_FOR_TEMPLATES) {
16581
- ALLOW_DATA_ATTR = false;
16582
- }
16583
- if (RETURN_DOM_FRAGMENT) {
16584
- RETURN_DOM = true;
16585
- }
16586
- if (USE_PROFILES) {
16587
- ALLOWED_TAGS = addToSet({}, text);
16588
- ALLOWED_ATTR = [];
16589
- if (USE_PROFILES.html === true) {
16590
- addToSet(ALLOWED_TAGS, html$1);
16591
- addToSet(ALLOWED_ATTR, html);
16592
- }
16593
- if (USE_PROFILES.svg === true) {
16594
- addToSet(ALLOWED_TAGS, svg$1);
16595
- addToSet(ALLOWED_ATTR, svg);
16596
- addToSet(ALLOWED_ATTR, xml);
16597
- }
16598
- if (USE_PROFILES.svgFilters === true) {
16599
- addToSet(ALLOWED_TAGS, svgFilters);
16600
- addToSet(ALLOWED_ATTR, svg);
16601
- addToSet(ALLOWED_ATTR, xml);
16602
- }
16603
- if (USE_PROFILES.mathMl === true) {
16604
- addToSet(ALLOWED_TAGS, mathMl$1);
16605
- addToSet(ALLOWED_ATTR, mathMl);
16606
- addToSet(ALLOWED_ATTR, xml);
16607
- }
16608
- }
16609
- if (cfg.ADD_TAGS) {
16610
- if (typeof cfg.ADD_TAGS === "function") {
16611
- EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
16612
- } else {
16613
- if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
16614
- ALLOWED_TAGS = clone(ALLOWED_TAGS);
16615
- }
16616
- addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
16617
- }
16618
- }
16619
- if (cfg.ADD_ATTR) {
16620
- if (typeof cfg.ADD_ATTR === "function") {
16621
- EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
16622
- } else {
16623
- if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
16624
- ALLOWED_ATTR = clone(ALLOWED_ATTR);
16625
- }
16626
- addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
16627
- }
16628
- }
16629
- if (cfg.ADD_URI_SAFE_ATTR) {
16630
- addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
16631
- }
16632
- if (cfg.FORBID_CONTENTS) {
16633
- if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
16634
- FORBID_CONTENTS = clone(FORBID_CONTENTS);
16635
- }
16636
- addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
16637
- }
16638
- if (KEEP_CONTENT) {
16639
- ALLOWED_TAGS["#text"] = true;
16640
- }
16641
- if (WHOLE_DOCUMENT) {
16642
- addToSet(ALLOWED_TAGS, ["html", "head", "body"]);
16643
- }
16644
- if (ALLOWED_TAGS.table) {
16645
- addToSet(ALLOWED_TAGS, ["tbody"]);
16646
- delete FORBID_TAGS.tbody;
16647
- }
16648
- if (cfg.TRUSTED_TYPES_POLICY) {
16649
- if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== "function") {
16650
- throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
16651
- }
16652
- if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== "function") {
16653
- throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
16654
- }
16655
- trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
16656
- emptyHTML = trustedTypesPolicy.createHTML("");
16657
- } else {
16658
- if (trustedTypesPolicy === void 0) {
16659
- trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
16660
- }
16661
- if (trustedTypesPolicy !== null && typeof emptyHTML === "string") {
16662
- emptyHTML = trustedTypesPolicy.createHTML("");
16663
- }
16664
- }
16665
- if (freeze) {
16666
- freeze(cfg);
16667
- }
16668
- CONFIG = cfg;
16669
- };
16670
- const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
16671
- const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
16672
- const _checkValidNamespace = function _checkValidNamespace2(element) {
16673
- let parent = getParentNode2(element);
16674
- if (!parent || !parent.tagName) {
16675
- parent = {
16676
- namespaceURI: NAMESPACE,
16677
- tagName: "template"
16678
- };
16679
- }
16680
- const tagName = stringToLowerCase(element.tagName);
16681
- const parentTagName = stringToLowerCase(parent.tagName);
16682
- if (!ALLOWED_NAMESPACES[element.namespaceURI]) {
16683
- return false;
16684
- }
16685
- if (element.namespaceURI === SVG_NAMESPACE) {
16686
- if (parent.namespaceURI === HTML_NAMESPACE) {
16687
- return tagName === "svg";
16688
- }
16689
- if (parent.namespaceURI === MATHML_NAMESPACE) {
16690
- return tagName === "svg" && (parentTagName === "annotation-xml" || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
16691
- }
16692
- return Boolean(ALL_SVG_TAGS[tagName]);
16693
- }
16694
- if (element.namespaceURI === MATHML_NAMESPACE) {
16695
- if (parent.namespaceURI === HTML_NAMESPACE) {
16696
- return tagName === "math";
16697
- }
16698
- if (parent.namespaceURI === SVG_NAMESPACE) {
16699
- return tagName === "math" && HTML_INTEGRATION_POINTS[parentTagName];
16700
- }
16701
- return Boolean(ALL_MATHML_TAGS[tagName]);
16702
- }
16703
- if (element.namespaceURI === HTML_NAMESPACE) {
16704
- if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {
16705
- return false;
16706
- }
16707
- if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
16708
- return false;
16709
- }
16710
- return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
16711
- }
16712
- if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && ALLOWED_NAMESPACES[element.namespaceURI]) {
16713
- return true;
16714
- }
16715
- return false;
16716
- };
16717
- const _forceRemove = function _forceRemove2(node) {
16718
- arrayPush(DOMPurify.removed, {
16719
- element: node
16720
- });
16721
- try {
16722
- getParentNode2(node).removeChild(node);
16723
- } catch (_) {
16724
- remove(node);
16725
- }
16726
- };
16727
- const _removeAttribute = function _removeAttribute2(name, element) {
16728
- try {
16729
- arrayPush(DOMPurify.removed, {
16730
- attribute: element.getAttributeNode(name),
16731
- from: element
16732
- });
16733
- } catch (_) {
16734
- arrayPush(DOMPurify.removed, {
16735
- attribute: null,
16736
- from: element
16737
- });
16738
- }
16739
- element.removeAttribute(name);
16740
- if (name === "is") {
16741
- if (RETURN_DOM || RETURN_DOM_FRAGMENT) {
16742
- try {
16743
- _forceRemove(element);
16744
- } catch (_) {
16745
- }
16746
- } else {
16747
- try {
16748
- element.setAttribute(name, "");
16749
- } catch (_) {
16750
- }
16751
- }
16752
- }
16753
- };
16754
- const _initDocument = function _initDocument2(dirty) {
16755
- let doc = null;
16756
- let leadingWhitespace = null;
16757
- if (FORCE_BODY) {
16758
- dirty = "<remove></remove>" + dirty;
16759
- } else {
16760
- const matches2 = stringMatch(dirty, /^[\r\n\t ]+/);
16761
- leadingWhitespace = matches2 && matches2[0];
16762
- }
16763
- if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && NAMESPACE === HTML_NAMESPACE) {
16764
- dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + "</body></html>";
16765
- }
16766
- const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;
16767
- if (NAMESPACE === HTML_NAMESPACE) {
16768
- try {
16769
- doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);
16770
- } catch (_) {
16771
- }
16772
- }
16773
- if (!doc || !doc.documentElement) {
16774
- doc = implementation.createDocument(NAMESPACE, "template", null);
16775
- try {
16776
- doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;
16777
- } catch (_) {
16778
- }
16779
- }
16780
- const body = doc.body || doc.documentElement;
16781
- if (dirty && leadingWhitespace) {
16782
- body.insertBefore(document2.createTextNode(leadingWhitespace), body.childNodes[0] || null);
16783
- }
16784
- if (NAMESPACE === HTML_NAMESPACE) {
16785
- return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? "html" : "body")[0];
16786
- }
16787
- return WHOLE_DOCUMENT ? doc.documentElement : body;
16788
- };
16789
- const _createNodeIterator = function _createNodeIterator2(root2) {
16790
- return createNodeIterator.call(
16791
- root2.ownerDocument || root2,
16792
- root2,
16793
- // eslint-disable-next-line no-bitwise
16794
- NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION,
16795
- null
16796
- );
16797
- };
16798
- const _isClobbered = function _isClobbered2(element) {
16799
- return element instanceof HTMLFormElement && (typeof element.nodeName !== "string" || typeof element.textContent !== "string" || typeof element.removeChild !== "function" || !(element.attributes instanceof NamedNodeMap) || typeof element.removeAttribute !== "function" || typeof element.setAttribute !== "function" || typeof element.namespaceURI !== "string" || typeof element.insertBefore !== "function" || typeof element.hasChildNodes !== "function");
16800
- };
16801
- const _isNode = function _isNode2(value) {
16802
- return typeof Node2 === "function" && value instanceof Node2;
16803
- };
16804
- function _executeHooks(hooks2, currentNode, data) {
16805
- arrayForEach(hooks2, (hook) => {
16806
- hook.call(DOMPurify, currentNode, data, CONFIG);
16807
- });
16808
- }
16809
- const _sanitizeElements = function _sanitizeElements2(currentNode) {
16810
- let content = null;
16811
- _executeHooks(hooks.beforeSanitizeElements, currentNode, null);
16812
- if (_isClobbered(currentNode)) {
16813
- _forceRemove(currentNode);
16814
- return true;
16815
- }
16816
- const tagName = transformCaseFunc(currentNode.nodeName);
16817
- _executeHooks(hooks.uponSanitizeElement, currentNode, {
16818
- tagName,
16819
- allowedTags: ALLOWED_TAGS
16820
- });
16821
- if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
16822
- _forceRemove(currentNode);
16823
- return true;
16824
- }
16825
- if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
16826
- _forceRemove(currentNode);
16827
- return true;
16828
- }
16829
- if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, currentNode.data)) {
16830
- _forceRemove(currentNode);
16831
- return true;
16832
- }
16833
- if (!(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName])) {
16834
- if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
16835
- if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
16836
- return false;
16837
- }
16838
- if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {
16839
- return false;
16840
- }
16841
- }
16842
- if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
16843
- const parentNode = getParentNode2(currentNode) || currentNode.parentNode;
16844
- const childNodes = getChildNodes(currentNode) || currentNode.childNodes;
16845
- if (childNodes && parentNode) {
16846
- const childCount = childNodes.length;
16847
- for (let i = childCount - 1; i >= 0; --i) {
16848
- const childClone = cloneNode(childNodes[i], true);
16849
- childClone.__removalCount = (currentNode.__removalCount || 0) + 1;
16850
- parentNode.insertBefore(childClone, getNextSibling(currentNode));
16851
- }
16852
- }
16853
- }
16854
- _forceRemove(currentNode);
16855
- return true;
16856
- }
16857
- if (currentNode instanceof Element2 && !_checkValidNamespace(currentNode)) {
16858
- _forceRemove(currentNode);
16859
- return true;
16860
- }
16861
- if ((tagName === "noscript" || tagName === "noembed" || tagName === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, currentNode.innerHTML)) {
16862
- _forceRemove(currentNode);
16863
- return true;
16864
- }
16865
- if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
16866
- content = currentNode.textContent;
16867
- arrayForEach([MUSTACHE_EXPR2, ERB_EXPR2, TMPLIT_EXPR2], (expr) => {
16868
- content = stringReplace(content, expr, " ");
16869
- });
16870
- if (currentNode.textContent !== content) {
16871
- arrayPush(DOMPurify.removed, {
16872
- element: currentNode.cloneNode()
16873
- });
16874
- currentNode.textContent = content;
16875
- }
16876
- }
16877
- _executeHooks(hooks.afterSanitizeElements, currentNode, null);
16878
- return false;
16879
- };
16880
- const _isValidAttribute = function _isValidAttribute2(lcTag, lcName, value) {
16881
- if (SANITIZE_DOM && (lcName === "id" || lcName === "name") && (value in document2 || value in formElement)) {
16882
- return false;
16883
- }
16884
- if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR2, lcName)) ;
16885
- else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR2, lcName)) ;
16886
- else if (EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag)) ;
16887
- else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
16888
- if (
16889
- // First condition does a very basic check if a) it's basically a valid custom element tagname AND
16890
- // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
16891
- // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
16892
- _isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName, lcTag)) || // Alternative, second condition checks if it's an `is`-attribute, AND
16893
- // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
16894
- lcName === "is" && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))
16895
- ) ;
16896
- else {
16897
- return false;
16898
- }
16899
- } else if (URI_SAFE_ATTRIBUTES[lcName]) ;
16900
- else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE2, ""))) ;
16901
- else if ((lcName === "src" || lcName === "xlink:href" || lcName === "href") && lcTag !== "script" && stringIndexOf(value, "data:") === 0 && DATA_URI_TAGS[lcTag]) ;
16902
- else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA2, stringReplace(value, ATTR_WHITESPACE2, ""))) ;
16903
- else if (value) {
16904
- return false;
16905
- } else ;
16906
- return true;
16907
- };
16908
- const _isBasicCustomElement = function _isBasicCustomElement2(tagName) {
16909
- return tagName !== "annotation-xml" && stringMatch(tagName, CUSTOM_ELEMENT2);
16910
- };
16911
- const _sanitizeAttributes = function _sanitizeAttributes2(currentNode) {
16912
- _executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
16913
- const {
16914
- attributes
16915
- } = currentNode;
16916
- if (!attributes || _isClobbered(currentNode)) {
16917
- return;
16918
- }
16919
- const hookEvent = {
16920
- attrName: "",
16921
- attrValue: "",
16922
- keepAttr: true,
16923
- allowedAttributes: ALLOWED_ATTR,
16924
- forceKeepAttr: void 0
16925
- };
16926
- let l = attributes.length;
16927
- while (l--) {
16928
- const attr = attributes[l];
16929
- const {
16930
- name,
16931
- namespaceURI,
16932
- value: attrValue
16933
- } = attr;
16934
- const lcName = transformCaseFunc(name);
16935
- const initValue = attrValue;
16936
- let value = name === "value" ? initValue : stringTrim(initValue);
16937
- hookEvent.attrName = lcName;
16938
- hookEvent.attrValue = value;
16939
- hookEvent.keepAttr = true;
16940
- hookEvent.forceKeepAttr = void 0;
16941
- _executeHooks(hooks.uponSanitizeAttribute, currentNode, hookEvent);
16942
- value = hookEvent.attrValue;
16943
- if (SANITIZE_NAMED_PROPS && (lcName === "id" || lcName === "name")) {
16944
- _removeAttribute(name, currentNode);
16945
- value = SANITIZE_NAMED_PROPS_PREFIX + value;
16946
- }
16947
- if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, value)) {
16948
- _removeAttribute(name, currentNode);
16949
- continue;
16950
- }
16951
- if (lcName === "attributename" && stringMatch(value, "href")) {
16952
- _removeAttribute(name, currentNode);
16953
- continue;
16954
- }
16955
- if (hookEvent.forceKeepAttr) {
16956
- continue;
16957
- }
16958
- if (!hookEvent.keepAttr) {
16959
- _removeAttribute(name, currentNode);
16960
- continue;
16961
- }
16962
- if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) {
16963
- _removeAttribute(name, currentNode);
16964
- continue;
16965
- }
16966
- if (SAFE_FOR_TEMPLATES) {
16967
- arrayForEach([MUSTACHE_EXPR2, ERB_EXPR2, TMPLIT_EXPR2], (expr) => {
16968
- value = stringReplace(value, expr, " ");
16969
- });
16970
- }
16971
- const lcTag = transformCaseFunc(currentNode.nodeName);
16972
- if (!_isValidAttribute(lcTag, lcName, value)) {
16973
- _removeAttribute(name, currentNode);
16974
- continue;
16975
- }
16976
- if (trustedTypesPolicy && typeof trustedTypes === "object" && typeof trustedTypes.getAttributeType === "function") {
16977
- if (namespaceURI) ;
16978
- else {
16979
- switch (trustedTypes.getAttributeType(lcTag, lcName)) {
16980
- case "TrustedHTML": {
16981
- value = trustedTypesPolicy.createHTML(value);
16982
- break;
16983
- }
16984
- case "TrustedScriptURL": {
16985
- value = trustedTypesPolicy.createScriptURL(value);
16986
- break;
16987
- }
16988
- }
16989
- }
16990
- }
16991
- if (value !== initValue) {
16992
- try {
16993
- if (namespaceURI) {
16994
- currentNode.setAttributeNS(namespaceURI, name, value);
16995
- } else {
16996
- currentNode.setAttribute(name, value);
16997
- }
16998
- if (_isClobbered(currentNode)) {
16999
- _forceRemove(currentNode);
17000
- } else {
17001
- arrayPop(DOMPurify.removed);
17002
- }
17003
- } catch (_) {
17004
- _removeAttribute(name, currentNode);
17005
- }
17006
- }
17007
- }
17008
- _executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
17009
- };
17010
- const _sanitizeShadowDOM = function _sanitizeShadowDOM2(fragment) {
17011
- let shadowNode = null;
17012
- const shadowIterator = _createNodeIterator(fragment);
17013
- _executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
17014
- while (shadowNode = shadowIterator.nextNode()) {
17015
- _executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
17016
- _sanitizeElements(shadowNode);
17017
- _sanitizeAttributes(shadowNode);
17018
- if (shadowNode.content instanceof DocumentFragment) {
17019
- _sanitizeShadowDOM2(shadowNode.content);
17020
- }
17021
- }
17022
- _executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
17023
- };
17024
- DOMPurify.sanitize = function(dirty) {
17025
- let cfg = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
17026
- let body = null;
17027
- let importedNode = null;
17028
- let currentNode = null;
17029
- let returnNode = null;
17030
- IS_EMPTY_INPUT = !dirty;
17031
- if (IS_EMPTY_INPUT) {
17032
- dirty = "<!-->";
17033
- }
17034
- if (typeof dirty !== "string" && !_isNode(dirty)) {
17035
- if (typeof dirty.toString === "function") {
17036
- dirty = dirty.toString();
17037
- if (typeof dirty !== "string") {
17038
- throw typeErrorCreate("dirty is not a string, aborting");
17039
- }
17040
- } else {
17041
- throw typeErrorCreate("toString is not a function");
17042
- }
17043
- }
17044
- if (!DOMPurify.isSupported) {
17045
- return dirty;
17046
- }
17047
- if (!SET_CONFIG) {
17048
- _parseConfig(cfg);
17049
- }
17050
- DOMPurify.removed = [];
17051
- if (typeof dirty === "string") {
17052
- IN_PLACE = false;
17053
- }
17054
- if (IN_PLACE) {
17055
- if (dirty.nodeName) {
17056
- const tagName = transformCaseFunc(dirty.nodeName);
17057
- if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
17058
- throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
17059
- }
17060
- }
17061
- } else if (dirty instanceof Node2) {
17062
- body = _initDocument("<!---->");
17063
- importedNode = body.ownerDocument.importNode(dirty, true);
17064
- if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === "BODY") {
17065
- body = importedNode;
17066
- } else if (importedNode.nodeName === "HTML") {
17067
- body = importedNode;
17068
- } else {
17069
- body.appendChild(importedNode);
17070
- }
17071
- } else {
17072
- if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && // eslint-disable-next-line unicorn/prefer-includes
17073
- dirty.indexOf("<") === -1) {
17074
- return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;
17075
- }
17076
- body = _initDocument(dirty);
17077
- if (!body) {
17078
- return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : "";
17079
- }
17080
- }
17081
- if (body && FORCE_BODY) {
17082
- _forceRemove(body.firstChild);
17083
- }
17084
- const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);
17085
- while (currentNode = nodeIterator.nextNode()) {
17086
- _sanitizeElements(currentNode);
17087
- _sanitizeAttributes(currentNode);
17088
- if (currentNode.content instanceof DocumentFragment) {
17089
- _sanitizeShadowDOM(currentNode.content);
17090
- }
17091
- }
17092
- if (IN_PLACE) {
17093
- return dirty;
17094
- }
17095
- if (RETURN_DOM) {
17096
- if (RETURN_DOM_FRAGMENT) {
17097
- returnNode = createDocumentFragment.call(body.ownerDocument);
17098
- while (body.firstChild) {
17099
- returnNode.appendChild(body.firstChild);
17100
- }
17101
- } else {
17102
- returnNode = body;
17103
- }
17104
- if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {
17105
- returnNode = importNode.call(originalDocument, returnNode, true);
17106
- }
17107
- return returnNode;
17108
- }
17109
- let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
17110
- if (WHOLE_DOCUMENT && ALLOWED_TAGS["!doctype"] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {
17111
- serializedHTML = "<!DOCTYPE " + body.ownerDocument.doctype.name + ">\n" + serializedHTML;
17112
- }
17113
- if (SAFE_FOR_TEMPLATES) {
17114
- arrayForEach([MUSTACHE_EXPR2, ERB_EXPR2, TMPLIT_EXPR2], (expr) => {
17115
- serializedHTML = stringReplace(serializedHTML, expr, " ");
17116
- });
17117
- }
17118
- return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;
17119
- };
17120
- DOMPurify.setConfig = function() {
17121
- let cfg = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
17122
- _parseConfig(cfg);
17123
- SET_CONFIG = true;
17124
- };
17125
- DOMPurify.clearConfig = function() {
17126
- CONFIG = null;
17127
- SET_CONFIG = false;
17128
- };
17129
- DOMPurify.isValidAttribute = function(tag, attr, value) {
17130
- if (!CONFIG) {
17131
- _parseConfig({});
17132
- }
17133
- const lcTag = transformCaseFunc(tag);
17134
- const lcName = transformCaseFunc(attr);
17135
- return _isValidAttribute(lcTag, lcName, value);
17136
- };
17137
- DOMPurify.addHook = function(entryPoint, hookFunction) {
17138
- if (typeof hookFunction !== "function") {
17139
- return;
17140
- }
17141
- arrayPush(hooks[entryPoint], hookFunction);
17142
- };
17143
- DOMPurify.removeHook = function(entryPoint, hookFunction) {
17144
- if (hookFunction !== void 0) {
17145
- const index2 = arrayLastIndexOf(hooks[entryPoint], hookFunction);
17146
- return index2 === -1 ? void 0 : arraySplice(hooks[entryPoint], index2, 1)[0];
17147
- }
17148
- return arrayPop(hooks[entryPoint]);
17149
- };
17150
- DOMPurify.removeHooks = function(entryPoint) {
17151
- hooks[entryPoint] = [];
17152
- };
17153
- DOMPurify.removeAllHooks = function() {
17154
- hooks = _createHooksMap();
17155
- };
17156
- return DOMPurify;
17157
- }
17158
- var purify = createDOMPurify();
17159
16153
  function isFunction$1(value) {
17160
16154
  return typeof value === "function";
17161
16155
  }
@@ -18020,9 +17014,9 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
18020
17014
  if (!node$) return;
18021
17015
  return createSubscriber((update) => {
18022
17016
  if (!this.#window) return;
18023
- const observer = new this.#window.ResizeObserver((entries2) => {
17017
+ const observer = new this.#window.ResizeObserver((entries) => {
18024
17018
  this.#observed = true;
18025
- for (const entry of entries2) {
17019
+ for (const entry of entries) {
18026
17020
  const boxSize = this.#options.box === "content-box" ? entry.contentBoxSize : entry.borderBoxSize;
18027
17021
  const boxSizeArr = Array.isArray(boxSize) ? boxSize : [boxSize];
18028
17022
  this.#size.width = boxSizeArr.reduce((acc, size2) => Math.max(acc, size2.inlineSize), 0);
@@ -22442,9 +21436,9 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
22442
21436
  append($$anchor3, fragment_2);
22443
21437
  };
22444
21438
  var alternate = ($$anchor3) => {
22445
- var text2 = text$1();
22446
- template_effect(() => set_text(text2, dayState.cell.opts.date.current.day));
22447
- append($$anchor3, text2);
21439
+ var text$1 = text();
21440
+ template_effect(() => set_text(text$1, dayState.cell.opts.date.current.day));
21441
+ append($$anchor3, text$1);
22448
21442
  };
22449
21443
  if_block(node_2, ($$render) => {
22450
21444
  if (children()) $$render(consequent_1);
@@ -23095,9 +22089,9 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
23095
22089
  append($$anchor3, fragment_2);
23096
22090
  };
23097
22091
  var alternate = ($$anchor3) => {
23098
- var text2 = text$1();
23099
- template_effect(() => set_text(text2, headingState.root.headingValue));
23100
- append($$anchor3, text2);
22092
+ var text$1 = text();
22093
+ template_effect(() => set_text(text$1, headingState.root.headingValue));
22094
+ append($$anchor3, text$1);
23101
22095
  };
23102
22096
  if_block(node_2, ($$render) => {
23103
22097
  if (children()) $$render(consequent_1);
@@ -24101,7 +23095,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
24101
23095
  elements
24102
23096
  } = state2;
24103
23097
  const {
24104
- apply: apply2 = () => {
23098
+ apply = () => {
24105
23099
  },
24106
23100
  ...detectOverflowOptions
24107
23101
  } = evaluate(options, state2);
@@ -24146,7 +23140,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
24146
23140
  availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
24147
23141
  }
24148
23142
  }
24149
- await apply2({
23143
+ await apply({
24150
23144
  ...state2,
24151
23145
  availableWidth,
24152
23146
  availableHeight
@@ -24800,8 +23794,8 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
24800
23794
  threshold: max(0, min(1, threshold)) || 1
24801
23795
  };
24802
23796
  let isFirstUpdate = true;
24803
- function handleObserve(entries2) {
24804
- const ratio = entries2[0].intersectionRatio;
23797
+ function handleObserve(entries) {
23798
+ const ratio = entries[0].intersectionRatio;
24805
23799
  if (ratio !== threshold) {
24806
23800
  if (!isFirstUpdate) {
24807
23801
  return refresh();
@@ -29929,7 +28923,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
29929
28923
  var root_2$8 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
29930
28924
  var root_7$3 = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
29931
28925
  var root_9$2 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
29932
- var root_6$1 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
28926
+ var root_6$2 = /* @__PURE__ */ from_html(`<!> <!>`, 1);
29933
28927
  var root_1$b = /* @__PURE__ */ from_html(`<!> <!> <!>`, 1);
29934
28928
  function DatePicker_1($$anchor, $$props) {
29935
28929
  push($$props, true);
@@ -29999,9 +28993,9 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
29999
28993
  },
30000
28994
  children: ($$anchor7, $$slotProps2) => {
30001
28995
  next();
30002
- var text2 = text$1();
30003
- template_effect(() => set_text(text2, value()));
30004
- append($$anchor7, text2);
28996
+ var text$1 = text();
28997
+ template_effect(() => set_text(text$1, value()));
28998
+ append($$anchor7, text$1);
30005
28999
  },
30006
29000
  $$slots: { default: true }
30007
29001
  });
@@ -30034,7 +29028,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30034
29028
  const children = ($$anchor6, $$arg0) => {
30035
29029
  let months = () => $$arg0?.().months;
30036
29030
  let weekdays = () => $$arg0?.().weekdays;
30037
- var fragment_6 = root_6$1();
29031
+ var fragment_6 = root_6$2();
30038
29032
  var node_8 = first_child(fragment_6);
30039
29033
  component(node_8, () => Calendar_header, ($$anchor7, DatePicker_Header) => {
30040
29034
  DatePicker_Header($$anchor7, {
@@ -30083,7 +29077,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30083
29077
  DatePicker_HeadCell($$anchor15, {
30084
29078
  children: ($$anchor16, $$slotProps6) => {
30085
29079
  next();
30086
- var text_1 = text$1();
29080
+ var text_1 = text();
30087
29081
  template_effect(() => set_text(text_1, get$2(day)));
30088
29082
  append($$anchor16, text_1);
30089
29083
  },
@@ -30180,38 +29174,40 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30180
29174
  }
30181
29175
  create_custom_element(DatePicker_1, { dateString: {}, labelClass: {}, inputClass: {} }, [], [], true);
30182
29176
  var root_2$7 = /* @__PURE__ */ from_html(`<span class="go-field-star" aria-hidden="true">*</span>`);
30183
- var root_1$a = /* @__PURE__ */ from_html(`<!> <!>`, 1);
29177
+ var root_1$a = /* @__PURE__ */ from_html(` <!>`, 1);
30184
29178
  var root_3$4 = /* @__PURE__ */ from_html(`<label><!></label> <input/>`, 1);
30185
29179
  var root_4$2 = /* @__PURE__ */ from_html(`<label><input/> <span class="go-checkbox-label"><!></span></label>`);
30186
29180
  var root_7$2 = /* @__PURE__ */ from_html(`<option> </option>`);
29181
+ var root_6$1 = /* @__PURE__ */ from_html(`<option disabled hidden="" selected> </option> <!>`, 1);
30187
29182
  var root_5$1 = /* @__PURE__ */ from_html(`<label><!></label> <select><!></select>`, 1);
30188
29183
  var root_11$2 = /* @__PURE__ */ from_html(`<label> <input/></label>`);
30189
29184
  var root_9$1 = /* @__PURE__ */ from_html(`<fieldset><legend><!></legend> <!></fieldset>`);
30190
29185
  function InputAndLabel($$anchor, $$props) {
30191
29186
  push($$props, true);
30192
29187
  const labelText = ($$anchor2) => {
29188
+ next();
30193
29189
  var fragment = root_1$a();
30194
- var node = first_child(fragment);
30195
- html$2(node, () => purify.sanitize(field().label));
30196
- var node_1 = sibling(node, 2);
29190
+ var text2 = first_child(fragment);
29191
+ var node = sibling(text2);
30197
29192
  {
30198
29193
  var consequent = ($$anchor3) => {
30199
29194
  var span = root_2$7();
30200
29195
  append($$anchor3, span);
30201
29196
  };
30202
- if_block(node_1, ($$render) => {
29197
+ if_block(node, ($$render) => {
30203
29198
  if (field().required) $$render(consequent);
30204
29199
  });
30205
29200
  }
29201
+ template_effect(() => set_text(text2, `${get$2(label) ?? ""} `));
30206
29202
  append($$anchor2, fragment);
30207
29203
  };
30208
29204
  const input = ($$anchor2) => {
30209
29205
  var fragment_1 = root_3$4();
30210
- var label = first_child(fragment_1);
30211
- var node_2 = child(label);
30212
- labelText(node_2);
30213
- reset(label);
30214
- var input_1 = sibling(label, 2);
29206
+ var label_1 = first_child(fragment_1);
29207
+ var node_1 = child(label_1);
29208
+ labelText(node_1);
29209
+ reset(label_1);
29210
+ var input_1 = sibling(label_1, 2);
30215
29211
  attribute_effect(
30216
29212
  input_1,
30217
29213
  () => ({
@@ -30229,15 +29225,15 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30229
29225
  true
30230
29226
  );
30231
29227
  template_effect(() => {
30232
- set_class(label, 1, clsx(labelClass()));
30233
- set_attribute(label, "for", get$2(inputId));
29228
+ set_class(label_1, 1, clsx(labelClass()));
29229
+ set_attribute(label_1, "for", get$2(inputId));
30234
29230
  });
30235
29231
  bind_value(input_1, () => field().value, ($$value) => field(field().value = $$value, true));
30236
29232
  append($$anchor2, fragment_1);
30237
29233
  };
30238
29234
  const checkbox = ($$anchor2) => {
30239
- var label_1 = root_4$2();
30240
- var input_2 = child(label_1);
29235
+ var label_2 = root_4$2();
29236
+ var input_2 = child(label_2);
30241
29237
  var event_handler = (e) => field(field().value = e.target.checked, true);
30242
29238
  attribute_effect(
30243
29239
  input_2,
@@ -30255,57 +29251,62 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30255
29251
  true
30256
29252
  );
30257
29253
  var span_1 = sibling(input_2, 2);
30258
- var node_3 = child(span_1);
30259
- labelText(node_3);
29254
+ var node_2 = child(span_1);
29255
+ labelText(node_2);
30260
29256
  reset(span_1);
30261
- reset(label_1);
29257
+ reset(label_2);
30262
29258
  template_effect(() => {
30263
- set_class(label_1, 1, clsx(labelClass()));
30264
- set_attribute(label_1, "for", get$2(inputId));
29259
+ set_class(label_2, 1, clsx(labelClass()));
29260
+ set_attribute(label_2, "for", get$2(inputId));
30265
29261
  });
30266
- append($$anchor2, label_1);
29262
+ append($$anchor2, label_2);
30267
29263
  };
30268
29264
  const select = ($$anchor2) => {
30269
29265
  var fragment_2 = root_5$1();
30270
- var label_2 = first_child(fragment_2);
30271
- var node_4 = child(label_2);
30272
- labelText(node_4);
30273
- reset(label_2);
30274
- var select_1 = sibling(label_2, 2);
29266
+ var label_3 = first_child(fragment_2);
29267
+ var node_3 = child(label_3);
29268
+ labelText(node_3);
29269
+ reset(label_3);
29270
+ var select_1 = sibling(label_3, 2);
30275
29271
  attribute_effect(select_1, () => ({
30276
29272
  ...get$2(fieldAttributes),
30277
29273
  ...restProps,
30278
29274
  name: field().key,
30279
29275
  class: inputClass()
30280
29276
  }));
30281
- var node_5 = child(select_1);
29277
+ var node_4 = child(select_1);
30282
29278
  {
30283
29279
  var consequent_1 = ($$anchor3) => {
30284
- var fragment_3 = comment();
30285
- var node_6 = first_child(fragment_3);
30286
- each(node_6, 17, () => field().options(), index$1, ($$anchor4, option) => {
30287
- var option_1 = root_7$2();
30288
- var text2 = child(option_1, true);
30289
- reset(option_1);
30290
- var option_1_value = {};
29280
+ var fragment_3 = root_6$1();
29281
+ var option_1 = first_child(fragment_3);
29282
+ var text_1 = child(option_1, true);
29283
+ reset(option_1);
29284
+ option_1.value = option_1.__value = "";
29285
+ var node_5 = sibling(option_1, 2);
29286
+ each(node_5, 17, () => field().options(), index$1, ($$anchor4, option) => {
29287
+ var option_2 = root_7$2();
29288
+ var text_2 = child(option_2, true);
29289
+ reset(option_2);
29290
+ var option_2_value = {};
30291
29291
  template_effect(() => {
30292
- set_text(text2, get$2(option).label);
30293
- if (option_1_value !== (option_1_value = get$2(option).value)) {
30294
- option_1.value = (option_1.__value = get$2(option).value) ?? "";
29292
+ set_text(text_2, get$2(option).label);
29293
+ if (option_2_value !== (option_2_value = get$2(option).value)) {
29294
+ option_2.value = (option_2.__value = get$2(option).value) ?? "";
30295
29295
  }
30296
29296
  });
30297
- append($$anchor4, option_1);
29297
+ append($$anchor4, option_2);
30298
29298
  });
29299
+ template_effect(($0) => set_text(text_1, $0), [() => shop.t("common.choose")]);
30299
29300
  append($$anchor3, fragment_3);
30300
29301
  };
30301
- if_block(node_5, ($$render) => {
29302
+ if_block(node_4, ($$render) => {
30302
29303
  if (field().options) $$render(consequent_1);
30303
29304
  });
30304
29305
  }
30305
29306
  reset(select_1);
30306
29307
  template_effect(() => {
30307
- set_class(label_2, 1, clsx(labelClass()));
30308
- set_attribute(label_2, "for", get$2(inputId));
29308
+ set_class(label_3, 1, clsx(labelClass()));
29309
+ set_attribute(label_3, "for", get$2(inputId));
30309
29310
  });
30310
29311
  bind_select_value(select_1, () => field().value, ($$value) => field(field().value = $$value, true));
30311
29312
  append($$anchor2, fragment_2);
@@ -30329,18 +29330,18 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30329
29330
  const radio = ($$anchor2) => {
30330
29331
  var fieldset = root_9$1();
30331
29332
  var legend = child(fieldset);
30332
- var node_7 = child(legend);
30333
- labelText(node_7);
29333
+ var node_6 = child(legend);
29334
+ labelText(node_6);
30334
29335
  reset(legend);
30335
- var node_8 = sibling(legend, 2);
29336
+ var node_7 = sibling(legend, 2);
30336
29337
  {
30337
29338
  var consequent_2 = ($$anchor3) => {
30338
29339
  var fragment_5 = comment();
30339
- var node_9 = first_child(fragment_5);
30340
- each(node_9, 17, () => field().options, index$1, ($$anchor4, option) => {
30341
- var label_3 = root_11$2();
30342
- var text_1 = child(label_3);
30343
- var input_3 = sibling(text_1);
29340
+ var node_8 = first_child(fragment_5);
29341
+ each(node_8, 17, () => field().options, index$1, ($$anchor4, option) => {
29342
+ var label_4 = root_11$2();
29343
+ var text_3 = child(label_4);
29344
+ var input_3 = sibling(text_3);
30344
29345
  attribute_effect(
30345
29346
  input_3,
30346
29347
  () => ({
@@ -30355,18 +29356,18 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30355
29356
  void 0,
30356
29357
  true
30357
29358
  );
30358
- reset(label_3);
29359
+ reset(label_4);
30359
29360
  template_effect(() => {
30360
- set_class(label_3, 1, clsx(labelClass()));
30361
- set_attribute(label_3, "for", get$2(inputId) + get$2(option));
30362
- set_text(text_1, `${get$2(option) ?? ""} `);
29361
+ set_class(label_4, 1, clsx(labelClass()));
29362
+ set_attribute(label_4, "for", get$2(inputId) + get$2(option));
29363
+ set_text(text_3, `${get$2(option) ?? ""} `);
30363
29364
  });
30364
29365
  bind_value(input_3, () => field().value, ($$value) => field(field().value = $$value, true));
30365
- append($$anchor4, label_3);
29366
+ append($$anchor4, label_4);
30366
29367
  });
30367
29368
  append($$anchor3, fragment_5);
30368
29369
  };
30369
- if_block(node_8, ($$render) => {
29370
+ if_block(node_7, ($$render) => {
30370
29371
  if (field().options) $$render(consequent_2);
30371
29372
  });
30372
29373
  }
@@ -30417,6 +29418,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30417
29418
  autocomplete: field().autocomplete,
30418
29419
  onblur
30419
29420
  }));
29421
+ let label = /* @__PURE__ */ user_derived(() => shop.t(field().label) || field().label);
30420
29422
  var $$exports = {
30421
29423
  get field() {
30422
29424
  return field();
@@ -30455,15 +29457,15 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30455
29457
  }
30456
29458
  };
30457
29459
  var fragment_6 = comment();
30458
- var node_10 = first_child(fragment_6);
29460
+ var node_9 = first_child(fragment_6);
30459
29461
  {
30460
29462
  var consequent_3 = ($$anchor2) => {
30461
29463
  var fragment_7 = comment();
30462
- var node_11 = first_child(fragment_7);
30463
- snippet(node_11, () => get$2(snippet$1));
29464
+ var node_10 = first_child(fragment_7);
29465
+ snippet(node_10, () => get$2(snippet$1));
30464
29466
  append($$anchor2, fragment_7);
30465
29467
  };
30466
- if_block(node_10, ($$render) => {
29468
+ if_block(node_9, ($$render) => {
30467
29469
  if (get$2(snippet$1)) $$render(consequent_3);
30468
29470
  });
30469
29471
  }
@@ -30500,7 +29502,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30500
29502
  });
30501
29503
  });
30502
29504
  const getField = () => get$2(field);
30503
- let allErrors = /* @__PURE__ */ user_derived(() => get$2(field) ? [...get$2(field).errors, ...get$2(field).apiErrors] : []);
29505
+ let allErrors = /* @__PURE__ */ user_derived(() => get$2(field) ? [...get$2(field).errors, ...get$2(field).apiErrors].map((e) => shop.t(e)) : []);
30504
29506
  let descriptionId = /* @__PURE__ */ user_derived(() => `go-description-${Math.random().toString(36).substring(2, 9)}`);
30505
29507
  let errorsId = /* @__PURE__ */ user_derived(() => `go-errors-${Math.random().toString(36).substring(2, 9)}`);
30506
29508
  let describedById = /* @__PURE__ */ user_derived(() => get$2(descriptionId) + " " + get$2(errorsId));
@@ -30508,6 +29510,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30508
29510
  $$props.$$host.classList.toggle("go-field", true);
30509
29511
  $$props.$$host.classList.toggle("is-invalid", get$2(allErrors).length > 0);
30510
29512
  });
29513
+ $$props.$$host.dataset.testid = key();
30511
29514
  user_effect(() => {
30512
29515
  if (!get$2(field)) return;
30513
29516
  get$2(field).mounted = true;
@@ -30665,9 +29668,11 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30665
29668
  {
30666
29669
  var consequent = ($$anchor3) => {
30667
29670
  var p2 = root_2$5();
30668
- var text2 = child(p2);
29671
+ var text2 = child(p2, true);
30669
29672
  reset(p2);
30670
- template_effect(() => set_text(text2, `Failed to save because ${get$2(errorsOnSubmit) ?? ""} fields are invalid.`));
29673
+ template_effect(($0) => set_text(text2, $0), [
29674
+ () => shop.t("forms.errorSummary", { count: get$2(errorsOnSubmit) })
29675
+ ]);
30671
29676
  append($$anchor3, p2);
30672
29677
  };
30673
29678
  if_block(node_1, ($$render) => {
@@ -30696,9 +29701,11 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
30696
29701
  {
30697
29702
  var consequent_2 = ($$anchor3) => {
30698
29703
  var p_1 = root_5();
30699
- var text_2 = child(p_1);
29704
+ var text_2 = child(p_1, true);
30700
29705
  reset(p_1);
30701
- template_effect(() => set_text(text_2, `Failed to save because ${get$2(errorsRealtime) ?? ""} fields are invalid.`));
29706
+ template_effect(($0) => set_text(text_2, $0), [
29707
+ () => shop.t("forms.errorSummary", { count: get$2(errorsRealtime) })
29708
+ ]);
30702
29709
  append($$anchor3, p_1);
30703
29710
  };
30704
29711
  if_block(node_3, ($$render) => {
@@ -31529,9 +30536,9 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31529
30536
  const orderDetails = /* @__PURE__ */ user_derived(() => _orderDetails.value);
31530
30537
  let order = /* @__PURE__ */ user_derived(() => get$2(orderDetails)?.order);
31531
30538
  next();
31532
- var text2 = text$1();
31533
- template_effect(() => set_text(text2, get$2(order)?.id));
31534
- append($$anchor, text2);
30539
+ var text$1 = text();
30540
+ template_effect(() => set_text(text$1, get$2(order)?.id));
30541
+ append($$anchor, text$1);
31535
30542
  pop();
31536
30543
  }
31537
30544
  customElements.define("go-order-invoice-id", create_custom_element(InvoiceId, {}, [], [], false));
@@ -31686,9 +30693,9 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31686
30693
  const tsd = /* @__PURE__ */ user_derived(() => _tsd.value);
31687
30694
  let val = /* @__PURE__ */ user_derived(() => sum(get$2(tsd)?.preCarts || [], (c) => c.totalPriceCents));
31688
30695
  next();
31689
- var text2 = text$1();
31690
- template_effect(($0) => set_text(text2, $0), [() => formatCurrency(get$2(val))]);
31691
- append($$anchor, text2);
30696
+ var text$1 = text();
30697
+ template_effect(($0) => set_text(text$1, $0), [() => formatCurrency(get$2(val))]);
30698
+ append($$anchor, text$1);
31692
30699
  pop();
31693
30700
  }
31694
30701
  customElements.define("go-tickets-sum", create_custom_element(TicketsSum, {}, [], [], false));
@@ -31993,7 +31000,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31993
31000
  return options;
31994
31001
  }
31995
31002
  var root_2$2 = /* @__PURE__ */ from_html(`<option> </option>`);
31996
- var root_1$3 = /* @__PURE__ */ from_html(`<li><article data-go-ticket=""><ul><li data-go-tickets-title=""> </li> <li data-go-tickets-description=""><!></li> <li data-go-tickets-price=""> </li> <li data-go-tickets-quality=""><select></select></li></ul></article></li>`);
31003
+ var root_1$3 = /* @__PURE__ */ from_html(`<li><article data-go-ticket=""><ul><li class="go-tickets-item-title" data-go-tickets-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>`);
31997
31004
  function Item($$anchor, $$props) {
31998
31005
  push($$props, true);
31999
31006
  let item = prop($$props, "item", 7), details = prop($$props, "details", 7);
@@ -32038,7 +31045,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32038
31045
  reset(li_1);
32039
31046
  var li_2 = sibling(li_1, 2);
32040
31047
  var node_1 = child(li_2);
32041
- html$2(node_1, () => item().product.description);
31048
+ html(node_1, () => item().product.description);
32042
31049
  reset(li_2);
32043
31050
  var li_3 = sibling(li_2, 2);
32044
31051
  var text_1 = child(li_3, true);
@@ -32066,8 +31073,8 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32066
31073
  reset(article);
32067
31074
  reset(li);
32068
31075
  template_effect(() => {
31076
+ classes = set_class(article, 1, "go-tickets-item", null, classes, { "is-booked-out": get$2(capacity).bookedOut });
32069
31077
  set_attribute(article, "data-testid", item().uuid);
32070
- classes = set_class(article, 1, "", null, classes, { "is-booked-out": get$2(capacity).bookedOut });
32071
31078
  set_text(text2, item().product.title);
32072
31079
  set_text(text_1, item().price_formatted);
32073
31080
  });
@@ -32082,7 +31089,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32082
31089
  }
32083
31090
  delegate(["change"]);
32084
31091
  create_custom_element(Item, { item: {}, details: {} }, [], [], true);
32085
- var root_1$2 = /* @__PURE__ */ from_html(`<ol data-testid="tickets"><li data-go-tickets-header="" data-testid="tickets-header"><ul><li data-go-tickets-title="">Title</li> <li data-go-tickets-description="">Description</li> <li data-go-tickets-price="">Price</li> <li data-go-tickets-quality="">Quantity</li></ul></li> <!></ol>`);
31092
+ var root_1$2 = /* @__PURE__ */ from_html(`<ol class="go-tickets" data-testid="tickets"><li class="go-tickets-header" data-go-tickets-header="" data-testid="tickets-header"><ul><li class="go-tickets-header-title" data-go-tickets-title=""> </li> <li class="go-tickets-header-description" data-go-tickets-description=""> </li> <li class="go-tickets-header-price" data-go-tickets-price=""> </li> <li class="go-tickets-header-quality" data-go-tickets-quality=""> </li></ul></li> <!></ol>`);
32086
31093
  function Body($$anchor, $$props) {
32087
31094
  push($$props, true);
32088
31095
  const _details = getTicketSegmentDetails($$props.$$host);
@@ -32093,7 +31100,23 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32093
31100
  {
32094
31101
  var consequent = ($$anchor2) => {
32095
31102
  var ol = root_1$2();
32096
- var node_1 = sibling(child(ol), 2);
31103
+ var li = child(ol);
31104
+ var ul = child(li);
31105
+ var li_1 = child(ul);
31106
+ var text2 = child(li_1, true);
31107
+ reset(li_1);
31108
+ var li_2 = sibling(li_1, 2);
31109
+ var text_1 = child(li_2, true);
31110
+ reset(li_2);
31111
+ var li_3 = sibling(li_2, 2);
31112
+ var text_2 = child(li_3, true);
31113
+ reset(li_3);
31114
+ var li_4 = sibling(li_3, 2);
31115
+ var text_3 = child(li_4, true);
31116
+ reset(li_4);
31117
+ reset(ul);
31118
+ reset(li);
31119
+ var node_1 = sibling(li, 2);
32097
31120
  each(node_1, 17, () => get$2(details).preCart.items, index$1, ($$anchor3, ci) => {
32098
31121
  Item($$anchor3, {
32099
31122
  get item() {
@@ -32105,6 +31128,20 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32105
31128
  });
32106
31129
  });
32107
31130
  reset(ol);
31131
+ template_effect(
31132
+ ($0, $1, $2, $3) => {
31133
+ set_text(text2, $0);
31134
+ set_text(text_1, $1);
31135
+ set_text(text_2, $2);
31136
+ set_text(text_3, $3);
31137
+ },
31138
+ [
31139
+ () => shop.t("product.detail.table.title"),
31140
+ () => shop.t("product.detail.table.desc"),
31141
+ () => shop.t("product.detail.table.price"),
31142
+ () => shop.t("product.detail.table.quantity")
31143
+ ]
31144
+ );
32108
31145
  append($$anchor2, ol);
32109
31146
  };
32110
31147
  if_block(node, ($$render) => {
@@ -32120,9 +31157,9 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32120
31157
  const _details = getTicketSegmentDetails($$props.$$host);
32121
31158
  const details = /* @__PURE__ */ user_derived(() => _details.value);
32122
31159
  next();
32123
- var text2 = text$1();
32124
- template_effect(() => set_text(text2, get$2(details)?.preCart.totalFormatted));
32125
- append($$anchor, text2);
31160
+ var text$1 = text();
31161
+ template_effect(() => set_text(text$1, get$2(details)?.preCart.totalFormatted));
31162
+ append($$anchor, text$1);
32126
31163
  pop();
32127
31164
  }
32128
31165
  customElements.define("go-ticket-segment-sum", create_custom_element(Sum, {}, [], [], false));
@@ -32215,8 +31252,11 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32215
31252
  reset(li);
32216
31253
  attach(li, () => dataAttr("selected", get$2(selected)));
32217
31254
  template_effect(() => {
31255
+ set_class(li, 1, clsx(timeslot.capacity == 0 ? "sold-out" : ""));
32218
31256
  set_class(label, 1, clsx(timeslot.available ? "" : "disabled"));
32219
31257
  set_text(text2, `${timeslot.timeFormatted ?? ""} `);
31258
+ input.disabled = timeslot.capacity == 0;
31259
+ set_attribute(input, "aria-disabled", timeslot.capacity == 0);
32220
31260
  if (input_value !== (input_value = timeslot.startAt)) {
32221
31261
  input.value = (input.__value = timeslot.startAt) ?? "";
32222
31262
  }
@@ -32394,8 +31434,8 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32394
31434
  class: "go-calendar-prev-button",
32395
31435
  children: ($$anchor6, $$slotProps2) => {
32396
31436
  next();
32397
- var text2 = text$1("Prev");
32398
- append($$anchor6, text2);
31437
+ var text$1 = text("Prev");
31438
+ append($$anchor6, text$1);
32399
31439
  },
32400
31440
  $$slots: { default: true }
32401
31441
  });
@@ -32410,7 +31450,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32410
31450
  class: "go-calendar-next-button",
32411
31451
  children: ($$anchor6, $$slotProps2) => {
32412
31452
  next();
32413
- var text_1 = text$1("Next");
31453
+ var text_1 = text("Next");
32414
31454
  append($$anchor6, text_1);
32415
31455
  },
32416
31456
  $$slots: { default: true }
@@ -32506,7 +31546,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
32506
31546
  class: "go-calendar-day",
32507
31547
  children: ($$anchor15, $$slotProps5) => {
32508
31548
  next();
32509
- var text_3 = text$1();
31549
+ var text_3 = text();
32510
31550
  template_effect(() => set_text(text_3, get$2(date2).day));
32511
31551
  append($$anchor15, text_3);
32512
31552
  },