@billgangcom/theme-lib 1.110.6 → 1.110.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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("./builder-B7hjBRYI.cjs"),p=require("./ticket-DXz_-29l.cjs"),s=require("react"),b=require("./charge-BAP3iPAM.cjs"),M=require("./ui-components-CWLDlDmG.cjs"),r=require("@phosphor-icons/react"),V=({children:t,shopDomain:d,shopId:u,shopPassword:h,shopLogo:g})=>{const{setShopDomain:x,setShopId:C,setShopPassword:k,setShopTerms:f,setShopPrivacyPolicy:l,setShopRefundPolicy:j,setShopLogo:v}=a.useStorefrontStore();return s.useLayoutEffect(()=>{const o=async()=>{const{data:c}=await b.fetchTerms();f(c)},P=async()=>{const{data:c}=await b.fetchPrivacyPolicy();l(c)},R=async()=>{const{data:c}=await b.fetchRefundPolicy();j(c)};x(d),C(u),h&&k(h),g&&v(g),o(),P(),R()},[d,u,h]),e.jsx(e.Fragment,{children:t})},_="_wrapper_1xuz3_18",w={wrapper:_};function X(){M.registerIcons({X:r.X,Plus:r.Plus,Minus:r.Minus,Check:r.Check,Clock:r.Clock,Info:r.Info,Copy:r.Copy,Trash:r.Trash,Sliders:r.Sliders,Image:r.Image,List:r.List,Handbag:r.Handbag,ArrowUp:r.ArrowUp,ArrowLineUpRight:r.ArrowLineUpRight,CaretRight:r.CaretRight,MagnifyingGlass:r.MagnifyingGlass,CheckCircle:r.CheckCircle,XCircle:r.XCircle,Star:r.Star,Fire:r.Fire,Lightning:r.Lightning,FileText:r.FileText,BookOpen:r.BookOpen,DownloadSimple:r.DownloadSimple,DiscordLogo:r.DiscordLogo,TelegramLogo:r.TelegramLogo,SignOut:r.SignOut,Wallet:r.Wallet,PaperPlaneRight:r.PaperPlaneRight,ChatsTeardrop:r.ChatsTeardrop,DotsSixVertical:r.DotsSixVertical,Heart:r.Heart,User:r.User,Calendar:r.Calendar,House:r.House,CurrencyCircleDollar:r.CurrencyCircleDollar,Medal:r.Medal,CalendarCheck:r.CalendarCheck,Question:r.Question,ShieldCheck:r.ShieldCheck,FileCloud:r.FileCloud,Warning:r.Warning,WarningDiamond:r.WarningDiamond})}const G=s.lazy(()=>Promise.resolve().then(()=>require("./builder-B7hjBRYI.cjs")).then(t=>t.index).then(t=>({default:t.BuilderPage}))),N=s.lazy(()=>Promise.resolve().then(()=>require("./index-BXhAWCRX.cjs")).then(t=>({default:t.ErrorPage}))),Q=s.lazy(()=>Promise.resolve().then(()=>require("./index-CEMbDy4G.cjs")).then(t=>({default:t.ActivePage}))),J=s.lazy(()=>Promise.resolve().then(()=>require("./validation-BVAD1q1L.cjs")).then(t=>({default:t.ValidationPage}))),$=s.lazy(()=>Promise.resolve().then(()=>require("./index-BBMTjm8A.cjs")).then(t=>({default:t.WrapperPage}))),K=s.lazy(()=>Promise.resolve().then(()=>require("./index-Cbqz9kIG.cjs")).then(t=>({default:t.RouterErrorPage}))),i=s.lazy(()=>Promise.resolve().then(()=>require("./index-R_FZBtaZ.cjs")).then(t=>({default:t.DynamicErrorPage}))),Y=s.lazy(()=>Promise.resolve().then(()=>require("./checkout-CUct7uCm.cjs")).then(t=>({default:t.Checkout}))),Z=s.lazy(()=>Promise.resolve().then(()=>require("./charge-BAP3iPAM.cjs")).then(t=>t.index$1).then(t=>({default:t.ChargePage}))),ee=s.lazy(()=>Promise.resolve().then(()=>require("./ticket-DXz_-29l.cjs")).then(t=>t.index).then(t=>({default:t.TicketItem}))),te=s.lazy(()=>Promise.resolve().then(()=>require("./subscription-iNnLGi0T.cjs")).then(t=>t.index).then(t=>({default:t.Subscription}))),re=s.lazy(()=>Promise.resolve().then(()=>require("./top-up-B7E7FUjn.cjs")).then(t=>({default:t.TopUpBalance}))),se=s.lazy(()=>Promise.resolve().then(()=>require("./order-BOaO9a-C.cjs")).then(t=>t.index).then(t=>({default:t.OrderPage}))),ne=s.lazy(()=>Promise.resolve().then(()=>require("./charge-BAP3iPAM.cjs")).then(t=>t.index).then(t=>({default:t.CustomerDashboard}))),L=s.lazy(()=>Promise.resolve().then(()=>require("./charge-BAP3iPAM.cjs")).then(t=>t.recapcha).then(t=>({default:t.ReCaptchaProvider}))),oe=()=>null,n=({children:t})=>e.jsx(s.Suspense,{fallback:e.jsx(oe,{}),children:t}),ae=s.lazy(()=>Promise.resolve().then(()=>require("./builder-components-BjoFBErH.cjs")).then(t=>t.index).then(t=>({default:t.RenderAnnouncement}))),z=s.lazy(()=>Promise.resolve().then(()=>require("./builder-components-BjoFBErH.cjs")).then(t=>t.index).then(t=>({default:t.RenderFooter}))),I=s.lazy(()=>Promise.resolve().then(()=>require("./builder-components-BjoFBErH.cjs")).then(t=>t.index).then(t=>({default:t.RenderHeader}))),ie=t=>{const{blocks:d,settings:u,header:h,footer:g,announcement:x,routes:C=[],shopLogo:k,apiURLs:f,isAntistock:l=!1}=t,[j,v]=s.useState(null),{general:o,setIsAntistock:P}=a.useGeneralStore(),{setApiUrls:R}=a.useApiStore(),{setBlocks:c,setSourceBlocks:A,setHeader:B,setFooter:F,setAnnouncement:O,setSettings:H}=a.useBlocksStore(),{themeSettings:S}=a.useThemeSettingsStore(),{settings:q,setSettings:U}=a.useSettingsStore(),y=a.IS_LOCAL_HOST?localStorage.getItem("fakeDomain")||"":window.location.hostname,W=localStorage.getItem("shopPassword"),D=localStorage.getItem("shopId")||"";return s.useEffect(()=>{P(l)},[l,P]),s.useEffect(()=>{!D&&(o!=null&&o.info.id)&&localStorage.setItem("shopId",o==null?void 0:o.info.id)},[o]),s.useEffect(()=>{!y&&!l&&localStorage.setItem("fakeDomain","drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"),!y&&l&&localStorage.setItem("fakeDomain","eva8.astck.io")},[y]),s.useEffect(()=>{if(S&&q){const m=p.generateDynamicStyles(S,q);p.loadCustomFonts(),p.setupDynamicFonts(S),p.injectStylesToDOM(m)}},[S,JSON.stringify(q),window.location.hostname]),s.useEffect(()=>{const E=new u().blockSettings;U(E)},[]),s.useEffect(()=>{X()},[]),s.useLayoutEffect(()=>{const m={};Object.keys(d).map(T=>{m[T]=d[T]}),A(m),c(m),B(h),F(g),O(x),H(u),f&&R(f);const E=a.createBrowserRouter([{element:e.jsx(V,{shopDomain:y,shopId:D,shopPassword:W||void 0,shopLogo:k,children:e.jsx(L,{children:e.jsx($,{children:e.jsx(a.Outlet,{})})})}),errorElement:e.jsx(n,{children:e.jsx(K,{})}),children:[{path:"/admin/builder/*",element:e.jsx(n,{children:e.jsx(Q,{children:e.jsx(G,{blocks:d,settings:u,header:h,footer:g,announcement:x})})}),errorElement:e.jsx(n,{children:e.jsx(N,{})})},...C,{path:"/checkout",element:e.jsx(n,{children:e.jsx(Y,{})}),errorElement:e.jsx(n,{children:e.jsx(i,{})}),loader:()=>(document.title="Checkout",!0)},{path:"/top-up",element:e.jsx(n,{children:e.jsx(re,{})}),errorElement:e.jsx(n,{children:e.jsx(i,{})}),loader:()=>(document.title="Top Up Balance",!0)},{path:"/charges/:id",element:e.jsx(n,{children:e.jsx(Z,{})}),errorElement:e.jsx(n,{children:e.jsx(i,{})}),loader:()=>(document.title="Charges",!0)},{path:"/orders/:id/:accessToken?",element:e.jsx(n,{children:e.jsx(se,{})}),errorElement:e.jsx(n,{children:e.jsx(i,{})}),loader:()=>(document.title="Orders",!0)},{path:"/subscriptions/:id/:accessToken?",element:e.jsx(n,{children:e.jsx(te,{})}),errorElement:e.jsx(n,{children:e.jsx(i,{})}),loader:()=>(document.title="Subscriptions",!0)},{path:l?"/account":"/customer-dash",element:e.jsx(n,{children:e.jsxs("div",{className:w.wrapper,children:[e.jsx(ae,{}),e.jsx(I,{}),e.jsx("div",{style:{flex:"1 1 auto"},children:e.jsx(ne,{})}),e.jsx(z,{})]})}),errorElement:e.jsx(n,{children:e.jsx(i,{})}),loader:()=>(document.title=l?"Account":"Customer Dashboard",!0)},{path:"/validation",element:e.jsx(n,{children:e.jsx(J,{})}),errorElement:e.jsx(n,{children:e.jsx(i,{})}),loader:()=>(document.title="Validation",!0)},{path:"/ticket/:id/:accessToken",element:e.jsx(n,{children:e.jsxs("div",{className:w.wrapper,children:[e.jsx(I,{}),e.jsx("div",{style:{flex:1,width:"100%",height:"100%"},children:e.jsx(L,{children:e.jsx(ee,{})})}),e.jsx(z,{})]})}),errorElement:e.jsx(n,{children:e.jsx(i,{})}),loader:()=>(document.title="Ticket",!0)},{path:"*",element:e.jsx(p.DynamicRouteWrapper,{}),errorElement:e.jsx(n,{children:e.jsx(i,{})})}]}]);v(E)},[o]),e.jsx(s.Suspense,{fallback:null,children:j&&e.jsx(a.RouterProvider,{router:j})})};exports.App=ie;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("./builder-B7hjBRYI.cjs"),p=require("./ticket-DXz_-29l.cjs"),n=require("react"),D=require("./charge-BAP3iPAM.cjs"),M=require("./ui-components-CWLDlDmG.cjs"),r=require("@phosphor-icons/react"),V=({children:t,shopDomain:d,shopId:u,shopPassword:h,shopLogo:g})=>{const{setShopDomain:x,setShopId:C,setShopPassword:k,setShopTerms:f,setShopPrivacyPolicy:l,setShopRefundPolicy:j,setShopLogo:v}=a.useStorefrontStore();return n.useLayoutEffect(()=>{const o=async()=>{const{data:c}=await D.fetchTerms();f(c)},y=async()=>{const{data:c}=await D.fetchPrivacyPolicy();l(c)},w=async()=>{const{data:c}=await D.fetchRefundPolicy();j(c)};x(d),C(u),h&&k(h),g&&v(g),o(),y(),w()},[d,u,h]),e.jsx(e.Fragment,{children:t})},_="_wrapper_1xuz3_18",T={wrapper:_};function X(){M.registerIcons({X:r.X,Plus:r.Plus,Minus:r.Minus,Check:r.Check,Clock:r.Clock,Info:r.Info,Copy:r.Copy,Trash:r.Trash,Sliders:r.Sliders,Image:r.Image,List:r.List,Handbag:r.Handbag,Bag:r.Bag,Eye:r.Eye,Crown:r.Crown,ArrowUp:r.ArrowUp,ArrowLineUpRight:r.ArrowLineUpRight,CaretRight:r.CaretRight,CaretDown:r.CaretDown,MagnifyingGlass:r.MagnifyingGlass,CheckCircle:r.CheckCircle,XCircle:r.XCircle,Star:r.Star,Fire:r.Fire,Lightning:r.Lightning,FileText:r.FileText,BookOpen:r.BookOpen,DownloadSimple:r.DownloadSimple,DiscordLogo:r.DiscordLogo,TelegramLogo:r.TelegramLogo,SignOut:r.SignOut,Wallet:r.Wallet,PaperPlaneRight:r.PaperPlaneRight,ChatsTeardrop:r.ChatsTeardrop,DotsSixVertical:r.DotsSixVertical,ArrowLeft:r.ArrowLeft,ArrowRight:r.ArrowRight,Heart:r.Heart,User:r.User,Calendar:r.Calendar,House:r.House,CurrencyCircleDollar:r.CurrencyCircleDollar,Medal:r.Medal,CalendarCheck:r.CalendarCheck,Question:r.Question,ShieldCheck:r.ShieldCheck,FileCloud:r.FileCloud,Warning:r.Warning,WarningDiamond:r.WarningDiamond})}const G=n.lazy(()=>Promise.resolve().then(()=>require("./builder-B7hjBRYI.cjs")).then(t=>t.index).then(t=>({default:t.BuilderPage}))),N=n.lazy(()=>Promise.resolve().then(()=>require("./index-BXhAWCRX.cjs")).then(t=>({default:t.ErrorPage}))),Q=n.lazy(()=>Promise.resolve().then(()=>require("./index-CEMbDy4G.cjs")).then(t=>({default:t.ActivePage}))),J=n.lazy(()=>Promise.resolve().then(()=>require("./validation-BVAD1q1L.cjs")).then(t=>({default:t.ValidationPage}))),$=n.lazy(()=>Promise.resolve().then(()=>require("./index-BBMTjm8A.cjs")).then(t=>({default:t.WrapperPage}))),K=n.lazy(()=>Promise.resolve().then(()=>require("./index-Cbqz9kIG.cjs")).then(t=>({default:t.RouterErrorPage}))),i=n.lazy(()=>Promise.resolve().then(()=>require("./index-R_FZBtaZ.cjs")).then(t=>({default:t.DynamicErrorPage}))),Y=n.lazy(()=>Promise.resolve().then(()=>require("./checkout-CUct7uCm.cjs")).then(t=>({default:t.Checkout}))),Z=n.lazy(()=>Promise.resolve().then(()=>require("./charge-BAP3iPAM.cjs")).then(t=>t.index$1).then(t=>({default:t.ChargePage}))),ee=n.lazy(()=>Promise.resolve().then(()=>require("./ticket-DXz_-29l.cjs")).then(t=>t.index).then(t=>({default:t.TicketItem}))),te=n.lazy(()=>Promise.resolve().then(()=>require("./subscription-iNnLGi0T.cjs")).then(t=>t.index).then(t=>({default:t.Subscription}))),re=n.lazy(()=>Promise.resolve().then(()=>require("./top-up-B7E7FUjn.cjs")).then(t=>({default:t.TopUpBalance}))),ne=n.lazy(()=>Promise.resolve().then(()=>require("./order-BOaO9a-C.cjs")).then(t=>t.index).then(t=>({default:t.OrderPage}))),se=n.lazy(()=>Promise.resolve().then(()=>require("./charge-BAP3iPAM.cjs")).then(t=>t.index).then(t=>({default:t.CustomerDashboard}))),L=n.lazy(()=>Promise.resolve().then(()=>require("./charge-BAP3iPAM.cjs")).then(t=>t.recapcha).then(t=>({default:t.ReCaptchaProvider}))),oe=()=>null,s=({children:t})=>e.jsx(n.Suspense,{fallback:e.jsx(oe,{}),children:t}),ae=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-BjoFBErH.cjs")).then(t=>t.index).then(t=>({default:t.RenderAnnouncement}))),A=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-BjoFBErH.cjs")).then(t=>t.index).then(t=>({default:t.RenderFooter}))),z=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-BjoFBErH.cjs")).then(t=>t.index).then(t=>({default:t.RenderHeader}))),ie=t=>{const{blocks:d,settings:u,header:h,footer:g,announcement:x,routes:C=[],shopLogo:k,apiURLs:f,isAntistock:l=!1}=t,[j,v]=n.useState(null),{general:o,setIsAntistock:y}=a.useGeneralStore(),{setApiUrls:w}=a.useApiStore(),{setBlocks:c,setSourceBlocks:B,setHeader:I,setFooter:F,setAnnouncement:O,setSettings:H}=a.useBlocksStore(),{themeSettings:P}=a.useThemeSettingsStore(),{settings:R,setSettings:U}=a.useSettingsStore(),S=a.IS_LOCAL_HOST?localStorage.getItem("fakeDomain")||"":window.location.hostname,W=localStorage.getItem("shopPassword"),q=localStorage.getItem("shopId")||"";return n.useEffect(()=>{y(l)},[l,y]),n.useEffect(()=>{!q&&(o!=null&&o.info.id)&&localStorage.setItem("shopId",o==null?void 0:o.info.id)},[o]),n.useEffect(()=>{!S&&!l&&localStorage.setItem("fakeDomain","drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"),!S&&l&&localStorage.setItem("fakeDomain","eva8.astck.io")},[S]),n.useEffect(()=>{if(P&&R){const m=p.generateDynamicStyles(P,R);p.loadCustomFonts(),p.setupDynamicFonts(P),p.injectStylesToDOM(m)}},[P,JSON.stringify(R),window.location.hostname]),n.useEffect(()=>{const E=new u().blockSettings;U(E)},[]),n.useEffect(()=>{X()},[]),n.useLayoutEffect(()=>{const m={};Object.keys(d).map(b=>{m[b]=d[b]}),B(m),c(m),I(h),F(g),O(x),H(u),f&&w(f);const E=a.createBrowserRouter([{element:e.jsx(V,{shopDomain:S,shopId:q,shopPassword:W||void 0,shopLogo:k,children:e.jsx(L,{children:e.jsx($,{children:e.jsx(a.Outlet,{})})})}),errorElement:e.jsx(s,{children:e.jsx(K,{})}),children:[{path:"/admin/builder/*",element:e.jsx(s,{children:e.jsx(Q,{children:e.jsx(G,{blocks:d,settings:u,header:h,footer:g,announcement:x})})}),errorElement:e.jsx(s,{children:e.jsx(N,{})})},...C,{path:"/checkout",element:e.jsx(s,{children:e.jsx(Y,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Checkout",!0)},{path:"/top-up",element:e.jsx(s,{children:e.jsx(re,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Top Up Balance",!0)},{path:"/charges/:id",element:e.jsx(s,{children:e.jsx(Z,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Charges",!0)},{path:"/orders/:id/:accessToken?",element:e.jsx(s,{children:e.jsx(ne,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Orders",!0)},{path:"/subscriptions/:id/:accessToken?",element:e.jsx(s,{children:e.jsx(te,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Subscriptions",!0)},{path:l?"/account":"/customer-dash",element:e.jsx(s,{children:e.jsxs("div",{className:T.wrapper,children:[e.jsx(ae,{}),e.jsx(z,{}),e.jsx("div",{style:{flex:"1 1 auto"},children:e.jsx(se,{})}),e.jsx(A,{})]})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title=l?"Account":"Customer Dashboard",!0)},{path:"/validation",element:e.jsx(s,{children:e.jsx(J,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Validation",!0)},{path:"/ticket/:id/:accessToken",element:e.jsx(s,{children:e.jsxs("div",{className:T.wrapper,children:[e.jsx(z,{}),e.jsx("div",{style:{flex:1,width:"100%",height:"100%"},children:e.jsx(L,{children:e.jsx(ee,{})})}),e.jsx(A,{})]})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Ticket",!0)},{path:"*",element:e.jsx(p.DynamicRouteWrapper,{}),errorElement:e.jsx(s,{children:e.jsx(i,{})})}]}]);v(E)},[o]),e.jsx(n.Suspense,{fallback:null,children:j&&e.jsx(a.RouterProvider,{router:j})})};exports.App=ie;
@@ -1,11 +1,11 @@
1
- import { jsx as t, Fragment as W, jsxs as D } from "react/jsx-runtime";
1
+ import { jsx as t, Fragment as W, jsxs as z } from "react/jsx-runtime";
2
2
  import { M as j, V as _, j as M, c as V, m as N, a as X, K as G, ai as J, aj as K, ak as Q } from "./builder-D_zv5ue0.js";
3
3
  import { f as Y, l as $, j as q, k as Z, D as ee } from "./ticket-B0VGIvyK.js";
4
4
  import r, { Suspense as te } from "react";
5
5
  import { W as re, X as oe, Y as ne } from "./charge-BQUHzEju.js";
6
6
  import { n as ae } from "./ui-components-BTotDG_w.js";
7
- import { WarningDiamond as se, Warning as ie, FileCloud as ce, ShieldCheck as le, Question as de, CalendarCheck as he, Medal as ue, CurrencyCircleDollar as me, House as pe, Calendar as fe, User as ge, Heart as ye, DotsSixVertical as Se, ChatsTeardrop as ke, PaperPlaneRight as Pe, Wallet as Ce, SignOut as Ee, TelegramLogo as Re, DiscordLogo as be, DownloadSimple as we, BookOpen as ze, FileText as De, Lightning as Te, Fire as Ie, Star as ve, XCircle as Be, CheckCircle as Le, MagnifyingGlass as Ae, CaretRight as Fe, ArrowLineUpRight as Oe, ArrowUp as xe, Handbag as He, List as Ue, Image as We, Sliders as je, Trash as _e, Copy as Me, Info as Ve, Clock as Ne, Check as Xe, Minus as Ge, Plus as Je, X as Ke } from "@phosphor-icons/react";
8
- const Qe = ({
7
+ import { WarningDiamond as se, Warning as ie, FileCloud as ce, ShieldCheck as le, Question as de, CalendarCheck as he, Medal as ue, CurrencyCircleDollar as me, House as pe, Calendar as fe, User as ge, Heart as ye, ArrowRight as Se, ArrowLeft as ke, DotsSixVertical as Pe, ChatsTeardrop as Ce, PaperPlaneRight as Ee, Wallet as we, SignOut as Re, TelegramLogo as De, DiscordLogo as be, DownloadSimple as ze, BookOpen as Te, FileText as Ae, Lightning as Be, Fire as Ie, Star as Le, XCircle as ve, CheckCircle as Fe, MagnifyingGlass as Oe, CaretDown as xe, CaretRight as He, ArrowLineUpRight as Ue, ArrowUp as We, Crown as je, Eye as _e, Bag as Me, Handbag as Ve, List as Ne, Image as Xe, Sliders as Ge, Trash as Je, Copy as Ke, Info as Qe, Clock as Ye, Check as $e, Minus as qe, Plus as Ze, X as et } from "@phosphor-icons/react";
8
+ const tt = ({
9
9
  children: e,
10
10
  shopDomain: c,
11
11
  shopId: l,
@@ -34,47 +34,53 @@ const Qe = ({
34
34
  };
35
35
  m(c), k(l), d && P(d), u && C(u), n(), g(), E();
36
36
  }, [c, l, d]), /* @__PURE__ */ t(W, { children: e });
