{"version":3,"file":"form_controller-BQnxJNUn.js","sources":["../../../app/javascript/controllers/segments/form_controller.js"],"sourcesContent":["import ApplicationController from '../application_controller'\n\nexport default class extends ApplicationController {\n static targets = [\n 'submit',\n 'requiredFilter',\n ]\n\n validateFilter(event) {\n const { detail: isValid } = event\n this.submitTarget.disabled = !isValid\n }\n\n requiredFilterTargetDisconnected() {\n this.submitTarget.disabled = this.requiredFilterTargets.some(target => target.dataset.valid === 'false')\n }\n}\n"],"names":["form_controller","ApplicationController","event","isValid","target","__publicField"],"mappings":"uNAEe,MAAKA,UAASC,CAAsB,CAMjD,eAAeC,EAAO,CACpB,KAAM,CAAE,OAAQC,GAAYD,EAC5B,KAAK,aAAa,SAAW,CAACC,CAClC,CAEE,kCAAmC,CACjC,KAAK,aAAa,SAAW,KAAK,sBAAsB,KAAKC,GAAUA,EAAO,QAAQ,QAAU,OAAO,CAC3G,CACA,CAbEC,EADkBL,EACX,UAAU,CACf,SACA,gBACJ"}