{"version":3,"file":"list_search_controller-B7JbtfvA.js","sources":["../../../app/javascript/controllers/import/list_search_controller.js"],"sourcesContent":["import ApplicationController from '@/controllers/application_controller'\n\nexport default class extends ApplicationController {\n static targets = [\n 'listIdInput',\n 'inputTemplate',\n 'listInput',\n ]\n\n setListIds({ detail: listNames }) {\n this.listInputTargets.forEach(input => input.remove())\n\n listNames.forEach(name => {\n const input = this.inputTemplateTarget.cloneNode(true)\n\n input.setAttribute('data-import--list-search-target', 'listInput')\n input.value = name\n input.disabled = false\n\n this.element.appendChild(input)\n })\n }\n}\n"],"names":["list_search_controller","ApplicationController","listNames","input","name","__publicField"],"mappings":"uNAEe,MAAKA,UAASC,CAAsB,CAOjD,WAAW,CAAE,OAAQC,GAAa,CAChC,KAAK,iBAAiB,QAAQC,GAASA,EAAM,OAAQ,CAAA,EAErDD,EAAU,QAAQE,GAAQ,CACxB,MAAMD,EAAQ,KAAK,oBAAoB,UAAU,EAAI,EAErDA,EAAM,aAAa,kCAAmC,WAAW,EACjEA,EAAM,MAAQC,EACdD,EAAM,SAAW,GAEjB,KAAK,QAAQ,YAAYA,CAAK,CAC/B,CAAA,CACL,CACA,CAnBEE,EADkBL,EACX,UAAU,CACf,cACA,gBACA,WACJ"}