@billgangcom/theme-lib 1.112.0 → 1.113.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.
- package/dist/{builder-BPcwschw.js → builder-DCG_rKLl.js} +5 -5
- package/dist/{builder-components-DiSJ943W.cjs → builder-components-AImqs4dE.cjs} +1 -1
- package/dist/{builder-components-Dzh-02cy.js → builder-components-CvCnVAKT.js} +4 -4
- package/dist/{builder-BJi41gLj.cjs → builder-tlfk07XU.cjs} +2 -2
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +22 -22
- package/dist/{charge-Ud-AcF5N.cjs → charge-BFX6SXea.cjs} +22 -22
- package/dist/{charge-BXhHGVZ9.js → charge-CKZp4zQi.js} +2758 -2755
- package/dist/{checkout-C6Krps7T.cjs → checkout-Cmeyss5G.cjs} +1 -1
- package/dist/{checkout-CJf-hrQS.js → checkout-D_xfWCWz.js} +5 -5
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-CTAMb5Ws.js → index-Bx89f_4A.js} +5 -5
- package/dist/{index-HqoVN9QS.js → index-C3cH2PFK.js} +5 -5
- package/dist/{index-DnOKr-Mo.cjs → index-CIvEpWP9.cjs} +1 -1
- package/dist/{index-C79AL-SX.cjs → index-CK7UKF-8.cjs} +1 -1
- package/dist/{index-DZA2Qg7A.cjs → index-CRHFyKXf.cjs} +1 -1
- package/dist/{index-BJRGrwnd.cjs → index-CYZyAwBn.cjs} +1 -1
- package/dist/{index-BubR1-4r.js → index-JpZDgvfI.js} +1 -1
- package/dist/{index-Cm1WxtE8.cjs → index-apLxO6zR.cjs} +1 -1
- package/dist/{index-BOlJB8PY.js → index-ho-UznN6.js} +5 -5
- package/dist/{index-C1RZaf85.js → index-u_Bjlw7n.js} +5 -5
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +6 -6
- package/dist/{order-BAgqXjj2.cjs → order-CXwHDXJN.cjs} +1 -1
- package/dist/{order-BRLSB3Nu.js → order-CviSw7zw.js} +5 -5
- package/dist/style.css +1 -1
- package/dist/{subscription-ytzGgkBp.cjs → subscription-7CuU3nB5.cjs} +1 -1
- package/dist/{subscription-CX2OMarS.js → subscription-DzjUTqSQ.js} +5 -5
- package/dist/{ticket-Bw4zmgVj.js → ticket-DKw8gvGf.js} +162 -127
- package/dist/{ticket-Cf9H1nLd.cjs → ticket-DZ2eg4MX.cjs} +4 -4
- package/dist/{top-up-B6LSLdw1.cjs → top-up-Bh_RGoNj.cjs} +1 -1
- package/dist/{top-up-CLwqsSvK.js → top-up-Cpz4gJGX.js} +5 -5
- package/dist/{ui-components-DvdK_Pju.js → ui-components-BkCPFgEA.js} +4 -4
- package/dist/{ui-components-BM4zwk9v.cjs → ui-components-CFXj3WGq.cjs} +1 -1
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1 -1
- package/dist/{validation-DBN8rMc3.js → validation-COeamQDf.js} +5 -5
- package/dist/{validation-B_VyjaOh.cjs → validation-U25w3oxY.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),c=require("react"),u=require("./builder-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),c=require("react"),u=require("./builder-tlfk07XU.cjs"),s=require("./charge-BFX6SXea.cjs"),m=require("./ui-components-CFXj3WGq.cjs");require("./builder-components-AImqs4dE.cjs");require("./ticket-DZ2eg4MX.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,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-
|
|
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-
|
|
5
|
-
import { e as M, g as F } from "./ui-components-
|
|
6
|
-
import "./builder-components-
|
|
7
|
-
import "./ticket-
|
|
3
|
+
import { X as C, N as _, a7 as y, a8 as v, J as P } from "./builder-DCG_rKLl.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-CKZp4zQi.js";
|
|
5
|
+
import { e as M, g as F } from "./ui-components-BkCPFgEA.js";
|
|
6
|
+
import "./builder-components-CvCnVAKT.js";
|
|
7
|
+
import "./ticket-DKw8gvGf.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 } = _();
|