{"version":3,"sources":["src/scripts/components/expert.js"],"names":["$","jQuery","init","length","featherlight","otherClose","root","variant","afterOpen","event","focus","beforeOpen","window","getFormExpert","afterClose","removeFormExpert"],"mappings":";;;;;;;AACA;;AAEA;;;;;;AAHA,IAAIA,IAAIC,MAAR;AAEA;;AAEA;;AAGA,SAASC,IAAT,GAAgB;AACd,MAAGF,EAAE,uBAAF,EAA2BG,MAA3B,GAAoC,CAAvC,EAA0C;AACxCH,MAAE,2BAAF,EAA+BI,YAA/B,CAA4C,uBAA5C,EAAqE;AACnEC,kBAAY,qBADuD;AAEnEC,YAAM,wBAF6D;AAGnEC,eAAS,iBAH0D;AAInEC,iBAAW,mBAASC,KAAT,EAAgB;AACzBT,UAAE,qBAAF,EAAyBU,KAAzB;AACA;AACD,OAPkE;AAQnEC,kBAAY,sBAAW;AACrBC,eAAOC,aAAP;AACD,OAVkE;AAWnEC,kBAAY,sBAAW;AACrBF,eAAOG,gBAAP;AACA;AACD;AAdkE,KAArE;AAgBD;AACF;;QAEgBb,I,GAARA,I","file":"expert.js","sourcesContent":["var $ = jQuery;\nimport {bodyNoScroll} from '../utils/utilities.js';\n/* eslint-disable */\nimport featherlight from '../libs/featherlight.js';\n/* eslint-enable */\n\n\nfunction init() {\n if($('#expert__contact-form').length > 0) {\n $('.expert-bio-card__request').featherlight('#expert__contact-form', {\n otherClose: '.event__close-modal',\n root: '.page-node-type-person',\n variant: 'expert__request',\n afterOpen: function(event) {\n $('.event__close-modal').focus();\n bodyNoScroll();\n },\n beforeOpen: function() {\n window.getFormExpert();\n },\n afterClose: function() {\n window.removeFormExpert();\n bodyNoScroll();\n }\n });\n }\n}\n\nexport { init as init };\n"]}