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IAAIzK,KAAKkU,uBACtB,cAAY,WACZvS,QAASoI,EAAa8I,aAAa7S,KAAKiU,wBACzC,sBAGDrU,EAAAA,cAAA,OAAK2B,UAAU,OACb3B,EAAAA,cAAA,OAAK2B,UAAU,OACb3B,EAAAA,cAAA,OAAK2B,UAAU,0BAA0BrB,GAAIF,KAAKiU,uBAC/CjU,KAAKuU,kBAAkB,QAAS,YAChCvU,KAAKuU,kBAAkB,SAAU,UACjCvU,KAAKuU,kBAAkB,YAAa,gBACpCvU,KAAKuU,kBAAkB,kBAAmB,mBAC1CvU,KAAKuU,kBAAkB,UAAW,eAClCvU,KAAKuU,kBAAkB,UAAW,gBAClCvU,KAAKuU,kBAAkB,YAAa,aACpCvU,KAAKuU,kBAAkB,WAAY,YACnCvU,KAAKuU,kBAAkB,WAAY,SAEtC3U,EAAAA,cAAA,OAAK2B,UAAU,0BAA0BrB,GAAIF,KAAKkU,sBAC/ClU,KAAKwU,iBAAiB,QAAS,SAC/BxU,KAAKwU,iBAAiB,UAAW,SACjCxU,KAAKwU,iBAAiB,cAAe,mBAOpD,EAGF,W","sources":["webpack://collecte/./app/javascript/components/EditCollect/ContentFields/Description.jsx","webpack://collecte/./app/javascript/components/EditCollect/QuestionFields/GradeOption.jsx","webpack://collecte/./app/javascript/components/EditCollect/index.jsx","webpack://collecte/./app/javascript/components/EditCollect/CollectForm.jsx","webpack://collecte/./app/javascript/components/EditCollect/BasicFields/NumberField.jsx","webpack://collecte/./app/javascript/components/EditCollect/QuestionFields/Numeric.jsx","webpack://collecte/./app/javascript/components/EditCollect/BasicFields/TextAreaField.jsx","webpack://collecte/./app/javascript/components/EditCollect/BasicFields/TextField.jsx","webpack://collecte/./app/javascript/components/EditCollect/Loader.jsx","webpack://collecte/./app/javascript/components/EditCollect/QuestionFields/Comment.jsx","webpack://collecte/./app/javascript/components/EditCollect/BasicFields/PictureField.jsx","webpack://collecte/./app/javascript/components/EditCollect/BasicFields/SelectField.jsx","webpack://collecte/./app/javascript/components/EditCollect/QuestionFields/SelectionOption.jsx","webpack://collecte/./app/javascript/components/EditCollect/QuestionFields/DateTime.jsx","webpack://collecte/./app/javascript/components/PhotoGallery/PhotoGallerySection.jsx","webpack://collecte/./app/javascript/components/EditCollect/QuestionFields/Grade.jsx","webpack://collecte/./app/javascript/components/EditCollect/BasicFields/SelectUserGroupField.jsx","webpack://collecte/./app/javascript/components/EditCollect/QuestionFields/Selection.jsx","webpack://collecte/./app/javascript/components/EditCollect/QuestionFields/Photos.jsx","webpack://collecte/./app/javascript/components/EditCollect/QuestionFields/Signature.jsx","webpack://collecte/./app/javascript/components/EditCollect/QuestionFields/Variable.jsx","webpack://collecte/./app/javascript/components/EditCollect/ContentFields/Picture.jsx","webpack://collecte/./app/javascript/components/ sync ^\\.\\/.*$","webpack://collecte/./app/javascript/components/PhotoGallery/index.jsx","webpack://collecte/./app/javascript/components/EditCollect/ContentFields/Title.jsx","webpack://collecte/./app/javascript/components/EditCollect/SectionField.jsx"],"sourcesContent":["import React from 'react'\n\n// Local import\nimport { updateErrors } from '../SectionField'\nimport TextAreaField from '../BasicFields/TextAreaField'\n\nclass Description extends React.Component {\n constructor(props) {\n super(props)\n this.state = {\n id: props.question.id,\n context: props.question.context,\n position: props.question.position,\n description: props.question.description || '',\n errors: props.question.errors || {}\n }\n }\n\n shouldComponentUpdate(_nextProps, nextState) {\n this.state.errors = updateErrors(this.state.errors, this.props.getErrors)\n\n return (\n this.state.description !== nextState.description ||\n this.state.position !== nextState.position ||\n this.state.errors.isNew === true\n )\n }\n\n componentDidUpdate() {\n this.props.handleQuestionChange(this.state)\n }\n\n handleChange = event => this.setState({ [event.target.name]: event.target.value })\n\n render() {\n return (\n
\n
\n
\n \n {' Description '}\n \n
\n \n
\n
\n \n
\n
\n )\n }\n}\n\nexport default Description\n","import React from 'react'\n\n// Local import\nimport TextField from '../BasicFields/TextField'\n\nclass GradeOption extends React.Component {\n constructor(props) {\n super(props)\n\n this.state = {\n id: props.option.id,\n content: props.option.content\n }\n }\n\n shouldComponentUpdate(_nextProps, nextState) {\n return this.state.content !== nextState.content\n }\n\n componentDidUpdate() {\n this.props.handleOptionChange(this.state)\n }\n\n handleChange = event => this.setState({ [event.target.name]: event.target.value })\n\n render() {\n return (\n <>\n \n
\n \n )\n }\n}\n\nexport default GradeOption\n","import React, { useEffect, useState } from 'react'\n\n// Local import\nimport CollectForm from './CollectForm'\nimport Loader from './Loader'\n\nconst EditCollect = ({ collectId }) => {\n const headers = {\n 'Accept': 'application/json',\n 'Content-Type': 'application/json'\n }\n const [data, setData] = useState(null)\n\n useEffect(() => {\n fetch(`/collects/${collectId}.json`, { method: 'GET', headers })\n .then(response => response.json())\n .then(responseData => setData(responseData))\n }, [])\n\n return (\n
\n
\n
\n
\n