37
- }, Ye = "_wrapper_1xuz3_18", T = {
38
- wrapper: Ye
37
+ }, rt = "_wrapper_1xuz3_18", T = {
38
+ wrapper: rt
39
39
  };
40
- function $e() {
40
+ function ot() {
41
41
  ae({
42
42
  // Основные UI иконки
43
- X: Ke,
44
- Plus: Je,
45
- Minus: Ge,
46
- Check: Xe,
47
- Clock: Ne,
48
- Info: Ve,
49
- Copy: Me,
50
- Trash: _e,
51
- Sliders: je,
52
- Image: We,
53
- List: Ue,
54
- Handbag: He,
55
- ArrowUp: xe,
56
- ArrowLineUpRight: Oe,
57
- CaretRight: Fe,
58
- MagnifyingGlass: Ae,
43
+ X: et,
44
+ Plus: Ze,
45
+ Minus: qe,
46
+ Check: $e,
47
+ Clock: Ye,
48
+ Info: Qe,
49
+ Copy: Ke,
50
+ Trash: Je,
51
+ Sliders: Ge,
52
+ Image: Xe,
53
+ List: Ne,
54
+ Handbag: Ve,
55
+ Bag: Me,
56
+ Eye: _e,
57
+ Crown: je,
58
+ ArrowUp: We,
59
+ ArrowLineUpRight: Ue,
60
+ CaretRight: He,
61
+ CaretDown: xe,
62
+ MagnifyingGlass: Oe,
59
63
  // Статусы и действия
60
- CheckCircle: Le,
61
- XCircle: Be,
62
- Star: ve,
64
+ CheckCircle: Fe,
65
+ XCircle: ve,
66
+ Star: Le,
63
67
  Fire: Ie,
64
- Lightning: Te,
68
+ Lightning: Be,
65
69
  // Файлы и документы
66
- FileText: De,
67
- BookOpen: ze,
68
- DownloadSimple: we,
70
+ FileText: Ae,
71
+ BookOpen: Te,
72
+ DownloadSimple: ze,
69
73
  // Социальные сети
70
74
  DiscordLogo: be,
71
- TelegramLogo: Re,
75
+ TelegramLogo: De,
72
76
  // Навигация и интерфейс
73
- SignOut: Ee,
74
- Wallet: Ce,
75
- PaperPlaneRight: Pe,
76
- ChatsTeardrop: ke,
77
- DotsSixVertical: Se,
77
+ SignOut: Re,
78
+ Wallet: we,
79
+ PaperPlaneRight: Ee,
80
+ ChatsTeardrop: Ce,
81
+ DotsSixVertical: Pe,
82
+ ArrowLeft: ke,
83
+ ArrowRight: Se,
78
84
  // Специальные иконки
79
85
  Heart: ye,
80
86
  User: ge,
@@ -93,49 +99,49 @@ function $e() {
93
99
  WarningDiamond: se
94
100
  });
95
101
  }
96
- const qe = r.lazy(
102
+ const nt = r.lazy(
97
103
  () => import("./builder-D_zv5ue0.js").then((e) => e.an).then((e) => ({ default: e.BuilderPage }))
98
- ), Ze = r.lazy(
104
+ ), at = r.lazy(
99
105
  () => import("./index-CzkkQ8sH.js").then((e) => ({ default: e.ErrorPage }))
100
- ), et = r.lazy(
106
+ ), st = r.lazy(
101
107
  () => import("./index-BJMeFohP.js").then((e) => ({ default: e.ActivePage }))
102
- ), tt = r.lazy(
108
+ ), it = r.lazy(
103
109
  () => import("./validation-jCwzu5MC.js").then((e) => ({ default: e.ValidationPage }))
104
- ), rt = r.lazy(
110
+ ), ct = r.lazy(
105
111
  () => import("./index-hCDY-ip7.js").then((e) => ({ default: e.WrapperPage }))
106
- ), ot = r.lazy(
112
+ ), lt = r.lazy(
107
113
  () => import("./index-CX1FV9wS.js").then((e) => ({ default: e.RouterErrorPage }))
108
114
  ), a = r.lazy(
109
115
  () => import("./index-CMECtXvH.js").then((e) => ({ default: e.DynamicErrorPage }))
110
- ), nt = r.lazy(
116
+ ), dt = r.lazy(
111
117
  () => import("./checkout-uzxtu1pZ.js").then((e) => ({ default: e.Checkout }))
112
- ), at = r.lazy(
118
+ ), ht = r.lazy(
113
119
  () => import("./charge-BQUHzEju.js").then((e) => e.a1).then((e) => ({ default: e.ChargePage }))
114
- ), st = r.lazy(
120
+ ), ut = r.lazy(
115
121
  () => import("./ticket-B0VGIvyK.js").then((e) => e.m).then((e) => ({ default: e.TicketItem }))
116
- ), it = r.lazy(
122
+ ), mt = r.lazy(
117
123
  () => import("./subscription-DIDUTEI3.js").then((e) => e.i).then((e) => ({ default: e.Subscription }))
118
- ), ct = r.lazy(
124
+ ), pt = r.lazy(
119
125
  () => import("./top-up-BhB8jhP6.js").then((e) => ({ default: e.TopUpBalance }))
120
- ), lt = r.lazy(
126
+ ), ft = r.lazy(
121
127
  () => import("./order-CdPcB1OE.js").then((e) => e.i).then((e) => ({ default: e.OrderPage }))
122
- ), dt = r.lazy(
128
+ ), gt = r.lazy(
123
129
  () => import("./charge-BQUHzEju.js").then((e) => e.a0).then((e) => ({ default: e.CustomerDashboard }))
124
- ), I = r.lazy(
130
+ ), A = r.lazy(
125
131
  () => import("./charge-BQUHzEju.js").then((e) => e.$).then((e) => ({ default: e.ReCaptchaProvider }))
126
- ), ht = () => null, o = ({ children: e }) => /* @__PURE__ */ t(te, { fallback: /* @__PURE__ */ t(ht, {}), children: e }), ut = r.lazy(
132
+ ), yt = () => null, o = ({ children: e }) => /* @__PURE__ */ t(te, { fallback: /* @__PURE__ */ t(yt, {}), children: e }), St = r.lazy(
127
133
  () => import("./builder-components-DN-mNdj8.js").then((e) => e.i).then((e) => ({
128
134
  default: e.RenderAnnouncement
129
135
  }))
130
- ), v = r.lazy(
136
+ ), B = r.lazy(
131
137
  () => import("./builder-components-DN-mNdj8.js").then((e) => e.i).then((e) => ({
132
138
  default: e.RenderFooter
133
139
  }))
134
- ), B = r.lazy(
140
+ ), I = r.lazy(
135
141
  () => import("./builder-components-DN-mNdj8.js").then((e) => e.i).then((e) => ({
136
142
  default: e.RenderHeader
137
143
  }))
138
- ), Pt = (e) => {
144
+ ), bt = (e) => {
139
145
  const {
140
146
  blocks: c,
141
147
  settings: l,
@@ -149,50 +155,50 @@ const qe = r.lazy(
149
155
  } = e, [f, C] = r.useState(null), { general: n, setIsAntistock: g } = _(), { setApiUrls: E } = M(), {
150
156
  setBlocks: i,
151
157
  setSourceBlocks: L,
152
- setHeader: A,
158
+ setHeader: v,
153
159
  setFooter: F,
154
160
  setAnnouncement: O,
155
161
  setSettings: x
156
- } = V(), { themeSettings: y } = N(), { settings: R, setSettings: H } = X(), S = G ? localStorage.getItem("fakeDomain") || "" : window.location.hostname, U = localStorage.getItem("shopPassword"), w = localStorage.getItem("shopId") || "";
162
+ } = V(), { themeSettings: y } = N(), { settings: w, setSettings: H } = X(), S = G ? localStorage.getItem("fakeDomain") || "" : window.location.hostname, U = localStorage.getItem("shopPassword"), D = localStorage.getItem("shopId") || "";
157
163
  return r.useEffect(() => {
158
164
  g(s);
159
165
  }, [s, g]), r.useEffect(() => {
160
- !w && (n != null && n.info.id) && localStorage.setItem("shopId", n == null ? void 0 : n.info.id);
166
+ !D && (n != null && n.info.id) && localStorage.setItem("shopId", n == null ? void 0 : n.info.id);
161
167
  }, [n]), r.useEffect(() => {
162
168
  !S && !s && localStorage.setItem("fakeDomain", "drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"), !S && s && localStorage.setItem("fakeDomain", "eva8.astck.io");
163
169
  }, [S]), r.useEffect(() => {
164
- if (y && R) {
165
- const h = Y(y, R);
170
+ if (y && w) {
171
+ const h = Y(y, w);
166
172
  $(), q(y), Z(h);
167
173
  }
168
- }, [y, JSON.stringify(R), window.location.hostname]), r.useEffect(() => {
169
- const b = new l().blockSettings;
170
- H(b);
174
+ }, [y, JSON.stringify(w), window.location.hostname]), r.useEffect(() => {
175
+ const R = new l().blockSettings;
176
+ H(R);
171
177
  }, []), r.useEffect(() => {
172
- $e();
178
+ ot();
173
179
  }, []), r.useLayoutEffect(() => {
174
180
  const h = {};
175
- Object.keys(c).map((z) => {
176
- h[z] = c[z];
177
- }), L(h), i(h), A(d), F(u), O(m), x(l), p && E(p);
178
- const b = J([
181
+ Object.keys(c).map((b) => {
182
+ h[b] = c[b];
183
+ }), L(h), i(h), v(d), F(u), O(m), x(l), p && E(p);
184
+ const R = J([
179
185
  {
180
186
  element: /* @__PURE__ */ t(
181
- Qe,
187
+ tt,
182
188
  {
183
189
  shopDomain: S,
184
- shopId: w,
190
+ shopId: D,
185
191
  shopPassword: U || void 0,
186
192
  shopLogo: P,
187
- children: /* @__PURE__ */ t(I, { children: /* @__PURE__ */ t(rt, { children: /* @__PURE__ */ t(K, {}) }) })
193
+ children: /* @__PURE__ */ t(A, { children: /* @__PURE__ */ t(ct, { children: /* @__PURE__ */ t(K, {}) }) })
188
194
  }
189
195
  ),
190
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(ot, {}) }),
196
+ errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(lt, {}) }),
191
197
  children: [
192
198
  {
193
199
  path: "/admin/builder/*",
194
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(et, { children: /* @__PURE__ */ t(
195
- qe,
200
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(st, { children: /* @__PURE__ */ t(
201
+ nt,
196
202
  {
197
203
  blocks: c,
198
204
  settings: l,
@@ -201,68 +207,68 @@ const qe = r.lazy(
201
207
  announcement: m
202
208
  }
203
209
  ) }) }),
204
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(Ze, {}) })
210
+ errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(at, {}) })
205
211
  },
206
212
  ...k,
207
213
  {
208
214
  path: "/checkout",
209
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(nt, {}) }),
215
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(dt, {}) }),
210
216
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
211
217
  loader: () => (document.title = "Checkout", !0)
212
218
  },
213
219
  {
214
220
  path: "/top-up",
215
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(ct, {}) }),
221
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(pt, {}) }),
216
222
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
217
223
  loader: () => (document.title = "Top Up Balance", !0)
