@billgangcom/theme-lib 1.111.7 → 1.112.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 (44) hide show
  1. package/dist/{builder-iDTY-5V6.cjs → builder-BJi41gLj.cjs} +2 -2
  2. package/dist/{builder-CVkU9IhV.js → builder-BPcwschw.js} +5 -5
  3. package/dist/{builder-components-Bgp-Ty-V.cjs → builder-components-DiSJ943W.cjs} +1 -1
  4. package/dist/{builder-components-C5ikkE9d.js → builder-components-Dzh-02cy.js} +4 -4
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +22 -22
  7. package/dist/{charge-DpDinsX8.js → charge-BXhHGVZ9.js} +1654 -1624
  8. package/dist/{charge-u_nBOUZM.cjs → charge-Ud-AcF5N.cjs} +21 -21
  9. package/dist/{checkout-DOWk8tpf.cjs → checkout-C6Krps7T.cjs} +1 -1
  10. package/dist/{checkout-CB2oKUQS.js → checkout-CJf-hrQS.js} +5 -5
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-C0o5qJiP.cjs → index-BJRGrwnd.cjs} +1 -1
  14. package/dist/{index-BQpvc-IY.js → index-BOlJB8PY.js} +5 -5
  15. package/dist/{index-CDzE4F39.js → index-BubR1-4r.js} +1 -1
  16. package/dist/{index-CDvIVBhf.js → index-C1RZaf85.js} +5 -5
  17. package/dist/{index-BFRcuDVu.cjs → index-C79AL-SX.cjs} +1 -1
  18. package/dist/{index-CQ-gkekH.js → index-CTAMb5Ws.js} +5 -5
  19. package/dist/{index-BD7IfwmI.cjs → index-Cm1WxtE8.cjs} +1 -1
  20. package/dist/{index-BWZ2h_7x.cjs → index-DZA2Qg7A.cjs} +1 -1
  21. package/dist/{index-BQQCnV_m.cjs → index-DnOKr-Mo.cjs} +1 -1
  22. package/dist/{index-_d_pN1E3.js → index-HqoVN9QS.js} +5 -5
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.es.js +6 -6
  25. package/dist/order-BAgqXjj2.cjs +1 -0
  26. package/dist/order-BRLSB3Nu.js +318 -0
  27. package/dist/src/storefront/components/RefundNotificationModal/index.d.ts +9 -0
  28. package/dist/src/storefront/models/order.d.ts +4 -0
  29. package/dist/style.css +1 -1
  30. package/dist/{subscription-6XMGDbBf.js → subscription-CX2OMarS.js} +5 -5
  31. package/dist/{subscription-CPAjLrRF.cjs → subscription-ytzGgkBp.cjs} +1 -1
  32. package/dist/{ticket-DnsQQIx0.js → ticket-Bw4zmgVj.js} +142 -142
  33. package/dist/{ticket-CF6cbjcW.cjs → ticket-Cf9H1nLd.cjs} +4 -4
  34. package/dist/{top-up-CYG44xXH.cjs → top-up-B6LSLdw1.cjs} +1 -1
  35. package/dist/{top-up-CwepC-U_.js → top-up-CLwqsSvK.js} +5 -5
  36. package/dist/{ui-components-y9HAFfSv.cjs → ui-components-BM4zwk9v.cjs} +1 -1
  37. package/dist/{ui-components-BnzhZmPH.js → ui-components-DvdK_Pju.js} +4 -4
  38. package/dist/ui.cjs.js +1 -1
  39. package/dist/ui.es.js +1 -1
  40. package/dist/{validation-C18qAKPo.cjs → validation-B_VyjaOh.cjs} +1 -1
  41. package/dist/{validation-Dc9nm0Et.js → validation-DBN8rMc3.js} +5 -5
  42. package/package.json +1 -1
  43. package/dist/order-DZ1zWuuY.js +0 -228
  44. package/dist/order-VojuN1Fs.cjs +0 -1
@@ -1,10 +1,10 @@
1
1
  import { jsx as e, Fragment as d, jsxs as o } from "react/jsx-runtime";
2
2
  import a from "react";
3
- import { X as C, N as _, a7 as y, a8 as v, J as P } from "./builder-CVkU9IhV.js";
4
- import { o as w, N, P as j, S as D, g as I, c as x, p as E, h as f, q as G, A as T, r as k, s as B, t as A, v as O, w as L } from "./charge-DpDinsX8.js";
5
- import { e as M, g as F } from "./ui-components-BnzhZmPH.js";
6
- import "./builder-components-C5ikkE9d.js";
7
- import "./ticket-DnsQQIx0.js";
3
+ import { X as C, N as _, a7 as y, a8 as v, J as P } from "./builder-BPcwschw.js";
4
+ import { o as w, N, P as j, S as D, g as I, d as x, p as E, i as f, q as G, A as T, r as k, s as B, t as A, v as O, w as L } from "./charge-BXhHGVZ9.js";
5
+ import { e as M, g as F } from "./ui-components-DvdK_Pju.js";
6
+ import "./builder-components-Dzh-02cy.js";
7
+ import "./ticket-Bw4zmgVj.js";
8
8
  import "react-dom";
