@billgangcom/theme-lib 1.114.3 → 1.116.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-C4IiRjp5.js → builder-Bj8ViroH.js} +5 -5
- package/dist/{builder-CZiRl_4b.cjs → builder-CUCCG2gi.cjs} +2 -2
- package/dist/{builder-components-Ds0B6KAh.cjs → builder-components-D2219YPy.cjs} +1 -1
- package/dist/{builder-components-DUtnQsMR.js → builder-components-R1dTBy7D.js} +4 -4
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +34 -34
- package/dist/charge-BrY_-ls8.cjs +109 -0
- package/dist/{charge-BAjv22Uu.js → charge-Cti1lSP2.js} +8418 -8034
- package/dist/{checkout-BihRJw1G.cjs → checkout-C-7bV9sk.cjs} +1 -1
- package/dist/{checkout-CsTWd6tI.js → checkout-CTbZMuPC.js} +5 -5
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +7 -7
- package/dist/{index-CGhg-CkV.js → index-B03fd16N.js} +8 -8
- package/dist/{index-D4BCHJ4l.js → index-BBcZT0G2.js} +5 -5
- package/dist/{index-eaTS3-Aj.cjs → index-CILywG47.cjs} +1 -1
- package/dist/{index-0itRmU2L.cjs → index-CQm0i92r.cjs} +1 -1
- package/dist/{index-BbTAMqA3.js → index-CUFJfAc6.js} +1 -1
- package/dist/{index-BXuENnlY.js → index-CUnfTwF8.js} +5 -5
- package/dist/{index-CJ8gac-X.cjs → index-HhcLQjbw.cjs} +1 -1
- package/dist/{index-BQKbOYps.cjs → index-O5YekXKo.cjs} +1 -1
- package/dist/{index-DcAv5U36.js → index-OTW9ycHk.js} +5 -5
- package/dist/{index-DEpz6kqr.cjs → index-xbQ-1j9f.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +14 -14
- package/dist/order-1lHCRSUw.js +355 -0
- package/dist/order-DNaXADFJ.cjs +1 -0
- package/dist/src/storefront/api/index.d.ts +1 -0
- package/dist/src/storefront/api/vouches.d.ts +7 -0
- package/dist/src/storefront/components/VouchCard/index.d.ts +7 -0
- package/dist/src/storefront/components/VouchModal/index.d.ts +12 -0
- package/dist/src/storefront/components/index.d.ts +2 -0
- package/dist/src/storefront/models/shop.d.ts +3 -0
- package/dist/src/ui/Checkbox/index.d.ts +1 -0
- package/dist/src/ui/Textarea/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/{subscription-BAy6WRcF.cjs → subscription-BS-hdxzD.cjs} +1 -1
- package/dist/{subscription-2rmlPxD5.js → subscription-DBjS-E8T.js} +5 -5
- package/dist/{ticket-D5JmN5l9.js → ticket-BtcmMwIl.js} +420 -414
- package/dist/{ticket-Buu-gWi7.cjs → ticket-myEl0GYr.cjs} +62 -62
- package/dist/{top-up-iDz6xeq5.js → top-up-DNSDJwN-.js} +8 -8
- package/dist/{top-up-Cj3r_l4u.cjs → top-up-DTVCb-zx.cjs} +1 -1
- package/dist/ui-components-BR9v0VH1.cjs +1 -0
- package/dist/{ui-components-CAvXxpG4.js → ui-components-PK209o-T.js} +978 -968
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1 -1
- package/dist/{validation-BzWFnVQz.cjs → validation-D3uB6IO3.cjs} +1 -1
- package/dist/{validation-CVlQrUBl.js → validation-DgaNU463.js} +9 -9
- package/package.json +1 -1
- package/dist/charge-Swo2yUda.cjs +0 -109
- package/dist/order-DepPRtns.cjs +0 -1
- package/dist/order-sMlMoj4y.js +0 -320
- package/dist/ui-components-DhvDTRiU.cjs +0 -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-CUCCG2gi.cjs"),s=require("./charge-BrY_-ls8.cjs"),m=require("./ui-components-BR9v0VH1.cjs");require("./builder-components-D2219YPy.cjs");require("./ticket-myEl0GYr.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 {
|
|
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-Bj8ViroH.js";
|
|
4
|
+
import { p as w, N, P as j, S as D, g as I, i as x, q as E, l as f, r as G, A as T, s as k, t as B, v as A, w as O, x as L } from "./charge-Cti1lSP2.js";
|
|
5
|
+
import { e as M, g as F } from "./ui-components-PK209o-T.js";
|
|
6
|
+
import "./builder-components-R1dTBy7D.js";
|
|
7
|
+
import "./ticket-BtcmMwIl.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 } = _();
|