\n \n {' Edition d\\'une collecte'}\n

\n
\n \n
\n
\n
\n {data ? : }\n
\n
\n )\n}\n\nexport default EditCollect\n","/* eslint-disable camelcase */\n\nimport React from 'react'\nimport { DragDropContext, Draggable, Droppable } from 'react-beautiful-dnd'\n\n// Local import\nimport TextField from './BasicFields/TextField'\nimport SelectField from './BasicFields/SelectField'\nimport SelectUserGroupField from './BasicFields/SelectUserGroupField'\nimport TextAreaField from './BasicFields/TextAreaField'\nimport SectionField from './SectionField'\n\n// Use an counter to avoid duplicate id generation\nlet idCounter = 0\nconst idGenerator = () => `new-${new Date().getTime() + idCounter++}`\n\nclass CollectForm extends React.Component {\n constructor(props) {\n super(props)\n this.state = {\n id: props.data.id,\n name: props.data.name,\n ensemble_id: props.data.ensemble_id,\n user_ids: props.data.user_ids,\n help_text: props.data.help_text || '',\n has_additional_answer: props.data.has_additional_answer || false,\n has_completion_for_additionnal: props.data.has_completion_for_additionnal,\n has_prepopulate_answers: props.data.has_prepopulate_answers,\n ensembles: props.data.ensembles,\n operators: props.data.operators,\n sections: props.data.sections,\n removed_section_ids: [],\n frequency: props.data.frequency,\n submitButtonText: 'Sauvegarder les modifications',\n submitButtonDisabled: false,\n errors: {}\n }\n }\n\n // Function that create FormData from nested object\n createFormData = (data, formData = new FormData(), parentKey = '') => {\n Object.keys(data).forEach(key => {\n const value = data[key]\n let newKey = parentKey ? `${parentKey}[${key}]` : key\n\n // Check if value is an array of objects\n if (Array.isArray(value) && value.length > 0) {\n newKey = `${newKey}[]`\n if (typeof value[0] === 'object')\n value.forEach(item => this.createFormData(item, formData, newKey))\n else\n value.forEach(item => formData.append(newKey, item))\n } else\n formData.append(newKey, value)\n })\n return formData\n }\n\n\n findQuestion = (sectionId, questionId) => {\n const section = this.state.sections.find(stateSection => stateSection.id === sectionId)\n\n return section.questions.find(question => question.id === questionId)\n }\n\n formatForm = () => {\n const formatedForm = JSON.parse(JSON.stringify(this.state))\n\n if (formatedForm.user_ids.length === 0)\n formatedForm.user_ids = ['']\n\n formatedForm.sections.forEach(section => {\n section.questions.forEach(question => {\n if (\n (question.options || []).length > 0 ||\n (question.removed_option_ids || []).length > 0\n ) {\n const removed_options = (question.removed_option_ids || []).map(id => ({ id, _destroy: true }))\n\n question.options.forEach(option => {\n delete option.hidden\n })\n\n question.options_attributes = question.options.concat(removed_options)\n } else\n question['options_attributes[]'] = ''\n\n /*\n * The question is serialized as JSON so the picture is not a File object\n * to do so we retrieve the picture from the question state\n */\n if (question.context === 'picture') {\n const pictureQuestion = this.findQuestion(section.id, question.id)\n delete question.picture\n if (pictureQuestion.changed)\n question.picture = pictureQuestion.picture\n }\n\n if (question.context !== 'description')\n delete question.description\n\n delete question.options\n delete question.removed_option_ids\n delete question.errors\n })\n const removed_questions = (section.removed_question_ids || []).map(id => ({ id, _destroy: true }))\n const questions = section.questions.concat(removed_questions)\n\n if (questions.length > 0)\n section.questions_attributes = questions\n else\n section['questions_attributes[]'] = ''\n\n delete section.questions\n delete section.removed_question_ids\n delete section.errors\n })\n\n const removed_sections = (formatedForm.removed_section_ids || []).map(id => ({ id, _destroy: true }))\n const sections = formatedForm.sections.concat(removed_sections)\n\n if (sections.length > 0)\n formatedForm.sections_attributes = sections\n else\n formatedForm['sections_attributes[]'] = ''\n\n delete formatedForm.sections\n delete formatedForm.removed_section_ids\n delete formatedForm.errors\n delete formatedForm.ensemble_id\n delete formatedForm.id\n delete formatedForm.operators\n delete formatedForm.ensembles\n delete formatedForm.submitButtonText\n delete formatedForm.submitButtonDisabled\n\n return formatedForm\n }\n\n handleSubmit = event => {\n event.preventDefault()\n const formatedForm = this.formatForm()\n\n // To post pictures we need to create a FormData object\n const result = this.createFormData(formatedForm, new FormData(), 'collect')\n\n this.setState({ submitButtonText: 'Patientez...', submitButtonDisabled: true })\n const token = document.querySelector('meta[name=\\'csrf-token\\']').getAttribute('content')\n\n fetch(`/collects/${this.state.id}`, {\n method: 'PATCH',\n headers: {\n 'X-CSRF-Token': token\n },\n body: result\n }).then(response => response.json())\n .then(data => {\n if (data.success)\n window.location = '/collects'\n else {\n this.setState({\n errors: data.formated_errors,\n submitButtonText: 'Sauvegarder les modifications',\n submitButtonDisabled: false\n })\n }\n })\n }\n\n handleChange = event => this.setState({ [event.target.name]: event.target.value })\n\n handleOperatorsChange = event => {\n const user_ids = Array.from(event.target.selectedOptions, option => option.value)\n this.setState({ user_ids })\n }\n\n handleCompletionAdditionnalChange = event => {\n this.setState({ has_completion_for_additionnal: event.target.checked })\n }\n\n /* eslint-disable capitalized-comments */\n // handleHasPrepopulateAnswersChange = event => {\n // this.setState({ has_prepopulate_answers: event.target.checked })\n // }\n /* eslint-enable capitalized-comments */\n\n getErrors = index => () => this.state.errors[`sections[${index}]`]\n\n handleOnDragEnd = result => {\n const { destination, source } = result\n\n if (!destination)\n return\n\n if (destination.droppableId === source.droppableId && destination.index === source.index)\n return\n\n this.setState(prevState => {\n const movedSection = prevState.sections[source.index]\n const newSections = prevState.sections\n\n newSections.splice(source.index, 1)\n newSections.splice(destination.index, 0, movedSection)\n newSections.forEach((section, index) => {\n section.position = index\n })\n\n return { sections: newSections }\n })\n }\n\n handleClickNewSection = () => {\n const newSection = {\n id: idGenerator(),\n name: 'Section',\n position: this.state.sections.length,\n coefficient: 100,\n questions: []\n }\n\n this.setState(prevState => ({ sections: prevState.sections.concat(newSection) }))\n }\n\n handleSectionChange = index => section => {\n this.setState(prevState => {\n const { sections } = prevState\n\n sections[index] = section\n\n return { sections }\n })\n }\n\n onDuplicateSection = duplicateData => async event => {\n event.stopPropagation()\n const data = await duplicateData()\n this.setState(prevState => {\n data.position = prevState.sections.length\n return { sections: [...prevState.sections, data] }\n })\n }\n\n handleRemoveSection = sectionId => event => {\n event.stopPropagation()\n this.setState(prevState => {\n let newlyRemovedSections = []\n const sections = prevState.sections.filter(section => section.id !== sectionId)\n\n if (!String(sectionId).includes('new-'))\n newlyRemovedSections = prevState.removed_section_ids.concat(sectionId)\n\n sections.forEach((section, index) => {\n section.position = index\n })\n\n return { sections, removed_section_ids: newlyRemovedSections }\n })\n }\n\n draggableSections = () => this.state.sections.map((section, index) => (\n \n {provided => (\n
\n \n
\n )}\n \n ))\n\n\n render() {\n return (\n
\n
\n
\n \n \n \n
\n
\n \n
\n
\n {/* {\n this.state.frequency === 'recurrent' && (\n
\n
\n \n \n
\n
\n )\n } */}\n {\n this.state.has_additional_answer ? (\n
\n
\n \n \n
\n
) : null\n\n }\n \n \n {provided => (\n
\n {this.draggableSections()}\n {provided.placeholder}\n
\n )}\n
\n
\n
\n \n
\n
\n
\n \n
\n
\n
\n )\n }\n}\n\nexport default CollectForm\n","import React from 'react'\n\nconst NumberField = ({ name, label, step, value, errors, onChange }) => (\n
\n {label ? : null}\n \n {errors ? {errors[0]} : null}\n
\n)\n\nexport default NumberField\n","import React from 'react'\n\n// Local import\nimport TextField from '../BasicFields/TextField'\nimport { updateErrors } from '../SectionField'\n\nclass Numeric extends React.Component {\n constructor(props) {\n super(props)\n\n this.state = {\n id: props.question.id,\n context: props.question.context,\n position: props.question.position,\n title: props.question.title,\n mandatory: props.question.mandatory,\n errors: props.question.errors || {}\n }\n }\n\n shouldComponentUpdate(_nextProps, nextState) {\n this.state.errors = updateErrors(this.state.errors, this.props.getErrors)\n\n return (\n this.state.title !== nextState.title ||\n this.state.mandatory !== nextState.mandatory ||\n this.state.position !== nextState.position ||\n this.state.errors.isNew === true\n )\n }\n\n componentDidUpdate() {\n this.props.handleQuestionChange(this.state)\n }\n\n handleChange = event => this.setState({ [event.target.name]: event.target.value })\n\n handleMandatoryChange = event => this.setState({ mandatory: event.target.checked })\n\n render() {\n return (\n
\n
\n
\n \n {' Question numérique '}\n \n
\n \n
\n \n
\n \n \n
\n
\n )\n }\n}\n\nexport default Numeric\n","import React from 'react'\n\nconst TextAreaField = ({ name, label, rows, value, placeholder, errors, onChange }) => (\n
\n \n \n {errors ? {errors[0]} : null}\n
\n)\n\nexport default TextAreaField\n","import React from 'react'\n\nconst TextField = ({ name, label, value, placeholder, errors, onChange }) => (\n
\n {label ? : null}\n \n {errors ? {errors[0]} : null}\n
\n)\n\nexport default TextField\n","import React from 'react'\n\n// Assets\nimport loadingSvg from '../../../assets/images/loading.svg'\n\nconst Loader = () => (\n
\n \n