9
9
  const H = async (s = 1) => await w({ PageNumber: s }), nt = () => {
10
10
  const [s, i] = a.useState(null), [t, S] = a.useState(0), { page: u, setPage: h } = C(), { gatewaysDetail: l, setGatewaysDetail: b, balanceSettings: n } = _();
@@ -1 +1 @@
1
- "use strict";const t=require("react/jsx-runtime"),c=require("react"),u=require("./builder-iDTY-5V6.cjs"),s=require("./charge-u_nBOUZM.cjs"),m=require("./ui-components-y9HAFfSv.cjs");require("./builder-components-Bgp-Ty-V.cjs");require("./ticket-CF6cbjcW.cjs");require("react-dom");const x=async(n=1)=>await s.fetchSubscriptions({PageNumber:n}),f=()=>{const[n,o]=c.useState(null),[e,S]=c.useState(0),{page:l,setPage:b}=u.usePaginationPagesStore(),{gatewaysDetail:d,setGatewaysDetail:g,balanceSettings:i}=u.useCustomerDashboardStore();return c.useEffect(()=>{const h=async()=>{const{list:r,totalCount:p}=await x(l);o(r),S(p)},j=async()=>{const r=await s.getGatewaysDetail(i!=null&&i.isEnabled?(i==null?void 0:i.topUpSettings.gateways)||[]:[]);g(r)};h(),d||j()},[l]),t.jsx(t.Fragment,{children:n&&n.length===0?t.jsx(s.NoItemsBlock,{title:"Subscriptions History",description:"When you subscribe to a product on our website, you'll see a history of your subscriptions here."}):t.jsxs(t.Fragment,{children:[t.jsx(s.PageTitle,{title:"Subscriptions"}),t.jsx(s.SubscriptionsTable,{subscriptions:n,gatewaysDetail:d,totalCount:e,page:l,setPage:b})]})})},C="_subscriptionContainer_1j6ol_1",_="_leftSection_1j6ol_15",y="_content_1j6ol_26",v="_mainContent_1j6ol_33",P="_detailsSection_1j6ol_37",w="_buttonGroup_1j6ol_50",D="_detailsContent_1j6ol_57",a={subscriptionContainer:C,leftSection:_,content:y,mainContent:v,detailsSection:P,buttonGroup:w,detailsContent:D},N=()=>{const{id:n,accessToken:o}=u.useParams(),{subscription:e,setSubscription:S}=u.useSubscriptionStore(),{setIsOpen:l}=u.useModalStore(),[b,d]=c.useState(!1),[g,i]=c.useState(!1);c.useLayoutEffect(()=>{S(null)},[n,o]);const{balanceSettings:h,setBalanceSettings:j}=u.useCustomerDashboardStore();return c.useEffect(()=>{n&&o&&(async()=>{if(!n||!o)return;i(!0);const{data:p}=await s.fetchSubscription(n,o);S({...p}),i(!1)})()},[n,o]),c.useEffect(()=>{h||(async()=>{const p=await s.getBalanceSettings();j(p)})()},[h]),g?t.jsx(m.Loader,{}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:a.subscriptionContainer,children:[t.jsx("div",{className:a.leftSection,children:t.jsxs("div",{className:a.content,children:[t.jsx(s.CheckoutHeader,{}),t.jsxs("div",{className:a.mainContent,children:[e&&t.jsxs(t.Fragment,{children:[t.jsx("h3",{id:"h3",children:"Your Subscription"}),t.jsx(s.SubscriptionProduct,{subscription:{price:e.price,name:e.productName,description:e.productDescription,status:e.status,image:e.productImage,recurringInterval:e.recurringInterval}}),t.jsx("div",{className:a.buttonGroup,children:e.pricingPlanExists&&t.jsx(m.Button,{onClick:r=>{r.stopPropagation(),l(!0),d(!0)},style:{maxWidth:"500px",width:"100%"},children:"Change Plan"})})]}),t.jsx(s.CheckoutFooter,{})]})]})}),t.jsx("div",{className:a.detailsSection,children:t.jsxs("div",{className:a.detailsContent,children:[t.jsx("h3",{id:"h3",children:"Details"}),(e==null?void 0:e.coupon)&&t.jsx(s.SubscriptionCoupon,{coupon:e.coupon,currency:e.price.currency||"USD"}),e&&t.jsx(s.ActiveSubscriptionProduct,{id:n||"",accessToken:o||"",subscription:{price:e.price,name:e.productName,description:e.productDescription,status:e.status,image:e.productImage,recurringInterval:e.recurringInterval}}),e&&t.jsxs(t.Fragment,{children:[t.jsx(s.ActivePaymentMethod,{}),e.activeTo&&t.jsx(s.SubscriptionExpirationDate,{})]}),t.jsx(s.CheckoutFooter,{className:"flex md:hidden"})]})})]}),t.jsx(s.ChangeSubscriptionPlan,{isOpen:b,setIsOpen:d,subscription:e})]})},I=Object.freeze(Object.defineProperty({__proto__:null,Subscription:N},Symbol.toStringTag,{value:"Module"}));exports.Subscriptions=f;exports.index=I;
1
+ "use strict";const t=require("react/jsx-runtime"),c=require("react"),u=require("./builder-BJi41gLj.cjs"),s=require("./charge-Ud-AcF5N.cjs"),m=require("./ui-components-BM4zwk9v.cjs");require("./builder-components-DiSJ943W.cjs");require("./ticket-Cf9H1nLd.cjs");require("react-dom");const x=async(n=1)=>await s.fetchSubscriptions({PageNumber:n}),f=()=>{const[n,o]=c.useState(null),[e,S]=c.useState(0),{page:l,setPage:b}=u.usePaginationPagesStore(),{gatewaysDetail:d,setGatewaysDetail:g,balanceSettings:i}=u.useCustomerDashboardStore();return c.useEffect(()=>{const h=async()=>{const{list:r,totalCount:p}=await x(l);o(r),S(p)},j=async()=>{const r=await s.getGatewaysDetail(i!=null&&i.isEnabled?(i==null?void 0:i.topUpSettings.gateways)||[]:[]);g(r)};h(),d||j()},[l]),t.jsx(t.Fragment,{children:n&&n.length===0?t.jsx(s.NoItemsBlock,{title:"Subscriptions History",description:"When you subscribe to a product on our website, you'll see a history of your subscriptions here."}):t.jsxs(t.Fragment,{children:[t.jsx(s.PageTitle,{title:"Subscriptions"}),t.jsx(s.SubscriptionsTable,{subscriptions:n,gatewaysDetail:d,totalCount:e,page:l,setPage:b})]})})},C="_subscriptionContainer_1j6ol_1",_="_leftSection_1j6ol_15",y="_content_1j6ol_26",v="_mainContent_1j6ol_33",P="_detailsSection_1j6ol_37",w="_buttonGroup_1j6ol_50",D="_detailsContent_1j6ol_57",a={subscriptionContainer:C,leftSection:_,content:y,mainContent:v,detailsSection:P,buttonGroup:w,detailsContent:D},N=()=>{const{id:n,accessToken:o}=u.useParams(),{subscription:e,setSubscription:S}=u.useSubscriptionStore(),{setIsOpen:l}=u.useModalStore(),[b,d]=c.useState(!1),[g,i]=c.useState(!1);c.useLayoutEffect(()=>{S(null)},[n,o]);const{balanceSettings:h,setBalanceSettings:j}=u.useCustomerDashboardStore();return c.useEffect(()=>{n&&o&&(async()=>{if(!n||!o)return;i(!0);const{data:p}=await s.fetchSubscription(n,o);S({...p}),i(!1)})()},[n,o]),c.useEffect(()=>{h||(async()=>{const p=await s.getBalanceSettings();j(p)})()},[h]),g?t.jsx(m.Loader,{}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:a.subscriptionContainer,children:[t.jsx("div",{className:a.leftSection,children:t.jsxs("div",{className:a.content,children:[t.jsx(s.CheckoutHeader,{}),t.jsxs("div",{className:a.mainContent,children:[e&&t.jsxs(t.Fragment,{children:[t.jsx("h3",{id:"h3",children:"Your Subscription"}),t.jsx(s.SubscriptionProduct,{subscription:{price:e.price,name:e.productName,description:e.productDescription,status:e.status,image:e.productImage,recurringInterval:e.recurringInterval}}),t.jsx("div",{className:a.buttonGroup,children:e.pricingPlanExists&&t.jsx(m.Button,{onClick:r=>{r.stopPropagation(),l(!0),d(!0)},style:{maxWidth:"500px",width:"100%"},children:"Change Plan"})})]}),t.jsx(s.CheckoutFooter,{})]})]})}),t.jsx("div",{className:a.detailsSection,children:t.jsxs("div",{className:a.detailsContent,children:[t.jsx("h3",{id:"h3",children:"Details"}),(e==null?void 0:e.coupon)&&t.jsx(s.SubscriptionCoupon,{coupon:e.coupon,currency:e.price.currency||"USD"}),e&&t.jsx(s.ActiveSubscriptionProduct,{id:n||"",accessToken:o||"",subscription:{price:e.price,name:e.productName,description:e.productDescription,status:e.status,image:e.productImage,recurringInterval:e.recurringInterval}}),e&&t.jsxs(t.Fragment,{children:[t.jsx(s.ActivePaymentMethod,{}),e.activeTo&&t.jsx(s.SubscriptionExpirationDate,{})]}),t.jsx(s.CheckoutFooter,{className:"flex md:hidden"})]})})]}),t.jsx(s.ChangeSubscriptionPlan,{isOpen:b,setIsOpen:d,subscription:e})]})},I=Object.freeze(Object.defineProperty({__proto__:null,Subscription:N},Symbol.toStringTag,{value:"Module"}));exports.Subscriptions=f;exports.index=I;