@billgangcom/theme-lib 1.111.7 → 1.111.8

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 (40) hide show
  1. package/dist/{builder-CVkU9IhV.js → builder-B6i60sma.js} +5 -5
  2. package/dist/{builder-iDTY-5V6.cjs → builder-Deh_fnav.cjs} +2 -2
  3. package/dist/{builder-components-Bgp-Ty-V.cjs → builder-components-BIFQjan1.cjs} +1 -1
  4. package/dist/{builder-components-C5ikkE9d.js → builder-components-BgSow_Kz.js} +4 -4
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +22 -22
  7. package/dist/{charge-DpDinsX8.js → charge-8HkIW7kk.js} +1648 -1618
  8. package/dist/{charge-u_nBOUZM.cjs → charge-D8QB4s5G.cjs} +21 -21
  9. package/dist/{checkout-DOWk8tpf.cjs → checkout-C715JzoX.cjs} +1 -1
  10. package/dist/{checkout-CB2oKUQS.js → checkout-pMr4toCH.js} +5 -5
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-BQpvc-IY.js → index-BBhCe2Cu.js} +5 -5
  14. package/dist/{index-C0o5qJiP.cjs → index-BMbBI80K.cjs} +1 -1
  15. package/dist/{index-BFRcuDVu.cjs → index-Bq2F2nrK.cjs} +1 -1
  16. package/dist/{index-CQ-gkekH.js → index-DFUL1HBI.js} +5 -5
  17. package/dist/{index-CDvIVBhf.js → index-DGfeW3RO.js} +5 -5
  18. package/dist/{index-CDzE4F39.js → index-DpvnUf74.js} +1 -1
  19. package/dist/{index-BWZ2h_7x.cjs → index-DwzZXbBs.cjs} +1 -1
  20. package/dist/{index-_d_pN1E3.js → index-JUkMMMjF.js} +5 -5
  21. package/dist/{index-BQQCnV_m.cjs → index-aLRNwhiW.cjs} +1 -1
  22. package/dist/{index-BD7IfwmI.cjs → index-y5NAReni.cjs} +1 -1
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.es.js +6 -6
  25. package/dist/{order-DZ1zWuuY.js → order-BibjDu0g.js} +5 -5
  26. package/dist/{order-VojuN1Fs.cjs → order-CRqnGhcU.cjs} +1 -1
  27. package/dist/style.css +1 -1
  28. package/dist/{subscription-CPAjLrRF.cjs → subscription-BUA4-CPt.cjs} +1 -1
  29. package/dist/{subscription-6XMGDbBf.js → subscription-CepsiQaj.js} +5 -5
  30. package/dist/{ticket-CF6cbjcW.cjs → ticket-Bdh_l2QN.cjs} +4 -4
  31. package/dist/{ticket-DnsQQIx0.js → ticket-DJlmpBxf.js} +142 -142
  32. package/dist/{top-up-CYG44xXH.cjs → top-up-BUo-v-fR.cjs} +1 -1
  33. package/dist/{top-up-CwepC-U_.js → top-up-BjEVbH2l.js} +5 -5
  34. package/dist/{ui-components-BnzhZmPH.js → ui-components-CJRvhRHN.js} +4 -4
  35. package/dist/{ui-components-y9HAFfSv.cjs → ui-components-DcePtRle.cjs} +1 -1
  36. package/dist/ui.cjs.js +1 -1
  37. package/dist/ui.es.js +1 -1
  38. package/dist/{validation-Dc9nm0Et.js → validation-35NBHyPB.js} +5 -5
  39. package/dist/{validation-C18qAKPo.cjs → validation-BP7UgMxe.cjs} +1 -1
  40. package/package.json +1 -1
@@ -3,12 +3,12 @@ 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 te, X as ce, p as X, V as x, c as V, a as j, b as U, f as B, ab as ae, u as ie, U as K } from "./builder-CVkU9IhV.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-DpDinsX8.js";
8
- import { e as F, g as O, E as _, I as we } from "./ui-components-BnzhZmPH.js";
9
- import { R as Y, a as J, b as Q, c as fe } from "./builder-components-C5ikkE9d.js";
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-B6i60sma.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-8HkIW7kk.js";
8
+ import { e as F, g as O, E as _, I as we } from "./ui-components-CJRvhRHN.js";
9
+ import { R as Y, a as J, b as Q, c as fe } from "./builder-components-BgSow_Kz.js";
10
10
  import "react-dom";
