function hasFinitePoiX(element) {
  const xValue = Reflect.get(element, "x");
  return typeof xValue === "number" && Number.isFinite(xValue);
}
function getEffectivePoiX(element) {
  const cssVarX = Number.parseFloat(
    element.style.getPropertyValue("--obc-poi-data-x")
  );
  if (Number.isFinite(cssVarX)) {
    return cssVarX;
  }
  const inlineLeft = Number.parseFloat(element.style.left);
  if (Number.isFinite(inlineLeft)) {
    return inlineLeft;
  }
  if (typeof window !== "undefined") {
    const computedLeft = Number.parseFloat(
      window.getComputedStyle(element).left || ""
    );
    if (Number.isFinite(computedLeft)) {
      return computedLeft;
    }
  }
  if (hasFinitePoiX(element)) {
    return element.x;
  }
  return 0;
}
export {
  getEffectivePoiX
};
//# sourceMappingURL=poi-position.js.map
