@billgangcom/theme-lib 1.117.0 → 1.117.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-tYS_fx1j.cjs → builder-DS9oBIXt.cjs} +13 -13
- package/dist/{builder-VKA664PR.js → builder-DcfIyRTw.js} +1212 -1211
- package/dist/builder-components-B7SAxgEM.cjs +5 -0
- package/dist/{builder-components-xx5QFYCm.js → builder-components-Dm-kWtxj.js} +1910 -1906
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +212 -164
- package/dist/{charge-BTTelVH9.cjs → charge-B9XSDHYf.cjs} +37 -37
- package/dist/{charge-BVSghUTp.js → charge-CXy5zGzq.js} +5053 -4963
- package/dist/{checkout-Czl0XXKy.cjs → checkout-C4QKsh6P.cjs} +1 -1
- package/dist/{checkout-BvZF5GBN.js → checkout-C8pOrYnl.js} +7 -7
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +7 -7
- package/dist/{index-EV9sIbPf.cjs → index-AhJGutkd.cjs} +1 -1
- package/dist/{index-D9JwIfEP.cjs → index-B60hdPLY.cjs} +1 -1
- package/dist/{index-BFAsDjg4.js → index-BPwoye0T.js} +10 -10
- package/dist/{index-YoA87E0j.cjs → index-BRTHm-r0.cjs} +1 -1
- package/dist/{index-WSIj7mXJ.cjs → index-BtS9bwZU.cjs} +1 -1
- package/dist/{index-D-Y2LPyz.js → index-CVXfHRHS.js} +5 -5
- package/dist/{index-Cfuai6uk.js → index-CWMP7EHj.js} +1 -1
- package/dist/{index-CJ3NwBR_.js → index-CgKO4Rfc.js} +5 -5
- package/dist/{index-CQGjV27J.cjs → index-DHDz9Z2M.cjs} +1 -1
- package/dist/{index-DlH7nhLu.js → index-DWwyC_5W.js} +5 -5
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +12 -12
- package/dist/order-BMAFH2EL.js +277 -0
- package/dist/order-VgDnKBla.cjs +1 -0
- package/dist/src/storefront/components/index.d.ts +1 -0
- package/dist/src/storefront/models/order.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/{subscription-4ntHL0jJ.cjs → subscription-DaibYXfW.cjs} +1 -1
- package/dist/{subscription-BxRKKLjT.js → subscription-LF680WJT.js} +7 -7
- package/dist/{ticket-ZryFt3Gl.js → ticket-CQD0ZMj2.js} +5 -5
- package/dist/{ticket-BMP7CWTV.cjs → ticket-CraKfT7J.cjs} +1 -1
- package/dist/{top-up-DR2Qy-73.cjs → top-up-BY8uNtks.cjs} +1 -1
- package/dist/{top-up-CkfL0jBe.js → top-up-zL4MfdVN.js} +5 -5
- package/dist/ui-components-JBzZAyzL.cjs +1 -0
- package/dist/{ui-components-CL3XRzDd.js → ui-components-fiCrAhU8.js} +5 -5
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1 -1
- package/dist/{validation-8UtoT5cR.js → validation-Db2Od6AE.js} +11 -11
- package/dist/{validation-CZt2YZyc.cjs → validation-lxk5WFtw.cjs} +1 -1
- package/package.json +1 -1
- package/dist/builder-components-BER5mJmk.cjs +0 -5
- package/dist/order-Cxub8VWB.js +0 -356
- package/dist/order-D6bEahqA.cjs +0 -1
- package/dist/ui-components-Wg6-hSGe.cjs +0 -1
package/dist/builder.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),i=require("./builder-DS9oBIXt.cjs"),x=require("./ticket-CraKfT7J.cjs"),o=require("react"),D=require("./charge-B9XSDHYf.cjs"),G=require("./ui-components-JBzZAyzL.cjs"),e=require("@phosphor-icons/react"),W=({children:r,shopDomain:u,shopId:h,shopPassword:d,shopLogo:m})=>{const{setShopDomain:p,setShopId:y,setShopPassword:A,setShopTerms:f,setShopPrivacyPolicy:l,setShopRefundPolicy:S,setShopLogo:w}=i.useStorefrontStore();return o.useLayoutEffect(()=>{const s=async()=>{const{data:c}=await D.fetchTerms();f(c)},C=async()=>{const{data:c}=await D.fetchPrivacyPolicy();l(c)},T=async()=>{const{data:c}=await D.fetchRefundPolicy();S(c)};p(u),y(h),d&&A(d),m&&w(m),s(),C(),T()},[u,h,d]),t.jsx(t.Fragment,{children:r})},V="_wrapper_1xuz3_18",b={wrapper:V};function _(){G.registerIcons({X:e.X,Plus:e.Plus,Minus:e.Minus,Check:e.Check,Clock:e.Clock,Info:e.Info,Copy:e.Copy,Trash:e.Trash,Sliders:e.Sliders,Image:e.Image,List:e.List,Handbag:e.Handbag,Bag:e.Bag,Eye:e.Eye,Crown:e.Crown,ArrowUp:e.ArrowUp,ArrowDown:e.ArrowDown,ArrowLeft:e.ArrowLeft,ArrowRight:e.ArrowRight,ArrowLineUpRight:e.ArrowLineUpRight,ArrowUpRight:e.ArrowUpRight,ArrowUUpLeft:e.ArrowUUpLeft,ArrowUUpRight:e.ArrowUUpRight,CaretRight:e.CaretRight,CaretDown:e.CaretDown,CaretUp:e.CaretUp,CaretLeft:e.CaretLeft,MagnifyingGlass:e.MagnifyingGlass,MagnifyingGlassMinus:e.MagnifyingGlassMinus,ArrowLineDown:e.ArrowLineDown,CloudArrowUpIcon:e.CloudArrowUpIcon,ArrowsHorizontal:e.ArrowsHorizontal,ArrowsVertical:e.ArrowsVertical,CheckCircle:e.CheckCircle,XCircle:e.XCircle,Star:e.Star,Fire:e.Fire,Lightning:e.Lightning,File:e.File,FileText:e.FileText,BookOpen:e.BookOpen,DownloadSimple:e.DownloadSimple,DiscordLogo:e.DiscordLogo,TelegramLogo:e.TelegramLogo,SignOut:e.SignOut,Wallet:e.Wallet,PaperPlaneRight:e.PaperPlaneRight,ChatsTeardrop:e.ChatsTeardrop,DotsSixVertical:e.DotsSixVertical,Share:e.Share,Shield:e.Shield,ShieldCheck:e.ShieldCheck,FileCloud:e.FileCloud,Lock:e.Lock,Heart:e.Heart,User:e.User,Calendar:e.Calendar,Smiley:e.Smiley,Globe:e.Globe,House:e.House,HouseSimple:e.HouseSimple,CurrencyCircleDollar:e.CurrencyCircleDollar,Medal:e.Medal,CalendarCheck:e.CalendarCheck,Question:e.Question,Warning:e.Warning,WarningDiamond:e.WarningDiamond,TreeStructure:e.TreeStructure,Palette:e.Palette,Gear:e.Gear,PaintBrushBroad:e.PaintBrushBroad,TextAa:e.TextAa,TextB:e.TextB,TextH:e.TextH,CornersOut:e.CornersOut,ArrowSquareIn:e.ArrowSquareIn,Textbox:e.Textbox,SquaresFour:e.SquaresFour,SealQuestion:e.SealQuestion,ChatCentered:e.ChatCentered,Ticket:e.Ticket,UserCircleGear:e.UserCircleGear,Desktop:e.Desktop,DeviceTabletCamera:e.DeviceTabletCamera,DeviceMobileCamera:e.DeviceMobileCamera,Cards:e.Cards,PushPin:e.PushPin,TextAlignLeft:e.TextAlignLeft,TextAlignRight:e.TextAlignRight,TextAlignCenter:e.TextAlignCenter,AlignLeft:e.AlignLeft,AlignRight:e.AlignRight,AlignTop:e.AlignTop,AlignBottom:e.AlignBottom,TextItalic:e.TextItalic,TextStrikethrough:e.TextStrikethrough,TextUnderline:e.TextUnderline})}const Q=o.lazy(()=>Promise.resolve().then(()=>require("./builder-DS9oBIXt.cjs")).then(r=>r.index).then(r=>({default:r.BuilderPage}))),X=o.lazy(()=>Promise.resolve().then(()=>require("./index-AhJGutkd.cjs")).then(r=>({default:r.ErrorPage}))),N=o.lazy(()=>Promise.resolve().then(()=>require("./index-DHDz9Z2M.cjs")).then(r=>({default:r.ActivePage}))),J=o.lazy(()=>Promise.resolve().then(()=>require("./validation-lxk5WFtw.cjs")).then(r=>({default:r.ValidationPage}))),$=o.lazy(()=>Promise.resolve().then(()=>require("./index-BtS9bwZU.cjs")).then(r=>({default:r.WrapperPage}))),K=o.lazy(()=>Promise.resolve().then(()=>require("./index-B60hdPLY.cjs")).then(r=>({default:r.RouterErrorPage}))),a=o.lazy(()=>Promise.resolve().then(()=>require("./index-BRTHm-r0.cjs")).then(r=>({default:r.DynamicErrorPage}))),Y=o.lazy(()=>Promise.resolve().then(()=>require("./checkout-C4QKsh6P.cjs")).then(r=>({default:r.Checkout}))),Z=o.lazy(()=>Promise.resolve().then(()=>require("./charge-B9XSDHYf.cjs")).then(r=>r.index$1).then(r=>({default:r.ChargePage}))),ee=o.lazy(()=>Promise.resolve().then(()=>require("./ticket-CraKfT7J.cjs")).then(r=>r.index).then(r=>({default:r.TicketItem}))),te=o.lazy(()=>Promise.resolve().then(()=>require("./subscription-DaibYXfW.cjs")).then(r=>r.index).then(r=>({default:r.Subscription}))),re=o.lazy(()=>Promise.resolve().then(()=>require("./top-up-BY8uNtks.cjs")).then(r=>({default:r.TopUpBalance}))),oe=o.lazy(()=>Promise.resolve().then(()=>require("./order-VgDnKBla.cjs")).then(r=>r.index).then(r=>({default:r.OrderPage}))),ne=o.lazy(()=>Promise.resolve().then(()=>require("./charge-B9XSDHYf.cjs")).then(r=>r.index).then(r=>({default:r.CustomerDashboard}))),q=o.lazy(()=>Promise.resolve().then(()=>require("./charge-B9XSDHYf.cjs")).then(r=>r.recapcha).then(r=>({default:r.ReCaptchaProvider}))),se=()=>null,n=({children:r})=>t.jsx(o.Suspense,{fallback:t.jsx(se,{}),children:r}),ie=o.lazy(()=>Promise.resolve().then(()=>require("./builder-components-B7SAxgEM.cjs")).then(r=>r.index).then(r=>({default:r.RenderAnnouncement}))),U=o.lazy(()=>Promise.resolve().then(()=>require("./builder-components-B7SAxgEM.cjs")).then(r=>r.index).then(r=>({default:r.RenderFooter}))),B=o.lazy(()=>Promise.resolve().then(()=>require("./builder-components-B7SAxgEM.cjs")).then(r=>r.index).then(r=>({default:r.RenderHeader}))),ae=r=>{const{blocks:u,settings:h,header:d,footer:m,announcement:p,routes:y=[],shopLogo:A,apiURLs:f,isAntistock:l=!1}=r,[S,w]=o.useState(null),{general:s,setIsAntistock:C}=i.useGeneralStore(),{setApiUrls:T}=i.useApiStore(),{setBlocks:c,setSourceBlocks:E,setHeader:I,setFooter:z,setAnnouncement:F,setSettings:H}=i.useBlocksStore(),{themeSettings:P}=i.useThemeSettingsStore(),{settings:k,setSettings:O}=i.useSettingsStore(),j=i.IS_LOCAL_HOST?localStorage.getItem("fakeDomain")||"":window.location.hostname,M=localStorage.getItem("shopPassword"),R=localStorage.getItem("shopId")||"";return o.useEffect(()=>{C(l)},[l,C]),o.useEffect(()=>{!R&&(s!=null&&s.info.id)&&localStorage.setItem("shopId",s==null?void 0:s.info.id)},[s]),o.useEffect(()=>{!j&&!l&&localStorage.setItem("fakeDomain","drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"),!j&&l&&localStorage.setItem("fakeDomain","eva8.astck.io")},[j]),o.useEffect(()=>{if(P&&k){const g=x.generateDynamicStyles(P,k);x.loadCustomFonts(),x.setupDynamicFonts(P),x.injectStylesToDOM(g)}},[P,JSON.stringify(k),window.location.hostname]),o.useEffect(()=>{const v=new h().blockSettings;O(v)},[]),o.useEffect(()=>{_()},[]),o.useLayoutEffect(()=>{const g={};Object.keys(u).map(L=>{g[L]=u[L]}),E(g),c(g),I(d),z(m),F(p),H(h),f&&T(f);const v=i.createBrowserRouter([{element:t.jsx(W,{shopDomain:j,shopId:R,shopPassword:M||void 0,shopLogo:A,children:t.jsx(q,{children:t.jsx($,{children:t.jsx(i.Outlet,{})})})}),errorElement:t.jsx(n,{children:t.jsx(K,{})}),children:[{path:"/admin/builder/*",element:t.jsx(n,{children:t.jsx(N,{children:t.jsx(Q,{blocks:u,settings:h,header:d,footer:m,announcement:p})})}),errorElement:t.jsx(n,{children:t.jsx(X,{})})},...y,{path:"/checkout",element:t.jsx(n,{children:t.jsx(Y,{})}),errorElement:t.jsx(n,{children:t.jsx(a,{})}),loader:()=>(document.title="Checkout",!0)},{path:"/top-up",element:t.jsx(n,{children:t.jsx(re,{})}),errorElement:t.jsx(n,{children:t.jsx(a,{})}),loader:()=>(document.title="Top Up Balance",!0)},{path:"/charges/:id",element:t.jsx(n,{children:t.jsx(Z,{})}),errorElement:t.jsx(n,{children:t.jsx(a,{})}),loader:()=>(document.title="Charges",!0)},{path:"/orders/:id/:accessToken?",element:t.jsx(n,{children:t.jsx(oe,{})}),errorElement:t.jsx(n,{children:t.jsx(a,{})}),loader:()=>(document.title="Orders",!0)},{path:"/subscriptions/:id/:accessToken?",element:t.jsx(n,{children:t.jsx(te,{})}),errorElement:t.jsx(n,{children:t.jsx(a,{})}),loader:()=>(document.title="Subscriptions",!0)},{path:l?"/account":"/customer-dash",element:t.jsx(n,{children:t.jsxs("div",{className:b.wrapper,children:[t.jsx(ie,{}),t.jsx(B,{}),t.jsx("div",{style:{flex:"1 1 auto"},children:t.jsx(ne,{})}),t.jsx(U,{})]})}),errorElement:t.jsx(n,{children:t.jsx(a,{})}),loader:()=>(document.title=l?"Account":"Customer Dashboard",!0)},{path:"/validation",element:t.jsx(n,{children:t.jsx(J,{})}),errorElement:t.jsx(n,{children:t.jsx(a,{})}),loader:()=>(document.title="Validation",!0)},{path:"/ticket/:id/:accessToken",element:t.jsx(n,{children:t.jsxs("div",{className:b.wrapper,children:[t.jsx(B,{}),t.jsx("div",{style:{flex:1,width:"100%",height:"100%"},children:t.jsx(q,{children:t.jsx(ee,{})})}),t.jsx(U,{})]})}),errorElement:t.jsx(n,{children:t.jsx(a,{})}),loader:()=>(document.title="Ticket",!0)},{path:"*",element:t.jsx(x.DynamicRouteWrapper,{}),errorElement:t.jsx(n,{children:t.jsx(a,{})})}]}]);w(v)},[s]),t.jsx(o.Suspense,{fallback:null,children:S&&t.jsx(i.RouterProvider,{router:S})})};exports.App=ae;
|
package/dist/builder.es.js
CHANGED
|
@@ -1,277 +1,325 @@
|
|
|
1
|
-
import { jsx as t, Fragment as
|
|
2
|
-
import {
|
|
3
|
-
import { f as
|
|
1
|
+
import { jsx as t, Fragment as M, jsxs as E } from "react/jsx-runtime";
|
|
2
|
+
import { N as _, K as j, j as W, c as G, m as V, a as N, M as q, ai as Q, aj as X, ak as J } from "./builder-DcfIyRTw.js";
|
|
3
|
+
import { f as K, l as Z, j as $, k as Y, D as ee } from "./ticket-CQD0ZMj2.js";
|
|
4
4
|
import r, { Suspense as te } from "react";
|
|
5
|
-
import {
|
|
6
|
-
import { o as ae } from "./ui-components-
|
|
7
|
-
import {
|
|
8
|
-
const
|
|
5
|
+
import { Z as re, _ as oe, $ as ne } from "./charge-CXy5zGzq.js";
|
|
6
|
+
import { o as ae } from "./ui-components-fiCrAhU8.js";
|
|
7
|
+
import { TextUnderline as se, TextStrikethrough as ie, TextItalic as le, AlignBottom as ce, AlignTop as de, AlignRight as he, AlignLeft as ue, TextAlignCenter as me, TextAlignRight as pe, TextAlignLeft as ge, PushPin as fe, Cards as Se, DeviceMobileCamera as ye, DeviceTabletCamera as ke, Desktop as Ce, UserCircleGear as Pe, Ticket as we, ChatCentered as Ae, SealQuestion as Te, SquaresFour as Re, Textbox as De, ArrowSquareIn as Ee, CornersOut as be, TextH as Le, TextB as ze, TextAa as Be, PaintBrushBroad as Ie, Gear as xe, Palette as ve, TreeStructure as Ue, WarningDiamond as Fe, Warning as Oe, Question as He, CalendarCheck as Me, Medal as _e, CurrencyCircleDollar as je, HouseSimple as We, House as Ge, Globe as Ve, Smiley as Ne, Calendar as qe, User as Qe, Heart as Xe, Lock as Je, FileCloud as Ke, ShieldCheck as Ze, Shield as $e, Share as Ye, DotsSixVertical as et, ChatsTeardrop as tt, PaperPlaneRight as rt, Wallet as ot, SignOut as nt, TelegramLogo as at, DiscordLogo as st, DownloadSimple as it, BookOpen as lt, FileText as ct, File as dt, Lightning as ht, Fire as ut, Star as mt, XCircle as pt, CheckCircle as gt, ArrowsVertical as ft, ArrowsHorizontal as St, CloudArrowUpIcon as yt, ArrowLineDown as kt, MagnifyingGlassMinus as Ct, MagnifyingGlass as Pt, CaretLeft as wt, CaretUp as At, CaretDown as Tt, CaretRight as Rt, ArrowUUpRight as Dt, ArrowUUpLeft as Et, ArrowUpRight as bt, ArrowLineUpRight as Lt, ArrowRight as zt, ArrowLeft as Bt, ArrowDown as It, ArrowUp as xt, Crown as vt, Eye as Ut, Bag as Ft, Handbag as Ot, List as Ht, Image as Mt, Sliders as _t, Trash as jt, Copy as Wt, Info as Gt, Clock as Vt, Check as Nt, Minus as qt, Plus as Qt, X as Xt } from "@phosphor-icons/react";
|
|
8
|
+
const Jt = ({
|
|
9
9
|
children: e,
|
|
10
|
-
shopDomain:
|
|
11
|
-
shopId:
|
|
10
|
+
shopDomain: l,
|
|
11
|
+
shopId: c,
|
|
12
12
|
shopPassword: d,
|
|
13
13
|
shopLogo: u
|
|
14
14
|
}) => {
|
|
15
15
|
const {
|
|
16
16
|
setShopDomain: m,
|
|
17
17
|
setShopId: k,
|
|
18
|
-
setShopPassword:
|
|
18
|
+
setShopPassword: C,
|
|
19
19
|
setShopTerms: p,
|
|
20
20
|
setShopPrivacyPolicy: s,
|
|
21
|
-
setShopRefundPolicy:
|
|
22
|
-
setShopLogo:
|
|
23
|
-
} =
|
|
21
|
+
setShopRefundPolicy: g,
|
|
22
|
+
setShopLogo: P
|
|
23
|
+
} = _();
|
|
24
24
|
return r.useLayoutEffect(() => {
|
|
25
25
|
const n = async () => {
|
|
26
26
|
const { data: i } = await re();
|
|
27
27
|
p(i);
|
|
28
|
-
},
|
|
28
|
+
}, f = async () => {
|
|
29
29
|
const { data: i } = await oe();
|
|
30
30
|
s(i);
|
|
31
31
|
}, w = async () => {
|
|
32
32
|
const { data: i } = await ne();
|
|
33
|
-
|
|
33
|
+
g(i);
|
|
34
34
|
};
|
|
35
|
-
m(
|
|
36
|
-
}, [
|
|
37
|
-
},
|
|
38
|
-
wrapper:
|
|
35
|
+
m(l), k(c), d && C(d), u && P(u), n(), f(), w();
|
|
36
|
+
}, [l, c, d]), /* @__PURE__ */ t(M, { children: e });
|
|
37
|
+
}, Kt = "_wrapper_1xuz3_18", b = {
|
|
38
|
+
wrapper: Kt
|
|
39
39
|
};
|
|
40
|
-
function
|
|
40
|
+
function Zt() {
|
|
41
41
|
ae({
|
|
42
42
|
// Основные UI иконки
|
|
43
|
-
X:
|
|
44
|
-
Plus:
|
|
45
|
-
Minus:
|
|
46
|
-
Check:
|
|
47
|
-
Clock:
|
|
48
|
-
Info:
|
|
49
|
-
Copy:
|
|
50
|
-
Trash:
|
|
51
|
-
Sliders:
|
|
52
|
-
Image:
|
|
53
|
-
List:
|
|
54
|
-
Handbag:
|
|
55
|
-
Bag:
|
|
56
|
-
Eye:
|
|
57
|
-
Crown:
|
|
58
|
-
ArrowUp:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
43
|
+
X: Xt,
|
|
44
|
+
Plus: Qt,
|
|
45
|
+
Minus: qt,
|
|
46
|
+
Check: Nt,
|
|
47
|
+
Clock: Vt,
|
|
48
|
+
Info: Gt,
|
|
49
|
+
Copy: Wt,
|
|
50
|
+
Trash: jt,
|
|
51
|
+
Sliders: _t,
|
|
52
|
+
Image: Mt,
|
|
53
|
+
List: Ht,
|
|
54
|
+
Handbag: Ot,
|
|
55
|
+
Bag: Ft,
|
|
56
|
+
Eye: Ut,
|
|
57
|
+
Crown: vt,
|
|
58
|
+
ArrowUp: xt,
|
|
59
|
+
ArrowDown: It,
|
|
60
|
+
ArrowLeft: Bt,
|
|
61
|
+
ArrowRight: zt,
|
|
62
|
+
ArrowLineUpRight: Lt,
|
|
63
|
+
ArrowUpRight: bt,
|
|
64
|
+
ArrowUUpLeft: Et,
|
|
65
|
+
ArrowUUpRight: Dt,
|
|
66
|
+
CaretRight: Rt,
|
|
67
|
+
CaretDown: Tt,
|
|
68
|
+
CaretUp: At,
|
|
69
|
+
CaretLeft: wt,
|
|
70
|
+
MagnifyingGlass: Pt,
|
|
71
|
+
MagnifyingGlassMinus: Ct,
|
|
72
|
+
ArrowLineDown: kt,
|
|
73
|
+
CloudArrowUpIcon: yt,
|
|
74
|
+
ArrowsHorizontal: St,
|
|
75
|
+
ArrowsVertical: ft,
|
|
65
76
|
// Статусы и действия
|
|
66
|
-
CheckCircle:
|
|
67
|
-
XCircle:
|
|
68
|
-
Star:
|
|
69
|
-
Fire:
|
|
70
|
-
Lightning:
|
|
77
|
+
CheckCircle: gt,
|
|
78
|
+
XCircle: pt,
|
|
79
|
+
Star: mt,
|
|
80
|
+
Fire: ut,
|
|
81
|
+
Lightning: ht,
|
|
71
82
|
// Файлы и документы
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
83
|
+
File: dt,
|
|
84
|
+
FileText: ct,
|
|
85
|
+
BookOpen: lt,
|
|
86
|
+
DownloadSimple: it,
|
|
75
87
|
// Социальные сети
|
|
76
|
-
DiscordLogo:
|
|
77
|
-
TelegramLogo:
|
|
88
|
+
DiscordLogo: st,
|
|
89
|
+
TelegramLogo: at,
|
|
78
90
|
// Навигация и интерфейс
|
|
79
|
-
SignOut:
|
|
80
|
-
Wallet:
|
|
81
|
-
PaperPlaneRight:
|
|
82
|
-
ChatsTeardrop:
|
|
83
|
-
DotsSixVertical:
|
|
84
|
-
|
|
85
|
-
|
|
91
|
+
SignOut: nt,
|
|
92
|
+
Wallet: ot,
|
|
93
|
+
PaperPlaneRight: rt,
|
|
94
|
+
ChatsTeardrop: tt,
|
|
95
|
+
DotsSixVertical: et,
|
|
96
|
+
Share: Ye,
|
|
97
|
+
// Безопасность и файлы (для Checkout/Secured)
|
|
98
|
+
Shield: $e,
|
|
99
|
+
ShieldCheck: Ze,
|
|
100
|
+
FileCloud: Ke,
|
|
101
|
+
Lock: Je,
|
|
86
102
|
// Специальные иконки
|
|
87
|
-
Heart:
|
|
88
|
-
User:
|
|
89
|
-
Calendar:
|
|
103
|
+
Heart: Xe,
|
|
104
|
+
User: Qe,
|
|
105
|
+
Calendar: qe,
|
|
106
|
+
Smiley: Ne,
|
|
107
|
+
Globe: Ve,
|
|
90
108
|
// Иконки для навигации в сайдбаре
|
|
91
|
-
House:
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
Shield: de,
|
|
98
|
-
ShieldCheck: le,
|
|
99
|
-
FileCloud: ce,
|
|
109
|
+
House: Ge,
|
|
110
|
+
HouseSimple: We,
|
|
111
|
+
CurrencyCircleDollar: je,
|
|
112
|
+
Medal: _e,
|
|
113
|
+
CalendarCheck: Me,
|
|
114
|
+
Question: He,
|
|
100
115
|
// Иконки для статусов
|
|
101
|
-
Warning:
|
|
102
|
-
WarningDiamond:
|
|
116
|
+
Warning: Oe,
|
|
117
|
+
WarningDiamond: Fe,
|
|
118
|
+
// Иконки для билдера (Builder icons)
|
|
119
|
+
TreeStructure: Ue,
|
|
120
|
+
Palette: ve,
|
|
121
|
+
Gear: xe,
|
|
122
|
+
PaintBrushBroad: Ie,
|
|
123
|
+
TextAa: Be,
|
|
124
|
+
TextB: ze,
|
|
125
|
+
TextH: Le,
|
|
126
|
+
CornersOut: be,
|
|
127
|
+
ArrowSquareIn: Ee,
|
|
128
|
+
Textbox: De,
|
|
129
|
+
SquaresFour: Re,
|
|
130
|
+
SealQuestion: Te,
|
|
131
|
+
ChatCentered: Ae,
|
|
132
|
+
Ticket: we,
|
|
133
|
+
UserCircleGear: Pe,
|
|
134
|
+
Desktop: Ce,
|
|
135
|
+
DeviceTabletCamera: ke,
|
|
136
|
+
DeviceMobileCamera: ye,
|
|
137
|
+
Cards: Se,
|
|
138
|
+
PushPin: fe,
|
|
139
|
+
// Иконки для выравнивания текста и отступов
|
|
140
|
+
TextAlignLeft: ge,
|
|
141
|
+
TextAlignRight: pe,
|
|
142
|
+
TextAlignCenter: me,
|
|
143
|
+
AlignLeft: ue,
|
|
144
|
+
AlignRight: he,
|
|
145
|
+
AlignTop: de,
|
|
146
|
+
AlignBottom: ce,
|
|
147
|
+
// Иконки для форматирования текста
|
|
148
|
+
TextItalic: le,
|
|
149
|
+
TextStrikethrough: ie,
|
|
150
|
+
TextUnderline: se
|
|
103
151
|
});
|
|
104
152
|
}
|
|
105
|
-
const
|
|
106
|
-
() => import("./builder-
|
|
107
|
-
),
|
|
108
|
-
() => import("./index-
|
|
109
|
-
),
|
|
110
|
-
() => import("./index-
|
|
111
|
-
),
|
|
112
|
-
() => import("./validation-
|
|
113
|
-
),
|
|
114
|
-
() => import("./index-
|
|
115
|
-
),
|
|
116
|
-
() => import("./index-
|
|
153
|
+
const $t = r.lazy(
|
|
154
|
+
() => import("./builder-DcfIyRTw.js").then((e) => e.an).then((e) => ({ default: e.BuilderPage }))
|
|
155
|
+
), Yt = r.lazy(
|
|
156
|
+
() => import("./index-CgKO4Rfc.js").then((e) => ({ default: e.ErrorPage }))
|
|
157
|
+
), er = r.lazy(
|
|
158
|
+
() => import("./index-CWMP7EHj.js").then((e) => ({ default: e.ActivePage }))
|
|
159
|
+
), tr = r.lazy(
|
|
160
|
+
() => import("./validation-Db2Od6AE.js").then((e) => ({ default: e.ValidationPage }))
|
|
161
|
+
), rr = r.lazy(
|
|
162
|
+
() => import("./index-BPwoye0T.js").then((e) => ({ default: e.WrapperPage }))
|
|
163
|
+
), or = r.lazy(
|
|
164
|
+
() => import("./index-CVXfHRHS.js").then((e) => ({ default: e.RouterErrorPage }))
|
|
117
165
|
), a = r.lazy(
|
|
118
|
-
() => import("./index-
|
|
119
|
-
),
|
|
120
|
-
() => import("./checkout-
|
|
121
|
-
),
|
|
122
|
-
() => import("./charge-
|
|
123
|
-
),
|
|
124
|
-
() => import("./ticket-
|
|
125
|
-
),
|
|
126
|
-
() => import("./subscription-
|
|
127
|
-
),
|
|
128
|
-
() => import("./top-up-
|
|
129
|
-
),
|
|
130
|
-
() => import("./order-
|
|
131
|
-
),
|
|
132
|
-
() => import("./charge-
|
|
133
|
-
),
|
|
134
|
-
() => import("./charge-
|
|
135
|
-
),
|
|
136
|
-
() => import("./builder-components-
|
|
166
|
+
() => import("./index-DWwyC_5W.js").then((e) => ({ default: e.DynamicErrorPage }))
|
|
167
|
+
), nr = r.lazy(
|
|
168
|
+
() => import("./checkout-C8pOrYnl.js").then((e) => ({ default: e.Checkout }))
|
|
169
|
+
), ar = r.lazy(
|
|
170
|
+
() => import("./charge-CXy5zGzq.js").then((e) => e.a4).then((e) => ({ default: e.ChargePage }))
|
|
171
|
+
), sr = r.lazy(
|
|
172
|
+
() => import("./ticket-CQD0ZMj2.js").then((e) => e.m).then((e) => ({ default: e.TicketItem }))
|
|
173
|
+
), ir = r.lazy(
|
|
174
|
+
() => import("./subscription-LF680WJT.js").then((e) => e.i).then((e) => ({ default: e.Subscription }))
|
|
175
|
+
), lr = r.lazy(
|
|
176
|
+
() => import("./top-up-zL4MfdVN.js").then((e) => ({ default: e.TopUpBalance }))
|
|
177
|
+
), cr = r.lazy(
|
|
178
|
+
() => import("./order-BMAFH2EL.js").then((e) => e.i).then((e) => ({ default: e.OrderPage }))
|
|
179
|
+
), dr = r.lazy(
|
|
180
|
+
() => import("./charge-CXy5zGzq.js").then((e) => e.a3).then((e) => ({ default: e.CustomerDashboard }))
|
|
181
|
+
), L = r.lazy(
|
|
182
|
+
() => import("./charge-CXy5zGzq.js").then((e) => e.a2).then((e) => ({ default: e.ReCaptchaProvider }))
|
|
183
|
+
), hr = () => null, o = ({ children: e }) => /* @__PURE__ */ t(te, { fallback: /* @__PURE__ */ t(hr, {}), children: e }), ur = r.lazy(
|
|
184
|
+
() => import("./builder-components-Dm-kWtxj.js").then((e) => e.i).then((e) => ({
|
|
137
185
|
default: e.RenderAnnouncement
|
|
138
186
|
}))
|
|
139
|
-
),
|
|
140
|
-
() => import("./builder-components-
|
|
187
|
+
), z = r.lazy(
|
|
188
|
+
() => import("./builder-components-Dm-kWtxj.js").then((e) => e.i).then((e) => ({
|
|
141
189
|
default: e.RenderFooter
|
|
142
190
|
}))
|
|
143
|
-
),
|
|
144
|
-
() => import("./builder-components-
|
|
191
|
+
), B = r.lazy(
|
|
192
|
+
() => import("./builder-components-Dm-kWtxj.js").then((e) => e.i).then((e) => ({
|
|
145
193
|
default: e.RenderHeader
|
|
146
194
|
}))
|
|
147
|
-
),
|
|
195
|
+
), Cr = (e) => {
|
|
148
196
|
const {
|
|
149
|
-
blocks:
|
|
150
|
-
settings:
|
|
197
|
+
blocks: l,
|
|
198
|
+
settings: c,
|
|
151
199
|
header: d,
|
|
152
200
|
footer: u,
|
|
153
201
|
announcement: m,
|
|
154
202
|
routes: k = [],
|
|
155
|
-
shopLogo:
|
|
203
|
+
shopLogo: C,
|
|
156
204
|
apiURLs: p,
|
|
157
205
|
isAntistock: s = !1
|
|
158
|
-
} = e, [
|
|
206
|
+
} = e, [g, P] = r.useState(null), { general: n, setIsAntistock: f } = j(), { setApiUrls: w } = W(), {
|
|
159
207
|
setBlocks: i,
|
|
160
|
-
setSourceBlocks:
|
|
161
|
-
setHeader:
|
|
162
|
-
setFooter:
|
|
163
|
-
setAnnouncement:
|
|
164
|
-
setSettings:
|
|
165
|
-
} =
|
|
208
|
+
setSourceBlocks: I,
|
|
209
|
+
setHeader: x,
|
|
210
|
+
setFooter: v,
|
|
211
|
+
setAnnouncement: U,
|
|
212
|
+
setSettings: F
|
|
213
|
+
} = G(), { themeSettings: S } = V(), { settings: A, setSettings: O } = N(), y = q ? localStorage.getItem("fakeDomain") || "" : window.location.hostname, H = localStorage.getItem("shopPassword"), R = localStorage.getItem("shopId") || "";
|
|
166
214
|
return r.useEffect(() => {
|
|
167
|
-
|
|
168
|
-
}, [s,
|
|
169
|
-
!
|
|
215
|
+
f(s);
|
|
216
|
+
}, [s, f]), r.useEffect(() => {
|
|
217
|
+
!R && (n != null && n.info.id) && localStorage.setItem("shopId", n == null ? void 0 : n.info.id);
|
|
170
218
|
}, [n]), r.useEffect(() => {
|
|
171
|
-
!
|
|
172
|
-
}, [
|
|
173
|
-
if (
|
|
174
|
-
const h =
|
|
175
|
-
Z(),
|
|
219
|
+
!y && !s && localStorage.setItem("fakeDomain", "drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"), !y && s && localStorage.setItem("fakeDomain", "eva8.astck.io");
|
|
220
|
+
}, [y]), r.useEffect(() => {
|
|
221
|
+
if (S && A) {
|
|
222
|
+
const h = K(S, A);
|
|
223
|
+
Z(), $(S), Y(h);
|
|
176
224
|
}
|
|
177
|
-
}, [
|
|
178
|
-
const
|
|
179
|
-
|
|
225
|
+
}, [S, JSON.stringify(A), window.location.hostname]), r.useEffect(() => {
|
|
226
|
+
const T = new c().blockSettings;
|
|
227
|
+
O(T);
|
|
180
228
|
}, []), r.useEffect(() => {
|
|
181
|
-
|
|
229
|
+
Zt();
|
|
182
230
|
}, []), r.useLayoutEffect(() => {
|
|
183
231
|
const h = {};
|
|
184
|
-
Object.keys(
|
|
185
|
-
h[
|
|
186
|
-
}),
|
|
187
|
-
const
|
|
232
|
+
Object.keys(l).map((D) => {
|
|
233
|
+
h[D] = l[D];
|
|
234
|
+
}), I(h), i(h), x(d), v(u), U(m), F(c), p && w(p);
|
|
235
|
+
const T = Q([
|
|
188
236
|
{
|
|
189
237
|
element: /* @__PURE__ */ t(
|
|
190
|
-
|
|
238
|
+
Jt,
|
|
191
239
|
{
|
|
192
|
-
shopDomain:
|
|
193
|
-
shopId:
|
|
240
|
+
shopDomain: y,
|
|
241
|
+
shopId: R,
|
|
194
242
|
shopPassword: H || void 0,
|
|
195
|
-
shopLogo:
|
|
196
|
-
children: /* @__PURE__ */ t(
|
|
243
|
+
shopLogo: C,
|
|
244
|
+
children: /* @__PURE__ */ t(L, { children: /* @__PURE__ */ t(rr, { children: /* @__PURE__ */ t(X, {}) }) })
|
|
197
245
|
}
|
|
198
246
|
),
|
|
199
|
-
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
247
|
+
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(or, {}) }),
|
|
200
248
|
children: [
|
|
201
249
|
{
|
|
202
250
|
path: "/admin/builder/*",
|
|
203
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
204
|
-
|
|
251
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(er, { children: /* @__PURE__ */ t(
|
|
252
|
+
$t,
|
|
205
253
|
{
|
|
206
|
-
blocks:
|
|
207
|
-
settings:
|
|
254
|
+
blocks: l,
|
|
255
|
+
settings: c,
|
|
208
256
|
header: d,
|
|
209
257
|
footer: u,
|
|
210
258
|
announcement: m
|
|
211
259
|
}
|
|
212
260
|
) }) }),
|
|
213
|
-
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
261
|
+
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(Yt, {}) })
|
|
214
262
|
},
|
|
215
263
|
...k,
|
|
216
264
|
{
|
|
217
265
|
path: "/checkout",
|
|
218
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
266
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(nr, {}) }),
|
|
219
267
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
220
268
|
loader: () => (document.title = "Checkout", !0)
|
|
221
269
|
},
|
|
222
270
|
{
|
|
223
271
|
path: "/top-up",
|
|
224
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
272
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(lr, {}) }),
|
|
225
273
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
226
274
|
loader: () => (document.title = "Top Up Balance", !0)
|
|
227
275
|
},
|
|
228
276
|
{
|
|
229
277
|
path: "/charges/:id",
|
|
230
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
278
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(ar, {}) }),
|
|
231
279
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
232
280
|
loader: () => (document.title = "Charges", !0)
|
|
233
281
|
},
|
|
234
282
|
{
|
|
235
283
|
path: "/orders/:id/:accessToken?",
|
|
236
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
284
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(cr, {}) }),
|
|
237
285
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
238
286
|
loader: () => (document.title = "Orders", !0)
|
|
239
287
|
},
|
|
240
288
|
{
|
|
241
289
|
path: "/subscriptions/:id/:accessToken?",
|
|
242
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
290
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(ir, {}) }),
|
|
243
291
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
244
292
|
loader: () => (document.title = "Subscriptions", !0)
|
|
245
293
|
},
|
|
246
294
|
{
|
|
247
295
|
path: s ? "/account" : "/customer-dash",
|
|
248
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */
|
|
249
|
-
/* @__PURE__ */ t(
|
|
250
|
-
/* @__PURE__ */ t(
|
|
296
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ E("div", { className: b.wrapper, children: [
|
|
297
|
+
/* @__PURE__ */ t(ur, {}),
|
|
298
|
+
/* @__PURE__ */ t(B, {}),
|
|
251
299
|
/* @__PURE__ */ t(
|
|
252
300
|
"div",
|
|
253
301
|
{
|
|
254
302
|
style: {
|
|
255
303
|
flex: "1 1 auto"
|
|
256
304
|
},
|
|
257
|
-
children: /* @__PURE__ */ t(
|
|
305
|
+
children: /* @__PURE__ */ t(dr, {})
|
|
258
306
|
}
|
|
259
307
|
),
|
|
260
|
-
/* @__PURE__ */ t(
|
|
308
|
+
/* @__PURE__ */ t(z, {})
|
|
261
309
|
] }) }),
|
|
262
310
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
263
311
|
loader: () => (document.title = s ? "Account" : "Customer Dashboard", !0)
|
|
264
312
|
},
|
|
265
313
|
{
|
|
266
314
|
path: "/validation",
|
|
267
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(
|
|
315
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(tr, {}) }),
|
|
268
316
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
269
317
|
loader: () => (document.title = "Validation", !0)
|
|
270
318
|
},
|
|
271
319
|
{
|
|
272
320
|
path: "/ticket/:id/:accessToken",
|
|
273
|
-
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */
|
|
274
|
-
/* @__PURE__ */ t(
|
|
321
|
+
element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ E("div", { className: b.wrapper, children: [
|
|
322
|
+
/* @__PURE__ */ t(B, {}),
|
|
275
323
|
/* @__PURE__ */ t(
|
|
276
324
|
"div",
|
|
277
325
|
{
|
|
@@ -280,10 +328,10 @@ const it = r.lazy(
|
|
|
280
328
|
width: "100%",
|
|
281
329
|
height: "100%"
|
|
282
330
|
},
|
|
283
|
-
children: /* @__PURE__ */ t(
|
|
331
|
+
children: /* @__PURE__ */ t(L, { children: /* @__PURE__ */ t(sr, {}) })
|
|
284
332
|
}
|
|
285
333
|
),
|
|
286
|
-
/* @__PURE__ */ t(
|
|
334
|
+
/* @__PURE__ */ t(z, {})
|
|
287
335
|
] }) }),
|
|
288
336
|
errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
|
|
289
337
|
loader: () => (document.title = "Ticket", !0)
|
|
@@ -296,9 +344,9 @@ const it = r.lazy(
|
|
|
296
344
|
]
|
|
297
345
|
}
|
|
298
346
|
]);
|
|
299
|
-
|
|
300
|
-
}, [n]), /* @__PURE__ */ t(r.Suspense, { fallback: null, children:
|
|
347
|
+
P(T);
|
|
348
|
+
}, [n]), /* @__PURE__ */ t(r.Suspense, { fallback: null, children: g && /* @__PURE__ */ t(J, { router: g }) });
|
|
301
349
|
};
|
|
302
350
|
export {
|
|
303
|
-
|
|
351
|
+
Cr as App
|
|
304
352
|
};
|