Perhaps this is an XY problem, but here we go:
I want to make a location picker Clay component that lets the user select a point on a map. I found some great examples of this using Leaflet.js for the map and some other functions to get the mouse click location and spitting the coordinates into an input text field. (See the answer here: Multiple Leaflet Maps with location picker - Stack Overflow).
Essentially, I would like to be able to do within the component, but being minified and base-64 encoded by Clay, it doesn’t work.
I would like to still use Clay (hosting a settings page elsewhere is just asking for internet rot, which we’ve seen happen to too may watchapps), but also like to be able to get this map to interact. Would an embed work? Do I have to copy in all the source for leaflet.js manually into the module’s initialize function? I can’t iframe it, as the Clay JS won’t be able to grab the content of an iframe’s text input inner html.