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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 tag that was clicked\n let target = e.currentTarget\n let columnData = target.dataset\n\n this.headerTargets.forEach(el => {\n if (el !== target) {\n delete el.dataset.sort\n }\n })\n\n // Toggle between ascending and descending if the sort direction is set,\n // otherwise pick ascending\n columnData.sort = this.nextSort[columnData?.sort ?? 'none']\n\n this.sortTarget.value = columnData.column\n this.directionTarget.value = columnData.sort\n\n\n if (this.hasFormTarget) {\n requestSubmit(this.formTarget)\n } else {\n requestSubmit(this.element)\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\nimport { isFormDirty } from \"stimulus-library\";\n\nexport default class extends Controller {\n static targets = ['navigationForm', 'tasksForm'];\n\n initialize() {\n this.submitUnlessDirty = this.submitUnlessDirty.bind(this);\n }\n\n connect() {\n this.navigationFormTarget.querySelectorAll(\"input, select, textarea\").forEach((el) => {\n el.dataset['value'] = el.value;\n el.addEventListener(\"change\", this.submitUnlessDirty);\n });\n }\n\n disconnect() {\n this.navigationFormTarget.querySelectorAll(\"input, select, textarea\").forEach((el) => el.removeEventListener(\"change\", this.submitUnlessDirty));\n }\n\n submitUnlessDirty(event) {\n if (isFormDirty(this.tasksFormTarget)) {\n if (window.confirm('Are you sure? You have unsaved changes on this page.')) {\n this.navigationFormTarget.requestSubmit();\n } else {\n event.target.value = event.target.dataset['value'];\n }\n } else {\n this.navigationFormTarget.requestSubmit();\n }\n }\n\n}\n","import { Application } from \"@hotwired/stimulus\";\nimport { loadStimulusDefinitionsFromContexts } from \"../../lib/stimulus\";\nimport { CheckboxSelectAllController, DetectDirtyFormController, RemoteFormController, SyncInputsController, TreeViewController } from \"stimulus-library\";\n\nconst application = Application.start();\n\n// Load all the controllers within this directory and all subdirectories.\n// Controller files must be named *_controller.js.\nloadStimulusDefinitionsFromContexts(\n application,\n require.context(\"controllers/shared\", true, /_controller\\.js$/),\n require.context(\"controllers/app\", true, /_controller\\.js$/),\n);\n\napplication.debug = process.env.RAILS_ENV === \"development\";\napplication.register('detect-dirty-form', DetectDirtyFormController);\napplication.register('checkbox-select-all', CheckboxSelectAllController);\napplication.register('remote-form', RemoteFormController);\napplication.register('sync-inputs', SyncInputsController);\napplication.register('tree-view', TreeViewController);\n","import Trix from 'trix';\nTrix.config.blockAttributes[`heading1`] = { tagName: 'h3', terminal: true, breakOnReturn: true, group: false }\n","/* eslint no-console:0 */\n// This file is automatically compiled by Webpack, along with any other files\n// present in this directory. You're encouraged to place your actual application logic in\n// a relevant structure within app/javascript and only use these pack files to reference\n// that code so it'll be compiled.\n//\n// To reference this file, add <%= javascript_pack_tag 'application' %> to the appropriate\n// layout file, like app/views/layouts/application.html.erb\n\n// Uncomment to copy all static images under ../images to the output folder and reference\n// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)\n// or the `imagePath` JavaScript helper below.\n//\n// const images = require.context('../images', true)\n// const imagePath = (name) => images(name, true)\n\nimport \"@stimulus/polyfills\"\nimport \"trix\"\nimport \"@rails/actiontext\"\nimport \"@hotwired/turbo-rails\"\n\n// this makes turbo opt-in rather than enabled everywhere - add data-turbo=\"true\" to enable where required\nTurbo.session.drive = false\n\nimport \"channels\"\nimport \"controllers/app\"\nimport \"trix_features/video_embed\"\nimport \"trix_features/app_headings\";\n// polyfill fetch https://www.npmjs.com/package/whatwg-fetch\nimport 'whatwg-fetch';\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\n \"titleHeader\", \"titleField\", \"descriptionField\", \"metadata\",\n \"removedPhotosStatus\", \"deletePhotoLink\",\n \"editButton\", \"formControls\"\n ]\n\n reset(event) {\n event.preventDefault()\n event.stopPropagation()\n\n this.element.reset()\n this.metadataTarget.classList.remove(\"hide\")\n this.formControlsTarget.classList.add(\"hide\")\n this.editButtonTarget.style.display = \"\"\n\n this.titleFieldTarget.classList.add(\"hide\")\n this.titleHeaderTarget.classList.remove(\"hide\")\n\n this.deletePhotoLinkTargets.forEach(target => {\n target.classList.add(\"hide\")\n target.closest(\".asset-photo\").classList.remove(\"hide\")\n })\n this.updateDeletedPhotoStatus()\n\n this.descriptionFieldTarget.classList.add(\"hide\")\n this.element.querySelectorAll(\".condition-description\").forEach(function (elem) { elem.classList.remove(\"hide\") })\n window.dispatchEvent(new CustomEvent(\"enable-file-uploads\"))\n }\n\n showForm(event) {\n event.preventDefault()\n event.stopPropagation()\n\n window.dispatchEvent(new CustomEvent(\"disable-file-uploads\"))\n this.metadataTarget.classList.add(\"hide\")\n\n this.titleFieldTarget.classList.remove(\"hide\")\n this.titleHeaderTarget.classList.add(\"hide\")\n\n this.descriptionFieldTarget.classList.remove(\"hide\")\n this.element.querySelectorAll(\".condition-description\").forEach(function (elem) { elem.classList.add(\"hide\") })\n\n this.deletePhotoLinkTargets.forEach(target => target.classList.remove(\"hide\"))\n\n this.editButtonTarget.style.display = \"none\"\n this.formControlsTarget.classList.remove(\"hide\")\n }\n\n removePhoto(event) {\n event.preventDefault()\n event.stopPropagation()\n\n let wrapper = event.target.closest(\".asset-photo\")\n wrapper.querySelector(\"input[name*='_destroy']\").value = 1\n wrapper.classList.add(\"hide\")\n this.updateDeletedPhotoStatus()\n }\n\n updateDeletedPhotoStatus() {\n const numDeleted = this.numDeletedPhotos()\n if (numDeleted > 0) {\n let message = (numDeleted == 1) ? \"1 photo to be deleted\" : `${numDeleted} photos to be deleted`\n this.removedPhotosStatusTarget.textContent = message\n this.removedPhotosStatusTarget.classList.remove(\"hide\")\n } else {\n this.removedPhotosStatusTarget.textContent = \"\"\n this.removedPhotosStatusTarget.classList.add(\"hide\")\n }\n }\n\n numDeletedPhotos() {\n return this.element.querySelectorAll('.asset-photo.hide').length\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n\n connect() {\n // Scroll to target element where the controller is connected with buffer of 150px\n let scrollPosition = this.element.offsetTop + 150\n window.scrollTo({\n top: scrollPosition,\n behavior: \"smooth\",\n })\n }\n}","import { Controller } from \"@hotwired/stimulus\"\nimport { find } from \"lodash-es\"\n\nexport default class extends Controller {\n static targets = [\"selectedEmail\"]\n static values = {\n emails: Array,\n category: String,\n location: String\n }\n\n selectLocation(event) {\n event.preventDefault()\n\n this.locationValue = event.currentTarget.value\n this.setCurrentEmail()\n }\n\n selectCategory(event) {\n event.preventDefault()\n\n this.categoryValue = event.currentTarget.value\n this.setCurrentEmail()\n }\n\n setCurrentEmail() {\n const emailEntry = find(this.emailsValue, { location: this.locationValue, category: this.categoryValue })\n this.selectedEmailTarget.dataset.clipboardCopyableValue = emailEntry.email\n const emailLink = this.selectedEmailTarget.querySelector('a.email')\n emailLink.textContent = emailEntry.email\n emailLink.href = `mailto:${emailEntry.email}`\n }\n\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n toggleFollowUp(e) {\n e.preventDefault();\n const attachment = e.currentTarget.parentElement.querySelector('.attachments')\n attachment.classList.remove('hide')\n attachment.querySelector('.add-another-action-point').click()\n e.currentTarget.style.display = 'none'\n }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [\"format\", \"form\", \"toggle\", \"cardToggle\", \"listToggle\"]\n \n connect () {\n this.setActiveFormat();\n }\n\n toggle(e) {\n const clickedElement = e.target;\n \n if (!clickedElement.classList.contains(\"active\")) {\n this.toggleTargets.forEach(element => element.classList.remove(\"active\"));\n \n clickedElement.classList.add(\"active\");\n \n if (clickedElement.classList.contains(\"fa-th\")) {\n this.formatTarget.value = \"card\";\n } else if (clickedElement.classList.contains(\"fa-list\")) {\n this.formatTarget.value = \"list\";\n }\n \n this.formTarget.requestSubmit();\n }\n }\n\n setActiveFormat() {\n const url = new URL(window.location.href);\n const formatParam = url.searchParams.get(\"format\");\n\n if (formatParam == \"list\") {\n this.listToggleTarget.classList.add(\"active\")\n } else {\n this.cardToggleTarget.classList.add(\"active\")\n }\n }\n\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"preview\", \"spinner\"];\n\n connect() {\n document.addEventListener(\"DOMContentLoaded\", this.previewLoaded.bind(this));\n }\n\n previewLoaded() {\n this.spinnerTarget.classList.add('hide');\n this.previewTargets.forEach((preview) => {\n preview.classList.remove('hide');\n })\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { get } from 'lodash-es'\n\nexport default class extends Controller {\n\n static targets = [\"input\", \"display\", \"reset\"]\n\n onSelect(e) {\n e.preventDefault()\n\n const contractJson = get(e, 'currentTarget.dataset.contract', '')\n if (contractJson.length == 0) {\n console.error('No contract data detected')\n } else {\n const contractData = JSON.parse(contractJson)\n this.fireCustomEvent(contractData)\n\n $(this.element).foundation('reveal', 'close')\n }\n }\n\n reset(e) {\n if (this.hasResetTarget) {\n this.resetTarget.classList.add('hide')\n }\n this.fireCustomEvent({ id: '', name: 'No contract selected' })\n }\n\n fireCustomEvent(contractData) {\n window.dispatchEvent(new CustomEvent('contract-selected', { detail: { contract: contractData } }))\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = ['otherOptions', 'enableAssets', 'selector'];\n\n connect() {\n this.updateFormBasedOnState();\n }\n\n select(e) {\n this.updateFormBasedOnState();\n }\n\n updateFormBasedOnState() {\n if (!this.enableAssetsChecked() || this.selectAllChecked()) {\n this.updateFormSections();\n this.hideOtherOptions();\n } else {\n this.updateFormSections();\n this.showOtherOptions();\n }\n }\n\n showOtherOptions() {\n this.show(this.otherOptionsTarget, true);\n }\n\n hideOtherOptions() {\n this.show(this.otherOptionsTarget, false);\n }\n\n updateFormSections() {\n const event = new CustomEvent('helpdeskCategories:change');\n document.dispatchEvent(event);\n }\n\n // Getters for child controllers\n enableAssetsChecked() {\n return this.enableAssetsTarget.checked;\n }\n\n selectAllChecked() {\n return (this.enableAssetsChecked() && this.selectorTarget.checked);\n }\n\n show(element, shouldShow) {\n element.style.display = shouldShow ? 'block' : 'none';\n }\n}\n","import SortableController from \"../../shared/sortable_controller\"\n\nexport default class extends SortableController {\n static values = { paging: Object, loaded: Array }\n static targets = [\"pagination\", \"loading\", \"asyncContainer\"]\n\n connect() {\n this.setPageLoaded(1)\n window.addEventListener(\"turbo:frame-render\", this.loadPageFrame.bind(this))\n }\n\n loadPageFrame(event) {\n const evtTargetId = event.target.getAttribute('id')\n if (!evtTargetId.startsWith('metrics-page')) {\n return\n }\n\n this.setPageLoaded(event.target.dataset.page)\n }\n\n setPageLoaded(page) {\n let loadedPages = this.loadedValue || []\n loadedPages.push(page)\n this.loadedValue = loadedPages\n if (this.loadedValue.length == this.pagingValue.total_pages) {\n this.loadContent()\n }\n }\n\n loadContent() {\n // move all the loaded pages to the content div\n let container\n for (let page = 1; page <= this.pagingValue.total_pages; page++) {\n container = this.asyncContainerTarget.querySelector(`#metrics-page-${page}`)\n this.contentTarget.append(...container.childNodes)\n }\n this.loadingTarget.classList.add(\"hide\")\n }\n}\n","import { BaseController } from 'stimulus-library';\n\nexport default class extends BaseController {\n static values = {\n url: String,\n };\n static targets = ['location', 'zone', 'zonesList'];\n\n initialize() {\n this.locationChangedHandler = this.locationChangedHandler.bind(this);\n }\n\n connect() {\n this.locationTarget.addEventListener('change', this.locationChangedHandler);\n this.locationChangedHandler();\n }\n\n disconnect() {\n this.locationTarget.addEventListener('change', this.locationChangedHandler);\n }\n\n locationChangedHandler() {\n this.updateLocationZones();\n this.locationChanged();\n }\n\n async updateLocationZones() {\n if (this.locationTarget.value == '' || !this.hasZoneTarget || !this.hasZonesListTarget) {\n return;\n }\n\n const zonesData = JSON.parse(this.zonesListTarget.innerHTML);\n\n let zoneOptions = zonesData[this.locationTarget.value];\n if (zoneOptions) {\n this.zoneTarget.innerHTML = zoneOptions;\n }\n }\n\n locationChanged() {\n document.dispatchEvent(new CustomEvent('location:changed', {\n detail: { locationId: this.location(), locationZoneId: this.zone() }\n }));\n }\n\n locationZoneChanged() {\n document.dispatchEvent(new CustomEvent('locationZone:changed', {\n detail: { locationId: this.location(), locationZoneId: this.zone() }\n }));\n }\n\n location() {\n if (this.hasLocationTarget) {\n return this.locationTarget.value;\n }\n\n return '';\n }\n\n zone() {\n if (this.hasZoneTarget) {\n return this.zoneTarget.value;\n }\n\n return '';\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n connect() {\n setTimeout(this.resetErrors.bind(this), 3000)\n }\n\n resetErrors() {\n this.element.classList.remove(\"error\")\n this.element.querySelectorAll(\"button.error\").forEach(function (el) {\n el.classList.remove(\"error\")\n })\n }\n}","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = ['input', 'rootInput'];\n\n connect() {\n // Create pills for pre-checked inputs\n if (this.hasInputTarget && this.checkForNoActiveCheckboxes()) {\n this.inputTargets.forEach((input) => {\n if (input.checked) {\n this.createPillElement(input.getAttribute(\"data-name\"), input.id, input.getAttribute(\"data-type\"))\n }\n });\n }\n }\n\n toggleItem(e) {\n e.preventDefault();\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 if (e.currentTarget.querySelector(\"input\") == this.rootInputTarget) {\n // If root input is uncheck -> check root input and uncheck all other inputs\n if (!input.checked) {\n input.checked = !input.checked;\n this.inputTargets.forEach(item => {\n item.checked = false\n });\n }\n\n this.resetFilterGroup(input)\n\n } else {\n input.checked = !input.checked;\n \n // Uncheck root input if checked\n if (this.rootInputTarget.checked) {\n this.rootInputTarget.checked = false\n } else {\n this.checkForNoActiveCheckboxes();\n }\n \n this.checkForPillExistance(input)\n }\n\n this.submitForm();\n }\n\n resetFilterGroup(input) {\n const type = input.getAttribute(\"data-type\")\n const activePills = document.querySelectorAll(`.insights-dataset__pill[data-type='${type}']`)\n \n if (activePills) {\n activePills.forEach(pill => {pill.click()});\n }\n }\n\n checkForPillExistance(input) {\n const pill = document.querySelector(`[data-id=${input.id}]`)\n if (input.checked === true && !pill) {\n this.createPillElement(input.getAttribute(\"data-name\"), input.id, input.getAttribute(\"data-type\"))\n } else {\n pill.remove();\n }\n }\n\n createPillElement(name, id, type){\n const parentDiv = document.querySelector('.insights-dataset__pills');\n \n const pillDiv = document.createElement('div');\n pillDiv.className = 'insights-dataset__pill';\n pillDiv.setAttribute('data-action', 'click->training--reporting-selected-filters#removeItem');\n pillDiv.setAttribute('data-id', id);\n pillDiv.setAttribute('data-type', type);\n\n const titleDiv = document.createElement('div');\n\n titleDiv.className = 'insights-dataset__pill-title';\n titleDiv.textContent = name;\n\n const icon = document.createElement('i');\n icon.className = 'fa fa-times';\n\n pillDiv.appendChild(titleDiv);\n pillDiv.appendChild(icon);\n\n parentDiv.appendChild(pillDiv);\n }\n\n \n // if no inputs are checked, check the root input\n checkForNoActiveCheckboxes() {\n let isChecked = false;\n\n for (let i = 0; i < this.inputTargets.length; i++) {\n if (this.inputTargets[i].checked) {\n isChecked = true;\n break;\n }\n }\n\n if (!isChecked) {\n this.rootInputTarget.checked = true\n }\n\n return isChecked\n }\n\n\n submitForm() {\n document.getElementById(\"filter-form\").requestSubmit();\n }\n}\n","import AutoSubmitFormController from '../../shared/auto_submit_form_controller'\nimport { split, get } from 'lodash-es'\n\nexport default class extends AutoSubmitFormController {\n\n static targets = ['categoryTypeInput', 'locationInput']\n\n handler(e) {\n this.parseCategoryTypeSelection()\n this.setFormAction()\n\n // disable any empty or hidden previously expanded, now hidden elements\n this.element.querySelectorAll('input.expandable[style*=\"display:none\"]').forEach(elem => elem.setAttribute('disabled', 'disabled'))\n\n super.handler(e)\n }\n\n parseCategoryTypeSelection() {\n if (!this.hasCategoryTypeInputTarget) {\n return false\n }\n\n let categoryId, assetTypeId\n const splits = split(this.categoryTypeInputTarget.value, ':', 2)\n categoryId = get(splits, '[0]', '')\n assetTypeId = get(splits, '[1]', '')\n\n const categoryInput = this.element.querySelector('input[name=\"category_id\"]')\n if (categoryInput) {\n categoryInput.value = categoryId\n }\n\n const typeInput = this.element.querySelector('input[name=\"asset_type_id\"]')\n if (typeInput) {\n typeInput.value = assetTypeId\n }\n }\n\n setFormAction() {\n if (!this.hasLocationInputTarget) {\n return false\n }\n\n let locationId = this.locationInputTarget.value\n let formPath = this.element.getAttribute('action')\n let filterPath = formPath.match(/.*\\/asset-register/)[0]\n if (locationId != '') {\n filterPath += '/' + locationId\n }\n\n if (formPath.endsWith('/disposed')) {\n filterPath += \"/disposed\"\n }\n\n this.element.setAttribute('action', filterPath)\n }\n\n}\n","import { Controller } from '@hotwired/stimulus'\nimport { get } from 'lodash-es'\n\nexport default class extends Controller {\n static values = {\n url: String\n }\n\n static targets = ['frame']\n\n onChange(e) {\n e.preventDefault()\n if (!this.hasFrameTarget) {\n console.error('unable to refresh dataset fields')\n return false\n }\n\n const regex = /.*\\[(?[a-z_]+)\\]/\n let params = new URLSearchParams()\n let name, value, matches\n this.element.querySelectorAll('.tile-dataset-input').forEach((elem) => {\n if (elem.type == 'checkbox' && elem.checked == false) {\n return\n } else {\n matches = elem.getAttribute('name').match(regex)\n name = get(matches, 'groups.name')\n value = elem.value\n \n params.set(name, value)\n }\n })\n\n this.frameTarget.setAttribute('src', this.urlValue + \"?\" + params)\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\nimport Muuri from \"muuri\";\n\nexport default class extends Controller {\n static targets = [\"column\"];\n\n connect() {\n const _this = this;\n var dragContainer = document.querySelector(\".drag-container\");\n var columnGrids = [];\n var boardGrid;\n var initialColumn;\n\n // Initialize the column grids so we can drag those items around.\n this.columnTargets.forEach(function (container) {\n var grid = new Muuri(container, {\n items: \".climate-board-item\",\n dragEnabled: true,\n dragSort: function () {\n return columnGrids;\n },\n dragContainer: dragContainer,\n dragAutoScroll: {\n targets: (item) => {\n return [\n { element: window, priority: 0 },\n { element: item.getGrid().getElement().parentNode, priority: 1 },\n ];\n },\n },\n dragStartPredicate: {\n delay: 50,\n distance: 50\n },\n dragPlaceholder: {\n enabled: true,\n createElement: (item) => item.getElement().cloneNode(true),\n },\n })\n .on(\"dragInit\", function (item) {\n item.getElement().style.width = item.getWidth() + \"px\";\n item.getElement().style.height = item.getHeight() + \"px\";\n })\n .on(\"dragStart\", function (item) {\n initialColumn = item.getElement().parentNode;\n })\n .on(\"dragReleaseEnd\", function (item) {\n item.getElement().style.width = \"\";\n item.getElement().style.height = \"\";\n item.getGrid().refreshItems([item]);\n })\n .on(\"layoutStart\", function () {\n boardGrid.refreshItems().layout();\n _this.emptyColumn(grid);\n })\n .on(\"dragEnd\", function (item) {\n const grid = item.getGrid();\n const el = item._element;\n const oldStatusValue = el.querySelector(\"#project_item_status\");\n const oldPositionValue = Number(\n el.querySelector(\"#project_item_board_position\").value\n );\n const newPositionValue =\n Number(Array.from(grid.getItems()).indexOf(item)) + 1; // 0 indexed array\n const newStatusValue = grid._element.getAttribute(\"data-id\");\n\n if (\n newStatusValue != oldStatusValue ||\n newPositionValue != oldPositionValue\n ) {\n _this.updateItem(el, newStatusValue, newPositionValue);\n }\n });\n\n columnGrids.push(grid);\n });\n\n // Init board grid so we cannot drag those columns around.\n boardGrid = new Muuri(\".climate-board\", {\n dragEnabled: false,\n });\n }\n\n updateItem(item, statusValue, positionValue) {\n const form = item.querySelector(\"form\");\n const positionInput = item.querySelector(\".board-item-position\");\n const statusInput = item.querySelector(\".board-item-status\");\n\n positionInput.value = positionValue;\n statusInput.value = statusValue;\n\n form.requestSubmit();\n }\n\n emptyColumn(grid) {\n const items = grid.getItems();\n if (items.length > 0) {\n grid.getElement().classList.remove(\"no-items\");\n } else {\n grid.getElement().classList.add(\"no-items\");\n }\n\n this.updateItemsNumber(grid.getElement(), items.length)\n }\n\n updateItemsNumber(grid, count) {\n const container = grid.closest(\".climate-board-column-container\");\n const statusElement = container.querySelector(\".climate-board-column-header__status\")\n statusElement.textContent = count\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { get } from 'lodash-es'\n\nexport default class extends Controller {\n\n static targets = [\"input\", \"display\", \"reset\"]\n\n contractSelected(e) {\n e.preventDefault()\n\n const selectedContractId = get(e, 'detail.contract.id')\n if (this.hasInputTarget) {\n this.inputTarget.value = selectedContractId\n }\n if (this.hasDisplayTarget) {\n this.displayTarget.textContent = get(e, 'detail.contract.name')\n }\n\n if (this.hasResetTarget) {\n if (selectedContractId) {\n this.resetTarget.classList.remove('hide')\n } else {\n this.resetTarget.classList.add('hide')\n }\n }\n }\n\n reset(e) {\n if (this.hasResetTarget) {\n this.resetTarget.classList.add('hide')\n }\n window.dispatchEvent(new CustomEvent('contract-selected', { detail: { contract: { id: '', name: 'No contract selected' } } }))\n }\n}\n","import { filter } from 'lodash-es'\nimport { CheckboxSelectAllController } from 'stimulus-library'\n\nexport default class extends CheckboxSelectAllController {\n\n static targets = ['total']\n\n updateTotal() {\n const totalChecked = filter(this.checkboxTargets, { checked: true }).length\n this.totalTarget.textContent = totalChecked\n }\n\n _toggle(e) {\n super._toggle(e)\n\n this.updateTotal()\n }\n\n}\n","import { Controller } from \"stimulus\"\nimport { debounce, includes } from \"lodash\"\n\nexport default class extends Controller {\n static targets = [\"field\", \"results\", \"selectedList\", \"selectedHeader\", \"hiddenField\"]\n static values = { autocompleteUrl: String }\n\n connect() {\n this.selectedItems = []\n this.highlightedIndex = -1\n this.resultsTarget.style.display = 'none'\n this.selectedHeaderTarget.style.display = 'none'\n this.debouncedFetchResults = debounce(this.fetchResults.bind(this), 300)\n this.fieldTarget.addEventListener('input', this.onInput.bind(this))\n this.fieldTarget.addEventListener('keydown', this.onKeyDown.bind(this))\n this.populateExistingSelections()\n }\n\n populateExistingSelections() {\n const cachedItems = this.hiddenFieldTarget.value\n if (cachedItems) {\n const items = JSON.parse(cachedItems)\n items.forEach(item => {\n this.addItem(item)\n })\n this.hiddenFieldTarget.value = ''\n }\n }\n\n onInput(event) {\n const term = event.target.value\n if (term.length > 0) {\n this.debouncedFetchResults(term)\n } else {\n this.clearResults()\n }\n }\n\n fetchResults(term) {\n const separator = this.autocompleteUrlValue.includes('?') ? '&' : '?'\n fetch(`${this.autocompleteUrlValue}${separator}q=${term}`)\n .then(response => response.json())\n .then(data => this.showResults(data))\n }\n\n onKeyDown(event) {\n if (event.key === 'ArrowDown') {\n this.highlightNext()\n } else if (event.key === 'ArrowUp') {\n this.highlightPrevious()\n } else if (event.key === 'Enter') {\n event.preventDefault()\n this.selectHighlighted()\n }\n }\n\n showResults(items) {\n this.clearResults()\n this.positionResults()\n\n this.highlightedItems = []\n items.forEach((item, index) => {\n const listItem = document.createElement('li')\n const link = document.createElement('a')\n link.tabIndex = -1\n link.dataset.index = index\n link.innerHTML = `${this.getItemIcon(item.type)} ${item.label}`\n if (item.type !== 'Error' && item.type !== 'Nothing') {\n link.addEventListener('click', () => this.addItem(item))\n link.addEventListener('mouseover', () => this.highlightItem(index))\n }\n listItem.appendChild(link)\n this.resultsTarget.appendChild(listItem)\n this.highlightedItems[index] = item\n })\n }\n\n positionResults() {\n this.resultsTarget.style.display = 'block'\n this.resultsTarget.style.top = `${this.fieldTarget.offsetTop + this.fieldTarget.offsetHeight}px`\n this.resultsTarget.style.left = `${this.fieldTarget.offsetLeft}px`\n this.resultsTarget.style.width = `${this.fieldTarget.offsetWidth}px`\n }\n\n clearResults() {\n this.resultsTarget.innerHTML = ''\n this.resultsTarget.style.display = 'none'\n this.highlightedIndex = -1\n }\n\n clearErrors() {\n const parentDiv = this.fieldTarget.parentElement\n parentDiv.classList.remove('error')\n const errorDiv = parentDiv.querySelector('small.error')\n if (errorDiv) {\n errorDiv.remove()\n }\n }\n\n highlightNext() {\n if (this.highlightedIndex < this.resultsTarget.children.length - 1) {\n this.highlightItem(this.highlightedIndex + 1)\n }\n }\n\n highlightPrevious() {\n if (this.highlightedIndex > 0) {\n this.highlightItem(this.highlightedIndex - 1)\n }\n }\n\n highlightItem(index) {\n if (this.highlightedIndex >= 0) {\n this.resultsTarget.children[this.highlightedIndex].classList.remove('highlighted')\n }\n this.highlightedIndex = index\n this.resultsTarget.children[this.highlightedIndex].classList.add('highlighted')\n }\n\n selectHighlighted() {\n if (this.highlightedIndex >= 0) {\n const itemIndex = this.resultsTarget.children[this.highlightedIndex].querySelector('a').dataset.index\n const item = this.highlightedItems[itemIndex]\n this.addItem(item)\n }\n }\n\n addItem(item) {\n if (includes(this.selectedItems, item.value)) {\n console.log(`selected items already includes ${item.value}`)\n // TODO highlight animation on the selected entry\n } else {\n const recipientDiv = document.createElement('div')\n recipientDiv.classList.add('recipient', item.type.toLowerCase())\n recipientDiv.innerHTML = `\n ${item.label}\n \n components--recipients-selector#removeItem\" data-value=\"${item.value}\">\n `\n this.selectedListTarget.appendChild(recipientDiv)\n this.selectedItems.push(item.value)\n }\n this.clearResults()\n this.fieldTarget.value = ''\n this.fieldTarget.focus()\n this.clearErrors()\n\n this.updateSelectedHeader()\n }\n\n removeItem(event) {\n const value = event.target.dataset.value\n this.selectedItems = this.selectedItems.filter(item => item !== value)\n event.target.closest('.recipient').remove()\n this.updateSelectedHeader()\n }\n\n updateSelectedHeader() {\n if (this.selectedItems.length > 0) {\n this.selectedHeaderTarget.style.display = 'block'\n } else {\n this.selectedHeaderTarget.style.display = 'none'\n }\n }\n\n getItemIcon(type) {\n switch (type) {\n case 'User':\n return ' '\n case 'Group':\n return ' '\n case 'Error':\n return ' '\n case 'Nothing':\n return ' '\n default:\n return ''\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport { get, clone, replace } from 'lodash-es'\n\nexport default class extends Controller {\n\n static values = {\n modalId: String,\n redirectPath: String\n }\n\n onSelect(e) {\n e.preventDefault()\n\n const locationJson = get(e, 'currentTarget.dataset.location', '')\n if (locationJson.length == 0) {\n console.error('No location data detected')\n } else {\n const locationData = JSON.parse(locationJson)\n if (this.hasRedirectPathValue) {\n this.redirectTo(locationData)\n } else {\n this.fireCustomEvent(locationData)\n }\n }\n\n $(this.element).foundation('reveal', 'close')\n }\n\n redirectTo(locationData) {\n let redirect = clone(this.redirectPathValue)\n const replacementId = get(locationData, 'scoped_id', '')\n if (locationData.scoped_id) {\n redirect = replace(redirect, ':location_id', replacementId)\n } else {\n redirect = replace(redirect, '/:location_id', replacementId)\n }\n let redirectUrl = new URL(location.origin + redirect)\n let redirectParams = new URLSearchParams(redirectUrl.search)\n if (redirectParams.has('location_id')) {\n redirectParams.set('location_id', replacementId)\n redirectUrl.search = redirectParams\n }\n window.location.href = redirectUrl.toString()\n }\n\n fireCustomEvent(locationData) {\n window.dispatchEvent(new CustomEvent('location-selected', { detail: { modal_id: this.element.getAttribute('id'), location: locationData } }))\n }\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n\n assetSelected() {\n this.element.requestSubmit()\n }\n\n}\n","import { Controller } from \"stimulus\"\nimport Muuri from \"muuri\"\n\nexport default class extends Controller {\n static get classes() {\n return ['hide', 'loaded']\n }\n\n static get targets() {\n return ['editButton', 'filter', 'search', 'tiles', 'noContent']\n }\n\n static get values() {\n return { drag: false, layouts: [], searchField: '', filterField: '' }\n }\n\n connect() {\n let _this = this\n this.grid = new Muuri('.insights-grid', {\n dragEnabled: true,\n fillGaps: false,\n dragStartPredicate: function (item, event) {\n if (_this.dragValue === true) {\n return Muuri.ItemDrag.defaultStartPredicate(item, event);\n } else {\n return undefined;\n }\n }\n });\n\n window.addEventListener('add-tile-item', (e) => {\n this.addItem(e.detail.newItem);\n })\n\n window.addEventListener('edit-tile-item', (e) => {\n this.editItem(e.detail.itemId);\n })\n\n window.addEventListener('turbo:remove', (e) => {\n this.removeItem(e)\n });\n\n this.grid.layout(true);\n if (!this.tilesTarget.classList.contains(this.loadedClass)) {\n this.tilesTarget.classList.add(this.loadedClass)\n }\n\n this.updateLayoutValue();\n this.toggleNoContent();\n }\n\n toggleNoContent() {\n if (this.grid.getItems().length == 0 && !this.hasNoContentTarget) {\n const parentElement = document.createElement(\"div\");\n const textNode = document.createElement(\"h5\");\n parentElement.className = 'warning-box insights-no-content'\n parentElement.setAttribute(\"data-grid-target\", \"noContent\");\n textNode.innerHTML = 'No tiles to show. Click \"Add Tile\" to begin populating the dashboard'\n parentElement.appendChild(textNode);\n\n this.tilesTarget.appendChild(parentElement)\n } else if (this.hasNoContentTarget) {\n this.noContentTarget.remove();\n }\n }\n\n updateLayoutValue() {\n this.layoutValue = JSON.parse(this.serializeLayout(this.grid));\n }\n\n addItem(itemId) {\n const newItem = document.querySelector(`[data-id='${itemId}']`);\n\n if (this.grid.getItem(newItem) === null) {\n this.grid.add(newItem, { layout: true, active: true, index: 0 })\n this.updateLayoutValue();\n this.toggleNoContent();\n }\n }\n\n filter(onFinish = null) {\n this.filterFieldValue = this.filterTarget.value\n this.searchFieldValue = this.searchTarget.value.toLowerCase()\n this.grid.filter(\n (item) => {\n const element = item.getElement();\n const isSearchMatch =\n !this.searchFieldValue ||\n (element.getAttribute('data-title') || '').toLowerCase().indexOf(this.searchFieldValue) > -1;\n const isFilterMatch =\n !this.filterFieldValue || this.filterFieldValue === element.getAttribute('data-category');\n return isSearchMatch && isFilterMatch;\n },\n { onFinish: onFinish }\n );\n }\n\n toggleEditLayout() {\n this.dragValue = !this.dragValue\n\n if (this.dragValue === true) {\n this.editButtonTarget.textContent = 'Done'\n this.element.classList.add('editing')\n } else {\n this.editButtonTarget.textContent = 'Edit'\n this.layoutsValue.length = 0\n this.element.classList.remove('editing')\n }\n }\n\n editItem(item) {\n const newItem = document.getElementById(`tile-${item}`)\n const layout = this.serializeLayout();\n const layoutArray = JSON.parse(layout);\n const itemIndex = layoutArray.indexOf(`${item}`)\n this.grid.remove(this.grid.getItems(itemIndex))\n this.grid.add(newItem, { index: itemIndex })\n }\n\n removeItem(e) {\n const item = this.grid.getItem(e.target.closest('.insights-grid-item'))\n\n let confirmed = confirm(\"Are you sure you want to remove the report?\")\n\n if (!confirmed) {\n e.preventDefault();\n return\n }\n\n this.grid.hide([item], {\n onFinish: (item) => {\n this.grid.remove(item, { removeElements: false });\n this.toggleNoContent();\n },\n });\n this.updateLayoutValue();\n }\n\n serializeLayout() {\n let itemIds = this.grid.getItems().map(function (item) {\n return item.getElement().getAttribute('data-id');\n });\n return JSON.stringify(itemIds);\n }\n}","import { Controller } from \"@hotwired/stimulus\"\nimport { find, get } from \"lodash-es\"\n\nexport default class extends Controller {\n\n static targets = ['entry', 'placeholder', 'contentFrame']\n\n static values = {\n refreshUrl: String\n }\n\n entryTargetConnected(target) {\n const status = get(target, 'dataset.status', false)\n if (status) {\n if (status == 'deleted') {\n this.fireAssetRemoved(target)\n this.refreshCurrentContentFrame()\n } else {\n // new item added to the dom after being selected\n // fire an event to trigger the select list to update\n window.dispatchEvent(new CustomEvent('affected-asset-added', { detail: { asset_instance_id: target.dataset.assetInstanceId } }))\n this.togglePlaceholder()\n\n // if status is 'new' do nothing \n if (status == 'created') {\n this.resetContentFrame()\n }\n }\n }\n }\n\n removeEntry(e) {\n const removeTarget = find(this.entryTargets, (targetEl) => {\n return targetEl.contains(e.currentTarget)\n })\n\n if (removeTarget) {\n removeTarget.remove()\n this.fireAssetRemoved(removeTarget)\n }\n\n if (this.entryTargets.length == 0 && this.hasContentFrameTarget) {\n this.refreshCurrentContentFrame()\n } else {\n this.togglePlaceholder()\n }\n }\n\n togglePlaceholder() {\n if (!this.hasPlaceholderTarget) {\n return\n }\n\n if (this.entryTargets.length > 0) {\n this.placeholderTarget.classList.add('hide')\n } else {\n this.placeholderTarget.classList.remove('hide')\n }\n }\n\n resetContentFrame() {\n if (!this.hasContentFrameTarget) {\n console.error('no frame to refresh')\n return\n }\n if (!this.hasRefreshUrlValue) {\n console.error('no refresh url value')\n return\n }\n\n this.contentFrameTarget.setAttribute('src', '')\n this.contentFrameTarget.setAttribute('src', this.refreshUrlValue)\n }\n\n refreshCurrentContentFrame() {\n if (!this.hasContentFrameTarget) {\n console.error('no frame to refresh')\n return\n }\n const src = this.contentFrameTarget.getAttribute('src')\n this.contentFrameTarget.setAttribute('src', '')\n this.contentFrameTarget.setAttribute('src', src)\n }\n\n fireAssetRemoved(removeTarget) {\n const assetInstanceId = removeTarget.dataset.assetInstanceId\n window.dispatchEvent(new CustomEvent('affected-asset-removed', { detail: { asset_instance_id: assetInstanceId } }))\n }\n\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n connect() {\n const event = new CustomEvent('search:results-loaded');\n document.dispatchEvent(event);\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n connect() {\n this.initializeExpectedAnswers();\n this.initializeAttachmentModes();\n }\n\n showAttachments(e) {\n const container = e.currentTarget;\n // if attachment is added and page resets due to validation error the container (.show-attachment toggle) will be null\n if (!container) return;\n\n const attachments = container\n .closest(\".question-container\")\n .querySelector(\".attachments\");\n const showAttachmentsLink = container\n .closest(\".question-container\")\n .querySelector(\".show-attachments\");\n\n if (attachments && showAttachmentsLink) {\n attachments.classList.remove(\"hide\");\n showAttachmentsLink.style.display = \"none\";\n }\n }\n\n hideAttachments(container) {\n const attachments = container.querySelector(\".attachments\");\n const showAttachmentsLink = container.querySelector(\".show-attachments\");\n if (attachments && showAttachmentsLink) {\n attachments.classList.add(\"hide\");\n showAttachmentsLink.style.display = \"\";\n }\n }\n\n hideAttachmentsIfNoUnexpectedAnswers(optionsElement) {\n const answers = Array.from(\n optionsElement.querySelectorAll(\".answer:checked\")\n );\n const allExpectedOrNotApplicable = answers.every((el) => {\n return (\n el.value == el.dataset.expected ||\n el.dataset.notApplicable !== undefined\n );\n });\n\n if (allExpectedOrNotApplicable) {\n this.hideAttachments(optionsElement.closest(\".question-container\"));\n }\n }\n\n setAttachmentMode(e) {\n const link = e.currentTarget;\n const mode = link.dataset.mode;\n const attachmentsContainer = link.closest(\".attachments\");\n\n if (!attachmentsContainer) return;\n\n attachmentsContainer\n .querySelectorAll(\"nav li\")\n .forEach((li) => li.classList.remove(\"active\"));\n attachmentsContainer\n .querySelectorAll(\"section\")\n .forEach((section) => section.classList.add(\"hide\"));\n\n link.closest(\"li\").classList.add(\"active\");\n const modeSection = attachmentsContainer.querySelector(`.add-${mode}`);\n if (modeSection) {\n modeSection.classList.remove(\"hide\");\n }\n }\n\n processExpectedAnswer(answerInput) {\n const options = answerInput.closest(\".answer-options\");\n answerInput\n .closest(\".choice\")\n .parentNode.querySelectorAll(\".choice\")\n .forEach((choice) => choice.classList.remove(\"success\", \"alert\"));\n\n if (answerInput.value == answerInput.dataset.expected) {\n answerInput.closest(\".choice\").classList.add(\"success\");\n this.hideAttachmentsIfNoUnexpectedAnswers(options);\n } else if (answerInput.dataset.notApplicable !== undefined) {\n this.hideAttachmentsIfNoUnexpectedAnswers(options);\n } else {\n answerInput.closest(\".choice\").classList.add(\"alert\");\n this.showAttachments({\n currentTarget: options\n .closest(\".question-container\")\n .querySelector(\".show-attachments\"),\n }); // Simulate event object\n }\n }\n\n initializeExpectedAnswers() {\n this.element.querySelectorAll(\"[data-expected]\").forEach((el) => {\n el.addEventListener(\"change\", (e) => {\n this.processExpectedAnswer(e.currentTarget);\n });\n const isChecked = el.checked;\n if (isChecked) {\n this.processExpectedAnswer(el);\n }\n });\n }\n\n initializeAttachmentModes() {\n this.element\n .querySelectorAll(\".attachments:not(.hide)\")\n .forEach((attachmentsElement) => {\n const firstNavLink = attachmentsElement.querySelector(\n \"nav li a:not([data-blank])\"\n );\n if (firstNavLink) {\n this.setAttachmentMode({ currentTarget: firstNavLink }); // Simulate event object\n }\n });\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport { throttle } from 'lodash-es'\n\nexport default class extends Controller {\n static targets = ['standard', 'sso', 'email', 'continueBtn']\n\n static values = {\n ssoLookupUrl: String\n }\n\n initialize() {\n this.onEmailChange = throttle(this.onEmailChange, 1000).bind(this)\n }\n\n connect() {\n if (this.hasEmailTarget && this.emailTarget.value.length > 0) {\n this.lookupLoginMode(this.emailTarget.value)\n }\n }\n\n onEmailChange(e) {\n const email = this.emailTarget.value\n const regex = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/\n if (email.match(regex)) {\n this.lookupLoginMode(email)\n } else {\n if (email.trim().length == 0) {\n this.resetLogin()\n }\n }\n }\n\n lookupLoginMode(email) {\n const lookupUrl = new URL(this.ssoLookupUrlValue)\n lookupUrl.search = new URLSearchParams({ email: email }).toString()\n fetch(lookupUrl)\n .then((response) => {\n if (response.status === 204) {\n return Promise.resolve(null)\n } else if (!response.ok) {\n throw new Error('Login lookup failed')\n }\n return response.json()\n })\n .then((data) => {\n if (data && data.html) {\n this.showSsoLogin(data.html)\n } else {\n this.showStandardLogin()\n }\n })\n .catch((error) => {\n console.error(error)\n this.showStandardLogin()\n })\n }\n\n showStandardLogin() {\n this.continueBtnTarget.style.display = 'none';\n\n this.ssoTarget.innerHTML = ''\n this.ssoTarget.classList.add('hide')\n this.standardTarget.classList.remove('hide')\n }\n\n showSsoLogin(html) {\n this.continueBtnTarget.style.display = 'none';\n\n this.ssoTarget.innerHTML = html\n this.ssoTarget.classList.remove('hide')\n this.standardTarget.classList.add('hide')\n }\n\n resetLogin() {\n this.ssoTarget.classList.add('hide')\n this.standardTarget.classList.add('hide')\n this.continueBtnTarget.style.display = 'block';\n }\n\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n\n static targets = [\"form\", \"ownerMessage\", \"memberLocations\"]\n\n toggleRoleLocations(event) {\n let formData = new FormData(this.formTarget)\n if (formData.get('membership[role]') == 'owner') {\n this.ownerMessageTarget.classList.remove('hide')\n this.memberLocationsTarget.classList.add('hide')\n } else {\n this.ownerMessageTarget.classList.add('hide')\n this.memberLocationsTarget.classList.remove('hide')\n }\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"link\"];\n\n scrollTo(event) {\n event.preventDefault();\n const linkTarget = this.element.getAttribute(\"href\");\n const element = document.querySelector(linkTarget);\n\n if (element) {\n element.scrollIntoView({ behavior: \"smooth\" });\n }\n }\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static values = {\n assetName: String,\n taskName: String,\n frequency: String,\n fixedDateRenewals: Boolean,\n originalDescription: String\n }\n\n static targets = [\n \"assetNameInput\",\n \"taskNameInput\",\n \"frequencyInput\",\n \"fixedDateRenewalsInput\",\n \"previewContainer\",\n \"preview\"\n ]\n\n connect() {\n this.update()\n }\n\n update() {\n if (this.previewAvailable()) {\n this.previewTarget.textContent = this.previewTaskDescription()\n this.previewTarget.classList.remove('hide')\n if (this.hasPreviewContainerTarget) {\n this.previewContainerTarget.classList.remove('hide')\n }\n } else {\n if (this.originalDescriptionValue.length > 0) {\n this.previewTarget.classList.remove('hide')\n this.previewTarget.textContent = this.originalDescriptionValue\n } else {\n this.previewTarget.classList.add('hide')\n if (this.hasPreviewContainerTarget) {\n this.previewContainerTarget.classList.add('hide')\n }\n }\n }\n }\n\n previewAvailable() {\n return this.previewAssetName().length > 0 && this.previewTaskName().length > 0 && this.previewFrequency().length > 0\n }\n\n previewTaskDescription() {\n let taskDescription\n if (this.previewFixedDateRenewals()) {\n taskDescription = this.previewTaskName()\n } else {\n taskDescription = `${this.previewFrequency()} ${this.previewTaskName()}`\n }\n\n return `${this.previewAssetName()} ${taskDescription}`\n }\n\n previewAssetName() {\n let assetName = this.assetNameValue\n if (this.hasAssetNameInputTarget && this.assetNameInputTarget.selectedOptions) {\n assetName = this.assetNameInputTarget.selectedOptions[0].textContent\n }\n\n return assetName\n }\n\n previewTaskName() {\n let taskName = this.taskNameValue\n if (this.hasTaskNameInputTarget) {\n taskName = this.taskNameInputTarget.value\n }\n\n return taskName\n }\n\n previewFrequency() {\n let frequency = this.frequencyValue\n if (this.hasFrequencyInputTarget && this.frequencyInputTarget.selectedOptions) {\n frequency = this.frequencyInputTarget.selectedOptions[0].textContent\n }\n\n return frequency\n }\n\n previewFixedDateRenewals() {\n let fixedDateRenewals = this.fixedDateRenewalsValue\n if (this.hasFixedDateRenewalsInputTarget) {\n fixedDateRenewals = this.fixedDateRenewalsInputTarget.checked\n }\n\n return fixedDateRenewals\n }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [\"searchInput\", \"clearFilterSection\", \"clearFilterButton\"]\n\n connect() {\n this.checkFilters();\n this.advanceClearFilter();\n\n document.addEventListener('search:results-loaded', this.checkFilters.bind(this));\n }\n\n disconnect() {\n document.removeEventListener('search:results-loaded', this.checkFilters.bind(this));\n }\n\n advanceClearFilter() {\n if (!this.hasClearFilterButtonTarget || !this.hasSearchInputTarget) {\n return;\n }\n\n const url = new URL(this.clearFilterButtonTarget.getAttribute('href'), window.location.origin);\n url.searchParams.set('q', this.searchInputTarget.value);\n\n this.clearFilterButtonTarget.setAttribute('href', url.toString());\n }\n\n checkFilters() {\n if (!this.hasClearFilterSectionTarget) {\n return;\n }\n\n const selects = this.element.querySelectorAll('select');\n let anySelected = Array.from(selects).some(select => select.value !== '');\n\n if (anySelected) {\n this.clearFilterSectionTarget.classList.remove('hide');\n } else {\n this.clearFilterSectionTarget.classList.add('hide');\n }\n }\n\n clearFilters() {\n const selects = this.element.querySelectorAll('select');\n selects.forEach(select => {\n select.value = '';\n });\n }\n}\n","import { Controller } from '@hotwired/stimulus';\n\n// Formats a timestamp in the markup into a human-readable relative time.\n// There is scope to extend this controller to support a format option to\n// make it work in more situations.\nexport default class extends Controller {\n\n static values = { datetime: String }\n\n connect() {\n this.formatDate()\n }\n\n formatDate() {\n const date = moment(this.datetimeValue)\n\n // Current behaviour is to show Today, Yesterday or the day of the week\n // if the date is within the last 5 days.\n\n if (date.isSame(moment(), 'day')) {\n this.element.innerHTML = \"Today at \" + date.format('H:mm')\n }\n else if (date.isSame(moment().subtract(1, 'days'), 'day')) {\n this.element.innerHTML = \"Yesterday at \" + date.format('H:mm')\n }\n else if (date.isAfter(moment().subtract(5, 'days'))) {\n this.element.innerHTML = date.format('dddd [at] H:mm')\n }\n else {\n if (date.year() == moment().year()) {\n this.element.innerHTML = date.format('Do MMM')\n }\n else {\n this.element.innerHTML = date.format('Do MMM YYYY')\n }\n }\n }\n}\n","function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 33185;\nmodule.exports = webpackEmptyContext;","import { Controller } from \"@hotwired/stimulus\"\nexport default class extends Controller {\n static targets = [\"form\", \"listInput\", \"column\"]\n\n connect() {\n this.columnTargets.forEach(column => {\n this.updateItemsNumber(column)\n });\n }\n\n update(e) {\n const el = e.target.closest(\".climate-board-item\");\n const statusValue = e.target.value\n const form = el.querySelector(\".list-item-form\");\n const statusInput = el.querySelector(\".list-item-status\");\n\n statusInput.value = statusValue\n form.requestSubmit();\n }\n\n updateItemsNumber(column) {\n const items = column.querySelectorAll(\".climate-board-item\");\n const container = column.closest(\".climate-board-column-container\");\n const statusElement = container.querySelector(\".climate-board-column-header__status\")\n statusElement.textContent = items.length\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { get } from 'lodash-es'\n\nexport default class extends Controller {\n static targets = ['actions', 'confirmationHint']\n\n onContractChange(e) {\n const contractId = get(e, 'detail.contract.id')\n if (contractId) {\n this.actionsTarget.classList.remove('hide')\n this.confirmationHintTarget.classList.remove('hide')\n } else {\n this.actionsTarget.classList.add('hide')\n this.confirmationHintTarget.classList.add('hide')\n }\n }\n\n reset(e) {\n e.preventDefault()\n\n window.dispatchEvent(new CustomEvent('contract-selected', { detail: { contract: { id: '', name: 'No contract selected' } } }))\n }\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"checkbox\", \"selectedUsers\"]\n\n connect() {\n this.updateButtonState()\n\n document.addEventListener(\"turbo:frame-load\", () => {\n this.updateButtonState();\n })\n }\n\n toggleAll(event) {\n const isChecked = event.target.checked\n this.checkboxTargets.forEach(checkbox => {\n checkbox.checked = isChecked\n this.updateSelectUserButton(checkbox)\n })\n this.updateButtonState()\n }\n\n updateSelectedCount() {\n const selectedUsers = this.checkboxTargets.filter(checkbox => checkbox.checked).length;\n const userText = selectedUsers === 1 ? 'user' : 'users';\n \n this.selectedUsersTarget.textContent = `${selectedUsers} ${userText} selected`;\n } \n\n updateButtonState(e) {\n if (!this.hasCheckboxTarget) {\n return\n }\n\n const checkedBoxes = this.checkboxTargets.filter(checkbox => checkbox.checked)\n const submitButton = this.element.querySelector('input[type=\"submit\"]')\n submitButton.disabled = checkedBoxes.length === 0\n \n if (this.hasSelectedUsersTarget) {\n this.updateSelectedCount();\n }\n\n // prevents updateButtonState call on connect erroring when no event is passed\n if (e) {\n this.updateSelectUserButton(e.target)\n }\n }\n\n submit(event) {\n const checkedBoxes = this.checkboxTargets.filter(checkbox => checkbox.checked)\n if (checkedBoxes.length === 0) {\n event.preventDefault()\n alert(\"Please select at least one user to unassign.\")\n }\n }\n\n updateSelectUserButton(input) {\n const label = input.parentElement\n const button = label.querySelector(\".select-assigned-user\")\n\n if (input.checked) {\n button.textContent = \"Unselect User\"\n button.classList.add(\"selected\")\n } else {\n button.textContent = \"Select User\"\n button.classList.remove(\"selected\")\n }\n }\n}","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"section\"];\n\n connect() {\n if (window.innerWidth < 1024) {\n // On smaller devices, scroll the current navigation button into view\n this.scrollToCurrentSection();\n }\n }\n\n scrollToCurrentSection() {\n const currentSection = this.sectionTargets.find(section =>\n section.classList.contains(\"current\")\n );\n\n if (currentSection) {\n const container = this.element;\n const sectionOffsetLeft = currentSection.offsetLeft;\n const sectionWidth = currentSection.offsetWidth;\n const containerWidth = container.offsetWidth;\n\n const newScrollLeft = sectionOffsetLeft - (containerWidth / 2) + (sectionWidth / 2);\n\n container.scrollTo({\n left: newScrollLeft,\n behavior: \"smooth\"\n });\n }\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"originalElement\", \"spinner\"];\n\n connect() {\n document.addEventListener('search:results-loaded', this.hideSpinner.bind(this));\n }\n\n disconnect() {\n document.removeEventListener('search:results-loaded', this.hideSpinner.bind(this));\n }\n\n revealSpinner() {\n this.spinnerTarget.classList.remove(\"hide\");\n\n if (this.originalElementTargets.length > 0) {\n const lastOriginalElement = this.originalElementTargets[this.originalElementTargets.length - 1];\n lastOriginalElement.classList.add(\"hide\");\n }\n }\n\n hideSpinner() {\n this.spinnerTarget.classList.add(\"hide\");\n\n if (this.originalElementTargets.length > 0) {\n const lastOriginalElement = this.originalElementTargets[this.originalElementTargets.length - 1];\n lastOriginalElement.classList.remove(\"hide\");\n }\n }\n}\n","// This controller holds the logic for the estimate form\nimport { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [\"promo\", \"estimateForm\", \"completedOnMode\", \"datePicker\", \"saveDateButton\", \"taskNeverDone\"]\n\n connect() {\n this.originalButtonText = this.saveDateButtonTarget.value;\n }\n\n showEstimateForm() {\n this.promoTargets.forEach(promo => promo.classList.add('hide'));\n this.estimateFormTargets.forEach(form => form.classList.remove('hide'));\n }\n\n toggleTaskCompletionMode() {\n // Check if calendar should be disabled\n const shouldDisable = this.taskNeverDoneTarget.checked;\n const mode = shouldDisable ? 'asap' : this.completedOnModeTarget.dataset.mode;\n this.completedOnModeTarget.value = mode;\n\n // Update all inputs and the calendar icon\n this.updateInputsAndIconState(shouldDisable);\n\n // Update button text based on the mode\n this.saveDateButtonTarget.value = mode === 'asap' ? \"Schedule ASAP\" : this.originalButtonText;\n }\n\n updateInputsAndIconState(shouldDisable) {\n // Toggle disable the rendered datepicker\n const input = this.datePickerTarget.querySelector('input.datepicker:not([type=\"hidden\"])');\n input.disabled = shouldDisable;\n\n // Add disabled class to icon\n const calendarIcon = this.datePickerTarget.querySelector('.fa-calendar');\n if (calendarIcon) {\n calendarIcon.classList.toggle('disabled', shouldDisable);\n }\n }\n\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n\n scroll(e) {\n let date = e.currentTarget.dataset.date;\n let el = document.getElementById(`date-${date}`)\n if (el) {\n el.scrollIntoView()\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus';\n\nexport default class extends Controller {\n static targets = [\"form\"]\n\n change() {\n this.formTarget.classList.add('pending');\n }\n}\n","import TogglerController from '../../shared/toggler_controller'\n\n// sub-class to get around a toggler nested inside another toggler\nexport default class extends TogglerController {\n}","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n\n static targets = ['contractSelect']\n\n connect() {\n const radio = this.element.querySelector('input[type=radio]:checked')\n this.highlightChoice(radio)\n }\n\n modeSelected(e) {\n this.element.querySelectorAll('label').forEach((elem) => elem.classList.remove('font-weight-bold'))\n const radio = e.target\n this.highlightChoice(radio)\n\n }\n\n highlightChoice(radio) {\n if (radio) {\n radio.closest('label').classList.add('font-weight-bold')\n\n if (radio.value == 'contract') {\n this.contractSelectTarget.disabled = false\n } else {\n this.contractSelectTarget.disabled = true\n }\n }\n }\n}","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n removeLocation(e) {\n const id = e.currentTarget.dataset.id\n const el = document.querySelector(`#location_ids_${Number(id)}`)\n el.click();\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static outlets = ['grid']\n\n static get targets() {\n return ['positionForm', 'positionInput']\n }\n\n connect() {\n this.element.addEventListener('mouseup', this.handleMouseUp.bind(this));\n }\n\n handleMouseUp(event) {\n const itemElement = event.target.closest('.insights-grid-item');\n if (itemElement && this.hasPositionFormTarget && this.hasPositionInputTarget) {\n const itemId = itemElement.dataset.id;\n let oldLayout = this.gridOutlet.layoutValue;\n let oldPosition = oldLayout.indexOf(itemId) + 1;\n let layout = this.gridOutlet.serializeLayout();\n let newPosition = JSON.parse(layout).indexOf(itemId) + 1\n\n if (newPosition != oldPosition) {\n this.positionInputTarget.value = newPosition\n\n this.positionFormTarget.requestSubmit();\n }\n\n }\n }\n}","import { Controller } from \"@hotwired/stimulus\"\nimport { debounce } from \"lodash-es\"\n\nexport default class extends Controller {\n static values = {\n min: Number,\n max: Number,\n warning: String,\n }\n\n static targets = [\"input\", \"warning\"]\n\n initialize() {\n this.warnOutOfRange = debounce(this.warnOutOfRange, 200).bind(this)\n }\n\n connect() {\n this.warnOutOfRange()\n }\n\n warnOutOfRange() {\n if (this.hasInputTarget && this.inputTarget.value.length > 0) {\n this.hideErrors()\n this.setWarningMessage()\n this.showWarnings()\n }\n }\n\n setWarningMessage() {\n let targetVal = this.inputTarget.value\n let outOfRange = false\n if (this.hasMinValue) {\n outOfRange = targetVal < this.minValue\n }\n if (this.hasMaxValue && !outOfRange) {\n outOfRange = targetVal > this.maxValue\n }\n\n if (outOfRange) {\n this.warningValue = this.outOfRangeMessage()\n } else {\n this.warningValue = undefined\n }\n }\n\n showWarnings() {\n if (this.hasWarningValue) {\n this.warningTarget.innerHTML = \"\"\n\n let warningEl\n warningEl = document.createElement(\"div\")\n warningEl.classList.add(\"warning\")\n\n warningEl.innerHTML = this.warningValue\n\n this.warningTarget.appendChild(warningEl)\n } else {\n this.warningTarget.innerHTML = \"\"\n }\n }\n\n hideErrors() {\n this.inputTarget.parentNode.classList.remove(\"error\")\n this.inputTarget.parentNode.querySelectorAll(\"small.error\").forEach(function (error) {\n error.remove()\n })\n }\n\n outOfRangeMessage() {\n if (this.hasMinValue && this.hasMaxValue) {\n return `Expected value between ${this.minValue} and ${this.maxValue}`\n }\n if (this.hasMinValue) {\n return `Expected minimum value ${this.minValue}`\n }\n if (this.hasMaxValue) {\n return `Expected maximum value ${this.maxValue}`\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', 'recordableType']\n static values = {\n refreshUrl: String\n }\n\n refreshForm(e) {\n const submitButton = this.element.querySelector('input[type=submit]')\n if (submitButton) {\n submitButton.classList.textContent = 'Please wait'\n submitButton.setAttribute('disabled', true)\n }\n if (this.hasRefreshUrlValue) {\n this.element.setAttribute('method', 'get')\n this.element.setAttribute('data-turbo-method', 'get')\n this.element.setAttribute('action', this.refreshUrlValue)\n }\n this.element.requestSubmit()\n }\n\n refreshEmission(e) {\n this.refreshForm()\n }\n\n refreshRecordable(e) {\n if (!this.hasRecordableTypeTarget) {\n console.error('unable to update form - no recordable type target found')\n return false\n }\n\n this.recordableTypeTarget.value = ''\n const selectedOpt = get(e.currentTarget, 'selectedOptions[0]')\n if (!selectedOpt) {\n console.error('no recordable option selected')\n return false\n }\n const recordableType = selectedOpt.dataset.recordableType\n this.recordableTypeTarget.value = recordableType\n\n this.refreshForm()\n }\n\n}","import { Controller } from \"@hotwired/stimulus\"\nimport { Chart } from 'chart.js';\nimport { MatrixController, MatrixElement } from 'chartjs-chart-matrix';\n\nChart.register(MatrixController, MatrixElement);\n\nexport default class extends Controller {\n static targets = [\"heatmap\"]\n\n connect() {\n this.showHeatmap()\n }\n\n showHeatmap() {\n\n const endDate = moment(this.element.dataset.end)\n const startDate = moment(this.element.dataset.start)\n\n const heatData = JSON.parse(this.element.dataset.datapoints)\n\n const scales = {\n y: {\n type: 'time',\n offset: true,\n min: '1',\n max: '7',\n time: {\n unit: 'day',\n round: 'day',\n isoWeekday: 1,\n parser: 'i',\n displayFormats: {\n day: 'iiiiii'\n }\n },\n reverse: true,\n position: 'left',\n border: {\n display: false\n },\n ticks: {\n maxRotation: 0,\n autoSkip: true,\n padding: 5,\n font: {\n family: 'Quicksand',\n size: 9\n },\n callback: function(value, index, values) {\n const timestamp = value\n const date = new Date(timestamp)\n const day = date.getDay()\n\n if (day === 1) {\n return 'Mon'\n } else if (day === 3) {\n return 'Wed'\n } else if (day === 5) {\n return 'Fri'\n } else if (day === 0) {\n return 'Sun'\n } else {\n return ''\n }\n }\n },\n grid: {\n display: false,\n drawBorder: false,\n tickLength: 0\n }\n },\n x: {\n type: 'time',\n position: 'top',\n min: startDate.toDate(),\n max: endDate.toDate(),\n offset: true,\n time: {\n unit: 'week',\n round: 'week',\n isoWeekday: 1,\n displayFormats: {\n week: 'MMM'\n }\n },\n border: {\n display: false\n },\n ticks: {\n maxRotation: 0,\n autoSkip: true,\n font: {\n family: 'Quicksand',\n size: 9\n },\n padding: 5,\n callback: function(value, index, values) {\n const timestamp = value\n const currentDate = new Date(timestamp)\n\n const oneWeek = 604800000\n const previousDate = new Date(timestamp - oneWeek)\n\n const currentDateMonth = currentDate.getMonth()\n const previousDateMonth = previousDate.getMonth()\n\n const stringMonth = currentDate.toLocaleString('default', { month: 'short' })\n\n if (currentDateMonth !== previousDateMonth ) {\n return stringMonth.toUpperCase()\n } else {\n return\n }\n }\n },\n grid: {\n display: false,\n drawBorder: false,\n tickLength: 0,\n }\n }\n }\n\n const options = {\n animation: false,\n aspectRatio: 5.5,\n maintainAspectRatio: true,\n plugins: {\n legend: false,\n tooltip: {\n displayColors: false,\n bodyFont: {\n family: 'Quicksand'\n },\n callbacks: {\n title() {\n return ''\n },\n label(context) {\n const v = context.dataset.data[context.dataIndex]\n\n const date = new Date(v.d)\n const options = { day: 'numeric', month: 'short', year: 'numeric' };\n const formattedDate = date.toLocaleDateString('en-GB', options);\n\n return [v.v + \" on \" + formattedDate]\n }\n }\n },\n },\n scales: scales,\n layout: {\n padding: {\n top: 10\n }\n }\n }\n\n function getDataPointColor(c) {\n const value = c.dataset.data[c.dataIndex].v\n const alpha = (10 + value * 2) / 30\n\n if (value === 0) {\n return `rgb(219,223,224)`\n } else {\n return `rgba(84,82,146,${alpha})`\n }\n }\n\n new Chart(this.heatmapTarget, {\n type: 'matrix',\n data: {\n datasets: [{\n label: 'Task activity report matrix',\n data: heatData,\n backgroundColor: getDataPointColor,\n borderRadius: 1,\n borderWidth: 0,\n hoverBackgroundColor: getDataPointColor,\n hoverBorderColor: getDataPointColor,\n width(c) {\n const a = c.chart.chartArea || {}\n return ((a.right - a.left) / 53 - 1) - 1\n },\n height(c) {\n const a = c.chart.chartArea || {}\n return ((a.right - a.left) / 53 - 1) - 1\n }\n }]\n },\n options: options\n })\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = ['locationInput', 'otherLocationInput', 'zoneInput'];\n\n connect() {\n this.updateOtherLocationInputVisibility({ target: this.locationInputTarget });\n }\n\n show(target, show = true) {\n if (show) {\n target.classList.remove('hide');\n } else {\n target.classList.add('hide');\n }\n }\n\n // If the Other Location option has been selected\n updateOtherLocationInputVisibility(e) {\n const hasSelectedBlank = e?.target?.value == \"\"\n const hasSelectedOther = (e?.target?.value == \"\" && e?.target?.selectedIndex != 0);\n\n this.show(this.otherLocationInputTarget.closest('div.wrapper'), hasSelectedOther);\n\n if (this.hasZoneInputTarget) {\n this.show(this.zoneInputTarget.closest('div.wrapper'), !hasSelectedBlank);\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\nimport { debounce, includes, get } from \"lodash-es\";\n\nexport default class extends Controller {\n\n\tstatic get targets() {\n\t\treturn [\n\t\t\t\"accidentTypeDiv\", \"accidentTypeInput\",\n\t\t\t\"affectedPersonAddressDiv\", \"affectedPersonAddressInput\",\n\t\t\t\"affectedPersonNameDiv\", \"affectedPersonNameInput\",\n\t\t\t\"affectedPersonOccupationDiv\", \"affectedPersonOccupationInput\",\n\t\t\t\"affectedPersonTypeDiv\", \"affectedPersonTypeInput\",\n\t\t\t\"affectedPersonContactDiv\", \"affectedPersonContactInput\",\n\t\t\t\"affectedPersonOutcomeDiv\", \"affectedPersonOutcomeInput\",\n\t\t\t\"affectedPersonExternalInput\",\n\t\t\t\"contactedNextOfKinDiv\", \"contactedNextOfKinInput\",\n\t\t\t\"nextOfKinDetailsDiv\", \"nextOfKinDetailsInput\",\n\t\t\t\"contractorInvolvedDiv\", \"contractorInvolvedInput\",\n\t\t\t\"descriptionDiv\", \"descriptionInput\",\n\t\t\t\"injuryBodyPartDiv\", \"injuryBodyPartInput\",\n\t\t\t\"injuryDescriptionDiv\", \"injuryDescriptionInput\",\n\t\t\t\"injuryTypeDiv\", \"injuryTypeInput\",\n\t\t\t\"injuryOccurredDiv\", \"injuryOccurredInput\",\n\t\t\t\"peopleAffectedDiv\", \"peopleAffectedInput\",\n\t\t\t\"severityDiv\", \"severityInput\",\n\t\t\t\"treatmentDescriptionDiv\", \"treatmentDescriptionInput\",\n\t\t\t\"treatmentTypeDiv\", \"treatmentTypeInput\",\n\n\t\t\t// Blocks\n\t\t\t'affectedPersonsFormBlock',\n\t\t\t'injuryFormBlock',\n\t\t\t'implicationsFormBlock',\n\n\t\t\t// Autocomplete\n\t\t\t'autocompleteResults'\n\t\t];\n\t}\n\n\tstatic values = {\n\t\t'staffAutocompleteUrl': String,\n\t\t'pupilAutocompleteUrl': String\n\t}\n\n\tconnect() {\n\t\tthis.update_field_visibility();\n\t}\n\n\n\tdomShow(e) {\n\t\te.classList.add('visible');\n\t\te.classList.remove('hidden');\n\t}\n\n\tdomHide(e) {\n\t\te.classList.add('hidden');\n\t\te.classList.remove('visible');\n\t}\n\n\tcapitalizeFirstLetter(string) {\n\t\treturn string.charAt(0).toUpperCase() + string.slice(1);\n\t}\n\n\thide_fields(targets) {\n\t\tlet self = this;\n\t\ttargets.forEach(e => {\n\t\t\tif (self[\"has\" + self.capitalizeFirstLetter(e) + \"DivTarget\"]) {\n\t\t\t\tself.domHide(self[e + \"DivTarget\"]);\n\t\t\t\t// Fields that can't be seen, shouldn't be submitted\n\t\t\t\tif (self[e + \"InputTargets\"].length > 1) {\n\t\t\t\t\tif (self[e + \"InputTargets\"].length === 2) {\n\t\t\t\t\t\t// Put yes/no questions back to no\n\t\t\t\t\t\tself[e + \"InputTargets\"].forEach(e => {\n\t\t\t\t\t\t\te.checked = !(e.value == 'true');\n\t\t\t\t\t\t})\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// Deselect answers to multiple choice questions\n\t\t\t\t\t\tself[e + \"InputTargets\"].forEach(e => e.checked = false)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// Text boxes are reset\n\t\t\t\t\tself[e + \"InputTarget\"].value = '';\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tshow_fields(targets) {\n\t\tlet self = this;\n\t\ttargets.forEach((e) => {\n\t\t\tif (self[\"has\" + self.capitalizeFirstLetter(e) + \"DivTarget\"]) {\n\t\t\t\tself.domShow(self[e + \"DivTarget\"])\n\t\t\t}\n\t\t});\n\t}\n\n\tperson_affected() {\n\t\treturn this.peopleAffectedInputTarget.checked;\n\t}\n\n\taffected_person_type() {\n\t\tlet affectedValue = null, affectedText = null;\n\n\t\tif (!this.person_affected()) {\n\t\t\treturn { value: affectedValue, text: affectedText };\n\t\t}\n\n\t\tthis.affectedPersonTypeInputTargets.some((el) => {\n\t\t\tif (el.checked) {\n\t\t\t\taffectedValue = el.value;\n\t\t\t\taffectedText = el.nextSibling.nodeValue;\n\t\t\t}\n\n\t\t\treturn el.checked;\n\t\t})\n\n\t\treturn { value: affectedValue, text: affectedText };\n\t}\n\n\tupdate_field_visibility() {\n\t\tthis.affectedPersonsVisibility();\n\t\tthis.contractorVisibility();\n\t\tthis.injuryVisibility();\n\t\tthis.implicationsVisibility();\n\t}\n\n\tmutate_field_labels() {\n\t\tconst $occupationLabel = this.affectedPersonOccupationInputTarget.labels[0];\n\t\tlet newLabel = \"Reason for being on site\";\n\n\t\tswitch (this.affected_person_type().text) {\n\t\t\tcase \"Staff member\":\n\t\t\t\tnewLabel = \"Job role\";\n\t\t\t\tbreak;\n\t\t\tcase \"Contractor\":\n\t\t\t\tnewLabel = \"Job role or reason for being on site\";\n\t\t\t\tbreak;\n\t\t\tcase \"Visitor\":\n\t\t\tcase \"General Public\":\n\t\t\t\tnewLabel = \"Reason for being on site\";\n\t\t\t\tbreak;\n\t\t\tcase \"Pupil\":\n\t\t\tcase \"Student\":\n\t\t\t\tnewLabel = \"Year group, form, or class\";\n\t\t\t\tbreak;\n\t\t}\n\t\t$occupationLabel.innerText = newLabel;\n\t}\n\n\tenabledForVisibility(targets, enabledForNames) {\n\t\tlet enabledFors = {}\n\n\t\tenabledForNames.forEach(e => {\n\t\t\tlet datasets = this[e + \"InputTarget\"].dataset[\"enabledFor\"];\n\n\t\t\tif (datasets == undefined) {\n\t\t\t\tenabledFors[e] = []\n\t\t\t} else {\n\t\t\t\tenabledFors[e] = JSON.parse(datasets)\n\t\t\t}\n\t\t});\n\n\t\tlet matchingTargets = Object.entries(enabledFors).filter(([_, v]) => v.includes(this.affected_person_type()?.value)).map((e) => { return e[0] })\n\n\t\treturn {\n\t\t\tvisibleTargets: targets.concat(matchingTargets),\n\t\t\tallTargets: targets.concat(enabledForNames),\n\t\t\tmatchingTargets: matchingTargets,\n\t\t\tmissingTargets: enabledForNames.filter(x => !matchingTargets.includes(x))\n\t\t}\n\t}\n\n\taffectedPersonsVisibility() {\n\n\t\tif (this.person_affected()) {\n\t\t\tthis.show_fields(['affectedPersonType']);\n\t\t\tthis.mutate_field_labels();\n\t\t\tthis.domShow(this.affectedPersonsFormBlockTarget);\n\t\t} else {\n\t\t\tthis.hide_fields(['affectedPersonType']);\n\t\t\tthis.domHide(this.affectedPersonsFormBlockTarget);\n\t\t}\n\n\t\tlet targets = [\n\t\t\t'injuryOccurred',\n\t\t\t'affectedPersonOutcome',\n\t\t\t\"contactedNextOfKin\"\n\t\t];\n\n\t\tlet enabledForNames = [\n\t\t\t'affectedPersonName',\n\t\t\t'affectedPersonAddress',\n\t\t\t'affectedPersonContact',\n\t\t\t'affectedPersonOccupation'\n\t\t]\n\n\t\tlet enabledForTargets = this.enabledForVisibility(targets, enabledForNames);\n\n\t\tif (this.affected_person_type()?.value) {\n\t\t\tthis.domShow(this.injuryFormBlockTarget);\n\t\t\tthis.domShow(this.implicationsFormBlockTarget);\n\t\t\tthis.show_fields(enabledForTargets.visibleTargets);\n\t\t\tthis.show_fields(targets);\n\t\t\tthis.hide_fields(enabledForTargets.missingTargets);\n\t\t} else {\n\t\t\tthis.domHide(this.injuryFormBlockTarget);\n\t\t\tthis.domHide(this.implicationsFormBlockTarget);\n\t\t\tthis.hide_fields(enabledForTargets.allTargets);\n\t\t}\n\t}\n\n\tcontractorVisibility() {\n\t\tlet targets = [\"contractorInvolved\"];\n\t\tif (this.affected_person_type()?.value === 'Contractor') {\n\t\t\tthis.show_fields(targets);\n\t\t} else {\n\t\t\tthis.hide_fields(targets);\n\t\t}\n\t}\n\n\tinjuryVisibility() {\n\t\tlet targets = [\n\t\t\t'injuryBodyPart',\n\t\t\t'injuryDescription',\n\t\t\t'treatmentDescription'\n\t\t];\n\n\t\tlet enabledForNames = [\n\t\t\t'injuryType',\n\t\t\t'treatmentType',\n\t\t]\n\n\t\tlet enabledForTargets = this.enabledForVisibility(targets, enabledForNames);\n\n\t\tif (this.injuryOccurredInputTarget.checked) {\n\t\t\tthis.show_fields(enabledForTargets.visibleTargets);\n\t\t\tthis.show_fields(targets);\n\t\t\tthis.hide_fields(enabledForTargets.missingTargets);\n\t\t} else {\n\t\t\tthis.hide_fields(enabledForTargets.allTargets);\n\t\t}\n\t}\n\n\timplicationsVisibility() {\n\t\tlet targets = [\"nextOfKinDetails\"];\n\t\tif (this.contactedNextOfKinInputTarget.checked) {\n\t\t\tthis.show_fields(targets);\n\t\t} else {\n\t\t\tthis.hide_fields(targets);\n\t\t}\n\t}\n\n\tupdate_field_visibility() {\n\t\tthis.affectedPersonsVisibility();\n\t\tthis.contractorVisibility();\n\t\tthis.injuryVisibility();\n\t\tthis.implicationsVisibility();\n\t\tthis.setupAutocomplete();\n\t}\n\n\t// Autocomplete\n\tsetupAutocomplete() {\n\t\tconst personType = this.affected_person_type().text\n\t\tif (personType === \"Staff member\") {\n\t\t\tthis.affectedPersonsFormBlockTarget.setAttribute('data-autocomplete-url-value', this.staffAutocompleteUrlValue)\n\t\t} else if (personType === \"Pupil\") {\n\t\t\tthis.affectedPersonsFormBlockTarget.setAttribute('data-autocomplete-url-value', this.pupilAutocompleteUrlValue)\n\t\t} else {\n\t\t\tthis.affectedPersonsFormBlockTarget.removeAttribute('data-autocomplete-url-value')\n\t\t}\n\t}\n\n\n}\n","import { Controller } from \"stimulus\";\nimport { throttle } from \"lodash\";\n\nexport default class extends Controller {\n static targets = [ \"form\", \"data\" ]\n static outlets = [ \"video\" ]\n static values = { initialPercentage: { type: Number, default: 0 } }\n\n connect() {\n if (this.hasVideoOutlet) {\n this.setupPlayerListeners();\n }\n }\n \n setupPlayerListeners() {\n this.player = this.videoOutlet.player\n this.player.once('canplay', this.startAtLastWatched.bind(this)); // HTML5 start\n this.player.once('ready', this.startAtLastWatched.bind(this)); // Embedded start\n this.player.on('timeupdate', throttle(this.updateProgress.bind(this), 2000)); // Once every 2 seconds\n this.player.on('ended', this.handleVideoEnd.bind(this));\n }\n\n disconnect() {\n if (this.hasVideoOutlet) {\n this.player.off('timeupdate', this.updateProgress.bind(this));\n }\n }\n\n handleVideoEnd() {\n this.saveProgress(100);\n }\n\n startAtLastWatched() {\n const duration = this.player.duration;\n const lastWatched = this.initialPercentageValue;\n const targetTime = (duration * lastWatched) / 100;\n this.player.currentTime = targetTime;\n }\n\n updateProgress() {\n const currentTime = this.player.currentTime;\n const duration = this.player.duration;\n const progress = (currentTime / duration) * 100;\n this.saveProgress(progress);\n }\n\n saveProgress(percentageWatched) {\n if (this.hasDataTarget) {\n this.dataTarget.value = `{ \"percentage_watched\": ${percentageWatched} }`;\n this.formTarget.requestSubmit();\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { get } from 'lodash-es'\n\nexport default class extends Controller {\n\n static targets = ['gb', 'nonGb']\n\n onChange(e) {\n const countryCode = get(e, 'currentTarget.value')\n if (countryCode == 'GB' || countryCode == '') {\n this.enable(this.gbTargets)\n this.disable(this.nonGbTargets)\n } else {\n this.disable(this.gbTargets)\n this.enable(this.nonGbTargets)\n }\n }\n\n disable(targets) {\n targets.forEach(element => {\n element.classList.add('d-none')\n element.querySelectorAll('input').forEach(elem => {\n elem.disabled = true\n })\n })\n }\n\n enable(targets) {\n targets.forEach(element => {\n element.classList.remove('d-none')\n element.querySelectorAll('input').forEach(elem => {\n elem.disabled = false\n })\n })\n }\n\n}","// Used in only one case - Bulk Uploads\n// Would require a bit of work replacing this so for now have removed the icon causing the issue\n\nimport { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n\n static targets = [\n 'datepicker'\n ]\n connect() {\n this.setDatePicker();\n }\n\n setDatePicker() {\n const dp = $(this.datepickerTarget)\n\n dp.find('input.date').datepicker({\n buttonText: 'Change Date',\n buttonTextOnly: true,\n dateFormat: 'yy-mm-dd',\n showButtonPanel: false,\n showOn: \"button\",\n maxDate: \"+0D\",\n nextText: '',\n prevText: '',\n onSelect: (date) => {\n dp.find('.status').text(moment(date).format('dddd, MMMM Do YYYY'));\n dp.parent().addClass('selected');\n },\n beforeShow: () => {\n $('#ui-datepicker-div').addClass('iam-ui-skin');\n }\n });\n\n let date = $('input', dp).val();\n let formatted_date = 'Not set';\n\n if (date.length > 0) {\n formatted_date = moment(date).format('dddd, MMMM Do YYYY');\n }\n\n // Clear previous appended statuses\n dp.find('span.status').remove();\n\n dp.append('' + formatted_date + '').click(() => {\n $('input', dp).datepicker('show');\n });\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static values = {\n locationCount: Number\n }\n\n static targets = [\n \"resultsContainer\",\n \"toggleButton\",\n \"searchInput\",\n \"sortOrder\",\n \"spinner\"\n ]\n\n initialize() {\n // Keep track of page state\n this.resultsRendering = false\n this.allFramesRendered = false\n }\n\n connect() {\n // Set collapse/expanded state\n this.setCollapseState()\n\n // Check when page is being populated\n document.addEventListener('start-of-frames', this.handleFramesRendering.bind(this))\n\n // Only run when all frames have loaded and page ready\n document.addEventListener('end-of-frames', this.handleFramesLoaded.bind(this))\n }\n\n handleFramesRendering() {\n this.resultsRendering = true\n }\n\n handleFramesLoaded() {\n // Enable inputs once loaded\n this.allFramesRendered = true\n this.toggleButtonTarget.removeAttribute(\"disabled\")\n this.searchInputTarget.removeAttribute(\"disabled\")\n this.sortOrderTarget.removeAttribute(\"disabled\")\n\n this.setCollapseState()\n\n // Setup live search\n $(\"#filter_locations\").live_search({\n rowSelector: '.search-result',\n itemSelector: '.health-overview h1',\n useStripes: false,\n excludeItems: '',\n list: {\n _check_no_data: this._check_no_data,\n _is_row_visible: this._is_row_visible\n }\n })\n\n this.removeSpinner()\n }\n\n toggle() {\n // Only run when page is fully loaded\n if (this.allFramesRendered) {\n if (this.element.classList.contains('collapsed')) {\n this.element.classList.remove('collapsed')\n } else {\n this.element.classList.add('collapsed')\n }\n\n this.setCollapseState()\n }\n }\n\n setCollapseState() {\n // Change collapsed state of all items\n const items = this.element.querySelectorAll(\".search-result\")\n\n items.forEach(item => {\n if (this.element.classList.contains('collapsed')) {\n item.querySelector(\"section\").style.display = \"none\"\n\n this.toggleButtonTarget.innerHTML = \"Expand \"\n } else {\n item.querySelector(\"section\").style.display = \"block\"\n\n this.toggleButtonTarget.innerHTML = \"Collapse \"\n }\n })\n }\n\n sort() {\n const sortOrder = this.sortOrderTarget.value\n\n const elementsArray = [...this.element.querySelectorAll(\".search-result\")]\n const resultsContainer = this.resultsContainerTarget\n\n elementsArray.sort((a, b) => {\n a = a.querySelector('#health-score')\n b = b.querySelector('#health-score')\n if (sortOrder === \"scorea\") {\n return a.textContent.localeCompare(b.textContent, 'en', {numeric: true})\n } else if (sortOrder === \"scored\") {\n return b.textContent.localeCompare(a.textContent, 'en', {numeric: true})\n }\n })\n\n resultsContainer.innerHTML = \"\"\n elementsArray.forEach((element) => {\n resultsContainer.appendChild(element)\n })\n }\n\n addSpinner() {\n this.spinnerTarget.style.display = 'flex'\n }\n\n removeSpinner() {\n this.spinnerTarget.style.display = 'none'\n }\n\n _check_no_data() {\n $('.search-result:visible').length != 0 ? $('.no-results').hide() : $('.no-results').show()\n }\n _is_row_visible(row) {\n return !row.hasAttribute('data-misses-search') ? true : false\n }\n}\n","import DateRangeController from './datepicker_from_and_to_controller';\n\nexport default class extends DateRangeController {\n static targets = ['from', 'to', 'option'];\n\n connect() {\n super.connect();\n this.handleMultiDateOptionChange = this.handleMultiDateOptionChange.bind(this);\n if (this.hasOptionTarget) {\n this.optionTarget.addEventListener('change', this.handleMultiDateOptionChange);\n }\n }\n\n disconnect() {\n super.disconnect();\n if (this.hasOptionTarget) {\n this.optionTarget.removeEventListener('change', this.handleMultiDateOptionChange);\n }\n }\n\n handleMutation(mutationList, observer) {\n super.handleMutation(mutationList, observer);\n this.syncDates();\n }\n\n handleMultiDateOptionChange() {\n this.syncDates();\n }\n\n syncDates() {\n if (this.hasOptionTarget && !this.optionTarget.checked) {\n // Temporarily disconnect the observer to prevent a fun infinite loop\n this.observer.disconnect();\n this.toTarget._flatpickr.setDate(this.fromTarget.value);\n // Reconnect observer\n this.observeTargets();\n }\n }\n\n observeTargets() {\n this.observer.observe(this.fromTarget, this.config);\n this.observer.observe(this.toTarget, this.config);\n }\n}\n","import { Controller } from \"stimulus\"\nimport { DragDropUpload } from \"../../lib/drag_drop_upload\";\n\nexport default class extends Controller {\n\n static targets = ['fileName']\n\n connect() {\n new DragDropUpload(this.element, this.dragDropCallback.bind(this));\n }\n\n dragDropCallback(files) {\n // You cant not get an array, but we only want the first file\n var file = files[0];\n\n this.fileNameTarget.innerHTML = `${file.name} (${this.humanFileSize(file.size)})`;\n }\n\n humanFileSize(size) {\n var i = size == 0 ? 0 : Math.floor(Math.log(size) / Math.log(1024));\n return +((size / Math.pow(1024, i)).toFixed(1)) * 1 + ' ' + ['B', 'kB', 'MB', 'GB', 'TB'][i];\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\n// Add data-preview-wrapper-selector=\"#preview_wrapper\" to where you set the data-controller=\"preview\"\n// Add a