218
224
  },
219
225
  {
220
226
  path: "/charges/:id",
221
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(at, {}) }),
227
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(ht, {}) }),
222
228
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
223
229
  loader: () => (document.title = "Charges", !0)
224
230
  },
225
231
  {
226
232
  path: "/orders/:id/:accessToken?",
227
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(lt, {}) }),
233
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(ft, {}) }),
228
234
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
229
235
  loader: () => (document.title = "Orders", !0)
230
236
  },
231
237
  {
232
238
  path: "/subscriptions/:id/:accessToken?",
233
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(it, {}) }),
239
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(mt, {}) }),
234
240
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
235
241
  loader: () => (document.title = "Subscriptions", !0)
236
242
  },
237
243
  {
238
244
  path: s ? "/account" : "/customer-dash",
239
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ D("div", { className: T.wrapper, children: [
240
- /* @__PURE__ */ t(ut, {}),
241
- /* @__PURE__ */ t(B, {}),
245
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ z("div", { className: T.wrapper, children: [
246
+ /* @__PURE__ */ t(St, {}),
247
+ /* @__PURE__ */ t(I, {}),
242
248
  /* @__PURE__ */ t(
243
249
  "div",
244
250
  {
245
251
  style: {
246
252
  flex: "1 1 auto"
247
253
  },
248
- children: /* @__PURE__ */ t(dt, {})
254
+ children: /* @__PURE__ */ t(gt, {})
249
255
  }
250
256
  ),
251
- /* @__PURE__ */ t(v, {})
257
+ /* @__PURE__ */ t(B, {})
252
258
  ] }) }),
253
259
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
254
260
  loader: () => (document.title = s ? "Account" : "Customer Dashboard", !0)
255
261
  },
256
262
  {
257
263
  path: "/validation",
258
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(tt, {}) }),
264
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(it, {}) }),
259
265
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
260
266
  loader: () => (document.title = "Validation", !0)