11
- import "./checkout-CB2oKUQS.js";
11
+ import "./checkout-pMr4toCH.js";
12
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
13
  wrapper: be,
14
14
  bg: ye,
@@ -21,18 +21,18 @@ 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 c = `${e.storeApi}/v2/shops/${n}/pages/${o}` + (r ? `?password=${i}` : "");
24
+ const t = `${e.storeApi}/v2/shops/${n}/pages/${o}` + (r ? `?password=${i}` : "");
25
25
  try {
26
26
  return await z({
27
- url: c,
27
+ url: t,
28
28
  withToken: !0,
29
29
  method: "get"
30
30
  });
31
- } catch (t) {
32
- if (re.isAxiosError(t) && t.response && t.response.status === 404)
31
+ } catch (c) {
32
+ if (re.isAxiosError(c) && c.response && c.response.status === 404)
33
33
  return null;
34
34
  }
35
- }, ko = [
35
+ }, Lo = [
36
36
  "Acorn",
37
37
  "AcornIcon",
38
38
  "ActivityIcon",
@@ -3079,7 +3079,7 @@ const be = "_wrapper_1vt13_1", ye = "_bg_1vt13_10", Le = "_main_1vt13_32", ke =
3079
3079
  "YoutubeLogoIcon"
3080
3080
  ];
3081
3081
  var Fe = /* @__PURE__ */ ((o) => (o.ICON_LINK = "--icon-link", o.ICON_ERROR = "--icon-error", o.ICON_ACTION = "--icon-action", o.ICON_PRIMARY = "--icon-primary", o.ICON_SUCCESS = "--icon-success", o.ICON_WARNING = "--icon-warning", o.ICON_DISABLED = "--icon-disabled", o.ICON_INVERTED = "--icon-inverted", o.ICON_TERTIARY = "--icon-tertiary", o.ICON_SECONDARY = "--icon-secondary", o.ICON_ACTION_HOVER = "--icon-actionHover", o.ICON_INFORMATION = "--icon-information", o.TEXT_LINK = "--text-link", o.TEXT_ERROR = "--text-error", o.TEXT_ACTION = "--text-action", o.TEXT_PRIMARY = "--text-primary", o.TEXT_SUCCESS = "--text-success", o.TEXT_WARNING = "--text-warning", o.TEXT_DISABLED = "--text-disabled", o.TEXT_INVERTED = "--text-inverted", o.TEXT_TERTIARY = "--text-tertiary", o.TEXT_SECONDARY = "--text-secondary", o.TEXT_ACTION_HOVER = "--text-actionHover", o.TEXT_INFORMATION = "--text-information", o.BORDER_ERROR = "--border-error", o.BORDER_FOCUS = "--border-focus", o.BORDER_ACTION = "--border-action", o.BORDER_PRIMARY = "--border-primary", o.BORDER_SUCCESS = "--border-success", o.BORDER_WARNING = "--border-warning", o.BORDER_DISABLED = "--border-disabled", o.BORDER_SECONDARY = "--border-secondary", o.BORDER_ACTION_HOVER = "--border-actionHover", o.BORDER_INFORMATION = "--border-information", o.SURFACE_ERROR = "--surface-error", o.SURFACE_MODAL = "--surface-modal", o.SURFACE_ACTION1 = "--surface-action1", o.SURFACE_ACTION2 = "--surface-action2", o.SURFACE_PRIMARY = "--surface-primary", o.SURFACE_SUCCESS = "--surface-success", o.SURFACE_WARNING = "--surface-warning", o.SURFACE_DISABLED = "--surface-disabled", o.SURFACE_SECONDARY = "--surface-secondary", o.SURFACE_INFORMATION = "--surface-information", o.SURFACE_ACTION1_HOVER = "--surface-action1Hover", o.SURFACE_ACTION2_HOVER = "--surface-action2Hover", o))(Fe || {});
