{"version":3,"sources":["webpack:///./app/javascript/src/show-password.js"],"names":["showPassword","$","on","$pwd","this","closest","find","$icon","attr","empty","append","document"],"mappings":"6EAAA,gBAAMA,EAAe,WACnBC,EAAE,qBAAqBC,GAAG,SAAS,WACjC,IAAMC,EAAOF,EAAEG,MAAMC,QAAQ,gBAAgBC,KAAK,iBAC5CC,EAAQN,EAAEG,MAAMC,QAAQ,gBAAgBC,KAAK,QACzB,aAAtBH,EAAKK,KAAK,SACZL,EAAKK,KAAK,OAAQ,QAClBD,EAAME,QAAQC,OAAO,oCAErBP,EAAKK,KAAK,OAAQ,YAClBD,EAAME,QAAQC,OAAO,iCAK3BV,IAEAC,EAAEU,UAAUT,GAAG,mBAAmB,WAChCF,S","file":"js/9-632ff9372e77c3df0006.chunk.js","sourcesContent":["const showPassword = () => {\n $(\".js-show-password\").on(\"click\", function () {\n const $pwd = $(this).closest(\".input-group\").find(\".form-control\");\n const $icon = $(this).closest(\".input-group\").find(\".btn\");\n if ($pwd.attr(\"type\") === \"password\") {\n $pwd.attr(\"type\", \"text\");\n $icon.empty().append('');\n } else {\n $pwd.attr(\"type\", \"password\");\n $icon.empty().append('');\n }\n });\n};\n\nshowPassword();\n\n$(document).on(\"turbolinks:load\", function () {\n showPassword();\n});\n"],"sourceRoot":""}