import { SHJDatasourceV2 as s } from "../index.mjs";
import { DataSourceUtils as t } from "../utils/utils.mjs";
const u = (a, e, c) => new Promise(function(r, p) {
  if (a.source.static !== void 0) {
    const i = t.getVariableData(), n = t.replaceObjectVariables(a.source.static, i);
    s.processData(a.source.filter, n, a.source.mapping, e, a.source.dynamicMapping, c, a.source.isUserdata).then((o) => {
      r(o);
    }).catch(() => {
      r(t.noneData(e));
    });
    return;
  }
  r(t.noneData(e));
});
export {
  u as parseStaticData
};
