{"version":3,"file":"js/application-b128200fcc0ea9d8102c.js","mappings":"4GAKAA,EAAAA,MAAAA,QACAA,EAAAA,MAAAA,QAaAA,EAAQ,MACRA,EAAQ,MAERA,EAAQ,O,UCtBRC,SAASC,iBAAiB,oBAAoB,WAC5CD,SAASE,iBAAiB,YAAYC,SAAQ,SAACC,EAASC,GACtDD,EAAQH,iBAAiB,SAAS,SAACK,GACjC,IAAMC,EAAkBP,SAASQ,eAAe,uBAAuBC,QAAQC,eAC/EJ,EAAMK,OAAOC,aAAa,MAAOL,c","sources":["webpack://wedding/./app/javascript/application.js","webpack://wedding/./app/javascript/rescue_guest_icon.js"],"sourcesContent":["// This file is automatically compiled by Webpack, along with any other files\n// present in this directory. You're encouraged to place your actual application logic in\n// a relevant structure within app/javascript and only use these pack files to reference\n// that code so it'll be compiled.\n\nrequire(\"@rails/ujs\").start()\nrequire(\"@rails/activestorage\").start()\n\n\n// Uncomment to copy all static images under ../images to the output folder and reference\n// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)\n// or the `imagePath` JavaScript helper below.\n//\n// const images = require.context('../images', true)\n// const imagePath = (name) => images(name, true)\n\nimport 'bootstrap'\nimport './stylesheets/application.scss'\n\nrequire(\"trix\")\nrequire(\"@rails/actiontext\")\n\nrequire('./rescue_guest_icon.js')\n","document.addEventListener('DOMContentLoaded', () => {\n document.querySelectorAll('img.icon').forEach((element, i) => {\n element.addEventListener('error', (event) => {\n const rescueImagePath = document.getElementById('js-global-variables').dataset.iconRescuePath\n event.target.setAttribute('src', rescueImagePath)\n })\n })\n})\n"],"names":["require","document","addEventListener","querySelectorAll","forEach","element","i","event","rescueImagePath","getElementById","dataset","iconRescuePath","target","setAttribute"],"sourceRoot":""}