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OAAO,SACjC,gBAAC,WAAW,CACV9B,MAAOjC,KAAKC,EAAE,kCACdiC,SAAU,gBAAC,IAAK,CAAC5B,IAAK+b,EAAe1c,MAAM,KAAKa,aAAW,IAC3D8b,WAAY,gBAAC,IAAM,CAACvc,QAAUrD,GAAMY,KAAKsL,YAAYlM,IAAKsD,KAAKC,EAAE,yBAEnE,gBAAC,YAAY,KACX,gBAAC,IAAI,CAAC4D,UAAU,oBACd,gBAAC,UAAQ,iBAAKvG,KAAKC,MAAK,CACtBgZ,OAAQjZ,KAAKC,MAAMgZ,OACnBlQ,SAAU/I,KAAKC,MAAM8I,SACrBhI,YAAaf,KAAKC,MAAMc,YACxBG,eAAgBlB,KAAKC,MAAMiB,eAC3BksB,kBAAmBptB,KAAKotB,kBACxBD,kBAAmBntB,KAAKmtB,kBACxBuE,qBAAsB1xB,KAAK0xB,qBAC3BlpB,YAAaxI,KAAKF,MAAM0I,YACxB/C,KAAMzF,KAAKC,MAAMwF,KACjB1D,IAAK/B,KAAK2lB,aAKa,KAA7B3lB,KAAKF,MAAM2I,cAA0BzI,KAAKsW,YAAYtW,KAAKF,MAAM2I,eAAiB,MAClD,KAAhCzI,KAAKF,MAAMmyB,iBAA6BjyB,KAAKkyB,oBAAoBlyB,KAAKF,MAAMmyB,kBAAoB,KAGxG,EAGF,W,oCClPO,SAASlqB,EAAcC,EAAUrC,GACpCA,EAAMysB,SAASxsB,QAAQysB,OAAO,gBALlC,SAAmBrqB,GACf,OAAOA,EAASsqB,cAAc,uBAAuB7X,OACzD,CAGoD8X,CAAUvqB,EAC9D,C","sources":["webpack://app/./app/javascript/components/ sync ^\\.\\/.*$","webpack://app/./app/javascript/components/App.js","webpack://app/./app/javascript/components/Footer.js","webpack://app/./app/javascript/components/Router.js","webpack://app/./app/javascript/components/coliship/ColishipImport.js","webpack://app/./app/javascript/components/coliship/ColishipIndex.js","webpack://app/./app/javascript/components/configs/BackOffice.js","webpack://app/./app/javascript/components/configs/Carrier.js","webpack://app/./app/javascript/components/configs/ConfigForm.js","webpack://app/./app/javascript/components/configs/FrontOffice.js","webpack://app/./app/javascript/components/configs/Intro.js","webpack://app/./app/javascript/components/configs/MyAccount.js","webpack://app/./app/javascript/components/configs/Orders.js","webpack://app/./app/javascript/components/deposit/ByDeposit.js","webpack://app/./app/javascript/components/deposit/ByLabelWithDeposit.js","webpack://app/./app/javascript/components/deposit/ByLabelWithoutDeposit.js","webpack://app/./app/javascript/components/deposit/DepositGlobal.js","webpack://app/./app/javascript/components/modal/InstallGuide.js","webpack://app/./app/javascript/components/modal/OnBoarding.js","webpack://app/./app/javascript/components/modal/Upgrade.js","webpack://app/./app/javascript/components/modal/WhoIsContent.js","webpack://app/./app/javascript/components/orders/OrderIndex.js","webpack://app/./app/javascript/components/support/Contact.js","webpack://app/./app/javascript/components/support/Faq.js","webpack://app/./app/javascript/components/support/General.js","webpack://app/./app/javascript/components/support/Support.js","webpack://app/./app/javascript/components/support/Video.js","webpack://app/./app/javascript/components/tracking/Tracking.js","webpack://app/./app/javascript/components/tracking/TrackingGlobal.js","webpack://app/./app/javascript/util/helpers.js"],"sourcesContent":["var map = {\n\t\"./App\": 6546,\n\t\"./App.js\": 6546,\n\t\"./Footer\": 9039,\n\t\"./Footer.js\": 9039,\n\t\"./Router\": 6521,\n\t\"./Router.js\": 6521,\n\t\"./coliship/ColishipImport\": 4463,\n\t\"./coliship/ColishipImport.js\": 4463,\n\t\"./coliship/ColishipIndex\": 3152,\n\t\"./coliship/ColishipIndex.js\": 3152,\n\t\"./configs/BackOffice\": 1374,\n\t\"./configs/BackOffice.js\": 1374,\n\t\"./configs/Carrier\": 5865,\n\t\"./configs/Carrier.js\": 5865,\n\t\"./configs/ConfigForm\": 817,\n\t\"./configs/ConfigForm.js\": 817,\n\t\"./configs/FrontOffice\": 4940,\n\t\"./configs/FrontOffice.js\": 4940,\n\t\"./configs/Intro\": 1743,\n\t\"./configs/Intro.js\": 1743,\n\t\"./configs/MyAccount\": 4821,\n\t\"./configs/MyAccount.js\": 4821,\n\t\"./configs/Orders\": 7879,\n\t\"./configs/Orders.js\": 7879,\n\t\"./deposit/ByDeposit\": 8707,\n\t\"./deposit/ByDeposit.js\": 8707,\n\t\"./deposit/ByLabelWithDeposit\": 3866,\n\t\"./deposit/ByLabelWithDeposit.js\": 3866,\n\t\"./deposit/ByLabelWithoutDeposit\": 7535,\n\t\"./deposit/ByLabelWithoutDeposit.js\": 7535,\n\t\"./deposit/DepositGlobal\": 3214,\n\t\"./deposit/DepositGlobal.js\": 3214,\n\t\"./modal/InstallGuide\": 8033,\n\t\"./modal/InstallGuide.js\": 8033,\n\t\"./modal/OnBoarding\": 2426,\n\t\"./modal/OnBoarding.js\": 2426,\n\t\"./modal/Upgrade\": 1543,\n\t\"./modal/Upgrade.js\": 1543,\n\t\"./modal/WhoIsContent\": 9038,\n\t\"./modal/WhoIsContent.js\": 9038,\n\t\"./orders/OrderIndex\": 838,\n\t\"./orders/OrderIndex.js\": 838,\n\t\"./support/Contact\": 9988,\n\t\"./support/Contact.js\": 9988,\n\t\"./support/Faq\": 7031,\n\t\"./support/Faq.js\": 7031,\n\t\"./support/General\": 4314,\n\t\"./support/General.js\": 4314,\n\t\"./support/Support\": 5506,\n\t\"./support/Support.js\": 5506,\n\t\"./support/Video\": 2583,\n\t\"./support/Video.js\": 2583,\n\t\"./tracking/Tracking\": 1287,\n\t\"./tracking/Tracking.js\": 1287,\n\t\"./tracking/TrackingGlobal\": 6537,\n\t\"./tracking/TrackingGlobal.js\": 6537\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 = 982;","/* Import NPM or YARN MODULE */\nimport React from 'react';\nimport { BrowserRouter } from 'react-router-dom';\nimport Router from \"./Router\";\n\nimport OnBoarding from \"./modal/OnBoarding\"\nimport Upgrade from \"./modal/Upgrade\"\nimport InstallGuide from \"./modal/InstallGuide\"\nimport WhoIsContent from \"./modal/WhoIsContent\"\n\nimport { \n WixDesignSystemProvider,\n Notification\n} from '@wix/design-system';\n\nimport \"@wix/design-system/styles.global.css\";\n\n/* CREATE RENDER APP */\nclass App extends React.Component {\n\n state = {\n onboarding: this.props.onboarding ? this.props.onboarding : false,\n installguide: false,\n whoisPage: false,\n updatedConfig: false,\n showToast: false,\n messageToast: null,\n errorToast: false,\n upgrade: this.props.upgrade ? this.props.upgrade : false,\n upgrade_url: this.props.upgrade_url ? this.props.upgrade_url : false,\n config: this.props.configData ? this.props.configData : '',\n }\n\n toggleActive = (field) => {\n this.setState({ [field]: !this.state[field] });\n }\n\n toggleToast = (message, error) => {\n this.setState(({ showToast }) => ({ showToast: !showToast }));\n this.setState({ messageToast: message });\n this.setState({ errorToast: error });\n };\n\n contentOverlay = (field, value) => {\n this.setState({ [field]: value });\n }\n\n /* Update Config\n La méthode est utilisée dans chaque Enfant de ConfigForm\n */\n handleUpdateConfig = (value) => {\n this.setState({ showToast: false });\n this.setState({ updatedConfig: value });\n };\n\n handleChildChange = (value) => {\n this.setState({\n config: value,\n })\n };\n\n render() {\n const {\n showToast,\n messageToast,\n errorToast,\n config,\n } = this.state\n\n const toogleNotification = (showToast &&\n \n \n {messageToast}\n \n \n \n )\n\n return (\n \n \n { this.childRouter = instance; }}\n />\n \n \n \n \n {toogleNotification}\n \n \n );\n };\n}\n\nexport default App","import React from 'react';\n\nimport { \n TextButton,\n Layout,\n Box,\n Divider,\n Image,\n Cell\n} from '@wix/design-system';\n\nimport { FavoriteFilledSmall } from '@wix/wix-ui-icons-common';\n\nimport Logo from \"../../assets/images/logo.png\";\n\nclass Footer extends React.Component {\n render() {\n return(\n \n
\n \n \n this.props.contentOverlay('onboarding', true)}>{I18n.t('menu.welcome')}\n \n this.props.contentOverlay('installguide', true)}>{I18n.t('menu.guide')}\n \n this.props.contentOverlay('whoisPage', true)}>{I18n.t('menu.quisommes')}\n \n  {I18n.t('menu.review')} \n \n \n \n
\n
\n )\n }\n}\n\nexport default Footer\n ","import React from \"react\";\nimport { Route, Routes } from 'react-router-dom';\nimport Orders from \"./orders/OrderIndex\"\nimport Coliship from \"./coliship/ColishipIndex\"\nimport Configs from \"./configs/ConfigForm\"\nimport DepositGlobal from \"./deposit/DepositGlobal\"\nimport TrackingGlobal from \"./tracking/TrackingGlobal\"\nimport Support from \"./support/Support\"\nimport Footer from \"./Footer\";\n\nclass Router extends React.Component {\n render() {\n return (\n \n \n {this.props.config_no_coliship ? (\n ) : (\n \n )}\n \n \n }/>\n \n { this.childDepositGlobal= instance; }}\n error={this.props.error}\n />\n \n \n }/>\n \n { this.childDepositGlobal= instance; }}\n error={this.props.error}\n />\n \n \n }/>\n \n \n \n \n }/>\n \n \n \n \n }/>\n \n );\n }\n}\n\nexport default Router","import React, {useCallback, useState} from 'react';\nimport {\n Card,\n Layout,\n Cell,\n Dropzone,\n Box,\n AddItem,\n EmptyState,\n FileUpload,\n TextButton,\n Button,\n Text,\n Heading} from '@wix/design-system';\nimport axios from 'axios'\nimport { UploadExport } from '@wix/wix-ui-icons-common';\n\nconst ColishipImport = (props) => {\n const [files, setFiles] = useState([]);\n const [loading, setLoading] = useState(false);\n const [orderError, setOrderError] = useState(false);\n const [orderSuccess, setOrderSuccess] = useState(false);\n const [totalLine, setTotalLine] = useState(false);\n\n const handleDropZoneDrop = useCallback((acceptedFiles) => setFiles(files => [...files, ...acceptedFiles]), []);\n\n const fileUpload = !files.length && \n \n {({ openFileUploadDialog }) => (\n }\n >\n {I18n.t('coliship.upload_button')}\n \n )}\n \n ;\n\n const uploadedFiles = files.length > 0 && file.name)}\n subtitle={files.map((file, index) => file.name + ' ' + file.size + 'bytes')}\n image=\"https://www.docs.wixdesignsystem.com/generic_add_item_illustration.svg\"\n >\n \n {({ openFileUploadDialog }) => (\n }\n >\n {I18n.t('coliship.upload_change')}\n \n )}\n \n ;\n\n const handleUpload = useCallback(\n () => {\n setTotalLine(false);\n setOrderError(false);\n setOrderSuccess(false);\n setLoading(!loading);\n var formData = new FormData();\n formData.append('instance_id', props.shop.instance_id)\n files.map((file, index) => {\n formData.append(`file${index}`, file);\n });\n\n axios.post('/upload-file-coliship', formData, {\n headers: {\n 'Content-Type': 'multipart/form-data'\n }\n }).then(result => {\n console.log(result.data);\n if (result.data.success == true) {\n setLoading(false);\n setFiles([]);\n setOrderError(result.data.order_error);\n setOrderSuccess(result.data.order_success);\n setTotalLine(result.data.total_line);\n props.toggleToast(I18n.t('coliship.success_import_file'), false);\n } else {\n setLoading(false);\n setFiles([]);\n props.toggleToast(I18n.t('coliship.error_import_file'), true);\n }\n props.toggleToast();\n }).catch(error => {\n setLoading(false);\n setFiles([]);\n props.toggleToast(I18n.t('coliship.error_import_file'), true);\n });\n }\n );\n\n function getError() {\n let contentValue = '';\n for(var key in Object.keys(orderError)){\n var errorContent = orderError[key];\n if (errorContent) {\n for (var keyContent in errorContent) {\n var value = errorContent[keyContent]\n contentValue += '

' + I18n.t('coliship._tabs.error_at_line') + (parseInt(key, 10) + 1) + ' ' + I18n.t('coliship._tabs.order_number') + '' + keyContent + ' ' + I18n.t('coliship._tabs.tracking_number') + '' + value + '';\n }\n }\n /* use key/value for intended purpose */\n }\n if (contentValue != '') {\n return (\n \n {I18n.t('coliship._tabs.title_error')}

\n

