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iD,OAAOC,SAASC,WACfnD,EAAOmD,SAAS0Z,WAAW5Z,OAAOC,SAASC,SAAS+C,MAAM,EAAG,IAC/DlG,EAAOT,UAAUC,IAAIV,KAAKge,cAE1B9c,EAAOT,UAAUF,OAAOP,KAAKge,cAGnC,CAEA,SAAArI,CAAU9Q,GACR7E,KAAKmR,WAAW1Q,UAAUF,OAAOP,KAAKge,cAEtChe,KAAKmR,WAAatM,EAAMwM,cACxBrR,KAAKmR,WAAW1Q,UAAUC,IAAIV,KAAKge,aACrC,EA5BA,EADK,EACE,UAAU,CAAC,SAClB,EAFK,EAEE,UAAU,CAAC,W,sPCFL,MAAR,UAAsB,KAI3B,IAAAlY,GACM9F,KAAKke,cACPle,KAAKme,WAAW1d,UAAUF,OAAO,UAEjC4C,MAAMnD,KAAKoe,UACRhb,MAAMib,GAAMA,EAAE7T,SACdpH,MAAMqH,IACL,MAAM6T,EAAWvY,SACdwY,cACAC,yBAAyB/T,GAE5BzK,KAAKM,QAAQ4R,YAAYoM,EAAS,GAG1C,CAEA,IAAAlJ,GACMpV,KAAKke,eACPle,KAAKme,WAAW1d,UAAUC,IAAI,SAElC,CAEA,UAAAR,GACMF,KAAKke,eACPle,KAAKme,WAAW5d,QAEpB,EA7BA,EADK,EACE,UAAU,CAAC,SAClB,EAFK,EAEE,SAAS,CAAEwZ,IAAKpP,Q","sources":["webpack://rehomebase/./app/javascript/controllers/modal_menu_controller.js","webpack://rehomebase/./app/javascript/controllers/autoscroll_controller.js","webpack://rehomebase/./app/javascript/controllers/select_reveal_controller.js","webpack://rehomebase/./app/javascript/controllers/field/mention_controller.js","webpack://rehomebase/./app/javascript/controllers/field/autosize_controller.js","webpack://rehomebase/./app/javascript/controllers/layout_controller.js","webpack://rehomebase/./app/javascript/controllers/index.js","webpack://rehomebase/./app/javascript/controllers/nested_field_controller.js","webpack://rehomebase/./app/javascript/controllers/reveal_controller.js","webpack://rehomebase/./app/javascript/controllers/datepicker_controller.js","webpack://rehomebase/./app/javascript/controllers/contract/assignee_role_controller.js","webpack://rehomebase/./app/javascript/helpers/current.js","webpack://rehomebase/./app/javascript/controllers/mentionable_controller.js","webpack://rehomebase/./app/javascript/controllers/fieldset_selector_controller.js","webpack://rehomebase/./app/javascript/controllers/checkbox_reveal_controller.js","webpack://rehomebase/./app/javascript/controllers/dashboard/tasks_controller.js","webpack://rehomebase/./app/javascript/controllers/task_controller.js","webpack://rehomebase/./app/javascript/controllers/dropdown_controller.js","webpack://rehomebase/./app/javascript/controllers/clipboard_controller.js","webpack://rehomebase/./app/javascript/controllers/phone_numbers_controller.js","webpack://rehomebase/./app/javascript/controllers/modal_controller.js","webpack://rehomebase/./app/javascript/controllers/phone_call_controller.js","webpack://rehomebase/./app/javascript/controllers/guide/project_tasks_controller.js","webpack://rehomebase/./app/javascript/controllers/referral_subsource_controller.js","webpack://rehomebase/./app/javascript/controllers/field/hashtag_controller.js","webpack://rehomebase/./app/javascript/controllers/popup_controller.js","webpack://rehomebase/./app/javascript/controllers/autoremove_controller.js","webpack://rehomebase/./app/javascript/controllers/progressive_image_controller.js","webpack://rehomebase/./app/javascript/controllers/template_editor_controller.js","webpack://rehomebase/./app/javascript/controllers/modal_frame_controller.js","webpack://rehomebase/./app/javascript/controllers/tabs_controller.js","webpack://rehomebase/./app/javascript/controllers/field/timezone_controller.js","webpack://rehomebase/./app/javascript/controllers/search_map_area_controller.js","webpack://rehomebase/./app/javascript/controllers/exclusive_checkbox_group_controller.js","webpack://rehomebase/./app/javascript/controllers/notice_controller.js","webpack://rehomebase/./app/javascript/controllers/flash_controller.js","webpack://rehomebase/./app/javascript/controllers/dashboard/search_controller.js","webpack://rehomebase/./app/javascript/controllers/field/autocomplete_controller.js","webpack://rehomebase/./app/javascript/controllers/sidebar_controller.js","webpack://rehomebase/./app/javascript/controllers/note_controller.js","webpack://rehomebase/./app/javascript/controllers/radio_fieldset_selection_controller.js","webpack://rehomebase/./app/javascript/controllers/ sync \\.js$","webpack://rehomebase/./app/javascript/controllers/subject_search_controller.js","webpack://rehomebase/./app/javascript/controllers/contract/person_form_controller.js","webpack://rehomebase/./app/javascript/controllers/hotkey_controller.js","webpack://rehomebase/./app/javascript/controllers/field/select_frame_controller.js","webpack://rehomebase/./app/javascript/controllers/chat_sidebar_controller.js","webpack://rehomebase/./app/javascript/controllers/location_select_controller.js","webpack://rehomebase/./app/javascript/controllers/sortable_controller.js","webpack://rehomebase/./app/javascript/controllers/basement_options_controller.js","webpack://rehomebase/./app/javascript/controllers/person_search_controller.js","webpack://rehomebase/./app/javascript/controllers/leads/entity_autocomplete_controller.js","webpack://rehomebase/./app/javascript/controllers/sequence_controller.js","webpack://rehomebase/./app/javascript/controllers/leads/contact_autocomplete_controller.js","webpack://rehomebase/./app/javascript/packs/application.js","webpack://rehomebase/./app/javascript/controllers/tab_bar_controller.js","webpack://rehomebase/./app/javascript/controllers/hovercard_controller.js"],"sourcesContent":["import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [ \"overlay\", \"body\" ]\n\n connect() {\n this.transitionIn()\n }\n\n disconnect() {\n this.close()\n }\n\n close() {\n this.transitionOut();\n\n setTimeout(() => {\n this.element.remove();\n }, 200)\n }\n\n transitionIn() {\n setTimeout(() => {\n this.overlayTarget.classList.add('opacity-100')\n this.bodyTarget.classList.remove(\"opacity-0\", \"translate-y-4\", \"sm:translate-y-0\", \"sm:scale-95\")\n this.bodyTarget.classList.add(\"opacity-100\", \"translate-y-0\", \"sm:scale-100\")\n }, 300);\n }\n\n transitionOut() {\n this.overlayTarget.classList.remove('opacity-100')\n this.bodyTarget.classList.remove(\"opacity-100\", \"translate-y-0\", \"sm:scale-100\")\n this.bodyTarget.classList.add(\"opacity-0\", \"translate-y-4\", \"sm:translate-y-0\", \"sm:scale-95\")\n }\n\n closeWithEscape(e) {\n if (e.keyCode === 27) {\n this.close();\n }\n }\n}","import { Controller} from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n connect() {\n this.element.scrollTop = this.element.scrollHeight\n }\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"content\"]\n\n connect() {}\n\n toggle(e) {\n if (e.target.options[e.target.selectedIndex].value == \"\") {\n this.contentTargets.forEach(el => el.classList.add(\"hidden\"))\n this.contentTarget.querySelectorAll(\"select\").forEach(select => select.setAttribute(\"disabled\", true))\n this.contentTarget.querySelectorAll(\"input\").forEach(input => input.setAttribute(\"disabled\", true))\n } else {\n this.contentTargets.forEach(el => el.classList.remove(\"hidden\"))\n this.contentTarget.querySelectorAll(\"select\").forEach(select => select.removeAttribute(\"disabled\"))\n this.contentTarget.querySelectorAll(\"input\").forEach(input => input.removeAttribute(\"disabled\"))\n }\n }\n}","import { Controller } from \"@hotwired/stimulus\"\nimport Tribute from \"tributejs\"\n\nexport default class extends Controller {\n static targets = [\"textarea\"]\n\n connect() {\n this.isLoaded = false\n this.tribute = new Tribute({\n lookup: \"username\",\n values: [\n { username: \"team\", first_name: \"@team\", last_name: \"\" },\n { username: \"directors\", first_name: \"@directors\", last_name: \"\" },\n { username: \"agents\", first_name: \"@agents\", last_name: \"\" },\n { username: \"coordinators\", first_name: \"@coordinators\", last_name: \"\" },\n { username: \"support\", first_name: \"@support\", last_name: \"\" },\n ],\n selectClass: \"bg-blue-200\",\n containerClass: \"tribute-container rounded-md shadow ring-2 ring-blue-200 bg-white text-blue-900 my-3 z-20\",\n itemClass: \"px-4 py-2\",\n menuItemLimit: 10,\n\n selectTemplate: function (item) {\n return '@' + item.original.username;\n },\n\n menuItemTemplate: function (item) {\n return item.original.first_name.concat(\" \", item.original.last_name);\n }\n })\n\n this.tribute.attach(this.textareaTarget)\n }\n\n disconnect() {\n this.tribute.detach(this.textareaTarget)\n }\n\n load() {\n if (!this.isLoaded) {\n fetch(\"/autocomplete/accounts.json\", {})\n .then(response => response.json())\n .then(json => this.tribute.append(0, json));\n }\n\n this.isLoaded = true\n }\n}","import { Controller } from \"@hotwired/stimulus\"\nimport autosize from \"autosize\"\n\nexport default class extends Controller {\n connect() {\n autosize(this.element)\n }\n}","import { Controller } from \"@hotwired/stimulus\"\nimport { enter, leave } from \"el-transition\";\nimport { post } from '@rails/request.js'\n\nexport default class extends Controller {\n static targets = [\"menuWrapper\", \"menuOverlay\", \"menuSidebar\"]\n\n connect() {\n }\n\n openMenu() {\n this.menuWrapperTarget.style.removeProperty(\"display\")\n\n enter(this.menuOverlayTarget, \"sidebar\")\n enter(this.menuSidebarTarget, \"sidebar\")\n }\n\n closeMenu() { \n leave(this.menuSidebarTarget, \"sidebar\")\n leave(this.menuOverlayTarget, \"sidebar\").then(() => {\n this.menuWrapperTarget.style.setProperty(\"display\", \"none\")\n })\n }\n\n async trackPrinting() {\n post(\"/analytics\", {\n query: { printing: window.location.pathname }\n });\n }\n}","// Load all the controllers within this directory and all subdirectories.\n// Controller files must be named *_controller.js.\n\nimport { Application } from \"@hotwired/stimulus\"\nimport { definitionsFromContext } from \"@hotwired/stimulus-webpack-helpers\"\n\nwindow.Stimulus = Application.start()\nconst context = require.context(\"controllers\", true, /\\.js$/)\nStimulus.load(definitionsFromContext(context))","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [ \"links\", \"template\" ]\n\n connect() {\n this.wrapperClass = this.data.get(\"wrapperClass\") || \"nested-fields\"\n }\n\n add_association(event) {\n event.preventDefault()\n\n var content = this.templateTarget.innerHTML.replace(/NEW_RECORD/g, new Date().getTime())\n this.linksTarget.insertAdjacentHTML('beforebegin', content)\n }\n\n remove_association(event) {\n event.preventDefault()\n\n let wrapper = event.target.closest(\".\" + this.wrapperClass)\n\n if (wrapper.dataset.newRecord == \"true\") {\n wrapper.remove()\n } else {\n wrapper.querySelector(\"input[name*='_destroy']\").value = 1\n wrapper.style.display = 'none'\n }\n }\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n connect() {}\n\n show(e) {\n e.preventDefault()\n document.querySelector(this.element.getAttribute(\"href\")).classList.remove(\"hidden\")\n }\n}","import Flatpickr from \"stimulus-flatpickr\";\nimport \"flatpickr/dist/themes/airbnb.css\";\n\nexport default class extends Flatpickr {\n connect() {\n this.config = {\n ...this.config,\n altInput: true,\n altInputClass: \"\",\n disableMobile: true,\n monthSelectorType: \"static\",\n altFormat: \"D, M j, Y\"\n };\n\n super.connect();\n }\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"roleSelect\", \"otherRoleInput\"]\n\n roleChanged(event) {\n let roleSelect = event.target\n let roleValue = roleSelect.options[roleSelect.selectedIndex].value\n if (roleValue == \"other\") {\n this.otherRoleInputTarget.parentElement.classList.remove(\"hidden\")\n this.otherRoleInputTarget.focus() \n } else {\n this.otherRoleInputTarget.parentElement.classList.add(\"hidden\")\n }\n }\n}","// On-demand JavaScript objects from \"current\" HTML elements. Example:\n//\n// \n// \n//\n// >> current.identity\n// => { id: \"123\", timeZoneName: \"Central Time (US & Canada)\" }\n//\n// >> current.foo\n// => {}\nexport const current = new Proxy({}, {\n get(target, propertyName) {\n const result = {}\n const prefix = `current-${propertyName}-`\n for (const { name, content } of document.head.querySelectorAll(`meta[name^=${prefix}]`)) {\n const key = camelize(name.slice(prefix.length))\n result[key] = content\n }\n return result\n }\n})\n\nfunction camelize(string) {\n return string.replace(/(?:[_-])([a-z0-9])/g, (_, char) => char.toUpperCase())\n}","import { Controller } from \"@hotwired/stimulus\"\nimport { current } from \"../helpers/current\"\n\nexport default class extends Controller {\n static targets = [ \"markAsRead\" ]\n static values = { mentionedUsernames: Array }\n\n connect() {\n if (this.mentionedUsernamesValue.includes(current.account.username)) {\n this.markAsReadTarget.classList.remove('hidden')\n }\n }\n\n considerRead() {\n this.markAsReadTarget.setAttribute(\"disabled\", true)\n this.markAsReadTarget.classList.add(\"text-green-500\", \"cursor-default\")\n this.markAsReadTarget.querySelector(\"span\").innerText = \"Read\"\n }\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"select\", \"fieldset\"]\n\n connect() {\n const selectedFieldsetValue = this.selectTarget.options[this.selectTarget.selectedIndex].value;\n \n this.fieldsetTargets.forEach((fieldset, index) => { \n if (fieldset.id != selectedFieldsetValue) {\n fieldset.setAttribute(\"disabled\", true)\n fieldset.setAttribute(\"hidden\", true)\n }\n });\n }\n\n change() {\n const selectedFieldsetValue = this.selectTarget.options[this.selectTarget.selectedIndex].value;\n\n this.fieldsetTargets.forEach((fieldset, index) => { \n if (fieldset.id == selectedFieldsetValue) {\n fieldset.removeAttribute(\"disabled\")\n fieldset.removeAttribute(\"hidden\")\n } else {\n fieldset.setAttribute(\"disabled\", true)\n fieldset.setAttribute(\"hidden\", true)\n }\n });\n }\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"input\", \"content\", \"disable\"]\n\n connect() {\n this.toggleContent()\n }\n\n toggleContent() {\n if (this.inputTarget.checked) {\n this.contentTarget.classList.remove(\"opacity-25\");\n this.disableTargets.forEach(el => el.removeAttribute(\"disabled\"));\n } else {\n this.contentTarget.classList.add(\"opacity-25\");\n this.disableTargets.forEach(el => el.setAttribute(\"disabled\", true));\n }\n }\n}","import { Controller} from \"@hotwired/stimulus\"\nlet groupBy = require('lodash.groupby');\nlet forEach = require('lodash.foreach');\n\nexport default class extends Controller {\n static targets = [ \"unit\" ]\n\n connect() {\n this.unitTargets.forEach(task => task.querySelector('a').attr(\"data-\").remove('active'))\n\n if (!this.element.classList.contains(\"isGrouped\") && !document.documentElement.hasAttribute(\"data-turbo-preview\")) {\n this.groupTasksByContext()\n this.element.classList.add(\"isGrouped\")\n }\n }\n\n groupTasksByContext() {\n forEach(\n groupBy(this.element.querySelectorAll(\"article[class*=task]\"), function(el) {\n return el.dataset.item;\n }),\n function (tasks, context) {\n let taskGroupHeader = document.createElement(\"h4\")\n \n taskGroupHeader.innerHTML = tasks[0].querySelector(\"div[data-task-target='item']\").innerHTML\n taskGroupHeader.classList.add(\"text-sm\", \"mb-0\")\n taskGroupHeader.querySelector(\"a\").classList.add(\"inline-block\", \"bg-gray-100\", \"text-gray-600\", \"mx-4\", \"md:mx-6\", \"my-2\", \"py-1\", \"px-3\", \"rounded-md\", \"hover:text-gray-800\", \"hover:bg-gray-200\")\n \n tasks[0].insertAdjacentElement(\"beforebegin\", taskGroupHeader)\n\n let spacer = document.createElement(\"div\")\n spacer.classList.add(\"mb-6\")\n tasks[tasks.length - 1].insertAdjacentElement(\"afterend\", spacer)\n }\n )\n }\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [ \"due\", \"dueDate\", \"title\", \"item\", \"workflow\", \"sortHandle\" ]\n\n connect() {\n // if on workflow#show\n if (location.pathname.match(/\\w+\\/\\d+\\/workflows\\/\\d+/)) {\n if (this.hasWorkflowTarget) {\n this.workflowTarget.classList.add(\"hidden\")\n }\n this.sortHandleTarget.classList.remove(\"hidden\")\n }\n\n // if on tasks#show\n if (location.pathname.match(/\\w+\\/\\d+\\/tasks\\/\\d+/)) {\n if (this.hasWorkflowTarget) {\n this.workflowTarget.classList.add(\"hidden\")\n }\n }\n\n // show source if on reports page\n if (location.pathname.match(/reports\\/tasks\\/\\w+/)) {\n this.itemTarget.classList.remove(\"hidden\")\n if (this.hasWorkflowTarget) {\n this.workflowTarget.classList.add(\"hidden\")\n } \n }\n\n if (this.hasDueTarget && this.isOpenOrActive() && this.isOverdue()) {\n this.dueTarget.classList.add(\"text-red-500\")\n }\n }\n\n isOpenOrActive() {\n return (this.element.classList.contains(\"-todo\"))\n }\n \n isOverdue() {\n return (new Date(this.dueDateTarget.getAttribute(\"datetime\")) < new Date().setHours(0,0,0,0))\n }\n}","import { Controller } from \"@hotwired/stimulus\"\nimport { useClickOutside } from \"stimulus-use\"\nimport { enter, leave } from \"el-transition\"; \n\nexport default class extends Controller {\n static targets = [ \"toggle\", \"menu\" ]\n static values = { remoteUrl: String }\n\n connect() {\n this.isLoaded = !this.hasRemoteUrlValue\n\n useClickOutside(this)\n }\n\n clickOutside() {\n leave(this.menuTarget, \"dropdown\")\n }\n\n toggle() {\n if (this.menuTarget.classList.contains(\"hidden\")) {\n enter(this.menuTarget, \"dropdown\")\n if (!this.isLoaded) {\n fetch(this.remoteUrlValue, {})\n .then(response => response.text())\n .then(html => {\n this.isLoaded = true\n this.menuTarget.innerHTML = html\n })\n }\n } else {\n leave(this.menuTarget, \"dropdown\")\n }\n }\n} ","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [ \"source\", \"button\", \"label\"]\n\n connect() {\n if (!navigator.clipboard && !window.isSecureContext) {\n this.element.querySelector('button').classList.add(\"hidden\")\n }\n }\n\n copy(event) {\n event.preventDefault()\n navigator.clipboard.writeText(this.sourceTarget.value)\n\n if (this.hasLabelTarget) {\n this.labelTarget.innerText = \"Copied\"\n }\n }\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n renderOptions(event) {\n event.preventDefault()\n\n fetch(this.data.get(\"endpoint\"), {})\n .then(response => response.text())\n .then(html => {\n document.querySelector(\"body\").insertAdjacentHTML('beforeend', html)\n })\n }\n}","import { Controller } from \"@hotwired/stimulus\"\nimport { enter, leave } from \"el-transition\"; \n\nexport default class extends Controller {\n static targets = [ \"backdrop\", \"popup\" ]\n\n connect() {\n enter(this.backdropTarget, \"modal-backdrop\")\n enter(this.popupTarget, \"modal-popup\")\n }\n\n close(e) {\n e.preventDefault()\n\n if (this.element.querySelector(\"form\")) {\n if (confirm(\"Are you sure?\")) {\n this.hideModal() \n }\n } else {\n this.hideModal()\n }\n }\n\n discard(e) {\n e.preventDefault()\n this.hideModal()\n }\n\n closeWithEscape(e) {\n if (e.keyCode === 27) {\n this.close(e);\n }\n }\n\n submitEnd(e) {\n if (e.detail.formSubmission.result.success) {\n this.hideModal()\n }\n }\n\n hideModal() {\n leave(this.popupTarget, \"modal-popup\")\n leave(this.backdropTarget, \"modal-backdrop\").then(() => {\n this.element.remove()\n })\n }\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static values = { accountId: Number, assigneeId: Number }\n static targets = [ \"subject\", \"subjectLink\" ]\n\n connect() {\n if (this.hasSubjectTarget) {\n if (location.pathname.indexOf(this.subjectLinkTarget.pathname) > -1) {\n this.subjectTarget.classList.add(\"md:hidden\")\n }\n }\n }\n}","import { Controller } from \"@hotwired/stimulus\"\nimport { driver } from \"driver.js\";\nimport \"driver.js/dist/driver.css\";\nimport { post } from '@rails/request.js'\n\nexport default class extends Controller {\n connect() {\n const guide = driver({\n overlayOpacity: 0.5,\n showProgress: true,\n onDestroyed: (el, step) => {\n console.log(\"DESTROYED GUIDE\"),\n\n post(\"/account/dismiss\", {\n body: { name: \"guide_project_tasks\", metadata: { step: step.element } }\n });\n },\n\n steps: [\n { element: '#guide--tasks-card',\n popover: {\n title: 'New Tasks Section',\n description: 'Have clear visibility for on-hold, active and completed tasks.',\n position: 'top-center'\n }\n },\n\n { element: '#guide--add-new-task',\n popover: {\n title: 'Add Standalone Tasks',\n description: 'You can Assign & Schedule tasks without workflows.',\n position: 'top-center'\n }\n },\n\n { element: '#guide--assigned-tasks-filter',\n popover: {\n title: 'New Task Filters',\n description: 'Quickly see what is assigned to you or tasks you assigned to somebody else.',\n position: 'top-center'\n }\n },\n\n { element: '#guide--workflows-card',\n popover: {\n title: 'Same Workflows, but better',\n description: 'Get progress overview across all workflows in percentage or number of completed tasks.',\n position: 'left-center'\n }\n },\n\n { element: '#guide--import-workflow-template',\n popover: {\n title: 'Import Workflows from a Template',\n description: 'Improved template preview when importing single workflow.',\n position: 'left-center'\n }\n },\n ] \n })\n\n guide.drive();\n }\n}","import { Controller } from \"@hotwired/stimulus\"\nimport autoComplete from \"@tarekraafat/autocomplete.js\"\nimport { get } from \"@rails/request.js\"\n\nexport default class extends Controller {\n static targets = ['autocompleteField']\n static values = { type: Array, recordId: Number }\n\n connect() {\n new autoComplete({\n debounce: 300,\n searchEngine: \"loose\",\n selector: `#${this.autocompleteFieldTarget.id}`,\n threshold: 2,\n\n data: {\n src: async () => {\n const response = await get(`/subjects/search/new?term=${encodeURI(this.autocompleteFieldTarget.value)}&type=${this.typeValue}`, { responseKind: \"json\" });\n if (response.ok) {\n const data = await response.json;\n return data;\n };\n },\n keys: [\"name\", \"description\"],\n cache: false\n },\n \n resultsList: {\n maxResults: 10,\n },\n\n resultItem: {\n element: (item, data) => {\n item.innerHTML = `${data.value.type} - ${data.value.name} ${data.value?.description}`;\n }\n },\n\n events: {\n input: {\n selection: (event) => {\n this.element.parentElement.setAttribute(\"src\", `/referral/records/${this.recordIdValue}/fieldsets/${event.detail.selection.value.gid}`)\n }\n }\n }\n });\n }\n}","import { Controller } from \"@hotwired/stimulus\"\nimport Tribute from \"tributejs\"\n\nexport default class extends Controller {\n static targets = [\"textarea\"]\n\n connect() {\n this.isLoaded = false\n this.tribute = new Tribute({\n trigger: \"#\",\n lookup: \"name\",\n values: [],\n selectClass: \"bg-gray-200\",\n containerClass: \"tribute-container bg-white shadow-lg my-2 z-20\",\n itemClass: \"px-4 py-3\",\n\n selectTemplate: function (item) {\n return \"#\" + item.original.name;\n },\n\n menuItemTemplate: function (item) {\n return \"#\" + item.original.name;\n }\n })\n this.tribute.attach(this.textareaTarget)\n }\n\n disconnect() {\n this.tribute.detach(this.textareaTarget)\n }\n\n load() {\n if (!this.isLoaded) {\n fetch(\"/autocomplete/hashtags.json\", {})\n .then(response => response.json())\n .then(json => this.tribute.append(0, json));\n }\n\n this.isLoaded = true\n }\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n connect() { }\n\n closeOnFocusOutside({ target }) {\n if (!this.element.open) return\n if (this.element.contains(target)) return\n if (target.matches(\"main\")) return\n\n this.close()\n }\n\n closeOnClickOutside({ target }) {\n if (this.element.contains(target)) return\n \n this.close()\n }\n\n disconnect() {\n this.close()\n }\n\n close() {\n this.element.open = false\n }\n} ","import { Controller} from \"@hotwired/stimulus\"\nimport { leave } from \"el-transition\"; \n\nexport default class extends Controller {\n static values = { delay: Number }\n\n connect() {\n this.timeout = setTimeout(this.remove, this.delayValue)\n }\n\n disconnect() {\n clearTimeout(this.timeout)\n\n this.remove()\n }\n\n remove = () => {\n leave(this.element, \"flash\").then(() => {\n this.element.remove()\n })\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n connect() {\n this.element.addEventListener('load', () => {\n this.element.classList.remove('opacity-0')\n })\n }\n} ","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"modal\"]\n\n showAssigns(event) {\n this.data.set('insertable', event.target.dataset.insertable)\n\n $(this.modalTarget).modal('show')\n }\n\n insert(event) {\n let value = event.target.closest('li').dataset.assign;\n\n let textArea = document.getElementById(this.data.get('insertable'));\n\n var startPos = textArea.selectionStart,\n endPos = textArea.selectionEnd,\n cursorPos = startPos,\n tmpStr = textArea.value;\n\n if (value === null) {\n return;\n }\n\n // insert:\n textArea.value = tmpStr.substring(0, startPos) + value + tmpStr.substring(endPos, tmpStr.length);\n\n textArea.focus();\n\n // move cursor:\n setTimeout(() => {\n cursorPos += value.length;\n textArea.selectionStart = textArea.selectionEnd = cursorPos;\n\n }, 100);\n\n $(this.modalTarget).modal('hide')\n }\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static values = { tag: String, src: String } \n static classes = [ \"popup\" ]\n\n show(e) {\n e.preventDefault();\n\n let modalHtml = document.getElementById(\"modal-frame-template\").innerHTML\n \n document.querySelector(\"body\").insertAdjacentHTML(\n 'beforeend', \n modalHtml.replace(/TURBO_FRAME_ID/g, this.turboFrameId).replace(/MODAL_TITLE/g, this.modalTitle).replace(/MODAL_POPUP_CLASSES/g, this.popupClasses.join(\" \"))\n )\n document.querySelector(`turbo-frame[id=${this.turboFrameId}]`).setAttribute(\"src\", this.element.href)\n }\n\n get turboFrameId() {\n return this.tagValue || \"modal-content\"\n }\n\n get modalTitle() {\n return this.element.title || this.element.innerText\n }\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = ['tab', 'panel']\n\n connect() {\n this.activeTabClasses = (this.data.get('activeClass') || 'active').split(' ')\n this.inactiveTabClasses = (this.data.get('inactiveClass') || 'inactive').split(' ')\n\n this.enableTab()\n }\n\n enableTab() {\n this.tabTargets.forEach((tab, index) => { \n const toggle = tab.dataset.toggle\n const panel = this.panelTargets[index]\n\n if (toggle === this.currentTab) {\n panel.classList.remove('hidden')\n tab.classList.remove(...this.inactiveTabClasses)\n tab.classList.add(...this.activeTabClasses)\n if (panel.dataset.remoteUrl && !panel.dataset.loaded) {\n fetch(panel.dataset.remoteUrl, {})\n .then(response => response.text())\n .then(html => {\n panel.innerHTML = html;\n panel.dataset.loaded = true\n }\n )\n }\n } else {\n panel.classList.add('hidden')\n tab.classList.remove(...this.activeTabClasses)\n tab.classList.add(...this.inactiveTabClasses)\n }\n })\n }\n\n switch(event) {\n this.currentTab = event.currentTarget.dataset.toggle\n }\n\n get currentTab() {\n return this.data.get('current')\n }\n\n set currentTab(value) {\n this.data.set('current', value)\n this.enableTab()\n }\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n connect() {\n if (window.Intl && typeof window.Intl === \"object\") {\n var timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;\n this.element.value = timeZone;\n };\n }\n}","import { Controller } from \"@hotwired/stimulus\"\nimport { post } from \"@rails/request.js\"\n\nexport default class extends Controller {\n static targets = [\"map\", \"polygonField\", \"clearButton\"]\n static values = { apiKey: String }\n\n connect() {\n this.loadGoogleMapsAPI()\n this.polygon = null\n }\n\n loadGoogleMapsAPI() {\n const script = document.createElement('script')\n script.src = `https://maps.googleapis.com/maps/api/js?key=${this.apiKeyValue}&libraries=drawing`\n script.async = true\n script.defer = true\n script.onload = () => this.initMap()\n document.head.appendChild(script)\n }\n\n initMap() {\n const corneliusNC = { lat: 35.4816, lng: -80.8601 }\n const mapOptions = {\n center: corneliusNC,\n zoom: 12,\n mapTypeControl: true,\n streetViewControl: false,\n fullscreenControl: false\n }\n this.map = new google.maps.Map(this.mapTarget, mapOptions)\n this.drawingManager = new google.maps.drawing.DrawingManager({\n drawingMode: google.maps.drawing.OverlayType.POLYGON,\n drawingControl: true,\n drawingControlOptions: {\n position: google.maps.ControlPosition.TOP_CENTER,\n drawingModes: ['polygon']\n },\n polygonOptions: {\n editable: true,\n draggable: true\n }\n })\n this.drawingManager.setMap(this.map)\n\n google.maps.event.addListener(this.drawingManager, 'polygoncomplete', (polygon) => {\n if (this.polygon) {\n this.polygon.setMap(null)\n }\n this.polygon = polygon\n this.updatePolygonCoordinates()\n this.updateClearButtonVisibility()\n\n // Add listeners for editing and dragging\n google.maps.event.addListener(polygon.getPath(), 'set_at', () => this.updatePolygonCoordinates())\n google.maps.event.addListener(polygon.getPath(), 'insert_at', () => this.updatePolygonCoordinates())\n google.maps.event.addListener(polygon, 'dragend', () => this.updatePolygonCoordinates())\n })\n }\n\n updatePolygonCoordinates() {\n if (this.polygon) {\n const path = this.polygon.getPath()\n const coordinates = path.getArray().map(coord => [\n coord.lat(),\n coord.lng()\n ])\n \n // Store coordinates array for google_map_polygon attribute\n this.polygonFieldTarget.value = JSON.stringify(coordinates)\n } else {\n this.polygonFieldTarget.value = ''\n }\n }\n\n clearPolygon(event) {\n event.preventDefault()\n if (this.polygon) {\n this.polygon.setMap(null)\n this.polygon = null\n this.polygonFieldTarget.value = ''\n this.updateClearButtonVisibility()\n }\n }\n\n updateClearButtonVisibility() {\n this.clearButtonTarget.classList.toggle('hidden', !this.polygon)\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"anyCheckbox\", \"optionCheckbox\"]\n\n connect() {\n this.updateCheckboxStates()\n }\n\n toggleAny(event) {\n const anyCheckbox = event.target\n\n if (anyCheckbox.checked) {\n // If \"Any\" is checked, uncheck all other options\n this.optionCheckboxTargets.forEach(checkbox => {\n checkbox.checked = false\n })\n }\n }\n\n toggleOption() {\n // Check if any options are checked\n const anyOptionsChecked = this.optionCheckboxTargets.some(checkbox => checkbox.checked)\n\n // If no options are checked, check \"Any\"\n // If any options are checked, uncheck \"Any\"\n this.anyCheckboxTarget.checked = !anyOptionsChecked\n }\n\n updateCheckboxStates() {\n const anyOptionsChecked = this.optionCheckboxTargets.some(checkbox => checkbox.checked)\n if (!anyOptionsChecked) {\n this.anyCheckboxTarget.checked = true\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n connect() { }\n\n hide() {\n this.element.remove()\n }\n}","import { Controller } from \"@hotwired/stimulus\"\nimport { enter, leave } from \"el-transition\"; \n\nexport default class extends Controller {\n connect() {\n enter(this.element, \"flash\")\n }\n\n dismiss() {\n leave(this.element, \"flash\")\n }\n\n disconnect() {\n this.element.remove()\n }\n}","import { Controller} from \"@hotwired/stimulus\"\nimport autoComplete from \"@tarekraafat/autocomplete.js\"\nimport { get } from \"@rails/request.js\"\n\nexport default class extends Controller {\n static targets = ['input']\n static values = { type: Array, endpointUrl: String }\n\n connect() {\n this.inputTarget.focus()\n \n new autoComplete({\n debounce: 300,\n searchEngine: \"loose\",\n selector: `#${this.inputTarget.id}`,\n threshold: 2,\n\n data: {\n src: async () => {\n const response = await get(`/dashboard/search/new?term=${encodeURI(this.inputTarget.value)}`);\n if (response.ok) {\n const data = await response.json;\n return data;\n };\n },\n keys: [\"name\", \"description\"],\n cache: false\n },\n \n resultsList: {\n maxResults: 10,\n },\n\n resultItem: {\n element: (item, data) => {\n item.innerHTML = `${data.value.type} - ${data.value.name} ${data.value?.description}`;\n }\n },\n\n events: {\n input: {\n selection: (event) => {\n Turbo.visit(`/dashboard/searches/${event.detail.selection.value.gid}`)\n }\n }\n }\n });\n }\n}","import { Controller } from \"@hotwired/stimulus\"\nimport autoComplete from \"@tarekraafat/autocomplete.js\"\nimport { get } from \"@rails/request.js\"\n\nexport default class extends Controller {\n static targets = [\"valueInput\", \"searchInput\"]\n static values = { src: String }\n\n connect() { \n new autoComplete({\n debounce: 300,\n searchEngine: \"loose\",\n selector: `input#${this.searchInputTarget.id}[type=\"text\"]`,\n threshold: 2,\n \n data: {\n src: async () => {\n const response = await get(`${this.srcValue}?term=${encodeURI(this.searchInputTarget.value)}`);\n if (response.ok) {\n const data = await response.json;\n return data;\n };\n },\n keys: [\"label\"],\n cache: false\n },\n\n resultsList: {\n maxResults: 10,\n },\n\n resultItem: {\n highlight: true\n },\n\n events: {\n input: {\n selection: (event) => {\n const hiddenInput = document.createElement('input');\n hiddenInput.setAttribute('type', 'hidden');\n hiddenInput.setAttribute('name', this.searchInputTarget.name);\n hiddenInput.setAttribute('value', event.detail.selection.value.value);\n hiddenInput.setAttribute('data-field--autocomplete-target', 'valueInput');\n \n this.element.prepend(hiddenInput)\n\n this.searchInputTarget.value = event.detail.selection.value.label\n this.searchInputTarget.setAttribute(\"disabled\", true)\n }\n }\n }\n });\n }\n\n clear() {\n this.valueInputTarget.remove()\n this.searchInputTarget.disabled = false\n this.searchInputTarget.value = \"\"\n this.searchInputTarget.focus()\n }\n}","import { Controller} from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n connect() {\n this.element.querySelectorAll(\"a.active\").forEach(link => link.classList.remove('active'))\n \n let activeLink = this.element.querySelector(\"a[href^='\" + window.location.pathname.slice(0,3) + \"']\")\n if (activeLink) {\n activeLink.classList.add('active')\n }\n }\n\n highlight(event) {\n let activeLink = this.element.querySelector(\"a.active\")\n if (activeLink) {\n activeLink.classList.remove('active')\n }\n event.target.classList.add('active')\n }\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static values = { accountId: Number, assigneeId: Number }\n static targets = [ \"noteFooter\", \"noteSubjectLink\", \"noteContextLink\" ]\n\n connect() {\n if (location.pathname.indexOf(this.noteSubjectLinkTarget.pathname) > -1) {\n this.noteFooterTarget.classList.add(\"md:hidden\")\n }\n }\n}","import { Controller } from \"@hotwired/stimulus\"\n\nconst RADIO_SELECTION_TOGGLE = 'radio-fieldset-selection-toggle'\n\nexport default class extends Controller {\n static targets = [\"radioButton\", \"fieldsetContent\"]\n \n connect() {\n if (this.radioButtonTarget.checked) {\n this.checked()\n } else {\n this.unchecked()\n }\n\n document.addEventListener(RADIO_SELECTION_TOGGLE, this.handleSelection.bind(this));\n }\n\n toggle(event) {\n event.stopImmediatePropagation()\n\n const selectionEvent = new CustomEvent(RADIO_SELECTION_TOGGLE, {\n detail: {\n name: event.target.name,\n value: event.target.value\n }\n });\n\n document.dispatchEvent(selectionEvent);\n return false;\n }\n\n handleSelection(event) {\n if (event.detail.name === this.radioButtonTarget.name) {\n if (this.radioButtonTarget.checked) {\n this.checked()\n } else {\n this.unchecked()\n }\n }\n }\n\n checked() {\n this.fieldsetContentTarget.removeAttribute(\"disabled\")\n this.fieldsetContentTarget.removeAttribute(\"hidden\")\n }\n\n unchecked() {\n this.fieldsetContentTarget.setAttribute(\"disabled\", true)\n this.fieldsetContentTarget.setAttribute(\"hidden\", true)\n }\n}","var map = {\n\t\"./autoremove_controller.js\": 4592,\n\t\"./autoscroll_controller.js\": 319,\n\t\"./autosubmit_controller.js\": 8468,\n\t\"./basement_options_controller.js\": 8277,\n\t\"./chat_sidebar_controller.js\": 8074,\n\t\"./checkbox_reveal_controller.js\": 2066,\n\t\"./clipboard_controller.js\": 3157,\n\t\"./contract/assignee_role_controller.js\": 1530,\n\t\"./contract/person_form_controller.js\": 7550,\n\t\"./dashboard/search_controller.js\": 6586,\n\t\"./dashboard/tasks_controller.js\": 2956,\n\t\"./datepicker_controller.js\": 1507,\n\t\"./dropdown_controller.js\": 3130,\n\t\"./exclusive_checkbox_group_controller.js\": 5901,\n\t\"./field/autocomplete_controller.js\": 6910,\n\t\"./field/autosize_controller.js\": 460,\n\t\"./field/hashtag_controller.js\": 4538,\n\t\"./field/mention_controller.js\": 424,\n\t\"./field/select_frame_controller.js\": 7956,\n\t\"./field/timezone_controller.js\": 5272,\n\t\"./fieldset_selector_controller.js\": 1763,\n\t\"./flash_controller.js\": 6501,\n\t\"./guide/project_tasks_controller.js\": 3958,\n\t\"./hotkey_controller.js\": 7811,\n\t\"./hovercard_controller.js\": 9735,\n\t\"./index.js\": 584,\n\t\"./layout_controller.js\": 503,\n\t\"./leads/contact_autocomplete_controller.js\": 9422,\n\t\"./leads/entity_autocomplete_controller.js\": 8407,\n\t\"./location_select_controller.js\": 8219,\n\t\"./mentionable_controller.js\": 1576,\n\t\"./modal_controller.js\": 3444,\n\t\"./modal_frame_controller.js\": 4962,\n\t\"./modal_menu_controller.js\": 62,\n\t\"./nested_field_controller.js\": 773,\n\t\"./note_controller.js\": 7153,\n\t\"./notice_controller.js\": 6453,\n\t\"./person_search_controller.js\": 8389,\n\t\"./phone_call_controller.js\": 3890,\n\t\"./phone_numbers_controller.js\": 3404,\n\t\"./popup_controller.js\": 4585,\n\t\"./progressive_image_controller.js\": 4636,\n\t\"./radio_fieldset_selection_controller.js\": 7254,\n\t\"./referral_subsource_controller.js\": 4298,\n\t\"./reveal_controller.js\": 1234,\n\t\"./search_map_area_controller.js\": 5330,\n\t\"./select_reveal_controller.js\": 339,\n\t\"./sequence_controller.js\": 8642,\n\t\"./sidebar_controller.js\": 7031,\n\t\"./sortable_controller.js\": 8245,\n\t\"./subject_search_controller.js\": 7462,\n\t\"./tab_bar_controller.js\": 9628,\n\t\"./tabs_controller.js\": 5065,\n\t\"./task_controller.js\": 3078,\n\t\"./template_editor_controller.js\": 4921,\n\t\"controllers/autoremove_controller.js\": 4592,\n\t\"controllers/autoscroll_controller.js\": 319,\n\t\"controllers/autosubmit_controller.js\": 8468,\n\t\"controllers/basement_options_controller.js\": 8277,\n\t\"controllers/chat_sidebar_controller.js\": 8074,\n\t\"controllers/checkbox_reveal_controller.js\": 2066,\n\t\"controllers/clipboard_controller.js\": 3157,\n\t\"controllers/contract/assignee_role_controller.js\": 1530,\n\t\"controllers/contract/person_form_controller.js\": 7550,\n\t\"controllers/dashboard/search_controller.js\": 6586,\n\t\"controllers/dashboard/tasks_controller.js\": 2956,\n\t\"controllers/datepicker_controller.js\": 1507,\n\t\"controllers/dropdown_controller.js\": 3130,\n\t\"controllers/exclusive_checkbox_group_controller.js\": 5901,\n\t\"controllers/field/autocomplete_controller.js\": 6910,\n\t\"controllers/field/autosize_controller.js\": 460,\n\t\"controllers/field/hashtag_controller.js\": 4538,\n\t\"controllers/field/mention_controller.js\": 424,\n\t\"controllers/field/select_frame_controller.js\": 7956,\n\t\"controllers/field/timezone_controller.js\": 5272,\n\t\"controllers/fieldset_selector_controller.js\": 1763,\n\t\"controllers/flash_controller.js\": 6501,\n\t\"controllers/guide/project_tasks_controller.js\": 3958,\n\t\"controllers/hotkey_controller.js\": 7811,\n\t\"controllers/hovercard_controller.js\": 9735,\n\t\"controllers/index.js\": 584,\n\t\"controllers/layout_controller.js\": 503,\n\t\"controllers/leads/contact_autocomplete_controller.js\": 9422,\n\t\"controllers/leads/entity_autocomplete_controller.js\": 8407,\n\t\"controllers/location_select_controller.js\": 8219,\n\t\"controllers/mentionable_controller.js\": 1576,\n\t\"controllers/modal_controller.js\": 3444,\n\t\"controllers/modal_frame_controller.js\": 4962,\n\t\"controllers/modal_menu_controller.js\": 62,\n\t\"controllers/nested_field_controller.js\": 773,\n\t\"controllers/note_controller.js\": 7153,\n\t\"controllers/notice_controller.js\": 6453,\n\t\"controllers/person_search_controller.js\": 8389,\n\t\"controllers/phone_call_controller.js\": 3890,\n\t\"controllers/phone_numbers_controller.js\": 3404,\n\t\"controllers/popup_controller.js\": 4585,\n\t\"controllers/progressive_image_controller.js\": 4636,\n\t\"controllers/radio_fieldset_selection_controller.js\": 7254,\n\t\"controllers/referral_subsource_controller.js\": 4298,\n\t\"controllers/reveal_controller.js\": 1234,\n\t\"controllers/search_map_area_controller.js\": 5330,\n\t\"controllers/select_reveal_controller.js\": 339,\n\t\"controllers/sequence_controller.js\": 8642,\n\t\"controllers/sidebar_controller.js\": 7031,\n\t\"controllers/sortable_controller.js\": 8245,\n\t\"controllers/subject_search_controller.js\": 7462,\n\t\"controllers/tab_bar_controller.js\": 9628,\n\t\"controllers/tabs_controller.js\": 5065,\n\t\"controllers/task_controller.js\": 3078,\n\t\"controllers/template_editor_controller.js\": 4921\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 7461;","import { Controller} from \"@hotwired/stimulus\"\nimport autoComplete from \"@tarekraafat/autocomplete.js\"\nimport { get } from \"@rails/request.js\"\n\nexport default class extends Controller {\n static targets = ['input']\n static values = { type: Array, endpointUrl: String }\n\n connect() {\n this.inputTarget.focus()\n \n new autoComplete({\n debounce: 300,\n searchEngine: \"loose\",\n selector: `#${this.inputTarget.id}`,\n threshold: 2,\n\n data: {\n src: async () => {\n const response = await get(`/subjects/search/new?term=${encodeURI(this.inputTarget.value)}&type=${this.typeValue}`);\n if (response.ok) {\n const data = await response.json;\n return data;\n };\n },\n keys: [\"name\", \"description\"],\n cache: false\n },\n \n resultsList: {\n maxResults: 10,\n },\n\n resultItem: {\n element: (item, data) => {\n item.innerHTML = `${data.value.type} - ${data.value.name} ${data.value?.description}`;\n }\n },\n\n events: {\n input: {\n selection: (event) => {\n this.element.closest(\"turbo-frame\").setAttribute(\"src\", `/subjects/${event.detail.selection.value.gid}/${this.endpointUrlValue}?source=search&subject=true`)\n }\n }\n }\n });\n }\n}","import { Controller } from \"@hotwired/stimulus\"\nimport autoComplete from \"@tarekraafat/autocomplete.js\"\nimport autosize from \"autosize\"\nimport { get } from \"@rails/request.js\"\n\nexport default class extends Controller {\n static targets = [\"searchField\", \"searchValue\", \"searchFieldset\", \"personFieldset\"]\n\n connect() {\n if (this.searchFieldTarget) {\n new autoComplete({\n searchEngine: \"loose\",\n selector: `#${this.searchFieldTarget.id}`,\n threshold: 2,\n debounce: 300,\n\n data: {\n src: async () => {\n const response = await get(`/people/autocomplete?term=${encodeURI(this.searchFieldTarget.value)}`);\n if (response.ok) {\n const data = await response.json;\n if (data.length == 0) {\n return [ { label: `Create \"${this.searchFieldTarget.value}\"`, value: null } ]\n } else {\n return data;\n }\n }\n },\n keys: [\"label\"],\n cache: false\n },\n \n resultsList: {\n maxResults: 10\n },\n\n resultItem: {\n highlight: true,\n },\n\n events: {\n input: {\n selection: (event) => {\n if (event.detail.selection.value.value == null) {\n this.searchFieldsetTarget.classList.add(\"hidden\");\n this.personFieldsetTarget.classList.remove(\"hidden\");\n \n this.personFieldsetTarget.querySelector(\"input\").value = this.searchFieldTarget.value;\n\n window.setTimeout( () => {\n this.personFieldsetTarget.querySelector(\"input[type=email]\").focus();\n autosize(this.personFieldsetTarget.querySelector(\"textarea\"));\n }, 0);\n } else {\n this.searchFieldTarget.value = event.detail.selection.value.label;\n this.searchFieldTarget.disabled = true;\n this.searchValueTarget.value = event.detail.selection.value.value;\n\n this.searchFieldTarget.blur();\n }\n }\n }\n } \n });\n }\n }\n}","import { Controller } from \"@hotwired/stimulus\"\nimport { install, uninstall } from \"@github/hotkey\"\n\nexport default class extends Controller {\n connect() {\n install(this.element)\n }\n\n disconnect() {\n uninstall(this.element)\n }\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static values = { id: String }\n\n connect() { }\n\n refresh(e) {\n let turboFrame = document.getElementById(this.idValue)\n \n if (e.target.value) {\n turboFrame.setAttribute(\"src\", `/subjects/${e.target.value}/phone_calls/assistance`)\n } else {\n turboFrame.setAttribute(\"src\", turboFrame.dataset.fallback)\n }\n }\n}","import { Controller} from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = ['list']\n\n connect() {\n let activeChat = this.element.querySelector(\"a[href='\" + window.location.pathname + \"']\")\n if (activeChat) {\n activeChat.classList.add('active')\n }\n }\n\n highlight(event) {\n let activeLink = this.listTarget.querySelector(\"a.active\")\n if (activeLink) {\n activeLink.classList.remove('active')\n }\n event.target.closest('a').classList.add('active')\n }\n}","import { Controller } from \"@hotwired/stimulus\"\nimport TomSelect from \"tom-select\"\nimport \"tom-select/dist/css/tom-select.css\"\nimport { get } from \"@rails/request.js\"\n\nexport default class extends Controller {\n static targets = [\"select\"]\n static values = { \n initialOptions: Array,\n selected: Array\n }\n\n connect() {\n this.tomSelect = new TomSelect(this.selectTarget, {\n valueField: 'id',\n labelField: 'name',\n searchField: 'name',\n highlight: true,\n plugins: ['remove_button'],\n persist: false,\n createOnBlur: false,\n create: false,\n maxItems: null,\n hideSelected: false,\n closeAfterSelect: true,\n allowEmptyOption: true,\n loadThrottle: 300,\n maxOptions: 50,\n preload: true,\n load: (query, callback) => {\n if (!query.length) {\n callback(this.initialOptionsValue)\n return\n }\n this.load(query, callback)\n },\n render: {\n no_results: () => {\n return `\n