{"version":3,"sources":["webpack://robot-garage/./app/packs/entrypoints/application.js"],"names":["console","log","document","addEventListener","$","length","ajax","type","dataType","url","attr","success","responseData","textStatus","jqXHR","html","error","errorThrown","on","alert_ids","Cookies","this","undefined","concat","expires"],"mappings":"4vDAoBAA,QAAQC,IAAI,8BAEZC,SAASC,iBAAiB,oBAAoB,WACzCC,EAAE,oBAAoBC,OAAS,GAChCD,EAAEE,KAAK,CACLC,KAAM,MACNC,SAAU,OACVC,IAAK,yDAA2DL,EAAE,oBAAoBM,KAAK,WAC3FC,QAAS,SAAUC,EAAcC,EAAYC,GACzCd,QAAQC,IAAI,MAGZG,EAAE,oBAAoBW,KAAKH,EAAaG,OAE5CC,MAAO,SAAUJ,EAAcC,EAAYI,GACvCjB,QAAQC,IAAI,kBAKpBG,EAAE,uBAAuBc,GAAG,mBAAmB,WAE7C,IAAIC,EAAYC,QAAY,wBAC5BpB,QAAQC,IAAIG,EAAEiB,MAAMX,KAAK,YACzBV,QAAQC,IAAIkB,GAEVA,OADeG,IAAdH,EACWf,EAAEiB,MAAMX,KAAK,YAEzBS,EAAYA,EAAUI,OAAO,MACPA,OAAOnB,EAAEiB,MAAMX,KAAK,YAE5CV,QAAQC,IAAIkB,GACZC,QACE,uBACAD,EACA,CAAEK,QAAU,KAAQ,SAAY,gB","file":"js/application-e2b25f514312bd24f0f9.js","sourcesContent":["/* eslint no-console:0 */\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/packs and only use these pack files to reference\n// that code so it'll be compiled.\n//\n// To reference this file, add <%= javascript_pack_tag 'application' %> to the appropriate\n// layout file, like app/views/layouts/application.html.erb\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 'core-js/stable'\nimport 'regenerator-runtime/runtime'\nimport Cookies from 'js-cookie'\n\nconsole.log('Hello World from Webpacker')\n\ndocument.addEventListener('DOMContentLoaded', function() {\n if($('#video_container').length > 0){\n $.ajax({\n type: 'GET',\n dataType: \"json\",\n url: \"https://vimeo.com/api/oembed.json?responsive=true&url=\" + $('#video_container').attr('data-id'),\n success: function (responseData, textStatus, jqXHR) {\n console.log(\"in\");\n // var data = JSON.parse(responseData);\n // console.log(responseData.html);\n $('#video_container').html(responseData.html);\n },\n error: function (responseData, textStatus, errorThrown) {\n console.log('GET failed.');\n }\n });\n }\n\n $('#announcement_alert').on('closed.bs.alert', function () {\n // console.log($('#announcement_alert_digest').val());\n var alert_ids = Cookies.get('announcements_closed');\n console.log($(this).attr('data-id'));\n console.log(alert_ids);\n if(alert_ids === undefined) {\n alert_ids = $(this).attr('data-id');\n } else {\n alert_ids = alert_ids.concat(\",\");\n alert_ids = alert_ids.concat($(this).attr('data-id'));\n }\n console.log(alert_ids);\n Cookies.set(\n 'announcements_closed',\n alert_ids,\n { expires: (365*7), 'SameSite': 'Lax' }\n ); \n })\n\n});"],"sourceRoot":""}