@billgangcom/theme-lib 1.118.0 → 1.119.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-CcLZHVq3.js → builder-C7VD2Hrr.js} +5 -5
- package/dist/{builder-JKkaOMOl.cjs → builder-D40snPWY.cjs} +2 -2
- package/dist/{builder-components-B0SvEDG4.cjs → builder-components-3rAy-Smx.cjs} +1 -1
- package/dist/{builder-components-Dl3dEzV6.js → builder-components-BvBlpSpu.js} +4 -4
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +44 -44
- package/dist/charge-5j107R6o.cjs +109 -0
- package/dist/{charge-DC4f3U8I.js → charge-iu_hkYgk.js} +6861 -7143
- package/dist/{checkout-B_qFvrUF.js → checkout-BpKCwIxB.js} +5 -5
- package/dist/{checkout-BaZLmyfk.cjs → checkout-CaqNOLLu.cjs} +1 -1
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +25 -24
- package/dist/{index-DtcojRuS.cjs → index-11n2K2VN.cjs} +1 -1
- package/dist/{index-BtQ89Hj3.cjs → index-AEZ2KhQR.cjs} +1 -1
- package/dist/{index-CyiCR5lK.cjs → index-BOjsM7d1.cjs} +1 -1
- package/dist/{index-BqtOxv5i.js → index-BYBw4TgV.js} +5 -5
- package/dist/{index-CmO3iWeV.cjs → index-BjuGKegT.cjs} +1 -1
- package/dist/{index-D4Hp4-Qp.cjs → index-Cxrmj7hz.cjs} +1 -1
- package/dist/{index-Bh3_Rczn.js → index-DBgBtyQS.js} +1 -1
- package/dist/{index-C-SrHRJh.js → index-KiiAjnVN.js} +12 -12
- package/dist/{index-Ek3qYkbu.js → index-UVcYwMAu.js} +5 -5
- package/dist/{index-BFZm601D.js → index-jOdOgPXj.js} +5 -5
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +9 -9
- package/dist/{order-Bd24i-W3.js → order-BGmiWqRq.js} +5 -5
- package/dist/{order-t2QoTU6S.cjs → order-BphgbYol.cjs} +1 -1
- package/dist/src/exports.d.ts +1 -0
- package/dist/src/lib/createTicket.d.ts +1 -1
- package/dist/src/pages/ticket/model.d.ts +6 -1
- package/dist/src/storefront/api/ticket.d.ts +4 -1
- package/dist/src/ui/ImagesLoader/example.d.ts +18 -0
- package/dist/src/ui/ImagesLoader/index.d.ts +30 -0
- package/dist/src/ui/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/{subscription-DHhmsQxH.cjs → subscription-C9MVW1hD.cjs} +1 -1
- package/dist/{subscription-CqhnWDq_.js → subscription-udEFKrRx.js} +5 -5
- package/dist/{ticket-r3Kx22M9.js → ticket-CVpIDi23.js} +480 -401
- package/dist/ticket-DHMkT2YQ.cjs +108 -0
- package/dist/{top-up-9OWzVCVP.js → top-up-BrOInMzx.js} +5 -5
- package/dist/{top-up-Ba_v68et.cjs → top-up-CUh8b-Aq.cjs} +1 -1
- package/dist/{ui-components-BGzv0KT2.js → ui-components-D5DlMpwI.js} +2905 -2666
- package/dist/ui-components-tJEldx8o.cjs +1 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +39 -38
- package/dist/{validation-BUpHL2xL.js → validation-DWYiq2wg.js} +5 -5
- package/dist/{validation-D3IO5HzB.cjs → validation-riS3yl7s.cjs} +1 -1
- package/package.json +1 -1
- package/dist/charge-LGilmNUv.cjs +0 -109
- package/dist/ticket-Cv2XbF6y.cjs +0 -108
- package/dist/ui-components-C4hKK4aN.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-tJEldx8o.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 {
|
|
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-D5DlMpwI.js";
|
|
2
2
|
export {
|
|
3
3
|
t as Accordion,
|
|
4
4
|
e as AlignText,
|
|
@@ -8,10 +8,10 @@ export {
|
|
|
8
8
|
r as ButtonTypeSettings,
|
|
9
9
|
g as ButtonsSettings,
|
|
10
10
|
S as CategorySettings,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
d as ChargeTypes,
|
|
12
|
+
l as Checkbox,
|
|
13
|
+
c as CheckboxSettings,
|
|
14
|
+
u as ChooseImage,
|
|
15
15
|
p as ChooseImageModal,
|
|
16
16
|
I as ConfirmationModal,
|
|
17
17
|
B as EmptyCart,
|
|
@@ -19,40 +19,41 @@ export {
|
|
|
19
19
|
M as FormSettings,
|
|
20
20
|
T as GroupCardModal,
|
|
21
21
|
h as HeaderButtons,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
L as
|
|
22
|
+
m as Icon,
|
|
23
|
+
x as ImagesLoader,
|
|
24
|
+
L as InputSettings,
|
|
25
|
+
y as InputUI,
|
|
25
26
|
P as ItemsSettings,
|
|
26
27
|
b as LayoutSettings,
|
|
27
28
|
f as Link,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
29
|
+
k as ListingSelector,
|
|
30
|
+
U as Loader,
|
|
31
|
+
A as LoaderBuilder,
|
|
32
|
+
E as MetaInfoPost,
|
|
33
|
+
R as Modal,
|
|
34
|
+
F as NotificationBuilder,
|
|
35
|
+
G as PagesMobileMenu,
|
|
36
|
+
H as PagesMobileModal,
|
|
37
|
+
N as PagesSettings,
|
|
38
|
+
O as ProductCardButtons,
|
|
39
|
+
W as ProductCardModal,
|
|
40
|
+
j as ProductOptions,
|
|
41
|
+
w as RadioUI,
|
|
42
|
+
z as RangeSelector,
|
|
43
|
+
D as Select,
|
|
44
|
+
J as SelectInfiniteList,
|
|
45
|
+
K as SelectSettings,
|
|
46
|
+
Q as SelectTypeText,
|
|
47
|
+
V as SelectUI,
|
|
48
|
+
X as ShareLink,
|
|
49
|
+
Y as ShoppingButton,
|
|
50
|
+
Z as ShoppingModalCart,
|
|
51
|
+
_ as Switch,
|
|
52
|
+
$ as TextSettings,
|
|
53
|
+
q as TextareaSettings,
|
|
54
|
+
v as TextareaUI,
|
|
55
|
+
aa as Tip,
|
|
56
|
+
sa as TypesText,
|
|
57
|
+
ta as UserInfo,
|
|
58
|
+
ea as Wrapper
|
|
58
59
|
};
|
|
@@ -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 {
|
|
4
|
-
import { K as I, N as b, ab as x, p as N } from "./builder-
|
|
5
|
-
import { I as y, f as k, g as L, e as E } from "./ui-components-
|
|
6
|
-
import "./builder-components-
|
|
7
|
-
import "./ticket-r3Kx22M9.js";
|
|
3
|
+
import { Z as g } from "./charge-iu_hkYgk.js";
|
|
4
|
+
import { K as I, N as b, ab as x, p as N } from "./builder-C7VD2Hrr.js";
|
|
5
|
+
import { I as y, f as k, g as L, e as E } from "./ui-components-D5DlMpwI.js";
|
|
6
|
+
import "./builder-components-BvBlpSpu.js";
|
|
8
7
|
import "react-dom";
|
|
8
|
+
import "./ticket-CVpIDi23.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,
|
|
@@ -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-5j107R6o.cjs"),d=require("./builder-D40snPWY.cjs"),u=require("./ui-components-tJEldx8o.cjs");require("./builder-components-3rAy-Smx.cjs");require("react-dom");require("./ticket-DHMkT2YQ.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;
|