@forgebuild/sidon-booking-widget 1.2.0 → 1.2.1

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.
@@ -2651,8 +2651,7 @@ function Ri(e, t) {
2651
2651
  let t = {};
2652
2652
  for (let e of u()) e.berthId && (t[e.berthId] = {
2653
2653
  price: e.pricePerNight,
2654
- status: e.status,
2655
- rotation: e.rotation
2654
+ status: e.status
2656
2655
  });
2657
2656
  try {
2658
2657
  let n = new DOMParser().parseFromString(e, "image/svg+xml");
@@ -2664,15 +2663,7 @@ function Ri(e, t) {
2664
2663
  let a = D[i] ?? D.occupied, o = e.querySelector("rect:not([data-role]), circle");
2665
2664
  o && (o.setAttribute("fill", a.fill), o.setAttribute("stroke", a.stroke));
2666
2665
  let s = e.querySelector("[data-role=\"entrance\"]");
2667
- if (s && s.setAttribute("fill", a.stroke), r?.rotation != null && o) {
2668
- let t = o, n = 0, i = 0;
2669
- if (t.tagName.toLowerCase() === "rect") {
2670
- let e = parseFloat(t.getAttribute("x") || "0"), r = parseFloat(t.getAttribute("y") || "0"), a = parseFloat(t.getAttribute("width") || "0"), o = parseFloat(t.getAttribute("height") || "0");
2671
- n = e + a / 2, i = r + o / 2;
2672
- } else t.tagName.toLowerCase() === "circle" && (n = parseFloat(t.getAttribute("cx") || "0"), i = parseFloat(t.getAttribute("cy") || "0"));
2673
- let a = e.getAttribute("transform") || "";
2674
- e.setAttribute("transform", `${a} rotate(${r.rotation} ${n} ${i})`.trim());
2675
- }
2666
+ s && s.setAttribute("fill", a.stroke);
2676
2667
  });
2677
2668
  let r = n.createElementNS("http://www.w3.org/2000/svg", "style");
2678
2669
  return r.textContent = `
@@ -4656,8 +4656,7 @@ function mo(e, t) {
4656
4656
  let t = {};
4657
4657
  for (let e of u()) e.berthId && (t[e.berthId] = {
4658
4658
  price: e.pricePerNight,
4659
- status: e.status,
4660
- rotation: e.rotation
4659
+ status: e.status
4661
4660
  });
4662
4661
  try {
4663
4662
  let n = new DOMParser().parseFromString(e, "image/svg+xml");
@@ -4669,15 +4668,7 @@ function mo(e, t) {
4669
4668
  let a = ie[i] ?? ie.occupied, o = e.querySelector("rect:not([data-role]), circle");
4670
4669
  o && (o.setAttribute("fill", a.fill), o.setAttribute("stroke", a.stroke));
4671
4670
  let s = e.querySelector("[data-role=\"entrance\"]");
4672
- if (s && s.setAttribute("fill", a.stroke), r?.rotation != null && o) {
4673
- let t = o, n = 0, i = 0;
4674
- if (t.tagName.toLowerCase() === "rect") {
4675
- let e = parseFloat(t.getAttribute("x") || "0"), r = parseFloat(t.getAttribute("y") || "0"), a = parseFloat(t.getAttribute("width") || "0"), o = parseFloat(t.getAttribute("height") || "0");
4676
- n = e + a / 2, i = r + o / 2;
4677
- } else t.tagName.toLowerCase() === "circle" && (n = parseFloat(t.getAttribute("cx") || "0"), i = parseFloat(t.getAttribute("cy") || "0"));
4678
- let a = e.getAttribute("transform") || "";
4679
- e.setAttribute("transform", `${a} rotate(${r.rotation} ${n} ${i})`.trim());
4680
- }
4671
+ s && s.setAttribute("fill", a.stroke);
4681
4672
  });
4682
4673
  let r = n.createElementNS("http://www.w3.org/2000/svg", "style");
4683
4674
  return r.textContent = `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgebuild/sidon-booking-widget",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Berth booking and berth map custom elements for marinas on OTA, plus an Astro forwarder route and server client.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",