@goodhood-web/nebenan-base 3.6.0-development.8 → 3.6.0-development.9

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 (3) hide show
  1. package/index.js +2 -2
  2. package/index.mjs +31 -30
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -64043,31 +64043,32 @@ const GX = "_root_1nq4l_141", YX = "_reservedBanner_1nq4l_144", QX = "_reservedB
64043
64043
  onClose: r,
64044
64044
  open: a
64045
64045
  }) => {
64046
- const s = P3(i, e), [o, l] = X(null), u = re(null), d = re(null), f = re(null), [c, h] = X(null), [g, m] = X(s), [v, p] = X(
64047
- M1({ activeIndex: n, slides: s })
64048
- ), A = Ri(800), k = () => {
64046
+ const s = P3(i, e), [o, l] = X(null), u = re(null), d = re(null), f = re(null), [c, h] = X(null), [g, m] = X(s), v = M1({ activeIndex: n, slides: s }), [p, A] = X(v >= 0 ? v : 0), k = Ri(800), C = () => {
64049
64047
  m(P3(i, e));
64050
64048
  };
64051
64049
  le(() => {
64052
- k();
64053
- }, [A]), le(() => {
64054
- a && p(M1({ activeIndex: n, slides: s }));
64050
+ C();
64051
+ }, [k]), le(() => {
64052
+ if (a) {
64053
+ const B = M1({ activeIndex: n, slides: s });
64054
+ A(B >= 0 ? B : 0);
64055
+ }
64055
64056
  }, [a]), le(() => {
64056
64057
  if (!a || !o) return;
64057
- const O = M1({ activeIndex: n, slides: g }), B = g[O];
64058
- h(B.type === "ad" ? null : B.slideIndex), o.slideToLoop(O, 0);
64058
+ const B = M1({ activeIndex: n, slides: g }), M = g[B];
64059
+ h(M.type === "ad" ? null : M.slideIndex), o.slideToLoop(B, 0);
64059
64060
  }, [g, a, o, n]);
64060
- const C = (O) => {
64061
- const B = g[O.realIndex];
64062
- p(B.position), h(B.type === "ad" ? null : B.slideIndex);
64063
- }, x = () => {
64064
- const O = AK({ index: v, slides: g });
64065
- r(v - O);
64066
- }, P = (O) => {
64067
- const B = g.filter((M) => M.position !== O);
64068
- m(kK(B));
64061
+ const x = (B) => {
64062
+ const M = g[B.realIndex];
64063
+ A(M.position), h(M.type === "ad" ? null : M.slideIndex);
64064
+ }, P = () => {
64065
+ const B = AK({ index: p, slides: g });
64066
+ r(p - B);
64067
+ }, O = (B) => {
64068
+ const M = g.filter((F) => F.position !== B);
64069
+ m(kK(M));
64069
64070
  };
64070
- return Nz(["Escape", "Esc"], x, "keyup"), i.length === 0 ? null : /* @__PURE__ */ b(Na, { children: /* @__PURE__ */ b(QA, { open: a, className: Tt.modal, children: /* @__PURE__ */ j("div", { className: Tt.content, children: [
64071
+ return Nz(["Escape", "Esc"], P, "keyup"), i.length === 0 ? null : /* @__PURE__ */ b(Na, { children: /* @__PURE__ */ b(QA, { open: a, className: Tt.modal, children: /* @__PURE__ */ j("div", { className: Tt.content, children: [
64071
64072
  /* @__PURE__ */ j("div", { className: Tt.header, children: [
64072
64073
  /* @__PURE__ */ j(
64073
64074
  ee,
@@ -64089,7 +64090,7 @@ const GX = "_root_1nq4l_141", YX = "_reservedBanner_1nq4l_144", QX = "_reservedB
64089
64090
  ariaLabel: "Close",
64090
64091
  icon: "cross_circle",
64091
64092
  size: "large",
64092
- onClick: x,
64093
+ onClick: P,
64093
64094
  className: Tt.closeButton
64094
64095
  }
64095
64096
  ) })
@@ -64098,7 +64099,7 @@ const GX = "_root_1nq4l_141", YX = "_reservedBanner_1nq4l_144", QX = "_reservedB
64098
64099
  "div",
64099
64100
  {
64100
64101
  className: ce(Tt.navigation, {
64101
- [Tt["navigation--hidden"]]: g[v].type !== "ad" && hn()
64102
+ [Tt["navigation--hidden"]]: g[p] && g[p].type !== "ad" && hn()
64102
64103
  }),
64103
64104
  children: [
64104
64105
  /* @__PURE__ */ b(Id, { direction: "left", ref: d }),
@@ -64115,22 +64116,22 @@ const GX = "_root_1nq4l_141", YX = "_reservedBanner_1nq4l_144", QX = "_reservedB
64115
64116
  onSwiper: l,
64116
64117
  className: Tt.swiper,
64117
64118
  ref: u,
64118
- onRealIndexChange: C,
64119
+ onRealIndexChange: x,
64119
64120
  init: !1,
64120
- initialSlide: v,
64121
+ initialSlide: p,
64121
64122
  zoom: !0,
64122
64123
  modules: [sG, tf, rf, _W, eG],
64123
64124
  slidesPerView: 1,
64124
64125
  loop: !0,
64125
64126
  draggable: !0,
64126
64127
  grabCursor: !0,
64127
- onBeforeInit: (O) => {
64128
- O.params.navigation.nextEl = f.current, O.params.navigation.prevEl = d.current;
64128
+ onBeforeInit: (B) => {
64129
+ B.params.navigation.nextEl = f.current, B.params.navigation.prevEl = d.current;
64129
64130
  },
64130
- children: g.filter((O) => !O.hidden).map((O, B) => /* @__PURE__ */ b(au, { className: Tt.swiperSlide, children: O.type === "image" ? /* @__PURE__ */ b("div", { className: "swiper-zoom-container", children: /* @__PURE__ */ b("img", { src: O.src }) }) : O.render({ onHide: () => P(O.position) }) }, B))
64131
+ children: g.filter((B) => !B.hidden).map((B, M) => /* @__PURE__ */ b(au, { className: Tt.swiperSlide, children: B.type === "image" ? /* @__PURE__ */ b("div", { className: "swiper-zoom-container", children: /* @__PURE__ */ b("img", { src: B.src }) }) : B.render({ onHide: () => O(B.position) }) }, M))
64131
64132
  }
64132
64133
  ),
64133
- g[v].type !== "ad" && /* @__PURE__ */ b("div", { className: Tt.footer, children: t == null ? void 0 : t.render({ onHide: Ux }) })
64134
+ g[p] && g[p].type !== "ad" && /* @__PURE__ */ b("div", { className: Tt.footer, children: t == null ? void 0 : t.render({ onHide: Ux }) })
64134
64135
  ] }) }) });
64135
64136
  }, xK = ({
64136
64137
  ads: n = [],
@@ -65123,8 +65124,8 @@ async function z5e({
65123
65124
  renderAdSlot: i
65124
65125
  }) {
65125
65126
  var u, d;
65126
- const r = e.level_of_detail === "not_in_reach", a = await QU((u = e.author_details) == null ? void 0 : u.gid), s = ((d = e.marketplace_details) == null ? void 0 : d.outcome) === "item_reserved", o = FX(
65127
- e.feature_addons,
65127
+ const r = (e == null ? void 0 : e.level_of_detail) === "not_in_reach", a = await QU((u = e == null ? void 0 : e.author_details) == null ? void 0 : u.gid), s = ((d = e == null ? void 0 : e.marketplace_details) == null ? void 0 : d.outcome) === "item_reserved", o = FX(
65128
+ e == null ? void 0 : e.feature_addons,
65128
65129
  "premium_feature_highlight"
65129
65130
  ), l = o != null && o.feature_enabled_until ? EX(o.feature_enabled_until) : null;
65130
65131
  return /* @__PURE__ */ b(uV, { children: /* @__PURE__ */ j("div", { className: jn.root, children: [
@@ -65151,8 +65152,8 @@ async function z5e({
65151
65152
  /* @__PURE__ */ b(
65152
65153
  xK,
65153
65154
  {
65154
- images: e.images.map(
65155
- (f) => typeof f == "string" ? f : f.url || ""
65155
+ images: (e.images || []).map(
65156
+ (f) => typeof f == "string" ? f : (f == null ? void 0 : f.url) || ""
65156
65157
  ),
65157
65158
  stickerSlot: /* @__PURE__ */ b(Re, {})
65158
65159
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "3.6.0-development.8",
3
+ "version": "3.6.0-development.9",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",