@billgangcom/theme-lib 1.120.1 → 1.120.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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),c=require("./builder-CWaG42kw.cjs"),m=require("./ticket-STaDp20p.cjs"),n=require("react"),v=require("./charge-BEnNfxFr.cjs"),V=require("./ui-components-s9Q6Wg3R.cjs"),e=require("@phosphor-icons/react"),_=({children:o,shopDomain:u,shopId:h,shopPassword:d,shopLogo:g})=>{const{setShopDomain:x,setShopId:j,setShopPassword:y,setShopTerms:p,setShopPrivacyPolicy:a,setShopRefundPolicy:f,setShopLogo:A}=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&&y(d),g&&A(g),s(),S(),w()},[u,h,d]),t.jsx(t.Fragment,{children:o})},N="_wrapper_1xuz3_18",q={wrapper:N};function Q(){V.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 X=n.lazy(()=>Promise.resolve().then(()=>require("./builder-CWaG42kw.cjs")).then(o=>o.index).then(o=>({default:o.BuilderPage}))),J=n.lazy(()=>Promise.resolve().then(()=>require("./index-DT_aTpZf.cjs")).then(o=>({default:o.ErrorPage}))),$=n.lazy(()=>Promise.resolve().then(()=>require("./index-BZ7C0iBt.cjs")).then(o=>({default:o.ActivePage}))),K=n.lazy(()=>Promise.resolve().then(()=>require("./validation-DLYUReRT.cjs")).then(o=>({default:o.ValidationPage}))),Y=n.lazy(()=>Promise.resolve().then(()=>require("./index-BpWh-qOk.cjs")).then(o=>({default:o.WrapperPage}))),Z=n.lazy(()=>Promise.resolve().then(()=>require("./index-1x0-wbdS.cjs")).then(o=>({default:o.RouterErrorPage}))),i=n.lazy(()=>Promise.resolve().then(()=>require("./index-Bl91R63p.cjs")).then(o=>({default:o.DynamicErrorPage}))),ee=n.lazy(()=>Promise.resolve().then(()=>require("./checkout-CF05O03i.cjs")).then(o=>({default:o.Checkout}))),te=n.lazy(()=>Promise.resolve().then(()=>require("./charge-BEnNfxFr.cjs")).then(o=>o.index$1).then(o=>({default:o.ChargePage}))),oe=n.lazy(()=>Promise.resolve().then(()=>require("./ticket-STaDp20p.cjs")).then(o=>o.index).then(o=>({default:o.TicketItem}))),ne=n.lazy(()=>Promise.resolve().then(()=>require("./subscription-Cd-C2FDT.cjs")).then(o=>o.index).then(o=>({default:o.Subscription}))),re=n.lazy(()=>Promise.resolve().then(()=>require("./top-up-ZgLo1nZF.cjs")).then(o=>({default:o.TopUpBalance}))),se=n.lazy(()=>Promise.resolve().then(()=>require("./order-BEBOxyTb.cjs")).then(o=>o.index).then(o=>({default:o.OrderPage}))),ce=n.lazy(()=>Promise.resolve().then(()=>require("./charge-BEnNfxFr.cjs")).then(o=>o.index).then(o=>({default:o.CustomerDashboard}))),U=n.lazy(()=>Promise.resolve().then(()=>require("./charge-BEnNfxFr.cjs")).then(o=>o.recapcha).then(o=>({default:o.ReCaptchaProvider}))),ie=()=>null,r=({children:o})=>t.jsx(n.Suspense,{fallback:t.jsx(ie,{}),children:o}),ae=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-Dyplqbia.cjs")).then(o=>o.index).then(o=>({default:o.RenderAnnouncement}))),B=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-Dyplqbia.cjs")).then(o=>o.index).then(o=>({default:o.RenderFooter}))),E=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-Dyplqbia.cjs")).then(o=>o.index).then(o=>({default:o.RenderHeader}))),le=o=>{const{blocks:u,settings:h,header:d,footer:g,announcement:x,routes:j=[],shopLogo:y,apiURLs:p,isAntistock:a=!1}=o,[f,A]=n.useState(null),{general:s,setIsAntistock:S}=c.useGeneralStore(),{setApiUrls:w}=c.useApiStore(),{setBlocks:l,setSourceBlocks:z,setHeader:H,setFooter:F,setAnnouncement:O,setSettings:M}=c.useBlocksStore(),{themeSettings:C}=c.useThemeSettingsStore(),{settings:T,setSettings:G}=c.useSettingsStore(),P=c.IS_LOCAL_HOST?localStorage.getItem("fakeDomain")||"":window.location.hostname,W=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;G(k)},[]),n.useEffect(()=>{Q()},[]),n.useLayoutEffect(()=>{var L,R;const I={};Object.keys(u).map(b=>{I[b]=u[b]}),z(I),l(I),H(d),F(g),O(x),M(h),p&&w(p),console.log((L=s==null?void 0:s.info)==null?void 0:L.customerAccountSettings);const k=c.createBrowserRouter([{element:t.jsx(_,{shopDomain:P,shopId:D,shopPassword:W||void 0,shopLogo:y,children:t.jsx(U,{children:t.jsx(Y,{children:t.jsx(c.Outlet,{})})})}),errorElement:t.jsx(r,{children:t.jsx(Z,{})}),children:[{path:"/admin/builder/*",element:t.jsx(r,{children:t.jsx($,{children:t.jsx(X,{blocks:u,settings:h,header:d,footer:g,announcement:x})})}),errorElement:t.jsx(r,{children:t.jsx(J,{})})},...j,{path:"/checkout",element:t.jsx(r,{children:t.jsx(ee,{})}),errorElement:t.jsx(r,{children:t.jsx(i,{})}),loader:()=>(document.title="Checkout",!0)},{path:"/top-up",element:t.jsx(r,{children:t.jsx(re,{})}),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(te,{})}),errorElement:t.jsx(r,{children:t.jsx(i,{})}),loader:()=>(document.title="Charges",!0)},{path:"/orders/:id/:accessToken?",element:t.jsx(r,{children:t.jsx(se,{})}),errorElement:t.jsx(r,{children:t.jsx(i,{})}),loader:()=>(document.title="Orders",!0)},{path:"/subscriptions/:id/:accessToken?",element:t.jsx(r,{children:t.jsx(ne,{})}),errorElement:t.jsx(r,{children:t.jsx(i,{})}),loader:()=>(document.title="Subscriptions",!0)},...(((R=s==null?void 0:s.info)==null?void 0:R.customerAccountSettings)??"OPTIONAL")==="DISABLED"?[]:[{path:a?"/account":"/customer-dash",element:t.jsx(r,{children:t.jsxs("div",{className:q.wrapper,children:[t.jsx(ae,{}),t.jsx(E,{}),t.jsx("div",{style:{flex:"1 1 auto"},children:t.jsx(ce,{})}),t.jsx(B,{})]})}),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(K,{})}),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:q.wrapper,children:[t.jsx(E,{}),t.jsx("div",{style:{flex:1,width:"100%",height:"100%"},children:t.jsx(U,{children:t.jsx(oe,{})})}),t.jsx(B,{})]})}),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,{})})}]}]);A(k)},[s]),t.jsx(n.Suspense,{fallback:null,children:f&&t.jsx(c.RouterProvider,{router:f})})};exports.App=le;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),c=require("./builder-CWaG42kw.cjs"),m=require("./ticket-STaDp20p.cjs"),n=require("react"),v=require("./charge-BEnNfxFr.cjs"),_=require("./ui-components-s9Q6Wg3R.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-CWaG42kw.cjs")).then(o=>o.index).then(o=>({default:o.BuilderPage}))),$=n.lazy(()=>Promise.resolve().then(()=>require("./index-DT_aTpZf.cjs")).then(o=>({default:o.ErrorPage}))),K=n.lazy(()=>Promise.resolve().then(()=>require("./index-BZ7C0iBt.cjs")).then(o=>({default:o.ActivePage}))),Y=n.lazy(()=>Promise.resolve().then(()=>require("./validation-DLYUReRT.cjs")).then(o=>({default:o.ValidationPage}))),Z=n.lazy(()=>Promise.resolve().then(()=>require("./index-BpWh-qOk.cjs")).then(o=>({default:o.WrapperPage}))),ee=n.lazy(()=>Promise.resolve().then(()=>require("./index-1x0-wbdS.cjs")).then(o=>({default:o.RouterErrorPage}))),i=n.lazy(()=>Promise.resolve().then(()=>require("./index-Bl91R63p.cjs")).then(o=>({default:o.DynamicErrorPage}))),te=n.lazy(()=>Promise.resolve().then(()=>require("./checkout-CF05O03i.cjs")).then(o=>({default:o.Checkout}))),oe=n.lazy(()=>Promise.resolve().then(()=>require("./charge-BEnNfxFr.cjs")).then(o=>o.index$1).then(o=>({default:o.ChargePage}))),ne=n.lazy(()=>Promise.resolve().then(()=>require("./ticket-STaDp20p.cjs")).then(o=>o.index).then(o=>({default:o.TicketItem}))),re=n.lazy(()=>Promise.resolve().then(()=>require("./subscription-Cd-C2FDT.cjs")).then(o=>o.index).then(o=>({default:o.Subscription}))),se=n.lazy(()=>Promise.resolve().then(()=>require("./top-up-ZgLo1nZF.cjs")).then(o=>({default:o.TopUpBalance}))),ce=n.lazy(()=>Promise.resolve().then(()=>require("./order-BEBOxyTb.cjs")).then(o=>o.index).then(o=>({default:o.OrderPage}))),ie=n.lazy(()=>Promise.resolve().then(()=>require("./charge-BEnNfxFr.cjs")).then(o=>o.index).then(o=>({default:o.CustomerDashboard}))),q=n.lazy(()=>Promise.resolve().then(()=>require("./charge-BEnNfxFr.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-Dyplqbia.cjs")).then(o=>o.index).then(o=>({default:o.RenderAnnouncement}))),U=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-Dyplqbia.cjs")).then(o=>o.index).then(o=>({default:o.RenderFooter}))),B=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-Dyplqbia.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;
@@ -1,219 +1,220 @@
1
- import { jsx as t, Fragment as W, jsxs as x } from "react/jsx-runtime";
2
- import { N as _, K as j, j as V, c as N, m as q, a as Q, M as X, ai as J, aj as K, ak as $ } from "./builder-CE6yg5oK.js";
3
- import { f as Y, l as Z, j as ee, k as te, D as oe } from "./ticket-KYg6_LAo.js";
4
- import o, { Suspense as ne } from "react";
5
- import { _ as re, $ as ce, a0 as ae } from "./charge-B1GrtVWc.js";
6
- import { w as ie } from "./ui-components-CpDQ53a4.js";
7
- import { TextUnderlineIcon as se, TextStrikethroughIcon as le, TextItalicIcon as de, AlignBottomIcon as he, AlignTopIcon as ue, AlignRightIcon as Ie, AlignLeftIcon as me, TextAlignCenterIcon as ge, TextAlignRightIcon as pe, TextAlignLeftIcon as fe, PushPinIcon as Se, CardsIcon as Ce, DeviceMobileCameraIcon as ye, DeviceTabletCameraIcon as Ae, DesktopIcon as we, UserCircleGearIcon as ke, TicketIcon as Te, ChatCenteredIcon as Pe, SealQuestionIcon as De, SquaresFourIcon as Le, TextboxIcon as Re, ArrowSquareInIcon as xe, CornersOutIcon as be, TextHIcon as Be, TextBIcon as Ee, TextAaIcon as Ue, PaintBrushBroadIcon as ze, GearIcon as ve, PaletteIcon as He, TreeStructureIcon as Fe, WarningDiamondIcon as Oe, WarningIcon as Me, QuestionIcon as Ge, CalendarCheckIcon as We, MedalIcon as _e, CurrencyCircleDollarIcon as je, HouseSimpleIcon as Ve, HouseIcon as Ne, GlobeIcon as qe, SmileyIcon as Qe, CalendarIcon as Xe, UserIcon as Je, HeartIcon as Ke, LockIcon as $e, FileCloudIcon as Ye, ShieldCheckIcon as Ze, ShieldIcon as et, ShareIcon as tt, DotsSixVerticalIcon as ot, ChatsTeardropIcon as nt, PaperPlaneRightIcon as rt, WalletIcon as ct, SignOutIcon as at, TelegramLogoIcon as it, DiscordLogoIcon as st, DownloadSimpleIcon as lt, BookOpenIcon as dt, FileTextIcon as ht, FileIcon as ut, AlignCenterHorizontalIcon as It, LightningIcon as mt, FireIcon as gt, StarIcon as pt, XCircleIcon as ft, CheckCircleIcon as St, ArrowsVerticalIcon as Ct, ArrowsHorizontalIcon as yt, CloudArrowUpIcon as At, SelectionIcon as wt, ArrowLineDownIcon as kt, MagnifyingGlassMinusIcon as Tt, MagnifyingGlassIcon as Pt, CaretLeftIcon as Dt, CaretUpIcon as Lt, CaretDownIcon as Rt, CaretRightIcon as xt, ArrowUUpRightIcon as bt, ArrowUUpLeftIcon as Bt, ArrowUpRightIcon as Et, ArrowLineUpRightIcon as Ut, ArrowRightIcon as zt, ArrowLeftIcon as vt, ConfettiIcon as Ht, ArrowDownIcon as Ft, ArrowUpIcon as Ot, CrownIcon as Mt, EyeIcon as Gt, BagIcon as Wt, HandbagIcon as _t, ListIcon as jt, ImageIcon as Vt, SlidersIcon as Nt, TrashIcon as qt, CopyIcon as Qt, InfoIcon as Xt, ClockIcon as Jt, CheckIcon as Kt, MinusIcon as $t, PlusIcon as Yt, XIcon as Zt } from "@phosphor-icons/react";
8
- const eo = ({
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, ai as K, aj as $, ak as Y } from "./builder-CE6yg5oK.js";
3
+ import { f as Z, l as ee, j as te, k as oe, D as ne } from "./ticket-KYg6_LAo.js";
4
+ import o, { Suspense as re } from "react";
5
+ import { _ as ce, $ as ae, a0 as ie } from "./charge-B1GrtVWc.js";
6
+ import { w as se } from "./ui-components-CpDQ53a4.js";
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
+ const to = ({
9
9
  children: e,
10
10
  shopDomain: s,
11
11
  shopId: l,
12
12
  shopPassword: d,
13
- shopLogo: u
13
+ shopLogo: h
14
14
  }) => {
15
15
  const {
16
16
  setShopDomain: I,
17
17
  setShopId: C,
18
- setShopPassword: y,
18
+ setShopPassword: A,
19
19
  setShopTerms: m,
20
20
  setShopPrivacyPolicy: a,
21
21
  setShopRefundPolicy: g,
22
- setShopLogo: A
23
- } = _();
22
+ setShopLogo: y
23
+ } = j();
24
24
  return o.useLayoutEffect(() => {
25
25
  const r = async () => {
26
- const { data: i } = await re();
26
+ const { data: i } = await ce();
27
27
  m(i);
28
28
  }, p = async () => {
29
- const { data: i } = await ce();
29
+ const { data: i } = await ae();
30
30
  a(i);
31
31
  }, w = async () => {
32
- const { data: i } = await ae();
32
+ const { data: i } = await ie();
33
33
  g(i);
34
34
  };
35
- I(s), C(l), d && y(d), u && A(u), r(), p(), w();
36
- }, [s, l, d]), /* @__PURE__ */ t(W, { children: e });
37
- }, to = "_wrapper_1xuz3_18", b = {
38
- wrapper: to
35
+ I(s), C(l), d && A(d), h && y(h), r(), p(), w();
36
+ }, [s, l, d]), /* @__PURE__ */ t(_, { children: e });
37
+ }, oo = "_wrapper_1xuz3_18", x = {
38
+ wrapper: oo
39
39
  };
