var g = Object.defineProperty;
var n = Object.getOwnPropertySymbols;
var u = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
var p = (e, s, t) => s in e ? g(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t, a = (e, s) => {
  for (var t in s || (s = {}))
    u.call(s, t) && p(e, t, s[t]);
  if (n)
    for (var t of n(s))
      P.call(s, t) && p(e, t, s[t]);
  return e;
};
import { jsx as o } from "react/jsx-runtime";
import "./style.less.mjs";
const h = {
  stroke: "rgba(255, 77, 79, 0.25)",
  strokeWidth: 1
}, k = (e) => {
  const {
    style: s,
    passes: t,
    scale: l,
    activePassId: y,
    passStyle: m,
    activePassStyle: d
  } = e;
  return /* @__PURE__ */ o("svg", {
    className: "pass-map",
    style: s,
    children: t.map((r, v) => {
      var c;
      const S = r.id === y ? d : h;
      return /* @__PURE__ */ o("g", {
        children: /* @__PURE__ */ o("polygon", {
          points: (c = r.points) == null ? void 0 : c.map((i) => `${i.x * l} ${i.y * l}`).join(","),
          style: a(a(a({}, m), r.passStyle), S)
        })
      }, v);
    })
  });
};
export {
  k as PassMap
};
