@billgangcom/theme-lib 1.69.4 → 1.69.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.es.js CHANGED
@@ -1,18 +1,18 @@
1
- import { j as t, I as v, c as F, b as Nt, u as ht, d as pt, P as mt, S as rt, R as kt, D as gt, e as ft, v as xt, B as lt, f as nt, a as wt, g as Pt, O as ut, h as Z, i as _t, C as jt, k as V, l as $t, m as qt, n as vt, o as Ot, p as yt, q as X, L as At, r as Ct, t as bt, w as at, s as it, x as D, y as Et, M as dt, z as ot, A as Dt, E as Mt, F as Rt, G as Bt, H as Lt } from "./index-CVyi3AZa.js";
2
- import { X as Yn, U as Gn, N as Wn, W as Xn, K as Qn, Q as Jn, T as Kn, J as Zn, V as ti } from "./index-CVyi3AZa.js";
1
+ import { j as t, I as v, c as F, b as Nt, u as ht, d as pt, P as mt, S as rt, R as kt, D as gt, e as ft, v as xt, B as lt, f as nt, a as wt, g as Pt, O as ut, h as Z, i as _t, C as jt, k as V, l as $t, m as qt, n as vt, o as Ot, p as yt, q as X, L as At, r as Ct, t as bt, w as at, s as it, x as D, y as Et, M as dt, z as Dt, A as ot, E as Rt, F as Mt, G as Lt, H as Bt, J as zt } from "./index-D0Va9_Ca.js";
2
+ import { Y as Gn, V as Wn, Q as Xn, X as Qn, N as Jn, U as Kn, T as Zn, K as ti, W as ei } from "./index-D0Va9_Ca.js";
3
3
  import m from "react";