40
- function oo() {
41
- ie({
40
+ function no() {
41
+ se({
42
42
  // Основные UI иконки
43
- X: Zt,
44
- Plus: Yt,
45
- Minus: $t,
46
- Check: Kt,
47
- Clock: Jt,
48
- Info: Xt,
49
- Copy: Qt,
50
- Trash: qt,
51
- Sliders: Nt,
52
- Image: Vt,
53
- List: jt,
54
- Handbag: _t,
55
- Bag: Wt,
56
- Eye: Gt,
57
- Crown: Mt,
58
- ArrowUp: Ot,
59
- ArrowDown: Ft,
60
- Confetti: Ht,
61
- ArrowLeft: vt,
62
- ArrowRight: zt,
63
- ArrowLineUpRight: Ut,
64
- ArrowUpRight: Et,
65
- ArrowUUpLeft: Bt,
66
- ArrowUUpRight: bt,
67
- CaretRight: xt,
68
- CaretDown: Rt,
69
- CaretUp: Lt,
70
- CaretLeft: Dt,
71
- MagnifyingGlass: Pt,
72
- MagnifyingGlassMinus: Tt,
73
- ArrowLineDown: kt,
74
- Selection: wt,
75
- CloudArrowUpIcon: At,
43
+ X: eo,
44
+ Plus: Zt,
45
+ Minus: Yt,
46
+ Check: $t,
47
+ Clock: Kt,
48
+ Info: Jt,
49
+ Copy: Xt,
50
+ Trash: Qt,
51
+ Sliders: qt,
52
+ Image: Nt,
53
+ List: Vt,
54
+ Handbag: jt,
55
+ Bag: _t,
56
+ Eye: Wt,
57
+ Crown: Gt,
58
+ ArrowUp: Mt,
59
+ ArrowDown: Ot,
60
+ Confetti: Ft,
61
+ ArrowLeft: Ht,
62
+ ArrowRight: vt,
63
+ ArrowLineUpRight: zt,
64
+ ArrowUpRight: Ut,
65
+ ArrowUUpLeft: Et,
66
+ ArrowUUpRight: Bt,
67
+ CaretRight: bt,
68
+ CaretDown: xt,
69
+ CaretUp: Rt,
70
+ CaretLeft: Lt,
71
+ MagnifyingGlass: Dt,
72
+ MagnifyingGlassMinus: Pt,
73
+ ArrowLineDown: Tt,
74
+ Selection: kt,
75
+ CloudArrowUpIcon: wt,
76
76
  ArrowsHorizontal: yt,
77
- ArrowsVertical: Ct,
77
+ ArrowsVertical: At,
78
78
  // Статусы и действия
79
- CheckCircle: St,
80
- XCircle: ft,
81
- Star: pt,
82
- Fire: gt,
83
- Lightning: mt,
84
- AlignCenterHorizontal: It,
79
+ CheckCircle: Ct,
80
+ XCircle: St,
81
+ Star: ft,
82
+ Fire: pt,
83
+ Lightning: gt,
84
+ AlignCenterHorizontal: mt,
85
85
  // Файлы и документы
86
- File: ut,
86
+ File: It,
87
87
  FileText: ht,
88
- BookOpen: dt,
89
- DownloadSimple: lt,
88
+ BookOpen: ut,
89
+ DownloadSimple: dt,
90
90
  // Социальные сети
91
- DiscordLogo: st,
92
- TelegramLogo: it,
91
+ DiscordLogo: lt,
92
+ TelegramLogo: st,
93
93
  // Навигация и интерфейс
94
- SignOut: at,
95
- Wallet: ct,
96
- PaperPlaneRight: rt,
97
- ChatsTeardrop: nt,
98
- DotsSixVertical: ot,
99
- Share: tt,
94
+ SignOut: it,
95
+ Wallet: at,
96
+ PaperPlaneRight: ct,
97
+ ChatsTeardrop: rt,
98
+ DotsSixVertical: nt,
99
+ Share: ot,
100
100
  // Безопасность и файлы (для Checkout/Secured)
101
- Shield: et,
102
- ShieldCheck: Ze,
103
- FileCloud: Ye,
104
- Lock: $e,
101
+ Shield: tt,
102
+ ShieldCheck: et,
103
+ FileCloud: Ze,
104
+ Lock: Ye,
105
105
  // Специальные иконки
106
- Heart: Ke,
107
- User: Je,
108
- Calendar: Xe,
109
- Smiley: Qe,
110
- Globe: qe,
106
+ Heart: $e,
107
+ User: Ke,
108
+ Calendar: Je,
109
+ Smiley: Xe,
110
+ Globe: Qe,
111
111
  // Иконки для навигации в сайдбаре
112
- House: Ne,
113
- HouseSimple: Ve,
114
- CurrencyCircleDollar: je,
115
- Medal: _e,
116
- CalendarCheck: We,
117
- Question: Ge,
112
+ House: qe,
113
+ HouseSimple: Ne,
114
+ CurrencyCircleDollar: Ve,
115
+ Medal: je,
116
+ CalendarCheck: _e,
117
+ Question: We,
118
118
  // Иконки для статусов
119
- Warning: Me,
120
- WarningDiamond: Oe,
119
+ Warning: Ge,
120
+ WarningDiamond: Me,
121
121
  // Иконки для билдера (Builder icons)
122
- TreeStructure: Fe,
123
- Palette: He,
124
- Gear: ve,
125
- PaintBrushBroad: ze,
126
- TextAa: Ue,
127
- TextB: Ee,
128
- TextH: Be,
129
- CornersOut: be,
130
- ArrowSquareIn: xe,
131
- Textbox: Re,
132
- SquaresFour: Le,
133
- SealQuestion: De,
134
- ChatCentered: Pe,
135
- Ticket: Te,
136
- UserCircleGear: ke,
137
- Desktop: we,
138
- DeviceTabletCamera: Ae,
122
+ TreeStructure: Oe,
123
+ Palette: Fe,
124
+ Gear: He,
125
+ PaintBrushBroad: ve,
126
+ TextAa: ze,
127
+ TextB: Ue,
128
+ TextH: Ee,
129
+ CornersOut: Be,
130
+ ArrowSquareIn: be,
131
+ Textbox: xe,
132
+ SquaresFour: Re,
133
+ SealQuestion: Le,
134
+ ChatCentered: De,
135
+ Ticket: Pe,
136
+ UserCircleGear: Te,
137
+ Desktop: ke,
138
+ DeviceTabletCamera: we,
139
139
  DeviceMobileCamera: ye,
140
- Cards: Ce,
141
- PushPin: Se,
140
+ Cards: Ae,
141
+ PushPin: Ce,
142
142
  // Иконки для выравнивания текста и отступов
143
- TextAlignLeft: fe,
144
- TextAlignRight: pe,
145
- TextAlignCenter: ge,
146
- AlignLeft: me,
147
- AlignRight: Ie,
148
- AlignTop: ue,
143
+ TextAlignLeft: Se,
144
+ TextAlignRight: fe,
145
+ TextAlignCenter: pe,
146
+ AlignLeft: ge,
147
+ AlignRight: me,
148
+ AlignTop: Ie,
149
149
  AlignBottom: he,
150
150
  // Иконки для форматирования текста
151
- TextItalic: de,
152
- TextStrikethrough: le,
153
- TextUnderline: se
151
+ TextItalic: ue,
152
+ TextStrikethrough: de,
153
+ TextUnderline: le
154
154
  });
155
155
  }
156
- const no = o.lazy(
156
+ const ro = o.lazy(
157
157
  () => import("./builder-CE6yg5oK.js").then((e) => e.an).then((e) => ({ default: e.BuilderPage }))
158
- ), ro = o.lazy(
159
- () => import("./index-Be2NRkjG.js").then((e) => ({ default: e.ErrorPage }))
160
158
  ), co = o.lazy(
161
- () => import("./index-DTAlnIyB.js").then((e) => ({ default: e.ActivePage }))
159
+ () => import("./index-Be2NRkjG.js").then((e) => ({ default: e.ErrorPage }))
162
160
  ), ao = o.lazy(
163
- () => import("./validation-DC8gCoJH.js").then((e) => ({ default: e.ValidationPage }))
161
+ () => import("./index-DTAlnIyB.js").then((e) => ({ default: e.ActivePage }))
164
162
  ), io = o.lazy(
165
- () => import("./index-C9ZIjLVQ.js").then((e) => ({ default: e.WrapperPage }))
163
+ () => import("./validation-DC8gCoJH.js").then((e) => ({ default: e.ValidationPage }))
166
164
  ), so = o.lazy(
165
+ () => import("./index-C9ZIjLVQ.js").then((e) => ({ default: e.WrapperPage }))
166
+ ), lo = o.lazy(
167
167
  () => import("./index-Dez8BiQX.js").then((e) => ({ default: e.RouterErrorPage }))
168
168
  ), c = o.lazy(
169
169
  () => import("./index-Cs9xerh4.js").then((e) => ({ default: e.DynamicErrorPage }))
170
- ), lo = o.lazy(
170
+ ), uo = o.lazy(
171
171
  () => import("./checkout-B21z1TGE.js").then((e) => ({ default: e.Checkout }))
172
172
  ), ho = o.lazy(
173
173
  () => import("./charge-B1GrtVWc.js").then((e) => e.a5).then((e) => ({ default: e.ChargePage }))
174
- ), uo = o.lazy(
175
- () => import("./ticket-KYg6_LAo.js").then((e) => e.m).then((e) => ({ default: e.TicketItem }))
176
174
  ), Io = o.lazy(
177
- () => import("./subscription-ts1zCYfh.js").then((e) => e.i).then((e) => ({ default: e.Subscription }))
175
+ () => import("./ticket-KYg6_LAo.js").then((e) => e.m).then((e) => ({ default: e.TicketItem }))
178
176
  ), mo = o.lazy(
179
- () => import("./top-up-dXcEKblL.js").then((e) => ({ default: e.TopUpBalance }))
177
+ () => import("./subscription-ts1zCYfh.js").then((e) => e.i).then((e) => ({ default: e.Subscription }))
180
178
  ), go = o.lazy(
181
- () => import("./order-dg2Oyqn4.js").then((e) => e.i).then((e) => ({ default: e.OrderPage }))
179
+ () => import("./top-up-dXcEKblL.js").then((e) => ({ default: e.TopUpBalance }))
182
180
  ), po = o.lazy(
181
+ () => import("./order-dg2Oyqn4.js").then((e) => e.i).then((e) => ({ default: e.OrderPage }))
182
+ ), fo = o.lazy(
183
183
  () => import("./charge-B1GrtVWc.js").then((e) => e.a4).then((e) => ({ default: e.CustomerDashboard }))
184
- ), B = o.lazy(
184
+ ), b = o.lazy(
185
185
  () => import("./charge-B1GrtVWc.js").then((e) => e.a3).then((e) => ({ default: e.ReCaptchaProvider }))
186
- ), fo = () => null, n = ({ children: e }) => /* @__PURE__ */ t(ne, { fallback: /* @__PURE__ */ t(fo, {}), children: e }), So = o.lazy(
186
+ ), So = () => null, n = ({ children: e }) => /* @__PURE__ */ t(re, { fallback: /* @__PURE__ */ t(So, {}), children: e }), Co = o.lazy(
187
187
  () => import("./builder-components-5Z24DJJP.js").then((e) => e.i).then((e) => ({
188
188
  default: e.RenderAnnouncement
189
189
  }))
190
- ), E = o.lazy(
190
+ ), B = o.lazy(
191
191
  () => import("./builder-components-5Z24DJJP.js").then((e) => e.i).then((e) => ({
192
192
  default: e.RenderFooter
193
193
  }))
194
- ), U = o.lazy(
194
+ ), E = o.lazy(
195
195
  () => import("./builder-components-5Z24DJJP.js").then((e) => e.i).then((e) => ({
196
196
  default: e.RenderHeader
197
197
  }))
198
- ), Do = (e) => {
198
+ ), Lo = (e) => {
199
+ var D;
199
200
  const {
200
201
  blocks: s,
201
202
  settings: l,
202
203
  header: d,
203
- footer: u,
204
+ footer: h,
204
205
  announcement: I,
205
206
  routes: C = [],
206
- shopLogo: y,
207
+ shopLogo: A,
207
208
  apiURLs: m,
208
209
  isAntistock: a = !1
209
- } = e, [g, A] = o.useState(null), { general: r, setIsAntistock: p } = j(), { setApiUrls: w } = V(), {
210
- setBlocks: i,
211
- setSourceBlocks: z,
212
- setHeader: v,
213
- setFooter: H,
214
- setAnnouncement: F,
215
- setSettings: O
216
- } = N(), { themeSettings: f } = q(), { settings: k, setSettings: M } = Q(), S = X ? localStorage.getItem("fakeDomain") || "" : window.location.hostname, G = localStorage.getItem("shopPassword"), P = localStorage.getItem("shopId") || "";
210
+ } = e, [g, y] = o.useState(null), { general: r, setIsAntistock: p } = V(), { setApiUrls: w } = N(), i = ((D = r == null ? void 0 : r.info) == null ? void 0 : D.customerAccountSettings) ?? "OPTIONAL", U = i === "DISABLED", {
211
+ setBlocks: z,
212
+ setSourceBlocks: v,
213
+ setHeader: H,
214
+ setFooter: F,
215
+ setAnnouncement: O,
216
+ setSettings: M
217
+ } = q(), { themeSettings: f } = Q(), { settings: k, setSettings: G } = X(), S = J ? localStorage.getItem("fakeDomain") || "" : window.location.hostname, W = localStorage.getItem("shopPassword"), P = localStorage.getItem("shopId") || "";
217
218
  return o.useEffect(() => {
218
219
  p(a);
219
220
  }, [a, p]), o.useEffect(() => {
@@ -222,58 +223,57 @@ const no = o.lazy(
222
223
  !S && !a && localStorage.setItem("fakeDomain", "drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"), !S && a && localStorage.setItem("fakeDomain", "eva8.astck.io");
223
224
  }, [S]), o.useEffect(() => {
224
225
  if (f && k) {
225
- const h = Y(f, k);
226
- Z(), ee(f), te(h);
226
+ const u = Z(f, k);
227
+ ee(), te(f), oe(u);
227
228
  }
228
229
  }, [f, JSON.stringify(k), window.location.hostname]), o.useEffect(() => {
229
230
  const T = new l().blockSettings;
230
- M(T);
231
+ G(T);
231
232
  }, []), o.useEffect(() => {
232
- oo();
233
+ no();
233
234
  }, []), o.useLayoutEffect(() => {
234
- var D, L;
235
- const h = {};
236
- Object.keys(s).map((R) => {
237
- h[R] = s[R];
238
- }), z(h), i(h), v(d), H(u), F(I), O(l), m && w(m), console.log((D = r == null ? void 0 : r.info) == null ? void 0 : D.customerAccountSettings);
239
- const T = J([
235
+ const u = {};
236
+ Object.keys(s).map((L) => {
237
+ u[L] = s[L];
238
+ }), v(u), z(u), H(d), F(h), O(I), M(l), m && w(m);
239
+ const T = K([
240
240
  {
241
241
  element: /* @__PURE__ */ t(
242
- eo,
242
+ to,
243
243
  {
244
244
  shopDomain: S,
245
245
  shopId: P,
246
- shopPassword: G || void 0,
247
- shopLogo: y,
248
- children: /* @__PURE__ */ t(B, { children: /* @__PURE__ */ t(io, { children: /* @__PURE__ */ t(K, {}) }) })
246
+ shopPassword: W || void 0,
247
+ shopLogo: A,
248
+ children: /* @__PURE__ */ t(b, { children: /* @__PURE__ */ t(so, { children: /* @__PURE__ */ t($, {}) }) })
249
249
  }
250
250
  ),
251
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(so, {}) }),
251
+ errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(lo, {}) }),
252
252
  children: [
253
253
  {
254
254
  path: "/admin/builder/*",
255
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(co, { children: /* @__PURE__ */ t(
256
- no,
255
+ element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(ao, { children: /* @__PURE__ */ t(
256
+ ro,
257
257
  {
258
258
  blocks: s,
259
259
  settings: l,
260
260
  header: d,
261
- footer: u,
261
+ footer: h,
262
262
  announcement: I
263
263
  }
264
264
  ) }) }),
265
- errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(ro, {}) })
265
+ errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(co, {}) })
266
266
  },
267
267
  ...C,
268
268
  {
269
269
  path: "/checkout",
270
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(lo, {}) }),
270
+ element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(uo, {}) }),
271
271
  errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) }),
