{"version":3,"sources":["webpack:///./app/frontend/packs/common.js"],"names":["RailsUJS","start","window","Sentry","Turbo","session","drive","adapter","navigator","delegate","document","addEventListener","event","target","HTMLElement","getAttribute","formSubmissionStarted","this","formSubmissionFinished"],"mappings":"0FAAA,kDAIAA,IAASC,QAITC,OAAOC,OAASA,EAIhBC,MAAMC,QAAQC,OAAQ,EAGtB,IAAMC,EAAUH,MAAMI,UAAUC,SAASF,QAEzCG,SAASC,iBAAiB,8BAA8B,SAAUC,GAChE,IAAMC,EAASD,EAAMC,OACfA,aAAkBC,aAEyB,YAA7CD,EAAOE,aAAa,sBACtBR,EAAQS,sBAAsBC,SAIlCP,SAASC,iBAAiB,+BAA+B,SAAUC,GACjEL,EAAQW,uBAAuBD,U","file":"js/common-482dbf0c5c9dc8ece0f0.chunk.js","sourcesContent":["import '../stylesheets/common'\n\nimport RailsUJS from '@rails/ujs'\n\nRailsUJS.start()\n\nimport * as Sentry from '@sentry/browser'\n\nwindow.Sentry = Sentry\n\n// import { Turbo } from '@hotwired/turbo-rails'\nimport '@hotwired/turbo-rails'\nTurbo.session.drive = false\n\n// remove as soon as https://github.com/hotwired/turbo/issues/540 will be fixed\nconst adapter = Turbo.navigator.delegate.adapter\n\ndocument.addEventListener('turbo:before-fetch-request', function (event) {\n const target = event.target\n if (!(target instanceof HTMLElement)) return\n\n if (target.getAttribute('data-turbo-action') === 'advance') {\n adapter.formSubmissionStarted(this)\n }\n})\n\ndocument.addEventListener('turbo:before-fetch-response', function (event) {\n adapter.formSubmissionFinished(this)\n})\n"],"sourceRoot":""}