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AAAA,EAAKC,EAAE,wCAE/E,E,cCjEF,MAAMqT,EAAYC,SAASC,eAAe,sBACtCF,IACFG,EAAAA,EAAAA,GAAWH,GAAWI,OAAO/T,EAAAA,cAACgU,EAAAA,WAAU,KAAChU,EAAAA,cAAC6S,EAAa,O,4DCHlD,MAAM/E,EAAeA,KAC1B,MAAOH,EAAWsG,IAAgBpR,EAAAA,EAAAA,UAAS,IAQ3C,OANAU,EAAAA,EAAAA,YAAU,MACRiC,EAAAA,EAAAA,MACGsJ,MAAKC,GAAOA,EAAIC,SAChBF,MAAKxI,IAAS2N,EAAa3N,EAAK,GAAE,GACpC,IAEIqH,CAAS,C,uECRX,MAAMtD,EAAmBL,IAC9B,MAAOkK,EAAQC,IAAatR,EAAAA,EAAAA,UAAS,IAYrC,OAVAU,EAAAA,EAAAA,YAAU,MACH0I,EAAAA,EAAAA,MAA8B,OAAnBjC,IAEhBhF,EAAAA,EAAAA,KACG8J,MAAKC,GAAOA,EAAIC,SAChBF,MAAKxI,IACJ6N,EAAU7N,EAAK2I,KAAImD,IAAC,CAAMxR,MAAOwR,EAAE1M,GAAIH,OAAQ6M,EAAEgC,QAASjT,MAAOiR,EAAE1M,OAAM,GACzE,GACH,IAEIwO,CAAM,C,4DCdR,MAAM3J,EAAoBhF,IAC/B,MAAO8O,EAASC,IAAczR,EAAAA,EAAAA,UAAS,IAYvC,OAVAU,EAAAA,EAAAA,YAAU,KACHgC,IAELD,EAAAA,EAAAA,IAAyBC,GACtBuJ,MAAKC,GAAOA,EAAIC,SAChBF,MAAKxI,IACJgO,EAAWhO,EAAK2I,KAAIsF,IAAC,CAAM3T,MAAO2T,EAAE7O,GAAIvE,MAAOoT,EAAE7O,OAAM,GACvD,GACH,CAACH,IAEG8O,CAAO,C","sources":["webpack://lionwheel/./app/javascript/src/react_components/tasks/EmptyCustom.jsx","webpack://lionwheel/./app/javascript/src/react_components/tasks/ModalHeader.jsx","webpack://lionwheel/./app/javascript/src/react_components/tasks/PhoneInput.jsx","webpack://lionwheel/./app/javascript/src/react_components/tasks/ScalableSelect.jsx","webpack://lionwheel/./app/javascript/src/react_components/tasks/actions.js","webpack://lionwheel/./app/javascript/src/react_components/tasks/common.jsx","webpack://lionwheel/./app/javascript/src/react_components/tasks/distributions/cards/DestinationsCard.jsx","webpack://lionwheel/./app/javascript/src/react_components/tasks/distributions/cards/SourceCard.jsx","webpack://lionwheel/./app/javascript/src/react_components/tasks/distributions/FormComponent.jsx","webpack://lionwheel/./app/javascript/src/react_components/tasks/distributions/NewTaskModule.jsx","webpack://lionwheel/./app/javascript/src/react_components/tasks/distributions/index.js","webpack://lionwheel/./app/javascript/src/react_components/tasks/hooks/useCompanies.js","webpack://lionwheel/./app/javascript/src/react_components/tasks/hooks/useIsraelCities.js","webpack://lionwheel/./app/javascript/src/react_components/tasks/hooks/useIsraelStreets.js"],"sourcesContent":["import React from 'react';\nimport {Empty} from \"antd\";\nimport {i18n} from \"../../helpers/i18n\";\n\nconst EmptyCustom = () => {\n return ()\n}\n\nexport default EmptyCustom\n","import React from 'react';\n\nconst ModalHeader = ({title}) => {\n return (\n
\n
\n {title}\n
\n
\n )\n}\n\nexport default ModalHeader\n","import { Form, Input } from \"antd\";\nimport React, { useCallback } from \"react\";\nimport { i18n } from \"../../helpers/i18n\";\nimport { formatPhoneNumber } from \"../../helpers/utils\";\n\nconst PhoneInput = ({ name = ['visits_attributes', 0, 'phone'], label = i18n.t('models.location.contact_phone'),\n disabled = false, required = false, onChange = () => {} }) => {\n\n const validatePhone = useCallback((_, value) => {\n if (!value && required) { return Promise.reject(new Error(i18n.t('mandatory_field'))); }\n\n if (!value || /^[0-9+\\-]*$/.test(value)) { return Promise.resolve(); }\n\n return Promise.reject(new Error(i18n.t('allowed_phone_format')));\n }, []);\n\n return (\n formatPhoneNumber(e.target.value)}>\n \n \n );\n};\n\nexport default PhoneInput;\n","import React, {useEffect, useRef, useState} from 'react';\nimport {Space, Select, Divider, Input, Button} from \"antd\";\nimport {PlusOutlined} from \"@ant-design/icons\";\nimport {i18n} from \"../../helpers/i18n\";\nimport EmptyCustom from \"./EmptyCustom\";\n\nconst ScalableSelect = ({placeholder = '', extraPlaceholder, items, setValueFn, ...props}) => {\n const [options, setOptions] = useState(items)\n const [open, setOpen] = useState(false)\n const [name, setName] = useState('')\n const inputRef = useRef(null)\n const onNameChange = (event) => {setName(event.target.value)}\n const addItem = (e) => {\n e.preventDefault()\n setOptions([...options, {label: name, value: name}])\n setName('')\n setValueFn(name)\n setOpen(false)\n }\n\n useEffect(() => {setOptions(items)}, [items])\n\n return (\n setOpen(visible)}\n onSearch={() => {}}\n notFoundContent={}\n dropdownRender={(menu) => (\n <>\n {menu}\n \n \n e.stopPropagation()}\n onPressEnter={addItem}\n />\n \n \n \n )}\n options={options}\n />\n )\n}\n\nexport default ScalableSelect\n","import {csrfToken, selectedIds} from \"../../helpers/utils\";\n\nexport const fetchIsraelCitiesAction = async () => {\n return await fetch('/israel_cities', {\n method: 'GET',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRF-TOKEN': csrfToken()\n }\n })\n}\n\nexport const fetchIsraelStreetsAction = async (cityId) => {\n return await fetch(`/israel_cities/${cityId}/streets`, {\n method: 'GET',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRF-TOKEN': csrfToken()\n }\n })\n}\n\nexport const fetchCompaniesAction = async () => {\n return await fetch('/api/web/companies', {\n method: 'GET',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRF-TOKEN': csrfToken()\n }\n })\n}\n\nexport const fetchCompanyUsersAction = async id => {\n return await fetch(`/api/web/companies/${id}/users`, {\n method: 'GET',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRF-TOKEN': csrfToken()\n }\n })\n}\n\nexport const fetchLocationsAction = async (companyId = null) => {\n const url = companyId ? `/api/web/locations/options?company_id=${companyId}` : '/api/web/locations/options'\n return await fetch(url, {\n method: 'GET',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRF-TOKEN': csrfToken()\n }\n })\n}\n\nexport const fetchClientsAction = async (companyId = null) => {\n const url = companyId ? `/api/web/clients/options?company_id=${companyId}` : '/api/web/clients/options'\n return await fetch(url, {\n method: 'GET',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRF-TOKEN': csrfToken()\n }\n })\n}\n\nexport const fetchRoutesAction = async () => {\n return await fetch('/api/web/routes/options', {\n method: 'GET',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRF-TOKEN': csrfToken()\n }\n })\n}\n\nexport const fetchDriversAction = async () => {\n return await fetch('/api/web/drivers/options', {\n method: 'GET',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRF-TOKEN': csrfToken()\n }\n })\n}\n\nexport const fetchProductsAction = async (page, search) => {\n return await fetch(`/api/web/products/options?page=${page}&search=${search}`, {\n method: 'GET',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRF-TOKEN': csrfToken()\n }\n })\n}\n\nexport const createTaskAction = async data => {\n return await fetch('/api/web/tasks', {\n method: 'POST',\n headers: {\n 'X-CSRF-TOKEN': csrfToken()\n },\n body: data\n })\n}\n\nexport const calculatePriceAction = async data => {\n return await fetch('/api/web/tasks/calculate_price', {\n method: 'POST',\n headers: {\n 'X-CSRF-TOKEN': csrfToken()\n },\n body: data\n })\n}\n\nexport const createScheduledTaskAction = async data => {\n return await fetch('/api/web/scheduled_tasks', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRF-TOKEN': csrfToken()\n },\n body: JSON.stringify(data)\n })\n}\n\nexport const createDistributionAction = async data => {\n return await fetch('/api/web/distributions', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRF-TOKEN': csrfToken()\n },\n body: JSON.stringify(data)\n })\n}\n\nexport const fetchVehiclesAction = async (date) => {\n return await fetch('/api/web/vehicles/index_suggestion', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRF-TOKEN': csrfToken()\n },\n body: JSON.stringify({date: date})\n })\n}\n\nexport const fetchEndOptionsAction = async (ids) => {\n return await fetch('/api/web/vehicles/end_options', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRF-TOKEN': csrfToken()\n },\n body: JSON.stringify({ids: ids})\n })\n}\n\nexport const fetchVisitsSummaryAction = async (ids) => {\n return await fetch('/api/web/vehicles/visits_summary', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'X-CSRF-TOKEN': csrfToken()\n },\n body: JSON.stringify({ids: ids})\n })\n}\n","import {i18n} from \"../../helpers/i18n\";\nimport React from \"react\";\nimport {Button} from \"antd\";\n\nexport const typeOptions = [\n {\n label: i18n.t('views.tasks.types.delivery'),\n value: 'delivery'\n },\n {\n label: i18n.t('views.tasks.types.pickup'),\n value: 'pickup'\n },\n {\n label: i18n.t('views.tasks.types.transfer'),\n value: 'transfer'\n }\n]\n\nexport const locationLabel = ({name, city, street, number}) => (\n \n {name || ''} {(city || '') + ', ' + (street || '') + ', ' + (number || '')}\n \n)\n\nexport const userLabel = ({username, name, email}) => (\n <>{username || ''} {(name || '') + ', ' + (email || '')}\n)\n\nexport const userSearchString = ({ username, name, email }) => `${username || ''} ${name || ''}, ${email || ''}`\n\nexport const afterCreateNotification = (task, notificationApi) => {\n const { id, ready_to_print: readyToPrint } = task\n notificationApi.success({\n message:
\n
{i18n.t('views.tasks.task_created.title', {id: id})}
\n
\n \n {readyToPrint && (\n \n )}\n
\n
,\n placement: 'top',\n style: {minWidth: 500}\n })\n}\n","import React, {useCallback} from 'react'\nimport {Form, Select} from \"antd\";\nimport {i18n} from \"../../../../helpers/i18n\";\nimport {CloseCircleOutlined} from \"@ant-design/icons\";\nimport EmptyCustom from \"../../EmptyCustom\";\n\nconst DestinationsCard = ({locationsOptions}) => {\n const filterLocationsOption = useCallback((search, option) => {\n const part1 = option.label.props.children[0].toLowerCase().includes(search.toLowerCase())\n const part2 = option.label.props.children[2].props.children.toLowerCase().includes(search.toLowerCase())\n return part1 || part2\n }, [])\n\n return (\n
\n
\n
\n \n {i18n.t('models.distribution.destinations')}\n
\n
\n
\n
\n
\n \n }}\n onSelect={sourceChange}\n onClear={() => {clearLocationForm()}}\n showSearch\n notFoundContent={}\n autoComplete=\"none\"\n filterOption={filterLocationsOption}\n placeholder={i18n.t('views.tasks.source_locations_placeholder')}\n />\n \n
\n
\n
\n
\n
\n \n \n \n
\n
\n \n {(isRTL()) ? (\n {form.setFieldValue(['visits_attributes', 0, 'city'], val)}}\n autoComplete=\"none\"\n />\n ) : (\n clearCoordinates()}/>\n )}\n \n
\n
\n \n {(isRTL()) ? (\n clearCoordinates()}\n extraPlaceholder={i18n.t('views.tasks.add_street')}\n setValueFn={(val) => {form.setFieldValue(['visits_attributes', 0, 'street'], val)}}\n autoComplete=\"none\"\n />\n ) : (\n clearCoordinates()}/>\n )}\n \n
\n
\n \n clearCoordinates()}/>\n \n
\n {allowZipCode && (\n
\n \n \n \n
\n )}\n
\n \n \n \n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n \n
\n
\n \n \n \n
\n
\n
\n
\n
\n )\n}\n\nexport default SourceCard\n","import React, {useEffect, useState} from 'react'\nimport {\n Button,\n Checkbox,\n ConfigProvider,\n Form,\n Input, InputNumber, Select,\n Modal, notification, DatePicker\n} from \"antd\";\nimport {isRTL} from \"../../../helpers/locale\";\nimport {i18n} from \"../../../helpers/i18n\";\nimport {getDateFormat} from \"../../../helpers/date\";\nimport dayjs from \"dayjs\";\nimport EmptyCustom from \"../EmptyCustom\";\nimport ModalHeader from \"../ModalHeader\";\nimport {useCompanies} from \"../hooks/useCompanies\";\nimport DestinationsCard from \"./cards/DestinationsCard\";\nimport SourceCard from \"./cards/SourceCard\";\nimport {createDistributionAction, fetchCompanyUsersAction, fetchLocationsAction} from \"../actions\";\nimport { locationLabel, userLabel, userSearchString } from \"../common\";\n\nexport default ({isOpen, setIsOpen, config, antLocale}) => {\n const {\n bgColor,\n allow_companies: allowCompanies,\n allow_is_roundtrip: allowIsRoundtrip,\n allow_vehicle_kind: allowVehicleKind,\n allow_packages_quantity: allowPackagesQuantity,\n allow_surfaces_quantity: allowSurfacesQuantity,\n allow_returned_pallets: allowReturnedPallets,\n default_packages_quantity: defaultPackagesQuantity,\n vehicle_kind_options: vehicleKindOptions\n } = config\n\n let companies = null\n\n const [loading, setLoading] = useState(false)\n if (allowCompanies) {\n companies = useCompanies()\n }\n const [activeCompany, setActiveCompany] = useState(null)\n const [locationsOptions, setLocationsOptions] = useState([])\n const [usersOptions, setUsersOptions] = useState([])\n const [sourceLatitude, setSourceLatitude] = useState()\n const [sourceLongitude, setSourceLongitude] = useState()\n const [showOtherUser, setShowOtherUser] = useState(false)\n const [form] = Form.useForm()\n const [notificationApi, notificationContext] = notification.useNotification()\n\n const presentResource = () => (\n {\n user_id: null,\n pickup_at: dayjs.tz(),\n company_id: null,\n vehicle_kind: vehicleKindOptions[0].value,\n is_roundtrip: null,\n notes: null,\n packages_quantity: defaultPackagesQuantity,\n surfaces_quantity: null,\n returned_pallets: null,\n document_number: null,\n visits_attributes: [{\n city: null,\n street: null,\n name: null,\n number: null,\n zip_code: null,\n floor: null,\n apartment: null,\n notes: null,\n recipient_name: null,\n phone: null\n }],\n destinations: []\n }\n )\n\n const companyChange = id => {\n const company = companies.find(c => (c.id === id))\n setActiveCompany(company)\n }\n\n useEffect(() => {\n if (activeCompany) {\n form.setFieldValue('ordering_user', null)\n fetchLocationsAction(activeCompany.id)\n .then(res => res.json())\n .then(data => {\n setLocationsOptions(data.map(l => ({value: l.id, item: l, kind: 'location', label: locationLabel(l), key: 'location' + l.id})))\n })\n fetchCompanyUsersAction(activeCompany.id)\n .then(res => res.json())\n .then(data => {\n setUsersOptions(data.map(u => ({ value: u.id, label: userLabel(u), searchString: userSearchString(u) })))\n })\n }\n }, [activeCompany])\n\n useEffect(() => {\n if (showOtherUser) {\n form.setFieldValue('user_id', null)\n } else {\n form.setFieldValue('other_user', '')\n }\n }, [showOtherUser]);\n\n const normalizeData = (params) => {\n let data = {\n ...params,\n visits_attributes: [\n {\n ...params.visits_attributes[0],\n kind: 'PICKUP',\n latitude: sourceLatitude,\n longitude: sourceLongitude,\n }\n ]\n }\n delete data.source\n return data\n }\n\n const onSubmit = async data => {\n setLoading(true)\n\n const res = await createDistributionAction(normalizeData(data))\n let dataRes\n switch (res.status) {\n case 200:\n setIsOpen(false)\n dataRes = await res.json()\n notificationApi.success({\n message:
\n
{dataRes.msg}
\n
,\n placement: 'top'\n })\n form.resetFields()\n setLoading(false)\n break\n case 422:\n dataRes = await res.json()\n notificationApi.error({message: dataRes.error, placement: 'top'})\n setLoading(false)\n break\n default:\n setLoading(false)\n }\n }\n\n return (\n \n {notificationContext}\n }\n footer={\n
\n \n
\n }\n onCancel={() => setIsOpen(false)}\n width={window.innerWidth > 576 ? '80%' : '100%'}\n >\n e.key === \"Enter\" ? e.preventDefault(): ''}\n >\n
\n
\n
\n
\n
\n
\n
\n \n {i18n.t('models.task.main')}\n
\n
\n
\n
\n
\n \n \n \n
\n {allowCompanies && (\n
\n \n ({label: c.name, value: c.id}))}\n showSearch\n optionFilterProp={'label'}\n onChange={companyChange}\n notFoundContent={}\n />\n \n
\n )}\n {!showOtherUser && (\n
\n \n \n\n \n {setShowOtherUser(false)}}>{i18n.t('views.tasks.ordering_user.existing_user')}\n
\n )}\n {activeCompany?.innerNote && (\n
\n
\n {i18n.t('models.company.company_note')} - {activeCompany.innerNote}\n
\n
\n )}\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n {i18n.t('details')}\n
\n
\n
\n
\n
\n
\n {allowVehicleKind && (\n
\n \n