272
272
  loader: () => (document.title = "Checkout", !0)
273
273
  },
274
274
  {
275
275
  path: "/top-up",
276
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(mo, {}) }),
276
+ element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(go, {}) }),
277
277
  errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) }),
278
278
  loader: () => (document.title = "Top Up Balance", !0)
279
279
  },
@@ -285,32 +285,32 @@ const no = o.lazy(
285
285
  },
286
286
  {
287
287
  path: "/orders/:id/:accessToken?",
288
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(go, {}) }),
288
+ element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(po, {}) }),
289
289
  errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) }),
290
290
  loader: () => (document.title = "Orders", !0)
291
291
  },
292
292
  {
293
293
  path: "/subscriptions/:id/:accessToken?",
294
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(Io, {}) }),
294
+ element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(mo, {}) }),
295
295
  errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) }),
296
296
  loader: () => (document.title = "Subscriptions", !0)
297
297
  },
298
- ...(((L = r == null ? void 0 : r.info) == null ? void 0 : L.customerAccountSettings) ?? "OPTIONAL") === "DISABLED" ? [] : [
298
+ ...U ? [] : [
299
299
  {
300
300
  path: a ? "/account" : "/customer-dash",
301
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ x("div", { className: b.wrapper, children: [
302
- /* @__PURE__ */ t(So, {}),
303
- /* @__PURE__ */ t(U, {}),
301
+ element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ R("div", { className: x.wrapper, children: [
302
+ /* @__PURE__ */ t(Co, {}),
303
+ /* @__PURE__ */ t(E, {}),
304
304
  /* @__PURE__ */ t(
305
305
  "div",
306
306
  {
307
307
  style: {
308
308
  flex: "1 1 auto"
309
309
  },
310
- children: /* @__PURE__ */ t(po, {})
310
+ children: /* @__PURE__ */ t(fo, {})
311
311
  }
312
312
  ),
313
- /* @__PURE__ */ t(E, {})
313
+ /* @__PURE__ */ t(B, {})
314
314
  ] }) }),
315
315
  errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) }),
316
316
  loader: () => (document.title = a ? "Account" : "Customer Dashboard", !0)
@@ -318,14 +318,14 @@ const no = o.lazy(
318
318
  ],
319
319
  {
320
320
  path: "/validation",
321
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(ao, {}) }),
321
+ element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(io, {}) }),
322
322
  errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) }),