Chargement de la collect en cours...

\n
\n)\n\nexport default Loader\n","import React from 'react'\n\n// Local import\nimport TextField from '../BasicFields/TextField'\nimport { updateErrors } from '../SectionField'\n\nclass Comment extends React.Component {\n constructor(props) {\n super(props)\n\n this.state = {\n id: props.question.id,\n context: props.question.context,\n position: props.question.position,\n title: props.question.title,\n mandatory: props.question.mandatory,\n errors: props.question.errors || {}\n }\n }\n\n shouldComponentUpdate(_nextProps, nextState) {\n this.state.errors = updateErrors(this.state.errors, this.props.getErrors)\n\n return (\n this.state.title !== nextState.title ||\n this.state.mandatory !== nextState.mandatory ||\n this.state.position !== nextState.position ||\n this.state.errors.isNew === true\n )\n }\n\n componentDidUpdate() {\n this.props.handleQuestionChange(this.state)\n }\n\n handleChange = event => this.setState({ [event.target.name]: event.target.value })\n\n handleMandatoryChange = event => this.setState({ mandatory: event.target.checked })\n\n render() {\n return (\n
\n
\n
\n \n {' Question avec commentaire '}\n \n
\n \n
\n \n
\n \n \n
\n
\n )\n }\n}\n\nexport default Comment\n","import React, { Component } from 'react'\nimport Dropzone from 'react-dropzone'\n\nclass PictureField extends Component {\n constructor(props) {\n super(props)\n\n this.state = {\n errors: props.errors || {},\n files: props.files,\n disabled: false\n }\n }\n\n shouldComponentUpdate(_nextProps, nextState) {\n this.state.errors = this.props.getErrors()\n return (\n this.state.files !== nextState.files ||\n this.state.disabled !== nextState.disabled ||\n this.state.errors.isNew === true\n )\n }\n\n handleOnDrop = files => {\n const newFiles = []\n\n files.forEach(file => {\n newFiles.push(Object.assign(file, {\n preview: URL.createObjectURL(file),\n filename: file.name\n }))\n })\n this.setState({ files: newFiles })\n this.props.onChange(files)\n }\n\n openFileDialog = open => () => {\n this.setState({ disabled: true }, () => {\n open()\n })\n }\n\n handleOnFileDialogOpen = () => {\n this.setState({ disabled: false })\n }\n\n render() {\n const thumbsContainer = {\n display: 'flex',\n flexDirection: 'row',\n flexWrap: 'wrap'\n }\n\n const thumb = {\n display: 'inline-flex',\n borderRadius: 2,\n border: '1px solid #eaeaea',\n marginBottom: 8,\n marginRight: 8,\n padding: 4,\n boxSizing: 'border-box'\n }\n\n const thumbInner = {\n display: 'flex',\n minWidth: 0,\n overflow: 'hidden'\n }\n\n const img = {\n display: 'block',\n width: '100%',\n maxHeight: '300px'\n }\n\n const containPicture = this.state.files.length > 0\n\n const defaultCursor = containPicture ? { cursor: 'default' } : {}\n\n\n const thumbs = this.state.files.map(file => (\n
\n
\n \n
\n
\n ))\n\n return (\n \n\n {({ getRootProps, getInputProps, open }) => (\n
\n
\n \n \n \n {containPicture ? 'Modifier' : 'Ajouter une image'}\n \n
\n {\n Boolean(this.state.errors.picture) &&\n \n {this.state.errors.picture[0]}\n \n }\n
\n\n )}\n \n )\n }\n}\nexport default PictureField\n","import React from 'react'\n\nconst SelectField = ({ name, label, data, value, errors, onChange, includeBlank, disabled }) => (\n
\n \n \n {includeBlank ? )}\n \n {errors ? {errors[0]} : null}\n
\n)\n\nexport default SelectField\n","import React, { useState, useEffect, useCallback } from 'react'\nimport PropTypes from 'prop-types'\nimport TextField from '../BasicFields/TextField'\n\nconst SelectionOption = ({ option, handleOptionChange, handleRemoveOption, multi }) => {\n const [content, setContent] = useState(option.content)\n\n useEffect(() => {\n handleOptionChange({ id: option.id, content })\n }, [content])\n\n const handleChange = useCallback(({ target: { name, value } }) => {\n if (name === 'content')\n setContent(value)\n }, [])\n\n return (\n <>\n
\n {\n multi ?:\n }\n
\n \n
\n
\n \n
\n
\n
\n \n )\n}\n\nPropTypes.SelectionOption = {\n option: PropTypes.shape({\n id: PropTypes.number.isRequired,\n content: PropTypes.string.isRequired\n }).isRequired,\n multi: PropTypes.bool,\n handleOptionChange: PropTypes.func.isRequired,\n handleRemoveOption: PropTypes.func.isRequired\n}\n\nPropTypes.SelectionOption.defaultProps = {\n multi: false\n}\n\nexport default SelectionOption\n","import React from 'react'\n\n// Local import\nimport TextField from '../BasicFields/TextField'\nimport { updateErrors } from '../SectionField'\n\nclass DateTime extends React.Component {\n constructor(props) {\n super(props)\n\n this.state = {\n id: props.question.id,\n context: props.question.context,\n position: props.question.position,\n title: props.question.title,\n mandatory: props.question.mandatory,\n errors: props.question.errors || {}\n }\n }\n\n shouldComponentUpdate(_nextProps, nextState) {\n this.state.errors = updateErrors(this.state.errors, this.props.getErrors)\n\n return (\n this.state.title !== nextState.title ||\n this.state.mandatory !== nextState.mandatory ||\n this.state.position !== nextState.position ||\n this.state.errors.isNew === true\n )\n }\n\n componentDidUpdate() {\n this.props.handleQuestionChange(this.state)\n }\n\n handleChange = event => this.setState({ [event.target.name]: event.target.value })\n\n handleMandatoryChange = event => this.setState({ mandatory: event.target.checked })\n\n render() {\n return (\n
\n
\n
\n \n {' Question avec date '}\n \n
\n \n
\n \n
\n \n \n
\n
\n )\n }\n}\n\nexport default DateTime\n","import React from 'react'\nimport PropTypes from 'prop-types'\n\nconst PhotoGallerySection = ({ title, photosSize, url }) => (\n
\n
\n
\n
\n {title}\n
\n
\n 0 ? 'badge-success' : 'badge-light'} pb-0`}>\n {photosSize}\n \n {photosSize > 1 ? ' photos' : ' photo'}\n
\n \n Voir les photos\n \n
\n
\n
\n)\n\nPhotoGallerySection.propTypes = {\n photosSize: PropTypes.number.isRequired,\n title: PropTypes.string.isRequired,\n url: PropTypes.string.isRequired\n}\n\nexport default PhotoGallerySection\n","/* eslint-disable camelcase */\n\nimport React from 'react'\n\n// Local import\nimport TextField from '../BasicFields/TextField'\nimport NumberField from '../BasicFields/NumberField'\nimport GradeOption from './GradeOption'\nimport { updateErrors } from '../SectionField'\n\n// Use an counter to avoid duplicate id generation\nlet idCounter = 0\nconst idGenerator = () => `new-${new Date().getTime() + idCounter++}`\n\nclass Grade extends React.Component {\n constructor(props) {\n super(props)\n\n const options = props.question.options || []\n if (props.question.not_applicable &&\n options[options.length - 1] &&\n options[options.length - 1].content === 'Non applicable')\n options[options.length - 1].hidden = true\n\n this.state = {\n id: props.question.id,\n context: props.question.context,\n position: props.question.position,\n title: props.question.title,\n mandatory: props.question.mandatory,\n not_applicable: props.question.not_applicable || false,\n coefficient: props.question.coefficient || 100,\n options,\n removed_option_ids: [],\n errors: props.question.errors || {}\n }\n }\n\n shouldComponentUpdate(_nextProps, nextState) {\n this.state.errors = updateErrors(this.state.errors, this.props.getErrors)\n\n return (\n this.state.title !== nextState.title ||\n this.state.mandatory !== nextState.mandatory ||\n this.state.position !== nextState.position ||\n this.state.not_applicable !== nextState.not_applicable ||\n this.state.coefficient !== nextState.coefficient ||\n this.state.errors.isNew === true\n )\n }\n\n componentDidUpdate() {\n this.props.handleQuestionChange(this.state)\n }\n\n handleChange = event => this.setState({ [event.target.name]: event.target.value })\n\n handleMandatoryChange = event => this.setState({ mandatory: event.target.checked })\n\n handleNotApplicableChange = event => {\n this.setState(prevState => {\n let { options } = prevState\n let removedOptions = prevState.removed_option_ids\n\n if (event.target.checked)\n options.push({ id: idGenerator(), content: 'Non applicable', hidden: true })\n else {\n const removedOption = prevState.options.find(option => option.hidden === true)\n\n if (!String(removedOption.id).includes('new-'))\n removedOptions = removedOptions.concat(removedOption.id)\n\n options = options.filter(option => option.id !== removedOption.id)\n }\n\n return {\n not_applicable: event.target.checked,\n options,\n removed_option_ids: removedOptions\n }\n })\n }\n\n handleOptionChange = index => option => {\n this.setState(prevState => {\n const { options } = prevState\n\n options[index] = option\n\n return { options }\n })\n }\n\n optionList = () => {\n const optionElements = this.state.options\n\n for (let iterator = this.state.options.length; iterator < this.props.data.grade_size; iterator++)\n optionElements.push({ id: idGenerator(), content: '' })\n\n optionElements.forEach((option, index) => {\n option.position = index\n })\n\n return (\n optionElements.map((option, index) => (\n
\n )\n }\n}\n\nexport default SectionField\nexport { updateErrors }\n"],"names":["Description","React","constructor","props","super","this","state","id","question","context","position","description","errors","shouldComponentUpdate","_nextProps","nextState","updateErrors","getErrors","isNew","componentDidUpdate","handleQuestionChange","handleChange","event","setState","target","name","value","render","className","Object","assign","dragHandleProps","onClick","handleQuestionDuplicate","handleQuestionRemove","TextAreaField","placeholder","rows","onChange","GradeOption","option","content","handleOptionChange","hidden","step","TextField","EditCollect","collectId","headers","data","setData","useState","useEffect","fetch","method","then","response","json","responseData","href","CollectForm","Loader","idCounter","ensemble_id","user_ids","help_text","has_additional_answer","has_completion_for_additionnal","has_prepopulate_answers","ensembles","operators","sections","removed_section_ids","frequency","submitButtonText","submitButtonDisabled","createFormData","formData","FormData","parentKey","keys","forEach","key","newKey","Array","isArray","length","item","append","findQuestion","sectionId","questionId","find","stateSection","questions","formatForm","formatedForm","JSON","parse","stringify","section","options","removed_option_ids","removed_options","map","_destroy","options_attributes","concat","pictureQuestion","picture","changed","removed_questions","removed_question_ids","questions_attributes","removed_sections","sections_attributes","handleSubmit","preventDefault","result","token","document","querySelector","getAttribute","body","success","window","location","formated_errors","handleOperatorsChange","from","selectedOptions","handleCompletionAdditionnalChange","checked","index","handleOnDragEnd","destination","source","droppableId","prevState","movedSection","newSections","splice","handleClickNewSection","newSection","Date","getTime","coefficient","handleSectionChange","onDuplicateSection","duplicateData","async","stopPropagation","handleRemoveSection","newlyRemovedSections","filter","String","includes","draggableSections","Draggable","draggableId","provided","ref","innerRef","draggableProps","SectionField","fieldName","collectFrequency","handleDuplicateSection","onSubmit","label","SelectField","disabled","SelectUserGroupField","multiple","type","htmlFor","DragDropContext","onDragEnd","Droppable","droppableProps","NumberField","Numeric","title","mandatory","handleMandatoryChange","src","loadingSvg","Comment","PictureField","Component","files","handleOnDrop","newFiles","file","push","preview","URL","createObjectURL","filename","openFileDialog","open","handleOnFileDialogOpen","thumbsContainer","display","flexDirection","flexWrap","thumb","borderRadius","border","marginBottom","marginRight","padding","boxSizing","thumbInner","minWidth","overflow","img","width","maxHeight","containPicture","defaultCursor","cursor","thumbs","style","Dropzone","accept","noClick","noKeyboard","onDrop","onFileDialogOpen","getRootProps","getInputProps","Boolean","includeBlank","defaultValue","PropTypes","isRequired","multi","handleRemoveOption","defaultProps","SelectionOption","setContent","useCallback","DateTime","PhotoGallerySection","photosSize","url","propTypes","idGenerator","Grade","not_applicable","handleNotApplicableChange","removedOptions","removedOption","optionList","optionElements","iterator","grade_size","grade_zero_start","$","selectpicker","on","selectElement","parent","onpaste","clipboardData","getData","splitStr","paste","split","newValues","pasteElement","toUpperCase","text","previousValues","last_name","first_name","Selection","handleClickNewOption","optionId","newlyRemovedOption","updatedOptions","option_ids","option_id","Photos","Signature","Variable","variable_id","variables","variable","Picture","handlePictureChange","webpackContext","req","webpackContextResolve","__webpack_require__","o","e","Error","code","resolve","module","exports","PhotoGallery","Title","stateErrors","collapseList","elementId","collapse","static","questionToDuplicate","blob","image","File","duplicateQuestionWithOptionsDuplicate","duplicateQuestionWithPictureDuplicate","has_disabled_status","handleNameChange","handleCoefficientChange","handleDisabledStatusChange","movedQuestion","newQuestions","duplicatedData","Promise","all","duplicateQuestion","questionsCollapseId","contentsCollapseId","handleClickNewContent","newContent","handleClickNewquestion","newQuestion","addQuestionButton","addContentButton","originalQuestion","updatedQuestions","newlyRemovedQuestions","draggableQuestions","questionComponents","grade","photos","selection","selection_multi","comment","numeric","signature","datetime","createElement"],"sourceRoot":""}