{"version":3,"file":"highlight_controller-B7Dgey6o.js","sources":["../../../app/javascript/controllers/util/highlight_controller.js"],"sourcesContent":["import ApplicationController from '../application_controller'\n\nexport default class extends ApplicationController {\n static values = {\n duration: Number\n }\n\n static targets = ['highlight']\n static classes = ['highlight']\n\n highlight() {\n this.addClass(this.highlightTarget, ...this.highlightClasses)\n\n this.nextTick(() => {\n this.removeClass(this.highlightTarget, ...this.highlightClasses)\n }, this.durationValue)\n }\n}\n"],"names":["highlight_controller","ApplicationController","__publicField"],"mappings":"uNAEe,MAAKA,UAASC,CAAsB,CAQjD,WAAY,CACV,KAAK,SAAS,KAAK,gBAAiB,GAAG,KAAK,gBAAgB,EAE5D,KAAK,SAAS,IAAM,CAClB,KAAK,YAAY,KAAK,gBAAiB,GAAG,KAAK,gBAAgB,CAChE,EAAE,KAAK,aAAa,CACzB,CACA,CAdEC,EADkBF,EACX,SAAS,CACd,SAAU,MACd,GAEEE,EALkBF,EAKX,UAAU,CAAC,WAAW,GAC7BE,EANkBF,EAMX,UAAU,CAAC,WAAW"}