How access JS function using Import Maps in Ruby On Rails 7?

I’m newbie to JS modules and Import Map, now I’m using Ruby on Rails 7 and I couldn’t find a way to get this working:

Js Module (proposals.js):

function openProposalMirror() ...

application.js

import * as Proposal from "./proposals.js"

On the view:

onclick="Proposal.openProposalMirror()"

error: Uncaught ReferenceError: Proposal is not defined

How could I accesse openProposalMirror() function on the view?