@billgangcom/theme-lib 1.123.0 → 1.123.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/{builder-Cbzb-Pzj.js → builder-CCEuMJHf.js} +5 -5
  2. package/dist/{builder-BNQD7fm1.cjs → builder-Ds7YGa4R.cjs} +2 -2
  3. package/dist/{builder-components-B8gWw88v.cjs → builder-components-DGUkozk4.cjs} +2 -2
  4. package/dist/{builder-components-B6Ct-1cI.js → builder-components-DwhwUeGI.js} +7 -7
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +55 -55
  7. package/dist/{charge-Bv8wu-fV.js → charge-CDN6c8fH.js} +3411 -3413
  8. package/dist/{charge-DcKd_es2.cjs → charge-DhnKnpft.cjs} +38 -38
  9. package/dist/{checkout-DkIvY2zs.js → checkout-BvO_IFZC.js} +5 -5
  10. package/dist/{checkout-BQwNBpVW.cjs → checkout-DwjYz2UO.cjs} +1 -1
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-C-OH-0Jj.js → index-4Fv4TJoE.js} +1 -1
  14. package/dist/{index-BnMpELp_.cjs → index-5V9m4qrj.cjs} +1 -1
  15. package/dist/{index-BHLQHIsH.js → index-BEA2JbPH.js} +2 -2
  16. package/dist/{index-DoklSmf4.cjs → index-BUzWndW1.cjs} +1 -1
  17. package/dist/{index-Bk-mY9E3.js → index-Bf1rCeaA.js} +5 -5
  18. package/dist/{index-DozNvPOR.cjs → index-BmdHEyvQ.cjs} +1 -1
  19. package/dist/{index-BYdRgPyI.cjs → index-BnXJaCzv.cjs} +1 -1
  20. package/dist/{index-BIfw5wrd.js → index-CcUTer5K.js} +5 -5
  21. package/dist/{index-D1W9Fza6.js → index-CnYAFW5g.js} +5 -5
  22. package/dist/{index-Dyg2ZZW6.cjs → index-DFgrfmVQ.cjs} +1 -1
  23. package/dist/{index-CtZBWOyf.js → index-Day7cnTY.js} +5 -5
  24. package/dist/{index-BtqOzf1F.cjs → index-O1rl7waW.cjs} +1 -1
  25. package/dist/index.cjs.js +1 -1
  26. package/dist/index.es.js +6 -6
  27. package/dist/{order-S6e2WcCX.js → order-72eEexQG.js} +5 -5
  28. package/dist/{order-B0gf5VEi.cjs → order-CViCqeNE.cjs} +1 -1
  29. package/dist/style.css +1 -1
  30. package/dist/{subscription-5ytxlwXp.cjs → subscription-KNkElwUf.cjs} +1 -1
  31. package/dist/{subscription-HEpvSKgZ.js → subscription-_1E5Q4cZ.js} +5 -5
  32. package/dist/{ticket-CbQabuyp.js → ticket-BaaOhwo6.js} +5 -5
  33. package/dist/{ticket-C5g3kw8c.cjs → ticket-CAAyzazn.cjs} +1 -1
  34. package/dist/{top-up-lubckd9w.js → top-up-BtDdCsvY.js} +5 -5
  35. package/dist/{top-up-CrbYB293.cjs → top-up-C6yt7kQ7.cjs} +1 -1
  36. package/dist/{ui-components-jkqz3-Kc.cjs → ui-components-B4zC_5Bu.cjs} +1 -1
  37. package/dist/{ui-components-BhVIVLV-.js → ui-components-CjgL5uP8.js} +4 -4
  38. package/dist/ui.cjs.js +1 -1
  39. package/dist/ui.es.js +1 -1
  40. package/dist/{validation-lwFWEACU.js → validation-CMUxfJfv.js} +5 -5
  41. package/dist/{validation-Be-6h5-8.cjs → validation-JBPRJyS9.cjs} +1 -1
  42. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  import { jsxs as w, 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 Xe, b as J, c as se, d as Po, e as Vn, f as B, v as tn, T as vt, g as Or, h as Kn, i as Fe, j as Lo, r as Fo, k as dn, l as Bt, m as Y, n as zo, L as ot, o as qn, p as rt, q as $r, s as Gn, t as tt, w as hn, x as Rt, y as jo, A as Pr, S as Lr, C as Fr, z as ft, B as zr, D as Be, E as Ft, R as _n, F as yn, G as Ho, H as nn, I as we, P as go, J as jr, K as Hr } from "./builder-Cbzb-Pzj.js";
4
- import { I as R, u as Wr, B as Ye, E as on, c as ue, S as Ce, d as Tn, T as Ur } from "./ui-components-BhVIVLV-.js";
3
+ import { u as ne, a as Xe, b as J, c as se, d as Po, e as Vn, f as B, v as tn, T as vt, g as Or, h as Kn, i as Fe, j as Lo, r as Fo, k as dn, l as Bt, m as Y, n as zo, L as ot, o as qn, p as rt, q as $r, s as Gn, t as tt, w as hn, x as Rt, y as jo, A as Pr, S as Lr, C as Fr, z as ft, B as zr, D as Be, E as Ft, R as _n, F as yn, G as Ho, H as nn, I as we, P as go, J as jr, K as Hr } from "./builder-CCEuMJHf.js";
4
+ import { I as R, u as Wr, B as Ye, E as on, c as ue, S as Ce, d as Tn, T as Ur } from "./ui-components-CjgL5uP8.js";
5
5
  import { unstable_batchedUpdates as Kt, createPortal as Vr } from "react-dom";
