@billgangcom/theme-lib 1.124.3 → 1.124.7
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-B_dkm02v.js → builder-BGSGUvbw.js} +15 -15
- package/dist/{builder-Dk_MBUqd.cjs → builder-BoZFTb7G.cjs} +2 -2
- package/dist/builder-components-Ce-GvvbU.cjs +5 -0
- package/dist/{builder-components-l43cXoO5.js → builder-components-uIH6kfbb.js} +3649 -3641
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +31 -31
- package/dist/{charge-BU-Az7UN.js → charge-BlJi0xCO.js} +17628 -17596
- package/dist/{charge-CcS0C6Hj.cjs → charge-w4kIp324.cjs} +69 -69
- package/dist/{checkout-ngWZwoPX.js → checkout-B32zo5ao.js} +5 -5
- package/dist/{checkout-BLgmgd9k.cjs → checkout-CtUeXuTx.cjs} +1 -1
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-DCYg5lir.cjs → index-B3eXZddH.cjs} +1 -1
- package/dist/{index-B9Rq5d0u.js → index-BNJDqT-0.js} +5 -5
- package/dist/{index-Bn9YCw-R.cjs → index-BRdmeZZl.cjs} +1 -1
- package/dist/{index-CPnT643z.cjs → index-BTyOlaxG.cjs} +1 -1
- package/dist/{index-gEVhujlj.js → index-BuxbXdLp.js} +5 -5
- package/dist/{index-BlWsjWZ3.js → index-CoCTJ62P.js} +10 -10
- package/dist/{index-Doa1gQPZ.js → index-DAKSB_F0.js} +2 -2
- package/dist/{index-Cg7DJNHO.cjs → index-RtcNex9r.cjs} +1 -1
- package/dist/{index-ByBe0n_t.cjs → index-SyO84kfM.cjs} +1 -1
- package/dist/{index-D82GsMsp.js → index-TvJTXZf9.js} +1 -1
- package/dist/{index-0PqQaCZ4.cjs → index-fnVhuwC_.cjs} +1 -1
- package/dist/{index-D78O6F0T.js → index-z_-C0z77.js} +5 -5
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +18 -18
- package/dist/{order-BgjNH9DK.cjs → order-Amk-Jg5s.cjs} +1 -1
- package/dist/{order-CSPUNQL8.js → order-Nvdr1Xpq.js} +9 -9
- package/dist/src/assets/storefront-icons/index.d.ts +3 -0
- package/dist/src/storefront/components/PaymentMethod/model.d.ts +2 -1
- package/dist/src/storefront/models/payment.d.ts +2 -1
- package/dist/src/ui/ChooseImage/api/index.d.ts +8 -1
- package/dist/style.css +1 -1
- package/dist/{subscription-Cv67YuMc.js → subscription-BtN0ZLhW.js} +8 -8
- package/dist/{subscription-DkAqKLzt.cjs → subscription-Dke5SI7x.cjs} +1 -1
- package/dist/{ticket-BMS8VibT.js → ticket-DR1de6DJ.js} +83 -83
- package/dist/ticket-DpkxSuxR.cjs +108 -0
- package/dist/{top-up-DzH6R08c.cjs → top-up-Cma1nW3z.cjs} +1 -1
- package/dist/{top-up-CTo-WorN.js → top-up-D2COqVbe.js} +5 -5
- package/dist/{ui-components-BHKWyvO1.js → ui-components-BQyCaYte.js} +2017 -2001
- package/dist/ui-components-CaI7HLsm.cjs +1 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1 -1
- package/dist/{validation-DTFAUmYS.js → validation-BBKKW104.js} +7 -7
- package/dist/{validation-B7tkrQWi.cjs → validation-CYN2gbtD.cjs} +1 -1
- package/package.json +1 -1
- package/dist/builder-components-CHl1cc7Z.cjs +0 -5
- package/dist/ticket-DNKLLT6h.cjs +0 -108
- package/dist/ui-components-CQk_SRR5.cjs +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as e, Fragment as d, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import a from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { p as w, N, P as j, S as D, g as I, i as x, q as E, l as f, r as G, A as T, s as k, t as B, v as O, w as A, x as L } from "./charge-
|
|
5
|
-
import { e as M, g as F } from "./ui-components-
|
|
6
|
-
import "./builder-components-
|
|
3
|
+
import { Q as C, O as _, a8 as y, a9 as v, K as P } from "./builder-BGSGUvbw.js";
|
|
4
|
+
import { p as w, N, P as j, S as D, g as I, i as x, q as E, l as f, r as G, A as T, s as k, t as B, v as O, w as A, x as L } from "./charge-BlJi0xCO.js";
|
|
5
|
+
import { e as M, g as F } from "./ui-components-BQyCaYte.js";
|
|
6
|
+
import "./builder-components-uIH6kfbb.js";
|
|
7
7
|
import "react-dom";
|
|
8
|
-
import "./ticket-
|
|
8
|
+
import "./ticket-DR1de6DJ.js";
|
|
9
9
|
const H = async (s = 1) => await w({ PageNumber: s }), nt = () => {
|
|
10
10
|
const [s, i] = a.useState(null), [t, S] = a.useState(0), { page: u, setPage: h } = C(), { gatewaysDetail: l, setGatewaysDetail: b, balanceSettings: n } = _();
|
|
11
11
|
return a.useEffect(() => {
|
|
@@ -38,14 +38,14 @@ const H = async (s = 1) => await w({ PageNumber: s }), nt = () => {
|
|
|
38
38
|
}
|
|
39
39
|
)
|
|
40
40
|
] }) });
|
|
41
|
-
}, U = "_subscriptionContainer_1j6ol_1", W = "_leftSection_1j6ol_15", q = "_content_1j6ol_26", z = "_mainContent_1j6ol_33", K = "_detailsSection_1j6ol_37",
|
|
41
|
+
}, U = "_subscriptionContainer_1j6ol_1", W = "_leftSection_1j6ol_15", q = "_content_1j6ol_26", z = "_mainContent_1j6ol_33", K = "_detailsSection_1j6ol_37", Q = "_buttonGroup_1j6ol_50", R = "_detailsContent_1j6ol_57", r = {
|
|
42
42
|
subscriptionContainer: U,
|
|
43
43
|
leftSection: W,
|
|
44
44
|
content: q,
|
|
45
45
|
mainContent: z,
|
|
46
46
|
detailsSection: K,
|
|
47
|
-
buttonGroup:
|
|
48
|
-
detailsContent:
|
|
47
|
+
buttonGroup: Q,
|
|
48
|
+
detailsContent: R
|
|
49
49
|
}, Y = () => {
|
|
50
50
|
const { id: s, accessToken: i } = y(), { subscription: t, setSubscription: S } = v(), { setIsOpen: u } = P(), [h, l] = a.useState(!1), [b, n] = a.useState(!1);
|
|
51
51
|
a.useLayoutEffect(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),c=require("react"),u=require("./builder-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),c=require("react"),u=require("./builder-BoZFTb7G.cjs"),s=require("./charge-w4kIp324.cjs"),m=require("./ui-components-CaI7HLsm.cjs");require("./builder-components-Ce-GvvbU.cjs");require("react-dom");require("./ticket-DpkxSuxR.cjs");const x=async(n=1)=>await s.fetchSubscriptions({PageNumber:n}),f=()=>{const[n,o]=c.useState(null),[e,S]=c.useState(0),{page:l,setPage:b}=u.usePaginationPagesStore(),{gatewaysDetail:d,setGatewaysDetail:g,balanceSettings:i}=u.useCustomerDashboardStore();return c.useEffect(()=>{const h=async()=>{const{list:r,totalCount:p}=await x(l);o(r),S(p)},j=async()=>{const r=await s.getGatewaysDetail(i!=null&&i.isEnabled?(i==null?void 0:i.topUpSettings.gateways)||[]:[]);g(r)};h(),d||j()},[l]),t.jsx(t.Fragment,{children:n&&n.length===0?t.jsx(s.NoItemsBlock,{title:"Subscriptions History",description:"When you subscribe to a product on our website, you'll see a history of your subscriptions here."}):t.jsxs(t.Fragment,{children:[t.jsx(s.PageTitle,{title:"Subscriptions"}),t.jsx(s.SubscriptionsTable,{subscriptions:n,gatewaysDetail:d,totalCount:e,page:l,setPage:b})]})})},C="_subscriptionContainer_1j6ol_1",_="_leftSection_1j6ol_15",y="_content_1j6ol_26",v="_mainContent_1j6ol_33",P="_detailsSection_1j6ol_37",w="_buttonGroup_1j6ol_50",D="_detailsContent_1j6ol_57",a={subscriptionContainer:C,leftSection:_,content:y,mainContent:v,detailsSection:P,buttonGroup:w,detailsContent:D},N=()=>{const{id:n,accessToken:o}=u.useParams(),{subscription:e,setSubscription:S}=u.useSubscriptionStore(),{setIsOpen:l}=u.useModalStore(),[b,d]=c.useState(!1),[g,i]=c.useState(!1);c.useLayoutEffect(()=>{S(null)},[n,o]);const{balanceSettings:h,setBalanceSettings:j}=u.useCustomerDashboardStore();return c.useEffect(()=>{n&&o&&(async()=>{if(!n||!o)return;i(!0);const{data:p}=await s.fetchSubscription(n,o);S({...p}),i(!1)})()},[n,o]),c.useEffect(()=>{h||(async()=>{const p=await s.getBalanceSettings();j(p)})()},[h]),g?t.jsx(m.Loader,{}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:a.subscriptionContainer,children:[t.jsx("div",{className:a.leftSection,children:t.jsxs("div",{className:a.content,children:[t.jsx(s.CheckoutHeader,{}),t.jsxs("div",{className:a.mainContent,children:[e&&t.jsxs(t.Fragment,{children:[t.jsx("h3",{id:"h3",children:"Your Subscription"}),t.jsx(s.SubscriptionProduct,{subscription:{price:e.price,name:e.productName,description:e.productDescription,status:e.status,image:e.productImage,recurringInterval:e.recurringInterval}}),t.jsx("div",{className:a.buttonGroup,children:e.pricingPlanExists&&t.jsx(m.Button,{onClick:r=>{r.stopPropagation(),l(!0),d(!0)},style:{maxWidth:"500px",width:"100%"},children:"Change Plan"})})]}),t.jsx(s.CheckoutFooter,{})]})]})}),t.jsx("div",{className:a.detailsSection,children:t.jsxs("div",{className:a.detailsContent,children:[t.jsx("h3",{id:"h3",children:"Details"}),(e==null?void 0:e.coupon)&&t.jsx(s.SubscriptionCoupon,{coupon:e.coupon,currency:e.price.currency||"USD"}),e&&t.jsx(s.ActiveSubscriptionProduct,{id:n||"",accessToken:o||"",subscription:{price:e.price,name:e.productName,description:e.productDescription,status:e.status,image:e.productImage,recurringInterval:e.recurringInterval}}),e&&t.jsxs(t.Fragment,{children:[t.jsx(s.ActivePaymentMethod,{}),e.activeTo&&t.jsx(s.SubscriptionExpirationDate,{})]}),t.jsx(s.CheckoutFooter,{className:"flex md:hidden"})]})})]}),t.jsx(s.ChangeSubscriptionPlan,{isOpen:b,setIsOpen:d,subscription:e})]})},I=Object.freeze(Object.defineProperty({__proto__:null,Subscription:N},Symbol.toStringTag,{value:"Module"}));exports.Subscriptions=f;exports.index=I;
|
|
@@ -3,12 +3,12 @@ var Ie = (n, r, e) => r in n ? se(n, r, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var H = (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, e as W, v as G, O as
|
|
7
|
-
import { y as Ce,
|
|
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-BGSGUvbw.js";
|
|
7
|
+
import { y as Ce, N as we, P as fe, z as ye, B as N, D as be, E as ke, F as Le, u as Te, H as Ae, Q as Pe, U as Be } from "./charge-BlJi0xCO.js";
|
|
8
|
+
import { e as v, g as V, E as j, k as Fe, I as K, M as De } from "./ui-components-BQyCaYte.js";
|
|
9
|
+
import { R as te, a as ce, b as ae, c as Re } from "./builder-components-uIH6kfbb.js";
|
|
10
10
|
import "react-dom";
|
|
11
|
-
import "./checkout-
|
|
11
|
+
import "./checkout-B32zo5ao.js";
|
|
12
12
|
const ve = "_wrapper_1vt13_1", Me = "_bg_1vt13_10", xe = "_main_1vt13_32", He = "_noAnimation_1vt13_37", Ne = "_loading_1vt13_51", Ee = "_loadingContent_1vt13_61", Ue = "_loader_1vt13_66", B = {
|
|
13
13
|
wrapper: ve,
|
|
14
14
|
bg: Me,
|
|
@@ -32,7 +32,66 @@ const ve = "_wrapper_1vt13_1", Me = "_bg_1vt13_10", xe = "_main_1vt13_32", He =
|
|
|
32
32
|
if (de.isAxiosError(c) && c.response && c.response.status === 404)
|
|
33
33
|
return null;
|
|
34
34
|
}
|
|
35
|
-
},
|
|
35
|
+
}, _e = "_wrapper_ysrl4_1", Ge = "_tableContainer_ysrl4_6", We = "_ticketsTable_ysrl4_19", $e = "_tableItem_ysrl4_37", qe = "_tableLoader_ysrl4_41", T = {
|
|
36
|
+
wrapper: _e,
|
|
37
|
+
tableContainer: Ge,
|
|
38
|
+
ticketsTable: We,
|
|
39
|
+
tableItem: $e,
|
|
40
|
+
tableLoader: qe
|
|
41
|
+
}, ze = async (n = 1) => {
|
|
42
|
+
try {
|
|
43
|
+
return await Ce({ PageNumber: n });
|
|
44
|
+
} catch (r) {
|
|
45
|
+
return console.error("Failed to fetch tickets:", r), {
|
|
46
|
+
list: [],
|
|
47
|
+
totalCount: 0
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
}, Oo = () => {
|
|
51
|
+
const [n, r] = g.useState(null), { page: e, setPage: o } = pe(), [i, t] = g.useState(!0), [c, s] = g.useState(0);
|
|
52
|
+
g.useEffect(() => {
|
|
53
|
+
(async () => {
|
|
54
|
+
t(!0);
|
|
55
|
+
const { list: k, totalCount: C } = await ze(e);
|
|
56
|
+
r(k), s(C), t(!1);
|
|
57
|
+
})();
|
|
58
|
+
}, [e]);
|
|
59
|
+
const u = !i && n;
|
|
60
|
+
return u && n.length === 0 ? /* @__PURE__ */ a(
|
|
61
|
+
we,
|
|
62
|
+
{
|
|
63
|
+
title: "Tickets",
|
|
64
|
+
description: "You don't have any tickets yet. If you contact support, tickets will be displayed here.",
|
|
65
|
+
centered: !0
|
|
66
|
+
}
|
|
67
|
+
) : /* @__PURE__ */ h("div", { className: T.wrapper, children: [
|
|
68
|
+
/* @__PURE__ */ a(fe, { title: "Tickets" }),
|
|
69
|
+
/* @__PURE__ */ h("div", { className: T.tableContainer, children: [
|
|
70
|
+
/* @__PURE__ */ h(ye, { className: T.ticketsTable, children: [
|
|
71
|
+
/* @__PURE__ */ a(N, { className: T.tableItem, children: "TICKET ID" }),
|
|
72
|
+
/* @__PURE__ */ a(N, { className: T.tableItem, children: "LAST MESSAGE" }),
|
|
73
|
+
/* @__PURE__ */ a(N, { className: T.tableItem, children: "CREATED" }),
|
|
74
|
+
/* @__PURE__ */ a(N, { className: T.tableItem, children: "STATUS" }),
|
|
75
|
+
u && (n == null ? void 0 : n.map((m) => /* @__PURE__ */ a(
|
|
76
|
+
be,
|
|
77
|
+
{
|
|
78
|
+
item: m
|
|
79
|
+
},
|
|
80
|
+
m.id
|
|
81
|
+
)))
|
|
82
|
+
] }),
|
|
83
|
+
!u && /* @__PURE__ */ a("div", { className: T.tableLoader, children: /* @__PURE__ */ a(v, {}) }),
|
|
84
|
+
u && /* @__PURE__ */ a(
|
|
85
|
+
ke,
|
|
86
|
+
{
|
|
87
|
+
currentPage: e,
|
|
88
|
+
totalCount: c,
|
|
89
|
+
onPageChange: o
|
|
90
|
+
}
|
|
91
|
+
)
|
|
92
|
+
] })
|
|
93
|
+
] });
|
|
94
|
+
}, _o = [
|
|
36
95
|
"Acorn",
|
|
37
96
|
"AcornIcon",
|
|
38
97
|
"ActivityIcon",
|
|
@@ -3078,8 +3137,8 @@ const ve = "_wrapper_1vt13_1", Me = "_bg_1vt13_10", xe = "_main_1vt13_32", He =
|
|
|
3078
3137
|
"YoutubeLogo",
|
|
3079
3138
|
"YoutubeLogoIcon"
|
|
3080
3139
|
];
|
|
3081
|
-
var
|
|
3082
|
-
const
|
|
3140
|
+
var Xe = /* @__PURE__ */ ((n) => (n.ICON_LINK = "--icon-link", n.ICON_ERROR = "--icon-error", n.ICON_ACTION = "--icon-action", n.ICON_PRIMARY = "--icon-primary", n.ICON_SUCCESS = "--icon-success", n.ICON_WARNING = "--icon-warning", n.ICON_DISABLED = "--icon-disabled", n.ICON_INVERTED = "--icon-inverted", n.ICON_TERTIARY = "--icon-tertiary", n.ICON_SECONDARY = "--icon-secondary", n.ICON_ACTION_HOVER = "--icon-actionHover", n.ICON_INFORMATION = "--icon-information", n.TEXT_LINK = "--text-link", n.TEXT_ERROR = "--text-error", n.TEXT_ACTION = "--text-action", n.TEXT_PRIMARY = "--text-primary", n.TEXT_SUCCESS = "--text-success", n.TEXT_WARNING = "--text-warning", n.TEXT_DISABLED = "--text-disabled", n.TEXT_INVERTED = "--text-inverted", n.TEXT_TERTIARY = "--text-tertiary", n.TEXT_SECONDARY = "--text-secondary", n.TEXT_ACTION_HOVER = "--text-actionHover", n.TEXT_INFORMATION = "--text-information", n.BORDER_ERROR = "--border-error", n.BORDER_FOCUS = "--border-focus", n.BORDER_ACTION = "--border-action", n.BORDER_PRIMARY = "--border-primary", n.BORDER_SUCCESS = "--border-success", n.BORDER_WARNING = "--border-warning", n.BORDER_DISABLED = "--border-disabled", n.BORDER_SECONDARY = "--border-secondary", n.BORDER_ACTION_HOVER = "--border-actionHover", n.BORDER_INFORMATION = "--border-information", n.SURFACE_ERROR = "--surface-error", n.SURFACE_MODAL = "--surface-modal", n.SURFACE_ACTION1 = "--surface-action1", n.SURFACE_ACTION2 = "--surface-action2", n.SURFACE_PRIMARY = "--surface-primary", n.SURFACE_SUCCESS = "--surface-success", n.SURFACE_WARNING = "--surface-warning", n.SURFACE_DISABLED = "--surface-disabled", n.SURFACE_SECONDARY = "--surface-secondary", n.SURFACE_INFORMATION = "--surface-information", n.SURFACE_ACTION1_HOVER = "--surface-action1Hover", n.SURFACE_ACTION2_HOVER = "--surface-action2Hover", n))(Xe || {});
|
|
3141
|
+
const Go = [
|
|
3083
3142
|
{
|
|
3084
3143
|
value: "4:3",
|
|
3085
3144
|
addon: /* @__PURE__ */ a(
|
|
@@ -3184,10 +3243,10 @@ const _o = [
|
|
|
3184
3243
|
}
|
|
3185
3244
|
)
|
|
3186
3245
|
}
|
|
3187
|
-
],
|
|
3246
|
+
], Wo = (n) => {
|
|
3188
3247
|
const { notifications: r, setNotifications: e } = W.getState();
|
|
3189
3248
|
e(r.filter((o) => o.id !== n));
|
|
3190
|
-
},
|
|
3249
|
+
}, $o = (n) => {
|
|
3191
3250
|
const { notifications: r, setNotifications: e } = W.getState(), o = G();
|
|
3192
3251
|
return e([
|
|
3193
3252
|
...r,
|
|
@@ -3197,7 +3256,7 @@ const _o = [
|
|
|
3197
3256
|
}
|
|
3198
3257
|
]), o;
|
|
3199
3258
|
};
|
|
3200
|
-
class
|
|
3259
|
+
class Ve {
|
|
3201
3260
|
constructor() {
|
|
3202
3261
|
H(this, "observer", null);
|
|
3203
3262
|
H(this, "callbacks", /* @__PURE__ */ new Map());
|
|
@@ -3238,8 +3297,8 @@ class Ge {
|
|
|
3238
3297
|
this.observer && (this.observer.disconnect(), this.observer = null), this.callbacks.clear(), window.removeEventListener("resize", this.handleWindowResize);
|
|
3239
3298
|
}
|
|
3240
3299
|
}
|
|
3241
|
-
const J = new
|
|
3242
|
-
function
|
|
3300
|
+
const J = new Ve();
|
|
3301
|
+
function qo(n) {
|
|
3243
3302
|
const [r, e] = g.useState("desktop");
|
|
3244
3303
|
return g.useEffect(() => {
|
|
3245
3304
|
const o = n.current;
|
|
@@ -3255,74 +3314,15 @@ function $o(n) {
|
|
|
3255
3314
|
};
|
|
3256
3315
|
}, [n]), r;
|
|
3257
3316
|
}
|
|
3258
|
-
const
|
|
3259
|
-
const { balance: n, setBalance: r } =
|
|
3317
|
+
const zo = () => {
|
|
3318
|
+
const { balance: n, setBalance: r } = ge();
|
|
3260
3319
|
return g.useEffect(() => {
|
|
3261
3320
|
n || (async () => {
|
|
3262
3321
|
if (!localStorage.getItem("token")) return;
|
|
3263
|
-
const i = await
|
|
3322
|
+
const i = await Le();
|
|
3264
3323
|
r(i);
|
|
3265
3324
|
})();
|
|
3266
3325
|
}, [n]), n;
|
|
3267
|
-
}, We = "_wrapper_ysrl4_1", $e = "_tableContainer_ysrl4_6", qe = "_ticketsTable_ysrl4_19", ze = "_tableItem_ysrl4_37", Xe = "_tableLoader_ysrl4_41", T = {
|
|
3268
|
-
wrapper: We,
|
|
3269
|
-
tableContainer: $e,
|
|
3270
|
-
ticketsTable: qe,
|
|
3271
|
-
tableItem: ze,
|
|
3272
|
-
tableLoader: Xe
|
|
3273
|
-
}, Ve = async (n = 1) => {
|
|
3274
|
-
try {
|
|
3275
|
-
return await we({ PageNumber: n });
|
|
3276
|
-
} catch (r) {
|
|
3277
|
-
return console.error("Failed to fetch tickets:", r), {
|
|
3278
|
-
list: [],
|
|
3279
|
-
totalCount: 0
|
|
3280
|
-
};
|
|
3281
|
-
}
|
|
3282
|
-
}, zo = () => {
|
|
3283
|
-
const [n, r] = g.useState(null), { page: e, setPage: o } = ge(), [i, t] = g.useState(!0), [c, s] = g.useState(0);
|
|
3284
|
-
g.useEffect(() => {
|
|
3285
|
-
(async () => {
|
|
3286
|
-
t(!0);
|
|
3287
|
-
const { list: k, totalCount: C } = await Ve(e);
|
|
3288
|
-
r(k), s(C), t(!1);
|
|
3289
|
-
})();
|
|
3290
|
-
}, [e]);
|
|
3291
|
-
const u = !i && n;
|
|
3292
|
-
return u && n.length === 0 ? /* @__PURE__ */ a(
|
|
3293
|
-
fe,
|
|
3294
|
-
{
|
|
3295
|
-
title: "Tickets",
|
|
3296
|
-
description: "You don't have any tickets yet. If you contact support, tickets will be displayed here.",
|
|
3297
|
-
centered: !0
|
|
3298
|
-
}
|
|
3299
|
-
) : /* @__PURE__ */ h("div", { className: T.wrapper, children: [
|
|
3300
|
-
/* @__PURE__ */ a(ye, { title: "Tickets" }),
|
|
3301
|
-
/* @__PURE__ */ h("div", { className: T.tableContainer, children: [
|
|
3302
|
-
/* @__PURE__ */ h(be, { className: T.ticketsTable, children: [
|
|
3303
|
-
/* @__PURE__ */ a(N, { className: T.tableItem, children: "TICKET ID" }),
|
|
3304
|
-
/* @__PURE__ */ a(N, { className: T.tableItem, children: "LAST MESSAGE" }),
|
|
3305
|
-
/* @__PURE__ */ a(N, { className: T.tableItem, children: "CREATED" }),
|
|
3306
|
-
/* @__PURE__ */ a(N, { className: T.tableItem, children: "STATUS" }),
|
|
3307
|
-
u && (n == null ? void 0 : n.map((m) => /* @__PURE__ */ a(
|
|
3308
|
-
ke,
|
|
3309
|
-
{
|
|
3310
|
-
item: m
|
|
3311
|
-
},
|
|
3312
|
-
m.id
|
|
3313
|
-
)))
|
|
3314
|
-
] }),
|
|
3315
|
-
!u && /* @__PURE__ */ a("div", { className: T.tableLoader, children: /* @__PURE__ */ a(v, {}) }),
|
|
3316
|
-
u && /* @__PURE__ */ a(
|
|
3317
|
-
Le,
|
|
3318
|
-
{
|
|
3319
|
-
currentPage: e,
|
|
3320
|
-
totalCount: c,
|
|
3321
|
-
onPageChange: o
|
|
3322
|
-
}
|
|
3323
|
-
)
|
|
3324
|
-
] })
|
|
3325
|
-
] });
|
|
3326
3326
|
}, je = "_wrapper_rccv2_1", Ke = "_content_rccv2_11", Je = "_title_rccv2_21", O = {
|
|
3327
3327
|
wrapper: je,
|
|
3328
3328
|
content: Ke,
|
|
@@ -4171,23 +4171,23 @@ const co = "_wrapper_ukunw_1", ao = "_ticketContainer_ukunw_23", io = "_title_uk
|
|
|
4171
4171
|
TicketItem: Fo
|
|
4172
4172
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4173
4173
|
export {
|
|
4174
|
-
|
|
4174
|
+
Xe as C,
|
|
4175
4175
|
Xo as D,
|
|
4176
|
-
|
|
4176
|
+
Oo as T,
|
|
4177
4177
|
Zo as a,
|
|
4178
4178
|
en as b,
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4179
|
+
Go as c,
|
|
4180
|
+
$o as d,
|
|
4181
|
+
zo as e,
|
|
4182
4182
|
Vo as f,
|
|
4183
4183
|
Oe as g,
|
|
4184
4184
|
Yo as h,
|
|
4185
|
-
|
|
4185
|
+
_o as i,
|
|
4186
4186
|
Ko as j,
|
|
4187
4187
|
jo as k,
|
|
4188
4188
|
Jo as l,
|
|
4189
4189
|
on as m,
|
|
4190
|
-
|
|
4190
|
+
Wo as r,
|
|
4191
4191
|
Qo as s,
|
|
4192
|
-
|
|
4192
|
+
qo as u
|
|
4193
4193
|
};
|