import { logger as n } from "../../../logger.js";
import { isTargetAmountChanged as f } from "./isTargetAmountChanged.js";
const a = (e, t, r) => {
  if (!e.quote || e.quote.type === "QUOTE_DEPOSIT_ANY_AMOUNT")
    return !1;
  if (f(e, t)) {
    const o = t.find(
      (u) => u?.key === "targetTokenAmount"
    );
    if (e.quote && o && e.quote.amountOut === o.value)
      return r && n.debug("[WIDGET] Quote fetched. Current content is:", e), !0;
  }
  return !1;
};
export {
  a as isAmountChangedFromQuote
};
//# sourceMappingURL=isAmountChangedFromQuote.js.map