\n \n );\n }\n }\n\n function getSuccess() {\n let contentSuccessValue = '';\n for(var key in Object.keys(orderSuccess)){\n var successContent = orderSuccess[key];\n if (successContent) {\n for (var keyContent in successContent) {\n var value = successContent[keyContent]\n contentSuccessValue = contentSuccessValue + '

' + I18n.t('coliship._tabs.line') + (parseInt(key, 10) + 1) + ' ' + I18n.t('coliship._tabs.order_number') + '' + keyContent + ' ' + I18n.t('coliship._tabs.tracking_number') + '' + value + '';\n }\n }\n /* use key/value for intended purpose */\n }\n if (contentSuccessValue != '') {\n return (\n \n {I18n.t('coliship._tabs.title_success')}

\n

\n \n );\n }\n }\n\n return (\n \n \n \n \n \n \n \n \n {I18n.t('coliship.upload_file')}\n \n \n \n \n \n {fileUpload}\n {uploadedFiles}\n \n \n \n \n \n \n \n \n \n {totalLine > 0 && \n \n \n {I18n.t('coliship._tabs.there_is')} {Object.keys(orderError).length} {I18n.t('coliship._tabs.errors')} {I18n.t('coliship._tabs.on_text')} {totalLine} {I18n.t('coliship._tabs.line_tex')}
\n {getSuccess()} \n {getError()} \n
\n }\n
\n
\n
\n );\n}\n\nexport default ColishipImport","import React from \"react\";\nimport { \n Page,\n Card,\n Button,\n Table,\n TableToolbar,\n Search,\n Box,\n Tooltip,\n TextButton,\n Badge,\n Text,\n NumberInput,\n Modal,\n Loader,\n Heading,\n Divider,\n Radio,\n SidePanel,\n CustomModalLayout,\n FormField,\n Input,\n Cell,\n Layout,\n TableListHeader,\n Checkbox,\n PopoverMenu,\n Tabs,\n Image,\n TagList,\n Accordion,\n DatePicker,\n Slider,\n Pagination\n} from '@wix/design-system';\n\nimport { ContentFilterSmall, StatusWarningFilled, ShippingSmall, RedoSmall, PrintSmall, ChevronDownLargeSmall, DocumentSmall, MapSmall, ChevronDownSmall, DownloadImportSmall } from '@wix/wix-ui-icons-common';\n\nimport dpd from \"../../../assets/images/dpd.png\";\nimport austria from \"../../../assets/images/austria.png\";\nimport italy from \"../../../assets/images/italy.png\";\nimport germany from \"../../../assets/images/germany.png\";\nimport luxembourg from \"../../../assets/images/luxembourg.png\";\nimport LogoColissimo from \"../../../assets/images/Colissimo_Logo_H.png\";\nimport ColishipImport from \"./ColishipImport\"\n\nimport { passCsrfToken } from '../../util/helpers'\nimport axios from 'axios'\n\nclass ColishipIndex extends React.Component {\n \n componentDidMount = () => {\n passCsrfToken(document, axios);\n }\n\n state = {\n orders: this.props.orders,\n page: this.props.page,\n page_limit: this.props.page_limit,\n count_orders: this.props.count_orders,\n total_page: this.props.total_page,\n global_lines_weight: 0,\n weight: null,\n sheetActive: false,\n selectedOrder: false,\n selectedLabels: false,\n selectedChange: false,\n selectedChangeOffer: false,\n loading: false,\n map_modal: false,\n countries: [],\n services: [],\n queryValue: null,\n date: [],\n date_to: null,\n date_from: null,\n paymentStatus: [],\n labelStatus: [],\n closedStatus: null,\n errorStatus: [],\n printedStatus: [],\n fulfillmentStatus: [],\n sortValue: 'DESC',\n isFirstPage: false,\n isLastPage: true,\n modalChangeAddress: false,\n modalChangeAddressPickup: false,\n modalRegenerate: false,\n modalRegenerateReturn: false,\n modalBulkGenerate: false,\n orderShippingPickup: false,\n orderShipping: false,\n selectedItems: [],\n selectedTabConfig: 0,\n filterSide: false,\n modalImport: false,\n import_orders: null,\n coliship_import: false\n }\n\n handleOpenSheet = (order_id, action_type = \"order\") => {\n if (action_type == \"order\") {\n this.getOrderRequest(order_id);\n } else if (action_type == \"change\") {\n this.getChangeOrderRequest(order_id);\n } else if (action_type == \"change_offer\") {\n this.getChangeOfferOrderRequest(order_id);\n } else {\n this.getLabelsRequest(order_id);\n }\n };\n\n handleCloseSheet = () => {\n this.setState({colissimo_service: false});\n this.setState({colissimo_international_offer: false});\n this.setState({sheetActive: false});\n this.setState({global_lines_weight: 0});\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({selectedOrder: false});\n this.setState({selectedLabels: false});\n this.setState({filterSide: false});\n };\n\n handleToggleSheet = (order_id, action_type = \"order\") => {\n this.state.sheetActive ? this.handleCloseSheet() : this.handleOpenSheet(order_id, action_type);\n }\n\n toggleActive = (field) => {\n this.setState({ [field]: !this.state[field] });\n }\n\n toggleTag = (type, value) => {\n if (type === 'labelStatus' || type === 'date' || type === 'printedStatus') {\n if (value != 'custom') {\n this.setState({ [type]: [value] }, () => \n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit)\n );\n } else {\n this.setState({ date_to: null });\n this.setState({ date_from: null });\n this.setState({ [type]: [value] });\n }\n } else if (type === 'weight') {\n this.setState({ [type]: value }, () => \n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit)\n );\n } else {\n if (this.state[type].some((tag) => tag === value)) {\n this.setState({\n [type]: this.state[type].filter(item => item !== value)\n }, () => \n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit) \n );\n } else {\n this.setState({\n [type]: [...this.state[type], value]\n }, () => \n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit) \n );\n }\n }\n };\n\n handleChangeWithValue = (field, value) => {\n if (field.indexOf('ftd') !== -1) {\n this.setState({ [field]: value });\n this.toggleActive(field.replace('ftd', 'activeddp'));\n } else {\n this.setState({ [field]: value });\n }\n }\n\n handleChangeAddress = (e) => {\n this.setState({\n orderShipping: { ...this.state.orderShipping, [e.target.name]: e.target.value },\n });\n }\n\n handleChangeImportOrders = (e) => {\n this.setState({[e.target.name]: e.target.value});\n }\n\n handleChangeDpd = (e) => {\n this.setState({[e.target.name]: e.target.value});\n }\n\n handleChangeAddressPickup = (e) => {\n this.setState({\n orderShippingPickup: { ...this.state.orderShippingPickup, [e.target.name]: e.target.value },\n });\n }\n\n handleChange = (field) => {\n \n const includeFilters = [\n 'queryValue',\n 'weight',\n 'date',\n 'date_from',\n 'date_to',\n 'countries',\n 'services',\n ];\n\n return (value) => {\n console.log(value);\n if (field != 'map_modal') {\n this.setState({ page: 1 });\n }\n\n if (field === 'map_modal') {\n this.setState({ map_modal: false });\n jQuery('#colissimo-widget-container').frameColissimoClose();\n return true;\n }\n\n this.setState({ [field]: value }, () => {\n if (includeFilters.indexOf(field) !== -1) { \n if (Array.isArray(value)) {\n if (value[0] == \"custom\") {\n return true;\n }\n }\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n };\n });\n };\n };\n\n changeAddress = (shipping) => {\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({selectedOrder: false});\n this.setState({selectedLabels: false});\n this.setState({modalChangeAddress: true});\n this.setState({orderShipping: shipping});\n }\n\n changeAddressPickup = (shipping) => {\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({selectedOrder: false});\n this.setState({selectedLabels: false});\n this.setState({modalChangeAddressPickup: true});\n this.setState({orderShippingPickup: shipping});\n }\n\n handleSelectionChange = (selectedItems) => {\n this.setState({selectedItems});\n };\n\n changeService = (order_id, shipping, product_code) => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n if (!this.state.colissimo_service) {\n product_code = product_code\n } else {\n product_code = this.state.colissimo_service;\n }\n\n if (product_code == 'PICKUP') {\n this.loadMap(order_id, shipping);\n } else {\n /* We save new service */\n this.setState({map_modal: false});\n this.setState({loading: true});\n axios({\n method: 'post',\n url: '/save-backend-service',\n data: {\n orderId: order_id,\n productCode: product_code,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.props.toggleToast(I18n.t('order_list.success_update_change_service'), false);\n } else {\n this.props.toggleToast(I18n.t('order_list.error_update_change_service'), true);\n }\n\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({colissimo_service: false});\n this.setState({colissimo_international_offer: false})\n this.setState({order_id_update_service: false});\n this.setState({map_modal: false});\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_update_change_service'), true);\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({colissimo_service: false});\n this.setState({colissimo_international_offer: false})\n this.setState({order_id_update_service: false});\n this.setState({map_modal: false});\n });\n }\n }\n\n changeOffer = (order_id, colissimo_international_offer) => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n if (!this.state.colissimo_international_offer) {\n colissimo_international_offer = colissimo_international_offer\n } else {\n colissimo_international_offer = this.state.colissimo_international_offer;\n }\n\n axios({\n method: 'post',\n url: '/save-backend-offer',\n data: {\n orderId: order_id,\n colissimoInternationalOffer: colissimo_international_offer,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.props.toggleToast(I18n.t('order_list.success_update_change_service'), false);\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n } else {\n this.props.toggleToast(I18n.t('order_list.error_update_change_service'), true);\n }\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({colissimo_service: false});\n this.setState({colissimo_international_offer: false})\n this.setState({order_id_update_service: false});\n this.setState({map_modal: false});\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_update_change_service'), true);\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({colissimo_service: false});\n this.setState({colissimo_international_offer: false})\n this.setState({order_id_update_service: false});\n this.setState({map_modal: false});\n });\n }\n\n\n loadMap = (order_id, shipping) => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n if (shipping.country_code == 'MC') {\n var countryList = 'FR';\n } else {\n var countryList = shipping.country_code;\n }\n\n if (this.props.token_api !== false) {\n var preparation_time = this.props.config ? this.props.config.order_preparation_time : 2;\n var token_api = this.props.token_api;\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({selectedOrder: false});\n this.setState({selectedLabels: false});\n this.setState({colissimo_service: false});\n this.setState({colissimo_international_offer: false});\n this.setState({order_id_update_service: order_id});\n this.setState({map_modal: true}, () => {\n if (typeof $ === 'undefined') {\n $ = jQuery;\n }\n //window.setTimeout(function(){\n setTimeout(() => {\n $(\"#colissimo-widget-container\").frameColissimoOpen({\n \"ceLang\": shipping.country_code,\n \"callBackFrame\": \"callBackFrame\",\n \"URLColissimo\": \"https://ws.colissimo.fr\",\n \"ceCountryList\": countryList,\n \"ceCountry\": countryList,\n \"dyPreparationTime\": preparation_time,\n \"ceAddress\": shipping.address1,\n \"ceZipCode\": shipping.zip,\n \"ceTown\": shipping.city,\n \"token\": token_api\n });\n }, 300);\n\n setTimeout(function(){colissimo_widget_map.resize(); }, 500);\n });\n \n console.log('Colissimo APP : Map loaded'); \n } else {\n this.props.toggleToast(I18n.t('order_list.error_token_api'), true);\n }\n }\n\n handleValidPickup = () => {\n this.setState({ map_modal: false });\n jQuery('#colissimo-widget-container').frameColissimoClose();\n this.savePickupPoint();\n }\n\n savePickupPoint = () => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n var infoPointValue = JSON.parse(this.orderUpdateWebservice.value);\n axios({\n method: 'post',\n url: '/save-backend-pickup-point',\n data: {\n orderId: this.state.order_id_update_service,\n infoPoint: infoPointValue.infoPoint,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.props.toggleToast(I18n.t('order_list.success_update_change_service'), false);\n } else {\n this.props.toggleToast(I18n.t('order_list.error_update_change_service'), true);\n }\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({colissimo_service: false});\n this.setState({colissimo_international_offer: false})\n this.setState({order_id_update_service: false});\n this.setState({map_modal: false});\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_update_change_service'), true);\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({colissimo_service: false});\n this.setState({colissimo_international_offer: false})\n this.setState({order_id_update_service: false});\n this.setState({map_modal: false});\n });\n }\n\n handleSubmit = () => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n this.setState({loading: true});\n\n axios({\n method: 'post',\n url: '/modify-address',\n data: {\n shipping: this.state.orderShipping,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.setState({modalChangeAddress: false});\n this.props.toggleToast(I18n.t('order_list.success_update_modify_address'), false);\n this.handleToggleSheet(this.state.orderShipping.order_id, 'change');\n } else {\n this.props.toggleToast(I18n.t('order_list.error_update_modify_address'), true);\n }\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_update_modify_address'), true);\n });\n\n }\n\n handleSubmitPickup = (event) => {\n event.preventDefault();\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n this.setState({loading: true});\n\n axios({\n method: 'post',\n url: '/modify-address-pickup',\n data: {\n shipping: this.state.orderShippingPickup,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.setState({modalChangeAddressPickup: false});\n this.props.toggleToast(I18n.t('order_list.success_update_modify_address'), false);\n this.handleToggleSheet(this.state.orderShippingPickup.order_id, 'change');\n } else {\n this.props.toggleToast(I18n.t('order_list.error_update_modify_address'), true);\n }\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_update_modify_address'), true);\n });\n }\n\n handleChangeDdp = (order_id) => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n\n this.setState({loading: true});\n if (typeof $ === 'undefined') {\n $ = jQuery;\n }\n\n /* We verify if weight is set */\n axios({\n method: 'post',\n url: '/update-ddp-value',\n data: {\n order_id: order_id,\n height: $(\"#height\"+order_id).val(),\n width: $(\"#width\"+order_id).val(),\n length: $(\"#length\"+order_id).val(),\n description: $(\"#description\"+order_id).val(),\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.props.toggleToast(I18n.t('order_list.update_ddp_success'), false);\n this.toggleActive(`activeddp${order_id}`);\n } else {\n this.props.toggleToast(I18n.t('order_list.update_ddp_error'), true);\n }\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.update_ddp_error'), true);\n });\n };\n\n handleImportOrders = () => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n this.setState({loading: true});\n\n axios({\n method: 'post',\n url: '/import-orders',\n data: {\n orders: this.state.import_orders,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.setState({modalImport: false});\n this.setState({import_orders: null});\n this.props.toggleToast(I18n.t('order_list.modal.success_import_orders'), false);\n this.callRequest('/orders-filters');\n } else {\n this.setState({modalImport: false});\n this.props.toggleToast(I18n.t('order_list.modal.error_import_orders'), true);\n }\n }).catch(error => {\n console.log(error);\n this.setState({modalImport: false});\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.modal.error_import_orders'), true);\n });\n } \n\n getChangeOrderRequest = (order_id) => {\n \n this.setState({loading: true});\n axios({\n method: 'post',\n url: '/get-order',\n data: {\n order_id: order_id,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({selectedLabels: false});\n this.setState({selectedChange: result.data});\n this.setState({selectedChangeOffer: false});\n this.setState({selectedOrder: false});\n this.setState({loading: false});\n this.setState({sheetActive: true});\n }).catch(error => {\n console.log(error);\n this.setState({selectedLabels: false});\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({selectedOrder: false});\n this.setState({loading: false});\n });\n }\n\n getChangeOfferOrderRequest = (order_id) => {\n \n this.setState({loading: true});\n axios({\n method: 'post',\n url: '/get-order',\n data: {\n order_id: order_id,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({selectedLabels: false});\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: result.data});\n this.setState({selectedOrder: false});\n this.setState({loading: false});\n this.setState({sheetActive: true});\n }).catch(error => {\n console.log(error);\n this.setState({selectedLabels: false});\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({selectedOrder: false});\n this.setState({loading: false});\n });\n }\n\n /* Get order detail */\n getOrderRequest = (order_id) => {\n this.setState({loading: true});\n axios({\n method: 'post',\n url: '/get-order',\n data: {\n order_id: order_id,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({selectedLabels: false});\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({selectedOrder: result.data});\n this.setState({loading: false});\n this.setState({sheetActive: true});\n }).catch(error => {\n console.log(error);\n this.setState({selectedLabels: false});\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({selectedOrder: false});\n this.setState({loading: false});\n });\n }\n\n /* Get order detail */\n getLabelsRequest = (order_id) => {\n this.setState({loading: true});\n axios({\n method: 'post',\n url: '/get-labels',\n data: {\n order_id: order_id,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({selectedOrder: false});\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({selectedLabels: result.data});\n this.setState({loading: false});\n this.setState({sheetActive: true});\n }).catch(error => {\n console.log(error);\n this.setState({selectedOrder: false});\n this.setState({selectedLabels: false});\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({loading: false});\n });\n }\n\n /* generate Label */\n generateLabel = (order_id, partial = false, label_id = false, regenerate = false) => {\n this.reinitVars();\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n this.setState({loading: true});\n if (typeof $ === 'undefined') {\n $ = jQuery;\n }\n\n /* We verify if weight is set */\n if (\n (parseInt($(\"#weight\"+order_id).val(), 10) <= 0 || isNaN(parseInt($(\"#weight\"+order_id).val(), 10)))\n ) {\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_weight'), true);\n } else {\n var weight = parseInt($(\"#weight\"+order_id).val(), 10);\n if (regenerate === true) {\n var returnValue = false;\n } else {\n var returnValue = $(\"#return\"+order_id).is(\":checked\");\n }\n axios({\n method: 'post',\n url: '/generate-label',\n data: {\n order_id: order_id,\n weight: weight,\n insurance: $(\"#insurance\"+order_id).is(\":checked\"),\n is_return: returnValue,\n non_machinable: $(\"#machinable\"+order_id).is(\":checked\"),\n ftd: $(\"#ftd\"+order_id).is(\":checked\"),\n partial: partial,\n label_id: label_id,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.props.toggleToast(result.data.response_ws.message, false);\n if (this.props.config.use_thermal_printer == true && this.props.config.generate_and_print == true) {\n this.printLabelByOrder(order_id);\n }\n } else {\n this.props.toggleToast(result.data.response_ws.message, true);\n }\n if (!regenerate) {\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n } else {\n this.getLabelsRequest(order_id);\n }\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_generate_label'), true);\n });\n }\n };\n\n generateBulkLabel = () => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n this.setState({loading: true});\n var error_weight = false;\n const items = this.state.selectedItems;\n this.setState({modalBulkGenerate: false});\n if (typeof $ === 'undefined') {\n $ = jQuery;\n }\n items.forEach((item) => {\n /* We verify if all weight are set */\n if (\n (parseInt($(\"#weight\"+item).val(), 10) <= 0 || isNaN(parseInt($(\"#weight\"+item).val(), 10)))\n ) {\n error_weight = true;\n }\n });\n\n if (error_weight === false) {\n /* We generate label in mass */\n var error_content = '';\n /*var totalLength = items.length;\n var i = 1;\n var percent = 0;*/\n Promise.all(items.map(item => {\n axios({\n method: 'post',\n url: '/generate-label',\n data: {\n order_id: item,\n weight: parseInt($(\"#weight\"+item).val(), 10),\n insurance: $(\"#insurance\"+item).is(\":checked\"),\n is_return: $(\"#return\"+item).is(\":checked\"),\n non_machinable: $(\"#machinable\"+item).is(\":checked\"),\n ftd: $(\"#ftd\"+item).is(\":checked\"),\n partial: false,\n label_id: false,\n bulk_action: true,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n if (result.data.success == true) {\n /* Do nothing */\n if (this.props.config.use_thermal_printer == true && this.props.config.generate_and_print == true) {\n this.printLabelByOrder(item);\n }\n } else {\n error_content += result.data.response_ws.message;\n }\n }).catch(error => {\n error_content += I18n.t('order_list.error_generate_label');\n console.log(error);\n });\n })).then(() => {\n if (error_content != '') {\n this.props.toggleToast(error_content, true);\n } else {\n this.props.toggleToast(I18n.t('order_list.success_bulk'), false);\n }\n this.setState({loading: false}, () => {\n console.log('call orders-filters here');\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit, items);\n });\n }); \n } else {\n /* If there is Weight error */\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_weight_bulk'), true);\n this.setState({selectedItems : items});\n }\n };\n\n generateLabelReturn = (order_id, partial = false, label_id = false, regenerate = false) => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n this.setState({loading: true});\n if (typeof $ === 'undefined') {\n $ = jQuery;\n }\n /* We verify if weight is set */\n if (\n (parseInt($(\"#weight\"+order_id).val(), 10) <= 0 || isNaN(parseInt($(\"#weight\"+order_id).val(), 10)))\n ) {\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_weight'), true);\n } else {\n var weight = parseInt($(\"#weight\"+order_id).val(), 10);\n axios({\n method: 'post',\n url: '/generate-label-return',\n data: {\n order_id: order_id,\n weight: weight,\n insurance: this.state[\"insurance\"+order_id],\n is_return: this.state[\"return\"+order_id],\n non_machinable: this.state[\"machinable\"+order_id],\n ftd: this.state[\"ftd\"+order_id],\n partial: partial,\n label_id: label_id,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.props.toggleToast(result.data.response_ws.message, false);\n } else {\n this.props.toggleToast(result.data.response_ws.message, true);\n }\n if (!regenerate) {\n this.getLabelsRequest(order_id);\n } else {\n this.getLabelsRequest(order_id);\n }\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_generate_label'), true);\n });\n }\n };\n\n generateColishipExport = () => {\n this.setState({loading: true});\n var error_weight = false;\n const items = this.state.selectedItems;\n\n if (typeof $ === 'undefined') {\n $ = jQuery;\n }\n\n items.forEach((item) => {\n /* We verify if all weight are set */\n if (\n (parseInt($(\"#weight\"+item).val(), 10) <= 0 || isNaN(parseInt($(\"#weight\"+item).val(), 10)))\n ) {\n error_weight = true;\n }\n });\n\n if (error_weight === false) {\n const FileDownload = require('js-file-download');\n var orders = {};\n items.forEach((item) => {\n orders[item] = {};\n orders[item]['weight'] = parseInt($(\"#weight\"+item).val(), 10);\n orders[item]['insurance'] = $(\"#insurance\"+item).is(\":checked\");\n orders[item]['ftd'] = $(\"#ftd\"+item).is(\":checked\");\n });\n\n axios({\n method: 'post',\n url: '/generate-coliship-export',\n data: {\n orders: orders,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n var today = new Date();\n var date_file = `${\n (today.getMonth()+1).toString().padStart(2, '0')}-${\n today.getDate().toString().padStart(2, '0')}-${\n today.getFullYear().toString().padStart(4, '0')}_${\n today.getHours().toString().padStart(2, '0')}-${\n today.getMinutes().toString().padStart(2, '0')}-${\n today.getSeconds().toString().padStart(2, '0')}`;\n\n FileDownload(result.data.content_csv, 'coliship_'+ date_file +'.csv');\n this.props.toggleToast(I18n.t('coliship.success_generate_file'), false);\n } else {\n this.props.toggleToast(I18n.t('order_list.error_generate_label'), true);\n }\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_generate_label'), true);\n });\n } else {\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_weight_bulk'), true);\n }\n }\n\n printLabel = (id) => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n axios({\n method: 'get',\n url: '/colissimo-label/'+id+'/'+this.props.shop.instance_id\n }).then(result => {\n if (result.data.printer_request) {\n $.get(result.data.printer_request);\n } else {\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n }\n }).catch(error => {\n console.log(error);\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n });\n };\n\n printLabelByOrder = (id) => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n axios({\n method: 'get',\n url: '/colissimo-label-by-order/'+id+'/'+this.props.shop.instance_id\n }).then(result => {\n if (result.data.printer_request) {\n $.get(result.data.printer_request);\n } else {\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n }\n }).catch(error => {\n console.log(error);\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n });\n };\n\n regenerateLabel = (order_id, label_id) => {\n this.setState({regenerate_current_order_id: order_id});\n this.setState({regenerate_current_label_id: label_id});\n this.setState({modalRegenerate: true});\n };\n\n regenerateLabelReturn = (order_id, label_id) => {\n this.setState({regenerate_current_order_id: order_id});\n this.setState({regenerate_current_label_id: label_id});\n this.setState({modalRegenerateReturn: true});\n this.props.returnOrderListActiveModal(order_id, label_id, true);\n };\n\n generateBulkLabelCheckModal = () => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n var error_weight = false;\n const items = this.state.selectedItems;\n if (typeof $ === 'undefined') {\n $ = jQuery;\n }\n items.forEach((item) => {\n /* We verify if all weight are set */\n if (\n (parseInt($(\"#weight\"+item).val(), 10) <= 0 || isNaN(parseInt($(\"#weight\"+item).val(), 10)))\n ) {\n error_weight = true;\n }\n });\n\n if (error_weight === false) {\n this.setState({modalBulkGenerate: true});\n } else {\n /* If there is Weight error */\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_weight_bulk'), true);\n }\n }\n\n printBulkLabel = () => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n const items = (this.state.sortValue == 'DESC' ? this.state.selectedItems.sort().reverse() : this.state.selectedItems.sort());\n\n /* We verify if labels generate */\n /* We verify if all labels generate */\n axios({\n method: 'post',\n url: '/verify-label-exists',\n data: {\n order_ids: items,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n if (result.data.success == true) {\n if (this.props.config.use_thermal_printer == true) {\n items.map((item, index) => {\n setTimeout(() => { \n axios({\n method: 'get',\n url: '/colissimo-print-bulk-label/'+item+'/'+this.props.shop.instance_id\n }).then(result => {\n if (result.data.printer_request) {\n $.get(result.data.printer_request);\n } else {\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n }\n }).catch(error => {\n console.log(error);\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n });\n }, 1000*index);\n });\n\n } else {\n window.open('/colissimo-print-bulk-label/'+items+'/'+this.props.shop.instance_id, '_blank');\n }\n } else {\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n }\n }).catch(error => {\n console.log(error);\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n });\n };\n\n printBulkReturnLabel = () => {\n const items = this.state.selectedItems;\n window.open('/colissimo-print-bulk-return-label/'+items+'/'+this.props.shop.instance_id,'_blank');\n };\n\n handleRemove = (key) => {\n if (key === 'date_to' || key === 'date_from') {\n this.setState({[key]: null}, () => {\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n } else {\n this.setState({[key]: []}, () => {\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n }\n };\n\n handleClear = (type) => {\n if (type === 'date') {\n this.setState({\n [type]: [],\n date_to: null,\n date_from: null,\n }, () => {\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n } else {\n this.setState({\n [type]: [],\n }, () => {\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n }\n }\n\n handleChangePage = (value) => {\n this.setState({\n page: value,\n }, () => {\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n }\n\n handleClearAll = () => {\n this.setState({\n paymentStatus: [],\n labelStatus: [],\n closedStatus: null,\n errorStatus: [],\n printedStatus: [],\n queryValue: null,\n fulfillmentStatus: [],\n weight: null,\n date: [],\n date_to: null,\n date_from: null,\n countries: [],\n services: [],\n selectedTabConfig: 0,\n }, () => {\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n };\n\n /* Filter order */\n callRequest = (url, items = false) => {\n this.setState({selectedItems : []});\n /*$('html, body').animate({scrollTop: 0}, 10);*/\n this.setState({loading: true});\n axios.get(url, {\n params: {\n queryValue: this.state.queryValue,\n paymentStatus: this.state.paymentStatus,\n printedStatus: this.state.printedStatus,\n fulfillmentStatus: this.state.fulfillmentStatus,\n labelStatus: this.state.labelStatus,\n closedStatus: this.state.closedStatus,\n errorStatus: this.state.errorStatus,\n weight: this.state.weight,\n date: this.state.date,\n date_from: this.state.date_from,\n date_to: this.state.date_to,\n countries: this.state.countries,\n services: this.state.services,\n sortable: this.state.sortValue,\n instance_id: this.props.shop.instance_id\n },\n }).then(result => {\n this.setState({orders: result.data.orders});\n this.setState({page: result.data.page});\n this.setState({page_limit: result.data.page_limit});\n this.setState({total_page: result.data.total_page});\n this.setState({count_orders: result.data.count_orders});\n this.setState({loading: false});\n if (items !== false) {\n this.setState({selectedItems : items});\n }\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n });\n }\n\n handleTabChange = (selectedTabIndex) => {\n this.setState({ selectedTabConfig: selectedTabIndex.id });\n this.setState({\n paymentStatus: [],\n printedStatus: [],\n labelStatus: [],\n closedStatus: null,\n queryValue: null,\n fulfillmentStatus: [],\n weight: null,\n date: [],\n date_to: null,\n date_from: null,\n countries: [],\n services: [],\n errorStatus: [],\n coliship_import: false\n }, () => {\n if (selectedTabIndex.id == 0) {\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n }\n });\n\n if (selectedTabIndex.id == 1) {\n this.setState({ ['labelStatus']: ['unavailable'] }, () => {\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n }\n\n if (selectedTabIndex.id == 2) {\n this.setState({ ['labelStatus']: ['available'] }, () => {\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n }\n\n if (selectedTabIndex.id == 3) {\n this.setState({ ['fulfillmentStatus']: ['NOT_FULFILLED', 'PARTIALLY_FULFILLED'] }, () => {\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n }\n\n if (selectedTabIndex.id == 4) {\n this.setState({coliship_import: true});\n }\n };\n\n renderSheetChange = (order) => {\n const sheetActive = this.state.sheetActive;\n const { \n id,\n wix_order_number,\n payment_status,\n } = order.order\n\n const {\n address1,\n address2,\n city,\n company,\n country,\n first_name,\n last_name,\n phone,\n country_code,\n zip\n } = order.order_shipping\n\n const pickup_point = order.pickup_point\n\n //console.log(order.order_shipping_line[0]);\n const order_shipping_line = (order.order_shipping_line[0] ? order.order_shipping_line[0] : false);\n \n const product_code = order.product_code\n\n /* We check vars */\n /* If pickup point available for this country */\n const pickup_point_available = this.props.pickup_point_available.indexOf(country_code) === -1 ? false : true;\n /* We check if sign in Country */\n const without_sign_country = this.props.without_sign_country.indexOf(country_code) === -1 ? false : true;\n const code_sign = this.props.iso_outre_mer.indexOf(country_code) === -1 && this.props.iso_outre_mer2.indexOf(country_code) === -1 ? 'DOS' : 'CDS';\n \n const colis_eco = this.props.iso_outre_mer.indexOf(country_code) === -1 && this.props.iso_outre_mer2.indexOf(country_code) === -1 ? false : true;\n /* We check if it's Colissimo international */\n const colissimo_international = this.props.iso_no_worldwide.indexOf(country_code) === -1 ? true : false;\n \n let myOptions = [];\n\n if (!colissimo_international && without_sign_country && pickup_point_available) {\n myOptions.push({label: I18n.t('order_list.sheet.with_sign'),value: code_sign});\n myOptions.push({label: I18n.t('order_list.sheet.without_sign'),value: 'DOM'});\n myOptions.push({label: I18n.t('order_list.sheet.with_pickup'),value: 'PICKUP'});\n }\n\n if (!colissimo_international && without_sign_country && !pickup_point_available) {\n myOptions.push({label: I18n.t('order_list.sheet.with_sign'),value: code_sign});\n myOptions.push({label: I18n.t('order_list.sheet.without_sign'),value: 'DOM'});\n }\n\n if (!colissimo_international && !without_sign_country && pickup_point_available) {\n myOptions.push({label: I18n.t('order_list.sheet.with_sign'),value: code_sign});\n myOptions.push({label: I18n.t('order_list.sheet.with_pickup'),value: 'PICKUP'});\n }\n\n if (!colissimo_international && !without_sign_country && !pickup_point_available) {\n myOptions.push({label: I18n.t('order_list.sheet.with_sign'),value: code_sign});\n }\n\n if (colissimo_international) {\n myOptions.push({label: I18n.t('order_list.sheet.colissimo_international'),value: 'COLI'});\n }\n \n if (colis_eco != '') {\n myOptions.push({label: I18n.t('order_list.sheet.colissimo_eco'),value: 'ECO'});\n }\n\n const renderCheckboxes = myOptions.map((item) => {\n console.log(item);\n var checked = false;\n if (!this.state.colissimo_service && pickup_point !== false) {\n if (item.value == 'PICKUP') {\n checked = true;\n }\n } else {\n if (this.state.colissimo_service && this.state.colissimo_service == item.value) {\n checked = true;\n } else if (!this.state.colissimo_service) {\n if (product_code == item.value) {\n checked = true;\n }\n } \n } \n return (\n this.handleChangeWithValue(\"colissimo_service\", item.value)} />\n );\n });\n\n var payment_status_badge = '';\n\n if (payment_status == 'PARTIALLY_REFUNDED') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'FULLY_REFUNDED') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PENDING') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'NOT_PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PARTIALLY_PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'UNSPECIFIED_PAYMENT_STATUS') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n }\n\n return (\n \n \n \n \n \n {I18n.t('order_list.sheet.carrier')}\n {order_shipping_line && order_shipping_line.delivery_option}\n \n {I18n.t('order_list.sheet.address')}\n {pickup_point === false &&\n \n
{first_name && first_name} {last_name && last_name}
\n {company &&
{company}
}\n {address1 &&
{address1}
}\n {address2 &&
{address2}
}\n {zip &&
{zip} {city}
} \n {country &&
{country}
}\n {phone &&
{phone}
}\n this.changeAddress(order.order_shipping)}>{I18n.t('order_list.change')}\n
\n }\n {pickup_point !== false && \n \n
{I18n.t('order_list.pickup_point_number')} {pickup_point.colissimo_id}
\n
{first_name && first_name} {last_name && last_name}
\n {pickup_point.company_name &&
{pickup_point.company_name}
}\n {pickup_point.address1 &&
{pickup_point.address1}
}\n {pickup_point.address2 &&
{pickup_point.address2}
}\n {pickup_point.zipcode &&
{pickup_point.zipcode} {pickup_point.city}
} \n {pickup_point.country &&
{pickup_point.country}
}\n {pickup_point.phone &&
{pickup_point.phone}
}\n this.changeAddressPickup(pickup_point)}>{I18n.t('order_list.change_pickup_info')}\n this.changeService(id, order.order_shipping, 'PICKUP')}>{I18n.t('order_list.change_pickup')}\n
\n }\n \n {I18n.t('order_list.sheet.change_service')}\n {I18n.t('order_list.sheet.choose_service')}\n
\n {renderCheckboxes}\n \n
\n {this.state.colissimo_service && \n \n }\n
\n
\n
\n \n );\n };\n\n renderSheetChangeOffer = (order) => {\n const sheetActive = this.state.sheetActive;\n const { \n id,\n wix_order_number,\n payment_status,\n } = order.order\n\n const {\n address1,\n address2,\n city,\n company,\n country,\n first_name,\n last_name,\n phone,\n country_code,\n zip\n } = order.order_shipping\n\n const pickup_point = order.pickup_point\n\n var payment_status_badge = '';\n\n if (payment_status == 'PARTIALLY_REFUNDED') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'FULLY_REFUNDED') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PENDING') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'NOT_PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PARTIALLY_PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'UNSPECIFIED_PAYMENT_STATUS') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n }\n\n //console.log(order.order_shipping_line[0]);\n const order_shipping_line = (order.order_shipping_line[0] ? order.order_shipping_line[0] : false);\n\n const code_offer = (order.code_offer == '0' ? 'DPD' : 'LOCAL');\n\n const img_dpd = \n\n switch (country_code) {\n case 'DE':\n var icon_offer = ;\n break;\n case 'AT':\n var icon_offer = ;\n break;\n case 'IT':\n var icon_offer = ;\n break;\n case 'LU':\n var icon_offer = ;\n break;\n default:\n var icon_offer = ;\n }\n\n return (\n \n \n \n \n \n {I18n.t('order_list.sheet.carrier')}\n {order_shipping_line && order_shipping_line.delivery_option}\n \n {I18n.t('order_list.sheet.address')}\n {pickup_point === false &&\n \n
{first_name && first_name} {last_name && last_name}
\n {company &&
{company}
}\n {address1 &&
{address1}
}\n {address2 &&
{address2}
}\n {zip &&
{zip} {city}
} \n {country &&
{country}
}\n {phone &&
{phone}
}\n this.changeAddress(order.order_shipping)}>{I18n.t('order_list.change')}\n
\n }\n {pickup_point !== false && \n \n
{I18n.t('order_list.pickup_point_number')} {pickup_point.colissimo_id}
\n
{first_name && first_name} {last_name && last_name}
\n {pickup_point.company_name &&
{pickup_point.company_name}
}\n {pickup_point.address1 &&
{pickup_point.address1}
}\n {pickup_point.address2 &&
{pickup_point.address2}
}\n {pickup_point.zipcode &&
{pickup_point.zipcode} {pickup_point.city}
} \n {pickup_point.country &&
{pickup_point.country}
}\n {pickup_point.phone &&
{pickup_point.phone}
}\n this.changeAddressPickup(pickup_point)}>{I18n.t('order_list.change_pickup_info')}\n this.changeService(id, order.order_shipping, 'PICKUP')}>{I18n.t('order_list.change_pickup')}\n
\n }\n \n {I18n.t('order_list.sheet.change_service')}\n {I18n.t('order_list.sheet.choose_service')}\n
\n this.handleChangeWithValue(\"colissimo_international_offer\", 'DPD')} />\n this.handleChangeWithValue(\"colissimo_international_offer\", 'LOCAL')} />\n \n
\n {this.state.colissimo_international_offer && \n \n }\n
\n
\n
\n \n );\n };\n\n /* RENDER ORDER DETAIL */\n renderSheet = (order) => {\n const sheetActive = this.state.sheetActive;\n const { \n id,\n wix_order_number,\n payment_status,\n total_price,\n currency\n } = order.order\n\n const formatter = new Intl.NumberFormat('fr-FR', {\n style: 'currency',\n currency: currency\n });\n\n const {\n address1,\n address2,\n city,\n company,\n country,\n first_name,\n last_name,\n phone,\n zip\n } = order.order_shipping\n\n const order_lines = order.order_line_items\n\n const pickup_point = order.pickup_point\n\n const order_shipping_line = (order.order_shipping_line[0] ? order.order_shipping_line[0] : false);\n\n var payment_status_badge = '';\n\n if (payment_status == 'PARTIALLY_REFUNDED') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'FULLY_REFUNDED') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PENDING') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'NOT_PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PARTIALLY_PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'UNSPECIFIED_PAYMENT_STATUS') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n }\n \n let sum = 0;\n const unfulfill_lines = order_lines.filter(line => (line.fulfillable_quantity !== 0 && payment_status != 'FULLY_REFUNDED')).map(line => {\n sum += parseFloat(line.weight*(this.state[\"fulfillable[\"+id+\"][\"+line.id+\"]\"] ? this.state[\"fulfillable[\"+id+\"][\"+line.id+\"]\"] : line.fulfillable_quantity));\n return (\n \n {line.name}\n {formatter.format(`${line.price}`)} x {line.quantity}\n SKU : {line.sku}\n \n {I18n.t('order_list.sheet.qty_fulfilled_refunded')} {line.quantity - line.fulfillable_quantity}\n \n \n \n \n \n \n );\n });\n\n const fulfill_lines = order_lines.filter(line => (line.fulfillable_quantity === 0 || (line.quantity - line.fulfillable_quantity) > 0 || payment_status == 'FULLY_REFUNDED')).map(line => {\n return (\n \n {line.name}\n {formatter.format(`${line.price}`)} x {line.quantity}\n SKU : {line.sku}\n \n {I18n.t('order_list.sheet.qty_fulfilled_refunded')} {line.quantity - line.fulfillable_quantity}\n \n \n \n \n \n );\n });\n\n return (\n \n \n \n \n \n {I18n.t('order_list.sheet.carrier')}\n {order_shipping_line && order_shipping_line.delivery_option}\n \n {I18n.t('order_list.sheet.address')}\n {pickup_point === false &&\n \n
{first_name && first_name} {last_name && last_name}
\n {company &&
{company}
}\n {address1 &&
{address1}
}\n {address2 &&
{address2}
}\n {zip &&
{zip} {city}
} \n {country &&
{country}
}\n {phone &&
{phone}
}\n this.changeAddress(order.order_shipping)}>{I18n.t('order_list.change')}\n
\n }\n {pickup_point !== false && \n \n
{I18n.t('order_list.pickup_point_number')} {pickup_point.colissimo_id}
\n
{first_name && first_name} {last_name && last_name}
\n {pickup_point.company_name &&
{pickup_point.company_name}
}\n {pickup_point.address1 &&
{pickup_point.address1}
}\n {pickup_point.address2 &&
{pickup_point.address2}
}\n {pickup_point.zipcode &&
{pickup_point.zipcode} {pickup_point.city}
} \n {pickup_point.country &&
{pickup_point.country}
}\n {pickup_point.phone &&
{pickup_point.phone}
}\n this.changeAddressPickup(pickup_point)}>{I18n.t('order_list.change_pickup_info')}\n this.changeService(id, order.order_shipping, 'PICKUP')}>{I18n.t('order_list.change_pickup')}\n
\n }\n \n {unfulfill_lines.length > 0 &&\n \n \n {unfulfill_lines}\n }\n {fulfill_lines.length > 0 &&\n \n \n {fulfill_lines}\n \n }\n \n {`Total ${formatter.format(total_price)}`}\n \n
\n
\n
\n \n );\n };\n\n /* RENDER ORDER DETAIL */\n renderSheetLabels = (data) => {\n const sheetActive = this.state.sheetActive;\n const { \n id,\n wix_order_number,\n payment_status,\n total_weight,\n country_code,\n } = data.order[0]\n\n const options = {\n year: 'numeric', month: 'numeric', day: 'numeric',\n hour: 'numeric', minute: 'numeric', second: 'numeric',\n hour12: false,\n timeZone: this.props.shop.time_zone\n };\n\n const tare = this.props.config.packing_tare ? this.props.config.packing_tare : 0;\n const totalWeight = this.state[\"weight\"+id] !== undefined ? this.state[\"weight\"+id] : (parseFloat(total_weight) ? (parseFloat(total_weight) * 1000 + parseInt(tare)) : (this.props.config ? parseInt(this.props.config.default_weight) : 1000));\n const return_available = ((this.props.config !== null && this.props.config.sender_iso_country == 'FR' && this.props.iso_return_available.indexOf(country_code) === -1 && this.props.iso_fr.indexOf(country_code) === -1) || (this.props.config !== null && this.props.config.sender_iso_country != 'FR' && this.props.iso_dom_return_available.indexOf(country_code) === -1)) ? false : true;\n\n const labels_lines = data.labels.map(line => {\n return (\n \n \n {I18n.t('order_list.sheet.tracking_number')} {line.shipping_number}\n \n {I18n.t('order_list.sheet.created_label')}{new Intl.DateTimeFormat('default', options).format(new Date(line.created_at))}\n {line.partial == true &&\n {I18n.t('order_list.sheet.partial_fulfilled')}\n }\n {line.print_at &&\n {I18n.t('order_list.sheet.print_at')}{new Intl.DateTimeFormat('default', options).format(new Date(line.print_at))}\n }\n {line.file_deleted == true &&\n {I18n.t('order_list.sheet.file_delete_at')}{new Intl.DateTimeFormat('default', options).format(new Date(line.updated_at))}\n }\n {line.cn23 == true && line.file_deleted != true &&\n {I18n.t('order_list.print_cn23')}\n }\n {(line.file_deleted != true && line.coliship != true) &&\n \n \n \n \n \n {I18n.t('order_list.label_weight')}\n \n \n {( this.props.config.use_thermal_printer == true) && \n }\n onClick={(e) => this.printLabel(line.id)}\n >\n {I18n.t('order_list.print')}\n \n }\n {( this.props.config.use_thermal_printer == false) && \n }\n as=\"a\" href={`/colissimo-label/${line.id}/${this.props.shop.instance_id}`} target=\"_blank\"\n >\n {I18n.t('order_list.print')}\n \n }\n  }\n onClick={(e) => {this.setState({modalRegenerate: true}); this.regenerateLabel(line.order_id,line.id)}}\n >\n {I18n.t('order_list.regenerate')}\n \n \n \n }\n \n \n \n \n );\n });\n\n const labels_return_lines = data.labels_return.map(line => {\n return (\n \n \n {I18n.t('order_list.sheet.tracking_number')}  {line.shipping_number}\n \n {I18n.t('order_list.sheet.created_label')}{new Intl.DateTimeFormat('default', options).format(new Date(line.created_at))}\n {line.partial == true &&\n {I18n.t('order_list.sheet.partial_fulfilled')}\n }\n {line.print_at &&\n {I18n.t('order_list.sheet.print_at')}{new Intl.DateTimeFormat('default', options).format(new Date(line.print_at))}\n }\n {line.file_deleted == true &&\n {I18n.t('order_list.sheet.file_delete_at')}{new Intl.DateTimeFormat('default', options).format(new Date(line.updated_at))}\n }\n {line.cn23 == true && line.file_deleted != true &&\n {I18n.t('order_list.print_cn23')}\n }\n {(line.file_deleted != true && line.coliship != true) &&\n \n \n \n \n \n {I18n.t('order_list.label_weight')}\n \n \n {( this.props.config.use_thermal_printer == true) && \n }\n onClick={(e) => this.printLabel(line.id)}\n >\n {I18n.t('order_list.print')}\n \n }\n {( this.props.config.use_thermal_printer == false) && \n }\n as=\"a\" href={`/colissimo-label/${line.id}/${this.props.shop.instance_id}`} target=\"_blank\"\n >\n {I18n.t('order_list.print')}\n \n }\n  }\n onClick={(e) => {this.setState({modalRegenerateReturn: true}); this.regenerateLabelReturn(line.order_id,line.id)}}\n >\n {I18n.t('order_list.regenerate')}\n \n \n \n }\n \n \n \n \n );\n });\n\n var payment_status_badge = '';\n\n if (payment_status == 'PARTIALLY_REFUNDED') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'FULLY_REFUNDED') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PENDING') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'NOT_PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PARTIALLY_PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'UNSPECIFIED_PAYMENT_STATUS') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n }\n\n return (\n \n \n \n \n \n {data.labels.length > 0 &&\n \n \n {labels_lines}\n \n }\n {data.labels.length <= 0 &&\n
\n \n \n \n \n {I18n.t('order_list.label_weight')}\n \n \n }\n onClick={(e) => this.generateLabel(id)}\n >\n {I18n.t('order_list.generate')}\n \n \n
\n }\n {data.labels_return.length > 0 &&\n \n \n {labels_return_lines}\n \n }\n {data.labels_return.length <= 0 &&\n (return_available === true ? (\n
\n \n \n \n \n {I18n.t('order_list.label_weight')}\n \n \n }\n onClick={(e) => this.generateLabelReturn(id)}\n >\n {I18n.t('order_list.generate_return')}\n \n \n
) : (\n {I18n.t('order_list.sheet.unavailable_return')}\n ))\n }\n
\n
\n
\n \n );\n };\n\n renderColumnOrderNumber = (row) => {\n const {id, wix_order_number, payment_status, wix_order_created_at, commercial_name, error_generate_label, error_generate_label_message, number_label, country_code, province_code} = row;\n\n const options = {\n year: 'numeric', month: 'numeric', day: 'numeric',\n hour: 'numeric', minute: 'numeric', second: 'numeric',\n hour12: false,\n timeZone: this.props.shop.time_zone\n };\n\n const cn23 = ((this.props.config !== null && this.props.config.sender_iso_country == 'FR' && this.props.iso_eu_countries_no_cn23.indexOf(country_code) === -1 && this.props.iso_fr.indexOf(country_code) === -1) || (this.props.config !== null && this.props.config.sender_iso_country != 'FR' && this.props.iso_dom_countries_no_cn23.indexOf(country_code) === -1) || (this.props.config !== null && this.props.config.sender_iso_country == 'FR' && country_code == 'ES' && this.props.province_code_cn23.indexOf(province_code) > -1 )) ? (\n \n  {I18n.t('order_list.cn23_alert')}\n ) : null;\n\n return (\n
\n \n {error_generate_label === true &&\n \n }\n this.handleToggleSheet(id)}>#{wix_order_number}\n {payment_status == 'PARTIALLY_REFUNDED' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'PAID' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'FULLY_REFUNDED' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'PENDING' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'NOT_PAID' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'PARTIALLY_PAID' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'UNSPECIFIED_PAYMENT_STATUS' && \n {I18n.t(`${payment_status}`)}\n }\n \n \n {new Intl.DateTimeFormat('default', options).format(new Date(wix_order_created_at))}\n \n \n {commercial_name !== null && commercial_name !== '' ? commercial_name : I18n.t('order_list.no_colissimo_order')} this.handleToggleSheet(id, 'change')}>{I18n.t('order_list.change')}\n \n {number_label == 0 &&\n cn23\n }\n
\n );\n }\n\n renderColumnCustomer = (row) => {\n const {id, full_name, email, product_code, country_code, international_offer} = row;\n\n if (this.props.config !== null && this.props.config.sender_iso_country == 'FR' && this.props.dpd_eligibility.indexOf(country_code) > -1 && product_code == 'DOS') {\n var icon_offer = ;\n\n if (international_offer == '1') {\n switch (country_code) {\n case 'DE':\n var icon_offer = ;\n break;\n case 'AT':\n var icon_offer = ;\n break;\n case 'IT':\n var icon_offer = ;\n break;\n case 'LU':\n var icon_offer = ;\n break;\n default:\n var icon_offer = ;\n }\n }\n }\n\n return (\n
\n \n {full_name}\n \n \n {email}\n \n {(this.props.config !== null && this.props.config.sender_iso_country == 'FR' && this.props.dpd_eligibility.indexOf(country_code) > -1 && product_code == 'DOS') &&\n via {icon_offer} this.handleToggleSheet(id, 'change_offer')}>{I18n.t('order_list.change')}\n }\n
\n );\n }\n\n capitalize = (str) => {\n const lower = str.toLowerCase();\n return str.charAt(0).toUpperCase() + lower.slice(1);\n }\n\n renderColumnFulfillment = (row) => {\n const {fulfillment_status, country_code, country} = row;\n\n return (\n
\n \n {fulfillment_status == 'FULFILLED' && \n {I18n.t(`${fulfillment_status}`)}\n }\n {fulfillment_status == 'NOT_FULFILLED' && \n {I18n.t(`${fulfillment_status}`)}\n }\n {fulfillment_status == 'CANCELED' && \n {I18n.t(`${fulfillment_status}`)}\n }\n {fulfillment_status == 'PARTIALLY_FULFILLED' && \n {I18n.t(`${fulfillment_status}`)}\n }\n \n \n {(typeof country != 'undefined' && country != null) ? ({this.capitalize(country)}) : ('')}\n \n {(typeof country_code != 'undefined' && country_code != null) ? (
) : (' ')}\n
\n );\n }\n\n renderColumnWeight = (row) => {\n const {id, total_weight} = row;\n\n const tare = this.props.config.packing_tare ? this.props.config.packing_tare : 0;\n const totalWeight = this.state[\"weight\"+id] !== undefined ? this.state[\"weight\"+id] : (parseFloat(total_weight) ? (parseFloat(total_weight) * 1000 + parseInt(tare)) : (this.props.config ? parseInt(this.props.config.default_weight) : 1000));\n\n return (\n
\n \n \n \n \n {I18n.t('order_list.label_weight')}\n \n
\n );\n }\n\n renderColumnActions = (row) => {\n const {id, number_label} = row;\n\n return (\n
\n {number_label > 0 &&\n }\n onClick={(e) => this.handleToggleSheet(id, 'labels')}\n >\n {I18n.t('order_list.details')}\n \n }\n
\n );\n }\n\n renderColumnOptions = (row) => {\n const {id, country_code, product_code, total_price, height, width, length, description} = row;\n\n const checkedInsurance = this.state[\"insurance\"+id] !== undefined ? this.state[\"insurance\"+id] : (this.props.config ? (this.props.config.insure_shipments && total_price >= this.props.config.amount_to_insurance ? this.props.config.insure_shipments : false) : false);\n const checkedReturn = this.state[\"return\"+id] !== undefined ? this.state[\"return\"+id] : (this.props.config ? this.props.config.auto_print_return_label : false);\n const checkedMachinable = this.state[\"machinable\"+id];\n const checkedFtd = this.state[\"ftd\"+id];\n\n const ftd = this.props.iso_outre_mer.indexOf(country_code) === -1 ? false : true;\n \n if ((product_code == '' || product_code == null) && this.props.iso_no_worldwide.indexOf(country_code) === -1) {\n var productCode = 'COLI';\n } else if (product_code == '' || product_code == null) {\n var productCode = 'DOM'\n } else {\n var productCode = product_code;\n }\n\n const ddp = (this.props.delivery_duty_paid.indexOf(country_code) > -1 && (productCode == 'DOS' || productCode == 'COLI')) ? true : false;\n\n const insurance_available = (this.props.insurable_products.indexOf(productCode) >= 0 || (productCode == 'DOS' && country_code == 'FR')) ? true : false;\n const return_available = ((this.props.config !== null && this.props.config.sender_iso_country == 'FR' && this.props.iso_return_available.indexOf(country_code) === -1 && this.props.iso_fr.indexOf(country_code) === -1) || (this.props.config !== null && this.props.config.sender_iso_country != 'FR' && this.props.iso_dom_return_available.indexOf(country_code) === -1)) ? false : true;\n\n return (\n \n \n this.handleChangeWithValue(`insurance${id}`, !checkedInsurance)}\n disabled={!insurance_available}\n />\n
\n {I18n.t('order_list.insurance')}\n
\n
\n {ftd === true ? (\n \n this.handleChangeWithValue(`ftd${id}`, !checkedFtd)}\n />\n
\n {I18n.t('order_list.ftd_label')}\n
\n
\n ) : ''}\n {ddp === true ? (\n
\n this.handleChangeWithValue(`activeddp${id}`)}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.handleChangeWithValue(`activeddp${id}`, false)}\n secondaryButtonOnClick={() => this.handleChangeWithValue(`activeddp${id}`, false)}\n primaryButtonOnClick={() => this.handleChangeDdp(id)}\n title={I18n.t('order_list.modal.ddp_title')}\n content={\n \n \n \n \n 0 ? `${width}` : '')}\n onChange={this.handleChangeDpd}\n />\n \n \n \n \n 0 ? `${height}` : '')}\n onChange={this.handleChangeDpd}\n />\n \n \n \n
\n \n \n \n 0 ? `${length}` : '')}\n onChange={this.handleChangeDpd}\n />\n \n \n \n \n \n {I18n.t('order_list.helptext_description')}\n \n \n \n
\n }\n >\n \n \n this.handleChangeWithValue(`ftd${id}`, !checkedFtd)}\n />\n
\n {I18n.t('order_list.ddp_label')}\n
\n
\n
\n ) : ''}\n\n
\n );\n }\n\n reinitVars = () => {\n this.setState({modalRegenerate: false});\n this.setState({modalRegenerateReturn: false});\n this.setState({regenerate_current_order_id: null});\n this.setState({regenerate_current_label_id: null});\n }\n\n displayModalRegenerate = () => {\n return (\n this.reinitVars()}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.reinitVars()}\n secondaryButtonOnClick={() => this.reinitVars()}\n primaryButtonOnClick={() => this.generateLabel(this.state.regenerate_current_order_id, false, this.state.regenerate_current_label_id, true)}\n title={I18n.t('order_list.modal.regenerate_title')}\n content={\n \n {I18n.t('order_list.modal.regenerate_message')}\n \n }\n >\n \n );\n }\n\n displayModalRegenerateReturn = () => {\n return (\n this.reinitVars()}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.reinitVars()}\n secondaryButtonOnClick={() => this.reinitVars()}\n primaryButtonOnClick={() => this.generateLabelReturn(this.state.regenerate_current_order_id, false, this.state.regenerate_current_label_id, true)}\n title={I18n.t('order_list.modal.regenerate_title')}\n content={\n \n {I18n.t('order_list.modal.regenerate_message')}\n \n }\n >\n \n );\n }\n\n displayModalBulkGenerate = () => {\n return (\n this.setState({modalBulkGenerate: false})}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.setState({modalBulkGenerate: false})}\n secondaryButtonOnClick={() => this.setState({modalBulkGenerate: false})}\n primaryButtonOnClick={() => this.generateBulkLabel()}\n title={I18n.t('order_list.modal.generate_bulk_label_title')}\n content={\n \n {I18n.t('order_list.modal.generate_bulk_label_message')}\n \n }\n >\n \n );\n }\n\n displayModalAddress = (shipping) => {\n return (\n this.setState({modalChangeAddress: false})}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.setState({modalChangeAddress: false})}\n title={I18n.t('order_list.modal.modify_address')}\n content={\n \n \n \n \n 0 ? '' : 'error'}\n name=\"first_name\"\n statusMessage={shipping.first_name !== null && shipping.first_name.length > 0 ? '' : I18n.t('configs.address.firstname_error')}\n tooltipPlacement=\"top-end\"\n value={shipping.first_name}\n onChange={this.handleChangeAddress}\n maxLength=\"35\"\n suffix={{shipping.first_name !== null ? 35 - shipping.first_name.length +`/35` : `35/35`}}\n />\n \n \n \n \n 0 ? '' : 'error'}\n name=\"last_name\"\n statusMessage={shipping.last_name !== null && shipping.last_name.length > 0 ? '' : I18n.t('configs.address.lastname_error')}\n tooltipPlacement=\"top-end\"\n value={shipping.last_name}\n onChange={this.handleChangeAddress}\n suffix={{shipping.last_name !== null ? 35 - shipping.last_name.length +`/35` : `35/35`}}\n />\n \n \n \n \n \n \n {shipping.company !== null ? 35 - shipping.company.length +`/35` : `35/35`}}\n />\n \n \n \n \n 0 ? '' : 'error'}\n name=\"phone\"\n statusMessage={shipping.phone !== null && shipping.phone.length > 0 ? '' : I18n.t('configs.address.phone_error')}\n tooltipPlacement=\"top-end\"\n value={shipping.phone}\n onChange={this.handleChangeAddress}\n />\n {I18n.t('configs.address.phone_help')}\n \n \n \n \n \n 0 ? '' : 'error'}\n name=\"address1\"\n statusMessage={shipping.address1 !== null && shipping.address1.length > 0 ? '' : I18n.t('configs.address.address1_error')}\n tooltipPlacement=\"top-end\"\n value={shipping.address1}\n onChange={this.handleChangeAddress}\n maxLength=\"35\"\n suffix={{shipping.address1 !== null ? 35 - shipping.address1.length +`/35` : `35/35`}}\n />\n \n
\n
\n \n \n {shipping.address2 !== null ? 35 - shipping.address2.length +`/35` : `35/35`}}\n />\n \n
\n
\n \n \n \n 0 ? '' : 'error'}\n name=\"zip\"\n statusMessage={shipping.zip !== null && shipping.zip.length > 0 ? '' : I18n.t('configs.address.postcode_error')}\n tooltipPlacement=\"top-end\"\n value={shipping.zip}\n onChange={this.handleChangeAddress}\n />\n \n \n \n \n 0 ? '' : 'error'}\n name=\"city\"\n statusMessage={shipping.city !== null && shipping.city.length > 0 ? '' : I18n.t('configs.address.city_error')}\n tooltipPlacement=\"top-end\"\n value={shipping.city}\n onChange={this.handleChangeAddress}\n maxLength=\"35\"\n suffix={{shipping.city !== null ? 35 - shipping.city.length +`/35` : `35/35`}}\n />\n \n \n \n

\n \n \n \n \n \n \n \n
\n }\n >\n \n );\n }\n\n displayModalAddressPickup = (shipping) => {\n return (\n this.setState({modalChangeAddressPickup: false})}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.setState({modalChangeAddressPickup: false})}\n title={I18n.t('order_list.modal.modify_address')}\n content={\n \n \n \n \n {shipping.company_name !== null ? 35 - shipping.company_name.length +`/35` : `35/35`}}\n />\n \n \n \n \n 0 ? '' : 'error'}\n name=\"phone\"\n statusMessage={shipping.phone !== null && shipping.phone.length > 0 ? '' : I18n.t('configs.address.phone_error')}\n tooltipPlacement=\"top-end\"\n value={shipping.phone}\n onChange={this.handleChangeAddressPickup}\n />\n {I18n.t('configs.address.phone_help')}\n \n \n \n \n \n 0 ? '' : 'error'}\n name=\"address1\"\n statusMessage={shipping.address1 !== null && shipping.address1.length > 0 ? '' : I18n.t('configs.address.address1_error')}\n tooltipPlacement=\"top-end\"\n value={shipping.address1}\n onChange={this.handleChangeAddressPickup}\n maxLength=\"35\"\n suffix={{shipping.address1 !== null ? 35 - shipping.address1.length +`/35` : `35/35`}}\n />\n \n
\n
\n \n \n {shipping.address2 !== null ? 35 - shipping.address2.length +`/35` : `35/35`}}\n />\n \n
\n
\n \n \n \n 0 ? '' : 'error'}\n name=\"zipcode\"\n statusMessage={shipping.zipcode !== null && shipping.zipcode.length > 0 ? '' : I18n.t('configs.address.postcode_error')}\n tooltipPlacement=\"top-end\"\n value={shipping.zipcode}\n onChange={this.handleChangeAddressPickup}\n />\n \n \n \n \n 0 ? '' : 'error'}\n name=\"city\"\n statusMessage={shipping.city !== null && shipping.city.length > 0 ? '' : I18n.t('configs.address.city_error')}\n tooltipPlacement=\"top-end\"\n value={shipping.city}\n onChange={this.handleChangeAddressPickup}\n maxLength=\"35\"\n suffix={{shipping.city !== null ? 35 - shipping.city.length +`/35` : `35/35`}}\n />\n \n \n \n

