@conboai/storybook.components 0.5.28 → 0.5.29

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.
@@ -80141,48 +80141,48 @@ const uhe = sr(
80141
80141
  showOnlyPoints: c = !1,
80142
80142
  scaleNumber: u
80143
80143
  }) => {
80144
- var S, w;
80144
+ var S, w, E;
80145
80145
  const [d, h] = Ne(
80146
80146
  (s == null ? void 0 : s.coordinates) || []
80147
80147
  ), f = ir(null), b = ss.isNumber(e) ? e : 0, p = In(() => {
80148
80148
  if (f.current) {
80149
- const E = f.current.getPath().getArray().map(
80150
- (_) => new google.maps.LatLng(_.lat(), _.lng())
80151
- ), I = Gd(E);
80152
- I.length && (s != null && s.id) && (h(I), i == null || i(I, s == null ? void 0 : s.id, !0));
80149
+ const I = f.current.getPath().getArray().map(
80150
+ (F) => new google.maps.LatLng(F.lat(), F.lng())
80151
+ ), _ = Gd(I);
80152
+ _.length && (s != null && s.id) && (h(_), i == null || i(_, s == null ? void 0 : s.id, !0));
80153
80153
  }
80154
80154
  }, [s, i]), g = In(
80155
- (E) => {
80156
- google.maps.event.clearListeners(E.getPath(), "set_at"), google.maps.event.clearListeners(E.getPath(), "insert_at"), E.getPath().addListener("set_at", p), E.getPath().addListener("insert_at", p);
80155
+ (I) => {
80156
+ google.maps.event.clearListeners(I.getPath(), "set_at"), google.maps.event.clearListeners(I.getPath(), "insert_at"), I.getPath().addListener("set_at", p), I.getPath().addListener("insert_at", p);
80157
80157
  },
80158
80158
  [p]
80159
80159
  );
80160
80160
  Ie(() => {
80161
80161
  f != null && f.current && g(f == null ? void 0 : f.current);
80162
80162
  }, [d, g]);
80163
- const m = (E) => {
80164
- const I = d.filter(
80165
- ({ lat: _, lng: F }) => {
80166
- var D;
80167
- return _ !== ((D = E.latLng) == null ? void 0 : D.lat()) || F !== E.latLng.lng();
80163
+ const m = (I) => {
80164
+ const _ = d.filter(
80165
+ ({ lat: F, lng: D }) => {
80166
+ var A;
80167
+ return F !== ((A = I.latLng) == null ? void 0 : A.lat()) || D !== I.latLng.lng();
80168
80168
  }
80169
80169
  );
80170
- h(I), s != null && s.id && (i == null || i(I, s == null ? void 0 : s.id, !0));
80171
- }, v = (E) => {
80172
- f.current = E, g(E);
80170
+ h(_), s != null && s.id && (i == null || i(_, s == null ? void 0 : s.id, !0));
80171
+ }, v = (I) => {
80172
+ f.current = I, g(I);
80173
80173
  };
80174
80174
  Ie(() => {
80175
80175
  h((s == null ? void 0 : s.coordinates) || []);
80176
80176
  }, [s]);
80177
80177
  const y = b - 13 || -1, C = y < 0 ? 0 : y;
80178
80178
  return /* @__PURE__ */ V.jsxs(V.Fragment, { children: [
80179
- l && (d == null ? void 0 : d.map(({ lat: E, lng: I }, _) => /* @__PURE__ */ V.jsx(
80179
+ l && (d == null ? void 0 : d.map(({ lat: I, lng: _ }, F) => /* @__PURE__ */ V.jsx(
80180
80180
  b5,
80181
80181
  {
80182
- coordinates: { lat: E, lng: I },
80183
- index: _ + 1
80182
+ coordinates: { lat: I, lng: _ },
80183
+ index: F + 1
80184
80184
  },
80185
- E + I
80185
+ I + _
80186
80186
  ))),
80187
80187
  t && (d == null ? void 0 : d.length) > 0 && /* @__PURE__ */ V.jsx(
80188
80188
  R4,
@@ -80198,7 +80198,8 @@ const uhe = sr(
80198
80198
  path: d,
80199
80199
  options: {
80200
80200
  ...Wp,
80201
- strokeColor: c ? "transparent" : "#2196F3",
80201
+ ...s == null ? void 0 : s.styles,
80202
+ strokeColor: c ? "transparent" : ((w = s == null ? void 0 : s.styles) == null ? void 0 : w.strokeColor) || "#2196F3",
80202
80203
  visible: !0,
80203
80204
  editable: !1,
80204
80205
  draggable: !0,
@@ -80212,7 +80213,7 @@ const uhe = sr(
80212
80213
  R4,
80213
80214
  {
80214
80215
  position: d[d.length - 1],
80215
- icon: y9(C, (w = s == null ? void 0 : s.styles) == null ? void 0 : w.fillColor, u),
80216
+ icon: y9(C, (E = s == null ? void 0 : s.styles) == null ? void 0 : E.fillColor, u),
80216
80217
  label: o
80217
80218
  }
80218
80219
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conboai/storybook.components",
3
- "version": "0.5.28",
3
+ "version": "0.5.29",
4
4
  "main": "dist/storybook.components.mjs",
5
5
  "types": "dist/build/index.d.ts",
6
6
  "files": [