3082
- const To = [
3082
+ const ko = [
3083
3083
  {
3084
3084
  value: "4:3",
3085
3085
  addon: /* @__PURE__ */ a(
@@ -3184,10 +3184,10 @@ const To = [
3184
3184
  }
3185
3185
  )
3186
3186
  }
3187
- ], Ao = (o) => {
3187
+ ], To = (o) => {
3188
3188
  const { notifications: r, setNotifications: e } = E.getState();
3189
3189
  e(r.filter((n) => n.id !== o));
3190
- }, Po = (o) => {
3190
+ }, Ao = (o) => {
3191
3191
  const { notifications: r, setNotifications: e } = E.getState(), n = N();
3192
3192
  return e([
3193
3193
  ...r,
@@ -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, c = n.target;
3214
- this.callbacks.has(c) && ((e = this.callbacks.get(c)) == null || e.forEach((t) => t(i)));
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)));
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((c) => c !== e)
3230
+ i.filter((t) => t !== e)
3231
3231
  );
3232
3232
  }
3233
3233
  (n = this.callbacks.get(r)) != null && n.length || (this.callbacks.delete(r), this.observer.unobserve(r));
@@ -3239,24 +3239,24 @@ class De {
3239
3239
  }
3240
3240
  }
3241
3241
  const G = new De();
3242
- function Bo(o) {
3242
+ function Po(o) {
3243
3243
  const [r, e] = g.useState("desktop");
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", c = (l) => {
3247
+ const i = (l) => l >= 1081 ? "desktop" : l >= 720 ? "tablet" : "mobile", t = (l) => {
3248
3248
  const I = i(l);
3249
3249
  e(I);
3250
3250
  };
3251
- G.observe(n, c);
3252
- const t = n.getBoundingClientRect().width;
3253
- return c(t), () => {
3254
- G.unobserve(n, c);
3251
+ G.observe(n, t);
3252
+ const c = n.getBoundingClientRect().width;
3253
+ return t(c), () => {
3254
+ G.unobserve(n, t);
3255
3255
  };
3256
3256
  }, [o]), r;
3257
3257
  }