\n \n \n \n \n \n \n \n
\n }\n >\n \n );\n }\n\n displayModalImport = () => {\n return (\n this.setState({modalImport: false})}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.setState({modalImport: false})}\n secondaryButtonOnClick={() => this.setState({modalImport: false})}\n primaryButtonOnClick={() => this.handleImportOrders()}\n title={I18n.t('order_list.modal.import_title')}\n content={\n \n {I18n.t('order_list.modal.import_message')}\n
\n \n 0 ? '' : 'error'}\n name=\"import_orders\"\n statusMessage={this.state.import_orders !== null && this.state.import_orders.length > 0 ? '' : I18n.t('order_list.modal.import_order_error')}\n tooltipPlacement=\"top-end\"\n value={this.state.import_orders}\n onChange={this.handleChangeImportOrders}\n />\n \n
\n }\n >\n \n );\n }\n\n disambiguateLabel = (key, value) => {\n const options = {\n year: 'numeric', month: 'numeric', day: 'numeric',\n hour: 'numeric', minute: 'numeric', second: 'numeric',\n hour12: false,\n timeZone: this.props.shop.time_zone\n };\n \n switch (key) {\n case 'weight':\n return `${I18n.t('order_list.filters.weight_label')} ${value[0]} ${I18n.t('order_list.filters.grams')} ${I18n.t('order_list.filters.operator')} ${value[1]} ${I18n.t('order_list.filters.grams')}`;\n case 'fulfillmentStatus':\n return value.map((val) => `${I18n.t(val)}`).join(', ');\n case 'paymentStatus':\n return value.map((val) => `${I18n.t(val)}`).join(', ');\n case 'labelStatus':\n switch (value[0]) {\n case 'unavailable':\n return `${I18n.t('order_list.filters.unavailable_label')}`;\n case 'available':\n return `${I18n.t('order_list.filters.available_label')}`;\n case 'return':\n return `${I18n.t('order_list.filters.return_label')}`;\n default:\n return null;\n }\n case 'printedStatus':\n switch (value[0]) {\n case true:\n return `${I18n.t('order_list.filters.printed')}`;\n case false:\n return `${I18n.t('order_list.filters.unprint')}`;\n default:\n return null;\n }\n case 'closedStatus':\n switch (value[0]) {\n case true:\n return `${I18n.t('order_list.filters.archived_order')}`;\n case false:\n return `${I18n.t('order_list.filters.unarchived_order')}`;\n default:\n return null;\n }\n case 'errorStatus':\n switch (value[0]) {\n case 'error':\n return `${I18n.t('order_list.filters.error_generating_label')}`;\n default:\n return null;\n }\n case 'date':\n switch (value[0]) {\n case 'past_day':\n return `${I18n.t('order_list.filters.date_today')}`;\n case 'past_week':\n return `${I18n.t('order_list.filters.date_past_week')}`;\n case 'past_month':\n return `${I18n.t('order_list.filters.date_past_month')}`;\n case 'past_quarter':\n return `${I18n.t('order_list.filters.date_past_quarter')}`;\n case 'past_year':\n return `${I18n.t('order_list.filters.date_past_year')}`;\n default:\n return null;\n }\n case 'date_from':\n return `${I18n.t('order_list.filters.date_from')} ${new Intl.DateTimeFormat('default', options).format(new Date(value))}`;\n case 'date_to':\n return `${I18n.t('order_list.filters.date_to')} ${new Intl.DateTimeFormat('default', options).format(new Date(value))}`;\n case 'countries':\n return value.map((val) => `${val}`).join(', ');\n case 'services':\n return value.map((val) => `${val}`).join(', ');\n default:\n return value;\n }\n};\n\n render() {\n const {\n orders,\n loading,\n modalChangeAddress,\n modalChangeAddressPickup,\n modalRegenerate,\n modalRegenerateReturn,\n modalBulkGenerate,\n modalImport,\n orderShipping,\n orderShippingPickup,\n filterSide,\n coliship_import,\n } = this.state;\n\n const columns = [\n {\n title: I18n.t('order_list.order_number'),\n render: (row) => this.renderColumnOrderNumber(row),\n width: 260\n },\n {\n title: I18n.t('order_list.customer'),\n render: (row) => this.renderColumnCustomer(row),\n width: 150\n },\n {\n title: I18n.t('order_list.fulfillmment'),\n render: (row) => this.renderColumnFulfillment(row),\n width: 120,\n align: 'center'\n },\n {\n title: I18n.t('order_list.weight'),\n render: (row) => this.renderColumnWeight(row),\n width: 140\n },\n {\n title: I18n.t('order_list.options'),\n render: (row) => this.renderColumnOptions(row),\n width: 120\n },\n {\n title: I18n.t('order_list.actions'),\n render: (row) => this.renderColumnActions(row),\n width: 100\n }\n ];\n\n const includeFilters = [\n 'queryValue',\n 'paymentStatus',\n 'printedStatus',\n 'fulfillmentStatus',\n 'labelStatus',\n 'closedStatus',\n 'errorStatus',\n 'weight',\n 'date',\n 'date_from',\n 'date_to',\n 'countries',\n 'services'\n ];\n\n const appliedFilters = Object.keys(this.state)\n .filter((key) => !isEmpty(this.state[key]) && includeFilters.indexOf(key) !== -1)\n .map((key) => {\n return {\n id: key,\n value: this.state[key],\n type: key,\n children: this.disambiguateLabel(key, this.state[key]),\n };\n });\n\n const tagExists = ({ type, value }) =>\n this.state[type].some((tag) => tag === value)\n\n const dateFilter = [\n {label: I18n.t('order_list.filters.date_today'), value: 'past_day'},\n {label: I18n.t('order_list.filters.date_past_week'), value: 'past_week'},\n {label: I18n.t('order_list.filters.date_past_month'), value: 'past_month'},\n {label: I18n.t('order_list.filters.date_past_quarter'), value: 'past_quarter'},\n {label: I18n.t('order_list.filters.date_past_year'), value: 'past_year'},\n {label: I18n.t('order_list.filters.date_custom'), value: 'custom'},\n ];\n\n const paginationMarkup =\n this.state.total_page > 1 ? (\n this.handleChangePage(e.page)}\n />\n ) : null;\n\n const emptyStateMarkup = !orders.length ? (\n \n \n
\n {I18n.t('emptystate.orders.title')}\n {I18n.t('emptystate.orders.text1')}\n {I18n.t('emptystate.orders.url_link1')}\n {I18n.t('emptystate.orders.text2')}\n {I18n.t('emptystate.orders.url_link2')}\n }\n image={\n \n }\n >\n \n
\n ) : undefined;\n\n return (\n
\n \n }\n actionsBar={\n \n   \n }\n >\n \n \n \n \n {coliship_import == false &&\n \n \n \n {I18n.t('order_list._tabs.all')} },\n { id: 1, title: {I18n.t('order_list._tabs.without_label')} },\n { id: 2, title: {I18n.t('order_list._tabs.with_label')} },\n { id: 3, title: {I18n.t('order_list._tabs.unfulfilled')} },\n { id: 4, title: {I18n.t('coliship._tabs.import_files')} },\n ]}\n activeId={this.state.selectedTabConfig}\n type=\"uniformSide\"\n onClick={(value) => this.handleTabChange(value)}\n />\n \n \n \n {this.state.selectedItems.length > 0 &&\n \n \n \n \n \n {this.state.selectedItems.length} {I18n.t('order_list.resources_items_orders_title')} {I18n.t('order_list.selected')}\n \n {I18n.t('order_list.on_total')} {this.state.orders.length}\n \n \n \n \n \n \n \n \n \n this.generateColishipExport()}\n prefixIcon={}\n >\n {I18n.t('coliship.bulk_generate_label')}\n \n \n \n }\n {this.state.selectedItems.length <= 0 &&\n \n \n {this.state.orders.length}{I18n.t('order_list.resources_items_orders_title')}\n \n \n }\n \n \n }\n onClick={(e) => this.toggleActive(\"filterSide\")}\n >\n {I18n.t('order_list.filters.filters')} (9)\n \n \n \n \n \n \n \n \n \n \n \n {I18n.t('order_list.filters.filter_by')}\n this.handleClearAll(),\n }}\n onTagRemove={(e) => this.handleRemove(e)}\n />\n \n \n \n \n \n \n {emptyStateMarkup}\n
\n }\n {coliship_import == false &&\n

\n \n \n {paginationMarkup}\n \n \n
\n }\n {coliship_import == true &&\n \n \n \n {I18n.t('order_list._tabs.all')} },\n { id: 1, title: {I18n.t('order_list._tabs.without_label')} },\n { id: 2, title: {I18n.t('order_list._tabs.with_label')} },\n { id: 3, title: {I18n.t('order_list._tabs.unfulfilled')} },\n { id: 4, title: {I18n.t('coliship._tabs.import_files')} },\n ]}\n activeId={this.state.selectedTabConfig}\n type=\"uniformSide\"\n onClick={(value) => this.handleTabChange(value)}\n />\n \n \n \n \n
\n } \n \n \n this.handleCloseSheet()}>\n \n \n \n {this.props.payment_status.map((value, key) => (\n this.toggleTag('paymentStatus', value)}\n >\n {I18n.t(value)}\n \n ))}\n this.handleClear('paymentStatus')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n {\n title: I18n.t('order_list.filters.fulfill_status'),\n children: (\n \n {this.props.fulfillment_status.map((value, key) => (\n this.toggleTag('fulfillmentStatus', value)}\n >\n {I18n.t(value)}\n \n ))}\n this.handleClear('fulfillmentStatus')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n {\n title: I18n.t('order_list.filters.errorStatus'),\n children: (\n \n this.toggleTag('errorStatus', 'error')}\n label={I18n.t('order_list.filters.errorStatus')}\n />\n this.handleClear('errorStatus')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n {\n title: I18n.t('order_list.filters.countries'),\n children: (\n \n {this.props.countries.map((value, key) => (\n this.toggleTag('countries', value)}\n >\n {this.capitalize(value)}\n \n ))}\n this.handleClear('countries')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n {\n title: I18n.t('order_list.filters.services'),\n children: (\n \n {this.props.services.map((value, key) => (\n this.toggleTag('services', value)}\n >\n {value}\n \n ))}\n this.handleClear('services')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n {\n title: I18n.t('order_list.filters.weight'),\n children: (\n \n { this.toggleTag('weight', e)}}\n />\n this.handleClear('weight')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n {\n title: I18n.t('order_list.filters.date'),\n children: (\n \n {dateFilter.map((value, key) => (\n this.toggleTag('date', value.value)}\n label={value.label}\n />\n ))}\n {this.state.date[0] == 'custom' && \n \n \n \n \n \n \n \n \n }\n this.handleClear('date')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n ]}\n />\n \n \n \n {appliedFilters.length} {I18n.t('order_list.filters.filters_applied')}\n this.handleClearAll()}>{I18n.t('order_list.filters.clear_all')}\n \n \n \n \n
\n \n \n \n {!this.state.selectedOrder === false ? this.renderSheet(this.state.selectedOrder) : null}\n {!this.state.selectedLabels === false ? this.renderSheetLabels(this.state.selectedLabels) : null}\n {!this.state.selectedChange === false ? this.renderSheetChange(this.state.selectedChange) : null}\n {!this.state.selectedChangeOffer === false ? this.renderSheetChangeOffer(this.state.selectedChangeOffer) : null}\n this.setState({map_modal: false})}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.setState({map_modal: false})}\n title={I18n.t('front.modal_header')}\n content={\n \n
\n this.handleChange(\"colissimo_order_service_update\")} type=\"hidden\" ref={(orderUpdateWebservice) => { this.orderUpdateWebservice = orderUpdateWebservice }} />\n \n
\n
\n \n \n {I18n.t('front.please_wait')}\n \n
\n
\n }\n />\n \n {modalChangeAddress ? this.displayModalAddress(orderShipping) : null}\n {modalChangeAddressPickup ? this.displayModalAddressPickup(orderShippingPickup) : null}\n {modalRegenerate ? this.displayModalRegenerate() : null}\n {modalRegenerateReturn ? this.displayModalRegenerateReturn() : null}\n {modalBulkGenerate ? this.displayModalBulkGenerate() : null}\n {modalImport ? this.displayModalImport() : null}\n \n );\n }\n}\n\nfunction isEmpty(value) {\n if (Array.isArray(value)) {\n if (value[0] == \"custom\") {\n return true;\n }\n return value.length === 0;\n } else {\n /* Add specific Hack for custom value */\n return value === '' || value == null;\n }\n}\n\nexport default ColishipIndex","import React from \"react\";\nimport {\n Card,\n Button,\n Modal,\n MarketingLayout,\n FormField,\n Input,\n Image,\n Layout,\n Cell,\n Heading,\n Loader,\n Box,\n TextButton,\n Dropdown,\n NumberInput,\n SectionHelper,\n Text,\n Radio,\n Checkbox,\n MultiSelect,\n Divider\n} from '@wix/design-system';\n\nimport { DownloadImport, Add } from '@wix/wix-ui-icons-common';\n\nimport dpd from \"../../../assets/images/dpd.png\";\nimport austria from \"../../../assets/images/austria.png\";\nimport italy from \"../../../assets/images/italy.png\";\nimport germany from \"../../../assets/images/germany.png\";\nimport luxembourg from \"../../../assets/images/luxembourg.png\";\n\nimport { passCsrfToken } from '../../util/helpers'\nimport axios from 'axios'\n\nclass BackOffice extends React.Component {\n\n constructor(props) {\n super(props);\n\n var local_offer = [];\n\n if (props.configData.local_offer != \"\") {\n if (props.configData.local_offer.includes('DE')) {\n local_offer.push({ id: 'DE', label: (
{I18n.t('configs.back_end.germany')}
) });\n } \n\n if (props.configData.local_offer.includes('AU')) {\n local_offer.push({ id: 'AU', label: (
{I18n.t('configs.back_end.austria')}
) });\n } \n \n if (props.configData.local_offer.includes('IT')) {\n local_offer.push({ id: 'IT', label: (
{I18n.t('configs.back_end.italy')}
) });\n } \n \n if (props.configData.local_offer.includes('LU')) {\n local_offer.push({ id: 'LU', label: (
{I18n.t('configs.back_end.luxembourg')}
) });\n }\n\n this.state = {\n config: props.configData,\n selectedLocalOffer: local_offer,\n loadingSaveProcess: false\n };\n } else {\n this.state = {\n config: props.configData,\n selectedLocalOffer: [],\n loadingSaveProcess: false\n };\n }\n }\n\n componentDidMount = () => {\n passCsrfToken(document, axios);\n }\n\n /* Pour le changement de chaque champ de formulaire */\n handleChange = (e) => {\n this.props.handleUpdateConfig(true);\n this.setState({showNotification: false});\n this.setState({\n config: { ...this.state.config, [e.target.name]: e.target.value },\n })\n };\n\n /* Pour le changement de chaque champ de formulaire */\n handleChangeRadio = (field, value) => {\n this.props.handleUpdateConfig(true);\n this.setState({showNotification: false});\n this.setState({\n config: { ...this.state.config, [field]: value },\n })\n };\n /* Pour le changement du nombre de jour de préparation */\n handleChangeDays = (value) => {\n this.props.handleUpdateConfig(true);\n this.setState({showNotification: false});\n this.setState({\n config: { ...this.state.config, order_preparation_time: value },\n })\n };\n\n /* Pourle changement du poids par défaut */\n handleChangeDefaultWeight = (value) => {\n this.props.handleUpdateConfig(true);\n this.setState({showNotification: false});\n this.setState({\n config: { ...this.state.config, default_weight: value },\n })\n };\n\n /* Pourle changement de la tare */\n handleChangeTare = (value) => {\n this.props.handleUpdateConfig(true);\n this.setState({showNotification: false});\n this.setState({\n config: { ...this.state.config, packing_tare: value },\n })\n };\n\n /* Pour le changement du HS CODE */\n handleChangeHsCode = (value) => {\n this.props.handleUpdateConfig(true);\n this.setState({showNotification: false});\n this.setState({\n config: { ...this.state.config, default_hs_code: value },\n })\n };\n\n /* Pour le changement Insurance amount */\n handleChangeInsuranceAmount = (value) => {\n this.props.handleUpdateConfig(true);\n this.setState({showNotification: false});\n this.setState({\n config: { ...this.state.config, amount_to_insurance: value },\n })\n };\n\n /* Pour le changement Insurance amount */\n handleChangeReturnLifeTime = (value) => {\n this.props.handleUpdateConfig(true);\n this.setState({showNotification: false});\n this.setState({\n config: { ...this.state.config, return_lifetime: value },\n })\n };\n\n /* Gestion des mises à jour du format d'impression */\n handleSelectLabelFormat = (e) => {\n this.props.handleUpdateConfig(true);\n this.setState({showNotification: false});\n this.setState({\n config: { ...this.state.config, ['label_format']: e.id },\n })\n }\n\n /* gestion du protocol d'impression */\n handleSelectProtocolPrinter = (e) => {\n this.props.handleUpdateConfig(true);\n this.setState({showNotification: false});\n this.setState({\n config: { ...this.state.config, ['usb_protocole']: e.id },\n })\n }\n\n handleChangeFont = (e) => {\n this.props.handleUpdateConfig(true);\n this.setState({showNotification: false});\n this.setState({\n config: { ...this.state.config, ['widget_font']: e.id },\n })\n $('#widget_font_text h1').css(\"font-family\", e.id);\n }\n\n handleChangeColor = (field, value) => {\n this.props.handleUpdateConfig(true);\n this.setState({showNotification: false});\n this.setState({\n config: { ...this.state.config, [field]: value },\n })\n }\n\n /* Modification des local Offer */\n handleOnSelectLocalOffer = (e) => {\n this.props.handleUpdateConfig(true);\n this.setState({showNotification: false});\n this.setState({selectedLocalOffer: [...this.state.selectedLocalOffer, {id: e.id, label: e.value }]});\n this.setState({config: { ...this.state.config, ['local_offer']: [...this.state.config.local_offer, e.id ]}});\n }\n\n handleOnRemoveLocalOffer = (offerId) => {\n this.props.handleUpdateConfig(true);\n this.setState({showNotification: false});\n this.setState({selectedLocalOffer: this.state.selectedLocalOffer.filter((currLocalOffer) => currLocalOffer.id !== offerId)});\n this.setState({config: { ...this.state.config, ['local_offer']: this.state.config.local_offer.filter((currLocalOffer) => currLocalOffer !== offerId)}});\n console.log(this.state.selectedLocalOffer);\n }\n\n /* Submit FORM */\n handleSubmit = () => {\n this.setState({showNotification: false});\n this.setState({ loadingSaveProcess: true });\n\n axios({\n url: this.state.config.id ? '/configs/' + this.state.config.id : '/configs',\n method: this.state.config.id ? 'patch' : 'post',\n data: {\n config: this.state.config,\n instance_id: this.props.shop.instance_id\n },\n }).then(result => {\n if (result.data.success == true) {\n var data = result.data;\n data.config.local_offer = Object.keys(JSON.parse(data.config.local_offer));\n this.setState({ config: data.config });\n this.props.childChange(data.config);\n this.setState({loadingSaveProcess: false});\n //We update general props\n this.props.handleUpdateConfig(false);\n this.props.toggleToast(I18n.t('configs.save_success'), false);\n } else {\n this.setState({loadingSaveProcess: false});\n this.props.toggleToast(I18n.t('configs.save_error'), true);\n }\n }).catch(error => {\n console.log(error);\n this.setState({loadingSaveProcess: false});\n this.props.toggleToast(I18n.t('configs.save_error'), true);\n });\n };\n\n downloadFile = () => {\n axios({\n method: 'post',\n url: '/download-fmt-file',\n }).then(result => {\n if (result.data.success == true) {\n const FileDownload = require('js-file-download');\n FileDownload(result.data.content_fmt, 'shopify.fmt');\n }\n }).catch(error => {\n console.log(error);\n });\n }\n\n render() {\n const {\n config,\n loadingSaveProcess,\n selectedLocalOffer\n } = this.state;\n\n const icon_offer_germany = (
{I18n.t('configs.back_end.germany')}
);\n const icon_offer_austria = (
{I18n.t('configs.back_end.austria')}
);\n const icon_offer_italy = (
{I18n.t('configs.back_end.italy')}
);\n const icon_offer_luxembourg = (
{I18n.t('configs.back_end.luxembourg')}
);\n \n console.log(config);\n console.log(selectedLocalOffer);\n\n const descriptionSection = (\n \n {I18n.t('configs.view_video_button')}}\n size=\"tiny\"\n image={\n \n \n \n }\n />\n \n );\n\n \n return (\n
\n \n \n \n {/* URL WIDGET */}\n \n \n {descriptionSection}\n \n \n \n \n \n \n {I18n.t('configs.back_end.days')}} value={`${config.order_preparation_time}`} onChange={(value) => this.handleChangeDays(value)} />\n \n
\n {I18n.t('configs.back_end.print_label')}\n
\n \n this.handleChangeRadio('generate_label_shopify', true)}\n label={\n \n \n {I18n.t('configs.back_end.generate_label_shopify')}\n \n
\n {config.generate_label_shopify === true && \n \n \n \n \n \n }\n
\n }\n />\n
\n this.handleChangeRadio('generate_label_shopify', false)}\n label={\n \n \n {I18n.t('configs.back_end.generate_label_coliship')}\n \n
\n {config.generate_label_shopify === false && \n \n \n \n {I18n.t('configs.back_end.coliship_message')}\n
\n
\n
\n \n
\n
\n }\n
\n }\n />\n \n
\n \n this.handleChangeRadio('notify_customer', !config.notify_customer)}\n >\n {I18n.t('configs.back_end.notify_customer')}\n \n
\n {I18n.t('configs.back_end.help_notify_customer')}\n
\n
\n {I18n.t('configs.back_end.thermal_printer_title')}\n
\n \n this.handleChangeRadio('use_thermal_printer', true)}\n label={\n \n \n {I18n.t('configs.back_end.use_thermal_printer_yes')}\n \n
\n {config.use_thermal_printer === true && \n \n \n \n \n \n \n \n \n \n \n this.handleChangeRadio('thermal_printer_protocol', 'USB')}\n label={\n \n \n {I18n.t('configs.back_end.thermal_printer_usb')}\n \n
\n {config.thermal_printer_protocol === 'USB' &&\n \n \n \n \n \n }\n
\n }\n />\n
\n this.handleChangeRadio('thermal_printer_protocol', 'ETHERNET')}\n label={\n \n \n {I18n.t('configs.back_end.thermal_printer_ethernet')}\n \n
\n {config.thermal_printer_protocol === 'ETHERNET' &&\n \n \n \n \n \n }\n
\n }\n />\n \n
\n
\n \n \n this.handleChangeRadio('generate_and_print', !config.generate_and_print)}\n >\n {I18n.t('configs.back_end.generate_and_print')}\n \n
\n {I18n.t('configs.back_end.help_generate_and_print')}\n
\n
\n
\n }\n
\n }\n />\n
\n this.handleChangeRadio('use_thermal_printer', false)}\n label={\n \n \n {I18n.t('configs.back_end.use_thermal_printer_no')}\n \n \n }\n />\n \n
\n {I18n.t('configs.back_end.weight_title_options')}\n
\n \n this.handleChangeDefaultWeight(value)} />\n {I18n.t('configs.back_end.help_default_weight')}\n \n
\n \n this.handleChangeTare(value)} />\n {I18n.t('configs.back_end.help_packing_tare')}\n \n
\n {I18n.t('configs.back_end.title_dom_tom')}\n
\n \n this.handleChangeRadio('colissimo_eco', !config.colissimo_eco)}\n >\n {I18n.t('configs.back_end.colissimo_eco')}\n \n
\n {I18n.t('configs.back_end.help_colissimo_eco')}\n
\n
\n {I18n.t('configs.back_end.send_worldwide')}\n
\n \n \n \n
    \n
  • {I18n.t('configs.back_end.warning_send_worldwide_list1')}
  • \n
  • {I18n.t('configs.back_end.warning_send_worldwide_list2')}
  • \n
\n
\n
\n
\n
\n \n this.handleChangeHsCode(value)} />\n {I18n.t('configs.back_end.help_default_hs_code')}\n \n
\n \n \n {I18n.t('configs.back_end.help_eori')}\n \n
\n \n \n \n {I18n.t('configs.back_end.text_international_offer')}\n \n \n {I18n.t('configs.back_end.text_international_offer2')}\n
    \n
  • \n {I18n.t('configs.back_end.germany')}\n
  • \n
  • \n {I18n.t('configs.back_end.austria')}\n
  • \n
  • \n {I18n.t('configs.back_end.italy')}\n
  • \n
  • \n {I18n.t('configs.back_end.luxembourg')}\n
  • \n
\n
\n \n {I18n.t('configs.back_end.text_international_offer3')} \n \n
\n \n {I18n.t('configs.back_end.text_international_offer4')}\n \n
\n
\n
\n \n \n }>{I18n.t('configs.back_end.choose_postal_network')}\n \n }\n onSelect={this.handleOnSelectLocalOffer}\n onRemoveTag={this.handleOnRemoveLocalOffer}\n />\n \n
\n
\n
\n
\n
\n \n {/* FOMRULAIRE D'ADRESSE */}\n \n \n \n \n \n \n \n \n \n \n {I18n.t('configs.back_end.title_synchronize')}\n
\n \n this.handleChangeRadio('sychronize_no_colissimo_order', !config.sychronize_no_colissimo_order)}\n >\n {I18n.t('configs.back_end.synchronize_no_colissimo_order_label')}\n \n
\n {I18n.t('configs.back_end.help_synchronize_no_colissimo_order_label')}\n
\n
\n {I18n.t('configs.back_end.title_insure')}\n
\n \n this.handleChangeRadio('insure_shipments', !config.insure_shipments)}\n >\n {I18n.t('configs.back_end.insure_shipments')}\n \n
\n {I18n.t('configs.back_end.help_insure_shipments')}\n
\n
\n \n this.handleChangeInsuranceAmount(value)} />\n {I18n.t('configs.back_end.help_amount_to_insurance')}\n \n
\n {I18n.t('configs.back_end.title_return')}\n
\n \n this.handleChangeRadio('enable_return', true)}\n label={\n \n \n {I18n.t('configs.back_end.label_yes')}\n \n
\n {config.enable_return === true &&\n \n \n \n this.handleChangeRadio('auto_print_return_label', !config.auto_print_return_label)}\n >\n {I18n.t('configs.back_end.auto_print_return_label')}\n \n \n \n {I18n.t('configs.back_end.help_auto_print_return_label')}\n \n \n \n this.handleChangeRadio('display_return_label_customer', !config.display_return_label_customer)}\n >\n {I18n.t('configs.back_end.display_return_label_customer')}\n \n \n \n \n this.handleChangeRadio('allow_customer_generate_return', !config.allow_customer_generate_return)}\n >\n {I18n.t('configs.back_end.allow_customer_generate_return_label')}\n \n \n \n {I18n.t('configs.back_end.help_allow_customer_generate_return_label')}\n \n \n \n \n this.handleChangeRadio('generate_return_only_for_france', !config.generate_return_only_for_france)}\n >\n {I18n.t('configs.back_end.generate_return_only_for_france_label')}\n \n \n \n {I18n.t('configs.back_end.help_generate_return_only_for_france_label')}\n \n \n \n \n this.handleChangeReturnLifeTime(value)} />\n {I18n.t('configs.back_end.help_return_lifetime')}\n \n \n \n \n this.handleChangeRadio('send_return_notification', !config.send_return_notification)}\n >\n {I18n.t('configs.back_end.send_return_notification_label')}\n \n \n \n {I18n.t('configs.back_end.help_send_return_notification_label')}\n \n \n \n this.handleChangeRadio('enable_mailbox_return', !config.enable_mailbox_return)}\n >\n {I18n.t('configs.back_end.enable_mailbox_return')}\n \n
\n
\n
\n }\n
\n }\n />\n
\n this.handleChangeRadio('enable_return', false)}\n label={\n \n \n {I18n.t('configs.back_end.label_no')}\n \n \n }\n />\n \n
\n
\n
\n
\n
\n
\n );\n }\n}\n\nexport default BackOffice","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport {\n Cell,\n Card,\n Layout,\n MarketingLayout,\n SectionHelper,\n Image,\n Box,\n Text,\n Divider,\n Button,\n Accordion\n} from '@wix/design-system';\n\nimport Step1 from \"../../../assets/images/step1.png\";\nimport Step2 from \"../../../assets/images/step2.png\";\nimport Step3 from \"../../../assets/images/step3.png\";\nimport Step4 from \"../../../assets/images/step4.png\";\nimport Step5 from \"../../../assets/images/step5.png\";\nimport Step6 from \"../../../assets/images/step6.png\";\nimport Step7 from \"../../../assets/images/step7.png\";\nimport ColissimoStep1 from \"../../../assets/images/colissimo-1.png\";\nimport ColissimoStep2 from \"../../../assets/images/colissimo-2.png\";\nimport ColissimoStep3 from \"../../../assets/images/colissimo-3.png\";\n\nclass Carrier extends React.Component {\n\n render() {\n\n const descriptionSection = (\n \n \n

{I18n.t('support.slide2.bloc1.text1')}

\n

\n

    \n
  • {I18n.t('support.slide2.bloc1.text3')}
  • \n
  • {I18n.t('support.slide2.bloc1.text4')}
  • \n
  • {I18n.t('support.slide2.bloc1.text5')}
  • \n
  • {I18n.t('support.slide2.bloc1.text6')}
  • \n
\n

\n

{I18n.t('support.slide2.bloc1.text2')}{I18n.t('support.slide2.bloc1.title')}

\n
\n
\n
\n \n \n \n
\n );\n\n return (\n
\n \n \n \n {I18n.t('support.slide2.bloc1.title')}}\n description={descriptionSection}\n size=\"tiny\"\n />\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {I18n.t('support.slide2.bloc2.text1')}}\n size=\"tiny\"\n />\n \n \n \n \n \n \n \n
\n \n
\n
\n
\n
\n
\n \n \n \n \n \n \n

{I18n.t('support.slide2.bloc3.text1')}

\n

\n

    \n
  • {I18n.t('support.slide2.bloc3.li1')}
  • \n
  • {I18n.t('support.slide2.bloc3.li2')}
  • \n
  • {I18n.t('support.slide2.bloc3.li3')}
  • \n
  • {I18n.t('support.slide2.bloc3.li4')}
  • \n
  • {I18n.t('support.slide2.bloc3.li5')}
  • \n
\n

\n

{I18n.t('support.slide2.bloc1.text2')}{I18n.t('support.slide2.bloc1.title')}

\n
\n \n }\n size=\"tiny\"\n />\n
\n
\n \n \n \n \n \n \n \n \n \n
\n \n \n \n \n \n \n \n \n

\n {I18n.t('support.slide2.bloc5.errorText1')} {I18n.t('support.slide2.bloc5.errorText2')}.\n


\n

\n {I18n.t('support.slide2.bloc5.errorText3')} {I18n.t('support.slide2.bloc5.errorText4')} {I18n.t('support.slide2.bloc5.errorText5')} {I18n.t('support.slide2.bloc5.errorText6')}.\n


\n

\n {I18n.t('support.slide2.bloc5.errorText7')}\n

    \n
  • {I18n.t('support.slide2.bloc5.li1')}
  • \n
  • {I18n.t('support.slide2.bloc5.li2')}
  • \n
  • {I18n.t('support.slide2.bloc5.li3')}
  • \n
  • {I18n.t('support.slide2.bloc5.li4')}
  • \n
  • {I18n.t('support.slide2.bloc5.li5')}
  • \n
  • {I18n.t('support.slide2.bloc5.li6')}
  • \n
  • {I18n.t('support.slide2.bloc5.li7')}
  • \n
  • {I18n.t('support.slide2.bloc5.li8')}
  • \n
\n

\n
\n
\n
\n \n \n

\n {I18n.t('support.slide2.bloc5.carrier1.text1')} \n


\n\n \n \n

\n {I18n.t('support.slide2.bloc5.carrier1.zone')}\n

    \n
  • {I18n.t('support.slide2.bloc5.carrier1.li1')}
  • \n
  • {I18n.t('support.slide2.bloc5.carrier1.li2')}
  • \n
  • {I18n.t('support.slide2.bloc5.carrier1.li3')}
  • \n
\n

\n
\n
\n ),\n }\n ]} />\n

\n {I18n.t('support.slide2.bloc5.carrier1.text2')} \n

\n

\n {I18n.t('support.slide2.bloc5.carrier1.text3')} \n

\n

\n {I18n.t('support.slide2.bloc5.carrier1.text4')}\n


\n \n \n

\n {I18n.t('support.slide2.bloc5.carrier2.zone')}\n

    \n
  • {I18n.t('support.slide2.bloc5.carrier2.li1')}
  • \n
  • {I18n.t('support.slide2.bloc5.carrier2.li2')}
  • \n
  • {I18n.t('support.slide2.bloc5.carrier2.li3')}
  • \n
  • {I18n.t('support.slide2.bloc5.carrier2.li4')}
  • \n
  • {I18n.t('support.slide2.bloc5.carrier2.li5')}
  • \n
\n

\n
\n \n ),\n },\n {\n title: I18n.t('support.slide2.bloc5.carrier3.title'),\n children: (\n \n \n

\n {I18n.t('support.slide2.bloc5.carrier3.subtitle')}\n

\n

\n {I18n.t('support.slide2.bloc5.carrier3.zone')}\n

    \n
  • {I18n.t('support.slide2.bloc5.carrier3.li1')}
  • \n
  • {I18n.t('support.slide2.bloc5.carrier3.li2')}
  • \n
\n

\n
\n
\n ),\n },\n {\n title: I18n.t('support.slide2.bloc5.carrier4.title'),\n children: (\n \n \n

\n {I18n.t('support.slide2.bloc5.carrier4.zone')}\n

    \n
  • {I18n.t('support.slide2.bloc5.carrier4.li1')}
  • \n
\n

\n
\n
\n ),\n }\n ]} />\n \n \n \n }\n size=\"tiny\"\n />\n
\n
\n \n \n \n \n \n
\n \n
\n
\n
\n
\n
\n \n \n \n \n \n \n \n \n

{I18n.t('support.slide2.bloc4.zone1.subtitle')}

\n

\n {I18n.t('support.slide2.bloc4.zone1.text1')} \n

\n
\n \n \n \n

\n {I18n.t('support.slide2.bloc4.zone1.text3')} \n

    \n
  • {I18n.t('support.slide2.bloc4.zone1.li1')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone1.li2')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone1.li3')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone1.li4')}
  • \n
\n {I18n.t('support.slide2.bloc4.zone1.text4')} \n

\n
\n
\n ),\n }\n ]} />\n
\n
\n \n

{I18n.t('support.slide2.bloc4.zone1.text5')}

\n

{I18n.t('support.slide2.bloc4.zone2.subtitle')}

\n

\n {I18n.t('support.slide2.bloc4.zone2.text1')} \n

\n
\n \n \n \n

\n {I18n.t('support.slide2.bloc4.zone2.text3')} \n

    \n
  • {I18n.t('support.slide2.bloc4.zone2.li1')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone2.li2')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone2.li3')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone2.li4')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone2.li5')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone2.li6')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone2.li7')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone2.li8')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone2.li9')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone2.li10')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone2.li11')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone2.li12')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone2.li13')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone2.li14')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone2.li15')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone2.li16')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone2.li17')}
  • \n
\n {I18n.t('support.slide2.bloc4.zone2.text4')} \n

\n
\n
\n ),\n }\n ]} />\n \n
\n \n

{I18n.t('support.slide2.bloc4.zone3.subtitle')}

\n

\n {I18n.t('support.slide2.bloc4.zone3.text1')} \n

\n
\n \n \n \n

\n {I18n.t('support.slide2.bloc4.zone3.text3')} \n

    \n
  • {I18n.t('support.slide2.bloc4.zone3.li1')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone3.li2')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone3.li3')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone3.li4')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone3.li5')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone3.li6')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone3.li7')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone3.li8')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone3.li9')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone3.li10')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone3.li11')}
  • \n
\n {I18n.t('support.slide2.bloc4.zone3.text4')} \n

\n
\n
\n ),\n }\n ]} />\n \n
\n \n

{I18n.t('support.slide2.bloc4.zone4.subtitle')}

\n

\n {I18n.t('support.slide2.bloc4.zone4.text1')} \n

\n
\n \n \n \n

\n {I18n.t('support.slide2.bloc4.zone4.text3')} \n

    \n
  • {I18n.t('support.slide2.bloc4.zone4.li1')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone4.li2')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone4.li3')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone4.li4')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone4.li5')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone4.li6')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone4.li7')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone4.li8')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone4.li9')}
  • \n
  • {I18n.t('support.slide2.bloc4.zone4.li10')}
  • \n
\n {I18n.t('support.slide2.bloc4.zone4.text4')} \n

\n
\n
\n ),\n }\n ]} />\n \n
\n \n

{I18n.t('support.slide2.bloc4.zone5.subtitle')}

\n

\n {I18n.t('support.slide2.bloc4.zone5.text1')} \n

\n
\n \n \n \n

\n {I18n.t('support.slide2.bloc4.zone5.text3')} \n

    \n
  • {I18n.t('support.slide2.bloc4.zone5.li1')}
  • \n
\n {I18n.t('support.slide2.bloc4.zone5.text4')} \n

\n
\n
\n ),\n }\n ]} />\n \n
\n \n

{I18n.t('support.slide2.bloc4.zone6.subtitle')}

\n

\n {I18n.t('support.slide2.bloc4.zone6.text1')} \n

