{"version":3,"sources":["assets/noListImage.jpg","assets/warning-icon.png","assets/loginImage.jpg","assets/imgTopMobile.jpg","assets/box-img.png","assets/clock_img.png","assets/like-img.png","assets/icon_package_empty.png","registerServiceWorker.js","PrivateRoute.js","Error.js","Centralize.js","components/Authenticate.js","components/Callback.js","Utils.js","components/Reports/ShipmentReportExcel.js","hooks/useApi.js","components/FilterPage.js","hooks/useDebounce.js","hooks/useFilter.js","components/Reports/ShipmentReport.js","components/Reports/OrderReturnReportExcel.js","components/Reports/OrderReturnReport.js","components/Reports/BBMShipmentReportExcel.js","components/Reports/BBMShipment.js","components/Reports/Reports.js","components/Dashboard/OrderDashboard.js","components/CollapsibleToggle.js","components/Dashboard/OrderDetailPage.js","components/Dashboard/OrderShipmentDashboard.js","components/Dashboard/OrderShipmentDetail.js","components/Dashboard/OrderReturnDetail.js","components/Dashboard/OrderReturnDashboard.js","components/Dashboard/OrderSubmit.js","components/Dashboard/Dashboard.js","components/Admin/AppStoreConfiguration.js","components/Admin/ShippingConfigurationDetail.js","components/Admin/ShippingConfiguration.js","components/Admin/ShippingTypeConfigurationDetail.js","components/Admin/ShippingTypeConfiguration.js","components/Admin/EmailConfigurations.js","components/Admin/EmailConfigurationsDetail.js","components/Admin/ReasonConfiguration.js","components/Admin/ReasonConfigurationDetail.js","components/Admin/LabelConfiguration.js","components/Admin/LabelConfigurationDetail.js","components/Admin/StatusConfiguration.js","components/Admin/StatusConfigurationDetail.js","components/Admin/Settings.js","components/Public/ReturnLogin.js","components/CollapsiblePublic.js","components/Public/ReturnOrder.js","components/Public/ReturnSubmit.js","components/Public/ReturnConfirmation.js","components/Public/Return.js","App.js","index.js"],"names":["module","exports","isLocalhost","Boolean","window","location","hostname","match","registerValidSW","swUrl","navigator","serviceWorker","register","then","registration","onupdatefound","installingWorker","installing","onstatechange","state","controller","console","log","catch","error","PrivateRoute","children","rest","auth","useAuth","token","localStorage","setItem","getItem","render","to","pathname","search","from","ProvideAuth","useProvideAuth","authContext","Provider","value","useContext","createContext","setToken","useState","ErrorPage","props","Banner","title","status","message","Centralize","style","display","alignItems","justifyContent","Authenticate","useLocation","isError","setIsError","isLoading","setIsLoading","isAuthenticated","setIsAuthenticated","app","useAppBridge","redireTo","searchQuery","useEffect","didCancel","async","response","fetch","method","headers","ok","json","redirectToShopifyAuth","top","self","assign","redirectUrl","Redirect","create","dispatch","Action","REMOTE","fetchData","Spinner","accessibilityLabel","size","push","Callback","disambiguateLabel","key","isEmpty","Array","isArray","length","getQueryParameter","name","decodeURIComponent","RegExp","exec","replace","AppStringParam","encode","str","encodeString","decode","urlStr","decoded","decodeString","APPNumberParam","encodeNumber","decodeNumber","dateToOADate","stringDate","date","Date","temp","days","Math","round","setHours","partDay","abs","toFixed","parseFloat","substr","getLabelText","label","labels","undefined","item","find","x","text","ExcelFile","ReactExport","ExcelSheet","ShipmentReportExcel","filename","fileName","hideElement","dataSet","items","data","columns","map","shipmentNumber","orderNumber","timeStamp","numFmt","statusFriendly","shipmentTypeFriendly","sku","quantity","fulfilledQuantity","useApi","url","intialData","urlParams","timestamp","params","setData","loading","cache","post","put","del","useFetch","timeout","useCallback","ret","apiLoading","FilterPage","emptyStateMarkup","EmptySearchResult","description","withIllustration","Page","fullWidth","primaryAction","Card","Section","filters","Filters","appliedFilters","onClearAll","handleFiltersClearAll","hideQueryField","IndexTable","itemCount","selectedItemsCount","allResourcesSelected","selectedResources","promotedBulkActions","onSelectionChange","handleSelectionChange","emptyState","headings","selectable","rowMarkup","hasPrevious","hasNext","Pagination","previousKeys","previousTooltip","onPrevious","nextKeys","nextTooltip","onNext","useDebounce","func","depencyArray","firstUpdate","useRef","timer","setTimeout","current","clearTimeout","useFilter","type","setPage","queryParam","setQueryParam","useQueryParam","filterParam","setFilterParam","ShipmentReport","page","startDate","setFilterStartDate","endDate","setFilterEndDate","filterStatus","setStatusType","typeFilter","setTypeFilter","filterOrderNumber","setFilterOrderNumber","filterSku","setFilterSku","reportData","setReportdata","item1","item2","item3","statusList","typeList","useIndexResourceState","exportCallback","dataStart","month","startMonth","year","startYear","setStartDatePicker","getMonth","getFullYear","endMonth","endYear","setEndDatePicker","selectedStartDates","setSelectedStartDates","start","end","selectedEndDates","setSelectedEndDates","handleStartMonthChange","handleEndMonthChange","handleStartDateChange","toISOString","split","handleEndDateChange","handleStatusChange","handleOrderNumberChange","handleSkuChange","handleTypeChange","handleStartDateRemove","handleEndDateRemove","handleStatusRemove","handleOrderNumberRemove","handleSkuRemove","handleTypeRemove","filter","DatePicker","onChange","onMonthChange","selected","shortcut","ChoiceList","choices","TextField","labelHidden","onRemove","index","id","Row","includes","position","Cell","content","onAction","OrderReturnReportExcel","rma","sendAt","isAdmin","isExpired","returnQuantity","reason","isSealed","taxes","returnedQty","returnedValue","trackingNumber","executionMessage","trackNumberLastStatus","trackNumberLastCheckAt","trackNumberProcessedAt","trackNumberDeliveredAt","trackNumberLastStatusAt","warehouseStatus","OrderReturnReport","returnNumber","filterReturnNumber","setFilterReturnNumber","handleReturnNumberChange","handleReturnNumberRemove","statusLabel","BBMShipmentReportExcel","bbmId","price","priceCost","BBMShipmentReport","Reports","path","useRouteMatch","OrderDashboard","orderNumberFilter","setOrderNumberFilter","statusFilter","setStatusFilter","createdAt","cancelledAt","sentAt","mdnReceivedMessage","orderId","Link","className","primary","TextStyle","variation","CollapsibleToggle","open","setOpen","handleToggle","prevCheck","Button","onClick","ariaExpanded","ariaControls","plain","toLocaleDateString","day","colSpan","Collapsible","transition","duration","timingFunction","expandOnPrint","DataTable","columnContentTypes","rows","associatedProducts","o","OrderDetailPage","useParams","showResendMessage","setShowResendMessage","toggleShowResendMessage","setItems","enabled","setEnabled","history","useHistory","orderReturn","resendCallback","order","fulfillmentsLineItems","lineItemId","returnable","e","currentItems","Object","values","Number","reduce","a","v","handleOnChange","target","keys","associatedReturns","k","products","rowMarkupAssociated","itemsCount","associatedCount","orderNum","SkeletonPage","Layout","SkeletonBodyText","breadcrumbs","marginTop","paddingTop","borderTop","fontWeight","margin","sectioned","resourceName","singular","plural","disabled","forEach","entries","toString","Toast","onDismiss","OrderShipmentDashboard","shipmentNumberFilter","setShipmentNumberFilter","handleShipmentNumberChange","handleShipmentNumberRemove","confirmedAt","reprocessedAt","confirmationMessage","resentStatusFriendly","logicAppId","OrderShipmentDetail","locationSerach","orderItems","secondary","Label","processedAt","OrderReturnDetail","toastMessage","setToastMessage","setStatus","handleStatus","go","paddingRight","approveAt","rejectAt","padding","textAlign","color","monochrome","outline","OrderReturnDashboard","returnNumberFilter","setreturnNumberFilter","handlereturnNumberChange","handlereturnNumberRemove","OrderSubmit","saveError","setSaveError","sealedState","setSealedState","showSaveMessage","setShowSaveMessage","requestObj","OrderID","orderID","OrderNumber","OrderItems","element","objItem","Sku","reasonId","parseInt","shouldBeSealed","toggleShowSaveMessage","handleSubmit","clear","currentIndex","findIndex","every","handleReasonsChange","reasons","handleIsSealedChange","Dashboard","AppStoreConfiguration","now","numberOfMinutesToDelayOrder","numberOfHoursToCancelOrder","notifyCustomerWhenItemsAreShipped","sciLocationID","bestBuyLocationID","returnEligiblePeriod","TextContainer","Form","onSubmit","FormLayout","model","fields","input","config","placeholder","inputMode","onModelUpdate","errors","submit","ShippingConfigurationDetail","urlId","isNaN","loadingCarrier","carrierList","carrierCode","sciCode","isRush","shippingTypeConfigurationId","options","concat","shippingTypeConfiguration","ShippingConfiguration","setTimeStamp","showDeletedMessage","setShowDeletedMessage","titleFilter","setTitleFilter","carrier","carrierFilter","setCarrierFilter","handleTitleChange","handleCarrierChange","handleTitleRemove","handleCarrierRemove","destructive","toggleShowDeletedMessage","ShippingTypeConfigurationDetail","trackingBaseUrl","ShippingTypeConfiguration","EmailConfiguration","types","subject","typeFriendly","EmailConfigurationDetail","template","emailConfiguration","multiline","ReasonConfiguration","returnApprovalRequired","ReasonConfigurationDetail","LabelConfiguration","labelFilter","setLabelFilter","LabelConfigurationDetail","StatusConfiguration","statusName","StatusConfigurationDetail","Settings","ReturnLogin","listError","setListError","email","labelsList","isValid","locationSearch","overflow","src","loginImageTop","alt","aria-label","class","dangerouslySetInnerHTML","__html","loginImage","colImageLike","colImageBox","colImageClock","CollapsiblePublic","rotateChevron","setRotateChevron","enableProducts","setEnableProducts","rotate","transform","product","ReturnOrder","promoSelected","setPromoSelected","formatDate","cursor","marginLeft","textDecoration","document","getElementById","scrollIntoView","isReturnable","fulfillmentsPromoLineItems","selQty","imageUrl","listImage","width","fontSize","promoTitle","promoPrice","iconEmpty","ReturnSubmit","orderReturnSubmit","setOrderReturnSubmit","showSealedCopy","setShowSealedCopy","showSealed","setShowSealed","isFormValid","setIsFormValid","reasonValidations","setReasonValidations","sealedValidations","setSealedValidations","OrderPromoItems","Email","sealed","handleBack","handleRemove","copiedOrder","handleValidations","returnItem","slice","currentValidations","showReasonVisible","currentSealedCopy","warningIcon","marginRight","handleReasonPromoChange","handleIsSealedPromoChange","border","marginBottom","float","ReturnConfirmation","parent","postMessage","JSON","stringify","continueShopping","Return","withRouter","startsWith","mobileNavigationActive","setMobileNavigationActive","toggleMobileNavigationActive","navigationMarkup","Navigation","subNavigationItems","Frame","navigation","showMobileNavigation","onNavigationDismiss","component","host","baseUrl","getElementsByTagName","getAttribute","rootElement","apiKey","process","forceRedirect","IS_EXTERNAL_LINK_REGEX","ReactDOM","basename","AppProvider","i18n","enTranslations","linkComponent","external","ref","test","rel","href","data-primary-link","ReactRouterRoute","Route","URL","origin","addEventListener","get","indexOf","ready","unregister","reload","checkValidServiceWorker","registerServiceWorker"],"mappings":"yGAAAA,EAAOC,QAAU,unI,oBCAjBD,EAAOC,QAAU,IAA0B,0C,wCCA3CD,EAAOC,QAAU,IAA0B,wC,oBCA3CD,EAAOC,QAAU,IAA0B,0C,kBCA3CD,EAAOC,QAAU,s0F,kBCAjBD,EAAOC,QAAU,8iG,kBCAjBD,EAAOC,QAAU,siF,oBCAjBD,EAAOC,QAAU,IAA0B,gD,6WCU3C,MAAMC,EAAcC,QACW,cAA7BC,OAAOC,SAASC,UAEa,UAA7BF,OAAOC,SA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f/t+t2DXsu02CSRwlhsNkcHCTn+87H3jkMPSnyw6C6Hh2kHSvTWv07N0z4ezNf4zpbUOJGtrummlklZXY2V3KxrmtGc4zxQasXyi+W8NSWjF0lrmVJtZrtNLAH2+R+s1Nx2w11Mk2S74VW64yN45Lu0lB13Hyg+W2/iuQ7fpLW3WbDeydTXPiGyHz7uavFVnvOkZO2Rr5q0LWOa0hhaOxB5t1t/G/Q9XWum6dbY0On+kOnaNfXw9P0+mqtvYivDfkvyx0OpbV829fHZe/le10M4AyW4LiUHqtL5YdCa7qr/7al07TrdUfBMJ2sTrDJXNdUFF73RNmFd0slQcjnlnM4dpygvqAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIP/9k=\"","module.exports = __webpack_public_path__ + \"static/media/warning-icon.dfb5a8fb.png\";","module.exports = __webpack_public_path__ + \"static/media/loginImage.4dbee4ed.jpg\";","module.exports = __webpack_public_path__ + \"static/media/imgTopMobile.9380e308.jpg\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD0AAABBCAYAAABigqxTAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDcuMS1jMDAwIDc5LmVkYTJiM2ZhYywgMjAyMS8xMS8xNy0xNzoyMzoxOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRw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5d9m3ojvkD+dwETa7jUajz8aTVA1wAHHl/4renJ5hkbWmrzPsmupHKVY7NZcLQ3cV8qfDx+3l62lJ001JhwC11+JNl4VcKgafGeHwcHmhaTl1sAq+/xfNo5ZBGdZKOrN97tD0Kvf9L2498JyelP+Tn8pIH4SIZV3q+HUB+aluNY4QShG5d96JL2uMmgxIGsurDhcBFD0ipUVcNPFsA2ghSnjfQzdGnUgCfgD4L+eN2MEkUBh4CDVm9w9aBp4Jm3ChuyW1N4HNBb/ivEqkr0uWuiKkOWjeHVrQP5Y6wAlVVQaev12Pff6UDnhHoy4Ty+w043myv0/ebZqmxEB2//xSGUwWsfgH50Q/0F2Z26WVXrYrJjIHZcKaTsxafDMpVeRcZtsL/XBNw/hXURe6SGizxGIn8d7vvDvWT4Ucyua8l8Dfke49ofOM6F+lOrNEP3jwepjvg6Sw+GXbjD83MJsMsparxa/zP4/bbhkGopNSH2uSRJE010UcqZ5nAJ3ZAc2TTHFiaqxzji5kHTUmpzAfvr1O7Sksl6hlGBh31XKy9CHOjSlb5J8AArOay5QM4VOkAAAAASUVORK5CYII=\"","module.exports = __webpack_public_path__ + \"static/media/icon_package_empty.93c33ddd.png\";","// In production, we register a service worker to serve assets from local cache.\r\n\r\n// This lets the app load faster on subsequent visits in production, and gives\r\n// it offline capabilities. However, it also means that developers (and users)\r\n// will only see deployed updates on the \"N+1\" visit to a page, since previously\r\n// cached resources are updated in the background.\r\n\r\n// To learn more about the benefits of this model, read https://goo.gl/KwvDNy.\r\n// This link also includes instructions on opting out of this behavior.\r\n\r\nconst isLocalhost = Boolean(\r\n window.location.hostname === 'localhost' ||\r\n // [::1] is the IPv6 localhost address.\r\n window.location.hostname === '[::1]' ||\r\n // 127.0.0.1/8 is considered localhost for IPv4.\r\n window.location.hostname.match(\r\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\r\n )\r\n);\r\n\r\nexport default function register () {\r\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\r\n // The URL constructor is available in all browsers that support SW.\r\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location);\r\n if (publicUrl.origin !== window.location.origin) {\r\n // Our service worker won't work if PUBLIC_URL is on a different origin\r\n // from what our page is served on. This might happen if a CDN is used to\r\n // serve assets; see https://github.com/facebookincubator/create-react-app/issues/2374\r\n return;\r\n }\r\n\r\n window.addEventListener('load', () => {\r\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\r\n\r\n if (isLocalhost) {\r\n // This is running on localhost. Lets check if a service worker still exists or not.\r\n checkValidServiceWorker(swUrl);\r\n } else {\r\n // Is not local host. Just register service worker\r\n registerValidSW(swUrl);\r\n }\r\n });\r\n }\r\n}\r\n\r\nfunction registerValidSW (swUrl) {\r\n navigator.serviceWorker\r\n .register(swUrl)\r\n .then(registration => {\r\n registration.onupdatefound = () => {\r\n const installingWorker = registration.installing;\r\n installingWorker.onstatechange = () => {\r\n if (installingWorker.state === 'installed') {\r\n if (navigator.serviceWorker.controller) {\r\n // At this point, the old content will have been purged and\r\n // the fresh content will have been added to the cache.\r\n // It's the perfect time to display a \"New content is\r\n // available; please refresh.\" message in your web app.\r\n console.log('New content is available; please refresh.');\r\n } else {\r\n // At this point, everything has been precached.\r\n // It's the perfect time to display a\r\n // \"Content is cached for offline use.\" message.\r\n console.log('Content is cached for offline use.');\r\n }\r\n }\r\n };\r\n };\r\n })\r\n .catch(error => {\r\n console.error('Error during service worker registration:', error);\r\n });\r\n}\r\n\r\nfunction checkValidServiceWorker (swUrl) {\r\n // Check if the service worker can be found. If it can't reload the page.\r\n fetch(swUrl)\r\n .then(response => {\r\n // Ensure service worker exists, and that we really are getting a JS file.\r\n if (\r\n response.status === 404 ||\r\n response.headers.get('content-type').indexOf('javascript') === -1\r\n ) {\r\n // No service worker found. Probably a different app. Reload the page.\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister().then(() => {\r\n window.location.reload();\r\n });\r\n });\r\n } else {\r\n // Service worker found. Proceed as normal.\r\n registerValidSW(swUrl);\r\n }\r\n })\r\n .catch(() => {\r\n console.log(\r\n 'No internet connection found. App is running in offline mode.'\r\n );\r\n });\r\n}\r\n\r\nexport function unregister () {\r\n if ('serviceWorker' in navigator) {\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister();\r\n });\r\n }\r\n}\r\n","import React, { createContext, useContext, useState } from 'react';\r\nimport { Route, Redirect } from 'react-router';\r\n\r\nexport const PrivateRoute = ({ children, ...rest }) => {\r\n let auth = useAuth();\r\n\r\n if(auth.token != null){\r\n localStorage.setItem(\"auth\",auth.token);\r\n }\r\n \r\n if(auth.token == null && localStorage.getItem(\"auth\") != null)\r\n {\r\n auth.token = localStorage.getItem(\"auth\");\r\n }\r\n\r\n return (\r\n \r\n auth.token ? (\r\n children\r\n ): (\r\n \r\n )\r\n }\r\n />\r\n );\r\n}\r\n\r\nexport const ProvideAuth = ({ children }) => {\r\n const auth = useProvideAuth();\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n}\r\n\r\nexport const useAuth = () => {\r\n return useContext(authContext);\r\n}\r\n\r\n/** For more details on\r\n * `authContext`, `ProvideAuth`, `useAuth` and `useProvideAuth`\r\n * refer to: https://usehooks.com/useAuth/\r\n */\r\nconst authContext = createContext();\r\n\r\n\r\nconst useProvideAuth = () => {\r\n const [token, setToken] = useState(null);\r\n\r\n return {\r\n token,\r\n setToken\r\n };\r\n}","import React from 'react';\r\nimport { Banner } from '@shopify/polaris';\r\n\r\nexport const ErrorPage = (props) => {\r\n\r\n return (\r\n \r\n

{props.message}

\r\n \r\n );\r\n}","import React from 'react';\r\n\r\nexport const Centralize = (props) => {\r\n\r\n return (\r\n
\r\n {props.children}\r\n
\r\n );\r\n}\r\n\r\n","import React, { useState, useEffect } from 'react';\r\nimport { useLocation, Redirect as RouteRedirect } from \"react-router-dom\";\r\nimport { useAppBridge } from '@shopify/app-bridge-react';\r\nimport { Redirect } from '@shopify/app-bridge/actions';\r\nimport { Spinner } from '@shopify/polaris';\r\nimport { useAuth } from '../PrivateRoute';\r\nimport { ErrorPage } from '../Error'\r\nimport { Centralize } from '../Centralize'\r\n\r\n\r\nexport const Authenticate = () => {\r\n const location = useLocation();\r\n const [isError, setIsError] = useState(false);\r\n const [isLoading, setIsLoading] = useState(true);\r\n const [isAuthenticated, setIsAuthenticated] = useState(false);\r\n const app = useAppBridge();\r\n const auth = useAuth();\r\n\r\n var redireTo = '/dashboard';\r\n var searchQuery = location.search;\r\n if (location && location.state && location.state.from && location.state.from.pathname) {\r\n redireTo = location.state.from.pathname;\r\n searchQuery = location.state.from.search\r\n }\r\n\r\n useEffect(() => {\r\n let didCancel = false;\r\n\r\n async function fetchData() {\r\n\r\n var response = await fetch(`${process.env.REACT_APP_APIDomain}/ShopifyAuthenticate${searchQuery}`,\r\n {\r\n method: 'POST',\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n })\r\n .then(response => {\r\n if (!response.ok) {\r\n setIsError(true);\r\n } else {\r\n return response.json();\r\n }\r\n \r\n });\r\n\r\n if (!didCancel) { // Ignore if we started fetching something else\r\n // If the current window is the 'parent', change the URL by setting location.href\r\n if(!isError && response) {\r\n if (response.redirectToShopifyAuth) {\r\n if (window.top === window.self) {\r\n window.location.assign(response.redirectUrl);\r\n } else { // If the current window is the 'child', change the parent's URL with Shopify App Bridge's Redirect action\r\n Redirect.create(app).dispatch(Redirect.Action.REMOTE, response.redirectUrl);\r\n }\r\n } else if (response.isAuthenticated) {\r\n auth.setToken(response.token);\r\n setIsAuthenticated(true);\r\n setIsLoading(false);\r\n }\r\n } else {\r\n setIsLoading(false);\r\n } \r\n } \r\n }\r\n\r\n fetchData();\r\n return () => { didCancel = true; }; // Remember if we start fetching something else\r\n }, []);\r\n\r\n return (\r\n \r\n {isLoading ?\r\n \r\n :\r\n isAuthenticated && !isError? : \r\n }\r\n \r\n );\r\n}","import React, { useState, useEffect } from 'react';\r\nimport { useLocation, Redirect as RouteRedirect } from \"react-router-dom\";\r\nimport { Spinner } from '@shopify/polaris';\r\nimport { useAuth } from '../PrivateRoute';\r\nimport { Centralize } from '../Centralize'\r\n\r\nexport const Callback = () => {\r\n const location = useLocation();\r\n const [isError, setIsError] = useState(false);\r\n const [isLoading, setIsLoading] = useState(true);\r\n const [isAuthenticated, setIsAuthenticated] = useState(false);\r\n const auth = useAuth();\r\n\r\n var redireTo = '/dashboard';\r\n var searchQuery = location.search;\r\n if (location && location.state && location.state.from && location.state.from.pathname) {\r\n redireTo = location.state.from.pathname;\r\n searchQuery = location.state.from.search\r\n }\r\n\r\n useEffect(() => {\r\n let didCancel = false;\r\n\r\n async function fetchData() {\r\n var response = await fetch(`${process.env.REACT_APP_APIDomain}/ShopifyCallback${searchQuery}`,\r\n {\r\n method: 'POST',\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n })\r\n .then(response => {\r\n if (!response.ok) {\r\n setIsError(true);\r\n } else {\r\n return response.json();\r\n }\r\n \r\n });\r\n\r\n if (!didCancel) { // Ignore if we started fetching something else\r\n // If the current window is the 'parent', change the URL by setting location.href\r\n if (!isError && response && response.isAuthenticated) {\r\n auth.setToken(response.token);\r\n setIsAuthenticated(true);\r\n }\r\n\r\n setIsLoading(false);\r\n } \r\n }\r\n\r\n fetchData();\r\n return () => { didCancel = true; }; // Remember if we start fetching something else\r\n }, []);\r\n\r\n return (\r\n \r\n {\r\n isLoading ? :\r\n isAuthenticated ? : \r\n \r\n }\r\n \r\n );\r\n}","import { encodeString, decodeString, encodeNumber, decodeNumber } from 'use-query-params';\r\n\r\nexport const disambiguateLabel = (key, value) => {\r\n switch (key) {\r\n case 'orderNumber':\r\n return `Order ${value}`;\r\n case 'shipmentNumber':\r\n return `Shipment ${value}`;\r\n case 'status':\r\n return `Status ${value}`;\r\n case 'title':\r\n return `Title ${value}`;\r\n case 'carrier':\r\n return `Carrier ${value}`;\r\n case 'startDate':\r\n return `Start Date ${value}`;\r\n case 'endDate':\r\n return `End Date ${value}`;\r\n case 'type':\r\n return `Type ${value}`;\r\n default:\r\n return value;\r\n }\r\n}\r\n\r\nexport const isEmpty = (value) => {\r\n if (Array.isArray(value)) {\r\n return value.length === 0;\r\n } else {\r\n return value === '' || value == null;\r\n }\r\n}\r\n\r\nexport const getQueryParameter = (name) => {\r\n return decodeURIComponent((new RegExp('[?|&]' + name + '=([^&;]+?)(&|#|;|$)').exec(window.location.search) || [null, ''])[1].replace(/\\+/g, '%20')) || '';\r\n}\r\n\r\nexport const AppStringParam = {\r\n encode: (str) => {\r\n // by replacing these values with undefined, they are removed from the URL\r\n if (str === \"\" || str == null) return undefined;\r\n \r\n return encodeString(str);\r\n },\r\n decode: (urlStr) => {\r\n const decoded = decodeString(urlStr);\r\n \r\n // coerce nully values to empty string for usage in app\r\n if (decoded == null) return \"\";\r\n return decoded;\r\n }\r\n};\r\n\r\nexport const APPNumberParam = {\r\n encode: (str) => {\r\n // by replacing these values with undefined, they are removed from the URL\r\n if (str === \"\" || str == null) return undefined;\r\n \r\n return encodeNumber(str);\r\n },\r\n decode: (urlStr) => {\r\n const decoded = decodeNumber(urlStr);\r\n \r\n // coerce nully values to empty string for usage in app\r\n if (decoded == null) return 0;\r\n return decoded;\r\n }\r\n};\r\n\r\nexport const dateToOADate = (stringDate) => {\r\n var date = new Date(stringDate);\r\n var temp = new Date(date);\r\n // Set temp to start of day and get whole days between dates,\r\n var days = Math.round((temp.setHours(0,0,0,0) - new Date(1899, 11, 30)) / 8.64e7);\r\n // Get decimal part of day, OADate always assumes 24 hours in day\r\n var partDay = (Math.abs((date - temp) % 8.64e7) / 8.64e7).toFixed(10);\r\n return parseFloat(days + partDay.substr(1));\r\n}\r\n\r\n\r\nexport const getLabelText = (label , labels) => { \r\n \r\n if(labels !== undefined){ \r\n var item = labels?.find(x=> x.label === label);\r\n return item?.text;\r\n }\r\n\r\n return \"\";\r\n}\r\n\r\n","import React from \"react\";\r\nimport ReactExport from \"react-data-export\";\r\nimport { dateToOADate } from \"../../Utils\";\r\nconst ExcelFile = ReactExport.ExcelFile;\r\nconst ExcelSheet = ReactExport.ExcelFile.ExcelSheet;\r\n\r\nexport const ShipmentReportExcel = (props) => {\r\n const createDataSet = (items) => {\r\n var set = items.map((item) => {\r\n return [\r\n {value: item.shipmentNumber},\r\n {value: item.orderNumber},\r\n {value: dateToOADate(item.timeStamp), style: {numFmt:\"yyyy-mm-dd h:mm\"}},\r\n {value: item.statusFriendly},\r\n {value: item.shipmentTypeFriendly},\r\n {value: item.sku ?? \"\", style: {numFmt:\"0\"}},\r\n {value: item.title},\r\n {value: item.quantity ?? 0, style: {numFmt:\"0\"}},\r\n {value: item.fulfilledQuantity ?? 0, style: {numFmt:\"0\"}}\r\n ]\r\n })\r\n \r\n return [{\r\n columns: [\r\n { title: 'Shipment Number' },\r\n { title: 'Order Number' },\r\n { title: 'TimeStamp' },\r\n { title: 'Status' },\r\n { title: 'Warehouse' },\r\n { title: 'Sku' },\r\n { title: 'Title' },\r\n { title: 'Quantity' },\r\n { title: 'Fulfilled Quantity' }\r\n ],\r\n data: set\r\n }]\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n );\r\n}","import { useState, useEffect, useCallback } from 'react';\r\nimport useFetch from 'use-http';\r\nimport { useAuth } from '../PrivateRoute';\r\n\r\n\r\nconst useApi = (url, intialData, urlParams, timestamp = '',params) => {\r\n const auth = useAuth();\r\n const [data, setData] = useState(intialData);\r\n const [isLoading, setIsLoading] = useState(true);\r\n \r\n const { response, loading, error, cache, post, put, del} = useFetch(url, {\r\n timeout: 5000,\r\n data: intialData, \r\n headers: {\r\n 'Content-Type': 'application/json',\r\n 'Authorization': `bearer ${auth.token}`\r\n }\r\n });\r\n\r\n const fetchData = useCallback(async () => {\r\n if(urlParams && !params) {\r\n const ret = await post(`${urlParams}${timestamp}`)\r\n if (response.ok) {\r\n setData(ret);\r\n }\r\n }\r\n\r\n if(params){\r\n const ret = await post('', params)\r\n if (response.ok) { \r\n setData(ret); \r\n }\r\n }\r\n \r\n setIsLoading(false);\r\n \r\n }, [post, response,params, urlParams, timestamp]);\r\n\r\n\r\n useEffect(() => { \r\n setIsLoading(true);\r\n fetchData(); \r\n }, [fetchData])\r\n\r\n return {\r\n loading: isLoading,\r\n apiLoading: loading,\r\n error, \r\n data, \r\n setData, \r\n response,\r\n cache, \r\n post, \r\n put,\r\n del \r\n };\r\n};\r\n\r\nexport default useApi;","import React from 'react';\r\nimport { Card, Page, Filters, IndexTable, EmptySearchResult, Pagination } from '@shopify/polaris';\r\nimport { Centralize } from '../Centralize'\r\nimport { ErrorPage } from '../Error'\r\n\r\nconst FilterPage = (props) => { \r\n const emptyStateMarkup = ( props.emptyStateMarkup ? props.emptyStateMarkup : \r\n \r\n );\r\n\r\n return (\r\n \r\n {\r\n props.error? \r\n \r\n \r\n : '' \r\n }\r\n \r\n \r\n {props.filters ?\r\n : \"\"\r\n }\r\n \r\n \r\n {props.rowMarkup}\r\n \r\n \r\n {props.hasPrevious || props.hasNext ? \r\n \r\n \r\n : ''\r\n }\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default FilterPage;\r\n","import { useEffect, useRef } from 'react';\r\n\r\n\r\nconst useDebounce = (func, timeout, depencyArray) => {\r\n const firstUpdate = useRef(true);\r\n useEffect(() => {\r\n const timer = setTimeout(() => {\r\n if (firstUpdate.current) {\r\n firstUpdate.current = false;\r\n } else {\r\n func()\r\n }\r\n }, timeout);\r\n \r\n return () => clearTimeout(timer);\r\n }, depencyArray);\r\n};\r\n\r\nexport default useDebounce;","import { useEffect, useState } from 'react';\r\nimport { useLocation } from 'react-router-dom';\r\nimport { useQueryParam } from 'use-query-params';\r\nimport useDebounce from './useDebounce';\r\n\r\nconst useFilter = (name, type, setPage) => {\r\n const location = useLocation();\r\n\r\n const [queryParam, setQueryParam] = useQueryParam(name, type);\r\n\r\n const [filterParam, setFilterParam] = useState(queryParam);\r\n\r\n useEffect(() => {\r\n if(queryParam !== filterParam) {\r\n setFilterParam(queryParam);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [location.search]);\r\n\r\n useDebounce(() => {\r\n if(queryParam !== filterParam) {\r\n setQueryParam(filterParam);\r\n setPage(0,'replaceIn');\r\n }\r\n }, 500, [filterParam]);\r\n \r\n return [queryParam, filterParam, setFilterParam];\r\n};\r\n\r\nexport default useFilter;","import React, { useCallback, useState } from 'react';\r\nimport { IndexTable, useIndexResourceState, DatePicker, ChoiceList, TextField } from '@shopify/polaris';\r\nimport { useQueryParam } from 'use-query-params';\r\nimport { disambiguateLabel, isEmpty, APPNumberParam, AppStringParam } from '../../Utils'\r\nimport { ShipmentReportExcel } from './ShipmentReportExcel';\r\nimport useApi from '../../hooks/useApi';\r\nimport FilterPage from '../FilterPage';\r\nimport useFilter from '../../hooks/useFilter';\r\n\r\nexport const ShipmentReport = () => {\r\n\r\n const [page, setPage] = useQueryParam('page', APPNumberParam);\r\n const [startDate, , setFilterStartDate] = useFilter('startDate', AppStringParam, setPage);\r\n const [endDate, , setFilterEndDate] = useFilter('endDate', AppStringParam, setPage);\r\n const [status, filterStatus, setStatusType] = useFilter('status', AppStringParam, setPage);\r\n const [type, typeFilter, setTypeFilter] = useFilter('type', AppStringParam, setPage);\r\n const [orderNumber, filterOrderNumber, setFilterOrderNumber] = useFilter('orderNumber', AppStringParam, setPage);\r\n const [sku, filterSku, setFilterSku] = useFilter('sku', AppStringParam, setPage);\r\n const [reportData, setReportdata] = useState(null);\r\n\r\n const {loading, error, data: {item1: hasPrevious, item2: hasNext, item3: data}, response, post } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyOrderShipmentReport`, \r\n {item1:false, item2: false, item3:[]}, \r\n `?page=${page+1}&startDate=${startDate}&endDate=${endDate}&status=${status}&orderNumber=${orderNumber}&sku=${sku}&type=${type}`\r\n );\r\n\r\n const { data: statusList } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyOrderLogListStatus`, [], `?`);\r\n const { data: typeList } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyOrderLogListType`, [], `?`);\r\n\r\n const { selectedResources, allResourcesSelected, handleSelectionChange } = useIndexResourceState(data);\r\n\r\n const exportCallback = useCallback(async () => {\r\n const ret = await post(`/Download?startDate=${startDate}&endDate=${endDate}&status=${status}&orderNumber=${orderNumber}&sku=${sku}`)\r\n if (response.ok) {\r\n setReportdata(ret);\r\n setReportdata(null);\r\n }\r\n }, [post, response, startDate, endDate, status, orderNumber, sku])\r\n\r\n const dataStart = new Date();\r\n const [{month: startMonth, year: startYear}, setStartDatePicker] = useState({month: dataStart.getMonth(), year: dataStart.getFullYear()});\r\n const [{month: endMonth, year: endYear}, setEndDatePicker] = useState({month: dataStart.getMonth(), year: dataStart.getFullYear()});\r\n\r\n const [selectedStartDates, setSelectedStartDates] = useState({start: dataStart, end: dataStart });\r\n const [selectedEndDates, setSelectedEndDates] = useState({start: dataStart, end: dataStart });\r\n\r\n const handleStartMonthChange = useCallback( (month, year) => setStartDatePicker({month, year}), [], );\r\n const handleEndMonthChange = useCallback( (month, year) => setEndDatePicker({month, year}), [], );\r\n\r\n const handleStartDateChange = useCallback(value => {\r\n setSelectedStartDates(value);\r\n setFilterStartDate(value.start.toISOString().split('T')[0]);\r\n } // eslint-disable-next-line react-hooks/exhaustive-deps\r\n , []);\r\n\r\n const handleEndDateChange = useCallback(value => {\r\n setSelectedEndDates(value);\r\n setFilterEndDate(value.start.toISOString().split('T')[0]);\r\n } // eslint-disable-next-line react-hooks/exhaustive-deps\r\n , []);\r\n \r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleStatusChange = useCallback(value => setStatusType(value), []); \r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleOrderNumberChange = useCallback(value => setFilterOrderNumber(value), []); \r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleSkuChange = useCallback(value => setFilterSku(value), []); \r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleTypeChange = useCallback(value => setTypeFilter(value), []); \r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleStartDateRemove = useCallback(() => setFilterStartDate('') , []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleEndDateRemove = useCallback(() => setFilterEndDate('') , []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleStatusRemove = useCallback(() => setStatusType('') , []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleOrderNumberRemove = useCallback(() => setFilterOrderNumber('') , []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleSkuRemove = useCallback(() => setFilterSku('') , []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleTypeRemove = useCallback(() => setTypeFilter('') , []);\r\n \r\n const handleFiltersClearAll = useCallback(() => {\r\n handleStartDateRemove();\r\n handleEndDateRemove();\r\n handleStatusRemove();\r\n handleOrderNumberRemove();\r\n handleSkuRemove();\r\n handleTypeRemove();\r\n }, [\r\n handleStartDateRemove,\r\n handleEndDateRemove,\r\n handleStatusRemove,\r\n handleOrderNumberRemove,\r\n handleSkuRemove,\r\n handleTypeRemove\r\n ]);\r\n\r\n const filters = [{\r\n key: 'startDate',\r\n label: 'Start Date',\r\n filter: \r\n ,\r\n shortcut: true\r\n },\r\n {\r\n key: 'endDate',\r\n label: 'End Date',\r\n filter: \r\n ,\r\n shortcut: true\r\n },\r\n {\r\n key: 'status',\r\n label: 'Status',\r\n filter: \r\n ( {key: value, label: value, value: value}))}\r\n selected={filterStatus}\r\n onChange={handleStatusChange}\r\n />,\r\n shortcut: true\r\n },\r\n {\r\n key: 'type',\r\n label: 'Type',\r\n filter: ( {key: value, label: value, value: value}))}\r\n selected={typeFilter}\r\n onChange={handleTypeChange}\r\n />,\r\n shortcut: true\r\n },\r\n {\r\n key: 'orderNumber',\r\n label: 'Order Number',\r\n filter: ,\r\n shortcut: true\r\n },\r\n {\r\n key: 'sku',\r\n label: 'Sku',\r\n filter: ,\r\n shortcut: true\r\n }];\r\n\r\n const appliedFilters = [];\r\n if (!isEmpty(startDate)) {\r\n const key = 'startDate';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, startDate),\r\n onRemove: handleStartDateRemove\r\n });\r\n }\r\n\r\n if (!isEmpty(endDate)) {\r\n const key = 'endDate';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, endDate),\r\n onRemove: handleEndDateRemove\r\n });\r\n }\r\n\r\n if (!isEmpty(status)) {\r\n const key = 'status';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, status),\r\n onRemove: handleStatusRemove\r\n });\r\n }\r\n\r\n // if (!isEmpty(typeFilter)) {\r\n // const key = 'type';\r\n // appliedFilters.push({\r\n // key,\r\n // label: disambiguateLabel(key, typeFilter),\r\n // onRemove: handleTypeRemove\r\n // });\r\n // }\r\n\r\n if (!isEmpty(orderNumber)) {\r\n const key = 'orderNumber';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, orderNumber),\r\n onRemove: handleOrderNumberRemove\r\n });\r\n }\r\n\r\n if (!isEmpty(sku)) {\r\n const key = 'sku';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, sku),\r\n onRemove: handleSkuRemove\r\n });\r\n }\r\n\r\n const rowMarkup = data.map(\r\n ({ id, shipmentNumber, orderNumber, timeStamp, statusFriendly, sku, title, quantity, fulfilledQuantity,shipmentTypeFriendly }, index) => (\r\n \r\n {shipmentNumber}\r\n {orderNumber}\r\n {timeStamp}\r\n {statusFriendly}\r\n {shipmentTypeFriendly}\r\n {sku}\r\n {title}\r\n {quantity}\r\n {fulfilledQuantity}\r\n \r\n ),\r\n );\r\n\r\n var headings = [\r\n { title: 'Shipment Number' },\r\n { title: 'Order Number' },\r\n { title: 'TimeStamp' },\r\n { title: 'Status' },\r\n { title: 'Warehouse' },\r\n { title: 'Sku' },\r\n { title: 'Title' },\r\n { title: 'Quantity' },\r\n { title: 'Fulfilled Quantity' },\r\n ];\r\n\r\n return (\r\n <>\r\n { setPage(page - 1) }}\r\n hasNext={hasNext}\r\n onNext={() => { setPage(page + 1) }}\r\n />\r\n {reportData != null ? : null }\r\n \r\n );\r\n}","import React from \"react\";\r\nimport ReactExport from \"react-data-export\";\r\nimport { dateToOADate } from \"../../Utils\";\r\nconst ExcelFile = ReactExport.ExcelFile;\r\nconst ExcelSheet = ReactExport.ExcelFile.ExcelSheet;\r\n\r\nexport const OrderReturnReportExcel = (props) => {\r\n console.log(\"report\",props.data);\r\n const createDataSet = (items) => {\r\n var set = items.map((item) => {\r\n return [\r\n {value: item.rma},\r\n {value: item.orderNumber},\r\n {value: item.sendAt === null ? \"\" : dateToOADate(item.sendAt), style: {numFmt:\"yyyy-mm-dd h:mm\"}},\r\n {value: item.isAdmin},\r\n {value: item.isExpired},\r\n {value: item.statusFriendly},\r\n {value: item.sku ?? \"\", style: {numFmt:\"0\"}},\r\n {value: item.title},\r\n {value: item.quantity ?? 0, style: {numFmt:\"0\"}},\r\n {value: item.returnQuantity ?? 0, style: {numFmt:\"0\"}},\r\n {value: item.reason},\r\n {value: item.isSealed},\r\n {value: item.taxes ?? 0},\r\n {value: item.returnedQty ?? 0},\r\n {value: item.returnedValue ?? 0},\r\n {value: item.trackingNumber ?? \"\"},\r\n {value: item.executionMessage ?? \"\"},\r\n {value: item.trackNumberLastStatus ?? \"\"},\r\n {value: item.trackNumberLastCheckAt === null ? \"\" : dateToOADate(item.trackNumberLastCheckAt), style: {numFmt:\"yyyy-mm-dd h:mm\"}},\r\n {value: item.trackNumberProcessedAt === null ? \"\" : dateToOADate(item.trackNumberProcessedAt), style: {numFmt:\"yyyy-mm-dd h:mm\"}},\r\n {value: item.trackNumberDeliveredAt === null ? \"\" : dateToOADate(item.trackNumberDeliveredAt), style: {numFmt:\"yyyy-mm-dd h:mm\"}},\r\n {value: item.trackNumberLastStatusAt === null ? \"\" : dateToOADate(item.trackNumberLastStatusAt), style: {numFmt:\"yyyy-mm-dd h:mm\"}},\r\n {value: item.warehouseStatus ?? \"\"},\r\n ]\r\n })\r\n\r\n \r\n return [{\r\n columns: [\r\n { title: 'RMA' },\r\n { title: 'Order' },\r\n { title: 'Date Initiated' },\r\n { title: 'Admin Initiated' },\r\n { title: 'Expired' }, \r\n { title: 'Status' },\r\n { title: 'Sku' },\r\n { title: 'Title' },\r\n { title: 'Quantity' },\r\n { title: 'Return Quantity' }, \r\n { title: 'Reason for Return' },\r\n { title: 'Sealed Required' },\r\n { title: 'Taxes' },\r\n { title: 'Returned Qty' },\r\n { title: 'Returned Value' },\r\n { title: 'Tracking Number' },\r\n { title: 'Execution Message' },\r\n { title: 'Canada Post Delivery Status' }, \r\n { title: 'Canada Post Delivery Status Date' }, \r\n { title: 'Return Dropoff Date' }, \r\n { title: 'Delivered to SCI' }, \r\n { title: 'Canada Post Last Checked' },\r\n { title: 'Warehouse Status' } \r\n ],\r\n data: set\r\n }]\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n );\r\n}","import React, { useCallback, useState } from 'react';\r\nimport { IndexTable, useIndexResourceState, DatePicker, ChoiceList, TextField } from '@shopify/polaris';\r\nimport { useQueryParam } from 'use-query-params';\r\nimport { disambiguateLabel, isEmpty, APPNumberParam, AppStringParam } from '../../Utils'\r\nimport { OrderReturnReportExcel } from './OrderReturnReportExcel';\r\nimport useApi from '../../hooks/useApi';\r\nimport FilterPage from '../FilterPage';\r\nimport useFilter from '../../hooks/useFilter';\r\n\r\nexport const OrderReturnReport = () => {\r\n\r\n const [page, setPage] = useQueryParam('page', APPNumberParam);\r\n const [startDate, , setFilterStartDate] = useFilter('startDate', AppStringParam, setPage);\r\n const [endDate, , setFilterEndDate] = useFilter('endDate', AppStringParam, setPage);\r\n const [status, filterStatus, setStatusType] = useFilter('status', AppStringParam, setPage);\r\n const [orderNumber, filterOrderNumber, setFilterOrderNumber] = useFilter('orderNumber', AppStringParam, setPage);\r\n const [returnNumber, filterReturnNumber, setFilterReturnNumber] = useFilter('returnNumber', AppStringParam, setPage);\r\n const [sku, filterSku, setFilterSku] = useFilter('sku', AppStringParam, setPage);\r\n const [reportData, setReportdata] = useState(null);\r\n\r\n const {loading, error, data: {item1: hasPrevious, item2: hasNext, item3: data}, response, post } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyOrderReturnReport`, \r\n {item1:false, item2: false, item3:[]}, \r\n `?page=${page+1}&startDate=${startDate}&endDate=${endDate}&status=${status}&orderNumber=${orderNumber}&returnNumber=${returnNumber}&sku=${sku}`\r\n );\r\n\r\n const { data: statusList } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyOrderReturnListStatus`, [], `?`);\r\n\r\n const { selectedResources, allResourcesSelected, handleSelectionChange } = useIndexResourceState(data);\r\n\r\n const exportCallback = useCallback(async () => {\r\n const ret = await post(`/Download?startDate=${startDate}&endDate=${endDate}&status=${status}&orderNumber=${orderNumber}&returnNumber=${returnNumber}&sku=${sku}`)\r\n if (response.ok) {\r\n setReportdata(ret);\r\n setReportdata(null);\r\n }\r\n }, [post, response, startDate, endDate, status, orderNumber,returnNumber, sku])\r\n\r\n const dataStart = new Date();\r\n const [{month: startMonth, year: startYear}, setStartDatePicker] = useState({month: dataStart.getMonth(), year: dataStart.getFullYear()});\r\n const [{month: endMonth, year: endYear}, setEndDatePicker] = useState({month: dataStart.getMonth(), year: dataStart.getFullYear()});\r\n\r\n const [selectedStartDates, setSelectedStartDates] = useState({start: dataStart, end: dataStart });\r\n const [selectedEndDates, setSelectedEndDates] = useState({start: dataStart, end: dataStart });\r\n\r\n const handleStartMonthChange = useCallback( (month, year) => setStartDatePicker({month, year}), [], );\r\n const handleEndMonthChange = useCallback( (month, year) => setEndDatePicker({month, year}), [], );\r\n\r\n const handleStartDateChange = useCallback(value => {\r\n setSelectedStartDates(value);\r\n setFilterStartDate(value.start.toISOString().split('T')[0]);\r\n } // eslint-disable-next-line react-hooks/exhaustive-deps\r\n , []);\r\n\r\n const handleEndDateChange = useCallback(value => {\r\n setSelectedEndDates(value);\r\n setFilterEndDate(value.start.toISOString().split('T')[0]);\r\n } // eslint-disable-next-line react-hooks/exhaustive-deps\r\n , []);\r\n \r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleStatusChange = useCallback(value => setStatusType(value), []); \r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleOrderNumberChange = useCallback(value => setFilterOrderNumber(value), []); \r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleReturnNumberChange = useCallback(value => setFilterReturnNumber(value), []); \r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleSkuChange = useCallback(value => setFilterSku(value), []); \r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleStartDateRemove = useCallback(() => setFilterStartDate('') , []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleEndDateRemove = useCallback(() => setFilterEndDate('') , []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleStatusRemove = useCallback(() => setStatusType('') , []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleOrderNumberRemove = useCallback(() => setFilterOrderNumber('') , []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleReturnNumberRemove = useCallback(() => setFilterReturnNumber('') , []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleSkuRemove = useCallback(() => setFilterSku('') , []); \r\n \r\n const handleFiltersClearAll = useCallback(() => {\r\n handleStartDateRemove();\r\n handleEndDateRemove();\r\n handleStatusRemove();\r\n handleOrderNumberRemove();\r\n handleReturnNumberRemove();\r\n handleSkuRemove(); \r\n }, [\r\n handleStartDateRemove,\r\n handleEndDateRemove,\r\n handleStatusRemove,\r\n handleOrderNumberRemove,\r\n handleSkuRemove,\r\n handleReturnNumberRemove \r\n ]);\r\n\r\n const filters = [{\r\n key: 'startDate',\r\n label: 'Start Date',\r\n filter: \r\n ,\r\n shortcut: true\r\n },\r\n {\r\n key: 'endDate',\r\n label: 'End Date',\r\n filter: \r\n ,\r\n shortcut: true\r\n },\r\n {\r\n key: 'status',\r\n label: 'Status',\r\n filter: \r\n ( {key: item.statusLabel, label: item.statusLabel, value: item.statusLabel}))}\r\n selected={filterStatus}\r\n onChange={handleStatusChange}\r\n />,\r\n shortcut: true\r\n }, \r\n {\r\n key: 'orderNumber',\r\n label: 'Order Number',\r\n filter: ,\r\n shortcut: true\r\n },\r\n {\r\n key: 'returnNumber',\r\n label: 'Return Number',\r\n filter: ,\r\n shortcut: true\r\n },\r\n {\r\n key: 'sku',\r\n label: 'Sku',\r\n filter: ,\r\n shortcut: true\r\n }];\r\n\r\n const appliedFilters = [];\r\n if (!isEmpty(startDate)) {\r\n const key = 'startDate';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, startDate),\r\n onRemove: handleStartDateRemove\r\n });\r\n }\r\n\r\n if (!isEmpty(endDate)) {\r\n const key = 'endDate';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, endDate),\r\n onRemove: handleEndDateRemove\r\n });\r\n }\r\n\r\n if (!isEmpty(status)) {\r\n const key = 'status';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, status),\r\n onRemove: handleStatusRemove\r\n });\r\n }\r\n\r\n if (!isEmpty(orderNumber)) {\r\n const key = 'orderNumber';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, orderNumber),\r\n onRemove: handleOrderNumberRemove\r\n });\r\n }\r\n\r\n if (!isEmpty(returnNumber)) {\r\n const key = 'returnNumber';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, returnNumber),\r\n onRemove: handleReturnNumberRemove\r\n });\r\n }\r\n\r\n if (!isEmpty(sku)) {\r\n const key = 'sku';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, sku),\r\n onRemove: handleSkuRemove\r\n });\r\n }\r\n\r\n const rowMarkup = data.map(\r\n ({ id, rma, orderNumber, sendAt,isAdmin, isExpired, statusFriendly, sku, title, quantity, returnQuantity,reason, isSealed,trackingNumber,taxes,executionMessage,returnedQty,returnedValue,\r\n trackNumberProcessedAt,trackNumberDeliveredAt,trackNumberLastStatusAt,trackNumberLastStatus,trackNumberLastCheckAt,warehouseStatus}, index) => (\r\n \r\n {rma}\r\n {orderNumber}\r\n {sendAt}\r\n {isAdmin}\r\n {isExpired} \r\n {statusFriendly} \r\n {sku} \r\n {title} \r\n {quantity} \r\n {returnQuantity} \r\n {reason} \r\n {isSealed} \r\n {taxes} \r\n {returnedQty} \r\n {returnedValue} \r\n {trackingNumber} \r\n {executionMessage} \r\n {trackNumberLastStatus} \r\n {trackNumberLastCheckAt} \r\n {trackNumberProcessedAt}\r\n {trackNumberDeliveredAt} \r\n {trackNumberLastStatusAt}\r\n {warehouseStatus} \r\n \r\n ),\r\n );\r\n\r\n var headings = [\r\n { title: 'RMA' },\r\n { title: 'Order' },\r\n { title: 'Date Initiated' },\r\n { title: 'Admin Initiated' },\r\n { title: 'Expired' }, \r\n { title: 'Status' },\r\n { title: 'Sku' },\r\n { title: 'Title' },\r\n { title: 'Quantity' },\r\n { title: 'Return Quantity' }, \r\n { title: 'Reason for Return' },\r\n { title: 'Sealed Required' },\r\n { title: 'Taxes' },\r\n { title: 'Returned Qty' },\r\n { title: 'Returned Value' },\r\n { title: 'Tracking Number' },\r\n { title: 'Execution Message' }, \r\n { title: 'Canada Post Delivery Status' }, \r\n { title: 'Canada Post Delivery Status Date' }, \r\n { title: 'Return Dropoff Date' }, \r\n { title: 'Delivered to SCI' }, \r\n { title: 'Canada Post Last Checked' },\r\n { title: 'Warehouse Status' } \r\n ];\r\n\r\n return (\r\n <>\r\n { setPage(page - 1) }}\r\n hasNext={hasNext}\r\n onNext={() => { setPage(page + 1) }}\r\n />\r\n {reportData != null ? : null }\r\n \r\n );\r\n}\r\n","import React from \"react\";\r\nimport ReactExport from \"react-data-export\";\r\nimport { dateToOADate } from \"../../Utils\";\r\nconst ExcelFile = ReactExport.ExcelFile;\r\nconst ExcelSheet = ReactExport.ExcelFile.ExcelSheet;\r\n\r\nexport const BBMShipmentReportExcel = (props) => {\r\n const createDataSet = (items) => {\r\n var set = items.map((item) => {\r\n return [\r\n {value: item.orderNumber},\r\n {value: item.sku ?? \"\", style: {numFmt:\"0\"}}, \r\n {value: item.bbmId}, \r\n {value: item.quantity ?? 0, style: {numFmt:\"0\"}},\r\n {value: dateToOADate(item.timeStamp), style: {numFmt:\"yyyy-mm-dd h:mm\"}}, \r\n {value: item.price ?? 0, style: {numFmt:\"0\"}},\r\n {value: item.priceCost ?? 0, style: {numFmt:\"0\"}}\r\n ]\r\n })\r\n \r\n return [{\r\n columns: [\r\n { title: 'Order Number' },\r\n { title: 'Sku' }, \r\n { title: 'Best Buy Id' },\r\n { title: 'Fulfilled Quantity' },\r\n { title: 'TimeStamp' }, \r\n { title: 'Product Price' },\r\n { title: 'Product Cost' }\r\n ],\r\n data: set\r\n }]\r\n\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n );\r\n}","import React, { useCallback, useState } from 'react';\r\nimport { IndexTable, useIndexResourceState, DatePicker, ChoiceList, TextField } from '@shopify/polaris';\r\nimport { useQueryParam } from 'use-query-params';\r\nimport { disambiguateLabel, isEmpty, APPNumberParam, AppStringParam } from '../../Utils'\r\nimport { BBMShipmentReportExcel } from './BBMShipmentReportExcel';\r\nimport useApi from '../../hooks/useApi';\r\nimport FilterPage from '../FilterPage';\r\nimport useFilter from '../../hooks/useFilter';\r\n\r\nexport const BBMShipmentReport = () => {\r\n\r\n const [page, setPage] = useQueryParam('page', APPNumberParam);\r\n const [startDate, , setFilterStartDate] = useFilter('startDate', AppStringParam, setPage);\r\n const [endDate, , setFilterEndDate] = useFilter('endDate', AppStringParam, setPage);\r\n const [orderNumber, filterOrderNumber, setFilterOrderNumber] = useFilter('orderNumber', AppStringParam, setPage);\r\n const [sku, filterSku, setFilterSku] = useFilter('sku', AppStringParam, setPage);\r\n const [reportData, setReportdata] = useState(null);\r\n\r\n const {loading, error, data: {item1: hasPrevious, item2: hasNext, item3: data}, response, post } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyBBMShipmentReport`, \r\n {item1:false, item2: false, item3:[]}, \r\n `?page=${page+1}&startDate=${startDate}&endDate=${endDate}&orderNumber=${orderNumber}&sku=${sku}`\r\n );\r\n\r\n const { selectedResources, allResourcesSelected, handleSelectionChange } = useIndexResourceState(data);\r\n\r\n const exportCallback = useCallback(async () => {\r\n const ret = await post(`/Download?startDate=${startDate}&endDate=${endDate}&orderNumber=${orderNumber}&sku=${sku}`)\r\n if (response.ok) {\r\n setReportdata(ret);\r\n setReportdata(null);\r\n }\r\n }, [post, response, startDate, endDate, orderNumber, sku])\r\n\r\n const dataStart = new Date();\r\n const [{month: startMonth, year: startYear}, setStartDatePicker] = useState({month: dataStart.getMonth(), year: dataStart.getFullYear()});\r\n const [{month: endMonth, year: endYear}, setEndDatePicker] = useState({month: dataStart.getMonth(), year: dataStart.getFullYear()});\r\n\r\n const [selectedStartDates, setSelectedStartDates] = useState({start: dataStart, end: dataStart });\r\n const [selectedEndDates, setSelectedEndDates] = useState({start: dataStart, end: dataStart });\r\n\r\n const handleStartMonthChange = useCallback( (month, year) => setStartDatePicker({month, year}), [], );\r\n const handleEndMonthChange = useCallback( (month, year) => setEndDatePicker({month, year}), [], );\r\n\r\n const handleStartDateChange = useCallback(value => {\r\n setSelectedStartDates(value);\r\n setFilterStartDate(value.start.toISOString().split('T')[0]);\r\n } // eslint-disable-next-line react-hooks/exhaustive-deps\r\n , []);\r\n\r\n const handleEndDateChange = useCallback(value => {\r\n setSelectedEndDates(value);\r\n setFilterEndDate(value.start.toISOString().split('T')[0]);\r\n } // eslint-disable-next-line react-hooks/exhaustive-deps\r\n , []);\r\n \r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleOrderNumberChange = useCallback(value => setFilterOrderNumber(value), []); \r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleSkuChange = useCallback(value => setFilterSku(value), []); \r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleStartDateRemove = useCallback(() => setFilterStartDate('') , []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleEndDateRemove = useCallback(() => setFilterEndDate('') , []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleOrderNumberRemove = useCallback(() => setFilterOrderNumber('') , []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleSkuRemove = useCallback(() => setFilterSku('') , []);\r\n \r\n const handleFiltersClearAll = useCallback(() => {\r\n handleStartDateRemove();\r\n handleEndDateRemove();\r\n handleOrderNumberRemove();\r\n handleSkuRemove();\r\n }, [\r\n handleStartDateRemove,\r\n handleEndDateRemove,\r\n handleOrderNumberRemove,\r\n handleSkuRemove,\r\n ]);\r\n\r\n const filters = [{\r\n key: 'startDate',\r\n label: 'Start Date',\r\n filter: \r\n ,\r\n shortcut: true\r\n },\r\n {\r\n key: 'endDate',\r\n label: 'End Date',\r\n filter: \r\n ,\r\n shortcut: true\r\n }, \r\n {\r\n key: 'orderNumber',\r\n label: 'Order Number',\r\n filter: ,\r\n shortcut: true\r\n },\r\n {\r\n key: 'sku',\r\n label: 'Sku',\r\n filter: ,\r\n shortcut: true\r\n }];\r\n\r\n const appliedFilters = [];\r\n if (!isEmpty(startDate)) {\r\n const key = 'startDate';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, startDate),\r\n onRemove: handleStartDateRemove\r\n });\r\n }\r\n\r\n if (!isEmpty(endDate)) {\r\n const key = 'endDate';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, endDate),\r\n onRemove: handleEndDateRemove\r\n });\r\n } \r\n\r\n if (!isEmpty(orderNumber)) {\r\n const key = 'orderNumber';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, orderNumber),\r\n onRemove: handleOrderNumberRemove\r\n });\r\n }\r\n\r\n if (!isEmpty(sku)) {\r\n const key = 'sku';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, sku),\r\n onRemove: handleSkuRemove\r\n });\r\n }\r\n\r\n const rowMarkup = data.map(\r\n ({ id, bbmId, orderNumber, timeStamp, sku, quantity, price, priceCost }, index) => (\r\n \r\n {orderNumber}\r\n {sku}\r\n {bbmId}\r\n {quantity}\r\n {timeStamp} \r\n {price}\r\n {priceCost}\r\n \r\n ),\r\n );\r\n\r\n var headings = [\r\n { title: 'Order Number' },\r\n { title: 'Sku' }, \r\n { title: 'Best Buy Id' },\r\n { title: 'Fulfilled Quantity' },\r\n { title: 'TimeStamp' }, \r\n { title: 'Product Price' },\r\n { title: 'Product Cost' }\r\n ];\r\n\r\n return (\r\n <>\r\n { setPage(page - 1) }}\r\n hasNext={hasNext}\r\n onNext={() => { setPage(page + 1) }}\r\n />\r\n {reportData != null ? : null }\r\n \r\n );\r\n}","import React from 'react';\r\nimport { Switch, useRouteMatch, Redirect } from 'react-router';\r\nimport { ShipmentReport } from './ShipmentReport';\r\nimport { OrderReturnReport } from './OrderReturnReport';\r\nimport { PrivateRoute } from '../../PrivateRoute'\r\nimport { BBMShipmentReport } from './BBMShipment';\r\n\r\nexport const Reports = () => {\r\n let { path } = useRouteMatch();\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}","import React, { useCallback } from 'react';\r\nimport { TextField, IndexTable, useIndexResourceState, TextStyle, Link, ChoiceList } from '@shopify/polaris';\r\nimport { useLocation, useRouteMatch } from 'react-router-dom';\r\nimport { useQueryParam } from 'use-query-params';\r\nimport { disambiguateLabel, isEmpty, APPNumberParam, AppStringParam } from '../../Utils'\r\nimport useApi from '../../hooks/useApi';\r\nimport FilterPage from '../FilterPage';\r\nimport useFilter from '../../hooks/useFilter';\r\n\r\nexport const OrderDashboard = () => {\r\n let { url } = useRouteMatch();\r\n const location = useLocation();\r\n \r\n const [page, setPage] = useQueryParam('page', APPNumberParam);\r\n const [orderNumber, orderNumberFilter, setOrderNumberFilter] = useFilter('orderNumber', AppStringParam, setPage);\r\n const [status, statusFilter, setStatusFilter] = useFilter('status', AppStringParam, setPage);\r\n \r\n const { loading, error, data: {item1: hasPrevious, item2: hasNext, item3: data} } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyOrderLog`, {item1:false, item2: false, item3:[]}, `?page=${page+1}&orderNumber=${orderNumber}&status=${status}`);\r\n const { data: statusList } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyOrderLogListStatus`, [], `?`);\r\n\r\n const { selectedResources, allResourcesSelected, handleSelectionChange } = useIndexResourceState(data);\r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleOrderNumberChange = useCallback(value => setOrderNumberFilter(value), []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleStatusChange = useCallback(value => setStatusFilter(value), []);\r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleOrderNumberRemove = useCallback(() => setOrderNumberFilter(''), []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleStatusRemove = useCallback(() => setStatusFilter(''), []);\r\n \r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleFiltersClearAll = useCallback(() => {\r\n handleOrderNumberRemove();\r\n handleStatusRemove();\r\n }, [\r\n handleOrderNumberRemove,\r\n handleStatusRemove\r\n ]);\r\n\r\n\r\n const filters = [{\r\n key: 'orderNumber',\r\n label: 'Order',\r\n filter: ,\r\n shortcut: true\r\n },\r\n {\r\n key: 'status',\r\n label: 'Status',\r\n filter: ( {key: value, label: value, value: value}))}\r\n selected={statusFilter}\r\n onChange={handleStatusChange}\r\n />,\r\n shortcut: true\r\n }\r\n ];\r\n \r\n const appliedFilters = [];\r\n if (!isEmpty(orderNumber)) {\r\n const key = 'orderNumber';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, orderNumber),\r\n onRemove: handleOrderNumberRemove,\r\n });\r\n }\r\n\r\n if (!isEmpty(status)) {\r\n const key = 'status';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, status),\r\n onRemove: handleStatusRemove,\r\n });\r\n }\r\n \r\n const rowMarkup = data.map(\r\n ({ id, orderNumber, createdAt, cancelledAt, sentAt, mdnReceivedMessage, statusFriendly, orderId }, index) => (\r\n \r\n \r\n \r\n {orderNumber}\r\n \r\n \r\n {statusFriendly}\r\n {createdAt}\r\n {cancelledAt}\r\n {sentAt} \r\n {orderId}\r\n \r\n ),\r\n );\r\n\r\n const headings = [ \r\n { title: 'Order Number' },\r\n { title: 'Status' },\r\n { title: 'Created At' },\r\n { title: 'Cancelled At' },\r\n { title: 'Sent At' }, \r\n { title: 'Order Id' }\r\n ];\r\n \r\n return (\r\n { setPage(page - 1) }}\r\n hasNext={hasNext}\r\n onNext={() => { setPage(page + 1) }}\r\n />\r\n );\r\n}\r\n","import React, { useCallback, useState } from 'react';\r\nimport { IndexTable, TextStyle,Button,Collapsible,DataTable } from '@shopify/polaris';\r\n\r\n\r\nconst CollapsibleToggle = (props) => { \r\n \r\n const [open, setOpen] = useState(false);\r\n const handleToggle = useCallback(() => setOpen(prevCheck => !prevCheck), []);\r\n\r\n const formatDate = (date) => {\r\n var orderDate = new Date(date);\r\n var options = { year: 'numeric', month: 'long', day: 'numeric' };\r\n return orderDate.toLocaleDateString(\"en-US\", options);\r\n } \r\n\r\n\r\n return(\r\n <>\r\n \r\n \r\n \r\n {props.rma}\r\n \r\n \r\n {formatDate(props.date)}\r\n {props.statusFriendly} \r\n \r\n \r\n \r\n
\r\n \r\n [o.title,o.quantity])}/> \r\n \r\n
\r\n \r\n \r\n \r\n )\r\n}\r\n\r\n\r\nexport default CollapsibleToggle;","import React, { useCallback, useState,useEffect } from 'react';\r\nimport { useParams,useHistory,useRouteMatch,useLocation } from \"react-router-dom\";\r\nimport { Card, Layout, SkeletonBodyText, SkeletonPage, Page, Toast, IndexTable, TextStyle,Button,Collapsible,DataTable,EmptySearchResult } from '@shopify/polaris';\r\nimport useApi from '../../hooks/useApi';\r\nimport { ErrorPage } from '../../Error';\r\nimport CollapsibleToggle from '../CollapsibleToggle';\r\nimport './../../custom.css';\r\n\r\nconst OrderDetailPage = () => {\r\n const { id } = useParams([]); \r\n const [showResendMessage, setShowResendMessage] = useState(false); \r\n const toggleShowResendMessage = useCallback(() => setShowResendMessage((showResendMessage) => !showResendMessage), []); \r\n const [params] = useState({orderId: id});\r\n const [items, setItems] = useState({});\r\n const [enabled, setEnabled] = useState(false);\r\n const history= useHistory(); \r\n let { url } = useRouteMatch();\r\n \r\n\r\n const { loading, error, response, post, data: orderReturn } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyAdminOrderReturn`, {},'','',params);\r\n \r\n const resendCallback = useCallback(async () => {\r\n await post(`/${id}/Resend`);\r\n if (response.ok) {\r\n setShowResendMessage(true);\r\n }\r\n }, [response, post, id]);\r\n\r\n\r\n const handleContinue = () => { \r\n \r\n orderReturn.order.fulfillmentsLineItems.forEach(ret => {\r\n \r\n for (let index = 0; index < Object.entries(items).length; index++) {\r\n \r\n var lineItemId = Object.keys(items)[index];\r\n var quantity = Object.values(items)[index];\r\n \r\n if(lineItemId === ret.lineItemId.toString()){ \r\n ret.returnQuantity = quantity; \r\n } \r\n } \r\n \r\n history.push({pathname: `${url}/return`,state: orderReturn});\r\n \r\n });\r\n \r\n };\r\n\r\n\r\n const handleOnChange = ((value,key) => {\r\n \r\n var currentItems = {...items};\r\n \r\n currentItems[key] = value;\r\n \r\n   setItems(currentItems);\r\n \r\n if (Object.values(currentItems).map(Number).reduce((a,v) => a + v ,0) > 0) {\r\n setEnabled(true);\r\n }\r\n else{ \r\n setEnabled(false);\r\n }\r\n \r\n }); \r\n \r\n const rowMarkup = orderReturn && orderReturn.order && orderReturn.order.fulfillmentsLineItems.length > 0 ? orderReturn.order.fulfillmentsLineItems.map(\r\n ({ lineItemId, title, price, sku, returnable, quantity }, index) => (\r\n\r\n \r\n {title} \r\n {price}\r\n {sku} \r\n\r\n \r\n \r\n \r\n\r\n \r\n ),\r\n ): [];\r\n\r\n const associatedProducts = orderReturn && orderReturn.associatedReturns && orderReturn.associatedReturns.length > 0 ? \r\n Object.assign(...orderReturn.associatedReturns.map(k => k.products)).map(o => ({title: o.title, quantity: o.quantity})) : []; \r\n\r\n const rowMarkupAssociated = orderReturn && orderReturn.associatedReturns ? orderReturn.associatedReturns.map(\r\n ({ rma, date, statusFriendly }, index) => (\r\n <>\r\n \r\n \r\n ),\r\n ): [];\r\n const resourceName = {\r\n singular: 'Order Return',\r\n plural: 'Order Returns',\r\n };\r\n\r\n const associatedResourceName = {\r\n singular: 'Associated Return',\r\n plural: 'Associated Returns',\r\n };\r\n\r\n const emptyStateMarkup = (\r\n \r\n );\r\n\r\n const itemsCount = orderReturn && orderReturn.order ? orderReturn.order.fulfillmentsLineItems.length : 0;\r\n\r\n const associatedCount = orderReturn && orderReturn.associatedReturns ? orderReturn.associatedReturns.length : 0;\r\n const orderNum = orderReturn.order ? orderReturn.order.name : '';\r\n\r\n return ( \r\n loading ?\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n :\r\n error ?\r\n \r\n \r\n :\r\n <>\r\n \r\n
\r\n
Return submission
\r\n \r\n \r\n \r\n {rowMarkup}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {rowMarkupAssociated}\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n {\r\n showResendMessage ? : null\r\n }\r\n \r\n );\r\n }\r\n\r\nexport { OrderDetailPage };","import React, { useCallback } from 'react';\r\nimport { TextField, IndexTable, useIndexResourceState, TextStyle, Link, ChoiceList } from '@shopify/polaris';\r\nimport { useLocation, useRouteMatch } from 'react-router-dom';\r\nimport { useQueryParam } from 'use-query-params';\r\nimport { disambiguateLabel, isEmpty, APPNumberParam, AppStringParam } from '../../Utils'\r\nimport useApi from '../../hooks/useApi';\r\nimport FilterPage from '../FilterPage';\r\nimport useFilter from '../../hooks/useFilter';\r\n\r\nexport const OrderShipmentDashboard = () => {\r\n let { url } = useRouteMatch();\r\n const location = useLocation();\r\n\r\n const [page, setPage] = useQueryParam('page', APPNumberParam);\r\n const [orderNumber, orderNumberFilter, setOrderNumberFilter] = useFilter('orderNumber', AppStringParam, setPage);\r\n const [shipmentNumber, shipmentNumberFilter, setShipmentNumberFilter] = useFilter('shipmentNumber', AppStringParam, setPage);\r\n const [status, statusFilter, setStatusFilter] = useFilter('status', AppStringParam, setPage);\r\n const [type, typeFilter, setTypeFilter] = useFilter('type', AppStringParam, setPage);\r\n\r\n const { loading, error, data: { item1: hasPrevious, item2: hasNext, item3: data } } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyOrderShipment`, { item1: false, item2: false, item3: [] }, `?page=${page + 1}&orderNumber=${orderNumber}&shipmentNumber=${shipmentNumber}&status=${status}&type=${type}`);\r\n const { data: statusList } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyOrderShipmentListStatus`, [], `?`);\r\n const { data: typeList } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyOrderShipmentListType`, [], `?`);\r\n\r\n const { selectedResources, allResourcesSelected, handleSelectionChange } = useIndexResourceState(data);\r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleOrderNumberChange = useCallback(value => setOrderNumberFilter(value), []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleShipmentNumberChange = useCallback(value => setShipmentNumberFilter(value), []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleStatusChange = useCallback(value => setStatusFilter(value), []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleTypeChange = useCallback(value => setTypeFilter(value), []);\r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleOrderNumberRemove = useCallback(() => setOrderNumberFilter(''), []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleShipmentNumberRemove = useCallback(() => setShipmentNumberFilter(''), []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleStatusRemove = useCallback(() => setStatusFilter(''), []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleTypeRemove = useCallback(() => setTypeFilter(''), []);\r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleFiltersClearAll = useCallback(() => {\r\n handleOrderNumberRemove();\r\n handleShipmentNumberRemove();\r\n handleStatusRemove();\r\n handleTypeRemove();\r\n }, [\r\n handleOrderNumberRemove,\r\n handleShipmentNumberRemove,\r\n handleStatusRemove,\r\n handleTypeRemove\r\n ]);\r\n\r\n\r\n const filters = [{\r\n key: 'orderNumber',\r\n label: 'Order number',\r\n filter: ,\r\n shortcut: true\r\n },\r\n {\r\n key: 'shipmentNumber',\r\n label: 'Shipment number',\r\n filter: ,\r\n shortcut: true\r\n },\r\n {\r\n key: 'status',\r\n label: 'Status',\r\n filter: ( {key: value, label: value, value: value}))}\r\n selected={statusFilter}\r\n onChange={handleStatusChange}\r\n />,\r\n shortcut: true\r\n },\r\n {\r\n key: 'type',\r\n label: 'Type',\r\n filter: ( {key: value, label: value, value: value}))}\r\n selected={typeFilter}\r\n onChange={handleTypeChange}\r\n />,\r\n shortcut: true\r\n }];\r\n\r\n const appliedFilters = [];\r\n if (!isEmpty(orderNumberFilter)) {\r\n const key = 'orderNumber';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, orderNumberFilter),\r\n onRemove: handleOrderNumberRemove,\r\n });\r\n }\r\n\r\n if (!isEmpty(shipmentNumberFilter)) {\r\n const key = 'shipmentNumber';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, shipmentNumberFilter),\r\n onRemove: handleShipmentNumberRemove,\r\n });\r\n }\r\n\r\n if (!isEmpty(statusFilter)) {\r\n const key = 'status';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, statusFilter),\r\n onRemove: handleStatusRemove,\r\n });\r\n }\r\n\r\n if (!isEmpty(typeFilter)) {\r\n const key = 'type';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, typeFilter),\r\n onRemove: handleTypeRemove,\r\n });\r\n }\r\n\r\n const rowMarkup = data.map(\r\n ({ id, orderNumber, shipmentNumber, createdAt, sentAt, confirmedAt, reprocessedAt, executionMessage, confirmationMessage, statusFriendly, resentStatusFriendly, logicAppId, shipmentTypeFriendly }, index) => (\r\n \r\n \r\n \r\n {orderNumber}\r\n \r\n \r\n {shipmentNumber} \r\n {statusFriendly}\r\n {shipmentTypeFriendly}\r\n {createdAt}\r\n {sentAt}\r\n {confirmedAt}\r\n {reprocessedAt}\r\n {resentStatusFriendly}\r\n {logicAppId}\r\n {confirmationMessage}\r\n {executionMessage}\r\n \r\n ),\r\n );\r\n\r\n const headings = [\r\n { title: 'Order Number' }, \r\n { title: 'Shipment Number' }, \r\n { title: 'Status' },\r\n { title: 'Warehouse' },\r\n { title: 'Created At' },\r\n { title: 'Sent At' },\r\n { title: 'SCI Confirmation At' },\r\n { title: 'Reprocess At' },\r\n { title: 'Reprocess Status' },\r\n { title: \"Loigc App Id\"},\r\n { title: \"Confirmation Message\"},\r\n { title: \"Execution Message\"}\r\n ];\r\n\r\n return (\r\n { setPage(page - 1) }}\r\n hasNext={hasNext}\r\n onNext={() => { setPage(page + 1) }}\r\n />\r\n );\r\n}","import React, { useCallback, useState } from 'react';\r\nimport { useParams, useLocation } from \"react-router-dom\";\r\nimport { Card, Layout, SkeletonBodyText, SkeletonPage, Page, Label, IndexTable, useIndexResourceState, Toast } from '@shopify/polaris';\r\nimport useApi from '../../hooks/useApi';\r\nimport { ErrorPage } from '../../Error';\r\n\r\nexport const OrderShipmentDetail = () => {\r\n const { id } = useParams([]);\r\n const location = useLocation();\r\n const [showResendMessage, setShowResendMessage] = useState(false);\r\n\r\n let locationSerach = \"\";\r\n\r\n if (location.state.location) {\r\n locationSerach = location.state.location.search;\r\n }\r\n\r\n const toggleShowResendMessage = useCallback(() => setShowResendMessage((showResendMessage) => !showResendMessage), []);\r\n\r\n const { loading, error, data, post, response } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyOrderShipment`, { orderItems: [] }, id);\r\n\r\n const resendCallback = useCallback(async () => {\r\n await post(`/${id}/Reprocess`);\r\n if (response.ok) {\r\n setShowResendMessage(true);\r\n }\r\n }, [response, post, id]);\r\n\r\n const { selectedResources, allResourcesSelected, handleSelectionChange } = useIndexResourceState(data);\r\n\r\n const headings = [\r\n { title: 'Sku' },\r\n { title: 'Quantity' },\r\n { title: 'Fulfilled Quantity' }\r\n ];\r\n\r\n const rowMarkup = data.orderItems.map(\r\n ({ sku, quantity, fulfilledQuantity }, index) => (\r\n \r\n {sku}\r\n {quantity}\r\n {fulfilledQuantity}\r\n \r\n ),\r\n );\r\n\r\n return (\r\n loading ?\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n :\r\n error ?\r\n \r\n \r\n :\r\n <>\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n {rowMarkup}\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n showResendMessage ? : null\r\n }\r\n \r\n );\r\n}\r\n","import React, { useCallback, useState } from 'react';\r\nimport { useParams, useLocation,useHistory } from \"react-router-dom\";\r\nimport { Card, Layout, SkeletonBodyText, SkeletonPage, Page, Label, IndexTable, useIndexResourceState, Toast,Button,Select } from '@shopify/polaris';\r\nimport useApi from '../../hooks/useApi';\r\nimport { ErrorPage } from '../../Error';\r\n\r\nexport const OrderReturnDetail = () => {\r\n const { id } = useParams([]);\r\n const location = useLocation();\r\n const [showResendMessage, setShowResendMessage] = useState(false);\r\n const [toastMessage, setToastMessage] = useState('');\r\n const [status, setStatus] = useState('');\r\n const history= useHistory(); \r\n let locationSerach = \"\";\r\n\r\n if (location.state.location) {\r\n locationSerach = location.state.location.search;\r\n }\r\n\r\n const toggleShowResendMessage = useCallback(() => setShowResendMessage((showResendMessage) => !showResendMessage), []);\r\n\r\n const { loading, error, data, post, response } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyOrderReturn`, { orderItems: [] }, id); \r\n\r\n const resendCallback = useCallback(async () => {\r\n await post(`/${id}/Resend`);\r\n if (response.ok) {\r\n setToastMessage(\"Item resent\");\r\n setShowResendMessage(true);\r\n }\r\n }, [response, post, id]);\r\n\r\n \r\n const handleStatus = useCallback(async (status) => {\r\n \r\n await post(`/${id}/Manager?status=${status}`)\r\n \r\n if(response.ok){ \r\n setToastMessage(\"Item saved\");\r\n setShowResendMessage(true); \r\n } \r\n\r\n setTimeout(() => { \r\n history.go(0); \r\n }, \"2000\")\r\n \r\n\r\n }, [response, post, id]);\r\n\r\n \r\n\r\n const handleStatusChange = useCallback((value) => setStatus(value), []);\r\n\r\n\r\n const { selectedResources, allResourcesSelected, handleSelectionChange } = useIndexResourceState(data);\r\n\r\n const headings = [\r\n { title: 'Sku' },\r\n { title: 'Quantity' },\r\n { title: 'Return Quantity' }\r\n ];\r\n\r\n const rowMarkup = data.orderItems.map(\r\n ({ sku, quantity, returnQuantity }, index) => (\r\n \r\n {sku}\r\n {quantity}\r\n {returnQuantity}\r\n \r\n ),\r\n );\r\n\r\n const statusOptions = [ \r\n {label: 'Cancelled', value: '7'},\r\n {label: 'Courier Lost', value: '12'},\r\n {label: 'Warehouse Lost', value: '13'},\r\n {label: 'Manually Refunded', value: '18'},\r\n ];\r\n\r\n return (\r\n loading ?\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n :\r\n error ?\r\n \r\n \r\n :\r\n <>\r\n \r\n
\r\n \r\n \r\n\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n }\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n {rowMarkup}\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n {(data.status === 5 || data.status === 10) &&\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n } \r\n \r\n \r\n {\r\n showResendMessage ? : null\r\n }\r\n \r\n );\r\n}\r\n","import React, { useCallback } from 'react';\r\nimport { TextField, IndexTable, useIndexResourceState, TextStyle, Link, ChoiceList } from '@shopify/polaris';\r\nimport { useLocation, useRouteMatch } from 'react-router-dom';\r\nimport { useQueryParam } from 'use-query-params';\r\nimport { disambiguateLabel, isEmpty, APPNumberParam, AppStringParam } from '../../Utils'\r\nimport useApi from '../../hooks/useApi';\r\nimport FilterPage from '../FilterPage';\r\nimport useFilter from '../../hooks/useFilter';\r\n\r\nexport const OrderReturnDashboard = () => {\r\n let { url } = useRouteMatch();\r\n const location = useLocation();\r\n\r\n const [page, setPage] = useQueryParam('page', APPNumberParam);\r\n const [orderNumber, orderNumberFilter, setOrderNumberFilter] = useFilter('orderNumber', AppStringParam, setPage);\r\n const [returnNumber, returnNumberFilter, setreturnNumberFilter] = useFilter('returnNumber', AppStringParam, setPage);\r\n const [status, statusFilter, setStatusFilter] = useFilter('status', AppStringParam, setPage); \r\n\r\n const { loading, error, data: { item1: hasPrevious, item2: hasNext, item3: data } } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyOrderReturn`, { item1: false, item2: false, item3: [] }, `?page=${page + 1}&orderNumber=${orderNumber}&returnNumber=${returnNumber}&status=${status}`);\r\n const { data: statusList } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyOrderReturnStatus`, [], `?`);\r\n\r\n const { selectedResources, allResourcesSelected, handleSelectionChange } = useIndexResourceState(data);\r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleOrderNumberChange = useCallback(value => setOrderNumberFilter(value), []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handlereturnNumberChange = useCallback(value => setreturnNumberFilter(value), []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleStatusChange = useCallback(value => setStatusFilter(value), []);\r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleOrderNumberRemove = useCallback(() => setOrderNumberFilter(''), []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handlereturnNumberRemove = useCallback(() => setreturnNumberFilter(''), []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleStatusRemove = useCallback(() => setStatusFilter(''), []); \r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleFiltersClearAll = useCallback(() => {\r\n handleOrderNumberRemove();\r\n handlereturnNumberRemove();\r\n handleStatusRemove(); \r\n }, [\r\n handleOrderNumberRemove,\r\n handlereturnNumberRemove,\r\n handleStatusRemove \r\n ]);\r\n\r\n\r\n const filters = [{\r\n key: 'orderNumber',\r\n label: 'Order number',\r\n filter: ,\r\n shortcut: true\r\n },\r\n {\r\n key: 'returnNumber',\r\n label: 'Return number',\r\n filter: ,\r\n shortcut: true\r\n },\r\n {\r\n key: 'status',\r\n label: 'Status',\r\n filter: ( {key: item.statusLabel, label: item.statusLabel, value: item.statusLabel}))}\r\n selected={statusFilter}\r\n onChange={handleStatusChange}\r\n />,\r\n shortcut: true\r\n }];\r\n\r\n const appliedFilters = [];\r\n if (!isEmpty(orderNumberFilter)) {\r\n const key = 'orderNumber';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, orderNumberFilter),\r\n onRemove: handleOrderNumberRemove,\r\n });\r\n }\r\n\r\n if (!isEmpty(returnNumberFilter)) {\r\n const key = 'returnNumber';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, returnNumberFilter),\r\n onRemove: handlereturnNumberRemove,\r\n });\r\n }\r\n\r\n if (!isEmpty(statusFilter)) {\r\n const key = 'status';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, statusFilter),\r\n onRemove: handleStatusRemove,\r\n });\r\n }\r\n\r\n \r\n const rowMarkup = data.map(\r\n ({ id, orderNumber, createdAt, sentAt, executionMessage, confirmationMessage, statusFriendly, logicAppId,confirmedAt,reprocessedAt,resentStatusFriendly, rma}, index) => (\r\n \r\n \r\n \r\n {orderNumber}\r\n \r\n \r\n {rma} \r\n {statusFriendly} \r\n {createdAt}\r\n {sentAt}\r\n {confirmedAt}\r\n {reprocessedAt}\r\n {resentStatusFriendly}\r\n {logicAppId}\r\n {confirmationMessage}\r\n {executionMessage}\r\n \r\n ),\r\n );\r\n\r\n const headings = [\r\n { title: 'Order Number' }, \r\n { title: 'RMA' }, \r\n { title: 'Status' }, \r\n { title: 'Created At' }, \r\n { title: 'Sent At' },\r\n { title: 'Confirmed At' },\r\n { title: \"Reprocesed At\"},\r\n { title: \"Resent Status\"},\r\n { title: \"Logic App Id\"},\r\n { title: \"Confirmation Message\"},\r\n { title: \"Execution Message\"}\r\n ];\r\n\r\n return (\r\n { setPage(page - 1) }}\r\n hasNext={hasNext}\r\n onNext={() => { setPage(page + 1) }}\r\n />\r\n );\r\n}","import React, { useCallback, useState } from 'react';\r\nimport { useLocation,useHistory } from \"react-router-dom\";\r\nimport { Card, Layout, SkeletonBodyText, SkeletonPage, Page, Toast, IndexTable, Button } from '@shopify/polaris';\r\nimport useApi from '../../hooks/useApi';\r\nimport { ErrorPage } from '../../Error';\r\nimport './../../custom.css';\r\n\r\nconst OrderSubmit = () => {\r\n const location = useLocation();\r\n\r\nconst orderReturn = location.state; \r\n \r\n const [saveError, setSaveError] = useState('');\r\n \r\n const [enabled, setEnabled] = useState(false); \r\n const [sealedState, setSealedState] = useState(null);\r\n const [showSaveMessage, setShowSaveMessage] = useState(false);\r\n const { loading, error, response, cache, put } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyAdminOrderReturn`, []);\r\n const history= useHistory(); \r\n \r\n let requestObj = { \r\n OrderID: orderReturn.order.orderID ,\r\n OrderNumber: orderReturn.order.name,\r\n OrderItems: [] \r\n };\r\n \r\n orderReturn.order.fulfillmentsLineItems.forEach(element => {\r\n\r\n if(element.returnQuantity){\r\n\r\n var objItem = { \r\n Sku: element.sku,\r\n title: element.title,\r\n quantity: element.returnQuantity,\r\n reasonId: parseInt(element.reasonId),\r\n lineItemId: element.lineItemId,\r\n isSealed: element.shouldBeSealed ? sealedState : false,\r\n shouldBeSealed: element.shouldBeSealed \r\n } \r\n\r\n requestObj.OrderItems.push(objItem);\r\n }\r\n\r\n }); \r\n\r\n const toggleShowSaveMessage = useCallback(() => setShowSaveMessage((showSaveMessage) => !showSaveMessage), []);\r\n \r\n const handleReasonsChange = ((value,lineItemId) => {\r\n\r\n \r\n if(Object.values(requestObj.OrderItems).map(x => x.lineItemId === lineItemId).length > 0 ){\r\n \r\n orderReturn.order.fulfillmentsLineItems.forEach(ret => {\r\n if(lineItemId === ret.lineItemId){ \r\n ret.reasonId = parseInt(value); \r\n }\r\n });\r\n \r\n var currentIndex = Object.values(requestObj.OrderItems).findIndex(x => x.lineItemId === lineItemId);\r\n\r\n requestObj.OrderItems[currentIndex].reasonId = value === \"\" ? 0 : parseInt(value);\r\n \r\n } \r\n\r\n if (Object.values(requestObj.OrderItems).map(x => (x.reasonId !== 0 && (x.isSealed !== '' && x.isSealed !== null && x.shouldBeSealed)) || (x.reasonId !== 0 && !x.shouldBeSealed)).every(v => v === true)) {\r\n setEnabled(true);\r\n }\r\n else{ \r\n setEnabled(false);\r\n }\r\n \r\n});\r\n\r\n\r\n\r\nconst handleIsSealedChange = ((value,lineItemId) => {\r\n \r\n if(value === 'yes')\r\n value = true;\r\n else if (value === 'no')\r\n value = false; \r\n else \r\n value= '';\r\n\r\n setSealedState(value);\r\n\r\n if(Object.values(requestObj.OrderItems).map(x => x.lineItemId === lineItemId).length > 0 ){\r\n \r\n var currentIndex = Object.values(requestObj.OrderItems).findIndex(x => x.lineItemId === lineItemId);\r\n\r\n requestObj.OrderItems[currentIndex].isSealed = value; \r\n } \r\n\r\n if (Object.values(requestObj.OrderItems).map(x => (x.reasonId !== 0 && (x.isSealed !== '' && x.isSealed !== null && x.shouldBeSealed)) || (x.reasonId !== 0 && !x.shouldBeSealed)).every(v => v === true)) {\r\n setEnabled(true);\r\n }\r\n else{ \r\n setEnabled(false);\r\n } \r\n\r\n});\r\n\r\n\r\n\r\n const handleSubmit = useCallback(async () => {\r\n setEnabled(false);\r\n await put('',requestObj);\r\n \r\n if(response.ok){ \r\n setEnabled(true);\r\n setShowSaveMessage(true);\r\n setSaveError(''); \r\n \r\n \r\n }\r\n else {\r\n setEnabled(true);\r\n cache.clear();\r\n setSaveError(response.data);\r\n }\r\n\r\n setTimeout(() => { \r\n history.push(\"/dashboard/order\"); \r\n history.go(0); \r\n }, \"3000\")\r\n \r\n }, [put, requestObj, response, cache]);\r\n \r\n \r\n const rowMarkup = orderReturn && orderReturn.order && orderReturn.order.fulfillmentsLineItems.length > 0 ? orderReturn.order.fulfillmentsLineItems.map(\r\n ({ lineItemId, title, price, sku, returnQuantity,shouldBeSealed }, index) => (\r\n <>\r\n {returnQuantity > 0 &&\r\n \r\n {title} \r\n {price}\r\n {sku} \r\n\r\n {returnQuantity} \r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n {shouldBeSealed &&\r\n \r\n \r\n\r\n } \r\n \r\n\r\n \r\n }\r\n \r\n ),\r\n ): [];\r\n \r\n const resourceName = {\r\n singular: 'Order Return',\r\n plural: 'Order Returns',\r\n };\r\n\r\n const itemsCount = orderReturn && orderReturn.order ? orderReturn.order.fulfillmentsLineItems.length : 0;\r\n\r\n return ( \r\n loading ?\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n :\r\n error ?\r\n \r\n \r\n :\r\n <>\r\n \r\n \r\n \r\n \r\n {rowMarkup}\r\n \r\n \r\n \r\n
\r\n \r\n
\r\n\r\n {\r\n showSaveMessage ? : null\r\n }\r\n \r\n \r\n \r\n );\r\n }\r\n\r\nexport { OrderSubmit };","import React from 'react';\r\nimport { Switch, useRouteMatch, Redirect } from 'react-router';\r\nimport { PrivateRoute } from '../../PrivateRoute'\r\nimport { OrderDashboard } from './OrderDashboard';\r\nimport { OrderDetailPage } from './OrderDetailPage';\r\nimport { OrderShipmentDashboard } from './OrderShipmentDashboard';\r\nimport { OrderShipmentDetail } from './OrderShipmentDetail';\r\nimport { OrderReturnDetail } from './OrderReturnDetail';\r\nimport { OrderReturnDashboard } from './OrderReturnDashboard';\r\nimport { OrderSubmit } from './OrderSubmit';\r\n\r\nexport const Dashboard = () => {\r\n let { path } = useRouteMatch();\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}","import React, { useCallback, useState } from 'react';\r\nimport { Card, TextContainer, Layout, SkeletonBodyText, SkeletonPage, Page, Form, Button, FormLayout, Toast } from '@shopify/polaris';\r\nimport useApi from '../../hooks/useApi';\r\nimport { ErrorPage } from '../../Error';\r\nimport { PolarisFormBuilder } from '@additionapps/polaris-form-builder';\r\n\r\nexport const AppStoreConfiguration = () => {\r\n const [showSaveMessage, setShowSaveMessage] = useState(false);\r\n const [saveError, setSaveError] = useState('');\r\n const [timestamp] = useState(Date.now());\r\n\r\n const { loading, error, data, response, cache, setData, put } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyAppStoreConfiguration`, \r\n {\r\n id: 0,\r\n numberOfMinutesToDelayOrder: 0,\r\n numberOfHoursToCancelOrder: 0, \r\n notifyCustomerWhenItemsAreShipped: false,\r\n sciLocationID: '',\r\n bestBuyLocationID: '',\r\n returnEligiblePeriod: 0\r\n },`?timestamp=${timestamp}`);\r\n\r\n const fields = [ \r\n {\r\n key: \"numberOfMinutesToDelayOrder\",\r\n input: \"text\",\r\n config: {\r\n name: \"numberOfMinutesToDelayOrder\",\r\n label: \"Number of Minutes to Delay Order\",\r\n placeholder: \"Number of Minutes to Delay Order\",\r\n inputMode: \"numeric\",\r\n type: \"number\"\r\n },\r\n },\r\n {\r\n key: \"numberOfHoursToCancelOrder\",\r\n input: \"text\",\r\n config: {\r\n name: \"numberOfHoursToCancelOrder\",\r\n label: \"Number of Hours to Cancel Order\",\r\n placeholder: \"Number of Hours to Cancel Order\",\r\n inputMode: \"numeric\",\r\n type: \"number\"\r\n },\r\n },\r\n {\r\n key: \"notifyCustomerWhenItemsAreShipped\",\r\n input: \"checkbox\",\r\n config: {\r\n name: \"notifyCustomerWhenItemsAreShipped\",\r\n label: \"Notify Customer When Items are Shipped\",\r\n },\r\n },\r\n {\r\n key: \"sciLocationID\",\r\n input: \"text\",\r\n config: {\r\n name: \"SCILocationID\",\r\n label: \"SCI Location ID\",\r\n placeholder: \"Identification number for the SCI location\",\r\n inputMode: \"numeric\",\r\n type: \"number\"\r\n },\r\n },\r\n {\r\n key: \"bestBuyLocationID\",\r\n input: \"text\",\r\n config: {\r\n name: \"bestBuyLocationID\",\r\n label: \"Best Buy Location ID\",\r\n placeholder: \"Identification number for the Best Buy location\",\r\n inputMode: \"numeric\",\r\n type: \"number\"\r\n },\r\n },\r\n {\r\n key: \"returnEligiblePeriod\",\r\n input: \"text\",\r\n config: {\r\n name: \"returnEligiblePeriod\",\r\n label: \"Return Eligible Period (days)\",\r\n placeholder: \"Return Eligible Period (days)\",\r\n inputMode: \"numeric\",\r\n type: \"number\"\r\n },\r\n },\r\n ];\r\n\r\n const toggleShowSaveMessage = useCallback(() => setShowSaveMessage((showSaveMessage) => !showSaveMessage), []);\r\n\r\n const handleSubmit = useCallback(async () => {\r\n const ret = await put(`${data.id}`, data)\r\n if (response.ok) {\r\n cache.clear();\r\n setData(ret);\r\n setShowSaveMessage(true);\r\n setSaveError('');\r\n } else {\r\n setSaveError(response.data);\r\n }\r\n }, [data, response, put, setData, cache, setShowSaveMessage]);\r\n\r\n \r\n return (\r\n loading ?\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n :\r\n \r\n {\r\n error && !saveError? \r\n \r\n \r\n : ''\r\n }\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n {\r\n showSaveMessage ? : null\r\n }\r\n
\r\n );\r\n}\r\n","import React, { useCallback, useState } from 'react';\r\nimport { useParams, useLocation, Redirect } from \"react-router-dom\";\r\nimport { Card, Layout, SkeletonBodyText, SkeletonPage, Page, Form, Button, FormLayout, Toast } from '@shopify/polaris';\r\nimport useApi from '../../hooks/useApi';\r\nimport { ErrorPage } from '../../Error';\r\nimport { PolarisFormBuilder } from '@additionapps/polaris-form-builder';\r\nimport { data } from '@shopify/app-bridge/actions/Modal';\r\n\r\nexport const ShippingConfigurationDetail = () => {\r\n\r\n const { id } = useParams([]);\r\n const location = useLocation();\r\n const [showSaveMessage, setShowSaveMessage] = useState(false);\r\n const [saveError, setSaveError] = useState('');\r\n let locationSerach = \"\";\r\n\r\n if (location.state.location) {\r\n locationSerach = location.state.location.search;\r\n }\r\n\r\n let urlId = id;\r\n if (isNaN(id)) {\r\n urlId = 0;\r\n }\r\n\r\n const { loading: loadingCarrier, data: carrierList } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyShippingTypeConfigurationListName`, [], `?`);\r\n \r\n const { loading, error, data, response, cache, setData, put } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyShippingConfiguration`,\r\n {\r\n id: 0,\r\n title: '',\r\n carrierCode: '',\r\n sciCode: '',\r\n isRush: false,\r\n shippingTypeConfigurationId: \"0\"\r\n }, urlId);\r\n\r\n data.shippingTypeConfigurationId = data.shippingTypeConfigurationId + \"\";\r\n\r\n const fields = [\r\n {\r\n key: \"title\",\r\n input: \"text\",\r\n config: {\r\n name: \"title\",\r\n label: \"Title\",\r\n placeholder: \"Title\"\r\n },\r\n },\r\n {\r\n key: \"carrierCode\",\r\n input: \"text\",\r\n config: {\r\n name: \"carrierCode\",\r\n label: \"Carrier Code\",\r\n placeholder: \"Carrier Code\"\r\n },\r\n },\r\n {\r\n key: \"sciCode\",\r\n input: \"text\",\r\n config: {\r\n name: \"sciCode\",\r\n label: \"Sci Code\",\r\n placeholder: \"Sci Code\"\r\n },\r\n },\r\n {\r\n key: \"isRush\",\r\n input: \"checkbox\",\r\n config: {\r\n name: \"isRush\",\r\n label: \"Is Rush\",\r\n },\r\n },\r\n {\r\n key: \"shippingTypeConfigurationId\",\r\n input: \"select\",\r\n config: {\r\n title: \"Carrier\",\r\n options: [{key: 0, label: 'Select', value: \"0\" }].concat(carrierList.map((item) =>( {key: item.id, label: item.title, value: item.id + \"\" })))\r\n },\r\n },\r\n ];\r\n\r\n const toggleShowSaveMessage = useCallback(() => setShowSaveMessage((showSaveMessage) => !showSaveMessage), []);\r\n\r\n const handleSubmit = useCallback(async () => {\r\n data.shippingTypeConfiguration = null;\r\n const ret = await put(`${urlId}`, data)\r\n if (response.ok) {\r\n cache.clear();\r\n setData(ret);\r\n setShowSaveMessage(true);\r\n setSaveError('');\r\n } else {\r\n setSaveError(response.data);\r\n }\r\n }, [data, urlId, response, put, setData, cache, setShowSaveMessage]);\r\n\r\n\r\n return (\r\n loading || loadingCarrier?\r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
:\r\n \r\n {urlId === 0 && data.id > 0 ? : null}\r\n {\r\n error && !saveError ?\r\n \r\n \r\n : ''\r\n }\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n {\r\n showSaveMessage ? : null\r\n }\r\n \r\n );\r\n}\r\n","import React, { useCallback, useState } from 'react';\r\nimport { TextField, IndexTable, useIndexResourceState, TextStyle, Link, Toast, ChoiceList } from '@shopify/polaris';\r\nimport { useLocation, useRouteMatch } from 'react-router-dom';\r\nimport { useQueryParam } from 'use-query-params';\r\nimport { disambiguateLabel, isEmpty, APPNumberParam, AppStringParam } from '../../Utils'\r\nimport useApi from '../../hooks/useApi';\r\nimport FilterPage from '../FilterPage';\r\nimport useFilter from '../../hooks/useFilter';\r\n\r\nexport const ShippingConfiguration = () => {\r\n const { url } = useRouteMatch();\r\n const location = useLocation();\r\n const [timestamp, setTimeStamp] = useState(Date.now());\r\n const [showDeletedMessage, setShowDeletedMessage] = useState(false);\r\n\r\n const [page, setPage] = useQueryParam('page', APPNumberParam);\r\n const [title, titleFilter, setTitleFilter] = useFilter('title', AppStringParam, setPage);\r\n const [carrier, carrierFilter, setCarrierFilter] = useFilter('carrier', AppStringParam, setPage);\r\n\r\n const { loading, error, data: {item1: hasPrevious, item2: hasNext, item3: data}, cache, response, del } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyShippingConfiguration`, {item1:false, item2: false, item3:[]}, `?page=${page+1}&title=${title}&carrier=${carrier}`, `&${timestamp}`);\r\n const { data: carrierList } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyShippingTypeConfigurationListName`, [], `?`);\r\n\r\n const { selectedResources, allResourcesSelected, handleSelectionChange } = useIndexResourceState(data);\r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleTitleChange = useCallback(value => setTitleFilter(value), []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleCarrierChange = useCallback(value => setCarrierFilter(value), []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleTitleRemove = useCallback(() => setTitleFilter(''), []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleCarrierRemove = useCallback(() => setCarrierFilter(''), []);\r\n const handleFiltersClearAll = useCallback(() => {\r\n handleTitleRemove();\r\n handleCarrierRemove();\r\n }, [\r\n handleTitleRemove,\r\n handleCarrierRemove\r\n ]);\r\n\r\n const filters = [{\r\n key: 'title',\r\n label: 'Title',\r\n filter: ,\r\n shortcut: true\r\n },\r\n {\r\n key: 'carrier',\r\n label: 'Carrier',\r\n filter: ( {key: item.id, label: item.title, value: item.title}))}\r\n selected={carrierFilter}\r\n onChange={handleCarrierChange}\r\n />,\r\n shortcut: true\r\n }];\r\n\r\n const appliedFilters = [];\r\n if (!isEmpty(title)) {\r\n const key = 'title';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, title),\r\n onRemove: handleTitleRemove\r\n });\r\n }\r\n\r\n if (!isEmpty(carrier)) {\r\n const key = 'carrier';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, carrier),\r\n onRemove: handleCarrierRemove\r\n });\r\n }\r\n\r\n const deleteCallback = useCallback(async () => {\r\n await del(``, selectedResources);\r\n if (response.ok) {\r\n cache.clear();\r\n handleSelectionChange('all', false);\r\n setShowDeletedMessage(true);\r\n setTimeStamp(Date.now());\r\n }\r\n }, [selectedResources, handleSelectionChange, response, del, cache]);\r\n\r\n const promotedBulkActions = [\r\n {\r\n content: 'Delete',\r\n onAction: deleteCallback,\r\n destructive: true\r\n }];\r\n\r\n const rowMarkup = data.map(\r\n ({ id, title, carrierCode, sciCode, isRush, shippingTypeConfiguration: {title: carrier} }, index) => (\r\n \r\n \r\n \r\n {title}\r\n \r\n \r\n {carrierCode} \r\n {sciCode} \r\n {isRush ? 'Yes' : 'No'} \r\n {carrier} \r\n \r\n ),\r\n );\r\n\r\n var headings = [\r\n { title: 'Title' },\r\n { title: 'Carrier Code' },\r\n { title: 'Sci Code' },\r\n { title: 'Is Rush' },\r\n { title: 'Carrier' } \r\n ];\r\n\r\n const toggleShowDeletedMessage = useCallback(() => setShowDeletedMessage((showDeletedMessage) => !showDeletedMessage), []);\r\n\r\n return (\r\n <>\r\n { setPage(page - 1) }}\r\n hasNext={hasNext}\r\n onNext={() => { setPage(page + 1) }}\r\n />\r\n {\r\n showDeletedMessage ? : null\r\n }\r\n \r\n );\r\n}","import React, { useCallback, useState } from 'react';\r\nimport { useParams, useLocation, Redirect } from \"react-router-dom\";\r\nimport { Card, TextContainer, Layout, SkeletonBodyText, SkeletonPage, Page, Form, Button, FormLayout, Toast } from '@shopify/polaris';\r\nimport useApi from '../../hooks/useApi';\r\nimport { ErrorPage } from '../../Error';\r\nimport { PolarisFormBuilder } from '@additionapps/polaris-form-builder';\r\n\r\nexport const ShippingTypeConfigurationDetail = () => {\r\n const { id } = useParams([]);\r\n const location = useLocation();\r\n const [showSaveMessage, setShowSaveMessage] = useState(false);\r\n const [saveError, setSaveError] = useState('');\r\n let locationSerach = \"\";\r\n \r\n if(location.state.location) {\r\n locationSerach = location.state.location.search;\r\n }\r\n\r\n let urlId = id;\r\n if(isNaN(id)) {\r\n urlId = 0;\r\n }\r\n \r\n const { loading, error, data, response, cache, setData, put } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyShippingTypeConfiguration`, \r\n {\r\n id: 0,\r\n title: '',\r\n trackingBaseUrl: '' \r\n }, urlId);\r\n\r\n const fields = [\r\n {\r\n key: \"title\",\r\n input: \"text\",\r\n config: {\r\n name: \"title\",\r\n label: \"Title\",\r\n placeholder: \"Title\"\r\n },\r\n },\r\n {\r\n key: \"trackingBaseUrl\",\r\n input: \"text\",\r\n config: {\r\n name: \"trackingBaseUrl\",\r\n label: \"Tracking Base Url\",\r\n placeholder: \"Tracking Base Url\"\r\n },\r\n }\r\n ];\r\n\r\n const toggleShowSaveMessage = useCallback(() => setShowSaveMessage((showSaveMessage) => !showSaveMessage), []);\r\n\r\n const handleSubmit = useCallback(async () => {\r\n const ret = await put(`${urlId}`, data)\r\n if (response.ok) {\r\n cache.clear();\r\n setData(ret);\r\n setShowSaveMessage(true);\r\n setSaveError('');\r\n } else {\r\n setSaveError(response.data);\r\n }\r\n }, [data, urlId, response, put, setData, cache, setShowSaveMessage]);\r\n\r\n \r\n return (\r\n loading ?\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n :\r\n \r\n {urlId === 0 && data.id > 0? : null}\r\n {\r\n error && !saveError? \r\n \r\n \r\n : ''\r\n }\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n {\r\n showSaveMessage ? : null\r\n }\r\n \r\n );\r\n}\r\n","import React, { useCallback, useState } from 'react';\r\nimport { TextField, IndexTable, useIndexResourceState, TextStyle, Link, Toast } from '@shopify/polaris';\r\nimport { useLocation, useRouteMatch } from 'react-router-dom';\r\nimport { useQueryParam } from 'use-query-params';\r\nimport { disambiguateLabel, isEmpty, APPNumberParam, AppStringParam } from '../../Utils'\r\nimport useApi from '../../hooks/useApi';\r\nimport FilterPage from '../FilterPage';\r\nimport useFilter from '../../hooks/useFilter';\r\n\r\nexport const ShippingTypeConfiguration = () => {\r\n const { url } = useRouteMatch();\r\n const location = useLocation();\r\n const [timestamp, setTimeStamp] = useState(Date.now());\r\n const [showDeletedMessage, setShowDeletedMessage] = useState(false);\r\n\r\n const [page, setPage] = useQueryParam('page', APPNumberParam);\r\n const [title, titleFilter, setTitleFilter] = useFilter('title', AppStringParam, setPage);\r\n\r\n const { loading, error, data: {item1: hasPrevious, item2: hasNext, item3: data}, cache, response, del } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyShippingTypeConfiguration`, {item1:false, item2: false, item3:[]}, `?page=${page+1}&title=${title}`, `&${timestamp}`);\r\n\r\n const { selectedResources, allResourcesSelected, handleSelectionChange } = useIndexResourceState(data);\r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleTitleChange = useCallback(value => setTitleFilter(value), []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleTitleRemove = useCallback(() => setTitleFilter(''), []);\r\n const handleFiltersClearAll = useCallback(() => {\r\n handleTitleRemove();\r\n }, [\r\n handleTitleRemove\r\n ]);\r\n\r\n const filters = [{\r\n key: 'title',\r\n label: 'Title',\r\n filter: ,\r\n shortcut: true\r\n }];\r\n\r\n const appliedFilters = [];\r\n if (!isEmpty(title)) {\r\n const key = 'title';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, title),\r\n onRemove: handleTitleRemove\r\n });\r\n }\r\n\r\n const deleteCallback = useCallback(async () => {\r\n await del(``, selectedResources);\r\n if (response.ok) {\r\n cache.clear();\r\n handleSelectionChange('all', false);\r\n setShowDeletedMessage(true);\r\n setTimeStamp(Date.now());\r\n }\r\n }, [selectedResources, handleSelectionChange, response, del, cache]);\r\n\r\n const promotedBulkActions = [\r\n {\r\n content: 'Delete',\r\n onAction: deleteCallback,\r\n destructive: true\r\n }];\r\n\r\n const rowMarkup = data.map(\r\n ({ id, title, trackingBaseUrl }, index) => (\r\n \r\n \r\n \r\n {title}\r\n \r\n \r\n {trackingBaseUrl} \r\n \r\n \r\n ),\r\n );\r\n\r\n var headings = [\r\n { title: 'Title' },\r\n { title: 'TrackingBaseUrl' }\r\n ];\r\n\r\n const toggleShowDeletedMessage = useCallback(() => setShowDeletedMessage((showDeletedMessage) => !showDeletedMessage), []);\r\n \r\n return (\r\n <>\r\n { setPage(page - 1) }}\r\n hasNext={hasNext}\r\n onNext={() => { setPage(page + 1) }}\r\n />\r\n {\r\n showDeletedMessage ? : null\r\n }\r\n \r\n );\r\n}","import React, { useCallback, useState } from 'react';\r\nimport { IndexTable, useIndexResourceState, TextStyle, Link, Toast,ChoiceList } from '@shopify/polaris';\r\nimport { useLocation, useRouteMatch } from 'react-router-dom';\r\nimport { useQueryParam } from 'use-query-params';\r\nimport { disambiguateLabel, isEmpty, APPNumberParam, AppStringParam } from '../../Utils'\r\nimport useApi from '../../hooks/useApi';\r\nimport FilterPage from '../FilterPage';\r\nimport useFilter from '../../hooks/useFilter';\r\n\r\nexport const EmailConfiguration = () => {\r\n const { url } = useRouteMatch();\r\n const location = useLocation();\r\n const [timestamp, setTimeStamp] = useState(Date.now());\r\n const [showDeletedMessage, setShowDeletedMessage] = useState(false);\r\n\r\n const [page, setPage] = useQueryParam('page', APPNumberParam);\r\n const [type, typeFilter, setTypeFilter] = useFilter('type', AppStringParam, setPage);\r\n\r\n const { loading, error, data: {item1: hasPrevious, item2: hasNext, item3: data}, cache, response, del } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyEmailConfigurationList`, {item1:false, item2: false, item3:[]}, `?page=${page+1}&type=${type}`, `&${timestamp}`); \r\n const { data: types } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyEmailConfigurationTypes`, [], `?`);\r\n const { selectedResources, allResourcesSelected, handleSelectionChange } = useIndexResourceState(data);\r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleTypeChange = useCallback(value => setTypeFilter(value), []); \r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleTypeRemove = useCallback(() => setTypeFilter(''), []); \r\n // eslint-disable-next-line react-hooks/exhaustive-deps \r\n const handleFiltersClearAll = useCallback(() => {\r\n handleTypeRemove();\r\n }, [\r\n handleTypeRemove,\r\n ]);\r\n\r\n const filters = [\r\n {\r\n key: 'type',\r\n label: 'Type',\r\n filter: ( {key: value, label: value, value: value}))}\r\n selected={typeFilter}\r\n onChange={handleTypeChange}\r\n />,\r\n shortcut: true\r\n }];\r\n\r\n const appliedFilters = [];\r\n if (!isEmpty(type)) {\r\n const key = 'type';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, type),\r\n onRemove: handleTypeRemove\r\n });\r\n }\r\n\r\n const deleteCallback = useCallback(async () => {\r\n await del(``, selectedResources);\r\n if (response.ok) {\r\n cache.clear();\r\n handleSelectionChange('all', false);\r\n setShowDeletedMessage(true);\r\n setTimeStamp(Date.now());\r\n }\r\n }, [selectedResources, handleSelectionChange, response, del, cache]);\r\n\r\n const promotedBulkActions = [\r\n {\r\n content: 'Delete',\r\n onAction: deleteCallback,\r\n destructive: true\r\n }];\r\n\r\n\r\n const rowMarkup = data.map(\r\n ({ id, subject, from, to, typeFriendly }, index) => (\r\n \r\n \r\n \r\n {subject}\r\n \r\n \r\n {from} \r\n {to} \r\n {typeFriendly} \r\n \r\n ),\r\n );\r\n\r\n var headings = [\r\n { title: 'Subject' },\r\n { title: 'From' },\r\n { title: 'Bcc' }, \r\n { title: 'Type'}\r\n ];\r\n\r\n const toggleShowDeletedMessage = useCallback(() => setShowDeletedMessage((showDeletedMessage) => !showDeletedMessage), []);\r\n\r\n return (\r\n <>\r\n { setPage(page - 1) }}\r\n hasNext={hasNext}\r\n onNext={() => { setPage(page + 1) }}\r\n />\r\n \r\n {\r\n showDeletedMessage ? : null\r\n }\r\n \r\n );\r\n}","import React, { useCallback, useState } from 'react';\r\nimport { useParams, useLocation, Redirect } from \"react-router-dom\";\r\nimport { Card, Layout, SkeletonBodyText, SkeletonPage, Page, Form, Button, FormLayout, Toast } from '@shopify/polaris';\r\nimport useApi from '../../hooks/useApi';\r\nimport { ErrorPage } from '../../Error';\r\nimport { PolarisFormBuilder } from '@additionapps/polaris-form-builder';\r\nimport { data } from '@shopify/app-bridge/actions/Modal';\r\n\r\nexport const EmailConfigurationDetail = () => {\r\n const { id } = useParams([]);\r\n const location = useLocation();\r\n const [showSaveMessage, setShowSaveMessage] = useState(false);\r\n const [saveError, setSaveError] = useState('');\r\n let locationSerach = \"\";\r\n\r\n if (location.state.location) {\r\n locationSerach = location.state.location.search;\r\n }\r\n\r\n let urlId = id;\r\n if (isNaN(id)) {\r\n urlId = 0;\r\n }\r\n\r\n const { loading, error, data, response, cache, setData, put } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyEmailConfiguration`,\r\n {\r\n id: 0,\r\n from: '',\r\n to:'',\r\n subject: '',\r\n template:''\r\n\r\n }, urlId); \r\n \r\n data.id = data.id + \"\";\r\n\r\n const fields = [ \r\n {\r\n key: \"from\",\r\n input: \"text\",\r\n config: {\r\n name: \"from\",\r\n label: \"From\",\r\n placeholder: \"From\"\r\n },\r\n }, \r\n {\r\n key: \"to\",\r\n input: \"text\",\r\n config: {\r\n name: \"to\",\r\n label: \"Bcc\",\r\n placeholder: \"Bcc\"\r\n },\r\n },\r\n {\r\n key: \"subject\",\r\n input: \"text\",\r\n config: {\r\n name: \"subject\",\r\n label: \"Subject\",\r\n placeholder: \"Subject\"\r\n },\r\n },\r\n {\r\n key: \"template\",\r\n input: \"text\",\r\n config: {\r\n name: \"template\",\r\n label: \"Template\",\r\n placeholder: \"Template\",\r\n multiline:6\r\n },\r\n }, \r\n ];\r\n\r\n const toggleShowSaveMessage = useCallback(() => setShowSaveMessage((showSaveMessage) => !showSaveMessage), []);\r\n\r\n const handleSubmit = useCallback(async () => {\r\n data.emailConfiguration = null;\r\n const ret = await put(`${urlId}`, data)\r\n if (response.ok) {\r\n cache.clear();\r\n setData(ret);\r\n setShowSaveMessage(true);\r\n setSaveError('');\r\n } else {\r\n setSaveError(response.data);\r\n }\r\n }, [data, urlId, response, put, setData, cache, setShowSaveMessage]);\r\n\r\n\r\n return (\r\n loading?\r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
:\r\n \r\n {urlId === 0 && data.id > 0 ? : null}\r\n {\r\n error && !saveError ?\r\n \r\n \r\n : ''\r\n }\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n {\r\n showSaveMessage ? : null\r\n }\r\n \r\n );\r\n}\r\n","import React, { useCallback, useState } from 'react';\r\nimport { TextField, IndexTable, useIndexResourceState, TextStyle, Link, Toast } from '@shopify/polaris';\r\nimport { useLocation, useRouteMatch } from 'react-router-dom';\r\nimport { useQueryParam } from 'use-query-params';\r\nimport { disambiguateLabel, isEmpty, APPNumberParam, AppStringParam } from '../../Utils'\r\nimport useApi from '../../hooks/useApi';\r\nimport FilterPage from '../FilterPage';\r\nimport useFilter from '../../hooks/useFilter';\r\n\r\nexport const ReasonConfiguration = () => {\r\n const { url } = useRouteMatch();\r\n const location = useLocation();\r\n const [timestamp, setTimeStamp] = useState(Date.now());\r\n const [showDeletedMessage, setShowDeletedMessage] = useState(false);\r\n\r\n const [page, setPage] = useQueryParam('page', APPNumberParam);\r\n const [title, titleFilter, setTitleFilter] = useFilter('title', AppStringParam, setPage);\r\n\r\n const { loading, error, data: {item1: hasPrevious, item2: hasNext, item3: data}, cache, response, del } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyReasonConfiguration`, {item1:false, item2: false, item3:[]}, `?page=${page+1}&title=${title}`, `&${timestamp}`);\r\n\r\n const { selectedResources, allResourcesSelected, handleSelectionChange } = useIndexResourceState(data);\r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleTitleChange = useCallback(value => setTitleFilter(value), []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleTitleRemove = useCallback(() => setTitleFilter(''), []);\r\n const handleFiltersClearAll = useCallback(() => {\r\n handleTitleRemove();\r\n }, [\r\n handleTitleRemove\r\n ]);\r\n\r\n const filters = [{\r\n key: 'title',\r\n label: 'Title',\r\n filter: ,\r\n shortcut: true\r\n }];\r\n\r\n const appliedFilters = [];\r\n if (!isEmpty(title)) {\r\n const key = 'title';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, title),\r\n onRemove: handleTitleRemove\r\n });\r\n }\r\n\r\n const deleteCallback = useCallback(async () => {\r\n await del(``, selectedResources);\r\n if (response.ok) {\r\n cache.clear();\r\n handleSelectionChange('all', false);\r\n setShowDeletedMessage(true);\r\n setTimeStamp(Date.now());\r\n }\r\n }, [selectedResources, handleSelectionChange, response, del, cache]);\r\n\r\n const promotedBulkActions = [\r\n {\r\n content: 'Delete',\r\n onAction: deleteCallback,\r\n destructive: true\r\n }];\r\n\r\n const rowMarkup = data.map(\r\n ({ id, title, returnApprovalRequired }, index) => (\r\n \r\n \r\n \r\n {title}\r\n \r\n \r\n {returnApprovalRequired ? 'Yes' : 'No'} \r\n \r\n \r\n \r\n ),\r\n );\r\n\r\n var headings = [\r\n { title: 'Title' },\r\n { title: 'Return Approval Required' }\r\n ];\r\n\r\n const toggleShowDeletedMessage = useCallback(() => setShowDeletedMessage((showDeletedMessage) => !showDeletedMessage), []);\r\n console.log(\"List location\", location,url);\r\n return (\r\n <>\r\n { setPage(page - 1) }}\r\n hasNext={hasNext}\r\n onNext={() => { setPage(page + 1) }}\r\n />\r\n {\r\n showDeletedMessage ? : null\r\n }\r\n \r\n );\r\n}","import React, { useCallback, useState } from 'react';\r\nimport { useParams, useLocation, Redirect } from \"react-router-dom\";\r\nimport { Card, TextContainer, Layout, SkeletonBodyText, SkeletonPage, Page, Form, Button, FormLayout, Toast } from '@shopify/polaris';\r\nimport useApi from '../../hooks/useApi';\r\nimport { ErrorPage } from '../../Error';\r\nimport { PolarisFormBuilder } from '@additionapps/polaris-form-builder';\r\n\r\nexport const ReasonConfigurationDetail = () => {\r\n const { id } = useParams([]);\r\n const location = useLocation();\r\n const [showSaveMessage, setShowSaveMessage] = useState(false);\r\n const [saveError, setSaveError] = useState('');\r\n let locationSerach = \"\";\r\n \r\n if(location.state.location) {\r\n locationSerach = location.state.location.search;\r\n }\r\n\r\n let urlId = id;\r\n if(isNaN(id)) {\r\n urlId = 0;\r\n }\r\n \r\n const { loading, error, data, response, cache, setData, put } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyReasonConfiguration`, \r\n {\r\n id: 0,\r\n title: '',\r\n returnApprovalRequired: false, \r\n }, urlId);\r\n\r\n const fields = [\r\n {\r\n key: \"title\",\r\n input: \"text\",\r\n config: {\r\n name: \"title\",\r\n label: \"Title\",\r\n placeholder: \"Title\"\r\n },\r\n }, \r\n {\r\n key: \"returnApprovalRequired\",\r\n input: \"checkbox\",\r\n config: {\r\n name: \"returnApprovalRequired\",\r\n label: \"Return Approval Required\",\r\n },\r\n }, \r\n ];\r\n\r\n const toggleShowSaveMessage = useCallback(() => setShowSaveMessage((showSaveMessage) => !showSaveMessage), []);\r\n\r\n const handleSubmit = useCallback(async () => {\r\n const ret = await put(`${urlId}`, data)\r\n if (response.ok) {\r\n cache.clear();\r\n setData(ret);\r\n setShowSaveMessage(true);\r\n setSaveError('');\r\n } else {\r\n setSaveError(response.data);\r\n }\r\n }, [data, urlId, response, put, setData, cache, setShowSaveMessage]);\r\n\r\n \r\n return (\r\n loading ?\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n :\r\n \r\n {urlId === 0 && data.id > 0? : null}\r\n {\r\n error && !saveError? \r\n \r\n \r\n : ''\r\n }\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n {\r\n showSaveMessage ? : null\r\n }\r\n \r\n );\r\n}\r\n","import React, { useCallback, useState } from 'react';\r\nimport { TextField, IndexTable, useIndexResourceState, TextStyle, Link, Toast } from '@shopify/polaris';\r\nimport { useLocation, useRouteMatch } from 'react-router-dom';\r\nimport { useQueryParam } from 'use-query-params';\r\nimport { disambiguateLabel, isEmpty, APPNumberParam, AppStringParam } from '../../Utils'\r\nimport useApi from '../../hooks/useApi';\r\nimport FilterPage from '../FilterPage';\r\nimport useFilter from '../../hooks/useFilter';\r\n\r\nexport const LabelConfiguration = () => {\r\n const { url } = useRouteMatch();\r\n const location = useLocation();\r\n const [timestamp, setTimeStamp] = useState(Date.now());\r\n const [showDeletedMessage, setShowDeletedMessage] = useState(false);\r\n\r\n const [page, setPage] = useQueryParam('page', APPNumberParam);\r\n const [label, labelFilter, setLabelFilter] = useFilter('Label', AppStringParam, setPage);\r\n\r\n const { loading, error, data: {item1: hasPrevious, item2: hasNext, item3: data}, cache, response, del } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyLabelConfiguration`, {item1:false, item2: false, item3:[]}, `?page=${page+1}&label=${labelFilter}`, `&${timestamp}`);\r\n\r\n const { selectedResources, allResourcesSelected, handleSelectionChange } = useIndexResourceState(data);\r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleTitleChange = useCallback(value => setLabelFilter(value), []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleTitleRemove = useCallback(() => setLabelFilter(''), []);\r\n const handleFiltersClearAll = useCallback(() => {\r\n handleTitleRemove();\r\n }, [\r\n handleTitleRemove\r\n ]);\r\n\r\n const filters = [{\r\n key: 'label',\r\n label: 'Label',\r\n filter: ,\r\n shortcut: true\r\n }];\r\n\r\n const appliedFilters = [];\r\n if (!isEmpty(label)) {\r\n const key = 'label';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, label),\r\n onRemove: handleTitleRemove\r\n });\r\n }\r\n\r\n const deleteCallback = useCallback(async () => {\r\n await del(``, selectedResources);\r\n if (response.ok) {\r\n cache.clear();\r\n handleSelectionChange('all', false);\r\n setShowDeletedMessage(true);\r\n setTimeStamp(Date.now());\r\n }\r\n }, [selectedResources, handleSelectionChange, response, del, cache]);\r\n\r\n const promotedBulkActions = [\r\n {\r\n content: 'Delete',\r\n onAction: deleteCallback,\r\n destructive: true\r\n }];\r\n\r\n const rowMarkup = data.map(\r\n ({ id, label, text }, index) => (\r\n \r\n \r\n \r\n {label}\r\n \r\n \r\n {text} \r\n \r\n \r\n \r\n ),\r\n );\r\n\r\n var headings = [\r\n { title: 'Label' },\r\n { title: 'Text' }\r\n ];\r\n\r\n const toggleShowDeletedMessage = useCallback(() => setShowDeletedMessage((showDeletedMessage) => !showDeletedMessage), []);\r\n \r\n return (\r\n <>\r\n { setPage(page - 1) }}\r\n hasNext={hasNext}\r\n onNext={() => { setPage(page + 1) }}\r\n />\r\n {\r\n showDeletedMessage ? : null\r\n }\r\n \r\n );\r\n}","import React, { useCallback, useState } from 'react';\r\nimport { useParams, useLocation, Redirect } from \"react-router-dom\";\r\nimport { Card, TextContainer, Layout, SkeletonBodyText, SkeletonPage, Page, Form, Button, FormLayout, Toast } from '@shopify/polaris';\r\nimport useApi from '../../hooks/useApi';\r\nimport { ErrorPage } from '../../Error';\r\nimport { PolarisFormBuilder } from '@additionapps/polaris-form-builder';\r\n\r\nexport const LabelConfigurationDetail = () => {\r\n const { id } = useParams([]);\r\n const location = useLocation();\r\n const [showSaveMessage, setShowSaveMessage] = useState(false);\r\n const [saveError, setSaveError] = useState('');\r\n let locationSerach = \"\";\r\n \r\n if(location.state.location) {\r\n locationSerach = location.state.location.search;\r\n }\r\n\r\n let urlId = id;\r\n if(isNaN(id)) {\r\n urlId = 0;\r\n }\r\n \r\n const { loading, error, data, response, cache, setData, put } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyLabelConfiguration`, \r\n {\r\n id: 0,\r\n label: '',\r\n text: ''\r\n }, urlId);\r\n\r\n const fields = [\r\n {\r\n key: \"label\",\r\n input: \"text\",\r\n config: {\r\n name: \"label\",\r\n label: \"label\",\r\n placeholder: \"label\"\r\n },\r\n }, \r\n {\r\n key: \"text\",\r\n input: \"text\",\r\n config: {\r\n name: \"text\",\r\n label: \"text\",\r\n placeholder: \"text\"\r\n },\r\n } \r\n ];\r\n\r\n const toggleShowSaveMessage = useCallback(() => setShowSaveMessage((showSaveMessage) => !showSaveMessage), []);\r\n\r\n const handleSubmit = useCallback(async () => {\r\n const ret = await put(`${urlId}`, data)\r\n if (response.ok) {\r\n cache.clear();\r\n setData(ret);\r\n setShowSaveMessage(true);\r\n setSaveError('');\r\n } else {\r\n setSaveError(response.data);\r\n }\r\n }, [data, urlId, response, put, setData, cache, setShowSaveMessage]);\r\n\r\n \r\n return (\r\n loading ?\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n :\r\n \r\n {urlId === 0 && data.id > 0? : null}\r\n {\r\n error && !saveError? \r\n \r\n \r\n : ''\r\n }\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n {\r\n showSaveMessage ? : null\r\n }\r\n \r\n );\r\n}\r\n","import React, { useCallback, useState } from 'react';\r\nimport { TextField, IndexTable, useIndexResourceState, TextStyle, Link, Toast } from '@shopify/polaris';\r\nimport { useLocation, useRouteMatch } from 'react-router-dom';\r\nimport { useQueryParam } from 'use-query-params';\r\nimport { disambiguateLabel, isEmpty, APPNumberParam, AppStringParam } from '../../Utils'\r\nimport useApi from '../../hooks/useApi';\r\nimport FilterPage from '../FilterPage';\r\nimport useFilter from '../../hooks/useFilter';\r\n\r\nexport const StatusConfiguration = () => {\r\n const { url } = useRouteMatch();\r\n const location = useLocation();\r\n const [timestamp, setTimeStamp] = useState(Date.now());\r\n const [showDeletedMessage, setShowDeletedMessage] = useState(false);\r\n\r\n const [page, setPage] = useQueryParam('page', APPNumberParam);\r\n const [label, labelFilter, setLabelFilter] = useFilter('Label', AppStringParam, setPage);\r\n\r\n const { loading, error, data: {item1: hasPrevious, item2: hasNext, item3: data}, cache, response, del } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyStatusConfiguration`, {item1:false, item2: false, item3:[]}, `?page=${page+1}&label=${labelFilter}`, `&${timestamp}`);\r\n\r\n const { selectedResources, allResourcesSelected, handleSelectionChange } = useIndexResourceState(data);\r\n\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleTitleChange = useCallback(value => setLabelFilter(value), []);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const handleTitleRemove = useCallback(() => setLabelFilter(''), []);\r\n const handleFiltersClearAll = useCallback(() => {\r\n handleTitleRemove();\r\n }, [\r\n handleTitleRemove\r\n ]);\r\n\r\n const filters = [{\r\n key: 'label',\r\n label: 'Status',\r\n filter: ,\r\n shortcut: true\r\n }];\r\n\r\n const appliedFilters = [];\r\n if (!isEmpty(label)) {\r\n const key = 'label';\r\n appliedFilters.push({\r\n key,\r\n label: disambiguateLabel(key, label),\r\n onRemove: handleTitleRemove\r\n });\r\n }\r\n\r\n const deleteCallback = useCallback(async () => {\r\n await del(``, selectedResources);\r\n if (response.ok) {\r\n cache.clear();\r\n handleSelectionChange('all', false);\r\n setShowDeletedMessage(true);\r\n setTimeStamp(Date.now());\r\n }\r\n }, [selectedResources, handleSelectionChange, response, del, cache]);\r\n\r\n const promotedBulkActions = [\r\n {\r\n content: 'Delete',\r\n onAction: deleteCallback,\r\n destructive: true\r\n }];\r\n\r\n const rowMarkup = data.map(\r\n ({ id, status, statusName, statusLabel }, index) => (\r\n \r\n \r\n \r\n {status}\r\n \r\n \r\n {statusName} \r\n {statusLabel} \r\n \r\n \r\n \r\n ),\r\n );\r\n\r\n var headings = [\r\n { title: 'Status' },\r\n { title: 'Status Name' },\r\n { title: 'Status Label'}\r\n ];\r\n\r\n const toggleShowDeletedMessage = useCallback(() => setShowDeletedMessage((showDeletedMessage) => !showDeletedMessage), []);\r\n \r\n return (\r\n <>\r\n { setPage(page - 1) }}\r\n hasNext={hasNext}\r\n onNext={() => { setPage(page + 1) }}\r\n />\r\n {\r\n showDeletedMessage ? : null\r\n }\r\n \r\n );\r\n}","import React, { useCallback, useState } from 'react';\r\nimport { useParams, useLocation, Redirect } from \"react-router-dom\";\r\nimport { Card, TextContainer, Layout, SkeletonBodyText, SkeletonPage, Page, Form, Button, FormLayout, Toast } from '@shopify/polaris';\r\nimport useApi from '../../hooks/useApi';\r\nimport { ErrorPage } from '../../Error';\r\nimport { PolarisFormBuilder } from '@additionapps/polaris-form-builder';\r\n\r\nexport const StatusConfigurationDetail = () => {\r\n const { id } = useParams([]);\r\n const location = useLocation();\r\n const [showSaveMessage, setShowSaveMessage] = useState(false);\r\n const [saveError, setSaveError] = useState('');\r\n let locationSerach = \"\";\r\n \r\n if(location.state.location) {\r\n locationSerach = location.state.location.search;\r\n }\r\n\r\n let urlId = id;\r\n if(isNaN(id)) {\r\n urlId = 0;\r\n }\r\n \r\n const { loading, error, data, response, cache, setData, put } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyStatusConfiguration`, \r\n {\r\n id: 0,\r\n label: '',\r\n text: ''\r\n }, urlId);\r\n\r\n const fields = [\r\n {\r\n key: \"status\",\r\n input: \"text\",\r\n config: {\r\n name: \"status\",\r\n label: \"status\",\r\n placeholder: \"status\",\r\n disabled: true\r\n },\r\n }, \r\n {\r\n key: \"statusName\",\r\n input: \"text\",\r\n config: {\r\n name: \"statusName\",\r\n label: \"statusName\",\r\n placeholder: \"Status Name\",\r\n disabled: true\r\n }, \r\n }, \r\n {\r\n key: \"statusLabel\",\r\n input: \"text\",\r\n config: {\r\n name: \"statusLabel\",\r\n label: \"statusLabel\",\r\n placeholder: \"Status Label\" \r\n },\r\n } \r\n ];\r\n\r\n const toggleShowSaveMessage = useCallback(() => setShowSaveMessage((showSaveMessage) => !showSaveMessage), []);\r\n\r\n const handleSubmit = useCallback(async () => {\r\n const ret = await put(`${urlId}`, data)\r\n if (response.ok) {\r\n cache.clear();\r\n setData(ret);\r\n setShowSaveMessage(true);\r\n setSaveError('');\r\n } else {\r\n setSaveError(response.data);\r\n }\r\n }, [data, urlId, response, put, setData, cache, setShowSaveMessage]);\r\n\r\n \r\n return (\r\n loading ?\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n :\r\n \r\n {urlId === 0 && data.id > 0? : null}\r\n {\r\n error && !saveError? \r\n \r\n \r\n : ''\r\n }\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n {\r\n showSaveMessage ? : null\r\n }\r\n \r\n );\r\n}\r\n","import React from 'react';\r\nimport { Switch, useRouteMatch, Redirect } from 'react-router';\r\nimport { PrivateRoute } from '../../PrivateRoute'\r\nimport { AppStoreConfiguration } from './AppStoreConfiguration';\r\nimport { ShippingConfigurationDetail } from './ShippingConfigurationDetail';\r\nimport { ShippingConfiguration } from './ShippingConfiguration';\r\nimport { ShippingTypeConfigurationDetail } from './ShippingTypeConfigurationDetail';\r\nimport { ShippingTypeConfiguration } from './ShippingTypeConfiguration';\r\nimport { EmailConfiguration } from './EmailConfigurations';\r\nimport { EmailConfigurationDetail } from './EmailConfigurationsDetail';\r\nimport { ReasonConfiguration } from './ReasonConfiguration';\r\nimport { ReasonConfigurationDetail } from './ReasonConfigurationDetail';\r\nimport { LabelConfiguration } from './LabelConfiguration';\r\nimport { LabelConfigurationDetail } from './LabelConfigurationDetail';\r\nimport { StatusConfiguration } from './StatusConfiguration';\r\nimport { StatusConfigurationDetail } from './StatusConfigurationDetail';\r\n\r\nexport const Settings = () => {\r\n let { path } = useRouteMatch();\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}","import React, { useCallback, useState } from 'react';\r\nimport { useLocation, useHistory } from 'react-router-dom';\r\nimport useApi from '../../hooks/useApi';\r\nimport { Centralize } from '../../Centralize'\r\nimport { Spinner, Form, Card } from '@shopify/polaris';\r\nimport { PolarisFormBuilder } from '@additionapps/polaris-form-builder';\r\nimport { ErrorPage } from '../../Error';\r\nimport './../../custom.css';\r\nimport loginImage from \"./../../assets/loginImage.jpg\";\r\nimport loginImageTop from \"./../../assets/imgTopMobile.jpg\";\r\nimport colImageBox from \"./../../assets/box-img.png\";\r\nimport colImageClock from \"./../../assets/clock_img.png\";\r\nimport colImageLike from \"./../../assets/like-img.png\";\r\nimport {getLabelText} from '../../Utils'\r\n\r\nexport const ReturnLogin = () => {\r\n const location = useLocation();\r\n const history= useHistory(); \r\n const [saveError, setSaveError] = useState('');\r\n const [listError, setListError] = useState('');\r\n \r\n const [data, setData] = useState({\r\n orderNumber: '',\r\n email: ''\r\n });\r\n\r\n const { loading, error,response, cache, post } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyOrderReturnLogin`, []); \r\n\r\n const { data: labelsList } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyOrderReturnLabels`, [],`${location.search}`);\r\n \r\n\r\n const fields = [\r\n {\r\n key: \"orderNumber\",\r\n input: \"text\",\r\n config: {\r\n name: \"orderNumber\",\r\n label: \"Order #\",\r\n placeholder: \"AB-CD-12345\" \r\n },\r\n },\r\n {\r\n key: \"email\",\r\n input: \"text\",\r\n config: {\r\n name: \"email\",\r\n label: \"Email\",\r\n placeholder: \"customer@host.com\"\r\n },\r\n }, \r\n ];\r\n\r\n\r\n const handleSubmit = useCallback(async () => {\r\n \r\n const ret = await post(`${location.search}`, {\r\n orderNumber: data.orderNumber,\r\n email: data.email\r\n })\r\n \r\n if(response.ok){\r\n if (ret.isValid) {\r\n setSaveError(''); \r\n setListError(''); \r\n \r\n ret.labels = labelsList.labels;\r\n ret.locationSearch = location.search;\r\n setData(ret) ; \r\n \r\n history.push({pathname: '/return/order',state: ret});\r\n\r\n }\r\n else {\r\n setListError(getLabelText('LOGINRETURN_NOTFOUND',labelsList.labels));\r\n }\r\n }\r\n else {\r\n cache.clear();\r\n setSaveError(response.data);\r\n }\r\n \r\n }, [data, history, cache, response, post, location,labelsList]);\r\n\r\n\r\n return (\r\n\r\n \r\n\r\n loading ?\r\n \r\n \r\n \r\n :\r\n\r\n <> \r\n { error && !saveError? \r\n \r\n \r\n : null\r\n } \r\n\r\n
\r\n
\r\n
\"\"
\r\n
\r\n
\r\n
\r\n

{getLabelText('LOGINRETURN_TITLE',labelsList.labels)}

\r\n\r\n

\r\n

\r\n\r\n {\r\n listError && \r\n

\r\n }\r\n\r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \"\"\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n \"\"\r\n

{getLabelText('LOGINRETURN_MAIL_TITLE',labelsList.labels)}

\r\n \r\n
\r\n\r\n
\r\n \"\"\r\n

{getLabelText('LOGINRETURN_COST_TITLE',labelsList.labels)}

\r\n \r\n
\r\n\r\n
\r\n \"\"\r\n

{getLabelText('LOGINRETURN_TIMELINE_TITLE',labelsList.labels)}

\r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n ); \r\n}\r\n","import React, { useState } from 'react';\r\nimport './../custom.css';\r\n\r\nconst CollapsiblePublic = (props) => { \r\n \r\n const [rotateChevron, setRotateChevron] = useState(false);\r\n const [enableProducts, setEnableProducts] = useState(false); \r\n\r\n const rotate = rotateChevron ? \"rotate(45deg)\" : \"rotate(-47deg)\"\r\n\r\n const showProducts = () => {\r\n setEnableProducts(prevCheck => !prevCheck); \r\n setRotateChevron(!rotateChevron); \r\n }\r\n\r\n return(\r\n <> \r\n
\r\n
\r\n {props.products.rma}\r\n \r\n
\r\n {enableProducts && \r\n
\r\n \r\n
\r\n
Item
\r\n
Qty
\r\n
\r\n \r\n { \r\n props.products.products.map(function(product) {\r\n return( \r\n <>\r\n
\r\n
{product.title}
\r\n
{product.quantity}
\r\n
\r\n \r\n ) \r\n })\r\n }\r\n \r\n
\r\n }\r\n
\r\n \r\n )\r\n}\r\n \r\n\r\nexport default CollapsiblePublic;","import React, { useState } from 'react';\r\nimport { useLocation, useHistory } from 'react-router-dom';\r\nimport './../../custom.css';\r\nimport iconEmpty from \"./../../assets/icon_package_empty.png\";\r\nimport {getLabelText} from '../../Utils';\r\nimport CollapsiblePublic from '../CollapsiblePublic';\r\nimport listImage from './../../assets/noListImage.jpg';\r\n\r\nexport const ReturnOrder = () => { \r\n const location = useLocation();\r\n const history= useHistory();\r\n const orderReturn = location.state;\r\n\r\n\r\n const [enabled, setEnabled] = useState(false);\r\n const [promoSelected, setPromoSelected] = useState(false);\r\n const [items, setItems] = useState({});\r\n\r\n const handleOnChange = ((value,key) => {\r\n \r\n if(key == \"promo\"){\r\n setPromoSelected(true);\r\n }\r\n\r\n var currentItems = {...items};\r\n\r\n currentItems[key] = value;\r\n\r\n   setItems(currentItems);\r\n\r\n if (Object.values(currentItems).map(Number).reduce((a,v) => a + v ,0) > 0){\r\n setEnabled(true);\r\n }\r\n else{ \r\n setEnabled(false);\r\n }\r\n \r\n});\r\n\r\n const handleContinue = () => {\r\n\r\n orderReturn.order.fulfillmentsLineItems.map(function(item) { \r\n item.returnQuantity = 0; \r\n });\r\n\r\n orderReturn.order.fulfillmentsPromoLineItems.map(function(item) { \r\n item.returnQuantity = 0; \r\n });\r\n \r\n orderReturn.order.fulfillmentsLineItems.forEach(ret => {\r\n \r\n for (let index = 0; index < Object.entries(items).length; index++) {\r\n\r\n var lineItemId = Object.keys(items)[index];\r\n var quantity = Object.values(items)[index];\r\n\r\n if(lineItemId === ret.lineItemId.toString()){\r\n if(ret.returnable){\r\n ret.returnQuantity = parseInt(quantity);\r\n }\r\n } \r\n } \r\n });\r\n\r\n if(promoSelected){\r\n orderReturn.order.fulfillmentsPromoLineItems.forEach(ret => {\r\n \r\n if(ret.returnable){\r\n ret.returnQuantity = parseInt(ret.quantity);\r\n } \r\n \r\n });\r\n }\r\n else{\r\n orderReturn.order.fulfillmentsPromoLineItems = [];\r\n }\r\n\r\n history.push({pathname: '/return/submit',state: orderReturn});\r\n\r\n };\r\n\r\n \r\n const formatDate = (date) => {\r\n\r\n var orderDate = new Date(date);\r\n var options = { year: 'numeric', month: 'long', day: 'numeric' };\r\n return orderDate.toLocaleDateString(\"en-US\", options);\r\n }\r\n\r\n const scrollAssociated = () => {\r\n document.getElementById(\"associatedReturns\").scrollIntoView();\r\n\r\n }\r\n\r\n\r\n return( \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n {getLabelText('ORDERPRODUCT_TITLE',orderReturn.labels)}\r\n {orderReturn.order.name}\r\n
\r\n\r\n
\r\n {getLabelText('ORDERPRODUCT_TITLE_ORDERDATE',orderReturn.labels)}\r\n {formatDate(orderReturn.order.createdAt)}\r\n
\r\n
\r\n
\r\n \r\n\r\n {orderReturn.associatedReturns.length > 0 && \r\n \r\n }\r\n
\r\n
\r\n\r\n
\r\n { !orderReturn.order.fulfillmentsLineItems.map(x => (x.quantity === 0)).every(v => v === true) && \r\n
\r\n
{getLabelText('ORDERREASON_TABLEHEADER_PRODUCT',orderReturn.labels)}
\r\n
{getLabelText('ORDERREASON_TABLEHEADER_RETURNQTY',orderReturn.labels)}
\r\n
\r\n } \r\n
\r\n { \r\n\r\n orderReturn.order.isReturnable ?\r\n\r\n orderReturn.order.fulfillmentsLineItems.map(x => (x.quantity === 0)).every(v => v === true) &&\r\n orderReturn.order.fulfillmentsPromoLineItems.map(x => (x.quantity === 0)).every(v => v === true) ?\r\n \r\n
\r\n {getLabelText('ORDERPRODUCTS_EMPTY_PRODUCTS',orderReturn.labels)}\r\n
\r\n :\r\n orderReturn.order.fulfillmentsLineItems.map(function(item) {\r\n\r\n const selQty = [...Array(item.quantity +1).keys()]; \r\n \r\n return( \r\n <>\r\n { item.quantity > 0 &&\r\n
\r\n \r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n\r\n
\r\n
\r\n

{item.title}

\r\n {getLabelText('ORDERPRODUCT_TABLEHEADER_SKU',orderReturn.labels)} {item.sku} \r\n ${item.price} \r\n \r\n { item.returnable && \r\n <>\r\n {getLabelText('ORDERREASON_TABLEHEADER_RETURNQTY',orderReturn.labels)}\r\n \r\n \r\n } \r\n\r\n { !item.returnable && \r\n \r\n }\r\n \r\n
\r\n
\r\n \r\n
\r\n { item.returnable && \r\n \r\n } \r\n\r\n { !item.returnable && \r\n \r\n }\r\n
\r\n
\r\n }\r\n \r\n ) \r\n })\r\n\r\n :\r\n
\r\n }\r\n
\r\n\r\n \r\n { orderReturn.order.fulfillmentsPromoLineItems.length > 0 && orderReturn.order.fulfillmentsPromoLineItems.map(x => (x.quantity > 0)).every(v => v === true) &&\r\n
\r\n
\r\n
\r\n Promotional Products - {orderReturn.order.promoTitle}\r\n
\r\n
\r\n \r\n
\r\n
\r\n {\r\n orderReturn.order.fulfillmentsPromoLineItems.map(function(item) {\r\n \r\n const selQty = [...Array(item.quantity +1).keys()]; \r\n\r\n return( \r\n <>\r\n { item.quantity > 0 &&\r\n
\r\n \r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n\r\n
\r\n
\r\n

{item.title}

\r\n {getLabelText('ORDERPRODUCT_TABLEHEADER_SKU',orderReturn.labels)} {item.sku} \r\n { item.promoPrice < item.price ? \r\n <>\r\n ${item.price} \r\n ${ item.promoPrice == 0 ? item.promoPrice : (item.price - Math.abs(item.promoPrice))}\r\n
MULTI
\r\n \r\n : ${item.price}\r\n } \r\n \r\n \r\n\r\n { !item.returnable && \r\n \r\n }\r\n \r\n
\r\n
\r\n \r\n
\r\n { !item.returnable && \r\n \r\n }\r\n
\r\n
\r\n }\r\n \r\n ) \r\n })\r\n }\r\n
\r\n }\r\n \r\n
\r\n
\r\n \r\n\r\n \r\n
\r\n
\r\n