3258
- const Fo = () => {
3259
- const { balance: o, setBalance: r } = te();
3258
+ const Bo = () => {
3259
+ const { balance: o, setBalance: r } = ce();
3260
3260
  return g.useEffect(() => {
3261
3261
  o || (async () => {
3262
3262
  if (!localStorage.getItem("token")) return;
@@ -3279,13 +3279,13 @@ const Fo = () => {
3279
3279
  totalCount: 0
3280
3280
  };
3281
3281
  }
3282
- }, Do = () => {
3283
- const [o, r] = g.useState(null), { page: e, setPage: n } = ce(), [i, c] = g.useState(!0), [t, l] = g.useState(0);
3282
+ }, Fo = () => {
3283
+ const [o, r] = g.useState(null), { page: e, setPage: n } = te(), [i, t] = g.useState(!0), [c, l] = g.useState(0);
3284
3284
  g.useEffect(() => {
3285
3285
  (async () => {
3286
- c(!0);
3286
+ t(!0);
3287
3287
  const { list: C, totalCount: f } = await Ne(e);
3288
- r(C), l(f), c(!1);
3288
+ r(C), l(f), t(!1);
3289
3289
  })();
3290
3290
  }, [e]);
3291
3291
  const I = !i && o;
@@ -3317,7 +3317,7 @@ const Fo = () => {
3317
3317
  ge,
3318
3318
  {
3319
3319
  currentPage: e,
3320
- totalCount: t,
3320
+ totalCount: c,
3321
3321
  onPageChange: n
3322
3322
  }
3323
3323
  )
@@ -3328,7 +3328,7 @@ const Fo = () => {
3328
3328
  content: Ue,
3329
3329
  title: Oe
3330
3330
  }, _e = () => {
3331
- const o = X(), { isAntistock: r } = x();
3331
+ const o = j(), { isAntistock: r } = x();
3332
3332
  return r ? /* @__PURE__ */ m(
3333
3333
  "div",
3334
3334
  {
@@ -3402,9 +3402,9 @@ const Fo = () => {
3402
3402
  "/support": "Support",
3403
3403
  "/cart": "Cart"
3404
3404
  }, Ge = ({ pagePath: o }) => {
3405
- const { sourceBlocks: r } = V(), [e, n] = g.useState(null), [i, c] = g.useState(!0), [t, l] = g.useState(null), { settings: I } = j(), { addProducts: w } = he(), { pageContext: C } = U(), { isAntistock: f, general: d } = x();
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();
3406
3406
  g.useEffect(() => {
3407
- c(!0);
3407
+ t(!0);
3408
3408
  const h = async () => {
3409
3409
  const y = await Be(
3410
3410
  encodeURIComponent(o),
@@ -3414,9 +3414,9 @@ const Fo = () => {
3414
3414
  const { data: s } = y;
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: [...(t == null ? void 0 : t.order) ?? [], ...s.layout.order],
3417
+ order: [...(c == null ? void 0 : c.order) ?? [], ...s.layout.order],
3418
3418
  data: {
3419
- ...t == null ? void 0 : t.data,
3419
+ ...c == null ? void 0 : c.data,
3420
3420
  ...s.layout.data
3421
3421
  }
3422
3422
  };
@@ -3455,7 +3455,7 @@ const Fo = () => {
3455
3455
  });
3456
3456
  w(s.products);
3457
3457
  }
3458
- c(!1);
3458
+ t(!1);
3459
3459
  };
3460
3460
  C.listings && d && h();
3461
3461
  }, [o, C.listings, d]);
@@ -3467,7 +3467,7 @@ const Fo = () => {
3467
3467
  const y = new r[h.name]();
3468
3468
  return h.value && Object.assign(y, h.value), y.renderBlock(I, e);
3469
3469
  };
3470
- return !i && t === null ? /* @__PURE__ */ a(_e, {}) : /* @__PURE__ */ m(
3470
+ return !i && c === null ? /* @__PURE__ */ a(_e, {}) : /* @__PURE__ */ m(
3471
3471
  "div",
3472
3472
  {
3473
3473
  className: B(k.wrapper, {
@@ -3483,17 +3483,17 @@ const Fo = () => {
3483
3483
  pageContext: e
3484
3484
  }
3485
3485
  ),
3486
- t ? /* @__PURE__ */ m(ne, { children: [
3486
+ c ? /* @__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: t.order && t.order.map((h) => /* @__PURE__ */ a(
3493
+ children: c.order && c.order.map((h) => /* @__PURE__ */ a(
3494
3494
  fe,
3495
3495
  {
3496
- block: t.data[h],
3496
+ block: c.data[h],
3497
3497
  render: T
3498
3498
  },
3499
3499
  h
@@ -3513,34 +3513,34 @@ const Fo = () => {
3513
3513
  }
3514
3514
  );
3515
3515
  };
3516
- function Ro() {
3516
+ function Do() {
3517
3517
  const o = ae();
3518
3518
  return /* @__PURE__ */ a(Ge, { pagePath: o.pathname });
3519
3519
  }
3520
- const vo = (o, r) => {
3520
+ const Ro = (o, r) => {
3521
3521
  let e = `:root {
3522
3522
  `;
3523
3523
  if (r && (e += ` --max-width-store: ${r.maxStoreWidth};
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(([c, t]) => {
3528
- e += ` --${n}-${c}: ${t};
3527
+ Object.entries(i).forEach(([t, c]) => {
3528
+ e += ` --${n}-${t}: ${c};
3529
3529
  `;
3530
3530
  });
3531
3531
  }), o.fonts && Object.entries(o.fonts.desktop).forEach(([n, i]) => {
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};
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};
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}`, 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}`;
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}`;
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 vo = (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: ${c};
3561
+ `, e += ` --button-secondary-box-shadow: ${t};
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 vo = (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: ${t};
3572
+ `, e += ` --button-tertiary-box-shadow: ${c};
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};
@@ -3642,7 +3642,7 @@ const vo = (o, r) => {
3642
3642
  `, e += ` --border-md: var(--scale-2);
3643
3643
  `, e += ` --border-lg: var(--scale-4);
3644
3644
  `, e += "}", e;
3645
- }, xo = (o) => {
3645
+ }, vo = (o) => {
3646
3646
  const r = document.getElementById("dynamic-styles");
3647
3647
  if (r)
3648
3648
  r.innerHTML = o;
@@ -3654,10 +3654,10 @@ const vo = (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, c;
3657
+ var i, t;
3658
3658
  if (n && n.font) {
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);
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);
3661
3661
  }
3662
3662
  });
3663
3663
  }), r;
@@ -3667,8 +3667,8 @@ const vo = (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 c = e[n].replace(/\s+/g, "+");
3671
- r.has(c) || r.set(c, /* @__PURE__ */ new Set()), (i = r.get(c)) == null || i.add("400");
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");
3672
3672
  }
3673
3673
  });
3674
3674
  }), r;
@@ -3682,21 +3682,21 @@ const vo = (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(";"), 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);
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);
3689
3689
  }
3690
3690
  }), qe(r);
3691
- }, Ho = (o) => {
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, c) => {
3695
- if (n.has(c)) {
3696
- const t = n.get(c);
3697
- i.forEach((l) => t == null ? void 0 : t.add(l));
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));
3698
3698
  } else
3699
- n.set(c, new Set(i));
3699
+ n.set(t, new Set(i));
3700
3700
  }), ze(n);