\n
\n \n \n \n

\n {I18n.t('support.slide2.bloc4.zone6.text3')} \n

    \n
  • {I18n.t('support.slide2.bloc4.zone6.li1')}
  • \n
\n {I18n.t('support.slide2.bloc4.zone6.text4')} \n

\n
\n
\n ),\n }\n ]} />\n \n \n
\n \n }\n size=\"tiny\"\n />\n
\n
\n \n \n \n \n \n \n \n \n \n
\n
\n );\n }\n}\n\nexport default Carrier","import React from \"react\";\n\nimport {\n Page,\n Card,\n Tabs,\n Button,\n Badge,\n Box,\n Text,\n Image,\n Modal,\n MessageModalLayout\n} from '@wix/design-system';\n\nimport { WixBookingSmall } from '@wix/wix-ui-icons-common';\n\nimport MyAccount from \"./MyAccount\";\nimport FrontOffice from \"./FrontOffice\";\nimport BackOffice from \"./BackOffice\";\nimport Orders from \"./Orders\";\nimport Intro from \"./Intro\";\nimport Carrier from \"./Carrier\";\nimport LogoColissimo from \"../../../assets/images/Colissimo_Logo_H.png\";\n\nclass ConfigForm extends React.Component {\n\n constructor(props) {\n super(props);\n this.child = React.createRef();\n }\n\n state = {\n selectTab: 0,\n confirmTab: 0,\n displayUpdateConfig: false,\n }\n\n handleSubmit = (event) => {\n event.preventDefault();\n this.child.current.handleSubmit();\n }\n\n handleSelectedTab = (value) => {\n if (this.props.updatedConfig) {\n /* We display modal */\n this.setState({ displayUpdateConfig: true });\n this.setState({confirmTab: value.id});\n } else {\n this.setState({selectTab: value.id});\n }\n }\n\n checkRedirect = (value) => {\n this.setState({ displayUpdateConfig: false });\n this.props.handleUpdateConfig(false);\n this.setState({selectTab: value});\n } \n\n displayModalUpdate = () => {\n this.setState({ displayUpdateConfig: true });\n } \n\n renderSwitch() {\n if (!Array.isArray(this.props.configData.local_offer)) {\n this.props.configData.local_offer = this.props.configData.local_offer == '' ? [] : Object.keys(JSON.parse(this.props.configData.local_offer));\n }\n\n switch(this.state.selectTab) {\n case 0:\n return (\n \n );\n case 1:\n return (\n \n );\n case 2:\n return (\n \n );\n case 3:\n return (\n \n );\n case 4:\n return (\n \n );\n case 5:\n return (\n \n );\n default:\n return (\n \n );\n }\n }\n \n render() {\n const modalUpdateConfig = (\n this.setState({ displayUpdateConfig: false })}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.setState({ displayUpdateConfig: false })}\n primaryButtonText={I18n.t('configs.modal.ok_button')}\n primaryButtonOnClick={() => this.checkRedirect(this.state.confirmTab)}\n secondaryButtonOnClick={() => this.setState({ displayUpdateConfig: false })}\n secondaryButtonText={I18n.t('configs.modal.cancel_button')}\n title={I18n.t('configs.modal.title')}\n content={\n {I18n.t('configs.modal.message')}\n }\n />\n \n );\n\n return (\n
\n \n }\n actionsBar={}\n >\n \n \n \n \n 1 {I18n.t('menu.my_account')} },\n { id: 1, title: 2 {I18n.t('menu.front_office')} },\n { id: 2, title: 3 {I18n.t('menu.back_office')} },\n { id: 3, title: 4 {I18n.t('menu.carrier_settings')} },\n { id: 4, title: 5 {I18n.t('menu.import_orders')} },\n { id: 5, title: 6 {I18n.t('menu.no_colissimo_account')} },\n ]}\n activeId={this.state.selectTab}\n type=\"uniformSide\"\n onClick={(value) => this.handleSelectedTab(value)}\n />\n \n \n {this.renderSwitch()}\n \n \n \n \n \n \n \n \n \n \n \n \n {modalUpdateConfig}\n
\n );\n }\n}\n\nexport default ConfigForm\n","import React from \"react\";\nimport {\n Card,\n Button,\n Modal,\n MarketingLayout,\n FormField,\n Input,\n InputArea,\n TextButton,\n Image,\n Layout,\n Cell,\n Heading,\n Loader,\n Notification,\n Dropdown,\n ColorInput,\n Divider\n} from '@wix/design-system';\n\nimport MapExample from \"../../../assets/images/map_exemple.png\";\n\nimport { passCsrfToken } from '../../util/helpers'\nimport axios from 'axios'\n\nclass FrontOffice extends React.Component {\n state = {\n config: this.props.configData,\n loading: false,\n testWebservice: false,\n showNotification: false,\n loadingSaveProcess: false,\n };\n\n componentDidMount = () => {\n passCsrfToken(document, axios);\n $('#widget_font_text h1').css(\"font-family\", this.state.config.widget_font);\n }\n\n handleCopy = (e) => {\n var copyUrl = $(\"#shopify_plus_name\");\n copyUrl.focus();\n copyUrl.select();\n document.execCommand('copy');\n //e.target.focus();\n this.props.toggleToast(I18n.t('configs.front_end.copySuccess'), false);\n }\n\n /* Pour le changement de chaque champ de formulaire */\n handleChange = (e) => {\n this.props.handleUpdateConfig(true);\n this.setState({showNotification: false});\n this.setState({\n config: { ...this.state.config, [e.target.name]: e.target.value },\n })\n this.props.handleUpdateConfig(true);\n };\n\n handleChangeFont = (e) => {\n this.props.handleUpdateConfig(true);\n this.setState({showNotification: false});\n this.setState({\n config: { ...this.state.config, ['widget_font']: e.id },\n })\n $('#widget_font_text h1').css(\"font-family\", e.id);\n }\n\n handleChangeColor = (field, value) => {\n this.props.handleUpdateConfig(true);\n this.setState({showNotification: false});\n this.setState({\n config: { ...this.state.config, [field]: value },\n })\n }\n\n /* Requête de test API */\n apiTestingService = () => {\n this.setState({loading: true});\n axios({\n url: '/apitest-authentication',\n method: 'POST',\n data: {\n account_login: this.state.config.account_login,\n account_password: this.state.config.account_password,\n instance_id: this.props.shop.instance_id\n },\n })\n .then(result => {\n if (result.data.success == true) {\n this.setState({loading: false});\n this.setState({testWebservice: 'success'});\n this.setState({showNotification: true});\n } else {\n this.setState({testWebservice: 'error'});\n this.setState({showNotification: true});\n this.setState({loading: false});\n }\n })\n .catch(error => {\n console.log(error);\n this.setState({testWebservice: 'error'});\n this.setState({showNotification: true});\n this.setState({loading: false});\n });\n };\n\n /* Submit FORM */\n handleSubmit = () => {\n this.setState({showNotification: false});\n this.setState({ loadingSaveProcess: true });\n\n axios({\n url: this.state.config.id ? '/configs/' + this.state.config.id : '/configs',\n method: this.state.config.id ? 'patch' : 'post',\n data: {\n config: this.state.config,\n instance_id: this.props.shop.instance_id\n },\n }).then(result => {\n if (result.data.success == true) {\n var data = result.data;\n data.config.local_offer = Object.keys(JSON.parse(data.config.local_offer));\n this.setState({ config: data.config });\n this.props.childChange(data.config);\n this.setState({loadingSaveProcess: false});\n //We update general props\n this.props.handleUpdateConfig(false);\n this.props.toggleToast(I18n.t('configs.save_success'), false);\n } else {\n this.setState({loadingSaveProcess: false});\n this.props.toggleToast(I18n.t('configs.save_error'), true);\n }\n }).catch(error => {\n console.log(error);\n this.setState({loadingSaveProcess: false});\n this.props.toggleToast(I18n.t('configs.save_error'), true);\n });\n };\n\n render() {\n const {\n config,\n loading,\n showNotification,\n testWebservice,\n loadingSaveProcess\n } = this.state;\n\n return (\n
\n \n \n \n {/* POINT RELAIS */}\n \n \n \n {I18n.t('configs.view_video_button')}}\n size=\"tiny\"\n />\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n `}\n name=\"widget_endpoint\"\n readOnly\n />\n \n
\n \n

\n {testWebservice == 'success' &&\n
\n \n {I18n.t('configs.my_account.test_api_success')}\n \n
\n
\n }\n {testWebservice == 'error' &&\n
\n \n {I18n.t('configs.my_account.test_api_error')}\n \n
\n
\n }\n
\n
\n
\n
\n
\n {/* URL WIDGET */}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n

\n {testWebservice == 'success' &&\n
\n \n {I18n.t('configs.my_account.test_api_success')}\n \n
\n
\n }\n {testWebservice == 'error' &&\n
\n \n {I18n.t('configs.my_account.test_api_error')}\n \n
\n
\n }\n
\n
\n
\n
\n
\n \n {/* BOUTON PANIER */}\n \n \n \n \n \n \n \n \n \n \n \n this.handleChangeColor('button_color', e)}\n popoverAppendTo=\"viewport\"\n />\n \n
\n
\n
\n
\n
\n
\n \n {/* COULEUR AFFICHAGE LISTE */}\n \n \n \n \n \n \n \n \n \n \n \n this.handleChangeColor('widget_color_1', e)}\n popoverAppendTo=\"viewport\"\n />\n \n
\n
\n
\n
\n
\n
\n \n {/* COULEUR AFFICHAGE CHAMP ADRESSE */}\n \n \n \n \n \n \n \n \n \n \n \n this.handleChangeColor('widget_color_2', e)}\n popoverAppendTo=\"viewport\"\n />\n \n
\n
\n
\n
\n
\n
\n \n {/* POLICE DE CARACTERES */}\n \n \n \n \n \n \n \n \n \n \n \n \n
\n {I18n.t('configs.front_end.example_font')}\n
\n
\n
\n
\n
\n
\n
\n
\n \n {/* EXEMPLE D'AFFICHAGE */}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n );\n }\n}\n\nexport default FrontOffice","import React from \"react\";\nimport {\n Card,\n Button,\n Heading,\n Image,\n Layout,\n Cell,\n Text,\n} from '@wix/design-system';\n\nimport Colissimo1 from \"../../../assets/images/colissimo-1.png\";\nimport Colissimo2 from \"../../../assets/images/colissimo-2.png\";\nimport Colissimo3 from \"../../../assets/images/colissimo-3.png\";\nimport Colissimo4 from \"../../../assets/images/colissimo-4.png\";\n\nclass Intro extends React.Component {\n\n render() {\n return (\n \n \n \n \n \n {I18n.t('configs.intro.heading1')}\n

\n {I18n.t('configs.intro.text_intro1')}
\n {I18n.t('configs.intro.text_intro2')}\n

\n {/*

\n \n {I18n.t('configs.intro.colissimo_link')}\n .\n

*/}\n
\n
\n \n {I18n.t('configs.intro.heading_step1')}\n \n

{I18n.t('configs.intro.text_step1')}

\n
\n \n

\n
\n \n {I18n.t('configs.intro.heading_step2')}\n \n
\n
\n
\n \n {I18n.t('configs.intro.heading_step3')}\n \n

{I18n.t('configs.intro.text_step3')}

\n
\n
\n
\n \n {I18n.t('configs.intro.heading_step4')}\n \n
    \n
  • {I18n.t('configs.intro.li1_step4')}
  • \n
  • {I18n.t('configs.intro.li2_step4')}
  • \n
  • {I18n.t('configs.intro.li3_step4')}
  • \n
  • {I18n.t('configs.intro.li4_step4')}
  • \n
  • {I18n.t('configs.intro.li5_step4')}
  • \n
\n
\n
\n
\n
\n
\n
\n );\n }\n}\n\nexport default Intro","import React from \"react\";\nimport {\n Card,\n Button,\n TextButton,\n MarketingLayout,\n FormField,\n Input,\n Image,\n Layout,\n Box,\n Cell,\n SectionHelper,\n Text,\n Loader,\n Notification,\n Dropdown,\n ToggleSwitch,\n Collapse,\n Modal,\n Divider\n} from '@wix/design-system';\n\nimport { passCsrfToken } from '../../util/helpers'\nimport axios from 'axios'\n\nclass MyAccount extends React.Component {\n\n state = {\n config: this.props.configData,\n selectedSameAddress: this.props.configData.same_address_return_sender,\n loading: false,\n testWebservice: false,\n showNotification: false,\n loadingSaveProcess: false,\n };\n\n componentDidMount = () => {\n passCsrfToken(document, axios);\n }\n\n /* Methode de vérification des champs de form */\n validateForm = () => {\n var hasErrors = false;\n\n if (this.state.config.account_login !== null && this.state.config.account_login.length < 1) {\n hasErrors = true;\n }\n\n if (this.state.config.account_password !== null && this.state.config.account_password.length < 1) {\n hasErrors = true;\n }\n\n if (this.state.config.sender_company !== null && this.state.config.sender_company.length < 1) {\n hasErrors = true;\n }\n\n if (this.state.config.sender_lastname !== null && this.state.config.sender_lastname.length < 1) {\n hasErrors = true;\n }\n\n if (this.state.config.sender_firstname !== null && this.state.config.sender_firstname.length < 1) {\n hasErrors = true;\n }\n\n if (this.state.config.sender_address1 !== null && this.state.config.sender_address1.length < 1) {\n hasErrors = true;\n }\n\n if (this.state.config.sender_city !== null && this.state.config.sender_city.length < 1) {\n hasErrors = true;\n }\n\n if (this.state.config.sender_postcode !== null && this.state.config.sender_postcode.length < 1) {\n hasErrors = true;\n }\n\n if (this.state.config.sender_email !== null && this.state.config.sender_email.length < 1) {\n hasErrors = true;\n }\n\n if (this.state.config.sender_phone !== null && this.state.config.sender_phone.length < 1) {\n hasErrors = true;\n }\n\n if (!this.state.selectedSameAddress) {\n if (this.state.config.return_company !== null && this.state.config.return_company.length < 1) {\n hasErrors = true;\n }\n \n if (this.state.config.return_lastname !== null && this.state.config.return_lastname.length < 1) {\n hasErrors = true;\n }\n \n if (this.state.config.return_firstname !== null && this.state.config.return_firstname.length < 1) {\n hasErrors = true;\n }\n \n if (this.state.config.return_address1 !== null && this.state.config.return_address1.length < 1) {\n hasErrors = true;\n }\n \n if (this.state.config.return_city !== null && this.state.config.return_city.length < 1) {\n hasErrors = true;\n }\n \n if (this.state.config.return_postcode !== null && this.state.config.return_postcode.length < 1) {\n hasErrors = true;\n }\n \n if (this.state.config.return_email !== null && this.state.config.return_email.length < 1) {\n hasErrors = true;\n }\n \n if (this.state.config.return_phone !== null && this.state.config.return_phone.length < 1) {\n hasErrors = true;\n }\n }\n return !hasErrors;\n };\n\n validateEmail = () => {\n return new RegExp(/[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,15}/g).test(this.state.config.sender_email);\n };\n\n validatePhone = () => {\n return new RegExp(/(?:(?:\\+|00)33|0)\\s*[1-9](?:[\\s.-]*\\d{2}){4}/g).test(this.state.config.sender_phone);\n };\n\n validateReturnEmail = () => {\n return new RegExp(/[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,15}/g).test(this.state.config.return_email);\n };\n\n validateReturnPhone = () => {\n return new RegExp(/(?:(?:\\+|00)33|0)\\s*[1-9](?:[\\s.-]*\\d{2}){4}/g).test(this.state.config.return_phone);\n };\n /* Fin méthode de vérificiation */\n\n\n /* Pour le changement de chaque champ de formulaire */\n handleChange = (e) => {\n this.props.handleUpdateConfig(true);\n this.setState({showNotification: false});\n this.setState({\n config: { ...this.state.config, [e.target.name]: e.target.value },\n })\n };\n \n /* Gestion des mises à jour de country */\n handleSelectChangeCountry = (e) => {\n this.props.handleUpdateConfig(true);\n this.setState({showNotification: false});\n this.setState({\n config: { ...this.state.config, ['sender_iso_country']: e.id },\n })\n }\n\n handleSelectChangeReturnCountry = (e) => {\n this.props.handleUpdateConfig(true);\n this.setState({showNotification: false});\n this.setState({\n config: { ...this.state.config, ['return_iso_country']: e.id },\n })\n }\n /* Fin gestion des country */\n\n /* Requête de test API */\n apiTesting = () => {\n this.setState({loading: true});\n axios({\n url: '/apitest',\n method: 'POST',\n data: {\n account_login: this.state.config.account_login,\n account_password: this.state.config.account_password,\n instance_id: this.props.shop.instance_id\n },\n })\n .then(result => {\n if (result.data.success == true) {\n this.setState({loading: false});\n this.setState({testWebservice: 'success'});\n this.setState({showNotification: true});\n } else {\n this.setState({testWebservice: 'error'});\n this.setState({showNotification: true});\n this.setState({loading: false});\n }\n })\n .catch(error => {\n console.log(error);\n this.setState({testWebservice: 'error'});\n this.setState({showNotification: true});\n this.setState({loading: false});\n });\n };\n\n /* Submit FORM */\n handleSubmit = () => {\n this.setState({showNotification: false});\n this.setState({ loadingSaveProcess: true });\n // Check if data is valid\n if (!this.validateForm()) {\n //return if not valid\n this.props.toggleToast(I18n.t('configs.my_account_error'), true);\n this.setState({ loadingSaveProcess: false });\n return;\n }\n\n if (!this.validateEmail()) {\n this.props.toggleToast(I18n.t('configs.my_account_error_email'), true);\n this.setState({ loadingSaveProcess: false });\n return;\n }\n\n if (!this.validatePhone()) {\n this.props.toggleToast(I18n.t('configs.my_account_error_phone'), true);\n this.setState({ loadingSaveProcess: false });\n return;\n }\n\n if (!this.state.selectedSameAddress) {\n if (!this.validateReturnEmail()) {\n this.props.toggleToast(I18n.t('configs.my_account_error_email'), true);\n this.setState({ loadingSaveProcess: false });\n return;\n }\n \n if (!this.validateReturnPhone()) {\n this.props.toggleToast(I18n.t('configs.my_account_error_phone'), true);\n this.setState({ loadingSaveProcess: false });\n return;\n }\n }\n\n axios({\n url: this.state.config.id ? '/configs/' + this.state.config.id : '/configs',\n method: this.state.config.id ? 'patch' : 'post',\n data: {\n config: this.state.config,\n instance_id: this.props.shop.instance_id\n },\n }).then(result => {\n if (result.data.success == true) {\n var data = result.data;\n data.config.local_offer = Object.keys(JSON.parse(data.config.local_offer));\n this.setState({ config: data.config });\n this.props.childChange(data.config);\n this.setState({loadingSaveProcess: false});\n //We update general props\n this.props.handleUpdateConfig(false);\n this.props.toggleToast(I18n.t('configs.save_success'), false);\n } else {\n this.setState({loadingSaveProcess: false});\n this.props.toggleToast(I18n.t('configs.save_error'), true);\n }\n }).catch(error => {\n console.log(error);\n this.setState({loadingSaveProcess: false});\n this.props.toggleToast(I18n.t('configs.save_error'), true);\n });\n };\n\n render() {\n const {\n config,\n loading,\n selectedSameAddress,\n showNotification,\n testWebservice,\n loadingSaveProcess\n } = this.state;\n\n const descriptionSection = (\n \n {I18n.t('configs.view_video_button')}}\n size=\"tiny\"\n image={\n \n \n \n }\n />\n \n );\n\n return (\n
\n \n \n \n {/* FOMRULAIRE CONNEXION */}\n \n \n {descriptionSection}\n \n \n \n \n \n 0 ? '' : 'error'}\n name=\"account_login\"\n statusMessage={config.account_login !== null && config.account_login.length > 0 ? '' : I18n.t('configs.my_account.account_login_error')}\n tooltipPlacement=\"top-end\"\n value={config.account_login}\n onChange={this.handleChange}\n />\n \n
\n \n 0 ? '' : 'error'}\n statusMessage={config.account_password !== null && config.account_password.length > 0 ? '' : I18n.t('configs.my_account.account_password_error')}\n onChange={this.handleChange}\n />\n \n
\n \n

