import { getIntentsAccountTypeFromAddress as i } from "../chains/getIntentsAccountTypeFromAddress.js";
import { getIntentsAccountId as c } from "./getIntentsAccountId.js";
import { isAuroraRecipient as I } from "./isAuroraRecipient.js";
import { isAuroraSourceRefund as u } from "./isAuroraSourceRefund.js";
import { isAuroraToken as s } from "./isAuroraToken.js";
const T = ({
  walletAddress: n,
  sourceToken: t,
  targetToken: o,
  intentsAccountType: e,
  supportedChains: r
}) => I(o) || u({ sourceToken: t, targetToken: o }) ? "ORIGIN_CHAIN" : !!c({
  addressType: i(n) ?? e,
  walletAddress: n
}) && (t.isIntent || s(t) || !r.includes(t.blockchain)) ? "INTENTS" : "ORIGIN_CHAIN";
export {
  T as getQuoteRefundType
};
//# sourceMappingURL=getQuoteRefundType.js.map
