{"version":3,"file":"additional_info_form_controller-aExieRdL.js","sources":["../../app/assets/javascript/controllers/loan_applications/additional_info_form_controller.js"],"sourcesContent":["import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"annualIncomeWarning\"];\n\n toggleAnnualIncomeWarning(event) {\n const income = event.target.value || '';\n if (!income) {\n this.annualIncomeWarningTarget.style.display = \"none\";\n return;\n }\n\n const numeric = Number(income.replace(/[\\$,]/g, ''));\n\n if (numeric <= 20000) {\n this.annualIncomeWarningTarget.style.display = \"block\";\n } else {\n this.annualIncomeWarningTarget.style.display = \"none\";\n }\n }\n}\n"],"names":["additional_info_form_controller","Controller","event","income","__publicField"],"mappings":"kSAEe,MAAKA,UAASC,CAAW,CAGtC,0BAA0BC,EAAO,CAC/B,MAAMC,EAASD,EAAM,OAAO,OAAS,GACrC,GAAI,CAACC,EAAQ,CACX,KAAK,0BAA0B,MAAM,QAAU,OAC/C,MACN,CAEoB,OAAOA,EAAO,QAAQ,SAAU,EAAE,CAAC,GAEpC,IACb,KAAK,0BAA0B,MAAM,QAAU,QAE/C,KAAK,0BAA0B,MAAM,QAAU,MAErD,CACA,CAjBEC,EADkBJ,EACX,UAAU,CAAC,qBAAqB"}