\n {testWebservice == 'success' &&\n
\n \n {I18n.t('configs.my_account.test_api_success')}\n \n
\n
\n }\n {testWebservice == 'error' &&\n
\n \n {I18n.t('configs.my_account.test_api_error')}\n \n
\n
\n }\n {testWebservice == 'error' &&\n \n \n \n \n \n }\n
\n
\n
\n
\n \n {/* FOMRULAIRE D'ADRESSE */}\n \n \n \n \n \n \n \n \n \n \n \n 0 ? '' : 'error'}\n name=\"sender_company\"\n statusMessage={config.sender_company !== null && config.sender_company.length > 0 ? '' : I18n.t('configs.address.company_error')}\n tooltipPlacement=\"top-end\"\n value={config.sender_company}\n onChange={this.handleChange}\n maxLength=\"35\"\n suffix={{config.sender_company !== null ? 35 - config.sender_company.length +`/35` : `35/35`}}\n />\n \n
\n
\n \n \n \n 0 ? '' : 'error'}\n name=\"sender_lastname\"\n statusMessage={config.sender_lastname !== null && config.sender_lastname.length > 0 ? '' : I18n.t('configs.address.lastname_error')}\n tooltipPlacement=\"top-end\"\n value={config.sender_lastname}\n onChange={this.handleChange}\n maxLength=\"35\"\n suffix={{config.sender_lastname !== null ? 35 - config.sender_lastname.length +`/35` : `35/35`}}\n />\n \n \n \n \n 0 ? '' : 'error'}\n name=\"sender_firstname\"\n statusMessage={config.sender_firstname !== null && config.sender_firstname.length > 0 ? '' : I18n.t('configs.address.firstname_error')}\n tooltipPlacement=\"top-end\"\n value={config.sender_firstname}\n onChange={this.handleChange}\n maxLength=\"35\"\n suffix={{config.sender_firstname !== null ? 35 - config.sender_firstname.length +`/35` : `35/35`}}\n />\n \n \n \n
\n \n \n 0 ? '' : 'error'}\n name=\"sender_address1\"\n statusMessage={config.sender_address1 !== null && config.sender_address1.length > 0 ? '' : I18n.t('configs.address.address1_error')}\n tooltipPlacement=\"top-end\"\n value={config.sender_address1}\n onChange={this.handleChange}\n maxLength=\"35\"\n suffix={{config.sender_address1 !== null ? 35 - config.sender_address1.length +`/35`: `35/35`}}\n />\n \n
\n
\n \n \n {config.sender_address2 !== null ? 35 - config.sender_address2.length +`/35` : `35/35`}}\n />\n \n
\n
\n \n \n {config.sender_address3 !== null ? 35 - config.sender_address3.length +`/35` : `35/35`}}\n />\n \n
\n
\n \n \n {config.sender_address4 !== null ? 35 - config.sender_address4.length +`/35` : `35/35`}}\n />\n \n
\n
\n \n \n \n 0 ? '' : 'error'}\n name=\"sender_postcode\"\n statusMessage={config.sender_postcode !== null && config.sender_postcode.length > 0 ? '' : I18n.t('configs.address.postcode_error')}\n tooltipPlacement=\"top-end\"\n value={config.sender_postcode}\n onChange={this.handleChange}\n maxLength=\"5\"\n suffix={{config.sender_postcode !== null ? 5 - config.sender_postcode.length +`/5` : `5/5`}}\n />\n \n \n \n \n 0 ? '' : 'error'}\n name=\"sender_city\"\n statusMessage={config.sender_city !== null && config.sender_city.length > 0 ? '' : I18n.t('configs.address.city_error')}\n tooltipPlacement=\"top-end\"\n value={config.sender_city}\n onChange={this.handleChange}\n maxLength=\"35\"\n suffix={{config.sender_city !== null ? 35 - config.sender_city.length +`/35` : `35/35`}}\n />\n \n \n \n
\n \n \n \n \n
\n
\n \n \n \n 0 ? '' : 'error'}\n name=\"sender_phone\"\n statusMessage={config.sender_phone !== null && config.sender_phone.length > 0 ? '' : I18n.t('configs.address.phone_error')}\n tooltipPlacement=\"top-end\"\n value={config.sender_phone}\n onChange={this.handleChange}\n />\n {I18n.t('configs.address.phone_help')}\n \n \n \n \n 0 ? '' : 'error'}\n name=\"sender_email\"\n statusMessage={config.sender_email !== null &&config.sender_email.length > 0 ? '' : I18n.t('configs.address.mail_error')}\n tooltipPlacement=\"top-end\"\n value={config.sender_email}\n onChange={this.handleChange}\n maxLength=\"80\"\n suffix={{config.sender_email !== null ? 80 - config.sender_email.length +`/80` : `80/80`}}\n />\n \n \n \n
\n
\n
\n
\n
\n \n {/* FOMRULAIRE D'ADRESSE DE RETOUR */}\n \n \n \n \n \n \n \n \n \n \n \n \n this.setState({ selectedSameAddress: !selectedSameAddress })}\n size={'small'}\n />\n {I18n.t('configs.address.label_same_address_return_sender')}\n \n
\n \n
\n \n \n \n 0 ? '' : 'error'}\n name=\"return_company\"\n statusMessage={config.return_company !== null && config.return_company.length > 0 ? '' : I18n.t('configs.address.company_error')}\n tooltipPlacement=\"top-end\"\n value={config.return_company}\n onChange={this.handleChange}\n maxLength=\"35\"\n suffix={{config.return_company !== null ? 35 - config.return_company.length +`/35` : `35/35`}}\n />\n \n
\n
\n \n \n \n 0 ? '' : 'error'}\n name=\"return_lastname\"\n statusMessage={config.return_lastname !== null && config.return_lastname.length > 0 ? '' : I18n.t('configs.address.lastname_error')}\n tooltipPlacement=\"top-end\"\n value={config.return_lastname}\n onChange={this.handleChange}\n maxLength=\"35\"\n suffix={{config.return_lastname !== null ? 35 - config.return_lastname.length +`/35` : `35/35`}}\n />\n \n \n \n \n 0 ? '' : 'error'}\n name=\"return_firstname\"\n statusMessage={config.return_firstname !== null && config.return_firstname.length > 0 ? '' : I18n.t('configs.address.firstname_error')}\n tooltipPlacement=\"top-end\"\n value={config.return_firstname}\n onChange={this.handleChange}\n maxLength=\"35\"\n suffix={{config.return_firstname !== null ? 35 - config.return_firstname.length +`/35` : `35/35`}}\n />\n \n \n \n
\n \n \n 0 ? '' : 'error'}\n name=\"return_address1\"\n statusMessage={config.return_address1 !== null && config.return_address1.length > 0 ? '' : I18n.t('configs.address.address1_error')}\n tooltipPlacement=\"top-end\"\n value={config.return_address1}\n onChange={this.handleChange}\n maxLength=\"35\"\n suffix={{config.return_address1 !== null ? 35 - config.return_address1.length +`/35` : `35/35`}}\n />\n \n
\n
\n \n \n {config.return_address2 !== null ? 35 - config.return_address2.length +`/35` : `35/35`}}\n />\n \n
\n
\n \n \n {config.return_address3 !== null ? 35 - config.return_address3.length +`/35` : `35/35`}}\n />\n \n
\n
\n \n \n {config.return_address4 !== null ? 35 - config.return_address4.length +`/35` : `35/35`}}\n />\n \n
\n
\n \n \n \n 0 ? '' : 'error'}\n name=\"return_postcode\"\n statusMessage={config.return_postcode !== null && config.return_postcode.length > 0 ? '' : I18n.t('configs.address.postcode_error')}\n tooltipPlacement=\"top-end\"\n value={config.return_postcode}\n onChange={this.handleChange}\n maxLength=\"5\"\n suffix={{config.return_postcode !== null ? 5 - config.return_postcode.length +`/5` : `5/5`}}\n />\n \n \n \n \n 0 ? '' : 'error'}\n name=\"return_city\"\n statusMessage={config.return_city !== null && config.return_city.length > 0 ? '' : I18n.t('configs.address.city_error')}\n tooltipPlacement=\"top-end\"\n value={config.return_city}\n onChange={this.handleChange}\n maxLength=\"35\"\n suffix={{config.return_city !== null ? 35 - config.return_city.length +`/35` : `35/35`}}\n />\n \n \n \n
\n \n \n \n \n
\n
\n \n \n \n 0 ? '' : 'error'}\n name=\"return_phone\"\n statusMessage={config.return_phone !== null && config.return_phone.length > 0 ? '' : I18n.t('configs.address.phone_error')}\n tooltipPlacement=\"top-end\"\n value={config.return_phone}\n onChange={this.handleChange}\n />\n {I18n.t('configs.address.phone_help')}\n \n \n \n \n 0 ? '' : 'error'}\n name=\"return_email\"\n statusMessage={config.return_email !== null && config.return_email.length > 0 ? '' : I18n.t('configs.address.mail_error')}\n tooltipPlacement=\"top-end\"\n value={config.return_email}\n onChange={this.handleChange}\n maxLength=\"80\"\n suffix={{config.return_email !== null ? 80 - config.return_email.length +`/80` : `80/80`}}\n />\n \n \n \n
\n
\n \n \n \n \n \n );\n }\n}\n\nexport default MyAccount","import React from \"react\";\nimport {\n Card,\n Button,\n Modal,\n MarketingLayout,\n SectionHelper,\n Text,\n Layout,\n Cell,\n CustomModalLayout,\n Box,\n Loader\n} from '@wix/design-system';\n\nimport { DownloadImportSmall } from '@wix/wix-ui-icons-common';\n\nimport { passCsrfToken } from '../../util/helpers'\nimport axios from 'axios'\n\nclass Orders extends React.Component {\n \n state = {\n config: this.props.configData,\n loading: false,\n modalImportConfirm: false,\n };\n\n componentDidMount = () => {\n passCsrfToken(document, axios);\n }\n\n importOrders = () => {\n this.setState({ modalImportConfirm: true });\n }\n\n displayModalImport = () => {\n return (\n this.setState({ modalImportConfirm: false })}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.setState({ modalImportConfirm: false })}\n secondaryButtonOnClick={() => this.setState({ modalImportConfirm: false })}\n primaryButtonOnClick={() => this.processImportOrders()}\n title={I18n.t('configs.modal.synchronized_order_title')}\n content={\n \n {I18n.t('configs.modal.confirm_import')}\n \n }\n >\n \n );\n }\n\n processImportOrders = () => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n this.setState({loading: true});\n this.setState({ modalImportConfirm: false });\n /* We import orders */\n axios({\n method: 'post',\n url: '/bulk-import-orders',\n data: {\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.props.toggleToast( I18n.t('configs.synchronized_order.success_message'), false);\n } else {\n this.props.toggleToast( I18n.t('configs.synchronized_order.error_message'), true);\n }\n this.setState({\n config: { ...this.state.config, ['synchronized_order']: true },\n });\n }).catch(error => {\n this.props.toggleToast( I18n.t('configs.synchronized_order.error_message'), true);\n });\n this.setState({loading: false});\n }\n\n render() {\n const {\n config,\n modalImportConfirm,\n loading\n } = this.state;\n\n return (\n
\n \n \n \n \n \n \n \n \n \n \n \n \n {!config.synchronized_order && \n \n {I18n.t('configs.synchronized_order.text_banner')}\n \n

\n \n
\n }\n {config.synchronized_order && \n \n {I18n.t('configs.synchronized_order.already_text_banner')}\n \n \n }\n
\n
\n
\n
\n {modalImportConfirm ? this.displayModalImport() : null}\n
\n );\n }\n}\n\nexport default Orders\n","import React from \"react\";\nimport {\n Page,\n Card,\n Button,\n Table,\n TableToolbar,\n Search,\n Box,\n TextButton,\n Badge,\n Text,\n Modal,\n Loader,\n Divider,\n Radio,\n SidePanel,\n CustomModalLayout,\n FormField,\n Cell,\n Layout,\n Image,\n TagList,\n Accordion,\n DatePicker,\n Pagination,\n Tooltip,\n IconButton,\n PopoverMenu\n} from '@wix/design-system';\n\nimport { ContentFilterSmall, PrintSmall, DeleteSmall, MoreSmall } from '@wix/wix-ui-icons-common';\n\nimport { passCsrfToken } from '../../util/helpers'\nimport axios from 'axios'\n\nclass ByDeposit extends React.Component {\n\n state = {\n labels: this.props.labels,\n page: this.props.page,\n page_limit: this.props.page_limit,\n count_deposits: this.props.count_deposits,\n total_page: this.props.total_page,\n selectedItems: [],\n searchValue: '',\n queryValue: null,\n date: [],\n date_to: null,\n date_from: null,\n loading: false,\n modalDeleteConfirm: false,\n modalDeleteBulkConfirm: false,\n delete_deposit_id: null,\n printedStatus: [],\n };\n\n componentDidMount = () => {\n passCsrfToken(document, axios);\n this.callRequest('/deposit-filters');\n }\n\n capitalize = (str) => {\n const lower = str.toLowerCase();\n return str.charAt(0).toUpperCase() + lower.slice(1);\n }\n\n handleSortChange = (sortValue) => {\n this.setState({sortValue}, () => {\n this.callRequest('/deposit-filters');\n });\n };\n\n handleRemove = (key) => {\n if (key === 'date_to' || key === 'date_from') {\n this.setState({[key]: null}, () => {\n this.callRequest('/deposit-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n } else {\n this.setState({[key]: []}, () => {\n this.callRequest('/deposit-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n }\n };\n \n handleChangePage = (value) => {\n this.setState({\n page: value,\n }, () => {\n this.callRequest('/deposit-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n }\n\n handleChangeQueryValue = (e) => {\n this.setState({[e.target.name]: e.target.value}, () => {\n this.callRequest('/deposit-filters?page=1&limit='+this.state.page_limit);\n });\n }\n\n handleClear = (type) => {\n if (type === 'date') {\n this.setState({\n [type]: [],\n date_to: null,\n date_from: null,\n }, () => {\n this.callRequest('/deposit-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n } else {\n this.setState({\n [type]: [],\n }, () => {\n this.callRequest('/deposit-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n }\n }\n\n handleClearAll = () => {\n this.setState({loading: true});\n this.setState({\n queryValue: null,\n date: [],\n date_to: null,\n date_from: null,\n printedStatus: [],\n }, () => {\n this.callRequest('/deposit-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n };\n\n handleSelectionChange = (selectedItems) => {\n this.setState({selectedItems});\n };\n\n toggleActive = (field) => {\n this.setState({ [field]: !this.state[field] });\n }\n\n toggleTag = (type, value) => {\n if (type === 'date' || type === 'printedStatus') {\n if (value != 'custom') {\n this.setState({ [type]: [value] }, () => \n this.callRequest('/deposit-filters?page='+this.state.page+'&limit='+this.state.page_limit)\n );\n } else {\n this.setState({ date_to: null });\n this.setState({ date_from: null });\n this.setState({ [type]: [value] });\n }\n } else {\n if (this.state[type].some((tag) => tag === value)) {\n this.setState({\n [type]: this.state[type].filter(item => item !== value)\n }, () => \n this.callRequest('/deposit-filters?page='+this.state.page+'&limit='+this.state.page_limit) \n );\n } else {\n this.setState({\n [type]: [...this.state[type], value]\n }, () => \n this.callRequest('/deposit-filters?page='+this.state.page+'&limit='+this.state.page_limit) \n );\n }\n }\n };\n\n handleChange = (field) => {\n const includeFilters = [\n 'queryValue',\n 'date',\n 'date_from',\n 'date_to'\n ];\n\n return (value) => {\n this.setState({ [field]: value }, () => {\n if (includeFilters.indexOf(field) !== -1) { \n if (Array.isArray(value)) {\n if (value[0] == \"custom\") {\n return true;\n }\n }\n this.callRequest('/deposit-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n };\n });\n };\n };\n\n handleOpenSheet = (deposit_id, deposit_number) => {\n this.getOrderRequest(deposit_id, deposit_number);\n };\n\n handleCloseSheet = () => {\n this.setState({sheetActive: false});\n this.setState({filterSide: false});\n this.props.handleSheetDepositChange(false);\n };\n\n handleToggleSheet = (deposit_id, deposit_number) => {\n this.props.sheetActive ? this.handleCloseSheet() : this.handleOpenSheet(deposit_id, deposit_number);\n }\n\n disambiguateLabel = (key, value) => {\n const options = {\n year: 'numeric', month: 'numeric', day: 'numeric',\n hour: 'numeric', minute: 'numeric', second: 'numeric',\n hour12: false,\n timeZone: this.props.shop.time_zone\n };\n \n switch (key) {\n case 'printedStatus':\n switch (value[0]) {\n case true:\n return `${I18n.t('deposit_list.filters.printed')}`;\n case false:\n return `${I18n.t('deposit_list.filters.unprint')}`;\n default:\n return null;\n }\n case 'date':\n switch (value[0]) {\n case 'past_day':\n return `${I18n.t('order_list.filters.date_today')}`;\n case 'past_week':\n return `${I18n.t('order_list.filters.date_past_week')}`;\n case 'past_month':\n return `${I18n.t('order_list.filters.date_past_month')}`;\n case 'past_quarter':\n return `${I18n.t('order_list.filters.date_past_quarter')}`;\n case 'past_year':\n return `${I18n.t('order_list.filters.date_past_year')}`;\n default:\n return null;\n }\n case 'date_from':\n return `${I18n.t('order_list.filters.date_from')} ${new Intl.DateTimeFormat('default', options).format(new Date(value))}`;\n case 'date_to':\n return `${I18n.t('order_list.filters.date_to')} ${new Intl.DateTimeFormat('default', options).format(new Date(value))}`;\n default:\n return value;\n }\n };\n \n /* Get order detail */\n getOrderRequest = (deposit_id, deposit_number) => {\n this.setState({loading: true});\n axios({\n method: 'post',\n url: '/get-order-by-deposit',\n data: {\n deposit_id: deposit_id,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n var deposit = {};\n deposit.number = deposit_number;\n deposit.labels= result.data;\n this.props.handleDepositChange(deposit);\n this.setState({loading: false});\n this.props.handleSheetDepositChange(true);\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n });\n }\n\n /* Filter order */\n callRequest = (url = '/deposit-filters') => {\n $('html, body').animate({scrollTop: 0}, 10);\n this.setState({loading: true});\n axios.get(url, {\n params: {\n queryValue: this.state.queryValue,\n date: this.state.date,\n date_from: this.state.date_from,\n date_to: this.state.date_to,\n printedStatus: this.state.printedStatus,\n instance_id: this.props.shop.instance_id\n },\n }).then(result => {\n this.setState({labels: result.data.labels});\n this.setState({page: result.data.page});\n this.setState({page_limit: result.data.page_limit});\n this.setState({total_page: result.data.total_page});\n this.setState({count_deposits: result.data.count_deposits});\n this.setState({loading: false});\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n });\n }\n\n printLabelOfDeposit = (id) => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n\n if (this.props.config.use_thermal_printer == true) {\n /* We retrieve label in deposit */\n axios({\n method: 'post',\n url: '/get_labels_by_deposit',\n data: {\n deposit_id: id,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n if (result.data.success == true) {\n items = result.data.label_ids;\n items.map((item, index) => {\n setTimeout(() => { \n axios({\n method: 'get',\n url: '/deposit-print-bulk-label/'+item+'/'+this.props.shop.instance_id\n }).then(result => {\n if (result.data.printer_request) {\n $.get(result.data.printer_request);\n } else {\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n }\n }).catch(error => {\n console.log(error);\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n });\n }, 1000*index);\n });\n } else {\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n }\n }).catch(error => {\n console.log(error);\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n });\n } else {\n window.open('/print-labels-by-deposit/'+id+'/'+this.props.shop.instance_id, '_blank');\n }\n }\n\n printDeposit = (id) => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n axios({\n method: 'get',\n url: '/colissimo-label/'+id+'/'+this.props.shop.instance_id\n }).then(result => {\n if (result.data.printer_request) {\n $.get(result.data.printer_request);\n } else {\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n }\n }).catch(error => {\n console.log(error);\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n });\n };\n\n printBulkDeposit = () => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n const items = this.state.selectedItems;\n window.open('/deposit-bulk-print/'+items+'/'+this.props.shop.instance_id,'_blank');\n this.setState({loading: false});\n };\n\n reinitVars = () => {\n this.setState({modalDeleteConfirm: false});\n this.setState({modalDeleteBulkConfirm: false});\n this.setState({delete_deposit_id: null});\n }\n\n deleteDepositConfirm = (label_id) => {\n this.setState({delete_deposit_id: label_id});\n this.setState({modalDeleteConfirm: true});\n }\n\n deleteBulkDepositConfirm = () => {\n this.setState({modalDeleteBulkConfirm: true});\n }\n\n deleteDepositBulk = () => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n this.setState({loading: true});\n this.setState({modalDeleteBulkConfirm: false});\n axios({\n method: 'post',\n url: '/delete-deposit-bulk',\n data: {\n deposit_ids: this.state.selectedItems,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.props.toggleToast(I18n.t('deposit_list.success_delete_deposit'), false);\n } else {\n this.props.toggleToast(I18n.t('deposit_list.error_delete_deposit'), true);\n }\n this.setState({selectedItems: []});\n this.callRequest('/deposit-filters');\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('deposit_list.error_delete_deposit'), true);\n });\n }\n\n actionDeleteDeposit = (deposit_id) => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n this.setState({loading: true});\n this.setState({modalDeleteConfirm: false});\n axios({\n method: 'post',\n url: '/delete-deposit-by-id',\n data: {\n deposit_id: deposit_id,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.props.toggleToast(I18n.t('deposit_list.success_delete_deposit'), false);\n } else {\n this.props.toggleToast(I18n.t('deposit_list.error_delete_deposit'), true);\n }\n this.setState({selectedItems: []});\n this.callRequest('/deposit-filters');\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('deposit_list.error_delete_deposit'), true);\n });\n }\n\n displayModalDeleteDeposit = () => {\n return (\n this.reinitVars()}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.reinitVars()}\n secondaryButtonOnClick={() => this.reinitVars()}\n primaryButtonOnClick={() => this.actionDeleteDeposit(this.state.delete_deposit_id)}\n title={I18n.t('deposit_list.modal.delete_deposit_title')}\n content={\n \n {I18n.t('deposit_list.modal.delete_deposit_message')}\n \n }\n >\n \n );\n }\n\n displayModalDeleteBulkDeposit = () => {\n return (\n this.reinitVars()}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.reinitVars()}\n secondaryButtonOnClick={() => this.reinitVars()}\n primaryButtonOnClick={() => this.deleteDepositBulk()}\n title={I18n.t('deposit_list.modal.delete_deposit_bulk_title')}\n content={\n \n {I18n.t('deposit_list.modal.delete_deposit_bulk_message')}\n \n }\n >\n \n );\n }\n\n renderColumnLabelNumber = (row) => {\n const {id, number, created_at} = row;\n\n const options = {\n year: 'numeric', month: 'numeric', day: 'numeric',\n hour: 'numeric', minute: 'numeric', second: 'numeric',\n hour12: false,\n timeZone: this.props.shop.time_zone\n };\n\n return (\n
\n \n this.handleToggleSheet(id, number)}>#{number}\n \n \n {new Intl.DateTimeFormat('default', options).format(new Date(created_at))}\n \n
\n );\n }\n\n renderColumnOrderNumber = (row) => {\n const {nb_parcel} = row;\n\n return (\n
\n \n {nb_parcel}\n \n \n {I18n.t('deposit_list.number_of_label')}\n \n
\n );\n }\n\n renderColumnPrint = (row) => {\n const {print_at} = row;\n\n return (\n
\n \n {print_at !== null && \n {I18n.t('deposit_list.printed')}\n }\n {print_at === null && \n {I18n.t('deposit_list.unprinted')}\n }\n \n
\n );\n }\n\n renderColumnActions = (row) => {\n const {id} = row;\n\n return (\n
\n }\n as=\"a\" href={`/deposit-print/${id}/${this.props.shop.instance_id}`} target=\"_blank\"\n >\n {I18n.t('order_list.print')}\n \n  \n \n \n \n \n \n }\n >\n }\n onClick={(e) => this.printLabelOfDeposit(id)}\n />\n }\n onClick={(e) => this.deleteDepositConfirm(id)}\n />\n \n
\n );\n }\n\n render() {\n const {\n labels,\n loading,\n filterSide,\n modalDeleteConfirm,\n modalDeleteBulkConfirm,\n queryValue\n } = this.state;\n\n const columns = [\n {\n title: I18n.t('deposit_list.deposit_number'),\n render: (row) => this.renderColumnLabelNumber(row),\n width: 100\n },\n {\n title: I18n.t('deposit_list.order_number'),\n render: (row) => this.renderColumnOrderNumber(row),\n width: 260\n },\n {\n title: I18n.t('order_list.print_status_label'),\n render: (row) => this.renderColumnPrint(row),\n width: 80,\n align: 'center'\n },\n {\n title: I18n.t('order_list.actions'),\n render: (row) => this.renderColumnActions(row),\n width: 220,\n align: 'center'\n }\n ];\n\n const includeFilters = [\n 'queryValue',\n 'date',\n 'date_from',\n 'date_to',\n 'printedStatus'\n ];\n\n const PrintedFilter = [\n {\n label: I18n.t('deposit_list.filters.printed'),\n value: true,\n },\n {\n label: I18n.t('deposit_list.filters.unprint'),\n value: false,\n },\n ];\n\n const appliedFilters = Object.keys(this.state)\n .filter((key) => !isEmpty(this.state[key]) && includeFilters.indexOf(key) !== -1)\n .map((key) => {\n return {\n id: key,\n value: this.state[key],\n type: key,\n children: this.disambiguateLabel(key, this.state[key]),\n };\n });\n\n const tagExists = ({ type, value }) =>\n this.state[type].some((tag) => tag === value)\n\n\n const dateFilter = [\n {label: I18n.t('order_list.filters.date_today'), value: 'past_day'},\n {label: I18n.t('order_list.filters.date_past_week'), value: 'past_week'},\n {label: I18n.t('order_list.filters.date_past_month'), value: 'past_month'},\n {label: I18n.t('order_list.filters.date_past_quarter'), value: 'past_quarter'},\n {label: I18n.t('order_list.filters.date_past_year'), value: 'past_year'},\n {label: I18n.t('order_list.filters.date_custom'), value: 'custom'},\n ];\n\n const paginationMarkup =\n this.props.total_page > 1 ? (\n this.handleChangePage(e.page)}\n />\n ) : null;\n\n const emptyStateMarkup = !labels.length ? (\n \n \n
\n {I18n.t('emptystate.deposit.title')}\n {I18n.t('emptystate.deposit.text1')}\n }\n image={\n \n }\n >\n \n
\n ) : undefined;\n\n return (\n
\n \n \n \n \n \n \n \n \n {this.state.selectedItems.length > 0 &&\n \n \n \n \n \n {this.state.selectedItems.length} {I18n.t('order_list.resources_items_orders_title')} {I18n.t('order_list.selected')}\n \n {I18n.t('order_list.on_total')} {this.state.labels.length}\n \n \n \n \n \n \n \n \n \n this.printBulkDeposit()}\n prefixIcon={}\n >\n {I18n.t('deposit_list.download_bulk_deposit')}\n \n \n \n this.deleteBulkDepositConfirm()}\n prefixIcon={}\n >\n {I18n.t('deposit_list.bulk_delete_deposit_note')}\n \n \n \n }\n {this.state.selectedItems.length <= 0 &&\n \n \n {this.state.labels.length}{I18n.t('order_list.resources_items_orders_title')}\n \n \n }\n \n \n }\n onClick={(e) => this.toggleActive(\"filterSide\")}\n >\n {I18n.t('order_list.filters.filters')} (2)\n \n \n \n \n \n \n \n \n \n \n \n {I18n.t('order_list.filters.filter_by')}\n this.handleClearAll(),\n }}\n onTagRemove={(e) => this.handleRemove(e)}\n />\n \n \n \n \n \n \n {emptyStateMarkup}\n
\n
\n \n \n {paginationMarkup}\n \n \n \n \n this.handleCloseSheet()}>\n \n \n \n {PrintedFilter.map((value, key) => (\n this.toggleTag('printedStatus', value.value)}\n label={value.label}\n />\n ))}\n this.handleClear('printedStatus')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n {\n title: I18n.t('order_list.filters.date'),\n children: (\n \n {dateFilter.map((value, key) => (\n this.toggleTag('date', value.value)}\n label={value.label}\n />\n ))}\n {this.state.date[0] == 'custom' && \n \n \n \n \n \n \n \n \n }\n this.handleClear('date')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n ]}\n />\n \n \n \n {appliedFilters.length} {I18n.t('order_list.filters.filters_applied')}\n this.handleClearAll()}>{I18n.t('order_list.filters.clear_all')}\n \n \n \n \n
\n \n {modalDeleteConfirm ? this.displayModalDeleteDeposit() : null}\n {modalDeleteBulkConfirm ? this.displayModalDeleteBulkDeposit() : null}\n \n );\n }\n}\n\nfunction isEmpty(value) {\n if (Array.isArray(value)) {\n if (value[0] == \"custom\") {\n return true;\n }\n return value.length === 0;\n } else {\n /* Add specific Hack for custom value */\n return value === '' || value == null;\n }\n}\nexport default ByDeposit","import React from \"react\";\nimport {\n Page,\n Card,\n Button,\n Table,\n TableToolbar,\n Search,\n Box,\n TextButton,\n Badge,\n Text,\n Modal,\n Loader,\n Tooltip,\n Divider,\n Radio,\n SidePanel,\n CustomModalLayout,\n FormField,\n Cell,\n Layout,\n Checkbox,\n PopoverMenu,\n Image,\n TagList,\n Accordion,\n DatePicker,\n Pagination,\n IconButton\n} from '@wix/design-system';\n\nimport { ContentFilterSmall, PrintSmall, MapSmall, MoreSmall, DeleteSmall } from '@wix/wix-ui-icons-common';\n\nimport { passCsrfToken } from '../../util/helpers'\nimport axios from 'axios'\n\nclass ByLabelWithDeposit extends React.Component {\n\n state = {\n labels: this.props.labels,\n page: this.props.page,\n page_limit: this.props.page_limit,\n total_page: this.props.total_page,\n count_labels: this.props.count_labels,\n selectedItems: [],\n searchValue: '',\n countries: [],\n services: [],\n queryValue: null,\n date: [],\n date_to: null,\n date_from: null,\n paymentStatus: [],\n printedStatus: [],\n loading: false,\n modalDeleteConfirm: false,\n modalDeleteBulkConfirm: false,\n delete_label_id: null,\n };\n\n componentDidMount = () => {\n passCsrfToken(document, axios);\n this.callRequest('/label-filters-with-note');\n }\n\n capitalize = (str) => {\n const lower = str.toLowerCase();\n return str.charAt(0).toUpperCase() + lower.slice(1);\n }\n\n handleSortChange = (sortValue) => {\n this.setState({sortValue}, () => {\n this.callRequest('/label-filters-with-note');\n });\n };\n\n handleRemove = (key) => {\n if (key === 'date_to' || key === 'date_from') {\n this.setState({[key]: null}, () => {\n this.callRequest('/label-filters-with-note?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n } else {\n this.setState({[key]: []}, () => {\n this.callRequest('/label-filters-with-note?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n }\n };\n \n handleChangePage = (value) => {\n this.setState({\n page: value,\n }, () => {\n this.callRequest('/label-filters-with-note?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n }\n\n handleClear = (type) => {\n if (type === 'date') {\n this.setState({\n [type]: [],\n date_to: null,\n date_from: null,\n }, () => {\n this.callRequest('/label-filters-with-note?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n } else {\n this.setState({\n [type]: [],\n }, () => {\n this.callRequest('/label-filters-with-note?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n }\n }\n\n handleClearAll = () => {\n this.setState({loading: true});\n this.setState({\n paymentStatus: [],\n printedStatus: [],\n queryValue: null,\n date: [],\n date_to: null,\n date_from: null,\n countries: [],\n services: [],\n }, () => {\n this.callRequest('/label-filters-with-note?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n };\n\n handleSelectionChange = (selectedItems) => {\n this.setState({selectedItems});\n };\n\n toggleActive = (field) => {\n this.setState({ [field]: !this.state[field] });\n }\n\n toggleTag = (type, value) => {\n if (type === 'date' || type === 'printedStatus') {\n if (value != 'custom') {\n this.setState({ [type]: [value] }, () => \n this.callRequest('/label-filters-with-note?page='+this.state.page+'&limit='+this.state.page_limit)\n );\n } else {\n this.setState({ date_to: null });\n this.setState({ date_from: null });\n this.setState({ [type]: [value] });\n }\n } else {\n if (this.state[type].some((tag) => tag === value)) {\n this.setState({\n [type]: this.state[type].filter(item => item !== value)\n }, () => \n this.callRequest('/label-filters-with-note?page='+this.state.page+'&limit='+this.state.page_limit) \n );\n } else {\n this.setState({\n [type]: [...this.state[type], value]\n }, () => \n this.callRequest('/label-filters-with-note?page='+this.state.page+'&limit='+this.state.page_limit) \n );\n }\n }\n };\n\n handleChange = (field) => {\n const includeFilters = [\n 'queryValue',\n 'date',\n 'date_from',\n 'date_to'\n ];\n\n return (value) => {\n this.setState({ [field]: value }, () => {\n if (includeFilters.indexOf(field) !== -1) { \n if (Array.isArray(value)) {\n if (value[0] == \"custom\") {\n return true;\n }\n }\n this.callRequest('/label-filters-with-note?page='+this.state.page+'&limit='+this.state.page_limit);\n };\n });\n };\n };\n\n handleChangeQueryValue = (e) => {\n this.setState({[e.target.name]: e.target.value}, () => {\n this.callRequest('/label-filters-with-note?page=1&limit='+this.state.page_limit);\n });\n }\n\n handleOpenSheet = (label_id) => {\n this.getOrderRequest(label_id);\n };\n\n handleCloseSheet = () => {\n this.setState({sheetActive: false});\n this.setState({filterSide: false});\n this.props.handleSheetChange(false);\n };\n\n handleToggleSheet = (label_id) => {\n this.props.sheetActive ? this.handleCloseSheet() : this.handleOpenSheet(label_id);\n }\n\n disambiguateLabel = (key, value) => {\n const options = {\n year: 'numeric', month: 'numeric', day: 'numeric',\n hour: 'numeric', minute: 'numeric', second: 'numeric',\n hour12: false,\n timeZone: this.props.shop.time_zone\n };\n \n switch (key) {\n case 'paymentStatus':\n return value.map((val) => `${I18n.t(val)}`).join(', ');\n case 'printedStatus':\n switch (value[0]) {\n case true:\n return `${I18n.t('order_list.filters.printed')}`;\n case false:\n return `${I18n.t('order_list.filters.unprint')}`;\n default:\n return null;\n }\n case 'date':\n switch (value[0]) {\n case 'past_day':\n return `${I18n.t('order_list.filters.date_today')}`;\n case 'past_week':\n return `${I18n.t('order_list.filters.date_past_week')}`;\n case 'past_month':\n return `${I18n.t('order_list.filters.date_past_month')}`;\n case 'past_quarter':\n return `${I18n.t('order_list.filters.date_past_quarter')}`;\n case 'past_year':\n return `${I18n.t('order_list.filters.date_past_year')}`;\n default:\n return null;\n }\n case 'date_from':\n return `${I18n.t('order_list.filters.date_from')} ${new Intl.DateTimeFormat('default', options).format(new Date(value))}`;\n case 'date_to':\n return `${I18n.t('order_list.filters.date_to')} ${new Intl.DateTimeFormat('default', options).format(new Date(value))}`;\n case 'countries':\n return value.map((val) => `${val}`).join(', ');\n case 'services':\n return value.map((val) => `${val}`).join(', ');\n default:\n return value;\n }\n };\n \n /* Get order detail */\n getOrderRequest = (label_id) => {\n this.setState({loading: true});\n axios({\n method: 'post',\n url: '/get-order-by-label',\n data: {\n label_id: label_id,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.props.handleOrderChange(result.data);\n this.setState({loading: false});\n this.props.handleSheetChange(true);\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n });\n }\n\n /* Filter order */\n callRequest = (url = '/label-filters-with-note') => {\n $('html, body').animate({scrollTop: 0}, 10);\n this.setState({loading: true});\n axios.get(url, {\n params: {\n queryValue: this.state.queryValue,\n date: this.state.date,\n date_from: this.state.date_from,\n date_to: this.state.date_to,\n services: this.state.services,\n printedStatus: this.state.printedStatus,\n countries: this.state.countries,\n paymentStatus: this.state.paymentStatus,\n instance_id: this.props.shop.instance_id\n },\n }).then(result => {\n this.setState({labels: result.data.labels});\n this.setState({page: result.data.page});\n this.setState({page_limit: result.data.page_limit});\n this.setState({total_page: result.data.total_page});\n this.setState({count_labels: result.data.count_labels});\n this.setState({loading: false});\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n });\n }\n\n generateBulkDeposit = () => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n /* We generate label in mass */\n this.setState({loading: true});\n axios({\n method: 'post',\n url: '/generate-deposit',\n data: {\n label_ids: this.state.selectedItems,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.props.toggleToast(result.data.response_ws.message, false);\n } else {\n this.props.toggleToast(result.data.response_ws.message, true);\n }\n this.setState({selectedItems: []});\n this.callRequest('/label-filters-with-note?page='+this.state.page+'&limit='+this.state.page_limit);\n }).catch(error => {\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_generate_label'), true);\n });\n };\n\n printLabel = (id) => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n axios({\n method: 'get',\n url: '/colissimo-label/'+id+'/'+this.props.shop.instance_id\n }).then(result => {\n if (result.data.printer_request) {\n $.get(result.data.printer_request);\n } else {\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n }\n }).catch(error => {\n console.log(error);\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n });\n };\n\n printBulkLabel = () => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n const items = (this.state.sortValue == 'DESC' ? this.state.selectedItems.sort().reverse() : this.state.selectedItems.sort());\n\n if (this.props.config.use_thermal_printer == true) {\n items.map((item, index) => {\n setTimeout(() => { \n axios({\n method: 'get',\n url: '/deposit-print-bulk-label/'+item+'/'+this.props.shop.instance_id\n }).then(result => {\n if (result.data.printer_request) {\n $.get(result.data.printer_request);\n } else {\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n }\n }).catch(error => {\n console.log(error);\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n });\n }, 1000*index);\n });\n } else {\n window.open('/deposit-print-bulk-label/'+items+'/'+this.props.shop.instance_id, '_blank');\n }\n };\n\n reinitVars = () => {\n this.setState({modalDeleteConfirm: false});\n this.setState({modalDeleteBulkConfirm: false});\n this.setState({delete_label_id: null});\n }\n\n deleteLabelToDepositConfirm = (label_id) => {\n this.setState({delete_label_id: label_id});\n this.setState({modalDeleteConfirm: true});\n }\n\n deleteBulkLabelToDepositConfirm = () => {\n this.setState({modalDeleteBulkConfirm: true});\n }\n\n deleteLabelDepositBulk = () => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n this.setState({loading: true});\n this.setState({modalDeleteBulkConfirm: false});\n axios({\n method: 'post',\n url: '/delete-label-deposit',\n data: {\n label_ids: this.state.selectedItems,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.props.toggleToast(result.data.response_ws.message, false);\n } else {\n this.props.toggleToast(result.data.response_ws.message, true);\n }\n this.setState({selectedItems: []});\n this.callRequest('/label-filters-with-note');\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('deposit_list.error_delete_label'), true);\n });\n }\n\n actionDeleteLabelToDeposit = (label_id) => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n this.setState({loading: true});\n this.setState({modalDeleteConfirm: false});\n axios({\n method: 'post',\n url: '/delete-label-by-id-to-deposit',\n data: {\n label_id: label_id,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.props.toggleToast(I18n.t('deposit_list.success_delete_label'), false);\n } else {\n this.props.toggleToast(I18n.t('deposit_list.error_delete_label'), true);\n }\n this.setState({selectedItems: []});\n this.callRequest('/label-filters-with-note');\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('deposit_list.error_delete_label'), true);\n });\n }\n\n displayModalDeleteLabelToDeposit = () => {\n return (\n this.reinitVars()}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.reinitVars()}\n secondaryButtonOnClick={() => this.reinitVars()}\n primaryButtonOnClick={() => this.actionDeleteLabelToDeposit(this.state.delete_label_id)}\n title={I18n.t('deposit_list.modal.delete_label_to_desposit_tooltip')}\n content={\n \n {I18n.t('deposit_list.modal.delete_to_deposit_message')}\n \n }\n >\n \n );\n }\n\n displayModalDeleteBulkLabelToDeposit = () => {\n return (\n this.reinitVars()}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.reinitVars()}\n secondaryButtonOnClick={() => this.reinitVars()}\n primaryButtonOnClick={() => this.deleteLabelDepositBulk()}\n title={I18n.t('deposit_list.modal.delete_label_to_deposit_bulk_title')}\n content={\n \n {I18n.t('deposit_list.modal.delete_to_deposit_bulk_message')}\n \n }\n >\n \n );\n }\n\n renderColumnLabelNumber = (row) => {\n const {id, shipping_number, payment_status, created_at, commercial_name, country_code, province_code} = row;\n\n const options = {\n year: 'numeric', month: 'numeric', day: 'numeric',\n hour: 'numeric', minute: 'numeric', second: 'numeric',\n hour12: false,\n timeZone: this.props.shop.time_zone\n };\n\n const cn23 = ((this.props.config !== null && this.props.config.sender_iso_country == 'FR' && this.props.iso_eu_countries_no_cn23.indexOf(country_code) === -1 && this.props.iso_fr.indexOf(country_code) === -1) || (this.props.config !== null && this.props.config.sender_iso_country != 'FR' && this.props.iso_dom_countries_no_cn23.indexOf(country_code) === -1) || (this.props.config !== null && this.props.config.sender_iso_country == 'FR' && country_code == 'ES' && this.props.province_code_cn23.indexOf(province_code) > -1 )) ? (\n \n  {I18n.t('deposit_list.cn23_alert')}\n ) : null;\n\n return (\n
\n \n this.handleToggleSheet(id)}>{shipping_number}\n {payment_status == 'PARTIALLY_REFUNDED' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'PAID' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'FULLY_REFUNDED' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'PENDING' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'NOT_PAID' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'PARTIALLY_PAID' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'UNSPECIFIED_PAYMENT_STATUS' && \n {I18n.t(`${payment_status}`)}\n }\n \n \n {new Intl.DateTimeFormat('default', options).format(new Date(created_at))}\n \n \n {commercial_name !== null && commercial_name !== '' ? commercial_name : I18n.t('order_list.no_colissimo_order')}\n \n {cn23}\n
\n );\n }\n\n renderColumnOrderNumber = (row) => {\n const {id, wix_order_number, wix_order_created_at} = row;\n\n const options = {\n year: 'numeric', month: 'numeric', day: 'numeric',\n hour: 'numeric', minute: 'numeric', second: 'numeric',\n hour12: false,\n timeZone: this.props.shop.time_zone\n };\n\n return (\n
\n \n this.handleToggleSheet(id)}>#{wix_order_number}\n \n \n {new Intl.DateTimeFormat('default', options).format(new Date(wix_order_created_at))}\n \n
\n );\n }\n\n renderColumnCustomer = (row) => {\n const {full_name, email} = row;\n\n return (\n
\n \n {full_name}\n \n \n {email}\n \n
\n );\n }\n\n renderColumnFulfillment = (row) => {\n const {fulfillment_status, country_code, country} = row;\n\n return (\n
\n \n {fulfillment_status == 'FULFILLED' && \n {I18n.t(`${fulfillment_status}`)}\n }\n {fulfillment_status == 'NOT_FULFILLED' && \n {I18n.t(`${fulfillment_status}`)}\n }\n {fulfillment_status == 'CANCELED' && \n {I18n.t(`${fulfillment_status}`)}\n }\n {fulfillment_status == 'PARTIALLY_FULFILLED' && \n {I18n.t(`${fulfillment_status}`)}\n }\n \n \n {(typeof country != 'undefined' && country != null) ? ({this.capitalize(country)}) : ('')}\n \n {(typeof country_code != 'undefined' && country_code != null) ? (
) : (' ')}\n
\n );\n }\n\n renderColumnPrint = (row) => {\n const {print_at} = row;\n\n return (\n
\n \n {print_at !== null && \n {I18n.t('deposit_list.printed')}\n }\n {print_at === null && \n {I18n.t('deposit_list.unprinted')}\n }\n \n
\n );\n }\n\n renderColumnActions = (row) => {\n const {id} = row;\n\n return (\n
\n {( this.props.config.use_thermal_printer == true) && \n }\n onClick={(e) => this.printLabel(id)}\n >\n {I18n.t('order_list.print')}\n \n }\n {( this.props.config.use_thermal_printer == false) && \n }\n as=\"a\" href={`/colissimo-label/${id}/${this.props.shop.instance_id}`} target=\"_blank\"\n >\n {I18n.t('order_list.print')}\n \n } \n \n \n \n \n \n }\n >\n }\n onClick={(e) => this.deleteLabelToDepositConfirm(id)}\n />\n \n
\n );\n }\n\n render() {\n const {\n labels,\n loading,\n filterSide,\n modalDeleteConfirm,\n modalDeleteBulkConfirm,\n queryValue\n } = this.state;\n\n const columns = [\n {\n title: I18n.t('order_list.label_number'),\n render: (row) => this.renderColumnLabelNumber(row),\n width: 260\n },\n {\n title: I18n.t('order_list.customer'),\n render: (row) => this.renderColumnCustomer(row),\n width: 180\n },\n {\n title: I18n.t('order_list.fulfillmment'),\n render: (row) => this.renderColumnFulfillment(row),\n width: 100,\n align: 'center'\n },\n {\n title: I18n.t('order_list.print_status_label'),\n render: (row) => this.renderColumnPrint(row),\n width: 80,\n align: 'center'\n },\n {\n title: I18n.t('order_list.order_number'),\n render: (row) => this.renderColumnOrderNumber(row),\n width: 100\n },\n {\n title: I18n.t('order_list.actions'),\n render: (row) => this.renderColumnActions(row),\n width: 220,\n align: 'center'\n }\n ];\n\n const includeFilters = [\n 'queryValue',\n 'paymentStatus',\n 'printedStatus',\n 'date',\n 'date_from',\n 'date_to',\n 'countries',\n 'services'\n ];\n\n const appliedFilters = Object.keys(this.state)\n .filter((key) => !isEmpty(this.state[key]) && includeFilters.indexOf(key) !== -1)\n .map((key) => {\n return {\n id: key,\n value: this.state[key],\n type: key,\n children: this.disambiguateLabel(key, this.state[key]),\n };\n });\n\n const tagExists = ({ type, value }) =>\n this.state[type].some((tag) => tag === value)\n\n const PrintedFilter = [\n {\n label: I18n.t('order_list.filters.printed'),\n value: true,\n },\n {\n label: I18n.t('order_list.filters.unprint'),\n value: false,\n },\n ];\n\n const dateFilter = [\n {label: I18n.t('order_list.filters.date_today'), value: 'past_day'},\n {label: I18n.t('order_list.filters.date_past_week'), value: 'past_week'},\n {label: I18n.t('order_list.filters.date_past_month'), value: 'past_month'},\n {label: I18n.t('order_list.filters.date_past_quarter'), value: 'past_quarter'},\n {label: I18n.t('order_list.filters.date_past_year'), value: 'past_year'},\n {label: I18n.t('order_list.filters.date_custom'), value: 'custom'},\n ];\n\n const paginationMarkup =\n this.state.total_page > 1 ? (\n this.handleChangePage(e.page)}\n />\n ) : null;\n\n const emptyStateMarkup = !labels.length ? (\n \n \n
\n {I18n.t('emptystate.depositwith.title')}\n {I18n.t('emptystate.depositwith.text1')}\n {I18n.t('emptystate.depositwitht.text2')}\n }\n image={\n \n }\n >\n \n
\n ) : undefined;\n\n return (\n
\n \n \n \n \n \n \n \n \n {this.state.selectedItems.length > 0 &&\n \n \n \n \n \n {this.state.selectedItems.length} {I18n.t('order_list.resources_items_orders_title')} {I18n.t('order_list.selected')}\n \n {I18n.t('order_list.on_total')} {this.state.labels.length}\n \n \n \n \n \n \n \n \n \n this.printBulkLabel()}\n prefixIcon={}\n >\n {I18n.t('order_list.bulk_print_label')}\n \n \n \n this.deleteBulkLabelToDepositConfirm()}\n prefixIcon={}\n >\n {I18n.t('deposit_list.bulk_delete_deposit')}\n \n \n \n }\n {this.state.selectedItems.length <= 0 &&\n \n \n {this.state.labels.length}{I18n.t('order_list.resources_items_orders_title')}\n \n \n }\n \n \n }\n onClick={(e) => this.toggleActive(\"filterSide\")}\n >\n {I18n.t('order_list.filters.filters')} (5)\n \n \n \n \n \n \n \n \n \n \n \n {I18n.t('order_list.filters.filter_by')}\n this.handleClearAll(),\n }}\n onTagRemove={(e) => this.handleRemove(e)}\n />\n \n \n \n \n \n \n {emptyStateMarkup}\n
\n
\n \n \n {paginationMarkup}\n \n \n \n \n this.handleCloseSheet()}>\n \n \n \n {this.props.payment_status.map((value, key) => (\n this.toggleTag('paymentStatus', value)}\n >\n {I18n.t(value)}\n \n ))}\n this.handleClear('paymentStatus')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n {\n title: I18n.t('order_list.filters.printedStatus'),\n children: (\n \n {PrintedFilter.map((value, key) => (\n this.toggleTag('printedStatus', value.value)}\n label={value.label}\n />\n ))}\n this.handleClear('printedStatus')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n {\n title: I18n.t('order_list.filters.countries'),\n children: (\n \n {this.props.countries.map((value, key) => (\n this.toggleTag('countries', value)}\n >\n {this.capitalize(value)}\n \n ))}\n this.handleClear('countries')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n {\n title: I18n.t('order_list.filters.services'),\n children: (\n \n {this.props.services.map((value, key) => (\n this.toggleTag('services', value)}\n >\n {value}\n \n ))}\n this.handleClear('services')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n {\n title: I18n.t('order_list.filters.date'),\n children: (\n \n {dateFilter.map((value, key) => (\n this.toggleTag('date', value.value)}\n label={value.label}\n />\n ))}\n {this.state.date[0] == 'custom' && \n \n \n \n \n \n \n \n \n }\n this.handleClear('date')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n ]}\n />\n \n \n \n {appliedFilters.length} {I18n.t('order_list.filters.filters_applied')}\n this.handleClearAll()}>{I18n.t('order_list.filters.clear_all')}\n \n \n \n \n
\n \n {modalDeleteConfirm ? this.displayModalDeleteLabelToDeposit() : null}\n {modalDeleteBulkConfirm ? this.displayModalDeleteBulkLabelToDeposit() : null}\n \n );\n }\n}\n\nfunction isEmpty(value) {\n if (Array.isArray(value)) {\n if (value[0] == \"custom\") {\n return true;\n }\n return value.length === 0;\n } else {\n /* Add specific Hack for custom value */\n return value === '' || value == null;\n }\n}\nexport default ByLabelWithDeposit","import React from \"react\";\nimport {\n Page,\n Card,\n Button,\n Table,\n TableToolbar,\n Search,\n Box,\n TextButton,\n Badge,\n Text,\n Modal,\n Loader,\n Divider,\n Radio,\n SidePanel,\n CustomModalLayout,\n FormField,\n Cell,\n Layout,\n Checkbox,\n Image,\n TagList,\n Accordion,\n DatePicker,\n Pagination\n} from '@wix/design-system';\n\nimport { ContentFilterSmall, ShippingSmall, PrintSmall, MapSmall, DeleteSmall } from '@wix/wix-ui-icons-common';\n\nimport { passCsrfToken } from '../../util/helpers'\nimport axios from 'axios'\n\nclass ByLabelWithoutDeposit extends React.Component {\n\n state = {\n labels: this.props.labels,\n page: this.props.page,\n page_limit: this.props.page_limit,\n total_page: this.props.total_page,\n count_labels: this.props.count_labels,\n selectedItems: [],\n searchValue: '',\n countries: [],\n services: [],\n queryValue: null,\n date: [],\n date_to: null,\n date_from: null,\n paymentStatus: [],\n printedStatus: [],\n loading: false,\n modalDeleteConfirm: false,\n delete_label_id: null,\n };\n\n componentDidMount = () => {\n passCsrfToken(document, axios);\n this.callRequest('/label-filters');\n }\n\n capitalize = (str) => {\n const lower = str.toLowerCase();\n return str.charAt(0).toUpperCase() + lower.slice(1);\n }\n\n handleSortChange = (sortValue) => {\n this.setState({sortValue}, () => {\n this.callRequest('/label-filters');\n });\n };\n\n handleRemove = (key) => {\n if (key === 'date_to' || key === 'date_from') {\n this.setState({[key]: null}, () => {\n this.callRequest('/label-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n } else {\n this.setState({[key]: []}, () => {\n this.callRequest('/label-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n }\n };\n \n handleChangePage = (value) => {\n this.setState({\n page: value,\n }, () => {\n this.callRequest('/label-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n }\n\n handleChangeQueryValue = (e) => {\n this.setState({[e.target.name]: e.target.value}, () => {\n this.callRequest('/label-filters?page=1&limit='+this.state.page_limit);\n });\n }\n\n handleClear = (type) => {\n if (type === 'date') {\n this.setState({\n [type]: [],\n date_to: null,\n date_from: null,\n }, () => {\n this.callRequest('/label-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n } else {\n this.setState({\n [type]: [],\n }, () => {\n this.callRequest('/label-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n }\n }\n\n handleClearAll = () => {\n this.setState({loading: true});\n this.setState({\n paymentStatus: [],\n printedStatus: [],\n queryValue: null,\n date: [],\n date_to: null,\n date_from: null,\n countries: [],\n services: [],\n }, () => {\n this.callRequest('/label-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n };\n\n handleSelectionChange = (selectedItems) => {\n this.setState({selectedItems});\n };\n\n toggleActive = (field) => {\n this.setState({ [field]: !this.state[field] });\n }\n\n toggleTag = (type, value) => {\n if (type === 'date' || type === 'printedStatus') {\n if (value != 'custom') {\n this.setState({ [type]: [value] }, () => \n this.callRequest('/label-filters?page='+this.state.page+'&limit='+this.state.page_limit)\n );\n } else {\n this.setState({ date_to: null });\n this.setState({ date_from: null });\n this.setState({ [type]: [value] });\n }\n } else {\n if (this.state[type].some((tag) => tag === value)) {\n this.setState({\n [type]: this.state[type].filter(item => item !== value)\n }, () => \n this.callRequest('/label-filters?page='+this.state.page+'&limit='+this.state.page_limit) \n );\n } else {\n this.setState({\n [type]: [...this.state[type], value]\n }, () => \n this.callRequest('/label-filters?page='+this.state.page+'&limit='+this.state.page_limit) \n );\n }\n }\n };\n\n handleChange = (field) => {\n const includeFilters = [\n 'queryValue',\n 'date',\n 'date_from',\n 'date_to'\n ];\n\n return (value) => {\n this.setState({ [field]: value }, () => {\n if (includeFilters.indexOf(field) !== -1) { \n if (Array.isArray(value)) {\n if (value[0] == \"custom\") {\n return true;\n }\n }\n this.callRequest('/label-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n };\n });\n };\n };\n\n handleOpenSheet = (label_id) => {\n this.getOrderRequest(label_id);\n };\n\n handleCloseSheet = () => {\n this.setState({sheetActive: false});\n this.setState({filterSide: false});\n this.props.handleSheetChange(false);\n };\n\n handleToggleSheet = (label_id) => {\n this.props.sheetActive ? this.handleCloseSheet() : this.handleOpenSheet(label_id);\n }\n\n disambiguateLabel = (key, value) => {\n const options = {\n year: 'numeric', month: 'numeric', day: 'numeric',\n hour: 'numeric', minute: 'numeric', second: 'numeric',\n hour12: false,\n timeZone: this.props.shop.time_zone\n };\n \n switch (key) {\n case 'paymentStatus':\n return value.map((val) => `${I18n.t(val)}`).join(', ');\n case 'printedStatus':\n switch (value[0]) {\n case true:\n return `${I18n.t('order_list.filters.printed')}`;\n case false:\n return `${I18n.t('order_list.filters.unprint')}`;\n default:\n return null;\n }\n case 'date':\n switch (value[0]) {\n case 'past_day':\n return `${I18n.t('order_list.filters.date_today')}`;\n case 'past_week':\n return `${I18n.t('order_list.filters.date_past_week')}`;\n case 'past_month':\n return `${I18n.t('order_list.filters.date_past_month')}`;\n case 'past_quarter':\n return `${I18n.t('order_list.filters.date_past_quarter')}`;\n case 'past_year':\n return `${I18n.t('order_list.filters.date_past_year')}`;\n default:\n return null;\n }\n case 'date_from':\n return `${I18n.t('order_list.filters.date_from')} ${new Intl.DateTimeFormat('default', options).format(new Date(value))}`;\n case 'date_to':\n return `${I18n.t('order_list.filters.date_to')} ${new Intl.DateTimeFormat('default', options).format(new Date(value))}`;\n case 'countries':\n return value.map((val) => `${val}`).join(', ');\n case 'services':\n return value.map((val) => `${val}`).join(', ');\n default:\n return value;\n }\n };\n \n\n /* Get order detail */\n getOrderRequest = (label_id) => {\n this.setState({loading: true});\n axios({\n method: 'post',\n url: '/get-order-by-label',\n data: {\n label_id: label_id,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.props.handleOrderChange(result.data);\n this.setState({loading: false});\n this.props.handleSheetChange(true);\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n });\n }\n\n /* Filter order */\n callRequest = (url = '/label-filters') => {\n $('html, body').animate({scrollTop: 0}, 10);\n this.setState({loading: true});\n axios.get(url, {\n params: {\n queryValue: this.state.queryValue,\n date: this.state.date,\n date_from: this.state.date_from,\n date_to: this.state.date_to,\n services: this.state.services,\n printedStatus: this.state.printedStatus,\n countries: this.state.countries,\n paymentStatus: this.state.paymentStatus,\n instance_id: this.props.shop.instance_id\n },\n }).then(result => {\n this.setState({labels: result.data.labels});\n this.setState({page: result.data.page});\n this.setState({page_limit: result.data.page_limit});\n this.setState({total_page: result.data.total_page});\n this.setState({count_labels: result.data.count_labels});\n this.setState({loading: false});\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n });\n }\n\n generateBulkDeposit = () => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n /* We generate label in mass */\n this.setState({loading: true});\n axios({\n method: 'post',\n url: '/generate-deposit',\n data: {\n label_ids: this.state.selectedItems,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.props.toggleToast(result.data.response_ws.message, false);\n } else {\n this.props.toggleToast(result.data.response_ws.message, true);\n }\n this.setState({selectedItems: []});\n this.callRequest('/label-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n }).catch(error => {\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_generate_label'), true);\n });\n };\n\n printLabel = (id) => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n axios({\n method: 'get',\n url: '/colissimo-label/'+id+'/'+this.props.shop.instance_id\n }).then(result => {\n if (result.data.printer_request) {\n $.get(result.data.printer_request);\n } else {\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n }\n }).catch(error => {\n console.log(error);\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n });\n };\n\n printBulkLabel = () => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n const items = (this.state.sortValue == 'DESC' ? this.state.selectedItems.sort().reverse() : this.state.selectedItems.sort());\n\n if (this.props.config.use_thermal_printer == true) {\n items.map((item, index) => {\n setTimeout(() => { \n axios({\n method: 'get',\n url: '/deposit-print-bulk-label/'+item+'/'+this.props.shop.instance_id\n }).then(result => {\n if (result.data.printer_request) {\n $.get(result.data.printer_request);\n } else {\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n }\n }).catch(error => {\n console.log(error);\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n });\n }, 1000*index);\n });\n } else {\n window.open('/deposit-print-bulk-label/'+items+'/'+this.props.shop.instance_id, '_blank');\n }\n };\n\n reinitVars = () => {\n this.setState({modalDeleteConfirm: false});\n this.setState({delete_label_id: null});\n }\n\n deleteLabelConfirm = (label_id) => {\n this.setState({delete_label_id: label_id});\n this.setState({modalDeleteConfirm: true});\n }\n\n actionDeleteLabel = (label_id) => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n this.setState({loading: true});\n this.setState({modalDeleteConfirm: false});\n axios({\n method: 'post',\n url: '/delete-label-by-id',\n data: {\n label_id: label_id,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.props.toggleToast(I18n.t('deposit_list.success_delete_label'), false);\n } else {\n this.props.toggleToast(I18n.t('deposit_list.error_delete_label'), true);\n }\n this.setState({selectedItems: []});\n this.callRequest('/label-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('deposit_list.error_delete_label'), true);\n });\n }\n\n displayModalDeleteLabel = () => {\n return (\n this.reinitVars()}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.reinitVars()}\n secondaryButtonOnClick={() => this.reinitVars()}\n primaryButtonOnClick={() => this.actionDeleteLabel(this.state.delete_label_id)}\n title={I18n.t('deposit_list.modal.delete_label_title')}\n content={\n \n {I18n.t('deposit_list.modal.delete_message')}\n \n }\n >\n \n );\n }\n\n renderColumnLabelNumber = (row) => {\n const {id, shipping_number, payment_status, created_at, commercial_name, country_code, province_code} = row;\n\n const options = {\n year: 'numeric', month: 'numeric', day: 'numeric',\n hour: 'numeric', minute: 'numeric', second: 'numeric',\n hour12: false,\n timeZone: this.props.shop.time_zone\n };\n\n const cn23 = ((this.props.config !== null && this.props.config.sender_iso_country == 'FR' && this.props.iso_eu_countries_no_cn23.indexOf(country_code) === -1 && this.props.iso_fr.indexOf(country_code) === -1) || (this.props.config !== null && this.props.config.sender_iso_country != 'FR' && this.props.iso_dom_countries_no_cn23.indexOf(country_code) === -1) || (this.props.config !== null && this.props.config.sender_iso_country == 'FR' && country_code == 'ES' && this.props.province_code_cn23.indexOf(province_code) > -1 )) ? (\n \n  {I18n.t('deposit_list.cn23_alert')}\n ) : null;\n\n return (\n
\n \n this.handleToggleSheet(id)}>{shipping_number}\n {payment_status == 'PARTIALLY_REFUNDED' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'PAID' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'FULLY_REFUNDED' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'PENDING' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'NOT_PAID' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'PARTIALLY_PAID' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'UNSPECIFIED_PAYMENT_STATUS' && \n {I18n.t(`${payment_status}`)}\n }\n \n \n {new Intl.DateTimeFormat('default', options).format(new Date(created_at))}\n \n \n {commercial_name !== null && commercial_name !== '' ? commercial_name : I18n.t('order_list.no_colissimo_order')}\n \n {cn23}\n
\n );\n }\n\n renderColumnOrderNumber = (row) => {\n const {id, wix_order_number, wix_order_created_at} = row;\n\n const options = {\n year: 'numeric', month: 'numeric', day: 'numeric',\n hour: 'numeric', minute: 'numeric', second: 'numeric',\n hour12: false,\n timeZone: this.props.shop.time_zone\n };\n\n return (\n
\n \n this.handleToggleSheet(id)}>#{wix_order_number}\n \n \n {new Intl.DateTimeFormat('default', options).format(new Date(wix_order_created_at))}\n \n
\n );\n }\n\n renderColumnCustomer = (row) => {\n const {full_name, email} = row;\n\n return (\n
\n \n {full_name}\n \n \n {email}\n \n
\n );\n }\n\n renderColumnFulfillment = (row) => {\n const {fulfillment_status, country_code, country} = row;\n\n return (\n
\n \n {fulfillment_status == 'FULFILLED' && \n {I18n.t(`${fulfillment_status}`)}\n }\n {fulfillment_status == 'NOT_FULFILLED' && \n {I18n.t(`${fulfillment_status}`)}\n }\n {fulfillment_status == 'CANCELED' && \n {I18n.t(`${fulfillment_status}`)}\n }\n {fulfillment_status == 'PARTIALLY_FULFILLED' && \n {I18n.t(`${fulfillment_status}`)}\n }\n \n \n {(typeof country != 'undefined' && country != null) ? ({this.capitalize(country)}) : ('')}\n \n {(typeof country_code != 'undefined' && country_code != null) ? (
) : (' ')}\n
\n );\n }\n\n renderColumnPrint = (row) => {\n const {print_at} = row;\n\n return (\n
\n \n {print_at !== null && \n {I18n.t('deposit_list.printed')}\n }\n {print_at === null && \n {I18n.t('deposit_list.unprinted')}\n }\n \n
\n );\n }\n\n renderColumnActions = (row) => {\n const {id} = row;\n\n return (\n
\n {( this.props.config.use_thermal_printer == true) && \n }\n onClick={(e) => this.printLabel(id)}\n >\n {I18n.t('order_list.print')}\n \n }\n {( this.props.config.use_thermal_printer == false) && \n }\n as=\"a\" href={`/colissimo-label/${id}/${this.props.shop.instance_id}`} target=\"_blank\"\n >\n {I18n.t('order_list.print')}\n \n }\n  \n }\n onClick={(e) => this.deleteLabelConfirm(id)}\n >\n {I18n.t('deposit_list.delete_label')}\n \n
\n );\n }\n\n render() {\n const {\n labels,\n loading,\n filterSide,\n modalDeleteConfirm,\n queryValue\n } = this.state;\n\n const columns = [\n {\n title: I18n.t('order_list.label_number'),\n render: (row) => this.renderColumnLabelNumber(row),\n width: 260\n },\n {\n title: I18n.t('order_list.customer'),\n render: (row) => this.renderColumnCustomer(row),\n width: 150\n },\n {\n title: I18n.t('order_list.fulfillmment'),\n render: (row) => this.renderColumnFulfillment(row),\n width: 120,\n align: 'center'\n },\n {\n title: I18n.t('order_list.print_status_label'),\n render: (row) => this.renderColumnPrint(row),\n width: 80,\n align: 'center'\n },\n {\n title: I18n.t('order_list.order_number'),\n render: (row) => this.renderColumnOrderNumber(row),\n width: 120\n },\n {\n title: I18n.t('order_list.actions'),\n render: (row) => this.renderColumnActions(row),\n width: 260\n }\n ];\n\n const includeFilters = [\n 'queryValue',\n 'paymentStatus',\n 'printedStatus',\n 'date',\n 'date_from',\n 'date_to',\n 'countries',\n 'services'\n ];\n\n const appliedFilters = Object.keys(this.state)\n .filter((key) => !isEmpty(this.state[key]) && includeFilters.indexOf(key) !== -1)\n .map((key) => {\n return {\n id: key,\n value: this.state[key],\n type: key,\n children: this.disambiguateLabel(key, this.state[key]),\n };\n });\n\n const tagExists = ({ type, value }) =>\n this.state[type].some((tag) => tag === value)\n\n const PrintedFilter = [\n {\n label: I18n.t('order_list.filters.printed'),\n value: true,\n },\n {\n label: I18n.t('order_list.filters.unprint'),\n value: false,\n },\n ];\n\n const dateFilter = [\n {label: I18n.t('order_list.filters.date_today'), value: 'past_day'},\n {label: I18n.t('order_list.filters.date_past_week'), value: 'past_week'},\n {label: I18n.t('order_list.filters.date_past_month'), value: 'past_month'},\n {label: I18n.t('order_list.filters.date_past_quarter'), value: 'past_quarter'},\n {label: I18n.t('order_list.filters.date_past_year'), value: 'past_year'},\n {label: I18n.t('order_list.filters.date_custom'), value: 'custom'},\n ];\n\n const paginationMarkup =\n this.state.total_page > 1 ? (\n this.handleChangePage(e.page)}\n />\n ) : null;\n\n const emptyStateMarkup = !labels.length ? (\n \n \n
\n {I18n.t('emptystate.depositwithtout.title')}\n {I18n.t('emptystate.depositwithtout.text1')}\n {I18n.t('emptystate.depositwithtout.text2')}\n }\n image={\n \n }\n >\n \n
\n ) : undefined;\n\n return (\n
\n \n \n \n \n \n \n \n \n {this.state.selectedItems.length > 0 &&\n \n \n \n \n \n {this.state.selectedItems.length} {I18n.t('order_list.resources_items_orders_title')} {I18n.t('order_list.selected')}\n \n {I18n.t('order_list.on_total')} {this.state.labels.length}\n \n \n \n \n \n \n \n \n \n this.generateBulkDeposit()}\n prefixIcon={}\n >\n {I18n.t('deposit_list.generate_deposit')}\n \n \n \n this.printBulkLabel()}\n prefixIcon={}\n >\n {I18n.t('order_list.bulk_print_label')}\n \n \n \n }\n {this.state.selectedItems.length <= 0 &&\n \n \n {this.state.labels.length}{I18n.t('order_list.resources_items_orders_title')}\n \n \n }\n \n \n }\n onClick={(e) => this.toggleActive(\"filterSide\")}\n >\n {I18n.t('order_list.filters.filters')} (5)\n \n \n \n \n \n \n \n \n \n \n \n {I18n.t('order_list.filters.filter_by')}\n this.handleClearAll(),\n }}\n onTagRemove={(e) => this.handleRemove(e)}\n />\n \n \n \n \n \n \n {emptyStateMarkup}\n
\n
\n \n \n {paginationMarkup}\n \n \n \n \n this.handleCloseSheet()}>\n \n \n \n {this.props.payment_status.map((value, key) => (\n this.toggleTag('paymentStatus', value)}\n >\n {I18n.t(value)}\n \n ))}\n this.handleClear('paymentStatus')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n {\n title: I18n.t('order_list.filters.printedStatus'),\n children: (\n \n {PrintedFilter.map((value, key) => (\n this.toggleTag('printedStatus', value.value)}\n label={value.label}\n />\n ))}\n this.handleClear('printedStatus')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n {\n title: I18n.t('order_list.filters.countries'),\n children: (\n \n {this.props.countries.map((value, key) => (\n this.toggleTag('countries', value)}\n >\n {this.capitalize(value)}\n \n ))}\n this.handleClear('countries')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n {\n title: I18n.t('order_list.filters.services'),\n children: (\n \n {this.props.services.map((value, key) => (\n this.toggleTag('services', value)}\n >\n {value}\n \n ))}\n this.handleClear('services')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n {\n title: I18n.t('order_list.filters.date'),\n children: (\n \n {dateFilter.map((value, key) => (\n this.toggleTag('date', value.value)}\n label={value.label}\n />\n ))}\n {this.state.date[0] == 'custom' && \n \n \n \n \n \n \n \n \n }\n this.handleClear('date')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n ]}\n />\n \n \n \n {appliedFilters.length} {I18n.t('order_list.filters.filters_applied')}\n this.handleClearAll()}>{I18n.t('order_list.filters.clear_all')}\n \n \n \n \n
\n \n {modalDeleteConfirm ? this.displayModalDeleteLabel() : null}\n \n );\n }\n}\n\nfunction isEmpty(value) {\n if (Array.isArray(value)) {\n if (value[0] == \"custom\") {\n return true;\n }\n return value.length === 0;\n } else {\n /* Add specific Hack for custom value */\n return value === '' || value == null;\n }\n}\n \nexport default ByLabelWithoutDeposit","import React from \"react\";\nimport {\n Page,\n Card,\n Button,\n Box,\n Badge,\n Text,\n Heading,\n Divider,\n SidePanel,\n TableListHeader,\n Tabs,\n Image\n} from '@wix/design-system';\n\nimport { PrintSmall } from '@wix/wix-ui-icons-common';\n\nimport ByLabelWithoutDeposit from \"./ByLabelWithoutDeposit\"\nimport ByLabelWithDeposit from \"./ByLabelWithDeposit\"\nimport ByDeposit from \"./ByDeposit\"\nimport LogoColissimo from \"../../../assets/images/Colissimo_Logo_H.png\";\n\nimport { passCsrfToken } from '../../util/helpers'\nimport axios from 'axios'\n\nclass DepositGlobal extends React.Component {\n\n constructor(props) {\n super(props);\n this.child = React.createRef();\n }\n\n state = {\n selectTab: 0,\n selectedOrder: false,\n sheetActive: false,\n sheetDepositActive: false,\n selectedDeposit: false,\n };\n\n componentDidMount = () => {\n passCsrfToken(document, axios);\n }\n\n callRequest = (event) => {\n event.preventDefault();\n this.child.current.callRequest();\n }\n\n handleCloseSheet = () => {\n this.setState({ sheetActive: false });\n this.setState({ sheetDepositActive: false });\n };\n\n handleSelectedTab = (value) => {\n this.setState({selectTab: value.id});\n }\n\n handleSheetChange = (value) => {\n this.setState({ sheetActive: value });\n };\n\n handleSheetDepositChange = (value) => {\n this.setState({ sheetDepositActive: value });\n };\n\n handleOrderChange = (value) => {\n this.setState({ selectedOrder: value });\n };\n\n handleDepositChange = (value) => {\n this.setState({ selectedDeposit: value });\n };\n\n printLabel = (id) => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n axios({\n method: 'get',\n url: '/colissimo-label/'+id+'/'+this.props.shop.instance_id\n }).then(result => {\n if (result.data.printer_request) {\n $.get(result.data.printer_request);\n } else {\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n }\n }).catch(error => {\n console.log(error);\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n });\n };\n\n renderSwitch() {\n //updateStatus depend on App function handleChildStatusChange\n switch(this.state.selectTab) {\n case 0:\n return (\n \n );\n case 1:\n return (\n \n \n );\n case 2:\n return (\n \n );\n default:\n return (\n \n );\n }\n }\n \n renderSheetDeposit = (deposit) => {\n const sheetActive = this.state.sheetDepositActive;\n\n console.log(deposit);\n const title = ({I18n.t('deposit_list.deposit_number')} {deposit.number});\n\n const labels = deposit.labels.labels;\n console.log(labels);\n\n const label_lines = labels.map(line => {\n return (\n \n {I18n.t('order_list.order_number')} : #{line.wix_order_number}\n {I18n.t('order_list.label_number')} : {line.shipping_number}\n \n {( this.props.config.use_thermal_printer == true) && \n }\n onClick={(e) => this.printLabel(line.id)}\n >\n {I18n.t('order_list.print')}\n \n }\n {( this.props.config.use_thermal_printer == false) && \n }\n as=\"a\" href={`/colissimo-label/${line.id}/${this.props.shop.instance_id}`} target=\"_blank\"\n >\n {I18n.t('order_list.print')}\n \n }\n \n \n \n \n \n );\n });\n return (\n \n \n \n \n \n {label_lines.length > 0 &&\n label_lines\n }\n \n \n \n \n );\n }\n\n /* RENDER ORDER DETAIL */\n renderSheet = (order) => {\n const sheetActive = this.state.sheetActive;\n const { \n id,\n wix_order_number,\n payment_status,\n total_price,\n currency\n } = order.order\n\n const formatter = new Intl.NumberFormat('fr-FR', {\n style: 'currency',\n currency: currency\n });\n\n const {\n address1,\n address2,\n city,\n company,\n country,\n first_name,\n last_name,\n phone,\n zip\n } = order.order_shipping\n\n const order_lines = order.order_line_items\n\n const pickup_point = order.pickup_point\n\n const order_shipping_line = (order.order_shipping_line[0] ? order.order_shipping_line[0] : false);\n\n var payment_status_badge = '';\n\n if (payment_status == 'PARTIALLY_REFUNDED') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'FULLY_REFUNDED') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PENDING') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'NOT_PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PARTIALLY_PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'UNSPECIFIED_PAYMENT_STATUS') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n }\n\n const fulfill_lines = order_lines.filter(line => (line.fulfillable_quantity === 0 || (line.quantity - line.fulfillable_quantity) > 0 || payment_status == 'FULLY_REFUNDED')).map(line => {\n return (\n \n {line.name}\n {formatter.format(`${line.price}`)} x {line.quantity}\n SKU : {line.sku}\n \n {I18n.t('order_list.sheet.qty_fulfilled_refunded')} {line.quantity - line.fulfillable_quantity}\n \n \n \n \n \n );\n });\n\n return (\n \n \n \n \n \n {I18n.t('order_list.sheet.carrier')}\n {order_shipping_line && order_shipping_line.delivery_option}\n \n {I18n.t('order_list.sheet.address')}\n {pickup_point === false &&\n \n
{first_name && first_name} {last_name && last_name}
\n {company &&
{company}
}\n {address1 &&
{address1}
}\n {address2 &&
{address2}
}\n {zip &&
{zip} {city}
} \n {country &&
{country}
}\n {phone &&
{phone}
}\n
\n }\n {pickup_point !== false && \n \n
{I18n.t('order_list.pickup_point_number')} {pickup_point.colissimo_id}
\n
{first_name && first_name} {last_name && last_name}
\n {pickup_point.company_name &&
{pickup_point.company_name}
}\n {pickup_point.address1 &&
{pickup_point.address1}
}\n {pickup_point.address2 &&
{pickup_point.address2}
}\n {pickup_point.zipcode &&
{pickup_point.zipcode} {pickup_point.city}
} \n {pickup_point.country &&
{pickup_point.country}
}\n {pickup_point.phone &&
{pickup_point.phone}
}\n
\n }\n \n {fulfill_lines.length > 0 &&\n \n \n {fulfill_lines}\n \n }\n \n {`Total ${formatter.format(total_price)}`}\n \n
\n
\n
\n \n );\n };\n\n /* RENDER GENERAL ORDER VIEW */\n render() {\n return (\n
\n \n }\n actionsBar={}\n >\n \n \n \n \n {I18n.t('deposit_list._tabs.without_deposit')} },\n { id: 1, title: {I18n.t('deposit_list._tabs.with_deposit')} },\n { id: 2, title: {I18n.t('deposit_list._tabs.deposit')} },\n ]}\n activeId={this.state.selectTab}\n type=\"uniformSide\"\n onClick={(value) => this.handleSelectedTab(value)}\n />\n \n \n {this.renderSwitch()}\n \n \n \n {!this.state.selectedOrder === false ? this.renderSheet(this.state.selectedOrder) : null}\n {!this.state.selectedDeposit === false ? this.renderSheetDeposit(this.state.selectedDeposit) : null}\n
\n );\n }\n}\n \nexport default DepositGlobal","import React from 'react';\nimport { \n Modal,\n CustomModalLayout,\n Box,\n Text,\n Image\n} from '@wix/design-system';\n\nimport InstallationGuide from \"../../../assets/images/guideinstallationwix.png\";\n\nclass InstallGuide extends React.Component {\n\n render() {\n return(\n this.props.contentOverlay('installguide', false)}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.props.contentOverlay('installguide', false)}\n onCloseButtonClick={() => this.props.contentOverlay('installguide', false)}\n title={I18n.t('installguide.titleSlide')}\n content={\n \n \n \n \n \n \n {I18n.t('installguide.text1')} https://www.colissimo.entreprise.laposte.fr/ {I18n.t('installguide.text1-1')} {I18n.t('installguide.text1-2')}
\n
\n
\n \n \n {I18n.t('installguide.text2')}\n \n \n \n \n {I18n.t('installguide.text3')}\n \n \n \n \n \n \n \n \n {I18n.t('installguide.text8')}\n \n
\n }\n />\n \n )\n }\n}\n\nexport default InstallGuide","import React from 'react';\nimport { \n Modal,\n CustomModalLayout,\n Box,\n Text,\n Image,\n Divider,\n Heading,\n Button\n} from '@wix/design-system';\n\nimport OnBoarding1 from \"../../../assets/images/onboardingwix1.png\";\nimport OnBoarding2 from \"../../../assets/images/onboardingwix2.png\";\nimport OnBoarding3 from \"../../../assets/images/onboardingwix3.png\";\nimport OnBoarding4 from \"../../../assets/images/onboardingwix4.png\";\n\nclass OnBoarding extends React.Component {\n\n render() {\n return(\n this.props.contentOverlay('onboarding', false)}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n {I18n.t('onboarding.config_button')}}\n secondaryButtonText={I18n.t('onboarding.use_app')}\n secondaryButtonOnClick={() => this.props.contentOverlay('onboarding', false)}\n onCloseButtonClick={() => this.props.contentOverlay('onboarding', false)}\n title={I18n.t('onboarding.titleSlide')}\n content={\n \n \n \n \n \n {I18n.t('onboarding.welcome')}\n \n \n \n {I18n.t('onboarding.welcome2')}\n \n \n \n \n \n \n \n {I18n.t('onboarding.save_time')}\n \n \n \n {I18n.t('onboarding.save_time2')}\n \n \n \n \n \n \n \n {I18n.t('onboarding.features')}\n \n \n \n {I18n.t('onboarding.features2')}\n \n \n \n \n \n \n \n {I18n.t('onboarding.helpbox')}\n \n \n \n {I18n.t('onboarding.helpbox2')}\n \n \n \n }\n />\n \n )\n }\n}\n\nexport default OnBoarding","import React from 'react';\nimport { \n Modal,\n CustomModalLayout,\n Cell,\n Layout,\n Card,\n Box,\n Text,\n Button\n} from '@wix/design-system';\n\nclass Upgrade extends React.Component {\n\n render() {\n console.log(this.props.upgrade_url);\n return(\n \n {I18n.t('upgrade.upgrade_app_button')}}\n title={I18n.t('upgrade.title')}\n content={\n \n \n \n \n \n \n \n {I18n.t('upgrade.text')}\n \n \n \n \n \n \n \n }\n />\n \n )\n }\n}\n\nexport default Upgrade","import React from 'react';\nimport { \n Modal,\n CustomModalLayout,\n Cell,\n Layout,\n Card,\n Box,\n Badge,\n Text,\n Image,\n Heading\n} from '@wix/design-system';\n\nclass WhoIsContent extends React.Component {\n\n render() {\n return(\n this.props.contentOverlay('whoisPage', false)}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.props.contentOverlay('whoisPage', false)}\n onCloseButtonClick={() => this.props.contentOverlay('whoisPage', false)}\n title={I18n.t('whoiscontent.titleSlide')}\n content={\n \n \n \n \n \n \n ToM\n \n \n \n \n \n \n \n \n {I18n.t('whoiscontent.tom_title')}\n \n \n {I18n.t('whoiscontent.tom_text')}\n \n \n \n \n \n \n \n Antoine\n \n \n \n \n \n \n \n \n {I18n.t('whoiscontent.antone_title')}\n \n \n {I18n.t('whoiscontent.antone_text')}\n \n \n \n \n \n \n \n JoJo\n \n \n \n \n \n \n \n \n {I18n.t('whoiscontent.jojo_title')}\n \n \n {I18n.t('whoiscontent.jojo_text')}\n \n \n \n \n \n \n \n }\n />\n \n )\n }\n}\n\nexport default WhoIsContent","import React from \"react\";\nimport { \n Page,\n Card,\n Button,\n Table,\n TableToolbar,\n Search,\n Box,\n Tooltip,\n TextButton,\n Badge,\n Text,\n NumberInput,\n Modal,\n Loader,\n Heading,\n Divider,\n Radio,\n SidePanel,\n CustomModalLayout,\n FormField,\n Input,\n Cell,\n Layout,\n TableListHeader,\n Checkbox,\n PopoverMenu,\n Tabs,\n Image,\n TagList,\n Accordion,\n DatePicker,\n Slider,\n Pagination\n} from '@wix/design-system';\n\nimport { ContentFilterSmall, StatusWarningFilled, ShippingSmall, RedoSmall, PrintSmall, ChevronDownLargeSmall, DocumentSmall, MapSmall, ChevronDownSmall, DownloadImportSmall } from '@wix/wix-ui-icons-common';\n\nimport dpd from \"../../../assets/images/dpd.png\";\nimport austria from \"../../../assets/images/austria.png\";\nimport italy from \"../../../assets/images/italy.png\";\nimport germany from \"../../../assets/images/germany.png\";\nimport luxembourg from \"../../../assets/images/luxembourg.png\";\nimport LogoColissimo from \"../../../assets/images/Colissimo_Logo_H.png\";\n\nimport { passCsrfToken } from '../../util/helpers'\nimport axios from 'axios'\n\nclass OrderIndex extends React.Component {\n \n componentDidMount = () => {\n passCsrfToken(document, axios);\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n }\n\n state = {\n orders: this.props.orders,\n page: this.props.page,\n page_limit: this.props.page_limit,\n count_orders: this.props.count_orders,\n total_page: this.props.total_page,\n global_lines_weight: 0,\n weight: null,\n sheetActive: false,\n selectedOrder: false,\n selectedLabels: false,\n selectedChange: false,\n selectedChangeOffer: false,\n loading: true,\n map_modal: false,\n countries: [],\n services: [],\n queryValue: null,\n date: [],\n date_to: null,\n date_from: null,\n paymentStatus: [],\n labelStatus: [],\n closedStatus: null,\n errorStatus: [],\n printedStatus: [],\n fulfillmentStatus: [],\n sortValue: 'DESC',\n isFirstPage: false,\n isLastPage: true,\n modalChangeAddress: false,\n modalChangeAddressPickup: false,\n modalRegenerate: false,\n modalRegenerateReturn: false,\n modalBulkGenerate: false,\n orderShippingPickup: false,\n orderShipping: false,\n selectedItems: [],\n selectedTabConfig: 0,\n filterSide: false,\n modalImport: false,\n import_orders: null,\n remaining_days: this.props.remaining_days\n }\n\n handleOpenSheet = (order_id, action_type = \"order\") => {\n if (action_type == \"order\") {\n this.getOrderRequest(order_id);\n } else if (action_type == \"change\") {\n this.getChangeOrderRequest(order_id);\n } else if (action_type == \"change_offer\") {\n this.getChangeOfferOrderRequest(order_id);\n } else {\n this.getLabelsRequest(order_id);\n }\n };\n\n handleCloseSheet = () => {\n this.setState({colissimo_service: false});\n this.setState({colissimo_international_offer: false});\n this.setState({sheetActive: false});\n this.setState({global_lines_weight: 0});\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({selectedOrder: false});\n this.setState({selectedLabels: false});\n this.setState({filterSide: false});\n };\n\n handleToggleSheet = (order_id, action_type = \"order\") => {\n this.state.sheetActive ? this.handleCloseSheet() : this.handleOpenSheet(order_id, action_type);\n }\n\n toggleActive = (field) => {\n this.setState({ [field]: !this.state[field] });\n }\n\n toggleTag = (type, value) => {\n if (type === 'labelStatus' || type === 'date' || type === 'printedStatus') {\n if (value != 'custom') {\n this.setState({ [type]: [value] }, () => \n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit)\n );\n } else {\n this.setState({ date_to: null });\n this.setState({ date_from: null });\n this.setState({ [type]: [value] });\n }\n } else if (type === 'weight') {\n this.setState({ [type]: value }, () => \n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit)\n );\n } else {\n if (this.state[type].some((tag) => tag === value)) {\n this.setState({\n [type]: this.state[type].filter(item => item !== value)\n }, () => \n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit) \n );\n } else {\n this.setState({\n [type]: [...this.state[type], value]\n }, () => \n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit) \n );\n }\n }\n };\n\n handleChangeWithValue = (field, value) => {\n if (field.indexOf('ftd') !== -1) {\n this.setState({ [field]: value });\n this.toggleActive(field.replace('ftd', 'activeddp'));\n } else {\n this.setState({ [field]: value });\n }\n }\n\n handleChangeAddress = (e) => {\n this.setState({\n orderShipping: { ...this.state.orderShipping, [e.target.name]: e.target.value },\n });\n }\n\n handleChangeImportOrders = (e) => {\n this.setState({[e.target.name]: e.target.value});\n }\n\n handleChangeQueryValue = (e) => {\n this.setState({[e.target.name]: e.target.value}, () => {\n this.callRequest('/orders-filters?page=1&limit='+this.state.page_limit);\n });\n \n }\n\n handleChangeDpd = (e) => {\n this.setState({[e.target.name]: e.target.value});\n }\n\n handleChangeAddressPickup = (e) => {\n this.setState({\n orderShippingPickup: { ...this.state.orderShippingPickup, [e.target.name]: e.target.value },\n });\n }\n\n handleChange = (field) => {\n \n const includeFilters = [\n 'queryValue',\n 'weight',\n 'date',\n 'date_from',\n 'date_to',\n 'countries',\n 'services',\n ];\n\n return (value) => {\n console.log(value);\n if (field != 'map_modal') {\n this.setState({ page: 1 });\n }\n\n if (field === 'map_modal') {\n this.setState({ map_modal: false });\n jQuery('#colissimo-widget-container').frameColissimoClose();\n return true;\n }\n\n this.setState({ [field]: value }, () => {\n if (includeFilters.indexOf(field) !== -1) { \n if (Array.isArray(value)) {\n if (value[0] == \"custom\") {\n return true;\n }\n }\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n };\n });\n };\n };\n\n changeAddress = (shipping) => {\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({selectedOrder: false});\n this.setState({selectedLabels: false});\n this.setState({modalChangeAddress: true});\n this.setState({orderShipping: shipping});\n }\n\n changeAddressPickup = (shipping) => {\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({selectedOrder: false});\n this.setState({selectedLabels: false});\n this.setState({modalChangeAddressPickup: true});\n this.setState({orderShippingPickup: shipping});\n }\n\n handleSelectionChange = (selectedItems) => {\n this.setState({selectedItems});\n };\n\n changeService = (order_id, shipping, product_code) => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n if (!this.state.colissimo_service) {\n product_code = product_code\n } else {\n product_code = this.state.colissimo_service;\n }\n\n if (product_code == 'PICKUP') {\n this.loadMap(order_id, shipping);\n } else {\n /* We save new service */\n this.setState({map_modal: false});\n this.setState({loading: true});\n axios({\n method: 'post',\n url: '/save-backend-service',\n data: {\n orderId: order_id,\n productCode: product_code,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.props.toggleToast(I18n.t('order_list.success_update_change_service'), false);\n } else {\n this.props.toggleToast(I18n.t('order_list.error_update_change_service'), true);\n }\n\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({colissimo_service: false});\n this.setState({colissimo_international_offer: false})\n this.setState({order_id_update_service: false});\n this.setState({map_modal: false});\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_update_change_service'), true);\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({colissimo_service: false});\n this.setState({colissimo_international_offer: false})\n this.setState({order_id_update_service: false});\n this.setState({map_modal: false});\n });\n }\n }\n\n changeOffer = (order_id, colissimo_international_offer) => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n if (!this.state.colissimo_international_offer) {\n colissimo_international_offer = colissimo_international_offer\n } else {\n colissimo_international_offer = this.state.colissimo_international_offer;\n }\n\n axios({\n method: 'post',\n url: '/save-backend-offer',\n data: {\n orderId: order_id,\n colissimoInternationalOffer: colissimo_international_offer,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.props.toggleToast(I18n.t('order_list.success_update_change_service'), false);\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n } else {\n this.props.toggleToast(I18n.t('order_list.error_update_change_service'), true);\n }\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({colissimo_service: false});\n this.setState({colissimo_international_offer: false})\n this.setState({order_id_update_service: false});\n this.setState({map_modal: false});\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_update_change_service'), true);\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({colissimo_service: false});\n this.setState({colissimo_international_offer: false})\n this.setState({order_id_update_service: false});\n this.setState({map_modal: false});\n });\n }\n\n\n loadMap = (order_id, shipping) => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n if (shipping.country_code == 'MC') {\n var countryList = 'FR';\n } else {\n var countryList = shipping.country_code;\n }\n\n if (this.props.token_api !== false) {\n var preparation_time = this.props.config ? this.props.config.order_preparation_time : 2;\n var token_api = this.props.token_api;\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({selectedOrder: false});\n this.setState({selectedLabels: false});\n this.setState({colissimo_service: false});\n this.setState({colissimo_international_offer: false});\n this.setState({order_id_update_service: order_id});\n this.setState({map_modal: true}, () => {\n if (typeof $ === 'undefined') {\n $ = jQuery;\n }\n //window.setTimeout(function(){\n setTimeout(() => {\n $(\"#colissimo-widget-container\").frameColissimoOpen({\n \"ceLang\": shipping.country_code,\n \"callBackFrame\": \"callBackFrame\",\n \"URLColissimo\": \"https://ws.colissimo.fr\",\n \"ceCountryList\": countryList,\n \"ceCountry\": countryList,\n \"dyPreparationTime\": preparation_time,\n \"ceAddress\": shipping.address1,\n \"ceZipCode\": shipping.zip,\n \"ceTown\": shipping.city,\n \"token\": token_api\n });\n }, 300);\n\n setTimeout(function(){colissimo_widget_map.resize(); }, 500);\n });\n \n console.log('Colissimo APP : Map loaded'); \n } else {\n this.props.toggleToast(I18n.t('order_list.error_token_api'), true);\n }\n }\n\n handleValidPickup = () => {\n this.setState({ map_modal: false });\n jQuery('#colissimo-widget-container').frameColissimoClose();\n this.savePickupPoint();\n }\n\n savePickupPoint = () => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n var infoPointValue = JSON.parse(this.orderUpdateWebservice.value);\n axios({\n method: 'post',\n url: '/save-backend-pickup-point',\n data: {\n orderId: this.state.order_id_update_service,\n infoPoint: infoPointValue.infoPoint,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.props.toggleToast(I18n.t('order_list.success_update_change_service'), false);\n } else {\n this.props.toggleToast(I18n.t('order_list.error_update_change_service'), true);\n }\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({colissimo_service: false});\n this.setState({colissimo_international_offer: false})\n this.setState({order_id_update_service: false});\n this.setState({map_modal: false});\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_update_change_service'), true);\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({colissimo_service: false});\n this.setState({colissimo_international_offer: false})\n this.setState({order_id_update_service: false});\n this.setState({map_modal: false});\n });\n }\n\n handleSubmit = () => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n this.setState({loading: true});\n\n axios({\n method: 'post',\n url: '/modify-address',\n data: {\n shipping: this.state.orderShipping,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.setState({modalChangeAddress: false});\n this.props.toggleToast(I18n.t('order_list.success_update_modify_address'), false);\n this.handleToggleSheet(this.state.orderShipping.order_id, 'change');\n } else {\n this.props.toggleToast(I18n.t('order_list.error_update_modify_address'), true);\n }\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_update_modify_address'), true);\n });\n\n }\n\n handleSubmitPickup = (event) => {\n event.preventDefault();\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n this.setState({loading: true});\n\n axios({\n method: 'post',\n url: '/modify-address-pickup',\n data: {\n shipping: this.state.orderShippingPickup,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.setState({modalChangeAddressPickup: false});\n this.props.toggleToast(I18n.t('order_list.success_update_modify_address'), false);\n this.handleToggleSheet(this.state.orderShippingPickup.order_id, 'change');\n } else {\n this.props.toggleToast(I18n.t('order_list.error_update_modify_address'), true);\n }\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_update_modify_address'), true);\n });\n }\n\n handleChangeDdp = (order_id) => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n\n this.setState({loading: true});\n if (typeof $ === 'undefined') {\n $ = jQuery;\n }\n\n /* We verify if weight is set */\n axios({\n method: 'post',\n url: '/update-ddp-value',\n data: {\n order_id: order_id,\n height: $(\"#height\"+order_id).val(),\n width: $(\"#width\"+order_id).val(),\n length: $(\"#length\"+order_id).val(),\n description: $(\"#description\"+order_id).val(),\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.props.toggleToast(I18n.t('order_list.update_ddp_success'), false);\n this.toggleActive(`activeddp${order_id}`);\n } else {\n this.props.toggleToast(I18n.t('order_list.update_ddp_error'), true);\n }\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.update_ddp_error'), true);\n });\n };\n\n handleImportOrders = () => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n this.setState({loading: true});\n\n axios({\n method: 'post',\n url: '/import-orders',\n data: {\n orders: this.state.import_orders,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.setState({modalImport: false});\n this.setState({import_orders: null});\n this.props.toggleToast(I18n.t('order_list.modal.success_import_orders'), false);\n this.callRequest('/orders-filters');\n } else {\n this.setState({modalImport: false});\n this.props.toggleToast(I18n.t('order_list.modal.error_import_orders'), true);\n }\n }).catch(error => {\n console.log(error);\n this.setState({modalImport: false});\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.modal.error_import_orders'), true);\n });\n } \n\n getChangeOrderRequest = (order_id) => {\n \n this.setState({loading: true});\n axios({\n method: 'post',\n url: '/get-order',\n data: {\n order_id: order_id,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({selectedLabels: false});\n this.setState({selectedChange: result.data});\n this.setState({selectedChangeOffer: false});\n this.setState({selectedOrder: false});\n this.setState({loading: false});\n this.setState({sheetActive: true});\n }).catch(error => {\n console.log(error);\n this.setState({selectedLabels: false});\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({selectedOrder: false});\n this.setState({loading: false});\n });\n }\n\n getChangeOfferOrderRequest = (order_id) => {\n \n this.setState({loading: true});\n axios({\n method: 'post',\n url: '/get-order',\n data: {\n order_id: order_id,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({selectedLabels: false});\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: result.data});\n this.setState({selectedOrder: false});\n this.setState({loading: false});\n this.setState({sheetActive: true});\n }).catch(error => {\n console.log(error);\n this.setState({selectedLabels: false});\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({selectedOrder: false});\n this.setState({loading: false});\n });\n }\n\n /* Get order detail */\n getOrderRequest = (order_id) => {\n this.setState({loading: true});\n axios({\n method: 'post',\n url: '/get-order',\n data: {\n order_id: order_id,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({selectedLabels: false});\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({selectedOrder: result.data});\n this.setState({loading: false});\n this.setState({sheetActive: true});\n }).catch(error => {\n console.log(error);\n this.setState({selectedLabels: false});\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({selectedOrder: false});\n this.setState({loading: false});\n });\n }\n\n /* Get order detail */\n getLabelsRequest = (order_id) => {\n this.setState({loading: true});\n axios({\n method: 'post',\n url: '/get-labels',\n data: {\n order_id: order_id,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({selectedOrder: false});\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({selectedLabels: result.data});\n this.setState({loading: false});\n this.setState({sheetActive: true});\n }).catch(error => {\n console.log(error);\n this.setState({selectedOrder: false});\n this.setState({selectedLabels: false});\n this.setState({selectedChange: false});\n this.setState({selectedChangeOffer: false});\n this.setState({loading: false});\n });\n }\n\n /* generate Label */\n generateLabel = (order_id, partial = false, label_id = false, regenerate = false) => {\n this.reinitVars();\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n this.setState({loading: true});\n if (typeof $ === 'undefined') {\n $ = jQuery;\n }\n\n /* We verify if weight is set */\n if (\n (parseInt($(\"#weight\"+order_id).val(), 10) <= 0 || isNaN(parseInt($(\"#weight\"+order_id).val(), 10)))\n ) {\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_weight'), true);\n } else {\n var weight = parseInt($(\"#weight\"+order_id).val(), 10);\n if (regenerate === true) {\n var returnValue = false;\n } else {\n var returnValue = $(\"#return\"+order_id).is(\":checked\");\n }\n axios({\n method: 'post',\n url: '/generate-label',\n data: {\n order_id: order_id,\n weight: weight,\n insurance: $(\"#insurance\"+order_id).is(\":checked\"),\n is_return: returnValue,\n non_machinable: $(\"#machinable\"+order_id).is(\":checked\"),\n ftd: $(\"#ftd\"+order_id).is(\":checked\"),\n partial: partial,\n label_id: label_id,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.props.toggleToast(result.data.response_ws.message, false);\n if (this.props.config.use_thermal_printer == true && this.props.config.generate_and_print == true) {\n this.printLabelByOrder(order_id);\n }\n } else {\n this.props.toggleToast(result.data.response_ws.message, true);\n }\n if (!regenerate) {\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n } else {\n this.getLabelsRequest(order_id);\n }\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_generate_label'), true);\n });\n }\n };\n\n generate_partial = (order_id) => {\n this.setState({loading: true});\n if (typeof $ === 'undefined') {\n $ = jQuery;\n }\n if (\n (parseInt($(\"#global_lines_weight\"+order_id).val(), 10) <= 0 || isNaN(parseInt($(\"#global_lines_weight\"+order_id).val(), 10)))\n ) {\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_weight'), true);\n } else {\n var weight = parseInt($(\"#global_lines_weight\"+order_id).val(), 10);\n /* We retrieve each fulfillabel quantity */\n var items = $( \"input[name^='fulfillable[\" + order_id + \"]\" ).serializeArray();\n var itemsFulfilled = {};\n\n $(items).each(function(i, field){\n if (parseInt(field.value, 10) > 0) {\n var product_id = field.name.match(/\\[(.*?)\\]/ig);\n product_id = product_id[1].replace(/[[\\]]/g,'');\n // var productContent = [];\n // productContent['item_id'] = product_id;\n // productContent['qty_fulfilled'] = field.value;\n // itemsFulfilled.push(productContent);\n itemsFulfilled[product_id] = parseInt(field.value, 10);\n }\n });\n\n if (itemsFulfilled <= 0) {\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_partial_quantity'), true);\n } else {\n axios({\n method: 'post',\n url: '/generate-label-partial',\n data: {\n order_id: order_id,\n weight: parseInt($(\"#global_lines_weight\"+order_id).val(), 10),\n insurance: $(\"#insurance\"+order_id).is(\":checked\"),\n is_return: $(\"#return\"+order_id).is(\":checked\"),\n non_machinable: $(\"#machinable\"+order_id).is(\":checked\"),\n ftd: $(\"#ftd\"+order_id).is(\":checked\"),\n partial: true,\n label_id: false,\n item_fulfilled: itemsFulfilled,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.props.toggleToast(result.data.response_ws.message, false);\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n this.handleToggleSheet(order_id, 'labels');\n } else {\n this.props.toggleToast(result.data.response_ws.message, true);\n this.handleToggleSheet(order_id, 'labels');\n }\n }).catch(error => {\n console.log(error);\n this.props.toggleToast(I18n.t('order_list.error_generate_label'), true);\n this.setState({loading: false});\n this.handleToggleSheet(order_id, 'labels');\n });\n }\n }\n };\n\n generateBulkLabel = () => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n this.setState({loading: true});\n var error_weight = false;\n const items = this.state.selectedItems;\n this.setState({modalBulkGenerate: false});\n if (typeof $ === 'undefined') {\n $ = jQuery;\n }\n items.forEach((item) => {\n /* We verify if all weight are set */\n if (\n (parseInt($(\"#weight\"+item).val(), 10) <= 0 || isNaN(parseInt($(\"#weight\"+item).val(), 10)))\n ) {\n error_weight = true;\n }\n });\n\n if (error_weight === false) {\n /* We generate label in mass */\n var error_content = '';\n /*var totalLength = items.length;\n var i = 1;\n var percent = 0;*/\n Promise.all(items.map(item => {\n axios({\n method: 'post',\n url: '/generate-label',\n data: {\n order_id: item,\n weight: parseInt($(\"#weight\"+item).val(), 10),\n insurance: $(\"#insurance\"+item).is(\":checked\"),\n is_return: $(\"#return\"+item).is(\":checked\"),\n non_machinable: $(\"#machinable\"+item).is(\":checked\"),\n ftd: $(\"#ftd\"+item).is(\":checked\"),\n partial: false,\n label_id: false,\n bulk_action: true,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n if (result.data.success == true) {\n /* Do nothing */\n if (this.props.config.use_thermal_printer == true && this.props.config.generate_and_print == true) {\n this.printLabelByOrder(item);\n }\n } else {\n error_content += result.data.response_ws.message;\n }\n }).catch(error => {\n error_content += I18n.t('order_list.error_generate_label');\n console.log(error);\n });\n })).then(() => {\n if (error_content != '') {\n this.props.toggleToast(error_content, true);\n } else {\n this.props.toggleToast(I18n.t('order_list.success_bulk'), false);\n }\n this.setState({loading: false}, () => {\n console.log('call orders-filters here');\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit, items);\n });\n }); \n } else {\n /* If there is Weight error */\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_weight_bulk'), true);\n this.setState({selectedItems : items});\n }\n };\n\n generateLabelReturn = (order_id, partial = false, label_id = false, regenerate = false) => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n this.setState({loading: true});\n if (typeof $ === 'undefined') {\n $ = jQuery;\n }\n /* We verify if weight is set */\n if (\n (parseInt($(\"#weight\"+order_id).val(), 10) <= 0 || isNaN(parseInt($(\"#weight\"+order_id).val(), 10)))\n ) {\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_weight'), true);\n } else {\n var weight = parseInt($(\"#weight\"+order_id).val(), 10);\n axios({\n method: 'post',\n url: '/generate-label-return',\n data: {\n order_id: order_id,\n weight: weight,\n insurance: this.state[\"insurance\"+order_id],\n is_return: this.state[\"return\"+order_id],\n non_machinable: this.state[\"machinable\"+order_id],\n ftd: this.state[\"ftd\"+order_id],\n partial: partial,\n label_id: label_id,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n this.setState({loading: false});\n if (result.data.success == true) {\n this.props.toggleToast(result.data.response_ws.message, false);\n } else {\n this.props.toggleToast(result.data.response_ws.message, true);\n }\n if (!regenerate) {\n this.getLabelsRequest(order_id);\n } else {\n this.getLabelsRequest(order_id);\n }\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_generate_label'), true);\n });\n }\n };\n\n printLabel = (id) => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n axios({\n method: 'get',\n url: '/colissimo-label/'+id+'/'+this.props.shop.instance_id\n }).then(result => {\n if (result.data.printer_request) {\n $.get(result.data.printer_request);\n } else {\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n }\n }).catch(error => {\n console.log(error);\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n });\n };\n\n printLabelByOrder = (id) => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n axios({\n method: 'get',\n url: '/colissimo-label-by-order/'+id+'/'+this.props.shop.instance_id\n }).then(result => {\n if (result.data.printer_request) {\n $.get(result.data.printer_request);\n } else {\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n }\n }).catch(error => {\n console.log(error);\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n });\n };\n\n regenerateLabel = (order_id, label_id) => {\n this.setState({regenerate_current_order_id: order_id});\n this.setState({regenerate_current_label_id: label_id});\n this.setState({modalRegenerate: true});\n };\n\n regenerateLabelReturn = (order_id, label_id) => {\n this.setState({regenerate_current_order_id: order_id});\n this.setState({regenerate_current_label_id: label_id});\n this.setState({modalRegenerateReturn: true});\n this.props.returnOrderListActiveModal(order_id, label_id, true);\n };\n\n generateBulkLabelCheckModal = () => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n var error_weight = false;\n const items = this.state.selectedItems;\n if (typeof $ === 'undefined') {\n $ = jQuery;\n }\n items.forEach((item) => {\n /* We verify if all weight are set */\n if (\n (parseInt($(\"#weight\"+item).val(), 10) <= 0 || isNaN(parseInt($(\"#weight\"+item).val(), 10)))\n ) {\n error_weight = true;\n }\n });\n\n if (error_weight === false) {\n this.setState({modalBulkGenerate: true});\n } else {\n /* If there is Weight error */\n this.setState({loading: false});\n this.props.toggleToast(I18n.t('order_list.error_weight_bulk'), true);\n }\n }\n\n printBulkLabel = () => {\n if (this.props.showToast) {\n this.props.toggleToast();\n }\n const items = (this.state.sortValue == 'DESC' ? this.state.selectedItems.sort().reverse() : this.state.selectedItems.sort());\n\n /* We verify if labels generate */\n /* We verify if all labels generate */\n axios({\n method: 'post',\n url: '/verify-label-exists',\n data: {\n order_ids: items,\n instance_id: this.props.shop.instance_id\n }\n }).then(result => {\n if (result.data.success == true) {\n if (this.props.config.use_thermal_printer == true) {\n items.map((item, index) => {\n setTimeout(() => { \n axios({\n method: 'get',\n url: '/colissimo-print-bulk-label/'+item+'/'+this.props.shop.instance_id\n }).then(result => {\n if (result.data.printer_request) {\n $.get(result.data.printer_request);\n } else {\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n }\n }).catch(error => {\n console.log(error);\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n });\n }, 1000*index);\n });\n\n } else {\n window.open('/colissimo-print-bulk-label/'+items+'/'+this.props.shop.instance_id, '_blank');\n }\n } else {\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n }\n }).catch(error => {\n console.log(error);\n this.props.toggleToast(I18n.t('order_list.error_print_bulk_label'), true);\n });\n };\n\n printBulkReturnLabel = () => {\n const items = this.state.selectedItems;\n window.open('/colissimo-print-bulk-return-label/'+items+'/'+this.props.shop.instance_id,'_blank');\n };\n\n handleRemove = (key) => {\n if (key === 'date_to' || key === 'date_from') {\n this.setState({[key]: null}, () => {\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n } else {\n this.setState({[key]: []}, () => {\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n }\n };\n\n handleClear = (type) => {\n if (type === 'date') {\n this.setState({\n [type]: [],\n date_to: null,\n date_from: null,\n }, () => {\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n } else {\n this.setState({\n [type]: [],\n }, () => {\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n }\n }\n\n handleChangePage = (value) => {\n this.setState({\n page: value,\n }, () => {\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n }\n\n handleClearAll = () => {\n this.setState({\n paymentStatus: [],\n labelStatus: [],\n closedStatus: null,\n errorStatus: [],\n printedStatus: [],\n queryValue: null,\n fulfillmentStatus: [],\n weight: null,\n date: [],\n date_to: null,\n date_from: null,\n countries: [],\n services: [],\n selectedTabConfig: 0,\n }, () => {\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n };\n\n /* Filter order */\n callRequest = (url, items = false) => {\n this.setState({selectedItems : []});\n /*$('html, body').animate({scrollTop: 0}, 10);*/\n this.setState({loading: true});\n console.log(this.state.queryValue);\n axios.get(url, {\n params: {\n queryValue: this.state.queryValue,\n paymentStatus: this.state.paymentStatus,\n printedStatus: this.state.printedStatus,\n fulfillmentStatus: this.state.fulfillmentStatus,\n labelStatus: this.state.labelStatus,\n closedStatus: this.state.closedStatus,\n errorStatus: this.state.errorStatus,\n weight: this.state.weight,\n date: this.state.date,\n date_from: this.state.date_from,\n date_to: this.state.date_to,\n countries: this.state.countries,\n services: this.state.services,\n sortable: this.state.sortValue,\n instance_id: this.props.shop.instance_id\n },\n }).then(result => {\n this.setState({orders: result.data.orders});\n this.setState({page: result.data.page});\n this.setState({page_limit: result.data.page_limit});\n this.setState({total_page: result.data.total_page});\n this.setState({count_orders: result.data.count_orders});\n this.setState({loading: false});\n if (items !== false) {\n this.setState({selectedItems : items});\n }\n }).catch(error => {\n console.log(error);\n this.setState({loading: false});\n });\n }\n\n handleTabChange = (selectedTabIndex) => {\n this.setState({ selectedTabConfig: selectedTabIndex.id });\n this.setState({\n paymentStatus: [],\n printedStatus: [],\n labelStatus: [],\n closedStatus: null,\n queryValue: null,\n fulfillmentStatus: [],\n weight: null,\n date: [],\n date_to: null,\n date_from: null,\n countries: [],\n services: [],\n errorStatus: [],\n }, () => {\n if (selectedTabIndex.id == 0) {\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n }\n });\n\n if (selectedTabIndex.id == 1) {\n this.setState({ ['labelStatus']: ['unavailable'] }, () => {\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n }\n\n if (selectedTabIndex.id == 2) {\n this.setState({ ['labelStatus']: ['available'] }, () => {\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n }\n\n if (selectedTabIndex.id == 3) {\n this.setState({ ['fulfillmentStatus']: ['NOT_FULFILLED', 'PARTIALLY_FULFILLED'] }, () => {\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n }\n\n if (selectedTabIndex.id == 4) {\n this.setState({ ['errorStatus']: ['error'] }, () => {\n this.callRequest('/orders-filters?page='+this.state.page+'&limit='+this.state.page_limit);\n });\n }\n };\n\n\n renderSheetChange = (order) => {\n const sheetActive = this.state.sheetActive;\n const { \n id,\n wix_order_number,\n payment_status,\n } = order.order\n\n const {\n address1,\n address2,\n city,\n company,\n country,\n first_name,\n last_name,\n phone,\n country_code,\n zip\n } = order.order_shipping\n\n const pickup_point = order.pickup_point\n\n //console.log(order.order_shipping_line[0]);\n const order_shipping_line = (order.order_shipping_line[0] ? order.order_shipping_line[0] : false);\n \n const product_code = order.product_code\n\n /* We check vars */\n /* If pickup point available for this country */\n const pickup_point_available = this.props.pickup_point_available.indexOf(country_code) === -1 ? false : true;\n /* We check if sign in Country */\n const without_sign_country = this.props.without_sign_country.indexOf(country_code) === -1 ? false : true;\n const code_sign = this.props.iso_outre_mer.indexOf(country_code) === -1 && this.props.iso_outre_mer2.indexOf(country_code) === -1 ? 'DOS' : 'CDS';\n \n const colis_eco = this.props.iso_outre_mer.indexOf(country_code) === -1 && this.props.iso_outre_mer2.indexOf(country_code) === -1 ? false : true;\n /* We check if it's Colissimo international */\n const colissimo_international = this.props.iso_no_worldwide.indexOf(country_code) === -1 ? true : false;\n \n let myOptions = [];\n\n if (!colissimo_international && without_sign_country && pickup_point_available) {\n myOptions.push({label: I18n.t('order_list.sheet.with_sign'),value: code_sign});\n myOptions.push({label: I18n.t('order_list.sheet.without_sign'),value: 'DOM'});\n myOptions.push({label: I18n.t('order_list.sheet.with_pickup'),value: 'PICKUP'});\n }\n\n if (!colissimo_international && without_sign_country && !pickup_point_available) {\n myOptions.push({label: I18n.t('order_list.sheet.with_sign'),value: code_sign});\n myOptions.push({label: I18n.t('order_list.sheet.without_sign'),value: 'DOM'});\n }\n\n if (!colissimo_international && !without_sign_country && pickup_point_available) {\n myOptions.push({label: I18n.t('order_list.sheet.with_sign'),value: code_sign});\n myOptions.push({label: I18n.t('order_list.sheet.with_pickup'),value: 'PICKUP'});\n }\n\n if (!colissimo_international && !without_sign_country && !pickup_point_available) {\n myOptions.push({label: I18n.t('order_list.sheet.with_sign'),value: code_sign});\n }\n\n if (colissimo_international) {\n myOptions.push({label: I18n.t('order_list.sheet.colissimo_international'),value: 'COLI'});\n }\n \n if (colis_eco != '') {\n myOptions.push({label: I18n.t('order_list.sheet.colissimo_eco'),value: 'ECO'});\n }\n\n const renderCheckboxes = myOptions.map((item) => {\n console.log(item);\n var checked = false;\n if (!this.state.colissimo_service && pickup_point !== false) {\n if (item.value == 'PICKUP') {\n checked = true;\n }\n } else {\n if (this.state.colissimo_service && this.state.colissimo_service == item.value) {\n checked = true;\n } else if (!this.state.colissimo_service) {\n if (product_code == item.value) {\n checked = true;\n }\n } \n } \n return (\n this.handleChangeWithValue(\"colissimo_service\", item.value)} />\n );\n });\n\n var payment_status_badge = '';\n\n if (payment_status == 'PARTIALLY_REFUNDED') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'FULLY_REFUNDED') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PENDING') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'NOT_PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PARTIALLY_PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'UNSPECIFIED_PAYMENT_STATUS') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n }\n\n return (\n \n \n \n \n \n {I18n.t('order_list.sheet.carrier')}\n {order_shipping_line && order_shipping_line.delivery_option}\n \n {I18n.t('order_list.sheet.address')}\n {pickup_point === false &&\n \n
{first_name && first_name} {last_name && last_name}
\n {company &&
{company}
}\n {address1 &&
{address1}
}\n {address2 &&
{address2}
}\n {zip &&
{zip} {city}
} \n {country &&
{country}
}\n {phone &&
{phone}
}\n this.changeAddress(order.order_shipping)}>{I18n.t('order_list.change')}\n
\n }\n {pickup_point !== false && \n \n
{I18n.t('order_list.pickup_point_number')} {pickup_point.colissimo_id}
\n
{first_name && first_name} {last_name && last_name}
\n {pickup_point.company_name &&
{pickup_point.company_name}
}\n {pickup_point.address1 &&
{pickup_point.address1}
}\n {pickup_point.address2 &&
{pickup_point.address2}
}\n {pickup_point.zipcode &&
{pickup_point.zipcode} {pickup_point.city}
} \n {pickup_point.country &&
{pickup_point.country}
}\n {pickup_point.phone &&
{pickup_point.phone}
}\n this.changeAddressPickup(pickup_point)}>{I18n.t('order_list.change_pickup_info')}\n this.changeService(id, order.order_shipping, 'PICKUP')}>{I18n.t('order_list.change_pickup')}\n
\n }\n \n {I18n.t('order_list.sheet.change_service')}\n {I18n.t('order_list.sheet.choose_service')}\n
\n {renderCheckboxes}\n \n
\n {this.state.colissimo_service && \n \n }\n
\n
\n
\n \n );\n };\n\n renderSheetChangeOffer = (order) => {\n const sheetActive = this.state.sheetActive;\n const { \n id,\n wix_order_number,\n payment_status,\n } = order.order\n\n const {\n address1,\n address2,\n city,\n company,\n country,\n first_name,\n last_name,\n phone,\n country_code,\n zip\n } = order.order_shipping\n\n const pickup_point = order.pickup_point\n\n var payment_status_badge = '';\n\n if (payment_status == 'PARTIALLY_REFUNDED') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'FULLY_REFUNDED') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PENDING') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'NOT_PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PARTIALLY_PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'UNSPECIFIED_PAYMENT_STATUS') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n }\n\n //console.log(order.order_shipping_line[0]);\n const order_shipping_line = (order.order_shipping_line[0] ? order.order_shipping_line[0] : false);\n\n const code_offer = (order.code_offer == '0' ? 'DPD' : 'LOCAL');\n\n const img_dpd = \n\n switch (country_code) {\n case 'DE':\n var icon_offer = ;\n break;\n case 'AT':\n var icon_offer = ;\n break;\n case 'IT':\n var icon_offer = ;\n break;\n case 'LU':\n var icon_offer = ;\n break;\n default:\n var icon_offer = ;\n }\n\n return (\n \n \n \n \n \n {I18n.t('order_list.sheet.carrier')}\n {order_shipping_line && order_shipping_line.delivery_option}\n \n {I18n.t('order_list.sheet.address')}\n {pickup_point === false &&\n \n
{first_name && first_name} {last_name && last_name}
\n {company &&
{company}
}\n {address1 &&
{address1}
}\n {address2 &&
{address2}
}\n {zip &&
{zip} {city}
} \n {country &&
{country}
}\n {phone &&
{phone}
}\n this.changeAddress(order.order_shipping)}>{I18n.t('order_list.change')}\n
\n }\n {pickup_point !== false && \n \n
{I18n.t('order_list.pickup_point_number')} {pickup_point.colissimo_id}
\n
{first_name && first_name} {last_name && last_name}
\n {pickup_point.company_name &&
{pickup_point.company_name}
}\n {pickup_point.address1 &&
{pickup_point.address1}
}\n {pickup_point.address2 &&
{pickup_point.address2}
}\n {pickup_point.zipcode &&
{pickup_point.zipcode} {pickup_point.city}
} \n {pickup_point.country &&
{pickup_point.country}
}\n {pickup_point.phone &&
{pickup_point.phone}
}\n this.changeAddressPickup(pickup_point)}>{I18n.t('order_list.change_pickup_info')}\n this.changeService(id, order.order_shipping, 'PICKUP')}>{I18n.t('order_list.change_pickup')}\n
\n }\n \n {I18n.t('order_list.sheet.change_service')}\n {I18n.t('order_list.sheet.choose_service')}\n
\n this.handleChangeWithValue(\"colissimo_international_offer\", 'DPD')} />\n this.handleChangeWithValue(\"colissimo_international_offer\", 'LOCAL')} />\n \n
\n {this.state.colissimo_international_offer && \n \n }\n
\n
\n
\n \n );\n };\n\n /* RENDER ORDER DETAIL */\n renderSheet = (order) => {\n const sheetActive = this.state.sheetActive;\n const { \n id,\n wix_order_number,\n payment_status,\n total_price,\n currency\n } = order.order\n\n const formatter = new Intl.NumberFormat('fr-FR', {\n style: 'currency',\n currency: currency\n });\n\n const {\n address1,\n address2,\n city,\n company,\n country,\n first_name,\n last_name,\n phone,\n zip\n } = order.order_shipping\n\n const order_lines = order.order_line_items\n\n const pickup_point = order.pickup_point\n\n const order_shipping_line = (order.order_shipping_line[0] ? order.order_shipping_line[0] : false);\n\n var payment_status_badge = '';\n\n if (payment_status == 'PARTIALLY_REFUNDED') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'FULLY_REFUNDED') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PENDING') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'NOT_PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PARTIALLY_PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'UNSPECIFIED_PAYMENT_STATUS') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n }\n \n let sum = 0;\n const unfulfill_lines = order_lines.filter(line => (line.fulfillable_quantity !== 0 && payment_status != 'FULLY_REFUNDED')).map(line => {\n sum += parseFloat(parseFloat(line.weight * 1000) * parseInt((this.state[\"fulfillable[\"+id+\"][\"+line.id+\"]\"] ? this.state[\"fulfillable[\"+id+\"][\"+line.id+\"]\"] : line.fulfillable_quantity)));\n return (\n \n {line.name}\n {formatter.format(`${line.price}`)} x {line.quantity} - {I18n.t('order_list.sheet.weight')} {parseFloat(line.weight * 1000) * parseInt(line.fulfillable_quantity)} {I18n.t('order_list.sheet.grams')}\n SKU : {line.sku}\n \n {I18n.t('order_list.sheet.qty_to_fulfill')}\n \n \n \n \n \n );\n });\n\n const fulfill_lines = order_lines.filter(line => (line.fulfillable_quantity === 0 || (line.quantity - line.fulfillable_quantity) > 0 || payment_status == 'FULLY_REFUNDED')).map(line => {\n return (\n \n {line.name}\n {formatter.format(`${line.price}`)} x {line.quantity}\n SKU : {line.sku}\n \n {I18n.t('order_list.sheet.qty_fulfilled_refunded')} {line.quantity - line.fulfillable_quantity}\n \n \n \n \n \n );\n });\n\n return (\n \n \n \n \n \n {I18n.t('order_list.sheet.carrier')}\n {order_shipping_line && order_shipping_line.delivery_option}\n \n {I18n.t('order_list.sheet.address')}\n {pickup_point === false &&\n \n
{first_name && first_name} {last_name && last_name}
\n {company &&
{company}
}\n {address1 &&
{address1}
}\n {address2 &&
{address2}
}\n {zip &&
{zip} {city}
} \n {country &&
{country}
}\n {phone &&
{phone}
}\n this.changeAddress(order.order_shipping)}>{I18n.t('order_list.change')}\n
\n }\n {pickup_point !== false && \n \n
{I18n.t('order_list.pickup_point_number')} {pickup_point.colissimo_id}
\n
{first_name && first_name} {last_name && last_name}
\n {pickup_point.company_name &&
{pickup_point.company_name}
}\n {pickup_point.address1 &&
{pickup_point.address1}
}\n {pickup_point.address2 &&
{pickup_point.address2}
}\n {pickup_point.zipcode &&
{pickup_point.zipcode} {pickup_point.city}
} \n {pickup_point.country &&
{pickup_point.country}
}\n {pickup_point.phone &&
{pickup_point.phone}
}\n this.changeAddressPickup(pickup_point)}>{I18n.t('order_list.change_pickup_info')}\n this.changeService(id, order.order_shipping, 'PICKUP')}>{I18n.t('order_list.change_pickup')}\n
\n }\n \n {unfulfill_lines.length > 0 &&\n \n \n {unfulfill_lines}\n }\n {fulfill_lines.length > 0 &&\n \n \n {fulfill_lines}\n \n }\n \n {`Total ${formatter.format(total_price)}`}\n \n\n {unfulfill_lines.length > 0 &&\n \n \n \n {I18n.t('order_list.sheet.global_weight')}\n \n
 
\n \n
\n
\n }\n
\n
\n
\n \n );\n };\n\n /* RENDER ORDER DETAIL */\n renderSheetLabels = (data) => {\n const sheetActive = this.state.sheetActive;\n const { \n id,\n wix_order_number,\n payment_status,\n total_weight,\n country_code,\n } = data.order[0]\n\n const options = {\n year: 'numeric', month: 'numeric', day: 'numeric',\n hour: 'numeric', minute: 'numeric', second: 'numeric',\n hour12: false,\n timeZone: this.props.shop.time_zone\n };\n\n const tare = this.props.config.packing_tare ? this.props.config.packing_tare : 0;\n const totalWeight = this.state[\"weight\"+id] !== undefined ? this.state[\"weight\"+id] : (parseFloat(total_weight) ? (parseFloat(total_weight) * 1000 + parseInt(tare)) : (this.props.config ? parseInt(this.props.config.default_weight) : 1000));\n const return_available = ((this.props.config !== null && this.props.config.sender_iso_country == 'FR' && this.props.iso_return_available.indexOf(country_code) === -1 && this.props.iso_fr.indexOf(country_code) === -1) || (this.props.config !== null && this.props.config.sender_iso_country != 'FR' && this.props.iso_dom_return_available.indexOf(country_code) === -1)) ? false : true;\n\n const labels_lines = data.labels.map(line => {\n return (\n \n \n {I18n.t('order_list.sheet.tracking_number')} {line.shipping_number}\n \n {I18n.t('order_list.sheet.created_label')}{new Intl.DateTimeFormat('default', options).format(new Date(line.created_at))}\n {line.partial == true &&\n {I18n.t('order_list.sheet.partial_fulfilled')}\n }\n {line.print_at &&\n {I18n.t('order_list.sheet.print_at')}{new Intl.DateTimeFormat('default', options).format(new Date(line.print_at))}\n }\n {line.file_deleted == true &&\n {I18n.t('order_list.sheet.file_delete_at')}{new Intl.DateTimeFormat('default', options).format(new Date(line.updated_at))}\n }\n {line.cn23 == true && line.file_deleted != true &&\n {I18n.t('order_list.print_cn23')}\n }\n {(line.file_deleted != true && line.coliship != true) &&\n \n \n \n \n \n {I18n.t('order_list.label_weight')}\n \n \n {( this.props.config.use_thermal_printer == true) && \n }\n onClick={(e) => this.printLabel(line.id)}\n >\n {I18n.t('order_list.print')}\n \n }\n {( this.props.config.use_thermal_printer == false) && \n }\n as=\"a\" href={`/colissimo-label/${line.id}/${this.props.shop.instance_id}`} target=\"_blank\"\n >\n {I18n.t('order_list.print')}\n \n }\n  }\n onClick={(e) => {this.setState({modalRegenerate: true}); this.regenerateLabel(line.order_id,line.id)}}\n >\n {I18n.t('order_list.regenerate')}\n \n \n \n }\n \n \n \n \n );\n });\n\n const labels_return_lines = data.labels_return.map(line => {\n return (\n \n \n {I18n.t('order_list.sheet.tracking_number')}  {line.shipping_number}\n \n {I18n.t('order_list.sheet.created_label')}{new Intl.DateTimeFormat('default', options).format(new Date(line.created_at))}\n {line.partial == true &&\n {I18n.t('order_list.sheet.partial_fulfilled')}\n }\n {line.print_at &&\n {I18n.t('order_list.sheet.print_at')}{new Intl.DateTimeFormat('default', options).format(new Date(line.print_at))}\n }\n {line.file_deleted == true &&\n {I18n.t('order_list.sheet.file_delete_at')}{new Intl.DateTimeFormat('default', options).format(new Date(line.updated_at))}\n }\n {line.cn23 == true && line.file_deleted != true &&\n {I18n.t('order_list.print_cn23')}\n }\n {(line.file_deleted != true && line.coliship != true) &&\n \n \n \n \n \n {I18n.t('order_list.label_weight')}\n \n \n {( this.props.config.use_thermal_printer == true) && \n }\n onClick={(e) => this.printLabel(line.id)}\n >\n {I18n.t('order_list.print')}\n \n }\n {( this.props.config.use_thermal_printer == false) && \n }\n as=\"a\" href={`/colissimo-label/${line.id}/${this.props.shop.instance_id}`} target=\"_blank\"\n >\n {I18n.t('order_list.print')}\n \n }\n  }\n onClick={(e) => {this.setState({modalRegenerateReturn: true}); this.regenerateLabelReturn(line.order_id,line.id)}}\n >\n {I18n.t('order_list.regenerate')}\n \n \n \n }\n \n \n \n \n );\n });\n\n var payment_status_badge = '';\n\n if (payment_status == 'PARTIALLY_REFUNDED') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'FULLY_REFUNDED') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PENDING') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'NOT_PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'PARTIALLY_PAID') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n } else if (payment_status == 'UNSPECIFIED_PAYMENT_STATUS') {\n payment_status_badge = ({I18n.t('order_list.sheet.title')} #{wix_order_number} {I18n.t(`${payment_status}`)});\n }\n\n return (\n \n \n \n \n \n {data.labels.length > 0 &&\n \n \n {labels_lines}\n \n }\n {data.labels.length <= 0 &&\n
\n \n \n \n \n {I18n.t('order_list.label_weight')}\n \n \n }\n onClick={(e) => this.generateLabel(id)}\n >\n {I18n.t('order_list.generate')}\n \n \n
\n }\n {data.labels_return.length > 0 &&\n \n \n {labels_return_lines}\n \n }\n {data.labels_return.length <= 0 &&\n (return_available === true ? (\n
\n \n \n \n \n {I18n.t('order_list.label_weight')}\n \n \n }\n onClick={(e) => this.generateLabelReturn(id)}\n >\n {I18n.t('order_list.generate_return')}\n \n \n
) : (\n {I18n.t('order_list.sheet.unavailable_return')}\n ))\n }\n
\n
\n
\n \n );\n };\n\n renderColumnOrderNumber = (row) => {\n const {id, wix_order_number, payment_status, wix_order_created_at, commercial_name, error_generate_label, error_generate_label_message, number_label, country_code, province_code} = row;\n\n const options = {\n year: 'numeric', month: 'numeric', day: 'numeric',\n hour: 'numeric', minute: 'numeric', second: 'numeric',\n hour12: false,\n timeZone: this.props.shop.time_zone\n };\n\n const cn23 = ((this.props.config !== null && this.props.config.sender_iso_country == 'FR' && this.props.iso_eu_countries_no_cn23.indexOf(country_code) === -1 && this.props.iso_fr.indexOf(country_code) === -1) || (this.props.config !== null && this.props.config.sender_iso_country != 'FR' && this.props.iso_dom_countries_no_cn23.indexOf(country_code) === -1) || (this.props.config !== null && this.props.config.sender_iso_country == 'FR' && country_code == 'ES' && this.props.province_code_cn23.indexOf(province_code) > -1 )) ? (\n \n  {I18n.t('order_list.cn23_alert')}\n ) : null;\n\n return (\n
\n \n {error_generate_label === true &&\n \n }\n this.handleToggleSheet(id)}>#{wix_order_number}\n {payment_status == 'PARTIALLY_REFUNDED' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'PAID' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'FULLY_REFUNDED' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'PENDING' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'NOT_PAID' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'PARTIALLY_PAID' && \n {I18n.t(`${payment_status}`)}\n }\n {payment_status == 'UNSPECIFIED_PAYMENT_STATUS' && \n {I18n.t(`${payment_status}`)}\n }\n \n \n {new Intl.DateTimeFormat('default', options).format(new Date(wix_order_created_at))}\n \n \n {commercial_name !== null && commercial_name !== '' ? commercial_name : I18n.t('order_list.no_colissimo_order')} this.handleToggleSheet(id, 'change')}>{I18n.t('order_list.change')}\n \n {number_label > 0 && \n \n } size=\"small\" skin=\"premium\" onClick={(e) => this.handleToggleSheet(id, 'labels')}>{I18n.t('order_list.label_available')}\n }\n {number_label == 0 &&\n cn23\n }\n
\n );\n }\n\n renderColumnCustomer = (row) => {\n const {id, full_name, email, product_code, country_code, international_offer} = row;\n\n if (this.props.config !== null && this.props.config.sender_iso_country == 'FR' && this.props.dpd_eligibility.indexOf(country_code) > -1 && product_code == 'DOS') {\n var icon_offer = ;\n\n if (international_offer == '1') {\n switch (country_code) {\n case 'DE':\n var icon_offer = ;\n break;\n case 'AT':\n var icon_offer = ;\n break;\n case 'IT':\n var icon_offer = ;\n break;\n case 'LU':\n var icon_offer = ;\n break;\n default:\n var icon_offer = ;\n }\n }\n }\n\n return (\n
\n \n {full_name}\n \n \n {email}\n \n {(this.props.config !== null && this.props.config.sender_iso_country == 'FR' && this.props.dpd_eligibility.indexOf(country_code) > -1 && product_code == 'DOS') &&\n via {icon_offer} this.handleToggleSheet(id, 'change_offer')}>{I18n.t('order_list.change')}\n }\n
\n );\n }\n\n capitalize = (str) => {\n const lower = str.toLowerCase();\n return str.charAt(0).toUpperCase() + lower.slice(1);\n }\n\n renderColumnFulfillment = (row) => {\n const {fulfillment_status, country_code, country} = row;\n\n return (\n
\n \n {fulfillment_status == 'FULFILLED' && \n {I18n.t(`${fulfillment_status}`)}\n }\n {fulfillment_status == 'NOT_FULFILLED' && \n {I18n.t(`${fulfillment_status}`)}\n }\n {fulfillment_status == 'CANCELED' && \n {I18n.t(`${fulfillment_status}`)}\n }\n {fulfillment_status == 'PARTIALLY_FULFILLED' && \n {I18n.t(`${fulfillment_status}`)}\n }\n \n \n {(typeof country != 'undefined' && country != null) ? ({this.capitalize(country)}) : ('')}\n \n {(typeof country_code != 'undefined' && country_code != null) ? (
) : (' ')}\n
\n );\n }\n\n renderColumnWeight = (row) => {\n const {id, total_weight} = row;\n\n const tare = this.props.config.packing_tare ? this.props.config.packing_tare : 0;\n const totalWeight = this.state[\"weight\"+id] !== undefined ? this.state[\"weight\"+id] : (parseFloat(total_weight) ? (parseFloat(total_weight) * 1000 + parseInt(tare)) : (this.props.config ? parseInt(this.props.config.default_weight) : 1000));\n\n return (\n
\n \n \n \n \n {I18n.t('order_list.label_weight')}\n \n
\n );\n }\n\n renderColumnActions = (row) => {\n const {id, number_label, fulfillment_status,coliship} = row;\n\n return (\n
\n {(number_label == 0 && fulfillment_status != 'FULFILLED') &&\n }\n onClick={(e) => this.generateLabel(id)}\n >\n {I18n.t('order_list.generate')}\n \n }\n {(number_label == 0 && fulfillment_status == 'FULFILLED') &&\n \n }\n >\n {I18n.t('order_list.generate')}\n \n \n }\n >\n }\n onClick={(e) => this.generateLabel(id)}\n />\n }\n onClick={(e) => this.generateLabelReturn(id)}\n />\n \n }\n {(number_label == 1 && coliship !== true) &&\n
\n {( this.props.config.use_thermal_printer == true) && \n }\n onClick={(e) => this.printLabelByOrder(id)}\n >\n {I18n.t('order_list.print')}\n \n }\n {( this.props.config.use_thermal_printer == false) && \n }\n as=\"a\" href={`/colissimo-label-by-order/${id}/${this.props.shop.instance_id}`} target=\"_blank\"\n >\n {I18n.t('order_list.print')}\n \n }\n
\n }\n {number_label > 1 &&\n }\n onClick={(e) => this.handleToggleSheet(id, 'labels')}\n >\n {I18n.t('order_list.details')}\n \n }\n
\n );\n }\n\n renderColumnOptions = (row) => {\n const {id, country_code, product_code, total_price, height, width, length, description} = row;\n\n const checkedInsurance = this.state[\"insurance\"+id] !== undefined ? this.state[\"insurance\"+id] : (this.props.config ? (this.props.config.insure_shipments && total_price >= this.props.config.amount_to_insurance ? this.props.config.insure_shipments : false) : false);\n const checkedReturn = this.state[\"return\"+id] !== undefined ? this.state[\"return\"+id] : (this.props.config ? this.props.config.auto_print_return_label : false);\n const checkedMachinable = this.state[\"machinable\"+id];\n const checkedFtd = this.state[\"ftd\"+id];\n\n const ftd = this.props.iso_outre_mer.indexOf(country_code) === -1 ? false : true;\n \n if ((product_code == '' || product_code == null) && this.props.iso_no_worldwide.indexOf(country_code) === -1) {\n var productCode = 'COLI';\n } else if (product_code == '' || product_code == null) {\n var productCode = 'DOM'\n } else {\n var productCode = product_code;\n }\n\n const ddp = (this.props.delivery_duty_paid.indexOf(country_code) > -1 && (productCode == 'DOS' || productCode == 'COLI')) ? true : false;\n\n const insurance_available = (this.props.insurable_products.indexOf(productCode) >= 0 || (productCode == 'DOS' && country_code == 'FR')) ? true : false;\n const return_available = ((this.props.config !== null && this.props.config.sender_iso_country == 'FR' && this.props.iso_return_available.indexOf(country_code) === -1 && this.props.iso_fr.indexOf(country_code) === -1) || (this.props.config !== null && this.props.config.sender_iso_country != 'FR' && this.props.iso_dom_return_available.indexOf(country_code) === -1)) ? false : true;\n\n return (\n \n \n this.handleChangeWithValue(`insurance${id}`, !checkedInsurance)}\n disabled={!insurance_available}\n />\n
\n {I18n.t('order_list.insurance')}\n
\n
\n \n this.handleChangeWithValue(`return${id}`, !checkedReturn)}\n disabled={!return_available}\n />\n
\n {I18n.t('order_list.return_label')}\n
\n
\n \n this.handleChangeWithValue(`machinable${id}`, !checkedMachinable)}\n />\n
\n {I18n.t('order_list.machinable_label')}\n
\n
\n {ftd === true ? (\n \n this.handleChangeWithValue(`ftd${id}`, !checkedFtd)}\n />\n
\n {I18n.t('order_list.ftd_label')}\n
\n
\n ) : ''}\n {ddp === true ? (\n
\n this.handleChangeWithValue(`activeddp${id}`)}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.handleChangeWithValue(`activeddp${id}`, false)}\n secondaryButtonOnClick={() => this.handleChangeWithValue(`activeddp${id}`, false)}\n primaryButtonOnClick={() => this.handleChangeDdp(id)}\n title={I18n.t('order_list.modal.ddp_title')}\n content={\n \n \n \n \n 0 ? `${width}` : '')}\n onChange={this.handleChangeDpd}\n />\n \n \n \n \n 0 ? `${height}` : '')}\n onChange={this.handleChangeDpd}\n />\n \n \n \n
\n \n \n \n 0 ? `${length}` : '')}\n onChange={this.handleChangeDpd}\n />\n \n \n \n \n \n {I18n.t('order_list.helptext_description')}\n \n \n \n
\n }\n >\n \n \n this.handleChangeWithValue(`ftd${id}`, !checkedFtd)}\n />\n
\n {I18n.t('order_list.ddp_label')}\n
\n
\n
\n ) : ''}\n\n
\n );\n }\n\n reinitVars = () => {\n this.setState({modalRegenerate: false});\n this.setState({modalRegenerateReturn: false});\n this.setState({regenerate_current_order_id: null});\n this.setState({regenerate_current_label_id: null});\n }\n\n displayModalRegenerate = () => {\n return (\n this.reinitVars()}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.reinitVars()}\n secondaryButtonOnClick={() => this.reinitVars()}\n primaryButtonOnClick={() => this.generateLabel(this.state.regenerate_current_order_id, false, this.state.regenerate_current_label_id, true)}\n title={I18n.t('order_list.modal.regenerate_title')}\n content={\n \n {I18n.t('order_list.modal.regenerate_message')}\n \n }\n >\n \n );\n }\n\n displayModalRegenerateReturn = () => {\n return (\n this.reinitVars()}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.reinitVars()}\n secondaryButtonOnClick={() => this.reinitVars()}\n primaryButtonOnClick={() => this.generateLabelReturn(this.state.regenerate_current_order_id, false, this.state.regenerate_current_label_id, true)}\n title={I18n.t('order_list.modal.regenerate_title')}\n content={\n \n {I18n.t('order_list.modal.regenerate_message')}\n \n }\n >\n \n );\n }\n\n displayModalBulkGenerate = () => {\n return (\n this.setState({modalBulkGenerate: false})}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.setState({modalBulkGenerate: false})}\n secondaryButtonOnClick={() => this.setState({modalBulkGenerate: false})}\n primaryButtonOnClick={() => this.generateBulkLabel()}\n title={I18n.t('order_list.modal.generate_bulk_label_title')}\n content={\n \n {I18n.t('order_list.modal.generate_bulk_label_message')}\n \n }\n >\n \n );\n }\n\n displayModalAddress = (shipping) => {\n return (\n this.setState({modalChangeAddress: false})}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.setState({modalChangeAddress: false})}\n title={I18n.t('order_list.modal.modify_address')}\n content={\n \n \n \n \n 0 ? '' : 'error'}\n name=\"first_name\"\n statusMessage={shipping.first_name !== null && shipping.first_name.length > 0 ? '' : I18n.t('configs.address.firstname_error')}\n tooltipPlacement=\"top-end\"\n value={shipping.first_name}\n onChange={this.handleChangeAddress}\n maxLength=\"35\"\n suffix={{shipping.first_name !== null ? 35 - shipping.first_name.length +`/35` : `35/35`}}\n />\n \n \n \n \n 0 ? '' : 'error'}\n name=\"last_name\"\n statusMessage={shipping.last_name !== null && shipping.last_name.length > 0 ? '' : I18n.t('configs.address.lastname_error')}\n tooltipPlacement=\"top-end\"\n value={shipping.last_name}\n onChange={this.handleChangeAddress}\n suffix={{shipping.last_name !== null ? 35 - shipping.last_name.length +`/35` : `35/35`}}\n />\n \n \n \n \n \n \n {shipping.company !== null ? 35 - shipping.company.length +`/35` : `35/35`}}\n />\n \n \n \n \n 0 ? '' : 'error'}\n name=\"phone\"\n statusMessage={shipping.phone !== null && shipping.phone.length > 0 ? '' : I18n.t('configs.address.phone_error')}\n tooltipPlacement=\"top-end\"\n value={shipping.phone}\n onChange={this.handleChangeAddress}\n />\n {I18n.t('configs.address.phone_help')}\n \n \n \n \n \n 0 ? '' : 'error'}\n name=\"address1\"\n statusMessage={shipping.address1 !== null && shipping.address1.length > 0 ? '' : I18n.t('configs.address.address1_error')}\n tooltipPlacement=\"top-end\"\n value={shipping.address1}\n onChange={this.handleChangeAddress}\n maxLength=\"35\"\n suffix={{shipping.address1 !== null ? 35 - shipping.address1.length +`/35` : `35/35`}}\n />\n \n
\n
\n \n \n {shipping.address2 !== null ? 35 - shipping.address2.length +`/35` : `35/35`}}\n />\n \n
\n
\n \n \n \n 0 ? '' : 'error'}\n name=\"zip\"\n statusMessage={shipping.zip !== null && shipping.zip.length > 0 ? '' : I18n.t('configs.address.postcode_error')}\n tooltipPlacement=\"top-end\"\n value={shipping.zip}\n onChange={this.handleChangeAddress}\n />\n \n \n \n \n 0 ? '' : 'error'}\n name=\"city\"\n statusMessage={shipping.city !== null && shipping.city.length > 0 ? '' : I18n.t('configs.address.city_error')}\n tooltipPlacement=\"top-end\"\n value={shipping.city}\n onChange={this.handleChangeAddress}\n maxLength=\"35\"\n suffix={{shipping.city !== null ? 35 - shipping.city.length +`/35` : `35/35`}}\n />\n \n \n \n

