@goodhood-web/nebenan-base 4.13.0-development.10 → 4.13.0-development.12

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 +1 -1
  2. package/index.mjs +19 -18
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -79097,53 +79097,54 @@ const lse = ({
79097
79097
  }) => {
79098
79098
  const [o, s] = _(
79099
79099
  void 0
79100
- ), [l, c] = _(), [u, f] = _([]), d = ci(), h = (b) => {
79101
- const k = u.find(({ value: y }) => y === b);
79102
- k && (d("click", {
79100
+ ), [l, c] = _(), [u, f] = _([]), d = ci(), h = (k) => {
79101
+ const y = u.find(({ value: S }) => S === k);
79102
+ y && (y.value && d("click", {
79103
79103
  main: [
79104
- new dr({ name: "marketplace_post_payment_selection", value: k.slug })
79104
+ new dr({ name: "marketplace_post_payment_selection", value: y.slug })
79105
79105
  ]
79106
- }), s(k), i == null || i({ id: k.id, pill: k.pill, value: k.value }), l && v());
79106
+ }), s(y), i == null || i({ id: y.id, pill: y.pill, value: y.value }), l && v());
79107
79107
  };
79108
79108
  ee(() => {
79109
79109
  m();
79110
79110
  }, []);
79111
79111
  const m = async () => {
79112
- const b = await wS(a);
79113
- if (!b) return;
79114
- const k = Rle(
79115
- b,
79112
+ const k = await wS(a);
79113
+ if (!k) return;
79114
+ const y = Rle(
79115
+ k,
79116
79116
  n,
79117
79117
  a
79118
- ), y = k.find(({ isDefault: S }) => S);
79119
- y && (s(y), !n && (y != null && y.info) && c(y == null ? void 0 : y.info)), f(k);
79118
+ ), S = y.find(({ isDefault: C }) => C);
79119
+ S && (s(S), !n && (S != null && S.info) && c(S == null ? void 0 : S.info)), f(y);
79120
79120
  }, v = () => {
79121
79121
  c(void 0), r == null || r();
79122
- }, g = u.map(({ info: b }) => b).filter(Boolean);
79122
+ }, g = u.map(({ info: k }) => k).filter(Boolean), b = u.filter(({ value: k }) => k);
79123
79123
  return /* @__PURE__ */ R(Se, { children: [
79124
79124
  !e && /* @__PURE__ */ p(
79125
79125
  ik,
79126
79126
  {
79127
79127
  value: t.value || (o == null ? void 0 : o.value),
79128
- onChange: (b) => h(b.target.value),
79128
+ onChange: (k) => h(k),
79129
79129
  className: D0.root,
79130
- children: u.map(({ info: b, ...k }) => /* @__PURE__ */ p(
79130
+ allowToggleOff: !0,
79131
+ children: b.map(({ info: k, ...y }) => /* @__PURE__ */ p(
79131
79132
  zT,
79132
79133
  {
79133
79134
  size: "small",
79134
- infoIcon: b && /* @__PURE__ */ p(
79135
+ infoIcon: k && /* @__PURE__ */ p(
79135
79136
  Te,
79136
79137
  {
79137
79138
  icon: "info",
79138
79139
  size: "medium",
79139
79140
  variant: "none",
79140
79141
  defaultSize: !0,
79141
- onClick: () => b && c({ ...b })
79142
+ onClick: () => k && c({ ...k })
79142
79143
  }
79143
79144
  ),
79144
- ...k
79145
+ ...y
79145
79146
  },
79146
- k.id
79147
+ y.id
79147
79148
  ))
79148
79149
  }
79149
79150
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "4.13.0-development.10",
3
+ "version": "4.13.0-development.12",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",