323
323
  loader: () => (document.title = "Validation", !0)
324
324
  },
325
325
  {
326
326
  path: "/ticket/:id/:accessToken",
327
- element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ x("div", { className: b.wrapper, children: [
328
- /* @__PURE__ */ t(U, {}),
327
+ element: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ R("div", { className: x.wrapper, children: [
328
+ /* @__PURE__ */ t(E, {}),
329
329
  /* @__PURE__ */ t(
330
330
  "div",
331
331
  {
@@ -334,25 +334,25 @@ const no = o.lazy(
334
334
  width: "100%",
335
335
  height: "100%"
336
336
  },
337
- children: /* @__PURE__ */ t(B, { children: /* @__PURE__ */ t(uo, {}) })
337
+ children: /* @__PURE__ */ t(b, { children: /* @__PURE__ */ t(Io, {}) })
338
338
  }
339
339
  ),
340
- /* @__PURE__ */ t(E, {})
340
+ /* @__PURE__ */ t(B, {})
341
341
  ] }) }),
342
342
  errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) }),
343
343
  loader: () => (document.title = "Ticket", !0)
344
344
  },
345
345
  {
346
346
  path: "*",
347
- element: /* @__PURE__ */ t(oe, {}),
347
+ element: /* @__PURE__ */ t(ne, {}),
348
348
  errorElement: /* @__PURE__ */ t(n, { children: /* @__PURE__ */ t(c, {}) })
349
349
  }
350
350
  ]
351
351
  }
352
352
  ]);
353
- A(T);
354
- }, [r]), /* @__PURE__ */ t(o.Suspense, { fallback: null, children: g && /* @__PURE__ */ t($, { router: g }) });
353
+ y(T);
354
+ }, [r, i]), /* @__PURE__ */ t(o.Suspense, { fallback: null, children: g && /* @__PURE__ */ t(Y, { router: g }) });
355
355
  };
356
356
  export {
357
- Do as App
357
+ Lo as App
358
358
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@billgangcom/theme-lib",
3
- "version": "1.120.1",
3
+ "version": "1.120.2",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"