4
- const zt = "_block_kh9z8_8", Ht = "_title_kh9z8_16", Ut = "_subtitle_kh9z8_23", Ft = "_alignmentContent_kh9z8_30", Vt = "_alignments_kh9z8_39", Yt = "_alignment_kh9z8_30", Gt = "_circle_kh9z8_64", Wt = "_paddings_kh9z8_71", Xt = "_padding_kh9z8_71", Qt = "_active_kh9z8_97", G = {
5
- block: zt,
6
- title: Ht,
7
- subtitle: Ut,
8
- alignmentContent: Ft,
9
- alignments: Vt,
10
- alignment: Yt,
11
- circle: Gt,
12
- paddings: Wt,
13
- padding: Xt,
14
- active: Qt
15
- }, Jt = [
4
+ const Ht = "_block_kh9z8_8", Ut = "_title_kh9z8_16", Ft = "_subtitle_kh9z8_23", Vt = "_alignmentContent_kh9z8_30", Yt = "_alignments_kh9z8_39", Gt = "_alignment_kh9z8_30", Wt = "_circle_kh9z8_64", Xt = "_paddings_kh9z8_71", Qt = "_padding_kh9z8_71", Jt = "_active_kh9z8_97", G = {
5
+ block: Ht,
6
+ title: Ut,
7
+ subtitle: Ft,
8
+ alignmentContent: Vt,
9
+ alignments: Yt,
10
+ alignment: Gt,
11
+ circle: Wt,
12
+ paddings: Xt,
13
+ padding: Qt,
14
+ active: Jt
15
+ }, Kt = [
16
16
  "topLeft",
17
17
  "top",
18
18
  "topRight",
@@ -22,7 +22,7 @@ const zt = "_block_kh9z8_8", Ht = "_title_kh9z8_16", Ut = "_subtitle_kh9z8_23",
22
22
  "bottomLeft",
23
23
  "bottom",
24
24
  "bottomRight"
25
- ], Kt = ["left", "top", "right", "bottom"], Mn = (r) => {
25
+ ], Zt = ["left", "top", "right", "bottom"], Bn = (r) => {
26
26
  const {
27
27
  alignment: i,
28
28
  padding: a,
@@ -67,7 +67,7 @@ const zt = "_block_kh9z8_8", Ht = "_title_kh9z8_16", Ut = "_subtitle_kh9z8_23",
67
67
  /* @__PURE__ */ t.jsxs("div", { className: G.alignmentContent, children: [
68
68
  c && /* @__PURE__ */ t.jsxs("div", { className: G.block, children: [
69
69
  /* @__PURE__ */ t.jsx("h5", { className: G.subtitle, children: "Alignment" }),
70
- /* @__PURE__ */ t.jsx("div", { className: G.alignments, children: Jt.map((o) => /* @__PURE__ */ t.jsxs(
70
+ /* @__PURE__ */ t.jsx("div", { className: G.alignments, children: Kt.map((o) => /* @__PURE__ */ t.jsxs(
71
71
  "div",
72
72
  {
73
73
  onClick: () => {
@@ -107,7 +107,7 @@ const zt = "_block_kh9z8_8", Ht = "_title_kh9z8_16", Ut = "_subtitle_kh9z8_23",
107
107
  ] }),
108
108
  d && /* @__PURE__ */ t.jsxs("div", { className: G.block, children: [
109
109
  /* @__PURE__ */ t.jsx("h5", { className: G.subtitle, children: "Paddings" }),
110
- /* @__PURE__ */ t.jsx("div", { className: G.paddings, children: Kt.map((o) => /* @__PURE__ */ t.jsxs(
110
+ /* @__PURE__ */ t.jsx("div", { className: G.paddings, children: Zt.map((o) => /* @__PURE__ */ t.jsxs(
111
111
  "label",
112
112
  {
113
113
  className: F(G.padding, {
@@ -149,20 +149,20 @@ const zt = "_block_kh9z8_8", Ht = "_title_kh9z8_16", Ut = "_subtitle_kh9z8_23",
149
149
  ] })
150
150
  ] })
151
151
  ] });
152
- }, Zt = "_title_82zux_1", te = "_subtitle_82zux_5", ee = "_productsBlock_82zux_14", se = "_top_82zux_26", ne = "_products_82zux_14", ie = "_product_82zux_14", ae = "_button_82zux_80", oe = "_disabled_82zux_91", ce = "_buttons_82zux_118", re = "_addButton_82zux_157", le = "_deleteButton_82zux_179", Q = {
153
- title: Zt,
154
- subtitle: te,
155
- productsBlock: ee,
156
- top: se,
157
- products: ne,
158
- product: ie,
159
- button: ae,
160
- disabled: oe,
161
- buttons: ce,
162
- addButton: re,
163
- deleteButton: le
152
+ }, te = "_title_82zux_1", ee = "_subtitle_82zux_5", se = "_productsBlock_82zux_14", ne = "_top_82zux_26", ie = "_products_82zux_14", ae = "_product_82zux_14", oe = "_button_82zux_80", ce = "_disabled_82zux_91", re = "_buttons_82zux_118", le = "_addButton_82zux_157", de = "_deleteButton_82zux_179", Q = {
153
+ title: te,
154
+ subtitle: ee,
155
+ productsBlock: se,
156
+ top: ne,
157
+ products: ie,
158
+ product: ae,
159
+ button: oe,
160
+ disabled: ce,
161
+ buttons: re,
162
+ addButton: le,
163
+ deleteButton: de
164
164
  };
165
- function de({ id: r, children: i }) {
165
+ function ue({ id: r, children: i }) {
166
166
  const {
167
167
  attributes: a,
168
168
  listeners: s,
@@ -188,7 +188,7 @@ function de({ id: r, children: i }) {
188
188
  }
189
189
  );
190
190
  }
191
- const Bn = (r) => {
191
+ const Tn = (r) => {
192
192
  const {
193
193
  isActiveItems: i,
194
194
  setIsActiveItems: a,
@@ -288,7 +288,7 @@ const Bn = (r) => {
288
288
  ) }) })
289
289
  ] });
290
290
  return f ? /* @__PURE__ */ t.jsx(
291
- de,
291
+ ue,
292
292
  {
293
293
  id: h,
294
294
  children: N
@@ -421,20 +421,20 @@ const Bn = (r) => {
421
421
  }
422
422
  )
423
423
  ] });
424
- }, ue = "_title_roi3a_1", he = "_subtitle_roi3a_5", pe = "_productsBlock_roi3a_14", me = "_top_roi3a_26", ge = "_products_roi3a_14", fe = "_product_roi3a_14", xe = "_button_roi3a_80", _e = "_disabled_roi3a_91", je = "_buttons_roi3a_118", ve = "_addButton_roi3a_164", be = "_deleteButton_roi3a_179", Y = {
425
- title: ue,
426
- subtitle: he,
427
- productsBlock: pe,
428
- top: me,
429
- products: ge,
430
- product: fe,
431
- button: xe,
432
- disabled: _e,
433
- buttons: je,
434
- addButton: ve,
435
- deleteButton: be
424
+ }, he = "_title_roi3a_1", pe = "_subtitle_roi3a_5", me = "_productsBlock_roi3a_14", ge = "_top_roi3a_26", fe = "_products_roi3a_14", xe = "_product_roi3a_14", _e = "_button_roi3a_80", je = "_disabled_roi3a_91", ve = "_buttons_roi3a_118", be = "_addButton_roi3a_164", ye = "_deleteButton_roi3a_179", Y = {
425
+ title: he,
426
+ subtitle: pe,
427
+ productsBlock: me,
428
+ top: ge,
429
+ products: fe,
430
+ product: xe,
431
+ button: _e,
432
+ disabled: je,
433
+ buttons: ve,
434
+ addButton: be,
435
+ deleteButton: ye
436
436
  };
437
- function ye({ product: r, children: i }) {
437
+ function Ie({ product: r, children: i }) {
438
438
  const {
439
439
  attributes: a,
440
440
  listeners: s,
@@ -460,7 +460,7 @@ function ye({ product: r, children: i }) {
460
460
  }
461
461
  );
462
462
  }
463
- const Tn = (r) => {
463
+ const $n = (r) => {
464
464
  const {
465
465
  isActiveItems: i,
466
466
  setIsActiveItems: a,
@@ -566,7 +566,7 @@ const Tn = (r) => {
566
566
  ] })
567
567
  ] });
568
568
  return g ? /* @__PURE__ */ t.jsx(
569
- ye,
569
+ Ie,
570
570
  {
571
571
  product: h,
572
572
  index: S,
@@ -664,7 +664,7 @@ const Tn = (r) => {
664
664
  ] })
665
665
  ] });
666
666
  };
667
- function Ie(r) {
667
+ function Ne(r) {
668
668
  const { product: i, children: a } = r, { attributes: s, listeners: e, setNodeRef: c, transform: d, transition: u, isDragging: g } = _t({
669
669
  id: i.id
670
670
  }), f = {
@@ -683,7 +683,7 @@ function Ie(r) {
683
683
  }
684
684
  );
685
685
  }
686
- const $n = (r) => {
686
+ const qn = (r) => {
687
687
  const {
688
688
  isActiveItems: i,
689
689
  setIsActiveItems: a,
@@ -841,7 +841,7 @@ const $n = (r) => {
841
841
  ] })
842
842
  ] });
843
843
  return f ? /* @__PURE__ */ t.jsx(
844
- Ie,
844
+ Ne,
845
845
  {
846
846
  product: l,
847
847
  children: $
@@ -974,15 +974,15 @@ const $n = (r) => {
974
974
  }
975
975
  )
976
976
  ] });
977
- }, Ne = "_subtitle_jql1y_1", Ce = "_products_jql1y_10", Se = "_product_jql1y_10", ke = "_button_jql1y_11", we = "_buttons_jql1y_11", Pe = "_addButton_jql1y_150", Me = "_deleteButton_jql1y_165", et = {
978
- subtitle: Ne,
979
- products: Ce,
980
- product: Se,
981
- button: ke,
982
- buttons: we,
983
- addButton: Pe,
984
- deleteButton: Me
985
- }, Be = (r) => {
977
+ }, Ce = "_subtitle_jql1y_1", Se = "_products_jql1y_10", ke = "_product_jql1y_10", we = "_button_jql1y_11", Pe = "_buttons_jql1y_11", Me = "_addButton_jql1y_150", Be = "_deleteButton_jql1y_165", et = {
978
+ subtitle: Ce,
979
+ products: Se,
980
+ product: ke,
981
+ button: we,
982
+ buttons: Pe,
983
+ addButton: Me,
984
+ deleteButton: Be
985
+ }, Te = (r) => {
986
986
  const { buttons: i, setButtons: a, deletable: s = !0, addable: e = !0, editableLink: c = !0 } = r, { pages: d } = vt(), [u, g] = m.useState(null), [f, P] = m.useState({
987
987
  top: 0,
988
988
  left: 0
@@ -1149,7 +1149,7 @@ const $n = (r) => {
1149
1149
  }
1150
1150
  )
1151
1151
  ] });
1152
- }, qn = (r) => {
1152
+ }, On = (r) => {
1153
1153
  const {
1154
1154
  isActiveButtons: i,
1155
1155
  setIsActiveButtons: a,
@@ -1171,7 +1171,7 @@ const $n = (r) => {
1171
1171
  )
1172
1172
  ] }),
1173
1173
  i && /* @__PURE__ */ t.jsx(
1174
- Be,
1174
+ Te,
1175
1175
  {
1176
1176
  buttons: s,
1177
1177
  setButtons: e,
@@ -1182,7 +1182,7 @@ const $n = (r) => {
1182
1182
  )
1183
1183
  ] }) });