\n \n \n \n \n \n \n \n
\n }\n >\n \n );\n }\n\n displayModalAddressPickup = (shipping) => {\n return (\n this.setState({modalChangeAddressPickup: false})}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.setState({modalChangeAddressPickup: false})}\n title={I18n.t('order_list.modal.modify_address')}\n content={\n \n \n \n \n {shipping.company_name !== null ? 35 - shipping.company_name.length +`/35` : `35/35`}}\n />\n \n \n \n \n 0 ? '' : 'error'}\n name=\"phone\"\n statusMessage={shipping.phone !== null && shipping.phone.length > 0 ? '' : I18n.t('configs.address.phone_error')}\n tooltipPlacement=\"top-end\"\n value={shipping.phone}\n onChange={this.handleChangeAddressPickup}\n />\n {I18n.t('configs.address.phone_help')}\n \n \n \n \n \n 0 ? '' : 'error'}\n name=\"address1\"\n statusMessage={shipping.address1 !== null && shipping.address1.length > 0 ? '' : I18n.t('configs.address.address1_error')}\n tooltipPlacement=\"top-end\"\n value={shipping.address1}\n onChange={this.handleChangeAddressPickup}\n maxLength=\"35\"\n suffix={{shipping.address1 !== null ? 35 - shipping.address1.length +`/35` : `35/35`}}\n />\n \n
\n
\n \n \n {shipping.address2 !== null ? 35 - shipping.address2.length +`/35` : `35/35`}}\n />\n \n
\n
\n \n \n \n 0 ? '' : 'error'}\n name=\"zipcode\"\n statusMessage={shipping.zipcode !== null && shipping.zipcode.length > 0 ? '' : I18n.t('configs.address.postcode_error')}\n tooltipPlacement=\"top-end\"\n value={shipping.zipcode}\n onChange={this.handleChangeAddressPickup}\n />\n \n \n \n \n 0 ? '' : 'error'}\n name=\"city\"\n statusMessage={shipping.city !== null && shipping.city.length > 0 ? '' : I18n.t('configs.address.city_error')}\n tooltipPlacement=\"top-end\"\n value={shipping.city}\n onChange={this.handleChangeAddressPickup}\n maxLength=\"35\"\n suffix={{shipping.city !== null ? 35 - shipping.city.length +`/35` : `35/35`}}\n />\n \n \n \n

