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,YAAayK,EAAiBN,WAC9BjK,UAAWgK,EAAAA,QAAkBQ,GAAeP,aAGjCS,EAAsBV,EAAAA,MAAgB,CACjDnU,QAASwU,EAAaJ,WACtB7K,aAAc4K,EAAAA,QAAkBS,GAAyBR,aAG9CU,EAAmCX,EAAAA,MAAgB,CAC9DnU,QAASwU,EAAaJ,WACtBjK,UAAWgK,EAAAA,QAAkBQ,GAAeP,Y","sources":["webpack://safeplus/./app/javascript/components/ sync ^\\.\\/.*$","webpack://safeplus/./app/javascript/components/AccordionArrow.jsx","webpack://safeplus/./app/javascript/components/AssessmentRespondentForm.js","webpack://safeplus/./app/javascript/components/AssessmentRespondentMessage.js","webpack://safeplus/./app/javascript/components/AssessmentRespondentRow.js","webpack://safeplus/./app/javascript/components/AssessmentRespondentTable.js","webpack://safeplus/./app/javascript/components/AssessmentRespondentView.js","webpack://safeplus/./app/javascript/components/BarGraph.js","webpack://safeplus/./app/javascript/components/ElementRowColumn.jsx","webpack://safeplus/./app/javascript/components/ElementRowDetails.jsx","webpack://safeplus/./app/javascript/components/OrderControls.jsx","webpack://safeplus/./app/javascript/components/OrderManager/ElementRow/ElementRow.jsx","webpack://safeplus/./app/javascript/components/OrderManager/ElementRowRequirements/ElementRowRequirements.jsx","webpack://safeplus/./app/javascript/components/OrderManager/OrderManager.jsx","webpack://safeplus/./app/javascript/components/OrderManager/QuestionHeader/QuestionHeader.jsx","webpack://safeplus/./app/javascript/components/OrderManager/QuestionRow/QuestionRow.jsx","webpack://safeplus/./app/javascript/components/OrderManager/QuestionRowColumn/QuestionRowColumn.jsx","webpack://safeplus/./app/javascript/components/OrderManager/RequirementHeader/RequirementHeader.jsx","webpack://safeplus/./app/javascript/components/OrderManager/RequirementRow/RequirementRow.jsx","webpack://safeplus/./app/javascript/components/OrderManager/RequirementRowColumn/RequirementRowColumn.jsx","webpack://safeplus/./app/javascript/components/OrderManager/RequirementRowDetails/RequirementRowDetails.jsx","webpack://safeplus/./app/javascript/components/OrderManager/RequirementRowQuestions/RequirementRowQuestions.jsx","webpack://safeplus/./app/javascript/components/OrderManager/index.js","webpack://safeplus/./app/javascript/components/PriorityManager/ElementRow/ElementRow.jsx","webpack://safeplus/./app/javascript/components/PriorityManager/ElementRowQuestions/ElementRowQuestions.jsx","webpack://safeplus/./app/javascript/components/PriorityManager/PriorityManager.jsx","webpack://safeplus/./app/javascript/components/PriorityManager/QuestionHeader/QuestionHeader.jsx","webpack://safeplus/./app/javascript/components/PriorityManager/QuestionRow/QuestionRow.jsx","webpack://safeplus/./app/javascript/components/PriorityManager/QuestionRowColumn/QuestionRowColumn.jsx","webpack://safeplus/./app/javascript/components/PriorityManager/index.js","webpack://safeplus/./app/javascript/components/RespondentForm.js","webpack://safeplus/./app/javascript/components/RespondentRow.js","webpack://safeplus/./app/javascript/components/RespondentTable.js","webpack://safeplus/./app/javascript/components/RespondentView.js","webpack://safeplus/./app/javascript/components/StackedBarGraph.js","webpack://safeplus/./app/javascript/components/shapes.js"],"sourcesContent":["var map = {\n\t\"./AccordionArrow\": 64877,\n\t\"./AccordionArrow.jsx\": 64877,\n\t\"./AssessmentRespondentForm\": 91318,\n\t\"./AssessmentRespondentForm.js\": 91318,\n\t\"./AssessmentRespondentMessage\": 28953,\n\t\"./AssessmentRespondentMessage.js\": 28953,\n\t\"./AssessmentRespondentRow\": 9198,\n\t\"./AssessmentRespondentRow.js\": 9198,\n\t\"./AssessmentRespondentTable\": 57490,\n\t\"./AssessmentRespondentTable.js\": 57490,\n\t\"./AssessmentRespondentView\": 35229,\n\t\"./AssessmentRespondentView.js\": 35229,\n\t\"./BarGraph\": 25111,\n\t\"./BarGraph.js\": 25111,\n\t\"./ElementRowColumn\": 36790,\n\t\"./ElementRowColumn.jsx\": 36790,\n\t\"./ElementRowDetails\": 59416,\n\t\"./ElementRowDetails.jsx\": 59416,\n\t\"./OrderControls\": 20348,\n\t\"./OrderControls.jsx\": 20348,\n\t\"./OrderManager\": 73508,\n\t\"./OrderManager/\": 73508,\n\t\"./OrderManager/ElementRow/ElementRow\": 24811,\n\t\"./OrderManager/ElementRow/ElementRow.jsx\": 24811,\n\t\"./OrderManager/ElementRowRequirements/ElementRowRequirements\": 34583,\n\t\"./OrderManager/ElementRowRequirements/ElementRowRequirements.jsx\": 34583,\n\t\"./OrderManager/OrderManager\": 84751,\n\t\"./OrderManager/OrderManager.jsx\": 84751,\n\t\"./OrderManager/QuestionHeader/QuestionHeader\": 16089,\n\t\"./OrderManager/QuestionHeader/QuestionHeader.jsx\": 16089,\n\t\"./OrderManager/QuestionRow/QuestionRow\": 67573,\n\t\"./OrderManager/QuestionRow/QuestionRow.jsx\": 67573,\n\t\"./OrderManager/QuestionRowColumn/QuestionRowColumn\": 68741,\n\t\"./OrderManager/QuestionRowColumn/QuestionRowColumn.jsx\": 68741,\n\t\"./OrderManager/RequirementHeader/RequirementHeader\": 30877,\n\t\"./OrderManager/RequirementHeader/RequirementHeader.jsx\": 30877,\n\t\"./OrderManager/RequirementRow/RequirementRow\": 42233,\n\t\"./OrderManager/RequirementRow/RequirementRow.jsx\": 42233,\n\t\"./OrderManager/RequirementRowColumn/RequirementRowColumn\": 32273,\n\t\"./OrderManager/RequirementRowColumn/RequirementRowColumn.jsx\": 32273,\n\t\"./OrderManager/RequirementRowDetails/RequirementRowDetails\": 38797,\n\t\"./OrderManager/RequirementRowDetails/RequirementRowDetails.jsx\": 38797,\n\t\"./OrderManager/RequirementRowQuestions/RequirementRowQuestions\": 60117,\n\t\"./OrderManager/RequirementRowQuestions/RequirementRowQuestions.jsx\": 60117,\n\t\"./OrderManager/index\": 73508,\n\t\"./OrderManager/index.js\": 73508,\n\t\"./PriorityManager\": 94094,\n\t\"./PriorityManager/\": 94094,\n\t\"./PriorityManager/ElementRow/ElementRow\": 77417,\n\t\"./PriorityManager/ElementRow/ElementRow.jsx\": 77417,\n\t\"./PriorityManager/ElementRowQuestions/ElementRowQuestions\": 79471,\n\t\"./PriorityManager/ElementRowQuestions/ElementRowQuestions.jsx\": 79471,\n\t\"./PriorityManager/PriorityManager\": 95203,\n\t\"./PriorityManager/PriorityManager.jsx\": 95203,\n\t\"./PriorityManager/QuestionHeader/QuestionHeader\": 84183,\n\t\"./PriorityManager/QuestionHeader/QuestionHeader.jsx\": 84183,\n\t\"./PriorityManager/QuestionRow/QuestionRow\": 14571,\n\t\"./PriorityManager/QuestionRow/QuestionRow.jsx\": 14571,\n\t\"./PriorityManager/QuestionRowColumn/QuestionRowColumn\": 91235,\n\t\"./PriorityManager/QuestionRowColumn/QuestionRowColumn.jsx\": 91235,\n\t\"./PriorityManager/index\": 94094,\n\t\"./PriorityManager/index.js\": 94094,\n\t\"./RespondentForm\": 72948,\n\t\"./RespondentForm.js\": 72948,\n\t\"./RespondentRow\": 74352,\n\t\"./RespondentRow.js\": 74352,\n\t\"./RespondentTable\": 71076,\n\t\"./RespondentTable.js\": 71076,\n\t\"./RespondentView\": 57031,\n\t\"./RespondentView.js\": 57031,\n\t\"./StackedBarGraph\": 88632,\n\t\"./StackedBarGraph.js\": 88632,\n\t\"./shapes\": 46150,\n\t\"./shapes.js\": 46150\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 = 86900;","import cx from \"classnames\";\nimport * as PropTypes from \"prop-types\";\nimport React from \"react\";\n\nconst AccordionArrow = props => (\n
\n \n
\n);\n\nAccordionArrow.propTypes = {\n className: PropTypes.string,\n pointUp: PropTypes.bool,\n colour: PropTypes.string\n};\n\nexport default AccordionArrow;\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\n\nclass AssessmentRespondentForm extends React.Component {\n\n constructor(props) {\n super(props);\n\n if(props.assessment_respondent) {\n this.state = {\n id: props.assessment_respondent.id,\n name: props.assessment_respondent.name,\n email: props.assessment_respondent.email,\n mobile: props.assessment_respondent.mobile,\n preferred_comms_method: props.assessment_respondent.preferred_comms_method\n };\n }\n else {\n this.state = {\n id: \"\",\n name: \"\",\n email: \"\",\n mobile: \"\",\n preferred_comms_method: \"prefers_email_comms\"\n };\n }\n };\n\n componentDidMount() {\n $(\"#email\").focus()[0].scrollIntoView({block: \"center\"});\n }\n\n handleSave = id => {\n var data = {\n name: this.state.name,\n email: this.state.email,\n mobile: this.state.mobile,\n preferred_comms_method: this.preferredCommsMethodValue()\n };\n\n if(this.props.assessment_started) {\n this.props.handleConfirmAndSend(id, data);\n return\n }\n\n this.props.handleConfirm(id, data);\n };\n\n handleCancel() {\n this.props.handleCancel();\n };\n\n handleInputChange = (e) => {\n const value = e.target.type === \"checkbox\" ? e.target.checked : e.target.value;\n this.setState({\n [e.target.name]: value\n });\n };\n\n validateInput = (element) => {\n const value = element.value;\n const attribute = element.name;\n\n this.setState({\n [element.name]: value\n });\n\n let valid = true;\n let message = \"\";\n\n switch(attribute) {\n case \"email\":\n valid = value.length == 0 || value.match(/^([\\w.%+-]+)@([\\w-]+\\.)+([\\w]{2,})$/i);\n message = valid ? '' : \"Please enter a valid email address\";\n break;\n case \"mobile\":\n valid = value.length == 0 || value.match(/^02\\d{7,9}$/i);\n message = valid ? '': \"A mobile number must start with 02 and be 9-11 numbers with no spaces or dashes\";\n break;\n default:\n break;\n }\n\n this.props.addValidationError(attribute, message);\n }\n\n renderInputError = (attribute) => {\n let error;\n if(this.inputErrorPresent(attribute)) {\n error = this.props.errors[attribute][this.props.errors[attribute].length - 1];\n return(\n \n );\n }\n }\n\n inputErrorPresent = (attribute) => {\n return (\n this.props.errors[attribute] && this.props.errors[attribute].length\n )\n }\n\n renderPreferredCommsMethod = (email, mobile, preferredCommsMethod) => {\n const canHavePreference = email && email.length > 0 && mobile && mobile.length > 0;\n\n if(canHavePreference) {\n return
\n
\n \n
\n \n \n
\n
\n \n \n
\n
\n
\n }\n };\n\n preferredCommsMethodValue() {\n if(this.state.email && this.state.mobile)\n return this.state.preferred_comms_method;\n\n return this.state.email ? \"email\" : \"mobile\";\n };\n\n preferredCommsHeaderValue() {\n if (this.props.assessment_started)\n return `Resend invitation to ${this.state.name}`\n\n return `Update contact details for ${this.state.name} for this assessment`\n };\n\n preferredCommsSaveButtonLabel() {\n if (this.props.assessment_started)\n return \"Send\";\n\n return \"Confirm\";\n };\n\n render() {\n\n return (\n
\n
\n

{ this.preferredCommsHeaderValue() }

\n\n
\n \n this.validateInput(e.target)} placeholder=\"e.g. admin@betabuilding.co.nz\" maxLength=\"254\" />\n { this.renderInputError(\"email\") }\n
\n\n
\n \n this.validateInput(e.target)} placeholder=\"e.g. 02123456789\" maxLength=\"11\" />\n { this.renderInputError(\"mobile\") }\n
\n\n { this.renderPreferredCommsMethod(this.state.email, this.state.mobile, this.state.preferred_comms_method) }\n\n { this.renderInputError(\"base\") }\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n )\n }\n}\n\nAssessmentRespondentForm.propTypes = {\n errors: PropTypes.object,\n assessment_started: PropTypes.bool\n};\n\nexport default AssessmentRespondentForm;\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\n\nclass AssessmentRespondentMessage extends React.Component {\n render() {\n let message = \"\";\n if(this.props.assessment_respondent && this.props.success) {\n const { name, email, mobile, preferred_comms_method } = this.props.assessment_respondent;\n let address;\n let method;\n if(preferred_comms_method == \"prefers_email_comms\" || preferred_comms_method == \"email\") {\n address = email;\n method = \"email\"\n }\n else {\n address = mobile;\n method = \"SMS\"\n }\n message = `${ name } has been sent an invitation via ${ method } to ${ address}.`;\n }\n return (\n

{ message }

\n )\n }\n}\n\nAssessmentRespondentMessage.propTypes = {\n success: PropTypes.bool,\n assessment_respondent: PropTypes.object\n};\n\nexport default AssessmentRespondentMessage;\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\nimport AssessmentRespondentView from \"./AssessmentRespondentView\"\nimport AssessmentRespondentForm from \"./AssessmentRespondentForm\"\n\nclass AssessmentRespondentRow extends React.Component {\n\n constructor(props) {\n super(props);\n this.state = { errors: {} };\n };\n\n handleCancel = () => {\n this.setState({ errors: {} });\n this.props.resetForms();\n };\n\n handleEdit = () => {\n this.props.setEditMode(this.props.assessment_respondent.id);\n };\n\n handleUpdate = (id, assessment_respondent, send = false) => {\n this.updateAssessmentRespondent(id, assessment_respondent)\n .done(() => {\n if (send) {\n this.sendAssessmentInvitation(id);\n }\n })\n .done(() => {\n this.props.loadRespondents();\n this.props.resetForms();\n this.setState({ errors: {} });\n this.props.setMessageStatus(assessment_respondent, true);\n })\n .fail((response, status, error) => {\n this.setState({ errors: response.responseJSON });\n this.props.setMessageStatus(assessment_respondent, false);\n });\n };\n\n handleUpdateAndSend = (id, assessment_respondent) => {\n this.handleUpdate(id, assessment_respondent, true)\n };\n\n updateAssessmentRespondent = (id, assessment_respondent) => {\n return $.ajax({\n url: `/api/assessments/${this.props.assessment_id}/assessment_respondents/${id}`,\n type: \"PATCH\",\n data: { assessment_respondent: assessment_respondent },\n });\n };\n\n sendAssessmentInvitation = (id) => {\n return $.ajax({\n url: \"/api/assessment_invitations\",\n type: \"POST\",\n data: { assessment_respondent_id: id },\n });\n };\n\n addValidationError = (attribute, message) => {\n let errors = this.state.errors;\n errors[attribute] = message == \"\" ? [] : [ message ];\n this.setState({ errors: errors });\n }\n\n render() {\n let row;\n if(this.props.editMode) {\n row = ;\n }\n else {\n row = ;\n }\n\n return (\n
\n { row }\n
\n )\n }\n}\n\nAssessmentRespondentRow.propTypes = {\n editMode: PropTypes.bool,\n assessment_respondent: PropTypes.object,\n assessment_id: PropTypes.number,\n assessment_started: PropTypes.bool\n};\n\nexport default AssessmentRespondentRow;\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\nimport AssessmentRespondentRow from \"./AssessmentRespondentRow\"\nimport AssessmentRespondentMessage from \"./AssessmentRespondentMessage\"\n\nclass AssessmentRespondentTable extends React.Component {\n constructor(props) {\n super(props);\n this.state = { assessment_respondents: [], editMode: {}, invitationSuccess: false, current_assessment_respondent: null };\n };\n\n componentWillMount() {\n this.loadRespondents();\n };\n\n loadRespondents = () => {\n $.getJSON(`/api/assessments/${this.props.assessment_id}/assessment_respondents.json`, (response) => {\n this.setState({ assessment_respondents: response });\n });\n };\n\n resetForms = () => {\n let forms = {};\n this.state.assessment_respondents.map((assessment_respondent) => {\n forms[assessment_respondent.id] = false;\n });\n this.setState({ editMode: forms });\n };\n\n setEditMode = (id) => {\n let forms = {};\n this.state.assessment_respondents.map((assessment_respondent) => {\n forms[assessment_respondent.id] = assessment_respondent.id == id;\n })\n this.setState({ editMode: forms });\n };\n\n setMessageStatus = (assessment_respondent, success) => {\n this.setState({ current_assessment_respondent: assessment_respondent })\n this.setState({ invitationSuccess: success });\n };\n\n render () {\n let content =

