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AGAV,M","sources":["webpack://airportcafes//workspace/app/packs/channels|sync|/_channel\\.js$/","webpack://airportcafes//workspace/app/packs/controllers|sync|/_controller\\.ts$/","webpack://airportcafes//workspace/app/packs/images|sync|/^\\.\\/.*$/","webpack://airportcafes/./app/packs/channels/index.js","webpack://airportcafes/./app/packs/controllers/airport-form_controller.ts","webpack://airportcafes/./app/packs/controllers/collapsible_controller.ts","webpack://airportcafes/./app/packs/controllers/facility_controller.ts","webpack://airportcafes/./app/packs/controllers/flash_controller.ts","webpack://airportcafes/./app/packs/controllers/form_controller.ts","webpack://airportcafes/./app/packs/controllers/map_controller.ts","webpack://airportcafes/./app/packs/controllers/support/callable.ts","webpack://airportcafes/./app/packs/controllers/materialize_controller.ts","webpack://airportcafes/./app/packs/controllers/modal_controller.ts","webpack://airportcafes/./app/packs/controllers/scroll_controller.ts","webpack://airportcafes/./app/packs/controllers/sidenav_controller.ts","webpack://airportcafes/./app/packs/controllers/tabs_controller.ts","webpack://airportcafes/./app/packs/controllers/index.js","webpack://airportcafes/./app/packs/entrypoints/application.ts.erb"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 9391;\nmodule.exports = webpackEmptyContext;","var map = {\n\t\"./airport-form_controller.ts\": 4585,\n\t\"./collapsible_controller.ts\": 4767,\n\t\"./facility_controller.ts\": 3292,\n\t\"./flash_controller.ts\": 8520,\n\t\"./form_controller.ts\": 9934,\n\t\"./map_controller.ts\": 7390,\n\t\"./materialize_controller.ts\": 2271,\n\t\"./modal_controller.ts\": 6698,\n\t\"./scroll_controller.ts\": 3275,\n\t\"./sidenav_controller.ts\": 937,\n\t\"./tabs_controller.ts\": 4195,\n\t\"controllers/airport-form_controller.ts\": 4585,\n\t\"controllers/collapsible_controller.ts\": 4767,\n\t\"controllers/facility_controller.ts\": 3292,\n\t\"controllers/flash_controller.ts\": 8520,\n\t\"controllers/form_controller.ts\": 9934,\n\t\"controllers/map_controller.ts\": 7390,\n\t\"controllers/materialize_controller.ts\": 2271,\n\t\"controllers/modal_controller.ts\": 6698,\n\t\"controllers/scroll_controller.ts\": 3275,\n\t\"controllers/sidenav_controller.ts\": 937,\n\t\"controllers/tabs_controller.ts\": 4195\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 5080;","var map = {\n\t\"./facebook_logo.png\": 1370,\n\t\"./g-logo.png\": 8067,\n\t\"./hero_1.png\": 2786,\n\t\"./hero_2.png\": 6079,\n\t\"./hero_3.png\": 1790,\n\t\"./hero_4.png\": 1535,\n\t\"./hero_5.png\": 5309,\n\t\"./hero_6.png\": 4224,\n\t\"./hero_p_1.png\": 7541,\n\t\"./hero_p_2.png\": 62,\n\t\"./hero_p_3.png\": 3501,\n\t\"./hero_p_4.png\": 9924,\n\t\"./twitter_logo.png\": 3350\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 8999;","// Load all the channels within this directory and all subdirectories.\n// Channel files must be named *_channel.js.\n\nconst channels = require.context('.', true, /_channel\\.js$/)\nchannels.keys().forEach(channels)\n","import {Controller} from \"@hotwired/stimulus\"\n\nexport default class extends Controller{\n static targets = [\"runways\", \"runwayTemplate\"]\n\n add_runway(){\n // @ts-ignore\n const current_runway_count = parseInt(this.runwaysTarget.dataset.runways);\n\n // @ts-ignore\n const html = this.runwayTemplateTarget.content.cloneNode(true);\n html.querySelectorAll('[id=\"runway_$$\"]')[0].setAttribute('id', `runway_${current_runway_count}`)\n html.querySelectorAll('button')[0].setAttribute('data-runway', `${current_runway_count}`)\n const runway_input_div = html.querySelectorAll('[id=\"runway___\"]')[0]\n runway_input_div.setAttribute('id', `runway_${current_runway_count}`)\n runway_input_div.setAttribute('name', `runway_${current_runway_count}`)\n const runway_label_div = html.querySelectorAll('[for=\"runway___\"]')[0]\n runway_label_div.setAttribute('for', `runway_${current_runway_count}`)\n\n const runway_heading_input_div = html.querySelectorAll('[id=\"runway_number___\"]')[0]\n runway_heading_input_div.setAttribute('id', `runway_number_${current_runway_count}`)\n runway_heading_input_div.setAttribute('name', `runway_number_${current_runway_count}`)\n const runway_heading_label_div = html.querySelectorAll('[for=\"runway_number___\"]')[0]\n runway_heading_label_div.setAttribute('for', `runway_number_${current_runway_count}`)\n\n // @ts-ignore\n this.runwaysTarget.append(html);\n // @ts-ignore\n this.runwaysTarget.dataset.runways = current_runway_count + 1;\n }\n\n remove_runway(event){\n let elem = event.target;\n if(elem.tagName == 'I'){\n elem = elem.parentElement;\n }\n const runway = elem.dataset.runway;\n document.getElementById(`runway_${runway}`).remove();\n }\n}","import {Controller} from \"@hotwired/stimulus\"\nexport default class extends Controller{\n static targets = [\"content\"]\n collapsed: boolean = true;\n\n toggle(){\n if(this.collapsed){\n this.collapsed = false\n // @ts-ignore\n this.contentTarget.classList.remove('max-h-0')\n // @ts-ignore\n this.contentTarget.classList.add('max-h-[1500px]')\n }\n else {\n this.collapsed = true\n // @ts-ignore\n this.contentTarget.classList.add('max-h-0')\n // @ts-ignore\n this.contentTarget.classList.remove('max-h-[1500px]')\n }\n }\n\n\n}","import {Controller} from \"@hotwired/stimulus\"\nexport default class extends Controller{\n static targets = [\"ratingSubmit\"]\n\n update_rating(){\n // @ts-ignore\n this.ratingSubmitTarget.click();\n }\n\n}","import {Controller} from \"@hotwired/stimulus\"\n\nexport default class extends Controller{\n static targets = [\"flash\"]\n\n connect() {\n // @ts-ignore\n if(this.hasFlashTarget){\n this.flash();\n }\n }\n\n flash(){\n const self = this;\n // @ts-ignore\n this.flashTargets.forEach(function(elem){\n let duration = elem.dataset.duration;\n if(duration === undefined){\n duration = 5000;\n } else {\n duration = parseInt(duration)\n }\n elem.classList.remove('hidden')\n setTimeout( function(){\n self.remove_flash(elem)\n }, duration)\n })\n }\n\n remove_flash(elem){\n elem.remove();\n }\n}","import {Controller} from \"@hotwired/stimulus\"\nimport {Turbo} from \"@hotwired/turbo-rails\";\nexport default class extends Controller{\n static targets = [\"submit\"]\n\n submit(){\n // @ts-ignore\n this.submitTarget.click();\n }\n\n visit(event: PointerEvent){\n let target: HTMLElement = event.target as HTMLElement;\n if(target.nodeName == 'TD'){\n target = target.parentElement;\n }\n let url = target.dataset.href;\n\n Turbo.visit(url);\n }\n\n}","import {Controller} from \"@hotwired/stimulus\"\ndeclare var google: any;\nexport default class extends Controller{\n static targets = [\"map\"]\n\n connect(){\n if (typeof (google) != \"undefined\"){\n this.initializeMap()\n }\n\n }\n\n initializeMap() {\n\n // @ts-ignore\n const elem = this.mapTarget;\n const self = this;\n\n if(google.maps === undefined || elem === undefined){\n setTimeout(function(){\n self.initializeMap();\n }, 500);\n return;\n }\n\n\n const lat = parseFloat(elem.dataset.lat);\n const lon = parseFloat(elem.dataset.lon);\n const pos = {lat: lat, lng: lon}\n\n\n\n let map = new google.maps.Map(elem, {\n center: pos,\n zoom: 14,\n mapTypeId: 'hybrid',\n streetViewControl: false\n })\n let airport = new google.maps.Marker({\n position: pos,\n map: map\n })\n }\n\n\n\n\n}","export const callable_functions: any = {\n\n};","import {Controller} from \"@hotwired/stimulus\"\nimport {callable_functions} from \"./support/callable\";\n\nexport default class extends Controller{\n static targets = [\"select\", \"dropdown\", \"collapsible\", \"tooltip\"]\n\n connect() {\n // @ts-ignore\n if(this.hasSelectTarget){\n this.select();\n }\n\n // @ts-ignore\n if(this.hasDropdownTarget){\n this.dropdown();\n }\n\n // @ts-ignore\n if(this.hasCollapsibleTarget){\n this.collapsible();\n }\n\n // @ts-ignore\n if(this.hasTooltipTarget){\n this.tooltip();\n }\n\n M.updateTextFields();\n }\n\n tooltip(){\n // @ts-ignore\n this.tooltipTargets.forEach(function(elem){\n // @ts-ignore\n M.Tooltip.init(elem, {});\n })\n }\n\n collapsible(){\n // @ts-ignore\n this.collapsibleTargets.forEach(function(elem){\n // @ts-ignore\n M.Collapsible.init(elem, {});\n })\n }\n\n dropdown(){\n // @ts-ignore\n this.dropdownTargets.forEach(function(elem){\n // @ts-ignore\n M.Dropdown.init(elem, {\n 'coverTrigger': false,\n 'constrainWidth': false\n });\n })\n }\n\n select(){\n // @ts-ignore\n this.selectTargets.forEach(function(elem){\n const onChange = elem.dataset.onChange;\n // @ts-ignore\n M.FormSelect.init(elem, {});\n if (onChange !== undefined){\n elem.onchange = function(){\n callable_functions[onChange](this);\n }\n callable_functions[onChange](this);\n }\n });\n }\n}","import {Controller} from \"@hotwired/stimulus\"\n\nexport default class extends Controller{\n static targets = [\"modal\", \"background\"]\n\n open(){\n // @ts-ignore\n const modal = this.modalTarget;\n // @ts-ignore\n const background = this.backgroundTarget;\n\n modal.style.display = 'block';\n background.style.display = 'block'\n background.style.opacity = '1';\n\n }\n\n close(){\n // @ts-ignore\n const modal = this.modalTarget;\n // @ts-ignore\n const background = this.backgroundTarget;\n\n modal.style.display = '';\n background.style.display = ''\n background.style.opacity = '';\n }\n\n}","import {Controller} from \"@hotwired/stimulus\"\nexport default class extends Controller{\n\n scroll(event: PointerEvent){\n // @ts-ignore\n const target_id = event.target.dataset.target;\n let e = document.getElementById(target_id);\n e.scrollIntoView({\n block: 'start',\n behavior: 'smooth',\n inline: 'start'\n });\n }\n\n}","import {Controller} from \"@hotwired/stimulus\"\n\nexport default class extends Controller{\n static targets = [\"sidenav\", \"background\"]\n\n open(){\n // @ts-ignore\n const sidenav = this.sidenavTarget;\n // @ts-ignore\n const background = this.backgroundTarget;\n\n sidenav.style.transform = 'translateX(0%)';\n background.style.display = 'block'\n background.style.opacity = '1';\n\n }\n\n close(){\n // @ts-ignore\n const sidenav = this.sidenavTarget;\n // @ts-ignore\n const background = this.backgroundTarget;\n\n sidenav.style.transform = '';\n background.style.display = ''\n background.style.opacity = '';\n }\n\n}","import {Controller} from \"@hotwired/stimulus\"\nexport default class extends Controller{\n static targets = [\"indicator\", \"tabHeader\", \"tab\", \"tabsContainer\"]\n active: Number = 0;\n\n connect(){\n const self = this;\n\n // @ts-ignore\n this.updateTabs(self, this.indicatorTarget.dataset.active)\n\n // @ts-ignore\n if(self.hasTabTarget){\n // @ts-ignore\n self.tabTargets.foreach((tab) => {\n\n });\n }\n }\n\n change(event){\n const self = this;\n const event_target = event.currentTarget;\n // @ts-ignore\n self.tabHeaderTargets.forEach((header, index) => {\n if(header === event_target){\n if(self.active !== index){\n self.updateTabs(self, index);\n }\n }\n });\n }\n\n updateTabs(self, index){\n self.active = index;\n if(index === 0){\n self.indicatorTarget.removeAttribute('style');\n self.tabsContainerTarget.removeAttribute('style');\n } else {\n self.indicatorTarget.setAttribute('style', `--tw-translate-x: ${index}00%`);\n self.tabsContainerTarget.setAttribute('style', `--tw-translate-x: -${index}00%`);\n }\n const height = self.tabTargets[index].clientHeight;\n self.tabsContainerTarget.style.height = `${height}px`;\n }\n\n}","// Load all the controllers within this directory and all subdirectories. \n// Controller files must be named *_controller.js.\n\nimport { Application } from \"@hotwired/stimulus\"\nimport { definitionsFromContext } from \"@hotwired/stimulus-webpack-helpers\"\n\nconst application = Application.start()\nconst context = require.context(\"controllers\", true, /_controller\\.ts$/)\napplication.load(definitionsFromContext(context))\n","// 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\n\nimport \"controllers\"\nimport {Turbo} from \"@hotwired/turbo-rails\";\nimport '@materializecss/materialize/dist/js/materialize'\nimport {BrowserTracing} from \"@sentry/tracing\";\nimport * as Sentry from '@sentry/browser'\nrequire(\"@rails/activestorage\").start();\nrequire(\"../channels\");\n\n// @ts-ignore\nconst images = require.context(\"../images\", true);\nexport const imagePath = (name) => images(name, true);\n\n// @ts-ignore\nwindow.dispatchMapsEvent = function (...args) {\n const event = document.createEvent(\"Events\")\n event.initEvent(\"google-maps-callback\", true, true)\n // @ts-ignore\n event.args = args\n window.dispatchEvent(event)\n}\n\nwindow.addEventListener(\"trix-file-accept\", function(event) {\n event.preventDefault()\n alert(\"File attachment not supported!\")\n})\n\nTurbo.start();\nrequire(\"trix\")\nrequire(\"@rails/actiontext\")\n\nconst sentry_run = '1';\nconst sentry_dsn = 'https://abbb093001714c3ea6a77964bb6f946d@o1154850.ingest.sentry.io/6469518'\nlet environment = 'master'\nif(environment == 'master'){\n environment = 'production'\n}\nif(environment != 'production' && environment != 'development' ){\n environment = `review-${environment}`;\n}\nconst release = 'a48b908b'\nconst trace_rate = environment == 'development' ? 0.1 : 0.5\n\nif(sentry_run == '1'){\n Sentry.init({\n dsn: sentry_dsn,\n release: release,\n environment: environment,\n\n // Alternatively, use `process.env.npm_package_version` for a dynamic release version\n // if your build tool supports it.\n integrations: [\n new BrowserTracing(),\n ],\n\n // Set tracesSampleRate to 1.0 to capture 100%\n // of transactions for performance monitoring.\n // We recommend adjusting this value in production\n tracesSampler: samplingContext => {\n if (samplingContext.parentSampled !== undefined) {\n return samplingContext.parentSampled\n }\n if (samplingContext.transactionContext.name == '/health') {\n // Drop this transaction, by setting its sample rate to 0%\n return 0;\n } else {\n // Default sample rate for all others (replaces tracesSampleRate)\n return trace_rate;\n }\n }\n });\n}"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","map","webpackContext","webpackContextResolve","__webpack_require__","o","Object","channels","require","forEach","current_runway_count","parseInt","this","runwaysTarget","dataset","runways","html","runwayTemplateTarget","content","cloneNode","querySelectorAll","setAttribute","runway_input_div","runway_heading_input_div","append","event","elem","target","tagName","parentElement","runway","document","getElementById","remove","Controller","collapsed","contentTarget","classList","add","ratingSubmitTarget","click","hasFlashTarget","flash","self","flashTargets","duration","undefined","setTimeout","remove_flash","submitTarget","nodeName","url","href","Turbo","google","initializeMap","mapTarget","maps","pos","lat","parseFloat","lng","lon","Map","center","zoom","mapTypeId","streetViewControl","Marker","position","callable_functions","hasSelectTarget","select","hasDropdownTarget","dropdown","hasCollapsibleTarget","collapsible","hasTooltipTarget","tooltip","M","updateTextFields","tooltipTargets","Tooltip","init","collapsibleTargets","Collapsible","dropdownTargets","Dropdown","selectTargets","onChange","FormSelect","onchange","modal","modalTarget","background","backgroundTarget","style","display","opacity","target_id","scrollIntoView","block","behavior","inline","sidenav","sidenavTarget","transform","updateTabs","indicatorTarget","active","hasTabTarget","tabTargets","foreach","tab","event_target","currentTarget","tabHeaderTargets","header","index","removeAttribute","tabsContainerTarget","height","clientHeight","application","Application","context","load","definitionsFromContext","window","dispatchMapsEvent","createEvent","initEvent","args","dispatchEvent","addEventListener","preventDefault","alert","environment","trace_rate","Sentry","dsn","release","integrations","BrowserTracing","tracesSampler","samplingContext","parentSampled","transactionContext","name"],"sourceRoot":""}