{"version":3,"file":"show_password_controller-CU2sjwTv.js","sources":["../../../app/javascript/controllers/show_password_controller.js"],"sourcesContent":["import { Controller } from \"@hotwired/stimulus\";\n\n// Connects to data-controller=\"show-password\"\nexport default class extends Controller {\n  static targets = [\"input\", \"toggle\"];\n\n  toggle() {\n    if (this.inputTarget.type === \"password\") {\n      this.inputTarget.type = \"text\";\n      this.toggleTarget.textContent = \"Hide password\";\n    } else {\n      this.inputTarget.type = \"password\";\n      this.toggleTarget.textContent = \"Show password\";\n    }\n  }\n}\n"],"names":["show_password_controller","Controller","__publicField"],"mappings":"qTAGe,MAAKA,UAASC,CAAW,CAGtC,QAAS,CACH,KAAK,YAAY,OAAS,YAC5B,KAAK,YAAY,KAAO,OACxB,KAAK,aAAa,YAAc,kBAEhC,KAAK,YAAY,KAAO,WACxB,KAAK,aAAa,YAAc,gBAEtC,CACA,CAXEC,EADkBF,EACX,UAAU,CAAC,QAAS,QAAQ"}