{"version":3,"file":"customer/login.e1a5c9b5.js","mappings":"qHAEA,ICFA,MAEE,GAGA,GAGA,GAEAA,WAAAA,CAAYC,EAAMC,EAAUC,GAC1BC,MAAK,EAAQC,SAASC,cAAcL,GACpCG,MAAK,EAAYA,MAAK,EAAME,cAAcJ,GAC1CE,MAAK,EAAWA,MAAK,EAAME,cAAcH,EAC3C,CAEA,KAC8B,aAAxBC,MAAK,EAAUG,MACjBH,MAAK,EAAUG,KAAO,OAEtBH,MAAK,EAASI,UAAUC,IAAIL,MAAK,EAASM,QAAQC,YAAc,UAChEP,MAAK,EAASI,UAAUI,OAAOR,MAAK,EAASM,QAAQG,aAAe,kBAEpET,MAAK,EAAUG,KAAO,WAEtBH,MAAK,EAASI,UAAUC,IAAIL,MAAK,EAASM,QAAQG,aAAe,gBACjET,MAAK,EAASI,UAAUI,OAAOR,MAAK,EAASM,QAAQC,YAAc,UAEvE,CAEAG,QAAAA,GACEV,MAAK,EAASW,iBAAiB,QAASX,MAAK,EAASY,KAAKZ,MAC7D,CAEAa,UAAAA,GACEb,MAAK,EAASc,oBAAoB,QAASd,MAAK,EAASY,KAAKZ,MAChE,GDlC2B,qBAAsB,yBAA0B,qBAAqBU,U","sources":["webpack://polyestershoppen.nl/./assets/js/website/customer/login.js","webpack://polyestershoppen.nl/./assets/js/utilities/toggle-password.js"],"sourcesContent":["import TogglePasswordVisibility from '../../utilities/toggle-password.js'\n\nnew TogglePasswordVisibility('form[name=\"login\"]', 'input[name=\"password\"]', 'i.toggle-password').activate()\n","export default class {\n  /** @type {HTMLFormElement} */\n  #form\n\n  /** @type {HTMLInputElement} */\n  #password\n\n  /** @type {HTMLElement} */\n  #toggler\n\n  constructor(form, password, toggler) {\n    this.#form = document.querySelector(form)\n    this.#password = this.#form.querySelector(password)\n    this.#toggler = this.#form.querySelector(toggler)\n  }\n\n  #onClick() {\n    if (this.#password.type === 'password') {\n      this.#password.type = 'text'\n\n      this.#toggler.classList.add(this.#toggler.dataset.hiddenIcon ?? 'fa-eye')\n      this.#toggler.classList.remove(this.#toggler.dataset.visibleIcon ?? 'fa-eye-slash')\n    } else {\n      this.#password.type = 'password'\n\n      this.#toggler.classList.add(this.#toggler.dataset.visibleIcon ?? 'fa-eye-slash')\n      this.#toggler.classList.remove(this.#toggler.dataset.hiddenIcon ?? 'fa-eye')\n    }\n  }\n\n  activate() {\n    this.#toggler.addEventListener('click', this.#onClick.bind(this))\n  }\n\n  deactivate() {\n    this.#toggler.removeEventListener('click', this.#onClick.bind(this))\n  }\n}\n"],"names":["constructor","form","password","toggler","this","document","querySelector","type","classList","add","dataset","hiddenIcon","remove","visibleIcon","activate","addEventListener","bind","deactivate","removeEventListener"],"sourceRoot":""}