6
- import "./charge-Bv8wu-fV.js";
7
- import "./ticket-CbQabuyp.js";
6
+ import "./charge-CDN6c8fH.js";
7
+ import "./ticket-BaaOhwo6.js";
8
8
  const Yn = ({ render: e, block: t }) => e(t), Wo = ({ settings: e, pageContext: t }) => {
9
9
  const { footer: n } = ne(), { settings: o } = Xe(), { pageContext: r } = J(), { footer: s } = se();
10
10
  if (!s || !n) return null;
@@ -3898,7 +3898,7 @@ yt.parseIndex = qi;
3898
3898
  yt.config = E;
3899
3899
  yt.parseQuery = wr;
3900
3900
  ca(aa);
3901
- const pa = "_header_2d8xd_1", va = "_left_2d8xd_13", ma = "_right_2d8xd_14", Xt = {
3901
+ const pa = "_header_17vny_1", va = "_left_17vny_14", ma = "_right_17vny_15", Xt = {
3902
3902
  header: pa,
3903
3903
  left: va,
3904
3904
  right: ma
@@ -4476,7 +4476,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4476
4476
  /* @__PURE__ */ c("span", { className: Nn.text, children: "Exit" })
4477
4477
  ]
4478
4478
  }
4479
- ) }), oc = "_navbar_1podc_1", rc = "_main_1podc_6", sc = "_block_1podc_13", ic = "_active_1podc_29", Jt = {
4479
+ ) }), oc = "_navbar_41zo8_1", rc = "_main_41zo8_7", sc = "_block_41zo8_14", ic = "_active_41zo8_30", Jt = {
4480
4480
  navbar: oc,
4481
4481
  main: rc,
4482
4482
  block: sc,
@@ -5029,7 +5029,7 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Oo = {
5029
5029
  ]
5030
5030
  }
5031
5031
  );