3701
3701
  }
3702
3702
  }, M = [
@@ -3707,7 +3707,7 @@ const vo = (o, r) => {
3707
3707
  { filename: "gteestiprodisplay_bold.dac95605.otf", weight: "700", style: "normal" }
3708
3708
  ]
3709
3709
  }
3710
- ], Xe = (o) => {
3710
+ ], je = (o) => {
3711
3711
  var e;
3712
3712
  switch ((e = o.split(".").pop()) == null ? void 0 : e.toLowerCase()) {
3713
3713
  case "woff2":
@@ -3721,8 +3721,8 @@ const vo = (o, r) => {
3721
3721
  default:
3722
3722
  return "opentype";
3723
3723
  }
3724
- }, Ve = (o, r, e, n) => {
3725
- const i = Xe(r);
3724
+ }, Xe = (o, r, e, n) => {
3725
+ const i = je(r);
3726
3726
  return `
3727
3727
  @font-face {
3728
3728
  font-family: '${o}';
@@ -3731,13 +3731,13 @@ const vo = (o, r) => {
3731
3731
  font-style: ${n};
3732
3732
  font-display: swap;
3733
3733
  }`;
3734
- }, Mo = () => {
3734
+ }, Ho = () => {
3735
3735
  if (document.getElementById("custom-fonts-styles"))
3736
3736
  return;
3737
3737
  let o = "";
3738
3738
  M.forEach((e) => {
3739
3739
  e.files.forEach((n) => {
3740
- o += Ve(e.family, n.filename, n.weight, n.style) + `
3740
+ o += Xe(e.family, n.filename, n.weight, n.style) + `
3741
3741
  `;
3742
3742
  });
3743
3743
  });
@@ -3746,7 +3746,7 @@ const vo = (o, r) => {
3746
3746
  console.log(`Font "${e.family}":`, e.files.map((n) => `${n.filename} (${n.weight})`).join(", "));
3747
3747
  });
3748
3748
  };
3749
- function No() {
3749
+ function Mo() {
3750
3750
  if (window.location.pathname.includes("/admin/builder"))
3751
3751
  try {
3752
3752
  const {
@@ -3755,15 +3755,15 @@ function No() {
3755
3755
  blocks: e,
3756
3756
  setHeader: n,
3757
3757
  setFooter: i,
3758
- setAnnouncement: c
3759
- } = ie.getState(), { currentPage: t, pages: l } = U.getState(), { currentInstance: I, settingsInstance: w } = V.getState(), { setSettings: C } = j.getState();
3758
+ setAnnouncement: t
3759
+ } = ie.getState(), { currentPage: c, pages: l } = U.getState(), { currentInstance: I, settingsInstance: w } = X.getState(), { setSettings: C } = V.getState();
3760
3760
  if (r || C(w.blockSettings), I && r) {
3761
3761
  if (r === "header")
3762
3762
  n(I);
3763
3763
  else if (r === "footer")
3764
3764
  i(I);
3765
3765
  else if (r === "announcement")
3766
- c(I);
3766
+ t(I);
3767
3767
  else if (r === "header" || r === "footer" || r === "announcement")
3768
3768
  throw new Error(`Missing ${r} data.`);
3769
3769
  }
@@ -3775,14 +3775,14 @@ function No() {
3775
3775
  throw new Error("currentInstance.blockSettings is undefined.");
3776
3776
  if (Object.keys(I.blockSettings).filter((d) => !["displayName", "isAddable"].includes(d)).forEach((d) => {
3777
3777
  f.blockSettings[d] = I.blockSettings[d];
3778
- }), !l[t])
3779
- throw new Error(`Page "${t}" does not exist.`);
3780
- if (!e[l[t].path].data || !e[l[t].path].data[r])
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])
3781
3781
  throw new Error(
3782
- `Layer or block for page "${l[t].path}" and block "${r}" does not exist.`
3782
+ `Layer or block for page "${l[c].path}" and block "${r}" does not exist.`
3783
3783
  );
3784
- o(l[t].path, r, {
3785
- name: e[l[t].path].data[r].name,
3784
+ o(l[c].path, r, {
3785
+ name: e[l[c].path].data[r].name,
3786
3786
  value: f
3787
3787
  });
3788
3788
  }
@@ -3790,34 +3790,34 @@ function No() {
3790
3790
  console.error("Error in hotReload function:", o);
3791
3791
  }
3792
3792
  }
3793
- function je(o, r = !0) {
3793
+ function No(o, r = !0) {
3794
3794
  if (!o || typeof o != "string")
3795
3795
  return "";
3796
3796
  if (/<[a-z][\s\S]*>/i.test(o))
3797
3797
  return o;
3798
3798
  const n = o.split(" "), i = 20;
3799
3799
  if (r) {
3800
- let c = "", t = [];
3800
+ let t = "", c = [];
3801
3801
  return n.forEach((l) => {
3802
- 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);
3803
- }), t.length > 0 && (c += `<span style="hyphens: manual">${t.join(" ")}</span>`), c;
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;
3804
3804
  } else {
3805
- const c = [];
3806
- let t = [], l = 0;
3805
+ const t = [];
3806
+ let c = [], l = 0;
3807
3807
  return n.forEach((I) => {
3808
- I.length > i ? (t.length > 0 && (c.push(
3808
+ I.length > i ? (c.length > 0 && (t.push(
3809
3809
  /* @__PURE__ */ m(
3810
3810
  "span",
3811
3811
  {
3812
3812
  style: { hyphens: "manual" },
3813
3813
  children: [
3814
- t.join(" "),
3814
+ c.join(" "),
3815
3815
  " "
3816
3816
  ]
3817
3817
  },
3818
3818
  l++
3819
3819
  )
3820
- ), t = []), c.push(
3820
+ ), c = []), t.push(
3821
3821
  /* @__PURE__ */ m(
3822
3822
  "span",
3823
3823
  {
@@ -3830,30 +3830,30 @@ function je(o, r = !0) {
3830
3830
  },
3831
3831
  l++
3832
3832
  )
3833
- )) : t.push(I);
3834
- }), t.length > 0 && c.push(
3833
+ )) : c.push(I);
3834
+ }), c.length > 0 && t.push(
3835
3835
  /* @__PURE__ */ a(
3836
3836
  "span",
3837
3837
  {
3838
3838
  style: { hyphens: "manual" },
3839
- children: t.join(" ")
3839
+ children: c.join(" ")
3840
3840
  },
3841
3841
  l++
3842
3842
  )
3843
- ), c;
3843
+ ), t;
3844
3844
  }
3845
3845
  }
3846
3846
  const Eo = () => {
3847
- const o = $.getState().apiUrls, r = X(), { notifications: e, setNotifications: n } = E(), { isAntistock: i } = x();
3848
- return async (c, t, l, I, w) => {
3847
+ const o = $.getState().apiUrls, r = j(), { notifications: e, setNotifications: n } = E(), { isAntistock: i } = x();
3848
+ return async (t, c, l, I, w) => {
3849
3849
  const C = q ? localStorage.getItem("fakeDomain") : window.location.hostname, f = `${o.slApi}/v1/public/${C}/tickets`;
3850
3850
  try {
3851
3851
  const d = await z({
3852
3852
  method: "post",
3853
3853
  url: f,
3854
3854
  body: {
3855
- title: c,
3856
- firstMessage: t,
3855
+ title: t,
3856
+ firstMessage: c,
3857
3857
  email: I,
3858
3858
  recaptcha: l,
3859
3859
  tsId: K(),
@@ -3887,30 +3887,30 @@ const Eo = () => {
3887
3887
  }, [o]), r;
3888
3888
  };
3889
3889
  var Z = /* @__PURE__ */ ((o) => (o.NEW = "NEW", o.ANSWERED = "ANSWERED", o.NOT_ANSWERED = "NOT_ANSWERED", o.CLOSED = "CLOSED", o))(Z || {});
3890
- const Ke = "_wrapper_3txfs_1", Ye = "_ticketContainer_3txfs_23", Je = "_title_3txfs_28", Qe = "_subtext_3txfs_35", Ze = "_container_3txfs_41", eo = "_content_3txfs_52", oo = "_messages_3txfs_63", no = "_input_3txfs_81", ro = "_textarea_3txfs_94", to = "_textareaAntistock_3txfs_123", co = "_message_3txfs_63", ao = "_messageDate_3txfs_153", io = "_messageAntistock_3txfs_159", lo = "_myMessage_3txfs_163", so = "_otherMessage_3txfs_170", Io = "_button_3txfs_177", uo = "_disabled_3txfs_177", po = "_loadingMessage_3txfs_203", p = {
3891
- wrapper: Ke,
3892
- ticketContainer: Ye,
3893
- title: Je,
3894
- subtext: Qe,
3895
- container: Ze,
3896
- content: eo,
3897
- messages: oo,
3898
- input: no,
3899
- textarea: ro,
3900
- textareaAntistock: to,
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 = {
3891
+ wrapper: Ve,
3892
+ ticketContainer: Ke,
3893
+ title: Ye,
3894
+ subtext: Je,
3895
+ container: Qe,
3896
+ content: Ze,
3897
+ messages: eo,
3898
+ input: oo,
3899
+ textarea: no,
3900
+ textareaAntistock: ro,
3901
3901
  message: co,
3902
- messageDate: ao,
3903
- messageAntistock: io,
3904
- myMessage: lo,
3905
- otherMessage: so,
3906
- button: Io,
3907
- disabled: uo,
3908
- loadingMessage: po
3909
- }, go = () => {
3910
- 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 () => {
3902
+ messageDate: to,
3903
+ messageAntistock: ao,
3904
+ myMessage: io,
3905
+ otherMessage: lo,
3906
+ button: so,
3907
+ disabled: Io,
3908
+ loadingMessage: uo
3909
+ }, 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 () => {
3911
3911
  if (e && r) {
3912
3912
  const { data: u } = await me(e, r);
3913
- t(u), i(!1);
3913
+ c(u), i(!1);
3914
3914
  }
3915
3915
  };
3916
3916
  g.useEffect(() => {
@@ -3930,7 +3930,7 @@ const Ke = "_wrapper_3txfs_1", Ye = "_ticketContainer_3txfs_23", Je = "_title_3t
3930
3930
  // Уникальный временный ID
3931
3931
  isSellerReply: !1
3932
3932
  };
3933
- t(
3933
+ c(
3934
3934
  (S) => S ? {
3935
3935
  ...S,
3936
3936
  messages: [...S.messages, b]
@@ -3966,14 +3966,14 @@ const Ke = "_wrapper_3txfs_1", Ye = "_ticketContainer_3txfs_23", Je = "_title_3t
3966
3966
  minute: "2-digit"
3967
3967
  });
3968
3968
  };
3969
- return /* @__PURE__ */ a("div", { className: p.wrapper, children: n && !c ? /* @__PURE__ */ a(F, {}) : /* @__PURE__ */ m("div", { className: p.container, children: [
3969
+ return /* @__PURE__ */ a("div", { className: p.wrapper, children: n && !t ? /* @__PURE__ */ a(F, {}) : /* @__PURE__ */ m("div", { className: p.container, children: [
3970
3970
  d ? /* @__PURE__ */ m("div", { className: p.ticketContainer, children: [
3971
3971
  /* @__PURE__ */ a(
3972
3972
  "div",
3973
3973
  {
3974
3974
  className: p.title,
3975
3975
  style: { fontSize: "var(--font-heading-h3-size)" },
3976
- children: c == null ? void 0 : c.title
3976
+ children: t == null ? void 0 : t.title
3977
3977
  }
3978
3978
  ),
3979
3979
  /* @__PURE__ */ a(
@@ -3984,7 +3984,7 @@ const Ke = "_wrapper_3txfs_1", Ye = "_ticketContainer_3txfs_23", Je = "_title_3t
3984
3984
  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
3985
  }
3986
3986
  )
3987
- ] }) : /* @__PURE__ */ a("div", { className: p.title, children: `#${e} (${c == null ? void 0 : c.title})` }),
3987
+ ] }) : /* @__PURE__ */ a("div", { className: p.title, children: `#${e} (${t == null ? void 0 : t.title})` }),
3988
3988
  /* @__PURE__ */ m(
3989
3989
  "div",
3990
3990
  {
@@ -3994,7 +3994,7 @@ const Ke = "_wrapper_3txfs_1", Ye = "_ticketContainer_3txfs_23", Je = "_title_3t
3994
3994
  border: d ? "1px solid var(--border-secondary)" : void 0
3995
3995
  },
3996
3996
  children: [
3997
- /* @__PURE__ */ a("div", { className: p.messages, children: c == null ? void 0 : c.messages.sort((u, b) => new Date(u.createdAt).getTime() - new Date(b.createdAt).getTime()).map((u) => /* @__PURE__ */ m(
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(
3998
3998
  "div",
3999
3999
  {
4000
4000
  className: B(p.message, {
@@ -4005,7 +4005,7 @@ const Ke = "_wrapper_3txfs_1", Ye = "_ticketContainer_3txfs_23", Je = "_title_3t
4005
4005
  // Добавляем класс загрузки
4006
4006
  }),
4007
4007
  children: [
4008
- /* @__PURE__ */ a("div", { className: p.messageContent, children: je(u.content, !1) }),
4008
+ /* @__PURE__ */ a("div", { className: p.messageContent, children: u.content }),
4009
4009
  w !== u.id && /* @__PURE__ */ a("div", { className: p.messageDate, children: s(u.createdAt) }),
4010
4010
  w === u.id && /* @__PURE__ */ a("div", { className: p.messageDate, children: /* @__PURE__ */ a(F, {}) })
4011
4011
  ]
@@ -4045,26 +4045,26 @@ const Ke = "_wrapper_3txfs_1", Ye = "_ticketContainer_3txfs_23", Je = "_title_3t
4045
4045
  ] }) });
4046
4046
  }, Oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4047
4047
  __proto__: null,
4048
- TicketItem: go
4048
+ TicketItem: po
4049
4049
  }, Symbol.toStringTag, { value: "Module" }));
4050
4050
  export {
4051
4051
  Fe as C,
4052
- Ro as D,
4053
- Do as T,
4052
+ Do as D,
4053
+ Fo as T,
4054
4054
  Eo as a,
4055
4055
  Uo as b,
4056
- To as c,
4057
- Po as d,
4058
- Fo as e,
4059
- vo as f,
4056
+ ko as c,
4057
+ Ao as d,
4058
+ Bo as e,
4059
+ Ro as f,
4060
4060
  Be as g,
4061
- No as h,
4062
- ko as i,
4063
- Ho as j,
4064
- xo as k,
4065
- Mo as l,
4061
+ Mo as h,
4062
+ Lo as i,
4063
+ xo as j,
4064
+ vo as k,
4065
+ Ho as l,
4066
4066
  Oo as m,
4067
- Ao as r,
4068
- je as s,
4069
- Bo as u
4067
+ To as r,
4068
+ No as s,
4069
+ Po as u
4070
4070
  };