\n \n \n \n \n \n \n \n
\n }\n >\n \n );\n }\n\n displayModalImport = () => {\n return (\n this.setState({modalImport: false})}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.setState({modalImport: false})}\n secondaryButtonOnClick={() => this.setState({modalImport: false})}\n primaryButtonOnClick={() => this.handleImportOrders()}\n title={I18n.t('order_list.modal.import_title')}\n content={\n \n {I18n.t('order_list.modal.import_message')}\n
\n \n 0 ? '' : 'error'}\n name=\"import_orders\"\n statusMessage={this.state.import_orders !== null && this.state.import_orders.length > 0 ? '' : I18n.t('order_list.modal.import_order_error')}\n tooltipPlacement=\"top-end\"\n value={this.state.import_orders}\n onChange={this.handleChangeImportOrders}\n />\n \n
\n }\n >\n \n );\n }\n\n disambiguateLabel = (key, value) => {\n const options = {\n year: 'numeric', month: 'numeric', day: 'numeric',\n hour: 'numeric', minute: 'numeric', second: 'numeric',\n hour12: false,\n timeZone: this.props.shop.time_zone\n };\n \n switch (key) {\n case 'weight':\n return `${I18n.t('order_list.filters.weight_label')} ${value[0]} ${I18n.t('order_list.filters.grams')} ${I18n.t('order_list.filters.operator')} ${value[1]} ${I18n.t('order_list.filters.grams')}`;\n case 'fulfillmentStatus':\n return value.map((val) => `${I18n.t(val)}`).join(', ');\n case 'paymentStatus':\n return value.map((val) => `${I18n.t(val)}`).join(', ');\n case 'labelStatus':\n switch (value[0]) {\n case 'unavailable':\n return `${I18n.t('order_list.filters.unavailable_label')}`;\n case 'available':\n return `${I18n.t('order_list.filters.available_label')}`;\n case 'return':\n return `${I18n.t('order_list.filters.return_label')}`;\n default:\n return null;\n }\n case 'printedStatus':\n switch (value[0]) {\n case true:\n return `${I18n.t('order_list.filters.printed')}`;\n case false:\n return `${I18n.t('order_list.filters.unprint')}`;\n default:\n return null;\n }\n case 'closedStatus':\n switch (value[0]) {\n case true:\n return `${I18n.t('order_list.filters.archived_order')}`;\n case false:\n return `${I18n.t('order_list.filters.unarchived_order')}`;\n default:\n return null;\n }\n case 'errorStatus':\n switch (value[0]) {\n case 'error':\n return `${I18n.t('order_list.filters.error_generating_label')}`;\n default:\n return null;\n }\n case 'date':\n switch (value[0]) {\n case 'past_day':\n return `${I18n.t('order_list.filters.date_today')}`;\n case 'past_week':\n return `${I18n.t('order_list.filters.date_past_week')}`;\n case 'past_month':\n return `${I18n.t('order_list.filters.date_past_month')}`;\n case 'past_quarter':\n return `${I18n.t('order_list.filters.date_past_quarter')}`;\n case 'past_year':\n return `${I18n.t('order_list.filters.date_past_year')}`;\n default:\n return null;\n }\n case 'date_from':\n return `${I18n.t('order_list.filters.date_from')} ${new Intl.DateTimeFormat('default', options).format(new Date(value))}`;\n case 'date_to':\n return `${I18n.t('order_list.filters.date_to')} ${new Intl.DateTimeFormat('default', options).format(new Date(value))}`;\n case 'countries':\n return value.map((val) => `${val}`).join(', ');\n case 'services':\n return value.map((val) => `${val}`).join(', ');\n default:\n return value;\n }\n};\n\n render() {\n const {\n orders,\n loading,\n modalChangeAddress,\n modalChangeAddressPickup,\n modalRegenerate,\n modalRegenerateReturn,\n modalBulkGenerate,\n modalImport,\n orderShipping,\n orderShippingPickup,\n filterSide,\n queryValue\n } = this.state;\n\n const columns = [\n {\n title: I18n.t('order_list.order_number'),\n render: (row) => this.renderColumnOrderNumber(row),\n width: 260\n },\n {\n title: I18n.t('order_list.customer'),\n render: (row) => this.renderColumnCustomer(row),\n width: 150\n },\n {\n title: I18n.t('order_list.fulfillmment'),\n render: (row) => this.renderColumnFulfillment(row),\n width: 120,\n align: 'center'\n },\n {\n title: I18n.t('order_list.weight'),\n render: (row) => this.renderColumnWeight(row),\n width: 80\n },\n {\n title: I18n.t('order_list.options'),\n render: (row) => this.renderColumnOptions(row),\n width: 260\n },\n {\n title: I18n.t('order_list.actions'),\n render: (row) => this.renderColumnActions(row),\n width: 120\n }\n ];\n\n const includeFilters = [\n 'queryValue',\n 'paymentStatus',\n 'printedStatus',\n 'fulfillmentStatus',\n 'labelStatus',\n 'closedStatus',\n 'errorStatus',\n 'weight',\n 'date',\n 'date_from',\n 'date_to',\n 'countries',\n 'services'\n ];\n\n const appliedFilters = Object.keys(this.state)\n .filter((key) => !isEmpty(this.state[key]) && includeFilters.indexOf(key) !== -1)\n .map((key) => {\n return {\n id: key,\n value: this.state[key],\n type: key,\n children: this.disambiguateLabel(key, this.state[key]),\n };\n });\n\n const tagExists = ({ type, value }) =>\n this.state[type].some((tag) => tag === value)\n\n const LabelFilter = [\n {\n label: I18n.t('order_list.filters.unavailable_label'),\n value: 'unavailable',\n },\n {\n label: I18n.t('order_list.filters.available_label'),\n value: 'available',\n },\n {\n label: I18n.t('order_list.filters.return_label'),\n value: 'return',\n },\n ];\n\n const PrintedFilter = [\n {\n label: I18n.t('order_list.filters.printed'),\n value: true,\n },\n {\n label: I18n.t('order_list.filters.unprint'),\n value: false,\n },\n ];\n\n const dateFilter = [\n {label: I18n.t('order_list.filters.date_today'), value: 'past_day'},\n {label: I18n.t('order_list.filters.date_past_week'), value: 'past_week'},\n {label: I18n.t('order_list.filters.date_past_month'), value: 'past_month'},\n {label: I18n.t('order_list.filters.date_past_quarter'), value: 'past_quarter'},\n {label: I18n.t('order_list.filters.date_past_year'), value: 'past_year'},\n {label: I18n.t('order_list.filters.date_custom'), value: 'custom'},\n ];\n\n const paginationMarkup =\n this.state.total_page > 1 ? (\n this.handleChangePage(e.page)}\n />\n ) : null;\n\n const emptyStateMarkup = (!orders.length && loading === false) ? (\n \n \n
\n {I18n.t('emptystate.orders.title')}\n {I18n.t('emptystate.orders.text1')}\n {I18n.t('emptystate.orders.url_link1')}\n {I18n.t('emptystate.orders.text2')}\n {I18n.t('emptystate.orders.url_link2')}\n }\n image={\n \n }\n >\n \n
\n ) : undefined;\n \n console.log(this.state.remaining_days);\n return (\n
\n \n }\n actionsBar={\n {this.state.remaining_days !== false &&\n \n } \n \n   \n }\n >\n \n \n \n \n \n \n \n {I18n.t('order_list._tabs.all')} },\n { id: 1, title: {I18n.t('order_list._tabs.without_label')} },\n { id: 2, title: {I18n.t('order_list._tabs.with_label')} },\n { id: 3, title: {I18n.t('order_list._tabs.unfulfilled')} },\n { id: 4, title: {I18n.t('order_list._tabs.error')} },\n ]}\n activeId={this.state.selectedTabConfig}\n type=\"uniformSide\"\n onClick={(value) => this.handleTabChange(value)}\n />\n \n \n \n {this.state.selectedItems.length > 0 &&\n \n \n \n \n \n {this.state.selectedItems.length} {I18n.t('order_list.resources_items_orders_title')} {I18n.t('order_list.selected')}\n \n {I18n.t('order_list.on_total')} {this.state.orders.length}\n \n \n \n \n \n \n \n \n \n this.generateBulkLabelCheckModal()}\n prefixIcon={}\n >\n {I18n.t('order_list.bulk_generate_label')}\n \n \n \n }\n >\n {I18n.t('order_list.more_actions')}\n \n }\n >\n }\n text={I18n.t('order_list.bulk_print_label')}\n onClick={(e) => this.printBulkLabel()}\n />\n }\n text={I18n.t('order_list.bulk_print_return_label')}\n onClick={(e) => this.printBulkReturnLabel()}\n />\n \n \n \n }\n {this.state.selectedItems.length <= 0 &&\n \n \n {this.state.orders.length}{I18n.t('order_list.resources_items_orders_title')}\n \n \n }\n \n \n }\n onClick={(e) => this.toggleActive(\"filterSide\")}\n >\n {I18n.t('order_list.filters.filters')} (9)\n \n \n \n \n \n \n \n \n \n \n \n {I18n.t('order_list.filters.filter_by')}\n this.handleClearAll(),\n }}\n onTagRemove={(e) => this.handleRemove(e)}\n />\n \n \n \n \n \n \n {emptyStateMarkup}\n
\n
\n \n \n {paginationMarkup}\n \n \n \n \n this.handleCloseSheet()}>\n \n \n \n {this.props.payment_status.map((value, key) => (\n this.toggleTag('paymentStatus', value)}\n >\n {I18n.t(value)}\n \n ))}\n this.handleClear('paymentStatus')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n {\n title: I18n.t('order_list.filters.fulfill_status'),\n children: (\n \n {this.props.fulfillment_status.map((value, key) => (\n this.toggleTag('fulfillmentStatus', value)}\n >\n {I18n.t(value)}\n \n ))}\n this.handleClear('fulfillmentStatus')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n {\n title: I18n.t('order_list.filters.labelStatus'),\n children: (\n \n {LabelFilter.map((value, key) => (\n this.toggleTag('labelStatus', value.value)}\n label={value.label}\n />\n ))}\n this.handleClear('labelStatus')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n {\n title: I18n.t('order_list.filters.printedStatus'),\n children: (\n \n {PrintedFilter.map((value, key) => (\n this.toggleTag('printedStatus', value.value)}\n label={value.label}\n />\n ))}\n this.handleClear('printedStatus')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n {\n title: I18n.t('order_list.filters.errorStatus'),\n children: (\n \n this.toggleTag('errorStatus', 'error')}\n label={I18n.t('order_list.filters.errorStatus')}\n />\n this.handleClear('errorStatus')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n {\n title: I18n.t('order_list.filters.countries'),\n children: (\n \n {this.props.countries.map((value, key) => (\n this.toggleTag('countries', value)}\n >\n {this.capitalize(value)}\n \n ))}\n this.handleClear('countries')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n {\n title: I18n.t('order_list.filters.services'),\n children: (\n \n {this.props.services.map((value, key) => (\n this.toggleTag('services', value)}\n >\n {value}\n \n ))}\n this.handleClear('services')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n {\n title: I18n.t('order_list.filters.weight'),\n children: (\n \n { this.toggleTag('weight', e)}}\n />\n this.handleClear('weight')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n {\n title: I18n.t('order_list.filters.date'),\n children: (\n \n {dateFilter.map((value, key) => (\n this.toggleTag('date', value.value)}\n label={value.label}\n />\n ))}\n {this.state.date[0] == 'custom' && \n \n \n \n \n \n \n \n \n }\n this.handleClear('date')}>{I18n.t('order_list.filters.clear')}\n \n ),\n },\n ]}\n />\n \n \n \n {appliedFilters.length} {I18n.t('order_list.filters.filters_applied')}\n this.handleClearAll()}>{I18n.t('order_list.filters.clear_all')}\n \n \n \n \n
\n \n \n \n {!this.state.selectedOrder === false ? this.renderSheet(this.state.selectedOrder) : null}\n {!this.state.selectedLabels === false ? this.renderSheetLabels(this.state.selectedLabels) : null}\n {!this.state.selectedChange === false ? this.renderSheetChange(this.state.selectedChange) : null}\n {!this.state.selectedChangeOffer === false ? this.renderSheetChangeOffer(this.state.selectedChangeOffer) : null}\n this.setState({map_modal: false})}\n shouldCloseOnOverlayClick\n screen=\"desktop\"\n >\n this.setState({map_modal: false})}\n title={I18n.t('front.modal_header')}\n content={\n \n
\n this.handleChange(\"colissimo_order_service_update\")} type=\"hidden\" ref={(orderUpdateWebservice) => { this.orderUpdateWebservice = orderUpdateWebservice }} />\n \n
\n
\n \n \n {I18n.t('front.please_wait')}\n \n
\n
\n }\n />\n \n {modalChangeAddress ? this.displayModalAddress(orderShipping) : null}\n {modalChangeAddressPickup ? this.displayModalAddressPickup(orderShippingPickup) : null}\n {modalRegenerate ? this.displayModalRegenerate() : null}\n {modalRegenerateReturn ? this.displayModalRegenerateReturn() : null}\n {modalBulkGenerate ? this.displayModalBulkGenerate() : null}\n {modalImport ? this.displayModalImport() : null}\n \n );\n }\n}\n\nfunction isEmpty(value) {\n if (Array.isArray(value)) {\n if (value[0] == \"custom\") {\n return true;\n }\n return value.length === 0;\n } else {\n /* Add specific Hack for custom value */\n return value === '' || value == null;\n }\n}\n\nexport default OrderIndex","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport {\n Cell,\n Card,\n Layout,\n MarketingLayout,\n SectionHelper,\n Image,\n Box,\n Text,\n Divider\n} from '@wix/design-system';\n\nimport LogoHappy from \"../../../assets/images/logo.png\";\nimport Aide from \"../../../assets/images/bulle_aide.png\";\nimport LogoColissimo from \"../../../assets/images/colissimo_logo.png\";\n\nclass Contact extends React.Component {\n\n render() {\n return (\n
\n \n \n \n   {I18n.t('support.slide4.bloc1.title')}}\n description={I18n.t('support.slide4.bloc1.text1')}\n size=\"tiny\"\n />\n \n \n \n \n \n \n \n \n {I18n.t('support.slide4.bloc1.text2')}\n \n \n \n

{I18n.t('support.slide4.bloc1.text3')} 02 41 74 20 88


\n

\n {I18n.t('support.slide4.bloc1.text4')}\n

    \n
  • {I18n.t('support.slide4.bloc1.li1')}
  • \n
  • {I18n.t('support.slide4.bloc1.li2')}
  • \n
  • {I18n.t('support.slide4.bloc1.li3')}
  • \n
  • {I18n.t('support.slide4.bloc1.li4')}
  • \n
  • {I18n.t('support.slide4.bloc1.li6')}
  • \n
\n

\n
\n
\n
\n
\n
\n
\n \n \n \n \n   {I18n.t('support.slide4.bloc2.title')}}\n description={I18n.t('support.slide4.bloc2.text1')}\n size=\"tiny\"\n />\n \n \n \n \n \n \n \n \n {I18n.t('support.slide4.bloc2.text2')}\n \n \n \n

{I18n.t('support.slide4.bloc2.text3')}

\n
\n
\n
\n

\n {I18n.t('support.slide4.bloc2.text4')}\n

    \n
  • {I18n.t('support.slide4.bloc1.li1')}
  • \n
  • {I18n.t('support.slide4.bloc1.li2')}
  • \n
  • {I18n.t('support.slide4.bloc1.li3')}
  • \n
  • {I18n.t('support.slide4.bloc1.li4')}
  • \n
  • {I18n.t('support.slide4.bloc1.li6')}
  • \n
\n

\n
\n
\n
\n
\n
\n
\n
\n );\n }\n}\n\nContact.propTypes = {\n renderToast: PropTypes.func,\n toogleToast: PropTypes.func,\n};\n\nexport default Contact","import React from \"react\";\n\nimport {\n Card,\n Image,\n Layout,\n Box,\n Cell,\n Text,\n Accordion\n} from '@wix/design-system';\n\nimport ScreenFAQ3 from \"../../../assets/images/screenFAQ_3.png\";\nimport ScreenFAQ4 from \"../../../assets/images/screenFAQ_4.png\";\nimport ScreenFAQ5 from \"../../../assets/images/screenFAQ_5.png\";\nimport ScreenFAQ6 from \"../../../assets/images/screenFAQ_6.png\";\nimport ScreenFAQ7 from \"../../../assets/images/screenFAQ_7.png\";\n\nclass Faq extends React.Component {\n render() {\n return (\n \n \n \n \n \n {I18n.t('support.slide3.faq1.text1')} 02 41 74 20 88\n \n ),\n },\n {\n title: I18n.t('support.slide3.faq2.title'),\n children: (\n \n {I18n.t('support.slide3.faq2.text1')}\n \n ),\n },\n {\n title: I18n.t('support.slide3.faq3.title'),\n children: (\n \n {I18n.t('support.slide3.faq3.text1')}\n

