@billgangcom/theme-lib 1.120.2 → 1.120.3
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-CE6yg5oK.js → builder-B9_Gx4V9.js} +940 -910
- package/dist/{builder-CWaG42kw.cjs → builder-b-qJCQwo.cjs} +12 -12
- package/dist/{builder-components-5Z24DJJP.js → builder-components-9PbPc-mC.js} +4 -4
- package/dist/{builder-components-Dyplqbia.cjs → builder-components-BrwXRmXM.cjs} +1 -1
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +22 -22
- package/dist/{charge-B1GrtVWc.js → charge-D2MDZPjd.js} +1201 -1196
- package/dist/{charge-BEnNfxFr.cjs → charge-DUScJbNu.cjs} +35 -35
- package/dist/{checkout-CF05O03i.cjs → checkout-DTtU-2-r.cjs} +1 -1
- package/dist/{checkout-B21z1TGE.js → checkout-DkxbEL2F.js} +5 -5
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-Bl91R63p.cjs → index-4EJbaYsy.cjs} +1 -1
- package/dist/{index-Be2NRkjG.js → index-9Fk33t08.js} +5 -5
- package/dist/{index-DTAlnIyB.js → index-B-r1aWAV.js} +1 -1
- package/dist/{index-Cs9xerh4.js → index-BQYcOWMO.js} +8 -8
- package/dist/{index-1x0-wbdS.cjs → index-BUMQ-Rby.cjs} +1 -1
- package/dist/{index-C9ZIjLVQ.js → index-D0ZTho0y.js} +8 -8
- package/dist/{index-BpWh-qOk.cjs → index-D8GG6aY1.cjs} +1 -1
- package/dist/{index-BZ7C0iBt.cjs → index-DtxjPAK3.cjs} +1 -1
- package/dist/{index-Dez8BiQX.js → index-rdmzZg1L.js} +5 -5
- package/dist/{index-DT_aTpZf.cjs → index-vTR6prhR.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +6 -6
- package/dist/{order-BEBOxyTb.cjs → order-BKAzAUuT.cjs} +1 -1
- package/dist/{order-dg2Oyqn4.js → order-BXm6-hgK.js} +5 -5
- package/dist/{subscription-ts1zCYfh.js → subscription-CW6Mr7T0.js} +5 -5
- package/dist/{subscription-Cd-C2FDT.cjs → subscription-DZcB9X0s.cjs} +1 -1
- package/dist/{ticket-STaDp20p.cjs → ticket-CRuEXuRi.cjs} +1 -1
- package/dist/{ticket-KYg6_LAo.js → ticket-h-_um0I6.js} +5 -5
- package/dist/{top-up-ZgLo1nZF.cjs → top-up-BFRH_VWm.cjs} +1 -1
- package/dist/{top-up-dXcEKblL.js → top-up-WF6n8aSD.js} +5 -5
- package/dist/{ui-components-s9Q6Wg3R.cjs → ui-components-C0u-HufJ.cjs} +1 -1
- package/dist/{ui-components-CpDQ53a4.js → ui-components-MoVz20xe.js} +4 -4
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1 -1
- package/dist/{validation-DLYUReRT.cjs → validation-B7M4mSAI.cjs} +1 -1
- package/dist/{validation-DC8gCoJH.js → validation-CeZnogYJ.js} +6 -6
- package/package.json +1 -1
|
@@ -3,11 +3,11 @@ var In = (e, n, o) => n in e ? mn(e, n, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var Ot = (e, n, o) => In(e, typeof n != "symbol" ? n + "" : n, o);
|
|
4
4
|
import { jsx as t, jsxs as d, Fragment as J } from "react/jsx-runtime";
|
|
5
5
|
import _, { useState as st, useRef as ft, useCallback as Xe, useEffect as un, createElement as Ct, PureComponent as gn } from "react";
|
|
6
|
-
import { f as R,
|
|
7
|
-
import { X as Cn, Y as vn, u as We, I as wn } from "./charge-
|
|
8
|
-
import { u as Ye, d as Qe, D as Ze, e as et, v as tt, f as nt, g as ot, C as it, F as Mt } from "./builder-components-
|
|
6
|
+
import { f as R, ad as lt, j as Qt, r as Zt, m as _t, K as Ge, ae as en, J as Pe, v as me, af as Dt, ag as Ft, b as Je, l as fn, e as ze, p as St, _ as ye, a5 as _n, N as Sn, ah as bn, ai as tn, k as yn } from "./builder-B9_Gx4V9.js";
|
|
7
|
+
import { X as Cn, Y as vn, u as We, I as wn } from "./charge-D2MDZPjd.js";
|
|
8
|
+
import { u as Ye, d as Qe, D as Ze, e as et, v as tt, f as nt, g as ot, C as it, F as Mt } from "./builder-components-9PbPc-mC.js";
|
|
9
9
|
import kn, { createPortal as Tn } from "react-dom";
|
|
10
|
-
import { s as Fe, g as Nn, u as Pn } from "./ticket-
|
|
10
|
+
import { s as Fe, g as Nn, u as Pn } from "./ticket-h-_um0I6.js";
|
|
11
11
|
const An = "_wrapper_5w9s8_1", Ln = {
|
|
12
12
|
wrapper: An
|
|
13
13
|
}, $h = (e) => {
|
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-C0u-HufJ.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.ImagesLoader=t.ImagesLoader;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.SelectSettings=t.SelectSettings;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 { a4 as t, J as e, a2 as o, g as n, B as i, K as r, G as g, D as S, U as d, j as l, m as c, ab as u, b as p, C as I, _ as B, E as C, F as M, a9 as T, X as h, I as m, k as x, c as L, f as y, A as P, y as b, a5 as f, Q as k, e as U, L as A, a7 as E, M as R, N as F, a1 as G, a0 as H, P as N, a6 as O, a8 as W, V as j, R as w, O as z, h as D, ac as J, S as K, aa as Q, h as V, a3 as X, Y, Z, d as _, z as $, T as q, l as v, i as aa, H as sa, $ as ta, W as ea } from "./ui-components-
|
|
1
|
+
import { a4 as t, J as e, a2 as o, g as n, B as i, K as r, G as g, D as S, U as d, j as l, m as c, ab as u, b as p, C as I, _ as B, E as C, F as M, a9 as T, X as h, I as m, k as x, c as L, f as y, A as P, y as b, a5 as f, Q as k, e as U, L as A, a7 as E, M as R, N as F, a1 as G, a0 as H, P as N, a6 as O, a8 as W, V as j, R as w, O as z, h as D, ac as J, S as K, aa as Q, h as V, a3 as X, Y, Z, d as _, z as $, T as q, l as v, i as aa, H as sa, $ as ta, W as ea } from "./ui-components-MoVz20xe.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-DUScJbNu.cjs"),d=require("./builder-b-qJCQwo.cjs"),u=require("./ui-components-C0u-HufJ.cjs");require("./builder-components-BrwXRmXM.cjs");require("react-dom");require("./ticket-CRuEXuRi.cjs");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,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import r from "react";
|
|
3
|
-
import { Z as g } from "./charge-
|
|
4
|
-
import { K as I, N as
|
|
5
|
-
import { I as y, f as k, g as L, e as E } from "./ui-components-
|
|
6
|
-
import "./builder-components-
|
|
3
|
+
import { Z as g } from "./charge-D2MDZPjd.js";
|
|
4
|
+
import { K as I, N as x, ac as N, p as b } from "./builder-B9_Gx4V9.js";
|
|
5
|
+
import { I as y, f as k, g as L, e as E } from "./ui-components-MoVz20xe.js";
|
|
6
|
+
import "./builder-components-9PbPc-mC.js";
|
|
7
7
|
import "react-dom";
|
|
8
|
-
import "./ticket-
|
|
8
|
+
import "./ticket-h-_um0I6.js";
|
|
9
9
|
const V = "_lock_1mxa7_1", G = "_wrapper_1mxa7_12", j = "_content_1mxa7_22", C = "_info_1mxa7_31", q = "_buttons_1mxa7_38", B = "_button_1mxa7_38", K = "_input_1mxa7_50", R = "_error_1mxa7_57", t = {
|
|
10
10
|
lock: V,
|
|
11
11
|
wrapper: G,
|
|
@@ -16,7 +16,7 @@ const V = "_lock_1mxa7_1", G = "_wrapper_1mxa7_12", j = "_content_1mxa7_22", C =
|
|
|
16
16
|
input: K,
|
|
17
17
|
error: R
|
|
18
18
|
}, M = () => {
|
|
19
|
-
const [f, n] = r.useState(!1), [u, h] = r.useState(!1), [c, P] = r.useState(""), { general: e, setGeneral: w } = I(), { setShopPassword: p } =
|
|
19
|
+
const [f, n] = r.useState(!1), [u, h] = r.useState(!1), [c, P] = r.useState(""), { general: e, setGeneral: w } = I(), { setShopPassword: p } = x(), i = N(), m = b();
|
|
20
20
|
r.useEffect(() => {
|
|
21
21
|
if (e && (!e.info.passwordProtected || e.isPasswordValid)) {
|
|
22
22
|
const s = i.state.from === "/validation" ? "/" : i.state.from;
|