@billgangcom/theme-lib 1.120.1 → 1.120.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.cjs.js +1 -1
- package/dist/builder.es.js +182 -182
- package/package.json +1 -1
package/dist/builder.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),c=require("./builder-CWaG42kw.cjs"),m=require("./ticket-STaDp20p.cjs"),n=require("react"),v=require("./charge-BEnNfxFr.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),c=require("./builder-CWaG42kw.cjs"),m=require("./ticket-STaDp20p.cjs"),n=require("react"),v=require("./charge-BEnNfxFr.cjs"),_=require("./ui-components-s9Q6Wg3R.cjs"),e=require("@phosphor-icons/react"),N=({children:o,shopDomain:u,shopId:h,shopPassword:d,shopLogo:g})=>{const{setShopDomain:x,setShopId:j,setShopPassword:A,setShopTerms:p,setShopPrivacyPolicy:a,setShopRefundPolicy:f,setShopLogo:y}=c.useStorefrontStore();return n.useLayoutEffect(()=>{const s=async()=>{const{data:l}=await v.fetchTerms();p(l)},S=async()=>{const{data:l}=await v.fetchPrivacyPolicy();a(l)},w=async()=>{const{data:l}=await v.fetchRefundPolicy();f(l)};x(u),j(h),d&&A(d),g&&y(g),s(),S(),w()},[u,h,d]),t.jsx(t.Fragment,{children:o})},Q="_wrapper_1xuz3_18",b={wrapper:Q};function X(){_.registerIcons({X:e.XIcon,Plus:e.PlusIcon,Minus:e.MinusIcon,Check:e.CheckIcon,Clock:e.ClockIcon,Info:e.InfoIcon,Copy:e.CopyIcon,Trash:e.TrashIcon,Sliders:e.SlidersIcon,Image:e.ImageIcon,List:e.ListIcon,Handbag:e.HandbagIcon,Bag:e.BagIcon,Eye:e.EyeIcon,Crown:e.CrownIcon,ArrowUp:e.ArrowUpIcon,ArrowDown:e.ArrowDownIcon,Confetti:e.ConfettiIcon,ArrowLeft:e.ArrowLeftIcon,ArrowRight:e.ArrowRightIcon,ArrowLineUpRight:e.ArrowLineUpRightIcon,ArrowUpRight:e.ArrowUpRightIcon,ArrowUUpLeft:e.ArrowUUpLeftIcon,ArrowUUpRight:e.ArrowUUpRightIcon,CaretRight:e.CaretRightIcon,CaretDown:e.CaretDownIcon,CaretUp:e.CaretUpIcon,CaretLeft:e.CaretLeftIcon,MagnifyingGlass:e.MagnifyingGlassIcon,MagnifyingGlassMinus:e.MagnifyingGlassMinusIcon,ArrowLineDown:e.ArrowLineDownIcon,Selection:e.SelectionIcon,CloudArrowUpIcon:e.CloudArrowUpIcon,ArrowsHorizontal:e.ArrowsHorizontalIcon,ArrowsVertical:e.ArrowsVerticalIcon,CheckCircle:e.CheckCircleIcon,XCircle:e.XCircleIcon,Star:e.StarIcon,Fire:e.FireIcon,Lightning:e.LightningIcon,AlignCenterHorizontal:e.AlignCenterHorizontalIcon,File:e.FileIcon,FileText:e.FileTextIcon,BookOpen:e.BookOpenIcon,DownloadSimple:e.DownloadSimpleIcon,DiscordLogo:e.DiscordLogoIcon,TelegramLogo:e.TelegramLogoIcon,SignOut:e.SignOutIcon,Wallet:e.WalletIcon,PaperPlaneRight:e.PaperPlaneRightIcon,ChatsTeardrop:e.ChatsTeardropIcon,DotsSixVertical:e.DotsSixVerticalIcon,Share:e.ShareIcon,Shield:e.ShieldIcon,ShieldCheck:e.ShieldCheckIcon,FileCloud:e.FileCloudIcon,Lock:e.LockIcon,Heart:e.HeartIcon,User:e.UserIcon,Calendar:e.CalendarIcon,Smiley:e.SmileyIcon,Globe:e.GlobeIcon,House:e.HouseIcon,HouseSimple:e.HouseSimpleIcon,CurrencyCircleDollar:e.CurrencyCircleDollarIcon,Medal:e.MedalIcon,CalendarCheck:e.CalendarCheckIcon,Question:e.QuestionIcon,Warning:e.WarningIcon,WarningDiamond:e.WarningDiamondIcon,TreeStructure:e.TreeStructureIcon,Palette:e.PaletteIcon,Gear:e.GearIcon,PaintBrushBroad:e.PaintBrushBroadIcon,TextAa:e.TextAaIcon,TextB:e.TextBIcon,TextH:e.TextHIcon,CornersOut:e.CornersOutIcon,ArrowSquareIn:e.ArrowSquareInIcon,Textbox:e.TextboxIcon,SquaresFour:e.SquaresFourIcon,SealQuestion:e.SealQuestionIcon,ChatCentered:e.ChatCenteredIcon,Ticket:e.TicketIcon,UserCircleGear:e.UserCircleGearIcon,Desktop:e.DesktopIcon,DeviceTabletCamera:e.DeviceTabletCameraIcon,DeviceMobileCamera:e.DeviceMobileCameraIcon,Cards:e.CardsIcon,PushPin:e.PushPinIcon,TextAlignLeft:e.TextAlignLeftIcon,TextAlignRight:e.TextAlignRightIcon,TextAlignCenter:e.TextAlignCenterIcon,AlignLeft:e.AlignLeftIcon,AlignRight:e.AlignRightIcon,AlignTop:e.AlignTopIcon,AlignBottom:e.AlignBottomIcon,TextItalic:e.TextItalicIcon,TextStrikethrough:e.TextStrikethroughIcon,TextUnderline:e.TextUnderlineIcon})}const J=n.lazy(()=>Promise.resolve().then(()=>require("./builder-CWaG42kw.cjs")).then(o=>o.index).then(o=>({default:o.BuilderPage}))),$=n.lazy(()=>Promise.resolve().then(()=>require("./index-DT_aTpZf.cjs")).then(o=>({default:o.ErrorPage}))),K=n.lazy(()=>Promise.resolve().then(()=>require("./index-BZ7C0iBt.cjs")).then(o=>({default:o.ActivePage}))),Y=n.lazy(()=>Promise.resolve().then(()=>require("./validation-DLYUReRT.cjs")).then(o=>({default:o.ValidationPage}))),Z=n.lazy(()=>Promise.resolve().then(()=>require("./index-BpWh-qOk.cjs")).then(o=>({default:o.WrapperPage}))),ee=n.lazy(()=>Promise.resolve().then(()=>require("./index-1x0-wbdS.cjs")).then(o=>({default:o.RouterErrorPage}))),i=n.lazy(()=>Promise.resolve().then(()=>require("./index-Bl91R63p.cjs")).then(o=>({default:o.DynamicErrorPage}))),te=n.lazy(()=>Promise.resolve().then(()=>require("./checkout-CF05O03i.cjs")).then(o=>({default:o.Checkout}))),oe=n.lazy(()=>Promise.resolve().then(()=>require("./charge-BEnNfxFr.cjs")).then(o=>o.index$1).then(o=>({default:o.ChargePage}))),ne=n.lazy(()=>Promise.resolve().then(()=>require("./ticket-STaDp20p.cjs")).then(o=>o.index).then(o=>({default:o.TicketItem}))),re=n.lazy(()=>Promise.resolve().then(()=>require("./subscription-Cd-C2FDT.cjs")).then(o=>o.index).then(o=>({default:o.Subscription}))),se=n.lazy(()=>Promise.resolve().then(()=>require("./top-up-ZgLo1nZF.cjs")).then(o=>({default:o.TopUpBalance}))),ce=n.lazy(()=>Promise.resolve().then(()=>require("./order-BEBOxyTb.cjs")).then(o=>o.index).then(o=>({default:o.OrderPage}))),ie=n.lazy(()=>Promise.resolve().then(()=>require("./charge-BEnNfxFr.cjs")).then(o=>o.index).then(o=>({default:o.CustomerDashboard}))),q=n.lazy(()=>Promise.resolve().then(()=>require("./charge-BEnNfxFr.cjs")).then(o=>o.recapcha).then(o=>({default:o.ReCaptchaProvider}))),ae=()=>null,r=({children:o})=>t.jsx(n.Suspense,{fallback:t.jsx(ae,{}),children:o}),le=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-Dyplqbia.cjs")).then(o=>o.index).then(o=>({default:o.RenderAnnouncement}))),U=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-Dyplqbia.cjs")).then(o=>o.index).then(o=>({default:o.RenderFooter}))),B=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-Dyplqbia.cjs")).then(o=>o.index).then(o=>({default:o.RenderHeader}))),ue=o=>{var L;const{blocks:u,settings:h,header:d,footer:g,announcement:x,routes:j=[],shopLogo:A,apiURLs:p,isAntistock:a=!1}=o,[f,y]=n.useState(null),{general:s,setIsAntistock:S}=c.useGeneralStore(),{setApiUrls:w}=c.useApiStore(),l=((L=s==null?void 0:s.info)==null?void 0:L.customerAccountSettings)??"OPTIONAL",E=l==="DISABLED",{setBlocks:z,setSourceBlocks:H,setHeader:F,setFooter:O,setAnnouncement:M,setSettings:G}=c.useBlocksStore(),{themeSettings:C}=c.useThemeSettingsStore(),{settings:T,setSettings:W}=c.useSettingsStore(),P=c.IS_LOCAL_HOST?localStorage.getItem("fakeDomain")||"":window.location.hostname,V=localStorage.getItem("shopPassword"),D=localStorage.getItem("shopId")||"";return n.useEffect(()=>{S(a)},[a,S]),n.useEffect(()=>{!D&&(s!=null&&s.info.id)&&localStorage.setItem("shopId",s==null?void 0:s.info.id)},[s]),n.useEffect(()=>{!P&&!a&&localStorage.setItem("fakeDomain","drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"),!P&&a&&localStorage.setItem("fakeDomain","eva8.astck.io")},[P]),n.useEffect(()=>{if(C&&T){const I=m.generateDynamicStyles(C,T);m.loadCustomFonts(),m.setupDynamicFonts(C),m.injectStylesToDOM(I)}},[C,JSON.stringify(T),window.location.hostname]),n.useEffect(()=>{const k=new h().blockSettings;W(k)},[]),n.useEffect(()=>{X()},[]),n.useLayoutEffect(()=>{const I={};Object.keys(u).map(R=>{I[R]=u[R]}),H(I),z(I),F(d),O(g),M(x),G(h),p&&w(p);const k=c.createBrowserRouter([{element:t.jsx(N,{shopDomain:P,shopId:D,shopPassword:V||void 0,shopLogo:A,children:t.jsx(q,{children:t.jsx(Z,{children:t.jsx(c.Outlet,{})})})}),errorElement:t.jsx(r,{children:t.jsx(ee,{})}),children:[{path:"/admin/builder/*",element:t.jsx(r,{children:t.jsx(K,{children:t.jsx(J,{blocks:u,settings:h,header:d,footer:g,announcement:x})})}),errorElement:t.jsx(r,{children:t.jsx($,{})})},...j,{path:"/checkout",element:t.jsx(r,{children:t.jsx(te,{})}),errorElement:t.jsx(r,{children:t.jsx(i,{})}),loader:()=>(document.title="Checkout",!0)},{path:"/top-up",element:t.jsx(r,{children:t.jsx(se,{})}),errorElement:t.jsx(r,{children:t.jsx(i,{})}),loader:()=>(document.title="Top Up Balance",!0)},{path:"/charges/:id",element:t.jsx(r,{children:t.jsx(oe,{})}),errorElement:t.jsx(r,{children:t.jsx(i,{})}),loader:()=>(document.title="Charges",!0)},{path:"/orders/:id/:accessToken?",element:t.jsx(r,{children:t.jsx(ce,{})}),errorElement:t.jsx(r,{children:t.jsx(i,{})}),loader:()=>(document.title="Orders",!0)},{path:"/subscriptions/:id/:accessToken?",element:t.jsx(r,{children:t.jsx(re,{})}),errorElement:t.jsx(r,{children:t.jsx(i,{})}),loader:()=>(document.title="Subscriptions",!0)},...E?[]:[{path:a?"/account":"/customer-dash",element:t.jsx(r,{children:t.jsxs("div",{className:b.wrapper,children:[t.jsx(le,{}),t.jsx(B,{}),t.jsx("div",{style:{flex:"1 1 auto"},children:t.jsx(ie,{})}),t.jsx(U,{})]})}),errorElement:t.jsx(r,{children:t.jsx(i,{})}),loader:()=>(document.title=a?"Account":"Customer Dashboard",!0)}],{path:"/validation",element:t.jsx(r,{children:t.jsx(Y,{})}),errorElement:t.jsx(r,{children:t.jsx(i,{})}),loader:()=>(document.title="Validation",!0)},{path:"/ticket/:id/:accessToken",element:t.jsx(r,{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(ne,{})})}),t.jsx(U,{})]})}),errorElement:t.jsx(r,{children:t.jsx(i,{})}),loader:()=>(document.title="Ticket",!0)},{path:"*",element:t.jsx(m.DynamicRouteWrapper,{}),errorElement:t.jsx(r,{children:t.jsx(i,{})})}]}]);y(k)},[s,l]),t.jsx(n.Suspense,{fallback:null,children:f&&t.jsx(c.RouterProvider,{router:f})})};exports.App=ue;
|
package/dist/builder.es.js
CHANGED
|
@@ -1,219 +1,220 @@
|
|
|
1
|
-
import { jsx as t, Fragment as
|
|
2
|
-
import { N as
|
|
3
|
-
import { f as
|
|
4
|
-
import o, { Suspense as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { w as
|
|
7
|
-
import { TextUnderlineIcon as
|
|
8
|
-
const
|
|
1
|
+
import { jsx as t, Fragment as _, jsxs as R } from "react/jsx-runtime";
|
|
2
|
+
import { N as j, K as V, j as N, c as q, m as Q, a as X, M as J, ai as K, aj as $, ak as Y } from "./builder-CE6yg5oK.js";
|
|
3
|
+
import { f as Z, l as ee, j as te, k as oe, D as ne } from "./ticket-KYg6_LAo.js";
|
|
4
|
+
import o, { Suspense as re } from "react";
|
|
5
|
+
import { _ as ce, $ as ae, a0 as ie } from "./charge-B1GrtVWc.js";
|
|
6
|
+
import { w as se } from "./ui-components-CpDQ53a4.js";
|
|
7
|
+
import { TextUnderlineIcon as le, TextStrikethroughIcon as de, TextItalicIcon as ue, AlignBottomIcon as he, AlignTopIcon as Ie, AlignRightIcon as me, AlignLeftIcon as ge, TextAlignCenterIcon as pe, TextAlignRightIcon as fe, TextAlignLeftIcon as Se, PushPinIcon as Ce, CardsIcon as Ae, DeviceMobileCameraIcon as ye, DeviceTabletCameraIcon as we, DesktopIcon as ke, UserCircleGearIcon as Te, TicketIcon as Pe, ChatCenteredIcon as De, SealQuestionIcon as Le, SquaresFourIcon as Re, TextboxIcon as xe, ArrowSquareInIcon as be, CornersOutIcon as Be, TextHIcon as Ee, TextBIcon as Ue, TextAaIcon as ze, PaintBrushBroadIcon as ve, GearIcon as He, PaletteIcon as Fe, TreeStructureIcon as Oe, WarningDiamondIcon as Me, WarningIcon as Ge, QuestionIcon as We, CalendarCheckIcon as _e, MedalIcon as je, CurrencyCircleDollarIcon as Ve, HouseSimpleIcon as Ne, HouseIcon as qe, GlobeIcon as Qe, SmileyIcon as Xe, CalendarIcon as Je, UserIcon as Ke, HeartIcon as $e, LockIcon as Ye, FileCloudIcon as Ze, ShieldCheckIcon as et, ShieldIcon as tt, ShareIcon as ot, DotsSixVerticalIcon as nt, ChatsTeardropIcon as rt, PaperPlaneRightIcon as ct, WalletIcon as at, SignOutIcon as it, TelegramLogoIcon as st, DiscordLogoIcon as lt, DownloadSimpleIcon as dt, BookOpenIcon as ut, FileTextIcon as ht, FileIcon as It, AlignCenterHorizontalIcon as mt, LightningIcon as gt, FireIcon as pt, StarIcon as ft, XCircleIcon as St, CheckCircleIcon as Ct, ArrowsVerticalIcon as At, ArrowsHorizontalIcon as yt, CloudArrowUpIcon as wt, SelectionIcon as kt, ArrowLineDownIcon as Tt, MagnifyingGlassMinusIcon as Pt, MagnifyingGlassIcon as Dt, CaretLeftIcon as Lt, CaretUpIcon as Rt, CaretDownIcon as xt, CaretRightIcon as bt, ArrowUUpRightIcon as Bt, ArrowUUpLeftIcon as Et, ArrowUpRightIcon as Ut, ArrowLineUpRightIcon as zt, ArrowRightIcon as vt, ArrowLeftIcon as Ht, ConfettiIcon as Ft, ArrowDownIcon as Ot, ArrowUpIcon as Mt, CrownIcon as Gt, EyeIcon as Wt, BagIcon as _t, HandbagIcon as jt, ListIcon as Vt, ImageIcon as Nt, SlidersIcon as qt, TrashIcon as Qt, CopyIcon as Xt, InfoIcon as Jt, ClockIcon as Kt, CheckIcon as $t, MinusIcon as Yt, PlusIcon as Zt, XIcon as eo } from "@phosphor-icons/react";
|
|
8
|
+
const to = ({
|
|
9
9
|
children: e,
|
|
10
10
|
shopDomain: s,
|
|
11
11
|
shopId: l,
|
|
12
12
|
shopPassword: d,
|
|
13
|
-
shopLogo:
|
|
13
|
+
shopLogo: h
|
|
14
14
|
}) => {
|
|
15
15
|
const {
|
|
16
16
|
setShopDomain: I,
|
|
17
17
|
setShopId: C,
|
|
18
|
-
setShopPassword:
|
|
18
|
+
setShopPassword: A,
|
|
19
19
|
setShopTerms: m,
|
|
20
20
|
setShopPrivacyPolicy: a,
|
|
21
21
|
setShopRefundPolicy: g,
|
|
22
|
-
setShopLogo:
|
|
23
|
-
} =
|
|
22
|
+
setShopLogo: y
|
|
23
|
+
} = j();
|
|
24
24
|
return o.useLayoutEffect(() => {
|
|
25
25
|
const r = async () => {
|
|
26
|
-
const { data: i } = await
|
|
26
|
+
const { data: i } = await ce();
|
|
27
27
|
m(i);
|
|
28
28
|
}, p = async () => {
|
|
29
|
-
const { data: i } = await
|
|
29
|
+
const { data: i } = await ae();
|
|
30
30
|
a(i);
|
|
31
31
|
}, w = async () => {
|
|
32
|
-
const { data: i } = await
|
|
32
|
+
const { data: i } = await ie();
|
|
33
33
|
g(i);
|
|
34
34
|
};
|
|
35
|
-
I(s), C(l), d &&
|
|
36
|
-
}, [s, l, d]), /* @__PURE__ */ t(
|
|
37
|
-
},
|
|
38
|
-
wrapper:
|
|
35
|
+
I(s), C(l), d && A(d), h && y(h), r(), p(), w();
|
|
36
|
+
}, [s, l, d]), /* @__PURE__ */ t(_, { children: e });
|
|
37
|
+
}, oo = "_wrapper_1xuz3_18", x = {
|
|
38
|
+
wrapper: oo
|
|
39
39
|
};
|
|
40
|
-
function
|
|
41
|
-
|
|
40
|
+
function no() {
|
|
41
|
+
se({
|
|
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
|
-
ArrowDown:
|
|
60
|
-
Confetti:
|
|
61
|
-
ArrowLeft:
|
|
62
|
-
ArrowRight:
|
|
63
|
-
ArrowLineUpRight:
|
|
64
|
-
ArrowUpRight:
|
|
65
|
-
ArrowUUpLeft:
|
|
66
|
-
ArrowUUpRight:
|
|
67
|
-
CaretRight:
|
|
68
|
-
CaretDown:
|
|
69
|
-
CaretUp:
|
|
70
|
-
CaretLeft:
|
|
71
|
-
MagnifyingGlass:
|
|
72
|
-
MagnifyingGlassMinus:
|
|
73
|
-
ArrowLineDown:
|
|
74
|
-
Selection:
|
|
75
|
-
CloudArrowUpIcon:
|
|
43
|
+
X: eo,
|
|
44
|
+
Plus: Zt,
|
|
45
|
+
Minus: Yt,
|
|
46
|
+
Check: $t,
|
|
47
|
+
Clock: Kt,
|
|
48
|
+
Info: Jt,
|
|
49
|
+
Copy: Xt,
|
|
50
|
+
Trash: Qt,
|
|
51
|
+
Sliders: qt,
|
|
52
|
+
Image: Nt,
|
|
53
|
+
List: Vt,
|
|
54
|
+
Handbag: jt,
|
|
55
|
+
Bag: _t,
|
|
56
|
+
Eye: Wt,
|
|
57
|
+
Crown: Gt,
|
|
58
|
+
ArrowUp: Mt,
|
|
59
|
+
ArrowDown: Ot,
|
|
60
|
+
Confetti: Ft,
|
|
61
|
+
ArrowLeft: Ht,
|
|
62
|
+
ArrowRight: vt,
|
|
63
|
+
ArrowLineUpRight: zt,
|
|
64
|
+
ArrowUpRight: Ut,
|
|
65
|
+
ArrowUUpLeft: Et,
|
|
66
|
+
ArrowUUpRight: Bt,
|
|
67
|
+
CaretRight: bt,
|
|
68
|
+
CaretDown: xt,
|
|
69
|
+
CaretUp: Rt,
|
|
70
|
+
CaretLeft: Lt,
|
|
71
|
+
MagnifyingGlass: Dt,
|
|
72
|
+
MagnifyingGlassMinus: Pt,
|
|
73
|
+
ArrowLineDown: Tt,
|
|
74
|
+
Selection: kt,
|
|
75
|
+
CloudArrowUpIcon: wt,
|
|
76
76
|
ArrowsHorizontal: yt,
|
|
77
|
-
ArrowsVertical:
|
|
77
|
+
ArrowsVertical: At,
|
|
78
78
|
// Статусы и действия
|
|
79
|
-
CheckCircle:
|
|
80
|
-
XCircle:
|
|
81
|
-
Star:
|
|
82
|
-
Fire:
|
|
83
|
-
Lightning:
|
|
84
|
-
AlignCenterHorizontal:
|
|
79
|
+
CheckCircle: Ct,
|
|
80
|
+
XCircle: St,
|
|
81
|
+
Star: ft,
|
|
82
|
+
Fire: pt,
|
|
83
|
+
Lightning: gt,
|
|
84
|
+
AlignCenterHorizontal: mt,
|
|
85
85
|
// Файлы и документы
|
|
86
|
-
File:
|
|
86
|
+
File: It,
|
|
87
87
|
FileText: ht,
|
|
88
|
-
BookOpen:
|
|
89
|
-
DownloadSimple:
|
|
88
|
+
BookOpen: ut,
|
|
89
|
+
DownloadSimple: dt,
|
|
90
90
|
// Социальные сети
|
|
91
|
-
DiscordLogo:
|
|
92
|
-
TelegramLogo:
|
|
91
|
+
DiscordLogo: lt,
|
|
92
|
+
TelegramLogo: st,
|
|
93
93
|
// Навигация и интерфейс
|
|
94
|
-
SignOut:
|
|
95
|
-
Wallet:
|
|
96
|
-
PaperPlaneRight:
|
|
97
|
-
ChatsTeardrop:
|
|
98
|
-
DotsSixVertical:
|
|
99
|
-
Share:
|
|
94
|
+
SignOut: it,
|
|
95
|
+
Wallet: at,
|
|
96
|
+
PaperPlaneRight: ct,
|
|
97
|
+
ChatsTeardrop: rt,
|
|
98
|
+
DotsSixVertical: nt,
|
|
99
|
+
Share: ot,
|
|
100
100
|
// Безопасность и файлы (для Checkout/Secured)
|
|
101
|
-
Shield:
|
|
102
|
-
ShieldCheck:
|
|
103
|
-
FileCloud:
|
|
104
|
-
Lock:
|
|
101
|
+
Shield: tt,
|
|
102
|
+
ShieldCheck: et,
|
|
103
|
+
FileCloud: Ze,
|
|
104
|
+
Lock: Ye,
|
|
105
105
|
// Специальные иконки
|
|
106
|
-
Heart:
|
|
107
|
-
User:
|
|
108
|
-
Calendar:
|
|
109
|
-
Smiley:
|
|
110
|
-
Globe:
|
|
106
|
+
Heart: $e,
|
|
107
|
+
User: Ke,
|
|
108
|
+
Calendar: Je,
|
|
109
|
+
Smiley: Xe,
|
|
110
|
+
Globe: Qe,
|
|
111
111
|
// Иконки для навигации в сайдбаре
|
|
112
|
-
House:
|
|
113
|
-
HouseSimple:
|
|
114
|
-
CurrencyCircleDollar:
|
|
115
|
-
Medal:
|
|
116
|
-
CalendarCheck:
|
|
117
|
-
Question:
|
|
112
|
+
House: qe,
|
|
113
|
+
HouseSimple: Ne,
|
|
114
|
+
CurrencyCircleDollar: Ve,
|
|
115
|
+
Medal: je,
|
|
116
|
+
CalendarCheck: _e,
|
|
117
|
+
Question: We,
|
|
118
118
|
// Иконки для статусов
|
|
119
|
-
Warning:
|
|
120
|
-
WarningDiamond:
|
|
119
|
+
Warning: Ge,
|
|
120
|
+
WarningDiamond: Me,
|
|
121
121
|
// Иконки для билдера (Builder icons)
|
|
122
|
-
TreeStructure:
|
|
123
|
-
Palette:
|
|
124
|
-
Gear:
|
|
125
|
-
PaintBrushBroad:
|
|
126
|
-
TextAa:
|
|
127
|
-
TextB:
|
|
128
|
-
TextH:
|
|
129
|
-
CornersOut:
|
|
130
|
-
ArrowSquareIn:
|
|
131
|
-
Textbox:
|
|
132
|
-
SquaresFour:
|
|
133
|
-
SealQuestion:
|
|
134
|
-
ChatCentered:
|
|
135
|
-
Ticket:
|
|
136
|
-
UserCircleGear:
|
|
137
|
-
Desktop:
|
|
138
|
-
DeviceTabletCamera:
|
|
122
|
+
TreeStructure: Oe,
|
|
123
|
+
Palette: Fe,
|
|
124
|
+
Gear: He,
|
|
125
|
+
PaintBrushBroad: ve,
|
|
126
|
+
TextAa: ze,
|
|
127
|
+
TextB: Ue,
|
|
128
|
+
TextH: Ee,
|
|
129
|
+
CornersOut: Be,
|
|
130
|
+
ArrowSquareIn: be,
|
|
131
|
+
Textbox: xe,
|
|
132
|
+
SquaresFour: Re,
|
|
133
|
+
SealQuestion: Le,
|
|
134
|
+
ChatCentered: De,
|
|
135
|
+
Ticket: Pe,
|
|
136
|
+
UserCircleGear: Te,
|
|
137
|
+
Desktop: ke,
|
|
138
|
+
DeviceTabletCamera: we,
|
|
139
139
|
DeviceMobileCamera: ye,
|
|
140
|
-
Cards:
|
|
141
|
-
PushPin:
|
|
140
|
+
Cards: Ae,
|
|
141
|
+
PushPin: Ce,
|
|
142
142
|
// Иконки для выравнивания текста и отступов
|
|
143
|
-
TextAlignLeft:
|
|
144
|
-
TextAlignRight:
|
|
145
|
-
TextAlignCenter:
|
|
146
|
-
AlignLeft:
|
|
147
|
-
AlignRight:
|
|
148
|
-
AlignTop:
|
|
143
|
+
TextAlignLeft: Se,
|
|
144
|
+
TextAlignRight: fe,
|
|
145
|
+
TextAlignCenter: pe,
|
|
146
|
+
AlignLeft: ge,
|
|
147
|
+
AlignRight: me,
|
|
148
|
+
AlignTop: Ie,
|
|
149
149
|
AlignBottom: he,
|
|
150
150
|
// Иконки для форматирования текста
|
|
151
|
-
TextItalic:
|
|
152
|
-
TextStrikethrough:
|
|
153
|
-
TextUnderline:
|
|
151
|
+
TextItalic: ue,
|
|
152
|
+
TextStrikethrough: de,
|
|
153
|
+
TextUnderline: le
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
const
|
|
156
|
+
const ro = o.lazy(
|
|
157
157
|
() => import("./builder-CE6yg5oK.js").then((e) => e.an).then((e) => ({ default: e.BuilderPage }))
|
|
158
|
-
), ro = o.lazy(
|
|
159
|
-
() => import("./index-Be2NRkjG.js").then((e) => ({ default: e.ErrorPage }))
|
|
160
158
|
), co = o.lazy(
|
|
161
|
-
() => import("./index-
|
|
159
|
+
() => import("./index-Be2NRkjG.js").then((e) => ({ default: e.ErrorPage }))
|
|
162
160
|
), ao = o.lazy(
|
|
163
|
-
() => import("./
|
|
161
|
+
() => import("./index-DTAlnIyB.js").then((e) => ({ default: e.ActivePage }))
|
|
164
162
|
), io = o.lazy(
|
|
165
|
-
() => import("./
|
|
163
|
+
() => import("./validation-DC8gCoJH.js").then((e) => ({ default: e.ValidationPage }))
|
|
166
164
|
), so = o.lazy(
|
|
165
|
+
() => import("./index-C9ZIjLVQ.js").then((e) => ({ default: e.WrapperPage }))
|
|
166
|
+
), lo = o.lazy(
|
|
167
167
|
() => import("./index-Dez8BiQX.js").then((e) => ({ default: e.RouterErrorPage }))
|
|
168
168
|
), c = o.lazy(
|
|
169
169
|
() => import("./index-Cs9xerh4.js").then((e) => ({ default: e.DynamicErrorPage }))
|
|
170
|
-
),
|
|
170
|
+
), uo = o.lazy(
|
|
171
171
|
() => import("./checkout-B21z1TGE.js").then((e) => ({ default: e.Checkout }))
|
|
172
172
|
), ho = o.lazy(
|
|
173
173
|
() => import("./charge-B1GrtVWc.js").then((e) => e.a5).then((e) => ({ default: e.ChargePage }))
|
|
174
|
-
), uo = o.lazy(
|
|
175
|
-
() => import("./ticket-KYg6_LAo.js").then((e) => e.m).then((e) => ({ default: e.TicketItem }))
|
|
176
174
|
), Io = o.lazy(
|
|
177
|
-
() => import("./
|
|
175
|
+
() => import("./ticket-KYg6_LAo.js").then((e) => e.m).then((e) => ({ default: e.TicketItem }))
|
|
178
176
|
), mo = o.lazy(
|
|
179
|
-
() => import("./
|
|
177
|
+
() => import("./subscription-ts1zCYfh.js").then((e) => e.i).then((e) => ({ default: e.Subscription }))
|
|
180
178
|
), go = o.lazy(
|
|
181
|
-
() => import("./
|
|
179
|
+
() => import("./top-up-dXcEKblL.js").then((e) => ({ default: e.TopUpBalance }))
|
|
182
180
|
), po = o.lazy(
|
|
181
|
+
() => import("./order-dg2Oyqn4.js").then((e) => e.i).then((e) => ({ default: e.OrderPage }))
|
|
182
|
+
), fo = o.lazy(
|
|
183
183
|
() => import("./charge-B1GrtVWc.js").then((e) => e.a4).then((e) => ({ default: e.CustomerDashboard }))
|
|
184
|
-
),
|
|
184
|
+
), b = o.lazy(
|
|
185
185
|
() => import("./charge-B1GrtVWc.js").then((e) => e.a3).then((e) => ({ default: e.ReCaptchaProvider }))
|
|
186
|
-
),
|
|
186
|
+
), So = () => null, n = ({ children: e }) => /* @__PURE__ */ t(re, { fallback: /* @__PURE__ */ t(So, {}), children: e }), Co = o.lazy(
|
|
187
187
|
() => import("./builder-components-5Z24DJJP.js").then((e) => e.i).then((e) => ({
|
|
188
188
|
default: e.RenderAnnouncement
|
|
189
189
|
}))
|
|
190
|
-
),
|
|
190
|
+
), B = o.lazy(
|
|
191
191
|
() => import("./builder-components-5Z24DJJP.js").then((e) => e.i).then((e) => ({
|
|
192
192
|
default: e.RenderFooter
|
|
193
193
|
}))
|
|
194
|
-
),
|
|
194
|
+
), E = o.lazy(
|
|
195
195
|
() => import("./builder-components-5Z24DJJP.js").then((e) => e.i).then((e) => ({
|
|
196
196
|
default: e.RenderHeader
|
|
197
197
|
}))
|
|
198
|
-
),
|
|
198
|
+
), Lo = (e) => {
|
|
199
|
+
var D;
|
|
199
200
|
const {
|
|
200
201
|
blocks: s,
|
|
201
202
|
settings: l,
|
|
202
203
|
header: d,
|
|
203
|
-
footer:
|
|
204
|
+
footer: h,
|
|
204
205
|
announcement: I,
|
|
205
206
|
routes: C = [],
|
|
206
|
-
shopLogo:
|
|
207
|
+
shopLogo: A,
|
|
207
208
|
apiURLs: m,
|
|
208
209
|
isAntistock: a = !1
|
|
209
|
-
} = e, [g,
|
|
210
|
-
setBlocks:
|
|
211
|
-
setSourceBlocks:
|
|
212
|
-
setHeader:
|
|
213
|
-
setFooter:
|
|
214
|
-
setAnnouncement:
|
|
215
|
-
setSettings:
|
|
216
|
-
} =
|
|
210
|
+
} = e, [g, y] = o.useState(null), { general: r, setIsAntistock: p } = V(), { setApiUrls: w } = N(), i = ((D = r == null ? void 0 : r.info) == null ? void 0 : D.customerAccountSettings) ?? "OPTIONAL", U = i === "DISABLED", {
|
|
211
|
+
setBlocks: z,
|
|
212
|
+
setSourceBlocks: v,
|
|
213
|
+
setHeader: H,
|
|
214
|
+
setFooter: F,
|
|
215
|
+
setAnnouncement: O,
|
|
216
|
+
setSettings: M
|
|
217
|
+
} = q(), { themeSettings: f } = Q(), { settings: k, setSettings: G } = X(), S = J ? localStorage.getItem("fakeDomain") || "" : window.location.hostname, W = localStorage.getItem("shopPassword"), P = localStorage.getItem("shopId") || "";
|
|
217
218
|
return o.useEffect(() => {
|
|
218
219
|
p(a);
|
|
219
220
|
}, [a, p]), o.useEffect(() => {
|
|
@@ -222,58 +223,57 @@ const no = o.lazy(
|
|
|
222
223
|
!S && !a && localStorage.setItem("fakeDomain", "drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"), !S && a && localStorage.setItem("fakeDomain", "eva8.astck.io");
|
|
223
224
|
}, [S]), o.useEffect(() => {
|
|
224
225
|
if (f && k) {
|
|
225
|
-
const
|
|
226
|
-
|
|
226
|
+
const u = Z(f, k);
|
|
227
|
+
ee(), te(f), oe(u);
|
|
227
228
|
}
|
|
228
229
|
}, [f, JSON.stringify(k), window.location.hostname]), o.useEffect(() => {
|
|
229
230
|
const T = new l().blockSettings;
|
|
230
|
-
|
|
231
|
+
G(T);
|
|
231
232
|
}, []), o.useEffect(() => {
|
|
232
|
-
|
|
233
|
+
no();
|
|
233
234
|
}, []), o.useLayoutEffect(() => {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
const T = J([
|
|
235
|
+
const u = {};
|
|
236
|
+
Object.keys(s).map((L) => {
|
|
237
|
+
u[L] = s[L];
|
|
238
|
+
}), v(u), z(u), H(d), F(h), O(I), M(l), m && w(m);
|
|
239
|
+
const T = K([
|
|
240
240
|
{
|
|
241
241
|
element: /* @__PURE__ */ t(
|
|
242
|
-
|
|
242
|
+
to,
|
|
243
243
|
{
|
|
244
244
|
shopDomain: S,
|
|
245
245
|
shopId: P,
|
|
246
|
-
shopPassword:
|
|
247
|
-
shopLogo:
|
|
248
|
-
children: /* @__PURE__ */ t(
|
|
246
|
+
shopPassword: W || void 0,
|
|
247
|
+
shopLogo: A,
|
|
248
|
+
children: /* @__PURE__ */ t(b, { children: /* @__PURE__ */ t(so, { children: /* @__PURE__ */ t($, {}) }) })
|
|
249
249
|
}
|
|
250
250
|
),
|
|
251
|
-
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
251
|
+
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(lo, {}) }),
|
|
252
252
|
children: [
|
|
253
253
|
{
|
|
254
254
|
path: "/admin/builder/*",
|
|
255
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
256
|
-
|
|
255
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(ao, { children: /* @__PURE__ */ t(
|
|
256
|
+
ro,
|
|
257
257
|
{
|
|
258
258
|
blocks: s,
|
|
259
259
|
settings: l,
|
|
260
260
|
header: d,
|
|
261
|
-
footer:
|
|
261
|
+
footer: h,
|
|
262
262
|
announcement: I
|
|
263
263
|
}
|
|
264
264
|
) }) }),
|
|
265
|
-
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
265
|
+
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(co, {}) })
|
|
266
266
|
},
|
|
267
267
|
...C,
|
|
268
268
|
{
|
|
269
269
|
path: "/checkout",
|
|
270
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
270
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(uo, {}) }),
|
|
271
271
|
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) }),
|
|
272
272
|
loader: () => (document.title = "Checkout", !0)
|
|
273
273
|
},
|
|
274
274
|
{
|
|
275
275
|
path: "/top-up",
|
|
276
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
276
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(go, {}) }),
|
|
277
277
|
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) }),
|
|
278
278
|
loader: () => (document.title = "Top Up Balance", !0)
|
|
279
279
|
},
|
|
@@ -285,32 +285,32 @@ const no = o.lazy(
|
|
|
285
285
|
},
|
|
286
286
|
{
|
|
287
287
|
path: "/orders/:id/:accessToken?",
|
|
288
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
288
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(po, {}) }),
|
|
289
289
|
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) }),
|
|
290
290
|
loader: () => (document.title = "Orders", !0)
|
|
291
291
|
},
|
|
292
292
|
{
|
|
293
293
|
path: "/subscriptions/:id/:accessToken?",
|
|
294
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
294
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(mo, {}) }),
|
|
295
295
|
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) }),
|
|
296
296
|
loader: () => (document.title = "Subscriptions", !0)
|
|
297
297
|
},
|
|
298
|
-
...
|
|
298
|
+
...U ? [] : [
|
|
299
299
|
{
|
|
300
300
|
path: a ? "/account" : "/customer-dash",
|
|
301
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */
|
|
302
|
-
/* @__PURE__ */ t(
|
|
303
|
-
/* @__PURE__ */ t(
|
|
301
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ R("div", { className: x.wrapper, children: [
|
|
302
|
+
/* @__PURE__ */ t(Co, {}),
|
|
303
|
+
/* @__PURE__ */ t(E, {}),
|
|
304
304
|
/* @__PURE__ */ t(
|
|
305
305
|
"div",
|
|
306
306
|
{
|
|
307
307
|
style: {
|
|
308
308
|
flex: "1 1 auto"
|
|
309
309
|
},
|
|
310
|
-
children: /* @__PURE__ */ t(
|
|
310
|
+
children: /* @__PURE__ */ t(fo, {})
|
|
311
311
|
}
|
|
312
312
|
),
|
|
313
|
-
/* @__PURE__ */ t(
|
|
313
|
+
/* @__PURE__ */ t(B, {})
|
|
314
314
|
] }) }),
|
|
315
315
|
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) }),
|
|
316
316
|
loader: () => (document.title = a ? "Account" : "Customer Dashboard", !0)
|
|
@@ -318,14 +318,14 @@ const no = o.lazy(
|
|
|
318
318
|
],
|
|
319
319
|
{
|
|
320
320
|
path: "/validation",
|
|
321
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(
|
|
321
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(io, {}) }),
|
|
322
322
|
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) }),
|
|
323
323
|
loader: () => (document.title = "Validation", !0)
|
|
324
324
|
},
|
|
325
325
|
{
|
|
326
326
|
path: "/ticket/:id/:accessToken",
|
|
327
|
-
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */
|
|
328
|
-
/* @__PURE__ */ t(
|
|
327
|
+
element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ R("div", { className: x.wrapper, children: [
|
|
328
|
+
/* @__PURE__ */ t(E, {}),
|
|
329
329
|
/* @__PURE__ */ t(
|
|
330
330
|
"div",
|
|
331
331
|
{
|
|
@@ -334,25 +334,25 @@ const no = o.lazy(
|
|
|
334
334
|
width: "100%",
|
|
335
335
|
height: "100%"
|
|
336
336
|
},
|
|
337
|
-
children: /* @__PURE__ */ t(
|
|
337
|
+
children: /* @__PURE__ */ t(b, { children: /* @__PURE__ */ t(Io, {}) })
|
|
338
338
|
}
|
|
339
339
|
),
|
|
340
|
-
/* @__PURE__ */ t(
|
|
340
|
+
/* @__PURE__ */ t(B, {})
|
|
341
341
|
] }) }),
|
|
342
342
|
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) }),
|
|
343
343
|
loader: () => (document.title = "Ticket", !0)
|
|
344
344
|
},
|
|
345
345
|
{
|
|
346
346
|
path: "*",
|
|
347
|
-
element: /* @__PURE__ */ t(
|
|
347
|
+
element: /* @__PURE__ */ t(ne, {}),
|
|
348
348
|
errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) })
|
|
349
349
|
}
|
|
350
350
|
]
|
|
351
351
|
}
|
|
352
352
|
]);
|
|
353
|
-
|
|
354
|
-
}, [r]), /* @__PURE__ */ t(o.Suspense, { fallback: null, children: g && /* @__PURE__ */ t(
|
|
353
|
+
y(T);
|
|
354
|
+
}, [r, i]), /* @__PURE__ */ t(o.Suspense, { fallback: null, children: g && /* @__PURE__ */ t(Y, { router: g }) });
|
|
355
355
|
};
|
|
356
356
|
export {
|
|
357
|
-
|
|
357
|
+
Lo as App
|
|
358
358
|
};
|