{"version":3,"file":"posts_select_controller-rWfsIf4-.js","sources":["../../../app/javascript/entrypoints/controllers/posts_select_controller.js"],"sourcesContent":["import { Controller } from \"@hotwired/stimulus\";\nimport TomSelect from \"tom-select\";\n\nexport default class extends Controller {\n static targets = [\"select\", \"postNodeableId\", \"newPost\"];\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 plugins: {\n clear_button: {\n html: (data) => {\n return `