@billgangcom/theme-lib 1.112.1 → 1.114.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.
Files changed (41) hide show
  1. package/dist/{builder-BPcwschw.js → builder-Bd2jS6z5.js} +211 -213
  2. package/dist/{builder-BJi41gLj.cjs → builder-DoAHiGfI.cjs} +2 -2
  3. package/dist/{builder-components-DiSJ943W.cjs → builder-components-B6Q1FJdO.cjs} +1 -1
  4. package/dist/{builder-components-Dzh-02cy.js → builder-components-DOXVQePh.js} +4 -4
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +87 -86
  7. package/dist/{charge-Ud-AcF5N.cjs → charge-By0YRAtN.cjs} +43 -43
  8. package/dist/{charge-BXhHGVZ9.js → charge-CYkPC1xJ.js} +6610 -6479
  9. package/dist/{checkout-C6Krps7T.cjs → checkout-BBaq5eLv.cjs} +1 -1
  10. package/dist/{checkout-CJf-hrQS.js → checkout-BacYMk5p.js} +5 -5
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-BJRGrwnd.cjs → index-B1J6oyyZ.cjs} +1 -1
  14. package/dist/{index-DZA2Qg7A.cjs → index-B86a6HK7.cjs} +1 -1
  15. package/dist/{index-BubR1-4r.js → index-BCgXuVzB.js} +1 -1
  16. package/dist/{index-DnOKr-Mo.cjs → index-C5xaXw2a.cjs} +1 -1
  17. package/dist/{index-Cm1WxtE8.cjs → index-CULiMl6h.cjs} +1 -1
  18. package/dist/{index-HqoVN9QS.js → index-D14heDcK.js} +5 -5
  19. package/dist/{index-C1RZaf85.js → index-DA2EeXd3.js} +5 -5
  20. package/dist/{index-CTAMb5Ws.js → index-DNGCgy8g.js} +5 -5
  21. package/dist/{index-C79AL-SX.cjs → index-DZVqcJh_.cjs} +1 -1
  22. package/dist/{index-BOlJB8PY.js → index-Dv-y6xYv.js} +5 -5
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.es.js +6 -6
  25. package/dist/{order-BRLSB3Nu.js → order-BkDz1lDn.js} +5 -5
  26. package/dist/{order-BAgqXjj2.cjs → order-BsI3Djg7.cjs} +1 -1
  27. package/dist/src/storefront/api/order.d.ts +2 -1
  28. package/dist/style.css +1 -1
  29. package/dist/{subscription-ytzGgkBp.cjs → subscription-DYa6vxo1.cjs} +1 -1
  30. package/dist/{subscription-CX2OMarS.js → subscription-mYFIz-QI.js} +5 -5
  31. package/dist/{ticket-Cf9H1nLd.cjs → ticket-Djdg5CC8.cjs} +4 -4
  32. package/dist/{ticket-Bw4zmgVj.js → ticket-ckMFdKTG.js} +162 -127
  33. package/dist/{top-up-CLwqsSvK.js → top-up-3v6D0_10.js} +5 -5
  34. package/dist/{top-up-B6LSLdw1.cjs → top-up-CuY2N9Qr.cjs} +1 -1
  35. package/dist/{ui-components-DvdK_Pju.js → ui-components-Bfju659N.js} +4 -4
  36. package/dist/{ui-components-BM4zwk9v.cjs → ui-components-foi2BEtM.cjs} +1 -1
  37. package/dist/ui.cjs.js +1 -1
  38. package/dist/ui.es.js +1 -1
  39. package/dist/{validation-B_VyjaOh.cjs → validation-BSQGHn4r.cjs} +1 -1
  40. package/dist/{validation-DBN8rMc3.js → validation-CnxmZXnT.js} +5 -5
  41. package/package.json +1 -1
