{"version":3,"sources":["webpack:///./app/javascript/public/modal.js"],"names":["$","document","ready","click","hide","addClass","show","css","removeClass","event","stopPropagation","preventDefault","on"],"mappings":"gFAEAA,cAAGC,UAAWC,OAAM,WAClBF,EAAE,qBAAqBG,OAAM,WAC3BH,EAAE,iBAAiBI,OACnBJ,EAAE,0BAA0BK,SAAS,UACrCL,EAAE,gBAAgBM,OAAOC,IAAI,UAAW,OAC1C,IACAP,EAAE,sBAAsBG,OAAM,WAC5BH,EAAE,gBAAgBI,OAClBJ,EAAE,0BAA0BK,SAAS,UACrCL,EAAE,iBAAiBM,OAAOC,IAAI,UAAW,OAC3C,IAEAP,EAAE,gBAAgBG,OAAM,WACtBH,EAAE,0BAA0BQ,YAAY,UACxCR,EAAE,iBAAiBI,MACrB,IAEAJ,EAAE,0BAA0BG,OAAM,WAChCH,EAAE,0BAA0BQ,YAAY,UACxCR,EAAE,iBAAiBI,MACrB,IACAJ,EAAE,iBAAiBG,OAAM,SAAUM,GACjCA,EAAMC,iBACR,IAEAV,EAAE,aAAaG,OAAM,SAASM,GAC5BA,EAAME,gBACR,GACF,IAGAX,EAAEC,UAAUW,GAAG,mBAAmB,WAChCZ,EAAE,qBAAqBG,OAAM,WAC3BH,EAAE,iBAAiBI,OACnBJ,EAAE,0BAA0BK,SAAS,UACrCL,EAAE,gBAAgBM,OAAOC,IAAI,UAAW,OAC1C,IACAP,EAAE,sBAAsBG,OAAM,WAC5BH,EAAE,gBAAgBI,OAClBJ,EAAE,0BAA0BK,SAAS,UACrCL,EAAE,iBAAiBM,OAAOC,IAAI,UAAW,OAC3C,IAEAP,EAAE,gBAAgBG,OAAM,WACtBH,EAAE,0BAA0BQ,YAAY,UACxCR,EAAE,iBAAiBI,MACrB,IAEAJ,EAAE,0BAA0BG,OAAM,WAChCH,EAAE,0BAA0BQ,YAAY,UACxCR,EAAE,iBAAiBI,MACrB,IACAJ,EAAE,iBAAiBG,OAAM,SAAUM,GACjCA,EAAMC,iBACR,IAEAV,EAAE,aAAaG,OAAM,SAASM,GAC5BA,EAAME,gBACR,GACF,G","file":"js/116-22c293c94a5f41adac45.chunk.js","sourcesContent":["\n\n$( document ).ready(function(){\n $('.open-login-modal').click(function(){\n $('#signup-modal').hide();\n $('.common-modal__overlay').addClass('active');\n $('#login-modal').show().css('display', 'flex');\n });\n $('.open-signup-modal').click(function(){\n $('#login-modal').hide();\n $('.common-modal__overlay').addClass('active');\n $('#signup-modal').show().css('display', 'flex');\n });\n\n $('.close-modal').click(function () {\n $('.common-modal__overlay').removeClass('active');\n $('.common-modal').hide();\n });\n\n $('.common-modal__overlay').click(function () {\n $('.common-modal__overlay').removeClass('active');\n $('.common-modal').hide();\n });\n $('.common-modal').click(function (event) {\n event.stopPropagation();\n });\n\n $('.btnClose').click(function(event){\n event.preventDefault();\n });\n});\n\n// なぜかこれがないと読み込んでくれない\n$(document).on('turbolinks:load', function() { \n $('.open-login-modal').click(function(){\n $('#signup-modal').hide();\n $('.common-modal__overlay').addClass('active');\n $('#login-modal').show().css('display', 'flex');\n });\n $('.open-signup-modal').click(function(){\n $('#login-modal').hide();\n $('.common-modal__overlay').addClass('active');\n $('#signup-modal').show().css('display', 'flex');\n });\n\n $('.close-modal').click(function () {\n $('.common-modal__overlay').removeClass('active');\n $('.common-modal').hide();\n });\n\n $('.common-modal__overlay').click(function () {\n $('.common-modal__overlay').removeClass('active');\n $('.common-modal').hide();\n });\n $('.common-modal').click(function (event) {\n event.stopPropagation();\n });\n\n $('.btnClose').click(function(event){\n event.preventDefault();\n });\n});\n\n"],"sourceRoot":""}