@billgangcom/theme-lib 1.116.1 → 1.116.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-DqDtctC5.cjs → builder-C7KDCjPK.cjs} +10 -10
- package/dist/{builder-components-DzvQc6D4.js → builder-components-C8GR-K0b.js} +4 -4
- package/dist/{builder-components-D3Bb10J8.cjs → builder-components-DTCH52Zj.cjs} +1 -1
- package/dist/{builder-DUFJOYbB.js → builder-q7_i-usP.js} +15 -9
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +22 -22
- package/dist/{charge-I1l9O9oW.cjs → charge-CjJu8ZCC.cjs} +2 -2
- package/dist/{charge-JAW-QeMZ.js → charge-D5cvaKFj.js} +8 -7
- package/dist/{checkout-BvcF30gE.js → checkout-CsTsjmHG.js} +5 -5
- package/dist/{checkout-CwhyZ4zD.cjs → checkout-Dbu7YMSx.cjs} +1 -1
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-Bfh9GkFs.cjs → index-2oIkoScp.cjs} +1 -1
- package/dist/{index-Cdm3FwGu.cjs → index-B-z0PneZ.cjs} +1 -1
- package/dist/{index-DjnhbFh9.cjs → index-B1UP_MbR.cjs} +1 -1
- package/dist/{index-CyaRCiT9.js → index-BLeoCjpE.js} +5 -5
- package/dist/{index-bsPNagUY.js → index-BbZMD5la.js} +5 -5
- package/dist/{index-DcWpxbHI.js → index-C9TT9z5B.js} +5 -5
- package/dist/{index-EjVO3qce.js → index-DU5z0tPJ.js} +5 -5
- package/dist/{index-dp4B_uob.cjs → index-DXroLqaD.cjs} +1 -1
- package/dist/{index-BGpMbUmG.js → index-d8l00Hpw.js} +1 -1
- package/dist/{index-BsM2kPyQ.cjs → index-r9HLobSy.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +6 -6
- package/dist/{order-BLPHbRzn.js → order-Cveqw4gC.js} +5 -5
- package/dist/{order-DN9oIA9o.cjs → order-d9OX_gLP.cjs} +1 -1
- package/dist/src/abstractions/PageContext.d.ts +15 -0
- package/dist/src/abstractions/Variable.d.ts +1 -0
- package/dist/src/builder/api/fetchData.d.ts +3 -0
- package/dist/{subscription-r7qA65EX.cjs → subscription-BvsNAnoC.cjs} +1 -1
- package/dist/{subscription-D0TYbXFf.js → subscription-Bz6FRE3J.js} +5 -5
- package/dist/{ticket-BivnxhDp.cjs → ticket-B90nYD05.cjs} +1 -1
- package/dist/{ticket--uOANXoZ.js → ticket-DU1t1M0h.js} +9 -7
- package/dist/{top-up-u1oUf64a.js → top-up-2OMBI611.js} +5 -5
- package/dist/{top-up-C13wralR.cjs → top-up-CFc0wZAg.cjs} +1 -1
- package/dist/{ui-components-CC9DRvrZ.cjs → ui-components-B79-9qoP.cjs} +1 -1
- package/dist/{ui-components-CqwUR9GH.js → ui-components-BxH-lR8m.js} +4 -4
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1 -1
- package/dist/{validation-BtrRWzoi.cjs → validation-Crn-70HH.cjs} +1 -1
- package/dist/{validation-ekksqWOd.js → validation-DpREFoxz.js} +5 -5
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as y, jsx as c, Fragment as Le } from "react/jsx-runtime";
|
|
2
2
|
import A, { useLayoutEffect as Ts, useEffect as U, useRef as V, useMemo as H, useCallback as ne, useState as he, memo as Ms, useReducer as Rs, createContext as Pt, useContext as nt } from "react";
|
|
3
|
-
import { u as oe, a as qe, b as Q, c as re, d as Lo, e as Vn, f as B, v as tn, T as mt, g as Os, h as Kn, i as Fe, j as Po, r as Fo, k as dn, l as Bt, m as q, n as jo, L as ot, o as Yn, p as st, q as $s, s as Gn, t as tt, w as hn, x as Rt, y as zo, A as Ls, S as Ps, C as Fs, z as ft, B as js, 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 zs } from "./builder-
|
|
4
|
-
import { I as M, u as Hs, B as Xe, E as on, c as ue, S as Ce, d as Tn, T as Ws } from "./ui-components-
|
|
5
|
-
import "./charge-
|
|
6
|
-
import "./ticket
|
|
3
|
+
import { u as oe, a as qe, b as Q, c as re, d as Lo, e as Vn, f as B, v as tn, T as mt, g as Os, h as Kn, i as Fe, j as Po, r as Fo, k as dn, l as Bt, m as q, n as jo, L as ot, o as Yn, p as st, q as $s, s as Gn, t as tt, w as hn, x as Rt, y as zo, A as Ls, S as Ps, C as Fs, z as ft, B as js, 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 zs } from "./builder-q7_i-usP.js";
|
|
4
|
+
import { I as M, u as Hs, B as Xe, E as on, c as ue, S as Ce, d as Tn, T as Ws } from "./ui-components-BxH-lR8m.js";
|
|
5
|
+
import "./charge-D5cvaKFj.js";
|
|
6
|
+
import "./ticket-DU1t1M0h.js";
|
|
7
7
|
import { unstable_batchedUpdates as Kt, createPortal as Us } from "react-dom";
|
|
8
8
|
const Xn = ({ render: e, block: t }) => e(t), Wo = ({ settings: e, pageContext: t }) => {
|
|
9
9
|
const { footer: n } = oe(), { settings: o } = qe(), { pageContext: s } = Q(), { footer: r } = re();
|
|
@@ -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-C7KDCjPK.cjs"),j=require("./ui-components-B79-9qoP.cjs");require("./charge-CjJu8ZCC.cjs");require("./ticket-B90nYD05.cjs");const ct=require("react-dom"),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 Ge(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?Ge(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 Ge(e)?!1:e instanceof J(e).HTMLElement}function Qn(e){return e instanceof J(e).SVGElement}function Xe(e){return e?Ge(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 qs(e){if(!e)return!1;const{TouchEvent:t}=J(e.target);return t&&e instanceof t}function Zt(e){if(qs(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 qe=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[qe.Translate.toString(e),qe.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 Gs(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.
|
|
@@ -2,10 +2,10 @@ import * as C from "react";
|
|
|
2
2
|
import _e, { useRef as jr, useEffect as _a } from "react";
|
|
3
3
|
import * as La from "react-dom";
|
|
4
4
|
import { jsx as M, jsxs as Re, Fragment as Pa } from "react/jsx-runtime";
|
|
5
|
-
import { I as Jt, B as $r, a as Jn, C as Oa, b as Ma, L as Aa } from "./ui-components-
|
|
6
|
-
import { N as Da, H as Fa, S as Ia, P as Ba, M as Ha } from "./builder-components-
|
|
7
|
-
import "./charge-
|
|
8
|
-
import "./ticket
|
|
5
|
+
import { I as Jt, B as $r, a as Jn, C as Oa, b as Ma, L as Aa } from "./ui-components-BxH-lR8m.js";
|
|
6
|
+
import { N as Da, H as Fa, S as Ia, P as Ba, M as Ha } from "./builder-components-C8GR-K0b.js";
|
|
7
|
+
import "./charge-D5cvaKFj.js";
|
|
8
|
+
import "./ticket-DU1t1M0h.js";
|
|
9
9
|
/**
|
|
10
10
|
* @remix-run/router v1.23.0
|
|
11
11
|
*
|
|
@@ -5262,7 +5262,7 @@ const {
|
|
|
5262
5262
|
const b = (v = h.response) == null ? void 0 : v.status;
|
|
5263
5263
|
if (b === 401)
|
|
5264
5264
|
try {
|
|
5265
|
-
const _ = await import("./charge-
|
|
5265
|
+
const _ = await import("./charge-D5cvaKFj.js").then((T) => T.a0);
|
|
5266
5266
|
_ && _.logoutCustomer ? await _.logoutCustomer() : localStorage.removeItem("token"), window.location.reload();
|
|
5267
5267
|
} catch (_) {
|
|
5268
5268
|
console.error("Failed to import logoutCustomer:", _), localStorage.removeItem("token"), window.location.reload();
|
|
@@ -6050,7 +6050,8 @@ const gr = (e) => (t) => {
|
|
|
6050
6050
|
general: null,
|
|
6051
6051
|
fullPosts: null,
|
|
6052
6052
|
posts: null,
|
|
6053
|
-
preserveContent: !1
|
|
6053
|
+
preserveContent: !1,
|
|
6054
|
+
vouches: null
|
|
6054
6055
|
},
|
|
6055
6056
|
isOpenModal: !1,
|
|
6056
6057
|
isOpenSelectModal: !1,
|
|
@@ -7617,7 +7618,7 @@ async function Nt(e, t) {
|
|
|
7617
7618
|
}
|
|
7618
7619
|
async function ud() {
|
|
7619
7620
|
try {
|
|
7620
|
-
const [e, t, n, r, o, a, i, s] = await Promise.allSettled([
|
|
7621
|
+
const [e, t, n, r, o, a, i, s, l] = await Promise.allSettled([
|
|
7621
7622
|
Nt("v1", "general"),
|
|
7622
7623
|
Nt("v1", "faqs"),
|
|
7623
7624
|
Nt("v1", "listings"),
|
|
@@ -7627,6 +7628,9 @@ async function ud() {
|
|
|
7627
7628
|
{
|
|
7628
7629
|
data: null
|
|
7629
7630
|
},
|
|
7631
|
+
{
|
|
7632
|
+
data: null
|
|
7633
|
+
},
|
|
7630
7634
|
{
|
|
7631
7635
|
data: null
|
|
7632
7636
|
}
|
|
@@ -7639,7 +7643,8 @@ async function ud() {
|
|
|
7639
7643
|
reviews: o,
|
|
7640
7644
|
categories: a,
|
|
7641
7645
|
fullPosts: i,
|
|
7642
|
-
posts: s
|
|
7646
|
+
posts: s,
|
|
7647
|
+
vouches: l
|
|
7643
7648
|
};
|
|
7644
7649
|
} catch (e) {
|
|
7645
7650
|
throw console.error("Error fetching page data:", e), e;
|
|
@@ -7712,7 +7717,8 @@ const pd = (e) => {
|
|
|
7712
7717
|
general: null,
|
|
7713
7718
|
fullPosts: null,
|
|
7714
7719
|
posts: null,
|
|
7715
|
-
preserveContent: !1
|
|
7720
|
+
preserveContent: !1,
|
|
7721
|
+
vouches: null
|
|
7716
7722
|
}, qe = await ud();
|
|
7717
7723
|
Object.keys(qe).map((ie) => {
|
|
7718
7724
|
const pe = ie;
|
package/dist/builder.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("./builder-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("./builder-C7KDCjPK.cjs"),p=require("./ticket-B90nYD05.cjs"),n=require("react"),E=require("./charge-CjJu8ZCC.cjs"),M=require("./ui-components-B79-9qoP.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:w}=a.useStorefrontStore();return n.useLayoutEffect(()=>{const s=async()=>{const{data:c}=await E.fetchTerms();f(c)},S=async()=>{const{data:c}=await E.fetchPrivacyPolicy();l(c)},v=async()=>{const{data:c}=await E.fetchRefundPolicy();j(c)};x(d),C(u),h&&k(h),g&&w(g),s(),S(),v()},[d,u,h]),e.jsx(e.Fragment,{children:t})},_="_wrapper_1xuz3_18",L={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,ArrowLineDown:r.ArrowLineDown,CloudArrowUpIcon:r.CloudArrowUpIcon,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,Shield:r.Shield,ShieldCheck:r.ShieldCheck,FileCloud:r.FileCloud,Warning:r.Warning,WarningDiamond:r.WarningDiamond})}const G=n.lazy(()=>Promise.resolve().then(()=>require("./builder-C7KDCjPK.cjs")).then(t=>t.index).then(t=>({default:t.BuilderPage}))),N=n.lazy(()=>Promise.resolve().then(()=>require("./index-B1UP_MbR.cjs")).then(t=>({default:t.ErrorPage}))),Q=n.lazy(()=>Promise.resolve().then(()=>require("./index-r9HLobSy.cjs")).then(t=>({default:t.ActivePage}))),J=n.lazy(()=>Promise.resolve().then(()=>require("./validation-Crn-70HH.cjs")).then(t=>({default:t.ValidationPage}))),$=n.lazy(()=>Promise.resolve().then(()=>require("./index-DXroLqaD.cjs")).then(t=>({default:t.WrapperPage}))),K=n.lazy(()=>Promise.resolve().then(()=>require("./index-2oIkoScp.cjs")).then(t=>({default:t.RouterErrorPage}))),i=n.lazy(()=>Promise.resolve().then(()=>require("./index-B-z0PneZ.cjs")).then(t=>({default:t.DynamicErrorPage}))),Y=n.lazy(()=>Promise.resolve().then(()=>require("./checkout-Dbu7YMSx.cjs")).then(t=>({default:t.Checkout}))),Z=n.lazy(()=>Promise.resolve().then(()=>require("./charge-CjJu8ZCC.cjs")).then(t=>t.index$1).then(t=>({default:t.ChargePage}))),ee=n.lazy(()=>Promise.resolve().then(()=>require("./ticket-B90nYD05.cjs")).then(t=>t.index).then(t=>({default:t.TicketItem}))),te=n.lazy(()=>Promise.resolve().then(()=>require("./subscription-BvsNAnoC.cjs")).then(t=>t.index).then(t=>({default:t.Subscription}))),re=n.lazy(()=>Promise.resolve().then(()=>require("./top-up-CFc0wZAg.cjs")).then(t=>({default:t.TopUpBalance}))),ne=n.lazy(()=>Promise.resolve().then(()=>require("./order-d9OX_gLP.cjs")).then(t=>t.index).then(t=>({default:t.OrderPage}))),oe=n.lazy(()=>Promise.resolve().then(()=>require("./charge-CjJu8ZCC.cjs")).then(t=>t.index).then(t=>({default:t.CustomerDashboard}))),b=n.lazy(()=>Promise.resolve().then(()=>require("./charge-CjJu8ZCC.cjs")).then(t=>t.recapcha).then(t=>({default:t.ReCaptchaProvider}))),se=()=>null,o=({children:t})=>e.jsx(n.Suspense,{fallback:e.jsx(se,{}),children:t}),ae=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-DTCH52Zj.cjs")).then(t=>t.index).then(t=>({default:t.RenderAnnouncement}))),T=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-DTCH52Zj.cjs")).then(t=>t.index).then(t=>({default:t.RenderFooter}))),I=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-DTCH52Zj.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,w]=n.useState(null),{general:s,setIsAntistock:S}=a.useGeneralStore(),{setApiUrls:v}=a.useApiStore(),{setBlocks:c,setSourceBlocks:z,setHeader:B,setFooter:F,setAnnouncement:O,setSettings:U}=a.useBlocksStore(),{themeSettings:y}=a.useThemeSettingsStore(),{settings:D,setSettings:H}=a.useSettingsStore(),P=a.IS_LOCAL_HOST?localStorage.getItem("fakeDomain")||"":window.location.hostname,W=localStorage.getItem("shopPassword"),A=localStorage.getItem("shopId")||"";return n.useEffect(()=>{S(l)},[l,S]),n.useEffect(()=>{!A&&(s!=null&&s.info.id)&&localStorage.setItem("shopId",s==null?void 0:s.info.id)},[s]),n.useEffect(()=>{!P&&!l&&localStorage.setItem("fakeDomain","drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"),!P&&l&&localStorage.setItem("fakeDomain","eva8.astck.io")},[P]),n.useEffect(()=>{if(y&&D){const m=p.generateDynamicStyles(y,D);p.loadCustomFonts(),p.setupDynamicFonts(y),p.injectStylesToDOM(m)}},[y,JSON.stringify(D),window.location.hostname]),n.useEffect(()=>{const R=new u().blockSettings;H(R)},[]),n.useEffect(()=>{X()},[]),n.useLayoutEffect(()=>{const m={};Object.keys(d).map(q=>{m[q]=d[q]}),z(m),c(m),B(h),F(g),O(x),U(u),f&&v(f);const R=a.createBrowserRouter([{element:e.jsx(V,{shopDomain:P,shopId:A,shopPassword:W||void 0,shopLogo:k,children:e.jsx(b,{children:e.jsx($,{children:e.jsx(a.Outlet,{})})})}),errorElement:e.jsx(o,{children:e.jsx(K,{})}),children:[{path:"/admin/builder/*",element:e.jsx(o,{children:e.jsx(Q,{children:e.jsx(G,{blocks:d,settings:u,header:h,footer:g,announcement:x})})}),errorElement:e.jsx(o,{children:e.jsx(N,{})})},...C,{path:"/checkout",element:e.jsx(o,{children:e.jsx(Y,{})}),errorElement:e.jsx(o,{children:e.jsx(i,{})}),loader:()=>(document.title="Checkout",!0)},{path:"/top-up",element:e.jsx(o,{children:e.jsx(re,{})}),errorElement:e.jsx(o,{children:e.jsx(i,{})}),loader:()=>(document.title="Top Up Balance",!0)},{path:"/charges/:id",element:e.jsx(o,{children:e.jsx(Z,{})}),errorElement:e.jsx(o,{children:e.jsx(i,{})}),loader:()=>(document.title="Charges",!0)},{path:"/orders/:id/:accessToken?",element:e.jsx(o,{children:e.jsx(ne,{})}),errorElement:e.jsx(o,{children:e.jsx(i,{})}),loader:()=>(document.title="Orders",!0)},{path:"/subscriptions/:id/:accessToken?",element:e.jsx(o,{children:e.jsx(te,{})}),errorElement:e.jsx(o,{children:e.jsx(i,{})}),loader:()=>(document.title="Subscriptions",!0)},{path:l?"/account":"/customer-dash",element:e.jsx(o,{children:e.jsxs("div",{className:L.wrapper,children:[e.jsx(ae,{}),e.jsx(I,{}),e.jsx("div",{style:{flex:"1 1 auto"},children:e.jsx(oe,{})}),e.jsx(T,{})]})}),errorElement:e.jsx(o,{children:e.jsx(i,{})}),loader:()=>(document.title=l?"Account":"Customer Dashboard",!0)},{path:"/validation",element:e.jsx(o,{children:e.jsx(J,{})}),errorElement:e.jsx(o,{children:e.jsx(i,{})}),loader:()=>(document.title="Validation",!0)},{path:"/ticket/:id/:accessToken",element:e.jsx(o,{children:e.jsxs("div",{className:L.wrapper,children:[e.jsx(I,{}),e.jsx("div",{style:{flex:1,width:"100%",height:"100%"},children:e.jsx(b,{children:e.jsx(ee,{})})}),e.jsx(T,{})]})}),errorElement:e.jsx(o,{children:e.jsx(i,{})}),loader:()=>(document.title="Ticket",!0)},{path:"*",element:e.jsx(p.DynamicRouteWrapper,{}),errorElement:e.jsx(o,{children:e.jsx(i,{})})}]}]);w(R)},[s]),e.jsx(n.Suspense,{fallback:null,children:j&&e.jsx(a.RouterProvider,{router:j})})};exports.App=ie;
|
package/dist/builder.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as t, Fragment as _, jsxs as z } from "react/jsx-runtime";
|
|
2
|
-
import { M as j, V as W, j as M, c as V, m as N, a as G, K as X, ai as J, aj as K, ak as Q } from "./builder-
|
|
3
|
-
import { f as Y, l as Z, j as q, k as $, D as ee } from "./ticket
|
|
2
|
+
import { M as j, V as W, j as M, c as V, m as N, a as G, K as X, ai as J, aj as K, ak as Q } from "./builder-q7_i-usP.js";
|
|
3
|
+
import { f as Y, l as Z, j as q, k as $, D as ee } from "./ticket-DU1t1M0h.js";
|
|
4
4
|
import r, { Suspense as te } from "react";
|
|
5
|
-
import { Y as re, Z as oe, _ as ne } from "./charge-
|
|
6
|
-
import { o as ae } from "./ui-components-
|
|
5
|
+
import { Y as re, Z as oe, _ as ne } from "./charge-D5cvaKFj.js";
|
|
6
|
+
import { o as ae } from "./ui-components-BxH-lR8m.js";
|
|
7
7
|
import { WarningDiamond as se, Warning as ie, FileCloud as ce, ShieldCheck as le, Shield as de, Question as he, CalendarCheck as ue, Medal as me, CurrencyCircleDollar as pe, House as fe, Calendar as ge, User as ye, Heart as Se, ArrowRight as ke, ArrowLeft as Pe, DotsSixVertical as Ce, ChatsTeardrop as we, PaperPlaneRight as Ee, Wallet as Re, SignOut as De, TelegramLogo as be, DiscordLogo as ze, DownloadSimple as Ae, BookOpen as Te, FileText as Ie, Lightning as Le, Fire as Be, Star as ve, XCircle as Fe, CheckCircle as Oe, CloudArrowUpIcon as Ue, ArrowLineDown as xe, MagnifyingGlass as He, CaretDown as _e, CaretRight as je, ArrowLineUpRight as We, ArrowUp as Me, Crown as Ve, Eye as Ne, Bag as Ge, Handbag as Xe, List as Je, Image as Ke, Sliders as Qe, Trash as Ye, Copy as Ze, Info as qe, Clock as $e, Check as et, Minus as tt, Plus as rt, X as ot } from "@phosphor-icons/react";
|
|
8
8
|
const nt = ({
|
|
9
9
|
children: e,
|
|
@@ -103,45 +103,45 @@ function st() {
|
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
const it = r.lazy(
|
|
106
|
-
() => import("./builder-
|
|
106
|
+
() => import("./builder-q7_i-usP.js").then((e) => e.an).then((e) => ({ default: e.BuilderPage }))
|
|
107
107
|
), ct = r.lazy(
|
|
108
|
-
() => import("./index-
|
|
108
|
+
() => import("./index-BLeoCjpE.js").then((e) => ({ default: e.ErrorPage }))
|
|
109
109
|
), lt = r.lazy(
|
|
110
|
-
() => import("./index-
|
|
110
|
+
() => import("./index-d8l00Hpw.js").then((e) => ({ default: e.ActivePage }))
|
|
111
111
|
), dt = r.lazy(
|
|
112
|
-
() => import("./validation-
|
|
112
|
+
() => import("./validation-DpREFoxz.js").then((e) => ({ default: e.ValidationPage }))
|
|
113
113
|
), ht = r.lazy(
|
|
114
|
-
() => import("./index-
|
|
114
|
+
() => import("./index-BbZMD5la.js").then((e) => ({ default: e.WrapperPage }))
|
|
115
115
|
), ut = r.lazy(
|
|
116
|
-
() => import("./index-
|
|
116
|
+
() => import("./index-C9TT9z5B.js").then((e) => ({ default: e.RouterErrorPage }))
|
|
117
117
|
), a = r.lazy(
|
|
118
|
-
() => import("./index-
|
|
118
|
+
() => import("./index-DU5z0tPJ.js").then((e) => ({ default: e.DynamicErrorPage }))
|
|
119
119
|
), mt = r.lazy(
|
|
120
|
-
() => import("./checkout-
|
|
120
|
+
() => import("./checkout-CsTsjmHG.js").then((e) => ({ default: e.Checkout }))
|
|
121
121
|
), pt = r.lazy(
|
|
122
|
-
() => import("./charge-
|
|
122
|
+
() => import("./charge-D5cvaKFj.js").then((e) => e.a3).then((e) => ({ default: e.ChargePage }))
|
|
123
123
|
), ft = r.lazy(
|
|
124
|
-
() => import("./ticket
|
|
124
|
+
() => import("./ticket-DU1t1M0h.js").then((e) => e.m).then((e) => ({ default: e.TicketItem }))
|
|
125
125
|
), gt = r.lazy(
|
|
126
|
-
() => import("./subscription-
|
|
126
|
+
() => import("./subscription-Bz6FRE3J.js").then((e) => e.i).then((e) => ({ default: e.Subscription }))
|
|
127
127
|
), yt = r.lazy(
|
|
128
|
-
() => import("./top-up-
|
|
128
|
+
() => import("./top-up-2OMBI611.js").then((e) => ({ default: e.TopUpBalance }))
|
|
129
129
|
), St = r.lazy(
|
|
130
|
-
() => import("./order-
|
|
130
|
+
() => import("./order-Cveqw4gC.js").then((e) => e.i).then((e) => ({ default: e.OrderPage }))
|
|
131
131
|
), kt = r.lazy(
|
|
132
|
-
() => import("./charge-
|
|
132
|
+
() => import("./charge-D5cvaKFj.js").then((e) => e.a2).then((e) => ({ default: e.CustomerDashboard }))
|
|
133
133
|
), T = r.lazy(
|
|
134
|
-
() => import("./charge-
|
|
134
|
+
() => import("./charge-D5cvaKFj.js").then((e) => e.a1).then((e) => ({ default: e.ReCaptchaProvider }))
|
|
135
135
|
), Pt = () => null, o = ({ children: e }) => /* @__PURE__ */ t(te, { fallback: /* @__PURE__ */ t(Pt, {}), children: e }), Ct = r.lazy(
|
|
136
|
-
() => import("./builder-components-
|
|
136
|
+
() => import("./builder-components-C8GR-K0b.js").then((e) => e.i).then((e) => ({
|
|
137
137
|
default: e.RenderAnnouncement
|
|
138
138
|
}))
|
|
139
139
|
), I = r.lazy(
|
|
140
|
-
() => import("./builder-components-
|
|
140
|
+
() => import("./builder-components-C8GR-K0b.js").then((e) => e.i).then((e) => ({
|
|
141
141
|
default: e.RenderFooter
|
|
142
142
|
}))
|
|
143
143
|
), L = r.lazy(
|
|
144
|
-
() => import("./builder-components-
|
|
144
|
+
() => import("./builder-components-C8GR-K0b.js").then((e) => e.i).then((e) => ({
|
|
145
145
|
default: e.RenderHeader
|
|
146
146
|
}))
|
|
147
147
|
), Tt = (e) => {
|