@billgangcom/theme-lib 1.120.2 → 1.120.4
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-B7zcAFlP.js} +940 -910
- package/dist/{builder-CWaG42kw.cjs → builder-D-_y0UZo.cjs} +12 -12
- package/dist/{builder-components-Dyplqbia.cjs → builder-components-BINsMpjv.cjs} +1 -1
- package/dist/{builder-components-5Z24DJJP.js → builder-components-DTblcA5b.js} +4 -4
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +22 -22
- package/dist/{charge-BEnNfxFr.cjs → charge-DFWqP484.cjs} +38 -38
- package/dist/{charge-B1GrtVWc.js → charge-D_2QP2MU.js} +3028 -3023
- package/dist/{checkout-CF05O03i.cjs → checkout-BFUUel8K.cjs} +1 -1
- package/dist/{checkout-B21z1TGE.js → checkout-CW4kk1A2.js} +5 -5
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-Dez8BiQX.js → index-BUpWXhdd.js} +5 -5
- package/dist/{index-DTAlnIyB.js → index-BiNYeUmn.js} +1 -1
- package/dist/{index-Cs9xerh4.js → index-CMzqaOZI.js} +8 -8
- package/dist/{index-C9ZIjLVQ.js → index-CQMyE7Wb.js} +8 -8
- package/dist/{index-1x0-wbdS.cjs → index-CyrZrBYf.cjs} +1 -1
- package/dist/{index-DT_aTpZf.cjs → index-DI14JIuH.cjs} +1 -1
- package/dist/{index-Be2NRkjG.js → index-DOsbUE9W.js} +5 -5
- package/dist/{index-BZ7C0iBt.cjs → index-DScxpPuH.cjs} +1 -1
- package/dist/{index-Bl91R63p.cjs → index-Dcc_1V35.cjs} +1 -1
- package/dist/{index-BpWh-qOk.cjs → index-XUyDh3Pa.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +6 -6
- package/dist/{order-BEBOxyTb.cjs → order-Ctzxqbbs.cjs} +1 -1
- package/dist/{order-dg2Oyqn4.js → order-x-Rke14d.js} +5 -5
- package/dist/style.css +1 -1
- package/dist/{subscription-ts1zCYfh.js → subscription-BbMSdNBC.js} +5 -5
- package/dist/{subscription-Cd-C2FDT.cjs → subscription-BqANqkMh.cjs} +1 -1
- package/dist/{ticket-KYg6_LAo.js → ticket-ClWCwOa2.js} +5 -5
- package/dist/{ticket-STaDp20p.cjs → ticket-DZLQHt1e.cjs} +1 -1
- package/dist/{top-up-ZgLo1nZF.cjs → top-up-CRprLre3.cjs} +1 -1
- package/dist/{top-up-dXcEKblL.js → top-up-YIsioJgU.js} +5 -5
- package/dist/{ui-components-CpDQ53a4.js → ui-components-B9RxvEbc.js} +4 -4
- package/dist/{ui-components-s9Q6Wg3R.cjs → ui-components-CAVkeo8V.cjs} +1 -1
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1 -1
- package/dist/{validation-DC8gCoJH.js → validation-BRWhHglL.js} +6 -6
- package/dist/{validation-DLYUReRT.cjs → validation-CbLHhgF-.cjs} +1 -1
- package/package.json +1 -1
|
@@ -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-D-_y0UZo.cjs"),k=require("./ui-components-CAVkeo8V.cjs"),ct=require("react-dom");require("./charge-DFWqP484.cjs");require("./ticket-DZLQHt1e.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.
|
|
@@ -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-B7zcAFlP.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-B9RxvEbc.js";
|
|
5
5
|
import { unstable_batchedUpdates as Kt, createPortal as Vr } from "react-dom";
|
|
6
|
-
import "./charge-
|
|
7
|
-
import "./ticket-
|
|
6
|
+
import "./charge-D_2QP2MU.js";
|
|
7
|
+
import "./ticket-ClWCwOa2.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;
|
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-D-_y0UZo.cjs"),m=require("./ticket-DZLQHt1e.cjs"),n=require("react"),v=require("./charge-DFWqP484.cjs"),_=require("./ui-components-CAVkeo8V.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-D-_y0UZo.cjs")).then(o=>o.index).then(o=>({default:o.BuilderPage}))),$=n.lazy(()=>Promise.resolve().then(()=>require("./index-DI14JIuH.cjs")).then(o=>({default:o.ErrorPage}))),K=n.lazy(()=>Promise.resolve().then(()=>require("./index-DScxpPuH.cjs")).then(o=>({default:o.ActivePage}))),Y=n.lazy(()=>Promise.resolve().then(()=>require("./validation-CbLHhgF-.cjs")).then(o=>({default:o.ValidationPage}))),Z=n.lazy(()=>Promise.resolve().then(()=>require("./index-XUyDh3Pa.cjs")).then(o=>({default:o.WrapperPage}))),ee=n.lazy(()=>Promise.resolve().then(()=>require("./index-CyrZrBYf.cjs")).then(o=>({default:o.RouterErrorPage}))),i=n.lazy(()=>Promise.resolve().then(()=>require("./index-Dcc_1V35.cjs")).then(o=>({default:o.DynamicErrorPage}))),te=n.lazy(()=>Promise.resolve().then(()=>require("./checkout-BFUUel8K.cjs")).then(o=>({default:o.Checkout}))),oe=n.lazy(()=>Promise.resolve().then(()=>require("./charge-DFWqP484.cjs")).then(o=>o.index$1).then(o=>({default:o.ChargePage}))),ne=n.lazy(()=>Promise.resolve().then(()=>require("./ticket-DZLQHt1e.cjs")).then(o=>o.index).then(o=>({default:o.TicketItem}))),re=n.lazy(()=>Promise.resolve().then(()=>require("./subscription-BqANqkMh.cjs")).then(o=>o.index).then(o=>({default:o.Subscription}))),se=n.lazy(()=>Promise.resolve().then(()=>require("./top-up-CRprLre3.cjs")).then(o=>({default:o.TopUpBalance}))),ce=n.lazy(()=>Promise.resolve().then(()=>require("./order-Ctzxqbbs.cjs")).then(o=>o.index).then(o=>({default:o.OrderPage}))),ie=n.lazy(()=>Promise.resolve().then(()=>require("./charge-DFWqP484.cjs")).then(o=>o.index).then(o=>({default:o.CustomerDashboard}))),q=n.lazy(()=>Promise.resolve().then(()=>require("./charge-DFWqP484.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-BINsMpjv.cjs")).then(o=>o.index).then(o=>({default:o.RenderAnnouncement}))),U=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-BINsMpjv.cjs")).then(o=>o.index).then(o=>({default:o.RenderFooter}))),B=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-BINsMpjv.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,9 +1,9 @@
|
|
|
1
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,
|
|
3
|
-
import { f as Z, l as ee, j as te, k as oe, D as ne } from "./ticket-
|
|
2
|
+
import { N as j, K as V, j as N, c as q, m as Q, a as X, M as J, aj as K, ak as $, al as Y } from "./builder-B7zcAFlP.js";
|
|
3
|
+
import { f as Z, l as ee, j as te, k as oe, D as ne } from "./ticket-ClWCwOa2.js";
|
|
4
4
|
import o, { Suspense as re } from "react";
|
|
5
|
-
import { _ as ce, $ as ae, a0 as ie } from "./charge-
|
|
6
|
-
import { w as se } from "./ui-components-
|
|
5
|
+
import { _ as ce, $ as ae, a0 as ie } from "./charge-D_2QP2MU.js";
|
|
6
|
+
import { w as se } from "./ui-components-B9RxvEbc.js";
|
|
7
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
8
|
const to = ({
|
|
9
9
|
children: e,
|
|
@@ -154,45 +154,45 @@ function no() {
|
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
const ro = o.lazy(
|
|
157
|
-
() => import("./builder-
|
|
157
|
+
() => import("./builder-B7zcAFlP.js").then((e) => e.ao).then((e) => ({ default: e.BuilderPage }))
|
|
158
158
|
), co = o.lazy(
|
|
159
|
-
() => import("./index-
|
|
159
|
+
() => import("./index-DOsbUE9W.js").then((e) => ({ default: e.ErrorPage }))
|
|
160
160
|
), ao = o.lazy(
|
|
161
|
-
() => import("./index-
|
|
161
|
+
() => import("./index-BiNYeUmn.js").then((e) => ({ default: e.ActivePage }))
|
|
162
162
|
), io = o.lazy(
|
|
163
|
-
() => import("./validation-
|
|
163
|
+
() => import("./validation-BRWhHglL.js").then((e) => ({ default: e.ValidationPage }))
|
|
164
164
|
), so = o.lazy(
|
|
165
|
-
() => import("./index-
|
|
165
|
+
() => import("./index-CQMyE7Wb.js").then((e) => ({ default: e.WrapperPage }))
|
|
166
166
|
), lo = o.lazy(
|
|
167
|
-
() => import("./index-
|
|
167
|
+
() => import("./index-BUpWXhdd.js").then((e) => ({ default: e.RouterErrorPage }))
|
|
168
168
|
), c = o.lazy(
|
|
169
|
-
() => import("./index-
|
|
169
|
+
() => import("./index-CMzqaOZI.js").then((e) => ({ default: e.DynamicErrorPage }))
|
|
170
170
|
), uo = o.lazy(
|
|
171
|
-
() => import("./checkout-
|
|
171
|
+
() => import("./checkout-CW4kk1A2.js").then((e) => ({ default: e.Checkout }))
|
|
172
172
|
), ho = o.lazy(
|
|
173
|
-
() => import("./charge-
|
|
173
|
+
() => import("./charge-D_2QP2MU.js").then((e) => e.a5).then((e) => ({ default: e.ChargePage }))
|
|
174
174
|
), Io = o.lazy(
|
|
175
|
-
() => import("./ticket-
|
|
175
|
+
() => import("./ticket-ClWCwOa2.js").then((e) => e.m).then((e) => ({ default: e.TicketItem }))
|
|
176
176
|
), mo = o.lazy(
|
|
177
|
-
() => import("./subscription-
|
|
177
|
+
() => import("./subscription-BbMSdNBC.js").then((e) => e.i).then((e) => ({ default: e.Subscription }))
|
|
178
178
|
), go = o.lazy(
|
|
179
|
-
() => import("./top-up-
|
|
179
|
+
() => import("./top-up-YIsioJgU.js").then((e) => ({ default: e.TopUpBalance }))
|
|
180
180
|
), po = o.lazy(
|
|
181
|
-
() => import("./order-
|
|
181
|
+
() => import("./order-x-Rke14d.js").then((e) => e.i).then((e) => ({ default: e.OrderPage }))
|
|
182
182
|
), fo = o.lazy(
|
|
183
|
-
() => import("./charge-
|
|
183
|
+
() => import("./charge-D_2QP2MU.js").then((e) => e.a4).then((e) => ({ default: e.CustomerDashboard }))
|
|
184
184
|
), b = o.lazy(
|
|
185
|
-
() => import("./charge-
|
|
185
|
+
() => import("./charge-D_2QP2MU.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
|
-
() => import("./builder-components-
|
|
187
|
+
() => import("./builder-components-DTblcA5b.js").then((e) => e.i).then((e) => ({
|
|
188
188
|
default: e.RenderAnnouncement
|
|
189
189
|
}))
|
|
190
190
|
), B = o.lazy(
|
|
191
|
-
() => import("./builder-components-
|
|
191
|
+
() => import("./builder-components-DTblcA5b.js").then((e) => e.i).then((e) => ({
|
|
192
192
|
default: e.RenderFooter
|
|
193
193
|
}))
|
|
194
194
|
), E = o.lazy(
|
|
195
|
-
() => import("./builder-components-
|
|
195
|
+
() => import("./builder-components-DTblcA5b.js").then((e) => e.i).then((e) => ({
|
|
196
196
|
default: e.RenderHeader
|
|
197
197
|
}))
|
|
198
198
|
), Lo = (e) => {
|