Associated Returns

\r\n \r\n {orderReturn.associatedReturns.length > 0 ?\r\n <> \r\n\r\n
\r\n\r\n
\r\n
\r\n
Product
\r\n
Date
\r\n
Status
\r\n
\r\n\r\n
\r\n\r\n { \r\n orderReturn.associatedReturns.map(function(item) {\r\n\r\n return( \r\n <>\r\n
\r\n
\r\n
\r\n\r\n \r\n \r\n
\r\n\r\n
\r\n
\r\n { formatDate(item.date) }\r\n
\r\n \r\n
\r\n { item.statusFriendly }\r\n
\r\n
\r\n
\r\n
\r\n \r\n )\r\n })\r\n }\r\n
\r\n
\r\n \r\n :\r\n
\r\n Associated empty\r\n
{getLabelText(\"ORDERASSOCIATED_EMPTY_TEXT\",orderReturn.labels)}
\r\n
\r\n
\r\n \r\n }\r\n
\r\n
\r\n\r\n
\r\n
\r\n

\r\n {getLabelText('ORDERREASON_NOTICE_TITLE',orderReturn.labels)}\r\n

\r\n
\r\n
\r\n
\r\n
\r\n )\r\n}","import React, { useCallback, useState } from 'react';\r\nimport { useLocation, useHistory } from 'react-router-dom';\r\nimport './../../custom.css';\r\nimport useApi from '../../hooks/useApi';\r\nimport { ErrorPage } from '../../Error';\r\nimport { Card } from '@shopify/polaris';\r\nimport {getLabelText} from '../../Utils';\r\nimport listImageSubmit from './../../assets/noListImage.jpg';\r\nimport warningIcon from \"./../../assets/warning-icon.png\";\r\n\r\nexport const ReturnSubmit = () => { \r\n const location = useLocation();\r\n const history= useHistory();\r\n const orderReturn = location.state; \r\n const [orderReturnSubmit, setOrderReturnSubmit] = useState(orderReturn); \r\n\r\n const labels = orderReturn.labels;\r\n\r\n const [saveError, setSaveError] = useState(''); \r\n const [enabled, setEnabled] = useState(true); \r\n const [showSealedCopy, setShowSealedCopy] = useState({});\r\n const [showSealed, setShowSealed] = useState({});\r\n const [isFormValid, setIsFormValid] = useState(null); \r\n const [reasonValidations, setReasonValidations] = useState({});\r\n const [sealedValidations, setSealedValidations] = useState({});\r\n \r\n\r\n const { error, response, cache, put } = useApi(`${process.env.REACT_APP_APIDomain}/ShopifyOrderReturn`, []);\r\n\r\n const formatDate = (date) => {\r\n var orderDate = new Date(date);\r\n var options = { year: 'numeric', month: 'long', day: 'numeric' };\r\n return orderDate.toLocaleDateString(\"en-US\", options);\r\n }\r\n\r\n let requestObj = { \r\n OrderID: orderReturn.order.orderID ,\r\n OrderNumber: orderReturn.order.name,\r\n OrderItems: [],\r\n OrderPromoItems: [],\r\n Email: orderReturn.order.email,\r\n labels: orderReturn.labels,\r\n rma: '',\r\n createdAt: ''\r\n };\r\n \r\n orderReturn.order.fulfillmentsLineItems.forEach(element => {\r\n\r\n if(element.returnable && element.returnQuantity){\r\n\r\n var objItem = { \r\n sku: element.sku,\r\n title: element.title, \r\n reasonId: isNaN(element.reasonId) ? 0 : parseInt(element.reasonId),\r\n lineItemId: element.lineItemId,\r\n isSealed: element.sealed,\r\n shouldBeSealed: element.shouldBeSealed,\r\n quantity: element.returnQuantity,\r\n imageUrl:'' \r\n } \r\n\r\n requestObj.OrderItems.push(objItem);\r\n }\r\n\r\n }); \r\n\r\n orderReturn.order.fulfillmentsPromoLineItems.forEach(element => {\r\n\r\n if(element.returnable){\r\n\r\n var objItem = { \r\n sku: element.sku,\r\n title: element.title, \r\n reasonId: isNaN(element.reasonId) ? 0 : parseInt(element.reasonId),\r\n lineItemId: element.lineItemId,\r\n isSealed: element.sealed,\r\n shouldBeSealed: element.shouldBeSealed,\r\n quantity: element.quantity,\r\n imageUrl: ''\r\n } \r\n\r\n requestObj.OrderPromoItems.push(objItem);\r\n }\r\n\r\n }); \r\n\r\n const handleReasonsChange = ((value,key) => {\r\n\r\n var values = value.split(\"|\"); \r\n value = values[0];\r\n\r\n var returnApprovalRequired = values[1] === \"true\" ? true : false;\r\n \r\n var currentItems = {...showSealed}; \r\n var currentValidations = {...reasonValidations}; \r\n \r\n var showReasonVisible = value !== '' && !returnApprovalRequired ? true : false;\r\n\r\n\r\n currentItems[key.lineItemId] = showReasonVisible;\r\n\r\n setShowSealed(currentItems);\r\n\r\n var currentSealedCopy = {...showSealedCopy}; \r\n\r\n if(returnApprovalRequired || value === ''){\r\n currentSealedCopy[key.lineItemId] = false;\r\n setShowSealedCopy(currentSealedCopy); \r\n }\r\n\r\n if(Object.values(requestObj.OrderItems).map(x => x.lineItemId === key.lineItemId).length > 0 ){\r\n \r\n orderReturn.order.fulfillmentsLineItems.forEach(ret => {\r\n if(key.lineItemId === ret.lineItemId){\r\n if(ret.returnable){\r\n ret.reasonId = parseInt(value);\r\n ret.sealed = null;\r\n ret.shouldBeSealed = returnApprovalRequired ? false : true;\r\n }\r\n }\r\n });\r\n \r\n var currentIndex = Object.values(requestObj.OrderItems).findIndex(x => x.lineItemId === key.lineItemId);\r\n \r\n requestObj.OrderItems[currentIndex].reasonId = value === \"\" ? 0 : parseInt(value); \r\n } \r\n\r\n currentValidations[key.lineItemId] = value === \"\" ? false : true;\r\n \r\n setReasonValidations(currentValidations);\r\n \r\n});\r\n\r\n\r\nconst handleReasonPromoChange = ((value,key) => {\r\n \r\n var values = value.split(\"|\"); \r\n value = values[0];\r\n \r\n var returnApprovalRequired = values[1] === \"true\" ? true : false;\r\n \r\n var currentItems = {...showSealed}; \r\n var currentValidations = {...reasonValidations}; \r\n \r\n var showReasonVisible = value !== '' && !returnApprovalRequired ? true : false;\r\n \r\n \r\n currentItems[key.lineItemId] = showReasonVisible;\r\n \r\n setShowSealed(currentItems);\r\n \r\n var currentSealedCopy = {...showSealedCopy}; \r\n \r\n if(returnApprovalRequired || value === ''){\r\n currentSealedCopy[key.lineItemId] = false;\r\n setShowSealedCopy(currentSealedCopy); \r\n }\r\n \r\n if(Object.values(requestObj.OrderPromoItems).map(x => x.lineItemId === key.lineItemId).length > 0 ){\r\n \r\n orderReturn.order.fulfillmentsPromoLineItems.forEach(ret => { \r\n if(ret.returnable){\r\n ret.reasonId = parseInt(value);\r\n ret.sealed = null;\r\n ret.shouldBeSealed = returnApprovalRequired ? false : true;\r\n } \r\n });\r\n \r\n var currentIndex = Object.values(requestObj.OrderPromoItems).findIndex(x => x.lineItemId === key.lineItemId);\r\n \r\n requestObj.OrderPromoItems[currentIndex].reasonId = value === \"\" ? 0 : parseInt(value); \r\n } \r\n \r\n currentValidations[key.lineItemId] = value === \"\" ? false : true;\r\n \r\n setReasonValidations(currentValidations);\r\n \r\n });\r\n \r\nconst handleIsSealedPromoChange = ((value,key) => { \r\n \r\n var currentItems = {...showSealedCopy}; \r\n var currentValidations = {...sealedValidations}; \r\n currentItems[key.lineItemId] = value !== 'no' ? false : true;\r\n \r\n currentValidations[key.lineItemId] = value === \"\" ? false : true;\r\n \r\n value = value === 'yes' ? true : ''; \r\n\r\n setShowSealedCopy(currentItems); \r\n\r\n if(Object.values(requestObj.OrderPromoItems).map(x => x.lineItemId === key.lineItemId).length > 0 ){\r\n\r\n orderReturn.order.fulfillmentsPromoLineItems.forEach(ret => {\r\n if(ret.returnable){\r\n ret.sealed = value;\r\n }\r\n });\r\n \r\n var currentIndex = Object.values(requestObj.OrderPromoItems).findIndex(x => x.lineItemId === key.lineItemId);\r\n\r\n requestObj.OrderPromoItems[currentIndex].isSealed = value; \r\n } \r\n\r\n setSealedValidations(currentValidations);\r\n\r\n });\r\n\r\nconst handleIsSealedChange = ((value,key) => { \r\n\r\n var currentItems = {...showSealedCopy}; \r\n var currentValidations = {...sealedValidations}; \r\n currentItems[key.lineItemId] = value !== 'no' ? false : true;\r\n \r\n currentValidations[key.lineItemId] = value === \"\" ? false : true;\r\n \r\n value = value === 'yes' ? true : ''; \r\n\r\n setShowSealedCopy(currentItems); \r\n\r\n if(Object.values(requestObj.OrderItems).map(x => x.lineItemId === key.lineItemId).length > 0 ){\r\n\r\n orderReturn.order.fulfillmentsLineItems.forEach(ret => {\r\n if(key.lineItemId === ret.lineItemId){\r\n if(ret.returnable){\r\n ret.sealed = value;\r\n }\r\n }\r\n });\r\n \r\n \r\n var currentIndex = Object.values(requestObj.OrderItems).findIndex(x => x.lineItemId === key.lineItemId);\r\n\r\n requestObj.OrderItems[currentIndex].isSealed = value; \r\n } \r\n\r\n setSealedValidations(currentValidations);\r\n});\r\n\r\n\r\n const handleBack = () => { \r\n history.push({pathname: '/return/order',state: orderReturn}); \r\n };\r\n\r\n const handleRemove = (sku) => { \r\n\r\n let copiedOrder ={...orderReturn}; \r\n\r\n copiedOrder.order.fulfillmentsLineItems.map(function(item) {\r\n if(item.sku === sku){\r\n item.returnQuantity = 0;\r\n }\r\n });\r\n\r\n copiedOrder.order.fulfillmentsPromoLineItems.map(function(item) {\r\n if(item.sku === sku){\r\n item.returnQuantity = 0;\r\n }\r\n });\r\n\r\n\r\n setOrderReturnSubmit(copiedOrder);\r\n };\r\n\r\n const handleSubmit = useCallback(async () => { \r\n \r\n setEnabled(false);\r\n\r\n if(handleValidations()){\r\n\r\n\r\n requestObj.OrderItems.forEach(item => {\r\n if(item.isSealed === null){\r\n item.isSealed = false;\r\n }\r\n })\r\n\r\n requestObj.OrderPromoItems.forEach(item => {\r\n if(item.isSealed === null){\r\n item.isSealed = false;\r\n }\r\n })\r\n\r\n requestObj.createdAt = orderReturn.order.createdAt;\r\n\r\n const ret = await put(`${location.state.locationSearch}`, requestObj);\r\n\r\n if(response.ok){ \r\n \r\n setEnabled(true);\r\n ret.labels = labels;\r\n \r\n if(orderReturn.order.fulfillmentsLineItems.length > 0){\r\n requestObj.OrderItems.map(function(item) { \r\n var returnItem = orderReturn.order.fulfillmentsLineItems.find(x => x.lineItemId === item.lineItemId); \r\n item.imageUrl = returnItem.imageUrl; \r\n });\r\n }\r\n\r\n if(orderReturn.order.fulfillmentsPromoLineItems.length > 0){\r\n requestObj.OrderPromoItems.map(function(item) { \r\n var returnItem = orderReturn.order.fulfillmentsPromoLineItems.find(x => x.lineItemId === item.lineItemId); \r\n item.imageUrl = returnItem.imageUrl; \r\n });\r\n }\r\n \r\n requestObj.rma = ret.rma; \r\n\r\n history.push({pathname: '/return/confirmation',state: requestObj}); \r\n\r\n setSaveError(''); \r\n }\r\n else {\r\n setEnabled(true);\r\n cache.clear();\r\n setSaveError(response.data);\r\n }\r\n }\r\n else{\r\n setEnabled(true);\r\n }\r\n \r\n }, [put, location, requestObj, response, labels, history, cache]);\r\n \r\n const handleValidations = () => { \r\n if(\r\n (\r\n (requestObj.OrderItems.length > 0 && Object.values(requestObj.OrderItems).map(x => (reasonValidations[x.lineItemId] && !x.shouldBeSealed ) || ( x.shouldBeSealed && sealedValidations[x.lineItemId])).every(v => v === true)) &&\r\n (requestObj.OrderPromoItems.length > 0 && Object.values(requestObj.OrderPromoItems).slice(0,1).map(x => (reasonValidations[x.lineItemId] && !x.shouldBeSealed ) || ( x.shouldBeSealed && sealedValidations[x.lineItemId])).every(v => v === true))\r\n )\r\n\r\n ||\r\n \r\n (\r\n requestObj.OrderItems.length === 0 &&\r\n (requestObj.OrderPromoItems.length > 0 && Object.values(requestObj.OrderPromoItems).slice(0,1).map(x => (reasonValidations[x.lineItemId] && !x.shouldBeSealed ) || ( x.shouldBeSealed && sealedValidations[x.lineItemId])).every(v => v === true))\r\n )\r\n\r\n ||\r\n \r\n ( requestObj.OrderPromoItems.length === 0 &&\r\n (requestObj.OrderItems.length > 0 && Object.values(requestObj.OrderItems).map(x => (reasonValidations[x.lineItemId] && !x.shouldBeSealed ) || ( x.shouldBeSealed && sealedValidations[x.lineItemId])).every(v => v === true))\r\n )\r\n )\r\n { \r\n setIsFormValid(true);\r\n return true;\r\n }\r\n else{\r\n setIsFormValid(false);\r\n return false;\r\n }\r\n\r\n };\r\n \r\n return(\r\n <>\r\n { error && !saveError? \r\n \r\n \r\n : null\r\n } \r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {getLabelText('ORDERREASON_TITLE_ORDERNUMBER',orderReturn.labels)}\r\n {orderReturn.order.name}\r\n
\r\n\r\n
\r\n {getLabelText('ORDERREASON_TITLE_ORDERDATE',orderReturn.labels)}\r\n {formatDate(orderReturn.order.createdAt)}\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n {\r\n saveError && saveError.length > 0 && \r\n
\r\n }\r\n\r\n\r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n { !Object.values(orderReturn.order.fulfillmentsLineItems).map(x => x.returnQuantity === 0).every(v => v === true) && \r\n
\r\n
{getLabelText('ORDERREASON_TABLEHEADER_PRODUCT',orderReturn.labels)}
\r\n
{getLabelText('ORDERREASON_TABLEHEADER_RETURNQTY',orderReturn.labels)}
\r\n
\r\n }\r\n
\r\n { \r\n Object.values(orderReturn.order.fulfillmentsLineItems).map(x => x.returnQuantity === 0).every(v => v === true) && \r\n Object.values(orderReturn.order.fulfillmentsPromoLineItems).map(x => x.quantity === 0).every(v => v === true) && \r\n\r\n
\r\n {getLabelText('ORDERPRODUCTS_EMPTY_PRODUCTS',orderReturn.labels)}\r\n
\r\n }\r\n\r\n
\r\n
\r\n\t { \r\n orderReturn.order.fulfillmentsLineItems.map(function(item) { \r\n\r\n return( \r\n <>\r\n { item.returnQuantity > 0 &&\r\n\r\n
\r\n\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n

{item.title}

\r\n {getLabelText('ORDERPRODUCT_TABLEHEADER_SKU',orderReturn.labels)} {item.sku}\r\n
${item.price}
\r\n
\r\n
\r\n {item.returnQuantity}\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n {getLabelText('ORDERREASON_TABLEHEADER_RETURNQTY',orderReturn.labels)} {item.returnQuantity } \r\n
\r\n
\r\n\r\n
\r\n {\r\n <>\r\n { isFormValid !== null && !isFormValid && !reasonValidations[item.lineItemId] &&\r\n \t\t\t
\r\n \t\r\n
\r\n \t\t\t} \r\n
\r\n \r\n \r\n \r\n
\r\n \r\n }\r\n { item.shouldBeSealed && showSealed[item.lineItemId] &&\r\n <>\r\n { isFormValid !== null && !isFormValid && !sealedValidations[item.lineItemId] &&\r\n
\r\n \r\n
\r\n } \r\n
\r\n \r\n { \r\n \r\n } \r\n
\r\n \r\n } \r\n\r\n {showSealedCopy[item.lineItemId] && \r\n
\r\n
\r\n Sealed Warning\r\n
\r\n
\r\n
\r\n }\r\n
\r\n
\r\n
\r\n
\r\n } \r\n \r\n ) \r\n }) \r\n } \r\n
\r\n
0 ? \"tableLines promo\" : \"\" }>\r\n\r\n { \r\n Object.values(orderReturn.order.fulfillmentsLineItems).map(x => x.returnQuantity === 0).every(v => v === true) && \r\n Object.values(orderReturn.order.fulfillmentsPromoLineItems).map(x => x.returnQuantity === 0).every(v => v === true) &&\r\n\r\n
\r\n {getLabelText('ORDERPRODUCTS_EMPTY_PRODUCTS',orderReturn.labels)}\r\n
\r\n }\r\n { orderReturn.order.fulfillmentsPromoLineItems.length > 0 &&\r\n <> \r\n
\r\n
\r\n Promotional Products - {orderReturn.order.promoTitle}\r\n
\r\n
\r\n {\r\n <>\r\n \r\n
\r\n \r\n \r\n \r\n { isFormValid !== null && !isFormValid && !reasonValidations[orderReturn.order.fulfillmentsPromoLineItems[0].lineItemId] &&\r\n
\r\n \r\n
\r\n } \r\n
\r\n \r\n }\r\n { orderReturn.order.fulfillmentsPromoLineItems[0].shouldBeSealed && showSealed[orderReturn.order.fulfillmentsPromoLineItems[0].lineItemId] &&\r\n <>\r\n \r\n
\r\n \r\n { \r\n \r\n } \r\n { isFormValid !== null && !isFormValid && !sealedValidations[orderReturn.order.fulfillmentsPromoLineItems[0].lineItemId] &&\r\n
\r\n \r\n
\r\n } \r\n
\r\n \r\n } \r\n\r\n
\r\n
\r\n \r\n
\r\n
\r\n {showSealedCopy[orderReturn.order.fulfillmentsPromoLineItems[0].lineItemId] && \r\n
\r\n \r\n
\r\n
\r\n Sealed Warning\r\n
\r\n
\r\n
\r\n \r\n
\r\n }\r\n { \r\n orderReturn.order.fulfillmentsPromoLineItems.map(function(item) { \r\n\r\n return( \r\n <>\r\n { item.returnQuantity > 0 &&\r\n\r\n
\r\n\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n

{item.title}

\r\n {getLabelText('ORDERPRODUCT_TABLEHEADER_SKU',orderReturn.labels)} {item.sku}\r\n \r\n { item.promoPrice >= 0 && item.promoPrice < item.price ? \r\n <>\r\n ${item.price} \r\n ${item.promoPrice}\r\n MULTI \r\n \r\n : ${item.price}\r\n }\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n } \r\n \r\n ) \r\n }) \r\n } \r\n \r\n \r\n }\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n\r\n
\r\n
\r\n

