import { SHJDatasourceV2 as i } from "../index.mjs";
import { DataSourceUtils as n } from "../utils/utils.mjs";
const f = (a, t, c) => new Promise(function(r, m) {
  const o = new URLSearchParams(window.location.search), e = Object.fromEntries(o.entries());
  if (Object.keys(e).length > 0) {
    i.processData(a.source.filter, e, a.source.mapping, t, a.source.dynamicMapping, c, a.source.isUserdata).then((s) => {
      r(s);
    }).catch(() => {
      r(n.noneData(t));
    });
    return;
  }
  r(n.noneData(t));
});
export {
  f as parseUrlData
};
