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compliant/./app/webpacker/controllers/shared/enter_triggers_click_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/modal_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/form/prevent_text_submit_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/expand_accordions_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/turbo/list_item_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/scorm_api_listener_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/form_rc_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/hidden_modal_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/form/radio_reveal_controller.js","webpack://iam-compliant/./app/webpacker/lib/stimulus.js","webpack://iam-compliant/./app/webpacker/controllers/shared/datepicker_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/filter_toggle_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/form/min_max_restrictor_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/split_date_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/steal_focus_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/sustainability/action_item_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/fetch_block_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/tabs_controller.js","webpack://iam-compliant/./app/webpacker/lib/event_bus.js","webpack://iam-compliant/./app/webpacker/controllers/shared/read_more_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/nested_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/ sync _controller\\.js$","webpack://iam-compliant/./app/webpacker/controllers/shared/form/zone_picker_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/toggler_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/toggle_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/auto_submit_form_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/form/array_input_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/turbo/list_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/fullscreen_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/refresh_page_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/accordion_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/form/currency_input_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/tooltip_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/hidden_field_sync_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/turbo/scroll_on_frame_load_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/autosize_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/sustainability/external_links_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/date_mask_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/sortable_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/presence_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/self_destruct_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/refresh_turbo_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/form/priority_grade_input_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/form/trix_incomplete_upload_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/flash_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/highlight_external_links_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/form/zone_selector_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/pie_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/chart_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/survey_task_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/turbo/auto_redirect_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/turbo/reload_frame_controller.js","webpack://iam-compliant/./app/webpacker/trix_features/video_embed.js","webpack://iam-compliant/./app/webpacker/controllers/shared/form/association_selector_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/trigger_refresh_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/embedded_how_to_article_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/nested_destroy_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/remote_listener_controller.js","webpack://iam-compliant/./app/webpacker/controllers/shared/clipboard_controller.js"],"sourcesContent":["export function requestSubmit(form) {\n let submitButton = form.querySelector('button[type=submit]');\n\n if (form.requestSubmit) {\n // Normal case: non-Safari browsers\n form.requestSubmit();\n\n } else if(submitButton) {\n // Safari and the form has a submit button\n submitButton.click();\n\n } else {\n // Safari and no submit button\n submitButton = document.createElement('button');\n submitButton.type = 'submit';\n submitButton.style.display = 'none';\n submitButton.dataset.sythentic = 'true';\n form.insertAdjacentElement('beforeend', submitButton);\n\n submitButton.click();\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n\n static targets = [\n 'clickRecipient'\n ]\n\n triggerClick(e) {\n e.preventDefault();\n\n this.clickRecipientTarget.click();\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static values = { closeOnSubmit: Boolean }\n static get targets() {\n return ['modal']\n }\n\n connect() {\n this.toggleBodyScroll();\n if (!this.modalTarget.classList.contains('hide')) {\n this.focusFirst();\n }\n\n document.addEventListener(\"keydown\", this.escapeListener.bind(this));\n }\n\n disconnect() {\n this.toggleBodyScroll();\n document.removeEventListener(\"keydown\", this.escapeListener.bind(this));\n }\n\n backgroundClick(event) {\n if (this.modalTarget === event.target) {\n this.closeModal()\n }\n }\n \n toggleBodyScroll() {\n document.querySelector('body').classList.toggle(\"no-scroll\")\n }\n\n submitForm(event) {\n const status = event.detail.fetchResponse.response.status\n if (status === 200 && this.closeOnSubmitValue) {\n this.closeModal()\n }\n }\n\n escapeListener(e) {\n if (e.key === \"Escape\") {\n if (!this.modalTarget.classList.contains('hide')) {\n this.closeModal();\n }\n }\n }\n\n focusFirst() {\n let elements = Array.from(this.element.querySelectorAll('input, select'));\n for (let i = 0; i < elements.length; i++) {\n let elem = elements[i];\n if ((elem.tagName === 'INPUT' && elem.type !== 'hidden') || elem.tagName === 'SELECT') {\n if (!elem.classList.contains('hidden')) {\n elem.focus();\n break;\n }\n }\n }\n }\n\n closeModal() {\n this.element.remove();\n }\n}\n","import { Controller } from '@hotwired/stimulus';\nimport { get } from 'lodash-es';\n\nexport default class extends Controller {\n connect() {\n this.element.addEventListener('keydown', this.preventSubmission.bind(this))\n }\n\n preventSubmission(e) {\n if (get(e, 'keyCode') === 13) {\n e.preventDefault()\n }\n }\n\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n\n static values = {\n collapse: Boolean\n }\n\n connect() {\n this.collapseValue = !this.collapseValue\n }\n\n toggleAll() {\n this.collapseValue = !this.collapseValue\n const sections = document.querySelectorAll('.accordion-section')\n sections.forEach(section => {\n !this.collapseValue ? section.classList.add(\"active\") : section.classList.remove(\"active\")\n });\n const buttonText = this.collapseValue ? \"Expand all\" : \"Collapse all\"\n this.element.innerHTML = buttonText\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n\n static values = {\n status: String,\n delayTimeout: { type: Number, default: 1000 }\n }\n\n connect() {\n if (this.statusValue == 'deleted') {\n setTimeout(() => this.dispatch('deleted'), this.delayTimeoutValue)\n }\n }\n\n}","import { Controller } from '@hotwired/stimulus'\nimport { get } from 'lodash-es'\n\nexport default class extends Controller {\n static targets = ['form', 'data']\n static values = { origin: String }\n\n connect() {\n this.setupListener()\n }\n\n setupListener() {\n window.addEventListener('message', event => {\n if (event.origin === this.originValue) {\n if (!this.hasDataTarget) {\n console.error('unable to submit lesson data - no data target')\n return false\n }\n const data = get(event, 'data', {})\n console.log('Message received from iframe:', event.data)\n this.dataTarget.value = JSON.stringify(event.data)\n\n if (!this.hasFormTarget) {\n console.error('unable to submit lesson data - no form target')\n return false\n }\n this.formTarget.requestSubmit()\n }\n })\n }\n}","import { FormRcController } from 'stimulus-library'\nimport { debounce } from 'lodash-es'\n\nexport default class extends FormRcController {\n\n connect() {\n // extend the stimulus libary version to include a debounce\n this.debounceSubmit = debounce(this.submit.bind(this), 200)\n }\n\n}","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static outlets = ['modal']\n static values = { modalSelector: String }\n\n toggleModal(e) {\n e.preventDefault()\n const template = this.modalContent();\n const clonedElement = document.importNode(template, true);\n const originalElement = document.getElementById('modal')\n originalElement.parentNode.replaceChild(clonedElement, originalElement);\n }\n\n modalContent() {\n if (this.hasModalSelectorValue) {\n return document.querySelector(this.modalSelectorValue).content;\n }\n return this.element.nextElementSibling.content;\n }\n}","// This controller allow you to have a set of radio buttons in a form that can show a correspondingly\n// identified element and enable its inputs.\n// All other elements identified by the other radio buttons will be hidden and inputs disabled.\n\nimport { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [\"option\", \"content\"]\n\n connect() {\n this.select();\n }\n\n select() {\n const selectedOption = this.optionTargets.find(o => o.querySelector('input[type=\"radio\"]').checked);\n const identifier = selectedOption ? selectedOption.dataset.revealIdentifier : null;\n\n // Hide and disable the corresponding element and its inputs when its radio option is not checked\n this.contentTargets.forEach((elem) => {\n if (elem.dataset.revealIdentifier === identifier) {\n elem.classList.remove(\"hide\");\n this.enableInputsFor(elem, true);\n } else {\n elem.classList.add(\"hide\");\n this.enableInputsFor(elem, false);\n }\n })\n }\n\n enableInputsFor(elem, shouldEnable) {\n // If any other input types need disabling when the corresponding radio button is not checked\n // then add them here\n const inputs = elem.querySelectorAll('input, select, textarea');\n inputs.forEach(input => {\n input.disabled = !shouldEnable;\n });\n }\n}\n","import { definitionsFromContext } from \"@hotwired/stimulus-webpack-helpers\";\n\nexport function loadStimulusDefinitionsFromContexts(application, ...context) {\n context.forEach(context => application.load(definitionsFromContext(context)));\n}","import Flatpickr from 'stimulus-flatpickr';\nimport { requestSubmit } from '../../lib/request_submit';\nimport { merge, omitBy, isUndefined, isNull } from 'lodash-es'\n\nexport default class extends Flatpickr {\n static targets = ['instance', 'clear'];\n\n connect() {\n this.config = this.instanceDateOptions();\n\n if (this.hasClearTarget) {\n this.instanceTarget.addEventListener('change', this.updateClearButtonVisibility.bind(this));\n this.updateClearButtonVisibility();\n }\n\n super.connect();\n }\n\n instanceDateOptions() {\n // flatpickr options derived from the input see DatepickerInput.flatpickr_data\n return merge(this.defaultDateOptions(), this.customDateOptions(), {\n onClose: (_dates, dateStr, instance) => {\n instance.element.value = dateStr;\n\n if (this.instanceTarget.dataset.submitOnClose === 'true') {\n requestSubmit(instance.element.form);\n }\n },\n });\n }\n\n customDateOptions() {\n return omitBy({\n minDate: this.instanceTarget.dataset.flatpickrMinDate,\n maxDate: this.instanceTarget.dataset.flatpickrMaxDate,\n enableTime: this.instanceTarget.dataset.flatpickrEnableTime,\n mode: this.instanceTarget.dataset.flatpickrMode,\n altFormat: this.instanceTarget.dataset.flatpickrAltFormat,\n }, this.isBlankOption)\n }\n\n defaultDateOptions() {\n return {\n altInput: true,\n altFormat: 'l, F J Y',\n time_24hr: true,\n };\n }\n\n isBlankOption(val) {\n if (isUndefined(val) || isNull(val)) {\n return true\n }\n\n return val.toString().length == 0\n }\n\n updateClearButtonVisibility() {\n if (this.instanceTarget.value) {\n this.clearTarget.classList.remove('hide');\n } else {\n this.clearTarget.classList.add('hide');\n }\n }\n\n clearTargetClicked() {\n this.instanceTarget._flatpickr.clear();\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = ['toggleIcon', 'options']\n\n static values = {\n open: { type: Boolean, default: false }\n }\n\n\n toggleOptions () {\n if (this.toggleIconTarget.classList.contains('fa-plus')) {\n this.toggleIconTarget.classList.remove('fa-plus')\n this.toggleIconTarget.classList.add('fa-minus')\n this.optionsTarget.classList.remove('hide');\n this.openValue = true\n } else {\n this.toggleIconTarget.classList.remove('fa-minus')\n this.toggleIconTarget.classList.add('fa-plus')\n this.openValue = false\n this.optionsTarget.classList.add('hide');\n }\n }\n }\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [\"minValue\", \"maxValue\"]\n\n connect() {\n this.updateSelectors();\n }\n\n updateSelectors() {\n const minSelect = this.minValueTarget;\n const maxSelect = this.maxValueTarget;\n const minValue = minSelect.value === '' ? null : parseInt(minSelect.value, 10);\n const maxValue = maxSelect.value === '' ? null : parseInt(maxSelect.value, 10);\n\n Array.from(maxSelect.options).forEach(option => {\n if (option.value !== '') {\n const optionValue = parseInt(option.value, 10);\n option.disabled = minValue !== null && optionValue < minValue;\n }\n });\n\n Array.from(minSelect.options).forEach(option => {\n if (option.value !== '') {\n const optionValue = parseInt(option.value, 10);\n option.disabled = maxValue !== null && optionValue > maxValue;\n }\n });\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n\n static targets = ['input']\n static values = {\n yearSelector: String,\n monthSelector: String,\n daySelector: String\n }\n\n connect() {\n this.updateDateFields();\n }\n\n updateDateFields() {\n const datePickerInput = this.inputTarget;\n\n if (datePickerInput) {\n const date = datePickerInput.value;\n\n if (date.length > 0) {\n const md = moment(date);\n\n // Use the selectors to find and update the inputs\n document.querySelector(this.yearSelectorValue).value = md.year().toString();\n document.querySelector(this.monthSelectorValue).value = (md.month() + 1).toString(); // month is 0-indexed\n document.querySelector(this.daySelectorValue).value = md.date().toString();\n }\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus';\n\nexport default class extends Controller {\n connect() {\n this.element.focus();\n const length = this.element.value.length;\n this.element.setSelectionRange(length, length);\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { escapeRegExp, get } from \"lodash-es\"\n\nexport default class extends Controller {\n static targets = [\n \"actionForm\",\n \"statusInput\",\n \"ownerInput\",\n \"findUserInput\",\n \"scoreInput\",\n \"circlesWrapper\",\n \"circle\"\n ]\n\n connect() {\n if (this.hasScoreInputTarget) {\n this.updateCircles(this.scoreInputTarget?.value || 0)\n this.circleTargets.forEach((circle, index) => {\n circle.addEventListener(\"mouseover\", () => this.previewActiveCircles(index))\n circle.addEventListener(\"mouseleave\", () => this.clearPreview())\n })\n }\n }\n\n previewActiveCircles(index) {\n this.circleTargets.forEach((circle, i) => {\n circle.classList.toggle(\"active\", i <= index)\n })\n }\n\n clearPreview() {\n const index = this.scoreInputTarget.value\n this.updateCircles(index)\n }\n\n\n setScore(event) {\n const index = this.circleTargets.indexOf(event.currentTarget) + 1\n this.scoreInputTarget.value = index\n this.updateCircles(index)\n }\n\n updateCircles(score) {\n this.circleTargets.forEach((circle, i) => {\n if (i < score) {\n circle.classList.add(\"active\") // Add your active styling class here\n } else {\n circle.classList.remove(\"active\")\n }\n })\n }\n\n findUser(event) {\n const regex = new RegExp(\".*\\\\b\" + escapeRegExp(this.findUserInputTarget.value) + \".*\", \"gi\")\n let userOptions = this.element.querySelectorAll(\".user-option\")\n let matchCount = 0\n if (this.findUserInputTarget.value.length > 0) {\n userOptions.forEach(function (elem, index) {\n if (elem.textContent.match(regex)) {\n elem.classList.remove(\"hide\")\n matchCount += 1\n } else {\n elem.classList.add(\"hide\")\n }\n })\n }\n if (matchCount == 0) {\n userOptions.forEach(function (elem, index) {\n elem.classList.add(\"hide\")\n })\n }\n }\n\n setStatus(event) {\n let statusId = event.currentTarget.dataset.status\n if (this.statusInputTarget.value == statusId) {\n event.preventDefault()\n return false\n }\n\n this.statusInputTarget.value = statusId\n this.actionFormTarget.submit()\n }\n\n setOwner(event) {\n let ownerId = event.currentTarget.dataset.owner\n let assignPath = event.currentTarget.dataset.path\n this.ownerInputTarget.value = ownerId\n this.actionFormTarget.action = assignPath\n this.actionFormTarget.submit()\n }\n}\n","import {BaseController} from \"stimulus-library\";\n\n/*\n * The `replace(event)` action replaces the contents of the block\n * target with HTML returned from its `event.target.url`, then scrolls\n * heading target into view\n *\n * To use it with kaminari pagination, use the templates that link here, with\n * ```\n * paginate @completion_records, param_name: 'completed_page', views_prefix: 'ajax'\n * ```\n *\n * Error recovery is based on loading event.target.url so configure the server to respond with a full page when not XHR.\n */\nexport default class FetchBlockController extends BaseController {\n static targets = ['block', 'heading'];\n\n async replace(event) {\n const url = event.target.href;\n event.preventDefault();\n\n try {\n this.blockTarget.innerHTML = `
Loading ...
`;\n\n if (url === document.URL) {\n return;\n }\n\n const html = await fetch(\n url,\n {headers: {'X-Requested-With': 'XMLHttpRequest'}},\n );\n\n if (html.ok) {\n window.history.pushState({}, document.title, url);\n this.blockTarget.outerHTML = await html.text();\n this.headingTarget.scrollIntoView();\n } else {\n location.assign(url);\n }\n } catch (error) {\n location.assign(url);\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { find, get } from 'lodash-es'\n\nexport default class extends Controller {\n\n static targets = ['tab', 'content']\n static values = {\n navigationEnabled: Boolean\n }\n\n connect() {\n this.tabTargets.forEach((tab) => {\n tab.addEventListener('click', this.selectTab.bind(this))\n })\n\n if (this.navigationEnabledValue && location.hash) {\n const tabTarget = find(this.tabTargets, (tab) => { return tab.dataset.tabId == location.hash.replace('#', '') })\n if (tabTarget) {\n tabTarget.click()\n }\n }\n }\n\n selectTab(e) {\n this.tabTargets.forEach((tab) => {\n if (tab == e.currentTarget) {\n tab.classList.add('active')\n this.activateContent(tab.dataset.contentId)\n this.setNavigationHash(tab.dataset.tabId)\n } else {\n tab.classList.remove('active')\n }\n })\n }\n\n activateContent(contentId) {\n this.contentTargets.forEach((elem) => {\n if (elem.getAttribute('id') == contentId) {\n elem.classList.add('active')\n } else {\n elem.classList.remove('active')\n }\n })\n }\n\n setNavigationHash(tabId) {\n if (this.navigationEnabledValue) {\n window.history.pushState(null, null, `#${tabId}`)\n }\n }\n\n}\n","import mitt from 'mitt'\n\nexport const EventBus = mitt();","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"content\"]\n static values = {\n moreText: String,\n lessText: String\n }\n\n connect() {\n this.open = false\n }\n\n toggle(event) {\n this.open === false ? this.show(event) : this.hide(event)\n }\n\n show(event) {\n this.open = true\n\n const target = event.target\n target.innerHTML = this.lessTextValue\n this.contentTarget.style.setProperty(\"--read-more-line-clamp\", \"'unset'\")\n }\n\n hide(event) {\n this.open = false\n\n const target = event.target\n target.innerHTML = this.moreTextValue\n this.contentTarget.style.removeProperty(\"--read-more-line-clamp\")\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"links\", \"template\"]\n\n connect() {\n this.wrapperSelector = this.element.dataset.wrapperSelector || \".nested-fields\"\n this.containerSelector = this.element.dataset.containerSelector || '.nested-container'\n this.keepRemovedHidden()\n this.updateCounts()\n this.updateRemoves()\n }\n\n add(event) {\n event.preventDefault()\n\n let new_item = this.templateTarget.content.firstElementChild.cloneNode(true)\n new_item.innerHTML = new_item.innerHTML.replace(/NEW_RECORD/g, new Date().getTime())\n\n let container = this.element.querySelector(this.containerSelector)\n container.appendChild(new_item)\n\n let inputs = new_item.querySelectorAll('input[type=\"text\"]')\n inputs[inputs.length - 1].focus()\n\n this.updateCounts()\n this.updateRemoves()\n }\n\n remove(event) {\n event.preventDefault()\n\n if (!confirm(\"Are you sure?\")) { return }\n\n let wrapper = event.target.closest(this.wrapperSelector)\n\n // New records are simply removed from the page\n if (\"new\" in wrapper.dataset) {\n wrapper.remove()\n\n // Existing records are hidden and flagged for deletion\n } else {\n wrapper.querySelector(\"input[name*='_destroy']\").value = 1\n wrapper.style.display = 'none'\n }\n\n this.updateCounts()\n this.updateRemoves()\n }\n\n updateCounts() {\n let count = 1\n let wrappers = this.element.querySelectorAll(this.wrapperSelector)\n wrappers.forEach((wrapper) => {\n let countLabel = wrapper.querySelector('[data-count]')\n if (countLabel) {\n countLabel.innerHTML = count\n count += 1\n }\n })\n }\n\n updateRemoves() {\n let removes = this.element.querySelectorAll('[data-remove]')\n const num_items = removes.length\n\n if (num_items == 1) {\n this.element.querySelector('[data-remove]').classList.add('hide')\n } else {\n removes.forEach((item) => {\n item.classList.remove('hide')\n })\n }\n }\n\n keepRemovedHidden() {\n const removes = this.element.querySelectorAll('[data-remove]')\n removes.forEach((item) => {\n let wrapper = item.closest(this.wrapperSelector)\n let hiddenDestroyField = wrapper.querySelector(\"input[name*='_destroy']\")\n if (hiddenDestroyField.value == '1' || hiddenDestroyField.value == 'true') {\n wrapper.style.display = 'none'\n }\n })\n }\n}\n","var map = {\n\t\"./accordion_controller.js\": 51564,\n\t\"./auto_submit_form_controller.js\": 37435,\n\t\"./autosize_controller.js\": 60240,\n\t\"./chart_controller.js\": 78558,\n\t\"./clipboard_controller.js\": 99936,\n\t\"./date_mask_controller.js\": 61013,\n\t\"./datepicker_controller.js\": 16544,\n\t\"./embedded_how_to_article_controller.js\": 93338,\n\t\"./enter_triggers_click_controller.js\": 785,\n\t\"./expand_accordions_controller.js\": 2688,\n\t\"./fetch_block_controller.js\": 20420,\n\t\"./filter_toggle_controller.js\": 17655,\n\t\"./flash_controller.js\": 73644,\n\t\"./form/array_input_controller.js\": 39135,\n\t\"./form/association_selector_controller.js\": 91140,\n\t\"./form/currency_input_controller.js\": 53335,\n\t\"./form/min_max_restrictor_controller.js\": 17850,\n\t\"./form/prevent_text_submit_controller.js\": 1658,\n\t\"./form/priority_grade_input_controller.js\": 73110,\n\t\"./form/radio_reveal_controller.js\": 15752,\n\t\"./form/trix_incomplete_upload_controller.js\": 73451,\n\t\"./form/zone_picker_controller.js\": 31518,\n\t\"./form/zone_selector_controller.js\": 75531,\n\t\"./form_rc_controller.js\": 8030,\n\t\"./fullscreen_controller.js\": 45321,\n\t\"./hidden_field_sync_controller.js\": 55995,\n\t\"./hidden_modal_controller.js\": 10996,\n\t\"./highlight_external_links_controller.js\": 75198,\n\t\"./modal_controller.js\": 961,\n\t\"./nested_controller.js\": 24487,\n\t\"./nested_destroy_controller.js\": 96288,\n\t\"./pie_controller.js\": 77628,\n\t\"./presence_controller.js\": 63045,\n\t\"./read_more_controller.js\": 22698,\n\t\"./refresh_page_controller.js\": 45635,\n\t\"./refresh_turbo_controller.js\": 69566,\n\t\"./remote_listener_controller.js\": 97951,\n\t\"./scorm_api_listener_controller.js\": 6980,\n\t\"./self_destruct_controller.js\": 65653,\n\t\"./sortable_controller.js\": 62346,\n\t\"./split_date_controller.js\": 17977,\n\t\"./steal_focus_controller.js\": 17994,\n\t\"./survey_task_controller.js\": 83996,\n\t\"./sustainability/action_item_controller.js\": 19732,\n\t\"./sustainability/external_links_controller.js\": 60763,\n\t\"./tabs_controller.js\": 20938,\n\t\"./toggle_controller.js\": 36450,\n\t\"./toggler_controller.js\": 35788,\n\t\"./tooltip_controller.js\": 53479,\n\t\"./trigger_refresh_controller.js\": 91278,\n\t\"./turbo/auto_redirect_controller.js\": 89555,\n\t\"./turbo/list_controller.js\": 41549,\n\t\"./turbo/list_item_controller.js\": 6469,\n\t\"./turbo/reload_frame_controller.js\": 90016,\n\t\"./turbo/scroll_on_frame_load_controller.js\": 59119,\n\t\"controllers/shared/accordion_controller.js\": 51564,\n\t\"controllers/shared/auto_submit_form_controller.js\": 37435,\n\t\"controllers/shared/autosize_controller.js\": 60240,\n\t\"controllers/shared/chart_controller.js\": 78558,\n\t\"controllers/shared/clipboard_controller.js\": 99936,\n\t\"controllers/shared/date_mask_controller.js\": 61013,\n\t\"controllers/shared/datepicker_controller.js\": 16544,\n\t\"controllers/shared/embedded_how_to_article_controller.js\": 93338,\n\t\"controllers/shared/enter_triggers_click_controller.js\": 785,\n\t\"controllers/shared/expand_accordions_controller.js\": 2688,\n\t\"controllers/shared/fetch_block_controller.js\": 20420,\n\t\"controllers/shared/filter_toggle_controller.js\": 17655,\n\t\"controllers/shared/flash_controller.js\": 73644,\n\t\"controllers/shared/form/array_input_controller.js\": 39135,\n\t\"controllers/shared/form/association_selector_controller.js\": 91140,\n\t\"controllers/shared/form/currency_input_controller.js\": 53335,\n\t\"controllers/shared/form/min_max_restrictor_controller.js\": 17850,\n\t\"controllers/shared/form/prevent_text_submit_controller.js\": 1658,\n\t\"controllers/shared/form/priority_grade_input_controller.js\": 73110,\n\t\"controllers/shared/form/radio_reveal_controller.js\": 15752,\n\t\"controllers/shared/form/trix_incomplete_upload_controller.js\": 73451,\n\t\"controllers/shared/form/zone_picker_controller.js\": 31518,\n\t\"controllers/shared/form/zone_selector_controller.js\": 75531,\n\t\"controllers/shared/form_rc_controller.js\": 8030,\n\t\"controllers/shared/fullscreen_controller.js\": 45321,\n\t\"controllers/shared/hidden_field_sync_controller.js\": 55995,\n\t\"controllers/shared/hidden_modal_controller.js\": 10996,\n\t\"controllers/shared/highlight_external_links_controller.js\": 75198,\n\t\"controllers/shared/modal_controller.js\": 961,\n\t\"controllers/shared/nested_controller.js\": 24487,\n\t\"controllers/shared/nested_destroy_controller.js\": 96288,\n\t\"controllers/shared/pie_controller.js\": 77628,\n\t\"controllers/shared/presence_controller.js\": 63045,\n\t\"controllers/shared/read_more_controller.js\": 22698,\n\t\"controllers/shared/refresh_page_controller.js\": 45635,\n\t\"controllers/shared/refresh_turbo_controller.js\": 69566,\n\t\"controllers/shared/remote_listener_controller.js\": 97951,\n\t\"controllers/shared/scorm_api_listener_controller.js\": 6980,\n\t\"controllers/shared/self_destruct_controller.js\": 65653,\n\t\"controllers/shared/sortable_controller.js\": 62346,\n\t\"controllers/shared/split_date_controller.js\": 17977,\n\t\"controllers/shared/steal_focus_controller.js\": 17994,\n\t\"controllers/shared/survey_task_controller.js\": 83996,\n\t\"controllers/shared/sustainability/action_item_controller.js\": 19732,\n\t\"controllers/shared/sustainability/external_links_controller.js\": 60763,\n\t\"controllers/shared/tabs_controller.js\": 20938,\n\t\"controllers/shared/toggle_controller.js\": 36450,\n\t\"controllers/shared/toggler_controller.js\": 35788,\n\t\"controllers/shared/tooltip_controller.js\": 53479,\n\t\"controllers/shared/trigger_refresh_controller.js\": 91278,\n\t\"controllers/shared/turbo/auto_redirect_controller.js\": 89555,\n\t\"controllers/shared/turbo/list_controller.js\": 41549,\n\t\"controllers/shared/turbo/list_item_controller.js\": 6469,\n\t\"controllers/shared/turbo/reload_frame_controller.js\": 90016,\n\t\"controllers/shared/turbo/scroll_on_frame_load_controller.js\": 59119\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 = 30449;","import { Controller } from \"@hotwired/stimulus\"\nimport { get } from 'lodash-es'\n\nexport default class extends Controller {\n\n static targets = [\"input\", \"display\", \"reset\"]\n\n zoneSelected(e) {\n // handle custom event triggered from the zone selector modal\n e.preventDefault()\n\n const selectedZoneId = get(e, 'detail.zone.id')\n if (this.hasInputTarget) {\n this.inputTarget.value = selectedZoneId\n }\n if (this.hasDisplayTarget) {\n this.displayTarget.textContent = get(e, 'detail.zone.path_name')\n }\n\n if (this.hasResetTarget) {\n if (selectedZoneId) {\n this.resetTarget.classList.remove('hide')\n } else {\n this.resetTarget.classList.add('hide')\n }\n }\n }\n\n reset(e) {\n if (this.hasResetTarget) {\n this.resetTarget.classList.add('hide')\n }\n window.dispatchEvent(new CustomEvent('location-zone-selected', { detail: { zone: { id: '', path_name: 'No zone selected' } } }))\n }\n}\n","import { BaseController } from 'stimulus-library';\nimport { get } from 'lodash-es'\n\n/*\n * to toggle on the value of an input, mark the input with the switch action, and the togglee with a `data-switch` attribute\n * to match input value when you want the togglee to be shown.\n *\n * Example:\n * ```\n * -# shows the cost input only when the 'external' radio button is selected\n * = f.input :completed_by, as: :radio_buttons,\n * collection: [['Internally, 'internal'], ['Outsourced', 'external']],\n * wrapper_html: {'data-action': 'change->toggler#switch'}\n *\n * .hide{'data-toggler-target': 'togglee', 'data-switch': 'external'}= f.input :cost,\n * ```\n */\nexport default class Toggler extends BaseController {\n static targets = ['togglee']\n\n connect() {\n this.toggleeTargets.forEach((toggle) => {\n this.display_default_state(toggle);\n });\n }\n\n hide(e) {\n if (!e.target.checked && !e.target.selected) { return; }\n\n this.toggleeTargets.forEach((item) => {\n this.hide_item(item)\n });\n }\n\n show(e) {\n if (!e.target.checked && !e.target.selected) { return; }\n\n this.toggleeTargets.forEach((item) => {\n this.show_item(item)\n });\n }\n\n toggle() {\n this.toggleeTargets.forEach((item) => {\n this.toggle_item(item)\n });\n }\n\n switch(e) {\n this.toggleeTargets.forEach((item) => {\n if (item.dataset.switch == e.target.value) {\n this.show_item(item)\n } else {\n this.hide_item(item)\n }\n })\n }\n\n toggleForSwitch(e) {\n this.toggleeTargets.forEach((item) => {\n if (item.dataset.switch == e.target.value) {\n this.toggle_item(item)\n } else {\n this.display_default_state(item)\n }\n })\n }\n\n toggle_class() {\n return this.data.get('class') || 'hide'\n }\n\n toggle_item(item) {\n item.classList.contains(this.toggle_class()) ? this.show_item(item) : this.hide_item(item);\n\n if (\"togglerFocus\" in item.dataset && !item.classList.contains(this.toggle_class())) {\n let input = item.querySelector('input[type=\"text\"], textarea')\n if (input) {\n input.focus()\n const temp_val = input.value\n input.value = ''\n input.value = temp_val\n input.scrollTop = 99999\n }\n }\n }\n\n show_item(item) {\n item.classList.remove(this.toggle_class())\n this.updateReadOnlyState(item, false)\n }\n\n hide_item(item) {\n item.classList.add(this.toggle_class())\n this.updateReadOnlyState(item, true)\n }\n\n // to optionally set a default show/hide state on a togglee, add the attribute 'data-togglee-default-state'='hide' as needed\n display_default_state(togglee) {\n const defaultState = get(togglee, 'dataset.toggleeDefaultState', null)\n if (!defaultState) { return; }\n\n switch (defaultState) {\n case 'show':\n this.show_item(togglee);\n break;\n case 'hide':\n this.hide_item(togglee);\n break;\n default:\n throw new Error(`invalid data-toggleeDefaultState: ${defaultState}`);\n };\n }\n\n updateReadOnlyState(item, state = true) {\n // We add the readonly and disabled attributes so the field value is ignored on submission\n this.setReadOnlyState(item, state)\n\n // Also set for any nested fields with target data attribute\n var fields = item.querySelectorAll('input, textarea, select, button')\n if (fields) {\n fields.forEach((field) => this.setReadOnlyState(field, state))\n }\n }\n\n setReadOnlyState(field, state) {\n field.readOnly = state\n field.disabled = state\n }\n}\n","import { BaseController } from 'stimulus-library';\n\n/*\n * toggles the 'hide' class for multiple targets named 'content'\n */\nexport default class Toggle extends BaseController {\n static targets = [\"content\"];\n\n toggle(event) {\n if (this._reloadsPage(event.target)) {\n event.preventDefault();\n }\n\n this.contentTargets.forEach((t) => t.classList.toggle('hide'));\n event.currentTarget.classList.toggle('active');\n }\n\n // private\n\n _reloadsPage(element) {\n return (!!element.closest('a')) ||\n (!!element.closest('input') && element.type === 'submit');\n }\n}\n","import { Controller } from '@hotwired/stimulus';\nimport { debounce } from 'lodash-es';\nimport { requestSubmit } from \"../../lib/request_submit\";\n\n/*\n * For a filter query to submit automatically without the user hunting for a submit button add this to the form tag: `method: :get, remote: true, data: { controller: 'clear-form auto-submit-form'}`\n */\nexport default class extends Controller {\n\n get cssInputSelector() {\n return 'input:not(.no-auto-submit, .trix-input--dialog), textarea:not(.no-auto-submit)';\n }\n\n get inputElements() {\n return this.element.querySelectorAll(this.cssInputSelector);\n }\n\n get selectElements() {\n return this.element.querySelectorAll('select:not(.no-auto-submit)');\n }\n\n initialize() {\n this.debouncedHandler = debounce(this.handler.bind(this), 300);\n }\n\n connect() {\n this.inputElements.forEach(el => el.addEventListener('input', this.debouncedHandler));\n this.selectElements.forEach(el => el.addEventListener('input', this.handler.bind(this)));\n }\n\n disconnect() {\n this.inputElements.forEach(el => el.removeEventListener('input', this.debouncedHandler));\n this.selectElements.forEach(el => el.removeEventListener('input', this.handler));\n }\n\n keyUpSubmit() {\n debounce(this.handler.bind(this), 200);\n }\n\n handler() {\n requestSubmit(this.element);\n }\n\n}\n\n","import { Controller } from '@hotwired/stimulus'\nimport { get, find } from 'lodash-es'\n\nexport default class extends Controller {\n\n static targets = ['row', 'newRow']\n\n addRow(e) {\n const rowTarget = this.newRowTarget\n if (!rowTarget) {\n console.error('new row target not found')\n return false\n }\n this.cloneRow(rowTarget)\n }\n\n removeRow(e) {\n const rowTarget = this.findRowTarget(e.target)\n if (!rowTarget) {\n console.error('row target not found')\n return false\n }\n rowTarget.remove()\n }\n\n findRowTarget(targetElement) {\n return find(this.rowTargets, (elem) => {\n return elem == get(targetElement, 'parentNode')\n })\n }\n\n cloneRow(rowTarget) {\n const newRow = rowTarget.cloneNode(true)\n\n newRow.classList.remove('hide')\n const targetKey = `data-${this.identifier}-target`\n newRow.setAttribute(targetKey, 'row')\n rowTarget.before(newRow)\n const removeRowButton = newRow.querySelector('[data-remove-row-button]')\n if (removeRowButton) {\n removeRowButton.classList.remove('invisible')\n }\n }\n}","import { Controller } from \"@hotwired/stimulus\"\nimport { get } from 'lodash-es'\n\nexport default class extends Controller {\n\n static targets = ['item']\n\n connect() {\n window.addEventListener('turbo--list-item:deleted', this.itemDeleted.bind(this))\n }\n\n itemDeleted(e) {\n this.itemTargets.forEach((itemEl) => {\n if (itemEl == e.target) {\n this.refresh()\n return true\n }\n })\n\n return false\n }\n\n refresh(e) {\n const parentFrame = this.element.closest('turbo-frame')\n if (!parentFrame) {\n return false\n }\n\n const turboPath = get(parentFrame, 'src')\n if (turboPath && turboPath.length > 0) {\n parentFrame.setAttribute('src', '')\n parentFrame.setAttribute('src', turboPath)\n }\n }\n\n}","import { Controller } from '@hotwired/stimulus';\n\nexport default class extends Controller {\n static values = { elementId: String }\n\n open(e) {\n e.preventDefault()\n const element = document.getElementById(this.elementIdValue);\n\n if (element.requestFullscreen) {\n element.requestFullscreen();\n } else if (element.webkitRequestFullscreen) { /* Safari */\n element.webkitRequestFullscreen();\n } else if (element.msRequestFullscreen) { /* IE11 */\n element.msRequestFullscreen();\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static values = {\n delay: Number,\n url: String\n }\n\n connect() {\n this.refreshAfterDelay()\n }\n\n refreshAfterDelay() {\n if (this.delayValue > 0) {\n setTimeout(this.reloadUrl, this.delayValue)\n } else {\n this.reloadUrl()\n }\n }\n\n reloadUrl() {\n if (this.hasUrlValue) {\n window.location.href = this.urlValue\n } else {\n window.location.reload()\n }\n }\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n\n static targets = ['button', 'content']\n static values = {\n autoCollapse: Boolean\n }\n\n buttonTargetConnected(button) {\n button.addEventListener('click', this.selectSection.bind(this))\n }\n\n selectSection(e) {\n const parent = e.currentTarget.closest('.accordion-section')\n parent.classList.toggle('active')\n if (this.autoCollapseValue == true && parent.classList.contains('active')) {\n this.element.querySelectorAll('.accordion-section.active').forEach((elem) => {\n if (elem == parent) {\n return\n }\n\n elem.classList.remove('active')\n })\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport { debounce, get } from 'lodash-es'\n\nexport default class extends Controller {\n\n static targets = ['hiddenInput', 'userInput']\n static values = {\n disableDecimals: Boolean\n }\n\n initialize() {\n this.onChange = debounce(this.onChange.bind(this), 1000)\n }\n\n connect() {\n if (!this.hasUserInputTarget || !this.hasHiddenInputTarget) {\n console.error('unable to process currency input')\n return\n }\n\n if (this.hiddenInputTarget.value != '') {\n this.formatUserInput(this.hiddenInputTarget.value)\n }\n }\n\n onChange() {\n if (!this.hasUserInputTarget || !this.hasHiddenInputTarget) {\n return\n }\n\n let total = this.userInputTarget.value.replace(/[^0-9\\.]/g, '')\n if (total.length == 0) {\n this.hiddenInputTarget.value = 0\n this.triggerFormChange()\n return\n }\n\n total = this.decimalsEnabled() ? parseFloat(total).toFixed(2) : parseInt(total)\n this.formatUserInput(total)\n this.hiddenInputTarget.value = total\n this.triggerFormChange()\n }\n\n formatUserInput(total) {\n const showDecimals = this.decimalsEnabled() && ((total - Math.floor(total)) !== 0)\n const formatOpts = showDecimals ? { minimumFractionDigits: 2, maximumFractionDigits: 2 } : {}\n this.userInputTarget.value = Number(total).toLocaleString('en-GB', formatOpts)\n }\n\n decimalsEnabled() {\n return !this.disableDecimalsValue\n }\n\n triggerFormChange() {\n const form = this.hiddenInputTarget.closest('form')\n if (!form) {\n return\n }\n form.dispatchEvent(new Event('change'))\n }\n\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"content\"];\n\n connect() {\n this.defaultDirection = this.element.dataset.tooltipDirection || \"top\";\n this.updatePlacement = this.updatePlacement.bind(this);\n window.addEventListener(\"resize\", this.updatePlacement);\n }\n\n disconnect() {\n window.removeEventListener(\"resize\", this.updatePlacement);\n }\n\n show() {\n this.contentTarget.classList.add(\"visible\");\n this.updatePlacement();\n }\n\n hide() {\n this.contentTarget.classList.remove(\"visible\");\n }\n\n updatePlacement() {\n const tooltip = this.contentTarget;\n const tipGap = 10;\n const elementRect = this.element.getBoundingClientRect();\n const tooltipRect = tooltip.getBoundingClientRect();\n const viewportWidth = window.innerWidth;\n const viewportHeight = window.innerHeight;\n\n // Reset tooltip classes and styles\n tooltip.classList.remove(\"stimulus-tooltip-top\", \"stimulus-tooltip-bottom\", \"stimulus-tooltip-left\", \"stimulus-tooltip-right\");\n tooltip.style.top = tooltip.style.left = \"\";\n\n const fitsHorizontally =\n elementRect.left + elementRect.width / 2 - tooltipRect.width / 2 >= 0 &&\n elementRect.right - elementRect.width / 2 + tooltipRect.width / 2 <= viewportWidth;\n\n const directions = {\n top: {\n condition: elementRect.top > tooltipRect.height + tipGap && fitsHorizontally,\n apply: () => {\n tooltip.style.top = `-${tooltipRect.height + tipGap}px`;\n tooltip.style.left = `${elementRect.width / 2 - tooltipRect.width / 2}px`;\n tooltip.classList.add(\"stimulus-tooltip-top\");\n },\n },\n bottom: {\n condition: elementRect.bottom + tooltipRect.height + tipGap < viewportHeight && fitsHorizontally,\n apply: () => {\n tooltip.style.top = `${elementRect.height + tipGap}px`;\n tooltip.style.left = `${elementRect.width / 2 - tooltipRect.width / 2}px`;\n tooltip.classList.add(\"stimulus-tooltip-bottom\");\n },\n },\n right: {\n condition:\n elementRect.right + tooltipRect.width + tipGap < viewportWidth &&\n elementRect.top + elementRect.height / 2 - tooltipRect.height / 2 >= 0 &&\n elementRect.bottom - elementRect.height / 2 + tooltipRect.height / 2 <= viewportHeight,\n apply: () => {\n tooltip.style.top = `${elementRect.height / 2 - tooltipRect.height / 2}px`;\n tooltip.style.left = `${elementRect.width + tipGap}px`;\n tooltip.classList.add(\"stimulus-tooltip-right\");\n },\n },\n left: {\n condition:\n elementRect.left > tooltipRect.width + tipGap &&\n elementRect.top + elementRect.height / 2 - tooltipRect.height / 2 >= 0 &&\n elementRect.bottom - elementRect.height / 2 + tooltipRect.height / 2 <= viewportHeight,\n apply: () => {\n tooltip.style.top = `${elementRect.height / 2 - tooltipRect.height / 2}px`;\n tooltip.style.left = `-${tooltipRect.width + tipGap}px`;\n tooltip.classList.add(\"stimulus-tooltip-left\");\n },\n },\n };\n\n // Try default direction first\n if (directions[this.defaultDirection]?.condition) {\n directions[this.defaultDirection].apply();\n return;\n }\n\n // Fallback to other directions\n for (const [direction, { condition, apply }] of Object.entries(directions)) {\n if (condition) {\n apply();\n return;\n }\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus';\n\n// Add data-hidden-field-sync-target=\"hiddenField\" to the hidden field you wish to keep in sync with it's unhidden namesake\n// When the unhidden field changes, it's hidden equivalent's value will be set to the new value\n\nexport default class extends Controller {\n static targets = ['hiddenField'];\n\n connect() {\n this.syncHiddenFields();\n }\n\n syncHiddenFields() {\n this.hiddenFieldTargets.forEach((hiddenField) => {\n const name = hiddenField.name;\n const fields = this.element.querySelectorAll(`input[name=\"${name}\"], select[name=\"${name}\"], textarea[name=\"${name}\"]`);\n fields.forEach((field) => {\n if (field.type !== 'hidden') {\n field.addEventListener('change', (event) => {\n hiddenField.value = event.target.value;\n });\n }\n });\n });\n }\n}\n\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static values = {\n scrollTarget: String,\n behavior: { type: String, default: 'smooth' }\n }\n\n connect() {\n document.addEventListener('turbo:frame-render', this.scrollToFrame.bind(this))\n }\n\n scrollToFrame(event) {\n if (event.target && event.target == this.element) {\n let target\n if (this.scrollTargetValue.length > 0) {\n target = document.querySelector(this.scrollTargetValue)\n }\n if (target) {\n target.scrollIntoView({ behavior: this.behaviorValue })\n } else {\n window.scrollTo({ top: 0, behavior: this.behaviorValue })\n }\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus';\nimport { useIntersection } from \"stimulus-use\";\n\nexport default class extends Controller {\n\n initialize() {\n this.eventHandler = this.eventHandler.bind(this);\n }\n\n connect() {\n let _ignore\n [_ignore, this.unobserveIntersection] = useIntersection(this);\n\n requestAnimationFrame(() => {\n let target = this.element;\n target.style.resize = 'none';\n target.style.boxSizing = 'border-box';\n\n this.eventHandler();\n window.addEventListener('resize', this.eventHandler);\n target.addEventListener('input', this.eventHandler);\n target.addEventListener('focus', this.eventHandler);\n });\n }\n\n disconnect() {\n window.removeEventListener('resize', this.eventHandler);\n let target = this.element;\n target.removeEventListener('input', this.eventHandler);\n target.removeEventListener('focus', this.eventHandler);\n }\n\n eventHandler() {\n this.autosize(this.element);\n }\n\n appear(_entry) {\n this.autosize(this.element);\n this.unobserveIntersection();\n }\n\n autosize(element) {\n let offset = element.offsetHeight - element.clientHeight;\n element.style.height = 'auto';\n element.style.height = element.scrollHeight + offset + 'px';\n }\n\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"fieldsContainer\"]\n\n connect() {\n this.index = document.querySelectorAll('.external-links .field-wrapper').length\n }\n\n addFields(event) {\n event.preventDefault()\n this.index++\n const fieldWrapper = document.createElement('div')\n fieldWrapper.classList.add('field-wrapper')\n\n const titleField = this.createField(`item[external_links][][title]`, `URL Title ${this.index}`)\n const urlField = this.createField(`item[external_links][][link]`, `URL ${this.index}`)\n const removeButton = this.createRemoveButton()\n\n fieldWrapper.innerHTML = titleField + urlField + removeButton\n this.fieldsContainerTarget.appendChild(fieldWrapper)\n }\n\n createField(name, label) {\n return `\n
\n \n \n
\n `\n }\n\n createRemoveButton() {\n return `\n \n `\n }\n\n removeFields(event) {\n event.preventDefault()\n event.target.closest('.field-wrapper').remove()\n }\n}\n","// app/javascript/controllers/date_input_mask_controller.js\nimport { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static values = {\n format: String,\n mask: String\n }\n\n connect() {\n this.element.addEventListener('keyup', (event) => this.handleInput(event));\n this.element.addEventListener('keydown', (event) => this.handleInput(event));\n }\n\n handleInput(event) {\n const isDeletion = event.key === \"Backspace\" || event.key === \"Delete\";\n const isNumber = event.key >= \"0\" && event.key <= \"9\";\n\n if (isDeletion || isNumber) {\n this.format(isDeletion);\n }\n }\n\n format(isDeletion) {\n const elem = this.element;\n const oldValue = elem.value;\n const val = this.doFormat(elem.value, this.formatValue, this.maskValue, isDeletion);\n elem.value = val;\n\n if (!isDeletion && oldValue.length < elem.value.length) {\n this.setCursorPosition(elem, val.length);\n }\n }\n\n setCursorPosition(elem, position) {\n if (elem.createTextRange) {\n var range = elem.createTextRange();\n range.move('character', position);\n range.select();\n } else if (elem.selectionStart) {\n elem.focus();\n elem.setSelectionRange(position, position);\n }\n }\n\n doFormat(x, pattern, mask, isDeletion) {\n var strippedValue = x.replace(/[^0-9]/g, \"\");\n var chars = strippedValue.split('');\n var count = 0;\n\n var formatted = '';\n for (var i = 0; i < pattern.length; i++) {\n const c = pattern[i];\n if (chars[count]) {\n if (/\\*/.test(c)) {\n formatted += chars[count];\n count++;\n } else {\n formatted += c;\n }\n } else if (!isDeletion && mask) {\n if (mask.split('')[i])\n formatted += mask.split('')[i];\n }\n }\n return formatted;\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { debounce, defaultTo, includes, orderBy, partition, toString } from \"lodash-es\"\n\nexport default class extends Controller {\n static targets = [\"content\", \"headers\"]\n\n initialize() {\n this.filter = debounce(this.filter, 200).bind(this)\n }\n\n sort(event) {\n event.preventDefault()\n event.stopPropagation()\n\n const sortAttr = event.target.dataset.sort\n const sortDataType = event.target.dataset.dataType\n let direction = defaultTo(event.target.getAttribute(\"data-direction\"), \"asc\")\n const switchDirection = event.target.classList.contains(\"active\")\n if (switchDirection) {\n direction = direction == \"desc\" ? \"asc\" : \"desc\"\n }\n\n const icon = event.target.querySelector(\"i.fa\")\n if (icon) {\n if (direction == \"desc\") {\n icon.classList.remove(\"fa-caret-up\")\n icon.classList.add(\"fa-caret-down\")\n } else {\n icon.classList.remove(\"fa-caret-down\")\n icon.classList.add(\"fa-caret-up\")\n }\n }\n event.target.setAttribute(\"data-direction\", direction)\n\n this.sortItemsBy(sortAttr, direction, sortDataType)\n\n event.target.parentNode.querySelectorAll(\".active\").forEach((el) => el.classList.remove(\"active\"))\n event.target.classList.add(\"active\")\n }\n\n filter(event) {\n event.preventDefault()\n event.stopPropagation()\n\n this.removeEmptyMessage()\n\n const filter = event.target.value.toLowerCase().trim()\n if (filter == \"\") {\n this.contentTarget.children.forEach((el) => el.classList.remove(\"is-hidden\"))\n return\n }\n\n const filterAttr = event.target.getAttribute(\"data-sortable-filter\")\n let ref\n this.contentTarget.children.forEach((el) => {\n ref = toString(el.getAttribute(`data-sortable-${filterAttr}`)).toLowerCase()\n if (includes(ref, filter)) {\n el.classList.remove(\"is-hidden\")\n } else {\n el.classList.add(\"is-hidden\")\n }\n })\n\n this.applyCurrentSort()\n if (this.visibleItems.length == 0) {\n this.showEmptyMessage()\n }\n }\n\n applyCurrentSort() {\n let currentSortEl = this.headersTarget.querySelector(\"[data-sort].active\")\n if (!currentSortEl) {\n currentSortEl = document.querySelector(\"[data-sort]\")\n }\n if (!currentSortEl) {\n return\n }\n\n const sortAttr = currentSortEl.dataset.sort\n let direction = defaultTo(currentSortEl.getAttribute(\"data-direction\"), \"asc\")\n this.sortItemsBy(sortAttr, direction)\n }\n\n sortItemsBy(sortAttr, direction, dataType = null) {\n let _parts = partition([...this.contentTarget.children], function (node) {\n return node.classList.contains(\"is-hidden\")\n })\n let hidden = _parts[0]\n this.visibleItems = orderBy(\n _parts[1],\n [\n function (node) {\n return node.getAttribute('data-sortable-fixed')\n },\n function (node) {\n const val = node.getAttribute(`data-sortable-${sortAttr}`)\n if (dataType && dataType == 'numeric') {\n return Number(val)\n }\n return val\n }\n ],\n ['asc', direction]\n )\n\n this.visibleItems.forEach((node) => this.contentTarget.appendChild(node))\n hidden.forEach((node) => this.contentTarget.appendChild(node))\n }\n\n removeEmptyMessage() {\n let emptyMessage = this.contentTarget.querySelector(\".empty-results\")\n if (!emptyMessage) {\n return\n }\n\n emptyMessage.remove()\n }\n\n showEmptyMessage() {\n let emptyMessage = document.createElement(\"div\")\n emptyMessage.innerHTML = \"No results found\"\n emptyMessage.classList.add(\"empty-results\")\n this.contentTarget.appendChild(emptyMessage)\n }\n}\n","import { Controller } from '@hotwired/stimulus';\nimport { EventBus } from \"../../lib/event_bus\";\n\nexport default class extends Controller {\n\n static values = { name: String }\n\n connect() {\n EventBus.emit(`${this.nameValue}-presence:added`);\n }\n\n disconnect() {\n EventBus.emit(`${this.nameValue}-presence:removed`);\n }\n}","import { Controller } from '@hotwired/stimulus';\n\nexport default class extends Controller {\n static values = { after: { type: Number, default: 10 } }\n\n connect() {\n setTimeout(\n () => this.element.remove(),\n this.afterValue * 1000\n )\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static values = {\n frameId: String\n }\n\n connect() {\n this.refresh()\n }\n\n refresh() {\n if (this.hasFrameIdValue) {\n const frame = document.querySelector(`#${this.frameIdValue}`)\n if (!frame) {\n console.error(`frame not found with id: ${this.frameIdValue}`)\n return\n }\n\n const src = frame.getAttribute('src')\n if (!src) {\n console.error(`unable to refresh frame with id ${this.frameIdValue}: no src attribute`)\n return\n }\n\n frame.setAttribute('src', '')\n frame.setAttribute('src', src)\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport { useClickOutside } from 'stimulus-use'\nimport { get, replace } from 'lodash-es'\n\nexport default class extends Controller {\n static targets = ['display', 'matrix', 'input', 'suffix', 'label']\n static values = {\n enableX: Boolean\n }\n\n connect() {\n useClickOutside(this)\n }\n\n toggleSelector(e) {\n e.preventDefault()\n\n if (this.hasMatrixTarget) {\n this.matrixTarget.classList.toggle('hide')\n }\n }\n\n hideSelector(e) {\n e.preventDefault()\n\n if (!this.hasMatrixTarget || e.currentTarget == this.matrixTarget) {\n return\n }\n\n this.matrixTarget.classList.add('hide')\n }\n\n onSelect(e) {\n e.preventDefault()\n\n const grade = get(e, 'currentTarget.dataset.grade', '')\n const priority = get(e, 'currentTarget.dataset.priority', '')\n this.showSelectedLabel(grade)\n\n if (grade.length == 0) {\n console.error('no grade selected')\n return\n }\n\n const gradePriority = `${grade}${priority}`\n\n if (this.hasInputTarget) {\n this.inputTarget.value = `${gradePriority}`\n }\n\n if (this.hasDisplayTarget) {\n const scoreEl = this.displayTarget.querySelector('.score')\n scoreEl.textContent = gradePriority\n\n const conditionGradeEl = this.displayTarget.querySelector('.condition-grade')\n let classList = conditionGradeEl.classList\n while (classList.length > 0) {\n classList.remove(classList.item(0));\n }\n classList.add('condition-grade', `${grade.toLowerCase()}${priority}`)\n }\n\n if (this.enableXValue && this.hasSuffixTarget) {\n const label = this.suffixTarget.closest('label')\n if (grade == 'C' || grade == 'D') {\n this.suffixTarget.disabled = false\n label.classList.remove('hide')\n this.setObsolete(this.suffixTarget.checked)\n } else {\n label.classList.add('hide')\n this.suffixTarget.disabled = true\n this.suffixTarget.checked = false\n this.setObsolete(false)\n }\n }\n\n if (this.hasMatrixTarget) {\n this.matrixTarget.classList.add('hide')\n }\n\n }\n\n onXChange(e) {\n if (!this.enableXValue) {\n return\n }\n\n if (e.currentTarget.checked) {\n this.setObsolete(true)\n } else {\n this.setObsolete(false)\n }\n }\n\n setObsolete(val) {\n const suffixEl = this.displayTarget.querySelector('.suffix')\n const conditionGradeEl = this.displayTarget.querySelector('.condition-grade')\n let newGradePriority\n if (val) {\n newGradePriority = this.inputTarget.value + 'X'\n suffixEl.textContent = 'x'\n conditionGradeEl.classList.add('x')\n } else {\n newGradePriority = replace(this.inputTarget.value, 'X', '')\n suffixEl.textContent = ''\n conditionGradeEl.classList.remove('x')\n }\n\n this.inputTarget.value = newGradePriority\n }\n\n showSelectedLabel(grade) {\n if (!this.hasLabelTarget) {\n console.log('no label')\n return false\n }\n\n let labelGrade\n console.log(`showSelectedLabel ${grade}`)\n this.labelTargets.forEach((labelElem) => {\n labelGrade = get(labelElem, 'dataset.grade')\n console.log(`labelGrade ${labelGrade}`)\n if (labelGrade && labelGrade == grade) {\n labelElem.classList.remove('d-none')\n } else {\n labelElem.classList.add('d-none')\n }\n })\n }\n\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n\n // We were getting occassional exceptions from ActionText entries having been saved\n // with attachments that had a blob: URL. This is a temporary value that Trix inserts\n // while an async upload is performed. If the form is submitted while the upload is\n // in progress then the temp value is persisted forever. This controller watches\n // all Trix editors, and when an upload is in progress, disables the submit button.\n // As a failsafe, it also listens for the submit event on all forms and prevents submission\n // if it contains a Trix area with an upload pending.\n\n connect() {\n this.element.addEventListener('trix-change', this.disableSubmitIfTrixAttachmentsUploading.bind(this))\n\n const { hasTrixAttachmentsUploading, trixElements } = this\n\n document.querySelectorAll('form').forEach(form => {\n form.addEventListener('submit', (e) => {\n if (hasTrixAttachmentsUploading(trixElements(form))) {\n alert('Please wait for the attachments to finish uploading.')\n e.preventDefault()\n e.stopPropagation()\n Rails.enableElement(form.querySelector('input[type=\"submit\"]'))\n }\n })\n })\n }\n\n disableSubmitIfTrixAttachmentsUploading() {\n const { hasTrixAttachmentsUploading, trixElements } = this\n\n document.querySelectorAll('form').forEach(form => {\n const trix = trixElements(form)\n\n if (trix.length === 0) {\n return\n }\n\n const pending = hasTrixAttachmentsUploading(trix)\n\n form.querySelectorAll('input[type=\"submit\"]').forEach(submit => {\n submit.disabled = pending\n })\n })\n }\n\n hasTrixAttachmentsUploading(trixElements) {\n return trixElements\n .flatMap(trix => trix.editor.getDocument().getAttachments())\n .some(attachment => attachment.isPending())\n }\n\n trixElements(form) {\n return Array.from(form.querySelectorAll(\"trix-editor\"))\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n\n static targets = ['message']\n\n messageTargetConnected(elem) {\n elem.addEventListener('animationend', (e) => {\n elem.remove()\n })\n\n elem.classList.add('fade-out')\n }\n\n}","import { Controller } from '@hotwired/stimulus';\n\nexport default class extends Controller {\n\n static values = {\n defaultTarget: String\n }\n\n connect() {\n let links = this.element.querySelectorAll('a:not([href^=\"http://iam\"]):not([href^=\"http://app.iam\"]):not([href^=\"https://app.iam\"]):not([href^=\"https://iam\"]):not([href^=\"/\"]):not([href^=\"#\"]):not([href^=\"https://app.dev.iam\"]):not([href^=\"http://app.dev.iam\"]):not([href^=\"mailto:\"])')\n\n let target\n links.forEach(link => {\n link.classList.add('external-link')\n target = link.getAttribute('target')\n if (this.defaultTargetValue && !target) {\n link.setAttribute('target', this.defaultTargetValue)\n }\n })\n }\n}\n","import AssocationSelectorController from './association_selector_controller'\nimport { get, clone, replace } from 'lodash-es'\n\nexport default class extends AssocationSelectorController {\n\n onSelect(e) {\n e.preventDefault()\n\n const zoneJson = get(e, 'currentTarget.dataset.zone', '')\n if (zoneJson.length == 0) {\n console.error('No location zone data detected')\n } else {\n const zoneData = JSON.parse(zoneJson)\n if (this.hasRedirectPathValue) {\n this.redirectTo(zoneData)\n } else {\n this.fireCustomEvent(zoneData)\n }\n\n $(this.element).foundation('reveal', 'close')\n }\n }\n\n redirectTo(zoneData) {\n let redirect = clone(this.redirectPathValue)\n\n const zoneId = get(zoneData, 'scoped_id', 0)\n if (zoneId > 0) {\n redirect = replace(redirect, ':zone_id', zoneId)\n } else {\n redirect = replace(redirect, '/:zone_id', '')\n }\n\n const locationId = get(zoneData, 'location.scoped_id', 0)\n if (locationId > 0) {\n redirect = replace(redirect, ':location_id', locationId)\n } else {\n redirect = replace(redirect, '/:location_id', '')\n }\n\n window.location.href = redirect\n }\n\n fireCustomEvent(zoneData) {\n window.dispatchEvent(new CustomEvent('location-zone-selected', { detail: { zone: zoneData } }))\n }\n\n}\n","import { Controller } from '@hotwired/stimulus';\n\n// A controller that generates a pie SVG for its root element. Example:\n// .pie{ data: { pie: occurrence_pie_chart_data(occurrence, stats), controller: 'pie'} }\n// \n// It calls: app/assets/javascripts/lib/vendor/piechart.js\nexport default class extends Controller {\n connect() {\n new Pie(this.element)\n }\n}","import { Controller } from \"@hotwired/stimulus\"\nimport { clone, get, set, camelCase, isObject, isArray, reduce } from \"lodash-es\"\nimport { Chart, registerables } from 'chart.js'\nimport 'chartjs-adapter-date-fns'\nChart.register(...registerables)\n\nexport default class extends Controller {\n\n static values = {\n graphData: Object\n }\n\n connect() {\n this.graphDataValue = this.camelCaseKeys(this.graphDataValue)\n this.generateChart()\n }\n\n generateChart() {\n this.chart = new Chart(this.element, this.chartOptions())\n\n if (get(this.graphDataValue, 'options.plugins.externalLegend') === false) {\n this.renderLegend();\n }\n }\n\n camelCaseKeys(obj) {\n if (!isObject(obj)) {\n return obj;\n } else if (isArray(obj)) {\n return obj.map((v) => this.camelCaseKeys(v));\n }\n return reduce(obj, (r, v, k) => {\n return {\n ...r,\n [camelCase(k)]: this.camelCaseKeys(v)\n };\n }, {});\n }\n\n navigate(evt) {\n if (!this.navigationEnabled()) {\n return\n }\n\n const points = this.chart.getElementsAtEventForMode(evt, 'nearest', { intersect: true }, true)\n if (points.length) {\n const datasetIndex = get(points, '[0].index')\n const url = this.dataUrls[datasetIndex]\n if (url) {\n if (url.startsWith('#')) {\n location.hash = url.replace('#', '')\n const link = document.querySelector(`a[href=\"${url}\"]`)\n if (link) {\n link.click() // workaround for foundation tabs flakiness\n }\n } else {\n location.href = url\n }\n }\n }\n }\n\n onHover(_e, chartElement) {\n this.element.style.cursor = chartElement[0] ? 'pointer' : 'default'\n }\n\n chartOptions(chart) {\n let opts = clone(this.graphDataValue)\n const yFormatter = get(opts, 'options.scales.y.ticks.callback')\n let tooltipFormatter = get(opts, 'options.plugins.tooltip.callbacks.label')\n if (yFormatter == 'format_currency') {\n set(opts, 'options.scales.y.ticks.callback', this.formatCurrency)\n }\n if (tooltipFormatter == 'format_currency' || yFormatter == 'format_currency') {\n set(opts, 'options.plugins.tooltip.callbacks.label', this.formatTooltipCurrency)\n } else if (tooltipFormatter == 'dataset_label_lookup') {\n set(opts, 'options.plugins.tooltip.callbacks.label', this.datasetLabelLookup)\n }\n\n if (this.navigationEnabled()) {\n set(opts, 'options.onHover', this.onHover.bind(this))\n }\n\n if (get(opts, 'type') == 'line') {\n // set defaults for line width, point styling and space around points\n set(opts, 'options.elements.point', {\n pointBorderWidth: 3,\n pointBorderColor: '#f1f0f8',\n pointRadius: 7\n })\n set(opts, 'options.elements.line', {\n borderWidth: 2\n })\n }\n\n set(opts, 'options.animation', false)\n\n return opts\n }\n\n renderLegend() {\n const legendContainer = this.element.nextElementSibling;\n if (legendContainer && legendContainer.classList.contains('chart-legend')) {\n var legendItems = this.chart.legend.legendItems;\n\n legendContainer.innerHTML = legendItems.map(item => {\n return `\n \n \n ${item.text}\n \n `;\n }).join('');\n }\n }\n\n navigationEnabled() {\n return this.dataUrls.length > 0\n }\n\n formatCurrency(value, index, ticks) {\n if (value == 0) {\n return ''\n }\n let formatter = Intl.NumberFormat('en', { notation: 'compact' })\n return `£${formatter.format(value)}`\n }\n\n formatTooltipCurrency(context) {\n let label = context.dataset.label || ''\n\n if (label) {\n label += ': '\n }\n let parsedVal = get(context, 'parsed.y')\n parsedVal ||= get(context, 'parsed')\n if (parsedVal !== null) {\n label += new Intl.NumberFormat('en-GB', { style: 'currency', currency: 'GBP', maximumFractionDigits: 0 }).format(parsedVal)\n }\n return label\n }\n\n datasetLabelLookup(tooltipItem) {\n var dataset = tooltipItem.dataset\n var index = tooltipItem.dataIndex\n return `${dataset.labels[index]}: ${dataset.data[index]}`\n }\n\n graphDataValueChanged() {\n this.dataUrls = get(this.graphDataValue, 'custom.urls', [])\n }\n\n}","import { Controller } from \"@hotwired/stimulus\"\nimport { filter, last } from \"lodash-es\"\n\nexport default class extends Controller {\n static targets = [\n \"metricsEditor\",\n \"metricsContainer\",\n \"blankMetricTemplate\",\n \"numericFieldsTemplate\",\n \"optionsFieldsTemplate\",\n \"passfailFieldsTemplate\",\n \"sfg20ServiceFieldsTemplate\",\n \"defaultFieldsTemplate\",\n \"appendMetricsOption\",\n \"removeMetricsOption\",\n \"addMetricContainer\",\n \"maxMetricsMessage\",\n ]\n\n toggleMetricsEditor(event) {\n if (!this.hasMetricsEditorTarget) {\n return false\n }\n\n if (event.target.checked) {\n this.metricsEditorTarget.classList.remove(\"hide\")\n } else {\n this.metricsEditorTarget.classList.add(\"hide\")\n }\n }\n\n addMetric(event) {\n event.preventDefault()\n event.stopPropagation()\n this.insertBlankMetric()\n if (this.numActiveMetrics() >= 5) {\n this.showMaxMetrics()\n }\n }\n\n removeMetric(event) {\n event.preventDefault()\n let item = event.target.closest(\".nested-fields\")\n item.querySelector(\"input[name*='_destroy']\").value = 1\n item.classList.add(\"hide\")\n if (this.numActiveMetrics() < 5) {\n this.hideMaxMetrics()\n }\n }\n\n insertBlankMetric() {\n const content = this.blankMetricTemplateTarget.innerHTML.replace(/TEMPLATE_RECORD/g, new Date().valueOf())\n this.metricsContainerTarget.insertAdjacentHTML(\"beforeend\", content)\n }\n\n selectMetricType(event) {\n const metricType = event.target.value\n let template\n switch (metricType) {\n case \"Survey::Task::Metric::Numeric\":\n template = this.numericFieldsTemplateTarget\n break\n case \"Survey::Task::Metric::Options\":\n template = this.optionsFieldsTemplateTarget\n break\n case \"Survey::Task::Metric::PassFail\":\n template = this.passfailFieldsTemplateTarget\n break\n case \"Survey::Task::Metric::SFG20Service\":\n template = this.sfg20ServiceFieldsTemplateTarget\n break\n default:\n template = this.defaultFieldsTemplateTarget\n }\n\n let metricEl = event.target.closest(\".new-metric\")\n\n if (template) {\n let templateEl = template.content.cloneNode(true)\n const selectName = event.target.name\n const targetPrefix = selectName.replace(\"[type]\", \"\")\n\n // propagate timestamped attribute ids to template inputs\n const regex = /survey_task\\[metrics_attributes\\]\\[[0-9]+\\](.*)/\n let match\n let attrName\n templateEl.querySelectorAll(\"input, select\").forEach(function (input) {\n attrName = input.name\n match = attrName.match(regex)\n if (match) {\n attrName = match[1]\n }\n input.setAttribute(\"name\", `${targetPrefix}${attrName}`)\n\n if (attrName == \"[name]\") {\n let inputToClone = metricEl.querySelector(`input[name='${targetPrefix}${attrName}']`)\n if (inputToClone && inputToClone.value != \"\") {\n input.value = inputToClone.value\n }\n }\n })\n\n let settingsEl = metricEl.querySelector(\".metric-settings\")\n settingsEl.innerHTML = \"\"\n settingsEl.appendChild(templateEl)\n settingsEl.classList.remove(\"hide\")\n }\n }\n\n appendMetricsOption(event) {\n event.preventDefault()\n event.stopPropagation()\n\n let parentEl = event.target.closest(\".options\")\n let options = parentEl.querySelectorAll(\".option-container\")\n let newOptionEl = last(options).cloneNode(true)\n\n const error = newOptionEl.querySelector(\"small.error\")\n if (error) {\n // remove previous error\n error.remove()\n newOptionEl.querySelector(\"input\").classList.remove(\"error\")\n }\n\n const input = newOptionEl.querySelector(\"input\")\n // parse index from the (last) input - in case any have been removed\n const idx = parseInt(input.name.match(/.*\\[([0-9]+)\\]/)[1])\n input.value = ''\n input.setAttribute(\"name\", input.name.replace(`[options][${idx}]`, `[options][${idx + 1}]`))\n input.setAttribute(\"id\", input.id.replace(`_options_${idx}`, `_options_${idx + 1}`))\n const addOptionEl = parentEl.querySelector(\".add-metric-option\")\n parentEl.insertBefore(newOptionEl, addOptionEl)\n }\n\n removeMetricsOption(event) {\n event.preventDefault()\n event.stopPropagation()\n\n let parentEl = event.target.closest(\".options\")\n let targetRow = event.target.closest(\".option-container\")\n let targetInput = targetRow.querySelector(\"input\")\n let numOptions = parentEl.querySelectorAll(\".option-container input\").length\n\n if (numOptions < 2) {\n targetRow.querySelector(\".input\").classList.add(\"error\")\n const errorEl = document.createElement(\"small\")\n errorEl.classList.add(\"error\")\n errorEl.innerHTML = \"You must leave at least one option\"\n targetInput.after(errorEl)\n return\n }\n\n targetRow.remove()\n }\n\n showMaxMetrics() {\n this.addMetricContainerTarget.classList.add(\"hide\")\n this.maxMetricsMessageTarget.classList.remove(\"hide\")\n }\n\n hideMaxMetrics() {\n this.addMetricContainerTarget.classList.remove(\"hide\")\n this.maxMetricsMessageTarget.classList.add(\"hide\")\n }\n\n numActiveMetrics() {\n // number of metrics not marked for deletion\n const nodes = this.metricsContainerTarget.querySelectorAll(\".task-metric input[name*='_destroy']\")\n return filter(nodes, function (el) {\n return el.value != \"1\"\n }).length\n }\n\n toggleCustomUnits(event) {\n event.preventDefault()\n const commonUnitsContainer = event.currentTarget.parentNode.querySelector(\".common-units\")\n const commonSelect = commonUnitsContainer.querySelector(\"select\")\n const customUnitsContainer = event.currentTarget.parentNode.querySelector(\".custom-units\")\n const customInput = customUnitsContainer.querySelector(\"input\")\n commonUnitsContainer.querySelector(\"select\").disabled = true\n\n commonSelect.classList.add(\"hide\")\n customUnitsContainer.classList.remove(\"hide\")\n if (commonSelect.value) {\n customInput.value = commonSelect.value\n }\n commonSelect.disabled = true\n customInput.disabled = false\n event.currentTarget.classList.add(\"hide\")\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n connect() {\n document.addEventListener('turbo:frame-missing', this.autoRedirect)\n }\n\n autoRedirect(event) {\n // Visit the response\n event.preventDefault()\n event.detail.visit(event.detail.response)\n }\n\n}","import { Controller } from \"@hotwired/stimulus\"\n\n/*\n\n \n\n\nYou can call `reload_turbo_frame 'frame_id'` in your controller to reload a frame\n*/\n\n\nexport default class extends Controller {\n connect() {\n this.element.closest(\"turbo-frame\")?.reload()\n this.element.remove()\n }\n}\n","import Trix from \"trix\";\n\nlet lang = Trix.config.lang;\n\nlet wrapper = document.createElement('div');\nwrapper.innerHTML = Trix.config.toolbar.getDefaultHTML();\n\nlet embedHTML = `\n
\n \n
\n`\n\nwrapper.querySelector('.trix-dialog--link').insertAdjacentHTML(\"beforeend\", embedHTML);\n\n// Override the Trix toolbar html to include the custom dialog\nTrix.config.toolbar.getDefaultHTML = function () {\n return wrapper.innerHTML;\n};\n\n\nclass EmbedController {\n constructor(element) {\n this.youtubePattern = /^https:\\/\\/([^\\.]+\\.)?youtube\\.com\\/watch\\?v=(.*)/;\n this.vimeoPattern = /^https:\\/\\/([^\\.]+\\.)?vimeo\\.com\\/(.*)/;\n\n this.element = element;\n this.editor = element.editor;\n this.toolbar = element.toolbarElement;\n this.hrefElement = this.toolbar.querySelector(\"[data-trix-input][name='href']\");\n this.embedContainerElement = this.toolbar.querySelector(\"[data-behavior='embed_container']\");\n this.embedElement = this.toolbar.querySelector(\"[data-behavior='embed_url']\");\n\n this.reset();\n this.installEventHandlers();\n }\n\n installEventHandlers() {\n this.hrefElement.addEventListener(\"input\", this.didInput.bind(this));\n this.hrefElement.addEventListener(\"focusin\", this.didInput.bind(this));\n this.embedElement.addEventListener(\"click\", this.embed.bind(this));\n }\n\n didInput(event) {\n let value = event.target.value.trim();\n let youtubeMatches = value.match(this.youtubePattern);\n let vimeoMatches = value.match(this.vimeoPattern);\n\n // When patterns are loaded, we can just fetch the embed code\n if (youtubeMatches != null) {\n this.fetch(\"youtube\", youtubeMatches[2]);\n } else if (vimeoMatches != null) {\n this.fetch(\"vimeo\", vimeoMatches[2]);\n } else {\n // No embed code, just reset the form\n this.reset();\n }\n }\n\n fetch(service, value) {\n fetch(`/action_text_video/${encodeURIComponent(value)}?service=${service}`, {\n method: \"get\",\n })\n .then(res => res.json())\n .then(json => this.showEmbed(json))\n .catch(err => this.reset());\n }\n\n embed(event) {\n if (this.currentEmbed == null) { return; }\n\n let attachment = new Trix.Attachment(this.currentEmbed);\n this.editor.insertAttachment(attachment);\n this.element.focus();\n }\n\n showEmbed(embed) {\n this.currentEmbed = embed;\n this.embedContainerElement.style.display = \"block\";\n }\n\n reset() {\n this.embedContainerElement.style.display = \"none\";\n this.currentEmbed = null;\n }\n}\n\ndocument.addEventListener(\"trix-initialize\", function (event) {\n new EmbedController(event.target);\n});\n","import { Controller } from '@hotwired/stimulus'\nimport { get } from 'lodash-es'\n\nexport default class extends Controller {\n\n static values = {\n header: String,\n srcUrl: String,\n redirectPath: String\n }\n\n static targets = ['header', 'turboFrame']\n\n connect() {\n $(this.element).on('closed.fndtn.reveal', this.refreshSelector.bind(this))\n }\n\n onSelect(e) {\n console.error('no onSelect behaviour implemented')\n }\n\n redirectTo(_data) {\n console.error('no redirectTo behaviour implemented')\n }\n\n fireCustomEvent(zoneData) {\n console.error('no custom event defined')\n }\n\n refreshSelector(e) {\n // refresh the selector's src path e.g. after type has changed, or simply to set it back to default after closing the modal\n const turboFrameEl = this.element.querySelector('turbo-frame')\n if (!turboFrameEl) {\n return false\n }\n\n const turboRefreshPath = get(e, 'detail.refresh_url')\n if (turboRefreshPath && turboRefreshPath.length > 0) {\n turboFrameEl.setAttribute('src', turboRefreshPath)\n } else if (this.srcUrlValue && this.srcUrlValue.length > 0) {\n turboFrameEl.setAttribute('src', this.srcUrlValue)\n }\n }\n\n locationSelected(e) {\n // refresh modal header text (when needing to select a location first)\n if (this.hasHeaderTarget && this.hasHeaderValue) {\n this.headerTarget.textContent = this.headerValue\n }\n }\n\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static values = {\n delay: Number\n }\n\n connect() {\n if (this.hasDelayValue) {\n setTimeout(this.triggerRefresh.bind(this), this.delayValue)\n } else {\n this.triggerRefresh()\n }\n }\n\n triggerRefresh() {\n let event = new CustomEvent('trigger-refresh', { detail: this.element })\n window.dispatchEvent(event)\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\nimport Tribute from \"tributejs\";\nimport Trix from \"trix\";\n\nexport default class extends Controller {\n static targets = [\"field\"];\n static values = { articlesEndpoint: String };\n\n triggerSymbol = \">>\";\n\n connect() {\n if (this.hasFieldTarget) {\n this.fieldTarget.addEventListener('trix-initialize', this.initialiseEditor.bind(this))\n }\n }\n\n initialiseEditor(e) {\n this.editor = this.fieldTarget.editor;\n this.initialiseToolbarButton();\n this.initializeTribute();\n }\n\n disconnect() {\n this.tribute.detach(this.fieldTarget);\n }\n\n toolbarButtonClicked(e) {\n this.editor.recordUndoEntry('magic-link');\n this.editor.insertString(this.triggerSymbol);\n }\n\n initialiseToolbarButton() {\n let toolbar = this.editor.composition.delegate.toolbarController.element;\n let buttonGroups = toolbar.querySelectorAll(\".trix-button-group\");\n let buttons = buttonGroups.item(0).children;\n let lastButton = buttons[buttons.length - 1];\n let magicLinkTemplate = `\n `;\n lastButton.insertAdjacentHTML(\"afterend\", magicLinkTemplate);\n }\n\n initializeTribute() {\n this.tribute = new Tribute({\n allowSpaces: true,\n lookup: \"title\",\n trigger: this.triggerSymbol,\n values: this.fetchUsers.bind(this),\n });\n this.tribute.attach(this.fieldTarget);\n this.tribute.range.pasteHtml = this._pasteHtml.bind(this);\n this.fieldTarget.addEventListener(\"tribute-replaced\", this.replaced.bind(this));\n }\n\n fetchUsers(text, callback) {\n\n fetch(`${this.articlesEndpointValue}?q=${text}`)\n .then(response => response.json())\n .then(users => callback(users))\n .catch(error => callback([]));\n }\n\n replaced(e) {\n let item = e.detail.item;\n if (!item) {\n return;\n }\n let article = item.original;\n let attachment = new Trix.Attachment({\n sgid: article.sgid,\n content: article.content,\n });\n this.editor.insertAttachment(attachment);\n this.editor.insertString(\" \");\n }\n\n _pasteHtml(_html, startPos, endPos) {\n let position = this.editor.getPosition();\n this.editor.setSelectedRange([position - (endPos - startPos), position]);\n this.editor.deleteInDirection(\"backward\");\n }\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"destroyField\", \"checkboxField\"]\n\n connect() {\n this.updateDestroy()\n }\n\n updateDestroy() {\n this.destroyFieldTarget.value = !this.checkboxFieldTarget.checked;\n }\n}\n","import { RemoteFormController } from \"stimulus-library\"\n\nexport default class extends RemoteFormController {\n connect() {\n this.el.querySelectorAll(\"[data-remote=true]\").forEach((el) => {\n el.addEventListener('ajax:success', this.replace.bind(this))\n el.addEventListener('ajax:error', this.replace.bind(this))\n })\n }\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"reveal\", \"status\"]\n static values = { copyable: String }\n\n copy(event) {\n event.preventDefault()\n\n let copyTemp, icon, span\n copyTemp = document.createElement(\"textarea\")\n copyTemp.value = this.copyableValue\n document.body.appendChild(copyTemp)\n copyTemp.select()\n\n if (document.execCommand(\"copy\") && this.hasStatusTarget) {\n icon = document.createElement(\"i\")\n icon.classList.add(\"fa\", \"fa-check\", \"success-text\", \"pr-0-5\")\n this.statusTarget.appendChild(icon)\n\n span = document.createElement(\"span\")\n span.innerHTML = \"Copied to clipboard\"\n this.statusTarget.appendChild(span)\n\n setTimeout(() => this.clearStatus(), 5000)\n }\n document.body.removeChild(copyTemp)\n }\n\n reveal(event) {\n event.preventDefault()\n\n if (!this.hasRevealTarget) return\n\n event.currentTarget.classList.add(\"hide\")\n this.revealTarget.innerHTML = this.copyableValue\n }\n\n clearStatus() {\n if (!this.hasStatusTarget) return\n\n this.statusTarget.innerHTML = \"\"\n }\n}\n"],"names":["requestSubmit","form","submitButton","querySelector","document","createElement","type","style","display","dataset","sythentic","insertAdjacentElement","click","_Class","Controller","triggerClick","e","preventDefault","this","clickRecipientTarget","targets","connect","toggleBodyScroll","modalTarget","classList","contains","focusFirst","addEventListener","escapeListener","bind","disconnect","removeEventListener","backgroundClick","event","target","closeModal","toggle","submitForm","detail","fetchResponse","response","status","closeOnSubmitValue","key","elements","Array","from","element","querySelectorAll","i","length","elem","tagName","focus","remove","values","closeOnSubmit","Boolean","preventSubmission","get","collapseValue","toggleAll","forEach","section","add","buttonText","innerHTML","collapse","statusValue","setTimeout","dispatch","delayTimeoutValue","String","delayTimeout","Number","default","setupListener","window","origin","originValue","hasDataTarget","console","error","log","data","dataTarget","value","JSON","stringify","hasFormTarget","formTarget","FormRcController","debounceSubmit","debounce","submit","toggleModal","template","modalContent","clonedElement","importNode","originalElement","getElementById","parentNode","replaceChild","hasModalSelectorValue","modalSelectorValue","content","nextElementSibling","outlets","modalSelector","select","selectedOption","optionTargets","find","o","checked","identifier","revealIdentifier","contentTargets","enableInputsFor","shouldEnable","input","disabled","loadStimulusDefinitionsFromContexts","application","context","load","definitionsFromContext","Flatpickr","config","instanceDateOptions","hasClearTarget","instanceTarget","updateClearButtonVisibility","super","merge","defaultDateOptions","customDateOptions","onClose","_dates","dateStr","instance","submitOnClose","omitBy","minDate","flatpickrMinDate","maxDate","flatpickrMaxDate","enableTime","flatpickrEnableTime","mode","flatpickrMode","altFormat","flatpickrAltFormat","isBlankOption","altInput","time_24hr","val","isUndefined","isNull","toString","clearTarget","clearTargetClicked","_flatpickr","clear","toggleOptions","toggleIconTarget","optionsTarget","openValue","open","updateSelectors","minSelect","minValueTarget","maxSelect","maxValueTarget","minValue","parseInt","maxValue","options","option","optionValue","updateDateFields","datePickerInput","inputTarget","date","md","moment","yearSelectorValue","year","monthSelectorValue","month","daySelectorValue","yearSelector","monthSelector","daySelector","setSelectionRange","_this$scoreInputTarge","hasScoreInputTarget","updateCircles","scoreInputTarget","circleTargets","circle","index","previewActiveCircles","clearPreview","setScore","indexOf","currentTarget","score","findUser","regex","RegExp","escapeRegExp","findUserInputTarget","userOptions","matchCount","textContent","match","setStatus","statusId","statusInputTarget","actionFormTarget","setOwner","ownerId","owner","assignPath","path","ownerInputTarget","action","FetchBlockController","BaseController","replace","url","href","blockTarget","URL","html","fetch","headers","ok","history","pushState","title","outerHTML","text","headingTarget","scrollIntoView","location","assign","tabTargets","tab","selectTab","navigationEnabledValue","hash","tabTarget","tabId","activateContent","contentId","setNavigationHash","getAttribute","navigationEnabled","EventBus","mitt","show","hide","lessTextValue","contentTarget","setProperty","moreTextValue","removeProperty","moreText","lessText","wrapperSelector","containerSelector","keepRemovedHidden","updateCounts","updateRemoves","new_item","templateTarget","firstElementChild","cloneNode","Date","getTime","appendChild","inputs","confirm","wrapper","closest","count","countLabel","removes","item","hiddenDestroyField","map","webpackContext","req","id","webpackContextResolve","__webpack_require__","Error","code","keys","Object","resolve","module","exports","zoneSelected","selectedZoneId","hasInputTarget","hasDisplayTarget","displayTarget","hasResetTarget","resetTarget","reset","dispatchEvent","CustomEvent","zone","path_name","Toggler","toggleeTargets","display_default_state","selected","hide_item","show_item","toggle_item","switch","toggleForSwitch","toggle_class","temp_val","scrollTop","updateReadOnlyState","togglee","defaultState","state","setReadOnlyState","fields","field","readOnly","Toggle","_reloadsPage","t","cssInputSelector","inputElements","selectElements","initialize","debouncedHandler","handler","el","keyUpSubmit","addRow","rowTarget","newRowTarget","cloneRow","removeRow","findRowTarget","targetElement","rowTargets","newRow","targetKey","setAttribute","before","removeRowButton","itemDeleted","itemTargets","itemEl","refresh","parentFrame","turboPath","elementIdValue","requestFullscreen","webkitRequestFullscreen","msRequestFullscreen","elementId","refreshAfterDelay","delayValue","reloadUrl","hasUrlValue","urlValue","reload","delay","buttonTargetConnected","button","selectSection","parent","autoCollapseValue","autoCollapse","onChange","hasUserInputTarget","hasHiddenInputTarget","hiddenInputTarget","formatUserInput","total","userInputTarget","triggerFormChange","decimalsEnabled","parseFloat","toFixed","formatOpts","Math","floor","minimumFractionDigits","maximumFractionDigits","toLocaleString","disableDecimalsValue","Event","disableDecimals","defaultDirection","tooltipDirection","updatePlacement","_directions$this$defa","tooltip","tipGap","elementRect","getBoundingClientRect","tooltipRect","viewportWidth","innerWidth","viewportHeight","innerHeight","top","left","fitsHorizontally","width","right","directions","condition","height","apply","bottom","_ref","entries","_ref2","_slicedToArray","_ref2$","syncHiddenFields","hiddenFieldTargets","hiddenField","name","scrollToFrame","scrollTargetValue","behavior","behaviorValue","scrollTo","scrollTarget","eventHandler","_ignore","_useIntersection2","useIntersection","unobserveIntersection","requestAnimationFrame","resize","boxSizing","autosize","appear","_entry","offset","offsetHeight","clientHeight","scrollHeight","addFields","fieldWrapper","titleField","createField","urlField","removeButton","createRemoveButton","fieldsContainerTarget","label","removeFields","handleInput","isDeletion","isNumber","format","oldValue","doFormat","formatValue","maskValue","setCursorPosition","position","createTextRange","range","move","selectionStart","x","pattern","mask","chars","split","formatted","c","test","filter","sort","stopPropagation","sortAttr","sortDataType","dataType","direction","defaultTo","icon","sortItemsBy","removeEmptyMessage","toLowerCase","trim","children","filterAttr","ref","includes","applyCurrentSort","visibleItems","showEmptyMessage","currentSortEl","headersTarget","_parts","partition","node","hidden","orderBy","emptyMessage","emit","nameValue","afterValue","after","hasFrameIdValue","frame","frameIdValue","src","frameId","useClickOutside","toggleSelector","hasMatrixTarget","matrixTarget","hideSelector","onSelect","grade","priority","showSelectedLabel","gradePriority","enableXValue","hasSuffixTarget","suffixTarget","setObsolete","onXChange","suffixEl","conditionGradeEl","newGradePriority","hasLabelTarget","labelGrade","labelTargets","labelElem","enableX","disableSubmitIfTrixAttachmentsUploading","hasTrixAttachmentsUploading","trixElements","alert","Rails","enableElement","trix","pending","flatMap","editor","getDocument","getAttachments","some","attachment","isPending","messageTargetConnected","link","defaultTargetValue","defaultTarget","AssocationSelectorController","zoneJson","zoneData","parse","hasRedirectPathValue","redirectTo","fireCustomEvent","$","foundation","redirect","clone","redirectPathValue","zoneId","locationId","Pie","Chart","register","registerables","graphDataValue","camelCaseKeys","generateChart","chart","chartOptions","renderLegend","obj","isObject","isArray","v","reduce","r","k","_objectSpread","camelCase","navigate","evt","points","getElementsAtEventForMode","intersect","datasetIndex","dataUrls","startsWith","onHover","_e","chartElement","cursor","opts","yFormatter","tooltipFormatter","set","formatCurrency","formatTooltipCurrency","datasetLabelLookup","pointBorderWidth","pointBorderColor","pointRadius","borderWidth","legendContainer","legendItems","legend","fillStyle","join","ticks","Intl","NumberFormat","notation","parsedVal","currency","tooltipItem","dataIndex","labels","graphDataValueChanged","graphData","toggleMetricsEditor","hasMetricsEditorTarget","metricsEditorTarget","addMetric","insertBlankMetric","numActiveMetrics","showMaxMetrics","removeMetric","hideMaxMetrics","blankMetricTemplateTarget","valueOf","metricsContainerTarget","insertAdjacentHTML","selectMetricType","numericFieldsTemplateTarget","optionsFieldsTemplateTarget","passfailFieldsTemplateTarget","sfg20ServiceFieldsTemplateTarget","defaultFieldsTemplateTarget","metricEl","templateEl","targetPrefix","attrName","inputToClone","settingsEl","appendMetricsOption","parentEl","newOptionEl","last","idx","addOptionEl","insertBefore","removeMetricsOption","targetRow","targetInput","errorEl","addMetricContainerTarget","maxMetricsMessageTarget","nodes","toggleCustomUnits","commonUnitsContainer","commonSelect","customUnitsContainer","customInput","autoRedirect","visit","_this$element$closest","Trix","lang","toolbar","getDefaultHTML","EmbedController","constructor","youtubePattern","vimeoPattern","toolbarElement","hrefElement","embedContainerElement","embedElement","installEventHandlers","didInput","embed","youtubeMatches","vimeoMatches","service","encodeURIComponent","method","then","res","json","showEmbed","catch","err","currentEmbed","Attachment","insertAttachment","on","refreshSelector","_data","turboFrameEl","turboRefreshPath","srcUrlValue","locationSelected","hasHeaderTarget","hasHeaderValue","headerTarget","headerValue","header","srcUrl","redirectPath","hasDelayValue","triggerRefresh","args","triggerSymbol","hasFieldTarget","fieldTarget","initialiseEditor","initialiseToolbarButton","initializeTribute","tribute","detach","toolbarButtonClicked","recordUndoEntry","insertString","buttons","composition","delegate","toolbarController","lastButton","magicLinkTemplate","Tribute","allowSpaces","lookup","trigger","fetchUsers","attach","pasteHtml","_pasteHtml","replaced","callback","articlesEndpointValue","users","article","original","sgid","_html","startPos","endPos","getPosition","setSelectedRange","deleteInDirection","articlesEndpoint","updateDestroy","destroyFieldTarget","checkboxFieldTarget","RemoteFormController","copy","copyTemp","span","copyableValue","body","execCommand","hasStatusTarget","statusTarget","clearStatus","removeChild","reveal","hasRevealTarget","revealTarget","copyable"],"sourceRoot":""}