\r\n {getLabelText('ORDERREASON_NOTICE_TITLE',orderReturn.labels)}\r\n

\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n )\r\n}","import React from 'react';\r\nimport { useLocation } from 'react-router-dom';\r\nimport './../../custom.css';\r\nimport {getLabelText} from '../../Utils';\r\n\r\nexport const ReturnConfirmation = () => { \r\n const location = useLocation();\r\n const orderReturn = location.state; \r\n\r\n \r\n const handleClick = () => {\r\n window.parent.postMessage(JSON.stringify({ continueShopping: true }), \"https://wellwise-by-shoppers-dev.myshopify.com\");\r\n window.parent.postMessage(JSON.stringify({ continueShopping: true }), \"https://wellwise-by-shoppers-qa.myshopify.com\");\r\n window.parent.postMessage(JSON.stringify({ continueShopping: true }), \"https://shop.wellwise.ca\");\r\n window.parent.postMessage(JSON.stringify({ continueShopping: true }), \"https://magasin.wellwise.ca\");\r\n };\r\n\r\n const formatDate = (date) => {\r\n var orderDate = new Date(date);\r\n var options = { year: 'numeric', month: 'long', day: 'numeric' };\r\n return orderDate.toLocaleDateString(\"en-US\", options);\r\n }\r\n\r\n return(\r\n \r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {getLabelText('ORDERCONFIRMATION_TITLE_ORDERNUMBER',orderReturn.labels)}\r\n {orderReturn.OrderNumber}\r\n
\r\n\r\n
\r\n {getLabelText('ORDERCONFIRMATION_TITLE_ORDERDATE',orderReturn.labels)}\r\n {formatDate(orderReturn.createdAt)}\r\n
\r\n
\r\n
\r\n RMA {orderReturn.rma} \r\n
\r\n\r\n \r\n
\r\n\r\n
\r\n {orderReturn.OrderItems != undefined && orderReturn.OrderItems.length > 0 &&\r\n <>\r\n
\r\n
{getLabelText('ORDERCONFIRMATION_TABLEHEADER_PRODUCT',orderReturn.labels)}
\r\n
{getLabelText('ORDERCONFIRMATION_TABLEHEADER_QTY',orderReturn.labels)}
\r\n
\r\n
\r\n { \r\n orderReturn.OrderItems.map(function(item) {\r\n\r\n return( \r\n <>\r\n { item.quantity > 0 &&\r\n
\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n
\r\n
{item.title}
\r\n {getLabelText('ORDERPRODUCT_TABLEHEADER_SKU',orderReturn.labels)} {item.sku}\r\n
\r\n
\r\n {item.quantity}\r\n
\r\n
\r\n }\r\n \r\n )\r\n })\r\n }\r\n
\r\n \r\n }\r\n\r\n {orderReturn.OrderPromoItems != undefined && orderReturn.OrderPromoItems.length > 0 &&\r\n <>\r\n
\r\n { \r\n orderReturn.OrderPromoItems.map(function(item) {\r\n\r\n return( \r\n <>\r\n { item.quantity > 0 &&\r\n
\r\n
\r\n
\r\n \"\"\r\n
\r\n
\r\n
\r\n
{item.title}
\r\n {getLabelText('ORDERPRODUCT_TABLEHEADER_SKU',orderReturn.labels)} {item.sku}\r\n
\r\n
\r\n {item.quantity}\r\n
\r\n
\r\n }\r\n \r\n )\r\n })\r\n }\r\n
\r\n \r\n }\r\n
\r\n \r\n
\r\n
\r\n \r\n )\r\n}","import React from 'react';\r\nimport { Switch, useRouteMatch } from 'react-router';\r\nimport { Route } from 'react-router-dom';\r\nimport { ReturnLogin } from './ReturnLogin';\r\nimport { ReturnOrder } from './ReturnOrder';\r\nimport { ReturnSubmit } from './ReturnSubmit';\r\nimport { ReturnConfirmation } from './ReturnConfirmation';\r\n\r\nexport const Return = () => {\r\n let { path } = useRouteMatch(); \r\n \r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n \r\n} ","import React, { useCallback, useState } from 'react';\r\nimport { Route, Switch, withRouter } from 'react-router';\r\nimport { ClientRouter, RoutePropagator } from '@shopify/app-bridge-react';\r\nimport { Frame, Navigation } from '@shopify/polaris';\r\nimport { Authenticate } from './components/Authenticate';\r\nimport { Callback } from './components/Callback';\r\nimport { Reports } from './components/Reports/Reports';\r\nimport { Dashboard } from './components/Dashboard/Dashboard';\r\nimport { Settings } from './components/Admin/Settings';\r\nimport { PrivateRoute, useAuth } from './PrivateRoute'\r\nimport { Return } from './components/Public/Return';\r\n\r\nfunction App (props) {\r\n const { history, location } = props;\r\n let auth = useAuth();\r\n\r\n if(auth.token != null){\r\n localStorage.setItem(\"auth\",auth.token);\r\n }\r\n\r\n if(auth.token == null && localStorage.getItem(\"auth\") != null && !location.pathname.startsWith(\"/return\"))\r\n {\r\n auth.token = localStorage.getItem(\"auth\");\r\n }\r\n \r\n const [mobileNavigationActive, setMobileNavigationActive] = useState(true);\r\n const toggleMobileNavigationActive = useCallback(\r\n () =>\r\n setMobileNavigationActive(\r\n (mobileNavigationActive) => !mobileNavigationActive,\r\n ),\r\n [],\r\n );\r\n\r\n const navigationMarkup = auth.token ? (\r\n \r\n \r\n \r\n ) : null;\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default withRouter(App);\r\n","import 'bootstrap/dist/css/bootstrap.css';\r\nimport registerServiceWorker from './registerServiceWorker';\r\n\r\nimport React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport { BrowserRouter, Link as ReactRouterLink, Route } from 'react-router-dom';\r\nimport App from './App';\r\nimport { QueryParamProvider } from 'use-query-params';\r\nimport { AppProvider } from '@shopify/polaris';\r\nimport { Provider as AppBridgeProvider } from '@shopify/app-bridge-react';\r\nimport enTranslations from '@shopify/polaris/locales/en.json';\r\nimport '@shopify/polaris/build/esm/styles.css';\r\n\r\nimport { ProvideAuth } from './PrivateRoute'\r\nimport { getQueryParameter } from './Utils'\r\n\r\nconst shop = getQueryParameter('shop') || 'test.shopify.com'\r\nconst host = getQueryParameter('host')\r\nconst baseUrl = document.getElementsByTagName('base')[0].getAttribute('href');\r\nconst rootElement = document.getElementById('root');\r\n\r\nconsole.log(\"host\",host)\r\nconst config = { apiKey: process.env.REACT_APP_APIKey, host: host, forceRedirect: false };\r\n\r\nconst IS_EXTERNAL_LINK_REGEX = /^(?:[a-z][a-z\\d+.-]*:|\\/\\/)/;\r\n\r\nfunction Link({ children, url = '', external, ref, className, ...rest }) {\r\n // react-router only supports links to pages it can handle itself. It does not\r\n // support arbirary links, so anything that is not a path-based link should\r\n // use a reglar old `a` tag\r\n \r\n if (external || IS_EXTERNAL_LINK_REGEX.test(url)) {\r\n rest.target = '_blank';\r\n rest.rel = 'noopener noreferrer';\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n }\r\n \r\n return (\r\n \r\n {children}\r\n \r\n );\r\n}\r\n\r\n\r\nReactDOM.render(\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ,\r\n rootElement);\r\n\r\nregisterServiceWorker();\r\n\r\n\r\n\r\n"],"sourceRoot":""}