1184
1184
  };
1185
- function Te(r) {
1185
+ function $e(r) {
1186
1186
  const { product: i, children: a } = r, { attributes: s, listeners: e, setNodeRef: c, transform: d, transition: u, isDragging: g } = _t({
1187
1187
  id: String(i.listingId)
1188
1188
  }), f = {
@@ -1201,7 +1201,7 @@ function Te(r) {
1201
1201
  }
1202
1202
  );
1203
1203
  }
1204
- const On = (r) => {
1204
+ const An = (r) => {
1205
1205
  const {
1206
1206
  isActiveItems: i,
1207
1207
  setIsActiveItems: a,
@@ -1346,7 +1346,7 @@ const On = (r) => {
1346
1346
  ] })
1347
1347
  ] });
1348
1348
  return f ? /* @__PURE__ */ t.jsx(
1349
- Te,
1349
+ $e,
1350
1350
  {
1351
1351
  product: b,
1352
1352
  children: U
@@ -1463,30 +1463,30 @@ const On = (r) => {
1463
1463
  }
1464
1464
  )
1465
1465
  ] });
1466
- }, $e = "_options_167h8_1", qe = "_price_167h8_18", Oe = "_oldPrice_167h8_25", Ae = "_newPrice_167h8_33", Ee = "_animate_167h8_40", De = "_meta_167h8_58", Re = "_info_167h8_64", Le = "_infoRight_167h8_73", ze = "_buttons_167h8_80", He = "_variants_167h8_87", Ue = "_variant_167h8_87", Fe = "_stock_167h8_105", Ve = "_variantInfo_167h8_112", Ye = "_quantity_167h8_119", Ge = "_button_167h8_80", We = "_activeVariant_167h8_165", Xe = "_chargeTypes_167h8_169", Qe = "_charge_167h8_169", Je = "_chargeActive_167h8_194", Ke = "_title_167h8_202", T = {
1467
- options: $e,
1468
- price: qe,
1469
- oldPrice: Oe,
1470
- newPrice: Ae,
1471
- animate: Ee,
1472
- meta: De,
1473
- info: Re,
1474
- infoRight: Le,
1475
- buttons: ze,
1476
- variants: He,
1477
- variant: Ue,
1478
- stock: Fe,
1479
- variantInfo: Ve,
1480
- quantity: Ye,
1481
- button: Ge,
1482
- activeVariant: We,
1483
- chargeTypes: Xe,
1484
- charge: Qe,
1485
- chargeActive: Je,
1486
- title: Ke
1466
+ }, qe = "_options_167h8_1", Oe = "_price_167h8_18", Ae = "_oldPrice_167h8_25", Ee = "_newPrice_167h8_33", De = "_animate_167h8_40", Re = "_meta_167h8_58", Le = "_info_167h8_64", ze = "_infoRight_167h8_73", He = "_buttons_167h8_80", Ue = "_variants_167h8_87", Fe = "_variant_167h8_87", Ve = "_stock_167h8_105", Ye = "_variantInfo_167h8_112", Ge = "_quantity_167h8_119", We = "_button_167h8_80", Xe = "_activeVariant_167h8_165", Qe = "_chargeTypes_167h8_169", Je = "_charge_167h8_169", Ke = "_chargeActive_167h8_194", Ze = "_title_167h8_202", T = {
1467
+ options: qe,
1468
+ price: Oe,
1469
+ oldPrice: Ae,
1470
+ newPrice: Ee,
1471
+ animate: De,
1472
+ meta: Re,
1473
+ info: Le,
1474
+ infoRight: ze,
1475
+ buttons: He,
1476
+ variants: Ue,
1477
+ variant: Fe,
1478
+ stock: Ve,
1479
+ variantInfo: Ye,
1480
+ quantity: Ge,
1481
+ button: We,
1482
+ activeVariant: Xe,
1483
+ chargeTypes: Qe,
1484
+ charge: Je,
1485
+ chargeActive: Ke,
1486
+ title: Ze
1487
1487
  };
1488
1488
  var St = /* @__PURE__ */ ((r) => (r.ONE_TIME = "One-Time", r.RECURRING = "Subscribe & Save", r))(St || {});
