sass-template-common 0.8.1 → 0.8.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.
@@ -3966,20 +3966,23 @@ class At {
3966
3966
  status: n?.response?.status,
3967
3967
  error: n
3968
3968
  }), Promise.reject(n)));
3969
- getBanners = async (t) => this.props?.axiosApi.get("/config/banners", {
3970
- params: {
3971
- ...t,
3972
- path: this.props?.config?.servicePrefix + `/${this.configVersion}/banners.html`
3973
- }
3974
- }).catch((n) => (console.log(`[/config/banners] Error: ${n.message}`), ae({
3975
- service: "CommonServices.getBanners",
3976
- endpoint: "/config/banners",
3977
- method: "GET",
3978
- params: t,
3979
- message: n?.message ?? "Unknown error",
3980
- status: n?.response?.status,
3981
- error: n
3982
- }), Promise.reject(n)));
3969
+ getBanners = async (t) => {
3970
+ const n = t.path ? t.path : `/${this.configVersion}/banners.html`;
3971
+ return this.props?.axiosApi.get("/config/banners", {
3972
+ params: {
3973
+ ...t,
3974
+ path: this.props?.config?.servicePrefix + n
3975
+ }
3976
+ }).catch((s) => (console.log(`[/config/banners] Error: ${s.message}`), ae({
3977
+ service: "CommonServices.getBanners",
3978
+ endpoint: "/config/banners",
3979
+ method: "GET",
3980
+ params: t,
3981
+ message: s?.message ?? "Unknown error",
3982
+ status: s?.response?.status,
3983
+ error: s
3984
+ }), Promise.reject(s)));
3985
+ };
3983
3986
  getPages = (t) => this.props?.axiosApi.get("/config/pages", { params: t }).catch((n) => (console.log(`[/config/pages] Error: ${n.message}`), ae({
3984
3987
  service: "CommonServices.getPages",
3985
3988
  endpoint: "/config/pages",
@@ -16036,8 +16039,8 @@ const c5 = (e, t) => {
16036
16039
  }, [o]), be.useEffect(() => {
16037
16040
  if (!s || !document) return;
16038
16041
  const m = document.getElementById("comment-button");
16039
- m && (console.log("trigger3", m), m.click());
16040
- }, [s]);
16042
+ m && (m.disabled = !1, console.log("trigger3", { el: m }), m.click(), m.disabled = !1);
16043
+ });
16041
16044
  const d = c == "local" ? u : l && l !== "false" ? l : "";
16042
16045
  return o ? /* @__PURE__ */ a("div", { className: "success-gif-container", children: /* @__PURE__ */ a("img", { className: "success-gif", src: d + "/arte/" + i + "/Success.gif" }) }) : /* @__PURE__ */ f(
16043
16046
  "button",
@@ -16084,7 +16087,8 @@ const c5 = (e, t) => {
16084
16087
  anonimusUser: u
16085
16088
  }) => {
16086
16089
  const l = t.current?.value || "", { PUBLIC_PUBLICATION_ID: d } = c, m = d;
16087
- if (!Yn(t, n, c).boolean || !o && !u) {
16090
+ if (console.log("check", o, u), !Yn(t, n, c).boolean || !o && !u) {
16091
+ console.log("warn");
16088
16092
  const p = s.nextElementSibling;
16089
16093
  return p && (p.style.display = "block"), !1;
16090
16094
  }
@@ -16487,9 +16491,16 @@ const A5 = ({
16487
16491
  es,
16488
16492
  {
16489
16493
  onClick: async (w) => {
16490
- if (c || !Yn(t, l, i).boolean) return;
16494
+ if (c) {
16495
+ console.log("error");
16496
+ return;
16497
+ }
16498
+ if (!Yn(t, l, i).boolean) {
16499
+ console.log("invalidForm");
16500
+ return;
16501
+ }
16491
16502
  if (!p) {
16492
- h(!0);
16503
+ h(!0), console.log("open popup");
16493
16504
  return;
16494
16505
  }
16495
16506
  const b = e.current.value, S = await ts({