@billgangcom/theme-lib 1.116.7 → 1.116.8

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.
Files changed (39) hide show
  1. package/dist/{builder-DjAWZsWX.cjs → builder-DmYqtNP5.cjs} +2 -2
  2. package/dist/{builder-components-DYJCevXV.js → builder-components-BK2fDGJl.js} +4 -4
  3. package/dist/{builder-components-Cs3Kd5Fp.cjs → builder-components-CqkelDOu.cjs} +1 -1
  4. package/dist/{builder-CZXu5Hac.js → builder-f0ugx4fz.js} +5 -5
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +22 -22
  7. package/dist/{charge-BO33PRmH.js → charge-1negffI8.js} +7 -7
  8. package/dist/{charge-CbGV61dW.cjs → charge-qD5mRJMf.cjs} +2 -2
  9. package/dist/{checkout-BMr1ltyW.cjs → checkout-0ERLAcm8.cjs} +1 -1
  10. package/dist/{checkout-BHws_JKB.js → checkout-DIRNbVFS.js} +5 -5
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-DVr6y1N6.js → index-CEMM_pXQ.js} +5 -5
  14. package/dist/{index-D0GkszCa.cjs → index-CEeFFpYv.cjs} +1 -1
  15. package/dist/{index-jWgMpgga.cjs → index-CPO9oLj9.cjs} +1 -1
  16. package/dist/{index-_p2-YMlC.js → index-CidwOaYu.js} +1 -1
  17. package/dist/{index-DTWBap2Z.cjs → index-DBWEXhcg.cjs} +1 -1
  18. package/dist/{index-CmFApHUc.js → index-DX-dir-7.js} +5 -5
  19. package/dist/{index-BpETNor-.cjs → index-D_AQGApz.cjs} +1 -1
  20. package/dist/{index-D9Pj1vKe.cjs → index-DpNZtNdj.cjs} +1 -1
  21. package/dist/{index-C23sLqTE.js → index-_yYkATZJ.js} +5 -5
  22. package/dist/{index-DOlYOPkO.js → index-yxPurcYj.js} +5 -5
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.es.js +6 -6
  25. package/dist/{order-CRherMAs.js → order-BrYztFSw.js} +5 -5
  26. package/dist/{order-BWjIxR9H.cjs → order-CnCo2Gt1.cjs} +1 -1
  27. package/dist/{subscription-BXxBl9fr.cjs → subscription-0kB79dBi.cjs} +1 -1
  28. package/dist/{subscription-NWrEJGZq.js → subscription-B24hZj7z.js} +5 -5
  29. package/dist/{ticket-CC5fRwuL.cjs → ticket-3757pxOF.cjs} +1 -1
  30. package/dist/{ticket-L3tJ9ftw.js → ticket-CrHG13A9.js} +5 -5
  31. package/dist/{top-up-9EYY5Qos.cjs → top-up-C3RpekTg.cjs} +1 -1
  32. package/dist/{top-up-Dby7Plbm.js → top-up-CFmQGXRJ.js} +5 -5
  33. package/dist/{ui-components-xoMojTNf.cjs → ui-components-Ca0Z19h_.cjs} +1 -1
  34. package/dist/{ui-components-C1eixdPN.js → ui-components-eSiLgpmM.js} +4 -4
  35. package/dist/ui.cjs.js +1 -1
  36. package/dist/ui.es.js +1 -1
  37. package/dist/{validation-Dj02XiYC.js → validation-BMZ9cbHF.js} +5 -5
  38. package/dist/{validation-B8Rt08hM.cjs → validation-Cajf8X9j.cjs} +1 -1
  39. package/package.json +1 -1
@@ -3,10 +3,10 @@ var an = (c, t, s) => t in c ? sn(c, t, { enumerable: !0, configurable: !0, writ
3
3
  var Tt = (c, t, s) => an(c, typeof t != "symbol" ? t + "" : t, s);
4
4
  import { jsx as e, jsxs as h, Fragment as G } from "react/jsx-runtime";
5
5
  import b, { createElement as _t, PureComponent as on } from "react";
6
- import { f as q, ac as at, j as Ut, r as Ht, m as pt, V as ze, ad as Vt, J as Ie, v as le, ae as xt, af as kt, b as Ge, l as cn, e as Ve, p as mt, _ as me, a4 as rn, M as ln, ag as dn, ah as Wt, k as un } from "./builder-CZXu5Hac.js";
7
- import { W as hn, u as Fe, H as pn } from "./charge-BO33PRmH.js";
8
- import { u as Xe, d as Ye, D as Ke, e as Qe, v as Je, f as Ze, g as et, C as tt, F as Gt } from "./builder-components-DYJCevXV.js";
9
- import { s as Oe, g as mn, u as fn } from "./ticket-L3tJ9ftw.js";
6
+ import { f as q, ac as at, j as Ut, r as Ht, m as pt, V as ze, ad as Vt, J as Ie, v as le, ae as xt, af as kt, b as Ge, l as cn, e as Ve, p as mt, _ as me, a4 as rn, M as ln, ag as dn, ah as Wt, k as un } from "./builder-f0ugx4fz.js";
7
+ import { W as hn, u as Fe, H as pn } from "./charge-1negffI8.js";
8
+ import { u as Xe, d as Ye, D as Ke, e as Qe, v as Je, f as Ze, g as et, C as tt, F as Gt } from "./builder-components-BK2fDGJl.js";
9
+ import { s as Oe, g as mn, u as fn } from "./ticket-CrHG13A9.js";
10
10
  import _n from "react-dom";
11
11
  const gn = "_wrapper_5w9s8_1", vn = {
12
12
  wrapper: gn
package/dist/ui.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./ui-components-xoMojTNf.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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./ui-components-Ca0Z19h_.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-C1eixdPN.js";
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-eSiLgpmM.js";
2
2
  export {
3
3
  t as Accordion,
4
4
  e as AlignText,
@@ -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 { X as g } from "./charge-BO33PRmH.js";
4
- import { V as I, M as b, ab as x, p as N } from "./builder-CZXu5Hac.js";
5
- import { I as y, f as k, g as L, e as V } from "./ui-components-C1eixdPN.js";
6
- import "./builder-components-DYJCevXV.js";
7
- import "./ticket-L3tJ9ftw.js";
3
+ import { X as g } from "./charge-1negffI8.js";
4
+ import { V as I, M as b, ab as x, p as N } from "./builder-f0ugx4fz.js";
5
+ import { I as y, f as k, g as L, e as V } from "./ui-components-eSiLgpmM.js";
6
+ import "./builder-components-BK2fDGJl.js";
7
+ import "./ticket-CrHG13A9.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,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),g=require("./charge-CbGV61dW.cjs"),d=require("./builder-DjAWZsWX.cjs"),u=require("./ui-components-xoMojTNf.cjs");require("./builder-components-Cs3Kd5Fp.cjs");require("./ticket-CC5fRwuL.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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),g=require("./charge-qD5mRJMf.cjs"),d=require("./builder-DmYqtNP5.cjs"),u=require("./ui-components-Ca0Z19h_.cjs");require("./builder-components-CqkelDOu.cjs");require("./ticket-3757pxOF.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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@billgangcom/theme-lib",
3
- "version": "1.116.7",
3
+ "version": "1.116.8",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"