1489
- const Ze = (r) => {
1489
+ const ts = (r) => {
1490
1490
  var z, R;
1491
1491
  const { product: i, setIsOpen: a } = r, { variants: s } = i, [e, c] = m.useState(s[0]), [d, u] = m.useState(
1492
1492
  e.chargeTypes ? e.chargeTypes[0] : "ONE_TIME"
@@ -1673,46 +1673,46 @@ const Ze = (r) => {
1673
1673
  )
1674
1674
  ] })
1675
1675
  ] });
1676
- }, ts = "_buttons_qns27_23", es = "_modal_qns27_32", ss = "_closing_qns27_64", ns = "_info_qns27_113", is = "_top_qns27_120", as = "_title_qns27_131", os = "_clear_qns27_138", cs = "_activeClear_qns27_145", rs = "_count_qns27_149", ls = "_cart_qns27_164", ds = "_empty_qns27_172", us = "_product_qns27_198", hs = "_products_qns27_207", ps = "_image_qns27_215", ms = "_productInfo_qns27_231", gs = "_content_qns27_238", fs = "_name_qns27_244", xs = "_price_qns27_250", _s = "_productButtons_qns27_256", js = "_productButton_qns27_256", vs = "_productCount_qns27_273", bs = "_bottom_qns27_290", ys = "_subtotal_qns27_298", Is = "_block_qns27_306", Ns = "_shoppingCount_qns27_313", Cs = "_total_qns27_333", Ss = "_link_qns27_339", ks = "_userInfo_qns27_346", ws = "_pagesMobileModal_qns27_358", Ps = "_pagesMobileModalContent_qns27_372", Ms = "_pagesMobileModalHeader_qns27_378", Bs = "_pagesMobileModalFooter_qns27_388", w = {
1677
- buttons: ts,
1678
- modal: es,
1679
- closing: ss,
1680
- info: ns,
1681
- top: is,
1682
- title: as,
1683
- clear: os,
1684
- activeClear: cs,
1685
- count: rs,
1686
- cart: ls,
1687
- empty: ds,
1688
- product: us,
1689
- products: hs,
1690
- image: ps,
1691
- productInfo: ms,
1692
- content: gs,
1693
- name: fs,
1694
- price: xs,
1695
- productButtons: _s,
1696
- productButton: js,
1697
- productCount: vs,
1698
- bottom: bs,
1699
- subtotal: ys,
1700
- block: Is,
1701
- shoppingCount: Ns,
1702
- total: Cs,
1703
- link: Ss,
1704
- userInfo: ks,
1705
- pagesMobileModal: ws,
1706
- pagesMobileModalContent: Ps,
1707
- pagesMobileModalHeader: Ms,
1708
- pagesMobileModalFooter: Bs
1709
- }, An = (r) => {
1676
+ }, es = "_buttons_qns27_23", ss = "_modal_qns27_32", ns = "_closing_qns27_64", is = "_info_qns27_113", as = "_top_qns27_120", os = "_title_qns27_131", cs = "_clear_qns27_138", rs = "_activeClear_qns27_145", ls = "_count_qns27_149", ds = "_cart_qns27_164", us = "_empty_qns27_172", hs = "_product_qns27_198", ps = "_products_qns27_207", ms = "_image_qns27_215", gs = "_productInfo_qns27_231", fs = "_content_qns27_238", xs = "_name_qns27_244", _s = "_price_qns27_250", js = "_productButtons_qns27_256", vs = "_productButton_qns27_256", bs = "_productCount_qns27_273", ys = "_bottom_qns27_290", Is = "_subtotal_qns27_298", Ns = "_block_qns27_306", Cs = "_shoppingCount_qns27_313", Ss = "_total_qns27_333", ks = "_link_qns27_339", ws = "_userInfo_qns27_346", Ps = "_pagesMobileModal_qns27_358", Ms = "_pagesMobileModalContent_qns27_372", Bs = "_pagesMobileModalHeader_qns27_378", Ts = "_pagesMobileModalFooter_qns27_388", w = {
1677
+ buttons: es,
1678
+ modal: ss,
1679
+ closing: ns,
1680
+ info: is,
1681
+ top: as,
1682
+ title: os,
1683
+ clear: cs,
1684
+ activeClear: rs,
1685
+ count: ls,
1686
+ cart: ds,
1687
+ empty: us,
1688
+ product: hs,
1689
+ products: ps,
1690
+ image: ms,
1691
+ productInfo: gs,
1692
+ content: fs,
1693
+ name: xs,
1694
+ price: _s,
1695
+ productButtons: js,
1696
+ productButton: vs,
1697
+ productCount: bs,
1698
+ bottom: ys,
1699
+ subtotal: Is,
1700
+ block: Ns,
1701
+ shoppingCount: Cs,
1702
+ total: Ss,
1703
+ link: ks,
1704
+ userInfo: ws,
1705
+ pagesMobileModal: Ps,
1706
+ pagesMobileModalContent: Ms,
1707
+ pagesMobileModalHeader: Bs,
1708
+ pagesMobileModalFooter: Ts
1709
+ }, En = (r) => {
1710
1710
  const { shopping: i, signUp: a, isShowUserInfo: s = !0 } = r;
1711
1711
  return /* @__PURE__ */ t.jsxs("div", { className: w.buttons, children: [
1712
- i && /* @__PURE__ */ t.jsx(Ts, {}),
1712
+ i && /* @__PURE__ */ t.jsx($s, {}),
1713
1713
  s && /* @__PURE__ */ t.jsx(Tt, { signUp: a })
1714
1714
  ] });
1715
- }, Ts = () => {
1715
+ }, $s = () => {
1716
1716
  const [r, i] = m.useState(!1), [a, s] = m.useState([]), { cart: e, products: c } = at();
1717
1717
  function d(n) {
1718
1718
  if (n.variants.length > 0) {
@@ -1777,7 +1777,7 @@ const Ze = (r) => {
1777
1777
  },
1778
1778
  withAnimation: !1,
1779
1779
  children: /* @__PURE__ */ t.jsx(
1780
- $s,
1780
+ qs,
1781
1781
  {
1782
1782
  activeProducts: a,
1783
1783
  isCartNotEmpty: f,
@@ -1787,7 +1787,7 @@ const Ze = (r) => {
1787
1787
  }
1788
1788
  )
1789
1789
  ] });
1790
- }, $s = (r) => {
1790
+ }, qs = (r) => {
1791
1791
  const { activeProducts: i, isCartNotEmpty: a, isOpen: s } = r, { cart: e, reset: c, getTotalAndDiscount: d, updateQuantityOfProduct: u } = at(), g = bt();
1792
1792
  function f(n) {
1793
1793
  g(n);
@@ -1928,11 +1928,11 @@ const Ze = (r) => {
1928
1928
  ] }),