5032
- }, Wc = "_sidebar_1xtkj_1", Uc = "_title_1xtkj_11", $o = {
5032
+ }, Wc = "_sidebar_1yz5p_1", Uc = "_title_1yz5p_12", $o = {
5033
5033
  sidebar: Wc,
5034
5034
  title: Uc
5035
5035
  }, Vc = "_layers_anz81_1", Kc = "_wrapper_anz81_9", qc = "_draggingWrapper_anz81_17", Gc = "_block_anz81_21", Yc = "_dragging_anz81_17", Xc = "_active_anz81_56", Jc = "_add_anz81_63", Qc = "_addTop_anz81_79", Zc = "_visible_anz81_95", el = "_button_anz81_99", tl = "_nameBlock_anz81_158", nl = "_loader_anz81_162", ol = "_actions_anz81_171", rl = "_deleteButton_anz81_179", ee = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),i=require("./builder-BNQD7fm1.cjs"),m=require("./ticket-C5g3kw8c.cjs"),n=require("react"),v=require("./charge-DcKd_es2.cjs"),_=require("./ui-components-jkqz3-Kc.cjs"),e=require("@phosphor-icons/react"),Q=({children:r,shopDomain:u,shopId:d,shopPassword:h,shopLogo:g})=>{const{setShopDomain:x,setShopId:P,setShopPassword:y,setShopTerms:p,setShopPrivacyPolicy:a,setShopRefundPolicy:f,setShopLogo:A}=i.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)},T=async()=>{const{data:l}=await v.fetchRefundPolicy();f(l)};x(u),P(d),h&&y(h),g&&A(g),s(),S(),T()},[u,d,h]),t.jsx(t.Fragment,{children:r})},X="_wrapper_1xuz3_18",D={wrapper:X};function J(){_.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 $=n.lazy(()=>Promise.resolve().then(()=>require("./builder-BNQD7fm1.cjs")).then(r=>r.index).then(r=>({default:r.BuilderPage}))),K=n.lazy(()=>Promise.resolve().then(()=>require("./index-BnMpELp_.cjs")).then(r=>({default:r.ErrorPage}))),Y=n.lazy(()=>Promise.resolve().then(()=>require("./index-BYdRgPyI.cjs")).then(r=>({default:r.ActivePage}))),Z=n.lazy(()=>Promise.resolve().then(()=>require("./validation-Be-6h5-8.cjs")).then(r=>({default:r.ValidationPage}))),ee=n.lazy(()=>Promise.resolve().then(()=>require("./index-DoklSmf4.cjs")).then(r=>({default:r.WrapperPage}))),te=n.lazy(()=>Promise.resolve().then(()=>require("./index-Dyg2ZZW6.cjs")).then(r=>({default:r.RouterErrorPage}))),c=n.lazy(()=>Promise.resolve().then(()=>require("./index-BtqOzf1F.cjs")).then(r=>({default:r.DynamicErrorPage}))),re=n.lazy(()=>Promise.resolve().then(()=>require("./checkout-BQwNBpVW.cjs")).then(r=>({default:r.Checkout}))),ne=n.lazy(()=>Promise.resolve().then(()=>require("./charge-DcKd_es2.cjs")).then(r=>r.index$1).then(r=>({default:r.ChargePage}))),oe=n.lazy(()=>Promise.resolve().then(()=>require("./ticket-C5g3kw8c.cjs")).then(r=>r.index).then(r=>({default:r.TicketItem}))),se=n.lazy(()=>Promise.resolve().then(()=>require("./subscription-5ytxlwXp.cjs")).then(r=>r.index).then(r=>({default:r.Subscription}))),ce=n.lazy(()=>Promise.resolve().then(()=>require("./top-up-CrbYB293.cjs")).then(r=>({default:r.TopUpBalance}))),ie=n.lazy(()=>Promise.resolve().then(()=>require("./order-B0gf5VEi.cjs")).then(r=>r.index).then(r=>({default:r.OrderPage}))),ae=n.lazy(()=>Promise.resolve().then(()=>require("./index-DozNvPOR.cjs")).then(r=>({default:r.TermsPage}))),le=n.lazy(()=>Promise.resolve().then(()=>require("./charge-DcKd_es2.cjs")).then(r=>r.index).then(r=>({default:r.CustomerDashboard}))),U=n.lazy(()=>Promise.resolve().then(()=>require("./charge-DcKd_es2.cjs")).then(r=>r.recapcha).then(r=>({default:r.ReCaptchaProvider}))),ue=()=>null,o=({children:r})=>t.jsx(n.Suspense,{fallback:t.jsx(ue,{}),children:r}),B=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-B8gWw88v.cjs")).then(r=>r.index).then(r=>({default:r.RenderAnnouncement}))),L=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-B8gWw88v.cjs")).then(r=>r.index).then(r=>({default:r.RenderFooter}))),R=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-B8gWw88v.cjs")).then(r=>r.index).then(r=>({default:r.RenderHeader}))),de=r=>{var q;const{blocks:u,settings:d,header:h,footer:g,announcement:x,routes:P=[],shopLogo:y,apiURLs:p,isAntistock:a=!1}=r,[f,A]=n.useState(null),{general:s,setIsAntistock:S}=i.useGeneralStore(),{setApiUrls:T}=i.useApiStore(),l=((q=s==null?void 0:s.info)==null?void 0:q.customerAccountSettings)??"OPTIONAL",z=l==="DISABLED",{setBlocks:H,setSourceBlocks:F,setHeader:O,setFooter:M,setAnnouncement:G,setSettings:W}=i.useBlocksStore(),{themeSettings:C}=i.useThemeSettingsStore(),{settings:w,setSettings:V}=i.useSettingsStore(),j=i.IS_LOCAL_HOST?localStorage.getItem("fakeDomain")||"":window.location.hostname,N=localStorage.getItem("shopPassword"),b=localStorage.getItem("shopId")||"";return n.useEffect(()=>{S(a)},[a,S]),n.useEffect(()=>{!b&&(s!=null&&s.info.id)&&localStorage.setItem("shopId",s==null?void 0:s.info.id)},[s]),n.useEffect(()=>{!j&&!a&&localStorage.setItem("fakeDomain","drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"),!j&&a&&localStorage.setItem("fakeDomain","eva8.astck.io")},[j]),n.useEffect(()=>{if(C&&w){const I=m.generateDynamicStyles(C,w);m.loadCustomFonts(),m.setupDynamicFonts(C),m.injectStylesToDOM(I)}},[C,JSON.stringify(w),window.location.hostname]),n.useEffect(()=>{const k=new d().blockSettings;V(k)},[]),n.useEffect(()=>{J()},[]),n.useLayoutEffect(()=>{const I={};Object.keys(u).map(E=>{I[E]=u[E]}),F(I),H(I),O(h),M(g),G(x),W(d),p&&T(p);const k=i.createBrowserRouter([{element:t.jsx(Q,{shopDomain:j,shopId:b,shopPassword:N||void 0,shopLogo:y,children:t.jsx(U,{children:t.jsx(ee,{children:t.jsx(i.Outlet,{})})})}),errorElement:t.jsx(o,{children:t.jsx(te,{})}),children:[{path:"/admin/builder/*",element:t.jsx(o,{children:t.jsx(Y,{children:t.jsx($,{blocks:u,settings:d,header:h,footer:g,announcement:x})})}),errorElement:t.jsx(o,{children:t.jsx(K,{})})},...P,{path:"/checkout",element:t.jsx(o,{children:t.jsx(re,{})}),errorElement:t.jsx(o,{children:t.jsx(c,{})}),loader:()=>(document.title="Checkout",!0)},{path:"/top-up",element:t.jsx(o,{children:t.jsx(ce,{})}),errorElement:t.jsx(o,{children:t.jsx(c,{})}),loader:()=>(document.title="Top Up Balance",!0)},{path:"/charges/:id",element:t.jsx(o,{children:t.jsx(ne,{})}),errorElement:t.jsx(o,{children:t.jsx(c,{})}),loader:()=>(document.title="Charges",!0)},{path:"/orders/:id/:accessToken?",element:t.jsx(o,{children:t.jsx(ie,{})}),errorElement:t.jsx(o,{children:t.jsx(c,{})}),loader:()=>(document.title="Orders",!0)},{path:"/subscriptions/:id/:accessToken?",element:t.jsx(o,{children:t.jsx(se,{})}),errorElement:t.jsx(o,{children:t.jsx(c,{})}),loader:()=>(document.title="Subscriptions",!0)},...z?[]:[{path:a?"/account":"/customer-dash",element:t.jsx(o,{children:t.jsxs("div",{className:D.wrapper,children:[t.jsx(B,{}),t.jsx(R,{}),t.jsx("div",{style:{flex:"1 1 auto"},children:t.jsx(le,{})}),t.jsx(L,{})]})}),errorElement:t.jsx(o,{children:t.jsx(c,{})}),loader:()=>(document.title=a?"Account":"Customer Dashboard",!0)}],{path:"/validation",element:t.jsx(o,{children:t.jsx(Z,{})}),errorElement:t.jsx(o,{children:t.jsx(c,{})}),loader:()=>(document.title="Validation",!0)},{path:"/ticket/:id/:accessToken",element:t.jsx(o,{children:t.jsxs("div",{className:D.wrapper,children:[t.jsx(R,{}),t.jsx("div",{style:{flex:1,width:"100%",height:"100%"},children:t.jsx(U,{children:t.jsx(oe,{})})}),t.jsx(L,{})]})}),errorElement:t.jsx(o,{children:t.jsx(c,{})}),loader:()=>(document.title="Ticket",!0)},{path:"/terms",element:t.jsx(o,{children:t.jsxs("div",{className:D.wrapper,children:[t.jsx(B,{}),t.jsx(R,{}),t.jsx("div",{style:{flex:1,width:"100%"},children:t.jsx(ae,{})}),t.jsx(L,{})]})}),errorElement:t.jsx(o,{children:t.jsx(c,{})}),loader:()=>(document.title="Terms of Service",!0)},{path:"*",element:t.jsx(m.DynamicRouteWrapper,{}),errorElement:t.jsx(o,{children:t.jsx(c,{})})}]}]);A(k)},[s,l]),t.jsx(n.Suspense,{fallback:null,children:f&&t.jsx(i.RouterProvider,{router:f})})};exports.App=de;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),i=require("./builder-Ds7YGa4R.cjs"),m=require("./ticket-CAAyzazn.cjs"),n=require("react"),v=require("./charge-DhnKnpft.cjs"),_=require("./ui-components-B4zC_5Bu.cjs"),e=require("@phosphor-icons/react"),Q=({children:r,shopDomain:u,shopId:d,shopPassword:h,shopLogo:g})=>{const{setShopDomain:x,setShopId:j,setShopPassword:P,setShopTerms:p,setShopPrivacyPolicy:l,setShopRefundPolicy:f,setShopLogo:y}=i.useStorefrontStore();return n.useLayoutEffect(()=>{const s=async()=>{const{data:a}=await v.fetchTerms();p(a)},S=async()=>{const{data:a}=await v.fetchPrivacyPolicy();l(a)},A=async()=>{const{data:a}=await v.fetchRefundPolicy();f(a)};x(u),j(d),h&&P(h),g&&y(g),s(),S(),A()},[u,d,h]),t.jsx(t.Fragment,{children:r})},X="_wrapper_1xuz3_18",D={wrapper:X};function J(){_.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 $=n.lazy(()=>Promise.resolve().then(()=>require("./builder-Ds7YGa4R.cjs")).then(r=>r.index).then(r=>({default:r.BuilderPage}))),K=n.lazy(()=>Promise.resolve().then(()=>require("./index-5V9m4qrj.cjs")).then(r=>({default:r.ErrorPage}))),Y=n.lazy(()=>Promise.resolve().then(()=>require("./index-BnXJaCzv.cjs")).then(r=>({default:r.ActivePage}))),Z=n.lazy(()=>Promise.resolve().then(()=>require("./validation-JBPRJyS9.cjs")).then(r=>({default:r.ValidationPage}))),ee=n.lazy(()=>Promise.resolve().then(()=>require("./index-BUzWndW1.cjs")).then(r=>({default:r.WrapperPage}))),te=n.lazy(()=>Promise.resolve().then(()=>require("./index-DFgrfmVQ.cjs")).then(r=>({default:r.RouterErrorPage}))),c=n.lazy(()=>Promise.resolve().then(()=>require("./index-O1rl7waW.cjs")).then(r=>({default:r.DynamicErrorPage}))),re=n.lazy(()=>Promise.resolve().then(()=>require("./checkout-DwjYz2UO.cjs")).then(r=>({default:r.Checkout}))),ne=n.lazy(()=>Promise.resolve().then(()=>require("./charge-DhnKnpft.cjs")).then(r=>r.index$1).then(r=>({default:r.ChargePage}))),oe=n.lazy(()=>Promise.resolve().then(()=>require("./ticket-CAAyzazn.cjs")).then(r=>r.index).then(r=>({default:r.TicketItem}))),se=n.lazy(()=>Promise.resolve().then(()=>require("./subscription-KNkElwUf.cjs")).then(r=>r.index).then(r=>({default:r.Subscription}))),ce=n.lazy(()=>Promise.resolve().then(()=>require("./top-up-C6yt7kQ7.cjs")).then(r=>({default:r.TopUpBalance}))),ie=n.lazy(()=>Promise.resolve().then(()=>require("./order-CViCqeNE.cjs")).then(r=>r.index).then(r=>({default:r.OrderPage}))),ae=n.lazy(()=>Promise.resolve().then(()=>require("./index-BmdHEyvQ.cjs")).then(r=>({default:r.TermsPage}))),le=n.lazy(()=>Promise.resolve().then(()=>require("./charge-DhnKnpft.cjs")).then(r=>r.index).then(r=>({default:r.CustomerDashboard}))),U=n.lazy(()=>Promise.resolve().then(()=>require("./charge-DhnKnpft.cjs")).then(r=>r.recapcha).then(r=>({default:r.ReCaptchaProvider}))),ue=()=>null,o=({children:r})=>t.jsx(n.Suspense,{fallback:t.jsx(ue,{}),children:r}),B=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-DGUkozk4.cjs")).then(r=>r.index).then(r=>({default:r.RenderAnnouncement}))),L=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-DGUkozk4.cjs")).then(r=>r.index).then(r=>({default:r.RenderFooter}))),R=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-DGUkozk4.cjs")).then(r=>r.index).then(r=>({default:r.RenderHeader}))),de=r=>{var q;const{blocks:u,settings:d,header:h,footer:g,announcement:x,routes:j=[],shopLogo:P,apiURLs:p,isAntistock:l=!1}=r,[f,y]=n.useState(null),{general:s,setIsAntistock:S}=i.useGeneralStore(),{setApiUrls:A}=i.useApiStore(),a=((q=s==null?void 0:s.info)==null?void 0:q.customerAccountSettings)??"OPTIONAL",z=a==="DISABLED",{setBlocks:H,setSourceBlocks:F,setHeader:O,setFooter:M,setAnnouncement:G,setSettings:W}=i.useBlocksStore(),{themeSettings:C}=i.useThemeSettingsStore(),{settings:T,setSettings:V}=i.useSettingsStore(),w=i.IS_LOCAL_HOST?localStorage.getItem("fakeDomain")||"":window.location.hostname,N=localStorage.getItem("shopPassword"),b=localStorage.getItem("shopId")||"";return n.useEffect(()=>{S(l)},[l,S]),n.useEffect(()=>{!b&&(s!=null&&s.info.id)&&localStorage.setItem("shopId",s==null?void 0:s.info.id)},[s]),n.useEffect(()=>{!w&&!l&&localStorage.setItem("fakeDomain","drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io")},[w]),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 d().blockSettings;V(k)},[]),n.useEffect(()=>{J()},[]),n.useLayoutEffect(()=>{const I={};Object.keys(u).map(E=>{I[E]=u[E]}),F(I),H(I),O(h),M(g),G(x),W(d),p&&A(p);const k=i.createBrowserRouter([{element:t.jsx(Q,{shopDomain:w,shopId:b,shopPassword:N||void 0,shopLogo:P,children:t.jsx(U,{children:t.jsx(ee,{children:t.jsx(i.Outlet,{})})})}),errorElement:t.jsx(o,{children:t.jsx(te,{})}),children:[{path:"/admin/builder/*",element:t.jsx(o,{children:t.jsx(Y,{children:t.jsx($,{blocks:u,settings:d,header:h,footer:g,announcement:x})})}),errorElement:t.jsx(o,{children:t.jsx(K,{})})},...j,{path:"/checkout",element:t.jsx(o,{children:t.jsx(re,{})}),errorElement:t.jsx(o,{children:t.jsx(c,{})}),loader:()=>(document.title="Checkout",!0)},{path:"/top-up",element:t.jsx(o,{children:t.jsx(ce,{})}),errorElement:t.jsx(o,{children:t.jsx(c,{})}),loader:()=>(document.title="Top Up Balance",!0)},{path:"/charges/:id",element:t.jsx(o,{children:t.jsx(ne,{})}),errorElement:t.jsx(o,{children:t.jsx(c,{})}),loader:()=>(document.title="Charges",!0)},{path:"/orders/:id/:accessToken?",element:t.jsx(o,{children:t.jsx(ie,{})}),errorElement:t.jsx(o,{children:t.jsx(c,{})}),loader:()=>(document.title="Orders",!0)},{path:"/subscriptions/:id/:accessToken?",element:t.jsx(o,{children:t.jsx(se,{})}),errorElement:t.jsx(o,{children:t.jsx(c,{})}),loader:()=>(document.title="Subscriptions",!0)},...z?[]:[{path:l?"/account":"/customer-dash",element:t.jsx(o,{children:t.jsxs("div",{className:D.wrapper,children:[t.jsx(B,{}),t.jsx(R,{}),t.jsx("div",{style:{flex:"1 1 auto"},children:t.jsx(le,{})}),t.jsx(L,{})]})}),errorElement:t.jsx(o,{children:t.jsx(c,{})}),loader:()=>(document.title=l?"Account":"Customer Dashboard",!0)}],{path:"/validation",element:t.jsx(o,{children:t.jsx(Z,{})}),errorElement:t.jsx(o,{children:t.jsx(c,{})}),loader:()=>(document.title="Validation",!0)},{path:"/ticket/:id/:accessToken",element:t.jsx(o,{children:t.jsxs("div",{className:D.wrapper,children:[t.jsx(R,{}),t.jsx("div",{style:{flex:1,width:"100%",height:"100%"},children:t.jsx(U,{children:t.jsx(oe,{})})}),t.jsx(L,{})]})}),errorElement:t.jsx(o,{children:t.jsx(c,{})}),loader:()=>(document.title="Ticket",!0)},{path:"/terms",element:t.jsx(o,{children:t.jsxs("div",{className:D.wrapper,children:[t.jsx(B,{}),t.jsx(R,{}),t.jsx("div",{style:{flex:1,width:"100%"},children:t.jsx(ae,{})}),t.jsx(L,{})]})}),errorElement:t.jsx(o,{children:t.jsx(c,{})}),loader:()=>(document.title="Terms of Service",!0)},{path:"*",element:t.jsx(m.DynamicRouteWrapper,{}),errorElement:t.jsx(o,{children:t.jsx(c,{})})}]}]);y(k)},[s,a]),t.jsx(n.Suspense,{fallback:null,children:f&&t.jsx(i.RouterProvider,{router:f})})};exports.App=de;
@@ -1,9 +1,9 @@
1
1
  import { jsx as e, Fragment as j, jsxs as P } from "react/jsx-runtime";
2
- import { N as V, K as N, j as q, c as Q, m as X, a as J, M as K, aj as $, ak as Y, al as Z } from "./builder-Cbzb-Pzj.js";
3
- import { f as ee, l as te, j as oe, k as ne, D as re } from "./ticket-CbQabuyp.js";
2
+ import { N as V, K as N, j as q, c as Q, m as X, a as J, M as K, aj as $, ak as Y, al as Z } from "./builder-CCEuMJHf.js";
3
+ import { f as ee, l as te, j as oe, k as ne, D as re } from "./ticket-BaaOhwo6.js";
4
4
  import o, { Suspense as ce } from "react";
5
- import { _ as ae, $ as ie, a0 as se } from "./charge-Bv8wu-fV.js";
6
- import { w as le } from "./ui-components-BhVIVLV-.js";
5
+ import { _ as ae, $ as ie, a0 as se } from "./charge-CDN6c8fH.js";
6
+ import { w as le } from "./ui-components-CjgL5uP8.js";
7
7
  import { TextUnderlineIcon as de, TextStrikethroughIcon as he, TextItalicIcon as ue, AlignBottomIcon as me, AlignTopIcon as Ie, AlignRightIcon as pe, AlignLeftIcon as ge, TextAlignCenterIcon as fe, TextAlignRightIcon as Se, TextAlignLeftIcon as Ce, PushPinIcon as ye, CardsIcon as Ae, DeviceMobileCameraIcon as we, DeviceTabletCameraIcon as Te, DesktopIcon as ke, UserCircleGearIcon as Pe, TicketIcon as De, ChatCenteredIcon as Le, SealQuestionIcon as Re, SquaresFourIcon as xe, TextboxIcon as be, ArrowSquareInIcon as Ee, CornersOutIcon as Be, TextHIcon as Ue, TextBIcon as ze, TextAaIcon as ve, PaintBrushBroadIcon as He, GearIcon as Fe, PaletteIcon as Oe, TreeStructureIcon as Me, WarningDiamondIcon as Ge, WarningIcon as We, QuestionIcon as _e, CalendarCheckIcon as je, MedalIcon as Ve, CurrencyCircleDollarIcon as Ne, HouseSimpleIcon as qe, HouseIcon as Qe, GlobeIcon as Xe, SmileyIcon as Je, CalendarIcon as Ke, UserIcon as $e, HeartIcon as Ye, LockIcon as Ze, FileCloudIcon as et, ShieldCheckIcon as tt, ShieldIcon as ot, ShareIcon as nt, DotsSixVerticalIcon as rt, ChatsTeardropIcon as ct, PaperPlaneRightIcon as at, WalletIcon as it, SignOutIcon as st, TelegramLogoIcon as lt, DiscordLogoIcon as dt, DownloadSimpleIcon as ht, BookOpenIcon as ut, FileTextIcon as mt, FileIcon as It, AlignCenterHorizontalIcon as pt, LightningIcon as gt, FireIcon as ft, StarIcon as St, XCircleIcon as Ct, CheckCircleIcon as yt, ArrowsVerticalIcon as At, ArrowsHorizontalIcon as wt, CloudArrowUpIcon as Tt, SelectionIcon as kt, ArrowLineDownIcon as Pt, MagnifyingGlassMinusIcon as Dt, MagnifyingGlassIcon as Lt, CaretLeftIcon as Rt, CaretUpIcon as xt, CaretDownIcon as bt, CaretRightIcon as Et, ArrowUUpRightIcon as Bt, ArrowUUpLeftIcon as Ut, ArrowUpRightIcon as zt, ArrowLineUpRightIcon as vt, ArrowRightIcon as Ht, ArrowLeftIcon as Ft, ConfettiIcon as Ot, ArrowDownIcon as Mt, ArrowUpIcon as Gt, CrownIcon as Wt, EyeIcon as _t, BagIcon as jt, HandbagIcon as Vt, ListIcon as Nt, ImageIcon as qt, SlidersIcon as Qt, TrashIcon as Xt, CopyIcon as Jt, InfoIcon as Kt, ClockIcon as $t, CheckIcon as Yt, MinusIcon as Zt, PlusIcon as eo, XIcon as to } from "@phosphor-icons/react";
8
8
  const oo = ({
9
9
  children: t,
@@ -14,25 +14,25 @@ const oo = ({
14
14
  }) => {
15
15
  const {
16
16
  setShopDomain: m,
17
- setShopId: C,
18
- setShopPassword: y,
17
+ setShopId: S,
18
+ setShopPassword: C,
19
19
  setShopTerms: I,
20
- setShopPrivacyPolicy: a,
20
+ setShopPrivacyPolicy: i,
21
21
  setShopRefundPolicy: p,
22
- setShopLogo: A
22
+ setShopLogo: y
23
23
  } = V();
24
24
  return o.useLayoutEffect(() => {
25
25
  const r = async () => {
26
- const { data: i } = await ae();
27
- I(i);
26
+ const { data: a } = await ae();
27
+ I(a);
28
28
  }, g = async () => {
29
- const { data: i } = await ie();
30
- a(i);
31
- }, w = async () => {
32
- const { data: i } = await se();
33
- p(i);
29
+ const { data: a } = await ie();
30
+ i(a);
31
+ }, A = async () => {
32
+ const { data: a } = await se();
33
+ p(a);
34
34
  };
35
- m(s), C(l), d && y(d), u && A(u), r(), g(), w();
35
+ m(s), S(l), d && C(d), u && y(u), r(), g(), A();
36
36
  }, [s, l, d]), /* @__PURE__ */ e(j, { children: t });
