import { SHJDatasourceV2 as o } from "../index.mjs";
import { DataSourceUtils as e } from "../utils/utils.mjs";
const m = (a, i, t) => {
  try {
    const r = e.getVariableByName(
      a.source.variableId
    );
    if (!r) {
      t(e.noneData(a.id));
      return;
    }
    o.processData(
      a.source,
      r._value,
      a.id,
      i
    ).then((n) => {
      t(n);
    }).catch(() => {
      t(e.noneData(a.id));
    });
    return;
  } catch {
    t(e.noneData(a.id));
  }
};
export {
  m as parseVariableData
};
