@billgangcom/theme-lib 1.110.7 → 1.111.0

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 (63) hide show
  1. package/dist/{builder-D_zv5ue0.js → builder-B31b5UQu.js} +231 -227
  2. package/dist/{builder-B7hjBRYI.cjs → builder-BAYgntut.cjs} +9 -9
  3. package/dist/{builder-components-DN-mNdj8.js → builder-components-BrUaSzmu.js} +4 -4
  4. package/dist/{builder-components-BjoFBErH.cjs → builder-components-CitLV0Xf.cjs} +1 -1
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +109 -107
  7. package/dist/{charge-BQUHzEju.js → charge-DDPKMr1X.js} +10739 -9802
  8. package/dist/charge-Dj2R60Yu.cjs +109 -0
  9. package/dist/{checkout-uzxtu1pZ.js → checkout-CYXV8Y-_.js} +5 -5
  10. package/dist/{checkout-CUct7uCm.cjs → checkout-DBK6_t-t.cjs} +1 -1
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-CEMbDy4G.cjs → index-BCuCOhBc.cjs} +1 -1
  14. package/dist/{index-BBMTjm8A.cjs → index-BoPfKksa.cjs} +1 -1
  15. package/dist/{index-R_FZBtaZ.cjs → index-Bv1mSFy_.cjs} +1 -1
  16. package/dist/{index-Cbqz9kIG.cjs → index-CSe8H52Z.cjs} +1 -1
  17. package/dist/{index-hCDY-ip7.js → index-CWq55eW7.js} +10 -9
  18. package/dist/{index-CzkkQ8sH.js → index-C_XwNA_j.js} +5 -5
  19. package/dist/{index-CMECtXvH.js → index-CcF01H3S.js} +5 -5
  20. package/dist/{index-BXhAWCRX.cjs → index-CvjUdJSD.cjs} +1 -1
  21. package/dist/{index-BJMeFohP.js → index-CwFkr47f.js} +1 -1
  22. package/dist/{index-CX1FV9wS.js → index-XroJ5pVT.js} +5 -5
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.es.js +8 -8
  25. package/dist/order-BEbWtrZ2.cjs +1 -0
  26. package/dist/order-CCJq_uKK.js +228 -0
  27. package/dist/src/constants/notification.d.ts +2 -0
  28. package/dist/src/storefront/api/checkout.d.ts +1 -0
  29. package/dist/src/storefront/api/index.d.ts +1 -0
  30. package/dist/src/storefront/api/order.d.ts +8 -0
  31. package/dist/src/storefront/components/CheckoutPrices/index.d.ts +2 -0
  32. package/dist/src/storefront/components/CheckoutProduct/index.d.ts +4 -0
  33. package/dist/src/storefront/components/ProtectYourCheckout/index.d.ts +12 -0
  34. package/dist/src/storefront/components/ReplacementModal/index.d.ts +16 -0
  35. package/dist/src/storefront/components/ReplacementRequestItem/index.d.ts +10 -0
  36. package/dist/src/storefront/components/index.d.ts +1 -0
  37. package/dist/src/storefront/models/checkout.d.ts +17 -1
  38. package/dist/src/storefront/models/order.d.ts +27 -0
  39. package/dist/src/storefront/store/useCartStore.d.ts +3 -0
  40. package/dist/src/ui/CheckboxSettings/index.d.ts +7 -0
  41. package/dist/src/ui/NotificationAntistock/index.d.ts +1 -0
  42. package/dist/src/ui/NotificationBuilder/index.d.ts +1 -0
  43. package/dist/src/ui/Select/index.d.ts +1 -0
  44. package/dist/src/ui/Tip/index.d.ts +2 -1
  45. package/dist/src/ui/index.d.ts +1 -0
  46. package/dist/style.css +1 -1
  47. package/dist/{subscription-DIDUTEI3.js → subscription-CZuEUgCg.js} +5 -5
  48. package/dist/{subscription-iNnLGi0T.cjs → subscription-CoDJAA04.cjs} +1 -1
  49. package/dist/{ticket-B0VGIvyK.js → ticket-BsDG_oGJ.js} +5 -5
  50. package/dist/{ticket-DXz_-29l.cjs → ticket-BxlDrXfl.cjs} +1 -1
  51. package/dist/{top-up-BhB8jhP6.js → top-up-BAPxprNh.js} +5 -5
  52. package/dist/{top-up-B7E7FUjn.cjs → top-up-u-FuienE.cjs} +1 -1
  53. package/dist/ui-components-BByJn6K_.cjs +1 -0
  54. package/dist/{ui-components-BTotDG_w.js → ui-components-Bl4srrr1.js} +1856 -1787
  55. package/dist/ui.cjs.js +1 -1
  56. package/dist/ui.es.js +43 -42
  57. package/dist/{validation-BVAD1q1L.cjs → validation-DJUVonVy.cjs} +1 -1
  58. package/dist/{validation-jCwzu5MC.js → validation-DRQEnxuG.js} +5 -5
  59. package/package.json +1 -1
  60. package/dist/charge-BAP3iPAM.cjs +0 -107
  61. package/dist/order-BOaO9a-C.cjs +0 -1
  62. package/dist/order-CdPcB1OE.js +0 -222
  63. package/dist/ui-components-CWLDlDmG.cjs +0 -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-D_zv5ue0.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-BTotDG_w.js";
