@billgangcom/theme-lib 1.125.0 → 1.125.2
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/{builder-BK0JYGiC.js → builder-D4C6PmkQ.js} +8 -6
- package/dist/{builder-DG_YlZHR.cjs → builder-IE-TldJW.cjs} +2 -2
- package/dist/{builder-components-CPKR2dhR.cjs → builder-components-Bx0B8Xbl.cjs} +1 -1
- package/dist/{builder-components-g5oMQefu.js → builder-components-DF-pxQ67.js} +4 -4
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +23 -23
- package/dist/{charge-CYaXl_RD.cjs → charge-B7qtyl_A.cjs} +38 -38
- package/dist/{charge-CV4AQEC_.js → charge-CvfbmQKe.js} +3407 -3405
- package/dist/{checkout-Bb1a58D4.cjs → checkout-7k0FX8sH.cjs} +1 -1
- package/dist/{checkout-B9qJmekA.js → checkout-DKbuYRqE.js} +5 -5
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-DDxrB9fg.cjs → index-B8LtM-mS.cjs} +1 -1
- package/dist/{index-B4NVLzvB.js → index-BVpXTGBU.js} +5 -5
- package/dist/{index-DkwoNeqf.js → index-Bc_FuD45.js} +2 -2
- package/dist/{index-Cc--vowQ.js → index-BkWS0fQs.js} +1 -1
- package/dist/{index-pDrfjE_u.cjs → index-Chu2jldl.cjs} +1 -1
- package/dist/{index-DmDPPcot.js → index-CuLcq4K3.js} +5 -5
- package/dist/{index-BhSez1jo.js → index-DKhQPC58.js} +5 -5
- package/dist/{index-CbF_oFj_.cjs → index-DZJ4aogA.cjs} +1 -1
- package/dist/{index-C01pM2yU.cjs → index-DeXjeOkY.cjs} +1 -1
- package/dist/{index-EY0xBilX.cjs → index-HEKGXBHG.cjs} +1 -1
- package/dist/{index-oTiFfxGm.cjs → index-O9YKai0D.cjs} +1 -1
- package/dist/{index-DVBnv_Xy.js → index-qJzU-4nk.js} +5 -5
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +6 -6
- package/dist/{order-D5jY3dbd.cjs → order-Bl4MCdyW.cjs} +1 -1
- package/dist/{order-Dzc05Ain.js → order-Cm6-9Evn.js} +5 -5
- package/dist/{subscription-DbBXmikF.cjs → subscription-BEwqOnCD.cjs} +1 -1
- package/dist/{subscription-BMypjr4e.js → subscription-CXZELboU.js} +5 -5
- package/dist/{ticket-xoHN8vwB.cjs → ticket-BZCwHmQp.cjs} +2 -2
- package/dist/{ticket-DE_zreWv.js → ticket-Z42Cu5qV.js} +44 -43
- package/dist/{top-up-CZnSdOQk.cjs → top-up-AxnpAQGp.cjs} +1 -1
- package/dist/{top-up-DaJ8rpm3.js → top-up-B7FVf6e8.js} +5 -5
- package/dist/{ui-components-BQc66P4w.js → ui-components-CS5hIo75.js} +4 -4
- package/dist/{ui-components-1V4PUnGv.cjs → ui-components-kqtSZ6PL.cjs} +1 -1
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1 -1
- package/dist/{validation-D5oSu3j3.cjs → validation-BKEag3Kv.cjs} +1 -1
- package/dist/{validation-DznfDY3X.js → validation-CTTiobjU.js} +5 -5
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
var se = Object.defineProperty;
|
|
2
2
|
var Ie = (n, r, e) => r in n ? se(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
3
|
-
var
|
|
3
|
+
var N = (n, r, e) => Ie(n, typeof r != "symbol" ? r + "" : r, e);
|
|
4
4
|
import { jsx as a, jsxs as h, Fragment as ue } from "react/jsx-runtime";
|
|
5
5
|
import g from "react";
|
|
6
|
-
import { j as Q, M as Z, r as ee, ab as de, Q as pe, e as W, v as G, O as ge, p as $, z as U, c as oe, a as ne, b as q, f as R, ac as he, u as Se, X as re, K as me } from "./builder-
|
|
7
|
-
import { y as Ce, N as we, P as fe, z as ye, B as
|
|
8
|
-
import { e as v, g as V, E as j, k as Fe, I as K, M as De } from "./ui-components-
|
|
9
|
-
import { R as te, a as ce, b as ae, c as Re } from "./builder-components-
|
|
6
|
+
import { j as Q, M as Z, r as ee, ab as de, Q as pe, e as W, v as G, O as ge, p as $, z as U, c as oe, a as ne, b as q, f as R, ac as he, u as Se, X as re, K as me } from "./builder-D4C6PmkQ.js";
|
|
7
|
+
import { y as Ce, N as we, P as fe, z as ye, B as H, D as be, E as ke, F as Le, u as Te, H as Ae, Q as Pe, U as Be } from "./charge-CvfbmQKe.js";
|
|
8
|
+
import { e as v, g as V, E as j, k as Fe, I as K, M as De } from "./ui-components-CS5hIo75.js";
|
|
9
|
+
import { R as te, a as ce, b as ae, c as Re } from "./builder-components-DF-pxQ67.js";
|
|
10
10
|
import "react-dom";
|
|
11
|
-
import "./checkout-
|
|
12
|
-
const ve = "_wrapper_1vt13_1", Me = "_bg_1vt13_10", xe = "_main_1vt13_32",
|
|
11
|
+
import "./checkout-DKbuYRqE.js";
|
|
12
|
+
const ve = "_wrapper_1vt13_1", Me = "_bg_1vt13_10", xe = "_main_1vt13_32", Ne = "_noAnimation_1vt13_37", He = "_loading_1vt13_51", Ee = "_loadingContent_1vt13_61", Ue = "_loader_1vt13_66", B = {
|
|
13
13
|
wrapper: ve,
|
|
14
14
|
bg: Me,
|
|
15
15
|
main: xe,
|
|
16
|
-
noAnimation:
|
|
17
|
-
loading:
|
|
16
|
+
noAnimation: Ne,
|
|
17
|
+
loading: He,
|
|
18
18
|
loadingContent: Ee,
|
|
19
19
|
loader: Ue
|
|
20
20
|
}, Oe = async (n, r) => {
|
|
@@ -68,10 +68,10 @@ const ve = "_wrapper_1vt13_1", Me = "_bg_1vt13_10", xe = "_main_1vt13_32", He =
|
|
|
68
68
|
/* @__PURE__ */ a(fe, { title: "Tickets" }),
|
|
69
69
|
/* @__PURE__ */ h("div", { className: T.tableContainer, children: [
|
|
70
70
|
/* @__PURE__ */ h(ye, { className: T.ticketsTable, children: [
|
|
71
|
-
/* @__PURE__ */ a(
|
|
72
|
-
/* @__PURE__ */ a(
|
|
73
|
-
/* @__PURE__ */ a(
|
|
74
|
-
/* @__PURE__ */ a(
|
|
71
|
+
/* @__PURE__ */ a(H, { className: T.tableItem, children: "TICKET ID" }),
|
|
72
|
+
/* @__PURE__ */ a(H, { className: T.tableItem, children: "LAST MESSAGE" }),
|
|
73
|
+
/* @__PURE__ */ a(H, { className: T.tableItem, children: "CREATED" }),
|
|
74
|
+
/* @__PURE__ */ a(H, { className: T.tableItem, children: "STATUS" }),
|
|
75
75
|
u && (n == null ? void 0 : n.map((m) => /* @__PURE__ */ a(
|
|
76
76
|
be,
|
|
77
77
|
{
|
|
@@ -3258,9 +3258,9 @@ const Go = [
|
|
|
3258
3258
|
};
|
|
3259
3259
|
class Ve {
|
|
3260
3260
|
constructor() {
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3261
|
+
N(this, "observer", null);
|
|
3262
|
+
N(this, "callbacks", /* @__PURE__ */ new Map());
|
|
3263
|
+
N(this, "handleWindowResize", () => {
|
|
3264
3264
|
this.callbacks.forEach((r, e) => {
|
|
3265
3265
|
const o = e.getBoundingClientRect().width;
|
|
3266
3266
|
r.forEach((i) => i(o));
|
|
@@ -3419,21 +3419,22 @@ const zo = () => {
|
|
|
3419
3419
|
if (L) {
|
|
3420
3420
|
const { data: l } = L;
|
|
3421
3421
|
if (l.seo && l.seo.pageTitle ? document.title = l.seo.pageTitle : Y[n] ? document.title = Y[n] : l.products.length > 0 ? document.title = `Product | ${l.products[0].name}` : l.fullPosts.length > 0 && (document.title = `Post | ${l.fullPosts[0].title}`), l.preserveContent) {
|
|
3422
|
-
const
|
|
3422
|
+
const f = {
|
|
3423
3423
|
order: [...(s == null ? void 0 : s.order) ?? [], ...l.layout.order],
|
|
3424
3424
|
data: {
|
|
3425
3425
|
...s == null ? void 0 : s.data,
|
|
3426
3426
|
...l.layout.data
|
|
3427
3427
|
}
|
|
3428
3428
|
};
|
|
3429
|
-
u(
|
|
3429
|
+
u(f);
|
|
3430
3430
|
} else
|
|
3431
3431
|
u(l.layout);
|
|
3432
3432
|
const M = l.listings.filter(
|
|
3433
|
-
(
|
|
3433
|
+
(f) => f.type === "PRODUCT" || f.type === "GROUP"
|
|
3434
3434
|
), F = M && M.length > 0 ? l.listings : [...C.listings ?? [], ...l.listings];
|
|
3435
3435
|
if (l.preserveContent) {
|
|
3436
|
-
|
|
3436
|
+
console.log("FINAL PRODUCTS: ", [...(o == null ? void 0 : o.products) ?? [], ...l.products]);
|
|
3437
|
+
const f = {
|
|
3437
3438
|
...C,
|
|
3438
3439
|
products: [...(o == null ? void 0 : o.products) ?? [], ...l.products],
|
|
3439
3440
|
reviews: [...(o == null ? void 0 : o.reviews) ?? [], ...l.reviews],
|
|
@@ -3443,11 +3444,11 @@ const zo = () => {
|
|
|
3443
3444
|
fullPosts: [...(o == null ? void 0 : o.fullPosts) ?? [], ...l.fullPosts],
|
|
3444
3445
|
posts: [...(o == null ? void 0 : o.posts) ?? [], ...l.posts],
|
|
3445
3446
|
preserveContent: l.preserveContent,
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3447
|
+
vouches: [...(o == null ? void 0 : o.vouches) ?? [], ...l.vouches ?? []],
|
|
3448
|
+
liveStats: [...(o == null ? void 0 : o.liveStats) ?? [], ...l.liveStats ?? []],
|
|
3449
|
+
listings: F
|
|
3449
3450
|
};
|
|
3450
|
-
i(
|
|
3451
|
+
console.log("NEW PAGE CONTEXT: ", f), i(f);
|
|
3451
3452
|
} else
|
|
3452
3453
|
i({
|
|
3453
3454
|
...C,
|
|
@@ -3460,8 +3461,8 @@ const zo = () => {
|
|
|
3460
3461
|
posts: l.posts,
|
|
3461
3462
|
preserveContent: l.preserveContent,
|
|
3462
3463
|
listings: F,
|
|
3463
|
-
vouches: l.vouches,
|
|
3464
|
-
liveStats: l.liveStats
|
|
3464
|
+
vouches: l.vouches ?? [],
|
|
3465
|
+
liveStats: l.liveStats ?? []
|
|
3465
3466
|
});
|
|
3466
3467
|
k(l.products);
|
|
3467
3468
|
}
|
|
@@ -3959,7 +3960,7 @@ const co = "_wrapper_ukunw_1", ao = "_ticketContainer_ukunw_23", io = "_title_uk
|
|
|
3959
3960
|
imageModal: Po,
|
|
3960
3961
|
imageModalClose: Bo
|
|
3961
3962
|
}, Fo = () => {
|
|
3962
|
-
const n = window.location.pathname.split("/"), r = n[n.length - 1], e = n[n.length - 2], [o, i] = g.useState(!0), [t, c] = g.useState(null), [s, u] = g.useState(""), [m, k] = g.useState(null), [C, w] = g.useState(null), [p, A] = g.useState(null), S = g.useRef(null), { executeRecaptcha: L } = Ae(), { isAntistock: l } = U(), M = re(), { setIsOpen: F } = me(),
|
|
3963
|
+
const n = window.location.pathname.split("/"), r = n[n.length - 1], e = n[n.length - 2], [o, i] = g.useState(!0), [t, c] = g.useState(null), [s, u] = g.useState(""), [m, k] = g.useState(null), [C, w] = g.useState(null), [p, A] = g.useState(null), S = g.useRef(null), { executeRecaptcha: L } = Ae(), { isAntistock: l } = U(), M = re(), { setIsOpen: F } = me(), f = (t == null ? void 0 : t.status) === ie.CLOSED, z = g.useCallback(() => {
|
|
3963
3964
|
var I;
|
|
3964
3965
|
(I = S.current) == null || I.scrollIntoView({ behavior: "smooth" });
|
|
3965
3966
|
}, []), x = g.useCallback(async () => {
|
|
@@ -3978,9 +3979,9 @@ const co = "_wrapper_ukunw_1", ao = "_ticketContainer_ukunw_23", io = "_title_uk
|
|
|
3978
3979
|
const X = async () => {
|
|
3979
3980
|
const I = await L();
|
|
3980
3981
|
if (!e || !r || !I || !s.trim()) return;
|
|
3981
|
-
const b = (m == null ? void 0 : m.map((
|
|
3982
|
-
imageId: parseInt(
|
|
3983
|
-
path:
|
|
3982
|
+
const b = (m == null ? void 0 : m.map((y) => ({
|
|
3983
|
+
imageId: parseInt(y.id),
|
|
3984
|
+
path: y.url
|
|
3984
3985
|
}))) || [], P = {
|
|
3985
3986
|
content: s,
|
|
3986
3987
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -3990,9 +3991,9 @@ const co = "_wrapper_ukunw_1", ao = "_ticketContainer_ukunw_23", io = "_title_uk
|
|
|
3990
3991
|
images: b
|
|
3991
3992
|
};
|
|
3992
3993
|
c(
|
|
3993
|
-
(
|
|
3994
|
-
...
|
|
3995
|
-
messages: [...
|
|
3994
|
+
(y) => y ? {
|
|
3995
|
+
...y,
|
|
3996
|
+
messages: [...y.messages, P]
|
|
3996
3997
|
} : null
|
|
3997
3998
|
), w(P.id), u(""), k(null), setTimeout(() => {
|
|
3998
3999
|
z();
|
|
@@ -4007,14 +4008,14 @@ const co = "_wrapper_ukunw_1", ao = "_ticketContainer_ukunw_23", io = "_title_uk
|
|
|
4007
4008
|
}, 1e4);
|
|
4008
4009
|
}
|
|
4009
4010
|
}, le = (I) => {
|
|
4010
|
-
const b = /* @__PURE__ */ new Date(), P = new Date(I),
|
|
4011
|
-
if (
|
|
4011
|
+
const b = /* @__PURE__ */ new Date(), P = new Date(I), y = Math.floor((b.getTime() - P.getTime()) / 1e3);
|
|
4012
|
+
if (y < 60)
|
|
4012
4013
|
return "just now";
|
|
4013
|
-
if (
|
|
4014
|
-
const D = Math.floor(
|
|
4014
|
+
if (y < 3600) {
|
|
4015
|
+
const D = Math.floor(y / 60);
|
|
4015
4016
|
return `${D} minute${D > 1 ? "s" : ""} ago`;
|
|
4016
|
-
} else if (
|
|
4017
|
-
const D = Math.floor(
|
|
4017
|
+
} else if (y < 10800) {
|
|
4018
|
+
const D = Math.floor(y / 3600);
|
|
4018
4019
|
return `${D} hour${D > 1 ? "s" : ""} ago`;
|
|
4019
4020
|
} else return P.getFullYear() === b.getFullYear() ? P.toLocaleDateString("en-US", {
|
|
4020
4021
|
month: "short",
|
|
@@ -4097,7 +4098,7 @@ const co = "_wrapper_ukunw_1", ao = "_ticketContainer_ukunw_23", io = "_title_uk
|
|
|
4097
4098
|
/* @__PURE__ */ a("div", { ref: S })
|
|
4098
4099
|
] }),
|
|
4099
4100
|
/* @__PURE__ */ h("div", { className: d.input, children: [
|
|
4100
|
-
!
|
|
4101
|
+
!f && /* @__PURE__ */ a(
|
|
4101
4102
|
Fe,
|
|
4102
4103
|
{
|
|
4103
4104
|
images: m,
|
|
@@ -4113,12 +4114,12 @@ const co = "_wrapper_ukunw_1", ao = "_ticketContainer_ukunw_23", io = "_title_uk
|
|
|
4113
4114
|
/* @__PURE__ */ a(
|
|
4114
4115
|
"textarea",
|
|
4115
4116
|
{
|
|
4116
|
-
disabled:
|
|
4117
|
+
disabled: f,
|
|
4117
4118
|
className: R(d.textarea, {
|
|
4118
4119
|
[d.textareaAntistock]: l
|
|
4119
4120
|
}),
|
|
4120
4121
|
value: s,
|
|
4121
|
-
placeholder:
|
|
4122
|
+
placeholder: f ? "The ticket has been closed. Need further assistance? Please submit a new request." : l ? "Type a message..." : "What worries you?",
|
|
4122
4123
|
onChange: (I) => u(I.target.value),
|
|
4123
4124
|
onKeyDown: (I) => {
|
|
4124
4125
|
I.key === "Enter" && !I.shiftKey && (I.preventDefault(), X());
|
|
@@ -4130,7 +4131,7 @@ const co = "_wrapper_ukunw_1", ao = "_ticketContainer_ukunw_23", io = "_title_uk
|
|
|
4130
4131
|
{
|
|
4131
4132
|
onClick: X,
|
|
4132
4133
|
className: R(d.button, {
|
|
4133
|
-
[d.disabled]:
|
|
4134
|
+
[d.disabled]: f
|
|
4134
4135
|
}),
|
|
4135
4136
|
children: /* @__PURE__ */ a(K, { name: "PaperPlaneRight" })
|
|
4136
4137
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),l=require("./builder-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),l=require("./builder-IE-TldJW.cjs"),c=require("react"),t=require("./charge-B7qtyl_A.cjs"),d=require("./ui-components-kqtSZ6PL.cjs");require("./builder-components-Bx0B8Xbl.cjs");require("react-dom");require("./ticket-BZCwHmQp.cjs");const u="_topUpContainer_1pag6_1",f="_formWrapper_1pag6_15",h="_header_1pag6_29",g="_footer_1pag6_82",_="_wrapper_1pag6_105",r={topUpContainer:u,formWrapper:f,header:h,footer:g,wrapper:_},m=()=>{const{gatewaysDetail:o,setGatewaysDetail:n,balanceSettings:e,setBalanceSettings:i}=l.useCustomerDashboardStore();return c.useEffect(()=>{!o&&e&&(async()=>{const s=await t.getGatewaysDetail(e!=null&&e.isEnabled?(e==null?void 0:e.topUpSettings.gateways)||[]:[]);n(s)})()},[o,e]),c.useEffect(()=>{e||(async()=>{const s=await t.getBalanceSettings();i(s)})()},[e]),a.jsxs("div",{className:r.wrapper,children:[a.jsx(t.CheckoutHeader,{className:r.header}),a.jsx("div",{className:r.topUpContainer,children:e?a.jsx("div",{className:r.formWrapper,children:a.jsx(t.BalanceModal,{isModal:!1})}):a.jsx(d.Loader,{})}),a.jsx("div",{className:r.footer,children:a.jsx(t.CheckoutFooter,{})})]})};exports.TopUpBalance=m;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { O as f } from "./builder-
|
|
2
|
+
import { O as f } from "./builder-D4C6PmkQ.js";
|
|
3
3
|
import s from "react";
|
|
4
|
-
import { i as l, W as m, l as d, g as _, x as h } from "./charge-
|
|
5
|
-
import { e as g } from "./ui-components-
|
|
6
|
-
import "./builder-components-
|
|
4
|
+
import { i as l, W as m, l as d, g as _, x as h } from "./charge-CvfbmQKe.js";
|
|
5
|
+
import { e as g } from "./ui-components-CS5hIo75.js";
|
|
6
|
+
import "./builder-components-DF-pxQ67.js";
|
|
7
7
|
import "react-dom";
|
|
8
|
-
import "./ticket-
|
|
8
|
+
import "./ticket-Z42Cu5qV.js";
|
|
9
9
|
const w = "_topUpContainer_1pag6_1", y = "_formWrapper_1pag6_15", u = "_header_1pag6_29", C = "_footer_1pag6_82", D = "_wrapper_1pag6_105", t = {
|
|
10
10
|
topUpContainer: w,
|
|
11
11
|
formWrapper: y,
|
|
@@ -3,11 +3,11 @@ var un = (e, n, o) => n in e ? In(e, n, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var Ot = (e, n, o) => un(e, typeof n != "symbol" ? n + "" : n, o);
|
|
4
4
|
import { jsx as t, jsxs as d, Fragment as Y } from "react/jsx-runtime";
|
|
5
5
|
import b, { useState as st, useRef as ft, useCallback as Xe, useEffect as gn, createElement as yt, PureComponent as fn } from "react";
|
|
6
|
-
import { f as O, ad as lt, z as Ne, j as Zt, r as en, m as _t, ae as tn, K as Ae, v as me, af as Dt, ag as Ft, b as Ye, l as _n, e as Ge, p as St, W as Ce, a5 as Sn, N as bn, ah as Cn, ai as nn, k as yn } from "./builder-
|
|
7
|
-
import { X as vn, Y as wn, E as kn, Z as Tn, u as We, I as Pn } from "./charge-
|
|
8
|
-
import { u as Je, d as Qe, D as Ze, e as et, v as tt, f as nt, g as ot, C as rt, F as Mt } from "./builder-components-
|
|
6
|
+
import { f as O, ad as lt, z as Ne, j as Zt, r as en, m as _t, ae as tn, K as Ae, v as me, af as Dt, ag as Ft, b as Ye, l as _n, e as Ge, p as St, W as Ce, a5 as Sn, N as bn, ah as Cn, ai as nn, k as yn } from "./builder-D4C6PmkQ.js";
|
|
7
|
+
import { X as vn, Y as wn, E as kn, Z as Tn, u as We, I as Pn } from "./charge-CvfbmQKe.js";
|
|
8
|
+
import { u as Je, d as Qe, D as Ze, e as et, v as tt, f as nt, g as ot, C as rt, F as Mt } from "./builder-components-DF-pxQ67.js";
|
|
9
9
|
import Nn, { createPortal as An } from "react-dom";
|
|
10
|
-
import { s as Me, g as Ln, u as xn } from "./ticket-
|
|
10
|
+
import { s as Me, g as Ln, u as xn } from "./ticket-Z42Cu5qV.js";
|
|
11
11
|
const Bn = "_wrapper_5w9s8_1", Dn = {
|
|
12
12
|
wrapper: Bn
|
|
13
13
|
}, Eh = (e) => {
|