{"version":3,"file":"712.34d6ea2c.js","mappings":"yJAGe,MAAAA,UAAcC,EAAAA,GAGzBC,OAAAA,GACIC,KAAKC,MACT,CAEAC,UAAAA,GACIF,KAAKC,MACT,CAEAE,MAAAA,GACQH,KAAKI,gBACLJ,KAAKC,OAELD,KAAKK,MAEb,CAEAA,IAAAA,GACIL,KAAKM,eAAeC,KAAO,OAC3BP,KAAKI,iBAAkB,EACnBJ,KAAKQ,gBACLR,KAAKS,WAAWC,UAAUC,OAAO,eACjCX,KAAKS,WAAWC,UAAUE,IAAI,cAEtC,CAEAX,IAAAA,GACID,KAAKM,eAAeC,KAAO,WAC3BP,KAAKI,iBAAkB,EACnBJ,KAAKQ,gBACLR,KAAKS,WAAWC,UAAUC,OAAO,cACjCX,KAAKS,WAAWC,UAAUE,IAAI,eAEtC,E,EACHf,E,EAnCoB,CAAC,WAAY,S,sUAmCjC,c","sources":["webpack://@bang/www/./assets/controllers/password-visibility_controller.js"],"sourcesContent":["import {Controller} from '@hotwired/stimulus';\n\n/* stimulusFetch: 'lazy' */\nexport default class extends Controller {\n static targets = ['password', 'show'];\n\n connect() {\n this.hide();\n }\n\n disconnect() {\n this.hide();\n }\n\n toggle() {\n if (this.passwordVisible) {\n this.hide();\n } else {\n this.show();\n }\n }\n\n show() {\n this.passwordTarget.type = 'text';\n this.passwordVisible = true;\n if (this.hasShowTarget) {\n this.showTarget.classList.remove('opacity-100');\n this.showTarget.classList.add('opacity-50');\n }\n }\n\n hide() {\n this.passwordTarget.type = 'password';\n this.passwordVisible = false;\n if (this.hasShowTarget) {\n this.showTarget.classList.remove('opacity-50');\n this.showTarget.classList.add('opacity-100');\n }\n }\n}\n"],"names":["_class","Controller","connect","this","hide","disconnect","toggle","passwordVisible","show","passwordTarget","type","hasShowTarget","showTarget","classList","remove","add"],"sourceRoot":""}