@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
package/dist/ui.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./ui-components-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./ui-components-BR9v0VH1.cjs");exports.Accordion=t.Accordion;exports.AlignText=t.AlignText;exports.BurgerMenuButton=t.BurgerMenuButton;exports.Button=t.Button;exports.ButtonSettings=t.ButtonSettings;exports.ButtonTypeSettings=t.ButtonTypeSettings;exports.ButtonsSettings=t.ButtonsSettings;exports.CategorySettings=t.CategorySettings;exports.ChargeTypes=t.ChargeTypes;exports.Checkbox=t.Checkbox;exports.CheckboxSettings=t.CheckboxSettings;exports.ChooseImage=t.ChooseImage;exports.ChooseImageModal=t.ChooseImageModal;exports.ConfirmationModal=t.ConfirmationModal;exports.EmptyCart=t.EmptyCart;exports.ErrorableBlock=t.ErrorableBlock;exports.FormSettings=t.FormSettings;exports.GroupCardModal=t.GroupCardModal;exports.HeaderButtons=t.HeaderButtons;exports.Icon=t.Icon;exports.InputSettings=t.InputSettings;exports.InputUI=t.Input;exports.ItemsSettings=t.ItemsSettings;exports.LayoutSettings=t.LayoutSettings;exports.Link=t.Link;exports.ListingSelector=t.ListingSelector;exports.Loader=t.Loader;exports.LoaderBuilder=t.LoaderBuilder;exports.MetaInfoPost=t.MetaInfoPost;exports.Modal=t.Modal;exports.NotificationBuilder=t.NotificationBuilder;exports.PagesMobileMenu=t.PagesMobileMenu;exports.PagesMobileModal=t.PagesMobileModal;exports.PagesSettings=t.PagesSettings;exports.ProductCardButtons=t.ProductCardButtons;exports.ProductCardModal=t.ProductCardModal;exports.ProductOptions=t.ProductOptions;exports.RadioUI=t.Radio;exports.RangeSelector=t.RangeSelector;exports.Select=t.Select;exports.SelectInfiniteList=t.SelectInfiniteList;exports.SelectTypeText=t.SelectTypeText;exports.SelectUI=t.Select;exports.ShareLink=t.ShareLink;exports.ShoppingButton=t.ShoppingButton;exports.ShoppingModalCart=t.ShoppingModalCart;exports.Switch=t.Switch;exports.TextSettings=t.TextSettings;exports.TextareaSettings=t.TextareaSettings;exports.TextareaUI=t.Textarea;exports.Tip=t.Tip;exports.TypesText=t.TypesText;exports.UserInfo=t.UserInfo;exports.Wrapper=t.Wrapper;
|
package/dist/ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as t, A as e, Y as o, g as n, B as i, y as r, w as g, v as S, G as d, i as l, k as u, a5 as c, b as p, C as I, Q as B, E as C, F as M, a3 as T, J as h, I as x, c as y, f as L, t as P, q as f, $ as m, D as b, e as k, L as U, a1 as A, M as E, N as R, X as w, V as F, P as G, a0 as H, a2 as N, H as O, R as W, z as j, S as q, a6 as v, a4 as z, S as D, Z as J, K, O as Q, d as V, s as X, T as Y, j as Z, h as _, x as $, U as aa, W as sa } from "./ui-components-
|
|
1
|
+
import { _ as t, A as e, Y as o, g as n, B as i, y as r, w as g, v as S, G as d, i as l, k as u, a5 as c, b as p, C as I, Q as B, E as C, F as M, a3 as T, J as h, I as x, c as y, f as L, t as P, q as f, $ as m, D as b, e as k, L as U, a1 as A, M as E, N as R, X as w, V as F, P as G, a0 as H, a2 as N, H as O, R as W, z as j, S as q, a6 as v, a4 as z, S as D, Z as J, K, O as Q, d as V, s as X, T as Y, j as Z, h as _, x as $, U as aa, W as sa } from "./ui-components-PK209o-T.js";
|
|
2
2
|
export {
|
|
3
3
|
t as Accordion,
|
|
4
4
|
e as AlignText,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),g=require("./charge-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),g=require("./charge-BrY_-ls8.cjs"),d=require("./builder-CUCCG2gi.cjs"),u=require("./ui-components-BR9v0VH1.cjs");require("./builder-components-D2219YPy.cjs");require("./ticket-myEl0GYr.cjs");require("react-dom");const j="_lock_1mxa7_1",b="_wrapper_1mxa7_12",I="_content_1mxa7_22",y="_info_1mxa7_31",N="_buttons_1mxa7_38",q="_button_1mxa7_38",k="_input_1mxa7_50",L="_error_1mxa7_57",s={lock:j,wrapper:b,content:I,info:y,buttons:N,button:q,input:k,error:L},V=()=>{const[f,n]=r.useState(!1),[h,w]=r.useState(!1),[c,P]=r.useState(""),{general:o,setGeneral:_}=d.useGeneralStore(),{setShopPassword:p}=d.useStorefrontStore(),i=d.useLocation(),m=d.useNavigate();r.useEffect(()=>{if(o&&(!o.info.passwordProtected||o.isPasswordValid)){const t=i.state.from==="/validation"?"/":i.state.from;m(t)}},[o]),r.useEffect(()=>{o||(async()=>{var x;n(!0);const l=localStorage.getItem("shopPassword")||"",a=await g.fetchGeneral(l);if(a.isPasswordValid){const S=((x=i.state)==null?void 0:x.from)||"/";m(S)}a.info.passwordProtected||(localStorage.removeItem("shopPassword"),p("")),_(a),n(!1)})()},[o]);async function v(){var l;n(!0);const t=await g.fetchGeneral(c);if(!t.isPasswordValid)w(!0);else{localStorage.setItem("shopPassword",c),p(c);const a=((l=i.state)==null?void 0:l.from)||"/";m(a),t.info.passwordProtected||(localStorage.removeItem("shopPassword"),p("")),_(t)}n(!1)}return e.jsxs("div",{className:s.wrapper,children:[!f&&e.jsxs("div",{className:s.content,children:[e.jsx("div",{className:s.lock,children:e.jsx(u.Icon,{name:"Lock",fill:"var(--text-secondary)",width:64,height:64})}),e.jsxs("div",{className:s.info,children:[e.jsx("h2",{id:"h2",className:s.title,children:"The store is password protected"}),e.jsx("p",{id:"p",className:s.description,children:"If you do not have a password, we recommend you to contact the technical support of the store or write to the mail"})]}),e.jsxs("div",{className:s.input,children:[e.jsx(u.Input,{type:"password",onChange:t=>{w(!1),P(t)},value:c,placeholder:"Password",required:!0}),e.jsx("span",{className:s.error,children:h&&"Incorrect password"})]}),e.jsx("div",{className:s.buttons,children:e.jsx(u.Button,{type:"Primary",className:s.button,disabled:h,onClick:v,children:"Submit"})})]}),f&&e.jsx(u.Loader,{})]})};exports.ValidationPage=V;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import r from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { V as I, M as b, ab as x, p as N } from "./builder-
|
|
5
|
-
import { I as y, f as k, g as
|
|
6
|
-
import "./builder-components-
|
|
7
|
-
import "./ticket-
|
|
3
|
+
import { X as g } from "./charge-Cti1lSP2.js";
|
|
4
|
+
import { V as I, M as b, ab as x, p as N } from "./builder-Bj8ViroH.js";
|
|
5
|
+
import { I as y, f as k, g as L, e as V } 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 E = "_lock_1mxa7_1", G = "_wrapper_1mxa7_12", j = "_content_1mxa7_22", C = "_info_1mxa7_31", q = "_buttons_1mxa7_38", B = "_button_1mxa7_38", M = "_input_1mxa7_50", R = "_error_1mxa7_57", t = {
|
|
10
10
|
lock: E,
|
|
@@ -15,7 +15,7 @@ const E = "_lock_1mxa7_1", G = "_wrapper_1mxa7_12", j = "_content_1mxa7_22", C =
|
|
|
15
15
|
button: B,
|
|
16
16
|
input: M,
|
|
17
17
|
error: R
|
|
18
|
-
},
|
|
18
|
+
}, K = () => {
|
|
19
19
|
const [f, n] = r.useState(!1), [u, h] = r.useState(!1), [c, P] = r.useState(""), { general: e, setGeneral: w } = I(), { setShopPassword: p } = b(), i = x(), m = N();
|
|
20
20
|
r.useEffect(() => {
|
|
21
21
|
if (e && (!e.info.passwordProtected || e.isPasswordValid)) {
|
|
@@ -92,7 +92,7 @@ const E = "_lock_1mxa7_1", G = "_wrapper_1mxa7_12", j = "_content_1mxa7_22", C =
|
|
|
92
92
|
/* @__PURE__ */ o("span", { className: t.error, children: u && "Incorrect password" })
|
|
93
93
|
] }),
|
|
94
94
|
/* @__PURE__ */ o("div", { className: t.buttons, children: /* @__PURE__ */ o(
|
|
95
|
-
|
|
95
|
+
L,
|
|
96
96
|
{
|
|
97
97
|
type: "Primary",
|
|
98
98
|
className: t.button,
|
|
@@ -102,9 +102,9 @@ const E = "_lock_1mxa7_1", G = "_wrapper_1mxa7_12", j = "_content_1mxa7_22", C =
|
|
|
102
102
|
}
|
|
103
103
|
) })
|
|
104
104
|
] }),
|
|
105
|
-
f && /* @__PURE__ */ o(
|
|
105
|
+
f && /* @__PURE__ */ o(V, {})
|
|
106
106
|
] });
|
|
107
107
|
};
|
|
108
108
|
export {
|
|
109
|
-
|
|
109
|
+
K as ValidationPage
|
|
110
110
|
};
|