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,MAAMimD,EAAatqD,KAAKsqD,WAAWjmD,EAAMqF,QACnB1J,KAAKuqD,aAAalmD,GAC1BrC,SAAS4D,IAASA,EAAGvE,UAAUC,IAAIgpD,EAAW,IAC5DjmD,EAAMqF,OAAOrI,UAAUC,IAAIgpD,EAC7B,CAEAE,QAAAA,CAASnmD,GACPrE,KAAKuqD,aAAalmD,GAAOrC,SAAQ,SAAU4D,GAAMA,EAAGvE,UAAU2B,OAAO,aAAc,cAAe,IAClGqB,EAAMqF,OAAOrI,UAAU2B,OAAO,aAAc,cAC9C,CAEAunD,YAAAA,CAAalmD,GACX,MAAMkQ,EAAQlQ,EAAMqF,OAAOoC,QAAQyI,MAC7BD,EAAWjQ,EAAMqF,OAAOoC,QAAQwI,SAEtC,OAAIC,IAAUD,GAELwU,EAAAA,EAAAA,GAAO9oB,KAAKuvB,cAAe3pB,GAAgBA,EAAGkG,QAAQyI,OAASA,IAC7DD,IAAaC,GAEfuU,EAAAA,EAAAA,GAAO9oB,KAAKuvB,cAAe3pB,GAAgBA,EAAGkG,QAAQwI,UAAYA,IAGpE,EACT,CAEAg2C,UAAAA,CAAWG,GACT,MAAqD,UAAjDjpD,EAAAA,EAAAA,GAAIipD,EAAY,mBAAoB,SAC/B,cAEA,YAEX,EAED5qD,EArCQkE,QAAU,CAAC,Q","sources":["webpack://iam-compliant/./app/webpacker/controllers/app/estates/asset_form_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/membership/invite_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/audit/form_settings_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/helpdesk/categories_form_section_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/shared/advanced_filters_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/collapsable_menu_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/new_tile_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/ sync _controller\\.js$","webpack://iam-compliant/./app/webpacker/controllers/app/documents/bulk_upload_form_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/estates/budget_form_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/video_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/matrix/navigate_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/documentation/bulletin_reminder_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/helpdesk/ticket_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/job/contractor_preview_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/incident_report_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/estates/utility_usage_record_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/contractors/ratings_form_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/form_sortable_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/contractor_contract_form_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/index.js","webpack://iam-compliant/./app/webpacker/trix_features/app_headings.js","webpack://iam-compliant/./app/webpacker/packs/application.js","webpack://iam-compliant/./app/webpacker/controllers/app/asset_register/entry_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/shared/scroll_to_top_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/helpdesk/email_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/audit/response_follow_up_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/lms/courses_format_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/documentation/preview_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/form/contract_selector_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/helpdesk/categories_form_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/completion_record/assets_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/location_zones_select_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/membership_jobs/failure_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/training/reporting_filter_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/asset_register/search_form_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/insights/tile_dataset_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/sustainability/board_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/form/contract_picker_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/form/checked_count_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/components/recipients_selector_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/form/location_selector_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/issues/affected_asset_item_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/grid_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/issues/affected_assets_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/vault/search_results_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/audit/form_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/user/login_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/membership/edit_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/scroll_to_link_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/task/preview_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/form/clear_filter_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/relative_time_controller.js","webpack://iam-compliant/./app/webpacker/channels/ sync _channel\\.js$","webpack://iam-compliant/./app/webpacker/controllers/app/sustainability/list_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/job/contract_confirmation_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/lms/bulk_unassign_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/sustainability/onboarding_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/form/reveal_spinner_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/task/estimate_form_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/calendar/day_scroll_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/action_points/completion_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/completion_record/toggler_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/job/contract_quote_choice_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/insights/dataset_locations_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/tile_move_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/metric/numeric_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/secr/emission_record_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/charts/date_heatmap_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/audit/location_select_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/incident_form_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/lms_lesson_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/account/location_geolocation_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/documentation/bulk_upload_datepicker_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/premises_compliance_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/datepicker_from_and_optional_to_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/drag_drop_upload_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/preview_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/helpdesk/checked_count_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/badge_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/collapsible_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/shared/button_dropdown_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/helpdesk/tickets_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/expand_retract_table_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/photo_upload_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/dispatch_custom_event_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/datepicker_modal_display_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/pluralize_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/asset_register/label_template_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/estates/child_select_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/response_group/form_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/autocomplete_controller.js","webpack://iam-compliant/./app/webpacker/lib/drag_drop_upload.js","webpack://iam-compliant/./app/webpacker/controllers/app/lms/carousel_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/reports/scorecard_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/documents/bulk_upload_field_controller.js","webpack://iam-compliant/./app/webpacker/lib/file_utils.js","webpack://iam-compliant/./app/webpacker/controllers/app/form/modal_turbo_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/training/reporting_selected_filters_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/job/job_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/account/group_membership_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/filter/live_search_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/audit/response_assets_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/format_date_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/lms/group_recipients_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/tree_navigator_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/account/handle_group_users_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/note_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/matrix/toggle_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/asset_register/entry_photos_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/audit/response_review_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/applicable_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/datepicker_from_and_to_controller.js","webpack://iam-compliant/./app/webpacker/channels/index.js","webpack://iam-compliant/./app/webpacker/controllers/app/uploads_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/membership/user_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/documentation/document_search_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/news_grid_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/shared/mobile_menu_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/task/customise_reschedule_options_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/form/turbo_results_loading_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/asset_register/current_condition_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/insights/dataset_filters_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/incident_follow_up_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/issues/affected_assets_search_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/filtered_list_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/iframe_resizer_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/estates/property_condition_search_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/insights/dataset_filter_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/estates/utility_meter_selector_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/risk_matrix_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/lms_course_watcher_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/job/contractor_options_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/tutorial_block_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/edit_tile_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/quick_search_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/shared/link_ooj_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/calendar/label_resize_controller.js","webpack://iam-compliant/./app/webpacker/controllers/app/matrix/hover_controller.js"],"sourcesContent":["import { Controller } from '@hotwired/stimulus'\nimport { get, forEach, keys } from 'lodash-es'\n\nexport default class extends Controller {\n\n static targets = ['usage', 'typeSelect', 'parentInput', 'usageSelect', 'submitButton']\n static values = {\n usageOptions: Object,\n parentTreePath: String\n }\n\n connect() {\n this.toggleFormUsage()\n }\n\n toggleFormUsage() {\n const typeValue = this.typeSelectTarget.value\n\n if (typeValue.length == 0 || typeValue == 'LocationZone') {\n this.hideUsage()\n this.hideParentInput()\n return\n }\n\n if (typeValue == 'Estates::Building') {\n this.hideParentInput()\n } else {\n this.showParentInput()\n this.triggerSelectorRefresh()\n }\n\n this.showUsage()\n this.setButtonsStatus()\n }\n\n setButtonsStatus() {\n if (this.submitEnabled()) {\n this.submitButtonTarget.disabled = false\n } else {\n this.submitButtonTarget.disabled = true\n }\n }\n\n cancelForm(e) {\n e.preventDefault()\n e.stopImmediatePropagation()\n\n this.typeSelectTarget.value = ''\n this.usageSelectTarget.value = ''\n this.usageTarget.classList.add('hide')\n this.usageSelectTarget.classList.add('hide')\n }\n\n buildUsageOptions() {\n const typeValue = get(this, 'typeSelectTarget.value')\n const selectedValue = get(this, 'usageSelectTarget.value')\n\n const optionValues = get(this, `usageOptionsValue[${typeValue}]`, [])\n this.usageSelectTarget.innerHTML = ''\n\n if (optionValues.length == 0) {\n return false\n }\n\n this.usageSelectTarget.appendChild(this.buildOption('Select usage', '', selectedValue == ''))\n\n if (keys(optionValues).length > 1) {\n // build group select options\n let groupEl\n forEach(optionValues, (values, group) => {\n groupEl = document.createElement('optgroup')\n groupEl.setAttribute('label', group)\n forEach(values, (opt) => {\n groupEl.appendChild(this.buildOption(opt, opt, opt == selectedValue))\n })\n this.usageSelectTarget.appendChild(groupEl)\n })\n } else {\n // no opt groups if there's only one\n forEach(optionValues, (values, _group) => {\n forEach(values, (opt) => {\n this.usageSelectTarget.appendChild(this.buildOption(opt, opt, opt == selectedValue))\n })\n })\n }\n return true\n }\n\n buildOption(label, value, selected) {\n const opt = document.createElement('option')\n opt.setAttribute('value', value)\n if (selected) {\n opt.setAttribute('selected', 'selected')\n }\n opt.textContent = label\n return opt\n }\n\n hideUsage() {\n if (this.hasUsageTarget) {\n this.usageTarget.classList.add('hide')\n }\n if (this.hasUsageSelectTarget) {\n this.usageSelectTarget.classList.add('hide')\n }\n }\n\n hideParentInput() {\n if (!this.hasParentInputTarget) {\n return\n }\n\n this.parentInputTarget.closest('.input').classList.add('hide')\n this.parentInputTarget.value = ''\n }\n\n showParentInput() {\n if (!this.hasParentInputTarget) {\n return\n }\n\n this.parentInputTarget.closest('.input').classList.remove('hide')\n }\n\n triggerSelectorRefresh() {\n if (this.hasParentTreePathValue) {\n let refreshParams = new URLSearchParams({ selector_type: 'parent', target_type: this.typeSelectTarget.value })\n window.dispatchEvent(new CustomEvent(\"refresh-location-zone-selector\", {\n detail: {\n id: 'zone-selector-modal',\n refresh_url: `${this.parentTreePathValue}?${refreshParams.toString()}`\n }\n }))\n }\n }\n\n showUsage() {\n if (!this.hasUsageSelectTarget) {\n return\n }\n\n if (this.buildUsageOptions()) {\n this.usageSelectTarget.classList.remove('hide')\n if (this.hasUsageTarget) {\n this.usageTarget.classList.remove('hide')\n }\n } else {\n this.usageSelectTarget.classList.add('hide')\n if (this.hasUsageTarget) {\n this.usageTarget.classList.add('hide')\n }\n }\n }\n\n submitEnabled() {\n if (this.typeSelectTarget.value.length < 1) {\n return false\n }\n if (this.requiresUsage() && this.usageSelectTarget.value.length < 1) {\n return false\n }\n\n return true\n }\n\n requiresUsage() {\n const typeValue = this.typeSelectTarget.value\n if (typeValue == 'Estates::Room') {\n return true\n }\n\n return false\n }\n}","import { Controller } from \"@hotwired/stimulus\"\nimport { get } from \"lodash-es\"\n\nexport default class extends Controller {\n\n static targets = [\"locationInput\", \"memberMessage\"]\n\n checkEmail(event) {\n let emailInput = event.currentTarget\n\n this.resetInviteWarnings()\n if (!this.element.checkValidity() || emailInput.value.trim().length == 0) {\n return false\n }\n\n const _self = this\n this.postJson(`${window.location.href}/check_user`, { email: emailInput.value })\n .then(data => {\n if (data.status == 'member') {\n let link = document.createElement('a')\n link.setAttribute('href', data.link)\n link.classList.add('button', 'tiny', 'secondary', 'right', 'collapse')\n link.textContent = 'Manage user'\n\n // Already a member of this organisation\n _self.memberMessageTarget.textContent = 'This person already belongs to your organisation'\n _self.memberMessageTarget.appendChild(link)\n _self.memberMessageTarget.classList.remove('hide')\n _self.element.querySelector(\".invitee-details\").classList.add(\"hide\")\n _self.element.querySelector(\"input[type=submit]\").disabled = true\n\n } else if (data.status == 'new') {\n // Create new user and membership\n\n } else if (data.status == 'found') {\n // Existing user found, create new membership\n _self.element.querySelector(\".invitee-name\").classList.add(\"hide\")\n _self.memberMessageTarget.textContent = \"We already have a record of this person's first and last names in our database because they have used iAM before.\"\n _self.memberMessageTarget.classList.remove('hide')\n }\n })\n .catch(error => {\n console.error(error)\n })\n }\n\n assignAllLocations(event) {\n event.preventDefault()\n event.stopImmediatePropagation()\n\n this.locationInputTargets.forEach(el => {\n el.checked = true\n })\n }\n\n toggleRoleLocations(event) {\n let formData = new FormData(this.element)\n let labels = this.element.querySelectorAll('.invite_locations label, .add-to-all')\n let hints = this.element.querySelectorAll('.invite_locations .hint')\n if (formData.get('invite[role]') == 'owner') {\n labels.forEach(el => {\n el.style.display = 'none'\n })\n\n hints.forEach(el => {\n el.style.display = 'block'\n })\n } else {\n labels.forEach(el => {\n el.style.display = 'block'\n })\n\n hints.forEach(el => {\n el.style.display = 'none'\n })\n }\n }\n\n resetInviteWarnings() {\n this.element.querySelector(\"input[type=submit]\").disabled = false\n this.element.querySelector(\".invitee-name\").classList.remove(\"hide\")\n this.element.querySelector(\".invitee-details\").classList.remove(\"hide\")\n this.memberMessageTarget.textContent = \"\"\n this.memberMessageTarget.classList.add('hide')\n }\n\n postJson(url, data) {\n return fetch(url, {\n method: 'POST',\n body: JSON.stringify(data),\n headers: {\n \"X-CSRF-Token\": this.csrfToken(),\n \"Content-Type\": \"application/json\"\n }\n }).then(response => {\n if (!response.ok) {\n throw new Error('Request failed')\n }\n return response.json()\n })\n }\n\n csrfToken() {\n const csrfToken = document.querySelector(\"[name='csrf-token']\")\n\n return get(csrfToken, 'content')\n }\n\n}","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"ownership\", \"allowOpenResponses\", \"disallowOpenResponses\"];\n\n connect() {\n this.setOpenFormState();\n }\n\n ownershipChanged() {\n this.setOpenFormState();\n }\n\n setOpenFormState() {\n const ownershipValue = this.ownershipTarget.value.trim();\n\n if (ownershipValue == '') {\n this.allowOpenResponsesTarget.style.display = 'none';\n this.disallowOpenResponsesTarget.style.display = 'block';\n } else {\n this.allowOpenResponsesTarget.style.display = 'block';\n this.disallowOpenResponsesTarget.style.display = 'none';\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = ['selector', 'totalSection', 'categorySection', 'category', 'assetSection', 'selectAllAssets', 'asset'];\n\n connect() {\n this.parentFormController = this.application.getControllerForElementAndIdentifier(document.getElementById('helpdesk-categories-form'), 'helpdesk--categories-form');\n this.addEventListeners();\n this.updateSectionBasedOnFormState();\n }\n\n addEventListeners() {\n document.addEventListener('helpdeskCategories:change', this.updateSectionBasedOnFormState.bind(this));\n }\n\n select() {\n this.updateSectionBasedOnFormState();\n }\n\n updateSectionBasedOnFormState() {\n const showSections = this.parentFormController.enableAssetsChecked() && !this.parentFormController.selectAllChecked();\n this.show(this.totalSectionTarget, showSections);\n\n if (showSections) {\n this.updateSelectorState(true);\n const selectedOption = this.getSelectedOption();\n\n this.maybeShowSections(selectedOption);\n this.maybeEnableInputs(selectedOption);\n } else {\n this.updateSelectorState(false);\n this.disableInputs(['category', 'selectAllAssets', 'asset']);\n }\n }\n\n updateSelectorState(isEnabled) {\n if (this.hasSelectorTarget) {\n this.selectorTarget.querySelectorAll('input').forEach(input => input.disabled = !isEnabled);\n }\n }\n\n maybeShowSections(selectedOption) {\n if (this.hasCategorySectionTarget) {\n this.show(this.categorySectionTarget, selectedOption === 'category');\n }\n this.show(this.assetSectionTarget, selectedOption === 'assets');\n this.show(this.totalSectionTarget, true, true);\n }\n\n maybeEnableInputs(selectedOption) {\n const isCategory = selectedOption === 'category';\n const isAssets = selectedOption === 'assets';\n\n if (this.hasCategoryTarget) {\n this.categoryTarget.disabled = !isCategory;\n }\n\n if (this.hasSelectAllAssetsTarget) {\n this.selectAllAssetsTarget.disabled = !isAssets;\n }\n\n this.assetTargets.forEach(asset => asset.disabled = !isAssets);\n }\n\n disableInputs(targets) {\n targets.forEach(target => {\n this[`${target}Targets`]?.forEach(element => element.disabled = true);\n });\n }\n\n getSelectedOption() {\n return this.hasSelectorTarget ? this.selectorTarget.querySelector('input[type=\"radio\"]:checked')?.value : 'assets';\n }\n\n show(element, shouldShow, inline = false) {\n if (element) {\n element.style.display = shouldShow ? (inline ? 'inline-block' : 'block') : 'none';\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = [\"filters\", \"toggle\", \"status\"]\n\n static values = {\n open: Boolean\n }\n\n connect() {\n if (this.openValue == true) {\n this.show();\n }\n }\n\n toggle(e) {\n e.preventDefault();\n if (this.openValue == true) {\n this.hide_and_reset();\n } else {\n this.show();\n }\n }\n\n hide_and_reset() {\n this.openValue = false\n this.filtersTarget.classList.add(\"hide\")\n this.toggleTarget.classList.remove(\"hide\")\n window.history.replaceState(null, '', window.location.pathname);\n this.filtersTarget.querySelectorAll(\"select\").forEach(select => {\n select.selectedIndex = 0;\n });\n this.submit();\n }\n\n show() {\n this.openValue = true\n this.filtersTarget.classList.remove(\"hide\")\n this.toggleTarget.classList.add(\"hide\")\n }\n\n submit() {\n const selectedOption = this.statusTarget.options[this.statusTarget.selectedIndex];\n const context = selectedOption.getAttribute('data-context');\n\n let newUrl = new URL(window.location.href);\n let pathname = newUrl.pathname;\n\n if (context === 'closed') {\n if (!pathname.endsWith('/closed')) {\n newUrl.pathname = pathname + '/closed';\n }\n } else {\n if (pathname.endsWith('/closed')) {\n newUrl.pathname = pathname.replace(/\\/closed$/, '');\n }\n }\n\n window.history.replaceState(null, '', newUrl.toString());\n this.element.requestSubmit();\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static values = {\n collapse: {type: Boolean, default: false}\n }\n\n toggle() {\n const sidebar = this.element.nextElementSibling\n const content = this.element.previousElementSibling\n this.collapseValue = !this.collapseValue\n if (this.collapseValue) {\n this.collapse(sidebar, content)\n } else {\n this.expand(sidebar, content)\n }\n }\n\n expand(sidebar, content) {\n sidebar.classList.remove(\"hide\")\n content.classList.remove(\"medium-12\")\n content.classList.add(\"medium-9\")\n this.element.classList.remove(\"collapse\")\n }\n\n collapse(sidebar, content) {\n sidebar.classList.add(\"hide\")\n content.classList.remove(\"medium-9\")\n content.classList.add(\"medium-12\")\n this.element.classList.add(\"collapse\")\n\n }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n connect () {\n const event = new CustomEvent(\"add-tile-item\", {\n detail: {\n newItem: this.element.dataset.id\n }\n });\n window.dispatchEvent(event);\n }\n}","var map = {\n\t\"./account/group_membership_controller.js\": 65320,\n\t\"./account/handle_group_users_controller.js\": 70915,\n\t\"./account/location_geolocation_controller.js\": 49766,\n\t\"./action_points/completion_controller.js\": 44693,\n\t\"./applicable_controller.js\": 75923,\n\t\"./asset_register/current_condition_controller.js\": 81164,\n\t\"./asset_register/entry_controller.js\": 15973,\n\t\"./asset_register/entry_photos_controller.js\": 75491,\n\t\"./asset_register/label_template_controller.js\": 57080,\n\t\"./asset_register/search_form_controller.js\": 20876,\n\t\"./audit/form_controller.js\": 28758,\n\t\"./audit/form_settings_controller.js\": 2182,\n\t\"./audit/location_select_controller.js\": 47744,\n\t\"./audit/response_assets_controller.js\": 67035,\n\t\"./audit/response_follow_up_controller.js\": 16789,\n\t\"./audit/response_review_controller.js\": 75772,\n\t\"./autocomplete_controller.js\": 59948,\n\t\"./badge_controller.js\": 52097,\n\t\"./calendar/day_scroll_controller.js\": 43943,\n\t\"./calendar/label_resize_controller.js\": 97832,\n\t\"./charts/date_heatmap_controller.js\": 47483,\n\t\"./collapsable_menu_controller.js\": 5266,\n\t\"./collapsible_controller.js\": 52576,\n\t\"./completion_record/assets_controller.js\": 18386,\n\t\"./completion_record/toggler_controller.js\": 45193,\n\t\"./components/recipients_selector_controller.js\": 24973,\n\t\"./contractor_contract_form_controller.js\": 15271,\n\t\"./contractors/ratings_form_controller.js\": 13200,\n\t\"./datepicker_from_and_optional_to_controller.js\": 51106,\n\t\"./datepicker_from_and_to_controller.js\": 76205,\n\t\"./datepicker_modal_display_controller.js\": 56179,\n\t\"./dispatch_custom_event_controller.js\": 55661,\n\t\"./documentation/bulk_upload_datepicker_controller.js\": 49944,\n\t\"./documentation/bulletin_reminder_controller.js\": 8161,\n\t\"./documentation/document_search_controller.js\": 77009,\n\t\"./documentation/preview_controller.js\": 17687,\n\t\"./documents/bulk_upload_field_controller.js\": 63938,\n\t\"./documents/bulk_upload_form_controller.js\": 6304,\n\t\"./drag_drop_upload_controller.js\": 51546,\n\t\"./edit_tile_controller.js\": 92707,\n\t\"./estates/asset_form_controller.js\": 827,\n\t\"./estates/budget_form_controller.js\": 7122,\n\t\"./estates/child_select_controller.js\": 58135,\n\t\"./estates/property_condition_search_controller.js\": 89706,\n\t\"./estates/utility_meter_selector_controller.js\": 90992,\n\t\"./estates/utility_usage_record_controller.js\": 11138,\n\t\"./expand_retract_table_controller.js\": 54983,\n\t\"./filter/live_search_controller.js\": 66854,\n\t\"./filtered_list_controller.js\": 88708,\n\t\"./form/checked_count_controller.js\": 23184,\n\t\"./form/clear_filter_controller.js\": 30973,\n\t\"./form/contract_picker_controller.js\": 22996,\n\t\"./form/contract_selector_controller.js\": 17853,\n\t\"./form/location_selector_controller.js\": 25992,\n\t\"./form/modal_turbo_controller.js\": 64501,\n\t\"./form/reveal_spinner_controller.js\": 39964,\n\t\"./form/turbo_results_loading_controller.js\": 81077,\n\t\"./form_sortable_controller.js\": 13813,\n\t\"./format_date_controller.js\": 67408,\n\t\"./grid_controller.js\": 27484,\n\t\"./helpdesk/categories_form_controller.js\": 18086,\n\t\"./helpdesk/categories_form_section_controller.js\": 4138,\n\t\"./helpdesk/checked_count_controller.js\": 51772,\n\t\"./helpdesk/email_controller.js\": 16611,\n\t\"./helpdesk/ticket_controller.js\": 8589,\n\t\"./helpdesk/tickets_controller.js\": 53972,\n\t\"./iframe_resizer_controller.js\": 88867,\n\t\"./incident_follow_up_controller.js\": 83090,\n\t\"./incident_form_controller.js\": 48455,\n\t\"./incident_report_controller.js\": 9579,\n\t\"./insights/dataset_filter_controller.js\": 89859,\n\t\"./insights/dataset_filters_controller.js\": 82130,\n\t\"./insights/dataset_locations_controller.js\": 45899,\n\t\"./insights/tile_dataset_controller.js\": 22115,\n\t\"./issues/affected_asset_item_controller.js\": 27340,\n\t\"./issues/affected_assets_controller.js\": 27661,\n\t\"./issues/affected_assets_search_controller.js\": 85216,\n\t\"./job/contract_confirmation_controller.js\": 37670,\n\t\"./job/contract_quote_choice_controller.js\": 45851,\n\t\"./job/contractor_options_controller.js\": 91626,\n\t\"./job/contractor_preview_controller.js\": 9160,\n\t\"./job/job_controller.js\": 65081,\n\t\"./lms/bulk_unassign_controller.js\": 38564,\n\t\"./lms/carousel_controller.js\": 61317,\n\t\"./lms/courses_format_controller.js\": 17139,\n\t\"./lms/group_recipients_controller.js\": 70099,\n\t\"./lms_course_watcher_controller.js\": 91169,\n\t\"./lms_lesson_controller.js\": 48559,\n\t\"./location_zones_select_controller.js\": 18664,\n\t\"./matrix/hover_controller.js\": 99444,\n\t\"./matrix/navigate_controller.js\": 7551,\n\t\"./matrix/toggle_controller.js\": 74786,\n\t\"./membership/edit_controller.js\": 29411,\n\t\"./membership/invite_controller.js\": 936,\n\t\"./membership/user_controller.js\": 76766,\n\t\"./membership_jobs/failure_controller.js\": 19648,\n\t\"./metric/numeric_controller.js\": 46616,\n\t\"./new_tile_controller.js\": 5501,\n\t\"./news_grid_controller.js\": 77184,\n\t\"./note_controller.js\": 71136,\n\t\"./photo_upload_controller.js\": 55316,\n\t\"./pluralize_controller.js\": 56384,\n\t\"./premises_compliance_controller.js\": 50294,\n\t\"./preview_controller.js\": 51632,\n\t\"./quick_search_controller.js\": 93936,\n\t\"./relative_time_controller.js\": 33096,\n\t\"./reports/scorecard_controller.js\": 63376,\n\t\"./response_group/form_controller.js\": 59314,\n\t\"./risk_matrix_controller.js\": 91083,\n\t\"./scroll_to_link_controller.js\": 29960,\n\t\"./secr/emission_record_controller.js\": 47353,\n\t\"./shared/advanced_filters_controller.js\": 4272,\n\t\"./shared/button_dropdown_controller.js\": 53618,\n\t\"./shared/link_ooj_controller.js\": 95271,\n\t\"./shared/mobile_menu_controller.js\": 77230,\n\t\"./shared/scroll_to_top_controller.js\": 16255,\n\t\"./sustainability/board_controller.js\": 22886,\n\t\"./sustainability/list_controller.js\": 37502,\n\t\"./sustainability/onboarding_controller.js\": 39625,\n\t\"./task/customise_reschedule_options_controller.js\": 78152,\n\t\"./task/estimate_form_controller.js\": 43857,\n\t\"./task/preview_controller.js\": 30826,\n\t\"./tile_move_controller.js\": 46436,\n\t\"./training/reporting_filter_controller.js\": 20358,\n\t\"./training/reporting_selected_filters_controller.js\": 64767,\n\t\"./tree_navigator_controller.js\": 70178,\n\t\"./tutorial_block_controller.js\": 92392,\n\t\"./uploads_controller.js\": 76386,\n\t\"./user/login_controller.js\": 28855,\n\t\"./vault/search_results_controller.js\": 27796,\n\t\"./video_controller.js\": 7425,\n\t\"controllers/app/account/group_membership_controller.js\": 65320,\n\t\"controllers/app/account/handle_group_users_controller.js\": 70915,\n\t\"controllers/app/account/location_geolocation_controller.js\": 49766,\n\t\"controllers/app/action_points/completion_controller.js\": 44693,\n\t\"controllers/app/applicable_controller.js\": 75923,\n\t\"controllers/app/asset_register/current_condition_controller.js\": 81164,\n\t\"controllers/app/asset_register/entry_controller.js\": 15973,\n\t\"controllers/app/asset_register/entry_photos_controller.js\": 75491,\n\t\"controllers/app/asset_register/label_template_controller.js\": 57080,\n\t\"controllers/app/asset_register/search_form_controller.js\": 20876,\n\t\"controllers/app/audit/form_controller.js\": 28758,\n\t\"controllers/app/audit/form_settings_controller.js\": 2182,\n\t\"controllers/app/audit/location_select_controller.js\": 47744,\n\t\"controllers/app/audit/response_assets_controller.js\": 67035,\n\t\"controllers/app/audit/response_follow_up_controller.js\": 16789,\n\t\"controllers/app/audit/response_review_controller.js\": 75772,\n\t\"controllers/app/autocomplete_controller.js\": 59948,\n\t\"controllers/app/badge_controller.js\": 52097,\n\t\"controllers/app/calendar/day_scroll_controller.js\": 43943,\n\t\"controllers/app/calendar/label_resize_controller.js\": 97832,\n\t\"controllers/app/charts/date_heatmap_controller.js\": 47483,\n\t\"controllers/app/collapsable_menu_controller.js\": 5266,\n\t\"controllers/app/collapsible_controller.js\": 52576,\n\t\"controllers/app/completion_record/assets_controller.js\": 18386,\n\t\"controllers/app/completion_record/toggler_controller.js\": 45193,\n\t\"controllers/app/components/recipients_selector_controller.js\": 24973,\n\t\"controllers/app/contractor_contract_form_controller.js\": 15271,\n\t\"controllers/app/contractors/ratings_form_controller.js\": 13200,\n\t\"controllers/app/datepicker_from_and_optional_to_controller.js\": 51106,\n\t\"controllers/app/datepicker_from_and_to_controller.js\": 76205,\n\t\"controllers/app/datepicker_modal_display_controller.js\": 56179,\n\t\"controllers/app/dispatch_custom_event_controller.js\": 55661,\n\t\"controllers/app/documentation/bulk_upload_datepicker_controller.js\": 49944,\n\t\"controllers/app/documentation/bulletin_reminder_controller.js\": 8161,\n\t\"controllers/app/documentation/document_search_controller.js\": 77009,\n\t\"controllers/app/documentation/preview_controller.js\": 17687,\n\t\"controllers/app/documents/bulk_upload_field_controller.js\": 63938,\n\t\"controllers/app/documents/bulk_upload_form_controller.js\": 6304,\n\t\"controllers/app/drag_drop_upload_controller.js\": 51546,\n\t\"controllers/app/edit_tile_controller.js\": 92707,\n\t\"controllers/app/estates/asset_form_controller.js\": 827,\n\t\"controllers/app/estates/budget_form_controller.js\": 7122,\n\t\"controllers/app/estates/child_select_controller.js\": 58135,\n\t\"controllers/app/estates/property_condition_search_controller.js\": 89706,\n\t\"controllers/app/estates/utility_meter_selector_controller.js\": 90992,\n\t\"controllers/app/estates/utility_usage_record_controller.js\": 11138,\n\t\"controllers/app/expand_retract_table_controller.js\": 54983,\n\t\"controllers/app/filter/live_search_controller.js\": 66854,\n\t\"controllers/app/filtered_list_controller.js\": 88708,\n\t\"controllers/app/form/checked_count_controller.js\": 23184,\n\t\"controllers/app/form/clear_filter_controller.js\": 30973,\n\t\"controllers/app/form/contract_picker_controller.js\": 22996,\n\t\"controllers/app/form/contract_selector_controller.js\": 17853,\n\t\"controllers/app/form/location_selector_controller.js\": 25992,\n\t\"controllers/app/form/modal_turbo_controller.js\": 64501,\n\t\"controllers/app/form/reveal_spinner_controller.js\": 39964,\n\t\"controllers/app/form/turbo_results_loading_controller.js\": 81077,\n\t\"controllers/app/form_sortable_controller.js\": 13813,\n\t\"controllers/app/format_date_controller.js\": 67408,\n\t\"controllers/app/grid_controller.js\": 27484,\n\t\"controllers/app/helpdesk/categories_form_controller.js\": 18086,\n\t\"controllers/app/helpdesk/categories_form_section_controller.js\": 4138,\n\t\"controllers/app/helpdesk/checked_count_controller.js\": 51772,\n\t\"controllers/app/helpdesk/email_controller.js\": 16611,\n\t\"controllers/app/helpdesk/ticket_controller.js\": 8589,\n\t\"controllers/app/helpdesk/tickets_controller.js\": 53972,\n\t\"controllers/app/iframe_resizer_controller.js\": 88867,\n\t\"controllers/app/incident_follow_up_controller.js\": 83090,\n\t\"controllers/app/incident_form_controller.js\": 48455,\n\t\"controllers/app/incident_report_controller.js\": 9579,\n\t\"controllers/app/insights/dataset_filter_controller.js\": 89859,\n\t\"controllers/app/insights/dataset_filters_controller.js\": 82130,\n\t\"controllers/app/insights/dataset_locations_controller.js\": 45899,\n\t\"controllers/app/insights/tile_dataset_controller.js\": 22115,\n\t\"controllers/app/issues/affected_asset_item_controller.js\": 27340,\n\t\"controllers/app/issues/affected_assets_controller.js\": 27661,\n\t\"controllers/app/issues/affected_assets_search_controller.js\": 85216,\n\t\"controllers/app/job/contract_confirmation_controller.js\": 37670,\n\t\"controllers/app/job/contract_quote_choice_controller.js\": 45851,\n\t\"controllers/app/job/contractor_options_controller.js\": 91626,\n\t\"controllers/app/job/contractor_preview_controller.js\": 9160,\n\t\"controllers/app/job/job_controller.js\": 65081,\n\t\"controllers/app/lms/bulk_unassign_controller.js\": 38564,\n\t\"controllers/app/lms/carousel_controller.js\": 61317,\n\t\"controllers/app/lms/courses_format_controller.js\": 17139,\n\t\"controllers/app/lms/group_recipients_controller.js\": 70099,\n\t\"controllers/app/lms_course_watcher_controller.js\": 91169,\n\t\"controllers/app/lms_lesson_controller.js\": 48559,\n\t\"controllers/app/location_zones_select_controller.js\": 18664,\n\t\"controllers/app/matrix/hover_controller.js\": 99444,\n\t\"controllers/app/matrix/navigate_controller.js\": 7551,\n\t\"controllers/app/matrix/toggle_controller.js\": 74786,\n\t\"controllers/app/membership/edit_controller.js\": 29411,\n\t\"controllers/app/membership/invite_controller.js\": 936,\n\t\"controllers/app/membership/user_controller.js\": 76766,\n\t\"controllers/app/membership_jobs/failure_controller.js\": 19648,\n\t\"controllers/app/metric/numeric_controller.js\": 46616,\n\t\"controllers/app/new_tile_controller.js\": 5501,\n\t\"controllers/app/news_grid_controller.js\": 77184,\n\t\"controllers/app/note_controller.js\": 71136,\n\t\"controllers/app/photo_upload_controller.js\": 55316,\n\t\"controllers/app/pluralize_controller.js\": 56384,\n\t\"controllers/app/premises_compliance_controller.js\": 50294,\n\t\"controllers/app/preview_controller.js\": 51632,\n\t\"controllers/app/quick_search_controller.js\": 93936,\n\t\"controllers/app/relative_time_controller.js\": 33096,\n\t\"controllers/app/reports/scorecard_controller.js\": 63376,\n\t\"controllers/app/response_group/form_controller.js\": 59314,\n\t\"controllers/app/risk_matrix_controller.js\": 91083,\n\t\"controllers/app/scroll_to_link_controller.js\": 29960,\n\t\"controllers/app/secr/emission_record_controller.js\": 47353,\n\t\"controllers/app/shared/advanced_filters_controller.js\": 4272,\n\t\"controllers/app/shared/button_dropdown_controller.js\": 53618,\n\t\"controllers/app/shared/link_ooj_controller.js\": 95271,\n\t\"controllers/app/shared/mobile_menu_controller.js\": 77230,\n\t\"controllers/app/shared/scroll_to_top_controller.js\": 16255,\n\t\"controllers/app/sustainability/board_controller.js\": 22886,\n\t\"controllers/app/sustainability/list_controller.js\": 37502,\n\t\"controllers/app/sustainability/onboarding_controller.js\": 39625,\n\t\"controllers/app/task/customise_reschedule_options_controller.js\": 78152,\n\t\"controllers/app/task/estimate_form_controller.js\": 43857,\n\t\"controllers/app/task/preview_controller.js\": 30826,\n\t\"controllers/app/tile_move_controller.js\": 46436,\n\t\"controllers/app/training/reporting_filter_controller.js\": 20358,\n\t\"controllers/app/training/reporting_selected_filters_controller.js\": 64767,\n\t\"controllers/app/tree_navigator_controller.js\": 70178,\n\t\"controllers/app/tutorial_block_controller.js\": 92392,\n\t\"controllers/app/uploads_controller.js\": 76386,\n\t\"controllers/app/user/login_controller.js\": 28855,\n\t\"controllers/app/vault/search_results_controller.js\": 27796,\n\t\"controllers/app/video_controller.js\": 7425\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 = 5777;","import { Controller } from \"@hotwired/stimulus\"\nimport {get} from \"lodash-es\";\nimport { DragDropUpload } from \"../../../lib/drag_drop_upload\";\n\nexport default class extends Controller {\n\n static targets = [\n 'validationMessage',\n 'fileDragZone',\n 'fileInput',\n 'uploadForm',\n 'uploadName',\n 'uploadField',\n 'uploadAreaContainer',\n 'publishButton',\n 'publishButtonSpinner'\n ]\n\n static values = {\n maxUploadCount: Number,\n locationId: String,\n folderId: String,\n }\n\n initialize() {\n this.currentlyUploadingCount = 0;\n }\n\n connect() {\n this.addEventListeners()\n\n this.resetFileInput();\n this.showHideDragField();\n }\n\n addEventListeners() {\n document.addEventListener('uploadErrorEvent', this.handleUploadError.bind(this));\n document.addEventListener(`uploadFieldReady`, this.uploadFieldConnected.bind(this));\n document.addEventListener(`uploadRemoved`, this.uploadRemoved.bind(this));\n document.addEventListener(`uploadStarted`, this.uploadStarted.bind(this));\n document.addEventListener(`uploadFinished`, this.uploadFinished.bind(this));\n }\n\n upload(files) {\n let validatedFiles = {};\n\n // Reset things that need resetting\n this.resetValidationMessage();\n\n // Check if files exists\n if (files.length == 0) {\n // Hide the form fields and show the drop box\n this.showValidationMessage(\"Please select a file first\");\n } else {\n // Get valid files\n validatedFiles = this.validateFiles(files);\n\n // Handle direct upload\n for (let i = 0; i < validatedFiles.validFiles.length; i++) {\n const fieldId = this.generateUniqueId();\n\n // Creates listeners for ready fields, queues uploads, and adds from queue to ready fields\n document.addEventListener(`uploadFieldReady_${fieldId}`, () => {\n this.uploadFileViaChild(files[i], fieldId);\n })\n this.appendUploadDetails(fieldId);\n }\n }\n\n this.resetFileInput();\n\n this.showInvalidFiles(validatedFiles);\n }\n\n generateUniqueId() {\n const timestamp = new Date().getTime();\n const random = Math.random().toString(36).substr(2, 9);\n return `upload_field_${timestamp}_${random}`;\n }\n\n appendUploadDetails(fieldId) {\n // Add a new card/fields - called once per new upload\n const template = document.getElementById('file-details-template');\n let clone = template.cloneNode(true);\n\n clone.innerHTML = clone.innerHTML.replace(/NEW_RECORD/g, fieldId);\n\n this.uploadAreaContainerTarget.append(clone.content);\n }\n\n uploadFileViaChild(file, fieldId) {\n // Dispatches 'uploadEvent' which child controllers on each field listen for\n // Child controllers then upload their respective files\n const uploadEvent = new CustomEvent(`uploadEvent_${fieldId}`, {\n detail: {\n file: file,\n fieldId: fieldId,\n locationId: this.locationIdValue,\n folderId: this.folderIdValue,\n }\n })\n document.dispatchEvent(uploadEvent);\n }\n\n fileSelected(fileToUpload) {\n this.file = fileToUpload;\n }\n\n uploadStarted() {\n this.currentlyUploadingCount += 1;\n this.showHidePublishButton();\n }\n\n uploadFinished() {\n this.currentlyUploadingCount -= 1;\n this.showHidePublishButton();\n }\n\n uploadRemoved() {\n this.resetFileInput();\n }\n\n uploadFieldConnected() {\n this.showHideDragField();\n\n this.showHidePublishButton();\n }\n\n resetValidationMessage() {\n this.hideItem(this.validationMessageTarget);\n }\n\n showValidationMessage(msg) {\n this.showItem(this.validationMessageTarget);\n this.validationMessageTarget.innerHTML = msg;\n }\n\n validateFiles(files) {\n let validatedFiles = {\n validFiles: [],\n totalErrors: 0,\n poorFileFormat: [],\n exceedSizeLimits: [],\n exceedMaxUploadCount: [],\n uniqueInvalidFiles: new Set()\n };\n\n for (let i = 0; i < files.length; i++) {\n const file = files[i];\n let fileName = this.cleanFileName(file.name);\n\n if (this.acceptedFileFormat(fileName) && this.withinSizeLimits(file) && this.wontExceedMaxUploadCount(file, i)) {\n validatedFiles.validFiles.push(file);\n } else {\n if (!this.acceptedFileFormat(fileName)) {\n validatedFiles.totalErrors += 1;\n validatedFiles.poorFileFormat.push(file);\n\n validatedFiles.uniqueInvalidFiles.add(file);\n }\n if (!this.withinSizeLimits(file)) {\n validatedFiles.totalErrors += 1;\n validatedFiles.exceedSizeLimits.push(file);\n\n validatedFiles.uniqueInvalidFiles.add(file);\n }\n if (!this.wontExceedMaxUploadCount(file, i)) {\n validatedFiles.totalErrors += 1;\n validatedFiles.exceedMaxUploadCount.push(file);\n\n validatedFiles.uniqueInvalidFiles.add(file);\n }\n }\n }\n\n return validatedFiles;\n }\n\n showInvalidFiles(validatedFiles) {\n // Currently just displays a list of any invalid files without categorising for now (possible to categorise with the above though)\n if (validatedFiles.totalErrors > 0) {\n let html = '
There was an issue with uploading the following files. Please ensure that the format and size of these files is correct, and that the number of files does not exceed the maximum number permitted.
';\n\n validatedFiles.uniqueInvalidFiles.forEach(file => {\n html += `${this.limitFilenameLength(file.name)} (${this.bytesToKB(file.size)})
`;\n })\n\n this.showValidationMessage(html);\n }\n }\n\n cleanFileName(name) {\n return name.replace(/^\\s+|\\s+$/g, '')\n .replace(/[^a-z0-9\\.\\-\\_ ]/gi, '')\n .replace(/[-\\s]+/g, '-');\n }\n\n acceptedFileFormat(file_name) {\n const accepted_formats = ['pdf', 'doc', 'docx', 'pages', 'xls', 'xlsm', 'xlsx', 'ppt', 'pptx', 'numbers', 'key', 'jpg', 'jpeg', 'png', 'odt', 'ods', 'opd'];\n\n let ext = file_name.toLowerCase().match(/\\.([^\\.]+)$/)[1];\n\n if (accepted_formats.includes(ext)) {\n return true;\n } else {\n return false;\n }\n }\n\n withinSizeLimits(file) {\n const gigabyte = 1024 * 1024 * 1024;\n\n if (file.size > 1 * gigabyte) {\n return false;\n } else {\n return true;\n }\n }\n\n wontExceedMaxUploadCount(file, filePosition) {\n const maxUploadCount = this.maxUploadCountValue;\n\n if (this.uploadCount() + filePosition + 1 <= maxUploadCount) {\n return true;\n } else {\n return false;\n }\n }\n\n handleUploadError() {\n this.showValidationMessage(\"Sorry, an error occurred when uploading. Please try again\");\n }\n\n csrfToken() {\n const csrfToken = document.querySelector(\"[name='csrf-token']\");\n\n return get(csrfToken, 'content');\n }\n\n bytesToKB(bytes) {\n const kilobytes = bytes / 1024;\n return kilobytes.toFixed(2) + ' KB';\n }\n\n limitFilenameLength(filename, maxLength = 30) {\n if (filename.length <= maxLength) return filename;\n\n const start = Math.floor((maxLength - 3) / 2);\n const end = Math.ceil((maxLength - 3) / 2);\n\n return `${filename.slice(0, start)}...${filename.slice(-end)}`;\n }\n\n resetFileInput() {\n const template = document.getElementById('file-upload-area-template');\n let clone = template.cloneNode(true);\n\n this.fileDragZoneTarget.innerHTML = '';\n this.fileDragZoneTarget.appendChild(clone.content);\n\n new DragDropUpload(this.element, this.dragDropCallback.bind(this));\n }\n\n showHideDragField() {\n if (this.uploadCount() > 0) {\n this.hideItem(this.fileDragZoneTarget)\n } else {\n this.showItem(this.fileDragZoneTarget)\n }\n }\n\n handlePublish(event) {\n event.preventDefault();\n\n let errors = [];\n let names = new Set();\n\n this.uploadNameTargets.forEach(uploadName => {\n const inputName = uploadName.value.trim();\n let error = null;\n\n if (inputName === '') {\n error = 'Name cannot be blank';\n } else if (names.has(inputName)) {\n error = 'Names must be unique';\n }\n\n if (error) {\n errors.push({ uploadName, error });\n } else {\n names.add(inputName); // Only add to the set if there's no error\n }\n });\n\n this.showPublishButton(false);\n\n if (errors.length === 0) {\n this.uploadFormTarget.submit(); // Submit the form if no errors\n } else {\n this.displayErrors(errors);\n }\n }\n\n\n displayErrors(errors) {\n this.clearExistingErrors();\n\n errors.forEach(({ uploadName, error }) => {\n const errorElement = document.createElement('small');\n errorElement.classList.add('error', 'name-error', 'error-text');\n errorElement.textContent = error;\n\n uploadName.parentNode.insertBefore(errorElement, uploadName.nextSibling);\n\n this.showPublishButton(true);\n });\n }\n\n\n clearExistingErrors() {\n const existingErrors = this.element.querySelectorAll('.error-text');\n existingErrors.forEach(error => error.remove());\n }\n\n\n showHidePublishButton() {\n if (this.uploadCount() > 0 && this.currentlyUploadingCount == 0) {\n this.showItem(this.publishButtonTarget)\n } else {\n this.hideItem(this.publishButtonTarget)\n }\n }\n\n dragDropCallback(file) {\n this.fileSelected(file);\n this.upload(file);\n }\n\n uploadCount() {\n return document.querySelectorAll('.upload.new').length;\n }\n\n showPublishButton(showSpinner) {\n if (showSpinner == false) {\n this.hideItem(this.publishButtonTarget);\n this.showItem(this.publishButtonSpinnerTarget);\n } else {\n this.showItem(this.publishButtonTarget);\n this.hideItem(this.publishButtonSpinnerTarget);\n }\n }\n\n selectButtonClick() {\n this.fileInputTarget.click();\n }\n\n showItem(item) {\n item.classList.remove('hide');\n }\n\n hideItem(item) {\n item.classList.add('hide');\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport { parseInt, isInteger, sumBy } from 'lodash-es'\n\nexport default class extends Controller {\n\n static targets = ['fundInput', 'budgetTotal']\n\n recalculateTotal() {\n if (!this.hasBudgetTotalTarget) {\n console.error('unable to update budget total')\n return\n }\n\n const formattedTotal = new Intl.NumberFormat('en-GB',\n { style: 'currency', currency: 'GBP', minimumFractionDigits: 0 }\n ).format(this.currentTotal())\n\n this.budgetTotalTarget.textContent = formattedTotal\n }\n\n currentTotal() {\n return sumBy(this.fundInputTargets, function (elem) {\n const total = parseInt(elem.value)\n return isInteger(total) ? total : 0\n })\n }\n\n}\n","// app/javascript/controllers/video_controller.js\nimport { Controller } from \"stimulus\";\nimport Plyr from \"plyr\";\n\nexport default class extends Controller {\n connect() {\n this.player = new Plyr(this.element);\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport { get, join } from 'lodash-es'\n\nexport default class extends Controller {\n\n static targets = ['entry']\n static values = {\n url: String\n }\n\n onSelect(event) {\n event.preventDefault()\n\n const targetEntry = event.currentTarget\n const priority = get(targetEntry, 'dataset.priority')\n const grade = get(targetEntry, 'dataset.grade')\n\n const selectGroup = !(grade && priority) // either a row or column-level selector\n let selectedValues\n if (selectGroup) {\n selectedValues = this.selectGroup(grade, priority)\n } else {\n selectedValues = [`${grade}${priority}`]\n }\n\n this.navigateTo(selectedValues)\n }\n\n selectGroup(grade, priority) {\n if (grade) {\n return [`${grade}1`, `${grade}2`, `${grade}3`, `${grade}4`]\n } else {\n return [`A${priority}`, `B${priority}`, `C${priority}`, `D${priority}`]\n }\n }\n\n navigateTo(values) {\n let url = new URL(location.origin + this.urlValue)\n let params = url.searchParams\n params.set('grade_priorities', join(values))\n location.href = url.toString()\n }\n\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static values = {\n numReminders: Number\n }\n static targets = [\n \"sendReminder\",\n \"sendAllContainer\",\n \"count\"\n ]\n\n onSuccess(e) {\n this.setSuccessStatus(e.currentTarget)\n\n if (this.hasCountTarget) {\n this.numRemindersValue -= 1\n let countText\n if (this.numRemindersValue > 1) {\n countText = `${this.numRemindersValue} reminders`\n } else if (this.numRemindersValue > 0) {\n countText = `${this.numRemindersValue} reminder`\n } else {\n this.sendAllContainerTarget.classList.add(\"hide\")\n return\n }\n\n this.countTargets.forEach(target => {\n target.innerHTML = countText\n })\n }\n }\n\n onError(e) {\n let error = document.createElement(\"div\")\n error.classList.add(\"error-text\", \"font-size-0-8\")\n error.innerHTML = \"Reminder failed\"\n e.currentTarget.parentElement.appendChild(error)\n setTimeout(() => error.remove(), 5000)\n }\n\n onSuccessAll(e) {\n let status = document.createElement(\"b\")\n status.classList.add(\"success-text\")\n status.innerHTML = \"Sent just now\"\n e.currentTarget.parentElement.appendChild(status)\n e.currentTarget.remove()\n\n this.sendReminderTargets.forEach(target => {\n this.setSuccessStatus(target)\n })\n }\n\n setSuccessStatus(el) {\n let status = document.createElement(\"span\")\n status.classList.add(\"sub-info\")\n status.innerHTML = \"Sent just now\"\n el.parentElement.appendChild(status)\n el.remove()\n }\n}","import { Controller } from \"@hotwired/stimulus\"\nimport { escapeRegExp, get } from \"lodash-es\"\n\nexport default class extends Controller {\n static targets = [\n \"ticketForm\",\n \"assignedToInput\",\n \"statusInput\",\n \"priorityInput\",\n \"categoryInput\",\n \"findUserInput\",\n \"commentFormContainer\",\n \"commentForm\",\n \"comment\",\n \"commentFields\",\n \"commentStatusInput\",\n \"closeButton\",\n \"editDetails\",\n \"raiseJobContainer\",\n \"assetPicker\",\n \"addAssetButton\"\n ]\n\n assignTicket(event) {\n this.closeDropdowns()\n let userId = event.currentTarget.dataset.userId\n let assignPath = event.currentTarget.dataset.path\n this.assignedToInputTarget.value = userId\n this.ticketFormTarget.action = assignPath\n this.ticketFormTarget.submit()\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 setPriority(event) {\n let priorityId = event.currentTarget.dataset.priority\n if (this.priorityInputTarget.value == priorityId) {\n event.preventDefault()\n return false\n }\n this.priorityInputTarget.value = priorityId\n this.ticketFormTarget.submit()\n }\n\n setStatus(event) {\n this.closeDropdowns()\n let statusId = event.currentTarget.dataset.statusId\n this.statusInputTarget.value = statusId\n this.ticketFormTarget.submit()\n }\n\n setCategory(event) {\n let categoryId = event.currentTarget.dataset.categoryId\n if (this.categoryInputTarget.value == categoryId) {\n event.preventDefault()\n return false\n }\n this.categoryInputTarget.value = categoryId\n this.ticketFormTarget.submit()\n }\n\n\n updateButtonStatus(event) {\n const plainText = this.commentTarget.editor.getDocument().toString()\n if (plainText.trim() == \"\") {\n if (this.hasCloseButtonTarget) {\n this.closeButtonTarget.querySelector(\"span\").textContent = \"Resolve ticket\"\n }\n } else {\n if (this.hasCloseButtonTarget) {\n this.closeButtonTarget.querySelector(\"span\").textContent = \"Comment & resolve ticket\"\n }\n }\n }\n\n closeComment(event) {\n event.preventDefault()\n\n this.closeButtonTarget.disabled = true\n this.closeButtonTarget.querySelector(\"span\").textContent = \"Please wait...\"\n\n if (this.commentTarget.value.trim().length > 0) {\n this.commentStatusInputTarget.value = \"resolved\"\n Rails.fire(this.commentFormTarget, 'submit')\n } else {\n this.statusInputTarget.value = \"resolved\"\n this.ticketFormTarget.submit()\n }\n }\n\n editDetails(event) {\n event.preventDefault()\n let [_response, _status, xhr] = event.detail\n\n this.editDetailsTarget.innerHTML = xhr.response\n }\n\n\n /*\n * Closes any open dropdowns.\n * This is a Zurb workaround see https://github.com/foundation/foundation-sites/blob/563a7342a4/js/foundation/foundation.dropdown.js#L95\n * Because any in the dropdown content will close it, the user picker needs to be closed explicitly (because it can't have tags).\n * This changes in zurb 6\n */\n closeDropdowns() {\n Foundation.libs.dropdown.close.call(Foundation.libs.dropdown, $(\".f-dropdown.open[data-dropdown-content]\"))\n }\n\n onCategorySelect(e) {\n if (!this.hasAssetPickerTarget) {\n return\n }\n\n const assetTypeIds = JSON.parse(get(e, \"currentTarget.selectedOptions[0].dataset.assetTypeIds\", \"[]\"))\n\n window.dispatchEvent(new CustomEvent('filter-asset-types', { detail: { ids: assetTypeIds } }))\n }\n\n updateAssetPickerStatus(e) {\n if (!this.hasAddAssetButtonTarget) {\n return\n }\n\n if (!this.hasAssetPickerTarget) {\n console.error('no asset picker target found')\n return\n }\n\n let categoryAssetsEnabled = false\n if (this.hasCategoryInputTarget) {\n if (this.categoryInputTarget.tagName.toLowerCase() == 'select') {\n categoryAssetsEnabled = get(this.categoryInputTarget, \"selectedOptions[0].dataset.assetsEnabled\", \"false\") == \"true\"\n } else {\n categoryAssetsEnabled = get(this.categoryInputTarget, \"dataset.assetsEnabled\", \"false\") == \"true\"\n }\n }\n const hasAssignedAssets = this.assetPickerTarget.querySelectorAll('.list-item[data-asset-instance-id]').length > 0\n\n const totalResults = parseInt(get(e, 'detail.total', 0))\n const filtered = get(e, 'detail.filtered', false)\n const assetSearchEnabled = categoryAssetsEnabled && (totalResults > 0 || filtered)\n\n const statusEl = this.addAssetButtonTarget.parentNode.querySelector('.status')\n if (assetSearchEnabled) {\n this.addAssetButtonTarget.disabled = false\n this.addAssetButtonTarget.classList.remove('hide')\n if (statusEl) {\n statusEl.classList.add('hide')\n }\n } else {\n this.addAssetButtonTarget.disabled = true\n this.addAssetButtonTarget.classList.add('hide')\n if (statusEl) {\n statusEl.classList.remove('hide')\n }\n }\n\n if (categoryAssetsEnabled || hasAssignedAssets) {\n this.assetPickerTarget.classList.remove('hide')\n } else {\n this.assetPickerTarget.classList.add('hide')\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { get } from 'lodash-es'\n\n\nexport default class extends Controller {\n\n static targets = ['frame', 'showOnSelect']\n static values = {\n url: String,\n current: String\n }\n\n refresh(e) {\n e.preventDefault()\n const targetEmail = get(e, 'detail.email')\n if (this.hasFrameTarget && this.hasUrlValue && targetEmail && targetEmail != this.currentValue) {\n this.showContent()\n let refreshUrl = new URL(location.origin + this.urlValue)\n let refreshParams = new URLSearchParams(refreshUrl.search)\n refreshParams.set('email', targetEmail)\n refreshUrl.search = refreshParams\n this.frameTarget.setAttribute('src', refreshUrl.toString())\n this.currentValue = targetEmail\n } else {\n this.hideContent()\n }\n }\n\n showContent() {\n this.showOnSelectTargets.forEach(element => {\n element.classList.remove('hide')\n })\n }\n\n hideContent() {\n this.showOnSelectTargets.forEach(element => {\n element.classList.add('hide')\n })\n }\n\n}","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n\n static get targets() {\n return [\n 'reportedToDiv', 'reportedToInput',\n 'reportedOnDiv', 'reportedOnInput',\n 'reportedByDiv', 'reportedByInput',\n 'reportedToBlock'\n ];\n }\n\n\n connect() {\n this.update_field_visibility();\n }\n\n domShow(e) {\n e.classList.add('visible');\n e.classList.remove('hidden');\n }\n\n domHide(e) {\n e.classList.add('hidden');\n e.classList.remove('visible');\n }\n\n update_field_visibility() {\n if (this.reportedToInputTarget.checked) {\n this.domShow(this.reportedToBlockTarget);\n }\n else {\n this.domHide(this.reportedToBlockTarget);\n\n let event = new CustomEvent('datepicker:clear')\n document.getElementById('incident-report-datepicker').dispatchEvent(event)\n\n this.reportedByInputTarget.value = '';\n }\n\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport { get } from 'lodash-es'\n\nexport default class extends Controller {\n\n static targets = ['usage']\n\n onUtilitySelect(e) {\n if (this.hasUsageTarget) {\n const units = get(e.currentTarget, 'selectedOptions[0].dataset.units', '')\n\n const label = this.usageTarget.querySelector('label')\n\n if (label) {\n const labelText = (units.length > 0) ? `Usage (${units})` : 'Usage'\n label.textContent = labelText\n }\n }\n }\n\n}","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"stars\", \"comment\", \"cancel\"];\n\n initialize() {\n this.changeHandler = this.changeHandler.bind(this);\n this.cancel = this.cancel.bind(this);\n }\n\n connect() {\n this.starsTarget.addEventListener('click', this.changeHandler);\n this.changeHandler();\n }\n\n changeHandler(_event) {\n if (this.starsTarget.querySelectorAll('input[type=\"radio\"]:checked').length !== 0) {\n this.commentTarget.classList.remove('hide');\n this.cancelTarget.classList.remove('hide');\n } else {\n this.cancel();\n }\n }\n\n cancel(event = null) {\n if (event) {\n event.preventDefault();\n }\n this.starsTarget.querySelectorAll('input[type=\"radio\"]').forEach((el) => el.checked = false);\n this.cancelTarget.classList.add('hide');\n this.commentTarget.querySelector('textarea').value = '';\n this.commentTarget.classList.add('hide');\n }\n\n}\n","import { Controller } from '@hotwired/stimulus'\nimport { requestSubmit } from '../../lib/request_submit'\n\nexport default class extends Controller {\n static targets = [\n 'sort',\n 'direction',\n 'header',\n 'submitButton',\n 'form'\n ]\n\n initialize() {\n this.sortByThisColumnAndToggleOrder = this.sortByThisColumnAndToggleOrder.bind(this)\n\n this.nextSort = {\n 'none': 'asc',\n 'asc': 'desc',\n 'desc': 'asc',\n }\n }\n\n sortByThisColumnAndToggleOrder(e) {\n // The data values from the\" + email + \"
\";\n\n\t\tlet cell2 = row.insertCell();\n\t\tcell2.innerHTML = \"\";\n\t\tthis.testNoResults();\n\t\temail_field.value = \"\";\n\t}\n\n\n}\n","import { Controller } from '@hotwired/stimulus'\nimport { useClickOutside } from 'stimulus-use'\nimport { debounce, get } from 'lodash-es'\n\nexport default class extends Controller {\n\n static targets = ['input', 'searchInput', 'results']\n static values = {\n url: String,\n minSearchQuery: { type: Number, default: 3 }\n }\n\n connect() {\n if (this.hasResultsTarget) {\n useClickOutside(this, { element: this.resultsTarget })\n } else {\n console.error('no autocomplete results target defined')\n }\n this.debouncedSearchHandler = debounce(this.search.bind(this), 300)\n this.searchInputTarget.addEventListener('input', this.debouncedSearchHandler)\n this.searchInputTarget.addEventListener('focus', this.debouncedSearchHandler)\n }\n\n search(e) {\n if (!this.hasResultsTarget) {\n console.error('no autocomplete results target defined')\n return\n }\n this.postionResultsTarget()\n if (this.urlValue.length === 0) {\n return\n }\n const searchQuery = get(this, 'searchInputTarget.value', '')\n if (searchQuery.length < this.minSearchQueryValue) {\n return\n }\n\n let autocompleteUrl = new URL(this.urlValue)\n let autocompleteParams = new URLSearchParams(autocompleteUrl.search)\n autocompleteParams.set('q', searchQuery)\n autocompleteUrl.search = autocompleteParams\n this.resultsTarget.addEventListener('turbo:frame-load', this.showResults.bind(this), { once: true })\n this.resultsTarget.setAttribute('src', autocompleteUrl.toString())\n }\n\n onSelect(e) {\n let data = JSON.parse(get(e, 'currentTarget.dataset.detail', '{}'))\n this.populateInputs(data)\n this.hideResults()\n let event = new CustomEvent('autocomplete:result-selected', { detail: data })\n window.dispatchEvent(event)\n }\n\n populateInputs(data) {\n this.populateInput(this.searchInputTarget, data)\n this.inputTargets.forEach(element => {\n this.populateInput(element, data)\n })\n }\n\n populateInput(element, data) {\n const key = get(element, 'dataset.autocompleteKey')\n if (!key) {\n console.error(`unable to populate input with no autocomplete-key ${element.getAttribute(\"name\")}`)\n return\n }\n const value = get(data, key, '')\n element.value = value\n }\n\n hideResults() {\n this.resultsTarget.classList.remove('active')\n }\n\n showResults() {\n this.resultsTarget.classList.add('active')\n }\n\n postionResultsTarget() {\n const parent = this.searchInputTarget.closest('.autocomplete-search')\n const label = parent.querySelector('label')\n\n const rect = this.searchInputTarget.getBoundingClientRect()\n const labelRect = label.getBoundingClientRect()\n const labelStyle = getComputedStyle(label)\n const style = getComputedStyle(this.searchInputTarget)\n const labelHeight = labelRect.height + parseInt(labelStyle.marginTop) + parseInt(labelStyle.marginBottom)\n const marginWidth = parseInt(style.marginLeft)\n\n this.resultsTarget.style.top = `${rect.height + labelHeight}px`\n this.resultsTarget.style.left = `${marginWidth}px`\n this.resultsTarget.style.width = `${rect.width}px`\n\n parent.append(this.resultsTarget)\n }\n\n clickOutside(event) {\n this.hideResults()\n }\n\n}\n","// This class is for use on drag and drop fields for files and can be instantiated from stimulus controllers\n\nexport class DragDropUpload {\n constructor(element, callback) {\n this.dragDropElement = element;\n this.callback = callback;\n this.attachEvents();\n }\n\n attachEvents() {\n const upload = this.dragDropElement.querySelector('.drag-drop-upload');\n const input = upload.querySelector('input[type=\"file\"]');\n\n ['drag', 'dragstart', 'dragend', 'dragover', 'dragenter', 'dragleave', 'drop'].forEach(eventType => {\n upload.addEventListener(eventType, (e) => {\n e.preventDefault();\n e.stopPropagation();\n });\n });\n\n upload.addEventListener('dragover', () => upload.classList.add('is-dragover'));\n upload.addEventListener('dragenter', () => upload.classList.add('is-dragover'));\n\n ['dragleave', 'dragend', 'drop'].forEach(eventType => {\n upload.addEventListener(eventType, () => upload.classList.remove('is-dragover'));\n });\n\n upload.addEventListener('drop', (e) => {\n const files = e.dataTransfer.files;\n input.files = files;\n this.fileSelected(files);\n });\n\n input.addEventListener('change', (e) => {\n this.fileSelected(e.target.files);\n });\n }\n\n fileSelected(files) {\n this.callback(files);\n }\n}\n","import { Controller } from \"stimulus\"\nimport Glide from '@glidejs/glide'\n\nexport default class extends Controller {\n static values = {\n type: String,\n slidesPerView: { type: Number, default: 4 }\n }\n\n connect() {\n const glideElement = this.element.querySelector('.glide')\n const slides = this.element.querySelectorAll('.glide__slide')\n\n if (glideElement && slides.length > 0) {\n const config = {\n type: \"slider\",\n keyboard: false,\n autoplay: 8000,\n perView: this.slidesPerViewValue,\n breakpoints: {\n 1000: {\n perView: (this.slidesPerViewValue < 3 ? this.slidesPerViewValue : 3)\n },\n 800: {\n perView: (this.slidesPerViewValue < 2 ? this.slidesPerViewValue : 2)\n },\n 480: {\n perView: 1\n }\n }\n }\n\n const glide = new Glide(glideElement, config)\n\n // Function to toggle arrows based on number of slides and current perView\n const toggleArrows = () => {\n const perView = glide.settings.perView\n const controls = glideElement.querySelector('.glide__arrows')\n\n if (slides.length <= perView) {\n controls.style.display = 'none'\n } else {\n controls.style.display = 'flex'\n }\n }\n\n glide.on(['mount.after', 'resize'], toggleArrows)\n\n glide.mount()\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"datepicker\", \"form\", \"template\"]\n\n connect() {\n this.datepickerTarget.addEventListener('change', this.handleDateChange.bind(this));\n }\n\n disconnect() {\n this.datepickerTarget.removeEventListener('change', this.handleDateChange);\n }\n\n handleDateChange() {\n this.maybeRefreshDownloadButton();\n }\n\n maybeRefreshDownloadButton() {\n const turboFrame = this.formTarget.querySelector('turbo-frame');\n\n if (turboFrame && turboFrame.id !== 'scorecard_download') {\n while (turboFrame.firstChild) {\n turboFrame.removeChild(turboFrame.firstChild);\n }\n turboFrame.id = 'scorecard_download';\n\n const templateContent = this.templateTarget.innerHTML;\n turboFrame.innerHTML = templateContent;\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { DirectUpload } from '@rails/activestorage'\nimport { get } from \"lodash-es\"\nimport { humanizeFilename } from \"../../../lib/file_utils\";\n\nexport default class extends Controller {\n\n static values = {\n state: String,\n fieldId: String\n }\n\n static targets = [\n 'uploadField',\n 'uploadFileName',\n 'documentId',\n 'expandOptionsControl',\n 'expandOptionsControlButton',\n 'expandOptionsText',\n 'expandOptions',\n 'publicationDate',\n 'reviewFrequency'\n ]\n\n initialize() {\n this.file = null;\n this.uploading = false;\n this.locationId = null;\n this.folderId = null;\n }\n\n connect() {\n if (this.stateValue == 'new' && this.hasExpandOptionsTextTarget) {\n this.updateExpandOptionsText();\n }\n\n this.addEventListeners();\n this.dispatchEvents();\n }\n addEventListeners() {\n document.addEventListener(`uploadEvent_${this.element.id}`, this.performUpload.bind(this));\n }\n dispatchEvents() {\n document.dispatchEvent(new CustomEvent(`uploadFieldReady`, { bubbles: true }));\n document.dispatchEvent(new CustomEvent(`uploadFieldReady_${this.element.id}`, { bubbles: true }));\n }\n performUpload(event) {\n this.uploading = true;\n document.dispatchEvent(new CustomEvent('uploadStarted', { bubbles: true }));\n\n this.file = event.detail.file;\n this.locationId = event.detail.locationId;\n this.folderId = event.detail.folderId;\n\n const uploader = new DirectUpload(this.file, this.element.dataset.directUploadUrl, this);\n\n uploader.create((error, blob) => {\n if (error) {\n // Feedback for failure occurs at parent level\n const uploadErrorEvent = new CustomEvent('uploadErrorEvent');\n document.dispatchEvent(uploadErrorEvent);\n\n } else {\n // Signed blob id received, need to create document/version objects\n this.createUpload(blob.signed_id);\n }\n })\n }\n\n createUpload(blobSignedId) {\n const url = this.element.dataset.createUploadUrl;\n const data = {\n name: humanizeFilename(this.file.name),\n blob_signed_id: blobSignedId,\n field_id: this.fieldIdValue,\n location_id: this.locationId,\n folder_id: this.folderId,\n };\n\n fetch(url, {\n method: 'POST',\n headers: {\n \"X-CSRF-Token\": this.csrfToken(),\n 'Accept': 'text/vnd.turbo-stream.html',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify(data)\n }).then (response => response.text())\n .then(html => {\n Turbo.renderStreamMessage(html);\n document.dispatchEvent(new CustomEvent('uploadFinished', { bubbles: true }));\n });\n }\n\n csrfToken() {\n const csrfToken = document.querySelector(\"[name='csrf-token']\");\n\n return get(csrfToken, 'content');\n }\n\n updateExpandOptionsText() {\n const publicationDate = this.publicationDateTarget.value;\n const reviewFrequency = this.reviewFrequencyTarget.value;\n\n const parsedDate = new Date(publicationDate);\n let formattedDate = `${this.getDayOrdinal(parsedDate.getUTCDate())} ${parsedDate.toLocaleString('en-GB', { month: 'long' })} ${parsedDate.getUTCFullYear()}`;\n\n const outputString = `Published ${formattedDate}, due for review in ${reviewFrequency} months`;\n\n this.expandOptionsTextTarget.textContent = outputString;\n this.showItem(this.expandOptionsControlButtonTarget);\n }\n\n getDayOrdinal(day) {\n let j = day % 10, k = day % 100;\n if (j == 1 && k != 11) {\n return day + \"st\";\n }\n if (j == 2 && k != 12) {\n return day + \"nd\";\n }\n if (j == 3 && k != 13) {\n return day + \"rd\";\n }\n return day + \"th\";\n }\n\n expandOptions(e) {\n e.preventDefault();\n\n this.hideItem(this.expandOptionsControlTarget);\n this.showItem(this.expandOptionsTarget);\n }\n\n showItem(item) {\n item.classList.remove('hide');\n }\n\n hideItem(item) {\n item.classList.add('hide');\n }\n}\n","export function humanizeFilename(filename) {\n const baseName = filename.replace(/\\.[^/.]+$/, \"\");\n const processedName = baseName.replace(/[^0-9a-zA-Z]+/g, ' ').replace(/\\b\\w/g, l => l.toUpperCase());\n\n return processedName;\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n connect() {\n this.element.addEventListener('turbo:submit-end', (event) => {\n if (event.detail.success) {\n window.location.href = event.detail.fetchResponse.response.url\n }\n })\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n removeItem(e) {\n const id = e.currentTarget.dataset.id\n const el = document.getElementById(id);\n \n el.checked = false\n e.currentTarget.remove();\n\n this.checkForNoActiveCheckboxes(el)\n \n this.submitForm()\n }\n\n checkForNoActiveCheckboxes(el) {\n const filterEl = el.closest(\".filter\")\n const inputs = filterEl.querySelectorAll('[data-training--reporting-filter-target=\"input\"]');\n let isChecked = false;\n \n for (let i = 0; i < inputs.length; i++) {\n if (inputs[i].checked) {\n isChecked = true;\n break;\n }\n }\n \n if (!isChecked) {\n const rootInput = filterEl.querySelector('[data-training--reporting-filter-target=\"rootInput\"]');\n rootInput.checked = true\n }\n }\n\n submitForm() {\n document.getElementById(\"filter-form\").requestSubmit();\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { escapeRegExp, get } from \"lodash-es\"\n\nexport default class extends Controller {\n static targets = [\n \"jobForm\",\n \"riskInput\",\n \"statusInput\",\n \"ownerInput\",\n \"findUserInput\"\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 setRisk(event) {\n let riskId = event.currentTarget.dataset.risk\n if (this.riskInputTarget.value == riskId) {\n event.preventDefault()\n return false\n }\n this.riskInputTarget.value = riskId\n this.jobFormTarget.submit()\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.jobFormTarget.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.jobFormTarget.action = assignPath\n this.jobFormTarget.submit()\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n initialize() {\n this.deleted = false\n }\n\n connect() {\n const groupMembershipLoaded = new CustomEvent('groupMembershipLoaded')\n document.dispatchEvent(groupMembershipLoaded)\n }\n\n disconnect() {\n const groupMembershipDeleted = new CustomEvent('groupMembershipDeleted')\n document.dispatchEvent(groupMembershipDeleted)\n }\n\n delete(event) {\n if (this.deleted === true) {\n event.preventDefault()\n }\n\n this.deleted = true\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport { debounce, get, partition } from 'lodash-es'\n\nexport default class extends Controller {\n static targets = ['input', 'item']\n\n connect() {\n this.autoSearch = debounce(this.search.bind(this), 300)\n }\n\n search(e) {\n let showItems, hideItems\n [showItems, hideItems] = this.filter(this.inputTarget.value)\n\n showItems.forEach(item => item.classList.remove('hide'))\n hideItems.forEach(item => item.classList.add('hide'))\n }\n\n filter(value) {\n value = value.toLowerCase().trim()\n if (value === '') {\n return [this.itemTargets, []]\n }\n return partition(this.itemTargets, (item) => { return get(item, 'dataset.value', '').toLowerCase().includes(value) })\n }\n\n\n}","import { Controller } from \"@hotwired/stimulus\"\nimport { get } from \"lodash-es\"\n\nexport default class extends Controller {\n static targets = [\n \"assetSection\",\n \"baseUrl\"\n ]\n\n connect() {\n this.setDefaultLocationAndZone();\n\n document.addEventListener('location:changed', this.locationChange.bind(this));\n document.addEventListener('locationZone:changed', this.locationZoneChange.bind(this));\n }\n\n disconnect() {\n document.removeEventListener('location:changed', this.locationChange);\n document.removeEventListener('locationZone:changed', this.locationZoneChange);\n }\n\n setDefaultLocationAndZone() {\n const locationId = document.getElementById('location-select').value;\n const locationZoneId = get(document, \"getElementById('location-zone-select').value\");\n this.setLocationAndZone(locationId, locationZoneId);\n\n this.regenerateRefreshUrl();\n }\n\n locationChange(event) {\n this.setLocationAndZone(event.detail.locationId, event.detail.locationZoneId);\n\n this.regenerateRefreshUrl();\n }\n\n locationZoneChange(event) {\n this.setLocationAndZone(event.detail.locationId, event.detail.locationZoneId);\n\n this.regenerateRefreshUrl();\n }\n\n setLocationAndZone(locationId, locationZoneId) {\n this.locationId = locationId;\n this.locationZoneId = locationZoneId;\n }\n\n regenerateRefreshUrl() {\n if (!this.hasAssetSectionTarget) {\n return;\n }\n\n const baseUrl = this.baseUrlTarget.value;\n let refreshUrl = baseUrl;\n\n if (this.locationId && this.locationZoneId) {\n refreshUrl = `${baseUrl}?location_id=${this.locationId}&location_zone_id=${this.locationZoneId}`;\n\n } else if (this.locationId) {\n refreshUrl = `${baseUrl}?location_id=${this.locationId}`;\n\n } else if (this.locationZoneId) {\n refreshUrl = `${baseUrl}?location_zone_id=${this.locationZoneId}`;\n }\n\n this.assetSectionTarget.src = null;\n this.assetSectionTarget.src = refreshUrl;\n }\n}\n","import { Controller } from '@hotwired/stimulus';\n\n// Listen for changes to innerHTML text and attempt to auto-format as a date.\nexport default class extends Controller {\n static values = { format: String }\n\n connect() {\n const config = {\n characterData: true,\n childList: true,\n };\n\n this.observer = new MutationObserver((mutationsList, observer) => {\n // The string that was set inside\n const date = Date.parse(mutationsList.filter((record) => record.type == 'childList').pop().target.innerHTML);\n\n // TODO: date-fns\n\n // What it needs to be replaced with\n const formattedDate = moment(date).format(this.formatValue)\n\n // If the change created a mutation record we would get stuck\n // in a loop\n observer.disconnect();\n this.element.innerHTML = formattedDate;\n observer.observe(this.element, config);\n });\n\n this.observer.observe(this.element, config);\n }\n\n disconnect() {\n this.observer.disconnect();\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport { find, forEach, get, includes } from 'lodash-es'\n\nexport default class extends Controller {\n\n static values = { refreshUrl: String }\n static targets = ['frame', 'groupIdsInput', 'locationIdsInput', 'groupErrorBox', 'locationErrorBox']\n\n connect() {\n this.refreshSelectedGroups()\n }\n\n refreshSelectedGroups(e) {\n if (!this.hasFrameTarget) {\n return\n }\n\n let refreshUrl = new URL(location.origin + this.refreshUrlValue)\n let refreshParams = new URLSearchParams(refreshUrl.search)\n refreshParams.set('group_ids', JSON.stringify(this.selectedGroupIds()))\n refreshParams.set('location_ids', JSON.stringify(this.selectedLocationIds()))\n refreshUrl.search = refreshParams\n this.frameTarget.setAttribute('src', refreshUrl.toString())\n }\n\n selectedGroupIds() {\n return this.processSelectValues(this.groupIdsInputTarget, this.groupIdsInputTargets)\n }\n\n selectedLocationIds() {\n if (this.hasLocationIdsInputTarget) {\n return this.processSelectValues(this.locationIdsInputTarget, this.locationIdsInputTargets)\n } else {\n return []\n }\n }\n\n processSelectValues(rootInput, allInputs) {\n let selectAll = false\n if (rootInput.checked) {\n selectAll = true\n }\n\n const selected = []\n\n forEach(allInputs, function (opt) {\n if ((opt.checked || selectAll) && opt.value != '') {\n selected.push(opt.value)\n if (selectAll) {\n opt.selected = false\n }\n }\n })\n\n return selected\n }\n\n removeGroup(e) {\n const groupId = parseInt(e.currentTarget.getAttribute(\"data-value\"))\n const selectedElement = this.groupIdsInputTargets.find((opt) => parseInt(opt.value) == groupId)\n if (selectedElement) {\n selectedElement.parentElement.click()\n }\n\n return this.refreshSelectedGroups()\n }\n\n toggleGroup(e) {\n // Check if toggling root input (ie 'All courses') or input associated with an item id (course, category, group)\n const input = e.currentTarget.querySelector('input')\n const type = input.getAttribute(\"data-type\")\n input.checked = !input.checked\n if (type == \"group\" && input != this.groupIdsInputTarget) {\n this.groupIdsInputTarget.checked = false\n } else if (type == \"location\" && input != this.locationIdsInputTarget) {\n this.locationIdsInputTarget.checked = false\n } else {\n this.resetGroupOptions(input)\n }\n\n this.removeErrorBox(type)\n this.refreshSelectedGroups(e)\n }\n\n resetGroupOptions(input) {\n const type = input.getAttribute(\"data-type\")\n let filteredOpts\n if (type == \"group\") {\n filteredOpts = this.groupIdsInputTargets.filter((opt) => opt != this.groupIdsInputTarget)\n } else if (type == \"location\") {\n filteredOpts = this.locationIdsInputTargets.filter((opt) => opt != this.locationIdsInputTarget)\n }\n filteredOpts.forEach(opt => {\n opt.checked = input.checked\n });\n }\n\n removeErrorBox(type) {\n if (type == \"group\" && this.hasGroupErrorBoxTarget) {\n this.groupErrorBoxTarget.remove()\n } else if (type == \"location\" && this.hasLocationErrorBoxTarget) {\n this.locationErrorBoxTarget.remove()\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n\n toggle(event) {\n event.preventDefault()\n\n const nodeParent = event.target.closest('li')\n nodeParent.querySelectorAll(':scope > .nested').forEach((branch) => { branch.classList.toggle('expanded') })\n event.target.classList.toggle('expanded')\n }\n\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\n 'singleUserSection',\n 'multipleUsersSection',\n 'importOptionHiddenField',\n 'importOption',\n 'searchResults',\n 'noResults',\n 'result',\n 'bulkSubmit'\n ]\n\n connect() {\n this.checkResultsPresent()\n document.addEventListener('groupMembershipLoaded', this.checkResultsPresent.bind(this))\n document.addEventListener('groupMembershipDeleted', this.checkResultsPresent.bind(this))\n }\n\n showHideSections(e) {\n if (e.target.value === 'single_user') {\n this.singleUserSectionTarget.style.display = 'block'\n this.multipleUsersSectionTarget.style.display = 'none'\n } else if (e.target.value === 'multiple_users') {\n this.singleUserSectionTarget.style.display = 'none'\n this.multipleUsersSectionTarget.style.display = 'block'\n }\n\n this.broadcastSelectedOption(e.target.value)\n }\n\n revealSubmit(e) {\n this.bulkSubmitTarget.style.display = 'block'\n }\n\n broadcastSelectedOption(newValue) {\n this.importOptionHiddenFieldTargets.forEach((field) => (field.value = newValue))\n }\n\n checkResultsPresent() {\n if (this.resultTargets.length > 0) {\n this.searchResultsTarget.style.display = 'block'\n this.noResultsTarget.style.display = 'none'\n } else {\n this.searchResultsTarget.style.display = 'none'\n this.noResultsTarget.style.display = 'block'\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\n \"text\",\n \"button\"\n ]\n\n updateButtonStatus(event) {\n this.buttonTarget.disabled = (this.textTarget.editor.getDocument().toString().trim() == \"\")\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport { get, filter, find, map, join } from 'lodash-es'\n\nexport default class extends Controller {\n\n static targets = ['input', 'entry', 'loading']\n static values = {\n url: String,\n enablePriority: { type: Boolean, default: true },\n enableX: { type: Boolean, default: false }\n }\n\n onSelect(event) {\n event.preventDefault()\n\n if (!this.hasInputTarget) {\n console.error('unable to process matrix condition selection - no input target found')\n return false\n }\n\n this.showLoading()\n\n const targetEntry = event.currentTarget\n const targetStatus = get(event, 'currentTarget.dataset.selected') !== 'true'\n const grade = get(targetEntry, 'dataset.grade')\n let priority = null\n if (this.enablePriorityValue) {\n priority = get(targetEntry, 'dataset.priority', '')\n }\n\n if (!grade && !priority) {\n // select none is the same as select all but more compact\n this.inputTarget.value = ''\n } else {\n const toggleAll = this.enablePriorityValue && !(grade && priority) // either a row or column-level selector\n if (toggleAll) {\n this.toggleAll(grade, priority, targetStatus)\n } else {\n this.toggleEntry(targetEntry, targetStatus)\n\n if (this.enableXValue && targetStatus) {\n this.toggleXEntry(grade)\n }\n }\n\n const selectedValues = map(this.selectedEntries(), (entry) => { return `${get(entry, 'dataset.grade')}${get(entry, 'dataset.priority', '')}` })\n\n this.inputTarget.value = join(selectedValues)\n }\n\n const form = this.inputTarget.closest('form')\n form.requestSubmit()\n }\n\n toggleAll(grade, priority, selectedStatus) {\n this.matrixEntries(grade, priority).forEach((entry) => {\n this.toggleEntry(entry, selectedStatus)\n })\n }\n\n toggleXEntry(grade) {\n if (!['C', 'D'].includes(grade)) {\n return\n }\n\n const xEntry = find(this.entryTargets, (entry) => { return get(entry, 'dataset.grade') == `${grade}X` })\n if (!xEntry) {\n console.error(`no x entry for ${grade}`)\n return\n }\n\n this.toggleEntry(xEntry, true)\n }\n\n toggleEntry(entry, selectedStatus) {\n if (selectedStatus) {\n entry.setAttribute('data-selected', 'true')\n } else {\n entry.removeAttribute('data-selected')\n }\n }\n\n selectedEntries() {\n return filter(this.entryTargets, (entry) => {\n return get(entry, 'dataset.selected', 'false') === 'true'\n })\n }\n\n matrixEntries(grade, priority) {\n let entryGrade, entryPriority\n return filter(this.entryTargets, (entry) => {\n entryGrade = get(entry, 'dataset.grade')\n if (grade && entryGrade != grade) {\n return false\n }\n\n if (this.enablePriorityValue) {\n entryPriority = get(entry, 'dataset.priority')\n if (priority && entryPriority != priority) {\n return false\n }\n }\n\n return true\n })\n }\n\n showLoading() {\n if (this.hasLoadingTarget) {\n this.loadingTarget.classList.remove('hide')\n }\n }\n\n}","import { Controller } from \"@hotwired/stimulus\"\nimport Dropzone from \"dropzone\"\n\nDropzone.autoDiscover = false\n\nexport default class extends Controller {\n static values = {\n url: String,\n numPhotos: Number\n }\n\n static targets = [\n \"carousel\", \"dropzone\", \"previews\", \"prompt\", \"error\", \"previewTemplate\"\n ]\n\n disableDropzone() {\n if (this.dropzone) {\n this.dropzone.disable()\n }\n this.dropzoneTarget.classList.add('hide')\n }\n\n enableDropzone() {\n if (this.dropzone) {\n this.dropzone.enable()\n }\n this.dropzoneTarget.classList.remove('hide')\n this.countNumPhotos()\n }\n\n reloadPhotos(_event, response) {\n this.carouselTarget.innerHTML = response.html_data\n $(document).foundation('clearing', 'reflow')\n this.countNumPhotos()\n }\n\n countNumPhotos() {\n this.numPhotosValue = this.carouselTarget.querySelectorAll('.asset-photo:not(.hide)').length\n }\n\n showMaxFilesError() {\n if (this.hasErrorTarget) {\n this.errorTarget.classList.remove('hide')\n }\n }\n\n numPhotosValueChanged() {\n if (this.numPhotosValue < 5) {\n this.dropzoneTarget.classList.remove('hide')\n } else {\n this.dropzoneTarget.classList.add('hide')\n }\n this.initDropzone()\n }\n\n toggleDrag() {\n this.dropzoneTarget.classList.toggle('dz-hovering')\n }\n\n initDropzone() {\n if (this.dropzoneTarget.dropzone) {\n return\n }\n\n const _self = this\n let opts = {\n url: _self.urlValue,\n method: 'PATCH',\n paramName: (_n) => {\n return 'entry[photos][]'\n },\n maxFiles: 5 - (_self.numPhotosValue),\n parallelUploads: 1,\n uploadMultiple: true,\n acceptedFiles: \"image/jpeg, image/png\",\n previewsContainer: _self.previewsTarget,\n thumbnailHeight: 60,\n thumbnailWidth: 60,\n headers: {\n \"X-CSRF-Token\": document.querySelector('meta[name=\"csrf-token\"]').content\n }\n }\n if (_self.hasPreviewTemplateTarget) {\n opts.previewTemplate = _self.previewTemplateTarget.innerHTML\n }\n\n const dropzone = new Dropzone(this.dropzoneTarget, opts)\n dropzone\n .on(\"maxfilesexceeded\", _self.showMaxFilesError.bind(_self))\n .on(\"successmultiple\", _self.reloadPhotos.bind(_self))\n .on(\"complete\", (file) => dropzone.removeFile(file))\n .on(\"dragenter\", _self.toggleDrag.bind(_self))\n .on(\"dragleave\", _self.toggleDrag.bind(_self))\n .on(\"drop\", _self.toggleDrag.bind(_self))\n this.dropzone = dropzone\n }\n}\n","import { Controller } from '@hotwired/stimulus';\nimport { EventBus } from '../../../lib/event_bus';\n\nexport default class extends Controller {\n static values = { numActions: Number };\n static targets = ['confirm', 'notes', 'raisedLabel', 'unraisedLabel', 'submit'];\n\n handleConfirmToggled = this.handleConfirmToggled.bind(this);\n handleActionsChanged = this.handleActionsChanged.bind(this);\n\n connect() {\n EventBus.on('action-presence:added', () => {\n this.handleActionsChanged(1);\n });\n EventBus.on('action-presence:removed', () => {\n this.handleActionsChanged(-1);\n });\n if (this.hasConfirmTarget) {\n this.confirmTarget.addEventListener('change', this.handleConfirmToggled);\n }\n }\n\n disconnect() {\n if (this.hasConfirmTarget) {\n this.confirmTarget.removeEventListener('change', this.handleConfirmToggled);\n }\n }\n\n handleConfirmToggled() {\n if (this.confirmTarget.checked && this.numActionsValue <= 0) {\n this.notesTarget.classList.remove('hidden');\n this.notesTarget.querySelector('textarea').disabled = false;\n } else {\n this.notesTarget.classList.add('hidden');\n this.notesTarget.querySelector('textarea').disabled = true;\n\n }\n\n this.submitTarget.disabled = !this.confirmTarget.checked;\n }\n\n handleActionsChanged(delta) {\n this.numActionsValue += delta;\n\n if (this.numActionsValue <= 0) {\n this.raisedLabelTarget.classList.add('hidden');\n this.unraisedLabelTarget.classList.remove('hidden');\n } else {\n this.raisedLabelTarget.classList.remove('hidden');\n this.unraisedLabelTarget.classList.add('hidden');\n }\n this.confirmTarget.checked = false;\n this.handleConfirmToggled();\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"actions\", \"toggle\", \"existingReason\", \"newReason\"]\n\n connect() {\n this.update()\n }\n\n update(e) {\n this.setReason(this.toggleTarget.checked, (e !== undefined))\n this.setActions(!this.toggleTarget.checked)\n\n if (this.hasActionsTarget && this.actionsTarget.dataset.type == 'dropdown') {\n if (this.actionsTarget.selectedOptions[0].value.length == 0) {\n this.setToggle(true)\n } else {\n this.setToggle(false)\n this.setReason(false)\n }\n }\n }\n\n setActions(active) {\n if (!this.hasActionsTarget) { return }\n\n if (this.actionsTarget.dataset.type == 'hide') {\n this.actionsTarget.classList.toggle('hide', !active)\n } else {\n this.actionsTarget.disabled = !active\n\n if (!active) {\n this.actionsTarget.value = \"\"\n }\n }\n }\n\n setToggle(active) {\n if (!this.hasToggleTarget) { return }\n\n if (!active) {\n this.toggleTarget.checked = false\n }\n }\n\n setReason(active, clearExisting = false) {\n if (!this.hasNewReasonTarget) { return }\n\n if (active) {\n if (clearExisting) {\n this.newReasonTarget.classList.remove('hide')\n }\n } else {\n this.newReasonTarget.querySelector('textarea').value = \"\"\n this.newReasonTarget.classList.add('hide')\n }\n\n if (clearExisting && this.hasExistingReasonTarget) {\n this.existingReasonTarget.remove()\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus';\n\nexport default class extends Controller {\n static targets = ['from', 'to'];\n\n initialize() {\n this.handleMutation = this.handleMutation.bind(this);\n }\n\n connect() {\n this.config = {\n attributes: true,\n attributeFilter: ['value'],\n };\n\n this.observer = new MutationObserver(this.handleMutation);\n this.observer.observe(this.fromTarget, this.config);\n this.observer.observe(this.toTarget, this.config);\n }\n\n disconnect() {\n this.observer.disconnect();\n }\n\n handleMutation(mutationList, observer) {\n const lastChange = mutationList.pop();\n const fromChanged = lastChange.target == this.fromTarget;\n\n this.observer.disconnect();\n if (fromChanged) {\n this.toTarget._flatpickr.set('minDate', this.fromTarget.value);\n } /* toChanged */ else {\n this.fromTarget._flatpickr.set('maxDate', this.toTarget.value);\n }\n this.observer.observe(this.fromTarget, this.config);\n this.observer.observe(this.toTarget, this.config);\n }\n}\n","// Load all the channels within this directory and all subdirectories.\n// Channel files must be named *_channel.js.\n\nconst channels = require.context('.', true, /_channel\\.js$/)\nchannels.keys().forEach(channels)\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"linkedUploadsContainer\"]\n\n removeLinkedUpload(event) {\n const nestedFields = this.linkedUploadsContainerTarget.querySelectorAll(\".nested-fields\")\n if (nestedFields.length <= 1) {\n // removing last file\n this.linkedUploadsContainerTarget.classList.add(\"hide\")\n }\n }\n}\n","import { RemoteFormController } from 'stimulus-library'\n\nexport default class extends RemoteFormController {\n\n static targets = [\"form\", \"emailConfirmation\"]\n\n showEmailConfirmation(event) {\n this.emailConfirmationTarget.classList.remove('hide')\n }\n\n userDetailsSuccess(event) {\n window.location.reload(true)\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { debounce } from 'lodash-es'\n\nexport default class extends Controller {\n static targets = [\n \"searchForm\"\n ]\n\n connect() {\n this.debouncedSubmit = debounce(this.submitForm.bind(this), 250)\n }\n\n search(event) {\n event.preventDefault();\n this.debouncedSubmit();\n }\n\n submitForm() {\n this.searchFormTarget.requestSubmit();\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport Muuri from \"muuri\"\n\nexport default class extends Controller {\n static targets = ['toggleIcon', 'options']\n\n static values = {\n open: { type: Boolean, default: true }\n }\n\n connect() {\n this.grid = new Muuri('.news-grid', {\n dragEnabled: false,\n fillGaps: true,\n });\n\n\n this.grid.layout(true);\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}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n toggle (e) {\n e.preventDefault();\n this.element.classList.toggle('open');\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { get } from \"lodash-es\";\n\nexport default class extends Controller {\n\n static values = {\n dailyFrequency: Boolean\n }\n\n static targets = [\n 'scheduleOption'\n ];\n\n setDailyFrequency(e) {\n const selectElem = e.currentTarget\n this.dailyFrequencyValue = get(selectElem, 'selectedOptions[0].textContent', '') == 'Daily'\n }\n\n dailyFrequencyValueChanged() {\n this.scheduleOptionTargets.forEach(elem => {\n const schedule = get(elem, 'dataset.schedule')\n if (schedule == 'earlier') {\n if (this.dailyFrequencyValue) {\n elem.classList.add('hide')\n elem.querySelector('input[type=radio]').setAttribute('disabled', true)\n } else {\n elem.classList.remove('hide')\n elem.querySelector('input[type=radio]').removeAttribute('disabled')\n }\n } else {\n if (this.dailyFrequencyValue) {\n this.hideAll(elem.querySelectorAll('span[data-schedule=\"other\"]'))\n this.showAll(elem.querySelectorAll('span[data-schedule=\"daily\"]'))\n } else {\n this.showAll(elem.querySelectorAll('span[data-schedule=\"other\"]'))\n this.hideAll(elem.querySelectorAll('span[data-schedule=\"daily\"]'))\n }\n }\n });\n }\n\n hideAll(elements) {\n elements.forEach(elem => { elem.classList.add('hide') })\n }\n\n showAll(elements) {\n elements.forEach(elem => { elem.classList.remove('hide') })\n }\n}\n","// For use on any Turbo Drive powered form following the :search_form -> :search_results pattern\n// Shows a loading spinner for cases when frame src is not being used and while searching takes place\nimport { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"spinner\", \"form\", \"results\"]\n\n connect() {\n this.element.addEventListener('turbo:submit-start', this.show.bind(this));\n this.element.addEventListener('turbo:submit-end', this.hide.bind(this));\n }\n\n show() {\n this.spinnerTarget.classList.remove('hide');\n this.resultsTarget.classList.add('hide');\n }\n\n hide() {\n this.spinnerTarget.classList.add('hide');\n this.resultsTarget.classList.remove('hide');\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { get } from 'lodash-es'\n\nexport default class extends Controller {\n\n static values = {\n gradePriority: String\n }\n static outlets = ['asset-register--current-condition']\n\n connect() {\n if (this.hasAssetRegisterCurrentConditionOutlet) {\n this.assetRegisterCurrentConditionOutlets.forEach(outlet => outlet.synchroniseCurrentValue(this.gradePriorityValue))\n }\n }\n\n synchroniseCurrentValue(parentGradePriorityValue) {\n if (this.hasGradePriorityValue && this.gradePriorityValue != parentGradePriorityValue) {\n this.gradePriorityValue = parentGradePriorityValue\n }\n }\n\n gradePriorityValueChanged(value, previous) {\n const scoreEl = this.element.querySelector('.score')\n const suffixEl = this.element.querySelector('.suffix')\n\n const oldGrade = get(previous.split(''), '[0]', null)\n let grade, suffix\n\n const newVals = value.split('')\n grade = get(newVals, '[0]', null)\n suffix = get(newVals, '[1]', null)\n\n if (grade && scoreEl) {\n scoreEl.textContent = grade\n }\n\n if (suffixEl) {\n if (suffix) {\n suffixEl.textContent = 'x'\n } else {\n suffixEl.textContent = ''\n }\n }\n\n if (oldGrade) {\n this.element.classList.remove(oldGrade.toLowerCase())\n }\n this.element.classList.add(grade.toLowerCase())\n if (suffix) {\n this.element.classList.add('x')\n } else {\n this.element.classList.remove('x')\n }\n }\n\n}","import { Controller } from '@hotwired/stimulus'\nimport { find, get } from 'lodash-es'\n\nexport default class extends Controller {\n static outlets = ['insights--dataset-filter']\n\n remove(e) {\n const targetFilter = get(e, 'currentTarget.dataset.filter')\n if (!targetFilter) {\n console.error('Invalid target filter')\n return false\n }\n if (!this.hasInsightsDatasetFilterOutlet) {\n console.error('Unable to process filter removal')\n return false\n }\n\n const filterOutlet = find(this.insightsDatasetFilterOutlets, (outlet) => {\n return get(outlet, 'element.dataset.filterType') == targetFilter\n })\n if (!filterOutlet) {\n console.error(`Target filter not found: ${targetFilter}`)\n return false\n }\n\n filterOutlet.remove(e)\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n\n static get targets() {\n return [\n 'lostDaysDiv', 'lostDaysInput'\n ];\n }\n\n\n connect() {\n }\n\n domShow(e) {\n e.classList.add('visible');\n e.classList.remove('hidden');\n }\n\n domHide(e) {\n e.classList.add('hidden');\n e.classList.remove('visible');\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { get, uniq, split, join, compact, without, isEmpty } from \"lodash-es\"\n\nexport default class extends Controller {\n\n static values = {\n summary: Object\n }\n\n connect() {\n if (this.hasSummaryValue && !isEmpty(this.summaryValue)) {\n window.dispatchEvent(new CustomEvent('affected-assets-search-loaded', { detail: this.summaryValue }))\n }\n }\n\n excludeEntry(e) {\n const evtAssetInstanceId = get(e, 'detail.asset_instance_id')\n if (evtAssetInstanceId.length == 0) {\n return\n }\n\n const excludedIdInput = this.element.querySelector('input[name=exclude_asset_ids]')\n let excludedIds = compact(split(excludedIdInput.value, ','))\n excludedIds.push(evtAssetInstanceId)\n excludedIdInput.value = join(uniq(excludedIds), ',')\n\n setTimeout(this.refresh.bind(this), 500)\n }\n\n includeEntry(e) {\n const evtAssetInstanceId = get(e, 'detail.asset_instance_id')\n if (evtAssetInstanceId.length == 0) {\n return\n }\n\n const excludedIdInput = this.element.querySelector('input[name=exclude_asset_ids]')\n let excludedIds = compact(split(excludedIdInput.value, ','))\n excludedIdInput.value = join(without(excludedIds, evtAssetInstanceId), ',')\n\n this.refresh()\n }\n\n zoneSelected(e) {\n const zoneInput = this.element.querySelector('input[name=location_zone_id]')\n if (!zoneInput) {\n return\n }\n\n zoneInput.value = get(e, 'detail.zone.id')\n this.element.requestSubmit()\n }\n\n filterAssetTypes(e) {\n const filterAssetTypes = get(e, 'detail.ids', [])\n\n let assetTypeIdInput = this.element.querySelector('input[name=asset_type_id]')\n assetTypeIdInput.value = join(uniq(filterAssetTypes), ',')\n this.element.requestSubmit()\n }\n\n refresh() {\n this.element.requestSubmit()\n }\n\n}","import { Controller } from '@hotwired/stimulus'\nimport { has, get } from 'lodash-es'\n\n/*\n * Filters a list with an AJAX request, processing a JSON response with multiple HTML fragments to render the list\n * along with refreshed and updated filters.\n *\n * The text filter is a uniquely named target which the controller manipulates on the page, rather than refreshing\n * it with a new fragment. The other filters are in the filterTargets collection.\n */\nexport default class FilteredListController extends Controller {\n static targets = ['filters', 'filter', 'list', 'textFilter', 'download']\n static values = { url: String }\n\n update(e) {\n if (!this.hasFilterTarget) { return }\n\n this.disableFilters()\n\n let params = new URLSearchParams()\n\n if ('filters' in e.currentTarget.dataset) {\n // a link was clicked, process as if filter was changed\n e.preventDefault()\n const filters = JSON.parse(e.currentTarget.dataset.filters)\n for (const [name, value] of Object.entries(filters)) {\n params.set(name, value)\n }\n } else {\n // filter was changed\n this.filterTargets.forEach(filter => {\n params.set(filter.name, filter.value);\n });\n params.set('text', this.textFilterTarget.value);\n }\n\n this.fetchResponse(params)\n }\n\n clear(e) {\n this.textFilterTarget.value = null;\n this.fetchResponse();\n }\n\n page(e) {\n e.preventDefault()\n const link = e.target.closest('a')\n const url = new URL(link.href)\n let params = new URLSearchParams(url.search)\n\n this.fetchResponse(params)\n }\n\n disableFilters() {\n this.filterTargets.forEach(element => {\n element.disabled = true\n })\n }\n\n fetchResponse(params) {\n fetch(this.urlValue + \"?\" + params)\n .then(response => response.json())\n .then(data => this.processResponse(data))\n }\n\n processResponse(data) {\n this.textFilterTarget.enabled = true;\n this.filtersTarget.innerHTML = data.filters;\n this.listTarget.innerHTML = data.list;\n\n if (this.hasDownloadTarget && has(data, 'total')) {\n const total = parseInt(get(data, 'total', '0'))\n if (total > 0) {\n this.downloadTarget.classList.remove('hide')\n } else {\n this.downloadTarget.classList.add('hide')\n }\n }\n\n // update URL with selected filters\n history.replaceState({}, '', data.url)\n\n // notify custom controllers (eg. risk_register)\n let event = new CustomEvent('filteredList:updated', { detail: data })\n this.element.dispatchEvent(event)\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\n// Add data-controller=\"iframe-resizer\" to the iframe tag\n// On load and resize, the iframe will resize to the size of the contents\n\nexport default class extends Controller {\n connect() {\n this.resizeIframe()\n window.addEventListener('resize', this.resizeIframe.bind(this))\n }\n\n resizeIframe() {\n const iframe = this.element\n if (iframe.contentWindow && iframe.contentWindow.document && iframe.contentWindow.document.body) {\n const default_buffer = 50\n iframe.style.height = iframe.contentWindow.document.body.scrollHeight + default_buffer + 'px'\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport { get } from 'lodash-es'\n\nexport default class extends Controller {\n\n static targets = ['sort', 'direction']\n\n zoneSelected(event) {\n const baInput = this.element.querySelector('input[name=building_asset_id]')\n\n if (baInput) {\n baInput.value = get(event, 'detail.zone.id')\n this.element.requestSubmit()\n } else {\n console.error('unable to process zone selection - no input target detected')\n }\n }\n}","import { Controller } from '@hotwired/stimulus'\nimport { get } from 'lodash-es'\n\nexport default class extends Controller {\n\n remove(e) {\n const id = get(e, 'currentTarget.dataset.id')\n const targetFilter = get(e, 'currentTarget.dataset.filter')\n const el = this.element.querySelector(`[data-filter-type=\"${targetFilter}\"][data-filter-value=\"${id}\"]`)\n if (!el) {\n console.error(`Target filter element not found: #${targetFilter}-${id}`)\n debugger\n return false\n }\n el.click();\n }\n}\n","import AssocationSelectorController from '../../shared/form/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 meterJson = get(e, 'currentTarget.dataset.meter', '')\n if (meterJson.length == 0) {\n console.error('No meter data detected')\n } else {\n const meterData = JSON.parse(meterJson)\n if (this.hasRedirectPathValue) {\n this.redirectTo(meterData)\n } else {\n this.fireCustomEvent(meterData)\n }\n\n $(this.element).foundation('reveal', 'close')\n }\n }\n\n redirectTo(meterData) {\n let redirect = clone(this.redirectPathValue)\n\n const meterId = get(meterData, 'scoped_id', 0)\n if (meterId > 0) {\n redirect = replace(redirect, ':meter_id', meterId)\n } else {\n redirect = replace(redirect, '/:meter_id', '')\n }\n\n const locationId = get(meterData, '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(meterData) {\n window.dispatchEvent(new CustomEvent('utility-meter-selected', { detail: { meter: meterData } }))\n }\n\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"matrix\"]\n\n update(e) {\n if (!this.hasMatrixTarget) { return }\n\n this.matrixTarget.style.minHeight = this.matrixTarget.height + \"px\"\n this.matrixTarget.innerHTML = e.detail.matrix\n }\n}\n","import { Controller } from 'stimulus'\n\nexport default class extends Controller {\n static targets = ['completed', 'completionLink']\n\n static values = {\n completed: {type: Boolean, default: false},\n }\n\n connect() {\n if (this.hasCompletionLinkTarget) {\n this.completionLinkTarget.setAttribute('disabled', true)\n }\n }\n\n completedTargetConnected() {\n if (this.hasCompletionLinkTarget) {\n console.log('connected');\n this.completionLinkTarget.removeAttribute('disabled')\n this.completionLinkTarget.classList.remove('hide')\n console.log(this.completedValue);\n if (this.completedValue == false) {\n this.exitFullScreen()\n }\n }\n }\n\n isMobileDevice() {\n return /Mobi|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\n }\n\n isVideoInFullscreen() {\n if (document.fullscreenElement?.nodeName === \"VIDEO\") {\n return 'true';\n }\n return 'false';\n }\n \n exitFullScreen() {\n console.log('exit full');\n // exit fullscreen 5 seconds after if mobile phone and in full screen\n if (this.isMobileDevice() && this.isVideoInFullscreen()) {\n setTimeout(() => {\n console.log('exit');\n this.completedValue = true\n document.exitFullscreen()\n }, 5000);\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = ['detail', 'contractInput', 'sendToContractorInput']\n\n connect() {\n // initialise ui state on form with errors\n if (this.hasContractInputTarget && this.contractInputTarget.value.length > 0) {\n this.setContractInputStatus()\n } else if (this.hasSendToContractorInputTarget && this.sendToContractorInputTarget.checked) {\n this.setSendToContractorInputStatus()\n }\n }\n\n onContractorChange(e) {\n this.setSendToContractorInputStatus()\n }\n\n setSendToContractorInputStatus() {\n if (!this.hasSendToContractorInputTarget) {\n console.error('unable to set sendToContractor status')\n return\n }\n const detailsElem = this.sendToContractorInputTarget.closest('details')\n if (this.sendToContractorInputTarget.checked) {\n this.disableOtherOptions(detailsElem)\n detailsElem.setAttribute('open', true)\n } else {\n this.enableOtherOptions(detailsElem)\n }\n }\n\n onContractChange(e) {\n this.setContractInputStatus()\n }\n\n setContractInputStatus() {\n if (!this.hasContractInputTarget) {\n console.error('unable to set contractInput status')\n return\n }\n const detailsElem = this.contractInputTarget.closest('details')\n if (this.contractInputTarget.value.length > 0) {\n this.disableOtherOptions(detailsElem)\n detailsElem.setAttribute('open', true)\n } else {\n this.enableOtherOptions(detailsElem)\n }\n }\n\n disableOtherOptions(detailsElem) {\n this.detailTargets.forEach((target) => {\n if (target != detailsElem) {\n target.classList.add('disabled')\n target.querySelectorAll('input').forEach((input) => {\n input.disabled = true\n })\n target.querySelectorAll('.button').forEach((button) => {\n button.classList.add('disabled')\n })\n }\n })\n }\n\n enableOtherOptions(detailsElem) {\n this.detailTargets.forEach((target) => {\n if (target != detailsElem) {\n target.classList.remove('disabled')\n target.querySelectorAll('input').forEach((input) => {\n input.disabled = false\n })\n target.querySelectorAll('.button').forEach((button) => {\n button.classList.remove('disabled')\n })\n }\n })\n }\n\n}","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n connect () {\n const iframe = this.element.querySelector('iframe.video')\n if (iframe) {\n const wrapperDiv = document.createElement('div')\n wrapperDiv.className = 'embedded-video'\n iframe.setAttribute('width', '100%')\n iframe.setAttribute('height', '100%')\n iframe.parentNode.insertBefore(wrapperDiv, iframe)\n wrapperDiv.appendChild(iframe)\n }\n }\n}","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n connect () {\n const event = new CustomEvent(\"edit-tile-item\", {\n detail: {\n itemId: this.element.dataset.id\n }\n });\n window.dispatchEvent(event);\n }\n}","import HiddenModalController from '../shared/hidden_modal_controller'\nimport { debounce } from 'lodash-es'\n\nexport default class extends HiddenModalController {\n\n static targets = ['keyCombo', 'search', 'results']\n\n connect() {\n this.handleResultSelection = debounce(this.handleResultSelection, 200).bind(this)\n }\n\n toggleModal(e) {\n if (!this.isQuickSearchEvent(e)) {\n return\n }\n e.preventDefault()\n\n super.toggleModal(e)\n }\n\n isQuickSearchEvent(e) {\n if (e.type == 'click') {\n return true\n }\n if (e.type == 'keydown' && e.key == 'k' && (e.metaKey || e.ctrlKey)) {\n return true\n }\n\n return false\n }\n\n keyComboTargetConnected(elem) {\n const isMac = window.navigator.userAgent.indexOf('Mac') != -1\n if (isMac) {\n elem.textContent = '⌘+K'\n } else {\n elem.textContent = 'Ctrl+K'\n }\n }\n\n searchTargetConnected(elem) {\n elem.addEventListener('keydown', this.handleResultSelection.bind(this))\n }\n\n resultsTargetConnected(elem) {\n this.focusResult(this.currentResult())\n }\n\n handleResultSelection(e) {\n let targetResult\n switch (e.keyCode) {\n case 13:\n e.preventDefault()\n targetResult = this.currentResult()\n if (targetResult) {\n targetResult.click()\n }\n break\n case 38:\n e.preventDefault()\n targetResult = this.previousResult()\n this.focusResult(targetResult)\n break\n case 40:\n e.preventDefault()\n targetResult = this.nextResult()\n this.focusResult(targetResult)\n break\n }\n }\n\n previousResult() {\n const current = this.currentResult().parentElement\n const prev = current.previousElementSibling\n if (prev) {\n return prev.querySelector('a')\n } else {\n return this.currentResult()\n }\n }\n\n nextResult() {\n const current = this.currentResult().parentElement\n const next = current.nextElementSibling\n if (next) {\n return next.querySelector('a')\n } else {\n return this.currentResult()\n }\n }\n\n currentResult() {\n let currentResult\n if (this.hasResultsTarget) {\n currentResult = this.resultsTarget.querySelector('.choice-list li a.selected')\n if (!currentResult) {\n currentResult = this.resultsTarget.querySelector('.choice-list li a')\n }\n }\n\n return currentResult\n }\n\n focusResult(targetResult) {\n this.element.querySelectorAll('.choice-list li a').forEach(elem => elem.classList.remove('selected'))\n if (targetResult) {\n targetResult.classList.add('selected')\n targetResult.parentElement.scrollIntoView({ behavior: 'auto', block: 'center', inline: 'nearest' })\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\n \"commentFormContainer\",\n \"raiseJobContainer\"\n ]\n\n static values = {\n canViewPremises: Boolean\n }\n\n connect() {\n // Disable links if user doesn't have permission to view premises\n if (!this.canViewPremisesValue) {\n this.handleDisabledLinks();\n }\n }\n\n handleDisabledLinks() {\n const disabledLinks = document.querySelectorAll('.reactive-jobs-list a.disabled');\n disabledLinks.forEach(link => {\n link.addEventListener('click', (e) => {\n e.preventDefault();\n });\n });\n }\n\n showJobForm() {\n this.commentFormContainerTarget.classList.add(\"hide\")\n this.raiseJobContainerTarget.classList.remove(\"hide\")\n }\n\n cancelJobForm(event) {\n event.preventDefault()\n event.stopPropagation()\n\n this.commentFormContainerTarget.classList.remove(\"hide\")\n this.raiseJobContainerTarget.classList.add(\"hide\")\n this.raiseJobContainerTarget.querySelector(\"#job_form\").innerHTML = \"\"\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\n \"count\"\n ]\n\n connect() {\n let minsize = parseInt(this.element.dataset.minSize);\n let maxsize = parseInt(this.element.dataset.maxSize);\n let sizeRange = maxsize - minsize;\n\n let counts = this.countTargets;\n let values = counts.map(t => parseInt(t.dataset.count));\n\n let min = Math.min(...values);\n let max = Math.max(...values);\n\n let scale = min / max;\n\n counts.forEach(t => {\n let count = parseInt(t.dataset.count);\n let relative = (count * scale) / min;\n let size = minsize + (relative * sizeRange);\n\n t.style.width = size + 'px';\n t.style.height = size + 'px';\n t.style.marginTop = ((maxsize - size) / 2) + 'px';\n t.style.marginBottom = ((maxsize - size) / 2) + 'px';\n })\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { filter, get } from 'lodash-es'\n\nexport default class extends Controller {\n static targets = ['entry']\n\n mouseOver(event) {\n const hoverClass = this.hoverClass(event.target)\n const targetEntries = this.eventTargets(event)\n targetEntries.forEach((el) => { el.classList.add(hoverClass) })\n event.target.classList.add(hoverClass)\n }\n\n mouseOut(event) {\n this.eventTargets(event).forEach(function (el) { el.classList.remove('hover-plus', 'hover-minus') })\n event.target.classList.remove('hover-plus', 'hover-minus')\n }\n\n eventTargets(event) {\n const grade = event.target.dataset.grade\n const priority = event.target.dataset.priority\n\n if (grade && !priority) {\n // hover grade (column)\n return filter(this.entryTargets, (el) => { return el.dataset.grade == grade })\n } else if (priority && !grade) {\n // hover priority (row)\n return filter(this.entryTargets, (el) => { return el.dataset.priority == priority })\n }\n\n return []\n }\n\n hoverClass(targetElem) {\n if (get(targetElem, 'dataset.selected', 'false') === 'true') {\n return 'hover-minus'\n } else {\n return 'hover-plus'\n }\n }\n\n}"],"names":["_Class","Controller","connect","this","toggleFormUsage","typeValue","typeSelectTarget","value","length","hideUsage","hideParentInput","showParentInput","triggerSelectorRefresh","showUsage","setButtonsStatus","submitEnabled","submitButtonTarget","disabled","cancelForm","e","preventDefault","stopImmediatePropagation","usageSelectTarget","usageTarget","classList","add","buildUsageOptions","get","selectedValue","optionValues","innerHTML","appendChild","buildOption","keys","groupEl","forEach","values","group","document","createElement","setAttribute","opt","_group","label","selected","textContent","hasUsageTarget","hasUsageSelectTarget","hasParentInputTarget","parentInputTarget","closest","remove","hasParentTreePathValue","refreshParams","URLSearchParams","selector_type","target_type","window","dispatchEvent","CustomEvent","detail","id","refresh_url","parentTreePathValue","toString","requiresUsage","targets","usageOptions","Object","parentTreePath","String","checkEmail","event","emailInput","currentTarget","resetInviteWarnings","element","checkValidity","trim","_self","postJson","location","href","email","then","data","status","link","memberMessageTarget","querySelector","catch","error","console","assignAllLocations","locationInputTargets","el","checked","toggleRoleLocations","formData","FormData","labels","querySelectorAll","hints","style","display","url","fetch","method","body","JSON","stringify","headers","csrfToken","response","ok","Error","json","setOpenFormState","ownershipChanged","ownershipTarget","allowOpenResponsesTarget","disallowOpenResponsesTarget","parentFormController","application","getControllerForElementAndIdentifier","getElementById","addEventListeners","updateSectionBasedOnFormState","addEventListener","bind","select","showSections","enableAssetsChecked","selectAllChecked","show","totalSectionTarget","updateSelectorState","selectedOption","getSelectedOption","maybeShowSections","maybeEnableInputs","disableInputs","isEnabled","hasSelectorTarget","selectorTarget","input","hasCategorySectionTarget","categorySectionTarget","assetSectionTarget","isCategory","isAssets","hasCategoryTarget","categoryTarget","hasSelectAllAssetsTarget","selectAllAssetsTarget","assetTargets","asset","target","_this","_this$selectorTarget$","shouldShow","inline","openValue","toggle","hide_and_reset","filtersTarget","toggleTarget","history","replaceState","pathname","selectedIndex","submit","context","statusTarget","options","getAttribute","newUrl","URL","endsWith","replace","requestSubmit","open","Boolean","sidebar","nextElementSibling","content","previousElementSibling","collapseValue","collapse","expand","type","default","newItem","dataset","map","webpackContext","req","webpackContextResolve","__webpack_require__","o","code","resolve","module","exports","initialize","currentlyUploadingCount","resetFileInput","showHideDragField","handleUploadError","uploadFieldConnected","uploadRemoved","uploadStarted","uploadFinished","upload","files","validatedFiles","resetValidationMessage","showValidationMessage","validateFiles","i","validFiles","fieldId","generateUniqueId","uploadFileViaChild","appendUploadDetails","showInvalidFiles","Date","getTime","Math","random","substr","clone","cloneNode","uploadAreaContainerTarget","append","file","uploadEvent","locationId","locationIdValue","folderId","folderIdValue","fileSelected","fileToUpload","showHidePublishButton","hideItem","validationMessageTarget","msg","showItem","totalErrors","poorFileFormat","exceedSizeLimits","exceedMaxUploadCount","uniqueInvalidFiles","Set","fileName","cleanFileName","name","acceptedFileFormat","withinSizeLimits","wontExceedMaxUploadCount","push","html","limitFilenameLength","bytesToKB","size","file_name","ext","toLowerCase","match","includes","filePosition","maxUploadCount","maxUploadCountValue","uploadCount","bytes","toFixed","filename","maxLength","start","floor","end","ceil","slice","fileDragZoneTarget","DragDropUpload","dragDropCallback","handlePublish","errors","names","uploadNameTargets","uploadName","inputName","has","showPublishButton","uploadFormTarget","displayErrors","clearExistingErrors","errorElement","parentNode","insertBefore","nextSibling","publishButtonTarget","showSpinner","publishButtonSpinnerTarget","selectButtonClick","fileInputTarget","click","item","Number","recalculateTotal","hasBudgetTotalTarget","formattedTotal","Intl","NumberFormat","currency","minimumFractionDigits","format","currentTotal","budgetTotalTarget","sumBy","fundInputTargets","elem","total","parseInt","isInteger","player","Plyr","onSelect","targetEntry","priority","grade","selectedValues","selectGroup","navigateTo","origin","urlValue","searchParams","set","join","onSuccess","setSuccessStatus","hasCountTarget","countText","numRemindersValue","sendAllContainerTarget","countTargets","onError","parentElement","setTimeout","onSuccessAll","sendReminderTargets","numReminders","assignTicket","closeDropdowns","userId","assignPath","path","assignedToInputTarget","ticketFormTarget","action","findUser","regex","RegExp","escapeRegExp","findUserInputTarget","userOptions","matchCount","index","setPriority","priorityId","priorityInputTarget","setStatus","statusId","statusInputTarget","setCategory","categoryId","categoryInputTarget","updateButtonStatus","commentTarget","editor","getDocument","hasCloseButtonTarget","closeButtonTarget","closeComment","commentStatusInputTarget","Rails","fire","commentFormTarget","editDetails","_event$detail","_slicedToArray","xhr","editDetailsTarget","Foundation","libs","dropdown","close","call","$","onCategorySelect","hasAssetPickerTarget","assetTypeIds","parse","ids","updateAssetPickerStatus","hasAddAssetButtonTarget","categoryAssetsEnabled","hasCategoryInputTarget","tagName","hasAssignedAssets","assetPickerTarget","totalResults","filtered","assetSearchEnabled","statusEl","addAssetButtonTarget","refresh","targetEmail","hasFrameTarget","hasUrlValue","currentValue","showContent","refreshUrl","search","frameTarget","hideContent","showOnSelectTargets","current","update_field_visibility","domShow","domHide","reportedToInputTarget","reportedToBlockTarget","reportedByInputTarget","onUtilitySelect","units","labelText","changeHandler","cancel","starsTarget","_event","cancelTarget","sortByThisColumnAndToggleOrder","nextSort","_columnData$sort","columnData","headerTargets","sort","sortTarget","column","directionTarget","hasFormTarget","formTarget","submitUnlessDirty","navigationFormTarget","disconnect","removeEventListener","isFormDirty","tasksFormTarget","confirm","Application","loadStimulusDefinitionsFromContexts","require","debug","process","register","DetectDirtyFormController","CheckboxSelectAllController","RemoteFormController","SyncInputsController","TreeViewController","Trix","config","blockAttributes","terminal","breakOnReturn","Turbo","session","drive","reset","stopPropagation","metadataTarget","formControlsTarget","editButtonTarget","titleFieldTarget","titleHeaderTarget","deletePhotoLinkTargets","updateDeletedPhotoStatus","descriptionFieldTarget","showForm","removePhoto","wrapper","numDeleted","numDeletedPhotos","message","removedPhotosStatusTarget","scrollPosition","offsetTop","scrollTo","top","behavior","selectLocation","locationValue","setCurrentEmail","selectCategory","categoryValue","emailEntry","find","emailsValue","category","selectedEmailTarget","clipboardCopyableValue","emailLink","emails","Array","toggleFollowUp","attachment","setActiveFormat","clickedElement","contains","toggleTargets","formatTarget","listToggleTarget","cardToggleTarget","previewLoaded","spinnerTarget","previewTargets","preview","contractJson","contractData","fireCustomEvent","foundation","hasResetTarget","resetTarget","contract","updateFormBasedOnState","updateFormSections","hideOtherOptions","showOtherOptions","otherOptionsTarget","enableAssetsTarget","SortableController","setPageLoaded","loadPageFrame","startsWith","page","loadedPages","loadedValue","pagingValue","total_pages","loadContent","container","asyncContainerTarget","contentTarget","childNodes","loadingTarget","paging","loaded","BaseController","locationChangedHandler","locationTarget","updateLocationZones","locationChanged","hasZoneTarget","hasZonesListTarget","zoneOptions","zonesListTarget","zoneTarget","locationZoneId","zone","locationZoneChanged","hasLocationTarget","resetErrors","hasInputTarget","checkForNoActiveCheckboxes","inputTargets","createPillElement","toggleItem","rootInputTarget","resetFilterGroup","checkForPillExistance","submitForm","activePills","pill","parentDiv","pillDiv","className","titleDiv","icon","isChecked","AutoSubmitFormController","handler","parseCategoryTypeSelection","setFormAction","super","hasCategoryTypeInputTarget","assetTypeId","splits","split","categoryTypeInputTarget","categoryInput","typeInput","hasLocationInputTarget","locationInputTarget","formPath","filterPath","onChange","matches","params","boardGrid","dragContainer","columnGrids","columnTargets","grid","Muuri","items","dragEnabled","dragSort","dragAutoScroll","getGrid","getElement","dragStartPredicate","delay","distance","dragPlaceholder","enabled","on","width","getWidth","height","getHeight","refreshItems","layout","emptyColumn","_element","oldStatusValue","oldPositionValue","newPositionValue","from","getItems","indexOf","newStatusValue","updateItem","statusValue","positionValue","form","positionInput","statusInput","updateItemsNumber","count","contractSelected","selectedContractId","inputTarget","hasDisplayTarget","displayTarget","updateTotal","totalChecked","filter","checkboxTargets","totalTarget","_toggle","selectedItems","highlightedIndex","resultsTarget","selectedHeaderTarget","debouncedFetchResults","debounce","fetchResults","fieldTarget","onInput","onKeyDown","populateExistingSelections","cachedItems","hiddenFieldTarget","addItem","term","clearResults","separator","autocompleteUrlValue","showResults","key","highlightNext","highlightPrevious","selectHighlighted","positionResults","highlightedItems","listItem","tabIndex","getItemIcon","highlightItem","offsetHeight","left","offsetLeft","offsetWidth","clearErrors","errorDiv","children","itemIndex","log","recipientDiv","selectedListTarget","focus","updateSelectedHeader","removeItem","autocompleteUrl","locationJson","locationData","hasRedirectPathValue","redirectTo","redirect","redirectPathValue","replacementId","scoped_id","redirectUrl","redirectParams","modal_id","modalId","redirectPath","assetSelected","classes","drag","layouts","searchField","filterField","fillGaps","dragValue","ItemDrag","defaultStartPredicate","editItem","itemId","tilesTarget","loadedClass","updateLayoutValue","toggleNoContent","hasNoContentTarget","noContentTarget","textNode","layoutValue","serializeLayout","getItem","active","onFinish","filterFieldValue","filterTarget","searchFieldValue","searchTarget","isSearchMatch","isFilterMatch","toggleEditLayout","layoutsValue","hide","removeElements","itemIds","entryTargetConnected","fireAssetRemoved","refreshCurrentContentFrame","asset_instance_id","assetInstanceId","togglePlaceholder","resetContentFrame","removeEntry","removeTarget","entryTargets","targetEl","hasContentFrameTarget","hasPlaceholderTarget","placeholderTarget","hasRefreshUrlValue","contentFrameTarget","refreshUrlValue","src","initializeExpectedAnswers","initializeAttachmentModes","showAttachments","attachments","showAttachmentsLink","hideAttachments","hideAttachmentsIfNoUnexpectedAnswers","optionsElement","every","expected","undefined","notApplicable","setAttachmentMode","mode","attachmentsContainer","li","section","modeSection","processExpectedAnswer","answerInput","choice","attachmentsElement","firstNavLink","onEmailChange","throttle","hasEmailTarget","emailTarget","lookupLoginMode","resetLogin","lookupUrl","ssoLookupUrlValue","Promise","showSsoLogin","showStandardLogin","continueBtnTarget","ssoTarget","standardTarget","ssoLookupUrl","ownerMessageTarget","memberLocationsTarget","linkTarget","scrollIntoView","update","previewAvailable","previewTarget","previewTaskDescription","hasPreviewContainerTarget","previewContainerTarget","originalDescriptionValue","previewAssetName","previewTaskName","previewFrequency","taskDescription","previewFixedDateRenewals","assetName","assetNameValue","hasAssetNameInputTarget","assetNameInputTarget","selectedOptions","taskName","taskNameValue","hasTaskNameInputTarget","taskNameInputTarget","frequency","frequencyValue","hasFrequencyInputTarget","frequencyInputTarget","fixedDateRenewals","fixedDateRenewalsValue","hasFixedDateRenewalsInputTarget","fixedDateRenewalsInputTarget","originalDescription","checkFilters","advanceClearFilter","hasClearFilterButtonTarget","hasSearchInputTarget","clearFilterButtonTarget","searchInputTarget","hasClearFilterSectionTarget","selects","some","clearFilterSectionTarget","clearFilters","formatDate","date","moment","datetimeValue","isSame","subtract","isAfter","year","datetime","webpackEmptyContext","onContractChange","actionsTarget","confirmationHintTarget","updateButtonState","toggleAll","checkbox","updateSelectUserButton","updateSelectedCount","selectedUsers","userText","selectedUsersTarget","hasCheckboxTarget","checkedBoxes","hasSelectedUsersTarget","alert","button","innerWidth","scrollToCurrentSection","currentSection","sectionTargets","sectionOffsetLeft","sectionWidth","newScrollLeft","hideSpinner","revealSpinner","originalElementTargets","originalButtonText","saveDateButtonTarget","showEstimateForm","promoTargets","promo","estimateFormTargets","toggleTaskCompletionMode","shouldDisable","taskNeverDoneTarget","completedOnModeTarget","updateInputsAndIconState","datePickerTarget","calendarIcon","scroll","change","TogglerController","radio","highlightChoice","modeSelected","contractSelectTarget","removeLocation","handleMouseUp","itemElement","hasPositionFormTarget","hasPositionInputTarget","oldPosition","gridOutlet","newPosition","positionInputTarget","positionFormTarget","outlets","warnOutOfRange","hideErrors","setWarningMessage","showWarnings","targetVal","outOfRange","hasMinValue","minValue","hasMaxValue","maxValue","warningValue","outOfRangeMessage","hasWarningValue","warningEl","warningTarget","min","max","warning","refreshForm","submitButton","refreshEmission","refreshRecordable","hasRecordableTypeTarget","recordableTypeTarget","selectedOpt","recordableType","Chart","MatrixController","MatrixElement","showHeatmap","endDate","startDate","heatData","datapoints","scales","y","offset","time","unit","round","isoWeekday","parser","displayFormats","day","reverse","position","border","ticks","maxRotation","autoSkip","padding","font","family","callback","getDay","drawBorder","tickLength","x","toDate","week","timestamp","currentDate","previousDate","currentDateMonth","getMonth","previousDateMonth","stringMonth","toLocaleString","month","toUpperCase","animation","aspectRatio","maintainAspectRatio","plugins","legend","tooltip","displayColors","bodyFont","callbacks","title","v","dataIndex","formattedDate","d","toLocaleDateString","getDataPointColor","c","heatmapTarget","datasets","backgroundColor","borderRadius","borderWidth","hoverBackgroundColor","hoverBorderColor","a","chart","chartArea","right","updateOtherLocationInputVisibility","_e$target","_e$target2","_e$target3","hasSelectedBlank","hasSelectedOther","otherLocationInputTarget","hasZoneInputTarget","zoneInputTarget","capitalizeFirstLetter","string","charAt","hide_fields","self","show_fields","person_affected","peopleAffectedInputTarget","affected_person_type","affectedValue","affectedText","affectedPersonTypeInputTargets","nodeValue","text","affectedPersonsVisibility","contractorVisibility","injuryVisibility","implicationsVisibility","mutate_field_labels","$occupationLabel","affectedPersonOccupationInputTarget","newLabel","innerText","enabledForVisibility","enabledForNames","enabledFors","matchingTargets","entries","_","_this$affected_person","visibleTargets","concat","allTargets","missingTargets","_this$affected_person2","affectedPersonsFormBlockTarget","enabledForTargets","injuryFormBlockTarget","implicationsFormBlockTarget","_this$affected_person3","injuryOccurredInputTarget","contactedNextOfKinInputTarget","setupAutocomplete","personType","staffAutocompleteUrlValue","pupilAutocompleteUrlValue","removeAttribute","hasVideoOutlet","setupPlayerListeners","videoOutlet","once","startAtLastWatched","updateProgress","handleVideoEnd","off","saveProgress","targetTime","duration","initialPercentageValue","currentTime","progress","percentageWatched","hasDataTarget","dataTarget","initialPercentage","countryCode","enable","gbTargets","disable","nonGbTargets","setDatePicker","dp","datepickerTarget","datepicker","buttonText","buttonTextOnly","dateFormat","showButtonPanel","showOn","maxDate","nextText","prevText","parent","addClass","beforeShow","val","formatted_date","resultsRendering","allFramesRendered","setCollapseState","handleFramesRendering","handleFramesLoaded","toggleButtonTarget","sortOrderTarget","live_search","rowSelector","itemSelector","useStripes","excludeItems","list","_check_no_data","_is_row_visible","removeSpinner","sortOrder","elementsArray","resultsContainer","resultsContainerTarget","b","localeCompare","numeric","addSpinner","row","hasAttribute","locationCount","DateRangeController","handleMultiDateOptionChange","hasOptionTarget","optionTarget","handleMutation","mutationList","observer","syncDates","toTarget","_flatpickr","setDate","fromTarget","observeTargets","observe","fileNameTarget","humanFileSize","pow","hasSourceTarget","hasTemplateTarget","wrapperSelectorValue","buildTemplate","template","templateTarget","sourceTargets","sourceElement","placeholder","previewPlaceholder","HTMLInputElement","inputId","hiddenInput","replaceAll","wrapperSelector","CheckedCountController","totalOverall","load","reject","processStats","stats","updateTargets","documentsTargets","documents","helpdeskTargets","helpdesk","formsTargets","forms","responsesTargets","forms_all_unreviewed","bulletinsTargets","bulletins","policiesTargets","policies","policiesOverdueTargets","policies_overdue","riskAssessmentsTargets","risk_assessments","riskAssessmentsOverdueTargets","risk_assessments_overdue","incidentsTargets","incidents","incidentsActionsTargets","incidents_actions","formsActionsTargets","forms_actions","riskRecordsActionsTargets","risk_records_actions","featureAnnouncementsTargets","feature_announcements","assignedCoursesTargets","assigned_courses","updateWarningTargets","formReviewWarningTargets","formIncompleteWarningTargets","forms_incomplete","updateBannerTargets","policyReviewBannerTargets","riskAssessmentReviewBannerTargets","riskRecordReviewBannerTargets","risk_records_overdue","formReviewBannerTargets","forms_failures","incidentUnresolvedBannerTargets","counts","placeholders","isTouchDevice","toggleDropdown","navigator","maxTouchPoints","msMaxTouchPoints","sharedButtonDropdownOutlets","dropdownContentTarget","dropdownBackgroundTarget","nextState","currentVal","hasExpandedInputTarget","expandedInputTarget","state","updateVisibility","hasTableTarget","tableTarget","updateToggle","hasSidebarTarget","hasContentTarget","sidebarTarget","hasToggleButtonTarget","span","image_url","uploading","displayCurrent","disableUpload","initCroppie","croppie","destroy","editTarget","displayEdit","Croppie","croppieTarget","enableExif","enableOrientation","viewport","boundary","resize","orientation","setZoom","openFileBrowser","fileInputLabelTarget","rotate","uploadButtonTarget","beginUpload","enableUpload","reader","FileReader","onload","result","readAsDataURL","quality","circle","blob","DirectUpload","directUploadUrl","create","uploaded_blob","blobTarget","signed_id","uploadComplete","reload","eventName","eventNameValue","dispatchOnDocument","dispatchOnDocumentValue","dispatchOnConnect","dispatchOnConnectValue","Event","MutationObserver","mutations","updateDateRangeDisplay","dateFromTarget","childList","subtree","characterData","dateToTarget","dateFromContent","dateToContent","allDatesTarget","setDatesTarget","_mutationsList","elements","selectorValue","isNaN","singularValue","pluralValue","selector","singular","plural","selectTemplate","templateInput","srcTarget","hasChildTarget","childTargets","testNoResults","invitesTargets","showNoResults","hideNoResults","insertRow","cell","insertCell","noResultsTargets","deleteInvite","addInvite","email_field","controllers","autoCompleteTarget","reduce","carry","rowId","hasResultsTarget","useClickOutside","debouncedSearchHandler","postionResultsTarget","searchQuery","minSearchQueryValue","autocompleteParams","populateInputs","hideResults","populateInput","rect","getBoundingClientRect","labelRect","labelStyle","getComputedStyle","labelHeight","marginTop","marginBottom","marginWidth","marginLeft","clickOutside","minSearchQuery","constructor","dragDropElement","attachEvents","eventType","dataTransfer","glideElement","slides","keyboard","autoplay","perView","slidesPerViewValue","breakpoints","glide","Glide","toggleArrows","settings","controls","mount","slidesPerView","handleDateChange","maybeRefreshDownloadButton","turboFrame","firstChild","removeChild","templateContent","stateValue","hasExpandOptionsTextTarget","updateExpandOptionsText","dispatchEvents","performUpload","bubbles","uploadErrorEvent","createUpload","blobSignedId","createUploadUrl","l","blob_signed_id","field_id","fieldIdValue","location_id","folder_id","renderStreamMessage","publicationDate","publicationDateTarget","reviewFrequency","reviewFrequencyTarget","parsedDate","outputString","getDayOrdinal","getUTCDate","getUTCFullYear","expandOptionsTextTarget","expandOptionsControlButtonTarget","j","k","expandOptions","expandOptionsControlTarget","expandOptionsTarget","success","fetchResponse","filterEl","inputs","setRisk","riskId","risk","riskInputTarget","jobFormTarget","setOwner","ownerId","owner","ownerInputTarget","deleted","groupMembershipLoaded","groupMembershipDeleted","delete","autoSearch","showItems","hideItems","_this$filter2","itemTargets","partition","setDefaultLocationAndZone","locationChange","locationZoneChange","setLocationAndZone","regenerateRefreshUrl","hasAssetSectionTarget","baseUrl","baseUrlTarget","mutationsList","record","pop","formatValue","refreshSelectedGroups","selectedGroupIds","selectedLocationIds","processSelectValues","groupIdsInputTarget","groupIdsInputTargets","hasLocationIdsInputTarget","locationIdsInputTarget","locationIdsInputTargets","rootInput","allInputs","selectAll","removeGroup","groupId","selectedElement","toggleGroup","resetGroupOptions","removeErrorBox","filteredOpts","hasGroupErrorBoxTarget","groupErrorBoxTarget","hasLocationErrorBoxTarget","locationErrorBoxTarget","branch","checkResultsPresent","showHideSections","singleUserSectionTarget","multipleUsersSectionTarget","broadcastSelectedOption","revealSubmit","bulkSubmitTarget","newValue","importOptionHiddenFieldTargets","field","resultTargets","searchResultsTarget","noResultsTarget","buttonTarget","textTarget","showLoading","targetStatus","enablePriorityValue","toggleEntry","enableXValue","toggleXEntry","selectedEntries","entry","selectedStatus","matrixEntries","xEntry","entryGrade","entryPriority","hasLoadingTarget","enablePriority","enableX","Dropzone","disableDropzone","dropzone","dropzoneTarget","enableDropzone","countNumPhotos","reloadPhotos","carouselTarget","html_data","numPhotosValue","showMaxFilesError","hasErrorTarget","errorTarget","numPhotosValueChanged","initDropzone","toggleDrag","opts","paramName","_n","maxFiles","parallelUploads","uploadMultiple","acceptedFiles","previewsContainer","previewsTarget","thumbnailHeight","thumbnailWidth","hasPreviewTemplateTarget","previewTemplate","previewTemplateTarget","removeFile","numPhotos","args","handleConfirmToggled","handleActionsChanged","EventBus","hasConfirmTarget","confirmTarget","numActionsValue","notesTarget","submitTarget","delta","raisedLabelTarget","unraisedLabelTarget","numActions","setReason","setActions","hasActionsTarget","setToggle","hasToggleTarget","clearExisting","hasNewReasonTarget","newReasonTarget","hasExistingReasonTarget","existingReasonTarget","attributes","attributeFilter","fromChanged","channels","removeLinkedUpload","linkedUploadsContainerTarget","showEmailConfirmation","emailConfirmationTarget","userDetailsSuccess","debouncedSubmit","searchFormTarget","toggleOptions","toggleIconTarget","optionsTarget","setDailyFrequency","selectElem","dailyFrequencyValue","dailyFrequencyValueChanged","scheduleOptionTargets","hideAll","showAll","dailyFrequency","hasAssetRegisterCurrentConditionOutlet","assetRegisterCurrentConditionOutlets","outlet","synchroniseCurrentValue","gradePriorityValue","parentGradePriorityValue","hasGradePriorityValue","gradePriorityValueChanged","previous","scoreEl","suffixEl","oldGrade","suffix","newVals","gradePriority","targetFilter","hasInsightsDatasetFilterOutlet","filterOutlet","insightsDatasetFilterOutlets","hasSummaryValue","isEmpty","summaryValue","excludeEntry","evtAssetInstanceId","excludedIdInput","excludedIds","compact","uniq","includeEntry","without","zoneSelected","zoneInput","filterAssetTypes","summary","FilteredListController","hasFilterTarget","disableFilters","filters","_ref","_ref2","filterTargets","textFilterTarget","clear","processResponse","listTarget","hasDownloadTarget","downloadTarget","resizeIframe","iframe","contentWindow","default_buffer","scrollHeight","baInput","AssocationSelectorController","meterJson","meterData","meterId","meter","hasMatrixTarget","matrixTarget","minHeight","matrix","hasCompletionLinkTarget","completionLinkTarget","completedTargetConnected","completedValue","exitFullScreen","isMobileDevice","test","userAgent","isVideoInFullscreen","_document$fullscreenE","fullscreenElement","nodeName","exitFullscreen","completed","hasContractInputTarget","contractInputTarget","setContractInputStatus","hasSendToContractorInputTarget","sendToContractorInputTarget","setSendToContractorInputStatus","onContractorChange","detailsElem","disableOtherOptions","enableOtherOptions","detailTargets","wrapperDiv","HiddenModalController","handleResultSelection","toggleModal","isQuickSearchEvent","metaKey","ctrlKey","keyComboTargetConnected","isMac","searchTargetConnected","resultsTargetConnected","focusResult","currentResult","targetResult","keyCode","previousResult","nextResult","prev","next","block","canViewPremisesValue","handleDisabledLinks","showJobForm","commentFormContainerTarget","raiseJobContainerTarget","cancelJobForm","canViewPremises","minsize","minSize","maxsize","maxSize","sizeRange","t","scale","mouseOver","hoverClass","eventTargets","mouseOut","targetElem"],"sourceRoot":""}