{"version":3,"file":"sign_in-nZ31fCuX.js","sources":["../../../app/frontend/entrypoints/sign_in.js"],"sourcesContent":["import $ from 'jquery';\n\nwindow.addEventListener(\"load\", () => {\n const $animation_elements = $('.animation-element');\n const $window = $(window);\n\n function check_if_in_view() {\n const window_height = $window.height();\n const window_top_position = $window.scrollTop();\n const window_bottom_position = (window_top_position + window_height);\n\n $.each($animation_elements, function() {\n const $element = $(this);\n const element_height = $element.outerHeight();\n const element_top_position = $element.offset().top;\n const element_bottom_position = (element_top_position + element_height);\n\n //check to see if this current container is within viewport\n if ((element_bottom_position >= window_top_position) &&\n (element_top_position <= window_bottom_position)) {\n $element.addClass('in-view');\n } else {\n $element.removeClass('in-view');\n }\n });\n }\n\n $window.on('scroll resize', check_if_in_view);\n $window.trigger('scroll');\n});\n"],"names":["$animation_elements","$","$window","check_if_in_view","window_height","window_top_position","window_bottom_position","$element","element_height","element_top_position"],"mappings":"gFAEA,OAAO,iBAAiB,OAAQ,IAAM,CACpC,MAAMA,EAAsBC,EAAE,oBAAoB,EAC5CC,EAAUD,EAAE,MAAM,EAExB,SAASE,GAAmB,CAC1B,MAAMC,EAAgBF,EAAQ,SACxBG,EAAsBH,EAAQ,YAC9BI,EAA0BD,EAAsBD,EAEtDH,EAAE,KAAKD,EAAqB,UAAW,CACrC,MAAMO,EAAWN,EAAE,IAAI,EACjBO,EAAiBD,EAAS,cAC1BE,EAAuBF,EAAS,OAAM,EAAG,IACdE,EAAuBD,GAGxBH,GAC7BI,GAAwBH,EACzBC,EAAS,SAAS,SAAS,EAE3BA,EAAS,YAAY,SAAS,CAEtC,CAAK,CACF,CAEDL,EAAQ,GAAG,gBAAiBC,CAAgB,EAC5CD,EAAQ,QAAQ,QAAQ,CAC1B,CAAC"}