5
- import "./charge-BQUHzEju.js";
6
- import "./ticket-B0VGIvyK.js";
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-B31b5UQu.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-Bl4srrr1.js";
5
+ import "./charge-DDPKMr1X.js";
6
+ import "./ticket-BsDG_oGJ.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-B7hjBRYI.cjs"),j=require("./ui-components-CWLDlDmG.cjs");require("./charge-BAP3iPAM.cjs");require("./ticket-DXz_-29l.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:`
1
+ "use strict";const r=require("react/jsx-runtime"),f=require("react"),l=require("./builder-BAYgntut.cjs"),j=require("./ui-components-BByJn6K_.cjs");require("./charge-Dj2R60Yu.cjs");require("./ticket-BxlDrXfl.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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("./builder-B7hjBRYI.cjs"),p=require("./ticket-DXz_-29l.cjs"),n=require("react"),D=require("./charge-BAP3iPAM.cjs"),M=require("./ui-components-CWLDlDmG.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:v}=a.useStorefrontStore();return n.useLayoutEffect(()=>{const o=async()=>{const{data:c}=await D.fetchTerms();f(c)},y=async()=>{const{data:c}=await D.fetchPrivacyPolicy();l(c)},w=async()=>{const{data:c}=await D.fetchRefundPolicy();j(c)};x(d),C(u),h&&k(h),g&&v(g),o(),y(),w()},[d,u,h]),e.jsx(e.Fragment,{children:t})},_="_wrapper_1xuz3_18",T={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,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,ShieldCheck:r.ShieldCheck,FileCloud:r.FileCloud,Warning:r.Warning,WarningDiamond:r.WarningDiamond})}const G=n.lazy(()=>Promise.resolve().then(()=>require("./builder-B7hjBRYI.cjs")).then(t=>t.index).then(t=>({default:t.BuilderPage}))),N=n.lazy(()=>Promise.resolve().then(()=>require("./index-BXhAWCRX.cjs")).then(t=>({default:t.ErrorPage}))),Q=n.lazy(()=>Promise.resolve().then(()=>require("./index-CEMbDy4G.cjs")).then(t=>({default:t.ActivePage}))),J=n.lazy(()=>Promise.resolve().then(()=>require("./validation-BVAD1q1L.cjs")).then(t=>({default:t.ValidationPage}))),$=n.lazy(()=>Promise.resolve().then(()=>require("./index-BBMTjm8A.cjs")).then(t=>({default:t.WrapperPage}))),K=n.lazy(()=>Promise.resolve().then(()=>require("./index-Cbqz9kIG.cjs")).then(t=>({default:t.RouterErrorPage}))),i=n.lazy(()=>Promise.resolve().then(()=>require("./index-R_FZBtaZ.cjs")).then(t=>({default:t.DynamicErrorPage}))),Y=n.lazy(()=>Promise.resolve().then(()=>require("./checkout-CUct7uCm.cjs")).then(t=>({default:t.Checkout}))),Z=n.lazy(()=>Promise.resolve().then(()=>require("./charge-BAP3iPAM.cjs")).then(t=>t.index$1).then(t=>({default:t.ChargePage}))),ee=n.lazy(()=>Promise.resolve().then(()=>require("./ticket-DXz_-29l.cjs")).then(t=>t.index).then(t=>({default:t.TicketItem}))),te=n.lazy(()=>Promise.resolve().then(()=>require("./subscription-iNnLGi0T.cjs")).then(t=>t.index).then(t=>({default:t.Subscription}))),re=n.lazy(()=>Promise.resolve().then(()=>require("./top-up-B7E7FUjn.cjs")).then(t=>({default:t.TopUpBalance}))),ne=n.lazy(()=>Promise.resolve().then(()=>require("./order-BOaO9a-C.cjs")).then(t=>t.index).then(t=>({default:t.OrderPage}))),se=n.lazy(()=>Promise.resolve().then(()=>require("./charge-BAP3iPAM.cjs")).then(t=>t.index).then(t=>({default:t.CustomerDashboard}))),L=n.lazy(()=>Promise.resolve().then(()=>require("./charge-BAP3iPAM.cjs")).then(t=>t.recapcha).then(t=>({default:t.ReCaptchaProvider}))),oe=()=>null,s=({children:t})=>e.jsx(n.Suspense,{fallback:e.jsx(oe,{}),children:t}),ae=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-BjoFBErH.cjs")).then(t=>t.index).then(t=>({default:t.RenderAnnouncement}))),A=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-BjoFBErH.cjs")).then(t=>t.index).then(t=>({default:t.RenderFooter}))),z=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-BjoFBErH.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,v]=n.useState(null),{general:o,setIsAntistock:y}=a.useGeneralStore(),{setApiUrls:w}=a.useApiStore(),{setBlocks:c,setSourceBlocks:B,setHeader:I,setFooter:F,setAnnouncement:O,setSettings:H}=a.useBlocksStore(),{themeSettings:P}=a.useThemeSettingsStore(),{settings:R,setSettings:U}=a.useSettingsStore(),S=a.IS_LOCAL_HOST?localStorage.getItem("fakeDomain")||"":window.location.hostname,W=localStorage.getItem("shopPassword"),q=localStorage.getItem("shopId")||"";return n.useEffect(()=>{y(l)},[l,y]),n.useEffect(()=>{!q&&(o!=null&&o.info.id)&&localStorage.setItem("shopId",o==null?void 0:o.info.id)},[o]),n.useEffect(()=>{!S&&!l&&localStorage.setItem("fakeDomain","drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"),!S&&l&&localStorage.setItem("fakeDomain","eva8.astck.io")},[S]),n.useEffect(()=>{if(P&&R){const m=p.generateDynamicStyles(P,R);p.loadCustomFonts(),p.setupDynamicFonts(P),p.injectStylesToDOM(m)}},[P,JSON.stringify(R),window.location.hostname]),n.useEffect(()=>{const E=new u().blockSettings;U(E)},[]),n.useEffect(()=>{X()},[]),n.useLayoutEffect(()=>{const m={};Object.keys(d).map(b=>{m[b]=d[b]}),B(m),c(m),I(h),F(g),O(x),H(u),f&&w(f);const E=a.createBrowserRouter([{element:e.jsx(V,{shopDomain:S,shopId:q,shopPassword:W||void 0,shopLogo:k,children:e.jsx(L,{children:e.jsx($,{children:e.jsx(a.Outlet,{})})})}),errorElement:e.jsx(s,{children:e.jsx(K,{})}),children:[{path:"/admin/builder/*",element:e.jsx(s,{children:e.jsx(Q,{children:e.jsx(G,{blocks:d,settings:u,header:h,footer:g,announcement:x})})}),errorElement:e.jsx(s,{children:e.jsx(N,{})})},...C,{path:"/checkout",element:e.jsx(s,{children:e.jsx(Y,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Checkout",!0)},{path:"/top-up",element:e.jsx(s,{children:e.jsx(re,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Top Up Balance",!0)},{path:"/charges/:id",element:e.jsx(s,{children:e.jsx(Z,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Charges",!0)},{path:"/orders/:id/:accessToken?",element:e.jsx(s,{children:e.jsx(ne,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Orders",!0)},{path:"/subscriptions/:id/:accessToken?",element:e.jsx(s,{children:e.jsx(te,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Subscriptions",!0)},{path:l?"/account":"/customer-dash",element:e.jsx(s,{children:e.jsxs("div",{className:T.wrapper,children:[e.jsx(ae,{}),e.jsx(z,{}),e.jsx("div",{style:{flex:"1 1 auto"},children:e.jsx(se,{})}),e.jsx(A,{})]})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title=l?"Account":"Customer Dashboard",!0)},{path:"/validation",element:e.jsx(s,{children:e.jsx(J,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Validation",!0)},{path:"/ticket/:id/:accessToken",element:e.jsx(s,{children:e.jsxs("div",{className:T.wrapper,children:[e.jsx(z,{}),e.jsx("div",{style:{flex:1,width:"100%",height:"100%"},children:e.jsx(L,{children:e.jsx(ee,{})})}),e.jsx(A,{})]})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Ticket",!0)},{path:"*",element:e.jsx(p.DynamicRouteWrapper,{}),errorElement:e.jsx(s,{children:e.jsx(i,{})})}]}]);v(E)},[o]),e.jsx(n.Suspense,{fallback:null,children:j&&e.jsx(a.RouterProvider,{router:j})})};exports.App=ie;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("./builder-BAYgntut.cjs"),p=require("./ticket-BxlDrXfl.cjs"),n=require("react"),E=require("./charge-Dj2R60Yu.cjs"),M=require("./ui-components-BByJn6K_.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:v}=a.useStorefrontStore();return n.useLayoutEffect(()=>{const o=async()=>{const{data:c}=await E.fetchTerms();f(c)},S=async()=>{const{data:c}=await E.fetchPrivacyPolicy();l(c)},w=async()=>{const{data:c}=await E.fetchRefundPolicy();j(c)};x(d),C(u),h&&k(h),g&&v(g),o(),S(),w()},[d,u,h]),e.jsx(e.Fragment,{children:t})},_="_wrapper_1xuz3_18",b={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,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-BAYgntut.cjs")).then(t=>t.index).then(t=>({default:t.BuilderPage}))),N=n.lazy(()=>Promise.resolve().then(()=>require("./index-CvjUdJSD.cjs")).then(t=>({default:t.ErrorPage}))),Q=n.lazy(()=>Promise.resolve().then(()=>require("./index-BCuCOhBc.cjs")).then(t=>({default:t.ActivePage}))),J=n.lazy(()=>Promise.resolve().then(()=>require("./validation-DJUVonVy.cjs")).then(t=>({default:t.ValidationPage}))),$=n.lazy(()=>Promise.resolve().then(()=>require("./index-BoPfKksa.cjs")).then(t=>({default:t.WrapperPage}))),K=n.lazy(()=>Promise.resolve().then(()=>require("./index-CSe8H52Z.cjs")).then(t=>({default:t.RouterErrorPage}))),i=n.lazy(()=>Promise.resolve().then(()=>require("./index-Bv1mSFy_.cjs")).then(t=>({default:t.DynamicErrorPage}))),Y=n.lazy(()=>Promise.resolve().then(()=>require("./checkout-DBK6_t-t.cjs")).then(t=>({default:t.Checkout}))),Z=n.lazy(()=>Promise.resolve().then(()=>require("./charge-Dj2R60Yu.cjs")).then(t=>t.index$1).then(t=>({default:t.ChargePage}))),ee=n.lazy(()=>Promise.resolve().then(()=>require("./ticket-BxlDrXfl.cjs")).then(t=>t.index).then(t=>({default:t.TicketItem}))),te=n.lazy(()=>Promise.resolve().then(()=>require("./subscription-CoDJAA04.cjs")).then(t=>t.index).then(t=>({default:t.Subscription}))),re=n.lazy(()=>Promise.resolve().then(()=>require("./top-up-u-FuienE.cjs")).then(t=>({default:t.TopUpBalance}))),ne=n.lazy(()=>Promise.resolve().then(()=>require("./order-BEbWtrZ2.cjs")).then(t=>t.index).then(t=>({default:t.OrderPage}))),se=n.lazy(()=>Promise.resolve().then(()=>require("./charge-Dj2R60Yu.cjs")).then(t=>t.index).then(t=>({default:t.CustomerDashboard}))),A=n.lazy(()=>Promise.resolve().then(()=>require("./charge-Dj2R60Yu.cjs")).then(t=>t.recapcha).then(t=>({default:t.ReCaptchaProvider}))),oe=()=>null,s=({children:t})=>e.jsx(n.Suspense,{fallback:e.jsx(oe,{}),children:t}),ae=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-CitLV0Xf.cjs")).then(t=>t.index).then(t=>({default:t.RenderAnnouncement}))),T=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-CitLV0Xf.cjs")).then(t=>t.index).then(t=>({default:t.RenderFooter}))),z=n.lazy(()=>Promise.resolve().then(()=>require("./builder-components-CitLV0Xf.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,v]=n.useState(null),{general:o,setIsAntistock:S}=a.useGeneralStore(),{setApiUrls:w}=a.useApiStore(),{setBlocks:c,setSourceBlocks:B,setHeader:I,setFooter:F,setAnnouncement:O,setSettings:H}=a.useBlocksStore(),{themeSettings:y}=a.useThemeSettingsStore(),{settings:D,setSettings:U}=a.useSettingsStore(),P=a.IS_LOCAL_HOST?localStorage.getItem("fakeDomain")||"":window.location.hostname,W=localStorage.getItem("shopPassword"),q=localStorage.getItem("shopId")||"";return n.useEffect(()=>{S(l)},[l,S]),n.useEffect(()=>{!q&&(o!=null&&o.info.id)&&localStorage.setItem("shopId",o==null?void 0:o.info.id)},[o]),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;U(R)},[]),n.useEffect(()=>{X()},[]),n.useLayoutEffect(()=>{const m={};Object.keys(d).map(L=>{m[L]=d[L]}),B(m),c(m),I(h),F(g),O(x),H(u),f&&w(f);const R=a.createBrowserRouter([{element:e.jsx(V,{shopDomain:P,shopId:q,shopPassword:W||void 0,shopLogo:k,children:e.jsx(A,{children:e.jsx($,{children:e.jsx(a.Outlet,{})})})}),errorElement:e.jsx(s,{children:e.jsx(K,{})}),children:[{path:"/admin/builder/*",element:e.jsx(s,{children:e.jsx(Q,{children:e.jsx(G,{blocks:d,settings:u,header:h,footer:g,announcement:x})})}),errorElement:e.jsx(s,{children:e.jsx(N,{})})},...C,{path:"/checkout",element:e.jsx(s,{children:e.jsx(Y,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Checkout",!0)},{path:"/top-up",element:e.jsx(s,{children:e.jsx(re,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Top Up Balance",!0)},{path:"/charges/:id",element:e.jsx(s,{children:e.jsx(Z,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Charges",!0)},{path:"/orders/:id/:accessToken?",element:e.jsx(s,{children:e.jsx(ne,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Orders",!0)},{path:"/subscriptions/:id/:accessToken?",element:e.jsx(s,{children:e.jsx(te,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Subscriptions",!0)},{path:l?"/account":"/customer-dash",element:e.jsx(s,{children:e.jsxs("div",{className:b.wrapper,children:[e.jsx(ae,{}),e.jsx(z,{}),e.jsx("div",{style:{flex:"1 1 auto"},children:e.jsx(se,{})}),e.jsx(T,{})]})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title=l?"Account":"Customer Dashboard",!0)},{path:"/validation",element:e.jsx(s,{children:e.jsx(J,{})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Validation",!0)},{path:"/ticket/:id/:accessToken",element:e.jsx(s,{children:e.jsxs("div",{className:b.wrapper,children:[e.jsx(z,{}),e.jsx("div",{style:{flex:1,width:"100%",height:"100%"},children:e.jsx(A,{children:e.jsx(ee,{})})}),e.jsx(T,{})]})}),errorElement:e.jsx(s,{children:e.jsx(i,{})}),loader:()=>(document.title="Ticket",!0)},{path:"*",element:e.jsx(p.DynamicRouteWrapper,{}),errorElement:e.jsx(s,{children:e.jsx(i,{})})}]}]);v(R)},[o]),e.jsx(n.Suspense,{fallback:null,children:j&&e.jsx(a.RouterProvider,{router:j})})};exports.App=ie;
@@ -1,11 +1,11 @@
1
1
  import { jsx as t, Fragment as W, jsxs as z } from "react/jsx-runtime";
2
- import { M as j, V as _, j as M, c as V, m as N, a as X, K as G, ai as J, aj as K, ak as Q } from "./builder-D_zv5ue0.js";
3
- import { f as Y, l as $, j as q, k as Z, D as ee } from "./ticket-B0VGIvyK.js";
2
+ import { M as j, V as _, j as M, c as V, m as N, a as X, K as G, ai as J, aj as K, ak as Q } from "./builder-B31b5UQu.js";
3
+ import { f as Y, l as $, j as q, k as Z, D as ee } from "./ticket-BsDG_oGJ.js";
4
4
  import r, { Suspense as te } from "react";
5
- import { W as re, X as oe, Y as ne } from "./charge-BQUHzEju.js";
6
- import { n as ae } from "./ui-components-BTotDG_w.js";
7
- import { WarningDiamond as se, Warning as ie, FileCloud as ce, ShieldCheck as le, Question as de, CalendarCheck as he, Medal as ue, CurrencyCircleDollar as me, House as pe, Calendar as fe, User as ge, Heart as ye, ArrowRight as Se, ArrowLeft as ke, DotsSixVertical as Pe, ChatsTeardrop as Ce, PaperPlaneRight as Ee, Wallet as we, SignOut as Re, TelegramLogo as De, DiscordLogo as be, DownloadSimple as ze, BookOpen as Te, FileText as Ae, Lightning as Be, Fire as Ie, Star as Le, XCircle as ve, CheckCircle as Fe, MagnifyingGlass as Oe, CaretDown as xe, CaretRight as He, ArrowLineUpRight as Ue, ArrowUp as We, Crown as je, Eye as _e, Bag as Me, Handbag as Ve, List as Ne, Image as Xe, Sliders as Ge, Trash as Je, Copy as Ke, Info as Qe, Clock as Ye, Check as $e, Minus as qe, Plus as Ze, X as et } from "@phosphor-icons/react";
8
- const tt = ({
5
+ import { W as re, X as oe, Y as ne } from "./charge-DDPKMr1X.js";
6
+ import { o as ae } from "./ui-components-Bl4srrr1.js";
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 Te, BookOpen as Ae, FileText as Le, Lightning as Be, Fire as Ie, Star as ve, XCircle as Fe, CheckCircle as Oe, ArrowLineDown as xe, MagnifyingGlass as He, CaretDown as Ue, CaretRight as We, ArrowLineUpRight as je, ArrowUp as _e, Crown as Me, Eye as Ve, Bag as Ne, Handbag as Xe, List as Ge, Image as Je, Sliders as Ke, Trash as Qe, Copy as Ye, Info as $e, Clock as qe, Check as Ze, Minus as et, Plus as tt, X as rt } from "@phosphor-icons/react";
8
+ const ot = ({
9
9
  children: e,
10
10
  shopDomain: c,
11
11
  shopId: l,
@@ -28,70 +28,72 @@ const tt = ({
28
28
  }, g = async () => {
29
29
  const { data: i } = await oe();
30
30
  s(i);
31
- }, E = async () => {
31
+ }, w = async () => {
32
32
  const { data: i } = await ne();
33
33
  f(i);
34
34
  };
35
- m(c), k(l), d && P(d), u && C(u), n(), g(), E();
35
+ m(c), k(l), d && P(d), u && C(u), n(), g(), w();
36
36
  }, [c, l, d]), /* @__PURE__ */ t(W, { children: e });
37
- }, rt = "_wrapper_1xuz3_18", T = {
38
- wrapper: rt
37
+ }, nt = "_wrapper_1xuz3_18", T = {
38
+ wrapper: nt
39
39
  };
40
- function ot() {
40
+ function at() {
41
41
  ae({
42
42
  // Основные UI иконки
43
- X: et,
44
- Plus: Ze,
45
- Minus: qe,
46
- Check: $e,
47
- Clock: Ye,
48
- Info: Qe,
49
- Copy: Ke,
50
- Trash: Je,
51
- Sliders: Ge,
52
- Image: Xe,
53
- List: Ne,
54
- Handbag: Ve,
55
- Bag: Me,
56
- Eye: _e,
57
- Crown: je,
58
- ArrowUp: We,
59
- ArrowLineUpRight: Ue,
60
- CaretRight: He,
61
- CaretDown: xe,
62
- MagnifyingGlass: Oe,
43
+ X: rt,
44
+ Plus: tt,
45
+ Minus: et,
46
+ Check: Ze,
47
+ Clock: qe,
48
+ Info: $e,
49
+ Copy: Ye,
50
+ Trash: Qe,
51
+ Sliders: Ke,
52
+ Image: Je,
53
+ List: Ge,
54
+ Handbag: Xe,
55
+ Bag: Ne,
56
+ Eye: Ve,
57
+ Crown: Me,
58
+ ArrowUp: _e,
59
+ ArrowLineUpRight: je,
60
+ CaretRight: We,
61
+ CaretDown: Ue,
62
+ MagnifyingGlass: He,
63
+ ArrowLineDown: xe,
63
64
  // Статусы и действия
64
- CheckCircle: Fe,
65
- XCircle: ve,
66
- Star: Le,
65
+ CheckCircle: Oe,
66
+ XCircle: Fe,
67
+ Star: ve,
67
68
  Fire: Ie,
68
69
  Lightning: Be,
69
70
  // Файлы и документы
70
- FileText: Ae,
71
- BookOpen: Te,
72
- DownloadSimple: ze,
71
+ FileText: Le,
72
+ BookOpen: Ae,
73
+ DownloadSimple: Te,
73
74
  // Социальные сети
74
- DiscordLogo: be,
75
- TelegramLogo: De,
75
+ DiscordLogo: ze,
76
+ TelegramLogo: be,
76
77
  // Навигация и интерфейс
77
- SignOut: Re,
78
- Wallet: we,
78
+ SignOut: De,
79
+ Wallet: Re,
79
80
  PaperPlaneRight: Ee,
80
- ChatsTeardrop: Ce,
81
- DotsSixVertical: Pe,
82
- ArrowLeft: ke,
83
- ArrowRight: Se,
81
+ ChatsTeardrop: we,
82
+ DotsSixVertical: Ce,
83
+ ArrowLeft: Pe,
84
+ ArrowRight: ke,
84
85
  // Специальные иконки
85
- Heart: ye,
86
- User: ge,
87
- Calendar: fe,
86
+ Heart: Se,
87
+ User: ye,
88
+ Calendar: ge,
88
89
  // Иконки для навигации в сайдбаре
89
- House: pe,
90
- CurrencyCircleDollar: me,
91
- Medal: ue,
92
- CalendarCheck: he,
93
- Question: de,
90
+ House: fe,
91
+ CurrencyCircleDollar: pe,
92
+ Medal: me,
93
+ CalendarCheck: ue,
94
+ Question: he,
94
95
  // Безопасность и файлы (для Checkout/Secured)
96
+ Shield: de,
95
97
  ShieldCheck: le,
96
98
  FileCloud: ce,
97
99
  // Иконки для статусов
@@ -99,49 +101,49 @@ function ot() {
99
101
  WarningDiamond: se
100
102
  });
101
103
  }
102
- const nt = r.lazy(
103
- () => import("./builder-D_zv5ue0.js").then((e) => e.an).then((e) => ({ default: e.BuilderPage }))
104
- ), at = r.lazy(
105
- () => import("./index-CzkkQ8sH.js").then((e) => ({ default: e.ErrorPage }))
106
- ), st = r.lazy(
107
- () => import("./index-BJMeFohP.js").then((e) => ({ default: e.ActivePage }))
104
+ const st = r.lazy(
105
+ () => import("./builder-B31b5UQu.js").then((e) => e.an).then((e) => ({ default: e.BuilderPage }))
108
106
  ), it = r.lazy(
109
- () => import("./validation-jCwzu5MC.js").then((e) => ({ default: e.ValidationPage }))
107
+ () => import("./index-C_XwNA_j.js").then((e) => ({ default: e.ErrorPage }))
110
108
  ), ct = r.lazy(
111
- () => import("./index-hCDY-ip7.js").then((e) => ({ default: e.WrapperPage }))
109
+ () => import("./index-CwFkr47f.js").then((e) => ({ default: e.ActivePage }))
112
110
  ), lt = r.lazy(
113
- () => import("./index-CX1FV9wS.js").then((e) => ({ default: e.RouterErrorPage }))
114
- ), a = r.lazy(
115
- () => import("./index-CMECtXvH.js").then((e) => ({ default: e.DynamicErrorPage }))
111
+ () => import("./validation-DRQEnxuG.js").then((e) => ({ default: e.ValidationPage }))
116
112
  ), dt = r.lazy(
117
- () => import("./checkout-uzxtu1pZ.js").then((e) => ({ default: e.Checkout }))
113
+ () => import("./index-CWq55eW7.js").then((e) => ({ default: e.WrapperPage }))
118
114
  ), ht = r.lazy(
119
- () => import("./charge-BQUHzEju.js").then((e) => e.a1).then((e) => ({ default: e.ChargePage }))
115
+ () => import("./index-XroJ5pVT.js").then((e) => ({ default: e.RouterErrorPage }))
116
+ ), a = r.lazy(
117
+ () => import("./index-CcF01H3S.js").then((e) => ({ default: e.DynamicErrorPage }))
120
118
  ), ut = r.lazy(
121
- () => import("./ticket-B0VGIvyK.js").then((e) => e.m).then((e) => ({ default: e.TicketItem }))
119
+ () => import("./checkout-CYXV8Y-_.js").then((e) => ({ default: e.Checkout }))
122
120
  ), mt = r.lazy(
123
- () => import("./subscription-DIDUTEI3.js").then((e) => e.i).then((e) => ({ default: e.Subscription }))
121
+ () => import("./charge-DDPKMr1X.js").then((e) => e.a1).then((e) => ({ default: e.ChargePage }))
124
122
  ), pt = r.lazy(
125
- () => import("./top-up-BhB8jhP6.js").then((e) => ({ default: e.TopUpBalance }))
123
+ () => import("./ticket-BsDG_oGJ.js").then((e) => e.m).then((e) => ({ default: e.TicketItem }))
126
124
  ), ft = r.lazy(
127
- () => import("./order-CdPcB1OE.js").then((e) => e.i).then((e) => ({ default: e.OrderPage }))
125
+ () => import("./subscription-CZuEUgCg.js").then((e) => e.i).then((e) => ({ default: e.Subscription }))
128
126
  ), gt = r.lazy(
129
- () => import("./charge-BQUHzEju.js").then((e) => e.a0).then((e) => ({ default: e.CustomerDashboard }))
127
+ () => import("./top-up-BAPxprNh.js").then((e) => ({ default: e.TopUpBalance }))
128
+ ), yt = r.lazy(
129
+ () => import("./order-CCJq_uKK.js").then((e) => e.i).then((e) => ({ default: e.OrderPage }))
130
+ ), St = r.lazy(
131
+ () => import("./charge-DDPKMr1X.js").then((e) => e.a0).then((e) => ({ default: e.CustomerDashboard }))
130
132
  ), A = r.lazy(
131
- () => import("./charge-BQUHzEju.js").then((e) => e.$).then((e) => ({ default: e.ReCaptchaProvider }))
132
- ), yt = () => null, o = ({ children: e }) => /* @__PURE__ */ t(te, { fallback: /* @__PURE__ */ t(yt, {}), children: e }), St = r.lazy(
133
- () => import("./builder-components-DN-mNdj8.js").then((e) => e.i).then((e) => ({
133
+ () => import("./charge-DDPKMr1X.js").then((e) => e.$).then((e) => ({ default: e.ReCaptchaProvider }))
134
+ ), kt = () => null, o = ({ children: e }) => /* @__PURE__ */ t(te, { fallback: /* @__PURE__ */ t(kt, {}), children: e }), Pt = r.lazy(
135
+ () => import("./builder-components-BrUaSzmu.js").then((e) => e.i).then((e) => ({
134
136
  default: e.RenderAnnouncement
135
137
  }))
136
- ), B = r.lazy(
137
- () => import("./builder-components-DN-mNdj8.js").then((e) => e.i).then((e) => ({
138
+ ), L = r.lazy(
139
+ () => import("./builder-components-BrUaSzmu.js").then((e) => e.i).then((e) => ({
138
140
  default: e.RenderFooter
139
141
  }))
140
- ), I = r.lazy(
141
- () => import("./builder-components-DN-mNdj8.js").then((e) => e.i).then((e) => ({
142
+ ), B = r.lazy(
143
+ () => import("./builder-components-BrUaSzmu.js").then((e) => e.i).then((e) => ({
142
144
  default: e.RenderHeader
143
145
  }))
144
- ), bt = (e) => {
146
+ ), Tt = (e) => {
145
147
  const {
146
148
  blocks: c,
147
149
  settings: l,
@@ -152,14 +154,14 @@ const nt = r.lazy(
152
154
  shopLogo: P,
153
155
  apiURLs: p,
154
156
  isAntistock: s = !1
155
- } = e, [f, C] = r.useState(null), { general: n, setIsAntistock: g } = _(), { setApiUrls: E } = M(), {
157
+ } = e, [f, C] = r.useState(null), { general: n, setIsAntistock: g } = _(), { setApiUrls: w } = M(), {
156
158
  setBlocks: i,
157
- setSourceBlocks: L,
159
+ setSourceBlocks: I,
158
160
  setHeader: v,
159
161
  setFooter: F,
160
162
  setAnnouncement: O,
161
163
  setSettings: x
162
- } = V(), { themeSettings: y } = N(), { settings: w, setSettings: H } = X(), S = G ? localStorage.getItem("fakeDomain") || "" : window.location.hostname, U = localStorage.getItem("shopPassword"), D = localStorage.getItem("shopId") || "";
164
+ } = V(), { themeSettings: y } = N(), { settings: E, setSettings: H } = X(), S = G ? localStorage.getItem("fakeDomain") || "" : window.location.hostname, U = localStorage.getItem("shopPassword"), D = localStorage.getItem("shopId") || "";
163
165
  return r.useEffect(() => {
164
166
  g(s);
165
167
  }, [s, g]), r.useEffect(() => {
@@ -167,38 +169,38 @@ const nt = r.lazy(
167
169
  }, [n]), r.useEffect(() => {
168
170
  !S && !s && localStorage.setItem("fakeDomain", "drafts-ca18cf24-6659-4015-b1ab-9ebe9fa64e74.bgng.io"), !S && s && localStorage.setItem("fakeDomain", "eva8.astck.io");
169
171
  }, [S]), r.useEffect(() => {
170
- if (y && w) {
171
- const h = Y(y, w);
172
+ if (y && E) {
173
+ const h = Y(y, E);
172
174
  $(), q(y), Z(h);
173
175
  }
174
- }, [y, JSON.stringify(w), window.location.hostname]), r.useEffect(() => {
176
+ }, [y, JSON.stringify(E), window.location.hostname]), r.useEffect(() => {
175
177
  const R = new l().blockSettings;
176
178
  H(R);
177
179
  }, []), r.useEffect(() => {
178
- ot();
180
+ at();
179
181
  }, []), r.useLayoutEffect(() => {
180
182
  const h = {};
181
183
  Object.keys(c).map((b) => {
182
184
  h[b] = c[b];
183
- }), L(h), i(h), v(d), F(u), O(m), x(l), p && E(p);
185
+ }), I(h), i(h), v(d), F(u), O(m), x(l), p && w(p);
184
186
  const R = J([
185
187
  {
186
188
  element: /* @__PURE__ */ t(
187
- tt,
189
+ ot,
188
190
  {
189
191
  shopDomain: S,
190
192
  shopId: D,
191
193
  shopPassword: U || void 0,
192
194
  shopLogo: P,
193
- children: /* @__PURE__ */ t(A, { children: /* @__PURE__ */ t(ct, { children: /* @__PURE__ */ t(K, {}) }) })
195
+ children: /* @__PURE__ */ t(A, { children: /* @__PURE__ */ t(dt, { children: /* @__PURE__ */ t(K, {}) }) })
194
196
  }
195
197
  ),
196
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(lt, {}) }),
198
+ errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(ht, {}) }),
197
199
  children: [
198
200
  {
199
201
  path: "/admin/builder/*",
200
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(st, { children: /* @__PURE__ */ t(
201
- nt,
202
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(ct, { children: /* @__PURE__ */ t(
203
+ st,
202
204
  {
203
205
  blocks: c,
204
206
  settings: l,
@@ -207,68 +209,68 @@ const nt = r.lazy(
207
209
  announcement: m
208
210
  }
209
211
  ) }) }),
210
- errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(at, {}) })
212
+ errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(it, {}) })
211
213
  },
212
214
  ...k,
213
215
  {
214
216
  path: "/checkout",
215
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(dt, {}) }),
217
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(ut, {}) }),
216
218
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
217
219
  loader: () => (document.title = "Checkout", !0)
218
220
  },
219
221
  {
220
222
  path: "/top-up",
221
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(pt, {}) }),
223
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(gt, {}) }),
222
224
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
223
225
  loader: () => (document.title = "Top Up Balance", !0)
224
226
  },
225
227
  {
226
228
  path: "/charges/:id",
227
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(ht, {}) }),
229
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(mt, {}) }),
228
230
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
229
231
  loader: () => (document.title = "Charges", !0)
230
232
  },
231
233
  {
232
234
  path: "/orders/:id/:accessToken?",
233
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(ft, {}) }),
235
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(yt, {}) }),
234
236
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
235
237
  loader: () => (document.title = "Orders", !0)
236
238
  },
237
239
  {
238
240
  path: "/subscriptions/:id/:accessToken?",
239
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(mt, {}) }),
241
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(ft, {}) }),
240
242
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
241
243
  loader: () => (document.title = "Subscriptions", !0)
242
244
  },
243
245
  {
244
246
  path: s ? "/account" : "/customer-dash",
245
247
  element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ z("div", { className: T.wrapper, children: [
246
- /* @__PURE__ */ t(St, {}),
247
- /* @__PURE__ */ t(I, {}),
248
+ /* @__PURE__ */ t(Pt, {}),
249
+ /* @__PURE__ */ t(B, {}),
248
250
  /* @__PURE__ */ t(
249
251
  "div",
250
252
  {
251
253
  style: {
252
254
  flex: "1 1 auto"
253
255
  },
254
- children: /* @__PURE__ */ t(gt, {})
256
+ children: /* @__PURE__ */ t(St, {})
255
257
  }
256
258
  ),
257
- /* @__PURE__ */ t(B, {})
259
+ /* @__PURE__ */ t(L, {})
258
260
  ] }) }),
259
261
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
260
262
  loader: () => (document.title = s ? "Account" : "Customer Dashboard", !0)
261
263
  },
262
264
  {
263
265
  path: "/validation",
264
- element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(it, {}) }),
266
+ element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(lt, {}) }),
265
267
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
266
268
  loader: () => (document.title = "Validation", !0)
267
269
  },
268
270
  {
269
271
  path: "/ticket/:id/:accessToken",
270
272
  element: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ z("div", { className: T.wrapper, children: [
271
- /* @__PURE__ */ t(I, {}),
273
+ /* @__PURE__ */ t(B, {}),
272
274
  /* @__PURE__ */ t(
273
275
  "div",
274
276
  {
@@ -277,10 +279,10 @@ const nt = r.lazy(
277
279
  width: "100%",
278
280
  height: "100%"
279
281
  },
280
- children: /* @__PURE__ */ t(A, { children: /* @__PURE__ */ t(ut, {}) })
282
+ children: /* @__PURE__ */ t(A, { children: /* @__PURE__ */ t(pt, {}) })
281
283
  }
282
284
  ),
283
- /* @__PURE__ */ t(B, {})
285
+ /* @__PURE__ */ t(L, {})
284
286
  ] }) }),
285
287
  errorElement: /* @__PURE__ */ t(o, { children: /* @__PURE__ */ t(a, {}) }),
286
288
  loader: () => (document.title = "Ticket", !0)
@@ -297,5 +299,5 @@ const nt = r.lazy(
297
299
  }, [n]), /* @__PURE__ */ t(r.Suspense, { fallback: null, children: f && /* @__PURE__ */ t(Q, { router: f }) });
298
300
  };
299
301
  export {
300
- bt as App
302
+ Tt as App
301
303
  };