1929
1929
  /* @__PURE__ */ t.jsx(D, { onClick: () => f("/checkout"), children: "Checkout" })
1930
1930
  ] })
1931
- ] }) : /* @__PURE__ */ t.jsx(qs, {})
1931
+ ] }) : /* @__PURE__ */ t.jsx(Os, {})
1932
1932
  ]
1933
1933
  }
1934
1934
  );
1935
- }, qs = () => /* @__PURE__ */ t.jsxs("div", { className: w.empty, children: [
1935
+ }, Os = () => /* @__PURE__ */ t.jsxs("div", { className: w.empty, children: [
1936
1936
  /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
1937
1937
  v,
1938
1938
  {
@@ -1954,57 +1954,56 @@ const Ze = (r) => {
1954
1954
  )
1955
1955
  ] })
1956
1956
  ] }), Tt = ({ signUp: r, close: i }) => {
1957
- const a = localStorage.getItem("token"), s = bt();
1958
- function e(u) {
1957
+ const { token: a } = Dt(), s = bt(), [e, c] = m.useState("test-email@gmail.com");
1958
+ m.useEffect(() => {
1959
+ a && (async () => {
1960
+ if (!a) return;
1961
+ const g = Rt(a);
1962
+ c(g.email);
1963
+ })();
1964
+ }, [a]);
1965
+ function d(u) {
1959
1966
  window.location.pathname.includes("/admin/builder") || s(u);
1960
1967
  }
1961
- if (!a)
1962
- return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1963
- /* @__PURE__ */ t.jsx(
1964
- D,
1965
- {
1966
- onClick: () => {
1967
- e("/customer-dash"), i == null || i();
1968
- },
1969
- type: "Secondary",
1970
- style: {
1971
- padding: 10
1972
- },
1973
- children: "Login"
1974
- }
1975
- ),
1976
- r && /* @__PURE__ */ t.jsx(
1977
- D,
1978
- {
1979
- onClick: () => {
1980
- e("/customer-dash"), i == null || i();
1981
- },
1982
- type: "Primary",
1983
- style: {
1984
- padding: 10,
1985
- whiteSpace: "nowrap"
1986
- },
1987
- children: "Sign Up"
1988
- }
1989
- )
1990
- ] });
1991
- const [c, d] = m.useState("test-email@gmail.com");
1992
- return m.useEffect(() => {
1993
- (async () => {
1994
- const g = Dt(a);
1995
- d(g.email);
1996
- })();
1997
- }, [a]), /* @__PURE__ */ t.jsx(
1968
+ return a ? /* @__PURE__ */ t.jsx(
1998
1969
  "div",
1999
1970
  {
2000
1971
  className: w.userInfo,
2001
1972
  onClick: () => {
2002
- e("/customer-dash"), i == null || i();
1973
+ d("/customer-dash"), i == null || i();
2003
1974
  },
2004
- children: /* @__PURE__ */ t.jsx("div", { children: c || "test-email@gmail.com" })
1975
+ children: /* @__PURE__ */ t.jsx("div", { children: e || "test-email@gmail.com" })
2005
1976
  }
2006
- );
2007
- }, Os = ({
1977
+ ) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1978
+ /* @__PURE__ */ t.jsx(
1979
+ D,
1980
+ {
1981
+ onClick: () => {
1982
+ d("/customer-dash"), i == null || i();
1983
+ },
1984
+ type: "Secondary",
1985
+ style: {
1986
+ padding: 10
1987
+ },
1988
+ children: "Login"
1989
+ }
1990
+ ),
1991
+ r && /* @__PURE__ */ t.jsx(
1992
+ D,
1993
+ {
1994
+ onClick: () => {
1995
+ d("/customer-dash"), i == null || i();
1996
+ },
1997
+ type: "Primary",
1998
+ style: {
1999
+ padding: 10,
2000
+ whiteSpace: "nowrap"
2001
+ },
2002
+ children: "Sign Up"
2003
+ }
2004
+ )
2005
+ ] });
2006
+ }, As = ({
2008
2007
  children: r,
2009
2008
  logo: i,
2010
2009
  setIsOpen: a,
@@ -2043,21 +2042,21 @@ const Ze = (r) => {
2043
2042
  ]
2044
2043
  }
2045
2044
  );