37
37
  }, no = "_wrapper_1xuz3_18", D = {
38
38
  wrapper: no
@@ -154,47 +154,47 @@ function ro() {
154
154
  });
155
155
  }
156
156
  const co = o.lazy(
157
- () => import("./builder-Cbzb-Pzj.js").then((t) => t.ao).then((t) => ({ default: t.BuilderPage }))
157
+ () => import("./builder-CCEuMJHf.js").then((t) => t.ao).then((t) => ({ default: t.BuilderPage }))
158
158
  ), ao = o.lazy(
159
- () => import("./index-BIfw5wrd.js").then((t) => ({ default: t.ErrorPage }))
159
+ () => import("./index-CcUTer5K.js").then((t) => ({ default: t.ErrorPage }))
160
160
  ), io = o.lazy(
161
- () => import("./index-C-OH-0Jj.js").then((t) => ({ default: t.ActivePage }))
161
+ () => import("./index-4Fv4TJoE.js").then((t) => ({ default: t.ActivePage }))
162
162
  ), so = o.lazy(
163
- () => import("./validation-lwFWEACU.js").then((t) => ({ default: t.ValidationPage }))
163
+ () => import("./validation-CMUxfJfv.js").then((t) => ({ default: t.ValidationPage }))
164
164
  ), lo = o.lazy(
165
- () => import("./index-CtZBWOyf.js").then((t) => ({ default: t.WrapperPage }))
165
+ () => import("./index-Day7cnTY.js").then((t) => ({ default: t.WrapperPage }))
166
166
  ), ho = o.lazy(
167
- () => import("./index-Bk-mY9E3.js").then((t) => ({ default: t.RouterErrorPage }))
167
+ () => import("./index-Bf1rCeaA.js").then((t) => ({ default: t.RouterErrorPage }))
168
168
  ), c = o.lazy(
169
- () => import("./index-D1W9Fza6.js").then((t) => ({ default: t.DynamicErrorPage }))
169
+ () => import("./index-CnYAFW5g.js").then((t) => ({ default: t.DynamicErrorPage }))
170
170
  ), uo = o.lazy(
171
- () => import("./checkout-DkIvY2zs.js").then((t) => ({ default: t.Checkout }))
171
+ () => import("./checkout-BvO_IFZC.js").then((t) => ({ default: t.Checkout }))
172
172
  ), mo = o.lazy(
173
- () => import("./charge-Bv8wu-fV.js").then((t) => t.a8).then((t) => ({ default: t.ChargePage }))
173
+ () => import("./charge-CDN6c8fH.js").then((t) => t.a8).then((t) => ({ default: t.ChargePage }))
174
174
  ), Io = o.lazy(
175
- () => import("./ticket-CbQabuyp.js").then((t) => t.m).then((t) => ({ default: t.TicketItem }))
175
+ () => import("./ticket-BaaOhwo6.js").then((t) => t.m).then((t) => ({ default: t.TicketItem }))
176
176
  ), po = o.lazy(
177
- () => import("./subscription-HEpvSKgZ.js").then((t) => t.i).then((t) => ({ default: t.Subscription }))
177
+ () => import("./subscription-_1E5Q4cZ.js").then((t) => t.i).then((t) => ({ default: t.Subscription }))
178
178
  ), go = o.lazy(
179
- () => import("./top-up-lubckd9w.js").then((t) => ({ default: t.TopUpBalance }))
179
+ () => import("./top-up-BtDdCsvY.js").then((t) => ({ default: t.TopUpBalance }))
180
180
  ), fo = o.lazy(
181
- () => import("./order-S6e2WcCX.js").then((t) => t.i).then((t) => ({ default: t.OrderPage }))
181
+ () => import("./order-72eEexQG.js").then((t) => t.i).then((t) => ({ default: t.OrderPage }))
182
182
  ), So = o.lazy(
183
- () => import("./index-BHLQHIsH.js").then((t) => ({ default: t.TermsPage }))
183
+ () => import("./index-BEA2JbPH.js").then((t) => ({ default: t.TermsPage }))
184
184
  ), Co = o.lazy(
185
- () => import("./charge-Bv8wu-fV.js").then((t) => t.a7).then((t) => ({ default: t.CustomerDashboard }))
185
+ () => import("./charge-CDN6c8fH.js").then((t) => t.a7).then((t) => ({ default: t.CustomerDashboard }))
186
186
  ), B = o.lazy(
187
- () => import("./charge-Bv8wu-fV.js").then((t) => t.a6).then((t) => ({ default: t.ReCaptchaProvider }))
187
+ () => import("./charge-CDN6c8fH.js").then((t) => t.a6).then((t) => ({ default: t.ReCaptchaProvider }))
188
188
  ), yo = () => null, n = ({ children: t }) => /* @__PURE__ */ e(ce, { fallback: /* @__PURE__ */ e(yo, {}), children: t }), U = o.lazy(
189
- () => import("./builder-components-B6Ct-1cI.js").then((t) => t.i).then((t) => ({
189
+ () => import("./builder-components-DwhwUeGI.js").then((t) => t.i).then((t) => ({
190
190
  default: t.RenderAnnouncement
191
191
  }))
192
192
  ), L = o.lazy(
193
- () => import("./builder-components-B6Ct-1cI.js").then((t) => t.i).then((t) => ({
193
+ () => import("./builder-components-DwhwUeGI.js").then((t) => t.i).then((t) => ({
194
194
  default: t.RenderFooter
195
195
  }))
196
196
  ), R = o.lazy(
197
- () => import("./builder-components-B6Ct-1cI.js").then((t) => t.i).then((t) => ({
197
+ () => import("./builder-components-DwhwUeGI.js").then((t) => t.i).then((t) => ({
198
198
  default: t.RenderHeader
199
199
  }))
200
200
  ), Ro = (t) => {
@@ -205,30 +205,30 @@ const co = o.lazy(
205
205
  header: d,
206
206
  footer: u,
207
207
  announcement: m,
208
- routes: C = [],
209
- shopLogo: y,
208
+ routes: S = [],
209
+ shopLogo: C,
210
210
  apiURLs: I,
211
- isAntistock: a = !1
212
- } = t, [p, A] = o.useState(null), { general: r, setIsAntistock: g } = N(), { setApiUrls: w } = q(), i = ((b = r == null ? void 0 : r.info) == null ? void 0 : b.customerAccountSettings) ?? "OPTIONAL", z = i === "DISABLED", {
211
+ isAntistock: i = !1
212
+ } = t, [p, y] = o.useState(null), { general: r, setIsAntistock: g } = N(), { setApiUrls: A } = q(), a = ((b = r == null ? void 0 : r.info) == null ? void 0 : b.customerAccountSettings) ?? "OPTIONAL", z = a === "DISABLED", {
213
213
  setBlocks: v,
214
214
  setSourceBlocks: H,
215
215
  setHeader: F,
216
216
  setFooter: O,
217
217
  setAnnouncement: M,
218
218
  setSettings: G
219
- } = Q(), { themeSettings: f } = X(), { settings: T, setSettings: W } = J(), S = K ? localStorage.getItem("fakeDomain") || "" : window.location.hostname, _ = localStorage.getItem("shopPassword"), x = localStorage.getItem("shopId") || "";
219
+ } = Q(), { themeSettings: f } = X(), { settings: w, setSettings: W } = J(), T = K ? localStorage.getItem("fakeDomain") || "" : window.location.hostname, _ = localStorage.getItem("shopPassword"), x = localStorage.getItem("shopId") || "";
220
220
  return o.useEffect(() => {
221
- g(a);
222
- }, [a, g]), o.useEffect(() => {
221
+ g(i);
222
+ }, [i, g]), o.useEffect(() => {
223
223
  !x && (r != null && r.info.id) && localStorage.setItem("shopId", r == null ? void 0 : r.info.id);
224
224
  }, [r]), o.useEffect(() => {
225
- !S && !a && localStorage.setItem("fakeDomain", "drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"), !S && a && localStorage.setItem("fakeDomain", "eva8.astck.io");
226
- }, [S]), o.useEffect(() => {
227
- if (f && T) {
228
- const h = ee(f, T);
225
+ !T && !i && localStorage.setItem("fakeDomain", "drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io");
226
+ }, [T]), o.useEffect(() => {
227
+ if (f && w) {
228
+ const h = ee(f, w);
229
229
  te(), oe(f), ne(h);
230
230
  }
231
- }, [f, JSON.stringify(T), window.location.hostname]), o.useEffect(() => {
231
+ }, [f, JSON.stringify(w), window.location.hostname]), o.useEffect(() => {
232
232
  const k = new l().blockSettings;
233
233
  W(k);
234
234
  }, []), o.useEffect(() => {
@@ -237,16 +237,16 @@ const co = o.lazy(
237
237
  const h = {};
238
238
  Object.keys(s).map((E) => {
239
239
  h[E] = s[E];
240
- }), H(h), v(h), F(d), O(u), M(m), G(l), I && w(I);
240
+ }), H(h), v(h), F(d), O(u), M(m), G(l), I && A(I);
241
241
  const k = $([
242
242
  {
243
243
  element: /* @__PURE__ */ e(
244
244
  oo,
245
245
  {
246
- shopDomain: S,
246
+ shopDomain: T,
247
247
  shopId: x,
248
248
  shopPassword: _ || void 0,
249
- shopLogo: y,
249
+ shopLogo: C,
250
250
  children: /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(lo, { children: /* @__PURE__ */ e(Y, {}) }) })
251
251
  }
252
252
  ),
@@ -266,7 +266,7 @@ const co = o.lazy(
266
266
  ) }) }),
267
267
  errorElement: /* @__PURE__ */ e(n, { children: /* @__PURE__ */ e(ao, {}) })
268
268
  },
269
- ...C,
269
+ ...S,
270
270
  {
271
271
  path: "/checkout",
272
272
  element: /* @__PURE__ */ e(n, { children: /* @__PURE__ */ e(uo, {}) }),
@@ -299,7 +299,7 @@ const co = o.lazy(
299
299
  },
300
300
  ...z ? [] : [
301
301
  {
302
- path: a ? "/account" : "/customer-dash",
302
+ path: i ? "/account" : "/customer-dash",
303
303
  element: /* @__PURE__ */ e(n, { children: /* @__PURE__ */ P("div", { className: D.wrapper, children: [
304
304
  /* @__PURE__ */ e(U, {}),
305
305
  /* @__PURE__ */ e(R, {}),
@@ -315,7 +315,7 @@ const co = o.lazy(
315
315
  /* @__PURE__ */ e(L, {})
316
316
  ] }) }),
317
317
  errorElement: /* @__PURE__ */ e(n, { children: /* @__PURE__ */ e(c, {}) }),
318
- loader: () => (document.title = a ? "Account" : "Customer Dashboard", !0)
318
+ loader: () => (document.title = i ? "Account" : "Customer Dashboard", !0)
319
319
  }
320
320
  ],
321
321
  {
@@ -372,8 +372,8 @@ const co = o.lazy(
372
372
  ]
373
373
  }
374
374
  ]);
375
- A(k);
376
- }, [r, i]), /* @__PURE__ */ e(o.Suspense, { fallback: null, children: p && /* @__PURE__ */ e(Z, { router: p }) });
375
+ y(k);
376
+ }, [r, a]), /* @__PURE__ */ e(o.Suspense, { fallback: null, children: p && /* @__PURE__ */ e(Z, { router: p }) });
377
377
  };
378
378
  export {
379
379
  Ro as App