{"version":3,"sources":["seniority-points.js"],"names":["$","Drupal","behaviors","seniorityPoints","attach","context","settings","find","once","each","$element","click","hide","show","animate","scrollTop","jQuery"],"mappings":";;AAAA,CAAC,UAAUA,CAAV,EAAaC,MAAb,EAAqB;AACpB;;AAEAA,SAAOC,SAAP,CAAiBC,eAAjB,GAAmC;AACjCC,YAAQ,SAASA,MAAT,CAAgBC,OAAhB,EAAyBC,QAAzB,EAAmC;AACzCN,QAAEK,OAAF,EAAWE,IAAX,CAAgB,gCAAhB,EAAkDC,IAAlD,CAAuD,4BAAvD,EAAqFC,IAArF,CAA0F,YAAW;AACnG,YAAIC,WAAWV,EAAE,IAAF,CAAf;AACAU,iBAASH,IAAT,CAAc,QAAd,EAAwBE,IAAxB,CAA6B,YAAW;AACtCT,YAAE,IAAF,EAAQW,KAAR,CAAc,YAAW;AACvBD,qBAASE,IAAT;AACAZ,cAAEK,OAAF,EAAWE,IAAX,CAAgB,mBAAhB,EAAqCE,IAArC,CAA0C,YAAW;AACnDT,gBAAE,IAAF,EAAQa,IAAR;AACD,aAFD;AAGAb,cAAE,YAAF,EAAgBc,OAAhB,CAAwB,EAAEC,WAAW,CAAb,EAAxB,EAA0C,CAA1C;AACD,WAND;AAOD,SARD;AASD,OAXD;AAYD;AAdgC,GAAnC;AAgBD,CAnBD,EAmBGC,MAnBH,EAmBWf,MAnBX","file":"seniority-points.js","sourcesContent":["(function ($, Drupal) {\n 'use strict';\n\n Drupal.behaviors.seniorityPoints = {\n attach: function attach(context, settings) {\n $(context).find('.js-seniority-points-agreement').once('seniority-points-agreement').each(function() {\n var $element = $(this);\n $element.find(\"button\").each(function() {\n $(this).click(function() {\n $element.hide();\n $(context).find('.seniority-points').each(function() {\n $(this).show();\n });\n $('html, body').animate({ scrollTop: 0 }, 0);\n });\n });\n });\n }\n };\n})(jQuery, Drupal);\n"]}