@billgangcom/theme-lib 1.59.1 → 1.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui.es.js CHANGED
@@ -1,21 +1,21 @@
1
- import { j as t, I as f, c as W, a as dt, S as it, R as yt, B as ot, O as ut, d as at, u as mt, e as ht, P as pt, D as _t, f as gt, v as ft, g as xt, C as bt, h as F, i as St, k as st, l as wt, m as Bt, n as $t, o as rt, p as G, L as Pt, q as lt, r as jt, t as z, w as Mt, M as vt, x as Nt, y as Tt, z as kt, A as qt } from "./index-DTNa0T37.js";
2
- import { J as hi, F as pi, H as _i, E as gi, T as fi, G as xi } from "./index-DTNa0T37.js";
1
+ import { j as t, I as f, c as W, a as ut, S as it, R as Nt, B as ot, O as mt, d as at, u as ht, e as pt, P as _t, D as gt, f as ft, v as xt, g as jt, C as bt, h as F, i as wt, k as st, l as $t, m as Bt, n as Pt, o as rt, p as G, L as Mt, q as lt, r as vt, t as H, w as Tt, M as yt, x as kt, y as qt, z as It, A as At, E as Ot } from "./index-BpuklKXj.js";
2
+ import { K as ji, G as bi, J as vi, F as yi, T as Ni, H as ki } from "./index-BpuklKXj.js";
3
3
  import _ from "react";
4
4
  import "@phosphor-icons/react";