There are no people in this assessment.

;\n\n if(this.state.assessment_respondents.length > 0) {\n content = this.state.assessment_respondents.map((assessment_respondent, index) => {\n return ;\n });\n }\n\n return (\n
\n
\n
Name
\n
Role
\n
Location
\n
Region
\n
Team
\n
Email
\n
Mobile
\n
Preference
\n
Resend
\n
\n\n
\n { content }\n
\n \n
\n );\n }\n}\n\nAssessmentRespondentTable.propTypes = {\n assessment_id: PropTypes.number,\n assessment_started: PropTypes.bool\n};\n\nexport default AssessmentRespondentTable;\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\n\nclass AssessmentRespondentView extends React.Component {\n\n constructor(props) {\n super(props);\n this.state = { editable: false };\n };\n\n handleEdit = () => {\n this.props.handleEdit();\n };\n\n render() {\n const { name: fullName, email, mobile, preferred_comms_method_display_value, preferred_comms_method, id, business_role: { name: roleName } } = this.props.assessment_respondent;\n return (\n
\n
\n Name{ fullName }\n
\n
\n Role{ roleName }\n
\n
\n Location{ this.props.assessment_respondent.business_location ? this.props.assessment_respondent.business_location.name : \"\" }\n
\n
\n Region{ this.props.assessment_respondent.business_territory ? this.props.assessment_respondent.business_territory.name : \"\" }\n
\n
\n Team{ this.props.assessment_respondent.business_function ? this.props.assessment_respondent.business_function.name : \"\" }\n
\n
\n Email{ email }\n
\n
\n Mobile{ mobile }\n
\n
\n Preferred Comms{ preferred_comms_method_display_value }\n
\n
\n \n
\n
\n )\n }\n}\n\nexport default AssessmentRespondentView;\n","class BarGraph {\n constructor(canvas, endPoint, xAxis, yAxis, oversized, horizontal) {\n if (!canvas) { return; }\n\n this.canvas = canvas;\n this.xAxis = xAxis;\n this.yAxis = yAxis;\n this.oversized = !oversized;\n this.type = horizontal ? \"horizontalBar\" : \"bar\";\n\n fetch(endPoint, { credentials: \"same-origin\", dataType: \"JSON\" })\n .then(response => response.json())\n .then(data => this.renderGraph(data))\n .catch(error => this.displayError(error));\n };\n\n displayError(response) {\n this.canvas.replaceWith(response.responseText);\n };\n\n renderGraph(data) {\n new Chart(this.canvas, {\n type: this.type,\n data: {\n labels: Object.keys(data),\n datasets: [{\n data: Object.values(data)\n }]\n },\n options: {\n responsive: true,\n maintainAspectRatio: this.oversized,\n scales: {\n xAxes: [{\n scaleLabel: {\n display: true,\n labelString: this.xAxis,\n fontSize: 16\n },\n ticks: {\n min: 0\n }\n }],\n yAxes: [{\n scaleLabel: {\n display: true,\n labelString: this.yAxis,\n fontSize: 16\n },\n ticks: {\n min: 0\n }\n }]\n },\n legend: {\n display: false\n },\n elements: {\n rectangle: {\n backgroundColor: \"#e0e9f7\",\n borderColor: \"#214884\",\n borderWidth: 3\n }\n }\n }\n });\n };\n};\n\nexport default BarGraph;\n","import cx from \"classnames\";\nimport * as PropTypes from \"prop-types\";\nimport React from \"react\";\n\nconst ElementRowColumn = props => (\n
\n {props.children}\n
\n);\n\nElementRowColumn.propTypes = {\n children: PropTypes.node,\n className: PropTypes.string\n};\n\nexport default ElementRowColumn;\n","import cx from \"classnames\";\nimport * as PropTypes from \"prop-types\";\nimport React from \"react\";\nimport { ElementShape } from \"./shapes\";\nimport AccordionArrow from \"./AccordionArrow\";\nimport ElementRowColumn from \"./ElementRowColumn\";\n\nclass ElementRowDetails extends React.Component {\n static propTypes = {\n element: ElementShape.isRequired,\n open: PropTypes.bool.isRequired\n };\n\n /**\n * Gets the content to render for the given \"column\" of this row's `Element`.\n *\n * If no `content` is provided, `columnName` is assumed to be a key for a property\n * on this components `Element` prop, and used as such to get a value.\n *\n * @param {string} columnName\n * @param {string|React.ReactNode} content\n *\n * @return {JSX}\n */\n getElementColumnRenderContent(\n columnName,\n content = this.props.element[columnName]\n ) {\n return (\n \n {content}\n \n );\n }\n\n /**\n * Creates a dasherised HTML class to identify the element\n *\n * @return {string}\n */\n getElementRowClass() {\n return `record-row--${this.props.element.name\n .replace(/\\s+/g, \"-\")\n .toLowerCase()}`;\n }\n\n render() {\n // Element Name, the Element Display Order number.\n return (\n \n {this.getElementColumnRenderContent(\"name\")}\n {this.getElementColumnRenderContent(\"order_within_parent\")}\n \n \n );\n }\n}\n\nexport default ElementRowDetails;\n","import cx from \"classnames\";\nimport * as PropTypes from \"prop-types\";\nimport React from \"react\";\n\nconst OrderControls = props => (\n
\n
\n
\n
\n);\n\nOrderControls.propTypes = {\n className: PropTypes.string,\n onMoveUpArrowClick: PropTypes.func.isRequired,\n onMoveDownArrowClick: PropTypes.func.isRequired\n};\n\nexport default OrderControls;\n","import * as PropTypes from \"prop-types\";\nimport React, { Component } from \"react\";\nimport Collapsible from \"react-collapsible\";\nimport { GroupedElementShape } from \"../../shapes\";\nimport ElementRowDetails from \"../../ElementRowDetails\";\nimport ElementRowRequirements from \"../ElementRowRequirements/ElementRowRequirements\";\n\nclass ElementRow extends Component {\n state = {\n open: false\n };\n\n /**\n * Handles when the `Collapsible` starts opening.\n */\n handleCollapsibleOpening = () => this.setState({ open: true });\n\n /**\n * Handles when the `Collapsible` starts closing.\n */\n handleCollapsibleClosing = () => this.setState({ open: false });\n\n render() {\n return (\n \n }\n\n onOpening={this.handleCollapsibleOpening}\n onClosing={this.handleCollapsibleClosing}\n >\n \n \n );\n }\n}\n\nElementRow.propTypes = {\n groupedElement: GroupedElementShape.isRequired,\n rowsPerHeader: PropTypes.number,\n onMoveRequirementUp: PropTypes.func.isRequired,\n onMoveRequirementDown: PropTypes.func.isRequired,\n onMoveQuestionUp: PropTypes.func.isRequired,\n onMoveQuestionDown: PropTypes.func.isRequired\n};\n\nElementRow.defaultProps = {\n rowsPerHeader: 0\n};\n\nexport default ElementRow;\n","import * as PropTypes from \"prop-types\";\nimport React from \"react\";\nimport { GroupedRequirementShape } from \"../../shapes\";\nimport RequirementHeader from \"../RequirementHeader/RequirementHeader\";\nimport RequirementRow from \"../RequirementRow/RequirementRow\";\n\nclass ElementRowRequirements extends React.Component {\n static propTypes = {\n groupedRequirements: PropTypes.arrayOf(GroupedRequirementShape).isRequired,\n rowsPerHeader: PropTypes.number,\n onMoveRequirementUp: PropTypes.func.isRequired,\n onMoveRequirementDown: PropTypes.func.isRequired,\n onMoveQuestionUp: PropTypes.func.isRequired,\n onMoveQuestionDown: PropTypes.func.isRequired\n };\n\n static defaultProps = {\n rowsPerHeader: 0\n };\n\n /**\n * Checks if a `RequirementHeader` component should be added to the list of `RequirementRow`s,\n * based on the index of the current `Requirement` being rendered, compared with the value of `rowsPerHeader`.\n *\n * @param {number} index\n *\n * @return {boolean}\n */\n shouldAddRequirementRowHeader(index) {\n if (this.props.rowsPerHeader === false) {\n return false;\n }\n\n if (index === 0) {\n return true;\n }\n\n return index % this.props.rowsPerHeader === 0;\n }\n\n render() {\n return (\n
\n {\n this.props.groupedRequirements.map((groupedRequirement, index) => [\n this.shouldAddRequirementRowHeader(index) && ,\n \n ])\n }\n
\n );\n }\n}\n\nexport default ElementRowRequirements;\n","import * as PropTypes from \"prop-types\";\nimport React from \"react\";\nimport { ElementShape, QuestionShape, RequirementShape } from \"../shapes\";\nimport ElementRow from \"./ElementRow/ElementRow\";\n\nclass OrderManager extends React.Component {\n static propTypes = {\n elements: PropTypes.arrayOf(ElementShape).isRequired,\n requirements: PropTypes.arrayOf(RequirementShape).isRequired,\n questions: PropTypes.arrayOf(QuestionShape).isRequired\n };\n\n state = {\n elements: this.props.elements,\n requirements: this.props.requirements,\n questions: this.props.questions\n };\n\n /**\n * Handles when a `Requirement` is moved up.\n */\n handleMoveRequirementUp = ({ requirement }) => this.moveRequirementOnState(requirement, -1);\n\n /**\n * Handles when a `Requirement` is moved down.\n */\n handleMoveRequirementDown = ({ requirement }) => this.moveRequirementOnState(requirement, +1);\n\n /**\n * Handles when a `Question` is moved up.\n */\n handleMoveQuestionUp = ({ question }) => this.moveQuestionOnState(question, -1);\n\n /**\n * Handles when a `Question` is moved down.\n */\n handleMoveQuestionDown = ({ question }) => this.moveQuestionOnState(question, +1);\n\n /**\n * @inheritDoc\n *\n * @override\n */\n componentDidMount() {\n /*\n Submission is done by mapping each question & requirement into an input,\n with the name being the record type & id, & the value being their position.\n\n The naming structure should result in a `params` containing two hashes,\n named `questions` & `requirements`, with the key being the record id, like so:\n\n {\n \"questions\" => { \"1\" => \"1\", \"2\" => \"2\", \"3\" => \"1\", ... },\n \"requirements\" => { \"1\" => \"1\", \"2\" => \"2\", \"3\" => \"3\", ... }\n }\n */\n $(\"#save-order-form\").on(\"submit\", event =>\n $(event.target)\n .append(\n ...this.state.requirements.map(requirement =>\n $(\"\")\n .attr(\"name\", `requirements[${requirement.id}]`)\n .attr(\"value\", JSON.stringify({ order_within_parent: requirement.order_within_parent, edited: requirement[\"edited\"]}))\n .attr(\"type\", \"hidden\")\n ),\n ...this.state.questions.map(question =>\n $(\"\")\n .attr(\"name\", `questions[${question.id}]`)\n .attr(\"value\", JSON.stringify({ order_within_parent: question.order_within_parent, edited: question[\"edited\"]}))\n .attr(\"type\", \"hidden\")\n )\n )\n );\n\n /*\n When `#discard-order-button` is clicked, we reset everything by just\n copying the props to the state, since they should be structurally 1:1.\n */\n $(\"#discard-order-button\").on(\"click\", () => this.setState({ ...this.props }));\n }\n\n /**\n * Gets all the `Question`s that belong to the given `requirement` from the `state`.\n *\n * @param {Object} requirement\n *\n * @return {Array}\n */\n getQuestionsForRequirementFromState(requirement) {\n const requirementId = requirement.parent_id !== null\n ? requirement.parent_id\n : requirement.id;\n\n return this.state.questions\n .filter(question => question.requirement_id === requirementId)\n .sort((a, b) => a.order_within_parent - b.order_within_parent);\n }\n\n /**\n * Gets all the `Requirement`s that belong to the given `element` from the `state`.\n *\n * @param {Object} element\n *\n * @return {Array}\n */\n getRequirementsForElementFromState(element) {\n const elementId = element.parent_id !== null\n ? element.parent_id\n : element.id;\n\n return this.state.requirements\n .filter(requirement => requirement.element_id === elementId)\n .sort((a, b) => a.order_within_parent - b.order_within_parent);\n }\n\n /**\n * Groups the given `requirement` with its `questions` from the `state`.\n *\n * @param {Object} requirement the `Requirement` to group with its `Question`s.\n *\n * @return {Object}\n */\n groupRequirementWithQuestionsFromState(requirement) {\n return {\n requirement,\n questions: this.getQuestionsForRequirementFromState(requirement)\n };\n }\n\n /**\n * Groups the `requirements` of the given `element` from the `state` with their `questions`.\n *\n * @param {Object} element the `Element` to group `Requirement`s for.\n *\n * @return {Array}\n */\n groupRequirementsForElementFromState(element) {\n return this.getRequirementsForElementFromState(element)\n .map(requirement => this.groupRequirementWithQuestionsFromState(requirement));\n }\n\n /**\n * Maps `elements` from the `state` into groups containing the `Element` & their\n * `Requirement`s, in turn grouped with their `Question`s.\n *\n * @return {Array}\n */\n groupElementsFromState() {\n return this.state.elements.map(element => ({\n element,\n requirements: this.groupRequirementsForElementFromState(element)\n })).sort((a, b) => a.element.order_within_parent - b.element.order_within_parent);\n }\n\n /**\n * Moves the given `requirement` by the given `amount` in the `requirements` collection on the state.\n *\n * This method causes the recalculation of the `order_within_parent` of *all* `Requirement`s.\n *\n * @param {Object} requirement\n * @param {number} amount\n */\n moveRequirementOnState(requirement, amount) {\n const newPosition = requirement.order_within_parent + amount;\n\n if (newPosition <= 0) {\n return;\n }\n\n const {\n requirementsToReorder,\n otherRequirements\n } = this.state.requirements.reduce(\n (acc, aRequirement) => {\n ( // only requirements belonging to the same element get sorted\n aRequirement.element_id === requirement.element_id\n ? acc.requirementsToReorder\n : acc.otherRequirements\n ).push(aRequirement);\n\n return acc;\n }, // we need to retain the other requirements to concat later\n { requirementsToReorder: [], otherRequirements: [] }\n );\n\n this.setState({\n requirements: this.reorderOrderableInCollection(\n requirement,\n newPosition,\n requirementsToReorder\n ).concat(otherRequirements)\n });\n }\n\n /**\n * Moves the given `question` by the given `amount` in the `questions` collection on the state.\n *\n * This method causes the recalculation of the `order_within_parent` of *all* `Question`s.\n *\n * @param {Object} question\n * @param {number} amount\n */\n moveQuestionOnState(question, amount) {\n const newPosition = question.order_within_parent + amount;\n\n if (newPosition <= 0) {\n return;\n }\n\n const {\n questionsToReorder,\n otherQuestions\n } = this.state.questions.reduce(\n (acc, aQuestion) => {\n ( // only questions belonging to the same requirement get sorted\n aQuestion.requirement_id === question.requirement_id\n ? acc.questionsToReorder\n : acc.otherQuestions\n ).push(aQuestion);\n\n return acc;\n }, // we need to retain the other questions to concat later\n { questionsToReorder: [], otherQuestions: [] }\n );\n\n this.setState({\n questions: this.reorderOrderableInCollection(\n question,\n newPosition,\n questionsToReorder\n ).concat(otherQuestions)\n });\n }\n\n /**\n * Reorders the given `orderable` to be in the given `position`,\n * recalculating the `order_within_parent` value of all elements in the given `orderables`,\n * to reflect their orders with the `orderable` in its news position.\n *\n * @param {T} orderable\n * @param {number} position\n * @param {Array} orderables\n *\n * @return {Array}\n *\n * @template T\n */\n reorderOrderableInCollection(orderable, position, orderables) {\n orderable[\"edited\"] = true\n\n const objects = [...orderables].sort((a, b) => a.order_within_parent - b.order_within_parent);\n\n objects.splice(objects.indexOf(orderable), 1);\n objects.splice(position - 1, 0, orderable);\n\n return objects.map((orderable, pos) => Object.assign({}, orderable, { order_within_parent: pos + 1 }));\n }\n\n render() {\n const groupedElements = this.groupElementsFromState();\n\n return (\n
\n {\n groupedElements.map(groupedElement => (\n \n ))\n }\n
\n );\n }\n}\n\nexport default OrderManager;\n","import cx from \"classnames\";\nimport React from \"react\";\nimport QuestionRowColumn from \"../QuestionRowColumn/QuestionRowColumn\";\n\n/**\n * Gets the content to render for the given \"column\" of this rows `Question`.\n *\n * @param {string} columnName\n * @param {string} content\n *\n * @return {JSX}\n *\n * @instance\n */\nconst getQuestionColumnRenderContent = (columnName, content) => (\n \n {content}\n \n);\n\nconst QuestionHeader = () => (\n
\n \n {getQuestionColumnRenderContent(\"code\", \"Code\")}\n {getQuestionColumnRenderContent(\"most_senior_statement\", \"Most senior statement\")}\n {getQuestionColumnRenderContent(\"priority_within_element\", \"Priority within element\")}\n {getQuestionColumnRenderContent(\"status\", \"Status\")}\n
\n);\n\nexport default QuestionHeader;\n","import cx from \"classnames\";\nimport * as PropTypes from \"prop-types\";\nimport React from \"react\";\nimport { QuestionShape } from \"../../shapes\";\nimport OrderControls from \"../../OrderControls\";\nimport QuestionRowColumn from \"../QuestionRowColumn/QuestionRowColumn\";\n\nclass QuestionRow extends React.Component {\n static propTypes = {\n question: QuestionShape.isRequired,\n hideOrderingControls: PropTypes.bool,\n onMoveQuestionUp: PropTypes.func.isRequired,\n onMoveQuestionDown: PropTypes.func.isRequired\n };\n\n static defaultProps = {\n hideOrderingControls: false\n };\n\n /**\n * Handles when the up arrow on the `OrderControls` component is clicked.\n */\n handleMoveUpArrowClick = () =>\n this.props.onMoveQuestionUp({ question: this.props.question });\n\n /**\n * Handles when the down arrow on the `OrderControls` component is clicked.\n */\n handleMoveDownArrowClick = () =>\n this.props.onMoveQuestionDown({ question: this.props.question });\n\n /**\n * Gets the `text` of this components `Question`'s `most_senior_statement`,\n * if it has one.\n *\n * @return {string}\n */\n getMostSeniorStatementText() {\n const mostSeniorStatement = this.props.question.most_senior_statement;\n\n if (mostSeniorStatement === null) {\n return \"------\";\n }\n\n return mostSeniorStatement.text;\n }\n\n /**\n * Gets the content to render for the order controls section of this component.\n *\n * If `hideOrderingControls` is `true`, then an empty `QuestionRowColumn` is returned.\n * Otherwise, an `OrderControls` component is returned.\n *\n * @return {JSX}\n */\n getOrderControlsColumnRenderContent() {\n if (this.props.hideOrderingControls) {\n return (\n \n );\n }\n\n return (\n \n );\n }\n\n /**\n * Gets the content to render for the given \"column\" of this rows `Question`.\n *\n * If no `content` is provided, `columnName` is assumed to be a key for a property\n * on this components `Question` prop, and used as such to get a value.\n *\n * @param {string} columnName\n * @param {string|React.ReactNode} content\n *\n * @return {JSX}\n */\n getQuestionColumnRenderContent(\n columnName,\n content = this.props.question[columnName]\n ) {\n return (\n \n {content}\n \n );\n }\n\n render() {\n // * property order: up/down arrow, display order within parent, code, most senior role statement, priority within element, record status\n return (\n
\n {this.getOrderControlsColumnRenderContent()}\n {this.getQuestionColumnRenderContent(\"code\")}\n {this.getQuestionColumnRenderContent(\n \"most_senior_statement\",\n this.getMostSeniorStatementText()\n )}\n {this.getQuestionColumnRenderContent(\"priority_within_element\")}\n {this.getQuestionColumnRenderContent(\"status\")}\n
\n );\n }\n}\n\nexport default QuestionRow;\n","import cx from \"classnames\";\nimport * as PropTypes from \"prop-types\";\nimport React from \"react\";\n\nconst QuestionRowColumn = props => (\n
\n {props.children}\n
\n);\n\nQuestionRowColumn.propTypes = {\n children: PropTypes.node,\n className: PropTypes.string\n};\n\nexport default QuestionRowColumn;\n","import cx from \"classnames\";\nimport React from \"react\";\nimport RequirementRowColumn from \"../RequirementRowColumn/RequirementRowColumn\";\n\n/**\n * Gets the content to render for the given \"column\" of this rows `Requirement`.\n *\n * @param {string} columnName\n * @param {string} content\n *\n * @return {JSX}\n */\nconst getRequirementColumnRenderContent = (columnName, content) => (\n \n {content}\n \n);\n\nconst RequirementHeader = () => (\n
\n \n {getRequirementColumnRenderContent(\"code\", \"Code\")}\n {getRequirementColumnRenderContent(\"name\", \"Name\")}\n {getRequirementColumnRenderContent(\"optional\", \"Optional\")}\n {getRequirementColumnRenderContent(\"status\", \"Status\")}\n \n Number of Questions\n \n \n
\n);\n\nexport default RequirementHeader;\n","import * as PropTypes from \"prop-types\";\nimport React from \"react\";\nimport Collapsible from \"react-collapsible\";\nimport { GroupedRequirementShape } from \"../../shapes\";\nimport RequirementRowDetails from \"../RequirementRowDetails/RequirementRowDetails\";\nimport RequirementRowQuestions from \"../RequirementRowQuestions/RequirementRowQuestions\";\n\nclass RequirementRow extends React.Component {\n static propTypes = {\n groupedRequirement: GroupedRequirementShape.isRequired,\n rowsPerHeader: PropTypes.number,\n\n onMoveRequirementUp: PropTypes.func.isRequired,\n onMoveRequirementDown: PropTypes.func.isRequired,\n onMoveQuestionUp: PropTypes.func.isRequired,\n onMoveQuestionDown: PropTypes.func.isRequired\n };\n\n static defaultProps = {\n rowsPerHeader: 0\n };\n\n state = {\n open: false\n };\n\n /**\n * Handles when the up arrow on the `OrderControls` component is clicked.\n */\n handleMoveUpArrowClick = () => this.props.onMoveRequirementUp({ requirement: this.props.groupedRequirement.requirement });\n\n /**\n * Handles when the down arrow on the `OrderControls` component is clicked.\n */\n handleMoveDownArrowClick = () => this.props.onMoveRequirementDown({ requirement: this.props.groupedRequirement.requirement });\n\n /**\n * Handles when the `Collapsible` starts opening.\n */\n handleCollapsibleOpening = () => this.setState({ open: true });\n\n /**\n * Handles when the `Collapsible` starts closing.\n */\n handleCollapsibleClosing = () => this.setState({ open: false });\n\n render() {\n return (\n \n }\n\n onOpening={this.handleCollapsibleOpening}\n onClosing={this.handleCollapsibleClosing}\n >\n \n \n );\n }\n}\n\nexport default RequirementRow;\n","import cx from \"classnames\";\nimport * as PropTypes from \"prop-types\";\nimport React from \"react\";\n\nconst RequirementRowColumn = props => (\n
\n {props.children}\n
\n);\n\nRequirementRowColumn.propTypes = {\n children: PropTypes.node,\n className: PropTypes.string\n};\n\nexport default RequirementRowColumn;\n","import cx from \"classnames\";\nimport * as PropTypes from \"prop-types\";\nimport React from \"react\";\nimport { RequirementShape } from \"../../shapes\";\nimport AccordionArrow from \"../../AccordionArrow\";\nimport OrderControls from \"../../OrderControls\";\nimport RequirementRowColumn from \"../RequirementRowColumn/RequirementRowColumn\";\n\nclass RequirementRowDetails extends React.Component {\n static propTypes = {\n requirement: RequirementShape.isRequired,\n numberOfQuestions: PropTypes.number.isRequired,\n open: PropTypes.bool.isRequired,\n\n onMoveRequirementUp: PropTypes.func.isRequired,\n onMoveRequirementDown: PropTypes.func.isRequired\n };\n\n /**\n * Handles when the up arrow on the `OrderControls` component is clicked.\n *\n * @param {React.SyntheticEvent} event\n */\n handleMoveUpArrowClick = event => {\n event.stopPropagation();\n\n this.props.onMoveRequirementUp({ requirement: this.props.requirement });\n };\n\n /**\n * Handles when the down arrow on the `OrderControls` component is clicked.\n *\n * @param {React.SyntheticEvent} event\n */\n handleMoveDownArrowClick = event => {\n event.stopPropagation();\n\n this.props.onMoveRequirementDown({ requirement: this.props.requirement });\n };\n\n /**\n * Gets the `text` representation of this components `Requirement`'s `optional` property.\n *\n * @return {string}\n */\n getOptionalPropertyText() {\n return this.props.requirement.optional ? \"Y\" : \"N\";\n }\n\n /**\n * Gets the content to render for the given \"column\" of this row's `Requirement`.\n *\n * If no `content` is provided, `columnName` is assumed to be a key for a property\n * on this components `Requirement` prop, and used as such to get a value.\n *\n * @param {string} columnName\n * @param {string|React.ReactNode} content\n *\n * @return {JSX}\n */\n getRequirementColumnRenderContent(\n columnName,\n content = this.props.requirement[columnName]\n ) {\n return (\n \n {content}\n \n );\n }\n\n render() {\n return (\n
\n \n {this.getRequirementColumnRenderContent(\"code\")}\n {this.getRequirementColumnRenderContent(\"name\")}\n {this.getRequirementColumnRenderContent(\n \"optional\",\n this.getOptionalPropertyText()\n )}\n {this.getRequirementColumnRenderContent(\"status\")}\n \n {this.props.numberOfQuestions}\n \n \n
\n );\n }\n}\n\nexport default RequirementRowDetails;\n","import * as PropTypes from \"prop-types\";\nimport React from \"react\";\nimport { QuestionShape } from \"../../shapes\";\nimport QuestionHeader from \"../QuestionHeader/QuestionHeader\";\nimport QuestionRow from \"../QuestionRow/QuestionRow\";\n\nclass RequirementRowQuestions extends React.Component {\n static propTypes = {\n questions: PropTypes.arrayOf(QuestionShape).isRequired,\n rowsPerHeader: PropTypes.number,\n\n onMoveQuestionUp: PropTypes.func.isRequired,\n onMoveQuestionDown: PropTypes.func.isRequired\n };\n\n static defaultProps = {\n rowsPerHeader: 0\n };\n\n /**\n * Checks if a `QuestionHeader` component should be added to the list of `QuestionRow`s,\n * based on the index of the current `Question` being rendered, compared with the value of `rowsPerHeader`.\n *\n * @param {number} index\n *\n * @return {boolean}\n */\n shouldAddQuestionHeaderRow(index) {\n if (this.props.rowsPerHeader === false) {\n return false;\n }\n\n if (index === 0) {\n return true;\n }\n\n return index % this.props.rowsPerHeader === 0;\n }\n\n render() {\n return (\n
\n {\n this.props.questions.map((question, index) => [\n this.shouldAddQuestionHeaderRow(index) && ,\n \n ])\n }\n
\n );\n }\n}\n\nexport default RequirementRowQuestions;\n","import OrderManager from \"./OrderManager\";\n\nexport default OrderManager;\n","import * as PropTypes from \"prop-types\";\nimport React, { Component } from \"react\";\nimport Collapsible from \"react-collapsible\";\nimport { ElementGroupedWithQuestionsShape } from \"../../shapes\";\nimport ElementRowDetails from \"../../ElementRowDetails\";\nimport ElementRowQuestions from \"../ElementRowQuestions/ElementRowQuestions\";\n\nclass ElementRow extends Component {\n state = {\n open: false\n };\n\n /**\n * Handles when the `Collapsible` starts opening.\n */\n handleCollapsibleOpening = () => this.setState({ open: true });\n\n /**\n * Handles when the `Collapsible` starts closing.\n */\n handleCollapsibleClosing = () => this.setState({ open: false });\n\n render() {\n return (\n \n }\n\n onOpening={this.handleCollapsibleOpening}\n onClosing={this.handleCollapsibleClosing}\n >\n \n \n );\n }\n}\n\nElementRow.propTypes = {\n groupedElement: ElementGroupedWithQuestionsShape.isRequired,\n rowsPerHeader: PropTypes.number,\n onMoveQuestionUp: PropTypes.func.isRequired,\n onMoveQuestionDown: PropTypes.func.isRequired\n};\n\nElementRow.defaultProps = {\n rowsPerHeader: 0\n};\n\nexport default ElementRow;\n","import * as PropTypes from \"prop-types\";\nimport React from \"react\";\nimport { QuestionShape } from \"../../shapes\";\nimport QuestionHeader from \"../QuestionHeader/QuestionHeader\";\nimport QuestionRow from \"../QuestionRow/QuestionRow\";\n\nclass ElementRowQuestions extends React.Component {\n static propTypes = {\n questions: PropTypes.arrayOf(QuestionShape).isRequired,\n rowsPerHeader: PropTypes.number,\n onMoveQuestionUp: PropTypes.func.isRequired,\n onMoveQuestionDown: PropTypes.func.isRequired\n };\n\n static defaultProps = {\n rowsPerHeader: 0\n };\n\n /**\n * Checks if a `QuestionHeader` component should be added to the list of `QuestionRow`s,\n * based on the index of the current `Question` being rendered, compared with the value of `rowsPerHeader`.\n *\n * @param {number} index\n *\n * @return {boolean}\n */\n shouldAddQuestionHeaderRow(index) {\n if (this.props.rowsPerHeader === false) {\n return false;\n }\n\n if (index === 0) {\n return true;\n }\n\n return index % this.props.rowsPerHeader === 0;\n }\n\n render() {\n return (\n
\n {\n this.props.questions.map((question, index) => [\n this.shouldAddQuestionHeaderRow(index) && ,\n \n ])\n }\n
\n );\n }\n}\n\nexport default ElementRowQuestions;\n","import * as PropTypes from \"prop-types\";\nimport React from \"react\";\nimport { ElementShape, QuestionShape, RequirementShape } from \"../shapes\";\nimport ElementRow from \"./ElementRow/ElementRow\";\n\nclass PriorityManager extends React.Component {\n static propTypes = {\n elements: PropTypes.arrayOf(ElementShape).isRequired,\n requirements: PropTypes.arrayOf(RequirementShape).isRequired,\n questions: PropTypes.arrayOf(QuestionShape).isRequired\n };\n\n state = {\n elements: this.props.elements,\n requirements: this.props.requirements,\n questions: this.props.questions\n };\n\n /**\n * Handles when a `Question` is moved up.\n */\n handleMoveQuestionUp = ({ question }) =>\n this.moveQuestionPriorityWithinParentOnState(question, -1);\n\n /**\n * Handles when a `Question` is moved down.\n */\n handleMoveQuestionDown = ({ question }) =>\n this.moveQuestionPriorityWithinParentOnState(question, +1);\n\n /**\n * @inheritDoc\n *\n * @override\n */\n componentDidMount() {\n /*\n Submission is done by mapping each question into an input,\n with the name being the record type & id, & the value being their position.\n\n The naming structure should result in a `params` containing a hash,\n named `questions`, with the key being the record id, like so:\n\n {\n \"questions\" => { \"1\" => \"1\", \"2\" => \"2\", \"3\" => \"1\", ... }\n }\n */\n $(\"#save-order-form\").on(\"submit\", event =>\n $(event.target).append(\n ...this.state.questions.map(question =>\n $(\"\")\n .attr(\"name\", `questions[${question.id}]`)\n .attr(\n \"value\",\n JSON.stringify({\n priority_within_element: this.getQuestionPriorityWithinElement(\n question\n ),\n edited: question[\"edited\"]\n })\n )\n .attr(\"type\", \"hidden\")\n )\n )\n );\n\n /*\n When `#discard-order-button` is clicked, we reset everything by just\n copying the props to the state, since they should be structurally 1:1.\n */\n $(\"#discard-order-button\").on(\"click\", () =>\n this.setState({ ...this.props })\n );\n }\n\n /**\n * Gets the `real_priority_within_element` of the given `question`.\n *\n * This returns `real_priority_within_element` if define, otherwise `priority_within_element`.\n * We use this method to make it easy to maintain the visible value of `priority_within_element`,\n * while still updating & sorting by that value.\n *\n * @param {Object} question\n *\n * @return {number}\n *\n * @instance\n */\n getQuestionPriorityWithinElement(question) {\n return (\n question.real_priority_within_element || question.priority_within_element\n );\n }\n\n /**\n * Gets all the `Question`s that belong to the given `requirement` from the `state`.\n *\n * @param {Object} requirement\n *\n * @return {Array}\n */\n getQuestionsForRequirementFromState(requirement) {\n const requirementId =\n requirement.parent_id !== null ? requirement.parent_id : requirement.id;\n\n return this.state.questions.filter(\n question => question.requirement_id === requirementId\n );\n }\n\n /**\n * Gets all the `Requirement`s that belong to the given `element` from the `state`.\n *\n * @param {Object} element\n *\n * @return {Array}\n */\n getRequirementsForElementFromState(element) {\n const elementId =\n element.parent_id !== null ? element.parent_id : element.id;\n\n return this.state.requirements.filter(\n requirement => requirement.element_id === elementId\n );\n }\n\n /**\n * Gets all the `questions` on the `state` that belong to the given `element`, via their `requirement`.\n *\n * @param {Object} element the `Element` to group `Requirement`s for.\n *\n * @return {Array}\n */\n getQuestionsForElementFromState(element) {\n return this.getRequirementsForElementFromState(element)\n .map(requirement => this.getQuestionsForRequirementFromState(requirement))\n .reduce((arr, questions) => arr.concat(questions), [])\n .sort(\n (a, b) =>\n this.getQuestionPriorityWithinElement(a) -\n this.getQuestionPriorityWithinElement(b)\n );\n }\n\n /**\n * Maps `elements` from the `state` into groups containing the `Element` & their\n * `Requirement`s, in turn grouped with their `Question`s.\n *\n * @return {Array}\n */\n groupElementsFromState() {\n return this.state.elements\n .map(element => ({\n element,\n questions: this.getQuestionsForElementFromState(element)\n }))\n .sort(\n (a, b) => a.element.order_within_parent - b.element.order_within_parent\n );\n }\n\n /**\n * Moves the given `question` by the given `amount` in the `questions` collection on the state.\n *\n * This methods causes the recalculation of the `priority` of *all* `Question`s.\n *\n * @param {Object} question\n * @param {number} amount\n */\n moveQuestionPriorityWithinParentOnState(question, amount) {\n const newPosition =\n this.getQuestionPriorityWithinElement(question) + amount;\n\n if (newPosition <= 0) {\n return;\n }\n\n const questionRequirement = this.state.requirements.find(requirement => {\n const requirementId =\n requirement.parent_id !== null ? requirement.parent_id : requirement.id;\n\n return requirementId === question.requirement_id;\n });\n\n const questionElementId = this.state.elements.find(element => {\n const elementId =\n element.parent_id !== null ? element.parent_id : element.id;\n\n return elementId === questionRequirement.element_id;\n }).id;\n\n const groupedElements = this.groupElementsFromState();\n\n const { questionsToReorder, otherQuestions } = groupedElements.reduce(\n (acc, groupedElement) => {\n // only questions belonging to the same element get sorted\n (groupedElement.element.id === questionElementId\n ? acc.questionsToReorder\n : acc.otherQuestions\n ).push(...groupedElement.questions);\n\n return acc;\n }, // we need to retain the other questions to concat later\n { questionsToReorder: [], otherQuestions: [] }\n );\n\n this.setState({\n questions: this.reprioritiseOrderableInCollection(\n question,\n newPosition,\n questionsToReorder\n ).concat(otherQuestions)\n });\n }\n\n /**\n * Reprioritises the given `orderable` to be have the given `priority_within_element`,\n * recalculating the `priority_within_element` value of all elements in the given `orderables`,\n * to reflect their orders with the `orderable` in its news position.\n *\n * @param {T} orderable\n * @param {number} position\n * @param {Array} orderables\n *\n * @return {Array}\n *\n * @template T\n */\n reprioritiseOrderableInCollection(orderable, position, orderables) {\n orderable[\"edited\"] = true;\n\n const objects = [...orderables].sort(\n (a, b) =>\n this.getQuestionPriorityWithinElement(a) -\n this.getQuestionPriorityWithinElement(b)\n );\n\n objects.splice(objects.indexOf(orderable), 1);\n objects.splice(position - 1, 0, orderable);\n\n return objects.map((orderable, pos) =>\n Object.assign({}, orderable, { real_priority_within_element: pos + 1 })\n );\n }\n\n render() {\n const groupedElements = this.groupElementsFromState();\n\n return (\n
\n {groupedElements.map(groupedElement => (\n \n ))}\n
\n );\n }\n}\n\nexport default PriorityManager;\n","import cx from \"classnames\";\nimport React from \"react\";\nimport QuestionRowColumn from \"../QuestionRowColumn/QuestionRowColumn\";\n\n/**\n * Gets the content to render for the given \"column\" of this rows `Question`.\n *\n * @param {string} columnName\n * @param {string} content\n *\n * @return {JSX}\n *\n * @instance\n */\nconst getQuestionColumnRenderContent = (columnName, content) => (\n \n {content}\n \n);\n\nconst QuestionHeader = () => (\n
\n \n {getQuestionColumnRenderContent(\"priority_within_element\", \"Priority within element\")}\n {getQuestionColumnRenderContent(\"code\", \"Code\")}\n {getQuestionColumnRenderContent(\"most_senior_statement\", \"Most senior statement\")}\n {getQuestionColumnRenderContent(\"status\", \"Status\")}\n
\n);\n\nexport default QuestionHeader;\n","import cx from \"classnames\";\nimport * as PropTypes from \"prop-types\";\nimport React from \"react\";\nimport { QuestionShape } from \"../../shapes\";\nimport OrderControls from \"../../OrderControls\";\nimport QuestionRowColumn from \"../QuestionRowColumn/QuestionRowColumn\";\n\nclass QuestionRow extends React.Component {\n static propTypes = {\n question: QuestionShape.isRequired,\n hideOrderingControls: PropTypes.bool,\n onMoveQuestionUp: PropTypes.func.isRequired,\n onMoveQuestionDown: PropTypes.func.isRequired\n };\n\n static defaultProps = {\n hideOrderingControls: false\n };\n\n /**\n * Handles when the up arrow on the `OrderControls` component is clicked.\n */\n handleMoveUpArrowClick = () =>\n this.props.onMoveQuestionUp({ question: this.props.question });\n\n /**\n * Handles when the down arrow on the `OrderControls` component is clicked.\n */\n handleMoveDownArrowClick = () =>\n this.props.onMoveQuestionDown({ question: this.props.question });\n\n /**\n * Gets the `text` of this components `Question`'s `most_senior_statement`,\n * if it has one.\n *\n * @return {string}\n */\n getMostSeniorStatementText() {\n const mostSeniorStatement = this.props.question.most_senior_statement;\n\n if (mostSeniorStatement === null) {\n return \"------\";\n }\n\n return mostSeniorStatement.text;\n }\n\n /**\n * Gets the content to render for the order controls section of this component.\n *\n * If `hideOrderingControls` is `true`, then an empty `QuestionRowColumn` is returned.\n * Otherwise, an `OrderControls` component is returned.\n *\n * @return {JSX}\n */\n getOrderControlsColumnRenderContent() {\n if (this.props.hideOrderingControls) {\n return (\n \n );\n }\n\n return (\n \n );\n }\n\n /**\n * Gets the content to render for the given \"column\" of this rows `Question`.\n *\n * If no `content` is provided, `columnName` is assumed to be a key for a property\n * on this components `Question` prop, and used as such to get a value.\n *\n * @param {string} columnName\n * @param {string|React.ReactNode} content\n *\n * @return {JSX}\n */\n getQuestionColumnRenderContent(\n columnName,\n content = this.props.question[columnName]\n ) {\n return (\n \n {content}\n \n );\n }\n\n render() {\n // * property order: up/down arrow, display order within parent, code, most senior role statement, priority within element, record status\n return (\n
\n {this.getOrderControlsColumnRenderContent()}\n {this.getQuestionColumnRenderContent(\"priority_within_element\")}\n {this.getQuestionColumnRenderContent(\"code\")}\n {this.getQuestionColumnRenderContent(\n \"most_senior_statement\",\n this.getMostSeniorStatementText()\n )}\n {this.getQuestionColumnRenderContent(\"status\")}\n
\n );\n }\n}\n\nexport default QuestionRow;\n","import cx from \"classnames\";\nimport * as PropTypes from \"prop-types\";\nimport React from \"react\";\n\nconst QuestionRowColumn = props => (\n
\n {props.children}\n
\n);\n\nQuestionRowColumn.propTypes = {\n children: PropTypes.node,\n className: PropTypes.string\n};\n\nexport default QuestionRowColumn;\n","import PriorityManager from \"./PriorityManager\";\n\nexport default PriorityManager;\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\n\nclass RespondentForm extends React.Component {\n\n constructor(props) {\n super(props);\n\n if(props.respondent) {\n this.state = {\n id: props.respondent.id,\n name: props.respondent.name,\n email: props.respondent.email,\n mobile: props.respondent.mobile,\n business_role_id: props.respondent.business_role_id,\n business_location_id: props.respondent.business_location_id,\n business_function_id: props.respondent.business_function_id,\n business_territory_id: props.respondent.business_territory_id,\n preferred_comms_method: props.respondent.preferred_comms_method\n };\n }\n else {\n this.state = {\n id: \"\",\n name: \"\",\n email: \"\",\n mobile: \"\",\n business_role_id: \"\",\n business_location_id: \"\",\n business_function_id: \"\",\n business_territory_id: \"\",\n preferred_comms_method: \"prefers_email_comms\"\n };\n }\n };\n\n componentDidMount() {\n this.initialiseSelect(this.roleSelect, true);\n this.initialiseSelect(this.locationSelect, false);\n this.initialiseSelect(this.territorySelect, false);\n this.initialiseSelect(this.functionSelect, false);\n\n $(\"#name\").focus()[0].scrollIntoView({block: \"center\"});\n }\n\n handleSave = id => {\n var data = {\n name: this.state.name,\n email: this.state.email,\n mobile: this.state.mobile,\n business_role_id: this.state.business_role_id,\n business_location_id: this.state.business_location_id,\n business_function_id: this.state.business_function_id,\n business_territory_id: this.state.business_territory_id,\n preferred_comms_method: this.preferredCommsMethodValue()\n };\n\n this.props.handleConfirm(id, data);\n };\n\n handleCancel() {\n this.props.handleCancel();\n };\n\n handleInputChange = (e) => {\n const value = e.target.type === \"checkbox\" ? e.target.checked : e.target.value;\n this.setState({\n [e.target.name]: value\n });\n };\n\n initialiseSelect = (element, required) => {\n let options;\n if(required) {\n $(element).selectize(window.Globals.requiredSelectizeOptions);\n }\n else {\n $(element).selectize(window.Globals.optionalSelectizeOptions);\n }\n };\n\n validateInput = (element) => {\n const value = element.value;\n const attribute = element.name;\n\n this.setState({\n [element.name]: value\n });\n\n let valid = true;\n let message = \"\";\n\n switch(attribute) {\n case \"name\":\n valid = value.length > 0;\n message = valid ? '' : \"Please enter this person's name\";\n break;\n case \"email\":\n valid = value.length == 0 || value.match(/^([\\w.%+-]+)@([\\w-]+\\.)+([\\w]{2,})$/i);\n message = valid ? '' : \"Please enter a valid email address\";\n break;\n case \"business_role_id\":\n valid = value.length > 0;\n message = valid ? '': \"Please assign this person a role\";\n break;\n case \"mobile\":\n valid = value.length == 0 || value.match(/^(\\+64|0064|0)2\\d{7,9}$/i);\n message = valid ? '': \"A mobile number must start with 02, +642, or 00642, and be 7-9 numbers except for 02, +642, 00642 with no spaces or dashes\";\n break;\n default:\n break;\n }\n\n this.props.addValidationError(attribute, message);\n }\n\n renderInputError = (attribute) => {\n let error;\n if(this.inputErrorPresent(attribute)) {\n error = this.props.errors[attribute][this.props.errors[attribute].length - 1];\n return(\n \n );\n }\n }\n\n inputErrorPresent = (attribute) => {\n return (\n this.props.errors[attribute] && this.props.errors[attribute].length\n )\n }\n\n renderBusinessLocationSelect = (businessLocations, businessLocationId) => {\n if(businessLocations.length > 0) {\n return
\n \n (optional)\n \n
\n }\n };\n\n renderBusinessFunctionSelect = (businessFunctions, businessFunctionId) => {\n if(businessFunctions.length > 0) {\n return
\n \n (optional)\n \n
\n }\n };\n\n renderBusinessTerritorySelect = (businessTerritories, businessTerritoryId) => {\n if(businessTerritories.length > 0) {\n return
\n \n (optional)\n \n
\n }\n };\n\n renderPreferredCommsMethod = (email, mobile, preferredCommsMethod) => {\n const canHavePreference = email && email.length > 0 && mobile && mobile.length > 0;\n\n if(canHavePreference) {\n return
\n
\n \n
\n \n \n
\n
\n \n \n
\n
\n
\n }\n };\n\n preferredCommsMethodValue() {\n if(this.state.email && this.state.mobile) {\n return this.state.preferred_comms_method;\n }\n else {\n return this.state.email ? \"email\" : \"mobile\";\n }\n };\n\n render() {\n\n return (\n
\n
\n\n
\n \n this.validateInput(e.target)} />\n { this.renderInputError(\"name\") }\n
\n\n
\n \n \n { this.renderInputError(\"business_role_id\") }\n
\n\n { this.renderBusinessLocationSelect(this.props.business_locations, this.state.business_location_id) }\n\n { this.renderBusinessFunctionSelect(this.props.business_functions, this.state.business_function_id) }\n\n { this.renderBusinessTerritorySelect(this.props.business_territories, this.state.business_territory_id) }\n\n
\n \n this.validateInput(e.target)} placeholder=\"e.g. admin@betabuilding.co.nz\" maxLength=\"254\" />\n { this.renderInputError(\"email\") }\n
\n\n
\n \n

If this person doesn’t have access to an email address, we can send a link to their smartphone.

\n this.validateInput(e.target)} placeholder=\"e.g. 02123456789, +642123456789, or 00642123456789\" maxLength=\"14\" />\n { this.renderInputError(\"mobile\") }\n
\n\n { this.renderPreferredCommsMethod(this.state.email, this.state.mobile, this.state.preferred_comms_method) }\n\n { this.renderInputError(\"base\") }\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n )\n }\n}\n\nRespondentForm.propTypes = {\n business_roles: PropTypes.array,\n business_locations: PropTypes.array,\n business_functions: PropTypes.array,\n business_territories: PropTypes.array,\n errors: PropTypes.object\n};\n\nexport default RespondentForm;\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\nimport RespondentView from \"./RespondentView\"\nimport RespondentForm from \"./RespondentForm\"\n\nclass RespondentRow extends React.Component {\n\n constructor(props) {\n super(props);\n this.state = { errors: {} };\n };\n\n handleAdd = () => {\n this.setState({ errors: {} });\n this.props.setEditMode(\"new\");\n };\n\n handleCancel = () => {\n this.setState({ errors: {} });\n this.props.resetForms();\n };\n\n handleEdit = () => {\n this.props.setEditMode(this.props.respondent.id);\n };\n\n handleCreate = (id, respondent) => {\n $.ajax({\n url: \"/api/respondents\",\n type: \"POST\",\n data: { respondent: respondent },\n success: response => {\n this.props.loadRespondents();\n this.props.resetForms();\n this.setState({ errors: {} });\n },\n error: (response) => {\n this.setState({ errors: response.responseJSON });\n }\n });\n };\n\n handleDelete = id => {\n $.ajax({\n url: `/api/respondents/${id}`,\n type: \"DELETE\",\n success: response => {\n this.props.loadRespondents();\n this.setState({ errors: {} });\n $(\".users-table__button--add\").focus();\n },\n error: (response) => {\n this.state.errors = response.responseJSON;\n }\n });\n };\n\n handleUpdate = (id, respondent) => {\n $.ajax({\n url: `/api/respondents/${id}`,\n type: \"PATCH\",\n data: { respondent: respondent },\n success: response => {\n this.props.loadRespondents();\n this.props.resetForms();\n this.setState({ errors: {} });\n },\n error: (response) => {\n this.setState({ errors: response.responseJSON });\n }\n });\n };\n\n addValidationError = (attribute, message) => {\n let errors = this.state.errors;\n errors[attribute] = message == \"\" ? [] : [ message ];\n this.setState({ errors: errors });\n }\n\n render() {\n let row;\n if(this.props.createForm) {\n if(this.props.editMode) {\n row = ;\n }\n else {\n row =
\n
\n \n
\n
\n }\n }\n else {\n if(this.props.editMode) {\n row = ;\n }\n else {\n row = ;\n }\n }\n return (\n
\n { row }\n
\n )\n }\n}\n\nRespondentRow.propTypes = {\n business_roles: PropTypes.array,\n business_locations: PropTypes.array,\n business_functions: PropTypes.array,\n business_territories: PropTypes.array,\n editMode: PropTypes.bool,\n createForm: PropTypes.bool,\n respondent: PropTypes.object\n};\n\nexport default RespondentRow;\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\nimport RespondentRow from \"./RespondentRow\"\n\nclass RespondentTable extends React.Component {\n constructor(props) {\n super(props);\n this.state = { respondents: [], editMode: {} };\n };\n\n componentWillMount() {\n this.loadRespondents();\n };\n\n loadRespondents = () => {\n $.getJSON('/api/respondents.json', (response) => {\n this.setState({ respondents: response });\n });\n };\n\n resetForms = () => {\n let forms = {};\n this.state.respondents.map((respondent) => {\n forms[respondent.id] = false;\n });\n this.setState({ editMode: forms });\n $(\".users-table__button--add\").focus();\n };\n\n setEditMode = (id) => {\n let forms = {};\n this.state.respondents.map((respondent) => {\n forms[respondent.id] = respondent.id == id;\n })\n forms[\"new\"] = id == \"new\";\n this.setState({ editMode: forms });\n };\n\n render () {\n let content =

Your business currently has no people, please click the 'Add' button to start.

;\n\n if(this.state.respondents.length > 0 || this.state.editMode[\"new\"]) {\n content = this.state.respondents.map((respondent, index) => {\n return ;\n });\n }\n\n return (\n
\n
\n
Name
\n
Role
\n
Location
\n
Region
\n
Team
\n
Email
\n
Mobile
\n
Preference
\n
\n
\n
\n\n
\n { content }\n
\n \n
\n );\n }\n}\n\nRespondentTable.propTypes = {\n business_roles: PropTypes.array,\n business_locations: PropTypes.array,\n business_functions: PropTypes.array,\n business_territories: PropTypes.array\n};\n\nexport default RespondentTable;\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\n\nclass RespondentView extends React.Component {\n\n constructor(props) {\n super(props);\n this.state = { editable: false };\n };\n\n handleEdit = () => {\n this.props.handleEdit();\n };\n\n handleDelete = id => {\n this.props.handleDelete(id);\n };\n\n render() {\n const { name: fullName, email, mobile, preferred_comms_method_display_value, preferred_comms_method, id, business_role: { name: roleName } } = this.props.respondent;\n return (\n
\n
\n Name{ fullName }\n
\n
\n Role{ roleName }\n
\n
\n Location{ this.props.respondent.business_location ? this.props.respondent.business_location.name : \"\" }\n
\n
\n Region{ this.props.respondent.business_territory ? this.props.respondent.business_territory.name : \"\" }\n
\n
\n Team{ this.props.respondent.business_function ? this.props.respondent.business_function.name : \"\" }\n
\n
\n Email{ email }\n
\n
\n Mobile{ mobile }\n
\n
\n Preferred Comms{ preferred_comms_method_display_value }\n
\n
\n \n
\n
\n \n
\n
\n )\n }\n}\n\nexport default RespondentView;\n","import BarGraph from \"./BarGraph\"\n\nclass StackedBarGraph extends BarGraph {\n getXLabels(data) {\n var keys = [];\n Object.keys(data).forEach(function(key) {\n var key = JSON.parse(key)[0];\n keys.indexOf(key) === -1 ? keys.push(key) : null;\n });\n\n return keys;\n };\n\n getYGroups(data) {\n var keys = [];\n Object.keys(data).forEach(function(key) {\n var key = JSON.parse(key)[1];\n keys.indexOf(key) === -1 ? keys.push(key) : null;\n });\n return keys;\n };\n\n getDatasets(data) {\n var adminDataStackedBarGraph = this;\n var colours = [\"#e0e9f7\", \"#89ace1\", \"#214884\"]\n var keys = [];\n var datasets = [];\n var yGroups = this.getXLabels(data);\n var xGroups = this.getYGroups(data);\n\n xGroups.forEach((xGroup, index) => {\n datasets.push({\n label: xGroup,\n backgroundColor: colours[index],\n data: adminDataStackedBarGraph.getDataset(xGroup, yGroups, data)\n });\n });\n return datasets;\n };\n\n getDataset(xGroup, yGroups, data) {\n var dataset = [];\n yGroups.forEach((yGroup) => {\n dataset.push(data[`[\"${yGroup}\", \"${xGroup}\"]`]);\n });\n return dataset;\n };\n\n renderGraph(data) {\n\n new Chart(this.canvas, {\n type: this.type,\n data: {\n labels: this.getXLabels(data),\n datasets: this.getDatasets(data)\n },\n options: {\n scales: {\n xAxes: [{\n scaleLabel: {\n display: true,\n labelString: this.xAxis,\n fontSize: 16\n },\n stacked: true,\n ticks: {\n min: 0\n }\n }],\n yAxes: [{\n scaleLabel: {\n display: true,\n labelString: this.yAxis,\n fontSize: 16\n },\n ticks: {\n min: 0\n },\n stacked: true\n }]\n },\n elements: {\n rectangle: {\n backgroundColor: \"#e0e9f7\",\n borderColor: \"#214884\",\n borderWidth: 3\n }\n }\n }\n });\n };\n};\n\nexport default StackedBarGraph;\n","import * as PropTypes from \"prop-types\";\n\nconst DraftableInterfaceShape = {\n draft: PropTypes.bool.isRequired,\n parent_id: PropTypes.number,\n order_within_parent: PropTypes.number.isRequired\n};\n\nconst TimestampInterfaceShape = {\n created_at: PropTypes.string.isRequired,\n updated_at: PropTypes.string.isRequired\n};\n\nexport const ElementShape = PropTypes.shape({\n id: PropTypes.number.isRequired,\n code: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired,\n prefix_statement: PropTypes.string.isRequired,\n ...DraftableInterfaceShape,\n ...TimestampInterfaceShape\n});\n\nexport const RequirementShape = PropTypes.shape({\n id: PropTypes.number.isRequired,\n code: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired,\n optional: PropTypes.bool.isRequired,\n element_id: PropTypes.number.isRequired,\n edited: PropTypes.bool,\n ...DraftableInterfaceShape,\n ...TimestampInterfaceShape\n});\n\nexport const QuestionShape = PropTypes.shape({\n id: PropTypes.number.isRequired,\n code: PropTypes.string.isRequired,\n priority_within_element: PropTypes.number.isRequired,\n requirement_id: PropTypes.number.isRequired,\n edited: PropTypes.bool,\n ...DraftableInterfaceShape,\n ...TimestampInterfaceShape\n});\n\nexport const GroupedRequirementShape = PropTypes.shape({\n requirement: RequirementShape.isRequired,\n questions: PropTypes.arrayOf(QuestionShape).isRequired\n});\n\nexport const GroupedElementShape = PropTypes.shape({\n element: ElementShape.isRequired,\n requirements: PropTypes.arrayOf(GroupedRequirementShape).isRequired\n});\n\nexport const ElementGroupedWithQuestionsShape = PropTypes.shape({\n element: ElementShape.isRequired,\n questions: PropTypes.arrayOf(QuestionShape).isRequired\n});\n"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","props","React","className","cx","concat","colour","pointUp","AssessmentRespondentForm","_React$Component","_inherits","_super","_createSuper","_this","_classCallCheck","_defineProperty","_assertThisInitialized","call","data","name","state","email","mobile","preferred_comms_method","preferredCommsMethodValue","assessment_started","handleConfirmAndSend","handleConfirm","value","target","type","checked","setState","element","attribute","message","length","match","addValidationError","error","inputErrorPresent","errors","htmlFor","preferredCommsMethod","defaultChecked","onChange","handleInputChange","assessment_respondent","key","$","focus","scrollIntoView","block","this","handleCancel","_this2","preferredCommsHeaderValue","defaultValue","onBlur","validateInput","placeholder","maxLength","renderInputError","renderPreferredCommsMethod","onClick","handleSave","preferredCommsSaveButtonLabel","AssessmentRespondentMessage","apply","arguments","success","address","method","_this$props$assessmen","AssessmentRespondentRow","resetForms","setEditMode","send","undefined","updateAssessmentRespondent","done","sendAssessmentInvitation","loadRespondents","setMessageStatus","fail","response","status","responseJSON","handleUpdate","ajax","url","assessment_id","assessment_respondent_id","row","editMode","handleUpdateAndSend","AssessmentRespondentView","handleEdit","AssessmentRespondentTable","getJSON","assessment_respondents","forms","current_assessment_respondent","invitationSuccess","content","index","editable","fullName","preferred_comms_method_display_value","roleName","business_role","business_location","business_territory","business_function","BarGraph","canvas","endPoint","xAxis","yAxis","oversized","horizontal","fetch","credentials","dataType","then","json","renderGraph","catch","displayError","replaceWith","responseText","Chart","labels","datasets","values","options","responsive","maintainAspectRatio","scales","xAxes","scaleLabel","display","labelString","fontSize","ticks","min","yAxes","legend","elements","rectangle","backgroundColor","borderColor","borderWidth","children","ElementRowDetails","columnName","ElementRowColumn","replace","toLowerCase","getElementRowClass","getElementColumnRenderContent","AccordionArrow","open","onMoveUpArrowClick","onMoveDownArrowClick","ElementRow","_Component","_len","args","Array","_key","Collapsible","trigger","groupedElement","onMoveRequirementUp","handleMoveUpArrowClick","onMoveRequirementDown","handleMoveDownArrowClick","onOpening","handleCollapsibleOpening","onClosing","handleCollapsibleClosing","ElementRowRequirements","groupedRequirements","requirements","rowsPerHeader","onMoveQuestionUp","onMoveQuestionDown","Component","defaultProps","groupedRequirement","shouldAddRequirementRowHeader","RequirementHeader","RequirementRow","requirement","OrderManager","questions","_ref","moveRequirementOnState","_ref2","_ref3","question","moveQuestionOnState","_ref4","on","event","_$","append","_toConsumableArray","attr","JSON","stringify","order_within_parent","edited","_objectSpread","requirementId","parent_id","filter","requirement_id","sort","a","b","elementId","element_id","getQuestionsForRequirementFromState","_this3","getRequirementsForElementFromState","groupRequirementWithQuestionsFromState","_this4","groupRequirementsForElementFromState","amount","newPosition","_this$state$requireme","reduce","acc","aRequirement","requirementsToReorder","otherRequirements","push","reorderOrderableInCollection","_this$state$questions","aQuestion","questionsToReorder","otherQuestions","orderable","position","orderables","objects","splice","indexOf","pos","assign","_this5","groupedElements","groupElementsFromState","handleMoveRequirementUp","handleMoveRequirementDown","handleMoveQuestionUp","handleMoveQuestionDown","getQuestionColumnRenderContent","QuestionRowColumn","QuestionRow","mostSeniorStatement","most_senior_statement","text","hideOrderingControls","OrderControls","getOrderControlsColumnRenderContent","getMostSeniorStatementText","getRequirementColumnRenderContent","RequirementRowColumn","RequirementRowDetails","numberOfQuestions","RequirementRowQuestions","stopPropagation","optional","getOptionalPropertyText","shouldAddQuestionHeaderRow","QuestionHeader","ElementRowQuestions","PriorityManager","moveQuestionPriorityWithinParentOnState","priority_within_element","getQuestionPriorityWithinElement","real_priority_within_element","arr","getQuestionsForElementFromState","questionRequirement","find","questionElementId","_groupedElements$redu","reprioritiseOrderableInCollection","_this6","RespondentForm","business_role_id","business_location_id","business_function_id","business_territory_id","required","selectize","window","Globals","requiredSelectizeOptions","optionalSelectizeOptions","businessLocations","businessLocationId","ref","select","locationSelect","businessLocation","businessFunctions","businessFunctionId","functionSelect","businessFunction","businessTerritories","businessTerritoryId","territorySelect","businessTerritory","respondent","initialiseSelect","roleSelect","autoFocus","business_roles","renderBusinessLocationSelect","business_locations","renderBusinessFunctionSelect","business_functions","renderBusinessTerritorySelect","business_territories","RespondentRow","createForm","handleCreate","handleAdd","RespondentView","handleDelete","RespondentTable","respondents","_this$props$responden","StackedBarGraph","_BarGraph","forEach","parse","adminDataStackedBarGraph","colours","yGroups","getXLabels","getYGroups","xGroup","label","getDataset","dataset","yGroup","getDatasets","stacked","DraftableInterfaceShape","draft","PropTypes","isRequired","TimestampInterfaceShape","created_at","updated_at","ElementShape","prefix_statement","RequirementShape","QuestionShape","GroupedRequirementShape","GroupedElementShape","ElementGroupedWithQuestionsShape"],"sourceRoot":""}