@billgangcom/theme-lib 1.114.0 → 1.114.1

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 (39) hide show
  1. package/dist/{builder-DoAHiGfI.cjs → builder-BVVH9Uc0.cjs} +8 -8
  2. package/dist/{builder-components-DOXVQePh.js → builder-components-BD45uk6H.js} +4 -4
  3. package/dist/{builder-components-B6Q1FJdO.cjs → builder-components-BEFw4EcA.cjs} +1 -1
  4. package/dist/{builder-Bd2jS6z5.js → builder-dGixT-_d.js} +260 -257
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +22 -22
  7. package/dist/{charge-By0YRAtN.cjs → charge-DAXMrlAq.cjs} +1 -1
  8. package/dist/{charge-CYkPC1xJ.js → charge-Nfq6BBT0.js} +6 -6
  9. package/dist/{checkout-BacYMk5p.js → checkout-DJA7m9bE.js} +5 -5
  10. package/dist/{checkout-BBaq5eLv.cjs → checkout-DaksJ-vl.cjs} +1 -1
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-B1J6oyyZ.cjs → index-BE-LNEM-.cjs} +1 -1
  14. package/dist/{index-DZVqcJh_.cjs → index-CMngiHt6.cjs} +1 -1
  15. package/dist/{index-DA2EeXd3.js → index-CSYLpXUY.js} +5 -5
  16. package/dist/{index-Dv-y6xYv.js → index-CX9eAqxn.js} +5 -5
  17. package/dist/{index-BCgXuVzB.js → index-CgAhbfol.js} +1 -1
  18. package/dist/{index-CULiMl6h.cjs → index-Cq-HG360.cjs} +1 -1
  19. package/dist/{index-B86a6HK7.cjs → index-CwBlGUFg.cjs} +1 -1
  20. package/dist/{index-C5xaXw2a.cjs → index-CxES4Y2E.cjs} +1 -1
  21. package/dist/{index-DNGCgy8g.js → index-DKVA1wV8.js} +5 -5
  22. package/dist/{index-D14heDcK.js → index-Drs_bUt0.js} +5 -5
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.es.js +6 -6
  25. package/dist/{order-BkDz1lDn.js → order-BiWH1GaD.js} +5 -5
  26. package/dist/{order-BsI3Djg7.cjs → order-EtDX2zwp.cjs} +1 -1
  27. package/dist/{subscription-mYFIz-QI.js → subscription-BsED7sfb.js} +5 -5
  28. package/dist/{subscription-DYa6vxo1.cjs → subscription-DuCTTG3r.cjs} +1 -1
  29. package/dist/{ticket-Djdg5CC8.cjs → ticket-CbHpWM1U.cjs} +1 -1
  30. package/dist/{ticket-ckMFdKTG.js → ticket-D82dpA86.js} +5 -5
  31. package/dist/{top-up-3v6D0_10.js → top-up-CKuuSysp.js} +5 -5
  32. package/dist/{top-up-CuY2N9Qr.cjs → top-up-Czf-dtwC.cjs} +1 -1
  33. package/dist/{ui-components-Bfju659N.js → ui-components-D3S3Wicn.js} +4 -4
  34. package/dist/{ui-components-foi2BEtM.cjs → ui-components-DgahiZcB.cjs} +1 -1
  35. package/dist/ui.cjs.js +1 -1
  36. package/dist/ui.es.js +1 -1
  37. package/dist/{validation-CnxmZXnT.js → validation-BVXpLz7D.js} +5 -5
  38. package/dist/{validation-BSQGHn4r.cjs → validation-otConG8r.cjs} +1 -1
  39. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  import { jsxs as y, jsx as c, Fragment as Le } from "react/jsx-runtime";
2
2
  import A, { useLayoutEffect as Ts, useEffect as U, useRef as V, useMemo as H, useCallback as ne, useState as he, memo as Ms, useReducer as Rs, createContext as Pt, useContext as nt } from "react";
3
- import { u as oe, a as qe, b as Q, c as re, d as Lo, e as Vn, f as B, v as tn, T as mt, g as Os, h as Kn, i as Fe, j as Po, r as Fo, k as dn, l as Bt, m as q, n as jo, L as ot, o as Yn, p as st, q as $s, s as Gn, t as tt, w as hn, x as Rt, y as zo, A as Ls, S as Ps, C as Fs, z as ft, B as js, D as Be, E as Ft, R as _n, F as wn, G as Ho, H as nn, I as ye, P as go, J as zs } from "./builder-Bd2jS6z5.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-Bfju659N.js";
5
- import "./charge-CYkPC1xJ.js";
6
- import "./ticket-ckMFdKTG.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-dGixT-_d.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-D3S3Wicn.js";
5
+ import "./charge-Nfq6BBT0.js";
6
+ import "./ticket-D82dpA86.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-DoAHiGfI.cjs"),j=require("./ui-components-foi2BEtM.cjs");require("./charge-By0YRAtN.cjs");require("./ticket-Djdg5CC8.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-BVVH9Uc0.cjs"),j=require("./ui-components-DgahiZcB.cjs");require("./charge-DAXMrlAq.cjs");require("./ticket-CbHpWM1U.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.