261
267
  },
262
268
  {
263
269
  path: "/ticket/:id/:accessToken",
264
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ D("div", { className: T.wrapper, children: [
265
- /* @__PURE__ */ t(B, {}),
270
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ z("div", { className: T.wrapper, children: [
271
+ /* @__PURE__ */ t(I, {}),
266
272
  /* @__PURE__ */ t(
267
273
  "div",
268
274
  {
@@ -271,10 +277,10 @@ const qe = r.lazy(
271
277
  width: "100%",
272
278
  height: "100%"
273
279
  },
274
- children: /* @__PURE__ */ t(I, { children: /* @__PURE__ */ t(st, {}) })
280
+ children: /* @__PURE__ */ t(A, { children: /* @__PURE__ */ t(ut, {}) })
275
281
  }
276
282
  ),
277
- /* @__PURE__ */ t(v, {})
283
+ /* @__PURE__ */ t(B, {})
278
284
  ] }) }),
279
285
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
280
286
  loader: () => (document.title = "Ticket", !0)
@@ -287,9 +293,9 @@ const qe = r.lazy(
287
293
  ]
288
294
  }
289
295
  ]);
290
- C(b);
296
+ C(R);
291
297
  }, [n]), /* @__PURE__ */ t(r.Suspense, { fallback: null, children: f && /* @__PURE__ */ t(Q, { router: f }) });
292
298
  };
293
299
  export {
294
- Pt as App
300
+ bt as App
295
301
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@billgangcom/theme-lib",
3
- "version": "1.110.6",
3
+ "version": "1.110.7",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"