import { RegionDataItemHelper as l } from "./accelbyte-widgets388.mjs";
import { UrlUtils as s } from "./accelbyte-widgets90.mjs";
class n {
  static extractActiveRegionData(e) {
    const a = new Date();
    return (e.regionData || []).filter((r) => l.isPurchasable(r, a));
  }
  static getFilteredImageUrlByTag(e, a) {
    if (!e)
      return;
    const r = e.find((i) => i.as === a && !!s.isValidUrl(i.imageUrl));
    return r ? r.imageUrl : void 0;
  }
}
n.isItemInSubscription = (t) => Array.isArray(t.features) && t.features.length > 0;
export {
  n as ItemHelper
};