2046
- }, En = ({
2045
+ }, Dn = ({
2047
2046
  children: r,
2048
2047
  logo: i,
2049
2048
  signUp: a
2050
2049
  }) => {
2051
2050
  const [s, e] = m.useState(!1);
2052
2051
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2053
- /* @__PURE__ */ t.jsx(As, { setIsOpenModal: e }),
2052
+ /* @__PURE__ */ t.jsx(Es, { setIsOpenModal: e }),
2054
2053
  s && /* @__PURE__ */ t.jsx(
2055
2054
  dt,
2056
2055
  {
2057
2056
  close: () => e(!1),
2058
2057
  hasPadding: !1,
2059
2058
  children: /* @__PURE__ */ t.jsx(
2060
- Os,
2059
+ As,
2061
2060
  {
2062
2061
  logo: i,
2063
2062
  setIsOpen: e,
@@ -2068,7 +2067,7 @@ const Ze = (r) => {
2068
2067
  }
2069
2068
  )
2070
2069
  ] });
2071
- }, As = (r) => {
2070
+ }, Es = (r) => {
2072
2071
  const { setIsOpenModal: i } = r;
2073
2072
  return /* @__PURE__ */ t.jsx(
2074
2073
  D,
@@ -2083,16 +2082,16 @@ const Ze = (r) => {
2083
2082
  children: /* @__PURE__ */ t.jsx(v, { name: "List" })
2084
2083
  }
2085
2084
  );
2086
- }, Es = "_share_rlgln_1", Ds = "_modal_rlgln_8", Rs = "_header_rlgln_20", Ls = "_title_rlgln_46", zs = "_copyWrapper_rlgln_52", Hs = "_copyText_rlgln_61", Us = "_copyTextMobile_rlgln_74", Fs = "_copyTextMiniMobile_rlgln_93", st = {
2087
- share: Es,
2088
- modal: Ds,
2089
- header: Rs,
2090
- title: Ls,
2091
- copyWrapper: zs,
2092
- copyText: Hs,
2093
- copyTextMobile: Us,
2094
- copyTextMiniMobile: Fs
2095
- }, Dn = ({ title: r = "Copy Product Link" }) => {
2085
+ }, Ds = "_share_rlgln_1", Rs = "_modal_rlgln_8", Ls = "_header_rlgln_20", zs = "_title_rlgln_46", Hs = "_copyWrapper_rlgln_52", Us = "_copyText_rlgln_61", Fs = "_copyTextMobile_rlgln_74", Vs = "_copyTextMiniMobile_rlgln_93", st = {
2086
+ share: Ds,
2087
+ modal: Rs,
2088
+ header: Ls,
2089
+ title: zs,
2090
+ copyWrapper: Hs,
2091
+ copyText: Us,
2092
+ copyTextMobile: Fs,
2093
+ copyTextMiniMobile: Vs
2094
+ }, Rn = ({ title: r = "Copy Product Link" }) => {
2096
2095
  const { isOpenModal: i, setIsOpenModal: a } = Mt();
2097
2096
  function s() {
2098
2097
  a(!0);
@@ -2116,9 +2115,9 @@ const Ze = (r) => {
2116
2115
  )
2117
2116
  }
2118
2117
  ),
2119
- i && /* @__PURE__ */ t.jsx(dt, { close: a, children: /* @__PURE__ */ t.jsx(Vs, { title: r }) })
2118
+ i && /* @__PURE__ */ t.jsx(dt, { close: a, children: /* @__PURE__ */ t.jsx(Ys, { title: r }) })
2120
2119
  ] });
2121
- }, Vs = ({ title: r = "Copy Product Link" }) => {
2120
+ }, Ys = ({ title: r = "Copy Product Link" }) => {
2122
2121
  const { setIsOpenModal: i } = Mt(), { notifications: a, setNotifications: s } = Ct(), { setIsOpen: e } = ot(), c = window.location.href;
2123
2122
  function d() {
2124
2123
  navigator.clipboard.writeText(c), s([
@@ -2186,13 +2185,13 @@ const Ze = (r) => {
2186
2185
  ]
2187
2186
  }
2188
2187
  );
2189
- }, Ys = "_accordion_1s1lq_1", Gs = "_header_1s1lq_9", Ws = "_icon_1s1lq_18", Xs = "_open_1s1lq_21", Qs = "_content_1s1lq_25", ct = {
2190
- accordion: Ys,
2191
- header: Gs,
2192
- icon: Ws,
2193
- open: Xs,
2194
- content: Qs
2195
- }, Rn = ({ title: r, content: i, defaultOpen: a = !1 }) => {
2188
+ }, Gs = "_accordion_1s1lq_1", Ws = "_header_1s1lq_9", Xs = "_icon_1s1lq_18", Qs = "_open_1s1lq_21", Js = "_content_1s1lq_25", ct = {
2189
+ accordion: Gs,
2190
+ header: Ws,
2191
+ icon: Xs,
2192
+ open: Qs,
2193
+ content: Js
2194
+ }, Ln = ({ title: r, content: i, defaultOpen: a = !1 }) => {
2196
2195
  const [s, e] = m.useState(a), [c, d] = m.useState(0), u = m.useRef(null), g = () => {
2197
2196
  e(!s);
2198
2197
  };
@@ -2220,7 +2219,7 @@ const Ze = (r) => {
2220
2219
  }
2221
2220
  )
2222
2221
  ] });
