import{state}from"./store";import{isInRange}from"../../functions/util";export const getValidAdHocAmount=t=>{const e=state[t],n=(e.amounts||[]).filter((t=>isInRange(t,e.selectedPrice)));return n.includes(null==e?void 0:e.ad_hoc_amount)?null==e?void 0:e.ad_hoc_amount:n[0]};export const getInRangeAmounts=t=>{const e=state[t];return(e.amounts||[]).filter((t=>isInRange(t,e.selectedPrice)))};