@@ -3,15 +3,15 @@ var oe = (o, r, e) => r in o ? ee(o, r, { enumerable: !0, configurable: !0, writ
3
3
  var D = (o, r, e) => oe(o, typeof r != "symbol" ? r + "" : r, e);
4
4
  import { jsx as a, jsxs as m, Fragment as ne } from "react/jsx-runtime";
5
5
  import g from "react";
6
- import { j as $, K as q, r as z, aa as re, e as E, v as N, N as ce, X as te, p as j, V as x, c as X, a as V, b as U, f as B, ab as ae, u as ie, U as K } from "./builder-BPcwschw.js";
7
- import { x as le, y as se, N as Ie, P as ue, z as de, B as R, D as pe, E as ge, u as he, F as Se, J as me, K as Ce } from "./charge-BXhHGVZ9.js";
8
- import { e as F, g as O, E as _, I as we } from "./ui-components-DvdK_Pju.js";
9
- import { R as Y, a as J, b as Q, c as fe } from "./builder-components-Dzh-02cy.js";
6
+ import { j as $, K as q, r as z, aa as re, e as E, v as N, N as te, X as ce, p as j, V as x, c as X, a as V, b as U, f as B, ab as ae, u as ie, U as K } from "./builder-Bd2jS6z5.js";
7
+ import { x as le, y as se, N as Ie, P as ue, z as de, B as R, D as pe, E as ge, u as he, F as Se, J as me, K as Ce } from "./charge-CYkPC1xJ.js";
8
+ import { e as F, g as O, E as _, I as we } from "./ui-components-Bfju659N.js";
9
+ import { R as J, a as Y, b as Q, c as fe } from "./builder-components-DOXVQePh.js";
10
10
  import "react-dom";
11
- import "./checkout-CJf-hrQS.js";
12
- const be = "_wrapper_1vt13_1", ye = "_bg_1vt13_10", Le = "_main_1vt13_32", ke = "_noAnimation_1vt13_37", Te = "_loading_1vt13_51", Ae = "_loadingContent_1vt13_61", Pe = "_loader_1vt13_66", k = {
13
- wrapper: be,
14
- bg: ye,
11
+ import "./checkout-BacYMk5p.js";
12
+ const ye = "_wrapper_1vt13_1", be = "_bg_1vt13_10", Le = "_main_1vt13_32", ke = "_noAnimation_1vt13_37", Te = "_loading_1vt13_51", Ae = "_loadingContent_1vt13_61", Pe = "_loader_1vt13_66", k = {
13
+ wrapper: ye,
14
+ bg: be,
15
15
  main: Le,
16
16
  noAnimation: ke,
17
17
  loading: Te,
@@ -21,15 +21,15 @@ const be = "_wrapper_1vt13_1", ye = "_bg_1vt13_10", Le = "_main_1vt13_32", ke =
21
21
  const e = $.getState().apiUrls, n = q ? localStorage.getItem("fakeDomain") || "flagship-theme.pages.dev" : window.location.hostname, i = localStorage.getItem("shopPassword");
22
22
  if (r && !i)
23
23
  return null;
24
- const t = `${e.storeApi}/v2/shops/${n}/pages/${o}` + (r ? `?password=${i}` : "");
24
+ const c = `${e.storeApi}/v2/shops/${n}/pages/${o}` + (r ? `?password=${i}` : "");
25
25
  try {
26
26
  return await z({
27
- url: t,
27
+ url: c,
28
28
  withToken: !0,
29
29
  method: "get"
30
30
  });
31
- } catch (c) {
32
- if (re.isAxiosError(c) && c.response && c.response.status === 404)
31
+ } catch (t) {
32
+ if (re.isAxiosError(t) && t.response && t.response.status === 404)
33
33
  return null;
34
34
  }
35
35
  }, Lo = [
@@ -3210,8 +3210,8 @@ class De {
3210
3210
  this.observer = new ResizeObserver((r) => {
3211
3211
  var e;
3212
3212
  for (const n of r) {
3213
- const i = n.contentRect.width, t = n.target;
3214
- this.callbacks.has(t) && ((e = this.callbacks.get(t)) == null || e.forEach((c) => c(i)));
3213
+ const i = n.contentRect.width, c = n.target;
3214
+ this.callbacks.has(c) && ((e = this.callbacks.get(c)) == null || e.forEach((t) => t(i)));
3215
3215
  }
3216
3216
  }), window.addEventListener("resize", this.handleWindowResize);
3217
3217
  }
@@ -3227,7 +3227,7 @@ class De {
3227
3227
  const i = this.callbacks.get(r) || [];
3228
3228
  this.callbacks.set(
3229
3229
  r,
3230
- i.filter((t) => t !== e)
3230
+ i.filter((c) => c !== e)
3231
3231
  );
3232
3232
  }
3233
3233
  (n = this.callbacks.get(r)) != null && n.length || (this.callbacks.delete(r), this.observer.unobserve(r));
@@ -3244,19 +3244,19 @@ function Po(o) {
3244
3244
  return g.useEffect(() => {
3245
3245
  const n = o.current;
3246
3246
  if (!n) return;
3247
- const i = (l) => l >= 1081 ? "desktop" : l >= 720 ? "tablet" : "mobile", t = (l) => {
3247
+ const i = (l) => l >= 1081 ? "desktop" : l >= 720 ? "tablet" : "mobile", c = (l) => {
3248
3248
  const I = i(l);
3249
3249
  e(I);
3250
3250
  };
3251
- G.observe(n, t);
3252
- const c = n.getBoundingClientRect().width;
3253
- return t(c), () => {
3254
- G.unobserve(n, t);
3251
+ G.observe(n, c);
3252
+ const t = n.getBoundingClientRect().width;
3253
+ return c(t), () => {
3254
+ G.unobserve(n, c);
3255
3255
  };
3256
3256
  }, [o]), r;
3257
3257
  }
3258
3258
  const Bo = () => {
3259
- const { balance: o, setBalance: r } = ce();
3259
+ const { balance: o, setBalance: r } = te();
3260
3260
  return g.useEffect(() => {
3261
3261
  o || (async () => {
3262
3262
  if (!localStorage.getItem("token")) return;
@@ -3264,12 +3264,12 @@ const Bo = () => {
3264
3264
  r(i);
3265
3265
  })();
3266
3266
  }, [o]), o;
3267
- }, Re = "_wrapper_ysrl4_1", ve = "_tableContainer_ysrl4_6", xe = "_ticketsTable_ysrl4_19", He = "_tableItem_ysrl4_37", Me = "_tableLoader_ysrl4_41", L = {
3267
+ }, Re = "_wrapper_ysrl4_1", ve = "_tableContainer_ysrl4_6", xe = "_ticketsTable_ysrl4_19", Me = "_tableItem_ysrl4_37", He = "_tableLoader_ysrl4_41", L = {
3268
3268
  wrapper: Re,
3269
3269
  tableContainer: ve,
3270
3270
  ticketsTable: xe,
3271
- tableItem: He,
3272
- tableLoader: Me
3271
+ tableItem: Me,
3272
+ tableLoader: He
3273
3273
  }, Ne = async (o = 1) => {
3274
3274
  try {
3275
3275
  return await se({ PageNumber: o });
@@ -3280,12 +3280,12 @@ const Bo = () => {
3280
3280
  };
3281
3281
  }
3282
3282
  }, Fo = () => {
3283
- const [o, r] = g.useState(null), { page: e, setPage: n } = te(), [i, t] = g.useState(!0), [c, l] = g.useState(0);
3283
+ const [o, r] = g.useState(null), { page: e, setPage: n } = ce(), [i, c] = g.useState(!0), [t, l] = g.useState(0);
3284
3284
  g.useEffect(() => {
3285
3285
  (async () => {
3286
- t(!0);
3286
+ c(!0);
3287
3287
  const { list: C, totalCount: f } = await Ne(e);
3288
- r(C), l(f), t(!1);
3288
+ r(C), l(f), c(!1);
3289
3289
  })();
3290
3290
  }, [e]);
3291
3291
  const I = !i && o;
@@ -3317,13 +3317,13 @@ const Bo = () => {
3317
3317
  ge,
3318
3318
  {
3319
3319
  currentPage: e,
3320
- totalCount: c,
3320
+ totalCount: t,
3321
3321
  onPageChange: n
3322
3322
  }
3323
3323
  )
3324
3324
  ] })
3325
3325
  ] });
3326
- }, Ee = "_wrapper_rccv2_1", Ue = "_content_rccv2_11", Oe = "_title_rccv2_21", H = {
3326
+ }, Ee = "_wrapper_rccv2_1", Ue = "_content_rccv2_11", Oe = "_title_rccv2_21", M = {
3327
3327
  wrapper: Ee,
3328
3328
  content: Ue,
3329
3329
  title: Oe
@@ -3343,8 +3343,8 @@ const Bo = () => {
3343
3343
  color: "var(--text-primary)"
3344
3344
  },
3345
3345
  children: [
3346
- /* @__PURE__ */ a(Y, {}),
3347
3346
  /* @__PURE__ */ a(J, {}),
3347
+ /* @__PURE__ */ a(Y, {}),
3348
3348
  /* @__PURE__ */ m(
3349
3349
  "div",
3350
3350
  {
@@ -3381,8 +3381,8 @@ const Bo = () => {
3381
3381
  /* @__PURE__ */ a(Q, {})
3382
3382
  ]
3383
3383
  }
3384
- ) : /* @__PURE__ */ a("div", { className: H.wrapper, children: /* @__PURE__ */ m("div", { className: H.content, children: [
3385
- /* @__PURE__ */ a("h1", { className: H.title, children: "Page Not Found" }),
3384
+ ) : /* @__PURE__ */ a("div", { className: M.wrapper, children: /* @__PURE__ */ m("div", { className: M.content, children: [
3385
+ /* @__PURE__ */ a("h1", { className: M.title, children: "Page Not Found" }),
3386
3386
  /* @__PURE__ */ a(
3387
3387
  O,
3388
3388
  {
@@ -3402,21 +3402,21 @@ const Bo = () => {
3402
3402
  "/support": "Support",
3403
3403
  "/cart": "Cart"
3404
3404
  }, Ge = ({ pagePath: o }) => {
3405
- const { sourceBlocks: r } = X(), [e, n] = g.useState(null), [i, t] = g.useState(!0), [c, l] = g.useState(null), { settings: I } = V(), { addProducts: w } = he(), { pageContext: C } = U(), { isAntistock: f, general: d } = x();
3405
+ const { sourceBlocks: r } = X(), [e, n] = g.useState(null), [i, c] = g.useState(!0), [t, l] = g.useState(null), { settings: I } = V(), { addProducts: w } = he(), { pageContext: C } = U(), { isAntistock: f, general: d } = x();
3406
3406
  g.useEffect(() => {
3407
- t(!0);
3407
+ c(!0);
3408
3408
  const h = async () => {
3409
- const y = await Be(
3409
+ const b = await Be(
3410
3410
  encodeURIComponent(o),
3411
3411
  d == null ? void 0 : d.info.passwordProtected
3412
3412
  );
3413
- if (y) {
3414
- const { data: s } = y;
3413
+ if (b) {
3414
+ const { data: s } = b;
3415
3415
  if (s.seo && s.seo.pageTitle ? document.title = s.seo.pageTitle : W[o] ? document.title = W[o] : s.products.length > 0 ? document.title = `Product | ${s.products[0].name}` : s.fullPosts.length > 0 && (document.title = `Post | ${s.fullPosts[0].title}`), s.preserveContent) {
3416
3416
  const S = {
3417
- order: [...(c == null ? void 0 : c.order) ?? [], ...s.layout.order],
3417
+ order: [...(t == null ? void 0 : t.order) ?? [], ...s.layout.order],
3418
3418
  data: {
3419
- ...c == null ? void 0 : c.data,
3419
+ ...t == null ? void 0 : t.data,
3420
3420
  ...s.layout.data
3421
3421
  }
3422
3422
  };
@@ -3425,7 +3425,7 @@ const Bo = () => {
3425
3425
  l(s.layout);
3426
3426
  const u = s.listings.filter(
3427
3427
  (S) => S.type === "PRODUCT" || S.type === "GROUP"
3428
- ), b = u && u.length > 0 ? s.listings : [...C.listings ?? [], ...s.listings];
3428
+ ), y = u && u.length > 0 ? s.listings : [...C.listings ?? [], ...s.listings];
3429
3429
  if (s.preserveContent) {
3430
3430
  const S = {
3431
3431
  ...C,
@@ -3437,7 +3437,7 @@ const Bo = () => {
3437
3437
  fullPosts: [...(e == null ? void 0 : e.fullPosts) ?? [], ...s.fullPosts],
3438
3438
  posts: [...(e == null ? void 0 : e.posts) ?? [], ...s.posts],
3439
3439
  preserveContent: s.preserveContent,
3440
- listings: b
3440
+ listings: y
3441
3441
  };
3442
3442
  n(S);
3443
3443
  } else
@@ -3451,11 +3451,11 @@ const Bo = () => {
3451
3451
  fullPosts: s.fullPosts,
3452
3452
  posts: s.posts,
3453
3453
  preserveContent: s.preserveContent,
3454
- listings: b
3454
+ listings: y
3455
3455
  });
3456
3456
  w(s.products);
3457
3457
  }
3458
- t(!1);
3458
+ c(!1);
3459
3459
  };
3460
3460
  C.listings && d && h();
3461
3461
  }, [o, C.listings, d]);
@@ -3464,10 +3464,10 @@ const Bo = () => {
3464
3464
  return /* @__PURE__ */ a(_, { error: "Block or block.name is undefined." });
3465
3465
  if (!r || !r[h.name])
3466
3466
  return /* @__PURE__ */ a(_, { error: `Block "${h.name}" does not exist in blocks.` });
3467
- const y = new r[h.name]();
3468
- return h.value && Object.assign(y, h.value), y.renderBlock(I, e);
3467
+ const b = new r[h.name]();
3468
+ return h.value && Object.assign(b, h.value), b.renderBlock(I, e);
3469
3469
  };
3470
- return !i && c === null ? /* @__PURE__ */ a(_e, {}) : /* @__PURE__ */ m(
3470
+ return !i && t === null ? /* @__PURE__ */ a(_e, {}) : /* @__PURE__ */ m(
3471
3471
  "div",
3472
3472
  {
3473
3473
  className: B(k.wrapper, {
@@ -3475,25 +3475,25 @@ const Bo = () => {
3475
3475
  [k.loadingContent]: i
3476
3476
  }),
3477
3477
  children: [
3478
- /* @__PURE__ */ a(Y, {}),
3478
+ /* @__PURE__ */ a(J, {}),
3479
3479
  /* @__PURE__ */ a(
3480
- J,
3480
+ Y,
3481
3481
  {
3482
3482
  settings: I,
3483
3483
  pageContext: e
3484
3484
  }
3485
3485
  ),
3486
- c ? /* @__PURE__ */ m(ne, { children: [
3486
+ t ? /* @__PURE__ */ m(ne, { children: [
3487
3487
  /* @__PURE__ */ a(
3488
3488
  "div",
3489
3489
  {
3490
3490
  className: B(k.main, {
3491
3491
  [k.noAnimation]: f
3492
3492
  }),
3493
- children: c.order && c.order.map((h) => /* @__PURE__ */ a(
3493
+ children: t.order && t.order.map((h) => /* @__PURE__ */ a(
3494
3494
  fe,
3495
3495
  {
3496
- block: c.data[h],
3496
+ block: t.data[h],
3497
3497
  render: T
3498
3498
  },
3499
3499
  h
@@ -3524,23 +3524,23 @@ const Ro = (o, r) => {
3524
3524
  `, r.aspectRatio && (e += ` --aspect-ratio: ${r.aspectRatio.toString().replace(":", "/")};
3525
3525
  `), r.showParticles !== void 0 && (e += ` --showParticles: ${r.showParticles};
3526
3526
  `)), o.colors && Object.entries(o.colors).forEach(([n, i]) => {
3527
- Object.entries(i).forEach(([t, c]) => {
3528
- e += ` --${n}-${t}: ${c};
3527
+ Object.entries(i).forEach(([c, t]) => {
3528
+ e += ` --${n}-${c}: ${t};
3529
3529
  `;
3530
3530
  });
3531
3531
  }), o.fonts && Object.entries(o.fonts.desktop).forEach(([n, i]) => {
3532
- typeof i == "object" && Object.entries(i).forEach(([t, c]) => {
3533
- c && (e += ` --font-${n}-${t}-family: ${c.font};
3534
- `, e += ` --font-${n}-${t}-size: ${c.size}px;
3535
- `, e += ` --font-${n}-${t}-weight: ${c.weight};
3536
- `, e += ` --font-${n}-${t}-boldWeight: ${c.boldWeight};
3537
- `, e += ` --font-${n}-${t}-case: ${c.case};
3532
+ typeof i == "object" && Object.entries(i).forEach(([c, t]) => {
3533
+ t && (e += ` --font-${n}-${c}-family: ${t.font};
3534
+ `, e += ` --font-${n}-${c}-size: ${t.size}px;
3535
+ `, e += ` --font-${n}-${c}-weight: ${t.weight};
3536
+ `, e += ` --font-${n}-${c}-boldWeight: ${t.boldWeight};
3537
+ `, e += ` --font-${n}-${c}-case: ${t.case};
3538
3538
  `);
3539
3539
  });
3540
3540
  }), o.buttons) {
3541
3541
  const { buttons: n } = o;
3542
3542
  if (n.primary && n.secondary && n.tertiary) {
3543
- const i = `${n.primary.boxShadow.left}px ${n.primary.boxShadow.top}px ${n.primary.boxShadow.blur}px ${n.primary.boxShadow.spread}px ${n.primary.boxShadow.color}`, t = `${n.secondary.boxShadow.left}px ${n.secondary.boxShadow.top}px ${n.secondary.boxShadow.blur}px ${n.secondary.boxShadow.spread}px ${n.secondary.boxShadow.color}`, c = `${n.tertiary.boxShadow.left}px ${n.tertiary.boxShadow.top}px ${n.tertiary.boxShadow.blur}px ${n.tertiary.boxShadow.spread}px ${n.tertiary.boxShadow.color}`;
3543
+ const i = `${n.primary.boxShadow.left}px ${n.primary.boxShadow.top}px ${n.primary.boxShadow.blur}px ${n.primary.boxShadow.spread}px ${n.primary.boxShadow.color}`, c = `${n.secondary.boxShadow.left}px ${n.secondary.boxShadow.top}px ${n.secondary.boxShadow.blur}px ${n.secondary.boxShadow.spread}px ${n.secondary.boxShadow.color}`, t = `${n.tertiary.boxShadow.left}px ${n.tertiary.boxShadow.top}px ${n.tertiary.boxShadow.blur}px ${n.tertiary.boxShadow.spread}px ${n.tertiary.boxShadow.color}`;
3544
3544
  e += ` --button-primary-size: ${n.primary.size}px;
3545
3545
  `, e += ` --button-primary-height: ${n.primary.height}px;
3546
3546
  `, e += ` --button-primary-radius: ${n.primary.radius}px;
@@ -3558,7 +3558,7 @@ const Ro = (o, r) => {
3558
3558
  `, e += ` --button-secondary-alignment: ${n.secondary.alignment};
3559
3559
  `, e += ` --button-secondary-background: ${n.secondary.background};
3560
3560
  `, e += ` --button-secondary-hover: ${n.secondary.hover};
3561
- `, e += ` --button-secondary-box-shadow: ${t};
3561
+ `, e += ` --button-secondary-box-shadow: ${c};
3562
3562
  `, e += ` --button-secondary-font: ${n.secondary.font};
3563
3563
  `, e += ` --button-secondary-text-color: ${n.secondary.color};
3564
3564
  `, e += ` --button-secondary-text-color-hover: ${n.secondary.colorHover};
@@ -3569,7 +3569,7 @@ const Ro = (o, r) => {
3569
3569
  `, e += ` --button-tertiary-alignment: ${n.tertiary.alignment};
3570
3570
  `, e += ` --button-tertiary-background: ${n.tertiary.background};
3571
3571
  `, e += ` --button-tertiary-hover: ${n.tertiary.hover};
3572
- `, e += ` --button-tertiary-box-shadow: ${c};
3572
+ `, e += ` --button-tertiary-box-shadow: ${t};
3573
3573
  `, e += ` --button-tertiary-font: ${n.tertiary.font};
3574
3574
  `, e += ` --button-tertiary-text-color: ${n.tertiary.color};
3575
3575
  `, e += ` --button-tertiary-text-color-hover: ${n.tertiary.colorHover};
@@ -3654,10 +3654,10 @@ const Ro = (o, r) => {
3654
3654
  const r = /* @__PURE__ */ new Map();
3655
3655
  return Object.entries(o).forEach(([, e]) => {
3656
3656
  typeof e == "object" && Object.entries(e).forEach(([, n]) => {
3657
- var i, t;
3657
+ var i, c;
3658
3658
  if (n && n.font) {
3659
- const c = n.font.replace(/\s+/g, "+");
3660
- r.has(c) || r.set(c, /* @__PURE__ */ new Set()), (i = r.get(c)) == null || i.add(n.weight), (t = r.get(c)) == null || t.add(n.boldWeight);
3659
+ const t = n.font.replace(/\s+/g, "+");
3660
+ r.has(t) || r.set(t, /* @__PURE__ */ new Set()), (i = r.get(t)) == null || i.add(n.weight), (c = r.get(t)) == null || c.add(n.boldWeight);
3661
3661
  }
3662
3662
  });
3663
3663
  }), r;
@@ -3667,8 +3667,8 @@ const Ro = (o, r) => {
3667
3667
  typeof e == "object" && Object.keys(e).forEach((n) => {
3668
3668
  var i;
3669
3669
  if (n === "font" && e[n]) {
3670
- const t = e[n].replace(/\s+/g, "+");
3671
- r.has(t) || r.set(t, /* @__PURE__ */ new Set()), (i = r.get(t)) == null || i.add("400");
3670
+ const c = e[n].replace(/\s+/g, "+");
3671
+ r.has(c) || r.set(c, /* @__PURE__ */ new Set()), (i = r.get(c)) == null || i.add("400");
3672
3672
  }
3673
3673
  });
3674
3674
  }), r;
@@ -3682,30 +3682,65 @@ const Ro = (o, r) => {
3682
3682
  }, ze = (o) => {
3683
3683
  const r = /* @__PURE__ */ new Set();
3684
3684
  o.forEach((e, n) => {
3685
- const i = Array.from(e).sort().join(";"), t = `${n}:wght@${i}`;
3686
- if (r.add(t), !v.has(t)) {
3687
- const c = document.createElement("link");
3688
- c.rel = "stylesheet", c.href = `https://fonts.googleapis.com/css2?family=${t}&display=swap`, c.setAttribute("data-font", t), document.head.appendChild(c), v.add(t);
3685
+ const i = Array.from(e).sort().join(";"), c = `${n}:wght@${i}`;
3686
+ if (r.add(c), !v.has(c)) {
3687
+ const t = document.createElement("link");
3688
+ t.rel = "stylesheet", t.href = `https://fonts.googleapis.com/css2?family=${c}&display=swap`, t.setAttribute("data-font", c), document.head.appendChild(t), v.add(c);
3689
3689
  }
3690
3690
  }), qe(r);
3691
3691
  }, xo = (o) => {
3692
3692
  if (o.fonts) {
3693
3693
  const r = We(o.fonts.desktop), e = $e(o.buttons), n = new Map(r);
3694
- e.forEach((i, t) => {
3695
- if (n.has(t)) {
3696
- const c = n.get(t);
3697
- i.forEach((l) => c == null ? void 0 : c.add(l));
3694
+ e.forEach((i, c) => {
3695
+ if (n.has(c)) {
3696
+ const t = n.get(c);
3697
+ i.forEach((l) => t == null ? void 0 : t.add(l));
3698
3698
  } else
3699
- n.set(t, new Set(i));
3699
+ n.set(c, new Set(i));
3700
3700
  }), ze(n);
3701
3701
  }
3702
- }, M = [
3702
+ }, H = [
3703
3703
  {
3704
3704
  family: "GT Eesti Pro Display",
3705
3705
  files: [
3706
3706
  { filename: "gteestiprodisplay_regular.7c83c7fb.otf", weight: "400", style: "normal" },
3707
3707
  { filename: "gteestiprodisplay_bold.dac95605.otf", weight: "700", style: "normal" }
3708
3708
  ]
3709
+ },
3710
+ {
3711
+ family: "Plus Jakarta Sans",
3712
+ files: [
3713
+ { filename: "PlusJakartaSans-Regular.ttf", weight: "400", style: "normal" },
3714
+ { filename: "PlusJakartaSans-Medium.ttf", weight: "500", style: "normal" },
3715
+ { filename: "PlusJakartaSans-SemiBold.ttf", weight: "600", style: "normal" },
3716
+ { filename: "PlusJakartaSans-Bold.ttf", weight: "700", style: "normal" }
3717
+ ]
3718
+ },
3719
+ {
3720
+ family: "Mulish",
3721
+ files: [
3722
+ { filename: "Mulish-Regular.ttf", weight: "400", style: "normal" },
3723
+ { filename: "Mulish-Medium.ttf", weight: "500", style: "normal" },
3724
+ { filename: "Mulish-SemiBold.ttf", weight: "600", style: "normal" },
3725
+ { filename: "Mulish-Bold.ttf", weight: "700", style: "normal" }
3726
+ ]
3727
+ },
3728
+ {
3729
+ family: "Raleway",
3730
+ files: [
3731
+ { filename: "Raleway-Regular.ttf", weight: "400", style: "normal" },
3732
+ { filename: "Raleway-Medium.ttf", weight: "500", style: "normal" },
3733
+ { filename: "Raleway-SemiBold.ttf", weight: "600", style: "normal" },
3734
+ { filename: "Raleway-Bold.ttf", weight: "700", style: "normal" }
3735
+ ]
3736
+ },
3737
+ {
3738
+ family: "Ubuntu",
3739
+ files: [
3740
+ { filename: "Ubuntu-Regular.ttf", weight: "400", style: "normal" },
3741
+ { filename: "Ubuntu-Medium.ttf", weight: "500", style: "normal" },
3742
+ { filename: "Ubuntu-Bold.ttf", weight: "700", style: "normal" }
3743
+ ]
3709
3744
  }
3710
3745
  ], je = (o) => {
3711
3746
  var e;
@@ -3731,22 +3766,22 @@ const Ro = (o, r) => {
3731
3766
  font-style: ${n};
3732
3767
  font-display: swap;
3733
3768
  }`;
3734
- }, Ho = () => {
3769
+ }, Mo = () => {
3735
3770
  if (document.getElementById("custom-fonts-styles"))
3736
3771
  return;
3737
3772
  let o = "";
3738
- M.forEach((e) => {
3773
+ H.forEach((e) => {
3739
3774
  e.files.forEach((n) => {
3740
3775
  o += Xe(e.family, n.filename, n.weight, n.style) + `
3741
3776
  `;
3742
3777
  });
3743
3778
  });
3744
3779
  const r = document.createElement("style");
3745
- r.id = "custom-fonts-styles", r.type = "text/css", r.textContent = o, document.head.appendChild(r), console.log("Custom fonts loaded:", M.map((e) => e.family).join(", ")), M.forEach((e) => {
3780
+ r.id = "custom-fonts-styles", r.type = "text/css", r.textContent = o, document.head.appendChild(r), console.log("Custom fonts loaded:", H.map((e) => e.family).join(", ")), H.forEach((e) => {
3746
3781
  console.log(`Font "${e.family}":`, e.files.map((n) => `${n.filename} (${n.weight})`).join(", "));
3747
3782
  });
3748
3783
  };
3749
- function Mo() {
3784
+ function Ho() {
3750
3785
  if (window.location.pathname.includes("/admin/builder"))
3751
3786
  try {
3752
3787
  const {
@@ -3755,15 +3790,15 @@ function Mo() {
3755
3790
  blocks: e,
3756
3791
  setHeader: n,
3757
3792
  setFooter: i,
3758
- setAnnouncement: t
3759
- } = ie.getState(), { currentPage: c, pages: l } = U.getState(), { currentInstance: I, settingsInstance: w } = X.getState(), { setSettings: C } = V.getState();
3793
+ setAnnouncement: c
3794
+ } = ie.getState(), { currentPage: t, pages: l } = U.getState(), { currentInstance: I, settingsInstance: w } = X.getState(), { setSettings: C } = V.getState();
3760
3795
  if (r || C(w.blockSettings), I && r) {
3761
3796
  if (r === "header")
3762
3797
  n(I);
3763
3798
  else if (r === "footer")
3764
3799
  i(I);
3765
3800
  else if (r === "announcement")
3766
- t(I);
3801
+ c(I);
3767
3802
  else if (r === "header" || r === "footer" || r === "announcement")
3768
3803
  throw new Error(`Missing ${r} data.`);
3769
3804
  }
@@ -3775,14 +3810,14 @@ function Mo() {
3775
3810
  throw new Error("currentInstance.blockSettings is undefined.");
3776
3811
  if (Object.keys(I.blockSettings).filter((d) => !["displayName", "isAddable"].includes(d)).forEach((d) => {
3777
3812
  f.blockSettings[d] = I.blockSettings[d];
3778
- }), !l[c])
3779
- throw new Error(`Page "${c}" does not exist.`);
3780
- if (!e[l[c].path].data || !e[l[c].path].data[r])
3813
+ }), !l[t])
3814
+ throw new Error(`Page "${t}" does not exist.`);
3815
+ if (!e[l[t].path].data || !e[l[t].path].data[r])
3781
3816
  throw new Error(
3782
- `Layer or block for page "${l[c].path}" and block "${r}" does not exist.`
3817
+ `Layer or block for page "${l[t].path}" and block "${r}" does not exist.`
3783
3818
  );
3784
- o(l[c].path, r, {
3785
- name: e[l[c].path].data[r].name,
3819
+ o(l[t].path, r, {
3820
+ name: e[l[t].path].data[r].name,
3786
3821
  value: f
3787
3822
  });
3788
3823
  }
@@ -3797,27 +3832,27 @@ function No(o, r = !0) {
3797
3832
  return o;
3798
3833
  const n = o.split(" "), i = 20;
3799
3834
  if (r) {
3800
- let t = "", c = [];
3835
+ let c = "", t = [];
3801
3836
  return n.forEach((l) => {
3802
- l.length > i ? (c.length > 0 && (t += `<span style="hyphens: manual">${c.join(" ")} </span>`, c = []), t += `<span style="hyphens: auto" lang="en">${l} </span>`) : c.push(l);
3803
- }), c.length > 0 && (t += `<span style="hyphens: manual">${c.join(" ")}</span>`), t;
3837
+ l.length > i ? (t.length > 0 && (c += `<span style="hyphens: manual">${t.join(" ")} </span>`, t = []), c += `<span style="hyphens: auto" lang="en">${l} </span>`) : t.push(l);
3838
+ }), t.length > 0 && (c += `<span style="hyphens: manual">${t.join(" ")}</span>`), c;
3804
3839
  } else {
3805
- const t = [];
3806
- let c = [], l = 0;
3840
+ const c = [];
3841
+ let t = [], l = 0;
3807
3842
  return n.forEach((I) => {
3808
- I.length > i ? (c.length > 0 && (t.push(
3843
+ I.length > i ? (t.length > 0 && (c.push(
3809
3844
  /* @__PURE__ */ m(
3810
3845
  "span",
3811
3846
  {
3812
3847
  style: { hyphens: "manual" },
3813
3848
  children: [
3814
- c.join(" "),
3849
+ t.join(" "),
3815
3850
  " "
3816
3851
  ]
3817
3852
  },
3818
3853
  l++
3819
3854
  )
3820
- ), c = []), t.push(
3855
+ ), t = []), c.push(
3821
3856
  /* @__PURE__ */ m(
3822
3857
  "span",
3823
3858
  {
@@ -3830,30 +3865,30 @@ function No(o, r = !0) {
3830
3865
  },
3831
3866
  l++
3832
3867
  )
3833
- )) : c.push(I);
3834
- }), c.length > 0 && t.push(
3868
+ )) : t.push(I);
3869
+ }), t.length > 0 && c.push(
3835
3870
  /* @__PURE__ */ a(
3836
3871
  "span",
3837
3872
  {
3838
3873
  style: { hyphens: "manual" },
3839
- children: c.join(" ")
3874
+ children: t.join(" ")
3840
3875
  },
3841
3876
  l++
3842
3877
  )
3843
- ), t;
3878
+ ), c;
3844
3879
  }
3845
3880
  }
3846
3881
  const Eo = () => {
3847
3882
  const o = $.getState().apiUrls, r = j(), { notifications: e, setNotifications: n } = E(), { isAntistock: i } = x();
3848
- return async (t, c, l, I, w) => {
3883
+ return async (c, t, l, I, w) => {
3849
3884
  const C = q ? localStorage.getItem("fakeDomain") : window.location.hostname, f = `${o.slApi}/v1/public/${C}/tickets`;
3850
3885
  try {
3851
3886
  const d = await z({
3852
3887
  method: "post",
3853
3888
  url: f,
3854
3889
  body: {
3855
- title: t,
3856
- firstMessage: c,
3890
+ title: c,
3891
+ firstMessage: t,
3857
3892
  email: I,
3858
3893
  recaptcha: l,
3859
3894
  tsId: K(),
@@ -3887,19 +3922,19 @@ const Eo = () => {
3887
3922
  }, [o]), r;
3888
3923
  };
3889
3924
  var Z = /* @__PURE__ */ ((o) => (o.NEW = "NEW", o.ANSWERED = "ANSWERED", o.NOT_ANSWERED = "NOT_ANSWERED", o.CLOSED = "CLOSED", o))(Z || {});
3890
- const Ve = "_wrapper_mlj8m_1", Ke = "_ticketContainer_mlj8m_23", Ye = "_title_mlj8m_28", Je = "_subtext_mlj8m_35", Qe = "_container_mlj8m_41", Ze = "_content_mlj8m_52", eo = "_messages_mlj8m_63", oo = "_input_mlj8m_81", no = "_textarea_mlj8m_94", ro = "_textareaAntistock_mlj8m_123", co = "_message_mlj8m_63", to = "_messageDate_mlj8m_153", ao = "_messageAntistock_mlj8m_159", io = "_myMessage_mlj8m_164", lo = "_otherMessage_mlj8m_171", so = "_button_mlj8m_178", Io = "_disabled_mlj8m_178", uo = "_loadingMessage_mlj8m_204", p = {
3925
+ const Ve = "_wrapper_mlj8m_1", Ke = "_ticketContainer_mlj8m_23", Je = "_title_mlj8m_28", Ye = "_subtext_mlj8m_35", Qe = "_container_mlj8m_41", Ze = "_content_mlj8m_52", eo = "_messages_mlj8m_63", oo = "_input_mlj8m_81", no = "_textarea_mlj8m_94", ro = "_textareaAntistock_mlj8m_123", to = "_message_mlj8m_63", co = "_messageDate_mlj8m_153", ao = "_messageAntistock_mlj8m_159", io = "_myMessage_mlj8m_164", lo = "_otherMessage_mlj8m_171", so = "_button_mlj8m_178", Io = "_disabled_mlj8m_178", uo = "_loadingMessage_mlj8m_204", p = {
3891
3926
  wrapper: Ve,
3892
3927
  ticketContainer: Ke,
3893
- title: Ye,
3894
- subtext: Je,
3928
+ title: Je,
3929
+ subtext: Ye,
3895
3930
  container: Qe,
3896
3931
  content: Ze,
3897
3932
  messages: eo,
3898
3933
  input: oo,
3899
3934
  textarea: no,
3900
3935
  textareaAntistock: ro,
3901
- message: co,
3902
- messageDate: to,
3936
+ message: to,
3937
+ messageDate: co,
3903
3938
  messageAntistock: ao,
3904
3939
  myMessage: io,
3905
3940
  otherMessage: lo,
@@ -3907,10 +3942,10 @@ const Ve = "_wrapper_mlj8m_1", Ke = "_ticketContainer_mlj8m_23", Ye = "_title_ml
3907
3942
  disabled: Io,
3908
3943
  loadingMessage: uo
3909
3944
  }, po = () => {
3910
- const o = window.location.pathname.split("/"), r = o[o.length - 1], e = o[o.length - 2], [n, i] = g.useState(!0), [t, c] = g.useState(null), [l, I] = g.useState(""), [w, C] = g.useState(null), { executeRecaptcha: f } = Se(), { isAntistock: d } = x(), T = (t == null ? void 0 : t.status) === Z.CLOSED, h = async () => {
3945
+ const o = window.location.pathname.split("/"), r = o[o.length - 1], e = o[o.length - 2], [n, i] = g.useState(!0), [c, t] = g.useState(null), [l, I] = g.useState(""), [w, C] = g.useState(null), { executeRecaptcha: f } = Se(), { isAntistock: d } = x(), T = (c == null ? void 0 : c.status) === Z.CLOSED, h = async () => {
3911
3946
  if (e && r) {
3912
3947
  const { data: u } = await me(e, r);
3913
- c(u), i(!1);
3948
+ t(u), i(!1);
3914
3949
  }
3915
3950
  };
3916
3951
  g.useEffect(() => {
@@ -3920,22 +3955,22 @@ const Ve = "_wrapper_mlj8m_1", Ke = "_ticketContainer_mlj8m_23", Ye = "_title_ml
3920
3955
  }, 5e3);
3921
3956
  return () => clearInterval(u);
3922
3957
  }, []);
3923
- const y = async () => {
3958
+ const b = async () => {
3924
3959
  const u = await f();
3925
3960
  if (!e || !r || !u || !l.trim()) return;
3926
- const b = {
3961
+ const y = {
3927
3962
  content: l,
3928
3963
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
3929
3964
  id: Date.now(),
3930
3965
  // Уникальный временный ID
3931
3966
  isSellerReply: !1
3932
3967
  };
3933
- c(
3968
+ t(
3934
3969
  (S) => S ? {
3935
3970
  ...S,
3936
- messages: [...S.messages, b]
3971
+ messages: [...S.messages, y]
3937
3972
  } : null
3938
- ), C(b.id), I("");
3973
+ ), C(y.id), I("");
3939
3974
  try {
3940
3975
  await Ce(e, r, l, u, K()), await h();
3941
3976
  } finally {
@@ -3944,7 +3979,7 @@ const Ve = "_wrapper_mlj8m_1", Ke = "_ticketContainer_mlj8m_23", Ye = "_title_ml
3944
3979
  }, 1e4);
3945
3980
  }
3946
3981
  }, s = (u) => {
3947
- const b = /* @__PURE__ */ new Date(), S = new Date(u), A = Math.floor((b.getTime() - S.getTime()) / 1e3);
3982
+ const y = /* @__PURE__ */ new Date(), S = new Date(u), A = Math.floor((y.getTime() - S.getTime()) / 1e3);
3948
3983
  if (A < 60)
3949
3984
  return "just now";
3950
3985
  if (A < 3600) {
@@ -3953,7 +3988,7 @@ const Ve = "_wrapper_mlj8m_1", Ke = "_ticketContainer_mlj8m_23", Ye = "_title_ml
3953
3988
  } else if (A < 10800) {
3954
3989
  const P = Math.floor(A / 3600);
3955
3990
  return `${P} hour${P > 1 ? "s" : ""} ago`;
3956
- } else return S.getFullYear() === b.getFullYear() ? S.toLocaleDateString("en-US", {
3991
+ } else return S.getFullYear() === y.getFullYear() ? S.toLocaleDateString("en-US", {
3957
3992
  month: "short",
3958
3993
  day: "2-digit",
3959
3994
  hour: "2-digit",
@@ -3966,14 +4001,14 @@ const Ve = "_wrapper_mlj8m_1", Ke = "_ticketContainer_mlj8m_23", Ye = "_title_ml
3966
4001
  minute: "2-digit"
3967
4002
  });
3968
4003
  };
3969
- return /* @__PURE__ */ a("div", { className: p.wrapper, children: n && !t ? /* @__PURE__ */ a(F, {}) : /* @__PURE__ */ m("div", { className: p.container, children: [
4004
+ return /* @__PURE__ */ a("div", { className: p.wrapper, children: n && !c ? /* @__PURE__ */ a(F, {}) : /* @__PURE__ */ m("div", { className: p.container, children: [
3970
4005
  d ? /* @__PURE__ */ m("div", { className: p.ticketContainer, children: [
3971
4006
  /* @__PURE__ */ a(
3972
4007
  "div",
3973
4008
  {
3974
4009
  className: p.title,
3975
4010
  style: { fontSize: "var(--font-heading-h3-size)" },
3976
- children: t == null ? void 0 : t.title
4011
+ children: c == null ? void 0 : c.title
3977
4012
  }
3978
4013
  ),
3979
4014
  /* @__PURE__ */ a(
@@ -3984,7 +4019,7 @@ const Ve = "_wrapper_mlj8m_1", Ke = "_ticketContainer_mlj8m_23", Ye = "_title_ml
3984
4019
  children: "We’re going to respond to your ticket shortly. You’ll receive updates in your email inbox. Feel free to close this page."
3985
4020
  }
3986
4021
  )
3987
- ] }) : /* @__PURE__ */ a("div", { className: p.title, children: `#${e} (${t == null ? void 0 : t.title})` }),
4022
+ ] }) : /* @__PURE__ */ a("div", { className: p.title, children: `#${e} (${c == null ? void 0 : c.title})` }),
3988
4023
  /* @__PURE__ */ m(
3989
4024
  "div",
3990
4025
  {
@@ -3994,7 +4029,7 @@ const Ve = "_wrapper_mlj8m_1", Ke = "_ticketContainer_mlj8m_23", Ye = "_title_ml
3994
4029
  border: d ? "1px solid var(--border-secondary)" : void 0
3995
4030
  },
3996
4031
  children: [
3997
- /* @__PURE__ */ a("div", { className: p.messages, children: t == null ? void 0 : t.messages.sort((u, b) => new Date(u.createdAt).getTime() - new Date(b.createdAt).getTime()).map((u) => /* @__PURE__ */ m(
4032
+ /* @__PURE__ */ a("div", { className: p.messages, children: c == null ? void 0 : c.messages.sort((u, y) => new Date(u.createdAt).getTime() - new Date(y.createdAt).getTime()).map((u) => /* @__PURE__ */ m(
3998
4033
  "div",
3999
4034
  {
4000
4035
  className: B(p.message, {
@@ -4024,14 +4059,14 @@ const Ve = "_wrapper_mlj8m_1", Ke = "_ticketContainer_mlj8m_23", Ye = "_title_ml
4024
4059
  placeholder: T ? "The ticket has been closed. Need further assistance? Please submit a new request." : d ? "Type a message..." : "What worries you?",
4025
4060
  onChange: (u) => I(u.target.value),
4026
4061
  onKeyDown: (u) => {
4027
- u.key === "Enter" && !u.shiftKey && (u.preventDefault(), y());
4062
+ u.key === "Enter" && !u.shiftKey && (u.preventDefault(), b());
4028
4063
  }
4029
4064
  }
4030
4065
  ),
4031
4066
  /* @__PURE__ */ a(
4032
4067
  "div",
4033
4068
  {
4034
- onClick: y,
4069
+ onClick: b,
4035
4070
  className: B(p.button, {
4036
4071
  [p.disabled]: T
4037
4072
  }),
@@ -4058,11 +4093,11 @@ export {
4058
4093
  Bo as e,
4059
4094
  Ro as f,
4060
4095
  Be as g,
4061
- Mo as h,
4096
+ Ho as h,
4062
4097
  Lo as i,
4063
4098
  xo as j,
4064
4099
  vo as k,
4065
- Ho as l,
4100
+ Mo as l,
4066
4101
  Oo as m,
4067
4102
  To as r,
4068
4103
  No as s,