{"version":3,"file":"tag_select_controller-CUaJ8Go8.js","sources":["../../../app/javascript/entrypoints/controllers/tag_select_controller.js"],"sourcesContent":["import { Controller } from \"@hotwired/stimulus\";\nimport TomSelect from \"tom-select\";\n\nexport default class extends Controller {\n static targets = [\"select\", \"value\"];\n select = null;\n\n selectTargetConnected() {\n this.initializeSelect();\n console.log(\"connected\");\n }\n\n disconnect() {\n this.destroySelect();\n }\n\n initializeSelect() {\n this.select = new TomSelect(this.selectTarget, {\n plugins: {\n clear_button: {\n html: (data) => {\n return `