{ "version": 3, "sources": ["../../javascript/entrypoints/image-hover-zoom.js"], "sourcesContent": ["export function zoomImageOnHover(event) {\n const zoomer = event.currentTarget\n const offsetX = event.offsetX ? event.offsetX : event.touches[0].pageX\n const offsetY = event.offsetY ? event.offsetY : event.touches[0].pageX\n const x = (offsetX / zoomer.offsetWidth) * 100\n const y = (offsetY / zoomer.offsetHeight) * 100\n zoomer.style.backgroundPosition = x + \"% \" + y + \"%\"\n}\n"], "mappings": "AAAO,SAASA,EAAiBC,EAAO,CACtC,IAAMC,EAASD,EAAM,cACfE,EAAUF,EAAM,QAAUA,EAAM,QAAUA,EAAM,QAAQ,GAAG,MAC3DG,EAAUH,EAAM,QAAUA,EAAM,QAAUA,EAAM,QAAQ,GAAG,MAC3DI,EAAKF,EAAUD,EAAO,YAAe,IACrCI,EAAKF,EAAUF,EAAO,aAAgB,IAC5CA,EAAO,MAAM,mBAAqBG,EAAI,KAAOC,EAAI,GACnD", "names": ["zoomImageOnHover", "event", "zoomer", "offsetX", "offsetY", "x", "y"] }