5
- const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmyb_15", Rt = "_subtitle_1vmyb_22", Lt = "_alignmentContent_1vmyb_29", Dt = "_alignments_1vmyb_37", Ht = "_alignment_1vmyb_8", Ut = "_circle_1vmyb_60", zt = "_paddings_1vmyb_67", Ft = "_padding_1vmyb_67", Vt = "_active_1vmyb_91", Yt = "_input_1vmyb_98", J = {
6
- wrapper: At,
7
- alignmentBlock: Ot,
8
- title: Et,
9
- subtitle: Rt,
10
- alignmentContent: Lt,
11
- alignments: Dt,
5
+ const Et = "_wrapper_1vmyb_2", Rt = "_alignmentBlock_1vmyb_8", Dt = "_title_1vmyb_15", Lt = "_subtitle_1vmyb_22", zt = "_alignmentContent_1vmyb_29", Ut = "_alignments_1vmyb_37", Ht = "_alignment_1vmyb_8", Ft = "_circle_1vmyb_60", Vt = "_paddings_1vmyb_67", Yt = "_padding_1vmyb_67", Gt = "_active_1vmyb_91", Wt = "_input_1vmyb_98", J = {
6
+ wrapper: Et,
7
+ alignmentBlock: Rt,
8
+ title: Dt,
9
+ subtitle: Lt,
10
+ alignmentContent: zt,
11
+ alignments: Ut,
12
12
  alignment: Ht,
13
- circle: Ut,
14
- paddings: zt,
15
- padding: Ft,
16
- active: Vt,
17
- input: Yt
18
- }, Gt = [
13
+ circle: Ft,
14
+ paddings: Vt,
15
+ padding: Yt,
16
+ active: Gt,
17
+ input: Wt
18
+ }, Jt = [
19
19
  "topLeft",
20
20
  "top",
21
21
  "topRight",
@@ -25,7 +25,7 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
25
25
  "bottomLeft",
26
26
  "bottom",
27
27
  "bottomRight"
28
- ], Wt = ["left", "top", "right", "bottom"], Qs = (r) => {
28
+ ], Xt = ["left", "top", "right", "bottom"], ni = (r) => {
29
29
  const { alignment: s, padding: e, setPadding: n, setAlignment: i } = r;
30
30
  function d(c) {
31
31
  switch (c) {
@@ -63,7 +63,7 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
63
63
  /* @__PURE__ */ t.jsxs("div", { className: J.alignmentBlock, children: [
64
64
  /* @__PURE__ */ t.jsx("h5", { className: J.subtitle, children: "Alignment" }),
65
65
  /* @__PURE__ */ t.jsxs("div", { className: J.alignmentContent, children: [
66
- /* @__PURE__ */ t.jsx("div", { className: J.alignments, children: Gt.map((c) => /* @__PURE__ */ t.jsxs(
66
+ /* @__PURE__ */ t.jsx("div", { className: J.alignments, children: Jt.map((c) => /* @__PURE__ */ t.jsxs(
67
67
  "div",
68
68
  {
69
69
  onClick: () => {
@@ -100,7 +100,7 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
100
100
  },
101
101
  c
102
102
  )) }),
103
- /* @__PURE__ */ t.jsx("div", { className: J.paddings, children: Wt.map((c) => /* @__PURE__ */ t.jsxs(
103
+ /* @__PURE__ */ t.jsx("div", { className: J.paddings, children: Xt.map((c) => /* @__PURE__ */ t.jsxs(
104
104
  "label",
105
105
  {
106
106
  className: W(J.padding, {
@@ -122,7 +122,7 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
122
122
  }
123
123
  ) }),
124
124
  /* @__PURE__ */ t.jsx(
125
- dt,
125
+ ut,
126
126
  {
127
127
  type: "number",
128
128
  value: String(e[c]),
@@ -142,31 +142,31 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
142
142
  ] })
143
143
  ] })
144
144
  ] });
145
- }, Jt = "_title_82zux_1", Xt = "_subtitle_82zux_5", Qt = "_header_82zux_12", Kt = "_text_82zux_13", Zt = "_productsBlock_82zux_14", te = "_top_82zux_26", ee = "_itemsBlock_82zux_35", ne = "_typeTexts_82zux_41", se = "_block_82zux_48", ie = "_active_82zux_61", oe = "_products_82zux_14", ae = "_product_82zux_14", ce = "_button_82zux_80", le = "_disabled_82zux_91", re = "_image_82zux_95", de = "_info_82zux_102", ue = "_name_82zux_114", me = "_buttons_82zux_118", he = "_modal_82zux_125", pe = "_link_82zux_145", _e = "_modalOptions_82zux_151", ge = "_addButton_82zux_157", fe = "_deleteButton_82zux_179", X = {
146
- title: Jt,
147
- subtitle: Xt,
148
- header: Qt,
149
- text: Kt,
150
- productsBlock: Zt,
151
- top: te,
152
- itemsBlock: ee,
153
- typeTexts: ne,
154
- block: se,
155
- active: ie,
156
- products: oe,
157
- product: ae,
158
- button: ce,
159
- disabled: le,
160
- image: re,
161
- info: de,
162
- name: ue,
163
- buttons: me,
164
- modal: he,
165
- link: pe,
166
- modalOptions: _e,
167
- addButton: ge,
168
- deleteButton: fe
169
- }, Ks = (r) => {
145
+ }, Kt = "_title_82zux_1", Qt = "_subtitle_82zux_5", Zt = "_header_82zux_12", te = "_text_82zux_13", ee = "_productsBlock_82zux_14", ne = "_top_82zux_26", se = "_itemsBlock_82zux_35", ie = "_typeTexts_82zux_41", oe = "_block_82zux_48", ae = "_active_82zux_61", ce = "_products_82zux_14", le = "_product_82zux_14", re = "_button_82zux_80", de = "_disabled_82zux_91", ue = "_image_82zux_95", me = "_info_82zux_102", he = "_name_82zux_114", pe = "_buttons_82zux_118", _e = "_modal_82zux_125", ge = "_link_82zux_145", fe = "_modalOptions_82zux_151", xe = "_addButton_82zux_157", je = "_deleteButton_82zux_179", X = {
146
+ title: Kt,
147
+ subtitle: Qt,
148
+ header: Zt,
149
+ text: te,
150
+ productsBlock: ee,
151
+ top: ne,
152
+ itemsBlock: se,
153
+ typeTexts: ie,
154
+ block: oe,
155
+ active: ae,
156
+ products: ce,
157
+ product: le,
158
+ button: re,
159
+ disabled: de,
160
+ image: ue,
161
+ info: me,
162
+ name: he,
163
+ buttons: pe,
164
+ modal: _e,
165
+ link: ge,
166
+ modalOptions: fe,
167
+ addButton: xe,
168
+ deleteButton: je
169
+ }, si = (r) => {
170
170
  const {
171
171
  isActiveItems: s,
172
172
  setIsActiveItems: e,
@@ -181,16 +181,16 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
181
181
  itemsOptions: c,
182
182
  hasRangeSelector: l = !1,
183
183
  rangeSelectorOptions: T,
184
- limit: B,
184
+ limit: $,
185
185
  autoScrollInterval: M,
186
186
  deletable: x
187
187
  } = r;
188
- function k(j) {
188
+ function k(b) {
189
189
  if (g)
190
- return j ? /* @__PURE__ */ t.jsx(
190
+ return b ? /* @__PURE__ */ t.jsx(
191
191
  "img",
192
192
  {
193
- src: `https://imagedelivery.net/${j[0]}/w=1000`,
193
+ src: `https://imagedelivery.net/${b[0]}/w=1000`,
194
194
  alt: "image",
195
195
  width: 16,
196
196
  height: 16
@@ -205,10 +205,10 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
205
205
  }
206
206
  );
207
207
  }
208
- const a = (j, L = !1) => {
209
- const w = c.find((C) => C.id === j);
208
+ const a = (b, D = !1) => {
209
+ const w = c.find((C) => C.id === b);
210
210
  if (!w) return;
211
- const H = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
211
+ const z = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
212
212
  m && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
213
213
  f,
214
214
  {
@@ -224,15 +224,15 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
224
224
  onChange: (C) => {
225
225
  const v = [...n], I = c.find((p) => p.name === C);
226
226
  if (!I) return;
227
- const q = I.id, $ = v.map((p) => p === j ? q : p);
228
- i([...$]);
227
+ const q = I.id, B = v.map((p) => p === b ? q : p);
228
+ i([...B]);
229
229
  },
230
230
  value: w.name,
231
231
  options: c.filter((C) => !n.find((v) => v === C.id)).map((C) => C.name),
232
232
  leftAddon: k(w.images)
233
233
  }
234
234
  ),
235
- L && /* @__PURE__ */ t.jsx("div", { className: X.buttons, children: /* @__PURE__ */ t.jsx("div", { className: X.deleteButton, children: /* @__PURE__ */ t.jsx(
235
+ D && /* @__PURE__ */ t.jsx("div", { className: X.buttons, children: /* @__PURE__ */ t.jsx("div", { className: X.deleteButton, children: /* @__PURE__ */ t.jsx(
236
236
  f,
237
237
  {
238
238
  name: "Trash",
@@ -240,7 +240,7 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
240
240
  width: 20,
241
241
  height: 20,
242
242
  fill: "#C12A2A",
243
- onClick: () => i(n.filter((C) => C !== j))
243
+ onClick: () => i(n.filter((C) => C !== b))
244
244
  }
245
245
  ) }) })
246
246
  ] });
@@ -248,9 +248,9 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
248
248
  "div",
249
249
  {
250
250
  className: X.product,
251
- children: H
251
+ children: z
252
252
  },
253
- j
253
+ b
254
254
  );
255
255
  };
256
256
  return /* @__PURE__ */ t.jsxs("div", { className: X.productsBlock, children: [
@@ -260,14 +260,14 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
260
260
  it,
261
261
  {
262
262
  current: s,
263
- onChange: (j) => e == null ? void 0 : e(j)
263
+ onChange: (b) => e == null ? void 0 : e(b)
264
264
  }
265
265
  )
266
266
  ] }),
267
- l && T && /* @__PURE__ */ t.jsx(yt, { ...T }),
267
+ l && T && /* @__PURE__ */ t.jsx(Nt, { ...T }),
268
268
  /* @__PURE__ */ t.jsxs("div", { className: X.products, children: [
269
269
  o && /* @__PURE__ */ t.jsx("h5", { className: X.subtitle, children: o }),
270
- n.map((j) => a(j, x)),
270
+ n.map((b) => a(b, x)),
271
271
  S && /* @__PURE__ */ t.jsx(
272
272
  "div",
273
273
  {
@@ -282,21 +282,21 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
282
282
  {
283
283
  withoutHover: !0,
284
284
  className: W(X.button, {
285
- [X.disabled]: !!(B && B <= n.length || n.length === c.length)
285
+ [X.disabled]: !!($ && $ <= n.length || n.length === c.length)
286
286
  }),
287
287
  size: "s",
288
- disabled: !!(B && B <= n.length || n.length === c.length),
288
+ disabled: !!($ && $ <= n.length || n.length === c.length),
289
289
  onClick: () => {
290
- const j = [...n];
291
- let L = null;
290
+ const b = [...n];
291
+ let D = null;
292
292
  if (c) {
293
293
  for (let w = 0; w < c.length; w++)
294
- if (!n.find((H) => H === c[w].id)) {
295
- L = c[w];
294
+ if (!n.find((z) => z === c[w].id)) {
295
+ D = c[w];
296
296
  break;
297
297
  }
298
298
  }
299
- j.push((L == null ? void 0 : L.id) || c[0].id), i(j);
299
+ b.push((D == null ? void 0 : D.id) || c[0].id), i(b);
300
300
  },
301
301
  style: {
302
302
  width: "fit-content"
@@ -317,14 +317,14 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
317
317
  }
318
318
  )
319
319
  ] }),
320
- d !== void 0 && /* @__PURE__ */ t.jsx(ut, { items: d }),
320
+ d !== void 0 && /* @__PURE__ */ t.jsx(mt, { items: d }),
321
321
  M !== void 0 && /* @__PURE__ */ t.jsx(
322
- dt,
322
+ ut,
323
323
  {
324
324
  label: "Auto scroll interval",
325
325
  type: "number",
326
326
  value: String(M.scrollInterval),
327
- onChange: (j) => M.setScrollInterval(Number(j)),
327
+ onChange: (b) => M.setScrollInterval(Number(b)),
328
328
  min: 0.1,
329
329
  max: 100,
330
330
  style: {
@@ -334,33 +334,33 @@ const At = "_wrapper_1vmyb_2", Ot = "_alignmentBlock_1vmyb_8", Et = "_title_1vmy
334
334
  }
335
335
  )
336
336
  ] });
337
- }, xe = "_title_roi3a_1", be = "_subtitle_roi3a_5", je = "_header_roi3a_12", ve = "_text_roi3a_13", ye = "_productsBlock_roi3a_14", Ne = "_top_roi3a_26", ke = "_itemsBlock_roi3a_35", Ie = "_typeTexts_roi3a_41", Ce = "_block_roi3a_48", Se = "_active_roi3a_61", we = "_products_roi3a_14", Be = "_product_roi3a_14", $e = "_button_roi3a_80", Pe = "_disabled_roi3a_91", Me = "_image_roi3a_95", Te = "_info_roi3a_102", qe = "_name_roi3a_114", Ae = "_buttons_roi3a_118", Oe = "_modal_roi3a_125", Ee = "_link_roi3a_145", Re = "_modalOptions_roi3a_151", Le = "_addButton_roi3a_164", De = "_deleteButton_roi3a_179", He = "_closeIcon_roi3a_191", V = {
338
- title: xe,
339
- subtitle: be,
340
- header: je,
341
- text: ve,
342
- productsBlock: ye,
343
- top: Ne,
344
- itemsBlock: ke,
345
- typeTexts: Ie,
346
- block: Ce,
347
- active: Se,
348
- products: we,
349
- product: Be,
350
- button: $e,
351
- disabled: Pe,
352
- image: Me,
353
- info: Te,
354
- name: qe,
355
- buttons: Ae,
356
- modal: Oe,
357
- link: Ee,
358
- modalOptions: Re,
359
- addButton: Le,
360
- deleteButton: De,
337
+ }, be = "_title_roi3a_1", ve = "_subtitle_roi3a_5", ye = "_header_roi3a_12", Ne = "_text_roi3a_13", ke = "_productsBlock_roi3a_14", Ie = "_top_roi3a_26", Ce = "_itemsBlock_roi3a_35", Se = "_typeTexts_roi3a_41", we = "_block_roi3a_48", $e = "_active_roi3a_61", Be = "_products_roi3a_14", Pe = "_product_roi3a_14", Me = "_button_roi3a_80", Te = "_disabled_roi3a_91", qe = "_image_roi3a_95", Ae = "_info_roi3a_102", Oe = "_name_roi3a_114", Ee = "_buttons_roi3a_118", Re = "_modal_roi3a_125", De = "_link_roi3a_145", Le = "_modalOptions_roi3a_151", ze = "_addButton_roi3a_164", Ue = "_deleteButton_roi3a_179", He = "_closeIcon_roi3a_191", V = {
338
+ title: be,
339
+ subtitle: ve,
340
+ header: ye,
341
+ text: Ne,
342
+ productsBlock: ke,
343
+ top: Ie,
344
+ itemsBlock: Ce,
345
+ typeTexts: Se,
346
+ block: we,
347
+ active: $e,
348
+ products: Be,
349
+ product: Pe,
350
+ button: Me,
351
+ disabled: Te,
352
+ image: qe,
353
+ info: Ae,
354
+ name: Oe,
355
+ buttons: Ee,
356
+ modal: Re,
357
+ link: De,
358
+ modalOptions: Le,
359
+ addButton: ze,
360
+ deleteButton: Ue,
361
361
  closeIcon: He
362
362
  };
363
- function Ue({ product: r, children: s }) {
363
+ function Fe({ product: r, children: s }) {
364
364
  const {
365
365
  attributes: e,
366
366
  listeners: n,
@@ -368,7 +368,7 @@ function Ue({ product: r, children: s }) {
368
368
  transform: d,
369
369
  transition: u,
370
370
  isDragging: o
371
- } = xt({
371
+ } = jt({
372
372
  id: r.id
373
373
  }), m = {
374
374
  transform: bt.Transform.toString(d),
@@ -386,7 +386,7 @@ function Ue({ product: r, children: s }) {
386
386
  }
387
387
  );
388
388
  }
389
- const Zs = (r) => {
389
+ const ii = (r) => {
390
390
  const {
391
391
  isActiveItems: s,
392
392
  setIsActiveItems: e,
@@ -401,9 +401,9 @@ const Zs = (r) => {
401
401
  itemsType: c,
402
402
  itemsOptions: l,
403
403
  addableOptions: T = {},
404
- limit: B
405
- } = r, [M, x] = _.useState(null), [k, a] = _.useState(null), j = _.useRef(null), L = mt(
406
- ht(pt, {
404
+ limit: $
405
+ } = r, [M, x] = _.useState(null), [k, a] = _.useState(null), b = _.useRef(null), D = ht(
406
+ pt(_t, {
407
407
  activationConstraint: {
408
408
  distance: 5
409
409
  }
@@ -415,8 +415,8 @@ const Zs = (r) => {
415
415
  i(v);
416
416
  }
417
417
  }, [M]), _.useEffect(() => {
418
- j.current && k && (j.current.getBoundingClientRect().height, k.top);
419
- }, [j.current, k]);
418
+ b.current && k && (b.current.getBoundingClientRect().height, k.top);
419
+ }, [b.current, k]);
420
420
  const w = (v, I) => {
421
421
  v.stopPropagation();
422
422
  const q = v.target.getBoundingClientRect();
@@ -424,13 +424,13 @@ const Zs = (r) => {
424
424
  top: q.top + window.scrollY,
425
425
  left: q.left - 30
426
426
  }), x(I);
427
- }, H = (v) => {
427
+ }, z = (v) => {
428
428
  const { active: I, over: q } = v;
429
429
  if (q && I.id !== q.id) {
430
- const $ = n.findIndex((b) => b.id === I.id), p = n.findIndex((b) => b.id === q.id);
431
- if ($ !== -1 && p !== -1) {
432
- const b = [...n], [A] = b.splice($, 1);
433
- b.splice(p, 0, A), i(b);
430
+ const B = n.findIndex((j) => j.id === I.id), p = n.findIndex((j) => j.id === q.id);
431
+ if (B !== -1 && p !== -1) {
432
+ const j = [...n], [A] = j.splice(B, 1);
433
+ j.splice(p, 0, A), i(j);
434
434
  }
435
435
  }
436
436
  }, C = (v, I) => {
@@ -447,24 +447,24 @@ const Zs = (r) => {
447
447
  c === "select" && l && /* @__PURE__ */ t.jsx(
448
448
  at,
449
449
  {
450
- onChange: ($) => {
451
- const p = [...n], b = l.find((U) => U.name === $);
452
- if (!b) return;
450
+ onChange: (B) => {
451
+ const p = [...n], j = l.find((U) => U.name === B);
452
+ if (!j) return;
453
453
  const A = p.map((U) => U.id === v.id ? {
454
- ...b,
454
+ ...j,
455
455
  name: {
456
- "en-US": $
456
+ "en-US": B
457
457
  }
458
458
  } : U);
459
459
  x({
460
460
  ...v,
461
461
  name: {
462
- "en-US": $
462
+ "en-US": B
463
463
  }
464
464
  }), i([...A]);
465
465
  },
466
466
  value: v.name,
467
- options: l.filter(($) => !n.find((p) => p.name === $.name)).map(($) => $.name)
467
+ options: l.filter((B) => !n.find((p) => p.name === B.name)).map((B) => B.name)
468
468
  }
469
469
  ),
470
470
  /* @__PURE__ */ t.jsxs("div", { className: V.buttons, children: [
@@ -475,7 +475,7 @@ const Zs = (r) => {
475
475
  hoverable: !0,
476
476
  width: 20,
477
477
  height: 20,
478
- onClick: ($) => w($, v)
478
+ onClick: (B) => w(B, v)
479
479
  }
480
480
  ) }),
481
481
  g && /* @__PURE__ */ t.jsx("div", { className: V.deleteButton, children: /* @__PURE__ */ t.jsx(
@@ -486,13 +486,13 @@ const Zs = (r) => {
486
486
  width: 20,
487
487
  height: 20,
488
488
  fill: "#C12A2A",
489
- onClick: () => i(n.filter(($) => $.id !== v.id))
489
+ onClick: () => i(n.filter((B) => B.id !== v.id))
490
490
  }
491
491
  ) })
492
492
  ] })
493
493
  ] });
494
494
  return m ? /* @__PURE__ */ t.jsx(
495
- Ue,
495
+ Fe,
496
496
  {
497
497
  product: v,
498
498
  index: I,
@@ -522,15 +522,15 @@ const Zs = (r) => {
522
522
  /* @__PURE__ */ t.jsxs("div", { className: V.products, children: [
523
523
  u && /* @__PURE__ */ t.jsx("h5", { className: V.subtitle, children: u }),
524
524
  m ? /* @__PURE__ */ t.jsx(
525
- _t,
525
+ gt,
526
526
  {
527
- sensors: L,
528
- onDragEnd: H,
527
+ sensors: D,
528
+ onDragEnd: z,
529
529
  children: /* @__PURE__ */ t.jsx(
530
- gt,
530
+ ft,
531
531
  {
532
532
  items: n.map((v) => v.id),
533
- strategy: ft,
533
+ strategy: xt,
534
534
  children: n.map((v, I) => C(v, I))
535
535
  }
536
536
  )
@@ -549,16 +549,16 @@ const Zs = (r) => {
549
549
  {
550
550
  withoutHover: !0,
551
551
  className: W(V.button, {
552
- [V.disabled]: !!(B && B <= n.length || n.length === (l == null ? void 0 : l.length))
552
+ [V.disabled]: !!($ && $ <= n.length || n.length === (l == null ? void 0 : l.length))
553
553
  }),
554
554
  size: "s",
555
- disabled: !!(B && B <= n.length || n.length === (l == null ? void 0 : l.length)),
555
+ disabled: !!($ && $ <= n.length || n.length === (l == null ? void 0 : l.length)),
556
556
  onClick: () => {
557
557
  const v = [...n];
558
558
  let I = null;
559
559
  if (l) {
560
560
  for (let q = 0; q < l.length; q++)
561
- if (!n.find(($) => $.id === l[q].id)) {
561
+ if (!n.find((B) => B.id === l[q].id)) {
562
562
  I = l[q];
563
563
  break;
564
564
  }
@@ -590,8 +590,8 @@ const Zs = (r) => {
590
590
  ] })
591
591
  ] });
592
592
  };
593
- function ze(r) {
594
- const { product: s, children: e } = r, { attributes: n, listeners: i, setNodeRef: d, transform: u, transition: o, isDragging: m } = xt({
593
+ function Ve(r) {
594
+ const { product: s, children: e } = r, { attributes: n, listeners: i, setNodeRef: d, transform: u, transition: o, isDragging: m } = jt({
595
595
  id: s.id
596
596
  }), g = {
597
597
  transform: bt.Transform.toString(u),
@@ -609,7 +609,7 @@ function ze(r) {
609
609
  }
610
610
  );
611
611
  }
612
- const ti = (r) => {
612
+ const oi = (r) => {
613
613
  const {
614
614
  isActiveItems: s,
615
615
  setIsActiveItems: e,
@@ -624,18 +624,18 @@ const ti = (r) => {
624
624
  deletable: c = !0,
625
625
  addable: l = !0,
626
626
  itemsType: T,
627
- itemsPlaceholder: B = "",
627
+ itemsPlaceholder: $ = "",
628
628
  itemsOptions: M,
629
629
  hasRangeSelector: x = !1,
630
630
  rangeSelectorOptions: k,
631
631
  modalOptions: a,
632
- addableOptions: j = {},
633
- limit: L
634
- } = r, [w, H] = _.useState(null), [C, v] = _.useState({
632
+ addableOptions: b = {},
633
+ limit: D
634
+ } = r, [w, z] = _.useState(null), [C, v] = _.useState({
635
635
  top: 0,
636
636
  left: 0
637
- }), [I, q] = _.useState(null), $ = _.useRef(null), [p, b] = _.useState(!1), A = mt(
638
- ht(pt, {
637
+ }), [I, q] = _.useState(null), B = _.useRef(null), [p, j] = _.useState(!1), A = ht(
638
+ pt(_t, {
639
639
  activationConstraint: {
640
640
  distance: 5
641
641
  }
@@ -643,10 +643,10 @@ const ti = (r) => {
643
643
  );
644
644
  _.useEffect(() => {
645
645
  const h = () => {
646
- H(null), b(!1);
646
+ z(null), j(!1);
647
647
  };
648
- return document.body.addEventListener("click", h), H(null), b(!1), () => {
649
- H(null), b(!1), document.body.removeEventListener("click", h);
648
+ return document.body.addEventListener("click", h), z(null), j(!1), () => {
649
+ z(null), j(!1), document.body.removeEventListener("click", h);
650
650
  };
651
651
  }, []), _.useEffect(() => {
652
652
  if (w) {
@@ -654,22 +654,22 @@ const ti = (r) => {
654
654
  i(h);
655
655
  }
656
656
  }, [w]), _.useEffect(() => {
657
- if ($.current && I) {
658
- const h = $.current.getBoundingClientRect().height, E = window.innerHeight;
657
+ if (B.current && I) {
658
+ const h = B.current.getBoundingClientRect().height, E = window.innerHeight;
659
659
  let P = I.top;
660
660
  P + h > E + window.scrollY - 200 && (P = E + window.scrollY - h - 200), P < 0 && (P = 10), v({
661
661
  top: P,
662
662
  left: I.left
663
663
  });
664
664
  }
665
- }, [$.current, I]);
665
+ }, [B.current, I]);
666
666
  const U = (h, E) => {
667
667
  h.stopPropagation();
668
668
  const P = h.target.getBoundingClientRect();
669
669
  q({
670
670
  top: P.top + window.scrollY,
671
671
  left: P.left - 30
672
- }), H(E), b(!0);
672
+ }), z(E), j(!0);
673
673
  };
674
674
  function O(h) {
675
675
  if (S)
@@ -691,16 +691,16 @@ const ti = (r) => {
691
691
  }
692
692
  );
693
693
  }
694
- const D = (h) => {
694
+ const L = (h) => {
695
695
  const { active: E, over: P } = h;
696
696
  if (P && E.id !== P.id) {
697
697
  const R = n.findIndex((Y) => Y.id === E.id), et = n.findIndex((Y) => Y.id === P.id);
698
698
  if (R !== -1 && et !== -1) {
699
- const Y = [...n], [Q] = Y.splice(R, 1);
700
- Y.splice(et, 0, Q), i(Y);
699
+ const Y = [...n], [K] = Y.splice(R, 1);
700
+ Y.splice(et, 0, K), i(Y);
701
701
  }
702
702
  }
703
- }, K = (h) => {
703
+ }, Q = (h) => {
704
704
  var P;
705
705
  const E = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
706
706
  g && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
@@ -716,13 +716,13 @@ const ti = (r) => {
716
716
  at,
717
717
  {
718
718
  onChange: (R) => {
719
- const Y = [...n].map((Q) => Q.id === h.id ? {
719
+ const Y = [...n].map((K) => K.id === h.id ? {
720
720
  ...h,
721
721
  name: {
722
722
  "en-US": R
723
723
  }
724
- } : Q);
725
- H({
724
+ } : K);
725
+ z({
726
726
  ...h,
727
727
  name: {
728
728
  "en-US": R
@@ -737,29 +737,29 @@ const ti = (r) => {
737
737
  }
738
738
  ),
739
739
  T === "input" && /* @__PURE__ */ t.jsx(
740
- dt,
740
+ ut,
741
741
  {
742
742
  onChange: (R) => {
743
- const Y = [...n].map((Q) => Q.id === h.id ? {
743
+ const Y = [...n].map((K) => K.id === h.id ? {
744
744
  ...h,
745
745
  name: {
746
746
  "en-US": R
747
747
  }
748
- } : Q);
748
+ } : K);
749
749
  i([...Y]);
750
750
  },
751
751
  value: h.name["en-US"],
752
- placeholder: B
752
+ placeholder: $
753
753
  }
754
754
  ),
755
755
  T === "image" && /* @__PURE__ */ t.jsx(
756
- wt,
756
+ $t,
757
757
  {
758
758
  onChange: (R) => {
759
- const Y = [...n].map((Q) => Q.id === h.id ? {
759
+ const Y = [...n].map((K) => K.id === h.id ? {
760
760
  ...h,
761
761
  images: R
762
- } : Q);
762
+ } : K);
763
763
  i([...Y]);
764
764
  },
765
765
  activeImage: (P = n.find((R) => R.id === h.id)) == null ? void 0 : P.images[0]
@@ -790,7 +790,7 @@ const ti = (r) => {
790
790
  ] })
791
791
  ] });
792
792
  return g ? /* @__PURE__ */ t.jsx(
793
- ze,
793
+ Ve,
794
794
  {
795
795
  product: h,
796
796
  children: E
@@ -817,34 +817,34 @@ const ti = (r) => {
817
817
  )
818
818
  ] }),
819
819
  w && m && a && p && /* @__PURE__ */ t.jsx(
820
- St,
820
+ wt,
821
821
  {
822
- ref: $,
822
+ ref: B,
823
823
  activeItem: w,
824
- setActiveItem: H,
824
+ setActiveItem: z,
825
825
  popupPosition: C,
826
826
  modalOptions: a,
827
- setIsOpenModal: b
827
+ setIsOpenModal: j
828
828
  }
829
829
  ),
830
- x && k && /* @__PURE__ */ t.jsx(yt, { ...k }),
830
+ x && k && /* @__PURE__ */ t.jsx(Nt, { ...k }),
831
831
  /* @__PURE__ */ t.jsxs("div", { className: F.products, children: [
832
832
  o && /* @__PURE__ */ t.jsx("h5", { className: F.subtitle, children: o }),
833
833
  g ? /* @__PURE__ */ t.jsx(
834
- _t,
834
+ gt,
835
835
  {
836
836
  sensors: A,
837
- onDragEnd: D,
837
+ onDragEnd: L,
838
838
  children: /* @__PURE__ */ t.jsx(
839
- gt,
839
+ ft,
840
840
  {
841
841
  items: n.map((h) => h.id),
842
- strategy: ft,
843
- children: n.map((h) => K(h))
842
+ strategy: xt,
843
+ children: n.map((h) => Q(h))
844
844
  }
845
845
  )
846
846
  }
847
- ) : n.map((h) => K(h)),
847
+ ) : n.map((h) => Q(h)),
848
848
  l && /* @__PURE__ */ t.jsx(
849
849
  "div",
850
850
  {
@@ -858,10 +858,10 @@ const ti = (r) => {
858
858
  {
859
859
  withoutHover: !0,
860
860
  className: W(F.button, {
861
- [F.disabled]: !!(L && L <= n.length)
861
+ [F.disabled]: !!(D && D <= n.length)
862
862
  }),
863
863
  size: "s",
864
- disabled: !!(L && L <= n.length),
864
+ disabled: !!(D && D <= n.length),
865
865
  onClick: () => {
866
866
  const h = [...n];
867
867
  let E = null;
@@ -877,7 +877,7 @@ const ti = (r) => {
877
877
  "en-US": E || M[0]
878
878
  },
879
879
  id: st(),
880
- ...j,
880
+ ...b,
881
881
  maxSymbols: 100
882
882
  // пример значения
883
883
  }) : T === "input" ? h.push({
@@ -885,14 +885,14 @@ const ti = (r) => {
885
885
  "en-US": ""
886
886
  },
887
887
  id: st(),
888
- ...j,
888
+ ...b,
889
889
  maxSymbols: 100
890
890
  }) : h.push({
891
891
  name: {
892
892
  "en-US": `Image ${n.length + 1}`
893
893
  },
894
894
  id: st(),
895
- ...j,
895
+ ...b,
896
896
  maxSymbols: 100
897
897
  }), i(h);
898
898
  },
@@ -915,32 +915,32 @@ const ti = (r) => {
915
915
  }
916
916
  )
917
917
  ] }),
918
- d !== void 0 && /* @__PURE__ */ t.jsx(ut, { items: d })
918
+ d !== void 0 && /* @__PURE__ */ t.jsx(mt, { items: d })
919
919
  ] });
920
- }, Fe = "_subtitle_jql1y_1", Ve = "_header_jql1y_8", Ye = "_text_jql1y_9", Ge = "_productsBlock_jql1y_10", We = "_buttonsBlock_jql1y_11", Je = "_top_jql1y_23", Xe = "_itemsBlock_jql1y_32", Qe = "_typeTexts_jql1y_38", Ke = "_block_jql1y_45", Ze = "_active_jql1y_58", tn = "_products_jql1y_10", en = "_product_jql1y_10", nn = "_button_jql1y_11", sn = "_image_jql1y_88", on = "_info_jql1y_95", an = "_name_jql1y_107", cn = "_buttons_jql1y_11", ln = "_modal_jql1y_118", rn = "_other_jql1y_138", dn = "_options_jql1y_144", un = "_addButton_jql1y_150", mn = "_deleteButton_jql1y_165", Z = {
921
- subtitle: Fe,
922
- header: Ve,
923
- text: Ye,
924
- productsBlock: Ge,
925
- buttonsBlock: We,
926
- top: Je,
927
- itemsBlock: Xe,
928
- typeTexts: Qe,
929
- block: Ke,
930
- active: Ze,
931
- products: tn,
932
- product: en,
933
- button: nn,
934
- image: sn,
935
- info: on,
936
- name: an,
937
- buttons: cn,
938
- modal: ln,
939
- other: rn,
940
- options: dn,
941
- addButton: un,
942
- deleteButton: mn
943
- }, hn = (r) => {
920
+ }, Ye = "_subtitle_jql1y_1", Ge = "_header_jql1y_8", We = "_text_jql1y_9", Je = "_productsBlock_jql1y_10", Xe = "_buttonsBlock_jql1y_11", Ke = "_top_jql1y_23", Qe = "_itemsBlock_jql1y_32", Ze = "_typeTexts_jql1y_38", tn = "_block_jql1y_45", en = "_active_jql1y_58", nn = "_products_jql1y_10", sn = "_product_jql1y_10", on = "_button_jql1y_11", an = "_image_jql1y_88", cn = "_info_jql1y_95", ln = "_name_jql1y_107", rn = "_buttons_jql1y_11", dn = "_modal_jql1y_118", un = "_other_jql1y_138", mn = "_options_jql1y_144", hn = "_addButton_jql1y_150", pn = "_deleteButton_jql1y_165", Z = {
921
+ subtitle: Ye,
922
+ header: Ge,
923
+ text: We,
924
+ productsBlock: Je,
925
+ buttonsBlock: Xe,
926
+ top: Ke,
927
+ itemsBlock: Qe,
928
+ typeTexts: Ze,
929
+ block: tn,
930
+ active: en,
931
+ products: nn,
932
+ product: sn,
933
+ button: on,
934
+ image: an,
935
+ info: cn,
936
+ name: ln,
937
+ buttons: rn,
938
+ modal: dn,
939
+ other: un,
940
+ options: mn,
941
+ addButton: hn,
942
+ deleteButton: pn
943
+ }, _n = (r) => {
944
944
  const { buttons: s, setButtons: e, deletable: n = !0, addable: i = !0, editableLink: d = !0 } = r, { pages: u } = Bt(), [o, m] = _.useState(null), [g, S] = _.useState({
945
945
  top: 0,
946
946
  left: 0
@@ -960,7 +960,7 @@ const ti = (r) => {
960
960
  });
961
961
  }
962
962
  }, [T.current, c]);
963
- const B = (x, k) => {
963
+ const $ = (x, k) => {
964
964
  x.stopPropagation();
965
965
  const a = x.target.getBoundingClientRect();
966
966
  l({
@@ -968,12 +968,12 @@ const ti = (r) => {
968
968
  left: a.left - (i ? 30 : 65)
969
969
  }), m(k);
970
970
  }, M = (x, k) => {
971
- const a = [...s], j = {
971
+ const a = [...s], b = {
972
972
  ...x,
973
973
  id: Math.random().toString(36).substr(2, 9)
974
974
  // Генерируем новый уникальный ID
975
975
  };
976
- a.splice(k + 1, 0, j), e(a);
976
+ a.splice(k + 1, 0, b), e(a);
977
977
  };
978
978
  return /* @__PURE__ */ t.jsxs("div", { className: Z.products, children: [
979
979
  /* @__PURE__ */ t.jsx("h5", { className: Z.subtitle, children: "Button Type" }),
@@ -986,11 +986,11 @@ const ti = (r) => {
986
986
  at,
987
987
  {
988
988
  onChange: (a) => {
989
- const L = [...s].map((w) => w.id === x.id ? {
989
+ const D = [...s].map((w) => w.id === x.id ? {
990
990
  ...x,
991
991
  type: a
992
992
  } : w);
993
- e(L);
993
+ e(D);
994
994
  },
995
995
  value: x.type,
996
996
  options: ["Primary", "Secondary", "Tertiary"]
@@ -1017,7 +1017,7 @@ const ti = (r) => {
1017
1017
  width: 20,
1018
1018
  height: 20,
1019
1019
  onClick: (a) => {
1020
- B(a, x);
1020
+ $(a, x);
1021
1021
  }
1022
1022
  }
1023
1023
  ) }),
@@ -1027,7 +1027,7 @@ const ti = (r) => {
1027
1027
  name: "Trash",
1028
1028
  hoverable: !0,
1029
1029
  onClick: () => {
1030
- const a = s.filter((j) => j.id !== x.id);
1030
+ const a = s.filter((b) => b.id !== x.id);
1031
1031
  e(a);
1032
1032
  },
1033
1033
  width: 20,
@@ -1041,7 +1041,7 @@ const ti = (r) => {
1041
1041
  x.id
1042
1042
  )),
1043
1043
  o && /* @__PURE__ */ t.jsx(
1044
- $t,
1044
+ Pt,
1045
1045
  {
1046
1046
  ref: T,
1047
1047
  activeButton: o,
@@ -1107,7 +1107,7 @@ const ti = (r) => {
1107
1107
  }
1108
1108
  )
1109
1109
  ] });
1110
- }, ei = (r) => {
1110
+ }, ai = (r) => {
1111
1111
  const {
1112
1112
  isActiveButtons: s,
1113
1113
  setIsActiveButtons: e,
@@ -1129,7 +1129,7 @@ const ti = (r) => {
1129
1129
  )
1130
1130
  ] }),
1131
1131
  s && /* @__PURE__ */ t.jsx(
1132
- hn,
1132
+ _n,
1133
1133
  {
1134
1134
  buttons: n,
1135
1135
  setButtons: i,
@@ -1140,8 +1140,8 @@ const ti = (r) => {
1140
1140
  )
1141
1141
  ] }) });
1142
1142
  };
1143
- function pn(r) {
1144
- const { product: s, children: e } = r, { attributes: n, listeners: i, setNodeRef: d, transform: u, transition: o, isDragging: m } = xt({
1143
+ function gn(r) {
1144
+ const { product: s, children: e } = r, { attributes: n, listeners: i, setNodeRef: d, transform: u, transition: o, isDragging: m } = jt({
1145
1145
  id: String(s.listingId)
1146
1146
  }), g = {
1147
1147
  transform: bt.Transform.toString(u),
@@ -1159,7 +1159,7 @@ function pn(r) {
1159
1159
  }
1160
1160
  );
1161
1161
  }
1162
- const ni = (r) => {
1162
+ const ci = (r) => {
1163
1163
  const {
1164
1164
  isActiveItems: s,
1165
1165
  setIsActiveItems: e,
@@ -1174,15 +1174,15 @@ const ni = (r) => {
1174
1174
  deletable: c = !0,
1175
1175
  addable: l = !0,
1176
1176
  itemsType: T,
1177
- itemsOptions: B,
1177
+ itemsOptions: $,
1178
1178
  limit: M
1179
1179
  } = r, [x, k] = _.useState(
1180
1180
  null
1181
- ), [a, j] = _.useState({
1181
+ ), [a, b] = _.useState({
1182
1182
  top: 0,
1183
1183
  left: 0
1184
- }), [L, w] = _.useState(!1), H = mt(
1185
- ht(pt, {
1184
+ }), [D, w] = _.useState(!1), z = ht(
1185
+ pt(_t, {
1186
1186
  activationConstraint: {
1187
1187
  distance: 5
1188
1188
  }
@@ -1197,18 +1197,18 @@ const ni = (r) => {
1197
1197
  };
1198
1198
  }, []), _.useEffect(() => {
1199
1199
  if (x) {
1200
- const p = [...n].map((b) => b.listingId === x.listingId ? x : b);
1200
+ const p = [...n].map((j) => j.listingId === x.listingId ? x : j);
1201
1201
  i(p);
1202
1202
  }
1203
1203
  }, [x]);
1204
- const C = (p, b) => {
1204
+ const C = (p, j) => {
1205
1205
  p.stopPropagation();
1206
1206
  const A = p.target.getBoundingClientRect(), U = 100, O = window.innerHeight;
1207
- let D = A.top + window.scrollY;
1208
- D + U > O && (D = O - U - 20), w(!0), j({
1209
- top: D - 80,
1207
+ let L = A.top + window.scrollY;
1208
+ L + U > O && (L = O - U - 20), w(!0), b({
1209
+ top: L - 80,
1210
1210
  left: A.left - 30
1211
- }), k(b);
1211
+ }), k(j);
1212
1212
  };
1213
1213
  function v(p) {
1214
1214
  if (S)
@@ -1231,16 +1231,16 @@ const ni = (r) => {
1231
1231
  );
1232
1232
  }
1233
1233
  const I = (p) => {
1234
- const { active: b, over: A } = p;
1235
- if (A && b.id !== A.id) {
1236
- const U = n.findIndex((D) => String(D.listingId) === b.id), O = n.findIndex((D) => String(D.listingId) === A.id);
1234
+ const { active: j, over: A } = p;
1235
+ if (A && j.id !== A.id) {
1236
+ const U = n.findIndex((L) => String(L.listingId) === j.id), O = n.findIndex((L) => String(L.listingId) === A.id);
1237
1237
  if (U !== -1 && O !== -1) {
1238
- const D = [...n], [K] = D.splice(U, 1);
1239
- D.splice(O, 0, K), i(D);
1238
+ const L = [...n], [Q] = L.splice(U, 1);
1239
+ L.splice(O, 0, Q), i(L);
1240
1240
  }
1241
1241
  }
1242
- }, q = (p, b) => {
1243
- const A = B.find((O) => p.listingId === O.id);
1242
+ }, q = (p, j) => {
1243
+ const A = $.find((O) => p.listingId === O.id);
1244
1244
  if (!A) return null;
1245
1245
  const U = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1246
1246
  g && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
@@ -1256,23 +1256,23 @@ const ni = (r) => {
1256
1256
  at,
1257
1257
  {
1258
1258
  onChange: (O) => {
1259
- const D = [...n], K = B.find((P) => P.productData.name === O);
1260
- if (!K) return;
1259
+ const L = [...n], Q = $.find((P) => P.productData.name === O);
1260
+ if (!Q) return;
1261
1261
  const h = {
1262
- listingId: K.id,
1263
- image: K.productData.images.length > 0 ? K.productData.images[0].cfId : ""
1264
- }, E = D.map((P) => P.listingId === p.listingId ? h : P);
1262
+ listingId: Q.id,
1263
+ image: Q.productData.images.length > 0 ? Q.productData.images[0].cfId : ""
1264
+ }, E = L.map((P) => P.listingId === p.listingId ? h : P);
1265
1265
  k(h), i([...E]);
1266
1266
  },
1267
1267
  value: A.productData.name,
1268
1268
  options: [
1269
- ...B.filter((O) => !n.find((D) => D.listingId === O.id)).map((O) => O.productData.name)
1269
+ ...$.filter((O) => !n.find((L) => L.listingId === O.id)).map((O) => O.productData.name)
1270
1270
  ],
1271
1271
  leftAddon: v(
1272
1272
  p.image || A.productData.images.length > 0 && A.productData.images[0].cfId || ""
1273
1273
  )
1274
1274
  },
1275
- b
1275
+ j
1276
1276
  ),
1277
1277
  /* @__PURE__ */ t.jsxs("div", { className: G.buttons, children: [
1278
1278
  m && /* @__PURE__ */ t.jsx("div", { className: G.deleteButton, children: /* @__PURE__ */ t.jsx(
@@ -1299,7 +1299,7 @@ const ni = (r) => {
1299
1299
  ] })
1300
1300
  ] });
1301
1301
  return g ? /* @__PURE__ */ t.jsx(
1302
- pn,
1302
+ gn,
1303
1303
  {
1304
1304
  product: p,
1305
1305
  children: U
@@ -1313,7 +1313,7 @@ const ni = (r) => {
1313
1313
  },
1314
1314
  p.listingId
1315
1315
  );
1316
- }, $ = _.useRef(null);
1316
+ }, B = _.useRef(null);
1317
1317
  return /* @__PURE__ */ t.jsxs("div", { className: G.productsBlock, children: [
1318
1318
  (u || s !== void 0) && /* @__PURE__ */ t.jsxs("div", { className: G.top, children: [
1319
1319
  u && /* @__PURE__ */ t.jsx("h3", { className: G.title, children: u }),
@@ -1325,34 +1325,34 @@ const ni = (r) => {
1325
1325
  }
1326
1326
  )
1327
1327
  ] }),
1328
- L && x && /* @__PURE__ */ t.jsx(
1329
- Pt,
1328
+ D && x && /* @__PURE__ */ t.jsx(
1329
+ Mt,
1330
1330
  {
1331
- ref: $,
1331
+ ref: B,
1332
1332
  activeItem: x,
1333
1333
  setActiveItem: k,
1334
1334
  setIsOpenModal: w,
1335
1335
  popupPosition: a,
1336
- itemsOptions: B
1336
+ itemsOptions: $
1337
1337
  }
1338
1338
  ),
1339
1339
  s && /* @__PURE__ */ t.jsxs("div", { className: G.products, children: [
1340
1340
  o && /* @__PURE__ */ t.jsx("h5", { className: G.subtitle, children: o }),
1341
1341
  g ? /* @__PURE__ */ t.jsx(
1342
- _t,
1342
+ gt,
1343
1343
  {
1344
- sensors: H,
1344
+ sensors: z,
1345
1345
  onDragEnd: I,
1346
1346
  children: /* @__PURE__ */ t.jsx(
1347
- gt,
1347
+ ft,
1348
1348
  {
1349
1349
  items: n.map((p) => String(p.listingId)),
1350
- strategy: ft,
1351
- children: n.map((p, b) => q(p, b))
1350
+ strategy: xt,
1351
+ children: n.map((p, j) => q(p, j))
1352
1352
  }
1353
1353
  )
1354
1354
  }
1355
- ) : n.map((p, b) => q(p, b)),
1355
+ ) : n.map((p, j) => q(p, j)),
1356
1356
  l && /* @__PURE__ */ t.jsx(
1357
1357
  "div",
1358
1358
  {
@@ -1369,17 +1369,17 @@ const ni = (r) => {
1369
1369
  size: "s",
1370
1370
  onClick: () => {
1371
1371
  const p = [...n];
1372
- for (let b = 0; b < B.length; b++)
1373
- if (!n.find((A) => A.listingId === B[b].id)) {
1372
+ for (let j = 0; j < $.length; j++)
1373
+ if (!n.find((A) => A.listingId === $[j].id)) {
1374
1374
  p.push({
1375
- listingId: B[b].id,
1376
- image: B[b].productData.images.length > 0 ? B[b].productData.images[0].cfId : ""
1375
+ listingId: $[j].id,
1376
+ image: $[j].productData.images.length > 0 ? $[j].productData.images[0].cfId : ""
1377
1377
  });
1378
1378
  break;
1379
1379
  }
1380
1380
  i(p);
1381
1381
  },
1382
- disabled: n.length === (M || B.length),
1382
+ disabled: n.length === (M || $.length),
1383
1383
  style: {
1384
1384
  width: "fit-content"
1385
1385
  },
@@ -1399,37 +1399,37 @@ const ni = (r) => {
1399
1399
  }
1400
1400
  )
1401
1401
  ] }),
1402
- s && d !== void 0 && /* @__PURE__ */ t.jsx(ut, { items: d })
1402
+ s && d !== void 0 && /* @__PURE__ */ t.jsx(mt, { items: d })
1403
1403
  ] });
1404
- }, _n = "_options_6cemk_1", gn = "_price_6cemk_12", fn = "_oldPrice_6cemk_19", xn = "_newPrice_6cemk_27", bn = "_animate_6cemk_34", jn = "_appearAndBounce_6cemk_1", vn = "_meta_6cemk_52", yn = "_info_6cemk_58", Nn = "_infoRight_6cemk_66", kn = "_buttons_6cemk_73", In = "_variants_6cemk_80", Cn = "_variant_6cemk_80", Sn = "_stock_6cemk_98", wn = "_variantInfo_6cemk_105", Bn = "_quantity_6cemk_111", $n = "_count_6cemk_118", Pn = "_focused_6cemk_135", Mn = "_button_6cemk_73", Tn = "_activeVariant_6cemk_161", qn = "_chargeTypes_6cemk_165", An = "_charge_6cemk_165", On = "_chargeActive_6cemk_190", En = "_title_6cemk_198", N = {
1405
- options: _n,
1406
- price: gn,
1407
- oldPrice: fn,
1408
- newPrice: xn,
1409
- animate: bn,
1410
- appearAndBounce: jn,
1411
- meta: vn,
1412
- info: yn,
1413
- infoRight: Nn,
1414
- buttons: kn,
1415
- variants: In,
1416
- variant: Cn,
1417
- stock: Sn,
1418
- variantInfo: wn,
1419
- quantity: Bn,
1420
- count: $n,
1421
- focused: Pn,
1422
- button: Mn,
1423
- activeVariant: Tn,
1424
- chargeTypes: qn,
1425
- charge: An,
1426
- chargeActive: On,
1427
- title: En
1404
+ }, fn = "_options_6cemk_1", xn = "_price_6cemk_12", jn = "_oldPrice_6cemk_19", bn = "_newPrice_6cemk_27", vn = "_animate_6cemk_34", yn = "_appearAndBounce_6cemk_1", Nn = "_meta_6cemk_52", kn = "_info_6cemk_58", In = "_infoRight_6cemk_66", Cn = "_buttons_6cemk_73", Sn = "_variants_6cemk_80", wn = "_variant_6cemk_80", $n = "_stock_6cemk_98", Bn = "_variantInfo_6cemk_105", Pn = "_quantity_6cemk_111", Mn = "_count_6cemk_118", Tn = "_focused_6cemk_135", qn = "_button_6cemk_73", An = "_activeVariant_6cemk_161", On = "_chargeTypes_6cemk_165", En = "_charge_6cemk_165", Rn = "_chargeActive_6cemk_190", Dn = "_title_6cemk_198", N = {
1405
+ options: fn,
1406
+ price: xn,
1407
+ oldPrice: jn,
1408
+ newPrice: bn,
1409
+ animate: vn,
1410
+ appearAndBounce: yn,
1411
+ meta: Nn,
1412
+ info: kn,
1413
+ infoRight: In,
1414
+ buttons: Cn,
1415
+ variants: Sn,
1416
+ variant: wn,
1417
+ stock: $n,
1418
+ variantInfo: Bn,
1419
+ quantity: Pn,
1420
+ count: Mn,
1421
+ focused: Tn,
1422
+ button: qn,
1423
+ activeVariant: An,
1424
+ chargeTypes: On,
1425
+ charge: En,
1426
+ chargeActive: Rn,
1427
+ title: Dn
1428
1428
  };
1429
- var It = /* @__PURE__ */ ((r) => (r.ONE_TIME = "One-Time", r.RECURRING = "Subscribe & Save", r))(It || {});
1430
- const si = (r) => {
1429
+ var Ct = /* @__PURE__ */ ((r) => (r.ONE_TIME = "One-Time", r.RECURRING = "Subscribe & Save", r))(Ct || {});
1430
+ const li = (r) => {
1431
1431
  var x, k;
1432
- const { variants: s } = r, [e, n] = _.useState(s[0]), [i, d] = _.useState(e.chargeTypes[0]), u = lt(), [o, m] = _.useState(1), { reset: g, addProductToCart: S } = jt(), [c, l] = _.useState(!1);
1432
+ const { variants: s } = r, [e, n] = _.useState(s[0]), [i, d] = _.useState(e.chargeTypes[0]), u = lt(), [o, m] = _.useState(1), { reset: g, addProductToCart: S } = vt(), [c, l] = _.useState(!1);
1433
1433
  _.useEffect(() => {
1434
1434
  l(!0);
1435
1435
  const a = setTimeout(() => l(!1), 600);
@@ -1442,7 +1442,7 @@ const si = (r) => {
1442
1442
  quantity: o
1443
1443
  });
1444
1444
  }
1445
- function B() {
1445
+ function $() {
1446
1446
  g(), T(), u("/checkout");
1447
1447
  }
1448
1448
  function M(a) {
@@ -1470,12 +1470,12 @@ const si = (r) => {
1470
1470
  [N.chargeActive]: i === a
1471
1471
  }),
1472
1472
  onClick: () => d(a),
1473
- children: It[a]
1473
+ children: Ct[a]
1474
1474
  },
1475
1475
  a
1476
1476
  )) }),
1477
1477
  /* @__PURE__ */ t.jsx("div", { className: N.variants, children: s.map((a) => {
1478
- var j;
1478
+ var b;
1479
1479
  return /* @__PURE__ */ t.jsxs(
1480
1480
  "div",
1481
1481
  {
@@ -1492,7 +1492,7 @@ const si = (r) => {
1492
1492
  ] })
1493
1493
  ] }),
1494
1494
  /* @__PURE__ */ t.jsx("div", { children: i === "ONE_TIME" && /* @__PURE__ */ t.jsxs("span", { className: N.stock, children: [
1495
- ((j = a.quantity.restrictions) == null ? void 0 : j.max) || a.quantity.available || 0,
1495
+ ((b = a.quantity.restrictions) == null ? void 0 : b.max) || a.quantity.available || 0,
1496
1496
  " in stock"
1497
1497
  ] }) })
1498
1498
  ]
@@ -1502,7 +1502,7 @@ const si = (r) => {
1502
1502
  }) }),
1503
1503
  i === "ONE_TIME" && /* @__PURE__ */ t.jsxs("div", { className: N.quantity, children: [
1504
1504
  /* @__PURE__ */ t.jsx(
1505
- z,
1505
+ H,
1506
1506
  {
1507
1507
  type: "Secondary",
1508
1508
  onClick: () => {
@@ -1514,7 +1514,7 @@ const si = (r) => {
1514
1514
  }
1515
1515
  ),
1516
1516
  /* @__PURE__ */ t.jsx(
1517
- Mt,
1517
+ Tt,
1518
1518
  {
1519
1519
  type: "number",
1520
1520
  value: String(o),
@@ -1526,7 +1526,7 @@ const si = (r) => {
1526
1526
  }
1527
1527
  ),
1528
1528
  /* @__PURE__ */ t.jsx(
1529
- z,
1529
+ H,
1530
1530
  {
1531
1531
  type: "Secondary",
1532
1532
  onClick: () => {
@@ -1585,16 +1585,16 @@ const si = (r) => {
1585
1585
  ] }),
1586
1586
  /* @__PURE__ */ t.jsxs("div", { className: N.buttons, children: [
1587
1587
  /* @__PURE__ */ t.jsx(
1588
- z,
1588
+ H,
1589
1589
  {
1590
1590
  type: "Primary",
1591
- onClick: () => B(),
1591
+ onClick: () => $(),
1592
1592
  disabled: e.quantity.available === 0 || !e.quantity.available || Object.keys(e.quantity.restrictions || {}).length === 0 && !e.quantity.available,
1593
1593
  children: i === "ONE_TIME" ? "Buy Now" : "Subscribe Now"
1594
1594
  }
1595
1595
  ),
1596
1596
  i === "ONE_TIME" && /* @__PURE__ */ t.jsx(
1597
- z,
1597
+ H,
1598
1598
  {
1599
1599
  type: "Secondary",
1600
1600
  onClick: () => T(),
@@ -1604,54 +1604,54 @@ const si = (r) => {
1604
1604
  )
1605
1605
  ] })
1606
1606
  ] });
1607
- }, Rn = "_button_1tdo3_1", Ln = "_login_1tdo3_14", Dn = "_signUp_1tdo3_18", Hn = "_buttons_1tdo3_23", Un = "_modal_1tdo3_32", zn = "_closing_1tdo3_64", Fn = "_info_1tdo3_113", Vn = "_top_1tdo3_120", Yn = "_title_1tdo3_131", Gn = "_clear_1tdo3_138", Wn = "_activeClear_1tdo3_145", Jn = "_count_1tdo3_149", Xn = "_cart_1tdo3_164", Qn = "_empty_1tdo3_172", Kn = "_product_1tdo3_198", Zn = "_products_1tdo3_207", ts = "_image_1tdo3_215", es = "_productInfo_1tdo3_221", ns = "_content_1tdo3_228", ss = "_name_1tdo3_234", is = "_price_1tdo3_240", os = "_productButtons_1tdo3_246", as = "_productButton_1tdo3_246", cs = "_productCount_1tdo3_266", ls = "_bottom_1tdo3_282", rs = "_subtotal_1tdo3_290", ds = "_block_1tdo3_298", us = "_shoppingCount_1tdo3_305", ms = "_total_1tdo3_325", hs = "_link_1tdo3_331", ps = "_userInfo_1tdo3_338", _s = "_pagesMobileModal_1tdo3_349", gs = "_pagesMobileModalContent_1tdo3_363", fs = "_pagesMobileModalHeader_1tdo3_369", xs = "_pagesMobileModalFooter_1tdo3_379", y = {
1608
- button: Rn,
1609
- login: Ln,
1610
- signUp: Dn,
1607
+ }, Ln = "_button_1tdo3_1", zn = "_login_1tdo3_14", Un = "_signUp_1tdo3_18", Hn = "_buttons_1tdo3_23", Fn = "_modal_1tdo3_32", Vn = "_closing_1tdo3_64", Yn = "_info_1tdo3_113", Gn = "_top_1tdo3_120", Wn = "_title_1tdo3_131", Jn = "_clear_1tdo3_138", Xn = "_activeClear_1tdo3_145", Kn = "_count_1tdo3_149", Qn = "_cart_1tdo3_164", Zn = "_empty_1tdo3_172", ts = "_product_1tdo3_198", es = "_products_1tdo3_207", ns = "_image_1tdo3_215", ss = "_productInfo_1tdo3_221", is = "_content_1tdo3_228", os = "_name_1tdo3_234", as = "_price_1tdo3_240", cs = "_productButtons_1tdo3_246", ls = "_productButton_1tdo3_246", rs = "_productCount_1tdo3_266", ds = "_bottom_1tdo3_282", us = "_subtotal_1tdo3_290", ms = "_block_1tdo3_298", hs = "_shoppingCount_1tdo3_305", ps = "_total_1tdo3_325", _s = "_link_1tdo3_331", gs = "_userInfo_1tdo3_338", fs = "_pagesMobileModal_1tdo3_349", xs = "_pagesMobileModalContent_1tdo3_363", js = "_pagesMobileModalHeader_1tdo3_369", bs = "_pagesMobileModalFooter_1tdo3_379", y = {
1608
+ button: Ln,
1609
+ login: zn,
1610
+ signUp: Un,
1611
1611
  buttons: Hn,
1612
- modal: Un,
1612
+ modal: Fn,
1613
1613
  "slide-in-fade": "_slide-in-fade_1tdo3_1",
1614
1614
  "mobile-slide-in-fade": "_mobile-slide-in-fade_1tdo3_1",
1615
- closing: zn,
1615
+ closing: Vn,
1616
1616
  "mobile-slide-out-fade": "_mobile-slide-out-fade_1tdo3_1",
1617
1617
  "slide-out-fade": "_slide-out-fade_1tdo3_1",
1618
- info: Fn,
1619
- top: Vn,
1620
- title: Yn,
1621
- clear: Gn,
1622
- activeClear: Wn,
1623
- count: Jn,
1624
- cart: Xn,
1625
- empty: Qn,
1626
- product: Kn,
1627
- products: Zn,
1628
- image: ts,
1629
- productInfo: es,
1630
- content: ns,
1631
- name: ss,
1632
- price: is,
1633
- productButtons: os,
1634
- productButton: as,
1635
- productCount: cs,
1636
- bottom: ls,
1637
- subtotal: rs,
1638
- block: ds,
1639
- shoppingCount: us,
1640
- total: ms,
1641
- link: hs,
1642
- userInfo: ps,
1643
- pagesMobileModal: _s,
1644
- pagesMobileModalContent: gs,
1645
- pagesMobileModalHeader: fs,
1646
- pagesMobileModalFooter: xs
1647
- }, ii = (r) => {
1618
+ info: Yn,
1619
+ top: Gn,
1620
+ title: Wn,
1621
+ clear: Jn,
1622
+ activeClear: Xn,
1623
+ count: Kn,
1624
+ cart: Qn,
1625
+ empty: Zn,
1626
+ product: ts,
1627
+ products: es,
1628
+ image: ns,
1629
+ productInfo: ss,
1630
+ content: is,
1631
+ name: os,
1632
+ price: as,
1633
+ productButtons: cs,
1634
+ productButton: ls,
1635
+ productCount: rs,
1636
+ bottom: ds,
1637
+ subtotal: us,
1638
+ block: ms,
1639
+ shoppingCount: hs,
1640
+ total: ps,
1641
+ link: _s,
1642
+ userInfo: gs,
1643
+ pagesMobileModal: fs,
1644
+ pagesMobileModalContent: xs,
1645
+ pagesMobileModalHeader: js,
1646
+ pagesMobileModalFooter: bs
1647
+ }, ri = (r) => {
1648
1648
  const { shopping: s, signUp: e, isShowUserInfo: n = !0 } = r;
1649
1649
  return /* @__PURE__ */ t.jsxs("div", { className: y.buttons, children: [
1650
- s && /* @__PURE__ */ t.jsx(bs, {}),
1651
- n && /* @__PURE__ */ t.jsx(Ct, { signUp: e })
1650
+ s && /* @__PURE__ */ t.jsx(vs, {}),
1651
+ n && /* @__PURE__ */ t.jsx(St, { signUp: e })
1652
1652
  ] });
1653
- }, bs = () => {
1654
- const [r, s] = _.useState(!1), [e, n] = _.useState([]), { cart: i } = jt();
1653
+ }, vs = () => {
1654
+ const [r, s] = _.useState(!1), [e, n] = _.useState([]), { cart: i } = vt();
1655
1655
  function d(g) {
1656
1656
  var S;
1657
1657
  return !g || !(g != null && g.variants) ? !1 : (S = g.variants.find((c) => c.id === g.activeVariantId)) == null ? void 0 : S.subscriptionSettings;
@@ -1659,7 +1659,7 @@ const si = (r) => {
1659
1659
  const u = i.parts.length > 0 && e.length > 0 && !d(e[0]), [o, m] = _.useState(!1);
1660
1660
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1661
1661
  /* @__PURE__ */ t.jsxs(
1662
- z,
1662
+ H,
1663
1663
  {
1664
1664
  type: "Secondary",
1665
1665
  style: {
@@ -1681,7 +1681,7 @@ const si = (r) => {
1681
1681
  }
1682
1682
  ),
1683
1683
  r && /* @__PURE__ */ t.jsx(
1684
- vt,
1684
+ yt,
1685
1685
  {
1686
1686
  close: () => {
1687
1687
  m(!1), setTimeout(() => {
@@ -1690,7 +1690,7 @@ const si = (r) => {
1690
1690
  },
1691
1691
  withAnimation: !1,
1692
1692
  children: /* @__PURE__ */ t.jsx(
1693
- js,
1693
+ ys,
1694
1694
  {
1695
1695
  activeProducts: e,
1696
1696
  isCartNotEmpty: u,
@@ -1700,8 +1700,8 @@ const si = (r) => {
1700
1700
  }
1701
1701
  )
1702
1702
  ] });
1703
- }, js = (r) => {
1704
- const { activeProducts: s, isCartNotEmpty: e, isOpen: n } = r, { cart: i, reset: d, getTotalAndDiscount: u, updateQuantityOfProduct: o } = jt(), m = lt();
1703
+ }, ys = (r) => {
1704
+ const { activeProducts: s, isCartNotEmpty: e, isOpen: n } = r, { cart: i, reset: d, getTotalAndDiscount: u, updateQuantityOfProduct: o } = vt(), m = lt();
1705
1705
  function g(l) {
1706
1706
  m(l);
1707
1707
  }
@@ -1829,13 +1829,13 @@ const si = (r) => {
1829
1829
  u().total
1830
1830
  ] })
1831
1831
  ] }),
1832
- /* @__PURE__ */ t.jsx(z, { onClick: () => g("/checkout"), children: "Checkout" })
1832
+ /* @__PURE__ */ t.jsx(H, { onClick: () => g("/checkout"), children: "Checkout" })
1833
1833
  ] })
1834
- ] }) : /* @__PURE__ */ t.jsx(vs, {})
1834
+ ] }) : /* @__PURE__ */ t.jsx(Ns, {})
1835
1835
  ]
1836
1836
  }
1837
1837
  );
1838
- }, vs = () => /* @__PURE__ */ t.jsxs("div", { className: y.empty, children: [
1838
+ }, Ns = () => /* @__PURE__ */ t.jsxs("div", { className: y.empty, children: [
1839
1839
  /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
1840
1840
  f,
1841
1841
  {
@@ -1856,7 +1856,7 @@ const si = (r) => {
1856
1856
  }
1857
1857
  )
1858
1858
  ] })
1859
- ] }), Ct = ({ signUp: r, close: s }) => {
1859
+ ] }), St = ({ signUp: r, close: s }) => {
1860
1860
  const e = JSON.parse(localStorage.getItem("token") || "{}"), { data: n } = e, i = lt();
1861
1861
  function d(m) {
1862
1862
  window.location.pathname.includes("/admin/builder") || i(m);
@@ -1864,7 +1864,7 @@ const si = (r) => {
1864
1864
  if (!n)
1865
1865
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1866
1866
  /* @__PURE__ */ t.jsx(
1867
- z,
1867
+ H,
1868
1868
  {
1869
1869
  onClick: () => {
1870
1870
  d("/customer-dash"), s == null || s();
@@ -1877,7 +1877,7 @@ const si = (r) => {
1877
1877
  }
1878
1878
  ),
1879
1879
  r && /* @__PURE__ */ t.jsx(
1880
- z,
1880
+ H,
1881
1881
  {
1882
1882
  onClick: () => {
1883
1883
  d("/customer-dash"), s == null || s();
@@ -1894,7 +1894,7 @@ const si = (r) => {
1894
1894
  const [u, o] = _.useState("test-email@gmail.com");
1895
1895
  return _.useEffect(() => {
1896
1896
  (async () => {
1897
- const g = Tt(n);
1897
+ const g = qt(n);
1898
1898
  o(g.email);
1899
1899
  })();
1900
1900
  }, [n]), /* @__PURE__ */ t.jsx(
@@ -1907,13 +1907,13 @@ const si = (r) => {
1907
1907
  children: /* @__PURE__ */ t.jsx("div", { children: u || "test-email@gmail.com" })
1908
1908
  }
1909
1909
  );
1910
- }, ys = ({
1910
+ }, ks = ({
1911
1911
  children: r,
1912
1912
  logo: s,
1913
1913
  setIsOpen: e,
1914
1914
  signUp: n
1915
1915
  }) => {
1916
- const { setIsOpen: i } = Nt(), d = () => {
1916
+ const { setIsOpen: i } = kt(), d = () => {
1917
1917
  i(!1), setTimeout(() => {
1918
1918
  e(!1), i(!0);
1919
1919
  }, 300);
@@ -1927,7 +1927,7 @@ const si = (r) => {
1927
1927
  /* @__PURE__ */ t.jsxs("div", { className: y.pagesMobileModalHeader, children: [
1928
1928
  /* @__PURE__ */ t.jsx("div", { children: s }),
1929
1929
  /* @__PURE__ */ t.jsx(
1930
- z,
1930
+ H,
1931
1931
  {
1932
1932
  type: "Secondary",
1933
1933
  onClick: d,
@@ -1943,7 +1943,7 @@ const si = (r) => {
1943
1943
  ] }),
1944
1944
  /* @__PURE__ */ t.jsx("div", { className: y.pagesMobileModalContent, children: r }),
1945
1945
  /* @__PURE__ */ t.jsx("div", { className: y.pagesMobileModalFooter, children: /* @__PURE__ */ t.jsx(
1946
- Ct,
1946
+ St,
1947
1947
  {
1948
1948
  signUp: n,
1949
1949
  close: d
@@ -1952,16 +1952,16 @@ const si = (r) => {
1952
1952
  ]
1953
1953
  }
1954
1954
  );
1955
- }, oi = ({
1955
+ }, di = ({
1956
1956
  children: r,
1957
1957
  logo: s,
1958
1958
  signUp: e
1959
1959
  }) => {
1960
1960
  const [n, i] = _.useState(!1);
1961
1961
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1962
- /* @__PURE__ */ t.jsx(Ns, { setIsOpenModal: i }),
1963
- n && /* @__PURE__ */ t.jsx(vt, { close: () => i(!1), children: /* @__PURE__ */ t.jsx(
1964
- ys,
1962
+ /* @__PURE__ */ t.jsx(Is, { setIsOpenModal: i }),
1963
+ n && /* @__PURE__ */ t.jsx(yt, { close: () => i(!1), children: /* @__PURE__ */ t.jsx(
1964
+ ks,
1965
1965
  {
1966
1966
  logo: s,
1967
1967
  setIsOpen: i,
@@ -1970,10 +1970,10 @@ const si = (r) => {
1970
1970
  }
1971
1971
  ) })
1972
1972
  ] });
1973
- }, Ns = (r) => {
1973
+ }, Is = (r) => {
1974
1974
  const { setIsOpenModal: s } = r;
1975
1975
  return /* @__PURE__ */ t.jsx(
1976
- z,
1976
+ H,
1977
1977
  {
1978
1978
  type: "Secondary",
1979
1979
  style: {
@@ -1991,26 +1991,26 @@ const si = (r) => {
1991
1991
  )
1992
1992
  }
1993
1993
  );
1994
- }, ks = "_share_10urc_1", Is = "_modal_10urc_9", Cs = "_header_10urc_21", Ss = "_socials_10urc_31", ws = "_social_10urc_31", Bs = "_copy_10urc_41", $s = "_title_10urc_48", Ps = "_copyWrapper_10urc_54", Ms = "_copyText_10urc_63", Ts = "_copyTextMobile_10urc_76", qs = "_copyTextMiniMobile_10urc_95", tt = {
1995
- share: ks,
1996
- modal: Is,
1997
- header: Cs,
1998
- socials: Ss,
1999
- social: ws,
2000
- copy: Bs,
2001
- title: $s,
2002
- copyWrapper: Ps,
2003
- copyText: Ms,
2004
- copyTextMobile: Ts,
2005
- copyTextMiniMobile: qs
2006
- }, ai = ({ title: r = "Copy Product Link" }) => {
2007
- const { isOpenModal: s, setIsOpenModal: e } = kt();
1994
+ }, Cs = "_share_10urc_1", Ss = "_modal_10urc_9", ws = "_header_10urc_21", $s = "_socials_10urc_31", Bs = "_social_10urc_31", Ps = "_copy_10urc_41", Ms = "_title_10urc_48", Ts = "_copyWrapper_10urc_54", qs = "_copyText_10urc_63", As = "_copyTextMobile_10urc_76", Os = "_copyTextMiniMobile_10urc_95", tt = {
1995
+ share: Cs,
1996
+ modal: Ss,
1997
+ header: ws,
1998
+ socials: $s,
1999
+ social: Bs,
2000
+ copy: Ps,
2001
+ title: Ms,
2002
+ copyWrapper: Ts,
2003
+ copyText: qs,
2004
+ copyTextMobile: As,
2005
+ copyTextMiniMobile: Os
2006
+ }, ui = ({ title: r = "Copy Product Link" }) => {
2007
+ const { isOpenModal: s, setIsOpenModal: e } = It();
2008
2008
  function n() {
2009
2009
  e(!0);
2010
2010
  }
2011
2011
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2012
2012
  /* @__PURE__ */ t.jsx(
2013
- z,
2013
+ H,
2014
2014
  {
2015
2015
  className: tt.share,
2016
2016
  onClick: (i) => {
@@ -2027,10 +2027,10 @@ const si = (r) => {
2027
2027
  )
2028
2028
  }
2029
2029
  ),
2030
- s && /* @__PURE__ */ t.jsx(vt, { close: e, children: /* @__PURE__ */ t.jsx(As, { title: r }) })
2030
+ s && /* @__PURE__ */ t.jsx(yt, { close: e, children: /* @__PURE__ */ t.jsx(Es, { title: r }) })
2031
2031
  ] });
2032
- }, As = ({ title: r = "Copy Product Link" }) => {
2033
- const { setIsOpenModal: s } = kt(), { notification: e, setNotification: n } = qt(), { setIsOpen: i } = Nt(), d = window.location.href;
2032
+ }, Es = ({ title: r = "Copy Product Link" }) => {
2033
+ const { setIsOpenModal: s } = It(), { notification: e, setNotification: n } = At(), { setIsOpen: i } = kt(), d = window.location.href;
2034
2034
  function u() {
2035
2035
  navigator.clipboard.writeText(d), n({
2036
2036
  message: "Link copied to clipboard",
@@ -2065,7 +2065,7 @@ const si = (r) => {
2065
2065
  ] }),
2066
2066
  /* @__PURE__ */ t.jsxs("div", { className: tt.copyWrapper, children: [
2067
2067
  /* @__PURE__ */ t.jsxs(
2068
- z,
2068
+ H,
2069
2069
  {
2070
2070
  type: "Secondary",
2071
2071
  onClick: u,
@@ -2080,7 +2080,7 @@ const si = (r) => {
2080
2080
  }
2081
2081
  ),
2082
2082
  /* @__PURE__ */ t.jsx(
2083
- z,
2083
+ H,
2084
2084
  {
2085
2085
  type: "Secondary",
2086
2086
  onClick: u,
@@ -2091,13 +2091,13 @@ const si = (r) => {
2091
2091
  ]
2092
2092
  }
2093
2093
  );
2094
- }, Os = "_accordion_1s1lq_1", Es = "_header_1s1lq_9", Rs = "_icon_1s1lq_18", Ls = "_open_1s1lq_21", Ds = "_content_1s1lq_25", nt = {
2095
- accordion: Os,
2096
- header: Es,
2097
- icon: Rs,
2098
- open: Ls,
2099
- content: Ds
2100
- }, ci = ({ title: r, content: s, defaultOpen: e = !1 }) => {
2094
+ }, Rs = "_accordion_1s1lq_1", Ds = "_header_1s1lq_9", Ls = "_icon_1s1lq_18", zs = "_open_1s1lq_21", Us = "_content_1s1lq_25", nt = {
2095
+ accordion: Rs,
2096
+ header: Ds,
2097
+ icon: Ls,
2098
+ open: zs,
2099
+ content: Us
2100
+ }, mi = ({ title: r, content: s, defaultOpen: e = !1 }) => {
2101
2101
  const [n, i] = _.useState(e), [d, u] = _.useState(0), o = _.useRef(null), m = () => {
2102
2102
  i(!n);
2103
2103
  };
@@ -2125,7 +2125,7 @@ const si = (r) => {
2125
2125
  }
2126
2126
  )
2127
2127
  ] });
2128
- }, li = ({ children: r, path: s, className: e, target: n = "_self", id: i }) => {
2128
+ }, hi = ({ children: r, path: s, className: e, target: n = "_self", id: i }) => {
2129
2129
  if (window.location.pathname.includes("/admin/builder"))
2130
2130
  return /* @__PURE__ */ t.jsx(
2131
2131
  "div",
@@ -2151,12 +2151,12 @@ const si = (r) => {
2151
2151
  children: r
2152
2152
  }
2153
2153
  );
2154
- }, Hs = "_buttonsBlock_1b2rb_1", Us = "_slideUp_1b2rb_1", zs = {
2154
+ }, Hs = "_buttonsBlock_1b2rb_1", Fs = "_slideUp_1b2rb_1", Vs = {
2155
2155
  buttonsBlock: Hs,
2156
- slideUp: Us
2157
- }, ri = () => /* @__PURE__ */ t.jsxs("div", { className: zs.buttonsBlock, children: [
2156
+ slideUp: Fs
2157
+ }, pi = () => /* @__PURE__ */ t.jsxs("div", { className: Vs.buttonsBlock, children: [
2158
2158
  /* @__PURE__ */ t.jsx(
2159
- z,
2159
+ H,
2160
2160
  {
2161
2161
  type: "Primary",
2162
2162
  style: {
@@ -2165,13 +2165,52 @@ const si = (r) => {
2165
2165
  children: "Add to Cart"
2166
2166
  }
2167
2167
  ),
2168
- /* @__PURE__ */ t.jsx(z, { type: "Secondary", children: "Buy" })
2169
- ] }), Fs = "_wrapper_st58d_1", Vs = "_label_st58d_10", Ys = "_textarea_st58d_18", Gs = "_length_st58d_33", ct = {
2170
- wrapper: Fs,
2171
- label: Vs,
2172
- textarea: Ys,
2173
- length: Gs
2174
- }, di = (r) => {
2168
+ /* @__PURE__ */ t.jsx(H, { type: "Secondary", children: "Buy" })
2169
+ ] }), Ys = "_wrapper_27wzz_1", Gs = "_logo_27wzz_8", Ws = "_info_27wzz_12", dt = {
2170
+ wrapper: Ys,
2171
+ logo: Gs,
2172
+ info: Ws
2173
+ }, _i = ({ date: r }) => {
2174
+ const { general: s } = Ot();
2175
+ if (!s) return /* @__PURE__ */ t.jsx(t.Fragment, {});
2176
+ function e(n) {
2177
+ const i = new Date(n), d = {
2178
+ month: "short",
2179
+ day: "2-digit",
2180
+ year: "numeric",
2181
+ hour: "2-digit",
2182
+ minute: "2-digit",
2183
+ hour12: !1
2184
+ };
2185
+ return i.toLocaleDateString("en-US", d);
2186
+ }
2187
+ return /* @__PURE__ */ t.jsxs("div", { className: dt.wrapper, children: [
2188
+ /* @__PURE__ */ t.jsx("div", { className: dt.logo, children: s.info.logo ? /* @__PURE__ */ t.jsx(
2189
+ "img",
2190
+ {
2191
+ src: `https://imagedelivery.net/${s.info.logo.cfId}/w=500,h=500`,
2192
+ alt: "image",
2193
+ style: { objectFit: "contain", width: "48px", height: "48px" }
2194
+ }
2195
+ ) : /* @__PURE__ */ t.jsx(
2196
+ f,
2197
+ {
2198
+ name: "Image",
2199
+ width: 48,
2200
+ height: 48
2201
+ }
2202
+ ) }),
2203
+ /* @__PURE__ */ t.jsxs("div", { className: dt.info, children: [
2204
+ /* @__PURE__ */ t.jsx("h3", { id: "h4", children: s.info.name }),
2205
+ /* @__PURE__ */ t.jsx("p", { id: "p", children: e(r) })
2206
+ ] })
2207
+ ] });
2208
+ }, Js = "_wrapper_st58d_1", Xs = "_label_st58d_10", Ks = "_textarea_st58d_18", Qs = "_length_st58d_33", ct = {
2209
+ wrapper: Js,
2210
+ label: Xs,
2211
+ textarea: Ks,
2212
+ length: Qs
2213
+ }, gi = (r) => {
2175
2214
  const {
2176
2215
  onChange: s,
2177
2216
  label: e,
@@ -2214,40 +2253,41 @@ const si = (r) => {
2214
2253
  ] });
2215
2254
  };
2216
2255
  export {
2217
- ci as Accordion,
2218
- Ns as BurgerMenuButton,
2219
- z as Button,
2220
- hn as ButtonTypeSettings,
2221
- ei as ButtonsSettings,
2222
- Ks as CategorySettings,
2223
- wt as ChooseImage,
2224
- hi as ChooseImageModal,
2225
- vs as EmptyCart,
2226
- ti as FormSettings,
2227
- ii as HeaderButtons,
2256
+ mi as Accordion,
2257
+ Is as BurgerMenuButton,
2258
+ H as Button,
2259
+ _n as ButtonTypeSettings,
2260
+ ai as ButtonsSettings,
2261
+ si as CategorySettings,
2262
+ $t as ChooseImage,
2263
+ ji as ChooseImageModal,
2264
+ Ns as EmptyCart,
2265
+ oi as FormSettings,
2266
+ ri as HeaderButtons,
2228
2267
  f as Icon,
2229
- dt as InputSettings,
2230
- Mt as InputUI,
2231
- pi as ItemsSettings,
2232
- Qs as LayoutSettings,
2233
- li as Link,
2234
- ni as ListingSelector,
2235
- _i as Loader,
2236
- vt as Modal,
2237
- oi as PagesMobileMenu,
2238
- ys as PagesMobileModal,
2239
- Zs as PagesSettings,
2240
- ri as ProductCardButtons,
2241
- si as ProductOptions,
2242
- yt as RangeSelector,
2268
+ ut as InputSettings,
2269
+ Tt as InputUI,
2270
+ bi as ItemsSettings,
2271
+ ni as LayoutSettings,
2272
+ hi as Link,
2273
+ ci as ListingSelector,
2274
+ vi as Loader,
2275
+ _i as MetaInfoPost,
2276
+ yt as Modal,
2277
+ di as PagesMobileMenu,
2278
+ ks as PagesMobileModal,
2279
+ ii as PagesSettings,
2280
+ pi as ProductCardButtons,
2281
+ li as ProductOptions,
2282
+ Nt as RangeSelector,
2243
2283
  at as Select,
2244
- ai as ShareLink,
2245
- bs as ShoppingButton,
2246
- js as ShoppingModalCart,
2284
+ ui as ShareLink,
2285
+ vs as ShoppingButton,
2286
+ ys as ShoppingModalCart,
2247
2287
  it as Switch,
2248
- gi as TextSettings,
2249
- fi as TextareaSettings,
2250
- di as TextareaUI,
2251
- xi as TypesText,
2252
- Ct as UserInfo
2288
+ yi as TextSettings,
2289
+ Ni as TextareaSettings,
2290
+ gi as TextareaUI,
2291
+ ki as TypesText,
2292
+ St as UserInfo
2253
2293
  };