2223
- }, Js = ({ children: r, path: i, className: a, target: s = "_self", id: e }) => {
2222
+ }, Ks = ({ children: r, path: i, className: a, target: s = "_self", id: e }) => {
2224
2223
  if (window.location.pathname.includes("/admin/builder"))
2225
2224
  return /* @__PURE__ */ t.jsx(
2226
2225
  "div",
@@ -2246,9 +2245,9 @@ const Ze = (r) => {
2246
2245
  children: r
2247
2246
  }
2248
2247
  );
2249
- }, Ks = "_buttonsBlock_1b2rb_1", Zs = {
2250
- buttonsBlock: Ks
2251
- }, Ln = (r) => {
2248
+ }, Zs = "_buttonsBlock_1b2rb_1", tn = {
2249
+ buttonsBlock: Zs
2250
+ }, zn = (r) => {
2252
2251
  var f, P;
2253
2252
  const { setIsOpen: i, setModalType: a, productId: s } = r, { cart: e } = at(), { pageContext: c } = vt(), d = (f = c == null ? void 0 : c.listings) == null ? void 0 : f.find((j) => j.id === s);
2254
2253
  if (!d)
@@ -2262,7 +2261,7 @@ const Ze = (r) => {
2262
2261
  return /* @__PURE__ */ t.jsxs(
2263
2262
  "div",
2264
2263
  {
2265
- className: Zs.buttonsBlock,
2264
+ className: tn.buttonsBlock,
2266
2265
  onClick: (j) => j.stopPropagation(),
2267
2266
  children: [
2268
2267
  /* @__PURE__ */ t.jsx(
@@ -2291,12 +2290,12 @@ const Ze = (r) => {
2291
2290
  ]
2292
2291
  }
2293
2292
  );
2294
- }, tn = "_wrapper_27wzz_1", en = "_logo_27wzz_8", sn = "_info_27wzz_12", It = {
2295
- wrapper: tn,
2296
- logo: en,
2297
- info: sn
2298
- }, zn = ({ date: r }) => {
2299
- const { general: i } = Rt();
2293
+ }, en = "_wrapper_27wzz_1", sn = "_logo_27wzz_8", nn = "_info_27wzz_12", It = {
2294
+ wrapper: en,
2295
+ logo: sn,
2296
+ info: nn
2297
+ }, Hn = ({ date: r }) => {
2298
+ const { general: i } = Lt();
2300
2299
  if (!i) return /* @__PURE__ */ t.jsx(t.Fragment, {});
2301
2300
  function a(s) {
2302
2301
  const e = new Date(s), c = {
@@ -2330,20 +2329,20 @@ const Ze = (r) => {
2330
2329
  /* @__PURE__ */ t.jsx("p", { id: "p", children: a(r) })
2331
2330
  ] })
2332
2331
  ] });
2333
- }, nn = "_variants_puxd1_80", an = "_variant_puxd1_80", on = "_stock_puxd1_98", cn = "_variantInfo_puxd1_105", rn = "_chargeTypes_puxd1_165", ln = "_charge_puxd1_165", dn = "_chargeActive_puxd1_190", un = "_title_puxd1_198", hn = "_modal_puxd1_204", pn = "_header_puxd1_224", mn = "_productOptions_puxd1_232", gn = "_loading_puxd1_236", J = {
2334
- variants: nn,
2335
- variant: an,
2336
- stock: on,
2337
- variantInfo: cn,
2338
- chargeTypes: rn,
2339
- charge: ln,
2340
- chargeActive: dn,
2341
- title: un,
2342
- modal: hn,
2343
- header: pn,
2344
- productOptions: mn,
2345
- loading: gn
2346
- }, Hn = (r) => {
2332
+ }, an = "_variants_puxd1_80", on = "_variant_puxd1_80", cn = "_stock_puxd1_98", rn = "_variantInfo_puxd1_105", ln = "_chargeTypes_puxd1_165", dn = "_charge_puxd1_165", un = "_chargeActive_puxd1_190", hn = "_title_puxd1_198", pn = "_modal_puxd1_204", mn = "_header_puxd1_224", gn = "_productOptions_puxd1_232", fn = "_loading_puxd1_236", J = {
2333
+ variants: an,
2334
+ variant: on,
2335
+ stock: cn,
2336
+ variantInfo: rn,
2337
+ chargeTypes: ln,
2338
+ charge: dn,
2339
+ chargeActive: un,
2340
+ title: hn,
2341
+ modal: pn,
2342
+ header: mn,
2343
+ productOptions: gn,
2344
+ loading: fn
2345
+ }, Un = (r) => {
2347
2346
  var n;
2348
2347
  const { pageContext: i } = vt(), a = (n = i == null ? void 0 : i.listings) == null ? void 0 : n.find((o) => o.id === r.productId), [s, e] = m.useState(!0), [c, d] = m.useState(null), u = (c == null ? void 0 : c.variants[0]) || null, [g, f] = m.useState(
2349
2348
  u != null && u.chargeTypes && u.chargeTypes.length > 1 ? u.chargeTypes[0] : "ONE_TIME"
@@ -2351,7 +2350,7 @@ const Ze = (r) => {
2351
2350
  return m.useEffect(() => {
2352
2351
  (async () => {
2353
2352
  e(!0);
2354
- const p = await Lt(
2353
+ const p = await zt(
2355
2354
  encodeURIComponent(
2356
2355
  `/product/${a.productData.uniquePath}`
2357
2356
  )
@@ -2368,7 +2367,7 @@ const Ze = (r) => {
2368
2367
  children: [
2369
2368
  s && /* @__PURE__ */ t.jsx("div", { className: J.loading, children: /* @__PURE__ */ t.jsx(Bt, {}) }),
2370
2369
  r.type === "Add To Cart" && c && u && !s && /* @__PURE__ */ t.jsx(
2371
- fn,
2370
+ xn,
2372
2371
  {
2373
2372
  variants: c.variants,
2374
2373
  activeVariant: u,
@@ -2379,7 +2378,7 @@ const Ze = (r) => {
2379
2378
  }
2380
2379
  ),
2381
2380
  r.type === "Buy Now" && c && !s && /* @__PURE__ */ t.jsx(
2382
- xn,
2381
+ _n,
2383
2382
  {
2384
2383
  product: c,
2385
2384
  setIsOpen: r.setIsOpen
@@ -2388,7 +2387,7 @@ const Ze = (r) => {
2388
2387
  ]
2389
2388
  }
2390
2389
  ) });
2391
- }, fn = (r) => {
2390
+ }, xn = (r) => {
2392
2391
  const { variants: i, activeChargeType: a, setActiveChargeType: s, activeVariant: e, productId: c, setIsOpen: d } = r, { cart: u, addProductToCart: g, addProducts: f, updateQuantityOfProduct: P } = at(), { notifications: j, setNotifications: n } = Ct(), { pageContext: o } = vt(), { setIsOpen: p } = ot(), q = () => {
2393
2392
  p(!1), setTimeout(() => {
2394
2393
  d(!1);
@@ -2469,7 +2468,7 @@ const Ze = (r) => {
2469
2468
  );
2470
2469
  }) })
2471
2470
  ] });
2472
- }, xn = (r) => {
2471
+ }, _n = (r) => {
2473
2472
  const { product: i, setIsOpen: a } = r, { setIsOpen: s } = ot(), e = () => {
2474
2473
  s(!1), setTimeout(() => {
2475
2474
  a(!1);
@@ -2498,25 +2497,25 @@ const Ze = (r) => {
2498
2497
  )
2499
2498
  ] }),
2500
2499
  /* @__PURE__ */ t.jsx("div", { className: J.productOptions, children: /* @__PURE__ */ t.jsx(
2501
- Ze,
2500
+ ts,
2502
2501
  {
2503
2502
  product: i,
2504
2503
  setIsOpen: a
2505
2504
  }
2506
2505
  ) })
2507
2506
  ] });
2508
- }, _n = "_contentModal_2a136_1", jn = "_modalTop_2a136_13", vn = "_loading_2a136_19", bn = "_modalCards_2a136_27", yn = "_modalImage_2a136_32", In = "_card_2a136_37", Nn = "_cardInfo_2a136_48", Cn = "_cardButtons_2a136_55", Sn = "_title_2a136_61", kn = "_blockImage_2a136_68", W = {
2509
- contentModal: _n,
2510
- modalTop: jn,
2511
- loading: vn,
2512
- modalCards: bn,
2513
- modalImage: yn,
2514
- card: In,
2515
- cardInfo: Nn,
2516
- cardButtons: Cn,
2517
- title: Sn,
2518
- blockImage: kn
2519
- }, Un = (r) => {
2507
+ }, jn = "_contentModal_2a136_1", vn = "_modalTop_2a136_13", bn = "_loading_2a136_19", yn = "_modalCards_2a136_27", In = "_modalImage_2a136_32", Nn = "_card_2a136_37", Cn = "_cardInfo_2a136_48", Sn = "_cardButtons_2a136_55", kn = "_title_2a136_61", wn = "_blockImage_2a136_68", W = {
2508
+ contentModal: jn,
2509
+ modalTop: vn,
2510
+ loading: bn,
2511
+ modalCards: yn,
2512
+ modalImage: In,
2513
+ card: Nn,
2514
+ cardInfo: Cn,
2515
+ cardButtons: Sn,
2516
+ title: kn,
2517
+ blockImage: wn
2518
+ }, Fn = (r) => {
2520
2519
  const { setIsOpen: i, pageContext: a, groupData: s, setProductId: e, setIsProductModalOpen: c } = r, [d, u] = m.useState(null), [g, f] = m.useState(!0), { setIsOpen: P } = ot();
2521
2520
  m.useEffect(() => {
2522
2521
  var p;
@@ -2612,7 +2611,7 @@ const Ze = (r) => {
2612
2611
  children: "Buy"
2613
2612
  }
2614
2613
  ),
2615
- /* @__PURE__ */ t.jsx(Js, { path: `/product/${o.productData.uniquePath}`, children: /* @__PURE__ */ t.jsx(D, { type: "Primary", children: "View Details" }) })
2614
+ /* @__PURE__ */ t.jsx(Ks, { path: `/product/${o.productData.uniquePath}`, children: /* @__PURE__ */ t.jsx(D, { type: "Primary", children: "View Details" }) })
2616
2615
  ] })
2617
2616
  ]
