@billgangcom/theme-lib 1.120.1 → 1.120.3
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-CE6yg5oK.js → builder-B9_Gx4V9.js} +940 -910
- package/dist/{builder-CWaG42kw.cjs → builder-b-qJCQwo.cjs} +12 -12
- package/dist/{builder-components-5Z24DJJP.js → builder-components-9PbPc-mC.js} +4 -4
- package/dist/{builder-components-Dyplqbia.cjs → builder-components-BrwXRmXM.cjs} +1 -1
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +192 -192
- package/dist/{charge-B1GrtVWc.js → charge-D2MDZPjd.js} +1201 -1196
- package/dist/{charge-BEnNfxFr.cjs → charge-DUScJbNu.cjs} +35 -35
- package/dist/{checkout-CF05O03i.cjs → checkout-DTtU-2-r.cjs} +1 -1
- package/dist/{checkout-B21z1TGE.js → checkout-DkxbEL2F.js} +5 -5
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-Bl91R63p.cjs → index-4EJbaYsy.cjs} +1 -1
- package/dist/{index-Be2NRkjG.js → index-9Fk33t08.js} +5 -5
- package/dist/{index-DTAlnIyB.js → index-B-r1aWAV.js} +1 -1
- package/dist/{index-Cs9xerh4.js → index-BQYcOWMO.js} +8 -8
- package/dist/{index-1x0-wbdS.cjs → index-BUMQ-Rby.cjs} +1 -1
- package/dist/{index-C9ZIjLVQ.js → index-D0ZTho0y.js} +8 -8
- package/dist/{index-BpWh-qOk.cjs → index-D8GG6aY1.cjs} +1 -1
- package/dist/{index-BZ7C0iBt.cjs → index-DtxjPAK3.cjs} +1 -1
- package/dist/{index-Dez8BiQX.js → index-rdmzZg1L.js} +5 -5
- package/dist/{index-DT_aTpZf.cjs → index-vTR6prhR.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +6 -6
- package/dist/{order-BEBOxyTb.cjs → order-BKAzAUuT.cjs} +1 -1
- package/dist/{order-dg2Oyqn4.js → order-BXm6-hgK.js} +5 -5
- package/dist/{subscription-ts1zCYfh.js → subscription-CW6Mr7T0.js} +5 -5
- package/dist/{subscription-Cd-C2FDT.cjs → subscription-DZcB9X0s.cjs} +1 -1
- package/dist/{ticket-STaDp20p.cjs → ticket-CRuEXuRi.cjs} +1 -1
- package/dist/{ticket-KYg6_LAo.js → ticket-h-_um0I6.js} +5 -5
- package/dist/{top-up-ZgLo1nZF.cjs → top-up-BFRH_VWm.cjs} +1 -1
- package/dist/{top-up-dXcEKblL.js → top-up-WF6n8aSD.js} +5 -5
- package/dist/{ui-components-s9Q6Wg3R.cjs → ui-components-C0u-HufJ.cjs} +1 -1
- package/dist/{ui-components-CpDQ53a4.js → ui-components-MoVz20xe.js} +4 -4
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1 -1
- package/dist/{validation-DLYUReRT.cjs → validation-B7M4mSAI.cjs} +1 -1
- package/dist/{validation-DC8gCoJH.js → validation-CeZnogYJ.js} +6 -6
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as y, jsx as c, Fragment as Pe } from "react/jsx-runtime";
|
|
2
2
|
import A, { useLayoutEffect as Tr, useEffect as U, useRef as V, useMemo as H, useCallback as te, useState as he, memo as Mr, useReducer as Rr, createContext as Lt, useContext as nt } from "react";
|
|
3
|
-
import { u as ne, a as qe, b as J, c as se, d as Po, e as Vn, f as B, v as tn, T as mt, g as Or, h as Kn, i as Fe, j as Lo, r as Fo, k as dn, l as Bt, m as X, n as jo, L as ot, o as Gn, p as rt, q as $r, s as Yn, t as tt, w as hn, x as Rt, y as zo, A as Pr, S as Lr, C as Fr, z as ft, B as jr, D as Be, E as Ft, R as _n, F as wn, G as Ho, H as nn, I as ye, P as go, J as zr, K as Hr } from "./builder-
|
|
4
|
-
import { I as R, u as Wr, B as Xe, E as on, c as ue, S as Ce, d as Tn, T as Ur } from "./ui-components-
|
|
3
|
+
import { u as ne, a as qe, b as J, c as se, d as Po, e as Vn, f as B, v as tn, T as mt, g as Or, h as Kn, i as Fe, j as Lo, r as Fo, k as dn, l as Bt, m as X, n as jo, L as ot, o as Gn, p as rt, q as $r, s as Yn, t as tt, w as hn, x as Rt, y as zo, A as Pr, S as Lr, C as Fr, z as ft, B as jr, D as Be, E as Ft, R as _n, F as wn, G as Ho, H as nn, I as ye, P as go, J as zr, K as Hr } from "./builder-B9_Gx4V9.js";
|
|
4
|
+
import { I as R, u as Wr, B as Xe, E as on, c as ue, S as Ce, d as Tn, T as Ur } from "./ui-components-MoVz20xe.js";
|
|
5
5
|
import { unstable_batchedUpdates as Kt, createPortal as Vr } from "react-dom";
|
|
6
|
-
import "./charge-
|
|
7
|
-
import "./ticket-
|
|
6
|
+
import "./charge-D2MDZPjd.js";
|
|
7
|
+
import "./ticket-h-_um0I6.js";
|
|
8
8
|
const Xn = ({ render: e, block: t }) => e(t), Wo = ({ settings: e, pageContext: t }) => {
|
|
9
9
|
const { footer: n } = ne(), { settings: o } = qe(), { pageContext: r } = J(), { footer: s } = se();
|
|
10
10
|
if (!s || !n) return null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),f=require("react"),l=require("./builder-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),f=require("react"),l=require("./builder-b-qJCQwo.cjs"),k=require("./ui-components-C0u-HufJ.cjs"),ct=require("react-dom");require("./charge-DUScJbNu.cjs");require("./ticket-CRuEXuRi.cjs");const Tt=({render:e,block:t})=>e(t),dn=({settings:e,pageContext:t})=>{const{footer:n}=l.useLayersStore(),{settings:s}=l.useSettingsStore(),{pageContext:o}=l.usePagesStore(),{footer:i}=l.useBlocksStore();if(!i||!n)return null;const c=new i;return Object.keys(n).map(a=>{c[a]=n[a]}),c.renderBlock((e==null?void 0:e.blockSettings)||s,t||o)},hn=({settings:e,pageContext:t})=>{const{header:n}=l.useLayersStore(),{settings:s}=l.useSettingsStore(),{pageContext:o}=l.usePagesStore(),{header:i}=l.useBlocksStore();if(!i||!n)return null;const c=new i;return Object.keys(n).map(a=>{c[a]=n[a]}),c.renderBlock((e==null?void 0:e.blockSettings)||s,t||o)},fn=({settings:e,pageContext:t})=>{const{announcement:n}=l.useLayersStore(),{settings:s}=l.useSettingsStore(),{pageContext:o}=l.usePagesStore(),{announcement:i}=l.useBlocksStore();if(!i||!n)return null;const c=new i;return Object.keys(n).map(a=>{c[a]=n[a]}),c.renderBlock(e||s,t||o)},Us=Object.freeze(Object.defineProperty({__proto__:null,RenderAnnouncement:fn,RenderBlock:Tt,RenderFooter:dn,RenderHeader:hn},Symbol.toStringTag,{value:"Module"}));function Vs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return f.useMemo(()=>s=>{t.forEach(o=>o(s))},t)}const Mt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function qe(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function gn(e){return"nodeType"in e}function J(e){var t,n;return e?qe(e)?e:gn(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function pn(e){const{Document:t}=J(e);return e instanceof t}function ft(e){return qe(e)?!1:e instanceof J(e).HTMLElement}function Qn(e){return e instanceof J(e).SVGElement}function Xe(e){return e?qe(e)?e.document:gn(e)?pn(e)?e:ft(e)||Qn(e)?e.ownerDocument:document:document:document}const be=Mt?f.useLayoutEffect:f.useEffect;function mn(e){const t=f.useRef(e);return be(()=>{t.current=e}),f.useCallback(function(){for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t.current==null?void 0:t.current(...s)},[])}function Ks(){const e=f.useRef(null),t=f.useCallback((s,o)=>{e.current=setInterval(s,o)},[]),n=f.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function dt(e,t){t===void 0&&(t=[e]);const n=f.useRef(e);return be(()=>{n.current!==e&&(n.current=e)},t),n}function gt(e,t){const n=f.useRef();return f.useMemo(()=>{const s=e(n.current);return n.current=s,s},[...t])}function At(e){const t=mn(e),n=f.useRef(null),s=f.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,s]}function Qt(e){const t=f.useRef();return f.useEffect(()=>{t.current=e},[e]),t.current}let zt={};function pt(e,t){return f.useMemo(()=>{if(t)return t;const n=zt[e]==null?0:zt[e]+1;return zt[e]=n,e+"-"+n},[e,t])}function Zn(e){return function(t){for(var n=arguments.length,s=new Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];return s.reduce((i,c)=>{const a=Object.entries(c);for(const[u,h]of a){const d=i[u];d!=null&&(i[u]=d+e*h)}return i},{...t})}}const Ye=Zn(1),Nt=Zn(-1);function Ys(e){return"clientX"in e&&"clientY"in e}function vn(e){if(!e)return!1;const{KeyboardEvent:t}=J(e.target);return t&&e instanceof t}function Gs(e){if(!e)return!1;const{TouchEvent:t}=J(e.target);return t&&e instanceof t}function Zt(e){if(Gs(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Ys(e)?{x:e.clientX,y:e.clientY}:null}const Ge=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Ge.Translate.toString(e),Ge.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:s}=e;return t+" "+n+"ms "+s}}}),En="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function qs(e){return e.matches(En)?e:e.querySelector(En)}const Xs={display:"none"};function Js(e){let{id:t,value:n}=e;return f.createElement("div",{id:t,style:Xs},n)}function Qs(e){let{id:t,announcement:n,ariaLiveType:s="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return f.createElement("div",{id:t,style:o,role:"status","aria-live":s,"aria-atomic":!0},n)}function Zs(){const[e,t]=f.useState("");return{announce:f.useCallback(s=>{s!=null&&t(s)},[]),announcement:e}}const es=f.createContext(null);function eo(e){const t=f.useContext(es);f.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function to(){const[e]=f.useState(()=>new Set),t=f.useCallback(s=>(e.add(s),()=>e.delete(s)),[e]);return[f.useCallback(s=>{let{type:o,event:i}=s;e.forEach(c=>{var a;return(a=c[o])==null?void 0:a.call(c,i)})},[e]),t]}const no={draggable:`
|
|
2
2
|
To pick up a draggable item, press the space bar.
|
|
3
3
|
While dragging, use the arrow keys to move the item.
|
|
4
4
|
Press space again to drop the item in its new position, or press escape to cancel.
|
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-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),c=require("./builder-b-qJCQwo.cjs"),m=require("./ticket-CRuEXuRi.cjs"),n=require("react"),v=require("./charge-DUScJbNu.cjs"),_=require("./ui-components-C0u-HufJ.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-b-qJCQwo.cjs")).then(o=>o.index).then(o=>({default:o.BuilderPage}))),$=n.lazy(()=>Promise.resolve().then(()=>require("./index-vTR6prhR.cjs")).then(o=>({default:o.ErrorPage}))),K=n.lazy(()=>Promise.resolve().then(()=>require("./index-DtxjPAK3.cjs")).then(o=>({default:o.ActivePage}))),Y=n.lazy(()=>Promise.resolve().then(()=>require("./validation-B7M4mSAI.cjs")).then(o=>({default:o.ValidationPage}))),Z=n.lazy(()=>Promise.resolve().then(()=>require("./index-D8GG6aY1.cjs")).then(o=>({default:o.WrapperPage}))),ee=n.lazy(()=>Promise.resolve().then(()=>require("./index-BUMQ-Rby.cjs")).then(o=>({default:o.RouterErrorPage}))),i=n.lazy(()=>Promise.resolve().then(()=>require("./index-4EJbaYsy.cjs")).then(o=>({default:o.DynamicErrorPage}))),te=n.lazy(()=>Promise.resolve().then(()=>require("./checkout-DTtU-2-r.cjs")).then(o=>({default:o.Checkout}))),oe=n.lazy(()=>Promise.resolve().then(()=>require("./charge-DUScJbNu.cjs")).then(o=>o.index$1).then(o=>({default:o.ChargePage}))),ne=n.lazy(()=>Promise.resolve().then(()=>require("./ticket-CRuEXuRi.cjs")).then(o=>o.index).then(o=>({default:o.TicketItem}))),re=n.lazy(()=>Promise.resolve().then(()=>require("./subscription-DZcB9X0s.cjs")).then(o=>o.index).then(o=>({default:o.Subscription}))),se=n.lazy(()=>Promise.resolve().then(()=>require("./top-up-BFRH_VWm.cjs")).then(o=>({default:o.TopUpBalance}))),ce=n.lazy(()=>Promise.resolve().then(()=>require("./order-BKAzAUuT.cjs")).then(o=>o.index).then(o=>({default:o.OrderPage}))),ie=n.lazy(()=>Promise.resolve().then(()=>require("./charge-DUScJbNu.cjs")).then(o=>o.index).then(o=>({default:o.CustomerDashboard}))),q=n.lazy(()=>Promise.resolve().then(()=>require("./charge-DUScJbNu.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-BrwXRmXM.cjs")).then(o=>o.index).then(o=>({default:o.RenderAnnouncement}))),U=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-BrwXRmXM.cjs")).then(o=>o.index).then(o=>({default:o.RenderFooter}))),B=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-BrwXRmXM.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;
|