{"version":3,"file":"employee_select_controller-CYU9d61w.js","sources":["../../../app/javascript/entrypoints/controllers/employee_select_controller.js"],"sourcesContent":["import { Controller } from \"@hotwired/stimulus\";\nimport TomSelect from \"tom-select\";\n\nexport default class extends Controller {\n static values = {\n multiple: Boolean,\n };\n\n static targets = [\"select\", \"employeeList\"];\n select = null;\n\n connect() {\n this.initializeSelect();\n }\n\n disconnect() {\n this.destroySelect();\n }\n\n initializeSelect() {\n this.select = new TomSelect(this.selectTarget, {\n persist: false,\n create: false,\n allowEmptyOption: true,\n closeAfterSelect: true,\n maxOptions: null,\n plugins: {\n ...(this.multipleValue ? { remove_button: {} } : {}),\n clear_button: {\n html: (data) => {\n return `