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QAAQI,GAAKH,EAAMG,EAAE1L,KAAKmJ,OACpC,EClEK8C,QAAQC,UAAUC,UACrBF,QAAQC,UAAUC,QAChBF,QAAQC,UAAUE,mBAClBH,QAAQC,UAAUG,uBAGjBJ,QAAQC,UAAUhT,UACrB+S,QAAQC,UAAUhT,QAAU,SAASoT,GACnC,IAAIlK,EAAKjJ,KAET,EAAG,CACD,GAAI8S,QAAQC,UAAUC,QAAQI,KAAKnK,EAAIkK,GAAI,OAAOlK,EAClDA,EAAKA,EAAGoK,eAAiBpK,EAAGJ,UAC9B,OAAgB,OAAPI,GAA+B,IAAhBA,EAAGqK,UAC3B,OAAO,IACT,GAMF7T,EAAQ,MAORA,EAAAA,MAAAA,QACAA,EAAAA,MAAAA,QACAA,EAAQ,MACRA,EAAQ,MACRA,EAAQ,K","sources":["webpack://assessment_platform/./app/packs/channels/ sync _channel\\.js$","webpack://assessment_platform/./app/packs/controllers/ sync \\.js$","webpack://assessment_platform/./app/packs/channels/index.js","webpack://assessment_platform/./app/packs/controllers/action-plan-controller.js","webpack://assessment_platform/./app/packs/controllers/action-plan-modal-controller.js","webpack://assessment_platform/./app/packs/controllers/admin-actions-controller.js","webpack://assessment_platform/./app/packs/controllers/assessment-results-controller.js","webpack://assessment_platform/./app/packs/controllers/clipboard-controller.js","webpack://assessment_platform/./app/packs/controllers/comments-controller.js","webpack://assessment_platform/./app/packs/controllers/dashboard-controller.js","webpack://assessment_platform/./app/packs/controllers/demographics-controller.js","webpack://assessment_platform/./app/packs/controllers/dropdown-controller.js","webpack://assessment_platform/./app/packs/controllers/dynamic-fields-controller.js","webpack://assessment_platform/./app/packs/controllers/ethnic-group-select-controller.js","webpack://assessment_platform/./app/packs/controllers/index.js","webpack://assessment_platform/./app/packs/controllers/membership-cost-controller.js","webpack://assessment_platform/./app/packs/controllers/mobile-navigation-controller.js","webpack://assessment_platform/./app/packs/controllers/modal-controller.js","webpack://assessment_platform/./app/packs/controllers/question-highlight-controller.js","webpack://assessment_platform/./app/packs/controllers/representatives-controller.js","webpack://assessment_platform/./app/packs/controllers/results-controller.js","webpack://assessment_platform/./app/packs/controllers/richtext-controller.js","webpack://assessment_platform/./app/packs/controllers/stripe-controller.js","webpack://assessment_platform/./app/packs/controllers/tabs-controller.js","webpack://assessment_platform/./app/packs/controllers/tooltip-controller.js","webpack://assessment_platform/./app/packs/controllers/unfolding-demographics-controller.js","webpack://assessment_platform/./app/packs/controllers/unfolding-questions-controller.js","webpack://assessment_platform/./app/packs/donut.js","webpack://assessment_platform/./app/packs/entrypoints/application.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 9391;\nmodule.exports = webpackEmptyContext;","var map = {\n\t\"./action-plan-controller.js\": 1764,\n\t\"./action-plan-modal-controller.js\": 7201,\n\t\"./admin-actions-controller.js\": 7471,\n\t\"./assessment-results-controller.js\": 8699,\n\t\"./clipboard-controller.js\": 4739,\n\t\"./comments-controller.js\": 1804,\n\t\"./dashboard-controller.js\": 3611,\n\t\"./demographics-controller.js\": 9623,\n\t\"./dropdown-controller.js\": 3659,\n\t\"./dynamic-fields-controller.js\": 7828,\n\t\"./ethnic-group-select-controller.js\": 7796,\n\t\"./index.js\": 4880,\n\t\"./membership-cost-controller.js\": 2411,\n\t\"./mobile-navigation-controller.js\": 6779,\n\t\"./modal-controller.js\": 9941,\n\t\"./question-highlight-controller.js\": 8993,\n\t\"./representatives-controller.js\": 2887,\n\t\"./results-controller.js\": 14,\n\t\"./richtext-controller.js\": 8758,\n\t\"./stripe-controller.js\": 2295,\n\t\"./tabs-controller.js\": 7962,\n\t\"./tooltip-controller.js\": 9488,\n\t\"./unfolding-demographics-controller.js\": 9765,\n\t\"./unfolding-questions-controller.js\": 1708,\n\t\"controllers/action-plan-controller.js\": 1764,\n\t\"controllers/action-plan-modal-controller.js\": 7201,\n\t\"controllers/admin-actions-controller.js\": 7471,\n\t\"controllers/assessment-results-controller.js\": 8699,\n\t\"controllers/clipboard-controller.js\": 4739,\n\t\"controllers/comments-controller.js\": 1804,\n\t\"controllers/dashboard-controller.js\": 3611,\n\t\"controllers/demographics-controller.js\": 9623,\n\t\"controllers/dropdown-controller.js\": 3659,\n\t\"controllers/dynamic-fields-controller.js\": 7828,\n\t\"controllers/ethnic-group-select-controller.js\": 7796,\n\t\"controllers/index.js\": 4880,\n\t\"controllers/membership-cost-controller.js\": 2411,\n\t\"controllers/mobile-navigation-controller.js\": 6779,\n\t\"controllers/modal-controller.js\": 9941,\n\t\"controllers/question-highlight-controller.js\": 8993,\n\t\"controllers/representatives-controller.js\": 2887,\n\t\"controllers/results-controller.js\": 14,\n\t\"controllers/richtext-controller.js\": 8758,\n\t\"controllers/stripe-controller.js\": 2295,\n\t\"controllers/tabs-controller.js\": 7962,\n\t\"controllers/tooltip-controller.js\": 9488,\n\t\"controllers/unfolding-demographics-controller.js\": 9765,\n\t\"controllers/unfolding-questions-controller.js\": 1708\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 = 1769;","// Load all the channels within this directory and all subdirectories.\n// Channel files must be named *_channel.js.\n\nconst channels = require.context('.', true, /_channel\\.js$/)\nchannels.keys().forEach(channels)\n","import { Controller } from \"stimulus\";\n\n// This class is used to expands action plan items on the action plan page.\nexport default class extends Controller {\n static targets = [\"details\", \"summary\", \"notesSummary\", \"markCompleted\", \"backToActionPlan\"];\n\n toggleDetails(event) {\n // If the user clicks on the actual button,\n // we don't want to expand the action plan details.\n const doNotExpand = event.target.closest(\".js-do-not-expand\");\n if (doNotExpand) { return; }\n\n this.detailsTarget.classList.toggle(\"hidden\");\n this.summaryTarget.classList.toggle(\"summary-expanded\");\n if (this.hasNotesSummaryTarget) {\n this.notesSummaryTarget.classList.toggle(\"invisible\");\n }\n if (this.hasMarkCompletedTarget) {\n this.markCompletedTarget.classList.toggle(\"invisible\");\n }\n if (this.hasBackToActionPlanTarget) {\n this.backToActionPlanTarget.classList.toggle(\"invisible\");\n }\n }\n}\n","import { Controller } from \"stimulus\"\n\n// This class is used to open the action plan item modal.\n// NOTE: If you are looking for the stimulus controller that expands action plan\n// items on the action plan page, it's the action-plan-controller.js\nexport default class extends Controller {\n static targets = [ 'openModal', 'modal', 'submit', 'form' ];\n static values = {\n recommendationId: String,\n createPath: String,\n updatePath: String,\n itemType: String,\n };\n\n toggleModal() {\n this.modalTarget.classList.toggle(\"hidden\");\n }\n\n async create(event) {\n // NOTE: This is super dodgey. 😬\n // If the form is invalid, we return before preventDefault(),\n // triggering the HTML 5 validations. As the form is invalid, these\n // should stop the form being submitted. If the form is valid, we\n // preventDefault() and make an ajax call.\n if(!this.formTarget.checkValidity()) { return; }\n\n event.preventDefault();\n const originalButtonCopy = this.submitTarget.innerHTML;\n\n const formData = new FormData(this.formTarget);\n\n // Modify button so that it is in the \"pending\" state\n this.submitTarget.disabled = true;\n this.submitTarget.value = 'Adding to plan ...';\n this.submitTarget.classList.replace('black', 'grey');\n this.submitTarget.classList.add('cursor-default');\n\n\n const response = await fetch(this.createPathValue, {\n method: \"POST\",\n headers: {\n \"X-CSRF-Token\": Rails.csrfToken()\n },\n body: formData\n });\n\n // These timeouts are here for aesthetic reasons.\n setTimeout(\n response => {\n if (response.ok) {\n // Modify button so that it is in the \"success\" state\n this.submitTarget.value = 'Added to plan';\n this.submitTarget.classList.replace('grey', 'green');\n\n switch (this.itemTypeValue) {\n case 'custom':\n // Relaod the page.\n location.reload();\n break;\n case 'recommendation':\n // Modify the button on the recommendation.\n this.openModalTarget.innerHTML = 'Added to plan';\n this.openModalTarget.classList.replace('black', 'green');\n this.openModalTarget.classList.add('cursor-default');\n this.openModalTarget.disabled = true;\n // Remove the modal from the DOM.\n setTimeout(() => this.modalTarget.remove(), 1000);\n break;\n }\n } else {\n // Raise an alert and reset the button\n alert(\"Something went wrong. Please try adding the recommendation to your action plan again.\");\n this.submitTarget.disabled = false;\n this.submitTarget.value = originalButtonCopy;\n this.submitTarget.classList.replace('grey', 'black');\n this.submitTarget.classList.remove('cursor-default');\n }\n },\n 1000,\n response\n );\n }\n\n async update(event) {\n if(!this.formTarget.checkValidity()) { return; }\n\n event.preventDefault();\n\n const formData = new FormData(this.formTarget);\n\n // Modify button so that it is in the \"pending\" state\n this.submitTarget.disabled = true;\n this.submitTarget.value = 'Updating item...';\n this.submitTarget.classList.replace('black', 'grey');\n this.submitTarget.classList.add('cursor-default');\n\n const response = await fetch(this.updatePathValue, {\n method: \"PATCH\",\n headers: {\n \"X-CSRF-Token\": Rails.csrfToken(),\n \"X-Requested-With\": 'XMLHttpRequest'\n },\n body: formData\n });\n\n setTimeout(\n response => {\n if (response.ok) {\n // Modify button so that it is in the \"success\" state\n this.submitTarget.value = 'Item updated';\n this.submitTarget.classList.replace('grey', 'green');\n setTimeout(() => location.reload(), 1000);\n } else {\n alert(\"Something went wrong. Please try updating your action plan again.\");\n\n this.submitTarget.disabled = false;\n this.submitTarget.classList.replace('grey', 'black');\n this.submitTarget.classList.remove('cursor-default');\n this.submitTarget.value = 'Save';\n }\n },\n 1000,\n response\n )\n }\n}\n","import { Controller } from 'stimulus'\n\n// This openDropdown event fires when the user clicks the\n// admin-actions dropdown button the admin users index page.\nexport default class extends Controller {\n static targets = [ 'dropdownToggle', 'dropdown', 'chevron' ]\n\n // Opens the dropdown\n openDropdown() {\n this.dropdownTarget.classList.toggle('hidden');\n this.toggleChevron()\n }\n\n // This function is called when a user clicks within the window.\n // Unless the user clicks on the dropdown or dropdown button, this function\n // will hide the dropdown.\n handleClick(event) {\n if (event) {\n const dropdownToggleClicked = this.dropdownToggleTarget.contains(event.target);\n const dropdownClicked = this.dropdownTarget.contains(event.target);\n // If the click event was on the dropdown button or the dropdown itself,\n // return early.\n if (dropdownClicked || dropdownToggleClicked) { return; }\n }\n\n // Otherwise hide the dropdown.\n this.hideDropdown();\n }\n\n // Hides the dropdown\n hideDropdown() {\n this.dropdownTarget.classList.add('hidden');\n this.chevronDown();\n }\n\n // NOTE: Annoyingly, I can't toggle the chevron rotations with .toggle().\n // So I've made this set of functions.\n toggleChevron() {\n if (this.isChevronDown()) {\n this.chevronUp();\n } else {\n this.chevronDown();\n }\n }\n\n // Returns a bool for whether the chevron is pointing down.\n isChevronDown() {\n return !this.chevronTarget.classList.contains('rotate-180');\n }\n\n // Rotates the chevron so it points up.\n chevronUp() {\n this.chevronTarget.classList.add('rotate-180');\n this.chevronTarget.classList.remove('rotate-0');\n }\n\n // Rotates the chevron so it points down.\n chevronDown() {\n this.chevronTarget.classList.remove('rotate-180');\n this.chevronTarget.classList.add('rotate-0');\n }\n\n // The function is called when the `turbo:before-cache` event fires.\n // See ./packs/controllers/index.js\n beforeCache() {\n this.hideDropdown()\n }\n}\n","import { Controller } from \"stimulus\"\n\n// This openDropdown event fires when the user clicks the\n// #previous_assessements_dropdown button dropdown on the employee results page.\nexport default class extends Controller {\n static targets = [ \"dropdownToggle\", \"previousAssessementsDropdown\", \"downChevron\", \"upChevron\" ]\n\n openDropdown() {\n this.previousAssessementsDropdownTarget.classList.toggle(\"hidden\");\n this.downChevronTarget.classList.toggle(\"hidden\");\n this.upChevronTarget.classList.toggle(\"hidden\");\n }\n\n // This function is called when a user clicks within the window.\n // Unless the user clicks on the dropdown or dropdown button, this function\n // will hide the dropdown.\n handleClick(event) {\n if (event) {\n const dropdownClicked = this.previousAssessementsDropdownTarget.contains(event.target);\n const dropdownToggleClicked = this.dropdownToggleTarget.contains(event.target);\n // If the click event was on the dropdown button or the dropdown itself,\n // return early.\n if (dropdownClicked || dropdownToggleClicked) { return; }\n }\n\n // Otherwise hide the dropdown.\n this.hideDropdown();\n }\n\n // Hides the dropdown\n hideDropdown() {\n this.previousAssessementsDropdownTarget.classList.add(\"hidden\");\n this.downChevronTarget.classList.remove(\"hidden\");\n this.upChevronTarget.classList.add(\"hidden\");\n }\n\n // The function is called when the `turbo:before-cache` event fires.\n // See ./packs/controllers/index.js\n beforeCache() {\n this.hideDropdown()\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = ['source', 'button'];\n\n connect() {\n this.timer = null;\n }\n\n copy() {\n clearInterval(this.timer);\n\n this.sourceTarget.select();\n document.execCommand('copy');\n this.buttonTarget.innerHTML = 'Copied!';\n\n this.timer = setTimeout(() => {\n this.buttonTarget.innerHTML = 'Copy';\n }, 3000);\n }\n}\n\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = ['commentBox', 'comment', 'radioButton', 'icon'];\n\n connect() {\n if (this.radioButtonTargets.find(e => e.checked)) {\n this.enableIcon();\n } else {\n this.disableIcon();\n }\n }\n \n openCommentBox() {\n if (this.radioButtonTargets.find(e => e.checked)) {\n // Find other comment boxes and close them\n document.querySelectorAll('[data-controller=comments]').forEach((commentBox) => {\n this.application.getControllerForElementAndIdentifier(commentBox, 'comments').closeCommentBox();\n });\n\n this.commentBoxTarget.classList.remove('hidden');\n }\n }\n\n closeCommentBox() {\n this.commentBoxTarget.classList.add('hidden');\n }\n\n // This is a bit of a cheat; submit the form nearby when you 'save' a\n // free text comment.\n submitForm(e) {\n // Disable the button they just clicked.\n e.currentTarget.setAttribute('disabled', true);\n // And faux-submit the form\n document.getElementById('js-save-button').click();\n }\n\n enableIcon() {\n this.iconTargets.forEach(e => e.classList.remove('opacity-50'));\n }\n\n disableIcon() {\n this.iconTargets.forEach(e => e.classList.add('opacity-50'));\n }\n}\n\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"wizard\", \"step1\"];\n\n initialize() {\n //this.wizardTarget.classList.remove(\"hidden\");\n }\n\n closeWizard() {\n this.wizardTarget.classList.add(\"hidden\");\n }\n\n}\n","import { Controller } from 'stimulus';\n\n// Controls behaviour for demographics filters when viewing results.\nexport default class extends Controller {\n static targets = ['filter', 'dataContainer', 'all'];\n static values = { url: String, comparison: String, activeAssessmentYear: String };\n\n initialize() {\n this.activeAssessmentYear = this.activeAssessmentYearValue;\n this.isAllTab = false; // initially we want to display the top 3 / bottom 3 tab for comparisons.\n }\n\n fetchDemographics(filters) {\n const url = new URL(this.urlValue);\n\n url.searchParams.append(\"filters\", filters);\n url.searchParams.append(\"assessment_year\", this.activeAssessmentYear);\n url.searchParams.append(\"all_tab\", this.isAllTab);\n\n fetch(url, {\n method: 'GET',\n headers: {\n 'Content-Type': 'text/html',\n 'X-CSRF-Token': Rails.csrfToken()\n }\n }).then(response => response.text())\n .then(data => {\n this.dataContainerTargets.forEach((container) => { container.innerHTML = data });\n })\n .catch(console.error);\n }\n\n // Called when switching tabs in the year-on-year view to remember the active tab when reloading the partial.\n setAttributes(event) {\n this.activeAssessmentYear = event.target.attributes.year.value;\n this.isAllTab = event.target.attributes.all.value;\n }\n\n applyFilter(event) {\n this.handleAllOption();\n\n // Need to keep mobile and desktop filters in sync to avoid bugs when re-rendering page after the request.\n this.filterTargets.forEach((filter) => {\n if (event.target.value === filter.value) {\n filter.checked = event.target.checked;\n }\n });\n\n // find the currently selected filters.\n this.fetchDemographics(this.selectedFilters());\n }\n\n // reset all filters to get fetch demographics.\n resetFilters(event) {\n this.allTargets.forEach((allFilter) => { allFilter.checked = true });\n this.filterTargets.forEach((filter) => filter.checked = false);\n this.fetchDemographics([]);\n }\n\n selectedFilters() {\n const selected = [];\n this.filterTargets.forEach((filter) => { filter.checked && selected.push(filter.value) });\n return selected;\n }\n\n // Keep the all option selected if there are no filters applied.\n handleAllOption() {\n this.allTargets.forEach(allFilter => { allFilter.checked = this.selectedFilters().length === 0; });\n }\n}\n","import { Controller } from \"stimulus\";\n\n// Little helper controller for toggling a dropdown open/closed.\n// Just add a 'dropdown' target and 'hidden' class to the content of the\n// dropdown, and 'toggleDropdown' action to the dropdown button.\nexport default class extends Controller {\n static targets = [\"dropdown\"];\n\n toggleDropdown() {\n this.dropdownTarget.classList.toggle('hidden');\n }\n}\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [\"newField\", \"fieldInputTemplate\"]\n\n // When the add button is clicked in the locations new view or departments\n // new view, a new field is added to the form.\n addField(event) {\n event.preventDefault()\n var content = this.fieldInputTemplateTarget.innerHTML.replace(/UNIQUE_ID/g, new Date().valueOf())\n this.newFieldTarget.insertAdjacentHTML('beforebegin', content)\n }\n\n // When the remove button on a location or department field is clicked,\n // the field is removed from the form.\n removeField(event) {\n event.preventDefault()\n let item = event.target.closest(\".dynamic-field\")\n item.parentNode.removeChild(item)\n }\n}\n","import { Controller } from \"stimulus\";\n\n// Responsible for the interactions with the ethnic group select dropdowns,\n// which we show to employees that are submitting their assessment.\nexport default class extends Controller {\n static targets = [\"group\", \"selection\"];\n\n closeGroups() {\n this.groupTargets.forEach(el => {\n if (el.classList.contains('open')) {\n el.classList.remove('open');\n }\n });\n }\n\n // Toggles a group open/closed. Only one group can be open at a time, so it\n // also closes any other groups that are open.\n toggleGroupDropdown() {\n const currentGroup = event.target.closest('.group');\n if (currentGroup.classList.contains('open')) {\n this.closeGroups();\n } else {\n this.closeGroups();\n event.target.closest('.group').classList.add('open');\n }\n }\n\n unhighlightActiveGroup() {\n this.groupTargets.forEach(el => {\n if (el.classList.contains('active')) {\n el.classList.remove('active');\n }\n });\n }\n\n highlightGroup() {\n // If any of the other groups are currently highlighted, un-highlight them.\n this.unhighlightActiveGroup();\n\n // Highlight the correct group\n event.target.closest('.group').classList.toggle('active');\n\n const label = document.getElementById(`label-${event.target.value}`).innerText;\n\n // This will update the text in all the groups, but we hide all but\n // the active one.\n this.selectionTargets.forEach(el => el.innerText = label);\n\n this.closeGroups();\n }\n}\n","import { Application } from \"stimulus\"\nimport { definitionsFromContext } from \"stimulus/webpack-helpers\"\n\nconst application = Application.start()\nconst context = require.context(\".\", true, /\\.js$/)\napplication.load(definitionsFromContext(context))\n\ndocument.addEventListener('turbo:before-cache', () => {\n application.controllers.forEach(controller => {\n if (typeof controller.beforeCache === 'function') {\n controller.beforeCache();\n }\n })\n})\n","import { Controller } from \"stimulus\"\n\nexport default class extends Controller {\n static targets = [\"totalCost\", \"numberOfEmployees\", \"costPerEmployee\",\n 'minNumOfEmployeesDesktop', 'minNumOfEmployeesMobile', 'submitButton']\n\n // When a user clicks the calculate cost button, a request is made to\n // the server for the price and then the page is updated with the response.\n async calculateCost(event) {\n event.preventDefault();\n\n const numberOfEmployees = this.numberOfEmployeesTarget.value;\n // If the user inputs a number less than 1\n if (numberOfEmployees < 1) {\n this._revealMinNumOfEmployeesMessage()\n this._resetStylesForTotalCost()\n this._disableSubmitButton();\n return\n }\n\n this._hideMinNumOfEmployeesMessage();\n\n // Fetch the cost of the membership\n const params = { num_of_respondents: numberOfEmployees };\n const response = await fetch(\"/memberships/calculate_cost.json\", {\n method: \"POST\",\n headers: {\n \"X-CSRF-Token\": Rails.csrfToken(),\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify(params)\n });\n const parsedReponse = await response.json();\n\n // Update the total cost\n this.totalCostTarget.classList.remove('text-gray-500');\n this.totalCostTarget.innerHTML = `£${this._convertPenceToPounds(parsedReponse.cost)}`;\n // Update the cost per employee\n const costPerEmployeeInPence = Math.round(parsedReponse.cost / numberOfEmployees);\n const costPerEmployeeInPounds = this._convertPenceToPounds(costPerEmployeeInPence);\n this.costPerEmployeeTarget.innerHTML = `£${costPerEmployeeInPounds} per employee`;\n // Enable the submit button\n this._enableSubmitButton();\n }\n\n // Takes pence and converts it to pounds.\n // If the pounds value is a integer, then it returns the value as an integer.\n _convertPenceToPounds(costInPence) {\n if (costInPence % 100 == 0) {\n return costInPence / 100;\n } else {\n return Number.parseFloat(costInPence / 100).toFixed(2);\n }\n }\n\n _revealMinNumOfEmployeesMessage() {\n // There are two html targets, one for desktop...\n this.minNumOfEmployeesDesktopTarget.classList.remove('hidden');\n // and one for mobile\n this.minNumOfEmployeesMobileTarget.classList.remove('hidden');\n }\n\n _hideMinNumOfEmployeesMessage() {\n // There are two html targets, one for desktop...\n let classList = this.minNumOfEmployeesDesktopTarget.classList;\n if (!classList.contains('hidden')) { classList.add('hidden'); }\n // and one for mobile\n classList = this.minNumOfEmployeesMobileTarget.classList;\n if (!classList.contains('hidden')) { classList.add('hidden'); }\n }\n\n _enableSubmitButton() {\n const button = this.submitButtonTarget;\n // Enable the button\n button.disabled = false;\n // Change the styling\n const classList = button.classList;\n if (classList.contains('bg-grey-medium-bg')) { classList.remove('bg-grey-medium-bg'); }\n if (!classList.contains('green')) { classList.add('green'); }\n }\n\n _disableSubmitButton() {\n const button = this.submitButtonTarget;\n // Disabled the button\n button.disabled = true;\n // Change the styling\n const classList = button.classList;\n if (!classList.contains('bg-grey-medium-bg')) { classList.add('bg-grey-medium-bg'); }\n if (classList.contains('green')) { classList.remove('green'); }\n }\n\n // Reverts the HTML and CSS to the orginal content and styles\n // for the Cost section.\n _resetStylesForTotalCost() {\n const costClassList = this.totalCostTarget.classList;\n if (!costClassList.contains('text-gray-500')) {\n costClassList.add('text-gray-500');\n }\n this.totalCostTarget.innerHTML = \"£\";\n this.costPerEmployeeTarget.innerHTML = \"Cost per employee\";\n }\n}\n","import { Controller } from 'stimulus';\n\n// Responsible for opening & closing the off-canvas navigation on mobile\nexport default class extends Controller {\n static targets = ['menu', 'openIcon', 'closeIcon', 'page']\n\n toggle(e) {\n e.preventDefault();\n // Check the width of the mobile nav for this magic number.\n ['transform', 'transform-gpu', 'transition-transform', '-translate-x-72'].forEach((klass) => {\n this.pageTarget.classList.toggle(klass);\n });\n this.menuTarget.classList.toggle('translate-x-full');\n\n this.openIconTarget.classList.toggle('hidden');\n this.closeIconTarget.classList.toggle('hidden');\n }\n\n}\n","import { Controller } from 'stimulus'\n\nexport default class extends Controller {\n static targets = ['content', 'container', 'bg', 'innerContainer']\n\n toggle(e) {\n this.containerTarget.classList.toggle('hidden');\n this.setBackgroundHeight();\n this.setModalOffset();\n e.preventDefault();\n }\n\n // See comments in FiltersController\n setBackgroundHeight() {\n const modalHeight = this.containerTarget.clientHeight;\n const actualModalHeight = this.innerContainerTarget.clientHeight;\n\n if (modalHeight < actualModalHeight) {\n this.bgTarget.classList.remove('h-full');\n } else {\n this.bgTarget.classList.add('h-full');\n }\n }\n\n // You activate the filter modal at the top of the page, so we don't have to\n // do this, but here you might be half way down looking at a question; we\n // need to pop it in the right place. If you scrolled up, it'd be a bit\n // weird, but hey, that's modals for you. We could also make the inside of\n // the modal scroll, maybe?\n setModalOffset() {\n this.contentTarget.style.top = `${window.scrollY}px`;\n }\n}\n","// We are using stimulus to remove the red border that appears when we do not answer required questions during assessments\n\nimport { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"parentBox\"];\n\n removeHighlight() {\n this.parentBoxTarget.classList.remove(\n \"border\",\n \"rounded\",\n \"border-2\",\n \"border-red\"\n );\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"submitButton\", \"form\", \"input\"];\n\n selectOption() {\n this.submitButtonTarget.disabled = false;\n if (event.target.value == 'yes') {\n this.formTarget.classList.remove(\"hidden\");\n this.inputTargets.forEach((el) => el.required = true);\n } else if (event.target.value == 'no') {\n this.formTarget.classList.add(\"hidden\");\n this.inputTargets.forEach((el) => el.required = false);\n }\n }\n}\n","import { Controller } from \"stimulus\";\n\nexport default class extends Controller {\n static targets = [\"details\", \"section\", \"question\", \"questionDetails\"];\n\n expandDetails() {\n this.detailsTarget.classList.toggle(\"hidden\");\n this.sectionTarget.classList.toggle(\"section-expanded\");\n }\n\n expandQuestionDetails(event) {\n const currentQuestionNumber = event.currentTarget.dataset.questionNumber;\n const questionDetails = this.questionDetailsTargets.find(\n questionDetails => questionDetails.dataset.questionNumber == currentQuestionNumber\n );\n questionDetails.classList.toggle(\"hidden\");\n const question = this.questionTargets.find(\n question => question.dataset.questionNumber == currentQuestionNumber\n );\n question.classList.toggle(\"question-expanded\");\n }\n}\n","import { Controller } from \"stimulus\"\n\n// This controller unsures any links in RichText area's open in a new window.\nexport default class extends Controller {\n connect() {\n this.element.querySelectorAll('a').forEach(function(link) {\n if (link.host !== window.location.host) {\n link.target = \"_blank\"\n }\n })\n }\n}\n","import { Controller } from \"stimulus\"\nimport {loadStripe} from '@stripe/stripe-js';\n\n// Redirects the user to the Stripe checkout page.\nexport default class extends Controller {\n static targets = [\"autoredirect\", \"redirectButton\"]\n\n connect() {\n // If the autoredirect target is on the page,\n // automatically redirect the user to the payment page.\n if (this.hasAutoredirectTarget) {\n // We intentionally delay the user 2 seconds before the redirect.\n setTimeout(() => this.visitCheckout(), 2000)\n }\n }\n\n async visitCheckout() {\n const checkoutSessionPath = this.redirectButtonTarget.dataset.checkoutSessionUrl\n // Fetch a new Checkout session id\n const response = await fetch(checkoutSessionPath, {\n method: \"POST\",\n headers: {\n \"X-CSRF-Token\": Rails.csrfToken(),\n 'Content-Type': 'application/json'\n }\n });\n const parsedReponse = await response.json();\n\n const stripePublicKey = parsedReponse.public_key\n const stripe = await loadStripe(stripePublicKey);\n const checkoutSessionId = parsedReponse.session.id\n stripe.redirectToCheckout({ sessionId: checkoutSessionId })\n }\n}\n","import { Controller } from 'stimulus'\n\nexport default class extends Controller {\n static targets = ['tab', 'panel']\n\n connect() {\n this.activeTabClasses = this.data.get('activeTab').split(' ')\n this.showTab()\n }\n\n change(event) {\n event.preventDefault()\n\n this.activeIndex = this.tabTargets.indexOf(event.currentTarget)\n }\n\n showTab() {\n this.tabTargets.forEach((tab, index) => {\n const panel = this.panelTargets[index]\n\n if (index === this.activeIndex) {\n panel.classList.remove('hidden')\n tab.classList.add(...this.activeTabClasses)\n\n } else {\n panel.classList.add('hidden')\n tab.classList.remove(...this.activeTabClasses)\n }\n })\n }\n\n get activeIndex() {\n return parseInt(this.data.get('active-index') || 0)\n }\n\n set activeIndex(value) {\n this.data.set('active-index', value)\n this.showTab()\n }\n}\n","import { Controller } from \"stimulus\";\nimport { createPopper } from '@popperjs/core';\n\nexport default class extends Controller {\n static targets = ['content', 'trigger']\n\n show(e) {\n if (!this.hasContentTarget) { return; }\n\n this.contentTarget.classList.remove('hidden');\n this.popperInstance = createPopper(\n this.triggerTarget,\n this.contentTarget,\n {\n modifiers: [\n {\n name: 'offset',\n options: {\n offset: [0, 8],\n },\n },\n ],\n }\n );\n\n // Watch for clicks elsewhere\n this.clickListener = document.addEventListener('click', (e) => {\n // Not if they're clicking on the trigger, or the content\n if (!e.target.closest(\"[data-target='tooltip.trigger']\") &&\n !e.target.closest(\"[data-target='tooltip.content']\")) {\n this.hide();\n }\n });\n }\n\n hide() {\n if (!this.hasContentTarget) { return; }\n\n if (this.popperInstance) {\n this.popperInstance.destroy();\n this.popperInstance = null;\n }\n if (this.clickListener) {\n document.removeEventListener('click', this.clickListener);\n }\n this.contentTarget.classList.add('hidden');\n }\n\n disconnect() {\n this.hide();\n }\n}\n","import { Controller } from 'stimulus'\n\n// For unfolding demographics when the user chooses a certain option, e.g. if\n// they say they have a disability or additional needs, unfold the additional\n// questions for those demographics.\nexport default class extends Controller {\n static targets = ['unfoldIfSelected', 'unfolding']\n\n connect() {\n // Trigger on load so we get the right unfolded/folded state.\n this.change();\n }\n\n // Event handler - bind all radio buttons to this event, and it'll check what\n // state the unfolding demographics need to be in. It's a bit blunt, but it\n // saves on the complicated logic of checking which radio button was selected\n // _and_ still considering other radio buttons that mean the demographics\n // need to unfold.\n change() {\n this.unfoldIfSelectedTargets.forEach((elem) => {\n if (elem.checked) { this.open() }\n });\n\n // Sanity check, ensure they're closed. Trying to avoid any weird\n // turbolinks caching issues.\n if (this.unfoldIfSelectedTargets.every((elem) => !elem.checked)) {\n this.close();\n }\n }\n\n open() {\n this.unfoldingTarget.classList.remove('hidden');\n }\n\n close() {\n this.unfoldingTarget.classList.add('hidden');\n\n // Uncheck everything within the unfolding answers so they don't\n // accidentally get submitted. It also feels weird if it folds & then\n // unfolds again and your answers are still there.\n const inputs = this.unfoldingTarget.querySelectorAll('input[type=radio]');\n inputs.forEach((input) => input.checked = false);\n }\n\n}\n","import { Controller } from 'stimulus'\n\nexport default class extends Controller {\n static values = { reverseScore: Boolean }\n static targets = [\"childQuestionContainer\", \"parentQuestion\", \"childQuestion\"]\n\n connect() {\n this.parentQuestionTargets.forEach((elem) => {\n if (elem.checked) {\n this.toggle(elem);\n }\n });\n }\n\n toggle(e) {\n let answers;\n if (this.reverseScoreValue === true) {\n answers = ['neutral', 'agree', 'strongly_agree'];\n }\n else {\n answers = ['neutral', 'disagree', 'strongly_disagree'];\n }\n\n if (answers.includes(e.currentTarget?.value || e.value)) {\n this.childQuestionContainerTarget.classList.remove(\"hidden\");\n }\n else {\n this.childQuestionContainerTarget.classList.add(\"hidden\");\n this.childQuestionTargets.forEach((elem) =>\n elem.checked = false\n );\n }\n }\n}\n","import * as d3 from \"d3\";\n\nwindow.makeDonut = function(categories, totalCount){\n // set the dimensions and margins of the graph\n const width = 450,\n height = 450;\n\n // The radius of the pieplot is half the width or half the height (smallest\n // one). I subtract a bit of margin.\n const radius = Math.min(width, height) / 2;\n\n // this is used for the completed mark total\n const totalComplete = categories.reduce((acc, c) => acc + c.completed_count, 0);\n\n // these are the colours used for the arc segments\n const collaboration_blue = \"#AFDAE6\";\n const communication_pink = \"#F1C9DC\";\n const education_green = \"#C8DCD0\";\n const practice_and_policy_yellow = \"#F9DD4B\";\n\n // Set up the area. Use preserveAspectRatio to make it responsive.\n const svg = d3.select(\"#category-donut-container\")\n .append(\"svg\")\n .attr(\"viewBox\", `0 0 ${width} ${height}`)\n .attr(\"preserveAspectRatio\", \"xMidYMid meet\")\n .append(\"g\")\n .attr(\"transform\", `translate(${width / 2},${height / 2})`);\n\n // Set the colors up. Make sure these match the order of categories defined\n // in the Recommendation enum category, as D3 will effectively iterate\n // through these assigning them to categories as you pass new categories in\n // to the loop.\n const color = d3.scaleOrdinal()\n .range([collaboration_blue, communication_pink, education_green, practice_and_policy_yellow])\n\n // Compute the position of each group on the pie.\n // .sort call stops d3 from sorting in numerical order\n // .value provides the function to extract the value from the data.\n const pie = d3.pie()\n .value(d => d.total_count)\n .sort(() => -1)\n (categories);\n\n // Add the 'Completed' label\n svg\n .append(\"text\")\n .text(\"Completed\")\n .style(\"text-anchor\", \"middle\")\n .style(\"dominant-baseline\", \"auto\")\n .attr(\"y\", -35)\n .attr(\"font-size\", \"30px\")\n .attr(\"font-family\", \"Raleway\")\n .attr(\"font-weight\", \"400\")\n\n // and the actual number completed\n svg\n .append(\"text\")\n .text(`${totalComplete}/${totalCount}`)\n .style(\"text-anchor\", \"middle\")\n .style(\"dominant-baseline\", \"hanging\")\n .attr(\"y\", -10)\n .attr(\"font-size\", \"80px\")\n .attr(\"font-family\", \"Inter\")\n .attr(\"font-weight\", \"600\")\n\n // Build the pie chart: Basically, each part of the pie is a path that we build using the arc function.\n svg\n .selectAll('donut-arc')\n .data(pie)\n .join('path')\n .attr('d', d3.arc()\n .innerRadius(160) // This is the size of the donut hole\n .outerRadius(radius)\n )\n .attr('fill', d => color(d.data.name) )\n}\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// Polyfill all the core JS stuff to get basic IE11 support\nimport 'core-js';\n\n// core-js doesn't include Element#closest\nif (!Element.prototype.matches) {\n Element.prototype.matches =\n Element.prototype.msMatchesSelector ||\n Element.prototype.webkitMatchesSelector;\n}\n\nif (!Element.prototype.closest) {\n Element.prototype.closest = function(s) {\n var el = this;\n\n do {\n if (Element.prototype.matches.call(el, s)) return el;\n el = el.parentElement || el.parentNode;\n } while (el !== null && el.nodeType === 1);\n return null;\n };\n}\n\n// We need the customElements polyfill for Edge 18.\nimport '@webcomponents/custom-elements';\n// CSS.escape polyfill for Edge 18.\nrequire('css.escape');\n\n// Polyfill fetch too\nimport 'whatwg-fetch';\n\nimport { Turbo, cable } from \"@hotwired/turbo-rails\";\n\nrequire(\"@rails/ujs\").start();\nrequire(\"@rails/activestorage\").start();\nrequire(\"channels\");\nrequire(\"trix\")\nrequire(\"@rails/actiontext\")\n// If you're adding more admin-only JS, consider refactoring this out\n// into a separate entry point; we just didn't have time when adding trix.\n\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 'controllers'\nimport 'donut'\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","map","webpackContext","webpackContextResolve","__webpack_require__","o","Object","channels","require","forEach","Controller","toggleDetails","event","target","closest","this","detailsTarget","classList","toggle","summaryTarget","hasNotesSummaryTarget","notesSummaryTarget","hasMarkCompletedTarget","markCompletedTarget","hasBackToActionPlanTarget","backToActionPlanTarget","targets","toggleModal","modalTarget","async","formTarget","checkValidity","preventDefault","originalButtonCopy","submitTarget","innerHTML","formData","FormData","disabled","value","replace","add","response","fetch","createPathValue","method","headers","Rails","csrfToken","body","setTimeout","ok","itemTypeValue","location","reload","openModalTarget","remove","alert","updatePathValue","values","recommendationId","String","createPath","updatePath","itemType","openDropdown","dropdownTarget","toggleChevron","handleClick","dropdownToggleClicked","dropdownToggleTarget","contains","hideDropdown","chevronDown","isChevronDown","chevronUp","chevronTarget","beforeCache","previousAssessementsDropdownTarget","downChevronTarget","upChevronTarget","dropdownClicked","connect","timer","copy","clearInterval","sourceTarget","select","document","execCommand","buttonTarget","radioButtonTargets","find","checked","enableIcon","disableIcon","openCommentBox","querySelectorAll","commentBox","application","getControllerForElementAndIdentifier","closeCommentBox","commentBoxTarget","submitForm","currentTarget","setAttribute","getElementById","click","iconTargets","initialize","closeWizard","wizardTarget","activeAssessmentYear","activeAssessmentYearValue","isAllTab","fetchDemographics","filters","url","URL","urlValue","searchParams","append","then","text","data","dataContainerTargets","container","catch","console","error","setAttributes","attributes","year","all","applyFilter","handleAllOption","filterTargets","filter","selectedFilters","resetFilters","allTargets","allFilter","selected","push","length","comparison","toggleDropdown","addField","content","fieldInputTemplateTarget","Date","valueOf","newFieldTarget","insertAdjacentHTML","removeField","item","parentNode","removeChild","closeGroups","groupTargets","el","toggleGroupDropdown","unhighlightActiveGroup","highlightGroup","label","innerText","selectionTargets","Application","context","load","definitionsFromContext","addEventListener","controllers","controller","numberOfEmployees","numberOfEmployeesTarget","_revealMinNumOfEmployeesMessage","_resetStylesForTotalCost","_disableSubmitButton","_hideMinNumOfEmployeesMessage","params","num_of_respondents","JSON","stringify","parsedReponse","json","totalCostTarget","_convertPenceToPounds","cost","costPerEmployeeInPence","Math","round","costPerEmployeeInPounds","costPerEmployeeTarget","_enableSubmitButton","costInPence","Number","parseFloat","toFixed","minNumOfEmployeesDesktopTarget","minNumOfEmployeesMobileTarget","button","submitButtonTarget","costClassList","klass","pageTarget","menuTarget","openIconTarget","closeIconTarget","containerTarget","setBackgroundHeight","setModalOffset","clientHeight","innerContainerTarget","bgTarget","contentTarget","style","top","window","scrollY","removeHighlight","parentBoxTarget","selectOption","inputTargets","required","expandDetails","sectionTarget","expandQuestionDetails","currentQuestionNumber","dataset","questionNumber","questionDetailsTargets","questionDetails","questionTargets","question","element","link","host","hasAutoredirectTarget","visitCheckout","checkoutSessionPath","redirectButtonTarget","checkoutSessionUrl","stripePublicKey","public_key","stripe","loadStripe","checkoutSessionId","session","redirectToCheckout","sessionId","activeTabClasses","get","split","showTab","change","activeIndex","tabTargets","indexOf","tab","index","panel","panelTargets","parseInt","set","show","hasContentTarget","popperInstance","createPopper","triggerTarget","modifiers","name","options","offset","clickListener","hide","destroy","removeEventListener","disconnect","unfoldIfSelectedTargets","elem","open","every","close","unfoldingTarget","input","parentQuestionTargets","answers","reverseScoreValue","includes","childQuestionContainerTarget","childQuestionTargets","reverseScore","Boolean","makeDonut","categories","totalCount","radius","min","totalComplete","reduce","acc","c","completed_count","svg","d3","attr","color","range","pie","d","total_count","sort","selectAll","join","innerRadius","outerRadius","Element","prototype","matches","msMatchesSelector","webkitMatchesSelector","s","call","parentElement","nodeType"],"sourceRoot":""}