\n \n
\n ),\n },\n {\n title: I18n.t('support.slide3.faq4.title'),\n children: (\n \n {I18n.t('support.slide3.faq4.text1')}\n

\n \n
\n ),\n },\n {\n title: I18n.t('support.slide3.faq5.title'),\n children: (\n \n {I18n.t('support.slide3.faq5.text1')}\n

\n \n \n
\n ),\n },\n {\n title: I18n.t('support.slide3.faq6.title'),\n children: (\n \n {I18n.t('support.slide3.faq6.text1')}\n

\n \n
\n ),\n },\n {\n title: I18n.t('support.slide3.faq8.title'),\n children: (\n \n {I18n.t('support.slide3.faq8.text1')}\n
\n \n
    \n
  • {I18n.t('support.slide3.faq8.li1')}
  • \n
  • {I18n.t('support.slide3.faq8.li2')}
  • \n
  • {I18n.t('support.slide3.faq8.li3')}
  • \n
  • {I18n.t('support.slide3.faq8.li4')}
  • \n
  • {I18n.t('support.slide3.faq8.li5')}
  • \n
  • {I18n.t('support.slide3.faq8.li6')}
  • \n
  • {I18n.t('support.slide3.faq8.li7')}
  • \n
  • {I18n.t('support.slide3.faq8.li8')}
  • \n
  • {I18n.t('support.slide3.faq8.li9')}
  • \n
  • {I18n.t('support.slide3.faq8.li10')}
  • \n
  • {I18n.t('support.slide3.faq8.li11')}
  • \n
  • {I18n.t('support.slide3.faq8.li12')}
  • \n
  • {I18n.t('support.slide3.faq8.li13')}
  • \n
  • {I18n.t('support.slide3.faq8.li14')}
  • \n
  • {I18n.t('support.slide3.faq8.li15')}
  • \n
  • {I18n.t('support.slide3.faq8.li16')}
  • \n
  • {I18n.t('support.slide3.faq8.li17')}
  • \n
  • {I18n.t('support.slide3.faq8.li18')}
  • \n
  • {I18n.t('support.slide3.faq8.li19')}
  • \n
  • {I18n.t('support.slide3.faq8.li20')}
  • \n
  • {I18n.t('support.slide3.faq8.li21')}
  • \n
  • {I18n.t('support.slide3.faq8.li22')}
  • \n
  • {I18n.t('support.slide3.faq8.li23')}
  • \n
  • {I18n.t('support.slide3.faq8.li24')}
  • \n
  • {I18n.t('support.slide3.faq8.li25')}
  • \n
  • {I18n.t('support.slide3.faq8.li26')}
  • \n
\n
\n
\n ),\n },\n {\n title: I18n.t('support.slide3.faq9.title'),\n children: (\n \n {I18n.t('support.slide3.faq9.text1')}\n
\n \n
    \n
  • {I18n.t('support.slide3.faq9.li1')}
  • \n
  • {I18n.t('support.slide3.faq9.li2')}
  • \n
  • {I18n.t('support.slide3.faq9.li3')}
  • \n
  • {I18n.t('support.slide3.faq9.li4')}
  • \n
  • {I18n.t('support.slide3.faq9.li5')}
  • \n
  • {I18n.t('support.slide3.faq9.li6')}
  • \n
  • {I18n.t('support.slide3.faq9.li7')}
  • \n
\n
\n
\n ),\n },\n ]}\n />\n
\n
\n
\n
\n )\n }\n}\n\nexport default Faq","import React from \"react\";\nimport {\n Card,\n Layout,\n Cell,\n} from '@wix/design-system';\n\nimport HelpBox from \"../../../assets/images/helpBox.png\";\n\nclass General extends React.Component {\n\n render() {\n return (\n \n \n \n \n
\n \n
\n
\n
\n
\n
\n );\n }\n}\n\nexport default General","import React from \"react\";\nimport {\n Page,\n Card,\n Button,\n Text,\n Tabs,\n Image\n} from '@wix/design-system';\n\nimport General from \"./General\";\nimport Faq from \"./Faq\";\nimport Contact from \"./Contact\";\nimport Video from \"./Video\";\nimport LogoColissimo from \"../../../assets/images/Colissimo_Logo_H.png\";\n\nclass Support extends React.Component {\n state = {\n selectTab: 0,\n }\n\n handleSelectedTab = (value) => {\n this.setState({selectTab: value.id});\n }\n\n renderSwitch() {\n switch(this.state.selectTab) {\n case 0:\n return (\n \n );\n case 1:\n return (\n \n );\n case 2:\n return (\n