2618
2617
  },
@@ -2624,47 +2623,47 @@ const Ze = (r) => {
2624
2623
  ) });
2625
2624
  };
2626
2625
  export {
2627
- Rn as Accordion,
2628
- As as BurgerMenuButton,
2626
+ Ln as Accordion,
2627
+ Es as BurgerMenuButton,
2629
2628
  D as Button,
2630
- Be as ButtonTypeSettings,
2631
- qn as ButtonsSettings,
2632
- Bn as CategorySettings,
2629
+ Te as ButtonTypeSettings,
2630
+ On as ButtonsSettings,
2631
+ Tn as CategorySettings,
2633
2632
  St as ChargeTypes,
2634
2633
  qt as ChooseImage,
2635
- Yn as ChooseImageModal,
2636
- qs as EmptyCart,
2637
- $n as FormSettings,
2638
- Un as GroupCardModal,
2639
- An as HeaderButtons,
2634
+ Gn as ChooseImageModal,
2635
+ Os as EmptyCart,
2636
+ qn as FormSettings,
2637
+ Fn as GroupCardModal,
2638
+ En as HeaderButtons,
2640
2639
  v as Icon,
2641
2640
  Nt as InputSettings,
2642
2641
  Et as InputUI,
2643
- Gn as ItemsSettings,
2644
- Mn as LayoutSettings,
2645
- Js as Link,
2646
- On as ListingSelector,
2642
+ Wn as ItemsSettings,
2643
+ Bn as LayoutSettings,
2644
+ Ks as Link,
2645
+ An as ListingSelector,
2647
2646
  Bt as Loader,
2648
- zn as MetaInfoPost,
2647
+ Hn as MetaInfoPost,
2649
2648
  dt as Modal,
2650
- En as PagesMobileMenu,
2651
- Os as PagesMobileModal,
2652
- Tn as PagesSettings,
2653
- Ln as ProductCardButtons,
2654
- Hn as ProductCardModal,
2655
- Ze as ProductOptions,
2656
- Wn as RadioUI,
2649
+ Dn as PagesMobileMenu,
2650
+ As as PagesMobileModal,
2651
+ $n as PagesSettings,
2652
+ zn as ProductCardButtons,
2653
+ Un as ProductCardModal,
2654
+ ts as ProductOptions,
2655
+ Xn as RadioUI,
2657
2656
  kt as RangeSelector,
2658
2657
  nt as Select,
2659
- Xn as SelectInfiniteList,
2660
- Qn as SelectUI,
2661
- Dn as ShareLink,
2662
- Ts as ShoppingButton,
2663
- $s as ShoppingModalCart,
2658
+ Qn as SelectInfiniteList,
2659
+ Jn as SelectUI,
2660
+ Rn as ShareLink,
2661
+ $s as ShoppingButton,
2662
+ qs as ShoppingModalCart,
2664
2663
  rt as Switch,
2665
- Jn as TextSettings,
2666
- Kn as TextareaSettings,
2667
- Zn as TextareaUI,
2668
- ti as TypesText,
2664
+ Kn as TextSettings,
2665
+ Zn as TextareaSettings,
2666
+ ti as TextareaUI,
2667
+ ei as TypesText,
2669
2668
  Tt as UserInfo
2670
2669
  };